diff --git a/.github/workflows/hermetic_library_generation.yaml b/.github/workflows/hermetic_library_generation.yaml index 02d55be1f066..04e4063f52aa 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.62.0 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.62.1 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} diff --git a/generation_config.yaml b/generation_config.yaml index 3f5ce705fa25..592fadffd773 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,6 +1,6 @@ -gapic_generator_version: 2.62.0 -googleapis_commitish: b738e78ed63effb7d199ed2d61c9e03291b6077f -libraries_bom_version: 26.66.0 +gapic_generator_version: 2.62.1 +googleapis_commitish: 6d1dca2b8e3d50914609414e219df2778b2b20ba +libraries_bom_version: 26.67.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 a6896fda2c21..b054903e3bc0 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.66.0 + 26.67.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.73.0 + 2.74.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-accessapproval:2.73.0' +implementation 'com.google.cloud:google-cloud-accessapproval:2.74.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-accessapproval" % "2.73.0" +libraryDependencies += "com.google.cloud" % "google-cloud-accessapproval" % "2.74.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.73.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-accessapproval/2.74.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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 d5429df3e099..722f757e174c 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.66.0 + 26.67.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.73.0 + 1.74.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-identity-accesscontextmanager:1.73.0' +implementation 'com.google.cloud:google-identity-accesscontextmanager:1.74.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-identity-accesscontextmanager" % "1.73.0" +libraryDependencies += "com.google.cloud" % "google-identity-accesscontextmanager" % "1.74.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.73.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-identity-accesscontextmanager/1.74.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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 75a74d15f727..89f4de525a24 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.66.0 + 26.67.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.31.0 + 0.32.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.api-ads:ad-manager:0.31.0' +implementation 'com.google.api-ads:ad-manager:0.32.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.api-ads" % "ad-manager" % "0.31.0" +libraryDependencies += "com.google.api-ads" % "ad-manager" % "0.32.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.api-ads/ad-manager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ads/ad-manager/0.31.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ads/ad-manager/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-advisorynotifications/README.md b/java-advisorynotifications/README.md index 00fd9a2f7d0b..5b5c33c74310 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.66.0 + 26.67.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.61.0 + 0.62.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-advisorynotifications:0.61.0' +implementation 'com.google.cloud:google-cloud-advisorynotifications:0.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-advisorynotifications" % "0.61.0" +libraryDependencies += "com.google.cloud" % "google-cloud-advisorynotifications" % "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-advisorynotifications.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-advisorynotifications/0.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-advisorynotifications/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-aiplatform/README.md b/java-aiplatform/README.md index 972f81a06b90..fc2383a80fc2 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.66.0 + 26.67.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.73.0 + 3.74.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-aiplatform:3.73.0' +implementation 'com.google.cloud:google-cloud-aiplatform:3.74.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "3.73.0" +libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "3.74.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.73.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.74.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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.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 f087b7e7b979..2c57fd0425c2 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 @@ -18206,6 +18206,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.PreTunedModel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.PreTunedModel$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig", "queryAllDeclaredConstructors": true, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployRequest.java index d7f5439aebf3..ee81946ed987 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployRequest.java @@ -2725,7 +2725,7 @@ public interface EndpointConfigOrBuilder * * @deprecated * google.cloud.aiplatform.v1beta1.DeployRequest.EndpointConfig.dedicated_endpoint_enabled - * is deprecated. See google/cloud/aiplatform/v1beta1/model_garden_service.proto;l=281 + * is deprecated. See google/cloud/aiplatform/v1beta1/model_garden_service.proto;l=282 * @return The dedicatedEndpointEnabled. */ @java.lang.Deprecated @@ -2735,13 +2735,15 @@ public interface EndpointConfigOrBuilder * * *
-     * Optional. By default, if dedicated endpoint is enabled, the endpoint will
-     * be exposed through a dedicated DNS [Endpoint.dedicated_endpoint_dns].
-     * Your request to the dedicated DNS will be isolated from other users'
-     * traffic and will have better performance and reliability. Note: Once you
-     * enabled dedicated endpoint, you won't be able to send request to the
-     * shared DNS {region}-aiplatform.googleapis.com. The limitations will be
-     * removed soon.
+     * Optional. By default, if dedicated endpoint is enabled and private
+     * service connect config is not set, the endpoint will be exposed through a
+     * dedicated DNS [Endpoint.dedicated_endpoint_dns]. If private service
+     * connect config is set, the endpoint will be exposed through private
+     * service connect. Your request to the dedicated DNS will be isolated from
+     * other users' traffic and will have better performance and reliability.
+     * Note: Once you enabled dedicated endpoint, you won't be able to send
+     * request to the shared DNS {region}-aiplatform.googleapis.com. The
+     * limitations will be removed soon.
      *
      * If this field is set to true, the dedicated endpoint will be disabled
      * and the deployed model will be exposed through the shared DNS
@@ -2754,6 +2756,54 @@ public interface EndpointConfigOrBuilder
      */
     boolean getDedicatedEndpointDisabled();
 
+    /**
+     *
+     *
+     * 
+     * Optional. Configuration for private service connect. If set, the endpoint
+     * will be exposed through private service connect.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig private_service_connect_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the privateServiceConnectConfig field is set. + */ + boolean hasPrivateServiceConnectConfig(); + + /** + * + * + *
+     * Optional. Configuration for private service connect. If set, the endpoint
+     * will be exposed through private service connect.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig private_service_connect_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The privateServiceConnectConfig. + */ + com.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig + getPrivateServiceConnectConfig(); + + /** + * + * + *
+     * Optional. Configuration for private service connect. If set, the endpoint
+     * will be exposed through private service connect.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig private_service_connect_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfigOrBuilder + getPrivateServiceConnectConfigOrBuilder(); + /** * * @@ -2859,6 +2909,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.aiplatform.v1beta1.DeployRequest.EndpointConfig.Builder.class); } + private int bitField0_; public static final int ENDPOINT_DISPLAY_NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -2936,7 +2987,7 @@ public com.google.protobuf.ByteString getEndpointDisplayNameBytes() { * * @deprecated * google.cloud.aiplatform.v1beta1.DeployRequest.EndpointConfig.dedicated_endpoint_enabled - * is deprecated. See google/cloud/aiplatform/v1beta1/model_garden_service.proto;l=281 + * is deprecated. See google/cloud/aiplatform/v1beta1/model_garden_service.proto;l=282 * @return The dedicatedEndpointEnabled. */ @java.lang.Override @@ -2952,13 +3003,15 @@ public boolean getDedicatedEndpointEnabled() { * * *
-     * Optional. By default, if dedicated endpoint is enabled, the endpoint will
-     * be exposed through a dedicated DNS [Endpoint.dedicated_endpoint_dns].
-     * Your request to the dedicated DNS will be isolated from other users'
-     * traffic and will have better performance and reliability. Note: Once you
-     * enabled dedicated endpoint, you won't be able to send request to the
-     * shared DNS {region}-aiplatform.googleapis.com. The limitations will be
-     * removed soon.
+     * Optional. By default, if dedicated endpoint is enabled and private
+     * service connect config is not set, the endpoint will be exposed through a
+     * dedicated DNS [Endpoint.dedicated_endpoint_dns]. If private service
+     * connect config is set, the endpoint will be exposed through private
+     * service connect. Your request to the dedicated DNS will be isolated from
+     * other users' traffic and will have better performance and reliability.
+     * Note: Once you enabled dedicated endpoint, you won't be able to send
+     * request to the shared DNS {region}-aiplatform.googleapis.com. The
+     * limitations will be removed soon.
      *
      * If this field is set to true, the dedicated endpoint will be disabled
      * and the deployed model will be exposed through the shared DNS
@@ -2974,6 +3027,71 @@ public boolean getDedicatedEndpointDisabled() {
       return dedicatedEndpointDisabled_;
     }
 
+    public static final int PRIVATE_SERVICE_CONNECT_CONFIG_FIELD_NUMBER = 5;
+    private com.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig
+        privateServiceConnectConfig_;
+
+    /**
+     *
+     *
+     * 
+     * Optional. Configuration for private service connect. If set, the endpoint
+     * will be exposed through private service connect.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig private_service_connect_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the privateServiceConnectConfig field is set. + */ + @java.lang.Override + public boolean hasPrivateServiceConnectConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. Configuration for private service connect. If set, the endpoint
+     * will be exposed through private service connect.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig private_service_connect_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The privateServiceConnectConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig + getPrivateServiceConnectConfig() { + return privateServiceConnectConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig.getDefaultInstance() + : privateServiceConnectConfig_; + } + + /** + * + * + *
+     * Optional. Configuration for private service connect. If set, the endpoint
+     * will be exposed through private service connect.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig private_service_connect_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfigOrBuilder + getPrivateServiceConnectConfigOrBuilder() { + return privateServiceConnectConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig.getDefaultInstance() + : privateServiceConnectConfig_; + } + public static final int ENDPOINT_USER_ID_FIELD_NUMBER = 3; @SuppressWarnings("serial") @@ -3085,6 +3203,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (dedicatedEndpointDisabled_ != false) { output.writeBool(4, dedicatedEndpointDisabled_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getPrivateServiceConnectConfig()); + } getUnknownFields().writeTo(output); } @@ -3107,6 +3228,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, dedicatedEndpointDisabled_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, getPrivateServiceConnectConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3126,6 +3252,11 @@ public boolean equals(final java.lang.Object obj) { if (!getEndpointDisplayName().equals(other.getEndpointDisplayName())) return false; if (getDedicatedEndpointEnabled() != other.getDedicatedEndpointEnabled()) return false; if (getDedicatedEndpointDisabled() != other.getDedicatedEndpointDisabled()) return false; + if (hasPrivateServiceConnectConfig() != other.hasPrivateServiceConnectConfig()) return false; + if (hasPrivateServiceConnectConfig()) { + if (!getPrivateServiceConnectConfig().equals(other.getPrivateServiceConnectConfig())) + return false; + } if (!getEndpointUserId().equals(other.getEndpointUserId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -3144,6 +3275,10 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDedicatedEndpointEnabled()); hash = (37 * hash) + DEDICATED_ENDPOINT_DISABLED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDedicatedEndpointDisabled()); + if (hasPrivateServiceConnectConfig()) { + hash = (37 * hash) + PRIVATE_SERVICE_CONNECT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getPrivateServiceConnectConfig().hashCode(); + } hash = (37 * hash) + ENDPOINT_USER_ID_FIELD_NUMBER; hash = (53 * hash) + getEndpointUserId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -3281,10 +3416,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.aiplatform.v1beta1.DeployRequest.EndpointConfig.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPrivateServiceConnectConfigFieldBuilder(); + } } @java.lang.Override @@ -3294,6 +3438,11 @@ public Builder clear() { endpointDisplayName_ = ""; dedicatedEndpointEnabled_ = false; dedicatedEndpointDisabled_ = false; + privateServiceConnectConfig_ = null; + if (privateServiceConnectConfigBuilder_ != null) { + privateServiceConnectConfigBuilder_.dispose(); + privateServiceConnectConfigBuilder_ = null; + } endpointUserId_ = ""; return this; } @@ -3343,9 +3492,18 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000004) != 0)) { result.dedicatedEndpointDisabled_ = dedicatedEndpointDisabled_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { + result.privateServiceConnectConfig_ = + privateServiceConnectConfigBuilder_ == null + ? privateServiceConnectConfig_ + : privateServiceConnectConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { result.endpointUserId_ = endpointUserId_; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -3410,9 +3568,12 @@ public Builder mergeFrom( if (other.getDedicatedEndpointDisabled() != false) { setDedicatedEndpointDisabled(other.getDedicatedEndpointDisabled()); } + if (other.hasPrivateServiceConnectConfig()) { + mergePrivateServiceConnectConfig(other.getPrivateServiceConnectConfig()); + } if (!other.getEndpointUserId().isEmpty()) { endpointUserId_ = other.endpointUserId_; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -3456,7 +3617,7 @@ public Builder mergeFrom( case 26: { endpointUserId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 26 case 32: @@ -3465,6 +3626,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 32 + case 42: + { + input.readMessage( + getPrivateServiceConnectConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3621,7 +3789,7 @@ public Builder setEndpointDisplayNameBytes(com.google.protobuf.ByteString value) * * @deprecated * google.cloud.aiplatform.v1beta1.DeployRequest.EndpointConfig.dedicated_endpoint_enabled - * is deprecated. See google/cloud/aiplatform/v1beta1/model_garden_service.proto;l=281 + * is deprecated. See google/cloud/aiplatform/v1beta1/model_garden_service.proto;l=282 * @return The dedicatedEndpointEnabled. */ @java.lang.Override @@ -3649,7 +3817,7 @@ public boolean getDedicatedEndpointEnabled() { * * @deprecated * google.cloud.aiplatform.v1beta1.DeployRequest.EndpointConfig.dedicated_endpoint_enabled - * is deprecated. See google/cloud/aiplatform/v1beta1/model_garden_service.proto;l=281 + * is deprecated. See google/cloud/aiplatform/v1beta1/model_garden_service.proto;l=282 * @param value The dedicatedEndpointEnabled to set. * @return This builder for chaining. */ @@ -3681,7 +3849,7 @@ public Builder setDedicatedEndpointEnabled(boolean value) { * * @deprecated * google.cloud.aiplatform.v1beta1.DeployRequest.EndpointConfig.dedicated_endpoint_enabled - * is deprecated. See google/cloud/aiplatform/v1beta1/model_garden_service.proto;l=281 + * is deprecated. See google/cloud/aiplatform/v1beta1/model_garden_service.proto;l=282 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3698,13 +3866,15 @@ public Builder clearDedicatedEndpointEnabled() { * * *
-       * Optional. By default, if dedicated endpoint is enabled, the endpoint will
-       * be exposed through a dedicated DNS [Endpoint.dedicated_endpoint_dns].
-       * Your request to the dedicated DNS will be isolated from other users'
-       * traffic and will have better performance and reliability. Note: Once you
-       * enabled dedicated endpoint, you won't be able to send request to the
-       * shared DNS {region}-aiplatform.googleapis.com. The limitations will be
-       * removed soon.
+       * Optional. By default, if dedicated endpoint is enabled and private
+       * service connect config is not set, the endpoint will be exposed through a
+       * dedicated DNS [Endpoint.dedicated_endpoint_dns]. If private service
+       * connect config is set, the endpoint will be exposed through private
+       * service connect. Your request to the dedicated DNS will be isolated from
+       * other users' traffic and will have better performance and reliability.
+       * Note: Once you enabled dedicated endpoint, you won't be able to send
+       * request to the shared DNS {region}-aiplatform.googleapis.com. The
+       * limitations will be removed soon.
        *
        * If this field is set to true, the dedicated endpoint will be disabled
        * and the deployed model will be exposed through the shared DNS
@@ -3725,13 +3895,15 @@ public boolean getDedicatedEndpointDisabled() {
        *
        *
        * 
-       * Optional. By default, if dedicated endpoint is enabled, the endpoint will
-       * be exposed through a dedicated DNS [Endpoint.dedicated_endpoint_dns].
-       * Your request to the dedicated DNS will be isolated from other users'
-       * traffic and will have better performance and reliability. Note: Once you
-       * enabled dedicated endpoint, you won't be able to send request to the
-       * shared DNS {region}-aiplatform.googleapis.com. The limitations will be
-       * removed soon.
+       * Optional. By default, if dedicated endpoint is enabled and private
+       * service connect config is not set, the endpoint will be exposed through a
+       * dedicated DNS [Endpoint.dedicated_endpoint_dns]. If private service
+       * connect config is set, the endpoint will be exposed through private
+       * service connect. Your request to the dedicated DNS will be isolated from
+       * other users' traffic and will have better performance and reliability.
+       * Note: Once you enabled dedicated endpoint, you won't be able to send
+       * request to the shared DNS {region}-aiplatform.googleapis.com. The
+       * limitations will be removed soon.
        *
        * If this field is set to true, the dedicated endpoint will be disabled
        * and the deployed model will be exposed through the shared DNS
@@ -3756,13 +3928,15 @@ public Builder setDedicatedEndpointDisabled(boolean value) {
        *
        *
        * 
-       * Optional. By default, if dedicated endpoint is enabled, the endpoint will
-       * be exposed through a dedicated DNS [Endpoint.dedicated_endpoint_dns].
-       * Your request to the dedicated DNS will be isolated from other users'
-       * traffic and will have better performance and reliability. Note: Once you
-       * enabled dedicated endpoint, you won't be able to send request to the
-       * shared DNS {region}-aiplatform.googleapis.com. The limitations will be
-       * removed soon.
+       * Optional. By default, if dedicated endpoint is enabled and private
+       * service connect config is not set, the endpoint will be exposed through a
+       * dedicated DNS [Endpoint.dedicated_endpoint_dns]. If private service
+       * connect config is set, the endpoint will be exposed through private
+       * service connect. Your request to the dedicated DNS will be isolated from
+       * other users' traffic and will have better performance and reliability.
+       * Note: Once you enabled dedicated endpoint, you won't be able to send
+       * request to the shared DNS {region}-aiplatform.googleapis.com. The
+       * limitations will be removed soon.
        *
        * If this field is set to true, the dedicated endpoint will be disabled
        * and the deployed model will be exposed through the shared DNS
@@ -3781,6 +3955,236 @@ public Builder clearDedicatedEndpointDisabled() {
         return this;
       }
 
+      private com.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig
+          privateServiceConnectConfig_;
+      private com.google.protobuf.SingleFieldBuilderV3<
+              com.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig,
+              com.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig.Builder,
+              com.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfigOrBuilder>
+          privateServiceConnectConfigBuilder_;
+
+      /**
+       *
+       *
+       * 
+       * Optional. Configuration for private service connect. If set, the endpoint
+       * will be exposed through private service connect.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig private_service_connect_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the privateServiceConnectConfig field is set. + */ + public boolean hasPrivateServiceConnectConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+       * Optional. Configuration for private service connect. If set, the endpoint
+       * will be exposed through private service connect.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig private_service_connect_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The privateServiceConnectConfig. + */ + public com.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig + getPrivateServiceConnectConfig() { + if (privateServiceConnectConfigBuilder_ == null) { + return privateServiceConnectConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig.getDefaultInstance() + : privateServiceConnectConfig_; + } else { + return privateServiceConnectConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Optional. Configuration for private service connect. If set, the endpoint
+       * will be exposed through private service connect.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig private_service_connect_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPrivateServiceConnectConfig( + com.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig value) { + if (privateServiceConnectConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + privateServiceConnectConfig_ = value; + } else { + privateServiceConnectConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Configuration for private service connect. If set, the endpoint
+       * will be exposed through private service connect.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig private_service_connect_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPrivateServiceConnectConfig( + com.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig.Builder builderForValue) { + if (privateServiceConnectConfigBuilder_ == null) { + privateServiceConnectConfig_ = builderForValue.build(); + } else { + privateServiceConnectConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Configuration for private service connect. If set, the endpoint
+       * will be exposed through private service connect.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig private_service_connect_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergePrivateServiceConnectConfig( + com.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig value) { + if (privateServiceConnectConfigBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && privateServiceConnectConfig_ != null + && privateServiceConnectConfig_ + != com.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig + .getDefaultInstance()) { + getPrivateServiceConnectConfigBuilder().mergeFrom(value); + } else { + privateServiceConnectConfig_ = value; + } + } else { + privateServiceConnectConfigBuilder_.mergeFrom(value); + } + if (privateServiceConnectConfig_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Optional. Configuration for private service connect. If set, the endpoint
+       * will be exposed through private service connect.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig private_service_connect_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearPrivateServiceConnectConfig() { + bitField0_ = (bitField0_ & ~0x00000008); + privateServiceConnectConfig_ = null; + if (privateServiceConnectConfigBuilder_ != null) { + privateServiceConnectConfigBuilder_.dispose(); + privateServiceConnectConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Configuration for private service connect. If set, the endpoint
+       * will be exposed through private service connect.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig private_service_connect_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig.Builder + getPrivateServiceConnectConfigBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getPrivateServiceConnectConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Optional. Configuration for private service connect. If set, the endpoint
+       * will be exposed through private service connect.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig private_service_connect_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfigOrBuilder + getPrivateServiceConnectConfigOrBuilder() { + if (privateServiceConnectConfigBuilder_ != null) { + return privateServiceConnectConfigBuilder_.getMessageOrBuilder(); + } else { + return privateServiceConnectConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig.getDefaultInstance() + : privateServiceConnectConfig_; + } + } + + /** + * + * + *
+       * Optional. Configuration for private service connect. If set, the endpoint
+       * will be exposed through private service connect.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig private_service_connect_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig, + com.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig.Builder, + com.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfigOrBuilder> + getPrivateServiceConnectConfigFieldBuilder() { + if (privateServiceConnectConfigBuilder_ == null) { + privateServiceConnectConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig, + com.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig.Builder, + com.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfigOrBuilder>( + getPrivateServiceConnectConfig(), getParentForChildren(), isClean()); + privateServiceConnectConfig_ = null; + } + return privateServiceConnectConfigBuilder_; + } + private java.lang.Object endpointUserId_ = ""; /** @@ -3894,7 +4298,7 @@ public Builder setEndpointUserId(java.lang.String value) { throw new NullPointerException(); } endpointUserId_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -3928,7 +4332,7 @@ public Builder setEndpointUserId(java.lang.String value) { */ public Builder clearEndpointUserId() { endpointUserId_ = getDefaultInstance().getEndpointUserId(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -3967,7 +4371,7 @@ public Builder setEndpointUserIdBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); endpointUserId_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateDatasetRun.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateDatasetRun.java index f953cf58a1cd..7e31279c6149 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateDatasetRun.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateDatasetRun.java @@ -176,6 +176,66 @@ public com.google.protobuf.ByteString getCheckpointIdBytes() { } } + public static final int EVALUATE_DATASET_RESPONSE_FIELD_NUMBER = 3; + private com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse evaluateDatasetResponse_; + + /** + * + * + *
+   * Output only. Results for EvaluationService.EvaluateDataset.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse evaluate_dataset_response = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the evaluateDatasetResponse field is set. + */ + @java.lang.Override + public boolean hasEvaluateDatasetResponse() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. Results for EvaluationService.EvaluateDataset.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse evaluate_dataset_response = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The evaluateDatasetResponse. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse getEvaluateDatasetResponse() { + return evaluateDatasetResponse_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse.getDefaultInstance() + : evaluateDatasetResponse_; + } + + /** + * + * + *
+   * Output only. Results for EvaluationService.EvaluateDataset.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse evaluate_dataset_response = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponseOrBuilder + getEvaluateDatasetResponseOrBuilder() { + return evaluateDatasetResponse_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse.getDefaultInstance() + : evaluateDatasetResponse_; + } + public static final int ERROR_FIELD_NUMBER = 4; private com.google.rpc.Status error_; @@ -192,7 +252,7 @@ public com.google.protobuf.ByteString getCheckpointIdBytes() { */ @java.lang.Override public boolean hasError() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** @@ -246,6 +306,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString(output, 2, checkpointId_); } if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getEvaluateDatasetResponse()); + } + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(4, getError()); } getUnknownFields().writeTo(output); @@ -264,6 +327,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, checkpointId_); } if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEvaluateDatasetResponse()); + } + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getError()); } size += getUnknownFields().getSerializedSize(); @@ -284,6 +351,10 @@ public boolean equals(final java.lang.Object obj) { if (!getOperationName().equals(other.getOperationName())) return false; if (!getCheckpointId().equals(other.getCheckpointId())) return false; + if (hasEvaluateDatasetResponse() != other.hasEvaluateDatasetResponse()) return false; + if (hasEvaluateDatasetResponse()) { + if (!getEvaluateDatasetResponse().equals(other.getEvaluateDatasetResponse())) return false; + } if (hasError() != other.hasError()) return false; if (hasError()) { if (!getError().equals(other.getError())) return false; @@ -303,6 +374,10 @@ public int hashCode() { hash = (53 * hash) + getOperationName().hashCode(); hash = (37 * hash) + CHECKPOINT_ID_FIELD_NUMBER; hash = (53 * hash) + getCheckpointId().hashCode(); + if (hasEvaluateDatasetResponse()) { + hash = (37 * hash) + EVALUATE_DATASET_RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getEvaluateDatasetResponse().hashCode(); + } if (hasError()) { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); @@ -449,6 +524,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getEvaluateDatasetResponseFieldBuilder(); getErrorFieldBuilder(); } } @@ -459,6 +535,11 @@ public Builder clear() { bitField0_ = 0; operationName_ = ""; checkpointId_ = ""; + evaluateDatasetResponse_ = null; + if (evaluateDatasetResponseBuilder_ != null) { + evaluateDatasetResponseBuilder_.dispose(); + evaluateDatasetResponseBuilder_ = null; + } error_ = null; if (errorBuilder_ != null) { errorBuilder_.dispose(); @@ -508,9 +589,16 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.EvaluateDatasetRu } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { - result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); + result.evaluateDatasetResponse_ = + evaluateDatasetResponseBuilder_ == null + ? evaluateDatasetResponse_ + : evaluateDatasetResponseBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); + to_bitField0_ |= 0x00000002; + } result.bitField0_ |= to_bitField0_; } @@ -570,6 +658,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.EvaluateDatasetRun bitField0_ |= 0x00000002; onChanged(); } + if (other.hasEvaluateDatasetResponse()) { + mergeEvaluateDatasetResponse(other.getEvaluateDatasetResponse()); + } if (other.hasError()) { mergeError(other.getError()); } @@ -611,10 +702,17 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 26: + { + input.readMessage( + getEvaluateDatasetResponseFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 case 34: { input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 34 default: @@ -868,6 +966,226 @@ public Builder setCheckpointIdBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse evaluateDatasetResponse_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse, + com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponseOrBuilder> + evaluateDatasetResponseBuilder_; + + /** + * + * + *
+     * Output only. Results for EvaluationService.EvaluateDataset.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse evaluate_dataset_response = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the evaluateDatasetResponse field is set. + */ + public boolean hasEvaluateDatasetResponse() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Output only. Results for EvaluationService.EvaluateDataset.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse evaluate_dataset_response = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The evaluateDatasetResponse. + */ + public com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse + getEvaluateDatasetResponse() { + if (evaluateDatasetResponseBuilder_ == null) { + return evaluateDatasetResponse_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse.getDefaultInstance() + : evaluateDatasetResponse_; + } else { + return evaluateDatasetResponseBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Results for EvaluationService.EvaluateDataset.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse evaluate_dataset_response = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEvaluateDatasetResponse( + com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse value) { + if (evaluateDatasetResponseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + evaluateDatasetResponse_ = value; + } else { + evaluateDatasetResponseBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Results for EvaluationService.EvaluateDataset.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse evaluate_dataset_response = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEvaluateDatasetResponse( + com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse.Builder builderForValue) { + if (evaluateDatasetResponseBuilder_ == null) { + evaluateDatasetResponse_ = builderForValue.build(); + } else { + evaluateDatasetResponseBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Results for EvaluationService.EvaluateDataset.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse evaluate_dataset_response = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEvaluateDatasetResponse( + com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse value) { + if (evaluateDatasetResponseBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && evaluateDatasetResponse_ != null + && evaluateDatasetResponse_ + != com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse + .getDefaultInstance()) { + getEvaluateDatasetResponseBuilder().mergeFrom(value); + } else { + evaluateDatasetResponse_ = value; + } + } else { + evaluateDatasetResponseBuilder_.mergeFrom(value); + } + if (evaluateDatasetResponse_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Results for EvaluationService.EvaluateDataset.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse evaluate_dataset_response = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEvaluateDatasetResponse() { + bitField0_ = (bitField0_ & ~0x00000004); + evaluateDatasetResponse_ = null; + if (evaluateDatasetResponseBuilder_ != null) { + evaluateDatasetResponseBuilder_.dispose(); + evaluateDatasetResponseBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Results for EvaluationService.EvaluateDataset.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse evaluate_dataset_response = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse.Builder + getEvaluateDatasetResponseBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getEvaluateDatasetResponseFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Results for EvaluationService.EvaluateDataset.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse evaluate_dataset_response = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponseOrBuilder + getEvaluateDatasetResponseOrBuilder() { + if (evaluateDatasetResponseBuilder_ != null) { + return evaluateDatasetResponseBuilder_.getMessageOrBuilder(); + } else { + return evaluateDatasetResponse_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse.getDefaultInstance() + : evaluateDatasetResponse_; + } + } + + /** + * + * + *
+     * Output only. Results for EvaluationService.EvaluateDataset.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse evaluate_dataset_response = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse, + com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponseOrBuilder> + getEvaluateDatasetResponseFieldBuilder() { + if (evaluateDatasetResponseBuilder_ == null) { + evaluateDatasetResponseBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse, + com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponseOrBuilder>( + getEvaluateDatasetResponse(), getParentForChildren(), isClean()); + evaluateDatasetResponse_ = null; + } + return evaluateDatasetResponseBuilder_; + } + private com.google.rpc.Status error_; private com.google.protobuf.SingleFieldBuilderV3< com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> @@ -885,7 +1203,7 @@ public Builder setCheckpointIdBytes(com.google.protobuf.ByteString value) { * @return Whether the error field is set. */ public boolean hasError() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** @@ -925,7 +1243,7 @@ public Builder setError(com.google.rpc.Status value) { } else { errorBuilder_.setMessage(value); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -945,7 +1263,7 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { } else { errorBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -961,7 +1279,7 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { */ public Builder mergeError(com.google.rpc.Status value) { if (errorBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) + if (((bitField0_ & 0x00000008) != 0) && error_ != null && error_ != com.google.rpc.Status.getDefaultInstance()) { getErrorBuilder().mergeFrom(value); @@ -972,7 +1290,7 @@ public Builder mergeError(com.google.rpc.Status value) { errorBuilder_.mergeFrom(value); } if (error_ != null) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } return this; @@ -988,7 +1306,7 @@ public Builder mergeError(com.google.rpc.Status value) { * .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearError() { - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); error_ = null; if (errorBuilder_ != null) { errorBuilder_.dispose(); @@ -1008,7 +1326,7 @@ public Builder clearError() { * .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.Status.Builder getErrorBuilder() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return getErrorFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateDatasetRunOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateDatasetRunOrBuilder.java index 1f3c9ad94a5d..4b976c6eb0be 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateDatasetRunOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateDatasetRunOrBuilder.java @@ -80,6 +80,50 @@ public interface EvaluateDatasetRunOrBuilder */ com.google.protobuf.ByteString getCheckpointIdBytes(); + /** + * + * + *
+   * Output only. Results for EvaluationService.EvaluateDataset.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse evaluate_dataset_response = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the evaluateDatasetResponse field is set. + */ + boolean hasEvaluateDatasetResponse(); + + /** + * + * + *
+   * Output only. Results for EvaluationService.EvaluateDataset.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse evaluate_dataset_response = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The evaluateDatasetResponse. + */ + com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse getEvaluateDatasetResponse(); + + /** + * + * + *
+   * Output only. Results for EvaluationService.EvaluateDataset.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse evaluate_dataset_response = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponseOrBuilder + getEvaluateDatasetResponseOrBuilder(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FunctionCallingConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FunctionCallingConfig.java index f2eccb1cc72a..1873c301be32 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FunctionCallingConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FunctionCallingConfig.java @@ -101,9 +101,10 @@ public enum Mode implements com.google.protobuf.ProtocolMessageEnum { * *
      * Model is constrained to always predicting function calls only.
-     * If "allowed_function_names" are set, the predicted function calls will be
-     * limited to any one of "allowed_function_names", else the predicted
-     * function calls will be any one of the provided "function_declarations".
+     * If [allowed_function_names][FunctionCallingConfig.allowed_function_names]
+     * are set, the predicted function calls will be limited to any one of
+     * `allowed_function_names`, else the predicted function calls will be any
+     * one of the provided [FunctionDeclaration].
      * 
* * ANY = 2; @@ -120,6 +121,21 @@ public enum Mode implements com.google.protobuf.ProtocolMessageEnum { * NONE = 3; */ NONE(3), + /** + * + * + *
+     * Model is constrained to predict either function calls or natural language
+     * response.
+     * If [allowed_function_names][FunctionCallingConfig.allowed_function_names]
+     * are set, the predicted function calls will be limited to any one of
+     * `allowed_function_names`, else the predicted function calls will be any
+     * one of the provided [FunctionDeclaration].
+     * 
+ * + * VALIDATED = 5; + */ + VALIDATED(5), UNRECOGNIZED(-1), ; @@ -151,9 +167,10 @@ public enum Mode implements com.google.protobuf.ProtocolMessageEnum { * *
      * Model is constrained to always predicting function calls only.
-     * If "allowed_function_names" are set, the predicted function calls will be
-     * limited to any one of "allowed_function_names", else the predicted
-     * function calls will be any one of the provided "function_declarations".
+     * If [allowed_function_names][FunctionCallingConfig.allowed_function_names]
+     * are set, the predicted function calls will be limited to any one of
+     * `allowed_function_names`, else the predicted function calls will be any
+     * one of the provided [FunctionDeclaration].
      * 
* * ANY = 2; @@ -172,6 +189,22 @@ public enum Mode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NONE_VALUE = 3; + /** + * + * + *
+     * Model is constrained to predict either function calls or natural language
+     * response.
+     * If [allowed_function_names][FunctionCallingConfig.allowed_function_names]
+     * are set, the predicted function calls will be limited to any one of
+     * `allowed_function_names`, else the predicted function calls will be any
+     * one of the provided [FunctionDeclaration].
+     * 
+ * + * VALIDATED = 5; + */ + public static final int VALIDATED_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -204,6 +237,8 @@ public static Mode forNumber(int value) { return ANY; case 3: return NONE; + case 5: + return VALIDATED; default: return null; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceProto.java index d32fc6cb0089..fcf25024b4e3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceProto.java @@ -125,13 +125,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ce.proto\032(google/cloud/aiplatform/v1beta1/io.proto\0327google/cloud/aiplatform/v1be" + "ta1/machine_resources.proto\032+google/cloud/aiplatform/v1beta1/model.proto\032/google" + "/cloud/aiplatform/v1beta1/operation.proto\0325google/cloud/aiplatform/v1beta1/publi" - + "sher_model.proto\032#google/longrunning/operations.proto\"\312\002\n" + + "sher_model.proto\0328google/cloud/aiplatfor" + + "m/v1beta1/service_networking.proto\032#google/longrunning/operations.proto\"\312\002\n" + "\030GetPublisherModelRequest\022>\n" + "\004name\030\001 \001(\tB0\340A\002\372A*\n" + "(aiplatform.googleapis.com/PublisherModel\022\032\n\r" + "language_code\030\002 \001(\tB\003\340A\001\022F\n" - + "\004view\030\003 \001(\01623.google.cl" - + "oud.aiplatform.v1beta1.PublisherModelViewB\003\340A\001\022\"\n" + + "\004view\030\003" + + " \001(\01623.google.cloud.aiplatform.v1beta1.PublisherModelViewB\003\340A\001\022\"\n" + "\025is_hugging_face_model\030\005 \001(\010B\003\340A\001\022\037\n" + "\022hugging_face_token\030\006 \001(\tB\003\340A\001\022E\n" + "8include_equivalent_model_garden_model_deployment_configs\030\007" @@ -141,29 +142,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006filter\030\002 \001(\tB\003\340A\001\022\026\n" + "\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\004 \001(\tB\003\340A\001\022F\n" - + "\004view\030\005 \001" - + "(\01623.google.cloud.aiplatform.v1beta1.PublisherModelViewB\003\340A\001\022\025\n" + + "\004view\030\005 \001(\01623.google.cloud.aipl" + + "atform.v1beta1.PublisherModelViewB\003\340A\001\022\025\n" + "\010order_by\030\006 \001(\tB\003\340A\001\022\032\n\r" + "language_code\030\007 \001(\tB\003\340A\001\022\036\n" + "\021list_all_versions\030\010 \001(\010B\003\340A\001\"\201\001\n" + "\033ListPublisherModelsResponse\022I\n" - + "\020publisher_models\030\001 \003(" - + "\0132/.google.cloud.aiplatform.v1beta1.PublisherModel\022\027\n" - + "\017next_page_token\030\002 \001(\t\"\306\n\n\r" + + "\020publisher_models\030\001" + + " \003(\0132/.google.cloud.aiplatform.v1beta1.PublisherModel\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\261\013\n\r" + "DeployRequest\022M\n" + "\024publisher_model_name\030\001 \001(\tB-\372A*\n" + "(aiplatform.googleapis.com/PublisherModelH\000\022\037\n" + "\025hugging_face_model_id\030\002 \001(\tH\000\022R\n" - + "\014custom_model\030\003 \001(\0132:.google.clo" - + "ud.aiplatform.v1beta1.DeployRequest.CustomModelH\000\022>\n" + + "\014custom_model\030\003" + + " \001(\0132:.google.cloud.aiplatform.v1beta1.DeployRequest.CustomModelH\000\022>\n" + "\013destination\030\004 \001(\tB)\340A\002\372A#\n" + "!locations.googleapis.com/Location\022U\n" - + "\014model_config\030\005 \001(\0132:.google.cloud.aiplatfor" - + "m.v1beta1.DeployRequest.ModelConfigB\003\340A\001\022[\n" - + "\017endpoint_config\030\006 \001(\0132=.google.cloud" - + ".aiplatform.v1beta1.DeployRequest.EndpointConfigB\003\340A\001\022W\n\r" - + "deploy_config\030\007 \001(\0132;.g" - + "oogle.cloud.aiplatform.v1beta1.DeployRequest.DeployConfigB\003\340A\001\0325\n" + + "\014model_config\030\005 \001(\0132:.goog" + + "le.cloud.aiplatform.v1beta1.DeployRequest.ModelConfigB\003\340A\001\022[\n" + + "\017endpoint_config\030\006 " + + "\001(\0132=.google.cloud.aiplatform.v1beta1.DeployRequest.EndpointConfigB\003\340A\001\022W\n\r" + + "deploy_config\030\007 \001(\0132;.google.cloud.aiplatform" + + ".v1beta1.DeployRequest.DeployConfigB\003\340A\001\0325\n" + "\013CustomModel\022\026\n" + "\007gcs_uri\030\002 \001(\tB\003\340A\005H\000B\016\n" + "\014model_source\032\207\002\n" @@ -172,20 +173,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031hugging_face_access_token\030\002 \001(\tB\003\340A\001\022\'\n" + "\032hugging_face_cache_enabled\030\003 \001(\010B\003\340A\001\022\037\n" + "\022model_display_name\030\004 \001(\tB\003\340A\001\022P\n" - + "\016container_spec\030\005" - + " \001(\01323.google.cloud.aiplatform.v1beta1.ModelContainerSpecB\003\340A\001\022\032\n\r" - + "model_user_id\030\006 \001(\tB\003\340A\001\032\253\001\n" + + "\016container_spec\030\005 \001(\01323.go" + + "ogle.cloud.aiplatform.v1beta1.ModelContainerSpecB\003\340A\001\022\032\n\r" + + "model_user_id\030\006 \001(\tB\003\340A\001\032\226\002\n" + "\016EndpointConfig\022\"\n" + "\025endpoint_display_name\030\001 \001(\tB\003\340A\001\022)\n" + "\032dedicated_endpoint_enabled\030\002 \001(\010B\005\030\001\340A\001\022(\n" - + "\033dedicated_endpoint_disabled\030\004 \001(\010B\003\340A\001\022 \n" + + "\033dedicated_endpoint_disabled\030\004 \001(\010B\003\340A\001\022i\n" + + "\036private_service_connect_config\030\005 \001(\0132<.google.cloud.aip" + + "latform.v1beta1.PrivateServiceConnectConfigB\003\340A\001\022 \n" + "\020endpoint_user_id\030\003 \001(\tB\006\340A\005\340A\001\032\247\002\n" + "\014DeployConfig\022U\n" - + "\023dedicated_resources\030\001 " - + "\001(\01323.google.cloud.aiplatform.v1beta1.DedicatedResourcesB\003\340A\001\022 \n" + + "\023dedicated_resources\030\001" + + " \001(\01323.google.cloud.aiplatform.v1beta1.DedicatedResourcesB\003\340A\001\022 \n" + "\023fast_tryout_enabled\030\002 \001(\010B\003\340A\001\022i\n\r" - + "system_labels\030\003 \003(\0132M.google.cloud.aiplatform.v1beta1.DeployR" - + "equest.DeployConfig.SystemLabelsEntryB\003\340A\001\0323\n" + + "system_labels\030\003 \003(\0132M.google.cloud.aiplatform.v1beta1.De" + + "ployRequest.DeployConfig.SystemLabelsEntryB\003\340A\001\0323\n" + "\021SystemLabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001B\013\n" @@ -215,8 +218,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005model\030\003 \001(\tB\'\340A\003\372A!\n" + "\037aiplatform.googleapis.com/Model:\002\030\001\"\255\002\n" + "\027DeployOperationMetadata\022S\n" - + "\020generic_metadata\030\001 \001(\01329.google.clou" - + "d.aiplatform.v1beta1.GenericOperationMetadata\022I\n" + + "\020generic_metadata\030\001 \001(\01329.google" + + ".cloud.aiplatform.v1beta1.GenericOperationMetadata\022I\n" + "\017publisher_model\030\002 \001(\tB0\340A\003\372A*\n" + "(aiplatform.googleapis.com/PublisherModel\022>\n" + "\013destination\030\003 \001(\tB)\340A\003\372A#\n" @@ -224,8 +227,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016project_number\030\004 \001(\003B\003\340A\003\022\025\n" + "\010model_id\030\005 \001(\tB\003\340A\003\"\250\002\n" + "%DeployPublisherModelOperationMetadata\022S\n" - + "\020generic_metadata\030\001 \001(\01329.google.cloud." - + "aiplatform.v1beta1.GenericOperationMetadata\022I\n" + + "\020generic_metadata\030\001 \001(\01329.google.c" + + "loud.aiplatform.v1beta1.GenericOperationMetadata\022I\n" + "\017publisher_model\030\002 \001(\tB0\340A\003\372A*\n" + "(aiplatform.googleapis.com/PublisherModel\022>\n" + "\013destination\030\003 \001(\tB)\340A\003\372A#\n" @@ -263,42 +266,42 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031PUBLISHER_MODEL_VIEW_FULL\020\002\022&\n" + "\"PUBLISHER_MODEL_VERSION_VIEW_BASIC\020\0032\325\r\n" + "\022ModelGardenService\022\265\001\n" - + "\021GetPublisherModel\0229.google.cloud.aiplatform.v1beta1.GetPublisherModelReque" - + "st\032/.google.cloud.aiplatform.v1beta1.Pub" - + "lisherModel\"4\332A\004name\202\323\344\223\002\'\022%/v1beta1/{name=publishers/*/models/*}\022\310\001\n" - + "\023ListPublisherModels\022;.google.cloud.aiplatform.v1be" - + "ta1.ListPublisherModelsRequest\032<.google.cloud.aiplatform.v1beta1.ListPublisherMo" - + "delsResponse\"6\332A\006parent\202\323\344\223\002\'\022%/v1beta1/{parent=publishers/*}/models\022\304\001\n" - + "\006Deploy\022..google.cloud.aiplatform.v1beta1.Deploy" - + "Request\032\035.google.longrunning.Operation\"k\312A)\n" - + "\016DeployResponse\022\027DeployOperationMeta" - + "data\202\323\344\223\0029\"4/v1beta1/{destination=projects/*/locations/*}:deploy:\001*\022\216\002\n" - + "\024DeployPublisherModel\022<.google.cloud.aiplatform.v" - + "1beta1.DeployPublisherModelRequest\032\035.google.longrunning.Operation\"\230\001\210\002\001\312AE\n" - + "\034DeployPublisherModelResponse\022%DeployPublishe" - + "rModelOperationMetadata\202\323\344\223\002G\"B/v1beta1/" - + "{destination=projects/*/locations/*}:deployPublisherModel:\001*\022\225\002\n" - + "\024ExportPublisherModel\022<.google.cloud.aiplatform.v1beta1." - + "ExportPublisherModelRequest\032\035.google.longrunning.Operation\"\237\001\312AE\n" - + "\034ExportPublisherModelResponse\022%ExportPublisherModelOper" - + "ationMetadata\202\323\344\223\002Q\"L/v1beta1/{parent=pr" - + "ojects/*/locations/*}/{name=publishers/*/models/*}:export:\001*\022\205\002\n" - + "!CheckPublisherModelEulaAcceptance\022I.google.cloud.aiplat" - + "form.v1beta1.CheckPublisherModelEulaAcceptanceRequest\032=.google.cloud.aiplatform." - + "v1beta1.PublisherModelEulaAcceptance\"V\332A" - + "\026parent,publisher_model\202\323\344\223\0027\"2/v1beta1/" - + "{parent=projects/*}/modelGardenEula:check:\001*\022\364\001\n" - + "\030AcceptPublisherModelEula\022@.google.cloud.aiplatform.v1beta1.AcceptPublis" - + "herModelEulaRequest\032=.google.cloud.aiplatform.v1beta1.PublisherModelEulaAcceptan" - + "ce\"W\332A\026parent,publisher_model\202\323\344\223\0028\"3/v1" - + "beta1/{parent=projects/*}/modelGardenEul" - + "a:accept:\001*\032M\312A\031aiplatform.googleapis.co" - + "m\322A.https://www.googleapis.com/auth/cloud-platformB\356\001\n" - + "#com.google.cloud.aiplatform.v1beta1B\027ModelGardenServiceProtoP\001ZCc" - + "loud.google.com/go/aiplatform/apiv1beta1" - + "/aiplatformpb;aiplatformpb\252\002\037Google.Clou" - + "d.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\AIPl" - + "atform\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3" + + "\021GetPublisherModel\0229.google.cloud.aiplatform.v1beta1.GetPublisherModel" + + "Request\032/.google.cloud.aiplatform.v1beta" + + "1.PublisherModel\"4\332A\004name\202\323\344\223\002\'\022%/v1beta1/{name=publishers/*/models/*}\022\310\001\n" + + "\023ListPublisherModels\022;.google.cloud.aiplatform" + + ".v1beta1.ListPublisherModelsRequest\032<.google.cloud.aiplatform.v1beta1.ListPublis" + + "herModelsResponse\"6\332A\006parent\202\323\344\223\002\'\022%/v1beta1/{parent=publishers/*}/models\022\304\001\n" + + "\006Deploy\022..google.cloud.aiplatform.v1beta1.D" + + "eployRequest\032\035.google.longrunning.Operation\"k\312A)\n" + + "\016DeployResponse\022\027DeployOperatio" + + "nMetadata\202\323\344\223\0029\"4/v1beta1/{destination=projects/*/locations/*}:deploy:\001*\022\216\002\n" + + "\024DeployPublisherModel\022<.google.cloud.aiplatf" + + "orm.v1beta1.DeployPublisherModelRequest\032\035.google.longrunning.Operation\"\230\001\210\002\001\312AE\n" + + "\034DeployPublisherModelResponse\022%DeployPub" + + "lisherModelOperationMetadata\202\323\344\223\002G\"B/v1b" + + "eta1/{destination=projects/*/locations/*}:deployPublisherModel:\001*\022\225\002\n" + + "\024ExportPublisherModel\022<.google.cloud.aiplatform.v1b" + + "eta1.ExportPublisherModelRequest\032\035.google.longrunning.Operation\"\237\001\312AE\n" + + "\034ExportPublisherModelResponse\022%ExportPublisherMode" + + "lOperationMetadata\202\323\344\223\002Q\"L/v1beta1/{pare" + + "nt=projects/*/locations/*}/{name=publishers/*/models/*}:export:\001*\022\205\002\n" + + "!CheckPublisherModelEulaAcceptance\022I.google.cloud.a" + + "iplatform.v1beta1.CheckPublisherModelEulaAcceptanceRequest\032=.google.cloud.aiplat" + + "form.v1beta1.PublisherModelEulaAcceptanc" + + "e\"V\332A\026parent,publisher_model\202\323\344\223\0027\"2/v1b" + + "eta1/{parent=projects/*}/modelGardenEula:check:\001*\022\364\001\n" + + "\030AcceptPublisherModelEula\022@.google.cloud.aiplatform.v1beta1.AcceptP" + + "ublisherModelEulaRequest\032=.google.cloud.aiplatform.v1beta1.PublisherModelEulaAcc" + + "eptance\"W\332A\026parent,publisher_model\202\323\344\223\0028" + + "\"3/v1beta1/{parent=projects/*}/modelGard" + + "enEula:accept:\001*\032M\312A\031aiplatform.googleap" + + "is.com\322A.https://www.googleapis.com/auth/cloud-platformB\356\001\n" + + "#com.google.cloud.aiplatform.v1beta1B\027ModelGardenServiceProto" + + "P\001ZCcloud.google.com/go/aiplatform/apiv1" + + "beta1/aiplatformpb;aiplatformpb\252\002\037Google" + + ".Cloud.AIPlatform.V1Beta1\312\002\037Google\\Cloud" + + "\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -313,6 +316,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.aiplatform.v1beta1.ModelProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.OperationProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.PublisherModelProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.ServiceNetworkingProto.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), }); internal_static_google_cloud_aiplatform_v1beta1_GetPublisherModelRequest_descriptor = @@ -402,6 +406,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EndpointDisplayName", "DedicatedEndpointEnabled", "DedicatedEndpointDisabled", + "PrivateServiceConnectConfig", "EndpointUserId", }); internal_static_google_cloud_aiplatform_v1beta1_DeployRequest_DeployConfig_descriptor = @@ -538,6 +543,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.aiplatform.v1beta1.ModelProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.OperationProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.PublisherModelProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.ServiceNetworkingProto.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PreTunedModel.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PreTunedModel.java new file mode 100644 index 000000000000..e58bf1248754 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PreTunedModel.java @@ -0,0 +1,1096 @@ +/* + * 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.8 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * A pre-tuned model for continuous tuning.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.PreTunedModel} + */ +public final class PreTunedModel extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.PreTunedModel) + PreTunedModelOrBuilder { + private static final long serialVersionUID = 0L; + + // Use PreTunedModel.newBuilder() to construct. + private PreTunedModel(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PreTunedModel() { + tunedModelName_ = ""; + checkpointId_ = ""; + baseModel_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PreTunedModel(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TuningJobProto + .internal_static_google_cloud_aiplatform_v1beta1_PreTunedModel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TuningJobProto + .internal_static_google_cloud_aiplatform_v1beta1_PreTunedModel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PreTunedModel.class, + com.google.cloud.aiplatform.v1beta1.PreTunedModel.Builder.class); + } + + public static final int TUNED_MODEL_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object tunedModelName_ = ""; + + /** + * + * + *
+   * The resource name of the Model.
+   * E.g., a model resource name with a specified version id or alias:
+   *
+   * `projects/{project}/locations/{location}/models/{model}@{version_id}`
+   *
+   * `projects/{project}/locations/{location}/models/{model}@{alias}`
+   *
+   * Or, omit the version id to use the default version:
+   *
+   * `projects/{project}/locations/{location}/models/{model}`
+   * 
+ * + * string tuned_model_name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The tunedModelName. + */ + @java.lang.Override + public java.lang.String getTunedModelName() { + java.lang.Object ref = tunedModelName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tunedModelName_ = s; + return s; + } + } + + /** + * + * + *
+   * The resource name of the Model.
+   * E.g., a model resource name with a specified version id or alias:
+   *
+   * `projects/{project}/locations/{location}/models/{model}@{version_id}`
+   *
+   * `projects/{project}/locations/{location}/models/{model}@{alias}`
+   *
+   * Or, omit the version id to use the default version:
+   *
+   * `projects/{project}/locations/{location}/models/{model}`
+   * 
+ * + * string tuned_model_name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for tunedModelName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTunedModelNameBytes() { + java.lang.Object ref = tunedModelName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tunedModelName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CHECKPOINT_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object checkpointId_ = ""; + + /** + * + * + *
+   * Optional. The source checkpoint id. If not specified, the default
+   * checkpoint will be used.
+   * 
+ * + * string checkpoint_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+   * Optional. The source checkpoint id. If not specified, the default
+   * checkpoint will be used.
+   * 
+ * + * string checkpoint_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 BASE_MODEL_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object baseModel_ = ""; + + /** + * + * + *
+   * Output only. The name of the base model this
+   * [PreTunedModel][google.cloud.aiplatform.v1beta1.PreTunedModel] was tuned
+   * from.
+   * 
+ * + * string base_model = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The baseModel. + */ + @java.lang.Override + public java.lang.String getBaseModel() { + java.lang.Object ref = baseModel_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + baseModel_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The name of the base model this
+   * [PreTunedModel][google.cloud.aiplatform.v1beta1.PreTunedModel] was tuned
+   * from.
+   * 
+ * + * string base_model = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for baseModel. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBaseModelBytes() { + java.lang.Object ref = baseModel_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + baseModel_ = 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(tunedModelName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tunedModelName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(checkpointId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, checkpointId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(baseModel_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, baseModel_); + } + 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(tunedModelName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, tunedModelName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(checkpointId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, checkpointId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(baseModel_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, baseModel_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.PreTunedModel)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.PreTunedModel other = + (com.google.cloud.aiplatform.v1beta1.PreTunedModel) obj; + + if (!getTunedModelName().equals(other.getTunedModelName())) return false; + if (!getCheckpointId().equals(other.getCheckpointId())) return false; + if (!getBaseModel().equals(other.getBaseModel())) 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) + TUNED_MODEL_NAME_FIELD_NUMBER; + hash = (53 * hash) + getTunedModelName().hashCode(); + hash = (37 * hash) + CHECKPOINT_ID_FIELD_NUMBER; + hash = (53 * hash) + getCheckpointId().hashCode(); + hash = (37 * hash) + BASE_MODEL_FIELD_NUMBER; + hash = (53 * hash) + getBaseModel().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.PreTunedModel parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PreTunedModel 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.PreTunedModel parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PreTunedModel parseFrom( + 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.PreTunedModel parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PreTunedModel 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.PreTunedModel parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.PreTunedModel 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.PreTunedModel parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.PreTunedModel 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.PreTunedModel 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.PreTunedModel 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.PreTunedModel prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 pre-tuned model for continuous tuning.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.PreTunedModel} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.PreTunedModel) + com.google.cloud.aiplatform.v1beta1.PreTunedModelOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TuningJobProto + .internal_static_google_cloud_aiplatform_v1beta1_PreTunedModel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TuningJobProto + .internal_static_google_cloud_aiplatform_v1beta1_PreTunedModel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PreTunedModel.class, + com.google.cloud.aiplatform.v1beta1.PreTunedModel.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.PreTunedModel.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + tunedModelName_ = ""; + checkpointId_ = ""; + baseModel_ = ""; + 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_PreTunedModel_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PreTunedModel getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.PreTunedModel.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PreTunedModel build() { + com.google.cloud.aiplatform.v1beta1.PreTunedModel result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PreTunedModel buildPartial() { + com.google.cloud.aiplatform.v1beta1.PreTunedModel result = + new com.google.cloud.aiplatform.v1beta1.PreTunedModel(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.PreTunedModel result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.tunedModelName_ = tunedModelName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.checkpointId_ = checkpointId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.baseModel_ = baseModel_; + } + } + + @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.PreTunedModel) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.PreTunedModel) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PreTunedModel other) { + if (other == com.google.cloud.aiplatform.v1beta1.PreTunedModel.getDefaultInstance()) + return this; + if (!other.getTunedModelName().isEmpty()) { + tunedModelName_ = other.tunedModelName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getCheckpointId().isEmpty()) { + checkpointId_ = other.checkpointId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getBaseModel().isEmpty()) { + baseModel_ = other.baseModel_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + tunedModelName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + checkpointId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + baseModel_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object tunedModelName_ = ""; + + /** + * + * + *
+     * The resource name of the Model.
+     * E.g., a model resource name with a specified version id or alias:
+     *
+     * `projects/{project}/locations/{location}/models/{model}@{version_id}`
+     *
+     * `projects/{project}/locations/{location}/models/{model}@{alias}`
+     *
+     * Or, omit the version id to use the default version:
+     *
+     * `projects/{project}/locations/{location}/models/{model}`
+     * 
+ * + * string tuned_model_name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The tunedModelName. + */ + public java.lang.String getTunedModelName() { + java.lang.Object ref = tunedModelName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tunedModelName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The resource name of the Model.
+     * E.g., a model resource name with a specified version id or alias:
+     *
+     * `projects/{project}/locations/{location}/models/{model}@{version_id}`
+     *
+     * `projects/{project}/locations/{location}/models/{model}@{alias}`
+     *
+     * Or, omit the version id to use the default version:
+     *
+     * `projects/{project}/locations/{location}/models/{model}`
+     * 
+ * + * string tuned_model_name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for tunedModelName. + */ + public com.google.protobuf.ByteString getTunedModelNameBytes() { + java.lang.Object ref = tunedModelName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tunedModelName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The resource name of the Model.
+     * E.g., a model resource name with a specified version id or alias:
+     *
+     * `projects/{project}/locations/{location}/models/{model}@{version_id}`
+     *
+     * `projects/{project}/locations/{location}/models/{model}@{alias}`
+     *
+     * Or, omit the version id to use the default version:
+     *
+     * `projects/{project}/locations/{location}/models/{model}`
+     * 
+ * + * string tuned_model_name = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The tunedModelName to set. + * @return This builder for chaining. + */ + public Builder setTunedModelName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tunedModelName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The resource name of the Model.
+     * E.g., a model resource name with a specified version id or alias:
+     *
+     * `projects/{project}/locations/{location}/models/{model}@{version_id}`
+     *
+     * `projects/{project}/locations/{location}/models/{model}@{alias}`
+     *
+     * Or, omit the version id to use the default version:
+     *
+     * `projects/{project}/locations/{location}/models/{model}`
+     * 
+ * + * string tuned_model_name = 1 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearTunedModelName() { + tunedModelName_ = getDefaultInstance().getTunedModelName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * The resource name of the Model.
+     * E.g., a model resource name with a specified version id or alias:
+     *
+     * `projects/{project}/locations/{location}/models/{model}@{version_id}`
+     *
+     * `projects/{project}/locations/{location}/models/{model}@{alias}`
+     *
+     * Or, omit the version id to use the default version:
+     *
+     * `projects/{project}/locations/{location}/models/{model}`
+     * 
+ * + * string tuned_model_name = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for tunedModelName to set. + * @return This builder for chaining. + */ + public Builder setTunedModelNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tunedModelName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object checkpointId_ = ""; + + /** + * + * + *
+     * Optional. The source checkpoint id. If not specified, the default
+     * checkpoint will be used.
+     * 
+ * + * string checkpoint_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. The source checkpoint id. If not specified, the default
+     * checkpoint will be used.
+     * 
+ * + * string checkpoint_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. The source checkpoint id. If not specified, the default
+     * checkpoint will be used.
+     * 
+ * + * string checkpoint_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The source checkpoint id. If not specified, the default
+     * checkpoint will be used.
+     * 
+ * + * string checkpoint_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCheckpointId() { + checkpointId_ = getDefaultInstance().getCheckpointId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The source checkpoint id. If not specified, the default
+     * checkpoint will be used.
+     * 
+ * + * string checkpoint_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object baseModel_ = ""; + + /** + * + * + *
+     * Output only. The name of the base model this
+     * [PreTunedModel][google.cloud.aiplatform.v1beta1.PreTunedModel] was tuned
+     * from.
+     * 
+ * + * string base_model = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The baseModel. + */ + public java.lang.String getBaseModel() { + java.lang.Object ref = baseModel_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + baseModel_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The name of the base model this
+     * [PreTunedModel][google.cloud.aiplatform.v1beta1.PreTunedModel] was tuned
+     * from.
+     * 
+ * + * string base_model = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for baseModel. + */ + public com.google.protobuf.ByteString getBaseModelBytes() { + java.lang.Object ref = baseModel_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + baseModel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The name of the base model this
+     * [PreTunedModel][google.cloud.aiplatform.v1beta1.PreTunedModel] was tuned
+     * from.
+     * 
+ * + * string base_model = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The baseModel to set. + * @return This builder for chaining. + */ + public Builder setBaseModel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + baseModel_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The name of the base model this
+     * [PreTunedModel][google.cloud.aiplatform.v1beta1.PreTunedModel] was tuned
+     * from.
+     * 
+ * + * string base_model = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearBaseModel() { + baseModel_ = getDefaultInstance().getBaseModel(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The name of the base model this
+     * [PreTunedModel][google.cloud.aiplatform.v1beta1.PreTunedModel] was tuned
+     * from.
+     * 
+ * + * string base_model = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for baseModel to set. + * @return This builder for chaining. + */ + public Builder setBaseModelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + baseModel_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.PreTunedModel) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.PreTunedModel) + private static final com.google.cloud.aiplatform.v1beta1.PreTunedModel DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.PreTunedModel(); + } + + public static com.google.cloud.aiplatform.v1beta1.PreTunedModel getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PreTunedModel parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.PreTunedModel getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PreTunedModelOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PreTunedModelOrBuilder.java new file mode 100644 index 000000000000..2fa0ae1f259e --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PreTunedModelOrBuilder.java @@ -0,0 +1,128 @@ +/* + * 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.8 +package com.google.cloud.aiplatform.v1beta1; + +public interface PreTunedModelOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.PreTunedModel) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The resource name of the Model.
+   * E.g., a model resource name with a specified version id or alias:
+   *
+   * `projects/{project}/locations/{location}/models/{model}@{version_id}`
+   *
+   * `projects/{project}/locations/{location}/models/{model}@{alias}`
+   *
+   * Or, omit the version id to use the default version:
+   *
+   * `projects/{project}/locations/{location}/models/{model}`
+   * 
+ * + * string tuned_model_name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The tunedModelName. + */ + java.lang.String getTunedModelName(); + + /** + * + * + *
+   * The resource name of the Model.
+   * E.g., a model resource name with a specified version id or alias:
+   *
+   * `projects/{project}/locations/{location}/models/{model}@{version_id}`
+   *
+   * `projects/{project}/locations/{location}/models/{model}@{alias}`
+   *
+   * Or, omit the version id to use the default version:
+   *
+   * `projects/{project}/locations/{location}/models/{model}`
+   * 
+ * + * string tuned_model_name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for tunedModelName. + */ + com.google.protobuf.ByteString getTunedModelNameBytes(); + + /** + * + * + *
+   * Optional. The source checkpoint id. If not specified, the default
+   * checkpoint will be used.
+   * 
+ * + * string checkpoint_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The checkpointId. + */ + java.lang.String getCheckpointId(); + + /** + * + * + *
+   * Optional. The source checkpoint id. If not specified, the default
+   * checkpoint will be used.
+   * 
+ * + * string checkpoint_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for checkpointId. + */ + com.google.protobuf.ByteString getCheckpointIdBytes(); + + /** + * + * + *
+   * Output only. The name of the base model this
+   * [PreTunedModel][google.cloud.aiplatform.v1beta1.PreTunedModel] was tuned
+   * from.
+   * 
+ * + * string base_model = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The baseModel. + */ + java.lang.String getBaseModel(); + + /** + * + * + *
+   * Output only. The name of the base model this
+   * [PreTunedModel][google.cloud.aiplatform.v1beta1.PreTunedModel] was tuned
+   * from.
+   * 
+ * + * string base_model = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for baseModel. + */ + com.google.protobuf.ByteString getBaseModelBytes(); +} 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 18e579964414..5275448c1270 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 @@ -123,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=274 + * deprecated. See google/cloud/aiplatform/v1beta1/tuning_job.proto;l=277 * @return The totalBillableCharacterCount. */ @java.lang.Override @@ -1511,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=274 + * is deprecated. See google/cloud/aiplatform/v1beta1/tuning_job.proto;l=277 * @return The totalBillableCharacterCount. */ @java.lang.Override @@ -1533,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=274 + * is deprecated. See google/cloud/aiplatform/v1beta1/tuning_job.proto;l=277 * @param value The totalBillableCharacterCount to set. * @return This builder for chaining. */ @@ -1559,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=274 + * is deprecated. See google/cloud/aiplatform/v1beta1/tuning_job.proto;l=277 * @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/SupervisedTuningDataStatsOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedTuningDataStatsOrBuilder.java index 3ee2a54bf01d..a5ad1e630049 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=274 + * deprecated. See google/cloud/aiplatform/v1beta1/tuning_job.proto;l=277 * @return The totalBillableCharacterCount. */ @java.lang.Deprecated diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolProto.java index 0a5c799161f9..34c1d993e5c1 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolProto.java @@ -295,16 +295,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027function_calling_config\030\001 \001(\01326.google.clo" + "ud.aiplatform.v1beta1.FunctionCallingConfigB\003\340A\001\022O\n" + "\020retrieval_config\030\002 \001(\01320.goo" - + "gle.cloud.aiplatform.v1beta1.RetrievalConfigB\003\340A\001\"\307\001\n" + + "gle.cloud.aiplatform.v1beta1.RetrievalConfigB\003\340A\001\"\334\001\n" + "\025FunctionCallingConfig\022N\n" + "\004mode\030\001" + " \001(\0162;.google.cloud.aiplatform.v1beta1.FunctionCallingConfig.ModeB\003\340A\001\022#\n" - + "\026allowed_function_names\030\002 \003(\tB\003\340A\001\"9\n" + + "\026allowed_function_names\030\002 \003(\tB\003\340A\001\"N\n" + "\004Mode\022\024\n" + "\020MODE_UNSPECIFIED\020\000\022\010\n" + "\004AUTO\020\001\022\007\n" + "\003ANY\020\002\022\010\n" - + "\004NONE\020\003\"v\n" + + "\004NONE\020\003\022\r\n" + + "\tVALIDATED\020\005\"\004\010\004\020\004\"v\n" + "\017RetrievalConfig\022)\n" + "\007lat_lng\030\001 \001(\0132\023.google.type.LatLngH\000\210\001\001\022\032\n\r" + "language_code\030\002 \001(\tH\001\210\001\001B\n\n" @@ -312,12 +313,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016_language_code\"\317\006\n" + "\022RagRetrievalConfig\022\022\n" + "\005top_k\030\001 \001(\005B\003\340A\001\022\\\n\r" - + "hybrid_search\030\002 \001(\0132@." - + "google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearchB\003\340A\001\022O\n" - + "\006filter\030\003" - + " \001(\0132:.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.FilterB\003\340A\001\022Q\n" - + "\007ranking\030\004" - + " \001(\0132;.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.RankingB\003\340A\001\0321\n" + + "hybrid_search\030\002 \001(\0132@.google.cloud.aiplat" + + "form.v1beta1.RagRetrievalConfig.HybridSearchB\003\340A\001\022O\n" + + "\006filter\030\003 \001(\0132:.google.cloud" + + ".aiplatform.v1beta1.RagRetrievalConfig.FilterB\003\340A\001\022Q\n" + + "\007ranking\030\004 \001(\0132;.google.clo" + + "ud.aiplatform.v1beta1.RagRetrievalConfig.RankingB\003\340A\001\0321\n" + "\014HybridSearch\022\027\n" + "\005alpha\030\001 \001(\002B\003\340A\001H\000\210\001\001B\010\n" + "\006_alpha\032\223\001\n" @@ -327,10 +328,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017metadata_filter\030\002 \001(\tB\003\340A\001B\025\n" + "\023vector_db_threshold\032\331\002\n" + "\007Ranking\022d\n" - + "\014rank_service\030\001 \001(\0132G.google.clo" - + "ud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankServiceB\003\340A\001H\000\022`\n\n" - + "llm_ranker\030\003 \001(\0132E.google.cloud.aiplatform.v1beta" - + "1.RagRetrievalConfig.Ranking.LlmRankerB\003\340A\001H\000\032:\n" + + "\014rank_service\030\001 \001(\0132G.google.cloud.aiplatform.v1bet" + + "a1.RagRetrievalConfig.Ranking.RankServiceB\003\340A\001H\000\022`\n\n" + + "llm_ranker\030\003 \001(\0132E.google.cl" + + "oud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRankerB\003\340A\001H\000\032:\n" + "\013RankService\022\034\n\n" + "model_name\030\001 \001(\tB\003\340A\001H\000\210\001\001B\r\n" + "\013_model_name\0328\n" @@ -338,11 +339,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "model_name\030\001 \001(\tB\003\340A\001H\000\210\001\001B\r\n" + "\013_model_nameB\020\n" + "\016ranking_configB\340\001\n" - + "#com.google.cloud.aiplatform.v1beta1B\tToolProtoP\001ZCclou" - + "d.google.com/go/aiplatform/apiv1beta1/ai" - + "platformpb;aiplatformpb\252\002\037Google.Cloud.A" - + "IPlatform.V1Beta1\312\002\037Google\\Cloud\\AIPlatf" - + "orm\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3" + + "#com.google.cloud.aiplatform.v1beta1B\tToolProtoP\001ZCcloud.google.com/go/aip" + + "latform/apiv1beta1/aiplatformpb;aiplatfo" + + "rmpb\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002" + + "\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"Googl" + + "e::Cloud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( 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 4df41689c07f..8320c0c218d5 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 @@ -96,6 +96,7 @@ public enum SourceModelCase com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { BASE_MODEL(4), + PRE_TUNED_MODEL(31), SOURCEMODEL_NOT_SET(0); private final int value; @@ -117,6 +118,8 @@ public static SourceModelCase forNumber(int value) { switch (value) { case 4: return BASE_MODEL; + case 31: + return PRE_TUNED_MODEL; case 0: return SOURCEMODEL_NOT_SET; default: @@ -265,6 +268,60 @@ public com.google.protobuf.ByteString getBaseModelBytes() { } } + public static final int PRE_TUNED_MODEL_FIELD_NUMBER = 31; + + /** + * + * + *
+   * The pre-tuned model for continuous tuning.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.PreTunedModel pre_tuned_model = 31; + * + * @return Whether the preTunedModel field is set. + */ + @java.lang.Override + public boolean hasPreTunedModel() { + return sourceModelCase_ == 31; + } + + /** + * + * + *
+   * The pre-tuned model for continuous tuning.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.PreTunedModel pre_tuned_model = 31; + * + * @return The preTunedModel. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PreTunedModel getPreTunedModel() { + if (sourceModelCase_ == 31) { + return (com.google.cloud.aiplatform.v1beta1.PreTunedModel) sourceModel_; + } + return com.google.cloud.aiplatform.v1beta1.PreTunedModel.getDefaultInstance(); + } + + /** + * + * + *
+   * The pre-tuned model for continuous tuning.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.PreTunedModel pre_tuned_model = 31; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PreTunedModelOrBuilder getPreTunedModelOrBuilder() { + if (sourceModelCase_ == 31) { + return (com.google.cloud.aiplatform.v1beta1.PreTunedModel) sourceModel_; + } + return com.google.cloud.aiplatform.v1beta1.PreTunedModel.getDefaultInstance(); + } + public static final int SUPERVISED_TUNING_SPEC_FIELD_NUMBER = 5; /** @@ -1782,6 +1839,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customBaseModel_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 26, customBaseModel_); } + if (sourceModelCase_ == 31) { + output.writeMessage(31, (com.google.cloud.aiplatform.v1beta1.PreTunedModel) sourceModel_); + } for (int i = 0; i < evaluateDatasetRuns_.size(); i++) { output.writeMessage(32, evaluateDatasetRuns_.get(i)); } @@ -1876,6 +1936,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customBaseModel_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(26, customBaseModel_); } + if (sourceModelCase_ == 31) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 31, (com.google.cloud.aiplatform.v1beta1.PreTunedModel) sourceModel_); + } for (int i = 0; i < evaluateDatasetRuns_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(32, evaluateDatasetRuns_.get(i)); @@ -1949,6 +2014,9 @@ public boolean equals(final java.lang.Object obj) { case 4: if (!getBaseModel().equals(other.getBaseModel())) return false; break; + case 31: + if (!getPreTunedModel().equals(other.getPreTunedModel())) return false; + break; case 0: default: } @@ -2043,6 +2111,10 @@ public int hashCode() { hash = (37 * hash) + BASE_MODEL_FIELD_NUMBER; hash = (53 * hash) + getBaseModel().hashCode(); break; + case 31: + hash = (37 * hash) + PRE_TUNED_MODEL_FIELD_NUMBER; + hash = (53 * hash) + getPreTunedModel().hashCode(); + break; case 0: default: } @@ -2245,6 +2317,9 @@ private void maybeForceBuilderInitialization() { public Builder clear() { super.clear(); bitField0_ = 0; + if (preTunedModelBuilder_ != null) { + preTunedModelBuilder_.clear(); + } if (supervisedTuningSpecBuilder_ != null) { supervisedTuningSpecBuilder_.clear(); } @@ -2313,7 +2388,7 @@ public Builder clear() { evaluateDatasetRuns_ = null; evaluateDatasetRunsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00800000); + bitField0_ = (bitField0_ & ~0x01000000); sourceModelCase_ = 0; sourceModel_ = null; tuningSpecCase_ = 0; @@ -2356,9 +2431,9 @@ public com.google.cloud.aiplatform.v1beta1.TuningJob buildPartial() { private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1beta1.TuningJob result) { if (evaluateDatasetRunsBuilder_ == null) { - if (((bitField0_ & 0x00800000) != 0)) { + if (((bitField0_ & 0x01000000) != 0)) { evaluateDatasetRuns_ = java.util.Collections.unmodifiableList(evaluateDatasetRuns_); - bitField0_ = (bitField0_ & ~0x00800000); + bitField0_ = (bitField0_ & ~0x01000000); } result.evaluateDatasetRuns_ = evaluateDatasetRuns_; } else { @@ -2368,70 +2443,70 @@ private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1beta1.Tuni private void buildPartial0(com.google.cloud.aiplatform.v1beta1.TuningJob result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.name_ = name_; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.tunedModelDisplayName_ = tunedModelDisplayName_; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.description_ = description_; } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.customBaseModel_ = customBaseModel_; } - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00000400) != 0)) { result.state_ = state_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000800) != 0)) { + if (((from_bitField0_ & 0x00001000) != 0)) { result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00001000) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00002000) != 0)) { + if (((from_bitField0_ & 0x00004000) != 0)) { result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (((from_bitField0_ & 0x00004000) != 0)) { + if (((from_bitField0_ & 0x00008000) != 0)) { result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); to_bitField0_ |= 0x00000010; } - if (((from_bitField0_ & 0x00008000) != 0)) { + if (((from_bitField0_ & 0x00010000) != 0)) { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } - if (((from_bitField0_ & 0x00010000) != 0)) { + if (((from_bitField0_ & 0x00020000) != 0)) { result.experiment_ = experiment_; } - if (((from_bitField0_ & 0x00020000) != 0)) { + if (((from_bitField0_ & 0x00040000) != 0)) { result.tunedModel_ = tunedModelBuilder_ == null ? tunedModel_ : tunedModelBuilder_.build(); to_bitField0_ |= 0x00000020; } - if (((from_bitField0_ & 0x00040000) != 0)) { + if (((from_bitField0_ & 0x00080000) != 0)) { result.tuningDataStats_ = tuningDataStatsBuilder_ == null ? tuningDataStats_ : tuningDataStatsBuilder_.build(); to_bitField0_ |= 0x00000040; } - if (((from_bitField0_ & 0x00080000) != 0)) { + if (((from_bitField0_ & 0x00100000) != 0)) { result.pipelineJob_ = pipelineJob_; } - if (((from_bitField0_ & 0x00100000) != 0)) { + if (((from_bitField0_ & 0x00200000) != 0)) { result.encryptionSpec_ = encryptionSpecBuilder_ == null ? encryptionSpec_ : encryptionSpecBuilder_.build(); to_bitField0_ |= 0x00000080; } - if (((from_bitField0_ & 0x00200000) != 0)) { + if (((from_bitField0_ & 0x00400000) != 0)) { result.serviceAccount_ = serviceAccount_; } - if (((from_bitField0_ & 0x00400000) != 0)) { + if (((from_bitField0_ & 0x00800000) != 0)) { result.outputUri_ = outputUri_; } result.bitField0_ |= to_bitField0_; @@ -2440,6 +2515,9 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.TuningJob result) private void buildPartialOneofs(com.google.cloud.aiplatform.v1beta1.TuningJob result) { result.sourceModelCase_ = sourceModelCase_; result.sourceModel_ = this.sourceModel_; + if (sourceModelCase_ == 31 && preTunedModelBuilder_ != null) { + result.sourceModel_ = preTunedModelBuilder_.build(); + } result.tuningSpecCase_ = tuningSpecCase_; result.tuningSpec_ = this.tuningSpec_; if (tuningSpecCase_ == 5 && supervisedTuningSpecBuilder_ != null) { @@ -2503,22 +2581,22 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TuningJob other) { if (other == com.google.cloud.aiplatform.v1beta1.TuningJob.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } if (!other.getTunedModelDisplayName().isEmpty()) { tunedModelDisplayName_ = other.tunedModelDisplayName_; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } if (!other.getCustomBaseModel().isEmpty()) { customBaseModel_ = other.customBaseModel_; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); } if (other.state_ != 0) { @@ -2540,10 +2618,10 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TuningJob other) { mergeError(other.getError()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; if (!other.getExperiment().isEmpty()) { experiment_ = other.experiment_; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); } if (other.hasTunedModel()) { @@ -2554,7 +2632,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TuningJob other) { } if (!other.getPipelineJob().isEmpty()) { pipelineJob_ = other.pipelineJob_; - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); } if (other.hasEncryptionSpec()) { @@ -2562,19 +2640,19 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TuningJob other) { } if (!other.getServiceAccount().isEmpty()) { serviceAccount_ = other.serviceAccount_; - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); } if (!other.getOutputUri().isEmpty()) { outputUri_ = other.outputUri_; - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); } if (evaluateDatasetRunsBuilder_ == null) { if (!other.evaluateDatasetRuns_.isEmpty()) { if (evaluateDatasetRuns_.isEmpty()) { evaluateDatasetRuns_ = other.evaluateDatasetRuns_; - bitField0_ = (bitField0_ & ~0x00800000); + bitField0_ = (bitField0_ & ~0x01000000); } else { ensureEvaluateDatasetRunsIsMutable(); evaluateDatasetRuns_.addAll(other.evaluateDatasetRuns_); @@ -2587,7 +2665,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TuningJob other) { evaluateDatasetRunsBuilder_.dispose(); evaluateDatasetRunsBuilder_ = null; evaluateDatasetRuns_ = other.evaluateDatasetRuns_; - bitField0_ = (bitField0_ & ~0x00800000); + bitField0_ = (bitField0_ & ~0x01000000); evaluateDatasetRunsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEvaluateDatasetRunsFieldBuilder() @@ -2605,6 +2683,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TuningJob other) { onChanged(); break; } + case PRE_TUNED_MODEL: + { + mergePreTunedModel(other.getPreTunedModel()); + break; + } case SOURCEMODEL_NOT_SET: { break; @@ -2665,19 +2748,19 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 10 case 18: { tunedModelDisplayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 18 case 26: { description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 26 case 34: @@ -2697,37 +2780,37 @@ public Builder mergeFrom( case 48: { state_ = input.readEnum(); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 48 case 58: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 58 case 66: { input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; break; } // case 66 case 74: { input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 74 case 82: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; break; } // case 82 case 90: { input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; break; } // case 90 case 98: @@ -2739,31 +2822,31 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; break; } // case 98 case 106: { experiment_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; break; } // case 106 case 114: { input.readMessage(getTunedModelFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; break; } // case 114 case 122: { input.readMessage(getTuningDataStatsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; break; } // case 122 case 130: { input.readMessage(getEncryptionSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; break; } // case 130 case 138: @@ -2776,7 +2859,7 @@ public Builder mergeFrom( case 146: { pipelineJob_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; break; } // case 146 case 170: @@ -2789,21 +2872,27 @@ public Builder mergeFrom( case 178: { serviceAccount_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; break; } // case 178 case 202: { outputUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; break; } // case 202 case 210: { customBaseModel_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 210 + case 250: + { + input.readMessage(getPreTunedModelFieldBuilder().getBuilder(), extensionRegistry); + sourceModelCase_ = 31; + break; + } // case 250 case 258: { com.google.cloud.aiplatform.v1beta1.EvaluateDatasetRun m = @@ -3016,6 +3105,225 @@ public Builder setBaseModelBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PreTunedModel, + com.google.cloud.aiplatform.v1beta1.PreTunedModel.Builder, + com.google.cloud.aiplatform.v1beta1.PreTunedModelOrBuilder> + preTunedModelBuilder_; + + /** + * + * + *
+     * The pre-tuned model for continuous tuning.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PreTunedModel pre_tuned_model = 31; + * + * @return Whether the preTunedModel field is set. + */ + @java.lang.Override + public boolean hasPreTunedModel() { + return sourceModelCase_ == 31; + } + + /** + * + * + *
+     * The pre-tuned model for continuous tuning.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PreTunedModel pre_tuned_model = 31; + * + * @return The preTunedModel. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PreTunedModel getPreTunedModel() { + if (preTunedModelBuilder_ == null) { + if (sourceModelCase_ == 31) { + return (com.google.cloud.aiplatform.v1beta1.PreTunedModel) sourceModel_; + } + return com.google.cloud.aiplatform.v1beta1.PreTunedModel.getDefaultInstance(); + } else { + if (sourceModelCase_ == 31) { + return preTunedModelBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.PreTunedModel.getDefaultInstance(); + } + } + + /** + * + * + *
+     * The pre-tuned model for continuous tuning.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PreTunedModel pre_tuned_model = 31; + */ + public Builder setPreTunedModel(com.google.cloud.aiplatform.v1beta1.PreTunedModel value) { + if (preTunedModelBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sourceModel_ = value; + onChanged(); + } else { + preTunedModelBuilder_.setMessage(value); + } + sourceModelCase_ = 31; + return this; + } + + /** + * + * + *
+     * The pre-tuned model for continuous tuning.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PreTunedModel pre_tuned_model = 31; + */ + public Builder setPreTunedModel( + com.google.cloud.aiplatform.v1beta1.PreTunedModel.Builder builderForValue) { + if (preTunedModelBuilder_ == null) { + sourceModel_ = builderForValue.build(); + onChanged(); + } else { + preTunedModelBuilder_.setMessage(builderForValue.build()); + } + sourceModelCase_ = 31; + return this; + } + + /** + * + * + *
+     * The pre-tuned model for continuous tuning.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PreTunedModel pre_tuned_model = 31; + */ + public Builder mergePreTunedModel(com.google.cloud.aiplatform.v1beta1.PreTunedModel value) { + if (preTunedModelBuilder_ == null) { + if (sourceModelCase_ == 31 + && sourceModel_ + != com.google.cloud.aiplatform.v1beta1.PreTunedModel.getDefaultInstance()) { + sourceModel_ = + com.google.cloud.aiplatform.v1beta1.PreTunedModel.newBuilder( + (com.google.cloud.aiplatform.v1beta1.PreTunedModel) sourceModel_) + .mergeFrom(value) + .buildPartial(); + } else { + sourceModel_ = value; + } + onChanged(); + } else { + if (sourceModelCase_ == 31) { + preTunedModelBuilder_.mergeFrom(value); + } else { + preTunedModelBuilder_.setMessage(value); + } + } + sourceModelCase_ = 31; + return this; + } + + /** + * + * + *
+     * The pre-tuned model for continuous tuning.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PreTunedModel pre_tuned_model = 31; + */ + public Builder clearPreTunedModel() { + if (preTunedModelBuilder_ == null) { + if (sourceModelCase_ == 31) { + sourceModelCase_ = 0; + sourceModel_ = null; + onChanged(); + } + } else { + if (sourceModelCase_ == 31) { + sourceModelCase_ = 0; + sourceModel_ = null; + } + preTunedModelBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The pre-tuned model for continuous tuning.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PreTunedModel pre_tuned_model = 31; + */ + public com.google.cloud.aiplatform.v1beta1.PreTunedModel.Builder getPreTunedModelBuilder() { + return getPreTunedModelFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The pre-tuned model for continuous tuning.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PreTunedModel pre_tuned_model = 31; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PreTunedModelOrBuilder getPreTunedModelOrBuilder() { + if ((sourceModelCase_ == 31) && (preTunedModelBuilder_ != null)) { + return preTunedModelBuilder_.getMessageOrBuilder(); + } else { + if (sourceModelCase_ == 31) { + return (com.google.cloud.aiplatform.v1beta1.PreTunedModel) sourceModel_; + } + return com.google.cloud.aiplatform.v1beta1.PreTunedModel.getDefaultInstance(); + } + } + + /** + * + * + *
+     * The pre-tuned model for continuous tuning.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PreTunedModel pre_tuned_model = 31; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PreTunedModel, + com.google.cloud.aiplatform.v1beta1.PreTunedModel.Builder, + com.google.cloud.aiplatform.v1beta1.PreTunedModelOrBuilder> + getPreTunedModelFieldBuilder() { + if (preTunedModelBuilder_ == null) { + if (!(sourceModelCase_ == 31)) { + sourceModel_ = com.google.cloud.aiplatform.v1beta1.PreTunedModel.getDefaultInstance(); + } + preTunedModelBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PreTunedModel, + com.google.cloud.aiplatform.v1beta1.PreTunedModel.Builder, + com.google.cloud.aiplatform.v1beta1.PreTunedModelOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.PreTunedModel) sourceModel_, + getParentForChildren(), + isClean()); + sourceModel_ = null; + } + sourceModelCase_ = 31; + onChanged(); + return preTunedModelBuilder_; + } + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.SupervisedTuningSpec, com.google.cloud.aiplatform.v1beta1.SupervisedTuningSpec.Builder, @@ -3998,7 +4306,7 @@ public Builder setName(java.lang.String value) { throw new NullPointerException(); } name_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -4019,7 +4327,7 @@ public Builder setName(java.lang.String value) { */ public Builder clearName() { name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -4045,7 +4353,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); name_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -4121,7 +4429,7 @@ public Builder setTunedModelDisplayName(java.lang.String value) { throw new NullPointerException(); } tunedModelDisplayName_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -4141,7 +4449,7 @@ public Builder setTunedModelDisplayName(java.lang.String value) { */ public Builder clearTunedModelDisplayName() { tunedModelDisplayName_ = getDefaultInstance().getTunedModelDisplayName(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -4166,7 +4474,7 @@ public Builder setTunedModelDisplayNameBytes(com.google.protobuf.ByteString valu } checkByteStringIsUtf8(value); tunedModelDisplayName_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -4239,7 +4547,7 @@ public Builder setDescription(java.lang.String value) { throw new NullPointerException(); } description_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -4258,7 +4566,7 @@ public Builder setDescription(java.lang.String value) { */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -4282,7 +4590,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); description_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -4367,7 +4675,7 @@ public Builder setCustomBaseModel(java.lang.String value) { throw new NullPointerException(); } customBaseModel_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -4390,7 +4698,7 @@ public Builder setCustomBaseModel(java.lang.String value) { */ public Builder clearCustomBaseModel() { customBaseModel_ = getDefaultInstance().getCustomBaseModel(); - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -4418,7 +4726,7 @@ public Builder setCustomBaseModelBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); customBaseModel_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -4459,7 +4767,7 @@ public int getStateValue() { */ public Builder setStateValue(int value) { state_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -4502,7 +4810,7 @@ public Builder setState(com.google.cloud.aiplatform.v1beta1.JobState value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; state_ = value.getNumber(); onChanged(); return this; @@ -4522,7 +4830,7 @@ public Builder setState(com.google.cloud.aiplatform.v1beta1.JobState value) { * @return This builder for chaining. */ public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); state_ = 0; onChanged(); return this; @@ -4550,7 +4858,7 @@ public Builder clearState() { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** @@ -4598,7 +4906,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -4621,7 +4929,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { createTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -4640,7 +4948,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) + if (((bitField0_ & 0x00000800) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); @@ -4651,7 +4959,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); } return this; @@ -4670,7 +4978,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -4693,7 +5001,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -4771,7 +5079,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the startTime field is set. */ public boolean hasStartTime() { - return ((bitField0_ & 0x00000800) != 0); + return ((bitField0_ & 0x00001000) != 0); } /** @@ -4817,7 +5125,7 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { } else { startTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4840,7 +5148,7 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu } else { startTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4859,7 +5167,7 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) + if (((bitField0_ & 0x00001000) != 0) && startTime_ != null && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); @@ -4870,7 +5178,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { startTimeBuilder_.mergeFrom(value); } if (startTime_ != null) { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); } return this; @@ -4889,7 +5197,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { * */ public Builder clearStartTime() { - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); startTime_ = null; if (startTimeBuilder_ != null) { startTimeBuilder_.dispose(); @@ -4912,7 +5220,7 @@ public Builder clearStartTime() { * */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return getStartTimeFieldBuilder().getBuilder(); } @@ -4988,7 +5296,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * @return Whether the endTime field is set. */ public boolean hasEndTime() { - return ((bitField0_ & 0x00001000) != 0); + return ((bitField0_ & 0x00002000) != 0); } /** @@ -5034,7 +5342,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { } else { endTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -5057,7 +5365,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) } else { endTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -5076,7 +5384,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) + if (((bitField0_ & 0x00002000) != 0) && endTime_ != null && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); @@ -5087,7 +5395,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { endTimeBuilder_.mergeFrom(value); } if (endTime_ != null) { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); } return this; @@ -5106,7 +5414,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { * */ public Builder clearEndTime() { - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); endTime_ = null; if (endTimeBuilder_ != null) { endTimeBuilder_.dispose(); @@ -5129,7 +5437,7 @@ public Builder clearEndTime() { * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return getEndTimeFieldBuilder().getBuilder(); } @@ -5206,7 +5514,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return ((bitField0_ & 0x00002000) != 0); + return ((bitField0_ & 0x00004000) != 0); } /** @@ -5256,7 +5564,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { } else { updateTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -5280,7 +5588,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -5300,7 +5608,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) + if (((bitField0_ & 0x00004000) != 0) && updateTime_ != null && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); @@ -5311,7 +5619,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { updateTimeBuilder_.mergeFrom(value); } if (updateTime_ != null) { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); } return this; @@ -5331,7 +5639,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); @@ -5355,7 +5663,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -5431,7 +5739,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * @return Whether the error field is set. */ public boolean hasError() { - return ((bitField0_ & 0x00004000) != 0); + return ((bitField0_ & 0x00008000) != 0); } /** @@ -5473,7 +5781,7 @@ public Builder setError(com.google.rpc.Status value) { } else { errorBuilder_.setMessage(value); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -5494,7 +5802,7 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { } else { errorBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -5511,7 +5819,7 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { */ public Builder mergeError(com.google.rpc.Status value) { if (errorBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0) + if (((bitField0_ & 0x00008000) != 0) && error_ != null && error_ != com.google.rpc.Status.getDefaultInstance()) { getErrorBuilder().mergeFrom(value); @@ -5522,7 +5830,7 @@ public Builder mergeError(com.google.rpc.Status value) { errorBuilder_.mergeFrom(value); } if (error_ != null) { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); } return this; @@ -5539,7 +5847,7 @@ public Builder mergeError(com.google.rpc.Status value) { * .google.rpc.Status error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearError() { - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); error_ = null; if (errorBuilder_ != null) { errorBuilder_.dispose(); @@ -5560,7 +5868,7 @@ public Builder clearError() { * .google.rpc.Status error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.Status.Builder getErrorBuilder() { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return getErrorFieldBuilder().getBuilder(); } @@ -5624,7 +5932,7 @@ private com.google.protobuf.MapField interna if (!labels_.isMutable()) { labels_ = labels_.copy(); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return labels_; } @@ -5750,7 +6058,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -5784,7 +6092,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; return internalGetMutableLabels().getMutableMap(); } @@ -5814,7 +6122,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; return this; } @@ -5838,7 +6146,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; return this; } @@ -5916,7 +6224,7 @@ public Builder setExperiment(java.lang.String value) { throw new NullPointerException(); } experiment_ = value; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -5937,7 +6245,7 @@ public Builder setExperiment(java.lang.String value) { */ public Builder clearExperiment() { experiment_ = getDefaultInstance().getExperiment(); - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); onChanged(); return this; } @@ -5963,7 +6271,7 @@ public Builder setExperimentBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); experiment_ = value; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -5990,7 +6298,7 @@ public Builder setExperimentBytes(com.google.protobuf.ByteString value) { * @return Whether the tunedModel field is set. */ public boolean hasTunedModel() { - return ((bitField0_ & 0x00020000) != 0); + return ((bitField0_ & 0x00040000) != 0); } /** @@ -6038,7 +6346,7 @@ public Builder setTunedModel(com.google.cloud.aiplatform.v1beta1.TunedModel valu } else { tunedModelBuilder_.setMessage(value); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -6062,7 +6370,7 @@ public Builder setTunedModel( } else { tunedModelBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -6081,7 +6389,7 @@ public Builder setTunedModel( */ public Builder mergeTunedModel(com.google.cloud.aiplatform.v1beta1.TunedModel value) { if (tunedModelBuilder_ == null) { - if (((bitField0_ & 0x00020000) != 0) + if (((bitField0_ & 0x00040000) != 0) && tunedModel_ != null && tunedModel_ != com.google.cloud.aiplatform.v1beta1.TunedModel.getDefaultInstance()) { getTunedModelBuilder().mergeFrom(value); @@ -6092,7 +6400,7 @@ public Builder mergeTunedModel(com.google.cloud.aiplatform.v1beta1.TunedModel va tunedModelBuilder_.mergeFrom(value); } if (tunedModel_ != null) { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); } return this; @@ -6111,7 +6419,7 @@ public Builder mergeTunedModel(com.google.cloud.aiplatform.v1beta1.TunedModel va * */ public Builder clearTunedModel() { - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); tunedModel_ = null; if (tunedModelBuilder_ != null) { tunedModelBuilder_.dispose(); @@ -6134,7 +6442,7 @@ public Builder clearTunedModel() { * */ public com.google.cloud.aiplatform.v1beta1.TunedModel.Builder getTunedModelBuilder() { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return getTunedModelFieldBuilder().getBuilder(); } @@ -6212,7 +6520,7 @@ public com.google.cloud.aiplatform.v1beta1.TunedModelOrBuilder getTunedModelOrBu * @return Whether the tuningDataStats field is set. */ public boolean hasTuningDataStats() { - return ((bitField0_ & 0x00040000) != 0); + return ((bitField0_ & 0x00080000) != 0); } /** @@ -6260,7 +6568,7 @@ public Builder setTuningDataStats(com.google.cloud.aiplatform.v1beta1.TuningData } else { tuningDataStatsBuilder_.setMessage(value); } - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -6284,7 +6592,7 @@ public Builder setTuningDataStats( } else { tuningDataStatsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -6303,7 +6611,7 @@ public Builder setTuningDataStats( */ public Builder mergeTuningDataStats(com.google.cloud.aiplatform.v1beta1.TuningDataStats value) { if (tuningDataStatsBuilder_ == null) { - if (((bitField0_ & 0x00040000) != 0) + if (((bitField0_ & 0x00080000) != 0) && tuningDataStats_ != null && tuningDataStats_ != com.google.cloud.aiplatform.v1beta1.TuningDataStats.getDefaultInstance()) { @@ -6315,7 +6623,7 @@ public Builder mergeTuningDataStats(com.google.cloud.aiplatform.v1beta1.TuningDa tuningDataStatsBuilder_.mergeFrom(value); } if (tuningDataStats_ != null) { - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); } return this; @@ -6334,7 +6642,7 @@ public Builder mergeTuningDataStats(com.google.cloud.aiplatform.v1beta1.TuningDa * */ public Builder clearTuningDataStats() { - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00080000); tuningDataStats_ = null; if (tuningDataStatsBuilder_ != null) { tuningDataStatsBuilder_.dispose(); @@ -6357,7 +6665,7 @@ public Builder clearTuningDataStats() { * */ public com.google.cloud.aiplatform.v1beta1.TuningDataStats.Builder getTuningDataStatsBuilder() { - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return getTuningDataStatsFieldBuilder().getBuilder(); } @@ -6491,7 +6799,7 @@ public Builder setPipelineJob(java.lang.String value) { throw new NullPointerException(); } pipelineJob_ = value; - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -6513,7 +6821,7 @@ public Builder setPipelineJob(java.lang.String value) { */ public Builder clearPipelineJob() { pipelineJob_ = getDefaultInstance().getPipelineJob(); - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00100000); onChanged(); return this; } @@ -6540,7 +6848,7 @@ public Builder setPipelineJobBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); pipelineJob_ = value; - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -6566,7 +6874,7 @@ public Builder setPipelineJobBytes(com.google.protobuf.ByteString value) { * @return Whether the encryptionSpec field is set. */ public boolean hasEncryptionSpec() { - return ((bitField0_ & 0x00100000) != 0); + return ((bitField0_ & 0x00200000) != 0); } /** @@ -6612,7 +6920,7 @@ public Builder setEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionS } else { encryptionSpecBuilder_.setMessage(value); } - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -6635,7 +6943,7 @@ public Builder setEncryptionSpec( } else { encryptionSpecBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -6653,7 +6961,7 @@ public Builder setEncryptionSpec( */ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionSpec value) { if (encryptionSpecBuilder_ == null) { - if (((bitField0_ & 0x00100000) != 0) + if (((bitField0_ & 0x00200000) != 0) && encryptionSpec_ != null && encryptionSpec_ != com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance()) { @@ -6665,7 +6973,7 @@ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.Encryptio encryptionSpecBuilder_.mergeFrom(value); } if (encryptionSpec_ != null) { - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); } return this; @@ -6683,7 +6991,7 @@ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.Encryptio * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 16; */ public Builder clearEncryptionSpec() { - bitField0_ = (bitField0_ & ~0x00100000); + bitField0_ = (bitField0_ & ~0x00200000); encryptionSpec_ = null; if (encryptionSpecBuilder_ != null) { encryptionSpecBuilder_.dispose(); @@ -6705,7 +7013,7 @@ public Builder clearEncryptionSpec() { * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 16; */ public com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder getEncryptionSpecBuilder() { - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return getEncryptionSpecFieldBuilder().getBuilder(); } @@ -6843,7 +7151,7 @@ public Builder setServiceAccount(java.lang.String value) { throw new NullPointerException(); } serviceAccount_ = value; - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); return this; } @@ -6867,7 +7175,7 @@ public Builder setServiceAccount(java.lang.String value) { */ public Builder clearServiceAccount() { serviceAccount_ = getDefaultInstance().getServiceAccount(); - bitField0_ = (bitField0_ & ~0x00200000); + bitField0_ = (bitField0_ & ~0x00400000); onChanged(); return this; } @@ -6896,7 +7204,7 @@ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); serviceAccount_ = value; - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); return this; } @@ -6972,7 +7280,7 @@ public Builder setOutputUri(java.lang.String value) { throw new NullPointerException(); } outputUri_ = value; - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -6992,7 +7300,7 @@ public Builder setOutputUri(java.lang.String value) { */ public Builder clearOutputUri() { outputUri_ = getDefaultInstance().getOutputUri(); - bitField0_ = (bitField0_ & ~0x00400000); + bitField0_ = (bitField0_ & ~0x00800000); onChanged(); return this; } @@ -7017,7 +7325,7 @@ public Builder setOutputUriBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); outputUri_ = value; - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -7026,11 +7334,11 @@ public Builder setOutputUriBytes(com.google.protobuf.ByteString value) { evaluateDatasetRuns_ = java.util.Collections.emptyList(); private void ensureEvaluateDatasetRunsIsMutable() { - if (!((bitField0_ & 0x00800000) != 0)) { + if (!((bitField0_ & 0x01000000) != 0)) { evaluateDatasetRuns_ = new java.util.ArrayList( evaluateDatasetRuns_); - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; } } @@ -7284,7 +7592,7 @@ public Builder addAllEvaluateDatasetRuns( public Builder clearEvaluateDatasetRuns() { if (evaluateDatasetRunsBuilder_ == null) { evaluateDatasetRuns_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00800000); + bitField0_ = (bitField0_ & ~0x01000000); onChanged(); } else { evaluateDatasetRunsBuilder_.clear(); @@ -7433,7 +7741,7 @@ public Builder removeEvaluateDatasetRuns(int index) { com.google.cloud.aiplatform.v1beta1.EvaluateDatasetRun.Builder, com.google.cloud.aiplatform.v1beta1.EvaluateDatasetRunOrBuilder>( evaluateDatasetRuns_, - ((bitField0_ & 0x00800000) != 0), + ((bitField0_ & 0x01000000) != 0), getParentForChildren(), isClean()); evaluateDatasetRuns_ = null; 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 30e040f79a7f..65979089d4c4 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 @@ -66,6 +66,43 @@ public interface TuningJobOrBuilder */ com.google.protobuf.ByteString getBaseModelBytes(); + /** + * + * + *
+   * The pre-tuned model for continuous tuning.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.PreTunedModel pre_tuned_model = 31; + * + * @return Whether the preTunedModel field is set. + */ + boolean hasPreTunedModel(); + + /** + * + * + *
+   * The pre-tuned model for continuous tuning.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.PreTunedModel pre_tuned_model = 31; + * + * @return The preTunedModel. + */ + com.google.cloud.aiplatform.v1beta1.PreTunedModel getPreTunedModel(); + + /** + * + * + *
+   * The pre-tuned model for continuous tuning.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.PreTunedModel pre_tuned_model = 31; + */ + com.google.cloud.aiplatform.v1beta1.PreTunedModelOrBuilder getPreTunedModelOrBuilder(); + /** * * 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 bf6dbb9b5381..fde264ec44d3 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 @@ -120,6 +120,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_TunedModelCheckpoint_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_TunedModelCheckpoint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_PreTunedModel_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_PreTunedModel_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -137,17 +141,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "valuation_service.proto\032/google/cloud/ai" + "platform/v1beta1/job_state.proto\032\034google" + "/protobuf/struct.proto\032\037google/protobuf/" - + "timestamp.proto\032\027google/rpc/status.proto\"\265\014\n" + + "timestamp.proto\032\027google/rpc/status.proto\"\200\r\n" + "\tTuningJob\022\024\n\n" - + "base_model\030\004 \001(\tH\000\022W\n" - + "\026supervised_tuning_spec\030\005 \001(\01325.google.cl" - + "oud.aiplatform.v1beta1.SupervisedTuningSpecH\001\022N\n" - + "\021distillation_spec\030\021 \001(\01321.googl" - + "e.cloud.aiplatform.v1beta1.DistillationSpecH\001\022\\\n" - + "\031partner_model_tuning_spec\030\025 \001(\013" - + "27.google.cloud.aiplatform.v1beta1.PartnerModelTuningSpecH\001\022I\n" - + "\017veo_tuning_spec\030!" - + " \001(\0132..google.cloud.aiplatform.v1beta1.VeoTuningSpecH\001\022\024\n" + + "base_model\030\004 \001(\tH\000\022I\n" + + "\017pre_tuned_model\030\037" + + " \001(\0132..google.cloud.aiplatform.v1beta1.PreTunedModelH\000\022W\n" + + "\026supervised_tuning_spec\030\005 \001(\01325.google.cloud.a" + + "iplatform.v1beta1.SupervisedTuningSpecH\001\022N\n" + + "\021distillation_spec\030\021 \001(\01321.google.clo" + + "ud.aiplatform.v1beta1.DistillationSpecH\001\022\\\n" + + "\031partner_model_tuning_spec\030\025 \001(\01327.go" + + "ogle.cloud.aiplatform.v1beta1.PartnerModelTuningSpecH\001\022I\n" + + "\017veo_tuning_spec\030! \001(\0132" + + "..google.cloud.aiplatform.v1beta1.VeoTuningSpecH\001\022\024\n" + "\004name\030\001 \001(\tB\006\340A\010\340A\003\022%\n" + "\030tuned_model_display_name\030\002 \001(\tB\003\340A\001\022\030\n" + "\013description\030\003 \001(\tB\003\340A\001\022\036\n" @@ -161,28 +167,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013update_time\030\n" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022&\n" + "\005error\030\013 \001(\0132\022.google.rpc.StatusB\003\340A\003\022K\n" - + "\006labels\030\014 \003(\01326.google.cloud." - + "aiplatform.v1beta1.TuningJob.LabelsEntryB\003\340A\001\022=\n\n" + + "\006labels\030\014 \003(\01326.google.cloud.aipla" + + "tform.v1beta1.TuningJob.LabelsEntryB\003\340A\001\022=\n\n" + "experiment\030\r" + " \001(\tB)\340A\003\372A#\n" + "!aiplatform.googleapis.com/Context\022E\n" + "\013tuned_model\030\016" + " \001(\0132+.google.cloud.aiplatform.v1beta1.TunedModelB\003\340A\003\022P\n" - + "\021tuning_data_stats\030\017" - + " \001(\01320.google.cloud.aiplatform.v1beta1.TuningDataStatsB\003\340A\003\022C\n" + + "\021tuning_data_stats\030\017 \001(" + + "\01320.google.cloud.aiplatform.v1beta1.TuningDataStatsB\003\340A\003\022C\n" + "\014pipeline_job\030\022 \001(\tB-\340A\003\372A\'\n" + "%aiplatform.googleapis.com/PipelineJob\022H\n" - + "\017encryption_spec\030\020 \001(\0132/.go" - + "ogle.cloud.aiplatform.v1beta1.EncryptionSpec\022\027\n" + + "\017encryption_spec\030\020 \001(\0132/.google." + + "cloud.aiplatform.v1beta1.EncryptionSpec\022\027\n" + "\017service_account\030\026 \001(\t\022\027\n\n" + "output_uri\030\031 \001(\tB\003\340A\001\022W\n" - + "\025evaluate_dataset_runs\030 " - + " \003(\01323.google.cloud.aiplatform.v1beta1.EvaluateDatasetRunB\003\340A\003\032-\n" + + "\025evaluate_dataset_runs\030 \003(\013" + + "23.google.cloud.aiplatform.v1beta1.EvaluateDatasetRunB\003\340A\003\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:\200\001\352A}\n" - + "#aiplatform.googleapis.com/TuningJob\022?proje" - + "cts/{project}/locations/{location}/tuningJobs/{tuning_job}*\n" + + "#aiplatform.googleapis.com/TuningJob\022?projects/{" + + "project}/locations/{location}/tuningJobs/{tuning_job}*\n" + "tuningJobs2\ttuningJobB\016\n" + "\014source_modelB\r\n" + "\013tuning_spec\"\323\001\n\n" @@ -191,8 +197,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037aiplatform.googleapis.com/Model\022<\n" + "\010endpoint\030\002 \001(\tB*\340A\003\372A$\n" + "\"aiplatform.googleapis.com/Endpoint\022O\n" - + "\013checkpoints\030\003 \003(\01325.google.clou" - + "d.aiplatform.v1beta1.TunedModelCheckpointB\003\340A\003\"\367\002\n" + + "\013checkpoints\030\003 \003(\01325.google.cloud.aip" + + "latform.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" @@ -202,8 +208,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\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.aiplatform" + + ".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" @@ -214,14 +220,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\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.aiplatform" + + ".v1beta1.SupervisedTuningDatasetDistributionB\003\340A\003\022q\n" + + "\036user_output_token_distribution\030\006 \001(\0132D.google.cloud.aiplatform.v1be" + + "ta1.SupervisedTuningDatasetDistributionB\003\340A\003\022x\n" + + "%user_message_per_example_distribution\030\007 \001(\0132D.google.cloud.aiplatform.v1" + + "beta1.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(\003B\003\340A\003\022&\n" + "\031truncated_example_indices\030\013 \003(\003B\003\340A\003\022$\n" @@ -234,8 +240,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.aip" - + "latform.v1beta1.DatasetDistribution.DistributionBucketB\003\340A\003\032O\n" + + "\007buckets\030\010 \003(\0132G.google.cloud.aiplatfo" + + "rm.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" @@ -245,30 +251,30 @@ 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(\0132" - + "4.google.cloud.aiplatform.v1beta1.DatasetDistributionB\003\340A\003\022f\n" - + "\036user_output_token_distribution\030\006 \001(\01324.google.cloud.aiplat" - + "form.v1beta1.DatasetDistributionB\003\340A\003H\000\210\001\001\022h\n" + + "\035user_input_token_distribution\030\005 \001(\01324.goo" + + "gle.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" + "\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-.goog" + + "le.cloud.aiplatform.v1beta1.DatasetStatsB\003\340A\003\"\352\001\n" + "\017TuningDataStats\022b\n" - + "\034supervised_tuning_data_stats\030\001 \001(\0132:.google.cl" - + "oud.aiplatform.v1beta1.SupervisedTuningDataStatsH\000\022^\n" - + "\027distillation_data_stats\030\003 " - + "\001(\01326.google.cloud.aiplatform.v1beta1.DistillationDataStatsB\003\340A\003H\000B\023\n" + + "\034supervised_tuning_data_stats\030\001 \001(\0132:.google.cloud.a" + + "iplatform.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\"\264\003\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\032\n\r" + "learning_rate\030\006 \001(\001B\003\340A\001\022a\n" - + "\014adapter_size\030\003 \001(\0162F.googl" - + "e.cloud.aiplatform.v1beta1.SupervisedHyperParameters.AdapterSizeB\003\340A\001\022\027\n\n" + + "\014adapter_size\030\003 \001(\0162F.google.clo" + + "ud.aiplatform.v1beta1.SupervisedHyperParameters.AdapterSizeB\003\340A\001\022\027\n\n" + "batch_size\030\005 \001(\003B\003\340A\001\"\275\001\n" + "\013AdapterSize\022\034\n" + "\030ADAPTER_SIZE_UNSPECIFIED\020\000\022\024\n" @@ -284,10 +290,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\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\022Q\n" - + "\021evaluation_config\030\005 \001(\01321.google.cloud.a" - + "iplatform.v1beta1.EvaluationConfigB\003\340A\001\022U\n" - + "\013tuning_mode\030\007 \001(\0162@.google.cloud.aipl" - + "atform.v1beta1.SupervisedTuningSpec.TuningMode\"]\n\n" + + "\021evaluation_config\030\005" + + " \001(\01321.google.cloud.aiplatform.v1beta1.EvaluationConfigB\003\340A\001\022U\n" + + "\013tuning_mode\030\007 \001(\0162@.google.cloud.aiplatfor" + + "m.v1beta1.SupervisedTuningSpec.TuningMode\"]\n\n" + "TuningMode\022\033\n" + "\027TUNING_MODE_UNSPECIFIED\020\000\022\024\n" + "\020TUNING_MODE_FULL\020\001\022\034\n" @@ -298,8 +304,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\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<.google.cloud.aiplatform.v1" - + "beta1.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" @@ -307,15 +313,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.googl" - + "e.cloud.aiplatform.v1beta1.SupervisedHyperParameters.AdapterSizeB\003\340A\001B\016\n" + + "\014adapter_size\030\003 \001(\0162F.google.clo" + + "ud.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(\0132" - + "L.google.cloud.aiplatform.v1beta1.PartnerModelTuningSpec.HyperParametersEntry\032N\n" + + "\020hyper_parameters\030\003 \003(\0132L.goo" + + "gle.cloud.aiplatform.v1beta1.PartnerModelTuningSpec.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" @@ -330,8 +336,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022VeoHyperParameters\022\030\n" + "\013epoch_count\030\001 \001(\003B\003\340A\001\022%\n" + "\030learning_rate_multiplier\030\002 \001(\001B\003\340A\001\022X\n" - + "\013tuning_task\030\003 \001(\0162>.google.cloud.aiplatfo" - + "rm.v1beta1.VeoHyperParameters.TuningTaskB\003\340A\001\"S\n\n" + + "\013tuning_task\030\003 \001(\0162>.google.cloud.aiplatform.v1" + + "beta1.VeoHyperParameters.TuningTaskB\003\340A\001\"S\n\n" + "TuningTask\022\033\n" + "\027TUNING_TASK_UNSPECIFIED\020\000\022\023\n" + "\017TUNING_TASK_I2V\020\001\022\023\n" @@ -339,29 +345,36 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "VeoTuningSpec\022!\n" + "\024training_dataset_uri\030\001 \001(\tB\003\340A\002\022#\n" + "\026validation_dataset_uri\030\002 \001(\tB\003\340A\001\022R\n" - + "\020hyper_parameters\030\003" - + " \001(\01323.google.cloud.aiplatform.v1beta1.VeoHyperParametersB\003\340A\001\"\355\001\n" + + "\020hyper_parameters\030\003 \001(" + + "\01323.google.cloud.aiplatform.v1beta1.VeoHyperParametersB\003\340A\001\"\355\001\n" + "\020EvaluationConfig\022=\n" + "\007metrics\030\001" + " \003(\0132\'.google.cloud.aiplatform.v1beta1.MetricB\003\340A\002\022I\n\r" + "output_config\030\002" + " \001(\0132-.google.cloud.aiplatform.v1beta1.OutputConfigB\003\340A\002\022O\n" + "\020autorater_config\030\003" - + " \001(\01320.google.cloud.aiplatform.v1beta1.AutoraterConfigB\003\340A\001\"u\n" + + " \001(\01320.google.cloud.aiplatform.v1beta1.AutoraterConfigB\003\340A\001\"\327\001\n" + "\022EvaluateDatasetRun\022\033\n" + "\016operation_name\030\001 \001(\tB\003\340A\003\022\032\n\r" - + "checkpoint_id\030\002 \001(\tB\003\340A\003\022&\n" + + "checkpoint_id\030\002 \001(\tB\003\340A\003\022`\n" + + "\031evaluate_dataset_response\030\003" + + " \001(\01328.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponseB\003\340A\003\022&\n" + "\005error\030\004 \001(\0132\022.google.rpc.StatusB\003\340A\003\"\\\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/aip" - + "latform/apiv1beta1/aiplatformpb;aiplatfo" - + "rmpb\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002" - + "\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"Googl" - + "e::Cloud::AIPlatform::V1beta1b\006proto3" + + "\010endpoint\030\004 \001(\t\"\204\001\n\r" + + "PreTunedModel\022>\n" + + "\020tuned_model_name\030\001 \001(\tB$\372A!\n" + + "\037aiplatform.googleapis.com/Model\022\032\n\r" + + "checkpoint_id\030\002 \001(\tB\003\340A\001\022\027\n\n" + + "base_model\030\003 \001(\tB\003\340A\003B\345\001\n" + + "#com.google.cloud.aiplatform.v1beta1B\016TuningJobPro" + + "toP\001ZCcloud.google.com/go/aiplatform/api" + + "v1beta1/aiplatformpb;aiplatformpb\252\002\037Goog" + + "le.Cloud.AIPlatform.V1Beta1\312\002\037Google\\Clo" + + "ud\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -384,6 +397,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_aiplatform_v1beta1_TuningJob_descriptor, new java.lang.String[] { "BaseModel", + "PreTunedModel", "SupervisedTuningSpec", "DistillationSpec", "PartnerModelTuningSpec", @@ -614,7 +628,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_EvaluateDatasetRun_descriptor, new java.lang.String[] { - "OperationName", "CheckpointId", "Error", + "OperationName", "CheckpointId", "EvaluateDatasetResponse", "Error", }); internal_static_google_cloud_aiplatform_v1beta1_TunedModelCheckpoint_descriptor = getDescriptor().getMessageTypes().get(18); @@ -624,6 +638,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "CheckpointId", "Epoch", "Step", "Endpoint", }); + internal_static_google_cloud_aiplatform_v1beta1_PreTunedModel_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_aiplatform_v1beta1_PreTunedModel_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_PreTunedModel_descriptor, + new java.lang.String[] { + "TunedModelName", "CheckpointId", "BaseModel", + }); 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/proto/google/cloud/aiplatform/v1beta1/model_garden_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_garden_service.proto index 0fce711f3502..5fdbf6b477e4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_garden_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_garden_service.proto @@ -25,6 +25,7 @@ import "google/cloud/aiplatform/v1beta1/machine_resources.proto"; import "google/cloud/aiplatform/v1beta1/model.proto"; import "google/cloud/aiplatform/v1beta1/operation.proto"; import "google/cloud/aiplatform/v1beta1/publisher_model.proto"; +import "google/cloud/aiplatform/v1beta1/service_networking.proto"; import "google/longrunning/operations.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; @@ -282,13 +283,15 @@ message DeployRequest { bool dedicated_endpoint_enabled = 2 [deprecated = true, (google.api.field_behavior) = OPTIONAL]; - // Optional. By default, if dedicated endpoint is enabled, the endpoint will - // be exposed through a dedicated DNS [Endpoint.dedicated_endpoint_dns]. - // Your request to the dedicated DNS will be isolated from other users' - // traffic and will have better performance and reliability. Note: Once you - // enabled dedicated endpoint, you won't be able to send request to the - // shared DNS {region}-aiplatform.googleapis.com. The limitations will be - // removed soon. + // Optional. By default, if dedicated endpoint is enabled and private + // service connect config is not set, the endpoint will be exposed through a + // dedicated DNS [Endpoint.dedicated_endpoint_dns]. If private service + // connect config is set, the endpoint will be exposed through private + // service connect. Your request to the dedicated DNS will be isolated from + // other users' traffic and will have better performance and reliability. + // Note: Once you enabled dedicated endpoint, you won't be able to send + // request to the shared DNS {region}-aiplatform.googleapis.com. The + // limitations will be removed soon. // // If this field is set to true, the dedicated endpoint will be disabled // and the deployed model will be exposed through the shared DNS @@ -296,6 +299,11 @@ message DeployRequest { bool dedicated_endpoint_disabled = 4 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Configuration for private service connect. If set, the endpoint + // will be exposed through private service connect. + PrivateServiceConnectConfig private_service_connect_config = 5 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. Immutable. The ID to use for endpoint, which will become the // final component of the endpoint resource name. If not provided, Vertex AI // will generate a value for this ID. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tool.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tool.proto index 8945a322c486..31c83cf10e3b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tool.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tool.proto @@ -484,6 +484,8 @@ message ToolConfig { message FunctionCallingConfig { // Function calling mode. enum Mode { + reserved 4; + // Unspecified function calling mode. This value should not be used. MODE_UNSPECIFIED = 0; @@ -492,14 +494,23 @@ message FunctionCallingConfig { AUTO = 1; // Model is constrained to always predicting function calls only. - // If "allowed_function_names" are set, the predicted function calls will be - // limited to any one of "allowed_function_names", else the predicted - // function calls will be any one of the provided "function_declarations". + // If [allowed_function_names][FunctionCallingConfig.allowed_function_names] + // are set, the predicted function calls will be limited to any one of + // `allowed_function_names`, else the predicted function calls will be any + // one of the provided [FunctionDeclaration]. ANY = 2; // Model will not predict any function calls. Model behavior is same as when // not passing any function declarations. NONE = 3; + + // Model is constrained to predict either function calls or natural language + // response. + // If [allowed_function_names][FunctionCallingConfig.allowed_function_names] + // are set, the predicted function calls will be limited to any one of + // `allowed_function_names`, else the predicted function calls will be any + // one of the provided [FunctionDeclaration]. + VALIDATED = 5; } // Optional. Function calling mode. 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 3d19fed1c82c..62ba33a7b50e 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 @@ -47,6 +47,9 @@ message TuningJob { // 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; + + // The pre-tuned model for continuous tuning. + PreTunedModel pre_tuned_model = 31; } oneof tuning_spec { @@ -653,6 +656,10 @@ message EvaluateDatasetRun { // when evaluating checkpoints. string checkpoint_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Results for EvaluationService.EvaluateDataset. + EvaluateDatasetResponse evaluate_dataset_response = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The error of the evaluation run if any. google.rpc.Status error = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; } @@ -672,3 +679,29 @@ message TunedModelCheckpoint { // `projects/{project}/locations/{location}/endpoints/{endpoint}`. string endpoint = 4; } + +// A pre-tuned model for continuous tuning. +message PreTunedModel { + // The resource name of the Model. + // E.g., a model resource name with a specified version id or alias: + // + // `projects/{project}/locations/{location}/models/{model}@{version_id}` + // + // `projects/{project}/locations/{location}/models/{model}@{alias}` + // + // Or, omit the version id to use the default version: + // + // `projects/{project}/locations/{location}/models/{model}` + string tuned_model_name = 1 [(google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Model" + }]; + + // Optional. The source checkpoint id. If not specified, the default + // checkpoint will be used. + string checkpoint_id = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The name of the base model this + // [PreTunedModel][google.cloud.aiplatform.v1beta1.PreTunedModel] was tuned + // from. + string base_model = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-alloydb-connectors/README.md b/java-alloydb-connectors/README.md index e46e9e97f607..c58d7668a082 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.66.0 + 26.67.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.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-connectors:0.50.0' +implementation 'com.google.cloud:google-cloud-alloydb-connectors:0.51.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-alloydb-connectors" % "0.50.0" +libraryDependencies += "com.google.cloud" % "google-cloud-alloydb-connectors" % "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-connectors.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb-connectors/0.50.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb-connectors/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/README.md b/java-alloydb/README.md index 9dc58b4b98e5..c000ab5d97a6 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.66.0 + 26.67.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.61.0 + 0.62.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-alloydb:0.61.0' +implementation 'com.google.cloud:google-cloud-alloydb:0.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-alloydb" % "0.61.0" +libraryDependencies += "com.google.cloud" % "google-cloud-alloydb" % "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-alloydb.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb/0.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb/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-analytics-admin/README.md b/java-analytics-admin/README.md index 35ecafa78445..bf4856dcb85b 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.66.0 + 26.67.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.82.0 + 0.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.analytics:google-analytics-admin:0.82.0' +implementation 'com.google.analytics:google-analytics-admin:0.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-admin" % "0.82.0" +libraryDependencies += "com.google.analytics" % "google-analytics-admin" % "0.83.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.analytics/google-analytics-admin.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-admin/0.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-admin/0.83.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-analytics-data/README.md b/java-analytics-data/README.md index e5e9fa0091d8..c5913806e127 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.66.0 + 26.67.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.83.0 + 0.84.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.analytics:google-analytics-data:0.83.0' +implementation 'com.google.analytics:google-analytics-data:0.84.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.83.0" +libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.84.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.analytics/google-analytics-data.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-data/0.83.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-data/0.84.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-analyticshub/README.md b/java-analyticshub/README.md index 73a77fcd8807..e40929b2d9b9 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.66.0 + 26.67.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.69.0 + 0.70.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-analyticshub:0.69.0' +implementation 'com.google.cloud:google-cloud-analyticshub:0.70.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-analyticshub" % "0.69.0" +libraryDependencies += "com.google.cloud" % "google-cloud-analyticshub" % "0.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-analyticshub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-analyticshub/0.69.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-analyticshub/0.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-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 93c36876f368..d4ae52994cd5 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 @@ -488,6 +488,139 @@ * * * + * + *

CreateQueryTemplate + *

Creates a new QueryTemplate + * + *

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

+ *
    + *
  • createQueryTemplate(CreateQueryTemplateRequest request) + *

+ *

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

+ *
    + *
  • createQueryTemplate(DataExchangeName parent, QueryTemplate queryTemplate, String queryTemplateId) + *

  • createQueryTemplate(String parent, QueryTemplate queryTemplate, String queryTemplateId) + *

+ *

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

+ *
    + *
  • createQueryTemplateCallable() + *

+ * + * + * + *

GetQueryTemplate + *

Gets a QueryTemplate + * + *

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

+ *
    + *
  • getQueryTemplate(GetQueryTemplateRequest request) + *

+ *

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

+ *
    + *
  • getQueryTemplate(QueryTemplateName name) + *

  • getQueryTemplate(String name) + *

+ *

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

+ *
    + *
  • getQueryTemplateCallable() + *

+ * + * + * + *

ListQueryTemplates + *

Lists all QueryTemplates in a given project and location. + * + *

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

+ *
    + *
  • listQueryTemplates(ListQueryTemplatesRequest request) + *

+ *

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

+ *
    + *
  • listQueryTemplates(DataExchangeName parent) + *

  • listQueryTemplates(String parent) + *

+ *

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

+ *
    + *
  • listQueryTemplatesPagedCallable() + *

  • listQueryTemplatesCallable() + *

+ * + * + * + *

UpdateQueryTemplate + *

Updates an existing QueryTemplate + * + *

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

+ *
    + *
  • updateQueryTemplate(UpdateQueryTemplateRequest request) + *

+ *

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

+ *
    + *
  • updateQueryTemplate(QueryTemplate queryTemplate, FieldMask updateMask) + *

+ *

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

+ *
    + *
  • updateQueryTemplateCallable() + *

+ * + * + * + *

DeleteQueryTemplate + *

Deletes a query template. + * + *

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

+ *
    + *
  • deleteQueryTemplate(DeleteQueryTemplateRequest request) + *

+ *

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

+ *
    + *
  • deleteQueryTemplate(QueryTemplateName name) + *

  • deleteQueryTemplate(String name) + *

+ *

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

+ *
    + *
  • deleteQueryTemplateCallable() + *

+ * + * + * + *

SubmitQueryTemplate + *

Submits a query template for approval. + * + *

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

+ *
    + *
  • submitQueryTemplate(SubmitQueryTemplateRequest request) + *

+ *

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

+ *
    + *
  • submitQueryTemplate(QueryTemplateName name) + *

  • submitQueryTemplate(String name) + *

+ *

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

+ *
    + *
  • submitQueryTemplateCallable() + *

+ * + * + * + *

ApproveQueryTemplate + *

Approves a query template. + * + *

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

+ *
    + *
  • approveQueryTemplate(ApproveQueryTemplateRequest request) + *

+ *

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

+ *
    + *
  • approveQueryTemplate(QueryTemplateName name) + *

  • approveQueryTemplate(String name) + *

+ *

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

+ *
    + *
  • approveQueryTemplateCallable() + *

+ * + * * * *

See the individual methods for example code. @@ -3365,47 +3498,948 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq return stub.testIamPermissionsCallable(); } - @Override - public final void close() { - stub.close(); + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new QueryTemplate + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+   *   DataExchangeName parent = DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]");
+   *   QueryTemplate queryTemplate = QueryTemplate.newBuilder().build();
+   *   String queryTemplateId = "queryTemplateId-1884800483";
+   *   QueryTemplate response =
+   *       analyticsHubServiceClient.createQueryTemplate(parent, queryTemplate, queryTemplateId);
+   * }
+   * }
+ * + * @param parent Required. The parent resource path of the QueryTemplate. e.g. + * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myQueryTemplate`. + * @param queryTemplate Required. The QueryTemplate to create. + * @param queryTemplateId Required. The ID of the QueryTemplate to create. Must contain only + * Unicode letters, numbers (0-9), underscores (_). Max length: 100 bytes. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final QueryTemplate createQueryTemplate( + DataExchangeName parent, QueryTemplate queryTemplate, String queryTemplateId) { + CreateQueryTemplateRequest request = + CreateQueryTemplateRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setQueryTemplate(queryTemplate) + .setQueryTemplateId(queryTemplateId) + .build(); + return createQueryTemplate(request); } - @Override - public void shutdown() { - stub.shutdown(); + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new QueryTemplate + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+   *   String parent = DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]").toString();
+   *   QueryTemplate queryTemplate = QueryTemplate.newBuilder().build();
+   *   String queryTemplateId = "queryTemplateId-1884800483";
+   *   QueryTemplate response =
+   *       analyticsHubServiceClient.createQueryTemplate(parent, queryTemplate, queryTemplateId);
+   * }
+   * }
+ * + * @param parent Required. The parent resource path of the QueryTemplate. e.g. + * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myQueryTemplate`. + * @param queryTemplate Required. The QueryTemplate to create. + * @param queryTemplateId Required. The ID of the QueryTemplate to create. Must contain only + * Unicode letters, numbers (0-9), underscores (_). Max length: 100 bytes. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final QueryTemplate createQueryTemplate( + String parent, QueryTemplate queryTemplate, String queryTemplateId) { + CreateQueryTemplateRequest request = + CreateQueryTemplateRequest.newBuilder() + .setParent(parent) + .setQueryTemplate(queryTemplate) + .setQueryTemplateId(queryTemplateId) + .build(); + return createQueryTemplate(request); } - @Override - public boolean isShutdown() { - return stub.isShutdown(); + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new QueryTemplate + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+   *   CreateQueryTemplateRequest request =
+   *       CreateQueryTemplateRequest.newBuilder()
+   *           .setParent(
+   *               DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]").toString())
+   *           .setQueryTemplateId("queryTemplateId-1884800483")
+   *           .setQueryTemplate(QueryTemplate.newBuilder().build())
+   *           .build();
+   *   QueryTemplate response = analyticsHubServiceClient.createQueryTemplate(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 QueryTemplate createQueryTemplate(CreateQueryTemplateRequest request) { + return createQueryTemplateCallable().call(request); } - @Override - public boolean isTerminated() { - return stub.isTerminated(); + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new QueryTemplate + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+   *   CreateQueryTemplateRequest request =
+   *       CreateQueryTemplateRequest.newBuilder()
+   *           .setParent(
+   *               DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]").toString())
+   *           .setQueryTemplateId("queryTemplateId-1884800483")
+   *           .setQueryTemplate(QueryTemplate.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsHubServiceClient.createQueryTemplateCallable().futureCall(request);
+   *   // Do something.
+   *   QueryTemplate response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createQueryTemplateCallable() { + return stub.createQueryTemplateCallable(); } - @Override - public void shutdownNow() { - stub.shutdownNow(); + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a QueryTemplate + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+   *   QueryTemplateName name =
+   *       QueryTemplateName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]");
+   *   QueryTemplate response = analyticsHubServiceClient.getQueryTemplate(name);
+   * }
+   * }
+ * + * @param name Required. The parent resource path of the QueryTemplate. e.g. + * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final QueryTemplate getQueryTemplate(QueryTemplateName name) { + GetQueryTemplateRequest request = + GetQueryTemplateRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getQueryTemplate(request); } - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return stub.awaitTermination(duration, unit); + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a QueryTemplate + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+   *   String name =
+   *       QueryTemplateName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]")
+   *           .toString();
+   *   QueryTemplate response = analyticsHubServiceClient.getQueryTemplate(name);
+   * }
+   * }
+ * + * @param name Required. The parent resource path of the QueryTemplate. e.g. + * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final QueryTemplate getQueryTemplate(String name) { + GetQueryTemplateRequest request = GetQueryTemplateRequest.newBuilder().setName(name).build(); + return getQueryTemplate(request); } - public static class ListDataExchangesPagedResponse - extends AbstractPagedListResponse< - ListDataExchangesRequest, - ListDataExchangesResponse, - DataExchange, - ListDataExchangesPage, - ListDataExchangesFixedSizeCollection> { + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a QueryTemplate + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+   *   GetQueryTemplateRequest request =
+   *       GetQueryTemplateRequest.newBuilder()
+   *           .setName(
+   *               QueryTemplateName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]")
+   *                   .toString())
+   *           .build();
+   *   QueryTemplate response = analyticsHubServiceClient.getQueryTemplate(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 QueryTemplate getQueryTemplate(GetQueryTemplateRequest request) { + return getQueryTemplateCallable().call(request); + } - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a QueryTemplate + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+   *   GetQueryTemplateRequest request =
+   *       GetQueryTemplateRequest.newBuilder()
+   *           .setName(
+   *               QueryTemplateName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsHubServiceClient.getQueryTemplateCallable().futureCall(request);
+   *   // Do something.
+   *   QueryTemplate response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getQueryTemplateCallable() { + return stub.getQueryTemplateCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all QueryTemplates in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+   *   DataExchangeName parent = DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]");
+   *   for (QueryTemplate element :
+   *       analyticsHubServiceClient.listQueryTemplates(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource path of the QueryTemplates. e.g. + * `projects/myproject/locations/us/dataExchanges/123`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListQueryTemplatesPagedResponse listQueryTemplates(DataExchangeName parent) { + ListQueryTemplatesRequest request = + ListQueryTemplatesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listQueryTemplates(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all QueryTemplates in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+   *   String parent = DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]").toString();
+   *   for (QueryTemplate element :
+   *       analyticsHubServiceClient.listQueryTemplates(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource path of the QueryTemplates. e.g. + * `projects/myproject/locations/us/dataExchanges/123`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListQueryTemplatesPagedResponse listQueryTemplates(String parent) { + ListQueryTemplatesRequest request = + ListQueryTemplatesRequest.newBuilder().setParent(parent).build(); + return listQueryTemplates(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all QueryTemplates in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+   *   ListQueryTemplatesRequest request =
+   *       ListQueryTemplatesRequest.newBuilder()
+   *           .setParent(
+   *               DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (QueryTemplate element :
+   *       analyticsHubServiceClient.listQueryTemplates(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 ListQueryTemplatesPagedResponse listQueryTemplates( + ListQueryTemplatesRequest request) { + return listQueryTemplatesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all QueryTemplates in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+   *   ListQueryTemplatesRequest request =
+   *       ListQueryTemplatesRequest.newBuilder()
+   *           .setParent(
+   *               DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsHubServiceClient.listQueryTemplatesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (QueryTemplate element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listQueryTemplatesPagedCallable() { + return stub.listQueryTemplatesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all QueryTemplates in a given project and location. + * + *

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+   *   QueryTemplate queryTemplate = QueryTemplate.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   QueryTemplate response =
+   *       analyticsHubServiceClient.updateQueryTemplate(queryTemplate, updateMask);
+   * }
+   * }
+ * + * @param queryTemplate Required. The QueryTemplate to update. + * @param updateMask Optional. Field mask specifies the fields to update in the query template + * resource. The fields specified in the `updateMask` are relative to the resource and are not + * a full request. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final QueryTemplate updateQueryTemplate( + QueryTemplate queryTemplate, FieldMask updateMask) { + UpdateQueryTemplateRequest request = + UpdateQueryTemplateRequest.newBuilder() + .setQueryTemplate(queryTemplate) + .setUpdateMask(updateMask) + .build(); + return updateQueryTemplate(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an existing QueryTemplate + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+   *   UpdateQueryTemplateRequest request =
+   *       UpdateQueryTemplateRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setQueryTemplate(QueryTemplate.newBuilder().build())
+   *           .build();
+   *   QueryTemplate response = analyticsHubServiceClient.updateQueryTemplate(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 QueryTemplate updateQueryTemplate(UpdateQueryTemplateRequest request) { + return updateQueryTemplateCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an existing QueryTemplate + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+   *   UpdateQueryTemplateRequest request =
+   *       UpdateQueryTemplateRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setQueryTemplate(QueryTemplate.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsHubServiceClient.updateQueryTemplateCallable().futureCall(request);
+   *   // Do something.
+   *   QueryTemplate response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + updateQueryTemplateCallable() { + return stub.updateQueryTemplateCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a query template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+   *   QueryTemplateName name =
+   *       QueryTemplateName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]");
+   *   analyticsHubServiceClient.deleteQueryTemplate(name);
+   * }
+   * }
+ * + * @param name Required. The resource path of the QueryTemplate. e.g. + * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteQueryTemplate(QueryTemplateName name) { + DeleteQueryTemplateRequest request = + DeleteQueryTemplateRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteQueryTemplate(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a query template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+   *   String name =
+   *       QueryTemplateName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]")
+   *           .toString();
+   *   analyticsHubServiceClient.deleteQueryTemplate(name);
+   * }
+   * }
+ * + * @param name Required. The resource path of the QueryTemplate. e.g. + * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteQueryTemplate(String name) { + DeleteQueryTemplateRequest request = + DeleteQueryTemplateRequest.newBuilder().setName(name).build(); + deleteQueryTemplate(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a query template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+   *   DeleteQueryTemplateRequest request =
+   *       DeleteQueryTemplateRequest.newBuilder()
+   *           .setName(
+   *               QueryTemplateName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]")
+   *                   .toString())
+   *           .build();
+   *   analyticsHubServiceClient.deleteQueryTemplate(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 void deleteQueryTemplate(DeleteQueryTemplateRequest request) { + deleteQueryTemplateCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a query template. + * + *

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+   *   QueryTemplateName name =
+   *       QueryTemplateName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]");
+   *   QueryTemplate response = analyticsHubServiceClient.submitQueryTemplate(name);
+   * }
+   * }
+ * + * @param name Required. The resource path of the QueryTemplate. e.g. + * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final QueryTemplate submitQueryTemplate(QueryTemplateName name) { + SubmitQueryTemplateRequest request = + SubmitQueryTemplateRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return submitQueryTemplate(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Submits a query template for approval. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+   *   String name =
+   *       QueryTemplateName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]")
+   *           .toString();
+   *   QueryTemplate response = analyticsHubServiceClient.submitQueryTemplate(name);
+   * }
+   * }
+ * + * @param name Required. The resource path of the QueryTemplate. e.g. + * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final QueryTemplate submitQueryTemplate(String name) { + SubmitQueryTemplateRequest request = + SubmitQueryTemplateRequest.newBuilder().setName(name).build(); + return submitQueryTemplate(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Submits a query template for approval. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+   *   SubmitQueryTemplateRequest request =
+   *       SubmitQueryTemplateRequest.newBuilder()
+   *           .setName(
+   *               QueryTemplateName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]")
+   *                   .toString())
+   *           .build();
+   *   QueryTemplate response = analyticsHubServiceClient.submitQueryTemplate(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 QueryTemplate submitQueryTemplate(SubmitQueryTemplateRequest request) { + return submitQueryTemplateCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Submits a query template for approval. + * + *

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+   *   QueryTemplateName name =
+   *       QueryTemplateName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]");
+   *   QueryTemplate response = analyticsHubServiceClient.approveQueryTemplate(name);
+   * }
+   * }
+ * + * @param name Required. The resource path of the QueryTemplate. e.g. + * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final QueryTemplate approveQueryTemplate(QueryTemplateName name) { + ApproveQueryTemplateRequest request = + ApproveQueryTemplateRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return approveQueryTemplate(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Approves a query template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+   *   String name =
+   *       QueryTemplateName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]")
+   *           .toString();
+   *   QueryTemplate response = analyticsHubServiceClient.approveQueryTemplate(name);
+   * }
+   * }
+ * + * @param name Required. The resource path of the QueryTemplate. e.g. + * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final QueryTemplate approveQueryTemplate(String name) { + ApproveQueryTemplateRequest request = + ApproveQueryTemplateRequest.newBuilder().setName(name).build(); + return approveQueryTemplate(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Approves a query template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+   *   ApproveQueryTemplateRequest request =
+   *       ApproveQueryTemplateRequest.newBuilder()
+   *           .setName(
+   *               QueryTemplateName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]")
+   *                   .toString())
+   *           .build();
+   *   QueryTemplate response = analyticsHubServiceClient.approveQueryTemplate(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 QueryTemplate approveQueryTemplate(ApproveQueryTemplateRequest request) { + return approveQueryTemplateCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Approves a query template. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+   *   ApproveQueryTemplateRequest request =
+   *       ApproveQueryTemplateRequest.newBuilder()
+   *           .setName(
+   *               QueryTemplateName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsHubServiceClient.approveQueryTemplateCallable().futureCall(request);
+   *   // Do something.
+   *   QueryTemplate response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + approveQueryTemplateCallable() { + return stub.approveQueryTemplateCallable(); + } + + @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 ListDataExchangesPagedResponse + extends AbstractPagedListResponse< + ListDataExchangesRequest, + ListDataExchangesResponse, + DataExchange, + ListDataExchangesPage, + ListDataExchangesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { ApiFuture futurePage = ListDataExchangesPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( @@ -3810,4 +4844,84 @@ protected ListSharedResourceSubscriptionsFixedSizeCollection createCollection( return new ListSharedResourceSubscriptionsFixedSizeCollection(pages, collectionSize); } } + + public static class ListQueryTemplatesPagedResponse + extends AbstractPagedListResponse< + ListQueryTemplatesRequest, + ListQueryTemplatesResponse, + QueryTemplate, + ListQueryTemplatesPage, + ListQueryTemplatesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListQueryTemplatesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListQueryTemplatesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListQueryTemplatesPagedResponse(ListQueryTemplatesPage page) { + super(page, ListQueryTemplatesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListQueryTemplatesPage + extends AbstractPage< + ListQueryTemplatesRequest, + ListQueryTemplatesResponse, + QueryTemplate, + ListQueryTemplatesPage> { + + private ListQueryTemplatesPage( + PageContext context, + ListQueryTemplatesResponse response) { + super(context, response); + } + + private static ListQueryTemplatesPage createEmptyPage() { + return new ListQueryTemplatesPage(null, null); + } + + @Override + protected ListQueryTemplatesPage createPage( + PageContext context, + ListQueryTemplatesResponse response) { + return new ListQueryTemplatesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListQueryTemplatesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListQueryTemplatesRequest, + ListQueryTemplatesResponse, + QueryTemplate, + ListQueryTemplatesPage, + ListQueryTemplatesFixedSizeCollection> { + + private ListQueryTemplatesFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListQueryTemplatesFixedSizeCollection createEmptyCollection() { + return new ListQueryTemplatesFixedSizeCollection(null, 0); + } + + @Override + protected ListQueryTemplatesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListQueryTemplatesFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubServiceSettings.java b/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubServiceSettings.java index 79f1eb9d8eb8..e9acb0285e20 100644 --- a/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubServiceSettings.java +++ b/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubServiceSettings.java @@ -19,6 +19,7 @@ import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListDataExchangesPagedResponse; import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListListingsPagedResponse; import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListOrgDataExchangesPagedResponse; +import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListQueryTemplatesPagedResponse; import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListSharedResourceSubscriptionsPagedResponse; import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListSubscriptionsPagedResponse; @@ -278,6 +279,47 @@ public UnaryCallSettings setIamPolicySettings() { return ((AnalyticsHubServiceStubSettings) getStubSettings()).testIamPermissionsSettings(); } + /** Returns the object with the settings used for calls to createQueryTemplate. */ + public UnaryCallSettings + createQueryTemplateSettings() { + return ((AnalyticsHubServiceStubSettings) getStubSettings()).createQueryTemplateSettings(); + } + + /** Returns the object with the settings used for calls to getQueryTemplate. */ + public UnaryCallSettings getQueryTemplateSettings() { + return ((AnalyticsHubServiceStubSettings) getStubSettings()).getQueryTemplateSettings(); + } + + /** Returns the object with the settings used for calls to listQueryTemplates. */ + public PagedCallSettings< + ListQueryTemplatesRequest, ListQueryTemplatesResponse, ListQueryTemplatesPagedResponse> + listQueryTemplatesSettings() { + return ((AnalyticsHubServiceStubSettings) getStubSettings()).listQueryTemplatesSettings(); + } + + /** Returns the object with the settings used for calls to updateQueryTemplate. */ + public UnaryCallSettings + updateQueryTemplateSettings() { + return ((AnalyticsHubServiceStubSettings) getStubSettings()).updateQueryTemplateSettings(); + } + + /** Returns the object with the settings used for calls to deleteQueryTemplate. */ + public UnaryCallSettings deleteQueryTemplateSettings() { + return ((AnalyticsHubServiceStubSettings) getStubSettings()).deleteQueryTemplateSettings(); + } + + /** Returns the object with the settings used for calls to submitQueryTemplate. */ + public UnaryCallSettings + submitQueryTemplateSettings() { + return ((AnalyticsHubServiceStubSettings) getStubSettings()).submitQueryTemplateSettings(); + } + + /** Returns the object with the settings used for calls to approveQueryTemplate. */ + public UnaryCallSettings + approveQueryTemplateSettings() { + return ((AnalyticsHubServiceStubSettings) getStubSettings()).approveQueryTemplateSettings(); + } + public static final AnalyticsHubServiceSettings create(AnalyticsHubServiceStubSettings stub) throws IOException { return new AnalyticsHubServiceSettings.Builder(stub.toBuilder()).build(); @@ -545,6 +587,49 @@ public UnaryCallSettings.Builder setIamPolicySettin return getStubSettingsBuilder().testIamPermissionsSettings(); } + /** Returns the builder for the settings used for calls to createQueryTemplate. */ + public UnaryCallSettings.Builder + createQueryTemplateSettings() { + return getStubSettingsBuilder().createQueryTemplateSettings(); + } + + /** Returns the builder for the settings used for calls to getQueryTemplate. */ + public UnaryCallSettings.Builder + getQueryTemplateSettings() { + return getStubSettingsBuilder().getQueryTemplateSettings(); + } + + /** Returns the builder for the settings used for calls to listQueryTemplates. */ + public PagedCallSettings.Builder< + ListQueryTemplatesRequest, ListQueryTemplatesResponse, ListQueryTemplatesPagedResponse> + listQueryTemplatesSettings() { + return getStubSettingsBuilder().listQueryTemplatesSettings(); + } + + /** Returns the builder for the settings used for calls to updateQueryTemplate. */ + public UnaryCallSettings.Builder + updateQueryTemplateSettings() { + return getStubSettingsBuilder().updateQueryTemplateSettings(); + } + + /** Returns the builder for the settings used for calls to deleteQueryTemplate. */ + public UnaryCallSettings.Builder + deleteQueryTemplateSettings() { + return getStubSettingsBuilder().deleteQueryTemplateSettings(); + } + + /** Returns the builder for the settings used for calls to submitQueryTemplate. */ + public UnaryCallSettings.Builder + submitQueryTemplateSettings() { + return getStubSettingsBuilder().submitQueryTemplateSettings(); + } + + /** Returns the builder for the settings used for calls to approveQueryTemplate. */ + public UnaryCallSettings.Builder + approveQueryTemplateSettings() { + return getStubSettingsBuilder().approveQueryTemplateSettings(); + } + @Override public AnalyticsHubServiceSettings build() throws IOException { return new AnalyticsHubServiceSettings(this); diff --git a/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/gapic_metadata.json b/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/gapic_metadata.json index 8f80aa8efa19..cb7b329b728d 100644 --- a/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/gapic_metadata.json +++ b/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/gapic_metadata.json @@ -10,18 +10,27 @@ "grpc": { "libraryClient": "AnalyticsHubServiceClient", "rpcs": { + "ApproveQueryTemplate": { + "methods": ["approveQueryTemplate", "approveQueryTemplate", "approveQueryTemplate", "approveQueryTemplateCallable"] + }, "CreateDataExchange": { "methods": ["createDataExchange", "createDataExchange", "createDataExchange", "createDataExchangeCallable"] }, "CreateListing": { "methods": ["createListing", "createListing", "createListing", "createListingCallable"] }, + "CreateQueryTemplate": { + "methods": ["createQueryTemplate", "createQueryTemplate", "createQueryTemplate", "createQueryTemplateCallable"] + }, "DeleteDataExchange": { "methods": ["deleteDataExchange", "deleteDataExchange", "deleteDataExchange", "deleteDataExchangeCallable"] }, "DeleteListing": { "methods": ["deleteListing", "deleteListing", "deleteListing", "deleteListingCallable"] }, + "DeleteQueryTemplate": { + "methods": ["deleteQueryTemplate", "deleteQueryTemplate", "deleteQueryTemplate", "deleteQueryTemplateCallable"] + }, "DeleteSubscription": { "methods": ["deleteSubscriptionAsync", "deleteSubscriptionAsync", "deleteSubscriptionAsync", "deleteSubscriptionOperationCallable", "deleteSubscriptionCallable"] }, @@ -34,6 +43,9 @@ "GetListing": { "methods": ["getListing", "getListing", "getListing", "getListingCallable"] }, + "GetQueryTemplate": { + "methods": ["getQueryTemplate", "getQueryTemplate", "getQueryTemplate", "getQueryTemplateCallable"] + }, "GetSubscription": { "methods": ["getSubscription", "getSubscription", "getSubscription", "getSubscriptionCallable"] }, @@ -46,6 +58,9 @@ "ListOrgDataExchanges": { "methods": ["listOrgDataExchanges", "listOrgDataExchanges", "listOrgDataExchangesPagedCallable", "listOrgDataExchangesCallable"] }, + "ListQueryTemplates": { + "methods": ["listQueryTemplates", "listQueryTemplates", "listQueryTemplates", "listQueryTemplatesPagedCallable", "listQueryTemplatesCallable"] + }, "ListSharedResourceSubscriptions": { "methods": ["listSharedResourceSubscriptions", "listSharedResourceSubscriptions", "listSharedResourceSubscriptions", "listSharedResourceSubscriptionsPagedCallable", "listSharedResourceSubscriptionsCallable"] }, @@ -61,6 +76,9 @@ "SetIamPolicy": { "methods": ["setIamPolicy", "setIamPolicyCallable"] }, + "SubmitQueryTemplate": { + "methods": ["submitQueryTemplate", "submitQueryTemplate", "submitQueryTemplate", "submitQueryTemplateCallable"] + }, "SubscribeDataExchange": { "methods": ["subscribeDataExchangeAsync", "subscribeDataExchangeAsync", "subscribeDataExchangeAsync", "subscribeDataExchangeOperationCallable", "subscribeDataExchangeCallable"] }, @@ -75,6 +93,9 @@ }, "UpdateListing": { "methods": ["updateListing", "updateListing", "updateListingCallable"] + }, + "UpdateQueryTemplate": { + "methods": ["updateQueryTemplate", "updateQueryTemplate", "updateQueryTemplateCallable"] } } } diff --git a/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/stub/AnalyticsHubServiceStub.java b/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/stub/AnalyticsHubServiceStub.java index 34afc1a8dba4..8952ea721972 100644 --- a/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/stub/AnalyticsHubServiceStub.java +++ b/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/stub/AnalyticsHubServiceStub.java @@ -19,20 +19,25 @@ import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListDataExchangesPagedResponse; import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListListingsPagedResponse; import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListOrgDataExchangesPagedResponse; +import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListQueryTemplatesPagedResponse; import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListSharedResourceSubscriptionsPagedResponse; import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListSubscriptionsPagedResponse; 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.bigquery.analyticshub.v1.ApproveQueryTemplateRequest; import com.google.cloud.bigquery.analyticshub.v1.CreateDataExchangeRequest; import com.google.cloud.bigquery.analyticshub.v1.CreateListingRequest; +import com.google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest; import com.google.cloud.bigquery.analyticshub.v1.DataExchange; import com.google.cloud.bigquery.analyticshub.v1.DeleteDataExchangeRequest; import com.google.cloud.bigquery.analyticshub.v1.DeleteListingRequest; +import com.google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest; import com.google.cloud.bigquery.analyticshub.v1.DeleteSubscriptionRequest; import com.google.cloud.bigquery.analyticshub.v1.GetDataExchangeRequest; import com.google.cloud.bigquery.analyticshub.v1.GetListingRequest; +import com.google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest; import com.google.cloud.bigquery.analyticshub.v1.GetSubscriptionRequest; import com.google.cloud.bigquery.analyticshub.v1.ListDataExchangesRequest; import com.google.cloud.bigquery.analyticshub.v1.ListDataExchangesResponse; @@ -40,16 +45,20 @@ import com.google.cloud.bigquery.analyticshub.v1.ListListingsResponse; import com.google.cloud.bigquery.analyticshub.v1.ListOrgDataExchangesRequest; import com.google.cloud.bigquery.analyticshub.v1.ListOrgDataExchangesResponse; +import com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest; +import com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse; import com.google.cloud.bigquery.analyticshub.v1.ListSharedResourceSubscriptionsRequest; import com.google.cloud.bigquery.analyticshub.v1.ListSharedResourceSubscriptionsResponse; import com.google.cloud.bigquery.analyticshub.v1.ListSubscriptionsRequest; import com.google.cloud.bigquery.analyticshub.v1.ListSubscriptionsResponse; import com.google.cloud.bigquery.analyticshub.v1.Listing; import com.google.cloud.bigquery.analyticshub.v1.OperationMetadata; +import com.google.cloud.bigquery.analyticshub.v1.QueryTemplate; import com.google.cloud.bigquery.analyticshub.v1.RefreshSubscriptionRequest; import com.google.cloud.bigquery.analyticshub.v1.RefreshSubscriptionResponse; import com.google.cloud.bigquery.analyticshub.v1.RevokeSubscriptionRequest; import com.google.cloud.bigquery.analyticshub.v1.RevokeSubscriptionResponse; +import com.google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest; import com.google.cloud.bigquery.analyticshub.v1.SubscribeDataExchangeRequest; import com.google.cloud.bigquery.analyticshub.v1.SubscribeDataExchangeResponse; import com.google.cloud.bigquery.analyticshub.v1.SubscribeListingRequest; @@ -57,6 +66,7 @@ import com.google.cloud.bigquery.analyticshub.v1.Subscription; import com.google.cloud.bigquery.analyticshub.v1.UpdateDataExchangeRequest; import com.google.cloud.bigquery.analyticshub.v1.UpdateListingRequest; +import com.google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; @@ -227,6 +237,40 @@ public UnaryCallable setIamPolicyCallable() { throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()"); } + public UnaryCallable createQueryTemplateCallable() { + throw new UnsupportedOperationException("Not implemented: createQueryTemplateCallable()"); + } + + public UnaryCallable getQueryTemplateCallable() { + throw new UnsupportedOperationException("Not implemented: getQueryTemplateCallable()"); + } + + public UnaryCallable + listQueryTemplatesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listQueryTemplatesPagedCallable()"); + } + + public UnaryCallable + listQueryTemplatesCallable() { + throw new UnsupportedOperationException("Not implemented: listQueryTemplatesCallable()"); + } + + public UnaryCallable updateQueryTemplateCallable() { + throw new UnsupportedOperationException("Not implemented: updateQueryTemplateCallable()"); + } + + public UnaryCallable deleteQueryTemplateCallable() { + throw new UnsupportedOperationException("Not implemented: deleteQueryTemplateCallable()"); + } + + public UnaryCallable submitQueryTemplateCallable() { + throw new UnsupportedOperationException("Not implemented: submitQueryTemplateCallable()"); + } + + public UnaryCallable approveQueryTemplateCallable() { + throw new UnsupportedOperationException("Not implemented: approveQueryTemplateCallable()"); + } + @Override public abstract void close(); } diff --git a/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/stub/AnalyticsHubServiceStubSettings.java b/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/stub/AnalyticsHubServiceStubSettings.java index 67e7f80a2cbc..d1fef13693eb 100644 --- a/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/stub/AnalyticsHubServiceStubSettings.java +++ b/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/stub/AnalyticsHubServiceStubSettings.java @@ -19,6 +19,7 @@ import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListDataExchangesPagedResponse; import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListListingsPagedResponse; import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListOrgDataExchangesPagedResponse; +import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListQueryTemplatesPagedResponse; import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListSharedResourceSubscriptionsPagedResponse; import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListSubscriptionsPagedResponse; @@ -52,14 +53,18 @@ 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.bigquery.analyticshub.v1.ApproveQueryTemplateRequest; import com.google.cloud.bigquery.analyticshub.v1.CreateDataExchangeRequest; import com.google.cloud.bigquery.analyticshub.v1.CreateListingRequest; +import com.google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest; import com.google.cloud.bigquery.analyticshub.v1.DataExchange; import com.google.cloud.bigquery.analyticshub.v1.DeleteDataExchangeRequest; import com.google.cloud.bigquery.analyticshub.v1.DeleteListingRequest; +import com.google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest; import com.google.cloud.bigquery.analyticshub.v1.DeleteSubscriptionRequest; import com.google.cloud.bigquery.analyticshub.v1.GetDataExchangeRequest; import com.google.cloud.bigquery.analyticshub.v1.GetListingRequest; +import com.google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest; import com.google.cloud.bigquery.analyticshub.v1.GetSubscriptionRequest; import com.google.cloud.bigquery.analyticshub.v1.ListDataExchangesRequest; import com.google.cloud.bigquery.analyticshub.v1.ListDataExchangesResponse; @@ -67,16 +72,20 @@ import com.google.cloud.bigquery.analyticshub.v1.ListListingsResponse; import com.google.cloud.bigquery.analyticshub.v1.ListOrgDataExchangesRequest; import com.google.cloud.bigquery.analyticshub.v1.ListOrgDataExchangesResponse; +import com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest; +import com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse; import com.google.cloud.bigquery.analyticshub.v1.ListSharedResourceSubscriptionsRequest; import com.google.cloud.bigquery.analyticshub.v1.ListSharedResourceSubscriptionsResponse; import com.google.cloud.bigquery.analyticshub.v1.ListSubscriptionsRequest; import com.google.cloud.bigquery.analyticshub.v1.ListSubscriptionsResponse; import com.google.cloud.bigquery.analyticshub.v1.Listing; import com.google.cloud.bigquery.analyticshub.v1.OperationMetadata; +import com.google.cloud.bigquery.analyticshub.v1.QueryTemplate; import com.google.cloud.bigquery.analyticshub.v1.RefreshSubscriptionRequest; import com.google.cloud.bigquery.analyticshub.v1.RefreshSubscriptionResponse; import com.google.cloud.bigquery.analyticshub.v1.RevokeSubscriptionRequest; import com.google.cloud.bigquery.analyticshub.v1.RevokeSubscriptionResponse; +import com.google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest; import com.google.cloud.bigquery.analyticshub.v1.SubscribeDataExchangeRequest; import com.google.cloud.bigquery.analyticshub.v1.SubscribeDataExchangeResponse; import com.google.cloud.bigquery.analyticshub.v1.SubscribeListingRequest; @@ -84,6 +93,7 @@ import com.google.cloud.bigquery.analyticshub.v1.Subscription; import com.google.cloud.bigquery.analyticshub.v1.UpdateDataExchangeRequest; import com.google.cloud.bigquery.analyticshub.v1.UpdateListingRequest; +import com.google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; @@ -237,6 +247,19 @@ public class AnalyticsHubServiceStubSettings extends StubSettings setIamPolicySettings; private final UnaryCallSettings testIamPermissionsSettings; + private final UnaryCallSettings + createQueryTemplateSettings; + private final UnaryCallSettings getQueryTemplateSettings; + private final PagedCallSettings< + ListQueryTemplatesRequest, ListQueryTemplatesResponse, ListQueryTemplatesPagedResponse> + listQueryTemplatesSettings; + private final UnaryCallSettings + updateQueryTemplateSettings; + private final UnaryCallSettings deleteQueryTemplateSettings; + private final UnaryCallSettings + submitQueryTemplateSettings; + private final UnaryCallSettings + approveQueryTemplateSettings; private static final PagedListDescriptor< ListDataExchangesRequest, ListDataExchangesResponse, DataExchange> @@ -433,6 +456,44 @@ public Iterable extractResources( } }; + private static final PagedListDescriptor< + ListQueryTemplatesRequest, ListQueryTemplatesResponse, QueryTemplate> + LIST_QUERY_TEMPLATES_PAGE_STR_DESC = + new PagedListDescriptor< + ListQueryTemplatesRequest, ListQueryTemplatesResponse, QueryTemplate>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListQueryTemplatesRequest injectToken( + ListQueryTemplatesRequest payload, String token) { + return ListQueryTemplatesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListQueryTemplatesRequest injectPageSize( + ListQueryTemplatesRequest payload, int pageSize) { + return ListQueryTemplatesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListQueryTemplatesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListQueryTemplatesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListQueryTemplatesResponse payload) { + return payload.getQueryTemplatesList(); + } + }; + private static final PagedListResponseFactory< ListDataExchangesRequest, ListDataExchangesResponse, ListDataExchangesPagedResponse> LIST_DATA_EXCHANGES_PAGE_STR_FACT = @@ -548,6 +609,27 @@ public ApiFuture getFuturePagedRes } }; + private static final PagedListResponseFactory< + ListQueryTemplatesRequest, ListQueryTemplatesResponse, ListQueryTemplatesPagedResponse> + LIST_QUERY_TEMPLATES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListQueryTemplatesRequest, + ListQueryTemplatesResponse, + ListQueryTemplatesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListQueryTemplatesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_QUERY_TEMPLATES_PAGE_STR_DESC, request, context); + return ListQueryTemplatesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + /** Returns the object with the settings used for calls to listDataExchanges. */ public PagedCallSettings< ListDataExchangesRequest, ListDataExchangesResponse, ListDataExchangesPagedResponse> @@ -695,6 +777,47 @@ public UnaryCallSettings setIamPolicySettings() { return testIamPermissionsSettings; } + /** Returns the object with the settings used for calls to createQueryTemplate. */ + public UnaryCallSettings + createQueryTemplateSettings() { + return createQueryTemplateSettings; + } + + /** Returns the object with the settings used for calls to getQueryTemplate. */ + public UnaryCallSettings getQueryTemplateSettings() { + return getQueryTemplateSettings; + } + + /** Returns the object with the settings used for calls to listQueryTemplates. */ + public PagedCallSettings< + ListQueryTemplatesRequest, ListQueryTemplatesResponse, ListQueryTemplatesPagedResponse> + listQueryTemplatesSettings() { + return listQueryTemplatesSettings; + } + + /** Returns the object with the settings used for calls to updateQueryTemplate. */ + public UnaryCallSettings + updateQueryTemplateSettings() { + return updateQueryTemplateSettings; + } + + /** Returns the object with the settings used for calls to deleteQueryTemplate. */ + public UnaryCallSettings deleteQueryTemplateSettings() { + return deleteQueryTemplateSettings; + } + + /** Returns the object with the settings used for calls to submitQueryTemplate. */ + public UnaryCallSettings + submitQueryTemplateSettings() { + return submitQueryTemplateSettings; + } + + /** Returns the object with the settings used for calls to approveQueryTemplate. */ + public UnaryCallSettings + approveQueryTemplateSettings() { + return approveQueryTemplateSettings; + } + public AnalyticsHubServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() @@ -835,6 +958,13 @@ protected AnalyticsHubServiceStubSettings(Builder settingsBuilder) throws IOExce getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); + createQueryTemplateSettings = settingsBuilder.createQueryTemplateSettings().build(); + getQueryTemplateSettings = settingsBuilder.getQueryTemplateSettings().build(); + listQueryTemplatesSettings = settingsBuilder.listQueryTemplatesSettings().build(); + updateQueryTemplateSettings = settingsBuilder.updateQueryTemplateSettings().build(); + deleteQueryTemplateSettings = settingsBuilder.deleteQueryTemplateSettings().build(); + submitQueryTemplateSettings = settingsBuilder.submitQueryTemplateSettings().build(); + approveQueryTemplateSettings = settingsBuilder.approveQueryTemplateSettings().build(); } /** Builder for AnalyticsHubServiceStubSettings. */ @@ -896,6 +1026,21 @@ public static class Builder private final UnaryCallSettings.Builder setIamPolicySettings; private final UnaryCallSettings.Builder testIamPermissionsSettings; + private final UnaryCallSettings.Builder + createQueryTemplateSettings; + private final UnaryCallSettings.Builder + getQueryTemplateSettings; + private final PagedCallSettings.Builder< + ListQueryTemplatesRequest, ListQueryTemplatesResponse, ListQueryTemplatesPagedResponse> + listQueryTemplatesSettings; + private final UnaryCallSettings.Builder + updateQueryTemplateSettings; + private final UnaryCallSettings.Builder + deleteQueryTemplateSettings; + private final UnaryCallSettings.Builder + submitQueryTemplateSettings; + private final UnaryCallSettings.Builder + approveQueryTemplateSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -963,6 +1108,13 @@ protected Builder(ClientContext clientContext) { getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createQueryTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getQueryTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listQueryTemplatesSettings = PagedCallSettings.newBuilder(LIST_QUERY_TEMPLATES_PAGE_STR_FACT); + updateQueryTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteQueryTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + submitQueryTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + approveQueryTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -987,7 +1139,14 @@ protected Builder(ClientContext clientContext) { deleteSubscriptionSettings, getIamPolicySettings, setIamPolicySettings, - testIamPermissionsSettings); + testIamPermissionsSettings, + createQueryTemplateSettings, + getQueryTemplateSettings, + listQueryTemplatesSettings, + updateQueryTemplateSettings, + deleteQueryTemplateSettings, + submitQueryTemplateSettings, + approveQueryTemplateSettings); initDefaults(this); } @@ -1023,6 +1182,13 @@ protected Builder(AnalyticsHubServiceStubSettings settings) { getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); + createQueryTemplateSettings = settings.createQueryTemplateSettings.toBuilder(); + getQueryTemplateSettings = settings.getQueryTemplateSettings.toBuilder(); + listQueryTemplatesSettings = settings.listQueryTemplatesSettings.toBuilder(); + updateQueryTemplateSettings = settings.updateQueryTemplateSettings.toBuilder(); + deleteQueryTemplateSettings = settings.deleteQueryTemplateSettings.toBuilder(); + submitQueryTemplateSettings = settings.submitQueryTemplateSettings.toBuilder(); + approveQueryTemplateSettings = settings.approveQueryTemplateSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -1047,7 +1213,14 @@ protected Builder(AnalyticsHubServiceStubSettings settings) { deleteSubscriptionSettings, getIamPolicySettings, setIamPolicySettings, - testIamPermissionsSettings); + testIamPermissionsSettings, + createQueryTemplateSettings, + getQueryTemplateSettings, + listQueryTemplatesSettings, + updateQueryTemplateSettings, + deleteQueryTemplateSettings, + submitQueryTemplateSettings, + approveQueryTemplateSettings); } private static Builder createDefault() { @@ -1185,6 +1358,41 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder + .createQueryTemplateSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getQueryTemplateSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listQueryTemplatesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .updateQueryTemplateSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteQueryTemplateSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .submitQueryTemplateSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .approveQueryTemplateSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .subscribeDataExchangeOperationSettings() .setInitialCallSettings( @@ -1432,6 +1640,49 @@ public UnaryCallSettings.Builder setIamPolicySettin return testIamPermissionsSettings; } + /** Returns the builder for the settings used for calls to createQueryTemplate. */ + public UnaryCallSettings.Builder + createQueryTemplateSettings() { + return createQueryTemplateSettings; + } + + /** Returns the builder for the settings used for calls to getQueryTemplate. */ + public UnaryCallSettings.Builder + getQueryTemplateSettings() { + return getQueryTemplateSettings; + } + + /** Returns the builder for the settings used for calls to listQueryTemplates. */ + public PagedCallSettings.Builder< + ListQueryTemplatesRequest, ListQueryTemplatesResponse, ListQueryTemplatesPagedResponse> + listQueryTemplatesSettings() { + return listQueryTemplatesSettings; + } + + /** Returns the builder for the settings used for calls to updateQueryTemplate. */ + public UnaryCallSettings.Builder + updateQueryTemplateSettings() { + return updateQueryTemplateSettings; + } + + /** Returns the builder for the settings used for calls to deleteQueryTemplate. */ + public UnaryCallSettings.Builder + deleteQueryTemplateSettings() { + return deleteQueryTemplateSettings; + } + + /** Returns the builder for the settings used for calls to submitQueryTemplate. */ + public UnaryCallSettings.Builder + submitQueryTemplateSettings() { + return submitQueryTemplateSettings; + } + + /** Returns the builder for the settings used for calls to approveQueryTemplate. */ + public UnaryCallSettings.Builder + approveQueryTemplateSettings() { + return approveQueryTemplateSettings; + } + @Override public AnalyticsHubServiceStubSettings build() throws IOException { return new AnalyticsHubServiceStubSettings(this); diff --git a/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/stub/GrpcAnalyticsHubServiceStub.java b/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/stub/GrpcAnalyticsHubServiceStub.java index b6f3c113b7b8..0cd4782bdd7d 100644 --- a/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/stub/GrpcAnalyticsHubServiceStub.java +++ b/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/stub/GrpcAnalyticsHubServiceStub.java @@ -19,6 +19,7 @@ import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListDataExchangesPagedResponse; import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListListingsPagedResponse; import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListOrgDataExchangesPagedResponse; +import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListQueryTemplatesPagedResponse; import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListSharedResourceSubscriptionsPagedResponse; import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListSubscriptionsPagedResponse; @@ -30,14 +31,18 @@ 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.bigquery.analyticshub.v1.ApproveQueryTemplateRequest; import com.google.cloud.bigquery.analyticshub.v1.CreateDataExchangeRequest; import com.google.cloud.bigquery.analyticshub.v1.CreateListingRequest; +import com.google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest; import com.google.cloud.bigquery.analyticshub.v1.DataExchange; import com.google.cloud.bigquery.analyticshub.v1.DeleteDataExchangeRequest; import com.google.cloud.bigquery.analyticshub.v1.DeleteListingRequest; +import com.google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest; import com.google.cloud.bigquery.analyticshub.v1.DeleteSubscriptionRequest; import com.google.cloud.bigquery.analyticshub.v1.GetDataExchangeRequest; import com.google.cloud.bigquery.analyticshub.v1.GetListingRequest; +import com.google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest; import com.google.cloud.bigquery.analyticshub.v1.GetSubscriptionRequest; import com.google.cloud.bigquery.analyticshub.v1.ListDataExchangesRequest; import com.google.cloud.bigquery.analyticshub.v1.ListDataExchangesResponse; @@ -45,16 +50,20 @@ import com.google.cloud.bigquery.analyticshub.v1.ListListingsResponse; import com.google.cloud.bigquery.analyticshub.v1.ListOrgDataExchangesRequest; import com.google.cloud.bigquery.analyticshub.v1.ListOrgDataExchangesResponse; +import com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest; +import com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse; import com.google.cloud.bigquery.analyticshub.v1.ListSharedResourceSubscriptionsRequest; import com.google.cloud.bigquery.analyticshub.v1.ListSharedResourceSubscriptionsResponse; import com.google.cloud.bigquery.analyticshub.v1.ListSubscriptionsRequest; import com.google.cloud.bigquery.analyticshub.v1.ListSubscriptionsResponse; import com.google.cloud.bigquery.analyticshub.v1.Listing; import com.google.cloud.bigquery.analyticshub.v1.OperationMetadata; +import com.google.cloud.bigquery.analyticshub.v1.QueryTemplate; import com.google.cloud.bigquery.analyticshub.v1.RefreshSubscriptionRequest; import com.google.cloud.bigquery.analyticshub.v1.RefreshSubscriptionResponse; import com.google.cloud.bigquery.analyticshub.v1.RevokeSubscriptionRequest; import com.google.cloud.bigquery.analyticshub.v1.RevokeSubscriptionResponse; +import com.google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest; import com.google.cloud.bigquery.analyticshub.v1.SubscribeDataExchangeRequest; import com.google.cloud.bigquery.analyticshub.v1.SubscribeDataExchangeResponse; import com.google.cloud.bigquery.analyticshub.v1.SubscribeListingRequest; @@ -62,6 +71,7 @@ import com.google.cloud.bigquery.analyticshub.v1.Subscription; import com.google.cloud.bigquery.analyticshub.v1.UpdateDataExchangeRequest; import com.google.cloud.bigquery.analyticshub.v1.UpdateListingRequest; +import com.google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; @@ -351,6 +361,91 @@ public class GrpcAnalyticsHubServiceStub extends AnalyticsHubServiceStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + createQueryTemplateMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService/CreateQueryTemplate") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateQueryTemplateRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(QueryTemplate.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getQueryTemplateMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService/GetQueryTemplate") + .setRequestMarshaller( + ProtoUtils.marshaller(GetQueryTemplateRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(QueryTemplate.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listQueryTemplatesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService/ListQueryTemplates") + .setRequestMarshaller( + ProtoUtils.marshaller(ListQueryTemplatesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListQueryTemplatesResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateQueryTemplateMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService/UpdateQueryTemplate") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateQueryTemplateRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(QueryTemplate.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteQueryTemplateMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService/DeleteQueryTemplate") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteQueryTemplateRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + submitQueryTemplateMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService/SubmitQueryTemplate") + .setRequestMarshaller( + ProtoUtils.marshaller(SubmitQueryTemplateRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(QueryTemplate.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + approveQueryTemplateMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService/ApproveQueryTemplate") + .setRequestMarshaller( + ProtoUtils.marshaller(ApproveQueryTemplateRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(QueryTemplate.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private final UnaryCallable listDataExchangesCallable; private final UnaryCallable @@ -401,6 +496,20 @@ public class GrpcAnalyticsHubServiceStub extends AnalyticsHubServiceStub { private final UnaryCallable setIamPolicyCallable; private final UnaryCallable testIamPermissionsCallable; + private final UnaryCallable + createQueryTemplateCallable; + private final UnaryCallable getQueryTemplateCallable; + private final UnaryCallable + listQueryTemplatesCallable; + private final UnaryCallable + listQueryTemplatesPagedCallable; + private final UnaryCallable + updateQueryTemplateCallable; + private final UnaryCallable deleteQueryTemplateCallable; + private final UnaryCallable + submitQueryTemplateCallable; + private final UnaryCallable + approveQueryTemplateCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -678,6 +787,83 @@ protected GrpcAnalyticsHubServiceStub( return builder.build(); }) .build(); + GrpcCallSettings + createQueryTemplateTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createQueryTemplateMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getQueryTemplateTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getQueryTemplateMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listQueryTemplatesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listQueryTemplatesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + updateQueryTemplateTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateQueryTemplateMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "query_template.name", + String.valueOf(request.getQueryTemplate().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteQueryTemplateTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteQueryTemplateMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + submitQueryTemplateTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(submitQueryTemplateMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + approveQueryTemplateTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(approveQueryTemplateMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); this.listDataExchangesCallable = callableFactory.createUnaryCallable( @@ -810,6 +996,44 @@ protected GrpcAnalyticsHubServiceStub( testIamPermissionsTransportSettings, settings.testIamPermissionsSettings(), clientContext); + this.createQueryTemplateCallable = + callableFactory.createUnaryCallable( + createQueryTemplateTransportSettings, + settings.createQueryTemplateSettings(), + clientContext); + this.getQueryTemplateCallable = + callableFactory.createUnaryCallable( + getQueryTemplateTransportSettings, settings.getQueryTemplateSettings(), clientContext); + this.listQueryTemplatesCallable = + callableFactory.createUnaryCallable( + listQueryTemplatesTransportSettings, + settings.listQueryTemplatesSettings(), + clientContext); + this.listQueryTemplatesPagedCallable = + callableFactory.createPagedCallable( + listQueryTemplatesTransportSettings, + settings.listQueryTemplatesSettings(), + clientContext); + this.updateQueryTemplateCallable = + callableFactory.createUnaryCallable( + updateQueryTemplateTransportSettings, + settings.updateQueryTemplateSettings(), + clientContext); + this.deleteQueryTemplateCallable = + callableFactory.createUnaryCallable( + deleteQueryTemplateTransportSettings, + settings.deleteQueryTemplateSettings(), + clientContext); + this.submitQueryTemplateCallable = + callableFactory.createUnaryCallable( + submitQueryTemplateTransportSettings, + settings.submitQueryTemplateSettings(), + clientContext); + this.approveQueryTemplateCallable = + callableFactory.createUnaryCallable( + approveQueryTemplateTransportSettings, + settings.approveQueryTemplateSettings(), + clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -987,6 +1211,48 @@ public UnaryCallable setIamPolicyCallable() { return testIamPermissionsCallable; } + @Override + public UnaryCallable createQueryTemplateCallable() { + return createQueryTemplateCallable; + } + + @Override + public UnaryCallable getQueryTemplateCallable() { + return getQueryTemplateCallable; + } + + @Override + public UnaryCallable + listQueryTemplatesCallable() { + return listQueryTemplatesCallable; + } + + @Override + public UnaryCallable + listQueryTemplatesPagedCallable() { + return listQueryTemplatesPagedCallable; + } + + @Override + public UnaryCallable updateQueryTemplateCallable() { + return updateQueryTemplateCallable; + } + + @Override + public UnaryCallable deleteQueryTemplateCallable() { + return deleteQueryTemplateCallable; + } + + @Override + public UnaryCallable submitQueryTemplateCallable() { + return submitQueryTemplateCallable; + } + + @Override + public UnaryCallable approveQueryTemplateCallable() { + return approveQueryTemplateCallable; + } + @Override public final void close() { try { 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 e07d41e31673..327d8a357d9e 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 @@ -19,6 +19,7 @@ import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListDataExchangesPagedResponse; import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListListingsPagedResponse; import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListOrgDataExchangesPagedResponse; +import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListQueryTemplatesPagedResponse; import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListSharedResourceSubscriptionsPagedResponse; import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListSubscriptionsPagedResponse; @@ -37,14 +38,18 @@ 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.bigquery.analyticshub.v1.ApproveQueryTemplateRequest; import com.google.cloud.bigquery.analyticshub.v1.CreateDataExchangeRequest; import com.google.cloud.bigquery.analyticshub.v1.CreateListingRequest; +import com.google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest; import com.google.cloud.bigquery.analyticshub.v1.DataExchange; import com.google.cloud.bigquery.analyticshub.v1.DeleteDataExchangeRequest; import com.google.cloud.bigquery.analyticshub.v1.DeleteListingRequest; +import com.google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest; import com.google.cloud.bigquery.analyticshub.v1.DeleteSubscriptionRequest; import com.google.cloud.bigquery.analyticshub.v1.GetDataExchangeRequest; import com.google.cloud.bigquery.analyticshub.v1.GetListingRequest; +import com.google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest; import com.google.cloud.bigquery.analyticshub.v1.GetSubscriptionRequest; import com.google.cloud.bigquery.analyticshub.v1.ListDataExchangesRequest; import com.google.cloud.bigquery.analyticshub.v1.ListDataExchangesResponse; @@ -52,16 +57,20 @@ import com.google.cloud.bigquery.analyticshub.v1.ListListingsResponse; import com.google.cloud.bigquery.analyticshub.v1.ListOrgDataExchangesRequest; import com.google.cloud.bigquery.analyticshub.v1.ListOrgDataExchangesResponse; +import com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest; +import com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse; import com.google.cloud.bigquery.analyticshub.v1.ListSharedResourceSubscriptionsRequest; import com.google.cloud.bigquery.analyticshub.v1.ListSharedResourceSubscriptionsResponse; import com.google.cloud.bigquery.analyticshub.v1.ListSubscriptionsRequest; import com.google.cloud.bigquery.analyticshub.v1.ListSubscriptionsResponse; import com.google.cloud.bigquery.analyticshub.v1.Listing; import com.google.cloud.bigquery.analyticshub.v1.OperationMetadata; +import com.google.cloud.bigquery.analyticshub.v1.QueryTemplate; import com.google.cloud.bigquery.analyticshub.v1.RefreshSubscriptionRequest; import com.google.cloud.bigquery.analyticshub.v1.RefreshSubscriptionResponse; import com.google.cloud.bigquery.analyticshub.v1.RevokeSubscriptionRequest; import com.google.cloud.bigquery.analyticshub.v1.RevokeSubscriptionResponse; +import com.google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest; import com.google.cloud.bigquery.analyticshub.v1.SubscribeDataExchangeRequest; import com.google.cloud.bigquery.analyticshub.v1.SubscribeDataExchangeResponse; import com.google.cloud.bigquery.analyticshub.v1.SubscribeListingRequest; @@ -69,6 +78,7 @@ import com.google.cloud.bigquery.analyticshub.v1.Subscription; import com.google.cloud.bigquery.analyticshub.v1.UpdateDataExchangeRequest; import com.google.cloud.bigquery.analyticshub.v1.UpdateListingRequest; +import com.google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; @@ -930,6 +940,262 @@ public class HttpJsonAnalyticsHubServiceStub extends AnalyticsHubServiceStub { .build()) .build(); + private static final ApiMethodDescriptor + createQueryTemplateMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService/CreateQueryTemplate") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/dataExchanges/*}/queryTemplates", + 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, "queryTemplateId", request.getQueryTemplateId()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("queryTemplate", request.getQueryTemplate(), false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(QueryTemplate.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getQueryTemplateMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService/GetQueryTemplate") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/dataExchanges/*/queryTemplates/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(QueryTemplate.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listQueryTemplatesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService/ListQueryTemplates") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/dataExchanges/*}/queryTemplates", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListQueryTemplatesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateQueryTemplateMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService/UpdateQueryTemplate") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{queryTemplate.name=projects/*/locations/*/dataExchanges/*/queryTemplates/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "queryTemplate.name", request.getQueryTemplate().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("queryTemplate", request.getQueryTemplate(), false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(QueryTemplate.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteQueryTemplateMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService/DeleteQueryTemplate") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/dataExchanges/*/queryTemplates/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + submitQueryTemplateMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService/SubmitQueryTemplate") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/dataExchanges/*/queryTemplates/*}:submit", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(QueryTemplate.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + approveQueryTemplateMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService/ApproveQueryTemplate") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/dataExchanges/*/queryTemplates/*}:approve", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(QueryTemplate.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private final UnaryCallable listDataExchangesCallable; private final UnaryCallable @@ -980,6 +1246,20 @@ public class HttpJsonAnalyticsHubServiceStub extends AnalyticsHubServiceStub { private final UnaryCallable setIamPolicyCallable; private final UnaryCallable testIamPermissionsCallable; + private final UnaryCallable + createQueryTemplateCallable; + private final UnaryCallable getQueryTemplateCallable; + private final UnaryCallable + listQueryTemplatesCallable; + private final UnaryCallable + listQueryTemplatesPagedCallable; + private final UnaryCallable + updateQueryTemplateCallable; + private final UnaryCallable deleteQueryTemplateCallable; + private final UnaryCallable + submitQueryTemplateCallable; + private final UnaryCallable + approveQueryTemplateCallable; private final BackgroundResource backgroundResources; private final HttpJsonOperationsStub httpJsonOperationsStub; @@ -1287,6 +1567,90 @@ protected HttpJsonAnalyticsHubServiceStub( return builder.build(); }) .build(); + HttpJsonCallSettings + createQueryTemplateTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createQueryTemplateMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getQueryTemplateTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getQueryTemplateMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listQueryTemplatesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listQueryTemplatesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + updateQueryTemplateTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateQueryTemplateMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "query_template.name", + String.valueOf(request.getQueryTemplate().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteQueryTemplateTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteQueryTemplateMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + submitQueryTemplateTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(submitQueryTemplateMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + approveQueryTemplateTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(approveQueryTemplateMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); this.listDataExchangesCallable = callableFactory.createUnaryCallable( @@ -1419,6 +1783,44 @@ protected HttpJsonAnalyticsHubServiceStub( testIamPermissionsTransportSettings, settings.testIamPermissionsSettings(), clientContext); + this.createQueryTemplateCallable = + callableFactory.createUnaryCallable( + createQueryTemplateTransportSettings, + settings.createQueryTemplateSettings(), + clientContext); + this.getQueryTemplateCallable = + callableFactory.createUnaryCallable( + getQueryTemplateTransportSettings, settings.getQueryTemplateSettings(), clientContext); + this.listQueryTemplatesCallable = + callableFactory.createUnaryCallable( + listQueryTemplatesTransportSettings, + settings.listQueryTemplatesSettings(), + clientContext); + this.listQueryTemplatesPagedCallable = + callableFactory.createPagedCallable( + listQueryTemplatesTransportSettings, + settings.listQueryTemplatesSettings(), + clientContext); + this.updateQueryTemplateCallable = + callableFactory.createUnaryCallable( + updateQueryTemplateTransportSettings, + settings.updateQueryTemplateSettings(), + clientContext); + this.deleteQueryTemplateCallable = + callableFactory.createUnaryCallable( + deleteQueryTemplateTransportSettings, + settings.deleteQueryTemplateSettings(), + clientContext); + this.submitQueryTemplateCallable = + callableFactory.createUnaryCallable( + submitQueryTemplateTransportSettings, + settings.submitQueryTemplateSettings(), + clientContext); + this.approveQueryTemplateCallable = + callableFactory.createUnaryCallable( + approveQueryTemplateTransportSettings, + settings.approveQueryTemplateSettings(), + clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -1449,6 +1851,13 @@ public static List getMethodDescriptors() { methodDescriptors.add(getIamPolicyMethodDescriptor); methodDescriptors.add(setIamPolicyMethodDescriptor); methodDescriptors.add(testIamPermissionsMethodDescriptor); + methodDescriptors.add(createQueryTemplateMethodDescriptor); + methodDescriptors.add(getQueryTemplateMethodDescriptor); + methodDescriptors.add(listQueryTemplatesMethodDescriptor); + methodDescriptors.add(updateQueryTemplateMethodDescriptor); + methodDescriptors.add(deleteQueryTemplateMethodDescriptor); + methodDescriptors.add(submitQueryTemplateMethodDescriptor); + methodDescriptors.add(approveQueryTemplateMethodDescriptor); return methodDescriptors; } @@ -1624,6 +2033,48 @@ public UnaryCallable setIamPolicyCallable() { return testIamPermissionsCallable; } + @Override + public UnaryCallable createQueryTemplateCallable() { + return createQueryTemplateCallable; + } + + @Override + public UnaryCallable getQueryTemplateCallable() { + return getQueryTemplateCallable; + } + + @Override + public UnaryCallable + listQueryTemplatesCallable() { + return listQueryTemplatesCallable; + } + + @Override + public UnaryCallable + listQueryTemplatesPagedCallable() { + return listQueryTemplatesPagedCallable; + } + + @Override + public UnaryCallable updateQueryTemplateCallable() { + return updateQueryTemplateCallable; + } + + @Override + public UnaryCallable deleteQueryTemplateCallable() { + return deleteQueryTemplateCallable; + } + + @Override + public UnaryCallable submitQueryTemplateCallable() { + return submitQueryTemplateCallable; + } + + @Override + public UnaryCallable approveQueryTemplateCallable() { + return approveQueryTemplateCallable; + } + @Override public final void close() { try { 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 2f4cf17d40cd..0bea571d8094 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 @@ -413,6 +413,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.bigquery.analyticshub.v1.BigQueryConfig", "queryAllDeclaredConstructors": true, @@ -521,6 +539,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.bigquery.analyticshub.v1.DataExchange", "queryAllDeclaredConstructors": true, @@ -611,6 +647,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.bigquery.analyticshub.v1.DeleteSubscriptionRequest", "queryAllDeclaredConstructors": true, @@ -746,6 +800,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.bigquery.analyticshub.v1.GetSubscriptionRequest", "queryAllDeclaredConstructors": true, @@ -890,6 +962,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.bigquery.analyticshub.v1.ListSharedResourceSubscriptionsRequest", "queryAllDeclaredConstructors": true, @@ -989,6 +1097,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.bigquery.analyticshub.v1.Listing$BigQueryDatasetSource$Replica", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.analyticshub.v1.Listing$BigQueryDatasetSource$Replica$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.analyticshub.v1.Listing$BigQueryDatasetSource$Replica$PrimaryState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.analyticshub.v1.Listing$BigQueryDatasetSource$Replica$ReplicaState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.bigquery.analyticshub.v1.Listing$BigQueryDatasetSource$RestrictedExportPolicy", "queryAllDeclaredConstructors": true, @@ -1277,6 +1421,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.bigquery.analyticshub.v1.QueryTemplate", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.analyticshub.v1.QueryTemplate$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.analyticshub.v1.QueryTemplate$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.bigquery.analyticshub.v1.RefreshSubscriptionRequest", "queryAllDeclaredConstructors": true, @@ -1367,6 +1538,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.bigquery.analyticshub.v1.Routine", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.analyticshub.v1.Routine$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.analyticshub.v1.Routine$RoutineType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.bigquery.analyticshub.v1.SharedResourceType", "queryAllDeclaredConstructors": true, @@ -1430,6 +1628,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.bigquery.analyticshub.v1.SubscribeDataExchangeRequest", "queryAllDeclaredConstructors": true, @@ -1619,6 +1835,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.iam.v1.AuditConfig", "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 30419cf4ce50..3b5da5aff721 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 @@ -19,6 +19,7 @@ import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListDataExchangesPagedResponse; import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListListingsPagedResponse; import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListOrgDataExchangesPagedResponse; +import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListQueryTemplatesPagedResponse; import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListSharedResourceSubscriptionsPagedResponse; import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListSubscriptionsPagedResponse; @@ -2100,4 +2101,737 @@ public void testIamPermissionsExceptionTest() throws Exception { // Expected exception. } } + + @Test + public void createQueryTemplateTest() throws Exception { + QueryTemplate expectedResponse = + QueryTemplate.newBuilder() + .setName( + QueryTemplateName.of( + "[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setProposer("proposer-992842892") + .setPrimaryContact("primaryContact-532068418") + .setDocumentation("documentation1587405498") + .setRoutine(Routine.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + DataExchangeName parent = DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]"); + QueryTemplate queryTemplate = QueryTemplate.newBuilder().build(); + String queryTemplateId = "queryTemplateId-1884800483"; + + QueryTemplate actualResponse = + client.createQueryTemplate(parent, queryTemplate, queryTemplateId); + 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 createQueryTemplateExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DataExchangeName parent = DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]"); + QueryTemplate queryTemplate = QueryTemplate.newBuilder().build(); + String queryTemplateId = "queryTemplateId-1884800483"; + client.createQueryTemplate(parent, queryTemplate, queryTemplateId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createQueryTemplateTest2() throws Exception { + QueryTemplate expectedResponse = + QueryTemplate.newBuilder() + .setName( + QueryTemplateName.of( + "[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setProposer("proposer-992842892") + .setPrimaryContact("primaryContact-532068418") + .setDocumentation("documentation1587405498") + .setRoutine(Routine.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-4709/locations/location-4709/dataExchanges/dataExchange-4709"; + QueryTemplate queryTemplate = QueryTemplate.newBuilder().build(); + String queryTemplateId = "queryTemplateId-1884800483"; + + QueryTemplate actualResponse = + client.createQueryTemplate(parent, queryTemplate, queryTemplateId); + 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 createQueryTemplateExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-4709/locations/location-4709/dataExchanges/dataExchange-4709"; + QueryTemplate queryTemplate = QueryTemplate.newBuilder().build(); + String queryTemplateId = "queryTemplateId-1884800483"; + client.createQueryTemplate(parent, queryTemplate, queryTemplateId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getQueryTemplateTest() throws Exception { + QueryTemplate expectedResponse = + QueryTemplate.newBuilder() + .setName( + QueryTemplateName.of( + "[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setProposer("proposer-992842892") + .setPrimaryContact("primaryContact-532068418") + .setDocumentation("documentation1587405498") + .setRoutine(Routine.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + QueryTemplateName name = + QueryTemplateName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]"); + + QueryTemplate actualResponse = client.getQueryTemplate(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getQueryTemplateExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + QueryTemplateName name = + QueryTemplateName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]"); + client.getQueryTemplate(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getQueryTemplateTest2() throws Exception { + QueryTemplate expectedResponse = + QueryTemplate.newBuilder() + .setName( + QueryTemplateName.of( + "[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setProposer("proposer-992842892") + .setPrimaryContact("primaryContact-532068418") + .setDocumentation("documentation1587405498") + .setRoutine(Routine.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-2753/locations/location-2753/dataExchanges/dataExchange-2753/queryTemplates/queryTemplate-2753"; + + QueryTemplate actualResponse = client.getQueryTemplate(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getQueryTemplateExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-2753/locations/location-2753/dataExchanges/dataExchange-2753/queryTemplates/queryTemplate-2753"; + client.getQueryTemplate(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listQueryTemplatesTest() throws Exception { + QueryTemplate responsesElement = QueryTemplate.newBuilder().build(); + ListQueryTemplatesResponse expectedResponse = + ListQueryTemplatesResponse.newBuilder() + .setNextPageToken("") + .addAllQueryTemplates(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + DataExchangeName parent = DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]"); + + ListQueryTemplatesPagedResponse pagedListResponse = client.listQueryTemplates(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getQueryTemplatesList().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 listQueryTemplatesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DataExchangeName parent = DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]"); + client.listQueryTemplates(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listQueryTemplatesTest2() throws Exception { + QueryTemplate responsesElement = QueryTemplate.newBuilder().build(); + ListQueryTemplatesResponse expectedResponse = + ListQueryTemplatesResponse.newBuilder() + .setNextPageToken("") + .addAllQueryTemplates(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-4709/locations/location-4709/dataExchanges/dataExchange-4709"; + + ListQueryTemplatesPagedResponse pagedListResponse = client.listQueryTemplates(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getQueryTemplatesList().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 listQueryTemplatesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-4709/locations/location-4709/dataExchanges/dataExchange-4709"; + client.listQueryTemplates(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateQueryTemplateTest() throws Exception { + QueryTemplate expectedResponse = + QueryTemplate.newBuilder() + .setName( + QueryTemplateName.of( + "[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setProposer("proposer-992842892") + .setPrimaryContact("primaryContact-532068418") + .setDocumentation("documentation1587405498") + .setRoutine(Routine.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + QueryTemplate queryTemplate = + QueryTemplate.newBuilder() + .setName( + QueryTemplateName.of( + "[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setProposer("proposer-992842892") + .setPrimaryContact("primaryContact-532068418") + .setDocumentation("documentation1587405498") + .setRoutine(Routine.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + QueryTemplate actualResponse = client.updateQueryTemplate(queryTemplate, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateQueryTemplateExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + QueryTemplate queryTemplate = + QueryTemplate.newBuilder() + .setName( + QueryTemplateName.of( + "[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setProposer("proposer-992842892") + .setPrimaryContact("primaryContact-532068418") + .setDocumentation("documentation1587405498") + .setRoutine(Routine.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateQueryTemplate(queryTemplate, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteQueryTemplateTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + QueryTemplateName name = + QueryTemplateName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]"); + + client.deleteQueryTemplate(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteQueryTemplateExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + QueryTemplateName name = + QueryTemplateName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]"); + client.deleteQueryTemplate(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteQueryTemplateTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-2753/locations/location-2753/dataExchanges/dataExchange-2753/queryTemplates/queryTemplate-2753"; + + client.deleteQueryTemplate(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteQueryTemplateExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-2753/locations/location-2753/dataExchanges/dataExchange-2753/queryTemplates/queryTemplate-2753"; + client.deleteQueryTemplate(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void submitQueryTemplateTest() throws Exception { + QueryTemplate expectedResponse = + QueryTemplate.newBuilder() + .setName( + QueryTemplateName.of( + "[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setProposer("proposer-992842892") + .setPrimaryContact("primaryContact-532068418") + .setDocumentation("documentation1587405498") + .setRoutine(Routine.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + QueryTemplateName name = + QueryTemplateName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]"); + + QueryTemplate actualResponse = client.submitQueryTemplate(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void submitQueryTemplateExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + QueryTemplateName name = + QueryTemplateName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]"); + client.submitQueryTemplate(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void submitQueryTemplateTest2() throws Exception { + QueryTemplate expectedResponse = + QueryTemplate.newBuilder() + .setName( + QueryTemplateName.of( + "[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setProposer("proposer-992842892") + .setPrimaryContact("primaryContact-532068418") + .setDocumentation("documentation1587405498") + .setRoutine(Routine.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-2753/locations/location-2753/dataExchanges/dataExchange-2753/queryTemplates/queryTemplate-2753"; + + QueryTemplate actualResponse = client.submitQueryTemplate(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void submitQueryTemplateExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-2753/locations/location-2753/dataExchanges/dataExchange-2753/queryTemplates/queryTemplate-2753"; + client.submitQueryTemplate(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void approveQueryTemplateTest() throws Exception { + QueryTemplate expectedResponse = + QueryTemplate.newBuilder() + .setName( + QueryTemplateName.of( + "[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setProposer("proposer-992842892") + .setPrimaryContact("primaryContact-532068418") + .setDocumentation("documentation1587405498") + .setRoutine(Routine.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + QueryTemplateName name = + QueryTemplateName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]"); + + QueryTemplate actualResponse = client.approveQueryTemplate(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void approveQueryTemplateExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + QueryTemplateName name = + QueryTemplateName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]"); + client.approveQueryTemplate(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void approveQueryTemplateTest2() throws Exception { + QueryTemplate expectedResponse = + QueryTemplate.newBuilder() + .setName( + QueryTemplateName.of( + "[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setProposer("proposer-992842892") + .setPrimaryContact("primaryContact-532068418") + .setDocumentation("documentation1587405498") + .setRoutine(Routine.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-2753/locations/location-2753/dataExchanges/dataExchange-2753/queryTemplates/queryTemplate-2753"; + + QueryTemplate actualResponse = client.approveQueryTemplate(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void approveQueryTemplateExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-2753/locations/location-2753/dataExchanges/dataExchange-2753/queryTemplates/queryTemplate-2753"; + client.approveQueryTemplate(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } 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 60a74f29fab5..f3ddf784919b 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 @@ -19,6 +19,7 @@ import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListDataExchangesPagedResponse; import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListListingsPagedResponse; import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListOrgDataExchangesPagedResponse; +import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListQueryTemplatesPagedResponse; import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListSharedResourceSubscriptionsPagedResponse; import static com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient.ListSubscriptionsPagedResponse; @@ -1835,4 +1836,628 @@ public void testIamPermissionsExceptionTest() throws Exception { // Expected exception. } } + + @Test + public void createQueryTemplateTest() throws Exception { + QueryTemplate expectedResponse = + QueryTemplate.newBuilder() + .setName( + QueryTemplateName.of( + "[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setProposer("proposer-992842892") + .setPrimaryContact("primaryContact-532068418") + .setDocumentation("documentation1587405498") + .setRoutine(Routine.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockAnalyticsHubService.addResponse(expectedResponse); + + DataExchangeName parent = DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]"); + QueryTemplate queryTemplate = QueryTemplate.newBuilder().build(); + String queryTemplateId = "queryTemplateId-1884800483"; + + QueryTemplate actualResponse = + client.createQueryTemplate(parent, queryTemplate, queryTemplateId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsHubService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateQueryTemplateRequest actualRequest = ((CreateQueryTemplateRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(queryTemplate, actualRequest.getQueryTemplate()); + Assert.assertEquals(queryTemplateId, actualRequest.getQueryTemplateId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createQueryTemplateExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsHubService.addException(exception); + + try { + DataExchangeName parent = DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]"); + QueryTemplate queryTemplate = QueryTemplate.newBuilder().build(); + String queryTemplateId = "queryTemplateId-1884800483"; + client.createQueryTemplate(parent, queryTemplate, queryTemplateId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createQueryTemplateTest2() throws Exception { + QueryTemplate expectedResponse = + QueryTemplate.newBuilder() + .setName( + QueryTemplateName.of( + "[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setProposer("proposer-992842892") + .setPrimaryContact("primaryContact-532068418") + .setDocumentation("documentation1587405498") + .setRoutine(Routine.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockAnalyticsHubService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + QueryTemplate queryTemplate = QueryTemplate.newBuilder().build(); + String queryTemplateId = "queryTemplateId-1884800483"; + + QueryTemplate actualResponse = + client.createQueryTemplate(parent, queryTemplate, queryTemplateId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsHubService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateQueryTemplateRequest actualRequest = ((CreateQueryTemplateRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(queryTemplate, actualRequest.getQueryTemplate()); + Assert.assertEquals(queryTemplateId, actualRequest.getQueryTemplateId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createQueryTemplateExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsHubService.addException(exception); + + try { + String parent = "parent-995424086"; + QueryTemplate queryTemplate = QueryTemplate.newBuilder().build(); + String queryTemplateId = "queryTemplateId-1884800483"; + client.createQueryTemplate(parent, queryTemplate, queryTemplateId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getQueryTemplateTest() throws Exception { + QueryTemplate expectedResponse = + QueryTemplate.newBuilder() + .setName( + QueryTemplateName.of( + "[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setProposer("proposer-992842892") + .setPrimaryContact("primaryContact-532068418") + .setDocumentation("documentation1587405498") + .setRoutine(Routine.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockAnalyticsHubService.addResponse(expectedResponse); + + QueryTemplateName name = + QueryTemplateName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]"); + + QueryTemplate actualResponse = client.getQueryTemplate(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsHubService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetQueryTemplateRequest actualRequest = ((GetQueryTemplateRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getQueryTemplateExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsHubService.addException(exception); + + try { + QueryTemplateName name = + QueryTemplateName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]"); + client.getQueryTemplate(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getQueryTemplateTest2() throws Exception { + QueryTemplate expectedResponse = + QueryTemplate.newBuilder() + .setName( + QueryTemplateName.of( + "[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setProposer("proposer-992842892") + .setPrimaryContact("primaryContact-532068418") + .setDocumentation("documentation1587405498") + .setRoutine(Routine.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockAnalyticsHubService.addResponse(expectedResponse); + + String name = "name3373707"; + + QueryTemplate actualResponse = client.getQueryTemplate(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsHubService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetQueryTemplateRequest actualRequest = ((GetQueryTemplateRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getQueryTemplateExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsHubService.addException(exception); + + try { + String name = "name3373707"; + client.getQueryTemplate(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listQueryTemplatesTest() throws Exception { + QueryTemplate responsesElement = QueryTemplate.newBuilder().build(); + ListQueryTemplatesResponse expectedResponse = + ListQueryTemplatesResponse.newBuilder() + .setNextPageToken("") + .addAllQueryTemplates(Arrays.asList(responsesElement)) + .build(); + mockAnalyticsHubService.addResponse(expectedResponse); + + DataExchangeName parent = DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]"); + + ListQueryTemplatesPagedResponse pagedListResponse = client.listQueryTemplates(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getQueryTemplatesList().get(0), resources.get(0)); + + List actualRequests = mockAnalyticsHubService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListQueryTemplatesRequest actualRequest = ((ListQueryTemplatesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listQueryTemplatesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsHubService.addException(exception); + + try { + DataExchangeName parent = DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]"); + client.listQueryTemplates(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listQueryTemplatesTest2() throws Exception { + QueryTemplate responsesElement = QueryTemplate.newBuilder().build(); + ListQueryTemplatesResponse expectedResponse = + ListQueryTemplatesResponse.newBuilder() + .setNextPageToken("") + .addAllQueryTemplates(Arrays.asList(responsesElement)) + .build(); + mockAnalyticsHubService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListQueryTemplatesPagedResponse pagedListResponse = client.listQueryTemplates(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getQueryTemplatesList().get(0), resources.get(0)); + + List actualRequests = mockAnalyticsHubService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListQueryTemplatesRequest actualRequest = ((ListQueryTemplatesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listQueryTemplatesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsHubService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listQueryTemplates(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateQueryTemplateTest() throws Exception { + QueryTemplate expectedResponse = + QueryTemplate.newBuilder() + .setName( + QueryTemplateName.of( + "[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setProposer("proposer-992842892") + .setPrimaryContact("primaryContact-532068418") + .setDocumentation("documentation1587405498") + .setRoutine(Routine.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockAnalyticsHubService.addResponse(expectedResponse); + + QueryTemplate queryTemplate = QueryTemplate.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + QueryTemplate actualResponse = client.updateQueryTemplate(queryTemplate, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsHubService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateQueryTemplateRequest actualRequest = ((UpdateQueryTemplateRequest) actualRequests.get(0)); + + Assert.assertEquals(queryTemplate, actualRequest.getQueryTemplate()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateQueryTemplateExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsHubService.addException(exception); + + try { + QueryTemplate queryTemplate = QueryTemplate.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateQueryTemplate(queryTemplate, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteQueryTemplateTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAnalyticsHubService.addResponse(expectedResponse); + + QueryTemplateName name = + QueryTemplateName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]"); + + client.deleteQueryTemplate(name); + + List actualRequests = mockAnalyticsHubService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteQueryTemplateRequest actualRequest = ((DeleteQueryTemplateRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteQueryTemplateExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsHubService.addException(exception); + + try { + QueryTemplateName name = + QueryTemplateName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]"); + client.deleteQueryTemplate(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteQueryTemplateTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAnalyticsHubService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteQueryTemplate(name); + + List actualRequests = mockAnalyticsHubService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteQueryTemplateRequest actualRequest = ((DeleteQueryTemplateRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteQueryTemplateExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsHubService.addException(exception); + + try { + String name = "name3373707"; + client.deleteQueryTemplate(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void submitQueryTemplateTest() throws Exception { + QueryTemplate expectedResponse = + QueryTemplate.newBuilder() + .setName( + QueryTemplateName.of( + "[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setProposer("proposer-992842892") + .setPrimaryContact("primaryContact-532068418") + .setDocumentation("documentation1587405498") + .setRoutine(Routine.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockAnalyticsHubService.addResponse(expectedResponse); + + QueryTemplateName name = + QueryTemplateName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]"); + + QueryTemplate actualResponse = client.submitQueryTemplate(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsHubService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SubmitQueryTemplateRequest actualRequest = ((SubmitQueryTemplateRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void submitQueryTemplateExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsHubService.addException(exception); + + try { + QueryTemplateName name = + QueryTemplateName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]"); + client.submitQueryTemplate(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void submitQueryTemplateTest2() throws Exception { + QueryTemplate expectedResponse = + QueryTemplate.newBuilder() + .setName( + QueryTemplateName.of( + "[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setProposer("proposer-992842892") + .setPrimaryContact("primaryContact-532068418") + .setDocumentation("documentation1587405498") + .setRoutine(Routine.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockAnalyticsHubService.addResponse(expectedResponse); + + String name = "name3373707"; + + QueryTemplate actualResponse = client.submitQueryTemplate(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsHubService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SubmitQueryTemplateRequest actualRequest = ((SubmitQueryTemplateRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void submitQueryTemplateExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsHubService.addException(exception); + + try { + String name = "name3373707"; + client.submitQueryTemplate(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void approveQueryTemplateTest() throws Exception { + QueryTemplate expectedResponse = + QueryTemplate.newBuilder() + .setName( + QueryTemplateName.of( + "[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setProposer("proposer-992842892") + .setPrimaryContact("primaryContact-532068418") + .setDocumentation("documentation1587405498") + .setRoutine(Routine.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockAnalyticsHubService.addResponse(expectedResponse); + + QueryTemplateName name = + QueryTemplateName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]"); + + QueryTemplate actualResponse = client.approveQueryTemplate(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsHubService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ApproveQueryTemplateRequest actualRequest = + ((ApproveQueryTemplateRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void approveQueryTemplateExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsHubService.addException(exception); + + try { + QueryTemplateName name = + QueryTemplateName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]"); + client.approveQueryTemplate(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void approveQueryTemplateTest2() throws Exception { + QueryTemplate expectedResponse = + QueryTemplate.newBuilder() + .setName( + QueryTemplateName.of( + "[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setProposer("proposer-992842892") + .setPrimaryContact("primaryContact-532068418") + .setDocumentation("documentation1587405498") + .setRoutine(Routine.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockAnalyticsHubService.addResponse(expectedResponse); + + String name = "name3373707"; + + QueryTemplate actualResponse = client.approveQueryTemplate(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsHubService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ApproveQueryTemplateRequest actualRequest = + ((ApproveQueryTemplateRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void approveQueryTemplateExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsHubService.addException(exception); + + try { + String name = "name3373707"; + client.approveQueryTemplate(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/java-analyticshub/google-cloud-analyticshub/src/test/java/com/google/cloud/bigquery/analyticshub/v1/MockAnalyticsHubServiceImpl.java b/java-analyticshub/google-cloud-analyticshub/src/test/java/com/google/cloud/bigquery/analyticshub/v1/MockAnalyticsHubServiceImpl.java index 439a7a51b506..2fbe4f0301f5 100644 --- a/java-analyticshub/google-cloud-analyticshub/src/test/java/com/google/cloud/bigquery/analyticshub/v1/MockAnalyticsHubServiceImpl.java +++ b/java-analyticshub/google-cloud-analyticshub/src/test/java/com/google/cloud/bigquery/analyticshub/v1/MockAnalyticsHubServiceImpl.java @@ -531,4 +531,153 @@ public void testIamPermissions( Exception.class.getName()))); } } + + @Override + public void createQueryTemplate( + CreateQueryTemplateRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof QueryTemplate) { + requests.add(request); + responseObserver.onNext(((QueryTemplate) 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 CreateQueryTemplate, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + QueryTemplate.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getQueryTemplate( + GetQueryTemplateRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof QueryTemplate) { + requests.add(request); + responseObserver.onNext(((QueryTemplate) 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 GetQueryTemplate, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + QueryTemplate.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listQueryTemplates( + ListQueryTemplatesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListQueryTemplatesResponse) { + requests.add(request); + responseObserver.onNext(((ListQueryTemplatesResponse) 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 ListQueryTemplates, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListQueryTemplatesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateQueryTemplate( + UpdateQueryTemplateRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof QueryTemplate) { + requests.add(request); + responseObserver.onNext(((QueryTemplate) 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 UpdateQueryTemplate, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + QueryTemplate.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteQueryTemplate( + DeleteQueryTemplateRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) 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 DeleteQueryTemplate, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void submitQueryTemplate( + SubmitQueryTemplateRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof QueryTemplate) { + requests.add(request); + responseObserver.onNext(((QueryTemplate) 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 SubmitQueryTemplate, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + QueryTemplate.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void approveQueryTemplate( + ApproveQueryTemplateRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof QueryTemplate) { + requests.add(request); + responseObserver.onNext(((QueryTemplate) 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 ApproveQueryTemplate, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + QueryTemplate.class.getName(), + Exception.class.getName()))); + } + } } 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 43fa526153e9..b39c33042b3d 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 @@ -1083,6 +1083,352 @@ private AnalyticsHubServiceGrpc() {} return getTestIamPermissionsMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest, + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate> + getCreateQueryTemplateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateQueryTemplate", + requestType = com.google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest.class, + responseType = com.google.cloud.bigquery.analyticshub.v1.QueryTemplate.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest, + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate> + getCreateQueryTemplateMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest, + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate> + getCreateQueryTemplateMethod; + if ((getCreateQueryTemplateMethod = AnalyticsHubServiceGrpc.getCreateQueryTemplateMethod) + == null) { + synchronized (AnalyticsHubServiceGrpc.class) { + if ((getCreateQueryTemplateMethod = AnalyticsHubServiceGrpc.getCreateQueryTemplateMethod) + == null) { + AnalyticsHubServiceGrpc.getCreateQueryTemplateMethod = + getCreateQueryTemplateMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateQueryTemplate")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsHubServiceMethodDescriptorSupplier("CreateQueryTemplate")) + .build(); + } + } + } + return getCreateQueryTemplateMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest, + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate> + getGetQueryTemplateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetQueryTemplate", + requestType = com.google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest.class, + responseType = com.google.cloud.bigquery.analyticshub.v1.QueryTemplate.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest, + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate> + getGetQueryTemplateMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest, + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate> + getGetQueryTemplateMethod; + if ((getGetQueryTemplateMethod = AnalyticsHubServiceGrpc.getGetQueryTemplateMethod) == null) { + synchronized (AnalyticsHubServiceGrpc.class) { + if ((getGetQueryTemplateMethod = AnalyticsHubServiceGrpc.getGetQueryTemplateMethod) + == null) { + AnalyticsHubServiceGrpc.getGetQueryTemplateMethod = + getGetQueryTemplateMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetQueryTemplate")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsHubServiceMethodDescriptorSupplier("GetQueryTemplate")) + .build(); + } + } + } + return getGetQueryTemplateMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest, + com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse> + getListQueryTemplatesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListQueryTemplates", + requestType = com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest.class, + responseType = com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest, + com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse> + getListQueryTemplatesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest, + com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse> + getListQueryTemplatesMethod; + if ((getListQueryTemplatesMethod = AnalyticsHubServiceGrpc.getListQueryTemplatesMethod) + == null) { + synchronized (AnalyticsHubServiceGrpc.class) { + if ((getListQueryTemplatesMethod = AnalyticsHubServiceGrpc.getListQueryTemplatesMethod) + == null) { + AnalyticsHubServiceGrpc.getListQueryTemplatesMethod = + getListQueryTemplatesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListQueryTemplates")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsHubServiceMethodDescriptorSupplier("ListQueryTemplates")) + .build(); + } + } + } + return getListQueryTemplatesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest, + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate> + getUpdateQueryTemplateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateQueryTemplate", + requestType = com.google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest.class, + responseType = com.google.cloud.bigquery.analyticshub.v1.QueryTemplate.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest, + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate> + getUpdateQueryTemplateMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest, + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate> + getUpdateQueryTemplateMethod; + if ((getUpdateQueryTemplateMethod = AnalyticsHubServiceGrpc.getUpdateQueryTemplateMethod) + == null) { + synchronized (AnalyticsHubServiceGrpc.class) { + if ((getUpdateQueryTemplateMethod = AnalyticsHubServiceGrpc.getUpdateQueryTemplateMethod) + == null) { + AnalyticsHubServiceGrpc.getUpdateQueryTemplateMethod = + getUpdateQueryTemplateMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateQueryTemplate")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsHubServiceMethodDescriptorSupplier("UpdateQueryTemplate")) + .build(); + } + } + } + return getUpdateQueryTemplateMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest, + com.google.protobuf.Empty> + getDeleteQueryTemplateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteQueryTemplate", + requestType = com.google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest, + com.google.protobuf.Empty> + getDeleteQueryTemplateMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest, + com.google.protobuf.Empty> + getDeleteQueryTemplateMethod; + if ((getDeleteQueryTemplateMethod = AnalyticsHubServiceGrpc.getDeleteQueryTemplateMethod) + == null) { + synchronized (AnalyticsHubServiceGrpc.class) { + if ((getDeleteQueryTemplateMethod = AnalyticsHubServiceGrpc.getDeleteQueryTemplateMethod) + == null) { + AnalyticsHubServiceGrpc.getDeleteQueryTemplateMethod = + getDeleteQueryTemplateMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteQueryTemplate")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsHubServiceMethodDescriptorSupplier("DeleteQueryTemplate")) + .build(); + } + } + } + return getDeleteQueryTemplateMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest, + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate> + getSubmitQueryTemplateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SubmitQueryTemplate", + requestType = com.google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest.class, + responseType = com.google.cloud.bigquery.analyticshub.v1.QueryTemplate.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest, + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate> + getSubmitQueryTemplateMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest, + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate> + getSubmitQueryTemplateMethod; + if ((getSubmitQueryTemplateMethod = AnalyticsHubServiceGrpc.getSubmitQueryTemplateMethod) + == null) { + synchronized (AnalyticsHubServiceGrpc.class) { + if ((getSubmitQueryTemplateMethod = AnalyticsHubServiceGrpc.getSubmitQueryTemplateMethod) + == null) { + AnalyticsHubServiceGrpc.getSubmitQueryTemplateMethod = + getSubmitQueryTemplateMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "SubmitQueryTemplate")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsHubServiceMethodDescriptorSupplier("SubmitQueryTemplate")) + .build(); + } + } + } + return getSubmitQueryTemplateMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest, + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate> + getApproveQueryTemplateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ApproveQueryTemplate", + requestType = com.google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest.class, + responseType = com.google.cloud.bigquery.analyticshub.v1.QueryTemplate.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest, + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate> + getApproveQueryTemplateMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest, + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate> + getApproveQueryTemplateMethod; + if ((getApproveQueryTemplateMethod = AnalyticsHubServiceGrpc.getApproveQueryTemplateMethod) + == null) { + synchronized (AnalyticsHubServiceGrpc.class) { + if ((getApproveQueryTemplateMethod = AnalyticsHubServiceGrpc.getApproveQueryTemplateMethod) + == null) { + AnalyticsHubServiceGrpc.getApproveQueryTemplateMethod = + getApproveQueryTemplateMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ApproveQueryTemplate")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsHubServiceMethodDescriptorSupplier("ApproveQueryTemplate")) + .build(); + } + } + } + return getApproveQueryTemplateMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static AnalyticsHubServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -1488,6 +1834,111 @@ default void testIamPermissions( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getTestIamPermissionsMethod(), responseObserver); } + + /** + * + * + *
+     * Creates a new QueryTemplate
+     * 
+ */ + default void createQueryTemplate( + com.google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateQueryTemplateMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a QueryTemplate
+     * 
+ */ + default void getQueryTemplate( + com.google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetQueryTemplateMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists all QueryTemplates in a given project and location.
+     * 
+ */ + default void listQueryTemplates( + com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListQueryTemplatesMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates an existing QueryTemplate
+     * 
+ */ + default void updateQueryTemplate( + com.google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateQueryTemplateMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a query template.
+     * 
+ */ + default void deleteQueryTemplate( + com.google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteQueryTemplateMethod(), responseObserver); + } + + /** + * + * + *
+     * Submits a query template for approval.
+     * 
+ */ + default void submitQueryTemplate( + com.google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSubmitQueryTemplateMethod(), responseObserver); + } + + /** + * + * + *
+     * Approves a query template.
+     * 
+ */ + default void approveQueryTemplate( + com.google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getApproveQueryTemplateMethod(), responseObserver); + } } /** @@ -1846,7 +2297,124 @@ public void revokeSubscription( com.google.cloud.bigquery.analyticshub.v1.RevokeSubscriptionResponse> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRevokeSubscriptionMethod(), getCallOptions()), + getChannel().newCall(getRevokeSubscriptionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a subscription.
+     * 
+ */ + public void deleteSubscription( + com.google.cloud.bigquery.analyticshub.v1.DeleteSubscriptionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteSubscriptionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets the IAM policy.
+     * 
+ */ + public void getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Sets the IAM policy.
+     * 
+ */ + public void setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the permissions that a caller has.
+     * 
+ */ + public void testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new QueryTemplate
+     * 
+ */ + public void createQueryTemplate( + com.google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateQueryTemplateMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a QueryTemplate
+     * 
+ */ + public void getQueryTemplate( + com.google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetQueryTemplateMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists all QueryTemplates in a given project and location.
+     * 
+ */ + public void listQueryTemplates( + com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListQueryTemplatesMethod(), getCallOptions()), request, responseObserver); } @@ -1855,14 +2423,15 @@ public void revokeSubscription( * * *
-     * Deletes a subscription.
+     * Updates an existing QueryTemplate
      * 
*/ - public void deleteSubscription( - com.google.cloud.bigquery.analyticshub.v1.DeleteSubscriptionRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void updateQueryTemplate( + com.google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteSubscriptionMethod(), getCallOptions()), + getChannel().newCall(getUpdateQueryTemplateMethod(), getCallOptions()), request, responseObserver); } @@ -1871,14 +2440,14 @@ public void deleteSubscription( * * *
-     * Gets the IAM policy.
+     * Deletes a query template.
      * 
*/ - public void getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void deleteQueryTemplate( + com.google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), + getChannel().newCall(getDeleteQueryTemplateMethod(), getCallOptions()), request, responseObserver); } @@ -1887,14 +2456,15 @@ public void getIamPolicy( * * *
-     * Sets the IAM policy.
+     * Submits a query template for approval.
      * 
*/ - public void setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void submitQueryTemplate( + com.google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), + getChannel().newCall(getSubmitQueryTemplateMethod(), getCallOptions()), request, responseObserver); } @@ -1903,15 +2473,15 @@ public void setIamPolicy( * * *
-     * Returns the permissions that a caller has.
+     * Approves a query template.
      * 
*/ - public void testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver + public void approveQueryTemplate( + com.google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), + getChannel().newCall(getApproveQueryTemplateMethod(), getCallOptions()), request, responseObserver); } @@ -2238,6 +2808,97 @@ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Creates a new QueryTemplate
+     * 
+ */ + public com.google.cloud.bigquery.analyticshub.v1.QueryTemplate createQueryTemplate( + com.google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateQueryTemplateMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a QueryTemplate
+     * 
+ */ + public com.google.cloud.bigquery.analyticshub.v1.QueryTemplate getQueryTemplate( + com.google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetQueryTemplateMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists all QueryTemplates in a given project and location.
+     * 
+ */ + public com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse listQueryTemplates( + com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListQueryTemplatesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates an existing QueryTemplate
+     * 
+ */ + public com.google.cloud.bigquery.analyticshub.v1.QueryTemplate updateQueryTemplate( + com.google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateQueryTemplateMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a query template.
+     * 
+ */ + public com.google.protobuf.Empty deleteQueryTemplate( + com.google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteQueryTemplateMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Submits a query template for approval.
+     * 
+ */ + public com.google.cloud.bigquery.analyticshub.v1.QueryTemplate submitQueryTemplate( + com.google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSubmitQueryTemplateMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Approves a query template.
+     * 
+ */ + public com.google.cloud.bigquery.analyticshub.v1.QueryTemplate approveQueryTemplate( + com.google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getApproveQueryTemplateMethod(), getCallOptions(), request); + } } /** @@ -2561,6 +3222,97 @@ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Creates a new QueryTemplate
+     * 
+ */ + public com.google.cloud.bigquery.analyticshub.v1.QueryTemplate createQueryTemplate( + com.google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateQueryTemplateMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a QueryTemplate
+     * 
+ */ + public com.google.cloud.bigquery.analyticshub.v1.QueryTemplate getQueryTemplate( + com.google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetQueryTemplateMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists all QueryTemplates in a given project and location.
+     * 
+ */ + public com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse listQueryTemplates( + com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListQueryTemplatesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates an existing QueryTemplate
+     * 
+ */ + public com.google.cloud.bigquery.analyticshub.v1.QueryTemplate updateQueryTemplate( + com.google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateQueryTemplateMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a query template.
+     * 
+ */ + public com.google.protobuf.Empty deleteQueryTemplate( + com.google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteQueryTemplateMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Submits a query template for approval.
+     * 
+ */ + public com.google.cloud.bigquery.analyticshub.v1.QueryTemplate submitQueryTemplate( + com.google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSubmitQueryTemplateMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Approves a query template.
+     * 
+ */ + public com.google.cloud.bigquery.analyticshub.v1.QueryTemplate approveQueryTemplate( + com.google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getApproveQueryTemplateMethod(), getCallOptions(), request); + } } /** @@ -2912,6 +3664,110 @@ protected AnalyticsHubServiceFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); } + + /** + * + * + *
+     * Creates a new QueryTemplate
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate> + createQueryTemplate( + com.google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateQueryTemplateMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a QueryTemplate
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate> + getQueryTemplate( + com.google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetQueryTemplateMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists all QueryTemplates in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse> + listQueryTemplates( + com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListQueryTemplatesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates an existing QueryTemplate
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate> + updateQueryTemplate( + com.google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateQueryTemplateMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a query template.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteQueryTemplate( + com.google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteQueryTemplateMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Submits a query template for approval.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate> + submitQueryTemplate( + com.google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSubmitQueryTemplateMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Approves a query template.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate> + approveQueryTemplate( + com.google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getApproveQueryTemplateMethod(), getCallOptions()), request); + } } private static final int METHODID_LIST_DATA_EXCHANGES = 0; @@ -2936,6 +3792,13 @@ protected AnalyticsHubServiceFutureStub build( private static final int METHODID_GET_IAM_POLICY = 19; private static final int METHODID_SET_IAM_POLICY = 20; private static final int METHODID_TEST_IAM_PERMISSIONS = 21; + private static final int METHODID_CREATE_QUERY_TEMPLATE = 22; + private static final int METHODID_GET_QUERY_TEMPLATE = 23; + private static final int METHODID_LIST_QUERY_TEMPLATES = 24; + private static final int METHODID_UPDATE_QUERY_TEMPLATE = 25; + private static final int METHODID_DELETE_QUERY_TEMPLATE = 26; + private static final int METHODID_SUBMIT_QUERY_TEMPLATE = 27; + private static final int METHODID_APPROVE_QUERY_TEMPLATE = 28; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -3088,6 +3951,48 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_CREATE_QUERY_TEMPLATE: + serviceImpl.createQueryTemplate( + (com.google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_QUERY_TEMPLATE: + serviceImpl.getQueryTemplate( + (com.google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_QUERY_TEMPLATES: + serviceImpl.listQueryTemplates( + (com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse>) + responseObserver); + break; + case METHODID_UPDATE_QUERY_TEMPLATE: + serviceImpl.updateQueryTemplate( + (com.google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_QUERY_TEMPLATE: + serviceImpl.deleteQueryTemplate( + (com.google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SUBMIT_QUERY_TEMPLATE: + serviceImpl.submitQueryTemplate( + (com.google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_APPROVE_QUERY_TEMPLATE: + serviceImpl.approveQueryTemplate( + (com.google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; default: throw new AssertionError(); } @@ -3253,6 +4158,54 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse>( service, METHODID_TEST_IAM_PERMISSIONS))) + .addMethod( + getCreateQueryTemplateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest, + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate>( + service, METHODID_CREATE_QUERY_TEMPLATE))) + .addMethod( + getGetQueryTemplateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest, + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate>( + service, METHODID_GET_QUERY_TEMPLATE))) + .addMethod( + getListQueryTemplatesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest, + com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse>( + service, METHODID_LIST_QUERY_TEMPLATES))) + .addMethod( + getUpdateQueryTemplateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest, + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate>( + service, METHODID_UPDATE_QUERY_TEMPLATE))) + .addMethod( + getDeleteQueryTemplateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_QUERY_TEMPLATE))) + .addMethod( + getSubmitQueryTemplateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest, + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate>( + service, METHODID_SUBMIT_QUERY_TEMPLATE))) + .addMethod( + getApproveQueryTemplateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest, + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate>( + service, METHODID_APPROVE_QUERY_TEMPLATE))) .build(); } @@ -3326,6 +4279,13 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getGetIamPolicyMethod()) .addMethod(getSetIamPolicyMethod()) .addMethod(getTestIamPermissionsMethod()) + .addMethod(getCreateQueryTemplateMethod()) + .addMethod(getGetQueryTemplateMethod()) + .addMethod(getListQueryTemplatesMethod()) + .addMethod(getUpdateQueryTemplateMethod()) + .addMethod(getDeleteQueryTemplateMethod()) + .addMethod(getSubmitQueryTemplateMethod()) + .addMethod(getApproveQueryTemplateMethod()) .build(); } } 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 00408df918ae..658ff3cd6bc1 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 @@ -32,6 +32,46 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_bigquery_analyticshub_v1_DataExchange_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_bigquery_analyticshub_v1_DataExchange_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_analyticshub_v1_QueryTemplate_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_analyticshub_v1_QueryTemplate_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_analyticshub_v1_Routine_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_analyticshub_v1_Routine_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_analyticshub_v1_CreateQueryTemplateRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_analyticshub_v1_CreateQueryTemplateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_analyticshub_v1_GetQueryTemplateRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_analyticshub_v1_GetQueryTemplateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_analyticshub_v1_ListQueryTemplatesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_analyticshub_v1_ListQueryTemplatesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_analyticshub_v1_ListQueryTemplatesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_analyticshub_v1_ListQueryTemplatesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_analyticshub_v1_UpdateQueryTemplateRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_analyticshub_v1_UpdateQueryTemplateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_analyticshub_v1_DeleteQueryTemplateRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_analyticshub_v1_DeleteQueryTemplateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_analyticshub_v1_SubmitQueryTemplateRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_analyticshub_v1_SubmitQueryTemplateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_analyticshub_v1_ApproveQueryTemplateRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_analyticshub_v1_ApproveQueryTemplateRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_bigquery_analyticshub_v1_SharingEnvironmentConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -84,6 +124,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_bigquery_analyticshub_v1_Listing_BigQueryDatasetSource_RestrictedExportPolicy_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_bigquery_analyticshub_v1_Listing_BigQueryDatasetSource_RestrictedExportPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_analyticshub_v1_Listing_BigQueryDatasetSource_Replica_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_analyticshub_v1_Listing_BigQueryDatasetSource_Replica_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_bigquery_analyticshub_v1_Listing_PubSubTopicSource_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -273,12 +317,74 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "(analyticshub.googleapis.com/DataExchange\022Eprojects/{project}/" + "locations/{location}/dataExchanges/{data_exchange}B\021\n" + "\017_discovery_typeB&\n" - + "$_log_linked_dataset_query_user_email\"\224\004\n" + + "$_log_linked_dataset_query_user_email\"\267\005\n\r" + + "QueryTemplate\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\025\n" + + "\010proposer\030\004 \001(\tB\003\340A\001\022\034\n" + + "\017primary_contact\030\n" + + " \001(\tB\003\340A\001\022\032\n\r" + + "documentation\030\005 \001(\tB\003\340A\001\022N\n" + + "\005state\030\006 \001(\0162:.google.cloud.bigquery." + + "analyticshub.v1.QueryTemplate.StateB\003\340A\003\022D\n" + + "\007routine\030\007" + + " \001(\0132..google.cloud.bigquery.analyticshub.v1.RoutineB\003\340A\001\0224\n" + + "\013create_time\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\t \001(\0132\032.google.protobuf.TimestampB\003\340A\003\"S\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\013\n" + + "\007DRAFTED\020\001\022\013\n" + + "\007PENDING\020\002\022\013\n" + + "\007DELETED\020\003\022\014\n" + + "\010APPROVED\020\004:\265\001\352A\261\001\n" + + ")analyticshub.googleapis.com/QueryTemplate\022eproje" + + "cts/{project}/locations/{location}/dataE" + + "xchanges/{data_exchange}/queryTemplates/{query_template}*\016queryTemplates2\r" + + "queryTemplate\"\306\001\n" + + "\007Routine\022U\n" + + "\014routine_type\030\001 \001(" + + "\0162:.google.cloud.bigquery.analyticshub.v1.Routine.RoutineTypeB\003\340A\002\022\034\n" + + "\017definition_body\030\002 \001(\tB\003\340A\001\"F\n" + + "\013RoutineType\022\034\n" + + "\030ROUTINE_TYPE_UNSPECIFIED\020\000\022\031\n" + + "\025TABLE_VALUED_FUNCTION\020\001\"\321\001\n" + + "\032CreateQueryTemplateRequest\022@\n" + + "\006parent\030\001 \001(\tB0\340A\002\372A*\n" + + "(analyticshub.googleapis.com/DataExchange\022\036\n" + + "\021query_template_id\030\002 \001(\tB\003\340A\002\022Q\n" + + "\016query_template\030\003 \001(" + + "\01324.google.cloud.bigquery.analyticshub.v1.QueryTemplateB\003\340A\002\"Z\n" + + "\027GetQueryTemplateRequest\022?\n" + + "\004name\030\001 \001(\tB1\340A\002\372A+\n" + + ")analyticshub.googleapis.com/QueryTemplate\"\216\001\n" + + "\031ListQueryTemplatesRequest\022@\n" + + "\006parent\030\001 \001(\tB0\340A\002\372A*\n" + + "(analyticshub.googleapis.com/DataExchange\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\"\204\001\n" + + "\032ListQueryTemplatesResponse\022M\n" + + "\017query_templates\030\001 \003(\01324.goog" + + "le.cloud.bigquery.analyticshub.v1.QueryTemplate\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\245\001\n" + + "\032UpdateQueryTemplateRequest\0224\n" + + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022Q\n" + + "\016query_template\030\002 \001(\01324.google.cloud.big" + + "query.analyticshub.v1.QueryTemplateB\003\340A\002\"]\n" + + "\032DeleteQueryTemplateRequest\022?\n" + + "\004name\030\001 \001(\tB1\340A\002\372A+\n" + + ")analyticshub.googleapis.com/QueryTemplate\"]\n" + + "\032SubmitQueryTemplateRequest\022?\n" + + "\004name\030\001 \001(\tB1\340A\002\372A+\n" + + ")analyticshub.googleapis.com/QueryTemplate\"^\n" + + "\033ApproveQueryTemplateRequest\022?\n" + + "\004name\030\001 \001(\tB1\340A\002\372A+\n" + + ")analyticshub.googleapis.com/QueryTemplate\"\224\004\n" + "\030SharingEnvironmentConfig\022x\n" - + "\027default_exchange_config\030\001 \001(\0132U.google.cloud.bigquery.anal" - + "yticshub.v1.SharingEnvironmentConfig.DefaultExchangeConfigH\000\022p\n" - + "\023dcr_exchange_config\030\002 \001(\0132Q.google.cloud.bigquery.analyt" - + "icshub.v1.SharingEnvironmentConfig.DcrExchangeConfigH\000\032\027\n" + + "\027default_exchange_config\030\001 \001(\0132U.google.cl" + + "oud.bigquery.analyticshub.v1.SharingEnvironmentConfig.DefaultExchangeConfigH\000\022p\n" + + "\023dcr_exchange_config\030\002 \001(\0132Q.google.clou" + + "d.bigquery.analyticshub.v1.SharingEnvironmentConfig.DcrExchangeConfigH\000\032\027\n" + "\025DefaultExchangeConfig\032\343\001\n" + "\021DcrExchangeConfig\022>\n" + ",single_selected_resource_sharing_restriction\030\001" @@ -296,64 +402,70 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017primary_contact\030\002 \001(\tB\003\340A\001\"O\n" + "\033DestinationDatasetReference\022\027\n\n" + "dataset_id\030\001 \001(\tB\003\340A\002\022\027\n\n" - + "project_id\030\002 \001(\tB\003\340A\002\"\214\003\n" + + "project_id\030\002 \001(\tB\003\340A\002\"\254\003\n" + "\022DestinationDataset\022b\n" - + "\021dataset_reference\030\001 \001(\0132B.google.cloud.bi" - + "gquery.analyticshub.v1.DestinationDatasetReferenceB\003\340A\002\0228\n\r" + + "\021dataset_reference\030\001 \001(\0132" + + "B.google.cloud.bigquery.analyticshub.v1.DestinationDatasetReferenceB\003\340A\002\0228\n\r" + "friendly_name\030\002 \001(\0132\034.google.protobuf.StringValueB\003\340A\001\0226\n" + "\013description\030\003" + " \001(\0132\034.google.protobuf.StringValueB\003\340A\001\022Z\n" - + "\006labels\030\004 \003(\0132E.google.cloud" - + ".bigquery.analyticshub.v1.DestinationDataset.LabelsEntryB\003\340A\001\022\025\n" - + "\010location\030\005 \001(\tB\003\340A\002\032-\n" + + "\006labels\030\004 \003(\0132E.google.cloud.bigquery.analyticshub." + + "v1.DestinationDataset.LabelsEntryB\003\340A\001\022\025\n" + + "\010location\030\005 \001(\tB\003\340A\002\022\036\n" + + "\021replica_locations\030\006 \003(\tB\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\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\"\264\033\n" + + "\023pubsub_subscription\030\001 \001" + + "(\01329.google.cloud.bigquery.analyticshub.v1.PubSubSubscriptionB\003\340A\002\"\243" + + " \n" + "\007Listing\022`\n" - + "\020bigquery_dataset\030\006 \001(\0132D.google.cloud.bigquery." - + "analyticshub.v1.Listing.BigQueryDatasetSourceH\000\022X\n" - + "\014pubsub_topic\030\020 \001(\0132@.google.c" - + "loud.bigquery.analyticshub.v1.Listing.PubSubTopicSourceH\000\022\021\n" + + "\020bigquery_dataset\030\006 \001(\0132D.google.cloud." + + "bigquery.analyticshub.v1.Listing.BigQueryDatasetSourceH\000\022X\n" + + "\014pubsub_topic\030\020 \001(\0132@" + + ".google.cloud.bigquery.analyticshub.v1.Listing.PubSubTopicSourceH\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\034\n" + "\017primary_contact\030\004 \001(\tB\003\340A\001\022\032\n\r" + "documentation\030\005 \001(\tB\003\340A\001\022H\n" - + "\005state\030\007 \001" - + "(\01624.google.cloud.bigquery.analyticshub.v1.Listing.StateB\003\340A\003\022\021\n" + + "\005state\030\007" + + " \001(\01624.google.cloud.bigquery.analyticshub.v1.Listing.StateB\003\340A\003\022\021\n" + "\004icon\030\010 \001(\014B\003\340A\001\022O\n\r" - + "data_provider\030\t \001(\01323.google.cloud.b" - + "igquery.analyticshub.v1.DataProviderB\003\340A\001\022P\n\n" + + "data_provider\030\t \001(\01323.googl" + + "e.cloud.bigquery.analyticshub.v1.DataProviderB\003\340A\001\022P\n\n" + "categories\030\n" - + " \003(\01627.google.cloud.big" - + "query.analyticshub.v1.Listing.CategoryB\003\340A\001\022H\n" - + "\tpublisher\030\013" - + " \001(\01320.google.cloud.bigquery.analyticshub.v1.PublisherB\003\340A\001\022\033\n" + + " \003(\01627.google." + + "cloud.bigquery.analyticshub.v1.Listing.CategoryB\003\340A\001\022H\n" + + "\tpublisher\030\013 \001(\01320.google" + + ".cloud.bigquery.analyticshub.v1.PublisherB\003\340A\001\022\033\n" + "\016request_access\030\014 \001(\tB\003\340A\001\022l\n" + "\030restricted_export_config\030\r" - + " \001(\0132E.google.cloud.bigq" - + "uery.analyticshub.v1.Listing.RestrictedExportConfigB\003\340A\001\022V\n" - + "\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\022`\n" - + "\017commercial_info\030\021 \001(\0132=.google.cloud.bigquery" - + ".analyticshub.v1.Listing.CommercialInfoB\003\340A\003H\002\210\001\001\0225\n" + + " \001(\0132E.google.c" + + "loud.bigquery.analyticshub.v1.Listing.RestrictedExportConfigB\003\340A\001\022V\n" + + "\016discovery_type\030\016" + + " \001(\01624.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\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\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" + + " \001(\010B\003\340A\001H\004\210\001\001\032\204\n\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.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" + + "\022selected_resources\030\002 \003(\0132U.googl" + + "e.cloud.bigquery.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.BigQueryDatasetSource.RestrictedExportPolicyB\003\340A\001\022\036\n" + + "\021replica_locations\030\005 \003(\tB\003\340A\001\022m\n" + + "\022effective_replicas\030\006 \003(\0132L.google.cloud.bigquery.analyticshub.v1.Li" + + "sting.BigQueryDatasetSource.ReplicaB\003\340A\003\032\222\001\n" + "\020SelectedResource\0226\n" + "\005table\030\001 \001(\tB%\340A\001\372A\037\n" + "\035bigquery.googleapis.com/TableH\000\022:\n" @@ -365,7 +477,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\034restrict_direct_table_access\030\002" + " \001(\0132\032.google.protobuf.BoolValueB\003\340A\001\022>\n" + "\025restrict_query_result\030\003" - + " \001(\0132\032.google.protobuf.BoolValueB\003\340A\001\032k\n" + + " \001(\0132\032.google.protobuf.BoolValueB\003\340A\001\032\273\003\n" + + "\007Replica\022\025\n" + + "\010location\030\001 \001(\tB\003\340A\003\022u\n\r" + + "replica_state\030\002 \001(\0162Y.google.cloud.bigqu" + + "ery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica.ReplicaStateB\003\340A\003\022z\n\r" + + "primary_state\030\003 \001(\0162Y.google.cloud.bigque" + + "ry.analyticshub.v1.Listing.BigQueryDatas" + + "etSource.Replica.PrimaryStateB\003\340A\003H\000\210\001\001\"P\n" + + "\014ReplicaState\022\035\n" + + "\031REPLICA_STATE_UNSPECIFIED\020\000\022\020\n" + + "\014READY_TO_USE\020\001\022\017\n" + + "\013UNAVAILABLE\020\002\"B\n" + + "\014PrimaryState\022\035\n" + + "\031PRIMARY_STATE_UNSPECIFIED\020\000\022\023\n" + + "\017PRIMARY_REPLICA\020\001B\020\n" + + "\016_primary_state\032k\n" + "\021PubSubTopicSource\0222\n" + "\005topic\030\001 \001(\tB#\340A\002\372A\035\n" + "\033pubsub.googleapis.com/Topic\022\"\n" @@ -375,14 +502,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\034restrict_direct_table_access\030\001 \001(\010B\003\340A\003\022\"\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" + + "\021cloud_marketplace\030\001 \001(\0132X.google.cloud.bigquery.analyt" + + "icshub.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" + + "\020commercial_state\030\003 \001(\0162h.google.cloud.bigquery.analytics" + + "hub.v1.Listing.CommercialInfo.GoogleClou" + + "dMarketplaceInfo.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" @@ -392,7 +519,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022_cloud_marketplace\"*\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\n\n" - + "\006ACTIVE\020\001\"\267\004\n" + + "\006ACTIVE\020\001\"\331\004\n" + "\010Category\022\030\n" + "\024CATEGORY_UNSPECIFIED\020\000\022\023\n" + "\017CATEGORY_OTHERS\020\001\022&\n" @@ -415,9 +542,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017CATEGORY_SPORTS\020\020\022!\n" + "\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}/locations/{location}/d" - + "ataExchanges/{data_exchange}/listings/{listing}B\010\n" + + "\033CATEGORY_TRAVEL_AND_TOURISM\020\023\022 \n" + + "\034CATEGORY_GOOGLE_EARTH_ENGINE\020\024:\202\001\352A\177\n" + + "#analyticshub.googleapis.com/Listing\022Xprojects/" + + "{project}/locations/{location}/dataExchanges/{data_exchange}/listings/{listing}B\010\n" + "\006sourceB\021\n" + "\017_discovery_typeB\022\n" + "\020_commercial_infoB&\n" @@ -433,45 +561,45 @@ 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.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" + + "\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.bi" + + "gquery.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.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" + + "\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.google.cloud.bigquer" + + "y.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" + + " \001(\0132B.google.clou" + + "d.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\022[\n" - + "\023destination_dataset\030\017 \001(\01329.google" - + ".cloud.bigquery.analyticshub.v1.DestinationDatasetB\003\340A\001\032}\n" + + "\023destination_dataset\030\017 \001(\01329.google.cloud.b" + + "igquery.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\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" + + "\021cloud_marketplace\030\001 \001(\0132].google.cloud.bigq" + + "uery.analyticshub.v1.Subscription.Commer" + + "cialInfo.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.analytics" - + "hub.v1.Subscription.LinkedResource:\0028\001\"U\n" + + "\005value\030\002 \001(\0132B" + + ".google.cloud.bigquery.analyticshub.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}/locatio" - + "ns/{location}/subscriptions/{subscription}B\017\n\r" + + "(analyticshub.googleapis.com/Subscrip" + + "tion\022Dprojects/{project}/locations/{location}/subscriptions/{subscription}B\017\n\r" + "resource_nameB&\n" + "$_log_linked_dataset_query_user_email\"\203\001\n" + "\030ListDataExchangesRequest\022@\n" @@ -480,16 +608,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tpage_size\030\002 \001(\005\022\022\n\n" + "page_token\030\003 \001(\t\"\201\001\n" + "\031ListDataExchangesResponse\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\"_\n" + "\033ListOrgDataExchangesRequest\022\031\n" + "\014organization\030\001 \001(\tB\003\340A\002\022\021\n" + "\tpage_size\030\002 \001(\005\022\022\n\n" + "page_token\030\003 \001(\t\"\204\001\n" + "\034ListOrgDataExchangesResponse\022K\n" - + "\016data_exchanges\030\001 \003(\0132" - + "3.google.cloud.bigquery.analyticshub.v1.DataExchange\022\027\n" + + "\016data_exchanges\030\001 \003(\01323.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" @@ -498,13 +626,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.c" + + "loud.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.goo" + + "gle.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" @@ -514,8 +642,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..go" + + "ogle.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" @@ -524,45 +652,46 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(\tB0\340A\002\372A*\n" + "(analyticshub.googleapis.com/DataExchange\022\027\n\n" + "listing_id\030\002 \001(\tB\003\340A\002\022D\n" - + "\007listing\030\003" - + " \001(\0132..google.cloud.bigquery.analyticshub.v1.ListingB\003\340A\002\"\222\001\n" + + "\007listing\030\003 \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\022\036\n" + "\021delete_commercial\030\002 \001(\010B\003\340A\001\"\270\002\n" + "\027SubscribeListingRequest\022]\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" + + "\023destination_dataset\030\003 \001(\01329.google.cloud.bigquery." + + "analyticshub.v1.DestinationDatasetB\003\340A\004H\000\022t\n" + + "\037destination_pubsub_subscription\030\005 \001" + + "(\0132D.google.cloud.bigquery.analyticshub." + + "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.cloud.bigquery.a" - + "nalyticshub.v1.DestinationDatasetB\003\340A\001\022\031\n" + + "\023destination_dataset\030\005" + + " \001(\01329.google.cloud.bigquery.analyticshub.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.cl" - + "oud.bigquery.analyticshub.v1.Subscription\"\\\n" + + "\014subscription\030\001" + + " \001(\01323.google.cloud.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.cl" - + "oud.bigquery.analyticshub.v1.Subscription\"X\n" + + "\014subscription\030\001" + + " \001(\01323.google.cloud.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" @@ -583,8 +712,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tpage_size\030\003 \001(\005\022\022\n\n" + "page_token\030\004 \001(\t\"\236\001\n" + "\'ListSharedResourceSubscriptionsResponse\022Z\n" - + "\035shared_resource_subscriptions\030\001" - + " \003(\01323.google.cloud.bigquery.analyticshub.v1.Subscription\022\027\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" + "\031RevokeSubscriptionRequest\022>\n" + "\004name\030\001 \001(\tB0\340A\002\372A*\n" @@ -609,139 +738,198 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022SharedResourceType\022$\n" + " SHARED_RESOURCE_TYPE_UNSPECIFIED\020\000\022\024\n" + "\020BIGQUERY_DATASET\020\001\022\020\n" - + "\014PUBSUB_TOPIC\020\0022\332*\n" + + "\014PUBSUB_TOPIC\020\0022\2008\n" + "\023AnalyticsHubService\022\332\001\n" - + "\021ListDataExchanges\022?.google.cloud.bigquery.analyticshub.v1" - + ".ListDataExchangesRequest\032@.google.cloud.bigquery.analyticshub.v1.ListDataExchan" - + "gesResponse\"B\332A\006parent\202\323\344\223\0023\0221/v1/{paren" - + "t=projects/*/locations/*}/dataExchanges\022\364\001\n" - + "\024ListOrgDataExchanges\022B.google.cloud.bigquery.analyticshub.v1.ListOrgDataExch" - + "angesRequest\032C.google.cloud.bigquery.analyticshub.v1.ListOrgDataExchangesRespons" - + "e\"S\332A\014organization\202\323\344\223\002>\022\022\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/*/" + + "\022DeleteDataExchange\022@.google.cloud.bigquery.analyticshub.v1" + + ".DeleteDataExchangeRequest\032\026.google.prot" + + "obuf.Empty\"@\332A\004name\202\323\344\223\0023*1/v1/{name=projects/*/locations/*/dataExchanges/*}\022\326\001\n" + + "\014ListListings\022:.google.cloud.bigquery.an" + + "alyticshub.v1.ListListingsRequest\032;.google.cloud.bigquery.analyticshub.v1.ListLi" + + "stingsResponse\"M\332A\006parent\202\323\344\223\002>\022\022*.google" + + ".cloud.bigquery.analyticshub.v1.Subscrib" + + "eListingRequest\032?.google.cloud.bigquery." + + "analyticshub.v1.SubscribeListingResponse" + + "\"X\332A\004name\202\323\344\223\002K\"F/v1/{name=projects/*/lo" + + "cations/*/dataExchanges/*/listings/*}:su" + + "bscribe:\001*\022\200\002\n\025SubscribeDataExchange\022C.g" + + "oogle.cloud.bigquery.analyticshub.v1.Sub" + + "scribeDataExchangeRequest\032\035.google.longr" + + "unning.Operation\"\202\001\312A2\n\035SubscribeDataExc" + + "hangeResponse\022\021OperationMetadata\332A\004name\202" + + "\323\344\223\002@\";/v1/{name=projects/*/locations/*/" + + "dataExchanges/*}:subscribe:\001*\022\367\001\n\023Refres" + + "hSubscription\022A.google.cloud.bigquery.an" + + "alyticshub.v1.RefreshSubscriptionRequest" + + "\032\035.google.longrunning.Operation\"~\312A0\n\033Re" + + "freshSubscriptionResponse\022\021OperationMeta" + + "data\332A\004name\202\323\344\223\002>\"9/v1/{name=projects/*/" + + "locations/*/subscriptions/*}:refresh:\001*\022" + + "\307\001\n\017GetSubscription\022=.google.cloud.bigqu" + + "ery.analyticshub.v1.GetSubscriptionReque" + + "st\0323.google.cloud.bigquery.analyticshub." + + "v1.Subscription\"@\332A\004name\202\323\344\223\0023\0221/v1/{nam" + + "e=projects/*/locations/*/subscriptions/*" + + "}\022\332\001\n\021ListSubscriptions\022?.google.cloud.b" + + "igquery.analyticshub.v1.ListSubscription" + + "sRequest\032@.google.cloud.bigquery.analyti" + + "cshub.v1.ListSubscriptionsResponse\"B\332A\006p" + + "arent\202\323\344\223\0023\0221/v1/{parent=projects/*/loca" + + "tions/*}/subscriptions\022\364\002\n\037ListSharedRes" + + "ourceSubscriptions\022M.google.cloud.bigque" + + "ry.analyticshub.v1.ListSharedResourceSub" + + "scriptionsRequest\032N.google.cloud.bigquer" + + "y.analyticshub.v1.ListSharedResourceSubs" + + "criptionsResponse\"\261\001\332A\010resource\202\323\344\223\002\237\001\022G" + + "/v1/{resource=projects/*/locations/*/dat" + + "aExchanges/*}:listSubscriptionsZT\022R/v1/{" + + "resource=projects/*/locations/*/dataExch" + + "anges/*/listings/*}:listSubscriptions\022\345\001" + + "\n\022RevokeSubscription\022@.google.cloud.bigq" + + "uery.analyticshub.v1.RevokeSubscriptionR" + + "equest\032A.google.cloud.bigquery.analytics" + + "hub.v1.RevokeSubscriptionResponse\"J\332A\004na" + + "me\202\323\344\223\002=\"8/v1/{name=projects/*/locations" + + "/*/subscriptions/*}:revoke:\001*\022\344\001\n\022Delete" + + "Subscription\022@.google.cloud.bigquery.ana" + + "lyticshub.v1.DeleteSubscriptionRequest\032\035" + + ".google.longrunning.Operation\"m\312A*\n\025goog" + + "le.protobuf.Empty\022\021OperationMetadata\332A\004n" + + "ame\202\323\344\223\0023*1/v1/{name=projects/*/location" + + "s/*/subscriptions/*}\022\267\002\n\014GetIamPolicy\022\"." + + "google.iam.v1.GetIamPolicyRequest\032\025.goog" + + "le.iam.v1.Policy\"\353\001\202\323\344\223\002\344\001\"B/v1/{resourc" + + "e=projects/*/locations/*/dataExchanges/*" + + "}:getIamPolicy:\001*ZR\"M/v1/{resource=proje" + + "cts/*/locations/*/dataExchanges/*/listin" + + "gs/*}:getIamPolicy:\001*ZG\"B/v1/{resource=p" + + "rojects/*/locations/*/subscriptions/*}:g" + + "etIamPolicy:\001*\022\267\002\n\014SetIamPolicy\022\".google" + + ".iam.v1.SetIamPolicyRequest\032\025.google.iam" + + ".v1.Policy\"\353\001\202\323\344\223\002\344\001\"B/v1/{resource=proj" + + "ects/*/locations/*/dataExchanges/*}:setI" + + "amPolicy:\001*ZR\"M/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" + + "setIamPolicy:\001*ZG\"B/v1/{resource=project" + + "s/*/locations/*/subscriptions/*}:setIamP" + + "olicy:\001*\022\232\002\n\022TestIamPermissions\022(.google" + + ".iam.v1.TestIamPermissionsRequest\032).goog" + + "le.iam.v1.TestIamPermissionsResponse\"\256\001\202" + + "\323\344\223\002\247\001\"H/v1/{resource=projects/*/locatio" + + "ns/*/dataExchanges/*}:testIamPermissions" + + ":\001*ZX\"S/v1/{resource=projects/*/location" + + "s/*/dataExchanges/*/listings/*}:testIamP" + + "ermissions:\001*\022\225\002\n\023CreateQueryTemplate\022A." + + "google.cloud.bigquery.analyticshub.v1.Cr" + + "eateQueryTemplateRequest\0324.google.cloud." + + "bigquery.analyticshub.v1.QueryTemplate\"\204" + + "\001\332A\'parent,query_template,query_template" + + "_id\202\323\344\223\002T\"B/v1/{parent=projects/*/locati" + + "ons/*/dataExchanges/*}/queryTemplates:\016q" + + "uery_template\022\333\001\n\020GetQueryTemplate\022>.goo" + + "gle.cloud.bigquery.analyticshub.v1.GetQu" + + "eryTemplateRequest\0324.google.cloud.bigque" + + "ry.analyticshub.v1.QueryTemplate\"Q\332A\004nam" + + "e\202\323\344\223\002D\022B/v1/{name=projects/*/locations/" + + "*/dataExchanges/*/queryTemplates/*}\022\356\001\n\022" + + "ListQueryTemplates\022@.google.cloud.bigque" + + "ry.analyticshub.v1.ListQueryTemplatesReq" + + "uest\032A.google.cloud.bigquery.analyticshu" + + "b.v1.ListQueryTemplatesResponse\"S\332A\006pare" + + "nt\202\323\344\223\002D\022B/v1/{parent=projects/*/locatio" + + "ns/*/dataExchanges/*}/queryTemplates\022\227\002\n" + + "\023UpdateQueryTemplate\022A.google.cloud.bigq" + + "uery.analyticshub.v1.UpdateQueryTemplate" + + "Request\0324.google.cloud.bigquery.analytic" + + "shub.v1.QueryTemplate\"\206\001\332A\032query_templat" + + "e,update_mask\202\323\344\223\002c2Q/v1/{query_template" + + ".name=projects/*/locations/*/dataExchang" + + "es/*/queryTemplates/*}:\016query_template\022\303" + + "\001\n\023DeleteQueryTemplate\022A.google.cloud.bi" + + "gquery.analyticshub.v1.DeleteQueryTempla" + + "teRequest\032\026.google.protobuf.Empty\"Q\332A\004na" + + "me\202\323\344\223\002D*B/v1/{name=projects/*/locations" + + "/*/dataExchanges/*/queryTemplates/*}\022\353\001\n" + + "\023SubmitQueryTemplate\022A.google.cloud.bigq" + + "uery.analyticshub.v1.SubmitQueryTemplate" + + "Request\0324.google.cloud.bigquery.analytic" + + "shub.v1.QueryTemplate\"[\332A\004name\202\323\344\223\002N\"I/v" + + "1/{name=projects/*/locations/*/dataExcha" + + "nges/*/queryTemplates/*}:submit:\001*\022\356\001\n\024A" + + "pproveQueryTemplate\022B.google.cloud.bigqu" + + "ery.analyticshub.v1.ApproveQueryTemplate" + + "Request\0324.google.cloud.bigquery.analytic" + + "shub.v1.QueryTemplate\"\\\332A\004name\202\323\344\223\002O\"J/v" + + "1/{name=projects/*/locations/*/dataExcha" + + "nges/*/queryTemplates/*}:approve:\001*\032x\312A\033" + + "analyticshub.googleapis.com\322AWhttps://ww" + + "w.googleapis.com/auth/bigquery,https://w" + + "ww.googleapis.com/auth/cloud-platformB\364\005" + + "\n)com.google.cloud.bigquery.analyticshub" + + ".v1B\021AnalyticsHubProtoP\001ZMcloud.google.c" + + "om/go/bigquery/analyticshub/apiv1/analyt" + + "icshubpb;analyticshubpb\252\002%Google.Cloud.B" + + "igQuery.AnalyticsHub.V1\312\002%Google\\Cloud\\B" + + "igQuery\\AnalyticsHub\\V1\352\002)Google::Cloud:" + + ":Bigquery::AnalyticsHub::V1\352AH\n\037bigquery" + + ".googleapis.com/Dataset\022%projects/{proje" + + "ct}/datasets/{dataset}\352AU\n\035bigquery.goog" + + "leapis.com/Table\0224projects/{project}/dat" + + "asets/{dataset}/tables/{table}\352A@\n\033pubsu" + + "b.googleapis.com/Topic\022!projects/{projec" + + "t}/topics/{topic}\352A[\n\037bigquery.googleapi" + + "s.com/Routine\0228projects/{project}/datase" + + "ts/{dataset}/routines/{routine}\352AE\n/serv" + + "icemanagement.googleapis.com/ManagedServ" + + "ice\022\022services/{service}\352AZ\n5cloudcommerc" + + "econsumerprocurement.googleapis.com/Orde" + + "r\022!projects/{project}/orders/{order}b\006pr" + + "oto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -777,8 +965,97 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DiscoveryType", "LogLinkedDatasetQueryUserEmail", }); - internal_static_google_cloud_bigquery_analyticshub_v1_SharingEnvironmentConfig_descriptor = + internal_static_google_cloud_bigquery_analyticshub_v1_QueryTemplate_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_bigquery_analyticshub_v1_QueryTemplate_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_analyticshub_v1_QueryTemplate_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "Description", + "Proposer", + "PrimaryContact", + "Documentation", + "State", + "Routine", + "CreateTime", + "UpdateTime", + }); + internal_static_google_cloud_bigquery_analyticshub_v1_Routine_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_bigquery_analyticshub_v1_Routine_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_analyticshub_v1_Routine_descriptor, + new java.lang.String[] { + "RoutineType", "DefinitionBody", + }); + internal_static_google_cloud_bigquery_analyticshub_v1_CreateQueryTemplateRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_bigquery_analyticshub_v1_CreateQueryTemplateRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_analyticshub_v1_CreateQueryTemplateRequest_descriptor, + new java.lang.String[] { + "Parent", "QueryTemplateId", "QueryTemplate", + }); + internal_static_google_cloud_bigquery_analyticshub_v1_GetQueryTemplateRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_bigquery_analyticshub_v1_GetQueryTemplateRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_analyticshub_v1_GetQueryTemplateRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_bigquery_analyticshub_v1_ListQueryTemplatesRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_bigquery_analyticshub_v1_ListQueryTemplatesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_analyticshub_v1_ListQueryTemplatesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_bigquery_analyticshub_v1_ListQueryTemplatesResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_bigquery_analyticshub_v1_ListQueryTemplatesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_analyticshub_v1_ListQueryTemplatesResponse_descriptor, + new java.lang.String[] { + "QueryTemplates", "NextPageToken", + }); + internal_static_google_cloud_bigquery_analyticshub_v1_UpdateQueryTemplateRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_bigquery_analyticshub_v1_UpdateQueryTemplateRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_analyticshub_v1_UpdateQueryTemplateRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "QueryTemplate", + }); + internal_static_google_cloud_bigquery_analyticshub_v1_DeleteQueryTemplateRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_bigquery_analyticshub_v1_DeleteQueryTemplateRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_analyticshub_v1_DeleteQueryTemplateRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_bigquery_analyticshub_v1_SubmitQueryTemplateRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_bigquery_analyticshub_v1_SubmitQueryTemplateRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_analyticshub_v1_SubmitQueryTemplateRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_bigquery_analyticshub_v1_ApproveQueryTemplateRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_bigquery_analyticshub_v1_ApproveQueryTemplateRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_analyticshub_v1_ApproveQueryTemplateRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_bigquery_analyticshub_v1_SharingEnvironmentConfig_descriptor = + getDescriptor().getMessageTypes().get(11); internal_static_google_cloud_bigquery_analyticshub_v1_SharingEnvironmentConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_SharingEnvironmentConfig_descriptor, @@ -804,7 +1081,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SingleSelectedResourceSharingRestriction", "SingleLinkedDatasetPerCleanroom", }); internal_static_google_cloud_bigquery_analyticshub_v1_DataProvider_descriptor = - getDescriptor().getMessageTypes().get(2); + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_bigquery_analyticshub_v1_DataProvider_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_DataProvider_descriptor, @@ -812,7 +1089,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "PrimaryContact", }); internal_static_google_cloud_bigquery_analyticshub_v1_Publisher_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(13); internal_static_google_cloud_bigquery_analyticshub_v1_Publisher_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_Publisher_descriptor, @@ -820,7 +1097,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "PrimaryContact", }); internal_static_google_cloud_bigquery_analyticshub_v1_DestinationDatasetReference_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_bigquery_analyticshub_v1_DestinationDatasetReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_DestinationDatasetReference_descriptor, @@ -828,12 +1105,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DatasetId", "ProjectId", }); internal_static_google_cloud_bigquery_analyticshub_v1_DestinationDataset_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_bigquery_analyticshub_v1_DestinationDataset_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_DestinationDataset_descriptor, new java.lang.String[] { - "DatasetReference", "FriendlyName", "Description", "Labels", "Location", + "DatasetReference", + "FriendlyName", + "Description", + "Labels", + "Location", + "ReplicaLocations", }); internal_static_google_cloud_bigquery_analyticshub_v1_DestinationDataset_LabelsEntry_descriptor = internal_static_google_cloud_bigquery_analyticshub_v1_DestinationDataset_descriptor @@ -846,7 +1128,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_bigquery_analyticshub_v1_DestinationPubSubSubscription_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_bigquery_analyticshub_v1_DestinationPubSubSubscription_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_DestinationPubSubSubscription_descriptor, @@ -854,7 +1136,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PubsubSubscription", }); internal_static_google_cloud_bigquery_analyticshub_v1_Listing_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_bigquery_analyticshub_v1_Listing_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_Listing_descriptor, @@ -888,7 +1170,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_Listing_BigQueryDatasetSource_descriptor, new java.lang.String[] { - "Dataset", "SelectedResources", "RestrictedExportPolicy", + "Dataset", + "SelectedResources", + "RestrictedExportPolicy", + "ReplicaLocations", + "EffectiveReplicas", }); internal_static_google_cloud_bigquery_analyticshub_v1_Listing_BigQueryDatasetSource_SelectedResource_descriptor = internal_static_google_cloud_bigquery_analyticshub_v1_Listing_BigQueryDatasetSource_descriptor @@ -910,6 +1196,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Enabled", "RestrictDirectTableAccess", "RestrictQueryResult", }); + internal_static_google_cloud_bigquery_analyticshub_v1_Listing_BigQueryDatasetSource_Replica_descriptor = + internal_static_google_cloud_bigquery_analyticshub_v1_Listing_BigQueryDatasetSource_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_bigquery_analyticshub_v1_Listing_BigQueryDatasetSource_Replica_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_analyticshub_v1_Listing_BigQueryDatasetSource_Replica_descriptor, + new java.lang.String[] { + "Location", "ReplicaState", "PrimaryState", + }); internal_static_google_cloud_bigquery_analyticshub_v1_Listing_PubSubTopicSource_descriptor = internal_static_google_cloud_bigquery_analyticshub_v1_Listing_descriptor .getNestedTypes() @@ -951,7 +1247,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Service", "CommercialState", }); internal_static_google_cloud_bigquery_analyticshub_v1_Subscription_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_bigquery_analyticshub_v1_Subscription_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_Subscription_descriptor, @@ -1014,7 +1310,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_bigquery_analyticshub_v1_ListDataExchangesRequest_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_bigquery_analyticshub_v1_ListDataExchangesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_ListDataExchangesRequest_descriptor, @@ -1022,7 +1318,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_cloud_bigquery_analyticshub_v1_ListDataExchangesResponse_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_bigquery_analyticshub_v1_ListDataExchangesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_ListDataExchangesResponse_descriptor, @@ -1030,7 +1326,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DataExchanges", "NextPageToken", }); internal_static_google_cloud_bigquery_analyticshub_v1_ListOrgDataExchangesRequest_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_bigquery_analyticshub_v1_ListOrgDataExchangesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_ListOrgDataExchangesRequest_descriptor, @@ -1038,7 +1334,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Organization", "PageSize", "PageToken", }); internal_static_google_cloud_bigquery_analyticshub_v1_ListOrgDataExchangesResponse_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(22); internal_static_google_cloud_bigquery_analyticshub_v1_ListOrgDataExchangesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_ListOrgDataExchangesResponse_descriptor, @@ -1046,7 +1342,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DataExchanges", "NextPageToken", }); internal_static_google_cloud_bigquery_analyticshub_v1_GetDataExchangeRequest_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_bigquery_analyticshub_v1_GetDataExchangeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_GetDataExchangeRequest_descriptor, @@ -1054,7 +1350,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_bigquery_analyticshub_v1_CreateDataExchangeRequest_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(24); internal_static_google_cloud_bigquery_analyticshub_v1_CreateDataExchangeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_CreateDataExchangeRequest_descriptor, @@ -1062,7 +1358,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "DataExchangeId", "DataExchange", }); internal_static_google_cloud_bigquery_analyticshub_v1_UpdateDataExchangeRequest_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_bigquery_analyticshub_v1_UpdateDataExchangeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_UpdateDataExchangeRequest_descriptor, @@ -1070,7 +1366,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateMask", "DataExchange", }); internal_static_google_cloud_bigquery_analyticshub_v1_DeleteDataExchangeRequest_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(26); internal_static_google_cloud_bigquery_analyticshub_v1_DeleteDataExchangeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_DeleteDataExchangeRequest_descriptor, @@ -1078,7 +1374,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_bigquery_analyticshub_v1_ListListingsRequest_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(27); internal_static_google_cloud_bigquery_analyticshub_v1_ListListingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_ListListingsRequest_descriptor, @@ -1086,7 +1382,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_cloud_bigquery_analyticshub_v1_ListListingsResponse_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(28); internal_static_google_cloud_bigquery_analyticshub_v1_ListListingsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_ListListingsResponse_descriptor, @@ -1094,7 +1390,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Listings", "NextPageToken", }); internal_static_google_cloud_bigquery_analyticshub_v1_GetListingRequest_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(29); internal_static_google_cloud_bigquery_analyticshub_v1_GetListingRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_GetListingRequest_descriptor, @@ -1102,7 +1398,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_bigquery_analyticshub_v1_CreateListingRequest_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(30); internal_static_google_cloud_bigquery_analyticshub_v1_CreateListingRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_CreateListingRequest_descriptor, @@ -1110,7 +1406,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "ListingId", "Listing", }); internal_static_google_cloud_bigquery_analyticshub_v1_UpdateListingRequest_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(31); internal_static_google_cloud_bigquery_analyticshub_v1_UpdateListingRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_UpdateListingRequest_descriptor, @@ -1118,7 +1414,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateMask", "Listing", }); internal_static_google_cloud_bigquery_analyticshub_v1_DeleteListingRequest_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(32); internal_static_google_cloud_bigquery_analyticshub_v1_DeleteListingRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_DeleteListingRequest_descriptor, @@ -1126,7 +1422,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "DeleteCommercial", }); internal_static_google_cloud_bigquery_analyticshub_v1_SubscribeListingRequest_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(33); internal_static_google_cloud_bigquery_analyticshub_v1_SubscribeListingRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_SubscribeListingRequest_descriptor, @@ -1134,7 +1430,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DestinationDataset", "DestinationPubsubSubscription", "Name", "Destination", }); internal_static_google_cloud_bigquery_analyticshub_v1_SubscribeListingResponse_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(34); internal_static_google_cloud_bigquery_analyticshub_v1_SubscribeListingResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_SubscribeListingResponse_descriptor, @@ -1142,7 +1438,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", }); internal_static_google_cloud_bigquery_analyticshub_v1_SubscribeDataExchangeRequest_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(35); internal_static_google_cloud_bigquery_analyticshub_v1_SubscribeDataExchangeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_SubscribeDataExchangeRequest_descriptor, @@ -1150,7 +1446,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Destination", "DestinationDataset", "Subscription", "SubscriberContact", }); internal_static_google_cloud_bigquery_analyticshub_v1_SubscribeDataExchangeResponse_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(36); internal_static_google_cloud_bigquery_analyticshub_v1_SubscribeDataExchangeResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_SubscribeDataExchangeResponse_descriptor, @@ -1158,7 +1454,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", }); internal_static_google_cloud_bigquery_analyticshub_v1_RefreshSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(37); internal_static_google_cloud_bigquery_analyticshub_v1_RefreshSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_RefreshSubscriptionRequest_descriptor, @@ -1166,7 +1462,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_bigquery_analyticshub_v1_RefreshSubscriptionResponse_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(38); internal_static_google_cloud_bigquery_analyticshub_v1_RefreshSubscriptionResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_RefreshSubscriptionResponse_descriptor, @@ -1174,7 +1470,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", }); internal_static_google_cloud_bigquery_analyticshub_v1_GetSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(39); internal_static_google_cloud_bigquery_analyticshub_v1_GetSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_GetSubscriptionRequest_descriptor, @@ -1182,7 +1478,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_bigquery_analyticshub_v1_ListSubscriptionsRequest_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(40); internal_static_google_cloud_bigquery_analyticshub_v1_ListSubscriptionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_ListSubscriptionsRequest_descriptor, @@ -1190,7 +1486,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Filter", "PageSize", "PageToken", }); internal_static_google_cloud_bigquery_analyticshub_v1_ListSubscriptionsResponse_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(41); internal_static_google_cloud_bigquery_analyticshub_v1_ListSubscriptionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_ListSubscriptionsResponse_descriptor, @@ -1198,7 +1494,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscriptions", "NextPageToken", }); internal_static_google_cloud_bigquery_analyticshub_v1_ListSharedResourceSubscriptionsRequest_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(42); internal_static_google_cloud_bigquery_analyticshub_v1_ListSharedResourceSubscriptionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_ListSharedResourceSubscriptionsRequest_descriptor, @@ -1206,7 +1502,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Resource", "IncludeDeletedSubscriptions", "PageSize", "PageToken", }); internal_static_google_cloud_bigquery_analyticshub_v1_ListSharedResourceSubscriptionsResponse_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(43); internal_static_google_cloud_bigquery_analyticshub_v1_ListSharedResourceSubscriptionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_ListSharedResourceSubscriptionsResponse_descriptor, @@ -1214,7 +1510,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SharedResourceSubscriptions", "NextPageToken", }); internal_static_google_cloud_bigquery_analyticshub_v1_RevokeSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(44); internal_static_google_cloud_bigquery_analyticshub_v1_RevokeSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_RevokeSubscriptionRequest_descriptor, @@ -1222,13 +1518,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RevokeCommercial", }); internal_static_google_cloud_bigquery_analyticshub_v1_RevokeSubscriptionResponse_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(45); internal_static_google_cloud_bigquery_analyticshub_v1_RevokeSubscriptionResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_RevokeSubscriptionResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_bigquery_analyticshub_v1_DeleteSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(46); internal_static_google_cloud_bigquery_analyticshub_v1_DeleteSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_DeleteSubscriptionRequest_descriptor, @@ -1236,7 +1532,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_bigquery_analyticshub_v1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(37); + getDescriptor().getMessageTypes().get(47); internal_static_google_cloud_bigquery_analyticshub_v1_OperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_OperationMetadata_descriptor, diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ApproveQueryTemplateRequest.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ApproveQueryTemplateRequest.java new file mode 100644 index 000000000000..14eb2d9357e0 --- /dev/null +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ApproveQueryTemplateRequest.java @@ -0,0 +1,674 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/analyticshub/v1/analyticshub.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.bigquery.analyticshub.v1; + +/** + * + * + *
+ * Message for approving a QueryTemplate.
+ * 
+ * + * Protobuf type {@code google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest} + */ +public final class ApproveQueryTemplateRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest) + ApproveQueryTemplateRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ApproveQueryTemplateRequest.newBuilder() to construct. + private ApproveQueryTemplateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ApproveQueryTemplateRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ApproveQueryTemplateRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubProto + .internal_static_google_cloud_bigquery_analyticshub_v1_ApproveQueryTemplateRequest_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_ApproveQueryTemplateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest.class, + com.google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource path of the QueryTemplate.
+   * e.g.
+   * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`.
+   * 
+ * + * + * 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 path of the QueryTemplate.
+   * e.g.
+   * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest)) { + return super.equals(obj); + } + com.google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest other = + (com.google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest 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.ApproveQueryTemplateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest parseFrom( + 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.ApproveQueryTemplateRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest 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.ApproveQueryTemplateRequest 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.ApproveQueryTemplateRequest 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.ApproveQueryTemplateRequest + 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.ApproveQueryTemplateRequest + 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.ApproveQueryTemplateRequest 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.ApproveQueryTemplateRequest 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.ApproveQueryTemplateRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 approving a QueryTemplate.
+   * 
+ * + * Protobuf type {@code google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest) + com.google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubProto + .internal_static_google_cloud_bigquery_analyticshub_v1_ApproveQueryTemplateRequest_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_ApproveQueryTemplateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest.class, + com.google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest.Builder.class); + } + + // Construct using + // com.google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubProto + .internal_static_google_cloud_bigquery_analyticshub_v1_ApproveQueryTemplateRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest build() { + com.google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest buildPartial() { + com.google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest result = + new com.google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest) { + return mergeFrom( + (com.google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest other) { + if (other + == com.google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The resource path of the QueryTemplate.
+     * e.g.
+     * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`.
+     * 
+ * + * + * 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 path of the QueryTemplate.
+     * e.g.
+     * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`.
+     * 
+ * + * + * 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 path of the QueryTemplate.
+     * e.g.
+     * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`.
+     * 
+ * + * + * 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 path of the QueryTemplate.
+     * e.g.
+     * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`.
+     * 
+ * + * + * 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 path of the QueryTemplate.
+     * e.g.
+     * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest) + private static final com.google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest(); + } + + public static com.google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApproveQueryTemplateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.ApproveQueryTemplateRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ApproveQueryTemplateRequestOrBuilder.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ApproveQueryTemplateRequestOrBuilder.java new file mode 100644 index 000000000000..736e7474e7b4 --- /dev/null +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ApproveQueryTemplateRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/analyticshub/v1/analyticshub.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.bigquery.analyticshub.v1; + +public interface ApproveQueryTemplateRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource path of the QueryTemplate.
+   * e.g.
+   * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The resource path of the QueryTemplate.
+   * e.g.
+   * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/CreateQueryTemplateRequest.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/CreateQueryTemplateRequest.java new file mode 100644 index 000000000000..215d0e4fc19f --- /dev/null +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/CreateQueryTemplateRequest.java @@ -0,0 +1,1199 @@ +/* + * 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/bigquery/analyticshub/v1/analyticshub.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.bigquery.analyticshub.v1; + +/** + * + * + *
+ * Message for creating a QueryTemplate.
+ * 
+ * + * Protobuf type {@code google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest} + */ +public final class CreateQueryTemplateRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest) + CreateQueryTemplateRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CreateQueryTemplateRequest.newBuilder() to construct. + private CreateQueryTemplateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateQueryTemplateRequest() { + parent_ = ""; + queryTemplateId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateQueryTemplateRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubProto + .internal_static_google_cloud_bigquery_analyticshub_v1_CreateQueryTemplateRequest_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_CreateQueryTemplateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest.class, + com.google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent resource path of the QueryTemplate.
+   * e.g.
+   * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myQueryTemplate`.
+   * 
+ * + * + * 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 parent resource path of the QueryTemplate.
+   * e.g.
+   * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myQueryTemplate`.
+   * 
+ * + * + * 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 QUERY_TEMPLATE_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object queryTemplateId_ = ""; + + /** + * + * + *
+   * Required. The ID of the QueryTemplate to create.
+   * Must contain only Unicode letters, numbers (0-9), underscores (_).
+   * Max length: 100 bytes.
+   * 
+ * + * string query_template_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The queryTemplateId. + */ + @java.lang.Override + public java.lang.String getQueryTemplateId() { + java.lang.Object ref = queryTemplateId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + queryTemplateId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The ID of the QueryTemplate to create.
+   * Must contain only Unicode letters, numbers (0-9), underscores (_).
+   * Max length: 100 bytes.
+   * 
+ * + * string query_template_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for queryTemplateId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getQueryTemplateIdBytes() { + java.lang.Object ref = queryTemplateId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + queryTemplateId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int QUERY_TEMPLATE_FIELD_NUMBER = 3; + private com.google.cloud.bigquery.analyticshub.v1.QueryTemplate queryTemplate_; + + /** + * + * + *
+   * Required. The QueryTemplate to create.
+   * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the queryTemplate field is set. + */ + @java.lang.Override + public boolean hasQueryTemplate() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The QueryTemplate to create.
+   * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The queryTemplate. + */ + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.QueryTemplate getQueryTemplate() { + return queryTemplate_ == null + ? com.google.cloud.bigquery.analyticshub.v1.QueryTemplate.getDefaultInstance() + : queryTemplate_; + } + + /** + * + * + *
+   * Required. The QueryTemplate to create.
+   * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.QueryTemplateOrBuilder + getQueryTemplateOrBuilder() { + return queryTemplate_ == null + ? com.google.cloud.bigquery.analyticshub.v1.QueryTemplate.getDefaultInstance() + : queryTemplate_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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(queryTemplateId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, queryTemplateId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getQueryTemplate()); + } + 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(queryTemplateId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, queryTemplateId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getQueryTemplate()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.CreateQueryTemplateRequest)) { + return super.equals(obj); + } + com.google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest other = + (com.google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getQueryTemplateId().equals(other.getQueryTemplateId())) return false; + if (hasQueryTemplate() != other.hasQueryTemplate()) return false; + if (hasQueryTemplate()) { + if (!getQueryTemplate().equals(other.getQueryTemplate())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + QUERY_TEMPLATE_ID_FIELD_NUMBER; + hash = (53 * hash) + getQueryTemplateId().hashCode(); + if (hasQueryTemplate()) { + hash = (37 * hash) + QUERY_TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getQueryTemplate().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest 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.CreateQueryTemplateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest parseFrom( + 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.CreateQueryTemplateRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest 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.CreateQueryTemplateRequest 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.CreateQueryTemplateRequest 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.CreateQueryTemplateRequest + 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.CreateQueryTemplateRequest + 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.CreateQueryTemplateRequest 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.CreateQueryTemplateRequest 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.CreateQueryTemplateRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 creating a QueryTemplate.
+   * 
+ * + * Protobuf type {@code google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest) + com.google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubProto + .internal_static_google_cloud_bigquery_analyticshub_v1_CreateQueryTemplateRequest_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_CreateQueryTemplateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest.class, + com.google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest.Builder.class); + } + + // Construct using + // com.google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getQueryTemplateFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + queryTemplateId_ = ""; + queryTemplate_ = null; + if (queryTemplateBuilder_ != null) { + queryTemplateBuilder_.dispose(); + queryTemplateBuilder_ = 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_CreateQueryTemplateRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest build() { + com.google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest buildPartial() { + com.google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest result = + new com.google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.queryTemplateId_ = queryTemplateId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.queryTemplate_ = + queryTemplateBuilder_ == null ? queryTemplate_ : queryTemplateBuilder_.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.CreateQueryTemplateRequest) { + return mergeFrom( + (com.google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest other) { + if (other + == com.google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getQueryTemplateId().isEmpty()) { + queryTemplateId_ = other.queryTemplateId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasQueryTemplate()) { + mergeQueryTemplate(other.getQueryTemplate()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + queryTemplateId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getQueryTemplateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent resource path of the QueryTemplate.
+     * e.g.
+     * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myQueryTemplate`.
+     * 
+ * + * + * 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 parent resource path of the QueryTemplate.
+     * e.g.
+     * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myQueryTemplate`.
+     * 
+ * + * + * 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 parent resource path of the QueryTemplate.
+     * e.g.
+     * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myQueryTemplate`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource path of the QueryTemplate.
+     * e.g.
+     * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myQueryTemplate`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource path of the QueryTemplate.
+     * e.g.
+     * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myQueryTemplate`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object queryTemplateId_ = ""; + + /** + * + * + *
+     * Required. The ID of the QueryTemplate to create.
+     * Must contain only Unicode letters, numbers (0-9), underscores (_).
+     * Max length: 100 bytes.
+     * 
+ * + * string query_template_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The queryTemplateId. + */ + public java.lang.String getQueryTemplateId() { + java.lang.Object ref = queryTemplateId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + queryTemplateId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The ID of the QueryTemplate to create.
+     * Must contain only Unicode letters, numbers (0-9), underscores (_).
+     * Max length: 100 bytes.
+     * 
+ * + * string query_template_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for queryTemplateId. + */ + public com.google.protobuf.ByteString getQueryTemplateIdBytes() { + java.lang.Object ref = queryTemplateId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + queryTemplateId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The ID of the QueryTemplate to create.
+     * Must contain only Unicode letters, numbers (0-9), underscores (_).
+     * Max length: 100 bytes.
+     * 
+ * + * string query_template_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The queryTemplateId to set. + * @return This builder for chaining. + */ + public Builder setQueryTemplateId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + queryTemplateId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID of the QueryTemplate to create.
+     * Must contain only Unicode letters, numbers (0-9), underscores (_).
+     * Max length: 100 bytes.
+     * 
+ * + * string query_template_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearQueryTemplateId() { + queryTemplateId_ = getDefaultInstance().getQueryTemplateId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID of the QueryTemplate to create.
+     * Must contain only Unicode letters, numbers (0-9), underscores (_).
+     * Max length: 100 bytes.
+     * 
+ * + * string query_template_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for queryTemplateId to set. + * @return This builder for chaining. + */ + public Builder setQueryTemplateIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + queryTemplateId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.bigquery.analyticshub.v1.QueryTemplate queryTemplate_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate, + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate.Builder, + com.google.cloud.bigquery.analyticshub.v1.QueryTemplateOrBuilder> + queryTemplateBuilder_; + + /** + * + * + *
+     * Required. The QueryTemplate to create.
+     * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the queryTemplate field is set. + */ + public boolean hasQueryTemplate() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Required. The QueryTemplate to create.
+     * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The queryTemplate. + */ + public com.google.cloud.bigquery.analyticshub.v1.QueryTemplate getQueryTemplate() { + if (queryTemplateBuilder_ == null) { + return queryTemplate_ == null + ? com.google.cloud.bigquery.analyticshub.v1.QueryTemplate.getDefaultInstance() + : queryTemplate_; + } else { + return queryTemplateBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The QueryTemplate to create.
+     * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setQueryTemplate(com.google.cloud.bigquery.analyticshub.v1.QueryTemplate value) { + if (queryTemplateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + queryTemplate_ = value; + } else { + queryTemplateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The QueryTemplate to create.
+     * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setQueryTemplate( + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate.Builder builderForValue) { + if (queryTemplateBuilder_ == null) { + queryTemplate_ = builderForValue.build(); + } else { + queryTemplateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The QueryTemplate to create.
+     * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeQueryTemplate( + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate value) { + if (queryTemplateBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && queryTemplate_ != null + && queryTemplate_ + != com.google.cloud.bigquery.analyticshub.v1.QueryTemplate.getDefaultInstance()) { + getQueryTemplateBuilder().mergeFrom(value); + } else { + queryTemplate_ = value; + } + } else { + queryTemplateBuilder_.mergeFrom(value); + } + if (queryTemplate_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The QueryTemplate to create.
+     * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearQueryTemplate() { + bitField0_ = (bitField0_ & ~0x00000004); + queryTemplate_ = null; + if (queryTemplateBuilder_ != null) { + queryTemplateBuilder_.dispose(); + queryTemplateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The QueryTemplate to create.
+     * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.bigquery.analyticshub.v1.QueryTemplate.Builder + getQueryTemplateBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getQueryTemplateFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The QueryTemplate to create.
+     * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.bigquery.analyticshub.v1.QueryTemplateOrBuilder + getQueryTemplateOrBuilder() { + if (queryTemplateBuilder_ != null) { + return queryTemplateBuilder_.getMessageOrBuilder(); + } else { + return queryTemplate_ == null + ? com.google.cloud.bigquery.analyticshub.v1.QueryTemplate.getDefaultInstance() + : queryTemplate_; + } + } + + /** + * + * + *
+     * Required. The QueryTemplate to create.
+     * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate, + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate.Builder, + com.google.cloud.bigquery.analyticshub.v1.QueryTemplateOrBuilder> + getQueryTemplateFieldBuilder() { + if (queryTemplateBuilder_ == null) { + queryTemplateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate, + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate.Builder, + com.google.cloud.bigquery.analyticshub.v1.QueryTemplateOrBuilder>( + getQueryTemplate(), getParentForChildren(), isClean()); + queryTemplate_ = null; + } + return queryTemplateBuilder_; + } + + @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.CreateQueryTemplateRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest) + private static final com.google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest(); + } + + public static com.google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateQueryTemplateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.CreateQueryTemplateRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/CreateQueryTemplateRequestOrBuilder.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/CreateQueryTemplateRequestOrBuilder.java new file mode 100644 index 000000000000..6b40c7759073 --- /dev/null +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/CreateQueryTemplateRequestOrBuilder.java @@ -0,0 +1,133 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/analyticshub/v1/analyticshub.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.bigquery.analyticshub.v1; + +public interface CreateQueryTemplateRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource path of the QueryTemplate.
+   * e.g.
+   * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myQueryTemplate`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent resource path of the QueryTemplate.
+   * e.g.
+   * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myQueryTemplate`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The ID of the QueryTemplate to create.
+   * Must contain only Unicode letters, numbers (0-9), underscores (_).
+   * Max length: 100 bytes.
+   * 
+ * + * string query_template_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The queryTemplateId. + */ + java.lang.String getQueryTemplateId(); + + /** + * + * + *
+   * Required. The ID of the QueryTemplate to create.
+   * Must contain only Unicode letters, numbers (0-9), underscores (_).
+   * Max length: 100 bytes.
+   * 
+ * + * string query_template_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for queryTemplateId. + */ + com.google.protobuf.ByteString getQueryTemplateIdBytes(); + + /** + * + * + *
+   * Required. The QueryTemplate to create.
+   * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the queryTemplate field is set. + */ + boolean hasQueryTemplate(); + + /** + * + * + *
+   * Required. The QueryTemplate to create.
+   * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The queryTemplate. + */ + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate getQueryTemplate(); + + /** + * + * + *
+   * Required. The QueryTemplate to create.
+   * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_template = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.bigquery.analyticshub.v1.QueryTemplateOrBuilder getQueryTemplateOrBuilder(); +} diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/DeleteQueryTemplateRequest.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/DeleteQueryTemplateRequest.java new file mode 100644 index 000000000000..f93ce2c56b08 --- /dev/null +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/DeleteQueryTemplateRequest.java @@ -0,0 +1,674 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/analyticshub/v1/analyticshub.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.bigquery.analyticshub.v1; + +/** + * + * + *
+ * Message for deleting a QueryTemplate.
+ * 
+ * + * Protobuf type {@code google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest} + */ +public final class DeleteQueryTemplateRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest) + DeleteQueryTemplateRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DeleteQueryTemplateRequest.newBuilder() to construct. + private DeleteQueryTemplateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteQueryTemplateRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteQueryTemplateRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubProto + .internal_static_google_cloud_bigquery_analyticshub_v1_DeleteQueryTemplateRequest_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_DeleteQueryTemplateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest.class, + com.google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource path of the QueryTemplate.
+   * e.g.
+   * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`.
+   * 
+ * + * + * 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 path of the QueryTemplate.
+   * e.g.
+   * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest)) { + return super.equals(obj); + } + com.google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest other = + (com.google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest 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.DeleteQueryTemplateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest parseFrom( + 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.DeleteQueryTemplateRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest 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.DeleteQueryTemplateRequest 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.DeleteQueryTemplateRequest 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.DeleteQueryTemplateRequest + 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.DeleteQueryTemplateRequest + 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.DeleteQueryTemplateRequest 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.DeleteQueryTemplateRequest 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.DeleteQueryTemplateRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 deleting a QueryTemplate.
+   * 
+ * + * Protobuf type {@code google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest) + com.google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubProto + .internal_static_google_cloud_bigquery_analyticshub_v1_DeleteQueryTemplateRequest_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_DeleteQueryTemplateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest.class, + com.google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest.Builder.class); + } + + // Construct using + // com.google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubProto + .internal_static_google_cloud_bigquery_analyticshub_v1_DeleteQueryTemplateRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest build() { + com.google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest buildPartial() { + com.google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest result = + new com.google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest) { + return mergeFrom( + (com.google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest other) { + if (other + == com.google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The resource path of the QueryTemplate.
+     * e.g.
+     * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`.
+     * 
+ * + * + * 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 path of the QueryTemplate.
+     * e.g.
+     * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`.
+     * 
+ * + * + * 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 path of the QueryTemplate.
+     * e.g.
+     * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`.
+     * 
+ * + * + * 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 path of the QueryTemplate.
+     * e.g.
+     * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`.
+     * 
+ * + * + * 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 path of the QueryTemplate.
+     * e.g.
+     * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest) + private static final com.google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest(); + } + + public static com.google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteQueryTemplateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.DeleteQueryTemplateRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/DeleteQueryTemplateRequestOrBuilder.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/DeleteQueryTemplateRequestOrBuilder.java new file mode 100644 index 000000000000..0137b5c108f7 --- /dev/null +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/DeleteQueryTemplateRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/analyticshub/v1/analyticshub.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.bigquery.analyticshub.v1; + +public interface DeleteQueryTemplateRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource path of the QueryTemplate.
+   * e.g.
+   * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The resource path of the QueryTemplate.
+   * e.g.
+   * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/DestinationDataset.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/DestinationDataset.java index c2bdc83411e5..4b4d5fc15ae3 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/DestinationDataset.java +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/DestinationDataset.java @@ -41,6 +41,7 @@ private DestinationDataset(com.google.protobuf.GeneratedMessageV3.Builder bui private DestinationDataset() { location_ = ""; + replicaLocations_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @@ -430,6 +431,82 @@ public com.google.protobuf.ByteString getLocationBytes() { } } + public static final int REPLICA_LOCATIONS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList replicaLocations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. The geographic locations where the dataset should be replicated.
+   * See [BigQuery locations](https://cloud.google.com/bigquery/docs/locations)
+   * for supported locations.
+   * 
+ * + * repeated string replica_locations = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the replicaLocations. + */ + public com.google.protobuf.ProtocolStringList getReplicaLocationsList() { + return replicaLocations_; + } + + /** + * + * + *
+   * Optional. The geographic locations where the dataset should be replicated.
+   * See [BigQuery locations](https://cloud.google.com/bigquery/docs/locations)
+   * for supported locations.
+   * 
+ * + * repeated string replica_locations = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of replicaLocations. + */ + public int getReplicaLocationsCount() { + return replicaLocations_.size(); + } + + /** + * + * + *
+   * Optional. The geographic locations where the dataset should be replicated.
+   * See [BigQuery locations](https://cloud.google.com/bigquery/docs/locations)
+   * for supported locations.
+   * 
+ * + * repeated string replica_locations = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The replicaLocations at the given index. + */ + public java.lang.String getReplicaLocations(int index) { + return replicaLocations_.get(index); + } + + /** + * + * + *
+   * Optional. The geographic locations where the dataset should be replicated.
+   * See [BigQuery locations](https://cloud.google.com/bigquery/docs/locations)
+   * for supported locations.
+   * 
+ * + * repeated string replica_locations = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the replicaLocations at the given index. + */ + public com.google.protobuf.ByteString getReplicaLocationsBytes(int index) { + return replicaLocations_.getByteString(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -458,6 +535,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, location_); } + for (int i = 0; i < replicaLocations_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, replicaLocations_.getRaw(i)); + } getUnknownFields().writeTo(output); } @@ -489,6 +569,14 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, location_); } + { + int dataSize = 0; + for (int i = 0; i < replicaLocations_.size(); i++) { + dataSize += computeStringSizeNoTag(replicaLocations_.getRaw(i)); + } + size += dataSize; + size += 1 * getReplicaLocationsList().size(); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -519,6 +607,7 @@ public boolean equals(final java.lang.Object obj) { } if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (!getLocation().equals(other.getLocation())) return false; + if (!getReplicaLocationsList().equals(other.getReplicaLocationsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -548,6 +637,10 @@ public int hashCode() { } hash = (37 * hash) + LOCATION_FIELD_NUMBER; hash = (53 * hash) + getLocation().hashCode(); + if (getReplicaLocationsCount() > 0) { + hash = (37 * hash) + REPLICA_LOCATIONS_FIELD_NUMBER; + hash = (53 * hash) + getReplicaLocationsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -739,6 +832,7 @@ public Builder clear() { } internalGetMutableLabels().clear(); location_ = ""; + replicaLocations_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @@ -800,6 +894,10 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000010) != 0)) { result.location_ = location_; } + if (((from_bitField0_ & 0x00000020) != 0)) { + replicaLocations_.makeImmutable(); + result.replicaLocations_ = replicaLocations_; + } result.bitField0_ |= to_bitField0_; } @@ -866,6 +964,16 @@ public Builder mergeFrom(com.google.cloud.bigquery.analyticshub.v1.DestinationDa bitField0_ |= 0x00000010; onChanged(); } + if (!other.replicaLocations_.isEmpty()) { + if (replicaLocations_.isEmpty()) { + replicaLocations_ = other.replicaLocations_; + bitField0_ |= 0x00000020; + } else { + ensureReplicaLocationsIsMutable(); + replicaLocations_.addAll(other.replicaLocations_); + } + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -929,6 +1037,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 42 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureReplicaLocationsIsMutable(); + replicaLocations_.add(s); + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1907,6 +2022,207 @@ public Builder setLocationBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.LazyStringArrayList replicaLocations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureReplicaLocationsIsMutable() { + if (!replicaLocations_.isModifiable()) { + replicaLocations_ = new com.google.protobuf.LazyStringArrayList(replicaLocations_); + } + bitField0_ |= 0x00000020; + } + + /** + * + * + *
+     * Optional. The geographic locations where the dataset should be replicated.
+     * See [BigQuery locations](https://cloud.google.com/bigquery/docs/locations)
+     * for supported locations.
+     * 
+ * + * repeated string replica_locations = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the replicaLocations. + */ + public com.google.protobuf.ProtocolStringList getReplicaLocationsList() { + replicaLocations_.makeImmutable(); + return replicaLocations_; + } + + /** + * + * + *
+     * Optional. The geographic locations where the dataset should be replicated.
+     * See [BigQuery locations](https://cloud.google.com/bigquery/docs/locations)
+     * for supported locations.
+     * 
+ * + * repeated string replica_locations = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of replicaLocations. + */ + public int getReplicaLocationsCount() { + return replicaLocations_.size(); + } + + /** + * + * + *
+     * Optional. The geographic locations where the dataset should be replicated.
+     * See [BigQuery locations](https://cloud.google.com/bigquery/docs/locations)
+     * for supported locations.
+     * 
+ * + * repeated string replica_locations = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The replicaLocations at the given index. + */ + public java.lang.String getReplicaLocations(int index) { + return replicaLocations_.get(index); + } + + /** + * + * + *
+     * Optional. The geographic locations where the dataset should be replicated.
+     * See [BigQuery locations](https://cloud.google.com/bigquery/docs/locations)
+     * for supported locations.
+     * 
+ * + * repeated string replica_locations = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the replicaLocations at the given index. + */ + public com.google.protobuf.ByteString getReplicaLocationsBytes(int index) { + return replicaLocations_.getByteString(index); + } + + /** + * + * + *
+     * Optional. The geographic locations where the dataset should be replicated.
+     * See [BigQuery locations](https://cloud.google.com/bigquery/docs/locations)
+     * for supported locations.
+     * 
+ * + * repeated string replica_locations = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The replicaLocations to set. + * @return This builder for chaining. + */ + public Builder setReplicaLocations(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureReplicaLocationsIsMutable(); + replicaLocations_.set(index, value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The geographic locations where the dataset should be replicated.
+     * See [BigQuery locations](https://cloud.google.com/bigquery/docs/locations)
+     * for supported locations.
+     * 
+ * + * repeated string replica_locations = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The replicaLocations to add. + * @return This builder for chaining. + */ + public Builder addReplicaLocations(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureReplicaLocationsIsMutable(); + replicaLocations_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The geographic locations where the dataset should be replicated.
+     * See [BigQuery locations](https://cloud.google.com/bigquery/docs/locations)
+     * for supported locations.
+     * 
+ * + * repeated string replica_locations = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The replicaLocations to add. + * @return This builder for chaining. + */ + public Builder addAllReplicaLocations(java.lang.Iterable values) { + ensureReplicaLocationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, replicaLocations_); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The geographic locations where the dataset should be replicated.
+     * See [BigQuery locations](https://cloud.google.com/bigquery/docs/locations)
+     * for supported locations.
+     * 
+ * + * repeated string replica_locations = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearReplicaLocations() { + replicaLocations_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The geographic locations where the dataset should be replicated.
+     * See [BigQuery locations](https://cloud.google.com/bigquery/docs/locations)
+     * for supported locations.
+     * 
+ * + * repeated string replica_locations = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the replicaLocations to add. + * @return This builder for chaining. + */ + public Builder addReplicaLocationsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureReplicaLocationsIsMutable(); + replicaLocations_.add(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-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/DestinationDatasetOrBuilder.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/DestinationDatasetOrBuilder.java index d772ec707a29..59341a54e0a9 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/DestinationDatasetOrBuilder.java +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/DestinationDatasetOrBuilder.java @@ -260,4 +260,66 @@ java.lang.String getLabelsOrDefault( * @return The bytes for location. */ com.google.protobuf.ByteString getLocationBytes(); + + /** + * + * + *
+   * Optional. The geographic locations where the dataset should be replicated.
+   * See [BigQuery locations](https://cloud.google.com/bigquery/docs/locations)
+   * for supported locations.
+   * 
+ * + * repeated string replica_locations = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the replicaLocations. + */ + java.util.List getReplicaLocationsList(); + + /** + * + * + *
+   * Optional. The geographic locations where the dataset should be replicated.
+   * See [BigQuery locations](https://cloud.google.com/bigquery/docs/locations)
+   * for supported locations.
+   * 
+ * + * repeated string replica_locations = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of replicaLocations. + */ + int getReplicaLocationsCount(); + + /** + * + * + *
+   * Optional. The geographic locations where the dataset should be replicated.
+   * See [BigQuery locations](https://cloud.google.com/bigquery/docs/locations)
+   * for supported locations.
+   * 
+ * + * repeated string replica_locations = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The replicaLocations at the given index. + */ + java.lang.String getReplicaLocations(int index); + + /** + * + * + *
+   * Optional. The geographic locations where the dataset should be replicated.
+   * See [BigQuery locations](https://cloud.google.com/bigquery/docs/locations)
+   * for supported locations.
+   * 
+ * + * repeated string replica_locations = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the replicaLocations at the given index. + */ + com.google.protobuf.ByteString getReplicaLocationsBytes(int index); } diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/GetQueryTemplateRequest.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/GetQueryTemplateRequest.java new file mode 100644 index 000000000000..7c0b3188248d --- /dev/null +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/GetQueryTemplateRequest.java @@ -0,0 +1,672 @@ +/* + * 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/bigquery/analyticshub/v1/analyticshub.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.bigquery.analyticshub.v1; + +/** + * + * + *
+ * Message for creating a QueryTemplate.
+ * 
+ * + * Protobuf type {@code google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest} + */ +public final class GetQueryTemplateRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest) + GetQueryTemplateRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetQueryTemplateRequest.newBuilder() to construct. + private GetQueryTemplateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetQueryTemplateRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetQueryTemplateRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubProto + .internal_static_google_cloud_bigquery_analyticshub_v1_GetQueryTemplateRequest_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_GetQueryTemplateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest.class, + com.google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The parent resource path of the QueryTemplate.
+   * e.g.
+   * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`.
+   * 
+ * + * + * 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 parent resource path of the QueryTemplate.
+   * e.g.
+   * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest)) { + return super.equals(obj); + } + com.google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest other = + (com.google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest 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.GetQueryTemplateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest parseFrom( + 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.GetQueryTemplateRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest 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.GetQueryTemplateRequest 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.GetQueryTemplateRequest 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.GetQueryTemplateRequest + 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.GetQueryTemplateRequest + 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.GetQueryTemplateRequest 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.GetQueryTemplateRequest 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.GetQueryTemplateRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 creating a QueryTemplate.
+   * 
+ * + * Protobuf type {@code google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest) + com.google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubProto + .internal_static_google_cloud_bigquery_analyticshub_v1_GetQueryTemplateRequest_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_GetQueryTemplateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest.class, + com.google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest.Builder.class); + } + + // Construct using + // com.google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubProto + .internal_static_google_cloud_bigquery_analyticshub_v1_GetQueryTemplateRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest build() { + com.google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest buildPartial() { + com.google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest result = + new com.google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest) { + return mergeFrom((com.google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest other) { + if (other + == com.google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The parent resource path of the QueryTemplate.
+     * e.g.
+     * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`.
+     * 
+ * + * + * 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 parent resource path of the QueryTemplate.
+     * e.g.
+     * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`.
+     * 
+ * + * + * 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 parent resource path of the QueryTemplate.
+     * e.g.
+     * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`.
+     * 
+ * + * + * 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 parent resource path of the QueryTemplate.
+     * e.g.
+     * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`.
+     * 
+ * + * + * 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 parent resource path of the QueryTemplate.
+     * e.g.
+     * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest) + private static final com.google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest(); + } + + public static com.google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetQueryTemplateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.GetQueryTemplateRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/GetQueryTemplateRequestOrBuilder.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/GetQueryTemplateRequestOrBuilder.java new file mode 100644 index 000000000000..a859185ac9b4 --- /dev/null +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/GetQueryTemplateRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/analyticshub/v1/analyticshub.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.bigquery.analyticshub.v1; + +public interface GetQueryTemplateRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource path of the QueryTemplate.
+   * e.g.
+   * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The parent resource path of the QueryTemplate.
+   * e.g.
+   * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListQueryTemplatesRequest.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListQueryTemplatesRequest.java new file mode 100644 index 000000000000..b454b80662ec --- /dev/null +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListQueryTemplatesRequest.java @@ -0,0 +1,964 @@ +/* + * 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/bigquery/analyticshub/v1/analyticshub.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.bigquery.analyticshub.v1; + +/** + * + * + *
+ * Message for requesting the list of QueryTemplates.
+ * 
+ * + * Protobuf type {@code google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest} + */ +public final class ListQueryTemplatesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest) + ListQueryTemplatesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListQueryTemplatesRequest.newBuilder() to construct. + private ListQueryTemplatesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListQueryTemplatesRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListQueryTemplatesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubProto + .internal_static_google_cloud_bigquery_analyticshub_v1_ListQueryTemplatesRequest_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_ListQueryTemplatesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest.class, + com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent resource path of the QueryTemplates.
+   * e.g. `projects/myproject/locations/us/dataExchanges/123`.
+   * 
+ * + * + * 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 parent resource path of the QueryTemplates.
+   * e.g. `projects/myproject/locations/us/dataExchanges/123`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
+   * Optional. The maximum number of results to return in a single response
+   * page. Leverage the page tokens to iterate through the entire collection.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
+   * Optional. Page token, returned by a previous call, to request the next page
+   * of results.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Page token, returned by a previous call, to request the next page
+   * of results.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest)) { + return super.equals(obj); + } + com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest other = + (com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest 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.ListQueryTemplatesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest parseFrom( + 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.ListQueryTemplatesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest 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.ListQueryTemplatesRequest 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.ListQueryTemplatesRequest 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.ListQueryTemplatesRequest + 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.ListQueryTemplatesRequest + 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.ListQueryTemplatesRequest 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.ListQueryTemplatesRequest 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.ListQueryTemplatesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 requesting the list of QueryTemplates.
+   * 
+ * + * Protobuf type {@code google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest) + com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubProto + .internal_static_google_cloud_bigquery_analyticshub_v1_ListQueryTemplatesRequest_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_ListQueryTemplatesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest.class, + com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest.Builder.class); + } + + // Construct using + // com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubProto + .internal_static_google_cloud_bigquery_analyticshub_v1_ListQueryTemplatesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest build() { + com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest buildPartial() { + com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest result = + new com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest) { + return mergeFrom( + (com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest other) { + if (other + == com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent resource path of the QueryTemplates.
+     * e.g. `projects/myproject/locations/us/dataExchanges/123`.
+     * 
+ * + * + * 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 parent resource path of the QueryTemplates.
+     * e.g. `projects/myproject/locations/us/dataExchanges/123`.
+     * 
+ * + * + * 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 parent resource path of the QueryTemplates.
+     * e.g. `projects/myproject/locations/us/dataExchanges/123`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource path of the QueryTemplates.
+     * e.g. `projects/myproject/locations/us/dataExchanges/123`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource path of the QueryTemplates.
+     * e.g. `projects/myproject/locations/us/dataExchanges/123`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
+     * Optional. The maximum number of results to return in a single response
+     * page. Leverage the page tokens to iterate through the entire collection.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * Optional. The maximum number of results to return in a single response
+     * page. Leverage the page tokens to iterate through the entire collection.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The maximum number of results to return in a single response
+     * page. Leverage the page tokens to iterate through the entire collection.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
+     * Optional. Page token, returned by a previous call, to request the next page
+     * of results.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Page token, returned by a previous call, to request the next page
+     * of results.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Page token, returned by a previous call, to request the next page
+     * of results.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Page token, returned by a previous call, to request the next page
+     * of results.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Page token, returned by a previous call, to request the next page
+     * of results.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest) + private static final com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest(); + } + + public static com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListQueryTemplatesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.ListQueryTemplatesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListQueryTemplatesRequestOrBuilder.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListQueryTemplatesRequestOrBuilder.java new file mode 100644 index 000000000000..b19c69910d9f --- /dev/null +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListQueryTemplatesRequestOrBuilder.java @@ -0,0 +1,100 @@ +/* + * 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/bigquery/analyticshub/v1/analyticshub.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.bigquery.analyticshub.v1; + +public interface ListQueryTemplatesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource path of the QueryTemplates.
+   * e.g. `projects/myproject/locations/us/dataExchanges/123`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent resource path of the QueryTemplates.
+   * e.g. `projects/myproject/locations/us/dataExchanges/123`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. The maximum number of results to return in a single response
+   * page. Leverage the page tokens to iterate through the entire collection.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. Page token, returned by a previous call, to request the next page
+   * of results.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. Page token, returned by a previous call, to request the next page
+   * of results.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListQueryTemplatesResponse.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListQueryTemplatesResponse.java new file mode 100644 index 000000000000..c0bc079bd783 --- /dev/null +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListQueryTemplatesResponse.java @@ -0,0 +1,1201 @@ +/* + * 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/bigquery/analyticshub/v1/analyticshub.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.bigquery.analyticshub.v1; + +/** + * + * + *
+ * Message for response to the list of QueryTemplates.
+ * 
+ * + * Protobuf type {@code google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse} + */ +public final class ListQueryTemplatesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse) + ListQueryTemplatesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListQueryTemplatesResponse.newBuilder() to construct. + private ListQueryTemplatesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListQueryTemplatesResponse() { + queryTemplates_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListQueryTemplatesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubProto + .internal_static_google_cloud_bigquery_analyticshub_v1_ListQueryTemplatesResponse_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_ListQueryTemplatesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse.class, + com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse.Builder.class); + } + + public static final int QUERY_TEMPLATES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List queryTemplates_; + + /** + * + * + *
+   * The list of QueryTemplates.
+   * 
+ * + * repeated .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_templates = 1; + */ + @java.lang.Override + public java.util.List + getQueryTemplatesList() { + return queryTemplates_; + } + + /** + * + * + *
+   * The list of QueryTemplates.
+   * 
+ * + * repeated .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_templates = 1; + */ + @java.lang.Override + public java.util.List + getQueryTemplatesOrBuilderList() { + return queryTemplates_; + } + + /** + * + * + *
+   * The list of QueryTemplates.
+   * 
+ * + * repeated .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_templates = 1; + */ + @java.lang.Override + public int getQueryTemplatesCount() { + return queryTemplates_.size(); + } + + /** + * + * + *
+   * The list of QueryTemplates.
+   * 
+ * + * repeated .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_templates = 1; + */ + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.QueryTemplate getQueryTemplates(int index) { + return queryTemplates_.get(index); + } + + /** + * + * + *
+   * The list of QueryTemplates.
+   * 
+ * + * repeated .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_templates = 1; + */ + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.QueryTemplateOrBuilder + getQueryTemplatesOrBuilder(int index) { + return queryTemplates_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * A token to request the next page of results.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
+   * A token to request the next page of results.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < queryTemplates_.size(); i++) { + output.writeMessage(1, queryTemplates_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < queryTemplates_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, queryTemplates_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse)) { + return super.equals(obj); + } + com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse other = + (com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse) obj; + + if (!getQueryTemplatesList().equals(other.getQueryTemplatesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getQueryTemplatesCount() > 0) { + hash = (37 * hash) + QUERY_TEMPLATES_FIELD_NUMBER; + hash = (53 * hash) + getQueryTemplatesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse 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.ListQueryTemplatesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse parseFrom( + 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.ListQueryTemplatesResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse 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.ListQueryTemplatesResponse 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.ListQueryTemplatesResponse 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.ListQueryTemplatesResponse + 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.ListQueryTemplatesResponse + 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.ListQueryTemplatesResponse 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.ListQueryTemplatesResponse 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.ListQueryTemplatesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 response to the list of QueryTemplates.
+   * 
+ * + * Protobuf type {@code google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse) + com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubProto + .internal_static_google_cloud_bigquery_analyticshub_v1_ListQueryTemplatesResponse_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_ListQueryTemplatesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse.class, + com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse.Builder.class); + } + + // Construct using + // com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (queryTemplatesBuilder_ == null) { + queryTemplates_ = java.util.Collections.emptyList(); + } else { + queryTemplates_ = null; + queryTemplatesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + 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_ListQueryTemplatesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse + getDefaultInstanceForType() { + return com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse build() { + com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse buildPartial() { + com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse result = + new com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse result) { + if (queryTemplatesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + queryTemplates_ = java.util.Collections.unmodifiableList(queryTemplates_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.queryTemplates_ = queryTemplates_; + } else { + result.queryTemplates_ = queryTemplatesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse) { + return mergeFrom( + (com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse other) { + if (other + == com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse + .getDefaultInstance()) return this; + if (queryTemplatesBuilder_ == null) { + if (!other.queryTemplates_.isEmpty()) { + if (queryTemplates_.isEmpty()) { + queryTemplates_ = other.queryTemplates_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureQueryTemplatesIsMutable(); + queryTemplates_.addAll(other.queryTemplates_); + } + onChanged(); + } + } else { + if (!other.queryTemplates_.isEmpty()) { + if (queryTemplatesBuilder_.isEmpty()) { + queryTemplatesBuilder_.dispose(); + queryTemplatesBuilder_ = null; + queryTemplates_ = other.queryTemplates_; + bitField0_ = (bitField0_ & ~0x00000001); + queryTemplatesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getQueryTemplatesFieldBuilder() + : null; + } else { + queryTemplatesBuilder_.addAllMessages(other.queryTemplates_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate m = + input.readMessage( + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate.parser(), + extensionRegistry); + if (queryTemplatesBuilder_ == null) { + ensureQueryTemplatesIsMutable(); + queryTemplates_.add(m); + } else { + queryTemplatesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + queryTemplates_ = java.util.Collections.emptyList(); + + private void ensureQueryTemplatesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + queryTemplates_ = + new java.util.ArrayList( + queryTemplates_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate, + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate.Builder, + com.google.cloud.bigquery.analyticshub.v1.QueryTemplateOrBuilder> + queryTemplatesBuilder_; + + /** + * + * + *
+     * The list of QueryTemplates.
+     * 
+ * + * repeated .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_templates = 1; + * + */ + public java.util.List + getQueryTemplatesList() { + if (queryTemplatesBuilder_ == null) { + return java.util.Collections.unmodifiableList(queryTemplates_); + } else { + return queryTemplatesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The list of QueryTemplates.
+     * 
+ * + * repeated .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_templates = 1; + * + */ + public int getQueryTemplatesCount() { + if (queryTemplatesBuilder_ == null) { + return queryTemplates_.size(); + } else { + return queryTemplatesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The list of QueryTemplates.
+     * 
+ * + * repeated .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_templates = 1; + * + */ + public com.google.cloud.bigquery.analyticshub.v1.QueryTemplate getQueryTemplates(int index) { + if (queryTemplatesBuilder_ == null) { + return queryTemplates_.get(index); + } else { + return queryTemplatesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The list of QueryTemplates.
+     * 
+ * + * repeated .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_templates = 1; + * + */ + public Builder setQueryTemplates( + int index, com.google.cloud.bigquery.analyticshub.v1.QueryTemplate value) { + if (queryTemplatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQueryTemplatesIsMutable(); + queryTemplates_.set(index, value); + onChanged(); + } else { + queryTemplatesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of QueryTemplates.
+     * 
+ * + * repeated .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_templates = 1; + * + */ + public Builder setQueryTemplates( + int index, + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate.Builder builderForValue) { + if (queryTemplatesBuilder_ == null) { + ensureQueryTemplatesIsMutable(); + queryTemplates_.set(index, builderForValue.build()); + onChanged(); + } else { + queryTemplatesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of QueryTemplates.
+     * 
+ * + * repeated .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_templates = 1; + * + */ + public Builder addQueryTemplates( + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate value) { + if (queryTemplatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQueryTemplatesIsMutable(); + queryTemplates_.add(value); + onChanged(); + } else { + queryTemplatesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The list of QueryTemplates.
+     * 
+ * + * repeated .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_templates = 1; + * + */ + public Builder addQueryTemplates( + int index, com.google.cloud.bigquery.analyticshub.v1.QueryTemplate value) { + if (queryTemplatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQueryTemplatesIsMutable(); + queryTemplates_.add(index, value); + onChanged(); + } else { + queryTemplatesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of QueryTemplates.
+     * 
+ * + * repeated .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_templates = 1; + * + */ + public Builder addQueryTemplates( + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate.Builder builderForValue) { + if (queryTemplatesBuilder_ == null) { + ensureQueryTemplatesIsMutable(); + queryTemplates_.add(builderForValue.build()); + onChanged(); + } else { + queryTemplatesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of QueryTemplates.
+     * 
+ * + * repeated .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_templates = 1; + * + */ + public Builder addQueryTemplates( + int index, + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate.Builder builderForValue) { + if (queryTemplatesBuilder_ == null) { + ensureQueryTemplatesIsMutable(); + queryTemplates_.add(index, builderForValue.build()); + onChanged(); + } else { + queryTemplatesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of QueryTemplates.
+     * 
+ * + * repeated .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_templates = 1; + * + */ + public Builder addAllQueryTemplates( + java.lang.Iterable + values) { + if (queryTemplatesBuilder_ == null) { + ensureQueryTemplatesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, queryTemplates_); + onChanged(); + } else { + queryTemplatesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The list of QueryTemplates.
+     * 
+ * + * repeated .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_templates = 1; + * + */ + public Builder clearQueryTemplates() { + if (queryTemplatesBuilder_ == null) { + queryTemplates_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + queryTemplatesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The list of QueryTemplates.
+     * 
+ * + * repeated .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_templates = 1; + * + */ + public Builder removeQueryTemplates(int index) { + if (queryTemplatesBuilder_ == null) { + ensureQueryTemplatesIsMutable(); + queryTemplates_.remove(index); + onChanged(); + } else { + queryTemplatesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The list of QueryTemplates.
+     * 
+ * + * repeated .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_templates = 1; + * + */ + public com.google.cloud.bigquery.analyticshub.v1.QueryTemplate.Builder getQueryTemplatesBuilder( + int index) { + return getQueryTemplatesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The list of QueryTemplates.
+     * 
+ * + * repeated .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_templates = 1; + * + */ + public com.google.cloud.bigquery.analyticshub.v1.QueryTemplateOrBuilder + getQueryTemplatesOrBuilder(int index) { + if (queryTemplatesBuilder_ == null) { + return queryTemplates_.get(index); + } else { + return queryTemplatesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The list of QueryTemplates.
+     * 
+ * + * repeated .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_templates = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.bigquery.analyticshub.v1.QueryTemplateOrBuilder> + getQueryTemplatesOrBuilderList() { + if (queryTemplatesBuilder_ != null) { + return queryTemplatesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(queryTemplates_); + } + } + + /** + * + * + *
+     * The list of QueryTemplates.
+     * 
+ * + * repeated .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_templates = 1; + * + */ + public com.google.cloud.bigquery.analyticshub.v1.QueryTemplate.Builder + addQueryTemplatesBuilder() { + return getQueryTemplatesFieldBuilder() + .addBuilder(com.google.cloud.bigquery.analyticshub.v1.QueryTemplate.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of QueryTemplates.
+     * 
+ * + * repeated .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_templates = 1; + * + */ + public com.google.cloud.bigquery.analyticshub.v1.QueryTemplate.Builder addQueryTemplatesBuilder( + int index) { + return getQueryTemplatesFieldBuilder() + .addBuilder( + index, com.google.cloud.bigquery.analyticshub.v1.QueryTemplate.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of QueryTemplates.
+     * 
+ * + * repeated .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_templates = 1; + * + */ + public java.util.List + getQueryTemplatesBuilderList() { + return getQueryTemplatesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate, + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate.Builder, + com.google.cloud.bigquery.analyticshub.v1.QueryTemplateOrBuilder> + getQueryTemplatesFieldBuilder() { + if (queryTemplatesBuilder_ == null) { + queryTemplatesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate, + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate.Builder, + com.google.cloud.bigquery.analyticshub.v1.QueryTemplateOrBuilder>( + queryTemplates_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + queryTemplates_ = null; + } + return queryTemplatesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * A token to request the next page of results.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * A token to request the next page of results.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * A token to request the next page of results.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * A token to request the next page of results.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * A token to request the next page of results.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse) + private static final com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse(); + } + + public static com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListQueryTemplatesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.ListQueryTemplatesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListQueryTemplatesResponseOrBuilder.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListQueryTemplatesResponseOrBuilder.java new file mode 100644 index 000000000000..6d6a1bf65de0 --- /dev/null +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListQueryTemplatesResponseOrBuilder.java @@ -0,0 +1,109 @@ +/* + * 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/bigquery/analyticshub/v1/analyticshub.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.bigquery.analyticshub.v1; + +public interface ListQueryTemplatesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of QueryTemplates.
+   * 
+ * + * repeated .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_templates = 1; + */ + java.util.List getQueryTemplatesList(); + + /** + * + * + *
+   * The list of QueryTemplates.
+   * 
+ * + * repeated .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_templates = 1; + */ + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate getQueryTemplates(int index); + + /** + * + * + *
+   * The list of QueryTemplates.
+   * 
+ * + * repeated .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_templates = 1; + */ + int getQueryTemplatesCount(); + + /** + * + * + *
+   * The list of QueryTemplates.
+   * 
+ * + * repeated .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_templates = 1; + */ + java.util.List + getQueryTemplatesOrBuilderList(); + + /** + * + * + *
+   * The list of QueryTemplates.
+   * 
+ * + * repeated .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_templates = 1; + */ + com.google.cloud.bigquery.analyticshub.v1.QueryTemplateOrBuilder getQueryTemplatesOrBuilder( + int index); + + /** + * + * + *
+   * A token to request the next page of results.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * A token to request the next page of results.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} 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 d4bcc692d2f1..0edb37f09a24 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 @@ -267,6 +267,8 @@ public enum Category implements com.google.protobuf.ProtocolMessageEnum { CATEGORY_TRANSPORTATION_AND_LOGISTICS(18), /** CATEGORY_TRAVEL_AND_TOURISM = 19; */ CATEGORY_TRAVEL_AND_TOURISM(19), + /** CATEGORY_GOOGLE_EARTH_ENGINE = 20; */ + CATEGORY_GOOGLE_EARTH_ENGINE(20), UNRECOGNIZED(-1), ; @@ -330,6 +332,9 @@ public enum Category implements com.google.protobuf.ProtocolMessageEnum { /** CATEGORY_TRAVEL_AND_TOURISM = 19; */ public static final int CATEGORY_TRAVEL_AND_TOURISM_VALUE = 19; + /** CATEGORY_GOOGLE_EARTH_ENGINE = 20; */ + public static final int CATEGORY_GOOGLE_EARTH_ENGINE_VALUE = 20; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -394,6 +399,8 @@ public static Category forNumber(int value) { return CATEGORY_TRANSPORTATION_AND_LOGISTICS; case 19: return CATEGORY_TRAVEL_AND_TOURISM; + case 20: + return CATEGORY_GOOGLE_EARTH_ENGINE; default: return null; } @@ -614,6 +621,151 @@ public interface BigQueryDatasetSourceOrBuilder com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource .RestrictedExportPolicyOrBuilder getRestrictedExportPolicyOrBuilder(); + + /** + * + * + *
+     * Optional. A list of regions where the publisher has created shared
+     * dataset replicas.
+     * 
+ * + * repeated string replica_locations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the replicaLocations. + */ + java.util.List getReplicaLocationsList(); + + /** + * + * + *
+     * Optional. A list of regions where the publisher has created shared
+     * dataset replicas.
+     * 
+ * + * repeated string replica_locations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of replicaLocations. + */ + int getReplicaLocationsCount(); + + /** + * + * + *
+     * Optional. A list of regions where the publisher has created shared
+     * dataset replicas.
+     * 
+ * + * repeated string replica_locations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The replicaLocations at the given index. + */ + java.lang.String getReplicaLocations(int index); + + /** + * + * + *
+     * Optional. A list of regions where the publisher has created shared
+     * dataset replicas.
+     * 
+ * + * repeated string replica_locations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the replicaLocations at the given index. + */ + com.google.protobuf.ByteString getReplicaLocationsBytes(int index); + + /** + * + * + *
+     * Output only. Server-owned effective state of replicas.
+     * Contains both primary and secondary replicas.
+     * Each replica includes a system-computed (output-only) state and primary
+     * designation.
+     * 
+ * + * + * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica effective_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getEffectiveReplicasList(); + + /** + * + * + *
+     * Output only. Server-owned effective state of replicas.
+     * Contains both primary and secondary replicas.
+     * Each replica includes a system-computed (output-only) state and primary
+     * designation.
+     * 
+ * + * + * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica effective_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica + getEffectiveReplicas(int index); + + /** + * + * + *
+     * Output only. Server-owned effective state of replicas.
+     * Contains both primary and secondary replicas.
+     * Each replica includes a system-computed (output-only) state and primary
+     * designation.
+     * 
+ * + * + * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica effective_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getEffectiveReplicasCount(); + + /** + * + * + *
+     * Output only. Server-owned effective state of replicas.
+     * Contains both primary and secondary replicas.
+     * Each replica includes a system-computed (output-only) state and primary
+     * designation.
+     * 
+ * + * + * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica effective_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + .ReplicaOrBuilder> + getEffectiveReplicasOrBuilderList(); + + /** + * + * + *
+     * Output only. Server-owned effective state of replicas.
+     * Contains both primary and secondary replicas.
+     * Each replica includes a system-computed (output-only) state and primary
+     * designation.
+     * 
+ * + * + * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica effective_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.ReplicaOrBuilder + getEffectiveReplicasOrBuilder(int index); } /** @@ -645,6 +797,8 @@ private BigQueryDatasetSource(com.google.protobuf.GeneratedMessageV3.Builder private BigQueryDatasetSource() { dataset_ = ""; selectedResources_ = java.util.Collections.emptyList(); + replicaLocations_ = com.google.protobuf.LazyStringArrayList.emptyList(); + effectiveReplicas_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -3522,758 +3676,3222 @@ public com.google.protobuf.Parser getParserForType() { } } - private int bitField0_; - public static final int DATASET_FIELD_NUMBER = 1; + public interface ReplicaOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica) + com.google.protobuf.MessageOrBuilder { - @SuppressWarnings("serial") - private volatile java.lang.Object dataset_ = ""; + /** + * + * + *
+       * Output only. The geographic location where the replica resides. See
+       * [BigQuery locations](https://cloud.google.com/bigquery/docs/locations)
+       * for supported locations. Eg. "us-central1".
+       * 
+ * + * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The location. + */ + java.lang.String getLocation(); - /** - * - * - *
-     * Optional. Resource name of the dataset source for this listing.
-     * e.g. `projects/myproject/datasets/123`
-     * 
- * - * - * string dataset = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * - * @return The dataset. - */ - @java.lang.Override - public java.lang.String getDataset() { - java.lang.Object ref = dataset_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dataset_ = s; - return s; - } + /** + * + * + *
+       * Output only. The geographic location where the replica resides. See
+       * [BigQuery locations](https://cloud.google.com/bigquery/docs/locations)
+       * for supported locations. Eg. "us-central1".
+       * 
+ * + * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for location. + */ + com.google.protobuf.ByteString getLocationBytes(); + + /** + * + * + *
+       * Output only. Assigned by Analytics Hub based on real BigQuery
+       * replication state.
+       * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica.ReplicaState replica_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for replicaState. + */ + int getReplicaStateValue(); + + /** + * + * + *
+       * Output only. Assigned by Analytics Hub based on real BigQuery
+       * replication state.
+       * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica.ReplicaState replica_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The replicaState. + */ + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica.ReplicaState + getReplicaState(); + + /** + * + * + *
+       * Output only. Indicates that this replica is the primary replica.
+       * 
+ * + * + * optional .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica.PrimaryState primary_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the primaryState field is set. + */ + boolean hasPrimaryState(); + + /** + * + * + *
+       * Output only. Indicates that this replica is the primary replica.
+       * 
+ * + * + * optional .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica.PrimaryState primary_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for primaryState. + */ + int getPrimaryStateValue(); + + /** + * + * + *
+       * Output only. Indicates that this replica is the primary replica.
+       * 
+ * + * + * optional .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica.PrimaryState primary_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The primaryState. + */ + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica.PrimaryState + getPrimaryState(); } /** * * *
-     * Optional. Resource name of the dataset source for this listing.
-     * e.g. `projects/myproject/datasets/123`
+     * Represents the state of a replica of a shared dataset.
+     * It includes the geographic location of the replica and
+     * system-computed, output-only fields indicating its replication state and
+     * whether it is the primary replica.
      * 
* - * - * string dataset = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for dataset. + * Protobuf type {@code + * google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica} */ - @java.lang.Override - public com.google.protobuf.ByteString getDatasetBytes() { - java.lang.Object ref = dataset_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - dataset_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + public static final class Replica extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica) + ReplicaOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Replica.newBuilder() to construct. + private Replica(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); } - } - public static final int SELECTED_RESOURCES_FIELD_NUMBER = 2; + private Replica() { + location_ = ""; + replicaState_ = 0; + primaryState_ = 0; + } - @SuppressWarnings("serial") - private java.util.List< - com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource - .SelectedResource> - selectedResources_; + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Replica(); + } - /** - * - * - *
-     * Optional. Resource in this dataset that is selectively shared.
-     * This field is required for data clean room exchanges.
-     * 
- * - * - * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.List< - com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource - .SelectedResource> - getSelectedResourcesList() { - return selectedResources_; - } + 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_BigQueryDatasetSource_Replica_descriptor; + } - /** - * - * - *
-     * Optional. Resource in this dataset that is selectively shared.
-     * This field is required for data clean room exchanges.
-     * 
- * - * - * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource - .SelectedResourceOrBuilder> - getSelectedResourcesOrBuilderList() { - return selectedResources_; - } + @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_BigQueryDatasetSource_Replica_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica + .class, + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica + .Builder.class); + } - /** - * - * - *
-     * Optional. Resource in this dataset that is selectively shared.
-     * This field is required for data clean room exchanges.
-     * 
- * - * - * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public int getSelectedResourcesCount() { - return selectedResources_.size(); - } + /** + * + * + *
+       * Replica state of the shared dataset.
+       * 
+ * + * Protobuf enum {@code + * google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica.ReplicaState} + */ + public enum ReplicaState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+         * Default value. This value is unused.
+         * 
+ * + * REPLICA_STATE_UNSPECIFIED = 0; + */ + REPLICA_STATE_UNSPECIFIED(0), + /** + * + * + *
+         * The replica is backfilled and ready to use.
+         * 
+ * + * READY_TO_USE = 1; + */ + READY_TO_USE(1), + /** + * + * + *
+         * The replica is unavailable, does not exist, or has not been
+         * backfilled yet.
+         * 
+ * + * UNAVAILABLE = 2; + */ + UNAVAILABLE(2), + UNRECOGNIZED(-1), + ; - /** - * - * - *
-     * Optional. Resource in this dataset that is selectively shared.
-     * This field is required for data clean room exchanges.
-     * 
- * - * - * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource - getSelectedResources(int index) { - return selectedResources_.get(index); - } + /** + * + * + *
+         * Default value. This value is unused.
+         * 
+ * + * REPLICA_STATE_UNSPECIFIED = 0; + */ + public static final int REPLICA_STATE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * Optional. Resource in this dataset that is selectively shared.
-     * This field is required for data clean room exchanges.
-     * 
- * - * - * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource - .SelectedResourceOrBuilder - getSelectedResourcesOrBuilder(int index) { - return selectedResources_.get(index); - } + /** + * + * + *
+         * The replica is backfilled and ready to use.
+         * 
+ * + * READY_TO_USE = 1; + */ + public static final int READY_TO_USE_VALUE = 1; - public static final int RESTRICTED_EXPORT_POLICY_FIELD_NUMBER = 3; - private com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource - .RestrictedExportPolicy - restrictedExportPolicy_; + /** + * + * + *
+         * The replica is unavailable, does not exist, or has not been
+         * backfilled yet.
+         * 
+ * + * UNAVAILABLE = 2; + */ + public static final int UNAVAILABLE_VALUE = 2; - /** - * - * - *
-     * Optional. If set, restricted export policy will be propagated and
-     * enforced on the linked dataset.
-     * 
- * - * - * .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.RestrictedExportPolicy restricted_export_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the restrictedExportPolicy field is set. - */ - @java.lang.Override - public boolean hasRestrictedExportPolicy() { - return ((bitField0_ & 0x00000001) != 0); - } + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } - /** - * - * - *
-     * Optional. If set, restricted export policy will be propagated and
-     * enforced on the linked dataset.
-     * 
- * - * - * .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.RestrictedExportPolicy restricted_export_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The restrictedExportPolicy. - */ - @java.lang.Override - public com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource - .RestrictedExportPolicy - getRestrictedExportPolicy() { - return restrictedExportPolicy_ == null - ? com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource - .RestrictedExportPolicy.getDefaultInstance() - : restrictedExportPolicy_; - } + /** + * @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 ReplicaState valueOf(int value) { + return forNumber(value); + } - /** - * - * - *
-     * Optional. If set, restricted export policy will be propagated and
-     * enforced on the linked dataset.
-     * 
- * - * - * .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.RestrictedExportPolicy restricted_export_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource - .RestrictedExportPolicyOrBuilder - getRestrictedExportPolicyOrBuilder() { - return restrictedExportPolicy_ == null - ? com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource - .RestrictedExportPolicy.getDefaultInstance() - : restrictedExportPolicy_; - } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ReplicaState forNumber(int value) { + switch (value) { + case 0: + return REPLICA_STATE_UNSPECIFIED; + case 1: + return READY_TO_USE; + case 2: + return UNAVAILABLE; + default: + return null; + } + } - private byte memoizedIsInitialized = -1; + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ReplicaState findValueByNumber(int number) { + return ReplicaState.forNumber(number); + } + }; - memoizedIsInitialized = 1; - return true; - } + 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()); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataset_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataset_); - } - for (int i = 0; i < selectedResources_.size(); i++) { - output.writeMessage(2, selectedResources_.get(i)); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(3, getRestrictedExportPolicy()); - } - getUnknownFields().writeTo(output); - } + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica + .getDescriptor() + .getEnumTypes() + .get(0); + } - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataset_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dataset_); - } - for (int i = 0; i < selectedResources_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(2, selectedResources_.get(i)); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, getRestrictedExportPolicy()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + private static final ReplicaState[] VALUES = values(); - @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.BigQueryDatasetSource)) { - return super.equals(obj); - } - com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource other = - (com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource) obj; + public static ReplicaState 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()]; + } - if (!getDataset().equals(other.getDataset())) return false; - if (!getSelectedResourcesList().equals(other.getSelectedResourcesList())) return false; - if (hasRestrictedExportPolicy() != other.hasRestrictedExportPolicy()) return false; - if (hasRestrictedExportPolicy()) { - if (!getRestrictedExportPolicy().equals(other.getRestrictedExportPolicy())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + private final int value; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DATASET_FIELD_NUMBER; - hash = (53 * hash) + getDataset().hashCode(); - if (getSelectedResourcesCount() > 0) { - hash = (37 * hash) + SELECTED_RESOURCES_FIELD_NUMBER; - hash = (53 * hash) + getSelectedResourcesList().hashCode(); - } - if (hasRestrictedExportPolicy()) { - hash = (37 * hash) + RESTRICTED_EXPORT_POLICY_FIELD_NUMBER; - hash = (53 * hash) + getRestrictedExportPolicy().hashCode(); + private ReplicaState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica.ReplicaState) } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - public static com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
+       * Primary state of the replica. Set only for the primary replica.
+       * 
+ * + * Protobuf enum {@code + * google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica.PrimaryState} + */ + public enum PrimaryState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+         * Default value. This value is unused.
+         * 
+ * + * PRIMARY_STATE_UNSPECIFIED = 0; + */ + PRIMARY_STATE_UNSPECIFIED(0), + /** + * + * + *
+         * The replica is the primary replica.
+         * 
+ * + * PRIMARY_REPLICA = 1; + */ + PRIMARY_REPLICA(1), + UNRECOGNIZED(-1), + ; - public static com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + /** + * + * + *
+         * Default value. This value is unused.
+         * 
+ * + * PRIMARY_STATE_UNSPECIFIED = 0; + */ + public static final int PRIMARY_STATE_UNSPECIFIED_VALUE = 0; - public static com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
+         * The replica is the primary replica.
+         * 
+ * + * PRIMARY_REPLICA = 1; + */ + public static final int PRIMARY_REPLICA_VALUE = 1; - public static com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } - public static com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * @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 PrimaryState valueOf(int value) { + return forNumber(value); + } - public static com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static PrimaryState forNumber(int value) { + switch (value) { + case 0: + return PRIMARY_STATE_UNSPECIFIED; + case 1: + return PRIMARY_REPLICA; + default: + return null; + } + } - public static com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } - public static com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PrimaryState findValueByNumber(int number) { + return PrimaryState.forNumber(number); + } + }; - public static com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } + 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 static com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } - public static com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica + .getDescriptor() + .getEnumTypes() + .get(1); + } - public static com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + private static final PrimaryState[] VALUES = values(); - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + public static PrimaryState 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()]; + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + private final int value; + + private PrimaryState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica.PrimaryState) + } + + private int bitField0_; + public static final int LOCATION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object location_ = ""; + + /** + * + * + *
+       * Output only. The geographic location where the replica resides. See
+       * [BigQuery locations](https://cloud.google.com/bigquery/docs/locations)
+       * for supported locations. Eg. "us-central1".
+       * 
+ * + * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The location. + */ + @java.lang.Override + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } + } + + /** + * + * + *
+       * Output only. The geographic location where the replica resides. See
+       * [BigQuery locations](https://cloud.google.com/bigquery/docs/locations)
+       * for supported locations. Eg. "us-central1".
+       * 
+ * + * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for location. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REPLICA_STATE_FIELD_NUMBER = 2; + private int replicaState_ = 0; + + /** + * + * + *
+       * Output only. Assigned by Analytics Hub based on real BigQuery
+       * replication state.
+       * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica.ReplicaState replica_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for replicaState. + */ + @java.lang.Override + public int getReplicaStateValue() { + return replicaState_; + } + + /** + * + * + *
+       * Output only. Assigned by Analytics Hub based on real BigQuery
+       * replication state.
+       * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica.ReplicaState replica_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The replicaState. + */ + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica + .ReplicaState + getReplicaState() { + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica.ReplicaState + result = + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica + .ReplicaState.forNumber(replicaState_); + return result == null + ? com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica + .ReplicaState.UNRECOGNIZED + : result; + } + + public static final int PRIMARY_STATE_FIELD_NUMBER = 3; + private int primaryState_ = 0; + + /** + * + * + *
+       * Output only. Indicates that this replica is the primary replica.
+       * 
+ * + * + * optional .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica.PrimaryState primary_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the primaryState field is set. + */ + @java.lang.Override + public boolean hasPrimaryState() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+       * Output only. Indicates that this replica is the primary replica.
+       * 
+ * + * + * optional .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica.PrimaryState primary_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for primaryState. + */ + @java.lang.Override + public int getPrimaryStateValue() { + return primaryState_; + } + + /** + * + * + *
+       * Output only. Indicates that this replica is the primary replica.
+       * 
+ * + * + * optional .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica.PrimaryState primary_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The primaryState. + */ + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica + .PrimaryState + getPrimaryState() { + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica.PrimaryState + result = + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica + .PrimaryState.forNumber(primaryState_); + return result == null + ? com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica + .PrimaryState.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(location_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, location_); + } + if (replicaState_ + != com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica + .ReplicaState.REPLICA_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, replicaState_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(3, primaryState_); + } + 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(location_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, location_); + } + if (replicaState_ + != com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica + .ReplicaState.REPLICA_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, replicaState_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, primaryState_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.BigQueryDatasetSource.Replica)) { + return super.equals(obj); + } + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica other = + (com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica) obj; + + if (!getLocation().equals(other.getLocation())) return false; + if (replicaState_ != other.replicaState_) return false; + if (hasPrimaryState() != other.hasPrimaryState()) return false; + if (hasPrimaryState()) { + if (primaryState_ != other.primaryState_) 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) + LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getLocation().hashCode(); + hash = (37 * hash) + REPLICA_STATE_FIELD_NUMBER; + hash = (53 * hash) + replicaState_; + if (hasPrimaryState()) { + hash = (37 * hash) + PRIMARY_STATE_FIELD_NUMBER; + hash = (53 * hash) + primaryState_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica + 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.BigQueryDatasetSource.Replica + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica + parseFrom( + 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.BigQueryDatasetSource.Replica + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica + 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.BigQueryDatasetSource.Replica + 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.BigQueryDatasetSource.Replica + 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.BigQueryDatasetSource.Replica + 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.BigQueryDatasetSource.Replica + 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.BigQueryDatasetSource.Replica + 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.BigQueryDatasetSource.Replica + 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.BigQueryDatasetSource.Replica + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+       * Represents the state of a replica of a shared dataset.
+       * It includes the geographic location of the replica and
+       * system-computed, output-only fields indicating its replication state and
+       * whether it is the primary replica.
+       * 
+ * + * Protobuf type {@code + * google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica) + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.ReplicaOrBuilder { + 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_BigQueryDatasetSource_Replica_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_BigQueryDatasetSource_Replica_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica + .class, + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica + .Builder.class); + } + + // Construct using + // com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + location_ = ""; + replicaState_ = 0; + primaryState_ = 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_BigQueryDatasetSource_Replica_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica + getDefaultInstanceForType() { + return com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica + build() { + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica + buildPartial() { + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica result = + new com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.location_ = location_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.replicaState_ = replicaState_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.primaryState_ = primaryState_; + 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.BigQueryDatasetSource.Replica) { + return mergeFrom( + (com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica other) { + if (other + == com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica + .getDefaultInstance()) return this; + if (!other.getLocation().isEmpty()) { + location_ = other.location_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.replicaState_ != 0) { + setReplicaStateValue(other.getReplicaStateValue()); + } + if (other.hasPrimaryState()) { + setPrimaryState(other.getPrimaryState()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + location_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + replicaState_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + primaryState_ = 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 location_ = ""; + + /** + * + * + *
+         * Output only. The geographic location where the replica resides. See
+         * [BigQuery locations](https://cloud.google.com/bigquery/docs/locations)
+         * for supported locations. Eg. "us-central1".
+         * 
+ * + * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The location. + */ + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+         * Output only. The geographic location where the replica resides. See
+         * [BigQuery locations](https://cloud.google.com/bigquery/docs/locations)
+         * for supported locations. Eg. "us-central1".
+         * 
+ * + * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for location. + */ + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+         * Output only. The geographic location where the replica resides. See
+         * [BigQuery locations](https://cloud.google.com/bigquery/docs/locations)
+         * for supported locations. Eg. "us-central1".
+         * 
+ * + * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The location to set. + * @return This builder for chaining. + */ + public Builder setLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + location_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * Output only. The geographic location where the replica resides. See
+         * [BigQuery locations](https://cloud.google.com/bigquery/docs/locations)
+         * for supported locations. Eg. "us-central1".
+         * 
+ * + * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearLocation() { + location_ = getDefaultInstance().getLocation(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+         * Output only. The geographic location where the replica resides. See
+         * [BigQuery locations](https://cloud.google.com/bigquery/docs/locations)
+         * for supported locations. Eg. "us-central1".
+         * 
+ * + * string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for location to set. + * @return This builder for chaining. + */ + public Builder setLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + location_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int replicaState_ = 0; + + /** + * + * + *
+         * Output only. Assigned by Analytics Hub based on real BigQuery
+         * replication state.
+         * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica.ReplicaState replica_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for replicaState. + */ + @java.lang.Override + public int getReplicaStateValue() { + return replicaState_; + } + + /** + * + * + *
+         * Output only. Assigned by Analytics Hub based on real BigQuery
+         * replication state.
+         * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica.ReplicaState replica_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for replicaState to set. + * @return This builder for chaining. + */ + public Builder setReplicaStateValue(int value) { + replicaState_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+         * Output only. Assigned by Analytics Hub based on real BigQuery
+         * replication state.
+         * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica.ReplicaState replica_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The replicaState. + */ + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica + .ReplicaState + getReplicaState() { + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica + .ReplicaState + result = + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica + .ReplicaState.forNumber(replicaState_); + return result == null + ? com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica + .ReplicaState.UNRECOGNIZED + : result; + } + + /** + * + * + *
+         * Output only. Assigned by Analytics Hub based on real BigQuery
+         * replication state.
+         * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica.ReplicaState replica_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The replicaState to set. + * @return This builder for chaining. + */ + public Builder setReplicaState( + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica + .ReplicaState + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + replicaState_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+         * Output only. Assigned by Analytics Hub based on real BigQuery
+         * replication state.
+         * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica.ReplicaState replica_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearReplicaState() { + bitField0_ = (bitField0_ & ~0x00000002); + replicaState_ = 0; + onChanged(); + return this; + } + + private int primaryState_ = 0; + + /** + * + * + *
+         * Output only. Indicates that this replica is the primary replica.
+         * 
+ * + * + * optional .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica.PrimaryState primary_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the primaryState field is set. + */ + @java.lang.Override + public boolean hasPrimaryState() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+         * Output only. Indicates that this replica is the primary replica.
+         * 
+ * + * + * optional .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica.PrimaryState primary_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for primaryState. + */ + @java.lang.Override + public int getPrimaryStateValue() { + return primaryState_; + } + + /** + * + * + *
+         * Output only. Indicates that this replica is the primary replica.
+         * 
+ * + * + * optional .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica.PrimaryState primary_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for primaryState to set. + * @return This builder for chaining. + */ + public Builder setPrimaryStateValue(int value) { + primaryState_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+         * Output only. Indicates that this replica is the primary replica.
+         * 
+ * + * + * optional .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica.PrimaryState primary_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The primaryState. + */ + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica + .PrimaryState + getPrimaryState() { + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica + .PrimaryState + result = + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica + .PrimaryState.forNumber(primaryState_); + return result == null + ? com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica + .PrimaryState.UNRECOGNIZED + : result; + } + + /** + * + * + *
+         * Output only. Indicates that this replica is the primary replica.
+         * 
+ * + * + * optional .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica.PrimaryState primary_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The primaryState to set. + * @return This builder for chaining. + */ + public Builder setPrimaryState( + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica + .PrimaryState + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + primaryState_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+         * Output only. Indicates that this replica is the primary replica.
+         * 
+ * + * + * optional .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica.PrimaryState primary_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearPrimaryState() { + bitField0_ = (bitField0_ & ~0x00000004); + primaryState_ = 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.BigQueryDatasetSource.Replica) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica) + private static final com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + .Replica + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica(); + } + + public static com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Replica parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.BigQueryDatasetSource.Replica + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int DATASET_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object dataset_ = ""; + + /** + * + * + *
+     * Optional. Resource name of the dataset source for this listing.
+     * e.g. `projects/myproject/datasets/123`
+     * 
+ * + * + * string dataset = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The dataset. + */ + @java.lang.Override + public java.lang.String getDataset() { + java.lang.Object ref = dataset_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataset_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. Resource name of the dataset source for this listing.
+     * e.g. `projects/myproject/datasets/123`
+     * 
+ * + * + * string dataset = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for dataset. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDatasetBytes() { + java.lang.Object ref = dataset_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SELECTED_RESOURCES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + .SelectedResource> + selectedResources_; + + /** + * + * + *
+     * Optional. Resource in this dataset that is selectively shared.
+     * This field is required for data clean room exchanges.
+     * 
+ * + * + * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + .SelectedResource> + getSelectedResourcesList() { + return selectedResources_; + } + + /** + * + * + *
+     * Optional. Resource in this dataset that is selectively shared.
+     * This field is required for data clean room exchanges.
+     * 
+ * + * + * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + .SelectedResourceOrBuilder> + getSelectedResourcesOrBuilderList() { + return selectedResources_; + } + + /** + * + * + *
+     * Optional. Resource in this dataset that is selectively shared.
+     * This field is required for data clean room exchanges.
+     * 
+ * + * + * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getSelectedResourcesCount() { + return selectedResources_.size(); + } + + /** + * + * + *
+     * Optional. Resource in this dataset that is selectively shared.
+     * This field is required for data clean room exchanges.
+     * 
+ * + * + * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource + getSelectedResources(int index) { + return selectedResources_.get(index); + } + + /** + * + * + *
+     * Optional. Resource in this dataset that is selectively shared.
+     * This field is required for data clean room exchanges.
+     * 
+ * + * + * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + .SelectedResourceOrBuilder + getSelectedResourcesOrBuilder(int index) { + return selectedResources_.get(index); + } + + public static final int RESTRICTED_EXPORT_POLICY_FIELD_NUMBER = 3; + private com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + .RestrictedExportPolicy + restrictedExportPolicy_; + + /** + * + * + *
+     * Optional. If set, restricted export policy will be propagated and
+     * enforced on the linked dataset.
+     * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.RestrictedExportPolicy restricted_export_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the restrictedExportPolicy field is set. + */ + @java.lang.Override + public boolean hasRestrictedExportPolicy() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. If set, restricted export policy will be propagated and
+     * enforced on the linked dataset.
+     * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.RestrictedExportPolicy restricted_export_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The restrictedExportPolicy. + */ + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + .RestrictedExportPolicy + getRestrictedExportPolicy() { + return restrictedExportPolicy_ == null + ? com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + .RestrictedExportPolicy.getDefaultInstance() + : restrictedExportPolicy_; + } + + /** + * + * + *
+     * Optional. If set, restricted export policy will be propagated and
+     * enforced on the linked dataset.
+     * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.RestrictedExportPolicy restricted_export_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + .RestrictedExportPolicyOrBuilder + getRestrictedExportPolicyOrBuilder() { + return restrictedExportPolicy_ == null + ? com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + .RestrictedExportPolicy.getDefaultInstance() + : restrictedExportPolicy_; + } + + public static final int REPLICA_LOCATIONS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList replicaLocations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+     * Optional. A list of regions where the publisher has created shared
+     * dataset replicas.
+     * 
+ * + * repeated string replica_locations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the replicaLocations. + */ + public com.google.protobuf.ProtocolStringList getReplicaLocationsList() { + return replicaLocations_; + } + + /** + * + * + *
+     * Optional. A list of regions where the publisher has created shared
+     * dataset replicas.
+     * 
+ * + * repeated string replica_locations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of replicaLocations. + */ + public int getReplicaLocationsCount() { + return replicaLocations_.size(); + } + + /** + * + * + *
+     * Optional. A list of regions where the publisher has created shared
+     * dataset replicas.
+     * 
+ * + * repeated string replica_locations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The replicaLocations at the given index. + */ + public java.lang.String getReplicaLocations(int index) { + return replicaLocations_.get(index); + } + + /** + * + * + *
+     * Optional. A list of regions where the publisher has created shared
+     * dataset replicas.
+     * 
+ * + * repeated string replica_locations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the replicaLocations at the given index. + */ + public com.google.protobuf.ByteString getReplicaLocationsBytes(int index) { + return replicaLocations_.getByteString(index); + } + + public static final int EFFECTIVE_REPLICAS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica> + effectiveReplicas_; + + /** + * + * + *
+     * Output only. Server-owned effective state of replicas.
+     * Contains both primary and secondary replicas.
+     * Each replica includes a system-computed (output-only) state and primary
+     * designation.
+     * 
+ * + * + * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica effective_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica> + getEffectiveReplicasList() { + return effectiveReplicas_; + } + + /** + * + * + *
+     * Output only. Server-owned effective state of replicas.
+     * Contains both primary and secondary replicas.
+     * Each replica includes a system-computed (output-only) state and primary
+     * designation.
+     * 
+ * + * + * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica effective_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + .ReplicaOrBuilder> + getEffectiveReplicasOrBuilderList() { + return effectiveReplicas_; + } + + /** + * + * + *
+     * Output only. Server-owned effective state of replicas.
+     * Contains both primary and secondary replicas.
+     * Each replica includes a system-computed (output-only) state and primary
+     * designation.
+     * 
+ * + * + * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica effective_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getEffectiveReplicasCount() { + return effectiveReplicas_.size(); + } + + /** + * + * + *
+     * Output only. Server-owned effective state of replicas.
+     * Contains both primary and secondary replicas.
+     * Each replica includes a system-computed (output-only) state and primary
+     * designation.
+     * 
+ * + * + * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica effective_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica + getEffectiveReplicas(int index) { + return effectiveReplicas_.get(index); + } + + /** + * + * + *
+     * Output only. Server-owned effective state of replicas.
+     * Contains both primary and secondary replicas.
+     * Each replica includes a system-computed (output-only) state and primary
+     * designation.
+     * 
+ * + * + * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica effective_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.ReplicaOrBuilder + getEffectiveReplicasOrBuilder(int index) { + return effectiveReplicas_.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(dataset_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataset_); + } + for (int i = 0; i < selectedResources_.size(); i++) { + output.writeMessage(2, selectedResources_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getRestrictedExportPolicy()); + } + for (int i = 0; i < replicaLocations_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, replicaLocations_.getRaw(i)); + } + for (int i = 0; i < effectiveReplicas_.size(); i++) { + output.writeMessage(6, effectiveReplicas_.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(dataset_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dataset_); + } + for (int i = 0; i < selectedResources_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, selectedResources_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, getRestrictedExportPolicy()); + } + { + int dataSize = 0; + for (int i = 0; i < replicaLocations_.size(); i++) { + dataSize += computeStringSizeNoTag(replicaLocations_.getRaw(i)); + } + size += dataSize; + size += 1 * getReplicaLocationsList().size(); + } + for (int i = 0; i < effectiveReplicas_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(6, effectiveReplicas_.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.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource)) { + return super.equals(obj); + } + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource other = + (com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource) obj; + + if (!getDataset().equals(other.getDataset())) return false; + if (!getSelectedResourcesList().equals(other.getSelectedResourcesList())) return false; + if (hasRestrictedExportPolicy() != other.hasRestrictedExportPolicy()) return false; + if (hasRestrictedExportPolicy()) { + if (!getRestrictedExportPolicy().equals(other.getRestrictedExportPolicy())) return false; + } + if (!getReplicaLocationsList().equals(other.getReplicaLocationsList())) return false; + if (!getEffectiveReplicasList().equals(other.getEffectiveReplicasList())) 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) + DATASET_FIELD_NUMBER; + hash = (53 * hash) + getDataset().hashCode(); + if (getSelectedResourcesCount() > 0) { + hash = (37 * hash) + SELECTED_RESOURCES_FIELD_NUMBER; + hash = (53 * hash) + getSelectedResourcesList().hashCode(); + } + if (hasRestrictedExportPolicy()) { + hash = (37 * hash) + RESTRICTED_EXPORT_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getRestrictedExportPolicy().hashCode(); + } + if (getReplicaLocationsCount() > 0) { + hash = (37 * hash) + REPLICA_LOCATIONS_FIELD_NUMBER; + hash = (53 * hash) + getReplicaLocationsList().hashCode(); + } + if (getEffectiveReplicasCount() > 0) { + hash = (37 * hash) + EFFECTIVE_REPLICAS_FIELD_NUMBER; + hash = (53 * hash) + getEffectiveReplicasList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource 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.BigQueryDatasetSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource parseFrom( + 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.BigQueryDatasetSource parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource 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.BigQueryDatasetSource 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.BigQueryDatasetSource 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.BigQueryDatasetSource + 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.BigQueryDatasetSource + 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.BigQueryDatasetSource 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.BigQueryDatasetSource 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.BigQueryDatasetSource prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 reference to a shared dataset. It is an existing BigQuery dataset with a
+     * collection of objects such as tables and views that you want to share
+     * with subscribers.
+     * When subscriber's subscribe to a listing, Analytics Hub creates a linked
+     * dataset in
+     * the subscriber's project. A Linked dataset is an opaque, read-only BigQuery
+     * dataset that serves as a _symbolic link_ to a shared dataset.
+     * 
+ * + * Protobuf type {@code google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource) + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSourceOrBuilder { + 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_BigQueryDatasetSource_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_BigQueryDatasetSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.class, + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Builder + .class); + } + + // Construct using + // com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSelectedResourcesFieldBuilder(); + getRestrictedExportPolicyFieldBuilder(); + getEffectiveReplicasFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + dataset_ = ""; + if (selectedResourcesBuilder_ == null) { + selectedResources_ = java.util.Collections.emptyList(); + } else { + selectedResources_ = null; + selectedResourcesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + restrictedExportPolicy_ = null; + if (restrictedExportPolicyBuilder_ != null) { + restrictedExportPolicyBuilder_.dispose(); + restrictedExportPolicyBuilder_ = null; + } + replicaLocations_ = com.google.protobuf.LazyStringArrayList.emptyList(); + if (effectiveReplicasBuilder_ == null) { + effectiveReplicas_ = java.util.Collections.emptyList(); + } else { + effectiveReplicas_ = null; + effectiveReplicasBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + 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_BigQueryDatasetSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + getDefaultInstanceForType() { + return com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource build() { + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + buildPartial() { + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource result = + new com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource result) { + if (selectedResourcesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + selectedResources_ = java.util.Collections.unmodifiableList(selectedResources_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.selectedResources_ = selectedResources_; + } else { + result.selectedResources_ = selectedResourcesBuilder_.build(); + } + if (effectiveReplicasBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + effectiveReplicas_ = java.util.Collections.unmodifiableList(effectiveReplicas_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.effectiveReplicas_ = effectiveReplicas_; + } else { + result.effectiveReplicas_ = effectiveReplicasBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dataset_ = dataset_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.restrictedExportPolicy_ = + restrictedExportPolicyBuilder_ == null + ? restrictedExportPolicy_ + : restrictedExportPolicyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + replicaLocations_.makeImmutable(); + result.replicaLocations_ = replicaLocations_; + } + 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.BigQueryDatasetSource) { + return mergeFrom( + (com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource other) { + if (other + == com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + .getDefaultInstance()) return this; + if (!other.getDataset().isEmpty()) { + dataset_ = other.dataset_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (selectedResourcesBuilder_ == null) { + if (!other.selectedResources_.isEmpty()) { + if (selectedResources_.isEmpty()) { + selectedResources_ = other.selectedResources_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureSelectedResourcesIsMutable(); + selectedResources_.addAll(other.selectedResources_); + } + onChanged(); + } + } else { + if (!other.selectedResources_.isEmpty()) { + if (selectedResourcesBuilder_.isEmpty()) { + selectedResourcesBuilder_.dispose(); + selectedResourcesBuilder_ = null; + selectedResources_ = other.selectedResources_; + bitField0_ = (bitField0_ & ~0x00000002); + selectedResourcesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSelectedResourcesFieldBuilder() + : null; + } else { + selectedResourcesBuilder_.addAllMessages(other.selectedResources_); + } + } + } + if (other.hasRestrictedExportPolicy()) { + mergeRestrictedExportPolicy(other.getRestrictedExportPolicy()); + } + if (!other.replicaLocations_.isEmpty()) { + if (replicaLocations_.isEmpty()) { + replicaLocations_ = other.replicaLocations_; + bitField0_ |= 0x00000008; + } else { + ensureReplicaLocationsIsMutable(); + replicaLocations_.addAll(other.replicaLocations_); + } + onChanged(); + } + if (effectiveReplicasBuilder_ == null) { + if (!other.effectiveReplicas_.isEmpty()) { + if (effectiveReplicas_.isEmpty()) { + effectiveReplicas_ = other.effectiveReplicas_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureEffectiveReplicasIsMutable(); + effectiveReplicas_.addAll(other.effectiveReplicas_); + } + onChanged(); + } + } else { + if (!other.effectiveReplicas_.isEmpty()) { + if (effectiveReplicasBuilder_.isEmpty()) { + effectiveReplicasBuilder_.dispose(); + effectiveReplicasBuilder_ = null; + effectiveReplicas_ = other.effectiveReplicas_; + bitField0_ = (bitField0_ & ~0x00000010); + effectiveReplicasBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEffectiveReplicasFieldBuilder() + : null; + } else { + effectiveReplicasBuilder_.addAllMessages(other.effectiveReplicas_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + dataset_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + .SelectedResource + m = + input.readMessage( + com.google.cloud.bigquery.analyticshub.v1.Listing + .BigQueryDatasetSource.SelectedResource.parser(), + extensionRegistry); + if (selectedResourcesBuilder_ == null) { + ensureSelectedResourcesIsMutable(); + selectedResources_.add(m); + } else { + selectedResourcesBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + input.readMessage( + getRestrictedExportPolicyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureReplicaLocationsIsMutable(); + replicaLocations_.add(s); + break; + } // case 42 + case 50: + { + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica + m = + input.readMessage( + com.google.cloud.bigquery.analyticshub.v1.Listing + .BigQueryDatasetSource.Replica.parser(), + extensionRegistry); + if (effectiveReplicasBuilder_ == null) { + ensureEffectiveReplicasIsMutable(); + effectiveReplicas_.add(m); + } else { + effectiveReplicasBuilder_.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 dataset_ = ""; + + /** + * + * + *
+       * Optional. Resource name of the dataset source for this listing.
+       * e.g. `projects/myproject/datasets/123`
+       * 
+ * + * + * string dataset = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The dataset. + */ + public java.lang.String getDataset() { + java.lang.Object ref = dataset_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataset_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - public static Builder newBuilder( - com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + /** + * + * + *
+       * Optional. Resource name of the dataset source for this listing.
+       * e.g. `projects/myproject/datasets/123`
+       * 
+ * + * + * string dataset = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for dataset. + */ + public com.google.protobuf.ByteString getDatasetBytes() { + java.lang.Object ref = dataset_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + /** + * + * + *
+       * Optional. Resource name of the dataset source for this listing.
+       * e.g. `projects/myproject/datasets/123`
+       * 
+ * + * + * string dataset = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The dataset to set. + * @return This builder for chaining. + */ + public Builder setDataset(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dataset_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } + /** + * + * + *
+       * Optional. Resource name of the dataset source for this listing.
+       * e.g. `projects/myproject/datasets/123`
+       * 
+ * + * + * string dataset = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearDataset() { + dataset_ = getDefaultInstance().getDataset(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } - /** - * - * - *
-     * A reference to a shared dataset. It is an existing BigQuery dataset with a
-     * collection of objects such as tables and views that you want to share
-     * with subscribers.
-     * When subscriber's subscribe to a listing, Analytics Hub creates a linked
-     * dataset in
-     * the subscriber's project. A Linked dataset is an opaque, read-only BigQuery
-     * dataset that serves as a _symbolic link_ to a shared dataset.
-     * 
- * - * Protobuf type {@code google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource) - com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSourceOrBuilder { - 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_BigQueryDatasetSource_descriptor; + /** + * + * + *
+       * Optional. Resource name of the dataset source for this listing.
+       * e.g. `projects/myproject/datasets/123`
+       * 
+ * + * + * string dataset = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for dataset to set. + * @return This builder for chaining. + */ + public Builder setDatasetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataset_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; } - @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_BigQueryDatasetSource_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.class, - com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Builder - .class); + private java.util.List< + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + .SelectedResource> + selectedResources_ = java.util.Collections.emptyList(); + + private void ensureSelectedResourcesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + selectedResources_ = + new java.util.ArrayList< + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + .SelectedResource>(selectedResources_); + bitField0_ |= 0x00000002; + } } - // Construct using - // com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + .SelectedResource, + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + .SelectedResource.Builder, + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + .SelectedResourceOrBuilder> + selectedResourcesBuilder_; + + /** + * + * + *
+       * Optional. Resource in this dataset that is selectively shared.
+       * This field is required for data clean room exchanges.
+       * 
+ * + * + * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + .SelectedResource> + getSelectedResourcesList() { + if (selectedResourcesBuilder_ == null) { + return java.util.Collections.unmodifiableList(selectedResources_); + } else { + return selectedResourcesBuilder_.getMessageList(); + } } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); + /** + * + * + *
+       * Optional. Resource in this dataset that is selectively shared.
+       * This field is required for data clean room exchanges.
+       * 
+ * + * + * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getSelectedResourcesCount() { + if (selectedResourcesBuilder_ == null) { + return selectedResources_.size(); + } else { + return selectedResourcesBuilder_.getCount(); + } } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getSelectedResourcesFieldBuilder(); - getRestrictedExportPolicyFieldBuilder(); + /** + * + * + *
+       * Optional. Resource in this dataset that is selectively shared.
+       * This field is required for data clean room exchanges.
+       * 
+ * + * + * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + .SelectedResource + getSelectedResources(int index) { + if (selectedResourcesBuilder_ == null) { + return selectedResources_.get(index); + } else { + return selectedResourcesBuilder_.getMessage(index); } } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - dataset_ = ""; + /** + * + * + *
+       * Optional. Resource in this dataset that is selectively shared.
+       * This field is required for data clean room exchanges.
+       * 
+ * + * + * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSelectedResources( + int index, + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource + value) { if (selectedResourcesBuilder_ == null) { - selectedResources_ = java.util.Collections.emptyList(); + if (value == null) { + throw new NullPointerException(); + } + ensureSelectedResourcesIsMutable(); + selectedResources_.set(index, value); + onChanged(); } else { - selectedResources_ = null; - selectedResourcesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - restrictedExportPolicy_ = null; - if (restrictedExportPolicyBuilder_ != null) { - restrictedExportPolicyBuilder_.dispose(); - restrictedExportPolicyBuilder_ = null; + selectedResourcesBuilder_.setMessage(index, value); } 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_BigQueryDatasetSource_descriptor; - } - - @java.lang.Override - public com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource - getDefaultInstanceForType() { - return com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource build() { - com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + /** + * + * + *
+       * Optional. Resource in this dataset that is selectively shared.
+       * This field is required for data clean room exchanges.
+       * 
+ * + * + * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSelectedResources( + int index, + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource + .Builder + builderForValue) { + if (selectedResourcesBuilder_ == null) { + ensureSelectedResourcesIsMutable(); + selectedResources_.set(index, builderForValue.build()); + onChanged(); + } else { + selectedResourcesBuilder_.setMessage(index, builderForValue.build()); } - return result; + return this; } - @java.lang.Override - public com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource - buildPartial() { - com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource result = - new com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); + /** + * + * + *
+       * Optional. Resource in this dataset that is selectively shared.
+       * This field is required for data clean room exchanges.
+       * 
+ * + * + * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSelectedResources( + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource + value) { + if (selectedResourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSelectedResourcesIsMutable(); + selectedResources_.add(value); + onChanged(); + } else { + selectedResourcesBuilder_.addMessage(value); } - onBuilt(); - return result; + return this; } - private void buildPartialRepeatedFields( - com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource result) { + /** + * + * + *
+       * Optional. Resource in this dataset that is selectively shared.
+       * This field is required for data clean room exchanges.
+       * 
+ * + * + * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSelectedResources( + int index, + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource + value) { if (selectedResourcesBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - selectedResources_ = java.util.Collections.unmodifiableList(selectedResources_); - bitField0_ = (bitField0_ & ~0x00000002); + if (value == null) { + throw new NullPointerException(); } - result.selectedResources_ = selectedResources_; + ensureSelectedResourcesIsMutable(); + selectedResources_.add(index, value); + onChanged(); } else { - result.selectedResources_ = selectedResourcesBuilder_.build(); + selectedResourcesBuilder_.addMessage(index, value); } + return this; } - private void buildPartial0( - com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.dataset_ = dataset_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.restrictedExportPolicy_ = - restrictedExportPolicyBuilder_ == null - ? restrictedExportPolicy_ - : restrictedExportPolicyBuilder_.build(); - to_bitField0_ |= 0x00000001; + /** + * + * + *
+       * Optional. Resource in this dataset that is selectively shared.
+       * This field is required for data clean room exchanges.
+       * 
+ * + * + * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSelectedResources( + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource + .Builder + builderForValue) { + if (selectedResourcesBuilder_ == null) { + ensureSelectedResourcesIsMutable(); + selectedResources_.add(builderForValue.build()); + onChanged(); + } else { + selectedResourcesBuilder_.addMessage(builderForValue.build()); } - 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); + return this; } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, + /** + * + * + *
+       * Optional. Resource in this dataset that is selectively shared.
+       * This field is required for data clean room exchanges.
+       * 
+ * + * + * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSelectedResources( int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource + .Builder + builderForValue) { + if (selectedResourcesBuilder_ == null) { + ensureSelectedResourcesIsMutable(); + selectedResources_.add(index, builderForValue.build()); + onChanged(); + } else { + selectedResourcesBuilder_.addMessage(index, builderForValue.build()); + } + return this; } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + /** + * + * + *
+       * Optional. Resource in this dataset that is selectively shared.
+       * This field is required for data clean room exchanges.
+       * 
+ * + * + * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllSelectedResources( + java.lang.Iterable< + ? extends + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + .SelectedResource> + values) { + if (selectedResourcesBuilder_ == null) { + ensureSelectedResourcesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, selectedResources_); + onChanged(); + } else { + selectedResourcesBuilder_.addAllMessages(values); + } + return this; } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource) { - return mergeFrom( - (com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource) other); + /** + * + * + *
+       * Optional. Resource in this dataset that is selectively shared.
+       * This field is required for data clean room exchanges.
+       * 
+ * + * + * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSelectedResources() { + if (selectedResourcesBuilder_ == null) { + selectedResources_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); } else { - super.mergeFrom(other); - return this; + selectedResourcesBuilder_.clear(); } + return this; } - public Builder mergeFrom( - com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource other) { - if (other - == com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource - .getDefaultInstance()) return this; - if (!other.getDataset().isEmpty()) { - dataset_ = other.dataset_; - bitField0_ |= 0x00000001; - onChanged(); - } + /** + * + * + *
+       * Optional. Resource in this dataset that is selectively shared.
+       * This field is required for data clean room exchanges.
+       * 
+ * + * + * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeSelectedResources(int index) { if (selectedResourcesBuilder_ == null) { - if (!other.selectedResources_.isEmpty()) { - if (selectedResources_.isEmpty()) { - selectedResources_ = other.selectedResources_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureSelectedResourcesIsMutable(); - selectedResources_.addAll(other.selectedResources_); - } - onChanged(); - } + ensureSelectedResourcesIsMutable(); + selectedResources_.remove(index); + onChanged(); } else { - if (!other.selectedResources_.isEmpty()) { - if (selectedResourcesBuilder_.isEmpty()) { - selectedResourcesBuilder_.dispose(); - selectedResourcesBuilder_ = null; - selectedResources_ = other.selectedResources_; - bitField0_ = (bitField0_ & ~0x00000002); - selectedResourcesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSelectedResourcesFieldBuilder() - : null; - } else { - selectedResourcesBuilder_.addAllMessages(other.selectedResources_); - } - } - } - if (other.hasRestrictedExportPolicy()) { - mergeRestrictedExportPolicy(other.getRestrictedExportPolicy()); + selectedResourcesBuilder_.remove(index); } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); return this; } - @java.lang.Override - public final boolean isInitialized() { - return true; + /** + * + * + *
+       * Optional. Resource in this dataset that is selectively shared.
+       * This field is required for data clean room exchanges.
+       * 
+ * + * + * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + .SelectedResource.Builder + getSelectedResourcesBuilder(int index) { + return getSelectedResourcesFieldBuilder().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. Resource in this dataset that is selectively shared.
+       * This field is required for data clean room exchanges.
+       * 
+ * + * + * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + .SelectedResourceOrBuilder + getSelectedResourcesOrBuilder(int index) { + if (selectedResourcesBuilder_ == null) { + return selectedResources_.get(index); + } else { + return selectedResourcesBuilder_.getMessageOrBuilder(index); } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - dataset_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { + } + + /** + * + * + *
+       * Optional. Resource in this dataset that is selectively shared.
+       * This field is required for data clean room exchanges.
+       * 
+ * + * + * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource - .SelectedResource - m = - input.readMessage( - com.google.cloud.bigquery.analyticshub.v1.Listing - .BigQueryDatasetSource.SelectedResource.parser(), - extensionRegistry); - if (selectedResourcesBuilder_ == null) { - ensureSelectedResourcesIsMutable(); - selectedResources_.add(m); - } else { - selectedResourcesBuilder_.addMessage(m); - } - break; - } // case 18 - case 26: - { - input.readMessage( - getRestrictedExportPolicyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; + .SelectedResourceOrBuilder> + getSelectedResourcesOrBuilderList() { + if (selectedResourcesBuilder_ != null) { + return selectedResourcesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(selectedResources_); + } + } + + /** + * + * + *
+       * Optional. Resource in this dataset that is selectively shared.
+       * This field is required for data clean room exchanges.
+       * 
+ * + * + * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + .SelectedResource.Builder + addSelectedResourcesBuilder() { + return getSelectedResourcesFieldBuilder() + .addBuilder( + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + .SelectedResource.getDefaultInstance()); + } + + /** + * + * + *
+       * Optional. Resource in this dataset that is selectively shared.
+       * This field is required for data clean room exchanges.
+       * 
+ * + * + * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + .SelectedResource.Builder + addSelectedResourcesBuilder(int index) { + return getSelectedResourcesFieldBuilder() + .addBuilder( + index, + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + .SelectedResource.getDefaultInstance()); + } + + /** + * + * + *
+       * Optional. Resource in this dataset that is selectively shared.
+       * This field is required for data clean room exchanges.
+       * 
+ * + * + * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + .SelectedResource.Builder> + getSelectedResourcesBuilderList() { + return getSelectedResourcesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + .SelectedResource, + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + .SelectedResource.Builder, + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + .SelectedResourceOrBuilder> + getSelectedResourcesFieldBuilder() { + if (selectedResourcesBuilder_ == null) { + selectedResourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + .SelectedResource, + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + .SelectedResource.Builder, + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + .SelectedResourceOrBuilder>( + selectedResources_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + selectedResources_ = null; + } + return selectedResourcesBuilder_; } - private int bitField0_; + private com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + .RestrictedExportPolicy + restrictedExportPolicy_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + .RestrictedExportPolicy, + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + .RestrictedExportPolicy.Builder, + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + .RestrictedExportPolicyOrBuilder> + restrictedExportPolicyBuilder_; - private java.lang.Object dataset_ = ""; + /** + * + * + *
+       * Optional. If set, restricted export policy will be propagated and
+       * enforced on the linked dataset.
+       * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.RestrictedExportPolicy restricted_export_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the restrictedExportPolicy field is set. + */ + public boolean hasRestrictedExportPolicy() { + return ((bitField0_ & 0x00000004) != 0); + } /** * * *
-       * Optional. Resource name of the dataset source for this listing.
-       * e.g. `projects/myproject/datasets/123`
+       * Optional. If set, restricted export policy will be propagated and
+       * enforced on the linked dataset.
        * 
* * - * string dataset = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.RestrictedExportPolicy restricted_export_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The dataset. + * @return The restrictedExportPolicy. */ - public java.lang.String getDataset() { - java.lang.Object ref = dataset_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dataset_ = s; - return s; + public com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + .RestrictedExportPolicy + getRestrictedExportPolicy() { + if (restrictedExportPolicyBuilder_ == null) { + return restrictedExportPolicy_ == null + ? com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + .RestrictedExportPolicy.getDefaultInstance() + : restrictedExportPolicy_; } else { - return (java.lang.String) ref; + return restrictedExportPolicyBuilder_.getMessage(); } } @@ -4281,49 +6899,53 @@ public java.lang.String getDataset() { * * *
-       * Optional. Resource name of the dataset source for this listing.
-       * e.g. `projects/myproject/datasets/123`
+       * Optional. If set, restricted export policy will be propagated and
+       * enforced on the linked dataset.
        * 
* * - * string dataset = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.RestrictedExportPolicy restricted_export_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The bytes for dataset. */ - public com.google.protobuf.ByteString getDatasetBytes() { - java.lang.Object ref = dataset_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - dataset_ = b; - return b; + public Builder setRestrictedExportPolicy( + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + .RestrictedExportPolicy + value) { + if (restrictedExportPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + restrictedExportPolicy_ = value; } else { - return (com.google.protobuf.ByteString) ref; + restrictedExportPolicyBuilder_.setMessage(value); } + bitField0_ |= 0x00000004; + onChanged(); + return this; } /** * * *
-       * Optional. Resource name of the dataset source for this listing.
-       * e.g. `projects/myproject/datasets/123`
+       * Optional. If set, restricted export policy will be propagated and
+       * enforced on the linked dataset.
        * 
* * - * string dataset = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.RestrictedExportPolicy restricted_export_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @param value The dataset to set. - * @return This builder for chaining. */ - public Builder setDataset(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder setRestrictedExportPolicy( + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + .RestrictedExportPolicy.Builder + builderForValue) { + if (restrictedExportPolicyBuilder_ == null) { + restrictedExportPolicy_ = builderForValue.build(); + } else { + restrictedExportPolicyBuilder_.setMessage(builderForValue.build()); } - dataset_ = value; - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -4332,19 +6954,57 @@ public Builder setDataset(java.lang.String value) { * * *
-       * Optional. Resource name of the dataset source for this listing.
-       * e.g. `projects/myproject/datasets/123`
+       * Optional. If set, restricted export policy will be propagated and
+       * enforced on the linked dataset.
        * 
* * - * string dataset = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.RestrictedExportPolicy restricted_export_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; * + */ + public Builder mergeRestrictedExportPolicy( + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + .RestrictedExportPolicy + value) { + if (restrictedExportPolicyBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && restrictedExportPolicy_ != null + && restrictedExportPolicy_ + != com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + .RestrictedExportPolicy.getDefaultInstance()) { + getRestrictedExportPolicyBuilder().mergeFrom(value); + } else { + restrictedExportPolicy_ = value; + } + } else { + restrictedExportPolicyBuilder_.mergeFrom(value); + } + if (restrictedExportPolicy_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** * - * @return This builder for chaining. + * + *
+       * Optional. If set, restricted export policy will be propagated and
+       * enforced on the linked dataset.
+       * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.RestrictedExportPolicy restricted_export_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearDataset() { - dataset_ = getDefaultInstance().getDataset(); - bitField0_ = (bitField0_ & ~0x00000001); + public Builder clearRestrictedExportPolicy() { + bitField0_ = (bitField0_ & ~0x00000004); + restrictedExportPolicy_ = null; + if (restrictedExportPolicyBuilder_ != null) { + restrictedExportPolicyBuilder_.dispose(); + restrictedExportPolicyBuilder_ = null; + } onChanged(); return this; } @@ -4353,170 +7013,186 @@ public Builder clearDataset() { * * *
-       * Optional. Resource name of the dataset source for this listing.
-       * e.g. `projects/myproject/datasets/123`
+       * Optional. If set, restricted export policy will be propagated and
+       * enforced on the linked dataset.
        * 
* * - * string dataset = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.RestrictedExportPolicy restricted_export_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; * + */ + public com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + .RestrictedExportPolicy.Builder + getRestrictedExportPolicyBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getRestrictedExportPolicyFieldBuilder().getBuilder(); + } + + /** * - * @param value The bytes for dataset to set. - * @return This builder for chaining. + * + *
+       * Optional. If set, restricted export policy will be propagated and
+       * enforced on the linked dataset.
+       * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.RestrictedExportPolicy restricted_export_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setDatasetBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + .RestrictedExportPolicyOrBuilder + getRestrictedExportPolicyOrBuilder() { + if (restrictedExportPolicyBuilder_ != null) { + return restrictedExportPolicyBuilder_.getMessageOrBuilder(); + } else { + return restrictedExportPolicy_ == null + ? com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + .RestrictedExportPolicy.getDefaultInstance() + : restrictedExportPolicy_; } - checkByteStringIsUtf8(value); - dataset_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; } - private java.util.List< + /** + * + * + *
+       * Optional. If set, restricted export policy will be propagated and
+       * enforced on the linked dataset.
+       * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.RestrictedExportPolicy restricted_export_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource - .SelectedResource> - selectedResources_ = java.util.Collections.emptyList(); - - private void ensureSelectedResourcesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - selectedResources_ = - new java.util.ArrayList< + .RestrictedExportPolicy, + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + .RestrictedExportPolicy.Builder, + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + .RestrictedExportPolicyOrBuilder> + getRestrictedExportPolicyFieldBuilder() { + if (restrictedExportPolicyBuilder_ == null) { + restrictedExportPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource - .SelectedResource>(selectedResources_); - bitField0_ |= 0x00000002; + .RestrictedExportPolicy, + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + .RestrictedExportPolicy.Builder, + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + .RestrictedExportPolicyOrBuilder>( + getRestrictedExportPolicy(), getParentForChildren(), isClean()); + restrictedExportPolicy_ = null; } + return restrictedExportPolicyBuilder_; } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource - .SelectedResource, - com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource - .SelectedResource.Builder, - com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource - .SelectedResourceOrBuilder> - selectedResourcesBuilder_; + private com.google.protobuf.LazyStringArrayList replicaLocations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureReplicaLocationsIsMutable() { + if (!replicaLocations_.isModifiable()) { + replicaLocations_ = new com.google.protobuf.LazyStringArrayList(replicaLocations_); + } + bitField0_ |= 0x00000008; + } /** * * *
-       * Optional. Resource in this dataset that is selectively shared.
-       * This field is required for data clean room exchanges.
+       * Optional. A list of regions where the publisher has created shared
+       * dataset replicas.
        * 
* - * - * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string replica_locations = 5 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return A list containing the replicaLocations. */ - public java.util.List< - com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource - .SelectedResource> - getSelectedResourcesList() { - if (selectedResourcesBuilder_ == null) { - return java.util.Collections.unmodifiableList(selectedResources_); - } else { - return selectedResourcesBuilder_.getMessageList(); - } + public com.google.protobuf.ProtocolStringList getReplicaLocationsList() { + replicaLocations_.makeImmutable(); + return replicaLocations_; } /** * * *
-       * Optional. Resource in this dataset that is selectively shared.
-       * This field is required for data clean room exchanges.
+       * Optional. A list of regions where the publisher has created shared
+       * dataset replicas.
        * 
* - * - * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string replica_locations = 5 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return The count of replicaLocations. */ - public int getSelectedResourcesCount() { - if (selectedResourcesBuilder_ == null) { - return selectedResources_.size(); - } else { - return selectedResourcesBuilder_.getCount(); - } + public int getReplicaLocationsCount() { + return replicaLocations_.size(); } /** * * *
-       * Optional. Resource in this dataset that is selectively shared.
-       * This field is required for data clean room exchanges.
+       * Optional. A list of regions where the publisher has created shared
+       * dataset replicas.
        * 
* - * - * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string replica_locations = 5 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @param index The index of the element to return. + * @return The replicaLocations at the given index. */ - public com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource - .SelectedResource - getSelectedResources(int index) { - if (selectedResourcesBuilder_ == null) { - return selectedResources_.get(index); - } else { - return selectedResourcesBuilder_.getMessage(index); - } + public java.lang.String getReplicaLocations(int index) { + return replicaLocations_.get(index); } /** * * *
-       * Optional. Resource in this dataset that is selectively shared.
-       * This field is required for data clean room exchanges.
+       * Optional. A list of regions where the publisher has created shared
+       * dataset replicas.
        * 
* - * - * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string replica_locations = 5 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @param index The index of the value to return. + * @return The bytes of the replicaLocations at the given index. */ - public Builder setSelectedResources( - int index, - com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource - value) { - if (selectedResourcesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSelectedResourcesIsMutable(); - selectedResources_.set(index, value); - onChanged(); - } else { - selectedResourcesBuilder_.setMessage(index, value); - } - return this; + public com.google.protobuf.ByteString getReplicaLocationsBytes(int index) { + return replicaLocations_.getByteString(index); } /** * * *
-       * Optional. Resource in this dataset that is selectively shared.
-       * This field is required for data clean room exchanges.
+       * Optional. A list of regions where the publisher has created shared
+       * dataset replicas.
        * 
* - * - * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string replica_locations = 5 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @param index The index to set the value at. + * @param value The replicaLocations to set. + * @return This builder for chaining. */ - public Builder setSelectedResources( - int index, - com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource - .Builder - builderForValue) { - if (selectedResourcesBuilder_ == null) { - ensureSelectedResourcesIsMutable(); - selectedResources_.set(index, builderForValue.build()); - onChanged(); - } else { - selectedResourcesBuilder_.setMessage(index, builderForValue.build()); + public Builder setReplicaLocations(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + ensureReplicaLocationsIsMutable(); + replicaLocations_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); return this; } @@ -4524,27 +7200,24 @@ public Builder setSelectedResources( * * *
-       * Optional. Resource in this dataset that is selectively shared.
-       * This field is required for data clean room exchanges.
+       * Optional. A list of regions where the publisher has created shared
+       * dataset replicas.
        * 
* - * - * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string replica_locations = 5 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @param value The replicaLocations to add. + * @return This builder for chaining. */ - public Builder addSelectedResources( - com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource - value) { - if (selectedResourcesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSelectedResourcesIsMutable(); - selectedResources_.add(value); - onChanged(); - } else { - selectedResourcesBuilder_.addMessage(value); + public Builder addReplicaLocations(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + ensureReplicaLocationsIsMutable(); + replicaLocations_.add(value); + bitField0_ |= 0x00000008; + onChanged(); return this; } @@ -4552,28 +7225,21 @@ public Builder addSelectedResources( * * *
-       * Optional. Resource in this dataset that is selectively shared.
-       * This field is required for data clean room exchanges.
+       * Optional. A list of regions where the publisher has created shared
+       * dataset replicas.
        * 
* - * - * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string replica_locations = 5 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @param values The replicaLocations to add. + * @return This builder for chaining. */ - public Builder addSelectedResources( - int index, - com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource - value) { - if (selectedResourcesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSelectedResourcesIsMutable(); - selectedResources_.add(index, value); - onChanged(); - } else { - selectedResourcesBuilder_.addMessage(index, value); - } + public Builder addAllReplicaLocations(java.lang.Iterable values) { + ensureReplicaLocationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, replicaLocations_); + bitField0_ |= 0x00000008; + onChanged(); return this; } @@ -4581,25 +7247,20 @@ public Builder addSelectedResources( * * *
-       * Optional. Resource in this dataset that is selectively shared.
-       * This field is required for data clean room exchanges.
+       * Optional. A list of regions where the publisher has created shared
+       * dataset replicas.
        * 
* - * - * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string replica_locations = 5 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return This builder for chaining. */ - public Builder addSelectedResources( - com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource - .Builder - builderForValue) { - if (selectedResourcesBuilder_ == null) { - ensureSelectedResourcesIsMutable(); - selectedResources_.add(builderForValue.build()); - onChanged(); - } else { - selectedResourcesBuilder_.addMessage(builderForValue.build()); - } + public Builder clearReplicaLocations() { + replicaLocations_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); return this; } @@ -4607,338 +7268,368 @@ public Builder addSelectedResources( * * *
-       * Optional. Resource in this dataset that is selectively shared.
-       * This field is required for data clean room exchanges.
+       * Optional. A list of regions where the publisher has created shared
+       * dataset replicas.
        * 
* - * - * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string replica_locations = 5 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @param value The bytes of the replicaLocations to add. + * @return This builder for chaining. */ - public Builder addSelectedResources( - int index, - com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource - .Builder - builderForValue) { - if (selectedResourcesBuilder_ == null) { - ensureSelectedResourcesIsMutable(); - selectedResources_.add(index, builderForValue.build()); - onChanged(); - } else { - selectedResourcesBuilder_.addMessage(index, builderForValue.build()); + public Builder addReplicaLocationsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureReplicaLocationsIsMutable(); + replicaLocations_.add(value); + bitField0_ |= 0x00000008; + onChanged(); return this; } + private java.util.List< + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica> + effectiveReplicas_ = java.util.Collections.emptyList(); + + private void ensureEffectiveReplicasIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + effectiveReplicas_ = + new java.util.ArrayList< + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica>( + effectiveReplicas_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica, + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica + .Builder, + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + .ReplicaOrBuilder> + effectiveReplicasBuilder_; + /** * * *
-       * Optional. Resource in this dataset that is selectively shared.
-       * This field is required for data clean room exchanges.
+       * Output only. Server-owned effective state of replicas.
+       * Contains both primary and secondary replicas.
+       * Each replica includes a system-computed (output-only) state and primary
+       * designation.
        * 
* * - * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica effective_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder addAllSelectedResources( - java.lang.Iterable< - ? extends - com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource - .SelectedResource> - values) { - if (selectedResourcesBuilder_ == null) { - ensureSelectedResourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, selectedResources_); - onChanged(); + public java.util.List< + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica> + getEffectiveReplicasList() { + if (effectiveReplicasBuilder_ == null) { + return java.util.Collections.unmodifiableList(effectiveReplicas_); } else { - selectedResourcesBuilder_.addAllMessages(values); + return effectiveReplicasBuilder_.getMessageList(); } - return this; } /** * * *
-       * Optional. Resource in this dataset that is selectively shared.
-       * This field is required for data clean room exchanges.
+       * Output only. Server-owned effective state of replicas.
+       * Contains both primary and secondary replicas.
+       * Each replica includes a system-computed (output-only) state and primary
+       * designation.
        * 
* * - * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica effective_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder clearSelectedResources() { - if (selectedResourcesBuilder_ == null) { - selectedResources_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); + public int getEffectiveReplicasCount() { + if (effectiveReplicasBuilder_ == null) { + return effectiveReplicas_.size(); } else { - selectedResourcesBuilder_.clear(); + return effectiveReplicasBuilder_.getCount(); } - return this; } /** * * *
-       * Optional. Resource in this dataset that is selectively shared.
-       * This field is required for data clean room exchanges.
+       * Output only. Server-owned effective state of replicas.
+       * Contains both primary and secondary replicas.
+       * Each replica includes a system-computed (output-only) state and primary
+       * designation.
        * 
* * - * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica effective_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder removeSelectedResources(int index) { - if (selectedResourcesBuilder_ == null) { - ensureSelectedResourcesIsMutable(); - selectedResources_.remove(index); - onChanged(); + public com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica + getEffectiveReplicas(int index) { + if (effectiveReplicasBuilder_ == null) { + return effectiveReplicas_.get(index); } else { - selectedResourcesBuilder_.remove(index); + return effectiveReplicasBuilder_.getMessage(index); } - return this; } /** * * *
-       * Optional. Resource in this dataset that is selectively shared.
-       * This field is required for data clean room exchanges.
+       * Output only. Server-owned effective state of replicas.
+       * Contains both primary and secondary replicas.
+       * Each replica includes a system-computed (output-only) state and primary
+       * designation.
        * 
* * - * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica effective_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource - .SelectedResource.Builder - getSelectedResourcesBuilder(int index) { - return getSelectedResourcesFieldBuilder().getBuilder(index); + public Builder setEffectiveReplicas( + int index, + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica value) { + if (effectiveReplicasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEffectiveReplicasIsMutable(); + effectiveReplicas_.set(index, value); + onChanged(); + } else { + effectiveReplicasBuilder_.setMessage(index, value); + } + return this; } /** * * *
-       * Optional. Resource in this dataset that is selectively shared.
-       * This field is required for data clean room exchanges.
+       * Output only. Server-owned effective state of replicas.
+       * Contains both primary and secondary replicas.
+       * Each replica includes a system-computed (output-only) state and primary
+       * designation.
        * 
* * - * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica effective_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource - .SelectedResourceOrBuilder - getSelectedResourcesOrBuilder(int index) { - if (selectedResourcesBuilder_ == null) { - return selectedResources_.get(index); + public Builder setEffectiveReplicas( + int index, + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica.Builder + builderForValue) { + if (effectiveReplicasBuilder_ == null) { + ensureEffectiveReplicasIsMutable(); + effectiveReplicas_.set(index, builderForValue.build()); + onChanged(); } else { - return selectedResourcesBuilder_.getMessageOrBuilder(index); + effectiveReplicasBuilder_.setMessage(index, builderForValue.build()); } + return this; } /** * * *
-       * Optional. Resource in this dataset that is selectively shared.
-       * This field is required for data clean room exchanges.
+       * Output only. Server-owned effective state of replicas.
+       * Contains both primary and secondary replicas.
+       * Each replica includes a system-computed (output-only) state and primary
+       * designation.
        * 
* * - * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica effective_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public java.util.List< - ? extends - com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource - .SelectedResourceOrBuilder> - getSelectedResourcesOrBuilderList() { - if (selectedResourcesBuilder_ != null) { - return selectedResourcesBuilder_.getMessageOrBuilderList(); + public Builder addEffectiveReplicas( + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica value) { + if (effectiveReplicasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEffectiveReplicasIsMutable(); + effectiveReplicas_.add(value); + onChanged(); } else { - return java.util.Collections.unmodifiableList(selectedResources_); + effectiveReplicasBuilder_.addMessage(value); } + return this; } /** * * *
-       * Optional. Resource in this dataset that is selectively shared.
-       * This field is required for data clean room exchanges.
+       * Output only. Server-owned effective state of replicas.
+       * Contains both primary and secondary replicas.
+       * Each replica includes a system-computed (output-only) state and primary
+       * designation.
        * 
* * - * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica effective_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource - .SelectedResource.Builder - addSelectedResourcesBuilder() { - return getSelectedResourcesFieldBuilder() - .addBuilder( - com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource - .SelectedResource.getDefaultInstance()); + public Builder addEffectiveReplicas( + int index, + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica value) { + if (effectiveReplicasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEffectiveReplicasIsMutable(); + effectiveReplicas_.add(index, value); + onChanged(); + } else { + effectiveReplicasBuilder_.addMessage(index, value); + } + return this; } /** * * *
-       * Optional. Resource in this dataset that is selectively shared.
-       * This field is required for data clean room exchanges.
+       * Output only. Server-owned effective state of replicas.
+       * Contains both primary and secondary replicas.
+       * Each replica includes a system-computed (output-only) state and primary
+       * designation.
        * 
* * - * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica effective_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource - .SelectedResource.Builder - addSelectedResourcesBuilder(int index) { - return getSelectedResourcesFieldBuilder() - .addBuilder( - index, - com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource - .SelectedResource.getDefaultInstance()); + public Builder addEffectiveReplicas( + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica.Builder + builderForValue) { + if (effectiveReplicasBuilder_ == null) { + ensureEffectiveReplicasIsMutable(); + effectiveReplicas_.add(builderForValue.build()); + onChanged(); + } else { + effectiveReplicasBuilder_.addMessage(builderForValue.build()); + } + return this; } /** * * *
-       * Optional. Resource in this dataset that is selectively shared.
-       * This field is required for data clean room exchanges.
+       * Output only. Server-owned effective state of replicas.
+       * Contains both primary and secondary replicas.
+       * Each replica includes a system-computed (output-only) state and primary
+       * designation.
        * 
* * - * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource selected_resources = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica effective_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public java.util.List< - com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource - .SelectedResource.Builder> - getSelectedResourcesBuilderList() { - return getSelectedResourcesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource - .SelectedResource, - com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource - .SelectedResource.Builder, - com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource - .SelectedResourceOrBuilder> - getSelectedResourcesFieldBuilder() { - if (selectedResourcesBuilder_ == null) { - selectedResourcesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource - .SelectedResource, - com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource - .SelectedResource.Builder, - com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource - .SelectedResourceOrBuilder>( - selectedResources_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - selectedResources_ = null; + public Builder addEffectiveReplicas( + int index, + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica.Builder + builderForValue) { + if (effectiveReplicasBuilder_ == null) { + ensureEffectiveReplicasIsMutable(); + effectiveReplicas_.add(index, builderForValue.build()); + onChanged(); + } else { + effectiveReplicasBuilder_.addMessage(index, builderForValue.build()); } - return selectedResourcesBuilder_; + return this; } - private com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource - .RestrictedExportPolicy - restrictedExportPolicy_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource - .RestrictedExportPolicy, - com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource - .RestrictedExportPolicy.Builder, - com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource - .RestrictedExportPolicyOrBuilder> - restrictedExportPolicyBuilder_; - /** * * *
-       * Optional. If set, restricted export policy will be propagated and
-       * enforced on the linked dataset.
+       * Output only. Server-owned effective state of replicas.
+       * Contains both primary and secondary replicas.
+       * Each replica includes a system-computed (output-only) state and primary
+       * designation.
        * 
* * - * .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.RestrictedExportPolicy restricted_export_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica effective_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return Whether the restrictedExportPolicy field is set. */ - public boolean hasRestrictedExportPolicy() { - return ((bitField0_ & 0x00000004) != 0); + public Builder addAllEffectiveReplicas( + java.lang.Iterable< + ? extends + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + .Replica> + values) { + if (effectiveReplicasBuilder_ == null) { + ensureEffectiveReplicasIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, effectiveReplicas_); + onChanged(); + } else { + effectiveReplicasBuilder_.addAllMessages(values); + } + return this; } /** * * *
-       * Optional. If set, restricted export policy will be propagated and
-       * enforced on the linked dataset.
+       * Output only. Server-owned effective state of replicas.
+       * Contains both primary and secondary replicas.
+       * Each replica includes a system-computed (output-only) state and primary
+       * designation.
        * 
* * - * .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.RestrictedExportPolicy restricted_export_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica effective_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return The restrictedExportPolicy. */ - public com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource - .RestrictedExportPolicy - getRestrictedExportPolicy() { - if (restrictedExportPolicyBuilder_ == null) { - return restrictedExportPolicy_ == null - ? com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource - .RestrictedExportPolicy.getDefaultInstance() - : restrictedExportPolicy_; + public Builder clearEffectiveReplicas() { + if (effectiveReplicasBuilder_ == null) { + effectiveReplicas_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); } else { - return restrictedExportPolicyBuilder_.getMessage(); + effectiveReplicasBuilder_.clear(); } + return this; } /** * * *
-       * Optional. If set, restricted export policy will be propagated and
-       * enforced on the linked dataset.
+       * Output only. Server-owned effective state of replicas.
+       * Contains both primary and secondary replicas.
+       * Each replica includes a system-computed (output-only) state and primary
+       * designation.
        * 
* * - * .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.RestrictedExportPolicy restricted_export_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica effective_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setRestrictedExportPolicy( - com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource - .RestrictedExportPolicy - value) { - if (restrictedExportPolicyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - restrictedExportPolicy_ = value; + public Builder removeEffectiveReplicas(int index) { + if (effectiveReplicasBuilder_ == null) { + ensureEffectiveReplicasIsMutable(); + effectiveReplicas_.remove(index); + onChanged(); } else { - restrictedExportPolicyBuilder_.setMessage(value); + effectiveReplicasBuilder_.remove(index); } - bitField0_ |= 0x00000004; - onChanged(); return this; } @@ -4946,165 +7637,159 @@ public Builder setRestrictedExportPolicy( * * *
-       * Optional. If set, restricted export policy will be propagated and
-       * enforced on the linked dataset.
+       * Output only. Server-owned effective state of replicas.
+       * Contains both primary and secondary replicas.
+       * Each replica includes a system-computed (output-only) state and primary
+       * designation.
        * 
* * - * .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.RestrictedExportPolicy restricted_export_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica effective_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setRestrictedExportPolicy( - com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource - .RestrictedExportPolicy.Builder - builderForValue) { - if (restrictedExportPolicyBuilder_ == null) { - restrictedExportPolicy_ = builderForValue.build(); - } else { - restrictedExportPolicyBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; + public com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica.Builder + getEffectiveReplicasBuilder(int index) { + return getEffectiveReplicasFieldBuilder().getBuilder(index); } /** * * *
-       * Optional. If set, restricted export policy will be propagated and
-       * enforced on the linked dataset.
+       * Output only. Server-owned effective state of replicas.
+       * Contains both primary and secondary replicas.
+       * Each replica includes a system-computed (output-only) state and primary
+       * designation.
        * 
* * - * .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.RestrictedExportPolicy restricted_export_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica effective_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder mergeRestrictedExportPolicy( - com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource - .RestrictedExportPolicy - value) { - if (restrictedExportPolicyBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && restrictedExportPolicy_ != null - && restrictedExportPolicy_ - != com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource - .RestrictedExportPolicy.getDefaultInstance()) { - getRestrictedExportPolicyBuilder().mergeFrom(value); - } else { - restrictedExportPolicy_ = value; - } + public com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + .ReplicaOrBuilder + getEffectiveReplicasOrBuilder(int index) { + if (effectiveReplicasBuilder_ == null) { + return effectiveReplicas_.get(index); } else { - restrictedExportPolicyBuilder_.mergeFrom(value); - } - if (restrictedExportPolicy_ != null) { - bitField0_ |= 0x00000004; - onChanged(); + return effectiveReplicasBuilder_.getMessageOrBuilder(index); } - return this; } /** * * *
-       * Optional. If set, restricted export policy will be propagated and
-       * enforced on the linked dataset.
+       * Output only. Server-owned effective state of replicas.
+       * Contains both primary and secondary replicas.
+       * Each replica includes a system-computed (output-only) state and primary
+       * designation.
        * 
* * - * .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.RestrictedExportPolicy restricted_export_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica effective_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder clearRestrictedExportPolicy() { - bitField0_ = (bitField0_ & ~0x00000004); - restrictedExportPolicy_ = null; - if (restrictedExportPolicyBuilder_ != null) { - restrictedExportPolicyBuilder_.dispose(); - restrictedExportPolicyBuilder_ = null; + public java.util.List< + ? extends + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource + .ReplicaOrBuilder> + getEffectiveReplicasOrBuilderList() { + if (effectiveReplicasBuilder_ != null) { + return effectiveReplicasBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(effectiveReplicas_); } - onChanged(); - return this; } /** * * *
-       * Optional. If set, restricted export policy will be propagated and
-       * enforced on the linked dataset.
+       * Output only. Server-owned effective state of replicas.
+       * Contains both primary and secondary replicas.
+       * Each replica includes a system-computed (output-only) state and primary
+       * designation.
        * 
* * - * .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.RestrictedExportPolicy restricted_export_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica effective_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource - .RestrictedExportPolicy.Builder - getRestrictedExportPolicyBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getRestrictedExportPolicyFieldBuilder().getBuilder(); + public com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica.Builder + addEffectiveReplicasBuilder() { + return getEffectiveReplicasFieldBuilder() + .addBuilder( + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica + .getDefaultInstance()); } /** * * *
-       * Optional. If set, restricted export policy will be propagated and
-       * enforced on the linked dataset.
+       * Output only. Server-owned effective state of replicas.
+       * Contains both primary and secondary replicas.
+       * Each replica includes a system-computed (output-only) state and primary
+       * designation.
        * 
* * - * .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.RestrictedExportPolicy restricted_export_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica effective_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource - .RestrictedExportPolicyOrBuilder - getRestrictedExportPolicyOrBuilder() { - if (restrictedExportPolicyBuilder_ != null) { - return restrictedExportPolicyBuilder_.getMessageOrBuilder(); - } else { - return restrictedExportPolicy_ == null - ? com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource - .RestrictedExportPolicy.getDefaultInstance() - : restrictedExportPolicy_; - } + public com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica.Builder + addEffectiveReplicasBuilder(int index) { + return getEffectiveReplicasFieldBuilder() + .addBuilder( + index, + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica + .getDefaultInstance()); } /** * * *
-       * Optional. If set, restricted export policy will be propagated and
-       * enforced on the linked dataset.
+       * Output only. Server-owned effective state of replicas.
+       * Contains both primary and secondary replicas.
+       * Each replica includes a system-computed (output-only) state and primary
+       * designation.
        * 
* * - * .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.RestrictedExportPolicy restricted_export_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica effective_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource - .RestrictedExportPolicy, - com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource - .RestrictedExportPolicy.Builder, + public java.util.List< + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica + .Builder> + getEffectiveReplicasBuilderList() { + return getEffectiveReplicasFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica, + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica + .Builder, com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource - .RestrictedExportPolicyOrBuilder> - getRestrictedExportPolicyFieldBuilder() { - if (restrictedExportPolicyBuilder_ == null) { - restrictedExportPolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource - .RestrictedExportPolicy, - com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource - .RestrictedExportPolicy.Builder, + .ReplicaOrBuilder> + getEffectiveReplicasFieldBuilder() { + if (effectiveReplicasBuilder_ == null) { + effectiveReplicasBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica, + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica + .Builder, com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource - .RestrictedExportPolicyOrBuilder>( - getRestrictedExportPolicy(), getParentForChildren(), isClean()); - restrictedExportPolicy_ = null; + .ReplicaOrBuilder>( + effectiveReplicas_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + effectiveReplicas_ = null; } - return restrictedExportPolicyBuilder_; + return effectiveReplicasBuilder_; } @java.lang.Override @@ -9801,7 +12486,7 @@ public com.google.cloud.bigquery.analyticshub.v1.Listing.Category convert( * * *
-   * Optional. Categories of the listing. Up to two categories are allowed.
+   * Optional. Categories of the listing. Up to five categories are allowed.
    * 
* * @@ -9822,7 +12507,7 @@ public com.google.cloud.bigquery.analyticshub.v1.Listing.Category convert( * * *
-   * Optional. Categories of the listing. Up to two categories are allowed.
+   * Optional. Categories of the listing. Up to five categories are allowed.
    * 
* * @@ -9840,7 +12525,7 @@ public int getCategoriesCount() { * * *
-   * Optional. Categories of the listing. Up to two categories are allowed.
+   * Optional. Categories of the listing. Up to five categories are allowed.
    * 
* * @@ -9859,7 +12544,7 @@ public com.google.cloud.bigquery.analyticshub.v1.Listing.Category getCategories( * * *
-   * Optional. Categories of the listing. Up to two categories are allowed.
+   * Optional. Categories of the listing. Up to five categories are allowed.
    * 
* * @@ -9877,7 +12562,7 @@ public java.util.List getCategoriesValueList() { * * *
-   * Optional. Categories of the listing. Up to two categories are allowed.
+   * Optional. Categories of the listing. Up to five categories are allowed.
    * 
* * @@ -12764,7 +15449,7 @@ private void ensureCategoriesIsMutable() { * * *
-     * Optional. Categories of the listing. Up to two categories are allowed.
+     * Optional. Categories of the listing. Up to five categories are allowed.
      * 
* * @@ -12784,7 +15469,7 @@ private void ensureCategoriesIsMutable() { * * *
-     * Optional. Categories of the listing. Up to two categories are allowed.
+     * Optional. Categories of the listing. Up to five categories are allowed.
      * 
* * @@ -12801,7 +15486,7 @@ public int getCategoriesCount() { * * *
-     * Optional. Categories of the listing. Up to two categories are allowed.
+     * Optional. Categories of the listing. Up to five categories are allowed.
      * 
* * @@ -12819,7 +15504,7 @@ public com.google.cloud.bigquery.analyticshub.v1.Listing.Category getCategories( * * *
-     * Optional. Categories of the listing. Up to two categories are allowed.
+     * Optional. Categories of the listing. Up to five categories are allowed.
      * 
* * @@ -12845,7 +15530,7 @@ public Builder setCategories( * * *
-     * Optional. Categories of the listing. Up to two categories are allowed.
+     * Optional. Categories of the listing. Up to five categories are allowed.
      * 
* * @@ -12869,7 +15554,7 @@ public Builder addCategories(com.google.cloud.bigquery.analyticshub.v1.Listing.C * * *
-     * Optional. Categories of the listing. Up to two categories are allowed.
+     * Optional. Categories of the listing. Up to five categories are allowed.
      * 
* * @@ -12894,7 +15579,7 @@ public Builder addAllCategories( * * *
-     * Optional. Categories of the listing. Up to two categories are allowed.
+     * Optional. Categories of the listing. Up to five categories are allowed.
      * 
* * @@ -12914,7 +15599,7 @@ public Builder clearCategories() { * * *
-     * Optional. Categories of the listing. Up to two categories are allowed.
+     * Optional. Categories of the listing. Up to five categories are allowed.
      * 
* * @@ -12931,7 +15616,7 @@ public java.util.List getCategoriesValueList() { * * *
-     * Optional. Categories of the listing. Up to two categories are allowed.
+     * Optional. Categories of the listing. Up to five categories are allowed.
      * 
* * @@ -12949,7 +15634,7 @@ public int getCategoriesValue(int index) { * * *
-     * Optional. Categories of the listing. Up to two categories are allowed.
+     * Optional. Categories of the listing. Up to five categories are allowed.
      * 
* * @@ -12971,7 +15656,7 @@ public Builder setCategoriesValue(int index, int value) { * * *
-     * Optional. Categories of the listing. Up to two categories are allowed.
+     * Optional. Categories of the listing. Up to five categories are allowed.
      * 
* * @@ -12992,7 +15677,7 @@ public Builder addCategoriesValue(int value) { * * *
-     * Optional. Categories of the listing. Up to two categories are allowed.
+     * Optional. Categories of the listing. Up to five categories are allowed.
      * 
* * 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 efa69c291378..09f76e1e7e23 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 @@ -349,7 +349,7 @@ public interface ListingOrBuilder * * *
-   * Optional. Categories of the listing. Up to two categories are allowed.
+   * Optional. Categories of the listing. Up to five categories are allowed.
    * 
* * @@ -364,7 +364,7 @@ public interface ListingOrBuilder * * *
-   * Optional. Categories of the listing. Up to two categories are allowed.
+   * Optional. Categories of the listing. Up to five categories are allowed.
    * 
* * @@ -379,7 +379,7 @@ public interface ListingOrBuilder * * *
-   * Optional. Categories of the listing. Up to two categories are allowed.
+   * Optional. Categories of the listing. Up to five categories are allowed.
    * 
* * @@ -395,7 +395,7 @@ public interface ListingOrBuilder * * *
-   * Optional. Categories of the listing. Up to two categories are allowed.
+   * Optional. Categories of the listing. Up to five categories are allowed.
    * 
* * @@ -410,7 +410,7 @@ public interface ListingOrBuilder * * *
-   * Optional. Categories of the listing. Up to two categories are allowed.
+   * Optional. Categories of the listing. Up to five categories are allowed.
    * 
* * diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/QueryTemplate.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/QueryTemplate.java new file mode 100644 index 000000000000..40697bda6eb8 --- /dev/null +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/QueryTemplate.java @@ -0,0 +1,2946 @@ +/* + * 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/bigquery/analyticshub/v1/analyticshub.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.bigquery.analyticshub.v1; + +/** + * + * + *
+ * A query template is a container for sharing table-valued functions defined by
+ * contributors in a data clean room.
+ * 
+ * + * Protobuf type {@code google.cloud.bigquery.analyticshub.v1.QueryTemplate} + */ +public final class QueryTemplate extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.analyticshub.v1.QueryTemplate) + QueryTemplateOrBuilder { + private static final long serialVersionUID = 0L; + + // Use QueryTemplate.newBuilder() to construct. + private QueryTemplate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private QueryTemplate() { + name_ = ""; + displayName_ = ""; + description_ = ""; + proposer_ = ""; + primaryContact_ = ""; + documentation_ = ""; + state_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new QueryTemplate(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubProto + .internal_static_google_cloud_bigquery_analyticshub_v1_QueryTemplate_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_QueryTemplate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate.class, + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate.Builder.class); + } + + /** + * + * + *
+   * The QueryTemplate lifecycle state.
+   * 
+ * + * Protobuf enum {@code google.cloud.bigquery.analyticshub.v1.QueryTemplate.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value. This value is unused.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * The QueryTemplate is in draft state.
+     * 
+ * + * DRAFTED = 1; + */ + DRAFTED(1), + /** + * + * + *
+     * The QueryTemplate is in pending state.
+     * 
+ * + * PENDING = 2; + */ + PENDING(2), + /** + * + * + *
+     * The QueryTemplate is in deleted state.
+     * 
+ * + * DELETED = 3; + */ + DELETED(3), + /** + * + * + *
+     * The QueryTemplate is in approved state.
+     * 
+ * + * APPROVED = 4; + */ + APPROVED(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value. This value is unused.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * The QueryTemplate is in draft state.
+     * 
+ * + * DRAFTED = 1; + */ + public static final int DRAFTED_VALUE = 1; + + /** + * + * + *
+     * The QueryTemplate is in pending state.
+     * 
+ * + * PENDING = 2; + */ + public static final int PENDING_VALUE = 2; + + /** + * + * + *
+     * The QueryTemplate is in deleted state.
+     * 
+ * + * DELETED = 3; + */ + public static final int DELETED_VALUE = 3; + + /** + * + * + *
+     * The QueryTemplate is in approved state.
+     * 
+ * + * APPROVED = 4; + */ + public static final int APPROVED_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return DRAFTED; + case 2: + return PENDING; + case 3: + return DELETED; + case 4: + return APPROVED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.bigquery.analyticshub.v1.QueryTemplate.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.bigquery.analyticshub.v1.QueryTemplate.State) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Output only. The resource name of the QueryTemplate.
+   * e.g. `projects/myproject/locations/us/dataExchanges/123/queryTemplates/456`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The resource name of the QueryTemplate.
+   * e.g. `projects/myproject/locations/us/dataExchanges/123/queryTemplates/456`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
+   * Required. Human-readable display name of the QueryTemplate. The display
+   * name must contain only Unicode letters, numbers (0-9), underscores (_),
+   * dashes (-), spaces ( ), ampersands (&) and can't start or end with spaces.
+   * Default value is an empty string. Max length: 63 bytes.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Human-readable display name of the QueryTemplate. The display
+   * name must contain only Unicode letters, numbers (0-9), underscores (_),
+   * dashes (-), spaces ( ), ampersands (&) and can't start or end with spaces.
+   * Default value is an empty string. Max length: 63 bytes.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+   * Optional. Short description of the QueryTemplate. The description must not
+   * contain Unicode non-characters and C0 and C1 control codes except tabs
+   * (HT), new lines (LF), carriage returns (CR), and page breaks (FF). Default
+   * value is an empty string. Max length: 2000 bytes.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Short description of the QueryTemplate. The description must not
+   * contain Unicode non-characters and C0 and C1 control codes except tabs
+   * (HT), new lines (LF), carriage returns (CR), and page breaks (FF). Default
+   * value is an empty string. Max length: 2000 bytes.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROPOSER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object proposer_ = ""; + + /** + * + * + *
+   * Optional. Will be deprecated.
+   * Email or URL of the primary point of contact of the QueryTemplate.
+   * Max Length: 1000 bytes.
+   * 
+ * + * string proposer = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The proposer. + */ + @java.lang.Override + public java.lang.String getProposer() { + java.lang.Object ref = proposer_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + proposer_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Will be deprecated.
+   * Email or URL of the primary point of contact of the QueryTemplate.
+   * Max Length: 1000 bytes.
+   * 
+ * + * string proposer = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for proposer. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProposerBytes() { + java.lang.Object ref = proposer_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + proposer_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRIMARY_CONTACT_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private volatile java.lang.Object primaryContact_ = ""; + + /** + * + * + *
+   * Optional. Email or URL of the primary point of contact of the
+   * QueryTemplate. Max Length: 1000 bytes.
+   * 
+ * + * string primary_contact = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The primaryContact. + */ + @java.lang.Override + public java.lang.String getPrimaryContact() { + java.lang.Object ref = primaryContact_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + primaryContact_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Email or URL of the primary point of contact of the
+   * QueryTemplate. Max Length: 1000 bytes.
+   * 
+ * + * string primary_contact = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for primaryContact. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPrimaryContactBytes() { + java.lang.Object ref = primaryContact_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + primaryContact_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOCUMENTATION_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object documentation_ = ""; + + /** + * + * + *
+   * Optional. Documentation describing the QueryTemplate.
+   * 
+ * + * string documentation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The documentation. + */ + @java.lang.Override + public java.lang.String getDocumentation() { + java.lang.Object ref = documentation_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + documentation_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Documentation describing the QueryTemplate.
+   * 
+ * + * string documentation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for documentation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDocumentationBytes() { + java.lang.Object ref = documentation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + documentation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 6; + private int state_ = 0; + + /** + * + * + *
+   * Output only. The QueryTemplate lifecycle state.
+   * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.QueryTemplate.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+   * Output only. The QueryTemplate lifecycle state.
+   * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.QueryTemplate.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.QueryTemplate.State getState() { + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate.State result = + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate.State.forNumber(state_); + return result == null + ? com.google.cloud.bigquery.analyticshub.v1.QueryTemplate.State.UNRECOGNIZED + : result; + } + + public static final int ROUTINE_FIELD_NUMBER = 7; + private com.google.cloud.bigquery.analyticshub.v1.Routine routine_; + + /** + * + * + *
+   * Optional. The routine associated with the QueryTemplate.
+   * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Routine routine = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the routine field is set. + */ + @java.lang.Override + public boolean hasRoutine() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. The routine associated with the QueryTemplate.
+   * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Routine routine = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The routine. + */ + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.Routine getRoutine() { + return routine_ == null + ? com.google.cloud.bigquery.analyticshub.v1.Routine.getDefaultInstance() + : routine_; + } + + /** + * + * + *
+   * Optional. The routine associated with the QueryTemplate.
+   * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Routine routine = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.RoutineOrBuilder getRoutineOrBuilder() { + return routine_ == null + ? com.google.cloud.bigquery.analyticshub.v1.Routine.getDefaultInstance() + : routine_; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 8; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. Timestamp when the QueryTemplate was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. Timestamp when the QueryTemplate was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
+   * Output only. Timestamp when the QueryTemplate was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 9; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Output only. Timestamp when the QueryTemplate was last modified.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Output only. Timestamp when the QueryTemplate was last modified.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
+   * Output only. Timestamp when the QueryTemplate was last modified.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(proposer_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, proposer_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(documentation_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, documentation_); + } + if (state_ + != com.google.cloud.bigquery.analyticshub.v1.QueryTemplate.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, state_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(7, getRoutine()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(8, getCreateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(9, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(primaryContact_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, primaryContact_); + } + 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(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(proposer_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, proposer_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(documentation_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, documentation_); + } + if (state_ + != com.google.cloud.bigquery.analyticshub.v1.QueryTemplate.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getRoutine()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getCreateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(primaryContact_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, primaryContact_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.QueryTemplate)) { + return super.equals(obj); + } + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate other = + (com.google.cloud.bigquery.analyticshub.v1.QueryTemplate) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getProposer().equals(other.getProposer())) return false; + if (!getPrimaryContact().equals(other.getPrimaryContact())) return false; + if (!getDocumentation().equals(other.getDocumentation())) return false; + if (state_ != other.state_) return false; + if (hasRoutine() != other.hasRoutine()) return false; + if (hasRoutine()) { + if (!getRoutine().equals(other.getRoutine())) return false; + } + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getUnknownFields().equals(other.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) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + PROPOSER_FIELD_NUMBER; + hash = (53 * hash) + getProposer().hashCode(); + hash = (37 * hash) + PRIMARY_CONTACT_FIELD_NUMBER; + hash = (53 * hash) + getPrimaryContact().hashCode(); + hash = (37 * hash) + DOCUMENTATION_FIELD_NUMBER; + hash = (53 * hash) + getDocumentation().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (hasRoutine()) { + hash = (37 * hash) + ROUTINE_FIELD_NUMBER; + hash = (53 * hash) + getRoutine().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.bigquery.analyticshub.v1.QueryTemplate parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.analyticshub.v1.QueryTemplate 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.QueryTemplate parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.analyticshub.v1.QueryTemplate parseFrom( + 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.QueryTemplate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.analyticshub.v1.QueryTemplate 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.QueryTemplate 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.QueryTemplate 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.QueryTemplate 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.QueryTemplate 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.QueryTemplate 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.QueryTemplate 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.QueryTemplate prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 query template is a container for sharing table-valued functions defined by
+   * contributors in a data clean room.
+   * 
+ * + * Protobuf type {@code google.cloud.bigquery.analyticshub.v1.QueryTemplate} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.analyticshub.v1.QueryTemplate) + com.google.cloud.bigquery.analyticshub.v1.QueryTemplateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubProto + .internal_static_google_cloud_bigquery_analyticshub_v1_QueryTemplate_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_QueryTemplate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate.class, + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate.Builder.class); + } + + // Construct using com.google.cloud.bigquery.analyticshub.v1.QueryTemplate.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getRoutineFieldBuilder(); + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + description_ = ""; + proposer_ = ""; + primaryContact_ = ""; + documentation_ = ""; + state_ = 0; + routine_ = null; + if (routineBuilder_ != null) { + routineBuilder_.dispose(); + routineBuilder_ = null; + } + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = 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_QueryTemplate_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.QueryTemplate getDefaultInstanceForType() { + return com.google.cloud.bigquery.analyticshub.v1.QueryTemplate.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.QueryTemplate build() { + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.QueryTemplate buildPartial() { + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate result = + new com.google.cloud.bigquery.analyticshub.v1.QueryTemplate(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.bigquery.analyticshub.v1.QueryTemplate result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.proposer_ = proposer_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.primaryContact_ = primaryContact_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.documentation_ = documentation_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.state_ = state_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000080) != 0)) { + result.routine_ = routineBuilder_ == null ? routine_ : routineBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.bigquery.analyticshub.v1.QueryTemplate) { + return mergeFrom((com.google.cloud.bigquery.analyticshub.v1.QueryTemplate) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.bigquery.analyticshub.v1.QueryTemplate other) { + if (other == com.google.cloud.bigquery.analyticshub.v1.QueryTemplate.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getProposer().isEmpty()) { + proposer_ = other.proposer_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getPrimaryContact().isEmpty()) { + primaryContact_ = other.primaryContact_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getDocumentation().isEmpty()) { + documentation_ = other.documentation_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.hasRoutine()) { + mergeRoutine(other.getRoutine()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + proposer_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + documentation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 42 + case 48: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 48 + case 58: + { + input.readMessage(getRoutineFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 58 + case 66: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 66 + case 74: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 74 + case 82: + { + primaryContact_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 82 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Output only. The resource name of the QueryTemplate.
+     * e.g. `projects/myproject/locations/us/dataExchanges/123/queryTemplates/456`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The resource name of the QueryTemplate.
+     * e.g. `projects/myproject/locations/us/dataExchanges/123/queryTemplates/456`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The resource name of the QueryTemplate.
+     * e.g. `projects/myproject/locations/us/dataExchanges/123/queryTemplates/456`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The resource name of the QueryTemplate.
+     * e.g. `projects/myproject/locations/us/dataExchanges/123/queryTemplates/456`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The resource name of the QueryTemplate.
+     * e.g. `projects/myproject/locations/us/dataExchanges/123/queryTemplates/456`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
+     * Required. Human-readable display name of the QueryTemplate. The display
+     * name must contain only Unicode letters, numbers (0-9), underscores (_),
+     * dashes (-), spaces ( ), ampersands (&) and can't start or end with spaces.
+     * Default value is an empty string. Max length: 63 bytes.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Human-readable display name of the QueryTemplate. The display
+     * name must contain only Unicode letters, numbers (0-9), underscores (_),
+     * dashes (-), spaces ( ), ampersands (&) and can't start or end with spaces.
+     * Default value is an empty string. Max length: 63 bytes.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Human-readable display name of the QueryTemplate. The display
+     * name must contain only Unicode letters, numbers (0-9), underscores (_),
+     * dashes (-), spaces ( ), ampersands (&) and can't start or end with spaces.
+     * Default value is an empty string. Max length: 63 bytes.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Human-readable display name of the QueryTemplate. The display
+     * name must contain only Unicode letters, numbers (0-9), underscores (_),
+     * dashes (-), spaces ( ), ampersands (&) and can't start or end with spaces.
+     * Default value is an empty string. Max length: 63 bytes.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Human-readable display name of the QueryTemplate. The display
+     * name must contain only Unicode letters, numbers (0-9), underscores (_),
+     * dashes (-), spaces ( ), ampersands (&) and can't start or end with spaces.
+     * Default value is an empty string. Max length: 63 bytes.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
+     * Optional. Short description of the QueryTemplate. The description must not
+     * contain Unicode non-characters and C0 and C1 control codes except tabs
+     * (HT), new lines (LF), carriage returns (CR), and page breaks (FF). Default
+     * value is an empty string. Max length: 2000 bytes.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Short description of the QueryTemplate. The description must not
+     * contain Unicode non-characters and C0 and C1 control codes except tabs
+     * (HT), new lines (LF), carriage returns (CR), and page breaks (FF). Default
+     * value is an empty string. Max length: 2000 bytes.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Short description of the QueryTemplate. The description must not
+     * contain Unicode non-characters and C0 and C1 control codes except tabs
+     * (HT), new lines (LF), carriage returns (CR), and page breaks (FF). Default
+     * value is an empty string. Max length: 2000 bytes.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Short description of the QueryTemplate. The description must not
+     * contain Unicode non-characters and C0 and C1 control codes except tabs
+     * (HT), new lines (LF), carriage returns (CR), and page breaks (FF). Default
+     * value is an empty string. Max length: 2000 bytes.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Short description of the QueryTemplate. The description must not
+     * contain Unicode non-characters and C0 and C1 control codes except tabs
+     * (HT), new lines (LF), carriage returns (CR), and page breaks (FF). Default
+     * value is an empty string. Max length: 2000 bytes.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object proposer_ = ""; + + /** + * + * + *
+     * Optional. Will be deprecated.
+     * Email or URL of the primary point of contact of the QueryTemplate.
+     * Max Length: 1000 bytes.
+     * 
+ * + * string proposer = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The proposer. + */ + public java.lang.String getProposer() { + java.lang.Object ref = proposer_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + proposer_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Will be deprecated.
+     * Email or URL of the primary point of contact of the QueryTemplate.
+     * Max Length: 1000 bytes.
+     * 
+ * + * string proposer = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for proposer. + */ + public com.google.protobuf.ByteString getProposerBytes() { + java.lang.Object ref = proposer_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + proposer_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Will be deprecated.
+     * Email or URL of the primary point of contact of the QueryTemplate.
+     * Max Length: 1000 bytes.
+     * 
+ * + * string proposer = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The proposer to set. + * @return This builder for chaining. + */ + public Builder setProposer(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + proposer_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Will be deprecated.
+     * Email or URL of the primary point of contact of the QueryTemplate.
+     * Max Length: 1000 bytes.
+     * 
+ * + * string proposer = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearProposer() { + proposer_ = getDefaultInstance().getProposer(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Will be deprecated.
+     * Email or URL of the primary point of contact of the QueryTemplate.
+     * Max Length: 1000 bytes.
+     * 
+ * + * string proposer = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for proposer to set. + * @return This builder for chaining. + */ + public Builder setProposerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + proposer_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object primaryContact_ = ""; + + /** + * + * + *
+     * Optional. Email or URL of the primary point of contact of the
+     * QueryTemplate. Max Length: 1000 bytes.
+     * 
+ * + * string primary_contact = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The primaryContact. + */ + public java.lang.String getPrimaryContact() { + java.lang.Object ref = primaryContact_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + primaryContact_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Email or URL of the primary point of contact of the
+     * QueryTemplate. Max Length: 1000 bytes.
+     * 
+ * + * string primary_contact = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for primaryContact. + */ + public com.google.protobuf.ByteString getPrimaryContactBytes() { + java.lang.Object ref = primaryContact_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + primaryContact_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Email or URL of the primary point of contact of the
+     * QueryTemplate. Max Length: 1000 bytes.
+     * 
+ * + * string primary_contact = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The primaryContact to set. + * @return This builder for chaining. + */ + public Builder setPrimaryContact(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + primaryContact_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Email or URL of the primary point of contact of the
+     * QueryTemplate. Max Length: 1000 bytes.
+     * 
+ * + * string primary_contact = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPrimaryContact() { + primaryContact_ = getDefaultInstance().getPrimaryContact(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Email or URL of the primary point of contact of the
+     * QueryTemplate. Max Length: 1000 bytes.
+     * 
+ * + * string primary_contact = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for primaryContact to set. + * @return This builder for chaining. + */ + public Builder setPrimaryContactBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + primaryContact_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object documentation_ = ""; + + /** + * + * + *
+     * Optional. Documentation describing the QueryTemplate.
+     * 
+ * + * string documentation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The documentation. + */ + public java.lang.String getDocumentation() { + java.lang.Object ref = documentation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + documentation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Documentation describing the QueryTemplate.
+     * 
+ * + * string documentation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for documentation. + */ + public com.google.protobuf.ByteString getDocumentationBytes() { + java.lang.Object ref = documentation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + documentation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Documentation describing the QueryTemplate.
+     * 
+ * + * string documentation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The documentation to set. + * @return This builder for chaining. + */ + public Builder setDocumentation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + documentation_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Documentation describing the QueryTemplate.
+     * 
+ * + * string documentation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDocumentation() { + documentation_ = getDefaultInstance().getDocumentation(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Documentation describing the QueryTemplate.
+     * 
+ * + * string documentation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for documentation to set. + * @return This builder for chaining. + */ + public Builder setDocumentationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + documentation_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
+     * Output only. The QueryTemplate lifecycle state.
+     * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.QueryTemplate.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+     * Output only. The QueryTemplate lifecycle state.
+     * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.QueryTemplate.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The QueryTemplate lifecycle state.
+     * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.QueryTemplate.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.QueryTemplate.State getState() { + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate.State result = + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate.State.forNumber(state_); + return result == null + ? com.google.cloud.bigquery.analyticshub.v1.QueryTemplate.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. The QueryTemplate lifecycle state.
+     * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.QueryTemplate.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.bigquery.analyticshub.v1.QueryTemplate.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The QueryTemplate lifecycle state.
+     * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.QueryTemplate.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000040); + state_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.bigquery.analyticshub.v1.Routine routine_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.analyticshub.v1.Routine, + com.google.cloud.bigquery.analyticshub.v1.Routine.Builder, + com.google.cloud.bigquery.analyticshub.v1.RoutineOrBuilder> + routineBuilder_; + + /** + * + * + *
+     * Optional. The routine associated with the QueryTemplate.
+     * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Routine routine = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the routine field is set. + */ + public boolean hasRoutine() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Optional. The routine associated with the QueryTemplate.
+     * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Routine routine = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The routine. + */ + public com.google.cloud.bigquery.analyticshub.v1.Routine getRoutine() { + if (routineBuilder_ == null) { + return routine_ == null + ? com.google.cloud.bigquery.analyticshub.v1.Routine.getDefaultInstance() + : routine_; + } else { + return routineBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The routine associated with the QueryTemplate.
+     * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Routine routine = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRoutine(com.google.cloud.bigquery.analyticshub.v1.Routine value) { + if (routineBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + routine_ = value; + } else { + routineBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The routine associated with the QueryTemplate.
+     * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Routine routine = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRoutine( + com.google.cloud.bigquery.analyticshub.v1.Routine.Builder builderForValue) { + if (routineBuilder_ == null) { + routine_ = builderForValue.build(); + } else { + routineBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The routine associated with the QueryTemplate.
+     * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Routine routine = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRoutine(com.google.cloud.bigquery.analyticshub.v1.Routine value) { + if (routineBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && routine_ != null + && routine_ != com.google.cloud.bigquery.analyticshub.v1.Routine.getDefaultInstance()) { + getRoutineBuilder().mergeFrom(value); + } else { + routine_ = value; + } + } else { + routineBuilder_.mergeFrom(value); + } + if (routine_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The routine associated with the QueryTemplate.
+     * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Routine routine = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRoutine() { + bitField0_ = (bitField0_ & ~0x00000080); + routine_ = null; + if (routineBuilder_ != null) { + routineBuilder_.dispose(); + routineBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The routine associated with the QueryTemplate.
+     * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Routine routine = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.bigquery.analyticshub.v1.Routine.Builder getRoutineBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getRoutineFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The routine associated with the QueryTemplate.
+     * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Routine routine = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.bigquery.analyticshub.v1.RoutineOrBuilder getRoutineOrBuilder() { + if (routineBuilder_ != null) { + return routineBuilder_.getMessageOrBuilder(); + } else { + return routine_ == null + ? com.google.cloud.bigquery.analyticshub.v1.Routine.getDefaultInstance() + : routine_; + } + } + + /** + * + * + *
+     * Optional. The routine associated with the QueryTemplate.
+     * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Routine routine = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.analyticshub.v1.Routine, + com.google.cloud.bigquery.analyticshub.v1.Routine.Builder, + com.google.cloud.bigquery.analyticshub.v1.RoutineOrBuilder> + getRoutineFieldBuilder() { + if (routineBuilder_ == null) { + routineBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.analyticshub.v1.Routine, + com.google.cloud.bigquery.analyticshub.v1.Routine.Builder, + com.google.cloud.bigquery.analyticshub.v1.RoutineOrBuilder>( + getRoutine(), getParentForChildren(), isClean()); + routine_ = null; + } + return routineBuilder_; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
+     * Output only. Timestamp when the QueryTemplate was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
+     * Output only. Timestamp when the QueryTemplate was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Timestamp when the QueryTemplate was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Timestamp when the QueryTemplate was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Timestamp when the QueryTemplate was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Timestamp when the QueryTemplate was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000100); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Timestamp when the QueryTemplate was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Timestamp when the QueryTemplate was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
+     * Output only. Timestamp when the QueryTemplate was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
+     * Output only. Timestamp when the QueryTemplate was last modified.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
+     * Output only. Timestamp when the QueryTemplate was last modified.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Timestamp when the QueryTemplate was last modified.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Timestamp when the QueryTemplate was last modified.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Timestamp when the QueryTemplate was last modified.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Timestamp when the QueryTemplate was last modified.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000200); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Timestamp when the QueryTemplate was last modified.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Timestamp when the QueryTemplate was last modified.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
+     * Output only. Timestamp when the QueryTemplate was last modified.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + @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.QueryTemplate) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.analyticshub.v1.QueryTemplate) + private static final com.google.cloud.bigquery.analyticshub.v1.QueryTemplate DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.bigquery.analyticshub.v1.QueryTemplate(); + } + + public static com.google.cloud.bigquery.analyticshub.v1.QueryTemplate getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryTemplate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.QueryTemplate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/QueryTemplateName.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/QueryTemplateName.java new file mode 100644 index 000000000000..734d0d8ef584 --- /dev/null +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/QueryTemplateName.java @@ -0,0 +1,269 @@ +/* + * 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.bigquery.analyticshub.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class QueryTemplateName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_DATA_EXCHANGE_QUERY_TEMPLATE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/dataExchanges/{data_exchange}/queryTemplates/{query_template}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String dataExchange; + private final String queryTemplate; + + @Deprecated + protected QueryTemplateName() { + project = null; + location = null; + dataExchange = null; + queryTemplate = null; + } + + private QueryTemplateName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + dataExchange = Preconditions.checkNotNull(builder.getDataExchange()); + queryTemplate = Preconditions.checkNotNull(builder.getQueryTemplate()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDataExchange() { + return dataExchange; + } + + public String getQueryTemplate() { + return queryTemplate; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static QueryTemplateName of( + String project, String location, String dataExchange, String queryTemplate) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDataExchange(dataExchange) + .setQueryTemplate(queryTemplate) + .build(); + } + + public static String format( + String project, String location, String dataExchange, String queryTemplate) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDataExchange(dataExchange) + .setQueryTemplate(queryTemplate) + .build() + .toString(); + } + + public static QueryTemplateName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_DATA_EXCHANGE_QUERY_TEMPLATE.validatedMatch( + formattedString, "QueryTemplateName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("data_exchange"), + matchMap.get("query_template")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (QueryTemplateName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_DATA_EXCHANGE_QUERY_TEMPLATE.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (dataExchange != null) { + fieldMapBuilder.put("data_exchange", dataExchange); + } + if (queryTemplate != null) { + fieldMapBuilder.put("query_template", queryTemplate); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_DATA_EXCHANGE_QUERY_TEMPLATE.instantiate( + "project", + project, + "location", + location, + "data_exchange", + dataExchange, + "query_template", + queryTemplate); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + QueryTemplateName that = ((QueryTemplateName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.dataExchange, that.dataExchange) + && Objects.equals(this.queryTemplate, that.queryTemplate); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(dataExchange); + h *= 1000003; + h ^= Objects.hashCode(queryTemplate); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/dataExchanges/{data_exchange}/queryTemplates/{query_template}. + */ + public static class Builder { + private String project; + private String location; + private String dataExchange; + private String queryTemplate; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDataExchange() { + return dataExchange; + } + + public String getQueryTemplate() { + return queryTemplate; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setDataExchange(String dataExchange) { + this.dataExchange = dataExchange; + return this; + } + + public Builder setQueryTemplate(String queryTemplate) { + this.queryTemplate = queryTemplate; + return this; + } + + private Builder(QueryTemplateName queryTemplateName) { + this.project = queryTemplateName.project; + this.location = queryTemplateName.location; + this.dataExchange = queryTemplateName.dataExchange; + this.queryTemplate = queryTemplateName.queryTemplate; + } + + public QueryTemplateName build() { + return new QueryTemplateName(this); + } + } +} diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/QueryTemplateOrBuilder.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/QueryTemplateOrBuilder.java new file mode 100644 index 000000000000..6b4e120aa431 --- /dev/null +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/QueryTemplateOrBuilder.java @@ -0,0 +1,355 @@ +/* + * 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/bigquery/analyticshub/v1/analyticshub.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.bigquery.analyticshub.v1; + +public interface QueryTemplateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.analyticshub.v1.QueryTemplate) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The resource name of the QueryTemplate.
+   * e.g. `projects/myproject/locations/us/dataExchanges/123/queryTemplates/456`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Output only. The resource name of the QueryTemplate.
+   * e.g. `projects/myproject/locations/us/dataExchanges/123/queryTemplates/456`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. Human-readable display name of the QueryTemplate. The display
+   * name must contain only Unicode letters, numbers (0-9), underscores (_),
+   * dashes (-), spaces ( ), ampersands (&) and can't start or end with spaces.
+   * Default value is an empty string. Max length: 63 bytes.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
+   * Required. Human-readable display name of the QueryTemplate. The display
+   * name must contain only Unicode letters, numbers (0-9), underscores (_),
+   * dashes (-), spaces ( ), ampersands (&) and can't start or end with spaces.
+   * Default value is an empty string. Max length: 63 bytes.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Optional. Short description of the QueryTemplate. The description must not
+   * contain Unicode non-characters and C0 and C1 control codes except tabs
+   * (HT), new lines (LF), carriage returns (CR), and page breaks (FF). Default
+   * value is an empty string. Max length: 2000 bytes.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+   * Optional. Short description of the QueryTemplate. The description must not
+   * contain Unicode non-characters and C0 and C1 control codes except tabs
+   * (HT), new lines (LF), carriage returns (CR), and page breaks (FF). Default
+   * value is an empty string. Max length: 2000 bytes.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Optional. Will be deprecated.
+   * Email or URL of the primary point of contact of the QueryTemplate.
+   * Max Length: 1000 bytes.
+   * 
+ * + * string proposer = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The proposer. + */ + java.lang.String getProposer(); + + /** + * + * + *
+   * Optional. Will be deprecated.
+   * Email or URL of the primary point of contact of the QueryTemplate.
+   * Max Length: 1000 bytes.
+   * 
+ * + * string proposer = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for proposer. + */ + com.google.protobuf.ByteString getProposerBytes(); + + /** + * + * + *
+   * Optional. Email or URL of the primary point of contact of the
+   * QueryTemplate. Max Length: 1000 bytes.
+   * 
+ * + * string primary_contact = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The primaryContact. + */ + java.lang.String getPrimaryContact(); + + /** + * + * + *
+   * Optional. Email or URL of the primary point of contact of the
+   * QueryTemplate. Max Length: 1000 bytes.
+   * 
+ * + * string primary_contact = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for primaryContact. + */ + com.google.protobuf.ByteString getPrimaryContactBytes(); + + /** + * + * + *
+   * Optional. Documentation describing the QueryTemplate.
+   * 
+ * + * string documentation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The documentation. + */ + java.lang.String getDocumentation(); + + /** + * + * + *
+   * Optional. Documentation describing the QueryTemplate.
+   * 
+ * + * string documentation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for documentation. + */ + com.google.protobuf.ByteString getDocumentationBytes(); + + /** + * + * + *
+   * Output only. The QueryTemplate lifecycle state.
+   * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.QueryTemplate.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
+   * Output only. The QueryTemplate lifecycle state.
+   * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.QueryTemplate.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate.State getState(); + + /** + * + * + *
+   * Optional. The routine associated with the QueryTemplate.
+   * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Routine routine = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the routine field is set. + */ + boolean hasRoutine(); + + /** + * + * + *
+   * Optional. The routine associated with the QueryTemplate.
+   * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Routine routine = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The routine. + */ + com.google.cloud.bigquery.analyticshub.v1.Routine getRoutine(); + + /** + * + * + *
+   * Optional. The routine associated with the QueryTemplate.
+   * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Routine routine = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.bigquery.analyticshub.v1.RoutineOrBuilder getRoutineOrBuilder(); + + /** + * + * + *
+   * Output only. Timestamp when the QueryTemplate was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. Timestamp when the QueryTemplate was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. Timestamp when the QueryTemplate was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Timestamp when the QueryTemplate was last modified.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. Timestamp when the QueryTemplate was last modified.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. Timestamp when the QueryTemplate was last modified.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); +} diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/Routine.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/Routine.java new file mode 100644 index 000000000000..8aacea8efb67 --- /dev/null +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/Routine.java @@ -0,0 +1,950 @@ +/* + * 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/bigquery/analyticshub/v1/analyticshub.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.bigquery.analyticshub.v1; + +/** + * + * + *
+ * Represents a bigquery routine.
+ * 
+ * + * Protobuf type {@code google.cloud.bigquery.analyticshub.v1.Routine} + */ +public final class Routine extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.analyticshub.v1.Routine) + RoutineOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Routine.newBuilder() to construct. + private Routine(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Routine() { + routineType_ = 0; + definitionBody_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Routine(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubProto + .internal_static_google_cloud_bigquery_analyticshub_v1_Routine_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_Routine_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.analyticshub.v1.Routine.class, + com.google.cloud.bigquery.analyticshub.v1.Routine.Builder.class); + } + + /** + * + * + *
+   * Represents the type of a given routine.
+   * 
+ * + * Protobuf enum {@code google.cloud.bigquery.analyticshub.v1.Routine.RoutineType} + */ + public enum RoutineType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value.
+     * 
+ * + * ROUTINE_TYPE_UNSPECIFIED = 0; + */ + ROUTINE_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Non-built-in persistent TVF.
+     * 
+ * + * TABLE_VALUED_FUNCTION = 1; + */ + TABLE_VALUED_FUNCTION(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value.
+     * 
+ * + * ROUTINE_TYPE_UNSPECIFIED = 0; + */ + public static final int ROUTINE_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Non-built-in persistent TVF.
+     * 
+ * + * TABLE_VALUED_FUNCTION = 1; + */ + public static final int TABLE_VALUED_FUNCTION_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 RoutineType 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 RoutineType forNumber(int value) { + switch (value) { + case 0: + return ROUTINE_TYPE_UNSPECIFIED; + case 1: + return TABLE_VALUED_FUNCTION; + 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 RoutineType findValueByNumber(int number) { + return RoutineType.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.Routine.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final RoutineType[] VALUES = values(); + + public static RoutineType 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 RoutineType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.bigquery.analyticshub.v1.Routine.RoutineType) + } + + public static final int ROUTINE_TYPE_FIELD_NUMBER = 1; + private int routineType_ = 0; + + /** + * + * + *
+   * Required. The type of routine.
+   * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Routine.RoutineType routine_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for routineType. + */ + @java.lang.Override + public int getRoutineTypeValue() { + return routineType_; + } + + /** + * + * + *
+   * Required. The type of routine.
+   * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Routine.RoutineType routine_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The routineType. + */ + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.Routine.RoutineType getRoutineType() { + com.google.cloud.bigquery.analyticshub.v1.Routine.RoutineType result = + com.google.cloud.bigquery.analyticshub.v1.Routine.RoutineType.forNumber(routineType_); + return result == null + ? com.google.cloud.bigquery.analyticshub.v1.Routine.RoutineType.UNRECOGNIZED + : result; + } + + public static final int DEFINITION_BODY_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object definitionBody_ = ""; + + /** + * + * + *
+   * Optional. The definition body of the routine.
+   * 
+ * + * string definition_body = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The definitionBody. + */ + @java.lang.Override + public java.lang.String getDefinitionBody() { + java.lang.Object ref = definitionBody_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + definitionBody_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The definition body of the routine.
+   * 
+ * + * string definition_body = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for definitionBody. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDefinitionBodyBytes() { + java.lang.Object ref = definitionBody_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + definitionBody_ = 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 (routineType_ + != com.google.cloud.bigquery.analyticshub.v1.Routine.RoutineType.ROUTINE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, routineType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(definitionBody_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, definitionBody_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (routineType_ + != com.google.cloud.bigquery.analyticshub.v1.Routine.RoutineType.ROUTINE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, routineType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(definitionBody_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, definitionBody_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.Routine)) { + return super.equals(obj); + } + com.google.cloud.bigquery.analyticshub.v1.Routine other = + (com.google.cloud.bigquery.analyticshub.v1.Routine) obj; + + if (routineType_ != other.routineType_) return false; + if (!getDefinitionBody().equals(other.getDefinitionBody())) 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) + ROUTINE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + routineType_; + hash = (37 * hash) + DEFINITION_BODY_FIELD_NUMBER; + hash = (53 * hash) + getDefinitionBody().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.bigquery.analyticshub.v1.Routine parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.analyticshub.v1.Routine 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.Routine parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.analyticshub.v1.Routine parseFrom( + 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.Routine parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.analyticshub.v1.Routine 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.Routine 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.Routine 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.Routine 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.Routine 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.Routine 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.Routine 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.Routine prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Represents a bigquery routine.
+   * 
+ * + * Protobuf type {@code google.cloud.bigquery.analyticshub.v1.Routine} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.analyticshub.v1.Routine) + com.google.cloud.bigquery.analyticshub.v1.RoutineOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubProto + .internal_static_google_cloud_bigquery_analyticshub_v1_Routine_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_Routine_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.analyticshub.v1.Routine.class, + com.google.cloud.bigquery.analyticshub.v1.Routine.Builder.class); + } + + // Construct using com.google.cloud.bigquery.analyticshub.v1.Routine.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + routineType_ = 0; + definitionBody_ = ""; + 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_Routine_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.Routine getDefaultInstanceForType() { + return com.google.cloud.bigquery.analyticshub.v1.Routine.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.Routine build() { + com.google.cloud.bigquery.analyticshub.v1.Routine result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.Routine buildPartial() { + com.google.cloud.bigquery.analyticshub.v1.Routine result = + new com.google.cloud.bigquery.analyticshub.v1.Routine(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.bigquery.analyticshub.v1.Routine result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.routineType_ = routineType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.definitionBody_ = definitionBody_; + } + } + + @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.Routine) { + return mergeFrom((com.google.cloud.bigquery.analyticshub.v1.Routine) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.bigquery.analyticshub.v1.Routine other) { + if (other == com.google.cloud.bigquery.analyticshub.v1.Routine.getDefaultInstance()) + return this; + if (other.routineType_ != 0) { + setRoutineTypeValue(other.getRoutineTypeValue()); + } + if (!other.getDefinitionBody().isEmpty()) { + definitionBody_ = other.definitionBody_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + routineType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + definitionBody_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int routineType_ = 0; + + /** + * + * + *
+     * Required. The type of routine.
+     * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Routine.RoutineType routine_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for routineType. + */ + @java.lang.Override + public int getRoutineTypeValue() { + return routineType_; + } + + /** + * + * + *
+     * Required. The type of routine.
+     * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Routine.RoutineType routine_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for routineType to set. + * @return This builder for chaining. + */ + public Builder setRoutineTypeValue(int value) { + routineType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The type of routine.
+     * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Routine.RoutineType routine_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The routineType. + */ + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.Routine.RoutineType getRoutineType() { + com.google.cloud.bigquery.analyticshub.v1.Routine.RoutineType result = + com.google.cloud.bigquery.analyticshub.v1.Routine.RoutineType.forNumber(routineType_); + return result == null + ? com.google.cloud.bigquery.analyticshub.v1.Routine.RoutineType.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Required. The type of routine.
+     * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Routine.RoutineType routine_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The routineType to set. + * @return This builder for chaining. + */ + public Builder setRoutineType( + com.google.cloud.bigquery.analyticshub.v1.Routine.RoutineType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + routineType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The type of routine.
+     * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Routine.RoutineType routine_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearRoutineType() { + bitField0_ = (bitField0_ & ~0x00000001); + routineType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object definitionBody_ = ""; + + /** + * + * + *
+     * Optional. The definition body of the routine.
+     * 
+ * + * string definition_body = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The definitionBody. + */ + public java.lang.String getDefinitionBody() { + java.lang.Object ref = definitionBody_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + definitionBody_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The definition body of the routine.
+     * 
+ * + * string definition_body = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for definitionBody. + */ + public com.google.protobuf.ByteString getDefinitionBodyBytes() { + java.lang.Object ref = definitionBody_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + definitionBody_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The definition body of the routine.
+     * 
+ * + * string definition_body = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The definitionBody to set. + * @return This builder for chaining. + */ + public Builder setDefinitionBody(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + definitionBody_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The definition body of the routine.
+     * 
+ * + * string definition_body = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDefinitionBody() { + definitionBody_ = getDefaultInstance().getDefinitionBody(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The definition body of the routine.
+     * 
+ * + * string definition_body = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for definitionBody to set. + * @return This builder for chaining. + */ + public Builder setDefinitionBodyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + definitionBody_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.analyticshub.v1.Routine) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.analyticshub.v1.Routine) + private static final com.google.cloud.bigquery.analyticshub.v1.Routine DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.bigquery.analyticshub.v1.Routine(); + } + + public static com.google.cloud.bigquery.analyticshub.v1.Routine getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Routine parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.Routine getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/RoutineOrBuilder.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/RoutineOrBuilder.java new file mode 100644 index 000000000000..7cc55d6c4fb0 --- /dev/null +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/RoutineOrBuilder.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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/analyticshub/v1/analyticshub.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.bigquery.analyticshub.v1; + +public interface RoutineOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.analyticshub.v1.Routine) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The type of routine.
+   * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Routine.RoutineType routine_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for routineType. + */ + int getRoutineTypeValue(); + + /** + * + * + *
+   * Required. The type of routine.
+   * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Routine.RoutineType routine_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The routineType. + */ + com.google.cloud.bigquery.analyticshub.v1.Routine.RoutineType getRoutineType(); + + /** + * + * + *
+   * Optional. The definition body of the routine.
+   * 
+ * + * string definition_body = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The definitionBody. + */ + java.lang.String getDefinitionBody(); + + /** + * + * + *
+   * Optional. The definition body of the routine.
+   * 
+ * + * string definition_body = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for definitionBody. + */ + com.google.protobuf.ByteString getDefinitionBodyBytes(); +} diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/SubmitQueryTemplateRequest.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/SubmitQueryTemplateRequest.java new file mode 100644 index 000000000000..8f0eb217becd --- /dev/null +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/SubmitQueryTemplateRequest.java @@ -0,0 +1,674 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/analyticshub/v1/analyticshub.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.bigquery.analyticshub.v1; + +/** + * + * + *
+ * Message for submitting a QueryTemplate.
+ * 
+ * + * Protobuf type {@code google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest} + */ +public final class SubmitQueryTemplateRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest) + SubmitQueryTemplateRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use SubmitQueryTemplateRequest.newBuilder() to construct. + private SubmitQueryTemplateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SubmitQueryTemplateRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SubmitQueryTemplateRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubProto + .internal_static_google_cloud_bigquery_analyticshub_v1_SubmitQueryTemplateRequest_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_SubmitQueryTemplateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest.class, + com.google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource path of the QueryTemplate.
+   * e.g.
+   * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`.
+   * 
+ * + * + * 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 path of the QueryTemplate.
+   * e.g.
+   * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest)) { + return super.equals(obj); + } + com.google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest other = + (com.google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest 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.SubmitQueryTemplateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest parseFrom( + 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.SubmitQueryTemplateRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest 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.SubmitQueryTemplateRequest 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.SubmitQueryTemplateRequest 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.SubmitQueryTemplateRequest + 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.SubmitQueryTemplateRequest + 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.SubmitQueryTemplateRequest 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.SubmitQueryTemplateRequest 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.SubmitQueryTemplateRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 submitting a QueryTemplate.
+   * 
+ * + * Protobuf type {@code google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest) + com.google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubProto + .internal_static_google_cloud_bigquery_analyticshub_v1_SubmitQueryTemplateRequest_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_SubmitQueryTemplateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest.class, + com.google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest.Builder.class); + } + + // Construct using + // com.google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubProto + .internal_static_google_cloud_bigquery_analyticshub_v1_SubmitQueryTemplateRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest build() { + com.google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest buildPartial() { + com.google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest result = + new com.google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest) { + return mergeFrom( + (com.google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest other) { + if (other + == com.google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The resource path of the QueryTemplate.
+     * e.g.
+     * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`.
+     * 
+ * + * + * 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 path of the QueryTemplate.
+     * e.g.
+     * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`.
+     * 
+ * + * + * 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 path of the QueryTemplate.
+     * e.g.
+     * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`.
+     * 
+ * + * + * 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 path of the QueryTemplate.
+     * e.g.
+     * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`.
+     * 
+ * + * + * 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 path of the QueryTemplate.
+     * e.g.
+     * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest) + private static final com.google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest(); + } + + public static com.google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SubmitQueryTemplateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.SubmitQueryTemplateRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/SubmitQueryTemplateRequestOrBuilder.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/SubmitQueryTemplateRequestOrBuilder.java new file mode 100644 index 000000000000..85882110a2cc --- /dev/null +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/SubmitQueryTemplateRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/analyticshub/v1/analyticshub.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.bigquery.analyticshub.v1; + +public interface SubmitQueryTemplateRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource path of the QueryTemplate.
+   * e.g.
+   * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The resource path of the QueryTemplate.
+   * e.g.
+   * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/UpdateQueryTemplateRequest.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/UpdateQueryTemplateRequest.java new file mode 100644 index 000000000000..a0a3b6df0cb6 --- /dev/null +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/UpdateQueryTemplateRequest.java @@ -0,0 +1,1090 @@ +/* + * 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/bigquery/analyticshub/v1/analyticshub.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.bigquery.analyticshub.v1; + +/** + * + * + *
+ * Message for updating a QueryTemplate.
+ * 
+ * + * Protobuf type {@code google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest} + */ +public final class UpdateQueryTemplateRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest) + UpdateQueryTemplateRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UpdateQueryTemplateRequest.newBuilder() to construct. + private UpdateQueryTemplateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateQueryTemplateRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateQueryTemplateRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubProto + .internal_static_google_cloud_bigquery_analyticshub_v1_UpdateQueryTemplateRequest_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_UpdateQueryTemplateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest.class, + com.google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest.Builder.class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
+   * Optional. Field mask specifies the fields to update in the query template
+   * resource. The fields specified in the `updateMask` are relative to the
+   * resource and are not a full request.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Field mask specifies the fields to update in the query template
+   * resource. The fields specified in the `updateMask` are relative to the
+   * resource and are not a full request.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
+   * Optional. Field mask specifies the fields to update in the query template
+   * resource. The fields specified in the `updateMask` are relative to the
+   * resource and are not a full request.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int QUERY_TEMPLATE_FIELD_NUMBER = 2; + private com.google.cloud.bigquery.analyticshub.v1.QueryTemplate queryTemplate_; + + /** + * + * + *
+   * Required. The QueryTemplate to update.
+   * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the queryTemplate field is set. + */ + @java.lang.Override + public boolean hasQueryTemplate() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Required. The QueryTemplate to update.
+   * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The queryTemplate. + */ + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.QueryTemplate getQueryTemplate() { + return queryTemplate_ == null + ? com.google.cloud.bigquery.analyticshub.v1.QueryTemplate.getDefaultInstance() + : queryTemplate_; + } + + /** + * + * + *
+   * Required. The QueryTemplate to update.
+   * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.QueryTemplateOrBuilder + getQueryTemplateOrBuilder() { + return queryTemplate_ == null + ? com.google.cloud.bigquery.analyticshub.v1.QueryTemplate.getDefaultInstance() + : queryTemplate_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getQueryTemplate()); + } + 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, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getQueryTemplate()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.UpdateQueryTemplateRequest)) { + return super.equals(obj); + } + com.google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest other = + (com.google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasQueryTemplate() != other.hasQueryTemplate()) return false; + if (hasQueryTemplate()) { + if (!getQueryTemplate().equals(other.getQueryTemplate())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasQueryTemplate()) { + hash = (37 * hash) + QUERY_TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getQueryTemplate().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest 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.UpdateQueryTemplateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest parseFrom( + 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.UpdateQueryTemplateRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest 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.UpdateQueryTemplateRequest 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.UpdateQueryTemplateRequest 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.UpdateQueryTemplateRequest + 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.UpdateQueryTemplateRequest + 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.UpdateQueryTemplateRequest 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.UpdateQueryTemplateRequest 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.UpdateQueryTemplateRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 updating a QueryTemplate.
+   * 
+ * + * Protobuf type {@code google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest) + com.google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubProto + .internal_static_google_cloud_bigquery_analyticshub_v1_UpdateQueryTemplateRequest_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_UpdateQueryTemplateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest.class, + com.google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest.Builder.class); + } + + // Construct using + // com.google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getUpdateMaskFieldBuilder(); + getQueryTemplateFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + queryTemplate_ = null; + if (queryTemplateBuilder_ != null) { + queryTemplateBuilder_.dispose(); + queryTemplateBuilder_ = 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_UpdateQueryTemplateRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest build() { + com.google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest buildPartial() { + com.google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest result = + new com.google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.queryTemplate_ = + queryTemplateBuilder_ == null ? queryTemplate_ : queryTemplateBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest) { + return mergeFrom( + (com.google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest other) { + if (other + == com.google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest + .getDefaultInstance()) return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasQueryTemplate()) { + mergeQueryTemplate(other.getQueryTemplate()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getQueryTemplateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
+     * Optional. Field mask specifies the fields to update in the query template
+     * resource. The fields specified in the `updateMask` are relative to the
+     * resource and are not a full request.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. Field mask specifies the fields to update in the query template
+     * resource. The fields specified in the `updateMask` are relative to the
+     * resource and are not a full request.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Field mask specifies the fields to update in the query template
+     * resource. The fields specified in the `updateMask` are relative to the
+     * resource and are not a full request.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Field mask specifies the fields to update in the query template
+     * resource. The fields specified in the `updateMask` are relative to the
+     * resource and are not a full request.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Field mask specifies the fields to update in the query template
+     * resource. The fields specified in the `updateMask` are relative to the
+     * resource and are not a full request.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Field mask specifies the fields to update in the query template
+     * resource. The fields specified in the `updateMask` are relative to the
+     * resource and are not a full request.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Field mask specifies the fields to update in the query template
+     * resource. The fields specified in the `updateMask` are relative to the
+     * resource and are not a full request.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Field mask specifies the fields to update in the query template
+     * resource. The fields specified in the `updateMask` are relative to the
+     * resource and are not a full request.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
+     * Optional. Field mask specifies the fields to update in the query template
+     * resource. The fields specified in the `updateMask` are relative to the
+     * resource and are not a full request.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.bigquery.analyticshub.v1.QueryTemplate queryTemplate_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate, + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate.Builder, + com.google.cloud.bigquery.analyticshub.v1.QueryTemplateOrBuilder> + queryTemplateBuilder_; + + /** + * + * + *
+     * Required. The QueryTemplate to update.
+     * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the queryTemplate field is set. + */ + public boolean hasQueryTemplate() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Required. The QueryTemplate to update.
+     * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The queryTemplate. + */ + public com.google.cloud.bigquery.analyticshub.v1.QueryTemplate getQueryTemplate() { + if (queryTemplateBuilder_ == null) { + return queryTemplate_ == null + ? com.google.cloud.bigquery.analyticshub.v1.QueryTemplate.getDefaultInstance() + : queryTemplate_; + } else { + return queryTemplateBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The QueryTemplate to update.
+     * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setQueryTemplate(com.google.cloud.bigquery.analyticshub.v1.QueryTemplate value) { + if (queryTemplateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + queryTemplate_ = value; + } else { + queryTemplateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The QueryTemplate to update.
+     * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setQueryTemplate( + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate.Builder builderForValue) { + if (queryTemplateBuilder_ == null) { + queryTemplate_ = builderForValue.build(); + } else { + queryTemplateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The QueryTemplate to update.
+     * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeQueryTemplate( + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate value) { + if (queryTemplateBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && queryTemplate_ != null + && queryTemplate_ + != com.google.cloud.bigquery.analyticshub.v1.QueryTemplate.getDefaultInstance()) { + getQueryTemplateBuilder().mergeFrom(value); + } else { + queryTemplate_ = value; + } + } else { + queryTemplateBuilder_.mergeFrom(value); + } + if (queryTemplate_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The QueryTemplate to update.
+     * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearQueryTemplate() { + bitField0_ = (bitField0_ & ~0x00000002); + queryTemplate_ = null; + if (queryTemplateBuilder_ != null) { + queryTemplateBuilder_.dispose(); + queryTemplateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The QueryTemplate to update.
+     * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.bigquery.analyticshub.v1.QueryTemplate.Builder + getQueryTemplateBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getQueryTemplateFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The QueryTemplate to update.
+     * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.bigquery.analyticshub.v1.QueryTemplateOrBuilder + getQueryTemplateOrBuilder() { + if (queryTemplateBuilder_ != null) { + return queryTemplateBuilder_.getMessageOrBuilder(); + } else { + return queryTemplate_ == null + ? com.google.cloud.bigquery.analyticshub.v1.QueryTemplate.getDefaultInstance() + : queryTemplate_; + } + } + + /** + * + * + *
+     * Required. The QueryTemplate to update.
+     * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate, + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate.Builder, + com.google.cloud.bigquery.analyticshub.v1.QueryTemplateOrBuilder> + getQueryTemplateFieldBuilder() { + if (queryTemplateBuilder_ == null) { + queryTemplateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate, + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate.Builder, + com.google.cloud.bigquery.analyticshub.v1.QueryTemplateOrBuilder>( + getQueryTemplate(), getParentForChildren(), isClean()); + queryTemplate_ = null; + } + return queryTemplateBuilder_; + } + + @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.UpdateQueryTemplateRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest) + private static final com.google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest(); + } + + public static com.google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateQueryTemplateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.UpdateQueryTemplateRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/UpdateQueryTemplateRequestOrBuilder.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/UpdateQueryTemplateRequestOrBuilder.java new file mode 100644 index 000000000000..14540ad1efcf --- /dev/null +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/UpdateQueryTemplateRequestOrBuilder.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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/analyticshub/v1/analyticshub.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.bigquery.analyticshub.v1; + +public interface UpdateQueryTemplateRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Field mask specifies the fields to update in the query template
+   * resource. The fields specified in the `updateMask` are relative to the
+   * resource and are not a full request.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
+   * Optional. Field mask specifies the fields to update in the query template
+   * resource. The fields specified in the `updateMask` are relative to the
+   * resource and are not a full request.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
+   * Optional. Field mask specifies the fields to update in the query template
+   * resource. The fields specified in the `updateMask` are relative to the
+   * resource and are not a full request.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
+   * Required. The QueryTemplate to update.
+   * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the queryTemplate field is set. + */ + boolean hasQueryTemplate(); + + /** + * + * + *
+   * Required. The QueryTemplate to update.
+   * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The queryTemplate. + */ + com.google.cloud.bigquery.analyticshub.v1.QueryTemplate getQueryTemplate(); + + /** + * + * + *
+   * Required. The QueryTemplate to update.
+   * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.QueryTemplate query_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.bigquery.analyticshub.v1.QueryTemplateOrBuilder getQueryTemplateOrBuilder(); +} 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 8573b7ed921e..bc5f41fd0171 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 @@ -315,6 +315,70 @@ service AnalyticsHubService { } }; } + + // Creates a new QueryTemplate + rpc CreateQueryTemplate(CreateQueryTemplateRequest) returns (QueryTemplate) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/dataExchanges/*}/queryTemplates" + body: "query_template" + }; + option (google.api.method_signature) = + "parent,query_template,query_template_id"; + } + + // Gets a QueryTemplate + rpc GetQueryTemplate(GetQueryTemplateRequest) returns (QueryTemplate) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/dataExchanges/*/queryTemplates/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists all QueryTemplates in a given project and location. + rpc ListQueryTemplates(ListQueryTemplatesRequest) + returns (ListQueryTemplatesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/dataExchanges/*}/queryTemplates" + }; + option (google.api.method_signature) = "parent"; + } + + // Updates an existing QueryTemplate + rpc UpdateQueryTemplate(UpdateQueryTemplateRequest) returns (QueryTemplate) { + option (google.api.http) = { + patch: "/v1/{query_template.name=projects/*/locations/*/dataExchanges/*/queryTemplates/*}" + body: "query_template" + }; + option (google.api.method_signature) = "query_template,update_mask"; + } + + // Deletes a query template. + rpc DeleteQueryTemplate(DeleteQueryTemplateRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/dataExchanges/*/queryTemplates/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Submits a query template for approval. + rpc SubmitQueryTemplate(SubmitQueryTemplateRequest) returns (QueryTemplate) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/dataExchanges/*/queryTemplates/*}:submit" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + + // Approves a query template. + rpc ApproveQueryTemplate(ApproveQueryTemplateRequest) + returns (QueryTemplate) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/dataExchanges/*/queryTemplates/*}:approve" + body: "*" + }; + option (google.api.method_signature) = "name"; + } } // Specifies the type of discovery on the discovery page. Note that @@ -404,6 +468,209 @@ message DataExchange { [(google.api.field_behavior) = OPTIONAL]; } +// A query template is a container for sharing table-valued functions defined by +// contributors in a data clean room. +message QueryTemplate { + option (google.api.resource) = { + type: "analyticshub.googleapis.com/QueryTemplate" + pattern: "projects/{project}/locations/{location}/dataExchanges/{data_exchange}/queryTemplates/{query_template}" + plural: "queryTemplates" + singular: "queryTemplate" + }; + + // The QueryTemplate lifecycle state. + enum State { + // Default value. This value is unused. + STATE_UNSPECIFIED = 0; + + // The QueryTemplate is in draft state. + DRAFTED = 1; + + // The QueryTemplate is in pending state. + PENDING = 2; + + // The QueryTemplate is in deleted state. + DELETED = 3; + + // The QueryTemplate is in approved state. + APPROVED = 4; + } + + // Output only. The resource name of the QueryTemplate. + // e.g. `projects/myproject/locations/us/dataExchanges/123/queryTemplates/456` + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Human-readable display name of the QueryTemplate. The display + // name must contain only Unicode letters, numbers (0-9), underscores (_), + // dashes (-), spaces ( ), ampersands (&) and can't start or end with spaces. + // Default value is an empty string. Max length: 63 bytes. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Short description of the QueryTemplate. The description must not + // contain Unicode non-characters and C0 and C1 control codes except tabs + // (HT), new lines (LF), carriage returns (CR), and page breaks (FF). Default + // value is an empty string. Max length: 2000 bytes. + string description = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Will be deprecated. + // Email or URL of the primary point of contact of the QueryTemplate. + // Max Length: 1000 bytes. + string proposer = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Email or URL of the primary point of contact of the + // QueryTemplate. Max Length: 1000 bytes. + string primary_contact = 10 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Documentation describing the QueryTemplate. + string documentation = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The QueryTemplate lifecycle state. + State state = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The routine associated with the QueryTemplate. + Routine routine = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Timestamp when the QueryTemplate was created. + google.protobuf.Timestamp create_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when the QueryTemplate was last modified. + google.protobuf.Timestamp update_time = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Represents a bigquery routine. +message Routine { + // Represents the type of a given routine. + enum RoutineType { + // Default value. + ROUTINE_TYPE_UNSPECIFIED = 0; + + // Non-built-in persistent TVF. + TABLE_VALUED_FUNCTION = 1; + } + + // Required. The type of routine. + RoutineType routine_type = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The definition body of the routine. + string definition_body = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message for creating a QueryTemplate. +message CreateQueryTemplateRequest { + // Required. The parent resource path of the QueryTemplate. + // e.g. + // `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myQueryTemplate`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticshub.googleapis.com/DataExchange" + } + ]; + + // Required. The ID of the QueryTemplate to create. + // Must contain only Unicode letters, numbers (0-9), underscores (_). + // Max length: 100 bytes. + string query_template_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The QueryTemplate to create. + QueryTemplate query_template = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Message for creating a QueryTemplate. +message GetQueryTemplateRequest { + // Required. The parent resource path of the QueryTemplate. + // e.g. + // `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticshub.googleapis.com/QueryTemplate" + } + ]; +} + +// Message for requesting the list of QueryTemplates. +message ListQueryTemplatesRequest { + // Required. The parent resource path of the QueryTemplates. + // e.g. `projects/myproject/locations/us/dataExchanges/123`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticshub.googleapis.com/DataExchange" + } + ]; + + // Optional. The maximum number of results to return in a single response + // page. Leverage the page tokens to iterate through the entire collection. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Page token, returned by a previous call, to request the next page + // of results. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message for response to the list of QueryTemplates. +message ListQueryTemplatesResponse { + // The list of QueryTemplates. + repeated QueryTemplate query_templates = 1; + + // A token to request the next page of results. + string next_page_token = 2; +} + +// Message for updating a QueryTemplate. +message UpdateQueryTemplateRequest { + // Optional. Field mask specifies the fields to update in the query template + // resource. The fields specified in the `updateMask` are relative to the + // resource and are not a full request. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. The QueryTemplate to update. + QueryTemplate query_template = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Message for deleting a QueryTemplate. +message DeleteQueryTemplateRequest { + // Required. The resource path of the QueryTemplate. + // e.g. + // `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticshub.googleapis.com/QueryTemplate" + } + ]; +} + +// Message for submitting a QueryTemplate. +message SubmitQueryTemplateRequest { + // Required. The resource path of the QueryTemplate. + // e.g. + // `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticshub.googleapis.com/QueryTemplate" + } + ]; +} + +// Message for approving a QueryTemplate. +message ApproveQueryTemplateRequest { + // Required. The resource path of the QueryTemplate. + // e.g. + // `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticshub.googleapis.com/QueryTemplate" + } + ]; +} + // Sharing environment is a behavior model for sharing data within a // data exchange. This option is configurable for a data exchange. message SharingEnvironmentConfig { @@ -494,6 +761,12 @@ message DestinationDataset { // https://cloud.google.com/bigquery/docs/locations for supported // locations. string location = 5 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The geographic locations where the dataset should be replicated. + // See [BigQuery locations](https://cloud.google.com/bigquery/docs/locations) + // for supported locations. + repeated string replica_locations = 6 + [(google.api.field_behavior) = OPTIONAL]; } // Defines the destination Pub/Sub subscription. @@ -566,6 +839,48 @@ message Listing { [(google.api.field_behavior) = OPTIONAL]; } + // Represents the state of a replica of a shared dataset. + // It includes the geographic location of the replica and + // system-computed, output-only fields indicating its replication state and + // whether it is the primary replica. + message Replica { + // Replica state of the shared dataset. + enum ReplicaState { + // Default value. This value is unused. + REPLICA_STATE_UNSPECIFIED = 0; + + // The replica is backfilled and ready to use. + READY_TO_USE = 1; + + // The replica is unavailable, does not exist, or has not been + // backfilled yet. + UNAVAILABLE = 2; + } + + // Primary state of the replica. Set only for the primary replica. + enum PrimaryState { + // Default value. This value is unused. + PRIMARY_STATE_UNSPECIFIED = 0; + + // The replica is the primary replica. + PRIMARY_REPLICA = 1; + } + + // Output only. The geographic location where the replica resides. See + // [BigQuery locations](https://cloud.google.com/bigquery/docs/locations) + // for supported locations. Eg. "us-central1". + string location = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Assigned by Analytics Hub based on real BigQuery + // replication state. + ReplicaState replica_state = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Indicates that this replica is the primary replica. + optional PrimaryState primary_state = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + // Optional. Resource name of the dataset source for this listing. // e.g. `projects/myproject/datasets/123` string dataset = 1 [ @@ -584,6 +899,18 @@ message Listing { // enforced on the linked dataset. RestrictedExportPolicy restricted_export_policy = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A list of regions where the publisher has created shared + // dataset replicas. + repeated string replica_locations = 5 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Server-owned effective state of replicas. + // Contains both primary and secondary replicas. + // Each replica includes a system-computed (output-only) state and primary + // designation. + repeated Replica effective_replicas = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Pub/Sub topic source. @@ -707,6 +1034,8 @@ message Listing { CATEGORY_TRANSPORTATION_AND_LOGISTICS = 18; CATEGORY_TRAVEL_AND_TOURISM = 19; + + CATEGORY_GOOGLE_EARTH_ENGINE = 20; } // Listing source. @@ -754,7 +1083,7 @@ message Listing { // Optional. Details of the data provider who owns the source data. DataProvider data_provider = 9 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Categories of the listing. Up to two categories are allowed. + // Optional. Categories of the listing. Up to five categories are allowed. repeated Category categories = 10 [(google.api.field_behavior) = OPTIONAL]; // Optional. Details of the publisher who owns the listing and who can share diff --git a/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/approvequerytemplate/AsyncApproveQueryTemplate.java b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/approvequerytemplate/AsyncApproveQueryTemplate.java new file mode 100644 index 000000000000..df3259b30edb --- /dev/null +++ b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/approvequerytemplate/AsyncApproveQueryTemplate.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.bigquery.analyticshub.v1.samples; + +// [START analyticshub_v1_generated_AnalyticsHubService_ApproveQueryTemplate_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient; +import com.google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest; +import com.google.cloud.bigquery.analyticshub.v1.QueryTemplate; +import com.google.cloud.bigquery.analyticshub.v1.QueryTemplateName; + +public class AsyncApproveQueryTemplate { + + public static void main(String[] args) throws Exception { + asyncApproveQueryTemplate(); + } + + public static void asyncApproveQueryTemplate() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) { + ApproveQueryTemplateRequest request = + ApproveQueryTemplateRequest.newBuilder() + .setName( + QueryTemplateName.of( + "[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]") + .toString()) + .build(); + ApiFuture future = + analyticsHubServiceClient.approveQueryTemplateCallable().futureCall(request); + // Do something. + QueryTemplate response = future.get(); + } + } +} +// [END analyticshub_v1_generated_AnalyticsHubService_ApproveQueryTemplate_async] diff --git a/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/approvequerytemplate/SyncApproveQueryTemplate.java b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/approvequerytemplate/SyncApproveQueryTemplate.java new file mode 100644 index 000000000000..512e6a177e4f --- /dev/null +++ b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/approvequerytemplate/SyncApproveQueryTemplate.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.bigquery.analyticshub.v1.samples; + +// [START analyticshub_v1_generated_AnalyticsHubService_ApproveQueryTemplate_sync] +import com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient; +import com.google.cloud.bigquery.analyticshub.v1.ApproveQueryTemplateRequest; +import com.google.cloud.bigquery.analyticshub.v1.QueryTemplate; +import com.google.cloud.bigquery.analyticshub.v1.QueryTemplateName; + +public class SyncApproveQueryTemplate { + + public static void main(String[] args) throws Exception { + syncApproveQueryTemplate(); + } + + public static void syncApproveQueryTemplate() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) { + ApproveQueryTemplateRequest request = + ApproveQueryTemplateRequest.newBuilder() + .setName( + QueryTemplateName.of( + "[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]") + .toString()) + .build(); + QueryTemplate response = analyticsHubServiceClient.approveQueryTemplate(request); + } + } +} +// [END analyticshub_v1_generated_AnalyticsHubService_ApproveQueryTemplate_sync] diff --git a/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/approvequerytemplate/SyncApproveQueryTemplateQuerytemplatename.java b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/approvequerytemplate/SyncApproveQueryTemplateQuerytemplatename.java new file mode 100644 index 000000000000..20368e4af212 --- /dev/null +++ b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/approvequerytemplate/SyncApproveQueryTemplateQuerytemplatename.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.bigquery.analyticshub.v1.samples; + +// [START analyticshub_v1_generated_AnalyticsHubService_ApproveQueryTemplate_Querytemplatename_sync] +import com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient; +import com.google.cloud.bigquery.analyticshub.v1.QueryTemplate; +import com.google.cloud.bigquery.analyticshub.v1.QueryTemplateName; + +public class SyncApproveQueryTemplateQuerytemplatename { + + public static void main(String[] args) throws Exception { + syncApproveQueryTemplateQuerytemplatename(); + } + + public static void syncApproveQueryTemplateQuerytemplatename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) { + QueryTemplateName name = + QueryTemplateName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]"); + QueryTemplate response = analyticsHubServiceClient.approveQueryTemplate(name); + } + } +} +// [END analyticshub_v1_generated_AnalyticsHubService_ApproveQueryTemplate_Querytemplatename_sync] diff --git a/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/approvequerytemplate/SyncApproveQueryTemplateString.java b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/approvequerytemplate/SyncApproveQueryTemplateString.java new file mode 100644 index 000000000000..f7659753822a --- /dev/null +++ b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/approvequerytemplate/SyncApproveQueryTemplateString.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.bigquery.analyticshub.v1.samples; + +// [START analyticshub_v1_generated_AnalyticsHubService_ApproveQueryTemplate_String_sync] +import com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient; +import com.google.cloud.bigquery.analyticshub.v1.QueryTemplate; +import com.google.cloud.bigquery.analyticshub.v1.QueryTemplateName; + +public class SyncApproveQueryTemplateString { + + public static void main(String[] args) throws Exception { + syncApproveQueryTemplateString(); + } + + public static void syncApproveQueryTemplateString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) { + String name = + QueryTemplateName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]") + .toString(); + QueryTemplate response = analyticsHubServiceClient.approveQueryTemplate(name); + } + } +} +// [END analyticshub_v1_generated_AnalyticsHubService_ApproveQueryTemplate_String_sync] diff --git a/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/createquerytemplate/AsyncCreateQueryTemplate.java b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/createquerytemplate/AsyncCreateQueryTemplate.java new file mode 100644 index 000000000000..9376c587d8c9 --- /dev/null +++ b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/createquerytemplate/AsyncCreateQueryTemplate.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.bigquery.analyticshub.v1.samples; + +// [START analyticshub_v1_generated_AnalyticsHubService_CreateQueryTemplate_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient; +import com.google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest; +import com.google.cloud.bigquery.analyticshub.v1.DataExchangeName; +import com.google.cloud.bigquery.analyticshub.v1.QueryTemplate; + +public class AsyncCreateQueryTemplate { + + public static void main(String[] args) throws Exception { + asyncCreateQueryTemplate(); + } + + public static void asyncCreateQueryTemplate() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) { + CreateQueryTemplateRequest request = + CreateQueryTemplateRequest.newBuilder() + .setParent( + DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]").toString()) + .setQueryTemplateId("queryTemplateId-1884800483") + .setQueryTemplate(QueryTemplate.newBuilder().build()) + .build(); + ApiFuture future = + analyticsHubServiceClient.createQueryTemplateCallable().futureCall(request); + // Do something. + QueryTemplate response = future.get(); + } + } +} +// [END analyticshub_v1_generated_AnalyticsHubService_CreateQueryTemplate_async] diff --git a/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/createquerytemplate/SyncCreateQueryTemplate.java b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/createquerytemplate/SyncCreateQueryTemplate.java new file mode 100644 index 000000000000..0f5cfd85149e --- /dev/null +++ b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/createquerytemplate/SyncCreateQueryTemplate.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.bigquery.analyticshub.v1.samples; + +// [START analyticshub_v1_generated_AnalyticsHubService_CreateQueryTemplate_sync] +import com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient; +import com.google.cloud.bigquery.analyticshub.v1.CreateQueryTemplateRequest; +import com.google.cloud.bigquery.analyticshub.v1.DataExchangeName; +import com.google.cloud.bigquery.analyticshub.v1.QueryTemplate; + +public class SyncCreateQueryTemplate { + + public static void main(String[] args) throws Exception { + syncCreateQueryTemplate(); + } + + public static void syncCreateQueryTemplate() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) { + CreateQueryTemplateRequest request = + CreateQueryTemplateRequest.newBuilder() + .setParent( + DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]").toString()) + .setQueryTemplateId("queryTemplateId-1884800483") + .setQueryTemplate(QueryTemplate.newBuilder().build()) + .build(); + QueryTemplate response = analyticsHubServiceClient.createQueryTemplate(request); + } + } +} +// [END analyticshub_v1_generated_AnalyticsHubService_CreateQueryTemplate_sync] diff --git a/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/createquerytemplate/SyncCreateQueryTemplateDataexchangenameQuerytemplateString.java b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/createquerytemplate/SyncCreateQueryTemplateDataexchangenameQuerytemplateString.java new file mode 100644 index 000000000000..8e9fc55213ef --- /dev/null +++ b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/createquerytemplate/SyncCreateQueryTemplateDataexchangenameQuerytemplateString.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.bigquery.analyticshub.v1.samples; + +// [START analyticshub_v1_generated_AnalyticsHubService_CreateQueryTemplate_DataexchangenameQuerytemplateString_sync] +import com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient; +import com.google.cloud.bigquery.analyticshub.v1.DataExchangeName; +import com.google.cloud.bigquery.analyticshub.v1.QueryTemplate; + +public class SyncCreateQueryTemplateDataexchangenameQuerytemplateString { + + public static void main(String[] args) throws Exception { + syncCreateQueryTemplateDataexchangenameQuerytemplateString(); + } + + public static void syncCreateQueryTemplateDataexchangenameQuerytemplateString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) { + DataExchangeName parent = DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]"); + QueryTemplate queryTemplate = QueryTemplate.newBuilder().build(); + String queryTemplateId = "queryTemplateId-1884800483"; + QueryTemplate response = + analyticsHubServiceClient.createQueryTemplate(parent, queryTemplate, queryTemplateId); + } + } +} +// [END analyticshub_v1_generated_AnalyticsHubService_CreateQueryTemplate_DataexchangenameQuerytemplateString_sync] diff --git a/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/createquerytemplate/SyncCreateQueryTemplateStringQuerytemplateString.java b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/createquerytemplate/SyncCreateQueryTemplateStringQuerytemplateString.java new file mode 100644 index 000000000000..9cb13add29a1 --- /dev/null +++ b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/createquerytemplate/SyncCreateQueryTemplateStringQuerytemplateString.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.bigquery.analyticshub.v1.samples; + +// [START analyticshub_v1_generated_AnalyticsHubService_CreateQueryTemplate_StringQuerytemplateString_sync] +import com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient; +import com.google.cloud.bigquery.analyticshub.v1.DataExchangeName; +import com.google.cloud.bigquery.analyticshub.v1.QueryTemplate; + +public class SyncCreateQueryTemplateStringQuerytemplateString { + + public static void main(String[] args) throws Exception { + syncCreateQueryTemplateStringQuerytemplateString(); + } + + public static void syncCreateQueryTemplateStringQuerytemplateString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) { + String parent = DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]").toString(); + QueryTemplate queryTemplate = QueryTemplate.newBuilder().build(); + String queryTemplateId = "queryTemplateId-1884800483"; + QueryTemplate response = + analyticsHubServiceClient.createQueryTemplate(parent, queryTemplate, queryTemplateId); + } + } +} +// [END analyticshub_v1_generated_AnalyticsHubService_CreateQueryTemplate_StringQuerytemplateString_sync] diff --git a/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/deletequerytemplate/AsyncDeleteQueryTemplate.java b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/deletequerytemplate/AsyncDeleteQueryTemplate.java new file mode 100644 index 000000000000..8a0d0c0e3a0c --- /dev/null +++ b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/deletequerytemplate/AsyncDeleteQueryTemplate.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.bigquery.analyticshub.v1.samples; + +// [START analyticshub_v1_generated_AnalyticsHubService_DeleteQueryTemplate_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient; +import com.google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest; +import com.google.cloud.bigquery.analyticshub.v1.QueryTemplateName; +import com.google.protobuf.Empty; + +public class AsyncDeleteQueryTemplate { + + public static void main(String[] args) throws Exception { + asyncDeleteQueryTemplate(); + } + + public static void asyncDeleteQueryTemplate() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) { + DeleteQueryTemplateRequest request = + DeleteQueryTemplateRequest.newBuilder() + .setName( + QueryTemplateName.of( + "[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]") + .toString()) + .build(); + ApiFuture future = + analyticsHubServiceClient.deleteQueryTemplateCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END analyticshub_v1_generated_AnalyticsHubService_DeleteQueryTemplate_async] diff --git a/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/deletequerytemplate/SyncDeleteQueryTemplate.java b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/deletequerytemplate/SyncDeleteQueryTemplate.java new file mode 100644 index 000000000000..220d2f468774 --- /dev/null +++ b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/deletequerytemplate/SyncDeleteQueryTemplate.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.bigquery.analyticshub.v1.samples; + +// [START analyticshub_v1_generated_AnalyticsHubService_DeleteQueryTemplate_sync] +import com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient; +import com.google.cloud.bigquery.analyticshub.v1.DeleteQueryTemplateRequest; +import com.google.cloud.bigquery.analyticshub.v1.QueryTemplateName; +import com.google.protobuf.Empty; + +public class SyncDeleteQueryTemplate { + + public static void main(String[] args) throws Exception { + syncDeleteQueryTemplate(); + } + + public static void syncDeleteQueryTemplate() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) { + DeleteQueryTemplateRequest request = + DeleteQueryTemplateRequest.newBuilder() + .setName( + QueryTemplateName.of( + "[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]") + .toString()) + .build(); + analyticsHubServiceClient.deleteQueryTemplate(request); + } + } +} +// [END analyticshub_v1_generated_AnalyticsHubService_DeleteQueryTemplate_sync] diff --git a/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/deletequerytemplate/SyncDeleteQueryTemplateQuerytemplatename.java b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/deletequerytemplate/SyncDeleteQueryTemplateQuerytemplatename.java new file mode 100644 index 000000000000..dbc3b32834f0 --- /dev/null +++ b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/deletequerytemplate/SyncDeleteQueryTemplateQuerytemplatename.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.bigquery.analyticshub.v1.samples; + +// [START analyticshub_v1_generated_AnalyticsHubService_DeleteQueryTemplate_Querytemplatename_sync] +import com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient; +import com.google.cloud.bigquery.analyticshub.v1.QueryTemplateName; +import com.google.protobuf.Empty; + +public class SyncDeleteQueryTemplateQuerytemplatename { + + public static void main(String[] args) throws Exception { + syncDeleteQueryTemplateQuerytemplatename(); + } + + public static void syncDeleteQueryTemplateQuerytemplatename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) { + QueryTemplateName name = + QueryTemplateName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]"); + analyticsHubServiceClient.deleteQueryTemplate(name); + } + } +} +// [END analyticshub_v1_generated_AnalyticsHubService_DeleteQueryTemplate_Querytemplatename_sync] diff --git a/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/deletequerytemplate/SyncDeleteQueryTemplateString.java b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/deletequerytemplate/SyncDeleteQueryTemplateString.java new file mode 100644 index 000000000000..ab44139eaa4c --- /dev/null +++ b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/deletequerytemplate/SyncDeleteQueryTemplateString.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.bigquery.analyticshub.v1.samples; + +// [START analyticshub_v1_generated_AnalyticsHubService_DeleteQueryTemplate_String_sync] +import com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient; +import com.google.cloud.bigquery.analyticshub.v1.QueryTemplateName; +import com.google.protobuf.Empty; + +public class SyncDeleteQueryTemplateString { + + public static void main(String[] args) throws Exception { + syncDeleteQueryTemplateString(); + } + + public static void syncDeleteQueryTemplateString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) { + String name = + QueryTemplateName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]") + .toString(); + analyticsHubServiceClient.deleteQueryTemplate(name); + } + } +} +// [END analyticshub_v1_generated_AnalyticsHubService_DeleteQueryTemplate_String_sync] diff --git a/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/getquerytemplate/AsyncGetQueryTemplate.java b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/getquerytemplate/AsyncGetQueryTemplate.java new file mode 100644 index 000000000000..c04f48355932 --- /dev/null +++ b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/getquerytemplate/AsyncGetQueryTemplate.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.bigquery.analyticshub.v1.samples; + +// [START analyticshub_v1_generated_AnalyticsHubService_GetQueryTemplate_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient; +import com.google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest; +import com.google.cloud.bigquery.analyticshub.v1.QueryTemplate; +import com.google.cloud.bigquery.analyticshub.v1.QueryTemplateName; + +public class AsyncGetQueryTemplate { + + public static void main(String[] args) throws Exception { + asyncGetQueryTemplate(); + } + + public static void asyncGetQueryTemplate() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) { + GetQueryTemplateRequest request = + GetQueryTemplateRequest.newBuilder() + .setName( + QueryTemplateName.of( + "[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]") + .toString()) + .build(); + ApiFuture future = + analyticsHubServiceClient.getQueryTemplateCallable().futureCall(request); + // Do something. + QueryTemplate response = future.get(); + } + } +} +// [END analyticshub_v1_generated_AnalyticsHubService_GetQueryTemplate_async] diff --git a/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/getquerytemplate/SyncGetQueryTemplate.java b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/getquerytemplate/SyncGetQueryTemplate.java new file mode 100644 index 000000000000..3906978fb602 --- /dev/null +++ b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/getquerytemplate/SyncGetQueryTemplate.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.bigquery.analyticshub.v1.samples; + +// [START analyticshub_v1_generated_AnalyticsHubService_GetQueryTemplate_sync] +import com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient; +import com.google.cloud.bigquery.analyticshub.v1.GetQueryTemplateRequest; +import com.google.cloud.bigquery.analyticshub.v1.QueryTemplate; +import com.google.cloud.bigquery.analyticshub.v1.QueryTemplateName; + +public class SyncGetQueryTemplate { + + public static void main(String[] args) throws Exception { + syncGetQueryTemplate(); + } + + public static void syncGetQueryTemplate() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) { + GetQueryTemplateRequest request = + GetQueryTemplateRequest.newBuilder() + .setName( + QueryTemplateName.of( + "[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]") + .toString()) + .build(); + QueryTemplate response = analyticsHubServiceClient.getQueryTemplate(request); + } + } +} +// [END analyticshub_v1_generated_AnalyticsHubService_GetQueryTemplate_sync] diff --git a/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/getquerytemplate/SyncGetQueryTemplateQuerytemplatename.java b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/getquerytemplate/SyncGetQueryTemplateQuerytemplatename.java new file mode 100644 index 000000000000..c5a8c176e1bb --- /dev/null +++ b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/getquerytemplate/SyncGetQueryTemplateQuerytemplatename.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.bigquery.analyticshub.v1.samples; + +// [START analyticshub_v1_generated_AnalyticsHubService_GetQueryTemplate_Querytemplatename_sync] +import com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient; +import com.google.cloud.bigquery.analyticshub.v1.QueryTemplate; +import com.google.cloud.bigquery.analyticshub.v1.QueryTemplateName; + +public class SyncGetQueryTemplateQuerytemplatename { + + public static void main(String[] args) throws Exception { + syncGetQueryTemplateQuerytemplatename(); + } + + public static void syncGetQueryTemplateQuerytemplatename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) { + QueryTemplateName name = + QueryTemplateName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]"); + QueryTemplate response = analyticsHubServiceClient.getQueryTemplate(name); + } + } +} +// [END analyticshub_v1_generated_AnalyticsHubService_GetQueryTemplate_Querytemplatename_sync] diff --git a/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/getquerytemplate/SyncGetQueryTemplateString.java b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/getquerytemplate/SyncGetQueryTemplateString.java new file mode 100644 index 000000000000..b7b56ddca883 --- /dev/null +++ b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/getquerytemplate/SyncGetQueryTemplateString.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.bigquery.analyticshub.v1.samples; + +// [START analyticshub_v1_generated_AnalyticsHubService_GetQueryTemplate_String_sync] +import com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient; +import com.google.cloud.bigquery.analyticshub.v1.QueryTemplate; +import com.google.cloud.bigquery.analyticshub.v1.QueryTemplateName; + +public class SyncGetQueryTemplateString { + + public static void main(String[] args) throws Exception { + syncGetQueryTemplateString(); + } + + public static void syncGetQueryTemplateString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) { + String name = + QueryTemplateName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]") + .toString(); + QueryTemplate response = analyticsHubServiceClient.getQueryTemplate(name); + } + } +} +// [END analyticshub_v1_generated_AnalyticsHubService_GetQueryTemplate_String_sync] diff --git a/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/listquerytemplates/AsyncListQueryTemplates.java b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/listquerytemplates/AsyncListQueryTemplates.java new file mode 100644 index 000000000000..39ccc6fefc47 --- /dev/null +++ b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/listquerytemplates/AsyncListQueryTemplates.java @@ -0,0 +1,55 @@ +/* + * 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.bigquery.analyticshub.v1.samples; + +// [START analyticshub_v1_generated_AnalyticsHubService_ListQueryTemplates_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient; +import com.google.cloud.bigquery.analyticshub.v1.DataExchangeName; +import com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest; +import com.google.cloud.bigquery.analyticshub.v1.QueryTemplate; + +public class AsyncListQueryTemplates { + + public static void main(String[] args) throws Exception { + asyncListQueryTemplates(); + } + + public static void asyncListQueryTemplates() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) { + ListQueryTemplatesRequest request = + ListQueryTemplatesRequest.newBuilder() + .setParent( + DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + analyticsHubServiceClient.listQueryTemplatesPagedCallable().futureCall(request); + // Do something. + for (QueryTemplate element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END analyticshub_v1_generated_AnalyticsHubService_ListQueryTemplates_async] diff --git a/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/listquerytemplates/AsyncListQueryTemplatesPaged.java b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/listquerytemplates/AsyncListQueryTemplatesPaged.java new file mode 100644 index 000000000000..802de3f0525e --- /dev/null +++ b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/listquerytemplates/AsyncListQueryTemplatesPaged.java @@ -0,0 +1,63 @@ +/* + * 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.bigquery.analyticshub.v1.samples; + +// [START analyticshub_v1_generated_AnalyticsHubService_ListQueryTemplates_Paged_async] +import com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient; +import com.google.cloud.bigquery.analyticshub.v1.DataExchangeName; +import com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest; +import com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse; +import com.google.cloud.bigquery.analyticshub.v1.QueryTemplate; +import com.google.common.base.Strings; + +public class AsyncListQueryTemplatesPaged { + + public static void main(String[] args) throws Exception { + asyncListQueryTemplatesPaged(); + } + + public static void asyncListQueryTemplatesPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) { + ListQueryTemplatesRequest request = + ListQueryTemplatesRequest.newBuilder() + .setParent( + DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListQueryTemplatesResponse response = + analyticsHubServiceClient.listQueryTemplatesCallable().call(request); + for (QueryTemplate element : response.getQueryTemplatesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END analyticshub_v1_generated_AnalyticsHubService_ListQueryTemplates_Paged_async] diff --git a/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/listquerytemplates/SyncListQueryTemplates.java b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/listquerytemplates/SyncListQueryTemplates.java new file mode 100644 index 000000000000..fe5dd0f05068 --- /dev/null +++ b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/listquerytemplates/SyncListQueryTemplates.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.bigquery.analyticshub.v1.samples; + +// [START analyticshub_v1_generated_AnalyticsHubService_ListQueryTemplates_sync] +import com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient; +import com.google.cloud.bigquery.analyticshub.v1.DataExchangeName; +import com.google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesRequest; +import com.google.cloud.bigquery.analyticshub.v1.QueryTemplate; + +public class SyncListQueryTemplates { + + public static void main(String[] args) throws Exception { + syncListQueryTemplates(); + } + + public static void syncListQueryTemplates() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) { + ListQueryTemplatesRequest request = + ListQueryTemplatesRequest.newBuilder() + .setParent( + DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (QueryTemplate element : + analyticsHubServiceClient.listQueryTemplates(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END analyticshub_v1_generated_AnalyticsHubService_ListQueryTemplates_sync] diff --git a/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/listquerytemplates/SyncListQueryTemplatesDataexchangename.java b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/listquerytemplates/SyncListQueryTemplatesDataexchangename.java new file mode 100644 index 000000000000..7c283a70d6f0 --- /dev/null +++ b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/listquerytemplates/SyncListQueryTemplatesDataexchangename.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.bigquery.analyticshub.v1.samples; + +// [START analyticshub_v1_generated_AnalyticsHubService_ListQueryTemplates_Dataexchangename_sync] +import com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient; +import com.google.cloud.bigquery.analyticshub.v1.DataExchangeName; +import com.google.cloud.bigquery.analyticshub.v1.QueryTemplate; + +public class SyncListQueryTemplatesDataexchangename { + + public static void main(String[] args) throws Exception { + syncListQueryTemplatesDataexchangename(); + } + + public static void syncListQueryTemplatesDataexchangename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) { + DataExchangeName parent = DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]"); + for (QueryTemplate element : + analyticsHubServiceClient.listQueryTemplates(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END analyticshub_v1_generated_AnalyticsHubService_ListQueryTemplates_Dataexchangename_sync] diff --git a/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/listquerytemplates/SyncListQueryTemplatesString.java b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/listquerytemplates/SyncListQueryTemplatesString.java new file mode 100644 index 000000000000..bc1321b9fac6 --- /dev/null +++ b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/listquerytemplates/SyncListQueryTemplatesString.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.bigquery.analyticshub.v1.samples; + +// [START analyticshub_v1_generated_AnalyticsHubService_ListQueryTemplates_String_sync] +import com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient; +import com.google.cloud.bigquery.analyticshub.v1.DataExchangeName; +import com.google.cloud.bigquery.analyticshub.v1.QueryTemplate; + +public class SyncListQueryTemplatesString { + + public static void main(String[] args) throws Exception { + syncListQueryTemplatesString(); + } + + public static void syncListQueryTemplatesString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) { + String parent = DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]").toString(); + for (QueryTemplate element : + analyticsHubServiceClient.listQueryTemplates(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END analyticshub_v1_generated_AnalyticsHubService_ListQueryTemplates_String_sync] diff --git a/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/submitquerytemplate/AsyncSubmitQueryTemplate.java b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/submitquerytemplate/AsyncSubmitQueryTemplate.java new file mode 100644 index 000000000000..36c8e80dab46 --- /dev/null +++ b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/submitquerytemplate/AsyncSubmitQueryTemplate.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.bigquery.analyticshub.v1.samples; + +// [START analyticshub_v1_generated_AnalyticsHubService_SubmitQueryTemplate_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient; +import com.google.cloud.bigquery.analyticshub.v1.QueryTemplate; +import com.google.cloud.bigquery.analyticshub.v1.QueryTemplateName; +import com.google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest; + +public class AsyncSubmitQueryTemplate { + + public static void main(String[] args) throws Exception { + asyncSubmitQueryTemplate(); + } + + public static void asyncSubmitQueryTemplate() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) { + SubmitQueryTemplateRequest request = + SubmitQueryTemplateRequest.newBuilder() + .setName( + QueryTemplateName.of( + "[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]") + .toString()) + .build(); + ApiFuture future = + analyticsHubServiceClient.submitQueryTemplateCallable().futureCall(request); + // Do something. + QueryTemplate response = future.get(); + } + } +} +// [END analyticshub_v1_generated_AnalyticsHubService_SubmitQueryTemplate_async] diff --git a/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/submitquerytemplate/SyncSubmitQueryTemplate.java b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/submitquerytemplate/SyncSubmitQueryTemplate.java new file mode 100644 index 000000000000..607391519cb4 --- /dev/null +++ b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/submitquerytemplate/SyncSubmitQueryTemplate.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.bigquery.analyticshub.v1.samples; + +// [START analyticshub_v1_generated_AnalyticsHubService_SubmitQueryTemplate_sync] +import com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient; +import com.google.cloud.bigquery.analyticshub.v1.QueryTemplate; +import com.google.cloud.bigquery.analyticshub.v1.QueryTemplateName; +import com.google.cloud.bigquery.analyticshub.v1.SubmitQueryTemplateRequest; + +public class SyncSubmitQueryTemplate { + + public static void main(String[] args) throws Exception { + syncSubmitQueryTemplate(); + } + + public static void syncSubmitQueryTemplate() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) { + SubmitQueryTemplateRequest request = + SubmitQueryTemplateRequest.newBuilder() + .setName( + QueryTemplateName.of( + "[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]") + .toString()) + .build(); + QueryTemplate response = analyticsHubServiceClient.submitQueryTemplate(request); + } + } +} +// [END analyticshub_v1_generated_AnalyticsHubService_SubmitQueryTemplate_sync] diff --git a/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/submitquerytemplate/SyncSubmitQueryTemplateQuerytemplatename.java b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/submitquerytemplate/SyncSubmitQueryTemplateQuerytemplatename.java new file mode 100644 index 000000000000..71b41a7d513c --- /dev/null +++ b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/submitquerytemplate/SyncSubmitQueryTemplateQuerytemplatename.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.bigquery.analyticshub.v1.samples; + +// [START analyticshub_v1_generated_AnalyticsHubService_SubmitQueryTemplate_Querytemplatename_sync] +import com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient; +import com.google.cloud.bigquery.analyticshub.v1.QueryTemplate; +import com.google.cloud.bigquery.analyticshub.v1.QueryTemplateName; + +public class SyncSubmitQueryTemplateQuerytemplatename { + + public static void main(String[] args) throws Exception { + syncSubmitQueryTemplateQuerytemplatename(); + } + + public static void syncSubmitQueryTemplateQuerytemplatename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) { + QueryTemplateName name = + QueryTemplateName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]"); + QueryTemplate response = analyticsHubServiceClient.submitQueryTemplate(name); + } + } +} +// [END analyticshub_v1_generated_AnalyticsHubService_SubmitQueryTemplate_Querytemplatename_sync] diff --git a/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/submitquerytemplate/SyncSubmitQueryTemplateString.java b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/submitquerytemplate/SyncSubmitQueryTemplateString.java new file mode 100644 index 000000000000..2f513f5129bd --- /dev/null +++ b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/submitquerytemplate/SyncSubmitQueryTemplateString.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.bigquery.analyticshub.v1.samples; + +// [START analyticshub_v1_generated_AnalyticsHubService_SubmitQueryTemplate_String_sync] +import com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient; +import com.google.cloud.bigquery.analyticshub.v1.QueryTemplate; +import com.google.cloud.bigquery.analyticshub.v1.QueryTemplateName; + +public class SyncSubmitQueryTemplateString { + + public static void main(String[] args) throws Exception { + syncSubmitQueryTemplateString(); + } + + public static void syncSubmitQueryTemplateString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) { + String name = + QueryTemplateName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[QUERY_TEMPLATE]") + .toString(); + QueryTemplate response = analyticsHubServiceClient.submitQueryTemplate(name); + } + } +} +// [END analyticshub_v1_generated_AnalyticsHubService_SubmitQueryTemplate_String_sync] diff --git a/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/updatequerytemplate/AsyncUpdateQueryTemplate.java b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/updatequerytemplate/AsyncUpdateQueryTemplate.java new file mode 100644 index 000000000000..b8b79f286913 --- /dev/null +++ b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/updatequerytemplate/AsyncUpdateQueryTemplate.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.bigquery.analyticshub.v1.samples; + +// [START analyticshub_v1_generated_AnalyticsHubService_UpdateQueryTemplate_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient; +import com.google.cloud.bigquery.analyticshub.v1.QueryTemplate; +import com.google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateQueryTemplate { + + public static void main(String[] args) throws Exception { + asyncUpdateQueryTemplate(); + } + + public static void asyncUpdateQueryTemplate() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) { + UpdateQueryTemplateRequest request = + UpdateQueryTemplateRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setQueryTemplate(QueryTemplate.newBuilder().build()) + .build(); + ApiFuture future = + analyticsHubServiceClient.updateQueryTemplateCallable().futureCall(request); + // Do something. + QueryTemplate response = future.get(); + } + } +} +// [END analyticshub_v1_generated_AnalyticsHubService_UpdateQueryTemplate_async] diff --git a/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/updatequerytemplate/SyncUpdateQueryTemplate.java b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/updatequerytemplate/SyncUpdateQueryTemplate.java new file mode 100644 index 000000000000..3324d9d9e610 --- /dev/null +++ b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/updatequerytemplate/SyncUpdateQueryTemplate.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.bigquery.analyticshub.v1.samples; + +// [START analyticshub_v1_generated_AnalyticsHubService_UpdateQueryTemplate_sync] +import com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient; +import com.google.cloud.bigquery.analyticshub.v1.QueryTemplate; +import com.google.cloud.bigquery.analyticshub.v1.UpdateQueryTemplateRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateQueryTemplate { + + public static void main(String[] args) throws Exception { + syncUpdateQueryTemplate(); + } + + public static void syncUpdateQueryTemplate() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) { + UpdateQueryTemplateRequest request = + UpdateQueryTemplateRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setQueryTemplate(QueryTemplate.newBuilder().build()) + .build(); + QueryTemplate response = analyticsHubServiceClient.updateQueryTemplate(request); + } + } +} +// [END analyticshub_v1_generated_AnalyticsHubService_UpdateQueryTemplate_sync] diff --git a/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/updatequerytemplate/SyncUpdateQueryTemplateQuerytemplateFieldmask.java b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/updatequerytemplate/SyncUpdateQueryTemplateQuerytemplateFieldmask.java new file mode 100644 index 000000000000..bb87b82b7d9f --- /dev/null +++ b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/updatequerytemplate/SyncUpdateQueryTemplateQuerytemplateFieldmask.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.bigquery.analyticshub.v1.samples; + +// [START analyticshub_v1_generated_AnalyticsHubService_UpdateQueryTemplate_QuerytemplateFieldmask_sync] +import com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient; +import com.google.cloud.bigquery.analyticshub.v1.QueryTemplate; +import com.google.protobuf.FieldMask; + +public class SyncUpdateQueryTemplateQuerytemplateFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateQueryTemplateQuerytemplateFieldmask(); + } + + public static void syncUpdateQueryTemplateQuerytemplateFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) { + QueryTemplate queryTemplate = QueryTemplate.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + QueryTemplate response = + analyticsHubServiceClient.updateQueryTemplate(queryTemplate, updateMask); + } + } +} +// [END analyticshub_v1_generated_AnalyticsHubService_UpdateQueryTemplate_QuerytemplateFieldmask_sync] diff --git a/java-api-gateway/README.md b/java-api-gateway/README.md index fadfdcd7e6e5..5fa5b63039f9 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.66.0 + 26.67.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.72.0 + 2.73.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-api-gateway:2.72.0' +implementation 'com.google.cloud:google-cloud-api-gateway:2.73.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-api-gateway" % "2.72.0" +libraryDependencies += "com.google.cloud" % "google-cloud-api-gateway" % "2.73.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.72.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-api-gateway/2.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-apigee-connect/README.md b/java-apigee-connect/README.md index 3348d30a6c84..fb56af0cca18 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.66.0 + 26.67.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.72.0 + 2.73.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apigee-connect:2.72.0' +implementation 'com.google.cloud:google-cloud-apigee-connect:2.73.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apigee-connect" % "2.72.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apigee-connect" % "2.73.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.72.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-connect/2.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-apigee-registry/README.md b/java-apigee-registry/README.md index 3be88993bcb0..85513fc95751 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.66.0 + 26.67.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.72.0 + 0.73.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apigee-registry:0.72.0' +implementation 'com.google.cloud:google-cloud-apigee-registry:0.73.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apigee-registry" % "0.72.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apigee-registry" % "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-apigee-registry.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-registry/0.72.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-registry/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-apihub/README.md b/java-apihub/README.md index b508486e3493..c447c4afd355 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.66.0 + 26.67.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.25.0 + 0.26.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apihub:0.25.0' +implementation 'com.google.cloud:google-cloud-apihub:0.26.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apihub" % "0.25.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apihub" % "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-apihub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apihub/0.25.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apihub/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-apikeys/README.md b/java-apikeys/README.md index 6773562bc03e..fbba32167f1a 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.66.0 + 26.67.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.70.0 + 0.71.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apikeys:0.70.0' +implementation 'com.google.cloud:google-cloud-apikeys:0.71.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apikeys" % "0.70.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apikeys" % "0.71.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.70.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apikeys/0.71.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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 e60ae02a5881..0727911d233e 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.66.0 + 26.67.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.72.0 + 2.73.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-appengine-admin:2.72.0' +implementation 'com.google.cloud:google-cloud-appengine-admin:2.73.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-appengine-admin" % "2.72.0" +libraryDependencies += "com.google.cloud" % "google-cloud-appengine-admin" % "2.73.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.72.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-appengine-admin/2.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-apphub/README.md b/java-apphub/README.md index 157d7f90eada..5bab212867ed 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.66.0 + 26.67.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.36.0 + 0.37.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apphub:0.36.0' +implementation 'com.google.cloud:google-cloud-apphub:0.37.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apphub" % "0.36.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apphub" % "0.37.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apphub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apphub/0.36.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apphub/0.37.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-area120-tables/README.md b/java-area120-tables/README.md index 0c253367129c..f933f2aea509 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.66.0 + 26.67.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.76.0 + 0.77.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.area120:google-area120-tables:0.76.0' +implementation 'com.google.area120:google-area120-tables:0.77.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.area120" % "google-area120-tables" % "0.76.0" +libraryDependencies += "com.google.area120" % "google-area120-tables" % "0.77.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.area120/google-area120-tables.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.area120/google-area120-tables/0.76.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.area120/google-area120-tables/0.77.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-artifact-registry/README.md b/java-artifact-registry/README.md index 3a83ffb53a52..b341043787f4 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.66.0 + 26.67.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.71.0 + 1.72.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-artifact-registry:1.71.0' +implementation 'com.google.cloud:google-cloud-artifact-registry:1.72.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-artifact-registry" % "1.71.0" +libraryDependencies += "com.google.cloud" % "google-cloud-artifact-registry" % "1.72.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-artifact-registry.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-artifact-registry/1.71.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-artifact-registry/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-asset/README.md b/java-asset/README.md index f577fcfb49fc..0fa347475dff 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.66.0 + 26.67.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.76.0 + 3.77.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-asset:3.76.0' +implementation 'com.google.cloud:google-cloud-asset:3.77.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-asset" % "3.76.0" +libraryDependencies += "com.google.cloud" % "google-cloud-asset" % "3.77.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-asset.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-asset/3.76.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-asset/3.77.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-assured-workloads/README.md b/java-assured-workloads/README.md index 67b5f8ec215e..bf0b97daff61 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.66.0 + 26.67.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.72.0 + 2.73.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-assured-workloads:2.72.0' +implementation 'com.google.cloud:google-cloud-assured-workloads:2.73.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-assured-workloads" % "2.72.0" +libraryDependencies += "com.google.cloud" % "google-cloud-assured-workloads" % "2.73.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.72.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-assured-workloads/2.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-automl/README.md b/java-automl/README.md index 1d5b1b5c7d6f..6ccd7c7579f6 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.66.0 + 26.67.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.72.0 + 2.73.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-automl:2.72.0' +implementation 'com.google.cloud:google-cloud-automl:2.73.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-automl" % "2.72.0" +libraryDependencies += "com.google.cloud" % "google-cloud-automl" % "2.73.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.72.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-automl/2.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-backupdr/README.md b/java-backupdr/README.md index fe5167005bb1..37d40fef7a25 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.66.0 + 26.67.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.31.0 + 0.32.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-backupdr:0.31.0' +implementation 'com.google.cloud:google-cloud-backupdr:0.32.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-backupdr" % "0.31.0" +libraryDependencies += "com.google.cloud" % "google-cloud-backupdr" % "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-backupdr.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-backupdr/0.31.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-backupdr/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-bare-metal-solution/README.md b/java-bare-metal-solution/README.md index 4756372b45df..a49e7a1e90d7 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.66.0 + 26.67.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.72.0 + 0.73.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bare-metal-solution:0.72.0' +implementation 'com.google.cloud:google-cloud-bare-metal-solution:0.73.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bare-metal-solution" % "0.72.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bare-metal-solution" % "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-bare-metal-solution.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bare-metal-solution/0.72.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bare-metal-solution/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-batch/README.md b/java-batch/README.md index c36407ecfa06..16a0700f4bc9 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.66.0 + 26.67.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.72.0 + 0.73.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-batch:0.72.0' +implementation 'com.google.cloud:google-cloud-batch:0.73.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-batch" % "0.72.0" +libraryDependencies += "com.google.cloud" % "google-cloud-batch" % "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-batch.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-batch/0.72.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-batch/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-beyondcorp-appconnections/README.md b/java-beyondcorp-appconnections/README.md index 317216bb6690..62e20abdcdb2 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.66.0 + 26.67.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.70.0 + 0.71.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-appconnections:0.70.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-appconnections:0.71.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnections" % "0.70.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnections" % "0.71.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.70.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnections/0.71.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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 fb09ed2485ce..e736de15abf3 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.66.0 + 26.67.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.70.0 + 0.71.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-appconnectors:0.70.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-appconnectors:0.71.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnectors" % "0.70.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnectors" % "0.71.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.70.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnectors/0.71.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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 d311c083f5cd..1b64fd6d6104 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.66.0 + 26.67.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.70.0 + 0.71.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-appgateways:0.70.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-appgateways:0.71.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appgateways" % "0.70.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appgateways" % "0.71.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.70.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appgateways/0.71.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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 6d5bde3c85a2..cf92d306701e 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.66.0 + 26.67.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.70.0 + 0.71.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-clientconnectorservices:0.70.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-clientconnectorservices:0.71.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientconnectorservices" % "0.70.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientconnectorservices" % "0.71.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.70.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientconnectorservices/0.71.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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 b61562d5293c..b10b9b608268 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.66.0 + 26.67.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.70.0 + 0.71.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-clientgateways:0.70.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-clientgateways:0.71.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientgateways" % "0.70.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientgateways" % "0.71.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.70.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientgateways/0.71.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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 ab0c82379567..177c27a22b72 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.66.0 + 26.67.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.60.0 + 0.61.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-biglake:0.60.0' +implementation 'com.google.cloud:google-cloud-biglake:0.61.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-biglake" % "0.60.0" +libraryDependencies += "com.google.cloud" % "google-cloud-biglake" % "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-biglake.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-biglake/0.60.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-biglake/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-bigquery-data-exchange/README.md b/java-bigquery-data-exchange/README.md index 713ed8a52ed6..65875658e10c 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.66.0 + 26.67.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.67.0 + 2.68.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquery-data-exchange:2.67.0' +implementation 'com.google.cloud:google-cloud-bigquery-data-exchange:2.68.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquery-data-exchange" % "2.67.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquery-data-exchange" % "2.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-bigquery-data-exchange.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery-data-exchange/2.67.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery-data-exchange/2.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-bigqueryconnection/README.md b/java-bigqueryconnection/README.md index f783441a1417..589b3dcfec64 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.66.0 + 26.67.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.74.0 + 2.75.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigqueryconnection:2.74.0' +implementation 'com.google.cloud:google-cloud-bigqueryconnection:2.75.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryconnection" % "2.74.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryconnection" % "2.75.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.74.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryconnection/2.75.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bigquerydatapolicy/README.md b/java-bigquerydatapolicy/README.md index 59bf1074ec07..3a43f98b8192 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.66.0 + 26.67.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.69.0 + 0.70.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquerydatapolicy:0.69.0' +implementation 'com.google.cloud:google-cloud-bigquerydatapolicy:0.70.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatapolicy" % "0.69.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatapolicy" % "0.70.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.69.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatapolicy/0.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-bigquerydatatransfer/README.md b/java-bigquerydatatransfer/README.md index ebc885815ea9..43ca2da44add 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.66.0 + 26.67.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.72.0 + 2.73.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquerydatatransfer:2.72.0' +implementation 'com.google.cloud:google-cloud-bigquerydatatransfer:2.73.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatatransfer" % "2.72.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatatransfer" % "2.73.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.72.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatatransfer/2.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-bigquerymigration/README.md b/java-bigquerymigration/README.md index 4a6364feeed1..4c21d6c002f9 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.66.0 + 26.67.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.75.0 + 0.76.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquerymigration:0.75.0' +implementation 'com.google.cloud:google-cloud-bigquerymigration:0.76.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerymigration" % "0.75.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerymigration" % "0.76.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquerymigration.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerymigration/0.75.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerymigration/0.76.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bigqueryreservation/README.md b/java-bigqueryreservation/README.md index 6f7d6bcd800d..f89c315445d1 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.66.0 + 26.67.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.73.0 + 2.74.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigqueryreservation:2.73.0' +implementation 'com.google.cloud:google-cloud-bigqueryreservation:2.74.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryreservation" % "2.73.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryreservation" % "2.74.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.73.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryreservation/2.74.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceClient.java b/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceClient.java index 9cd8ebd3e24b..6e336bbb4789 100644 --- a/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceClient.java +++ b/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceClient.java @@ -1294,6 +1294,7 @@ public final UnaryCallable updateReservat * FailoverReservationRequest request = * FailoverReservationRequest.newBuilder() * .setName(ReservationName.of("[PROJECT]", "[LOCATION]", "[RESERVATION]").toString()) + * .setFailoverMode(FailoverMode.forNumber(0)) * .build(); * Reservation response = reservationServiceClient.failoverReservation(request); * } @@ -1325,6 +1326,7 @@ public final Reservation failoverReservation(FailoverReservationRequest request) * FailoverReservationRequest request = * FailoverReservationRequest.newBuilder() * .setName(ReservationName.of("[PROJECT]", "[LOCATION]", "[RESERVATION]").toString()) + * .setFailoverMode(FailoverMode.forNumber(0)) * .build(); * ApiFuture future = * reservationServiceClient.failoverReservationCallable().futureCall(request); diff --git a/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.reservation.v1/reflect-config.json b/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.reservation.v1/reflect-config.json index 209a182c6b61..271a07f9496d 100644 --- a/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.reservation.v1/reflect-config.json +++ b/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.reservation.v1/reflect-config.json @@ -620,6 +620,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.bigquery.reservation.v1.FailoverMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.bigquery.reservation.v1.FailoverReservationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-bigqueryreservation/google-cloud-bigqueryreservation/src/test/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceClientHttpJsonTest.java b/java-bigqueryreservation/google-cloud-bigqueryreservation/src/test/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceClientHttpJsonTest.java index 967117989d5a..dbc5efc2ffa3 100644 --- a/java-bigqueryreservation/google-cloud-bigqueryreservation/src/test/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceClientHttpJsonTest.java +++ b/java-bigqueryreservation/google-cloud-bigqueryreservation/src/test/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceClientHttpJsonTest.java @@ -615,6 +615,7 @@ public void failoverReservationTest() throws Exception { FailoverReservationRequest request = FailoverReservationRequest.newBuilder() .setName(ReservationName.of("[PROJECT]", "[LOCATION]", "[RESERVATION]").toString()) + .setFailoverMode(FailoverMode.forNumber(0)) .build(); Reservation actualResponse = client.failoverReservation(request); @@ -646,6 +647,7 @@ public void failoverReservationExceptionTest() throws Exception { FailoverReservationRequest request = FailoverReservationRequest.newBuilder() .setName(ReservationName.of("[PROJECT]", "[LOCATION]", "[RESERVATION]").toString()) + .setFailoverMode(FailoverMode.forNumber(0)) .build(); client.failoverReservation(request); Assert.fail("No exception raised"); diff --git a/java-bigqueryreservation/google-cloud-bigqueryreservation/src/test/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceClientTest.java b/java-bigqueryreservation/google-cloud-bigqueryreservation/src/test/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceClientTest.java index 26512dc33eb3..24f8e8521cfc 100644 --- a/java-bigqueryreservation/google-cloud-bigqueryreservation/src/test/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceClientTest.java +++ b/java-bigqueryreservation/google-cloud-bigqueryreservation/src/test/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceClientTest.java @@ -537,6 +537,7 @@ public void failoverReservationTest() throws Exception { FailoverReservationRequest request = FailoverReservationRequest.newBuilder() .setName(ReservationName.of("[PROJECT]", "[LOCATION]", "[RESERVATION]").toString()) + .setFailoverMode(FailoverMode.forNumber(0)) .build(); Reservation actualResponse = client.failoverReservation(request); @@ -547,6 +548,7 @@ public void failoverReservationTest() throws Exception { FailoverReservationRequest actualRequest = ((FailoverReservationRequest) actualRequests.get(0)); Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFailoverMode(), actualRequest.getFailoverMode()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -562,6 +564,7 @@ public void failoverReservationExceptionTest() throws Exception { FailoverReservationRequest request = FailoverReservationRequest.newBuilder() .setName(ReservationName.of("[PROJECT]", "[LOCATION]", "[RESERVATION]").toString()) + .setFailoverMode(FailoverMode.forNumber(0)) .build(); client.failoverReservation(request); Assert.fail("No exception raised"); diff --git a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/FailoverMode.java b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/FailoverMode.java new file mode 100644 index 000000000000..586e15e58866 --- /dev/null +++ b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/FailoverMode.java @@ -0,0 +1,191 @@ +/* + * 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/bigquery/reservation/v1/reservation.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.bigquery.reservation.v1; + +/** + * + * + *
+ * The failover mode when a user initiates a failover on a reservation
+ * determines how writes that arepending replication are handled after the
+ * failover is initiated.
+ * 
+ * + * Protobuf enum {@code google.cloud.bigquery.reservation.v1.FailoverMode} + */ +public enum FailoverMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Invalid value.
+   * 
+ * + * FAILOVER_MODE_UNSPECIFIED = 0; + */ + FAILOVER_MODE_UNSPECIFIED(0), + /** + * + * + *
+   * When customers initiate a soft failover, BigQuery will wait until all
+   * committed writes are replicated to the secondary. This mode requires both
+   * regions to be available for the failover to succeed and prevents data loss.
+   * 
+ * + * SOFT = 1; + */ + SOFT(1), + /** + * + * + *
+   * When customers initiate a hard failover, BigQuery will not wait until all
+   * committed writes are replicated to the secondary. There can be data loss
+   * for hard failover.
+   * 
+ * + * HARD = 2; + */ + HARD(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Invalid value.
+   * 
+ * + * FAILOVER_MODE_UNSPECIFIED = 0; + */ + public static final int FAILOVER_MODE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+   * When customers initiate a soft failover, BigQuery will wait until all
+   * committed writes are replicated to the secondary. This mode requires both
+   * regions to be available for the failover to succeed and prevents data loss.
+   * 
+ * + * SOFT = 1; + */ + public static final int SOFT_VALUE = 1; + + /** + * + * + *
+   * When customers initiate a hard failover, BigQuery will not wait until all
+   * committed writes are replicated to the secondary. There can be data loss
+   * for hard failover.
+   * 
+ * + * HARD = 2; + */ + public static final int HARD_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 FailoverMode 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 FailoverMode forNumber(int value) { + switch (value) { + case 0: + return FAILOVER_MODE_UNSPECIFIED; + case 1: + return SOFT; + case 2: + return HARD; + 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 FailoverMode findValueByNumber(int number) { + return FailoverMode.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.reservation.v1.ReservationProto.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final FailoverMode[] VALUES = values(); + + public static FailoverMode 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 FailoverMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.bigquery.reservation.v1.FailoverMode) +} diff --git a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/FailoverReservationRequest.java b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/FailoverReservationRequest.java index 82f1a9e7804e..697b97ae2720 100644 --- a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/FailoverReservationRequest.java +++ b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/FailoverReservationRequest.java @@ -41,6 +41,7 @@ private FailoverReservationRequest(com.google.protobuf.GeneratedMessageV3.Builde private FailoverReservationRequest() { name_ = ""; + failoverMode_ = 0; } @java.lang.Override @@ -123,6 +124,53 @@ public com.google.protobuf.ByteString getNameBytes() { } } + public static final int FAILOVER_MODE_FIELD_NUMBER = 2; + private int failoverMode_ = 0; + + /** + * + * + *
+   * Optional. A parameter that determines how writes that are pending
+   * replication are handled after a failover is initiated. If not specified,
+   * HARD failover mode is used by default.
+   * 
+ * + * + * .google.cloud.bigquery.reservation.v1.FailoverMode failover_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for failoverMode. + */ + @java.lang.Override + public int getFailoverModeValue() { + return failoverMode_; + } + + /** + * + * + *
+   * Optional. A parameter that determines how writes that are pending
+   * replication are handled after a failover is initiated. If not specified,
+   * HARD failover mode is used by default.
+   * 
+ * + * + * .google.cloud.bigquery.reservation.v1.FailoverMode failover_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The failoverMode. + */ + @java.lang.Override + public com.google.cloud.bigquery.reservation.v1.FailoverMode getFailoverMode() { + com.google.cloud.bigquery.reservation.v1.FailoverMode result = + com.google.cloud.bigquery.reservation.v1.FailoverMode.forNumber(failoverMode_); + return result == null + ? com.google.cloud.bigquery.reservation.v1.FailoverMode.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -140,6 +188,11 @@ 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 (failoverMode_ + != com.google.cloud.bigquery.reservation.v1.FailoverMode.FAILOVER_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, failoverMode_); + } getUnknownFields().writeTo(output); } @@ -152,6 +205,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } + if (failoverMode_ + != com.google.cloud.bigquery.reservation.v1.FailoverMode.FAILOVER_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, failoverMode_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -169,6 +227,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.bigquery.reservation.v1.FailoverReservationRequest) obj; if (!getName().equals(other.getName())) return false; + if (failoverMode_ != other.failoverMode_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -182,6 +241,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + FAILOVER_MODE_FIELD_NUMBER; + hash = (53 * hash) + failoverMode_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -326,6 +387,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; + failoverMode_ = 0; return this; } @@ -368,6 +430,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.failoverMode_ = failoverMode_; + } } @java.lang.Override @@ -424,6 +489,9 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; onChanged(); } + if (other.failoverMode_ != 0) { + setFailoverModeValue(other.getFailoverModeValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -456,6 +524,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 + case 16: + { + failoverMode_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -601,6 +675,123 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } + private int failoverMode_ = 0; + + /** + * + * + *
+     * Optional. A parameter that determines how writes that are pending
+     * replication are handled after a failover is initiated. If not specified,
+     * HARD failover mode is used by default.
+     * 
+ * + * + * .google.cloud.bigquery.reservation.v1.FailoverMode failover_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for failoverMode. + */ + @java.lang.Override + public int getFailoverModeValue() { + return failoverMode_; + } + + /** + * + * + *
+     * Optional. A parameter that determines how writes that are pending
+     * replication are handled after a failover is initiated. If not specified,
+     * HARD failover mode is used by default.
+     * 
+ * + * + * .google.cloud.bigquery.reservation.v1.FailoverMode failover_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for failoverMode to set. + * @return This builder for chaining. + */ + public Builder setFailoverModeValue(int value) { + failoverMode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A parameter that determines how writes that are pending
+     * replication are handled after a failover is initiated. If not specified,
+     * HARD failover mode is used by default.
+     * 
+ * + * + * .google.cloud.bigquery.reservation.v1.FailoverMode failover_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The failoverMode. + */ + @java.lang.Override + public com.google.cloud.bigquery.reservation.v1.FailoverMode getFailoverMode() { + com.google.cloud.bigquery.reservation.v1.FailoverMode result = + com.google.cloud.bigquery.reservation.v1.FailoverMode.forNumber(failoverMode_); + return result == null + ? com.google.cloud.bigquery.reservation.v1.FailoverMode.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. A parameter that determines how writes that are pending
+     * replication are handled after a failover is initiated. If not specified,
+     * HARD failover mode is used by default.
+     * 
+ * + * + * .google.cloud.bigquery.reservation.v1.FailoverMode failover_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The failoverMode to set. + * @return This builder for chaining. + */ + public Builder setFailoverMode(com.google.cloud.bigquery.reservation.v1.FailoverMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + failoverMode_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A parameter that determines how writes that are pending
+     * replication are handled after a failover is initiated. If not specified,
+     * HARD failover mode is used by default.
+     * 
+ * + * + * .google.cloud.bigquery.reservation.v1.FailoverMode failover_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearFailoverMode() { + bitField0_ = (bitField0_ & ~0x00000002); + failoverMode_ = 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-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/FailoverReservationRequestOrBuilder.java b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/FailoverReservationRequestOrBuilder.java index 749734862c96..86c9765db5df 100644 --- a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/FailoverReservationRequestOrBuilder.java +++ b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/FailoverReservationRequestOrBuilder.java @@ -55,4 +55,38 @@ public interface FailoverReservationRequestOrBuilder * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. A parameter that determines how writes that are pending
+   * replication are handled after a failover is initiated. If not specified,
+   * HARD failover mode is used by default.
+   * 
+ * + * + * .google.cloud.bigquery.reservation.v1.FailoverMode failover_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for failoverMode. + */ + int getFailoverModeValue(); + + /** + * + * + *
+   * Optional. A parameter that determines how writes that are pending
+   * replication are handled after a failover is initiated. If not specified,
+   * HARD failover mode is used by default.
+   * 
+ * + * + * .google.cloud.bigquery.reservation.v1.FailoverMode failover_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The failoverMode. + */ + com.google.cloud.bigquery.reservation.v1.FailoverMode getFailoverMode(); } diff --git a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/Reservation.java b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/Reservation.java index 5170ebffa832..2ac5c267b0db 100644 --- a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/Reservation.java +++ b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/Reservation.java @@ -1160,6 +1160,61 @@ public interface ReplicationStatusOrBuilder *
*/ com.google.protobuf.TimestampOrBuilder getLastReplicationTimeOrBuilder(); + + /** + * + * + *
+     * Output only. The time at which a soft failover for the reservation and
+     * its associated datasets was initiated. After this field is set, all
+     * subsequent changes to the reservation will be rejected unless a hard
+     * failover overrides this operation. This field will be cleared once the
+     * failover is complete.
+     * 
+ * + * + * .google.protobuf.Timestamp soft_failover_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the softFailoverStartTime field is set. + */ + boolean hasSoftFailoverStartTime(); + + /** + * + * + *
+     * Output only. The time at which a soft failover for the reservation and
+     * its associated datasets was initiated. After this field is set, all
+     * subsequent changes to the reservation will be rejected unless a hard
+     * failover overrides this operation. This field will be cleared once the
+     * failover is complete.
+     * 
+ * + * + * .google.protobuf.Timestamp soft_failover_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The softFailoverStartTime. + */ + com.google.protobuf.Timestamp getSoftFailoverStartTime(); + + /** + * + * + *
+     * Output only. The time at which a soft failover for the reservation and
+     * its associated datasets was initiated. After this field is set, all
+     * subsequent changes to the reservation will be rejected unless a hard
+     * failover overrides this operation. This field will be cleared once the
+     * failover is complete.
+     * 
+ * + * + * .google.protobuf.Timestamp soft_failover_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getSoftFailoverStartTimeOrBuilder(); } /** @@ -1388,6 +1443,77 @@ public com.google.protobuf.TimestampOrBuilder getLastReplicationTimeOrBuilder() : lastReplicationTime_; } + public static final int SOFT_FAILOVER_START_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp softFailoverStartTime_; + + /** + * + * + *
+     * Output only. The time at which a soft failover for the reservation and
+     * its associated datasets was initiated. After this field is set, all
+     * subsequent changes to the reservation will be rejected unless a hard
+     * failover overrides this operation. This field will be cleared once the
+     * failover is complete.
+     * 
+ * + * + * .google.protobuf.Timestamp soft_failover_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the softFailoverStartTime field is set. + */ + @java.lang.Override + public boolean hasSoftFailoverStartTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Output only. The time at which a soft failover for the reservation and
+     * its associated datasets was initiated. After this field is set, all
+     * subsequent changes to the reservation will be rejected unless a hard
+     * failover overrides this operation. This field will be cleared once the
+     * failover is complete.
+     * 
+ * + * + * .google.protobuf.Timestamp soft_failover_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The softFailoverStartTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getSoftFailoverStartTime() { + return softFailoverStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : softFailoverStartTime_; + } + + /** + * + * + *
+     * Output only. The time at which a soft failover for the reservation and
+     * its associated datasets was initiated. After this field is set, all
+     * subsequent changes to the reservation will be rejected unless a hard
+     * failover overrides this operation. This field will be cleared once the
+     * failover is complete.
+     * 
+ * + * + * .google.protobuf.Timestamp soft_failover_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getSoftFailoverStartTimeOrBuilder() { + return softFailoverStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : softFailoverStartTime_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1411,6 +1537,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getLastReplicationTime()); } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(4, getSoftFailoverStartTime()); + } getUnknownFields().writeTo(output); } @@ -1430,6 +1559,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getLastReplicationTime()); } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSoftFailoverStartTime()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1459,6 +1592,10 @@ public boolean equals(final java.lang.Object obj) { if (hasLastReplicationTime()) { if (!getLastReplicationTime().equals(other.getLastReplicationTime())) return false; } + if (hasSoftFailoverStartTime() != other.hasSoftFailoverStartTime()) return false; + if (hasSoftFailoverStartTime()) { + if (!getSoftFailoverStartTime().equals(other.getSoftFailoverStartTime())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1482,6 +1619,10 @@ public int hashCode() { hash = (37 * hash) + LAST_REPLICATION_TIME_FIELD_NUMBER; hash = (53 * hash) + getLastReplicationTime().hashCode(); } + if (hasSoftFailoverStartTime()) { + hash = (37 * hash) + SOFT_FAILOVER_START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getSoftFailoverStartTime().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1632,6 +1773,7 @@ private void maybeForceBuilderInitialization() { getErrorFieldBuilder(); getLastErrorTimeFieldBuilder(); getLastReplicationTimeFieldBuilder(); + getSoftFailoverStartTimeFieldBuilder(); } } @@ -1654,6 +1796,11 @@ public Builder clear() { lastReplicationTimeBuilder_.dispose(); lastReplicationTimeBuilder_ = null; } + softFailoverStartTime_ = null; + if (softFailoverStartTimeBuilder_ != null) { + softFailoverStartTimeBuilder_.dispose(); + softFailoverStartTimeBuilder_ = null; + } return this; } @@ -1711,6 +1858,13 @@ private void buildPartial0( : lastReplicationTimeBuilder_.build(); to_bitField0_ |= 0x00000004; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.softFailoverStartTime_ = + softFailoverStartTimeBuilder_ == null + ? softFailoverStartTime_ + : softFailoverStartTimeBuilder_.build(); + to_bitField0_ |= 0x00000008; + } result.bitField0_ |= to_bitField0_; } @@ -1775,6 +1929,9 @@ public Builder mergeFrom( if (other.hasLastReplicationTime()) { mergeLastReplicationTime(other.getLastReplicationTime()); } + if (other.hasSoftFailoverStartTime()) { + mergeSoftFailoverStartTime(other.getSoftFailoverStartTime()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1820,6 +1977,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 34: + { + input.readMessage( + getSoftFailoverStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2493,6 +2657,255 @@ public com.google.protobuf.TimestampOrBuilder getLastReplicationTimeOrBuilder() return lastReplicationTimeBuilder_; } + private com.google.protobuf.Timestamp softFailoverStartTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + softFailoverStartTimeBuilder_; + + /** + * + * + *
+       * Output only. The time at which a soft failover for the reservation and
+       * its associated datasets was initiated. After this field is set, all
+       * subsequent changes to the reservation will be rejected unless a hard
+       * failover overrides this operation. This field will be cleared once the
+       * failover is complete.
+       * 
+ * + * + * .google.protobuf.Timestamp soft_failover_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the softFailoverStartTime field is set. + */ + public boolean hasSoftFailoverStartTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+       * Output only. The time at which a soft failover for the reservation and
+       * its associated datasets was initiated. After this field is set, all
+       * subsequent changes to the reservation will be rejected unless a hard
+       * failover overrides this operation. This field will be cleared once the
+       * failover is complete.
+       * 
+ * + * + * .google.protobuf.Timestamp soft_failover_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The softFailoverStartTime. + */ + public com.google.protobuf.Timestamp getSoftFailoverStartTime() { + if (softFailoverStartTimeBuilder_ == null) { + return softFailoverStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : softFailoverStartTime_; + } else { + return softFailoverStartTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Output only. The time at which a soft failover for the reservation and
+       * its associated datasets was initiated. After this field is set, all
+       * subsequent changes to the reservation will be rejected unless a hard
+       * failover overrides this operation. This field will be cleared once the
+       * failover is complete.
+       * 
+ * + * + * .google.protobuf.Timestamp soft_failover_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSoftFailoverStartTime(com.google.protobuf.Timestamp value) { + if (softFailoverStartTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + softFailoverStartTime_ = value; + } else { + softFailoverStartTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The time at which a soft failover for the reservation and
+       * its associated datasets was initiated. After this field is set, all
+       * subsequent changes to the reservation will be rejected unless a hard
+       * failover overrides this operation. This field will be cleared once the
+       * failover is complete.
+       * 
+ * + * + * .google.protobuf.Timestamp soft_failover_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSoftFailoverStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (softFailoverStartTimeBuilder_ == null) { + softFailoverStartTime_ = builderForValue.build(); + } else { + softFailoverStartTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The time at which a soft failover for the reservation and
+       * its associated datasets was initiated. After this field is set, all
+       * subsequent changes to the reservation will be rejected unless a hard
+       * failover overrides this operation. This field will be cleared once the
+       * failover is complete.
+       * 
+ * + * + * .google.protobuf.Timestamp soft_failover_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeSoftFailoverStartTime(com.google.protobuf.Timestamp value) { + if (softFailoverStartTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && softFailoverStartTime_ != null + && softFailoverStartTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getSoftFailoverStartTimeBuilder().mergeFrom(value); + } else { + softFailoverStartTime_ = value; + } + } else { + softFailoverStartTimeBuilder_.mergeFrom(value); + } + if (softFailoverStartTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Output only. The time at which a soft failover for the reservation and
+       * its associated datasets was initiated. After this field is set, all
+       * subsequent changes to the reservation will be rejected unless a hard
+       * failover overrides this operation. This field will be cleared once the
+       * failover is complete.
+       * 
+ * + * + * .google.protobuf.Timestamp soft_failover_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearSoftFailoverStartTime() { + bitField0_ = (bitField0_ & ~0x00000008); + softFailoverStartTime_ = null; + if (softFailoverStartTimeBuilder_ != null) { + softFailoverStartTimeBuilder_.dispose(); + softFailoverStartTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The time at which a soft failover for the reservation and
+       * its associated datasets was initiated. After this field is set, all
+       * subsequent changes to the reservation will be rejected unless a hard
+       * failover overrides this operation. This field will be cleared once the
+       * failover is complete.
+       * 
+ * + * + * .google.protobuf.Timestamp soft_failover_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getSoftFailoverStartTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getSoftFailoverStartTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Output only. The time at which a soft failover for the reservation and
+       * its associated datasets was initiated. After this field is set, all
+       * subsequent changes to the reservation will be rejected unless a hard
+       * failover overrides this operation. This field will be cleared once the
+       * failover is complete.
+       * 
+ * + * + * .google.protobuf.Timestamp soft_failover_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getSoftFailoverStartTimeOrBuilder() { + if (softFailoverStartTimeBuilder_ != null) { + return softFailoverStartTimeBuilder_.getMessageOrBuilder(); + } else { + return softFailoverStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : softFailoverStartTime_; + } + } + + /** + * + * + *
+       * Output only. The time at which a soft failover for the reservation and
+       * its associated datasets was initiated. After this field is set, all
+       * subsequent changes to the reservation will be rejected unless a hard
+       * failover overrides this operation. This field will be cleared once the
+       * failover is complete.
+       * 
+ * + * + * .google.protobuf.Timestamp soft_failover_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getSoftFailoverStartTimeFieldBuilder() { + if (softFailoverStartTimeBuilder_ == null) { + softFailoverStartTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getSoftFailoverStartTime(), getParentForChildren(), isClean()); + softFailoverStartTime_ = null; + } + return softFailoverStartTimeBuilder_; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationProto.java b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationProto.java index b89de2e5d29a..6f77e7e192c3 100644 --- a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationProto.java +++ b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationProto.java @@ -183,7 +183,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "roto\032\027google/api/client.proto\032\037google/ap" + "i/field_behavior.proto\032\031google/api/resource.proto\032\033google/protobuf/empty.proto\032" + " google/protobuf/field_mask.proto\032\037google" - + "/protobuf/timestamp.proto\032\027google/rpc/status.proto\"\227\n\n" + + "/protobuf/timestamp.proto\032\027google/rpc/status.proto\"\332\n\n" + "\013Reservation\022\014\n" + "\004name\030\001 \001(\t\022\025\n\r" + "slot_capacity\030\002 \001(\003\022\031\n" @@ -208,35 +208,37 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "(\0132C.google.cloud.bigquery.reservation.v1.Reservation.ReplicationStatusB\003\340A\003\032:\n" + "\tAutoscale\022\032\n\r" + "current_slots\030\001 \001(\003B\003\340A\003\022\021\n" - + "\tmax_slots\030\002 \001(\003\032\265\001\n" + + "\tmax_slots\030\002 \001(\003\032\370\001\n" + "\021ReplicationStatus\022&\n" + "\005error\030\001 \001(\0132\022.google.rpc.StatusB\003\340A\003\0228\n" + "\017last_error_time\030\002" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022>\n" + "\025last_replication_time\030\003" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022A\n" + + "\030soft_failover_start_time\030\004" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\"c\n" + "\013ScalingMode\022\034\n" + "\030SCALING_MODE_UNSPECIFIED\020\000\022\022\n" + "\016AUTOSCALE_ONLY\020\001\022\023\n" + "\017IDLE_SLOTS_ONLY\020\002\022\r\n" + "\tALL_SLOTS\020\003:w\352At\n" - + ".bigqueryreservation.googleapis.com/Reservation\022Bproj" - + "ects/{project}/locations/{location}/reservations/{reservation}B\014\n\n" + + ".bigqueryreservation.googleapis.com/Reservation\022Bprojects/{project" + + "}/locations/{location}/reservations/{reservation}B\014\n\n" + "_max_slots\"\222\010\n" + "\022CapacityCommitment\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\022\n\n" + "slot_count\030\002 \001(\003\022U\n" - + "\004plan\030\003 \001(\0162G.googl" - + "e.cloud.bigquery.reservation.v1.CapacityCommitment.CommitmentPlan\022R\n" - + "\005state\030\004 \001(\016" - + "2>.google.cloud.bigquery.reservation.v1.CapacityCommitment.StateB\003\340A\003\022>\n" + + "\004plan\030\003 \001(\0162G.google.cloud.bigqu" + + "ery.reservation.v1.CapacityCommitment.CommitmentPlan\022R\n" + + "\005state\030\004 \001(\0162>.google.clo" + + "ud.bigquery.reservation.v1.CapacityCommitment.StateB\003\340A\003\022>\n" + "\025commitment_start_time\030\t" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022<\n" + "\023commitment_end_time\030\005" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022/\n" + "\016failure_status\030\007 \001(\0132\022.google.rpc.StatusB\003\340A\003\022]\n" - + "\014renewal_plan\030\010 \001(\0162G.google.clou" - + "d.bigquery.reservation.v1.CapacityCommitment.CommitmentPlan\022\036\n" + + "\014renewal_plan\030\010 \001(\0162G.google.cloud.bigquery.re" + + "servation.v1.CapacityCommitment.CommitmentPlan\022\036\n" + "\026multi_region_auxiliary\030\n" + " \001(\010\022>\n" + "\007edition\030\014 \001(\0162-.google.cloud.bigquery.reservation.v1.Edition\022\031\n" @@ -258,24 +260,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007PENDING\020\001\022\n\n" + "\006ACTIVE\020\002\022\n\n" + "\006FAILED\020\003:\216\001\352A\212\001\n" - + "5bigqueryreservation.googleapis.com/CapacityCommitment\022Q" - + "projects/{project}/locations/{location}/" - + "capacityCommitments/{capacity_commitment}\"\302\001\n" + + "5bigqueryreservation.googleapis.com/CapacityCommitment\022Qprojects/{pro" + + "ject}/locations/{location}/capacityCommitments/{capacity_commitment}\"\302\001\n" + "\030CreateReservationRequest\022F\n" - + "\006parent\030\001 \001(" - + "\tB6\340A\002\372A0\022.bigqueryreservation.googleapis.com/Reservation\022\026\n" + + "\006parent\030\001 \001(\tB6\340A\002\372A" + + "0\022.bigqueryreservation.googleapis.com/Reservation\022\026\n" + "\016reservation_id\030\002 \001(\t\022F\n" - + "\013reservation\030\003 \001(\01321.google.clo" - + "ud.bigquery.reservation.v1.Reservation\"\210\001\n" + + "\013reservation\030\003" + + " \001(\01321.google.cloud.bigquery.reservation.v1.Reservation\"\210\001\n" + "\027ListReservationsRequest\022F\n" - + "\006parent\030\001 \001(" - + "\tB6\340A\002\372A0\022.bigqueryreservation.googleapis.com/Reservation\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n" - + "\n" + + "\006parent\030\001 \001(\tB6\340A\002\372A0\022.b" + + "igqueryreservation.googleapis.com/Reservation\022\021\n" + + "\tpage_size\030\002 \001(\005\022\022\n\n" + "page_token\030\003 \001(\t\"|\n" + "\030ListReservationsResponse\022G\n" - + "\014reservations\030\001 \003(\01321.google.clo" - + "ud.bigquery.reservation.v1.Reservation\022\027\n" + + "\014reservations\030\001" + + " \003(\01321.google.cloud.bigquery.reservation.v1.Reservation\022\027\n" + "\017next_page_token\030\002 \001(\t\"]\n" + "\025GetReservationRequest\022D\n" + "\004name\030\001 \001(\tB6\340A\002\372A0\n" @@ -286,25 +286,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030UpdateReservationRequest\022F\n" + "\013reservation\030\001" + " \001(\01321.google.cloud.bigquery.reservation.v1.Reservation\022/\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"b\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"\262\001\n" + "\032FailoverReservationRequest\022D\n" + "\004name\030\001 \001(\tB6\340A\002\372A0\n" - + ".bigqueryreservation.googleapis.com/Reservation\"\225\002\n" + + ".bigqueryreservation.googleapis.com/Reservation\022N\n\r" + + "failover_mode\030\002 \001(\01622." + + "google.cloud.bigquery.reservation.v1.FailoverModeB\003\340A\001\"\225\002\n" + "\037CreateCapacityCommitmentRequest\022M\n" - + "\006parent\030\001 \001(\tB=" - + "\340A\002\372A7\0225bigqueryreservation.googleapis.com/CapacityCommitment\022U\n" - + "\023capacity_commitment\030\002" - + " \001(\01328.google.cloud.bigquery.reservation.v1.CapacityCommitment\022,\n" + + "\006parent\030\001 \001(\tB=\340A\002\372A7\0225bigq" + + "ueryreservation.googleapis.com/CapacityCommitment\022U\n" + + "\023capacity_commitment\030\002 \001(\01328" + + ".google.cloud.bigquery.reservation.v1.CapacityCommitment\022,\n" + "$enforce_single_admin_project_per_org\030\004 \001(\010\022\036\n" + "\026capacity_commitment_id\030\005 \001(\t\"\226\001\n" + "\036ListCapacityCommitmentsRequest\022M\n" - + "\006parent\030\001 \001(\tB=\340" - + "A\002\372A7\0225bigqueryreservation.googleapis.com/CapacityCommitment\022\021\n" + + "\006parent\030\001 \001(\tB=\340A\002\372A7\0225bigqu" + + "eryreservation.googleapis.com/CapacityCommitment\022\021\n" + "\tpage_size\030\002 \001(\005\022\022\n\n" + "page_token\030\003 \001(\t\"\222\001\n" + "\037ListCapacityCommitmentsResponse\022V\n" - + "\024capacity_commitments\030\001" - + " \003(\01328.google.cloud.bigquery.reservation.v1.CapacityCommitment\022\027\n" + + "\024capacity_commitments\030\001 \003(\01328.goog" + + "le.cloud.bigquery.reservation.v1.CapacityCommitment\022\027\n" + "\017next_page_token\030\002 \001(\t\"k\n" + "\034GetCapacityCommitmentRequest\022K\n" + "\004name\030\001 \001(\tB=\340A\002\372A7\n" @@ -314,30 +316,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "5bigqueryreservation.googleapis.com/CapacityCommitment\022\r\n" + "\005force\030\003 \001(\010\"\251\001\n" + "\037UpdateCapacityCommitmentRequest\022U\n" - + "\023capacity_commitment\030\001 \001(\01328.google.c" - + "loud.bigquery.reservation.v1.CapacityCommitment\022/\n" + + "\023capacity_commitment\030\001" + + " \001(\01328.google.cloud.bigquery.reservation.v1.CapacityCommitment\022/\n" + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"\201\001\n" + "\036SplitCapacityCommitmentRequest\022K\n" + "\004name\030\001 \001(\tB=\340A\002\372A7\n" + "5bigqueryreservation.googleapis.com/CapacityCommitment\022\022\n\n" + "slot_count\030\002 \001(\003\"\264\001\n" + "\037SplitCapacityCommitmentResponse\022G\n" - + "\005first\030\001 \001(\0132" - + "8.google.cloud.bigquery.reservation.v1.CapacityCommitment\022H\n" - + "\006second\030\002 \001(\01328.goog" - + "le.cloud.bigquery.reservation.v1.CapacityCommitment\"\216\001\n" + + "\005first\030\001 \001(\01328.google.clo" + + "ud.bigquery.reservation.v1.CapacityCommitment\022H\n" + + "\006second\030\002 \001(\01328.google.cloud.big" + + "query.reservation.v1.CapacityCommitment\"\216\001\n" + "\037MergeCapacityCommitmentsRequest\022J\n" - + "\006parent\030\001 \001(\tB:\372A7\0225bigqueryre" - + "servation.googleapis.com/CapacityCommitment\022\037\n" - + "\027capacity_commitment_ids\030\002 \003(\t\"\305\004\n" - + "\n" + + "\006parent\030\001 \001(" + + "\tB:\372A7\0225bigqueryreservation.googleapis.com/CapacityCommitment\022\037\n" + + "\027capacity_commitment_ids\030\002 \003(\t\"\305\004\n\n" + "Assignment\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\020\n" + "\010assignee\030\004 \001(\t\022J\n" - + "\010job_type\030\003 \001(\01628.google.clou" - + "d.bigquery.reservation.v1.Assignment.JobType\022J\n" - + "\005state\030\006 \001(\01626.google.cloud.bigqu" - + "ery.reservation.v1.Assignment.StateB\003\340A\003\022&\n" + + "\010job_type\030\003" + + " \001(\01628.google.cloud.bigquery.reservation.v1.Assignment.JobType\022J\n" + + "\005state\030\006" + + " \001(\01626.google.cloud.bigquery.reservation.v1.Assignment.StateB\003\340A\003\022&\n" + "\031enable_gemini_in_bigquery\030\n" + " \001(\010B\003\340A\001\"m\n" + "\007JobType\022\030\n" @@ -351,24 +352,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021STATE_UNSPECIFIED\020\000\022\013\n" + "\007PENDING\020\001\022\n\n" + "\006ACTIVE\020\002:\251\001\352A\245\001\n" - + "-bigqueryreservation.googleapis.com/Assignment\022[projects/{projec" - + "t}/locations/{location}/reservations/{re" - + "servation}/assignments/{assignment}*\013assignments2\n" + + "-bigqueryreservation.googleapis.com/Assignment\022[projects/{project}/locations" + + "/{location}/reservations/{reservation}/assignments/{assignment}*\013assignments2\n" + "assignment\"\275\001\n" + "\027CreateAssignmentRequest\022E\n" - + "\006parent\030\001 \001(\tB5\340A\002\372A/\022-bigque" - + "ryreservation.googleapis.com/Assignment\022D\n\n" + + "\006parent\030\001 \001(" + + "\tB5\340A\002\372A/\022-bigqueryreservation.googleapis.com/Assignment\022D\n\n" + "assignment\030\002" + " \001(\01320.google.cloud.bigquery.reservation.v1.Assignment\022\025\n\r" + "assignment_id\030\004 \001(\t\"\206\001\n" + "\026ListAssignmentsRequest\022E\n" + "\006parent\030\001 \001(" + "\tB5\340A\002\372A/\022-bigqueryreservation.googleapis.com/Assignment\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" + + "\tpage_size\030\002 \001(\005\022\022\n" + + "\n" + "page_token\030\003 \001(\t\"y\n" + "\027ListAssignmentsResponse\022E\n" - + "\013assignments\030\001 \003(\01320." - + "google.cloud.bigquery.reservation.v1.Assignment\022\027\n" + + "\013assignments\030\001" + + " \003(\01320.google.cloud.bigquery.reservation.v1.Assignment\022\027\n" + "\017next_page_token\030\002 \001(\t\"^\n" + "\027DeleteAssignmentRequest\022C\n" + "\004name\030\001 \001(\tB5\340A\002\372A/\n" @@ -390,14 +391,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\01320.google.cloud.bigquery.reservation.v1.Assignment\022\027\n" + "\017next_page_token\030\002 \001(\t\"~\n" + "\034SearchAllAssignmentsResponse\022E\n" - + "\013assignments\030\001 \003(\01320.goog" - + "le.cloud.bigquery.reservation.v1.Assignment\022\027\n" + + "\013assignments\030\001" + + " \003(\01320.google.cloud.bigquery.reservation.v1.Assignment\022\027\n" + "\017next_page_token\030\002 \001(\t\"\277\001\n" + "\025MoveAssignmentRequest\022C\n" + "\004name\030\001 \001(\tB5\340A\002\372A/\n" + "-bigqueryreservation.googleapis.com/Assignment\022J\n" - + "\016destination_id\030\003 \001(\tB2\372A/\022-bigque" - + "ryreservation.googleapis.com/Assignment\022\025\n\r" + + "\016destination_id\030\003 \001(" + + "\tB2\372A/\022-bigqueryreservation.googleapis.com/Assignment\022\025\n\r" + "assignment_id\030\005 \001(\t\"\220\001\n" + "\027UpdateAssignmentRequest\022D\n\n" + "assignment\030\001 \001(\01320.google.cloud.bigquery.reservation.v1.Assignment\022/\n" @@ -411,123 +412,129 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013update_time\030\003" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\014\n" + "\004size\030\004 \001(\003\022N\n" - + "\020preferred_tables\030\005" - + " \003(\01324.google.cloud.bigquery.reservation.v1.TableReference:l\352Ai\n" - + "0bigqueryreservation.googleapis.com/BiReservation" - + "\0225projects/{project}/locations/{location}/biReservation\"a\n" + + "\020preferred_tables\030\005 \003(\0132" + + "4.google.cloud.bigquery.reservation.v1.TableReference:l\352Ai\n" + + "0bigqueryreservation.googleapis.com/BiReservation\0225projects/{" + + "project}/locations/{location}/biReservation\"a\n" + "\027GetBiReservationRequest\022F\n" + "\004name\030\001 \001(\tB8\340A\002\372A2\n" + "0bigqueryreservation.googleapis.com/BiReservation\"\232\001\n" + "\032UpdateBiReservationRequest\022K\n" - + "\016bi_reservation\030\001" - + " \001(\01323.google.cloud.bigquery.reservation.v1.BiReservation\022/\n" + + "\016bi_reservation\030\001 \001(\01323." + + "google.cloud.bigquery.reservation.v1.BiReservation\022/\n" + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMask*U\n" + "\007Edition\022\027\n" + "\023EDITION_UNSPECIFIED\020\000\022\014\n" + "\010STANDARD\020\001\022\016\n\n" + "ENTERPRISE\020\002\022\023\n" - + "\017ENTERPRISE_PLUS\020\0032\237)\n" + + "\017ENTERPRISE_PLUS\020\003*A\n" + + "\014FailoverMode\022\035\n" + + "\031FAILOVER_MODE_UNSPECIFIED\020\000\022\010\n" + + "\004SOFT\020\001\022\010\n" + + "\004HARD\020\0022\237)\n" + "\022ReservationService\022\361\001\n" - + "\021CreateReservation\022>.google.cloud.bigquery.reservation." - + "v1.CreateReservationRequest\0321.google.cloud.bigquery.reservation.v1.Reservation\"i" - + "\332A!parent,reservation,reservation_id\202\323\344\223" - + "\002?\"0/v1/{parent=projects/*/locations/*}/reservations:\013reservation\022\324\001\n" - + "\020ListReservations\022=.google.cloud.bigquery.reservati" - + "on.v1.ListReservationsRequest\032>.google.cloud.bigquery.reservation.v1.ListReserva" - + "tionsResponse\"A\332A\006parent\202\323\344\223\0022\0220/v1/{par" - + "ent=projects/*/locations/*}/reservations\022\301\001\n" - + "\016GetReservation\022;.google.cloud.bigquery.reservation.v1.GetReservationRequest" - + "\0321.google.cloud.bigquery.reservation.v1." - + "Reservation\"?\332A\004name\202\323\344\223\0022\0220/v1/{name=projects/*/locations/*/reservations/*}\022\254\001\n" - + "\021DeleteReservation\022>.google.cloud.bigquery.reservation.v1.DeleteReservationReque" - + "st\032\026.google.protobuf.Empty\"?\332A\004name\202\323\344\223\002" - + "2*0/v1/{name=projects/*/locations/*/reservations/*}\022\363\001\n" - + "\021UpdateReservation\022>.google.cloud.bigquery.reservation.v1.UpdateR" - + "eservationRequest\0321.google.cloud.bigquer" - + "y.reservation.v1.Reservation\"k\332A\027reserva" - + "tion,update_mask\202\323\344\223\002K2/v1/{parent=projects/*/locations/*/reservations/*}/assignments:\n" + + "\021CreateReservation\022>.google.cloud.bigquery.reservation.v1.CreateReservationReque" + + "st\0321.google.cloud.bigquery.reservation.v" + + "1.Reservation\"i\332A!parent,reservation,res" + + "ervation_id\202\323\344\223\002?\"0/v1/{parent=projects/" + + "*/locations/*}/reservations:\013reservation\022\324\001\n" + + "\020ListReservations\022=.google.cloud.bigquery.reservation.v1.ListReservationsReq" + + "uest\032>.google.cloud.bigquery.reservation" + + ".v1.ListReservationsResponse\"A\332A\006parent\202" + + "\323\344\223\0022\0220/v1/{parent=projects/*/locations/*}/reservations\022\301\001\n" + + "\016GetReservation\022;.google.cloud.bigquery.reservation.v1.GetRes" + + "ervationRequest\0321.google.cloud.bigquery." + + "reservation.v1.Reservation\"?\332A\004name\202\323\344\223\002" + + "2\0220/v1/{name=projects/*/locations/*/reservations/*}\022\254\001\n" + + "\021DeleteReservation\022>.google.cloud.bigquery.reservation.v1.DeleteR" + + "eservationRequest\032\026.google.protobuf.Empt" + + "y\"?\332A\004name\202\323\344\223\0022*0/v1/{name=projects/*/locations/*/reservations/*}\022\363\001\n" + + "\021UpdateReservation\022>.google.cloud.bigquery.reserva" + + "tion.v1.UpdateReservationRequest\0321.google.cloud.bigquery.reservation.v1.Reservat" + + "ion\"k\332A\027reservation,update_mask\202\323\344\223\002K2/v1/{parent=projects/" + + "*/locations/*/reservations/*}/assignments:\n" + "assignment\022\337\001\n" - + "\017ListAssignments\022<.google.cloud.bigquery.reservation.v1.ListAssignmentsRequest" - + "\032=.google.cloud.bigquery.reservation.v1." - + "ListAssignmentsResponse\"O\332A\006parent\202\323\344\223\002@" - + "\022>/v1/{parent=projects/*/locations/*/reservations/*}/assignments\022\270\001\n" - + "\020DeleteAssignment\022=.google.cloud.bigquery.reservatio" - + "n.v1.DeleteAssignmentRequest\032\026.google.pr" - + "otobuf.Empty\"M\332A\004name\202\323\344\223\002@*>/v1/{name=p" - + "rojects/*/locations/*/reservations/*/assignments/*}\022\345\001\n" - + "\021SearchAssignments\022>.google.cloud.bigquery.reservation.v1.SearchA" - + "ssignmentsRequest\032?.google.cloud.bigquery.reservation.v1.SearchAssignmentsRespon" - + "se\"O\210\002\001\332A\014parent,query\202\323\344\223\0027\0225/v1/{paren" - + "t=projects/*/locations/*}:searchAssignments\022\356\001\n" - + "\024SearchAllAssignments\022A.google.cloud.bigquery.reservation.v1.SearchAllAss" - + "ignmentsRequest\032B.google.cloud.bigquery.reservation.v1.SearchAllAssignmentsRespo" - + "nse\"O\332A\014parent,query\202\323\344\223\002:\0228/v1/{parent=" - + "projects/*/locations/*}:searchAllAssignments\022\345\001\n" - + "\016MoveAssignment\022;.google.cloud.bigquery.reservation.v1.MoveAssignmentReq" - + "uest\0320.google.cloud.bigquery.reservation" - + ".v1.Assignment\"d\332A\023name,destination_id\202\323" - + "\344\223\002H\"C/v1/{name=projects/*/locations/*/reservations/*/assignments/*}:move:\001*\022\373\001\n" - + "\020UpdateAssignment\022=.google.cloud.bigquery.reservation.v1.UpdateAssignmentRequest" - + "\0320.google.cloud.bigquery.reservation.v1." - + "Assignment\"v\332A\026assignment,update_mask\202\323\344" - + "\223\002W2I/v1/{assignment.name=projects/*/locations/*/reservations/*/assignments/*}:\n" + + "\017ListAssignments\022<.google.cloud.bigquery.reservation.v1.ListAss" + + "ignmentsRequest\032=.google.cloud.bigquery.reservation.v1.ListAssignmentsResponse\"O" + + "\332A\006parent\202\323\344\223\002@\022>/v1/{parent=projects/*/" + + "locations/*/reservations/*}/assignments\022\270\001\n" + + "\020DeleteAssignment\022=.google.cloud.bigquery.reservation.v1.DeleteAssignmentRequ" + + "est\032\026.google.protobuf.Empty\"M\332A\004name\202\323\344\223" + + "\002@*>/v1/{name=projects/*/locations/*/reservations/*/assignments/*}\022\345\001\n" + + "\021SearchAssignments\022>.google.cloud.bigquery.reserva" + + "tion.v1.SearchAssignmentsRequest\032?.google.cloud.bigquery.reservation.v1.SearchAs" + + "signmentsResponse\"O\210\002\001\332A\014parent,query\202\323\344" + + "\223\0027\0225/v1/{parent=projects/*/locations/*}:searchAssignments\022\356\001\n" + + "\024SearchAllAssignments\022A.google.cloud.bigquery.reservation." + + "v1.SearchAllAssignmentsRequest\032B.google.cloud.bigquery.reservation.v1.SearchAllA" + + "ssignmentsResponse\"O\332A\014parent,query\202\323\344\223\002" + + ":\0228/v1/{parent=projects/*/locations/*}:searchAllAssignments\022\345\001\n" + + "\016MoveAssignment\022;.google.cloud.bigquery.reservation.v1.Mo" + + "veAssignmentRequest\0320.google.cloud.bigqu" + + "ery.reservation.v1.Assignment\"d\332A\023name,d" + + "estination_id\202\323\344\223\002H\"C/v1/{name=projects/" + + "*/locations/*/reservations/*/assignments/*}:move:\001*\022\373\001\n" + + "\020UpdateAssignment\022=.google.cloud.bigquery.reservation.v1.UpdateAs" + + "signmentRequest\0320.google.cloud.bigquery." + + "reservation.v1.Assignment\"v\332A\026assignment" + + ",update_mask\202\323\344\223\002W2I/v1/{assignment.name" + + "=projects/*/locations/*/reservations/*/assignments/*}:\n" + "assignment\022\306\001\n" - + "\020GetBiReservation\022=.google.cloud.bigquery.reservation.v1.GetBiRese" - + "rvationRequest\0323.google.cloud.bigquery.r" - + "eservation.v1.BiReservation\">\332A\004name\202\323\344\223" - + "\0021\022//v1/{name=projects/*/locations/*/biReservation}\022\201\002\n" - + "\023UpdateBiReservation\022@.google.cloud.bigquery.reservation.v1.Updat" - + "eBiReservationRequest\0323.google.cloud.big" - + "query.reservation.v1.BiReservation\"s\332A\032b" - + "i_reservation,update_mask\202\323\344\223\002P2>/v1/{bi" - + "_reservation.name=projects/*/locations/*" - + "/biReservation}:\016bi_reservation\032\177\312A\"bigq" - + "ueryreservation.googleapis.com\322AWhttps://www.googleapis.com/auth/bigquery,https:" - + "//www.googleapis.com/auth/cloud-platformB\330\001\n" - + "(com.google.cloud.bigquery.reservation.v1B\020ReservationProtoP\001ZJcloud.google." - + "com/go/bigquery/reservation/apiv1/reservationpb;reservationpb\252\002$Google.Cloud.Big" - + "Query.Reservation.V1\312\002$Google\\Cloud\\BigQuery\\Reservation\\V1b\006proto3" + + "\020GetBiReservation\022=.google.cloud.bigquery.reservati" + + "on.v1.GetBiReservationRequest\0323.google.cloud.bigquery.reservation.v1.BiReservati" + + "on\">\332A\004name\202\323\344\223\0021\022//v1/{name=projects/*/locations/*/biReservation}\022\201\002\n" + + "\023UpdateBiReservation\022@.google.cloud.bigquery.reser" + + "vation.v1.UpdateBiReservationRequest\0323.google.cloud.bigquery.reservation.v1.BiRe" + + "servation\"s\332A\032bi_reservation,update_mask" + + "\202\323\344\223\002P2>/v1/{bi_reservation.name=project" + + "s/*/locations/*/biReservation}:\016bi_reser" + + "vation\032\177\312A\"bigqueryreservation.googleapi" + + "s.com\322AWhttps://www.googleapis.com/auth/" + + "bigquery,https://www.googleapis.com/auth/cloud-platformB\330\001\n" + + "(com.google.cloud.bigquery.reservation.v1B\020ReservationProtoP\001" + + "ZJcloud.google.com/go/bigquery/reservation/apiv1/reservationpb;reservationpb\252\002$G" + + "oogle.Cloud.BigQuery.Reservation.V1\312\002$Go" + + "ogle\\Cloud\\BigQuery\\Reservation\\V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -582,7 +589,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_reservation_v1_Reservation_ReplicationStatus_descriptor, new java.lang.String[] { - "Error", "LastErrorTime", "LastReplicationTime", + "Error", "LastErrorTime", "LastReplicationTime", "SoftFailoverStartTime", }); internal_static_google_cloud_bigquery_reservation_v1_CapacityCommitment_descriptor = getDescriptor().getMessageTypes().get(1); @@ -656,7 +663,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_reservation_v1_FailoverReservationRequest_descriptor, new java.lang.String[] { - "Name", + "Name", "FailoverMode", }); internal_static_google_cloud_bigquery_reservation_v1_CreateCapacityCommitmentRequest_descriptor = getDescriptor().getMessageTypes().get(9); diff --git a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/proto/google/cloud/bigquery/reservation/v1/reservation.proto b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/proto/google/cloud/bigquery/reservation/v1/reservation.proto index 14fd803578ff..51356abc0cad 100644 --- a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/proto/google/cloud/bigquery/reservation/v1/reservation.proto +++ b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/proto/google/cloud/bigquery/reservation/v1/reservation.proto @@ -496,6 +496,14 @@ message Reservation { // that was successfully replicated to the secondary. google.protobuf.Timestamp last_replication_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time at which a soft failover for the reservation and + // its associated datasets was initiated. After this field is set, all + // subsequent changes to the reservation will be rejected unless a hard + // failover overrides this operation. This field will be cleared once the + // failover is complete. + google.protobuf.Timestamp soft_failover_start_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // The resource name of the reservation, e.g., @@ -895,6 +903,11 @@ message FailoverReservationRequest { type: "bigqueryreservation.googleapis.com/Reservation" } ]; + + // Optional. A parameter that determines how writes that are pending + // replication are handled after a failover is initiated. If not specified, + // HARD failover mode is used by default. + FailoverMode failover_mode = 2 [(google.api.field_behavior) = OPTIONAL]; } // The request for @@ -1389,3 +1402,21 @@ enum Edition { // Enterprise Plus edition. ENTERPRISE_PLUS = 3; } + +// The failover mode when a user initiates a failover on a reservation +// determines how writes that arepending replication are handled after the +// failover is initiated. +enum FailoverMode { + // Invalid value. + FAILOVER_MODE_UNSPECIFIED = 0; + + // When customers initiate a soft failover, BigQuery will wait until all + // committed writes are replicated to the secondary. This mode requires both + // regions to be available for the failover to succeed and prevents data loss. + SOFT = 1; + + // When customers initiate a hard failover, BigQuery will not wait until all + // committed writes are replicated to the secondary. There can be data loss + // for hard failover. + HARD = 2; +} diff --git a/java-bigqueryreservation/samples/snippets/generated/com/google/cloud/bigquery/reservation/v1/reservationservice/failoverreservation/AsyncFailoverReservation.java b/java-bigqueryreservation/samples/snippets/generated/com/google/cloud/bigquery/reservation/v1/reservationservice/failoverreservation/AsyncFailoverReservation.java index ef971a5f04f3..362265c0d86e 100644 --- a/java-bigqueryreservation/samples/snippets/generated/com/google/cloud/bigquery/reservation/v1/reservationservice/failoverreservation/AsyncFailoverReservation.java +++ b/java-bigqueryreservation/samples/snippets/generated/com/google/cloud/bigquery/reservation/v1/reservationservice/failoverreservation/AsyncFailoverReservation.java @@ -18,6 +18,7 @@ // [START bigqueryreservation_v1_generated_ReservationService_FailoverReservation_async] import com.google.api.core.ApiFuture; +import com.google.cloud.bigquery.reservation.v1.FailoverMode; import com.google.cloud.bigquery.reservation.v1.FailoverReservationRequest; import com.google.cloud.bigquery.reservation.v1.Reservation; import com.google.cloud.bigquery.reservation.v1.ReservationName; @@ -39,6 +40,7 @@ public static void asyncFailoverReservation() throws Exception { FailoverReservationRequest request = FailoverReservationRequest.newBuilder() .setName(ReservationName.of("[PROJECT]", "[LOCATION]", "[RESERVATION]").toString()) + .setFailoverMode(FailoverMode.forNumber(0)) .build(); ApiFuture future = reservationServiceClient.failoverReservationCallable().futureCall(request); diff --git a/java-bigqueryreservation/samples/snippets/generated/com/google/cloud/bigquery/reservation/v1/reservationservice/failoverreservation/SyncFailoverReservation.java b/java-bigqueryreservation/samples/snippets/generated/com/google/cloud/bigquery/reservation/v1/reservationservice/failoverreservation/SyncFailoverReservation.java index ab7455c13407..357b0862f065 100644 --- a/java-bigqueryreservation/samples/snippets/generated/com/google/cloud/bigquery/reservation/v1/reservationservice/failoverreservation/SyncFailoverReservation.java +++ b/java-bigqueryreservation/samples/snippets/generated/com/google/cloud/bigquery/reservation/v1/reservationservice/failoverreservation/SyncFailoverReservation.java @@ -17,6 +17,7 @@ package com.google.cloud.bigquery.reservation.v1.samples; // [START bigqueryreservation_v1_generated_ReservationService_FailoverReservation_sync] +import com.google.cloud.bigquery.reservation.v1.FailoverMode; import com.google.cloud.bigquery.reservation.v1.FailoverReservationRequest; import com.google.cloud.bigquery.reservation.v1.Reservation; import com.google.cloud.bigquery.reservation.v1.ReservationName; @@ -38,6 +39,7 @@ public static void syncFailoverReservation() throws Exception { FailoverReservationRequest request = FailoverReservationRequest.newBuilder() .setName(ReservationName.of("[PROJECT]", "[LOCATION]", "[RESERVATION]").toString()) + .setFailoverMode(FailoverMode.forNumber(0)) .build(); Reservation response = reservationServiceClient.failoverReservation(request); } diff --git a/java-billing/README.md b/java-billing/README.md index cc458f79600c..2271a17ee8ec 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.66.0 + 26.67.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.72.0 + 2.73.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-billing:2.72.0' +implementation 'com.google.cloud:google-cloud-billing:2.73.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-billing" % "2.72.0" +libraryDependencies += "com.google.cloud" % "google-cloud-billing" % "2.73.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.72.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billing/2.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-billingbudgets/README.md b/java-billingbudgets/README.md index 86633636161a..af70325bc2e1 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.66.0 + 26.67.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.72.0 + 2.73.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-billingbudgets:2.72.0' +implementation 'com.google.cloud:google-cloud-billingbudgets:2.73.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-billingbudgets" % "2.72.0" +libraryDependencies += "com.google.cloud" % "google-cloud-billingbudgets" % "2.73.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.72.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billingbudgets/2.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-binary-authorization/README.md b/java-binary-authorization/README.md index ba01a9d24a63..07c9c7080991 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.66.0 + 26.67.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.71.0 + 1.72.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-binary-authorization:1.71.0' +implementation 'com.google.cloud:google-cloud-binary-authorization:1.72.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-binary-authorization" % "1.71.0" +libraryDependencies += "com.google.cloud" % "google-cloud-binary-authorization" % "1.72.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-binary-authorization.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-binary-authorization/1.71.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-binary-authorization/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-certificate-manager/README.md b/java-certificate-manager/README.md index 81ba529cc003..364eee159ad9 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.66.0 + 26.67.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.75.0 + 0.76.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-certificate-manager:0.75.0' +implementation 'com.google.cloud:google-cloud-certificate-manager:0.76.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-certificate-manager" % "0.75.0" +libraryDependencies += "com.google.cloud" % "google-cloud-certificate-manager" % "0.76.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-certificate-manager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-certificate-manager/0.75.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-certificate-manager/0.76.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-channel/README.md b/java-channel/README.md index e594ef88affb..28b6227ed3e2 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.66.0 + 26.67.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.76.0 + 3.77.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-channel:3.76.0' +implementation 'com.google.cloud:google-cloud-channel:3.77.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-channel" % "3.76.0" +libraryDependencies += "com.google.cloud" % "google-cloud-channel" % "3.77.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-channel.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-channel/3.76.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-channel/3.77.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-chat/README.md b/java-chat/README.md index 6d77497a812c..5064e5631ed4 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.66.0 + 26.67.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.36.0 + 0.37.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-chat:0.36.0' +implementation 'com.google.cloud:google-cloud-chat:0.37.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-chat" % "0.36.0" +libraryDependencies += "com.google.cloud" % "google-cloud-chat" % "0.37.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-chat.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chat/0.36.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chat/0.37.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceClient.java b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceClient.java index 59d97855c472..ae16e740aa8a 100644 --- a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceClient.java +++ b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceClient.java @@ -2232,6 +2232,7 @@ public final UnaryCallable getMessageCallable() { *

- `cards_v2` (Requires [app authentication](/chat/api/guides/auth/service-accounts).) *

- `accessory_widgets` (Requires [app * authentication](/chat/api/guides/auth/service-accounts).) + *

- `quoted_message_metadata` (Only allows removal of the quoted message.) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Message updateMessage(Message message, FieldMask updateMask) { diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequest.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequest.java index 2595a8e457c5..a816a58a76d2 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequest.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequest.java @@ -382,7 +382,7 @@ public com.google.chat.v1.MessageOrBuilder getMessageOrBuilder() { * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=512 + * google/chat/v1/message.proto;l=539 * @return The threadKey. */ @java.lang.Override @@ -416,7 +416,7 @@ public java.lang.String getThreadKey() { * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=512 + * google/chat/v1/message.proto;l=539 * @return The bytes for threadKey. */ @java.lang.Override @@ -1452,7 +1452,7 @@ public com.google.chat.v1.MessageOrBuilder getMessageOrBuilder() { * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=512 + * google/chat/v1/message.proto;l=539 * @return The threadKey. */ @java.lang.Deprecated @@ -1485,7 +1485,7 @@ public java.lang.String getThreadKey() { * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=512 + * google/chat/v1/message.proto;l=539 * @return The bytes for threadKey. */ @java.lang.Deprecated @@ -1518,7 +1518,7 @@ public com.google.protobuf.ByteString getThreadKeyBytes() { * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=512 + * google/chat/v1/message.proto;l=539 * @param value The threadKey to set. * @return This builder for chaining. */ @@ -1550,7 +1550,7 @@ public Builder setThreadKey(java.lang.String value) { * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=512 + * google/chat/v1/message.proto;l=539 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1578,7 +1578,7 @@ public Builder clearThreadKey() { * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=512 + * google/chat/v1/message.proto;l=539 * @param value The bytes for threadKey to set. * @return This builder for chaining. */ diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequestOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequestOrBuilder.java index 131abcbb2ed4..ddb34a05c377 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequestOrBuilder.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequestOrBuilder.java @@ -112,7 +112,7 @@ public interface CreateMessageRequestOrBuilder * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=512 + * google/chat/v1/message.proto;l=539 * @return The threadKey. */ @java.lang.Deprecated @@ -135,7 +135,7 @@ public interface CreateMessageRequestOrBuilder * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=512 + * google/chat/v1/message.proto;l=539 * @return The bytes for threadKey. */ @java.lang.Deprecated diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Message.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Message.java index 3714a4e94e56..e7868137b3d0 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Message.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Message.java @@ -1742,12 +1742,21 @@ public com.google.chat.v1.DeletionMetadataOrBuilder getDeletionMetadataOrBuilder * * *

-   * Output only. Information about a message that's quoted by a Google Chat
-   * user in a space. Google Chat users can quote a message to reply to it.
+   * Optional. Information about a message that another message quotes.
+   *
+   * When you create a message, you can quote messages within the same
+   * thread, or quote a root message to create a new root message.
+   * However, you can't quote a message reply from a different thread.
+   *
+   * When you update a message, you can't add or replace the
+   * `quotedMessageMetadata` field, but you can remove it.
+   *
+   * For example usage, see [Quote another
+   * message](https://developers.google.com/workspace/chat/create-messages#quote-a-message).
    * 
* * - * .google.chat.v1.QuotedMessageMetadata quoted_message_metadata = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.chat.v1.QuotedMessageMetadata quoted_message_metadata = 39 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the quotedMessageMetadata field is set. @@ -1761,12 +1770,21 @@ public boolean hasQuotedMessageMetadata() { * * *
-   * Output only. Information about a message that's quoted by a Google Chat
-   * user in a space. Google Chat users can quote a message to reply to it.
+   * Optional. Information about a message that another message quotes.
+   *
+   * When you create a message, you can quote messages within the same
+   * thread, or quote a root message to create a new root message.
+   * However, you can't quote a message reply from a different thread.
+   *
+   * When you update a message, you can't add or replace the
+   * `quotedMessageMetadata` field, but you can remove it.
+   *
+   * For example usage, see [Quote another
+   * message](https://developers.google.com/workspace/chat/create-messages#quote-a-message).
    * 
* * - * .google.chat.v1.QuotedMessageMetadata quoted_message_metadata = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.chat.v1.QuotedMessageMetadata quoted_message_metadata = 39 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The quotedMessageMetadata. @@ -1782,12 +1800,21 @@ public com.google.chat.v1.QuotedMessageMetadata getQuotedMessageMetadata() { * * *
-   * Output only. Information about a message that's quoted by a Google Chat
-   * user in a space. Google Chat users can quote a message to reply to it.
+   * Optional. Information about a message that another message quotes.
+   *
+   * When you create a message, you can quote messages within the same
+   * thread, or quote a root message to create a new root message.
+   * However, you can't quote a message reply from a different thread.
+   *
+   * When you update a message, you can't add or replace the
+   * `quotedMessageMetadata` field, but you can remove it.
+   *
+   * For example usage, see [Quote another
+   * message](https://developers.google.com/workspace/chat/create-messages#quote-a-message).
    * 
* * - * .google.chat.v1.QuotedMessageMetadata quoted_message_metadata = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.chat.v1.QuotedMessageMetadata quoted_message_metadata = 39 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override @@ -9296,12 +9323,21 @@ public com.google.chat.v1.DeletionMetadataOrBuilder getDeletionMetadataOrBuilder * * *
-     * Output only. Information about a message that's quoted by a Google Chat
-     * user in a space. Google Chat users can quote a message to reply to it.
+     * Optional. Information about a message that another message quotes.
+     *
+     * When you create a message, you can quote messages within the same
+     * thread, or quote a root message to create a new root message.
+     * However, you can't quote a message reply from a different thread.
+     *
+     * When you update a message, you can't add or replace the
+     * `quotedMessageMetadata` field, but you can remove it.
+     *
+     * For example usage, see [Quote another
+     * message](https://developers.google.com/workspace/chat/create-messages#quote-a-message).
      * 
* * - * .google.chat.v1.QuotedMessageMetadata quoted_message_metadata = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.chat.v1.QuotedMessageMetadata quoted_message_metadata = 39 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the quotedMessageMetadata field is set. @@ -9314,12 +9350,21 @@ public boolean hasQuotedMessageMetadata() { * * *
-     * Output only. Information about a message that's quoted by a Google Chat
-     * user in a space. Google Chat users can quote a message to reply to it.
+     * Optional. Information about a message that another message quotes.
+     *
+     * When you create a message, you can quote messages within the same
+     * thread, or quote a root message to create a new root message.
+     * However, you can't quote a message reply from a different thread.
+     *
+     * When you update a message, you can't add or replace the
+     * `quotedMessageMetadata` field, but you can remove it.
+     *
+     * For example usage, see [Quote another
+     * message](https://developers.google.com/workspace/chat/create-messages#quote-a-message).
      * 
* * - * .google.chat.v1.QuotedMessageMetadata quoted_message_metadata = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.chat.v1.QuotedMessageMetadata quoted_message_metadata = 39 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The quotedMessageMetadata. @@ -9338,12 +9383,21 @@ public com.google.chat.v1.QuotedMessageMetadata getQuotedMessageMetadata() { * * *
-     * Output only. Information about a message that's quoted by a Google Chat
-     * user in a space. Google Chat users can quote a message to reply to it.
+     * Optional. Information about a message that another message quotes.
+     *
+     * When you create a message, you can quote messages within the same
+     * thread, or quote a root message to create a new root message.
+     * However, you can't quote a message reply from a different thread.
+     *
+     * When you update a message, you can't add or replace the
+     * `quotedMessageMetadata` field, but you can remove it.
+     *
+     * For example usage, see [Quote another
+     * message](https://developers.google.com/workspace/chat/create-messages#quote-a-message).
      * 
* * - * .google.chat.v1.QuotedMessageMetadata quoted_message_metadata = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.chat.v1.QuotedMessageMetadata quoted_message_metadata = 39 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setQuotedMessageMetadata(com.google.chat.v1.QuotedMessageMetadata value) { @@ -9364,12 +9418,21 @@ public Builder setQuotedMessageMetadata(com.google.chat.v1.QuotedMessageMetadata * * *
-     * Output only. Information about a message that's quoted by a Google Chat
-     * user in a space. Google Chat users can quote a message to reply to it.
+     * Optional. Information about a message that another message quotes.
+     *
+     * When you create a message, you can quote messages within the same
+     * thread, or quote a root message to create a new root message.
+     * However, you can't quote a message reply from a different thread.
+     *
+     * When you update a message, you can't add or replace the
+     * `quotedMessageMetadata` field, but you can remove it.
+     *
+     * For example usage, see [Quote another
+     * message](https://developers.google.com/workspace/chat/create-messages#quote-a-message).
      * 
* * - * .google.chat.v1.QuotedMessageMetadata quoted_message_metadata = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.chat.v1.QuotedMessageMetadata quoted_message_metadata = 39 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setQuotedMessageMetadata( @@ -9388,12 +9451,21 @@ public Builder setQuotedMessageMetadata( * * *
-     * Output only. Information about a message that's quoted by a Google Chat
-     * user in a space. Google Chat users can quote a message to reply to it.
+     * Optional. Information about a message that another message quotes.
+     *
+     * When you create a message, you can quote messages within the same
+     * thread, or quote a root message to create a new root message.
+     * However, you can't quote a message reply from a different thread.
+     *
+     * When you update a message, you can't add or replace the
+     * `quotedMessageMetadata` field, but you can remove it.
+     *
+     * For example usage, see [Quote another
+     * message](https://developers.google.com/workspace/chat/create-messages#quote-a-message).
      * 
* * - * .google.chat.v1.QuotedMessageMetadata quoted_message_metadata = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.chat.v1.QuotedMessageMetadata quoted_message_metadata = 39 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder mergeQuotedMessageMetadata(com.google.chat.v1.QuotedMessageMetadata value) { @@ -9420,12 +9492,21 @@ public Builder mergeQuotedMessageMetadata(com.google.chat.v1.QuotedMessageMetada * * *
-     * Output only. Information about a message that's quoted by a Google Chat
-     * user in a space. Google Chat users can quote a message to reply to it.
+     * Optional. Information about a message that another message quotes.
+     *
+     * When you create a message, you can quote messages within the same
+     * thread, or quote a root message to create a new root message.
+     * However, you can't quote a message reply from a different thread.
+     *
+     * When you update a message, you can't add or replace the
+     * `quotedMessageMetadata` field, but you can remove it.
+     *
+     * For example usage, see [Quote another
+     * message](https://developers.google.com/workspace/chat/create-messages#quote-a-message).
      * 
* * - * .google.chat.v1.QuotedMessageMetadata quoted_message_metadata = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.chat.v1.QuotedMessageMetadata quoted_message_metadata = 39 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearQuotedMessageMetadata() { @@ -9443,12 +9524,21 @@ public Builder clearQuotedMessageMetadata() { * * *
-     * Output only. Information about a message that's quoted by a Google Chat
-     * user in a space. Google Chat users can quote a message to reply to it.
+     * Optional. Information about a message that another message quotes.
+     *
+     * When you create a message, you can quote messages within the same
+     * thread, or quote a root message to create a new root message.
+     * However, you can't quote a message reply from a different thread.
+     *
+     * When you update a message, you can't add or replace the
+     * `quotedMessageMetadata` field, but you can remove it.
+     *
+     * For example usage, see [Quote another
+     * message](https://developers.google.com/workspace/chat/create-messages#quote-a-message).
      * 
* * - * .google.chat.v1.QuotedMessageMetadata quoted_message_metadata = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.chat.v1.QuotedMessageMetadata quoted_message_metadata = 39 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.chat.v1.QuotedMessageMetadata.Builder getQuotedMessageMetadataBuilder() { @@ -9461,12 +9551,21 @@ public com.google.chat.v1.QuotedMessageMetadata.Builder getQuotedMessageMetadata * * *
-     * Output only. Information about a message that's quoted by a Google Chat
-     * user in a space. Google Chat users can quote a message to reply to it.
+     * Optional. Information about a message that another message quotes.
+     *
+     * When you create a message, you can quote messages within the same
+     * thread, or quote a root message to create a new root message.
+     * However, you can't quote a message reply from a different thread.
+     *
+     * When you update a message, you can't add or replace the
+     * `quotedMessageMetadata` field, but you can remove it.
+     *
+     * For example usage, see [Quote another
+     * message](https://developers.google.com/workspace/chat/create-messages#quote-a-message).
      * 
* * - * .google.chat.v1.QuotedMessageMetadata quoted_message_metadata = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.chat.v1.QuotedMessageMetadata quoted_message_metadata = 39 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.chat.v1.QuotedMessageMetadataOrBuilder getQuotedMessageMetadataOrBuilder() { @@ -9483,12 +9582,21 @@ public com.google.chat.v1.QuotedMessageMetadataOrBuilder getQuotedMessageMetadat * * *
-     * Output only. Information about a message that's quoted by a Google Chat
-     * user in a space. Google Chat users can quote a message to reply to it.
+     * Optional. Information about a message that another message quotes.
+     *
+     * When you create a message, you can quote messages within the same
+     * thread, or quote a root message to create a new root message.
+     * However, you can't quote a message reply from a different thread.
+     *
+     * When you update a message, you can't add or replace the
+     * `quotedMessageMetadata` field, but you can remove it.
+     *
+     * For example usage, see [Quote another
+     * message](https://developers.google.com/workspace/chat/create-messages#quote-a-message).
      * 
* * - * .google.chat.v1.QuotedMessageMetadata quoted_message_metadata = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.chat.v1.QuotedMessageMetadata quoted_message_metadata = 39 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageOrBuilder.java index 63ea2d77f277..77d886f180ff 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageOrBuilder.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageOrBuilder.java @@ -1265,12 +1265,21 @@ public interface MessageOrBuilder * * *
-   * Output only. Information about a message that's quoted by a Google Chat
-   * user in a space. Google Chat users can quote a message to reply to it.
+   * Optional. Information about a message that another message quotes.
+   *
+   * When you create a message, you can quote messages within the same
+   * thread, or quote a root message to create a new root message.
+   * However, you can't quote a message reply from a different thread.
+   *
+   * When you update a message, you can't add or replace the
+   * `quotedMessageMetadata` field, but you can remove it.
+   *
+   * For example usage, see [Quote another
+   * message](https://developers.google.com/workspace/chat/create-messages#quote-a-message).
    * 
* * - * .google.chat.v1.QuotedMessageMetadata quoted_message_metadata = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.chat.v1.QuotedMessageMetadata quoted_message_metadata = 39 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the quotedMessageMetadata field is set. @@ -1281,12 +1290,21 @@ public interface MessageOrBuilder * * *
-   * Output only. Information about a message that's quoted by a Google Chat
-   * user in a space. Google Chat users can quote a message to reply to it.
+   * Optional. Information about a message that another message quotes.
+   *
+   * When you create a message, you can quote messages within the same
+   * thread, or quote a root message to create a new root message.
+   * However, you can't quote a message reply from a different thread.
+   *
+   * When you update a message, you can't add or replace the
+   * `quotedMessageMetadata` field, but you can remove it.
+   *
+   * For example usage, see [Quote another
+   * message](https://developers.google.com/workspace/chat/create-messages#quote-a-message).
    * 
* * - * .google.chat.v1.QuotedMessageMetadata quoted_message_metadata = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.chat.v1.QuotedMessageMetadata quoted_message_metadata = 39 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The quotedMessageMetadata. @@ -1297,12 +1315,21 @@ public interface MessageOrBuilder * * *
-   * Output only. Information about a message that's quoted by a Google Chat
-   * user in a space. Google Chat users can quote a message to reply to it.
+   * Optional. Information about a message that another message quotes.
+   *
+   * When you create a message, you can quote messages within the same
+   * thread, or quote a root message to create a new root message.
+   * However, you can't quote a message reply from a different thread.
+   *
+   * When you update a message, you can't add or replace the
+   * `quotedMessageMetadata` field, but you can remove it.
+   *
+   * For example usage, see [Quote another
+   * message](https://developers.google.com/workspace/chat/create-messages#quote-a-message).
    * 
* * - * .google.chat.v1.QuotedMessageMetadata quoted_message_metadata = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.chat.v1.QuotedMessageMetadata quoted_message_metadata = 39 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.chat.v1.QuotedMessageMetadataOrBuilder getQuotedMessageMetadataOrBuilder(); diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageProto.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageProto.java index 5f0bc238f74b..563bfcba3871 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageProto.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageProto.java @@ -155,7 +155,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021deletion_metadata\030& \001(\0132" + " .google.chat.v1.DeletionMetadataB\003\340A\003\022K\n" + "\027quoted_message_metadata\030\' \001(\0132%.goo" - + "gle.chat.v1.QuotedMessageMetadataB\003\340A\003\0227\n\r" + + "gle.chat.v1.QuotedMessageMetadataB\003\340A\001\0227\n\r" + "attached_gifs\030* \003(\0132\033.google.chat.v1.AttachedGifB\003\340A\003\022?\n" + "\021accessory_widgets\030, \003" + "(\0132\037.google.chat.v1.AccessoryWidgetB\003\340A\001:C\352A@\n" @@ -163,10 +163,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013AttachedGif\022\020\n" + "\003uri\030\001 \001(\tB\003\340A\003\"\211\002\n" + "\025QuotedMessageMetadata\0221\n" - + "\004name\030\001 \001(\tB#\340A\003\372A\035\n" + + "\004name\030\001 \001(\tB#\340A\002\372A\035\n" + "\033chat.googleapis.com/Message\0229\n" + "\020last_update_time\030\002" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003:\201\001\352A~\n" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\002:\201\001\352A~\n" + ")chat.googleapis.com/QuotedMessageMetadata\022Qspaces/{space}/messages/{messag" + "e}/quotedMessageMetadata/{quoted_message_metadata}\"v\n" + "\006Thread\022\021\n" diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageMetadata.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageMetadata.java index 66a875bd1318..ddd9ef2c542d 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageMetadata.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageMetadata.java @@ -23,7 +23,17 @@ * * *
- * Information about a quoted message.
+ * Information about a message that another message quotes.
+ *
+ * When you create a message, you can quote messages within the same
+ * thread, or quote a root message to create a new root message.
+ * However, you can't quote a message reply from a different thread.
+ *
+ * When you update a message, you can't add or replace the
+ * `quotedMessageMetadata` field, but you can remove it.
+ *
+ * For example usage, see [Quote another
+ * message](https://developers.google.com/workspace/chat/create-messages#quote-a-message).
  * 
* * Protobuf type {@code google.chat.v1.QuotedMessageMetadata} @@ -74,13 +84,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Output only. Resource name of the quoted message.
+   * Required. Resource name of the message that is quoted.
    *
    * Format: `spaces/{space}/messages/{message}`
    * 
* * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The name. @@ -102,13 +112,13 @@ public java.lang.String getName() { * * *
-   * Output only. Resource name of the quoted message.
+   * Required. Resource name of the message that is quoted.
    *
    * Format: `spaces/{space}/messages/{message}`
    * 
* * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for name. @@ -133,12 +143,18 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * Output only. The timestamp when the quoted message was created or when the
+   * Required. The timestamp when the quoted message was created or when the
    * quoted message was last updated.
+   *
+   * If the message was edited, use this field, `last_update_time`.
+   * If the message was never edited, use `create_time`.
+   *
+   * If `last_update_time` doesn't match the latest version of the quoted
+   * message, the request fails.
    * 
* * - * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @return Whether the lastUpdateTime field is set. @@ -152,12 +168,18 @@ public boolean hasLastUpdateTime() { * * *
-   * Output only. The timestamp when the quoted message was created or when the
+   * Required. The timestamp when the quoted message was created or when the
    * quoted message was last updated.
+   *
+   * If the message was edited, use this field, `last_update_time`.
+   * If the message was never edited, use `create_time`.
+   *
+   * If `last_update_time` doesn't match the latest version of the quoted
+   * message, the request fails.
    * 
* * - * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @return The lastUpdateTime. @@ -173,12 +195,18 @@ public com.google.protobuf.Timestamp getLastUpdateTime() { * * *
-   * Output only. The timestamp when the quoted message was created or when the
+   * Required. The timestamp when the quoted message was created or when the
    * quoted message was last updated.
+   *
+   * If the message was edited, use this field, `last_update_time`.
+   * If the message was never edited, use `create_time`.
+   *
+   * If `last_update_time` doesn't match the latest version of the quoted
+   * message, the request fails.
    * 
* * - * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = REQUIRED]; * */ @java.lang.Override @@ -365,7 +393,17 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Information about a quoted message.
+   * Information about a message that another message quotes.
+   *
+   * When you create a message, you can quote messages within the same
+   * thread, or quote a root message to create a new root message.
+   * However, you can't quote a message reply from a different thread.
+   *
+   * When you update a message, you can't add or replace the
+   * `quotedMessageMetadata` field, but you can remove it.
+   *
+   * For example usage, see [Quote another
+   * message](https://developers.google.com/workspace/chat/create-messages#quote-a-message).
    * 
* * Protobuf type {@code google.chat.v1.QuotedMessageMetadata} @@ -579,13 +617,13 @@ public Builder mergeFrom( * * *
-     * Output only. Resource name of the quoted message.
+     * Required. Resource name of the message that is quoted.
      *
      * Format: `spaces/{space}/messages/{message}`
      * 
* * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The name. @@ -606,13 +644,13 @@ public java.lang.String getName() { * * *
-     * Output only. Resource name of the quoted message.
+     * Required. Resource name of the message that is quoted.
      *
      * Format: `spaces/{space}/messages/{message}`
      * 
* * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for name. @@ -633,13 +671,13 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. Resource name of the quoted message.
+     * Required. Resource name of the message that is quoted.
      *
      * Format: `spaces/{space}/messages/{message}`
      * 
* * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @param value The name to set. @@ -659,13 +697,13 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. Resource name of the quoted message.
+     * Required. Resource name of the message that is quoted.
      *
      * Format: `spaces/{space}/messages/{message}`
      * 
* * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -681,13 +719,13 @@ public Builder clearName() { * * *
-     * Output only. Resource name of the quoted message.
+     * Required. Resource name of the message that is quoted.
      *
      * Format: `spaces/{space}/messages/{message}`
      * 
* * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @param value The bytes for name to set. @@ -715,12 +753,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only. The timestamp when the quoted message was created or when the
+     * Required. The timestamp when the quoted message was created or when the
      * quoted message was last updated.
+     *
+     * If the message was edited, use this field, `last_update_time`.
+     * If the message was never edited, use `create_time`.
+     *
+     * If `last_update_time` doesn't match the latest version of the quoted
+     * message, the request fails.
      * 
* * - * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @return Whether the lastUpdateTime field is set. @@ -733,12 +777,18 @@ public boolean hasLastUpdateTime() { * * *
-     * Output only. The timestamp when the quoted message was created or when the
+     * Required. The timestamp when the quoted message was created or when the
      * quoted message was last updated.
+     *
+     * If the message was edited, use this field, `last_update_time`.
+     * If the message was never edited, use `create_time`.
+     *
+     * If `last_update_time` doesn't match the latest version of the quoted
+     * message, the request fails.
      * 
* * - * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @return The lastUpdateTime. @@ -757,12 +807,18 @@ public com.google.protobuf.Timestamp getLastUpdateTime() { * * *
-     * Output only. The timestamp when the quoted message was created or when the
+     * Required. The timestamp when the quoted message was created or when the
      * quoted message was last updated.
+     *
+     * If the message was edited, use this field, `last_update_time`.
+     * If the message was never edited, use `create_time`.
+     *
+     * If `last_update_time` doesn't match the latest version of the quoted
+     * message, the request fails.
      * 
* * - * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder setLastUpdateTime(com.google.protobuf.Timestamp value) { @@ -783,12 +839,18 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. The timestamp when the quoted message was created or when the
+     * Required. The timestamp when the quoted message was created or when the
      * quoted message was last updated.
+     *
+     * If the message was edited, use this field, `last_update_time`.
+     * If the message was never edited, use `create_time`.
+     *
+     * If `last_update_time` doesn't match the latest version of the quoted
+     * message, the request fails.
      * 
* * - * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { @@ -806,12 +868,18 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderFo * * *
-     * Output only. The timestamp when the quoted message was created or when the
+     * Required. The timestamp when the quoted message was created or when the
      * quoted message was last updated.
+     *
+     * If the message was edited, use this field, `last_update_time`.
+     * If the message was never edited, use `create_time`.
+     *
+     * If `last_update_time` doesn't match the latest version of the quoted
+     * message, the request fails.
      * 
* * - * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { @@ -837,12 +905,18 @@ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. The timestamp when the quoted message was created or when the
+     * Required. The timestamp when the quoted message was created or when the
      * quoted message was last updated.
+     *
+     * If the message was edited, use this field, `last_update_time`.
+     * If the message was never edited, use `create_time`.
+     *
+     * If `last_update_time` doesn't match the latest version of the quoted
+     * message, the request fails.
      * 
* * - * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder clearLastUpdateTime() { @@ -860,12 +934,18 @@ public Builder clearLastUpdateTime() { * * *
-     * Output only. The timestamp when the quoted message was created or when the
+     * Required. The timestamp when the quoted message was created or when the
      * quoted message was last updated.
+     *
+     * If the message was edited, use this field, `last_update_time`.
+     * If the message was never edited, use `create_time`.
+     *
+     * If `last_update_time` doesn't match the latest version of the quoted
+     * message, the request fails.
      * 
* * - * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder() { @@ -878,12 +958,18 @@ public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder() { * * *
-     * Output only. The timestamp when the quoted message was created or when the
+     * Required. The timestamp when the quoted message was created or when the
      * quoted message was last updated.
+     *
+     * If the message was edited, use this field, `last_update_time`.
+     * If the message was never edited, use `create_time`.
+     *
+     * If `last_update_time` doesn't match the latest version of the quoted
+     * message, the request fails.
      * 
* * - * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { @@ -900,12 +986,18 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { * * *
-     * Output only. The timestamp when the quoted message was created or when the
+     * Required. The timestamp when the quoted message was created or when the
      * quoted message was last updated.
+     *
+     * If the message was edited, use this field, `last_update_time`.
+     * If the message was never edited, use `create_time`.
+     *
+     * If `last_update_time` doesn't match the latest version of the quoted
+     * message, the request fails.
      * 
* * - * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = REQUIRED]; * */ private com.google.protobuf.SingleFieldBuilderV3< diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageMetadataOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageMetadataOrBuilder.java index 8b8cc9131556..938ec4f3d709 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageMetadataOrBuilder.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageMetadataOrBuilder.java @@ -28,13 +28,13 @@ public interface QuotedMessageMetadataOrBuilder * * *
-   * Output only. Resource name of the quoted message.
+   * Required. Resource name of the message that is quoted.
    *
    * Format: `spaces/{space}/messages/{message}`
    * 
* * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The name. @@ -45,13 +45,13 @@ public interface QuotedMessageMetadataOrBuilder * * *
-   * Output only. Resource name of the quoted message.
+   * Required. Resource name of the message that is quoted.
    *
    * Format: `spaces/{space}/messages/{message}`
    * 
* * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for name. @@ -62,12 +62,18 @@ public interface QuotedMessageMetadataOrBuilder * * *
-   * Output only. The timestamp when the quoted message was created or when the
+   * Required. The timestamp when the quoted message was created or when the
    * quoted message was last updated.
+   *
+   * If the message was edited, use this field, `last_update_time`.
+   * If the message was never edited, use `create_time`.
+   *
+   * If `last_update_time` doesn't match the latest version of the quoted
+   * message, the request fails.
    * 
* * - * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @return Whether the lastUpdateTime field is set. @@ -78,12 +84,18 @@ public interface QuotedMessageMetadataOrBuilder * * *
-   * Output only. The timestamp when the quoted message was created or when the
+   * Required. The timestamp when the quoted message was created or when the
    * quoted message was last updated.
+   *
+   * If the message was edited, use this field, `last_update_time`.
+   * If the message was never edited, use `create_time`.
+   *
+   * If `last_update_time` doesn't match the latest version of the quoted
+   * message, the request fails.
    * 
* * - * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @return The lastUpdateTime. @@ -94,12 +106,18 @@ public interface QuotedMessageMetadataOrBuilder * * *
-   * Output only. The timestamp when the quoted message was created or when the
+   * Required. The timestamp when the quoted message was created or when the
    * quoted message was last updated.
+   *
+   * If the message was edited, use this field, `last_update_time`.
+   * If the message was never edited, use `create_time`.
+   *
+   * If `last_update_time` doesn't match the latest version of the quoted
+   * message, the request fails.
    * 
* * - * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = REQUIRED]; * */ com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder(); diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Space.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Space.java index cf3415e0ae53..b2adb9e10a95 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Space.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Space.java @@ -8403,8 +8403,8 @@ public com.google.chat.v1.Space.AccessSettingsOrBuilder getAccessSettingsOrBuild * and `SpaceType` is `SPACE`, otherwise should not be set. * * In the format `customers/{customer}`, where `customer` is the `id` from the - * [Admin SDK customer resource]( - * https://developers.google.com/admin-sdk/directory/reference/rest/v1/customers). + * [Admin SDK customer + * resource](https://developers.google.com/admin-sdk/directory/reference/rest/v1/customers). * Private apps can also use the `customers/my_customer` alias to create * the space in the same Google Workspace organization as the app. * @@ -8432,8 +8432,8 @@ public boolean hasCustomer() { * and `SpaceType` is `SPACE`, otherwise should not be set. * * In the format `customers/{customer}`, where `customer` is the `id` from the - * [Admin SDK customer resource]( - * https://developers.google.com/admin-sdk/directory/reference/rest/v1/customers). + * [Admin SDK customer + * resource](https://developers.google.com/admin-sdk/directory/reference/rest/v1/customers). * Private apps can also use the `customers/my_customer` alias to create * the space in the same Google Workspace organization as the app. * @@ -8469,8 +8469,8 @@ public java.lang.String getCustomer() { * and `SpaceType` is `SPACE`, otherwise should not be set. * * In the format `customers/{customer}`, where `customer` is the `id` from the - * [Admin SDK customer resource]( - * https://developers.google.com/admin-sdk/directory/reference/rest/v1/customers). + * [Admin SDK customer + * resource](https://developers.google.com/admin-sdk/directory/reference/rest/v1/customers). * Private apps can also use the `customers/my_customer` alias to create * the space in the same Google Workspace organization as the app. * @@ -12049,8 +12049,8 @@ public com.google.chat.v1.Space.AccessSettingsOrBuilder getAccessSettingsOrBuild * and `SpaceType` is `SPACE`, otherwise should not be set. * * In the format `customers/{customer}`, where `customer` is the `id` from the - * [Admin SDK customer resource]( - * https://developers.google.com/admin-sdk/directory/reference/rest/v1/customers). + * [Admin SDK customer + * resource](https://developers.google.com/admin-sdk/directory/reference/rest/v1/customers). * Private apps can also use the `customers/my_customer` alias to create * the space in the same Google Workspace organization as the app. * @@ -12077,8 +12077,8 @@ public boolean hasCustomer() { * and `SpaceType` is `SPACE`, otherwise should not be set. * * In the format `customers/{customer}`, where `customer` is the `id` from the - * [Admin SDK customer resource]( - * https://developers.google.com/admin-sdk/directory/reference/rest/v1/customers). + * [Admin SDK customer + * resource](https://developers.google.com/admin-sdk/directory/reference/rest/v1/customers). * Private apps can also use the `customers/my_customer` alias to create * the space in the same Google Workspace organization as the app. * @@ -12113,8 +12113,8 @@ public java.lang.String getCustomer() { * and `SpaceType` is `SPACE`, otherwise should not be set. * * In the format `customers/{customer}`, where `customer` is the `id` from the - * [Admin SDK customer resource]( - * https://developers.google.com/admin-sdk/directory/reference/rest/v1/customers). + * [Admin SDK customer + * resource](https://developers.google.com/admin-sdk/directory/reference/rest/v1/customers). * Private apps can also use the `customers/my_customer` alias to create * the space in the same Google Workspace organization as the app. * @@ -12149,8 +12149,8 @@ public com.google.protobuf.ByteString getCustomerBytes() { * and `SpaceType` is `SPACE`, otherwise should not be set. * * In the format `customers/{customer}`, where `customer` is the `id` from the - * [Admin SDK customer resource]( - * https://developers.google.com/admin-sdk/directory/reference/rest/v1/customers). + * [Admin SDK customer + * resource](https://developers.google.com/admin-sdk/directory/reference/rest/v1/customers). * Private apps can also use the `customers/my_customer` alias to create * the space in the same Google Workspace organization as the app. * @@ -12184,8 +12184,8 @@ public Builder setCustomer(java.lang.String value) { * and `SpaceType` is `SPACE`, otherwise should not be set. * * In the format `customers/{customer}`, where `customer` is the `id` from the - * [Admin SDK customer resource]( - * https://developers.google.com/admin-sdk/directory/reference/rest/v1/customers). + * [Admin SDK customer + * resource](https://developers.google.com/admin-sdk/directory/reference/rest/v1/customers). * Private apps can also use the `customers/my_customer` alias to create * the space in the same Google Workspace organization as the app. * @@ -12215,8 +12215,8 @@ public Builder clearCustomer() { * and `SpaceType` is `SPACE`, otherwise should not be set. * * In the format `customers/{customer}`, where `customer` is the `id` from the - * [Admin SDK customer resource]( - * https://developers.google.com/admin-sdk/directory/reference/rest/v1/customers). + * [Admin SDK customer + * resource](https://developers.google.com/admin-sdk/directory/reference/rest/v1/customers). * Private apps can also use the `customers/my_customer` alias to create * the space in the same Google Workspace organization as the app. * diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceOrBuilder.java index 663e50ad7ba2..4859c7c401a8 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceOrBuilder.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceOrBuilder.java @@ -587,8 +587,8 @@ public interface SpaceOrBuilder * and `SpaceType` is `SPACE`, otherwise should not be set. * * In the format `customers/{customer}`, where `customer` is the `id` from the - * [Admin SDK customer resource]( - * https://developers.google.com/admin-sdk/directory/reference/rest/v1/customers). + * [Admin SDK customer + * resource](https://developers.google.com/admin-sdk/directory/reference/rest/v1/customers). * Private apps can also use the `customers/my_customer` alias to create * the space in the same Google Workspace organization as the app. * @@ -613,8 +613,8 @@ public interface SpaceOrBuilder * and `SpaceType` is `SPACE`, otherwise should not be set. * * In the format `customers/{customer}`, where `customer` is the `id` from the - * [Admin SDK customer resource]( - * https://developers.google.com/admin-sdk/directory/reference/rest/v1/customers). + * [Admin SDK customer + * resource](https://developers.google.com/admin-sdk/directory/reference/rest/v1/customers). * Private apps can also use the `customers/my_customer` alias to create * the space in the same Google Workspace organization as the app. * @@ -639,8 +639,8 @@ public interface SpaceOrBuilder * and `SpaceType` is `SPACE`, otherwise should not be set. * * In the format `customers/{customer}`, where `customer` is the `id` from the - * [Admin SDK customer resource]( - * https://developers.google.com/admin-sdk/directory/reference/rest/v1/customers). + * [Admin SDK customer + * resource](https://developers.google.com/admin-sdk/directory/reference/rest/v1/customers). * Private apps can also use the `customers/my_customer` alias to create * the space in the same Google Workspace organization as the app. * diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/UpdateMessageRequest.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/UpdateMessageRequest.java index 6af502ec786a..5460e34deae0 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/UpdateMessageRequest.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/UpdateMessageRequest.java @@ -136,6 +136,8 @@ public com.google.chat.v1.MessageOrBuilder getMessageOrBuilder() { * * - `accessory_widgets` (Requires [app * authentication](/chat/api/guides/auth/service-accounts).) + * + * - `quoted_message_metadata` (Only allows removal of the quoted message.) *
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -169,6 +171,8 @@ public boolean hasUpdateMask() { * * - `accessory_widgets` (Requires [app * authentication](/chat/api/guides/auth/service-accounts).) + * + * - `quoted_message_metadata` (Only allows removal of the quoted message.) *
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -202,6 +206,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * - `accessory_widgets` (Requires [app * authentication](/chat/api/guides/auth/service-accounts).) + * + * - `quoted_message_metadata` (Only allows removal of the quoted message.) *
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -867,6 +873,8 @@ public com.google.chat.v1.MessageOrBuilder getMessageOrBuilder() { * * - `accessory_widgets` (Requires [app * authentication](/chat/api/guides/auth/service-accounts).) + * + * - `quoted_message_metadata` (Only allows removal of the quoted message.) *
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -899,6 +907,8 @@ public boolean hasUpdateMask() { * * - `accessory_widgets` (Requires [app * authentication](/chat/api/guides/auth/service-accounts).) + * + * - `quoted_message_metadata` (Only allows removal of the quoted message.) *
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -937,6 +947,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * - `accessory_widgets` (Requires [app * authentication](/chat/api/guides/auth/service-accounts).) + * + * - `quoted_message_metadata` (Only allows removal of the quoted message.) * * * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -977,6 +989,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * - `accessory_widgets` (Requires [app * authentication](/chat/api/guides/auth/service-accounts).) + * + * - `quoted_message_metadata` (Only allows removal of the quoted message.) * * * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1014,6 +1028,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * - `accessory_widgets` (Requires [app * authentication](/chat/api/guides/auth/service-accounts).) + * + * - `quoted_message_metadata` (Only allows removal of the quoted message.) * * * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1059,6 +1075,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * - `accessory_widgets` (Requires [app * authentication](/chat/api/guides/auth/service-accounts).) + * + * - `quoted_message_metadata` (Only allows removal of the quoted message.) * * * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1096,6 +1114,8 @@ public Builder clearUpdateMask() { * * - `accessory_widgets` (Requires [app * authentication](/chat/api/guides/auth/service-accounts).) + * + * - `quoted_message_metadata` (Only allows removal of the quoted message.) * * * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1128,6 +1148,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * - `accessory_widgets` (Requires [app * authentication](/chat/api/guides/auth/service-accounts).) + * + * - `quoted_message_metadata` (Only allows removal of the quoted message.) * * * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1164,6 +1186,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * - `accessory_widgets` (Requires [app * authentication](/chat/api/guides/auth/service-accounts).) + * + * - `quoted_message_metadata` (Only allows removal of the quoted message.) * * * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/UpdateMessageRequestOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/UpdateMessageRequestOrBuilder.java index d918b89fd052..cb772496ce8f 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/UpdateMessageRequestOrBuilder.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/UpdateMessageRequestOrBuilder.java @@ -82,6 +82,8 @@ public interface UpdateMessageRequestOrBuilder * * - `accessory_widgets` (Requires [app * authentication](/chat/api/guides/auth/service-accounts).) + * + * - `quoted_message_metadata` (Only allows removal of the quoted message.) * * * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -112,6 +114,8 @@ public interface UpdateMessageRequestOrBuilder * * - `accessory_widgets` (Requires [app * authentication](/chat/api/guides/auth/service-accounts).) + * + * - `quoted_message_metadata` (Only allows removal of the quoted message.) * * * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -142,6 +146,8 @@ public interface UpdateMessageRequestOrBuilder * * - `accessory_widgets` (Requires [app * authentication](/chat/api/guides/auth/service-accounts).) + * + * - `quoted_message_metadata` (Only allows removal of the quoted message.) * * * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/message.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/message.proto index 211881bf586f..9505139c64f9 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/message.proto +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/message.proto @@ -238,10 +238,19 @@ message Message { DeletionMetadata deletion_metadata = 38 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Information about a message that's quoted by a Google Chat - // user in a space. Google Chat users can quote a message to reply to it. + // Optional. Information about a message that another message quotes. + // + // When you create a message, you can quote messages within the same + // thread, or quote a root message to create a new root message. + // However, you can't quote a message reply from a different thread. + // + // When you update a message, you can't add or replace the + // `quotedMessageMetadata` field, but you can remove it. + // + // For example usage, see [Quote another + // message](https://developers.google.com/workspace/chat/create-messages#quote-a-message). QuotedMessageMetadata quoted_message_metadata = 39 - [(google.api.field_behavior) = OUTPUT_ONLY]; + [(google.api.field_behavior) = OPTIONAL]; // Output only. GIF images that are attached to the message. repeated AttachedGif attached_gifs = 42 @@ -266,25 +275,41 @@ message AttachedGif { string uri = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; } -// Information about a quoted message. +// Information about a message that another message quotes. +// +// When you create a message, you can quote messages within the same +// thread, or quote a root message to create a new root message. +// However, you can't quote a message reply from a different thread. +// +// When you update a message, you can't add or replace the +// `quotedMessageMetadata` field, but you can remove it. +// +// For example usage, see [Quote another +// message](https://developers.google.com/workspace/chat/create-messages#quote-a-message). message QuotedMessageMetadata { option (google.api.resource) = { type: "chat.googleapis.com/QuotedMessageMetadata" pattern: "spaces/{space}/messages/{message}/quotedMessageMetadata/{quoted_message_metadata}" }; - // Output only. Resource name of the quoted message. + // Required. Resource name of the message that is quoted. // // Format: `spaces/{space}/messages/{message}` string name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { type: "chat.googleapis.com/Message" } ]; - // Output only. The timestamp when the quoted message was created or when the + // Required. The timestamp when the quoted message was created or when the // quoted message was last updated. + // + // If the message was edited, use this field, `last_update_time`. + // If the message was never edited, use `create_time`. + // + // If `last_update_time` doesn't match the latest version of the quoted + // message, the request fails. google.protobuf.Timestamp last_update_time = 2 - [(google.api.field_behavior) = OUTPUT_ONLY]; + [(google.api.field_behavior) = REQUIRED]; } // A thread in a Google Chat space. For example usage, see @@ -456,6 +481,8 @@ message UpdateMessageRequest { // // - `accessory_widgets` (Requires [app // authentication](/chat/api/guides/auth/service-accounts).) + // + // - `quoted_message_metadata` (Only allows removal of the quoted message.) google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space.proto index 6eb96d73e4c1..03b533391a48 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space.proto +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space.proto @@ -355,8 +355,8 @@ message Space { // and `SpaceType` is `SPACE`, otherwise should not be set. // // In the format `customers/{customer}`, where `customer` is the `id` from the - // [Admin SDK customer resource]( - // https://developers.google.com/admin-sdk/directory/reference/rest/v1/customers). + // [Admin SDK customer + // resource](https://developers.google.com/admin-sdk/directory/reference/rest/v1/customers). // Private apps can also use the `customers/my_customer` alias to create // the space in the same Google Workspace organization as the app. // diff --git a/java-chronicle/README.md b/java-chronicle/README.md index 15742a736fa0..eadeb7ac0e54 100644 --- a/java-chronicle/README.md +++ b/java-chronicle/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.66.0 + 26.67.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-chronicle - 0.10.0 + 0.11.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-chronicle:0.10.0' +implementation 'com.google.cloud:google-cloud-chronicle:0.11.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-chronicle" % "0.10.0" +libraryDependencies += "com.google.cloud" % "google-cloud-chronicle" % "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-chronicle.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chronicle/0.10.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chronicle/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-cloudbuild/README.md b/java-cloudbuild/README.md index dbe5429c07ec..1f3c68cd7f74 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.66.0 + 26.67.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.74.0 + 3.75.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-build:3.74.0' +implementation 'com.google.cloud:google-cloud-build:3.75.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-build" % "3.74.0" +libraryDependencies += "com.google.cloud" % "google-cloud-build" % "3.75.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.74.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-build/3.75.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-cloudcommerceconsumerprocurement/README.md b/java-cloudcommerceconsumerprocurement/README.md index 1fa4f92bc640..b8353c808a1b 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.66.0 + 26.67.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.70.0 + 0.71.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudcommerceconsumerprocurement:0.70.0' +implementation 'com.google.cloud:google-cloud-cloudcommerceconsumerprocurement:0.71.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudcommerceconsumerprocurement" % "0.70.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudcommerceconsumerprocurement" % "0.71.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.70.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcommerceconsumerprocurement/0.71.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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 83405b94b3f4..d3e2d5434155 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.66.0 + 26.67.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.36.0 + 0.37.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudcontrolspartner:0.36.0' +implementation 'com.google.cloud:google-cloud-cloudcontrolspartner:0.37.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudcontrolspartner" % "0.36.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudcontrolspartner" % "0.37.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.36.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcontrolspartner/0.37.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-cloudquotas/README.md b/java-cloudquotas/README.md index d0c5b4b51299..673f13d3446b 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.66.0 + 26.67.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.40.0 + 0.41.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudquotas:0.40.0' +implementation 'com.google.cloud:google-cloud-cloudquotas:0.41.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudquotas" % "0.40.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudquotas" % "0.41.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.40.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudquotas/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-cloudsupport/README.md b/java-cloudsupport/README.md index 37453e98ee91..7a66cdb0fc5b 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.66.0 + 26.67.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.56.0 + 0.57.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudsupport:0.56.0' +implementation 'com.google.cloud:google-cloud-cloudsupport:0.57.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudsupport" % "0.56.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudsupport" % "0.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-cloudsupport.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudsupport/0.56.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudsupport/0.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-compute/README.md b/java-compute/README.md index d887a9c9ee17..7d4e825ac6fc 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.66.0 + 26.67.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.82.0 + 1.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-compute:1.82.0' +implementation 'com.google.cloud:google-cloud-compute:1.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-compute" % "1.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-compute" % "1.83.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.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-compute/1.83.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-compute/google-cloud-compute/src/main/resources/META-INF/native-image/com.google.cloud.compute.v1/reflect-config.json b/java-compute/google-cloud-compute/src/main/resources/META-INF/native-image/com.google.cloud.compute.v1/reflect-config.json index db6107ec2fb5..e74b9858c97a 100644 --- a/java-compute/google-cloud-compute/src/main/resources/META-INF/native-image/com.google.cloud.compute.v1/reflect-config.json +++ b/java-compute/google-cloud-compute/src/main/resources/META-INF/native-image/com.google.cloud.compute.v1/reflect-config.json @@ -25379,6 +25379,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.ResourceStatusPhysicalHostTopology", "queryAllDeclaredConstructors": true, diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendService.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendService.java index df992e31d8f4..d0e4ab33013a 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendService.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendService.java @@ -928,6 +928,16 @@ public enum LocalityLbPolicy implements com.google.protobuf.ProtocolMessageEnum * ROUND_ROBIN = 153895801; */ ROUND_ROBIN(153895801), + /** + * + * + *
+     * Per-instance weighted Load Balancing via health check reported weights. In internal passthrough network load balancing, it is weighted rendezvous hashing. This option is only supported in internal passthrough network load balancing.
+     * 
+ * + * WEIGHTED_GCP_RENDEZVOUS = 82501640; + */ + WEIGHTED_GCP_RENDEZVOUS(82501640), /** * * @@ -1031,6 +1041,17 @@ public enum LocalityLbPolicy implements com.google.protobuf.ProtocolMessageEnum */ public static final int ROUND_ROBIN_VALUE = 153895801; + /** + * + * + *
+     * Per-instance weighted Load Balancing via health check reported weights. In internal passthrough network load balancing, it is weighted rendezvous hashing. This option is only supported in internal passthrough network load balancing.
+     * 
+ * + * WEIGHTED_GCP_RENDEZVOUS = 82501640; + */ + public static final int WEIGHTED_GCP_RENDEZVOUS_VALUE = 82501640; + /** * * @@ -1093,6 +1114,8 @@ public static LocalityLbPolicy forNumber(int value) { return RING_HASH; case 153895801: return ROUND_ROBIN; + case 82501640: + return WEIGHTED_GCP_RENDEZVOUS; case 254930962: return WEIGHTED_MAGLEV; case 5584977: diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendServiceLocalityLoadBalancingPolicyConfigPolicy.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendServiceLocalityLoadBalancingPolicyConfigPolicy.java index cf57a3ae29a5..cfbbf21969cf 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendServiceLocalityLoadBalancingPolicyConfigPolicy.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/BackendServiceLocalityLoadBalancingPolicyConfigPolicy.java @@ -151,6 +151,16 @@ public enum Name implements com.google.protobuf.ProtocolMessageEnum { * ROUND_ROBIN = 153895801; */ ROUND_ROBIN(153895801), + /** + * + * + *
+     * Per-instance weighted Load Balancing via health check reported weights. In internal passthrough network load balancing, it is weighted rendezvous hashing. This option is only supported in internal passthrough network load balancing.
+     * 
+ * + * WEIGHTED_GCP_RENDEZVOUS = 82501640; + */ + WEIGHTED_GCP_RENDEZVOUS(82501640), /** * * @@ -254,6 +264,17 @@ public enum Name implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ROUND_ROBIN_VALUE = 153895801; + /** + * + * + *
+     * Per-instance weighted Load Balancing via health check reported weights. In internal passthrough network load balancing, it is weighted rendezvous hashing. This option is only supported in internal passthrough network load balancing.
+     * 
+ * + * WEIGHTED_GCP_RENDEZVOUS = 82501640; + */ + public static final int WEIGHTED_GCP_RENDEZVOUS_VALUE = 82501640; + /** * * @@ -316,6 +337,8 @@ public static Name forNumber(int value) { return RING_HASH; case 153895801: return ROUND_ROBIN; + case 82501640: + return WEIGHTED_GCP_RENDEZVOUS; case 254930962: return WEIGHTED_MAGLEV; case 5584977: diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Compute.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Compute.java index 0f4721f8a05a..a18ad531ddb6 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Compute.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/Compute.java @@ -5300,6 +5300,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_ResourceStatus_descriptor; static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_compute_v1_ResourceStatus_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_ResourceStatusEffectiveInstanceMetadata_descriptor; + static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_compute_v1_ResourceStatusEffectiveInstanceMetadata_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_ResourceStatusPhysicalHostTopology_descriptor; static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -9035,7 +9039,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\213\365\315\001 \001(\tH\002\210\001\001B\n\n" + "\010_dry_runB\022\n" + "\020_max_utilizationB\007\n" - + "\005_name\"\322%\n" + + "\005_name\"\362%\n" + "\016BackendService\022(\n" + "\027affinity_cookie_ttl_sec\030\232\351\266\260\001 \001(\005H\000\210\001\001\0226\n" + "\010backends\030\337\230\313\363\001 \003(\0132" @@ -9138,7 +9142,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010INTERNAL\020\275\355\226\205\001\022\027\n" + "\020INTERNAL_MANAGED\020\375\327\347\021\022\034\n" + "\025INTERNAL_SELF_MANAGED\020\316\227\321p\022%\n" - + "\035INVALID_LOAD_BALANCING_SCHEME\020\374\223\246\203\001\"\374\001\n" + + "\035INVALID_LOAD_BALANCING_SCHEME\020\374\223\246\203\001\"\234\002\n" + "\020LocalityLbPolicy\022 \n" + "\034UNDEFINED_LOCALITY_LB_POLICY\020\000\022\031\n" + "\021INVALID_LB_POLICY\020\263\347\225\232\001\022\024\n\r" @@ -9147,7 +9151,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024ORIGINAL_DESTINATION\020\200\375\245O\022\r\n" + "\006RANDOM\020\303\261\227}\022\021\n" + "\tRING_HASH\020\275\333\257\316\001\022\022\n" - + "\013ROUND_ROBIN\020\371\206\261I\022\026\n" + + "\013ROUND_ROBIN\020\371\206\261I\022\036\n" + + "\027WEIGHTED_GCP_RENDEZVOUS\020\210\300\253\'\022\026\n" + "\017WEIGHTED_MAGLEV\020\222\340\307y\022\033\n" + "\024WEIGHTED_ROUND_ROBIN\020\321\360\324\002\"\231\001\n" + "\010Protocol\022\026\n" @@ -9215,8 +9220,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_tls_settings\"\313\003\n" + "\034BackendServiceAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022R\n" - + "\005items\030\300\317\367/ \003(\0132@.google.cloud.compute" - + ".v1.BackendServiceAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132@.google.cloud.compute.v1.BackendServiceAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -9230,13 +9235,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" - + "_self_linkB\n" - + "\n" + + "_self_linkB\n\n" + "\010_warning\"\267\007\n" + "\027BackendServiceCdnPolicy\022w\n" - + "\037bypass_cache_on_request_headers\030\312\275\353\347\001 " - + "\003(\0132J.google.cloud.compute.v1.BackendSer" - + "viceCdnPolicyBypassCacheOnRequestHeader\022I\n" + + "\037bypass_cache_on_request_headers\030\312\275\353\347\001 \003(\0132J.go" + + "ogle.cloud.compute.v1.BackendServiceCdnPolicyBypassCacheOnRequestHeader\022I\n" + "\020cache_key_policy\030\357\327\370K" + " \001(\0132\'.google.cloud.compute.v1.CacheKeyPolicyH\000\210\001\001\022\032\n\n" + "cache_mode\030\300\310\342\r" @@ -9246,8 +9249,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013default_ttl\030\356\375\346/ \001(\005H\003\210\001\001\022\030\n" + "\007max_ttl\030\221\211\325\222\001 \001(\005H\004\210\001\001\022!\n" + "\020negative_caching\030\265\303\242\240\001 \001(\010H\005\210\001\001\022i\n" - + "\027negative_caching_policy\030\374\265\212J \003(\0132E.google.cloud.compute." - + "v1.BackendServiceCdnPolicyNegativeCachingPolicy\022#\n" + + "\027negative_caching_policy\030\374\265\212J \003(\0132E.google.cloud.compute.v1.Backe" + + "ndServiceCdnPolicyNegativeCachingPolicy\022#\n" + "\022request_coalescing\030\324\204\210\376\001 \001(\010H\006\210\001\001\022!\n" + "\021serve_while_stale\030\333\367\355p \001(\005H\007\210\001\001\022-\n" + "\034signed_url_cache_max_age_sec\030\306\250\271\200\001" @@ -9310,8 +9313,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032_drop_traffic_if_unhealthyB\021\n" + "\017_failover_ratio\"\215\002\n" + "\031BackendServiceGroupHealth\022[\n" - + "\013annotations\030\244\366\2655 \003(\0132C.g" - + "oogle.cloud.compute.v1.BackendServiceGroupHealth.AnnotationsEntry\022@\n\r" + + "\013annotations\030\244\366\2655 \003(\0132C.google.cl" + + "oud.compute.v1.BackendServiceGroupHealth.AnnotationsEntry\022@\n\r" + "health_status\030\265\326\272\265\001" + " \003(\0132%.google.cloud.compute.v1.HealthStatus\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\000\210\001\001\0322\n" @@ -9331,8 +9334,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_leader\"\315\001\n" + "\034BackendServiceHAPolicyLeader\022\036\n\r" + "backend_group\030\224\302\244\332\001 \001(\tH\000\210\001\001\022f\n" - + "\020network_endpoint\030\206\221\212\033 \001(\0132D.goog" - + "le.cloud.compute.v1.BackendServiceHAPolicyLeaderNetworkEndpointH\001\210\001\001B\020\n" + + "\020network_endpoint\030\206\221\212\033 \001(\0132D.google.cloud" + + ".compute.v1.BackendServiceHAPolicyLeaderNetworkEndpointH\001\210\001\001B\020\n" + "\016_backend_groupB\023\n" + "\021_network_endpoint\"T\n" + "+BackendServiceHAPolicyLeaderNetworkEndpoint\022\030\n" @@ -9341,8 +9344,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030BackendServiceHttpCookie\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\000\210\001\001\022\024\n" + "\004path\030\245\310\321\001 \001(\tH\001\210\001\001\0225\n" - + "\003ttl\030\354\203\007 \001(" - + "\0132!.google.cloud.compute.v1.DurationH\002\210\001\001B\007\n" + + "\003ttl\030\354\203\007" + + " \001(\0132!.google.cloud.compute.v1.DurationH\002\210\001\001B\007\n" + "\005_nameB\007\n" + "\005_pathB\006\n" + "\004_ttl\"\373\001\n" @@ -9371,8 +9374,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_warning\"\263\002\n" + "\030BackendServiceListUsable\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\0229\n" - + "\005items\030\300\317\367/" - + " \003(\0132\'.google.cloud.compute.v1.BackendService\022\024\n" + + "\005items\030\300\317\367/ \003" + + "(\0132\'.google.cloud.compute.v1.BackendService\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -9384,19 +9387,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\253\002\n" + "/BackendServiceLocalityLoadBalancingPolicyConfig\022s\n\r" - + "custom_policy\030\300\213\246\002 \001(\0132T.google.cloud.compute.v1." - + "BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicyH\000\210\001\001\022f\n" - + "\006policy\030\262\312\266+ \001(\0132N.google.cloud.compute.v1.BackendSer" - + "viceLocalityLoadBalancingPolicyConfigPolicyH\001\210\001\001B\020\n" + + "custom_policy\030\300\213\246\002 \001(\0132T.google.cloud.compute.v1.BackendS" + + "erviceLocalityLoadBalancingPolicyConfigCustomPolicyH\000\210\001\001\022f\n" + + "\006policy\030\262\312\266+ \001(\0132N.google.cloud.compute.v1.BackendServiceLoca" + + "lityLoadBalancingPolicyConfigPolicyH\001\210\001\001B\020\n" + "\016_custom_policyB\t\n" + "\007_policy\"{\n" + ";BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy\022\024\n" + "\004data\030\252\337\273\001 \001(\tH\000\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\001\210\001\001B\007\n" + "\005_dataB\007\n" - + "\005_name\"\273\002\n" + + "\005_name\"\333\002\n" + "5BackendServiceLocalityLoadBalancingPolicyConfigPolicy\022\024\n" - + "\004name\030\213\365\315\001 \001(\tH\000\210\001\001\"\342\001\n" + + "\004name\030\213\365\315\001 \001(\tH\000\210\001\001\"\202\002\n" + "\004Name\022\022\n" + "\016UNDEFINED_NAME\020\000\022\031\n" + "\021INVALID_LB_POLICY\020\263\347\225\232\001\022\024\n\r" @@ -9405,7 +9408,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024ORIGINAL_DESTINATION\020\200\375\245O\022\r\n" + "\006RANDOM\020\303\261\227}\022\021\n" + "\tRING_HASH\020\275\333\257\316\001\022\022\n" - + "\013ROUND_ROBIN\020\371\206\261I\022\026\n" + + "\013ROUND_ROBIN\020\371\206\261I\022\036\n" + + "\027WEIGHTED_GCP_RENDEZVOUS\020\210\300\253\'\022\026\n" + "\017WEIGHTED_MAGLEV\020\222\340\307y\022\033\n" + "\024WEIGHTED_ROUND_ROBIN\020\321\360\324\002B\007\n" + "\005_name\"\260\002\n" @@ -9423,9 +9427,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016_optional_modeB\016\n" + "\014_sample_rate\"\275\001\n" + "\024BackendServiceParams\022i\n" - + "\025resource_manager_tags\030\374\233\213\264\001" - + " \003(\0132F.google.cloud.compute.v1.Backen" - + "dServiceParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132F.google" + + ".cloud.compute.v1.BackendServiceParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"O\n" @@ -9435,8 +9438,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031BackendServiceTlsSettings\022&\n" + "\025authentication_config\030\351\315\311\302\001 \001(\tH\000\210\001\001\022\022\n" + "\003sni\030\356\372\006 \001(\tH\001\210\001\001\022_\n" - + "\021subject_alt_names\030\337\263\257\235\001 \003(\0132@.google.cloud.com" - + "pute.v1.BackendServiceTlsSettingsSubjectAltNameB\030\n" + + "\021subject_alt_names\030\337\263\257\235\001" + + " \003(\0132@.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltNameB\030\n" + "\026_authentication_configB\006\n" + "\004_sni\"\237\001\n" + "\'BackendServiceTlsSettingsSubjectAltName\022\031\n" @@ -9520,17 +9523,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037bfd_session_initialization_mode\030\232\237\203h \001(\tH\000\210\001\001\022/\n" + "\036config_update_timestamp_micros\030\261\200\201\332\001" + " \001(\003H\001\210\001\001\022U\n" - + "\025control_packet_counts\030\371\322\233?" - + " \001(\0132..google.cloud.compute.v1.BfdStatusPacketCountsH\002\210\001\001\022N\n" - + "\030control_packet_intervals\030\371\347\346\356\001" - + " \003(\0132(.google.cloud.compute.v1.PacketIntervals\022!\n" + + "\025control_packet_counts\030\371\322\233? \001(\0132..google.cl" + + "oud.compute.v1.BfdStatusPacketCountsH\002\210\001\001\022N\n" + + "\030control_packet_intervals\030\371\347\346\356\001 \003(\0132" + + "(.google.cloud.compute.v1.PacketIntervals\022!\n" + "\020local_diagnostic\030\373\241\220\335\001 \001(\tH\003\210\001\001\022\033\n" + "\013local_state\030\275\225\222G \001(\tH\004\210\001\001\0227\n" + "\'negotiated_local_control_tx_interval_ms\030\224\321\260\n" + " \001(\r" + "H\005\210\001\001\022>\n" - + "\trx_packet\030\241\201\353\360\001 \001(" - + "\0132\".google.cloud.compute.v1.BfdPacketH\006\210\001\001\022=\n" + + "\trx_packet\030\241\201\353\360\001" + + " \001(\0132\".google.cloud.compute.v1.BfdPacketH\006\210\001\001\022=\n" + "\ttx_packet\030\243\275\2165" + " \001(\0132\".google.cloud.compute.v1.BfdPacketH\007\210\001\001\022\031\n" + "\tuptime_ms\030\335\332\345; \001(\003H\010\210\001\001\"\200\001\n" @@ -9569,11 +9572,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_uptime_ms\"\315\001\n" + "\025BfdStatusPacketCounts\022\026\n" + "\006num_rx\030\237\243\343\022 \001(\r" - + "H\000\210\001\001\022 \n" + + "H\000", + "\210\001\001\022 \n" + "\017num_rx_rejected\030\236\256\377\205\001 \001(\r" + "H\001\210\001\001\022\"\n" - + "\021num_rx_successful\030\272\212\221\331\001", - " \001(\r" + + "\021num_rx_successful\030\272\212\221\331\001 \001(\r" + "H\002\210\001\001\022\026\n" + "\006num_tx\030\335\243\343\022 \001(\r" + "H\003\210\001\001B\t\n" @@ -9585,8 +9588,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010as_paths\030\241\305\314A" + " \003(\0132\'.google.cloud.compute.v1.BgpRouteAsPath\022\026\n" + "\013communities\030\307\324\342Y \003(\t\022a\n" - + "\013destination\030\216\210\231V \001(\0132D.google.cloud.comp" - + "ute.v1.BgpRouteNetworkLayerReachabilityInformationH\000\210\001\001\022\022\n" + + "\013destination\030\216\210\231V \001(\0132D.google.cloud.compute.v1.BgpRouteN" + + "etworkLayerReachabilityInformationH\000\210\001\001\022\022\n" + "\003med\030\314\313\006 \001(\r" + "H\001\210\001\001\022\026\n" + "\006origin\030\246\336\206\037 \001(\tH\002\210\001\001\"m\n" @@ -9609,7 +9612,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "+BgpRouteNetworkLayerReachabilityInformation\022\030\n" + "\007path_id\030\365\276\315\206\001 \001(\r" + "H\000\210\001\001\022\026\n" - + "\006prefix\030\222\345\322, \001(\tH\001\210\001\001B\n\n" + + "\006prefix\030\222\345\322, \001(\tH\001\210\001\001B\n" + + "\n" + "\010_path_idB\t\n" + "\007_prefix\"\261\001\n" + "\007Binding\022\033\n\n" @@ -9622,8 +9626,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_conditionB\007\n" + "\005_role\"\350\001\n" + "\025BulkInsertDiskRequest\022d\n" - + "\"bulk_insert_disk_resource_resource\030\326\371\227\212\001" - + " \001(\0132/.google.cloud.compute.v1.BulkInsertDiskResourceB\003\340A\002\022!\n" + + "\"bulk_insert_disk_resource_resource\030\326\371\227\212\001 \001(\0132/.go" + + "ogle.cloud.compute.v1.BulkInsertDiskResourceB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -9634,8 +9638,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037source_consistency_group_policy\030\335\242\255\t \001(\tH\000\210\001\001B\"\n" + " _source_consistency_group_policy\"\363\001\n" + "\031BulkInsertInstanceRequest\022k\n" - + "&bulk_insert_instance_resource_resource\030\316\302\340\023" - + " \001(\01323.google.cloud.compute.v1.BulkInsertInstanceResourceB\003\340A\002\022!\n" + + "&bulk_insert_instance_resource_resource\030\316\302\340\023 \001(\01323.google.cl" + + "oud.compute.v1.BulkInsertInstanceResourceB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -9644,20 +9648,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\245\005\n" + "\032BulkInsertInstanceResource\022\025\n" + "\005count\030\217\242\235- \001(\003H\000\210\001\001\022P\n" - + "\023instance_properties\030\235\236\330f" - + " \001(\0132+.google.cloud.compute.v1.InstancePropertiesH\001\210\001\001\022I\n" - + "\017location_policy\030\374\271\207\336\001" - + " \001(\0132\'.google.cloud.compute.v1.LocationPolicyH\002\210\001\001\022\032\n" + + "\023instance_properties\030\235\236\330f \001(\0132" + + "+.google.cloud.compute.v1.InstancePropertiesH\001\210\001\001\022I\n" + + "\017location_policy\030\374\271\207\336\001 \001(\0132\'" + + ".google.cloud.compute.v1.LocationPolicyH\002\210\001\001\022\032\n" + "\tmin_count\030\342\251\277\371\001 \001(\003H\003\210\001\001\022\035\n" + "\014name_pattern\030\334\243\251\305\001 \001(\tH\004\210\001\001\022r\n" - + "\027per_instance_properties\030\373\271\3363 \003(\0132N.go" - + "ogle.cloud.compute.v1.BulkInsertInstanceResource.PerInstancePropertiesEntry\022)\n" + + "\027per_instance_properties\030\373\271\3363 \003(\0132N.google.cloud.compu" + + "te.v1.BulkInsertInstanceResource.PerInstancePropertiesEntry\022)\n" + "\030source_instance_template\030\300\303\301\236\001 \001(" + "\tH\005\210\001\001\032\206\001\n" + "\032PerInstancePropertiesEntry\022\013\n" + "\003key\030\001 \001(\t\022W\n" - + "\005value\030\002 \001(\0132H.google.cloud.compute" - + ".v1.BulkInsertInstanceResourcePerInstanceProperties:\0028\001B\010\n" + + "\005value\030\002 \001(\0132H.google.cloud.compute.v1.BulkInsertIn" + + "stanceResourcePerInstanceProperties:\0028\001B\010\n" + "\006_countB\026\n" + "\024_instance_propertiesB\022\n" + "\020_location_policyB\014\n\n" @@ -9687,24 +9691,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_statusB\022\n" + "\020_target_vm_count\"\362\001\n" + "\033BulkInsertRegionDiskRequest\022d\n" - + "\"bulk_insert_disk_resource_resource\030\326\371\227\212\001 \001(\0132/.google.cloud" - + ".compute.v1.BulkInsertDiskResourceB\003\340A\002\022!\n" + + "\"bulk_insert_disk_resource_resource\030\326\371\227\212\001" + + " \001(\0132/.google.cloud.compute.v1.BulkInsertDiskResourceB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\375\001\n" + "\037BulkInsertRegionInstanceRequest\022k\n" - + "&bulk_insert_instance_resource_resource\030\316\302\340\023 \001(\01323." - + "google.cloud.compute.v1.BulkInsertInstanceResourceB\003\340A\002\022!\n" + + "&bulk_insert_instance_resource_resource\030\316\302\340\023" + + " \001(\01323.google.cloud.compute.v1.BulkInsertInstanceResourceB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\227\002\n" + "\030BulkSetLabelsDiskRequest\022i\n" - + "%bulk_zone_set_labels_request_resource\030\233\245\254\375\001" - + " \001(\01321.google.cloud.compute.v1.BulkZoneSetLabelsRequestB\003\340A\002\022!\n" + + "%bulk_zone_set_labels_request_resource\030\233\245\254\375\001 \001(\01321.google." + + "cloud.compute.v1.BulkZoneSetLabelsRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\030\n" @@ -9715,8 +9719,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\t_resource\"\315\001\n" + "\024BulkSetLabelsRequest\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\000\210\001\001\022M\n" - + "\006labels\030\377\277\301\356\001" - + " \003(\01329.google.cloud.compute.v1.BulkSetLabelsRequest.LabelsEntry\032-\n" + + "\006labels\030\377\277\301\356\001 \003(\01329.googl" + + "e.cloud.compute.v1.BulkSetLabelsRequest.LabelsEntry\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001B\024\n" @@ -9782,8 +9786,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017firewall_policy\030\321\212\306\355\001 \001(\tB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" - + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n" - + "\n" + + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022&\n" + "\026source_firewall_policy\030\255\332\366\013 \001(\tH\001\210\001\001B\r\n" + "\013_request_idB\031\n" @@ -9798,8 +9801,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025existing_reservations\030\333\210\214\353\001 \003(\t\022\020\n" + "\002id\030\233\032 \001(\004H\006\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\007\210\001\001\022U\n" - + "\020license_resource\030\314\324\352\320\001" - + " \001(\01322.google.cloud.compute.v1.LicenseResourceCommitmentH\010\210\001\001\022#\n" + + "\020license_resource\030\314\324\352\320\001 \001" + + "(\01322.google.cloud.compute.v1.LicenseResourceCommitmentH\010\210\001\001\022#\n" + "\030merge_source_commitments\030\301\252\330Y \003(\t\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\t\210\001\001\022\024\n" + "\004plan\030\251\226\322\001 \001(\tH\n" @@ -9807,8 +9810,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tH\013\210\001\001\022>\n" + "\014reservations\030\247\354\314\276\001" + " \003(\0132$.google.cloud.compute.v1.Reservation\022R\n" - + "\017resource_status\030\303\372\367v \001(\01321.googl" - + "e.cloud.compute.v1.CommitmentResourceStatusH\014\210\001\001\022A\n" + + "\017resource_status\030\303\372\367v" + + " \001(\01321.google.cloud.compute.v1.CommitmentResourceStatusH\014\210\001\001\022A\n" + "\tresources\030\245\374\262N" + " \003(\0132+.google.cloud.compute.v1.ResourceCommitment\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\r" @@ -9889,8 +9892,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_type\"\277\003\n" + "\030CommitmentAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022N\n" - + "\005items\030\300\317\367/ \003(\0132<.google.cloud.c" - + "ompute.v1.CommitmentAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132<.google.cloud.compute.v1.CommitmentAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -9899,8 +9902,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032\\\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022=\n" - + "\005value\030\002" - + " \001(\0132..google.cloud.compute.v1.CommitmentsScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\0132." + + ".google.cloud.compute.v1.CommitmentsScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -9924,8 +9927,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tH\000\210\001\001B(\n" + "&_custom_term_eligibility_end_timestamp\"\234\001\n" + "\025CommitmentsScopedList\022<\n" - + "\013commitments\030\376\257\362\326\001 \003(" - + "\0132#.google.cloud.compute.v1.Commitment\0229\n" + + "\013commitments\030\376\257\362\326\001" + + " \003(\0132#.google.cloud.compute.v1.Commitment\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\320\002\n" @@ -9946,9 +9949,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024draining_timeout_sec\030\236\325\254k \001(\005H\000\210\001\001B\027\n" + "\025_draining_timeout_sec\"\210\002\n" + "\"ConsistentHashLoadBalancerSettings\022b\n" - + "\013http_cookie\030\373\253\227\003 \001(\0132E.g" - + "oogle.cloud.compute.v1.ConsistentHashLoadBalancerSettingsHttpCookieH\000\210\001\001\022" - + " \n" + + "\013http_cookie\030\373\253\227\003 \001(\0132E.google.cloud.comp" + + "ute.v1.ConsistentHashLoadBalancerSettingsHttpCookieH\000\210\001\001\022 \n" + "\020http_header_name\030\306\367\372o \001(\tH\001\210\001\001\022!\n" + "\021minimum_ring_size\030\277\273\341o \001(\003H\002\210\001\001B\016\n" + "\014_http_cookieB\023\n" @@ -9977,8 +9979,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "*CreateInstancesInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\217\001\n" + "9instance_group_managers_create_instances_request_resource\030\223\372\332\013" - + " \001(\0132D.google.cloud.com" - + "pute.v1.InstanceGroupManagersCreateInstancesRequestB\003\340A\002\022!\n" + + " \001(\0132D.google.cloud.compute.v1.Instance" + + "GroupManagersCreateInstancesRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -9990,16 +9992,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\235\001\n" - + "@region_instance_group_managers_create_instances_request_resource\030\210\277\230\253\001" - + " \001(\0132J.google.cloud.compute.v1.RegionInst" - + "anceGroupManagersCreateInstancesRequestB\003\340A\002\022\032\n\n" + + "@region_" + + "instance_group_managers_create_instances_request_resource\030\210\277\230\253\001" + + " \001(\0132J.google.clo" + + "ud.compute.v1.RegionInstanceGroupManagersCreateInstancesRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\367\001\n" + "%CreateMembersInterconnectGroupRequest\022#\n" + "\022interconnect_group\030\216\267\251\271\001 \001(\tB\003\340A\002\022\205\001\n" + "3interconnect_groups_create_members_request_resource\030\355\374\213\246\001" - + " \001(\0132?.googl" - + "e.cloud.compute.v1.InterconnectGroupsCreateMembersRequestB\003\340A\002\022!\n" + + " \001(\0132?.google.cloud.compute." + + "v1.InterconnectGroupsCreateMembersRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\"\221\002\n" + "\031CreateSnapshotDiskRequest\022\024\n" @@ -10012,8 +10015,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132!.google.cloud.compute.v1.SnapshotB\003\340A\002\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\016\n" - + "\014_guest_flushB\r" - + "\n" + + "\014_guest_flushB\r\n" + "\013_request_id\"\355\001\n" + "\037CreateSnapshotRegionDiskRequest\022\024\n" + "\004disk\030\235\233\274\001 \001(\tB\003\340A\002\022!\n" @@ -10022,12 +10024,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022E\n" + "\021snapshot_resource\030\251\270\301\345\001" - + " \001(\0132!.google.cloud.compute.v1.SnapshotB\003\340A\002B\r" - + "\n" + + " \001(\0132!.google.cloud.compute.v1.SnapshotB\003\340A\002B\r\n" + "\013_request_id\"\270\001\n" + "\031CustomErrorResponsePolicy\022j\n" - + "\024error_response_rules\030\220\255\374\006 \003(\0132I.g" - + "oogle.cloud.compute.v1.CustomErrorResponsePolicyCustomErrorResponseRule\022\035\n\r" + + "\024error_response_rules\030\220\255\374\006 \003(\0132I.google.cloud.comp" + + "ute.v1.CustomErrorResponsePolicyCustomErrorResponseRule\022\035\n\r" + "error_service\030\376\356\246N \001(\tH\000\210\001\001B\020\n" + "\016_error_service\"\266\001\n" + "0CustomErrorResponsePolicyCustomErrorResponseRule\022\037\n" @@ -10044,13 +10045,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021rsa_encrypted_key\030\245\303\374\237\001 \001(\tH\003\210\001\001\022\026\n" + "\006sha256\030\247\354\216Q \001(\tH\004\210\001\001B\017\n\r" + "_kms_key_nameB\032\n" - + "\030_kms_key_service_accountB\n\n" + + "\030_kms_key_service_accountB\n" + + "\n" + "\010_raw_keyB\024\n" + "\022_rsa_encrypted_keyB\t\n" + "\007_sha256\"\265\001\n" + "\"CustomerEncryptionKeyProtectedDisk\022T\n" - + "\023disk_encryption_key\030\205\355\304\201\001" - + " \001(\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\000\210\001\001\022\026\n" + + "\023disk_encryption_key\030\205\355\304\201\001 \001(\0132..go" + + "ogle.cloud.compute.v1.CustomerEncryptionKeyH\000\210\001\001\022\026\n" + "\006source\030\233\320\301T \001(\tH\001\210\001\001B\026\n" + "\024_disk_encryption_keyB\t\n" + "\007_source\"C\n" @@ -10124,8 +10126,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017forwarding_rule\030\376\245\335\200\001 \001(\tB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" - + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n" - + "\n" + + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\204\001\n" + "\032DeleteGlobalAddressRequest\022\030\n" @@ -10171,7 +10172,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005image\030\333\322\352/ \001(\tB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" - + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r" + + "\n" + "\013_request_id\"\266\001\n" + "!DeleteInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022!\n" @@ -10204,20 +10206,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" - + "\340A\002\362G\004zoneB\r" - + "\n" + + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\221\001\n" + "\035DeleteInstanceTemplateRequest\022\"\n" - + "\021instance_template\030\344\201\273\223\001 \001(\tB\003\340A\002\022!\n" + + "\021insta", + "nce_template\030\344\201\273\223\001 \001(\tB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" - + "\340A\002\362G\007project\022\032", - "\n\n" + + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\321\002\n" + "*DeleteInstancesInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\217\001\n" - + "9instance_group_managers_delete_instances_request_resource\030\204\306\255O \001(\0132" - + "D.google.cloud.compute.v1.InstanceGroupManagersDeleteInstancesRequestB\003\340A\002\022!\n" + + "9instance_group_managers_delete_instances_request_resource\030\204\306\255O" + + " \001(\0132D.google.cloud.c" + + "ompute.v1.InstanceGroupManagersDeleteInstancesRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -10229,10 +10231,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\235\001\n" - + "@region_instan" - + "ce_group_managers_delete_instances_request_resource\030\371\212\353\356\001" - + " \001(\0132J.google.cloud.com" - + "pute.v1.RegionInstanceGroupManagersDeleteInstancesRequestB\003\340A\002\022\032\n\n" + + "@region_instance_group_manager" + + "s_delete_instances_request_resource\030\371\212\353\356\001" + + " \001(\0132J.google.cloud.compute.v1.RegionIn" + + "stanceGroupManagersDeleteInstancesRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\254\001\n" + "\034DeleteInstantSnapshotRequest\022!\n" @@ -10329,10 +10331,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\227\002\n" - + "\033DeleteNodesNodeGroupRequest\022\033\n\n" + + "\033DeleteNodesNodeGroupRequest\022\033\n" + + "\n" + "node_group\030\202\374\213\340\001 \001(\tB\003\340A\002\022p\n" - + ")node_groups_delete_nodes_request_resource\030\222\327\263W" - + " \001(\01325.google.cloud.compute.v1.NodeGroupsDeleteNodesRequestB\003\340A\002\022!\n" + + ")node_groups_delete_nodes_request_resource\030\222\327\263W \001(\013" + + "25.google.cloud.compute.v1.NodeGroupsDeleteNodesRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -10349,10 +10352,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\274\002\n" + "3DeletePerInstanceConfigsInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\234\001\n" - + "@instance_group_man" - + "agers_delete_per_instance_configs_req_resource\030\240\352\350\254\001" - + " \001(\0132I.google.cloud.compute." - + "v1.InstanceGroupManagersDeletePerInstanceConfigsReqB\003\340A\002\022!\n" + + "@instance_group_managers_delete_per_instance_configs_req_resource\030\240\352\350\254\001" + + " \001(\0132I.google.cloud.compute.v1.InstanceGroup" + + "ManagersDeletePerInstanceConfigsReqB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" @@ -10363,8 +10365,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\234\001\n" + "Aregion_instance_group_manager_delete_instance_config_req_resource\030\205\233-" - + " \001(\0132J.google.cloud.compute.v1.Regio" - + "nInstanceGroupManagerDeleteInstanceConfigReqB\003\340A\002\"\236\001\n" + + " \001(\0132J.googl" + + "e.cloud.compute.v1.RegionInstanceGroupManagerDeleteInstanceConfigReqB\003\340A\002\"\236\001\n" + "$DeletePublicAdvertisedPrefixeRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022(\n" @@ -10382,7 +10384,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "autoscaler\030\327\375\322\366\001 \001(\tB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" - + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n" + + "\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\264\001\n" + "!DeleteRegionBackendServiceRequest\022 \n" @@ -10396,8 +10399,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004disk\030\235\233\274\001 \001(\tB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" - + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n" - + "\n" + + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\256\001\n" + "\036DeleteRegionHealthCheckRequest\022\035\n" @@ -10432,7 +10434,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020instant_snapshot\030\342\334\337\272\001 \001(\tB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" - + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n" + + "\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\301\001\n" + "\'DeleteRegionNetworkEndpointGroupRequest\022\'\n" @@ -10549,7 +10552,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\214\001\n" + "\033DeleteSecurityPolicyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" - + "\340A\002\362G\007project\022\032\n\n" + + "\340A\002\362G\007project\022\032\n" + + "\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\037\n" + "\017security_policy\030\221\206\312Q \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\264\001\n" @@ -10584,7 +10588,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\037\n" - + "\017ssl_certificate\030\344\327\222\026 \001(\tB\003\340A\002B\r\n" + + "\017ssl_certificate\030\344\327\222\026 \001(\tB\003\340A\002B\r" + + "\n" + "\013_request_id\"\203\001\n" + "\026DeleteSslPolicyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" @@ -10677,8 +10682,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\032\n\n" - + "vpn_tunnel\030\223\224\312D \001(\tB\003\340A\002B\r" - + "\n" + + "vpn_tunnel\030\223\224\312D \001(\tB\003\340A\002B\r\n" + "\013_request_id\"f\n" + "\032DeleteZoneOperationRequest\022\031\n" + "\toperation\030\347\252\353\030 \001(\tB\003\340A\002\022\027\n" @@ -10690,8 +10694,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005ports\030\222\360\3712 \003(\tB\017\n\r" + "_I_p_protocol\"\326\001\n" + "\025DeprecateImageRequest\022X\n" - + "\033deprecation_status_resource\030\360\211\345\236\001" - + " \001(\0132*.google.cloud.compute.v1.DeprecationStatusB\003\340A\002\022\025\n" + + "\033deprecation_status_resource\030\360\211\345\236\001 \001(\0132*.go" + + "ogle.cloud.compute.v1.DeprecationStatusB\003\340A\002\022\025\n" + "\005image\030\333\322\352/ \001(\tB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" @@ -10725,19 +10729,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\317\002\n" + "7DetachNetworkEndpointsGlobalNetworkEndpointGroupRequest\022\234\001\n" + "@global_network_endpoint_groups_detach_endpoints_request_resource\030\335\215\237\004" - + " \001(\0132J.google.cloud.compute.v1." - + "GlobalNetworkEndpointGroupsDetachEndpointsRequestB\003\340A\002\022\'\n" + + " \001(\0132J.google.cloud.compute.v1.GlobalNetworkEnd" + + "pointGroupsDetachEndpointsRequestB\003\340A\002\022\'\n" + "\026network_endpoint_group\030\206\313\363\316\001 \001(\tB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" - + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r" - + "\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\332\002\n" + "1DetachNetworkEndpointsNetworkEndpointGroupRequest\022\'\n" + "\026network_endpoint_group\030\206\313\363\316\001 \001(\tB\003\340A\002\022\220\001\n" + "9network_endpoint_groups_detach_endpoints_request_resource\030\371\240\356\365\001" - + " \001(\0132D.google.cloud.comp" - + "ute.v1.NetworkEndpointGroupsDetachEndpointsRequestB\003\340A\002\022!\n" + + " \001(\0132D.google.cloud.compute.v1.NetworkEn" + + "dpointGroupsDetachEndpointsRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -10749,10 +10752,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\235\001\n" - + "@region_network_endpoint_" - + "groups_detach_endpoints_request_resource\030\356\345\253\225\001" - + " \001(\0132J.google.cloud.compute.v1.Reg" - + "ionNetworkEndpointGroupsDetachEndpointsRequestB\003\340A\002\022\032\n\n" + + "@region_network_endpoint_groups_detach_endpoints_request_resource\030\356\345\253\225\001" + + " \001(\0132J.goo" + + "gle.cloud.compute.v1.RegionNetworkEndpointGroupsDetachEndpointsRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"l\n" + "\034DisableXpnHostProjectRequest\022!\n" @@ -10763,9 +10765,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " DisableXpnResourceProjectRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022z\n" - + ".projects_disable_xpn_resource_request_resource\030\252\324\334c" - + " \001(\0132:.google.cloud.compute.v" - + "1.ProjectsDisableXpnResourceRequestB\003\340A\002\022\032\n\n" + + ".projects_disable_xpn_resource_request_resource\030\252\324\334c \001(\0132" + + ":.google.cloud.compute.v1.ProjectsDisableXpnResourceRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\317\032\n" + "\004Disk\022\033\n" @@ -10773,12 +10774,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014architecture\030\323\322\261\220\001 \001(\tH\001\210\001\001\022Q\n" + "\022async_primary_disk\030\235\365\211V" + " \001(\0132-.google.cloud.compute.v1.DiskAsyncReplicationH\002\210\001\001\022Y\n" - + "\025async_secondary_disks\030\250\350\375\231\001 \003(\01326.google." - + "cloud.compute.v1.Disk.AsyncSecondaryDisksEntry\022\"\n" + + "\025async_secondary_disks\030\250\350\375\231\001" + + " \003(\01326.google.cloud.compute.v1.Disk.AsyncSecondaryDisksEntry\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\003\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\004\210\001\001\022T\n" - + "\023disk_encryption_key\030\205\355\304\201\001 \001(\0132..google.cloud" - + ".compute.v1.CustomerEncryptionKeyH\005\210\001\001\022+\n" + + "\023disk_encryption_key\030\205\355\304\201\001" + + " \001(\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\005\210\001\001\022+\n" + "\033enable_confidential_compute\030\274\353\3310 \001(\010H\006\210\001\001\022E\n" + "\021guest_os_features\030\321\340\347%" + " \003(\0132\'.google.cloud.compute.v1.GuestOsFeature\022\020\n" @@ -10796,8 +10797,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\213\365\315\001 \001(\tH\r" + "\210\001\001\022\030\n" + "\007options\030\236\215\232\254\001 \001(\tH\016\210\001\001\022;\n" - + "\006params\030\206\363\253% \001(\0132#." - + "google.cloud.compute.v1.DiskParamsH\017\210\001\001\022*\n" + + "\006params\030\206\363\253%" + + " \001(\0132#.google.cloud.compute.v1.DiskParamsH\017\210\001\001\022*\n" + "\031physical_block_size_bytes\030\207\240\243\310\001 \001(\003H\020\210\001\001\022" + " \n" + "\020provisioned_iops\030\324\275\207Y \001(\003H\021\210\001\001\022\'\n" @@ -10819,15 +10820,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013source_disk\030\301\356\264\327\001 \001(\tH\033\210\001\001\022\037\n" + "\016source_disk_id\030\331\315\311\330\001 \001(\tH\034\210\001\001\022\034\n" + "\014source_image\030\267\350\206\030 \001(\tH\035\210\001\001\022\\\n" - + "\033source_image_encryption_key\030\253\221\365\265\001 \001(\0132..google.c" - + "loud.compute.v1.CustomerEncryptionKeyH\036\210\001\001\022\037\n" + + "\033source_image_encryption_key\030\253\221\365\265\001" + + " \001(\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\036\210\001\001\022\037\n" + "\017source_image_id\030\243\374\260\032 \001(\tH\037\210\001\001\022\'\n" + "\027source_instant_snapshot\030\206\204\303h \001(\tH \210\001\001\022+\n" - + "\032source_instant_snapshot_id\030\364\323\220\211\001 \001(\tH!\210\001\001\022\037\n" + + "\032source_instant_s", + "napshot_id\030\364\323\220\211\001 \001(\tH!\210\001\001\022\037\n" + "\017source_snapshot\030\350\232\216< \001(\tH\"\210\001\001\022_\n" - + "\036so", - "urce_snapshot_encryption_key\030\332\216\347\220\001 \001(\0132." - + ".google.cloud.compute.v1.CustomerEncryptionKeyH#\210\001\001\022\"\n" + + "\036source_snapshot_encryption_key\030\332\216\347\220\001" + + " \001(\0132..google.cloud.compute.v1.CustomerEncryptionKeyH#\210\001\001\022\"\n" + "\022source_snapshot_id\030\322\226\230/ \001(\tH$\210\001\001\022%\n" + "\025source_storage_object\030\247\264\220o \001(\tH%\210\001\001\022\026\n" + "\006status\030\362\237\267V \001(\tH&\210\001\001\022\035\n" @@ -10837,8 +10838,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004zone\030\254\307\344\001 \001(\tH)\210\001\001\032m\n" + "\030AsyncSecondaryDisksEntry\022\013\n" + "\003key\030\001 \001(\t\022@\n" - + "\005value\030\002" - + " \001(\01321.google.cloud.compute.v1.DiskAsyncReplicationList:\0028\001\032-\n" + + "\005value\030\002 " + + "\001(\01321.google.cloud.compute.v1.DiskAsyncReplicationList:\0028\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"q\n\n" @@ -10904,8 +10905,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_zone\"\255\003\n" + "\022DiskAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022H\n" - + "\005items\030\300\317\367/ \003(\01326.googl" - + "e.cloud.compute.v1.DiskAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\01326.google.cloud.compute.v1.DiskAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -10930,8 +10931,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_diskB\n\n" + "\010_disk_id\"\214\001\n" + "\030DiskAsyncReplicationList\022U\n" - + "\026async_replication_disk\030\223\313\303n \001(\0132-.google.c" - + "loud.compute.v1.DiskAsyncReplicationH\000\210\001\001B\031\n" + + "\026async_replication_disk\030\223\313\303n" + + " \001(\0132-.google.cloud.compute.v1.DiskAsyncReplicationH\000\210\001\001B\031\n" + "\027_async_replication_disk\"\244\003\n" + "\027DiskInstantiationConfig\022\034\n" + "\013auto_delete\030\273\344\316\335\001 \001(\010H\000\210\001\001\022\034\n" @@ -10947,8 +10948,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016DO_NOT_INCLUDE\020\310\202\3311\022\023\n" + "\014SOURCE_IMAGE\020\227\340\356\035\022\032\n" + "\023SOURCE_IMAGE_FAMILY\020\214\311\322$B\016\n" - + "\014_auto_deleteB\017\n" - + "\r" + + "\014_auto_deleteB\017\n\r" + "_custom_imageB\016\n" + "\014_device_nameB\023\n" + "\021_instantiate_from\"\231\002\n" @@ -10971,20 +10971,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021_destination_zoneB\016\n" + "\014_target_disk\"\251\001\n\n" + "DiskParams\022_\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132<.google.cloud." - + "compute.v1.DiskParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001" + + " \003(\0132<.google.cloud.compute.v1.DiskParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\372\002\n" + "\022DiskResourceStatus\022e\n" - + "\022async_primary_disk\030\235\365\211V \001(\013" - + "2A.google.cloud.compute.v1.DiskResourceStatusAsyncReplicationStatusH\000\210\001\001\022g\n" - + "\025async_secondary_disks\030\250\350\375\231\001 \003(\0132D.google.clo" - + "ud.compute.v1.DiskResourceStatus.AsyncSecondaryDisksEntry\032}\n" + + "\022async_primary_disk\030\235\365\211V \001(\0132A.google.cloud." + + "compute.v1.DiskResourceStatusAsyncReplicationStatusH\000\210\001\001\022g\n" + + "\025async_secondary_disks\030\250\350\375\231\001" + + " \003(\0132D.google.cloud.compute.v1.Di" + + "skResourceStatus.AsyncSecondaryDisksEntry\032}\n" + "\030AsyncSecondaryDisksEntry\022\013\n" + "\003key\030\001 \001(\t\022P\n" - + "\005value\030\002 \001(\0132A.goog" - + "le.cloud.compute.v1.DiskResourceStatusAsyncReplicationStatus:\0028\001B\025\n" + + "\005value\030\002 \001(\0132A.google.cloud.compute" + + ".v1.DiskResourceStatusAsyncReplicationStatus:\0028\001B\025\n" + "\023_async_primary_disk\"\332\001\n" + "(DiskResourceStatusAsyncReplicationStatus\022\025\n" + "\005state\030\221\211\2534 \001(\tH\000\210\001\001\"\214\001\n" @@ -11024,19 +11025,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_zone\"\271\003\n" + "\026DiskTypeAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022L\n" - + "\005items\030\300\317\367/" - + " \003(\0132:.google.cloud.compute.v1.DiskTypeAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132:.goo" + + "gle.cloud.compute.v1.DiskTypeAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" + "\014unreachables\030\237\240\206t \003(\t\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" - + " .google.cloud.compute.v1.WarningH\004\210\001\001\032Z\n" - + "\n" + + " .google.cloud.compute.v1.WarningH\004\210\001\001\032Z\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022;\n" - + "\005value\030\002 \001(\0132" - + ",.google.cloud.compute.v1.DiskTypesScopedList:\0028\001B\005\n" + + "\005value\030\002" + + " \001(\0132,.google.cloud.compute.v1.DiskTypesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -11085,8 +11085,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017_enable_display\"\201\002\n" + "\022DistributionPolicy\022\035\n" + "\014target_shape\030\363\346\273\241\001 \001(\tH\000\210\001\001\022N\n" - + "\005zones\030\307\244\2557 \003(\0132<.google.cloud." - + "compute.v1.DistributionPolicyZoneConfiguration\"k\n" + + "\005zones\030\307\244\2557" + + " \003(\0132<.google.cloud.compute.v1.DistributionPolicyZoneConfiguration\"k\n" + "\013TargetShape\022\032\n" + "\026UNDEFINED_TARGET_SHAPE\020\000\022\t\n" + "\003ANY\020\314\373\003\022\026\n" @@ -11111,21 +11111,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022y\n" + "-projects_enable_xpn_resource_request_resource\030\257\320\233\311\001" - + " \001(\01329.google.cloud.compute.v1.ProjectsEnableXpnResourceRequestB\003\340A\002\022\032\n\n" + + " \001(\01329.google.cl" + + "oud.compute.v1.ProjectsEnableXpnResourceRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"<\n" + "\005Error\0223\n" + "\006errors\030\353\336\325\226\001" + " \003(\0132\037.google.cloud.compute.v1.Errors\"\327\002\n" + "\014ErrorDetails\022>\n\n" - + "error_info\030\205\241\205\014" - + " \001(\0132\".google.cloud.compute.v1.ErrorInfoH\000\210\001\001\0223\n" + + "error_info\030\205\241\205\014 \001(\0132\"." + + "google.cloud.compute.v1.ErrorInfoH\000\210\001\001\0223\n" + "\004help\030\301\236\303\001" + " \001(\0132\035.google.cloud.compute.v1.HelpH\001\210\001\001\022M\n" - + "\021localized_message\030\303\376\362\300\001" - + " \001(\0132).google.cloud.compute.v1.LocalizedMessageH\002\210\001\001\022F\n\n" - + "quota_info\030\225\324\344," - + " \001(\0132*.google.cloud.compute.v1.QuotaExceededInfoH\003\210\001\001B\r\n" + + "\021localized_message\030\303\376\362\300\001 \001" + + "(\0132).google.cloud.compute.v1.LocalizedMessageH\002\210\001\001\022F\n\n" + + "quota_info\030\225\324\344, \001(\0132*.goog" + + "le.cloud.compute.v1.QuotaExceededInfoH\003\210\001\001B\r\n" + "\013_error_infoB\007\n" + "\005_helpB\024\n" + "\022_localized_messageB\r\n" @@ -11168,8 +11169,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_type\"\274\002\n" + "\032ExchangedPeeringRoutesList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022@\n" - + "\005items\030\300\317\367/" - + " \003(\0132..google.cloud.compute.v1.ExchangedPeeringRoute\022\024\n" + + "\005items\030\300\317\367/ \003(\0132..g" + + "oogle.cloud.compute.v1.ExchangedPeeringRoute\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -11187,11 +11188,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\n" + "subnetwork\030\356\247\344\222\001 \001(\tB\003\340A\002\022\200\001\n" + "1subnetworks_expand_ip_cidr_range_request_resource\030\336\320\272\343\001" - + " \001(\0132<.google.cloud.compute.v1.S" - + "ubnetworksExpandIpCidrRangeRequestB\003\340A\002B\r\n" + + " \001(\0132<.g" + + "oogle.cloud.compute.v1.SubnetworksExpandIpCidrRangeRequestB\003\340A\002B\r\n" + "\013_request_id\"\251\001\n" + "\004Expr\022\034\n" - + "\013description\030\374\207\326\311\001 \001(\tH\000\210\001\001\022\033\n\n" + + "\013description\030\374\207\326\311\001 \001(\tH\000\210\001\001\022\033\n" + + "\n" + "expression\030\230\245\356\247\001 \001(\tH\001\210\001\001\022\031\n" + "\010location\030\265\277\276\212\001 \001(\tH\002\210\001\001\022\025\n" + "\005title\030\330\304\3204 \001(\tH\003\210\001\001B\016\n" @@ -11202,13 +11204,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022ExternalVpnGateway\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022\020\n" - + "\002id\030\233\032 \001(\004H\002\210\001\001\022K\n\n" - + "interfaces\030\332\364\340\005 \003(\01324.g" - + "oogle.cloud.compute.v1.ExternalVpnGatewayInterface\022\024\n" + + "\002id\030\233\032 \001(\004H\002\210\001\001\022K\n" + + "\n" + + "interfaces\030\332\364\340\005" + + " \003(\01324.google.cloud.compute.v1.ExternalVpnGatewayInterface\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\003\210\001\001\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\004\210\001\001\022K\n" - + "\006labels\030\377\277\301\356\001" - + " \003(\01327.google.cloud.compute.v1.ExternalVpnGateway.LabelsEntry\022\024\n" + + "\006labels\030\377\277\301\356\001 \003(\01327.google" + + ".cloud.compute.v1.ExternalVpnGateway.LabelsEntry\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\005\210\001\001\022 \n" + "\017redundancy_type\030\234\316\267\201\001 \001(\tH\006\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\007\210\001\001\032-\n" @@ -11239,8 +11242,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026ExternalVpnGatewayList\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\tH\001\210\001\001\022=\n" - + "\005items\030\300\317\367/" - + " \003(\0132+.google.cloud.compute.v1.ExternalVpnGateway\022\024\n" + + "\005items\030\300\317\367/ \003(\0132" + + "+.google.cloud.compute.v1.ExternalVpnGateway\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\0229\n" @@ -11273,8 +11276,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010disabled\030\374\364\230\201\001 \001(\010H\003\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\004\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\005\210\001\001\022G\n\n" - + "log_config\030\235\321\301\247\001 \001(\0132*.google." - + "cloud.compute.v1.FirewallLogConfigH\006\210\001\001\022\024\n" + + "log_config\030\235\321\301\247\001" + + " \001(\0132*.google.cloud.compute.v1.FirewallLogConfigH\006\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\007\210\001\001\022\027\n" + "\007network\030\256\264\205o \001(\tH\010\210\001\001\022?\n" + "\006params\030\206\363\253% \001(\0132\'.google.cloud.compute.v1.FirewallParamsH" @@ -11326,14 +11329,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_enableB\013\n" + "\t_metadata\"\261\001\n" + "\016FirewallParams\022c\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132" - + "@.google.cloud.compute.v1.FirewallParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132@.google.cloud.c" + + "ompute.v1.FirewallParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\227\001\n" + "(FirewallPoliciesListAssociationsResponse\022L\n" - + "\014associations\030\222\350\312\362\001 \003(\01322.g" - + "oogle.cloud.compute.v1.FirewallPolicyAssociation\022\024\n" + + "\014associations\030\222\350\312\362\001" + + " \003(\01322.google.cloud.compute.v1.FirewallPolicyAssociation\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\000\210\001\001B\007\n" + "\005_kind\"\253\001\n" + "\032FirewallPoliciesScopedList\022F\n" @@ -11343,8 +11346,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\227\006\n" + "\016FirewallPolicy\022L\n" - + "\014associations\030\222\350\312\362\001" - + " \003(\01322.google.cloud.compute.v1.FirewallPolicyAssociation\022\"\n" + + "\014associations\030\222\350\312\362\001 \003" + + "(\01322.google.cloud.compute.v1.FirewallPolicyAssociation\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022\034\n" + "\014display_name\030\350\207\221\002 \001(\tH\002\210\001\001\022\033\n" @@ -11352,13 +11355,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\002id\030\233\032 \001(\004H\004\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\005\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\006\210\001\001\022O\n" - + "\026packet_mirroring_rules\030\304\377\300\375\001" - + " \003(\0132+.google.cloud.compute.v1.FirewallPolicyRule\022\026\n" + + "\026packet_mirroring_rules\030\304\377\300\375\001 \003(\0132+." + + "google.cloud.compute.v1.FirewallPolicyRule\022\026\n" + "\006parent\030\252\221\254% \001(\tH\007\210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH\010\210\001\001\022!\n" + "\020rule_tuple_count\030\225\302\226\271\001 \001(\005H\t\210\001\001\022=\n" - + "\005rules\030\367\221\3653 \003(\0132" - + "+.google.cloud.compute.v1.FirewallPolicyRule\022\032\n" + + "\005rules\030\367\221\3653" + + " \003(\0132+.google.cloud.compute.v1.FirewallPolicyRule\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\n" + "\210\001\001\022!\n" + "\021self_link_with_id\030\202\254\235\025 \001(\tH\013\210\001\001\022\033\n\n" @@ -11389,8 +11392,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_short_name\"\203\002\n" + "\022FirewallPolicyList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\0229\n" - + "\005items\030\300\317\367/" - + " \003(\0132\'.google.cloud.compute.v1.FirewallPolicy\022\024\n" + + "\005items\030\300\317\367/ \003(\0132" + + "\'.google.cloud.compute.v1.FirewallPolicy\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" @@ -11406,16 +11409,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010disabled\030\374\364\230\201\001 \001(\010H\003\210\001\001\022\037\n" + "\016enable_logging\030\243\311\355\214\001 \001(\010H\004\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\005\210\001\001\022I\n" - + "\005match\030\305\263\2671 \001(\01322.google.cloud.co" - + "mpute.v1.FirewallPolicyRuleMatcherH\006\210\001\001\022\031\n" + + "\005match\030\305\263\2671" + + " \001(\01322.google.cloud.compute.v1.FirewallPolicyRuleMatcherH\006\210\001\001\022\031\n" + "\010priority\030\244\363\241\324\001 \001(\005H\007\210\001\001\022\031\n" + "\trule_name\030\356\263\256\032 \001(\tH\010\210\001\001\022!\n" + "\020rule_tuple_count\030\225\302\226\271\001 \001(\005H\t\210\001\001\022&\n" + "\026security_profile_group\030\252\263\363b \001(\tH\n" + "\210\001\001\022\034\n" + "\020target_resources\030\367\321\360\373\001 \003(\t\022T\n" - + "\022target_secure_tags\030\263\304\234\337\001 \003(\01324.google." - + "cloud.compute.v1.FirewallPolicyRuleSecureTag\022#\n" + + "\022target_secure_tags\030\263\304\234\337\001" + + " \003(\01324.google.cloud.compute.v1.FirewallPolicyRuleSecureTag\022#\n" + "\027target_service_accounts\030\236\216\234\332\001 \003(\t\022\033\n" + "\013tls_inspect\030\320\275\332\024 \001(\010H\013\210\001\001\"E\n" + "\tDirection\022\027\n" @@ -11441,16 +11444,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021dest_network_type\030\250\272\267\303\001 \001(\tH\000\210\001\001\022\034\n" + "\021dest_region_codes\030\230\253\371^ \003(\t\022$\n" + "\031dest_threat_intelligences\030\254\363\2259 \003(\t\022Z\n" - + "\016layer4_configs\030\265\334\216\262\001" - + " \003(\0132>.google.cloud.compute.v1.FirewallPolicyRuleMatcherLayer4Config\022\036\n" + + "\016layer4_configs\030\265\334\216\262\001 \003(\0132>.go" + + "ogle.cloud.compute.v1.FirewallPolicyRuleMatcherLayer4Config\022\036\n" + "\022src_address_groups\030\272\230\215\320\001 \003(\t\022\025\n" + "\tsrc_fqdns\030\343\314\355\317\001 \003(\t\022\031\n\r" + "src_ip_ranges\030\323\200\207\316\001 \003(\t\022!\n" + "\020src_network_type\030\246\362\335\223\001 \001(\tH\001\210\001\001\022\027\n" + "\014src_networks\030\200\200\353u \003(\t\022\033\n" + "\020src_region_codes\030\226\343\237/ \003(\t\022Q\n" - + "\017src_secure_tags\030\206\224\316\362\001 \003(\01324.go" - + "ogle.cloud.compute.v1.FirewallPolicyRuleSecureTag\022$\n" + + "\017src_secure_tags\030\206\224\316\362\001" + + " \003(\01324.google.cloud.compute.v1.FirewallPolicyRuleSecureTag\022$\n" + "\030src_threat_intelligences\030\252\357\250\232\001 \003(\t\"2\n" + "\017DestNetworkType\022\037\n" + "\033UNDEFINED_DEST_NETWORK_TYPE\020\000\"0\n" @@ -11495,15 +11498,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\210\001\001\022\033\n" + "\013fingerprint\030\344\321\363o \001(\tH\013\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\014\210\001\001\022\035\n\r" - + "ip_collection\030\266\221\250T \001(\tH\r" + + "ip_collection\030\266\221\250T \001(", + "\tH\r" + "\210\001\001\022\033\n\n" + "ip_version\030\300\363\322\214\001 \001(\tH\016\210\001\001\022&\n" - + "\026is_mirroring_collector\030\374\340", - "\3568 \001(\010H\017\210\001\001\022\024\n" + + "\026is_mirroring_collector\030\374\340\3568 \001(\010H\017\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\020\210\001\001\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\021\210\001\001\022G\n" - + "\006labels\030\377\277\301\356\001" - + " \003(\01323.google.cloud.compute.v1.ForwardingRule.LabelsEntry\022&\n" + + "\006labels\030\377\277\301\356\001 \003(\01323.googl" + + "e.cloud.compute.v1.ForwardingRule.LabelsEntry\022&\n" + "\025load_balancing_scheme\030\304\214\302\255\001 \001(\tH\022\210\001\001\022E\n" + "\020metadata_filters\030\353\315\314\335\001" + " \003(\0132\'.google.cloud.compute.v1.MetadataFilter\022\024\n" @@ -11518,8 +11521,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tH\032\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\033\210\001\001\022!\n" + "\021self_link_with_id\030\202\254\235\025 \001(\tH\034\210\001\001\022o\n" - + "\037service_directory_registrations\030\376\261\314j \003(\0132C.google.cloud.comp" - + "ute.v1.ForwardingRuleServiceDirectoryRegistration\022\036\n\r" + + "\037service_directory_registrations\030\376\261\314j" + + " \003(\0132C.google.cloud.compute.v1.ForwardingRuleServiceDirectoryRegistration\022\036\n\r" + "service_label\030\352\231\354\306\001 \001(\tH\035\210\001\001\022\035\n" + "\014service_name\030\325\253\315\253\001 \001(\tH\036\210\001\001\022\033\n" + "\020source_ip_ranges\030\312\243\2315 \003(\t\022\033\n\n" @@ -11605,8 +11608,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_target\"\313\003\n" + "\034ForwardingRuleAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022R\n" - + "\005items\030\300\317\367/ \003(\0132@.go" - + "ogle.cloud.compute.v1.ForwardingRuleAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132@.google.cloud.compu" + + "te.v1.ForwardingRuleAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -11615,8 +11618,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032`\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022A\n" - + "\005value\030\002 \001(\01322.google." - + "cloud.compute.v1.ForwardingRulesScopedList:\0028\001B\005\n" + + "\005value\030\002" + + " \001(\01322.google.cloud.compute.v1.ForwardingRulesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -11769,8 +11772,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036GetHealthBackendServiceRequest\022 \n" + "\017backend_service\030\212\300\256\222\001 \001(\tB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022b\n" - + "!resource_group_reference_resource\030\323\376\3555" - + " \001(\0132/.google.cloud.compute.v1.ResourceGroupReferenceB\003\340A\002\"O\n" + + "!resource_group_reference_resource\030\323\376\3555 \001(\0132/.google.cl" + + "oud.compute.v1.ResourceGroupReferenceB\003\340A\002\"O\n" + "\025GetHealthCheckRequest\022\035\n" + "\014health_check\030\345\252\244\223\001 \001(\tB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\"\335\001\n" @@ -11778,11 +11781,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017backend_service\030\212\300\256\222\001 \001(\tB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022b\n" - + "!resource_group_reference_resource\030\323\376\3555 \001(\0132/.google.c" - + "loud.compute.v1.ResourceGroupReferenceB\003\340A\002\"\304\001\n" + + "!resource_group_reference_resource\030\323\376\3555" + + " \001(\0132/.google.cloud.compute.v1.ResourceGroupReferenceB\003\340A\002\"\304\001\n" + "\032GetHealthTargetPoolRequest\022X\n" - + "\033instance_reference_resource\030\354\344\326\213\001 \001(\0132*.go" - + "ogle.cloud.compute.v1.InstanceReferenceB\003\340A\002\022\027\n" + + "\033instance_reference_resource\030\354\344\326\213\001" + + " \001(\0132*.google.cloud.compute.v1.InstanceReferenceB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\033\n" + "\013target_pool\030\212\344\370\035 \001(\tB\003\340A\002\"\255\001\n" @@ -12084,10 +12087,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\024\n" + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"\200\001\n" + "6GetOperationalStatusInterconnectAttachmentGroupRequest\022-\n" - + "\035interconnect_attachment_group\030\364\357\230$ \001(\tB\003\340A\002\022\027\n" + + "\035interconnect_attachment_group\030\364", + "\357\230$ \001(\tB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\"l\n" - + ",GetOperationalStatusInt", - "erconnectGroupRequest\022#\n" + + ",GetOperationalStatusInterconnectGroupRequest\022#\n" + "\022interconnect_group\030\216\267\251\271\001 \001(\tB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\"n\n" + "\031GetPacketMirroringRequest\022 \n" @@ -12387,11 +12390,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_descriptionB\026\n" + "\024_destination_address\"{\n" + "1GlobalNetworkEndpointGroupsAttachEndpointsRequest\022F\n" - + "\021network_endpoints\030\255\221\272G \003(\0132(" - + ".google.cloud.compute.v1.NetworkEndpoint\"{\n" + + "\021network_endpoints\030\255\221\272G" + + " \003(\0132(.google.cloud.compute.v1.NetworkEndpoint\"{\n" + "1GlobalNetworkEndpointGroupsDetachEndpointsRequest\022F\n" - + "\021network_endpoints\030\255\221\272G " - + "\003(\0132(.google.cloud.compute.v1.NetworkEndpoint\"\277\001\n" + + "\021network_endpoints\030\255\221\272G" + + " \003(\0132(.google.cloud.compute.v1.NetworkEndpoint\"\277\001\n" + "\"GlobalOrganizationSetPolicyRequest\0226\n" + "\010bindings\030\216\305\244\300\001 \003(\0132" + " .google.cloud.compute.v1.Binding\022\024\n" @@ -12402,8 +12405,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_policy\"\321\001\n" + "\026GlobalSetLabelsRequest\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\000\210\001\001\022O\n" - + "\006labels\030\377\277\301\356\001 \003(" - + "\0132;.google.cloud.compute.v1.GlobalSetLabelsRequest.LabelsEntry\032-\n" + + "\006labels\030\377\277\301\356\001 \003(\0132;.google.cloud" + + ".compute.v1.GlobalSetLabelsRequest.LabelsEntry\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001B\024\n" @@ -12428,8 +12431,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\005H\005\210\001\001\0229\n" + "(subblock_infra_maintenance_pending_count\030\232\331\301\221\001" + " \001(\005H\006\210\001\001\022Y\n" - + "\032upcoming_group_maintenance\030\360\311\315\273\001 \001(\0132" - + ",.google.cloud.compute.v1.UpcomingMaintenanceH\007\210\001\001\"\200\001\n" + + "\032upcoming_group_maintenance\030\360\311\315\273\001" + + " \001(\0132,.google.cloud.compute.v1.UpcomingMaintenanceH\007\210\001\001\"\200\001\n" + "\016SchedulingType\022\035\n" + "\031UNDEFINED_SCHEDULING_TYPE\020\000\022\017\n" + "\007GROUPED\020\276\326\243\342\001\022*\n" @@ -12446,8 +12449,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017GuestAttributes\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\000\210\001\001\022\033\n\n" + "query_path\030\274\202\341\257\001 \001(\tH\001\210\001\001\022J\n" - + "\013query_value\030\272\256\221K \001(\0132-.go" - + "ogle.cloud.compute.v1.GuestAttributesValueH\002\210\001\001\022\032\n" + + "\013query_value\030\272\256\221K" + + " \001(\0132-.google.cloud.compute.v1.GuestAttributesValueH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\034\n" + "\014variable_key\030\234\204\260N \001(\tH\004\210\001\001\022\036\n" + "\016variable_value\030\356\363\263; \001(\tH\005\210\001\001B\007\n" @@ -12465,8 +12468,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_namespaceB\010\n" + "\006_value\"W\n" + "\024GuestAttributesValue\022?\n" - + "\005items\030\300\317\367/ \003(\0132-.go" - + "ogle.cloud.compute.v1.GuestAttributesEntry\"\267\003\n" + + "\005items\030\300\317\367/" + + " \003(\0132-.google.cloud.compute.v1.GuestAttributesEntry\"\267\003\n" + "\016GuestOsFeature\022\024\n" + "\004type\030\272\236\332\001 \001(\tH\000\210\001\001\"\205\003\n" + "\004Type\022\022\n" @@ -12558,8 +12561,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023_port_specificationB\017\n\r" + "_proxy_headerB\017\n\r" + "_request_pathB\013\n" - + "\t_response\"\337\n" - + "\n" + + "\t_response\"\337\n\n" + "\013HealthCheck\022#\n" + "\022check_interval_sec\030\256\257\343\244\001 \001(\005H\000\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n" @@ -12569,22 +12571,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021healthy_threshold\030\311\220\242\300\001 \001(\005H\004\210\001\001\022M\n" + "\022http2_health_check\030\332\265\265\005" + " \001(\0132).google.cloud.compute.v1.HTTP2HealthCheckH\005\210\001\001\022L\n" - + "\021http_health_check\030\274\247\336\304\001" - + " \001(\0132(.google.cloud.compute.v1.HTTPHealthCheckH\006\210\001\001\022N\n" - + "\022https_health_check\030\271\230\366\317\001" - + " \001(\0132).google.cloud.compute.v1.HTTPSHealthCheckH\007\210\001\001\022\020\n" + + "\021http_health_check\030\274\247\336\304\001 " + + "\001(\0132(.google.cloud.compute.v1.HTTPHealthCheckH\006\210\001\001\022N\n" + + "\022https_health_check\030\271\230\366\317\001 \001" + + "(\0132).google.cloud.compute.v1.HTTPSHealthCheckH\007\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\010\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\t\210\001\001\022J\n\n" - + "log_config\030\235\321\301\247\001" - + " \001(\0132-.google.cloud.compute.v1.HealthCheckLogConfigH\n" + + "log_config\030\235\321\301\247\001 \001(\0132-.goo" + + "gle.cloud.compute.v1.HealthCheckLogConfigH\n" + "\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\013\210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH\014\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\r" + "\210\001\001\022\032\n" + "\016source_regions\030\333\367\261\301\001 \003(\t\022J\n" - + "\020ssl_health_check\030\270\351\303\205\001 \001(\0132\'.goo" - + "gle.cloud.compute.v1.SSLHealthCheckH\016\210\001\001\022J\n" + + "\020ssl_health_check\030\270\351\303\205\001" + + " \001(\0132\'.google.cloud.compute.v1.SSLHealthCheckH\016\210\001\001\022J\n" + "\020tcp_health_check\030\203\252\215\340\001" + " \001(\0132\'.google.cloud.compute.v1.TCPHealthCheckH\017\210\001\001\022\033\n" + "\013timeout_sec\030\363\300\222& \001(\005H\020\210\001\001\022\024\n" @@ -12669,8 +12671,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025_health_check_service\"\266\002\n" + "\027HealthCheckServicesList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022=\n" - + "\005items\030\300\317\367/ " - + "\003(\0132+.google.cloud.compute.v1.HealthCheckService\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132+.google.cloud.compute.v1.HealthCheckService\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -12683,8 +12685,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_warning\"\304\003\n" + "\032HealthChecksAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022P\n" - + "\005items\030\300\317\367/ \003(\0132" - + ">.google.cloud.compute.v1.HealthChecksAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132>.google.cloud.c" + + "ompute.v1.HealthChecksAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -12693,30 +12695,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032]\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022>\n" - + "\005value\030\002 \001(\0132/.googl" - + "e.cloud.compute.v1.HealthChecksScopedList:\0028\001B\005\n" + + "\005value\030\002" + + " \001(\0132/.google.cloud.compute.v1.HealthChecksScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" + "_self_linkB\n\n" + "\010_warning\"\240\001\n" + "\026HealthChecksScopedList\022?\n\r" - + "health_checks\030\256\257\346\325\001 \003(" - + "\0132$.google.cloud.compute.v1.HealthCheck\0229\n" + + "health_checks\030\256\257\346\325\001" + + " \003(\0132$.google.cloud.compute.v1.HealthCheck\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\362\006\n" + "\014HealthStatus\022N\n" - + "\013annotations\030\244\366\2655 \003(\01326.google" - + ".cloud.compute.v1.HealthStatus.AnnotationsEntry\022 \n" + + "\013annotations\030\244\366\2655" + + " \003(\01326.google.cloud.compute.v1.HealthStatus.AnnotationsEntry\022 \n" + "\017forwarding_rule\030\376\245\335\200\001 \001(\tH\000\210\001\001\022\"\n" + "\022forwarding_rule_ip\030\210\254\221R \001(\tH\001\210\001\001\022\035\n" + "\014health_state\030\356\351\277\232\001 \001(\tH\002\210\001\001\022\030\n" - + "\010instance\030\225\251\332\010 \001(\tH\003\210\001\001\022\033\n\n" + + "\010instance\030\225\251\332\010 \001(\tH\003\210\001\001\022\033", + "\n\n" + "ip_address\030\334\361\334\301\001 \001(\tH\004\210\001\001\022\035\n" + "\014ipv6_address\030\234\263\357\242\001 \001(\tH\005\210\001\001\022!\n" - + "\021ip", - "v6_health_state\030\306\200\340Z \001(\tH\006\210\001\001\022\024\n" + + "\021ipv6_health_state\030\306\200\340Z \001(\tH\006\210\001\001\022\024\n" + "\004port\030\201\261\322\001 \001(\005H\007\210\001\001\022\027\n" + "\006weight\030\370\204\305\206\001 \001(\tH\010\210\001\001\022\035\n" + "\014weight_error\030\201\373\222\371\001 \001(\tH\t\210\001\001\0322\n" @@ -12746,14 +12748,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_weightB\017\n\r" + "_weight_error\"\324\005\n" + "\036HealthStatusForNetworkEndpoint\022R\n" - + "\017backend_service\030\212\300\256\222\001" - + " \001(\01320.google.cloud.compute.v1.BackendServiceReferenceH\000\210\001\001\022R\n" - + "\017forwarding_rule\030\376\245\335\200\001 \001(\01320.google.cloud.c" - + "ompute.v1.ForwardingRuleReferenceH\001\210\001\001\022L\n" + + "\017backend_service\030\212\300\256\222\001 " + + "\001(\01320.google.cloud.compute.v1.BackendServiceReferenceH\000\210\001\001\022R\n" + + "\017forwarding_rule\030\376\245\335\200\001" + + " \001(\01320.google.cloud.compute.v1.ForwardingRuleReferenceH\001\210\001\001\022L\n" + "\014health_check\030\345\252\244\223\001" + " \001(\0132-.google.cloud.compute.v1.HealthCheckReferenceH\002\210\001\001\022[\n" - + "\024health_check_service\030\333\233\335\302\001 \001(\01324.google." - + "cloud.compute.v1.HealthCheckServiceReferenceH\003\210\001\001\022\035\n" + + "\024health_check_service\030\333\233\335\302\001" + + " \001(\01324.google.cloud.compute.v1.HealthCheckServiceReferenceH\003\210\001\001\022\035\n" + "\014health_state\030\356\351\277\232\001 \001(\tH\004\210\001\001\022!\n" + "\021ipv6_health_state\030\306\200\340Z \001(\tH\005\210\001\001\"p\n" + "\013HealthState\022\032\n" @@ -12866,8 +12868,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017HttpRetryPolicy\022\033\n" + "\013num_retries\030\215\253\201x \001(\r" + "H\000\210\001\001\022C\n" - + "\017per_try_timeout\030\273\255\304\205\001" - + " \001(\0132!.google.cloud.compute.v1.DurationH\001\210\001\001\022\033\n" + + "\017per_try_timeout\030\273\255\304\205\001 \001" + + "(\0132!.google.cloud.compute.v1.DurationH\001\210\001\001\022\033\n" + "\020retry_conditions\030\257\341\336\r" + " \003(\tB\016\n" + "\014_num_retriesB\022\n" @@ -12875,20 +12877,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017HttpRouteAction\022A\n" + "\013cors_policy\030\204\314\235\276\001" + " \001(\0132#.google.cloud.compute.v1.CorsPolicyH\000\210\001\001\022T\n" - + "\026fault_injection_policy\030\227\224\352\304\001" - + " \001(\0132+.google.cloud.compute.v1.HttpFaultInjectionH\001\210\001\001\022F\n" + + "\026fault_injection_policy\030\227\224\352\304\001 \001(\0132+.google." + + "cloud.compute.v1.HttpFaultInjectionH\001\210\001\001\022F\n" + "\023max_stream_duration\030\230\245\245\035" + " \001(\0132!.google.cloud.compute.v1.DurationH\002\210\001\001\022S\n" - + "\025request_mirror_policy\030\202\340\377h \001" - + "(\0132,.google.cloud.compute.v1.RequestMirrorPolicyH\003\210\001\001\022F\n" - + "\014retry_policy\030\251\345\212\033 \001(\0132(" - + ".google.cloud.compute.v1.HttpRetryPolicyH\004\210\001\001\022;\n" + + "\025request_mirror_policy\030\202\340\377h" + + " \001(\0132,.google.cloud.compute.v1.RequestMirrorPolicyH\003\210\001\001\022F\n" + + "\014retry_policy\030\251\345\212\033" + + " \001(\0132(.google.cloud.compute.v1.HttpRetryPolicyH\004\210\001\001\022;\n" + "\007timeout\030\341\232\275\215\001" + " \001(\0132!.google.cloud.compute.v1.DurationH\005\210\001\001\022A\n" + "\013url_rewrite\030\274\375\252\202\001" + " \001(\0132#.google.cloud.compute.v1.UrlRewriteH\006\210\001\001\022V\n" - + "\031weighted_backend_services\030\321\307\332\240\001" - + " \003(\0132/.google.cloud.compute.v1.WeightedBackendServiceB\016\n" + + "\031weighted_backend_services\030\321\307\332\240\001 \003(\0132/.g" + + "oogle.cloud.compute.v1.WeightedBackendServiceB\016\n" + "\014_cors_policyB\031\n" + "\027_fault_injection_policyB\026\n" + "\024_max_stream_durationB\030\n" @@ -12897,19 +12899,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_timeoutB\016\n" + "\014_url_rewrite\"\350\004\n\r" + "HttpRouteRule\022`\n" - + "\034custom_error_response_policy\030\353\370\332`" - + " \001(\01322.google.cloud.compute.v1.CustomErrorResponsePolicyH\000\210\001\001\022\034\n" + + "\034custom_error_response_policy\030\353\370\332` \001" + + "(\01322.google.cloud.compute.v1.CustomErrorResponsePolicyH\000\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022I\n\r" - + "header_action\030\250\240\270\234\001" - + " \001(\0132).google.cloud.compute.v1.HttpHeaderActionH\002\210\001\001\022D\n" + + "header_action\030\250\240\270\234\001 \001(\0132).g" + + "oogle.cloud.compute.v1.HttpHeaderActionH\002\210\001\001\022D\n" + "\013match_rules\030\375\273\261\263\001" + " \003(\0132+.google.cloud.compute.v1.HttpRouteRuleMatch\022\031\n" + "\010priority\030\244\363\241\324\001 \001(\005H\003\210\001\001\022G\n" + "\014route_action\030\354\251\271\312\001" + " \001(\0132(.google.cloud.compute.v1.HttpRouteActionH\004\210\001\001\022\030\n" + "\007service\030\265\215\217\262\001 \001(\tH\005\210\001\001\022J\n" - + "\014url_redirect\030\254\241\230\301\001 \001" - + "(\0132+.google.cloud.compute.v1.HttpRedirectActionH\006\210\001\001B\037\n" + + "\014url_redirect\030\254\241\230\301\001" + + " \001(\0132+.google.cloud.compute.v1.HttpRedirectActionH\006\210\001\001B\037\n" + "\035_custom_error_response_policyB\016\n" + "\014_descriptionB\020\n" + "\016_header_actionB\013\n" @@ -12926,8 +12928,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\0132\'.google.cloud.compute.v1.MetadataFilter\022$\n" + "\023path_template_match\030\232\302\263\213\001 \001(\tH\002\210\001\001\022\034\n" + "\014prefix_match\030\330\363\374z \001(\tH\003\210\001\001\022U\n" - + "\027query_parameter_matches\030\346\225\276\210\001 \003(\01320.google." - + "cloud.compute.v1.HttpQueryParameterMatch\022\033\n" + + "\027query_parameter_matches\030\346\225\276\210\001" + + " \003(\01320.google.cloud.compute.v1.HttpQueryParameterMatch\022\033\n" + "\013regex_match\030\315\267\2323 \001(\tH\004\210\001\001B\022\n" + "\020_full_path_matchB\016\n" + "\014_ignore_caseB\026\n" @@ -12947,13 +12949,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021guest_os_features\030\321\340\347%" + " \003(\0132\'.google.cloud.compute.v1.GuestOsFeature\022\020\n" + "\002id\030\233\032 \001(\004H\010\210\001\001\022U\n" - + "\024image_encryption_key\030\207\316\373\264\001 " - + "\001(\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\t\210\001\001\022\024\n" + + "\024image_encryption_key\030\207\316\373\264\001" + + " \001(\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\t\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\n" + "\210\001\001\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\013\210\001\001\022>\n" - + "\006labels\030\377\277\301\356\001" - + " \003(\0132*.google.cloud.compute.v1.Image.LabelsEntry\022\030\n\r" + + "\006labels\030\377\277\301\356\001 \003(\0132*." + + "google.cloud.compute.v1.Image.LabelsEntry\022\030\n\r" + "license_codes\030\250\205\330\025 \003(\003\022\024\n" + "\010licenses\030\322\210\200\241\001 \003(\t\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\014\210\001\001\022;\n" @@ -12962,19 +12964,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "satisfies_pzi\030\241\335\253\345\001 \001(\010H\016\210\001\001\022\036\n\r" + "satisfies_pzs\030\253\335\253\345\001 \001(\010H\017\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\020\210\001\001\022\\\n" - + "\037shielded_instance_initial_state\030\203\304\334[" - + " \001(\0132+.google.cloud.compute.v1.InitialStateConfigH\021\210\001\001\022\034\n" + + "\037shielded_instance_initial_state\030\203\304\334[ \001(\0132+.google.cl" + + "oud.compute.v1.InitialStateConfigH\021\210\001\001\022\034\n" + "\013source_disk\030\301\356\264\327\001 \001(\tH\022\210\001\001\022[\n" - + "\032source_disk_encryption_key\030\341\240\270\375\001" - + " \001(\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\023\210\001\001\022\037\n" + + "\032source_disk_encryption_key\030\341\240\270\375\001 \001(\0132..google.cl" + + "oud.compute.v1.CustomerEncryptionKeyH\023\210\001\001\022\037\n" + "\016source_disk_id\030\331\315\311\330\001 \001(\tH\024\210\001\001\022\034\n" + "\014source_image\030\267\350\206\030 \001(\tH\025\210\001\001\022\\\n" - + "\033source_image_encryption_key\030\253\221\365\265\001 \001(" - + "\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\026\210\001\001\022\037\n" + + "\033source_image_encryption_key\030\253\221\365\265\001 \001(\0132..google.cloud" + + ".compute.v1.CustomerEncryptionKeyH\026\210\001\001\022\037\n" + "\017source_image_id\030\243\374\260\032 \001(\tH\027\210\001\001\022\037\n" + "\017source_snapshot\030\350\232\216< \001(\tH\030\210\001\001\022_\n" - + "\036source_snapshot_encryption_key\030\332\216\347\220\001" - + " \001(\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\031\210\001\001\022\"\n" + + "\036source_snapshot_encryption_key\030\332\216\347\220\001 \001(\0132..google.cl" + + "oud.compute.v1.CustomerEncryptionKeyH\031\210\001\001\022\"\n" + "\022source_snapshot_id\030\322\226\230/ \001(\tH\032\210\001\001\022\034\n" + "\013source_type\030\336\361\322\327\001 \001(\tH\033\210\001\001\022\026\n" + "\006status\030\362\237\267V \001(\tH\034\210\001\001\022\035\n" @@ -12986,7 +12988,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026UNDEFINED_ARCHITECTURE\020\000\022 \n" + "\030ARCHITECTURE_UNSPECIFIED\020\253\324\235\274\001\022\014\n" + "\005ARM64\020\372\313\351\035\022\016\n" - + "\006X86_64\020\307\244\346\312\001\"2\n\n" + + "\006X86_64\020\307\244\346\312\001\"2\n" + + "\n" + "SourceType\022\031\n" + "\025UNDEFINED_SOURCE_TYPE\020\000\022\t\n" + "\003RAW\020\210\370\004\"^\n" @@ -13026,8 +13029,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_source_typeB\t\n" + "\007_status\"R\n" + "\017ImageFamilyView\0225\n" - + "\005image\030\333\322\352/ " - + "\001(\0132\036.google.cloud.compute.v1.ImageH\000\210\001\001B\010\n" + + "\005image\030\333\322\352/" + + " \001(\0132\036.google.cloud.compute.v1.ImageH\000\210\001\001B\010\n" + "\006_image\"\233\002\n" + "\tImageList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\0220\n" @@ -13044,12 +13047,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_warning\"\216\002\n" + "\022InitialStateConfig\0229\n" + "\003dbs\030\265\207\006 \003(\0132*.google.cloud.compute.v1.FileContentBuffer\022;\n" - + "\004dbxs\030\371\347\273\001 \003(\0132*.go" - + "ogle.cloud.compute.v1.FileContentBuffer\022;\n" - + "\004keks\030\302\330\310\001" - + " \003(\0132*.google.cloud.compute.v1.FileContentBuffer\022<\n" - + "\002pk\030\373\033 \001(\0132*.goog" - + "le.cloud.compute.v1.FileContentBufferH\000\210\001\001B\005\n" + + "\004dbxs\030\371\347\273\001" + + " \003(\0132*.google.cloud.compute.v1.FileContentBuffer\022;\n" + + "\004keks\030\302\330\310\001 \003(\013" + + "2*.google.cloud.compute.v1.FileContentBuffer\022<\n" + + "\002pk\030\373\033" + + " \001(\0132*.google.cloud.compute.v1.FileContentBufferH\000\210\001\001B\005\n" + "\003_pk\"\312\001\n" + "\024InsertAddressRequest\022C\n" + "\020address_resource\030\371\227\336\346\001 \001(\0132" @@ -13069,8 +13072,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\274\001\n" + "\032InsertBackendBucketRequest\022P\n" - + "\027backend_bucket_resource\030\230\316\307\265\001" - + " \001(\0132&.google.cloud.compute.v1.BackendBucketB\003\340A\002\022!\n" + + "\027backend_bucket_resource\030\230\316\307\265\001 \001(\0132&.go" + + "ogle.cloud.compute.v1.BackendBucketB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" @@ -13090,20 +13093,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n" + "\014source_image\030\267\350\206\030 \001(\tH\001\210\001\001\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" - + "\340A\002\362G\004zoneB\r\n" + + "\340A\002\362G\004zoneB\r" + + "\n" + "\013_request_idB\017\n\r" + "_source_image\"\314\001\n" + "\037InsertExternalVpnGatewayRequest\022[\n" - + "\035external_vpn_gateway_resource\030\210\337\220\350\001" - + " \001(\0132+.google.cloud.compute.v1.ExternalVpnGatewayB\003\340A\002\022!\n" + + "\035external_vpn_gateway_resource\030\210\337\220\350\001 \001(\0132+.google.c" + + "loud.compute.v1.ExternalVpnGatewayB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" - + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r" - + "\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\304\001\n" + "\033InsertFirewallPolicyRequest\022R\n" - + "\030firewall_policy_resource\030\274\266\207\354\001 " - + "\001(\0132\'.google.cloud.compute.v1.FirewallPolicyB\003\340A\002\022&\n" + + "\030firewall_policy_resource\030\274\266\207\354\001" + + " \001(\0132\'.google.cloud.compute.v1.FirewallPolicyB\003\340A\002\022&\n" + "\tparent_id\030\320\341\232\333\001 \001(\tB\017\340A\002\362G\tparent_id\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\253\001\n" @@ -13115,13 +13118,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\340\001\n" + "\033InsertForwardingRuleRequest\022R\n" - + "\030forwarding_rule_resource\030\257\300\320\217\001" - + " \001(\0132\'.google.cloud.compute.v1.ForwardingRuleB\003\340A\002\022!\n" + + "\030forwarding_rule_resource\030\257\300\320\217\001 \001(\013" + + "2\'.google.cloud.compute.v1.ForwardingRuleB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" - + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r" - + "\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\257\001\n" + "\032InsertGlobalAddressRequest\022C\n" + "\020address_resource\030\371\227\336\346\001 \001(\0132" @@ -13138,8 +13140,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\330\001\n" + "\'InsertGlobalNetworkEndpointGroupRequest\022_\n" - + "\037network_endpoint_group_resource\030\247\315\333\372\001 \001(\013" - + "2-.google.cloud.compute.v1.NetworkEndpointGroupB\003\340A\002\022!\n" + + "\037network_endpoint_group_resource\030\247\315\333\372\001" + + " \001(\0132-.google.cloud.compute.v1.NetworkEndpointGroupB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" @@ -13147,30 +13149,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ")InsertGlobalPublicDelegatedPrefixeRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022`\n" - + " public_delegated_prefix_resource\030\205\370\330\026" - + " \001(\0132..google.cloud.compute.v1.PublicDelegatedPrefixB\003\340A\002\022\032\n\n" + + " public_delegated_prefix_resource\030\205\370\330\026 \001(\013" + + "2..google.cloud.compute.v1.PublicDelegatedPrefixB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\265\001\n" + "\030InsertHealthCheckRequest\022K\n" - + "\025health_check_resource\030\250\303\244`" - + " \001(\0132$.google.cloud.compute.v1.HealthCheckB\003\340A\002\022!\n" + + "\025health_check_resource\030\250\303\244` \001(\0132" + + "$.google.cloud.compute.v1.HealthCheckB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" - + "\340A\002\362G\007project\022\032\n\n" + + "\340A\002\362G\007project\022\032\n" + + "\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\322\001\n" + "\022InsertImageRequest\022\034\n" + "\014force_create\030\320\211\244^ \001(\010H\000\210\001\001\022?\n" - + "\016image_resource\030\362\304\376\260\001" - + " \001(\0132\036.google.cloud.compute.v1.ImageB\003\340A\002\022!\n" + + "\016image_resource\030\362\304\376\260\001 \001(" + + "\0132\036.google.cloud.compute.v1.ImageB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" - + "request_id\030\313\201\331\021 \001(\tH\001\210\001\001B\017\n" - + "\r" - + "_force_createB\r\n" + + "request_id\030\313\201\331\021 \001(\tH\001\210\001\001B\017\n\r" + + "_force_createB\r" + + "\n" + "\013_request_id\"\356\001\n" + "!InsertInstanceGroupManagerRequest\022^\n" - + "\037instance_group_manager_resource\030\212\212\276| \001(\0132-.google" - + ".cloud.compute.v1.InstanceGroupManagerB\003\340A\002\022!\n" + + "\037instance_group_manager_resource\030\212\212\276|" + + " \001(\0132-.google.cloud.compute.v1.InstanceGroupManagerB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -13180,8 +13183,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".InsertInstanceGroupManagerResizeRequestRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022{\n" + ".instance_group_manager_resize_request_resource\030\355\276\265\337\001" - + " \001(\0132:.google.cloud.com" - + "pute.v1.InstanceGroupManagerResizeRequestB\003\340A\002\022!\n" + + " \001(\0132:.google.cloud.compute.v1.InstanceGroupManagerResizeRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -13195,8 +13197,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" - + "\340A\002\362G\004zoneB\r" - + "\n" + + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\317\002\n" + "\025InsertInstanceRequest\022D\n" + "\021instance_resource\030\370\360\376f" @@ -13229,15 +13230,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\346\001\n" + "(InsertInterconnectAttachmentGroupRequest\022l\n" - + "&interconnect_attachment_group_resource\030\371\337\341\004 \001(\01324.googl" - + "e.cloud.compute.v1.InterconnectAttachmentGroupB\003\340A\002\022!\n" + + "&interconnect_attachment_group_resource\030\371\337\341\004" + + " \001(\01324.google.cloud.compute.v1.InterconnectAttachmentGroupB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\250\002\n" + "#InsertInterconnectAttachmentRequest\022a\n" - + " interconnect_attachment_resource\030\371\244\240e" - + " \001(\0132/.google.cloud.compute.v1.InterconnectAttachmentB\003\340A\002\022!\n" + + " interconnect_attachment_resource\030\371\244\240e \001(\0132/" + + ".google.cloud.compute.v1.InterconnectAttachmentB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" @@ -13253,8 +13254,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\270\001\n" + "\031InsertInterconnectRequest\022M\n" - + "\025interconnect_resource\030\237\241\314\275\001" - + " \001(\0132%.google.cloud.compute.v1.InterconnectB\003\340A\002\022!\n" + + "\025interconnect_resource\030\237\241\314\275\001 \001(\0132" + + "%.google.cloud.compute.v1.InterconnectB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" @@ -13264,13 +13265,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.LicenseB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" - + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r" + + "\n" + "\013_request_id\"\356\001\n" + "\031InsertMachineImageRequest\022M\n" - + "\026machine_image_resource\030\352\252\373\034" - + " \001(\0132%.google.cloud.compute.v1.MachineImageB\003\340A\002\022!\n" + + "\026machine_image_resource\030\352\252\373\034 \001(\0132%" + + ".google.cloud.compute.v1.MachineImageB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" - + "\340A\002\362G\007project\022\032\n\n" + + "\340A\002\362G\007project\022\032\n" + + "\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022 \n" + "\017source_instance\030\271\230\375\274\001 \001(\tH\001\210\001\001B\r\n" + "\013_request_idB\022\n" @@ -13284,8 +13287,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\267\002\n" + "\'InsertNetworkEdgeSecurityServiceRequest\022l\n" - + "&network_edge_security_service_resource\030\246\243\333\343\001 \001(" - + "\01323.google.cloud.compute.v1.NetworkEdgeSecurityServiceB\003\340A\002\022!\n" + + "&network_edge_security_service_resource\030\246\243\333\343\001" + + " \001(\01323.google.cloud.compute.v1.NetworkEdgeSecurityServiceB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" @@ -13303,8 +13306,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\306\001\n" + "\"InsertNetworkFirewallPolicyRequest\022R\n" - + "\030firewall_policy_resource\030\274\266\207\354\001" - + " \001(\0132\'.google.cloud.compute.v1.FirewallPolicyB\003\340A\002\022!\n" + + "\030firewall_policy_resource\030\274\266\207\354\001 \001" + + "(\0132\'.google.cloud.compute.v1.FirewallPolicyB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" @@ -13322,11 +13325,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\".google.cloud.compute.v1.NodeGroupB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" - + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" + + "request", + "_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\r\n" - + "\013_request_id\"\331\001", - "\n" + + "\013_request_id\"\331\001\n" + "\031InsertNodeTemplateRequest\022M\n" + "\026node_template_resource\030\266\332\335<" + " \001(\0132%.google.cloud.compute.v1.NodeTemplateB\003\340A\002\022!\n" @@ -13336,8 +13339,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\343\001\n" + "\034InsertPacketMirroringRequest\022T\n" - + "\031packet_mirroring_resource\030\241\374\250\353\001" - + " \001(\0132(.google.cloud.compute.v1.PacketMirroringB\003\340A\002\022!\n" + + "\031packet_mirroring_resource\030\241\374\250\353\001 \001(\0132(.goog" + + "le.cloud.compute.v1.PacketMirroringB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" @@ -13346,15 +13349,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "$InsertPublicAdvertisedPrefixeRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022b\n" - + "!public_advertised_prefix_resource\030\217\327\262o" - + " \001(\0132/.google.cloud.compute.v1.PublicAdvertisedPrefixB\003\340A\002\022\032\n\n" + + "!public_advertised_prefix_resource\030\217\327\262o \001(\0132/.goog" + + "le.cloud.compute.v1.PublicAdvertisedPrefixB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\366\001\n" + "#InsertPublicDelegatedPrefixeRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022`\n" - + " public_delegated_prefix_resource\030\205\370\330\026 \001(\0132..google.clou" - + "d.compute.v1.PublicDelegatedPrefixB\003\340A\002\022\037\n" + + " public_delegated_prefix_resource\030\205\370\330\026" + + " \001(\0132..google.cloud.compute.v1.PublicDelegatedPrefixB\003\340A\002\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\330\001\n" @@ -13367,8 +13370,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\346\001\n" + "!InsertRegionBackendServiceRequest\022R\n" - + "\030backend_service_resource\030\243\201\337\245\001" - + " \001(\0132\'.google.cloud.compute.v1.BackendServiceB\003\340A\002\022!\n" + + "\030backend_service_resource\030\243\201\337\245\001 \001(\0132\'.goo" + + "gle.cloud.compute.v1.BackendServiceB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" @@ -13409,16 +13412,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\370\001\n" + "\'InsertRegionInstanceGroupManagerRequest\022^\n" - + "\037instance_group_manager_resource\030\212\212\276| \001(\0132-.google" - + ".cloud.compute.v1.InstanceGroupManagerB\003\340A\002\022!\n" + + "\037instance_group_manager_resource\030\212\212\276|" + + " \001(\0132-.google.cloud.compute.v1.InstanceGroupManagerB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\353\001\n" + "#InsertRegionInstanceTemplateRequest\022U\n" - + "\032instance_template_resource\030\211\352\213\005 \001(\0132).goog" - + "le.cloud.compute.v1.InstanceTemplateB\003\340A\002\022!\n" + + "\032instance_template_resource\030\211\352\213\005" + + " \001(\0132).google.cloud.compute.v1.InstanceTemplateB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" @@ -13433,26 +13436,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\371\001\n" + "\'InsertRegionNetworkEndpointGroupRequest\022_\n" - + "\037network_endpoint_group_resource\030\247\315\333\372\001 \001(\0132-." - + "google.cloud.compute.v1.NetworkEndpointGroupB\003\340A\002\022!\n" + + "\037network_endpoint_group_resource\030\247\315\333\372\001" + + " \001(\0132-.google.cloud.compute.v1.NetworkEndpointGroupB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" - + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n" - + "\n" + + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\355\001\n" + "(InsertRegionNetworkFirewallPolicyRequest\022R\n" - + "\030firewall_policy_resource\030\274\266\207\354\001 " - + "\001(\0132\'.google.cloud.compute.v1.FirewallPolicyB\003\340A\002\022!\n" + + "\030firewall_policy_resource\030\274\266\207\354\001" + + " \001(\0132\'.google.cloud.compute.v1.FirewallPolicyB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" - + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n" - + "\n" + + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\370\001\n" + "\'InsertRegionNotificationEndpointRequest\022^\n" - + "\036notification_endpoint_resource\030\244\372\261\241\001" - + " \001(\0132-.google.cloud.compute.v1.NotificationEndpointB\003\340A\002\022!\n" + + "\036notification_endpoint_resource\030\244\372\261\241\001 \001(\0132-.googl" + + "e.cloud.compute.v1.NotificationEndpointB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" @@ -13461,8 +13462,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "!InsertRegionSecurityPolicyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" - + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n" - + "\n" + + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022Q\n" + "\030security_policy_resource\030\374\252\211g" + " \001(\0132\'.google.cloud.compute.v1.SecurityPolicyB\003\340A\002\022\035\n\r" @@ -13490,16 +13490,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022T\n" - + "\032target_http_proxy_resource\030\250\257\343\013 \001(\0132(.g" - + "oogle.cloud.compute.v1.TargetHttpProxyB\003\340A\002B\r\n" + + "\032target_http_proxy_resource\030\250\257\343\013" + + " \001(\0132(.google.cloud.compute.v1.TargetHttpProxyB\003\340A\002B\r\n" + "\013_request_id\"\355\001\n" + "#InsertRegionTargetHttpsProxyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022W\n" - + "\033target_https_proxy_resource\030\201\255\344\316\001 \001(\0132).go" - + "ogle.cloud.compute.v1.TargetHttpsProxyB\003\340A\002B\r\n" + + "\033target_https_proxy_resource\030\201\255\344\316\001" + + " \001(\0132).google.cloud.compute.v1.TargetHttpsProxyB\003\340A\002B\r\n" + "\013_request_id\"\346\001\n" + "!InsertRegionTargetTcpProxyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" @@ -13531,8 +13531,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022Q\n" - + "\030resource_policy_resource\030\312\214\321$ \001(\0132\'." - + "google.cloud.compute.v1.ResourcePolicyB\003\340A\002B\r\n" + + "\030resource_policy_resource\030\312\214\321$" + + " \001(\0132\'.google.cloud.compute.v1.ResourcePolicyB\003\340A\002B\r\n" + "\013_request_id\"\242\001\n" + "\022InsertRouteRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" @@ -13553,8 +13553,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022Q\n" - + "\030security_policy_resource\030\374\252\211g \001(\0132\'.g" - + "oogle.cloud.compute.v1.SecurityPolicyB\003\340A\002\022\035\n\r" + + "\030security_policy_resource\030\374\252\211g" + + " \001(\0132\'.google.cloud.compute.v1.SecurityPolicyB\003\340A\002\022\035\n\r" + "validate_only\030\265\372\337s \001(\010H\001\210\001\001B\r\n" + "\013_request_idB\020\n" + "\016_validate_only\"\351\001\n" @@ -13563,8 +13563,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022X\n" - + "\033service_attachment_resource\030\240\266\304\341\001 \001(\0132*" - + ".google.cloud.compute.v1.ServiceAttachmentB\003\340A\002B\r\n" + + "\033service_attachment_resource\030\240\266\304\341\001" + + " \001(\0132*.google.cloud.compute.v1.ServiceAttachmentB\003\340A\002B\r\n" + "\013_request_id\"\254\001\n" + "\025InsertSnapshotRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" @@ -13577,8 +13577,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022Q\n" - + "\030ssl_certificate_resource\030\211\324\225V" - + " \001(\0132\'.google.cloud.compute.v1.SslCertificateB\003\340A\002B\r\n" + + "\030ssl_certificate_resource\030\211\324\225V \001(\0132\'.goog" + + "le.cloud.compute.v1.SslCertificateB\003\340A\002B\r\n" + "\013_request_id\"\260\001\n" + "\026InsertSslPolicyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" @@ -13591,8 +13591,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022K\n" - + "\025storage_pool_resource\030\215\274\371J" - + " \001(\0132$.google.cloud.compute.v1.StoragePoolB\003\340A\002\022\033\n" + + "\025storage_pool_resource\030\215\274\371J \001(\0132" + + "$.google.cloud.compute.v1.StoragePoolB\003\340A\002\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\322\001\n" @@ -13601,29 +13601,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022H\n" - + "\023subnetwork_resource\030\277\332\221\024" - + " \001(\0132#.google.cloud.compute.v1.SubnetworkB\003\340A\002B\r\n" + + "\023subnetwork_resource\030\277\332\221\024 \001" + + "(\0132#.google.cloud.compute.v1.SubnetworkB\003\340A\002B\r\n" + "\013_request_id\"\303\001\n" + "\034InsertTargetGrpcProxyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022U\n" - + "\032target_grpc_proxy_resource\030\322\352\353\234\001" - + " \001(\0132(.google.cloud.compute.v1.TargetGrpcProxyB\003\340A\002B\r\n" + + "\032target_grpc_proxy_resource\030\322\352\353\234\001 \001(\0132(.go" + + "ogle.cloud.compute.v1.TargetGrpcProxyB\003\340A\002B\r\n" + "\013_request_id\"\302\001\n" + "\034InsertTargetHttpProxyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022T\n" - + "\032target_http_proxy_resource\030\250\257\343\013" - + " \001(\0132(.google.cloud.compute.v1.TargetHttpProxyB\003\340A\002B\r\n" + + "\032target_http_proxy_resource\030\250\257\343\013 \001(\0132(.googl" + + "e.cloud.compute.v1.TargetHttpProxyB\003\340A\002B\r\n" + "\013_request_id\"\306\001\n" + "\035InsertTargetHttpsProxyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022W\n" - + "\033target_https_proxy_resource\030\201\255\344\316\001" - + " \001(\0132).google.cloud.compute.v1.TargetHttpsProxyB\003\340A\002B\r\n" + + "\033target_https_proxy_resource\030\201\255\344\316\001 \001(\0132).googl" + + "e.cloud.compute.v1.TargetHttpsProxyB\003\340A\002B\r\n" + "\013_request_id\"\334\001\n" + "\033InsertTargetInstanceRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" @@ -13646,15 +13646,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022R\n" - + "\031target_ssl_proxy_resource\030\300\375\333C \001(" - + "\0132\'.google.cloud.compute.v1.TargetSslProxyB\003\340A\002B\r\n" + + "\031target_ssl_proxy_resource\030\300\375\333C" + + " \001(\0132\'.google.cloud.compute.v1.TargetSslProxyB\003\340A\002B\r\n" + "\013_request_id\"\277\001\n" + "\033InsertTargetTcpProxyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022R\n" - + "\031target_tcp_proxy_resource\030\313\360\311E \001(\0132\'.go" - + "ogle.cloud.compute.v1.TargetTcpProxyB\003\340A\002B\r\n" + + "\031target_tcp_proxy_resource\030\313\360\311E" + + " \001(\0132\'.google.cloud.compute.v1.TargetTcpProxyB\003\340A\002B\r\n" + "\013_request_id\"\345\001\n" + "\035InsertTargetVpnGatewayRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" @@ -13676,8 +13676,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022I\n" - + "\024vpn_gateway_resource\030\224\267\216W" - + " \001(\0132#.google.cloud.compute.v1.VpnGatewayB\003\340A\002B\r\n" + + "\024vpn_gateway_resource\030\224\267\216W \001(\0132#" + + ".google.cloud.compute.v1.VpnGatewayB\003\340A\002B\r\n" + "\013_request_id\"\320\001\n" + "\026InsertVpnTunnelRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" @@ -13688,11 +13688,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\".google.cloud.compute.v1.VpnTunnelB\003\340A\002B\r\n" + "\013_request_id\"\347\035\n" + "\010Instance\022\\\n" - + "\031advanced_machine_features\030\262\347\252\303\001" - + " \001(\01320.google.cloud.compute.v1.AdvancedMachineFeaturesH\000\210\001\001\022\037\n" + + "\031advanced_machine_features\030\262\347\252\303\001 \001(\01320" + + ".google.cloud.compute.v1.AdvancedMachineFeaturesH\000\210\001\001\022\037\n" + "\016can_ip_forward\030\374\206\204\337\001 \001(\010H\001\210\001\001\022b\n" - + "\034confidential_instance_config\030\365\222\372\351\001 \001(\01323.google.cloud." - + "compute.v1.ConfidentialInstanceConfigH\002\210\001\001\022\035\n" + + "\034confidential_instance_config\030\365\222\372\351\001" + + " \001(\01323.google.cloud.compute.v1.ConfidentialInstanceConfigH\002\210\001\001\022\035\n" + "\014cpu_platform\030\252\352\321\303\001 \001(\tH\003\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\004\210\001\001\022$\n" + "\023deletion_protection\030\352\377\262\332\001 \001(\010H\005\210\001\001\022\034\n" @@ -13706,8 +13706,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010hostname\030\263\270\205q \001(\tH\t\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\n" + "\210\001\001\022W\n" - + "\027instance_encryption_key\030\215\301\357\036" - + " \001(\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\013\210\001\001\022*\n" + + "\027instance_encryption_key\030\215\301\357\036 \001(\0132..go" + + "ogle.cloud.compute.v1.CustomerEncryptionKeyH\013\210\001\001\022*\n" + "\032key_revocation_action_type\030\342\334\300p \001(\tH\014\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\r" + "\210\001\001\022!\n" @@ -13719,44 +13719,43 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030last_suspended_timestamp\030\211\251\361\251\001 \001(" + "\tH\021\210\001\001\022\034\n" + "\014machine_type\030\262\260\312l \001(\tH\022\210\001\001\022;\n" - + "\010metadata\030\257\366\265) " - + "\001(\0132!.google.cloud.compute.v1.MetadataH\023\210\001\001\022 \n" + + "\010metadata\030\257\366\265)" + + " \001(\0132!.google.cloud.compute.v1.MetadataH\023\210\001\001\022 \n" + "\020min_cpu_platform\030\367\233\352s \001(\tH\024\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\025\210\001\001\022H\n" + "\022network_interfaces\030\213\332\222\031" + " \003(\0132).google.cloud.compute.v1.NetworkInterface\022^\n" - + "\032network_performance_config\030\342\227\370\275\001" - + " \001(\01321.google.cloud.compute.v1.NetworkPerformanceConfigH\026\210\001\001\022?\n" - + "\006params\030\206\363\253%" - + " \001(\0132\'.google.cloud.compute.v1.InstanceParamsH\027\210\001\001\022*\n" + + "\032network_performance_config\030\342\227\370\275\001 \001(\01321." + + "google.cloud.compute.v1.NetworkPerformanceConfigH\026\210\001\001\022?\n" + + "\006params\030\206\363\253% \001(\0132\'.googl" + + "e.cloud.compute.v1.InstanceParamsH\027\210\001\001\022*\n" + "\032private_ipv6_google_access\030\216\314\202\027 \001(\tH\030\210\001\001\022R\n" - + "\024reservation_affinity\030\273\270\242K" - + " \001(\0132,.google.cloud.compute.v1.ReservationAffinityH\031\210\001\001\022\034\n" + + "\024reservation_affinity\030\273\270\242K \001(\0132,.go" + + "ogle.cloud.compute.v1.ReservationAffinityH\031\210\001\001\022\034\n" + "\021resource_policies\030\341\234\314\n" + " \003(\t\022H\n" - + "\017resource_status\030\303\372\367v \001(\013" - + "2\'.google.cloud.compute.v1.ResourceStatusH\032\210\001\001\022\036\n\r" + + "\017resource_status\030\303\372\367v" + + " \001(\0132\'.google.cloud.compute.v1.ResourceStatusH\032\210\001\001\022\036\n\r" + "satisfies_pzi\030\241\335\253\345\001 \001(\010H\033\210\001\001\022\036\n\r" + "satisfies_pzs\030\253\335\253\345\001 \001(\010H\034\210\001\001\022@\n\n" - + "scheduling\030\224\313\261\270\001" - + " \001(\0132#.google.cloud.compute.v1.SchedulingH\035\210\001\001\022\032\n" + + "scheduling\030\224\313\261\270\001 \001(\0132#" + + ".google.cloud.compute.v1.SchedulingH\035\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\036\210\001\001\022E\n" + "\020service_accounts\030\260\304\253\204\001" + " \003(\0132\'.google.cloud.compute.v1.ServiceAccount\022Y\n" - + "\030shielded_instance_config\030\265\213\221\006 \001(\0132/.googl" - + "e.cloud.compute.v1.ShieldedInstanceConfigH\037\210\001\001\022l\n" - + "\"shielded_instance_integrity_policy\030\227\242\207N" - + " \001(\01328.google.cloud.compute.v1.ShieldedInstanceIntegrityPolicyH" - + " \210\001\001\022$\n" + + "\030shielded_instance_config\030\265\213\221\006" + + " \001(\0132/.google.cloud.compute.v1.ShieldedInstanceConfigH\037\210\001\001\022l\n" + + "\"shielded_instance_integrity_policy\030\227\242\207N \001(\01328." + + "google.cloud.compute.v1.ShieldedInstanceIntegrityPolicyH \210\001\001\022$\n" + "\024source_machine_image\030\277\334\260\n" + " \001(\tH!\210\001\001\022c\n" - + "#source_machine_image_encryption_key\030\243\373\371[ \001" - + "(\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\"\210\001\001\022 \n" + + "#source_machine_image_encryption_key\030\243\373\371[ \001(\0132..google.clou" + + "d.compute.v1.CustomerEncryptionKeyH\"\210\001\001\022 \n" + "\020start_restricted\030\330\320\375: \001(\010H#\210\001\001\022\026\n" + "\006status\030\362\237\267V \001(\tH$\210\001\001\022\037\n" + "\016status_message\030\272\311\351\215\001 \001(\tH%\210\001\001\0223\n" - + "\004tags\030\231\350\330\001 " - + "\001(\0132\035.google.cloud.compute.v1.TagsH&\210\001\001\022\024\n" + + "\004tags\030\231\350\330\001" + + " \001(\0132\035.google.cloud.compute.v1.TagsH&\210\001\001\022\024\n" + "\004zone\030\254\307\344\001 \001(\tH\'\210\001\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -13825,8 +13824,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_zone\"\271\003\n" + "\026InstanceAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022L\n" - + "\005items\030\300\317\367/ " - + "\003(\0132:.google.cloud.compute.v1.InstanceAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132:.google.clo" + + "ud.compute.v1.InstanceAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -13835,16 +13834,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032Z\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022;\n" - + "\005value\030\002 \001(\0132,.googl" - + "e.cloud.compute.v1.InstancesScopedList:\0028\001B\005\n" + + "\005value\030\002" + + " \001(\0132,.google.cloud.compute.v1.InstancesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" + "_self_linkB\n\n" + "\010_warning\"\251\001\n" + "\027InstanceConsumptionData\022R\n" - + "\020consumption_info\030\322\345\344E \001(" - + "\01320.google.cloud.compute.v1.InstanceConsumptionInfoH\000\210\001\001\022\030\n" + + "\020consumption_info\030\322\345\344E \001(\01320.google.cloud" + + ".compute.v1.InstanceConsumptionInfoH\000\210\001\001\022\030\n" + "\010instance\030\225\251\332\010 \001(\tH\001\210\001\001B\023\n" + "\021_consumption_infoB\013\n" + "\t_instance\"\320\001\n" @@ -13887,8 +13886,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_zone\"\310\003\n" + "\033InstanceGroupAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022Q\n" - + "\005items\030\300\317\367/" - + " \003(\0132?.google.cloud.compute.v1.InstanceGroupAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132?.go" + + "ogle.cloud.compute.v1.InstanceGroupAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -13897,8 +13896,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032_\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022@\n" - + "\005value\030\002" - + " \001(\01321.google.cloud.compute.v1.InstanceGroupsScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\01321.google.c" + + "loud.compute.v1.InstanceGroupsScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -13918,25 +13917,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\375\022\n" + "\024InstanceGroupManager\022e\n" - + "\024all_instances_config\030\201\256\3305 \001" - + "(\0132?.google.cloud.compute.v1.InstanceGroupManagerAllInstancesConfigH\000\210\001\001\022a\n" - + "\025auto", - "_healing_policies\030\205\347\350\331\001 \003(\0132>.google.clo" - + "ud.compute.v1.InstanceGroupManagerAutoHealingPolicy\022#\n" + + "\024all_instances_config\030\201\256\3305 \001(\0132?.google.clou", + "d.compute.v1.InstanceGroupManagerAllInstancesConfigH\000\210\001\001\022a\n" + + "\025auto_healing_policies\030\205\347\350\331\001" + + " \003(\0132>.google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy\022#\n" + "\022base_instance_name\030\207\226\305\271\001 \001(\tH\001\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\002\210\001\001\022\\\n" - + "\017current_actions\030\267\310\234N \001(\0132;.googl" - + "e.cloud.compute.v1.InstanceGroupManagerActionsSummaryH\003\210\001\001\022\034\n" + + "\017current_actions\030\267\310\234N \001(\0132;.google.cloud.compute." + + "v1.InstanceGroupManagerActionsSummaryH\003\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\004\210\001\001\022Q\n" - + "\023distribution_policy\030\315\356\362\376\001 \001(" - + "\0132+.google.cloud.compute.v1.DistributionPolicyH\005\210\001\001\022\033\n" + + "\023distribution_policy\030\315\356\362\376\001" + + " \001(\0132+.google.cloud.compute.v1.DistributionPolicyH\005\210\001\001\022\033\n" + "\013fingerprint\030\344\321\363o \001(\tH\006\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\007\210\001\001\022s\n" - + "\033instance_flexibility_policy\030\202\216\354\014 \001(\0132F.google.cloud.comput" - + "e.v1.InstanceGroupManagerInstanceFlexibilityPolicyH\010\210\001\001\022\036\n" + + "\033instance_flexibility_policy\030\202\216\354\014 \001" + + "(\0132F.google.cloud.compute.v1.InstanceGro" + + "upManagerInstanceFlexibilityPolicyH\010\210\001\001\022\036\n" + "\016instance_group\030\325\324\325& \001(\tH\t\210\001\001\022p\n" - + "\031instance_lifecycle_policy\030\221\264\315\325\001" - + " \001(\0132D.google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicyH\n" + + "\031instance_lifecycle_policy\030\221\264\315\325\001 \001(\0132D.google." + + "cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicyH\n" + "\210\001\001\022\"\n" + "\021instance_template\030\344\201\273\223\001 \001(\tH\013\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\014\210\001\001\022/\n" @@ -13947,24 +13946,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\0132\".google.cloud.compute.v1.NamedPort\022\026\n" + "\006region\030\364\315\240B \001(\tH\017\210\001\001\022`\n" + "\021resource_policies\030\341\234\314\n" - + " \001(\0132=.google.cloud.compute.v1.InstanceGroupManagerResourcePoliciesH\020\210\001\001\022\036\n\r" + + " \001(\0132=.google.c" + + "loud.compute.v1.InstanceGroupManagerResourcePoliciesH\020\210\001\001\022\036\n\r" + "satisfies_pzi\030\241\335\253\345\001 \001(\010H\021\210\001\001\022\036\n\r" + "satisfies_pzs\030\253\335\253\345\001 \001(\010H\022\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\023\210\001\001\022[\n" - + "\016standby_policy\030\204\206\216\356\001 \001(\0132:.goog" - + "le.cloud.compute.v1.InstanceGroupManagerStandbyPolicyH\024\210\001\001\022H\n" + + "\016standby_policy\030\204\206\216\356\001 \001(\0132:.google.cloud.compute" + + ".v1.InstanceGroupManagerStandbyPolicyH\024\210\001\001\022H\n" + "\017stateful_policy\030\205\303\325\026" + " \001(\0132\'.google.cloud.compute.v1.StatefulPolicyH\025\210\001\001\022K\n" - + "\006status\030\362\237\267V \001(\01323.google" - + ".cloud.compute.v1.InstanceGroupManagerStatusH\026\210\001\001\022\030\n" + + "\006status\030\362\237\267V" + + " \001(\01323.google.cloud.compute.v1.InstanceGroupManagerStatusH\026\210\001\001\022\030\n" + "\014target_pools\030\251\237\240\240\001 \003(\t\022\033\n" + "\013target_size\030\357\363\375\035 \001(\005H\027\210\001\001\022#\n" + "\023target_stopped_size\030\241\326\223\001 \001(\005H\030\210\001\001\022&\n" + "\025target_suspended_size\030\323\210\364\222\001 \001(\005H\031\210\001\001\022X\n\r" - + "update_policy\030\350\312\352S" - + " \001(\01329.google.cloud.compute.v1.InstanceGroupManagerUpdatePolicyH\032\210\001\001\022I\n" - + "\010versions\030\233\375\271M" - + " \003(\01324.google.cloud.compute.v1.InstanceGroupManagerVersion\022\024\n" + + "update_policy\030\350\312\352S \001(\01329.google" + + ".cloud.compute.v1.InstanceGroupManagerUpdatePolicyH\032\210\001\001\022I\n" + + "\010versions\030\233\375\271M \003(\01324.g" + + "oogle.cloud.compute.v1.InstanceGroupManagerVersion\022\024\n" + "\004zone\030\254\307\344\001 \001(\tH\033\210\001\001\"n\n" + "\033ListManagedInstancesResults\022,\n" + "(UNDEFINED_LIST_MANAGED_INSTANCES_RESULTS\020\000\022\017\n" @@ -14030,8 +14030,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_verifying\"\335\003\n" + "\"InstanceGroupManagerAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022X\n" - + "\005items\030\300\317\367/ \003(\0132F.google.cloud.compute.v1.Inst" - + "anceGroupManagerAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132F.goog" + + "le.cloud.compute.v1.InstanceGroupManagerAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -14040,16 +14040,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032f\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022G\n" - + "\005value\030\002" - + " \001(\01328.google.cloud.compute.v1.InstanceGroupManagersScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\01328.goo" + + "gle.cloud.compute.v1.InstanceGroupManagersScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" + "_self_linkB\n\n" + "\010_warning\"\205\001\n" + "&InstanceGroupManagerAllInstancesConfig\022L\n\n" - + "properties\030\263\232\266F \001(\013" - + "20.google.cloud.compute.v1.InstancePropertiesPatchH\000\210\001\001B\r\n" + + "properties\030\263\232\266F \001(\01320.google.cloud." + + "compute.v1.InstancePropertiesPatchH\000\210\001\001B\r\n" + "\013_properties\"\220\001\n" + "%InstanceGroupManagerAutoHealingPolicy\022\035\n" + "\014health_check\030\345\252\244\223\001 \001(\tH\000\210\001\001\022!\n" @@ -14058,12 +14058,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022_initial_delay_sec\"\304\002\n" + "-InstanceGroupManagerInstanceFlexibilityPolicy\022~\n" + "\023instance_selections\030\321\204\371\n" - + " \003(\0132^.google.cloud.compu" - + "te.v1.InstanceGroupManagerInstanceFlexibilityPolicy.InstanceSelectionsEntry\032\222\001\n" + + " \003(\0132^.google.cloud.compute.v1.InstanceGr" + + "oupManagerInstanceFlexibilityPolicy.InstanceSelectionsEntry\032\222\001\n" + "\027InstanceSelectionsEntry\022\013\n" + "\003key\030\001 \001(\t\022f\n" - + "\005value\030\002 \001(\0132W.google.cloud.compute.v1.In" - + "stanceGroupManagerInstanceFlexibilityPolicyInstanceSelection:\0028\001\"y\n" + + "\005value\030\002 \001(\0132W.google.cloud.compute.v1.InstanceGroupManag" + + "erInstanceFlexibilityPolicyInstanceSelection:\0028\001\"y\n" + ">InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection\022\030\n\r" + "machine_types\030\201\335\201& \003(\t\022\024\n" + "\004rank\030\254\230\325\001 \001(\005H\000\210\001\001B\007\n" @@ -14107,8 +14107,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tself_link\030\215\222\305\331\001 \001(\tH\007\210\001\001\022!\n" + "\021self_link_with_id\030\202\254\235\025 \001(\tH\010\210\001\001\022\025\n" + "\005state\030\221\211\2534 \001(\tH\t\210\001\001\022X\n" - + "\006status\030\362\237\267V" - + " \001(\0132@.google.cloud.compute.v1.InstanceGroupManagerResizeRequestStatusH\n" + + "\006status\030\362\237\267V \001(\0132@.goog" + + "le.cloud.compute.v1.InstanceGroupManagerResizeRequestStatusH\n" + "\210\001\001\022\024\n" + "\004zone\030\254\307\344\001 \001(\tH\013\210\001\001\"\217\001\n" + "\005State\022\023\n" @@ -14132,10 +14132,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_statusB\007\n" + "\005_zone\"\347\001\n" + "\'InstanceGroupManagerResizeRequestStatus\0225\n" - + "\005error\030\210\244\223. \001(" - + "\0132\036.google.cloud.compute.v1.ErrorH\000\210\001\001\022j\n" - + "\014last_attempt\030\244\254\250\317\001 \001(\0132K.google.cloud." - + "compute.v1.InstanceGroupManagerResizeRequestStatusLastAttemptH\001\210\001\001B\010\n" + + "\005error\030\210\244\223." + + " \001(\0132\036.google.cloud.compute.v1.ErrorH\000\210\001\001\022j\n" + + "\014last_attempt\030\244\254\250\317\001 \001(\0132K.google.cloud.compute.v1.Insta" + + "nceGroupManagerResizeRequestStatusLastAttemptH\001\210\001\001B\010\n" + "\006_errorB\017\n\r" + "_last_attempt\"u\n" + "2InstanceGroupManagerResizeRequestStatusLastAttempt\0225\n" @@ -14144,8 +14144,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_error\"\334\002\n" + ".InstanceGroupManagerResizeRequestsListResponse\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022L\n" - + "\005items\030\300\317\367/ \003(\0132:.google.cloud.compu" - + "te.v1.InstanceGroupManagerResizeRequest\022\024\n" + + "\005items\030\300\317\367/ " + + "\003(\0132:.google.cloud.compute.v1.InstanceGroupManagerResizeRequest\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -14169,15 +14169,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022_initial_delay_secB\007\n" + "\005_mode\"\321\003\n" + "\032InstanceGroupManagerStatus\022k\n" - + "\024all_instances_config\030\201\256\3305 \001(\0132E.google" - + ".cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfigH\000\210\001\001\022\033\n\n" + + "\024all_instances_config\030\201\256\3305 \001(\0132E.google.cloud.compute.v" + + "1.InstanceGroupManagerStatusAllInstancesConfigH\000\210\001\001\022\033\n\n" + "autoscaler\030\327\375\322\366\001 \001(\tH\001\210\001\001\022\031\n" + "\tis_stable\030\360\357\3303 \001(\010H\002\210\001\001\022U\n" - + "\010stateful\030\314\346\310t \001(\0132;.google.cloud." - + "compute.v1.InstanceGroupManagerStatusStatefulH\003\210\001\001\022a\n" - + "\016version_target\030\330\335\376\211\001 \001(\0132@" - + ".google.cloud.compute.v1.InstanceGroupManagerStatusVersionTargetH\004\210\001\001B\027\n" - + "\025_all_instances_configB\r\n" + + "\010stateful\030\314\346\310t" + + " \001(\0132;.google.cloud.compute.v1.InstanceGroupManagerStatusStatefulH\003\210\001\001\022a\n" + + "\016version_target\030\330\335\376\211\001 \001(\0132@.google.cloud.co" + + "mpute.v1.InstanceGroupManagerStatusVersionTargetH\004\210\001\001B\027\n" + + "\025_all_instances_configB\r" + + "\n" + "\013_autoscalerB\014\n\n" + "_is_stableB\013\n" + "\t_statefulB\021\n" @@ -14189,9 +14190,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_effective\"\360\001\n" + "\"InstanceGroupManagerStatusStateful\022#\n" + "\023has_stateful_config\030\360\347\3264 \001(\010H\000\210\001\001\022t\n" - + "\024per_instance_configs\030\251\325\370\372\001" - + " \001(\0132M.google.cloud.compute.v1.Ins" - + "tanceGroupManagerStatusStatefulPerInstanceConfigsH\001\210\001\001B\026\n" + + "\024per_instance_configs\030\251\325\370\372\001 \001(\0132M.goo" + + "gle.cloud.compute.v1.InstanceGroupManage" + + "rStatusStatefulPerInstanceConfigsH\001\210\001\001B\026\n" + "\024_has_stateful_configB\027\n" + "\025_per_instance_configs\"h\n" + "4InstanceGroupManagerStatusStatefulPerInstanceConfigs\022\036\n\r" @@ -14203,10 +14204,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " InstanceGroupManagerUpdatePolicy\022-\n" + "\034instance_redistribution_type\030\230\337\304\213\001 \001(" + "\tH\000\210\001\001\022C\n" - + "\tmax_surge\030\223\311\243\220\001 " - + "\001(\0132\'.google.cloud.compute.v1.FixedOrPercentH\001\210\001\001\022I\n" - + "\017max_unavailable\030\365\313\213\301\001 \001(\0132\'" - + ".google.cloud.compute.v1.FixedOrPercentH\002\210\001\001\022\037\n" + + "\tmax_surge\030\223\311\243\220\001" + + " \001(\0132\'.google.cloud.compute.v1.FixedOrPercentH\001\210\001\001\022I\n" + + "\017max_unavailable\030\365\313\213\301\001" + + " \001(\0132\'.google.cloud.compute.v1.FixedOrPercentH\002\210\001\001\022\037\n" + "\016minimal_action\030\224\215\202\201\001 \001(\tH\003\210\001\001\022.\n" + "\036most_disruptive_allowed_action\030\215\316\302\037 \001(\tH\004\210\001\001\022#\n" + "\022replacement_method\030\256\317\237\361\001 \001(\tH\005\210\001\001\022\024\n" @@ -14234,8 +14235,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033InstanceGroupManagerVersion\022\"\n" + "\021instance_template\030\344\201\273\223\001 \001(\tH\000\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\001\210\001\001\022D\n" - + "\013target_size\030\357\363\375\035 \001(\0132\'.goog" - + "le.cloud.compute.v1.FixedOrPercentH\002\210\001\001B\024\n" + + "\013target_size\030\357\363\375\035" + + " \001(\0132\'.google.cloud.compute.v1.FixedOrPercentH\002\210\001\001B\024\n" + "\022_instance_templateB\007\n" + "\005_nameB\016\n" + "\014_target_size\"D\n" @@ -14267,8 +14268,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "0InstanceGroupManagersDeletePerInstanceConfigsReq\022\020\n" + "\005names\030\310\256\3571 \003(\t\"\244\001\n" + "\'InstanceGroupManagersListErrorsResponse\022D\n" - + "\005items\030\300\317\367/" - + " \003(\01322.google.cloud.compute.v1.InstanceManagedByIgmError\022\037\n" + + "\005items\030\300\317\367/ \003" + + "(\01322.google.cloud.compute.v1.InstanceManagedByIgmError\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\000\210\001\001B\022\n" + "\020_next_page_token\"\261\001\n" + "1InstanceGroupManagersListManagedInstancesResponse\022G\n" @@ -14277,8 +14278,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017next_page_token\030\225\272\206& \001(\tH\000\210\001\001B\022\n" + "\020_next_page_token\"\353\001\n" + "/InstanceGroupManagersListPerInstanceConfigsResp\022<\n" - + "\005items\030\300\317\367/" - + " \003(\0132*.google.cloud.compute.v1.PerInstanceConfig\022\037\n" + + "\005items\030\300\317\367/ \003(\0132*." + + "google.cloud.compute.v1.PerInstanceConfig\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\000\210\001\001\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\001\210\001\001B\022\n" @@ -14294,8 +14295,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tinstances\030\376\374\357\r" + " \003(\t\"\273\001\n" + "\037InstanceGroupManagersScopedList\022Q\n" - + "\027instance_group_managers\030\220\372\211f \003" - + "(\0132-.google.cloud.compute.v1.InstanceGroupManager\0229\n" + + "\027instance_group_managers\030\220\372\211f" + + " \003(\0132-.google.cloud.compute.v1.InstanceGroupManager\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"k\n" @@ -14321,8 +14322,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\tB\020\n" + "\016_force_suspend\"\200\001\n" + "0InstanceGroupManagersUpdatePerInstanceConfigsReq\022L\n" - + "\024per_instance_configs\030\251\325\370\372\001" - + " \003(\0132*.google.cloud.compute.v1.PerInstanceConfig\"e\n" + + "\024per_instance_configs\030\251\325\370\372\001 \003(\0132*.goo" + + "gle.cloud.compute.v1.PerInstanceConfig\"e\n" + "!InstanceGroupsAddInstancesRequest\022@\n" + "\tinstances\030\376\374\357\r" + " \003(\0132*.google.cloud.compute.v1.InstanceReference\"\276\002\n" @@ -14388,10 +14389,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\274\002\n" + "\031InstanceManagedByIgmError\022]\n" - + "\005error\030\210\244\223. \001(\0132F.google.cloud." - + "compute.v1.InstanceManagedByIgmErrorManagedInstanceErrorH\000\210\001\001\022q\n" - + "\027instance_action_details\030\243\374\253\213\001 \001(\0132G.google.cloud.comput" - + "e.v1.InstanceManagedByIgmErrorInstanceActionDetailsH\001\210\001\001\022\031\n" + + "\005error\030\210\244\223. \001(\0132F.google.cloud.compute.v1.Insta" + + "nceManagedByIgmErrorManagedInstanceErrorH\000\210\001\001\022q\n" + + "\027instance_action_details\030\243\374\253\213\001 \001" + + "(\0132G.google.cloud.compute.v1.InstanceMan" + + "agedByIgmErrorInstanceActionDetailsH\001\210\001\001\022\031\n" + "\ttimestamp\030\226\322\244\032 \001(\tH\002\210\001\001B\010\n" + "\006_errorB\032\n" + "\030_instance_action_detailsB\014\n\n" @@ -14399,8 +14401,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".InstanceManagedByIgmErrorInstanceActionDetails\022\026\n" + "\006action\030\266\374\275Y \001(\tH\000\210\001\001\022\030\n" + "\010instance\030\225\251\332\010 \001(\tH\001\210\001\001\022I\n" - + "\007version\030\330\271\324\247\001" - + " \001(\0132/.google.cloud.compute.v1.ManagedInstanceVersionH\002\210\001\001\"\234\002\n" + + "\007version\030\330\271\324\247\001 \001(" + + "\0132/.google.cloud.compute.v1.ManagedInstanceVersionH\002\210\001\001\"\234\002\n" + "\006Action\022\024\n" + "\020UNDEFINED_ACTION\020\000\022\022\n\n" + "ABANDONING\020\315\312\220\271\001\022\020\n" @@ -14430,47 +14432,46 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021_destination_zoneB\022\n" + "\020_target_instance\"\261\001\n" + "\016InstanceParams\022c\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132@.google.cloud.compu" - + "te.v1.InstanceParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 " + + "\003(\0132@.google.cloud.compute.v1.InstanceParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\330\020\n" + "\022InstanceProperties\022\\\n" - + "\031advanced_machine_features\030\262\347\252\303\001" - + " \001(\01320.google.cloud.compute.v1.AdvancedMachineFeaturesH\000\210\001\001\022\037\n" + + "\031advanced_machine_features\030\262\347\252\303\001 \001(\01320.google" + + ".cloud.compute.v1.AdvancedMachineFeaturesH\000\210\001\001\022\037\n" + "\016can_ip_forward\030\374\206\204\337\001 \001(\010H\001\210\001\001\022b\n" - + "\034confidential_instance_config\030\365\222\372\351\001" - + " \001(\01323.google.cloud.compute.v1.ConfidentialInstanceConfigH\002\210\001\001\022\034\n" + + "\034confidential_instance_config\030\365\222\372\351\001 \001(" + + "\01323.google.cloud.compute.v1.ConfidentialInstanceConfigH\002\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\003\210\001\001\0227\n" + "\005disks\030\366\314\312- \003(\0132%.google.cloud.compute.v1.AttachedDisk\022J\n" - + "\022guest_accelerators\030\357\314\207\335\001 \003(\0132*.goo" - + "gle.cloud.compute.v1.AcceleratorConfig\022*\n" + + "\022guest_accelerators\030\357\314\207\335\001" + + " \003(\0132*.google.cloud.compute.v1.AcceleratorConfig\022*\n" + "\032key_revocation_action_type\030\342\334\300p \001(\tH\004\210\001\001\022K\n" - + "\006labels\030\377\277\301\356\001 \003(\01327.google.cloud.co" - + "mpute.v1.InstanceProperties.LabelsEntry\022\034\n" + + "\006labels\030\377\277\301\356\001" + + " \003(\01327.google.cloud.compute.v1.InstanceProperties.LabelsEntry\022\034\n" + "\014machine_type\030\262\260\312l \001(\tH\005\210\001\001\022;\n" + "\010metadata\030\257\366\265)" + " \001(\0132!.google.cloud.compute.v1.MetadataH\006\210\001\001\022 \n" + "\020min_cpu_platform\030\367\233\352s \001(\tH\007\210\001\001\022H\n" - + "\022network_interfaces\030\213\332\222\031 \003(\0132).go" - + "ogle.cloud.compute.v1.NetworkInterface\022^\n" - + "\032network_performance_config\030\342\227\370\275\001 \001(\01321" - + ".google.cloud.compute.v1.NetworkPerformanceConfigH\010\210\001\001\022*\n" + + "\022network_interfaces\030\213\332\222\031" + + " \003(\0132).google.cloud.compute.v1.NetworkInterface\022^\n" + + "\032network_performance_config\030\342\227\370\275\001 \001(\01321.google.cloud.co" + + "mpute.v1.NetworkPerformanceConfigH\010\210\001\001\022*\n" + "\032private_ipv6_google_access\030\216\314\202\027 \001(\tH\t\210\001\001\022R\n" - + "\024reservation_affinity\030\273\270\242K" - + " \001(\0132,.google.cloud.compute.v1.ReservationAffinityH\n" + + "\024reservation_affinity\030\273\270\242K \001(\0132,.go" + + "ogle.cloud.compute.v1.ReservationAffinityH\n" + "\210\001\001\022g\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132D.google.cloud.compute" - + ".v1.InstanceProperties.ResourceManagerTagsEntry\022\034\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(" + + "\0132D.google.cloud.compute.v1.InstanceProperties.ResourceManagerTagsEntry\022\034\n" + "\021resource_policies\030\341\234\314\n" - + " \003(\t\022@\n" - + "\n" + + " \003(\t\022@\n\n" + "scheduling\030\224\313\261\270\001" + " \001(\0132#.google.cloud.compute.v1.SchedulingH\013\210\001\001\022E\n" - + "\020service_accounts\030\260\304\253\204\001" - + " \003(\0132\'.google.cloud.compute.v1.ServiceAccount\022Y\n" - + "\030shielded_instance_config\030\265\213\221\006" - + " \001(\0132/.google.cloud.compute.v1.ShieldedInstanceConfigH\014\210\001\001\0223\n" + + "\020service_accounts\030\260\304\253\204\001 \003(\0132\'." + + "google.cloud.compute.v1.ServiceAccount\022Y\n" + + "\030shielded_instance_config\030\265\213\221\006 \001(\0132/.go" + + "ogle.cloud.compute.v1.ShieldedInstanceConfigH\014\210\001\001\0223\n" + "\004tags\030\231\350\330\001 \001(\0132\035.google.cloud.compute.v1.TagsH\r" + "\210\001\001\032-\n" + "\013LabelsEntry\022\013\n" @@ -14492,11 +14493,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032_advanced_machine_featuresB\021\n" + "\017_can_ip_forwardB\037\n" + "\035_confidential_instance_configB\016\n" - + "\014_descriptionB\035\n" - + "\033_key_revocation_action_typeB\017\n\r" + + "\014_descr", + "iptionB\035\n" + + "\033_key_revocation_action_typeB\017\n" + + "\r" + "_machine_typeB\013\n" - + "\t_metad", - "ataB\023\n" + + "\t_metadataB\023\n" + "\021_min_cpu_platformB\035\n" + "\033_network_performance_configB\035\n" + "\033_private_ipv6_google_accessB\027\n" @@ -14505,10 +14507,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031_shielded_instance_configB\007\n" + "\005_tags\"\240\002\n" + "\027InstancePropertiesPatch\022P\n" - + "\006labels\030\377\277\301\356\001" - + " \003(\0132<.google.cloud.compute.v1.InstancePropertiesPatch.LabelsEntry\022S\n" - + "\010metadata\030\257\366\265) \003(\0132>.google.cloud.compute.v" - + "1.InstancePropertiesPatch.MetadataEntry\032-\n" + + "\006labels\030\377\277\301\356\001 \003(\0132<.g" + + "oogle.cloud.compute.v1.InstancePropertiesPatch.LabelsEntry\022S\n" + + "\010metadata\030\257\366\265) \003(\0132" + + ">.google.cloud.compute.v1.InstancePropertiesPatch.MetadataEntry\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\032/\n\r" @@ -14521,16 +14523,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020InstanceSettings\022\033\n" + "\013fingerprint\030\344\321\363o \001(\tH\000\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022K\n" - + "\010metadata\030\257\366\265)" - + " \001(\01321.google.cloud.compute.v1.InstanceSettingsMetadataH\002\210\001\001\022\024\n" + + "\010metadata\030\257\366\265) \001(\01321.googl" + + "e.cloud.compute.v1.InstanceSettingsMetadataH\002\210\001\001\022\024\n" + "\004zone\030\254\307\344\001 \001(\tH\003\210\001\001B\016\n" + "\014_fingerprintB\007\n" + "\005_kindB\013\n" + "\t_metadataB\007\n" + "\005_zone\"\267\001\n" + "\030InstanceSettingsMetadata\022N\n" - + "\005items\030\300\317\367/ \003(\0132<.google.cloud.comp" - + "ute.v1.InstanceSettingsMetadata.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132<.google.cloud.compute.v1.InstanceSettingsMetadata.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\000\210\001\001\032,\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -14542,8 +14544,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\002id\030\233\032 \001(\004H\002\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\003\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\004\210\001\001\022G\n\n" - + "properties\030\263\232\266F" - + " \001(\0132+.google.cloud.compute.v1.InstancePropertiesH\005\210\001\001\022\026\n" + + "properties\030\263\232\266F \001(\0132+.go" + + "ogle.cloud.compute.v1.InstancePropertiesH\005\210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH\006\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\007\210\001\001\022 \n" + "\017source_instance\030\271\230\375\274\001 \001(\tH\010\210\001\001\022U\n" @@ -14561,8 +14563,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027_source_instance_params\"\270\003\n" + "\036InstanceTemplateAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022T\n" - + "\005items\030\300\317\367/ \003(\0132B.google.cloud.compute." - + "v1.InstanceTemplateAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\013" + + "2B.google.cloud.compute.v1.InstanceTemplateAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -14570,8 +14572,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032b\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022C\n" - + "\005value\030\002 \001(\01324.google.cl" - + "oud.compute.v1.InstanceTemplatesScopedList:\0028\001B\005\n" + + "\005value\030\002" + + " \001(\01324.google.cloud.compute.v1.InstanceTemplatesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -14592,8 +14594,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\257\001\n" + "\033InstanceTemplatesScopedList\022I\n" - + "\022instance_templates\030\217\270\245\333\001 \003(\013" - + "2).google.cloud.compute.v1.InstanceTemplate\0229\n" + + "\022instance_templates\030\217\270\245\333\001" + + " \003(\0132).google.cloud.compute.v1.InstanceTemplate\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\376\002\n" @@ -14620,23 +14622,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021resource_policies\030\341\234\314\n" + " \003(\t\"\212\002\n" + "$InstancesBulkInsertOperationMetadata\022t\n" - + "\023per_location_status\030\232\351\204P \003(" - + "\0132T.google.cloud.compute.v1.InstancesBul" - + "kInsertOperationMetadata.PerLocationStatusEntry\032l\n" + + "\023per_location_status\030\232\351\204P \003(\0132T.google.cloud" + + ".compute.v1.InstancesBulkInsertOperationMetadata.PerLocationStatusEntry\032l\n" + "\026PerLocationStatusEntry\022\013\n" + "\003key\030\001 \001(\t\022A\n" - + "\005value\030\002 \001(\01322.google.cloud.com" - + "pute.v1.BulkInsertOperationStatus:\0028\001\"\330\001\n" + + "\005value\030\002" + + " \001(\01322.google.cloud.compute.v1.BulkInsertOperationStatus:\0028\001\"\330\001\n" + "&InstancesGetEffectiveFirewallsResponse\022t\n" - + "\020firewall_policys\030\302\312\374\303\001 \003(\0132V.google." - + "cloud.compute.v1.InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy\0228\n" + + "\020firewall_policys\030\302\312\374\303\001 \003(\0132V.google.cloud.compute.v1" + + ".InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy\0228\n" + "\tfirewalls\030\363\306\350\201\001" + " \003(\0132!.google.cloud.compute.v1.Firewall\"\254\004\n" + "=InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy\022\034\n" + "\014display_name\030\350\207\221\002 \001(\tH\000\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\001\210\001\001\022O\n" - + "\026packet_mirroring_rules\030\304\377\300\375\001" - + " \003(\0132+.google.cloud.compute.v1.FirewallPolicyRule\022\031\n" + + "\026packet_mirroring_rules\030\304\377\300\375\001 \003(\0132+.goo" + + "gle.cloud.compute.v1.FirewallPolicyRule\022\031\n" + "\010priority\030\244\363\241\324\001 \001(\005H\002\210\001\001\022=\n" + "\005rules\030\367\221\3653" + " \003(\0132+.google.cloud.compute.v1.FirewallPolicyRule\022\033\n\n" @@ -14660,8 +14661,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\t\"\310\002\n" + "\"InstancesReportHostAsFaultyRequest\022#\n" + "\023disruption_schedule\030\203\305\333- \001(\tH\000\210\001\001\022`\n\r" - + "fault_reasons\030\222\253\221P \003(\0132F.google.c" - + "loud.compute.v1.InstancesReportHostAsFaultyRequestFaultReason\"\202\001\n" + + "fault_reasons\030\222\253\221P \003(\0132F.google.cloud.compute.v1." + + "InstancesReportHostAsFaultyRequestFaultReason\"\202\001\n" + "\022DisruptionSchedule\022!\n" + "\035UNDEFINED_DISRUPTION_SCHEDULE\020\000\022\'\n" + "\037DISRUPTION_SCHEDULE_UNSPECIFIED\020\333\356\310\236\001\022\016\n" @@ -14687,8 +14688,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_warning\"\327\001\n" + "\031InstancesSetLabelsRequest\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\000\210\001\001\022R\n" - + "\006labels\030\377\277\301\356\001 \003(\0132>.google.cloud.com" - + "pute.v1.InstancesSetLabelsRequest.LabelsEntry\032-\n" + + "\006labels\030\377\277\301\356\001" + + " \003(\0132>.google.cloud.compute.v1.InstancesSetLabelsRequest.LabelsEntry\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001B\024\n" @@ -14697,7 +14698,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022guest_accelerators\030\357\314\207\335\001" + " \003(\0132*.google.cloud.compute.v1.AcceleratorConfig\"O\n" + "\036InstancesSetMachineTypeRequest\022\034\n" - + "\014machine_type\030\262\260\312l \001(\tH\000\210\001\001B\017\n\r" + + "\014machine_type\030\262\260\312l \001(\tH\000\210\001\001B\017\n" + + "\r" + "_machine_type\"Z\n" + "!InstancesSetMinCpuPlatformRequest\022 \n" + "\020min_cpu_platform\030\367\233\352s \001(\tH\000\210\001\001B\023\n" @@ -14716,8 +14718,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006scopes\030\237\231\222O \003(\tB\010\n" + "\006_email\"w\n" + "&InstancesStartWithEncryptionKeyRequest\022M\n" - + "\005disks\030\366\314\312- \003(\0132;.google.cloud.comput" - + "e.v1.CustomerEncryptionKeyProtectedDisk\"\301\t\n" + + "\005disks\030\366\314\312- \003" + + "(\0132;.google.cloud.compute.v1.CustomerEncryptionKeyProtectedDisk\"\301\t\n" + "\017InstantSnapshot\022\035\n" + "\014architecture\030\323\322\261\220\001 \001(\tH\000\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n" @@ -14726,13 +14728,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\002id\030\233\032 \001(\004H\004\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\005\210\001\001\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\006\210\001\001\022H\n" - + "\006labels\030\377\277\301\356\001 \003" - + "(\01324.google.cloud.compute.v1.InstantSnapshot.LabelsEntry\022\024\n" + + "\006labels\030\377\277\301\356\001 \003(\01324.google.clou" + + "d.compute.v1.InstantSnapshot.LabelsEntry\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\007\210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH\010\210\001\001\022W\n" - + "\017resource_status\030\303\372\367v" - + " \001(\01326.google.cloud.compute.v1.InstantSnapshotResourceStatusH" - + "\t\210\001\001\022\036\n\r" + + "\017resource_status\030\303\372\367v \001(\01326.goo" + + "gle.cloud.compute.v1.InstantSnapshotResourceStatusH\t\210\001\001\022\036\n\r" + "satisfies_pzi\030\241\335\253\345\001 \001(\010H\n" + "\210\001\001\022\036\n\r" + "satisfies_pzs\030\253\335\253\345\001 \001(\010H\013\210\001\001\022\032\n" @@ -14760,8 +14761,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013UNAVAILABLE\020\260\330\245\305\001B\017\n\r" + "_architectureB\025\n" + "\023_creation_timestampB\016\n" - + "\014_descriptionB\017\n" - + "\r" + + "\014_descriptionB\017\n\r" + "_disk_size_gbB\005\n" + "\003_idB\007\n" + "\005_kindB\024\n" @@ -14779,8 +14779,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_zone\"\316\003\n" + "\035InstantSnapshotAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022S\n" - + "\005items\030\300\317\367/" - + " \003(\0132A.google.cloud.compute.v1.InstantSnapshotAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132A.goog" + + "le.cloud.compute.v1.InstantSnapshotAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -14789,8 +14789,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032a\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022B\n" - + "\005value\030\002" - + " \001(\01323.google.cloud.compute.v1.InstantSnapshotsScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\01323.google.c" + + "loud.compute.v1.InstantSnapshotsScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -14827,17 +14827,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014Interconnect\022\034\n" + "\013aai_enabled\030\313\242\261\271\001 \001(\010H\000\210\001\001\022\036\n\r" + "admin_enabled\030\321\354\301\324\001 \001(\010H\001\210\001\001\022r\n" - + "\036application_aware_interconnect\030\236\370\315\314\001" - + " \001(\0132A.google.cloud.compute.v1.Interc" - + "onnectApplicationAwareInterconnectH\002\210\001\001\022\036\n" + + "\036application_aware_interconnect\030\236\370\315\314\001 \001(\0132A.google" + + ".cloud.compute.v1.InterconnectApplicationAwareInterconnectH\002\210\001\001\022\036\n" + "\022available_features\030\363\271\326\354\001 \003(\t\022J\n\r" - + "circuit_infos\030\257\203\315N" - + " \003(\01320.google.cloud.compute.v1.InterconnectCircuitInfo\022\"\n" + + "circuit_infos\030\257\203\315N \003(" + + "\01320.google.cloud.compute.v1.InterconnectCircuitInfo\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\003\210\001\001\022\035\n\r" + "customer_name\030\314\334\337\001 \001(\tH\004\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\005\210\001\001\022T\n" - + "\020expected_outages\030\233\352\216~ \003(\01327.goog" - + "le.cloud.compute.v1.InterconnectOutageNotification\022\"\n" + + "\020expected_outages\030\233\352\216~" + + " \003(\01327.google.cloud.compute.v1.InterconnectOutageNotification\022\"\n" + "\021google_ip_address\030\242\205\245\323\001 \001(\tH\006\210\001\001\022$\n" + "\023google_reference_id\030\325\265\212\377\001 \001(\tH\007\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\010\210\001\001\022$\n" @@ -14847,13 +14846,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004kind\030\224\367\310\001 \001(\tH\n" + "\210\001\001\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\013\210\001\001\022E\n" - + "\006labels\030\377\277\301\356\001" - + " \003(\01321.google.cloud.compute.v1.Interconnect.LabelsEntry\022\032\n" + + "\006labels\030\377\277\301\356\001 \003(\01321.google.c" + + "loud.compute.v1.Interconnect.LabelsEntry\022\032\n" + "\tlink_type\030\337\210\276\371\001 \001(\tH\014\210\001\001\022\031\n" + "\010location\030\265\277\276\212\001 \001(\tH\r" + "\210\001\001\022D\n" - + "\006macsec\030\242\301\227\374\001" - + " \001(\0132+.google.cloud.compute.v1.InterconnectMacsecH\016\210\001\001\022\036\n" + + "\006macsec\030\242\301\227\374\001 \001(\0132+.go" + + "ogle.cloud.compute.v1.InterconnectMacsecH\016\210\001\001\022\036\n" + "\016macsec_enabled\030\244\241\315\\ \001(\010H\017\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\020\210\001\001\022!\n" + "\021noc_contact_email\030\200\370\332\006 \001(\tH\021\210\001\001\022\"\n" @@ -14918,16 +14917,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\010\n" + "\006_state\"\247\004\n" + "(InterconnectApplicationAwareInterconnect\022\207\001\n" - + "\033bandwidth_percentage_policy\030\351\334\226Y \001(\0132Z.google.clou" - + "d.compute.v1.InterconnectApplicationAwar" - + "eInterconnectBandwidthPercentagePolicyH\000\210\001\001\022#\n" + + "\033bandwidth_percentage_policy\030\351\334\226Y" + + " \001(\0132Z.google.cloud.compute.v1.Int" + + "erconnectApplicationAwareInterconnectBandwidthPercentagePolicyH\000\210\001\001\022#\n" + "\023profile_description\030\346\354\250} \001(\tH\001\210\001\001\022z\n" - + "\031shape_average_percentages\030\331\270\364{ \003(\0132T" - + ".google.cloud.compute.v1.InterconnectApp" - + "licationAwareInterconnectBandwidthPercentage\022}\n" - + "\026strict_priority_policy\030\267\225\227E \001(\0132" - + "U.google.cloud.compute.v1.InterconnectAp" - + "plicationAwareInterconnectStrictPriorityPolicyH\002\210\001\001B\036\n" + + "\031shape_average_percentages\030\331\270\364{ \003(\0132T.google.cloud.co" + + "mpute.v1.InterconnectApplicationAwareInterconnectBandwidthPercentage\022}\n" + + "\026strict_priority_policy\030\267\225\227E \001(\0132U.google.cloud.c" + + "ompute.v1.InterconnectApplicationAwareInterconnectStrictPriorityPolicyH\002\210\001\001B\036\n" + "\034_bandwidth_percentage_policyB\026\n" + "\024_profile_descriptionB\031\n" + "\027_strict_priority_policy\"\210\002\n" @@ -14946,8 +14943,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_percentageB\020\n" + "\016_traffic_class\"\273\001\n" + "AInterconnectApplicationAwareInterconnectBandwidthPercentagePolicy\022v\n" - + "\025bandwidth_percentages\030\213\375\243o \003(\0132T.google.cloud" - + ".compute.v1.InterconnectApplicationAwareInterconnectBandwidthPercentage\">\n" + + "\025bandwidth_percentages\030\213\375\243o \003(\0132T.google.cloud.compute.v1.Inte" + + "rconnectApplicationAwareInterconnectBandwidthPercentage\">\n" + ".go" - + "ogle.cloud.compute.v1.InterconnectAttachmentPartnerMetadataH\031\210\001\001\022e\n" - + "\031private_interconnect_info\030\203\354\221q \001(\0132:.google.cloud.co" - + "mpute.v1.InterconnectAttachmentPrivateInfoH\032\210\001\001\022\026\n" + + "\020partner_metadata\030\306\341\266\037 \001(\0132>.google.cloud.compu" + + "te.v1.InterconnectAttachmentPartnerMetadataH\031\210\001\001\022e\n" + + "\031private_interconnect_info\030\203\354\221q" + + " \001(\0132:.google.cloud.compute.v1.InterconnectAttachmentPrivateInfoH\032\210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH\033\210\001\001\022\037\n" + "\016remote_service\030\274\377\362\272\001 \001(\tH\034\210\001\001\022\026\n" + "\006router\030\311\256\356F \001(\tH\035\210\001\001\022\036\n\r" @@ -15088,8 +15085,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016_vlan_tag8021q\"\343\003\n" + "$InterconnectAttachmentAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022Z\n" - + "\005items\030\300\317\367/ \003" - + "(\0132H.google.cloud.compute.v1.InterconnectAttachmentAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132H.google.clou" + + "d.compute.v1.InterconnectAttachmentAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -15098,8 +15095,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032h\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022I\n" - + "\005value\030\002" - + " \001(\0132:.google.cloud.compute.v1.InterconnectAttachmentsScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\0132:.google.c" + + "loud.compute.v1.InterconnectAttachmentsScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -15107,9 +15104,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_warning\"\263\002\n" + ".InterconnectAttachmentConfigurationConstraints\022\030\n" + "\007bgp_md5\030\212\350\363\261\001 \001(\tH\000\210\001\001\022w\n" - + "\023bgp_peer_asn_ranges\030\202\273\371\342\001 \003(" - + "\0132V.google.cloud.compute.v1.Interconnect" - + "AttachmentConfigurationConstraintsBgpPeerASNRange\"b\n" + + "\023bgp_peer_asn_ranges\030\202\273\371\342\001 \003(\0132V.google.cloud" + + ".compute.v1.InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange\"b\n" + "\006BgpMd5\022\025\n" + "\021UNDEFINED_BGP_MD5\020\000\022\024\n" + "\014MD5_OPTIONAL\020\201\242\340\375\001\022\023\n" @@ -15124,28 +15120,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004_maxB\006\n" + "\004_min\"\201\007\n" + "\033InterconnectAttachmentGroup\022^\n" - + "\013attachments\030\260\227\317\237\001 \003(\0132E.google.cloud.compu" - + "te.v1.InterconnectAttachmentGroup.AttachmentsEntry\022[\n\n" - + "configured\030\276\364\373\214\001 \001(\0132>.goo" - + "gle.cloud.compute.v1.InterconnectAttachmentGroupConfiguredH\000\210\001\001\022\"\n" - + "\022creation_time", - "stamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n" + + "\013attachments\030\260\227\317\237\001 " + + "\003(\0132E.google.cloud.compute.v1.InterconnectAttachmentGroup.AttachmentsEntry\022[\n\n" + + "configured\030\276\364\373\214\001 \001(\0132>.google.cloud.comput", + "e.v1.InterconnectAttachmentGroupConfiguredH\000\210\001\001\022\"\n" + + "\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\003\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\004\210\001\001\022S\n" - + "\006intent\030\234\355\304\313\001 \001(\0132:.google.c" - + "loud.compute.v1.InterconnectAttachmentGroupIntentH\005\210\001\001\022#\n" + + "\006intent\030\234\355\304\313\001 \001(\0132:.google.cloud.compute.v1." + + "InterconnectAttachmentGroupIntentH\005\210\001\001\022#\n" + "\022interconnect_group\030\216\267\251\271\001 \001(\tH\006\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\007\210\001\001\022g\n" - + "\021logical_structure\030\275\231\364C \001(\0132D.google.cloud.c" - + "ompute.v1.InterconnectAttachmentGroupLogicalStructureH\010\210\001\001\022\024\n" + + "\021logical_structure\030\275\231\364C \001(\0132D.google.cloud.compute.v1.Interc" + + "onnectAttachmentGroupLogicalStructureH\010\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\t\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\n" + "\210\001\001\032r\n" + "\020AttachmentsEntry\022\013\n" + "\003key\030\001 \001(\t\022M\n" - + "\005value\030\002 \001(\0132>.g" - + "oogle.cloud.compute.v1.InterconnectAttachmentGroupAttachment:\0028\001B\r\n" + + "\005value\030\002 \001(\0132>.google.cloud.comp" + + "ute.v1.InterconnectAttachmentGroupAttachment:\0028\001B\r\n" + "\013_configuredB\025\n" + "\023_creation_timestampB\016\n" + "\014_descriptionB\007\n" @@ -15161,14 +15156,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "attachment\030\243\262\335W \001(\tH\000\210\001\001B\r\n" + "\013_attachment\"\256\001\n" + "%InterconnectAttachmentGroupConfigured\022p\n" - + "\020availability_sla\030\304\270\263\341\001 \001(\0132M.google.cloud.comput" - + "e.v1.InterconnectAttachmentGroupConfiguredAvailabilitySLAH\000\210\001\001B\023\n" + + "\020availability_sla\030\304\270\263\341\001 \001" + + "(\0132M.google.cloud.compute.v1.Interconnec" + + "tAttachmentGroupConfiguredAvailabilitySLAH\000\210\001\001B\023\n" + "\021_availability_sla\"\212\003\n" + "4InterconnectAttachmentGroupConfiguredAvailabilitySLA\022\035\n\r" + "effective_sla\030\220\325\337D \001(\tH\000\210\001\001\022\203\001\n" - + "\025intended_sla_blockers\030\204\255\346\325\001" - + " \003(\0132`.google.cloud.compute.v1.Interc" - + "onnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers\"\232\001\n" + + "\025intended_sla_blockers\030\204\255\346\325\001 \003(\0132`.google" + + ".cloud.compute.v1.InterconnectAttachment" + + "GroupConfiguredAvailabilitySLAIntendedSlaBlockers\"\232\001\n" + "\014EffectiveSla\022\033\n" + "\027UNDEFINED_EFFECTIVE_SLA\020\000\022!\n" + "\031EFFECTIVE_SLA_UNSPECIFIED\020\250\247\220\352\001\022\r\n" @@ -15206,24 +15202,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027PRODUCTION_NON_CRITICAL\020\267\275\3757B\023\n" + "\021_availability_sla\"\215\001\n" + "+InterconnectAttachmentGroupLogicalStructure\022^\n" - + "\007regions\030\377\357\362\005 \003(\0132J.google.cloud.compute.v1.Intercon" - + "nectAttachmentGroupLogicalStructureRegion\"\273\001\n" + + "\007regions\030\377\357\362\005 \003(\0132J.google.c" + + "loud.compute.v1.InterconnectAttachmentGroupLogicalStructureRegion\"\273\001\n" + "1InterconnectAttachmentGroupLogicalStructureRegion\022c\n" - + "\006metros\030\372\354\227\376\001 \003(\0132O.go" - + "ogle.cloud.compute.v1.InterconnectAttachmentGroupLogicalStructureRegionMetro\022\026\n" + + "\006metros\030\372\354\227\376\001 \003(\0132O.google.cloud.compu" + + "te.v1.InterconnectAttachmentGroupLogicalStructureRegionMetro\022\026\n" + "\006region\030\364\315\240B \001(\tH\000\210\001\001B\t\n" + "\007_region\"\312\001\n" + "6InterconnectAttachmentGroupLogicalStructureRegionMetro\022o\n\n" - + "facilities\030\201\305\364\377\001 \003(\0132W.goo" - + "gle.cloud.compute.v1.InterconnectAttachm" - + "entGroupLogicalStructureRegionMetroFacility\022\025\n" + + "facilities\030\201\305\364\377\001 \003(\0132W.google.cloud.comput" + + "e.v1.InterconnectAttachmentGroupLogicalStructureRegionMetroFacility\022\025\n" + "\005metro\030\231\332\2761 \001(\tH\000\210\001\001B\010\n" + "\006_metro\"\327\001\n" + ">InterconnectAttachmentGroupLogicalStructureRegionMetroFacility\022\031\n" + "\010facility\030\243\335\371\356\001 \001(\tH\000\210\001\001\022m\n" - + "\005zones\030\307\244\2557 \003(\0132[.google.cl" - + "oud.compute.v1.InterconnectAttachmentGro" - + "upLogicalStructureRegionMetroFacilityZoneB\013\n" + + "\005zones\030\307\244\2557 \003(\0132[.google.cloud.compute.v1.I" + + "nterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZoneB\013\n" + "\t_facility\"|\n" + "BInterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone\022\027\n" + "\013attachments\030\260\227\317\237\001 \003(\t\022\024\n" @@ -15231,15 +15225,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_zone\"\304\001\n" + "8InterconnectAttachmentGroupsGetOperationalStatusResponse\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022^\n" - + "\006result\030\235\220\267B \001(\0132F.google.cloud.compute.v1.Interconnec" - + "tAttachmentGroupsOperationalStatusH\001\210\001\001B\007\n" + + "\006result\030\235\220\267B \001(\0132F.google.clou" + + "d.compute.v1.InterconnectAttachmentGroupsOperationalStatusH\001\210\001\001B\007\n" + "\005_etagB\t\n" + "\007_result\"\210\003\n" + "(InterconnectAttachmentGroupsListResponse\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\tH\001\210\001\001\022F\n" - + "\005items\030\300\317\367/ \003" - + "(\01324.google.cloud.compute.v1.InterconnectAttachmentGroup\022\024\n" + + "\005items\030\300\317\367/ \003(\01324.google.clou" + + "d.compute.v1.InterconnectAttachmentGroup\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n" @@ -15253,15 +15247,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\210\005\n" + "-InterconnectAttachmentGroupsOperationalStatus\022w\n" - + "\023attachment_statuses\030\274\257\230\352\001 \003(\0132V.google.cloud.compute" - + ".v1.InterconnectAttachmentGroupsOperationalStatusAttachmentStatus\022[\n\n" - + "configured\030\276\364\373\214\001 \001(\0132>.google.cloud.compute.v1.Inte" - + "rconnectAttachmentGroupConfiguredH\000\210\001\001\022\035\n" + + "\023attachment_statuses\030\274\257\230\352\001 \003(" + + "\0132V.google.cloud.compute.v1.Interconnect" + + "AttachmentGroupsOperationalStatusAttachmentStatus\022[\n\n" + + "configured\030\276\364\373\214\001 \001(\0132>.goog" + + "le.cloud.compute.v1.InterconnectAttachmentGroupConfiguredH\000\210\001\001\022\035\n" + "\014group_status\030\262\263\305\241\001 \001(\tH\001\210\001\001\022S\n" - + "\006intent\030\234\355\304\313\001" - + " \001(\0132:.google.cloud.compute.v1.InterconnectAttachmentGroupIntentH\002\210\001\001\022[\n" - + "\013operational\030\322\307\354= \001(\0132>.google.cloud.comput" - + "e.v1.InterconnectAttachmentGroupConfiguredH\003\210\001\001\"u\n" + + "\006intent\030\234\355\304\313\001 \001(\0132:.goog" + + "le.cloud.compute.v1.InterconnectAttachmentGroupIntentH\002\210\001\001\022[\n" + + "\013operational\030\322\307\354= \001" + + "(\0132>.google.cloud.compute.v1.InterconnectAttachmentGroupConfiguredH\003\210\001\001\"u\n" + "\013GroupStatus\022\032\n" + "\026UNDEFINED_GROUP_STATUS\020\000\022\020\n" + "\010DEGRADED\020\256\246\240\275\001\022\021\n\n" @@ -15305,8 +15300,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_status\"\275\002\n" + "\032InterconnectAttachmentList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022A\n" - + "\005items\030\300\317\367/ " - + "\003(\0132/.google.cloud.compute.v1.InterconnectAttachment\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132/.google.cloud.compute.v1.InterconnectAttachment\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -15329,8 +15324,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "H\000\210\001\001B\013\n" + "\t_tag8021q\"\301\001\n" + "!InterconnectAttachmentsScopedList\022U\n" - + "\030interconnect_attachments\030\377\322\353\312\001 \003(\013" - + "2/.google.cloud.compute.v1.InterconnectAttachment\0229\n" + + "\030interconnect_attachments\030\377\322\353\312\001" + + " \003(\0132/.google.cloud.compute.v1.InterconnectAttachment\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\305\001\n" @@ -15343,12 +15338,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022_google_circuit_idB\023\n" + "\021_google_demarc_id\"\225\005\n" + "\027InterconnectDiagnostics\022P\n\n" - + "arp_caches\030\221\326\330\305\001" - + " \003(\01328.google.cloud.compute.v1.InterconnectDiagnosticsARPEntry\022(\n" + + "arp_caches\030\221\326\330\305\001 \003(\01328.g" + + "oogle.cloud.compute.v1.InterconnectDiagnosticsARPEntry\022(\n" + "\027bundle_aggregation_type\030\224\311\262\317\001 \001(\tH\000\210\001\001\022)\n" + "\031bundle_operational_status\030\334\227\3402 \001(\tH\001\210\001\001\022L\n" - + "\005links\030\271\237\2151" - + " \003(\0132:.google.cloud.compute.v1.InterconnectDiagnosticsLinkStatus\022\034\n" + + "\005links\030\271\237\2151 \003(\0132:." + + "google.cloud.compute.v1.InterconnectDiagnosticsLinkStatus\022\034\n" + "\013mac_address\030\204\322\310\236\001 \001(\tH\002\210\001\001\"\212\001\n" + "\025BundleAggregationType\022%\n" + "!UNDEFINED_BUNDLE_AGGREGATION_TYPE\020\000\022#\n" @@ -15364,8 +15359,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_mac_address\"{\n" + "\037InterconnectDiagnosticsARPEntry\022\033\n\n" + "ip_address\030\334\361\334\301\001 \001(\tH\000\210\001\001\022\034\n" - + "\013mac_address\030\204\322\310\236\001 \001(\tH\001\210\001\001B\r" - + "\n" + + "\013mac_address\030\204\322\310\236\001 \001(\tH\001\210\001\001B\r\n" + "\013_ip_addressB\016\n" + "\014_mac_address\"\372\001\n" + "%InterconnectDiagnosticsLinkLACPStatus\022 \n" @@ -15392,24 +15386,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_stateB\010\n" + "\006_value\"\361\006\n" + "!InterconnectDiagnosticsLinkStatus\022P\n\n" - + "arp_caches\030\221\326\330\305\001" - + " \003(\01328.google.cloud.compute.v1.InterconnectDiagnosticsARPEntry\022\032\n\n" + + "arp_caches\030\221\326\330\305\001 \003(\01328" + + ".google.cloud.compute.v1.InterconnectDiagnosticsARPEntry\022\032\n\n" + "circuit_id\030\261\372\257k \001(\tH\000\210\001\001\022\034\n\r" + "google_demarc\030\214\217\003 \001(\tH\001\210\001\001\022\\\n" - + "\013lacp_status\030\257\304\236\254\001 \001(\0132>.go" - + "ogle.cloud.compute.v1.InterconnectDiagnosticsLinkLACPStatusH\002\210\001\001\022U\n" - + "\006macsec\030\242\301\227\374\001" - + " \001(\0132<.google.cloud.compute.v1.InterconnectDiagnosticsMacsecStatusH\003\210\001\001\022\"\n" + + "\013lacp_status\030\257\304\236\254\001 \001(\0132>.google.cloud.compu" + + "te.v1.InterconnectDiagnosticsLinkLACPStatusH\002\210\001\001\022U\n" + + "\006macsec\030\242\301\227\374\001 \001(\0132<.google.cl" + + "oud.compute.v1.InterconnectDiagnosticsMacsecStatusH\003\210\001\001\022\"\n" + "\022operational_status\030\377\261\360_ \001(\tH\004\210\001\001\022i\n" - + "\027receiving_optical_power\030\337\255\330t \001(\0132@.google.cloud.c" - + "ompute.v1.InterconnectDiagnosticsLinkOpticalPowerH\005\210\001\001\022m\n" - + "\032transmitting_optical_power\030\235\272\211\333\001" - + " \001(\0132@.google.cloud.compute.v1" - + ".InterconnectDiagnosticsLinkOpticalPowerH\006\210\001\001\"\177\n" + + "\027receiving_optical_power\030\337\255\330t" + + " \001(\0132@.google.cloud.compute.v1.Interc" + + "onnectDiagnosticsLinkOpticalPowerH\005\210\001\001\022m\n" + + "\032transmitting_optical_power\030\235\272\211\333\001 \001(\0132@" + + ".google.cloud.compute.v1.InterconnectDiagnosticsLinkOpticalPowerH\006\210\001\001\"\177\n" + "\021OperationalStatus\022 \n" + "\034UNDEFINED_OPERATIONAL_STATUS\020\000\022$\n" + "\034LINK_OPERATIONAL_STATUS_DOWN\020\375\344\246\206\001\022\"\n" - + "\032LINK_OPERATIONAL_STATUS_UP\020\266\266\355\221\001B\r\n" + + "\032LINK_OPERATIONAL_STATUS_UP\020\266\266\355\221\001B\r" + + "\n" + "\013_circuit_idB\020\n" + "\016_google_demarcB\016\n" + "\014_lacp_statusB\t\n" @@ -15423,25 +15418,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004_cknB\016\n" + "\014_operational\"\224\006\n" + "\021InterconnectGroup\022Q\n\n" - + "configured\030\276\364\373\214\001 \001(\01324.goo" - + "gle.cloud.compute.v1.InterconnectGroupConfiguredH\000\210\001\001\022\"\n" + + "configured\030\276\364\373\214\001" + + " \001(\01324.google.cloud.compute.v1.InterconnectGroupConfiguredH\000\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\003\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\004\210\001\001\022I\n" - + "\006intent\030\234\355\304\313\001" - + " \001(\01320.google.cloud.compute.v1.InterconnectGroupIntentH\005\210\001\001\022X\n\r" - + "interconnects\030\245\333\205\370\001 \003(\0132=.google.cloud.com" - + "pute.v1.InterconnectGroup.InterconnectsEntry\022\024\n" + + "\006intent\030\234\355\304\313\001 " + + "\001(\01320.google.cloud.compute.v1.InterconnectGroupIntentH\005\210\001\001\022X\n\r" + + "interconnects\030\245\333\205\370\001" + + " \003(\0132=.google.cloud.compute.v1.InterconnectGroup.InterconnectsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\006\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\007\210\001\001\022_\n" - + "\022physical_structure\030\213\320\220] \001(\0132" - + ";.google.cloud.compute.v1.InterconnectGroupPhysicalStructureH\010\210\001\001\022\032\n" + + "\022physical_structure\030\213\320\220] \001(\0132;.google.cloud.c" + + "ompute.v1.InterconnectGroupPhysicalStructureH\010\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\t\210\001\001\032l\n" + "\022InterconnectsEntry\022\013\n" + "\003key\030\001 \001(\t\022E\n" - + "\005value\030\002 \001(\01326.google.cloud.c" - + "ompute.v1.InterconnectGroupInterconnect:\0028\001B\r\n" + + "\005value\030\002" + + " \001(\01326.google.cloud.compute.v1.InterconnectGroupInterconnect:\0028\001B\r\n" + "\013_configuredB\025\n" + "\023_creation_timestampB\016\n" + "\014_descriptionB\007\n" @@ -15453,14 +15448,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023_physical_structureB\014\n\n" + "_self_link\"\242\001\n" + "\033InterconnectGroupConfigured\022k\n" - + "\023topology_capability\030\350\331\340D " - + "\001(\0132F.google.cloud.compute.v1.Interconne" - + "ctGroupConfiguredTopologyCapabilityH\000\210\001\001B\026\n" + + "\023topology_capability\030\350\331\340D \001(\0132F.google.clo" + + "ud.compute.v1.InterconnectGroupConfiguredTopologyCapabilityH\000\210\001\001B\026\n" + "\024_topology_capability\"\374\002\n" + "-InterconnectGroupConfiguredTopologyCapability\022\212\001\n" - + "\034intended_capability_blockers\030\354\375\300\375\001 \003(\0132`." - + "google.cloud.compute.v1.InterconnectGrou" - + "pConfiguredTopologyCapabilityIntendedCapabilityBlockers\022\035\n\r" + + "\034intended_capability_blockers\030\354\375\300\375\001 \003(\0132`.google.cloud.com" + + "pute.v1.InterconnectGroupConfiguredTopol" + + "ogyCapabilityIntendedCapabilityBlockers\022\035\n\r" + "supported_sla\030\227\364\242\034 \001(\tH\000\210\001\001\"\214\001\n" + "\014SupportedSla\022\033\n" + "\027UNDEFINED_SUPPORTED_SLA\020\000\022\r\n" @@ -15501,17 +15495,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014interconnect\030\216\311\214k \001(\tH\000\210\001\001B\017\n\r" + "_interconnect\"{\n" + "\"InterconnectGroupPhysicalStructure\022U\n" - + "\006metros\030\372\354\227\376\001 \003(\0132A.google.clo" - + "ud.compute.v1.InterconnectGroupPhysicalStructureMetros\"\260\001\n" + + "\006metros\030\372\354\227\376\001 \003(\0132A.google.cloud.compute.v1.In" + + "terconnectGroupPhysicalStructureMetros\"\260\001\n" + "(InterconnectGroupPhysicalStructureMetros\022c\n\n" - + "facilities\030\201\305\364\377\001 \003(\0132K.google.cloud.compute.v1.Interconne" - + "ctGroupPhysicalStructureMetrosFacilities\022\025\n" + + "facilities\030\201\305\364\377\001 \003(\0132K.google.clo" + + "ud.compute.v1.InterconnectGroupPhysicalStructureMetrosFacilities\022\025\n" + "\005metro\030\231\332\2761 \001(\tH\000\210\001\001B\010\n" + "\006_metro\"\300\001\n" + "2InterconnectGroupPhysicalStructureMetrosFacilities\022\031\n" + "\010facility\030\243\335\371\356\001 \001(\tH\000\210\001\001\022b\n" - + "\005zones\030\307\244\2557 \003(\0132P.google.cloud.compute.v1." - + "InterconnectGroupPhysicalStructureMetrosFacilitiesZonesB\013\n" + + "\005zones\030\307\244\2557 \003(\0132P.google.cloud.compute.v1.InterconnectGrou" + + "pPhysicalStructureMetrosFacilitiesZonesB\013\n" + "\t_facility\"s\n" + "7InterconnectGroupPhysicalStructureMetrosFacilitiesZones\022\031\n\r" + "interconnects\030\245\333\205\370\001 \003(\t\022\024\n" @@ -15519,11 +15513,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_zone\"\320\003\n" + "\037InterconnectGroupsCreateMembers\022(\n" + "\030intent_mismatch_behavior\030\300\325\262N \001(\tH\000\210\001\001\022d\n\r" - + "interconnects\030\245\333\205\370\001 \003(\0132I.google.cloud.compute.v1.Int" - + "erconnectGroupsCreateMembersInterconnectInput\022p\n" - + "\025template_interconnect\030\263\260\225k \001(\0132" - + "I.google.cloud.compute.v1.InterconnectGr" - + "oupsCreateMembersInterconnectInputH\001\210\001\001\"t\n" + + "interconnects\030\245\333\205\370\001 \003(\0132I.goo" + + "gle.cloud.compute.v1.InterconnectGroupsCreateMembersInterconnectInput\022p\n" + + "\025template_interconnect\030\263\260\225k \001(\0132I.google.cloud.c" + + "ompute.v1.InterconnectGroupsCreateMembersInterconnectInputH\001\210\001\001\"t\n" + "\026IntentMismatchBehavior\022&\n" + "\"UNDEFINED_INTENT_MISMATCH_BEHAVIOR\020\000\022\016\n" + "\006CREATE\020\374\251\342\267\001\022\r\n" @@ -15568,20 +15561,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025_requested_link_count\"\207\001\n" + "&InterconnectGroupsCreateMembersRequest\022Q\n" + "\007request\030\217\345\273\n" - + " \001(\01328.google.cloud.compute." - + "v1.InterconnectGroupsCreateMembersH\000\210\001\001B\n\n" + + " \001(\013" + + "28.google.cloud.compute.v1.InterconnectGroupsCreateMembersH\000\210\001\001B\n\n" + "\010_request\"\260\001\n" + ".InterconnectGroupsGetOperationalStatusResponse\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022T\n" - + "\006result\030\235\220\267B \001(\0132<.google.cloud.c" - + "ompute.v1.InterconnectGroupsOperationalStatusH\001\210\001\001B\007\n" + + "\006result\030\235\220\267B" + + " \001(\0132<.google.cloud.compute.v1.InterconnectGroupsOperationalStatusH\001\210\001\001B\007\n" + "\005_etagB\t\n" + "\007_result\"\364\002\n" + "\036InterconnectGroupsListResponse\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\tH\001\210\001\001\022<\n" - + "\005items\030\300\317\367/ " - + "\003(\0132*.google.cloud.compute.v1.InterconnectGroup\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132*.google.cloud.compute.v1.InterconnectGroup\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n" @@ -15595,15 +15588,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\350\004\n" + "#InterconnectGroupsOperationalStatus\022Q\n\n" - + "configured\030\276\364\373\214\001 \001(\01324.google.c" - + "loud.compute.v1.InterconnectGroupConfiguredH\000\210\001\001\022\035\n" + + "configured\030\276\364\373\214\001" + + " \001(\01324.google.cloud.compute.v1.InterconnectGroupConfiguredH\000\210\001\001\022\035\n" + "\014group_status\030\262\263\305\241\001 \001(\tH\001\210\001\001\022I\n" - + "\006intent\030\234\355\304\313\001" - + " \001(\01320.google.cloud.compute.v1.InterconnectGroupIntentH\002\210\001\001\022q\n" - + "\025interconnect_statuses\030\261\351\203\325\001 \003(\0132N.google.c" - + "loud.compute.v1.InterconnectGroupsOperationalStatusInterconnectStatus\022Q\n" - + "\013operational\030\322\307\354=" - + " \001(\01324.google.cloud.compute.v1.InterconnectGroupConfiguredH\003\210\001\001\"\202\001\n" + + "\006intent\030\234\355\304\313\001 " + + "\001(\01320.google.cloud.compute.v1.InterconnectGroupIntentH\002\210\001\001\022q\n" + + "\025interconnect_statuses\030\261\351\203\325\001 \003(\0132N.google.cloud.compute.v1." + + "InterconnectGroupsOperationalStatusInterconnectStatus\022Q\n" + + "\013operational\030\322\307\354= \001(\01324." + + "google.cloud.compute.v1.InterconnectGroupConfiguredH\003\210\001\001\"\202\001\n" + "\013GroupStatus\022\032\n" + "\026UNDEFINED_GROUP_STATUS\020\000\022\020\n" + "\010DEGRADED\020\256\246\240\275\001\022\021\n\n" @@ -15616,8 +15609,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_operational\"\207\003\n" + "5InterconnectGroupsOperationalStatusInterconnectStatus\022\036\n\r" + "admin_enabled\030\321\354\301\324\001 \001(\010H\000\210\001\001\022N\n" - + "\013diagnostics\030\254\263\372\236\001" - + " \001(\01320.google.cloud.compute.v1.InterconnectDiagnosticsH\001\210\001\001\022\034\n" + + "\013diagnostics\030\254\263\372\236\001 " + + "\001(\01320.google.cloud.compute.v1.InterconnectDiagnosticsH\001\210\001\001\022\034\n" + "\014interconnect\030\216\311\214k \001(\tH\002\210\001\001\022\031\n" + "\tis_active\030\273\327\3406 \001(\tH\003\210\001\001\"d\n" + "\010IsActive\022\027\n" @@ -15658,8 +15651,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\213\365\315\001 \001(\tH\n" + "\210\001\001\022&\n" + "\025peeringdb_facility_id\030\266\272\355\377\001 \001(\tH\013\210\001\001\022Q\n" - + "\014region_infos\030\372\350\356\224\001 \003(\01327.g" - + "oogle.cloud.compute.v1.InterconnectLocationRegionInfo\022\032\n" + + "\014region_infos\030\372\350\356\224\001" + + " \003(\01327.google.cloud.compute.v1.InterconnectLocationRegionInfo\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\014\210\001\001\022\026\n" + "\006status\030\362\237\267V \001(\tH\r" + "\210\001\001\022\034\n" @@ -15687,8 +15680,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006Status\022\024\n" + "\020UNDEFINED_STATUS\020\000\022\021\n" + "\tAVAILABLE\020\251\265\346\322\001\022\016\n" - + "\006CLOSED\020\354\252\243\265\001B\n" - + "\n" + + "\006CLOSED\020\354\252\243\265\001B\n\n" + "\010_addressB\024\n" + "\022_availability_zoneB\007\n" + "\005_cityB\014\n\n" @@ -15706,17 +15698,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_supports_pzs\"\271\002\n" + "\030InterconnectLocationList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022?\n" - + "\005items\030\300\317\367/" - + " \003(\0132-.google.cloud.compute.v1.InterconnectLocation\022\024\n" - + "\004k", - "ind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + + "\005it", + "ems\030\300\317\367/ \003(\0132-.google.cloud.compute.v1.InterconnectLocation\022\024\n" + + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\004\210\001\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" - + "\020_next_page_tokenB\014\n\n" + + "\020_next_page_tokenB\014\n" + + "\n" + "_self_linkB\n\n" + "\010_warning\"\272\002\n" + "\036InterconnectLocationRegionInfo\022 \n" @@ -15734,12 +15726,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_region\"\224\001\n" + "\022InterconnectMacsec\022\032\n" + "\tfail_open\030\313\225\373\375\001 \001(\010H\000\210\001\001\022T\n" - + "\017pre_shared_keys\030\362\313\265\310\001 \003(\01327.g" - + "oogle.cloud.compute.v1.InterconnectMacsecPreSharedKeyB\014\n\n" + + "\017pre_shared_keys\030\362\313\265\310\001" + + " \003(\01327.google.cloud.compute.v1.InterconnectMacsecPreSharedKeyB\014\n" + + "\n" + "_fail_open\"v\n" + "\030InterconnectMacsecConfig\022Z\n" - + "\017pre_shared_keys\030\362\313\265\310\001" - + " \003(\0132=.google.cloud.compute.v1.InterconnectMacsecConfigPreSharedKey\"\250\001\n" + + "\017pre_shared_keys\030\362\313\265\310\001 \003(\0132=.google.cl" + + "oud.compute.v1.InterconnectMacsecConfigPreSharedKey\"\250\001\n" + "$InterconnectMacsecConfigPreSharedKey\022\022\n" + "\003cak\030\315\377\005 \001(\tH\000\210\001\001\022\022\n" + "\003ckn\030\206\202\006 \001(\tH\001\210\001\001\022\024\n" @@ -15781,7 +15774,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tNS_ACTIVE\020\300\235\267x\022\023\n" + "\013NS_CANCELED\020\323\223\307\361\001B\016\n" + "\014_descriptionB\013\n" - + "\t_end_timeB\r\n" + + "\t_end_timeB\r" + + "\n" + "\013_issue_typeB\007\n" + "\005_nameB\t\n" + "\007_sourceB\r\n" @@ -15790,11 +15784,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032InterconnectRemoteLocation\022\030\n" + "\007address\030\364\267\336\334\001 \001(\tH\000\210\001\001\022~\n" + "$attachment_configuration_constraints\030\321\350\353\233\001" - + " \001(\0132G.google.cloud.com" - + "pute.v1.InterconnectAttachmentConfigurationConstraintsH\001\210\001\001\022\024\n" + + " \001(\0132G.google.cloud.compute.v1.Intercon" + + "nectAttachmentConfigurationConstraintsH\001\210\001\001\022\024\n" + "\004city\030\353\262\272\001 \001(\tH\002\210\001\001\022[\n" - + "\013constraints\030\266\314\356\001 \001(\0132>.google.cloud" - + ".compute.v1.InterconnectRemoteLocationConstraintsH\003\210\001\001\022\031\n" + + "\013constraints\030\266\314\356\001 \001(\0132>.google.cloud.compute.v1.Inte" + + "rconnectRemoteLocationConstraintsH\003\210\001\001\022\031\n" + "\tcontinent\030\264\333\320? \001(\tH\004\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\005\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\006\210\001\001\022\"\n" @@ -15809,8 +15803,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\016\210\001\001\022&\n" + "\025peeringdb_facility_id\030\266\272\355\377\001 \001(\tH\017\210\001\001\022j\n" - + "\025permitted_connections\030\256\263\345\322\001 \003(\0132G.google.cloud" - + ".compute.v1.InterconnectRemoteLocationPermittedConnections\022\037\n" + + "\025permitted_connections\030\256\263\345\322\001" + + " \003(\0132G.google.cloud.compute.v1.Inte" + + "rconnectRemoteLocationPermittedConnections\022\037\n" + "\016remote_service\030\274\377\362\272\001 \001(\tH\020\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\021\210\001\001\022\026\n" + "\006status\030\362\237\267V \001(\tH\022\210\001\001\"\202\001\n" @@ -15852,9 +15847,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031port_pair_remote_location\030\247\262\274\354\001 \001(" + "\tH\000\210\001\001\022\037\n" + "\016port_pair_vlan\030\352\362\203\344\001 \001(\tH\001\210\001\001\022t\n" - + "\023subnet_length_range\030\306\260\373W \001(\0132O.google" - + ".cloud.compute.v1.InterconnectRemoteLoca" - + "tionConstraintsSubnetLengthRangeH\002\210\001\001\"\234\001\n" + + "\023subnet_length_range\030\306\260\373W \001(\0132O.google.cloud.compute.v" + + "1.InterconnectRemoteLocationConstraintsSubnetLengthRangeH\002\210\001\001\"\234\001\n" + "\026PortPairRemoteLocation\022\'\n" + "#UNDEFINED_PORT_PAIR_REMOTE_LOCATION\020\000\022)\n" + "\"PORT_PAIR_MATCHING_REMOTE_LOCATION\020\323\213\354b\022.\n" @@ -15873,8 +15867,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004_min\"\305\002\n" + "\036InterconnectRemoteLocationList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022E\n" - + "\005items\030\300\317\367/" - + " \003(\01323.google.cloud.compute.v1.InterconnectRemoteLocation\022\024\n" + + "\005items\030\300\317\367/ \003(\01323.goog" + + "le.cloud.compute.v1.InterconnectRemoteLocation\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -15883,19 +15877,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" - + "_self_linkB\n\n" + + "_self_linkB\n" + + "\n" + "\010_warning\"r\n" + ".InterconnectRemoteLocationPermittedConnections\022&\n" + "\025interconnect_location\030\306\330\333\352\001 \001(\tH\000\210\001\001B\030\n" + "\026_interconnect_location\"z\n" + "#InterconnectsGetDiagnosticsResponse\022H\n" - + "\006result\030\235\220\267B \001(\013" - + "20.google.cloud.compute.v1.InterconnectDiagnosticsH\000\210\001\001B\t\n" + + "\006result\030\235\220\267B \001(\01320.google.cloud." + + "compute.v1.InterconnectDiagnosticsH\000\210\001\001B\t\n" + "\007_result\"\233\001\n" + "$InterconnectsGetMacsecConfigResponse\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022I\n" - + "\006result\030\235\220\267B \001(\01321.google.cl" - + "oud.compute.v1.InterconnectMacsecConfigH\001\210\001\001B\007\n" + + "\006result\030\235\220\267B" + + " \001(\01321.google.cloud.compute.v1.InterconnectMacsecConfigH\001\210\001\001B\007\n" + "\005_etagB\t\n" + "\007_result\"\351\001\n" + "\034InvalidateCacheUrlMapRequest\022a\n" @@ -15929,8 +15924,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\210\001\001\022#\n" + "\023removable_from_disk\030\256\205\252\014 \001(\010H\013\210\001\001\022\'\n" + "\034required_coattached_licenses\030\201\272\315= \003(\t\022[\n" - + "\025resource_requirements\030\241\262\227f" - + " \001(\01324.google.cloud.compute.v1.LicenseResourceRequirementsH\014\210\001\001\022\032\n" + + "\025resource_requirements\030\241\262\227f \001(\01324.g" + + "oogle.cloud.compute.v1.LicenseResourceRequirementsH\014\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\r" + "\210\001\001\022!\n" + "\021self_link_with_id\030\202\254\235\025 \001(\tH\016\210\001\001\022!\n" @@ -15960,8 +15955,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\002\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\003\210\001\001\022J\n\r" - + "license_alias\030\322\221\342\024 \003(\01320.google.c" - + "loud.compute.v1.LicenseCodeLicenseAlias\022\024\n" + + "license_alias\030\322\221\342\024" + + " \003(\01320.google.cloud.compute.v1.LicenseCodeLicenseAlias\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\004\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\005\210\001\001\022\025\n" + "\005state\030\221\211\2534 \001(\tH\006\210\001\001\022\034\n" @@ -15984,16 +15979,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027LicenseCodeLicenseAlias\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\000\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\001\210\001\001B\016\n" - + "\014_descriptionB\014\n" - + "\n" + + "\014_descriptionB\014\n\n" + "_self_link\"\234\001\n" + "\031LicenseResourceCommitment\022\026\n" + "\006amount\030\330\240\351] \001(\003H\000\210\001\001\022!\n" + "\021cores_per_license\030\224\310\276\017 \001(\tH\001\210\001\001\022\027\n" + "\007license\030\301\210\302O \001(\tH\002\210\001\001B\t\n" + "\007_amountB\024\n" - + "\022_cores_per_licenseB\n" - + "\n" + + "\022_cores_per_licenseB\n\n" + "\010_license\"\215\001\n" + "\033LicenseResourceRequirements\022$\n" + "\023min_guest_cpu_count\030\244\324\364\343\001 \001(\005H\000\210\001\001\022\036\n\r" @@ -16030,8 +16023,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" + "\013max_results\030\233\310\213\032 \001(\r" + "H\001\210\001\001\022\030\n" - + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n" - + "\n" + + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\'\n" @@ -16109,8 +16101,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026return_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n" + "\007_filterB\016\n" + "\014_max_resultsB\013\n" - + "\t_order_byB\r" - + "\n" + + "\t_order_byB\r\n" + "\013_page_tokenB\031\n" + "\027_return_partial_success\"\213\006\n" + "\033ListBgpRoutesRoutersRequest\022\036\n" @@ -16223,7 +16214,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026return_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n" + "\007_filterB\016\n" + "\014_max_resultsB\013\n" - + "\t_order_byB\r\n" + + "\t_order_byB\r" + + "\n" + "\013_page_tokenB\031\n" + "\027_return_partial_success\"\240\002\n" + "\036ListExternalVpnGatewaysRequest\022\027\n" @@ -16257,8 +16249,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" + "\013max_results\030\233\310\213\032 \001(\r" + "H\001\210\001\001\022\030\n" - + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n" - + "\n" + + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n" + "\026return_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n" @@ -16351,7 +16342,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" + "\013max_results\030\233\310\213\032 \001(\r" + "H\001\210\001\001\022\030\n" - + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n" + + "\n" + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n" + "\026return_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n" @@ -16406,10 +16398,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" + "\013max_results\030\233\310\213\032 \001(\r" + "H\001\210\001\001\022\030\n" - + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + + "\010or", + "der_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n" - + "\007project\030\231\226\301l", - " \001(\tB\003\340A\002\022\'\n" + + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n" + "\026return_partial_success\030\266\244\317\366\001" + " \001(\010H\004\210\001\001\022\024\n" + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002B\t\n" @@ -16450,8 +16442,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\036\n" + "\016instance_group\030\325\324\325& \001(\tB\003\340A\002\022}\n" + "/instance_groups_list_instances_request_resource\030\237\250\214\343\001" - + " \001(\0132;.google.cl" - + "oud.compute.v1.InstanceGroupsListInstancesRequestB\003\340A\002\022\033\n" + + " \001(\0132;.google.cloud.compute.v1.I" + + "nstanceGroupsListInstancesRequestB\003\340A\002\022\033\n" + "\013max_results\030\233\310\213\032 \001(\r" + "H\001\210\001\001\022\030\n" + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" @@ -16475,8 +16467,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\211\001\n" + "6region_instance_groups_list_instances_request_resource\030\324\251\200\027" - + " \001(\0132A.google.cloud.compute.v1.Regi" - + "onInstanceGroupsListInstancesRequestB\003\340A\002\022\'\n" + + " \001(\0132A.goog" + + "le.cloud.compute.v1.RegionInstanceGroupsListInstancesRequestB\003\340A\002\022\'\n" + "\026return_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n" + "\007_filterB\016\n" + "\014_max_resultsB\013\n" @@ -16713,8 +16705,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "H\001\210\001\001\022\'\n" + "\026network_endpoint_group\030\206\313\363\316\001 \001(\tB\003\340A\002\022\213\001\n" + "7network_endpoint_groups_list_endpoints_request_resource\030\216\230\257\034" - + " \001(\0132B.google.clou" - + "d.compute.v1.NetworkEndpointGroupsListEndpointsRequestB\003\340A\002\022\030\n" + + " \001(\0132B.google.cloud.compute.v1.Net" + + "workEndpointGroupsListEndpointsRequestB\003\340A\002\022\030\n" + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n" @@ -16906,8 +16898,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026return_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n" + "\007_filterB\016\n" + "\014_max_resultsB\013\n" - + "\t_order_byB\r" - + "\n" + + "\t_order_byB\r\n" + "\013_page_tokenB\031\n" + "\027_return_partial_success\"\270\002\n" + "6ListPreconfiguredExpressionSetsSecurityPoliciesRequest\022\027\n" @@ -17113,11 +17104,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" - + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\'\n" + + "\006region\030\364\315\240B \001(\tB\003\340A", + "\002\022\'\n" + "\026return_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n" + "\007_filterB\016\n" - + "\014_max_re", - "sultsB\013\n" + + "\014_max_resultsB\013\n" + "\t_order_byB\r\n" + "\013_page_tokenB\031\n" + "\027_return_partial_success\"\300\002\n" @@ -17265,8 +17256,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" + "\013max_results\030\233\310\213\032 \001(\r" + "H\001\210\001\001\022\030\n" - + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n" - + "\n" + + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\'\n" @@ -17457,7 +17447,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026return_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n" + "\007_filterB\016\n" + "\014_max_resultsB\013\n" - + "\t_order_byB\r\n" + + "\t_order_byB\r" + + "\n" + "\013_page_tokenB\031\n" + "\027_return_partial_success\"\230\002\n" + "\026ListSslPoliciesRequest\022\027\n" @@ -17492,8 +17483,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033\n" + "\013max_results\030\233\310\213\032 \001(\r" + "H\001\210\001\001\022\030\n" - + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n" - + "\n" + + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n" + "\026return_partial_success\030\266\244\317\366\001" @@ -17541,8 +17531,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026return_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n" + "\007_filterB\016\n" + "\014_max_resultsB\013\n" - + "\t_order_byB\r" - + "\n" + + "\t_order_byB\r\n" + "\013_page_tokenB\031\n" + "\027_return_partial_success\"\237\002\n" + "\035ListTargetHttpsProxiesRequest\022\027\n" @@ -17717,8 +17706,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010order_by\030\350\375\307L \001(\tH\002\210\001\001\022\032\n\n" + "page_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022n\n" - + "(projects_list_xpn_hosts_request_resource\030\227\320\316q \001(\01324.google.cloud." - + "compute.v1.ProjectsListXpnHostsRequestB\003\340A\002\022\'\n" + + "(projects_list_xpn_hosts_request_resource\030\227\320\316q" + + " \001(\01324.google.cloud.compute.v1.ProjectsListXpnHostsRequestB\003\340A\002\022\'\n" + "\026return_partial_success\030\266\244\317\366\001 \001(\010H\004\210\001\001B\t\n" + "\007_filterB\016\n" + "\014_max_resultsB\013\n" @@ -17766,13 +17755,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_localeB\n\n" + "\010_message\"\322\002\n" + "\016LocationPolicy\022M\n" - + "\tlocations\030\336\256\221\305\001 \003(\01326.goog" - + "le.cloud.compute.v1.LocationPolicy.LocationsEntry\022\035\n" + + "\tlocations\030\336\256\221\305\001" + + " \003(\01326.google.cloud.compute.v1.LocationPolicy.LocationsEntry\022\035\n" + "\014target_shape\030\363\346\273\241\001 \001(\tH\000\210\001\001\032a\n" + "\016LocationsEntry\022\013\n" + "\003key\030\001 \001(\t\022>\n" - + "\005value\030\002" - + " \001(\0132/.google.cloud.compute.v1.LocationPolicyLocation:\0028\001\"^\n" + + "\005value\030\002 \001(\0132/.google." + + "cloud.compute.v1.LocationPolicyLocation:\0028\001\"^\n" + "\013TargetShape\022\032\n" + "\026UNDEFINED_TARGET_SHAPE\020\000\022\t\n" + "\003ANY\020\314\373\003\022\026\n" @@ -17780,8 +17769,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010BALANCED\020\210\272\255\337\001B\017\n\r" + "_target_shape\"\216\002\n" + "\026LocationPolicyLocation\022W\n" - + "\013constraints\030\266\314\356\001 \001(\0132:.google.cloud.c" - + "ompute.v1.LocationPolicyLocationConstraintsH\000\210\001\001\022\032\n\n" + + "\013constraints\030\266\314\356\001" + + " \001(\0132:.google.cloud.compute.v1.LocationPolicyLocationConstraintsH\000\210\001\001\022\032\n\n" + "preference\030\333\371\362G \001(\tH\001\210\001\001\"`\n\n" + "Preference\022\030\n" + "\024UNDEFINED_PREFERENCE\020\000\022\014\n" @@ -17798,14 +17787,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022\034\n" + "\013guest_flush\030\335\223\354\267\001 \001(\010H\002\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\003\210\001\001\022P\n" - + "\023instance_properties\030\235\236\330f" - + " \001(\0132+.google.cloud.compute.v1.InstancePropertiesH\004\210\001\001\022\024\n" + + "\023instance_properties\030\235\236\330f \001(\0132+.google" + + ".cloud.compute.v1.InstancePropertiesH\004\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\005\210\001\001\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\006\210\001\001\022E\n" - + "\006labels\030\377\277\301\356\001" - + " \003(\01321.google.cloud.compute.v1.MachineImage.LabelsEntry\022]\n" - + "\034machine_image_encryption_key\030\377\377\347\373\001 \001(\0132..google.clo" - + "ud.compute.v1.CustomerEncryptionKeyH\007\210\001\001\022\024\n" + + "\006labels\030\377\277\301\356\001 \003(\01321" + + ".google.cloud.compute.v1.MachineImage.LabelsEntry\022]\n" + + "\034machine_image_encryption_key\030\377\377\347\373\001" + + " \001(\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\007\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\010\210\001\001\022\036\n\r" + "satisfies_pzi\030\241\335\253\345\001 \001(\010H\t\210\001\001\022\036\n\r" + "satisfies_pzs\030\253\335\253\345\001 \001(\010H\n" @@ -17813,8 +17802,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013saved_disks\030\276\355\300\275\001" + " \003(\0132\".google.cloud.compute.v1.SavedDisk\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\013\210\001\001\022Y\n" - + "\033source_disk_encryption_keys\030\262\370\317\260\001" - + " \003(\01320.google.cloud.compute.v1.SourceDiskEncryptionKey\022 \n" + + "\033source_disk_encryption_keys\030\262\370\317\260\001 \003(\013" + + "20.google.cloud.compute.v1.SourceDiskEncryptionKey\022 \n" + "\017source_instance\030\271\230\375\274\001 \001(\tH\014\210\001\001\022^\n" + "\032source_instance_properties\030\371\321\313\342\001" + " \001(\01321.google.cloud.compute.v1.SourceInstancePropertiesH\r" @@ -17829,12 +17818,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020UNDEFINED_STATUS\020\000\022\020\n" + "\010CREATING\020\271\275\235\331\001\022\020\n" + "\010DELETING\020\250\247\207\374\001\022\017\n" - + "\007INVALID\020\327\373\355\374\001\022\014\n" + + "\007INVALID\020\327", + "\373\355\374\001\022\014\n" + "\005READY\020\203\303\217%\022\020\n" + "\tUPLOADING\020\241\234\315\177B\025\n" + "\023_creation_timestampB\016\n" - + "\014_", - "descriptionB\016\n" + + "\014_descriptionB\016\n" + "\014_guest_flushB\005\n" + "\003_idB\026\n" + "\024_instance_propertiesB\007\n" @@ -17867,8 +17856,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\0132%.google.cloud.compute.v1.Accelerators\022\035\n" + "\014architecture\030\323\322\261\220\001 \001(\tH\000\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022G\n\n" - + "deprecated\030\263\313\321\365\001" - + " \001(\0132*.google.cloud.compute.v1.DeprecationStatusH\002\210\001\001\022\034\n" + + "deprecated\030\263\313\321\365\001 " + + "\001(\0132*.google.cloud.compute.v1.DeprecationStatusH\002\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\003\210\001\001\022\033\n\n" + "guest_cpus\030\322\313\310\273\001 \001(\005H\004\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\005\210\001\001\022\036\n" @@ -17905,8 +17894,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_zone\"\302\003\n" + "\031MachineTypeAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022O\n" - + "\005items\030\300\317\367/" - + " \003(\0132=.google.cloud.compute.v1.MachineTypeAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132=.googl" + + "e.cloud.compute.v1.MachineTypeAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -17915,8 +17904,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032]\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022>\n" - + "\005value\030\002 \001(\013" - + "2/.google.cloud.compute.v1.MachineTypesScopedList:\0028\001B\005\n" + + "\005value\030\002" + + " \001(\0132/.google.cloud.compute.v1.MachineTypesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -17947,18 +17936,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017instance_health\030\306\222\274\266\001" + " \003(\01326.google.cloud.compute.v1.ManagedInstanceInstanceHealth\022\037\n" + "\017instance_status\030\334\255\237S \001(\tH\003\210\001\001\022R\n" - + "\014last_attempt\030\244\254\250\317\001" - + " \001(\01323.google.cloud.compute.v1.ManagedInstanceLastAttemptH\004\210\001\001\022\024\n" + + "\014last_attempt\030\244\254\250\317\001 \001(\0132" + + "3.google.cloud.compute.v1.ManagedInstanceLastAttemptH\004\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\005\210\001\001\022T\n" - + "\033preserved_state_from_config\030\342\353\205/" - + " \001(\0132\'.google.cloud.compute.v1.PreservedStateH\006\210\001\001\022U\n" + + "\033preserved_state_from_config\030\342\353\205/ \001(\0132" + + "\'.google.cloud.compute.v1.PreservedStateH\006\210\001\001\022U\n" + "\033preserved_state_from_policy\030\322\257\276\340\001" + " \001(\0132\'.google.cloud.compute.v1.PreservedStateH\007\210\001\001\022{\n" - + "\"properties_from_flexibility_policy\030\301\305\224J \001(\0132G.go" - + "ogle.cloud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicyH\010\210\001\001\022I\n" - + "\007version\030\330\271\324\247\001" - + " \001(\0132/.google.cloud.compute.v1.ManagedInstanceVersionH" - + "\t\210\001\001\"\205\002\n\r" + + "\"properties_from_flexibility_policy\030\301\305\224J \001(\0132G.google.cloud.compu" + + "te.v1.ManagedInstancePropertiesFromFlexibilityPolicyH\010\210\001\001\022I\n" + + "\007version\030\330\271\324\247\001 \001(\0132/" + + ".google.cloud.compute.v1.ManagedInstanceVersionH\t\210\001\001\"\205\002\n\r" + "CurrentAction\022\034\n" + "\030UNDEFINED_CURRENT_ACTION\020\000\022\022\n\n" + "ABANDONING\020\315\312\220\271\001\022\020\n" @@ -17981,7 +17969,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007STAGING\020\233\310\306\315\001\022\017\n" + "\007STOPPED\020\255\273\354\323\001\022\020\n" + "\010STOPPING\020\364\320\242\247\001\022\020\n" - + "\tSUSPENDED\020\273\273\266\030\022\022\n\n" + + "\tSUSPENDED\020\273\273\266\030\022\022\n" + + "\n" + "SUSPENDING\020\246\324\230\365\001\022\021\n\n" + "TERMINATED\020\243\364\233wB\021\n" + "\017_current_actionB\005\n" @@ -18007,8 +17996,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026_detailed_health_stateB\017\n\r" + "_health_check\"{\n" + "\032ManagedInstanceLastAttempt\022R\n" - + "\006errors\030\353\336\325\226\001 \001(\0132" - + "9.google.cloud.compute.v1.ManagedInstanceLastAttemptErrorsH\000\210\001\001B\t\n" + + "\006errors\030\353\336\325\226\001 \001(\01329.google.cloud.c" + + "ompute.v1.ManagedInstanceLastAttemptErrorsH\000\210\001\001B\t\n" + "\007_errors\"W\n" + " ManagedInstanceLastAttemptErrors\0223\n" + "\006errors\030\353\336\325\226\001 \003(\0132\037.google.cloud.compute.v1.Errors\"_\n" @@ -18026,9 +18015,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001B\016\n" + "\014_fingerprintB\007\n" + "\005_kind\"\217\002\n" - + "\016MetadataFilter\022L\n\r" - + "filter_labels\030\246\365\350\222\001 \003(\013" - + "21.google.cloud.compute.v1.MetadataFilterLabelMatch\022%\n" + + "\016MetadataFilter\022L\n" + + "\r" + + "filter_labels\030\246\365\350\222\001" + + " \003(\01321.google.cloud.compute.v1.MetadataFilterLabelMatch\022%\n" + "\025filter_match_criteria\030\300\320\266r \001(\tH\000\210\001\001\"n\n" + "\023FilterMatchCriteria\022#\n" + "\037UNDEFINED_FILTER_MATCH_CRITERIA\020\000\022\020\n" @@ -18046,13 +18036,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022l\n" - + "®ion_addresses_move_request_resource\030\304\260\210\303\001" - + " \001(\01323.google.cloud.compute.v1.RegionAddressesMoveRequestB\003\340A\002\022\032\n\n" + + "®ion_addresses_move_request_resource\030\304\260\210\303\001 \001(\01323.goog" + + "le.cloud.compute.v1.RegionAddressesMoveRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\275\001\n" + "\026MoveDiskProjectRequest\022U\n" - + "\032disk_move_request_resource\030\312\302\240\225\001" - + " \001(\0132(.google.cloud.compute.v1.DiskMoveRequestB\003\340A\002\022!\n" + + "\032disk_move_request_resource\030\312\302\240\225\001 \001(" + + "\0132(.google.cloud.compute.v1.DiskMoveRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" @@ -18064,17 +18054,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\360\001\n" + "\030MoveGlobalAddressRequest\022\030\n" + "\007address\030\364\267\336\334\001 \001(\tB\003\340A\002\022l\n" - + "&global_addresses_move_request_resource\030\363\361\261\220\001 \001(\01323.g" - + "oogle.cloud.compute.v1.GlobalAddressesMoveRequestB\003\340A\002\022!\n" + + "&global_addresses_move_request_resource\030\363\361\261\220\001" + + " \001(\01323.google.cloud.compute.v1.GlobalAddressesMoveRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\311\001\n" + "\032MoveInstanceProjectRequest\022]\n" - + "\036instance_move_request_resource\030\302\274\316\224\001" - + " \001(\0132,.google.cloud.compute.v1.InstanceMoveRequestB\003\340A\002\022!\n" + + "\036instance_move_request_resource\030\302\274\316\224\001 \001(\0132,.google" + + ".cloud.compute.v1.InstanceMoveRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" - + "\340A\002\362G\007project\022\032\n\n" + + "\340A\002\362G\007project\022\032\n" + + "\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"I\n" + "\tNamedPort\022\024\n" @@ -18083,8 +18074,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_nameB\007\n" + "\005_port\"\210\001\n" + "\tNatIpInfo\022S\n" - + "\024nat_ip_info_mappings\030\234\200\216s" - + " \003(\01322.google.cloud.compute.v1.NatIpInfoNatIpInfoMapping\022\031\n" + + "\024nat_ip_info_mappings\030\234\200\216s \003" + + "(\01322.google.cloud.compute.v1.NatIpInfoNatIpInfoMapping\022\031\n" + "\010nat_name\030\351\255\370\312\001 \001(\tH\000\210\001\001B\013\n" + "\t_nat_name\"\362\001\n" + "\031NatIpInfoNatIpInfoMapping\022\024\n" @@ -18097,7 +18088,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004AUTO\020\257\253{\022\r\n" + "\006MANUAL\020\306\267\3678\";\n" + "\005Usage\022\023\n" - + "\017UNDEFINED_USAGE\020\000\022\r\n" + + "\017UNDEFINED_USAGE\020\000\022\r" + + "\n" + "\006IN_USE\020\315\316\245\010\022\016\n" + "\006UNUSED\020\326\363\373\253\001B\007\n" + "\005_modeB\t\n" @@ -18123,12 +18115,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tH\014\210\001\001\022\037\n" + "\017network_profile\030\230\371\305R \001(\tH\r" + "\210\001\001\022>\n" - + "\006params\030\206\363\253% \001(\0132&" - + ".google.cloud.compute.v1.NetworkParamsH\016\210\001\001\022<\n" + + "\006params\030\206\363\253%" + + " \001(\0132&.google.cloud.compute.v1.NetworkParamsH\016\210\001\001\022<\n" + "\010peerings\030\263\252\251!" + " \003(\0132\'.google.cloud.compute.v1.NetworkPeering\022N\n" - + "\016routing_config\030\333\251\323\371\001" - + " \001(\0132-.google.cloud.compute.v1.NetworkRoutingConfigH\017\210\001\001\022\032\n" + + "\016routing_config\030\333\251\323\371\001 \001(\0132-." + + "google.cloud.compute.v1.NetworkRoutingConfigH\017\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\020\210\001\001\022!\n" + "\021self_link_with_id\030\202\254\235\025 \001(\tH\021\210\001\001\022\027\n" + "\013subnetworks\030\305\324\245\306\001 \003(\t\"\240\001\n" @@ -18155,8 +18147,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\024\n" + "\022_self_link_with_id\"\247\006\n" + "\021NetworkAttachment\022]\n" - + "\024connection_endpoints\030\335\242\276\233\001 \003(\0132;.google" - + ".cloud.compute.v1.NetworkAttachmentConnectedEndpoint\022&\n" + + "\024connection_endpoints\030\335\242\276\233\001" + + " \003(\0132;.google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint\022&\n" + "\025connection_preference\030\334\371\244\210\001 \001(\tH\000\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\033\n" @@ -18190,8 +18182,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022_self_link_with_id\"\273\003\n" + "\037NetworkAttachmentAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022U\n" - + "\005items\030\300\317\367/ \003(\0132C.google.cloud.compute" - + ".v1.NetworkAttachmentAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(" + + "\0132C.google.cloud.compute.v1.NetworkAttachmentAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -18199,8 +18191,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032c\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022D\n" - + "\005value\030\002 \001(\01325.google." - + "cloud.compute.v1.NetworkAttachmentsScopedList:\0028\001B\005\n" + + "\005value\030\002" + + " \001(\01325.google.cloud.compute.v1.NetworkAttachmentsScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -18230,8 +18222,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026_subnetwork_cidr_range\"\263\002\n" + "\025NetworkAttachmentList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022<\n" - + "\005items\030\300\317\367/" - + " \003(\0132*.google.cloud.compute.v1.NetworkAttachment\022\024\n" + + "\005items\030\300\317\367/ \003(\0132" + + "*.google.cloud.compute.v1.NetworkAttachment\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -18239,8 +18231,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" - + "\020_next_page_tokenB\014\n" - + "\n" + + "\020_next_page_tokenB\014\n\n" + "_self_linkB\n\n" + "\010_warning\"\262\001\n" + "\034NetworkAttachmentsScopedList\022K\n" @@ -18273,8 +18264,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "(NetworkEdgeSecurityServiceAggregatedList\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\tH\001\210\001\001\022^\n" - + "\005items\030\300\317\367/ \003(\0132L.google.cloud.compute.v1.NetworkEdge" - + "SecurityServiceAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132L.google.clou" + + "d.compute.v1.NetworkEdgeSecurityServiceAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n" @@ -18283,8 +18274,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\005\210\001\001\032l\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022M\n" - + "\005value\030\002" - + " \001(\0132>.google.cloud.compute.v1.NetworkEdgeSecurityServicesScopedList:\0028\001B\007\n" + + "\005value\030\002 \001(\0132>.goog" + + "le.cloud.compute.v1.NetworkEdgeSecurityServicesScopedList:\0028\001B\007\n" + "\005_etagB\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" @@ -18292,14 +18283,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\316\001\n" + "%NetworkEdgeSecurityServicesScopedList\022^\n" - + "\036network_edge_security_services\030\254\313\370\020 \003(\01323.goog" - + "le.cloud.compute.v1.NetworkEdgeSecurityService\0229\n" + + "\036network_edge_security_services\030\254\313\370\020" + + " \003(\01323.google.cloud.compute.v1.NetworkEdgeSecurityService\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\236\003\n" + "\017NetworkEndpoint\022Q\n" - + "\013annotations\030\244\366\2655 \003(" - + "\01329.google.cloud.compute.v1.NetworkEndpoint.AnnotationsEntry\022\'\n" + + "\013annotations\030\244\366\2655 \003(\01329.google.cloud" + + ".compute.v1.NetworkEndpoint.AnnotationsEntry\022\'\n" + "\027client_destination_port\030\206\210\202; \001(\005H\000\210\001\001\022\024\n" + "\004fqdn\030\225\245\300\001 \001(\tH\001\210\001\001\022\030\n" + "\010instance\030\225\251\332\010 \001(\tH\002\210\001\001\022\033\n\n" @@ -18316,14 +18307,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_ipv6_addressB\007\n" + "\005_port\"\211\013\n" + "\024NetworkEndpointGroup\022V\n" - + "\013annotations\030\244\366\2655 \003(\0132>.google.cloud.c" - + "ompute.v1.NetworkEndpointGroup.AnnotationsEntry\022S\n\n" - + "app_engine\030\240\214\300\242\001 \001(\01326.google" - + ".cloud.compute.v1.NetworkEndpointGroupAppEngineH\000\210\001\001\022[\n" - + "\016cloud_function\030\242\345\363\367\001 \001(\013" - + "2:.google.cloud.compute.v1.NetworkEndpointGroupCloudFunctionH\001\210\001\001\022P\n" - + "\tcloud_run\030\201\313\3724" - + " \001(\01325.google.cloud.compute.v1.NetworkEndpointGroupCloudRunH\002\210\001\001\022\"\n" + + "\013annotations\030\244\366\2655" + + " \003(\0132>.google.cloud.compute.v1.NetworkEndpointGroup.AnnotationsEntry\022S\n\n" + + "app_engine\030\240\214\300\242\001" + + " \001(\01326.google.cloud.compute.v1.NetworkEndpointGroupAppEngineH\000\210\001\001\022[\n" + + "\016cloud_function\030\242\345\363\367\001 \001(\0132:.google.cloud." + + "compute.v1.NetworkEndpointGroupCloudFunctionH\001\210\001\001\022P\n" + + "\tcloud_run\030\201\313\3724 \001(\01325.google" + + ".cloud.compute.v1.NetworkEndpointGroupCloudRunH\002\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\003\210\001\001\022\035\n" + "\014default_port\030\277\367\360\311\001 \001(\005H\004\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\005\210\001\001\022\020\n" @@ -18333,8 +18324,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007network\030\256\264\205o \001(\tH\t\210\001\001\022%\n" + "\025network_endpoint_type\030\323\306\2648 \001(\tH\n" + "\210\001\001\022N\n" - + "\010psc_data\030\311\333\246\" \001(\01324.google" - + ".cloud.compute.v1.NetworkEndpointGroupPscDataH\013\210\001\001\022#\n" + + "\010psc_data\030\311\333\246\"" + + " \001(\01324.google.cloud.compute.v1.NetworkEndpointGroupPscDataH\013\210\001\001\022#\n" + "\022psc_target_service\030\346\302\252\200\001 \001(\tH\014\210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH\r" + "\210\001\001\022\032\n" @@ -18376,8 +18367,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_zone\"\335\003\n" + "\"NetworkEndpointGroupAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022X\n" - + "\005items\030\300\317\367/ \003(\0132F.google.c" - + "loud.compute.v1.NetworkEndpointGroupAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132F.google.cloud.compute.v1." + + "NetworkEndpointGroupAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -18386,8 +18377,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032f\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022G\n" - + "\005value\030\002 \001(\01328.google." - + "cloud.compute.v1.NetworkEndpointGroupsScopedList:\0028\001B\005\n" + + "\005value\030\002" + + " \001(\01328.google.cloud.compute.v1.NetworkEndpointGroupsScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -18444,11 +18435,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022_psc_connection_idB\030\n" + "\026_psc_connection_status\"u\n" + "+NetworkEndpointGroupsAttachEndpointsRequest\022F\n" - + "\021network_endpoints\030\255\221\272G \003(\0132(" - + ".google.cloud.compute.v1.NetworkEndpoint\"u\n" + + "\021network_endpoints\030\255\221\272G" + + " \003(\0132(.google.cloud.compute.v1.NetworkEndpoint\"u\n" + "+NetworkEndpointGroupsDetachEndpointsRequest\022F\n" - + "\021network_endpoints\030\255\221\272G \003(\0132(." - + "google.cloud.compute.v1.NetworkEndpoint\"\244\001\n" + + "\021network_endpoints\030\255\221\272G" + + " \003(\0132(.google.cloud.compute.v1.NetworkEndpoint\"\244\001\n" + ")NetworkEndpointGroupsListEndpointsRequest\022\036\n\r" + "health_status\030\265\326\272\265\001 \001(\tH\000\210\001\001\"E\n" + "\014HealthStatus\022\033\n" @@ -18458,8 +18449,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016_health_status\"\253\002\n" + ")NetworkEndpointGroupsListNetworkEndpoints\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022J\n" - + "\005items\030\300\317\367/" - + " \003(\01328.google.cloud.compute.v1.NetworkEndpointWithHealthStatus\022\024\n" + + "\005items\030\300\317\367/ \003(\01328.googl" + + "e.cloud.compute.v1.NetworkEndpointWithHealthStatus\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" @@ -18475,16 +18466,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\317\001\n" + "\037NetworkEndpointWithHealthStatus\022K\n" - + "\007healths\030\227\223\255{ \003(\01327.goo" - + "gle.cloud.compute.v1.HealthStatusForNetworkEndpoint\022J\n" - + "\020network_endpoint\030\206\221\212\033 \001(\013" - + "2(.google.cloud.compute.v1.NetworkEndpointH\000\210\001\001B\023\n" - + "\021_network_endpoint\"\332\003\n" + + "\007healths\030\227\223\255{" + + " \003(\01327.google.cloud.compute.v1.HealthStatusForNetworkEndpoint\022J\n" + + "\020network_endpoint\030\206\221\212\033" + + " \001(\0132(.google.cloud.compute.v1.NetworkEndpointH\000\210\001\001B\023\n" + + "\021_netw", + "ork_endpoint\"\332\003\n" + "#NetworkFirewallPolicyAggregatedList\022\020\n" - + "\002id\030\233\032 \001(", - "\tH\000\210\001\001\022Y\n" - + "\005items\030\300\317\367/ \003(\0132G.google.cloud." - + "compute.v1.NetworkFirewallPolicyAggregatedList.ItemsEntry\022\024\n" + + "\002id\030\233\032 \001(\tH\000\210\001\001\022Y\n" + + "\005items\030\300\317\367/ \003(\0132G.google.cloud.compute.v1.Netwo" + + "rkFirewallPolicyAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -18493,8 +18484,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032a\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022B\n" - + "\005value\030\002 \001(\01323.google.clou" - + "d.compute.v1.FirewallPoliciesScopedList:\0028\001B\005\n" + + "\005value\030\002" + + " \001(\01323.google.cloud.compute.v1.FirewallPoliciesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -18569,15 +18560,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\257\001\n\r" + "NetworkParams\022b\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132?.google.cloud." - + "compute.v1.NetworkParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001" + + " \003(\0132?.google.cloud.compute.v1.NetworkParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\316\010\n" + "\016NetworkPeering\022\"\n" + "\022auto_create_routes\030\335\342\262\033 \001(\010H\000\210\001\001\022[\n" - + "\021connection_status\030\363\360\321\372\001 \001(\01327.go" - + "ogle.cloud.compute.v1.NetworkPeeringConnectionStatusH\001\210\001\001\022&\n" + + "\021connection_status\030\363\360\321\372\001 \001(\01327.google.cloud.compu" + + "te.v1.NetworkPeeringConnectionStatusH\001\210\001\001\022&\n" + "\026exchange_subnet_routes\030\320\312\306\014 \001(\010H\002\210\001\001\022$\n" + "\024export_custom_routes\030\215\245\337\034 \001(\010H\003\210\001\001\0223\n" + "#export_subnet_routes_with_public_ip\030\342\352\331." @@ -18624,10 +18615,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016_state_detailsB\022\n" + "\020_update_strategy\"\314\003\n" + "\036NetworkPeeringConnectionStatus\022g\n" - + "\017consensus_state\030\311\275\213\265\001 \001(\0132E" - + ".google.cloud.compute.v1.NetworkPeeringConnectionStatusConsensusStateH\000\210\001\001\022r\n" - + "\025traffic_configuration\030\264\324\266? \001(\0132K.google.cl" - + "oud.compute.v1.NetworkPeeringConnectionStatusTrafficConfigurationH\001\210\001\001\022\037\n" + + "\017consensus_state\030\311\275\213\265\001 \001(\0132E.google.cloud.co" + + "mpute.v1.NetworkPeeringConnectionStatusConsensusStateH\000\210\001\001\022r\n" + + "\025traffic_configuration\030\264\324\266? \001(\0132K.google.cloud.compute.v1.N" + + "etworkPeeringConnectionStatusTrafficConfigurationH\001\210\001\001\022\037\n" + "\017update_strategy\030\251\334\365\002 \001(\tH\002\210\001\001\"j\n" + "\016UpdateStrategy\022\035\n" + "\031UNDEFINED_UPDATE_STRATEGY\020\000\022\020\n" @@ -18685,12 +18676,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016NetworkProfile\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022P\n" - + "\010features\030\275\310\263u \001(" - + "\01326.google.cloud.compute.v1.NetworkProfileNetworkFeaturesH\002\210\001\001\022\020\n" + + "\010features\030\275\310\263u \001(\01326.google.cloud" + + ".compute.v1.NetworkProfileNetworkFeaturesH\002\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\003\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\022J\n" - + "\010location\030\265\277\276\212\001" - + " \001(\0132/.google.cloud.compute.v1.NetworkProfileLocationH\005\210\001\001\022\024\n" + + "\010location\030\265\277\276\212\001 \001(\0132/.google.cl" + + "oud.compute.v1.NetworkProfileLocationH\005\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\006\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\007\210\001\001\022!\n" + "\021self_link_with_id\030\202\254\235\025 \001(\tH\010\210\001\001\022\024\n" @@ -18949,23 +18940,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031NetworksAddPeeringRequest\022\"\n" + "\022auto_create_routes\030\335\342\262\033 \001(\010H\000\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\001\210\001\001\022I\n" - + "\017network_peering\030\257\214\354\234\001 \001(" - + "\0132\'.google.cloud.compute.v1.NetworkPeeringH\002\210\001\001\022\035\n" + + "\017network_peering\030\257\214\354\234\001" + + " \001(\0132\'.google.cloud.compute.v1.NetworkPeeringH\002\210\001\001\022\035\n" + "\014peer_network\030\321\340\333\356\001 \001(\tH\003\210\001\001B\025\n" + "\023_auto_create_routesB\007\n" + "\005_nameB\022\n" + "\020_network_peeringB\017\n\r" + "_peer_network\"\326\001\n" + "%NetworksGetEffectiveFirewallsResponse\022s\n" - + "\020firewall_policys\030\302\312\374\303\001 \003(\0132U.google.cloud.compu" - + "te.v1.NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy\0228\n" + + "\020firewall_policys\030\302\312\374\303\001 " + + "\003(\0132U.google.cloud.compute.v1.NetworksGe" + + "tEffectiveFirewallsResponseEffectiveFirewallPolicy\0228\n" + "\tfirewalls\030\363\306\350\201\001" + " \003(\0132!.google.cloud.compute.v1.Firewall\"\363\003\n" + ".google.cloud.c" - + "ompute.v1.NodeTemplateAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132>.google.cloud.compute.v1.NodeTemplateAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -19240,8 +19232,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032^\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022?\n" - + "\005value\030\002" - + " \001(\01320.google.cloud.compute.v1.NodeTemplatesScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\013" + + "20.google.cloud.compute.v1.NodeTemplatesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -19276,8 +19268,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010NodeType\022\035\n" + "\014cpu_platform\030\252\352\321\303\001 \001(\tH\000\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022G\n\n" - + "deprecated\030\263\313\321\365\001" - + " \001(\0132*.google.cloud.compute.v1.DeprecationStatusH\002\210\001\001\022\034\n" + + "deprecated\030\263\313\321\365\001 \001(\0132*.google" + + ".cloud.compute.v1.DeprecationStatusH\002\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\003\210\001\001\022\033\n\n" + "guest_cpus\030\322\313\310\273\001 \001(\005H\004\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\005\210\001\001\022\024\n" @@ -19295,7 +19287,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_descriptionB\r\n" + "\013_guest_cpusB\005\n" + "\003_idB\007\n" - + "\005_kindB\017\n\r" + + "\005_kindB\017\n" + + "\r" + "_local_ssd_gbB\n\n" + "\010_max_vmsB\014\n\n" + "_memory_mbB\007\n" @@ -19304,8 +19297,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_zone\"\271\003\n" + "\026NodeTypeAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022L\n" - + "\005items\030\300\317\367/ \003(\0132:.google" - + ".cloud.compute.v1.NodeTypeAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132:.google.cloud.compute.v1.NodeTypeAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -19342,8 +19335,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024NotificationEndpoint\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022Y\n\r" - + "grpc_settings\030\244\306\300\331\001 \001(\01329.google.cloud.compute." - + "v1.NotificationEndpointGrpcSettingsH\002\210\001\001\022\020\n" + + "grpc_settings\030\244\306\300\331\001 \001(\013" + + "29.google.cloud.compute.v1.NotificationEndpointGrpcSettingsH\002\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\003\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\005\210\001\001\022\026\n" @@ -19372,8 +19365,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023_retry_duration_sec\"\271\002\n" + "\030NotificationEndpointList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022?\n" - + "\005items\030\300\317\367/ \003(\013" - + "2-.google.cloud.compute.v1.NotificationEndpoint\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132-.google.cloud.compute.v1.NotificationEndpoint\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -19396,8 +19389,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\005B\003\350G\003H\006\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\007\210\001\001\022\034\n" + "\013insert_time\030\223\251\350\316\001 \001(\tH\010\210\001\001\022w\n" - + "(instances_bulk_insert_operation_metadata\030\301\206\301* \001(\0132=" - + ".google.cloud.compute.v1.InstancesBulkInsertOperationMetadataH\t\210\001\001\022\024\n" + + "(instances_bulk_insert_operation_metadata\030\301\206\301* \001(\0132=.google.cloud.co" + + "mpute.v1.InstancesBulkInsertOperationMetadataH\t\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\n" + "\210\001\001\022\031\n" + "\004name\030\213\365\315\001 \001(\tB\003\350G\001H\013\210\001\001\022\"\n" @@ -19407,12 +19400,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010progress\030\255\204\323\" \001(\005H\016\210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH\017\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\020\210\001\001\022\205\001\n" - + "/set_common_instance_metadata_operation_metadata\030\344\255\352\351\001 " - + "\001(\0132C.google.cloud.compute.v1.SetCommonInstanceMetadataOperationMetadataH\021\210\001\001\022\032\n" - + "\n" + + "/set_common_instance_metadata_operation_metadata\030\344\255\352\351\001" + + " \001(\0132C.google.clo" + + "ud.compute.v1.SetCommonInstanceMetadataOperationMetadataH\021\210\001\001\022\032\n\n" + "start_time\030\212\351\356\021 \001(\tH\022\210\001\001\022F\n" - + "\006status\030\362\237\267V" - + " \001(\0162).google.cloud.compute.v1.Operation.StatusB\003\350G\002H\023\210\001\001\022\037\n" + + "\006status\030\362\237\267V \001(\0162).google.cl" + + "oud.compute.v1.Operation.StatusB\003\350G\002H\023\210\001\001\022\037\n" + "\016status_message\030\272\311\351\215\001 \001(\tH\024\210\001\001\022\031\n" + "\ttarget_id\030\211\225\215{ \001(\004H\025\210\001\001\022\033\n" + "\013target_link\030\350\223\361\035 \001(\tH\026\210\001\001\022\024\n" @@ -19442,8 +19435,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\t_progressB\t\n" + "\007_regionB\014\n\n" + "_self_linkB2\n" - + "0_set_common_instance_metadata_operation_metadataB\r" - + "\n" + + "0_set_common_instance_metadata_operation_metadataB\r\n" + "\013_start_timeB\t\n" + "\007_statusB\021\n" + "\017_status_messageB\014\n\n" @@ -19453,8 +19445,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_zone\"\274\003\n" + "\027OperationAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022M\n" - + "\005items\030\300\317\367/ \003(\0132;.go" - + "ogle.cloud.compute.v1.OperationAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132;.google.cloud.compu" + + "te.v1.OperationAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -19489,8 +19481,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\332\006\n" + "\020OutlierDetection\022E\n" - + "\022base_ejection_time\030\207\327\317& \001(\0132" - + "!.google.cloud.compute.v1.DurationH\000\210\001\001\022#\n" + + "\022base_ejection_time\030\207\327\317&" + + " \001(\0132!.google.cloud.compute.v1.DurationH\000\210\001\001\022#\n" + "\022consecutive_errors\030\240\263\320\270\001 \001(\005H\001\210\001\001\022,\n" + "\033consecutive_gateway_failure\030\372\267\212\307\001" + " \001(\005H\002\210\001\001\022,\n" @@ -19544,20 +19536,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016_num_intervalsB\007\n" + "\005_type\"\272\006\n" + "\017PacketMirroring\022Z\n\r" - + "collector_ilb\030\355\211\266\313\001 \001(\0132:.googl" - + "e.cloud.compute.v1.PacketMirroringForwardingRuleInfoH\000\210\001\001\022\"\n" + + "collector_ilb\030\355\211\266\313\001 \001(\0132:.google.cloud.compute." + + "v1.PacketMirroringForwardingRuleInfoH\000\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\027\n" + "\006enable\030\203\313\324\224\001 \001(\tH\003\210\001\001\022G\n" - + "\006filter\030\370\226\243\240\001" - + " \001(\0132..google.cloud.compute.v1.PacketMirroringFilterH\004\210\001\001\022\020\n" + + "\006filter\030\370\226\243\240\001 \001(\0132..googl" + + "e.cloud.compute.v1.PacketMirroringFilterH\004\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\005\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\006\210\001\001\022`\n" - + "\022mirrored_resources\030\304\237\302; \001(\0132<.google.cloud.compute.v1.P" - + "acketMirroringMirroredResourceInfoH\007\210\001\001\022\024\n" + + "\022mirrored_resources\030\304\237\302; \001(\0132<.g" + + "oogle.cloud.compute.v1.PacketMirroringMirroredResourceInfoH\007\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\010\210\001\001\022L\n" - + "\007network\030\256\264\205o \001(" - + "\01323.google.cloud.compute.v1.PacketMirroringNetworkInfoH\t\210\001\001\022\031\n" + + "\007network\030\256\264\205o" + + " \001(\01323.google.cloud.compute.v1.PacketMirroringNetworkInfoH" + + "\t\210\001\001\022\031\n" + "\010priority\030\244\363\241\324\001 \001(\r" + "H\n" + "\210\001\001\022\026\n" @@ -19582,8 +19575,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_link\"\316\003\n" + "\035PacketMirroringAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022S\n" - + "\005items\030\300\317\367/" - + " \003(\0132A.google.cloud.compute.v1.PacketMirroringAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132A.google.cl" + + "oud.compute.v1.PacketMirroringAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -19592,11 +19585,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032a\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022B\n" - + "\005value\030\002 \001(\013" - + "23.google.cloud.compute.v1.PacketMirroringsScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\01323.google.cloud." + + "compute.v1.PacketMirroringsScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" - + "\020_next_page_tokenB\014\n\n" + + "\020_next_page_tokenB\014\n" + + "\n" + "_self_linkB\n\n" + "\010_warning\"\306\001\n" + "\025PacketMirroringFilter\022\030\n\r" @@ -19609,16 +19603,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006EGRESS\020\365\366\264\316\001\022\017\n" + "\007INGRESS\020\225\375\276\366\001B\014\n\n" + "_direction\"q\n" - + "!PacketMirroringForwardingRuleInfo\022\036\n" - + "\r" + + "!PacketMirroringForwardingRuleInfo\022\036\n\r" + "canonical_url\030\244\377\243\364\001 \001(\tH\000\210\001\001\022\022\n" + "\003url\030\357\212\007 \001(\tH\001\210\001\001B\020\n" + "\016_canonical_urlB\006\n" + "\004_url\"\257\002\n" + "\023PacketMirroringList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022:\n" - + "\005items\030\300\317\367/" - + " \003(\0132(.google.cloud.compute.v1.PacketMirroring\022\024\n" + + "\005items\030\300\317\367/ \003(\0132" + + "(.google.cloud.compute.v1.PacketMirroring\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -19631,9 +19624,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_warning\"\367\001\n" + "#PacketMirroringMirroredResourceInfo\022^\n" + "\tinstances\030\376\374\357\r" - + " \003(\0132H.google.cloud.compute.v1.PacketMirroringMirroredResourceInfoInstanceInfo\022_\n" - + "\013subnetworks\030\305\324\245\306\001 \003(\0132F.google.cloud.co" - + "mpute.v1.PacketMirroringMirroredResourceInfoSubnetInfo\022\017\n" + + " \003(\0132H.google.clo" + + "ud.compute.v1.PacketMirroringMirroredResourceInfoInstanceInfo\022_\n" + + "\013subnetworks\030\305\324\245\306\001 \003(\0132F.google.cloud.compute.v1.PacketM" + + "irroringMirroredResourceInfoSubnetInfo\022\017\n" + "\004tags\030\231\350\330\001 \003(\t\"\177\n" + "/PacketMirroringMirroredResourceInfoInstanceInfo\022\036\n\r" + "canonical_url\030\244\377\243\364\001 \001(\tH\000\210\001\001\022\022\n" @@ -19645,22 +19639,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003url\030\357\212\007 \001(\tH\001\210\001\001B\020\n" + "\016_canonical_urlB\006\n" + "\004_url\"j\n" - + "\032PacketMirroringNetworkInfo\022\036\n" - + "\r" + + "\032PacketMirroringNetworkInfo\022\036\n\r" + "canonical_url\030\244\377\243\364\001 \001(\tH\000\210\001\001\022\022\n" + "\003url\030\357\212\007 \001(\tH\001\210\001\001B\020\n" + "\016_canonical_urlB\006\n" + "\004_url\"\253\001\n" + "\032PacketMirroringsScopedList\022F\n" - + "\021packet_mirrorings\030\247\372\334I" - + " \003(\0132(.google.cloud.compute.v1.PacketMirroring\0229\n" + + "\021packet_mirrorings\030\247\372\334I \003(\013" + + "2(.google.cloud.compute.v1.PacketMirroring\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\371\001\n" + "\026PatchAutoscalerRequest\022\033\n\n" + "autoscaler\030\327\375\322\366\001 \001(\tH\000\210\001\001\022H\n" - + "\023autoscaler_resource\030\366\360\377b" - + " \001(\0132#.google.cloud.compute.v1.AutoscalerB\003\340A\002\022!\n" + + "\023autoscaler_resource\030\366\360\377b \001(" + + "\0132#.google.cloud.compute.v1.AutoscalerB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\001\210\001\001\022\033\n" @@ -19670,8 +19663,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\333\001\n" + "\031PatchBackendBucketRequest\022\036\n" + "\016backend_bucket\030\365\343\335+ \001(\tB\003\340A\002\022P\n" - + "\027backend_bucket_resource\030\230\316\307\265\001 \001(\013" - + "2&.google.cloud.compute.v1.BackendBucketB\003\340A\002\022!\n" + + "\027backend_bucket_resource\030\230\316\307\265\001" + + " \001(\0132&.google.cloud.compute.v1.BackendBucketB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" @@ -19686,8 +19679,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\275\001\n" + "\032PatchFirewallPolicyRequest\022 \n" + "\017firewall_policy\030\321\212\306\355\001 \001(\tB\003\340A\002\022R\n" - + "\030firewall_policy_resource\030\274\266\207\354\001" - + " \001(\0132\'.google.cloud.compute.v1.FirewallPolicyB\003\340A\002\022\032\n\n" + + "\030firewall_policy_resource\030\274\266\207\354\001 \001(\0132\'." + + "google.cloud.compute.v1.FirewallPolicyB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\305\001\n" + "\024PatchFirewallRequest\022\031\n" @@ -19719,8 +19712,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\'\n" + "\027public_delegated_prefix\030\350\334\261a \001(\tB\003\340A\002\022`\n" - + " public_delegated_prefix_resource\030\205\370\330\026 \001(" - + "\0132..google.cloud.compute.v1.PublicDelegatedPrefixB\003\340A\002\022\032\n\n" + + " public_delegated_prefix_resource\030\205\370\330\026 \001(\0132..google.cloud" + + ".compute.v1.PublicDelegatedPrefixB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\323\001\n" + "\027PatchHealthCheckRequest\022\035\n" @@ -19750,8 +19743,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\216\002\n" + "\033PatchInstanceSettingRequest\022V\n" - + "\032instance_settings_resource\030\200\247\316\212\001" - + " \001(\0132).google.cloud.compute.v1.InstanceSettingsB\003\340A\002\022!\n" + + "\032instance_settings_resource\030\200\247\316\212\001 \001(\0132).go" + + "ogle.cloud.compute.v1.InstanceSettingsB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n" @@ -19761,9 +19754,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_idB\016\n" + "\014_update_mask\"\302\002\n" + "\'PatchInterconnectAttachmentGroupRequest\022-\n" - + "\035interconnect_attachment_group\030\364\357\230$ \001(\tB\003\340A\002\022l\n" - + "&interconnect_attachment_group_resource\030\371\337\341\004 \001(\01324.goo", - "gle.cloud.compute.v1.InterconnectAttachmentGroupB\003\340A\002\022!\n" + + "\035interconnect_attachment_group\030\364\357\230$ \001", + "(\tB\003\340A\002\022l\n" + + "&interconnect_attachment_group_resource\030\371\337\341\004" + + " \001(\01324.google.cloud.compute.v1.InterconnectAttachmentGroupB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n" @@ -19781,8 +19775,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\231\002\n" + "\035PatchInterconnectGroupRequest\022#\n" + "\022interconnect_group\030\216\267\251\271\001 \001(\tB\003\340A\002\022W\n" - + "\033interconnect_group_resource\030\237\363\346(" - + " \001(\0132*.google.cloud.compute.v1.InterconnectGroupB\003\340A\002\022!\n" + + "\033interconnect_group_resource\030\237\363\346( " + + "\001(\0132*.google.cloud.compute.v1.InterconnectGroupB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n" @@ -19799,8 +19793,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\213\002\n" + "\035PatchNetworkAttachmentRequest\022\"\n" + "\022network_attachment\030\324\227\217k \001(\tB\003\340A\002\022W\n" - + "\033network_attachment_resource\030\231\360\314d \001(\0132*" - + ".google.cloud.compute.v1.NetworkAttachmentB\003\340A\002\022!\n" + + "\033network_attachment_resource\030\231\360\314d" + + " \001(\0132*.google.cloud.compute.v1.NetworkAttachmentB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" @@ -19809,8 +19803,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "&PatchNetworkEdgeSecurityServiceRequest\022-\n" + "\035network_edge_security_service\030\247\237\357J \001(\tB\003\340A\002\022l\n" + "&network_edge_security_service_resource\030\246\243\333\343\001" - + " \001(\01323.google.cloud.comp" - + "ute.v1.NetworkEdgeSecurityServiceB\003\340A\002\022\025\n" + + " \001(\01323.google.cloud.compute.v1.NetworkEdgeSecurityServiceB\003\340A\002\022\025\n" + "\005paths\030\356\301\3402 \001(\tH\000\210\001\001\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" @@ -19822,8 +19815,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_update_mask\"\347\001\n" + "!PatchNetworkFirewallPolicyRequest\022 \n" + "\017firewall_policy\030\321\212\306\355\001 \001(\tB\003\340A\002\022R\n" - + "\030firewall_policy_resource\030\274\266\207\354\001" - + " \001(\0132\'.google.cloud.compute.v1.FirewallPolicyB\003\340A\002\022!\n" + + "\030firewall_policy_resource\030\274\266\207\354\001 \001" + + "(\0132\'.google.cloud.compute.v1.FirewallPolicyB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" @@ -19844,14 +19837,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" - + "\340A\002\362G\004zoneB\r" - + "\n" + + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\204\002\n" + "\033PatchPacketMirroringRequest\022 \n" + "\020packet_mirroring\030\314\271\321\n" + " \001(\tB\003\340A\002\022T\n" - + "\031packet_mirroring_resource\030\241\374\250\353\001 \001(\0132(" - + ".google.cloud.compute.v1.PacketMirroringB\003\340A\002\022!\n" + + "\031packet_mirroring_resource\030\241\374\250\353\001" + + " \001(\0132(.google.cloud.compute.v1.PacketMirroringB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" @@ -19859,8 +19851,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\252\002\n" + "4PatchPacketMirroringRuleNetworkFirewallPolicyRequest\022 \n" + "\017firewall_policy\030\321\212\306\355\001 \001(\tB\003\340A\002\022Z\n" - + "\035firewall_policy_rule_resource\030\203\337\272w" - + " \001(\0132+.google.cloud.compute.v1.FirewallPolicyRuleB\003\340A\002\022\031\n" + + "\035firewall_policy_rule_resource\030\203\337\272w \001(\0132+.goog" + + "le.cloud.compute.v1.FirewallPolicyRuleB\003\340A\002\022\031\n" + "\010priority\030\244\363\241\324\001 \001(\005H\000\210\001\001\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" @@ -19869,9 +19861,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\344\002\n" + "2PatchPerInstanceConfigsInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\232\001\n" - + "?instance_group_managers_patch_per_instance_configs_req_resource\030\377\233\210\252\001" - + " \001(\0132H.google." - + "cloud.compute.v1.InstanceGroupManagersPatchPerInstanceConfigsReqB\003\340A\002\022!\n" + + "?instance_group_mana" + + "gers_patch_per_instance_configs_req_resource\030\377\233\210\252\001" + + " \001(\0132H.google.cloud.compute.v1" + + ".InstanceGroupManagersPatchPerInstanceConfigsReqB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -19884,24 +19877,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\233\001\n" + "@region_instance_group_manager_patch_instance_config_req_resource\030\312\315\241^" - + " \001(\0132I.google.cloud.c" - + "ompute.v1.RegionInstanceGroupManagerPatchInstanceConfigReqB\003\340A\002\022\032\n\n" + + " \001(\0132I.google.cloud.compute.v1.Region" + + "InstanceGroupManagerPatchInstanceConfigReqB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\201\002\n" + "#PatchPublicAdvertisedPrefixeRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022(\n" + "\030public_advertised_prefix\030\236\367\3110 \001(\tB\003\340A\002\022b\n" - + "!public_advertised_prefix_resource\030\217\327\262o \001(\0132/.google.c" - + "loud.compute.v1.PublicAdvertisedPrefixB\003\340A\002\022\032\n\n" + + "!public_advertised_prefix_resource\030\217\327\262o" + + " \001(\0132/.google.cloud.compute.v1.PublicAdvertisedPrefixB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\236\002\n" + "\"PatchPublicDelegatedPrefixeRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\'\n" + "\027public_delegated_prefix\030\350\334\261a \001(\tB\003\340A\002\022`\n" - + " public_delegated_prefix_resource\030\205\370\330\026" - + " \001(\0132..google.cloud.compute.v1.PublicDelegatedPrefixB\003\340A\002\022\037\n" + + " public_delegated_prefix_resource\030\205\370\330\026 \001(\0132..google." + + "cloud.compute.v1.PublicDelegatedPrefixB\003\340A\002\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\203\002\n" @@ -19926,8 +19919,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\372\001\n" + "\035PatchRegionHealthCheckRequest\022\035\n" + "\014health_check\030\345\252\244\223\001 \001(\tB\003\340A\002\022K\n" - + "\025health_check_resource\030\250\303\244` \001" - + "(\0132$.google.cloud.compute.v1.HealthCheckB\003\340A\002\022!\n" + + "\025health_check_resource\030\250\303\244`" + + " \001(\0132$.google.cloud.compute.v1.HealthCheckB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" @@ -19935,18 +19928,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\231\002\n" + "$PatchRegionHealthCheckServiceRequest\022%\n" + "\024health_check_service\030\333\233\335\302\001 \001(\tB\003\340A\002\022[\n" - + "\035health_check_service_resource\030\362\233\320\343\001 \001(\0132" - + "+.google.cloud.compute.v1.HealthCheckServiceB\003\340A\002\022!\n" + + "\035health_check_service_resource\030\362\233\320\343\001" + + " \001(\0132+.google.cloud.compute.v1.HealthCheckServiceB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" - + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n" - + "\n" + + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\237\002\n" + "&PatchRegionInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022^\n" - + "\037instance_group_manager_resource\030\212\212\276|" - + " \001(\0132-.google.cloud.compute.v1.InstanceGroupManagerB\003\340A\002\022!\n" + + "\037instance_group_manager_resource\030\212\212\276| \001(\0132-.google" + + ".cloud.compute.v1.InstanceGroupManagerB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" @@ -19975,7 +19967,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033PatchRegionSslPolicyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" - + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n" + + "\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\n" + "ssl_policy\030\305\375\340\214\001 \001(\tB\003\340A\002\022H\n" + "\023ssl_policy_resource\030\310\210\212\203\001" @@ -19987,8 +19980,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\"\n" + "\022target_https_proxy\030\354\260\372\030 \001(\tB\003\340A\002\022W\n" - + "\033target_https_proxy_resource\030\201\255\344\316\001" - + " \001(\0132).google.cloud.compute.v1.TargetHttpsProxyB\003\340A\002B\r\n" + + "\033target_https_proxy_resource\030\201\255\344\316\001 \001(\0132).go" + + "ogle.cloud.compute.v1.TargetHttpsProxyB\003\340A\002B\r\n" + "\013_request_id\"\346\001\n" + "\030PatchRegionUrlMapRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" @@ -20015,8 +20008,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022K\n" - + "\025route_policy_resource\030\205\275\2657" - + " \001(\0132$.google.cloud.compute.v1.RoutePolicyB\003\340A\002\022\026\n" + + "\025route_policy_resource\030\205\275\2657 \001(\0132" + + "$.google.cloud.compute.v1.RoutePolicyB\003\340A\002\022\026\n" + "\006router\030\311\256\356F \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\335\001\n" + "\022PatchRouterRequest\022!\n" @@ -20030,16 +20023,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\361\001\n" + "\036PatchRuleFirewallPolicyRequest\022 \n" + "\017firewall_policy\030\321\212\306\355\001 \001(\tB\003\340A\002\022Z\n" - + "\035firewall_policy_rule_resource\030\203\337\272w \001(\0132+.googl" - + "e.cloud.compute.v1.FirewallPolicyRuleB\003\340A\002\022\031\n" + + "\035firewall_policy_rule_resource\030\203\337\272w" + + " \001(\0132+.google.cloud.compute.v1.FirewallPolicyRuleB\003\340A\002\022\031\n" + "\010priority\030\244\363\241\324\001 \001(\005H\000\210\001\001\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\001\210\001\001B\013\n" + "\t_priorityB\r\n" + "\013_request_id\"\233\002\n" + "%PatchRuleNetworkFirewallPolicyRequest\022 \n" + "\017firewall_policy\030\321\212\306\355\001 \001(\tB\003\340A\002\022Z\n" - + "\035firewall_policy_rule_resource\030\203\337\272w " - + "\001(\0132+.google.cloud.compute.v1.FirewallPolicyRuleB\003\340A\002\022\031\n" + + "\035firewall_policy_rule_resource\030\203\337\272w" + + " \001(\0132+.google.cloud.compute.v1.FirewallPolicyRuleB\003\340A\002\022\031\n" + "\010priority\030\244\363\241\324\001 \001(\005H\000\210\001\001\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" @@ -20048,8 +20041,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\302\002\n" + "+PatchRuleRegionNetworkFirewallPolicyRequest\022 \n" + "\017firewall_policy\030\321\212\306\355\001 \001(\tB\003\340A\002\022Z\n" - + "\035firewall_policy_rule_resource\030\203\337\272w" - + " \001(\0132+.google.cloud.compute.v1.FirewallPolicyRuleB\003\340A\002\022\031\n" + + "\035firewall_policy_rule_resource\030\203\337\272w \001(\0132" + + "+.google.cloud.compute.v1.FirewallPolicyRuleB\003\340A\002\022\031\n" + "\010priority\030\244\363\241\324\001 \001(\005H\000\210\001\001\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" @@ -20063,8 +20056,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\037\n" + "\017security_policy\030\221\206\312Q \001(\tB\003\340A\002\022[\n" - + "\035security_policy_rule_resource\030\303\272\202\300\001 \001(\0132+.google.cl" - + "oud.compute.v1.SecurityPolicyRuleB\003\340A\002\022\034\n" + + "\035security_policy_rule_resource\030\303\272\202\300\001" + + " \001(\0132+.google.cloud.compute.v1.SecurityPolicyRuleB\003\340A\002\022\034\n" + "\013update_mask\030\242\271\272\356\001 \001(\tH\001\210\001\001\022\035\n\r" + "validate_only\030\265\372\337s \001(\010H\002\210\001\001B\013\n" + "\t_priorityB\016\n" @@ -20075,8 +20068,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\017security_policy\030\221\206\312Q \001(\tB\003\340A\002\022[\n" - + "\035security_policy_rule_resource\030\303\272\202\300\001 \001(\0132" - + "+.google.cloud.compute.v1.SecurityPolicyRuleB\003\340A\002\022\034\n" + + "\035security_policy_rule_resource\030\303\272\202\300\001" + + " \001(\0132+.google.cloud.compute.v1.SecurityPolicyRuleB\003\340A\002\022\034\n" + "\013update_mask\030\242\271\272\356\001 \001(\tH\001\210\001\001\022\035\n\r" + "validate_only\030\265\372\337s \001(\010H\002\210\001\001B\013\n" + "\t_priorityB\016\n" @@ -20087,8 +20080,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\037\n" + "\017security_policy\030\221\206\312Q \001(\tB\003\340A\002\022Q\n" - + "\030security_policy_resource\030\374\252\211g \001(" - + "\0132\'.google.cloud.compute.v1.SecurityPolicyB\003\340A\002\022\034\n" + + "\030security_policy_resource\030\374\252\211g" + + " \001(\0132\'.google.cloud.compute.v1.SecurityPolicyB\003\340A\002\022\034\n" + "\013update_mask\030\242\271\272\356\001 \001(\tH\001\210\001\001B\r\n" + "\013_request_idB\016\n" + "\014_update_mask\"\215\002\n" @@ -20098,15 +20091,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022#\n" + "\022service_attachment\030\355\251\320\241\001 \001(\tB\003\340A\002\022X\n" - + "\033service_attachment_resource\030\240\266\304\341\001 \001(\0132*.g" - + "oogle.cloud.compute.v1.ServiceAttachmentB\003\340A\002B\r\n" + + "\033service_attachment_resource\030\240\266\304\341\001" + + " \001(\0132*.google.cloud.compute.v1.ServiceAttachmentB\003\340A\002B\r\n" + "\013_request_id\"\361\001\n" + "\033PatchSnapshotSettingRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022V\n" - + "\032snapshot_settings_resource\030\357\215\306\252\001 \001(\0132).go" - + "ogle.cloud.compute.v1.SnapshotSettingsB\003\340A\002\022\034\n" + + "\032snapshot_settings_resource\030\357\215\306\252\001" + + " \001(\0132).google.cloud.compute.v1.SnapshotSettingsB\003\340A\002\022\034\n" + "\013update_mask\030\242\271\272\356\001 \001(\tH\001\210\001\001B\r\n" + "\013_request_idB\016\n" + "\014_update_mask\"\314\001\n" @@ -20115,8 +20108,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n\n" + "ssl_policy\030\305\375\340\214\001 \001(\tB\003\340A\002\022H\n" - + "\023ssl_policy_resource\030\310\210\212\203\001" - + " \001(\0132\".google.cloud.compute.v1.SslPolicyB\003\340A\002B\r\n" + + "\023ssl_policy_resource\030\310\210\212\203\001 \001(\0132" + + "\".google.cloud.compute.v1.SslPolicyB\003\340A\002B\r\n" + "\013_request_id\"\260\002\n" + "\026PatchSubnetworkRequest\022&\n" + "\025drain_timeout_seconds\030\332\332\310\252\001 \001(\005H\000\210\001\001\022!\n" @@ -20125,8 +20118,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\001\210\001\001\022\033\n\n" + "subnetwork\030\356\247\344\222\001 \001(\tB\003\340A\002\022H\n" - + "\023subnetwork_resource\030\277\332\221\024" - + " \001(\0132#.google.cloud.compute.v1.SubnetworkB\003\340A\002B\030\n" + + "\023subnetwork_resource\030\277\332\221\024 \001(\0132" + + "#.google.cloud.compute.v1.SubnetworkB\003\340A\002B\030\n" + "\026_drain_timeout_secondsB\r\n" + "\013_request_id\"\345\001\n" + "\033PatchTargetGrpcProxyRequest\022!\n" @@ -20139,44 +20132,43 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\344\001\n" + "\033PatchTargetHttpProxyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" - + "\340A\002\362G\007project\022\032\n" - + "\n" + + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022!\n" + "\021target_http_proxy\030\345\276\322b \001(\tB\003\340A\002\022T\n" - + "\032target_http_proxy_resource\030\250\257\343\013" - + " \001(\0132(.google.cloud.compute.v1.TargetHttpProxyB\003\340A\002B\r\n" + + "\032target_http_proxy_resource\030\250\257\343\013 " + + "\001(\0132(.google.cloud.compute.v1.TargetHttpProxyB\003\340A\002B\r\n" + "\013_request_id\"\351\001\n" + "\034PatchTargetHttpsProxyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\"\n" + "\022target_https_proxy\030\354\260\372\030 \001(\tB\003\340A\002\022W\n" - + "\033target_https_proxy_resource\030\201\255\344\316\001" - + " \001(\0132).google.cloud.compute.v1.TargetHttpsProxyB\003\340A\002B\r\n" + + "\033target_https_proxy_resource\030\201\255\344\316\001 \001(\0132)" + + ".google.cloud.compute.v1.TargetHttpsProxyB\003\340A\002B\r\n" + "\013_request_id\"\277\001\n" + "\022PatchUrlMapRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\030\n" + "\007url_map\030\214\225\201\257\001 \001(\tB\003\340A\002\022A\n" - + "\020url_map_resource\030\341\220\267P" - + " \001(\0132\037.google.cloud.compute.v1.UrlMapB\003\340A\002B\r\n" + + "\020url_map_resource\030\341\220\267P \001" + + "(\0132\037.google.cloud.compute.v1.UrlMapB\003\340A\002B\r\n" + "\013_request_id\"\322\005\n" + "\013PathMatcher\022h\n" - + "$default_custom_error_response_policy\030\251\213\340&" - + " \001(\01322.google.cloud.compute.v1.CustomErrorResponsePolicyH\000\210\001\001\022O\n" + + "$default_custom_error_response_policy\030\251\213\340& \001(\013" + + "22.google.cloud.compute.v1.CustomErrorResponsePolicyH\000\210\001\001\022O\n" + "\024default_route_action\030\252\264\327\264\001" + " \001(\0132(.google.cloud.compute.v1.HttpRouteActionH\001\210\001\001\022 \n" + "\017default_service\030\267\345\305\260\001 \001(\tH\002\210\001\001\022R\n" + "\024default_url_redirect\030\352\253\266\253\001" + " \001(\0132+.google.cloud.compute.v1.HttpRedirectActionH\003\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\004\210\001\001\022I\n\r" - + "header_action\030\250\240\270\234\001" - + " \001(\0132).google.cloud.compute.v1.HttpHeaderActionH\005\210\001\001\022\024\n" + + "header_action\030\250\240\270\234\001 \001(\0132).goog" + + "le.cloud.compute.v1.HttpHeaderActionH\005\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\006\210\001\001\0228\n\n" + "path_rules\030\335\300\3461 \003(\0132!.google.cloud.compute.v1.PathRule\022?\n" - + "\013route_rules\030\201\207\267\263\001 \003" - + "(\0132&.google.cloud.compute.v1.HttpRouteRuleB\'\n" + + "\013route_rules\030\201\207\267\263\001" + + " \003(\0132&.google.cloud.compute.v1.HttpRouteRuleB\'\n" + "%_default_custom_error_response_policyB\027\n" + "\025_default_route_actionB\022\n" + "\020_default_serviceB\027\n" @@ -20185,23 +20177,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016_header_actionB\007\n" + "\005_name\"\374\002\n" + "\010PathRule\022`\n" - + "\034custom_error_response_policy\030\353\370\332`" - + " \001(\01322.google.cloud.compute.v1.CustomErrorResponsePolicyH\000\210\001\001\022\020\n" + + "\034custom_error_response_policy\030\353\370\332` \001(\01322.goo" + + "gle.cloud.compute.v1.CustomErrorResponsePolicyH\000\210\001\001\022\020\n" + "\005paths\030\356\301\3402 \003(\t\022G\n" - + "\014route_action\030\354\251\271\312\001 \001(\0132(.google" - + ".cloud.compute.v1.HttpRouteActionH\001\210\001\001\022\030\n" + + "\014route_action\030\354\251\271\312\001" + + " \001(\0132(.google.cloud.compute.v1.HttpRouteActionH\001\210\001\001\022\030\n" + "\007service\030\265\215\217\262\001 \001(\tH\002\210\001\001\022J\n" - + "\014url_redirect\030\254\241\230\301\001" - + " \001(\0132+.google.cloud.compute.v1.HttpRedirectActionH\003\210\001\001B\037\n" - + "\035_custom_error_response_policyB\017\n\r" + + "\014url_redirect\030\254\241\230\301\001 \001(\0132+.goo" + + "gle.cloud.compute.v1.HttpRedirectActionH\003\210\001\001B\037\n" + + "\035_custom_error_response_policyB\017\n" + + "\r" + "_route_actionB\n\n" + "\010_serviceB\017\n\r" + "_url_redirect\"\363\002\n" + "\021PerInstanceConfig\022\033\n" + "\013fingerprint\030\344\321\363o \001(\tH\000\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\001\210\001\001\022H\n" - + "\017preserved_state\030\252\342\240\001 \001(\013" - + "2\'.google.cloud.compute.v1.PreservedStateH\002\210\001\001\022\026\n" + + "\017preserved_state\030\252\342\240\001" + + " \001(\0132\'.google.cloud.compute.v1.PreservedStateH\002\210\001\001\022\026\n" + "\006status\030\362\237\267V \001(\tH\003\210\001\001\"\220\001\n" + "\006Status\022\024\n" + "\020UNDEFINED_STATUS\020\000\022\020\n" @@ -20225,9 +20218,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\254\002\n" + "\"PerformMaintenanceNodeGroupRequest\022\033\n\n" + "node_group\030\202\374\213\340\001 \001(\tB\003\340A\002\022~\n" - + "0node_groups_perform_maintenance_request_resource\030\326\270\256X" - + " \001(\0132<.google.cloud.compute.v1." - + "NodeGroupsPerformMaintenanceRequestB\003\340A\002\022!\n" + + "0node_groups_perform_maintenance_request_resource\030\326\270\256X \001(\0132<." + + "google.cloud.compute.v1.NodeGroupsPerformMaintenanceRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -20241,8 +20233,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013reservation\030\314\207\325\026 \001(\tB\003\340A\002\022\"\n" + "\021reservation_block\030\332\304\211\376\001 \001(\tB\003\340A\002\022\217\001\n" + "8reservations_blocks_perform_maintenance_request_resource\030\211\251\324\347\001" - + " \001(\0132D.googl" - + "e.cloud.compute.v1.ReservationsBlocksPerformMaintenanceRequestB\003\340A\002\022\033\n" + + " \001(\0132D.google.cloud.compute." + + "v1.ReservationsBlocksPerformMaintenanceRequestB\003\340A\002\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\262\002\n" @@ -20252,8 +20244,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" + "\013reservation\030\314\207\325\026 \001(\tB\003\340A\002\022\201\001\n" + "1reservations_perform_maintenance_request_resource\030\240\365\224\016" - + " \001(\0132>.google.clo" - + "ud.compute.v1.ReservationsPerformMaintenanceRequestB\003\340A\002\022\033\n" + + " \001(\0132>.google.cloud.compute.v1.Re" + + "servationsPerformMaintenanceRequestB\003\340A\002\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\336\001\n" @@ -20268,8 +20260,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\360\001\n" + "\006Policy\022?\n\r" - + "audit_configs\030\215\272\270\234\001 " - + "\003(\0132$.google.cloud.compute.v1.AuditConfig\0226\n" + + "audit_configs\030\215\272\270\234\001" + + " \003(\0132$.google.cloud.compute.v1.AuditConfig\0226\n" + "\010bindings\030\216\305\244\300\001 \003(\0132" + " .google.cloud.compute.v1.Binding\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\032\n" @@ -20284,26 +20276,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016PreservedState\022D\n" + "\005disks\030\366\314\312-" + " \003(\01322.google.cloud.compute.v1.PreservedState.DisksEntry\022S\n\r" - + "external_i_ps\030\215\323\200\376\001" - + " \003(\01328.google.cloud.compute.v1.PreservedState.ExternalIPsEntry\022R\n" - + "\r" - + "internal_i_ps\030\333\233\357f \003(\01328.google.cloud.c" - + "ompute.v1.PreservedState.InternalIPsEntry\022J\n" + + "external_i_ps\030\215\323\200\376\001 " + + "\003(\01328.google.cloud.compute.v1.PreservedState.ExternalIPsEntry\022R\n\r" + + "internal_i_ps\030\333\233\357f" + + " \003(\01328.google.cloud.compute.v1.PreservedState.InternalIPsEntry\022J\n" + "\010metadata\030\257\366\265)" - + " \003(\01325.google.cloud.compute.v1.PreservedState.MetadataEntry\032b\n" - + "\n" + + " \003(\01325.google.cloud.compute.v1.PreservedState.MetadataEntry\032b\n\n" + "DisksEntry\022\013\n" + "\003key\030\001 \001(\t\022C\n" - + "\005value\030\002 \001(\0132" - + "4.google.cloud.compute.v1.PreservedStatePreservedDisk:\0028\001\032m\n" + + "\005value\030\002 \001(\01324.google.cloud.c" + + "ompute.v1.PreservedStatePreservedDisk:\0028\001\032m\n" + "\020ExternalIPsEntry\022\013\n" + "\003key\030\001 \001(\t\022H\n" - + "\005value\030\002 \001(\01329.google.cloud" - + ".compute.v1.PreservedStatePreservedNetworkIp:\0028\001\032m\n" + + "\005value\030\002" + + " \001(\01329.google.cloud.compute.v1.PreservedStatePreservedNetworkIp:\0028\001\032m\n" + "\020InternalIPsEntry\022\013\n" + "\003key\030\001 \001(\t\022H\n" - + "\005value\030\002 \001(\01329.google.cloud.compute." - + "v1.PreservedStatePreservedNetworkIp:\0028\001\032/\n\r" + + "\005value\030\002 \001(\013" + + "29.google.cloud.compute.v1.PreservedStatePreservedNetworkIp:\0028\001\032/\n\r" + "MetadataEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\254\002\n" @@ -20324,8 +20314,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_source\"\236\002\n" + " PreservedStatePreservedNetworkIp\022\034\n" + "\013auto_delete\030\273\344\316\335\001 \001(\tH\000\210\001\001\022_\n\n" - + "ip_address\030\334\361\334\301\001 \001" - + "(\0132B.google.cloud.compute.v1.PreservedStatePreservedNetworkIpIpAddressH\001\210\001\001\"\\\n\n" + + "ip_address\030\334\361\334\301\001 \001(\0132B.google.clou" + + "d.compute.v1.PreservedStatePreservedNetworkIpIpAddressH\001\210\001\001\"\\\n\n" + "AutoDelete\022\031\n" + "\025UNDEFINED_AUTO_DELETE\020\000\022\014\n" + "\005NEVER\020\354\244\257#\022%\n" @@ -20334,12 +20324,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_ip_address\"v\n" + ")PreservedStatePreservedNetworkIpIpAddress\022\030\n" + "\007address\030\364\267\336\334\001 \001(\tH\000\210\001\001\022\027\n" - + "\007literal\030\257\301\200W \001(\tH\001\210\001\001B\n\n" + + "\007literal\030\257\301\200W \001(\tH\001\210\001\001", + "B\n\n" + "\010_addressB\n\n" + "\010_literal\"\241\001\n" + "\024PreviewRouterRequest\022\027\n" - + "\007project\030\231\226\301", - "l \001(\tB\003\340A\002\022\026\n" + + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\026\n" + "\006router\030\311\256\356F \001(\tB\003\340A\002\022@\n" + "\017router_resource\030\304\200\202J" @@ -20358,8 +20348,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\213\365\315\001 \001(\tH\010\210\001\001\0221\n" + "\006quotas\030\373\241\342; \003(\0132\036.google.cloud.compute.v1.Quota\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\t\210\001\001\022T\n" - + "\025usage_export_location\030\302\262\334\245\001 \001(\013" - + "2,.google.cloud.compute.v1.UsageExportLocationH\n" + + "\025usage_export_location\030\302\262\334\245\001" + + " \001(\0132,.google.cloud.compute.v1.UsageExportLocationH\n" + "\210\001\001\022\036\n" + "\016vm_dns_setting\030\262\247\210\034 \001(\tH\013\210\001\001\022\"\n" + "\022xpn_project_status\030\301\315\365l \001(\tH\014\210\001\001\"~\n" @@ -20398,12 +20388,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017_vm_dns_settingB\025\n" + "\023_xpn_project_status\"z\n" + "!ProjectsDisableXpnResourceRequest\022D\n" - + "\014xpn_resource\030\267\223\315?" - + " \001(\0132&.google.cloud.compute.v1.XpnResourceIdH\000\210\001\001B\017\n\r" + + "\014xpn_resource\030\267\223\315? \001(\0132" + + "&.google.cloud.compute.v1.XpnResourceIdH\000\210\001\001B\017\n\r" + "_xpn_resource\"y\n" + " ProjectsEnableXpnResourceRequest\022D\n" - + "\014xpn_resource\030\267\223\315?" - + " \001(\0132&.google.cloud.compute.v1.XpnResourceIdH\000\210\001\001B\017\n\r" + + "\014xpn_resource\030\267\223\315? \001" + + "(\0132&.google.cloud.compute.v1.XpnResourceIdH\000\210\001\001B\017\n\r" + "_xpn_resource\"\253\001\n" + "\027ProjectsGetXpnResources\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\000\210\001\001\022\037\n" @@ -20442,8 +20432,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004kind\030\224\367\310\001 \001(\tH\007\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\010\210\001\001\022\032\n" + "\tpdp_scope\030\321\312\376\371\001 \001(\tH\t\210\001\001\022j\n" - + "\030public_delegated_prefixs\030\213\276\205\313\001 \003(\0132D.google.cloud.comp" - + "ute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix\022\032\n" + + "\030public_delegated_prefixs\030\213\276\205\313\001" + + " \003(\0132D.google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\n" + "\210\001\001\022\036\n\r" + "shared_secret\030\312\247\217\266\001 \001(\tH\013\210\001\001\022\026\n" @@ -20483,8 +20473,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_status\"\275\002\n" + "\032PublicAdvertisedPrefixList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022A\n" - + "\005items\030\300\317\367/ \003(\0132/.google" - + ".cloud.compute.v1.PublicAdvertisedPrefix\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132/.google.cloud.compute.v1.PublicAdvertisedPrefix\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -20520,9 +20510,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\213\365\315\001 \001(\tH\n" + "\210\001\001\022\035\n\r" + "parent_prefix\030\307\347\241\007 \001(\tH\013\210\001\001\022o\n" - + "\034public_delegated_sub_prefixs\030\214\376\213Z" - + " \003(\0132F.google.cloud.compute.v1.Pu" - + "blicDelegatedPrefixPublicDelegatedSubPrefix\022\026\n" + + "\034public_delegated_sub_prefixs\030\214\376\213Z \003(\0132F.go" + + "ogle.cloud.compute.v1.PublicDelegatedPrefixPublicDelegatedSubPrefix\022\026\n" + "\006region\030\364\315\240B \001(\tH\014\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\r" + "\210\001\001\022\026\n" @@ -20561,8 +20550,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_status\"\341\003\n" + "#PublicDelegatedPrefixAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022Y\n" - + "\005items\030\300\317\367/ \003(\0132G.google.cloud.compute.v" - + "1.PublicDelegatedPrefixAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132" + + "G.google.cloud.compute.v1.PublicDelegatedPrefixAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -20571,18 +20560,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032h\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022I\n" - + "\005value\030\002 \001(\0132:.google.cloud.compute" - + ".v1.PublicDelegatedPrefixesScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(" + + "\0132:.google.cloud.compute.v1.PublicDelegatedPrefixesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" - + "\020_next_page_tokenB\014\n" - + "\n" + + "\020_next_page_tokenB\014\n\n" + "_self_linkB\n\n" + "\010_warning\"\273\002\n" + "\031PublicDelegatedPrefixList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022@\n" - + "\005items\030\300\317\367/" - + " \003(\0132..google.cloud.compute.v1.PublicDelegatedPrefix\022\024\n" + + "\005items\030\300\317\367/ \003(\0132..goog" + + "le.cloud.compute.v1.PublicDelegatedPrefix\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -20622,8 +20610,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_regionB\t\n" + "\007_status\"\301\001\n" + "!PublicDelegatedPrefixesScopedList\022U\n" - + "\031public_delegated_prefixes\030\226\202\252\226\001 \003(\0132..goo" - + "gle.cloud.compute.v1.PublicDelegatedPrefix\0229\n" + + "\031public_delegated_prefixes\030\226\202\252\226\001" + + " \003(\0132..google.cloud.compute.v1.PublicDelegatedPrefix\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\346(\n" @@ -20805,8 +20793,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_ownerB\010\n" + "\006_usage\"\340\003\n" + "\021QuotaExceededInfo\022R\n\n" - + "dimensions\030\315\377\310\305\001 \003(\0132:.google.cloud." - + "compute.v1.QuotaExceededInfo.DimensionsEntry\022\035\n" + + "dimensions\030\315\377\310\305\001" + + " \003(\0132:.google.cloud.compute.v1.QuotaExceededInfo.DimensionsEntry\022\035\n" + "\014future_limit\030\277\274\332\331\001 \001(\001H\000\210\001\001\022\025\n" + "\005limit\030\273\227\2151 \001(\001H\001\210\001\001\022\033\n\n" + "limit_name\030\217\211\360\275\001 \001(\tH\002\210\001\001\022\034\n" @@ -20874,8 +20862,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ",RecreateInstancesInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\223\001\n" + ";instance_group_managers_recreate_instances_request_resource\030\200\302\232\n" - + " \001(\0132F.goog" - + "le.cloud.compute.v1.InstanceGroupManagersRecreateInstancesRequestB\003\340A\002\022!\n" + + " \001(\0132F.google.cloud.compute" + + ".v1.InstanceGroupManagersRecreateInstancesRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -20888,8 +20876,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\215\001\n" + "8region_instance_group_managers_recreate_request_resource\030\224\374\304Q" - + " \001(\0132C.google.cloud.compute.v1.Reg" - + "ionInstanceGroupManagersRecreateRequestB\003\340A\002\022\032\n\n" + + " \001(\0132C.goo" + + "gle.cloud.compute.v1.RegionInstanceGroupManagersRecreateRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\250\001\n" + "\tReference\022\024\n" @@ -20903,8 +20891,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_target\"\204\005\n" + "\006Region\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022G\n\n" - + "deprecated\030\263\313\321\365\001" - + " \001(\0132*.google.cloud.compute.v1.DeprecationStatusH\001\210\001\001\022\034\n" + + "deprecated\030\263\313\321\365\001 \001(\0132*.goog" + + "le.cloud.compute.v1.DeprecationStatusH\001\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\003\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\022\024\n" @@ -20940,13 +20928,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005items\030\300\317\367/ \003(\0132#.google.cloud.compute.v1.Autoscaler\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" - + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" - + "\007warning\030\234\337\226\030 \001(\0132 .google.cloud.compute.v1.WarningH", - "\004\210\001\001B\005\n" + + "\tself_link\030\215\222\305\331\001", + " \001(\tH\003\210\001\001\0229\n" + + "\007warning\030\234\337\226\030 \001(\0132" + + " .google.cloud.compute.v1.WarningH\004\210\001\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" - + "_self_linkB\n\n" + + "_self_linkB\n" + + "\n" + "\010_warning\"\247\002\n" + "\022RegionDiskTypeList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\0223\n" @@ -20990,8 +20980,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005names\030\310\256\3571 \003(\t\"\277\002\n" + "\036RegionInstanceGroupManagerList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022?\n" - + "\005items\030\300\317\367/" - + " \003(\0132-.google.cloud.compute.v1.InstanceGroupManager\022\024\n" + + "\005items\030\300\317\367/ \003(\0132-.go" + + "ogle.cloud.compute.v1.InstanceGroupManager\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -21006,8 +20996,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024per_instance_configs\030\251\325\370\372\001" + " \003(\0132*.google.cloud.compute.v1.PerInstanceConfig\"\201\001\n" + "1RegionInstanceGroupManagerUpdateInstanceConfigReq\022L\n" - + "\024per_instance_configs\030\251\325\370\372\001 \003(" - + "\0132*.google.cloud.compute.v1.PerInstanceConfig\"J\n" + + "\024per_instance_configs\030\251\325\370\372\001" + + " \003(\0132*.google.cloud.compute.v1.PerInstanceConfig\"J\n" + "2RegionInstanceGroupManagersAbandonInstancesRequest\022\024\n" + "\tinstances\030\376\374\357\r" + " \003(\t\"\373\002\n" @@ -21034,13 +21024,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\010H\000\210\001\001B%\n" + "#_skip_instances_on_validation_error\"\252\001\n" + "-RegionInstanceGroupManagersListErrorsResponse\022D\n" - + "\005items\030\300\317\367/" - + " \003(\01322.google.cloud.compute.v1.InstanceManagedByIgmError\022\037\n" + + "\005items\030\300\317\367/ \003(" + + "\01322.google.cloud.compute.v1.InstanceManagedByIgmError\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\000\210\001\001B\022\n" + "\020_next_page_token\"\356\001\n" + "2RegionInstanceGroupManagersListInstanceConfigsResp\022<\n" - + "\005items\030\300\317\367/ \003(\0132*.go" - + "ogle.cloud.compute.v1.PerInstanceConfig\022\037\n" + + "\005items\030\300\317\367/" + + " \003(\0132*.google.cloud.compute.v1.PerInstanceConfig\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\000\210\001\001\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\001\210\001\001B\022\n" @@ -21123,20 +21113,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021network_endpoints\030\255\221\272G" + " \003(\0132(.google.cloud.compute.v1.NetworkEndpoint\"{\n" + "1RegionNetworkEndpointGroupsDetachEndpointsRequest\022F\n" - + "\021network_endpoints\030\255\221\272G" - + " \003(\0132(.google.cloud.compute.v1.NetworkEndpoint\"\201\002\n" + + "\021network_endpoints\030\255\221\272G \003(\0132" + + "(.google.cloud.compute.v1.NetworkEndpoint\"\201\002\n" + ":RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse\022\210\001\n" - + "\020firewall_policys\030\302\312\374\303\001 \003(\0132j.google" - + ".cloud.compute.v1.RegionNetworkFirewallP" - + "oliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy\0228\n" - + "\tfirewalls\030\363\306\350\201\001 \003" - + "(\0132!.google.cloud.compute.v1.Firewall\"\224\004\n" - + "QRegionNetworkFirewallPoliciesGetEffect" - + "iveFirewallsResponseEffectiveFirewallPolicy\022\034\n" + + "\020firewall_policys\030\302\312\374\303\001 \003(\0132j.google.cloud.compute.v" + + "1.RegionNetworkFirewallPoliciesGetEffect" + + "iveFirewallsResponseEffectiveFirewallPolicy\0228\n" + + "\tfirewalls\030\363\306\350\201\001" + + " \003(\0132!.google.cloud.compute.v1.Firewall\"\224\004\n" + + "QRegionNetworkF" + + "irewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy\022\034\n" + "\014display_name\030\350\207\221\002 \001(\tH\000\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\001\210\001\001\022O\n" - + "\026packet_mirroring_rules\030\304\377\300\375\001" - + " \003(\0132+.google.cloud.compute.v1.FirewallPolicyRule\022\031\n" + + "\026packet_mirroring_rules\030\304\377\300\375\001 \003(\0132+.go" + + "ogle.cloud.compute.v1.FirewallPolicyRule\022\031\n" + "\010priority\030\244\363\241\324\001 \001(\005H\002\210\001\001\022=\n" + "\005rules\030\367\221\3653" + " \003(\0132+.google.cloud.compute.v1.FirewallPolicyRule\022\024\n" @@ -21155,8 +21145,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_type\"\321\001\n" + "\026RegionSetLabelsRequest\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\000\210\001\001\022O\n" - + "\006labels\030\377\277\301\356\001" - + " \003(\0132;.google.cloud.compute.v1.RegionSetLabelsRequest.LabelsEntry\032-\n" + + "\006labels\030\377\277\301\356\001 \003(\0132;" + + ".google.cloud.compute.v1.RegionSetLabelsRequest.LabelsEntry\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001B\024\n" @@ -21194,8 +21184,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\213\365\315\001 \001(\tH\000\210\001\001\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" - + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n" - + "\n" + + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\001\210\001\001B\007\n" + "\005_nameB\r\n" + "\013_request_id\"\263\002\n" @@ -21206,8 +21195,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" + "\013target_pool\030\212\344\370\035 \001(\tB\003\340A\002\022\200\001\n" + "1target_pools_remove_health_check_request_resource\030\263\347\266\221\001" - + " \001(\0132<." - + "google.cloud.compute.v1.TargetPoolsRemoveHealthCheckRequestB\003\340A\002B\r\n" + + " \001(\0132<.google.cloud.com" + + "pute.v1.TargetPoolsRemoveHealthCheckRequestB\003\340A\002B\r\n" + "\013_request_id\"\247\002\n" + "\037RemoveInstanceTargetPoolRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" @@ -21215,15 +21204,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" + "\013target_pool\030\212\344\370\035 \001(\tB\003\340A\002\022x\n" - + "-target_pools_remove_instance_request_resource\030\203\300\213\016" - + " \001(\01329.google.cloud.comput" - + "e.v1.TargetPoolsRemoveInstanceRequestB\003\340A\002B\r\n" + + "-target_pools_remove_instance_request_resource\030\203\300\213\016 \001" + + "(\01329.google.cloud.compute.v1.TargetPoolsRemoveInstanceRequestB\003\340A\002B\r\n" + "\013_request_id\"\264\002\n" + "#RemoveInstancesInstanceGroupRequest\022\036\n" + "\016instance_group\030\325\324\325& \001(\tB\003\340A\002\022\201\001\n" + "1instance_groups_remove_instances_request_resource\030\271\321\267\272\001" - + " \001(\0132=.goog" - + "le.cloud.compute.v1.InstanceGroupsRemoveInstancesRequestB\003\340A\002\022!\n" + + " \001(\0132=.google.cloud.compute" + + ".v1.InstanceGroupsRemoveInstancesRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -21240,8 +21228,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\366\001\n" + "\033RemovePeeringNetworkRequest\022\027\n" + "\007network\030\256\264\205o \001(\tB\003\340A\002\022p\n" - + "(networks_remove_peering_request_resource\030\376\333\351\310\001" - + " \001(\01325.google.cloud.compute.v1.NetworksRemovePeeringRequestB\003\340A\002\022!\n" + + "(networks_remove_peering_request_resource\030\376\333\351\310\001 \001(\01325.goog" + + "le.cloud.compute.v1.NetworksRemovePeeringRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" @@ -21249,8 +21237,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "!RemoveResourcePoliciesDiskRequest\022\024\n" + "\004disk\030\235\233\274\001 \001(\tB\003\340A\002\022}\n" + "/disks_remove_resource_policies_request_resource\030\356\301\241\320\001" - + " \001(\0132;.google.cl" - + "oud.compute.v1.DisksRemoveResourcePoliciesRequestB\003\340A\002\022!\n" + + " \001(\0132;.google.cloud.compute.v1.D" + + "isksRemoveResourcePoliciesRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -21259,9 +21247,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\263\002\n" + "%RemoveResourcePoliciesInstanceRequest\022\030\n" + "\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022\204\001\n" - + "3instances_remove_resource_policies_request_resource\030\366\335\274\027" - + " \001(\0132?.google.cloud.compute.v1" - + ".InstancesRemoveResourcePoliciesRequestB\003\340A\002\022!\n" + + "3instances_remove_resource_policies_request_resource\030\366\335\274\027 \001(\0132?" + + ".google.cloud.compute.v1.InstancesRemoveResourcePoliciesRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -21274,8 +21261,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\211\001\n" + "6region_disks_remove_resource_policies_request_resource\030\243\303\225\004" - + " \001(\0132A.goog" - + "le.cloud.compute.v1.RegionDisksRemoveResourcePoliciesRequestB\003\340A\002\022\032\n\n" + + " \001(\0132A.google.cloud.compute" + + ".v1.RegionDisksRemoveResourcePoliciesRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\226\001\n" + "\037RemoveRuleFirewallPolicyRequest\022 \n" @@ -21317,8 +21304,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "!ReportHostAsFaultyInstanceRequest\022\030\n" + "\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022~\n" + "0instances_report_host_as_faulty_request_resource\030\246\224\315\353\001" - + " \001(\0132;.google.cloud.c" - + "ompute.v1.InstancesReportHostAsFaultyRequestB\003\340A\002\022!\n" + + " \001(\0132;.google.cloud.compute.v1.InstancesReportHostAsFaultyRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -21330,17 +21316,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020_backend_service\"\213\002\n" + "\"RequestRemovePeeringNetworkRequest\022\027\n" + "\007network\030\256\264\205o \001(\tB\003\340A\002\022~\n" - + "0networks_request_remove_peering_request_resource\030\316\344\367G \001(\0132<" - + ".google.cloud.compute.v1.NetworksRequestRemovePeeringRequestB\003\340A\002\022!\n" + + "0networks_request_remove_peering_request_resource\030\316\344\367G" + + " \001(\0132<.google.cloud.co" + + "mpute.v1.NetworksRequestRemovePeeringRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\225\020\n" + "\013Reservation\022k\n" - + "\033advanced_deployment_control\030\240\222\346\303\001 \001(\013" - + "2=.google.cloud.compute.v1.ReservationAdvancedDeploymentControlH\000\210\001\001\022_\n" - + "\025aggregate_reservation\030\314\362\203\213\001 \001(\01327.google.cloud.c" - + "ompute.v1.AllocationAggregateReservationH\001\210\001\001\022\033\n\n" + + "\033advanced_deployment_control\030\240\222\346\303\001 \001(\0132=.google.cloud." + + "compute.v1.ReservationAdvancedDeploymentControlH\000\210\001\001\022_\n" + + "\025aggregate_reservation\030\314\362\203\213\001" + + " \001(\01327.google.cloud.compute.v1.AllocationAggregateReservationH\001\210\001\001\022\033\n\n" + "commitment\030\225\226\363\345\001 \001(\tH\002\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\003\210\001\001\022I\n" + "\025delete_after_duration\030\253\233\277\232\001" @@ -21355,26 +21342,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\210\001\001\022\036\n" + "\022linked_commitments\030\330\375\310\340\001 \003(\t\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\013\210\001\001\022g\n" - + "\032reservation_sharing_policy\030\310\265\233b \001(\0132;.google.cloud.comp" - + "ute.v1.AllocationReservationSharingPolicyH\014\210\001\001\022X\n" + + "\032reservation_sharing_policy\030\310\265\233b" + + " \001(\0132;.google.cloud.compute.v1.AllocationReservationSharingPolicyH\014\210\001\001\022X\n" + "\021resource_policies\030\341\234\314\n" + " \003(\0132:.google.cloud.compute.v1.Reservation.ResourcePoliciesEntry\022R\n" - + "\017resource_status\030\303\372\367v" - + " \001(\01321.google.cloud.compute.v1.AllocationResourceStatusH\r" + + "\017resource_status\030\303\372\367v \001(\01321.google.cl" + + "oud.compute.v1.AllocationResourceStatusH\r" + "\210\001\001\022\036\n\r" + "satisfies_pzs\030\253\335\253\345\001 \001(\010H\016\210\001\001\022\037\n" + "\017scheduling_type\030\205\376\244_ \001(\tH\017\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\020\210\001\001\022F\n" + "\016share_settings\030\203\221\224\177" + " \001(\0132&.google.cloud.compute.v1.ShareSettingsH\021\210\001\001\022`\n" - + "\024specific_reservation\030\277\240\211\301\001 \001(\01329.google.cloud.compu" - + "te.v1.AllocationSpecificSKUReservationH\022\210\001\001\022-\n" + + "\024specific_reservation\030\277\240\211\301\001 " + + "\001(\01329.google.cloud.compute.v1.AllocationSpecificSKUReservationH\022\210\001\001\022-\n" + "\035specific_reservation_required\030\237\307\203l" + " \001(\010H\023\210\001\001\022\026\n" + "\006status\030\362\237\267V \001(\tH\024\210\001\001\022\024\n" + "\004zone\030\254\307\344\001 \001(\tH\025\210\001\001\0327\n" + "\025ResourcePoliciesEntry\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\"a\n" + "\016DeploymentType\022\035\n" + "\031UNDEFINED_DEPLOYMENT_TYPE\020\000\022\014\n" @@ -21393,8 +21381,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005READY\020\203\303\217%\022\020\n" + "\010UPDATING\020\306\356\354\353\001B\036\n" + "\034_advanced_deployment_controlB\030\n" - + "\026_aggregate_reservationB\r" - + "\n" + + "\026_aggregate_reservationB\r\n" + "\013_commitmentB\025\n" + "\023_creation_timestampB\030\n" + "\026_delete_after_durationB\021\n" @@ -21439,8 +21426,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004_key\"\302\003\n" + "\031ReservationAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022O\n" - + "\005items\030\300\317\367/" - + " \003(\0132=.google.cloud.compute.v1.ReservationAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132=.goog" + + "le.cloud.compute.v1.ReservationAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -21449,8 +21436,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032]\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022>\n" - + "\005value\030\002 \001(" - + "\0132/.google.cloud.compute.v1.ReservationsScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\0132/.google.cloud" + + ".compute.v1.ReservationsScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -21459,14 +21446,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020ReservationBlock\022\025\n" + "\005count\030\217\242\235- \001(\005H\000\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022P\n" - + "\013health_info\030\261\351\230p \001(\01323.google.cloud.comp" - + "ute.v1.ReservationBlockHealthInfoH\002\210\001\001\022\020\n" + + "\013health_info\030\261\351\230p" + + " \001(\01323.google.cloud.compute.v1.ReservationBlockHealthInfoH\002\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\003\210\001\001\022\035\n" + "\014in_use_count\030\275\253\246\353\001 \001(\005H\004\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\005\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\006\210\001\001\022]\n" - + "\021physical_topology\030\327\251\264\205\001 \001" - + "(\01329.google.cloud.compute.v1.ReservationBlockPhysicalTopologyH\007\210\001\001\022W\n" + + "\021physical_topology\030\327\251\264\205\001 \001(\01329.google.clou" + + "d.compute.v1.ReservationBlockPhysicalTopologyH\007\210\001\001\022W\n" + "\027reservation_maintenance\030\240\206\265\242\001" + " \001(\0132-.google.cloud.compute.v1.GroupMaintenanceInfoH\010\210\001\001\022,\n" + "\033reservation_sub_block_count\030\353\261\335\235\001 \001(\005H" @@ -21487,8 +21474,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_countB\025\n" + "\023_creation_timestampB\016\n" + "\014_health_infoB\005\n" - + "\003_idB\017\n" - + "\r" + + "\003_idB\017\n\r" + "_in_use_countB\007\n" + "\005_kindB\007\n" + "\005_nameB\024\n" @@ -21522,9 +21508,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_cluster\"\235\002\n" + "(ReservationBlockPhysicalTopologyInstance\022\033\n" + "\013instance_id\030\205\262\330\025 \001(\004H\000\210\001\001\022~\n" - + "\026physical_host_topology\030\276\223\257\272\001" - + " \001(\0132U.google.cloud.compute.v1." - + "ReservationBlockPhysicalTopologyInstancePhysicalHostTopologyH\001\210\001\001\022\032\n\n" + + "\026physical_host_topology\030\276\223\257\272\001 \001(\0132U." + + "google.cloud.compute.v1.ReservationBlock" + + "PhysicalTopologyInstancePhysicalHostTopologyH\001\210\001\001\022\032\n\n" + "project_id\030\201\310\322T \001(\004H\002\210\001\001B\016\n" + "\014_instance_idB\031\n" + "\027_physical_host_topologyB\r\n" @@ -21538,10 +21524,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010resource\030\216\210\257]" + " \001(\0132).google.cloud.compute.v1.ReservationBlockH\000\210\001\001B\013\n" + "\t_resource\"\272\002\n" - + "\035ReservationBlocksListResponse\022\020\n" + + "\035Reservat", + "ionBlocksListResponse\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022;\n" - + "\005items\030\300\317\367/ \003(\0132).goog", - "le.cloud.compute.v1.ReservationBlock\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132).google.cloud.compute.v1.ReservationBlock\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -21568,14 +21555,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023ReservationSubBlock\022\025\n" + "\005count\030\217\242\235- \001(\005H\000\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022S\n" - + "\013health_info\030\261\351\230p" - + " \001(\01326.google.cloud.compute.v1.ReservationSubBlockHealthInfoH\002\210\001\001\022\020\n" + + "\013health_info\030\261\351\230p \001(\01326.google.c" + + "loud.compute.v1.ReservationSubBlockHealthInfoH\002\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\003\210\001\001\022\035\n" + "\014in_use_count\030\275\253\246\353\001 \001(\005H\004\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\005\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\006\210\001\001\022`\n" - + "\021physical_topology\030\327\251\264\205\001 \001(\0132<.google." - + "cloud.compute.v1.ReservationSubBlockPhysicalTopologyH\007\210\001\001\022a\n" + + "\021physical_topology\030\327\251\264\205\001 \001(\0132<.google.cloud.compute.v1" + + ".ReservationSubBlockPhysicalTopologyH\007\210\001\001\022a\n" + "!reservation_sub_block_maintenance\030\357\313\342\263\001" + " \001(\0132-.google.cloud.compute.v1.GroupMaintenanceInfoH\010\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\t\210\001\001\022!\n" @@ -21631,8 +21618,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\t_resource\"\300\002\n" + " ReservationSubBlocksListResponse\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022>\n" - + "\005items\030\300\317\367/ \003" - + "(\0132,.google.cloud.compute.v1.ReservationSubBlock\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132,.google.cloud.compute.v1.ReservationSubBlock\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -21680,8 +21667,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\360\001\n" + "\021ResizeDiskRequest\022\024\n" + "\004disk\030\235\233\274\001 \001(\tB\003\340A\002\022Z\n" - + "\035disks_resize_request_resource\030\240\302\253%" - + " \001(\0132+.google.cloud.compute.v1.DisksResizeRequestB\003\340A\002\022!\n" + + "\035disks_resize_request_resource\030\240\302\253% \001(\0132+.google." + + "cloud.compute.v1.DisksResizeRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -21702,8 +21689,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022h\n" - + "$region_disks_resize_request_resource\030\225\252\374\324\001" - + " \001(\01321.google.cloud.compute.v1.RegionDisksResizeRequestB\003\340A\002\022\032\n\n" + + "$region_disks_resize_request_resource\030\225\252\374\324\001 \001" + + "(\01321.google.cloud.compute.v1.RegionDisksResizeRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\326\001\n" + "\'ResizeRegionInstanceGroupManagerRequest\022&\n" @@ -21719,8 +21706,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" + "\013reservation\030\314\207\325\026 \001(\tB\003\340A\002\022i\n" - + "$reservations_resize_request_resource\030\321\333\316\271\001 \001(\01322.google.cloud" - + ".compute.v1.ReservationsResizeRequestB\003\340A\002\022\033\n" + + "$reservations_resize_request_resource\030\321\333\316\271\001" + + " \001(\01322.google.cloud.compute.v1.ReservationsResizeRequestB\003\340A\002\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\202\002\n" @@ -21750,13 +21737,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016ResourcePolicy\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022q\n" - + "\035disk_consistency_group_policy\030\233\204\362\341\001 \001(\0132A.google.clo" - + "ud.compute.v1.ResourcePolicyDiskConsistencyGroupPolicyH\002\210\001\001\022c\n" - + "\026group_placement_policy\030\214\233\233\005 \001(\0132;.google.cloud.compute.v1" - + ".ResourcePolicyGroupPlacementPolicyH\003\210\001\001\022\020\n" + + "\035disk_consistency_group_policy\030\233\204\362\341\001" + + " \001(\0132A.google.cloud.compute.v1.Re" + + "sourcePolicyDiskConsistencyGroupPolicyH\002\210\001\001\022c\n" + + "\026group_placement_policy\030\214\233\233\005 \001(\0132;" + + ".google.cloud.compute.v1.ResourcePolicyGroupPlacementPolicyH\003\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\004\210\001\001\022h\n" - + "\030instance_schedule_policy\030\260\320\271\244\001 \001(\0132=.google.cloud.compute." - + "v1.ResourcePolicyInstanceSchedulePolicyH\005\210\001\001\022\024\n" + + "\030instance_schedule_policy\030\260\320\271\244\001 \001(\013" + + "2=.google.cloud.compute.v1.ResourcePolicyInstanceSchedulePolicyH\005\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\006\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\007\210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH\010\210\001\001\022V\n" @@ -21765,11 +21753,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\t\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\n" + "\210\001\001\022g\n" - + "\030snapshot_schedule_policy\030\337\326\201h \001(\0132=.google.cloud" - + ".compute.v1.ResourcePolicySnapshotSchedulePolicyH\013\210\001\001\022\026\n" + + "\030snapshot_schedule_policy\030\337\326\201h" + + " \001(\0132=.google.cloud.compute.v1.ResourcePolicySnapshotSchedulePolicyH\013\210\001\001\022\026\n" + "\006status\030\362\237\267V \001(\tH\014\210\001\001\022V\n" - + "\017workload_policy\030\372\205\3326 \001(\01325.google.cloud" - + ".compute.v1.ResourcePolicyWorkloadPolicyH\r" + + "\017workload_policy\030\372\205\3326" + + " \001(\01325.google.cloud.compute.v1.ResourcePolicyWorkloadPolicyH\r" + "\210\001\001\"r\n" + "\006Status\022\024\n" + "\020UNDEFINED_STATUS\020\000\022\020\n" @@ -21795,8 +21783,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\034ResourcePolicyAggregatedList\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\tH\001\210\001\001\022R\n" - + "\005items\030\300\317\367/ \003(\0132@.google" - + ".cloud.compute.v1.ResourcePolicyAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132@.google.cloud.compute.v" + + "1.ResourcePolicyAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n" @@ -21805,8 +21793,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\005\210\001\001\032a\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022B\n" - + "\005value\030\002 \001(\01323.google.clou" - + "d.compute.v1.ResourcePoliciesScopedList:\0028\001B\007\n" + + "\005value\030\002" + + " \001(\01323.google.cloud.compute.v1.ResourcePoliciesScopedList:\0028\001B\007\n" + "\005_etagB\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" @@ -21845,14 +21833,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017expiration_time\030\335\254\350m \001(\tH\000\210\001\001\022\032\n\n" + "start_time\030\212\351\356\021 \001(\tH\001\210\001\001\022\031\n" + "\ttime_zone\030\336\203\311\021 \001(\tH\002\210\001\001\022h\n" - + "\021vm_start_schedule\030\334\220\274\010 \001(\0132E.google.cloud.comp" - + "ute.v1.ResourcePolicyInstanceSchedulePolicyScheduleH\003\210\001\001\022h\n" - + "\020vm_stop_schedule\030\254\345\237\313\001" - + " \001(\0132E.google.cloud.compute.v1.Resourc" - + "ePolicyInstanceSchedulePolicyScheduleH\004\210\001\001B\022\n" + + "\021vm_start_schedule\030\334\220\274\010" + + " \001(\0132E.google.cloud.compute.v1.ResourceP" + + "olicyInstanceSchedulePolicyScheduleH\003\210\001\001\022h\n" + + "\020vm_stop_schedule\030\254\345\237\313\001 \001(\0132E.google." + + "cloud.compute.v1.ResourcePolicyInstanceSchedulePolicyScheduleH\004\210\001\001B\022\n" + "\020_expiration_timeB\r\n" - + "\013_start_timeB\014\n" - + "\n" + + "\013_start_timeB\014\n\n" + "_time_zoneB\024\n" + "\022_vm_start_scheduleB\023\n" + "\021_vm_stop_schedule\"V\n" @@ -21876,8 +21863,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\271\001\n" + "\034ResourcePolicyResourceStatus\022|\n" - + "\030instance_schedule_policy\030\260\320\271\244\001 \001(\0132Q.google.cl" - + "oud.compute.v1.ResourcePolicyResourceStatusInstanceSchedulePolicyStatusH\000\210\001\001B\033\n" + + "\030instance_schedule_policy\030\260\320\271\244\001" + + " \001(\0132Q.google.cloud.compute.v1.R" + + "esourcePolicyResourceStatusInstanceSchedulePolicyStatusH\000\210\001\001B\033\n" + "\031_instance_schedule_policy\"\266\001\n" + "8ResourcePolicyResourceStatusInstanceSchedulePolicyStatus\022$\n" + "\023last_run_start_time\030\207\357\301\220\001 \001(\tH\000\210\001\001\022$\n" @@ -21885,13 +21873,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024_last_run_start_timeB\026\n" + "\024_next_run_start_time\"\250\003\n" + "$ResourcePolicySnapshotSchedulePolicy\022n\n" - + "\020retention_policy\030\363\312\334 \001(\013" - + "2L.google.cloud.compute.v1.ResourcePolic" - + "ySnapshotSchedulePolicyRetentionPolicyH\000\210\001\001\022`\n" - + "\010schedule\030\227\245\232\263\001 \001(\0132E.google.cloud" - + ".compute.v1.ResourcePolicySnapshotSchedulePolicyScheduleH\001\210\001\001\022t\n" - + "\023snapshot_properties\030\216\225\262X \001(\0132O.google.cloud.compute.v1." - + "ResourcePolicySnapshotSchedulePolicySnapshotPropertiesH\002\210\001\001B\023\n" + + "\020retention_policy\030\363\312\334 \001(\0132L.google.cloud." + + "compute.v1.ResourcePolicySnapshotSchedulePolicyRetentionPolicyH\000\210\001\001\022`\n" + + "\010schedule\030\227\245\232\263\001 \001(\0132E.google.cloud.compute.v1.Reso" + + "urcePolicySnapshotSchedulePolicyScheduleH\001\210\001\001\022t\n" + + "\023snapshot_properties\030\216\225\262X \001(\0132O." + + "google.cloud.compute.v1.ResourcePolicySn" + + "apshotSchedulePolicySnapshotPropertiesH\002\210\001\001B\023\n" + "\021_retention_policyB\013\n" + "\t_scheduleB\026\n" + "\024_snapshot_properties\"\325\002\n" @@ -21906,20 +21894,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023_max_retention_daysB\030\n" + "\026_on_source_disk_delete\"\347\002\n" + ",ResourcePolicySnapshotSchedulePolicySchedule\022Q\n" - + "\016daily_schedule\030\375\343\212)" - + " \001(\01321.google.cloud.compute.v1.ResourcePolicyDailyCycleH\000\210\001\001\022S\n" - + "\017hourly_schedule\030\245\261\243\022 \001(\01322.google.cloud.com" - + "pute.v1.ResourcePolicyHourlyCycleH\001\210\001\001\022T\n" - + "\017weekly_schedule\030\225\211\271\253\001 \001(\01322.google.clo" - + "ud.compute.v1.ResourcePolicyWeeklyCycleH\002\210\001\001B\021\n" + + "\016daily_schedule\030\375\343\212) \001(" + + "\01321.google.cloud.compute.v1.ResourcePolicyDailyCycleH\000\210\001\001\022S\n" + + "\017hourly_schedule\030\245\261\243\022" + + " \001(\01322.google.cloud.compute.v1.ResourcePolicyHourlyCycleH\001\210\001\001\022T\n" + + "\017weekly_schedule\030\225\211\271\253\001" + + " \001(\01322.google.cloud.compute.v1.ResourcePolicyWeeklyCycleH\002\210\001\001B\021\n" + "\017_daily_scheduleB\022\n" + "\020_hourly_scheduleB\022\n" + "\020_weekly_schedule\"\320\002\n" + "6ResourcePolicySnapshotSchedulePolicySnapshotProperties\022\032\n\n" + "chain_name\030\311\332\335 \001(\tH\000\210\001\001\022\034\n" + "\013guest_flush\030\335\223\354\267\001 \001(\010H\001\210\001\001\022o\n" - + "\006labels\030\377\277\301\356\001 \003(\0132[.google.cloud.compute.v1.ResourcePolic" - + "ySnapshotSchedulePolicySnapshotProperties.LabelsEntry\022\035\n" + + "\006labels\030\377\277\301\356\001 \003(\0132[.google.cloud." + + "compute.v1.ResourcePolicySnapshotSchedulePolicySnapshotProperties.LabelsEntry\022\035\n" + "\021storage_locations\030\232\355\263\234\001 \003(\t\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -21927,8 +21915,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_chain_nameB\016\n" + "\014_guest_flush\"q\n" + "\031ResourcePolicyWeeklyCycle\022T\n" - + "\014day_of_weeks\030\332\237\373z \003(\0132;.google.cloud.compute." - + "v1.ResourcePolicyWeeklyCycleDayOfWeek\"\264\002\n" + + "\014day_of_weeks\030\332\237\373z \003(\013" + + "2;.google.cloud.compute.v1.ResourcePolicyWeeklyCycleDayOfWeek\"\264\002\n" + "\"ResourcePolicyWeeklyCycleDayOfWeek\022\022\n" + "\003day\030\234\207\006 \001(\tH\000\210\001\001\022\030\n" + "\010duration\030\224\233\221J \001(\tH\001\210\001\001\022\032\n\n" @@ -21961,19 +21949,46 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017HIGH_THROUGHPUT\020\347\321\355EB\027\n" + "\025_accelerator_topologyB\030\n" + "\026_max_topology_distanceB\007\n" - + "\005_type\"\217\003\n" - + "\016ResourceStatus\022\036\n\r" - + "physical_host\030\220\370\266\335\001 \001(\tH\000\210\001\001\022d\n" - + "\026physical_host_topology\030\276\223\257\272\001 \001(\0132;.google.cloud.compute." - + "v1.ResourceStatusPhysicalHostTopologyH\001\210\001\001\022N\n\n" - + "scheduling\030\224\313\261\270\001 \001(\01321.google.clou" - + "d.compute.v1.ResourceStatusSchedulingH\002\210\001\001\022R\n" - + "\024upcoming_maintenance\030\360\240\264l \001(\0132,.go" - + "ogle.cloud.compute.v1.UpcomingMaintenanceH\003\210\001\001B\020\n" + + "\005_type\"\236\004\n" + + "\016ResourceStatus\022m\n" + + "\033effective_instance_metadata\030\201\216\240\032" + + " \001(\0132@.google.cloud.compute.v1.R" + + "esourceStatusEffectiveInstanceMetadataH\000\210\001\001\022\036\n\r" + + "physical_host\030\220\370\266\335\001 \001(\tH\001\210\001\001\022d\n" + + "\026physical_host_topology\030\276\223\257\272\001 \001(\0132;.google" + + ".cloud.compute.v1.ResourceStatusPhysicalHostTopologyH\002\210\001\001\022N\n\n" + + "scheduling\030\224\313\261\270\001 \001(" + + "\01321.google.cloud.compute.v1.ResourceStatusSchedulingH\003\210\001\001\022R\n" + + "\024upcoming_maintenance\030\360\240\264l" + + " \001(\0132,.google.cloud.compute.v1.UpcomingMaintenanceH\004\210\001\001B\036\n" + + "\034_effective_instance_metadataB\020\n" + "\016_physical_hostB\031\n" + "\027_physical_host_topologyB\r\n" + "\013_schedulingB\027\n" - + "\025_upcoming_maintenance\"\261\001\n" + + "\025_upcoming_maintenance\"\206\006\n" + + "\'ResourceStatusEffectiveInstanceMetadata\0226\n" + + "%block_project_ssh_keys_metadata_value\030\375\364\273\241\001" + + " \001(\010H\000\210\001\001\0227\n" + + "&enable_guest_attributes_metadata_value\030\346\243\254\310\001" + + " \001(\010H\001\210\001\001\0223\n" + + "\"enable_os_inventory_metadata_value\030\343\375\241\261\001" + + " \001(\010H\002\210\001\001\022/\n" + + "\036enable_osconfig_metadata_value\030\336\321\352\357\001" + + " \001(\010H\003\210\001\001\022-\n" + + "\035enable_oslogin_metadata_value\030\227\264\244g \001(\010H\004\210\001\001\0222\n" + + "!serial_port_enable_metadata_value\030\212\355\245\315\001" + + " \001(\010H\005\210\001\001\022:\n" + + ")serial_port_logging_enable_metadata_value\030\252\311\327\224\001" + + " \001(\010H\006\210\001\001\022.\n" + + "\035vm_dns_setting_metadata_value\030\216\241\205\304\001 \001(\tH\007\210\001\001B(\n" + + "&_block_project_ssh_keys_metadata_valueB)\n" + + "\'_enable_guest_attributes_metadata_valueB%\n" + + "#_enable_os_inventory_metadata_valueB!\n" + + "\037_enable_osconfig_metadata_valueB \n" + + "\036_enable_oslogin_metadata_valueB$\n" + + "\"_serial_port_enable_metadata_valueB,\n" + + "*_serial_port_logging_enable_metadata_valueB \n" + + "\036_vm_dns_setting_metadata_value\"\261\001\n" + "\"ResourceStatusPhysicalHostTopology\022\025\n" + "\005block\030\215\211\337, \001(\tH\000\210\001\001\022\030\n" + "\007cluster\030\372\243\354\237\001 \001(\tH\001\210\001\001\022\024\n" @@ -21997,8 +22012,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "*ResumeInstancesInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\217\001\n" + "9instance_group_managers_resume_instances_request_resource\030\302\276\302=" - + " \001(\0132D." - + "google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequestB\003\340A\002\022!\n" + + " \001(\0132D.google.cloud.com" + + "pute.v1.InstanceGroupManagersResumeInstancesRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -22010,10 +22025,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\235\001\n" - + "@region_instance" - + "_group_managers_resume_instances_request_resource\030\267\203\200\335\001" - + " \001(\0132J.google.cloud.compu" - + "te.v1.RegionInstanceGroupManagersResumeInstancesRequestB\003\340A\002\022\032\n\n" + + "@region_instance_group_managers_resume_instances_request_resource\030\267\203\200\335\001" + + " \001(\0132J.google.cloud.compute.v1.RegionInst" + + "anceGroupManagersResumeInstancesRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\226\014\n" + "\005Route\0229\n" @@ -22115,8 +22129,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\253\001\n" + "\013RouteParams\022`\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132=.go" - + "ogle.cloud.compute.v1.RouteParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132=.google.cloud.compu" + + "te.v1.RouteParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\310\002\n" @@ -22124,13 +22138,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013description\030\374\207\326\311\001 \001(\tH\000\210\001\001\022\033\n" + "\013fingerprint\030\344\321\363o \001(\tH\001\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\002\210\001\001\022@\n" - + "\005terms\030\207\223\3114 \003(\0132..goog" - + "le.cloud.compute.v1.RoutePolicyPolicyTerm\022\024\n" + + "\005terms\030\207\223\3114" + + " \003(\0132..google.cloud.compute.v1.RoutePolicyPolicyTerm\022\024\n" + "\004type\030\272\236\332\001 \001(\tH\003\210\001\001\"^\n" + "\004Type\022\022\n" + "\016UNDEFINED_TYPE\020\000\022 \n" + "\030ROUTE_POLICY_TYPE_EXPORT\020\242\315\340\213\001\022 \n" - + "\030ROUTE_POLICY_TYPE_IMPORT\020\223\215\302\275\001B\016\n" + + "\030ROUTE_P", + "OLICY_TYPE_IMPORT\020\223\215\302\275\001B\016\n" + "\014_descriptionB\016\n" + "\014_fingerprintB\007\n" + "\005_nameB\007\n" @@ -22143,20 +22158,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_matchB\013\n" + "\t_priority\"\332\005\n" + "\006Router\0226\n" - + "\003bgp\030\313\371\005" - + " \001(\0132\".google.cloud.compute.v1.RouterBgpH\000\210\001\001\022=\n" - + "\tbgp_peers\030\335\255\356\327\001 \003(" - + "\0132&.google.cloud.compute.v1.RouterBgpPeer\022\"\n" + + "\003bgp\030\313\371\005 \001(" + + "\0132\".google.cloud.compute.v1.RouterBgpH\000\210\001\001\022=\n" + + "\tbgp_peers\030\335\255\356\327\001" + + " \003(\0132&.google.cloud.compute.v1.RouterBgpPeer\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022.\n" + "\035encrypted_interconnect_router\030\237\242\214\216\001" + " \001(\010H\003\210\001\001\022\020\n" - + "\002id\030\233\032 \001(\004H\004\210\001\001\022?\n\n" - + "interfaces\030\332\364\340\005 \003(\0132(.g" - + "oogle.cloud.compute.v1.RouterInterface\022\024\n" + + "\002id\030\233\032 \001(\004H\004\210\001\001\022?\n" + + "\n" + + "interfaces\030\332\364\340\005" + + " \003(\0132(.google.cloud.compute.v1.RouterInterface\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\005\210\001\001\022W\n" - + "\027md5_authentication_keys\030\232\256\361!" - + " \003(\01323.google.cloud.compute.v1.RouterMd5AuthenticationKey\022\024\n" + + "\027md5_authentication_keys\030\232\256\361! \003(\013" + + "23.google.cloud.compute.v1.RouterMd5AuthenticationKey\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\006\210\001\001\0223\n" + "\004nats\030\362\366\315\001 \003(\0132\".google.cloud.compute.v1.RouterNat\022\027\n" + "\007network\030\256\264\205o \001(\tH\007\210\001\001\022\026\n" @@ -22171,8 +22187,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_nameB\n\n" + "\010_networkB\t\n" + "\007_regionB\014\n\n" - + "_self_", - "link\"h\n" + + "_self_link\"h\n" + "\027RouterAdvertisedIpRange\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\000\210\001\001\022\025\n" + "\005range\030\275\362\3203 \001(\tH\001\210\001\001B\016\n" @@ -22180,8 +22195,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_range\"\263\003\n" + "\024RouterAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022J\n" - + "\005items\030\300\317\367/" - + " \003(\01328.google.cloud.compute.v1.RouterAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\01328.go" + + "ogle.cloud.compute.v1.RouterAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -22190,8 +22205,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032X\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\0229\n" - + "\005value\030\002 \001(\0132*" - + ".google.cloud.compute.v1.RoutersScopedList:\0028\001B\005\n" + + "\005value\030\002" + + " \001(\0132*.google.cloud.compute.v1.RoutersScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -22201,8 +22216,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016advertise_mode\030\273\225\353\224\001 \001(\tH\000\210\001\001\022\034\n" + "\021advertised_groups\030\266\336\205\n" + " \003(\t\022Q\n" - + "\024advertised_ip_ranges\030\314\330\363\020" - + " \003(\01320.google.cloud.compute.v1.RouterAdvertisedIpRange\022\022\n" + + "\024advertised_ip_ranges\030\314\330\363\020 \003" + + "(\01320.google.cloud.compute.v1.RouterAdvertisedIpRange\022\022\n" + "\003asn\030\374\364\005 \001(\r" + "H\001\210\001\001\022!\n" + "\020identifier_range\030\247\314\225\357\001 \001(\tH\002\210\001\001\022#\n" @@ -22223,14 +22238,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016advertise_mode\030\273\225\353\224\001 \001(\tH\000\210\001\001\022\034\n" + "\021advertised_groups\030\266\336\205\n" + " \003(\t\022Q\n" - + "\024advertised_ip_ranges\030\314\330\363\020" - + " \003(\01320.google.cloud.compute.v1.RouterAdvertisedIpRange\022)\n" + + "\024advertised_ip_ranges\030\314\330\363\020 \003(" + + "\01320.google.cloud.compute.v1.RouterAdvertisedIpRange\022)\n" + "\031advertised_route_priority\030\274\234\366X \001(\r" + "H\001\210\001\001\022=\n" + "\003bfd\030\240\371\005" + " \001(\0132).google.cloud.compute.v1.RouterBgpPeerBfdH\002\210\001\001\022`\n" - + "\030custom_learned_ip_ranges\030\304\210\304\345\001" - + " \003(\0132:.google.cloud.compute.v1.RouterBgpPeerCustomLearnedIpRange\022.\n" + + "\030custom_learned_ip_ranges\030\304\210\304\345\001 \003(\0132:.go" + + "ogle.cloud.compute.v1.RouterBgpPeerCustomLearnedIpRange\022.\n" + "\035custom_learned_route_priority\030\304\342\306\235\001" + " \001(\005H\003\210\001\001\022\027\n" + "\006enable\030\203\313\324\224\001 \001(\tH\004\210\001\001\022\033\n" @@ -22277,8 +22292,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_enableB\016\n" + "\014_enable_ipv4B\016\n" + "\014_enable_ipv6B\021\n" - + "\017_interface_nameB\r" - + "\n" + + "\017_interface_nameB\r\n" + "\013_ip_addressB\027\n" + "\025_ipv4_nexthop_addressB\027\n" + "\025_ipv6_nexthop_addressB\022\n" @@ -22364,23 +22378,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "#enable_endpoint_independent_mapping\030\233\211\333{" + " \001(\010H\002\210\001\001\022\032\n" + "\016endpoint_types\030\317\252\326\357\001 \003(\t\022%\n" - + "\025icmp_idle_timeout_sec\030\312\320\336\001 \001(\005H\003\210\001\001\022H\n" - + "\n" + + "\025icmp_idle_timeout_sec\030\312\320\336\001 \001(\005H\003\210\001\001\022H\n\n" + "log_config\030\235\321\301\247\001" + " \001(\0132+.google.cloud.compute.v1.RouterNatLogConfigH\004\210\001\001\022 \n" + "\020max_ports_per_vm\030\341\311\236w \001(\005H\005\210\001\001\022 \n" + "\020min_ports_per_vm\030\263\255\344X \001(\005H\006\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\007\210\001\001\022Q\n" - + "\021nat64_subnetworks\030\245\373\250\036 \003(\01323.google" - + ".cloud.compute.v1.RouterNatSubnetworkToNat64\022\'\n" + + "\021nat64_subnetworks\030\245\373\250\036" + + " \003(\01323.google.cloud.compute.v1.RouterNatSubnetworkToNat64\022\'\n" + "\026nat_ip_allocate_option\030\375\270\364\314\001 \001(\tH\010\210\001\001\022\022\n" + "\007nat_ips\030\216\360\2138 \003(\t\0228\n" + "\005rules\030\367\221\3653 \003(\0132&.google.cloud.compute.v1.RouterNatRule\0222\n" + "\"source_subnetwork_ip_ranges_to_nat\030\333\357\241x \001(\tH\t\210\001\001\0224\n" + "$source_subnetwork_ip_ranges_to_nat64\030\331\347\247v \001(\tH\n" + "\210\001\001\022J\n" - + "\013subnetworks\030\305\324\245\306\001" - + " \003(\01321.google.cloud.compute.v1.RouterNatSubnetworkToNat\0220\n" + + "\013subnetworks\030\305\324\245\306\001 \003(\01321" + + ".google.cloud.compute.v1.RouterNatSubnetworkToNat\0220\n" + " tcp_established_idle_timeout_sec\030\355\353\260j \001(\005H\013\210\001\001\022*\n" + "\031tcp_time_wait_timeout_sec\030\375\273\363\364\001" + " \001(\005H\014\210\001\001\022/\n" @@ -22443,8 +22456,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_enableB\t\n" + "\007_filter\"\335\001\n\r" + "RouterNatRule\022D\n" - + "\006action\030\266\374\275Y" - + " \001(\0132,.google.cloud.compute.v1.RouterNatRuleActionH\000\210\001\001\022\034\n" + + "\006action\030\266\374\275Y \001(\0132,.google." + + "cloud.compute.v1.RouterNatRuleActionH\000\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022\025\n" + "\005match\030\305\263\2671 \001(\tH\002\210\001\001\022\034\n" + "\013rule_number\030\354\333\232\377\001 \001(\r" @@ -22476,8 +22489,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\0132\036.google.cloud.compute.v1.Route\022A\n" + "\026best_routes_for_router\030\371\373\3668" + " \003(\0132\036.google.cloud.compute.v1.Route\022N\n" - + "\017bgp_peer_status\030\373\327\225h \003(\01322.google.c" - + "loud.compute.v1.RouterStatusBgpPeerStatus\022E\n\n" + + "\017bgp_peer_status\030\373\327\225h" + + " \003(\01322.google.cloud.compute.v1.RouterStatusBgpPeerStatus\022E\n\n" + "nat_status\030\320\231\213\036" + " \003(\0132..google.cloud.compute.v1.RouterStatusNatStatus\022\027\n" + "\007network\030\256\264\205o \001(\tH\000\210\001\001B\n\n" @@ -22548,8 +22561,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\213\365\315\001 \001(\tH\001\210\001\001\0223\n" + "\"num_vm_endpoints_with_nat_mappings\030\354\266\250\364\001" + " \001(\005H\002\210\001\001\022S\n" - + "\013rule_status\030\225\305\356B \003(\0132;.google.cloud" - + ".compute.v1.RouterStatusNatStatusNatRuleStatus\022*\n" + + "\013rule_status\030\225\305\356B" + + " \003(\0132;.google.cloud.compute.v1.RouterStatusNatStatusNatRuleStatus\022*\n" + "\037user_allocated_nat_ip_resources\030\327\351\272e \003(\t\022\"\n" + "\026user_allocated_nat_ips\030\242\262\331\361\001 \003(\tB\033\n" + "\031_min_extra_nat_ips_neededB\007\n" @@ -22567,13 +22580,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_rule_number\"\177\n" + "\024RouterStatusResponse\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\000\210\001\001\022=\n" - + "\006result\030\235\220\267B " - + "\001(\0132%.google.cloud.compute.v1.RouterStatusH\001\210\001\001B\007\n" + + "\006result\030\235\220\267B" + + " \001(\0132%.google.cloud.compute.v1.RouterStatusH\001\210\001\001B\007\n" + "\005_kindB\t\n" + "\007_result\"l\n" + "\035RoutersGetRoutePolicyResponse\022>\n" - + "\010resource\030\216\210\257] \001(" - + "\0132$.google.cloud.compute.v1.RoutePolicyH\000\210\001\001B\013\n" + + "\010resource\030\216\210\257]" + + " \001(\0132$.google.cloud.compute.v1.RoutePolicyH\000\210\001\001B\013\n" + "\t_resource\"\342\002\n" + "\024RoutersListBgpRoutes\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" @@ -22644,20 +22657,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013auto_delete\030\273\344\316\335\001 \001(\010H\000\210\001\001\022\024\n" + "\004boot\030\362\365\270\001 \001(\010H\001\210\001\001\022\033\n" + "\013device_name\030\324\265\232 \001(\tH\002\210\001\001\022T\n" - + "\023disk_encryption_key\030\205\355\304\201\001 \001(\0132..goo" - + "gle.cloud.compute.v1.CustomerEncryptionKeyH\003\210\001\001\022\035\n" + + "\023disk_encryption_key\030\205\355\304\201\001" + + " \001(\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\003\210\001\001\022\035\n" + "\014disk_size_gb\030\267\232\347\226\001 \001(\003H\004\210\001\001\022\031\n" + "\tdisk_type\030\234\351\254, \001(\tH\005\210\001\001\022E\n" - + "\021guest_os_features\030\321\340\347%" - + " \003(\0132\'.google.cloud.compute.v1.GuestOsFeature\022\025\n" + + "\021guest_os_features\030\321\340\347% \003(\0132" + + "\'.google.cloud.compute.v1.GuestOsFeature\022\025\n" + "\005index\030\322\321\354/ \001(\005H\006\210\001\001\022\032\n" + "\tinterface\030\271\332\325\357\001 \001(\tH\007\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\010\210\001\001\022\024\n" + "\010licenses\030\322\210\200\241\001 \003(\t\022\024\n" + "\004mode\030\243\363\314\001 \001(\tH\t\210\001\001\022\026\n" + "\006source\030\233\320\301T \001(\tH\n" - + "\210\001\001\022\036\n" - + "\r" + + "\210\001\001\022\036\n\r" + "storage_bytes\030\247\273\275\312\001 \001(\003H\013\210\001\001\022%\n" + "\024storage_bytes_status\030\212\253\200\352\001 \001(\tH\014\210\001\001\022\024\n" + "\004type\030\272\236\332\001 \001(\tH\r" @@ -22695,8 +22707,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tSavedDisk\022\035\n" + "\014architecture\030\323\322\261\220\001 \001(\tH\000\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\034\n" - + "\013source_disk\030\301\356\264\327\001 \001(\tH\002\210\001\001\022\036\n" - + "\r" + + "\013source_disk\030\301\356\264\327\001 \001(\tH\002\210\001\001\022\036\n\r" + "storage_bytes\030\247\273\275\312\001 \001(\003H\003\210\001\001\022%\n" + "\024storage_bytes_status\030\212\253\200\352\001 \001(\tH\004\210\001\001\"j\n" + "\014Architecture\022\032\n" @@ -22735,14 +22746,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032local_ssd_recovery_timeout\030\346\257\346\177" + " \001(\0132!.google.cloud.compute.v1.DurationH\004\210\001\001\022\036\n\r" + "location_hint\030\321\201\222\247\001 \001(\tH\005\210\001\001\022D\n" - + "\020max_run_duration\030\303\257\270\315\001" - + " \001(\0132!.google.cloud.compute.v1.DurationH\006\210\001\001\022\036\n\r" + + "\020max_run_duration\030\303\257\270\315\001 \001(\0132" + + "!.google.cloud.compute.v1.DurationH\006\210\001\001\022\036\n\r" + "min_node_cpus\030\273\244\242\227\001 \001(\005H\007\210\001\001\022L\n" - + "\017node_affinities\030\243\204\232\334\001 \003(\0132/.g" - + "oogle.cloud.compute.v1.SchedulingNodeAffinity\022#\n" + + "\017node_affinities\030\243\204\232\334\001" + + " \003(\0132/.google.cloud.compute.v1.SchedulingNodeAffinity\022#\n" + "\023on_host_maintenance\030\334\362\347\036 \001(\tH\010\210\001\001\022a\n" - + "\027on_instance_stop_action\030\311\215\325\374\001 \001(\0132" - + "7.google.cloud.compute.v1.SchedulingOnInstanceStopActionH\t\210\001\001\022\034\n" + + "\027on_instance_stop_action\030\311\215\325\374\001 \001(\01327.google.cloud.c" + + "ompute.v1.SchedulingOnInstanceStopActionH\t\210\001\001\022\034\n" + "\013preemptible\030\241\345\313\232\001 \001(\010H\n" + "\210\001\001\022!\n" + "\022provisioning_model\030\327\226\036 \001(\tH\013\210\001\001\022!\n" @@ -22789,15 +22800,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021discard_local_ssd\030\317\351\255\230\001 \001(\010H\000\210\001\001B\024\n" + "\022_discard_local_ssd\"S\n\n" + "Screenshot\022\031\n" - + "\010contents\030\232\266\275\361\001 \001(\tH\000\210\001\001\022\024\n" + + "\010", + "contents\030\232\266\275\361\001 \001(\tH\000\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001B\013\n" + "\t_contentsB\007\n" + "\005_kind\"\357\003\n" + "\036SecurityPoliciesAggregatedList\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\tH\001\210\001\001\022T\n" - + "\005items\030\300\317\367/ \003(\0132B.google.cloud.compute." - + "v1.SecurityPoliciesAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\013" + + "2B.google.cloud.compute.v1.SecurityPoliciesAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n" @@ -22806,8 +22818,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\005\210\001\001\032a\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022B\n" - + "\005value\030\002" - + " \001(\01323.google.cloud.compute.v1.SecurityPoliciesScopedList:\0028\001B\007\n" + + "\005value\030\002 \001(\01323." + + "google.cloud.compute.v1.SecurityPoliciesScopedList:\0028\001B\007\n" + "\005_etagB\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" @@ -22815,8 +22827,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\277\001\n" + "7SecurityPoliciesListPreconfiguredExpressionSetsResponse\022b\n" - + "\035preconfigured_expression_sets\030\372\214\327\377\001" - + " \001(\01322.google.cloud.compute.v1.SecurityPoliciesWafConfigH\000\210\001\001B \n" + + "\035preconfigured_expression_sets\030\372\214\327\377\001 \001(\01322.google.cl" + + "oud.compute.v1.SecurityPoliciesWafConfigH\000\210\001\001B \n" + "\036_preconfigured_expression_sets\"\252\001\n" + "\032SecurityPoliciesScopedList\022E\n" + "\021security_policies\030\357\246\367<" @@ -22825,31 +22837,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"r\n" + "\031SecurityPoliciesWafConfig\022G\n" - + "\twaf_rules\030\324\303\333# \001(\0132", - ",.google.cloud.compute.v1.PreconfiguredWafSetH\000\210\001\001B\014\n\n" + + "\twaf_rules\030\324\303\333#" + + " \001(\0132,.google.cloud.compute.v1.PreconfiguredWafSetH\000\210\001\001B\014\n\n" + "_waf_rules\"\257\n\n" + "\016SecurityPolicy\022k\n" - + "\032adaptive_protection_config\030\337\373\321G \001" - + "(\0132?.google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigH\000\210\001\001\022f\n" - + "\027advanced_options_config\030\300\323\235\326\001 \001(\0132<.google.c" - + "loud.compute.v1.SecurityPolicyAdvancedOptionsConfigH\001\210\001\001\022\"\n" + + "\032adaptive_protection_config\030\337\373\321G \001(\0132?.google.clou" + + "d.compute.v1.SecurityPolicyAdaptiveProtectionConfigH\000\210\001\001\022f\n" + + "\027advanced_options_config\030\300\323\235\326\001" + + " \001(\0132<.google.cloud.compute.v1." + + "SecurityPolicyAdvancedOptionsConfigH\001\210\001\001\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\002\210\001\001\022c\n" - + "\026ddos_protection_config\030\315\204\377\027" - + " \001(\0132;.google.cloud.compute.v1.SecurityPolicyDdosProtectionConfigH\003\210\001\001\022\034\n" + + "\026ddos_protection_config\030\315\204\377\027 \001(\0132;.google" + + ".cloud.compute.v1.SecurityPolicyDdosProtectionConfigH\003\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\004\210\001\001\022\033\n" + "\013fingerprint\030\344\321\363o \001(\tH\005\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\006\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\007\210\001\001\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\010\210\001\001\022G\n" - + "\006labels\030\377\277\301\356\001 \003(\01323.google.clo" - + "ud.compute.v1.SecurityPolicy.LabelsEntry\022\024\n" + + "\006labels\030\377\277\301\356\001" + + " \003(\01323.google.cloud.compute.v1.SecurityPolicy.LabelsEntry\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\t\210\001\001\022h\n" - + "\030recaptcha_options_config\030\333\324\275\367\001 \001(\0132=.google.cloud.comp" - + "ute.v1.SecurityPolicyRecaptchaOptionsConfigH\n" + + "\030recaptcha_options_config\030\333\324\275\367\001" + + " \001(\0132=.google.cloud.compute.v1.SecurityPolicyRecaptchaOptionsConfigH\n" + "\210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH\013\210\001\001\022=\n" - + "\005rules\030\367\221\3653" - + " \003(\0132+.google.cloud.compute.v1.SecurityPolicyRule\022\032\n" + + "\005rules\030\367\221\3653 \003(\0132+.goo" + + "gle.cloud.compute.v1.SecurityPolicyRule\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\014\210\001\001\022\024\n" + "\004type\030\272\236\332\001 \001(\tH\r" + "\210\001\001\022W\n" @@ -22878,16 +22891,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\007\n" + "\005_type\"\315\001\n" + "&SecurityPolicyAdaptiveProtectionConfig\022\203\001\n" - + "\032layer7_ddos_defense_config\030\243\331\303\320\001 \001(\0132V" - + ".google.cloud.compute.v1.SecurityPolicyA" - + "daptiveProtectionConfigLayer7DdosDefenseConfigH\000\210\001\001B\035\n" + + "\032layer7_ddos_defense_config\030\243\331\303\320\001 \001(\0132V.google.cloud.co" + + "mpute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigH\000\210\001\001B\035\n" + "\033_layer7_ddos_defense_config\"\363\002\n" + "=SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig\022\027\n" + "\006enable\030\203\313\324\224\001 \001(\010H\000\210\001\001\022 \n" + "\017rule_visibility\030\265\330\220\330\001 \001(\tH\001\210\001\001\022\203\001\n" - + "\021threshold_configs\030\235\253\343\034 \003(\0132e" - + ".google.cloud.compute.v1.SecurityPolicyA" - + "daptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig\"R\n" + + "\021threshold_configs\030\235\253\343\034 \003(\0132e.google.cloud.co" + + "mpute.v1.SecurityPolicyAdaptiveProtectio" + + "nConfigLayer7DdosDefenseConfigThresholdConfig\"R\n" + "\016RuleVisibility\022\035\n" + "\031UNDEFINED_RULE_VISIBILITY\020\000\022\017\n" + "\007PREMIUM\020\267\264\301\276\001\022\020\n" @@ -22906,9 +22918,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\"detection_relative_to_baseline_qps\030\205\233\366\212\001" + " \001(\002H\006\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\007\210\001\001\022\245\001\n" - + "\033traffic_granularity_configs\030\276\264\332( \003(\0132}.google.cloud.compute.v1" - + ".SecurityPolicyAdaptiveProtectionConfigL" - + "ayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfigB#\n" + + "\033traffic_granularity_configs\030\276\264\332( \003(\0132}" + + ".google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefense" + + "ConfigThresholdConfigTrafficGranularityConfigB#\n" + "!_auto_deploy_confidence_thresholdB\035\n" + "\033_auto_deploy_expiration_secB*\n" + "(_auto_deploy_impacted_baseline_thresholdB\035\n" @@ -22917,8 +22929,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031_detection_load_thresholdB%\n" + "#_detection_relative_to_baseline_qpsB\007\n" + "\005_name\"\320\002\n" - + "dSecurityPolicyAdaptiveProtectionConfigLayer7Ddo" - + "sDefenseConfigThresholdConfigTrafficGranularityConfig\022)\n" + + "dSecurityPolicyAdaptiveP" + + "rotectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig\022)\n" + "\030enable_each_unique_value\030\305\212\336\337\001" + " \001(\010H\000\210\001\001\022\024\n" + "\004type\030\272\236\332\001 \001(\tH\001\210\001\001\022\025\n" @@ -22932,9 +22944,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_typeB\010\n" + "\006_value\"\336\003\n" + "#SecurityPolicyAdvancedOptionsConfig\022p\n" - + "\022json_custom_config\030\271\331\2315 \001(\0132L" - + ".google.cloud.compute.v1.SecurityPolicyA" - + "dvancedOptionsConfigJsonCustomConfigH\000\210\001\001\022\035\n" + + "\022json_custom_config\030\271\331\2315 \001(\0132L.google.cloud.co" + + "mpute.v1.SecurityPolicyAdvancedOptionsConfigJsonCustomConfigH\000\210\001\001\022\035\n" + "\014json_parsing\030\331\204\332\206\001 \001(\tH\001\210\001\001\022\031\n" + "\tlog_level\030\311\275\204C \001(\tH\002\210\001\001\022#\n" + "\027user_ip_request_headers\030\262\357\342\310\001 \003(\t\"k\n" @@ -22981,23 +22992,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022SecurityPolicyRule\022\026\n" + "\006action\030\266\374\275Y \001(\tH\000\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022[\n\r" - + "header_action\030\250\240\270\234\001 \001(\0132;.go" - + "ogle.cloud.compute.v1.SecurityPolicyRuleHttpHeaderActionH\002\210\001\001\022\024\n" + + "header_action\030\250\240\270\234\001 \001(\0132;.google.cloud.compu" + + "te.v1.SecurityPolicyRuleHttpHeaderActionH\002\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\003\210\001\001\022I\n" - + "\005match\030\305\263\2671 \001(\01322.google.cloud.com" - + "pute.v1.SecurityPolicyRuleMatcherH\004\210\001\001\022Y\n\r" - + "network_match\030\364\370\372\334\001 \001(\01329.google.cloud" - + ".compute.v1.SecurityPolicyRuleNetworkMatcherH\005\210\001\001\022k\n" - + "\030preconfigured_waf_config\030\343\237\2268" - + " \001(\0132A.google.cloud.compute.v1.Securit" - + "yPolicyRulePreconfiguredWafConfigH\006\210\001\001\022\027\n" + + "\005match\030\305\263\2671" + + " \001(\01322.google.cloud.compute.v1.SecurityPolicyRuleMatcherH\004\210\001\001\022Y\n\r" + + "network_match\030\364\370\372\334\001" + + " \001(\01329.google.cloud.compute.v1.SecurityPolicyRuleNetworkMatcherH\005\210\001\001\022k\n" + + "\030preconfigured_waf_config\030\343\237\2268 \001(\0132A.google." + + "cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigH\006\210\001\001\022\027\n" + "\007preview\030\310\307\243h \001(\010H\007\210\001\001\022\031\n" + "\010priority\030\244\363\241\324\001 \001(\005H\010\210\001\001\022_\n" - + "\022rate_limit_options\030\373\311\232 \001(" - + "\0132;.google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsH" - + "\t\210\001\001\022\\\n" - + "\020redirect_options\030\273\222\356M" - + " \001(\0132:.google.cloud.compute.v1.SecurityPolicyRuleRedirectOptionsH\n" + + "\022rate_limit_options\030\373\311\232 \001(\0132;.google.cloud" + + ".compute.v1.SecurityPolicyRuleRateLimitOptionsH\t\210\001\001\022\\\n" + + "\020redirect_options\030\273\222\356M \001(\013" + + "2:.google.cloud.compute.v1.SecurityPolicyRuleRedirectOptionsH\n" + "\210\001\001B\t\n" + "\007_actionB\016\n" + "\014_descriptionB\020\n" @@ -23011,20 +23020,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023_rate_limit_optionsB\023\n" + "\021_redirect_options\"\225\001\n" + "\"SecurityPolicyRuleHttpHeaderAction\022o\n" - + "\027request_headers_to_adds\030\315\253\372) \003(\0132K.google.cloud.compute." - + "v1.SecurityPolicyRuleHttpHeaderActionHttpHeaderOption\"\220\001\n" + + "\027request_headers_to_adds\030\315\253\372) \003(\013" + + "2K.google.cloud.compute.v1.SecurityPolic" + + "yRuleHttpHeaderActionHttpHeaderOption\"\220\001\n" + "2SecurityPolicyRuleHttpHeaderActionHttpHeaderOption\022\033\n" + "\013header_name\030\375\301\3074 \001(\tH\000\210\001\001\022\034\n" + "\014header_value\030\277\362\353` \001(\tH\001\210\001\001B\016\n" + "\014_header_nameB\017\n\r" + "_header_value\"\233\003\n" + "\031SecurityPolicyRuleMatcher\022P\n" - + "\006config\030\302\206\376y" - + " \001(\01328.google.cloud.compute.v1.SecurityPolicyRuleMatcherConfigH\000\210\001\001\0223\n" + + "\006config\030\302\206\376y \001(\01328.goog" + + "le.cloud.compute.v1.SecurityPolicyRuleMatcherConfigH\000\210\001\001\0223\n" + "\004expr\030\365\363\276\001" + " \001(\0132\035.google.cloud.compute.v1.ExprH\001\210\001\001\022\\\n" - + "\014expr_options\030\324\304\354\347\001 \001(\0132=.google" - + ".cloud.compute.v1.SecurityPolicyRuleMatcherExprOptionsH\002\210\001\001\022\037\n" + + "\014expr_options\030\324\304\354\347\001 \001(\0132=.google.cloud.compute.v" + + "1.SecurityPolicyRuleMatcherExprOptionsH\002\210\001\001\022\037\n" + "\016versioned_expr\030\275\343\326\231\001 \001(\tH\003\210\001\001\"@\n\r" + "VersionedExpr\022\034\n" + "\030UNDEFINED_VERSIONED_EXPR\020\000\022\021\n\n" @@ -23036,8 +23046,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037SecurityPolicyRuleMatcherConfig\022\031\n\r" + "src_ip_ranges\030\323\200\207\316\001 \003(\t\"\257\001\n" + "$SecurityPolicyRuleMatcherExprOptions\022q\n" - + "\021recaptcha_options\030\306\366\307\271\001 \001(\0132M.google.cl" - + "oud.compute.v1.SecurityPolicyRuleMatcherExprOptionsRecaptchaOptionsH\000\210\001\001B\024\n" + + "\021recaptcha_options\030\306\366\307\271\001 \001(\0132M.google.cloud.compute.v1.S" + + "ecurityPolicyRuleMatcherExprOptionsRecaptchaOptionsH\000\210\001\001B\024\n" + "\022_recaptcha_options\"~\n" + "4SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions\022!\n" + "\026action_token_site_keys\030\235\352\311\034 \003(\t\022#\n" @@ -23047,31 +23057,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "dest_ports\030\265\260\223\265\001 \003(\t\022\027\n" + "\014ip_protocols\030\303\217\315{ \003(\t\022\023\n" + "\010src_asns\030\362\275\2278 \003(\r" - + "\022\031\n" - + "\r" + + "\022\031\n\r" + "src_ip_ranges\030\323\200\207\316\001 \003(\t\022\025\n" + "\tsrc_ports\030\367\273\236\324\001 \003(\t\022\033\n" + "\020src_region_codes\030\226\343\237/ \003(\t\022n\n" + "\023user_defined_fields\030\243\211\300\r" - + " \003(\0132N.google.cl" - + "oud.compute.v1.SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch\"i\n" + + " \003(\0132N.google.cloud.compute.v1.S" + + "ecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch\"i\n" + "5SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\000\210\001\001\022\021\n" + "\006values\030\242\272\226w \003(\tB\007\n" + "\005_name\"\215\001\n" + "(SecurityPolicyRulePreconfiguredWafConfig\022a\n\n" - + "exclusions\030\345\370\277c \003(\0132J.google.cloud.compute.v1.SecurityPo" - + "licyRulePreconfiguredWafConfigExclusion\"\202\005\n" + + "exclusions\030\345\370\277c \003(\0132J.google.clo" + + "ud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion\"\202\005\n" + "1SecurityPolicyRulePreconfiguredWafConfigExclusion\022|\n" - + "\032request_cookies_to_exclude\030\366\336\337J \003(\0132U.google.cloud.compute.v1.S" - + "ecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams\022|\n" - + "\032request_headers_to_exclude\030\237\244\223\036 \003(\0132U.google.cloud.comput" - + "e.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams\022\202\001\n" - + "\037request_query_params_to_exclude\030\210\236\272\242\001 \003(\0132U.google" - + ".cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams\022y\n" - + "\027request_uris_to_exclude\030\236\252\237+ \003(\0132U.goo" - + "gle.cloud.compute.v1.SecurityPolicyRuleP" - + "reconfiguredWafConfigExclusionFieldParams\022\033\n" + + "\032request_cookies_to_exclude\030\366\336\337J \003(\0132U.g" + + "oogle.cloud.compute.v1.SecurityPolicyRul" + + "ePreconfiguredWafConfigExclusionFieldParams\022|\n" + + "\032request_headers_to_exclude\030\237\244\223\036 \003" + + "(\0132U.google.cloud.compute.v1.SecurityPol" + + "icyRulePreconfiguredWafConfigExclusionFieldParams\022\202\001\n" + + "\037request_query_params_to_exclude\030\210\236\272\242\001" + + " \003(\0132U.google.cloud.compute.v" + + "1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams\022y\n" + + "\027request_uris_to_exclude\030\236\252\237+ \003(\0132U.google.cloud.comput" + + "e.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams\022\033\n" + "\017target_rule_ids\030\343\343\325\355\001 \003(\t\022 \n" + "\017target_rule_set\030\215\257\326\355\001 \001(\tH\000\210\001\001B\022\n" + "\020_target_rule_set\"\347\001\n" @@ -23089,18 +23100,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004_val\"\232\010\n" + "\"SecurityPolicyRuleRateLimitOptions\022 \n" + "\020ban_duration_sec\030\326\232\272\024 \001(\005H\000\210\001\001\022d\n\r" - + "ban_threshold\030\273\250\377\356\001 \001(\0132D.google.cloud.comput" - + "e.v1.SecurityPolicyRuleRateLimitOptionsThresholdH\001\210\001\001\022\037\n" + + "ban_threshold\030\273\250\377\356\001 \001" + + "(\0132D.google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThresholdH\001\210\001\001\022\037\n" + "\016conform_action\030\317\306\350\366\001 \001(\tH\002\210\001\001\022\037\n" + "\016enforce_on_key\030\374\235\326\306\001 \001(\tH\003\210\001\001\022p\n" - + "\026enforce_on_key_configs\030\256\276\225\020 \003(\0132M.goo" - + "gle.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig\022#\n" + + "\026enforce_on_key_configs\030\256\276\225\020 \003(\0132M.google.cloud.comput" + + "e.v1.SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig\022#\n" + "\023enforce_on_key_name\030\356\303\232? \001(\tH\004\210\001\001\022\035\n\r" + "exceed_action\030\241\312\332O \001(\tH\005\210\001\001\022d\n" - + "\027exceed_redirect_options\030\346\214\355\341\001 \001(\0132:.google.cloud.comput" - + "e.v1.SecurityPolicyRuleRedirectOptionsH\006\210\001\001\022k\n" - + "\024rate_limit_threshold\030\210\277\317\226\001 \001(\0132D." - + "google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThresholdH\007\210\001\001\"\364\001\n" + + "\027exceed_redirect_options\030\346\214\355\341\001 \001" + + "(\0132:.google.cloud.compute.v1.SecurityPolicyRuleRedirectOptionsH\006\210\001\001\022k\n" + + "\024rate_limit_threshold\030\210\277\317\226\001 \001(\0132D.google.cloud.com" + + "pute.v1.SecurityPolicyRuleRateLimitOptionsThresholdH\007\210\001\001\"\364\001\n" + "\014EnforceOnKey\022\034\n" + "\030UNDEFINED_ENFORCE_ON_KEY\020\000\022\t\n" + "\003ALL\020\201\373\003\022\023\n" @@ -23172,8 +23183,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_offsetB\007\n" + "\005_size\"\326\001\n" + "\020SecuritySettings\022O\n" - + "\025aws_v4_authentication\030\227\353\370\316\001 \001(\0132" - + "\'.google.cloud.compute.v1.AWSV4SignatureH\000\210\001\001\022\"\n" + + "\025aws_v4_authentication\030\227\353\370\316\001" + + " \001(\0132\'.google.cloud.compute.v1.AWSV4SignatureH\000\210\001\001\022\"\n" + "\021client_tls_policy\030\352\213\272\334\001 \001(\tH\001\210\001\001\022\035\n" + "\021subject_alt_names\030\337\263\257\235\001 \003(\tB\030\n" + "\026_aws_v4_authenticationB\024\n" @@ -23193,8 +23204,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_kindB\007\n" + "\005_nextB\014\n\n" + "_self_linkB\010\n" - + "\006_start\"\277\001\n" - + "\r" + + "\006_start\"\277\001\n\r" + "ServerBinding\022\024\n" + "\004type\030\272\236\332\001 \001(\tH\000\210\001\001\"\216\001\n" + "\004Type\022\022\n" @@ -23208,11 +23218,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006scopes\030\237\231\222O \003(\tB\010\n" + "\006_email\"\361\n\n" + "\021ServiceAttachment\022[\n" - + "\023connected_endpoints\030\310\227\270\" \003(\0132;.goo" - + "gle.cloud.compute.v1.ServiceAttachmentConnectedEndpoint\022&\n" + + "\023connected_endpoints\030\310\227\270\" \003(\0132;.google.cloud.comput" + + "e.v1.ServiceAttachmentConnectedEndpoint\022&\n" + "\025connection_preference\030\334\371\244\210\001 \001(\tH\000\210\001\001\022a\n" - + "\025consumer_accept_lists\030\307\266\204\300\001" - + " \003(\0132>.google.cloud.compute.v1.ServiceAttachmentConsumerProjectLimit\022 \n" + + "\025consumer_accept_lists\030\307\266\204\300\001 \003(\0132>.goo" + + "gle.cloud.compute.v1.ServiceAttachmentConsumerProjectLimit\022 \n" + "\025consumer_reject_lists\030\236\231\245a \003(\t\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\001\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\027\n" @@ -23221,8 +23231,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013fingerprint\030\344\321\363o \001(\tH\004\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\005\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\006\210\001\001\022M\n" - + "\010metadata\030\257\366\265)" - + " \003(\01328.google.cloud.compute.v1.ServiceAttachment.MetadataEntry\022\024\n" + + "\010metadata\030\257\366\265) \003(\01328.goog" + + "le.cloud.compute.v1.ServiceAttachment.MetadataEntry\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\007\210\001\001\022\027\n" + "\013nat_subnets\030\230\217\333\262\001 \003(\t\022(\n" + "\030producer_forwarding_rule\030\321\250\234v \001(\tH\010\210\001\001\022,\n" @@ -23261,8 +23271,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017_target_service\"\324\003\n" + "\037ServiceAttachmentAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022U\n" - + "\005items\030\300\317\367/" - + " \003(\0132C.google.cloud.compute.v1.ServiceAttachmentAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132C.googl" + + "e.cloud.compute.v1.ServiceAttachmentAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -23271,8 +23281,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032c\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022D\n" - + "\005value\030\002" - + " \001(\01325.google.cloud.compute.v1.ServiceAttachmentsScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\01325.google." + + "cloud.compute.v1.ServiceAttachmentsScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -23321,8 +23331,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\262\001\n" + "\034ServiceAttachmentsScopedList\022K\n" - + "\023service_attachments\030\246\222\272\222\001 \003(\0132*" - + ".google.cloud.compute.v1.ServiceAttachment\0229\n" + + "\023service_attachments\030\246\222\272\222\001" + + " \003(\0132*.google.cloud.compute.v1.ServiceAttachment\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\246\002\n" @@ -23331,8 +23341,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\212\001\n" + "7target_ssl_proxies_set_backend_service_request_resource\030\244\351\250B" - + " \001(\0132A.google.cloud.compute.v1.Targe" - + "tSslProxiesSetBackendServiceRequestB\003\340A\002\022!\n" + + " \001(\0132A.googl" + + "e.cloud.compute.v1.TargetSslProxiesSetBackendServiceRequestB\003\340A\002\022!\n" + "\020target_ssl_proxy\030\315\272\306\241\001 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\247\002\n" + "&SetBackendServiceTargetTcpProxyRequest\022!\n" @@ -23340,8 +23350,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\213\001\n" + "7target_tcp_proxies_set_backend_service_request_resource\030\357\321\302\202\001" - + " \001(\0132A.google.clou" - + "d.compute.v1.TargetTcpProxiesSetBackendServiceRequestB\003\340A\002\022!\n" + + " \001(\0132A.google.cloud.compute.v1.Tar" + + "getTcpProxiesSetBackendServiceRequestB\003\340A\002\022!\n" + "\020target_tcp_proxy\030\342\326\360\357\001 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\261\002\n" + "\032SetBackupTargetPoolRequest\022\036\n" @@ -23351,8 +23361,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\001\210\001\001\022\033\n" + "\013target_pool\030\212\344\370\035 \001(\tB\003\340A\002\022T\n" - + "\031target_reference_resource\030\360\267\335\371\001" - + " \001(\0132(.google.cloud.compute.v1.TargetReferenceB\003\340A\002B\021\n" + + "\031target_reference_resource\030\360\267\335\371\001 \001(\0132" + + "(.google.cloud.compute.v1.TargetReferenceB\003\340A\002B\021\n" + "\017_failover_ratioB\r\n" + "\013_request_id\"\256\002\n" + "(SetCertificateMapTargetHttpsProxyRequest\022!\n" @@ -23360,40 +23370,41 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\217\001\n" + "9target_https_proxies_set_certificate_map_request_resource\030\273\266\376\336\001" - + " \001(\0132C.g" - + "oogle.cloud.compute.v1.TargetHttpsProxiesSetCertificateMapRequestB\003\340A\002\022\"\n" + + " \001(\0132C.google.cloud.comp" + + "ute.v1.TargetHttpsProxiesSetCertificateMapRequestB\003\340A\002\022\"\n" + "\022target_https_proxy\030\354\260\372\030 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\247\002\n" + "&SetCertificateMapTargetSslProxyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" - + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\213\001\n" - + "7target_ssl_proxies_set_certificate_map_request_resource\030\272\226\203\244\001" - + " \001(\0132A.google.cloud.compute" - + ".v1.TargetSslProxiesSetCertificateMapRequestB\003\340A\002\022!\n" + + "request_id\030\313\201", + "\331\021 \001(\tH\000\210\001\001\022\213\001\n" + + "7target_ssl_proxies_set_certificate_map_request_resource\030\272\226\203\244\001 \001(" + + "\0132A.google.cloud.compute.v1.TargetSslProxiesSetCertificateMapRequestB\003\340A\002\022!\n" + "\020target_ssl_proxy\030\315\272\306\241\001 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\352\001\n" + "\037SetCloudArmorTierProjectRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022y\n" - + ".projects_set_cloud_armor_tier_request_resource\030\317\373\336$ \001(\01329.google.c" - + "loud.compute.v1.ProjectsSetCloudArmorTierRequestB\003\340A\002\022\032\n\n" + + ".projects_set_cloud_armor_tier_request_resource\030\317\373\336$" + + " \001(\01329.google.cloud.compute.v1.ProjectsSetCloudArmorTierRequestB\003\340A\002\022\032\n" + + "\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\214\003\n" + "*SetCommonInstanceMetadataOperationMetadata\022$\n" + "\023client_operation_id\030\347\215\336\215\001 \001(\tH\000\210\001\001\022\203\001\n" - + "\027per_location_operations\030\224\321\202\303\001 \003(\0132^.google.cloud.compu" - + "te.v1.SetCommonInstanceMetadataOperationMetadata.PerLocationOperationsEntry\032\231\001\n" + + "\027per_location_operations\030\224\321\202\303\001 " + + "\003(\0132^.google.cloud.compute.v1.SetCommonI" + + "nstanceMetadataOperationMetadata.PerLocationOperationsEntry\032\231\001\n" + "\032PerLocationOperationsEntry\022\013\n" + "\003key\030\001 \001(\t\022j\n" - + "\005value\030\002 \001(\0132[.google.cloud.compute.v1" - + ".SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo:\0028\001B\026\n" + + "\005value\030\002 \001(\0132[.google.cloud.compute.v1.SetCommonInstan" + + "ceMetadataOperationMetadataPerLocationOperationInfo:\0028\001B\026\n" + "\024_client_operation_id\"\262\002\n" + "BSetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo\0226\n" + "\005error\030\210\244\223." + " \001(\0132\037.google.cloud.compute.v1.StatusH\000\210\001\001\022\025\n" - + "\005state\030\221\211\2534 \001(\t", - "H\001\210\001\001\"\210\001\n" + + "\005state\030\221\211\2534 \001(\tH\001\210\001\001\"\210\001\n" + "\005State\022\023\n" + "\017UNDEFINED_STATE\020\000\022\020\n" + "\tABANDONED\020\264\303\200\'\022\013\n" @@ -23405,8 +23416,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_errorB\010\n" + "\006_state\"\276\001\n" + "\'SetCommonInstanceMetadataProjectRequest\022E\n" - + "\021metadata_resource\030\236\276\346\212\001 \001(\0132" - + "!.google.cloud.compute.v1.MetadataB\003\340A\002\022!\n" + + "\021metadata_resource\030\236\276\346\212\001" + + " \001(\0132!.google.cloud.compute.v1.MetadataB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" @@ -23414,9 +23425,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "#SetDefaultNetworkTierProjectRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\201\001\n" - + "2projects_set_default_network_tier_request_resource\030\212\300\243<" - + " \001(\0132=.google.cloud.compute." - + "v1.ProjectsSetDefaultNetworkTierRequestB\003\340A\002\022\032\n\n" + + "2projects_set_default_network_tier_request_resource\030\212\300\243< \001(\013" + + "2=.google.cloud.compute.v1.ProjectsSetDefaultNetworkTierRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\351\001\n" + "$SetDeletionProtectionInstanceRequest\022$\n" @@ -23452,164 +23462,165 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022d\n" - + "\"security_policy_reference_resource\030\360\264\253a \001(" - + "\01320.google.cloud.compute.v1.SecurityPolicyReferenceB\003\340A\002B\r\n" + + "\"security_policy_reference_resource\030\360\264\253a \001(\01320.google.cloud" + + ".compute.v1.SecurityPolicyReferenceB\003\340A\002B\r\n" + "\013_request_id\"\273\001\n" + " SetIamPolicyBackendBucketRequest\022d\n" - + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001(\0132/.g" - + "oogle.cloud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + + "\"global_set_policy_request_resource\030\262\347\333\240\001" + + " \001(\0132/.google.cloud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\274\001\n" + "!SetIamPolicyBackendServiceRequest\022d\n" - + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001(\0132/.google.clo" - + "ud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + + "\"global_set_policy_request_resource\030\262\347\333\240\001" + + " \001(\0132/.google.cloud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\304\001\n" + "\027SetIamPolicyDiskRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022\024\n" + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\022`\n" - + " zone_set_policy_request_resource\030\273\270\230\266\001 \001(\0132" - + "-.google.cloud.compute.v1.ZoneSetPolicyRequestB\003\340A\002\"\273\001\n" + + " zone_set_policy_request_resource\030\273\270\230\266\001" + + " \001(\0132-.google.cloud.compute.v1.ZoneSetPolicyRequestB\003\340A\002\"\273\001\n" + "!SetIamPolicyFirewallPolicyRequest\022|\n" - + "/global_organization_set_policy_request_resource\030\336\224\314T \001(\0132;.google.c" - + "loud.compute.v1.GlobalOrganizationSetPolicyRequestB\003\340A\002\022\030\n" + + "/global_organization_set_policy_request_resource\030\336\224\314T" + + " \001(\0132;.google.cloud.compute.v1." + + "GlobalOrganizationSetPolicyRequestB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\263\001\n" + "\030SetIamPolicyImageRequest\022d\n" - + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001(\0132/" - + ".google.cloud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + + "\"global_set_policy_request_resource\030\262\347\333\240\001" + + " \001(\0132/.google.cloud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\310\001\n" + "\033SetIamPolicyInstanceRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022\024\n" + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\022`\n" - + " zone_set_policy_request_resource\030\273\270\230\266\001" - + " \001(\0132-.google.cloud.compute.v1.ZoneSetPolicyRequestB\003\340A\002\"\276\001\n" + + " zone_set_policy_request_resource\030\273\270\230\266\001 \001(\0132-" + + ".google.cloud.compute.v1.ZoneSetPolicyRequestB\003\340A\002\"\276\001\n" + "#SetIamPolicyInstanceTemplateRequest\022d\n" - + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001(\0132/.goo" - + "gle.cloud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + + "\"global_set_policy_request_resource\030\262\347\333\240\001" + + " \001(\0132/.google.cloud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\317\001\n" + "\"SetIamPolicyInstantSnapshotRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022\024\n" + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\022`\n" - + " zone_set_policy_request_resource\030\273\270\230\266\001" - + " \001(\0132-.google.cloud.compute.v1.ZoneSetPolicyRequestB\003\340A\002\"\311\001\n" + + " zone_set_policy_request_resource\030\273\270\230\266\001 \001(" + + "\0132-.google.cloud.compute.v1.ZoneSetPolicyRequestB\003\340A\002\"\311\001\n" + ".SetIamPolicyInterconnectAttachmentGroupRequest\022d\n" - + "\"global_set_policy_request_resource\030\262\347\333\240\001" - + " \001(\0132/.google.cloud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001(\0132/.googl" + + "e.cloud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\277\001\n" + "$SetIamPolicyInterconnectGroupRequest\022d\n" - + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001" - + "(\0132/.google.cloud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001(\0132/.google.clou" + + "d.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\265\001\n" + "\032SetIamPolicyLicenseRequest\022d\n" - + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001(\0132/.google.clou" - + "d.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + + "\"global_set_policy_request_resource\030\262\347\333\240\001" + + " \001(\0132/.google.cloud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\272\001\n" + "\037SetIamPolicyMachineImageRequest\022d\n" - + "\"global_set_policy_request_resource\030\262\347\333\240\001" - + " \001(\0132/.google.cloud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001(\0132" + + "/.google.cloud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\327\001\n" + "$SetIamPolicyNetworkAttachmentRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022d\n" - + "\"region_set_policy_request_resource\030\203\307\353\203\001" - + " \001(\0132/.google.cloud.compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" + + "\"region_set_policy_request_resource\030\203\307\353\203\001 \001" + + "(\0132/.google.cloud.compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\303\001\n" + "(SetIamPolicyNetworkFirewallPolicyRequest\022d\n" - + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001(\0132/.google" - + ".cloud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + + "\"global_set_policy_request_resource\030\262\347\333\240\001" + + " \001(\0132/.google.cloud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\311\001\n" + "\034SetIamPolicyNodeGroupRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022\024\n" + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\022`\n" - + " zone_set_policy_request_resource\030\273\270\230\266\001" - + " \001(\0132-.google.cloud.compute.v1.ZoneSetPolicyRequestB\003\340A\002\"\322\001\n" + + " zone_set_policy_request_resource\030\273\270\230\266\001 \001(\0132-.googl" + + "e.cloud.compute.v1.ZoneSetPolicyRequestB\003\340A\002\"\322\001\n" + "\037SetIamPolicyNodeTemplateRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022d\n" - + "\"region_set_policy_request_resource\030\203\307\353\203\001 \001(\0132/.goog" - + "le.cloud.compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" + + "\"region_set_policy_request_resource\030\203\307\353\203\001" + + " \001(\0132/.google.cloud.compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\332\001\n" + "\'SetIamPolicyRegionBackendServiceRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022d\n" - + "\"region_set_policy_request_resource\030\203\307\353\203\001" - + " \001(\0132/.google.cloud.compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" + + "\"region_set_policy_request_resource\030\203\307\353\203\001 \001(\0132/" + + ".google.cloud.compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\320\001\n" + "\035SetIamPolicyRegionDiskRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022d\n" - + "\"region_set_policy_request_resource\030\203\307\353\203\001 \001(\0132/.google.cloud" - + ".compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" + + "\"region_set_policy_request_resource\030\203\307\353\203\001" + + " \001(\0132/.google.cloud.compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\333\001\n" + "(SetIamPolicyRegionInstantSnapshotRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022d\n" - + "\"region_set_policy_request_resource\030\203\307\353\203\001" - + " \001(\0132/.google.cloud.compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" + + "\"region_set_policy_request_resource\030\203\307\353\203\001 \001(\0132/.google" + + ".cloud.compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\341\001\n" + ".SetIamPolicyRegionNetworkFirewallPolicyRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022d\n" - + "\"region_set_policy_request_resource\030\203\307\353\203\001 \001(\0132/.go" - + "ogle.cloud.compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" + + "\"region_set_policy_request_resource\030\203\307\353\203\001" + + " \001(\0132/.google.cloud.compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\313\001\n" + "\036SetIamPolicyReservationRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022\024\n" + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\022`\n" - + " zone_set_policy_request_resource\030\273\270\230\266\001 \001(\0132-.google.c" - + "loud.compute.v1.ZoneSetPolicyRequestB\003\340A\002\"\324\001\n" + + " zone_set_policy_request_resource\030\273\270\230\266\001" + + " \001(\0132-.google.cloud.compute.v1.ZoneSetPolicyRequestB\003\340A\002\"\324\001\n" + "!SetIamPolicyResourcePolicyRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022d\n" - + "\"region_set_policy_request_resource\030\203\307\353\203\001" - + " \001(\0132/.google.cloud.compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" + + "\"region_set_policy_request_resource\030\203\307\353\203\001 \001(\013" + + "2/.google.cloud.compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\327\001\n" + "$SetIamPolicyServiceAttachmentRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022d\n" - + "\"region_set_policy_request_resource\030\203\307\353\203\001 \001(\0132/.goo" - + "gle.cloud.compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" + + "\"region_set_policy_request_resource\030\203\307\353\203\001" + + " \001(\0132/.google.cloud.compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\266\001\n" + "\033SetIamPolicySnapshotRequest\022d\n" - + "\"global_set_policy_request_resource\030\262\347\333\240\001 \001(\0132/.goo" - + "gle.cloud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + + "\"global_set_policy_request_resource\030\262\347\333\240\001" + + " \001(\0132/.google.cloud.compute.v1.GlobalSetPolicyRequestB\003\340A\002\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\313\001\n" + "\036SetIamPolicyStoragePoolRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022\024\n" + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\022`\n" - + " zone_set_policy_request_resource\030\273\270\230\266\001" - + " \001(\0132-.google.cloud.compute.v1.ZoneSetPolicyRequestB\003\340A\002\"\320\001\n" + + " zone_set_policy_request_resource\030\273\270\230\266\001 \001(\0132-." + + "google.cloud.compute.v1.ZoneSetPolicyRequestB\003\340A\002\"\320\001\n" + "\035SetIamPolicySubnetworkRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022d\n" - + "\"region_set_policy_request_resource\030\203\307\353\203\001 \001(\0132/.g" - + "oogle.cloud.compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" + + "\"region_set_policy_request_resource\030\203\307\353\203\001" + + " \001(\0132/.google.cloud.compute.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\"\336\002\n" + ".SetInstanceTemplateInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\230\001\n" - + ">instance_group_managers_set_instance_template_request_resource\030\305\331\326\004 " - + "\001(\0132H.google.cloud.compute.v1.InstanceGr" - + "oupManagersSetInstanceTemplateRequestB\003\340A\002\022!\n" + + ">instance_group_managers_set_instance_template_request_resource\030\305\331\326\004" + + " \001(\0132H.google.clo" + + "ud.compute.v1.InstanceGroupManagersSetInstanceTemplateRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" - + "\340A\002\362G\007project\022\032\n" - + "\n" + + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" - + "\340A\002\362G\004zoneB\r\n" + + "\340A\002\362G\004zoneB\r" + + "\n" + "\013_request_id\"\344\002\n" + "4SetInstanceTemplateRegionInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022!\n" @@ -23617,16 +23628,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\224\001\n" + ".google.cloud.com" - + "pute.v1.TargetSslProxiesSetProxyHeaderRequestB\003\340A\002\022!\n" + + " \001(\0132>.google.cloud.compute.v1.TargetSslProxiesSetProxyHeaderRequestB\003\340A\002\022!\n" + "\020target_ssl_proxy\030\315\272\306\241\001 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\235\002\n" + "#SetProxyHeaderTargetTcpProxyRequest\022!\n" @@ -23887,26 +23896,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\204\001\n" + "4target_tcp_proxies_set_proxy_header_request_resource\030\303\230\361h" - + " \001(\0132>.google.c" - + "loud.compute.v1.TargetTcpProxiesSetProxyHeaderRequestB\003\340A\002\022!\n" + + " \001(\0132>.google.cloud.compute.v1." + + "TargetTcpProxiesSetProxyHeaderRequestB\003\340A\002\022!\n" + "\020target_tcp_proxy\030\342\326\360\357\001 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\247\002\n" + "&SetQuicOverrideTargetHttpsProxyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\212\001\n" - + "7target_https_proxies_set_quic_override_request_resource\030\342\365\343\" " - + "\001(\0132A.google.cloud.compute.v1.TargetHttpsProxiesSetQuicOverrideRequestB\003\340A\002\022\"\n" + + "7target_https_proxies_set_quic_override_request_resource\030\342\365\343\"" + + " \001(\0132A.google.clo" + + "ud.compute.v1.TargetHttpsProxiesSetQuicOverrideRequestB\003\340A\002\022\"\n" + "\022target_https_proxy\030\354\260\372\030 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\356\001\n" + "\034SetSchedulingInstanceRequest\022\030\n" + "\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022!\n" - + "\007project\030\231\226\301", - "l \001(\tB\r" + + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022I\n" - + "\023scheduling_resource\030\331\254\356\334\001 \001(" - + "\0132#.google.cloud.compute.v1.SchedulingB\003\340A\002\022\033\n" + + "\023scheduling_resource\030\331\254\356\334\001" + + " \001(\0132#.google.cloud.compute.v1.SchedulingB\003\340A\002\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\376\001\n" @@ -23915,14 +23924,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022d\n" - + "\"security_policy_reference_resource\030\360\264\253a \001(\01320.goo" - + "gle.cloud.compute.v1.SecurityPolicyReferenceB\003\340A\002B\r\n" + + "\"security_policy_reference_resource\030\360\264\253a" + + " \001(\01320.google.cloud.compute.v1.SecurityPolicyReferenceB\003\340A\002B\r\n" + "\013_request_id\"\243\002\n" + " SetSecurityPolicyInstanceRequest\022\030\n" + "\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022z\n" + ".instances_set_security_policy_request_resource\030\212\321\272v" - + " \001(\0132:.google.clou" - + "d.compute.v1.InstancesSetSecurityPolicyRequestB\003\340A\002\022!\n" + + " \001(\0132:.google.cloud.compute.v1.InstancesSetSecurityPolicyRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -23935,15 +23943,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022d\n" - + "\"security_policy_reference_resource\030\360\264\253a \001(\01320.google.cloud." - + "compute.v1.SecurityPolicyReferenceB\003\340A\002B\r\n" + + "\"security_policy_reference_resource\030\360\264\253a" + + " \001(\01320.google.cloud.compute.v1.SecurityPolicyReferenceB\003\340A\002B\r\n" + "\013_request_id\"\233\002\n" + "&SetSecurityPolicyTargetInstanceRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022d\n" - + "\"security_policy_reference_resource\030\360\264\253a" - + " \001(\01320.google.cloud.compute.v1.SecurityPolicyReferenceB\003\340A\002\022 \n" + + "\"security_policy_reference_resource\030\360\264\253a \001(\01320.google" + + ".cloud.compute.v1.SecurityPolicyReferenceB\003\340A\002\022 \n" + "\017target_instance\030\203\217\226\212\001 \001(\tB\003\340A\002\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\r\n" @@ -23953,15 +23961,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022d\n" - + "\"security_policy_reference_resource\030\360\264\253a \001" - + "(\01320.google.cloud.compute.v1.SecurityPolicyReferenceB\003\340A\002\022\033\n" + + "\"security_policy_reference_resource\030\360\264\253a \001(\01320.google.clou" + + "d.compute.v1.SecurityPolicyReferenceB\003\340A\002\022\033\n" + "\013target_pool\030\212\344\370\035 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\244\002\n" + " SetServiceAccountInstanceRequest\022\030\n" + "\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022{\n" + ".instances_set_service_account_request_resource\030\270\236\262\203\001" - + " \001(\0132:.google.cloud." - + "compute.v1.InstancesSetServiceAccountRequestB\003\340A\002\022!\n" + + " \001(\0132:.google.cloud.compute.v1.InstancesSetServiceAccountRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -23973,8 +23980,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022v\n" - + "+shielded_instance_integrity_policy_resource\030\266\334\215\303\001 \001(\01328.g" - + "oogle.cloud.compute.v1.ShieldedInstanceIntegrityPolicyB\003\340A\002\022\033\n" + + "+shielded_instance_integrity_policy_resource\030\266\334\215\303\001" + + " \001(\01328.google.cloud.comp" + + "ute.v1.ShieldedInstanceIntegrityPolicyB\003\340A\002\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\345\002\n" @@ -23982,10 +23990,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\236\001\n" - + "Aregion_targe" - + "t_https_proxies_set_ssl_certificates_request_resource\030\207\204\246\272\001" - + " \001(\0132J.google.cloud.c" - + "ompute.v1.RegionTargetHttpsProxiesSetSslCertificatesRequestB\003\340A\002\022\032\n\n" + + "Aregion_target_https_proxies_" + + "set_ssl_certificates_request_resource\030\207\204\246\272\001" + + " \001(\0132J.google.cloud.compute.v1.Region" + + "TargetHttpsProxiesSetSslCertificatesRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\"\n" + "\022target_https_proxy\030\354\260\372\030 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\260\002\n" @@ -23994,8 +24002,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\220\001\n" + ":target_https_proxies_set_ssl_certificates_request_resource\030\334\253\262j" - + " \001(\0132D.google.cloud.compute.v1.TargetHtt" - + "psProxiesSetSslCertificatesRequestB\003\340A\002\022\"\n" + + " \001(\0132D.google.cl" + + "oud.compute.v1.TargetHttpsProxiesSetSslCertificatesRequestB\003\340A\002\022\"\n" + "\022target_https_proxy\030\354\260\372\030 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\251\002\n" + "\'SetSslCertificatesTargetSslProxyRequest\022!\n" @@ -24003,24 +24011,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\214\001\n" + "8target_ssl_proxies_set_ssl_certificates_request_resource\030\275\313\305F" - + " \001(\0132B.google.clo" - + "ud.compute.v1.TargetSslProxiesSetSslCertificatesRequestB\003\340A\002\022!\n" + + " \001(\0132B.google.cloud.compute.v1.Ta" + + "rgetSslProxiesSetSslCertificatesRequestB\003\340A\002\022!\n" + "\020target_ssl_proxy\030\315\272\306\241\001 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\363\001\n" + "#SetSslPolicyTargetHttpsProxyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022Z\n" - + "\035ssl_policy_reference_resource\030\274\364\237p" - + " \001(\0132+.google.cloud.compute.v1.SslPolicyReferenceB\003\340A\002\022\"\n" + + "\035ssl_policy_reference_resource\030\274\364\237p \001(\0132" + + "+.google.cloud.compute.v1.SslPolicyReferenceB\003\340A\002\022\"\n" + "\022target_https_proxy\030\354\260\372\030 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\360\001\n" + "!SetSslPolicyTargetSslProxyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022Z\n" - + "\035ssl_policy_reference_resource\030\274\364\237p" - + " \001(\0132+.google.cloud.compute.v1.SslPolicyReferenceB\003\340A\002\022!\n" + + "\035ssl_policy_reference_resource\030\274\364\237p " + + "\001(\0132+.google.cloud.compute.v1.SslPolicyReferenceB\003\340A\002\022!\n" + "\020target_ssl_proxy\030\315\272\306\241\001 \001(\tB\003\340A\002B\r\n" + "\013_request_id\"\334\001\n" + "\026SetTagsInstanceRequest\022\030\n" @@ -24053,8 +24061,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ")SetTargetPoolsInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\217\001\n" + "9instance_group_managers_set_target_pools_request_resource\030\210\206\210\206\001" - + " \001(\0132C.google.cloud.compute.v1.Instance" - + "GroupManagersSetTargetPoolsRequestB\003\340A\002\022!\n" + + " \001(\0132C.google.c" + + "loud.compute.v1.InstanceGroupManagersSetTargetPoolsRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -24067,8 +24075,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\233\001\n" + "@region_instance_group_managers_set_target_pools_request_resource\030\375\312\305%" - + " \001(\0132I.google.cloud." - + "compute.v1.RegionInstanceGroupManagersSetTargetPoolsRequestB\003\340A\002\022\032\n\n" + + " \001(\0132I.google.cloud.compute.v1.Regio" + + "nInstanceGroupManagersSetTargetPoolsRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\220\002\n" + "%SetUrlMapRegionTargetHttpProxyRequest\022!\n" @@ -24077,25 +24085,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022!\n" + "\021target_http_proxy\030\345\276\322b \001(\tB\003\340A\002\022U\n" - + "\032url_map_reference_resource\030\225\346\216\276\001 \001(\013" - + "2(.google.cloud.compute.v1.UrlMapReferenceB\003\340A\002B\r\n" + + "\032url_map_reference_resource\030\225\346\216\276\001" + + " \001(\0132(.google.cloud.compute.v1.UrlMapReferenceB\003\340A\002B\r\n" + "\013_request_id\"\222\002\n" + "&SetUrlMapRegionTargetHttpsProxyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" - + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n" + + "\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\"\n" + "\022target_https_proxy\030\354\260\372\030 \001(\tB\003\340A\002\022U\n" - + "\032url_map_reference_resource\030\225\346\216\276\001 \001(\0132(." - + "google.cloud.compute.v1.UrlMapReferenceB\003\340A\002B\r\n" + + "\032url_map_reference_resource\030\225\346\216\276\001" + + " \001(\0132(.google.cloud.compute.v1.UrlMapReferenceB\003\340A\002B\r\n" + "\013_request_id\"\351\001\n" + "\037SetUrlMapTargetHttpProxyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022!\n" + "\021target_http_proxy\030\345\276\322b \001(\tB\003\340A\002\022U\n" - + "\032url_map_reference_resource\030\225\346\216\276\001 \001(\0132(.goog" - + "le.cloud.compute.v1.UrlMapReferenceB\003\340A\002B\r\n" + + "\032url_map_reference_resource\030\225\346\216\276\001" + + " \001(\0132(.google.cloud.compute.v1.UrlMapReferenceB\003\340A\002B\r\n" + "\013_request_id\"\353\001\n" + " SetUrlMapTargetHttpsProxyRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" @@ -24103,24 +24112,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\"\n" + "\022target_https_proxy\030\354\260\372\030 \001(\tB\003\340A\002\022U\n" + "\032url_map_reference_resource\030\225\346\216\276\001" - + " \001(\0132(.google.cloud.compute.v1.UrlMapReferenceB\003\340A\002B\r" - + "\n" + + " \001(\0132(.google.cloud.compute.v1.UrlMapReferenceB\003\340A\002B\r\n" + "\013_request_id\"\320\001\n" + "\"SetUsageExportBucketProjectRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\\\n" - + "\036usage_export_location_resource\030\353\314\324\t \001(\0132," - + ".google.cloud.compute.v1.UsageExportLocationB\003\340A\002B\r\n" + + "\036usage_export_location_resource\030\353\314\324\t" + + " \001(\0132,.google.cloud.compute.v1.UsageExportLocationB\003\340A\002B\r\n" + "\013_request_id\"\372\002\n\r" + "ShareSettings\022N\n" - + "\013project_map\030\266\326\377? \003(\01326.google.clou" - + "d.compute.v1.ShareSettings.ProjectMapEntry\022\033\n\n" + + "\013project_map\030\266\326\377?" + + " \003(\01326.google.cloud.compute.v1.ShareSettings.ProjectMapEntry\022\033\n\n" + "share_type\030\232\227\270\253\001 \001(\tH\000\210\001\001\032f\n" + "\017ProjectMapEntry\022\013\n" + "\003key\030\001 \001(\t\022B\n" - + "\005value\030\002 \001(\01323" - + ".google.cloud.compute.v1.ShareSettingsProjectConfig:\0028\001\"\204\001\n" + + "\005value\030\002 \001(\01323.google.cloud.co" + + "mpute.v1.ShareSettingsProjectConfig:\0028\001\"\204\001\n" + "\tShareType\022\030\n" + "\024UNDEFINED_SHARE_TYPE\020\000\022\014\n" + "\005LOCAL\020\313\316\317\"\022\024\n" @@ -24140,11 +24148,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023_enable_secure_bootB\016\n" + "\014_enable_vtpm\"\213\002\n" + "\030ShieldedInstanceIdentity\022W\n" - + "\016encryption_key\030\243\307\351\350\001 \001(\01326.google.cloud." - + "compute.v1.ShieldedInstanceIdentityEntryH\000\210\001\001\022\024\n" + + "\016encryption_key\030\243\307\351\350\001" + + " \001(\01326.google.cloud.compute.v1.ShieldedInstanceIdentityEntryH\000\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022T\n" - + "\013signing_key\030\245\220\205\231\001" - + " \001(\01326.google.cloud.compute.v1.ShieldedInstanceIdentityEntryH\002\210\001\001B\021\n" + + "\013signing_key\030\245\220\205\231\001 \001(\01326.g" + + "oogle.cloud.compute.v1.ShieldedInstanceIdentityEntryH\002\210\001\001B\021\n" + "\017_encryption_keyB\007\n" + "\005_kindB\016\n" + "\014_signing_key\"i\n" @@ -24164,7 +24172,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\'SimulateMaintenanceEventInstanceRequest\022\030\n" + "\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" - + "\340A\002\362G\007project\022\032\n\n" + + "\340A\002\362G\007project\022\032\n" + + "\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022,\n" + "\033with_extended_notifications\030\373\327\311\301\001" + " \001(\010H\001\210\001\001\022\033\n" @@ -24175,8 +24184,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "(SimulateMaintenanceEventNodeGroupRequest\022\033\n\n" + "node_group\030\202\374\213\340\001 \001(\tB\003\340A\002\022\214\001\n" + "7node_groups_simulate_maintenance_event_request_resource\030\334\371\313\247\001" - + " \001(\0132B.google.clo" - + "ud.compute.v1.NodeGroupsSimulateMaintenanceEventRequestB\003\340A\002\022!\n" + + " \001(\0132B.google.cloud.compute.v1.No" + + "deGroupsSimulateMaintenanceEventRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -24200,22 +24209,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\013\210\001\001\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\014\210\001\001\022A\n" - + "\006labels\030\377\277\301\356\001 \003(\0132-" - + ".google.cloud.compute.v1.Snapshot.LabelsEntry\022\030\n\r" + + "\006labels\030\377\277\301\356\001" + + " \003(\0132-.google.cloud.compute.v1.Snapshot.LabelsEntry\022\030\n\r" + "license_codes\030\250\205\330\025 \003(\003\022\024\n" - + "\010licenses\030\322\210\200\241\001 \003(\t\022\036\n\r" + + "\010licenses\030\322\210\200\241\001 \003(\t\022\036\n" + + "\r" + "location_hint\030\321\201\222\247\001 \001(\tH\r" + "\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\016\210\001\001\022\036\n\r" + "satisfies_pzi\030\241\335\253\345\001 \001(\010H\017\210\001\001\022\036\n\r" + "satisfies_pzs\030\253\335\253\345\001 \001(\010H\020\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\021\210\001\001\022W\n" - + "\027snapshot_encryption_key\030\376\366\324\024 \001(\0132..go" - + "ogle.cloud.compute.v1.CustomerEncryptionKeyH\022\210\001\001\022\035\n\r" + + "\027snapshot_encryption_key\030\376\366\324\024" + + " \001(\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\022\210\001\001\022\035\n\r" + "snapshot_type\030\325\331\245; \001(\tH\023\210\001\001\022\034\n" + "\013source_disk\030\301\356\264\327\001 \001(\tH\024\210\001\001\022[\n" - + "\032source_disk_encryption_key\030\341\240\270\375\001 \001(\0132..google.c" - + "loud.compute.v1.CustomerEncryptionKeyH\025\210\001\001\0224\n" + + "\032source_disk_encryption_key\030\341\240\270\375\001" + + " \001(\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\025\210\001\001\0224\n" + "#source_disk_for_recovery_checkpoint\030\376\341\312\253\001 \001(" + "\tH\026\210\001\001\022\037\n" + "\016source_disk_id\030\331\315\311\330\001 \001(\tH\027\210\001\001\022\'\n" @@ -24299,17 +24309,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\214\001\n" + "\020SnapshotSettings\022c\n" - + "\020storage_location\030\371\321\340\333\001 \001(\0132@.google." - + "cloud.compute.v1.SnapshotSettingsStorageLocationSettingsH\000\210\001\001B\023\n" + + "\020storage_location\030\371\321\340\333\001 \001(\0132@.google.cloud.compute.v1" + + ".SnapshotSettingsStorageLocationSettingsH\000\210\001\001B\023\n" + "\021_storage_location\"\336\003\n" + "\'SnapshotSettingsStorageLocationSettings\022f\n" - + "\tlocations\030\336\256\221\305\001 \003(\0132O.google.c" - + "loud.compute.v1.SnapshotSettingsStorageLocationSettings.LocationsEntry\022\026\n" + + "\tlocations\030\336\256\221\305\001 \003(\0132O.google.cloud.compute.v1." + + "SnapshotSettingsStorageLocationSettings.LocationsEntry\022\026\n" + "\006policy\030\262\312\266+ \001(\tH\000\210\001\001\032\213\001\n" + "\016LocationsEntry\022\013\n" + "\003key\030\001 \001(\t\022h\n" - + "\005value\030\002 \001(\0132Y.google.cloud.com" - + "pute.v1.SnapshotSettingsStorageLocationSettingsStorageLocationPreference:\0028\001\"\231\001\n" + + "\005value\030\002 \001(\0132Y.google.cloud.compute.v1.Snapshot" + + "SettingsStorageLocationSettingsStorageLocationPreference:\0028\001\"\231\001\n" + "\006Policy\022\024\n" + "\020UNDEFINED_POLICY\020\000\022\024\n" + "\014LOCAL_REGION\020\350\354\265\300\001\022\033\n" @@ -24321,33 +24331,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\213\365\315\001 \001(\tH\000\210\001\001B\007\n" + "\005_name\"\265\001\n" + "\027SourceDiskEncryptionKey\022T\n" - + "\023disk_encryption_key\030\205\355\304\201\001 " - + "\001(\0132..google.cloud.compute.v1.CustomerEncryptionKeyH\000\210\001\001\022\034\n" + + "\023disk_encryption_key\030\205\355\304\201\001 \001(\0132..google.clo" + + "ud.compute.v1.CustomerEncryptionKeyH\000\210\001\001\022\034\n" + "\013source_disk\030\301\356\264\327\001 \001(\tH\001\210\001\001B\026\n" + "\024_disk_encryption_keyB\016\n" + "\014_source_disk\"a\n" + "\024SourceInstanceParams\022I\n" - + "\014disk_configs\030\317\331\252p" - + " \003(\01320.google.cloud.compute.v1.DiskInstantiationConfig\"\361\010\n" + + "\014disk_configs\030\317\331\252p \003(\0132" + + "0.google.cloud.compute.v1.DiskInstantiationConfig\"\361\010\n" + "\030SourceInstanceProperties\022\037\n" + "\016can_ip_forward\030\374\206\204\337\001 \001(\010H\000\210\001\001\022$\n" + "\023deletion_protection\030\352\377\262\332\001 \001(\010H\001\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022<\n" - + "\005disks\030\366\314\312-" - + " \003(\0132*.google.cloud.compute.v1.SavedAttachedDisk\022J\n" + + "\005disks\030\366\314\312- \003(\0132*." + + "google.cloud.compute.v1.SavedAttachedDisk\022J\n" + "\022guest_accelerators\030\357\314\207\335\001" + " \003(\0132*.google.cloud.compute.v1.AcceleratorConfig\022*\n" + "\032key_revocation_action_type\030\342\334\300p \001(\tH\003\210\001\001\022Q\n" - + "\006labels\030\377\277\301\356\001 \003(\0132=." - + "google.cloud.compute.v1.SourceInstanceProperties.LabelsEntry\022\034\n" + + "\006labels\030\377\277\301\356\001 \003(\0132=.google.cloud.com" + + "pute.v1.SourceInstanceProperties.LabelsEntry\022\034\n" + "\014machine_type\030\262\260\312l \001(\tH\004\210\001\001\022;\n" + "\010metadata\030\257\366\265)" + " \001(\0132!.google.cloud.compute.v1.MetadataH\005\210\001\001\022 \n" + "\020min_cpu_platform\030\367\233\352s \001(\tH\006\210\001\001\022H\n" - + "\022network_interfaces\030\213\332\222\031" - + " \003(\0132).google.cloud.compute.v1.NetworkInterface\022@\n\n" - + "scheduling\030\224\313\261\270\001 " - + "\001(\0132#.google.cloud.compute.v1.SchedulingH\007\210\001\001\022E\n" + + "\022network_interfaces\030\213\332\222\031 \003(\013" + + "2).google.cloud.compute.v1.NetworkInterface\022@\n\n" + + "scheduling\030\224\313\261\270\001" + + " \001(\0132#.google.cloud.compute.v1.SchedulingH\007\210\001\001\022E\n" + "\020service_accounts\030\260\304\253\204\001" + " \003(\0132\'.google.cloud.compute.v1.ServiceAccount\0223\n" + "\004tags\030\231\350\330\001" @@ -24376,15 +24386,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013expire_time\030\355\323\221\322\001 \001(\tH\003\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\004\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\005\210\001\001\022V\n" - + "\007managed\030\237\237\244\216\001 \001(\0132<.google.cloud.compute.v1.Ss" - + "lCertificateManagedSslCertificateH\006\210\001\001\022\024\n" + + "\007managed\030\237\237\244\216\001 \001(\0132<.go" + + "ogle.cloud.compute.v1.SslCertificateManagedSslCertificateH\006\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\007\210\001\001\022\034\n" + "\013private_key\030\243\363\245\254\001 \001(\tH\010\210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH\t\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\n" + "\210\001\001\022_\n" - + "\014self_managed\030\254\363\201\235\001 \001(\0132@.google.cloud.compute.v1.SslCe" - + "rtificateSelfManagedSslCertificateH\013\210\001\001\022%\n" + + "\014self_managed\030\254\363\201\235\001 \001(\0132@.googl" + + "e.cloud.compute.v1.SslCertificateSelfManagedSslCertificateH\013\210\001\001\022%\n" + "\031subject_alternative_names\030\343\357\223\374\001 \003(\t\022\024\n" + "\004type\030\272\236\332\001 \001(\tH\014\210\001\001\"[\n" + "\004Type\022\022\n" @@ -24407,8 +24417,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_type\"\313\003\n" + "\034SslCertificateAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022R\n" - + "\005items\030\300\317\367/ \003(\0132@." - + "google.cloud.compute.v1.SslCertificateAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132@.google.cloud.com" + + "pute.v1.SslCertificateAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -24417,8 +24427,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032`\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022A\n" - + "\005value\030\002 \001(\01322.googl" - + "e.cloud.compute.v1.SslCertificatesScopedList:\0028\001B\005\n" + + "\005value\030\002" + + " \001(\01322.google.cloud.compute.v1.SslCertificatesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -24439,13 +24449,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\320\003\n" + "#SslCertificateManagedSslCertificate\022i\n\r" - + "domain_status\030\315\247\347\253\001 \003(\0132N.google.cloud.compute.v1.SslCertifica" - + "teManagedSslCertificate.DomainStatusEntry\022\022\n" + + "domain_status\030\315\247\347\253\001 \003(\0132N.google.cloud" + + ".compute.v1.SslCertificateManagedSslCertificate.DomainStatusEntry\022\022\n" + "\007domains\030\257\210\233l \003(\t\022\026\n" + "\006status\030\362\237\267V \001(\tH\000\210\001\001\0323\n" + "\021DomainStatusEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\"\321\001\n" + + "\005value\030\002 \001(\t:\002", + "8\001\"\321\001\n" + "\006Status\022\024\n" + "\020UNDEFINED_STATUS\020\000\022\016\n" + "\006ACTIVE\020\206\346\211\226\001\022.\n" @@ -24461,16 +24472,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_certificateB\016\n" + "\014_private_key\"\251\001\n" + "\031SslCertificatesScopedList\022E\n" - + "\020ssl_certificates\030\217\242\303\256\001 \003(\0132\'." - + "google.cloud.compute.v1.SslCertificate\0229\n" + + "\020ssl_certificates\030\217\242\303\256\001" + + " \003(\0132\'.google.cloud.compute.v1.SslCertificate\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\340\003\n" + "\031SslPoliciesAggregatedList\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\tH\001\210\001\001\022O\n" - + "\005items\030\300\317\367/ \003(\0132=." - + "google.cloud.compute.v1.SslPoliciesAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132=.google.cloud.com" + + "pute.v1.SslPoliciesAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n" @@ -24479,13 +24490,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\005\210\001\001\032\\\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022=\n" - + "\005value\030\002 \001(\0132..google.c" - + "loud.compute.v1.SslPoliciesScopedList:\0028\001B\007\n" + + "\005value\030\002" + + " \001(\0132..google.cloud.compute.v1.SslPoliciesScopedList:\0028\001B\007\n" + "\005_etagB\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" - + "\020_next_page", - "_tokenB\014\n\n" + + "\020_next_page_tokenB\014\n\n" + "_self_linkB\n\n" + "\010_warning\"\245\002\n" + "\017SslPoliciesList\022\020\n" @@ -24530,8 +24540,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007TLS_1_1\020\277\244\345\017\022\016\n" + "\007TLS_1_2\020\300\244\345\017\"e\n" + "\007Profile\022\025\n" - + "\021UNDEFINED_PROFILE\020\000\022\021\n" - + "\n" + + "\021UNDEFINED_PROFILE\020\000\022\021\n\n" + "COMPATIBLE\020\324\215\303U\022\016\n" + "\006CUSTOM\020\361\376\245\271\001\022\r\n" + "\006MODERN\020\237\276\371>\022\021\n\n" @@ -24547,13 +24556,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_regionB\014\n\n" + "_self_link\"@\n" + "\022SslPolicyReference\022\033\n\n" - + "ssl_policy\030\305\375\340\214\001 \001(\tH\000\210\001\001B\r\n" + + "ssl_policy\030\305\375\340\214\001 \001(\tH\000\210\001\001B\r" + + "\n" + "\013_ssl_policy\"\240\002\n" + " StartAsyncReplicationDiskRequest\022\024\n" + "\004disk\030\235\233\274\001 \001(\tB\003\340A\002\022{\n" + ".disks_start_async_replication_request_resource\030\332\236\300\340\001" - + " \001(\0132:.google.cl" - + "oud.compute.v1.DisksStartAsyncReplicationRequestB\003\340A\002\022!\n" + + " \001(\0132:.google.cloud.compute.v1.DisksStartAsyncReplicationRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -24565,8 +24574,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\210\001\n" - + "5region_disks_start_async_replication_request_resource\030\205\310\226\342\001 \001(" - + "\0132@.google.cloud.compute.v1.RegionDisksStartAsyncReplicationRequestB\003\340A\002\022\032\n\n" + + "5region_disks_start_async_replication_request_resource\030\205\310\226\342\001" + + " \001(\0132@.google.cloud" + + ".compute.v1.RegionDisksStartAsyncReplicationRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\233\001\n" + "\024StartInstanceRequest\022\030\n" @@ -24580,8 +24590,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ")StartInstancesInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\215\001\n" + "8instance_group_managers_start_instances_request_resource\030\253\245\277|" - + " \001(\0132C.google.c" - + "loud.compute.v1.InstanceGroupManagersStartInstancesRequestB\003\340A\002\022!\n" + + " \001(\0132C.google.cloud.compute.v1." + + "InstanceGroupManagersStartInstancesRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -24593,17 +24603,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\233\001\n" - + "?region_instance_group_man" - + "agers_start_instances_request_resource\030\226\233\377\354\001" - + " \001(\0132I.google.cloud.compute.v1.Regio" - + "nInstanceGroupManagersStartInstancesRequestB\003\340A\002\022\032\n\n" + + "?region_instance_group_managers_start_instances_request_resource\030\226\233\377\354\001" + + " \001(\0132I.googl" + + "e.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\265\002\n" + "%StartWithEncryptionKeyInstanceRequest\022\030\n" + "\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022\206\001\n" + "4instances_start_with_encryption_key_request_resource\030\377\376\317\322\001" - + " \001(\0132?.google.clou" - + "d.compute.v1.InstancesStartWithEncryptionKeyRequestB\003\340A\002\022!\n" + + " \001(\0132?.google.cloud.compute.v1.Ins" + + "tancesStartWithEncryptionKeyRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -24611,28 +24620,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"|\n" + "\016StatefulPolicy\022V\n" - + "\017preserved_state\030\252\342\240\001" - + " \001(\01325.google.cloud.compute.v1.StatefulPolicyPreservedStateH\000\210\001\001B\022\n" + + "\017preserved_state\030\252\342\240\001 \001(\01325.goog" + + "le.cloud.compute.v1.StatefulPolicyPreservedStateH\000\210\001\001B\022\n" + "\020_preserved_state\"\216\005\n" + "\034StatefulPolicyPreservedState\022R\n" - + "\005disks\030\366\314\312- \003(\0132@.google.cloud.comp" - + "ute.v1.StatefulPolicyPreservedState.DisksEntry\022a\n\r" - + "external_i_ps\030\215\323\200\376\001 \003(\0132F.goog" - + "le.cloud.compute.v1.StatefulPolicyPreservedState.ExternalIPsEntry\022`\n\r" - + "internal_i_ps\030\333\233\357f \003(\0132F.google.cloud.compute.v1.St" - + "atefulPolicyPreservedState.InternalIPsEntry\032m\n\n" + + "\005disks\030\366\314\312-" + + " \003(\0132@.google.cloud.compute.v1.StatefulPolicyPreservedState.DisksEntry\022a\n\r" + + "external_i_ps\030\215\323\200\376\001 \003(\0132F.google.cloud.compute" + + ".v1.StatefulPolicyPreservedState.ExternalIPsEntry\022`\n\r" + + "internal_i_ps\030\333\233\357f \003(\0132F.go" + + "ogle.cloud.compute.v1.StatefulPolicyPreservedState.InternalIPsEntry\032m\n\n" + "DisksEntry\022\013\n" + "\003key\030\001 \001(\t\022N\n" - + "\005value\030\002" - + " \001(\0132?.google.cloud.compute.v1.StatefulPolicyPreservedStateDiskDevice:\0028\001\032r\n" + + "\005value\030\002 \001(\0132?.google.c" + + "loud.compute.v1.StatefulPolicyPreservedStateDiskDevice:\0028\001\032r\n" + "\020ExternalIPsEntry\022\013\n" + "\003key\030\001 \001(\t\022M\n" - + "\005value\030\002 \001" - + "(\0132>.google.cloud.compute.v1.StatefulPolicyPreservedStateNetworkIp:\0028\001\032r\n" + + "\005value\030\002 \001(\0132>.google.clou" + + "d.compute.v1.StatefulPolicyPreservedStateNetworkIp:\0028\001\032r\n" + "\020InternalIPsEntry\022\013\n" + "\003key\030\001 \001(\t\022M\n" - + "\005value\030\002 \001(\0132>" - + ".google.cloud.compute.v1.StatefulPolicyPreservedStateNetworkIp:\0028\001\"\264\001\n" + + "\005value\030\002 \001(\0132>.google.cloud.co" + + "mpute.v1.StatefulPolicyPreservedStateNetworkIp:\0028\001\"\264\001\n" + "&StatefulPolicyPreservedStateDiskDevice\022\034\n" + "\013auto_delete\030\273\344\316\335\001 \001(\tH\000\210\001\001\"\\\n\n" + "AutoDelete\022\031\n" @@ -24666,12 +24675,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" - + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r" - + "\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\232\002\n" + "$StopGroupAsyncReplicationDiskRequest\022\206\001\n" - + "4disks_stop_group_async_replication_resource_resource\030\225\370\257\245\001 \001(" - + "\0132?.google.cloud.compute.v1.DisksStopGroupAsyncReplicationResourceB\003\340A\002\022!\n" + + "4disks_stop_group_async_replication_resource_resource\030\225\370\257\245\001" + + " \001(\0132?.google.cloud" + + ".compute.v1.DisksStopGroupAsyncReplicationResourceB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -24680,8 +24689,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\244\002\n" + "*StopGroupAsyncReplicationRegionDiskRequest\022\206\001\n" + "4disks_stop_group_async_replication_resource_resource\030\225\370\257\245\001" - + " \001(\0132?.google.cloud.compute.v1.D" - + "isksStopGroupAsyncReplicationResourceB\003\340A\002\022!\n" + + " \001(\0132?.g" + + "oogle.cloud.compute.v1.DisksStopGroupAsyncReplicationResourceB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" @@ -24699,8 +24708,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\313\002\n" + "(StopInstancesInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\213\001\n" - + "7instance_group_managers_stop_instances_request_resource\030\215\245\364\021 \001" - + "(\0132B.google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequestB\003\340A\002\022!\n" + + "7instance_group_managers_stop_instances_request_resource\030\215\245\364\021" + + " \001(\0132B.google.clou" + + "d.compute.v1.InstanceGroupManagersStopInstancesRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -24712,10 +24722,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\231\001\n" - + ">region_instanc" - + "e_group_managers_stop_instances_request_resource\030\302\234\362\200\001" - + " \001(\0132H.google.cloud.comput" - + "e.v1.RegionInstanceGroupManagersStopInstancesRequestB\003\340A\002\022\032\n\n" + + ">region_instance_group_managers_stop_instances_request_resource\030\302\234\362\200\001" + + " \001(\0132H.google.cloud.compute.v1.RegionInsta" + + "nceGroupManagersStopInstancesRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\205\013\n" + "\013StoragePool\022*\n" @@ -24725,8 +24734,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\002id\030\233\032 \001(\004H\003\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\005\210\001\001\022D\n" - + "\006labels\030\377\277\301\356\001 \003(" - + "\01320.google.cloud.compute.v1.StoragePool.LabelsEntry\022\024\n" + + "\006labels\030\377\277\301\356\001" + + " \003(\01320.google.cloud.compute.v1.StoragePool.LabelsEntry\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\006\210\001\001\022.\n" + "\035performance_provisioning_type\030\375\235\266\337\001 \001(" + "\tH\007\210\001\001\022-\n" @@ -24735,14 +24744,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025pool_provisioned_iops\030\227\311\2715 \001(\003H\t\210\001\001\022+\n" + "\033pool_provisioned_throughput\030\230\215\330P \001(\003H\n" + "\210\001\001\022S\n" - + "\017resource_status\030\303\372\367v \001(\013" - + "22.google.cloud.compute.v1.StoragePoolResourceStatusH\013\210\001\001\022\032\n" + + "\017resource_status\030\303\372\367v \001(\01322.google.cloud." + + "compute.v1.StoragePoolResourceStatusH\013\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\014\210\001\001\022!\n" + "\021self_link_with_id\030\202\254\235\025 \001(\tH\r" + "\210\001\001\022\025\n" + "\005state\030\221\211\2534 \001(\tH\016\210\001\001\022J\n" - + "\006status\030\362\237\267V \001" - + "(\01322.google.cloud.compute.v1.StoragePoolResourceStatusH\017\210\001\001\022\"\n" + + "\006status\030\362\237\267V \001(\01322.google.clou" + + "d.compute.v1.StoragePoolResourceStatusH\017\210\001\001\022\"\n" + "\021storage_pool_type\030\271\201\260\210\001 \001(\tH\020\210\001\001\022\024\n" + "\004zone\030\254\307\344\001 \001(\tH\021\210\001\001\032-\n" + "\013LabelsEntry\022\013\n" @@ -24779,8 +24788,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031StoragePoolAggregatedList\022\024\n" + "\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\022\020\n" + "\002id\030\233\032 \001(\tH\001\210\001\001\022O\n" - + "\005items\030\300\317\367/" - + " \003(\0132=.google.cloud.compute.v1.StoragePoolAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132=.google.cl" + + "oud.compute.v1.StoragePoolAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\003\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\004\210\001\001\022\027\n" @@ -24789,8 +24798,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\005\210\001\001\032]\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022>\n" - + "\005value\030\002 \001(\0132/.g" - + "oogle.cloud.compute.v1.StoragePoolsScopedList:\0028\001B\007\n" + + "\005value\030\002" + + " \001(\0132/.google.cloud.compute.v1.StoragePoolsScopedList:\0028\001B\007\n" + "\005_etagB\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" @@ -24888,8 +24897,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\"_total_provisioned_disk_throughput\"\347\007\n" + "\017StoragePoolType\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022G\n\n" - + "deprecated\030\263\313\321\365\001 \001(\013" - + "2*.google.cloud.compute.v1.DeprecationStatusH\001\210\001\001\022\034\n" + + "deprecated\030\263\313\321\365\001" + + " \001(\0132*.google.cloud.compute.v1.DeprecationStatusH\001\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\003\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\0220\n" @@ -24920,15 +24929,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032_min_pool_provisioned_iopsB\"\n" + " _min_pool_provisioned_throughputB\016\n" + "\014_min_size_gbB\007\n" - + "\005_nameB\014\n" - + "\n" + + "\005_nameB\014\n\n" + "_self_linkB\024\n" + "\022_self_link_with_idB\007\n" + "\005_zone\"\265\003\n" + "\035StoragePoolTypeAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022S\n" - + "\005items\030\300\317\367/ \003(\0132A.googl" - + "e.cloud.compute.v1.StoragePoolTypeAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132A.google.cloud.compute." + + "v1.StoragePoolTypeAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -24936,8 +24944,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032a\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022B\n" - + "\005value\030\002 " - + "\001(\01323.google.cloud.compute.v1.StoragePoolTypesScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\01323.google.clo" + + "ud.compute.v1.StoragePoolTypesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -24964,8 +24972,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\240\001\n" + "\026StoragePoolsScopedList\022?\n\r" - + "storage_pools\030\223\222\300\320\001" - + " \003(\0132$.google.cloud.compute.v1.StoragePool\0229\n" + + "storage_pools\030\223\222\300\320\001 \003" + + "(\0132$.google.cloud.compute.v1.StoragePool\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\256\023\n\n" @@ -24986,20 +24994,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021ipv6_gce_endpoint\030\343\312\342\230\001 \001(\tH\014\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\r" + "\210\001\001\022I\n\n" - + "log_config\030\235\321\301\247\001" - + " \001(\0132,.google.cloud.compute.v1.SubnetworkLogConfigH\016\210\001\001\022\024\n" + + "log_config\030\235\321\301\247\001 \001(\0132,." + + "google.cloud.compute.v1.SubnetworkLogConfigH\016\210\001\001\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\017\210\001\001\022\027\n" + "\007network\030\256\264\205o \001(\tH\020\210\001\001\022A\n" - + "\006params\030\206\363\253%" - + " \001(\0132).google.cloud.compute.v1.SubnetworkParamsH\021\210\001\001\022)\n" + + "\006params\030\206\363\253% \001(\0132).goo" + + "gle.cloud.compute.v1.SubnetworkParamsH\021\210\001\001\022)\n" + "\030private_ip_google_access\030\316\350\375\310\001 \001(\010H\022\210\001\001\022*\n" + "\032private_ipv6_google_access\030\216\314\202\027 \001(\tH\023\210\001\001\022\030\n" + "\007purpose\030\236\372\357\226\001 \001(\tH\024\210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH\025\210\001\001\022(\n" + "\027reserved_internal_range\030\262\236\277\210\001 \001(\tH\026\210\001\001\022\024\n" + "\004role\030\366\200\326\001 \001(\tH\027\210\001\001\022Q\n" - + "\023secondary_ip_ranges\030\343\377\224A" - + " \003(\01321.google.cloud.compute.v1.SubnetworkSecondaryRange\022\032\n" + + "\023secondary_ip_ranges\030\343\377\224A \003(\01321.go" + + "ogle.cloud.compute.v1.SubnetworkSecondaryRange\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\030\210\001\001\022\033\n\n" + "stack_type\030\221\265\213\313\001 \001(\tH\031\210\001\001\022\025\n" + "\005state\030\221\211\2534 \001(\tH\032\210\001\001\022/\n" @@ -25074,14 +25082,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_state\"\277\003\n" + "\030SubnetworkAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022N\n" - + "\005items\030\300\317\367/ \003(\0132<.goog" - + "le.cloud.compute.v1.SubnetworkAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132<.google.cloud.compute" + + ".v1.SubnetworkAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" + "\014unreachables\030\237\240\206t \003(\t\0229\n" - + "\007warning\030\234\337\226\030 \001(\0132" - + " .google.cloud.compute.v1.WarningH\004\210\001\001\032\\\n\n" + + "\007warning\030\234", + "\337\226\030 \001(\0132 .google.cloud.compute.v1.WarningH\004\210\001\001\032\\\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022=\n" + "\005value\030\002" @@ -25122,8 +25130,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010Metadata\022\026\n" + "\022UNDEFINED_METADATA\020\000\022\026\n" + "\017CUSTOM_METADATA\020\275\330\343\035\022\034\n" - + "\024EXCLUDE_ALL_META", - "DATA\020\222\275\301\237\001\022\033\n" + + "\024EXCLUDE_ALL_METADATA\020\222\275\301\237\001\022\033\n" + "\024INCLUDE_ALL_METADATA\020\204\315\277NB\027\n" + "\025_aggregation_intervalB\t\n" + "\007_enableB\016\n" @@ -25131,8 +25138,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016_flow_samplingB\013\n" + "\t_metadata\"\265\001\n" + "\020SubnetworkParams\022e\n" - + "\025resource_manager_tags\030\374\233\213\264\001 \003(\0132B.google.cloud.comput" - + "e.v1.SubnetworkParams.ResourceManagerTagsEntry\032:\n" + + "\025resource_manager_tags\030\374\233\213\264\001 \003" + + "(\0132B.google.cloud.compute.v1.SubnetworkParams.ResourceManagerTagsEntry\032:\n" + "\030ResourceManagerTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\275\001\n" @@ -25181,8 +25188,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "+SuspendInstancesInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\221\001\n" + ":instance_group_managers_suspend_instances_request_resource\030\321\215\241\026" - + " \001(\0132E.goo" - + "gle.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequestB\003\340A\002\022!\n" + + " \001(\0132E.google.cloud.comput" + + "e.v1.InstanceGroupManagersSuspendInstancesRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -25195,8 +25202,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\236\001\n" + "Aregion_instance_group_managers_suspend_instances_request_resource\030\374\345\224f" - + " \001(\0132K.google.cloud.comput" - + "e.v1.RegionInstanceGroupManagersSuspendInstancesRequestB\003\340A\002\022\032\n\n" + + " \001(\0132K.google.cloud.compute.v1.RegionInsta" + + "nceGroupManagersSuspendInstancesRequestB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\211\001\n" + " SwitchToCustomModeNetworkRequest\022\027\n" @@ -25300,24 +25307,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_url_map\"\210\003\n" + "\035TargetHttpProxyAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022S\n" - + "\005items\030\300\317\367/ \003(\0132A.google.cloud.compute" - + ".v1.TargetHttpProxyAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(" + + "\0132A.google.cloud.compute.v1.TargetHttpProxyAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" + "\014unreachables\030\237\240\206t \003(\t\032b\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022C\n" - + "\005value\030\002 \001(\01324.goo" - + "gle.cloud.compute.v1.TargetHttpProxiesScopedList:\0028\001B\005\n" + + "\005value\030\002" + + " \001(\01324.google.cloud.compute.v1.TargetHttpProxiesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" + "_self_link\"\257\002\n" + "\023TargetHttpProxyList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022:\n" - + "\005items\030\300\317\367/ \003" - + "(\0132(.google.cloud.compute.v1.TargetHttpProxy\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132(.google.cloud.compute.v1.TargetHttpProxy\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -25329,15 +25336,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\262\001\n" + "\034TargetHttpsProxiesScopedList\022K\n" - + "\024target_https_proxies\030\212\374\347\256\001 \003(\0132).go" - + "ogle.cloud.compute.v1.TargetHttpsProxy\0229\n" + + "\024target_https_proxies\030\212\374\347\256\001" + + " \003(\0132).google.cloud.compute.v1.TargetHttpsProxy\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"a\n" + "*TargetHttpsProxiesSetCertificateMapRequest\022\037\n" + "\017certificate_map\030\264\345\315J \001(\tH\000\210\001\001B\022\n" + "\020_certificate_map\"\266\001\n" - + "(TargetHttpsProxiesSetQuicOverrideRequest\022\036\n\r" + + "(TargetHttpsProxiesSetQuicOverrideRequest\022\036\n" + + "\r" + "quic_override\030\255\241\333\331\001 \001(\tH\000\210\001\001\"X\n" + "\014QuicOverride\022\033\n" + "\027UNDEFINED_QUIC_OVERRIDE\020\000\022\016\n" @@ -25399,8 +25407,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_url_map\"\322\003\n" + "\036TargetHttpsProxyAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022T\n" - + "\005items\030\300\317\367/ \003(\0132B." - + "google.cloud.compute.v1.TargetHttpsProxyAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132B.google.cloud.com" + + "pute.v1.TargetHttpsProxyAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -25409,8 +25417,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032c\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022D\n" - + "\005value\030\002 \001(\01325.goo" - + "gle.cloud.compute.v1.TargetHttpsProxiesScopedList:\0028\001B\005\n" + + "\005value\030\002" + + " \001(\01325.google.cloud.compute.v1.TargetHttpsProxiesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -25418,8 +25426,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_warning\"\261\002\n" + "\024TargetHttpsProxyList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022;\n" - + "\005items\030\300\317\367/" - + " \003(\0132).google.cloud.compute.v1.TargetHttpsProxy\022\024\n" + + "\005items\030\300\317\367/ \003(\013" + + "2).google.cloud.compute.v1.TargetHttpsProxy\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -25427,8 +25435,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" - + "\020_next_page_tokenB\014\n" - + "\n" + + "\020_next_page_tokenB\014\n\n" + "_self_linkB\n\n" + "\010_warning\"\374\003\n" + "\016TargetInstance\022\"\n" @@ -25460,8 +25467,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_zone\"\313\003\n" + "\034TargetInstanceAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022R\n" - + "\005items\030\300\317\367/ " - + "\003(\0132@.google.cloud.compute.v1.TargetInstanceAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132@.google.clo" + + "ud.compute.v1.TargetInstanceAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -25470,8 +25477,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032`\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022A\n" - + "\005value\030\002 \001(\01322" - + ".google.cloud.compute.v1.TargetInstancesScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\01322.google.cloud.co" + + "mpute.v1.TargetInstancesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -25479,8 +25486,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_warning\"\255\002\n" + "\022TargetInstanceList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\0229\n" - + "\005items\030\300\317\367/" - + " \003(\0132\'.google.cloud.compute.v1.TargetInstance\022\024\n" + + "\005items\030\300\317\367/ \003(\0132" + + "\'.google.cloud.compute.v1.TargetInstance\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -25492,8 +25499,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\251\001\n" + "\031TargetInstancesScopedList\022E\n" - + "\020target_instances\030\320\322\255\273\001 \003(\013" - + "2\'.google.cloud.compute.v1.TargetInstance\0229\n" + + "\020target_instances\030\320\322\255\273\001" + + " \003(\0132\'.google.cloud.compute.v1.TargetInstance\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\245\006\n\n" @@ -25537,8 +25544,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021_session_affinity\"\277\003\n" + "\030TargetPoolAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022N\n" - + "\005items\030\300\317\367/ \003(\0132<.google.cloud" - + ".compute.v1.TargetPoolAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132<.google.cloud.compute.v1.TargetPoolAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -25547,13 +25554,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032\\\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022=\n" - + "\005value\030\002" - + " \001(\0132..google.cloud.compute.v1.TargetPoolsScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\013" + + "2..google.cloud.compute.v1.TargetPoolsScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" - + "_self_linkB\n" - + "\n" + + "_self_linkB\n\n" + "\010_warning\"{\n" + "\030TargetPoolInstanceHealth\022@\n\r" + "health_status\030\265\326\272\265\001" @@ -25574,8 +25580,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"l\n" + " TargetPoolsAddHealthCheckRequest\022H\n\r" - + "health_checks\030\256\257\346\325\001" - + " \003(\0132-.google.cloud.compute.v1.HealthCheckReference\"a\n" + + "health_checks\030\256\257\346\325\001 \003(\0132-" + + ".google.cloud.compute.v1.HealthCheckReference\"a\n" + "\035TargetPoolsAddInstanceRequest\022@\n" + "\tinstances\030\376\374\357\r" + " \003(\0132*.google.cloud.compute.v1.InstanceReference\"o\n" @@ -25632,8 +25638,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_kindB\007\n" + "\005_nameB\017\n\r" + "_proxy_headerB\014\n\n" - + "_self_linkB\n" - + "\n" + + "_self_linkB\n\n" + "\010_serviceB\r\n" + "\013_ssl_policy\"\255\002\n" + "\022TargetSslProxyList\022\020\n" @@ -25688,13 +25693,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_nameB\r\n" + "\013_proxy_bindB\017\n\r" + "_proxy_headerB\t\n" - + "\007_regionB\014\n\n" + + "\007_regionB\014\n" + + "\n" + "_self_linkB\n\n" + "\010_service\"\314\003\n" + "\034TargetTcpProxyAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022R\n" - + "\005items\030\300\317\367/ \003(\0132@.google.cl" - + "oud.compute.v1.TargetTcpProxyAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132@.google.cloud.compute.v1.T" + + "argetTcpProxyAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -25703,8 +25709,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032a\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022B\n" - + "\005value\030\002 \001(\01323.google.cloud.c" - + "ompute.v1.TargetTcpProxiesScopedList:\0028\001B\005\n" + + "\005value\030\002" + + " \001(\01323.google.cloud.compute.v1.TargetTcpProxiesScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -25712,8 +25718,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_warning\"\255\002\n" + "\022TargetTcpProxyList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\0229\n" - + "\005items\030\300\317\367/ \003(" - + "\0132\'.google.cloud.compute.v1.TargetTcpProxy\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132\'.google.cloud.compute.v1.TargetTcpProxy\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" @@ -25731,8 +25737,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\002id\030\233\032 \001(\004H\002\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\003\210\001\001\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\004\210\001\001\022I\n" - + "\006labels\030\377\277\301\356\001" - + " \003(\01325.google.cloud.compute.v1.TargetVpnGateway.LabelsEntry\022\024\n" + + "\006labels\030\377\277\301\356\001 \003" + + "(\01325.google.cloud.compute.v1.TargetVpnGateway.LabelsEntry\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\005\210\001\001\022\027\n" + "\007network\030\256\264\205o \001(\tH\006\210\001\001\022\026\n" + "\006region\030\364\315\240B \001(\tH\007\210\001\001\022\032\n" @@ -25760,8 +25766,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_status\"\321\003\n" + "\036TargetVpnGatewayAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022T\n" - + "\005items\030\300\317\367/" - + " \003(\0132B.google.cloud.compute.v1.TargetVpnGatewayAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132B.google." + + "cloud.compute.v1.TargetVpnGatewayAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -25770,8 +25776,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032b\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022C\n" - + "\005value\030\002 " - + "\001(\01324.google.cloud.compute.v1.TargetVpnGatewaysScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\01324.google.clo", + "ud.compute.v1.TargetVpnGatewaysScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -25792,11 +25798,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"\260\001\n" + "\033TargetVpnGatewaysScopedList\022J\n" - + "\023target_vpn_gateways\030\210\223\312\277\001" - + " \003(\0132).google.cloud.compute.v1.TargetVpnGateway\0229\n" + + "\023target_vpn_gateways\030\210\223\312\277\001 \003(\013" + + "2).google.cloud.compute.v1.TargetVpnGateway\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" - + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n" - + "\n" + + " .google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" + "\010_warning\"\223\004\n" + "\013TestFailure\022\"\n" + "\021actual_output_url\030\202\331\361\210\001 \001(\tH\000\210\001\001\022-\n" @@ -25807,13 +25812,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037expected_redirect_response_code\030\357\352\200\t \001(\005H\004\210\001\001\022" + " \n" + "\020expected_service\030\256\370\361? \001(\tH\005\210\001\001\022=\n" - + "\007headers\030\206\337\235{ " - + "\003(\0132).google.cloud.compute.v1.UrlMapTestHeader\022\024\n" + + "\007headers\030\206\337\235{" + + " \003(\0132).google.cloud.compute.v1.UrlMapTestHeader\022\024\n" + "\004host\030\250\353\303\001 \001(\tH\006\210\001\001\022\024\n" + "\004path\030\245\310\321\001 \001(\tH\007\210\001\001B\024\n" + "\022_actual_output_urlB \n" - + "\036_act", - "ual_redirect_response_codeB\021\n" + + "\036_actual_redirect_response_codeB\021\n" + "\017_actual_serviceB\026\n" + "\024_expected_output_urlB\"\n" + " _expected_redirect_response_codeB\023\n" @@ -25823,24 +25827,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "&TestIamPermissionsBackendBucketRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\301\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.c" + + "loud.compute.v1.TestPermissionsRequestB\003\340A\002\"\301\001\n" + "\'TestIamPermissionsBackendServiceRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(" - + "\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\315\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.cloud" + + ".compute.v1.TestPermissionsRequestB\003\340A\002\"\315\001\n" + "\035TestIamPermissionsDiskRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.clo" - + "ud.compute.v1.TestPermissionsRequestB\003\340A\002\022\024\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\022\024\n" + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"\305\001\n" + "+TestIamPermissionsExternalVpnGatewayRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\250\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.goog" + + "le.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\250\001\n" + "\'TestIamPermissionsFirewallPolicyRequest\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" + "!test_permissions_request_resource\030\246\305\267\321\001" @@ -25848,45 +25852,45 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036TestIamPermissionsImageRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\321\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google" + + ".cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\321\001\n" + "!TestIamPermissionsInstanceRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/." - + "google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\022\024\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\022\024\n" + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"\303\001\n" + ")TestIamPermissionsInstanceTemplateRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\330\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(" + + "\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\330\001\n" + "(TestIamPermissionsInstantSnapshotRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\022\024\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/" + + ".google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\022\024\n" + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"\316\001\n" + "4TestIamPermissionsInterconnectAttachmentGroupRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\304\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.c" + + "loud.compute.v1.TestPermissionsRequestB\003\340A\002\"\304\001\n" + "*TestIamPermissionsInterconnectGroupRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\276\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.cl" + + "oud.compute.v1.TestPermissionsRequestB\003\340A\002\"\276\001\n" + "$TestIamPermissionsLicenseCodeRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/." - + "google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\272\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\272\001\n" + " TestIamPermissionsLicenseRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.clou" - + "d.compute.v1.TestPermissionsRequestB\003\340A\002\"\277\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\277\001\n" + "%TestIamPermissionsMachineImageRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" @@ -25896,19 +25900,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 " - + "\001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\335\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.clo" + + "ud.compute.v1.TestPermissionsRequestB\003\340A\002\"\335\001\n" + "-TestIamPermissionsNetworkEndpointGroupRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\022\024\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.c" + + "loud.compute.v1.TestPermissionsRequestB\003\340A\002\022\024\n" + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"\310\001\n" + ".TestIamPermissionsNetworkFirewallPolicyRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google." - + "cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\322\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\322\001\n" + "\"TestIamPermissionsNodeGroupRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" @@ -25925,73 +25929,73 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001" - + "(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\337\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.clou" + + "d.compute.v1.TestPermissionsRequestB\003\340A\002\"\337\001\n" + "-TestIamPermissionsRegionBackendServiceRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.cl" - + "oud.compute.v1.TestPermissionsRequestB\003\340A\002\"\325\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\325\001\n" + "#TestIamPermissionsRegionDiskRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\340\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.cl" + + "oud.compute.v1.TestPermissionsRequestB\003\340A\002\"\340\001\n" + ".TestIamPermissionsRegionInstantSnapshotRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google" - + ".cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\346\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\346\001\n" + "4TestIamPermissionsRegionNetworkFirewallPolicyRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.cloud." - + "compute.v1.TestPermissionsRequestB\003\340A\002\"\324\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\324\001\n" + "$TestIamPermissionsReservationRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\022\024\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(" + + "\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\022\024\n" + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"\331\001\n" + "\'TestIamPermissionsResourcePolicyRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001" - + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\334\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 " + + "\001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\334\001\n" + "*TestIamPermissionsServiceAttachmentRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001" - + "(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\273\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.clou" + + "d.compute.v1.TestPermissionsRequestB\003\340A\002\"\273\001\n" + "!TestIamPermissionsSnapshotRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.googl" - + "e.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\324\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\324\001\n" + "$TestIamPermissionsStoragePoolRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.cloud" - + ".compute.v1.TestPermissionsRequestB\003\340A\002\022\024\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\022\024\n" + "\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"\325\001\n" + "#TestIamPermissionsSubnetworkRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132/.google.cloud.c" - + "ompute.v1.TestPermissionsRequestB\003\340A\002\"\325\001\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"\325\001\n" + "#TestIamPermissionsVpnGatewayRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022\030\n" + "\010resource\030\216\210\257] \001(\tB\003\340A\002\022c\n" - + "!test_permissions_request_resource\030\246\305\267\321\001 \001(\0132" - + "/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"0\n" + + "!test_permissions_request_resource\030\246\305\267\321\001" + + " \001(\0132/.google.cloud.compute.v1.TestPermissionsRequestB\003\340A\002\"0\n" + "\026TestPermissionsRequest\022\026\n" + "\013permissions\030\204\351\313\034 \003(\t\"1\n" + "\027TestPermissionsResponse\022\026\n" @@ -26045,8 +26049,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020_window_end_timeB\024\n" + "\022_window_start_time\"\234\002\n" + "!UpdateAccessConfigInstanceRequest\022N\n" - + "\026access_config_resource\030\220\377\366\270\001 " - + "\001(\0132%.google.cloud.compute.v1.AccessConfigB\003\340A\002\022\030\n" + + "\026access_config_resource\030\220\377\366\270\001" + + " \001(\0132%.google.cloud.compute.v1.AccessConfigB\003\340A\002\022\030\n" + "\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022\"\n" + "\021network_interface\030\350\300\235\256\001 \001(\tB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" @@ -26064,23 +26068,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\001\210\001\001\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\r\n" - + "\013_autoscalerB\r\n" + + "\013_autoscalerB\r" + + "\n" + "\013_request_id\"\334\001\n" + "\032UpdateBackendBucketRequest\022\036\n" + "\016backend_bucket\030\365\343\335+ \001(\tB\003\340A\002\022P\n" - + "\027backend_bucket_resource\030\230\316\307\265\001" - + " \001(\0132&.google.cloud.compute.v1.BackendBucketB\003\340A\002\022!\n" + + "\027backend_bucket_resource\030\230\316\307\265\001 \001(\0132&.goog" + + "le.cloud.compute.v1.BackendBucketB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\341\001\n" + "\033UpdateBackendServiceRequest\022 \n" + "\017backend_service\030\212\300\256\222\001 \001(\tB\003\340A\002\022R\n" - + "\030backend_service_resource\030\243\201\337\245\001 \001(\0132\'.g" - + "oogle.cloud.compute.v1.BackendServiceB\003\340A\002\022!\n" + + "\030backend_service_resource\030\243\201\337\245\001" + + " \001(\0132\'.google.cloud.compute.v1.BackendServiceB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" - + "\340A\002\362G\007project\022\032\n" - + "\n" + + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\241\002\n" + "\021UpdateDiskRequest\022\024\n" @@ -26117,8 +26121,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\324\001\n" + "\030UpdateHealthCheckRequest\022\035\n" + "\014health_check\030\345\252\244\223\001 \001(\tB\003\340A\002\022K\n" - + "\025health_check_resource\030\250\303\244` \001(" - + "\0132$.google.cloud.compute.v1.HealthCheckB\003\340A\002\022!\n" + + "\025health_check_resource\030\250\303\244`" + + " \001(\0132$.google.cloud.compute.v1.HealthCheckB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" @@ -26154,8 +26158,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "%UpdateNetworkInterfaceInstanceRequest\022\030\n" + "\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022\"\n" + "\021network_interface\030\350\300\235\256\001 \001(\tB\003\340A\002\022V\n" - + "\032network_interface_resource\030\205\224\256\233\001 \001(\0132)." - + "google.cloud.compute.v1.NetworkInterfaceB\003\340A\002\022!\n" + + "\032network_interface_resource\030\205\224\256\233\001" + + " \001(\0132).google.cloud.compute.v1.NetworkInterfaceB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -26164,18 +26168,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\365\001\n" + "\033UpdatePeeringNetworkRequest\022\027\n" + "\007network\030\256\264\205o \001(\tB\003\340A\002\022o\n" - + "(networks_update_peering_request_resource\030\331\252\202k \001(\01325.google.cloud.co" - + "mpute.v1.NetworksUpdatePeeringRequestB\003\340A\002\022!\n" + + "(networks_update_peering_request_resource\030\331\252\202k" + + " \001(\01325.google.cloud.compute.v1.NetworksUpdatePeeringRequestB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" - + "\340A\002\362G\007project\022\032\n" - + "\n" + + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\346\002\n" + "3UpdatePerInstanceConfigsInstanceGroupManagerRequest\022&\n" + "\026instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\233\001\n" + "@instance_group_managers_update_per_instance_configs_req_resource\030\276\301\266C" - + " \001(\0132I.google.cloud.compute.v1" - + ".InstanceGroupManagersUpdatePerInstanceConfigsReqB\003\340A\002\022!\n" + + " \001(\0132I.google.cloud.compute.v1.InstanceGroupMa" + + "nagersUpdatePerInstanceConfigsReqB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\033\n" @@ -26188,8 +26191,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\037\n" + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\235\001\n" + "Aregion_instance_group_manager_update_instance_config_req_resource\030\247\256\272*" - + " \001(\0132J.google.cloud.compute.v1.Reg" - + "ionInstanceGroupManagerUpdateInstanceConfigReqB\003\340A\002\022\032\n\n" + + " \001(\0132J.goo" + + "gle.cloud.compute.v1.RegionInstanceGroupManagerUpdateInstanceConfigReqB\003\340A\002\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n" + "\013_request_id\"\204\002\n" + "\035UpdateRegionAutoscalerRequest\022\033\n\n" @@ -26213,8 +26216,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_request_id\"\304\002\n" + "\035UpdateRegionCommitmentRequest\022\033\n\n" + "commitment\030\225\226\363\345\001 \001(\tB\003\340A\002\022H\n" - + "\023commitment_resource\030\370\243\273t \001(\0132" - + "#.google.cloud.compute.v1.CommitmentB\003\340A\002\022\025\n" + + "\023commitment_resource\030\370\243\273t" + + " \001(\0132#.google.cloud.compute.v1.CommitmentB\003\340A\002\022\025\n" + "\005paths\030\356\301\3402 \001(\tH\000\210\001\001\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\037\n" @@ -26261,8 +26264,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\001\210\001\001\022\033\n" + "\013reservation\030\314\207\325\026 \001(\tB\003\340A\002\022K\n" - + "\024reservation_resource\030\241\356\364\207\001 \001(\0132" - + "$.google.cloud.compute.v1.ReservationB\003\340A\002\022\034\n" + + "\024reservation_resource\030\241\356\364\207\001" + + " \001(\0132$.google.cloud.compute.v1.ReservationB\003\340A\002\022\034\n" + "\013update_mask\030\242\271\272\356\001 \001(\tH\002\210\001\001\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\010\n" @@ -26276,7 +26279,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022K\n" + "\025route_policy_resource\030\205\275\2657" + " \001(\0132$.google.cloud.compute.v1.RoutePolicyB\003\340A\002\022\026\n" - + "\006router\030\311\256\356F \001(\tB\003\340A\002B\r\n" + + "\006router\030\311\256\356F \001(\tB\003\340A\002B\r" + + "\n" + "\013_request_id\"\336\001\n" + "\023UpdateRouterRequest\022!\n" + "\007project\030\231\226\301l \001(\tB\r" @@ -26284,16 +26288,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\026\n" + "\006router\030\311\256\356F \001(\tB\003\340A\002\022@\n" - + "\017router_resource\030\304\200\202J \001(" - + "\0132\037.google.cloud.compute.v1.RouterB\003\340A\002B\r\n" + + "\017router_resource\030\304\200\202J" + + " \001(\0132\037.google.cloud.compute.v1.RouterB\003\340A\002B\r\n" + "\013_request_id\"\227\002\n" + "+UpdateShieldedInstanceConfigInstanceRequest\022\030\n" + "\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022!\n" + "\007project\030\231\226\301l \001(\tB\r" + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022c\n" - + "!shielded_instance_config_resource\030\330\226\335\201\001 \001(\0132/" - + ".google.cloud.compute.v1.ShieldedInstanceConfigB\003\340A\002\022\033\n" + + "!shielded_instance_config_resource\030\330\226\335\201\001" + + " \001(\0132/.google.cloud.compute.v1.ShieldedInstanceConfigB\003\340A\002\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\r\n" + "\013_request_id\"\237\002\n" @@ -26302,8 +26306,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\035\n" + "\014storage_pool\030\340\306\361\253\001 \001(\tB\003\340A\002\022K\n" - + "\025storage_pool_resource\030\215\274\371J" - + " \001(\0132$.google.cloud.compute.v1.StoragePoolB\003\340A\002\022\034\n" + + "\025storage_pool_resource\030\215\274\371J \001(\0132$." + + "google.cloud.compute.v1.StoragePoolB\003\340A\002\022\034\n" + "\013update_mask\030\242\271\272\356\001 \001(\tH\001\210\001\001\022\033\n" + "\004zone\030\254\307\344\001 \001(\tB\n" + "\340A\002\362G\004zoneB\r\n" @@ -26314,22 +26318,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\362G\007project\022\032\n\n" + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\030\n" + "\007url_map\030\214\225\201\257\001 \001(\tB\003\340A\002\022A\n" - + "\020url_map_resource\030\341\220\267P" - + " \001(\0132\037.google.cloud.compute.v1.UrlMapB\003\340A\002B\r\n" + + "\020url_map_resource\030\341\220\267P \001(\0132\037.googl", + "e.cloud.compute.v1.UrlMapB\003\340A\002B\r\n" + "\013_request_id\"\362\007\n" + "\006UrlMap\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022h\n" - + "$default_custom_error_response_policy\030\251\213\340& \001(\01322." - + "google.cloud.compute.v1.CustomErrorResponsePolicyH\001\210\001\001\022O\n" - + "\024default_route_action\030\252\264\327\264\001" - + " \001(\0132(.google.cloud.compute.v1.HttpRouteActionH\002\210\001\001\022 \n" + + "$default_custom_error_response_policy\030\251\213\340& \001(\01322.google.cloud.com" + + "pute.v1.CustomErrorResponsePolicyH\001\210\001\001\022O\n" + + "\024default_route_action\030\252\264\327\264\001 \001(\0132(.googl" + + "e.cloud.compute.v1.HttpRouteActionH\002\210\001\001\022 \n" + "\017default_service\030\267\345\305\260\001 \001(\tH\003\210\001\001\022R\n" - + "\024default_url_redirect\030\352\253\266\253\001 " - + "\001(\0132+.google.cloud.compute.v1.HttpRedirectActionH\004\210\001\001\022\034\n" + + "\024default_url_redirect\030\352\253\266\253\001" + + " \001(\0132+.google.cloud.compute.v1.HttpRedirectActionH\004\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\005\210\001\001\022\033\n" + "\013fingerprint\030\344\321\363o \001(\tH\006\210\001\001\022I\n\r" - + "header_action\030\250\240\270\234\001" - + " \001(\0132).google.cloud.compute.v1.HttpHeaderActionH\007\210\001\001\0229\n\n" + + "header_action\030\250\240\270\234\001 " + + "\001(\0132).google.cloud.compute.v1.HttpHeaderActionH\007\210\001\001\0229\n\n" + "host_rules\030\240\207\327\224\001" + " \003(\0132!.google.cloud.compute.v1.HostRule\022\020\n" + "\002id\030\233\032 \001(\004H\010\210\001\001\022\024\n" @@ -26347,8 +26351,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020_default_serviceB\027\n" + "\025_default_url_redirectB\016\n" + "\014_descriptionB\016\n" - + "\014_finge", - "rprintB\020\n" + + "\014_fingerprintB\020\n" + "\016_header_actionB\005\n" + "\003_idB\007\n" + "\005_kindB\007\n" @@ -26376,8 +26379,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023expected_output_url\030\230\242\367\316\001 \001(\tH\001\210\001\001\022/\n" + "\037expected_redirect_response_code\030\357\352\200\t" + " \001(\005H\002\210\001\001\022=\n" - + "\007headers\030\206\337\235{" - + " \003(\0132).google.cloud.compute.v1.UrlMapTestHeader\022\024\n" + + "\007headers\030\206\337\235{ \003(\0132).go" + + "ogle.cloud.compute.v1.UrlMapTestHeader\022\024\n" + "\004host\030\250\353\303\001 \001(\tH\003\210\001\001\022\024\n" + "\004path\030\245\310\321\001 \001(\tH\004\210\001\001\022\030\n" + "\007service\030\265\215\217\262\001 \001(\tH\005\210\001\001B\016\n" @@ -26402,8 +26405,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_test_passed\"\265\003\n" + "\025UrlMapsAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022K\n" - + "\005items\030\300\317\367/ \003(\01329.google.c" - + "loud.compute.v1.UrlMapsAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\01329.google.cloud.compute.v1.UrlMapsAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -26412,8 +26415,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032X\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\0229\n" - + "\005value\030\002" - + " \001(\0132*.google.cloud.compute.v1.UrlMapsScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(" + + "\0132*.google.cloud.compute.v1.UrlMapsScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -26435,8 +26438,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "!LOAD_BALANCING_SCHEME_UNSPECIFIED\020\274\273\207\373\001B\013\n" + "\t_resource\"m\n" + "\027UrlMapsValidateResponse\022G\n" - + "\006result\030\235\220\267B " - + "\001(\0132/.google.cloud.compute.v1.UrlMapValidationResultH\000\210\001\001B\t\n" + + "\006result\030\235\220\267B \001(\0132/.google.clo" + + "ud.compute.v1.UrlMapValidationResultH\000\210\001\001B\t\n" + "\007_result\"\272\001\n\n" + "UrlRewrite\022\034\n" + "\014host_rewrite\030\365\313\232L \001(\tH\000\210\001\001\022#\n" @@ -26453,8 +26456,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007network\030\256\264\205o \001(\tH\004\210\001\001\022\030\n" + "\007purpose\030\236\372\357\226\001 \001(\tH\005\210\001\001\022\024\n" + "\004role\030\366\200\326\001 \001(\tH\006\210\001\001\022W\n" - + "\023secondary_ip_ranges\030\343\377\224A" - + " \003(\01327.google.cloud.compute.v1.UsableSubnetworkSecondaryRange\022\033\n\n" + + "\023secondary_ip_ranges\030\343\377\224A \003(\01327.google." + + "cloud.compute.v1.UsableSubnetworkSecondaryRange\022\033\n\n" + "stack_type\030\221\265\213\313\001 \001(\tH\007\210\001\001\022\033\n\n" + "subnetwork\030\356\247\344\222\001 \001(\tH\010\210\001\001\"S\n" + "\016Ipv6AccessType\022\036\n" @@ -26498,12 +26501,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_range_name\"\244\003\n" + "\037UsableSubnetworksAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022;\n" - + "\005items\030\300\317\367/ \003(" - + "\0132).google.cloud.compute.v1.UsableSubnetwork\022\024\n" + + "\005items\030\300\317\367/" + + " \003(\0132).google.cloud.compute.v1.UsableSubnetwork\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022M\n" - + "\017scoped_warnings\030\246\226\370f" - + " \003(\01321.google.cloud.compute.v1.SubnetworksScopedWarning\022\032\n" + + "\017scoped_warnings\030\246\226\370f \003(\01321.google" + + ".cloud.compute.v1.SubnetworksScopedWarning\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" + "\014unreachables\030\237\240\206t \003(\t\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" @@ -26521,18 +26524,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033ValidateRegionUrlMapRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\026\n" + "\006region\030\364\315\240B \001(\tB\003\340A\002\022p\n" - + ")region_url_maps_validate_request_resource\030\232\314\200\033" - + " \001(\01325.google.cloud.compute.v1.RegionUrlMapsValidateRequestB\003\340A\002\022\030\n" + + ")region_url_maps_validate_request_resource\030\232\314\200\033 \001(\013" + + "25.google.cloud.compute.v1.RegionUrlMapsValidateRequestB\003\340A\002\022\030\n" + "\007url_map\030\214\225\201\257\001 \001(\tB\003\340A\002\"\260\001\n" + "\025ValidateUrlMapRequest\022\027\n" + "\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n" + "\007url_map\030\214\225\201\257\001 \001(\tB\003\340A\002\022d\n" - + "\"url_maps_validate_request_resource\030\357\321\344\274\001 \001(\0132/.google.clo" - + "ud.compute.v1.UrlMapsValidateRequestB\003\340A\002\"\257\001\n" + + "\"url_maps_validate_request_resource\030\357\321\344\274\001" + + " \001(\0132/.google.cloud.compute.v1.UrlMapsValidateRequestB\003\340A\002\"\257\001\n" + "\025VmEndpointNatMappings\022\035\n\r" + "instance_name\030\365\347\330l \001(\tH\000\210\001\001\022e\n" - + "\026interface_nat_mappings\030\211\200\225z \003(\0132B.google.cloud.compute.v1." - + "VmEndpointNatMappingsInterfaceNatMappingsB\020\n" + + "\026interface_nat_mappings\030\211\200\225z \003(\0132B." + + "google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsB\020\n" + "\016_instance_name\"\342\003\n" + ")VmEndpointNatMappingsInterfaceNatMappings\022$\n" + "\030drain_nat_ip_port_ranges\030\301\343\307\274\001 \003(\t\022\036\n" @@ -26540,8 +26543,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031num_total_drain_nat_ports\030\371\245\377\237\001" + " \001(\005H\000\210\001\001\022$\n" + "\023num_total_nat_ports\030\200\333\200\217\001 \001(\005H\001\210\001\001\022l\n\r" - + "rule_mappings\030\310\356\352\347\001 \003(\0132Q.google.cloud.compute.v1.VmEndpoin" - + "tNatMappingsInterfaceNatMappingsNatRuleMappings\022&\n" + + "rule_mappings\030\310\356\352\347\001 \003(\0132Q.google.cl" + + "oud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings\022&\n" + "\025source_alias_ip_range\030\330\243\374\321\001 \001(\tH\002\210\001\001\022!\n" + "\021source_virtual_ip\030\377\242\271G \001(\tH\003\210\001\001B\034\n" + "\032_num_total_drain_nat_portsB\026\n" @@ -26562,8 +26565,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\002id\030\233\032 \001(\tH\000\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022A\n" - + "\006result\030\235\220\267B" - + " \003(\0132..google.cloud.compute.v1.VmEndpointNatMappings\022\032\n" + + "\006result\030\235\220\267B " + + "\003(\0132..google.cloud.compute.v1.VmEndpointNatMappings\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\0229\n" + "\007warning\030\234\337\226\030 \001(\0132" + " .google.cloud.compute.v1.WarningH\004\210\001\001B\005\n" @@ -26587,8 +26590,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tself_link\030\215\222\305\331\001 \001(\tH\t\210\001\001\022\033\n\n" + "stack_type\030\221\265\213\313\001 \001(\tH\n" + "\210\001\001\022Q\n" - + "\016vpn_interfaces\030\205\315\345+ \003(\01326.googl" - + "e.cloud.compute.v1.VpnGatewayVpnGatewayInterface\032-\n" + + "\016vpn_interfaces\030\205\315\345+" + + " \003(\01326.google.cloud.compute.v1.VpnGatewayVpnGatewayInterface\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"N\n" @@ -26612,12 +26615,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_nameB\n\n" + "\010_networkB\t\n" + "\007_regionB\014\n\n" - + "_self_linkB\r\n" + + "_self_linkB\r" + + "\n" + "\013_stack_type\"\277\003\n" + "\030VpnGatewayAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022N\n" - + "\005items\030\300\317\367/" - + " \003(\0132<.google.cloud.compute.v1.VpnGatewayAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132<" + + ".google.cloud.compute.v1.VpnGatewayAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -26626,11 +26630,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032\\\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022=\n" - + "\005value\030\002" - + " \001(\0132..google.cloud.compute.v1.VpnGatewaysScopedList:\0028\001B\005\n" + + "\005value\030\002 \001(\0132..google.c" + + "loud.compute.v1.VpnGatewaysScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" - + "\020_next_page_tokenB\014\n\n" + + "\020_next_page_tokenB\014\n" + + "\n" + "_self_linkB\n\n" + "\010_warning\"\245\002\n" + "\016VpnGatewayList\022\020\n" @@ -26647,8 +26652,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_self_linkB\n\n" + "\010_warning\"g\n" + "\020VpnGatewayStatus\022S\n" - + "\017vpn_connections\030\212\355\276\321\001 \003(\01326.google.cloud." - + "compute.v1.VpnGatewayStatusVpnConnection\"\321\002\n" + + "\017vpn_connections\030\212\355\276\321\001" + + " \003(\01326.google.cloud.compute.v1.VpnGatewayStatusVpnConnection\"\321\002\n" + "0VpnGatewayStatusHighAvailabilityRequirementState\022\025\n" + "\005state\030\221\211\2534 \001(\tH\000\210\001\001\022\"\n" + "\022unsatisfied_reason\030\212\367\235\032 \001(\tH\001\210\001\001\"f\n" @@ -26673,18 +26678,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035VpnGatewayStatusVpnConnection\022&\n" + "\025peer_external_gateway\030\215\356\307\267\001 \001(\tH\000\210\001\001\022!\n" + "\020peer_gcp_gateway\030\274\351\263\206\001 \001(\tH\001\210\001\001\022`\n" - + "\005state\030\221\211\2534 \001(\0132I.goog" - + "le.cloud.compute.v1.VpnGatewayStatusHighAvailabilityRequirementStateH\002\210\001\001\022C\n" - + "\007tunnels\030\213\372\3551" - + " \003(\0132/.google.cloud.compute.v1.VpnGatewayStatusTunnelB\030\n" + + "\005state\030\221\211\2534 \001(\0132I.google.cloud.compute" + + ".v1.VpnGatewayStatusHighAvailabilityRequirementStateH\002\210\001\001\022C\n" + + "\007tunnels\030\213\372\3551 \003(\0132/." + + "google.cloud.compute.v1.VpnGatewayStatusTunnelB\030\n" + "\026_peer_external_gatewayB\023\n" + "\021_peer_gcp_gatewayB\010\n" + "\006_state\"\332\001\n" + "\035VpnGatewayVpnGatewayInterface\022\020\n" + "\002id\030\233\032 \001(\r" + "H\000\210\001\001\022(\n" - + "\027interconnect_attachment\030\364\212\367\222\001 \001(" - + "\tH\001\210\001\001\022\033\n\n" + + "\027interconnect_attachment\030\364\212\367\222\001 \001(\tH\001\210\001\001\022\033\n" + + "\n" + "ip_address\030\334\361\334\301\001 \001(\tH\002\210\001\001\022\035\n" + "\014ipv6_address\030\234\263\357\242\001 \001(\tH\003\210\001\001B\005\n" + "\003_idB\032\n" @@ -26692,8 +26697,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_ip_addressB\017\n\r" + "_ipv6_address\"l\n" + "\034VpnGatewaysGetStatusResponse\022A\n" - + "\006result\030\235\220\267B \001(\0132).google" - + ".cloud.compute.v1.VpnGatewayStatusH\000\210\001\001B\t\n" + + "\006result\030\235\220\267B" + + " \001(\0132).google.cloud.compute.v1.VpnGatewayStatusH\000\210\001\001B\t\n" + "\007_result\"\234\001\n" + "\025VpnGatewaysScopedList\022<\n" + "\014vpn_gateways\030\232\373\312{" @@ -26709,8 +26714,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013ike_version\030\234\320\220h \001(\005H\004\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\005\210\001\001\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\006\210\001\001\022B\n" - + "\006labels\030\377\277\301\356\001" - + " \003(\0132..google.cloud.compute.v1.VpnTunnel.LabelsEntry\022\"\n" + + "\006labels\030\377\277\301\356\001 \003(\0132..google" + + ".cloud.compute.v1.VpnTunnel.LabelsEntry\022\"\n" + "\026local_traffic_selector\030\265\254\247\227\001 \003(\t\022\024\n" + "\004name\030\213\365\315\001 \001(\tH\007\210\001\001\022&\n" + "\025peer_external_gateway\030\215\356\307\267\001 \001(\tH\010\210\001\001\0220\n" @@ -26771,8 +26776,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026_vpn_gateway_interface\"\274\003\n" + "\027VpnTunnelAggregatedList\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001\022M\n" - + "\005items\030\300\317\367/ \003(\0132" - + ";.google.cloud.compute.v1.VpnTunnelAggregatedList.ItemsEntry\022\024\n" + + "\005items\030\300\317\367/ \003(\0132;.google.cloud.c" + + "ompute.v1.VpnTunnelAggregatedList.ItemsEntry\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n" + "\017next_page_token\030\225\272\206& \001(\tH\002\210\001\001\022\032\n" + "\tself_link\030\215\222\305\331\001 \001(\tH\003\210\001\001\022\027\n" @@ -26781,8 +26786,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.compute.v1.WarningH\004\210\001\001\032[\n\n" + "ItemsEntry\022\013\n" + "\003key\030\001 \001(\t\022<\n" - + "\005value\030\002 \001(\0132-.google.c" - + "loud.compute.v1.VpnTunnelsScopedList:\0028\001B\005\n" + + "\005value\030\002" + + " \001(\0132-.google.cloud.compute.v1.VpnTunnelsScopedList:\0028\001B\005\n" + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" @@ -26808,8 +26813,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_warning\"\214\001\n" + "\020WafExpressionSet\022\022\n" + "\007aliases\030\376\235\365K \003(\t\022K\n" - + "\013expressions\030\333\201\333S" - + " \003(\01323.google.cloud.compute.v1.WafExpressionSetExpression\022\020\n" + + "\013expressions\030\333\201\333S \003(" + + "\01323.google.cloud.compute.v1.WafExpressionSetExpression\022\020\n" + "\002id\030\233\032 \001(\tH\000\210\001\001B\005\n" + "\003_id\"b\n" + "\032WafExpressionSetExpression\022\020\n" @@ -26905,8 +26910,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010_message\"\317\001\n" + "\026WeightedBackendService\022 \n" + "\017backend_service\030\212\300\256\222\001 \001(\tH\000\210\001\001\022I\n\r" - + "header_action\030\250\240\270\234\001 \001(\0132)" - + ".google.cloud.compute.v1.HttpHeaderActionH\001\210\001\001\022\027\n" + + "header_action\030\250\240\270\234\001" + + " \001(\0132).google.cloud.compute.v1.HttpHeaderActionH\001\210\001\001\022\027\n" + "\006weight\030\370\204\305\206\001 \001(\r" + "H\002\210\001\001B\022\n" + "\020_backend_serviceB\020\n" @@ -26944,14 +26949,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004Type\022\022\n" + "\016UNDEFINED_TYPE\020\000\022\017\n" + "\007PROJECT\020\371\255\357\302\001\022$\n" - + "\035XPN_RESOURCE_TYPE_UNSPECIFIED\020\372\255\245HB\005\n" + + "\035XPN_RESOURCE_TYPE_UNSP", + "ECIFIED\020\372\255\245HB\005\n" + "\003_idB\007\n" + "\005_type\"\227\004\n" + "\004Zone\022\"\n" + "\027available_cpu_platforms\030\223\363\331S \003(\t\022\"\n" + "\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022G\n\n" - + "deprecated\030\263\313\321\365\001 \001(\0132*.google.c" - + "loud.compute.v1.DeprecationStatusH\001\210\001\001\022\034\n" + + "deprecated\030\263\313\321\365\001" + + " \001(\0132*.google.cloud.compute.v1.DeprecationStatusH\001\210\001\001\022\034\n" + "\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\020\n" + "\002id\030\233\032 \001(\004H\003\210\001\001\022\024\n" + "\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\022\024\n" @@ -26985,13 +26991,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003_idB\007\n" + "\005_kindB\022\n" + "\020_next_page_tokenB\014\n\n" - + "_self_linkB\n\n" + + "_self_linkB\n" + + "\n" + "\010_warning\"\315\001\n" + "\024ZoneSetLabelsRequest\022!\n" + "\021label_fingerprint\030\231\360\367T \001(\tH\000\210\001\001\022M\n" - + "\006labels\030\377\277\301\356\001 \003(\01329.google.clou" - + "d.compute.v1.ZoneSetLabelsRequest.Labels", - "Entry\032-\n" + + "\006labels\030\377\277\301\356\001" + + " \003(\01329.google.cloud.compute.v1.ZoneSetLabelsRequest.LabelsEntry\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001B\024\n" @@ -27005,5729 +27011,5736 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_etagB\t\n" + "\007_policy2\263\006\n" + "\020AcceleratorTypes\022\326\001\n" - + "\016AggregatedList\022>.google.cloud.compute.v1" - + ".AggregatedListAcceleratorTypesRequest\0326.google.cloud.compute.v1.AcceleratorType" - + "AggregatedList\"L\332A\007project\202\323\344\223\002<\022:/compu" - + "te/v1/projects/{project}/aggregated/acceleratorTypes\022\334\001\n" - + "\003Get\0222.google.cloud.compute.v1.GetAcceleratorTypeRequest\032(.googl" - + "e.cloud.compute.v1.AcceleratorType\"w\332A\035p" - + "roject,zone,accelerator_type\202\323\344\223\002Q\022O/com" - + "pute/v1/projects/{project}/zones/{zone}/acceleratorTypes/{accelerator_type}\022\277\001\n" - + "\004List\0224.google.cloud.compute.v1.ListAccel" - + "eratorTypesRequest\032,.google.cloud.comput" - + "e.v1.AcceleratorTypeList\"S\332A\014project,zon" - + "e\202\323\344\223\002>\022.google.cloud.compute.v1.AggregatedListA" + + "cceleratorTypesRequest\0326.google.cloud.compute.v1.AcceleratorTypeAggregatedList\"L" + + "\332A\007project\202\323\344\223\002<\022:/compute/v1/projects/{project}/aggregated/acceleratorTypes\022\334\001\n" + + "\003Get\0222.google.cloud.compute.v1.GetAccele" + + "ratorTypeRequest\032(.google.cloud.compute." + + "v1.AcceleratorType\"w\332A\035project,zone,acce" + + "lerator_type\202\323\344\223\002Q\022O/compute/v1/projects" + + "/{project}/zones/{zone}/acceleratorTypes/{accelerator_type}\022\277\001\n" + + "\004List\0224.google.cloud.compute.v1.ListAcceleratorTypesReque" + + "st\032,.google.cloud.compute.v1.Accelerator" + + "TypeList\"S\332A\014project,zone\202\323\344\223\002>\022project,zone,disk" - + ",disks_add_resource_policies_request_res" - + "ource\212N\016ZoneOperations\202\323\344\223\002|\"L/compute/v" - + "1/projects/{project}/zones/{zone}/disks/" - + "{disk}/addResourcePolicies:,disks_add_resource_policies_request_resource\022\265\001\n" - + "\016AggregatedList\0223.google.cloud.compute.v1.Ag" - + "gregatedListDisksRequest\032+.google.cloud." - + "compute.v1.DiskAggregatedList\"A\332A\007projec" - + "t\202\323\344\223\0021\022//compute/v1/projects/{project}/aggregated/disks\022\216\002\n\n" - + "BulkInsert\022..google.cloud.compute.v1.BulkInsertDiskRequest\032" - + "\".google.cloud.compute.v1.Operation\"\253\001\332A" - + "/project,zone,bulk_insert_disk_resource_" - + "resource\212N\016ZoneOperations\202\323\344\223\002b\"project,zone,disk,disks_add_resou" + + "rce_policies_request_resource\212N\016ZoneOper" + + "ations\202\323\344\223\002|\"L/compute/v1/projects/{proj" + + "ect}/zones/{zone}/disks/{disk}/addResour" + + "cePolicies:,disks_add_resource_policies_request_resource\022\265\001\n" + + "\016AggregatedList\0223.google.cloud.compute.v1.AggregatedListDisk" + + "sRequest\032+.google.cloud.compute.v1.DiskA" + + "ggregatedList\"A\332A\007project\202\323\344\223\0021\022//comput" + + "e/v1/projects/{project}/aggregated/disks\022\216\002\n\n" + + "BulkInsert\022..google.cloud.compute.v1.BulkInsertDiskRequest\032\".google.cloud.c" + + "ompute.v1.Operation\"\253\001\332A/project,zone,bu" + + "lk_insert_disk_resource_resource\212N\016ZoneO" + + "perations\202\323\344\223\002b\".google.cloud.compute.v1.ListAssoci" - + "ationsFirewallPolicyRequest\032A.google.clo" - + "ud.compute.v1.FirewallPoliciesListAssoci" - + "ationsResponse\"I\332A\000\202\323\344\223\002@\022>/compute/v1/l" - + "ocations/global/firewallPolicies/listAss" - + "ociations\022\350\001\n\004Move\0222.google.cloud.comput" - + "e.v1.MoveFirewallPolicyRequest\032\".google." - + "cloud.compute.v1.Operation\"\207\001\332A\031firewall" - + "_policy,parent_id\212N\034GlobalOrganizationOp" - + "erations\202\323\344\223\002F\"D/compute/v1/locations/gl" - + "obal/firewallPolicies/{firewall_policy}/" - + "move\022\216\002\n\005Patch\0223.google.cloud.compute.v1" - + ".PatchFirewallPolicyRequest\032\".google.clo" - + "ud.compute.v1.Operation\"\253\001\332A(firewall_po" - + "licy,firewall_policy_resource\212N\034GlobalOr" - + "ganizationOperations\202\323\344\223\002[2?/compute/v1/" - + "locations/global/firewallPolicies/{firew" - + "all_policy}:\030firewall_policy_resource\022\252\002" - + "\n\tPatchRule\0227.google.cloud.compute.v1.Pa" - + "tchRuleFirewallPolicyRequest\032\".google.cl" - + "oud.compute.v1.Operation\"\277\001\332A-firewall_p" - + "olicy,firewall_policy_rule_resource\212N\034Gl" - + "obalOrganizationOperations\202\323\344\223\002j\"I/compu" - + "te/v1/locations/global/firewallPolicies/" - + "{firewall_policy}/patchRule:\035firewall_po" - + "licy_rule_resource\022\205\002\n\021RemoveAssociation" - + "\022?.google.cloud.compute.v1.RemoveAssocia" - + "tionFirewallPolicyRequest\032\".google.cloud" - + ".compute.v1.Operation\"\212\001\332A\017firewall_poli" - + "cy\212N\034GlobalOrganizationOperations\202\323\344\223\002S\"" - + "Q/compute/v1/locations/global/firewallPo" - + "licies/{firewall_policy}/removeAssociati" - + "on\022\360\001\n\nRemoveRule\0228.google.cloud.compute" - + ".v1.RemoveRuleFirewallPolicyRequest\032\".go" + + "on\"\251\001\332A/project,zone,disk,disks_resize_r" + + "equest_resource\212N\016ZoneOperations\202\323\344\223\002`\"?" + + "/compute/v1/projects/{project}/zones/{zo" + + "ne}/disks/{disk}/resize:\035disks_resize_re" + + "quest_resource\022\220\002\n\014SetIamPolicy\0220.google" + + ".cloud.compute.v1.SetIamPolicyDiskReques" + + "t\032\037.google.cloud.compute.v1.Policy\"\254\001\332A6" + + "project,zone,resource,zone_set_policy_re" + + "quest_resource\202\323\344\223\002m\"I/compute/v1/projec" + + "ts/{project}/zones/{zone}/disks/{resourc" + + "e}/setIamPolicy: zone_set_policy_request" + + "_resource\022\233\002\n\tSetLabels\022-.google.cloud.c" + + "ompute.v1.SetLabelsDiskRequest\032\".google." + + "cloud.compute.v1.Operation\"\272\001\332A6project," + + "zone,resource,zone_set_labels_request_re" + + "source\212N\016ZoneOperations\202\323\344\223\002j\"F/compute/" + + "v1/projects/{project}/zones/{zone}/disks" + + "/{resource}/setLabels: zone_set_labels_r" + + "equest_resource\022\324\002\n\025StartAsyncReplicatio" + + "n\0229.google.cloud.compute.v1.StartAsyncRe" + + "plicationDiskRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"\333\001\332A@project,zone,disk," + + "disks_start_async_replication_request_re" + + "source\212N\016ZoneOperations\202\323\344\223\002\200\001\"N/compute" + + "/v1/projects/{project}/zones/{zone}/disk" + + "s/{disk}/startAsyncReplication:.disks_st" + + "art_async_replication_request_resource\022\360" + + "\001\n\024StopAsyncReplication\0228.google.cloud.c" + + "ompute.v1.StopAsyncReplicationDiskReques" + + "t\032\".google.cloud.compute.v1.Operation\"z\332" + + "A\021project,zone,disk\212N\016ZoneOperations\202\323\344\223" + + "\002O\"M/compute/v1/projects/{project}/zones" + + "/{zone}/disks/{disk}/stopAsyncReplicatio" + + "n\022\340\002\n\031StopGroupAsyncReplication\022=.google" + + ".cloud.compute.v1.StopGroupAsyncReplicat" + + "ionDiskRequest\032\".google.cloud.compute.v1" + + ".Operation\"\337\001\332AAproject,zone,disks_stop_" + + "group_async_replication_resource_resourc" + + "e\212N\016ZoneOperations\202\323\344\223\002\203\001\"K/compute/v1/p" + + "rojects/{project}/zones/{zone}/disks/sto" + + "pGroupAsyncReplication:4disks_stop_group" + + "_async_replication_resource_resource\022\265\002\n" + + "\022TestIamPermissions\0226.google.cloud.compu" + + "te.v1.TestIamPermissionsDiskRequest\0320.go" + + "ogle.cloud.compute.v1.TestPermissionsRes" + + "ponse\"\264\001\332A7project,zone,resource,test_pe" + + "rmissions_request_resource\202\323\344\223\002t\"O/compu" + + "te/v1/projects/{project}/zones/{zone}/di" + + "sks/{resource}/testIamPermissions:!test_" + + "permissions_request_resource\022\335\001\n\006Update\022" + + "*.google.cloud.compute.v1.UpdateDiskRequ" + + "est\032\".google.cloud.compute.v1.Operation\"" + + "\202\001\332A\037project,zone,disk,disk_resource\212N\016Z" + + "oneOperations\202\323\344\223\002I28/compute/v1/project" + + "s/{project}/zones/{zone}/disks/{disk}:\rd" + + "isk_resource\032r\312A\026compute.googleapis.com\322" + + "AVhttps://www.googleapis.com/auth/comput" + + "e,https://www.googleapis.com/auth/cloud-" + + "platform2\251\r\n\023ExternalVpnGateways\022\363\001\n\006Del" + + "ete\0228.google.cloud.compute.v1.DeleteExte" + + "rnalVpnGatewayRequest\032\".google.cloud.com" + + "pute.v1.Operation\"\212\001\332A\034project,external_" + + "vpn_gateway\212N\020GlobalOperations\202\323\344\223\002R*P/c" + + "ompute/v1/projects/{project}/global/exte" + + "rnalVpnGateways/{external_vpn_gateway}\022\342" + + "\001\n\003Get\0225.google.cloud.compute.v1.GetExte" + + "rnalVpnGatewayRequest\032+.google.cloud.com" + + "pute.v1.ExternalVpnGateway\"w\332A\034project,e" + + "xternal_vpn_gateway\202\323\344\223\002R\022P/compute/v1/p" + + "rojects/{project}/global/externalVpnGate" + + "ways/{external_vpn_gateway}\022\204\002\n\006Insert\0228" + + ".google.cloud.compute.v1.InsertExternalV" + + "pnGatewayRequest\032\".google.cloud.compute." + + "v1.Operation\"\233\001\332A%project,external_vpn_g" + + "ateway_resource\212N\020GlobalOperations\202\323\344\223\002Z" + + "\"9/compute/v1/projects/{project}/global/" + + "externalVpnGateways:\035external_vpn_gatewa" + + "y_resource\022\275\001\n\004List\0227.google.cloud.compu" + + "te.v1.ListExternalVpnGatewaysRequest\032/.g" + + "oogle.cloud.compute.v1.ExternalVpnGatewa" + + "yList\"K\332A\007project\202\323\344\223\002;\0229/compute/v1/pro" + + "jects/{project}/global/externalVpnGatewa" + + "ys\022\262\002\n\tSetLabels\022;.google.cloud.compute." + + "v1.SetLabelsExternalVpnGatewayRequest\032\"." + + "google.cloud.compute.v1.Operation\"\303\001\332A3p" + + "roject,resource,global_set_labels_reques" + + "t_resource\212N\020GlobalOperations\202\323\344\223\002t\"N/co" + + "mpute/v1/projects/{project}/global/exter" + + "nalVpnGateways/{resource}/setLabels:\"glo" + + "bal_set_labels_request_resource\022\306\002\n\022Test" + + "IamPermissions\022D.google.cloud.compute.v1" + + ".TestIamPermissionsExternalVpnGatewayReq" + + "uest\0320.google.cloud.compute.v1.TestPermi" + + "ssionsResponse\"\267\001\332A2project,resource,tes" + + "t_permissions_request_resource\202\323\344\223\002|\"W/c" + + "ompute/v1/projects/{project}/global/exte" + + "rnalVpnGateways/{resource}/testIamPermis" + + "sions:!test_permissions_request_resource" + + "\032r\312A\026compute.googleapis.com\322AVhttps://ww" + + "w.googleapis.com/auth/compute,https://ww" + + "w.googleapis.com/auth/cloud-platform2\225$\n" + + "\020FirewallPolicies\022\307\002\n\016AddAssociation\022<.g" + + "oogle.cloud.compute.v1.AddAssociationFir" + + "ewallPolicyRequest\032\".google.cloud.comput" + + "e.v1.Operation\"\322\001\332A4firewall_policy,fire" + + "wall_policy_association_resource\212N\034Globa" + + "lOrganizationOperations\202\323\344\223\002v\"N/compute/" + + "v1/locations/global/firewallPolicies/{fi" + + "rewall_policy}/addAssociation:$firewall_" + + "policy_association_resource\022\244\002\n\007AddRule\022" + + "5.google.cloud.compute.v1.AddRuleFirewal" + + "lPolicyRequest\032\".google.cloud.compute.v1" + + ".Operation\"\275\001\332A-firewall_policy,firewall" + + "_policy_rule_resource\212N\034GlobalOrganizati" + + "onOperations\202\323\344\223\002h\"G/compute/v1/location" + + "s/global/firewallPolicies/{firewall_poli" + + "cy}/addRule:\035firewall_policy_rule_resour" + + "ce\022\360\001\n\nCloneRules\0228.google.cloud.compute" + + ".v1.CloneRulesFirewallPolicyRequest\032\".go" + "ogle.cloud.compute.v1.Operation\"\203\001\332A\017fir" + "ewall_policy\212N\034GlobalOrganizationOperati" + "ons\202\323\344\223\002L\"J/compute/v1/locations/global/" - + "firewallPolicies/{firewall_policy}/remov" - + "eRule\022\247\002\n\014SetIamPolicy\022:.google.cloud.co" - + "mpute.v1.SetIamPolicyFirewallPolicyReque" - + "st\032\037.google.cloud.compute.v1.Policy\"\271\001\332A" - + "8resource,global_organization_set_policy" - + "_request_resource\202\323\344\223\002x\"E/compute/v1/loc" - + "ations/global/firewallPolicies/{resource" - + "}/setIamPolicy:/global_organization_set_" - + "policy_request_resource\022\256\002\n\022TestIamPermi" - + "ssions\022@.google.cloud.compute.v1.TestIam" - + "PermissionsFirewallPolicyRequest\0320.googl" - + "e.cloud.compute.v1.TestPermissionsRespon" - + "se\"\243\001\332A*resource,test_permissions_reques" - + "t_resource\202\323\344\223\002p\"K/compute/v1/locations/" - + "global/firewallPolicies/{resource}/testI" - + "amPermissions:!test_permissions_request_" - + "resource\032r\312A\026compute.googleapis.com\322AVht" - + "tps://www.googleapis.com/auth/compute,ht" - + "tps://www.googleapis.com/auth/cloud-plat" - + "form2\317\n\n\tFirewalls\022\306\001\n\006Delete\022..google.c" - + "loud.compute.v1.DeleteFirewallRequest\032\"." - + "google.cloud.compute.v1.Operation\"h\332A\020pr" - + "oject,firewall\212N\020GlobalOperations\202\323\344\223\002<*" - + ":/compute/v1/projects/{project}/global/f" - + "irewalls/{firewall}\022\254\001\n\003Get\022+.google.clo" - + "ud.compute.v1.GetFirewallRequest\032!.googl" - + "e.cloud.compute.v1.Firewall\"U\332A\020project," - + "firewall\202\323\344\223\002<\022:/compute/v1/projects/{pr" - + "oject}/global/firewalls/{firewall}\022\327\001\n\006I" - + "nsert\022..google.cloud.compute.v1.InsertFi" - + "rewallRequest\032\".google.cloud.compute.v1." - + "Operation\"y\332A\031project,firewall_resource\212" - + "N\020GlobalOperations\202\323\344\223\002D\"//compute/v1/pr" - + "ojects/{project}/global/firewalls:\021firew" - + "all_resource\022\237\001\n\004List\022-.google.cloud.com" - + "pute.v1.ListFirewallsRequest\032%.google.cl" - + "oud.compute.v1.FirewallList\"A\332A\007project\202" - + "\323\344\223\0021\022//compute/v1/projects/{project}/gl" - + "obal/firewalls\022\352\001\n\005Patch\022-.google.cloud." - + "compute.v1.PatchFirewallRequest\032\".google" - + ".cloud.compute.v1.Operation\"\215\001\332A\"project" - + ",firewall,firewall_resource\212N\020GlobalOper" - + "ations\202\323\344\223\002O2:/compute/v1/projects/{proj" - + "ect}/global/firewalls/{firewall}:\021firewa" - + "ll_resource\022\354\001\n\006Update\022..google.cloud.co" - + "mpute.v1.UpdateFirewallRequest\032\".google." - + "cloud.compute.v1.Operation\"\215\001\332A\"project," - + "firewall,firewall_resource\212N\020GlobalOpera" - + "tions\202\323\344\223\002O\032:/compute/v1/projects/{proje" - + "ct}/global/firewalls/{firewall}:\021firewal" - + "l_resource\032r\312A\026compute.googleapis.com\322AV" - + "https://www.googleapis.com/auth/compute," - + "https://www.googleapis.com/auth/cloud-pl" - + "atform2\231\021\n\017ForwardingRules\022\323\001\n\016Aggregate" - + "dList\022=.google.cloud.compute.v1.Aggregat" - + "edListForwardingRulesRequest\0325.google.cl" - + "oud.compute.v1.ForwardingRuleAggregatedL" - + "ist\"K\332A\007project\202\323\344\223\002;\0229/compute/v1/proje" - + "cts/{project}/aggregated/forwardingRules" - + "\022\362\001\n\006Delete\0224.google.cloud.compute.v1.De" - + "leteForwardingRuleRequest\032\".google.cloud" - + ".compute.v1.Operation\"\215\001\332A\036project,regio" - + "n,forwarding_rule\212N\020RegionOperations\202\323\344\223" - + "\002S*Q/compute/v1/projects/{project}/regio" - + "ns/{region}/forwardingRules/{forwarding_" - + "rule}\022\335\001\n\003Get\0221.google.cloud.compute.v1." - + "GetForwardingRuleRequest\032\'.google.cloud." - + "compute.v1.ForwardingRule\"z\332A\036project,re" - + "gion,forwarding_rule\202\323\344\223\002S\022Q/compute/v1/" + + "firewallPolicies/{firewall_policy}/clone" + + "Rules\022\334\001\n\006Delete\0224.google.cloud.compute." + + "v1.DeleteFirewallPolicyRequest\032\".google." + + "cloud.compute.v1.Operation\"x\332A\017firewall_" + + "policy\212N\034GlobalOrganizationOperations\202\323\344" + + "\223\002A*?/compute/v1/locations/global/firewa" + + "llPolicies/{firewall_policy}\022\274\001\n\003Get\0221.g" + + "oogle.cloud.compute.v1.GetFirewallPolicy" + + "Request\032\'.google.cloud.compute.v1.Firewa" + + "llPolicy\"Y\332A\017firewall_policy\202\323\344\223\002A\022?/com" + + "pute/v1/locations/global/firewallPolicie" + + "s/{firewall_policy}\022\354\001\n\016GetAssociation\022<" + + ".google.cloud.compute.v1.GetAssociationF" + + "irewallPolicyRequest\0322.google.cloud.comp" + + "ute.v1.FirewallPolicyAssociation\"h\332A\017fir" + + "ewall_policy\202\323\344\223\002P\022N/compute/v1/location" + + "s/global/firewallPolicies/{firewall_poli" + + "cy}/getAssociation\022\305\001\n\014GetIamPolicy\022:.go" + + "ogle.cloud.compute.v1.GetIamPolicyFirewa" + + "llPolicyRequest\032\037.google.cloud.compute.v" + + "1.Policy\"X\332A\010resource\202\323\344\223\002G\022E/compute/v1" + + "/locations/global/firewallPolicies/{reso" + + "urce}/getIamPolicy\022\320\001\n\007GetRule\0225.google." + + "cloud.compute.v1.GetRuleFirewallPolicyRe" + + "quest\032+.google.cloud.compute.v1.Firewall" + + "PolicyRule\"a\332A\017firewall_policy\202\323\344\223\002I\022G/c" + + "ompute/v1/locations/global/firewallPolic" + + "ies/{firewall_policy}/getRule\022\370\001\n\006Insert" + + "\0224.google.cloud.compute.v1.InsertFirewal" + + "lPolicyRequest\032\".google.cloud.compute.v1" + + ".Operation\"\223\001\332A\"parent_id,firewall_polic" + + "y_resource\212N\034GlobalOrganizationOperation" + + "s\202\323\344\223\002I\"-/compute/v1/locations/global/fi" + + "rewallPolicies:\030firewall_policy_resource" + + "\022\243\001\n\004List\0224.google.cloud.compute.v1.List" + + "FirewallPoliciesRequest\032+.google.cloud.c" + + "ompute.v1.FirewallPolicyList\"8\332A\000\202\323\344\223\002/\022" + + "-/compute/v1/locations/global/firewallPo" + + "licies\022\340\001\n\020ListAssociations\022>.google.clo" + + "ud.compute.v1.ListAssociationsFirewallPo" + + "licyRequest\032A.google.cloud.compute.v1.Fi" + + "rewallPoliciesListAssociationsResponse\"I" + + "\332A\000\202\323\344\223\002@\022>/compute/v1/locations/global/" + + "firewallPolicies/listAssociations\022\350\001\n\004Mo" + + "ve\0222.google.cloud.compute.v1.MoveFirewal" + + "lPolicyRequest\032\".google.cloud.compute.v1" + + ".Operation\"\207\001\332A\031firewall_policy,parent_i" + + "d\212N\034GlobalOrganizationOperations\202\323\344\223\002F\"D" + + "/compute/v1/locations/global/firewallPol" + + "icies/{firewall_policy}/move\022\216\002\n\005Patch\0223" + + ".google.cloud.compute.v1.PatchFirewallPo" + + "licyRequest\032\".google.cloud.compute.v1.Op" + + "eration\"\253\001\332A(firewall_policy,firewall_po" + + "licy_resource\212N\034GlobalOrganizationOperat" + + "ions\202\323\344\223\002[2?/compute/v1/locations/global" + + "/firewallPolicies/{firewall_policy}:\030fir" + + "ewall_policy_resource\022\252\002\n\tPatchRule\0227.go" + + "ogle.cloud.compute.v1.PatchRuleFirewallP" + + "olicyRequest\032\".google.cloud.compute.v1.O" + + "peration\"\277\001\332A-firewall_policy,firewall_p" + + "olicy_rule_resource\212N\034GlobalOrganization" + + "Operations\202\323\344\223\002j\"I/compute/v1/locations/" + + "global/firewallPolicies/{firewall_policy" + + "}/patchRule:\035firewall_policy_rule_resour" + + "ce\022\205\002\n\021RemoveAssociation\022?.google.cloud." + + "compute.v1.RemoveAssociationFirewallPoli" + + "cyRequest\032\".google.cloud.compute.v1.Oper" + + "ation\"\212\001\332A\017firewall_policy\212N\034GlobalOrgan" + + "izationOperations\202\323\344\223\002S\"Q/compute/v1/loc" + + "ations/global/firewallPolicies/{firewall" + + "_policy}/removeAssociation\022\360\001\n\nRemoveRul" + + "e\0228.google.cloud.compute.v1.RemoveRuleFi" + + "rewallPolicyRequest\032\".google.cloud.compu" + + "te.v1.Operation\"\203\001\332A\017firewall_policy\212N\034G" + + "lobalOrganizationOperations\202\323\344\223\002L\"J/comp" + + "ute/v1/locations/global/firewallPolicies" + + "/{firewall_policy}/removeRule\022\247\002\n\014SetIam" + + "Policy\022:.google.cloud.compute.v1.SetIamP" + + "olicyFirewallPolicyRequest\032\037.google.clou" + + "d.compute.v1.Policy\"\271\001\332A8resource,global" + + "_organization_set_policy_request_resourc" + + "e\202\323\344\223\002x\"E/compute/v1/locations/global/fi" + + "rewallPolicies/{resource}/setIamPolicy:/" + + "global_organization_set_policy_request_r" + + "esource\022\256\002\n\022TestIamPermissions\022@.google." + + "cloud.compute.v1.TestIamPermissionsFirew" + + "allPolicyRequest\0320.google.cloud.compute." + + "v1.TestPermissionsResponse\"\243\001\332A*resource" + + ",test_permissions_request_resource\202\323\344\223\002p" + + "\"K/compute/v1/locations/global/firewallP" + + "olicies/{resource}/testIamPermissions:!t" + + "est_permissions_request_resource\032r\312A\026com" + + "pute.googleapis.com\322AVhttps://www.google" + + "apis.com/auth/compute,https://www.google" + + "apis.com/auth/cloud-platform2\317\n\n\tFirewal" + + "ls\022\306\001\n\006Delete\022..google.cloud.compute.v1." + + "DeleteFirewallRequest\032\".google.cloud.com" + + "pute.v1.Operation\"h\332A\020project,firewall\212N" + + "\020GlobalOperations\202\323\344\223\002<*:/compute/v1/pro" + + "jects/{project}/global/firewalls/{firewa" + + "ll}\022\254\001\n\003Get\022+.google.cloud.compute.v1.Ge" + + "tFirewallRequest\032!.google.cloud.compute." + + "v1.Firewall\"U\332A\020project,firewall\202\323\344\223\002<\022:" + + "/compute/v1/projects/{project}/global/fi" + + "rewalls/{firewall}\022\327\001\n\006Insert\022..google.c" + + "loud.compute.v1.InsertFirewallRequest\032\"." + + "google.cloud.compute.v1.Operation\"y\332A\031pr" + + "oject,firewall_resource\212N\020GlobalOperatio" + + "ns\202\323\344\223\002D\"//compute/v1/projects/{project}" + + "/global/firewalls:\021firewall_resource\022\237\001\n" + + "\004List\022-.google.cloud.compute.v1.ListFire" + + "wallsRequest\032%.google.cloud.compute.v1.F" + + "irewallList\"A\332A\007project\202\323\344\223\0021\022//compute/" + + "v1/projects/{project}/global/firewalls\022\352" + + "\001\n\005Patch\022-.google.cloud.compute.v1.Patch" + + "FirewallRequest\032\".google.cloud.compute.v" + + "1.Operation\"\215\001\332A\"project,firewall,firewa" + + "ll_resource\212N\020GlobalOperations\202\323\344\223\002O2:/c" + + "ompute/v1/projects/{project}/global/fire" + + "walls/{firewall}:\021firewall_resource\022\354\001\n\006" + + "Update\022..google.cloud.compute.v1.UpdateF" + + "irewallRequest\032\".google.cloud.compute.v1" + + ".Operation\"\215\001\332A\"project,firewall,firewal" + + "l_resource\212N\020GlobalOperations\202\323\344\223\002O\032:/co" + + "mpute/v1/projects/{project}/global/firew" + + "alls/{firewall}:\021firewall_resource\032r\312A\026c" + + "ompute.googleapis.com\322AVhttps://www.goog" + + "leapis.com/auth/compute,https://www.goog" + + "leapis.com/auth/cloud-platform2\231\021\n\017Forwa" + + "rdingRules\022\323\001\n\016AggregatedList\022=.google.c" + + "loud.compute.v1.AggregatedListForwarding" + + "RulesRequest\0325.google.cloud.compute.v1.F" + + "orwardingRuleAggregatedList\"K\332A\007project\202" + + "\323\344\223\002;\0229/compute/v1/projects/{project}/ag" + + "gregated/forwardingRules\022\362\001\n\006Delete\0224.go" + + "ogle.cloud.compute.v1.DeleteForwardingRu" + + "leRequest\032\".google.cloud.compute.v1.Oper" + + "ation\"\215\001\332A\036project,region,forwarding_rul" + + "e\212N\020RegionOperations\202\323\344\223\002S*Q/compute/v1/" + "projects/{project}/regions/{region}/forw" - + "ardingRules/{forwarding_rule}\022\203\002\n\006Insert" - + "\0224.google.cloud.compute.v1.InsertForward" - + "ingRuleRequest\032\".google.cloud.compute.v1" - + ".Operation\"\236\001\332A\'project,region,forwardin" - + "g_rule_resource\212N\020RegionOperations\202\323\344\223\002[" - + "\"?/compute/v1/projects/{project}/regions" - + "/{region}/forwardingRules:\030forwarding_ru" - + "le_resource\022\302\001\n\004List\0223.google.cloud.comp" - + "ute.v1.ListForwardingRulesRequest\032+.goog" - + "le.cloud.compute.v1.ForwardingRuleList\"X" - + "\332A\016project,region\202\323\344\223\002A\022?/compute/v1/pro" - + "jects/{project}/regions/{region}/forward" - + "ingRules\022\243\002\n\005Patch\0223.google.cloud.comput" - + "e.v1.PatchForwardingRuleRequest\032\".google" - + ".cloud.compute.v1.Operation\"\300\001\332A7project" - + ",region,forwarding_rule,forwarding_rule_" - + "resource\212N\020RegionOperations\202\323\344\223\002m2Q/comp" - + "ute/v1/projects/{project}/regions/{regio" - + "n}/forwardingRules/{forwarding_rule}:\030fo" - + "rwarding_rule_resource\022\273\002\n\tSetLabels\0227.g" - + "oogle.cloud.compute.v1.SetLabelsForwardi" - + "ngRuleRequest\032\".google.cloud.compute.v1." - + "Operation\"\320\001\332A:project,region,resource,r" - + "egion_set_labels_request_resource\212N\020Regi" - + "onOperations\202\323\344\223\002z\"T/compute/v1/projects" - + "/{project}/regions/{region}/forwardingRu" - + "les/{resource}/setLabels:\"region_set_lab" - + "els_request_resource\022\267\002\n\tSetTarget\0227.goo" - + "gle.cloud.compute.v1.SetTargetForwarding" - + "RuleRequest\032\".google.cloud.compute.v1.Op" - + "eration\"\314\001\332A8project,region,forwarding_r" - + "ule,target_reference_resource\212N\020RegionOp" - + "erations\202\323\344\223\002x\"[/compute/v1/projects/{pr" - + "oject}/regions/{region}/forwardingRules/" - + "{forwarding_rule}/setTarget:\031target_refe" - + "rence_resource\032r\312A\026compute.googleapis.co" - + "m\322AVhttps://www.googleapis.com/auth/comp" - + "ute,https://www.googleapis.com/auth/clou" - + "d-platform2\311\013\n\017GlobalAddresses\022\311\001\n\006Delet" - + "e\0223.google.cloud.compute.v1.DeleteGlobal" - + "AddressRequest\032\".google.cloud.compute.v1" - + ".Operation\"f\332A\017project,address\212N\020GlobalO" - + "perations\202\323\344\223\002;*9/compute/v1/projects/{p" - + "roject}/global/addresses/{address}\022\256\001\n\003G" - + "et\0220.google.cloud.compute.v1.GetGlobalAd" - + "dressRequest\032 .google.cloud.compute.v1.A" - + "ddress\"S\332A\017project,address\202\323\344\223\002;\0229/compu" - + "te/v1/projects/{project}/global/addresse" - + "s/{address}\022\332\001\n\006Insert\0223.google.cloud.co" - + "mpute.v1.InsertGlobalAddressRequest\032\".go" - + "ogle.cloud.compute.v1.Operation\"w\332A\030proj" - + "ect,address_resource\212N\020GlobalOperations\202" - + "\323\344\223\002C\"//compute/v1/projects/{project}/gl" - + "obal/addresses:\020address_resource\022\244\001\n\004Lis" - + "t\0223.google.cloud.compute.v1.ListGlobalAd" - + "dressesRequest\032$.google.cloud.compute.v1" - + ".AddressList\"A\332A\007project\202\323\344\223\0021\022//compute" - + "/v1/projects/{project}/global/addresses\022" - + "\232\002\n\004Move\0221.google.cloud.compute.v1.MoveG" - + "lobalAddressRequest\032\".google.cloud.compu" - + "te.v1.Operation\"\272\001\332A6project,address,glo" - + "bal_addresses_move_request_resource\212N\020Gl" - + "obalOperations\202\323\344\223\002h\">/compute/v1/projec" - + "ts/{project}/global/addresses/{address}/" - + "move:&global_addresses_move_request_reso" - + "urce\022\243\002\n\tSetLabels\0226.google.cloud.comput" - + "e.v1.SetLabelsGlobalAddressRequest\032\".goo" - + "gle.cloud.compute.v1.Operation\"\271\001\332A3proj" - + "ect,resource,global_set_labels_request_r" - + "esource\212N\020GlobalOperations\202\323\344\223\002j\"D/compu" - + "te/v1/projects/{project}/global/addresse" - + "s/{resource}/setLabels:\"global_set_label" - + "s_request_resource\032r\312A\026compute.googleapi" - + "s.com\322AVhttps://www.googleapis.com/auth/" - + "compute,https://www.googleapis.com/auth/" - + "cloud-platform2\373\016\n\025GlobalForwardingRules" - + "\022\346\001\n\006Delete\022:.google.cloud.compute.v1.De" - + "leteGlobalForwardingRuleRequest\032\".google" - + ".cloud.compute.v1.Operation\"|\332A\027project," - + "forwarding_rule\212N\020GlobalOperations\202\323\344\223\002I" - + "*G/compute/v1/projects/{project}/global/" - + "forwardingRules/{forwarding_rule}\022\322\001\n\003Ge" - + "t\0227.google.cloud.compute.v1.GetGlobalFor" - + "wardingRuleRequest\032\'.google.cloud.comput" - + "e.v1.ForwardingRule\"i\332A\027project,forwardi" - + "ng_rule\202\323\344\223\002I\022G/compute/v1/projects/{pro" - + "ject}/global/forwardingRules/{forwarding" - + "_rule}\022\370\001\n\006Insert\022:.google.cloud.compute" - + ".v1.InsertGlobalForwardingRuleRequest\032\"." - + "google.cloud.compute.v1.Operation\"\215\001\332A p" - + "roject,forwarding_rule_resource\212N\020Global" - + "Operations\202\323\344\223\002Q\"5/compute/v1/projects/{" - + "project}/global/forwardingRules:\030forward" - + "ing_rule_resource\022\267\001\n\004List\0229.google.clou" - + "d.compute.v1.ListGlobalForwardingRulesRe" - + "quest\032+.google.cloud.compute.v1.Forwardi" - + "ngRuleList\"G\332A\007project\202\323\344\223\0027\0225/compute/v" - + "1/projects/{project}/global/forwardingRu" - + "les\022\230\002\n\005Patch\0229.google.cloud.compute.v1." - + "PatchGlobalForwardingRuleRequest\032\".googl" - + "e.cloud.compute.v1.Operation\"\257\001\332A0projec" - + "t,forwarding_rule,forwarding_rule_resour" - + "ce\212N\020GlobalOperations\202\323\344\223\002c2G/compute/v1" - + "/projects/{project}/global/forwardingRul" + + "ardingRules/{forwarding_rule}\022\335\001\n\003Get\0221." + + "google.cloud.compute.v1.GetForwardingRul" + + "eRequest\032\'.google.cloud.compute.v1.Forwa" + + "rdingRule\"z\332A\036project,region,forwarding_" + + "rule\202\323\344\223\002S\022Q/compute/v1/projects/{projec" + + "t}/regions/{region}/forwardingRules/{for" + + "warding_rule}\022\203\002\n\006Insert\0224.google.cloud." + + "compute.v1.InsertForwardingRuleRequest\032\"" + + ".google.cloud.compute.v1.Operation\"\236\001\332A\'" + + "project,region,forwarding_rule_resource\212" + + "N\020RegionOperations\202\323\344\223\002[\"?/compute/v1/pr" + + "ojects/{project}/regions/{region}/forwar" + + "dingRules:\030forwarding_rule_resource\022\302\001\n\004" + + "List\0223.google.cloud.compute.v1.ListForwa" + + "rdingRulesRequest\032+.google.cloud.compute" + + ".v1.ForwardingRuleList\"X\332A\016project,regio" + + "n\202\323\344\223\002A\022?/compute/v1/projects/{project}/" + + "regions/{region}/forwardingRules\022\243\002\n\005Pat" + + "ch\0223.google.cloud.compute.v1.PatchForwar" + + "dingRuleRequest\032\".google.cloud.compute.v" + + "1.Operation\"\300\001\332A7project,region,forwardi" + + "ng_rule,forwarding_rule_resource\212N\020Regio" + + "nOperations\202\323\344\223\002m2Q/compute/v1/projects/" + + "{project}/regions/{region}/forwardingRul" + "es/{forwarding_rule}:\030forwarding_rule_re" - + "source\022\260\002\n\tSetLabels\022=.google.cloud.comp" - + "ute.v1.SetLabelsGlobalForwardingRuleRequ" + + "source\022\273\002\n\tSetLabels\0227.google.cloud.comp" + + "ute.v1.SetLabelsForwardingRuleRequest\032\"." + + "google.cloud.compute.v1.Operation\"\320\001\332A:p" + + "roject,region,resource,region_set_labels" + + "_request_resource\212N\020RegionOperations\202\323\344\223" + + "\002z\"T/compute/v1/projects/{project}/regio" + + "ns/{region}/forwardingRules/{resource}/s" + + "etLabels:\"region_set_labels_request_reso" + + "urce\022\267\002\n\tSetTarget\0227.google.cloud.comput" + + "e.v1.SetTargetForwardingRuleRequest\032\".go" + + "ogle.cloud.compute.v1.Operation\"\314\001\332A8pro" + + "ject,region,forwarding_rule,target_refer" + + "ence_resource\212N\020RegionOperations\202\323\344\223\002x\"[" + + "/compute/v1/projects/{project}/regions/{" + + "region}/forwardingRules/{forwarding_rule" + + "}/setTarget:\031target_reference_resource\032r" + + "\312A\026compute.googleapis.com\322AVhttps://www." + + "googleapis.com/auth/compute,https://www." + + "googleapis.com/auth/cloud-platform2\311\013\n\017G" + + "lobalAddresses\022\311\001\n\006Delete\0223.google.cloud" + + ".compute.v1.DeleteGlobalAddressRequest\032\"" + + ".google.cloud.compute.v1.Operation\"f\332A\017p" + + "roject,address\212N\020GlobalOperations\202\323\344\223\002;*" + + "9/compute/v1/projects/{project}/global/a" + + "ddresses/{address}\022\256\001\n\003Get\0220.google.clou" + + "d.compute.v1.GetGlobalAddressRequest\032 .g" + + "oogle.cloud.compute.v1.Address\"S\332A\017proje" + + "ct,address\202\323\344\223\002;\0229/compute/v1/projects/{" + + "project}/global/addresses/{address}\022\332\001\n\006" + + "Insert\0223.google.cloud.compute.v1.InsertG" + + "lobalAddressRequest\032\".google.cloud.compu" + + "te.v1.Operation\"w\332A\030project,address_reso" + + "urce\212N\020GlobalOperations\202\323\344\223\002C\"//compute/" + + "v1/projects/{project}/global/addresses:\020" + + "address_resource\022\244\001\n\004List\0223.google.cloud" + + ".compute.v1.ListGlobalAddressesRequest\032$" + + ".google.cloud.compute.v1.AddressList\"A\332A" + + "\007project\202\323\344\223\0021\022//compute/v1/projects/{pr" + + "oject}/global/addresses\022\232\002\n\004Move\0221.googl" + + "e.cloud.compute.v1.MoveGlobalAddressRequ" + "est\032\".google.cloud.compute.v1.Operation\"" - + "\277\001\332A3project,resource,global_set_labels_" - + "request_resource\212N\020GlobalOperations\202\323\344\223\002" - + "p\"J/compute/v1/projects/{project}/global" - + "/forwardingRules/{resource}/setLabels:\"g" - + "lobal_set_labels_request_resource\022\254\002\n\tSe" - + "tTarget\022=.google.cloud.compute.v1.SetTar" - + "getGlobalForwardingRuleRequest\032\".google." - + "cloud.compute.v1.Operation\"\273\001\332A1project," - + "forwarding_rule,target_reference_resourc" - + "e\212N\020GlobalOperations\202\323\344\223\002n\"Q/compute/v1/" - + "projects/{project}/global/forwardingRule" - + "s/{forwarding_rule}/setTarget:\031target_re" - + "ference_resource\032r\312A\026compute.googleapis." - + "com\322AVhttps://www.googleapis.com/auth/co" - + "mpute,https://www.googleapis.com/auth/cl" - + "oud-platform2\254\022\n\033GlobalNetworkEndpointGr" - + "oups\022\274\003\n\026AttachNetworkEndpoints\022P.google" - + ".cloud.compute.v1.AttachNetworkEndpoints" - + "GlobalNetworkEndpointGroupRequest\032\".goog" - + "le.cloud.compute.v1.Operation\"\253\002\332A_proje" - + "ct,network_endpoint_group,global_network" - + "_endpoint_groups_attach_endpoints_reques" - + "t_resource\212N\020GlobalOperations\202\323\344\223\002\257\001\"k/c" - + "ompute/v1/projects/{project}/global/netw" - + "orkEndpointGroups/{network_endpoint_grou" - + "p}/attachNetworkEndpoints:@global_networ" - + "k_endpoint_groups_attach_endpoints_reque" - + "st_resource\022\201\002\n\006Delete\022@.google.cloud.co" - + "mpute.v1.DeleteGlobalNetworkEndpointGrou" - + "pRequest\032\".google.cloud.compute.v1.Opera" - + "tion\"\220\001\332A\036project,network_endpoint_group" - + "\212N\020GlobalOperations\202\323\344\223\002V*T/compute/v1/p" - + "rojects/{project}/global/networkEndpoint" - + "Groups/{network_endpoint_group}\022\274\003\n\026Deta" - + "chNetworkEndpoints\022P.google.cloud.comput", - "e.v1.DetachNetworkEndpointsGlobalNetwork" - + "EndpointGroupRequest\032\".google.cloud.comp" - + "ute.v1.Operation\"\253\002\332A_project,network_en" - + "dpoint_group,global_network_endpoint_gro" - + "ups_detach_endpoints_request_resource\212N\020" - + "GlobalOperations\202\323\344\223\002\257\001\"k/compute/v1/pro" - + "jects/{project}/global/networkEndpointGr" - + "oups/{network_endpoint_group}/detachNetw" - + "orkEndpoints:@global_network_endpoint_gr" - + "oups_detach_endpoints_request_resource\022\362" - + "\001\n\003Get\022=.google.cloud.compute.v1.GetGlob" - + "alNetworkEndpointGroupRequest\032-.google.c" - + "loud.compute.v1.NetworkEndpointGroup\"}\332A" - + "\036project,network_endpoint_group\202\323\344\223\002V\022T/" - + "compute/v1/projects/{project}/global/net" - + "workEndpointGroups/{network_endpoint_gro" - + "up}\022\222\002\n\006Insert\022@.google.cloud.compute.v1" - + ".InsertGlobalNetworkEndpointGroupRequest" - + "\032\".google.cloud.compute.v1.Operation\"\241\001\332" - + "A\'project,network_endpoint_group_resourc" - + "e\212N\020GlobalOperations\202\323\344\223\002^\";/compute/v1/" - + "projects/{project}/global/networkEndpoin" - + "tGroups:\037network_endpoint_group_resource" - + "\022\311\001\n\004List\022?.google.cloud.compute.v1.List" - + "GlobalNetworkEndpointGroupsRequest\0321.goo" - + "gle.cloud.compute.v1.NetworkEndpointGrou" - + "pList\"M\332A\007project\202\323\344\223\002=\022;/compute/v1/pro" - + "jects/{project}/global/networkEndpointGr" - + "oups\022\300\002\n\024ListNetworkEndpoints\022O.google.c" - + "loud.compute.v1.ListNetworkEndpointsGlob" - + "alNetworkEndpointGroupsRequest\032B.google." - + "cloud.compute.v1.NetworkEndpointGroupsLi" - + "stNetworkEndpoints\"\222\001\332A\036project,network_" - + "endpoint_group\202\323\344\223\002k\"i/compute/v1/projec" + + "\272\001\332A6project,address,global_addresses_mo" + + "ve_request_resource\212N\020GlobalOperations\202\323" + + "\344\223\002h\">/compute/v1/projects/{project}/glo" + + "bal/addresses/{address}/move:&global_add" + + "resses_move_request_resource\022\243\002\n\tSetLabe" + + "ls\0226.google.cloud.compute.v1.SetLabelsGl" + + "obalAddressRequest\032\".google.cloud.comput" + + "e.v1.Operation\"\271\001\332A3project,resource,glo" + + "bal_set_labels_request_resource\212N\020Global" + + "Operations\202\323\344\223\002j\"D/compute/v1/projects/{" + + "project}/global/addresses/{resource}/set" + + "Labels:\"global_set_labels_request_resour" + + "ce\032r\312A\026compute.googleapis.com\322AVhttps://" + + "www.googleapis.com/auth/compute,https://" + + "www.googleapis.com/auth/cloud-platform2\373" + + "\016\n\025GlobalForwardingRules\022\346\001\n\006Delete\022:.go" + + "ogle.cloud.compute.v1.DeleteGlobalForwar" + + "dingRuleRequest\032\".google.cloud.compute.v" + + "1.Operation\"|\332A\027project,forwarding_rule\212" + + "N\020GlobalOperations\202\323\344\223\002I*G/compute/v1/pr" + + "ojects/{project}/global/forwardingRules/" + + "{forwarding_rule}\022\322\001\n\003Get\0227.google.cloud" + + ".compute.v1.GetGlobalForwardingRuleReque" + + "st\032\'.google.cloud.compute.v1.ForwardingR" + + "ule\"i\332A\027project,forwarding_rule\202\323\344\223\002I\022G/" + + "compute/v1/projects/{project}/global/for" + + "wardingRules/{forwarding_rule}\022\370\001\n\006Inser" + + "t\022:.google.cloud.compute.v1.InsertGlobal" + + "ForwardingRuleRequest\032\".google.cloud.com" + + "pute.v1.Operation\"\215\001\332A project,forwardin" + + "g_rule_resource\212N\020GlobalOperations\202\323\344\223\002Q" + + "\"5/compute/v1/projects/{project}/global/" + + "forwardingRules:\030forwarding_rule_resourc" + + "e\022\267\001\n\004List\0229.google.cloud.compute.v1.Lis" + + "tGlobalForwardingRulesRequest\032+.google.c" + + "loud.compute.v1.ForwardingRuleList\"G\332A\007p" + + "roject\202\323\344\223\0027\0225/compute/v1/projects/{proj" + + "ect}/global/forwardingRules\022\230\002\n\005Patch\0229." + + "google.cloud.compute.v1.PatchGlobalForwa" + + "rdingRuleRequest\032\".google.cloud.compute." + + "v1.Operation\"\257\001\332A0project,forwarding_rul" + + "e,forwarding_rule_resource\212N\020GlobalOpera" + + "tions\202\323\344\223\002c2G/compute/v1/projects/{proje" + + "ct}/global/forwardingRules/{forwarding_r" + + "ule}:\030forwarding_rule_resource\022\260\002\n\tSetLa" + + "bels\022=.google.cloud.compute.v1.SetLabels" + + "GlobalForwardingRuleRequest\032\".google.clo" + + "ud.compute.v1.Operation\"\277\001\332A3project,res" + + "ource,global_set_labels_request_resource" + + "\212N\020GlobalOperations\202\323\344\223\002p\"J/compute/v1/p" + + "rojects/{project}/global/forwardingRules" + + "/{resource}/setLabels:\"global_set_labels" + + "_request_resource\022\254\002\n\tSetTarget\022=.google" + + ".cloud.compute.v1.SetTargetGlobalForward" + + "ingRuleRequest\032\".google.cloud.compute.v1" + + ".Operation\"\273\001\332A1project,forwarding_rule," + + "target_reference_resource\212N\020GlobalOperat" + + "ions\202\323\344\223\002n\"Q/compute/v1/projects/{projec", + "t}/global/forwardingRules/{forwarding_ru" + + "le}/setTarget:\031target_reference_resource" + + "\032r\312A\026compute.googleapis.com\322AVhttps://ww" + + "w.googleapis.com/auth/compute,https://ww" + + "w.googleapis.com/auth/cloud-platform2\254\022\n" + + "\033GlobalNetworkEndpointGroups\022\274\003\n\026AttachN" + + "etworkEndpoints\022P.google.cloud.compute.v" + + "1.AttachNetworkEndpointsGlobalNetworkEnd" + + "pointGroupRequest\032\".google.cloud.compute" + + ".v1.Operation\"\253\002\332A_project,network_endpo" + + "int_group,global_network_endpoint_groups" + + "_attach_endpoints_request_resource\212N\020Glo" + + "balOperations\202\323\344\223\002\257\001\"k/compute/v1/projec" + "ts/{project}/global/networkEndpointGroup" - + "s/{network_endpoint_group}/listNetworkEn" - + "dpoints\032r\312A\026compute.googleapis.com\322AVhtt" - + "ps://www.googleapis.com/auth/compute,htt" - + "ps://www.googleapis.com/auth/cloud-platf" - + "orm2\320\010\n\020GlobalOperations\022\312\001\n\016AggregatedL" - + "ist\022>.google.cloud.compute.v1.Aggregated" - + "ListGlobalOperationsRequest\0320.google.clo" - + "ud.compute.v1.OperationAggregatedList\"F\332" - + "A\007project\202\323\344\223\0026\0224/compute/v1/projects/{p" - + "roject}/aggregated/operations\022\321\001\n\006Delete" - + "\0225.google.cloud.compute.v1.DeleteGlobalO" - + "perationRequest\0326.google.cloud.compute.v" - + "1.DeleteGlobalOperationResponse\"X\332A\021proj" - + "ect,operation\202\323\344\223\002>*\022.google.clo" + + "ud.compute.v1.AggregatedListGlobalOperat" + + "ionsRequest\0320.google.cloud.compute.v1.Op" + + "erationAggregatedList\"F\332A\007project\202\323\344\223\0026\022" + + "4/compute/v1/projects/{project}/aggregat" + + "ed/operations\022\321\001\n\006Delete\0225.google.cloud." + + "compute.v1.DeleteGlobalOperationRequest\032" + + "6.google.cloud.compute.v1.DeleteGlobalOp" + + "erationResponse\"X\332A\021project,operation\202\323\344" + + "\223\002>*\022.google.cloud.compute.v1.Get" - + "GlobalOrganizationOperationRequest\032\".goo" - + "gle.cloud.compute.v1.Operation\"J\332A\topera" - + "tion\220N\001\202\323\344\223\0025\0223/compute/v1/locations/glo" - + "bal/operations/{operation}\022\244\001\n\004List\022@.go" - + "ogle.cloud.compute.v1.ListGlobalOrganiza" - + "tionOperationsRequest\032&.google.cloud.com" - + "pute.v1.OperationList\"2\332A\000\202\323\344\223\002)\022\'/compu" - + "te/v1/locations/global/operations\032r\312A\026co" - + "mpute.googleapis.com\322AVhttps://www.googl" - + "eapis.com/auth/compute,https://www.googl" - + "eapis.com/auth/cloud-platform2\321\013\n\035Global" - + "PublicDelegatedPrefixes\022\207\002\n\006Delete\022B.goo" - + "gle.cloud.compute.v1.DeleteGlobalPublicD" - + "elegatedPrefixeRequest\032\".google.cloud.co" - + "mpute.v1.Operation\"\224\001\332A\037project,public_d" - + "elegated_prefix\212N\020GlobalOperations\202\323\344\223\002Y" - + "*W/compute/v1/projects/{project}/global/" - + "publicDelegatedPrefixes/{public_delegate" - + "d_prefix}\022\372\001\n\003Get\022?.google.cloud.compute" - + ".v1.GetGlobalPublicDelegatedPrefixeReque" - + "st\032..google.cloud.compute.v1.PublicDeleg" - + "atedPrefix\"\201\001\332A\037project,public_delegated" - + "_prefix\202\323\344\223\002Y\022W/compute/v1/projects/{pro" - + "ject}/global/publicDelegatedPrefixes/{pu" - + "blic_delegated_prefix}\022\230\002\n\006Insert\022B.goog" - + "le.cloud.compute.v1.InsertGlobalPublicDe" - + "legatedPrefixeRequest\032\".google.cloud.com" - + "pute.v1.Operation\"\245\001\332A(project,public_de" - + "legated_prefix_resource\212N\020GlobalOperatio" - + "ns\202\323\344\223\002a\"=/compute/v1/projects/{project}" - + "/global/publicDelegatedPrefixes: public_" - + "delegated_prefix_resource\022\316\001\n\004List\022A.goo" - + "gle.cloud.compute.v1.ListGlobalPublicDel" - + "egatedPrefixesRequest\0322.google.cloud.com" - + "pute.v1.PublicDelegatedPrefixList\"O\332A\007pr" - + "oject\202\323\344\223\002?\022=/compute/v1/projects/{proje" - + "ct}/global/publicDelegatedPrefixes\022\310\002\n\005P" - + "atch\022A.google.cloud.compute.v1.PatchGlob" - + "alPublicDelegatedPrefixeRequest\032\".google" - + ".cloud.compute.v1.Operation\"\327\001\332A@project" - + ",public_delegated_prefix,public_delegate" - + "d_prefix_resource\212N\020GlobalOperations\202\323\344\223" - + "\002{2W/compute/v1/projects/{project}/globa" - + "l/publicDelegatedPrefixes/{public_delega" - + "ted_prefix}: public_delegated_prefix_res" - + "ource\032r\312A\026compute.googleapis.com\322AVhttps" - + "://www.googleapis.com/auth/compute,https" - + "://www.googleapis.com/auth/cloud-platfor" - + "m2\203\r\n\014HealthChecks\022\313\001\n\016AggregatedList\022:." - + "google.cloud.compute.v1.AggregatedListHe" - + "althChecksRequest\0323.google.cloud.compute" - + ".v1.HealthChecksAggregatedList\"H\332A\007proje" - + "ct\202\323\344\223\0028\0226/compute/v1/projects/{project}" - + "/aggregated/healthChecks\022\324\001\n\006Delete\0221.go" - + "ogle.cloud.compute.v1.DeleteHealthCheckR" + + "s/{operation}/wait\032r\312A\026compute.googleapi" + + "s.com\322AVhttps://www.googleapis.com/auth/" + + "compute,https://www.googleapis.com/auth/" + + "cloud-platform2\314\005\n\034GlobalOrganizationOpe" + + "rations\022\330\001\n\006Delete\022A.google.cloud.comput" + + "e.v1.DeleteGlobalOrganizationOperationRe" + + "quest\032B.google.cloud.compute.v1.DeleteGl" + + "obalOrganizationOperationResponse\"G\332A\top" + + "eration\202\323\344\223\0025*3/compute/v1/locations/glo" + + "bal/operations/{operation}\022\265\001\n\003Get\022>.goo" + + "gle.cloud.compute.v1.GetGlobalOrganizati" + + "onOperationRequest\032\".google.cloud.comput" + + "e.v1.Operation\"J\332A\toperation\220N\001\202\323\344\223\0025\0223/" + + "compute/v1/locations/global/operations/{" + + "operation}\022\244\001\n\004List\022@.google.cloud.compu" + + "te.v1.ListGlobalOrganizationOperationsRe" + + "quest\032&.google.cloud.compute.v1.Operatio" + + "nList\"2\332A\000\202\323\344\223\002)\022\'/compute/v1/locations/" + + "global/operations\032r\312A\026compute.googleapis" + + ".com\322AVhttps://www.googleapis.com/auth/c" + + "ompute,https://www.googleapis.com/auth/c" + + "loud-platform2\321\013\n\035GlobalPublicDelegatedP" + + "refixes\022\207\002\n\006Delete\022B.google.cloud.comput" + + "e.v1.DeleteGlobalPublicDelegatedPrefixeR" + "equest\032\".google.cloud.compute.v1.Operati" - + "on\"s\332A\024project,health_check\212N\020GlobalOper" - + "ations\202\323\344\223\002C*A/compute/v1/projects/{proj" - + "ect}/global/healthChecks/{health_check}\022" - + "\275\001\n\003Get\022..google.cloud.compute.v1.GetHea" - + "lthCheckRequest\032$.google.cloud.compute.v" - + "1.HealthCheck\"`\332A\024project,health_check\202\323" - + "\344\223\002C\022A/compute/v1/projects/{project}/glo" - + "bal/healthChecks/{health_check}\022\346\001\n\006Inse" - + "rt\0221.google.cloud.compute.v1.InsertHealt" - + "hCheckRequest\032\".google.cloud.compute.v1." - + "Operation\"\204\001\332A\035project,health_check_reso" - + "urce\212N\020GlobalOperations\202\323\344\223\002K\"2/compute/" - + "v1/projects/{project}/global/healthCheck" - + "s:\025health_check_resource\022\250\001\n\004List\0220.goog" - + "le.cloud.compute.v1.ListHealthChecksRequ" - + "est\032(.google.cloud.compute.v1.HealthChec" - + "kList\"D\332A\007project\202\323\344\223\0024\0222/compute/v1/pro" - + "jects/{project}/global/healthChecks\022\200\002\n\005" - + "Patch\0220.google.cloud.compute.v1.PatchHea" - + "lthCheckRequest\032\".google.cloud.compute.v" - + "1.Operation\"\240\001\332A*project,health_check,he" - + "alth_check_resource\212N\020GlobalOperations\202\323" - + "\344\223\002Z2A/compute/v1/projects/{project}/glo" - + "bal/healthChecks/{health_check}:\025health_" - + "check_resource\022\202\002\n\006Update\0221.google.cloud" - + ".compute.v1.UpdateHealthCheckRequest\032\".g" - + "oogle.cloud.compute.v1.Operation\"\240\001\332A*pr" - + "oject,health_check,health_check_resource" - + "\212N\020GlobalOperations\202\323\344\223\002Z\032A/compute/v1/p" - + "rojects/{project}/global/healthChecks/{h" - + "ealth_check}:\025health_check_resource\032r\312A\026" - + "compute.googleapis.com\322AVhttps://www.goo" - + "gleapis.com/auth/compute,https://www.goo" - + "gleapis.com/auth/cloud-platform2\204\003\n\020Imag" - + "eFamilyViews\022\310\001\n\003Get\0222.google.cloud.comp" - + "ute.v1.GetImageFamilyViewRequest\032(.googl" - + "e.cloud.compute.v1.ImageFamilyView\"c\332A\023p" - + "roject,zone,family\202\323\344\223\002G\022E/compute/v1/pr" - + "ojects/{project}/zones/{zone}/imageFamil" - + "yViews/{family}\032\244\001\312A\026compute.googleapis." - + "com\322A\207\001https://www.googleapis.com/auth/c" - + "ompute.readonly,https://www.googleapis.c" - + "om/auth/compute,https://www.googleapis.c" - + "om/auth/cloud-platform2\374\023\n\006Images\022\272\001\n\006De" - + "lete\022+.google.cloud.compute.v1.DeleteIma" - + "geRequest\032\".google.cloud.compute.v1.Oper" - + "ation\"_\332A\rproject,image\212N\020GlobalOperatio" - + "ns\202\323\344\223\0026*4/compute/v1/projects/{project}" - + "/global/images/{image}\022\204\002\n\tDeprecate\022..g" - + "oogle.cloud.compute.v1.DeprecateImageReq" - + "uest\032\".google.cloud.compute.v1.Operation" - + "\"\242\001\332A)project,image,deprecation_status_r" - + "esource\212N\020GlobalOperations\202\323\344\223\002]\">/compu" + + "on\"\224\001\332A\037project,public_delegated_prefix\212" + + "N\020GlobalOperations\202\323\344\223\002Y*W/compute/v1/pr" + + "ojects/{project}/global/publicDelegatedP" + + "refixes/{public_delegated_prefix}\022\372\001\n\003Ge" + + "t\022?.google.cloud.compute.v1.GetGlobalPub" + + "licDelegatedPrefixeRequest\032..google.clou" + + "d.compute.v1.PublicDelegatedPrefix\"\201\001\332A\037" + + "project,public_delegated_prefix\202\323\344\223\002Y\022W/" + + "compute/v1/projects/{project}/global/pub" + + "licDelegatedPrefixes/{public_delegated_p" + + "refix}\022\230\002\n\006Insert\022B.google.cloud.compute" + + ".v1.InsertGlobalPublicDelegatedPrefixeRe" + + "quest\032\".google.cloud.compute.v1.Operatio" + + "n\"\245\001\332A(project,public_delegated_prefix_r" + + "esource\212N\020GlobalOperations\202\323\344\223\002a\"=/compu" + + "te/v1/projects/{project}/global/publicDe" + + "legatedPrefixes: public_delegated_prefix" + + "_resource\022\316\001\n\004List\022A.google.cloud.comput" + + "e.v1.ListGlobalPublicDelegatedPrefixesRe" + + "quest\0322.google.cloud.compute.v1.PublicDe" + + "legatedPrefixList\"O\332A\007project\202\323\344\223\002?\022=/co" + + "mpute/v1/projects/{project}/global/publi" + + "cDelegatedPrefixes\022\310\002\n\005Patch\022A.google.cl" + + "oud.compute.v1.PatchGlobalPublicDelegate" + + "dPrefixeRequest\032\".google.cloud.compute.v" + + "1.Operation\"\327\001\332A@project,public_delegate" + + "d_prefix,public_delegated_prefix_resourc" + + "e\212N\020GlobalOperations\202\323\344\223\002{2W/compute/v1/" + + "projects/{project}/global/publicDelegate" + + "dPrefixes/{public_delegated_prefix}: pub" + + "lic_delegated_prefix_resource\032r\312A\026comput" + + "e.googleapis.com\322AVhttps://www.googleapi" + + "s.com/auth/compute,https://www.googleapi" + + "s.com/auth/cloud-platform2\203\r\n\014HealthChec" + + "ks\022\313\001\n\016AggregatedList\022:.google.cloud.com" + + "pute.v1.AggregatedListHealthChecksReques" + + "t\0323.google.cloud.compute.v1.HealthChecks" + + "AggregatedList\"H\332A\007project\202\323\344\223\0028\0226/compu" + + "te/v1/projects/{project}/aggregated/heal" + + "thChecks\022\324\001\n\006Delete\0221.google.cloud.compu" + + "te.v1.DeleteHealthCheckRequest\032\".google." + + "cloud.compute.v1.Operation\"s\332A\024project,h" + + "ealth_check\212N\020GlobalOperations\202\323\344\223\002C*A/c" + + "ompute/v1/projects/{project}/global/heal" + + "thChecks/{health_check}\022\275\001\n\003Get\022..google" + + ".cloud.compute.v1.GetHealthCheckRequest\032" + + "$.google.cloud.compute.v1.HealthCheck\"`\332" + + "A\024project,health_check\202\323\344\223\002C\022A/compute/v" + + "1/projects/{project}/global/healthChecks" + + "/{health_check}\022\346\001\n\006Insert\0221.google.clou" + + "d.compute.v1.InsertHealthCheckRequest\032\"." + + "google.cloud.compute.v1.Operation\"\204\001\332A\035p" + + "roject,health_check_resource\212N\020GlobalOpe" + + "rations\202\323\344\223\002K\"2/compute/v1/projects/{pro" + + "ject}/global/healthChecks:\025health_check_" + + "resource\022\250\001\n\004List\0220.google.cloud.compute" + + ".v1.ListHealthChecksRequest\032(.google.clo" + + "ud.compute.v1.HealthCheckList\"D\332A\007projec" + + "t\202\323\344\223\0024\0222/compute/v1/projects/{project}/" + + "global/healthChecks\022\200\002\n\005Patch\0220.google.c" + + "loud.compute.v1.PatchHealthCheckRequest\032" + + "\".google.cloud.compute.v1.Operation\"\240\001\332A" + + "*project,health_check,health_check_resou" + + "rce\212N\020GlobalOperations\202\323\344\223\002Z2A/compute/v" + + "1/projects/{project}/global/healthChecks" + + "/{health_check}:\025health_check_resource\022\202" + + "\002\n\006Update\0221.google.cloud.compute.v1.Upda" + + "teHealthCheckRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"\240\001\332A*project,health_che" + + "ck,health_check_resource\212N\020GlobalOperati" + + "ons\202\323\344\223\002Z\032A/compute/v1/projects/{project" + + "}/global/healthChecks/{health_check}:\025he" + + "alth_check_resource\032r\312A\026compute.googleap" + + "is.com\322AVhttps://www.googleapis.com/auth" + + "/compute,https://www.googleapis.com/auth" + + "/cloud-platform2\204\003\n\020ImageFamilyViews\022\310\001\n" + + "\003Get\0222.google.cloud.compute.v1.GetImageF" + + "amilyViewRequest\032(.google.cloud.compute." + + "v1.ImageFamilyView\"c\332A\023project,zone,fami" + + "ly\202\323\344\223\002G\022E/compute/v1/projects/{project}" + + "/zones/{zone}/imageFamilyViews/{family}\032" + + "\244\001\312A\026compute.googleapis.com\322A\207\001https://w" + + "ww.googleapis.com/auth/compute.readonly," + + "https://www.googleapis.com/auth/compute," + + "https://www.googleapis.com/auth/cloud-pl" + + "atform2\374\023\n\006Images\022\272\001\n\006Delete\022+.google.cl" + + "oud.compute.v1.DeleteImageRequest\032\".goog" + + "le.cloud.compute.v1.Operation\"_\332A\rprojec" + + "t,image\212N\020GlobalOperations\202\323\344\223\0026*4/compu" + "te/v1/projects/{project}/global/images/{" - + "image}/deprecate:\033deprecation_status_res" - + "ource\022\235\001\n\003Get\022(.google.cloud.compute.v1." - + "GetImageRequest\032\036.google.cloud.compute.v" - + "1.Image\"L\332A\rproject,image\202\323\344\223\0026\0224/comput" - + "e/v1/projects/{project}/global/images/{i" - + "mage}\022\272\001\n\rGetFromFamily\0222.google.cloud.c" - + "ompute.v1.GetFromFamilyImageRequest\032\036.go" - + "ogle.cloud.compute.v1.Image\"U\332A\016project," - + "family\202\323\344\223\002>\022\",/compute/v1/projects/{" - + "project}/global/images:\016image_resource\022\226" - + "\001\n\004List\022*.google.cloud.compute.v1.ListIm" - + "agesRequest\032\".google.cloud.compute.v1.Im" - + "ageList\">\332A\007project\202\323\344\223\002.\022,/compute/v1/p" - + "rojects/{project}/global/images\022\327\001\n\005Patc" - + "h\022*.google.cloud.compute.v1.PatchImageRe" + + "image}\022\204\002\n\tDeprecate\022..google.cloud.comp" + + "ute.v1.DeprecateImageRequest\032\".google.cl" + + "oud.compute.v1.Operation\"\242\001\332A)project,im" + + "age,deprecation_status_resource\212N\020Global" + + "Operations\202\323\344\223\002]\">/compute/v1/projects/{" + + "project}/global/images/{image}/deprecate" + + ":\033deprecation_status_resource\022\235\001\n\003Get\022(." + + "google.cloud.compute.v1.GetImageRequest\032" + + "\036.google.cloud.compute.v1.Image\"L\332A\rproj" + + "ect,image\202\323\344\223\0026\0224/compute/v1/projects/{p" + + "roject}/global/images/{image}\022\272\001\n\rGetFro" + + "mFamily\0222.google.cloud.compute.v1.GetFro" + + "mFamilyImageRequest\032\036.google.cloud.compu" + + "te.v1.Image\"U\332A\016project,family\202\323\344\223\002>\022" + + "\",/compute/v1/projects/{project}/global/" + + "images:\016image_resource\022\226\001\n\004List\022*.google" + + ".cloud.compute.v1.ListImagesRequest\032\".go" + + "ogle.cloud.compute.v1.ImageList\">\332A\007proj" + + "ect\202\323\344\223\002.\022,/compute/v1/projects/{project" + + "}/global/images\022\327\001\n\005Patch\022*.google.cloud" + + ".compute.v1.PatchImageRequest\032\".google.c" + + "loud.compute.v1.Operation\"~\332A\034project,im" + + "age,image_resource\212N\020GlobalOperations\202\323\344" + + "\223\002F24/compute/v1/projects/{project}/glob" + + "al/images/{image}:\016image_resource\022\213\002\n\014Se" + + "tIamPolicy\0221.google.cloud.compute.v1.Set" + + "IamPolicyImageRequest\032\037.google.cloud.com" + + "pute.v1.Policy\"\246\001\332A3project,resource,glo" + + "bal_set_policy_request_resource\202\323\344\223\002j\"D/" + + "compute/v1/projects/{project}/global/ima" + + "ges/{resource}/setIamPolicy:\"global_set_" + + "policy_request_resource\022\230\002\n\tSetLabels\022.." + + "google.cloud.compute.v1.SetLabelsImageRe" + "quest\032\".google.cloud.compute.v1.Operatio" - + "n\"~\332A\034project,image,image_resource\212N\020Glo" - + "balOperations\202\323\344\223\002F24/compute/v1/project" - + "s/{project}/global/images/{image}:\016image" - + "_resource\022\213\002\n\014SetIamPolicy\0221.google.clou" - + "d.compute.v1.SetIamPolicyImageRequest\032\037." - + "google.cloud.compute.v1.Policy\"\246\001\332A3proj" - + "ect,resource,global_set_policy_request_r" - + "esource\202\323\344\223\002j\"D/compute/v1/projects/{pro" - + "ject}/global/images/{resource}/setIamPol" - + "icy:\"global_set_policy_request_resource\022" - + "\230\002\n\tSetLabels\022..google.cloud.compute.v1." - + "SetLabelsImageRequest\032\".google.cloud.com" - + "pute.v1.Operation\"\266\001\332A3project,resource," - + "global_set_labels_request_resource\212N\020Glo" - + "balOperations\202\323\344\223\002g\"A/compute/v1/project" - + "s/{project}/global/images/{resource}/set" - + "Labels:\"global_set_labels_request_resour" - + "ce\022\254\002\n\022TestIamPermissions\0227.google.cloud" - + ".compute.v1.TestIamPermissionsImageReque" - + "st\0320.google.cloud.compute.v1.TestPermiss" - + "ionsResponse\"\252\001\332A2project,resource,test_" - + "permissions_request_resource\202\323\344\223\002o\"J/com" - + "pute/v1/projects/{project}/global/images" - + "/{resource}/testIamPermissions:!test_per" - + "missions_request_resource\032r\312A\026compute.go" - + "ogleapis.com\322AVhttps://www.googleapis.co" - + "m/auth/compute,https://www.googleapis.co" - + "m/auth/cloud-platform2\242\016\n\"InstanceGroupM" - + "anagerResizeRequests\022\311\002\n\006Cancel\022G.google" - + ".cloud.compute.v1.CancelInstanceGroupMan" - + "agerResizeRequestRequest\032\".google.cloud." - + "compute.v1.Operation\"\321\001\332A2project,zone,i" - + "nstance_group_manager,resize_request\212N\016Z" - + "oneOperations\202\323\344\223\002\204\001\"\201\001/compute/v1/proje" - + "cts/{project}/zones/{zone}/instanceGroup" - + "Managers/{instance_group_manager}/resize" - + "Requests/{resize_request}/cancel\022\300\002\n\006Del" - + "ete\022G.google.cloud.compute.v1.DeleteInst" - + "anceGroupManagerResizeRequestRequest\032\".g" - + "oogle.cloud.compute.v1.Operation\"\310\001\332A2pr" - + "oject,zone,instance_group_manager,resize" - + "_request\212N\016ZoneOperations\202\323\344\223\002|*z/comput" + + "n\"\266\001\332A3project,resource,global_set_label" + + "s_request_resource\212N\020GlobalOperations\202\323\344" + + "\223\002g\"A/compute/v1/projects/{project}/glob" + + "al/images/{resource}/setLabels:\"global_s" + + "et_labels_request_resource\022\254\002\n\022TestIamPe" + + "rmissions\0227.google.cloud.compute.v1.Test" + + "IamPermissionsImageRequest\0320.google.clou" + + "d.compute.v1.TestPermissionsResponse\"\252\001\332" + + "A2project,resource,test_permissions_requ" + + "est_resource\202\323\344\223\002o\"J/compute/v1/projects" + + "/{project}/global/images/{resource}/test" + + "IamPermissions:!test_permissions_request" + + "_resource\032r\312A\026compute.googleapis.com\322AVh" + + "ttps://www.googleapis.com/auth/compute,h" + + "ttps://www.googleapis.com/auth/cloud-pla" + + "tform2\242\016\n\"InstanceGroupManagerResizeRequ" + + "ests\022\311\002\n\006Cancel\022G.google.cloud.compute.v" + + "1.CancelInstanceGroupManagerResizeReques" + + "tRequest\032\".google.cloud.compute.v1.Opera" + + "tion\"\321\001\332A2project,zone,instance_group_ma" + + "nager,resize_request\212N\016ZoneOperations\202\323\344" + + "\223\002\204\001\"\201\001/compute/v1/projects/{project}/zo" + + "nes/{zone}/instanceGroupManagers/{instan" + + "ce_group_manager}/resizeRequests/{resize" + + "_request}/cancel\022\300\002\n\006Delete\022G.google.clo" + + "ud.compute.v1.DeleteInstanceGroupManager" + + "ResizeRequestRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"\310\001\332A2project,zone,insta" + + "nce_group_manager,resize_request\212N\016ZoneO" + + "perations\202\323\344\223\002|*z/compute/v1/projects/{p" + + "roject}/zones/{zone}/instanceGroupManage" + + "rs/{instance_group_manager}/resizeReques" + + "ts/{resize_request}\022\301\002\n\003Get\022D.google.clo" + + "ud.compute.v1.GetInstanceGroupManagerRes" + + "izeRequestRequest\032:.google.cloud.compute" + + ".v1.InstanceGroupManagerResizeRequest\"\267\001" + + "\332A2project,zone,instance_group_manager,r" + + "esize_request\202\323\344\223\002|\022z/compute/v1/project" + + "s/{project}/zones/{zone}/instanceGroupMa" + + "nagers/{instance_group_manager}/resizeRe" + + "quests/{resize_request}\022\200\003\n\006Insert\022G.goo" + + "gle.cloud.compute.v1.InsertInstanceGroup" + + "ManagerResizeRequestRequest\032\".google.clo" + + "ud.compute.v1.Operation\"\210\002\332ARproject,zon" + + "e,instance_group_manager,instance_group_" + + "manager_resize_request_resource\212N\016ZoneOp" + + "erations\202\323\344\223\002\233\001\"i/compute/v1/projects/{p" + + "roject}/zones/{zone}/instanceGroupManage" + + "rs/{instance_group_manager}/resizeReques" + + "ts:.instance_group_manager_resize_reques" + + "t_resource\022\261\002\n\004List\022F.google.cloud.compu" + + "te.v1.ListInstanceGroupManagerResizeRequ" + + "estsRequest\032G.google.cloud.compute.v1.In" + + "stanceGroupManagerResizeRequestsListResp" + + "onse\"\227\001\332A#project,zone,instance_group_ma" + + "nager\202\323\344\223\002k\022i/compute/v1/projects/{proje" + + "ct}/zones/{zone}/instanceGroupManagers/{" + + "instance_group_manager}/resizeRequests\032r" + + "\312A\026compute.googleapis.com\322AVhttps://www." + + "googleapis.com/auth/compute,https://www." + + "googleapis.com/auth/cloud-platform2\325E\n\025I" + + "nstanceGroupManagers\022\241\003\n\020AbandonInstance" + + "s\022D.google.cloud.compute.v1.AbandonInsta" + + "ncesInstanceGroupManagerRequest\032\".google" + + ".cloud.compute.v1.Operation\"\242\002\332A^project" + + ",zone,instance_group_manager,instance_gr" + + "oup_managers_abandon_instances_request_r" + + "esource\212N\016ZoneOperations\202\323\344\223\002\251\001\"k/comput" + "e/v1/projects/{project}/zones/{zone}/ins" + "tanceGroupManagers/{instance_group_manag" - + "er}/resizeRequests/{resize_request}\022\301\002\n\003" - + "Get\022D.google.cloud.compute.v1.GetInstanc" - + "eGroupManagerResizeRequestRequest\032:.goog" - + "le.cloud.compute.v1.InstanceGroupManager" - + "ResizeRequest\"\267\001\332A2project,zone,instance" - + "_group_manager,resize_request\202\323\344\223\002|\022z/co" - + "mpute/v1/projects/{project}/zones/{zone}" - + "/instanceGroupManagers/{instance_group_m" - + "anager}/resizeRequests/{resize_request}\022" - + "\200\003\n\006Insert\022G.google.cloud.compute.v1.Ins" - + "ertInstanceGroupManagerResizeRequestRequ" - + "est\032\".google.cloud.compute.v1.Operation\"" - + "\210\002\332ARproject,zone,instance_group_manager" - + ",instance_group_manager_resize_request_r" - + "esource\212N\016ZoneOperations\202\323\344\223\002\233\001\"i/comput" + + "er}/abandonInstances::instance_group_man" + + "agers_abandon_instances_request_resource" + + "\022\345\001\n\016AggregatedList\022C.google.cloud.compu" + + "te.v1.AggregatedListInstanceGroupManager" + + "sRequest\032;.google.cloud.compute.v1.Insta" + + "nceGroupManagerAggregatedList\"Q\332A\007projec" + + "t\202\323\344\223\002A\022?/compute/v1/projects/{project}/" + + "aggregated/instanceGroupManagers\022\256\003\n\027App" + + "lyUpdatesToInstances\022K.google.cloud.comp" + + "ute.v1.ApplyUpdatesToInstancesInstanceGr" + + "oupManagerRequest\032\".google.cloud.compute" + + ".v1.Operation\"\241\002\332AZproject,zone,instance" + + "_group_manager,instance_group_managers_a" + + "pply_updates_request_resource\212N\016ZoneOper" + + "ations\202\323\344\223\002\254\001\"r/compute/v1/projects/{pro" + + "ject}/zones/{zone}/instanceGroupManagers" + + "/{instance_group_manager}/applyUpdatesTo" + + "Instances:6instance_group_managers_apply" + + "_updates_request_resource\022\234\003\n\017CreateInst" + + "ances\022C.google.cloud.compute.v1.CreateIn" + + "stancesInstanceGroupManagerRequest\032\".goo" + + "gle.cloud.compute.v1.Operation\"\237\002\332A]proj" + + "ect,zone,instance_group_manager,instance" + + "_group_managers_create_instances_request" + + "_resource\212N\016ZoneOperations\202\323\344\223\002\247\001\"j/comp" + + "ute/v1/projects/{project}/zones/{zone}/i" + + "nstanceGroupManagers/{instance_group_man" + + "ager}/createInstances:9instance_group_ma" + + "nagers_create_instances_request_resource" + + "\022\204\002\n\006Delete\022:.google.cloud.compute.v1.De" + + "leteInstanceGroupManagerRequest\032\".google" + + ".cloud.compute.v1.Operation\"\231\001\332A#project" + + ",zone,instance_group_manager\212N\016ZoneOpera" + + "tions\202\323\344\223\002\\*Z/compute/v1/projects/{proje" + + "ct}/zones/{zone}/instanceGroupManagers/{" + + "instance_group_manager}\022\234\003\n\017DeleteInstan" + + "ces\022C.google.cloud.compute.v1.DeleteInst" + + "ancesInstanceGroupManagerRequest\032\".googl" + + "e.cloud.compute.v1.Operation\"\237\002\332A]projec" + + "t,zone,instance_group_manager,instance_g" + + "roup_managers_delete_instances_request_r" + + "esource\212N\016ZoneOperations\202\323\344\223\002\247\001\"j/comput" + "e/v1/projects/{project}/zones/{zone}/ins" + "tanceGroupManagers/{instance_group_manag" - + "er}/resizeRequests:.instance_group_manag" - + "er_resize_request_resource\022\261\002\n\004List\022F.go" - + "ogle.cloud.compute.v1.ListInstanceGroupM" - + "anagerResizeRequestsRequest\032G.google.clo" - + "ud.compute.v1.InstanceGroupManagerResize" - + "RequestsListResponse\"\227\001\332A#project,zone,i" - + "nstance_group_manager\202\323\344\223\002k\022i/compute/v1" - + "/projects/{project}/zones/{zone}/instanc" - + "eGroupManagers/{instance_group_manager}/" - + "resizeRequests\032r\312A\026compute.googleapis.co" - + "m\322AVhttps://www.googleapis.com/auth/comp" - + "ute,https://www.googleapis.com/auth/clou" - + "d-platform2\325E\n\025InstanceGroupManagers\022\241\003\n" - + "\020AbandonInstances\022D.google.cloud.compute" - + ".v1.AbandonInstancesInstanceGroupManager" - + "Request\032\".google.cloud.compute.v1.Operat" - + "ion\"\242\002\332A^project,zone,instance_group_man" - + "ager,instance_group_managers_abandon_ins" - + "tances_request_resource\212N\016ZoneOperations" - + "\202\323\344\223\002\251\001\"k/compute/v1/projects/{project}/" - + "zones/{zone}/instanceGroupManagers/{inst" - + "ance_group_manager}/abandonInstances::in" - + "stance_group_managers_abandon_instances_" - + "request_resource\022\345\001\n\016AggregatedList\022C.go" - + "ogle.cloud.compute.v1.AggregatedListInst" - + "anceGroupManagersRequest\032;.google.cloud." - + "compute.v1.InstanceGroupManagerAggregate" - + "dList\"Q\332A\007project\202\323\344\223\002A\022?/compute/v1/pro" - + "jects/{project}/aggregated/instanceGroup" - + "Managers\022\256\003\n\027ApplyUpdatesToInstances\022K.g" - + "oogle.cloud.compute.v1.ApplyUpdatesToIns" - + "tancesInstanceGroupManagerRequest\032\".goog" - + "le.cloud.compute.v1.Operation\"\241\002\332AZproje" - + "ct,zone,instance_group_manager,instance_" - + "group_managers_apply_updates_request_res" - + "ource\212N\016ZoneOperations\202\323\344\223\002\254\001\"r/compute/" - + "v1/projects/{project}/zones/{zone}/insta" - + "nceGroupManagers/{instance_group_manager" - + "}/applyUpdatesToInstances:6instance_grou" - + "p_managers_apply_updates_request_resourc" - + "e\022\234\003\n\017CreateInstances\022C.google.cloud.com" - + "pute.v1.CreateInstancesInstanceGroupMana" - + "gerRequest\032\".google.cloud.compute.v1.Ope" - + "ration\"\237\002\332A]project,zone,instance_group_" - + "manager,instance_group_managers_create_i" - + "nstances_request_resource\212N\016ZoneOperatio" - + "ns\202\323\344\223\002\247\001\"j/compute/v1/projects/{project" - + "}/zones/{zone}/instanceGroupManagers/{in" - + "stance_group_manager}/createInstances:9i" - + "nstance_group_managers_create_instances_" - + "request_resource\022\204\002\n\006Delete\022:.google.clo" - + "ud.compute.v1.DeleteInstanceGroupManager" - + "Request\032\".google.cloud.compute.v1.Operat" - + "ion\"\231\001\332A#project,zone,instance_group_man" - + "ager\212N\016ZoneOperations\202\323\344\223\002\\*Z/compute/v1" - + "/projects/{project}/zones/{zone}/instanc" - + "eGroupManagers/{instance_group_manager}\022" - + "\234\003\n\017DeleteInstances\022C.google.cloud.compu" - + "te.v1.DeleteInstancesInstanceGroupManage" - + "rRequest\032\".google.cloud.compute.v1.Opera" - + "tion\"\237\002\332A]project,zone,instance_group_ma" - + "nager,instance_group_managers_delete_ins" - + "tances_request_resource\212N\016ZoneOperations" - + "\202\323\344\223\002\247\001\"j/compute/v1/projects/{project}/" - + "zones/{zone}/instanceGroupManagers/{inst" - + "ance_group_manager}/deleteInstances:9ins" - + "tance_group_managers_delete_instances_re" - + "quest_resource\022\305\003\n\030DeletePerInstanceConf" - + "igs\022L.google.cloud.compute.v1.DeletePerI" - + "nstanceConfigsInstanceGroupManagerReques" - + "t\032\".google.cloud.compute.v1.Operation\"\266\002" - + "\332Adproject,zone,instance_group_manager,i" - + "nstance_group_managers_delete_per_instan" - + "ce_configs_req_resource\212N\016ZoneOperations" - + "\202\323\344\223\002\267\001\"s/compute/v1/projects/{project}/" - + "zones/{zone}/instanceGroupManagers/{inst" - + "ance_group_manager}/deletePerInstanceCon" - + "figs:@instance_group_managers_delete_per" - + "_instance_configs_req_resource\022\370\001\n\003Get\0227" - + ".google.cloud.compute.v1.GetInstanceGrou" - + "pManagerRequest\032-.google.cloud.compute.v" - + "1.InstanceGroupManager\"\210\001\332A#project,zone" - + ",instance_group_manager\202\323\344\223\002\\\022Z/compute/" - + "v1/projects/{project}/zones/{zone}/insta" - + "nceGroupManagers/{instance_group_manager" - + "}\022\225\002\n\006Insert\022:.google.cloud.compute.v1.I" - + "nsertInstanceGroupManagerRequest\032\".googl" - + "e.cloud.compute.v1.Operation\"\252\001\332A,projec" - + "t,zone,instance_group_manager_resource\212N" - + "\016ZoneOperations\202\323\344\223\002d\"A/compute/v1/proje" - + "cts/{project}/zones/{zone}/instanceGroup" - + "Managers:\037instance_group_manager_resourc" - + "e\022\316\001\n\004List\0229.google.cloud.compute.v1.Lis" - + "tInstanceGroupManagersRequest\0321.google.c" - + "loud.compute.v1.InstanceGroupManagerList" - + "\"X\332A\014project,zone\202\323\344\223\002C\022A/compute/v1/pro" - + "jects/{project}/zones/{zone}/instanceGro" - + "upManagers\022\245\002\n\nListErrors\022?.google.cloud" - + ".compute.v1.ListErrorsInstanceGroupManag" - + "ersRequest\032@.google.cloud.compute.v1.Ins" - + "tanceGroupManagersListErrorsResponse\"\223\001\332" - + "A#project,zone,instance_group_manager\202\323\344" - + "\223\002g\022e/compute/v1/projects/{project}/zone" - + "s/{zone}/instanceGroupManagers/{instance" - + "_group_manager}/listErrors\022\315\002\n\024ListManag" - + "edInstances\022I.google.cloud.compute.v1.Li" - + "stManagedInstancesInstanceGroupManagersR" - + "equest\032J.google.cloud.compute.v1.Instanc" - + "eGroupManagersListManagedInstancesRespon" - + "se\"\235\001\332A#project,zone,instance_group_mana" - + "ger\202\323\344\223\002q\"o/compute/v1/projects/{project" - + "}/zones/{zone}/instanceGroupManagers/{in" - + "stance_group_manager}/listManagedInstanc" - + "es\022\321\002\n\026ListPerInstanceConfigs\022K.google.c" - + "loud.compute.v1.ListPerInstanceConfigsIn" - + "stanceGroupManagersRequest\032H.google.clou" - + "d.compute.v1.InstanceGroupManagersListPe" - + "rInstanceConfigsResp\"\237\001\332A#project,zone,i" - + "nstance_group_manager\202\323\344\223\002s\"q/compute/v1" - + "/projects/{project}/zones/{zone}/instanc" - + "eGroupManagers/{instance_group_manager}/" - + "listPerInstanceConfigs\022\303\002\n\005Patch\0229.googl" - + "e.cloud.compute.v1.PatchInstanceGroupMan" - + "agerRequest\032\".google.cloud.compute.v1.Op" - + "eration\"\332\001\332ACproject,zone,instance_group" - + "_manager,instance_group_manager_resource" - + "\212N\016ZoneOperations\202\323\344\223\002}2Z/compute/v1/pro" - + "jects/{project}/zones/{zone}/instanceGro" - + "upManagers/{instance_group_manager}:\037ins", - "tance_group_manager_resource\022\300\003\n\027PatchPe" - + "rInstanceConfigs\022K.google.cloud.compute." - + "v1.PatchPerInstanceConfigsInstanceGroupM" - + "anagerRequest\032\".google.cloud.compute.v1." - + "Operation\"\263\002\332Acproject,zone,instance_gro" - + "up_manager,instance_group_managers_patch" - + "_per_instance_configs_req_resource\212N\016Zon" - + "eOperations\202\323\344\223\002\265\001\"r/compute/v1/projects" - + "/{project}/zones/{zone}/instanceGroupMan" - + "agers/{instance_group_manager}/patchPerI" - + "nstanceConfigs:?instance_group_managers_" - + "patch_per_instance_configs_req_resource\022" - + "\246\003\n\021RecreateInstances\022E.google.cloud.com" - + "pute.v1.RecreateInstancesInstanceGroupMa" - + "nagerRequest\032\".google.cloud.compute.v1.O" - + "peration\"\245\002\332A_project,zone,instance_grou" - + "p_manager,instance_group_managers_recrea" - + "te_instances_request_resource\212N\016ZoneOper" - + "ations\202\323\344\223\002\253\001\"l/compute/v1/projects/{pro" - + "ject}/zones/{zone}/instanceGroupManagers" - + "/{instance_group_manager}/recreateInstan" - + "ces:;instance_group_managers_recreate_in" - + "stances_request_resource\022\220\002\n\006Resize\022:.go" - + "ogle.cloud.compute.v1.ResizeInstanceGrou" - + "pManagerRequest\032\".google.cloud.compute.v" - + "1.Operation\"\245\001\332A(project,zone,instance_g" - + "roup_manager,size\212N\016ZoneOperations\202\323\344\223\002c" - + "\"a/compute/v1/projects/{project}/zones/{" - + "zone}/instanceGroupManagers/{instance_gr" - + "oup_manager}/resize\022\234\003\n\017ResumeInstances\022" - + "C.google.cloud.compute.v1.ResumeInstance" - + "sInstanceGroupManagerRequest\032\".google.cl" - + "oud.compute.v1.Operation\"\237\002\332A]project,zo" - + "ne,instance_group_manager,instance_group" - + "_managers_resume_instances_request_resou" - + "rce\212N\016ZoneOperations\202\323\344\223\002\247\001\"j/compute/v1" - + "/projects/{project}/zones/{zone}/instanc" - + "eGroupManagers/{instance_group_manager}/" - + "resumeInstances:9instance_group_managers" - + "_resume_instances_request_resource\022\262\003\n\023S" - + "etInstanceTemplate\022G.google.cloud.comput" - + "e.v1.SetInstanceTemplateInstanceGroupMan" - + "agerRequest\032\".google.cloud.compute.v1.Op" - + "eration\"\255\002\332Abproject,zone,instance_group" - + "_manager,instance_group_managers_set_ins" - + "tance_template_request_resource\212N\016ZoneOp" - + "erations\202\323\344\223\002\260\001\"n/compute/v1/projects/{p" - + "roject}/zones/{zone}/instanceGroupManage" - + "rs/{instance_group_manager}/setInstanceT" - + "emplate:>instance_group_managers_set_ins" - + "tance_template_request_resource\022\231\003\n\016SetT" - + "argetPools\022B.google.cloud.compute.v1.Set" - + "TargetPoolsInstanceGroupManagerRequest\032\"" - + ".google.cloud.compute.v1.Operation\"\236\002\332A]" - + "project,zone,instance_group_manager,inst" - + "ance_group_managers_set_target_pools_req" - + "uest_resource\212N\016ZoneOperations\202\323\344\223\002\246\001\"i/" - + "compute/v1/projects/{project}/zones/{zon" - + "e}/instanceGroupManagers/{instance_group" - + "_manager}/setTargetPools:9instance_group" - + "_managers_set_target_pools_request_resou" - + "rce\022\227\003\n\016StartInstances\022B.google.cloud.co" - + "mpute.v1.StartInstancesInstanceGroupMana" - + "gerRequest\032\".google.cloud.compute.v1.Ope" - + "ration\"\234\002\332A\\project,zone,instance_group_" - + "manager,instance_group_managers_start_in" - + "stances_request_resource\212N\016ZoneOperation" - + "s\202\323\344\223\002\245\001\"i/compute/v1/projects/{project}" - + "/zones/{zone}/instanceGroupManagers/{ins" - + "tance_group_manager}/startInstances:8ins" - + "tance_group_managers_start_instances_req" - + "uest_resource\022\222\003\n\rStopInstances\022A.google" - + ".cloud.compute.v1.StopInstancesInstanceG" - + "roupManagerRequest\032\".google.cloud.comput" - + "e.v1.Operation\"\231\002\332A[project,zone,instanc" - + "e_group_manager,instance_group_managers_" - + "stop_instances_request_resource\212N\016ZoneOp" - + "erations\202\323\344\223\002\243\001\"h/compute/v1/projects/{p" - + "roject}/zones/{zone}/instanceGroupManage" - + "rs/{instance_group_manager}/stopInstance" - + "s:7instance_group_managers_stop_instance" - + "s_request_resource\022\241\003\n\020SuspendInstances\022" - + "D.google.cloud.compute.v1.SuspendInstanc" - + "esInstanceGroupManagerRequest\032\".google.c" - + "loud.compute.v1.Operation\"\242\002\332A^project,z" - + "one,instance_group_manager,instance_grou" - + "p_managers_suspend_instances_request_res" - + "ource\212N\016ZoneOperations\202\323\344\223\002\251\001\"k/compute/" - + "v1/projects/{project}/zones/{zone}/insta" - + "nceGroupManagers/{instance_group_manager" - + "}/suspendInstances::instance_group_manag" - + "ers_suspend_instances_request_resource\022\305" - + "\003\n\030UpdatePerInstanceConfigs\022L.google.clo" - + "ud.compute.v1.UpdatePerInstanceConfigsIn" + + "er}/deleteInstances:9instance_group_mana" + + "gers_delete_instances_request_resource\022\305" + + "\003\n\030DeletePerInstanceConfigs\022L.google.clo" + + "ud.compute.v1.DeletePerInstanceConfigsIn" + "stanceGroupManagerRequest\032\".google.cloud" + ".compute.v1.Operation\"\266\002\332Adproject,zone," + "instance_group_manager,instance_group_ma" - + "nagers_update_per_instance_configs_req_r" + + "nagers_delete_per_instance_configs_req_r" + "esource\212N\016ZoneOperations\202\323\344\223\002\267\001\"s/comput" + "e/v1/projects/{project}/zones/{zone}/ins" + "tanceGroupManagers/{instance_group_manag" - + "er}/updatePerInstanceConfigs:@instance_g" - + "roup_managers_update_per_instance_config" - + "s_req_resource\032r\312A\026compute.googleapis.co" - + "m\322AVhttps://www.googleapis.com/auth/comp" - + "ute,https://www.googleapis.com/auth/clou" - + "d-platform2\360\024\n\016InstanceGroups\022\337\002\n\014AddIns" - + "tances\0229.google.cloud.compute.v1.AddInst" - + "ancesInstanceGroupRequest\032\".google.cloud" - + ".compute.v1.Operation\"\357\001\332AJproject,zone," - + "instance_group,instance_groups_add_insta" - + "nces_request_resource\212N\016ZoneOperations\202\323" - + "\344\223\002\212\001\"X/compute/v1/projects/{project}/zo" - + "nes/{zone}/instanceGroups/{instance_grou" - + "p}/addInstances:.instance_groups_add_ins" - + "tances_request_resource\022\320\001\n\016AggregatedLi" - + "st\022<.google.cloud.compute.v1.AggregatedL" - + "istInstanceGroupsRequest\0324.google.cloud." - + "compute.v1.InstanceGroupAggregatedList\"J" - + "\332A\007project\202\323\344\223\002:\0228/compute/v1/projects/{" - + "project}/aggregated/instanceGroups\022\346\001\n\006D" - + "elete\0223.google.cloud.compute.v1.DeleteIn" - + "stanceGroupRequest\032\".google.cloud.comput" - + "e.v1.Operation\"\202\001\332A\033project,zone,instanc" - + "e_group\212N\016ZoneOperations\202\323\344\223\002M*K/compute" - + "/v1/projects/{project}/zones/{zone}/inst" - + "anceGroups/{instance_group}\022\322\001\n\003Get\0220.go" - + "ogle.cloud.compute.v1.GetInstanceGroupRe" - + "quest\032&.google.cloud.compute.v1.Instance" - + "Group\"q\332A\033project,zone,instance_group\202\323\344" - + "\223\002M\022K/compute/v1/projects/{project}/zone" - + "s/{zone}/instanceGroups/{instance_group}" - + "\022\367\001\n\006Insert\0223.google.cloud.compute.v1.In" - + "sertInstanceGroupRequest\032\".google.cloud." - + "compute.v1.Operation\"\223\001\332A$project,zone,i" - + "nstance_group_resource\212N\016ZoneOperations\202" - + "\323\344\223\002U\":/compute/v1/projects/{project}/zo" - + "nes/{zone}/instanceGroups:\027instance_grou" - + "p_resource\022\271\001\n\004List\0222.google.cloud.compu" - + "te.v1.ListInstanceGroupsRequest\032*.google" - + ".cloud.compute.v1.InstanceGroupList\"Q\332A\014" - + "project,zone\202\323\344\223\002<\022:/compute/v1/projects" - + "/{project}/zones/{zone}/instanceGroups\022\346" - + "\002\n\rListInstances\022;.google.cloud.compute." - + "v1.ListInstancesInstanceGroupsRequest\0324." - + "google.cloud.compute.v1.InstanceGroupsLi" - + "stInstances\"\341\001\332AKproject,zone,instance_g" - + "roup,instance_groups_list_instances_requ" - + "est_resource\202\323\344\223\002\214\001\"Y/compute/v1/project" - + "s/{project}/zones/{zone}/instanceGroups/" - + "{instance_group}/listInstances:/instance" - + "_groups_list_instances_request_resource\022" - + "\356\002\n\017RemoveInstances\022<.google.cloud.compu" - + "te.v1.RemoveInstancesInstanceGroupReques" - + "t\032\".google.cloud.compute.v1.Operation\"\370\001" - + "\332AMproject,zone,instance_group,instance_" - + "groups_remove_instances_request_resource" - + "\212N\016ZoneOperations\202\323\344\223\002\220\001\"[/compute/v1/pr" + + "er}/deletePerInstanceConfigs:@instance_g" + + "roup_managers_delete_per_instance_config" + + "s_req_resource\022\370\001\n\003Get\0227.google.cloud.co" + + "mpute.v1.GetInstanceGroupManagerRequest\032" + + "-.google.cloud.compute.v1.InstanceGroupM" + + "anager\"\210\001\332A#project,zone,instance_group_" + + "manager\202\323\344\223\002\\\022Z/compute/v1/projects/{pro" + + "ject}/zones/{zone}/instanceGroupManagers" + + "/{instance_group_manager}\022\225\002\n\006Insert\022:.g" + + "oogle.cloud.compute.v1.InsertInstanceGro" + + "upManagerRequest\032\".google.cloud.compute." + + "v1.Operation\"\252\001\332A,project,zone,instance_" + + "group_manager_resource\212N\016ZoneOperations\202" + + "\323\344\223\002d\"A/compute/v1/projects/{project}/zo" + + "nes/{zone}/instanceGroupManagers:\037instan" + + "ce_group_manager_resource\022\316\001\n\004List\0229.goo" + + "gle.cloud.compute.v1.ListInstanceGroupMa" + + "nagersRequest\0321.google.cloud.compute.v1." + + "InstanceGroupManagerList\"X\332A\014project,zon" + + "e\202\323\344\223\002C\022A/compute/v1/projects/{project}/" + + "zones/{zone}/instanceGroupManagers\022\245\002\n\nL" + + "istErrors\022?.google.cloud.compute.v1.List" + + "ErrorsInstanceGroupManagersRequest\032@.goo" + + "gle.cloud.compute.v1.InstanceGroupManage" + + "rsListErrorsResponse\"\223\001\332A#project,zone,i" + + "nstance_group_manager\202\323\344\223\002g\022e/compute/v1" + + "/projects/{project}/zones/{zone}/instanc" + + "eGroupManagers/{instance_group_manager}/", + "listErrors\022\315\002\n\024ListManagedInstances\022I.go" + + "ogle.cloud.compute.v1.ListManagedInstanc" + + "esInstanceGroupManagersRequest\032J.google." + + "cloud.compute.v1.InstanceGroupManagersLi" + + "stManagedInstancesResponse\"\235\001\332A#project," + + "zone,instance_group_manager\202\323\344\223\002q\"o/comp" + + "ute/v1/projects/{project}/zones/{zone}/i" + + "nstanceGroupManagers/{instance_group_man" + + "ager}/listManagedInstances\022\321\002\n\026ListPerIn" + + "stanceConfigs\022K.google.cloud.compute.v1." + + "ListPerInstanceConfigsInstanceGroupManag" + + "ersRequest\032H.google.cloud.compute.v1.Ins" + + "tanceGroupManagersListPerInstanceConfigs" + + "Resp\"\237\001\332A#project,zone,instance_group_ma" + + "nager\202\323\344\223\002s\"q/compute/v1/projects/{proje" + + "ct}/zones/{zone}/instanceGroupManagers/{" + + "instance_group_manager}/listPerInstanceC" + + "onfigs\022\303\002\n\005Patch\0229.google.cloud.compute." + + "v1.PatchInstanceGroupManagerRequest\032\".go" + + "ogle.cloud.compute.v1.Operation\"\332\001\332ACpro" + + "ject,zone,instance_group_manager,instanc" + + "e_group_manager_resource\212N\016ZoneOperation" + + "s\202\323\344\223\002}2Z/compute/v1/projects/{project}/" + + "zones/{zone}/instanceGroupManagers/{inst" + + "ance_group_manager}:\037instance_group_mana" + + "ger_resource\022\300\003\n\027PatchPerInstanceConfigs" + + "\022K.google.cloud.compute.v1.PatchPerInsta" + + "nceConfigsInstanceGroupManagerRequest\032\"." + + "google.cloud.compute.v1.Operation\"\263\002\332Acp" + + "roject,zone,instance_group_manager,insta" + + "nce_group_managers_patch_per_instance_co" + + "nfigs_req_resource\212N\016ZoneOperations\202\323\344\223\002" + + "\265\001\"r/compute/v1/projects/{project}/zones" + + "/{zone}/instanceGroupManagers/{instance_" + + "group_manager}/patchPerInstanceConfigs:?" + + "instance_group_managers_patch_per_instan" + + "ce_configs_req_resource\022\246\003\n\021RecreateInst" + + "ances\022E.google.cloud.compute.v1.Recreate" + + "InstancesInstanceGroupManagerRequest\032\".g" + + "oogle.cloud.compute.v1.Operation\"\245\002\332A_pr" + + "oject,zone,instance_group_manager,instan" + + "ce_group_managers_recreate_instances_req" + + "uest_resource\212N\016ZoneOperations\202\323\344\223\002\253\001\"l/" + + "compute/v1/projects/{project}/zones/{zon" + + "e}/instanceGroupManagers/{instance_group" + + "_manager}/recreateInstances:;instance_gr" + + "oup_managers_recreate_instances_request_" + + "resource\022\220\002\n\006Resize\022:.google.cloud.compu" + + "te.v1.ResizeInstanceGroupManagerRequest\032" + + "\".google.cloud.compute.v1.Operation\"\245\001\332A" + + "(project,zone,instance_group_manager,siz" + + "e\212N\016ZoneOperations\202\323\344\223\002c\"a/compute/v1/pr" + "ojects/{project}/zones/{zone}/instanceGr" - + "oups/{instance_group}/removeInstances:1i" - + "nstance_groups_remove_instances_request_" - + "resource\022\346\002\n\rSetNamedPorts\022:.google.clou" - + "d.compute.v1.SetNamedPortsInstanceGroupR" - + "equest\032\".google.cloud.compute.v1.Operati" - + "on\"\364\001\332ALproject,zone,instance_group,inst" - + "ance_groups_set_named_ports_request_reso" - + "urce\212N\016ZoneOperations\202\323\344\223\002\215\001\"Y/compute/v" - + "1/projects/{project}/zones/{zone}/instan" - + "ceGroups/{instance_group}/setNamedPorts:" - + "0instance_groups_set_named_ports_request" - + "_resource\032r\312A\026compute.googleapis.com\322AVh" - + "ttps://www.googleapis.com/auth/compute,h" - + "ttps://www.googleapis.com/auth/cloud-pla" - + "tform2\313\004\n\027InstanceSettingsService\022\271\001\n\003Ge" - + "t\0222.google.cloud.compute.v1.GetInstanceS" - + "ettingRequest\032).google.cloud.compute.v1." - + "InstanceSettings\"S\332A\014project,zone\202\323\344\223\002>\022" - + "instanc" + + "e_group_managers_set_instance_template_r" + + "equest_resource\022\231\003\n\016SetTargetPools\022B.goo" + + "gle.cloud.compute.v1.SetTargetPoolsInsta" + + "nceGroupManagerRequest\032\".google.cloud.co" + + "mpute.v1.Operation\"\236\002\332A]project,zone,ins" + + "tance_group_manager,instance_group_manag" + + "ers_set_target_pools_request_resource\212N\016" + + "ZoneOperations\202\323\344\223\002\246\001\"i/compute/v1/proje" + + "cts/{project}/zones/{zone}/instanceGroup" + + "Managers/{instance_group_manager}/setTar" + + "getPools:9instance_group_managers_set_ta" + + "rget_pools_request_resource\022\227\003\n\016StartIns" + + "tances\022B.google.cloud.compute.v1.StartIn" + + "stancesInstanceGroupManagerRequest\032\".goo" + + "gle.cloud.compute.v1.Operation\"\234\002\332A\\proj" + + "ect,zone,instance_group_manager,instance" + + "_group_managers_start_instances_request_" + + "resource\212N\016ZoneOperations\202\323\344\223\002\245\001\"i/compu" + + "te/v1/projects/{project}/zones/{zone}/in" + + "stanceGroupManagers/{instance_group_mana" + + "ger}/startInstances:8instance_group_mana" + + "gers_start_instances_request_resource\022\222\003" + + "\n\rStopInstances\022A.google.cloud.compute.v" + + "1.StopInstancesInstanceGroupManagerReque" + + "st\032\".google.cloud.compute.v1.Operation\"\231" + + "\002\332A[project,zone,instance_group_manager," + + "instance_group_managers_stop_instances_r" + + "equest_resource\212N\016ZoneOperations\202\323\344\223\002\243\001\"" + + "h/compute/v1/projects/{project}/zones/{z" + + "one}/instanceGroupManagers/{instance_gro" + + "up_manager}/stopInstances:7instance_grou" + + "p_managers_stop_instances_request_resour" + + "ce\022\241\003\n\020SuspendInstances\022D.google.cloud.c" + + "ompute.v1.SuspendInstancesInstanceGroupM" + + "anagerRequest\032\".google.cloud.compute.v1." + + "Operation\"\242\002\332A^project,zone,instance_gro" + + "up_manager,instance_group_managers_suspe" + + "nd_instances_request_resource\212N\016ZoneOper" + + "ations\202\323\344\223\002\251\001\"k/compute/v1/projects/{pro" + + "ject}/zones/{zone}/instanceGroupManagers" + + "/{instance_group_manager}/suspendInstanc" + + "es::instance_group_managers_suspend_inst" + + "ances_request_resource\022\305\003\n\030UpdatePerInst" + + "anceConfigs\022L.google.cloud.compute.v1.Up" + + "datePerInstanceConfigsInstanceGroupManag" + + "erRequest\032\".google.cloud.compute.v1.Oper" + + "ation\"\266\002\332Adproject,zone,instance_group_m" + + "anager,instance_group_managers_update_pe" + + "r_instance_configs_req_resource\212N\016ZoneOp" + + "erations\202\323\344\223\002\267\001\"s/compute/v1/projects/{p" + + "roject}/zones/{zone}/instanceGroupManage" + + "rs/{instance_group_manager}/updatePerIns" + + "tanceConfigs:@instance_group_managers_up" + + "date_per_instance_configs_req_resource\032r" + + "\312A\026compute.googleapis.com\322AVhttps://www." + + "googleapis.com/auth/compute,https://www." + + "googleapis.com/auth/cloud-platform2\360\024\n\016I" + + "nstanceGroups\022\337\002\n\014AddInstances\0229.google." + + "cloud.compute.v1.AddInstancesInstanceGro" + + "upRequest\032\".google.cloud.compute.v1.Oper" + + "ation\"\357\001\332AJproject,zone,instance_group,i" + + "nstance_groups_add_instances_request_res" + + "ource\212N\016ZoneOperations\202\323\344\223\002\212\001\"X/compute/" + "v1/projects/{project}/zones/{zone}/insta" - + "nceSettings:\032instance_settings_resource\032" - + "r\312A\026compute.googleapis.com\322AVhttps://www" - + ".googleapis.com/auth/compute,https://www" - + ".googleapis.com/auth/cloud-platform2\244\020\n\021" - + "InstanceTemplates\022\331\001\n\016AggregatedList\022?.g" - + "oogle.cloud.compute.v1.AggregatedListIns" - + "tanceTemplatesRequest\0327.google.cloud.com" - + "pute.v1.InstanceTemplateAggregatedList\"M" - + "\332A\007project\202\323\344\223\002=\022;/compute/v1/projects/{" - + "project}/aggregated/instanceTemplates\022\351\001" - + "\n\006Delete\0226.google.cloud.compute.v1.Delet" - + "eInstanceTemplateRequest\032\".google.cloud." - + "compute.v1.Operation\"\202\001\332A\031project,instan" - + "ce_template\212N\020GlobalOperations\202\323\344\223\002M*K/c" - + "ompute/v1/projects/{project}/global/inst" - + "anceTemplates/{instance_template}\022\326\001\n\003Ge" - + "t\0223.google.cloud.compute.v1.GetInstanceT" - + "emplateRequest\032).google.cloud.compute.v1" - + ".InstanceTemplate\"o\332A\031project,instance_t" - + "emplate\202\323\344\223\002M\022K/compute/v1/projects/{pro" - + "ject}/global/instanceTemplates/{instance" - + "_template}\022\331\001\n\014GetIamPolicy\022<.google.clo" - + "ud.compute.v1.GetIamPolicyInstanceTempla" - + "teRequest\032\037.google.cloud.compute.v1.Poli" - + "cy\"j\332A\020project,resource\202\323\344\223\002Q\022O/compute/" - + "v1/projects/{project}/global/instanceTem" - + "plates/{resource}/getIamPolicy\022\372\001\n\006Inser" - + "t\0226.google.cloud.compute.v1.InsertInstan" - + "ceTemplateRequest\032\".google.cloud.compute" - + ".v1.Operation\"\223\001\332A\"project,instance_temp" - + "late_resource\212N\020GlobalOperations\202\323\344\223\002U\"7" - + "/compute/v1/projects/{project}/global/in" - + "stanceTemplates:\032instance_template_resou" - + "rce\022\267\001\n\004List\0225.google.cloud.compute.v1.L" - + "istInstanceTemplatesRequest\032-.google.clo" - + "ud.compute.v1.InstanceTemplateList\"I\332A\007p" - + "roject\202\323\344\223\0029\0227/compute/v1/projects/{proj" - + "ect}/global/instanceTemplates\022\241\002\n\014SetIam" - + "Policy\022<.google.cloud.compute.v1.SetIamP" - + "olicyInstanceTemplateRequest\032\037.google.cl" - + "oud.compute.v1.Policy\"\261\001\332A3project,resou" - + "rce,global_set_policy_request_resource\202\323" - + "\344\223\002u\"O/compute/v1/projects/{project}/glo" - + "bal/instanceTemplates/{resource}/setIamP" - + "olicy:\"global_set_policy_request_resourc" - + "e\022\302\002\n\022TestIamPermissions\022B.google.cloud." - + "compute.v1.TestIamPermissionsInstanceTem" - + "plateRequest\0320.google.cloud.compute.v1.T" - + "estPermissionsResponse\"\265\001\332A2project,reso" - + "urce,test_permissions_request_resource\202\323" - + "\344\223\002z\"U/compute/v1/projects/{project}/glo" - + "bal/instanceTemplates/{resource}/testIam" - + "Permissions:!test_permissions_request_re" - + "source\032r\312A\026compute.googleapis.com\322AVhttp" - + "s://www.googleapis.com/auth/compute,http" - + "s://www.googleapis.com/auth/cloud-platfo" - + "rm2\356k\n\tInstances\022\263\002\n\017AddAccessConfig\0227.g" - + "oogle.cloud.compute.v1.AddAccessConfigIn" - + "stanceRequest\032\".google.cloud.compute.v1." - + "Operation\"\302\001\332A>project,zone,instance,net" - + "work_interface,access_config_resource\212N\016" - + "ZoneOperations\202\323\344\223\002j\"P/compute/v1/projec" - + "ts/{project}/zones/{zone}/instances/{ins" - + "tance}/addAccessConfig:\026access_config_re" - + "source\022\342\002\n\023AddResourcePolicies\022;.google." - + "cloud.compute.v1.AddResourcePoliciesInst" - + "anceRequest\032\".google.cloud.compute.v1.Op" - + "eration\"\351\001\332AFproject,zone,instance,insta" - + "nces_add_resource_policies_request_resou" - + "rce\212N\016ZoneOperations\202\323\344\223\002\210\001\"T/compute/v1" + + "nceGroups/{instance_group}/addInstances:" + + ".instance_groups_add_instances_request_r" + + "esource\022\320\001\n\016AggregatedList\022<.google.clou" + + "d.compute.v1.AggregatedListInstanceGroup" + + "sRequest\0324.google.cloud.compute.v1.Insta" + + "nceGroupAggregatedList\"J\332A\007project\202\323\344\223\002:" + + "\0228/compute/v1/projects/{project}/aggrega" + + "ted/instanceGroups\022\346\001\n\006Delete\0223.google.c" + + "loud.compute.v1.DeleteInstanceGroupReque" + + "st\032\".google.cloud.compute.v1.Operation\"\202" + + "\001\332A\033project,zone,instance_group\212N\016ZoneOp" + + "erations\202\323\344\223\002M*K/compute/v1/projects/{pr" + + "oject}/zones/{zone}/instanceGroups/{inst" + + "ance_group}\022\322\001\n\003Get\0220.google.cloud.compu" + + "te.v1.GetInstanceGroupRequest\032&.google.c" + + "loud.compute.v1.InstanceGroup\"q\332A\033projec" + + "t,zone,instance_group\202\323\344\223\002M\022K/compute/v1" + "/projects/{project}/zones/{zone}/instanc" - + "es/{instance}/addResourcePolicies:0insta" - + "nces_add_resource_policies_request_resou" - + "rce\022\301\001\n\016AggregatedList\0227.google.cloud.co" - + "mpute.v1.AggregatedListInstancesRequest\032" - + "/.google.cloud.compute.v1.InstanceAggreg" - + "atedList\"E\332A\007project\202\323\344\223\0025\0223/compute/v1/" - + "projects/{project}/aggregated/instances\022" - + "\222\002\n\nAttachDisk\0222.google.cloud.compute.v1" - + ".AttachDiskInstanceRequest\032\".google.clou" - + "d.compute.v1.Operation\"\253\001\332A,project,zone" - + ",instance,attached_disk_resource\212N\016ZoneO" - + "perations\202\323\344\223\002e\"K/compute/v1/projects/{p" - + "roject}/zones/{zone}/instances/{instance" - + "}/attachDisk:\026attached_disk_resource\022\236\002\n" - + "\nBulkInsert\0222.google.cloud.compute.v1.Bu" - + "lkInsertInstanceRequest\032\".google.cloud.c" - + "ompute.v1.Operation\"\267\001\332A3project,zone,bu" - + "lk_insert_instance_resource_resource\212N\016Z" - + "oneOperations\202\323\344\223\002j\"@/compute/v1/project" - + "s/{project}/zones/{zone}/instances/bulkI" - + "nsert:&bulk_insert_instance_resource_res" - + "ource\022\317\001\n\006Delete\022..google.cloud.compute." - + "v1.DeleteInstanceRequest\032\".google.cloud." - + "compute.v1.Operation\"q\332A\025project,zone,in" - + "stance\212N\016ZoneOperations\202\323\344\223\002B*@/compute/" + + "eGroups/{instance_group}\022\367\001\n\006Insert\0223.go" + + "ogle.cloud.compute.v1.InsertInstanceGrou" + + "pRequest\032\".google.cloud.compute.v1.Opera" + + "tion\"\223\001\332A$project,zone,instance_group_re" + + "source\212N\016ZoneOperations\202\323\344\223\002U\":/compute/" + "v1/projects/{project}/zones/{zone}/insta" - + "nces/{instance}\022\233\002\n\022DeleteAccessConfig\022:" - + ".google.cloud.compute.v1.DeleteAccessCon" - + "figInstanceRequest\032\".google.cloud.comput" - + "e.v1.Operation\"\244\001\332A5project,zone,instanc" - + "e,access_config,network_interface\212N\016Zone" - + "Operations\202\323\344\223\002U\"S/compute/v1/projects/{" - + "project}/zones/{zone}/instances/{instanc" - + "e}/deleteAccessConfig\022\357\001\n\nDetachDisk\0222.g" - + "oogle.cloud.compute.v1.DetachDiskInstanc" + + "nceGroups:\027instance_group_resource\022\271\001\n\004L" + + "ist\0222.google.cloud.compute.v1.ListInstan" + + "ceGroupsRequest\032*.google.cloud.compute.v" + + "1.InstanceGroupList\"Q\332A\014project,zone\202\323\344\223" + + "\002<\022:/compute/v1/projects/{project}/zones" + + "/{zone}/instanceGroups\022\346\002\n\rListInstances" + + "\022;.google.cloud.compute.v1.ListInstances" + + "InstanceGroupsRequest\0324.google.cloud.com" + + "pute.v1.InstanceGroupsListInstances\"\341\001\332A" + + "Kproject,zone,instance_group,instance_gr" + + "oups_list_instances_request_resource\202\323\344\223" + + "\002\214\001\"Y/compute/v1/projects/{project}/zone" + + "s/{zone}/instanceGroups/{instance_group}" + + "/listInstances:/instance_groups_list_ins" + + "tances_request_resource\022\356\002\n\017RemoveInstan" + + "ces\022<.google.cloud.compute.v1.RemoveInst" + + "ancesInstanceGroupRequest\032\".google.cloud" + + ".compute.v1.Operation\"\370\001\332AMproject,zone," + + "instance_group,instance_groups_remove_in" + + "stances_request_resource\212N\016ZoneOperation" + + "s\202\323\344\223\002\220\001\"[/compute/v1/projects/{project}" + + "/zones/{zone}/instanceGroups/{instance_g" + + "roup}/removeInstances:1instance_groups_r" + + "emove_instances_request_resource\022\346\002\n\rSet" + + "NamedPorts\022:.google.cloud.compute.v1.Set" + + "NamedPortsInstanceGroupRequest\032\".google." + + "cloud.compute.v1.Operation\"\364\001\332ALproject," + + "zone,instance_group,instance_groups_set_" + + "named_ports_request_resource\212N\016ZoneOpera" + + "tions\202\323\344\223\002\215\001\"Y/compute/v1/projects/{proj" + + "ect}/zones/{zone}/instanceGroups/{instan" + + "ce_group}/setNamedPorts:0instance_groups" + + "_set_named_ports_request_resource\032r\312A\026co" + + "mpute.googleapis.com\322AVhttps://www.googl" + + "eapis.com/auth/compute,https://www.googl" + + "eapis.com/auth/cloud-platform2\313\004\n\027Instan" + + "ceSettingsService\022\271\001\n\003Get\0222.google.cloud" + + ".compute.v1.GetInstanceSettingRequest\032)." + + "google.cloud.compute.v1.InstanceSettings" + + "\"S\332A\014project,zone\202\323\344\223\002>\022p" + + "roject,zone,instance,network_interface,a" + + "ccess_config_resource\212N\016ZoneOperations\202\323" + + "\344\223\002j\"P/compute/v1/projects/{project}/zon" + + "es/{zone}/instances/{instance}/addAccess" + + "Config:\026access_config_resource\022\342\002\n\023AddRe" + + "sourcePolicies\022;.google.cloud.compute.v1" + + ".AddResourcePoliciesInstanceRequest\032\".go" + + "ogle.cloud.compute.v1.Operation\"\351\001\332AFpro" + + "ject,zone,instance,instances_add_resourc" + + "e_policies_request_resource\212N\016ZoneOperat" + + "ions\202\323\344\223\002\210\001\"T/compute/v1/projects/{proje" + + "ct}/zones/{zone}/instances/{instance}/ad" + + "dResourcePolicies:0instances_add_resourc" + + "e_policies_request_resource\022\301\001\n\016Aggregat" + + "edList\0227.google.cloud.compute.v1.Aggrega" + + "tedListInstancesRequest\032/.google.cloud.c" + + "ompute.v1.InstanceAggregatedList\"E\332A\007pro" + + "ject\202\323\344\223\0025\0223/compute/v1/projects/{projec" + + "t}/aggregated/instances\022\222\002\n\nAttachDisk\0222" + + ".google.cloud.compute.v1.AttachDiskInsta" + + "nceRequest\032\".google.cloud.compute.v1.Ope" + + "ration\"\253\001\332A,project,zone,instance,attach" + + "ed_disk_resource\212N\016ZoneOperations\202\323\344\223\002e\"" + + "K/compute/v1/projects/{project}/zones/{z" + + "one}/instances/{instance}/attachDisk:\026at" + + "tached_disk_resource\022\236\002\n\nBulkInsert\0222.go" + + "ogle.cloud.compute.v1.BulkInsertInstance" + "Request\032\".google.cloud.compute.v1.Operat" - + "ion\"\204\001\332A\025project,zone,instance\212N\016ZoneOpe" - + "rations\202\323\344\223\002U\"S/compute/v1/projects/{pro" - + "ject}/zones/{zone}/instances/{instance}/" - + "performMaintenance\022\361\002\n\026RemoveResourcePol" - + "icies\022>.google.cloud.compute.v1.RemoveRe" - + "sourcePoliciesInstanceRequest\032\".google.c" - + "loud.compute.v1.Operation\"\362\001\332AIproject,z" - + "one,instance,instances_remove_resource_p" - + "olicies_request_resource\212N\016ZoneOperation" - + "s\202\323\344\223\002\216\001\"W/compute/v1/projects/{project}" - + "/zones/{zone}/instances/{instance}/remov" - + "eResourcePolicies:3instances_remove_reso" - + "urce_policies_request_resource\022\337\002\n\022Repor" - + "tHostAsFaulty\022:.google.cloud.compute.v1." - + "ReportHostAsFaultyInstanceRequest\032\".goog" - + "le.cloud.compute.v1.Operation\"\350\001\332AFproje" - + "ct,zone,instance,instances_report_host_a" - + "s_faulty_request_resource\212N\016ZoneOperatio" - + "ns\202\323\344\223\002\207\001\"S/compute/v1/projects/{project" - + "}/zones/{zone}/instances/{instance}/repo" - + "rtHostAsFaulty:0instances_report_host_as" - + "_faulty_request_resource\022\323\001\n\005Reset\022-.goo" - + "gle.cloud.compute.v1.ResetInstanceReques" - + "t\032\".google.cloud.compute.v1.Operation\"w\332" - + "A\025project,zone,instance\212N\016ZoneOperations" - + "\202\323\344\223\002H\"F/compute/v1/projects/{project}/z" - + "ones/{zone}/instances/{instance}/reset\022\326" - + "\001\n\006Resume\022..google.cloud.compute.v1.Resu" - + "meInstanceRequest\032\".google.cloud.compute" - + ".v1.Operation\"x\332A\025project,zone,instance\212" - + "N\016ZoneOperations\202\323\344\223\002I\"G/compute/v1/proj" - + "ects/{project}/zones/{zone}/instances/{i" - + "nstance}/resume\022\226\002\n\027SendDiagnosticInterr" - + "upt\022?.google.cloud.compute.v1.SendDiagno" - + "sticInterruptInstanceRequest\032@.google.cl" - + "oud.compute.v1.SendDiagnosticInterruptIn" - + "stanceResponse\"x\332A\025project,zone,instance" - + "\202\323\344\223\002Z\"X/compute/v1/projects/{project}/z" - + "ones/{zone}/instances/{instance}/sendDia" - + "gnosticInterrupt\022\204\002\n\025SetDeletionProtecti" - + "on\022=.google.cloud.compute.v1.SetDeletion" - + "ProtectionInstanceRequest\032\".google.cloud" - + ".compute.v1.Operation\"\207\001\332A\025project,zone," - + "resource\212N\016ZoneOperations\202\323\344\223\002X\"V/comput" - + "e/v1/projects/{project}/zones/{zone}/ins", - "tances/{resource}/setDeletionProtection\022" - + "\220\002\n\021SetDiskAutoDelete\0229.google.cloud.com" - + "pute.v1.SetDiskAutoDeleteInstanceRequest" - + "\032\".google.cloud.compute.v1.Operation\"\233\001\332" - + "A-project,zone,instance,auto_delete,devi" - + "ce_name\212N\016ZoneOperations\202\323\344\223\002T\"R/compute" - + "/v1/projects/{project}/zones/{zone}/inst" - + "ances/{instance}/setDiskAutoDelete\022\230\002\n\014S" - + "etIamPolicy\0224.google.cloud.compute.v1.Se" - + "tIamPolicyInstanceRequest\032\037.google.cloud" - + ".compute.v1.Policy\"\260\001\332A6project,zone,res" - + "ource,zone_set_policy_request_resource\202\323" - + "\344\223\002q\"M/compute/v1/projects/{project}/zon" - + "es/{zone}/instances/{resource}/setIamPol" - + "icy: zone_set_policy_request_resource\022\255\002" - + "\n\tSetLabels\0221.google.cloud.compute.v1.Se" - + "tLabelsInstanceRequest\032\".google.cloud.co" - + "mpute.v1.Operation\"\310\001\332A;project,zone,ins" - + "tance,instances_set_labels_request_resou" - + "rce\212N\016ZoneOperations\202\323\344\223\002s\"J/compute/v1/" - + "projects/{project}/zones/{zone}/instance" - + "s/{instance}/setLabels:%instances_set_la" - + "bels_request_resource\022\342\002\n\023SetMachineReso" - + "urces\022;.google.cloud.compute.v1.SetMachi" - + "neResourcesInstanceRequest\032\".google.clou" - + "d.compute.v1.Operation\"\351\001\332AFproject,zone" - + ",instance,instances_set_machine_resource" - + "s_request_resource\212N\016ZoneOperations\202\323\344\223\002" - + "\210\001\"T/compute/v1/projects/{project}/zones" - + "/{zone}/instances/{instance}/setMachineR" - + "esources:0instances_set_machine_resource" - + "s_request_resource\022\310\002\n\016SetMachineType\0226." - + "google.cloud.compute.v1.SetMachineTypeIn" - + "stanceRequest\032\".google.cloud.compute.v1." - + "Operation\"\331\001\332AAproject,zone,instance,ins" - + "tances_set_machine_type_request_resource" - + "\212N\016ZoneOperations\202\323\344\223\002~\"O/compute/v1/pro" + + "ion\"\267\001\332A3project,zone,bulk_insert_instan" + + "ce_resource_resource\212N\016ZoneOperations\202\323\344" + + "\223\002j\"@/compute/v1/projects/{project}/zone" + + "s/{zone}/instances/bulkInsert:&bulk_inse" + + "rt_instance_resource_resource\022\317\001\n\006Delete" + + "\022..google.cloud.compute.v1.DeleteInstanc" + + "eRequest\032\".google.cloud.compute.v1.Opera" + + "tion\"q\332A\025project,zone,instance\212N\016ZoneOpe" + + "rations\202\323\344\223\002B*@/compute/v1/projects/{pro" + + "ject}/zones/{zone}/instances/{instance}\022" + + "\233\002\n\022DeleteAccessConfig\022:.google.cloud.co" + + "mpute.v1.DeleteAccessConfigInstanceReque" + + "st\032\".google.cloud.compute.v1.Operation\"\244" + + "\001\332A5project,zone,instance,access_config," + + "network_interface\212N\016ZoneOperations\202\323\344\223\002U" + + "\"S/compute/v1/projects/{project}/zones/{" + + "zone}/instances/{instance}/deleteAccessC" + + "onfig\022\357\001\n\nDetachDisk\0222.google.cloud.comp" + + "ute.v1.DetachDiskInstanceRequest\032\".googl" + + "e.cloud.compute.v1.Operation\"\210\001\332A!projec" + + "t,zone,instance,device_name\212N\016ZoneOperat" + + "ions\202\323\344\223\002M\"K/compute/v1/projects/{projec" + + "t}/zones/{zone}/instances/{instance}/det" + + "achDisk\022\267\001\n\003Get\022+.google.cloud.compute.v" + + "1.GetInstanceRequest\032!.google.cloud.comp" + + "ute.v1.Instance\"`\332A\025project,zone,instanc" + + "e\202\323\344\223\002B\022@/compute/v1/projects/{project}/" + + "zones/{zone}/instances/{instance}\022\242\002\n\025Ge" + + "tEffectiveFirewalls\022=.google.cloud.compu" + + "te.v1.GetEffectiveFirewallsInstanceReque" + + "st\032?.google.cloud.compute.v1.InstancesGe" + + "tEffectiveFirewallsResponse\"\210\001\332A\'project" + + ",zone,instance,network_interface\202\323\344\223\002X\022V" + + "/compute/v1/projects/{project}/zones/{zo" + + "ne}/instances/{instance}/getEffectiveFir" + + "ewalls\022\357\001\n\022GetGuestAttributes\022:.google.c" + + "loud.compute.v1.GetGuestAttributesInstan" + + "ceRequest\032(.google.cloud.compute.v1.Gues" + + "tAttributes\"s\332A\025project,zone,instance\202\323\344" + + "\223\002U\022S/compute/v1/projects/{project}/zone" + + "s/{zone}/instances/{instance}/getGuestAt" + + "tributes\022\324\001\n\014GetIamPolicy\0224.google.cloud" + + ".compute.v1.GetIamPolicyInstanceRequest\032" + + "\037.google.cloud.compute.v1.Policy\"m\332A\025pro" + + "ject,zone,resource\202\323\344\223\002O\022M/compute/v1/pr" + + "ojects/{project}/zones/{zone}/instances/" + + "{resource}/getIamPolicy\022\330\001\n\rGetScreensho" + + "t\0225.google.cloud.compute.v1.GetScreensho" + + "tInstanceRequest\032#.google.cloud.compute." + + "v1.Screenshot\"k\332A\025project,zone,instance\202" + + "\323\344\223\002M\022K/compute/v1/projects/{project}/zo" + + "nes/{zone}/instances/{instance}/screensh" + + "ot\022\352\001\n\023GetSerialPortOutput\022;.google.clou" + + "d.compute.v1.GetSerialPortOutputInstance" + + "Request\032).google.cloud.compute.v1.Serial" + + "PortOutput\"k\332A\025project,zone,instance\202\323\344\223" + + "\002M\022K/compute/v1/projects/{project}/zones" + + "/{zone}/instances/{instance}/serialPort\022" + + "\223\002\n\033GetShieldedInstanceIdentity\022C.google" + + ".cloud.compute.v1.GetShieldedInstanceIde" + + "ntityInstanceRequest\0321.google.cloud.comp" + + "ute.v1.ShieldedInstanceIdentity\"|\332A\025proj" + + "ect,zone,instance\202\323\344\223\002^\022\\/compute/v1/pro" + "jects/{project}/zones/{zone}/instances/{" - + "instance}/setMachineType:+instances_set_" - + "machine_type_request_resource\022\213\002\n\013SetMet" - + "adata\0223.google.cloud.compute.v1.SetMetad" - + "ataInstanceRequest\032\".google.cloud.comput" - + "e.v1.Operation\"\242\001\332A\'project,zone,instanc" - + "e,metadata_resource\212N\016ZoneOperations\202\323\344\223" - + "\002a\"L/compute/v1/projects/{project}/zones" - + "/{zone}/instances/{instance}/setMetadata" - + ":\021metadata_resource\022\332\002\n\021SetMinCpuPlatfor" - + "m\0229.google.cloud.compute.v1.SetMinCpuPla" - + "tformInstanceRequest\032\".google.cloud.comp" - + "ute.v1.Operation\"\345\001\332AEproject,zone,insta" - + "nce,instances_set_min_cpu_platform_reque" - + "st_resource\212N\016ZoneOperations\202\323\344\223\002\205\001\"R/co" - + "mpute/v1/projects/{project}/zones/{zone}" - + "/instances/{instance}/setMinCpuPlatform:" - + "/instances_set_min_cpu_platform_request_" - + "resource\022\243\002\n\007SetName\022/.google.cloud.comp" - + "ute.v1.SetNameInstanceRequest\032\".google.c" - + "loud.compute.v1.Operation\"\302\001\332A9project,z" - + "one,instance,instances_set_name_request_" - + "resource\212N\016ZoneOperations\202\323\344\223\002o\"H/comput" + + "instance}/getShieldedInstanceIdentity\022\341\001" + + "\n\006Insert\022..google.cloud.compute.v1.Inser" + + "tInstanceRequest\032\".google.cloud.compute." + + "v1.Operation\"\202\001\332A\036project,zone,instance_" + + "resource\212N\016ZoneOperations\202\323\344\223\002J\"5/comput" + "e/v1/projects/{project}/zones/{zone}/ins" - + "tances/{instance}/setName:#instances_set" - + "_name_request_resource\022\225\002\n\rSetScheduling" - + "\0225.google.cloud.compute.v1.SetScheduling" - + "InstanceRequest\032\".google.cloud.compute.v" - + "1.Operation\"\250\001\332A)project,zone,instance,s" - + "cheduling_resource\212N\016ZoneOperations\202\323\344\223\002" - + "e\"N/compute/v1/projects/{project}/zones/" - + "{zone}/instances/{instance}/setSchedulin" - + "g:\023scheduling_resource\022\330\002\n\021SetSecurityPo" - + "licy\0229.google.cloud.compute.v1.SetSecuri" - + "tyPolicyInstanceRequest\032\".google.cloud.c" - + "ompute.v1.Operation\"\343\001\332ADproject,zone,in" - + "stance,instances_set_security_policy_req" - + "uest_resource\212N\016ZoneOperations\202\323\344\223\002\204\001\"R/" + + "tances:\021instance_resource\022\252\001\n\004List\022-.goo" + + "gle.cloud.compute.v1.ListInstancesReques" + + "t\032%.google.cloud.compute.v1.InstanceList" + + "\"L\332A\014project,zone\202\323\344\223\0027\0225/compute/v1/pro" + + "jects/{project}/zones/{zone}/instances\022\343" + + "\001\n\rListReferrers\0226.google.cloud.compute." + + "v1.ListReferrersInstancesRequest\032..googl" + + "e.cloud.compute.v1.InstanceListReferrers" + + "\"j\332A\025project,zone,instance\202\323\344\223\002L\022J/compu" + + "te/v1/projects/{project}/zones/{zone}/in" + + "stances/{instance}/referrers\022\373\001\n\022Perform" + + "Maintenance\022:.google.cloud.compute.v1.Pe" + + "rformMaintenanceInstanceRequest\032\".google" + + ".cloud.compute.v1.Operation\"\204\001\332A\025project" + + ",zone,instance\212N\016ZoneOperations\202\323\344\223\002U\"S/" + "compute/v1/projects/{project}/zones/{zon" - + "e}/instances/{instance}/setSecurityPolic" - + "y:.instances_set_security_policy_request" - + "_resource\022\330\002\n\021SetServiceAccount\0229.google" - + ".cloud.compute.v1.SetServiceAccountInsta" - + "nceRequest\032\".google.cloud.compute.v1.Ope" - + "ration\"\343\001\332ADproject,zone,instance,instan" - + "ces_set_service_account_request_resource" - + "\212N\016ZoneOperations\202\323\344\223\002\204\001\"R/compute/v1/pr" - + "ojects/{project}/zones/{zone}/instances/" - + "{instance}/setServiceAccount:.instances_" - + "set_service_account_request_resource\022\205\003\n" - + "\"SetShieldedInstanceIntegrityPolicy\022J.go" - + "ogle.cloud.compute.v1.SetShieldedInstanc" - + "eIntegrityPolicyInstanceRequest\032\".google" - + ".cloud.compute.v1.Operation\"\356\001\332AAproject" - + ",zone,instance,shielded_instance_integri" - + "ty_policy_resource\212N\016ZoneOperations\202\323\344\223\002" - + "\222\0012c/compute/v1/projects/{project}/zones" - + "/{zone}/instances/{instance}/setShielded" - + "InstanceIntegrityPolicy:+shielded_instan" - + "ce_integrity_policy_resource\022\367\001\n\007SetTags" - + "\022/.google.cloud.compute.v1.SetTagsInstan" - + "ceRequest\032\".google.cloud.compute.v1.Oper" - + "ation\"\226\001\332A#project,zone,instance,tags_re" - + "source\212N\016ZoneOperations\202\323\344\223\002Y\"H/compute/" - + "v1/projects/{project}/zones/{zone}/insta" - + "nces/{instance}/setTags:\rtags_resource\022\215" - + "\002\n\030SimulateMaintenanceEvent\022@.google.clo" - + "ud.compute.v1.SimulateMaintenanceEventIn" + + "e}/instances/{instance}/performMaintenan" + + "ce\022\361\002\n\026RemoveResourcePolicies\022>.google.c" + + "loud.compute.v1.RemoveResourcePoliciesIn" + "stanceRequest\032\".google.cloud.compute.v1." - + "Operation\"\212\001\332A\025project,zone,instance\212N\016Z" - + "oneOperations\202\323\344\223\002[\"Y/compute/v1/project" + + "Operation\"\362\001\332AIproject,zone,instance,ins" + + "tances_remove_resource_policies_request_" + + "resource\212N\016ZoneOperations\202\323\344\223\002\216\001\"W/compu" + + "te/v1/projects/{project}/zones/{zone}/in" + + "stances/{instance}/removeResourcePolicie" + + "s:3instances_remove_resource_policies_re" + + "quest_resource\022\337\002\n\022ReportHostAsFaulty\022:." + + "google.cloud.compute.v1.ReportHostAsFaul" + + "tyInstanceRequest\032\".google.cloud.compute" + + ".v1.Operation\"\350\001\332AFproject,zone,instance" + + ",instances_report_host_as_faulty_request" + + "_resource\212N\016ZoneOperations\202\323\344\223\002\207\001\"S/comp" + + "ute/v1/projects/{project}/zones/{zone}/i" + + "nstances/{instance}/reportHostAsFaulty:0", + "instances_report_host_as_faulty_request_" + + "resource\022\323\001\n\005Reset\022-.google.cloud.comput" + + "e.v1.ResetInstanceRequest\032\".google.cloud" + + ".compute.v1.Operation\"w\332A\025project,zone,i" + + "nstance\212N\016ZoneOperations\202\323\344\223\002H\"F/compute" + + "/v1/projects/{project}/zones/{zone}/inst" + + "ances/{instance}/reset\022\326\001\n\006Resume\022..goog" + + "le.cloud.compute.v1.ResumeInstanceReques" + + "t\032\".google.cloud.compute.v1.Operation\"x\332" + + "A\025project,zone,instance\212N\016ZoneOperations" + + "\202\323\344\223\002I\"G/compute/v1/projects/{project}/z" + + "ones/{zone}/instances/{instance}/resume\022" + + "\226\002\n\027SendDiagnosticInterrupt\022?.google.clo" + + "ud.compute.v1.SendDiagnosticInterruptIns" + + "tanceRequest\032@.google.cloud.compute.v1.S" + + "endDiagnosticInterruptInstanceResponse\"x" + + "\332A\025project,zone,instance\202\323\344\223\002Z\"X/compute" + + "/v1/projects/{project}/zones/{zone}/inst" + + "ances/{instance}/sendDiagnosticInterrupt" + + "\022\204\002\n\025SetDeletionProtection\022=.google.clou" + + "d.compute.v1.SetDeletionProtectionInstan" + + "ceRequest\032\".google.cloud.compute.v1.Oper" + + "ation\"\207\001\332A\025project,zone,resource\212N\016ZoneO" + + "perations\202\323\344\223\002X\"V/compute/v1/projects/{p" + + "roject}/zones/{zone}/instances/{resource" + + "}/setDeletionProtection\022\220\002\n\021SetDiskAutoD" + + "elete\0229.google.cloud.compute.v1.SetDiskA" + + "utoDeleteInstanceRequest\032\".google.cloud." + + "compute.v1.Operation\"\233\001\332A-project,zone,i" + + "nstance,auto_delete,device_name\212N\016ZoneOp" + + "erations\202\323\344\223\002T\"R/compute/v1/projects/{pr" + + "oject}/zones/{zone}/instances/{instance}" + + "/setDiskAutoDelete\022\230\002\n\014SetIamPolicy\0224.go" + + "ogle.cloud.compute.v1.SetIamPolicyInstan" + + "ceRequest\032\037.google.cloud.compute.v1.Poli" + + "cy\"\260\001\332A6project,zone,resource,zone_set_p" + + "olicy_request_resource\202\323\344\223\002q\"M/compute/v" + + "1/projects/{project}/zones/{zone}/instan" + + "ces/{resource}/setIamPolicy: zone_set_po" + + "licy_request_resource\022\255\002\n\tSetLabels\0221.go" + + "ogle.cloud.compute.v1.SetLabelsInstanceR" + + "equest\032\".google.cloud.compute.v1.Operati" + + "on\"\310\001\332A;project,zone,instance,instances_" + + "set_labels_request_resource\212N\016ZoneOperat" + + "ions\202\323\344\223\002s\"J/compute/v1/projects/{projec" + + "t}/zones/{zone}/instances/{instance}/set" + + "Labels:%instances_set_labels_request_res" + + "ource\022\342\002\n\023SetMachineResources\022;.google.c" + + "loud.compute.v1.SetMachineResourcesInsta" + + "nceRequest\032\".google.cloud.compute.v1.Ope" + + "ration\"\351\001\332AFproject,zone,instance,instan" + + "ces_set_machine_resources_request_resour" + + "ce\212N\016ZoneOperations\202\323\344\223\002\210\001\"T/compute/v1/" + + "projects/{project}/zones/{zone}/instance" + + "s/{instance}/setMachineResources:0instan" + + "ces_set_machine_resources_request_resour" + + "ce\022\310\002\n\016SetMachineType\0226.google.cloud.com" + + "pute.v1.SetMachineTypeInstanceRequest\032\"." + + "google.cloud.compute.v1.Operation\"\331\001\332AAp" + + "roject,zone,instance,instances_set_machi" + + "ne_type_request_resource\212N\016ZoneOperation" + + "s\202\323\344\223\002~\"O/compute/v1/projects/{project}/" + + "zones/{zone}/instances/{instance}/setMac" + + "hineType:+instances_set_machine_type_req" + + "uest_resource\022\213\002\n\013SetMetadata\0223.google.c" + + "loud.compute.v1.SetMetadataInstanceReque" + + "st\032\".google.cloud.compute.v1.Operation\"\242" + + "\001\332A\'project,zone,instance,metadata_resou" + + "rce\212N\016ZoneOperations\202\323\344\223\002a\"L/compute/v1/" + + "projects/{project}/zones/{zone}/instance" + + "s/{instance}/setMetadata:\021metadata_resou" + + "rce\022\332\002\n\021SetMinCpuPlatform\0229.google.cloud" + + ".compute.v1.SetMinCpuPlatformInstanceReq" + + "uest\032\".google.cloud.compute.v1.Operation" + + "\"\345\001\332AEproject,zone,instance,instances_se" + + "t_min_cpu_platform_request_resource\212N\016Zo" + + "neOperations\202\323\344\223\002\205\001\"R/compute/v1/project" + "s/{project}/zones/{zone}/instances/{inst" - + "ance}/simulateMaintenanceEvent\022\323\001\n\005Start" - + "\022-.google.cloud.compute.v1.StartInstance" + + "ance}/setMinCpuPlatform:/instances_set_m" + + "in_cpu_platform_request_resource\022\243\002\n\007Set" + + "Name\022/.google.cloud.compute.v1.SetNameIn" + + "stanceRequest\032\".google.cloud.compute.v1." + + "Operation\"\302\001\332A9project,zone,instance,ins" + + "tances_set_name_request_resource\212N\016ZoneO" + + "perations\202\323\344\223\002o\"H/compute/v1/projects/{p" + + "roject}/zones/{zone}/instances/{instance" + + "}/setName:#instances_set_name_request_re" + + "source\022\225\002\n\rSetScheduling\0225.google.cloud." + + "compute.v1.SetSchedulingInstanceRequest\032" + + "\".google.cloud.compute.v1.Operation\"\250\001\332A" + + ")project,zone,instance,scheduling_resour" + + "ce\212N\016ZoneOperations\202\323\344\223\002e\"N/compute/v1/p" + + "rojects/{project}/zones/{zone}/instances" + + "/{instance}/setScheduling:\023scheduling_re" + + "source\022\330\002\n\021SetSecurityPolicy\0229.google.cl" + + "oud.compute.v1.SetSecurityPolicyInstance" + "Request\032\".google.cloud.compute.v1.Operat" - + "ion\"w\332A\025project,zone,instance\212N\016ZoneOper" - + "ations\202\323\344\223\002H\"F/compute/v1/projects/{proj" - + "ect}/zones/{zone}/instances/{instance}/s" - + "tart\022\363\002\n\026StartWithEncryptionKey\022>.google" - + ".cloud.compute.v1.StartWithEncryptionKey" + + "ion\"\343\001\332ADproject,zone,instance,instances" + + "_set_security_policy_request_resource\212N\016" + + "ZoneOperations\202\323\344\223\002\204\001\"R/compute/v1/proje" + + "cts/{project}/zones/{zone}/instances/{in" + + "stance}/setSecurityPolicy:.instances_set" + + "_security_policy_request_resource\022\330\002\n\021Se" + + "tServiceAccount\0229.google.cloud.compute.v" + + "1.SetServiceAccountInstanceRequest\032\".goo" + + "gle.cloud.compute.v1.Operation\"\343\001\332ADproj" + + "ect,zone,instance,instances_set_service_" + + "account_request_resource\212N\016ZoneOperation" + + "s\202\323\344\223\002\204\001\"R/compute/v1/projects/{project}" + + "/zones/{zone}/instances/{instance}/setSe" + + "rviceAccount:.instances_set_service_acco" + + "unt_request_resource\022\205\003\n\"SetShieldedInst" + + "anceIntegrityPolicy\022J.google.cloud.compu" + + "te.v1.SetShieldedInstanceIntegrityPolicy" + "InstanceRequest\032\".google.cloud.compute.v" - + "1.Operation\"\364\001\332AJproject,zone,instance,i" - + "nstances_start_with_encryption_key_reque" - + "st_resource\212N\016ZoneOperations\202\323\344\223\002\217\001\"W/co" - + "mpute/v1/projects/{project}/zones/{zone}" - + "/instances/{instance}/startWithEncryptio" - + "nKey:4instances_start_with_encryption_ke" - + "y_request_resource\022\320\001\n\004Stop\022,.google.clo" - + "ud.compute.v1.StopInstanceRequest\032\".goog" - + "le.cloud.compute.v1.Operation\"v\332A\025projec" - + "t,zone,instance\212N\016ZoneOperations\202\323\344\223\002G\"E" - + "/compute/v1/projects/{project}/zones/{zo" - + "ne}/instances/{instance}/stop\022\331\001\n\007Suspen" - + "d\022/.google.cloud.compute.v1.SuspendInsta" - + "nceRequest\032\".google.cloud.compute.v1.Ope" - + "ration\"y\332A\025project,zone,instance\212N\016ZoneO" - + "perations\202\323\344\223\002J\"H/compute/v1/projects/{p" - + "roject}/zones/{zone}/instances/{instance" - + "}/suspend\022\275\002\n\022TestIamPermissions\022:.googl" - + "e.cloud.compute.v1.TestIamPermissionsIns" - + "tanceRequest\0320.google.cloud.compute.v1.T" - + "estPermissionsResponse\"\270\001\332A7project,zone" - + ",resource,test_permissions_request_resou" - + "rce\202\323\344\223\002x\"S/compute/v1/projects/{project" - + "}/zones/{zone}/instances/{resource}/test" - + "IamPermissions:!test_permissions_request" - + "_resource\022\365\001\n\006Update\022..google.cloud.comp" - + "ute.v1.UpdateInstanceRequest\032\".google.cl" - + "oud.compute.v1.Operation\"\226\001\332A\'project,zo" - + "ne,instance,instance_resource\212N\016ZoneOper" - + "ations\202\323\344\223\002U\032@/compute/v1/projects/{proj" - + "ect}/zones/{zone}/instances/{instance}:\021" - + "instance_resource\022\274\002\n\022UpdateAccessConfig" - + "\022:.google.cloud.compute.v1.UpdateAccessC" - + "onfigInstanceRequest\032\".google.cloud.comp" - + "ute.v1.Operation\"\305\001\332A>project,zone,insta" - + "nce,network_interface,access_config_reso" - + "urce\212N\016ZoneOperations\202\323\344\223\002m\"S/compute/v1" - + "/projects/{project}/zones/{zone}/instanc" - + "es/{instance}/updateAccessConfig:\026access" - + "_config_resource\022\257\002\n\023UpdateDisplayDevice" - + "\022;.google.cloud.compute.v1.UpdateDisplay" - + "DeviceInstanceRequest\032\".google.cloud.com" - + "pute.v1.Operation\"\266\001\332A-project,zone,inst" - + "ance,display_device_resource\212N\016ZoneOpera" - + "tions\202\323\344\223\002o2T/compute/v1/projects/{proje" - + "ct}/zones/{zone}/instances/{instance}/up" - + "dateDisplayDevice:\027display_device_resour" - + "ce\022\320\002\n\026UpdateNetworkInterface\022>.google.c" - + "loud.compute.v1.UpdateNetworkInterfaceIn" - + "stanceRequest\032\".google.cloud.compute.v1." - + "Operation\"\321\001\332ABproject,zone,instance,net" - + "work_interface,network_interface_resourc" - + "e\212N\016ZoneOperations\202\323\344\223\002u2W/compute/v1/pr" - + "ojects/{project}/zones/{zone}/instances/" - + "{instance}/updateNetworkInterface:\032netwo" - + "rk_interface_resource\022\337\002\n\034UpdateShielded" - + "InstanceConfig\022D.google.cloud.compute.v1" - + ".UpdateShieldedInstanceConfigInstanceReq" + + "1.Operation\"\356\001\332AAproject,zone,instance,s" + + "hielded_instance_integrity_policy_resour" + + "ce\212N\016ZoneOperations\202\323\344\223\002\222\0012c/compute/v1/" + + "projects/{project}/zones/{zone}/instance" + + "s/{instance}/setShieldedInstanceIntegrit" + + "yPolicy:+shielded_instance_integrity_pol" + + "icy_resource\022\367\001\n\007SetTags\022/.google.cloud." + + "compute.v1.SetTagsInstanceRequest\032\".goog" + + "le.cloud.compute.v1.Operation\"\226\001\332A#proje" + + "ct,zone,instance,tags_resource\212N\016ZoneOpe" + + "rations\202\323\344\223\002Y\"H/compute/v1/projects/{pro" + + "ject}/zones/{zone}/instances/{instance}/" + + "setTags:\rtags_resource\022\215\002\n\030SimulateMaint" + + "enanceEvent\022@.google.cloud.compute.v1.Si" + + "mulateMaintenanceEventInstanceRequest\032\"." + + "google.cloud.compute.v1.Operation\"\212\001\332A\025p" + + "roject,zone,instance\212N\016ZoneOperations\202\323\344" + + "\223\002[\"Y/compute/v1/projects/{project}/zone" + + "s/{zone}/instances/{instance}/simulateMa" + + "intenanceEvent\022\323\001\n\005Start\022-.google.cloud." + + "compute.v1.StartInstanceRequest\032\".google" + + ".cloud.compute.v1.Operation\"w\332A\025project," + + "zone,instance\212N\016ZoneOperations\202\323\344\223\002H\"F/c" + + "ompute/v1/projects/{project}/zones/{zone" + + "}/instances/{instance}/start\022\363\002\n\026StartWi" + + "thEncryptionKey\022>.google.cloud.compute.v" + + "1.StartWithEncryptionKeyInstanceRequest\032" + + "\".google.cloud.compute.v1.Operation\"\364\001\332A" + + "Jproject,zone,instance,instances_start_w" + + "ith_encryption_key_request_resource\212N\016Zo" + + "neOperations\202\323\344\223\002\217\001\"W/compute/v1/project" + + "s/{project}/zones/{zone}/instances/{inst" + + "ance}/startWithEncryptionKey:4instances_" + + "start_with_encryption_key_request_resour" + + "ce\022\320\001\n\004Stop\022,.google.cloud.compute.v1.St" + + "opInstanceRequest\032\".google.cloud.compute" + + ".v1.Operation\"v\332A\025project,zone,instance\212" + + "N\016ZoneOperations\202\323\344\223\002G\"E/compute/v1/proj" + + "ects/{project}/zones/{zone}/instances/{i" + + "nstance}/stop\022\331\001\n\007Suspend\022/.google.cloud" + + ".compute.v1.SuspendInstanceRequest\032\".goo" + + "gle.cloud.compute.v1.Operation\"y\332A\025proje" + + "ct,zone,instance\212N\016ZoneOperations\202\323\344\223\002J\"" + + "H/compute/v1/projects/{project}/zones/{z" + + "one}/instances/{instance}/suspend\022\275\002\n\022Te" + + "stIamPermissions\022:.google.cloud.compute." + + "v1.TestIamPermissionsInstanceRequest\0320.g" + + "oogle.cloud.compute.v1.TestPermissionsRe" + + "sponse\"\270\001\332A7project,zone,resource,test_p" + + "ermissions_request_resource\202\323\344\223\002x\"S/comp" + + "ute/v1/projects/{project}/zones/{zone}/i" + + "nstances/{resource}/testIamPermissions:!" + + "test_permissions_request_resource\022\365\001\n\006Up" + + "date\022..google.cloud.compute.v1.UpdateIns" + + "tanceRequest\032\".google.cloud.compute.v1.O" + + "peration\"\226\001\332A\'project,zone,instance,inst" + + "ance_resource\212N\016ZoneOperations\202\323\344\223\002U\032@/c" + + "ompute/v1/projects/{project}/zones/{zone" + + "}/instances/{instance}:\021instance_resourc" + + "e\022\274\002\n\022UpdateAccessConfig\022:.google.cloud." + + "compute.v1.UpdateAccessConfigInstanceReq" + "uest\032\".google.cloud.compute.v1.Operation" - + "\"\324\001\332A7project,zone,instance,shielded_ins" - + "tance_config_resource\212N\016ZoneOperations\202\323" - + "\344\223\002\202\0012]/compute/v1/projects/{project}/zo" - + "nes/{zone}/instances/{instance}/updateSh" - + "ieldedInstanceConfig:!shielded_instance_" - + "config_resource\032r\312A\026compute.googleapis.c" - + "om\322AVhttps://www.googleapis.com/auth/com" - + "pute,https://www.googleapis.com/auth/clo" - + "ud-platform2\203\023\n\020InstantSnapshots\022\326\001\n\016Agg" - + "regatedList\022>.google.cloud.compute.v1.Ag" - + "gregatedListInstantSnapshotsRequest\0326.go" - + "ogle.cloud.compute.v1.InstantSnapshotAgg" - + "regatedList\"L\332A\007project\202\323\344\223\002<\022:/compute/" - + "v1/projects/{project}/aggregated/instant" - + "Snapshots\022\356\001\n\006Delete\0225.google.cloud.comp" - + "ute.v1.DeleteInstantSnapshotRequest\032\".go" - + "ogle.cloud.compute.v1.Operation\"\210\001\332A\035pro" - + "ject,zone,instant_snapshot\212N\016ZoneOperati" - + "ons\202\323\344\223\002Q*O/compute/v1/projects/{project" - + "}/zones/{zone}/instantSnapshots/{instant" - + "_snapshot}\022\334\001\n\003Get\0222.google.cloud.comput" - + "e.v1.GetInstantSnapshotRequest\032(.google." - + "cloud.compute.v1.InstantSnapshot\"w\332A\035pro" - + "ject,zone,instant_snapshot\202\323\344\223\002Q\022O/compu" - + "te/v1/projects/{project}/zones/{zone}/in" - + "stantSnapshots/{instant_snapshot}\022\342\001\n\014Ge" - + "tIamPolicy\022;.google.cloud.compute.v1.Get" - + "IamPolicyInstantSnapshotRequest\032\037.google" - + ".cloud.compute.v1.Policy\"t\332A\025project,zon" - + "e,resource\202\323\344\223\002V\022T/compute/v1/projects/{" - + "project}/zones/{zone}/instantSnapshots/{" - + "resource}/getIamPolicy\022\377\001\n\006Insert\0225.goog" - + "le.cloud.compute.v1.InsertInstantSnapsho" - + "tRequest\032\".google.cloud.compute.v1.Opera" - + "tion\"\231\001\332A&project,zone,instant_snapshot_" - + "resource\212N\016ZoneOperations\202\323\344\223\002Y\"\022.google.cloud.compute.v1.G" - + "etInterconnectAttachmentGroupRequest\0324.g" - + "oogle.cloud.compute.v1.InterconnectAttac" - + "hmentGroup\"\222\001\332A%project,interconnect_att" - + "achment_group\202\323\344\223\002d\022b/compute/v1/project" - + "s/{project}/global/interconnectAttachmen" - + "tGroups/{interconnect_attachment_group}\022" - + "\357\001\n\014GetIamPolicy\022G.google.cloud.compute." - + "v1.GetIamPolicyInterconnectAttachmentGro" - + "upRequest\032\037.google.cloud.compute.v1.Poli" - + "cy\"u\332A\020project,resource\202\323\344\223\002\\\022Z/compute/" - + "v1/projects/{project}/global/interconnec" - + "tAttachmentGroups/{resource}/getIamPolic" - + "y\022\344\002\n\024GetOperationalStatus\022O.google.clou" - + "d.compute.v1.GetOperationalStatusInterco" - + "nnectAttachmentGroupRequest\032Q.google.clo" - + "ud.compute.v1.InterconnectAttachmentGrou" - + "psGetOperationalStatusResponse\"\247\001\332A%proj" - + "ect,interconnect_attachment_group\202\323\344\223\002y\022" - + "w/compute/v1/projects/{project}/global/i" - + "nterconnectAttachmentGroups/{interconnec" - + "t_attachment_group}/getOperationalStatus" - + "\022\250\002\n\006Insert\022A.google.cloud.compute.v1.In" - + "sertInterconnectAttachmentGroupRequest\032\"" - + ".google.cloud.compute.v1.Operation\"\266\001\332A." - + "project,interconnect_attachment_group_re" - + "source\212N\020GlobalOperations\202\323\344\223\002l\"B/comput" - + "e/v1/projects/{project}/global/interconn" - + "ectAttachmentGroups:&interconnect_attach" - + "ment_group_resource\022\341\001\n\004List\022@.google.cl" - + "oud.compute.v1.ListInterconnectAttachmen" - + "tGroupsRequest\032A.google.cloud.compute.v1" - + ".InterconnectAttachmentGroupsListRespons" - + "e\"T\332A\007project\202\323\344\223\002D\022B/compute/v1/project" - + "s/{project}/global/interconnectAttachmen" - + "tGroups\022\345\002\n\005Patch\022@.google.cloud.compute" - + ".v1.PatchInterconnectAttachmentGroupRequ" - + "est\032\".google.cloud.compute.v1.Operation\"" - + "\365\001\332ALproject,interconnect_attachment_gro" - + "up,interconnect_attachment_group_resourc" - + "e\212N\020GlobalOperations\202\323\344\223\002\214\0012b/compute/v1" - + "/projects/{project}/global/interconnectA" - + "ttachmentGroups/{interconnect_attachment" - + "_group}:&interconnect_attachment_group_r" - + "esource\022\270\002\n\014SetIamPolicy\022G.google.cloud." - + "compute.v1.SetIamPolicyInterconnectAttac" - + "hmentGroupRequest\032\037.google.cloud.compute" - + ".v1.Policy\"\275\001\332A3project,resource,global_" - + "set_policy_request_resource\202\323\344\223\002\200\001\"Z/com" - + "pute/v1/projects/{project}/global/interc" - + "onnectAttachmentGroups/{resource}/setIam" - + "Policy:\"global_set_policy_request_resour" - + "ce\022\331\002\n\022TestIamPermissions\022M.google.cloud" - + ".compute.v1.TestIamPermissionsInterconne" - + "ctAttachmentGroupRequest\0320.google.cloud." - + "compute.v1.TestPermissionsResponse\"\301\001\332A2" - + "project,resource,test_permissions_reques" - + "t_resource\202\323\344\223\002\205\001\"`/compute/v1/projects/" - + "{project}/global/interconnectAttachmentG" - + "roups/{resource}/testIamPermissions:!tes" - + "t_permissions_request_resource\032r\312A\026compu" - + "te.googleapis.com\322AVhttps://www.googleap" - + "is.com/auth/compute,https://www.googleap" - + "is.com/auth/cloud-platform2\302\020\n\027Interconn" - + "ectAttachments\022\353\001\n\016AggregatedList\022E.goog" - + "le.cloud.compute.v1.AggregatedListInterc" - + "onnectAttachmentsRequest\032=.google.cloud." - + "compute.v1.InterconnectAttachmentAggrega" - + "tedList\"S\332A\007project\202\323\344\223\002C\022A/compute/v1/p" - + "rojects/{project}/aggregated/interconnec" - + "tAttachments\022\222\002\n\006Delete\022<.google.cloud.c" - + "ompute.v1.DeleteInterconnectAttachmentRe" + + "\"\305\001\332A>project,zone,instance,network_inte" + + "rface,access_config_resource\212N\016ZoneOpera" + + "tions\202\323\344\223\002m\"S/compute/v1/projects/{proje" + + "ct}/zones/{zone}/instances/{instance}/up" + + "dateAccessConfig:\026access_config_resource" + + "\022\257\002\n\023UpdateDisplayDevice\022;.google.cloud." + + "compute.v1.UpdateDisplayDeviceInstanceRe" + "quest\032\".google.cloud.compute.v1.Operatio" - + "n\"\245\001\332A&project,region,interconnect_attac" - + "hment\212N\020RegionOperations\202\323\344\223\002c*a/compute" - + "/v1/projects/{project}/regions/{region}/" - + "interconnectAttachments/{interconnect_at" - + "tachment}\022\206\002\n\003Get\0229.google.cloud.compute" - + ".v1.GetInterconnectAttachmentRequest\032/.g" - + "oogle.cloud.compute.v1.InterconnectAttac" - + "hment\"\222\001\332A&project,region,interconnect_a" - + "ttachment\202\323\344\223\002c\022a/compute/v1/projects/{p" - + "roject}/regions/{region}/interconnectAtt" - + "achments/{interconnect_attachment}\022\243\002\n\006I" - + "nsert\022<.google.cloud.compute.v1.InsertIn" - + "terconnectAttachmentRequest\032\".google.clo" - + "ud.compute.v1.Operation\"\266\001\332A/project,reg" - + "ion,interconnect_attachment_resource\212N\020R" - + "egionOperations\202\323\344\223\002k\"G/compute/v1/proje" - + "cts/{project}/regions/{region}/interconn" - + "ectAttachments: interconnect_attachment_" - + "resource\022\332\001\n\004List\022;.google.cloud.compute" - + ".v1.ListInterconnectAttachmentsRequest\0323" + + "n\"\266\001\332A-project,zone,instance,display_dev" + + "ice_resource\212N\016ZoneOperations\202\323\344\223\002o2T/co" + + "mpute/v1/projects/{project}/zones/{zone}" + + "/instances/{instance}/updateDisplayDevic" + + "e:\027display_device_resource\022\320\002\n\026UpdateNet" + + "workInterface\022>.google.cloud.compute.v1." + + "UpdateNetworkInterfaceInstanceRequest\032\"." + + "google.cloud.compute.v1.Operation\"\321\001\332ABp" + + "roject,zone,instance,network_interface,n" + + "etwork_interface_resource\212N\016ZoneOperatio" + + "ns\202\323\344\223\002u2W/compute/v1/projects/{project}" + + "/zones/{zone}/instances/{instance}/updat" + + "eNetworkInterface:\032network_interface_res" + + "ource\022\337\002\n\034UpdateShieldedInstanceConfig\022D" + + ".google.cloud.compute.v1.UpdateShieldedI" + + "nstanceConfigInstanceRequest\032\".google.cl" + + "oud.compute.v1.Operation\"\324\001\332A7project,zo" + + "ne,instance,shielded_instance_config_res" + + "ource\212N\016ZoneOperations\202\323\344\223\002\202\0012]/compute/" + + "v1/projects/{project}/zones/{zone}/insta" + + "nces/{instance}/updateShieldedInstanceCo" + + "nfig:!shielded_instance_config_resource\032" + + "r\312A\026compute.googleapis.com\322AVhttps://www" + + ".googleapis.com/auth/compute,https://www" + + ".googleapis.com/auth/cloud-platform2\203\023\n\020" + + "InstantSnapshots\022\326\001\n\016AggregatedList\022>.go" + + "ogle.cloud.compute.v1.AggregatedListInst" + + "antSnapshotsRequest\0326.google.cloud.compu" + + "te.v1.InstantSnapshotAggregatedList\"L\332A\007" + + "project\202\323\344\223\002<\022:/compute/v1/projects/{pro" + + "ject}/aggregated/instantSnapshots\022\356\001\n\006De" + + "lete\0225.google.cloud.compute.v1.DeleteIns" + + "tantSnapshotRequest\032\".google.cloud.compu" + + "te.v1.Operation\"\210\001\332A\035project,zone,instan" + + "t_snapshot\212N\016ZoneOperations\202\323\344\223\002Q*O/comp" + + "ute/v1/projects/{project}/zones/{zone}/i" + + "nstantSnapshots/{instant_snapshot}\022\334\001\n\003G" + + "et\0222.google.cloud.compute.v1.GetInstantS" + + "napshotRequest\032(.google.cloud.compute.v1" + + ".InstantSnapshot\"w\332A\035project,zone,instan" + + "t_snapshot\202\323\344\223\002Q\022O/compute/v1/projects/{" + + "project}/zones/{zone}/instantSnapshots/{" + + "instant_snapshot}\022\342\001\n\014GetIamPolicy\022;.goo" + + "gle.cloud.compute.v1.GetIamPolicyInstant" + + "SnapshotRequest\032\037.google.cloud.compute.v" + + "1.Policy\"t\332A\025project,zone,resource\202\323\344\223\002V" + + "\022T/compute/v1/projects/{project}/zones/{" + + "zone}/instantSnapshots/{resource}/getIam" + + "Policy\022\377\001\n\006Insert\0225.google.cloud.compute" + + ".v1.InsertInstantSnapshotRequest\032\".googl" + + "e.cloud.compute.v1.Operation\"\231\001\332A&projec" + + "t,zone,instant_snapshot_resource\212N\016ZoneO" + + "perations\202\323\344\223\002Y\"\022.g" + + "oogle.cloud.compute.v1.GetInterconnectAt" + + "tachmentGroupRequest\0324.google.cloud.comp" + + "ute.v1.InterconnectAttachmentGroup\"\222\001\332A%" + + "project,interconnect_attachment_group\202\323\344" + + "\223\002d\022b/compute/v1/projects/{project}/glob" + + "al/interconnectAttachmentGroups/{interco" + + "nnect_attachment_group}\022\357\001\n\014GetIamPolicy" + + "\022G.google.cloud.compute.v1.GetIamPolicyI" + + "nterconnectAttachmentGroupRequest\032\037.goog" + + "le.cloud.compute.v1.Policy\"u\332A\020project,r" + + "esource\202\323\344\223\002\\\022Z/compute/v1/projects/{pro" + + "ject}/global/interconnectAttachmentGroup" + + "s/{resource}/getIamPolicy\022\344\002\n\024GetOperati" + + "onalStatus\022O.google.cloud.compute.v1.Get" + + "OperationalStatusInterconnectAttachmentG" + + "roupRequest\032Q.google.cloud.compute.v1.In" + + "terconnectAttachmentGroupsGetOperational" + + "StatusResponse\"\247\001\332A%project,interconnect" + + "_attachment_group\202\323\344\223\002y\022w/compute/v1/pro" + + "jects/{project}/global/interconnectAttac" + + "hmentGroups/{interconnect_attachment_gro" + + "up}/getOperationalStatus\022\250\002\n\006Insert\022A.go" + + "ogle.cloud.compute.v1.InsertInterconnect" + + "AttachmentGroupRequest\032\".google.cloud.co" + + "mpute.v1.Operation\"\266\001\332A.project,intercon" + + "nect_attachment_group_resource\212N\020GlobalO" + + "perations\202\323\344\223\002l\"B/compute/v1/projects/{p" + + "roject}/global/interconnectAttachmentGro" + + "ups:&interconnect_attachment_group_resou" + + "rce\022\341\001\n\004List\022@.google.cloud.compute.v1.L" + + "istInterconnectAttachmentGroupsRequest\032A" + ".google.cloud.compute.v1.InterconnectAtt" - + "achmentList\"`\332A\016project,region\202\323\344\223\002I\022G/c" - + "ompute/v1/projects/{project}/regions/{re" - + "gion}/interconnectAttachments\022\324\002\n\005Patch\022" - + ";.google.cloud.compute.v1.PatchInterconn" - + "ectAttachmentRequest\032\".google.cloud.comp" - + "ute.v1.Operation\"\351\001\332AGproject,region,int" - + "erconnect_attachment,interconnect_attach" - + "ment_resource\212N\020RegionOperations\202\323\344\223\002\205\0012" + + "achmentGroupsListResponse\"T\332A\007project\202\323\344" + + "\223\002D\022B/compute/v1/projects/{project}/glob" + + "al/interconnectAttachmentGroups\022\345\002\n\005Patc" + + "h\022@.google.cloud.compute.v1.PatchInterco" + + "nnectAttachmentGroupRequest\032\".google.clo" + + "ud.compute.v1.Operation\"\365\001\332ALproject,int" + + "erconnect_attachment_group,interconnect_" + + "attachment_group_resource\212N\020GlobalOperat" + + "ions\202\323\344\223\002\214\0012b/compute/v1/projects/{proje" + + "ct}/global/interconnectAttachmentGroups/" + + "{interconnect_attachment_group}:&interco" + + "nnect_attachment_group_resource\022\270\002\n\014SetI" + + "amPolicy\022G.google.cloud.compute.v1.SetIa" + + "mPolicyInterconnectAttachmentGroupReques" + + "t\032\037.google.cloud.compute.v1.Policy\"\275\001\332A3" + + "project,resource,global_set_policy_reque" + + "st_resource\202\323\344\223\002\200\001\"Z/compute/v1/projects" + + "/{project}/global/interconnectAttachment" + + "Groups/{resource}/setIamPolicy:\"global_s" + + "et_policy_request_resource\022\331\002\n\022TestIamPe" + + "rmissions\022M.google.cloud.compute.v1.Test" + + "IamPermissionsInterconnectAttachmentGrou" + + "pRequest\0320.google.cloud.compute.v1.TestP" + + "ermissionsResponse\"\301\001\332A2project,resource" + + ",test_permissions_request_resource\202\323\344\223\002\205" + + "\001\"`/compute/v1/projects/{project}/global" + + "/interconnectAttachmentGroups/{resource}" + + "/testIamPermissions:!test_permissions_re" + + "quest_resource\032r\312A\026compute.googleapis.co" + + "m\322AVhttps://www.googleapis.com/auth/comp" + + "ute,https://www.googleapis.com/auth/clou" + + "d-platform2\302\020\n\027InterconnectAttachments\022\353" + + "\001\n\016AggregatedList\022E.google.cloud.compute" + + ".v1.AggregatedListInterconnectAttachment" + + "sRequest\032=.google.cloud.compute.v1.Inter" + + "connectAttachmentAggregatedList\"S\332A\007proj" + + "ect\202\323\344\223\002C\022A/compute/v1/projects/{project" + + "}/aggregated/interconnectAttachments\022\222\002\n" + + "\006Delete\022<.google.cloud.compute.v1.Delete" + + "InterconnectAttachmentRequest\032\".google.c" + + "loud.compute.v1.Operation\"\245\001\332A&project,r" + + "egion,interconnect_attachment\212N\020RegionOp" + + "erations\202\323\344\223\002c*a/compute/v1/projects/{pr" + + "oject}/regions/{region}/interconnectAtta" + + "chments/{interconnect_attachment}\022\206\002\n\003Ge" + + "t\0229.google.cloud.compute.v1.GetInterconn" + + "ectAttachmentRequest\032/.google.cloud.comp" + + "ute.v1.InterconnectAttachment\"\222\001\332A&proje" + + "ct,region,interconnect_attachment\202\323\344\223\002c\022" + "a/compute/v1/projects/{project}/regions/" + "{region}/interconnectAttachments/{interc" - + "onnect_attachment}: interconnect_attachm" - + "ent_resource\022\314\002\n\tSetLabels\022?.google.clou" - + "d.compute.v1.SetLabelsInterconnectAttach" + + "onnect_attachment}\022\243\002\n\006Insert\022<.google.c" + + "loud.compute.v1.InsertInterconnectAttach" + "mentRequest\032\".google.cloud.compute.v1.Op" - + "eration\"\331\001\332A:project,region,resource,reg" - + "ion_set_labels_request_resource\212N\020Region" - + "Operations\202\323\344\223\002\202\001\"\\/compute/v1/projects/" - + "{project}/regions/{region}/interconnectA" - + "ttachments/{resource}/setLabels:\"region_" - + "set_labels_request_resource\032r\312A\026compute." - + "googleapis.com\322AVhttps://www.googleapis." - + "com/auth/compute,https://www.googleapis." - + "com/auth/cloud-platform2\270\026\n\022Interconnect" - + "Groups\022\363\002\n\rCreateMembers\022>.google.cloud." - + "compute.v1.CreateMembersInterconnectGrou" - + "pRequest\032\".google.cloud.compute.v1.Opera" - + "tion\"\375\001\332ANproject,interconnect_group,int" - + "erconnect_groups_create_members_request_" - + "resource\212N\020GlobalOperations\202\323\344\223\002\222\001\"[/com" + + "eration\"\266\001\332A/project,region,interconnect" + + "_attachment_resource\212N\020RegionOperations\202" + + "\323\344\223\002k\"G/compute/v1/projects/{project}/re" + + "gions/{region}/interconnectAttachments: " + + "interconnect_attachment_resource\022\332\001\n\004Lis" + + "t\022;.google.cloud.compute.v1.ListIntercon" + + "nectAttachmentsRequest\0323.google.cloud.co" + + "mpute.v1.InterconnectAttachmentList\"`\332A\016" + + "project,region\202\323\344\223\002I\022G/compute/v1/projec" + + "ts/{project}/regions/{region}/interconne" + + "ctAttachments\022\324\002\n\005Patch\022;.google.cloud.c" + + "ompute.v1.PatchInterconnectAttachmentReq" + + "uest\032\".google.cloud.compute.v1.Operation" + + "\"\351\001\332AGproject,region,interconnect_attach" + + "ment,interconnect_attachment_resource\212N\020" + + "RegionOperations\202\323\344\223\002\205\0012a/compute/v1/pro" + + "jects/{project}/regions/{region}/interco" + + "nnectAttachments/{interconnect_attachmen" + + "t}: interconnect_attachment_resource\022\314\002\n" + + "\tSetLabels\022?.google.cloud.compute.v1.Set" + + "LabelsInterconnectAttachmentRequest\032\".go" + + "ogle.cloud.compute.v1.Operation\"\331\001\332A:pro" + + "ject,region,resource,region_set_labels_r" + + "equest_resource\212N\020RegionOperations\202\323\344\223\002\202" + + "\001\"\\/compute/v1/projects/{project}/region" + + "s/{region}/interconnectAttachments/{reso" + + "urce}/setLabels:\"region_set_labels_reque" + + "st_resource\032r\312A\026compute.googleapis.com\322A" + + "Vhttps://www.googleapis.com/auth/compute" + + ",https://www.googleapis.com/auth/cloud-p" + + "latform2\270\026\n\022InterconnectGroups\022\363\002\n\rCreat" + + "eMembers\022>.google.cloud.compute.v1.Creat" + + "eMembersInterconnectGroupRequest\032\".googl" + + "e.cloud.compute.v1.Operation\"\375\001\332ANprojec" + + "t,interconnect_group,interconnect_groups", + "_create_members_request_resource\212N\020Globa" + + "lOperations\202\323\344\223\002\222\001\"[/compute/v1/projects" + + "/{project}/global/interconnectGroups/{in" + + "terconnect_group}/createMembers:3interco" + + "nnect_groups_create_members_request_reso" + + "urce\022\355\001\n\006Delete\0227.google.cloud.compute.v" + + "1.DeleteInterconnectGroupRequest\032\".googl" + + "e.cloud.compute.v1.Operation\"\205\001\332A\032projec" + + "t,interconnect_group\212N\020GlobalOperations\202" + + "\323\344\223\002O*M/compute/v1/projects/{project}/gl" + + "obal/interconnectGroups/{interconnect_gr" + + "oup}\022\333\001\n\003Get\0224.google.cloud.compute.v1.G" + + "etInterconnectGroupRequest\032*.google.clou" + + "d.compute.v1.InterconnectGroup\"r\332A\032proje" + + "ct,interconnect_group\202\323\344\223\002O\022M/compute/v1" + + "/projects/{project}/global/interconnectG" + + "roups/{interconnect_group}\022\333\001\n\014GetIamPol" + + "icy\022=.google.cloud.compute.v1.GetIamPoli" + + "cyInterconnectGroupRequest\032\037.google.clou" + + "d.compute.v1.Policy\"k\332A\020project,resource" + + "\202\323\344\223\002R\022P/compute/v1/projects/{project}/g" + + "lobal/interconnectGroups/{resource}/getI" + + "amPolicy\022\260\002\n\024GetOperationalStatus\022E.goog" + + "le.cloud.compute.v1.GetOperationalStatus" + + "InterconnectGroupRequest\032G.google.cloud." + + "compute.v1.InterconnectGroupsGetOperatio" + + "nalStatusResponse\"\207\001\332A\032project,interconn" + + "ect_group\202\323\344\223\002d\022b/compute/v1/projects/{p" + + "roject}/global/interconnectGroups/{inter" + + "connect_group}/getOperationalStatus\022\376\001\n\006" + + "Insert\0227.google.cloud.compute.v1.InsertI" + + "nterconnectGroupRequest\032\".google.cloud.c" + + "ompute.v1.Operation\"\226\001\332A#project,interco" + + "nnect_group_resource\212N\020GlobalOperations\202" + + "\323\344\223\002W\"8/compute/v1/projects/{project}/gl" + + "obal/interconnectGroups:\033interconnect_gr" + + "oup_resource\022\303\001\n\004List\0226.google.cloud.com" + + "pute.v1.ListInterconnectGroupsRequest\0327." + + "google.cloud.compute.v1.InterconnectGrou" + + "psListResponse\"J\332A\007project\202\323\344\223\002:\0228/compu" + + "te/v1/projects/{project}/global/intercon" + + "nectGroups\022\244\002\n\005Patch\0226.google.cloud.comp" + + "ute.v1.PatchInterconnectGroupRequest\032\".g" + + "oogle.cloud.compute.v1.Operation\"\276\001\332A6pr" + + "oject,interconnect_group,interconnect_gr" + + "oup_resource\212N\020GlobalOperations\202\323\344\223\002l2M/" + + "compute/v1/projects/{project}/global/int" + + "erconnectGroups/{interconnect_group}:\033in" + + "terconnect_group_resource\022\243\002\n\014SetIamPoli" + + "cy\022=.google.cloud.compute.v1.SetIamPolic" + + "yInterconnectGroupRequest\032\037.google.cloud" + + ".compute.v1.Policy\"\262\001\332A3project,resource" + + ",global_set_policy_request_resource\202\323\344\223\002" + + "v\"P/compute/v1/projects/{project}/global" + + "/interconnectGroups/{resource}/setIamPol" + + "icy:\"global_set_policy_request_resource\022" + + "\304\002\n\022TestIamPermissions\022C.google.cloud.co" + + "mpute.v1.TestIamPermissionsInterconnectG" + + "roupRequest\0320.google.cloud.compute.v1.Te" + + "stPermissionsResponse\"\266\001\332A2project,resou" + + "rce,test_permissions_request_resource\202\323\344" + + "\223\002{\"V/compute/v1/projects/{project}/glob" + + "al/interconnectGroups/{resource}/testIam" + + "Permissions:!test_permissions_request_re" + + "source\032r\312A\026compute.googleapis.com\322AVhttp" + + "s://www.googleapis.com/auth/compute,http" + + "s://www.googleapis.com/auth/cloud-platfo" + + "rm2\361\004\n\025InterconnectLocations\022\352\001\n\003Get\0227.g" + + "oogle.cloud.compute.v1.GetInterconnectLo" + + "cationRequest\032-.google.cloud.compute.v1." + + "InterconnectLocation\"{\332A\035project,interco" + + "nnect_location\202\323\344\223\002U\022S/compute/v1/projec" + + "ts/{project}/global/interconnectLocation" + + "s/{interconnect_location}\022\303\001\n\004List\0229.goo" + + "gle.cloud.compute.v1.ListInterconnectLoc" + + "ationsRequest\0321.google.cloud.compute.v1." + + "InterconnectLocationList\"M\332A\007project\202\323\344\223" + + "\002=\022;/compute/v1/projects/{project}/globa" + + "l/interconnectLocations\032\244\001\312A\026compute.goo" + + "gleapis.com\322A\207\001https://www.googleapis.co" + + "m/auth/compute.readonly,https://www.goog" + + "leapis.com/auth/compute,https://www.goog" + + "leapis.com/auth/cloud-platform2\252\005\n\033Inter" + + "connectRemoteLocations\022\213\002\n\003Get\022=.google." + + "cloud.compute.v1.GetInterconnectRemoteLo" + + "cationRequest\0323.google.cloud.compute.v1." + + "InterconnectRemoteLocation\"\217\001\332A$project," + + "interconnect_remote_location\202\323\344\223\002b\022`/com" + "pute/v1/projects/{project}/global/interc" - + "onnectGroups/{interconnect_group}/create" - + "Members:3interconnect_groups_create_memb" - + "ers_request_resource\022\355\001\n\006Delete\0227.google" - + ".cloud.compute.v1.DeleteInterconnectGrou" - + "pRequest\032\".google.cloud.compute.v1.Opera" - + "tion\"\205\001\332A\032project,interconnect_group\212N\020G" - + "lobalOperations\202\323\344\223\002O*M/compute/v1/proje" - + "cts/{project}/global/interconnectGroups/" - + "{interconnect_group}\022\333\001\n\003Get\0224.google.cl" - + "oud.compute.v1.GetInterconnectGroupReque" - + "st\032*.google.cloud.compute.v1.Interconnec" - + "tGroup\"r\332A\032project,interconnect_group\202\323\344" - + "\223\002O\022M/compute/v1/projects/{project}/glob" - + "al/interconnectGroups/{interconnect_grou" - + "p}\022\333\001\n\014GetIamPolicy\022=.google.cloud.compu" - + "te.v1.GetIamPolicyInterconnectGroupReque" - + "st\032\037.google.cloud.compute.v1.Policy\"k\332A\020" - + "project,resource\202\323\344\223\002R\022P/compute/v1/proj" - + "ects/{project}/global/interconnectGroups" - + "/{resource}/getIamPolicy\022\260\002\n\024GetOperatio" - + "nalStatus\022E.google.cloud.compute.v1.GetO" - + "perationalStatusInterconnectGroupRequest", - "\032G.google.cloud.compute.v1.InterconnectG" - + "roupsGetOperationalStatusResponse\"\207\001\332A\032p" - + "roject,interconnect_group\202\323\344\223\002d\022b/comput" - + "e/v1/projects/{project}/global/interconn" - + "ectGroups/{interconnect_group}/getOperat" - + "ionalStatus\022\376\001\n\006Insert\0227.google.cloud.co" - + "mpute.v1.InsertInterconnectGroupRequest\032" - + "\".google.cloud.compute.v1.Operation\"\226\001\332A" - + "#project,interconnect_group_resource\212N\020G" - + "lobalOperations\202\323\344\223\002W\"8/compute/v1/proje" - + "cts/{project}/global/interconnectGroups:" - + "\033interconnect_group_resource\022\303\001\n\004List\0226." - + "google.cloud.compute.v1.ListInterconnect" - + "GroupsRequest\0327.google.cloud.compute.v1." - + "InterconnectGroupsListResponse\"J\332A\007proje" - + "ct\202\323\344\223\002:\0228/compute/v1/projects/{project}" - + "/global/interconnectGroups\022\244\002\n\005Patch\0226.g" - + "oogle.cloud.compute.v1.PatchInterconnect" - + "GroupRequest\032\".google.cloud.compute.v1.O" - + "peration\"\276\001\332A6project,interconnect_group" - + ",interconnect_group_resource\212N\020GlobalOpe" - + "rations\202\323\344\223\002l2M/compute/v1/projects/{pro" - + "ject}/global/interconnectGroups/{interco" - + "nnect_group}:\033interconnect_group_resourc" - + "e\022\243\002\n\014SetIamPolicy\022=.google.cloud.comput" - + "e.v1.SetIamPolicyInterconnectGroupReques" - + "t\032\037.google.cloud.compute.v1.Policy\"\262\001\332A3" - + "project,resource,global_set_policy_reque" - + "st_resource\202\323\344\223\002v\"P/compute/v1/projects/" - + "{project}/global/interconnectGroups/{res" - + "ource}/setIamPolicy:\"global_set_policy_r" - + "equest_resource\022\304\002\n\022TestIamPermissions\022C" - + ".google.cloud.compute.v1.TestIamPermissi" - + "onsInterconnectGroupRequest\0320.google.clo" - + "ud.compute.v1.TestPermissionsResponse\"\266\001" - + "\332A2project,resource,test_permissions_req" - + "uest_resource\202\323\344\223\002{\"V/compute/v1/project" - + "s/{project}/global/interconnectGroups/{r" - + "esource}/testIamPermissions:!test_permis" - + "sions_request_resource\032r\312A\026compute.googl" - + "eapis.com\322AVhttps://www.googleapis.com/a" - + "uth/compute,https://www.googleapis.com/a" - + "uth/cloud-platform2\361\004\n\025InterconnectLocat" - + "ions\022\352\001\n\003Get\0227.google.cloud.compute.v1.G" - + "etInterconnectLocationRequest\032-.google.c" - + "loud.compute.v1.InterconnectLocation\"{\332A" - + "\035project,interconnect_location\202\323\344\223\002U\022S/c" + + "onnectRemoteLocations/{interconnect_remo" + + "te_location}\022\325\001\n\004List\022?.google.cloud.com" + + "pute.v1.ListInterconnectRemoteLocationsR" + + "equest\0327.google.cloud.compute.v1.Interco" + + "nnectRemoteLocationList\"S\332A\007project\202\323\344\223\002" + + "C\022A/compute/v1/projects/{project}/global" + + "/interconnectRemoteLocations\032\244\001\312A\026comput" + + "e.googleapis.com\322A\207\001https://www.googleap" + + "is.com/auth/compute.readonly,https://www" + + ".googleapis.com/auth/compute,https://www" + + ".googleapis.com/auth/cloud-platform2\350\017\n\r" + + "Interconnects\022\326\001\n\006Delete\0222.google.cloud." + + "compute.v1.DeleteInterconnectRequest\032\".g" + + "oogle.cloud.compute.v1.Operation\"t\332A\024pro" + + "ject,interconnect\212N\020GlobalOperations\202\323\344\223" + + "\002D*B/compute/v1/projects/{project}/globa" + + "l/interconnects/{interconnect}\022\300\001\n\003Get\022/" + + ".google.cloud.compute.v1.GetInterconnect" + + "Request\032%.google.cloud.compute.v1.Interc" + + "onnect\"a\332A\024project,interconnect\202\323\344\223\002D\022B/" + + "compute/v1/projects/{project}/global/int" + + "erconnects/{interconnect}\022\374\001\n\016GetDiagnos" + + "tics\022:.google.cloud.compute.v1.GetDiagno" + + "sticsInterconnectRequest\032<.google.cloud." + + "compute.v1.InterconnectsGetDiagnosticsRe" + + "sponse\"p\332A\024project,interconnect\202\323\344\223\002S\022Q/" + + "compute/v1/projects/{project}/global/int" + + "erconnects/{interconnect}/getDiagnostics" + + "\022\200\002\n\017GetMacsecConfig\022;.google.cloud.comp" + + "ute.v1.GetMacsecConfigInterconnectReques" + + "t\032=.google.cloud.compute.v1.Interconnect" + + "sGetMacsecConfigResponse\"q\332A\024project,int" + + "erconnect\202\323\344\223\002T\022R/compute/v1/projects/{p" + + "roject}/global/interconnects/{interconne" + + "ct}/getMacsecConfig\022\350\001\n\006Insert\0222.google." + + "cloud.compute.v1.InsertInterconnectReque" + + "st\032\".google.cloud.compute.v1.Operation\"\205" + + "\001\332A\035project,interconnect_resource\212N\020Glob" + + "alOperations\202\323\344\223\002L\"3/compute/v1/projects" + + "/{project}/global/interconnects:\025interco" + + "nnect_resource\022\253\001\n\004List\0221.google.cloud.c" + + "ompute.v1.ListInterconnectsRequest\032).goo" + + "gle.cloud.compute.v1.InterconnectList\"E\332" + + "A\007project\202\323\344\223\0025\0223/compute/v1/projects/{p" + + "roject}/global/interconnects\022\202\002\n\005Patch\0221" + + ".google.cloud.compute.v1.PatchInterconne" + + "ctRequest\032\".google.cloud.compute.v1.Oper" + + "ation\"\241\001\332A*project,interconnect,intercon" + + "nect_resource\212N\020GlobalOperations\202\323\344\223\002[2B" + + "/compute/v1/projects/{project}/global/in" + + "terconnects/{interconnect}:\025interconnect" + + "_resource\022\246\002\n\tSetLabels\0225.google.cloud.c" + + "ompute.v1.SetLabelsInterconnectRequest\032\"" + + ".google.cloud.compute.v1.Operation\"\275\001\332A3" + + "project,resource,global_set_labels_reque" + + "st_resource\212N\020GlobalOperations\202\323\344\223\002n\"H/c" + "ompute/v1/projects/{project}/global/inte" - + "rconnectLocations/{interconnect_location" - + "}\022\303\001\n\004List\0229.google.cloud.compute.v1.Lis" - + "tInterconnectLocationsRequest\0321.google.c" - + "loud.compute.v1.InterconnectLocationList" - + "\"M\332A\007project\202\323\344\223\002=\022;/compute/v1/projects" - + "/{project}/global/interconnectLocations\032" - + "\244\001\312A\026compute.googleapis.com\322A\207\001https://w" - + "ww.googleapis.com/auth/compute.readonly," - + "https://www.googleapis.com/auth/compute," - + "https://www.googleapis.com/auth/cloud-pl" - + "atform2\252\005\n\033InterconnectRemoteLocations\022\213" - + "\002\n\003Get\022=.google.cloud.compute.v1.GetInte" - + "rconnectRemoteLocationRequest\0323.google.c" - + "loud.compute.v1.InterconnectRemoteLocati" - + "on\"\217\001\332A$project,interconnect_remote_loca" - + "tion\202\323\344\223\002b\022`/compute/v1/projects/{projec" - + "t}/global/interconnectRemoteLocations/{i" - + "nterconnect_remote_location}\022\325\001\n\004List\022?." - + "google.cloud.compute.v1.ListInterconnect" - + "RemoteLocationsRequest\0327.google.cloud.co" - + "mpute.v1.InterconnectRemoteLocationList\"" - + "S\332A\007project\202\323\344\223\002C\022A/compute/v1/projects/" - + "{project}/global/interconnectRemoteLocat" - + "ions\032\244\001\312A\026compute.googleapis.com\322A\207\001http" - + "s://www.googleapis.com/auth/compute.read" - + "only,https://www.googleapis.com/auth/com" - + "pute,https://www.googleapis.com/auth/clo" - + "ud-platform2\350\017\n\rInterconnects\022\326\001\n\006Delete" - + "\0222.google.cloud.compute.v1.DeleteInterco" - + "nnectRequest\032\".google.cloud.compute.v1.O" - + "peration\"t\332A\024project,interconnect\212N\020Glob" - + "alOperations\202\323\344\223\002D*B/compute/v1/projects" - + "/{project}/global/interconnects/{interco" - + "nnect}\022\300\001\n\003Get\022/.google.cloud.compute.v1" - + ".GetInterconnectRequest\032%.google.cloud.c" - + "ompute.v1.Interconnect\"a\332A\024project,inter" - + "connect\202\323\344\223\002D\022B/compute/v1/projects/{pro" - + "ject}/global/interconnects/{interconnect" - + "}\022\374\001\n\016GetDiagnostics\022:.google.cloud.comp" - + "ute.v1.GetDiagnosticsInterconnectRequest" - + "\032<.google.cloud.compute.v1.Interconnects" - + "GetDiagnosticsResponse\"p\332A\024project,inter" - + "connect\202\323\344\223\002S\022Q/compute/v1/projects/{pro" - + "ject}/global/interconnects/{interconnect" - + "}/getDiagnostics\022\200\002\n\017GetMacsecConfig\022;.g" - + "oogle.cloud.compute.v1.GetMacsecConfigIn" - + "terconnectRequest\032=.google.cloud.compute" - + ".v1.InterconnectsGetMacsecConfigResponse" - + "\"q\332A\024project,interconnect\202\323\344\223\002T\022R/comput" - + "e/v1/projects/{project}/global/interconn" - + "ects/{interconnect}/getMacsecConfig\022\350\001\n\006" - + "Insert\0222.google.cloud.compute.v1.InsertI" - + "nterconnectRequest\032\".google.cloud.comput" - + "e.v1.Operation\"\205\001\332A\035project,interconnect" - + "_resource\212N\020GlobalOperations\202\323\344\223\002L\"3/com" - + "pute/v1/projects/{project}/global/interc" - + "onnects:\025interconnect_resource\022\253\001\n\004List\022" - + "1.google.cloud.compute.v1.ListInterconne" - + "ctsRequest\032).google.cloud.compute.v1.Int" - + "erconnectList\"E\332A\007project\202\323\344\223\0025\0223/comput" - + "e/v1/projects/{project}/global/interconn" - + "ects\022\202\002\n\005Patch\0221.google.cloud.compute.v1" - + ".PatchInterconnectRequest\032\".google.cloud" - + ".compute.v1.Operation\"\241\001\332A*project,inter" - + "connect,interconnect_resource\212N\020GlobalOp" - + "erations\202\323\344\223\002[2B/compute/v1/projects/{pr" - + "oject}/global/interconnects/{interconnec" - + "t}:\025interconnect_resource\022\246\002\n\tSetLabels\022" - + "5.google.cloud.compute.v1.SetLabelsInter" - + "connectRequest\032\".google.cloud.compute.v1" - + ".Operation\"\275\001\332A3project,resource,global_" - + "set_labels_request_resource\212N\020GlobalOper" - + "ations\202\323\344\223\002n\"H/compute/v1/projects/{proj" - + "ect}/global/interconnects/{resource}/set" - + "Labels:\"global_set_labels_request_resour" + + "rconnects/{resource}/setLabels:\"global_s" + + "et_labels_request_resource\032r\312A\026compute.g" + + "oogleapis.com\322AVhttps://www.googleapis.c" + + "om/auth/compute,https://www.googleapis.c" + + "om/auth/cloud-platform2\260\005\n\014LicenseCodes\022" + + "\275\001\n\003Get\022..google.cloud.compute.v1.GetLic" + + "enseCodeRequest\032$.google.cloud.compute.v" + + "1.LicenseCode\"`\332A\024project,license_code\202\323" + + "\344\223\002C\022A/compute/v1/projects/{project}/glo" + + "bal/licenseCodes/{license_code}\022\270\002\n\022Test" + + "IamPermissions\022=.google.cloud.compute.v1" + + ".TestIamPermissionsLicenseCodeRequest\0320." + + "google.cloud.compute.v1.TestPermissionsR" + + "esponse\"\260\001\332A2project,resource,test_permi" + + "ssions_request_resource\202\323\344\223\002u\"P/compute/" + + "v1/projects/{project}/global/licenseCode" + + "s/{resource}/testIamPermissions:!test_pe" + + "rmissions_request_resource\032\244\001\312A\026compute." + + "googleapis.com\322A\207\001https://www.googleapis" + + ".com/auth/compute.readonly,https://www.g" + + "oogleapis.com/auth/compute,https://www.g" + + "oogleapis.com/auth/cloud-platform2\343\016\n\010Li" + + "censes\022\302\001\n\006Delete\022-.google.cloud.compute" + + ".v1.DeleteLicenseRequest\032\".google.cloud." + + "compute.v1.Operation\"e\332A\017project,license" + + "\212N\020GlobalOperations\202\323\344\223\002:*8/compute/v1/p" + + "rojects/{project}/global/licenses/{licen" + + "se}\022\247\001\n\003Get\022*.google.cloud.compute.v1.Ge" + + "tLicenseRequest\032 .google.cloud.compute.v" + + "1.License\"R\332A\017project,license\202\323\344\223\002:\0228/co" + + "mpute/v1/projects/{project}/global/licen" + + "ses/{license}\022\307\001\n\014GetIamPolicy\0223.google." + + "cloud.compute.v1.GetIamPolicyLicenseRequ" + + "est\032\037.google.cloud.compute.v1.Policy\"a\332A" + + "\020project,resource\202\323\344\223\002H\022F/compute/v1/pro" + + "jects/{project}/global/licenses/{resourc" + + "e}/getIamPolicy\022\323\001\n\006Insert\022-.google.clou" + + "d.compute.v1.InsertLicenseRequest\032\".goog" + + "le.cloud.compute.v1.Operation\"v\332A\030projec" + + "t,license_resource\212N\020GlobalOperations\202\323\344" + + "\223\002B\"./compute/v1/projects/{project}/glob" + + "al/licenses:\020license_resource\022\245\001\n\004List\022," + + ".google.cloud.compute.v1.ListLicensesReq" + + "uest\032-.google.cloud.compute.v1.LicensesL" + + "istResponse\"@\332A\007project\202\323\344\223\0020\022./compute/" + + "v1/projects/{project}/global/licenses\022\217\002" + + "\n\014SetIamPolicy\0223.google.cloud.compute.v1" + + ".SetIamPolicyLicenseRequest\032\037.google.clo" + + "ud.compute.v1.Policy\"\250\001\332A3project,resour" + + "ce,global_set_policy_request_resource\202\323\344" + + "\223\002l\"F/compute/v1/projects/{project}/glob" + + "al/licenses/{resource}/setIamPolicy:\"glo" + + "bal_set_policy_request_resource\022\260\002\n\022Test" + + "IamPermissions\0229.google.cloud.compute.v1" + + ".TestIamPermissionsLicenseRequest\0320.goog" + + "le.cloud.compute.v1.TestPermissionsRespo" + + "nse\"\254\001\332A2project,resource,test_permissio" + + "ns_request_resource\202\323\344\223\002q\"L/compute/v1/p" + + "rojects/{project}/global/licenses/{resou" + + "rce}/testIamPermissions:!test_permission" + + "s_request_resource\022\346\001\n\006Update\022-.google.c" + + "loud.compute.v1.UpdateLicenseRequest\032\".g" + + "oogle.cloud.compute.v1.Operation\"\210\001\332A pr" + + "oject,license,license_resource\212N\020GlobalO" + + "perations\202\323\344\223\002L28/compute/v1/projects/{p" + + "roject}/global/licenses/{license}:\020licen" + + "se_resource\032r\312A\026compute.googleapis.com\322A" + + "Vhttps://www.googleapis.com/auth/compute" + + ",https://www.googleapis.com/auth/cloud-p" + + "latform2\224\020\n\rMachineImages\022\330\001\n\006Delete\0222.g" + + "oogle.cloud.compute.v1.DeleteMachineImag" + + "eRequest\032\".google.cloud.compute.v1.Opera" + + "tion\"v\332A\025project,machine_image\212N\020GlobalO" + + "perations\202\323\344\223\002E*C/compute/v1/projects/{p" + + "roject}/global/machineImages/{machine_im" + + "age}\022\302\001\n\003Get\022/.google.cloud.compute.v1.G" + + "etMachineImageRequest\032%.google.cloud.com" + + "pute.v1.MachineImage\"c\332A\025project,machine" + + "_image\202\323\344\223\002E\022C/compute/v1/projects/{proj" + + "ect}/global/machineImages/{machine_image" + + "}\022\321\001\n\014GetIamPolicy\0228.google.cloud.comput" + + "e.v1.GetIamPolicyMachineImageRequest\032\037.g" + + "oogle.cloud.compute.v1.Policy\"f\332A\020projec" + + "t,resource\202\323\344\223\002M\022K/compute/v1/projects/{" + + "project}/global/machineImages/{resource}" + + "/getIamPolicy\022\352\001\n\006Insert\0222.google.cloud." + + "compute.v1.InsertMachineImageRequest\032\".g" + + "oogle.cloud.compute.v1.Operation\"\207\001\332A\036pr" + + "oject,machine_image_resource\212N\020GlobalOpe" + + "rations\202\323\344\223\002M\"3/compute/v1/projects/{pro" + + "ject}/global/machineImages:\026machine_imag" + + "e_resource\022\253\001\n\004List\0221.google.cloud.compu" + + "te.v1.ListMachineImagesRequest\032).google." + + "cloud.compute.v1.MachineImageList\"E\332A\007pr" + + "oject\202\323\344\223\0025\0223/compute/v1/projects/{proje" + + "ct}/global/machineImages\022\231\002\n\014SetIamPolic" + + "y\0228.google.cloud.compute.v1.SetIamPolicy" + + "MachineImageRequest\032\037.google.cloud.compu" + + "te.v1.Policy\"\255\001\332A3project,resource,globa" + + "l_set_policy_request_resource\202\323\344\223\002q\"K/co" + + "mpute/v1/projects/{project}/global/machi" + + "neImages/{resource}/setIamPolicy:\"global" + + "_set_policy_request_resource\022\246\002\n\tSetLabe" + + "ls\0225.google.cloud.compute.v1.SetLabelsMa" + + "chineImageRequest\032\".google.cloud.compute" + + ".v1.Operation\"\275\001\332A3project,resource,glob" + + "al_set_labels_request_resource\212N\020GlobalO" + + "perations\202\323\344\223\002n\"H/compute/v1/projects/{p" + + "roject}/global/machineImages/{resource}/" + + "setLabels:\"global_set_labels_request_res" + + "ource\022\272\002\n\022TestIamPermissions\022>.google.cl" + + "oud.compute.v1.TestIamPermissionsMachine" + + "ImageRequest\0320.google.cloud.compute.v1.T" + + "estPermissionsResponse\"\261\001\332A2project,reso" + + "urce,test_permissions_request_resource\202\323" + + "\344\223\002v\"Q/compute/v1/projects/{project}/glo" + + "bal/machineImages/{resource}/testIamPerm" + + "issions:!test_permissions_request_resour" + "ce\032r\312A\026compute.googleapis.com\322AVhttps://" + "www.googleapis.com/auth/compute,https://" - + "www.googleapis.com/auth/cloud-platform2\260" - + "\005\n\014LicenseCodes\022\275\001\n\003Get\022..google.cloud.c" - + "ompute.v1.GetLicenseCodeRequest\032$.google" - + ".cloud.compute.v1.LicenseCode\"`\332A\024projec" - + "t,license_code\202\323\344\223\002C\022A/compute/v1/projec" - + "ts/{project}/global/licenseCodes/{licens" - + "e_code}\022\270\002\n\022TestIamPermissions\022=.google." - + "cloud.compute.v1.TestIamPermissionsLicen" - + "seCodeRequest\0320.google.cloud.compute.v1." - + "TestPermissionsResponse\"\260\001\332A2project,res" - + "ource,test_permissions_request_resource\202" - + "\323\344\223\002u\"P/compute/v1/projects/{project}/gl" - + "obal/licenseCodes/{resource}/testIamPerm" - + "issions:!test_permissions_request_resour" - + "ce\032\244\001\312A\026compute.googleapis.com\322A\207\001https:" - + "//www.googleapis.com/auth/compute.readon" - + "ly,https://www.googleapis.com/auth/compu" - + "te,https://www.googleapis.com/auth/cloud" - + "-platform2\343\016\n\010Licenses\022\302\001\n\006Delete\022-.goog" - + "le.cloud.compute.v1.DeleteLicenseRequest" - + "\032\".google.cloud.compute.v1.Operation\"e\332A" - + "\017project,license\212N\020GlobalOperations\202\323\344\223\002" - + ":*8/compute/v1/projects/{project}/global" - + "/licenses/{license}\022\247\001\n\003Get\022*.google.clo" - + "ud.compute.v1.GetLicenseRequest\032 .google" - + ".cloud.compute.v1.License\"R\332A\017project,li" - + "cense\202\323\344\223\002:\0228/compute/v1/projects/{proje" - + "ct}/global/licenses/{license}\022\307\001\n\014GetIam" - + "Policy\0223.google.cloud.compute.v1.GetIamP" - + "olicyLicenseRequest\032\037.google.cloud.compu" - + "te.v1.Policy\"a\332A\020project,resource\202\323\344\223\002H\022" - + "F/compute/v1/projects/{project}/global/l" - + "icenses/{resource}/getIamPolicy\022\323\001\n\006Inse" - + "rt\022-.google.cloud.compute.v1.InsertLicen" - + "seRequest\032\".google.cloud.compute.v1.Oper" - + "ation\"v\332A\030project,license_resource\212N\020Glo" - + "balOperations\202\323\344\223\002B\"./compute/v1/project" - + "s/{project}/global/licenses:\020license_res" - + "ource\022\245\001\n\004List\022,.google.cloud.compute.v1" - + ".ListLicensesRequest\032-.google.cloud.comp" - + "ute.v1.LicensesListResponse\"@\332A\007project\202" - + "\323\344\223\0020\022./compute/v1/projects/{project}/gl" - + "obal/licenses\022\217\002\n\014SetIamPolicy\0223.google." - + "cloud.compute.v1.SetIamPolicyLicenseRequ" - + "est\032\037.google.cloud.compute.v1.Policy\"\250\001\332" - + "A3project,resource,global_set_policy_req" - + "uest_resource\202\323\344\223\002l\"F/compute/v1/project" - + "s/{project}/global/licenses/{resource}/s" - + "etIamPolicy:\"global_set_policy_request_r" - + "esource\022\260\002\n\022TestIamPermissions\0229.google." - + "cloud.compute.v1.TestIamPermissionsLicen" - + "seRequest\0320.google.cloud.compute.v1.Test" - + "PermissionsResponse\"\254\001\332A2project,resourc" - + "e,test_permissions_request_resource\202\323\344\223\002" - + "q\"L/compute/v1/projects/{project}/global" - + "/licenses/{resource}/testIamPermissions:" - + "!test_permissions_request_resource\022\346\001\n\006U" - + "pdate\022-.google.cloud.compute.v1.UpdateLi" - + "censeRequest\032\".google.cloud.compute.v1.O" - + "peration\"\210\001\332A project,license,license_re" - + "source\212N\020GlobalOperations\202\323\344\223\002L28/comput" - + "e/v1/projects/{project}/global/licenses/" - + "{license}:\020license_resource\032r\312A\026compute." - + "googleapis.com\322AVhttps://www.googleapis." - + "com/auth/compute,https://www.googleapis." - + "com/auth/cloud-platform2\224\020\n\rMachineImage" - + "s\022\330\001\n\006Delete\0222.google.cloud.compute.v1.D" - + "eleteMachineImageRequest\032\".google.cloud." - + "compute.v1.Operation\"v\332A\025project,machine" - + "_image\212N\020GlobalOperations\202\323\344\223\002E*C/comput" - + "e/v1/projects/{project}/global/machineIm" - + "ages/{machine_image}\022\302\001\n\003Get\022/.google.cl" - + "oud.compute.v1.GetMachineImageRequest\032%." - + "google.cloud.compute.v1.MachineImage\"c\332A" - + "\025project,machine_image\202\323\344\223\002E\022C/compute/v" - + "1/projects/{project}/global/machineImage" - + "s/{machine_image}\022\321\001\n\014GetIamPolicy\0228.goo" - + "gle.cloud.compute.v1.GetIamPolicyMachine" - + "ImageRequest\032\037.google.cloud.compute.v1.P" - + "olicy\"f\332A\020project,resource\202\323\344\223\002M\022K/compu" - + "te/v1/projects/{project}/global/machineI" - + "mages/{resource}/getIamPolicy\022\352\001\n\006Insert" - + "\0222.google.cloud.compute.v1.InsertMachine" - + "ImageRequest\032\".google.cloud.compute.v1.O" - + "peration\"\207\001\332A\036project,machine_image_reso" - + "urce\212N\020GlobalOperations\202\323\344\223\002M\"3/compute/" - + "v1/projects/{project}/global/machineImag" - + "es:\026machine_image_resource\022\253\001\n\004List\0221.go" - + "ogle.cloud.compute.v1.ListMachineImagesR" - + "equest\032).google.cloud.compute.v1.Machine" - + "ImageList\"E\332A\007project\202\323\344\223\0025\0223/compute/v1" - + "/projects/{project}/global/machineImages" - + "\022\231\002\n\014SetIamPolicy\0228.google.cloud.compute" - + ".v1.SetIamPolicyMachineImageRequest\032\037.go" - + "ogle.cloud.compute.v1.Policy\"\255\001\332A3projec" - + "t,resource,global_set_policy_request_res" - + "ource\202\323\344\223\002q\"K/compute/v1/projects/{proje" - + "ct}/global/machineImages/{resource}/setI" - + "amPolicy:\"global_set_policy_request_reso" - + "urce\022\246\002\n\tSetLabels\0225.google.cloud.comput" - + "e.v1.SetLabelsMachineImageRequest\032\".goog" - + "le.cloud.compute.v1.Operation\"\275\001\332A3proje" - + "ct,resource,global_set_labels_request_re" - + "source\212N\020GlobalOperations\202\323\344\223\002n\"H/comput" - + "e/v1/projects/{project}/global/machineIm" - + "ages/{resource}/setLabels:\"global_set_la" - + "bels_request_resource\022\272\002\n\022TestIamPermiss" - + "ions\022>.google.cloud.compute.v1.TestIamPe" - + "rmissionsMachineImageRequest\0320.google.cl" - + "oud.compute.v1.TestPermissionsResponse\"\261" - + "\001\332A2project,resource,test_permissions_re" - + "quest_resource\202\323\344\223\002v\"Q/compute/v1/projec" - + "ts/{project}/global/machineImages/{resou" - + "rce}/testIamPermissions:!test_permission" - + "s_request_resource\032r\312A\026compute.googleapi" - + "s.com\322AVhttps://www.googleapis.com/auth/" - + "compute,https://www.googleapis.com/auth/" - + "cloud-platform2\203\006\n\014MachineTypes\022\312\001\n\016Aggr" - + "egatedList\022:.google.cloud.compute.v1.Agg" - + "regatedListMachineTypesRequest\0322.google." - + "cloud.compute.v1.MachineTypeAggregatedLi" - + "st\"H\332A\007project\202\323\344\223\0028\0226/compute/v1/projec" - + "ts/{project}/aggregated/machineTypes\022\310\001\n" - + "\003Get\022..google.cloud.compute.v1.GetMachin" - + "eTypeRequest\032$.google.cloud.compute.v1.M" - + "achineType\"k\332A\031project,zone,machine_type" - + "\202\323\344\223\002I\022G/compute/v1/projects/{project}/z" - + "ones/{zone}/machineTypes/{machine_type}\022" - + "\263\001\n\004List\0220.google.cloud.compute.v1.ListM" - + "achineTypesRequest\032(.google.cloud.comput" - + "e.v1.MachineTypeList\"O\332A\014project,zone\202\323\344" - + "\223\002:\0228/compute/v1/projects/{project}/zone" - + "s/{zone}/machineTypes\032\244\001\312A\026compute.googl" - + "eapis.com\322A\207\001https://www.googleapis.com/" - + "auth/compute.readonly,https://www.google" - + "apis.com/auth/compute,https://www.google" - + "apis.com/auth/cloud-platform2\360\023\n\022Network" - + "Attachments\022\334\001\n\016AggregatedList\022@.google." - + "cloud.compute.v1.AggregatedListNetworkAt" - + "tachmentsRequest\0328.google.cloud.compute." - + "v1.NetworkAttachmentAggregatedList\"N\332A\007p" - + "roject\202\323\344\223\002>\022\022.googl" - + "e.cloud.compute.v1.PatchRuleNetworkFirew" - + "allPolicyRequest\032\".google.cloud.compute." - + "v1.Operation\"\304\001\332A5project,firewall_polic" - + "y,firewall_policy_rule_resource\212N\020Global" - + "Operations\202\323\344\223\002s\"R/compute/v1/projects/{" - + "project}/global/firewallPolicies/{firewa" - + "ll_policy}/patchRule:\035firewall_policy_ru" - + "le_resource\022\221\002\n\021RemoveAssociation\022F.goog" - + "le.cloud.compute.v1.RemoveAssociationNet" + + "{firewall_policy}/addPacketMirroringRule" + + ":\035firewall_policy_rule_resource\022\260\002\n\007AddR" + + "ule\022<.google.cloud.compute.v1.AddRuleNet" + "workFirewallPolicyRequest\032\".google.cloud" - + ".compute.v1.Operation\"\217\001\332A\027project,firew" - + "all_policy\212N\020GlobalOperations\202\323\344\223\002\\\"Z/co" - + "mpute/v1/projects/{project}/global/firew" - + "allPolicies/{firewall_policy}/removeAsso" - + "ciation\022\251\002\n\031RemovePacketMirroringRule\022N." - + "google.cloud.compute.v1.RemovePacketMirr" - + "oringRuleNetworkFirewallPolicyRequest\032\"." - + "google.cloud.compute.v1.Operation\"\227\001\332A\027p" - + "roject,firewall_policy\212N\020GlobalOperation" - + "s\202\323\344\223\002d\"b/compute/v1/projects/{project}/" + + ".compute.v1.Operation\"\302\001\332A5project,firew" + + "all_policy,firewall_policy_rule_resource" + + "\212N\020GlobalOperations\202\323\344\223\002q\"P/compute/v1/p" + + "rojects/{project}/global/firewallPolicie" + + "s/{firewall_policy}/addRule:\035firewall_po" + + "licy_rule_resource\022\343\001\n\016AggregatedList\022E." + + "google.cloud.compute.v1.AggregatedListNe" + + "tworkFirewallPoliciesRequest\032<.google.cl" + + "oud.compute.v1.NetworkFirewallPolicyAggr" + + "egatedList\"L\332A\007project\202\323\344\223\002<\022:/compute/v" + + "1/projects/{project}/aggregated/firewall" + + "Policies\022\374\001\n\nCloneRules\022?.google.cloud.c" + + "ompute.v1.CloneRulesNetworkFirewallPolic" + + "yRequest\032\".google.cloud.compute.v1.Opera" + + "tion\"\210\001\332A\027project,firewall_policy\212N\020Glob" + + "alOperations\202\323\344\223\002U\"S/compute/v1/projects" + + "/{project}/global/firewallPolicies/{fire" + + "wall_policy}/cloneRules\022\350\001\n\006Delete\022;.goo" + + "gle.cloud.compute.v1.DeleteNetworkFirewa" + + "llPolicyRequest\032\".google.cloud.compute.v" + + "1.Operation\"}\332A\027project,firewall_policy\212" + + "N\020GlobalOperations\202\323\344\223\002J*H/compute/v1/pr" + + "ojects/{project}/global/firewallPolicies" + + "/{firewall_policy}\022\324\001\n\003Get\0228.google.clou" + + "d.compute.v1.GetNetworkFirewallPolicyReq" + + "uest\032\'.google.cloud.compute.v1.FirewallP" + + "olicy\"j\332A\027project,firewall_policy\202\323\344\223\002J\022" + + "H/compute/v1/projects/{project}/global/f" + + "irewallPolicies/{firewall_policy}\022\204\002\n\016Ge" + + "tAssociation\022C.google.cloud.compute.v1.G" + + "etAssociationNetworkFirewallPolicyReques" + + "t\0322.google.cloud.compute.v1.FirewallPoli" + + "cyAssociation\"y\332A\027project,firewall_polic" + + "y\202\323\344\223\002Y\022W/compute/v1/projects/{project}/" + "global/firewallPolicies/{firewall_policy" - + "}/removePacketMirroringRule\022\374\001\n\nRemoveRu" - + "le\022?.google.cloud.compute.v1.RemoveRuleN" - + "etworkFirewallPolicyRequest\032\".google.clo" - + "ud.compute.v1.Operation\"\210\001\332A\027project,fir" - + "ewall_policy\212N\020GlobalOperations\202\323\344\223\002U\"S/" - + "compute/v1/projects/{project}/global/fir" - + "ewallPolicies/{firewall_policy}/removeRu" - + "le\022\245\002\n\014SetIamPolicy\022A.google.cloud.compu" - + "te.v1.SetIamPolicyNetworkFirewallPolicyR" - + "equest\032\037.google.cloud.compute.v1.Policy\"" - + "\260\001\332A3project,resource,global_set_policy_" - + "request_resource\202\323\344\223\002t\"N/compute/v1/proj" - + "ects/{project}/global/firewallPolicies/{" - + "resource}/setIamPolicy:\"global_set_polic" - + "y_request_resource\022\306\002\n\022TestIamPermission" - + "s\022G.google.cloud.compute.v1.TestIamPermi" - + "ssionsNetworkFirewallPolicyRequest\0320.goo" - + "gle.cloud.compute.v1.TestPermissionsResp" - + "onse\"\264\001\332A2project,resource,test_permissi" - + "ons_request_resource\202\323\344\223\002y\"T/compute/v1/" - + "projects/{project}/global/firewallPolici" - + "es/{resource}/testIamPermissions:!test_p" - + "ermissions_request_resource\032r\312A\026compute." - + "googleapis.com\322AVhttps://www.googleapis." - + "com/auth/compute,https://www.googleapis." - + "com/auth/cloud-platform2\304\004\n\017NetworkProfi" - + "les\022\314\001\n\003Get\0221.google.cloud.compute.v1.Ge" - + "tNetworkProfileRequest\032\'.google.cloud.co" - + "mpute.v1.NetworkProfile\"i\332A\027project,netw" - + "ork_profile\202\323\344\223\002I\022G/compute/v1/projects/" - + "{project}/global/networkProfiles/{networ" - + "k_profile}\022\272\001\n\004List\0223.google.cloud.compu" - + "te.v1.ListNetworkProfilesRequest\0324.googl" - + "e.cloud.compute.v1.NetworkProfilesListRe" - + "sponse\"G\332A\007project\202\323\344\223\0027\0225/compute/v1/pr" - + "ojects/{project}/global/networkProfiles\032" - + "\244\001\312A\026compute.googleapis.com\322A\207\001https://w" - + "ww.googleapis.com/auth/compute.readonly," - + "https://www.googleapis.com/auth/compute," - + "https://www.googleapis.com/auth/cloud-pl" - + "atform2\222\030\n\010Networks\022\243\002\n\nAddPeering\0221.goo" - + "gle.cloud.compute.v1.AddPeeringNetworkRe" - + "quest\032\".google.cloud.compute.v1.Operatio" - + "n\"\275\001\332A5project,network,networks_add_peer" - + "ing_request_resource\212N\020GlobalOperations\202" - + "\323\344\223\002l\"C/compute/v1/projects/{project}/gl" - + "obal/networks/{network}/addPeering:%netw" - + "orks_add_peering_request_resource\022\302\001\n\006De" - + "lete\022-.google.cloud.compute.v1.DeleteNet" - + "workRequest\032\".google.cloud.compute.v1.Op" - + "eration\"e\332A\017project,network\212N\020GlobalOper" - + "ations\202\323\344\223\002:*8/compute/v1/projects/{proj" - + "ect}/global/networks/{network}\022\247\001\n\003Get\022*" - + ".google.cloud.compute.v1.GetNetworkReque" - + "st\032 .google.cloud.compute.v1.Network\"R\332A" - + "\017project,network\202\323\344\223\002:\0228/compute/v1/proj" - + "ects/{project}/global/networks/{network}" - + "\022\377\001\n\025GetEffectiveFirewalls\022<.google.clou" - + "d.compute.v1.GetEffectiveFirewallsNetwor" - + "kRequest\032>.google.cloud.compute.v1.Netwo" - + "rksGetEffectiveFirewallsResponse\"h\332A\017pro" - + "ject,network\202\323\344\223\002P\022N/compute/v1/projects" - + "/{project}/global/networks/{network}/get" - + "EffectiveFirewalls\022\323\001\n\006Insert\022-.google.c" - + "loud.compute.v1.InsertNetworkRequest\032\".g" - + "oogle.cloud.compute.v1.Operation\"v\332A\030pro" - + "ject,network_resource\212N\020GlobalOperations" - + "\202\323\344\223\002B\"./compute/v1/projects/{project}/g" - + "lobal/networks:\020network_resource\022\234\001\n\004Lis" - + "t\022,.google.cloud.compute.v1.ListNetworks" - + "Request\032$.google.cloud.compute.v1.Networ" - + "kList\"@\332A\007project\202\323\344\223\0020\022./compute/v1/pro" - + "jects/{project}/global/networks\022\351\001\n\021List" - + "PeeringRoutes\0229.google.cloud.compute.v1." - + "ListPeeringRoutesNetworksRequest\0323.googl" - + "e.cloud.compute.v1.ExchangedPeeringRoute" - + "sList\"d\332A\017project,network\202\323\344\223\002L\022J/comput" - + "e/v1/projects/{project}/global/networks/" - + "{network}/listPeeringRoutes\022\344\001\n\005Patch\022,." - + "google.cloud.compute.v1.PatchNetworkRequ" - + "est\032\".google.cloud.compute.v1.Operation\"" - + "\210\001\332A project,network,network_resource\212N\020" - + "GlobalOperations\202\323\344\223\002L28/compute/v1/proj" - + "ects/{project}/global/networks/{network}" - + ":\020network_resource\022\262\002\n\rRemovePeering\0224.g" - + "oogle.cloud.compute.v1.RemovePeeringNetw" - + "orkRequest\032\".google.cloud.compute.v1.Ope" - + "ration\"\306\001\332A8project,network,networks_rem" - + "ove_peering_request_resource\212N\020GlobalOpe" - + "rations\202\323\344\223\002r\"F/compute/v1/projects/{pro" - + "ject}/global/networks/{network}/removePe" - + "ering:(networks_remove_peering_request_r" - + "esource\022\330\002\n\024RequestRemovePeering\022;.googl" - + "e.cloud.compute.v1.RequestRemovePeeringN" - + "etworkRequest\032\".google.cloud.compute.v1." - + "Operation\"\336\001\332A@project,network,networks_" - + "request_remove_peering_request_resource\212" - + "N\020GlobalOperations\202\323\344\223\002\201\001\"M/compute/v1/p" - + "rojects/{project}/global/networks/{netwo" - + "rk}/requestRemovePeering:0networks_reque" - + "st_remove_peering_request_resource\022\355\001\n\022S" - + "witchToCustomMode\0229.google.cloud.compute" - + ".v1.SwitchToCustomModeNetworkRequest\032\".g" - + "oogle.cloud.compute.v1.Operation\"x\332A\017pro" - + "ject,network\212N\020GlobalOperations\202\323\344\223\002M\"K/" - + "compute/v1/projects/{project}/global/net" - + "works/{network}/switchToCustomMode\022\262\002\n\rU" - + "pdatePeering\0224.google.cloud.compute.v1.U" - + "pdatePeeringNetworkRequest\032\".google.clou" - + "d.compute.v1.Operation\"\306\001\332A8project,netw" - + "ork,networks_update_peering_request_reso" - + "urce\212N\020GlobalOperations\202\323\344\223\002r2F/compute/" + + "}/getAssociation\022\335\001\n\014GetIamPolicy\022A.goog" + + "le.cloud.compute.v1.GetIamPolicyNetworkF" + + "irewallPolicyRequest\032\037.google.cloud.comp" + + "ute.v1.Policy\"i\332A\020project,resource\202\323\344\223\002P" + + "\022N/compute/v1/projects/{project}/global/" + + "firewallPolicies/{resource}/getIamPolicy" + + "\022\226\002\n\026GetPacketMirroringRule\022K.google.clo" + + "ud.compute.v1.GetPacketMirroringRuleNetw" + + "orkFirewallPolicyRequest\032+.google.cloud." + + "compute.v1.FirewallPolicyRule\"\201\001\332A\027proje" + + "ct,firewall_policy\202\323\344\223\002a\022_/compute/v1/pr" + + "ojects/{project}/global/firewallPolicies" + + "/{firewall_policy}/getPacketMirroringRul" + + "e\022\350\001\n\007GetRule\022<.google.cloud.compute.v1." + + "GetRuleNetworkFirewallPolicyRequest\032+.go" + + "ogle.cloud.compute.v1.FirewallPolicyRule" + + "\"r\332A\027project,firewall_policy\202\323\344\223\002R\022P/com" + + "pute/v1/projects/{project}/global/firewa" + + "llPolicies/{firewall_policy}/getRule\022\372\001\n" + + "\006Insert\022;.google.cloud.compute.v1.Insert" + + "NetworkFirewallPolicyRequest\032\".google.cl" + + "oud.compute.v1.Operation\"\216\001\332A project,fi" + + "rewall_policy_resource\212N\020GlobalOperation" + + "s\202\323\344\223\002R\"6/compute/v1/projects/{project}/" + + "global/firewallPolicies:\030firewall_policy" + + "_resource\022\272\001\n\004List\022;.google.cloud.comput" + + "e.v1.ListNetworkFirewallPoliciesRequest\032" + + "+.google.cloud.compute.v1.FirewallPolicy" + + "List\"H\332A\007project\202\323\344\223\0028\0226/compute/v1/proj" + + "ects/{project}/global/firewallPolicies\022\232" + + "\002\n\005Patch\022:.google.cloud.compute.v1.Patch" + + "NetworkFirewallPolicyRequest\032\".google.cl" + + "oud.compute.v1.Operation\"\260\001\332A0project,fi" + + "rewall_policy,firewall_policy_resource\212N" + + "\020GlobalOperations\202\323\344\223\002d2H/compute/v1/pro" + + "jects/{project}/global/firewallPolicies/" + + "{firewall_policy}:\030firewall_policy_resou" + + "rce\022\344\002\n\030PatchPacketMirroringRule\022M.googl" + + "e.cloud.compute.v1.PatchPacketMirroringR" + + "uleNetworkFirewallPolicyRequest\032\".google" + + ".cloud.compute.v1.Operation\"\324\001\332A5project" + + ",firewall_policy,firewall_policy_rule_re" + + "source\212N\020GlobalOperations\202\323\344\223\002\202\001\"a/compu" + + "te/v1/projects/{project}/global/firewall" + + "Policies/{firewall_policy}/patchPacketMi" + + "rroringRule:\035firewall_policy_rule_resour" + + "ce\022\266\002\n\tPatchRule\022>.google.cloud.compute." + + "v1.PatchRuleNetworkFirewallPolicyRequest" + + "\032\".google.cloud.compute.v1.Operation\"\304\001\332" + + "A5project,firewall_policy,firewall_polic" + + "y_rule_resource\212N\020GlobalOperations\202\323\344\223\002s" + + "\"R/compute/v1/projects/{project}/global/" + + "firewallPolicies/{firewall_policy}/patch" + + "Rule:\035firewall_policy_rule_resource\022\221\002\n\021" + + "RemoveAssociation\022F.google.cloud.compute" + + ".v1.RemoveAssociationNetworkFirewallPoli" + + "cyRequest\032\".google.cloud.compute.v1.Oper" + + "ation\"\217\001\332A\027project,firewall_policy\212N\020Glo" + + "balOperations\202\323\344\223\002\\\"Z/compute/v1/project" + + "s/{project}/global/firewallPolicies/{fir" + + "ewall_policy}/removeAssociation\022\251\002\n\031Remo" + + "vePacketMirroringRule\022N.google.cloud.com" + + "pute.v1.RemovePacketMirroringRuleNetwork" + + "FirewallPolicyRequest\032\".google.cloud.com" + + "pute.v1.Operation\"\227\001\332A\027project,firewall_" + + "policy\212N\020GlobalOperations\202\323\344\223\002d\"b/comput" + + "e/v1/projects/{project}/global/firewallP" + + "olicies/{firewall_policy}/removePacketMi" + + "rroringRule\022\374\001\n\nRemoveRule\022?.google.clou" + + "d.compute.v1.RemoveRuleNetworkFirewallPo" + + "licyRequest\032\".google.cloud.compute.v1.Op" + + "eration\"\210\001\332A\027project,firewall_policy\212N\020G" + + "lobalOperations\202\323\344\223\002U\"S/compute/v1/proje" + + "cts/{project}/global/firewallPolicies/{f" + + "irewall_policy}/removeRule\022\245\002\n\014SetIamPol" + + "icy\022A.google.cloud.compute.v1.SetIamPoli" + + "cyNetworkFirewallPolicyRequest\032\037.google." + + "cloud.compute.v1.Policy\"\260\001\332A3project,res" + + "ource,global_set_policy_request_resource" + + "\202\323\344\223\002t\"N/compute/v1/projects/{project}/g" + + "lobal/firewallPolicies/{resource}/setIam" + + "Policy:\"global_set_policy_request_resour" + + "ce\022\306\002\n\022TestIamPermissions\022G.google.cloud" + + ".compute.v1.TestIamPermissionsNetworkFir" + + "ewallPolicyRequest\0320.google.cloud.comput" + + "e.v1.TestPermissionsResponse\"\264\001\332A2projec" + + "t,resource,test_permissions_request_reso" + + "urce\202\323\344\223\002y\"T/compute/v1/projects/{projec" + + "t}/global/firewallPolicies/{resource}/te" + + "stIamPermissions:!test_permissions_reque" + + "st_resource\032r\312A\026compute.googleapis.com\322A" + + "Vhttps://www.googleapis.com/auth/compute" + + ",https://www.googleapis.com/auth/cloud-p" + + "latform2\304\004\n\017NetworkProfiles\022\314\001\n\003Get\0221.go" + + "ogle.cloud.compute.v1.GetNetworkProfileR" + + "equest\032\'.google.cloud.compute.v1.Network" + + "Profile\"i\332A\027project,network_profile\202\323\344\223\002" + + "I\022G/compute/v1/projects/{project}/global" + + "/networkProfiles/{network_profile}\022\272\001\n\004L" + + "ist\0223.google.cloud.compute.v1.ListNetwor" + + "kProfilesRequest\0324.google.cloud.compute." + + "v1.NetworkProfilesListResponse\"G\332A\007proje" + + "ct\202\323\344\223\0027\0225/compute/v1/projects/{project}" + + "/global/networkProfiles\032\244\001\312A\026compute.goo" + + "gleapis.com\322A\207\001https://www.googleapis.co" + + "m/auth/compute.readonly,https://www.goog" + + "leapis.com/auth/compute,https://www.goog" + + "leapis.com/auth/cloud-platform2\222\030\n\010Netwo" + + "rks\022\243\002\n\nAddPeering\0221.google.cloud.comput" + + "e.v1.AddPeeringNetworkRequest\032\".google.c" + + "loud.compute.v1.Operation\"\275\001\332A5project,n" + + "etwork,networks_add_peering_request_reso" + + "urce\212N\020GlobalOperations\202\323\344\223\002l\"C/compute/" + "v1/projects/{project}/global/networks/{n" - + "etwork}/updatePeering:(networks_update_p" - + "eering_request_resource\032r\312A\026compute.goog" - + "leapis.com\322AVhttps://www.googleapis.com/" - + "auth/compute,https://www.googleapis.com/" - + "auth/cloud-platform2\353 \n\nNodeGroups\022\262\002\n\010A" - + "ddNodes\0221.google.cloud.compute.v1.AddNod" - + "esNodeGroupRequest\032\".google.cloud.comput" - + "e.v1.Operation\"\316\001\332A>project,zone,node_gr" - + "oup,node_groups_add_nodes_request_resour" - + "ce\212N\016ZoneOperations\202\323\344\223\002v\"L/compute/v1/p" - + "rojects/{project}/zones/{zone}/nodeGroup" - + "s/{node_group}/addNodes:&node_groups_add" - + "_nodes_request_resource\022\304\001\n\016AggregatedLi" - + "st\0228.google.cloud.compute.v1.AggregatedL" - + "istNodeGroupsRequest\0320.google.cloud.comp" - + "ute.v1.NodeGroupAggregatedList\"F\332A\007proje" - + "ct\202\323\344\223\0026\0224/compute/v1/projects/{project}" - + "/aggregated/nodeGroups\022\325\001\n\006Delete\022/.goog" - + "le.cloud.compute.v1.DeleteNodeGroupReque" - + "st\032\".google.cloud.compute.v1.Operation\"v" - + "\332A\027project,zone,node_group\212N\016ZoneOperati" - + "ons\202\323\344\223\002E*C/compute/v1/projects/{project" - + "}/zones/{zone}/nodeGroups/{node_group}\022\301" - + "\002\n\013DeleteNodes\0224.google.cloud.compute.v1" - + ".DeleteNodesNodeGroupRequest\032\".google.cl" - + "oud.compute.v1.Operation\"\327\001\332AAproject,zo" - + "ne,node_group,node_groups_delete_nodes_r" - + "equest_resource\212N\016ZoneOperations\202\323\344\223\002|\"O" - + "/compute/v1/projects/{project}/zones/{zo" - + "ne}/nodeGroups/{node_group}/deleteNodes:" - + ")node_groups_delete_nodes_request_resour" - + "ce\022\276\001\n\003Get\022,.google.cloud.compute.v1.Get" - + "NodeGroupRequest\032\".google.cloud.compute." - + "v1.NodeGroup\"e\332A\027project,zone,node_group" - + "\202\323\344\223\002E\022C/compute/v1/projects/{project}/z" - + "ones/{zone}/nodeGroups/{node_group}\022\326\001\n\014" - + "GetIamPolicy\0225.google.cloud.compute.v1.G" - + "etIamPolicyNodeGroupRequest\032\037.google.clo" - + "ud.compute.v1.Policy\"n\332A\025project,zone,re" - + "source\202\323\344\223\002P\022N/compute/v1/projects/{proj" - + "ect}/zones/{zone}/nodeGroups/{resource}/" - + "getIamPolicy\022\372\001\n\006Insert\022/.google.cloud.c" - + "ompute.v1.InsertNodeGroupRequest\032\".googl" - + "e.cloud.compute.v1.Operation\"\232\001\332A3projec" - + "t,zone,initial_node_count,node_group_res" - + "ource\212N\016ZoneOperations\202\323\344\223\002M\"6/compute/v" - + "1/projects/{project}/zones/{zone}/nodeGr" - + "oups:\023node_group_resource\022\255\001\n\004List\022..goo" - + "gle.cloud.compute.v1.ListNodeGroupsReque" - + "st\032&.google.cloud.compute.v1.NodeGroupLi" - + "st\"M\332A\014project,zone\202\323\344\223\0028\0226/compute/v1/p" - + "rojects/{project}/zones/{zone}/nodeGroup" - + "s\022\337\001\n\tListNodes\0223.google.cloud.compute.v" - + "1.ListNodesNodeGroupsRequest\032,.google.cl" - + "oud.compute.v1.NodeGroupsListNodes\"o\332A\027p" - + "roject,zone,node_group\202\323\344\223\002O\"M/compute/v" - + "1/projects/{project}/zones/{zone}/nodeGr" - + "oups/{node_group}/listNodes\022\375\001\n\005Patch\022.." - + "google.cloud.compute.v1.PatchNodeGroupRe" - + "quest\032\".google.cloud.compute.v1.Operatio" - + "n\"\237\001\332A+project,zone,node_group,node_grou" - + "p_resource\212N\016ZoneOperations\202\323\344\223\002Z2C/comp" + + "etwork}/addPeering:%networks_add_peering" + + "_request_resource\022\302\001\n\006Delete\022-.google.cl" + + "oud.compute.v1.DeleteNetworkRequest\032\".go" + + "ogle.cloud.compute.v1.Operation\"e\332A\017proj" + + "ect,network\212N\020GlobalOperations\202\323\344\223\002:*8/c" + + "ompute/v1/projects/{project}/global/netw" + + "orks/{network}\022\247\001\n\003Get\022*.google.cloud.co" + + "mpute.v1.GetNetworkRequest\032 .google.clou" + + "d.compute.v1.Network\"R\332A\017project,network" + + "\202\323\344\223\002:\0228/compute/v1/projects/{project}/g" + + "lobal/networks/{network}\022\377\001\n\025GetEffectiv" + + "eFirewalls\022<.google.cloud.compute.v1.Get" + + "EffectiveFirewallsNetworkRequest\032>.googl" + + "e.cloud.compute.v1.NetworksGetEffectiveF" + + "irewallsResponse\"h\332A\017project,network\202\323\344\223" + + "\002P\022N/compute/v1/projects/{project}/globa" + + "l/networks/{network}/getEffectiveFirewal" + + "ls\022\323\001\n\006Insert\022-.google.cloud.compute.v1." + + "InsertNetworkRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"v\332A\030project,network_res" + + "ource\212N\020GlobalOperations\202\323\344\223\002B\"./compute" + + "/v1/projects/{project}/global/networks:\020" + + "network_resource\022\234\001\n\004List\022,.google.cloud" + + ".compute.v1.ListNetworksRequest\032$.google" + + ".cloud.compute.v1.NetworkList\"@\332A\007projec" + + "t\202\323\344\223\0020\022./compute/v1/projects/{project}/" + + "global/networks\022\351\001\n\021ListPeeringRoutes\0229." + + "google.cloud.compute.v1.ListPeeringRoute" + + "sNetworksRequest\0323.google.cloud.compute." + + "v1.ExchangedPeeringRoutesList\"d\332A\017projec" + + "t,network\202\323\344\223\002L\022J/compute/v1/projects/{p" + + "roject}/global/networks/{network}/listPe" + + "eringRoutes\022\344\001\n\005Patch\022,.google.cloud.com" + + "pute.v1.PatchNetworkRequest\032\".google.clo" + + "ud.compute.v1.Operation\"\210\001\332A project,net" + + "work,network_resource\212N\020GlobalOperations" + + "\202\323\344\223\002L28/compute/v1/projects/{project}/g" + + "lobal/networks/{network}:\020network_resour" + + "ce\022\262\002\n\rRemovePeering\0224.google.cloud.comp" + + "ute.v1.RemovePeeringNetworkRequest\032\".goo" + + "gle.cloud.compute.v1.Operation\"\306\001\332A8proj" + + "ect,network,networks_remove_peering_requ" + + "est_resource\212N\020GlobalOperations\202\323\344\223\002r\"F/" + + "compute/v1/projects/{project}/global/net" + + "works/{network}/removePeering:(networks_" + + "remove_peering_request_resource\022\330\002\n\024Requ" + + "estRemovePeering\022;.google.cloud.compute." + + "v1.RequestRemovePeeringNetworkRequest\032\"." + + "google.cloud.compute.v1.Operation\"\336\001\332A@p" + + "roject,network,networks_request_remove_p" + + "eering_request_resource\212N\020GlobalOperatio" + + "ns\202\323\344\223\002\201\001\"M/compute/v1/projects/{project" + + "}/global/networks/{network}/requestRemov" + + "ePeering:0networks_request_remove_peerin" + + "g_request_resource\022\355\001\n\022SwitchToCustomMod" + + "e\0229.google.cloud.compute.v1.SwitchToCust" + + "omModeNetworkRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"x\332A\017project,network\212N\020G" + + "lobalOperations\202\323\344\223\002M\"K/compute/v1/proje" + + "cts/{project}/global/networks/{network}/" + + "switchToCustomMode\022\262\002\n\rUpdatePeering\0224.g" + + "oogle.cloud.compute.v1.UpdatePeeringNetw" + + "orkRequest\032\".google.cloud.compute.v1.Ope" + + "ration\"\306\001\332A8project,network,networks_upd" + + "ate_peering_request_resource\212N\020GlobalOpe" + + "rations\202\323\344\223\002r2F/compute/v1/projects/{pro" + + "ject}/global/networks/{network}/updatePe" + + "ering:(networks_update_peering_request_r" + + "esource\032r\312A\026compute.googleapis.com\322AVhtt" + + "ps://www.googleapis.com/auth/compute,htt" + + "ps://www.googleapis.com/auth/cloud-platf" + + "orm2\353 \n\nNodeGroups\022\262\002\n\010AddNodes\0221.google" + + ".cloud.compute.v1.AddNodesNodeGroupReque" + + "st\032\".google.cloud.compute.v1.Operation\"\316" + + "\001\332A>project,zone,node_group,node_groups_" + + "add_nodes_request_resource\212N\016ZoneOperati" + + "ons\202\323\344\223\002v\"L/compute/v1/projects/{project" + + "}/zones/{zone}/nodeGroups/{node_group}/a" + + "ddNodes:&node_groups_add_nodes_request_r" + + "esource\022\304\001\n\016AggregatedList\0228.google.clou" + + "d.compute.v1.AggregatedListNodeGroupsReq" + + "uest\0320.google.cloud.compute.v1.NodeGroup" + + "AggregatedList\"F\332A\007project\202\323\344\223\0026\0224/compu" + + "te/v1/projects/{project}/aggregated/node" + + "Groups\022\325\001\n\006Delete\022/.google.cloud.compute" + + ".v1.DeleteNodeGroupRequest\032\".google.clou" + + "d.compute.v1.Operation\"v\332A\027project,zone," + + "node_group\212N\016ZoneOperations\202\323\344\223\002E*C/comp" + "ute/v1/projects/{project}/zones/{zone}/n" - + "odeGroups/{node_group}:\023node_group_resou" - + "rce\022\345\002\n\022PerformMaintenance\022;.google.clou" - + "d.compute.v1.PerformMaintenanceNodeGroup" - + "Request\032\".google.cloud.compute.v1.Operat" - + "ion\"\355\001\332AHproject,zone,node_group,node_gr" - + "oups_perform_maintenance_request_resourc" - + "e\212N\016ZoneOperations\202\323\344\223\002\212\001\"V/compute/v1/p" - + "rojects/{project}/zones/{zone}/nodeGroup" - + "s/{node_group}/performMaintenance:0node_" - + "groups_perform_maintenance_request_resou" - + "rce\022\232\002\n\014SetIamPolicy\0225.google.cloud.comp" - + "ute.v1.SetIamPolicyNodeGroupRequest\032\037.go" - + "ogle.cloud.compute.v1.Policy\"\261\001\332A6projec" - + "t,zone,resource,zone_set_policy_request_" - + "resource\202\323\344\223\002r\"N/compute/v1/projects/{pr" - + "oject}/zones/{zone}/nodeGroups/{resource" - + "}/setIamPolicy: zone_set_policy_request_" - + "resource\022\330\002\n\017SetNodeTemplate\0228.google.cl" - + "oud.compute.v1.SetNodeTemplateNodeGroupR" - + "equest\032\".google.cloud.compute.v1.Operati" - + "on\"\346\001\332AFproject,zone,node_group,node_gro" - + "ups_set_node_template_request_resource\212N" - + "\016ZoneOperations\202\323\344\223\002\205\001\"S/compute/v1/proj" + + "odeGroups/{node_group}\022\301\002\n\013DeleteNodes\0224" + + ".google.cloud.compute.v1.DeleteNodesNode" + + "GroupRequest\032\".google.cloud.compute.v1.O" + + "peration\"\327\001\332AAproject,zone,node_group,no" + + "de_groups_delete_nodes_request_resource\212" + + "N\016ZoneOperations\202\323\344\223\002|\"O/compute/v1/proj" + "ects/{project}/zones/{zone}/nodeGroups/{" - + "node_group}/setNodeTemplate:.node_groups" - + "_set_node_template_request_resource\022\205\003\n\030" - + "SimulateMaintenanceEvent\022A.google.cloud." - + "compute.v1.SimulateMaintenanceEventNodeG" - + "roupRequest\032\".google.cloud.compute.v1.Op" - + "eration\"\201\002\332AOproject,zone,node_group,nod" - + "e_groups_simulate_maintenance_event_requ" - + "est_resource\212N\016ZoneOperations\202\323\344\223\002\227\001\"\\/c" + + "node_group}/deleteNodes:)node_groups_del" + + "ete_nodes_request_resource\022\276\001\n\003Get\022,.goo" + + "gle.cloud.compute.v1.GetNodeGroupRequest" + + "\032\".google.cloud.compute.v1.NodeGroup\"e\332A" + + "\027project,zone,node_group\202\323\344\223\002E\022C/compute" + + "/v1/projects/{project}/zones/{zone}/node" + + "Groups/{node_group}\022\326\001\n\014GetIamPolicy\0225.g" + + "oogle.cloud.compute.v1.GetIamPolicyNodeG" + + "roupRequest\032\037.google.cloud.compute.v1.Po" + + "licy\"n\332A\025project,zone,resource\202\323\344\223\002P\022N/c" + "ompute/v1/projects/{project}/zones/{zone" - + "}/nodeGroups/{node_group}/simulateMainte" - + "nanceEvent:7node_groups_simulate_mainten" - + "ance_event_request_resource\022\277\002\n\022TestIamP" - + "ermissions\022;.google.cloud.compute.v1.Tes" - + "tIamPermissionsNodeGroupRequest\0320.google" - + ".cloud.compute.v1.TestPermissionsRespons" - + "e\"\271\001\332A7project,zone,resource,test_permis" - + "sions_request_resource\202\323\344\223\002y\"T/compute/v" - + "1/projects/{project}/zones/{zone}/nodeGr" - + "oups/{resource}/testIamPermissions:!test" - + "_permissions_request_resource\032r\312A\026comput" - + "e.googleapis.com\322AVhttps://www.googleapi" - + "s.com/auth/compute,https://www.googleapi" - + "s.com/auth/cloud-platform2\264\020\n\rNodeTempla" - + "tes\022\315\001\n\016AggregatedList\022;.google.cloud.co" - + "mpute.v1.AggregatedListNodeTemplatesRequ" - + "est\0323.google.cloud.compute.v1.NodeTempla" - + "teAggregatedList\"I\332A\007project\202\323\344\223\0029\0227/com" - + "pute/v1/projects/{project}/aggregated/no" - + "deTemplates\022\352\001\n\006Delete\0222.google.cloud.co" - + "mpute.v1.DeleteNodeTemplateRequest\032\".goo" - + "gle.cloud.compute.v1.Operation\"\207\001\332A\034proj" - + "ect,region,node_template\212N\020RegionOperati" - + "ons\202\323\344\223\002O*M/compute/v1/projects/{project" - + "}/regions/{region}/nodeTemplates/{node_t", - "emplate}\022\323\001\n\003Get\022/.google.cloud.compute." - + "v1.GetNodeTemplateRequest\032%.google.cloud" - + ".compute.v1.NodeTemplate\"t\332A\034project,reg" - + "ion,node_template\202\323\344\223\002O\022M/compute/v1/pro" - + "jects/{project}/regions/{region}/nodeTem" - + "plates/{node_template}\022\342\001\n\014GetIamPolicy\022" - + "8.google.cloud.compute.v1.GetIamPolicyNo" - + "deTemplateRequest\032\037.google.cloud.compute" - + ".v1.Policy\"w\332A\027project,region,resource\202\323" - + "\344\223\002W\022U/compute/v1/projects/{project}/reg" - + "ions/{region}/nodeTemplates/{resource}/g" - + "etIamPolicy\022\373\001\n\006Insert\0222.google.cloud.co" - + "mpute.v1.InsertNodeTemplateRequest\032\".goo" - + "gle.cloud.compute.v1.Operation\"\230\001\332A%proj" - + "ect,region,node_template_resource\212N\020Regi" - + "onOperations\202\323\344\223\002W\"=/compute/v1/projects" - + "/{project}/regions/{region}/nodeTemplate" - + "s:\026node_template_resource\022\274\001\n\004List\0221.goo" - + "gle.cloud.compute.v1.ListNodeTemplatesRe" - + "quest\032).google.cloud.compute.v1.NodeTemp" - + "lateList\"V\332A\016project,region\202\323\344\223\002?\022=/comp" + + "}/nodeGroups/{resource}/getIamPolicy\022\372\001\n" + + "\006Insert\022/.google.cloud.compute.v1.Insert" + + "NodeGroupRequest\032\".google.cloud.compute." + + "v1.Operation\"\232\001\332A3project,zone,initial_n" + + "ode_count,node_group_resource\212N\016ZoneOper" + + "ations\202\323\344\223\002M\"6/compute/v1/projects/{proj" + + "ect}/zones/{zone}/nodeGroups:\023node_group" + + "_resource\022\255\001\n\004List\022..google.cloud.comput" + + "e.v1.ListNodeGroupsRequest\032&.google.clou" + + "d.compute.v1.NodeGroupList\"M\332A\014project,z" + + "one\202\323\344\223\0028\0226/compute/v1/projects/{project" + + "}/zones/{zone}/nodeGroups\022\337\001\n\tListNodes\022" + + "3.google.cloud.compute.v1.ListNodesNodeG" + + "roupsRequest\032,.google.cloud.compute.v1.N" + + "odeGroupsListNodes\"o\332A\027project,zone,node" + + "_group\202\323\344\223\002O\"M/compute/v1/projects/{proj" + + "ect}/zones/{zone}/nodeGroups/{node_group" + + "}/listNodes\022\375\001\n\005Patch\022..google.cloud.com" + + "pute.v1.PatchNodeGroupRequest\032\".google.c" + + "loud.compute.v1.Operation\"\237\001\332A+project,z" + + "one,node_group,node_group_resource\212N\016Zon" + + "eOperations\202\323\344\223\002Z2C/compute/v1/projects/" + + "{project}/zones/{zone}/nodeGroups/{node_" + + "group}:\023node_group_resource\022\345\002\n\022PerformM" + + "aintenance\022;.google.cloud.compute.v1.Per" + + "formMaintenanceNodeGroupRequest\032\".google" + + ".cloud.compute.v1.Operation\"\355\001\332AHproject" + + ",zone,node_group,node_groups_perform_mai" + + "ntenance_request_resource\212N\016ZoneOperatio" + + "ns\202\323\344\223\002\212\001\"V/compute/v1/projects/{project" + + "}/zones/{zone}/nodeGroups/{node_group}/p" + + "erformMaintenance:0node_groups_perform_m" + + "aintenance_request_resource\022\232\002\n\014SetIamPo" + + "licy\0225.google.cloud.compute.v1.SetIamPol" + + "icyNodeGroupRequest\032\037.google.cloud.compu" + + "te.v1.Policy\"\261\001\332A6project,zone,resource," + + "zone_set_policy_request_resource\202\323\344\223\002r\"N" + + "/compute/v1/projects/{project}/zones/{zo" + + "ne}/nodeGroups/{resource}/setIamPolicy: " + + "zone_set_policy_request_resource\022\330\002\n\017Set" + + "NodeTemplate\0228.google.cloud.compute.v1.S" + + "etNodeTemplateNodeGroupRequest\032\".google." + + "cloud.compute.v1.Operation\"\346\001\332AFproject," + + "zone,node_group,node_groups_set_node_tem" + + "plate_request_resource\212N\016ZoneOperations\202" + + "\323\344\223\002\205\001\"S/compute/v1/projects/{project}/z" + + "ones/{zone}/nodeGroups/{node_group}/setN" + + "odeTemplate:.node_groups_set_node_templa" + + "te_request_resource\022\205\003\n\030SimulateMaintena" + + "nceEvent\022A.google.cloud.compute.v1.Simul" + + "ateMaintenanceEventNodeGroupRequest\032\".go" + + "ogle.cloud.compute.v1.Operation\"\201\002\332AOpro" + + "ject,zone,node_group,node_groups_simulat" + + "e_maintenance_event_request_resource\212N\016Z" + + "oneOperations\202\323\344\223\002\227\001\"\\/compute/v1/projec" + + "ts/{project}/zones/{zone}/nodeGroups/{no", + "de_group}/simulateMaintenanceEvent:7node" + + "_groups_simulate_maintenance_event_reque" + + "st_resource\022\277\002\n\022TestIamPermissions\022;.goo" + + "gle.cloud.compute.v1.TestIamPermissionsN" + + "odeGroupRequest\0320.google.cloud.compute.v" + + "1.TestPermissionsResponse\"\271\001\332A7project,z" + + "one,resource,test_permissions_request_re" + + "source\202\323\344\223\002y\"T/compute/v1/projects/{proj" + + "ect}/zones/{zone}/nodeGroups/{resource}/" + + "testIamPermissions:!test_permissions_req" + + "uest_resource\032r\312A\026compute.googleapis.com" + + "\322AVhttps://www.googleapis.com/auth/compu" + + "te,https://www.googleapis.com/auth/cloud" + + "-platform2\264\020\n\rNodeTemplates\022\315\001\n\016Aggregat" + + "edList\022;.google.cloud.compute.v1.Aggrega" + + "tedListNodeTemplatesRequest\0323.google.clo" + + "ud.compute.v1.NodeTemplateAggregatedList" + + "\"I\332A\007project\202\323\344\223\0029\0227/compute/v1/projects" + + "/{project}/aggregated/nodeTemplates\022\352\001\n\006" + + "Delete\0222.google.cloud.compute.v1.DeleteN" + + "odeTemplateRequest\032\".google.cloud.comput" + + "e.v1.Operation\"\207\001\332A\034project,region,node_" + + "template\212N\020RegionOperations\202\323\344\223\002O*M/comp" + "ute/v1/projects/{project}/regions/{regio" - + "n}/nodeTemplates\022\252\002\n\014SetIamPolicy\0228.goog" - + "le.cloud.compute.v1.SetIamPolicyNodeTemp" - + "lateRequest\032\037.google.cloud.compute.v1.Po" - + "licy\"\276\001\332A:project,region,resource,region" - + "_set_policy_request_resource\202\323\344\223\002{\"U/com" - + "pute/v1/projects/{project}/regions/{regi" - + "on}/nodeTemplates/{resource}/setIamPolic" - + "y:\"region_set_policy_request_resource\022\314\002" - + "\n\022TestIamPermissions\022>.google.cloud.comp" - + "ute.v1.TestIamPermissionsNodeTemplateReq" - + "uest\0320.google.cloud.compute.v1.TestPermi" - + "ssionsResponse\"\303\001\332A9project,region,resou" - + "rce,test_permissions_request_resource\202\323\344" - + "\223\002\200\001\"[/compute/v1/projects/{project}/reg" - + "ions/{region}/nodeTemplates/{resource}/t" - + "estIamPermissions:!test_permissions_requ" - + "est_resource\032r\312A\026compute.googleapis.com\322" - + "AVhttps://www.googleapis.com/auth/comput" - + "e,https://www.googleapis.com/auth/cloud-" - + "platform2\337\005\n\tNodeTypes\022\301\001\n\016AggregatedLis" - + "t\0227.google.cloud.compute.v1.AggregatedLi" - + "stNodeTypesRequest\032/.google.cloud.comput" - + "e.v1.NodeTypeAggregatedList\"E\332A\007project\202" - + "\323\344\223\0025\0223/compute/v1/projects/{project}/ag" - + "gregated/nodeTypes\022\271\001\n\003Get\022+.google.clou" - + "d.compute.v1.GetNodeTypeRequest\032!.google" - + ".cloud.compute.v1.NodeType\"b\332A\026project,z" - + "one,node_type\202\323\344\223\002C\022A/compute/v1/project" - + "s/{project}/zones/{zone}/nodeTypes/{node" - + "_type}\022\252\001\n\004List\022-.google.cloud.compute.v" - + "1.ListNodeTypesRequest\032%.google.cloud.co" - + "mpute.v1.NodeTypeList\"L\332A\014project,zone\202\323" - + "\344\223\0027\0225/compute/v1/projects/{project}/zon" - + "es/{zone}/nodeTypes\032\244\001\312A\026compute.googlea" - + "pis.com\322A\207\001https://www.googleapis.com/au" - + "th/compute.readonly,https://www.googleap" - + "is.com/auth/compute,https://www.googleap" - + "is.com/auth/cloud-platform2\220\017\n\020PacketMir" - + "rorings\022\326\001\n\016AggregatedList\022>.google.clou" - + "d.compute.v1.AggregatedListPacketMirrori" - + "ngsRequest\0326.google.cloud.compute.v1.Pac" - + "ketMirroringAggregatedList\"L\332A\007project\202\323" - + "\344\223\002<\022:/compute/v1/projects/{project}/agg" - + "regated/packetMirrorings\022\366\001\n\006Delete\0225.go" - + "ogle.cloud.compute.v1.DeletePacketMirror" - + "ingRequest\032\".google.cloud.compute.v1.Ope" - + "ration\"\220\001\332A\037project,region,packet_mirror" - + "ing\212N\020RegionOperations\202\323\344\223\002U*S/compute/v" - + "1/projects/{project}/regions/{region}/pa" - + "cketMirrorings/{packet_mirroring}\022\342\001\n\003Ge" - + "t\0222.google.cloud.compute.v1.GetPacketMir" - + "roringRequest\032(.google.cloud.compute.v1." - + "PacketMirroring\"}\332A\037project,region,packe" - + "t_mirroring\202\323\344\223\002U\022S/compute/v1/projects/" - + "{project}/regions/{region}/packetMirrori" - + "ngs/{packet_mirroring}\022\207\002\n\006Insert\0225.goog" - + "le.cloud.compute.v1.InsertPacketMirrorin" - + "gRequest\032\".google.cloud.compute.v1.Opera" - + "tion\"\241\001\332A(project,region,packet_mirrorin" - + "g_resource\212N\020RegionOperations\202\323\344\223\002]\"@/co" - + "mpute/v1/projects/{project}/regions/{reg" - + "ion}/packetMirrorings:\031packet_mirroring_" - + "resource\022\305\001\n\004List\0224.google.cloud.compute" - + ".v1.ListPacketMirroringsRequest\032,.google" - + ".cloud.compute.v1.PacketMirroringList\"Y\332" - + "A\016project,region\202\323\344\223\002B\022@/compute/v1/proj" + + "n}/nodeTemplates/{node_template}\022\323\001\n\003Get" + + "\022/.google.cloud.compute.v1.GetNodeTempla" + + "teRequest\032%.google.cloud.compute.v1.Node" + + "Template\"t\332A\034project,region,node_templat" + + "e\202\323\344\223\002O\022M/compute/v1/projects/{project}/" + + "regions/{region}/nodeTemplates/{node_tem" + + "plate}\022\342\001\n\014GetIamPolicy\0228.google.cloud.c" + + "ompute.v1.GetIamPolicyNodeTemplateReques" + + "t\032\037.google.cloud.compute.v1.Policy\"w\332A\027p" + + "roject,region,resource\202\323\344\223\002W\022U/compute/v" + + "1/projects/{project}/regions/{region}/no" + + "deTemplates/{resource}/getIamPolicy\022\373\001\n\006" + + "Insert\0222.google.cloud.compute.v1.InsertN" + + "odeTemplateRequest\032\".google.cloud.comput" + + "e.v1.Operation\"\230\001\332A%project,region,node_" + + "template_resource\212N\020RegionOperations\202\323\344\223" + + "\002W\"=/compute/v1/projects/{project}/regio" + + "ns/{region}/nodeTemplates:\026node_template" + + "_resource\022\274\001\n\004List\0221.google.cloud.comput" + + "e.v1.ListNodeTemplatesRequest\032).google.c" + + "loud.compute.v1.NodeTemplateList\"V\332A\016pro" + + "ject,region\202\323\344\223\002?\022=/compute/v1/projects/" + + "{project}/regions/{region}/nodeTemplates" + + "\022\252\002\n\014SetIamPolicy\0228.google.cloud.compute" + + ".v1.SetIamPolicyNodeTemplateRequest\032\037.go" + + "ogle.cloud.compute.v1.Policy\"\276\001\332A:projec" + + "t,region,resource,region_set_policy_requ" + + "est_resource\202\323\344\223\002{\"U/compute/v1/projects" + + "/{project}/regions/{region}/nodeTemplate" + + "s/{resource}/setIamPolicy:\"region_set_po" + + "licy_request_resource\022\314\002\n\022TestIamPermiss" + + "ions\022>.google.cloud.compute.v1.TestIamPe" + + "rmissionsNodeTemplateRequest\0320.google.cl" + + "oud.compute.v1.TestPermissionsResponse\"\303" + + "\001\332A9project,region,resource,test_permiss" + + "ions_request_resource\202\323\344\223\002\200\001\"[/compute/v" + + "1/projects/{project}/regions/{region}/no" + + "deTemplates/{resource}/testIamPermission" + + "s:!test_permissions_request_resource\032r\312A" + + "\026compute.googleapis.com\322AVhttps://www.go" + + "ogleapis.com/auth/compute,https://www.go" + + "ogleapis.com/auth/cloud-platform2\337\005\n\tNod" + + "eTypes\022\301\001\n\016AggregatedList\0227.google.cloud" + + ".compute.v1.AggregatedListNodeTypesReque" + + "st\032/.google.cloud.compute.v1.NodeTypeAgg" + + "regatedList\"E\332A\007project\202\323\344\223\0025\0223/compute/" + + "v1/projects/{project}/aggregated/nodeTyp" + + "es\022\271\001\n\003Get\022+.google.cloud.compute.v1.Get" + + "NodeTypeRequest\032!.google.cloud.compute.v" + + "1.NodeType\"b\332A\026project,zone,node_type\202\323\344" + + "\223\002C\022A/compute/v1/projects/{project}/zone" + + "s/{zone}/nodeTypes/{node_type}\022\252\001\n\004List\022" + + "-.google.cloud.compute.v1.ListNodeTypesR" + + "equest\032%.google.cloud.compute.v1.NodeTyp" + + "eList\"L\332A\014project,zone\202\323\344\223\0027\0225/compute/v" + + "1/projects/{project}/zones/{zone}/nodeTy" + + "pes\032\244\001\312A\026compute.googleapis.com\322A\207\001https" + + "://www.googleapis.com/auth/compute.reado" + + "nly,https://www.googleapis.com/auth/comp" + + "ute,https://www.googleapis.com/auth/clou" + + "d-platform2\220\017\n\020PacketMirrorings\022\326\001\n\016Aggr" + + "egatedList\022>.google.cloud.compute.v1.Agg" + + "regatedListPacketMirroringsRequest\0326.goo" + + "gle.cloud.compute.v1.PacketMirroringAggr" + + "egatedList\"L\332A\007project\202\323\344\223\002<\022:/compute/v" + + "1/projects/{project}/aggregated/packetMi" + + "rrorings\022\366\001\n\006Delete\0225.google.cloud.compu" + + "te.v1.DeletePacketMirroringRequest\032\".goo" + + "gle.cloud.compute.v1.Operation\"\220\001\332A\037proj" + + "ect,region,packet_mirroring\212N\020RegionOper" + + "ations\202\323\344\223\002U*S/compute/v1/projects/{proj" + + "ect}/regions/{region}/packetMirrorings/{" + + "packet_mirroring}\022\342\001\n\003Get\0222.google.cloud" + + ".compute.v1.GetPacketMirroringRequest\032(." + + "google.cloud.compute.v1.PacketMirroring\"" + + "}\332A\037project,region,packet_mirroring\202\323\344\223\002" + + "U\022S/compute/v1/projects/{project}/region" + + "s/{region}/packetMirrorings/{packet_mirr" + + "oring}\022\207\002\n\006Insert\0225.google.cloud.compute" + + ".v1.InsertPacketMirroringRequest\032\".googl" + + "e.cloud.compute.v1.Operation\"\241\001\332A(projec" + + "t,region,packet_mirroring_resource\212N\020Reg" + + "ionOperations\202\323\344\223\002]\"@/compute/v1/project" + + "s/{project}/regions/{region}/packetMirro" + + "rings:\031packet_mirroring_resource\022\305\001\n\004Lis" + + "t\0224.google.cloud.compute.v1.ListPacketMi" + + "rroringsRequest\032,.google.cloud.compute.v" + + "1.PacketMirroringList\"Y\332A\016project,region" + + "\202\323\344\223\002B\022@/compute/v1/projects/{project}/r" + + "egions/{region}/packetMirrorings\022\251\002\n\005Pat" + + "ch\0224.google.cloud.compute.v1.PatchPacket" + + "MirroringRequest\032\".google.cloud.compute." + + "v1.Operation\"\305\001\332A9project,region,packet_" + + "mirroring,packet_mirroring_resource\212N\020Re" + + "gionOperations\202\323\344\223\002p2S/compute/v1/projec" + + "ts/{project}/regions/{region}/packetMirr" + + "orings/{packet_mirroring}:\031packet_mirror" + + "ing_resource\022\322\002\n\022TestIamPermissions\022A.go" + + "ogle.cloud.compute.v1.TestIamPermissions" + + "PacketMirroringRequest\0320.google.cloud.co" + + "mpute.v1.TestPermissionsResponse\"\306\001\332A9pr" + + "oject,region,resource,test_permissions_r" + + "equest_resource\202\323\344\223\002\203\001\"^/compute/v1/proj" + "ects/{project}/regions/{region}/packetMi" - + "rrorings\022\251\002\n\005Patch\0224.google.cloud.comput" - + "e.v1.PatchPacketMirroringRequest\032\".googl" - + "e.cloud.compute.v1.Operation\"\305\001\332A9projec" - + "t,region,packet_mirroring,packet_mirrori" - + "ng_resource\212N\020RegionOperations\202\323\344\223\002p2S/c" - + "ompute/v1/projects/{project}/regions/{re" - + "gion}/packetMirrorings/{packet_mirroring" - + "}:\031packet_mirroring_resource\022\322\002\n\022TestIam" - + "Permissions\022A.google.cloud.compute.v1.Te" - + "stIamPermissionsPacketMirroringRequest\0320" - + ".google.cloud.compute.v1.TestPermissions" - + "Response\"\306\001\332A9project,region,resource,te" - + "st_permissions_request_resource\202\323\344\223\002\203\001\"^" - + "/compute/v1/projects/{project}/regions/{" - + "region}/packetMirrorings/{resource}/test" - + "IamPermissions:!test_permissions_request" - + "_resource\032r\312A\026compute.googleapis.com\322AVh" - + "ttps://www.googleapis.com/auth/compute,h" - + "ttps://www.googleapis.com/auth/cloud-pla" - + "tform2\253\033\n\010Projects\022\277\001\n\016DisableXpnHost\0225." - + "google.cloud.compute.v1.DisableXpnHostPr" - + "ojectRequest\032\".google.cloud.compute.v1.O" - + "peration\"R\332A\007project\212N\020GlobalOperations\202" - + "\323\344\223\002/\"-/compute/v1/projects/{project}/di" - + "sableXpnHost\022\253\002\n\022DisableXpnResource\0229.go" - + "ogle.cloud.compute.v1.DisableXpnResource" - + "ProjectRequest\032\".google.cloud.compute.v1" - + ".Operation\"\265\001\332A6project,projects_disable" - + "_xpn_resource_request_resource\212N\020GlobalO" - + "perations\202\323\344\223\002c\"1/compute/v1/projects/{p" - + "roject}/disableXpnResource:.projects_dis" - + "able_xpn_resource_request_resource\022\274\001\n\rE" - + "nableXpnHost\0224.google.cloud.compute.v1.E" - + "nableXpnHostProjectRequest\032\".google.clou" - + "d.compute.v1.Operation\"Q\332A\007project\212N\020Glo" - + "balOperations\202\323\344\223\002.\",/compute/v1/project" - + "s/{project}/enableXpnHost\022\246\002\n\021EnableXpnR" - + "esource\0228.google.cloud.compute.v1.Enable" - + "XpnResourceProjectRequest\032\".google.cloud" - + ".compute.v1.Operation\"\262\001\332A5project,proje" - + "cts_enable_xpn_resource_request_resource" - + "\212N\020GlobalOperations\202\323\344\223\002a\"0/compute/v1/p" - + "rojects/{project}/enableXpnResource:-pro" - + "jects_enable_xpn_resource_request_resour" - + "ce\022\205\001\n\003Get\022*.google.cloud.compute.v1.Get" - + "ProjectRequest\032 .google.cloud.compute.v1" - + ".Project\"0\332A\007project\202\323\344\223\002 \022\036/compute/v1/" - + "projects/{project}\022\236\001\n\nGetXpnHost\0221.goog" - + "le.cloud.compute.v1.GetXpnHostProjectReq" - + "uest\032 .google.cloud.compute.v1.Project\";" - + "\332A\007project\202\323\344\223\002+\022)/compute/v1/projects/{" - + "project}/getXpnHost\022\276\001\n\017GetXpnResources\022" - + "7.google.cloud.compute.v1.GetXpnResource" - + "sProjectsRequest\0320.google.cloud.compute." - + "v1.ProjectsGetXpnResources\"@\332A\007project\202\323" - + "\344\223\0020\022./compute/v1/projects/{project}/get" - + "XpnResources\022\375\001\n\014ListXpnHosts\0224.google.c" - + "loud.compute.v1.ListXpnHostsProjectsRequ" - + "est\032$.google.cloud.compute.v1.XpnHostLis" - + "t\"\220\001\332A0project,projects_list_xpn_hosts_r" - + "equest_resource\202\323\344\223\002W\"+/compute/v1/proje" - + "cts/{project}/listXpnHosts:(projects_lis" - + "t_xpn_hosts_request_resource\022\345\001\n\010MoveDis" - + "k\022/.google.cloud.compute.v1.MoveDiskProj" - + "ectRequest\032\".google.cloud.compute.v1.Ope" - + "ration\"\203\001\332A\"project,disk_move_request_re" - + "source\212N\020GlobalOperations\202\323\344\223\002E\"\'/comput" - + "e/v1/projects/{project}/moveDisk:\032disk_m" - + "ove_request_resource\022\371\001\n\014MoveInstance\0223." - + "google.cloud.compute.v1.MoveInstanceProj" + + "rrorings/{resource}/testIamPermissions:!" + + "test_permissions_request_resource\032r\312A\026co" + + "mpute.googleapis.com\322AVhttps://www.googl" + + "eapis.com/auth/compute,https://www.googl" + + "eapis.com/auth/cloud-platform2\253\033\n\010Projec" + + "ts\022\277\001\n\016DisableXpnHost\0225.google.cloud.com" + + "pute.v1.DisableXpnHostProjectRequest\032\".g" + + "oogle.cloud.compute.v1.Operation\"R\332A\007pro" + + "ject\212N\020GlobalOperations\202\323\344\223\002/\"-/compute/" + + "v1/projects/{project}/disableXpnHost\022\253\002\n" + + "\022DisableXpnResource\0229.google.cloud.compu" + + "te.v1.DisableXpnResourceProjectRequest\032\"" + + ".google.cloud.compute.v1.Operation\"\265\001\332A6" + + "project,projects_disable_xpn_resource_re" + + "quest_resource\212N\020GlobalOperations\202\323\344\223\002c\"" + + "1/compute/v1/projects/{project}/disableX" + + "pnResource:.projects_disable_xpn_resourc" + + "e_request_resource\022\274\001\n\rEnableXpnHost\0224.g" + + "oogle.cloud.compute.v1.EnableXpnHostProj" + "ectRequest\032\".google.cloud.compute.v1.Ope" - + "ration\"\217\001\332A&project,instance_move_reques" - + "t_resource\212N\020GlobalOperations\202\323\344\223\002M\"+/co" - + "mpute/v1/projects/{project}/moveInstance" - + ":\036instance_move_request_resource\022\250\002\n\021Set" - + "CloudArmorTier\0228.google.cloud.compute.v1" - + ".SetCloudArmorTierProjectRequest\032\".googl" - + "e.cloud.compute.v1.Operation\"\264\001\332A6projec" - + "t,projects_set_cloud_armor_tier_request_" - + "resource\212N\020GlobalOperations\202\323\344\223\002b\"0/comp" - + "ute/v1/projects/{project}/setCloudArmorT" - + "ier:.projects_set_cloud_armor_tier_reque" - + "st_resource\022\206\002\n\031SetCommonInstanceMetadat" - + "a\022@.google.cloud.compute.v1.SetCommonIns" - + "tanceMetadataProjectRequest\032\".google.clo" - + "ud.compute.v1.Operation\"\202\001\332A\031project,met" - + "adata_resource\212N\020GlobalOperations\202\323\344\223\002M\"" - + "8/compute/v1/projects/{project}/setCommo" - + "nInstanceMetadata:\021metadata_resource\022\274\002\n" - + "\025SetDefaultNetworkTier\022<.google.cloud.co" - + "mpute.v1.SetDefaultNetworkTierProjectReq" - + "uest\032\".google.cloud.compute.v1.Operation" - + "\"\300\001\332A:project,projects_set_default_netwo" - + "rk_tier_request_resource\212N\020GlobalOperati" - + "ons\202\323\344\223\002j\"4/compute/v1/projects/{project" - + "}/setDefaultNetworkTier:2projects_set_de" - + "fault_network_tier_request_resource\022\221\002\n\024" - + "SetUsageExportBucket\022;.google.cloud.comp" - + "ute.v1.SetUsageExportBucketProjectReques" - + "t\032\".google.cloud.compute.v1.Operation\"\227\001" - + "\332A&project,usage_export_location_resourc" - + "e\212N\020GlobalOperations\202\323\344\223\002U\"3/compute/v1/" - + "projects/{project}/setUsageExportBucket:" - + "\036usage_export_location_resource\032r\312A\026comp" - + "ute.googleapis.com\322AVhttps://www.googlea" - + "pis.com/auth/compute,https://www.googlea" - + "pis.com/auth/cloud-platform2\356\017\n\030PublicAd" - + "vertisedPrefixes\022\222\002\n\010Announce\022?.google.c" - + "loud.compute.v1.AnnouncePublicAdvertised" - + "PrefixeRequest\032\".google.cloud.compute.v1" - + ".Operation\"\240\001\332A project,public_advertise" - + "d_prefix\212N\020GlobalOperations\202\323\344\223\002d\"b/comp" - + "ute/v1/projects/{project}/global/publicA" - + "dvertisedPrefixes/{public_advertised_pre" - + "fix}/announce\022\205\002\n\006Delete\022=.google.cloud." - + "compute.v1.DeletePublicAdvertisedPrefixe" - + "Request\032\".google.cloud.compute.v1.Operat" - + "ion\"\227\001\332A project,public_advertised_prefi" - + "x\212N\020GlobalOperations\202\323\344\223\002[*Y/compute/v1/" - + "projects/{project}/global/publicAdvertis" - + "edPrefixes/{public_advertised_prefix}\022\371\001" - + "\n\003Get\022:.google.cloud.compute.v1.GetPubli" - + "cAdvertisedPrefixeRequest\032/.google.cloud" - + ".compute.v1.PublicAdvertisedPrefix\"\204\001\332A " - + "project,public_advertised_prefix\202\323\344\223\002[\022Y" - + "/compute/v1/projects/{project}/global/pu" - + "blicAdvertisedPrefixes/{public_advertise" - + "d_prefix}\022\226\002\n\006Insert\022=.google.cloud.comp" - + "ute.v1.InsertPublicAdvertisedPrefixeRequ" - + "est\032\".google.cloud.compute.v1.Operation\"" - + "\250\001\332A)project,public_advertised_prefix_re" - + "source\212N\020GlobalOperations\202\323\344\223\002c\">/comput" - + "e/v1/projects/{project}/global/publicAdv" - + "ertisedPrefixes:!public_advertised_prefi" - + "x_resource\022\313\001\n\004List\022<.google.cloud.compu" - + "te.v1.ListPublicAdvertisedPrefixesReques" - + "t\0323.google.cloud.compute.v1.PublicAdvert" - + "isedPrefixList\"P\332A\007project\202\323\344\223\002@\022>/compu" - + "te/v1/projects/{project}/global/publicAd" - + "vertisedPrefixes\022\310\002\n\005Patch\022<.google.clou" - + "d.compute.v1.PatchPublicAdvertisedPrefix" - + "eRequest\032\".google.cloud.compute.v1.Opera" - + "tion\"\334\001\332ABproject,public_advertised_pref" - + "ix,public_advertised_prefix_resource\212N\020G" - + "lobalOperations\202\323\344\223\002~2Y/compute/v1/proje" - + "cts/{project}/global/publicAdvertisedPre" - + "fixes/{public_advertised_prefix}:!public" - + "_advertised_prefix_resource\022\222\002\n\010Withdraw" - + "\022?.google.cloud.compute.v1.WithdrawPubli" - + "cAdvertisedPrefixeRequest\032\".google.cloud" - + ".compute.v1.Operation\"\240\001\332A project,publi" - + "c_advertised_prefix\212N\020GlobalOperations\202\323" - + "\344\223\002d\"b/compute/v1/projects/{project}/glo" - + "bal/publicAdvertisedPrefixes/{public_adv" - + "ertised_prefix}/withdraw\032r\312A\026compute.goo" - + "gleapis.com\322AVhttps://www.googleapis.com" - + "/auth/compute,https://www.googleapis.com" - + "/auth/cloud-platform2\264\022\n\027PublicDelegated" - + "Prefixes\022\352\001\n\016AggregatedList\022E.google.clo" - + "ud.compute.v1.AggregatedListPublicDelega" - + "tedPrefixesRequest\032<.google.cloud.comput" - + "e.v1.PublicDelegatedPrefixAggregatedList" - + "\"S\332A\007project\202\323\344\223\002C\022A/compute/v1/projects" - + "/{project}/aggregated/publicDelegatedPre" - + "fixes\022\237\002\n\010Announce\022>.google.cloud.comput" - + "e.v1.AnnouncePublicDelegatedPrefixeReque" - + "st\032\".google.cloud.compute.v1.Operation\"\256" - + "\001\332A&project,region,public_delegated_pref" - + "ix\212N\020RegionOperations\202\323\344\223\002l\"j/compute/v1" - + "/projects/{project}/regions/{region}/pub" - + "licDelegatedPrefixes/{public_delegated_p" - + "refix}/announce\022\222\002\n\006Delete\022<.google.clou" - + "d.compute.v1.DeletePublicDelegatedPrefix" - + "eRequest\032\".google.cloud.compute.v1.Opera" - + "tion\"\245\001\332A&project,region,public_delegate" - + "d_prefix\212N\020RegionOperations\202\323\344\223\002c*a/comp" - + "ute/v1/projects/{project}/regions/{regio" - + "n}/publicDelegatedPrefixes/{public_deleg" - + "ated_prefix}\022\205\002\n\003Get\0229.google.cloud.comp" - + "ute.v1.GetPublicDelegatedPrefixeRequest\032" - + "..google.cloud.compute.v1.PublicDelegate" - + "dPrefix\"\222\001\332A&project,region,public_deleg" - + "ated_prefix\202\323\344\223\002c\022a/compute/v1/projects/" - + "{project}/regions/{region}/publicDelegat" - + "edPrefixes/{public_delegated_prefix}\022\243\002\n" - + "\006Insert\022<.google.cloud.compute.v1.Insert" - + "PublicDelegatedPrefixeRequest\032\".google.c" - + "loud.compute.v1.Operation\"\266\001\332A/project,r" - + "egion,public_delegated_prefix_resource\212N" - + "\020RegionOperations\202\323\344\223\002k\"G/compute/v1/pro" - + "jects/{project}/regions/{region}/publicD" - + "elegatedPrefixes: public_delegated_prefi" - + "x_resource\022\331\001\n\004List\022;.google.cloud.compu" - + "te.v1.ListPublicDelegatedPrefixesRequest" - + "\0322.google.cloud.compute.v1.PublicDelegat" - + "edPrefixList\"`\332A\016project,region\202\323\344\223\002I\022G/" - + "compute/v1/projects/{project}/regions/{r" - + "egion}/publicDelegatedPrefixes\022\324\002\n\005Patch" - + "\022;.google.cloud.compute.v1.PatchPublicDe" - + "legatedPrefixeRequest\032\".google.cloud.com" - + "pute.v1.Operation\"\351\001\332AGproject,region,pu" - + "blic_delegated_prefix,public_delegated_p" - + "refix_resource\212N\020RegionOperations\202\323\344\223\002\205\001" - + "2a/compute/v1/projects/{project}/regions" - + "/{region}/publicDelegatedPrefixes/{publi" - + "c_delegated_prefix}: public_delegated_pr" - + "efix_resource\022\237\002\n\010Withdraw\022>.google.clou" - + "d.compute.v1.WithdrawPublicDelegatedPref" - + "ixeRequest\032\".google.cloud.compute.v1.Ope" - + "ration\"\256\001\332A&project,region,public_delega" - + "ted_prefix\212N\020RegionOperations\202\323\344\223\002l\"j/co" - + "mpute/v1/projects/{project}/regions/{reg" - + "ion}/publicDelegatedPrefixes/{public_del" - + "egated_prefix}/withdraw\032r\312A\026compute.goog" - + "leapis.com\322AVhttps://www.googleapis.com/" - + "auth/compute,https://www.googleapis.com/" - + "auth/cloud-platform2\360\013\n\021RegionAutoscaler" - + "s\022\345\001\n\006Delete\0226.google.cloud.compute.v1.D" - + "eleteRegionAutoscalerRequest\032\".google.cl" - + "oud.compute.v1.Operation\"\177\332A\031project,reg" - + "ion,autoscaler\212N\020RegionOperations\202\323\344\223\002J*" - + "H/compute/v1/projects/{project}/regions/" - + "{region}/autoscalers/{autoscaler}\022\315\001\n\003Ge" - + "t\0223.google.cloud.compute.v1.GetRegionAut" - + "oscalerRequest\032#.google.cloud.compute.v1" - + ".Autoscaler\"l\332A\031project,region,autoscale" - + "r\202\323\344\223\002J\022H/compute/v1/projects/{project}/" - + "regions/{region}/autoscalers/{autoscaler" - + "}\022\367\001\n\006Insert\0226.google.cloud.compute.v1.I" - + "nsertRegionAutoscalerRequest\032\".google.cl" - + "oud.compute.v1.Operation\"\220\001\332A\"project,re" - + "gion,autoscaler_resource\212N\020RegionOperati" - + "ons\202\323\344\223\002R\";/compute/v1/projects/{project" - + "}/regions/{region}/autoscalers:\023autoscal" - + "er_resource\022\302\001\n\004List\0225.google.cloud.comp" - + "ute.v1.ListRegionAutoscalersRequest\032-.go" - + "ogle.cloud.compute.v1.RegionAutoscalerLi" - + "st\"T\332A\016project,region\202\323\344\223\002=\022;/compute/v1" - + "/projects/{project}/regions/{region}/aut" - + "oscalers\022\365\001\n\005Patch\0225.google.cloud.comput" - + "e.v1.PatchRegionAutoscalerRequest\032\".goog" - + "le.cloud.compute.v1.Operation\"\220\001\332A\"proje" - + "ct,region,autoscaler_resource\212N\020RegionOp" - + "erations\202\323\344\223\002R2;/compute/v1/projects/{pr" - + "oject}/regions/{region}/autoscalers:\023aut" - + "oscaler_resource\022\367\001\n\006Update\0226.google.clo" - + "ud.compute.v1.UpdateRegionAutoscalerRequ" - + "est\032\".google.cloud.compute.v1.Operation\"" - + "\220\001\332A\"project,region,autoscaler_resource\212" - + "N\020RegionOperations\202\323\344\223\002R\032;/compute/v1/pr" - + "ojects/{project}/regions/{region}/autosc" - + "alers:\023autoscaler_resource\032r\312A\026compute.g" - + "oogleapis.com\322AVhttps://www.googleapis.c" - + "om/auth/compute,https://www.googleapis.c" - + "om/auth/cloud-platform2\275\033\n\025RegionBackend" - + "Services\022\370\001\n\006Delete\022:.google.cloud.compu" - + "te.v1.DeleteRegionBackendServiceRequest\032" - + "\".google.cloud.compute.v1.Operation\"\215\001\332A" - + "\036project,region,backend_service\212N\020Region" - + "Operations\202\323\344\223\002S*Q/compute/v1/projects/{" - + "project}/regions/{region}/backendService" - + "s/{backend_service}\022\343\001\n\003Get\0227.google.clo" - + "ud.compute.v1.GetRegionBackendServiceReq" - + "uest\032\'.google.cloud.compute.v1.BackendSe" - + "rvice\"z\332A\036project,region,backend_service" - + "\202\323\344\223\002S\022Q/compute/v1/projects/{project}/r" - + "egions/{region}/backendServices/{backend" - + "_service}\022\313\002\n\tGetHealth\022=.google.cloud.c" - + "ompute.v1.GetHealthRegionBackendServiceR" - + "equest\0322.google.cloud.compute.v1.Backend" - + "ServiceGroupHealth\"\312\001\332A@project,region,b" - + "ackend_service,resource_group_reference_" - + "resource\202\323\344\223\002\200\001\"[/compute/v1/projects/{p" - + "roject}/regions/{region}/backendServices" - + "/{backend_service}/getHealth:!resource_g" - + "roup_reference_resource\022\354\001\n\014GetIamPolicy" - + "\022@.google.cloud.compute.v1.GetIamPolicyR" - + "egionBackendServiceRequest\032\037.google.clou" - + "d.compute.v1.Policy\"y\332A\027project,region,r" - + "esource\202\323\344\223\002Y\022W/compute/v1/projects/{pro" - + "ject}/regions/{region}/backendServices/{" - + "resource}/getIamPolicy\022\211\002\n\006Insert\022:.goog" - + "le.cloud.compute.v1.InsertRegionBackendS" - + "erviceRequest\032\".google.cloud.compute.v1." - + "Operation\"\236\001\332A\'project,region,backend_se" - + "rvice_resource\212N\020RegionOperations\202\323\344\223\002[\"" - + "?/compute/v1/projects/{project}/regions/" - + "{region}/backendServices:\030backend_servic" - + "e_resource\022\310\001\n\004List\0229.google.cloud.compu" - + "te.v1.ListRegionBackendServicesRequest\032+" - + ".google.cloud.compute.v1.BackendServiceL" - + "ist\"X\332A\016project,region\202\323\344\223\002A\022?/compute/v" - + "1/projects/{project}/regions/{region}/ba" - + "ckendServices\022\345\001\n\nListUsable\022?.google.cl" - + "oud.compute.v1.ListUsableRegionBackendSe" - + "rvicesRequest\0321.google.cloud.compute.v1." - + "BackendServiceListUsable\"c\332A\016project,reg" - + "ion\202\323\344\223\002L\022J/compute/v1/projects/{project" - + "}/regions/{region}/backendServices/listU" - + "sable\022\251\002\n\005Patch\0229.google.cloud.compute.v" - + "1.PatchRegionBackendServiceRequest\032\".goo" - + "gle.cloud.compute.v1.Operation\"\300\001\332A7proj" - + "ect,region,backend_service,backend_servi" - + "ce_resource\212N\020RegionOperations\202\323\344\223\002m2Q/c" - + "ompute/v1/projects/{project}/regions/{re" - + "gion}/backendServices/{backend_service}:" - + "\030backend_service_resource\022\264\002\n\014SetIamPoli" - + "cy\022@.google.cloud.compute.v1.SetIamPolic" - + "yRegionBackendServiceRequest\032\037.google.cl" - + "oud.compute.v1.Policy\"\300\001\332A:project,regio" - + "n,resource,region_set_policy_request_res", - "ource\202\323\344\223\002}\"W/compute/v1/projects/{proje" - + "ct}/regions/{region}/backendServices/{re" - + "source}/setIamPolicy:\"region_set_policy_" - + "request_resource\022\350\002\n\021SetSecurityPolicy\022E" - + ".google.cloud.compute.v1.SetSecurityPoli" - + "cyRegionBackendServiceRequest\032\".google.c" - + "loud.compute.v1.Operation\"\347\001\332AAproject,r" - + "egion,backend_service,security_policy_re" - + "ference_resource\212N\020RegionOperations\202\323\344\223\002" - + "\211\001\"c/compute/v1/projects/{project}/regio" - + "ns/{region}/backendServices/{backend_ser" - + "vice}/setSecurityPolicy:\"security_policy" - + "_reference_resource\022\326\002\n\022TestIamPermissio" - + "ns\022F.google.cloud.compute.v1.TestIamPerm" - + "issionsRegionBackendServiceRequest\0320.goo" - + "gle.cloud.compute.v1.TestPermissionsResp" - + "onse\"\305\001\332A9project,region,resource,test_p" - + "ermissions_request_resource\202\323\344\223\002\202\001\"]/com" - + "pute/v1/projects/{project}/regions/{regi" - + "on}/backendServices/{resource}/testIamPe" - + "rmissions:!test_permissions_request_reso" - + "urce\022\253\002\n\006Update\022:.google.cloud.compute.v" - + "1.UpdateRegionBackendServiceRequest\032\".go" - + "ogle.cloud.compute.v1.Operation\"\300\001\332A7pro" - + "ject,region,backend_service,backend_serv" - + "ice_resource\212N\020RegionOperations\202\323\344\223\002m\032Q/" - + "compute/v1/projects/{project}/regions/{r" - + "egion}/backendServices/{backend_service}" - + ":\030backend_service_resource\032r\312A\026compute.g" - + "oogleapis.com\322AVhttps://www.googleapis.c" - + "om/auth/compute,https://www.googleapis.c" - + "om/auth/cloud-platform2\362\t\n\021RegionCommitm" - + "ents\022\315\001\n\016AggregatedList\022?.google.cloud.c" - + "ompute.v1.AggregatedListRegionCommitment" - + "sRequest\0321.google.cloud.compute.v1.Commi" - + "tmentAggregatedList\"G\332A\007project\202\323\344\223\0027\0225/" - + "compute/v1/projects/{project}/aggregated" - + "/commitments\022\315\001\n\003Get\0223.google.cloud.comp" - + "ute.v1.GetRegionCommitmentRequest\032#.goog" - + "le.cloud.compute.v1.Commitment\"l\332A\031proje" - + "ct,region,commitment\202\323\344\223\002J\022H/compute/v1/" - + "projects/{project}/regions/{region}/comm" - + "itments/{commitment}\022\367\001\n\006Insert\0226.google" - + ".cloud.compute.v1.InsertRegionCommitment" - + "Request\032\".google.cloud.compute.v1.Operat" - + "ion\"\220\001\332A\"project,region,commitment_resou" - + "rce\212N\020RegionOperations\202\323\344\223\002R\";/compute/v" - + "1/projects/{project}/regions/{region}/co" - + "mmitments:\023commitment_resource\022\274\001\n\004List\022" - + "5.google.cloud.compute.v1.ListRegionComm" - + "itmentsRequest\032\'.google.cloud.compute.v1" - + ".CommitmentList\"T\332A\016project,region\202\323\344\223\002=" - + "\022;/compute/v1/projects/{project}/regions" - + "/{region}/commitments\022\217\002\n\006Update\0226.googl" - + "e.cloud.compute.v1.UpdateRegionCommitmen" - + "tRequest\032\".google.cloud.compute.v1.Opera" - + "tion\"\250\001\332A-project,region,commitment,comm" - + "itment_resource\212N\020RegionOperations\202\323\344\223\002_" - + "2H/compute/v1/projects/{project}/regions" - + "/{region}/commitments/{commitment}:\023comm" - + "itment_resource\032r\312A\026compute.googleapis.c" + + "ration\"Q\332A\007project\212N\020GlobalOperations\202\323\344" + + "\223\002.\",/compute/v1/projects/{project}/enab" + + "leXpnHost\022\246\002\n\021EnableXpnResource\0228.google" + + ".cloud.compute.v1.EnableXpnResourceProje" + + "ctRequest\032\".google.cloud.compute.v1.Oper" + + "ation\"\262\001\332A5project,projects_enable_xpn_r" + + "esource_request_resource\212N\020GlobalOperati" + + "ons\202\323\344\223\002a\"0/compute/v1/projects/{project" + + "}/enableXpnResource:-projects_enable_xpn" + + "_resource_request_resource\022\205\001\n\003Get\022*.goo" + + "gle.cloud.compute.v1.GetProjectRequest\032 " + + ".google.cloud.compute.v1.Project\"0\332A\007pro" + + "ject\202\323\344\223\002 \022\036/compute/v1/projects/{projec" + + "t}\022\236\001\n\nGetXpnHost\0221.google.cloud.compute" + + ".v1.GetXpnHostProjectRequest\032 .google.cl" + + "oud.compute.v1.Project\";\332A\007project\202\323\344\223\002+" + + "\022)/compute/v1/projects/{project}/getXpnH" + + "ost\022\276\001\n\017GetXpnResources\0227.google.cloud.c" + + "ompute.v1.GetXpnResourcesProjectsRequest" + + "\0320.google.cloud.compute.v1.ProjectsGetXp" + + "nResources\"@\332A\007project\202\323\344\223\0020\022./compute/v" + + "1/projects/{project}/getXpnResources\022\375\001\n" + + "\014ListXpnHosts\0224.google.cloud.compute.v1." + + "ListXpnHostsProjectsRequest\032$.google.clo" + + "ud.compute.v1.XpnHostList\"\220\001\332A0project,p" + + "rojects_list_xpn_hosts_request_resource\202" + + "\323\344\223\002W\"+/compute/v1/projects/{project}/li" + + "stXpnHosts:(projects_list_xpn_hosts_requ" + + "est_resource\022\345\001\n\010MoveDisk\022/.google.cloud" + + ".compute.v1.MoveDiskProjectRequest\032\".goo" + + "gle.cloud.compute.v1.Operation\"\203\001\332A\"proj" + + "ect,disk_move_request_resource\212N\020GlobalO" + + "perations\202\323\344\223\002E\"\'/compute/v1/projects/{p" + + "roject}/moveDisk:\032disk_move_request_reso" + + "urce\022\371\001\n\014MoveInstance\0223.google.cloud.com" + + "pute.v1.MoveInstanceProjectRequest\032\".goo" + + "gle.cloud.compute.v1.Operation\"\217\001\332A&proj" + + "ect,instance_move_request_resource\212N\020Glo" + + "balOperations\202\323\344\223\002M\"+/compute/v1/project" + + "s/{project}/moveInstance:\036instance_move_" + + "request_resource\022\250\002\n\021SetCloudArmorTier\0228" + + ".google.cloud.compute.v1.SetCloudArmorTi" + + "erProjectRequest\032\".google.cloud.compute." + + "v1.Operation\"\264\001\332A6project,projects_set_c" + + "loud_armor_tier_request_resource\212N\020Globa" + + "lOperations\202\323\344\223\002b\"0/compute/v1/projects/" + + "{project}/setCloudArmorTier:.projects_se" + + "t_cloud_armor_tier_request_resource\022\206\002\n\031" + + "SetCommonInstanceMetadata\022@.google.cloud" + + ".compute.v1.SetCommonInstanceMetadataPro" + + "jectRequest\032\".google.cloud.compute.v1.Op" + + "eration\"\202\001\332A\031project,metadata_resource\212N" + + "\020GlobalOperations\202\323\344\223\002M\"8/compute/v1/pro" + + "jects/{project}/setCommonInstanceMetadat" + + "a:\021metadata_resource\022\274\002\n\025SetDefaultNetwo" + + "rkTier\022<.google.cloud.compute.v1.SetDefa" + + "ultNetworkTierProjectRequest\032\".google.cl" + + "oud.compute.v1.Operation\"\300\001\332A:project,pr" + + "ojects_set_default_network_tier_request_" + + "resource\212N\020GlobalOperations\202\323\344\223\002j\"4/comp" + + "ute/v1/projects/{project}/setDefaultNetw" + + "orkTier:2projects_set_default_network_ti" + + "er_request_resource\022\221\002\n\024SetUsageExportBu" + + "cket\022;.google.cloud.compute.v1.SetUsageE" + + "xportBucketProjectRequest\032\".google.cloud" + + ".compute.v1.Operation\"\227\001\332A&project,usage" + + "_export_location_resource\212N\020GlobalOperat" + + "ions\202\323\344\223\002U\"3/compute/v1/projects/{projec" + + "t}/setUsageExportBucket:\036usage_export_lo" + + "cation_resource\032r\312A\026compute.googleapis.c" + "om\322AVhttps://www.googleapis.com/auth/com" + "pute,https://www.googleapis.com/auth/clo" - + "ud-platform2\277\004\n\017RegionDiskTypes\022\305\001\n\003Get\022" - + "1.google.cloud.compute.v1.GetRegionDiskT" - + "ypeRequest\032!.google.cloud.compute.v1.Dis" - + "kType\"h\332A\030project,region,disk_type\202\323\344\223\002G" - + "\022E/compute/v1/projects/{project}/regions" - + "/{region}/diskTypes/{disk_type}\022\274\001\n\004List" - + "\0223.google.cloud.compute.v1.ListRegionDis" - + "kTypesRequest\032+.google.cloud.compute.v1." - + "RegionDiskTypeList\"R\332A\016project,region\202\323\344" - + "\223\002;\0229/compute/v1/projects/{project}/regi" - + "ons/{region}/diskTypes\032\244\001\312A\026compute.goog" - + "leapis.com\322A\207\001https://www.googleapis.com" - + "/auth/compute.readonly,https://www.googl" - + "eapis.com/auth/compute,https://www.googl" - + "eapis.com/auth/cloud-platform2\217&\n\013Region" - + "Disks\022\346\002\n\023AddResourcePolicies\022=.google.c" - + "loud.compute.v1.AddResourcePoliciesRegio" - + "nDiskRequest\032\".google.cloud.compute.v1.O" - + "peration\"\353\001\332AGproject,region,disk,region" - + "_disks_add_resource_policies_request_res" - + "ource\212N\020RegionOperations\202\323\344\223\002\207\001\"P/comput" - + "e/v1/projects/{project}/regions/{region}" - + "/disks/{disk}/addResourcePolicies:3regio" - + "n_disks_add_resource_policies_request_re" - + "source\022\234\002\n\nBulkInsert\0224.google.cloud.com" - + "pute.v1.BulkInsertRegionDiskRequest\032\".go" - + "ogle.cloud.compute.v1.Operation\"\263\001\332A1pro" - + "ject,region,bulk_insert_disk_resource_re" - + "source\212N\020RegionOperations\202\323\344\223\002f\"@/comput" + + "ud-platform2\356\017\n\030PublicAdvertisedPrefixes" + + "\022\222\002\n\010Announce\022?.google.cloud.compute.v1." + + "AnnouncePublicAdvertisedPrefixeRequest\032\"" + + ".google.cloud.compute.v1.Operation\"\240\001\332A " + + "project,public_advertised_prefix\212N\020Globa" + + "lOperations\202\323\344\223\002d\"b/compute/v1/projects/" + + "{project}/global/publicAdvertisedPrefixe" + + "s/{public_advertised_prefix}/announce\022\205\002" + + "\n\006Delete\022=.google.cloud.compute.v1.Delet" + + "ePublicAdvertisedPrefixeRequest\032\".google" + + ".cloud.compute.v1.Operation\"\227\001\332A project" + + ",public_advertised_prefix\212N\020GlobalOperat" + + "ions\202\323\344\223\002[*Y/compute/v1/projects/{projec" + + "t}/global/publicAdvertisedPrefixes/{publ" + + "ic_advertised_prefix}\022\371\001\n\003Get\022:.google.c" + + "loud.compute.v1.GetPublicAdvertisedPrefi" + + "xeRequest\032/.google.cloud.compute.v1.Publ" + + "icAdvertisedPrefix\"\204\001\332A project,public_a" + + "dvertised_prefix\202\323\344\223\002[\022Y/compute/v1/proj" + + "ects/{project}/global/publicAdvertisedPr" + + "efixes/{public_advertised_prefix}\022\226\002\n\006In" + + "sert\022=.google.cloud.compute.v1.InsertPub" + + "licAdvertisedPrefixeRequest\032\".google.clo" + + "ud.compute.v1.Operation\"\250\001\332A)project,pub" + + "lic_advertised_prefix_resource\212N\020GlobalO" + + "perations\202\323\344\223\002c\">/compute/v1/projects/{p" + + "roject}/global/publicAdvertisedPrefixes:" + + "!public_advertised_prefix_resource\022\313\001\n\004L" + + "ist\022<.google.cloud.compute.v1.ListPublic" + + "AdvertisedPrefixesRequest\0323.google.cloud" + + ".compute.v1.PublicAdvertisedPrefixList\"P" + + "\332A\007project\202\323\344\223\002@\022>/compute/v1/projects/{" + + "project}/global/publicAdvertisedPrefixes" + + "\022\310\002\n\005Patch\022<.google.cloud.compute.v1.Pat" + + "chPublicAdvertisedPrefixeRequest\032\".googl" + + "e.cloud.compute.v1.Operation\"\334\001\332ABprojec" + + "t,public_advertised_prefix,public_advert" + + "ised_prefix_resource\212N\020GlobalOperations\202" + + "\323\344\223\002~2Y/compute/v1/projects/{project}/gl" + + "obal/publicAdvertisedPrefixes/{public_ad" + + "vertised_prefix}:!public_advertised_pref" + + "ix_resource\022\222\002\n\010Withdraw\022?.google.cloud." + + "compute.v1.WithdrawPublicAdvertisedPrefi" + + "xeRequest\032\".google.cloud.compute.v1.Oper" + + "ation\"\240\001\332A project,public_advertised_pre" + + "fix\212N\020GlobalOperations\202\323\344\223\002d\"b/compute/v" + + "1/projects/{project}/global/publicAdvert" + + "isedPrefixes/{public_advertised_prefix}/" + + "withdraw\032r\312A\026compute.googleapis.com\322AVht" + + "tps://www.googleapis.com/auth/compute,ht" + + "tps://www.googleapis.com/auth/cloud-plat" + + "form2\264\022\n\027PublicDelegatedPrefixes\022\352\001\n\016Agg" + + "regatedList\022E.google.cloud.compute.v1.Ag" + + "gregatedListPublicDelegatedPrefixesReque" + + "st\032<.google.cloud.compute.v1.PublicDeleg" + + "atedPrefixAggregatedList\"S\332A\007project\202\323\344\223" + + "\002C\022A/compute/v1/projects/{project}/aggre" + + "gated/publicDelegatedPrefixes\022\237\002\n\010Announ" + + "ce\022>.google.cloud.compute.v1.AnnouncePub" + + "licDelegatedPrefixeRequest\032\".google.clou" + + "d.compute.v1.Operation\"\256\001\332A&project,regi" + + "on,public_delegated_prefix\212N\020RegionOpera" + + "tions\202\323\344\223\002l\"j/compute/v1/projects/{proje" + + "ct}/regions/{region}/publicDelegatedPref" + + "ixes/{public_delegated_prefix}/announce\022" + + "\222\002\n\006Delete\022<.google.cloud.compute.v1.Del" + + "etePublicDelegatedPrefixeRequest\032\".googl" + + "e.cloud.compute.v1.Operation\"\245\001\332A&projec" + + "t,region,public_delegated_prefix\212N\020Regio" + + "nOperations\202\323\344\223\002c*a/compute/v1/projects/" + + "{project}/regions/{region}/publicDelegat" + + "edPrefixes/{public_delegated_prefix}\022\205\002\n" + + "\003Get\0229.google.cloud.compute.v1.GetPublic" + + "DelegatedPrefixeRequest\032..google.cloud.c" + + "ompute.v1.PublicDelegatedPrefix\"\222\001\332A&pro" + + "ject,region,public_delegated_prefix\202\323\344\223\002" + + "c\022a/compute/v1/projects/{project}/region" + + "s/{region}/publicDelegatedPrefixes/{publ" + + "ic_delegated_prefix}\022\243\002\n\006Insert\022<.google" + + ".cloud.compute.v1.InsertPublicDelegatedP" + + "refixeRequest\032\".google.cloud.compute.v1." + + "Operation\"\266\001\332A/project,region,public_del" + + "egated_prefix_resource\212N\020RegionOperation" + + "s\202\323\344\223\002k\"G/compute/v1/projects/{project}/" + + "regions/{region}/publicDelegatedPrefixes" + + ": public_delegated_prefix_resource\022\331\001\n\004L" + + "ist\022;.google.cloud.compute.v1.ListPublic" + + "DelegatedPrefixesRequest\0322.google.cloud." + + "compute.v1.PublicDelegatedPrefixList\"`\332A" + + "\016project,region\202\323\344\223\002I\022G/compute/v1/proje" + + "cts/{project}/regions/{region}/publicDel" + + "egatedPrefixes\022\324\002\n\005Patch\022;.google.cloud." + + "compute.v1.PatchPublicDelegatedPrefixeRe" + + "quest\032\".google.cloud.compute.v1.Operatio" + + "n\"\351\001\332AGproject,region,public_delegated_p" + + "refix,public_delegated_prefix_resource\212N" + + "\020RegionOperations\202\323\344\223\002\205\0012a/compute/v1/pr" + + "ojects/{project}/regions/{region}/public" + + "DelegatedPrefixes/{public_delegated_pref" + + "ix}: public_delegated_prefix_resource\022\237\002" + + "\n\010Withdraw\022>.google.cloud.compute.v1.Wit" + + "hdrawPublicDelegatedPrefixeRequest\032\".goo" + + "gle.cloud.compute.v1.Operation\"\256\001\332A&proj" + + "ect,region,public_delegated_prefix\212N\020Reg" + + "ionOperations\202\323\344\223\002l\"j/compute/v1/project" + + "s/{project}/regions/{region}/publicDeleg" + + "atedPrefixes/{public_delegated_prefix}/w" + + "ithdraw\032r\312A\026compute.googleapis.com\322AVhtt" + + "ps://www.googleapis.com/auth/compute,htt" + + "ps://www.googleapis.com/auth/cloud-platf" + + "orm2\360\013\n\021RegionAutoscalers\022\345\001\n\006Delete\0226.g" + + "oogle.cloud.compute.v1.DeleteRegionAutos" + + "calerRequest\032\".google.cloud.compute.v1.O" + + "peration\"\177\332A\031project,region,autoscaler\212N" + + "\020RegionOperations\202\323\344\223\002J*H/compute/v1/pro" + + "jects/{project}/regions/{region}/autosca" + + "lers/{autoscaler}\022\315\001\n\003Get\0223.google.cloud" + + ".compute.v1.GetRegionAutoscalerRequest\032#" + + ".google.cloud.compute.v1.Autoscaler\"l\332A\031" + + "project,region,autoscaler\202\323\344\223\002J\022H/comput" + "e/v1/projects/{project}/regions/{region}" - + "/disks/bulkInsert:\"bulk_insert_disk_reso" - + "urce_resource\022\222\002\n\016CreateSnapshot\0228.googl" - + "e.cloud.compute.v1.CreateSnapshotRegionD" - + "iskRequest\032\".google.cloud.compute.v1.Ope" - + "ration\"\241\001\332A%project,region,disk,snapshot" - + "_resource\212N\020RegionOperations\202\323\344\223\002`\"K/com" - + "pute/v1/projects/{project}/regions/{regi" - + "on}/disks/{disk}/createSnapshot:\021snapsho" - + "t_resource\022\315\001\n\006Delete\0220.google.cloud.com" - + "pute.v1.DeleteRegionDiskRequest\032\".google" - + ".cloud.compute.v1.Operation\"m\332A\023project," - + "region,disk\212N\020RegionOperations\202\323\344\223\002>*\022.google" - + ".cloud.compute.v1.StopAsyncReplicationRe" + + "kTypes\032\244\001\312A\026compute.googleapis.com\322A\207\001ht" + + "tps://www.googleapis.com/auth/compute.re" + + "adonly,https://www.googleapis.com/auth/c" + + "ompute,https://www.googleapis.com/auth/c" + + "loud-platform2\217&\n\013RegionDisks\022\346\002\n\023AddRes" + + "ourcePolicies\022=.google.cloud.compute.v1." + + "AddResourcePoliciesRegionDiskRequest\032\".g" + + "oogle.cloud.compute.v1.Operation\"\353\001\332AGpr" + + "oject,region,disk,region_disks_add_resou" + + "rce_policies_request_resource\212N\020RegionOp" + + "erations\202\323\344\223\002\207\001\"P/compute/v1/projects/{p" + + "roject}/regions/{region}/disks/{disk}/ad" + + "dResourcePolicies:3region_disks_add_reso" + + "urce_policies_request_resource\022\234\002\n\nBulkI" + + "nsert\0224.google.cloud.compute.v1.BulkInse" + + "rtRegionDiskRequest\032\".google.cloud.compu" + + "te.v1.Operation\"\263\001\332A1project,region,bulk" + + "_insert_disk_resource_resource\212N\020RegionO" + + "perations\202\323\344\223\002f\"@/compute/v1/projects/{p" + + "roject}/regions/{region}/disks/bulkInser" + + "t:\"bulk_insert_disk_resource_resource\022\222\002" + + "\n\016CreateSnapshot\0228.google.cloud.compute." + + "v1.CreateSnapshotRegionDiskRequest\032\".goo" + + "gle.cloud.compute.v1.Operation\"\241\001\332A%proj" + + "ect,region,disk,snapshot_resource\212N\020Regi" + + "onOperations\202\323\344\223\002`\"K/compute/v1/projects" + + "/{project}/regions/{region}/disks/{disk}" + + "/createSnapshot:\021snapshot_resource\022\315\001\n\006D" + + "elete\0220.google.cloud.compute.v1.DeleteRe" + "gionDiskRequest\032\".google.cloud.compute.v" - + "1.Operation\"\202\001\332A\023project,region,disk\212N\020R" - + "egionOperations\202\323\344\223\002S\"Q/compute/v1/proje" - + "cts/{project}/regions/{region}/disks/{di" - + "sk}/stopAsyncReplication\022\356\002\n\031StopGroupAs" - + "yncReplication\022C.google.cloud.compute.v1" - + ".StopGroupAsyncReplicationRegionDiskRequ" - + "est\032\".google.cloud.compute.v1.Operation\"" - + "\347\001\332ACproject,region,disks_stop_group_asy" - + "nc_replication_resource_resource\212N\020Regio" - + "nOperations\202\323\344\223\002\207\001\"O/compute/v1/projects" - + "/{project}/regions/{region}/disks/stopGr" - + "oupAsyncReplication:4disks_stop_group_as" - + "ync_replication_resource_resource\022\301\002\n\022Te" - + "stIamPermissions\022<.google.cloud.compute." - + "v1.TestIamPermissionsRegionDiskRequest\0320" - + ".google.cloud.compute.v1.TestPermissions" - + "Response\"\272\001\332A9project,region,resource,te" - + "st_permissions_request_resource\202\323\344\223\002x\"S/" - + "compute/v1/projects/{project}/regions/{r" - + "egion}/disks/{resource}/testIamPermissio" - + "ns:!test_permissions_request_resource\022\353\001" - + "\n\006Update\0220.google.cloud.compute.v1.Updat" - + "eRegionDiskRequest\032\".google.cloud.comput" - + "e.v1.Operation\"\212\001\332A!project,region,disk," - + "disk_resource\212N\020RegionOperations\202\323\344\223\002M2<" + + "1.Operation\"m\332A\023project,region,disk\212N\020Re" + + "gionOperations\202\323\344\223\002>*\022<" + "/compute/v1/projects/{project}/regions/{" - + "region}/disks/{disk}:\rdisk_resource\032r\312A\026" - + "compute.googleapis.com\322AVhttps://www.goo" - + "gleapis.com/auth/compute,https://www.goo" - + "gleapis.com/auth/cloud-platform2\327\013\n\031Regi" - + "onHealthCheckServices\022\212\002\n\006Delete\022>.googl" - + "e.cloud.compute.v1.DeleteRegionHealthChe" - + "ckServiceRequest\032\".google.cloud.compute." - + "v1.Operation\"\233\001\332A#project,region,health_" - + "check_service\212N\020RegionOperations\202\323\344\223\002\\*Z" - + "/compute/v1/projects/{project}/regions/{" - + "region}/healthCheckServices/{health_chec" - + "k_service}\022\372\001\n\003Get\022;.google.cloud.comput" - + "e.v1.GetRegionHealthCheckServiceRequest\032" - + "+.google.cloud.compute.v1.HealthCheckSer" - + "vice\"\210\001\332A#project,region,health_check_se" - + "rvice\202\323\344\223\002\\\022Z/compute/v1/projects/{proje" - + "ct}/regions/{region}/healthCheckServices" - + "/{health_check_service}\022\233\002\n\006Insert\022>.goo" - + "gle.cloud.compute.v1.InsertRegionHealthC" - + "heckServiceRequest\032\".google.cloud.comput" - + "e.v1.Operation\"\254\001\332A,project,region,healt" - + "h_check_service_resource\212N\020RegionOperati" - + "ons\202\323\344\223\002d\"C/compute/v1/projects/{project" - + "}/regions/{region}/healthCheckServices:\035" - + "health_check_service_resource\022\325\001\n\004List\022=" - + ".google.cloud.compute.v1.ListRegionHealt" - + "hCheckServicesRequest\0320.google.cloud.com" - + "pute.v1.HealthCheckServicesList\"\\\332A\016proj" - + "ect,region\202\323\344\223\002E\022C/compute/v1/projects/{" - + "project}/regions/{region}/healthCheckSer" - + "vices\022\305\002\n\005Patch\022=.google.cloud.compute.v" - + "1.PatchRegionHealthCheckServiceRequest\032\"" - + ".google.cloud.compute.v1.Operation\"\330\001\332AA" - + "project,region,health_check_service,heal" - + "th_check_service_resource\212N\020RegionOperat" - + "ions\202\323\344\223\002{2Z/compute/v1/projects/{projec" - + "t}/regions/{region}/healthCheckServices/" - + "{health_check_service}:\035health_check_ser" - + "vice_resource\032r\312A\026compute.googleapis.com" - + "\322AVhttps://www.googleapis.com/auth/compu" - + "te,https://www.googleapis.com/auth/cloud" - + "-platform2\306\014\n\022RegionHealthChecks\022\354\001\n\006Del" - + "ete\0227.google.cloud.compute.v1.DeleteRegi" - + "onHealthCheckRequest\032\".google.cloud.comp" - + "ute.v1.Operation\"\204\001\332A\033project,region,hea" - + "lth_check\212N\020RegionOperations\202\323\344\223\002M*K/com" + + "region}/disks/{disk}\022\330\001\n\014GetIamPolicy\0226." + + "google.cloud.compute.v1.GetIamPolicyRegi" + + "onDiskRequest\032\037.google.cloud.compute.v1." + + "Policy\"o\332A\027project,region,resource\202\323\344\223\002O" + + "\022M/compute/v1/projects/{project}/regions" + + "/{region}/disks/{resource}/getIamPolicy\022" + + "\336\001\n\006Insert\0220.google.cloud.compute.v1.Ins" + + "ertRegionDiskRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"~\332A\034project,region,disk" + + "_resource\212N\020RegionOperations\202\323\344\223\002F\"5/com" + "pute/v1/projects/{project}/regions/{regi" - + "on}/healthChecks/{health_check}\022\324\001\n\003Get\022" - + "4.google.cloud.compute.v1.GetRegionHealt" - + "hCheckRequest\032$.google.cloud.compute.v1." - + "HealthCheck\"q\332A\033project,region,health_ch" - + "eck\202\323\344\223\002M\022K/compute/v1/projects/{project" - + "}/regions/{region}/healthChecks/{health_" - + "check}\022\375\001\n\006Insert\0227.google.cloud.compute" - + ".v1.InsertRegionHealthCheckRequest\032\".goo" - + "gle.cloud.compute.v1.Operation\"\225\001\332A$proj" - + "ect,region,health_check_resource\212N\020Regio" - + "nOperations\202\323\344\223\002U\"\022.google.cloud.compute.v" + + "1.StopAsyncReplicationRegionDiskRequest\032" + + "\".google.cloud.compute.v1.Operation\"\202\001\332A" + + "\023project,region,disk\212N\020RegionOperations\202" + + "\323\344\223\002S\"Q/compute/v1/projects/{project}/re" + + "gions/{region}/disks/{disk}/stopAsyncRep" + + "lication\022\356\002\n\031StopGroupAsyncReplication\022C" + + ".google.cloud.compute.v1.StopGroupAsyncR" + + "eplicationRegionDiskRequest\032\".google.clo" + + "ud.compute.v1.Operation\"\347\001\332ACproject,reg" + + "ion,disks_stop_group_async_replication_r" + + "esource_resource\212N\020RegionOperations\202\323\344\223\002" + + "\207\001\"O/compute/v1/projects/{project}/regio" + + "ns/{region}/disks/stopGroupAsyncReplicat" + + "ion:4disks_stop_group_async_replication_" + + "resource_resource\022\301\002\n\022TestIamPermissions" + + "\022<.google.cloud.compute.v1.TestIamPermis" + + "sionsRegionDiskRequest\0320.google.cloud.co" + + "mpute.v1.TestPermissionsResponse\"\272\001\332A9pr" + + "oject,region,resource,test_permissions_r" + + "equest_resource\202\323\344\223\002x\"S/compute/v1/proje" + + "cts/{project}/regions/{region}/disks/{re" + + "source}/testIamPermissions:!test_permiss" + + "ions_request_resource\022\353\001\n\006Update\0220.googl" + + "e.cloud.compute.v1.UpdateRegionDiskReque" + + "st\032\".google.cloud.compute.v1.Operation\"\212" + + "\001\332A!project,region,disk,disk_resource\212N\020" + + "RegionOperations\202\323\344\223\002M2.google.cloud.compute." + + "v1.DeleteRegionHealthCheckServiceRequest" + + "\032\".google.cloud.compute.v1.Operation\"\233\001\332" + + "A#project,region,health_check_service\212N\020" + + "RegionOperations\202\323\344\223\002\\*Z/compute/v1/proj" + + "ects/{project}/regions/{region}/healthCh" + + "eckServices/{health_check_service}\022\372\001\n\003G" + + "et\022;.google.cloud.compute.v1.GetRegionHe" + + "althCheckServiceRequest\032+.google.cloud.c" + + "ompute.v1.HealthCheckService\"\210\001\332A#projec" + + "t,region,health_check_service\202\323\344\223\002\\\022Z/co" + + "mpute/v1/projects/{project}/regions/{reg" + + "ion}/healthCheckServices/{health_check_s" + + "ervice}\022\233\002\n\006Insert\022>.google.cloud.comput" + + "e.v1.InsertRegionHealthCheckServiceReque" + + "st\032\".google.cloud.compute.v1.Operation\"\254" + + "\001\332A,project,region,health_check_service_" + + "resource\212N\020RegionOperations\202\323\344\223\002d\"C/comp" + + "ute/v1/projects/{project}/regions/{regio" + + "n}/healthCheckServices:\035health_check_ser" + + "vice_resource\022\325\001\n\004List\022=.google.cloud.co" + + "mpute.v1.ListRegionHealthCheckServicesRe" + + "quest\0320.google.cloud.compute.v1.HealthCh" + + "eckServicesList\"\\\332A\016project,region\202\323\344\223\002E" + + "\022C/compute/v1/projects/{project}/regions" + + "/{region}/healthCheckServices\022\305\002\n\005Patch\022" + + "=.google.cloud.compute.v1.PatchRegionHea" + + "lthCheckServiceRequest\032\".google.cloud.co" + + "mpute.v1.Operation\"\330\001\332AAproject,region,h" + + "ealth_check_service,health_check_service" + + "_resource\212N\020RegionOperations\202\323\344\223\002{2Z/com" + "pute/v1/projects/{project}/regions/{regi" - + "on}/healthChecks\022\227\002\n\005Patch\0226.google.clou" - + "d.compute.v1.PatchRegionHealthCheckReque" - + "st\032\".google.cloud.compute.v1.Operation\"\261" - + "\001\332A1project,region,health_check,health_c" - + "heck_resource\212N\020RegionOperations\202\323\344\223\002d2K" - + "/compute/v1/projects/{project}/regions/{" - + "region}/healthChecks/{health_check}:\025hea" - + "lth_check_resource\022\231\002\n\006Update\0227.google.c" - + "loud.compute.v1.UpdateRegionHealthCheckR" - + "equest\032\".google.cloud.compute.v1.Operati" - + "on\"\261\001\332A1project,region,health_check,heal" - + "th_check_resource\212N\020RegionOperations\202\323\344\223" - + "\002d\032K/compute/v1/projects/{project}/regio" - + "ns/{region}/healthChecks/{health_check}:" - + "\025health_check_resource\032r\312A\026compute.googl" - + "eapis.com\322AVhttps://www.googleapis.com/a" - + "uth/compute,https://www.googleapis.com/a" - + "uth/cloud-platform2\264G\n\033RegionInstanceGro" - + "upManagers\022\275\003\n\020AbandonInstances\022J.google" - + ".cloud.compute.v1.AbandonInstancesRegion" - + "InstanceGroupManagerRequest\032\".google.clo" - + "ud.compute.v1.Operation\"\270\002\332Agproject,reg" - + "ion,instance_group_manager,region_instan" - + "ce_group_managers_abandon_instances_requ" - + "est_resource\212N\020RegionOperations\202\323\344\223\002\264\001\"o" - + "/compute/v1/projects/{project}/regions/{" - + "region}/instanceGroupManagers/{instance_" - + "group_manager}/abandonInstances:Aregion_" - + "instance_group_managers_abandon_instance" - + "s_request_resource\022\312\003\n\027ApplyUpdatesToIns" - + "tances\022Q.google.cloud.compute.v1.ApplyUp" - + "datesToInstancesRegionInstanceGroupManag" - + "erRequest\032\".google.cloud.compute.v1.Oper" - + "ation\"\267\002\332Acproject,region,instance_group" - + "_manager,region_instance_group_managers_" - + "apply_updates_request_resource\212N\020RegionO" - + "perations\202\323\344\223\002\267\001\"v/compute/v1/projects/{" - + "project}/regions/{region}/instanceGroupM" - + "anagers/{instance_group_manager}/applyUp" - + "datesToInstances:=region_instance_group_" - + "managers_apply_updates_request_resource\022" - + "\270\003\n\017CreateInstances\022I.google.cloud.compu" - + "te.v1.CreateInstancesRegionInstanceGroup" - + "ManagerRequest\032\".google.cloud.compute.v1" - + ".Operation\"\265\002\332Afproject,region,instance_" - + "group_manager,region_instance_group_mana" - + "gers_create_instances_request_resource\212N" - + "\020RegionOperations\202\323\344\223\002\262\001\"n/compute/v1/pr" - + "ojects/{project}/regions/{region}/instan" - + "ceGroupManagers/{instance_group_manager}" - + "/createInstances:@region_instance_group_" - + "managers_create_instances_request_resour" - + "ce\022\222\002\n\006Delete\022@.google.cloud.compute.v1." - + "DeleteRegionInstanceGroupManagerRequest\032" - + "\".google.cloud.compute.v1.Operation\"\241\001\332A" - + "%project,region,instance_group_manager\212N" - + "\020RegionOperations\202\323\344\223\002`*^/compute/v1/pro" - + "jects/{project}/regions/{region}/instanc" - + "eGroupManagers/{instance_group_manager}\022" - + "\270\003\n\017DeleteInstances\022I.google.cloud.compu" - + "te.v1.DeleteInstancesRegionInstanceGroup" - + "ManagerRequest\032\".google.cloud.compute.v1" - + ".Operation\"\265\002\332Afproject,region,instance_" - + "group_manager,region_instance_group_mana" - + "gers_delete_instances_request_resource\212N" - + "\020RegionOperations\202\323\344\223\002\262\001\"n/compute/v1/pr" - + "ojects/{project}/regions/{region}/instan" - + "ceGroupManagers/{instance_group_manager}" - + "/deleteInstances:@region_instance_group_" - + "managers_delete_instances_request_resour" - + "ce\022\325\003\n\030DeletePerInstanceConfigs\022R.google" - + ".cloud.compute.v1.DeletePerInstanceConfi" - + "gsRegionInstanceGroupManagerRequest\032\".go" - + "ogle.cloud.compute.v1.Operation\"\300\002\332Agpro" - + "ject,region,instance_group_manager,regio" - + "n_instance_group_manager_delete_instance" - + "_config_req_resource\212N\020RegionOperations\202" - + "\323\344\223\002\274\001\"w/compute/v1/projects/{project}/r" - + "egions/{region}/instanceGroupManagers/{i" - + "nstance_group_manager}/deletePerInstance" - + "Configs:Aregion_instance_group_manager_d" - + "elete_instance_config_req_resource\022\204\002\n\003G" - + "et\022=.google.cloud.compute.v1.GetRegionIn" - + "stanceGroupManagerRequest\032-.google.cloud" - + ".compute.v1.InstanceGroupManager\"\216\001\332A%pr" - + "oject,region,instance_group_manager\202\323\344\223\002" - + "`\022^/compute/v1/projects/{project}/region" - + "s/{region}/instanceGroupManagers/{instan" - + "ce_group_manager}\022\243\002\n\006Insert\022@.google.cl" - + "oud.compute.v1.InsertRegionInstanceGroup" - + "ManagerRequest\032\".google.cloud.compute.v1" - + ".Operation\"\262\001\332A.project,region,instance_" - + "group_manager_resource\212N\020RegionOperation" - + "s\202\323\344\223\002h\"E/compute/v1/projects/{project}/" - + "regions/{region}/instanceGroupManagers:\037" - + "instance_group_manager_resource\022\340\001\n\004List" - + "\022?.google.cloud.compute.v1.ListRegionIns" - + "tanceGroupManagersRequest\0327.google.cloud" - + ".compute.v1.RegionInstanceGroupManagerLi" - + "st\"^\332A\016project,region\202\323\344\223\002G\022E/compute/v1" - + "/projects/{project}/regions/{region}/ins" - + "tanceGroupManagers\022\267\002\n\nListErrors\022E.goog" - + "le.cloud.compute.v1.ListErrorsRegionInst" - + "anceGroupManagersRequest\032F.google.cloud." - + "compute.v1.RegionInstanceGroupManagersLi" - + "stErrorsResponse\"\231\001\332A%project,region,ins" - + "tance_group_manager\202\323\344\223\002k\022i/compute/v1/p" + + "on}/healthCheckServices/{health_check_se" + + "rvice}:\035health_check_service_resource\032r\312" + + "A\026compute.googleapis.com\322AVhttps://www.g" + + "oogleapis.com/auth/compute,https://www.g" + + "oogleapis.com/auth/cloud-platform2\306\014\n\022Re" + + "gionHealthChecks\022\354\001\n\006Delete\0227.google.clo" + + "ud.compute.v1.DeleteRegionHealthCheckReq" + + "uest\032\".google.cloud.compute.v1.Operation" + + "\"\204\001\332A\033project,region,health_check\212N\020Regi" + + "onOperations\202\323\344\223\002M*K/compute/v1/projects" + + "/{project}/regions/{region}/healthChecks" + + "/{health_check}\022\324\001\n\003Get\0224.google.cloud.c" + + "ompute.v1.GetRegionHealthCheckRequest\032$." + + "google.cloud.compute.v1.HealthCheck\"q\332A\033" + + "project,region,health_check\202\323\344\223\002M\022K/comp" + + "ute/v1/projects/{project}/regions/{regio" + + "n}/healthChecks/{health_check}\022\375\001\n\006Inser" + + "t\0227.google.cloud.compute.v1.InsertRegion" + + "HealthCheckRequest\032\".google.cloud.comput" + + "e.v1.Operation\"\225\001\332A$project,region,healt" + + "h_check_resource\212N\020RegionOperations\202\323\344\223\002" + + "U\"\022region_instance_group_managers_st" + + "op_instances_request_resource\022\275\003\n\020Suspen" + + "dInstances\022J.google.cloud.compute.v1.Sus" + + "pendInstancesRegionInstanceGroupManagerR" + + "equest\032\".google.cloud.compute.v1.Operati" + + "on\"\270\002\332Agproject,region,instance_group_ma" + + "nager,region_instance_group_managers_sus" + + "pend_instances_request_resource\212N\020Region" + + "Operations\202\323\344\223\002\264\001\"o/compute/v1/projects/" + + "{project}/regions/{region}/instanceGroup" + + "Managers/{instance_group_manager}/suspen" + + "dInstances:Aregion_instance_group_manage" + + "rs_suspend_instances_request_resource\022\325\003" + + "\n\030UpdatePerInstanceConfigs\022R.google.clou" + + "d.compute.v1.UpdatePerInstanceConfigsReg" + "ionInstanceGroupManagerRequest\032\".google." - + "cloud.compute.v1.Operation\"\261\002\332Abproject," + + "cloud.compute.v1.Operation\"\300\002\332Agproject," + "region,instance_group_manager,region_ins" - + "tance_group_managers_set_template_reques" - + "t_resource\212N\020RegionOperations\202\323\344\223\002\262\001\"r/c" - + "ompute/v1/projects/{project}/regions/{re" - + "gion}/instanceGroupManagers/{instance_gr" - + "oup_manager}/setInstanceTemplate:/compute/v1/projects/" + + "{project}/regions/{region}/instanceGroup" + + "s\022\206\003\n\rListInstances\022A.google.cloud.compu" + + "te.v1.ListInstancesRegionInstanceGroupsR" + + "equest\032:.google.cloud.compute.v1.RegionI" + + "nstanceGroupsListInstances\"\365\001\332ATproject," + + "region,instance_group,region_instance_gr" + + "oups_list_instances_request_resource\202\323\344\223" + + "\002\227\001\"]/compute/v1/projects/{project}/regi" + + "ons/{region}/instanceGroups/{instance_gr" + + "oup}/listInstances:6region_instance_grou" + + "ps_list_instances_request_resource\022\202\003\n\rS" + + "etNamedPorts\022@.google.cloud.compute.v1.S" + + "etNamedPortsRegionInstanceGroupRequest\032\"" + + ".google.cloud.compute.v1.Operation\"\212\002\332AU" + + "project,region,instance_group,region_ins" + + "tance_groups_set_named_ports_request_res" + + "ource\212N\020RegionOperations\202\323\344\223\002\230\001\"]/comput" + "e/v1/projects/{project}/regions/{region}" - + "/instanceGroupManagers/{instance_group_m" - + "anager}/stopInstances:>region_instance_g" - + "roup_managers_stop_instances_request_res" - + "ource\022\275\003\n\020SuspendInstances\022J.google.clou" - + "d.compute.v1.SuspendInstancesRegionInsta" - + "nceGroupManagerRequest\032\".google.cloud.co" - + "mpute.v1.Operation\"\270\002\332Agproject,region,i" - + "nstance_group_manager,region_instance_gr" - + "oup_managers_suspend_instances_request_r" - + "esource\212N\020RegionOperations\202\323\344\223\002\264\001\"o/comp" - + "ute/v1/projects/{project}/regions/{regio" - + "n}/instanceGroupManagers/{instance_group" - + "_manager}/suspendInstances:Aregion_insta" - + "nce_group_managers_suspend_instances_req" - + "uest_resource\022\325\003\n\030UpdatePerInstanceConfi" - + "gs\022R.google.cloud.compute.v1.UpdatePerIn" - + "stanceConfigsRegionInstanceGroupManagerR" + + "/instanceGroups/{instance_group}/setName" + + "dPorts:7region_instance_groups_set_named" + + "_ports_request_resource\032r\312A\026compute.goog" + + "leapis.com\322AVhttps://www.googleapis.com/" + + "auth/compute,https://www.googleapis.com/" + + "auth/cloud-platform2\346\010\n\027RegionInstanceTe" + + "mplates\022\200\002\n\006Delete\022<.google.cloud.comput" + + "e.v1.DeleteRegionInstanceTemplateRequest" + + "\032\".google.cloud.compute.v1.Operation\"\223\001\332" + + "A project,region,instance_template\212N\020Reg" + + "ionOperations\202\323\344\223\002W*U/compute/v1/project" + + "s/{project}/regions/{region}/instanceTem" + + "plates/{instance_template}\022\356\001\n\003Get\0229.goo" + + "gle.cloud.compute.v1.GetRegionInstanceTe" + + "mplateRequest\032).google.cloud.compute.v1." + + "InstanceTemplate\"\200\001\332A project,region,ins" + + "tance_template\202\323\344\223\002W\022U/compute/v1/projec" + + "ts/{project}/regions/{region}/instanceTe" + + "mplates/{instance_template}\022\221\002\n\006Insert\022<" + + ".google.cloud.compute.v1.InsertRegionIns" + + "tanceTemplateRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"\244\001\332A)project,region,ins" + + "tance_template_resource\212N\020RegionOperatio" + + "ns\202\323\344\223\002_\"A/compute/v1/projects/{project}" + + "/regions/{region}/instanceTemplates:\032ins" + + "tance_template_resource\022\316\001\n\004List\022;.googl" + + "e.cloud.compute.v1.ListRegionInstanceTem" + + "platesRequest\032-.google.cloud.compute.v1." + + "InstanceTemplateList\"Z\332A\016project,region\202" + + "\323\344\223\002C\022A/compute/v1/projects/{project}/re" + + "gions/{region}/instanceTemplates\032r\312A\026com" + + "pute.googleapis.com\322AVhttps://www.google" + + "apis.com/auth/compute,https://www.google" + + "apis.com/auth/cloud-platform2\264\003\n\017RegionI" + + "nstances\022\254\002\n\nBulkInsert\0228.google.cloud.c" + + "ompute.v1.BulkInsertRegionInstanceReques" + + "t\032\".google.cloud.compute.v1.Operation\"\277\001" + + "\332A5project,region,bulk_insert_instance_r" + + "esource_resource\212N\020RegionOperations\202\323\344\223\002" + + "n\"D/compute/v1/projects/{project}/region" + + "s/{region}/instances/bulkInsert:&bulk_in" + + "sert_instance_resource_resource\032r\312A\026comp" + + "ute.googleapis.com\322AVhttps://www.googlea" + + "pis.com/auth/compute,https://www.googlea" + + "pis.com/auth/cloud-platform2\237\022\n\026RegionIn" + + "stantSnapshots\022\374\001\n\006Delete\022;.google.cloud" + + ".compute.v1.DeleteRegionInstantSnapshotR" + "equest\032\".google.cloud.compute.v1.Operati" - + "on\"\300\002\332Agproject,region,instance_group_ma" - + "nager,region_instance_group_manager_upda" - + "te_instance_config_req_resource\212N\020Region" - + "Operations\202\323\344\223\002\274\001\"w/compute/v1/projects/" - + "{project}/regions/{region}/instanceGroup" - + "Managers/{instance_group_manager}/update" - + "PerInstanceConfigs:Aregion_instance_grou" - + "p_manager_update_instance_config_req_res" - + "ource\032r\312A\026compute.googleapis.com\322AVhttps" - + "://www.googleapis.com/auth/compute,https" - + "://www.googleapis.com/auth/cloud-platfor" - + "m2\307\n\n\024RegionInstanceGroups\022\336\001\n\003Get\0226.goo" - + "gle.cloud.compute.v1.GetRegionInstanceGr" - + "oupRequest\032&.google.cloud.compute.v1.Ins" - + "tanceGroup\"w\332A\035project,region,instance_g" - + "roup\202\323\344\223\002Q\022O/compute/v1/projects/{projec" - + "t}/regions/{region}/instanceGroups/{inst" - + "ance_group}\022\313\001\n\004List\0228.google.cloud.comp" - + "ute.v1.ListRegionInstanceGroupsRequest\0320" - + ".google.cloud.compute.v1.RegionInstanceG" - + "roupList\"W\332A\016project,region\202\323\344\223\002@\022>/comp" - + "ute/v1/projects/{project}/regions/{regio" - + "n}/instanceGroups\022\206\003\n\rListInstances\022A.go" - + "ogle.cloud.compute.v1.ListInstancesRegio" - + "nInstanceGroupsRequest\032:.google.cloud.co" - + "mpute.v1.RegionInstanceGroupsListInstanc" - + "es\"\365\001\332ATproject,region,instance_group,re" - + "gion_instance_groups_list_instances_requ" - + "est_resource\202\323\344\223\002\227\001\"]/compute/v1/project" - + "s/{project}/regions/{region}/instanceGro" - + "ups/{instance_group}/listInstances:6regi" - + "on_instance_groups_list_instances_reques" - + "t_resource\022\202\003\n\rSetNamedPorts\022@.google.cl" - + "oud.compute.v1.SetNamedPortsRegionInstan" - + "ceGroupRequest\032\".google.cloud.compute.v1" - + ".Operation\"\212\002\332AUproject,region,instance_" - + "group,region_instance_groups_set_named_p" - + "orts_request_resource\212N\020RegionOperations" - + "\202\323\344\223\002\230\001\"]/compute/v1/projects/{project}/" - + "regions/{region}/instanceGroups/{instanc" - + "e_group}/setNamedPorts:7region_instance_" - + "groups_set_named_ports_request_resource\032" - + "r\312A\026compute.googleapis.com\322AVhttps://www" - + ".googleapis.com/auth/compute,https://www" - + ".googleapis.com/auth/cloud-platform2\346\010\n\027" - + "RegionInstanceTemplates\022\200\002\n\006Delete\022<.goo" - + "gle.cloud.compute.v1.DeleteRegionInstanc" - + "eTemplateRequest\032\".google.cloud.compute." - + "v1.Operation\"\223\001\332A project,region,instanc" - + "e_template\212N\020RegionOperations\202\323\344\223\002W*U/co" - + "mpute/v1/projects/{project}/regions/{reg" - + "ion}/instanceTemplates/{instance_templat" - + "e}\022\356\001\n\003Get\0229.google.cloud.compute.v1.Get" - + "RegionInstanceTemplateRequest\032).google.c" - + "loud.compute.v1.InstanceTemplate\"\200\001\332A pr" - + "oject,region,instance_template\202\323\344\223\002W\022U/c" - + "ompute/v1/projects/{project}/regions/{re" - + "gion}/instanceTemplates/{instance_templa" - + "te}\022\221\002\n\006Insert\022<.google.cloud.compute.v1" - + ".InsertRegionInstanceTemplateRequest\032\".g" - + "oogle.cloud.compute.v1.Operation\"\244\001\332A)pr" - + "oject,region,instance_template_resource\212" - + "N\020RegionOperations\202\323\344\223\002_\"A/compute/v1/pr" + + "on\"\220\001\332A\037project,region,instant_snapshot\212" + + "N\020RegionOperations\202\323\344\223\002U*S/compute/v1/pr" + "ojects/{project}/regions/{region}/instan" - + "ceTemplates:\032instance_template_resource\022" - + "\316\001\n\004List\022;.google.cloud.compute.v1.ListR" - + "egionInstanceTemplatesRequest\032-.google.c" - + "loud.compute.v1.InstanceTemplateList\"Z\332A" - + "\016project,region\202\323\344\223\002C\022A/compute/v1/proje" - + "cts/{project}/regions/{region}/instanceT" - + "emplates\032r\312A\026compute.googleapis.com\322AVht" - + "tps://www.googleapis.com/auth/compute,ht" - + "tps://www.googleapis.com/auth/cloud-plat" - + "form2\264\003\n\017RegionInstances\022\254\002\n\nBulkInsert\022" - + "8.google.cloud.compute.v1.BulkInsertRegi" - + "onInstanceRequest\032\".google.cloud.compute" - + ".v1.Operation\"\277\001\332A5project,region,bulk_i" - + "nsert_instance_resource_resource\212N\020Regio" - + "nOperations\202\323\344\223\002n\"D/compute/v1/projects/" - + "{project}/regions/{region}/instances/bul" - + "kInsert:&bulk_insert_instance_resource_r" - + "esource\032r\312A\026compute.googleapis.com\322AVhtt" - + "ps://www.googleapis.com/auth/compute,htt" - + "ps://www.googleapis.com/auth/cloud-platf" - + "orm2\237\022\n\026RegionInstantSnapshots\022\374\001\n\006Delet" - + "e\022;.google.cloud.compute.v1.DeleteRegion" - + "InstantSnapshotRequest\032\".google.cloud.co" - + "mpute.v1.Operation\"\220\001\332A\037project,region,i" - + "nstant_snapshot\212N\020RegionOperations\202\323\344\223\002U" - + "*S/compute/v1/projects/{project}/regions" - + "/{region}/instantSnapshots/{instant_snap" - + "shot}\022\350\001\n\003Get\0228.google.cloud.compute.v1." - + "GetRegionInstantSnapshotRequest\032(.google" - + ".cloud.compute.v1.InstantSnapshot\"}\332A\037pr" - + "oject,region,instant_snapshot\202\323\344\223\002U\022S/co" - + "mpute/v1/projects/{project}/regions/{reg" - + "ion}/instantSnapshots/{instant_snapshot}" - + "\022\356\001\n\014GetIamPolicy\022A.google.cloud.compute" - + ".v1.GetIamPolicyRegionInstantSnapshotReq" - + "uest\032\037.google.cloud.compute.v1.Policy\"z\332" - + "A\027project,region,resource\202\323\344\223\002Z\022X/comput" - + "e/v1/projects/{project}/regions/{region}" - + "/instantSnapshots/{resource}/getIamPolic" - + "y\022\215\002\n\006Insert\022;.google.cloud.compute.v1.I" - + "nsertRegionInstantSnapshotRequest\032\".goog" - + "le.cloud.compute.v1.Operation\"\241\001\332A(proje" - + "ct,region,instant_snapshot_resource\212N\020Re" - + "gionOperations\202\323\344\223\002]\"@/compute/v1/projec" - + "ts/{project}/regions/{region}/instantSna" - + "pshots:\031instant_snapshot_resource\022\313\001\n\004Li" - + "st\022:.google.cloud.compute.v1.ListRegionI" - + "nstantSnapshotsRequest\032,.google.cloud.co" - + "mpute.v1.InstantSnapshotList\"Y\332A\016project" - + ",region\202\323\344\223\002B\022@/compute/v1/projects/{pro" - + "ject}/regions/{region}/instantSnapshots\022" - + "\266\002\n\014SetIamPolicy\022A.google.cloud.compute." - + "v1.SetIamPolicyRegionInstantSnapshotRequ" - + "est\032\037.google.cloud.compute.v1.Policy\"\301\001\332" - + "A:project,region,resource,region_set_pol" - + "icy_request_resource\202\323\344\223\002~\"X/compute/v1/" - + "projects/{project}/regions/{region}/inst" - + "antSnapshots/{resource}/setIamPolicy:\"re" - + "gion_set_policy_request_resource\022\303\002\n\tSet" - + "Labels\022>.google.cloud.compute.v1.SetLabe" - + "lsRegionInstantSnapshotRequest\032\".google." - + "cloud.compute.v1.Operation\"\321\001\332A:project," - + "region,resource,region_set_labels_reques" - + "t_resource\212N\020RegionOperations\202\323\344\223\002{\"U/co" - + "mpute/v1/projects/{project}/regions/{reg" - + "ion}/instantSnapshots/{resource}/setLabe" - + "ls:\"region_set_labels_request_resource\022\330" - + "\002\n\022TestIamPermissions\022G.google.cloud.com" - + "pute.v1.TestIamPermissionsRegionInstantS" - + "napshotRequest\0320.google.cloud.compute.v1" - + ".TestPermissionsResponse\"\306\001\332A9project,re" - + "gion,resource,test_permissions_request_r" - + "esource\202\323\344\223\002\203\001\"^/compute/v1/projects/{pr" - + "oject}/regions/{region}/instantSnapshots" - + "/{resource}/testIamPermissions:!test_per" - + "missions_request_resource\032r\312A\026compute.go" - + "ogleapis.com\322AVhttps://www.googleapis.co" - + "m/auth/compute,https://www.googleapis.co" - + "m/auth/cloud-platform2\244\023\n\033RegionNetworkE" - + "ndpointGroups\022\315\003\n\026AttachNetworkEndpoints" - + "\022P.google.cloud.compute.v1.AttachNetwork" - + "EndpointsRegionNetworkEndpointGroupReque" - + "st\032\".google.cloud.compute.v1.Operation\"\274" - + "\002\332Afproject,region,network_endpoint_grou" - + "p,region_network_endpoint_groups_attach_" - + "endpoints_request_resource\212N\020RegionOpera" - + "tions\202\323\344\223\002\271\001\"u/compute/v1/projects/{proj" - + "ect}/regions/{region}/networkEndpointGro" - + "ups/{network_endpoint_group}/attachNetwo" - + "rkEndpoints:@region_network_endpoint_gro" - + "ups_attach_endpoints_request_resource\022\222\002" - + "\n\006Delete\022@.google.cloud.compute.v1.Delet" - + "eRegionNetworkEndpointGroupRequest\032\".goo" - + "gle.cloud.compute.v1.Operation\"\241\001\332A%proj" - + "ect,region,network_endpoint_group\212N\020Regi" - + "onOperations\202\323\344\223\002`*^/compute/v1/projects" - + "/{project}/regions/{region}/networkEndpo" - + "intGroups/{network_endpoint_group}\022\315\003\n\026D" - + "etachNetworkEndpoints\022P.google.cloud.com" - + "pute.v1.DetachNetworkEndpointsRegionNetw" - + "orkEndpointGroupRequest\032\".google.cloud.c" - + "ompute.v1.Operation\"\274\002\332Afproject,region," - + "network_endpoint_group,region_network_en" - + "dpoint_groups_detach_endpoints_request_r" - + "esource\212N\020RegionOperations\202\323\344\223\002\271\001\"u/comp" - + "ute/v1/projects/{project}/regions/{regio" - + "n}/networkEndpointGroups/{network_endpoi" - + "nt_group}/detachNetworkEndpoints:@region" - + "_network_endpoint_groups_detach_endpoint" - + "s_request_resource\022\204\002\n\003Get\022=.google.clou" - + "d.compute.v1.GetRegionNetworkEndpointGro" - + "upRequest\032-.google.cloud.compute.v1.Netw" - + "orkEndpointGroup\"\216\001\332A%project,region,net" - + "work_endpoint_group\202\323\344\223\002`\022^/compute/v1/p" - + "rojects/{project}/regions/{region}/netwo" - + "rkEndpointGroups/{network_endpoint_group" - + "}\022\243\002\n\006Insert\022@.google.cloud.compute.v1.I" - + "nsertRegionNetworkEndpointGroupRequest\032\"" - + ".google.cloud.compute.v1.Operation\"\262\001\332A." - + "project,region,network_endpoint_group_re" - + "source\212N\020RegionOperations\202\323\344\223\002h\"E/comput" - + "e/v1/projects/{project}/regions/{region}" - + "/networkEndpointGroups:\037network_endpoint" - + "_group_resource\022\332\001\n\004List\022?.google.cloud." - + "compute.v1.ListRegionNetworkEndpointGrou" - + "psRequest\0321.google.cloud.compute.v1.Netw" - + "orkEndpointGroupList\"^\332A\016project,region\202" - + "\323\344\223\002G\022E/compute/v1/projects/{project}/re" - + "gions/{region}/networkEndpointGroups\022\321\002\n" - + "\024ListNetworkEndpoints\022O.google.cloud.com" - + "pute.v1.ListNetworkEndpointsRegionNetwor" - + "kEndpointGroupsRequest\032B.google.cloud.co" - + "mpute.v1.NetworkEndpointGroupsListNetwor" - + "kEndpoints\"\243\001\332A%project,region,network_e" - + "ndpoint_group\202\323\344\223\002u\"s/compute/v1/project" - + "s/{project}/regions/{region}/networkEndp" - + "ointGroups/{network_endpoint_group}/list" - + "NetworkEndpoints\032r\312A\026compute.googleapis." - + "com\322AVhttps://www.googleapis.com/auth/co" - + "mpute,https://www.googleapis.com/auth/cl" - + "oud-platform2\362\'\n\035RegionNetworkFirewallPo" - + "licies\022\353\002\n\016AddAssociation\022I.google.cloud" - + ".compute.v1.AddAssociationRegionNetworkF" - + "irewallPolicyRequest\032\".google.cloud.comp" - + "ute.v1.Operation\"\351\001\332ACproject,region,fir" - + "ewall_policy,firewall_policy_association" - + "_resource\212N\020RegionOperations\202\323\344\223\002\211\001\"a/co" - + "mpute/v1/projects/{project}/regions/{reg" - + "ion}/firewallPolicies/{firewall_policy}/" - + "addAssociation:$firewall_policy_associat" - + "ion_resource\022\307\002\n\007AddRule\022B.google.cloud." - + "compute.v1.AddRuleRegionNetworkFirewallP" + + "tSnapshots/{instant_snapshot}\022\350\001\n\003Get\0228." + + "google.cloud.compute.v1.GetRegionInstant" + + "SnapshotRequest\032(.google.cloud.compute.v" + + "1.InstantSnapshot\"}\332A\037project,region,ins" + + "tant_snapshot\202\323\344\223\002U\022S/compute/v1/project" + + "s/{project}/regions/{region}/instantSnap" + + "shots/{instant_snapshot}\022\356\001\n\014GetIamPolic" + + "y\022A.google.cloud.compute.v1.GetIamPolicy" + + "RegionInstantSnapshotRequest\032\037.google.cl" + + "oud.compute.v1.Policy\"z\332A\027project,region" + + ",resource\202\323\344\223\002Z\022X/compute/v1/projects/{p" + + "roject}/regions/{region}/instantSnapshot" + + "s/{resource}/getIamPolicy\022\215\002\n\006Insert\022;.g" + + "oogle.cloud.compute.v1.InsertRegionInsta" + + "ntSnapshotRequest\032\".google.cloud.compute" + + ".v1.Operation\"\241\001\332A(project,region,instan" + + "t_snapshot_resource\212N\020RegionOperations\202\323" + + "\344\223\002]\"@/compute/v1/projects/{project}/reg" + + "ions/{region}/instantSnapshots:\031instant_" + + "snapshot_resource\022\313\001\n\004List\022:.google.clou" + + "d.compute.v1.ListRegionInstantSnapshotsR" + + "equest\032,.google.cloud.compute.v1.Instant" + + "SnapshotList\"Y\332A\016project,region\202\323\344\223\002B\022@/" + + "compute/v1/projects/{project}/regions/{r" + + "egion}/instantSnapshots\022\266\002\n\014SetIamPolicy" + + "\022A.google.cloud.compute.v1.SetIamPolicyR" + + "egionInstantSnapshotRequest\032\037.google.clo" + + "ud.compute.v1.Policy\"\301\001\332A:project,region" + + ",resource,region_set_policy_request_reso" + + "urce\202\323\344\223\002~\"X/compute/v1/projects/{projec" + + "t}/regions/{region}/instantSnapshots/{re" + + "source}/setIamPolicy:\"region_set_policy_" + + "request_resource\022\303\002\n\tSetLabels\022>.google." + + "cloud.compute.v1.SetLabelsRegionInstantS" + + "napshotRequest\032\".google.cloud.compute.v1" + + ".Operation\"\321\001\332A:project,region,resource," + + "region_set_labels_request_resource\212N\020Reg" + + "ionOperations\202\323\344\223\002{\"U/compute/v1/project" + + "s/{project}/regions/{region}/instantSnap" + + "shots/{resource}/setLabels:\"region_set_l" + + "abels_request_resource\022\330\002\n\022TestIamPermis" + + "sions\022G.google.cloud.compute.v1.TestIamP" + + "ermissionsRegionInstantSnapshotRequest\0320" + + ".google.cloud.compute.v1.TestPermissions" + + "Response\"\306\001\332A9project,region,resource,te" + + "st_permissions_request_resource\202\323\344\223\002\203\001\"^" + + "/compute/v1/projects/{project}/regions/{" + + "region}/instantSnapshots/{resource}/test" + + "IamPermissions:!test_permissions_request" + + "_resource\032r\312A\026compute.googleapis.com\322AVh" + + "ttps://www.googleapis.com/auth/compute,h" + + "ttps://www.googleapis.com/auth/cloud-pla" + + "tform2\244\023\n\033RegionNetworkEndpointGroups\022\315\003" + + "\n\026AttachNetworkEndpoints\022P.google.cloud." + + "compute.v1.AttachNetworkEndpointsRegionN" + + "etworkEndpointGroupRequest\032\".google.clou" + + "d.compute.v1.Operation\"\274\002\332Afproject,regi" + + "on,network_endpoint_group,region_network" + + "_endpoint_groups_attach_endpoints_reques" + + "t_resource\212N\020RegionOperations\202\323\344\223\002\271\001\"u/c" + + "ompute/v1/projects/{project}/regions/{re" + + "gion}/networkEndpointGroups/{network_end" + + "point_group}/attachNetworkEndpoints:@reg" + + "ion_network_endpoint_groups_attach_endpo" + + "ints_request_resource\022\222\002\n\006Delete\022@.googl" + + "e.cloud.compute.v1.DeleteRegionNetworkEn" + + "dpointGroupRequest\032\".google.cloud.comput" + + "e.v1.Operation\"\241\001\332A%project,region,netwo" + + "rk_endpoint_group\212N\020RegionOperations\202\323\344\223" + + "\002`*^/compute/v1/projects/{project}/regio" + + "ns/{region}/networkEndpointGroups/{netwo" + + "rk_endpoint_group}\022\315\003\n\026DetachNetworkEndp" + + "oints\022P.google.cloud.compute.v1.DetachNe" + + "tworkEndpointsRegionNetworkEndpointGroup" + + "Request\032\".google.cloud.compute.v1.Operat" + + "ion\"\274\002\332Afproject,region,network_endpoint" + + "_group,region_network_endpoint_groups_de" + + "tach_endpoints_request_resource\212N\020Region" + + "Operations\202\323\344\223\002\271\001\"u/compute/v1/projects/" + + "{project}/regions/{region}/networkEndpoi" + + "ntGroups/{network_endpoint_group}/detach" + + "NetworkEndpoints:@region_network_endpoin" + + "t_groups_detach_endpoints_request_resour" + + "ce\022\204\002\n\003Get\022=.google.cloud.compute.v1.Get" + + "RegionNetworkEndpointGroupRequest\032-.goog" + + "le.cloud.compute.v1.NetworkEndpointGroup" + + "\"\216\001\332A%project,region,network_endpoint_gr" + + "oup\202\323\344\223\002`\022^/compute/v1/projects/{project" + + "}/regions/{region}/networkEndpointGroups" + + "/{network_endpoint_group}\022\243\002\n\006Insert\022@.g" + + "oogle.cloud.compute.v1.InsertRegionNetwo" + + "rkEndpointGroupRequest\032\".google.cloud.co" + + "mpute.v1.Operation\"\262\001\332A.project,region,n" + + "etwork_endpoint_group_resource\212N\020RegionO" + + "perations\202\323\344\223\002h\"E/compute/v1/projects/{p" + + "roject}/regions/{region}/networkEndpoint" + + "Groups:\037network_endpoint_group_resource\022" + + "\332\001\n\004List\022?.google.cloud.compute.v1.ListR" + + "egionNetworkEndpointGroupsRequest\0321.goog" + + "le.cloud.compute.v1.NetworkEndpointGroup" + + "List\"^\332A\016project,region\202\323\344\223\002G\022E/compute/" + + "v1/projects/{project}/regions/{region}/n" + + "etworkEndpointGroups\022\321\002\n\024ListNetworkEndp" + + "oints\022O.google.cloud.compute.v1.ListNetw" + + "orkEndpointsRegionNetworkEndpointGroupsR" + + "equest\032B.google.cloud.compute.v1.Network" + + "EndpointGroupsListNetworkEndpoints\"\243\001\332A%" + + "project,region,network_endpoint_group\202\323\344" + + "\223\002u\"s/compute/v1/projects/{project}/regi" + + "ons/{region}/networkEndpointGroups/{netw" + + "ork_endpoint_group}/listNetworkEndpoints" + + "\032r\312A\026compute.googleapis.com\322AVhttps://ww" + + "w.googleapis.com/auth/compute,https://ww" + + "w.googleapis.com/auth/cloud-platform2\362\'\n" + + "\035RegionNetworkFirewallPolicies\022\353\002\n\016AddAs" + + "sociation\022I.google.cloud.compute.v1.AddA" + + "ssociationRegionNetworkFirewallPolicyReq" + + "uest\032\".google.cloud.compute.v1.Operation" + + "\"\351\001\332ACproject,region,firewall_policy,fir" + + "ewall_policy_association_resource\212N\020Regi" + + "onOperations\202\323\344\223\002\211\001\"a/compute/v1/project" + + "s/{project}/regions/{region}/firewallPol" + + "icies/{firewall_policy}/addAssociation:$" + + "firewall_policy_association_resource\022\307\002\n" + + "\007AddRule\022B.google.cloud.compute.v1.AddRu" + + "leRegionNetworkFirewallPolicyRequest\032\".g" + + "oogle.cloud.compute.v1.Operation\"\323\001\332A.google.cloud.compute.v1.GetReg" - + "ionNetworkFirewallPolicyRequest\032\'.google" - + ".cloud.compute.v1.FirewallPolicy\"{\332A\036pro" - + "ject,region,firewall_policy\202\323\344\223\002T\022R/comp" - + "ute/v1/projects/{project}/regions/{regio" - + "n}/firewallPolicies/{firewall_policy}\022\234\002" - + "\n\016GetAssociation\022I.google.cloud.compute." - + "v1.GetAssociationRegionNetworkFirewallPo" - + "licyRequest\0322.google.cloud.compute.v1.Fi" - + "rewallPolicyAssociation\"\212\001\332A\036project,reg" - + "ion,firewall_policy\202\323\344\223\002c\022a/compute/v1/p" - + "rojects/{project}/regions/{region}/firew" - + "allPolicies/{firewall_policy}/getAssocia" - + "tion\022\267\002\n\025GetEffectiveFirewalls\022P.google." - + "cloud.compute.v1.GetEffectiveFirewallsRe" - + "gionNetworkFirewallPolicyRequest\032S.googl" - + "e.cloud.compute.v1.RegionNetworkFirewall" - + "PoliciesGetEffectiveFirewallsResponse\"w\332" - + "A\026project,region,network\202\323\344\223\002X\022V/compute" - + "/v1/projects/{project}/regions/{region}/" - + "firewallPolicies/getEffectiveFirewalls\022\364" - + "\001\n\014GetIamPolicy\022G.google.cloud.compute.v" - + "1.GetIamPolicyRegionNetworkFirewallPolic" - + "yRequest\032\037.google.cloud.compute.v1.Polic" - + "y\"z\332A\027project,region,resource\202\323\344\223\002Z\022X/co" - + "mpute/v1/projects/{project}/regions/{reg" - + "ion}/firewallPolicies/{resource}/getIamP" - + "olicy\022\200\002\n\007GetRule\022B.google.cloud.compute" - + ".v1.GetRuleRegionNetworkFirewallPolicyRe" - + "quest\032+.google.cloud.compute.v1.Firewall" - + "PolicyRule\"\203\001\332A\036project,region,firewall_" - + "policy\202\323\344\223\002\\\022Z/compute/v1/projects/{proj" - + "ect}/regions/{region}/firewallPolicies/{" - + "firewall_policy}/getRule\022\221\002\n\006Insert\022A.go" - + "ogle.cloud.compute.v1.InsertRegionNetwor" - + "kFirewallPolicyRequest\032\".google.cloud.co" - + "mpute.v1.Operation\"\237\001\332A\'project,region,f" - + "irewall_policy_resource\212N\020RegionOperatio" - + "ns\202\323\344\223\002\\\"@/compute/v1/projects/{project}" - + "/regions/{region}/firewallPolicies:\030fire" - + "wall_policy_resource\022\321\001\n\004List\022A.google.c" - + "loud.compute.v1.ListRegionNetworkFirewal" - + "lPoliciesRequest\032+.google.cloud.compute." - + "v1.FirewallPolicyList\"Y\332A\016project,region" - + "\202\323\344\223\002B\022@/compute/v1/projects/{project}/r" - + "egions/{region}/firewallPolicies\022\261\002\n\005Pat" - + "ch\022@.google.cloud.compute.v1.PatchRegion" - + "NetworkFirewallPolicyRequest\032\".google.cl" - + "oud.compute.v1.Operation\"\301\001\332A7project,re" - + "gion,firewall_policy,firewall_policy_res" - + "ource\212N\020RegionOperations\202\323\344\223\002n2R/compute" + + "icies/{firewall_policy}\022\353\001\n\003Get\022>.google" + + ".cloud.compute.v1.GetRegionNetworkFirewa" + + "llPolicyRequest\032\'.google.cloud.compute.v" + + "1.FirewallPolicy\"{\332A\036project,region,fire" + + "wall_policy\202\323\344\223\002T\022R/compute/v1/projects/" + + "{project}/regions/{region}/firewallPolic" + + "ies/{firewall_policy}\022\234\002\n\016GetAssociation" + + "\022I.google.cloud.compute.v1.GetAssociatio" + + "nRegionNetworkFirewallPolicyRequest\0322.go" + + "ogle.cloud.compute.v1.FirewallPolicyAsso" + + "ciation\"\212\001\332A\036project,region,firewall_pol" + + "icy\202\323\344\223\002c\022a/compute/v1/projects/{project" + + "}/regions/{region}/firewallPolicies/{fir" + + "ewall_policy}/getAssociation\022\267\002\n\025GetEffe" + + "ctiveFirewalls\022P.google.cloud.compute.v1" + + ".GetEffectiveFirewallsRegionNetworkFirew" + + "allPolicyRequest\032S.google.cloud.compute." + + "v1.RegionNetworkFirewallPoliciesGetEffec" + + "tiveFirewallsResponse\"w\332A\026project,region" + + ",network\202\323\344\223\002X\022V/compute/v1/projects/{pr" + + "oject}/regions/{region}/firewallPolicies" + + "/getEffectiveFirewalls\022\364\001\n\014GetIamPolicy\022" + + "G.google.cloud.compute.v1.GetIamPolicyRe" + + "gionNetworkFirewallPolicyRequest\032\037.googl" + + "e.cloud.compute.v1.Policy\"z\332A\027project,re" + + "gion,resource\202\323\344\223\002Z\022X/compute/v1/project" + + "s/{project}/regions/{region}/firewallPol" + + "icies/{resource}/getIamPolicy\022\200\002\n\007GetRul" + + "e\022B.google.cloud.compute.v1.GetRuleRegio" + + "nNetworkFirewallPolicyRequest\032+.google.c" + + "loud.compute.v1.FirewallPolicyRule\"\203\001\332A\036" + + "project,region,firewall_policy\202\323\344\223\002\\\022Z/c" + + "ompute/v1/projects/{project}/regions/{re" + + "gion}/firewallPolicies/{firewall_policy}" + + "/getRule\022\221\002\n\006Insert\022A.google.cloud.compu" + + "te.v1.InsertRegionNetworkFirewallPolicyR" + + "equest\032\".google.cloud.compute.v1.Operati" + + "on\"\237\001\332A\'project,region,firewall_policy_r" + + "esource\212N\020RegionOperations\202\323\344\223\002\\\"@/compu" + + "te/v1/projects/{project}/regions/{region" + + "}/firewallPolicies:\030firewall_policy_reso" + + "urce\022\321\001\n\004List\022A.google.cloud.compute.v1." + + "ListRegionNetworkFirewallPoliciesRequest" + + "\032+.google.cloud.compute.v1.FirewallPolic" + + "yList\"Y\332A\016project,region\202\323\344\223\002B\022@/compute", + "/v1/projects/{project}/regions/{region}/" + + "firewallPolicies\022\261\002\n\005Patch\022@.google.clou" + + "d.compute.v1.PatchRegionNetworkFirewallP" + + "olicyRequest\032\".google.cloud.compute.v1.O" + + "peration\"\301\001\332A7project,region,firewall_po" + + "licy,firewall_policy_resource\212N\020RegionOp" + + "erations\202\323\344\223\002n2R/compute/v1/projects/{pr" + + "oject}/regions/{region}/firewallPolicies" + + "/{firewall_policy}:\030firewall_policy_reso" + + "urce\022\315\002\n\tPatchRule\022D.google.cloud.comput" + + "e.v1.PatchRuleRegionNetworkFirewallPolic" + + "yRequest\032\".google.cloud.compute.v1.Opera" + + "tion\"\325\001\332A.google.cloud.compute.v1.R" - + "emoveRuleRegionSecurityPolicyRequest\032\".g" - + "oogle.cloud.compute.v1.Operation\"\231\001\332A\036pr" - + "oject,region,security_policy\212N\020RegionOpe" - + "rations\202\323\344\223\002_\"]/compute/v1/projects/{pro" - + "ject}/regions/{region}/securityPolicies/" - + "{security_policy}/removeRule\022\302\002\n\tSetLabe" - + "ls\022=.google.cloud.compute.v1.SetLabelsRe" - + "gionSecurityPolicyRequest\032\".google.cloud" - + ".compute.v1.Operation\"\321\001\332A:project,regio" - + "n,resource,region_set_labels_request_res" - + "ource\212N\020RegionOperations\202\323\344\223\002{\"U/compute" - + "/v1/projects/{project}/regions/{region}/" - + "securityPolicies/{resource}/setLabels:\"r" - + "egion_set_labels_request_resource\032r\312A\026co" - + "mpute.googleapis.com\322AVhttps://www.googl" - + "eapis.com/auth/compute,https://www.googl" - + "eapis.com/auth/cloud-platform2\303\010\n\025Region" - + "SslCertificates\022\370\001\n\006Delete\022:.google.clou" - + "d.compute.v1.DeleteRegionSslCertificateR" - + "equest\032\".google.cloud.compute.v1.Operati" - + "on\"\215\001\332A\036project,region,ssl_certificate\212N" - + "\020RegionOperations\202\323\344\223\002S*Q/compute/v1/pro" - + "jects/{project}/regions/{region}/sslCert" - + "ificates/{ssl_certificate}\022\343\001\n\003Get\0227.goo" - + "gle.cloud.compute.v1.GetRegionSslCertifi" - + "cateRequest\032\'.google.cloud.compute.v1.Ss" - + "lCertificate\"z\332A\036project,region,ssl_cert" - + "ificate\202\323\344\223\002S\022Q/compute/v1/projects/{pro" - + "ject}/regions/{region}/sslCertificates/{" - + "ssl_certificate}\022\211\002\n\006Insert\022:.google.clo" - + "ud.compute.v1.InsertRegionSslCertificate" + + "olicies/{security_policy}\022\371\001\n\007GetRule\022;." + + "google.cloud.compute.v1.GetRuleRegionSec" + + "urityPolicyRequest\032+.google.cloud.comput" + + "e.v1.SecurityPolicyRule\"\203\001\332A\036project,reg" + + "ion,security_policy\202\323\344\223\002\\\022Z/compute/v1/p" + + "rojects/{project}/regions/{region}/secur" + + "ityPolicies/{security_policy}/getRule\022\212\002" + + "\n\006Insert\022:.google.cloud.compute.v1.Inser" + + "tRegionSecurityPolicyRequest\032\".google.cl" + + "oud.compute.v1.Operation\"\237\001\332A\'project,re" + + "gion,security_policy_resource\212N\020RegionOp" + + "erations\202\323\344\223\002\\\"@/compute/v1/projects/{pr" + + "oject}/regions/{region}/securityPolicies" + + ":\030security_policy_resource\022\312\001\n\004List\022:.go" + + "ogle.cloud.compute.v1.ListRegionSecurity" + + "PoliciesRequest\032+.google.cloud.compute.v" + + "1.SecurityPolicyList\"Y\332A\016project,region\202" + + "\323\344\223\002B\022@/compute/v1/projects/{project}/re" + + "gions/{region}/securityPolicies\022\252\002\n\005Patc" + + "h\0229.google.cloud.compute.v1.PatchRegionS" + + "ecurityPolicyRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"\301\001\332A7project,region,sec" + + "urity_policy,security_policy_resource\212N\020" + + "RegionOperations\202\323\344\223\002n2R/compute/v1/proj" + + "ects/{project}/regions/{region}/security" + + "Policies/{security_policy}:\030security_pol" + + "icy_resource\022\306\002\n\tPatchRule\022=.google.clou" + + "d.compute.v1.PatchRuleRegionSecurityPoli" + + "cyRequest\032\".google.cloud.compute.v1.Oper" + + "ation\"\325\001\332A.g" + + "oogle.cloud.compute.v1.RemoveRuleRegionS" + + "ecurityPolicyRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"\231\001\332A\036project,region,sec" + + "urity_policy\212N\020RegionOperations\202\323\344\223\002_\"]/" + + "compute/v1/projects/{project}/regions/{r" + + "egion}/securityPolicies/{security_policy" + + "}/removeRule\022\302\002\n\tSetLabels\022=.google.clou" + + "d.compute.v1.SetLabelsRegionSecurityPoli" + + "cyRequest\032\".google.cloud.compute.v1.Oper" + + "ation\"\321\001\332A:project,region,resource,regio" + + "n_set_labels_request_resource\212N\020RegionOp" + + "erations\202\323\344\223\002{\"U/compute/v1/projects/{pr" + + "oject}/regions/{region}/securityPolicies" + + "/{resource}/setLabels:\"region_set_labels" + + "_request_resource\032r\312A\026compute.googleapis" + + ".com\322AVhttps://www.googleapis.com/auth/c" + + "ompute,https://www.googleapis.com/auth/c" + + "loud-platform2\303\010\n\025RegionSslCertificates\022" + + "\370\001\n\006Delete\022:.google.cloud.compute.v1.Del" + + "eteRegionSslCertificateRequest\032\".google." + + "cloud.compute.v1.Operation\"\215\001\332A\036project," + + "region,ssl_certificate\212N\020RegionOperation" + + "s\202\323\344\223\002S*Q/compute/v1/projects/{project}/" + + "regions/{region}/sslCertificates/{ssl_ce" + + "rtificate}\022\343\001\n\003Get\0227.google.cloud.comput" + + "e.v1.GetRegionSslCertificateRequest\032\'.go" + + "ogle.cloud.compute.v1.SslCertificate\"z\332A" + + "\036project,region,ssl_certificate\202\323\344\223\002S\022Q/" + + "compute/v1/projects/{project}/regions/{r" + + "egion}/sslCertificates/{ssl_certificate}" + + "\022\211\002\n\006Insert\022:.google.cloud.compute.v1.In" + + "sertRegionSslCertificateRequest\032\".google" + + ".cloud.compute.v1.Operation\"\236\001\332A\'project" + + ",region,ssl_certificate_resource\212N\020Regio" + + "nOperations\202\323\344\223\002[\"?/compute/v1/projects/" + + "{project}/regions/{region}/sslCertificat" + + "es:\030ssl_certificate_resource\022\310\001\n\004List\0229." + + "google.cloud.compute.v1.ListRegionSslCer" + + "tificatesRequest\032+.google.cloud.compute." + + "v1.SslCertificateList\"X\332A\016project,region" + + "\202\323\344\223\002A\022?/compute/v1/projects/{project}/r" + + "egions/{region}/sslCertificates\032r\312A\026comp" + + "ute.googleapis.com\322AVhttps://www.googlea" + + "pis.com/auth/compute,https://www.googlea" + + "pis.com/auth/cloud-platform2\225\014\n\021RegionSs" + + "lPolicies\022\344\001\n\006Delete\0225.google.cloud.comp" + + "ute.v1.DeleteRegionSslPolicyRequest\032\".go" + + "ogle.cloud.compute.v1.Operation\"\177\332A\031proj" + + "ect,region,ssl_policy\212N\020RegionOperations" + + "\202\323\344\223\002J*H/compute/v1/projects/{project}/r" + + "egions/{region}/sslPolicies/{ssl_policy}" + + "\022\313\001\n\003Get\0222.google.cloud.compute.v1.GetRe" + + "gionSslPolicyRequest\032\".google.cloud.comp" + + "ute.v1.SslPolicy\"l\332A\031project,region,ssl_" + + "policy\202\323\344\223\002J\022H/compute/v1/projects/{proj" + + "ect}/regions/{region}/sslPolicies/{ssl_p" + + "olicy}\022\366\001\n\006Insert\0225.google.cloud.compute" + + ".v1.InsertRegionSslPolicyRequest\032\".googl" + + "e.cloud.compute.v1.Operation\"\220\001\332A\"projec" + + "t,region,ssl_policy_resource\212N\020RegionOpe" + + "rations\202\323\344\223\002R\";/compute/v1/projects/{pro" + + "ject}/regions/{region}/sslPolicies:\023ssl_" + + "policy_resource\022\275\001\n\004List\0225.google.cloud." + + "compute.v1.ListRegionSslPoliciesRequest\032" + + "(.google.cloud.compute.v1.SslPoliciesLis" + + "t\"T\332A\016project,region\202\323\344\223\002=\022;/compute/v1/" + + "projects/{project}/regions/{region}/sslP" + + "olicies\022\216\002\n\025ListAvailableFeatures\022F.goog" + + "le.cloud.compute.v1.ListAvailableFeature" + + "sRegionSslPoliciesRequest\032A.google.cloud" + + ".compute.v1.SslPoliciesListAvailableFeat" + + "uresResponse\"j\332A\016project,region\202\323\344\223\002S\022Q/" + + "compute/v1/projects/{project}/regions/{r" + + "egion}/sslPolicies/listAvailableFeatures" + + "\022\214\002\n\005Patch\0224.google.cloud.compute.v1.Pat" + + "chRegionSslPolicyRequest\032\".google.cloud." + + "compute.v1.Operation\"\250\001\332A-project,region" + + ",ssl_policy,ssl_policy_resource\212N\020Region" + + "Operations\202\323\344\223\002_2H/compute/v1/projects/{" + + "project}/regions/{region}/sslPolicies/{s" + + "sl_policy}:\023ssl_policy_resource\032r\312A\026comp" + + "ute.googleapis.com\322AVhttps://www.googlea" + + "pis.com/auth/compute,https://www.googlea" + + "pis.com/auth/cloud-platform2\252\013\n\027RegionTa" + + "rgetHttpProxies\022\377\001\n\006Delete\022;.google.clou" + + "d.compute.v1.DeleteRegionTargetHttpProxy" + "Request\032\".google.cloud.compute.v1.Operat" - + "ion\"\236\001\332A\'project,region,ssl_certificate_" - + "resource\212N\020RegionOperations\202\323\344\223\002[\"?/comp" - + "ute/v1/projects/{project}/regions/{regio" - + "n}/sslCertificates:\030ssl_certificate_reso" - + "urce\022\310\001\n\004List\0229.google.cloud.compute.v1." - + "ListRegionSslCertificatesRequest\032+.googl" - + "e.cloud.compute.v1.SslCertificateList\"X\332" - + "A\016project,region\202\323\344\223\002A\022?/compute/v1/proj" - + "ects/{project}/regions/{region}/sslCerti" - + "ficates\032r\312A\026compute.googleapis.com\322AVhtt" - + "ps://www.googleapis.com/auth/compute,htt" - + "ps://www.googleapis.com/auth/cloud-platf" - + "orm2\225\014\n\021RegionSslPolicies\022\344\001\n\006Delete\0225.g" - + "oogle.cloud.compute.v1.DeleteRegionSslPo" - + "licyRequest\032\".google.cloud.compute.v1.Op" - + "eration\"\177\332A\031project,region,ssl_policy\212N\020" - + "RegionOperations\202\323\344\223\002J*H/compute/v1/proj" - + "ects/{project}/regions/{region}/sslPolic" - + "ies/{ssl_policy}\022\313\001\n\003Get\0222.google.cloud." - + "compute.v1.GetRegionSslPolicyRequest\032\".g" - + "oogle.cloud.compute.v1.SslPolicy\"l\332A\031pro" - + "ject,region,ssl_policy\202\323\344\223\002J\022H/compute/v" - + "1/projects/{project}/regions/{region}/ss" - + "lPolicies/{ssl_policy}\022\366\001\n\006Insert\0225.goog" - + "le.cloud.compute.v1.InsertRegionSslPolic" + + "ion\"\223\001\332A project,region,target_http_prox" + + "y\212N\020RegionOperations\202\323\344\223\002W*U/compute/v1/" + + "projects/{project}/regions/{region}/targ" + + "etHttpProxies/{target_http_proxy}\022\354\001\n\003Ge" + + "t\0228.google.cloud.compute.v1.GetRegionTar" + + "getHttpProxyRequest\032(.google.cloud.compu" + + "te.v1.TargetHttpProxy\"\200\001\332A project,regio" + + "n,target_http_proxy\202\323\344\223\002W\022U/compute/v1/p" + + "rojects/{project}/regions/{region}/targe" + + "tHttpProxies/{target_http_proxy}\022\220\002\n\006Ins" + + "ert\022;.google.cloud.compute.v1.InsertRegi" + + "onTargetHttpProxyRequest\032\".google.cloud." + + "compute.v1.Operation\"\244\001\332A)project,region" + + ",target_http_proxy_resource\212N\020RegionOper" + + "ations\202\323\344\223\002_\"A/compute/v1/projects/{proj" + + "ect}/regions/{region}/targetHttpProxies:" + + "\032target_http_proxy_resource\022\315\001\n\004List\022;.g" + + "oogle.cloud.compute.v1.ListRegionTargetH" + + "ttpProxiesRequest\032,.google.cloud.compute" + + ".v1.TargetHttpProxyList\"Z\332A\016project,regi" + + "on\202\323\344\223\002C\022A/compute/v1/projects/{project}" + + "/regions/{region}/targetHttpProxies\022\306\002\n\t" + + "SetUrlMap\022>.google.cloud.compute.v1.SetU" + + "rlMapRegionTargetHttpProxyRequest\032\".goog" + + "le.cloud.compute.v1.Operation\"\324\001\332A;proje" + + "ct,region,target_http_proxy,url_map_refe" + + "rence_resource\212N\020RegionOperations\202\323\344\223\002}\"" + + "_/compute/v1/projects/{project}/regions/" + + "{region}/targetHttpProxies/{target_http_" + + "proxy}/setUrlMap:\032url_map_reference_reso" + + "urce\032r\312A\026compute.googleapis.com\322AVhttps:" + + "//www.googleapis.com/auth/compute,https:" + + "//www.googleapis.com/auth/cloud-platform" + + "2\263\021\n\030RegionTargetHttpsProxies\022\203\002\n\006Delete" + + "\022<.google.cloud.compute.v1.DeleteRegionT" + + "argetHttpsProxyRequest\032\".google.cloud.co" + + "mpute.v1.Operation\"\226\001\332A!project,region,t" + + "arget_https_proxy\212N\020RegionOperations\202\323\344\223" + + "\002Y*W/compute/v1/projects/{project}/regio" + + "ns/{region}/targetHttpsProxies/{target_h" + + "ttps_proxy}\022\361\001\n\003Get\0229.google.cloud.compu" + + "te.v1.GetRegionTargetHttpsProxyRequest\032)" + + ".google.cloud.compute.v1.TargetHttpsProx" + + "y\"\203\001\332A!project,region,target_https_proxy" + + "\202\323\344\223\002Y\022W/compute/v1/projects/{project}/r" + + "egions/{region}/targetHttpsProxies/{targ" + + "et_https_proxy}\022\224\002\n\006Insert\022<.google.clou" + + "d.compute.v1.InsertRegionTargetHttpsProx" + "yRequest\032\".google.cloud.compute.v1.Opera" - + "tion\"\220\001\332A\"project,region,ssl_policy_reso" - + "urce\212N\020RegionOperations\202\323\344\223\002R\";/compute/" - + "v1/projects/{project}/regions/{region}/s" - + "slPolicies:\023ssl_policy_resource\022\275\001\n\004List" - + "\0225.google.cloud.compute.v1.ListRegionSsl" - + "PoliciesRequest\032(.google.cloud.compute.v" - + "1.SslPoliciesList\"T\332A\016project,region\202\323\344\223" - + "\002=\022;/compute/v1/projects/{project}/regio" - + "ns/{region}/sslPolicies\022\216\002\n\025ListAvailabl" - + "eFeatures\022F.google.cloud.compute.v1.List" - + "AvailableFeaturesRegionSslPoliciesReques" - + "t\032A.google.cloud.compute.v1.SslPoliciesL" - + "istAvailableFeaturesResponse\"j\332A\016project" - + ",region\202\323\344\223\002S\022Q/compute/v1/projects/{pro" - + "ject}/regions/{region}/sslPolicies/listA" - + "vailableFeatures\022\214\002\n\005Patch\0224.google.clou" - + "d.compute.v1.PatchRegionSslPolicyRequest" - + "\032\".google.cloud.compute.v1.Operation\"\250\001\332" - + "A-project,region,ssl_policy,ssl_policy_r" - + "esource\212N\020RegionOperations\202\323\344\223\002_2H/compu" - + "te/v1/projects/{project}/regions/{region" - + "}/sslPolicies/{ssl_policy}:\023ssl_policy_r" - + "esource\032r\312A\026compute.googleapis.com\322AVhtt" - + "ps://www.googleapis.com/auth/compute,htt" - + "ps://www.googleapis.com/auth/cloud-platf" - + "orm2\252\013\n\027RegionTargetHttpProxies\022\377\001\n\006Dele" - + "te\022;.google.cloud.compute.v1.DeleteRegio" - + "nTargetHttpProxyRequest\032\".google.cloud.c" - + "ompute.v1.Operation\"\223\001\332A project,region," - + "target_http_proxy\212N\020RegionOperations\202\323\344\223" - + "\002W*U/compute/v1/projects/{project}/regio" - + "ns/{region}/targetHttpProxies/{target_ht" - + "tp_proxy}\022\354\001\n\003Get\0228.google.cloud.compute" - + ".v1.GetRegionTargetHttpProxyRequest\032(.go" - + "ogle.cloud.compute.v1.TargetHttpProxy\"\200\001" - + "\332A project,region,target_http_proxy\202\323\344\223\002" - + "W\022U/compute/v1/projects/{project}/region" - + "s/{region}/targetHttpProxies/{target_htt" - + "p_proxy}\022\220\002\n\006Insert\022;.google.cloud.compu" - + "te.v1.InsertRegionTargetHttpProxyRequest" - + "\032\".google.cloud.compute.v1.Operation\"\244\001\332" - + "A)project,region,target_http_proxy_resou" - + "rce\212N\020RegionOperations\202\323\344\223\002_\"A/compute/v" - + "1/projects/{project}/regions/{region}/ta" - + "rgetHttpProxies:\032target_http_proxy_resou" - + "rce\022\315\001\n\004List\022;.google.cloud.compute.v1.L" - + "istRegionTargetHttpProxiesRequest\032,.goog" - + "le.cloud.compute.v1.TargetHttpProxyList\"" - + "Z\332A\016project,region\202\323\344\223\002C\022A/compute/v1/pr" + + "tion\"\247\001\332A*project,region,target_https_pr" + + "oxy_resource\212N\020RegionOperations\202\323\344\223\002a\"B/" + + "compute/v1/projects/{project}/regions/{r" + + "egion}/targetHttpsProxies:\033target_https_" + + "proxy_resource\022\320\001\n\004List\022<.google.cloud.c" + + "ompute.v1.ListRegionTargetHttpsProxiesRe" + + "quest\032-.google.cloud.compute.v1.TargetHt" + + "tpsProxyList\"[\332A\016project,region\202\323\344\223\002D\022B/" + + "compute/v1/projects/{project}/regions/{r" + + "egion}/targetHttpsProxies\022\272\002\n\005Patch\022;.go" + + "ogle.cloud.compute.v1.PatchRegionTargetH" + + "ttpsProxyRequest\032\".google.cloud.compute." + + "v1.Operation\"\317\001\332A=project,region,target_" + + "https_proxy,target_https_proxy_resource\212" + + "N\020RegionOperations\202\323\344\223\002v2W/compute/v1/pr" + "ojects/{project}/regions/{region}/target" - + "HttpProxies\022\306\002\n\tSetUrlMap\022>.google.cloud" - + ".compute.v1.SetUrlMapRegionTargetHttpPro" - + "xyRequest\032\".google.cloud.compute.v1.Oper" - + "ation\"\324\001\332A;project,region,target_http_pr" - + "oxy,url_map_reference_resource\212N\020RegionO" - + "perations\202\323\344\223\002}\"_/compute/v1/projects/{p" - + "roject}/regions/{region}/targetHttpProxi" - + "es/{target_http_proxy}/setUrlMap:\032url_ma" - + "p_reference_resource\032r\312A\026compute.googlea" + + "HttpsProxies/{target_https_proxy}:\033targe" + + "t_https_proxy_resource\022\264\003\n\022SetSslCertifi" + + "cates\022H.google.cloud.compute.v1.SetSslCe" + + "rtificatesRegionTargetHttpsProxyRequest\032" + + "\".google.cloud.compute.v1.Operation\"\257\002\332A" + + "cproject,region,target_https_proxy,regio" + + "n_target_https_proxies_set_ssl_certifica" + + "tes_request_resource\212N\020RegionOperations\202" + + "\323\344\223\002\257\001\"j/compute/v1/projects/{project}/r" + + "egions/{region}/targetHttpsProxies/{targ" + + "et_https_proxy}/setSslCertificates:Aregi" + + "on_target_https_proxies_set_ssl_certific" + + "ates_request_resource\022\312\002\n\tSetUrlMap\022?.go" + + "ogle.cloud.compute.v1.SetUrlMapRegionTar" + + "getHttpsProxyRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"\327\001\332A.google.clo" - + "ud.compute.v1.AggregatedListResourcePoli" - + "ciesRequest\0325.google.cloud.compute.v1.Re" - + "sourcePolicyAggregatedList\"L\332A\007project\202\323" - + "\344\223\002<\022:/compute/v1/projects/{project}/agg" - + "regated/resourcePolicies\022\363\001\n\006Delete\0224.go" - + "ogle.cloud.compute.v1.DeleteResourcePoli" - + "cyRequest\032\".google.cloud.compute.v1.Oper" - + "ation\"\216\001\332A\036project,region,resource_polic" - + "y\212N\020RegionOperations\202\323\344\223\002T*R/compute/v1/" - + "projects/{project}/regions/{region}/reso" - + "urcePolicies/{resource_policy}\022\336\001\n\003Get\0221" - + ".google.cloud.compute.v1.GetResourcePoli" - + "cyRequest\032\'.google.cloud.compute.v1.Reso" - + "urcePolicy\"{\332A\036project,region,resource_p" - + "olicy\202\323\344\223\002T\022R/compute/v1/projects/{proje" - + "ct}/regions/{region}/resourcePolicies/{r" - + "esource_policy}\022\347\001\n\014GetIamPolicy\022:.googl" - + "e.cloud.compute.v1.GetIamPolicyResourceP" - + "olicyRequest\032\037.google.cloud.compute.v1.P" - + "olicy\"z\332A\027project,region,resource\202\323\344\223\002Z\022" - + "X/compute/v1/projects/{project}/regions/" - + "{region}/resourcePolicies/{resource}/get" - + "IamPolicy\022\204\002\n\006Insert\0224.google.cloud.comp" - + "ute.v1.InsertResourcePolicyRequest\032\".goo" - + "gle.cloud.compute.v1.Operation\"\237\001\332A\'proj" - + "ect,region,resource_policy_resource\212N\020Re" - + "gionOperations\202\323\344\223\002\\\"@/compute/v1/projec" - + "ts/{project}/regions/{region}/resourcePo" - + "licies:\030resource_policy_resource\022\304\001\n\004Lis" - + "t\0224.google.cloud.compute.v1.ListResource" - + "PoliciesRequest\032+.google.cloud.compute.v" - + "1.ResourcePolicyList\"Y\332A\016project,region\202" - + "\323\344\223\002B\022@/compute/v1/projects/{project}/re" - + "gions/{region}/resourcePolicies\022\244\002\n\005Patc" - + "h\0223.google.cloud.compute.v1.PatchResourc" - + "ePolicyRequest\032\".google.cloud.compute.v1" - + ".Operation\"\301\001\332A7project,region,resource_" - + "policy,resource_policy_resource\212N\020Region" - + "Operations\202\323\344\223\002n2R/compute/v1/projects/{" - + "project}/regions/{region}/resourcePolici" - + "es/{resource_policy}:\030resource_policy_re" - + "source\022\257\002\n\014SetIamPolicy\022:.google.cloud.c" - + "ompute.v1.SetIamPolicyResourcePolicyRequ" - + "est\032\037.google.cloud.compute.v1.Policy\"\301\001\332" - + "A:project,region,resource,region_set_pol" - + "icy_request_resource\202\323\344\223\002~\"X/compute/v1/" - + "projects/{project}/regions/{region}/reso" - + "urcePolicies/{resource}/setIamPolicy:\"re" - + "gion_set_policy_request_resource\022\321\002\n\022Tes" - + "tIamPermissions\022@.google.cloud.compute.v" - + "1.TestIamPermissionsResourcePolicyReques" - + "t\0320.google.cloud.compute.v1.TestPermissi" - + "onsResponse\"\306\001\332A9project,region,resource" - + ",test_permissions_request_resource\202\323\344\223\002\203" - + "\001\"^/compute/v1/projects/{project}/region" - + "s/{region}/resourcePolicies/{resource}/t" - + "estIamPermissions:!test_permissions_requ" - + "est_resource\032r\312A\026compute.googleapis.com\322" - + "AVhttps://www.googleapis.com/auth/comput" - + "e,https://www.googleapis.com/auth/cloud-" - + "platform2\216 \n\007Routers\022\273\001\n\016AggregatedList\022" - + "5.google.cloud.compute.v1.AggregatedList" - + "RoutersRequest\032-.google.cloud.compute.v1" - + ".RouterAggregatedList\"C\332A\007project\202\323\344\223\0023\022" - + "1/compute/v1/projects/{project}/aggregat" - + "ed/routers\022\317\001\n\006Delete\022,.google.cloud.com" - + "pute.v1.DeleteRouterRequest\032\".google.clo" - + "ud.compute.v1.Operation\"s\332A\025project,regi" - + "on,router\212N\020RegionOperations\202\323\344\223\002B*@/com" - + "pute/v1/projects/{project}/regions/{regi" - + "on}/routers/{router}\022\370\001\n\021DeleteRoutePoli" - + "cy\0227.google.cloud.compute.v1.DeleteRoute" - + "PolicyRouterRequest\032\".google.cloud.compu" - + "te.v1.Operation\"\205\001\332A\025project,region,rout" - + "er\212N\020RegionOperations\202\323\344\223\002T\"R/compute/v1" - + "/projects/{project}/regions/{region}/rou" - + "ters/{router}/deleteRoutePolicy\022\263\001\n\003Get\022" - + ").google.cloud.compute.v1.GetRouterReque" - + "st\032\037.google.cloud.compute.v1.Router\"`\332A\025" - + "project,region,router\202\323\344\223\002B\022@/compute/v1" - + "/projects/{project}/regions/{region}/rou" - + "ters/{router}\022\335\001\n\014GetNatIpInfo\0222.google." - + "cloud.compute.v1.GetNatIpInfoRouterReque" - + "st\032*.google.cloud.compute.v1.NatIpInfoRe" - + "sponse\"m\332A\025project,region,router\202\323\344\223\002O\022M" - + "/compute/v1/projects/{project}/regions/{" - + "region}/routers/{router}/getNatIpInfo\022\365\001" - + "\n\021GetNatMappingInfo\0228.google.cloud.compu" - + "te.v1.GetNatMappingInfoRoutersRequest\0322." - + "google.cloud.compute.v1.VmEndpointNatMap" - + "pingsList\"r\332A\025project,region,router\202\323\344\223\002" - + "T\022R/compute/v1/projects/{project}/region" - + "s/{region}/routers/{router}/getNatMappin" - + "gInfo\022\357\001\n\016GetRoutePolicy\0224.google.cloud." - + "compute.v1.GetRoutePolicyRouterRequest\0326" - + ".google.cloud.compute.v1.RoutersGetRoute" - + "PolicyResponse\"o\332A\025project,region,router" - + "\202\323\344\223\002Q\022O/compute/v1/projects/{project}/r" - + "egions/{region}/routers/{router}/getRout" - + "ePolicy\022\351\001\n\017GetRouterStatus\0225.google.clo" - + "ud.compute.v1.GetRouterStatusRouterReque" - + "st\032-.google.cloud.compute.v1.RouterStatu" - + "sResponse\"p\332A\025project,region,router\202\323\344\223\002" - + "R\022P/compute/v1/projects/{project}/region" - + "s/{region}/routers/{router}/getRouterSta" - + "tus\022\341\001\n\006Insert\022,.google.cloud.compute.v1" - + ".InsertRouterRequest\032\".google.cloud.comp" - + "ute.v1.Operation\"\204\001\332A\036project,region,rou" - + "ter_resource\212N\020RegionOperations\202\323\344\223\002J\"7/" - + "compute/v1/projects/{project}/regions/{r" - + "egion}/routers:\017router_resource\022\252\001\n\004List" - + "\022+.google.cloud.compute.v1.ListRoutersRe" - + "quest\032#.google.cloud.compute.v1.RouterLi" - + "st\"P\332A\016project,region\202\323\344\223\0029\0227/compute/v1" - + "/projects/{project}/regions/{region}/rou" - + "ters\022\344\001\n\rListBgpRoutes\0224.google.cloud.co" - + "mpute.v1.ListBgpRoutesRoutersRequest\032-.g" - + "oogle.cloud.compute.v1.RoutersListBgpRou" - + "tes\"n\332A\025project,region,router\202\323\344\223\002P\022N/co" + + "ervation}/resize:$reservations_resize_re" + + "quest_resource\022\236\002\n\014SetIamPolicy\0227.google" + + ".cloud.compute.v1.SetIamPolicyReservatio" + + "nRequest\032\037.google.cloud.compute.v1.Polic" + + "y\"\263\001\332A6project,zone,resource,zone_set_po" + + "licy_request_resource\202\323\344\223\002t\"P/compute/v1" + + "/projects/{project}/zones/{zone}/reserva" + + "tions/{resource}/setIamPolicy: zone_set_" + + "policy_request_resource\022\303\002\n\022TestIamPermi" + + "ssions\022=.google.cloud.compute.v1.TestIam" + + "PermissionsReservationRequest\0320.google.c" + + "loud.compute.v1.TestPermissionsResponse\"" + + "\273\001\332A7project,zone,resource,test_permissi" + + "ons_request_resource\202\323\344\223\002{\"V/compute/v1/" + + "projects/{project}/zones/{zone}/reservat" + + "ions/{resource}/testIamPermissions:!test" + + "_permissions_request_resource\022\207\002\n\006Update" + + "\0221.google.cloud.compute.v1.UpdateReserva" + + "tionRequest\032\".google.cloud.compute.v1.Op" + + "eration\"\245\001\332A-project,zone,reservation,re" + + "servation_resource\212N\016ZoneOperations\202\323\344\223\002" + + "^2F/compute/v1/projects/{project}/zones/" + + "{zone}/reservations/{reservation}:\024reser" + + "vation_resource\032r\312A\026compute.googleapis.c" + + "om\322AVhttps://www.googleapis.com/auth/com" + + "pute,https://www.googleapis.com/auth/clo" + + "ud-platform2\232\023\n\020ResourcePolicies\022\325\001\n\016Agg" + + "regatedList\022>.google.cloud.compute.v1.Ag" + + "gregatedListResourcePoliciesRequest\0325.go" + + "ogle.cloud.compute.v1.ResourcePolicyAggr" + + "egatedList\"L\332A\007project\202\323\344\223\002<\022:/compute/v" + + "1/projects/{project}/aggregated/resource" + + "Policies\022\363\001\n\006Delete\0224.google.cloud.compu" + + "te.v1.DeleteResourcePolicyRequest\032\".goog" + + "le.cloud.compute.v1.Operation\"\216\001\332A\036proje" + + "ct,region,resource_policy\212N\020RegionOperat" + + "ions\202\323\344\223\002T*R/compute/v1/projects/{projec" + + "t}/regions/{region}/resourcePolicies/{re" + + "source_policy}\022\336\001\n\003Get\0221.google.cloud.co" + + "mpute.v1.GetResourcePolicyRequest\032\'.goog" + + "le.cloud.compute.v1.ResourcePolicy\"{\332A\036p" + + "roject,region,resource_policy\202\323\344\223\002T\022R/co" + "mpute/v1/projects/{project}/regions/{reg" - + "ion}/routers/{router}/listBgpRoutes\022\364\001\n\021" - + "ListRoutePolicies\0228.google.cloud.compute" - + ".v1.ListRoutePoliciesRoutersRequest\0321.go" - + "ogle.cloud.compute.v1.RoutersListRoutePo" - + "licies\"r\332A\025project,region,router\202\323\344\223\002T\022R" - + "/compute/v1/projects/{project}/regions/{" - + "region}/routers/{router}/listRoutePolici" - + "es\022\357\001\n\005Patch\022+.google.cloud.compute.v1.P" - + "atchRouterRequest\032\".google.cloud.compute" - + ".v1.Operation\"\224\001\332A%project,region,router" - + ",router_resource\212N\020RegionOperations\202\323\344\223\002" - + "S2@/compute/v1/projects/{project}/region" - + "s/{region}/routers/{router}:\017router_reso" - + "urce\022\242\002\n\020PatchRoutePolicy\0226.google.cloud" - + ".compute.v1.PatchRoutePolicyRouterReques" - + "t\032\".google.cloud.compute.v1.Operation\"\261\001" - + "\332A+project,region,router,route_policy_re" - + "source\212N\020RegionOperations\202\323\344\223\002j\"Q/comput" - + "e/v1/projects/{project}/regions/{region}" - + "/routers/{router}/patchRoutePolicy:\025rout" - + "e_policy_resource\022\365\001\n\007Preview\022-.google.c" - + "loud.compute.v1.PreviewRouterRequest\032/.g" - + "oogle.cloud.compute.v1.RoutersPreviewRes" - + "ponse\"\211\001\332A%project,region,router,router_" - + "resource\202\323\344\223\002[\"H/compute/v1/projects/{pr" - + "oject}/regions/{region}/routers/{router}" - + "/preview:\017router_resource\022\361\001\n\006Update\022,.g" - + "oogle.cloud.compute.v1.UpdateRouterReque" - + "st\032\".google.cloud.compute.v1.Operation\"\224" - + "\001\332A%project,region,router,router_resourc" - + "e\212N\020RegionOperations\202\323\344\223\002S\032@/compute/v1/" - + "projects/{project}/regions/{region}/rout" - + "ers/{router}:\017router_resource\022\245\002\n\021Update" - + "RoutePolicy\0227.google.cloud.compute.v1.Up" - + "dateRoutePolicyRouterRequest\032\".google.cl" - + "oud.compute.v1.Operation\"\262\001\332A+project,re" - + "gion,router,route_policy_resource\212N\020Regi" - + "onOperations\202\323\344\223\002k\"R/compute/v1/projects" + + "ion}/resourcePolicies/{resource_policy}\022" + + "\347\001\n\014GetIamPolicy\022:.google.cloud.compute." + + "v1.GetIamPolicyResourcePolicyRequest\032\037.g" + + "oogle.cloud.compute.v1.Policy\"z\332A\027projec" + + "t,region,resource\202\323\344\223\002Z\022X/compute/v1/pro" + + "jects/{project}/regions/{region}/resourc" + + "ePolicies/{resource}/getIamPolicy\022\204\002\n\006In" + + "sert\0224.google.cloud.compute.v1.InsertRes" + + "ourcePolicyRequest\032\".google.cloud.comput" + + "e.v1.Operation\"\237\001\332A\'project,region,resou" + + "rce_policy_resource\212N\020RegionOperations\202\323" + + "\344\223\002\\\"@/compute/v1/projects/{project}/reg" + + "ions/{region}/resourcePolicies:\030resource" + + "_policy_resource\022\304\001\n\004List\0224.google.cloud" + + ".compute.v1.ListResourcePoliciesRequest\032" + + "+.google.cloud.compute.v1.ResourcePolicy" + + "List\"Y\332A\016project,region\202\323\344\223\002B\022@/compute/" + + "v1/projects/{project}/regions/{region}/r" + + "esourcePolicies\022\244\002\n\005Patch\0223.google.cloud" + + ".compute.v1.PatchResourcePolicyRequest\032\"" + + ".google.cloud.compute.v1.Operation\"\301\001\332A7" + + "project,region,resource_policy,resource_" + + "policy_resource\212N\020RegionOperations\202\323\344\223\002n" + + "2R/compute/v1/projects/{project}/regions" + + "/{region}/resourcePolicies/{resource_pol" + + "icy}:\030resource_policy_resource\022\257\002\n\014SetIa" + + "mPolicy\022:.google.cloud.compute.v1.SetIam" + + "PolicyResourcePolicyRequest\032\037.google.clo" + + "ud.compute.v1.Policy\"\301\001\332A:project,region" + + ",resource,region_set_policy_request_reso" + + "urce\202\323\344\223\002~\"X/compute/v1/projects/{projec" + + "t}/regions/{region}/resourcePolicies/{re" + + "source}/setIamPolicy:\"region_set_policy_" + + "request_resource\022\321\002\n\022TestIamPermissions\022" + + "@.google.cloud.compute.v1.TestIamPermiss" + + "ionsResourcePolicyRequest\0320.google.cloud" + + ".compute.v1.TestPermissionsResponse\"\306\001\332A" + + "9project,region,resource,test_permission" + + "s_request_resource\202\323\344\223\002\203\001\"^/compute/v1/p" + + "rojects/{project}/regions/{region}/resou" + + "rcePolicies/{resource}/testIamPermission" + + "s:!test_permissions_request_resource\032r\312A" + + "\026compute.googleapis.com\322AVhttps://www.go" + + "ogleapis.com/auth/compute,https://www.go" + + "ogleapis.com/auth/cloud-platform2\216 \n\007Rou" + + "ters\022\273\001\n\016AggregatedList\0225.google.cloud.c" + + "ompute.v1.AggregatedListRoutersRequest\032-" + + ".google.cloud.compute.v1.RouterAggregate" + + "dList\"C\332A\007project\202\323\344\223\0023\0221/compute/v1/pro" + + "jects/{project}/aggregated/routers\022\317\001\n\006D" + + "elete\022,.google.cloud.compute.v1.DeleteRo" + + "uterRequest\032\".google.cloud.compute.v1.Op" + + "eration\"s\332A\025project,region,router\212N\020Regi" + + "onOperations\202\323\344\223\002B*@/compute/v1/projects" + "/{project}/regions/{region}/routers/{rou" - + "ter}/updateRoutePolicy:\025route_policy_res" - + "ource\032r\312A\026compute.googleapis.com\322AVhttps" - + "://www.googleapis.com/auth/compute,https" - + "://www.googleapis.com/auth/cloud-platfor" - + "m2\300\006\n\006Routes\022\272\001\n\006Delete\022+.google.cloud.c" - + "ompute.v1.DeleteRouteRequest\032\".google.cl" - + "oud.compute.v1.Operation\"_\332A\rproject,rou" - + "te\212N\020GlobalOperations\202\323\344\223\0026*4/compute/v1" - + "/projects/{project}/global/routes/{route" - + "}\022\235\001\n\003Get\022(.google.cloud.compute.v1.GetR" - + "outeRequest\032\036.google.cloud.compute.v1.Ro" - + "ute\"L\332A\rproject,route\202\323\344\223\0026\0224/compute/v1" - + "/projects/{project}/global/routes/{route" - + "}\022\313\001\n\006Insert\022+.google.cloud.compute.v1.I" - + "nsertRouteRequest\032\".google.cloud.compute" - + ".v1.Operation\"p\332A\026project,route_resource" - + "\212N\020GlobalOperations\202\323\344\223\002>\",/compute/v1/p" - + "rojects/{project}/global/routes:\016route_r" - + "esource\022\226\001\n\004List\022*.google.cloud.compute." - + "v1.ListRoutesRequest\032\".google.cloud.comp" - + "ute.v1.RouteList\">\332A\007project\202\323\344\223\002.\022,/com" - + "pute/v1/projects/{project}/global/routes" - + "\032r\312A\026compute.googleapis.com\322AVhttps://ww" - + "w.googleapis.com/auth/compute,https://ww" - + "w.googleapis.com/auth/cloud-platform2\357\030\n" - + "\020SecurityPolicies\022\251\002\n\007AddRule\0225.google.c" - + "loud.compute.v1.AddRuleSecurityPolicyReq" + + "ter}\022\370\001\n\021DeleteRoutePolicy\0227.google.clou" + + "d.compute.v1.DeleteRoutePolicyRouterRequ" + + "est\032\".google.cloud.compute.v1.Operation\"" + + "\205\001\332A\025project,region,router\212N\020RegionOpera" + + "tions\202\323\344\223\002T\"R/compute/v1/projects/{proje" + + "ct}/regions/{region}/routers/{router}/de" + + "leteRoutePolicy\022\263\001\n\003Get\022).google.cloud.c" + + "ompute.v1.GetRouterRequest\032\037.google.clou" + + "d.compute.v1.Router\"`\332A\025project,region,r" + + "outer\202\323\344\223\002B\022@/compute/v1/projects/{proje" + + "ct}/regions/{region}/routers/{router}\022\335\001" + + "\n\014GetNatIpInfo\0222.google.cloud.compute.v1" + + ".GetNatIpInfoRouterRequest\032*.google.clou" + + "d.compute.v1.NatIpInfoResponse\"m\332A\025proje" + + "ct,region,router\202\323\344\223\002O\022M/compute/v1/proj" + + "ects/{project}/regions/{region}/routers/" + + "{router}/getNatIpInfo\022\365\001\n\021GetNatMappingI" + + "nfo\0228.google.cloud.compute.v1.GetNatMapp" + + "ingInfoRoutersRequest\0322.google.cloud.com" + + "pute.v1.VmEndpointNatMappingsList\"r\332A\025pr" + + "oject,region,router\202\323\344\223\002T\022R/compute/v1/p" + + "rojects/{project}/regions/{region}/route" + + "rs/{router}/getNatMappingInfo\022\357\001\n\016GetRou" + + "tePolicy\0224.google.cloud.compute.v1.GetRo" + + "utePolicyRouterRequest\0326.google.cloud.co" + + "mpute.v1.RoutersGetRoutePolicyResponse\"o" + + "\332A\025project,region,router\202\323\344\223\002Q\022O/compute" + + "/v1/projects/{project}/regions/{region}/" + + "routers/{router}/getRoutePolicy\022\351\001\n\017GetR" + + "outerStatus\0225.google.cloud.compute.v1.Ge" + + "tRouterStatusRouterRequest\032-.google.clou" + + "d.compute.v1.RouterStatusResponse\"p\332A\025pr" + + "oject,region,router\202\323\344\223\002R\022P/compute/v1/p" + + "rojects/{project}/regions/{region}/route" + + "rs/{router}/getRouterStatus\022\341\001\n\006Insert\022," + + ".google.cloud.compute.v1.InsertRouterReq" + "uest\032\".google.cloud.compute.v1.Operation" - + "\"\302\001\332A5project,security_policy,security_p" - + "olicy_rule_resource\212N\020GlobalOperations\202\323" - + "\344\223\002q\"P/compute/v1/projects/{project}/glo" - + "bal/securityPolicies/{security_policy}/a" - + "ddRule:\035security_policy_rule_resource\022\327\001" - + "\n\016AggregatedList\022>.google.cloud.compute." - + "v1.AggregatedListSecurityPoliciesRequest" - + "\0327.google.cloud.compute.v1.SecurityPolic" - + "iesAggregatedList\"L\332A\007project\202\323\344\223\002<\022:/co" - + "mpute/v1/projects/{project}/aggregated/s" - + "ecurityPolicies\022\341\001\n\006Delete\0224.google.clou" - + "d.compute.v1.DeleteSecurityPolicyRequest" - + "\032\".google.cloud.compute.v1.Operation\"}\332A" - + "\027project,security_policy\212N\020GlobalOperati" - + "ons\202\323\344\223\002J*H/compute/v1/projects/{project" - + "}/global/securityPolicies/{security_poli" - + "cy}\022\315\001\n\003Get\0221.google.cloud.compute.v1.Ge" - + "tSecurityPolicyRequest\032\'.google.cloud.co" - + "mpute.v1.SecurityPolicy\"j\332A\027project,secu" - + "rity_policy\202\323\344\223\002J\022H/compute/v1/projects/" - + "{project}/global/securityPolicies/{secur" - + "ity_policy}\022\341\001\n\007GetRule\0225.google.cloud.c" - + "ompute.v1.GetRuleSecurityPolicyRequest\032+" - + ".google.cloud.compute.v1.SecurityPolicyR" - + "ule\"r\332A\027project,security_policy\202\323\344\223\002R\022P/" - + "compute/v1/projects/{project}/global/sec" - + "urityPolicies/{security_policy}/getRule\022" - + "\363\001\n\006Insert\0224.google.cloud.compute.v1.Ins" - + "ertSecurityPolicyRequest\032\".google.cloud." - + "compute.v1.Operation\"\216\001\332A project,securi" - + "ty_policy_resource\212N\020GlobalOperations\202\323\344" - + "\223\002R\"6/compute/v1/projects/{project}/glob" - + "al/securityPolicies:\030security_policy_res" - + "ource\022\263\001\n\004List\0224.google.cloud.compute.v1" - + ".ListSecurityPoliciesRequest\032+.google.cl" - + "oud.compute.v1.SecurityPolicyList\"H\332A\007pr" - + "oject\202\323\344\223\0028\0226/compute/v1/projects/{proje" - + "ct}/global/securityPolicies\022\256\002\n\037ListPrec" - + "onfiguredExpressionSets\022O.google.cloud.c" - + "ompute.v1.ListPreconfiguredExpressionSet" - + "sSecurityPoliciesRequest\032P.google.cloud." - + "compute.v1.SecurityPoliciesListPreconfig" - + "uredExpressionSetsResponse\"h\332A\007project\202\323" - + "\344\223\002X\022V/compute/v1/projects/{project}/glo" - + "bal/securityPolicies/listPreconfiguredEx" - + "pressionSets\022\223\002\n\005Patch\0223.google.cloud.co" - + "mpute.v1.PatchSecurityPolicyRequest\032\".go" - + "ogle.cloud.compute.v1.Operation\"\260\001\332A0pro" - + "ject,security_policy,security_policy_res" - + "ource\212N\020GlobalOperations\202\323\344\223\002d2H/compute" - + "/v1/projects/{project}/global/securityPo" - + "licies/{security_policy}:\030security_polic" - + "y_resource\022\257\002\n\tPatchRule\0227.google.cloud." - + "compute.v1.PatchRuleSecurityPolicyReques" - + "t\032\".google.cloud.compute.v1.Operation\"\304\001" - + "\332A5project,security_policy,security_poli" - + "cy_rule_resource\212N\020GlobalOperations\202\323\344\223\002" - + "s\"R/compute/v1/projects/{project}/global" - + "/securityPolicies/{security_policy}/patc" - + "hRule:\035security_policy_rule_resource\022\365\001\n" - + "\nRemoveRule\0228.google.cloud.compute.v1.Re" - + "moveRuleSecurityPolicyRequest\032\".google.c" - + "loud.compute.v1.Operation\"\210\001\332A\027project,s" - + "ecurity_policy\212N\020GlobalOperations\202\323\344\223\002U\"" - + "S/compute/v1/projects/{project}/global/s" - + "ecurityPolicies/{security_policy}/remove" - + "Rule\022\253\002\n\tSetLabels\0227.google.cloud.comput" - + "e.v1.SetLabelsSecurityPolicyRequest\032\".go" - + "ogle.cloud.compute.v1.Operation\"\300\001\332A3pro" - + "ject,resource,global_set_labels_request_" - + "resource\212N\020GlobalOperations\202\323\344\223\002q\"K/comp" - + "ute/v1/projects/{project}/global/securit" - + "yPolicies/{resource}/setLabels:\"global_s" - + "et_labels_request_resource\032r\312A\026compute.g" - + "oogleapis.com\322AVhttps://www.googleapis.c" - + "om/auth/compute,https://www.googleapis.c" - + "om/auth/cloud-platform2\360\023\n\022ServiceAttach" - + "ments\022\334\001\n\016AggregatedList\022@.google.cloud." - + "compute.v1.AggregatedListServiceAttachme" - + "ntsRequest\0328.google.cloud.compute.v1.Ser", - "viceAttachmentAggregatedList\"N\332A\007project" - + "\202\323\344\223\002>\022\",/compute/v1/projects/{project" + + "}/global/routes:\016route_resource\022\226\001\n\004List" + + "\022*.google.cloud.compute.v1.ListRoutesReq" + + "uest\032\".google.cloud.compute.v1.RouteList" + + "\">\332A\007project\202\323\344\223\002.\022,/compute/v1/projects" + + "/{project}/global/routes\032r\312A\026compute.goo" + + "gleapis.com\322AVhttps://www.googleapis.com" + + "/auth/compute,https://www.googleapis.com" + + "/auth/cloud-platform2\357\030\n\020SecurityPolicie" + + "s\022\251\002\n\007AddRule\0225.google.cloud.compute.v1." + + "AddRuleSecurityPolicyRequest\032\".google.cl" + + "oud.compute.v1.Operation\"\302\001\332A5project,se" + + "curity_policy,security_policy_rule_resou" + + "rce\212N\020GlobalOperations\202\323\344\223\002q\"P/compute/v" + + "1/projects/{project}/global/securityPoli" + + "cies/{security_policy}/addRule:\035security" + + "_policy_rule_resource\022\327\001\n\016AggregatedList" + + "\022>.google.cloud.compute.v1.AggregatedLis" + + "tSecurityPoliciesRequest\0327.google.cloud." + + "compute.v1.SecurityPoliciesAggregatedLis" + + "t\"L\332A\007project\202\323\344\223\002<\022:/compute/v1/project" + + "s/{project}/aggregated/securityPolicies\022" + + "\341\001\n\006Delete\0224.google.cloud.compute.v1.Del" + + "eteSecurityPolicyRequest\032\".google.cloud." + + "compute.v1.Operation\"}\332A\027project,securit" + + "y_policy\212N\020GlobalOperations\202\323\344\223\002J*H/comp" + + "ute/v1/projects/{project}/global/securit" + + "yPolicies/{security_policy}\022\315\001\n\003Get\0221.go" + + "ogle.cloud.compute.v1.GetSecurityPolicyR" + + "equest\032\'.google.cloud.compute.v1.Securit" + + "yPolicy\"j\332A\027project,security_policy\202\323\344\223\002" + + "J\022H/compute/v1/projects/{project}/global" + + "/securityPolicies/{security_policy}\022\341\001\n\007" + + "GetRule\0225.google.cloud.compute.v1.GetRul" + + "eSecurityPolicyRequest\032+.google.cloud.co" + + "mpute.v1.SecurityPolicyRule\"r\332A\027project," + + "security_policy\202\323\344\223\002R\022P/compute/v1/proje" + + "cts/{project}/global/securityPolicies/{s" + + "ecurity_policy}/getRule\022\363\001\n\006Insert\0224.goo" + + "gle.cloud.compute.v1.InsertSecurityPolic" + + "yRequest\032\".google.cloud.compute.v1.Opera" + + "tion\"\216\001\332A project,security_policy_resour" + + "ce\212N\020GlobalOperations\202\323\344\223\002R\"6/compute/v1" + + "/projects/{project}/global/securityPolic" + + "ies:\030security_policy_resource\022\263\001\n\004List\0224" + + ".google.cloud.compute.v1.ListSecurityPol" + + "iciesRequest\032+.google.cloud.compute.v1.S" + + "ecurityPolicyList\"H\332A\007project\202\323\344\223\0028\0226/co" + + "mpute/v1/projects/{project}/global/secur" + + "ityPolicies\022\256\002\n\037ListPreconfiguredExpress" + + "ionSets\022O.google.cloud.compute.v1.ListPr" + + "econfiguredExpressionSetsSecurityPolicie" + + "sRequest\032P.google.cloud.compute.v1.Secur" + + "ityPoliciesListPreconfiguredExpressionSe" + + "tsResponse\"h\332A\007project\202\323\344\223\002X\022V/compute/v" + + "1/projects/{project}/global/securityPoli" + + "cies/listPreconfiguredExpressionSets\022\223\002\n" + + "\005Patch\0223.google.cloud.compute.v1.PatchSe" + + "curityPolicyRequest\032\".google.cloud.compu" + + "te.v1.Operation\"\260\001\332A0project,security_po" + + "licy,security_policy_resource\212N\020GlobalOp" + + "erations\202\323\344\223\002d2H/compute/v1/projects/{pr" + + "oject}/global/securityPolicies/{security" + + "_policy}:\030security_policy_resource\022\257\002\n\tP" + + "atchRule\0227.google.cloud.compute.v1.Patch" + + "RuleSecurityPolicyRequest\032\".google.cloud" + + ".compute.v1.Operation\"\304\001\332A5project,secur", + "ity_policy,security_policy_rule_resource" + + "\212N\020GlobalOperations\202\323\344\223\002s\"R/compute/v1/p" + + "rojects/{project}/global/securityPolicie" + + "s/{security_policy}/patchRule:\035security_" + + "policy_rule_resource\022\365\001\n\nRemoveRule\0228.go" + + "ogle.cloud.compute.v1.RemoveRuleSecurity" + + "PolicyRequest\032\".google.cloud.compute.v1." + + "Operation\"\210\001\332A\027project,security_policy\212N" + + "\020GlobalOperations\202\323\344\223\002U\"S/compute/v1/pro" + + "jects/{project}/global/securityPolicies/" + + "{security_policy}/removeRule\022\253\002\n\tSetLabe" + + "ls\0227.google.cloud.compute.v1.SetLabelsSe" + + "curityPolicyRequest\032\".google.cloud.compu" + + "te.v1.Operation\"\300\001\332A3project,resource,gl" + + "obal_set_labels_request_resource\212N\020Globa" + + "lOperations\202\323\344\223\002q\"K/compute/v1/projects/" + + "{project}/global/securityPolicies/{resou" + + "rce}/setLabels:\"global_set_labels_reques" + + "t_resource\032r\312A\026compute.googleapis.com\322AV" + + "https://www.googleapis.com/auth/compute," + + "https://www.googleapis.com/auth/cloud-pl" + + "atform2\360\023\n\022ServiceAttachments\022\334\001\n\016Aggreg" + + "atedList\022@.google.cloud.compute.v1.Aggre" + + "gatedListServiceAttachmentsRequest\0328.goo" + + "gle.cloud.compute.v1.ServiceAttachmentAg" + + "gregatedList\"N\332A\007project\202\323\344\223\002>\022/co" - + "mpute/v1/projects/{project}/global/sslPo" - + "licies/{ssl_policy}\022\264\001\n\003Get\022,.google.clo" - + "ud.compute.v1.GetSslPolicyRequest\032\".goog" - + "le.cloud.compute.v1.SslPolicy\"[\332A\022projec" - + "t,ssl_policy\202\323\344\223\002@\022>/compute/v1/projects" - + "/{project}/global/sslPolicies/{ssl_polic" - + "y}\022\336\001\n\006Insert\022/.google.cloud.compute.v1." - + "InsertSslPolicyRequest\032\".google.cloud.co" - + "mpute.v1.Operation\"\177\332A\033project,ssl_polic" - + "y_resource\212N\020GlobalOperations\202\323\344\223\002H\"1/co" - + "mpute/v1/projects/{project}/global/sslPo" - + "licies:\023ssl_policy_resource\022\246\001\n\004List\022/.g" - + "oogle.cloud.compute.v1.ListSslPoliciesRe" - + "quest\032(.google.cloud.compute.v1.SslPolic" - + "iesList\"C\332A\007project\202\323\344\223\0023\0221/compute/v1/p" - + "rojects/{project}/global/sslPolicies\022\367\001\n" - + "\025ListAvailableFeatures\022@.google.cloud.co" - + "mpute.v1.ListAvailableFeaturesSslPolicie" - + "sRequest\032A.google.cloud.compute.v1.SslPo" - + "liciesListAvailableFeaturesResponse\"Y\332A\007" - + "project\202\323\344\223\002I\022G/compute/v1/projects/{pro" - + "ject}/global/sslPolicies/listAvailableFe" - + "atures\022\365\001\n\005Patch\022..google.cloud.compute." - + "v1.PatchSslPolicyRequest\032\".google.cloud." - + "compute.v1.Operation\"\227\001\332A&project,ssl_po" - + "licy,ssl_policy_resource\212N\020GlobalOperati" - + "ons\202\323\344\223\002U2>/compute/v1/projects/{project" - + "}/global/sslPolicies/{ssl_policy}:\023ssl_p" - + "olicy_resource\032r\312A\026compute.googleapis.co" - + "m\322AVhttps://www.googleapis.com/auth/comp" - + "ute,https://www.googleapis.com/auth/clou" - + "d-platform2\265\006\n\020StoragePoolTypes\022\326\001\n\016Aggr" - + "egatedList\022>.google.cloud.compute.v1.Agg" - + "regatedListStoragePoolTypesRequest\0326.goo" - + "gle.cloud.compute.v1.StoragePoolTypeAggr" - + "egatedList\"L\332A\007project\202\323\344\223\002<\022:/compute/v" - + "1/projects/{project}/aggregated/storageP" - + "oolTypes\022\336\001\n\003Get\0222.google.cloud.compute." - + "v1.GetStoragePoolTypeRequest\032(.google.cl" - + "oud.compute.v1.StoragePoolType\"y\332A\036proje" - + "ct,zone,storage_pool_type\202\323\344\223\002R\022P/comput" - + "e/v1/projects/{project}/zones/{zone}/sto" - + "ragePoolTypes/{storage_pool_type}\022\277\001\n\004Li" - + "st\0224.google.cloud.compute.v1.ListStorage" - + "PoolTypesRequest\032,.google.cloud.compute." - + "v1.StoragePoolTypeList\"S\332A\014project,zone\202" - + "\323\344\223\002>\022/compute/v1/project" + + "s/{project}/global/sslPolicies/{ssl_poli" + + "cy}\022\264\001\n\003Get\022,.google.cloud.compute.v1.Ge" + + "tSslPolicyRequest\032\".google.cloud.compute" + + ".v1.SslPolicy\"[\332A\022project,ssl_policy\202\323\344\223" + + "\002@\022>/compute/v1/projects/{project}/globa" + + "l/sslPolicies/{ssl_policy}\022\336\001\n\006Insert\022/." + + "google.cloud.compute.v1.InsertSslPolicyR" + "equest\032\".google.cloud.compute.v1.Operati" - + "on\"\215\001\332A\"project,zone,storage_pool_resour" - + "ce\212N\016ZoneOperations\202\323\344\223\002Q\"8/compute/v1/p" - + "rojects/{project}/zones/{zone}/storagePo" - + "ols:\025storage_pool_resource\022\263\001\n\004List\0220.go" - + "ogle.cloud.compute.v1.ListStoragePoolsRe" - + "quest\032(.google.cloud.compute.v1.StorageP" - + "oolList\"O\332A\014project,zone\202\323\344\223\002:\0228/compute" - + "/v1/projects/{project}/zones/{zone}/stor" - + "agePools\022\350\001\n\tListDisks\0225.google.cloud.co" - + "mpute.v1.ListDisksStoragePoolsRequest\032-." - + "google.cloud.compute.v1.StoragePoolListD" - + "isks\"u\332A\031project,zone,storage_pool\202\323\344\223\002S" - + "\022Q/compute/v1/projects/{project}/zones/{" - + "zone}/storagePools/{storage_pool}/listDi" - + "sks\022\236\002\n\014SetIamPolicy\0227.google.cloud.comp" - + "ute.v1.SetIamPolicyStoragePoolRequest\032\037." - + "google.cloud.compute.v1.Policy\"\263\001\332A6proj" - + "ect,zone,resource,zone_set_policy_reques" - + "t_resource\202\323\344\223\002t\"P/compute/v1/projects/{" - + "project}/zones/{zone}/storagePools/{reso" - + "urce}/setIamPolicy: zone_set_policy_requ" - + "est_resource\022\303\002\n\022TestIamPermissions\022=.go" - + "ogle.cloud.compute.v1.TestIamPermissions" - + "StoragePoolRequest\0320.google.cloud.comput" - + "e.v1.TestPermissionsResponse\"\273\001\332A7projec" - + "t,zone,resource,test_permissions_request" - + "_resource\202\323\344\223\002{\"V/compute/v1/projects/{p" - + "roject}/zones/{zone}/storagePools/{resou" - + "rce}/testIamPermissions:!test_permission" - + "s_request_resource\022\213\002\n\006Update\0221.google.c" - + "loud.compute.v1.UpdateStoragePoolRequest" - + "\032\".google.cloud.compute.v1.Operation\"\251\001\332" - + "A/project,zone,storage_pool,storage_pool" - + "_resource\212N\016ZoneOperations\202\323\344\223\002`2G/compu" - + "te/v1/projects/{project}/zones/{zone}/st" - + "oragePools/{storage_pool}:\025storage_pool_" - + "resource\032r\312A\026compute.googleapis.com\322AVht" - + "tps://www.googleapis.com/auth/compute,ht" - + "tps://www.googleapis.com/auth/cloud-plat" - + "form2\335\031\n\013Subnetworks\022\307\001\n\016AggregatedList\022" - + "9.google.cloud.compute.v1.AggregatedList" - + "SubnetworksRequest\0321.google.cloud.comput" - + "e.v1.SubnetworkAggregatedList\"G\332A\007projec" - + "t\202\323\344\223\0027\0225/compute/v1/projects/{project}/" - + "aggregated/subnetworks\022\337\001\n\006Delete\0220.goog" - + "le.cloud.compute.v1.DeleteSubnetworkRequ" - + "est\032\".google.cloud.compute.v1.Operation\"" - + "\177\332A\031project,region,subnetwork\212N\020RegionOp" - + "erations\202\323\344\223\002J*H/compute/v1/projects/{pr" - + "oject}/regions/{region}/subnetworks/{sub" - + "network}\022\356\002\n\021ExpandIpCidrRange\022;.google." - + "cloud.compute.v1.ExpandIpCidrRangeSubnet" - + "workRequest\032\".google.cloud.compute.v1.Op" - + "eration\"\367\001\332AKproject,region,subnetwork,s" - + "ubnetworks_expand_ip_cidr_range_request_" - + "resource\212N\020RegionOperations\202\323\344\223\002\217\001\"Z/com" - + "pute/v1/projects/{project}/regions/{regi" - + "on}/subnetworks/{subnetwork}/expandIpCid" - + "rRange:1subnetworks_expand_ip_cidr_range" - + "_request_resource\022\307\001\n\003Get\022-.google.cloud" - + ".compute.v1.GetSubnetworkRequest\032#.googl" - + "e.cloud.compute.v1.Subnetwork\"l\332A\031projec" - + "t,region,subnetwork\202\323\344\223\002J\022H/compute/v1/p" - + "rojects/{project}/regions/{region}/subne" - + "tworks/{subnetwork}\022\336\001\n\014GetIamPolicy\0226.g" - + "oogle.cloud.compute.v1.GetIamPolicySubne" - + "tworkRequest\032\037.google.cloud.compute.v1.P" - + "olicy\"u\332A\027project,region,resource\202\323\344\223\002U\022" - + "S/compute/v1/projects/{project}/regions/" - + "{region}/subnetworks/{resource}/getIamPo" - + "licy\022\361\001\n\006Insert\0220.google.cloud.compute.v" - + "1.InsertSubnetworkRequest\032\".google.cloud" - + ".compute.v1.Operation\"\220\001\332A\"project,regio" - + "n,subnetwork_resource\212N\020RegionOperations" - + "\202\323\344\223\002R\";/compute/v1/projects/{project}/r" - + "egions/{region}/subnetworks:\023subnetwork_" - + "resource\022\266\001\n\004List\022/.google.cloud.compute" - + ".v1.ListSubnetworksRequest\032\'.google.clou" - + "d.compute.v1.SubnetworkList\"T\332A\016project," - + "region\202\323\344\223\002=\022;/compute/v1/projects/{proj" - + "ect}/regions/{region}/subnetworks\022\321\001\n\nLi" - + "stUsable\0225.google.cloud.compute.v1.ListU" - + "sableSubnetworksRequest\0328.google.cloud.c" - + "ompute.v1.UsableSubnetworksAggregatedLis" - + "t\"R\332A\007project\202\323\344\223\002B\022@/compute/v1/project" - + "s/{project}/aggregated/subnetworks/listU" - + "sable\022\207\002\n\005Patch\022/.google.cloud.compute.v" - + "1.PatchSubnetworkRequest\032\".google.cloud." - + "compute.v1.Operation\"\250\001\332A-project,region" - + ",subnetwork,subnetwork_resource\212N\020Region" - + "Operations\202\323\344\223\002_2H/compute/v1/projects/{" - + "project}/regions/{region}/subnetworks/{s" - + "ubnetwork}:\023subnetwork_resource\022\246\002\n\014SetI" - + "amPolicy\0226.google.cloud.compute.v1.SetIa" - + "mPolicySubnetworkRequest\032\037.google.cloud." - + "compute.v1.Policy\"\274\001\332A:project,region,re" - + "source,region_set_policy_request_resourc" - + "e\202\323\344\223\002y\"S/compute/v1/projects/{project}/" - + "regions/{region}/subnetworks/{resource}/" - + "setIamPolicy:\"region_set_policy_request_" - + "resource\022\223\003\n\030SetPrivateIpGoogleAccess\022B." - + "google.cloud.compute.v1.SetPrivateIpGoog" - + "leAccessSubnetworkRequest\032\".google.cloud" - + ".compute.v1.Operation\"\216\002\332ASproject,regio" - + "n,subnetwork,subnetworks_set_private_ip_" - + "google_access_request_resource\212N\020RegionO" - + "perations\202\323\344\223\002\236\001\"a/compute/v1/projects/{" - + "project}/regions/{region}/subnetworks/{s" - + "ubnetwork}/setPrivateIpGoogleAccess:9sub" - + "networks_set_private_ip_google_access_re" - + "quest_resource\022\307\002\n\022TestIamPermissions\022<." - + "google.cloud.compute.v1.TestIamPermissio" - + "nsSubnetworkRequest\0320.google.cloud.compu" - + "te.v1.TestPermissionsResponse\"\300\001\332A9proje" - + "ct,region,resource,test_permissions_requ" - + "est_resource\202\323\344\223\002~\"Y/compute/v1/projects" + + "on\"\177\332A\033project,ssl_policy_resource\212N\020Glo" + + "balOperations\202\323\344\223\002H\"1/compute/v1/project" + + "s/{project}/global/sslPolicies:\023ssl_poli" + + "cy_resource\022\246\001\n\004List\022/.google.cloud.comp" + + "ute.v1.ListSslPoliciesRequest\032(.google.c" + + "loud.compute.v1.SslPoliciesList\"C\332A\007proj" + + "ect\202\323\344\223\0023\0221/compute/v1/projects/{project" + + "}/global/sslPolicies\022\367\001\n\025ListAvailableFe" + + "atures\022@.google.cloud.compute.v1.ListAva" + + "ilableFeaturesSslPoliciesRequest\032A.googl" + + "e.cloud.compute.v1.SslPoliciesListAvaila" + + "bleFeaturesResponse\"Y\332A\007project\202\323\344\223\002I\022G/" + + "compute/v1/projects/{project}/global/ssl" + + "Policies/listAvailableFeatures\022\365\001\n\005Patch" + + "\022..google.cloud.compute.v1.PatchSslPolic" + + "yRequest\032\".google.cloud.compute.v1.Opera" + + "tion\"\227\001\332A&project,ssl_policy,ssl_policy_" + + "resource\212N\020GlobalOperations\202\323\344\223\002U2>/comp" + + "ute/v1/projects/{project}/global/sslPoli" + + "cies/{ssl_policy}:\023ssl_policy_resource\032r" + + "\312A\026compute.googleapis.com\322AVhttps://www." + + "googleapis.com/auth/compute,https://www." + + "googleapis.com/auth/cloud-platform2\265\006\n\020S" + + "toragePoolTypes\022\326\001\n\016AggregatedList\022>.goo" + + "gle.cloud.compute.v1.AggregatedListStora" + + "gePoolTypesRequest\0326.google.cloud.comput" + + "e.v1.StoragePoolTypeAggregatedList\"L\332A\007p" + + "roject\202\323\344\223\002<\022:/compute/v1/projects/{proj" + + "ect}/aggregated/storagePoolTypes\022\336\001\n\003Get" + + "\0222.google.cloud.compute.v1.GetStoragePoo" + + "lTypeRequest\032(.google.cloud.compute.v1.S" + + "toragePoolType\"y\332A\036project,zone,storage_" + + "pool_type\202\323\344\223\002R\022P/compute/v1/projects/{p" + + "roject}/zones/{zone}/storagePoolTypes/{s" + + "torage_pool_type}\022\277\001\n\004List\0224.google.clou" + + "d.compute.v1.ListStoragePoolTypesRequest" + + "\032,.google.cloud.compute.v1.StoragePoolTy" + + "peList\"S\332A\014project,zone\202\323\344\223\002>\022\022\022.google.cloud.compute" - + ".v1.AggregatedListTargetTcpProxiesReques" - + "t\0325.google.cloud.compute.v1.TargetTcpPro" - + "xyAggregatedList\"L\332A\007project\202\323\344\223\002<\022:/com" - + "pute/v1/projects/{project}/aggregated/ta" - + "rgetTcpProxies\022\343\001\n\006Delete\0224.google.cloud" - + ".compute.v1.DeleteTargetTcpProxyRequest\032" - + "\".google.cloud.compute.v1.Operation\"\177\332A\030" - + "project,target_tcp_proxy\212N\020GlobalOperati" - + "ons\202\323\344\223\002K*I/compute/v1/projects/{project" - + "}/global/targetTcpProxies/{target_tcp_pr" - + "oxy}\022\317\001\n\003Get\0221.google.cloud.compute.v1.G" - + "etTargetTcpProxyRequest\032\'.google.cloud.c" - + "ompute.v1.TargetTcpProxy\"l\332A\030project,tar" - + "get_tcp_proxy\202\323\344\223\002K\022I/compute/v1/project" - + "s/{project}/global/targetTcpProxies/{tar" - + "get_tcp_proxy}\022\365\001\n\006Insert\0224.google.cloud" - + ".compute.v1.InsertTargetTcpProxyRequest\032" - + "\".google.cloud.compute.v1.Operation\"\220\001\332A" - + "!project,target_tcp_proxy_resource\212N\020Glo" - + "balOperations\202\323\344\223\002S\"6/compute/v1/project" - + "s/{project}/global/targetTcpProxies:\031tar" - + "get_tcp_proxy_resource\022\263\001\n\004List\0224.google" - + ".cloud.compute.v1.ListTargetTcpProxiesRe" - + "quest\032+.google.cloud.compute.v1.TargetTc" - + "pProxyList\"H\332A\007project\202\323\344\223\0028\0226/compute/v" - + "1/projects/{project}/global/targetTcpPro" - + "xies\022\376\002\n\021SetBackendService\022?.google.clou" - + "d.compute.v1.SetBackendServiceTargetTcpP" - + "roxyRequest\032\".google.cloud.compute.v1.Op" - + "eration\"\203\002\332APproject,target_tcp_proxy,ta" + + "SslProxies/{target_ssl_proxy}/setProxyHe" + + "ader:4target_ssl_proxies_set_proxy_heade" + + "r_request_resource\022\203\003\n\022SetSslCertificate" + + "s\022@.google.cloud.compute.v1.SetSslCertif" + + "icatesTargetSslProxyRequest\032\".google.clo" + + "ud.compute.v1.Operation\"\206\002\332AQproject,tar" + + "get_ssl_proxy,target_ssl_proxies_set_ssl" + + "_certificates_request_resource\212N\020GlobalO" + + "perations\202\323\344\223\002\230\001\"\\/compute/v1/projects/{" + + "project}/global/targetSslProxies/{target" + + "_ssl_proxy}/setSslCertificates:8target_s" + + "sl_proxies_set_ssl_certificates_request_" + + "resource\022\272\002\n\014SetSslPolicy\022:.google.cloud" + + ".compute.v1.SetSslPolicyTargetSslProxyRe" + + "quest\032\".google.cloud.compute.v1.Operatio" + + "n\"\311\001\332A6project,target_ssl_proxy,ssl_poli" + + "cy_reference_resource\212N\020GlobalOperations" + + "\202\323\344\223\002w\"V/compute/v1/projects/{project}/g" + + "lobal/targetSslProxies/{target_ssl_proxy" + + "}/setSslPolicy:\035ssl_policy_reference_res" + + "ource\032r\312A\026compute.googleapis.com\322AVhttps" + + "://www.googleapis.com/auth/compute,https" + + "://www.googleapis.com/auth/cloud-platfor" + + "m2\267\017\n\020TargetTcpProxies\022\325\001\n\016AggregatedLis" + + "t\022>.google.cloud.compute.v1.AggregatedLi" + + "stTargetTcpProxiesRequest\0325.google.cloud" + + ".compute.v1.TargetTcpProxyAggregatedList" + + "\"L\332A\007project\202\323\344\223\002<\022:/compute/v1/projects" + + "/{project}/aggregated/targetTcpProxies\022\343" + + "\001\n\006Delete\0224.google.cloud.compute.v1.Dele" + + "teTargetTcpProxyRequest\032\".google.cloud.c" + + "ompute.v1.Operation\"\177\332A\030project,target_t" + + "cp_proxy\212N\020GlobalOperations\202\323\344\223\002K*I/comp" + + "ute/v1/projects/{project}/global/targetT" + + "cpProxies/{target_tcp_proxy}\022\317\001\n\003Get\0221.g" + + "oogle.cloud.compute.v1.GetTargetTcpProxy" + + "Request\032\'.google.cloud.compute.v1.Target" + + "TcpProxy\"l\332A\030project,target_tcp_proxy\202\323\344" + + "\223\002K\022I/compute/v1/projects/{project}/glob" + + "al/targetTcpProxies/{target_tcp_proxy}\022\365" + + "\001\n\006Insert\0224.google.cloud.compute.v1.Inse" + + "rtTargetTcpProxyRequest\032\".google.cloud.c" + + "ompute.v1.Operation\"\220\001\332A!project,target_" + + "tcp_proxy_resource\212N\020GlobalOperations\202\323\344" + + "\223\002S\"6/compute/v1/projects/{project}/glob" + + "al/targetTcpProxies:\031target_tcp_proxy_re" + + "source\022\263\001\n\004List\0224.google.cloud.compute.v" + + "1.ListTargetTcpProxiesRequest\032+.google.c" + + "loud.compute.v1.TargetTcpProxyList\"H\332A\007p" + + "roject\202\323\344\223\0028\0226/compute/v1/projects/{proj" + + "ect}/global/targetTcpProxies\022\376\002\n\021SetBack" + + "endService\022?.google.cloud.compute.v1.Set" + + "BackendServiceTargetTcpProxyRequest\032\".go" + + "ogle.cloud.compute.v1.Operation\"\203\002\332APpro" + + "ject,target_tcp_proxy,target_tcp_proxies" + + "_set_backend_service_request_resource\212N\020" + + "GlobalOperations\202\323\344\223\002\226\001\"[/compute/v1/pro" + + "jects/{project}/global/targetTcpProxies/" + + "{target_tcp_proxy}/setBackendService:7ta" + "rget_tcp_proxies_set_backend_service_req" - + "uest_resource\212N\020GlobalOperations\202\323\344\223\002\226\001\"" - + "[/compute/v1/projects/{project}/global/t" - + "argetTcpProxies/{target_tcp_proxy}/setBa" - + "ckendService:7target_tcp_proxies_set_bac" - + "kend_service_request_resource\022\357\002\n\016SetPro" - + "xyHeader\022<.google.cloud.compute.v1.SetPr" - + "oxyHeaderTargetTcpProxyRequest\032\".google." - + "cloud.compute.v1.Operation\"\372\001\332AMproject," - + "target_tcp_proxy,target_tcp_proxies_set_" - + "proxy_header_request_resource\212N\020GlobalOp" - + "erations\202\323\344\223\002\220\001\"X/compute/v1/projects/{p" - + "roject}/global/targetTcpProxies/{target_" - + "tcp_proxy}/setProxyHeader:4target_tcp_pr" - + "oxies_set_proxy_header_request_resource\032" - + "r\312A\026compute.googleapis.com\322AVhttps://www" - + ".googleapis.com/auth/compute,https://www" - + ".googleapis.com/auth/cloud-platform2\354\014\n\021" - + "TargetVpnGateways\022\331\001\n\016AggregatedList\022?.g" - + "oogle.cloud.compute.v1.AggregatedListTar" - + "getVpnGatewaysRequest\0327.google.cloud.com" - + "pute.v1.TargetVpnGatewayAggregatedList\"M" - + "\332A\007project\202\323\344\223\002=\022;/compute/v1/projects/{" - + "project}/aggregated/targetVpnGateways\022\374\001" - + "\n\006Delete\0226.google.cloud.compute.v1.Delet" - + "eTargetVpnGatewayRequest\032\".google.cloud." - + "compute.v1.Operation\"\225\001\332A!project,region" - + ",target_vpn_gateway\212N\020RegionOperations\202\323" - + "\344\223\002X*V/compute/v1/projects/{project}/reg" - + "ions/{region}/targetVpnGateways/{target_" - + "vpn_gateway}\022\352\001\n\003Get\0223.google.cloud.comp" - + "ute.v1.GetTargetVpnGatewayRequest\032).goog" - + "le.cloud.compute.v1.TargetVpnGateway\"\202\001\332" - + "A!project,region,target_vpn_gateway\202\323\344\223\002" - + "X\022V/compute/v1/projects/{project}/region" - + "s/{region}/targetVpnGateways/{target_vpn" - + "_gateway}\022\215\002\n\006Insert\0226.google.cloud.comp" - + "ute.v1.InsertTargetVpnGatewayRequest\032\".g" - + "oogle.cloud.compute.v1.Operation\"\246\001\332A*pr" - + "oject,region,target_vpn_gateway_resource" - + "\212N\020RegionOperations\202\323\344\223\002`\"A/compute/v1/p" + + "uest_resource\022\357\002\n\016SetProxyHeader\022<.googl" + + "e.cloud.compute.v1.SetProxyHeaderTargetT" + + "cpProxyRequest\032\".google.cloud.compute.v1" + + ".Operation\"\372\001\332AMproject,target_tcp_proxy" + + ",target_tcp_proxies_set_proxy_header_req" + + "uest_resource\212N\020GlobalOperations\202\323\344\223\002\220\001\"" + + "X/compute/v1/projects/{project}/global/t" + + "argetTcpProxies/{target_tcp_proxy}/setPr" + + "oxyHeader:4target_tcp_proxies_set_proxy_" + + "header_request_resource\032r\312A\026compute.goog" + + "leapis.com\322AVhttps://www.googleapis.com/" + + "auth/compute,https://www.googleapis.com/" + + "auth/cloud-platform2\354\014\n\021TargetVpnGateway" + + "s\022\331\001\n\016AggregatedList\022?.google.cloud.comp" + + "ute.v1.AggregatedListTargetVpnGatewaysRe", + "quest\0327.google.cloud.compute.v1.TargetVp" + + "nGatewayAggregatedList\"M\332A\007project\202\323\344\223\002=" + + "\022;/compute/v1/projects/{project}/aggrega" + + "ted/targetVpnGateways\022\374\001\n\006Delete\0226.googl" + + "e.cloud.compute.v1.DeleteTargetVpnGatewa" + + "yRequest\032\".google.cloud.compute.v1.Opera" + + "tion\"\225\001\332A!project,region,target_vpn_gate" + + "way\212N\020RegionOperations\202\323\344\223\002X*V/compute/v" + + "1/projects/{project}/regions/{region}/ta" + + "rgetVpnGateways/{target_vpn_gateway}\022\352\001\n" + + "\003Get\0223.google.cloud.compute.v1.GetTarget" + + "VpnGatewayRequest\032).google.cloud.compute" + + ".v1.TargetVpnGateway\"\202\001\332A!project,region" + + ",target_vpn_gateway\202\323\344\223\002X\022V/compute/v1/p" + "rojects/{project}/regions/{region}/targe" - + "tVpnGateways:\033target_vpn_gateway_resourc" - + "e\022\310\001\n\004List\0225.google.cloud.compute.v1.Lis" - + "tTargetVpnGatewaysRequest\032-.google.cloud", - ".compute.v1.TargetVpnGatewayList\"Z\332A\016pro" - + "ject,region\202\323\344\223\002C\022A/compute/v1/projects/" - + "{project}/regions/{region}/targetVpnGate" - + "ways\022\277\002\n\tSetLabels\0229.google.cloud.comput" - + "e.v1.SetLabelsTargetVpnGatewayRequest\032\"." - + "google.cloud.compute.v1.Operation\"\322\001\332A:p" - + "roject,region,resource,region_set_labels" - + "_request_resource\212N\020RegionOperations\202\323\344\223" - + "\002|\"V/compute/v1/projects/{project}/regio" - + "ns/{region}/targetVpnGateways/{resource}" - + "/setLabels:\"region_set_labels_request_re" - + "source\032r\312A\026compute.googleapis.com\322AVhttp" - + "s://www.googleapis.com/auth/compute,http" - + "s://www.googleapis.com/auth/cloud-platfo" - + "rm2\236\020\n\007UrlMaps\022\274\001\n\016AggregatedList\0225.goog" - + "le.cloud.compute.v1.AggregatedListUrlMap" - + "sRequest\032..google.cloud.compute.v1.UrlMa" - + "psAggregatedList\"C\332A\007project\202\323\344\223\0023\0221/com" - + "pute/v1/projects/{project}/aggregated/ur" - + "lMaps\022\300\001\n\006Delete\022,.google.cloud.compute." - + "v1.DeleteUrlMapRequest\032\".google.cloud.co" - + "mpute.v1.Operation\"d\332A\017project,url_map\212N" - + "\020GlobalOperations\202\323\344\223\0029*7/compute/v1/pro" - + "jects/{project}/global/urlMaps/{url_map}" - + "\022\244\001\n\003Get\022).google.cloud.compute.v1.GetUr" - + "lMapRequest\032\037.google.cloud.compute.v1.Ur" - + "lMap\"Q\332A\017project,url_map\202\323\344\223\0029\0227/compute" - + "/v1/projects/{project}/global/urlMaps/{u" - + "rl_map}\022\321\001\n\006Insert\022,.google.cloud.comput" - + "e.v1.InsertUrlMapRequest\032\".google.cloud." - + "compute.v1.Operation\"u\332A\030project,url_map" - + "_resource\212N\020GlobalOperations\202\323\344\223\002A\"-/com" - + "pute/v1/projects/{project}/global/urlMap" - + "s:\020url_map_resource\022\246\002\n\017InvalidateCache\022" - + "5.google.cloud.compute.v1.InvalidateCach" - + "eUrlMapRequest\032\".google.cloud.compute.v1" - + ".Operation\"\267\001\332A0project,url_map,cache_in" - + "validation_rule_resource\212N\020GlobalOperati" - + "ons\202\323\344\223\002k\"G/compute/v1/projects/{project" - + "}/global/urlMaps/{url_map}/invalidateCac" - + "he: cache_invalidation_rule_resource\022\231\001\n" - + "\004List\022+.google.cloud.compute.v1.ListUrlM" - + "apsRequest\032#.google.cloud.compute.v1.Url" - + "MapList\"?\332A\007project\202\323\344\223\002/\022-/compute/v1/p" - + "rojects/{project}/global/urlMaps\022\342\001\n\005Pat" - + "ch\022+.google.cloud.compute.v1.PatchUrlMap" - + "Request\032\".google.cloud.compute.v1.Operat" - + "ion\"\207\001\332A project,url_map,url_map_resourc" - + "e\212N\020GlobalOperations\202\323\344\223\002K27/compute/v1/" - + "projects/{project}/global/urlMaps/{url_m" - + "ap}:\020url_map_resource\022\344\001\n\006Update\022,.googl" - + "e.cloud.compute.v1.UpdateUrlMapRequest\032\"" - + ".google.cloud.compute.v1.Operation\"\207\001\332A " - + "project,url_map,url_map_resource\212N\020Globa" - + "lOperations\202\323\344\223\002K\0327/compute/v1/projects/" - + "{project}/global/urlMaps/{url_map}:\020url_" - + "map_resource\022\220\002\n\010Validate\022..google.cloud" - + ".compute.v1.ValidateUrlMapRequest\0320.goog" - + "le.cloud.compute.v1.UrlMapsValidateRespo" - + "nse\"\241\001\332A2project,url_map,url_maps_valida" - + "te_request_resource\202\323\344\223\002f\"@/compute/v1/p" - + "rojects/{project}/global/urlMaps/{url_ma" - + "p}/validate:\"url_maps_validate_request_r" - + "esource\032r\312A\026compute.googleapis.com\322AVhtt" - + "ps://www.googleapis.com/auth/compute,htt" - + "ps://www.googleapis.com/auth/cloud-platf" - + "orm2\237\020\n\013VpnGateways\022\307\001\n\016AggregatedList\0229" - + ".google.cloud.compute.v1.AggregatedListV" - + "pnGatewaysRequest\0321.google.cloud.compute" - + ".v1.VpnGatewayAggregatedList\"G\332A\007project" - + "\202\323\344\223\0027\0225/compute/v1/projects/{project}/a" - + "ggregated/vpnGateways\022\342\001\n\006Delete\0220.googl" - + "e.cloud.compute.v1.DeleteVpnGatewayReque" - + "st\032\".google.cloud.compute.v1.Operation\"\201" - + "\001\332A\032project,region,vpn_gateway\212N\020RegionO" - + "perations\202\323\344\223\002K*I/compute/v1/projects/{p" - + "roject}/regions/{region}/vpnGateways/{vp" - + "n_gateway}\022\311\001\n\003Get\022-.google.cloud.comput" - + "e.v1.GetVpnGatewayRequest\032#.google.cloud" - + ".compute.v1.VpnGateway\"n\332A\032project,regio" - + "n,vpn_gateway\202\323\344\223\002K\022I/compute/v1/project" - + "s/{project}/regions/{region}/vpnGateways" - + "/{vpn_gateway}\022\361\001\n\tGetStatus\0223.google.cl" - + "oud.compute.v1.GetStatusVpnGatewayReques" - + "t\0325.google.cloud.compute.v1.VpnGatewaysG" - + "etStatusResponse\"x\332A\032project,region,vpn_" - + "gateway\202\323\344\223\002U\022S/compute/v1/projects/{pro" - + "ject}/regions/{region}/vpnGateways/{vpn_" - + "gateway}/getStatus\022\363\001\n\006Insert\0220.google.c" - + "loud.compute.v1.InsertVpnGatewayRequest\032" - + "\".google.cloud.compute.v1.Operation\"\222\001\332A" - + "#project,region,vpn_gateway_resource\212N\020R" - + "egionOperations\202\323\344\223\002S\";/compute/v1/proje" - + "cts/{project}/regions/{region}/vpnGatewa" - + "ys:\024vpn_gateway_resource\022\266\001\n\004List\022/.goog" - + "le.cloud.compute.v1.ListVpnGatewaysReque" - + "st\032\'.google.cloud.compute.v1.VpnGatewayL" - + "ist\"T\332A\016project,region\202\323\344\223\002=\022;/compute/v" - + "1/projects/{project}/regions/{region}/vp" - + "nGateways\022\263\002\n\tSetLabels\0223.google.cloud.c" - + "ompute.v1.SetLabelsVpnGatewayRequest\032\".g" - + "oogle.cloud.compute.v1.Operation\"\314\001\332A:pr" + + "tVpnGateways/{target_vpn_gateway}\022\215\002\n\006In" + + "sert\0226.google.cloud.compute.v1.InsertTar" + + "getVpnGatewayRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"\246\001\332A*project,region,tar" + + "get_vpn_gateway_resource\212N\020RegionOperati" + + "ons\202\323\344\223\002`\"A/compute/v1/projects/{project" + + "}/regions/{region}/targetVpnGateways:\033ta" + + "rget_vpn_gateway_resource\022\310\001\n\004List\0225.goo" + + "gle.cloud.compute.v1.ListTargetVpnGatewa" + + "ysRequest\032-.google.cloud.compute.v1.Targ" + + "etVpnGatewayList\"Z\332A\016project,region\202\323\344\223\002" + + "C\022A/compute/v1/projects/{project}/region" + + "s/{region}/targetVpnGateways\022\277\002\n\tSetLabe" + + "ls\0229.google.cloud.compute.v1.SetLabelsTa" + + "rgetVpnGatewayRequest\032\".google.cloud.com" + + "pute.v1.Operation\"\322\001\332A:project,region,re" + + "source,region_set_labels_request_resourc" + + "e\212N\020RegionOperations\202\323\344\223\002|\"V/compute/v1/" + + "projects/{project}/regions/{region}/targ" + + "etVpnGateways/{resource}/setLabels:\"regi" + + "on_set_labels_request_resource\032r\312A\026compu" + + "te.googleapis.com\322AVhttps://www.googleap" + + "is.com/auth/compute,https://www.googleap" + + "is.com/auth/cloud-platform2\236\020\n\007UrlMaps\022\274" + + "\001\n\016AggregatedList\0225.google.cloud.compute" + + ".v1.AggregatedListUrlMapsRequest\032..googl" + + "e.cloud.compute.v1.UrlMapsAggregatedList" + + "\"C\332A\007project\202\323\344\223\0023\0221/compute/v1/projects" + + "/{project}/aggregated/urlMaps\022\300\001\n\006Delete" + + "\022,.google.cloud.compute.v1.DeleteUrlMapR" + + "equest\032\".google.cloud.compute.v1.Operati" + + "on\"d\332A\017project,url_map\212N\020GlobalOperation" + + "s\202\323\344\223\0029*7/compute/v1/projects/{project}/" + + "global/urlMaps/{url_map}\022\244\001\n\003Get\022).googl" + + "e.cloud.compute.v1.GetUrlMapRequest\032\037.go" + + "ogle.cloud.compute.v1.UrlMap\"Q\332A\017project" + + ",url_map\202\323\344\223\0029\0227/compute/v1/projects/{pr" + + "oject}/global/urlMaps/{url_map}\022\321\001\n\006Inse" + + "rt\022,.google.cloud.compute.v1.InsertUrlMa" + + "pRequest\032\".google.cloud.compute.v1.Opera" + + "tion\"u\332A\030project,url_map_resource\212N\020Glob" + + "alOperations\202\323\344\223\002A\"-/compute/v1/projects" + + "/{project}/global/urlMaps:\020url_map_resou" + + "rce\022\246\002\n\017InvalidateCache\0225.google.cloud.c" + + "ompute.v1.InvalidateCacheUrlMapRequest\032\"" + + ".google.cloud.compute.v1.Operation\"\267\001\332A0" + + "project,url_map,cache_invalidation_rule_" + + "resource\212N\020GlobalOperations\202\323\344\223\002k\"G/comp" + + "ute/v1/projects/{project}/global/urlMaps" + + "/{url_map}/invalidateCache: cache_invali" + + "dation_rule_resource\022\231\001\n\004List\022+.google.c" + + "loud.compute.v1.ListUrlMapsRequest\032#.goo" + + "gle.cloud.compute.v1.UrlMapList\"?\332A\007proj" + + "ect\202\323\344\223\002/\022-/compute/v1/projects/{project" + + "}/global/urlMaps\022\342\001\n\005Patch\022+.google.clou" + + "d.compute.v1.PatchUrlMapRequest\032\".google" + + ".cloud.compute.v1.Operation\"\207\001\332A project" + + ",url_map,url_map_resource\212N\020GlobalOperat" + + "ions\202\323\344\223\002K27/compute/v1/projects/{projec" + + "t}/global/urlMaps/{url_map}:\020url_map_res" + + "ource\022\344\001\n\006Update\022,.google.cloud.compute." + + "v1.UpdateUrlMapRequest\032\".google.cloud.co" + + "mpute.v1.Operation\"\207\001\332A project,url_map," + + "url_map_resource\212N\020GlobalOperations\202\323\344\223\002" + + "K\0327/compute/v1/projects/{project}/global" + + "/urlMaps/{url_map}:\020url_map_resource\022\220\002\n" + + "\010Validate\022..google.cloud.compute.v1.Vali" + + "dateUrlMapRequest\0320.google.cloud.compute" + + ".v1.UrlMapsValidateResponse\"\241\001\332A2project" + + ",url_map,url_maps_validate_request_resou" + + "rce\202\323\344\223\002f\"@/compute/v1/projects/{project" + + "}/global/urlMaps/{url_map}/validate:\"url" + + "_maps_validate_request_resource\032r\312A\026comp" + + "ute.googleapis.com\322AVhttps://www.googlea" + + "pis.com/auth/compute,https://www.googlea" + + "pis.com/auth/cloud-platform2\237\020\n\013VpnGatew" + + "ays\022\307\001\n\016AggregatedList\0229.google.cloud.co" + + "mpute.v1.AggregatedListVpnGatewaysReques" + + "t\0321.google.cloud.compute.v1.VpnGatewayAg" + + "gregatedList\"G\332A\007project\202\323\344\223\0027\0225/compute" + + "/v1/projects/{project}/aggregated/vpnGat" + + "eways\022\342\001\n\006Delete\0220.google.cloud.compute." + + "v1.DeleteVpnGatewayRequest\032\".google.clou" + + "d.compute.v1.Operation\"\201\001\332A\032project,regi" + + "on,vpn_gateway\212N\020RegionOperations\202\323\344\223\002K*" + + "I/compute/v1/projects/{project}/regions/" + + "{region}/vpnGateways/{vpn_gateway}\022\311\001\n\003G" + + "et\022-.google.cloud.compute.v1.GetVpnGatew" + + "ayRequest\032#.google.cloud.compute.v1.VpnG" + + "ateway\"n\332A\032project,region,vpn_gateway\202\323\344" + + "\223\002K\022I/compute/v1/projects/{project}/regi" + + "ons/{region}/vpnGateways/{vpn_gateway}\022\361" + + "\001\n\tGetStatus\0223.google.cloud.compute.v1.G" + + "etStatusVpnGatewayRequest\0325.google.cloud" + + ".compute.v1.VpnGatewaysGetStatusResponse" + + "\"x\332A\032project,region,vpn_gateway\202\323\344\223\002U\022S/" + + "compute/v1/projects/{project}/regions/{r" + + "egion}/vpnGateways/{vpn_gateway}/getStat" + + "us\022\363\001\n\006Insert\0220.google.cloud.compute.v1." + + "InsertVpnGatewayRequest\032\".google.cloud.c" + + "ompute.v1.Operation\"\222\001\332A#project,region," + + "vpn_gateway_resource\212N\020RegionOperations\202" + + "\323\344\223\002S\";/compute/v1/projects/{project}/re" + + "gions/{region}/vpnGateways:\024vpn_gateway_" + + "resource\022\266\001\n\004List\022/.google.cloud.compute" + + ".v1.ListVpnGatewaysRequest\032\'.google.clou" + + "d.compute.v1.VpnGatewayList\"T\332A\016project," + + "region\202\323\344\223\002=\022;/compute/v1/projects/{proj" + + "ect}/regions/{region}/vpnGateways\022\263\002\n\tSe" + + "tLabels\0223.google.cloud.compute.v1.SetLab" + + "elsVpnGatewayRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"\314\001\332A:project,region,res" + + "ource,region_set_labels_request_resource" + + "\212N\020RegionOperations\202\323\344\223\002v\"P/compute/v1/p" + + "rojects/{project}/regions/{region}/vpnGa" + + "teways/{resource}/setLabels:\"region_set_" + + "labels_request_resource\022\307\002\n\022TestIamPermi" + + "ssions\022<.google.cloud.compute.v1.TestIam" + + "PermissionsVpnGatewayRequest\0320.google.cl" + + "oud.compute.v1.TestPermissionsResponse\"\300" + + "\001\332A9project,region,resource,test_permiss" + + "ions_request_resource\202\323\344\223\002~\"Y/compute/v1" + + "/projects/{project}/regions/{region}/vpn" + + "Gateways/{resource}/testIamPermissions:!" + + "test_permissions_request_resource\032r\312A\026co" + + "mpute.googleapis.com\322AVhttps://www.googl" + + "eapis.com/auth/compute,https://www.googl" + + "eapis.com/auth/cloud-platform2\312\013\n\nVpnTun" + + "nels\022\304\001\n\016AggregatedList\0228.google.cloud.c" + + "ompute.v1.AggregatedListVpnTunnelsReques" + + "t\0320.google.cloud.compute.v1.VpnTunnelAgg" + + "regatedList\"F\332A\007project\202\323\344\223\0026\0224/compute/" + + "v1/projects/{project}/aggregated/vpnTunn" + + "els\022\335\001\n\006Delete\022/.google.cloud.compute.v1" + + ".DeleteVpnTunnelRequest\032\".google.cloud.c" + + "ompute.v1.Operation\"~\332A\031project,region,v" + + "pn_tunnel\212N\020RegionOperations\202\323\344\223\002I*G/com" + + "pute/v1/projects/{project}/regions/{regi" + + "on}/vpnTunnels/{vpn_tunnel}\022\304\001\n\003Get\022,.go" + + "ogle.cloud.compute.v1.GetVpnTunnelReques" + + "t\032\".google.cloud.compute.v1.VpnTunnel\"k\332" + + "A\031project,region,vpn_tunnel\202\323\344\223\002I\022G/comp" + + "ute/v1/projects/{project}/regions/{regio" + + "n}/vpnTunnels/{vpn_tunnel}\022\357\001\n\006Insert\022/." + + "google.cloud.compute.v1.InsertVpnTunnelR" + + "equest\032\".google.cloud.compute.v1.Operati" + + "on\"\217\001\332A\"project,region,vpn_tunnel_resour" + + "ce\212N\020RegionOperations\202\323\344\223\002Q\":/compute/v1" + + "/projects/{project}/regions/{region}/vpn" + + "Tunnels:\023vpn_tunnel_resource\022\263\001\n\004List\022.." + + "google.cloud.compute.v1.ListVpnTunnelsRe" + + "quest\032&.google.cloud.compute.v1.VpnTunne" + + "lList\"S\332A\016project,region\202\323\344\223\002<\022:/compute" + + "/v1/projects/{project}/regions/{region}/" + + "vpnTunnels\022\261\002\n\tSetLabels\0222.google.cloud." + + "compute.v1.SetLabelsVpnTunnelRequest\032\".g" + + "oogle.cloud.compute.v1.Operation\"\313\001\332A:pr" + "oject,region,resource,region_set_labels_" + "request_resource\212N\020RegionOperations\202\323\344\223\002" - + "v\"P/compute/v1/projects/{project}/region" - + "s/{region}/vpnGateways/{resource}/setLab" - + "els:\"region_set_labels_request_resource\022" - + "\307\002\n\022TestIamPermissions\022<.google.cloud.co" - + "mpute.v1.TestIamPermissionsVpnGatewayReq" - + "uest\0320.google.cloud.compute.v1.TestPermi" - + "ssionsResponse\"\300\001\332A9project,region,resou" - + "rce,test_permissions_request_resource\202\323\344" - + "\223\002~\"Y/compute/v1/projects/{project}/regi" - + "ons/{region}/vpnGateways/{resource}/test" - + "IamPermissions:!test_permissions_request" - + "_resource\032r\312A\026compute.googleapis.com\322AVh" - + "ttps://www.googleapis.com/auth/compute,h" - + "ttps://www.googleapis.com/auth/cloud-pla" - + "tform2\312\013\n\nVpnTunnels\022\304\001\n\016AggregatedList\022" - + "8.google.cloud.compute.v1.AggregatedList" - + "VpnTunnelsRequest\0320.google.cloud.compute" - + ".v1.VpnTunnelAggregatedList\"F\332A\007project\202" - + "\323\344\223\0026\0224/compute/v1/projects/{project}/ag" - + "gregated/vpnTunnels\022\335\001\n\006Delete\022/.google." - + "cloud.compute.v1.DeleteVpnTunnelRequest\032" - + "\".google.cloud.compute.v1.Operation\"~\332A\031" - + "project,region,vpn_tunnel\212N\020RegionOperat" - + "ions\202\323\344\223\002I*G/compute/v1/projects/{projec" - + "t}/regions/{region}/vpnTunnels/{vpn_tunn" - + "el}\022\304\001\n\003Get\022,.google.cloud.compute.v1.Ge" - + "tVpnTunnelRequest\032\".google.cloud.compute" - + ".v1.VpnTunnel\"k\332A\031project,region,vpn_tun" - + "nel\202\323\344\223\002I\022G/compute/v1/projects/{project" - + "}/regions/{region}/vpnTunnels/{vpn_tunne" - + "l}\022\357\001\n\006Insert\022/.google.cloud.compute.v1." - + "InsertVpnTunnelRequest\032\".google.cloud.co" - + "mpute.v1.Operation\"\217\001\332A\"project,region,v" - + "pn_tunnel_resource\212N\020RegionOperations\202\323\344" - + "\223\002Q\":/compute/v1/projects/{project}/regi" - + "ons/{region}/vpnTunnels:\023vpn_tunnel_reso" - + "urce\022\263\001\n\004List\022..google.cloud.compute.v1." - + "ListVpnTunnelsRequest\032&.google.cloud.com" - + "pute.v1.VpnTunnelList\"S\332A\016project,region" - + "\202\323\344\223\002<\022:/compute/v1/projects/{project}/r" - + "egions/{region}/vpnTunnels\022\261\002\n\tSetLabels" - + "\0222.google.cloud.compute.v1.SetLabelsVpnT" - + "unnelRequest\032\".google.cloud.compute.v1.O" - + "peration\"\313\001\332A:project,region,resource,re" - + "gion_set_labels_request_resource\212N\020Regio" - + "nOperations\202\323\344\223\002u\"O/compute/v1/projects/" - + "{project}/regions/{region}/vpnTunnels/{r" - + "esource}/setLabels:\"region_set_labels_re" - + "quest_resource\032r\312A\026compute.googleapis.co" - + "m\322AVhttps://www.googleapis.com/auth/comp" - + "ute,https://www.googleapis.com/auth/clou" - + "d-platform2\243\007\n\016ZoneOperations\022\330\001\n\006Delete" - + "\0223.google.cloud.compute.v1.DeleteZoneOpe" - + "rationRequest\0324.google.cloud.compute.v1." - + "DeleteZoneOperationResponse\"c\332A\026project," - + "zone,operation\202\323\344\223\002D*B/compute/v1/projec" - + "ts/{project}/zones/{zone}/operations/{op" - + "eration}\022\303\001\n\003Get\0220.google.cloud.compute." - + "v1.GetZoneOperationRequest\032\".google.clou" - + "d.compute.v1.Operation\"f\332A\026project,zone," - + "operation\220N\001\202\323\344\223\002D\022B/compute/v1/projects" - + "/{project}/zones/{zone}/operations/{oper" - + "ation}\022\261\001\n\004List\0222.google.cloud.compute.v" - + "1.ListZoneOperationsRequest\032&.google.clo" - + "ud.compute.v1.OperationList\"M\332A\014project," - + "zone\202\323\344\223\0028\0226/compute/v1/projects/{projec" - + "t}/zones/{zone}/operations\022\307\001\n\004Wait\0221.go" - + "ogle.cloud.compute.v1.WaitZoneOperationR" - + "equest\032\".google.cloud.compute.v1.Operati" - + "on\"h\332A\026project,zone,operation\202\323\344\223\002I\"G/co" - + "mpute/v1/projects/{project}/zones/{zone}" - + "/operations/{operation}/wait\032r\312A\026compute" - + ".googleapis.com\322AVhttps://www.googleapis" - + ".com/auth/compute,https://www.googleapis" - + ".com/auth/cloud-platform2\321\003\n\005Zones\022\221\001\n\003G" - + "et\022\'.google.cloud.compute.v1.GetZoneRequ" - + "est\032\035.google.cloud.compute.v1.Zone\"B\332A\014p" - + "roject,zone\202\323\344\223\002-\022+/compute/v1/projects/" - + "{project}/zones/{zone}\022\214\001\n\004List\022).google" - + ".cloud.compute.v1.ListZonesRequest\032!.goo" - + "gle.cloud.compute.v1.ZoneList\"6\332A\007projec" - + "t\202\323\344\223\002&\022$/compute/v1/projects/{project}/" - + "zones\032\244\001\312A\026compute.googleapis.com\322A\207\001htt" - + "ps://www.googleapis.com/auth/compute.rea" - + "donly,https://www.googleapis.com/auth/co" - + "mpute,https://www.googleapis.com/auth/cl" - + "oud-platformB\247\001\n\033com.google.cloud.comput" - + "e.v1P\001Z5cloud.google.com/go/compute/apiv" - + "1/computepb;computepb\252\002\027Google.Cloud.Com" - + "pute.V1\312\002\027Google\\Cloud\\Compute\\V1\352\002\032Goog" - + "le::Cloud::Compute::V1b\006proto3" + + "u\"O/compute/v1/projects/{project}/region" + + "s/{region}/vpnTunnels/{resource}/setLabe" + + "ls:\"region_set_labels_request_resource\032r" + + "\312A\026compute.googleapis.com\322AVhttps://www." + + "googleapis.com/auth/compute,https://www." + + "googleapis.com/auth/cloud-platform2\243\007\n\016Z" + + "oneOperations\022\330\001\n\006Delete\0223.google.cloud." + + "compute.v1.DeleteZoneOperationRequest\0324." + + "google.cloud.compute.v1.DeleteZoneOperat" + + "ionResponse\"c\332A\026project,zone,operation\202\323" + + "\344\223\002D*B/compute/v1/projects/{project}/zon" + + "es/{zone}/operations/{operation}\022\303\001\n\003Get" + + "\0220.google.cloud.compute.v1.GetZoneOperat" + + "ionRequest\032\".google.cloud.compute.v1.Ope" + + "ration\"f\332A\026project,zone,operation\220N\001\202\323\344\223" + + "\002D\022B/compute/v1/projects/{project}/zones" + + "/{zone}/operations/{operation}\022\261\001\n\004List\022" + + "2.google.cloud.compute.v1.ListZoneOperat" + + "ionsRequest\032&.google.cloud.compute.v1.Op" + + "erationList\"M\332A\014project,zone\202\323\344\223\0028\0226/com" + + "pute/v1/projects/{project}/zones/{zone}/" + + "operations\022\307\001\n\004Wait\0221.google.cloud.compu" + + "te.v1.WaitZoneOperationRequest\032\".google." + + "cloud.compute.v1.Operation\"h\332A\026project,z" + + "one,operation\202\323\344\223\002I\"G/compute/v1/project" + + "s/{project}/zones/{zone}/operations/{ope" + + "ration}/wait\032r\312A\026compute.googleapis.com\322" + + "AVhttps://www.googleapis.com/auth/comput" + + "e,https://www.googleapis.com/auth/cloud-" + + "platform2\321\003\n\005Zones\022\221\001\n\003Get\022\'.google.clou" + + "d.compute.v1.GetZoneRequest\032\035.google.clo" + + "ud.compute.v1.Zone\"B\332A\014project,zone\202\323\344\223\002" + + "-\022+/compute/v1/projects/{project}/zones/" + + "{zone}\022\214\001\n\004List\022).google.cloud.compute.v" + + "1.ListZonesRequest\032!.google.cloud.comput" + + "e.v1.ZoneList\"6\332A\007project\202\323\344\223\002&\022$/comput" + + "e/v1/projects/{project}/zones\032\244\001\312A\026compu" + + "te.googleapis.com\322A\207\001https://www.googlea" + + "pis.com/auth/compute.readonly,https://ww" + + "w.googleapis.com/auth/compute,https://ww" + + "w.googleapis.com/auth/cloud-platformB\247\001\n" + + "\033com.google.cloud.compute.v1P\001Z5cloud.go" + + "ogle.com/go/compute/apiv1/computepb;comp" + + "utepb\252\002\027Google.Cloud.Compute.V1\312\002\027Google" + + "\\Cloud\\Compute\\V1\352\002\032Google::Cloud::Compu" + + "te::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -45855,10 +45868,29 @@ private static void _clinit_autosplit_dinit_2() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourceStatus_descriptor, new java.lang.String[] { - "PhysicalHost", "PhysicalHostTopology", "Scheduling", "UpcomingMaintenance", + "EffectiveInstanceMetadata", + "PhysicalHost", + "PhysicalHostTopology", + "Scheduling", + "UpcomingMaintenance", }); - internal_static_google_cloud_compute_v1_ResourceStatusPhysicalHostTopology_descriptor = + internal_static_google_cloud_compute_v1_ResourceStatusEffectiveInstanceMetadata_descriptor = getDescriptor().getMessageTypes().get(1238); + internal_static_google_cloud_compute_v1_ResourceStatusEffectiveInstanceMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_compute_v1_ResourceStatusEffectiveInstanceMetadata_descriptor, + new java.lang.String[] { + "BlockProjectSshKeysMetadataValue", + "EnableGuestAttributesMetadataValue", + "EnableOsInventoryMetadataValue", + "EnableOsconfigMetadataValue", + "EnableOsloginMetadataValue", + "SerialPortEnableMetadataValue", + "SerialPortLoggingEnableMetadataValue", + "VmDnsSettingMetadataValue", + }); + internal_static_google_cloud_compute_v1_ResourceStatusPhysicalHostTopology_descriptor = + getDescriptor().getMessageTypes().get(1239); internal_static_google_cloud_compute_v1_ResourceStatusPhysicalHostTopology_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourceStatusPhysicalHostTopology_descriptor, @@ -45866,7 +45898,7 @@ private static void _clinit_autosplit_dinit_2() { "Block", "Cluster", "Host", "Subblock", }); internal_static_google_cloud_compute_v1_ResourceStatusScheduling_descriptor = - getDescriptor().getMessageTypes().get(1239); + getDescriptor().getMessageTypes().get(1240); internal_static_google_cloud_compute_v1_ResourceStatusScheduling_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourceStatusScheduling_descriptor, @@ -45874,7 +45906,7 @@ private static void _clinit_autosplit_dinit_2() { "AvailabilityDomain", }); internal_static_google_cloud_compute_v1_ResumeInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1240); + getDescriptor().getMessageTypes().get(1241); internal_static_google_cloud_compute_v1_ResumeInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResumeInstanceRequest_descriptor, @@ -45882,7 +45914,7 @@ private static void _clinit_autosplit_dinit_2() { "Instance", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_ResumeInstancesInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1241); + getDescriptor().getMessageTypes().get(1242); internal_static_google_cloud_compute_v1_ResumeInstancesInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResumeInstancesInstanceGroupManagerRequest_descriptor, @@ -45894,7 +45926,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_ResumeInstancesRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1242); + getDescriptor().getMessageTypes().get(1243); internal_static_google_cloud_compute_v1_ResumeInstancesRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResumeInstancesRegionInstanceGroupManagerRequest_descriptor, @@ -45906,7 +45938,7 @@ private static void _clinit_autosplit_dinit_2() { "RequestId", }); internal_static_google_cloud_compute_v1_Route_descriptor = - getDescriptor().getMessageTypes().get(1243); + getDescriptor().getMessageTypes().get(1244); internal_static_google_cloud_compute_v1_Route_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Route_descriptor, @@ -45939,7 +45971,7 @@ private static void _clinit_autosplit_dinit_2() { "Warnings", }); internal_static_google_cloud_compute_v1_RouteAsPath_descriptor = - getDescriptor().getMessageTypes().get(1244); + getDescriptor().getMessageTypes().get(1245); internal_static_google_cloud_compute_v1_RouteAsPath_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouteAsPath_descriptor, @@ -45947,7 +45979,7 @@ private static void _clinit_autosplit_dinit_2() { "AsLists", "PathSegmentType", }); internal_static_google_cloud_compute_v1_RouteList_descriptor = - getDescriptor().getMessageTypes().get(1245); + getDescriptor().getMessageTypes().get(1246); internal_static_google_cloud_compute_v1_RouteList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouteList_descriptor, @@ -45955,7 +45987,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_RouteParams_descriptor = - getDescriptor().getMessageTypes().get(1246); + getDescriptor().getMessageTypes().get(1247); internal_static_google_cloud_compute_v1_RouteParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouteParams_descriptor, @@ -45971,7 +46003,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_RoutePolicy_descriptor = - getDescriptor().getMessageTypes().get(1247); + getDescriptor().getMessageTypes().get(1248); internal_static_google_cloud_compute_v1_RoutePolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RoutePolicy_descriptor, @@ -45979,7 +46011,7 @@ private static void _clinit_autosplit_dinit_2() { "Description", "Fingerprint", "Name", "Terms", "Type", }); internal_static_google_cloud_compute_v1_RoutePolicyPolicyTerm_descriptor = - getDescriptor().getMessageTypes().get(1248); + getDescriptor().getMessageTypes().get(1249); internal_static_google_cloud_compute_v1_RoutePolicyPolicyTerm_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RoutePolicyPolicyTerm_descriptor, @@ -45987,7 +46019,7 @@ private static void _clinit_autosplit_dinit_2() { "Actions", "Match", "Priority", }); internal_static_google_cloud_compute_v1_Router_descriptor = - getDescriptor().getMessageTypes().get(1249); + getDescriptor().getMessageTypes().get(1250); internal_static_google_cloud_compute_v1_Router_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Router_descriptor, @@ -46008,7 +46040,7 @@ private static void _clinit_autosplit_dinit_2() { "SelfLink", }); internal_static_google_cloud_compute_v1_RouterAdvertisedIpRange_descriptor = - getDescriptor().getMessageTypes().get(1250); + getDescriptor().getMessageTypes().get(1251); internal_static_google_cloud_compute_v1_RouterAdvertisedIpRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterAdvertisedIpRange_descriptor, @@ -46016,7 +46048,7 @@ private static void _clinit_autosplit_dinit_2() { "Description", "Range", }); internal_static_google_cloud_compute_v1_RouterAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1251); + getDescriptor().getMessageTypes().get(1252); internal_static_google_cloud_compute_v1_RouterAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterAggregatedList_descriptor, @@ -46034,7 +46066,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_RouterBgp_descriptor = - getDescriptor().getMessageTypes().get(1252); + getDescriptor().getMessageTypes().get(1253); internal_static_google_cloud_compute_v1_RouterBgp_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterBgp_descriptor, @@ -46047,7 +46079,7 @@ private static void _clinit_autosplit_dinit_2() { "KeepaliveInterval", }); internal_static_google_cloud_compute_v1_RouterBgpPeer_descriptor = - getDescriptor().getMessageTypes().get(1253); + getDescriptor().getMessageTypes().get(1254); internal_static_google_cloud_compute_v1_RouterBgpPeer_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterBgpPeer_descriptor, @@ -46078,7 +46110,7 @@ private static void _clinit_autosplit_dinit_2() { "RouterApplianceInstance", }); internal_static_google_cloud_compute_v1_RouterBgpPeerBfd_descriptor = - getDescriptor().getMessageTypes().get(1254); + getDescriptor().getMessageTypes().get(1255); internal_static_google_cloud_compute_v1_RouterBgpPeerBfd_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterBgpPeerBfd_descriptor, @@ -46089,7 +46121,7 @@ private static void _clinit_autosplit_dinit_2() { "SessionInitializationMode", }); internal_static_google_cloud_compute_v1_RouterBgpPeerCustomLearnedIpRange_descriptor = - getDescriptor().getMessageTypes().get(1255); + getDescriptor().getMessageTypes().get(1256); internal_static_google_cloud_compute_v1_RouterBgpPeerCustomLearnedIpRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterBgpPeerCustomLearnedIpRange_descriptor, @@ -46097,7 +46129,7 @@ private static void _clinit_autosplit_dinit_2() { "Range", }); internal_static_google_cloud_compute_v1_RouterInterface_descriptor = - getDescriptor().getMessageTypes().get(1256); + getDescriptor().getMessageTypes().get(1257); internal_static_google_cloud_compute_v1_RouterInterface_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterInterface_descriptor, @@ -46113,7 +46145,7 @@ private static void _clinit_autosplit_dinit_2() { "Subnetwork", }); internal_static_google_cloud_compute_v1_RouterList_descriptor = - getDescriptor().getMessageTypes().get(1257); + getDescriptor().getMessageTypes().get(1258); internal_static_google_cloud_compute_v1_RouterList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterList_descriptor, @@ -46121,7 +46153,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_RouterMd5AuthenticationKey_descriptor = - getDescriptor().getMessageTypes().get(1258); + getDescriptor().getMessageTypes().get(1259); internal_static_google_cloud_compute_v1_RouterMd5AuthenticationKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterMd5AuthenticationKey_descriptor, @@ -46129,7 +46161,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Name", }); internal_static_google_cloud_compute_v1_RouterNat_descriptor = - getDescriptor().getMessageTypes().get(1259); + getDescriptor().getMessageTypes().get(1260); internal_static_google_cloud_compute_v1_RouterNat_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterNat_descriptor, @@ -46158,7 +46190,7 @@ private static void _clinit_autosplit_dinit_2() { "UdpIdleTimeoutSec", }); internal_static_google_cloud_compute_v1_RouterNatLogConfig_descriptor = - getDescriptor().getMessageTypes().get(1260); + getDescriptor().getMessageTypes().get(1261); internal_static_google_cloud_compute_v1_RouterNatLogConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterNatLogConfig_descriptor, @@ -46166,7 +46198,7 @@ private static void _clinit_autosplit_dinit_2() { "Enable", "Filter", }); internal_static_google_cloud_compute_v1_RouterNatRule_descriptor = - getDescriptor().getMessageTypes().get(1261); + getDescriptor().getMessageTypes().get(1262); internal_static_google_cloud_compute_v1_RouterNatRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterNatRule_descriptor, @@ -46174,7 +46206,7 @@ private static void _clinit_autosplit_dinit_2() { "Action", "Description", "Match", "RuleNumber", }); internal_static_google_cloud_compute_v1_RouterNatRuleAction_descriptor = - getDescriptor().getMessageTypes().get(1262); + getDescriptor().getMessageTypes().get(1263); internal_static_google_cloud_compute_v1_RouterNatRuleAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterNatRuleAction_descriptor, @@ -46185,7 +46217,7 @@ private static void _clinit_autosplit_dinit_2() { "SourceNatDrainRanges", }); internal_static_google_cloud_compute_v1_RouterNatSubnetworkToNat_descriptor = - getDescriptor().getMessageTypes().get(1263); + getDescriptor().getMessageTypes().get(1264); internal_static_google_cloud_compute_v1_RouterNatSubnetworkToNat_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterNatSubnetworkToNat_descriptor, @@ -46193,7 +46225,7 @@ private static void _clinit_autosplit_dinit_2() { "Name", "SecondaryIpRangeNames", "SourceIpRangesToNat", }); internal_static_google_cloud_compute_v1_RouterNatSubnetworkToNat64_descriptor = - getDescriptor().getMessageTypes().get(1264); + getDescriptor().getMessageTypes().get(1265); internal_static_google_cloud_compute_v1_RouterNatSubnetworkToNat64_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterNatSubnetworkToNat64_descriptor, @@ -46201,7 +46233,7 @@ private static void _clinit_autosplit_dinit_2() { "Name", }); internal_static_google_cloud_compute_v1_RouterStatus_descriptor = - getDescriptor().getMessageTypes().get(1265); + getDescriptor().getMessageTypes().get(1266); internal_static_google_cloud_compute_v1_RouterStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterStatus_descriptor, @@ -46209,7 +46241,7 @@ private static void _clinit_autosplit_dinit_2() { "BestRoutes", "BestRoutesForRouter", "BgpPeerStatus", "NatStatus", "Network", }); internal_static_google_cloud_compute_v1_RouterStatusBgpPeerStatus_descriptor = - getDescriptor().getMessageTypes().get(1266); + getDescriptor().getMessageTypes().get(1267); internal_static_google_cloud_compute_v1_RouterStatusBgpPeerStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterStatusBgpPeerStatus_descriptor, @@ -46236,7 +46268,7 @@ private static void _clinit_autosplit_dinit_2() { "UptimeSeconds", }); internal_static_google_cloud_compute_v1_RouterStatusNatStatus_descriptor = - getDescriptor().getMessageTypes().get(1267); + getDescriptor().getMessageTypes().get(1268); internal_static_google_cloud_compute_v1_RouterStatusNatStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterStatusNatStatus_descriptor, @@ -46252,7 +46284,7 @@ private static void _clinit_autosplit_dinit_2() { "UserAllocatedNatIps", }); internal_static_google_cloud_compute_v1_RouterStatusNatStatusNatRuleStatus_descriptor = - getDescriptor().getMessageTypes().get(1268); + getDescriptor().getMessageTypes().get(1269); internal_static_google_cloud_compute_v1_RouterStatusNatStatusNatRuleStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterStatusNatStatusNatRuleStatus_descriptor, @@ -46264,7 +46296,7 @@ private static void _clinit_autosplit_dinit_2() { "RuleNumber", }); internal_static_google_cloud_compute_v1_RouterStatusResponse_descriptor = - getDescriptor().getMessageTypes().get(1269); + getDescriptor().getMessageTypes().get(1270); internal_static_google_cloud_compute_v1_RouterStatusResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterStatusResponse_descriptor, @@ -46272,7 +46304,7 @@ private static void _clinit_autosplit_dinit_2() { "Kind", "Result", }); internal_static_google_cloud_compute_v1_RoutersGetRoutePolicyResponse_descriptor = - getDescriptor().getMessageTypes().get(1270); + getDescriptor().getMessageTypes().get(1271); internal_static_google_cloud_compute_v1_RoutersGetRoutePolicyResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RoutersGetRoutePolicyResponse_descriptor, @@ -46280,7 +46312,7 @@ private static void _clinit_autosplit_dinit_2() { "Resource", }); internal_static_google_cloud_compute_v1_RoutersListBgpRoutes_descriptor = - getDescriptor().getMessageTypes().get(1271); + getDescriptor().getMessageTypes().get(1272); internal_static_google_cloud_compute_v1_RoutersListBgpRoutes_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RoutersListBgpRoutes_descriptor, @@ -46295,7 +46327,7 @@ private static void _clinit_autosplit_dinit_2() { "Warning", }); internal_static_google_cloud_compute_v1_RoutersListRoutePolicies_descriptor = - getDescriptor().getMessageTypes().get(1272); + getDescriptor().getMessageTypes().get(1273); internal_static_google_cloud_compute_v1_RoutersListRoutePolicies_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RoutersListRoutePolicies_descriptor, @@ -46310,7 +46342,7 @@ private static void _clinit_autosplit_dinit_2() { "Warning", }); internal_static_google_cloud_compute_v1_RoutersPreviewResponse_descriptor = - getDescriptor().getMessageTypes().get(1273); + getDescriptor().getMessageTypes().get(1274); internal_static_google_cloud_compute_v1_RoutersPreviewResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RoutersPreviewResponse_descriptor, @@ -46318,7 +46350,7 @@ private static void _clinit_autosplit_dinit_2() { "Resource", }); internal_static_google_cloud_compute_v1_RoutersScopedList_descriptor = - getDescriptor().getMessageTypes().get(1274); + getDescriptor().getMessageTypes().get(1275); internal_static_google_cloud_compute_v1_RoutersScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RoutersScopedList_descriptor, @@ -46326,7 +46358,7 @@ private static void _clinit_autosplit_dinit_2() { "Routers", "Warning", }); internal_static_google_cloud_compute_v1_SSLHealthCheck_descriptor = - getDescriptor().getMessageTypes().get(1275); + getDescriptor().getMessageTypes().get(1276); internal_static_google_cloud_compute_v1_SSLHealthCheck_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SSLHealthCheck_descriptor, @@ -46334,7 +46366,7 @@ private static void _clinit_autosplit_dinit_2() { "Port", "PortName", "PortSpecification", "ProxyHeader", "Request", "Response", }); internal_static_google_cloud_compute_v1_SavedAttachedDisk_descriptor = - getDescriptor().getMessageTypes().get(1276); + getDescriptor().getMessageTypes().get(1277); internal_static_google_cloud_compute_v1_SavedAttachedDisk_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SavedAttachedDisk_descriptor, @@ -46357,7 +46389,7 @@ private static void _clinit_autosplit_dinit_2() { "Type", }); internal_static_google_cloud_compute_v1_SavedDisk_descriptor = - getDescriptor().getMessageTypes().get(1277); + getDescriptor().getMessageTypes().get(1278); internal_static_google_cloud_compute_v1_SavedDisk_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SavedDisk_descriptor, @@ -46365,7 +46397,7 @@ private static void _clinit_autosplit_dinit_2() { "Architecture", "Kind", "SourceDisk", "StorageBytes", "StorageBytesStatus", }); internal_static_google_cloud_compute_v1_ScalingScheduleStatus_descriptor = - getDescriptor().getMessageTypes().get(1278); + getDescriptor().getMessageTypes().get(1279); internal_static_google_cloud_compute_v1_ScalingScheduleStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ScalingScheduleStatus_descriptor, @@ -46373,7 +46405,7 @@ private static void _clinit_autosplit_dinit_2() { "LastStartTime", "NextStartTime", "State", }); internal_static_google_cloud_compute_v1_Scheduling_descriptor = - getDescriptor().getMessageTypes().get(1279); + getDescriptor().getMessageTypes().get(1280); internal_static_google_cloud_compute_v1_Scheduling_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Scheduling_descriptor, @@ -46394,7 +46426,7 @@ private static void _clinit_autosplit_dinit_2() { "TerminationTime", }); internal_static_google_cloud_compute_v1_SchedulingNodeAffinity_descriptor = - getDescriptor().getMessageTypes().get(1280); + getDescriptor().getMessageTypes().get(1281); internal_static_google_cloud_compute_v1_SchedulingNodeAffinity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SchedulingNodeAffinity_descriptor, @@ -46402,7 +46434,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Operator", "Values", }); internal_static_google_cloud_compute_v1_SchedulingOnInstanceStopAction_descriptor = - getDescriptor().getMessageTypes().get(1281); + getDescriptor().getMessageTypes().get(1282); internal_static_google_cloud_compute_v1_SchedulingOnInstanceStopAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SchedulingOnInstanceStopAction_descriptor, @@ -46410,7 +46442,7 @@ private static void _clinit_autosplit_dinit_2() { "DiscardLocalSsd", }); internal_static_google_cloud_compute_v1_Screenshot_descriptor = - getDescriptor().getMessageTypes().get(1282); + getDescriptor().getMessageTypes().get(1283); internal_static_google_cloud_compute_v1_Screenshot_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Screenshot_descriptor, @@ -46418,7 +46450,7 @@ private static void _clinit_autosplit_dinit_2() { "Contents", "Kind", }); internal_static_google_cloud_compute_v1_SecurityPoliciesAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1283); + getDescriptor().getMessageTypes().get(1284); internal_static_google_cloud_compute_v1_SecurityPoliciesAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPoliciesAggregatedList_descriptor, @@ -46436,7 +46468,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_SecurityPoliciesListPreconfiguredExpressionSetsResponse_descriptor = - getDescriptor().getMessageTypes().get(1284); + getDescriptor().getMessageTypes().get(1285); internal_static_google_cloud_compute_v1_SecurityPoliciesListPreconfiguredExpressionSetsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPoliciesListPreconfiguredExpressionSetsResponse_descriptor, @@ -46444,7 +46476,7 @@ private static void _clinit_autosplit_dinit_2() { "PreconfiguredExpressionSets", }); internal_static_google_cloud_compute_v1_SecurityPoliciesScopedList_descriptor = - getDescriptor().getMessageTypes().get(1285); + getDescriptor().getMessageTypes().get(1286); internal_static_google_cloud_compute_v1_SecurityPoliciesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPoliciesScopedList_descriptor, @@ -46452,7 +46484,7 @@ private static void _clinit_autosplit_dinit_2() { "SecurityPolicies", "Warning", }); internal_static_google_cloud_compute_v1_SecurityPoliciesWafConfig_descriptor = - getDescriptor().getMessageTypes().get(1286); + getDescriptor().getMessageTypes().get(1287); internal_static_google_cloud_compute_v1_SecurityPoliciesWafConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPoliciesWafConfig_descriptor, @@ -46460,7 +46492,7 @@ private static void _clinit_autosplit_dinit_2() { "WafRules", }); internal_static_google_cloud_compute_v1_SecurityPolicy_descriptor = - getDescriptor().getMessageTypes().get(1287); + getDescriptor().getMessageTypes().get(1288); internal_static_google_cloud_compute_v1_SecurityPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicy_descriptor, @@ -46492,7 +46524,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfig_descriptor = - getDescriptor().getMessageTypes().get(1288); + getDescriptor().getMessageTypes().get(1289); internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfig_descriptor, @@ -46500,7 +46532,7 @@ private static void _clinit_autosplit_dinit_2() { "Layer7DdosDefenseConfig", }); internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig_descriptor = - getDescriptor().getMessageTypes().get(1289); + getDescriptor().getMessageTypes().get(1290); internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig_descriptor, @@ -46508,7 +46540,7 @@ private static void _clinit_autosplit_dinit_2() { "Enable", "RuleVisibility", "ThresholdConfigs", }); internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig_descriptor = - getDescriptor().getMessageTypes().get(1290); + getDescriptor().getMessageTypes().get(1291); internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig_descriptor, @@ -46524,7 +46556,7 @@ private static void _clinit_autosplit_dinit_2() { "TrafficGranularityConfigs", }); internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig_descriptor = - getDescriptor().getMessageTypes().get(1291); + getDescriptor().getMessageTypes().get(1292); internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig_descriptor, @@ -46532,7 +46564,7 @@ private static void _clinit_autosplit_dinit_2() { "EnableEachUniqueValue", "Type", "Value", }); internal_static_google_cloud_compute_v1_SecurityPolicyAdvancedOptionsConfig_descriptor = - getDescriptor().getMessageTypes().get(1292); + getDescriptor().getMessageTypes().get(1293); internal_static_google_cloud_compute_v1_SecurityPolicyAdvancedOptionsConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyAdvancedOptionsConfig_descriptor, @@ -46540,7 +46572,7 @@ private static void _clinit_autosplit_dinit_2() { "JsonCustomConfig", "JsonParsing", "LogLevel", "UserIpRequestHeaders", }); internal_static_google_cloud_compute_v1_SecurityPolicyAdvancedOptionsConfigJsonCustomConfig_descriptor = - getDescriptor().getMessageTypes().get(1293); + getDescriptor().getMessageTypes().get(1294); internal_static_google_cloud_compute_v1_SecurityPolicyAdvancedOptionsConfigJsonCustomConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyAdvancedOptionsConfigJsonCustomConfig_descriptor, @@ -46548,7 +46580,7 @@ private static void _clinit_autosplit_dinit_2() { "ContentTypes", }); internal_static_google_cloud_compute_v1_SecurityPolicyDdosProtectionConfig_descriptor = - getDescriptor().getMessageTypes().get(1294); + getDescriptor().getMessageTypes().get(1295); internal_static_google_cloud_compute_v1_SecurityPolicyDdosProtectionConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyDdosProtectionConfig_descriptor, @@ -46556,7 +46588,7 @@ private static void _clinit_autosplit_dinit_2() { "DdosProtection", }); internal_static_google_cloud_compute_v1_SecurityPolicyList_descriptor = - getDescriptor().getMessageTypes().get(1295); + getDescriptor().getMessageTypes().get(1296); internal_static_google_cloud_compute_v1_SecurityPolicyList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyList_descriptor, @@ -46564,7 +46596,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "Warning", }); internal_static_google_cloud_compute_v1_SecurityPolicyRecaptchaOptionsConfig_descriptor = - getDescriptor().getMessageTypes().get(1296); + getDescriptor().getMessageTypes().get(1297); internal_static_google_cloud_compute_v1_SecurityPolicyRecaptchaOptionsConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRecaptchaOptionsConfig_descriptor, @@ -46572,7 +46604,7 @@ private static void _clinit_autosplit_dinit_2() { "RedirectSiteKey", }); internal_static_google_cloud_compute_v1_SecurityPolicyReference_descriptor = - getDescriptor().getMessageTypes().get(1297); + getDescriptor().getMessageTypes().get(1298); internal_static_google_cloud_compute_v1_SecurityPolicyReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyReference_descriptor, @@ -46580,7 +46612,7 @@ private static void _clinit_autosplit_dinit_2() { "SecurityPolicy", }); internal_static_google_cloud_compute_v1_SecurityPolicyRule_descriptor = - getDescriptor().getMessageTypes().get(1298); + getDescriptor().getMessageTypes().get(1299); internal_static_google_cloud_compute_v1_SecurityPolicyRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRule_descriptor, @@ -46598,7 +46630,7 @@ private static void _clinit_autosplit_dinit_2() { "RedirectOptions", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleHttpHeaderAction_descriptor = - getDescriptor().getMessageTypes().get(1299); + getDescriptor().getMessageTypes().get(1300); internal_static_google_cloud_compute_v1_SecurityPolicyRuleHttpHeaderAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleHttpHeaderAction_descriptor, @@ -46606,7 +46638,7 @@ private static void _clinit_autosplit_dinit_2() { "RequestHeadersToAdds", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleHttpHeaderActionHttpHeaderOption_descriptor = - getDescriptor().getMessageTypes().get(1300); + getDescriptor().getMessageTypes().get(1301); internal_static_google_cloud_compute_v1_SecurityPolicyRuleHttpHeaderActionHttpHeaderOption_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleHttpHeaderActionHttpHeaderOption_descriptor, @@ -46614,7 +46646,7 @@ private static void _clinit_autosplit_dinit_2() { "HeaderName", "HeaderValue", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcher_descriptor = - getDescriptor().getMessageTypes().get(1301); + getDescriptor().getMessageTypes().get(1302); internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcher_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcher_descriptor, @@ -46622,7 +46654,7 @@ private static void _clinit_autosplit_dinit_2() { "Config", "Expr", "ExprOptions", "VersionedExpr", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcherConfig_descriptor = - getDescriptor().getMessageTypes().get(1302); + getDescriptor().getMessageTypes().get(1303); internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcherConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcherConfig_descriptor, @@ -46630,7 +46662,7 @@ private static void _clinit_autosplit_dinit_2() { "SrcIpRanges", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcherExprOptions_descriptor = - getDescriptor().getMessageTypes().get(1303); + getDescriptor().getMessageTypes().get(1304); internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcherExprOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcherExprOptions_descriptor, @@ -46638,7 +46670,7 @@ private static void _clinit_autosplit_dinit_2() { "RecaptchaOptions", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions_descriptor = - getDescriptor().getMessageTypes().get(1304); + getDescriptor().getMessageTypes().get(1305); internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions_descriptor, @@ -46646,7 +46678,7 @@ private static void _clinit_autosplit_dinit_2() { "ActionTokenSiteKeys", "SessionTokenSiteKeys", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleNetworkMatcher_descriptor = - getDescriptor().getMessageTypes().get(1305); + getDescriptor().getMessageTypes().get(1306); internal_static_google_cloud_compute_v1_SecurityPolicyRuleNetworkMatcher_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleNetworkMatcher_descriptor, @@ -46661,7 +46693,7 @@ private static void _clinit_autosplit_dinit_2() { "UserDefinedFields", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch_descriptor = - getDescriptor().getMessageTypes().get(1306); + getDescriptor().getMessageTypes().get(1307); internal_static_google_cloud_compute_v1_SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch_descriptor, @@ -46669,7 +46701,7 @@ private static void _clinit_autosplit_dinit_2() { "Name", "Values", }); internal_static_google_cloud_compute_v1_SecurityPolicyRulePreconfiguredWafConfig_descriptor = - getDescriptor().getMessageTypes().get(1307); + getDescriptor().getMessageTypes().get(1308); internal_static_google_cloud_compute_v1_SecurityPolicyRulePreconfiguredWafConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRulePreconfiguredWafConfig_descriptor, @@ -46677,7 +46709,7 @@ private static void _clinit_autosplit_dinit_2() { "Exclusions", }); internal_static_google_cloud_compute_v1_SecurityPolicyRulePreconfiguredWafConfigExclusion_descriptor = - getDescriptor().getMessageTypes().get(1308); + getDescriptor().getMessageTypes().get(1309); internal_static_google_cloud_compute_v1_SecurityPolicyRulePreconfiguredWafConfigExclusion_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRulePreconfiguredWafConfigExclusion_descriptor, @@ -46690,7 +46722,7 @@ private static void _clinit_autosplit_dinit_2() { "TargetRuleSet", }); internal_static_google_cloud_compute_v1_SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams_descriptor = - getDescriptor().getMessageTypes().get(1309); + getDescriptor().getMessageTypes().get(1310); internal_static_google_cloud_compute_v1_SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams_descriptor, @@ -46698,7 +46730,7 @@ private static void _clinit_autosplit_dinit_2() { "Op", "Val", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleRateLimitOptions_descriptor = - getDescriptor().getMessageTypes().get(1310); + getDescriptor().getMessageTypes().get(1311); internal_static_google_cloud_compute_v1_SecurityPolicyRuleRateLimitOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleRateLimitOptions_descriptor, @@ -46714,7 +46746,7 @@ private static void _clinit_autosplit_dinit_2() { "RateLimitThreshold", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig_descriptor = - getDescriptor().getMessageTypes().get(1311); + getDescriptor().getMessageTypes().get(1312); internal_static_google_cloud_compute_v1_SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig_descriptor, @@ -46722,7 +46754,7 @@ private static void _clinit_autosplit_dinit_2() { "EnforceOnKeyName", "EnforceOnKeyType", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleRateLimitOptionsThreshold_descriptor = - getDescriptor().getMessageTypes().get(1312); + getDescriptor().getMessageTypes().get(1313); internal_static_google_cloud_compute_v1_SecurityPolicyRuleRateLimitOptionsThreshold_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleRateLimitOptionsThreshold_descriptor, @@ -46730,7 +46762,7 @@ private static void _clinit_autosplit_dinit_2() { "Count", "IntervalSec", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleRedirectOptions_descriptor = - getDescriptor().getMessageTypes().get(1313); + getDescriptor().getMessageTypes().get(1314); internal_static_google_cloud_compute_v1_SecurityPolicyRuleRedirectOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleRedirectOptions_descriptor, @@ -46738,7 +46770,7 @@ private static void _clinit_autosplit_dinit_2() { "Target", "Type", }); internal_static_google_cloud_compute_v1_SecurityPolicyUserDefinedField_descriptor = - getDescriptor().getMessageTypes().get(1314); + getDescriptor().getMessageTypes().get(1315); internal_static_google_cloud_compute_v1_SecurityPolicyUserDefinedField_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyUserDefinedField_descriptor, @@ -46746,7 +46778,7 @@ private static void _clinit_autosplit_dinit_2() { "Base", "Mask", "Name", "Offset", "Size", }); internal_static_google_cloud_compute_v1_SecuritySettings_descriptor = - getDescriptor().getMessageTypes().get(1315); + getDescriptor().getMessageTypes().get(1316); internal_static_google_cloud_compute_v1_SecuritySettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecuritySettings_descriptor, @@ -46754,7 +46786,7 @@ private static void _clinit_autosplit_dinit_2() { "AwsV4Authentication", "ClientTlsPolicy", "SubjectAltNames", }); internal_static_google_cloud_compute_v1_SendDiagnosticInterruptInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1316); + getDescriptor().getMessageTypes().get(1317); internal_static_google_cloud_compute_v1_SendDiagnosticInterruptInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SendDiagnosticInterruptInstanceRequest_descriptor, @@ -46762,13 +46794,13 @@ private static void _clinit_autosplit_dinit_2() { "Instance", "Project", "Zone", }); internal_static_google_cloud_compute_v1_SendDiagnosticInterruptInstanceResponse_descriptor = - getDescriptor().getMessageTypes().get(1317); + getDescriptor().getMessageTypes().get(1318); internal_static_google_cloud_compute_v1_SendDiagnosticInterruptInstanceResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SendDiagnosticInterruptInstanceResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_compute_v1_SerialPortOutput_descriptor = - getDescriptor().getMessageTypes().get(1318); + getDescriptor().getMessageTypes().get(1319); internal_static_google_cloud_compute_v1_SerialPortOutput_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SerialPortOutput_descriptor, @@ -46776,7 +46808,7 @@ private static void _clinit_autosplit_dinit_2() { "Contents", "Kind", "Next", "SelfLink", "Start", }); internal_static_google_cloud_compute_v1_ServerBinding_descriptor = - getDescriptor().getMessageTypes().get(1319); + getDescriptor().getMessageTypes().get(1320); internal_static_google_cloud_compute_v1_ServerBinding_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ServerBinding_descriptor, @@ -46784,7 +46816,7 @@ private static void _clinit_autosplit_dinit_2() { "Type", }); internal_static_google_cloud_compute_v1_ServiceAccount_descriptor = - getDescriptor().getMessageTypes().get(1320); + getDescriptor().getMessageTypes().get(1321); internal_static_google_cloud_compute_v1_ServiceAccount_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ServiceAccount_descriptor, @@ -46792,7 +46824,7 @@ private static void _clinit_autosplit_dinit_2() { "Email", "Scopes", }); internal_static_google_cloud_compute_v1_ServiceAttachment_descriptor = - getDescriptor().getMessageTypes().get(1321); + getDescriptor().getMessageTypes().get(1322); internal_static_google_cloud_compute_v1_ServiceAttachment_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ServiceAttachment_descriptor, @@ -46830,7 +46862,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_ServiceAttachmentAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1322); + getDescriptor().getMessageTypes().get(1323); internal_static_google_cloud_compute_v1_ServiceAttachmentAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ServiceAttachmentAggregatedList_descriptor, @@ -46848,7 +46880,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_ServiceAttachmentConnectedEndpoint_descriptor = - getDescriptor().getMessageTypes().get(1323); + getDescriptor().getMessageTypes().get(1324); internal_static_google_cloud_compute_v1_ServiceAttachmentConnectedEndpoint_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ServiceAttachmentConnectedEndpoint_descriptor, @@ -46860,7 +46892,7 @@ private static void _clinit_autosplit_dinit_2() { "Status", }); internal_static_google_cloud_compute_v1_ServiceAttachmentConsumerProjectLimit_descriptor = - getDescriptor().getMessageTypes().get(1324); + getDescriptor().getMessageTypes().get(1325); internal_static_google_cloud_compute_v1_ServiceAttachmentConsumerProjectLimit_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ServiceAttachmentConsumerProjectLimit_descriptor, @@ -46868,7 +46900,7 @@ private static void _clinit_autosplit_dinit_2() { "ConnectionLimit", "NetworkUrl", "ProjectIdOrNum", }); internal_static_google_cloud_compute_v1_ServiceAttachmentList_descriptor = - getDescriptor().getMessageTypes().get(1325); + getDescriptor().getMessageTypes().get(1326); internal_static_google_cloud_compute_v1_ServiceAttachmentList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ServiceAttachmentList_descriptor, @@ -46876,7 +46908,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_ServiceAttachmentsScopedList_descriptor = - getDescriptor().getMessageTypes().get(1326); + getDescriptor().getMessageTypes().get(1327); internal_static_google_cloud_compute_v1_ServiceAttachmentsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ServiceAttachmentsScopedList_descriptor, @@ -46884,7 +46916,7 @@ private static void _clinit_autosplit_dinit_2() { "ServiceAttachments", "Warning", }); internal_static_google_cloud_compute_v1_SetBackendServiceTargetSslProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1327); + getDescriptor().getMessageTypes().get(1328); internal_static_google_cloud_compute_v1_SetBackendServiceTargetSslProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetBackendServiceTargetSslProxyRequest_descriptor, @@ -46895,7 +46927,7 @@ private static void _clinit_autosplit_dinit_2() { "TargetSslProxy", }); internal_static_google_cloud_compute_v1_SetBackendServiceTargetTcpProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1328); + getDescriptor().getMessageTypes().get(1329); internal_static_google_cloud_compute_v1_SetBackendServiceTargetTcpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetBackendServiceTargetTcpProxyRequest_descriptor, @@ -46906,7 +46938,7 @@ private static void _clinit_autosplit_dinit_2() { "TargetTcpProxy", }); internal_static_google_cloud_compute_v1_SetBackupTargetPoolRequest_descriptor = - getDescriptor().getMessageTypes().get(1329); + getDescriptor().getMessageTypes().get(1330); internal_static_google_cloud_compute_v1_SetBackupTargetPoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetBackupTargetPoolRequest_descriptor, @@ -46919,7 +46951,7 @@ private static void _clinit_autosplit_dinit_2() { "TargetReferenceResource", }); internal_static_google_cloud_compute_v1_SetCertificateMapTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1330); + getDescriptor().getMessageTypes().get(1331); internal_static_google_cloud_compute_v1_SetCertificateMapTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetCertificateMapTargetHttpsProxyRequest_descriptor, @@ -46930,7 +46962,7 @@ private static void _clinit_autosplit_dinit_2() { "TargetHttpsProxy", }); internal_static_google_cloud_compute_v1_SetCertificateMapTargetSslProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1331); + getDescriptor().getMessageTypes().get(1332); internal_static_google_cloud_compute_v1_SetCertificateMapTargetSslProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetCertificateMapTargetSslProxyRequest_descriptor, @@ -46941,7 +46973,7 @@ private static void _clinit_autosplit_dinit_2() { "TargetSslProxy", }); internal_static_google_cloud_compute_v1_SetCloudArmorTierProjectRequest_descriptor = - getDescriptor().getMessageTypes().get(1332); + getDescriptor().getMessageTypes().get(1333); internal_static_google_cloud_compute_v1_SetCloudArmorTierProjectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetCloudArmorTierProjectRequest_descriptor, @@ -46949,7 +46981,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "ProjectsSetCloudArmorTierRequestResource", "RequestId", }); internal_static_google_cloud_compute_v1_SetCommonInstanceMetadataOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(1333); + getDescriptor().getMessageTypes().get(1334); internal_static_google_cloud_compute_v1_SetCommonInstanceMetadataOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetCommonInstanceMetadataOperationMetadata_descriptor, @@ -46967,7 +46999,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo_descriptor = - getDescriptor().getMessageTypes().get(1334); + getDescriptor().getMessageTypes().get(1335); internal_static_google_cloud_compute_v1_SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo_descriptor, @@ -46975,7 +47007,7 @@ private static void _clinit_autosplit_dinit_2() { "Error", "State", }); internal_static_google_cloud_compute_v1_SetCommonInstanceMetadataProjectRequest_descriptor = - getDescriptor().getMessageTypes().get(1335); + getDescriptor().getMessageTypes().get(1336); internal_static_google_cloud_compute_v1_SetCommonInstanceMetadataProjectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetCommonInstanceMetadataProjectRequest_descriptor, @@ -46983,7 +47015,7 @@ private static void _clinit_autosplit_dinit_2() { "MetadataResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_SetDefaultNetworkTierProjectRequest_descriptor = - getDescriptor().getMessageTypes().get(1336); + getDescriptor().getMessageTypes().get(1337); internal_static_google_cloud_compute_v1_SetDefaultNetworkTierProjectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetDefaultNetworkTierProjectRequest_descriptor, @@ -46991,7 +47023,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "ProjectsSetDefaultNetworkTierRequestResource", "RequestId", }); internal_static_google_cloud_compute_v1_SetDeletionProtectionInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1337); + getDescriptor().getMessageTypes().get(1338); internal_static_google_cloud_compute_v1_SetDeletionProtectionInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetDeletionProtectionInstanceRequest_descriptor, @@ -46999,7 +47031,7 @@ private static void _clinit_autosplit_dinit_2() { "DeletionProtection", "Project", "RequestId", "Resource", "Zone", }); internal_static_google_cloud_compute_v1_SetDiskAutoDeleteInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1338); + getDescriptor().getMessageTypes().get(1339); internal_static_google_cloud_compute_v1_SetDiskAutoDeleteInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetDiskAutoDeleteInstanceRequest_descriptor, @@ -47007,7 +47039,7 @@ private static void _clinit_autosplit_dinit_2() { "AutoDelete", "DeviceName", "Instance", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_SetEdgeSecurityPolicyBackendBucketRequest_descriptor = - getDescriptor().getMessageTypes().get(1339); + getDescriptor().getMessageTypes().get(1340); internal_static_google_cloud_compute_v1_SetEdgeSecurityPolicyBackendBucketRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetEdgeSecurityPolicyBackendBucketRequest_descriptor, @@ -47015,7 +47047,7 @@ private static void _clinit_autosplit_dinit_2() { "BackendBucket", "Project", "RequestId", "SecurityPolicyReferenceResource", }); internal_static_google_cloud_compute_v1_SetEdgeSecurityPolicyBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(1340); + getDescriptor().getMessageTypes().get(1341); internal_static_google_cloud_compute_v1_SetEdgeSecurityPolicyBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetEdgeSecurityPolicyBackendServiceRequest_descriptor, @@ -47023,7 +47055,7 @@ private static void _clinit_autosplit_dinit_2() { "BackendService", "Project", "RequestId", "SecurityPolicyReferenceResource", }); internal_static_google_cloud_compute_v1_SetIamPolicyBackendBucketRequest_descriptor = - getDescriptor().getMessageTypes().get(1341); + getDescriptor().getMessageTypes().get(1342); internal_static_google_cloud_compute_v1_SetIamPolicyBackendBucketRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyBackendBucketRequest_descriptor, @@ -47031,7 +47063,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetPolicyRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(1342); + getDescriptor().getMessageTypes().get(1343); internal_static_google_cloud_compute_v1_SetIamPolicyBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyBackendServiceRequest_descriptor, @@ -47039,7 +47071,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetPolicyRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1343); + getDescriptor().getMessageTypes().get(1344); internal_static_google_cloud_compute_v1_SetIamPolicyDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyDiskRequest_descriptor, @@ -47047,7 +47079,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Resource", "Zone", "ZoneSetPolicyRequestResource", }); internal_static_google_cloud_compute_v1_SetIamPolicyFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1344); + getDescriptor().getMessageTypes().get(1345); internal_static_google_cloud_compute_v1_SetIamPolicyFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyFirewallPolicyRequest_descriptor, @@ -47055,7 +47087,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalOrganizationSetPolicyRequestResource", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyImageRequest_descriptor = - getDescriptor().getMessageTypes().get(1345); + getDescriptor().getMessageTypes().get(1346); internal_static_google_cloud_compute_v1_SetIamPolicyImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyImageRequest_descriptor, @@ -47063,7 +47095,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetPolicyRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1346); + getDescriptor().getMessageTypes().get(1347); internal_static_google_cloud_compute_v1_SetIamPolicyInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyInstanceRequest_descriptor, @@ -47071,7 +47103,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Resource", "Zone", "ZoneSetPolicyRequestResource", }); internal_static_google_cloud_compute_v1_SetIamPolicyInstanceTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(1347); + getDescriptor().getMessageTypes().get(1348); internal_static_google_cloud_compute_v1_SetIamPolicyInstanceTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyInstanceTemplateRequest_descriptor, @@ -47079,7 +47111,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetPolicyRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyInstantSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(1348); + getDescriptor().getMessageTypes().get(1349); internal_static_google_cloud_compute_v1_SetIamPolicyInstantSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyInstantSnapshotRequest_descriptor, @@ -47087,7 +47119,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Resource", "Zone", "ZoneSetPolicyRequestResource", }); internal_static_google_cloud_compute_v1_SetIamPolicyInterconnectAttachmentGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(1349); + getDescriptor().getMessageTypes().get(1350); internal_static_google_cloud_compute_v1_SetIamPolicyInterconnectAttachmentGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyInterconnectAttachmentGroupRequest_descriptor, @@ -47095,7 +47127,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetPolicyRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyInterconnectGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(1350); + getDescriptor().getMessageTypes().get(1351); internal_static_google_cloud_compute_v1_SetIamPolicyInterconnectGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyInterconnectGroupRequest_descriptor, @@ -47103,7 +47135,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetPolicyRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyLicenseRequest_descriptor = - getDescriptor().getMessageTypes().get(1351); + getDescriptor().getMessageTypes().get(1352); internal_static_google_cloud_compute_v1_SetIamPolicyLicenseRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyLicenseRequest_descriptor, @@ -47111,7 +47143,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetPolicyRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyMachineImageRequest_descriptor = - getDescriptor().getMessageTypes().get(1352); + getDescriptor().getMessageTypes().get(1353); internal_static_google_cloud_compute_v1_SetIamPolicyMachineImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyMachineImageRequest_descriptor, @@ -47119,7 +47151,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetPolicyRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyNetworkAttachmentRequest_descriptor = - getDescriptor().getMessageTypes().get(1353); + getDescriptor().getMessageTypes().get(1354); internal_static_google_cloud_compute_v1_SetIamPolicyNetworkAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyNetworkAttachmentRequest_descriptor, @@ -47127,7 +47159,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetPolicyRequestResource", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1354); + getDescriptor().getMessageTypes().get(1355); internal_static_google_cloud_compute_v1_SetIamPolicyNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyNetworkFirewallPolicyRequest_descriptor, @@ -47135,7 +47167,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetPolicyRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyNodeGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(1355); + getDescriptor().getMessageTypes().get(1356); internal_static_google_cloud_compute_v1_SetIamPolicyNodeGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyNodeGroupRequest_descriptor, @@ -47143,7 +47175,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Resource", "Zone", "ZoneSetPolicyRequestResource", }); internal_static_google_cloud_compute_v1_SetIamPolicyNodeTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(1356); + getDescriptor().getMessageTypes().get(1357); internal_static_google_cloud_compute_v1_SetIamPolicyNodeTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyNodeTemplateRequest_descriptor, @@ -47151,7 +47183,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetPolicyRequestResource", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyRegionBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(1357); + getDescriptor().getMessageTypes().get(1358); internal_static_google_cloud_compute_v1_SetIamPolicyRegionBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyRegionBackendServiceRequest_descriptor, @@ -47159,7 +47191,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetPolicyRequestResource", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyRegionDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1358); + getDescriptor().getMessageTypes().get(1359); internal_static_google_cloud_compute_v1_SetIamPolicyRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyRegionDiskRequest_descriptor, @@ -47167,7 +47199,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetPolicyRequestResource", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyRegionInstantSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(1359); + getDescriptor().getMessageTypes().get(1360); internal_static_google_cloud_compute_v1_SetIamPolicyRegionInstantSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyRegionInstantSnapshotRequest_descriptor, @@ -47175,7 +47207,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetPolicyRequestResource", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyRegionNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1360); + getDescriptor().getMessageTypes().get(1361); internal_static_google_cloud_compute_v1_SetIamPolicyRegionNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyRegionNetworkFirewallPolicyRequest_descriptor, @@ -47183,7 +47215,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetPolicyRequestResource", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyReservationRequest_descriptor = - getDescriptor().getMessageTypes().get(1361); + getDescriptor().getMessageTypes().get(1362); internal_static_google_cloud_compute_v1_SetIamPolicyReservationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyReservationRequest_descriptor, @@ -47191,7 +47223,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Resource", "Zone", "ZoneSetPolicyRequestResource", }); internal_static_google_cloud_compute_v1_SetIamPolicyResourcePolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1362); + getDescriptor().getMessageTypes().get(1363); internal_static_google_cloud_compute_v1_SetIamPolicyResourcePolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyResourcePolicyRequest_descriptor, @@ -47199,7 +47231,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetPolicyRequestResource", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyServiceAttachmentRequest_descriptor = - getDescriptor().getMessageTypes().get(1363); + getDescriptor().getMessageTypes().get(1364); internal_static_google_cloud_compute_v1_SetIamPolicyServiceAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyServiceAttachmentRequest_descriptor, @@ -47207,7 +47239,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetPolicyRequestResource", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicySnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(1364); + getDescriptor().getMessageTypes().get(1365); internal_static_google_cloud_compute_v1_SetIamPolicySnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicySnapshotRequest_descriptor, @@ -47215,7 +47247,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetPolicyRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyStoragePoolRequest_descriptor = - getDescriptor().getMessageTypes().get(1365); + getDescriptor().getMessageTypes().get(1366); internal_static_google_cloud_compute_v1_SetIamPolicyStoragePoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyStoragePoolRequest_descriptor, @@ -47223,7 +47255,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Resource", "Zone", "ZoneSetPolicyRequestResource", }); internal_static_google_cloud_compute_v1_SetIamPolicySubnetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(1366); + getDescriptor().getMessageTypes().get(1367); internal_static_google_cloud_compute_v1_SetIamPolicySubnetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicySubnetworkRequest_descriptor, @@ -47231,7 +47263,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetPolicyRequestResource", "Resource", }); internal_static_google_cloud_compute_v1_SetInstanceTemplateInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1367); + getDescriptor().getMessageTypes().get(1368); internal_static_google_cloud_compute_v1_SetInstanceTemplateInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetInstanceTemplateInstanceGroupManagerRequest_descriptor, @@ -47243,7 +47275,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_SetInstanceTemplateRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1368); + getDescriptor().getMessageTypes().get(1369); internal_static_google_cloud_compute_v1_SetInstanceTemplateRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetInstanceTemplateRegionInstanceGroupManagerRequest_descriptor, @@ -47255,7 +47287,7 @@ private static void _clinit_autosplit_dinit_2() { "RequestId", }); internal_static_google_cloud_compute_v1_SetLabelsAddressRequest_descriptor = - getDescriptor().getMessageTypes().get(1369); + getDescriptor().getMessageTypes().get(1370); internal_static_google_cloud_compute_v1_SetLabelsAddressRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsAddressRequest_descriptor, @@ -47263,7 +47295,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetLabelsRequestResource", "RequestId", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1370); + getDescriptor().getMessageTypes().get(1371); internal_static_google_cloud_compute_v1_SetLabelsDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsDiskRequest_descriptor, @@ -47271,15 +47303,19 @@ private static void _clinit_autosplit_dinit_2() { "Project", "RequestId", "Resource", "Zone", "ZoneSetLabelsRequestResource", }); internal_static_google_cloud_compute_v1_SetLabelsExternalVpnGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(1371); + getDescriptor().getMessageTypes().get(1372); internal_static_google_cloud_compute_v1_SetLabelsExternalVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsExternalVpnGatewayRequest_descriptor, new java.lang.String[] { "GlobalSetLabelsRequestResource", "Project", "Resource", }); + _clinit_autosplit_dinit_3(); + } + + private static void _clinit_autosplit_dinit_3() { internal_static_google_cloud_compute_v1_SetLabelsForwardingRuleRequest_descriptor = - getDescriptor().getMessageTypes().get(1372); + getDescriptor().getMessageTypes().get(1373); internal_static_google_cloud_compute_v1_SetLabelsForwardingRuleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsForwardingRuleRequest_descriptor, @@ -47287,19 +47323,15 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetLabelsRequestResource", "RequestId", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsGlobalAddressRequest_descriptor = - getDescriptor().getMessageTypes().get(1373); + getDescriptor().getMessageTypes().get(1374); internal_static_google_cloud_compute_v1_SetLabelsGlobalAddressRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsGlobalAddressRequest_descriptor, new java.lang.String[] { "GlobalSetLabelsRequestResource", "Project", "Resource", }); - _clinit_autosplit_dinit_3(); - } - - private static void _clinit_autosplit_dinit_3() { internal_static_google_cloud_compute_v1_SetLabelsGlobalForwardingRuleRequest_descriptor = - getDescriptor().getMessageTypes().get(1374); + getDescriptor().getMessageTypes().get(1375); internal_static_google_cloud_compute_v1_SetLabelsGlobalForwardingRuleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsGlobalForwardingRuleRequest_descriptor, @@ -47307,7 +47339,7 @@ private static void _clinit_autosplit_dinit_3() { "GlobalSetLabelsRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsImageRequest_descriptor = - getDescriptor().getMessageTypes().get(1375); + getDescriptor().getMessageTypes().get(1376); internal_static_google_cloud_compute_v1_SetLabelsImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsImageRequest_descriptor, @@ -47315,7 +47347,7 @@ private static void _clinit_autosplit_dinit_3() { "GlobalSetLabelsRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1376); + getDescriptor().getMessageTypes().get(1377); internal_static_google_cloud_compute_v1_SetLabelsInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsInstanceRequest_descriptor, @@ -47323,7 +47355,7 @@ private static void _clinit_autosplit_dinit_3() { "Instance", "InstancesSetLabelsRequestResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_SetLabelsInstantSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(1377); + getDescriptor().getMessageTypes().get(1378); internal_static_google_cloud_compute_v1_SetLabelsInstantSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsInstantSnapshotRequest_descriptor, @@ -47331,7 +47363,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "RequestId", "Resource", "Zone", "ZoneSetLabelsRequestResource", }); internal_static_google_cloud_compute_v1_SetLabelsInterconnectAttachmentRequest_descriptor = - getDescriptor().getMessageTypes().get(1378); + getDescriptor().getMessageTypes().get(1379); internal_static_google_cloud_compute_v1_SetLabelsInterconnectAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsInterconnectAttachmentRequest_descriptor, @@ -47339,7 +47371,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "RegionSetLabelsRequestResource", "RequestId", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsInterconnectRequest_descriptor = - getDescriptor().getMessageTypes().get(1379); + getDescriptor().getMessageTypes().get(1380); internal_static_google_cloud_compute_v1_SetLabelsInterconnectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsInterconnectRequest_descriptor, @@ -47347,7 +47379,7 @@ private static void _clinit_autosplit_dinit_3() { "GlobalSetLabelsRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsMachineImageRequest_descriptor = - getDescriptor().getMessageTypes().get(1380); + getDescriptor().getMessageTypes().get(1381); internal_static_google_cloud_compute_v1_SetLabelsMachineImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsMachineImageRequest_descriptor, @@ -47355,7 +47387,7 @@ private static void _clinit_autosplit_dinit_3() { "GlobalSetLabelsRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsRegionDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1381); + getDescriptor().getMessageTypes().get(1382); internal_static_google_cloud_compute_v1_SetLabelsRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsRegionDiskRequest_descriptor, @@ -47363,7 +47395,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "RegionSetLabelsRequestResource", "RequestId", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsRegionInstantSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(1382); + getDescriptor().getMessageTypes().get(1383); internal_static_google_cloud_compute_v1_SetLabelsRegionInstantSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsRegionInstantSnapshotRequest_descriptor, @@ -47371,7 +47403,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "RegionSetLabelsRequestResource", "RequestId", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsRegionSecurityPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1383); + getDescriptor().getMessageTypes().get(1384); internal_static_google_cloud_compute_v1_SetLabelsRegionSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsRegionSecurityPolicyRequest_descriptor, @@ -47379,7 +47411,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "RegionSetLabelsRequestResource", "RequestId", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsSecurityPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1384); + getDescriptor().getMessageTypes().get(1385); internal_static_google_cloud_compute_v1_SetLabelsSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsSecurityPolicyRequest_descriptor, @@ -47387,7 +47419,7 @@ private static void _clinit_autosplit_dinit_3() { "GlobalSetLabelsRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(1385); + getDescriptor().getMessageTypes().get(1386); internal_static_google_cloud_compute_v1_SetLabelsSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsSnapshotRequest_descriptor, @@ -47395,7 +47427,7 @@ private static void _clinit_autosplit_dinit_3() { "GlobalSetLabelsRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsTargetVpnGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(1386); + getDescriptor().getMessageTypes().get(1387); internal_static_google_cloud_compute_v1_SetLabelsTargetVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsTargetVpnGatewayRequest_descriptor, @@ -47403,7 +47435,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "RegionSetLabelsRequestResource", "RequestId", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsVpnGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(1387); + getDescriptor().getMessageTypes().get(1388); internal_static_google_cloud_compute_v1_SetLabelsVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsVpnGatewayRequest_descriptor, @@ -47411,7 +47443,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "RegionSetLabelsRequestResource", "RequestId", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsVpnTunnelRequest_descriptor = - getDescriptor().getMessageTypes().get(1388); + getDescriptor().getMessageTypes().get(1389); internal_static_google_cloud_compute_v1_SetLabelsVpnTunnelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsVpnTunnelRequest_descriptor, @@ -47419,7 +47451,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "RegionSetLabelsRequestResource", "RequestId", "Resource", }); internal_static_google_cloud_compute_v1_SetMachineResourcesInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1389); + getDescriptor().getMessageTypes().get(1390); internal_static_google_cloud_compute_v1_SetMachineResourcesInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetMachineResourcesInstanceRequest_descriptor, @@ -47431,7 +47463,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_SetMachineTypeInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1390); + getDescriptor().getMessageTypes().get(1391); internal_static_google_cloud_compute_v1_SetMachineTypeInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetMachineTypeInstanceRequest_descriptor, @@ -47439,7 +47471,7 @@ private static void _clinit_autosplit_dinit_3() { "Instance", "InstancesSetMachineTypeRequestResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_SetMetadataInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1391); + getDescriptor().getMessageTypes().get(1392); internal_static_google_cloud_compute_v1_SetMetadataInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetMetadataInstanceRequest_descriptor, @@ -47447,7 +47479,7 @@ private static void _clinit_autosplit_dinit_3() { "Instance", "MetadataResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_SetMinCpuPlatformInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1392); + getDescriptor().getMessageTypes().get(1393); internal_static_google_cloud_compute_v1_SetMinCpuPlatformInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetMinCpuPlatformInstanceRequest_descriptor, @@ -47459,7 +47491,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_SetNameInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1393); + getDescriptor().getMessageTypes().get(1394); internal_static_google_cloud_compute_v1_SetNameInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetNameInstanceRequest_descriptor, @@ -47467,7 +47499,7 @@ private static void _clinit_autosplit_dinit_3() { "Instance", "InstancesSetNameRequestResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_SetNamedPortsInstanceGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(1394); + getDescriptor().getMessageTypes().get(1395); internal_static_google_cloud_compute_v1_SetNamedPortsInstanceGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetNamedPortsInstanceGroupRequest_descriptor, @@ -47479,7 +47511,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_SetNamedPortsRegionInstanceGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(1395); + getDescriptor().getMessageTypes().get(1396); internal_static_google_cloud_compute_v1_SetNamedPortsRegionInstanceGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetNamedPortsRegionInstanceGroupRequest_descriptor, @@ -47491,7 +47523,7 @@ private static void _clinit_autosplit_dinit_3() { "RequestId", }); internal_static_google_cloud_compute_v1_SetNodeTemplateNodeGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(1396); + getDescriptor().getMessageTypes().get(1397); internal_static_google_cloud_compute_v1_SetNodeTemplateNodeGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetNodeTemplateNodeGroupRequest_descriptor, @@ -47503,7 +47535,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_SetPrivateIpGoogleAccessSubnetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(1397); + getDescriptor().getMessageTypes().get(1398); internal_static_google_cloud_compute_v1_SetPrivateIpGoogleAccessSubnetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetPrivateIpGoogleAccessSubnetworkRequest_descriptor, @@ -47515,7 +47547,7 @@ private static void _clinit_autosplit_dinit_3() { "SubnetworksSetPrivateIpGoogleAccessRequestResource", }); internal_static_google_cloud_compute_v1_SetProxyHeaderTargetSslProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1398); + getDescriptor().getMessageTypes().get(1399); internal_static_google_cloud_compute_v1_SetProxyHeaderTargetSslProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetProxyHeaderTargetSslProxyRequest_descriptor, @@ -47526,7 +47558,7 @@ private static void _clinit_autosplit_dinit_3() { "TargetSslProxy", }); internal_static_google_cloud_compute_v1_SetProxyHeaderTargetTcpProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1399); + getDescriptor().getMessageTypes().get(1400); internal_static_google_cloud_compute_v1_SetProxyHeaderTargetTcpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetProxyHeaderTargetTcpProxyRequest_descriptor, @@ -47537,7 +47569,7 @@ private static void _clinit_autosplit_dinit_3() { "TargetTcpProxy", }); internal_static_google_cloud_compute_v1_SetQuicOverrideTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1400); + getDescriptor().getMessageTypes().get(1401); internal_static_google_cloud_compute_v1_SetQuicOverrideTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetQuicOverrideTargetHttpsProxyRequest_descriptor, @@ -47548,7 +47580,7 @@ private static void _clinit_autosplit_dinit_3() { "TargetHttpsProxy", }); internal_static_google_cloud_compute_v1_SetSchedulingInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1401); + getDescriptor().getMessageTypes().get(1402); internal_static_google_cloud_compute_v1_SetSchedulingInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetSchedulingInstanceRequest_descriptor, @@ -47556,7 +47588,7 @@ private static void _clinit_autosplit_dinit_3() { "Instance", "Project", "RequestId", "SchedulingResource", "Zone", }); internal_static_google_cloud_compute_v1_SetSecurityPolicyBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(1402); + getDescriptor().getMessageTypes().get(1403); internal_static_google_cloud_compute_v1_SetSecurityPolicyBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetSecurityPolicyBackendServiceRequest_descriptor, @@ -47564,7 +47596,7 @@ private static void _clinit_autosplit_dinit_3() { "BackendService", "Project", "RequestId", "SecurityPolicyReferenceResource", }); internal_static_google_cloud_compute_v1_SetSecurityPolicyInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1403); + getDescriptor().getMessageTypes().get(1404); internal_static_google_cloud_compute_v1_SetSecurityPolicyInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetSecurityPolicyInstanceRequest_descriptor, @@ -47576,7 +47608,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_SetSecurityPolicyRegionBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(1404); + getDescriptor().getMessageTypes().get(1405); internal_static_google_cloud_compute_v1_SetSecurityPolicyRegionBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetSecurityPolicyRegionBackendServiceRequest_descriptor, @@ -47584,7 +47616,7 @@ private static void _clinit_autosplit_dinit_3() { "BackendService", "Project", "Region", "RequestId", "SecurityPolicyReferenceResource", }); internal_static_google_cloud_compute_v1_SetSecurityPolicyTargetInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1405); + getDescriptor().getMessageTypes().get(1406); internal_static_google_cloud_compute_v1_SetSecurityPolicyTargetInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetSecurityPolicyTargetInstanceRequest_descriptor, @@ -47592,7 +47624,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "RequestId", "SecurityPolicyReferenceResource", "TargetInstance", "Zone", }); internal_static_google_cloud_compute_v1_SetSecurityPolicyTargetPoolRequest_descriptor = - getDescriptor().getMessageTypes().get(1406); + getDescriptor().getMessageTypes().get(1407); internal_static_google_cloud_compute_v1_SetSecurityPolicyTargetPoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetSecurityPolicyTargetPoolRequest_descriptor, @@ -47600,7 +47632,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "RequestId", "SecurityPolicyReferenceResource", "TargetPool", }); internal_static_google_cloud_compute_v1_SetServiceAccountInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1407); + getDescriptor().getMessageTypes().get(1408); internal_static_google_cloud_compute_v1_SetServiceAccountInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetServiceAccountInstanceRequest_descriptor, @@ -47612,7 +47644,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_SetShieldedInstanceIntegrityPolicyInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1408); + getDescriptor().getMessageTypes().get(1409); internal_static_google_cloud_compute_v1_SetShieldedInstanceIntegrityPolicyInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetShieldedInstanceIntegrityPolicyInstanceRequest_descriptor, @@ -47620,7 +47652,7 @@ private static void _clinit_autosplit_dinit_3() { "Instance", "Project", "RequestId", "ShieldedInstanceIntegrityPolicyResource", "Zone", }); internal_static_google_cloud_compute_v1_SetSslCertificatesRegionTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1409); + getDescriptor().getMessageTypes().get(1410); internal_static_google_cloud_compute_v1_SetSslCertificatesRegionTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetSslCertificatesRegionTargetHttpsProxyRequest_descriptor, @@ -47632,7 +47664,7 @@ private static void _clinit_autosplit_dinit_3() { "TargetHttpsProxy", }); internal_static_google_cloud_compute_v1_SetSslCertificatesTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1410); + getDescriptor().getMessageTypes().get(1411); internal_static_google_cloud_compute_v1_SetSslCertificatesTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetSslCertificatesTargetHttpsProxyRequest_descriptor, @@ -47643,7 +47675,7 @@ private static void _clinit_autosplit_dinit_3() { "TargetHttpsProxy", }); internal_static_google_cloud_compute_v1_SetSslCertificatesTargetSslProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1411); + getDescriptor().getMessageTypes().get(1412); internal_static_google_cloud_compute_v1_SetSslCertificatesTargetSslProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetSslCertificatesTargetSslProxyRequest_descriptor, @@ -47654,7 +47686,7 @@ private static void _clinit_autosplit_dinit_3() { "TargetSslProxy", }); internal_static_google_cloud_compute_v1_SetSslPolicyTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1412); + getDescriptor().getMessageTypes().get(1413); internal_static_google_cloud_compute_v1_SetSslPolicyTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetSslPolicyTargetHttpsProxyRequest_descriptor, @@ -47662,7 +47694,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "RequestId", "SslPolicyReferenceResource", "TargetHttpsProxy", }); internal_static_google_cloud_compute_v1_SetSslPolicyTargetSslProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1413); + getDescriptor().getMessageTypes().get(1414); internal_static_google_cloud_compute_v1_SetSslPolicyTargetSslProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetSslPolicyTargetSslProxyRequest_descriptor, @@ -47670,7 +47702,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "RequestId", "SslPolicyReferenceResource", "TargetSslProxy", }); internal_static_google_cloud_compute_v1_SetTagsInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1414); + getDescriptor().getMessageTypes().get(1415); internal_static_google_cloud_compute_v1_SetTagsInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetTagsInstanceRequest_descriptor, @@ -47678,7 +47710,7 @@ private static void _clinit_autosplit_dinit_3() { "Instance", "Project", "RequestId", "TagsResource", "Zone", }); internal_static_google_cloud_compute_v1_SetTargetForwardingRuleRequest_descriptor = - getDescriptor().getMessageTypes().get(1415); + getDescriptor().getMessageTypes().get(1416); internal_static_google_cloud_compute_v1_SetTargetForwardingRuleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetTargetForwardingRuleRequest_descriptor, @@ -47686,7 +47718,7 @@ private static void _clinit_autosplit_dinit_3() { "ForwardingRule", "Project", "Region", "RequestId", "TargetReferenceResource", }); internal_static_google_cloud_compute_v1_SetTargetGlobalForwardingRuleRequest_descriptor = - getDescriptor().getMessageTypes().get(1416); + getDescriptor().getMessageTypes().get(1417); internal_static_google_cloud_compute_v1_SetTargetGlobalForwardingRuleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetTargetGlobalForwardingRuleRequest_descriptor, @@ -47694,7 +47726,7 @@ private static void _clinit_autosplit_dinit_3() { "ForwardingRule", "Project", "RequestId", "TargetReferenceResource", }); internal_static_google_cloud_compute_v1_SetTargetPoolsInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1417); + getDescriptor().getMessageTypes().get(1418); internal_static_google_cloud_compute_v1_SetTargetPoolsInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetTargetPoolsInstanceGroupManagerRequest_descriptor, @@ -47706,7 +47738,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_SetTargetPoolsRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1418); + getDescriptor().getMessageTypes().get(1419); internal_static_google_cloud_compute_v1_SetTargetPoolsRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetTargetPoolsRegionInstanceGroupManagerRequest_descriptor, @@ -47718,7 +47750,7 @@ private static void _clinit_autosplit_dinit_3() { "RequestId", }); internal_static_google_cloud_compute_v1_SetUrlMapRegionTargetHttpProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1419); + getDescriptor().getMessageTypes().get(1420); internal_static_google_cloud_compute_v1_SetUrlMapRegionTargetHttpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetUrlMapRegionTargetHttpProxyRequest_descriptor, @@ -47726,7 +47758,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "RequestId", "TargetHttpProxy", "UrlMapReferenceResource", }); internal_static_google_cloud_compute_v1_SetUrlMapRegionTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1420); + getDescriptor().getMessageTypes().get(1421); internal_static_google_cloud_compute_v1_SetUrlMapRegionTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetUrlMapRegionTargetHttpsProxyRequest_descriptor, @@ -47734,7 +47766,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "RequestId", "TargetHttpsProxy", "UrlMapReferenceResource", }); internal_static_google_cloud_compute_v1_SetUrlMapTargetHttpProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1421); + getDescriptor().getMessageTypes().get(1422); internal_static_google_cloud_compute_v1_SetUrlMapTargetHttpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetUrlMapTargetHttpProxyRequest_descriptor, @@ -47742,7 +47774,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "RequestId", "TargetHttpProxy", "UrlMapReferenceResource", }); internal_static_google_cloud_compute_v1_SetUrlMapTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1422); + getDescriptor().getMessageTypes().get(1423); internal_static_google_cloud_compute_v1_SetUrlMapTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetUrlMapTargetHttpsProxyRequest_descriptor, @@ -47750,7 +47782,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "RequestId", "TargetHttpsProxy", "UrlMapReferenceResource", }); internal_static_google_cloud_compute_v1_SetUsageExportBucketProjectRequest_descriptor = - getDescriptor().getMessageTypes().get(1423); + getDescriptor().getMessageTypes().get(1424); internal_static_google_cloud_compute_v1_SetUsageExportBucketProjectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetUsageExportBucketProjectRequest_descriptor, @@ -47758,7 +47790,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "RequestId", "UsageExportLocationResource", }); internal_static_google_cloud_compute_v1_ShareSettings_descriptor = - getDescriptor().getMessageTypes().get(1424); + getDescriptor().getMessageTypes().get(1425); internal_static_google_cloud_compute_v1_ShareSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ShareSettings_descriptor, @@ -47774,7 +47806,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_ShareSettingsProjectConfig_descriptor = - getDescriptor().getMessageTypes().get(1425); + getDescriptor().getMessageTypes().get(1426); internal_static_google_cloud_compute_v1_ShareSettingsProjectConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ShareSettingsProjectConfig_descriptor, @@ -47782,7 +47814,7 @@ private static void _clinit_autosplit_dinit_3() { "ProjectId", }); internal_static_google_cloud_compute_v1_ShieldedInstanceConfig_descriptor = - getDescriptor().getMessageTypes().get(1426); + getDescriptor().getMessageTypes().get(1427); internal_static_google_cloud_compute_v1_ShieldedInstanceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ShieldedInstanceConfig_descriptor, @@ -47790,7 +47822,7 @@ private static void _clinit_autosplit_dinit_3() { "EnableIntegrityMonitoring", "EnableSecureBoot", "EnableVtpm", }); internal_static_google_cloud_compute_v1_ShieldedInstanceIdentity_descriptor = - getDescriptor().getMessageTypes().get(1427); + getDescriptor().getMessageTypes().get(1428); internal_static_google_cloud_compute_v1_ShieldedInstanceIdentity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ShieldedInstanceIdentity_descriptor, @@ -47798,7 +47830,7 @@ private static void _clinit_autosplit_dinit_3() { "EncryptionKey", "Kind", "SigningKey", }); internal_static_google_cloud_compute_v1_ShieldedInstanceIdentityEntry_descriptor = - getDescriptor().getMessageTypes().get(1428); + getDescriptor().getMessageTypes().get(1429); internal_static_google_cloud_compute_v1_ShieldedInstanceIdentityEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ShieldedInstanceIdentityEntry_descriptor, @@ -47806,7 +47838,7 @@ private static void _clinit_autosplit_dinit_3() { "EkCert", "EkPub", }); internal_static_google_cloud_compute_v1_ShieldedInstanceIntegrityPolicy_descriptor = - getDescriptor().getMessageTypes().get(1429); + getDescriptor().getMessageTypes().get(1430); internal_static_google_cloud_compute_v1_ShieldedInstanceIntegrityPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ShieldedInstanceIntegrityPolicy_descriptor, @@ -47814,7 +47846,7 @@ private static void _clinit_autosplit_dinit_3() { "UpdateAutoLearnPolicy", }); internal_static_google_cloud_compute_v1_SignedUrlKey_descriptor = - getDescriptor().getMessageTypes().get(1430); + getDescriptor().getMessageTypes().get(1431); internal_static_google_cloud_compute_v1_SignedUrlKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SignedUrlKey_descriptor, @@ -47822,7 +47854,7 @@ private static void _clinit_autosplit_dinit_3() { "KeyName", "KeyValue", }); internal_static_google_cloud_compute_v1_SimulateMaintenanceEventInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1431); + getDescriptor().getMessageTypes().get(1432); internal_static_google_cloud_compute_v1_SimulateMaintenanceEventInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SimulateMaintenanceEventInstanceRequest_descriptor, @@ -47830,7 +47862,7 @@ private static void _clinit_autosplit_dinit_3() { "Instance", "Project", "RequestId", "WithExtendedNotifications", "Zone", }); internal_static_google_cloud_compute_v1_SimulateMaintenanceEventNodeGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(1432); + getDescriptor().getMessageTypes().get(1433); internal_static_google_cloud_compute_v1_SimulateMaintenanceEventNodeGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SimulateMaintenanceEventNodeGroupRequest_descriptor, @@ -47842,7 +47874,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_Snapshot_descriptor = - getDescriptor().getMessageTypes().get(1433); + getDescriptor().getMessageTypes().get(1434); internal_static_google_cloud_compute_v1_Snapshot_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Snapshot_descriptor, @@ -47894,7 +47926,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_SnapshotList_descriptor = - getDescriptor().getMessageTypes().get(1434); + getDescriptor().getMessageTypes().get(1435); internal_static_google_cloud_compute_v1_SnapshotList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SnapshotList_descriptor, @@ -47902,7 +47934,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_SnapshotSettings_descriptor = - getDescriptor().getMessageTypes().get(1435); + getDescriptor().getMessageTypes().get(1436); internal_static_google_cloud_compute_v1_SnapshotSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SnapshotSettings_descriptor, @@ -47910,7 +47942,7 @@ private static void _clinit_autosplit_dinit_3() { "StorageLocation", }); internal_static_google_cloud_compute_v1_SnapshotSettingsStorageLocationSettings_descriptor = - getDescriptor().getMessageTypes().get(1436); + getDescriptor().getMessageTypes().get(1437); internal_static_google_cloud_compute_v1_SnapshotSettingsStorageLocationSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SnapshotSettingsStorageLocationSettings_descriptor, @@ -47928,7 +47960,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_SnapshotSettingsStorageLocationSettingsStorageLocationPreference_descriptor = - getDescriptor().getMessageTypes().get(1437); + getDescriptor().getMessageTypes().get(1438); internal_static_google_cloud_compute_v1_SnapshotSettingsStorageLocationSettingsStorageLocationPreference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SnapshotSettingsStorageLocationSettingsStorageLocationPreference_descriptor, @@ -47936,7 +47968,7 @@ private static void _clinit_autosplit_dinit_3() { "Name", }); internal_static_google_cloud_compute_v1_SourceDiskEncryptionKey_descriptor = - getDescriptor().getMessageTypes().get(1438); + getDescriptor().getMessageTypes().get(1439); internal_static_google_cloud_compute_v1_SourceDiskEncryptionKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SourceDiskEncryptionKey_descriptor, @@ -47944,7 +47976,7 @@ private static void _clinit_autosplit_dinit_3() { "DiskEncryptionKey", "SourceDisk", }); internal_static_google_cloud_compute_v1_SourceInstanceParams_descriptor = - getDescriptor().getMessageTypes().get(1439); + getDescriptor().getMessageTypes().get(1440); internal_static_google_cloud_compute_v1_SourceInstanceParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SourceInstanceParams_descriptor, @@ -47952,7 +47984,7 @@ private static void _clinit_autosplit_dinit_3() { "DiskConfigs", }); internal_static_google_cloud_compute_v1_SourceInstanceProperties_descriptor = - getDescriptor().getMessageTypes().get(1440); + getDescriptor().getMessageTypes().get(1441); internal_static_google_cloud_compute_v1_SourceInstanceProperties_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SourceInstanceProperties_descriptor, @@ -47983,7 +48015,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_SslCertificate_descriptor = - getDescriptor().getMessageTypes().get(1441); + getDescriptor().getMessageTypes().get(1442); internal_static_google_cloud_compute_v1_SslCertificate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslCertificate_descriptor, @@ -48004,7 +48036,7 @@ private static void _clinit_autosplit_dinit_3() { "Type", }); internal_static_google_cloud_compute_v1_SslCertificateAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1442); + getDescriptor().getMessageTypes().get(1443); internal_static_google_cloud_compute_v1_SslCertificateAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslCertificateAggregatedList_descriptor, @@ -48022,7 +48054,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_SslCertificateList_descriptor = - getDescriptor().getMessageTypes().get(1443); + getDescriptor().getMessageTypes().get(1444); internal_static_google_cloud_compute_v1_SslCertificateList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslCertificateList_descriptor, @@ -48030,7 +48062,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_SslCertificateManagedSslCertificate_descriptor = - getDescriptor().getMessageTypes().get(1444); + getDescriptor().getMessageTypes().get(1445); internal_static_google_cloud_compute_v1_SslCertificateManagedSslCertificate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslCertificateManagedSslCertificate_descriptor, @@ -48048,7 +48080,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_SslCertificateSelfManagedSslCertificate_descriptor = - getDescriptor().getMessageTypes().get(1445); + getDescriptor().getMessageTypes().get(1446); internal_static_google_cloud_compute_v1_SslCertificateSelfManagedSslCertificate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslCertificateSelfManagedSslCertificate_descriptor, @@ -48056,7 +48088,7 @@ private static void _clinit_autosplit_dinit_3() { "Certificate", "PrivateKey", }); internal_static_google_cloud_compute_v1_SslCertificatesScopedList_descriptor = - getDescriptor().getMessageTypes().get(1446); + getDescriptor().getMessageTypes().get(1447); internal_static_google_cloud_compute_v1_SslCertificatesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslCertificatesScopedList_descriptor, @@ -48064,7 +48096,7 @@ private static void _clinit_autosplit_dinit_3() { "SslCertificates", "Warning", }); internal_static_google_cloud_compute_v1_SslPoliciesAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1447); + getDescriptor().getMessageTypes().get(1448); internal_static_google_cloud_compute_v1_SslPoliciesAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslPoliciesAggregatedList_descriptor, @@ -48082,7 +48114,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_SslPoliciesList_descriptor = - getDescriptor().getMessageTypes().get(1448); + getDescriptor().getMessageTypes().get(1449); internal_static_google_cloud_compute_v1_SslPoliciesList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslPoliciesList_descriptor, @@ -48090,7 +48122,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_SslPoliciesListAvailableFeaturesResponse_descriptor = - getDescriptor().getMessageTypes().get(1449); + getDescriptor().getMessageTypes().get(1450); internal_static_google_cloud_compute_v1_SslPoliciesListAvailableFeaturesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslPoliciesListAvailableFeaturesResponse_descriptor, @@ -48098,7 +48130,7 @@ private static void _clinit_autosplit_dinit_3() { "Features", }); internal_static_google_cloud_compute_v1_SslPoliciesScopedList_descriptor = - getDescriptor().getMessageTypes().get(1450); + getDescriptor().getMessageTypes().get(1451); internal_static_google_cloud_compute_v1_SslPoliciesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslPoliciesScopedList_descriptor, @@ -48106,7 +48138,7 @@ private static void _clinit_autosplit_dinit_3() { "SslPolicies", "Warning", }); internal_static_google_cloud_compute_v1_SslPolicy_descriptor = - getDescriptor().getMessageTypes().get(1451); + getDescriptor().getMessageTypes().get(1452); internal_static_google_cloud_compute_v1_SslPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslPolicy_descriptor, @@ -48126,7 +48158,7 @@ private static void _clinit_autosplit_dinit_3() { "Warnings", }); internal_static_google_cloud_compute_v1_SslPolicyReference_descriptor = - getDescriptor().getMessageTypes().get(1452); + getDescriptor().getMessageTypes().get(1453); internal_static_google_cloud_compute_v1_SslPolicyReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslPolicyReference_descriptor, @@ -48134,7 +48166,7 @@ private static void _clinit_autosplit_dinit_3() { "SslPolicy", }); internal_static_google_cloud_compute_v1_StartAsyncReplicationDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1453); + getDescriptor().getMessageTypes().get(1454); internal_static_google_cloud_compute_v1_StartAsyncReplicationDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StartAsyncReplicationDiskRequest_descriptor, @@ -48142,7 +48174,7 @@ private static void _clinit_autosplit_dinit_3() { "Disk", "DisksStartAsyncReplicationRequestResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_StartAsyncReplicationRegionDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1454); + getDescriptor().getMessageTypes().get(1455); internal_static_google_cloud_compute_v1_StartAsyncReplicationRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StartAsyncReplicationRegionDiskRequest_descriptor, @@ -48154,7 +48186,7 @@ private static void _clinit_autosplit_dinit_3() { "RequestId", }); internal_static_google_cloud_compute_v1_StartInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1455); + getDescriptor().getMessageTypes().get(1456); internal_static_google_cloud_compute_v1_StartInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StartInstanceRequest_descriptor, @@ -48162,7 +48194,7 @@ private static void _clinit_autosplit_dinit_3() { "Instance", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_StartInstancesInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1456); + getDescriptor().getMessageTypes().get(1457); internal_static_google_cloud_compute_v1_StartInstancesInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StartInstancesInstanceGroupManagerRequest_descriptor, @@ -48174,7 +48206,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_StartInstancesRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1457); + getDescriptor().getMessageTypes().get(1458); internal_static_google_cloud_compute_v1_StartInstancesRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StartInstancesRegionInstanceGroupManagerRequest_descriptor, @@ -48186,7 +48218,7 @@ private static void _clinit_autosplit_dinit_3() { "RequestId", }); internal_static_google_cloud_compute_v1_StartWithEncryptionKeyInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1458); + getDescriptor().getMessageTypes().get(1459); internal_static_google_cloud_compute_v1_StartWithEncryptionKeyInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StartWithEncryptionKeyInstanceRequest_descriptor, @@ -48198,7 +48230,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_StatefulPolicy_descriptor = - getDescriptor().getMessageTypes().get(1459); + getDescriptor().getMessageTypes().get(1460); internal_static_google_cloud_compute_v1_StatefulPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StatefulPolicy_descriptor, @@ -48206,7 +48238,7 @@ private static void _clinit_autosplit_dinit_3() { "PreservedState", }); internal_static_google_cloud_compute_v1_StatefulPolicyPreservedState_descriptor = - getDescriptor().getMessageTypes().get(1460); + getDescriptor().getMessageTypes().get(1461); internal_static_google_cloud_compute_v1_StatefulPolicyPreservedState_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StatefulPolicyPreservedState_descriptor, @@ -48244,7 +48276,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_StatefulPolicyPreservedStateDiskDevice_descriptor = - getDescriptor().getMessageTypes().get(1461); + getDescriptor().getMessageTypes().get(1462); internal_static_google_cloud_compute_v1_StatefulPolicyPreservedStateDiskDevice_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StatefulPolicyPreservedStateDiskDevice_descriptor, @@ -48252,7 +48284,7 @@ private static void _clinit_autosplit_dinit_3() { "AutoDelete", }); internal_static_google_cloud_compute_v1_StatefulPolicyPreservedStateNetworkIp_descriptor = - getDescriptor().getMessageTypes().get(1462); + getDescriptor().getMessageTypes().get(1463); internal_static_google_cloud_compute_v1_StatefulPolicyPreservedStateNetworkIp_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StatefulPolicyPreservedStateNetworkIp_descriptor, @@ -48260,7 +48292,7 @@ private static void _clinit_autosplit_dinit_3() { "AutoDelete", }); internal_static_google_cloud_compute_v1_Status_descriptor = - getDescriptor().getMessageTypes().get(1463); + getDescriptor().getMessageTypes().get(1464); internal_static_google_cloud_compute_v1_Status_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Status_descriptor, @@ -48268,7 +48300,7 @@ private static void _clinit_autosplit_dinit_3() { "Code", "Details", "Message", }); internal_static_google_cloud_compute_v1_StopAsyncReplicationDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1464); + getDescriptor().getMessageTypes().get(1465); internal_static_google_cloud_compute_v1_StopAsyncReplicationDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StopAsyncReplicationDiskRequest_descriptor, @@ -48276,7 +48308,7 @@ private static void _clinit_autosplit_dinit_3() { "Disk", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_StopAsyncReplicationRegionDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1465); + getDescriptor().getMessageTypes().get(1466); internal_static_google_cloud_compute_v1_StopAsyncReplicationRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StopAsyncReplicationRegionDiskRequest_descriptor, @@ -48284,7 +48316,7 @@ private static void _clinit_autosplit_dinit_3() { "Disk", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_StopGroupAsyncReplicationDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1466); + getDescriptor().getMessageTypes().get(1467); internal_static_google_cloud_compute_v1_StopGroupAsyncReplicationDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StopGroupAsyncReplicationDiskRequest_descriptor, @@ -48292,7 +48324,7 @@ private static void _clinit_autosplit_dinit_3() { "DisksStopGroupAsyncReplicationResourceResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_StopGroupAsyncReplicationRegionDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1467); + getDescriptor().getMessageTypes().get(1468); internal_static_google_cloud_compute_v1_StopGroupAsyncReplicationRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StopGroupAsyncReplicationRegionDiskRequest_descriptor, @@ -48300,7 +48332,7 @@ private static void _clinit_autosplit_dinit_3() { "DisksStopGroupAsyncReplicationResourceResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_StopInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1468); + getDescriptor().getMessageTypes().get(1469); internal_static_google_cloud_compute_v1_StopInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StopInstanceRequest_descriptor, @@ -48308,7 +48340,7 @@ private static void _clinit_autosplit_dinit_3() { "DiscardLocalSsd", "Instance", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_StopInstancesInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1469); + getDescriptor().getMessageTypes().get(1470); internal_static_google_cloud_compute_v1_StopInstancesInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StopInstancesInstanceGroupManagerRequest_descriptor, @@ -48320,7 +48352,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_StopInstancesRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1470); + getDescriptor().getMessageTypes().get(1471); internal_static_google_cloud_compute_v1_StopInstancesRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StopInstancesRegionInstanceGroupManagerRequest_descriptor, @@ -48332,7 +48364,7 @@ private static void _clinit_autosplit_dinit_3() { "RequestId", }); internal_static_google_cloud_compute_v1_StoragePool_descriptor = - getDescriptor().getMessageTypes().get(1471); + getDescriptor().getMessageTypes().get(1472); internal_static_google_cloud_compute_v1_StoragePool_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StoragePool_descriptor, @@ -48366,7 +48398,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_StoragePoolAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1472); + getDescriptor().getMessageTypes().get(1473); internal_static_google_cloud_compute_v1_StoragePoolAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StoragePoolAggregatedList_descriptor, @@ -48384,7 +48416,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_StoragePoolDisk_descriptor = - getDescriptor().getMessageTypes().get(1473); + getDescriptor().getMessageTypes().get(1474); internal_static_google_cloud_compute_v1_StoragePoolDisk_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StoragePoolDisk_descriptor, @@ -48402,7 +48434,7 @@ private static void _clinit_autosplit_dinit_3() { "UsedBytes", }); internal_static_google_cloud_compute_v1_StoragePoolList_descriptor = - getDescriptor().getMessageTypes().get(1474); + getDescriptor().getMessageTypes().get(1475); internal_static_google_cloud_compute_v1_StoragePoolList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StoragePoolList_descriptor, @@ -48410,7 +48442,7 @@ private static void _clinit_autosplit_dinit_3() { "Etag", "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Unreachables", "Warning", }); internal_static_google_cloud_compute_v1_StoragePoolListDisks_descriptor = - getDescriptor().getMessageTypes().get(1475); + getDescriptor().getMessageTypes().get(1476); internal_static_google_cloud_compute_v1_StoragePoolListDisks_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StoragePoolListDisks_descriptor, @@ -48418,7 +48450,7 @@ private static void _clinit_autosplit_dinit_3() { "Etag", "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Unreachables", "Warning", }); internal_static_google_cloud_compute_v1_StoragePoolResourceStatus_descriptor = - getDescriptor().getMessageTypes().get(1476); + getDescriptor().getMessageTypes().get(1477); internal_static_google_cloud_compute_v1_StoragePoolResourceStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StoragePoolResourceStatus_descriptor, @@ -48435,7 +48467,7 @@ private static void _clinit_autosplit_dinit_3() { "TotalProvisionedDiskThroughput", }); internal_static_google_cloud_compute_v1_StoragePoolType_descriptor = - getDescriptor().getMessageTypes().get(1477); + getDescriptor().getMessageTypes().get(1478); internal_static_google_cloud_compute_v1_StoragePoolType_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StoragePoolType_descriptor, @@ -48459,7 +48491,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_StoragePoolTypeAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1478); + getDescriptor().getMessageTypes().get(1479); internal_static_google_cloud_compute_v1_StoragePoolTypeAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StoragePoolTypeAggregatedList_descriptor, @@ -48477,7 +48509,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_StoragePoolTypeList_descriptor = - getDescriptor().getMessageTypes().get(1479); + getDescriptor().getMessageTypes().get(1480); internal_static_google_cloud_compute_v1_StoragePoolTypeList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StoragePoolTypeList_descriptor, @@ -48485,7 +48517,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_StoragePoolTypesScopedList_descriptor = - getDescriptor().getMessageTypes().get(1480); + getDescriptor().getMessageTypes().get(1481); internal_static_google_cloud_compute_v1_StoragePoolTypesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StoragePoolTypesScopedList_descriptor, @@ -48493,7 +48525,7 @@ private static void _clinit_autosplit_dinit_3() { "StoragePoolTypes", "Warning", }); internal_static_google_cloud_compute_v1_StoragePoolsScopedList_descriptor = - getDescriptor().getMessageTypes().get(1481); + getDescriptor().getMessageTypes().get(1482); internal_static_google_cloud_compute_v1_StoragePoolsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StoragePoolsScopedList_descriptor, @@ -48501,7 +48533,7 @@ private static void _clinit_autosplit_dinit_3() { "StoragePools", "Warning", }); internal_static_google_cloud_compute_v1_Subnetwork_descriptor = - getDescriptor().getMessageTypes().get(1482); + getDescriptor().getMessageTypes().get(1483); internal_static_google_cloud_compute_v1_Subnetwork_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Subnetwork_descriptor, @@ -48538,7 +48570,7 @@ private static void _clinit_autosplit_dinit_3() { "SystemReservedInternalIpv6Ranges", }); internal_static_google_cloud_compute_v1_SubnetworkAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1483); + getDescriptor().getMessageTypes().get(1484); internal_static_google_cloud_compute_v1_SubnetworkAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SubnetworkAggregatedList_descriptor, @@ -48556,7 +48588,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_SubnetworkList_descriptor = - getDescriptor().getMessageTypes().get(1484); + getDescriptor().getMessageTypes().get(1485); internal_static_google_cloud_compute_v1_SubnetworkList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SubnetworkList_descriptor, @@ -48564,7 +48596,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_SubnetworkLogConfig_descriptor = - getDescriptor().getMessageTypes().get(1485); + getDescriptor().getMessageTypes().get(1486); internal_static_google_cloud_compute_v1_SubnetworkLogConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SubnetworkLogConfig_descriptor, @@ -48577,7 +48609,7 @@ private static void _clinit_autosplit_dinit_3() { "MetadataFields", }); internal_static_google_cloud_compute_v1_SubnetworkParams_descriptor = - getDescriptor().getMessageTypes().get(1486); + getDescriptor().getMessageTypes().get(1487); internal_static_google_cloud_compute_v1_SubnetworkParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SubnetworkParams_descriptor, @@ -48593,7 +48625,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_SubnetworkSecondaryRange_descriptor = - getDescriptor().getMessageTypes().get(1487); + getDescriptor().getMessageTypes().get(1488); internal_static_google_cloud_compute_v1_SubnetworkSecondaryRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SubnetworkSecondaryRange_descriptor, @@ -48601,7 +48633,7 @@ private static void _clinit_autosplit_dinit_3() { "IpCidrRange", "RangeName", "ReservedInternalRange", }); internal_static_google_cloud_compute_v1_SubnetworksExpandIpCidrRangeRequest_descriptor = - getDescriptor().getMessageTypes().get(1488); + getDescriptor().getMessageTypes().get(1489); internal_static_google_cloud_compute_v1_SubnetworksExpandIpCidrRangeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SubnetworksExpandIpCidrRangeRequest_descriptor, @@ -48609,7 +48641,7 @@ private static void _clinit_autosplit_dinit_3() { "IpCidrRange", }); internal_static_google_cloud_compute_v1_SubnetworksScopedList_descriptor = - getDescriptor().getMessageTypes().get(1489); + getDescriptor().getMessageTypes().get(1490); internal_static_google_cloud_compute_v1_SubnetworksScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SubnetworksScopedList_descriptor, @@ -48617,7 +48649,7 @@ private static void _clinit_autosplit_dinit_3() { "Subnetworks", "Warning", }); internal_static_google_cloud_compute_v1_SubnetworksScopedWarning_descriptor = - getDescriptor().getMessageTypes().get(1490); + getDescriptor().getMessageTypes().get(1491); internal_static_google_cloud_compute_v1_SubnetworksScopedWarning_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SubnetworksScopedWarning_descriptor, @@ -48625,7 +48657,7 @@ private static void _clinit_autosplit_dinit_3() { "ScopeName", "Warning", }); internal_static_google_cloud_compute_v1_SubnetworksSetPrivateIpGoogleAccessRequest_descriptor = - getDescriptor().getMessageTypes().get(1491); + getDescriptor().getMessageTypes().get(1492); internal_static_google_cloud_compute_v1_SubnetworksSetPrivateIpGoogleAccessRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SubnetworksSetPrivateIpGoogleAccessRequest_descriptor, @@ -48633,7 +48665,7 @@ private static void _clinit_autosplit_dinit_3() { "PrivateIpGoogleAccess", }); internal_static_google_cloud_compute_v1_Subsetting_descriptor = - getDescriptor().getMessageTypes().get(1492); + getDescriptor().getMessageTypes().get(1493); internal_static_google_cloud_compute_v1_Subsetting_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Subsetting_descriptor, @@ -48641,7 +48673,7 @@ private static void _clinit_autosplit_dinit_3() { "Policy", }); internal_static_google_cloud_compute_v1_SuspendInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1493); + getDescriptor().getMessageTypes().get(1494); internal_static_google_cloud_compute_v1_SuspendInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SuspendInstanceRequest_descriptor, @@ -48649,7 +48681,7 @@ private static void _clinit_autosplit_dinit_3() { "DiscardLocalSsd", "Instance", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_SuspendInstancesInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1494); + getDescriptor().getMessageTypes().get(1495); internal_static_google_cloud_compute_v1_SuspendInstancesInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SuspendInstancesInstanceGroupManagerRequest_descriptor, @@ -48661,7 +48693,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_SuspendInstancesRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1495); + getDescriptor().getMessageTypes().get(1496); internal_static_google_cloud_compute_v1_SuspendInstancesRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SuspendInstancesRegionInstanceGroupManagerRequest_descriptor, @@ -48673,7 +48705,7 @@ private static void _clinit_autosplit_dinit_3() { "RequestId", }); internal_static_google_cloud_compute_v1_SwitchToCustomModeNetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(1496); + getDescriptor().getMessageTypes().get(1497); internal_static_google_cloud_compute_v1_SwitchToCustomModeNetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SwitchToCustomModeNetworkRequest_descriptor, @@ -48681,7 +48713,7 @@ private static void _clinit_autosplit_dinit_3() { "Network", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_TCPHealthCheck_descriptor = - getDescriptor().getMessageTypes().get(1497); + getDescriptor().getMessageTypes().get(1498); internal_static_google_cloud_compute_v1_TCPHealthCheck_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TCPHealthCheck_descriptor, @@ -48689,7 +48721,7 @@ private static void _clinit_autosplit_dinit_3() { "Port", "PortName", "PortSpecification", "ProxyHeader", "Request", "Response", }); internal_static_google_cloud_compute_v1_Tags_descriptor = - getDescriptor().getMessageTypes().get(1498); + getDescriptor().getMessageTypes().get(1499); internal_static_google_cloud_compute_v1_Tags_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Tags_descriptor, @@ -48697,7 +48729,7 @@ private static void _clinit_autosplit_dinit_3() { "Fingerprint", "Items", }); internal_static_google_cloud_compute_v1_TargetGrpcProxy_descriptor = - getDescriptor().getMessageTypes().get(1499); + getDescriptor().getMessageTypes().get(1500); internal_static_google_cloud_compute_v1_TargetGrpcProxy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetGrpcProxy_descriptor, @@ -48714,7 +48746,7 @@ private static void _clinit_autosplit_dinit_3() { "ValidateForProxyless", }); internal_static_google_cloud_compute_v1_TargetGrpcProxyList_descriptor = - getDescriptor().getMessageTypes().get(1500); + getDescriptor().getMessageTypes().get(1501); internal_static_google_cloud_compute_v1_TargetGrpcProxyList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetGrpcProxyList_descriptor, @@ -48722,7 +48754,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_TargetHttpProxiesScopedList_descriptor = - getDescriptor().getMessageTypes().get(1501); + getDescriptor().getMessageTypes().get(1502); internal_static_google_cloud_compute_v1_TargetHttpProxiesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetHttpProxiesScopedList_descriptor, @@ -48730,7 +48762,7 @@ private static void _clinit_autosplit_dinit_3() { "TargetHttpProxies", "Warning", }); internal_static_google_cloud_compute_v1_TargetHttpProxy_descriptor = - getDescriptor().getMessageTypes().get(1502); + getDescriptor().getMessageTypes().get(1503); internal_static_google_cloud_compute_v1_TargetHttpProxy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetHttpProxy_descriptor, @@ -48748,7 +48780,7 @@ private static void _clinit_autosplit_dinit_3() { "UrlMap", }); internal_static_google_cloud_compute_v1_TargetHttpProxyAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1503); + getDescriptor().getMessageTypes().get(1504); internal_static_google_cloud_compute_v1_TargetHttpProxyAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetHttpProxyAggregatedList_descriptor, @@ -48766,7 +48798,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_TargetHttpProxyList_descriptor = - getDescriptor().getMessageTypes().get(1504); + getDescriptor().getMessageTypes().get(1505); internal_static_google_cloud_compute_v1_TargetHttpProxyList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetHttpProxyList_descriptor, @@ -48774,7 +48806,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_TargetHttpsProxiesScopedList_descriptor = - getDescriptor().getMessageTypes().get(1505); + getDescriptor().getMessageTypes().get(1506); internal_static_google_cloud_compute_v1_TargetHttpsProxiesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetHttpsProxiesScopedList_descriptor, @@ -48782,7 +48814,7 @@ private static void _clinit_autosplit_dinit_3() { "TargetHttpsProxies", "Warning", }); internal_static_google_cloud_compute_v1_TargetHttpsProxiesSetCertificateMapRequest_descriptor = - getDescriptor().getMessageTypes().get(1506); + getDescriptor().getMessageTypes().get(1507); internal_static_google_cloud_compute_v1_TargetHttpsProxiesSetCertificateMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetHttpsProxiesSetCertificateMapRequest_descriptor, @@ -48790,7 +48822,7 @@ private static void _clinit_autosplit_dinit_3() { "CertificateMap", }); internal_static_google_cloud_compute_v1_TargetHttpsProxiesSetQuicOverrideRequest_descriptor = - getDescriptor().getMessageTypes().get(1507); + getDescriptor().getMessageTypes().get(1508); internal_static_google_cloud_compute_v1_TargetHttpsProxiesSetQuicOverrideRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetHttpsProxiesSetQuicOverrideRequest_descriptor, @@ -48798,7 +48830,7 @@ private static void _clinit_autosplit_dinit_3() { "QuicOverride", }); internal_static_google_cloud_compute_v1_TargetHttpsProxiesSetSslCertificatesRequest_descriptor = - getDescriptor().getMessageTypes().get(1508); + getDescriptor().getMessageTypes().get(1509); internal_static_google_cloud_compute_v1_TargetHttpsProxiesSetSslCertificatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetHttpsProxiesSetSslCertificatesRequest_descriptor, @@ -48806,7 +48838,7 @@ private static void _clinit_autosplit_dinit_3() { "SslCertificates", }); internal_static_google_cloud_compute_v1_TargetHttpsProxy_descriptor = - getDescriptor().getMessageTypes().get(1509); + getDescriptor().getMessageTypes().get(1510); internal_static_google_cloud_compute_v1_TargetHttpsProxy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetHttpsProxy_descriptor, @@ -48831,7 +48863,7 @@ private static void _clinit_autosplit_dinit_3() { "UrlMap", }); internal_static_google_cloud_compute_v1_TargetHttpsProxyAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1510); + getDescriptor().getMessageTypes().get(1511); internal_static_google_cloud_compute_v1_TargetHttpsProxyAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetHttpsProxyAggregatedList_descriptor, @@ -48849,7 +48881,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_TargetHttpsProxyList_descriptor = - getDescriptor().getMessageTypes().get(1511); + getDescriptor().getMessageTypes().get(1512); internal_static_google_cloud_compute_v1_TargetHttpsProxyList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetHttpsProxyList_descriptor, @@ -48857,7 +48889,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_TargetInstance_descriptor = - getDescriptor().getMessageTypes().get(1512); + getDescriptor().getMessageTypes().get(1513); internal_static_google_cloud_compute_v1_TargetInstance_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetInstance_descriptor, @@ -48875,7 +48907,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_TargetInstanceAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1513); + getDescriptor().getMessageTypes().get(1514); internal_static_google_cloud_compute_v1_TargetInstanceAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetInstanceAggregatedList_descriptor, @@ -48893,7 +48925,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_TargetInstanceList_descriptor = - getDescriptor().getMessageTypes().get(1514); + getDescriptor().getMessageTypes().get(1515); internal_static_google_cloud_compute_v1_TargetInstanceList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetInstanceList_descriptor, @@ -48901,7 +48933,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_TargetInstancesScopedList_descriptor = - getDescriptor().getMessageTypes().get(1515); + getDescriptor().getMessageTypes().get(1516); internal_static_google_cloud_compute_v1_TargetInstancesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetInstancesScopedList_descriptor, @@ -48909,7 +48941,7 @@ private static void _clinit_autosplit_dinit_3() { "TargetInstances", "Warning", }); internal_static_google_cloud_compute_v1_TargetPool_descriptor = - getDescriptor().getMessageTypes().get(1516); + getDescriptor().getMessageTypes().get(1517); internal_static_google_cloud_compute_v1_TargetPool_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetPool_descriptor, @@ -48929,7 +48961,7 @@ private static void _clinit_autosplit_dinit_3() { "SessionAffinity", }); internal_static_google_cloud_compute_v1_TargetPoolAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1517); + getDescriptor().getMessageTypes().get(1518); internal_static_google_cloud_compute_v1_TargetPoolAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetPoolAggregatedList_descriptor, @@ -48947,7 +48979,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_TargetPoolInstanceHealth_descriptor = - getDescriptor().getMessageTypes().get(1518); + getDescriptor().getMessageTypes().get(1519); internal_static_google_cloud_compute_v1_TargetPoolInstanceHealth_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetPoolInstanceHealth_descriptor, @@ -48955,7 +48987,7 @@ private static void _clinit_autosplit_dinit_3() { "HealthStatus", "Kind", }); internal_static_google_cloud_compute_v1_TargetPoolList_descriptor = - getDescriptor().getMessageTypes().get(1519); + getDescriptor().getMessageTypes().get(1520); internal_static_google_cloud_compute_v1_TargetPoolList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetPoolList_descriptor, @@ -48963,7 +48995,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_TargetPoolsAddHealthCheckRequest_descriptor = - getDescriptor().getMessageTypes().get(1520); + getDescriptor().getMessageTypes().get(1521); internal_static_google_cloud_compute_v1_TargetPoolsAddHealthCheckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetPoolsAddHealthCheckRequest_descriptor, @@ -48971,7 +49003,7 @@ private static void _clinit_autosplit_dinit_3() { "HealthChecks", }); internal_static_google_cloud_compute_v1_TargetPoolsAddInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1521); + getDescriptor().getMessageTypes().get(1522); internal_static_google_cloud_compute_v1_TargetPoolsAddInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetPoolsAddInstanceRequest_descriptor, @@ -48979,7 +49011,7 @@ private static void _clinit_autosplit_dinit_3() { "Instances", }); internal_static_google_cloud_compute_v1_TargetPoolsRemoveHealthCheckRequest_descriptor = - getDescriptor().getMessageTypes().get(1522); + getDescriptor().getMessageTypes().get(1523); internal_static_google_cloud_compute_v1_TargetPoolsRemoveHealthCheckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetPoolsRemoveHealthCheckRequest_descriptor, @@ -48987,7 +49019,7 @@ private static void _clinit_autosplit_dinit_3() { "HealthChecks", }); internal_static_google_cloud_compute_v1_TargetPoolsRemoveInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1523); + getDescriptor().getMessageTypes().get(1524); internal_static_google_cloud_compute_v1_TargetPoolsRemoveInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetPoolsRemoveInstanceRequest_descriptor, @@ -48995,7 +49027,7 @@ private static void _clinit_autosplit_dinit_3() { "Instances", }); internal_static_google_cloud_compute_v1_TargetPoolsScopedList_descriptor = - getDescriptor().getMessageTypes().get(1524); + getDescriptor().getMessageTypes().get(1525); internal_static_google_cloud_compute_v1_TargetPoolsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetPoolsScopedList_descriptor, @@ -49003,7 +49035,7 @@ private static void _clinit_autosplit_dinit_3() { "TargetPools", "Warning", }); internal_static_google_cloud_compute_v1_TargetReference_descriptor = - getDescriptor().getMessageTypes().get(1525); + getDescriptor().getMessageTypes().get(1526); internal_static_google_cloud_compute_v1_TargetReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetReference_descriptor, @@ -49011,7 +49043,7 @@ private static void _clinit_autosplit_dinit_3() { "Target", }); internal_static_google_cloud_compute_v1_TargetSslProxiesSetBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(1526); + getDescriptor().getMessageTypes().get(1527); internal_static_google_cloud_compute_v1_TargetSslProxiesSetBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetSslProxiesSetBackendServiceRequest_descriptor, @@ -49019,7 +49051,7 @@ private static void _clinit_autosplit_dinit_3() { "Service", }); internal_static_google_cloud_compute_v1_TargetSslProxiesSetCertificateMapRequest_descriptor = - getDescriptor().getMessageTypes().get(1527); + getDescriptor().getMessageTypes().get(1528); internal_static_google_cloud_compute_v1_TargetSslProxiesSetCertificateMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetSslProxiesSetCertificateMapRequest_descriptor, @@ -49027,7 +49059,7 @@ private static void _clinit_autosplit_dinit_3() { "CertificateMap", }); internal_static_google_cloud_compute_v1_TargetSslProxiesSetProxyHeaderRequest_descriptor = - getDescriptor().getMessageTypes().get(1528); + getDescriptor().getMessageTypes().get(1529); internal_static_google_cloud_compute_v1_TargetSslProxiesSetProxyHeaderRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetSslProxiesSetProxyHeaderRequest_descriptor, @@ -49035,7 +49067,7 @@ private static void _clinit_autosplit_dinit_3() { "ProxyHeader", }); internal_static_google_cloud_compute_v1_TargetSslProxiesSetSslCertificatesRequest_descriptor = - getDescriptor().getMessageTypes().get(1529); + getDescriptor().getMessageTypes().get(1530); internal_static_google_cloud_compute_v1_TargetSslProxiesSetSslCertificatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetSslProxiesSetSslCertificatesRequest_descriptor, @@ -49043,7 +49075,7 @@ private static void _clinit_autosplit_dinit_3() { "SslCertificates", }); internal_static_google_cloud_compute_v1_TargetSslProxy_descriptor = - getDescriptor().getMessageTypes().get(1530); + getDescriptor().getMessageTypes().get(1531); internal_static_google_cloud_compute_v1_TargetSslProxy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetSslProxy_descriptor, @@ -49061,7 +49093,7 @@ private static void _clinit_autosplit_dinit_3() { "SslPolicy", }); internal_static_google_cloud_compute_v1_TargetSslProxyList_descriptor = - getDescriptor().getMessageTypes().get(1531); + getDescriptor().getMessageTypes().get(1532); internal_static_google_cloud_compute_v1_TargetSslProxyList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetSslProxyList_descriptor, @@ -49069,7 +49101,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_TargetTcpProxiesScopedList_descriptor = - getDescriptor().getMessageTypes().get(1532); + getDescriptor().getMessageTypes().get(1533); internal_static_google_cloud_compute_v1_TargetTcpProxiesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetTcpProxiesScopedList_descriptor, @@ -49077,7 +49109,7 @@ private static void _clinit_autosplit_dinit_3() { "TargetTcpProxies", "Warning", }); internal_static_google_cloud_compute_v1_TargetTcpProxiesSetBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(1533); + getDescriptor().getMessageTypes().get(1534); internal_static_google_cloud_compute_v1_TargetTcpProxiesSetBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetTcpProxiesSetBackendServiceRequest_descriptor, @@ -49085,7 +49117,7 @@ private static void _clinit_autosplit_dinit_3() { "Service", }); internal_static_google_cloud_compute_v1_TargetTcpProxiesSetProxyHeaderRequest_descriptor = - getDescriptor().getMessageTypes().get(1534); + getDescriptor().getMessageTypes().get(1535); internal_static_google_cloud_compute_v1_TargetTcpProxiesSetProxyHeaderRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetTcpProxiesSetProxyHeaderRequest_descriptor, @@ -49093,7 +49125,7 @@ private static void _clinit_autosplit_dinit_3() { "ProxyHeader", }); internal_static_google_cloud_compute_v1_TargetTcpProxy_descriptor = - getDescriptor().getMessageTypes().get(1535); + getDescriptor().getMessageTypes().get(1536); internal_static_google_cloud_compute_v1_TargetTcpProxy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetTcpProxy_descriptor, @@ -49110,7 +49142,7 @@ private static void _clinit_autosplit_dinit_3() { "Service", }); internal_static_google_cloud_compute_v1_TargetTcpProxyAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1536); + getDescriptor().getMessageTypes().get(1537); internal_static_google_cloud_compute_v1_TargetTcpProxyAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetTcpProxyAggregatedList_descriptor, @@ -49128,7 +49160,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_TargetTcpProxyList_descriptor = - getDescriptor().getMessageTypes().get(1537); + getDescriptor().getMessageTypes().get(1538); internal_static_google_cloud_compute_v1_TargetTcpProxyList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetTcpProxyList_descriptor, @@ -49136,7 +49168,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_TargetVpnGateway_descriptor = - getDescriptor().getMessageTypes().get(1538); + getDescriptor().getMessageTypes().get(1539); internal_static_google_cloud_compute_v1_TargetVpnGateway_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetVpnGateway_descriptor, @@ -49164,7 +49196,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_TargetVpnGatewayAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1539); + getDescriptor().getMessageTypes().get(1540); internal_static_google_cloud_compute_v1_TargetVpnGatewayAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetVpnGatewayAggregatedList_descriptor, @@ -49182,7 +49214,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_TargetVpnGatewayList_descriptor = - getDescriptor().getMessageTypes().get(1540); + getDescriptor().getMessageTypes().get(1541); internal_static_google_cloud_compute_v1_TargetVpnGatewayList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetVpnGatewayList_descriptor, @@ -49190,7 +49222,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_TargetVpnGatewaysScopedList_descriptor = - getDescriptor().getMessageTypes().get(1541); + getDescriptor().getMessageTypes().get(1542); internal_static_google_cloud_compute_v1_TargetVpnGatewaysScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetVpnGatewaysScopedList_descriptor, @@ -49198,7 +49230,7 @@ private static void _clinit_autosplit_dinit_3() { "TargetVpnGateways", "Warning", }); internal_static_google_cloud_compute_v1_TestFailure_descriptor = - getDescriptor().getMessageTypes().get(1542); + getDescriptor().getMessageTypes().get(1543); internal_static_google_cloud_compute_v1_TestFailure_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestFailure_descriptor, @@ -49214,7 +49246,7 @@ private static void _clinit_autosplit_dinit_3() { "Path", }); internal_static_google_cloud_compute_v1_TestIamPermissionsBackendBucketRequest_descriptor = - getDescriptor().getMessageTypes().get(1543); + getDescriptor().getMessageTypes().get(1544); internal_static_google_cloud_compute_v1_TestIamPermissionsBackendBucketRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsBackendBucketRequest_descriptor, @@ -49222,7 +49254,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(1544); + getDescriptor().getMessageTypes().get(1545); internal_static_google_cloud_compute_v1_TestIamPermissionsBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsBackendServiceRequest_descriptor, @@ -49230,7 +49262,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1545); + getDescriptor().getMessageTypes().get(1546); internal_static_google_cloud_compute_v1_TestIamPermissionsDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsDiskRequest_descriptor, @@ -49238,7 +49270,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", "Zone", }); internal_static_google_cloud_compute_v1_TestIamPermissionsExternalVpnGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(1546); + getDescriptor().getMessageTypes().get(1547); internal_static_google_cloud_compute_v1_TestIamPermissionsExternalVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsExternalVpnGatewayRequest_descriptor, @@ -49246,7 +49278,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1547); + getDescriptor().getMessageTypes().get(1548); internal_static_google_cloud_compute_v1_TestIamPermissionsFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsFirewallPolicyRequest_descriptor, @@ -49254,7 +49286,7 @@ private static void _clinit_autosplit_dinit_3() { "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsImageRequest_descriptor = - getDescriptor().getMessageTypes().get(1548); + getDescriptor().getMessageTypes().get(1549); internal_static_google_cloud_compute_v1_TestIamPermissionsImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsImageRequest_descriptor, @@ -49262,7 +49294,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1549); + getDescriptor().getMessageTypes().get(1550); internal_static_google_cloud_compute_v1_TestIamPermissionsInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsInstanceRequest_descriptor, @@ -49270,7 +49302,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", "Zone", }); internal_static_google_cloud_compute_v1_TestIamPermissionsInstanceTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(1550); + getDescriptor().getMessageTypes().get(1551); internal_static_google_cloud_compute_v1_TestIamPermissionsInstanceTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsInstanceTemplateRequest_descriptor, @@ -49278,7 +49310,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsInstantSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(1551); + getDescriptor().getMessageTypes().get(1552); internal_static_google_cloud_compute_v1_TestIamPermissionsInstantSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsInstantSnapshotRequest_descriptor, @@ -49286,7 +49318,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", "Zone", }); internal_static_google_cloud_compute_v1_TestIamPermissionsInterconnectAttachmentGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(1552); + getDescriptor().getMessageTypes().get(1553); internal_static_google_cloud_compute_v1_TestIamPermissionsInterconnectAttachmentGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsInterconnectAttachmentGroupRequest_descriptor, @@ -49294,7 +49326,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsInterconnectGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(1553); + getDescriptor().getMessageTypes().get(1554); internal_static_google_cloud_compute_v1_TestIamPermissionsInterconnectGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsInterconnectGroupRequest_descriptor, @@ -49302,7 +49334,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsLicenseCodeRequest_descriptor = - getDescriptor().getMessageTypes().get(1554); + getDescriptor().getMessageTypes().get(1555); internal_static_google_cloud_compute_v1_TestIamPermissionsLicenseCodeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsLicenseCodeRequest_descriptor, @@ -49310,7 +49342,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsLicenseRequest_descriptor = - getDescriptor().getMessageTypes().get(1555); + getDescriptor().getMessageTypes().get(1556); internal_static_google_cloud_compute_v1_TestIamPermissionsLicenseRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsLicenseRequest_descriptor, @@ -49318,7 +49350,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsMachineImageRequest_descriptor = - getDescriptor().getMessageTypes().get(1556); + getDescriptor().getMessageTypes().get(1557); internal_static_google_cloud_compute_v1_TestIamPermissionsMachineImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsMachineImageRequest_descriptor, @@ -49326,7 +49358,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsNetworkAttachmentRequest_descriptor = - getDescriptor().getMessageTypes().get(1557); + getDescriptor().getMessageTypes().get(1558); internal_static_google_cloud_compute_v1_TestIamPermissionsNetworkAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsNetworkAttachmentRequest_descriptor, @@ -49334,7 +49366,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsNetworkEndpointGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(1558); + getDescriptor().getMessageTypes().get(1559); internal_static_google_cloud_compute_v1_TestIamPermissionsNetworkEndpointGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsNetworkEndpointGroupRequest_descriptor, @@ -49342,7 +49374,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", "Zone", }); internal_static_google_cloud_compute_v1_TestIamPermissionsNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1559); + getDescriptor().getMessageTypes().get(1560); internal_static_google_cloud_compute_v1_TestIamPermissionsNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsNetworkFirewallPolicyRequest_descriptor, @@ -49350,7 +49382,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsNodeGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(1560); + getDescriptor().getMessageTypes().get(1561); internal_static_google_cloud_compute_v1_TestIamPermissionsNodeGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsNodeGroupRequest_descriptor, @@ -49358,7 +49390,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", "Zone", }); internal_static_google_cloud_compute_v1_TestIamPermissionsNodeTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(1561); + getDescriptor().getMessageTypes().get(1562); internal_static_google_cloud_compute_v1_TestIamPermissionsNodeTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsNodeTemplateRequest_descriptor, @@ -49366,7 +49398,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsPacketMirroringRequest_descriptor = - getDescriptor().getMessageTypes().get(1562); + getDescriptor().getMessageTypes().get(1563); internal_static_google_cloud_compute_v1_TestIamPermissionsPacketMirroringRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsPacketMirroringRequest_descriptor, @@ -49374,7 +49406,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsRegionBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(1563); + getDescriptor().getMessageTypes().get(1564); internal_static_google_cloud_compute_v1_TestIamPermissionsRegionBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsRegionBackendServiceRequest_descriptor, @@ -49382,7 +49414,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsRegionDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1564); + getDescriptor().getMessageTypes().get(1565); internal_static_google_cloud_compute_v1_TestIamPermissionsRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsRegionDiskRequest_descriptor, @@ -49390,7 +49422,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsRegionInstantSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(1565); + getDescriptor().getMessageTypes().get(1566); internal_static_google_cloud_compute_v1_TestIamPermissionsRegionInstantSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsRegionInstantSnapshotRequest_descriptor, @@ -49398,7 +49430,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsRegionNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1566); + getDescriptor().getMessageTypes().get(1567); internal_static_google_cloud_compute_v1_TestIamPermissionsRegionNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsRegionNetworkFirewallPolicyRequest_descriptor, @@ -49406,7 +49438,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsReservationRequest_descriptor = - getDescriptor().getMessageTypes().get(1567); + getDescriptor().getMessageTypes().get(1568); internal_static_google_cloud_compute_v1_TestIamPermissionsReservationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsReservationRequest_descriptor, @@ -49414,7 +49446,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", "Zone", }); internal_static_google_cloud_compute_v1_TestIamPermissionsResourcePolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1568); + getDescriptor().getMessageTypes().get(1569); internal_static_google_cloud_compute_v1_TestIamPermissionsResourcePolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsResourcePolicyRequest_descriptor, @@ -49422,7 +49454,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsServiceAttachmentRequest_descriptor = - getDescriptor().getMessageTypes().get(1569); + getDescriptor().getMessageTypes().get(1570); internal_static_google_cloud_compute_v1_TestIamPermissionsServiceAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsServiceAttachmentRequest_descriptor, @@ -49430,7 +49462,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(1570); + getDescriptor().getMessageTypes().get(1571); internal_static_google_cloud_compute_v1_TestIamPermissionsSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsSnapshotRequest_descriptor, @@ -49438,7 +49470,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsStoragePoolRequest_descriptor = - getDescriptor().getMessageTypes().get(1571); + getDescriptor().getMessageTypes().get(1572); internal_static_google_cloud_compute_v1_TestIamPermissionsStoragePoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsStoragePoolRequest_descriptor, @@ -49446,7 +49478,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", "Zone", }); internal_static_google_cloud_compute_v1_TestIamPermissionsSubnetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(1572); + getDescriptor().getMessageTypes().get(1573); internal_static_google_cloud_compute_v1_TestIamPermissionsSubnetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsSubnetworkRequest_descriptor, @@ -49454,7 +49486,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsVpnGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(1573); + getDescriptor().getMessageTypes().get(1574); internal_static_google_cloud_compute_v1_TestIamPermissionsVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsVpnGatewayRequest_descriptor, @@ -49462,7 +49494,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestPermissionsRequest_descriptor = - getDescriptor().getMessageTypes().get(1574); + getDescriptor().getMessageTypes().get(1575); internal_static_google_cloud_compute_v1_TestPermissionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestPermissionsRequest_descriptor, @@ -49470,7 +49502,7 @@ private static void _clinit_autosplit_dinit_3() { "Permissions", }); internal_static_google_cloud_compute_v1_TestPermissionsResponse_descriptor = - getDescriptor().getMessageTypes().get(1575); + getDescriptor().getMessageTypes().get(1576); internal_static_google_cloud_compute_v1_TestPermissionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestPermissionsResponse_descriptor, @@ -49478,7 +49510,7 @@ private static void _clinit_autosplit_dinit_3() { "Permissions", }); internal_static_google_cloud_compute_v1_Uint128_descriptor = - getDescriptor().getMessageTypes().get(1576); + getDescriptor().getMessageTypes().get(1577); internal_static_google_cloud_compute_v1_Uint128_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Uint128_descriptor, @@ -49486,7 +49518,7 @@ private static void _clinit_autosplit_dinit_3() { "High", "Low", }); internal_static_google_cloud_compute_v1_UpcomingMaintenance_descriptor = - getDescriptor().getMessageTypes().get(1577); + getDescriptor().getMessageTypes().get(1578); internal_static_google_cloud_compute_v1_UpcomingMaintenance_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpcomingMaintenance_descriptor, @@ -49501,7 +49533,7 @@ private static void _clinit_autosplit_dinit_3() { "WindowStartTime", }); internal_static_google_cloud_compute_v1_UpdateAccessConfigInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1578); + getDescriptor().getMessageTypes().get(1579); internal_static_google_cloud_compute_v1_UpdateAccessConfigInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateAccessConfigInstanceRequest_descriptor, @@ -49514,7 +49546,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_UpdateAutoscalerRequest_descriptor = - getDescriptor().getMessageTypes().get(1579); + getDescriptor().getMessageTypes().get(1580); internal_static_google_cloud_compute_v1_UpdateAutoscalerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateAutoscalerRequest_descriptor, @@ -49522,7 +49554,7 @@ private static void _clinit_autosplit_dinit_3() { "Autoscaler", "AutoscalerResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_UpdateBackendBucketRequest_descriptor = - getDescriptor().getMessageTypes().get(1580); + getDescriptor().getMessageTypes().get(1581); internal_static_google_cloud_compute_v1_UpdateBackendBucketRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateBackendBucketRequest_descriptor, @@ -49530,7 +49562,7 @@ private static void _clinit_autosplit_dinit_3() { "BackendBucket", "BackendBucketResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_UpdateBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(1581); + getDescriptor().getMessageTypes().get(1582); internal_static_google_cloud_compute_v1_UpdateBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateBackendServiceRequest_descriptor, @@ -49538,7 +49570,7 @@ private static void _clinit_autosplit_dinit_3() { "BackendService", "BackendServiceResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_UpdateDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1582); + getDescriptor().getMessageTypes().get(1583); internal_static_google_cloud_compute_v1_UpdateDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateDiskRequest_descriptor, @@ -49546,7 +49578,7 @@ private static void _clinit_autosplit_dinit_3() { "Disk", "DiskResource", "Paths", "Project", "RequestId", "UpdateMask", "Zone", }); internal_static_google_cloud_compute_v1_UpdateDisplayDeviceInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1583); + getDescriptor().getMessageTypes().get(1584); internal_static_google_cloud_compute_v1_UpdateDisplayDeviceInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateDisplayDeviceInstanceRequest_descriptor, @@ -49554,7 +49586,7 @@ private static void _clinit_autosplit_dinit_3() { "DisplayDeviceResource", "Instance", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_UpdateFirewallRequest_descriptor = - getDescriptor().getMessageTypes().get(1584); + getDescriptor().getMessageTypes().get(1585); internal_static_google_cloud_compute_v1_UpdateFirewallRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateFirewallRequest_descriptor, @@ -49562,7 +49594,7 @@ private static void _clinit_autosplit_dinit_3() { "Firewall", "FirewallResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_UpdateHealthCheckRequest_descriptor = - getDescriptor().getMessageTypes().get(1585); + getDescriptor().getMessageTypes().get(1586); internal_static_google_cloud_compute_v1_UpdateHealthCheckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateHealthCheckRequest_descriptor, @@ -49570,7 +49602,7 @@ private static void _clinit_autosplit_dinit_3() { "HealthCheck", "HealthCheckResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_UpdateInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1586); + getDescriptor().getMessageTypes().get(1587); internal_static_google_cloud_compute_v1_UpdateInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateInstanceRequest_descriptor, @@ -49584,7 +49616,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_UpdateLicenseRequest_descriptor = - getDescriptor().getMessageTypes().get(1587); + getDescriptor().getMessageTypes().get(1588); internal_static_google_cloud_compute_v1_UpdateLicenseRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateLicenseRequest_descriptor, @@ -49592,7 +49624,7 @@ private static void _clinit_autosplit_dinit_3() { "License", "LicenseResource", "Project", "RequestId", "UpdateMask", }); internal_static_google_cloud_compute_v1_UpdateNetworkInterfaceInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1588); + getDescriptor().getMessageTypes().get(1589); internal_static_google_cloud_compute_v1_UpdateNetworkInterfaceInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateNetworkInterfaceInstanceRequest_descriptor, @@ -49605,7 +49637,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_UpdatePeeringNetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(1589); + getDescriptor().getMessageTypes().get(1590); internal_static_google_cloud_compute_v1_UpdatePeeringNetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdatePeeringNetworkRequest_descriptor, @@ -49613,7 +49645,7 @@ private static void _clinit_autosplit_dinit_3() { "Network", "NetworksUpdatePeeringRequestResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_UpdatePerInstanceConfigsInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1590); + getDescriptor().getMessageTypes().get(1591); internal_static_google_cloud_compute_v1_UpdatePerInstanceConfigsInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdatePerInstanceConfigsInstanceGroupManagerRequest_descriptor, @@ -49625,7 +49657,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_UpdatePerInstanceConfigsRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1591); + getDescriptor().getMessageTypes().get(1592); internal_static_google_cloud_compute_v1_UpdatePerInstanceConfigsRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdatePerInstanceConfigsRegionInstanceGroupManagerRequest_descriptor, @@ -49637,7 +49669,7 @@ private static void _clinit_autosplit_dinit_3() { "RequestId", }); internal_static_google_cloud_compute_v1_UpdateRegionAutoscalerRequest_descriptor = - getDescriptor().getMessageTypes().get(1592); + getDescriptor().getMessageTypes().get(1593); internal_static_google_cloud_compute_v1_UpdateRegionAutoscalerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateRegionAutoscalerRequest_descriptor, @@ -49645,7 +49677,7 @@ private static void _clinit_autosplit_dinit_3() { "Autoscaler", "AutoscalerResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_UpdateRegionBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(1593); + getDescriptor().getMessageTypes().get(1594); internal_static_google_cloud_compute_v1_UpdateRegionBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateRegionBackendServiceRequest_descriptor, @@ -49653,7 +49685,7 @@ private static void _clinit_autosplit_dinit_3() { "BackendService", "BackendServiceResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_UpdateRegionCommitmentRequest_descriptor = - getDescriptor().getMessageTypes().get(1594); + getDescriptor().getMessageTypes().get(1595); internal_static_google_cloud_compute_v1_UpdateRegionCommitmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateRegionCommitmentRequest_descriptor, @@ -49667,7 +49699,7 @@ private static void _clinit_autosplit_dinit_3() { "UpdateMask", }); internal_static_google_cloud_compute_v1_UpdateRegionDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1595); + getDescriptor().getMessageTypes().get(1596); internal_static_google_cloud_compute_v1_UpdateRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateRegionDiskRequest_descriptor, @@ -49675,7 +49707,7 @@ private static void _clinit_autosplit_dinit_3() { "Disk", "DiskResource", "Paths", "Project", "Region", "RequestId", "UpdateMask", }); internal_static_google_cloud_compute_v1_UpdateRegionHealthCheckRequest_descriptor = - getDescriptor().getMessageTypes().get(1596); + getDescriptor().getMessageTypes().get(1597); internal_static_google_cloud_compute_v1_UpdateRegionHealthCheckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateRegionHealthCheckRequest_descriptor, @@ -49683,7 +49715,7 @@ private static void _clinit_autosplit_dinit_3() { "HealthCheck", "HealthCheckResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_UpdateRegionUrlMapRequest_descriptor = - getDescriptor().getMessageTypes().get(1597); + getDescriptor().getMessageTypes().get(1598); internal_static_google_cloud_compute_v1_UpdateRegionUrlMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateRegionUrlMapRequest_descriptor, @@ -49691,7 +49723,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "RequestId", "UrlMap", "UrlMapResource", }); internal_static_google_cloud_compute_v1_UpdateReservationRequest_descriptor = - getDescriptor().getMessageTypes().get(1598); + getDescriptor().getMessageTypes().get(1599); internal_static_google_cloud_compute_v1_UpdateReservationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateReservationRequest_descriptor, @@ -49705,7 +49737,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_UpdateRoutePolicyRouterRequest_descriptor = - getDescriptor().getMessageTypes().get(1599); + getDescriptor().getMessageTypes().get(1600); internal_static_google_cloud_compute_v1_UpdateRoutePolicyRouterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateRoutePolicyRouterRequest_descriptor, @@ -49713,7 +49745,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "RequestId", "RoutePolicyResource", "Router", }); internal_static_google_cloud_compute_v1_UpdateRouterRequest_descriptor = - getDescriptor().getMessageTypes().get(1600); + getDescriptor().getMessageTypes().get(1601); internal_static_google_cloud_compute_v1_UpdateRouterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateRouterRequest_descriptor, @@ -49721,7 +49753,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "RequestId", "Router", "RouterResource", }); internal_static_google_cloud_compute_v1_UpdateShieldedInstanceConfigInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1601); + getDescriptor().getMessageTypes().get(1602); internal_static_google_cloud_compute_v1_UpdateShieldedInstanceConfigInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateShieldedInstanceConfigInstanceRequest_descriptor, @@ -49729,7 +49761,7 @@ private static void _clinit_autosplit_dinit_3() { "Instance", "Project", "RequestId", "ShieldedInstanceConfigResource", "Zone", }); internal_static_google_cloud_compute_v1_UpdateStoragePoolRequest_descriptor = - getDescriptor().getMessageTypes().get(1602); + getDescriptor().getMessageTypes().get(1603); internal_static_google_cloud_compute_v1_UpdateStoragePoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateStoragePoolRequest_descriptor, @@ -49737,7 +49769,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "RequestId", "StoragePool", "StoragePoolResource", "UpdateMask", "Zone", }); internal_static_google_cloud_compute_v1_UpdateUrlMapRequest_descriptor = - getDescriptor().getMessageTypes().get(1603); + getDescriptor().getMessageTypes().get(1604); internal_static_google_cloud_compute_v1_UpdateUrlMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateUrlMapRequest_descriptor, @@ -49745,7 +49777,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "RequestId", "UrlMap", "UrlMapResource", }); internal_static_google_cloud_compute_v1_UrlMap_descriptor = - getDescriptor().getMessageTypes().get(1604); + getDescriptor().getMessageTypes().get(1605); internal_static_google_cloud_compute_v1_UrlMap_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UrlMap_descriptor, @@ -49768,7 +49800,7 @@ private static void _clinit_autosplit_dinit_3() { "Tests", }); internal_static_google_cloud_compute_v1_UrlMapList_descriptor = - getDescriptor().getMessageTypes().get(1605); + getDescriptor().getMessageTypes().get(1606); internal_static_google_cloud_compute_v1_UrlMapList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UrlMapList_descriptor, @@ -49776,7 +49808,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_UrlMapReference_descriptor = - getDescriptor().getMessageTypes().get(1606); + getDescriptor().getMessageTypes().get(1607); internal_static_google_cloud_compute_v1_UrlMapReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UrlMapReference_descriptor, @@ -49784,7 +49816,7 @@ private static void _clinit_autosplit_dinit_3() { "UrlMap", }); internal_static_google_cloud_compute_v1_UrlMapTest_descriptor = - getDescriptor().getMessageTypes().get(1607); + getDescriptor().getMessageTypes().get(1608); internal_static_google_cloud_compute_v1_UrlMapTest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UrlMapTest_descriptor, @@ -49798,7 +49830,7 @@ private static void _clinit_autosplit_dinit_3() { "Service", }); internal_static_google_cloud_compute_v1_UrlMapTestHeader_descriptor = - getDescriptor().getMessageTypes().get(1608); + getDescriptor().getMessageTypes().get(1609); internal_static_google_cloud_compute_v1_UrlMapTestHeader_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UrlMapTestHeader_descriptor, @@ -49806,7 +49838,7 @@ private static void _clinit_autosplit_dinit_3() { "Name", "Value", }); internal_static_google_cloud_compute_v1_UrlMapValidationResult_descriptor = - getDescriptor().getMessageTypes().get(1609); + getDescriptor().getMessageTypes().get(1610); internal_static_google_cloud_compute_v1_UrlMapValidationResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UrlMapValidationResult_descriptor, @@ -49814,7 +49846,7 @@ private static void _clinit_autosplit_dinit_3() { "LoadErrors", "LoadSucceeded", "TestFailures", "TestPassed", }); internal_static_google_cloud_compute_v1_UrlMapsAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1610); + getDescriptor().getMessageTypes().get(1611); internal_static_google_cloud_compute_v1_UrlMapsAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UrlMapsAggregatedList_descriptor, @@ -49832,7 +49864,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_UrlMapsScopedList_descriptor = - getDescriptor().getMessageTypes().get(1611); + getDescriptor().getMessageTypes().get(1612); internal_static_google_cloud_compute_v1_UrlMapsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UrlMapsScopedList_descriptor, @@ -49840,7 +49872,7 @@ private static void _clinit_autosplit_dinit_3() { "UrlMaps", "Warning", }); internal_static_google_cloud_compute_v1_UrlMapsValidateRequest_descriptor = - getDescriptor().getMessageTypes().get(1612); + getDescriptor().getMessageTypes().get(1613); internal_static_google_cloud_compute_v1_UrlMapsValidateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UrlMapsValidateRequest_descriptor, @@ -49848,7 +49880,7 @@ private static void _clinit_autosplit_dinit_3() { "LoadBalancingSchemes", "Resource", }); internal_static_google_cloud_compute_v1_UrlMapsValidateResponse_descriptor = - getDescriptor().getMessageTypes().get(1613); + getDescriptor().getMessageTypes().get(1614); internal_static_google_cloud_compute_v1_UrlMapsValidateResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UrlMapsValidateResponse_descriptor, @@ -49856,7 +49888,7 @@ private static void _clinit_autosplit_dinit_3() { "Result", }); internal_static_google_cloud_compute_v1_UrlRewrite_descriptor = - getDescriptor().getMessageTypes().get(1614); + getDescriptor().getMessageTypes().get(1615); internal_static_google_cloud_compute_v1_UrlRewrite_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UrlRewrite_descriptor, @@ -49864,7 +49896,7 @@ private static void _clinit_autosplit_dinit_3() { "HostRewrite", "PathPrefixRewrite", "PathTemplateRewrite", }); internal_static_google_cloud_compute_v1_UsableSubnetwork_descriptor = - getDescriptor().getMessageTypes().get(1615); + getDescriptor().getMessageTypes().get(1616); internal_static_google_cloud_compute_v1_UsableSubnetwork_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UsableSubnetwork_descriptor, @@ -49881,7 +49913,7 @@ private static void _clinit_autosplit_dinit_3() { "Subnetwork", }); internal_static_google_cloud_compute_v1_UsableSubnetworkSecondaryRange_descriptor = - getDescriptor().getMessageTypes().get(1616); + getDescriptor().getMessageTypes().get(1617); internal_static_google_cloud_compute_v1_UsableSubnetworkSecondaryRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UsableSubnetworkSecondaryRange_descriptor, @@ -49889,7 +49921,7 @@ private static void _clinit_autosplit_dinit_3() { "IpCidrRange", "RangeName", }); internal_static_google_cloud_compute_v1_UsableSubnetworksAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1617); + getDescriptor().getMessageTypes().get(1618); internal_static_google_cloud_compute_v1_UsableSubnetworksAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UsableSubnetworksAggregatedList_descriptor, @@ -49904,7 +49936,7 @@ private static void _clinit_autosplit_dinit_3() { "Warning", }); internal_static_google_cloud_compute_v1_UsageExportLocation_descriptor = - getDescriptor().getMessageTypes().get(1618); + getDescriptor().getMessageTypes().get(1619); internal_static_google_cloud_compute_v1_UsageExportLocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UsageExportLocation_descriptor, @@ -49912,7 +49944,7 @@ private static void _clinit_autosplit_dinit_3() { "BucketName", "ReportNamePrefix", }); internal_static_google_cloud_compute_v1_ValidateRegionUrlMapRequest_descriptor = - getDescriptor().getMessageTypes().get(1619); + getDescriptor().getMessageTypes().get(1620); internal_static_google_cloud_compute_v1_ValidateRegionUrlMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ValidateRegionUrlMapRequest_descriptor, @@ -49920,7 +49952,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "RegionUrlMapsValidateRequestResource", "UrlMap", }); internal_static_google_cloud_compute_v1_ValidateUrlMapRequest_descriptor = - getDescriptor().getMessageTypes().get(1620); + getDescriptor().getMessageTypes().get(1621); internal_static_google_cloud_compute_v1_ValidateUrlMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ValidateUrlMapRequest_descriptor, @@ -49928,7 +49960,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "UrlMap", "UrlMapsValidateRequestResource", }); internal_static_google_cloud_compute_v1_VmEndpointNatMappings_descriptor = - getDescriptor().getMessageTypes().get(1621); + getDescriptor().getMessageTypes().get(1622); internal_static_google_cloud_compute_v1_VmEndpointNatMappings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VmEndpointNatMappings_descriptor, @@ -49936,7 +49968,7 @@ private static void _clinit_autosplit_dinit_3() { "InstanceName", "InterfaceNatMappings", }); internal_static_google_cloud_compute_v1_VmEndpointNatMappingsInterfaceNatMappings_descriptor = - getDescriptor().getMessageTypes().get(1622); + getDescriptor().getMessageTypes().get(1623); internal_static_google_cloud_compute_v1_VmEndpointNatMappingsInterfaceNatMappings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VmEndpointNatMappingsInterfaceNatMappings_descriptor, @@ -49950,7 +49982,7 @@ private static void _clinit_autosplit_dinit_3() { "SourceVirtualIp", }); internal_static_google_cloud_compute_v1_VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings_descriptor = - getDescriptor().getMessageTypes().get(1623); + getDescriptor().getMessageTypes().get(1624); internal_static_google_cloud_compute_v1_VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings_descriptor, @@ -49962,7 +49994,7 @@ private static void _clinit_autosplit_dinit_3() { "RuleNumber", }); internal_static_google_cloud_compute_v1_VmEndpointNatMappingsList_descriptor = - getDescriptor().getMessageTypes().get(1624); + getDescriptor().getMessageTypes().get(1625); internal_static_google_cloud_compute_v1_VmEndpointNatMappingsList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VmEndpointNatMappingsList_descriptor, @@ -49970,7 +50002,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Kind", "NextPageToken", "Result", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_VpnGateway_descriptor = - getDescriptor().getMessageTypes().get(1625); + getDescriptor().getMessageTypes().get(1626); internal_static_google_cloud_compute_v1_VpnGateway_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnGateway_descriptor, @@ -49998,7 +50030,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_VpnGatewayAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1626); + getDescriptor().getMessageTypes().get(1627); internal_static_google_cloud_compute_v1_VpnGatewayAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnGatewayAggregatedList_descriptor, @@ -50016,7 +50048,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_VpnGatewayList_descriptor = - getDescriptor().getMessageTypes().get(1627); + getDescriptor().getMessageTypes().get(1628); internal_static_google_cloud_compute_v1_VpnGatewayList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnGatewayList_descriptor, @@ -50024,7 +50056,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_VpnGatewayStatus_descriptor = - getDescriptor().getMessageTypes().get(1628); + getDescriptor().getMessageTypes().get(1629); internal_static_google_cloud_compute_v1_VpnGatewayStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnGatewayStatus_descriptor, @@ -50032,7 +50064,7 @@ private static void _clinit_autosplit_dinit_3() { "VpnConnections", }); internal_static_google_cloud_compute_v1_VpnGatewayStatusHighAvailabilityRequirementState_descriptor = - getDescriptor().getMessageTypes().get(1629); + getDescriptor().getMessageTypes().get(1630); internal_static_google_cloud_compute_v1_VpnGatewayStatusHighAvailabilityRequirementState_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnGatewayStatusHighAvailabilityRequirementState_descriptor, @@ -50040,7 +50072,7 @@ private static void _clinit_autosplit_dinit_3() { "State", "UnsatisfiedReason", }); internal_static_google_cloud_compute_v1_VpnGatewayStatusTunnel_descriptor = - getDescriptor().getMessageTypes().get(1630); + getDescriptor().getMessageTypes().get(1631); internal_static_google_cloud_compute_v1_VpnGatewayStatusTunnel_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnGatewayStatusTunnel_descriptor, @@ -50048,7 +50080,7 @@ private static void _clinit_autosplit_dinit_3() { "LocalGatewayInterface", "PeerGatewayInterface", "TunnelUrl", }); internal_static_google_cloud_compute_v1_VpnGatewayStatusVpnConnection_descriptor = - getDescriptor().getMessageTypes().get(1631); + getDescriptor().getMessageTypes().get(1632); internal_static_google_cloud_compute_v1_VpnGatewayStatusVpnConnection_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnGatewayStatusVpnConnection_descriptor, @@ -50056,7 +50088,7 @@ private static void _clinit_autosplit_dinit_3() { "PeerExternalGateway", "PeerGcpGateway", "State", "Tunnels", }); internal_static_google_cloud_compute_v1_VpnGatewayVpnGatewayInterface_descriptor = - getDescriptor().getMessageTypes().get(1632); + getDescriptor().getMessageTypes().get(1633); internal_static_google_cloud_compute_v1_VpnGatewayVpnGatewayInterface_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnGatewayVpnGatewayInterface_descriptor, @@ -50064,7 +50096,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "InterconnectAttachment", "IpAddress", "Ipv6Address", }); internal_static_google_cloud_compute_v1_VpnGatewaysGetStatusResponse_descriptor = - getDescriptor().getMessageTypes().get(1633); + getDescriptor().getMessageTypes().get(1634); internal_static_google_cloud_compute_v1_VpnGatewaysGetStatusResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnGatewaysGetStatusResponse_descriptor, @@ -50072,7 +50104,7 @@ private static void _clinit_autosplit_dinit_3() { "Result", }); internal_static_google_cloud_compute_v1_VpnGatewaysScopedList_descriptor = - getDescriptor().getMessageTypes().get(1634); + getDescriptor().getMessageTypes().get(1635); internal_static_google_cloud_compute_v1_VpnGatewaysScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnGatewaysScopedList_descriptor, @@ -50080,7 +50112,7 @@ private static void _clinit_autosplit_dinit_3() { "VpnGateways", "Warning", }); internal_static_google_cloud_compute_v1_VpnTunnel_descriptor = - getDescriptor().getMessageTypes().get(1635); + getDescriptor().getMessageTypes().get(1636); internal_static_google_cloud_compute_v1_VpnTunnel_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnTunnel_descriptor, @@ -50119,7 +50151,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_VpnTunnelAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1636); + getDescriptor().getMessageTypes().get(1637); internal_static_google_cloud_compute_v1_VpnTunnelAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnTunnelAggregatedList_descriptor, @@ -50137,7 +50169,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_VpnTunnelList_descriptor = - getDescriptor().getMessageTypes().get(1637); + getDescriptor().getMessageTypes().get(1638); internal_static_google_cloud_compute_v1_VpnTunnelList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnTunnelList_descriptor, @@ -50145,7 +50177,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_VpnTunnelsScopedList_descriptor = - getDescriptor().getMessageTypes().get(1638); + getDescriptor().getMessageTypes().get(1639); internal_static_google_cloud_compute_v1_VpnTunnelsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnTunnelsScopedList_descriptor, @@ -50153,7 +50185,7 @@ private static void _clinit_autosplit_dinit_3() { "VpnTunnels", "Warning", }); internal_static_google_cloud_compute_v1_WafExpressionSet_descriptor = - getDescriptor().getMessageTypes().get(1639); + getDescriptor().getMessageTypes().get(1640); internal_static_google_cloud_compute_v1_WafExpressionSet_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_WafExpressionSet_descriptor, @@ -50161,7 +50193,7 @@ private static void _clinit_autosplit_dinit_3() { "Aliases", "Expressions", "Id", }); internal_static_google_cloud_compute_v1_WafExpressionSetExpression_descriptor = - getDescriptor().getMessageTypes().get(1640); + getDescriptor().getMessageTypes().get(1641); internal_static_google_cloud_compute_v1_WafExpressionSetExpression_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_WafExpressionSetExpression_descriptor, @@ -50169,7 +50201,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Sensitivity", }); internal_static_google_cloud_compute_v1_WaitGlobalOperationRequest_descriptor = - getDescriptor().getMessageTypes().get(1641); + getDescriptor().getMessageTypes().get(1642); internal_static_google_cloud_compute_v1_WaitGlobalOperationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_WaitGlobalOperationRequest_descriptor, @@ -50177,7 +50209,7 @@ private static void _clinit_autosplit_dinit_3() { "Operation", "Project", }); internal_static_google_cloud_compute_v1_WaitRegionOperationRequest_descriptor = - getDescriptor().getMessageTypes().get(1642); + getDescriptor().getMessageTypes().get(1643); internal_static_google_cloud_compute_v1_WaitRegionOperationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_WaitRegionOperationRequest_descriptor, @@ -50185,7 +50217,7 @@ private static void _clinit_autosplit_dinit_3() { "Operation", "Project", "Region", }); internal_static_google_cloud_compute_v1_WaitZoneOperationRequest_descriptor = - getDescriptor().getMessageTypes().get(1643); + getDescriptor().getMessageTypes().get(1644); internal_static_google_cloud_compute_v1_WaitZoneOperationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_WaitZoneOperationRequest_descriptor, @@ -50193,7 +50225,7 @@ private static void _clinit_autosplit_dinit_3() { "Operation", "Project", "Zone", }); internal_static_google_cloud_compute_v1_Warning_descriptor = - getDescriptor().getMessageTypes().get(1644); + getDescriptor().getMessageTypes().get(1645); internal_static_google_cloud_compute_v1_Warning_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Warning_descriptor, @@ -50201,7 +50233,7 @@ private static void _clinit_autosplit_dinit_3() { "Code", "Data", "Message", }); internal_static_google_cloud_compute_v1_Warnings_descriptor = - getDescriptor().getMessageTypes().get(1645); + getDescriptor().getMessageTypes().get(1646); internal_static_google_cloud_compute_v1_Warnings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Warnings_descriptor, @@ -50209,7 +50241,7 @@ private static void _clinit_autosplit_dinit_3() { "Code", "Data", "Message", }); internal_static_google_cloud_compute_v1_WeightedBackendService_descriptor = - getDescriptor().getMessageTypes().get(1646); + getDescriptor().getMessageTypes().get(1647); internal_static_google_cloud_compute_v1_WeightedBackendService_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_WeightedBackendService_descriptor, @@ -50217,7 +50249,7 @@ private static void _clinit_autosplit_dinit_3() { "BackendService", "HeaderAction", "Weight", }); internal_static_google_cloud_compute_v1_WithdrawPublicAdvertisedPrefixeRequest_descriptor = - getDescriptor().getMessageTypes().get(1647); + getDescriptor().getMessageTypes().get(1648); internal_static_google_cloud_compute_v1_WithdrawPublicAdvertisedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_WithdrawPublicAdvertisedPrefixeRequest_descriptor, @@ -50225,7 +50257,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "PublicAdvertisedPrefix", "RequestId", }); internal_static_google_cloud_compute_v1_WithdrawPublicDelegatedPrefixeRequest_descriptor = - getDescriptor().getMessageTypes().get(1648); + getDescriptor().getMessageTypes().get(1649); internal_static_google_cloud_compute_v1_WithdrawPublicDelegatedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_WithdrawPublicDelegatedPrefixeRequest_descriptor, @@ -50233,7 +50265,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "PublicDelegatedPrefix", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_XpnHostList_descriptor = - getDescriptor().getMessageTypes().get(1649); + getDescriptor().getMessageTypes().get(1650); internal_static_google_cloud_compute_v1_XpnHostList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_XpnHostList_descriptor, @@ -50241,7 +50273,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_XpnResourceId_descriptor = - getDescriptor().getMessageTypes().get(1650); + getDescriptor().getMessageTypes().get(1651); internal_static_google_cloud_compute_v1_XpnResourceId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_XpnResourceId_descriptor, @@ -50249,7 +50281,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Type", }); internal_static_google_cloud_compute_v1_Zone_descriptor = - getDescriptor().getMessageTypes().get(1651); + getDescriptor().getMessageTypes().get(1652); internal_static_google_cloud_compute_v1_Zone_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Zone_descriptor, @@ -50267,7 +50299,7 @@ private static void _clinit_autosplit_dinit_3() { "SupportsPzs", }); internal_static_google_cloud_compute_v1_ZoneList_descriptor = - getDescriptor().getMessageTypes().get(1652); + getDescriptor().getMessageTypes().get(1653); internal_static_google_cloud_compute_v1_ZoneList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ZoneList_descriptor, @@ -50275,7 +50307,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_ZoneSetLabelsRequest_descriptor = - getDescriptor().getMessageTypes().get(1653); + getDescriptor().getMessageTypes().get(1654); internal_static_google_cloud_compute_v1_ZoneSetLabelsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ZoneSetLabelsRequest_descriptor, @@ -50293,7 +50325,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_ZoneSetPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1654); + getDescriptor().getMessageTypes().get(1655); internal_static_google_cloud_compute_v1_ZoneSetPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ZoneSetPolicyRequest_descriptor, diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ResourceStatus.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ResourceStatus.java index ae828e2debc3..eb0fbc1deec4 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ResourceStatus.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ResourceStatus.java @@ -65,6 +65,68 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } private int bitField0_; + public static final int EFFECTIVE_INSTANCE_METADATA_FIELD_NUMBER = 55052033; + private com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata + effectiveInstanceMetadata_; + + /** + * + * + *
+   * [Output Only] Effective metadata is a field that consolidates project, zonal instance settings, and instance-level predefined metadata keys to provide the overridden value for those metadata keys at the instance level.
+   * 
+ * + * + * optional .google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata effective_instance_metadata = 55052033; + * + * + * @return Whether the effectiveInstanceMetadata field is set. + */ + @java.lang.Override + public boolean hasEffectiveInstanceMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * [Output Only] Effective metadata is a field that consolidates project, zonal instance settings, and instance-level predefined metadata keys to provide the overridden value for those metadata keys at the instance level.
+   * 
+ * + * + * optional .google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata effective_instance_metadata = 55052033; + * + * + * @return The effectiveInstanceMetadata. + */ + @java.lang.Override + public com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata + getEffectiveInstanceMetadata() { + return effectiveInstanceMetadata_ == null + ? com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata.getDefaultInstance() + : effectiveInstanceMetadata_; + } + + /** + * + * + *
+   * [Output Only] Effective metadata is a field that consolidates project, zonal instance settings, and instance-level predefined metadata keys to provide the overridden value for those metadata keys at the instance level.
+   * 
+ * + * + * optional .google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata effective_instance_metadata = 55052033; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadataOrBuilder + getEffectiveInstanceMetadataOrBuilder() { + return effectiveInstanceMetadata_ == null + ? com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata.getDefaultInstance() + : effectiveInstanceMetadata_; + } + public static final int PHYSICAL_HOST_FIELD_NUMBER = 464370704; @SuppressWarnings("serial") @@ -83,7 +145,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasPhysicalHost() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** @@ -152,7 +214,7 @@ public com.google.protobuf.ByteString getPhysicalHostBytes() { */ @java.lang.Override public boolean hasPhysicalHostTopology() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** @@ -204,7 +266,7 @@ public com.google.cloud.compute.v1.ResourceStatusPhysicalHostTopology getPhysica */ @java.lang.Override public boolean hasScheduling() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** @@ -240,7 +302,7 @@ public com.google.cloud.compute.v1.ResourceStatusSchedulingOrBuilder getScheduli */ @java.lang.Override public boolean hasUpcomingMaintenance() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** @@ -282,16 +344,19 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(55052033, getEffectiveInstanceMetadata()); + } + if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(227348592, getUpcomingMaintenance()); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(386688404, getScheduling()); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(390842814, getPhysicalHostTopology()); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 464370704, physicalHost_); } getUnknownFields().writeTo(output); @@ -303,20 +368,25 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 55052033, getEffectiveInstanceMetadata()); + } + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 227348592, getUpcomingMaintenance()); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(386688404, getScheduling()); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 390842814, getPhysicalHostTopology()); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(464370704, physicalHost_); } size += getUnknownFields().getSerializedSize(); @@ -335,6 +405,11 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.compute.v1.ResourceStatus other = (com.google.cloud.compute.v1.ResourceStatus) obj; + if (hasEffectiveInstanceMetadata() != other.hasEffectiveInstanceMetadata()) return false; + if (hasEffectiveInstanceMetadata()) { + if (!getEffectiveInstanceMetadata().equals(other.getEffectiveInstanceMetadata())) + return false; + } if (hasPhysicalHost() != other.hasPhysicalHost()) return false; if (hasPhysicalHost()) { if (!getPhysicalHost().equals(other.getPhysicalHost())) return false; @@ -362,6 +437,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasEffectiveInstanceMetadata()) { + hash = (37 * hash) + EFFECTIVE_INSTANCE_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getEffectiveInstanceMetadata().hashCode(); + } if (hasPhysicalHost()) { hash = (37 * hash) + PHYSICAL_HOST_FIELD_NUMBER; hash = (53 * hash) + getPhysicalHost().hashCode(); @@ -519,6 +598,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getEffectiveInstanceMetadataFieldBuilder(); getPhysicalHostTopologyFieldBuilder(); getSchedulingFieldBuilder(); getUpcomingMaintenanceFieldBuilder(); @@ -529,6 +609,11 @@ private void maybeForceBuilderInitialization() { public Builder clear() { super.clear(); bitField0_ = 0; + effectiveInstanceMetadata_ = null; + if (effectiveInstanceMetadataBuilder_ != null) { + effectiveInstanceMetadataBuilder_.dispose(); + effectiveInstanceMetadataBuilder_ = null; + } physicalHost_ = ""; physicalHostTopology_ = null; if (physicalHostTopologyBuilder_ != null) { @@ -583,26 +668,33 @@ private void buildPartial0(com.google.cloud.compute.v1.ResourceStatus result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.physicalHost_ = physicalHost_; + result.effectiveInstanceMetadata_ = + effectiveInstanceMetadataBuilder_ == null + ? effectiveInstanceMetadata_ + : effectiveInstanceMetadataBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { + result.physicalHost_ = physicalHost_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { result.physicalHostTopology_ = physicalHostTopologyBuilder_ == null ? physicalHostTopology_ : physicalHostTopologyBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.scheduling_ = schedulingBuilder_ == null ? scheduling_ : schedulingBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { + result.scheduling_ = schedulingBuilder_ == null ? scheduling_ : schedulingBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { result.upcomingMaintenance_ = upcomingMaintenanceBuilder_ == null ? upcomingMaintenance_ : upcomingMaintenanceBuilder_.build(); - to_bitField0_ |= 0x00000008; + to_bitField0_ |= 0x00000010; } result.bitField0_ |= to_bitField0_; } @@ -652,9 +744,12 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.compute.v1.ResourceStatus other) { if (other == com.google.cloud.compute.v1.ResourceStatus.getDefaultInstance()) return this; + if (other.hasEffectiveInstanceMetadata()) { + mergeEffectiveInstanceMetadata(other.getEffectiveInstanceMetadata()); + } if (other.hasPhysicalHost()) { physicalHost_ = other.physicalHost_; - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasPhysicalHostTopology()) { @@ -692,30 +787,37 @@ public Builder mergeFrom( case 0: done = true; break; + case 440416266: + { + input.readMessage( + getEffectiveInstanceMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 440416266 case 1818788738: { input.readMessage( getUpcomingMaintenanceFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 1818788738 case -1201460062: { input.readMessage(getSchedulingFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case -1201460062 case -1168224782: { input.readMessage( getPhysicalHostTopologyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; break; } // case -1168224782 case -580001662: { physicalHost_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; break; } // case -580001662 default: @@ -737,6 +839,230 @@ public Builder mergeFrom( private int bitField0_; + private com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata + effectiveInstanceMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata, + com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata.Builder, + com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadataOrBuilder> + effectiveInstanceMetadataBuilder_; + + /** + * + * + *
+     * [Output Only] Effective metadata is a field that consolidates project, zonal instance settings, and instance-level predefined metadata keys to provide the overridden value for those metadata keys at the instance level.
+     * 
+ * + * + * optional .google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata effective_instance_metadata = 55052033; + * + * + * @return Whether the effectiveInstanceMetadata field is set. + */ + public boolean hasEffectiveInstanceMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * [Output Only] Effective metadata is a field that consolidates project, zonal instance settings, and instance-level predefined metadata keys to provide the overridden value for those metadata keys at the instance level.
+     * 
+ * + * + * optional .google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata effective_instance_metadata = 55052033; + * + * + * @return The effectiveInstanceMetadata. + */ + public com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata + getEffectiveInstanceMetadata() { + if (effectiveInstanceMetadataBuilder_ == null) { + return effectiveInstanceMetadata_ == null + ? com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata + .getDefaultInstance() + : effectiveInstanceMetadata_; + } else { + return effectiveInstanceMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * [Output Only] Effective metadata is a field that consolidates project, zonal instance settings, and instance-level predefined metadata keys to provide the overridden value for those metadata keys at the instance level.
+     * 
+ * + * + * optional .google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata effective_instance_metadata = 55052033; + * + */ + public Builder setEffectiveInstanceMetadata( + com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata value) { + if (effectiveInstanceMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + effectiveInstanceMetadata_ = value; + } else { + effectiveInstanceMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * [Output Only] Effective metadata is a field that consolidates project, zonal instance settings, and instance-level predefined metadata keys to provide the overridden value for those metadata keys at the instance level.
+     * 
+ * + * + * optional .google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata effective_instance_metadata = 55052033; + * + */ + public Builder setEffectiveInstanceMetadata( + com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata.Builder + builderForValue) { + if (effectiveInstanceMetadataBuilder_ == null) { + effectiveInstanceMetadata_ = builderForValue.build(); + } else { + effectiveInstanceMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * [Output Only] Effective metadata is a field that consolidates project, zonal instance settings, and instance-level predefined metadata keys to provide the overridden value for those metadata keys at the instance level.
+     * 
+ * + * + * optional .google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata effective_instance_metadata = 55052033; + * + */ + public Builder mergeEffectiveInstanceMetadata( + com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata value) { + if (effectiveInstanceMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && effectiveInstanceMetadata_ != null + && effectiveInstanceMetadata_ + != com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata + .getDefaultInstance()) { + getEffectiveInstanceMetadataBuilder().mergeFrom(value); + } else { + effectiveInstanceMetadata_ = value; + } + } else { + effectiveInstanceMetadataBuilder_.mergeFrom(value); + } + if (effectiveInstanceMetadata_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * [Output Only] Effective metadata is a field that consolidates project, zonal instance settings, and instance-level predefined metadata keys to provide the overridden value for those metadata keys at the instance level.
+     * 
+ * + * + * optional .google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata effective_instance_metadata = 55052033; + * + */ + public Builder clearEffectiveInstanceMetadata() { + bitField0_ = (bitField0_ & ~0x00000001); + effectiveInstanceMetadata_ = null; + if (effectiveInstanceMetadataBuilder_ != null) { + effectiveInstanceMetadataBuilder_.dispose(); + effectiveInstanceMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * [Output Only] Effective metadata is a field that consolidates project, zonal instance settings, and instance-level predefined metadata keys to provide the overridden value for those metadata keys at the instance level.
+     * 
+ * + * + * optional .google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata effective_instance_metadata = 55052033; + * + */ + public com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata.Builder + getEffectiveInstanceMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getEffectiveInstanceMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * [Output Only] Effective metadata is a field that consolidates project, zonal instance settings, and instance-level predefined metadata keys to provide the overridden value for those metadata keys at the instance level.
+     * 
+ * + * + * optional .google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata effective_instance_metadata = 55052033; + * + */ + public com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadataOrBuilder + getEffectiveInstanceMetadataOrBuilder() { + if (effectiveInstanceMetadataBuilder_ != null) { + return effectiveInstanceMetadataBuilder_.getMessageOrBuilder(); + } else { + return effectiveInstanceMetadata_ == null + ? com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata + .getDefaultInstance() + : effectiveInstanceMetadata_; + } + } + + /** + * + * + *
+     * [Output Only] Effective metadata is a field that consolidates project, zonal instance settings, and instance-level predefined metadata keys to provide the overridden value for those metadata keys at the instance level.
+     * 
+ * + * + * optional .google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata effective_instance_metadata = 55052033; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata, + com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata.Builder, + com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadataOrBuilder> + getEffectiveInstanceMetadataFieldBuilder() { + if (effectiveInstanceMetadataBuilder_ == null) { + effectiveInstanceMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata, + com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata.Builder, + com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadataOrBuilder>( + getEffectiveInstanceMetadata(), getParentForChildren(), isClean()); + effectiveInstanceMetadata_ = null; + } + return effectiveInstanceMetadataBuilder_; + } + private java.lang.Object physicalHost_ = ""; /** @@ -751,7 +1077,7 @@ public Builder mergeFrom( * @return Whether the physicalHost field is set. */ public boolean hasPhysicalHost() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** @@ -817,7 +1143,7 @@ public Builder setPhysicalHost(java.lang.String value) { throw new NullPointerException(); } physicalHost_ = value; - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -835,7 +1161,7 @@ public Builder setPhysicalHost(java.lang.String value) { */ public Builder clearPhysicalHost() { physicalHost_ = getDefaultInstance().getPhysicalHost(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -858,7 +1184,7 @@ public Builder setPhysicalHostBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); physicalHost_ = value; - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -884,7 +1210,7 @@ public Builder setPhysicalHostBytes(com.google.protobuf.ByteString value) { * @return Whether the physicalHostTopology field is set. */ public boolean hasPhysicalHostTopology() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** @@ -932,7 +1258,7 @@ public Builder setPhysicalHostTopology( } else { physicalHostTopologyBuilder_.setMessage(value); } - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -955,7 +1281,7 @@ public Builder setPhysicalHostTopology( } else { physicalHostTopologyBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -974,7 +1300,7 @@ public Builder setPhysicalHostTopology( public Builder mergePhysicalHostTopology( com.google.cloud.compute.v1.ResourceStatusPhysicalHostTopology value) { if (physicalHostTopologyBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) + if (((bitField0_ & 0x00000004) != 0) && physicalHostTopology_ != null && physicalHostTopology_ != com.google.cloud.compute.v1.ResourceStatusPhysicalHostTopology @@ -987,7 +1313,7 @@ public Builder mergePhysicalHostTopology( physicalHostTopologyBuilder_.mergeFrom(value); } if (physicalHostTopology_ != null) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); } return this; @@ -1005,7 +1331,7 @@ public Builder mergePhysicalHostTopology( *
*/ public Builder clearPhysicalHostTopology() { - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); physicalHostTopology_ = null; if (physicalHostTopologyBuilder_ != null) { physicalHostTopologyBuilder_.dispose(); @@ -1028,7 +1354,7 @@ public Builder clearPhysicalHostTopology() { */ public com.google.cloud.compute.v1.ResourceStatusPhysicalHostTopology.Builder getPhysicalHostTopologyBuilder() { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return getPhysicalHostTopologyFieldBuilder().getBuilder(); } @@ -1097,7 +1423,7 @@ public Builder clearPhysicalHostTopology() { * @return Whether the scheduling field is set. */ public boolean hasScheduling() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** @@ -1129,7 +1455,7 @@ public Builder setScheduling(com.google.cloud.compute.v1.ResourceStatusSchedulin } else { schedulingBuilder_.setMessage(value); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1145,7 +1471,7 @@ public Builder setScheduling( } else { schedulingBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1156,7 +1482,7 @@ public Builder setScheduling( */ public Builder mergeScheduling(com.google.cloud.compute.v1.ResourceStatusScheduling value) { if (schedulingBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) + if (((bitField0_ & 0x00000008) != 0) && scheduling_ != null && scheduling_ != com.google.cloud.compute.v1.ResourceStatusScheduling.getDefaultInstance()) { @@ -1168,7 +1494,7 @@ public Builder mergeScheduling(com.google.cloud.compute.v1.ResourceStatusSchedul schedulingBuilder_.mergeFrom(value); } if (scheduling_ != null) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } return this; @@ -1179,7 +1505,7 @@ public Builder mergeScheduling(com.google.cloud.compute.v1.ResourceStatusSchedul *
*/ public Builder clearScheduling() { - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); scheduling_ = null; if (schedulingBuilder_ != null) { schedulingBuilder_.dispose(); @@ -1194,7 +1520,7 @@ public Builder clearScheduling() { *
*/ public com.google.cloud.compute.v1.ResourceStatusScheduling.Builder getSchedulingBuilder() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return getSchedulingFieldBuilder().getBuilder(); } @@ -1248,7 +1574,7 @@ public com.google.cloud.compute.v1.ResourceStatusSchedulingOrBuilder getScheduli * @return Whether the upcomingMaintenance field is set. */ public boolean hasUpcomingMaintenance() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** @@ -1280,7 +1606,7 @@ public Builder setUpcomingMaintenance(com.google.cloud.compute.v1.UpcomingMainte } else { upcomingMaintenanceBuilder_.setMessage(value); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1296,7 +1622,7 @@ public Builder setUpcomingMaintenance( } else { upcomingMaintenanceBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1307,7 +1633,7 @@ public Builder setUpcomingMaintenance( */ public Builder mergeUpcomingMaintenance(com.google.cloud.compute.v1.UpcomingMaintenance value) { if (upcomingMaintenanceBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) + if (((bitField0_ & 0x00000010) != 0) && upcomingMaintenance_ != null && upcomingMaintenance_ != com.google.cloud.compute.v1.UpcomingMaintenance.getDefaultInstance()) { @@ -1319,7 +1645,7 @@ public Builder mergeUpcomingMaintenance(com.google.cloud.compute.v1.UpcomingMain upcomingMaintenanceBuilder_.mergeFrom(value); } if (upcomingMaintenance_ != null) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); } return this; @@ -1330,7 +1656,7 @@ public Builder mergeUpcomingMaintenance(com.google.cloud.compute.v1.UpcomingMain *
*/ public Builder clearUpcomingMaintenance() { - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); upcomingMaintenance_ = null; if (upcomingMaintenanceBuilder_ != null) { upcomingMaintenanceBuilder_.dispose(); @@ -1345,7 +1671,7 @@ public Builder clearUpcomingMaintenance() { *
*/ public com.google.cloud.compute.v1.UpcomingMaintenance.Builder getUpcomingMaintenanceBuilder() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return getUpcomingMaintenanceFieldBuilder().getBuilder(); } diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ResourceStatusEffectiveInstanceMetadata.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ResourceStatusEffectiveInstanceMetadata.java new file mode 100644 index 000000000000..2672e5913daf --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ResourceStatusEffectiveInstanceMetadata.java @@ -0,0 +1,1673 @@ +/* + * 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/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * Effective values of predefined metadata keys for an instance.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata} + */ +public final class ResourceStatusEffectiveInstanceMetadata + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata) + ResourceStatusEffectiveInstanceMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ResourceStatusEffectiveInstanceMetadata.newBuilder() to construct. + private ResourceStatusEffectiveInstanceMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ResourceStatusEffectiveInstanceMetadata() { + vmDnsSettingMetadataValue_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ResourceStatusEffectiveInstanceMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ResourceStatusEffectiveInstanceMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ResourceStatusEffectiveInstanceMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata.class, + com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata.Builder.class); + } + + private int bitField0_; + public static final int BLOCK_PROJECT_SSH_KEYS_METADATA_VALUE_FIELD_NUMBER = 338623101; + private boolean blockProjectSshKeysMetadataValue_ = false; + + /** + * + * + *
+   * Effective block-project-ssh-keys value at Instance level.
+   * 
+ * + * optional bool block_project_ssh_keys_metadata_value = 338623101; + * + * @return Whether the blockProjectSshKeysMetadataValue field is set. + */ + @java.lang.Override + public boolean hasBlockProjectSshKeysMetadataValue() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Effective block-project-ssh-keys value at Instance level.
+   * 
+ * + * optional bool block_project_ssh_keys_metadata_value = 338623101; + * + * @return The blockProjectSshKeysMetadataValue. + */ + @java.lang.Override + public boolean getBlockProjectSshKeysMetadataValue() { + return blockProjectSshKeysMetadataValue_; + } + + public static final int ENABLE_GUEST_ATTRIBUTES_METADATA_VALUE_FIELD_NUMBER = 420155878; + private boolean enableGuestAttributesMetadataValue_ = false; + + /** + * + * + *
+   * Effective enable-guest-attributes value at Instance level.
+   * 
+ * + * optional bool enable_guest_attributes_metadata_value = 420155878; + * + * @return Whether the enableGuestAttributesMetadataValue field is set. + */ + @java.lang.Override + public boolean hasEnableGuestAttributesMetadataValue() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Effective enable-guest-attributes value at Instance level.
+   * 
+ * + * optional bool enable_guest_attributes_metadata_value = 420155878; + * + * @return The enableGuestAttributesMetadataValue. + */ + @java.lang.Override + public boolean getEnableGuestAttributesMetadataValue() { + return enableGuestAttributesMetadataValue_; + } + + public static final int ENABLE_OS_INVENTORY_METADATA_VALUE_FIELD_NUMBER = 371752675; + private boolean enableOsInventoryMetadataValue_ = false; + + /** + * + * + *
+   * Effective enable-os-inventory value at Instance level.
+   * 
+ * + * optional bool enable_os_inventory_metadata_value = 371752675; + * + * @return Whether the enableOsInventoryMetadataValue field is set. + */ + @java.lang.Override + public boolean hasEnableOsInventoryMetadataValue() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Effective enable-os-inventory value at Instance level.
+   * 
+ * + * optional bool enable_os_inventory_metadata_value = 371752675; + * + * @return The enableOsInventoryMetadataValue. + */ + @java.lang.Override + public boolean getEnableOsInventoryMetadataValue() { + return enableOsInventoryMetadataValue_; + } + + public static final int ENABLE_OSCONFIG_METADATA_VALUE_FIELD_NUMBER = 502966494; + private boolean enableOsconfigMetadataValue_ = false; + + /** + * + * + *
+   * Effective enable-osconfig value at Instance level.
+   * 
+ * + * optional bool enable_osconfig_metadata_value = 502966494; + * + * @return Whether the enableOsconfigMetadataValue field is set. + */ + @java.lang.Override + public boolean hasEnableOsconfigMetadataValue() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Effective enable-osconfig value at Instance level.
+   * 
+ * + * optional bool enable_osconfig_metadata_value = 502966494; + * + * @return The enableOsconfigMetadataValue. + */ + @java.lang.Override + public boolean getEnableOsconfigMetadataValue() { + return enableOsconfigMetadataValue_; + } + + public static final int ENABLE_OSLOGIN_METADATA_VALUE_FIELD_NUMBER = 216603159; + private boolean enableOsloginMetadataValue_ = false; + + /** + * + * + *
+   * Effective enable-oslogin value at Instance level.
+   * 
+ * + * optional bool enable_oslogin_metadata_value = 216603159; + * + * @return Whether the enableOsloginMetadataValue field is set. + */ + @java.lang.Override + public boolean hasEnableOsloginMetadataValue() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Effective enable-oslogin value at Instance level.
+   * 
+ * + * optional bool enable_oslogin_metadata_value = 216603159; + * + * @return The enableOsloginMetadataValue. + */ + @java.lang.Override + public boolean getEnableOsloginMetadataValue() { + return enableOsloginMetadataValue_; + } + + public static final int SERIAL_PORT_ENABLE_METADATA_VALUE_FIELD_NUMBER = 430536330; + private boolean serialPortEnableMetadataValue_ = false; + + /** + * + * + *
+   * Effective serial-port-enable value at Instance level.
+   * 
+ * + * optional bool serial_port_enable_metadata_value = 430536330; + * + * @return Whether the serialPortEnableMetadataValue field is set. + */ + @java.lang.Override + public boolean hasSerialPortEnableMetadataValue() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+   * Effective serial-port-enable value at Instance level.
+   * 
+ * + * optional bool serial_port_enable_metadata_value = 430536330; + * + * @return The serialPortEnableMetadataValue. + */ + @java.lang.Override + public boolean getSerialPortEnableMetadataValue() { + return serialPortEnableMetadataValue_; + } + + public static final int SERIAL_PORT_LOGGING_ENABLE_METADATA_VALUE_FIELD_NUMBER = 311813290; + private boolean serialPortLoggingEnableMetadataValue_ = false; + + /** + * + * + *
+   * Effective serial-port-logging-enable value at Instance level.
+   * 
+ * + * optional bool serial_port_logging_enable_metadata_value = 311813290; + * + * @return Whether the serialPortLoggingEnableMetadataValue field is set. + */ + @java.lang.Override + public boolean hasSerialPortLoggingEnableMetadataValue() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+   * Effective serial-port-logging-enable value at Instance level.
+   * 
+ * + * optional bool serial_port_logging_enable_metadata_value = 311813290; + * + * @return The serialPortLoggingEnableMetadataValue. + */ + @java.lang.Override + public boolean getSerialPortLoggingEnableMetadataValue() { + return serialPortLoggingEnableMetadataValue_; + } + + public static final int VM_DNS_SETTING_METADATA_VALUE_FIELD_NUMBER = 411127950; + + @SuppressWarnings("serial") + private volatile java.lang.Object vmDnsSettingMetadataValue_ = ""; + + /** + * + * + *
+   * Effective VM DNS setting at Instance level.
+   * 
+ * + * optional string vm_dns_setting_metadata_value = 411127950; + * + * @return Whether the vmDnsSettingMetadataValue field is set. + */ + @java.lang.Override + public boolean hasVmDnsSettingMetadataValue() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+   * Effective VM DNS setting at Instance level.
+   * 
+ * + * optional string vm_dns_setting_metadata_value = 411127950; + * + * @return The vmDnsSettingMetadataValue. + */ + @java.lang.Override + public java.lang.String getVmDnsSettingMetadataValue() { + java.lang.Object ref = vmDnsSettingMetadataValue_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vmDnsSettingMetadataValue_ = s; + return s; + } + } + + /** + * + * + *
+   * Effective VM DNS setting at Instance level.
+   * 
+ * + * optional string vm_dns_setting_metadata_value = 411127950; + * + * @return The bytes for vmDnsSettingMetadataValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVmDnsSettingMetadataValueBytes() { + java.lang.Object ref = vmDnsSettingMetadataValue_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vmDnsSettingMetadataValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000010) != 0)) { + output.writeBool(216603159, enableOsloginMetadataValue_); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeBool(311813290, serialPortLoggingEnableMetadataValue_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBool(338623101, blockProjectSshKeysMetadataValue_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeBool(371752675, enableOsInventoryMetadataValue_); + } + if (((bitField0_ & 0x00000080) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 411127950, vmDnsSettingMetadataValue_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeBool(420155878, enableGuestAttributesMetadataValue_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeBool(430536330, serialPortEnableMetadataValue_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeBool(502966494, enableOsconfigMetadataValue_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000010) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 216603159, enableOsloginMetadataValue_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 311813290, serialPortLoggingEnableMetadataValue_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 338623101, blockProjectSshKeysMetadataValue_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 371752675, enableOsInventoryMetadataValue_); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 411127950, vmDnsSettingMetadataValue_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 420155878, enableGuestAttributesMetadataValue_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 430536330, serialPortEnableMetadataValue_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 502966494, enableOsconfigMetadataValue_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata other = + (com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata) obj; + + if (hasBlockProjectSshKeysMetadataValue() != other.hasBlockProjectSshKeysMetadataValue()) + return false; + if (hasBlockProjectSshKeysMetadataValue()) { + if (getBlockProjectSshKeysMetadataValue() != other.getBlockProjectSshKeysMetadataValue()) + return false; + } + if (hasEnableGuestAttributesMetadataValue() != other.hasEnableGuestAttributesMetadataValue()) + return false; + if (hasEnableGuestAttributesMetadataValue()) { + if (getEnableGuestAttributesMetadataValue() != other.getEnableGuestAttributesMetadataValue()) + return false; + } + if (hasEnableOsInventoryMetadataValue() != other.hasEnableOsInventoryMetadataValue()) + return false; + if (hasEnableOsInventoryMetadataValue()) { + if (getEnableOsInventoryMetadataValue() != other.getEnableOsInventoryMetadataValue()) + return false; + } + if (hasEnableOsconfigMetadataValue() != other.hasEnableOsconfigMetadataValue()) return false; + if (hasEnableOsconfigMetadataValue()) { + if (getEnableOsconfigMetadataValue() != other.getEnableOsconfigMetadataValue()) return false; + } + if (hasEnableOsloginMetadataValue() != other.hasEnableOsloginMetadataValue()) return false; + if (hasEnableOsloginMetadataValue()) { + if (getEnableOsloginMetadataValue() != other.getEnableOsloginMetadataValue()) return false; + } + if (hasSerialPortEnableMetadataValue() != other.hasSerialPortEnableMetadataValue()) + return false; + if (hasSerialPortEnableMetadataValue()) { + if (getSerialPortEnableMetadataValue() != other.getSerialPortEnableMetadataValue()) + return false; + } + if (hasSerialPortLoggingEnableMetadataValue() + != other.hasSerialPortLoggingEnableMetadataValue()) return false; + if (hasSerialPortLoggingEnableMetadataValue()) { + if (getSerialPortLoggingEnableMetadataValue() + != other.getSerialPortLoggingEnableMetadataValue()) return false; + } + if (hasVmDnsSettingMetadataValue() != other.hasVmDnsSettingMetadataValue()) return false; + if (hasVmDnsSettingMetadataValue()) { + if (!getVmDnsSettingMetadataValue().equals(other.getVmDnsSettingMetadataValue())) + 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 (hasBlockProjectSshKeysMetadataValue()) { + hash = (37 * hash) + BLOCK_PROJECT_SSH_KEYS_METADATA_VALUE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getBlockProjectSshKeysMetadataValue()); + } + if (hasEnableGuestAttributesMetadataValue()) { + hash = (37 * hash) + ENABLE_GUEST_ATTRIBUTES_METADATA_VALUE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getEnableGuestAttributesMetadataValue()); + } + if (hasEnableOsInventoryMetadataValue()) { + hash = (37 * hash) + ENABLE_OS_INVENTORY_METADATA_VALUE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getEnableOsInventoryMetadataValue()); + } + if (hasEnableOsconfigMetadataValue()) { + hash = (37 * hash) + ENABLE_OSCONFIG_METADATA_VALUE_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableOsconfigMetadataValue()); + } + if (hasEnableOsloginMetadataValue()) { + hash = (37 * hash) + ENABLE_OSLOGIN_METADATA_VALUE_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableOsloginMetadataValue()); + } + if (hasSerialPortEnableMetadataValue()) { + hash = (37 * hash) + SERIAL_PORT_ENABLE_METADATA_VALUE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getSerialPortEnableMetadataValue()); + } + if (hasSerialPortLoggingEnableMetadataValue()) { + hash = (37 * hash) + SERIAL_PORT_LOGGING_ENABLE_METADATA_VALUE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getSerialPortLoggingEnableMetadataValue()); + } + if (hasVmDnsSettingMetadataValue()) { + hash = (37 * hash) + VM_DNS_SETTING_METADATA_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getVmDnsSettingMetadataValue().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata 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.compute.v1.ResourceStatusEffectiveInstanceMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata + 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.compute.v1.ResourceStatusEffectiveInstanceMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata 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.compute.v1.ResourceStatusEffectiveInstanceMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
+   * Effective values of predefined metadata keys for an instance.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata) + com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ResourceStatusEffectiveInstanceMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ResourceStatusEffectiveInstanceMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata.class, + com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata.Builder.class); + } + + // Construct using + // com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + blockProjectSshKeysMetadataValue_ = false; + enableGuestAttributesMetadataValue_ = false; + enableOsInventoryMetadataValue_ = false; + enableOsconfigMetadataValue_ = false; + enableOsloginMetadataValue_ = false; + serialPortEnableMetadataValue_ = false; + serialPortLoggingEnableMetadataValue_ = false; + vmDnsSettingMetadataValue_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_ResourceStatusEffectiveInstanceMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata build() { + com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata buildPartial() { + com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata result = + new com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.blockProjectSshKeysMetadataValue_ = blockProjectSshKeysMetadataValue_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.enableGuestAttributesMetadataValue_ = enableGuestAttributesMetadataValue_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.enableOsInventoryMetadataValue_ = enableOsInventoryMetadataValue_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.enableOsconfigMetadataValue_ = enableOsconfigMetadataValue_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.enableOsloginMetadataValue_ = enableOsloginMetadataValue_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.serialPortEnableMetadataValue_ = serialPortEnableMetadataValue_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.serialPortLoggingEnableMetadataValue_ = serialPortLoggingEnableMetadataValue_; + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.vmDnsSettingMetadataValue_ = vmDnsSettingMetadataValue_; + to_bitField0_ |= 0x00000080; + } + 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.compute.v1.ResourceStatusEffectiveInstanceMetadata) { + return mergeFrom( + (com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata other) { + if (other + == com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata + .getDefaultInstance()) return this; + if (other.hasBlockProjectSshKeysMetadataValue()) { + setBlockProjectSshKeysMetadataValue(other.getBlockProjectSshKeysMetadataValue()); + } + if (other.hasEnableGuestAttributesMetadataValue()) { + setEnableGuestAttributesMetadataValue(other.getEnableGuestAttributesMetadataValue()); + } + if (other.hasEnableOsInventoryMetadataValue()) { + setEnableOsInventoryMetadataValue(other.getEnableOsInventoryMetadataValue()); + } + if (other.hasEnableOsconfigMetadataValue()) { + setEnableOsconfigMetadataValue(other.getEnableOsconfigMetadataValue()); + } + if (other.hasEnableOsloginMetadataValue()) { + setEnableOsloginMetadataValue(other.getEnableOsloginMetadataValue()); + } + if (other.hasSerialPortEnableMetadataValue()) { + setSerialPortEnableMetadataValue(other.getSerialPortEnableMetadataValue()); + } + if (other.hasSerialPortLoggingEnableMetadataValue()) { + setSerialPortLoggingEnableMetadataValue(other.getSerialPortLoggingEnableMetadataValue()); + } + if (other.hasVmDnsSettingMetadataValue()) { + vmDnsSettingMetadataValue_ = other.vmDnsSettingMetadataValue_; + bitField0_ |= 0x00000080; + 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 1732825272: + { + enableOsloginMetadataValue_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 1732825272 + case -1800460976: + { + serialPortLoggingEnableMetadataValue_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case -1800460976 + case -1585982488: + { + blockProjectSshKeysMetadataValue_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case -1585982488 + case -1320945896: + { + enableOsInventoryMetadataValue_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case -1320945896 + case -1005943694: + { + vmDnsSettingMetadataValue_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case -1005943694 + case -933720272: + { + enableGuestAttributesMetadataValue_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case -933720272 + case -850676656: + { + serialPortEnableMetadataValue_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case -850676656 + case -271235344: + { + enableOsconfigMetadataValue_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case -271235344 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was 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 blockProjectSshKeysMetadataValue_; + + /** + * + * + *
+     * Effective block-project-ssh-keys value at Instance level.
+     * 
+ * + * optional bool block_project_ssh_keys_metadata_value = 338623101; + * + * @return Whether the blockProjectSshKeysMetadataValue field is set. + */ + @java.lang.Override + public boolean hasBlockProjectSshKeysMetadataValue() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Effective block-project-ssh-keys value at Instance level.
+     * 
+ * + * optional bool block_project_ssh_keys_metadata_value = 338623101; + * + * @return The blockProjectSshKeysMetadataValue. + */ + @java.lang.Override + public boolean getBlockProjectSshKeysMetadataValue() { + return blockProjectSshKeysMetadataValue_; + } + + /** + * + * + *
+     * Effective block-project-ssh-keys value at Instance level.
+     * 
+ * + * optional bool block_project_ssh_keys_metadata_value = 338623101; + * + * @param value The blockProjectSshKeysMetadataValue to set. + * @return This builder for chaining. + */ + public Builder setBlockProjectSshKeysMetadataValue(boolean value) { + + blockProjectSshKeysMetadataValue_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Effective block-project-ssh-keys value at Instance level.
+     * 
+ * + * optional bool block_project_ssh_keys_metadata_value = 338623101; + * + * @return This builder for chaining. + */ + public Builder clearBlockProjectSshKeysMetadataValue() { + bitField0_ = (bitField0_ & ~0x00000001); + blockProjectSshKeysMetadataValue_ = false; + onChanged(); + return this; + } + + private boolean enableGuestAttributesMetadataValue_; + + /** + * + * + *
+     * Effective enable-guest-attributes value at Instance level.
+     * 
+ * + * optional bool enable_guest_attributes_metadata_value = 420155878; + * + * @return Whether the enableGuestAttributesMetadataValue field is set. + */ + @java.lang.Override + public boolean hasEnableGuestAttributesMetadataValue() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Effective enable-guest-attributes value at Instance level.
+     * 
+ * + * optional bool enable_guest_attributes_metadata_value = 420155878; + * + * @return The enableGuestAttributesMetadataValue. + */ + @java.lang.Override + public boolean getEnableGuestAttributesMetadataValue() { + return enableGuestAttributesMetadataValue_; + } + + /** + * + * + *
+     * Effective enable-guest-attributes value at Instance level.
+     * 
+ * + * optional bool enable_guest_attributes_metadata_value = 420155878; + * + * @param value The enableGuestAttributesMetadataValue to set. + * @return This builder for chaining. + */ + public Builder setEnableGuestAttributesMetadataValue(boolean value) { + + enableGuestAttributesMetadataValue_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Effective enable-guest-attributes value at Instance level.
+     * 
+ * + * optional bool enable_guest_attributes_metadata_value = 420155878; + * + * @return This builder for chaining. + */ + public Builder clearEnableGuestAttributesMetadataValue() { + bitField0_ = (bitField0_ & ~0x00000002); + enableGuestAttributesMetadataValue_ = false; + onChanged(); + return this; + } + + private boolean enableOsInventoryMetadataValue_; + + /** + * + * + *
+     * Effective enable-os-inventory value at Instance level.
+     * 
+ * + * optional bool enable_os_inventory_metadata_value = 371752675; + * + * @return Whether the enableOsInventoryMetadataValue field is set. + */ + @java.lang.Override + public boolean hasEnableOsInventoryMetadataValue() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Effective enable-os-inventory value at Instance level.
+     * 
+ * + * optional bool enable_os_inventory_metadata_value = 371752675; + * + * @return The enableOsInventoryMetadataValue. + */ + @java.lang.Override + public boolean getEnableOsInventoryMetadataValue() { + return enableOsInventoryMetadataValue_; + } + + /** + * + * + *
+     * Effective enable-os-inventory value at Instance level.
+     * 
+ * + * optional bool enable_os_inventory_metadata_value = 371752675; + * + * @param value The enableOsInventoryMetadataValue to set. + * @return This builder for chaining. + */ + public Builder setEnableOsInventoryMetadataValue(boolean value) { + + enableOsInventoryMetadataValue_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Effective enable-os-inventory value at Instance level.
+     * 
+ * + * optional bool enable_os_inventory_metadata_value = 371752675; + * + * @return This builder for chaining. + */ + public Builder clearEnableOsInventoryMetadataValue() { + bitField0_ = (bitField0_ & ~0x00000004); + enableOsInventoryMetadataValue_ = false; + onChanged(); + return this; + } + + private boolean enableOsconfigMetadataValue_; + + /** + * + * + *
+     * Effective enable-osconfig value at Instance level.
+     * 
+ * + * optional bool enable_osconfig_metadata_value = 502966494; + * + * @return Whether the enableOsconfigMetadataValue field is set. + */ + @java.lang.Override + public boolean hasEnableOsconfigMetadataValue() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Effective enable-osconfig value at Instance level.
+     * 
+ * + * optional bool enable_osconfig_metadata_value = 502966494; + * + * @return The enableOsconfigMetadataValue. + */ + @java.lang.Override + public boolean getEnableOsconfigMetadataValue() { + return enableOsconfigMetadataValue_; + } + + /** + * + * + *
+     * Effective enable-osconfig value at Instance level.
+     * 
+ * + * optional bool enable_osconfig_metadata_value = 502966494; + * + * @param value The enableOsconfigMetadataValue to set. + * @return This builder for chaining. + */ + public Builder setEnableOsconfigMetadataValue(boolean value) { + + enableOsconfigMetadataValue_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Effective enable-osconfig value at Instance level.
+     * 
+ * + * optional bool enable_osconfig_metadata_value = 502966494; + * + * @return This builder for chaining. + */ + public Builder clearEnableOsconfigMetadataValue() { + bitField0_ = (bitField0_ & ~0x00000008); + enableOsconfigMetadataValue_ = false; + onChanged(); + return this; + } + + private boolean enableOsloginMetadataValue_; + + /** + * + * + *
+     * Effective enable-oslogin value at Instance level.
+     * 
+ * + * optional bool enable_oslogin_metadata_value = 216603159; + * + * @return Whether the enableOsloginMetadataValue field is set. + */ + @java.lang.Override + public boolean hasEnableOsloginMetadataValue() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Effective enable-oslogin value at Instance level.
+     * 
+ * + * optional bool enable_oslogin_metadata_value = 216603159; + * + * @return The enableOsloginMetadataValue. + */ + @java.lang.Override + public boolean getEnableOsloginMetadataValue() { + return enableOsloginMetadataValue_; + } + + /** + * + * + *
+     * Effective enable-oslogin value at Instance level.
+     * 
+ * + * optional bool enable_oslogin_metadata_value = 216603159; + * + * @param value The enableOsloginMetadataValue to set. + * @return This builder for chaining. + */ + public Builder setEnableOsloginMetadataValue(boolean value) { + + enableOsloginMetadataValue_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Effective enable-oslogin value at Instance level.
+     * 
+ * + * optional bool enable_oslogin_metadata_value = 216603159; + * + * @return This builder for chaining. + */ + public Builder clearEnableOsloginMetadataValue() { + bitField0_ = (bitField0_ & ~0x00000010); + enableOsloginMetadataValue_ = false; + onChanged(); + return this; + } + + private boolean serialPortEnableMetadataValue_; + + /** + * + * + *
+     * Effective serial-port-enable value at Instance level.
+     * 
+ * + * optional bool serial_port_enable_metadata_value = 430536330; + * + * @return Whether the serialPortEnableMetadataValue field is set. + */ + @java.lang.Override + public boolean hasSerialPortEnableMetadataValue() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Effective serial-port-enable value at Instance level.
+     * 
+ * + * optional bool serial_port_enable_metadata_value = 430536330; + * + * @return The serialPortEnableMetadataValue. + */ + @java.lang.Override + public boolean getSerialPortEnableMetadataValue() { + return serialPortEnableMetadataValue_; + } + + /** + * + * + *
+     * Effective serial-port-enable value at Instance level.
+     * 
+ * + * optional bool serial_port_enable_metadata_value = 430536330; + * + * @param value The serialPortEnableMetadataValue to set. + * @return This builder for chaining. + */ + public Builder setSerialPortEnableMetadataValue(boolean value) { + + serialPortEnableMetadataValue_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Effective serial-port-enable value at Instance level.
+     * 
+ * + * optional bool serial_port_enable_metadata_value = 430536330; + * + * @return This builder for chaining. + */ + public Builder clearSerialPortEnableMetadataValue() { + bitField0_ = (bitField0_ & ~0x00000020); + serialPortEnableMetadataValue_ = false; + onChanged(); + return this; + } + + private boolean serialPortLoggingEnableMetadataValue_; + + /** + * + * + *
+     * Effective serial-port-logging-enable value at Instance level.
+     * 
+ * + * optional bool serial_port_logging_enable_metadata_value = 311813290; + * + * @return Whether the serialPortLoggingEnableMetadataValue field is set. + */ + @java.lang.Override + public boolean hasSerialPortLoggingEnableMetadataValue() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Effective serial-port-logging-enable value at Instance level.
+     * 
+ * + * optional bool serial_port_logging_enable_metadata_value = 311813290; + * + * @return The serialPortLoggingEnableMetadataValue. + */ + @java.lang.Override + public boolean getSerialPortLoggingEnableMetadataValue() { + return serialPortLoggingEnableMetadataValue_; + } + + /** + * + * + *
+     * Effective serial-port-logging-enable value at Instance level.
+     * 
+ * + * optional bool serial_port_logging_enable_metadata_value = 311813290; + * + * @param value The serialPortLoggingEnableMetadataValue to set. + * @return This builder for chaining. + */ + public Builder setSerialPortLoggingEnableMetadataValue(boolean value) { + + serialPortLoggingEnableMetadataValue_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Effective serial-port-logging-enable value at Instance level.
+     * 
+ * + * optional bool serial_port_logging_enable_metadata_value = 311813290; + * + * @return This builder for chaining. + */ + public Builder clearSerialPortLoggingEnableMetadataValue() { + bitField0_ = (bitField0_ & ~0x00000040); + serialPortLoggingEnableMetadataValue_ = false; + onChanged(); + return this; + } + + private java.lang.Object vmDnsSettingMetadataValue_ = ""; + + /** + * + * + *
+     * Effective VM DNS setting at Instance level.
+     * 
+ * + * optional string vm_dns_setting_metadata_value = 411127950; + * + * @return Whether the vmDnsSettingMetadataValue field is set. + */ + public boolean hasVmDnsSettingMetadataValue() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Effective VM DNS setting at Instance level.
+     * 
+ * + * optional string vm_dns_setting_metadata_value = 411127950; + * + * @return The vmDnsSettingMetadataValue. + */ + public java.lang.String getVmDnsSettingMetadataValue() { + java.lang.Object ref = vmDnsSettingMetadataValue_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vmDnsSettingMetadataValue_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Effective VM DNS setting at Instance level.
+     * 
+ * + * optional string vm_dns_setting_metadata_value = 411127950; + * + * @return The bytes for vmDnsSettingMetadataValue. + */ + public com.google.protobuf.ByteString getVmDnsSettingMetadataValueBytes() { + java.lang.Object ref = vmDnsSettingMetadataValue_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vmDnsSettingMetadataValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Effective VM DNS setting at Instance level.
+     * 
+ * + * optional string vm_dns_setting_metadata_value = 411127950; + * + * @param value The vmDnsSettingMetadataValue to set. + * @return This builder for chaining. + */ + public Builder setVmDnsSettingMetadataValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + vmDnsSettingMetadataValue_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Effective VM DNS setting at Instance level.
+     * 
+ * + * optional string vm_dns_setting_metadata_value = 411127950; + * + * @return This builder for chaining. + */ + public Builder clearVmDnsSettingMetadataValue() { + vmDnsSettingMetadataValue_ = getDefaultInstance().getVmDnsSettingMetadataValue(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * + * + *
+     * Effective VM DNS setting at Instance level.
+     * 
+ * + * optional string vm_dns_setting_metadata_value = 411127950; + * + * @param value The bytes for vmDnsSettingMetadataValue to set. + * @return This builder for chaining. + */ + public Builder setVmDnsSettingMetadataValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vmDnsSettingMetadataValue_ = value; + bitField0_ |= 0x00000080; + 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.compute.v1.ResourceStatusEffectiveInstanceMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata) + private static final com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata(); + } + + public static com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceStatusEffectiveInstanceMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ResourceStatusEffectiveInstanceMetadataOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ResourceStatusEffectiveInstanceMetadataOrBuilder.java new file mode 100644 index 000000000000..02ca96705f30 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ResourceStatusEffectiveInstanceMetadataOrBuilder.java @@ -0,0 +1,247 @@ +/* + * 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/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.compute.v1; + +public interface ResourceStatusEffectiveInstanceMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Effective block-project-ssh-keys value at Instance level.
+   * 
+ * + * optional bool block_project_ssh_keys_metadata_value = 338623101; + * + * @return Whether the blockProjectSshKeysMetadataValue field is set. + */ + boolean hasBlockProjectSshKeysMetadataValue(); + + /** + * + * + *
+   * Effective block-project-ssh-keys value at Instance level.
+   * 
+ * + * optional bool block_project_ssh_keys_metadata_value = 338623101; + * + * @return The blockProjectSshKeysMetadataValue. + */ + boolean getBlockProjectSshKeysMetadataValue(); + + /** + * + * + *
+   * Effective enable-guest-attributes value at Instance level.
+   * 
+ * + * optional bool enable_guest_attributes_metadata_value = 420155878; + * + * @return Whether the enableGuestAttributesMetadataValue field is set. + */ + boolean hasEnableGuestAttributesMetadataValue(); + + /** + * + * + *
+   * Effective enable-guest-attributes value at Instance level.
+   * 
+ * + * optional bool enable_guest_attributes_metadata_value = 420155878; + * + * @return The enableGuestAttributesMetadataValue. + */ + boolean getEnableGuestAttributesMetadataValue(); + + /** + * + * + *
+   * Effective enable-os-inventory value at Instance level.
+   * 
+ * + * optional bool enable_os_inventory_metadata_value = 371752675; + * + * @return Whether the enableOsInventoryMetadataValue field is set. + */ + boolean hasEnableOsInventoryMetadataValue(); + + /** + * + * + *
+   * Effective enable-os-inventory value at Instance level.
+   * 
+ * + * optional bool enable_os_inventory_metadata_value = 371752675; + * + * @return The enableOsInventoryMetadataValue. + */ + boolean getEnableOsInventoryMetadataValue(); + + /** + * + * + *
+   * Effective enable-osconfig value at Instance level.
+   * 
+ * + * optional bool enable_osconfig_metadata_value = 502966494; + * + * @return Whether the enableOsconfigMetadataValue field is set. + */ + boolean hasEnableOsconfigMetadataValue(); + + /** + * + * + *
+   * Effective enable-osconfig value at Instance level.
+   * 
+ * + * optional bool enable_osconfig_metadata_value = 502966494; + * + * @return The enableOsconfigMetadataValue. + */ + boolean getEnableOsconfigMetadataValue(); + + /** + * + * + *
+   * Effective enable-oslogin value at Instance level.
+   * 
+ * + * optional bool enable_oslogin_metadata_value = 216603159; + * + * @return Whether the enableOsloginMetadataValue field is set. + */ + boolean hasEnableOsloginMetadataValue(); + + /** + * + * + *
+   * Effective enable-oslogin value at Instance level.
+   * 
+ * + * optional bool enable_oslogin_metadata_value = 216603159; + * + * @return The enableOsloginMetadataValue. + */ + boolean getEnableOsloginMetadataValue(); + + /** + * + * + *
+   * Effective serial-port-enable value at Instance level.
+   * 
+ * + * optional bool serial_port_enable_metadata_value = 430536330; + * + * @return Whether the serialPortEnableMetadataValue field is set. + */ + boolean hasSerialPortEnableMetadataValue(); + + /** + * + * + *
+   * Effective serial-port-enable value at Instance level.
+   * 
+ * + * optional bool serial_port_enable_metadata_value = 430536330; + * + * @return The serialPortEnableMetadataValue. + */ + boolean getSerialPortEnableMetadataValue(); + + /** + * + * + *
+   * Effective serial-port-logging-enable value at Instance level.
+   * 
+ * + * optional bool serial_port_logging_enable_metadata_value = 311813290; + * + * @return Whether the serialPortLoggingEnableMetadataValue field is set. + */ + boolean hasSerialPortLoggingEnableMetadataValue(); + + /** + * + * + *
+   * Effective serial-port-logging-enable value at Instance level.
+   * 
+ * + * optional bool serial_port_logging_enable_metadata_value = 311813290; + * + * @return The serialPortLoggingEnableMetadataValue. + */ + boolean getSerialPortLoggingEnableMetadataValue(); + + /** + * + * + *
+   * Effective VM DNS setting at Instance level.
+   * 
+ * + * optional string vm_dns_setting_metadata_value = 411127950; + * + * @return Whether the vmDnsSettingMetadataValue field is set. + */ + boolean hasVmDnsSettingMetadataValue(); + + /** + * + * + *
+   * Effective VM DNS setting at Instance level.
+   * 
+ * + * optional string vm_dns_setting_metadata_value = 411127950; + * + * @return The vmDnsSettingMetadataValue. + */ + java.lang.String getVmDnsSettingMetadataValue(); + + /** + * + * + *
+   * Effective VM DNS setting at Instance level.
+   * 
+ * + * optional string vm_dns_setting_metadata_value = 411127950; + * + * @return The bytes for vmDnsSettingMetadataValue. + */ + com.google.protobuf.ByteString getVmDnsSettingMetadataValueBytes(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ResourceStatusOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ResourceStatusOrBuilder.java index a29aef341db4..ed06995bb0e1 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ResourceStatusOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ResourceStatusOrBuilder.java @@ -24,6 +24,51 @@ public interface ResourceStatusOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.ResourceStatus) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
+   * [Output Only] Effective metadata is a field that consolidates project, zonal instance settings, and instance-level predefined metadata keys to provide the overridden value for those metadata keys at the instance level.
+   * 
+ * + * + * optional .google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata effective_instance_metadata = 55052033; + * + * + * @return Whether the effectiveInstanceMetadata field is set. + */ + boolean hasEffectiveInstanceMetadata(); + + /** + * + * + *
+   * [Output Only] Effective metadata is a field that consolidates project, zonal instance settings, and instance-level predefined metadata keys to provide the overridden value for those metadata keys at the instance level.
+   * 
+ * + * + * optional .google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata effective_instance_metadata = 55052033; + * + * + * @return The effectiveInstanceMetadata. + */ + com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata + getEffectiveInstanceMetadata(); + + /** + * + * + *
+   * [Output Only] Effective metadata is a field that consolidates project, zonal instance settings, and instance-level predefined metadata keys to provide the overridden value for those metadata keys at the instance level.
+   * 
+ * + * + * optional .google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata effective_instance_metadata = 55052033; + * + */ + com.google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadataOrBuilder + getEffectiveInstanceMetadataOrBuilder(); + /** * * diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SecurityPolicy.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SecurityPolicy.java index fdff5926b856..89971715bf84 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SecurityPolicy.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SecurityPolicy.java @@ -90,7 +90,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl * * *
-   * The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE: Cloud Armor internal service policies can be configured to filter HTTP requests targeting services managed by Traffic Director in a service mesh. They filter requests before the request is served from the application. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be configured to filter packets targeting network load balancing resources such as backend services, target pools, target instances, and instances with external IPs. They filter requests before the request is served from the application. This field can be set only at resource creation time.
+   * The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE (preview only): Cloud Armor internal service policies can be configured to filter HTTP requests targeting services managed by Traffic Director in a service mesh. They filter requests before the request is served from the application. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be configured to filter packets targeting network load balancing resources such as backend services, target pools, target instances, and instances with external IPs. They filter requests before the request is served from the application. This field can be set only at resource creation time.
    * 
* * Protobuf enum {@code google.cloud.compute.v1.SecurityPolicy.Type} @@ -1172,7 +1172,7 @@ public com.google.protobuf.ByteString getSelfLinkBytes() { * * *
-   * The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE: Cloud Armor internal service policies can be configured to filter HTTP requests targeting services managed by Traffic Director in a service mesh. They filter requests before the request is served from the application. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be configured to filter packets targeting network load balancing resources such as backend services, target pools, target instances, and instances with external IPs. They filter requests before the request is served from the application. This field can be set only at resource creation time.
+   * The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE (preview only): Cloud Armor internal service policies can be configured to filter HTTP requests targeting services managed by Traffic Director in a service mesh. They filter requests before the request is served from the application. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be configured to filter packets targeting network load balancing resources such as backend services, target pools, target instances, and instances with external IPs. They filter requests before the request is served from the application. This field can be set only at resource creation time.
    * Check the Type enum for the list of possible values.
    * 
* @@ -1189,7 +1189,7 @@ public boolean hasType() { * * *
-   * The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE: Cloud Armor internal service policies can be configured to filter HTTP requests targeting services managed by Traffic Director in a service mesh. They filter requests before the request is served from the application. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be configured to filter packets targeting network load balancing resources such as backend services, target pools, target instances, and instances with external IPs. They filter requests before the request is served from the application. This field can be set only at resource creation time.
+   * The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE (preview only): Cloud Armor internal service policies can be configured to filter HTTP requests targeting services managed by Traffic Director in a service mesh. They filter requests before the request is served from the application. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be configured to filter packets targeting network load balancing resources such as backend services, target pools, target instances, and instances with external IPs. They filter requests before the request is served from the application. This field can be set only at resource creation time.
    * Check the Type enum for the list of possible values.
    * 
* @@ -1214,7 +1214,7 @@ public java.lang.String getType() { * * *
-   * The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE: Cloud Armor internal service policies can be configured to filter HTTP requests targeting services managed by Traffic Director in a service mesh. They filter requests before the request is served from the application. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be configured to filter packets targeting network load balancing resources such as backend services, target pools, target instances, and instances with external IPs. They filter requests before the request is served from the application. This field can be set only at resource creation time.
+   * The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE (preview only): Cloud Armor internal service policies can be configured to filter HTTP requests targeting services managed by Traffic Director in a service mesh. They filter requests before the request is served from the application. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be configured to filter packets targeting network load balancing resources such as backend services, target pools, target instances, and instances with external IPs. They filter requests before the request is served from the application. This field can be set only at resource creation time.
    * Check the Type enum for the list of possible values.
    * 
* @@ -4605,7 +4605,7 @@ public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { * * *
-     * The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE: Cloud Armor internal service policies can be configured to filter HTTP requests targeting services managed by Traffic Director in a service mesh. They filter requests before the request is served from the application. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be configured to filter packets targeting network load balancing resources such as backend services, target pools, target instances, and instances with external IPs. They filter requests before the request is served from the application. This field can be set only at resource creation time.
+     * The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE (preview only): Cloud Armor internal service policies can be configured to filter HTTP requests targeting services managed by Traffic Director in a service mesh. They filter requests before the request is served from the application. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be configured to filter packets targeting network load balancing resources such as backend services, target pools, target instances, and instances with external IPs. They filter requests before the request is served from the application. This field can be set only at resource creation time.
      * Check the Type enum for the list of possible values.
      * 
* @@ -4621,7 +4621,7 @@ public boolean hasType() { * * *
-     * The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE: Cloud Armor internal service policies can be configured to filter HTTP requests targeting services managed by Traffic Director in a service mesh. They filter requests before the request is served from the application. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be configured to filter packets targeting network load balancing resources such as backend services, target pools, target instances, and instances with external IPs. They filter requests before the request is served from the application. This field can be set only at resource creation time.
+     * The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE (preview only): Cloud Armor internal service policies can be configured to filter HTTP requests targeting services managed by Traffic Director in a service mesh. They filter requests before the request is served from the application. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be configured to filter packets targeting network load balancing resources such as backend services, target pools, target instances, and instances with external IPs. They filter requests before the request is served from the application. This field can be set only at resource creation time.
      * Check the Type enum for the list of possible values.
      * 
* @@ -4645,7 +4645,7 @@ public java.lang.String getType() { * * *
-     * The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE: Cloud Armor internal service policies can be configured to filter HTTP requests targeting services managed by Traffic Director in a service mesh. They filter requests before the request is served from the application. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be configured to filter packets targeting network load balancing resources such as backend services, target pools, target instances, and instances with external IPs. They filter requests before the request is served from the application. This field can be set only at resource creation time.
+     * The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE (preview only): Cloud Armor internal service policies can be configured to filter HTTP requests targeting services managed by Traffic Director in a service mesh. They filter requests before the request is served from the application. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be configured to filter packets targeting network load balancing resources such as backend services, target pools, target instances, and instances with external IPs. They filter requests before the request is served from the application. This field can be set only at resource creation time.
      * Check the Type enum for the list of possible values.
      * 
* @@ -4669,7 +4669,7 @@ public com.google.protobuf.ByteString getTypeBytes() { * * *
-     * The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE: Cloud Armor internal service policies can be configured to filter HTTP requests targeting services managed by Traffic Director in a service mesh. They filter requests before the request is served from the application. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be configured to filter packets targeting network load balancing resources such as backend services, target pools, target instances, and instances with external IPs. They filter requests before the request is served from the application. This field can be set only at resource creation time.
+     * The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE (preview only): Cloud Armor internal service policies can be configured to filter HTTP requests targeting services managed by Traffic Director in a service mesh. They filter requests before the request is served from the application. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be configured to filter packets targeting network load balancing resources such as backend services, target pools, target instances, and instances with external IPs. They filter requests before the request is served from the application. This field can be set only at resource creation time.
      * Check the Type enum for the list of possible values.
      * 
* @@ -4692,7 +4692,7 @@ public Builder setType(java.lang.String value) { * * *
-     * The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE: Cloud Armor internal service policies can be configured to filter HTTP requests targeting services managed by Traffic Director in a service mesh. They filter requests before the request is served from the application. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be configured to filter packets targeting network load balancing resources such as backend services, target pools, target instances, and instances with external IPs. They filter requests before the request is served from the application. This field can be set only at resource creation time.
+     * The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE (preview only): Cloud Armor internal service policies can be configured to filter HTTP requests targeting services managed by Traffic Director in a service mesh. They filter requests before the request is served from the application. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be configured to filter packets targeting network load balancing resources such as backend services, target pools, target instances, and instances with external IPs. They filter requests before the request is served from the application. This field can be set only at resource creation time.
      * Check the Type enum for the list of possible values.
      * 
* @@ -4711,7 +4711,7 @@ public Builder clearType() { * * *
-     * The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE: Cloud Armor internal service policies can be configured to filter HTTP requests targeting services managed by Traffic Director in a service mesh. They filter requests before the request is served from the application. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be configured to filter packets targeting network load balancing resources such as backend services, target pools, target instances, and instances with external IPs. They filter requests before the request is served from the application. This field can be set only at resource creation time.
+     * The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE (preview only): Cloud Armor internal service policies can be configured to filter HTTP requests targeting services managed by Traffic Director in a service mesh. They filter requests before the request is served from the application. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be configured to filter packets targeting network load balancing resources such as backend services, target pools, target instances, and instances with external IPs. They filter requests before the request is served from the application. This field can be set only at resource creation time.
      * Check the Type enum for the list of possible values.
      * 
* diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SecurityPolicyOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SecurityPolicyOrBuilder.java index 655c12ede457..11798eb65b13 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SecurityPolicyOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SecurityPolicyOrBuilder.java @@ -589,7 +589,7 @@ java.lang.String getLabelsOrDefault( * * *
-   * The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE: Cloud Armor internal service policies can be configured to filter HTTP requests targeting services managed by Traffic Director in a service mesh. They filter requests before the request is served from the application. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be configured to filter packets targeting network load balancing resources such as backend services, target pools, target instances, and instances with external IPs. They filter requests before the request is served from the application. This field can be set only at resource creation time.
+   * The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE (preview only): Cloud Armor internal service policies can be configured to filter HTTP requests targeting services managed by Traffic Director in a service mesh. They filter requests before the request is served from the application. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be configured to filter packets targeting network load balancing resources such as backend services, target pools, target instances, and instances with external IPs. They filter requests before the request is served from the application. This field can be set only at resource creation time.
    * Check the Type enum for the list of possible values.
    * 
* @@ -603,7 +603,7 @@ java.lang.String getLabelsOrDefault( * * *
-   * The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE: Cloud Armor internal service policies can be configured to filter HTTP requests targeting services managed by Traffic Director in a service mesh. They filter requests before the request is served from the application. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be configured to filter packets targeting network load balancing resources such as backend services, target pools, target instances, and instances with external IPs. They filter requests before the request is served from the application. This field can be set only at resource creation time.
+   * The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE (preview only): Cloud Armor internal service policies can be configured to filter HTTP requests targeting services managed by Traffic Director in a service mesh. They filter requests before the request is served from the application. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be configured to filter packets targeting network load balancing resources such as backend services, target pools, target instances, and instances with external IPs. They filter requests before the request is served from the application. This field can be set only at resource creation time.
    * Check the Type enum for the list of possible values.
    * 
* @@ -617,7 +617,7 @@ java.lang.String getLabelsOrDefault( * * *
-   * The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE: Cloud Armor internal service policies can be configured to filter HTTP requests targeting services managed by Traffic Director in a service mesh. They filter requests before the request is served from the application. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be configured to filter packets targeting network load balancing resources such as backend services, target pools, target instances, and instances with external IPs. They filter requests before the request is served from the application. This field can be set only at resource creation time.
+   * The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE (preview only): Cloud Armor internal service policies can be configured to filter HTTP requests targeting services managed by Traffic Director in a service mesh. They filter requests before the request is served from the application. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be configured to filter packets targeting network load balancing resources such as backend services, target pools, target instances, and instances with external IPs. They filter requests before the request is served from the application. This field can be set only at resource creation time.
    * Check the Type enum for the list of possible values.
    * 
* diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SecurityPolicyRule.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SecurityPolicyRule.java index dcb4e58fc1b5..25440012cca9 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SecurityPolicyRule.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SecurityPolicyRule.java @@ -76,7 +76,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The Action to perform when the rule is matched. The following are the valid actions: - allow: allow access to target. - deny(STATUS): deny access to target, returns the HTTP response code specified. Valid values for `STATUS` are 403, 404, and 502. - rate_based_ban: limit client traffic to the configured threshold and ban the client if the traffic exceeds the threshold. Configure parameters for this action in RateLimitOptions. Requires rate_limit_options to be set. - redirect: redirect to a different target. This can either be an internal reCAPTCHA redirect, or an external URL-based redirect via a 302 response. Parameters for this action can be configured via redirectOptions. This action is only supported in Global Security Policies of type CLOUD_ARMOR. - throttle: limit client traffic to the configured threshold. Configure parameters for this action in rateLimitOptions. Requires rate_limit_options to be set for this.
+   * The Action to perform when the rule is matched. The following are the valid actions: - allow: allow access to target. - deny(STATUS): deny access to target, returns the HTTP response code specified. Valid values for `STATUS` are 403, 404, and 502. - rate_based_ban: limit client traffic to the configured threshold and ban the client if the traffic exceeds the threshold. Configure parameters for this action in RateLimitOptions. Requires rate_limit_options to be set. - redirect: redirect to a different target. This can either be an internal reCAPTCHA redirect, or an external URL-based redirect via a 302 response. Parameters for this action can be configured via redirectOptions. This action is only supported in Global Security Policies of type CLOUD_ARMOR. - throttle: limit client traffic to the configured threshold. Configure parameters for this action in rateLimitOptions. Requires rate_limit_options to be set for this. - fairshare (preview only): when traffic reaches the threshold limit, requests from the clients matching this rule begin to be rate-limited using the Fair Share algorithm. This action is only allowed in security policies of type `CLOUD_ARMOR_INTERNAL_SERVICE`.
    * 
* * optional string action = 187661878; @@ -92,7 +92,7 @@ public boolean hasAction() { * * *
-   * The Action to perform when the rule is matched. The following are the valid actions: - allow: allow access to target. - deny(STATUS): deny access to target, returns the HTTP response code specified. Valid values for `STATUS` are 403, 404, and 502. - rate_based_ban: limit client traffic to the configured threshold and ban the client if the traffic exceeds the threshold. Configure parameters for this action in RateLimitOptions. Requires rate_limit_options to be set. - redirect: redirect to a different target. This can either be an internal reCAPTCHA redirect, or an external URL-based redirect via a 302 response. Parameters for this action can be configured via redirectOptions. This action is only supported in Global Security Policies of type CLOUD_ARMOR. - throttle: limit client traffic to the configured threshold. Configure parameters for this action in rateLimitOptions. Requires rate_limit_options to be set for this.
+   * The Action to perform when the rule is matched. The following are the valid actions: - allow: allow access to target. - deny(STATUS): deny access to target, returns the HTTP response code specified. Valid values for `STATUS` are 403, 404, and 502. - rate_based_ban: limit client traffic to the configured threshold and ban the client if the traffic exceeds the threshold. Configure parameters for this action in RateLimitOptions. Requires rate_limit_options to be set. - redirect: redirect to a different target. This can either be an internal reCAPTCHA redirect, or an external URL-based redirect via a 302 response. Parameters for this action can be configured via redirectOptions. This action is only supported in Global Security Policies of type CLOUD_ARMOR. - throttle: limit client traffic to the configured threshold. Configure parameters for this action in rateLimitOptions. Requires rate_limit_options to be set for this. - fairshare (preview only): when traffic reaches the threshold limit, requests from the clients matching this rule begin to be rate-limited using the Fair Share algorithm. This action is only allowed in security policies of type `CLOUD_ARMOR_INTERNAL_SERVICE`.
    * 
* * optional string action = 187661878; @@ -116,7 +116,7 @@ public java.lang.String getAction() { * * *
-   * The Action to perform when the rule is matched. The following are the valid actions: - allow: allow access to target. - deny(STATUS): deny access to target, returns the HTTP response code specified. Valid values for `STATUS` are 403, 404, and 502. - rate_based_ban: limit client traffic to the configured threshold and ban the client if the traffic exceeds the threshold. Configure parameters for this action in RateLimitOptions. Requires rate_limit_options to be set. - redirect: redirect to a different target. This can either be an internal reCAPTCHA redirect, or an external URL-based redirect via a 302 response. Parameters for this action can be configured via redirectOptions. This action is only supported in Global Security Policies of type CLOUD_ARMOR. - throttle: limit client traffic to the configured threshold. Configure parameters for this action in rateLimitOptions. Requires rate_limit_options to be set for this.
+   * The Action to perform when the rule is matched. The following are the valid actions: - allow: allow access to target. - deny(STATUS): deny access to target, returns the HTTP response code specified. Valid values for `STATUS` are 403, 404, and 502. - rate_based_ban: limit client traffic to the configured threshold and ban the client if the traffic exceeds the threshold. Configure parameters for this action in RateLimitOptions. Requires rate_limit_options to be set. - redirect: redirect to a different target. This can either be an internal reCAPTCHA redirect, or an external URL-based redirect via a 302 response. Parameters for this action can be configured via redirectOptions. This action is only supported in Global Security Policies of type CLOUD_ARMOR. - throttle: limit client traffic to the configured threshold. Configure parameters for this action in rateLimitOptions. Requires rate_limit_options to be set for this. - fairshare (preview only): when traffic reaches the threshold limit, requests from the clients matching this rule begin to be rate-limited using the Fair Share algorithm. This action is only allowed in security policies of type `CLOUD_ARMOR_INTERNAL_SERVICE`.
    * 
* * optional string action = 187661878; @@ -586,7 +586,7 @@ public int getPriority() { * * *
-   * Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions.
+   * Must be specified if the action is "rate_based_ban" or "throttle" or "fairshare". Cannot be specified for any other actions.
    * 
* * @@ -604,7 +604,7 @@ public boolean hasRateLimitOptions() { * * *
-   * Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions.
+   * Must be specified if the action is "rate_based_ban" or "throttle" or "fairshare". Cannot be specified for any other actions.
    * 
* * @@ -624,7 +624,7 @@ public com.google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions getRateLim * * *
-   * Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions.
+   * Must be specified if the action is "rate_based_ban" or "throttle" or "fairshare". Cannot be specified for any other actions.
    * 
* * @@ -1392,7 +1392,7 @@ public Builder mergeFrom( * * *
-     * The Action to perform when the rule is matched. The following are the valid actions: - allow: allow access to target. - deny(STATUS): deny access to target, returns the HTTP response code specified. Valid values for `STATUS` are 403, 404, and 502. - rate_based_ban: limit client traffic to the configured threshold and ban the client if the traffic exceeds the threshold. Configure parameters for this action in RateLimitOptions. Requires rate_limit_options to be set. - redirect: redirect to a different target. This can either be an internal reCAPTCHA redirect, or an external URL-based redirect via a 302 response. Parameters for this action can be configured via redirectOptions. This action is only supported in Global Security Policies of type CLOUD_ARMOR. - throttle: limit client traffic to the configured threshold. Configure parameters for this action in rateLimitOptions. Requires rate_limit_options to be set for this.
+     * The Action to perform when the rule is matched. The following are the valid actions: - allow: allow access to target. - deny(STATUS): deny access to target, returns the HTTP response code specified. Valid values for `STATUS` are 403, 404, and 502. - rate_based_ban: limit client traffic to the configured threshold and ban the client if the traffic exceeds the threshold. Configure parameters for this action in RateLimitOptions. Requires rate_limit_options to be set. - redirect: redirect to a different target. This can either be an internal reCAPTCHA redirect, or an external URL-based redirect via a 302 response. Parameters for this action can be configured via redirectOptions. This action is only supported in Global Security Policies of type CLOUD_ARMOR. - throttle: limit client traffic to the configured threshold. Configure parameters for this action in rateLimitOptions. Requires rate_limit_options to be set for this. - fairshare (preview only): when traffic reaches the threshold limit, requests from the clients matching this rule begin to be rate-limited using the Fair Share algorithm. This action is only allowed in security policies of type `CLOUD_ARMOR_INTERNAL_SERVICE`.
      * 
* * optional string action = 187661878; @@ -1407,7 +1407,7 @@ public boolean hasAction() { * * *
-     * The Action to perform when the rule is matched. The following are the valid actions: - allow: allow access to target. - deny(STATUS): deny access to target, returns the HTTP response code specified. Valid values for `STATUS` are 403, 404, and 502. - rate_based_ban: limit client traffic to the configured threshold and ban the client if the traffic exceeds the threshold. Configure parameters for this action in RateLimitOptions. Requires rate_limit_options to be set. - redirect: redirect to a different target. This can either be an internal reCAPTCHA redirect, or an external URL-based redirect via a 302 response. Parameters for this action can be configured via redirectOptions. This action is only supported in Global Security Policies of type CLOUD_ARMOR. - throttle: limit client traffic to the configured threshold. Configure parameters for this action in rateLimitOptions. Requires rate_limit_options to be set for this.
+     * The Action to perform when the rule is matched. The following are the valid actions: - allow: allow access to target. - deny(STATUS): deny access to target, returns the HTTP response code specified. Valid values for `STATUS` are 403, 404, and 502. - rate_based_ban: limit client traffic to the configured threshold and ban the client if the traffic exceeds the threshold. Configure parameters for this action in RateLimitOptions. Requires rate_limit_options to be set. - redirect: redirect to a different target. This can either be an internal reCAPTCHA redirect, or an external URL-based redirect via a 302 response. Parameters for this action can be configured via redirectOptions. This action is only supported in Global Security Policies of type CLOUD_ARMOR. - throttle: limit client traffic to the configured threshold. Configure parameters for this action in rateLimitOptions. Requires rate_limit_options to be set for this. - fairshare (preview only): when traffic reaches the threshold limit, requests from the clients matching this rule begin to be rate-limited using the Fair Share algorithm. This action is only allowed in security policies of type `CLOUD_ARMOR_INTERNAL_SERVICE`.
      * 
* * optional string action = 187661878; @@ -1430,7 +1430,7 @@ public java.lang.String getAction() { * * *
-     * The Action to perform when the rule is matched. The following are the valid actions: - allow: allow access to target. - deny(STATUS): deny access to target, returns the HTTP response code specified. Valid values for `STATUS` are 403, 404, and 502. - rate_based_ban: limit client traffic to the configured threshold and ban the client if the traffic exceeds the threshold. Configure parameters for this action in RateLimitOptions. Requires rate_limit_options to be set. - redirect: redirect to a different target. This can either be an internal reCAPTCHA redirect, or an external URL-based redirect via a 302 response. Parameters for this action can be configured via redirectOptions. This action is only supported in Global Security Policies of type CLOUD_ARMOR. - throttle: limit client traffic to the configured threshold. Configure parameters for this action in rateLimitOptions. Requires rate_limit_options to be set for this.
+     * The Action to perform when the rule is matched. The following are the valid actions: - allow: allow access to target. - deny(STATUS): deny access to target, returns the HTTP response code specified. Valid values for `STATUS` are 403, 404, and 502. - rate_based_ban: limit client traffic to the configured threshold and ban the client if the traffic exceeds the threshold. Configure parameters for this action in RateLimitOptions. Requires rate_limit_options to be set. - redirect: redirect to a different target. This can either be an internal reCAPTCHA redirect, or an external URL-based redirect via a 302 response. Parameters for this action can be configured via redirectOptions. This action is only supported in Global Security Policies of type CLOUD_ARMOR. - throttle: limit client traffic to the configured threshold. Configure parameters for this action in rateLimitOptions. Requires rate_limit_options to be set for this. - fairshare (preview only): when traffic reaches the threshold limit, requests from the clients matching this rule begin to be rate-limited using the Fair Share algorithm. This action is only allowed in security policies of type `CLOUD_ARMOR_INTERNAL_SERVICE`.
      * 
* * optional string action = 187661878; @@ -1453,7 +1453,7 @@ public com.google.protobuf.ByteString getActionBytes() { * * *
-     * The Action to perform when the rule is matched. The following are the valid actions: - allow: allow access to target. - deny(STATUS): deny access to target, returns the HTTP response code specified. Valid values for `STATUS` are 403, 404, and 502. - rate_based_ban: limit client traffic to the configured threshold and ban the client if the traffic exceeds the threshold. Configure parameters for this action in RateLimitOptions. Requires rate_limit_options to be set. - redirect: redirect to a different target. This can either be an internal reCAPTCHA redirect, or an external URL-based redirect via a 302 response. Parameters for this action can be configured via redirectOptions. This action is only supported in Global Security Policies of type CLOUD_ARMOR. - throttle: limit client traffic to the configured threshold. Configure parameters for this action in rateLimitOptions. Requires rate_limit_options to be set for this.
+     * The Action to perform when the rule is matched. The following are the valid actions: - allow: allow access to target. - deny(STATUS): deny access to target, returns the HTTP response code specified. Valid values for `STATUS` are 403, 404, and 502. - rate_based_ban: limit client traffic to the configured threshold and ban the client if the traffic exceeds the threshold. Configure parameters for this action in RateLimitOptions. Requires rate_limit_options to be set. - redirect: redirect to a different target. This can either be an internal reCAPTCHA redirect, or an external URL-based redirect via a 302 response. Parameters for this action can be configured via redirectOptions. This action is only supported in Global Security Policies of type CLOUD_ARMOR. - throttle: limit client traffic to the configured threshold. Configure parameters for this action in rateLimitOptions. Requires rate_limit_options to be set for this. - fairshare (preview only): when traffic reaches the threshold limit, requests from the clients matching this rule begin to be rate-limited using the Fair Share algorithm. This action is only allowed in security policies of type `CLOUD_ARMOR_INTERNAL_SERVICE`.
      * 
* * optional string action = 187661878; @@ -1475,7 +1475,7 @@ public Builder setAction(java.lang.String value) { * * *
-     * The Action to perform when the rule is matched. The following are the valid actions: - allow: allow access to target. - deny(STATUS): deny access to target, returns the HTTP response code specified. Valid values for `STATUS` are 403, 404, and 502. - rate_based_ban: limit client traffic to the configured threshold and ban the client if the traffic exceeds the threshold. Configure parameters for this action in RateLimitOptions. Requires rate_limit_options to be set. - redirect: redirect to a different target. This can either be an internal reCAPTCHA redirect, or an external URL-based redirect via a 302 response. Parameters for this action can be configured via redirectOptions. This action is only supported in Global Security Policies of type CLOUD_ARMOR. - throttle: limit client traffic to the configured threshold. Configure parameters for this action in rateLimitOptions. Requires rate_limit_options to be set for this.
+     * The Action to perform when the rule is matched. The following are the valid actions: - allow: allow access to target. - deny(STATUS): deny access to target, returns the HTTP response code specified. Valid values for `STATUS` are 403, 404, and 502. - rate_based_ban: limit client traffic to the configured threshold and ban the client if the traffic exceeds the threshold. Configure parameters for this action in RateLimitOptions. Requires rate_limit_options to be set. - redirect: redirect to a different target. This can either be an internal reCAPTCHA redirect, or an external URL-based redirect via a 302 response. Parameters for this action can be configured via redirectOptions. This action is only supported in Global Security Policies of type CLOUD_ARMOR. - throttle: limit client traffic to the configured threshold. Configure parameters for this action in rateLimitOptions. Requires rate_limit_options to be set for this. - fairshare (preview only): when traffic reaches the threshold limit, requests from the clients matching this rule begin to be rate-limited using the Fair Share algorithm. This action is only allowed in security policies of type `CLOUD_ARMOR_INTERNAL_SERVICE`.
      * 
* * optional string action = 187661878; @@ -1493,7 +1493,7 @@ public Builder clearAction() { * * *
-     * The Action to perform when the rule is matched. The following are the valid actions: - allow: allow access to target. - deny(STATUS): deny access to target, returns the HTTP response code specified. Valid values for `STATUS` are 403, 404, and 502. - rate_based_ban: limit client traffic to the configured threshold and ban the client if the traffic exceeds the threshold. Configure parameters for this action in RateLimitOptions. Requires rate_limit_options to be set. - redirect: redirect to a different target. This can either be an internal reCAPTCHA redirect, or an external URL-based redirect via a 302 response. Parameters for this action can be configured via redirectOptions. This action is only supported in Global Security Policies of type CLOUD_ARMOR. - throttle: limit client traffic to the configured threshold. Configure parameters for this action in rateLimitOptions. Requires rate_limit_options to be set for this.
+     * The Action to perform when the rule is matched. The following are the valid actions: - allow: allow access to target. - deny(STATUS): deny access to target, returns the HTTP response code specified. Valid values for `STATUS` are 403, 404, and 502. - rate_based_ban: limit client traffic to the configured threshold and ban the client if the traffic exceeds the threshold. Configure parameters for this action in RateLimitOptions. Requires rate_limit_options to be set. - redirect: redirect to a different target. This can either be an internal reCAPTCHA redirect, or an external URL-based redirect via a 302 response. Parameters for this action can be configured via redirectOptions. This action is only supported in Global Security Policies of type CLOUD_ARMOR. - throttle: limit client traffic to the configured threshold. Configure parameters for this action in rateLimitOptions. Requires rate_limit_options to be set for this. - fairshare (preview only): when traffic reaches the threshold limit, requests from the clients matching this rule begin to be rate-limited using the Fair Share algorithm. This action is only allowed in security policies of type `CLOUD_ARMOR_INTERNAL_SERVICE`.
      * 
* * optional string action = 187661878; @@ -2777,7 +2777,7 @@ public Builder clearPriority() { * * *
-     * Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions.
+     * Must be specified if the action is "rate_based_ban" or "throttle" or "fairshare". Cannot be specified for any other actions.
      * 
* * @@ -2794,7 +2794,7 @@ public boolean hasRateLimitOptions() { * * *
-     * Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions.
+     * Must be specified if the action is "rate_based_ban" or "throttle" or "fairshare". Cannot be specified for any other actions.
      * 
* * @@ -2817,7 +2817,7 @@ public com.google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions getRateLim * * *
-     * Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions.
+     * Must be specified if the action is "rate_based_ban" or "throttle" or "fairshare". Cannot be specified for any other actions.
      * 
* * @@ -2843,7 +2843,7 @@ public Builder setRateLimitOptions( * * *
-     * Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions.
+     * Must be specified if the action is "rate_based_ban" or "throttle" or "fairshare". Cannot be specified for any other actions.
      * 
* * @@ -2866,7 +2866,7 @@ public Builder setRateLimitOptions( * * *
-     * Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions.
+     * Must be specified if the action is "rate_based_ban" or "throttle" or "fairshare". Cannot be specified for any other actions.
      * 
* * @@ -2899,7 +2899,7 @@ public Builder mergeRateLimitOptions( * * *
-     * Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions.
+     * Must be specified if the action is "rate_based_ban" or "throttle" or "fairshare". Cannot be specified for any other actions.
      * 
* * @@ -2921,7 +2921,7 @@ public Builder clearRateLimitOptions() { * * *
-     * Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions.
+     * Must be specified if the action is "rate_based_ban" or "throttle" or "fairshare". Cannot be specified for any other actions.
      * 
* * @@ -2939,7 +2939,7 @@ public Builder clearRateLimitOptions() { * * *
-     * Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions.
+     * Must be specified if the action is "rate_based_ban" or "throttle" or "fairshare". Cannot be specified for any other actions.
      * 
* * @@ -2961,7 +2961,7 @@ public Builder clearRateLimitOptions() { * * *
-     * Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions.
+     * Must be specified if the action is "rate_based_ban" or "throttle" or "fairshare". Cannot be specified for any other actions.
      * 
* * diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SecurityPolicyRuleOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SecurityPolicyRuleOrBuilder.java index 6662f5ebafc8..182b8546e848 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SecurityPolicyRuleOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SecurityPolicyRuleOrBuilder.java @@ -28,7 +28,7 @@ public interface SecurityPolicyRuleOrBuilder * * *
-   * The Action to perform when the rule is matched. The following are the valid actions: - allow: allow access to target. - deny(STATUS): deny access to target, returns the HTTP response code specified. Valid values for `STATUS` are 403, 404, and 502. - rate_based_ban: limit client traffic to the configured threshold and ban the client if the traffic exceeds the threshold. Configure parameters for this action in RateLimitOptions. Requires rate_limit_options to be set. - redirect: redirect to a different target. This can either be an internal reCAPTCHA redirect, or an external URL-based redirect via a 302 response. Parameters for this action can be configured via redirectOptions. This action is only supported in Global Security Policies of type CLOUD_ARMOR. - throttle: limit client traffic to the configured threshold. Configure parameters for this action in rateLimitOptions. Requires rate_limit_options to be set for this.
+   * The Action to perform when the rule is matched. The following are the valid actions: - allow: allow access to target. - deny(STATUS): deny access to target, returns the HTTP response code specified. Valid values for `STATUS` are 403, 404, and 502. - rate_based_ban: limit client traffic to the configured threshold and ban the client if the traffic exceeds the threshold. Configure parameters for this action in RateLimitOptions. Requires rate_limit_options to be set. - redirect: redirect to a different target. This can either be an internal reCAPTCHA redirect, or an external URL-based redirect via a 302 response. Parameters for this action can be configured via redirectOptions. This action is only supported in Global Security Policies of type CLOUD_ARMOR. - throttle: limit client traffic to the configured threshold. Configure parameters for this action in rateLimitOptions. Requires rate_limit_options to be set for this. - fairshare (preview only): when traffic reaches the threshold limit, requests from the clients matching this rule begin to be rate-limited using the Fair Share algorithm. This action is only allowed in security policies of type `CLOUD_ARMOR_INTERNAL_SERVICE`.
    * 
* * optional string action = 187661878; @@ -41,7 +41,7 @@ public interface SecurityPolicyRuleOrBuilder * * *
-   * The Action to perform when the rule is matched. The following are the valid actions: - allow: allow access to target. - deny(STATUS): deny access to target, returns the HTTP response code specified. Valid values for `STATUS` are 403, 404, and 502. - rate_based_ban: limit client traffic to the configured threshold and ban the client if the traffic exceeds the threshold. Configure parameters for this action in RateLimitOptions. Requires rate_limit_options to be set. - redirect: redirect to a different target. This can either be an internal reCAPTCHA redirect, or an external URL-based redirect via a 302 response. Parameters for this action can be configured via redirectOptions. This action is only supported in Global Security Policies of type CLOUD_ARMOR. - throttle: limit client traffic to the configured threshold. Configure parameters for this action in rateLimitOptions. Requires rate_limit_options to be set for this.
+   * The Action to perform when the rule is matched. The following are the valid actions: - allow: allow access to target. - deny(STATUS): deny access to target, returns the HTTP response code specified. Valid values for `STATUS` are 403, 404, and 502. - rate_based_ban: limit client traffic to the configured threshold and ban the client if the traffic exceeds the threshold. Configure parameters for this action in RateLimitOptions. Requires rate_limit_options to be set. - redirect: redirect to a different target. This can either be an internal reCAPTCHA redirect, or an external URL-based redirect via a 302 response. Parameters for this action can be configured via redirectOptions. This action is only supported in Global Security Policies of type CLOUD_ARMOR. - throttle: limit client traffic to the configured threshold. Configure parameters for this action in rateLimitOptions. Requires rate_limit_options to be set for this. - fairshare (preview only): when traffic reaches the threshold limit, requests from the clients matching this rule begin to be rate-limited using the Fair Share algorithm. This action is only allowed in security policies of type `CLOUD_ARMOR_INTERNAL_SERVICE`.
    * 
* * optional string action = 187661878; @@ -54,7 +54,7 @@ public interface SecurityPolicyRuleOrBuilder * * *
-   * The Action to perform when the rule is matched. The following are the valid actions: - allow: allow access to target. - deny(STATUS): deny access to target, returns the HTTP response code specified. Valid values for `STATUS` are 403, 404, and 502. - rate_based_ban: limit client traffic to the configured threshold and ban the client if the traffic exceeds the threshold. Configure parameters for this action in RateLimitOptions. Requires rate_limit_options to be set. - redirect: redirect to a different target. This can either be an internal reCAPTCHA redirect, or an external URL-based redirect via a 302 response. Parameters for this action can be configured via redirectOptions. This action is only supported in Global Security Policies of type CLOUD_ARMOR. - throttle: limit client traffic to the configured threshold. Configure parameters for this action in rateLimitOptions. Requires rate_limit_options to be set for this.
+   * The Action to perform when the rule is matched. The following are the valid actions: - allow: allow access to target. - deny(STATUS): deny access to target, returns the HTTP response code specified. Valid values for `STATUS` are 403, 404, and 502. - rate_based_ban: limit client traffic to the configured threshold and ban the client if the traffic exceeds the threshold. Configure parameters for this action in RateLimitOptions. Requires rate_limit_options to be set. - redirect: redirect to a different target. This can either be an internal reCAPTCHA redirect, or an external URL-based redirect via a 302 response. Parameters for this action can be configured via redirectOptions. This action is only supported in Global Security Policies of type CLOUD_ARMOR. - throttle: limit client traffic to the configured threshold. Configure parameters for this action in rateLimitOptions. Requires rate_limit_options to be set for this. - fairshare (preview only): when traffic reaches the threshold limit, requests from the clients matching this rule begin to be rate-limited using the Fair Share algorithm. This action is only allowed in security policies of type `CLOUD_ARMOR_INTERNAL_SERVICE`.
    * 
* * optional string action = 187661878; @@ -365,7 +365,7 @@ public interface SecurityPolicyRuleOrBuilder * * *
-   * Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions.
+   * Must be specified if the action is "rate_based_ban" or "throttle" or "fairshare". Cannot be specified for any other actions.
    * 
* * @@ -380,7 +380,7 @@ public interface SecurityPolicyRuleOrBuilder * * *
-   * Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions.
+   * Must be specified if the action is "rate_based_ban" or "throttle" or "fairshare". Cannot be specified for any other actions.
    * 
* * @@ -395,7 +395,7 @@ public interface SecurityPolicyRuleOrBuilder * * *
-   * Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions.
+   * Must be specified if the action is "rate_based_ban" or "throttle" or "fairshare". Cannot be specified for any other actions.
    * 
* * diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SecurityPolicyRuleRateLimitOptions.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SecurityPolicyRuleRateLimitOptions.java index 68b26e7d1f1a..29be714dc152 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SecurityPolicyRuleRateLimitOptions.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SecurityPolicyRuleRateLimitOptions.java @@ -72,7 +72,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL.
+   * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. For "fairshare" action, this value is limited to ALL i.e. a single rate limit threshold is enforced for all the requests matching the rule.
    * 
* * Protobuf enum {@code google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions.EnforceOnKey} @@ -436,7 +436,7 @@ public com.google.protobuf.ByteString getConformActionBytes() { * * *
-   * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL.
+   * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. For "fairshare" action, this value is limited to ALL i.e. a single rate limit threshold is enforced for all the requests matching the rule.
    * Check the EnforceOnKey enum for the list of possible values.
    * 
* @@ -453,7 +453,7 @@ public boolean hasEnforceOnKey() { * * *
-   * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL.
+   * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. For "fairshare" action, this value is limited to ALL i.e. a single rate limit threshold is enforced for all the requests matching the rule.
    * Check the EnforceOnKey enum for the list of possible values.
    * 
* @@ -478,7 +478,7 @@ public java.lang.String getEnforceOnKey() { * * *
-   * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL.
+   * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. For "fairshare" action, this value is limited to ALL i.e. a single rate limit threshold is enforced for all the requests matching the rule.
    * Check the EnforceOnKey enum for the list of possible values.
    * 
* @@ -1954,7 +1954,7 @@ public Builder setConformActionBytes(com.google.protobuf.ByteString value) { * * *
-     * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL.
+     * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. For "fairshare" action, this value is limited to ALL i.e. a single rate limit threshold is enforced for all the requests matching the rule.
      * Check the EnforceOnKey enum for the list of possible values.
      * 
* @@ -1970,7 +1970,7 @@ public boolean hasEnforceOnKey() { * * *
-     * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL.
+     * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. For "fairshare" action, this value is limited to ALL i.e. a single rate limit threshold is enforced for all the requests matching the rule.
      * Check the EnforceOnKey enum for the list of possible values.
      * 
* @@ -1994,7 +1994,7 @@ public java.lang.String getEnforceOnKey() { * * *
-     * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL.
+     * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. For "fairshare" action, this value is limited to ALL i.e. a single rate limit threshold is enforced for all the requests matching the rule.
      * Check the EnforceOnKey enum for the list of possible values.
      * 
* @@ -2018,7 +2018,7 @@ public com.google.protobuf.ByteString getEnforceOnKeyBytes() { * * *
-     * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL.
+     * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. For "fairshare" action, this value is limited to ALL i.e. a single rate limit threshold is enforced for all the requests matching the rule.
      * Check the EnforceOnKey enum for the list of possible values.
      * 
* @@ -2041,7 +2041,7 @@ public Builder setEnforceOnKey(java.lang.String value) { * * *
-     * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL.
+     * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. For "fairshare" action, this value is limited to ALL i.e. a single rate limit threshold is enforced for all the requests matching the rule.
      * Check the EnforceOnKey enum for the list of possible values.
      * 
* @@ -2060,7 +2060,7 @@ public Builder clearEnforceOnKey() { * * *
-     * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL.
+     * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. For "fairshare" action, this value is limited to ALL i.e. a single rate limit threshold is enforced for all the requests matching the rule.
      * Check the EnforceOnKey enum for the list of possible values.
      * 
* diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SecurityPolicyRuleRateLimitOptionsOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SecurityPolicyRuleRateLimitOptionsOrBuilder.java index eb36ccec1798..c98d4400327f 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SecurityPolicyRuleRateLimitOptionsOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/SecurityPolicyRuleRateLimitOptionsOrBuilder.java @@ -137,7 +137,7 @@ public interface SecurityPolicyRuleRateLimitOptionsOrBuilder * * *
-   * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL.
+   * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. For "fairshare" action, this value is limited to ALL i.e. a single rate limit threshold is enforced for all the requests matching the rule.
    * Check the EnforceOnKey enum for the list of possible values.
    * 
* @@ -151,7 +151,7 @@ public interface SecurityPolicyRuleRateLimitOptionsOrBuilder * * *
-   * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL.
+   * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. For "fairshare" action, this value is limited to ALL i.e. a single rate limit threshold is enforced for all the requests matching the rule.
    * Check the EnforceOnKey enum for the list of possible values.
    * 
* @@ -165,7 +165,7 @@ public interface SecurityPolicyRuleRateLimitOptionsOrBuilder * * *
-   * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL.
+   * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. For "fairshare" action, this value is limited to ALL i.e. a single rate limit threshold is enforced for all the requests matching the rule.
    * Check the EnforceOnKey enum for the list of possible values.
    * 
* diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/proto/google/cloud/compute/v1/compute.proto b/java-compute/proto-google-cloud-compute-v1/src/main/proto/google/cloud/compute/v1/compute.proto index e5e77bd165dd..85ad90dd2686 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/proto/google/cloud/compute/v1/compute.proto +++ b/java-compute/proto-google-cloud-compute-v1/src/main/proto/google/cloud/compute/v1/compute.proto @@ -14,7 +14,7 @@ // Generated by the disco-to-proto3-converter. DO NOT EDIT! // Source Discovery file: compute.v1.json -// Source file revision: 20250807 +// Source file revision: 20250810 // API name: compute // API version: v1 @@ -3693,6 +3693,9 @@ message BackendService { // This is a simple policy in which each healthy backend is selected in round robin order. This is the default. ROUND_ROBIN = 153895801; + // Per-instance weighted Load Balancing via health check reported weights. In internal passthrough network load balancing, it is weighted rendezvous hashing. This option is only supported in internal passthrough network load balancing. + WEIGHTED_GCP_RENDEZVOUS = 82501640; + // Per-instance weighted Load Balancing via health check reported weights. If set, the Backend Service must configure a non legacy HTTP-based Health Check, and health check replies are expected to contain non-standard HTTP response header field X-Load-Balancing-Endpoint-Weight to specify the per-instance weights. If set, Load Balancing is weighted based on the per-instance weights reported in the last processed health check replies, as long as every instance either reported a valid weight or had UNAVAILABLE_WEIGHT. Otherwise, Load Balancing remains equal-weight. This option is only supported in Network Load Balancing. WEIGHTED_MAGLEV = 254930962; @@ -4263,6 +4266,9 @@ message BackendServiceLocalityLoadBalancingPolicyConfigPolicy { // This is a simple policy in which each healthy backend is selected in round robin order. This is the default. ROUND_ROBIN = 153895801; + // Per-instance weighted Load Balancing via health check reported weights. In internal passthrough network load balancing, it is weighted rendezvous hashing. This option is only supported in internal passthrough network load balancing. + WEIGHTED_GCP_RENDEZVOUS = 82501640; + // Per-instance weighted Load Balancing via health check reported weights. If set, the Backend Service must configure a non legacy HTTP-based Health Check, and health check replies are expected to contain non-standard HTTP response header field X-Load-Balancing-Endpoint-Weight to specify the per-instance weights. If set, Load Balancing is weighted based on the per-instance weights reported in the last processed health check replies, as long as every instance either reported a valid weight or had UNAVAILABLE_WEIGHT. Otherwise, Load Balancing remains equal-weight. This option is only supported in Network Load Balancing. WEIGHTED_MAGLEV = 254930962; @@ -29556,6 +29562,9 @@ message ResourcePolicyWorkloadPolicy { // Contains output only fields. Use this sub-message for actual values set on Instance attributes as compared to the value requested by the user (intent) in their instance CRUD calls. message ResourceStatus { + // [Output Only] Effective metadata is a field that consolidates project, zonal instance settings, and instance-level predefined metadata keys to provide the overridden value for those metadata keys at the instance level. + optional ResourceStatusEffectiveInstanceMetadata effective_instance_metadata = 55052033; + // [Output Only] The precise location of your instance within the zone's data center, including the block, sub-block, and host. The field is formatted as follows: blockId/subBlockId/hostId. optional string physical_host = 464370704; @@ -29568,6 +29577,34 @@ message ResourceStatus { } +// Effective values of predefined metadata keys for an instance. +message ResourceStatusEffectiveInstanceMetadata { + // Effective block-project-ssh-keys value at Instance level. + optional bool block_project_ssh_keys_metadata_value = 338623101; + + // Effective enable-guest-attributes value at Instance level. + optional bool enable_guest_attributes_metadata_value = 420155878; + + // Effective enable-os-inventory value at Instance level. + optional bool enable_os_inventory_metadata_value = 371752675; + + // Effective enable-osconfig value at Instance level. + optional bool enable_osconfig_metadata_value = 502966494; + + // Effective enable-oslogin value at Instance level. + optional bool enable_oslogin_metadata_value = 216603159; + + // Effective serial-port-enable value at Instance level. + optional bool serial_port_enable_metadata_value = 430536330; + + // Effective serial-port-logging-enable value at Instance level. + optional bool serial_port_logging_enable_metadata_value = 311813290; + + // Effective VM DNS setting at Instance level. + optional string vm_dns_setting_metadata_value = 411127950; + +} + // Represents the physical host topology of the host on which the VM is running. message ResourceStatusPhysicalHostTopology { // [Output Only] The ID of the block in which the running instance is located. Instances within the same block experience low network latency. @@ -31207,7 +31244,7 @@ message SecurityPoliciesWafConfig { // Represents a Google Cloud Armor security policy resource. Only external backend services that use load balancers can reference a security policy. For more information, see Google Cloud Armor security policy overview. message SecurityPolicy { - // The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE: Cloud Armor internal service policies can be configured to filter HTTP requests targeting services managed by Traffic Director in a service mesh. They filter requests before the request is served from the application. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be configured to filter packets targeting network load balancing resources such as backend services, target pools, target instances, and instances with external IPs. They filter requests before the request is served from the application. This field can be set only at resource creation time. + // The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE (preview only): Cloud Armor internal service policies can be configured to filter HTTP requests targeting services managed by Traffic Director in a service mesh. They filter requests before the request is served from the application. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be configured to filter packets targeting network load balancing resources such as backend services, target pools, target instances, and instances with external IPs. They filter requests before the request is served from the application. This field can be set only at resource creation time. enum Type { // A value indicating that the enum field is not set. UNDEFINED_TYPE = 0; @@ -31261,7 +31298,7 @@ message SecurityPolicy { // [Output Only] Server-defined URL for the resource. optional string self_link = 456214797; - // The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE: Cloud Armor internal service policies can be configured to filter HTTP requests targeting services managed by Traffic Director in a service mesh. They filter requests before the request is served from the application. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be configured to filter packets targeting network load balancing resources such as backend services, target pools, target instances, and instances with external IPs. They filter requests before the request is served from the application. This field can be set only at resource creation time. + // The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE (preview only): Cloud Armor internal service policies can be configured to filter HTTP requests targeting services managed by Traffic Director in a service mesh. They filter requests before the request is served from the application. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be configured to filter packets targeting network load balancing resources such as backend services, target pools, target instances, and instances with external IPs. They filter requests before the request is served from the application. This field can be set only at resource creation time. // Check the Type enum for the list of possible values. optional string type = 3575610; @@ -31457,7 +31494,7 @@ message SecurityPolicyReference { // Represents a rule that describes one or more match conditions along with the action to be taken when traffic matches this condition (allow or deny). message SecurityPolicyRule { - // The Action to perform when the rule is matched. The following are the valid actions: - allow: allow access to target. - deny(STATUS): deny access to target, returns the HTTP response code specified. Valid values for `STATUS` are 403, 404, and 502. - rate_based_ban: limit client traffic to the configured threshold and ban the client if the traffic exceeds the threshold. Configure parameters for this action in RateLimitOptions. Requires rate_limit_options to be set. - redirect: redirect to a different target. This can either be an internal reCAPTCHA redirect, or an external URL-based redirect via a 302 response. Parameters for this action can be configured via redirectOptions. This action is only supported in Global Security Policies of type CLOUD_ARMOR. - throttle: limit client traffic to the configured threshold. Configure parameters for this action in rateLimitOptions. Requires rate_limit_options to be set for this. + // The Action to perform when the rule is matched. The following are the valid actions: - allow: allow access to target. - deny(STATUS): deny access to target, returns the HTTP response code specified. Valid values for `STATUS` are 403, 404, and 502. - rate_based_ban: limit client traffic to the configured threshold and ban the client if the traffic exceeds the threshold. Configure parameters for this action in RateLimitOptions. Requires rate_limit_options to be set. - redirect: redirect to a different target. This can either be an internal reCAPTCHA redirect, or an external URL-based redirect via a 302 response. Parameters for this action can be configured via redirectOptions. This action is only supported in Global Security Policies of type CLOUD_ARMOR. - throttle: limit client traffic to the configured threshold. Configure parameters for this action in rateLimitOptions. Requires rate_limit_options to be set for this. - fairshare (preview only): when traffic reaches the threshold limit, requests from the clients matching this rule begin to be rate-limited using the Fair Share algorithm. This action is only allowed in security policies of type `CLOUD_ARMOR_INTERNAL_SERVICE`. optional string action = 187661878; // An optional description of this resource. Provide this property when you create the resource. @@ -31484,7 +31521,7 @@ message SecurityPolicyRule { // An integer indicating the priority of a rule in the list. The priority must be a positive value between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the highest priority and 2147483647 is the lowest priority. optional int32 priority = 445151652; - // Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions. + // Must be specified if the action is "rate_based_ban" or "throttle" or "fairshare". Cannot be specified for any other actions. optional SecurityPolicyRuleRateLimitOptions rate_limit_options = 67544315; // Parameters defining the redirect action. Cannot be specified for any other actions. This field is only supported in Global Security Policies of type CLOUD_ARMOR. @@ -31662,7 +31699,7 @@ message SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams { // message SecurityPolicyRuleRateLimitOptions { - // Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. + // Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. For "fairshare" action, this value is limited to ALL i.e. a single rate limit threshold is enforced for all the requests matching the rule. enum EnforceOnKey { // A value indicating that the enum field is not set. UNDEFINED_ENFORCE_ON_KEY = 0; @@ -31700,7 +31737,7 @@ message SecurityPolicyRuleRateLimitOptions { // Action to take for requests that are under the configured rate limit threshold. Valid option is "allow" only. optional string conform_action = 517612367; - // Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. + // Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. For "fairshare" action, this value is limited to ALL i.e. a single rate limit threshold is enforced for all the requests matching the rule. // Check the EnforceOnKey enum for the list of possible values. optional string enforce_on_key = 416648956; diff --git a/java-confidentialcomputing/README.md b/java-confidentialcomputing/README.md index 420625825782..00eb65a012fd 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.66.0 + 26.67.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.58.0 + 0.59.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-confidentialcomputing:0.58.0' +implementation 'com.google.cloud:google-cloud-confidentialcomputing:0.59.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-confidentialcomputing" % "0.58.0" +libraryDependencies += "com.google.cloud" % "google-cloud-confidentialcomputing" % "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-confidentialcomputing.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-confidentialcomputing/0.58.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-confidentialcomputing/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-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClient.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClient.java index 99b5f60edb2e..eafe8d44890a 100644 --- a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClient.java +++ b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClient.java @@ -89,7 +89,7 @@ * * *

VerifyAttestation - *

Verifies the provided attestation info, returning a signed OIDC token. + *

Verifies the provided attestation info, returning a signed attestation token. * *

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

*
    @@ -102,6 +102,34 @@ * * * + *

    VerifyConfidentialSpace + *

    Verifies whether the provided attestation info is valid, returning a signed attestation token if so. + * + *

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

    + *
      + *
    • verifyConfidentialSpace(VerifyConfidentialSpaceRequest request) + *

    + *

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

    + *
      + *
    • verifyConfidentialSpaceCallable() + *

    + * + * + * + *

    VerifyConfidentialGke + *

    Verifies the provided Confidential GKE attestation info, returning a signed OIDC token. + * + *

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

    + *
      + *
    • verifyConfidentialGke(VerifyConfidentialGkeRequest request) + *

    + *

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

    + *
      + *
    • verifyConfidentialGkeCallable() + *

    + * + * + * *

    ListLocations *

    Lists information about the supported locations for this service. * @@ -367,7 +395,7 @@ public final UnaryCallable createChallengeCal // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Verifies the provided attestation info, returning a signed OIDC token. + * Verifies the provided attestation info, returning a signed attestation token. * *

    Sample code: * @@ -401,7 +429,7 @@ public final VerifyAttestationResponse verifyAttestation(VerifyAttestationReques // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Verifies the provided attestation info, returning a signed OIDC token. + * Verifies the provided attestation info, returning a signed attestation token. * *

    Sample code: * @@ -434,6 +462,140 @@ public final VerifyAttestationResponse verifyAttestation(VerifyAttestationReques return stub.verifyAttestationCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Verifies whether the provided attestation info is valid, returning a signed attestation token + * if so. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (ConfidentialComputingClient confidentialComputingClient =
    +   *     ConfidentialComputingClient.create()) {
    +   *   VerifyConfidentialSpaceRequest request =
    +   *       VerifyConfidentialSpaceRequest.newBuilder()
    +   *           .setChallenge(ChallengeName.of("[PROJECT]", "[LOCATION]", "[UUID]").toString())
    +   *           .setGcpCredentials(GcpCredentials.newBuilder().build())
    +   *           .addAllSignedEntities(new ArrayList())
    +   *           .setGceShieldedIdentity(GceShieldedIdentity.newBuilder().build())
    +   *           .setOptions(
    +   *               VerifyConfidentialSpaceRequest.ConfidentialSpaceOptions.newBuilder().build())
    +   *           .build();
    +   *   VerifyConfidentialSpaceResponse response =
    +   *       confidentialComputingClient.verifyConfidentialSpace(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 VerifyConfidentialSpaceResponse verifyConfidentialSpace( + VerifyConfidentialSpaceRequest request) { + return verifyConfidentialSpaceCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Verifies whether the provided attestation info is valid, returning a signed attestation token + * if so. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (ConfidentialComputingClient confidentialComputingClient =
    +   *     ConfidentialComputingClient.create()) {
    +   *   VerifyConfidentialSpaceRequest request =
    +   *       VerifyConfidentialSpaceRequest.newBuilder()
    +   *           .setChallenge(ChallengeName.of("[PROJECT]", "[LOCATION]", "[UUID]").toString())
    +   *           .setGcpCredentials(GcpCredentials.newBuilder().build())
    +   *           .addAllSignedEntities(new ArrayList())
    +   *           .setGceShieldedIdentity(GceShieldedIdentity.newBuilder().build())
    +   *           .setOptions(
    +   *               VerifyConfidentialSpaceRequest.ConfidentialSpaceOptions.newBuilder().build())
    +   *           .build();
    +   *   ApiFuture future =
    +   *       confidentialComputingClient.verifyConfidentialSpaceCallable().futureCall(request);
    +   *   // Do something.
    +   *   VerifyConfidentialSpaceResponse response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable + verifyConfidentialSpaceCallable() { + return stub.verifyConfidentialSpaceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Verifies the provided Confidential GKE attestation info, returning a signed OIDC token. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (ConfidentialComputingClient confidentialComputingClient =
    +   *     ConfidentialComputingClient.create()) {
    +   *   VerifyConfidentialGkeRequest request =
    +   *       VerifyConfidentialGkeRequest.newBuilder()
    +   *           .setChallenge(ChallengeName.of("[PROJECT]", "[LOCATION]", "[UUID]").toString())
    +   *           .build();
    +   *   VerifyConfidentialGkeResponse response =
    +   *       confidentialComputingClient.verifyConfidentialGke(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 VerifyConfidentialGkeResponse verifyConfidentialGke( + VerifyConfidentialGkeRequest request) { + return verifyConfidentialGkeCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Verifies the provided Confidential GKE attestation info, returning a signed OIDC token. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (ConfidentialComputingClient confidentialComputingClient =
    +   *     ConfidentialComputingClient.create()) {
    +   *   VerifyConfidentialGkeRequest request =
    +   *       VerifyConfidentialGkeRequest.newBuilder()
    +   *           .setChallenge(ChallengeName.of("[PROJECT]", "[LOCATION]", "[UUID]").toString())
    +   *           .build();
    +   *   ApiFuture future =
    +   *       confidentialComputingClient.verifyConfidentialGkeCallable().futureCall(request);
    +   *   // Do something.
    +   *   VerifyConfidentialGkeResponse response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable + verifyConfidentialGkeCallable() { + return stub.verifyConfidentialGkeCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists information about the supported locations for this service. diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingSettings.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingSettings.java index 6f7e3a13a9a2..f9450828a8ba 100644 --- a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingSettings.java +++ b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingSettings.java @@ -105,6 +105,19 @@ public UnaryCallSettings createChallengeSetti return ((ConfidentialComputingStubSettings) getStubSettings()).verifyAttestationSettings(); } + /** Returns the object with the settings used for calls to verifyConfidentialSpace. */ + public UnaryCallSettings + verifyConfidentialSpaceSettings() { + return ((ConfidentialComputingStubSettings) getStubSettings()) + .verifyConfidentialSpaceSettings(); + } + + /** Returns the object with the settings used for calls to verifyConfidentialGke. */ + public UnaryCallSettings + verifyConfidentialGkeSettings() { + return ((ConfidentialComputingStubSettings) getStubSettings()).verifyConfidentialGkeSettings(); + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -240,6 +253,19 @@ public UnaryCallSettings.Builder createChalle return getStubSettingsBuilder().verifyAttestationSettings(); } + /** Returns the builder for the settings used for calls to verifyConfidentialSpace. */ + public UnaryCallSettings.Builder< + VerifyConfidentialSpaceRequest, VerifyConfidentialSpaceResponse> + verifyConfidentialSpaceSettings() { + return getStubSettingsBuilder().verifyConfidentialSpaceSettings(); + } + + /** Returns the builder for the settings used for calls to verifyConfidentialGke. */ + public UnaryCallSettings.Builder + verifyConfidentialGkeSettings() { + return getStubSettingsBuilder().verifyConfidentialGkeSettings(); + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/gapic_metadata.json b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/gapic_metadata.json index cfa27aeced6b..a76dc38fa694 100644 --- a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/gapic_metadata.json +++ b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/gapic_metadata.json @@ -21,6 +21,12 @@ }, "VerifyAttestation": { "methods": ["verifyAttestation", "verifyAttestationCallable"] + }, + "VerifyConfidentialGke": { + "methods": ["verifyConfidentialGke", "verifyConfidentialGkeCallable"] + }, + "VerifyConfidentialSpace": { + "methods": ["verifyConfidentialSpace", "verifyConfidentialSpaceCallable"] } } } diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/ConfidentialComputingStub.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/ConfidentialComputingStub.java index 387f4aea8607..25bf6974a3d8 100644 --- a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/ConfidentialComputingStub.java +++ b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/ConfidentialComputingStub.java @@ -24,6 +24,10 @@ import com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest; import com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest; import com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse; +import com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest; +import com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse; +import com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest; +import com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; @@ -48,6 +52,16 @@ public UnaryCallable createChallengeCallable( throw new UnsupportedOperationException("Not implemented: verifyAttestationCallable()"); } + public UnaryCallable + verifyConfidentialSpaceCallable() { + throw new UnsupportedOperationException("Not implemented: verifyConfidentialSpaceCallable()"); + } + + public UnaryCallable + verifyConfidentialGkeCallable() { + throw new UnsupportedOperationException("Not implemented: verifyConfidentialGkeCallable()"); + } + public UnaryCallable listLocationsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/ConfidentialComputingStubSettings.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/ConfidentialComputingStubSettings.java index a6004076887d..87a78b65e40a 100644 --- a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/ConfidentialComputingStubSettings.java +++ b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/ConfidentialComputingStubSettings.java @@ -48,6 +48,10 @@ import com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest; import com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest; import com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse; +import com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest; +import com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse; +import com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest; +import com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; @@ -123,6 +127,10 @@ public class ConfidentialComputingStubSettings private final UnaryCallSettings createChallengeSettings; private final UnaryCallSettings verifyAttestationSettings; + private final UnaryCallSettings + verifyConfidentialSpaceSettings; + private final UnaryCallSettings + verifyConfidentialGkeSettings; private final PagedCallSettings< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -190,6 +198,18 @@ public UnaryCallSettings createChallengeSetti return verifyAttestationSettings; } + /** Returns the object with the settings used for calls to verifyConfidentialSpace. */ + public UnaryCallSettings + verifyConfidentialSpaceSettings() { + return verifyConfidentialSpaceSettings; + } + + /** Returns the object with the settings used for calls to verifyConfidentialGke. */ + public UnaryCallSettings + verifyConfidentialGkeSettings() { + return verifyConfidentialGkeSettings; + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -314,6 +334,8 @@ protected ConfidentialComputingStubSettings(Builder settingsBuilder) throws IOEx createChallengeSettings = settingsBuilder.createChallengeSettings().build(); verifyAttestationSettings = settingsBuilder.verifyAttestationSettings().build(); + verifyConfidentialSpaceSettings = settingsBuilder.verifyConfidentialSpaceSettings().build(); + verifyConfidentialGkeSettings = settingsBuilder.verifyConfidentialGkeSettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); getLocationSettings = settingsBuilder.getLocationSettings().build(); } @@ -326,6 +348,12 @@ public static class Builder createChallengeSettings; private final UnaryCallSettings.Builder verifyAttestationSettings; + private final UnaryCallSettings.Builder< + VerifyConfidentialSpaceRequest, VerifyConfidentialSpaceResponse> + verifyConfidentialSpaceSettings; + private final UnaryCallSettings.Builder< + VerifyConfidentialGkeRequest, VerifyConfidentialGkeResponse> + verifyConfidentialGkeSettings; private final PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -380,6 +408,8 @@ protected Builder(ClientContext clientContext) { createChallengeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); verifyAttestationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + verifyConfidentialSpaceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + verifyConfidentialGkeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -387,6 +417,8 @@ protected Builder(ClientContext clientContext) { ImmutableList.>of( createChallengeSettings, verifyAttestationSettings, + verifyConfidentialSpaceSettings, + verifyConfidentialGkeSettings, listLocationsSettings, getLocationSettings); initDefaults(this); @@ -397,6 +429,8 @@ protected Builder(ConfidentialComputingStubSettings settings) { createChallengeSettings = settings.createChallengeSettings.toBuilder(); verifyAttestationSettings = settings.verifyAttestationSettings.toBuilder(); + verifyConfidentialSpaceSettings = settings.verifyConfidentialSpaceSettings.toBuilder(); + verifyConfidentialGkeSettings = settings.verifyConfidentialGkeSettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); getLocationSettings = settings.getLocationSettings.toBuilder(); @@ -404,6 +438,8 @@ protected Builder(ConfidentialComputingStubSettings settings) { ImmutableList.>of( createChallengeSettings, verifyAttestationSettings, + verifyConfidentialSpaceSettings, + verifyConfidentialGkeSettings, listLocationsSettings, getLocationSettings); } @@ -443,6 +479,16 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder + .verifyConfidentialSpaceSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .verifyConfidentialGkeSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .listLocationsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) @@ -482,6 +528,19 @@ public UnaryCallSettings.Builder createChalle return verifyAttestationSettings; } + /** Returns the builder for the settings used for calls to verifyConfidentialSpace. */ + public UnaryCallSettings.Builder< + VerifyConfidentialSpaceRequest, VerifyConfidentialSpaceResponse> + verifyConfidentialSpaceSettings() { + return verifyConfidentialSpaceSettings; + } + + /** Returns the builder for the settings used for calls to verifyConfidentialGke. */ + public UnaryCallSettings.Builder + verifyConfidentialGkeSettings() { + return verifyConfidentialGkeSettings; + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/GrpcConfidentialComputingStub.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/GrpcConfidentialComputingStub.java index 0ce2a3254e75..1c2cf5138e94 100644 --- a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/GrpcConfidentialComputingStub.java +++ b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/GrpcConfidentialComputingStub.java @@ -29,6 +29,10 @@ import com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest; import com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest; import com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse; +import com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest; +import com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse; +import com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest; +import com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; @@ -73,6 +77,34 @@ public class GrpcConfidentialComputingStub extends ConfidentialComputingStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor< + VerifyConfidentialSpaceRequest, VerifyConfidentialSpaceResponse> + verifyConfidentialSpaceMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.confidentialcomputing.v1.ConfidentialComputing/VerifyConfidentialSpace") + .setRequestMarshaller( + ProtoUtils.marshaller(VerifyConfidentialSpaceRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(VerifyConfidentialSpaceResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + verifyConfidentialGkeMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.confidentialcomputing.v1.ConfidentialComputing/VerifyConfidentialGke") + .setRequestMarshaller( + ProtoUtils.marshaller(VerifyConfidentialGkeRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(VerifyConfidentialGkeResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor listLocationsMethodDescriptor = MethodDescriptor.newBuilder() @@ -97,6 +129,10 @@ public class GrpcConfidentialComputingStub extends ConfidentialComputingStub { private final UnaryCallable createChallengeCallable; private final UnaryCallable verifyAttestationCallable; + private final UnaryCallable + verifyConfidentialSpaceCallable; + private final UnaryCallable + verifyConfidentialGkeCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -167,6 +203,30 @@ protected GrpcConfidentialComputingStub( return builder.build(); }) .build(); + GrpcCallSettings + verifyConfidentialSpaceTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(verifyConfidentialSpaceMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("challenge", String.valueOf(request.getChallenge())); + return builder.build(); + }) + .build(); + GrpcCallSettings + verifyConfidentialGkeTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(verifyConfidentialGkeMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("challenge", String.valueOf(request.getChallenge())); + return builder.build(); + }) + .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listLocationsMethodDescriptor) @@ -196,6 +256,16 @@ protected GrpcConfidentialComputingStub( verifyAttestationTransportSettings, settings.verifyAttestationSettings(), clientContext); + this.verifyConfidentialSpaceCallable = + callableFactory.createUnaryCallable( + verifyConfidentialSpaceTransportSettings, + settings.verifyConfidentialSpaceSettings(), + clientContext); + this.verifyConfidentialGkeCallable = + callableFactory.createUnaryCallable( + verifyConfidentialGkeTransportSettings, + settings.verifyConfidentialGkeSettings(), + clientContext); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -225,6 +295,18 @@ public UnaryCallable createChallengeCallable( return verifyAttestationCallable; } + @Override + public UnaryCallable + verifyConfidentialSpaceCallable() { + return verifyConfidentialSpaceCallable; + } + + @Override + public UnaryCallable + verifyConfidentialGkeCallable() { + return verifyConfidentialGkeCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/HttpJsonConfidentialComputingStub.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/HttpJsonConfidentialComputingStub.java index 3fd84e038732..3c7d0fad9097 100644 --- a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/HttpJsonConfidentialComputingStub.java +++ b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/HttpJsonConfidentialComputingStub.java @@ -34,6 +34,10 @@ import com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest; import com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest; import com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse; +import com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest; +import com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse; +import com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest; +import com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; @@ -133,6 +137,86 @@ public class HttpJsonConfidentialComputingStub extends ConfidentialComputingStub .build()) .build(); + private static final ApiMethodDescriptor< + VerifyConfidentialSpaceRequest, VerifyConfidentialSpaceResponse> + verifyConfidentialSpaceMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.confidentialcomputing.v1.ConfidentialComputing/VerifyConfidentialSpace") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{challenge=projects/*/locations/*/challenges/*}:verifyConfidentialSpace", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "challenge", request.getChallenge()); + 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().clearChallenge().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(VerifyConfidentialSpaceResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + VerifyConfidentialGkeRequest, VerifyConfidentialGkeResponse> + verifyConfidentialGkeMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.confidentialcomputing.v1.ConfidentialComputing/VerifyConfidentialGke") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{challenge=projects/*/locations/*/challenges/*}:verifyConfidentialGke", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "challenge", request.getChallenge()); + 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().clearChallenge().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(VerifyConfidentialGkeResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor listLocationsMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -204,6 +288,10 @@ public class HttpJsonConfidentialComputingStub extends ConfidentialComputingStub private final UnaryCallable createChallengeCallable; private final UnaryCallable verifyAttestationCallable; + private final UnaryCallable + verifyConfidentialSpaceCallable; + private final UnaryCallable + verifyConfidentialGkeCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -276,6 +364,32 @@ protected HttpJsonConfidentialComputingStub( return builder.build(); }) .build(); + HttpJsonCallSettings + verifyConfidentialSpaceTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(verifyConfidentialSpaceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("challenge", String.valueOf(request.getChallenge())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + verifyConfidentialGkeTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(verifyConfidentialGkeMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("challenge", String.valueOf(request.getChallenge())); + return builder.build(); + }) + .build(); HttpJsonCallSettings listLocationsTransportSettings = HttpJsonCallSettings.newBuilder() @@ -308,6 +422,16 @@ protected HttpJsonConfidentialComputingStub( verifyAttestationTransportSettings, settings.verifyAttestationSettings(), clientContext); + this.verifyConfidentialSpaceCallable = + callableFactory.createUnaryCallable( + verifyConfidentialSpaceTransportSettings, + settings.verifyConfidentialSpaceSettings(), + clientContext); + this.verifyConfidentialGkeCallable = + callableFactory.createUnaryCallable( + verifyConfidentialGkeTransportSettings, + settings.verifyConfidentialGkeSettings(), + clientContext); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -327,6 +451,8 @@ public static List getMethodDescriptors() { List methodDescriptors = new ArrayList<>(); methodDescriptors.add(createChallengeMethodDescriptor); methodDescriptors.add(verifyAttestationMethodDescriptor); + methodDescriptors.add(verifyConfidentialSpaceMethodDescriptor); + methodDescriptors.add(verifyConfidentialGkeMethodDescriptor); methodDescriptors.add(listLocationsMethodDescriptor); methodDescriptors.add(getLocationMethodDescriptor); return methodDescriptors; @@ -343,6 +469,18 @@ public UnaryCallable createChallengeCallable( return verifyAttestationCallable; } + @Override + public UnaryCallable + verifyConfidentialSpaceCallable() { + return verifyConfidentialSpaceCallable; + } + + @Override + public UnaryCallable + verifyConfidentialGkeCallable() { + return verifyConfidentialGkeCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/resources/META-INF/native-image/com.google.cloud.confidentialcomputing.v1/reflect-config.json b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/resources/META-INF/native-image/com.google.cloud.confidentialcomputing.v1/reflect-config.json index 856751fafb28..ea9a8bd1f32b 100644 --- a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/resources/META-INF/native-image/com.google.cloud.confidentialcomputing.v1/reflect-config.json +++ b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/resources/META-INF/native-image/com.google.cloud.confidentialcomputing.v1/reflect-config.json @@ -413,6 +413,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions$AllowedPrincipalTags", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions$AllowedPrincipalTags$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions$AllowedPrincipalTags$ContainerImageSignatures", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions$AllowedPrincipalTags$ContainerImageSignatures$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.confidentialcomputing.v1.Challenge", "queryAllDeclaredConstructors": true, @@ -485,6 +539,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.confidentialcomputing.v1.GceShieldedIdentity", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.confidentialcomputing.v1.GceShieldedIdentity$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.confidentialcomputing.v1.GcpCredentials", "queryAllDeclaredConstructors": true, @@ -521,6 +593,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.confidentialcomputing.v1.SignatureType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.confidentialcomputing.v1.SignedEntity", "queryAllDeclaredConstructors": true, @@ -576,7 +657,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.confidentialcomputing.v1.TokenOptions$AwsPrincipalTagsOptions", + "name": "com.google.cloud.confidentialcomputing.v1.TokenOptions$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -585,7 +666,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.confidentialcomputing.v1.TokenOptions$AwsPrincipalTagsOptions$AllowedPrincipalTags", + "name": "com.google.cloud.confidentialcomputing.v1.TokenProfile", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -594,7 +675,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.confidentialcomputing.v1.TokenOptions$AwsPrincipalTagsOptions$AllowedPrincipalTags$Builder", + "name": "com.google.cloud.confidentialcomputing.v1.TokenType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -603,7 +684,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.confidentialcomputing.v1.TokenOptions$AwsPrincipalTagsOptions$AllowedPrincipalTags$ContainerImageSignatures", + "name": "com.google.cloud.confidentialcomputing.v1.TpmAttestation", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -612,7 +693,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.confidentialcomputing.v1.TokenOptions$AwsPrincipalTagsOptions$AllowedPrincipalTags$ContainerImageSignatures$Builder", + "name": "com.google.cloud.confidentialcomputing.v1.TpmAttestation$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -621,7 +702,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.confidentialcomputing.v1.TokenOptions$AwsPrincipalTagsOptions$Builder", + "name": "com.google.cloud.confidentialcomputing.v1.TpmAttestation$Quote", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -630,7 +711,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.confidentialcomputing.v1.TokenOptions$Builder", + "name": "com.google.cloud.confidentialcomputing.v1.TpmAttestation$Quote$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -639,7 +720,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.confidentialcomputing.v1.TokenType", + "name": "com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -648,7 +729,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.confidentialcomputing.v1.TpmAttestation", + "name": "com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -657,7 +738,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.confidentialcomputing.v1.TpmAttestation$Builder", + "name": "com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -666,7 +747,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.confidentialcomputing.v1.TpmAttestation$Quote", + "name": "com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -675,7 +756,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.confidentialcomputing.v1.TpmAttestation$Quote$Builder", + "name": "com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -684,7 +765,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest", + "name": "com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -693,7 +774,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest$Builder", + "name": "com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -702,7 +783,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse", + "name": "com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -711,7 +792,52 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse$Builder", + "name": "com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest$ConfidentialSpaceOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest$ConfidentialSpaceOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientHttpJsonTest.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientHttpJsonTest.java index 8b4189433f5d..eee4a70c50ac 100644 --- a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientHttpJsonTest.java +++ b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientHttpJsonTest.java @@ -245,6 +245,117 @@ public void verifyAttestationExceptionTest() throws Exception { } } + @Test + public void verifyConfidentialSpaceTest() throws Exception { + VerifyConfidentialSpaceResponse expectedResponse = + VerifyConfidentialSpaceResponse.newBuilder() + .setAttestationToken("attestationToken-1730245367") + .addAllPartialErrors(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + VerifyConfidentialSpaceRequest request = + VerifyConfidentialSpaceRequest.newBuilder() + .setChallenge(ChallengeName.of("[PROJECT]", "[LOCATION]", "[UUID]").toString()) + .setGcpCredentials(GcpCredentials.newBuilder().build()) + .addAllSignedEntities(new ArrayList()) + .setGceShieldedIdentity(GceShieldedIdentity.newBuilder().build()) + .setOptions( + VerifyConfidentialSpaceRequest.ConfidentialSpaceOptions.newBuilder().build()) + .build(); + + VerifyConfidentialSpaceResponse actualResponse = client.verifyConfidentialSpace(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 verifyConfidentialSpaceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + VerifyConfidentialSpaceRequest request = + VerifyConfidentialSpaceRequest.newBuilder() + .setChallenge(ChallengeName.of("[PROJECT]", "[LOCATION]", "[UUID]").toString()) + .setGcpCredentials(GcpCredentials.newBuilder().build()) + .addAllSignedEntities(new ArrayList()) + .setGceShieldedIdentity(GceShieldedIdentity.newBuilder().build()) + .setOptions( + VerifyConfidentialSpaceRequest.ConfidentialSpaceOptions.newBuilder().build()) + .build(); + client.verifyConfidentialSpace(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void verifyConfidentialGkeTest() throws Exception { + VerifyConfidentialGkeResponse expectedResponse = + VerifyConfidentialGkeResponse.newBuilder() + .setAttestationToken("attestationToken-1730245367") + .build(); + mockService.addResponse(expectedResponse); + + VerifyConfidentialGkeRequest request = + VerifyConfidentialGkeRequest.newBuilder() + .setChallenge(ChallengeName.of("[PROJECT]", "[LOCATION]", "[UUID]").toString()) + .build(); + + VerifyConfidentialGkeResponse actualResponse = client.verifyConfidentialGke(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 verifyConfidentialGkeExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + VerifyConfidentialGkeRequest request = + VerifyConfidentialGkeRequest.newBuilder() + .setChallenge(ChallengeName.of("[PROJECT]", "[LOCATION]", "[UUID]").toString()) + .build(); + client.verifyConfidentialGke(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientTest.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientTest.java index 0e3731a89b0c..77cfe7b1f42e 100644 --- a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientTest.java +++ b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClientTest.java @@ -243,6 +243,114 @@ public void verifyAttestationExceptionTest() throws Exception { } } + @Test + public void verifyConfidentialSpaceTest() throws Exception { + VerifyConfidentialSpaceResponse expectedResponse = + VerifyConfidentialSpaceResponse.newBuilder() + .setAttestationToken("attestationToken-1730245367") + .addAllPartialErrors(new ArrayList()) + .build(); + mockConfidentialComputing.addResponse(expectedResponse); + + VerifyConfidentialSpaceRequest request = + VerifyConfidentialSpaceRequest.newBuilder() + .setChallenge(ChallengeName.of("[PROJECT]", "[LOCATION]", "[UUID]").toString()) + .setGcpCredentials(GcpCredentials.newBuilder().build()) + .addAllSignedEntities(new ArrayList()) + .setGceShieldedIdentity(GceShieldedIdentity.newBuilder().build()) + .setOptions( + VerifyConfidentialSpaceRequest.ConfidentialSpaceOptions.newBuilder().build()) + .build(); + + VerifyConfidentialSpaceResponse actualResponse = client.verifyConfidentialSpace(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConfidentialComputing.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + VerifyConfidentialSpaceRequest actualRequest = + ((VerifyConfidentialSpaceRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getTdCcel(), actualRequest.getTdCcel()); + Assert.assertEquals(request.getTpmAttestation(), actualRequest.getTpmAttestation()); + Assert.assertEquals(request.getChallenge(), actualRequest.getChallenge()); + Assert.assertEquals(request.getGcpCredentials(), actualRequest.getGcpCredentials()); + Assert.assertEquals(request.getSignedEntitiesList(), actualRequest.getSignedEntitiesList()); + Assert.assertEquals(request.getGceShieldedIdentity(), actualRequest.getGceShieldedIdentity()); + Assert.assertEquals(request.getOptions(), actualRequest.getOptions()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void verifyConfidentialSpaceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfidentialComputing.addException(exception); + + try { + VerifyConfidentialSpaceRequest request = + VerifyConfidentialSpaceRequest.newBuilder() + .setChallenge(ChallengeName.of("[PROJECT]", "[LOCATION]", "[UUID]").toString()) + .setGcpCredentials(GcpCredentials.newBuilder().build()) + .addAllSignedEntities(new ArrayList()) + .setGceShieldedIdentity(GceShieldedIdentity.newBuilder().build()) + .setOptions( + VerifyConfidentialSpaceRequest.ConfidentialSpaceOptions.newBuilder().build()) + .build(); + client.verifyConfidentialSpace(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void verifyConfidentialGkeTest() throws Exception { + VerifyConfidentialGkeResponse expectedResponse = + VerifyConfidentialGkeResponse.newBuilder() + .setAttestationToken("attestationToken-1730245367") + .build(); + mockConfidentialComputing.addResponse(expectedResponse); + + VerifyConfidentialGkeRequest request = + VerifyConfidentialGkeRequest.newBuilder() + .setChallenge(ChallengeName.of("[PROJECT]", "[LOCATION]", "[UUID]").toString()) + .build(); + + VerifyConfidentialGkeResponse actualResponse = client.verifyConfidentialGke(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConfidentialComputing.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + VerifyConfidentialGkeRequest actualRequest = + ((VerifyConfidentialGkeRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getTpmAttestation(), actualRequest.getTpmAttestation()); + Assert.assertEquals(request.getChallenge(), actualRequest.getChallenge()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void verifyConfidentialGkeExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfidentialComputing.addException(exception); + + try { + VerifyConfidentialGkeRequest request = + VerifyConfidentialGkeRequest.newBuilder() + .setChallenge(ChallengeName.of("[PROJECT]", "[LOCATION]", "[UUID]").toString()) + .build(); + client.verifyConfidentialGke(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/MockConfidentialComputingImpl.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/MockConfidentialComputingImpl.java index 335f45b0896c..82ceaef11f65 100644 --- a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/MockConfidentialComputingImpl.java +++ b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/test/java/com/google/cloud/confidentialcomputing/v1/MockConfidentialComputingImpl.java @@ -100,4 +100,50 @@ public void verifyAttestation( Exception.class.getName()))); } } + + @Override + public void verifyConfidentialSpace( + VerifyConfidentialSpaceRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof VerifyConfidentialSpaceResponse) { + requests.add(request); + responseObserver.onNext(((VerifyConfidentialSpaceResponse) 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 VerifyConfidentialSpace, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + VerifyConfidentialSpaceResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void verifyConfidentialGke( + VerifyConfidentialGkeRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof VerifyConfidentialGkeResponse) { + requests.add(request); + responseObserver.onNext(((VerifyConfidentialGkeResponse) 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 VerifyConfidentialGke, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + VerifyConfidentialGkeResponse.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingGrpc.java b/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingGrpc.java index 4702e633f04e..db7c284c7bc5 100644 --- a/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingGrpc.java +++ b/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingGrpc.java @@ -133,6 +133,112 @@ private ConfidentialComputingGrpc() {} return getVerifyAttestationMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest, + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse> + getVerifyConfidentialSpaceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "VerifyConfidentialSpace", + requestType = com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest.class, + responseType = + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest, + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse> + getVerifyConfidentialSpaceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest, + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse> + getVerifyConfidentialSpaceMethod; + if ((getVerifyConfidentialSpaceMethod = + ConfidentialComputingGrpc.getVerifyConfidentialSpaceMethod) + == null) { + synchronized (ConfidentialComputingGrpc.class) { + if ((getVerifyConfidentialSpaceMethod = + ConfidentialComputingGrpc.getVerifyConfidentialSpaceMethod) + == null) { + ConfidentialComputingGrpc.getVerifyConfidentialSpaceMethod = + getVerifyConfidentialSpaceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "VerifyConfidentialSpace")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.confidentialcomputing.v1 + .VerifyConfidentialSpaceRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.confidentialcomputing.v1 + .VerifyConfidentialSpaceResponse.getDefaultInstance())) + .setSchemaDescriptor( + new ConfidentialComputingMethodDescriptorSupplier( + "VerifyConfidentialSpace")) + .build(); + } + } + } + return getVerifyConfidentialSpaceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest, + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse> + getVerifyConfidentialGkeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "VerifyConfidentialGke", + requestType = com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.class, + responseType = com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest, + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse> + getVerifyConfidentialGkeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest, + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse> + getVerifyConfidentialGkeMethod; + if ((getVerifyConfidentialGkeMethod = ConfidentialComputingGrpc.getVerifyConfidentialGkeMethod) + == null) { + synchronized (ConfidentialComputingGrpc.class) { + if ((getVerifyConfidentialGkeMethod = + ConfidentialComputingGrpc.getVerifyConfidentialGkeMethod) + == null) { + ConfidentialComputingGrpc.getVerifyConfidentialGkeMethod = + getVerifyConfidentialGkeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "VerifyConfidentialGke")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.confidentialcomputing.v1 + .VerifyConfidentialGkeResponse.getDefaultInstance())) + .setSchemaDescriptor( + new ConfidentialComputingMethodDescriptorSupplier( + "VerifyConfidentialGke")) + .build(); + } + } + } + return getVerifyConfidentialGkeMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static ConfidentialComputingStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -215,7 +321,8 @@ default void createChallenge( * * *
    -     * Verifies the provided attestation info, returning a signed OIDC token.
    +     * Verifies the provided attestation info, returning a signed attestation
    +     * token.
          * 
    */ default void verifyAttestation( @@ -226,6 +333,40 @@ default void verifyAttestation( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getVerifyAttestationMethod(), responseObserver); } + + /** + * + * + *
    +     * Verifies whether the provided attestation info is valid, returning a signed
    +     * attestation token if so.
    +     * 
    + */ + default void verifyConfidentialSpace( + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getVerifyConfidentialSpaceMethod(), responseObserver); + } + + /** + * + * + *
    +     * Verifies the provided Confidential GKE attestation info, returning a signed
    +     * OIDC token.
    +     * 
    + */ + default void verifyConfidentialGke( + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getVerifyConfidentialGkeMethod(), responseObserver); + } } /** @@ -284,7 +425,8 @@ public void createChallenge( * * *
    -     * Verifies the provided attestation info, returning a signed OIDC token.
    +     * Verifies the provided attestation info, returning a signed attestation
    +     * token.
          * 
    */ public void verifyAttestation( @@ -297,6 +439,44 @@ public void verifyAttestation( request, responseObserver); } + + /** + * + * + *
    +     * Verifies whether the provided attestation info is valid, returning a signed
    +     * attestation token if so.
    +     * 
    + */ + public void verifyConfidentialSpace( + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getVerifyConfidentialSpaceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Verifies the provided Confidential GKE attestation info, returning a signed
    +     * OIDC token.
    +     * 
    + */ + public void verifyConfidentialGke( + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getVerifyConfidentialGkeMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -336,7 +516,8 @@ public com.google.cloud.confidentialcomputing.v1.Challenge createChallenge( * * *
    -     * Verifies the provided attestation info, returning a signed OIDC token.
    +     * Verifies the provided attestation info, returning a signed attestation
    +     * token.
          * 
    */ public com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse verifyAttestation( @@ -344,6 +525,36 @@ public com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse verif return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getVerifyAttestationMethod(), getCallOptions(), request); } + + /** + * + * + *
    +     * Verifies whether the provided attestation info is valid, returning a signed
    +     * attestation token if so.
    +     * 
    + */ + public com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse + verifyConfidentialSpace( + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getVerifyConfidentialSpaceMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Verifies the provided Confidential GKE attestation info, returning a signed
    +     * OIDC token.
    +     * 
    + */ + public com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse + verifyConfidentialGke( + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getVerifyConfidentialGkeMethod(), getCallOptions(), request); + } } /** @@ -383,7 +594,8 @@ public com.google.cloud.confidentialcomputing.v1.Challenge createChallenge( * * *
    -     * Verifies the provided attestation info, returning a signed OIDC token.
    +     * Verifies the provided attestation info, returning a signed attestation
    +     * token.
          * 
    */ public com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse verifyAttestation( @@ -391,6 +603,36 @@ public com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse verif return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getVerifyAttestationMethod(), getCallOptions(), request); } + + /** + * + * + *
    +     * Verifies whether the provided attestation info is valid, returning a signed
    +     * attestation token if so.
    +     * 
    + */ + public com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse + verifyConfidentialSpace( + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getVerifyConfidentialSpaceMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Verifies the provided Confidential GKE attestation info, returning a signed
    +     * OIDC token.
    +     * 
    + */ + public com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse + verifyConfidentialGke( + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getVerifyConfidentialGkeMethod(), getCallOptions(), request); + } } /** @@ -432,7 +674,8 @@ protected ConfidentialComputingFutureStub build( * * *
    -     * Verifies the provided attestation info, returning a signed OIDC token.
    +     * Verifies the provided attestation info, returning a signed attestation
    +     * token.
          * 
    */ public com.google.common.util.concurrent.ListenableFuture< @@ -442,10 +685,44 @@ protected ConfidentialComputingFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getVerifyAttestationMethod(), getCallOptions()), request); } + + /** + * + * + *
    +     * Verifies whether the provided attestation info is valid, returning a signed
    +     * attestation token if so.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse> + verifyConfidentialSpace( + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getVerifyConfidentialSpaceMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Verifies the provided Confidential GKE attestation info, returning a signed
    +     * OIDC token.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse> + verifyConfidentialGke( + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getVerifyConfidentialGkeMethod(), getCallOptions()), request); + } } private static final int METHODID_CREATE_CHALLENGE = 0; private static final int METHODID_VERIFY_ATTESTATION = 1; + private static final int METHODID_VERIFY_CONFIDENTIAL_SPACE = 2; + private static final int METHODID_VERIFY_CONFIDENTIAL_GKE = 3; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -477,6 +754,20 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse>) responseObserver); break; + case METHODID_VERIFY_CONFIDENTIAL_SPACE: + serviceImpl.verifyConfidentialSpace( + (com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse>) + responseObserver); + break; + case METHODID_VERIFY_CONFIDENTIAL_GKE: + serviceImpl.verifyConfidentialGke( + (com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse>) + responseObserver); + break; default: throw new AssertionError(); } @@ -509,6 +800,20 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.confidentialcomputing.v1.VerifyAttestationRequest, com.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse>( service, METHODID_VERIFY_ATTESTATION))) + .addMethod( + getVerifyConfidentialSpaceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest, + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse>( + service, METHODID_VERIFY_CONFIDENTIAL_SPACE))) + .addMethod( + getVerifyConfidentialGkeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest, + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse>( + service, METHODID_VERIFY_CONFIDENTIAL_GKE))) .build(); } @@ -562,6 +867,8 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .setSchemaDescriptor(new ConfidentialComputingFileDescriptorSupplier()) .addMethod(getCreateChallengeMethod()) .addMethod(getVerifyAttestationMethod()) + .addMethod(getVerifyConfidentialSpaceMethod()) + .addMethod(getVerifyConfidentialGkeMethod()) .build(); } } diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/AwsPrincipalTagsOptions.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/AwsPrincipalTagsOptions.java new file mode 100644 index 000000000000..82af6b59425d --- /dev/null +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/AwsPrincipalTagsOptions.java @@ -0,0 +1,2594 @@ +/* + * 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/confidentialcomputing/v1/service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.confidentialcomputing.v1; + +/** + * + * + *
    + * Token options that only apply to the AWS Principal Tags token type.
    + * 
    + * + * Protobuf type {@code google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions} + */ +public final class AwsPrincipalTagsOptions extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions) + AwsPrincipalTagsOptionsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use AwsPrincipalTagsOptions.newBuilder() to construct. + private AwsPrincipalTagsOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AwsPrincipalTagsOptions() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AwsPrincipalTagsOptions(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_AwsPrincipalTagsOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_AwsPrincipalTagsOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.class, + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.Builder.class); + } + + public interface AllowedPrincipalTagsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * Optional. Container image signatures allowed in the token.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the containerImageSignatures field is set. + */ + boolean hasContainerImageSignatures(); + + /** + * + * + *
    +     * Optional. Container image signatures allowed in the token.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The containerImageSignatures. + */ + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags + .ContainerImageSignatures + getContainerImageSignatures(); + + /** + * + * + *
    +     * Optional. Container image signatures allowed in the token.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags + .ContainerImageSignaturesOrBuilder + getContainerImageSignaturesOrBuilder(); + } + + /** + * + * + *
    +   * Allowed principal tags is used to define what principal tags will be
    +   * placed in the token.
    +   * 
    + * + * Protobuf type {@code + * google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags} + */ + public static final class AllowedPrincipalTags extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags) + AllowedPrincipalTagsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use AllowedPrincipalTags.newBuilder() to construct. + private AllowedPrincipalTags(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AllowedPrincipalTags() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AllowedPrincipalTags(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_AwsPrincipalTagsOptions_AllowedPrincipalTags_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_AwsPrincipalTagsOptions_AllowedPrincipalTags_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags + .class, + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags + .Builder.class); + } + + public interface ContainerImageSignaturesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +       * Optional. List of key ids to filter into the Principal tags. Only keys
    +       * that have been validated and added to the token will be filtered into
    +       * principal tags. Unrecognized key ids will be ignored.
    +       * 
    + * + * repeated string key_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the keyIds. + */ + java.util.List getKeyIdsList(); + + /** + * + * + *
    +       * Optional. List of key ids to filter into the Principal tags. Only keys
    +       * that have been validated and added to the token will be filtered into
    +       * principal tags. Unrecognized key ids will be ignored.
    +       * 
    + * + * repeated string key_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of keyIds. + */ + int getKeyIdsCount(); + + /** + * + * + *
    +       * Optional. List of key ids to filter into the Principal tags. Only keys
    +       * that have been validated and added to the token will be filtered into
    +       * principal tags. Unrecognized key ids will be ignored.
    +       * 
    + * + * repeated string key_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The keyIds at the given index. + */ + java.lang.String getKeyIds(int index); + + /** + * + * + *
    +       * Optional. List of key ids to filter into the Principal tags. Only keys
    +       * that have been validated and added to the token will be filtered into
    +       * principal tags. Unrecognized key ids will be ignored.
    +       * 
    + * + * repeated string key_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the keyIds at the given index. + */ + com.google.protobuf.ByteString getKeyIdsBytes(int index); + } + + /** + * + * + *
    +     * Allowed Container Image Signatures. Key IDs are required to allow
    +     * this claim to fit within the narrow AWS IAM restrictions.
    +     * 
    + * + * Protobuf type {@code + * google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures} + */ + public static final class ContainerImageSignatures + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures) + ContainerImageSignaturesOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ContainerImageSignatures.newBuilder() to construct. + private ContainerImageSignatures(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ContainerImageSignatures() { + keyIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ContainerImageSignatures(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_AwsPrincipalTagsOptions_AllowedPrincipalTags_ContainerImageSignatures_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_AwsPrincipalTagsOptions_AllowedPrincipalTags_ContainerImageSignatures_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures.class, + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures.Builder.class); + } + + public static final int KEY_IDS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList keyIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
    +       * Optional. List of key ids to filter into the Principal tags. Only keys
    +       * that have been validated and added to the token will be filtered into
    +       * principal tags. Unrecognized key ids will be ignored.
    +       * 
    + * + * repeated string key_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the keyIds. + */ + public com.google.protobuf.ProtocolStringList getKeyIdsList() { + return keyIds_; + } + + /** + * + * + *
    +       * Optional. List of key ids to filter into the Principal tags. Only keys
    +       * that have been validated and added to the token will be filtered into
    +       * principal tags. Unrecognized key ids will be ignored.
    +       * 
    + * + * repeated string key_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of keyIds. + */ + public int getKeyIdsCount() { + return keyIds_.size(); + } + + /** + * + * + *
    +       * Optional. List of key ids to filter into the Principal tags. Only keys
    +       * that have been validated and added to the token will be filtered into
    +       * principal tags. Unrecognized key ids will be ignored.
    +       * 
    + * + * repeated string key_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The keyIds at the given index. + */ + public java.lang.String getKeyIds(int index) { + return keyIds_.get(index); + } + + /** + * + * + *
    +       * Optional. List of key ids to filter into the Principal tags. Only keys
    +       * that have been validated and added to the token will be filtered into
    +       * principal tags. Unrecognized key ids will be ignored.
    +       * 
    + * + * repeated string key_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the keyIds at the given index. + */ + public com.google.protobuf.ByteString getKeyIdsBytes(int index) { + return keyIds_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < keyIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, keyIds_.getRaw(i)); + } + 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 < keyIds_.size(); i++) { + dataSize += computeStringSizeNoTag(keyIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getKeyIdsList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags + .ContainerImageSignatures)) { + return super.equals(obj); + } + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags + .ContainerImageSignatures + other = + (com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures) + obj; + + if (!getKeyIdsList().equals(other.getKeyIdsList())) 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 (getKeyIdsCount() > 0) { + hash = (37 * hash) + KEY_IDS_FIELD_NUMBER; + hash = (53 * hash) + getKeyIdsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures + 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.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures + parseFrom( + 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.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures + 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.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures + 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.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures + 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.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags + .ContainerImageSignatures + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
    +       * Allowed Container Image Signatures. Key IDs are required to allow
    +       * this claim to fit within the narrow AWS IAM restrictions.
    +       * 
    + * + * Protobuf type {@code + * google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures) + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags + .ContainerImageSignaturesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_AwsPrincipalTagsOptions_AllowedPrincipalTags_ContainerImageSignatures_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_AwsPrincipalTagsOptions_AllowedPrincipalTags_ContainerImageSignatures_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures.class, + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures.Builder.class); + } + + // Construct using + // com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + keyIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_AwsPrincipalTagsOptions_AllowedPrincipalTags_ContainerImageSignatures_descriptor; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures + getDefaultInstanceForType() { + return com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures + build() { + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags + .ContainerImageSignatures + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures + buildPartial() { + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags + .ContainerImageSignatures + result = + new com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags + .ContainerImageSignatures + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + keyIds_.makeImmutable(); + result.keyIds_ = keyIds_; + } + } + + @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.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags + .ContainerImageSignatures) { + return mergeFrom( + (com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags + .ContainerImageSignatures + other) { + if (other + == com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures.getDefaultInstance()) return this; + if (!other.keyIds_.isEmpty()) { + if (keyIds_.isEmpty()) { + keyIds_ = other.keyIds_; + bitField0_ |= 0x00000001; + } else { + ensureKeyIdsIsMutable(); + keyIds_.addAll(other.keyIds_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureKeyIdsIsMutable(); + keyIds_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList keyIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureKeyIdsIsMutable() { + if (!keyIds_.isModifiable()) { + keyIds_ = new com.google.protobuf.LazyStringArrayList(keyIds_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
    +         * Optional. List of key ids to filter into the Principal tags. Only keys
    +         * that have been validated and added to the token will be filtered into
    +         * principal tags. Unrecognized key ids will be ignored.
    +         * 
    + * + * repeated string key_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the keyIds. + */ + public com.google.protobuf.ProtocolStringList getKeyIdsList() { + keyIds_.makeImmutable(); + return keyIds_; + } + + /** + * + * + *
    +         * Optional. List of key ids to filter into the Principal tags. Only keys
    +         * that have been validated and added to the token will be filtered into
    +         * principal tags. Unrecognized key ids will be ignored.
    +         * 
    + * + * repeated string key_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of keyIds. + */ + public int getKeyIdsCount() { + return keyIds_.size(); + } + + /** + * + * + *
    +         * Optional. List of key ids to filter into the Principal tags. Only keys
    +         * that have been validated and added to the token will be filtered into
    +         * principal tags. Unrecognized key ids will be ignored.
    +         * 
    + * + * repeated string key_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The keyIds at the given index. + */ + public java.lang.String getKeyIds(int index) { + return keyIds_.get(index); + } + + /** + * + * + *
    +         * Optional. List of key ids to filter into the Principal tags. Only keys
    +         * that have been validated and added to the token will be filtered into
    +         * principal tags. Unrecognized key ids will be ignored.
    +         * 
    + * + * repeated string key_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the keyIds at the given index. + */ + public com.google.protobuf.ByteString getKeyIdsBytes(int index) { + return keyIds_.getByteString(index); + } + + /** + * + * + *
    +         * Optional. List of key ids to filter into the Principal tags. Only keys
    +         * that have been validated and added to the token will be filtered into
    +         * principal tags. Unrecognized key ids will be ignored.
    +         * 
    + * + * repeated string key_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The keyIds to set. + * @return This builder for chaining. + */ + public Builder setKeyIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureKeyIdsIsMutable(); + keyIds_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +         * Optional. List of key ids to filter into the Principal tags. Only keys
    +         * that have been validated and added to the token will be filtered into
    +         * principal tags. Unrecognized key ids will be ignored.
    +         * 
    + * + * repeated string key_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The keyIds to add. + * @return This builder for chaining. + */ + public Builder addKeyIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureKeyIdsIsMutable(); + keyIds_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +         * Optional. List of key ids to filter into the Principal tags. Only keys
    +         * that have been validated and added to the token will be filtered into
    +         * principal tags. Unrecognized key ids will be ignored.
    +         * 
    + * + * repeated string key_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The keyIds to add. + * @return This builder for chaining. + */ + public Builder addAllKeyIds(java.lang.Iterable values) { + ensureKeyIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, keyIds_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +         * Optional. List of key ids to filter into the Principal tags. Only keys
    +         * that have been validated and added to the token will be filtered into
    +         * principal tags. Unrecognized key ids will be ignored.
    +         * 
    + * + * repeated string key_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearKeyIds() { + keyIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
    +         * Optional. List of key ids to filter into the Principal tags. Only keys
    +         * that have been validated and added to the token will be filtered into
    +         * principal tags. Unrecognized key ids will be ignored.
    +         * 
    + * + * repeated string key_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the keyIds to add. + * @return This builder for chaining. + */ + public Builder addKeyIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureKeyIdsIsMutable(); + keyIds_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures) + } + + // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures) + private static final com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures(); + } + + public static com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ContainerImageSignatures parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags + .ContainerImageSignatures + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int CONTAINER_IMAGE_SIGNATURES_FIELD_NUMBER = 1; + private com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags + .ContainerImageSignatures + containerImageSignatures_; + + /** + * + * + *
    +     * Optional. Container image signatures allowed in the token.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the containerImageSignatures field is set. + */ + @java.lang.Override + public boolean hasContainerImageSignatures() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +     * Optional. Container image signatures allowed in the token.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The containerImageSignatures. + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags + .ContainerImageSignatures + getContainerImageSignatures() { + return containerImageSignatures_ == null + ? com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags + .ContainerImageSignatures.getDefaultInstance() + : containerImageSignatures_; + } + + /** + * + * + *
    +     * Optional. Container image signatures allowed in the token.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags + .ContainerImageSignaturesOrBuilder + getContainerImageSignaturesOrBuilder() { + return containerImageSignatures_ == null + ? com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags + .ContainerImageSignatures.getDefaultInstance() + : containerImageSignatures_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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, getContainerImageSignatures()); + } + 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, getContainerImageSignatures()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags)) { + return super.equals(obj); + } + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags other = + (com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags) + obj; + + if (hasContainerImageSignatures() != other.hasContainerImageSignatures()) return false; + if (hasContainerImageSignatures()) { + if (!getContainerImageSignatures().equals(other.getContainerImageSignatures())) + 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 (hasContainerImageSignatures()) { + hash = (37 * hash) + CONTAINER_IMAGE_SIGNATURES_FIELD_NUMBER; + hash = (53 * hash) + getContainerImageSignatures().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags + 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.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags + parseFrom( + 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.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags + 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.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags + 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.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags + 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.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
    +     * Allowed principal tags is used to define what principal tags will be
    +     * placed in the token.
    +     * 
    + * + * Protobuf type {@code + * google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags) + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTagsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_AwsPrincipalTagsOptions_AllowedPrincipalTags_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_AwsPrincipalTagsOptions_AllowedPrincipalTags_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags.class, + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags.Builder.class); + } + + // Construct using + // com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getContainerImageSignaturesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + containerImageSignatures_ = null; + if (containerImageSignaturesBuilder_ != null) { + containerImageSignaturesBuilder_.dispose(); + containerImageSignaturesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_AwsPrincipalTagsOptions_AllowedPrincipalTags_descriptor; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags + getDefaultInstanceForType() { + return com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags + build() { + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags + buildPartial() { + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags + result = + new com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.containerImageSignatures_ = + containerImageSignaturesBuilder_ == null + ? containerImageSignatures_ + : containerImageSignaturesBuilder_.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.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags) { + return mergeFrom( + (com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags + other) { + if (other + == com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags.getDefaultInstance()) return this; + if (other.hasContainerImageSignatures()) { + mergeContainerImageSignatures(other.getContainerImageSignatures()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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( + getContainerImageSignaturesFieldBuilder().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.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags + .ContainerImageSignatures + containerImageSignatures_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags + .ContainerImageSignatures, + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags + .ContainerImageSignatures.Builder, + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags + .ContainerImageSignaturesOrBuilder> + containerImageSignaturesBuilder_; + + /** + * + * + *
    +       * Optional. Container image signatures allowed in the token.
    +       * 
    + * + * + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the containerImageSignatures field is set. + */ + public boolean hasContainerImageSignatures() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +       * Optional. Container image signatures allowed in the token.
    +       * 
    + * + * + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The containerImageSignatures. + */ + public com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags + .ContainerImageSignatures + getContainerImageSignatures() { + if (containerImageSignaturesBuilder_ == null) { + return containerImageSignatures_ == null + ? com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures.getDefaultInstance() + : containerImageSignatures_; + } else { + return containerImageSignaturesBuilder_.getMessage(); + } + } + + /** + * + * + *
    +       * Optional. Container image signatures allowed in the token.
    +       * 
    + * + * + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setContainerImageSignatures( + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags + .ContainerImageSignatures + value) { + if (containerImageSignaturesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + containerImageSignatures_ = value; + } else { + containerImageSignaturesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. Container image signatures allowed in the token.
    +       * 
    + * + * + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setContainerImageSignatures( + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags + .ContainerImageSignatures.Builder + builderForValue) { + if (containerImageSignaturesBuilder_ == null) { + containerImageSignatures_ = builderForValue.build(); + } else { + containerImageSignaturesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. Container image signatures allowed in the token.
    +       * 
    + * + * + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeContainerImageSignatures( + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags + .ContainerImageSignatures + value) { + if (containerImageSignaturesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && containerImageSignatures_ != null + && containerImageSignatures_ + != com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures.getDefaultInstance()) { + getContainerImageSignaturesBuilder().mergeFrom(value); + } else { + containerImageSignatures_ = value; + } + } else { + containerImageSignaturesBuilder_.mergeFrom(value); + } + if (containerImageSignatures_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
    +       * Optional. Container image signatures allowed in the token.
    +       * 
    + * + * + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearContainerImageSignatures() { + bitField0_ = (bitField0_ & ~0x00000001); + containerImageSignatures_ = null; + if (containerImageSignaturesBuilder_ != null) { + containerImageSignaturesBuilder_.dispose(); + containerImageSignaturesBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. Container image signatures allowed in the token.
    +       * 
    + * + * + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags + .ContainerImageSignatures.Builder + getContainerImageSignaturesBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getContainerImageSignaturesFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +       * Optional. Container image signatures allowed in the token.
    +       * 
    + * + * + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags + .ContainerImageSignaturesOrBuilder + getContainerImageSignaturesOrBuilder() { + if (containerImageSignaturesBuilder_ != null) { + return containerImageSignaturesBuilder_.getMessageOrBuilder(); + } else { + return containerImageSignatures_ == null + ? com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures.getDefaultInstance() + : containerImageSignatures_; + } + } + + /** + * + * + *
    +       * Optional. Container image signatures allowed in the token.
    +       * 
    + * + * + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags + .ContainerImageSignatures, + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags + .ContainerImageSignatures.Builder, + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags + .ContainerImageSignaturesOrBuilder> + getContainerImageSignaturesFieldBuilder() { + if (containerImageSignaturesBuilder_ == null) { + containerImageSignaturesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures, + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignatures.Builder, + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags.ContainerImageSignaturesOrBuilder>( + getContainerImageSignatures(), getParentForChildren(), isClean()); + containerImageSignatures_ = null; + } + return containerImageSignaturesBuilder_; + } + + @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.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags) + } + + // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags) + private static final com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags(); + } + + public static com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AllowedPrincipalTags parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int ALLOWED_PRINCIPAL_TAGS_FIELD_NUMBER = 1; + private com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags + allowedPrincipalTags_; + + /** + * + * + *
    +   * Optional. Principal tags to allow in the token.
    +   * 
    + * + * + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags allowed_principal_tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the allowedPrincipalTags field is set. + */ + @java.lang.Override + public boolean hasAllowedPrincipalTags() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Optional. Principal tags to allow in the token.
    +   * 
    + * + * + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags allowed_principal_tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The allowedPrincipalTags. + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags + getAllowedPrincipalTags() { + return allowedPrincipalTags_ == null + ? com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags + .getDefaultInstance() + : allowedPrincipalTags_; + } + + /** + * + * + *
    +   * Optional. Principal tags to allow in the token.
    +   * 
    + * + * + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags allowed_principal_tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTagsOrBuilder + getAllowedPrincipalTagsOrBuilder() { + return allowedPrincipalTags_ == null + ? com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags + .getDefaultInstance() + : allowedPrincipalTags_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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, getAllowedPrincipalTags()); + } + 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, getAllowedPrincipalTags()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.confidentialcomputing.v1.AwsPrincipalTagsOptions)) { + return super.equals(obj); + } + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions other = + (com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions) obj; + + if (hasAllowedPrincipalTags() != other.hasAllowedPrincipalTags()) return false; + if (hasAllowedPrincipalTags()) { + if (!getAllowedPrincipalTags().equals(other.getAllowedPrincipalTags())) 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 (hasAllowedPrincipalTags()) { + hash = (37 * hash) + ALLOWED_PRINCIPAL_TAGS_FIELD_NUMBER; + hash = (53 * hash) + getAllowedPrincipalTags().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions 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.confidentialcomputing.v1.AwsPrincipalTagsOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions parseFrom( + 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.confidentialcomputing.v1.AwsPrincipalTagsOptions parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions 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.confidentialcomputing.v1.AwsPrincipalTagsOptions + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + 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.confidentialcomputing.v1.AwsPrincipalTagsOptions parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions 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.confidentialcomputing.v1.AwsPrincipalTagsOptions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
    +   * Token options that only apply to the AWS Principal Tags token type.
    +   * 
    + * + * Protobuf type {@code google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions) + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_AwsPrincipalTagsOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_AwsPrincipalTagsOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.class, + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.Builder.class); + } + + // Construct using + // com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getAllowedPrincipalTagsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + allowedPrincipalTags_ = null; + if (allowedPrincipalTagsBuilder_ != null) { + allowedPrincipalTagsBuilder_.dispose(); + allowedPrincipalTagsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_AwsPrincipalTagsOptions_descriptor; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + getDefaultInstanceForType() { + return com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions build() { + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions buildPartial() { + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions result = + new com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.allowedPrincipalTags_ = + allowedPrincipalTagsBuilder_ == null + ? allowedPrincipalTags_ + : allowedPrincipalTagsBuilder_.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.confidentialcomputing.v1.AwsPrincipalTagsOptions) { + return mergeFrom((com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions other) { + if (other + == com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.getDefaultInstance()) + return this; + if (other.hasAllowedPrincipalTags()) { + mergeAllowedPrincipalTags(other.getAllowedPrincipalTags()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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( + getAllowedPrincipalTagsFieldBuilder().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.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags + allowedPrincipalTags_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags, + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags + .Builder, + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTagsOrBuilder> + allowedPrincipalTagsBuilder_; + + /** + * + * + *
    +     * Optional. Principal tags to allow in the token.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags allowed_principal_tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the allowedPrincipalTags field is set. + */ + public boolean hasAllowedPrincipalTags() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +     * Optional. Principal tags to allow in the token.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags allowed_principal_tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The allowedPrincipalTags. + */ + public com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags + getAllowedPrincipalTags() { + if (allowedPrincipalTagsBuilder_ == null) { + return allowedPrincipalTags_ == null + ? com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags + .getDefaultInstance() + : allowedPrincipalTags_; + } else { + return allowedPrincipalTagsBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Optional. Principal tags to allow in the token.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags allowed_principal_tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAllowedPrincipalTags( + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags + value) { + if (allowedPrincipalTagsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + allowedPrincipalTags_ = value; + } else { + allowedPrincipalTagsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Principal tags to allow in the token.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags allowed_principal_tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAllowedPrincipalTags( + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags + .Builder + builderForValue) { + if (allowedPrincipalTagsBuilder_ == null) { + allowedPrincipalTags_ = builderForValue.build(); + } else { + allowedPrincipalTagsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Principal tags to allow in the token.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags allowed_principal_tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAllowedPrincipalTags( + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags + value) { + if (allowedPrincipalTagsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && allowedPrincipalTags_ != null + && allowedPrincipalTags_ + != com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags.getDefaultInstance()) { + getAllowedPrincipalTagsBuilder().mergeFrom(value); + } else { + allowedPrincipalTags_ = value; + } + } else { + allowedPrincipalTagsBuilder_.mergeFrom(value); + } + if (allowedPrincipalTags_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Optional. Principal tags to allow in the token.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags allowed_principal_tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAllowedPrincipalTags() { + bitField0_ = (bitField0_ & ~0x00000001); + allowedPrincipalTags_ = null; + if (allowedPrincipalTagsBuilder_ != null) { + allowedPrincipalTagsBuilder_.dispose(); + allowedPrincipalTagsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Principal tags to allow in the token.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags allowed_principal_tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags + .Builder + getAllowedPrincipalTagsBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getAllowedPrincipalTagsFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. Principal tags to allow in the token.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags allowed_principal_tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTagsOrBuilder + getAllowedPrincipalTagsOrBuilder() { + if (allowedPrincipalTagsBuilder_ != null) { + return allowedPrincipalTagsBuilder_.getMessageOrBuilder(); + } else { + return allowedPrincipalTags_ == null + ? com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags + .getDefaultInstance() + : allowedPrincipalTags_; + } + } + + /** + * + * + *
    +     * Optional. Principal tags to allow in the token.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags allowed_principal_tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags, + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags + .Builder, + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTagsOrBuilder> + getAllowedPrincipalTagsFieldBuilder() { + if (allowedPrincipalTagsBuilder_ == null) { + allowedPrincipalTagsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags, + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTags.Builder, + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .AllowedPrincipalTagsOrBuilder>( + getAllowedPrincipalTags(), getParentForChildren(), isClean()); + allowedPrincipalTags_ = null; + } + return allowedPrincipalTagsBuilder_; + } + + @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.confidentialcomputing.v1.AwsPrincipalTagsOptions) + } + + // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions) + private static final com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions(); + } + + public static com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AwsPrincipalTagsOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.confidentialcomputing.v1.AwsPrincipalTagsOptions + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/AwsPrincipalTagsOptionsOrBuilder.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/AwsPrincipalTagsOptionsOrBuilder.java new file mode 100644 index 000000000000..e5969c1290a1 --- /dev/null +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/AwsPrincipalTagsOptionsOrBuilder.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/confidentialcomputing/v1/service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.confidentialcomputing.v1; + +public interface AwsPrincipalTagsOptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Optional. Principal tags to allow in the token.
    +   * 
    + * + * + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags allowed_principal_tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the allowedPrincipalTags field is set. + */ + boolean hasAllowedPrincipalTags(); + + /** + * + * + *
    +   * Optional. Principal tags to allow in the token.
    +   * 
    + * + * + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags allowed_principal_tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The allowedPrincipalTags. + */ + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags + getAllowedPrincipalTags(); + + /** + * + * + *
    +   * Optional. Principal tags to allow in the token.
    +   * 
    + * + * + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTags allowed_principal_tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.AllowedPrincipalTagsOrBuilder + getAllowedPrincipalTagsOrBuilder(); +} diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/GceShieldedIdentity.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/GceShieldedIdentity.java new file mode 100644 index 000000000000..6fd7206b9bd8 --- /dev/null +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/GceShieldedIdentity.java @@ -0,0 +1,805 @@ +/* + * 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/confidentialcomputing/v1/service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.confidentialcomputing.v1; + +/** + * + * + *
    + * GceShieldedIdentity contains information about a Compute Engine instance.
    + * 
    + * + * Protobuf type {@code google.cloud.confidentialcomputing.v1.GceShieldedIdentity} + */ +public final class GceShieldedIdentity extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1.GceShieldedIdentity) + GceShieldedIdentityOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GceShieldedIdentity.newBuilder() to construct. + private GceShieldedIdentity(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GceShieldedIdentity() { + akCert_ = com.google.protobuf.ByteString.EMPTY; + akCertChain_ = emptyList(com.google.protobuf.ByteString.class); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GceShieldedIdentity(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_GceShieldedIdentity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_GceShieldedIdentity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.GceShieldedIdentity.class, + com.google.cloud.confidentialcomputing.v1.GceShieldedIdentity.Builder.class); + } + + public static final int AK_CERT_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString akCert_ = com.google.protobuf.ByteString.EMPTY; + + /** + * + * + *
    +   * Optional. DER-encoded X.509 certificate of the Attestation Key (otherwise
    +   * known as an AK or a TPM restricted signing key) used to generate the
    +   * quotes.
    +   * 
    + * + * bytes ak_cert = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The akCert. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAkCert() { + return akCert_; + } + + public static final int AK_CERT_CHAIN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.ProtobufList akCertChain_ = + emptyList(com.google.protobuf.ByteString.class); + + /** + * + * + *
    +   * Optional. List of DER-encoded X.509 certificates which, together with the
    +   * ak_cert, chain back to a trusted Root Certificate.
    +   * 
    + * + * repeated bytes ak_cert_chain = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the akCertChain. + */ + @java.lang.Override + public java.util.List getAkCertChainList() { + return akCertChain_; + } + + /** + * + * + *
    +   * Optional. List of DER-encoded X.509 certificates which, together with the
    +   * ak_cert, chain back to a trusted Root Certificate.
    +   * 
    + * + * repeated bytes ak_cert_chain = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of akCertChain. + */ + public int getAkCertChainCount() { + return akCertChain_.size(); + } + + /** + * + * + *
    +   * Optional. List of DER-encoded X.509 certificates which, together with the
    +   * ak_cert, chain back to a trusted Root Certificate.
    +   * 
    + * + * repeated bytes ak_cert_chain = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The akCertChain at the given index. + */ + public com.google.protobuf.ByteString getAkCertChain(int index) { + return akCertChain_.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 (!akCert_.isEmpty()) { + output.writeBytes(1, akCert_); + } + for (int i = 0; i < akCertChain_.size(); i++) { + output.writeBytes(2, akCertChain_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!akCert_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, akCert_); + } + { + int dataSize = 0; + for (int i = 0; i < akCertChain_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag(akCertChain_.get(i)); + } + size += dataSize; + size += 1 * getAkCertChainList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.confidentialcomputing.v1.GceShieldedIdentity)) { + return super.equals(obj); + } + com.google.cloud.confidentialcomputing.v1.GceShieldedIdentity other = + (com.google.cloud.confidentialcomputing.v1.GceShieldedIdentity) obj; + + if (!getAkCert().equals(other.getAkCert())) return false; + if (!getAkCertChainList().equals(other.getAkCertChainList())) 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) + AK_CERT_FIELD_NUMBER; + hash = (53 * hash) + getAkCert().hashCode(); + if (getAkCertChainCount() > 0) { + hash = (37 * hash) + AK_CERT_CHAIN_FIELD_NUMBER; + hash = (53 * hash) + getAkCertChainList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.confidentialcomputing.v1.GceShieldedIdentity parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.GceShieldedIdentity 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.confidentialcomputing.v1.GceShieldedIdentity parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.GceShieldedIdentity parseFrom( + 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.confidentialcomputing.v1.GceShieldedIdentity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.GceShieldedIdentity parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.confidentialcomputing.v1.GceShieldedIdentity parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.GceShieldedIdentity 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.confidentialcomputing.v1.GceShieldedIdentity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.GceShieldedIdentity 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.confidentialcomputing.v1.GceShieldedIdentity parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.GceShieldedIdentity 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.confidentialcomputing.v1.GceShieldedIdentity prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
    +   * GceShieldedIdentity contains information about a Compute Engine instance.
    +   * 
    + * + * Protobuf type {@code google.cloud.confidentialcomputing.v1.GceShieldedIdentity} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.confidentialcomputing.v1.GceShieldedIdentity) + com.google.cloud.confidentialcomputing.v1.GceShieldedIdentityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_GceShieldedIdentity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_GceShieldedIdentity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.GceShieldedIdentity.class, + com.google.cloud.confidentialcomputing.v1.GceShieldedIdentity.Builder.class); + } + + // Construct using com.google.cloud.confidentialcomputing.v1.GceShieldedIdentity.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + akCert_ = com.google.protobuf.ByteString.EMPTY; + akCertChain_ = emptyList(com.google.protobuf.ByteString.class); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_GceShieldedIdentity_descriptor; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.GceShieldedIdentity + getDefaultInstanceForType() { + return com.google.cloud.confidentialcomputing.v1.GceShieldedIdentity.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.GceShieldedIdentity build() { + com.google.cloud.confidentialcomputing.v1.GceShieldedIdentity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.GceShieldedIdentity buildPartial() { + com.google.cloud.confidentialcomputing.v1.GceShieldedIdentity result = + new com.google.cloud.confidentialcomputing.v1.GceShieldedIdentity(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.confidentialcomputing.v1.GceShieldedIdentity result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.akCert_ = akCert_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + akCertChain_.makeImmutable(); + result.akCertChain_ = akCertChain_; + } + } + + @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.confidentialcomputing.v1.GceShieldedIdentity) { + return mergeFrom((com.google.cloud.confidentialcomputing.v1.GceShieldedIdentity) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.confidentialcomputing.v1.GceShieldedIdentity other) { + if (other + == com.google.cloud.confidentialcomputing.v1.GceShieldedIdentity.getDefaultInstance()) + return this; + if (other.getAkCert() != com.google.protobuf.ByteString.EMPTY) { + setAkCert(other.getAkCert()); + } + if (!other.akCertChain_.isEmpty()) { + if (akCertChain_.isEmpty()) { + akCertChain_ = other.akCertChain_; + akCertChain_.makeImmutable(); + bitField0_ |= 0x00000002; + } else { + ensureAkCertChainIsMutable(); + akCertChain_.addAll(other.akCertChain_); + } + 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: + { + akCert_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.protobuf.ByteString v = input.readBytes(); + ensureAkCertChainIsMutable(); + akCertChain_.add(v); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.ByteString akCert_ = com.google.protobuf.ByteString.EMPTY; + + /** + * + * + *
    +     * Optional. DER-encoded X.509 certificate of the Attestation Key (otherwise
    +     * known as an AK or a TPM restricted signing key) used to generate the
    +     * quotes.
    +     * 
    + * + * bytes ak_cert = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The akCert. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAkCert() { + return akCert_; + } + + /** + * + * + *
    +     * Optional. DER-encoded X.509 certificate of the Attestation Key (otherwise
    +     * known as an AK or a TPM restricted signing key) used to generate the
    +     * quotes.
    +     * 
    + * + * bytes ak_cert = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The akCert to set. + * @return This builder for chaining. + */ + public Builder setAkCert(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + akCert_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. DER-encoded X.509 certificate of the Attestation Key (otherwise
    +     * known as an AK or a TPM restricted signing key) used to generate the
    +     * quotes.
    +     * 
    + * + * bytes ak_cert = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAkCert() { + bitField0_ = (bitField0_ & ~0x00000001); + akCert_ = getDefaultInstance().getAkCert(); + onChanged(); + return this; + } + + private com.google.protobuf.Internal.ProtobufList akCertChain_ = + emptyList(com.google.protobuf.ByteString.class); + + private void ensureAkCertChainIsMutable() { + if (!akCertChain_.isModifiable()) { + akCertChain_ = makeMutableCopy(akCertChain_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
    +     * Optional. List of DER-encoded X.509 certificates which, together with the
    +     * ak_cert, chain back to a trusted Root Certificate.
    +     * 
    + * + * repeated bytes ak_cert_chain = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the akCertChain. + */ + public java.util.List getAkCertChainList() { + akCertChain_.makeImmutable(); + return akCertChain_; + } + + /** + * + * + *
    +     * Optional. List of DER-encoded X.509 certificates which, together with the
    +     * ak_cert, chain back to a trusted Root Certificate.
    +     * 
    + * + * repeated bytes ak_cert_chain = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of akCertChain. + */ + public int getAkCertChainCount() { + return akCertChain_.size(); + } + + /** + * + * + *
    +     * Optional. List of DER-encoded X.509 certificates which, together with the
    +     * ak_cert, chain back to a trusted Root Certificate.
    +     * 
    + * + * repeated bytes ak_cert_chain = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The akCertChain at the given index. + */ + public com.google.protobuf.ByteString getAkCertChain(int index) { + return akCertChain_.get(index); + } + + /** + * + * + *
    +     * Optional. List of DER-encoded X.509 certificates which, together with the
    +     * ak_cert, chain back to a trusted Root Certificate.
    +     * 
    + * + * repeated bytes ak_cert_chain = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The akCertChain to set. + * @return This builder for chaining. + */ + public Builder setAkCertChain(int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAkCertChainIsMutable(); + akCertChain_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. List of DER-encoded X.509 certificates which, together with the
    +     * ak_cert, chain back to a trusted Root Certificate.
    +     * 
    + * + * repeated bytes ak_cert_chain = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The akCertChain to add. + * @return This builder for chaining. + */ + public Builder addAkCertChain(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAkCertChainIsMutable(); + akCertChain_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. List of DER-encoded X.509 certificates which, together with the
    +     * ak_cert, chain back to a trusted Root Certificate.
    +     * 
    + * + * repeated bytes ak_cert_chain = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The akCertChain to add. + * @return This builder for chaining. + */ + public Builder addAllAkCertChain( + java.lang.Iterable values) { + ensureAkCertChainIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, akCertChain_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. List of DER-encoded X.509 certificates which, together with the
    +     * ak_cert, chain back to a trusted Root Certificate.
    +     * 
    + * + * repeated bytes ak_cert_chain = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAkCertChain() { + akCertChain_ = emptyList(com.google.protobuf.ByteString.class); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.confidentialcomputing.v1.GceShieldedIdentity) + } + + // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1.GceShieldedIdentity) + private static final com.google.cloud.confidentialcomputing.v1.GceShieldedIdentity + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.confidentialcomputing.v1.GceShieldedIdentity(); + } + + public static com.google.cloud.confidentialcomputing.v1.GceShieldedIdentity getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GceShieldedIdentity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.confidentialcomputing.v1.GceShieldedIdentity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/GceShieldedIdentityOrBuilder.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/GceShieldedIdentityOrBuilder.java new file mode 100644 index 000000000000..72c093396ced --- /dev/null +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/GceShieldedIdentityOrBuilder.java @@ -0,0 +1,84 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/confidentialcomputing/v1/service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.confidentialcomputing.v1; + +public interface GceShieldedIdentityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1.GceShieldedIdentity) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Optional. DER-encoded X.509 certificate of the Attestation Key (otherwise
    +   * known as an AK or a TPM restricted signing key) used to generate the
    +   * quotes.
    +   * 
    + * + * bytes ak_cert = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The akCert. + */ + com.google.protobuf.ByteString getAkCert(); + + /** + * + * + *
    +   * Optional. List of DER-encoded X.509 certificates which, together with the
    +   * ak_cert, chain back to a trusted Root Certificate.
    +   * 
    + * + * repeated bytes ak_cert_chain = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the akCertChain. + */ + java.util.List getAkCertChainList(); + + /** + * + * + *
    +   * Optional. List of DER-encoded X.509 certificates which, together with the
    +   * ak_cert, chain back to a trusted Root Certificate.
    +   * 
    + * + * repeated bytes ak_cert_chain = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of akCertChain. + */ + int getAkCertChainCount(); + + /** + * + * + *
    +   * Optional. List of DER-encoded X.509 certificates which, together with the
    +   * ak_cert, chain back to a trusted Root Certificate.
    +   * 
    + * + * repeated bytes ak_cert_chain = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The akCertChain at the given index. + */ + com.google.protobuf.ByteString getAkCertChain(int index); +} diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ServiceProto.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ServiceProto.java index b587fd376e8d..6d94372ab5dd 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ServiceProto.java +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ServiceProto.java @@ -61,17 +61,17 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_descriptor; + internal_static_google_cloud_confidentialcomputing_v1_AwsPrincipalTagsOptions_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_fieldAccessorTable; + internal_static_google_cloud_confidentialcomputing_v1_AwsPrincipalTagsOptions_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_AllowedPrincipalTags_descriptor; + internal_static_google_cloud_confidentialcomputing_v1_AwsPrincipalTagsOptions_AllowedPrincipalTags_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_AllowedPrincipalTags_fieldAccessorTable; + internal_static_google_cloud_confidentialcomputing_v1_AwsPrincipalTagsOptions_AllowedPrincipalTags_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_AllowedPrincipalTags_ContainerImageSignatures_descriptor; + internal_static_google_cloud_confidentialcomputing_v1_AwsPrincipalTagsOptions_AllowedPrincipalTags_ContainerImageSignatures_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_AllowedPrincipalTags_ContainerImageSignatures_fieldAccessorTable; + internal_static_google_cloud_confidentialcomputing_v1_AwsPrincipalTagsOptions_AllowedPrincipalTags_ContainerImageSignatures_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -96,6 +96,30 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_confidentialcomputing_v1_ContainerImageSignature_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_confidentialcomputing_v1_ContainerImageSignature_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialSpaceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialSpaceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialSpaceRequest_ConfidentialSpaceOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialSpaceRequest_ConfidentialSpaceOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_confidentialcomputing_v1_GceShieldedIdentity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1_GceShieldedIdentity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialSpaceResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialSpaceResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialGkeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialGkeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialGkeResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialGkeResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -154,25 +178,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021oidc_claims_token\030\002 \001(\tB\003\340A\003\022/\n" + "\016partial_errors\030\003 \003(\0132\022.google.rpc.StatusB\003\340A\003\"3\n" + "\016GcpCredentials\022!\n" - + "\031service_account_id_tokens\030\002 \003(\t\"\246\005\n" - + "\014TokenOptions\022v\n" - + "\032aws_principal_tags_options\030\004 \001(\0132K.google.cloud.confidentialco" - + "mputing.v1.TokenOptions.AwsPrincipalTagsOptionsB\003\340A\001H\000\022\025\n" + + "\031service_account_id_tokens\030\002 \003(\t\"\205\002\n" + + "\014TokenOptions\022i\n" + + "\032aws_principal_tags_options\030\004 \001(\0132>.google.cloud.confidentialco" + + "mputing.v1.AwsPrincipalTagsOptionsB\003\340A\001H\000\022\025\n" + "\010audience\030\001 \001(\tB\003\340A\001\022\022\n" + "\005nonce\030\002 \003(\tB\003\340A\001\022I\n\n" - + "token_type\030\003 \001(\01620." - + "google.cloud.confidentialcomputing.v1.TokenTypeB\003\340A\001\032\221\003\n" - + "\027AwsPrincipalTagsOptions\022\205\001\n" - + "\026allowed_principal_tags\030\001 \001(\0132`.goog" - + "le.cloud.confidentialcomputing.v1.TokenO" - + "ptions.AwsPrincipalTagsOptions.AllowedPrincipalTagsB\003\340A\001\032\355\001\n" - + "\024AllowedPrincipalTags\022\242\001\n" - + "\032container_image_signatures\030\001 \001(\0132y" - + ".google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.Allo" - + "wedPrincipalTags.ContainerImageSignaturesB\003\340A\001\0320\n" + + "token_type\030\003 \001(\01620.google.cloud." + + "confidentialcomputing.v1.TokenTypeB\003\340A\001B\024\n" + + "\022token_type_options\"\366\002\n" + + "\027AwsPrincipalTagsOptions\022x\n" + + "\026allowed_principal_tags\030\001 \001(\0132S.google.cloud.confidentialcomputing.v" + + "1.AwsPrincipalTagsOptions.AllowedPrincipalTagsB\003\340A\001\032\340\001\n" + + "\024AllowedPrincipalTags\022\225\001\n" + + "\032container_image_signatures\030\001 \001(\0132l.goog" + + "le.cloud.confidentialcomputing.v1.AwsPri" + + "ncipalTagsOptions.AllowedPrincipalTags.ContainerImageSignaturesB\003\340A\001\0320\n" + "\030ContainerImageSignatures\022\024\n" - + "\007key_ids\030\001 \003(\tB\003\340A\001B\024\n" - + "\022token_type_options\"\217\003\n" + + "\007key_ids\030\001 \003(\tB\003\340A\001\"\217\003\n" + "\016TpmAttestation\022K\n" + "\006quotes\030\001 \003(\0132;.goog" + "le.cloud.confidentialcomputing.v1.TpmAttestation.Quote\022\025\n\r" @@ -200,7 +223,47 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tsignature\030\002 \001(\014B\003\340A\001\022\027\n\n" + "public_key\030\003 \001(\014B\003\340A\001\022M\n" + "\007sig_alg\030\004 \001(\01627.google.cloud" - + ".confidentialcomputing.v1.SigningAlgorithmB\003\340A\001*\177\n" + + ".confidentialcomputing.v1.SigningAlgorithmB\003\340A\001\"\226\010\n" + + "\036VerifyConfidentialSpaceRequest\022Q\n" + + "\007td_ccel\030\003 \001(\01329.google.cloud.confi" + + "dentialcomputing.v1.TdxCcelAttestationB\003\340A\004H\000\022U\n" + + "\017tpm_attestation\030\004 \001(\01325.google." + + "cloud.confidentialcomputing.v1.TpmAttestationB\003\340A\004H\000\022I\n" + + "\tchallenge\030\001 \001(\tB6\340A\002\372A0\n" + + ".confidentialcomputing.googleapis.com/Challenge\022S\n" + + "\017gcp_credentials\030\002 \001(\01325.googl" + + "e.cloud.confidentialcomputing.v1.GcpCredentialsB\003\340A\001\022Q\n" + + "\017signed_entities\030\005 \003(\01323." + + "google.cloud.confidentialcomputing.v1.SignedEntityB\003\340A\001\022^\n" + + "\025gce_shielded_identity\030\006" + + " \001(\0132:.google.cloud.confidentialcomputing.v1.GceShieldedIdentityB\003\340A\001\022t\n" + + "\007options\030\007 \001(\0132^.google.cloud.confidentialcomp" + + "uting.v1.VerifyConfidentialSpaceRequest.ConfidentialSpaceOptionsB\003\340A\001\032\355\002\n" + + "\030ConfidentialSpaceOptions\022i\n" + + "\032aws_principal_tags_options\030\005 \001(\0132>.google.cloud.confidenti" + + "alcomputing.v1.AwsPrincipalTagsOptionsB\003\340A\001H\000\022\025\n" + + "\010audience\030\001 \001(\tB\003\340A\001\022O\n\r" + + "token_profile\030\002" + + " \001(\01623.google.cloud.confidentialcomputing.v1.TokenProfileB\003\340A\001\022\022\n" + + "\005nonce\030\003 \003(\tB\003\340A\001\022Q\n" + + "\016signature_type\030\004 \001(\01624.goog" + + "le.cloud.confidentialcomputing.v1.SignatureTypeB\003\340A\001B\027\n" + + "\025token_profile_optionsB\021\n" + + "\017tee_attestation\"G\n" + + "\023GceShieldedIdentity\022\024\n" + + "\007ak_cert\030\001 \001(\014B\003\340A\001\022\032\n\r" + + "ak_cert_chain\030\002 \003(\014B\003\340A\001\"r\n" + + "\037VerifyConfidentialSpaceResponse\022\036\n" + + "\021attestation_token\030\001 \001(\tB\003\340A\003\022/\n" + + "\016partial_errors\030\002 \003(\0132\022.google.rpc.StatusB\003\340A\003\"\316\001\n" + + "\034VerifyConfidentialGkeRequest\022P\n" + + "\017tpm_attestation\030\002 \001(\01325.google.cloud.c" + + "onfidentialcomputing.v1.TpmAttestationH\000\022I\n" + + "\tchallenge\030\001 \001(\tB6\340A\002\372A0\n" + + ".confidentialcomputing.googleapis.com/ChallengeB\021\n" + + "\017tee_attestation\"?\n" + + "\035VerifyConfidentialGkeResponse\022\036\n" + + "\021attestation_token\030\001 \001(\tB\003\340A\003*\177\n" + "\020SigningAlgorithm\022!\n" + "\035SIGNING_ALGORITHM_UNSPECIFIED\020\000\022\025\n" + "\021RSASSA_PSS_SHA256\020\001\022\032\n" @@ -211,23 +274,42 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017TOKEN_TYPE_OIDC\020\001\022\022\n" + "\016TOKEN_TYPE_PKI\020\002\022\032\n" + "\026TOKEN_TYPE_LIMITED_AWS\020\003\022 \n" - + "\034TOKEN_TYPE_AWS_PRINCIPALTAGS\020\0042\267\004\n" + + "\034TOKEN_TYPE_AWS_PRINCIPALTAGS\020\004*`\n\r" + + "SignatureType\022\036\n" + + "\032SIGNATURE_TYPE_UNSPECIFIED\020\000\022\027\n" + + "\023SIGNATURE_TYPE_OIDC\020\001\022\026\n" + + "\022SIGNATURE_TYPE_PKI\020\002*c\n" + + "\014TokenProfile\022\035\n" + + "\031TOKEN_PROFILE_UNSPECIFIED\020\000\022\035\n" + + "\031TOKEN_PROFILE_DEFAULT_EAT\020\001\022\025\n" + + "\021TOKEN_PROFILE_AWS\020\0022\265\010\n" + "\025ConfidentialComputing\022\330\001\n" - + "\017CreateChallenge\022=.google.cloud.confidentialcompu" - + "ting.v1.CreateChallengeRequest\0320.google.cloud.confidentialcomputing.v1.Challenge" - + "\"T\332A\020parent,challenge\202\323\344\223\002;\"./v1/{parent=projects/*/locations/*}/challenges:" + + "\017CreateChallenge\022=.google.cloud.confidentialcomputing.v1.C" + + "reateChallengeRequest\0320.google.cloud.con" + + "fidentialcomputing.v1.Challenge\"T\332A\020pare" + + "nt,challenge\202\323\344\223\002;\"./v1/{parent=projects/*/locations/*}/challenges:" + "\tchallenge\022\350\001\n" - + "\021VerifyAttestation\022?.google.cloud.confidentialcomputing.v1.VerifyAttes" - + "tationRequest\032@.google.cloud.confidentialcomputing.v1.VerifyAttestationResponse\"" - + "P\202\323\344\223\002J\"E/v1/{challenge=projects/*/locat" - + "ions/*/challenges/*}:verifyAttestation:\001" - + "*\032X\312A$confidentialcomputing.googleapis.c" - + "om\322A.https://www.googleapis.com/auth/cloud-platformB\227\002\n" - + ")com.google.cloud.confidentialcomputing.v1B\014ServiceProtoP\001Z_cloud" - + ".google.com/go/confidentialcomputing/apiv1/confidentialcomputingpb;confidentialc" - + "omputingpb\252\002%Google.Cloud.ConfidentialCo" - + "mputing.V1\312\002%Google\\Cloud\\ConfidentialCo" - + "mputing\\V1\352\002(Google::Cloud::ConfidentialComputing::V1b\006proto3" + + "\021VerifyAttestation\022?.google.cloud.confidentialcomputing.v1.VerifyAttestationReq" + + "uest\032@.google.cloud.confidentialcomputin" + + "g.v1.VerifyAttestationResponse\"P\202\323\344\223\002J\"E" + + "/v1/{challenge=projects/*/locations/*/challenges/*}:verifyAttestation:\001*\022\200\002\n" + + "\027VerifyConfidentialSpace\022E.google.cloud.conf" + + "identialcomputing.v1.VerifyConfidentialSpaceRequest\032F.google.cloud.confidentialc" + + "omputing.v1.VerifyConfidentialSpaceRespo" + + "nse\"V\202\323\344\223\002P\"K/v1/{challenge=projects/*/l" + + "ocations/*/challenges/*}:verifyConfidentialSpace:\001*\022\370\001\n" + + "\025VerifyConfidentialGke\022C.google.cloud.confidentialcomputing.v1.Ve" + + "rifyConfidentialGkeRequest\032D.google.cloud.confidentialcomputing.v1.VerifyConfide" + + "ntialGkeResponse\"T\202\323\344\223\002N\"I/v1/{challenge" + + "=projects/*/locations/*/challenges/*}:ve" + + "rifyConfidentialGke:\001*\032X\312A$confidentialc" + + "omputing.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\227\002\n" + + ")com.google.cloud.confidentialcomputing.v1B\014" + + "ServiceProtoP\001Z_cloud.google.com/go/confidentialcomputing/apiv1/confidentialcomp" + + "utingpb;confidentialcomputingpb\252\002%Google" + + ".Cloud.ConfidentialComputing.V1\312\002%Google" + + "\\Cloud\\ConfidentialComputing\\V1\352\002(Google" + + "::Cloud::ConfidentialComputing::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -312,38 +394,36 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "AwsPrincipalTagsOptions", "Audience", "Nonce", "TokenType", "TokenTypeOptions", }); - internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_descriptor = - internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_fieldAccessorTable = + internal_static_google_cloud_confidentialcomputing_v1_AwsPrincipalTagsOptions_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_confidentialcomputing_v1_AwsPrincipalTagsOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_descriptor, + internal_static_google_cloud_confidentialcomputing_v1_AwsPrincipalTagsOptions_descriptor, new java.lang.String[] { "AllowedPrincipalTags", }); - internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_AllowedPrincipalTags_descriptor = - internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_descriptor + internal_static_google_cloud_confidentialcomputing_v1_AwsPrincipalTagsOptions_AllowedPrincipalTags_descriptor = + internal_static_google_cloud_confidentialcomputing_v1_AwsPrincipalTagsOptions_descriptor .getNestedTypes() .get(0); - internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_AllowedPrincipalTags_fieldAccessorTable = + internal_static_google_cloud_confidentialcomputing_v1_AwsPrincipalTagsOptions_AllowedPrincipalTags_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_AllowedPrincipalTags_descriptor, + internal_static_google_cloud_confidentialcomputing_v1_AwsPrincipalTagsOptions_AllowedPrincipalTags_descriptor, new java.lang.String[] { "ContainerImageSignatures", }); - internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_AllowedPrincipalTags_ContainerImageSignatures_descriptor = - internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_AllowedPrincipalTags_descriptor + internal_static_google_cloud_confidentialcomputing_v1_AwsPrincipalTagsOptions_AllowedPrincipalTags_ContainerImageSignatures_descriptor = + internal_static_google_cloud_confidentialcomputing_v1_AwsPrincipalTagsOptions_AllowedPrincipalTags_descriptor .getNestedTypes() .get(0); - internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_AllowedPrincipalTags_ContainerImageSignatures_fieldAccessorTable = + internal_static_google_cloud_confidentialcomputing_v1_AwsPrincipalTagsOptions_AllowedPrincipalTags_ContainerImageSignatures_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_AllowedPrincipalTags_ContainerImageSignatures_descriptor, + internal_static_google_cloud_confidentialcomputing_v1_AwsPrincipalTagsOptions_AllowedPrincipalTags_ContainerImageSignatures_descriptor, new java.lang.String[] { "KeyIds", }); internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(9); internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_confidentialcomputing_v1_TpmAttestation_descriptor, @@ -371,7 +451,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_confidentialcomputing_v1_ConfidentialSpaceInfo_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(10); internal_static_google_cloud_confidentialcomputing_v1_ConfidentialSpaceInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_confidentialcomputing_v1_ConfidentialSpaceInfo_descriptor, @@ -379,7 +459,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SignedEntities", }); internal_static_google_cloud_confidentialcomputing_v1_SignedEntity_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(11); internal_static_google_cloud_confidentialcomputing_v1_SignedEntity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_confidentialcomputing_v1_SignedEntity_descriptor, @@ -387,13 +467,75 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ContainerImageSignatures", }); internal_static_google_cloud_confidentialcomputing_v1_ContainerImageSignature_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_confidentialcomputing_v1_ContainerImageSignature_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_confidentialcomputing_v1_ContainerImageSignature_descriptor, new java.lang.String[] { "Payload", "Signature", "PublicKey", "SigAlg", }); + internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialSpaceRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialSpaceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialSpaceRequest_descriptor, + new java.lang.String[] { + "TdCcel", + "TpmAttestation", + "Challenge", + "GcpCredentials", + "SignedEntities", + "GceShieldedIdentity", + "Options", + "TeeAttestation", + }); + internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialSpaceRequest_ConfidentialSpaceOptions_descriptor = + internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialSpaceRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialSpaceRequest_ConfidentialSpaceOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialSpaceRequest_ConfidentialSpaceOptions_descriptor, + new java.lang.String[] { + "AwsPrincipalTagsOptions", + "Audience", + "TokenProfile", + "Nonce", + "SignatureType", + "TokenProfileOptions", + }); + internal_static_google_cloud_confidentialcomputing_v1_GceShieldedIdentity_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_confidentialcomputing_v1_GceShieldedIdentity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1_GceShieldedIdentity_descriptor, + new java.lang.String[] { + "AkCert", "AkCertChain", + }); + internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialSpaceResponse_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialSpaceResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialSpaceResponse_descriptor, + new java.lang.String[] { + "AttestationToken", "PartialErrors", + }); + internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialGkeRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialGkeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialGkeRequest_descriptor, + new java.lang.String[] { + "TpmAttestation", "Challenge", "TeeAttestation", + }); + internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialGkeResponse_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialGkeResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialGkeResponse_descriptor, + new java.lang.String[] { + "AttestationToken", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/SignatureType.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/SignatureType.java new file mode 100644 index 000000000000..b3a511a952b4 --- /dev/null +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/SignatureType.java @@ -0,0 +1,181 @@ +/* + * 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/confidentialcomputing/v1/service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.confidentialcomputing.v1; + +/** + * + * + *
    + * SignatureType enumerates supported signature types for attestation tokens.
    + * 
    + * + * Protobuf enum {@code google.cloud.confidentialcomputing.v1.SignatureType} + */ +public enum SignatureType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +   * Unspecified signature type.
    +   * 
    + * + * SIGNATURE_TYPE_UNSPECIFIED = 0; + */ + SIGNATURE_TYPE_UNSPECIFIED(0), + /** + * + * + *
    +   * Google OIDC signature.
    +   * 
    + * + * SIGNATURE_TYPE_OIDC = 1; + */ + SIGNATURE_TYPE_OIDC(1), + /** + * + * + *
    +   * Public Key Infrastructure (PKI) signature.
    +   * 
    + * + * SIGNATURE_TYPE_PKI = 2; + */ + SIGNATURE_TYPE_PKI(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +   * Unspecified signature type.
    +   * 
    + * + * SIGNATURE_TYPE_UNSPECIFIED = 0; + */ + public static final int SIGNATURE_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +   * Google OIDC signature.
    +   * 
    + * + * SIGNATURE_TYPE_OIDC = 1; + */ + public static final int SIGNATURE_TYPE_OIDC_VALUE = 1; + + /** + * + * + *
    +   * Public Key Infrastructure (PKI) signature.
    +   * 
    + * + * SIGNATURE_TYPE_PKI = 2; + */ + public static final int SIGNATURE_TYPE_PKI_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 SignatureType 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 SignatureType forNumber(int value) { + switch (value) { + case 0: + return SIGNATURE_TYPE_UNSPECIFIED; + case 1: + return SIGNATURE_TYPE_OIDC; + case 2: + return SIGNATURE_TYPE_PKI; + 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 SignatureType findValueByNumber(int number) { + return SignatureType.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.confidentialcomputing.v1.ServiceProto.getDescriptor() + .getEnumTypes() + .get(2); + } + + private static final SignatureType[] VALUES = values(); + + public static SignatureType 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 SignatureType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.confidentialcomputing.v1.SignatureType) +} diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TokenOptions.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TokenOptions.java index 18b024006697..0b41a776ce2f 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TokenOptions.java +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TokenOptions.java @@ -66,2692 +66,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.confidentialcomputing.v1.TokenOptions.Builder.class); } - public interface AwsPrincipalTagsOptionsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
    -     * Optional. Principal tags to allow in the token.
    -     * 
    - * - * - * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags allowed_principal_tags = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the allowedPrincipalTags field is set. - */ - boolean hasAllowedPrincipalTags(); - - /** - * - * - *
    -     * Optional. Principal tags to allow in the token.
    -     * 
    - * - * - * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags allowed_principal_tags = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The allowedPrincipalTags. - */ - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags - getAllowedPrincipalTags(); - - /** - * - * - *
    -     * Optional. Principal tags to allow in the token.
    -     * 
    - * - * - * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags allowed_principal_tags = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTagsOrBuilder - getAllowedPrincipalTagsOrBuilder(); - } - - /** - * - * - *
    -   * Token options that only apply to the AWS Principal Tags token type.
    -   * 
    - * - * Protobuf type {@code - * google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions} - */ - public static final class AwsPrincipalTagsOptions extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions) - AwsPrincipalTagsOptionsOrBuilder { - private static final long serialVersionUID = 0L; - - // Use AwsPrincipalTagsOptions.newBuilder() to construct. - private AwsPrincipalTagsOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AwsPrincipalTagsOptions() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AwsPrincipalTagsOptions(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.confidentialcomputing.v1.ServiceProto - .internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.confidentialcomputing.v1.ServiceProto - .internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.class, - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.Builder - .class); - } - - public interface AllowedPrincipalTagsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
    -       * Optional. Container image signatures allowed in the token.
    -       * 
    - * - * - * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the containerImageSignatures field is set. - */ - boolean hasContainerImageSignatures(); - - /** - * - * - *
    -       * Optional. Container image signatures allowed in the token.
    -       * 
    - * - * - * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The containerImageSignatures. - */ - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignatures - getContainerImageSignatures(); - - /** - * - * - *
    -       * Optional. Container image signatures allowed in the token.
    -       * 
    - * - * - * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignaturesOrBuilder - getContainerImageSignaturesOrBuilder(); - } - - /** - * - * - *
    -     * Allowed principal tags is used to define what principal tags will be
    -     * placed in the token.
    -     * 
    - * - * Protobuf type {@code - * google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags} - */ - public static final class AllowedPrincipalTags extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags) - AllowedPrincipalTagsOrBuilder { - private static final long serialVersionUID = 0L; - - // Use AllowedPrincipalTags.newBuilder() to construct. - private AllowedPrincipalTags(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AllowedPrincipalTags() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AllowedPrincipalTags(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.confidentialcomputing.v1.ServiceProto - .internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_AllowedPrincipalTags_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.confidentialcomputing.v1.ServiceProto - .internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_AllowedPrincipalTags_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.class, - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.Builder.class); - } - - public interface ContainerImageSignaturesOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
    -         * Optional. List of key ids to filter into the Principal tags. Only
    -         * keys that have been validated and added to the token will be filtered
    -         * into principal tags. Unrecognized key ids will be ignored.
    -         * 
    - * - * repeated string key_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the keyIds. - */ - java.util.List getKeyIdsList(); - - /** - * - * - *
    -         * Optional. List of key ids to filter into the Principal tags. Only
    -         * keys that have been validated and added to the token will be filtered
    -         * into principal tags. Unrecognized key ids will be ignored.
    -         * 
    - * - * repeated string key_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of keyIds. - */ - int getKeyIdsCount(); - - /** - * - * - *
    -         * Optional. List of key ids to filter into the Principal tags. Only
    -         * keys that have been validated and added to the token will be filtered
    -         * into principal tags. Unrecognized key ids will be ignored.
    -         * 
    - * - * repeated string key_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The keyIds at the given index. - */ - java.lang.String getKeyIds(int index); - - /** - * - * - *
    -         * Optional. List of key ids to filter into the Principal tags. Only
    -         * keys that have been validated and added to the token will be filtered
    -         * into principal tags. Unrecognized key ids will be ignored.
    -         * 
    - * - * repeated string key_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the keyIds at the given index. - */ - com.google.protobuf.ByteString getKeyIdsBytes(int index); - } - - /** - * - * - *
    -       * Allowed Container Image Signatures. Key IDs are required to allow this
    -       * claim to fit within the narrow AWS IAM restrictions.
    -       * 
    - * - * Protobuf type {@code - * google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures} - */ - public static final class ContainerImageSignatures - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures) - ContainerImageSignaturesOrBuilder { - private static final long serialVersionUID = 0L; - - // Use ContainerImageSignatures.newBuilder() to construct. - private ContainerImageSignatures( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ContainerImageSignatures() { - keyIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ContainerImageSignatures(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.confidentialcomputing.v1.ServiceProto - .internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_AllowedPrincipalTags_ContainerImageSignatures_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.confidentialcomputing.v1.ServiceProto - .internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_AllowedPrincipalTags_ContainerImageSignatures_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignatures.class, - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignatures.Builder.class); - } - - public static final int KEY_IDS_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList keyIds_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - /** - * - * - *
    -         * Optional. List of key ids to filter into the Principal tags. Only
    -         * keys that have been validated and added to the token will be filtered
    -         * into principal tags. Unrecognized key ids will be ignored.
    -         * 
    - * - * repeated string key_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the keyIds. - */ - public com.google.protobuf.ProtocolStringList getKeyIdsList() { - return keyIds_; - } - - /** - * - * - *
    -         * Optional. List of key ids to filter into the Principal tags. Only
    -         * keys that have been validated and added to the token will be filtered
    -         * into principal tags. Unrecognized key ids will be ignored.
    -         * 
    - * - * repeated string key_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of keyIds. - */ - public int getKeyIdsCount() { - return keyIds_.size(); - } - - /** - * - * - *
    -         * Optional. List of key ids to filter into the Principal tags. Only
    -         * keys that have been validated and added to the token will be filtered
    -         * into principal tags. Unrecognized key ids will be ignored.
    -         * 
    - * - * repeated string key_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The keyIds at the given index. - */ - public java.lang.String getKeyIds(int index) { - return keyIds_.get(index); - } - - /** - * - * - *
    -         * Optional. List of key ids to filter into the Principal tags. Only
    -         * keys that have been validated and added to the token will be filtered
    -         * into principal tags. Unrecognized key ids will be ignored.
    -         * 
    - * - * repeated string key_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the keyIds at the given index. - */ - public com.google.protobuf.ByteString getKeyIdsBytes(int index) { - return keyIds_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < keyIds_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, keyIds_.getRaw(i)); - } - 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 < keyIds_.size(); i++) { - dataSize += computeStringSizeNoTag(keyIds_.getRaw(i)); - } - size += dataSize; - size += 1 * getKeyIdsList().size(); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignatures)) { - return super.equals(obj); - } - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignatures - other = - (com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignatures) - obj; - - if (!getKeyIdsList().equals(other.getKeyIdsList())) 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 (getKeyIdsCount() > 0) { - hash = (37 * hash) + KEY_IDS_FIELD_NUMBER; - hash = (53 * hash) + getKeyIdsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignatures - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignatures - 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.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignatures - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignatures - parseFrom( - 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.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignatures - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignatures - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignatures - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignatures - 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.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignatures - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignatures - 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.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignatures - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignatures - 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.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignatures - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - - /** - * - * - *
    -         * Allowed Container Image Signatures. Key IDs are required to allow this
    -         * claim to fit within the narrow AWS IAM restrictions.
    -         * 
    - * - * Protobuf type {@code - * google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures) - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignaturesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.confidentialcomputing.v1.ServiceProto - .internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_AllowedPrincipalTags_ContainerImageSignatures_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.confidentialcomputing.v1.ServiceProto - .internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_AllowedPrincipalTags_ContainerImageSignatures_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignatures.class, - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignatures.Builder.class); - } - - // Construct using - // com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - keyIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.confidentialcomputing.v1.ServiceProto - .internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_AllowedPrincipalTags_ContainerImageSignatures_descriptor; - } - - @java.lang.Override - public com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignatures - getDefaultInstanceForType() { - return com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignatures.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignatures - build() { - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignatures - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignatures - buildPartial() { - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignatures - result = - new com.google.cloud.confidentialcomputing.v1.TokenOptions - .AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures( - this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignatures - result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - keyIds_.makeImmutable(); - result.keyIds_ = keyIds_; - } - } - - @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.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignatures) { - return mergeFrom( - (com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignatures) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignatures - other) { - if (other - == com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignatures.getDefaultInstance()) - return this; - if (!other.keyIds_.isEmpty()) { - if (keyIds_.isEmpty()) { - keyIds_ = other.keyIds_; - bitField0_ |= 0x00000001; - } else { - ensureKeyIdsIsMutable(); - keyIds_.addAll(other.keyIds_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureKeyIdsIsMutable(); - keyIds_.add(s); - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.protobuf.LazyStringArrayList keyIds_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureKeyIdsIsMutable() { - if (!keyIds_.isModifiable()) { - keyIds_ = new com.google.protobuf.LazyStringArrayList(keyIds_); - } - bitField0_ |= 0x00000001; - } - - /** - * - * - *
    -           * Optional. List of key ids to filter into the Principal tags. Only
    -           * keys that have been validated and added to the token will be filtered
    -           * into principal tags. Unrecognized key ids will be ignored.
    -           * 
    - * - * repeated string key_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the keyIds. - */ - public com.google.protobuf.ProtocolStringList getKeyIdsList() { - keyIds_.makeImmutable(); - return keyIds_; - } - - /** - * - * - *
    -           * Optional. List of key ids to filter into the Principal tags. Only
    -           * keys that have been validated and added to the token will be filtered
    -           * into principal tags. Unrecognized key ids will be ignored.
    -           * 
    - * - * repeated string key_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of keyIds. - */ - public int getKeyIdsCount() { - return keyIds_.size(); - } - - /** - * - * - *
    -           * Optional. List of key ids to filter into the Principal tags. Only
    -           * keys that have been validated and added to the token will be filtered
    -           * into principal tags. Unrecognized key ids will be ignored.
    -           * 
    - * - * repeated string key_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The keyIds at the given index. - */ - public java.lang.String getKeyIds(int index) { - return keyIds_.get(index); - } - - /** - * - * - *
    -           * Optional. List of key ids to filter into the Principal tags. Only
    -           * keys that have been validated and added to the token will be filtered
    -           * into principal tags. Unrecognized key ids will be ignored.
    -           * 
    - * - * repeated string key_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the keyIds at the given index. - */ - public com.google.protobuf.ByteString getKeyIdsBytes(int index) { - return keyIds_.getByteString(index); - } - - /** - * - * - *
    -           * Optional. List of key ids to filter into the Principal tags. Only
    -           * keys that have been validated and added to the token will be filtered
    -           * into principal tags. Unrecognized key ids will be ignored.
    -           * 
    - * - * repeated string key_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The keyIds to set. - * @return This builder for chaining. - */ - public Builder setKeyIds(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureKeyIdsIsMutable(); - keyIds_.set(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
    -           * Optional. List of key ids to filter into the Principal tags. Only
    -           * keys that have been validated and added to the token will be filtered
    -           * into principal tags. Unrecognized key ids will be ignored.
    -           * 
    - * - * repeated string key_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The keyIds to add. - * @return This builder for chaining. - */ - public Builder addKeyIds(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureKeyIdsIsMutable(); - keyIds_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
    -           * Optional. List of key ids to filter into the Principal tags. Only
    -           * keys that have been validated and added to the token will be filtered
    -           * into principal tags. Unrecognized key ids will be ignored.
    -           * 
    - * - * repeated string key_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The keyIds to add. - * @return This builder for chaining. - */ - public Builder addAllKeyIds(java.lang.Iterable values) { - ensureKeyIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, keyIds_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
    -           * Optional. List of key ids to filter into the Principal tags. Only
    -           * keys that have been validated and added to the token will be filtered
    -           * into principal tags. Unrecognized key ids will be ignored.
    -           * 
    - * - * repeated string key_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearKeyIds() { - keyIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; - onChanged(); - return this; - } - - /** - * - * - *
    -           * Optional. List of key ids to filter into the Principal tags. Only
    -           * keys that have been validated and added to the token will be filtered
    -           * into principal tags. Unrecognized key ids will be ignored.
    -           * 
    - * - * repeated string key_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the keyIds to add. - * @return This builder for chaining. - */ - public Builder addKeyIdsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureKeyIdsIsMutable(); - keyIds_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures) - } - - // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures) - private static final com.google.cloud.confidentialcomputing.v1.TokenOptions - .AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignatures(); - } - - public static com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignatures - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ContainerImageSignatures parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static 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.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignatures - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int bitField0_; - public static final int CONTAINER_IMAGE_SIGNATURES_FIELD_NUMBER = 1; - private com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignatures - containerImageSignatures_; - - /** - * - * - *
    -       * Optional. Container image signatures allowed in the token.
    -       * 
    - * - * - * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the containerImageSignatures field is set. - */ - @java.lang.Override - public boolean hasContainerImageSignatures() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
    -       * Optional. Container image signatures allowed in the token.
    -       * 
    - * - * - * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The containerImageSignatures. - */ - @java.lang.Override - public com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignatures - getContainerImageSignatures() { - return containerImageSignatures_ == null - ? com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignatures.getDefaultInstance() - : containerImageSignatures_; - } - - /** - * - * - *
    -       * Optional. Container image signatures allowed in the token.
    -       * 
    - * - * - * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignaturesOrBuilder - getContainerImageSignaturesOrBuilder() { - return containerImageSignatures_ == null - ? com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignatures.getDefaultInstance() - : containerImageSignatures_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - 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, getContainerImageSignatures()); - } - 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, getContainerImageSignatures()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = 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.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags)) { - return super.equals(obj); - } - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags - other = - (com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags) - obj; - - if (hasContainerImageSignatures() != other.hasContainerImageSignatures()) return false; - if (hasContainerImageSignatures()) { - if (!getContainerImageSignatures().equals(other.getContainerImageSignatures())) - 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 (hasContainerImageSignatures()) { - hash = (37 * hash) + CONTAINER_IMAGE_SIGNATURES_FIELD_NUMBER; - hash = (53 * hash) + getContainerImageSignatures().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags - 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.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags - parseFrom( - 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.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags - 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.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags - 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.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags - 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.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - - /** - * - * - *
    -       * Allowed principal tags is used to define what principal tags will be
    -       * placed in the token.
    -       * 
    - * - * Protobuf type {@code - * google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags) - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTagsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.confidentialcomputing.v1.ServiceProto - .internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_AllowedPrincipalTags_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.confidentialcomputing.v1.ServiceProto - .internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_AllowedPrincipalTags_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.class, - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.Builder.class); - } - - // Construct using - // com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getContainerImageSignaturesFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - containerImageSignatures_ = null; - if (containerImageSignaturesBuilder_ != null) { - containerImageSignaturesBuilder_.dispose(); - containerImageSignaturesBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.confidentialcomputing.v1.ServiceProto - .internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_AllowedPrincipalTags_descriptor; - } - - @java.lang.Override - public com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags - getDefaultInstanceForType() { - return com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags - build() { - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags - buildPartial() { - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags - result = - new com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags - result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.containerImageSignatures_ = - containerImageSignaturesBuilder_ == null - ? containerImageSignatures_ - : containerImageSignaturesBuilder_.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.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags) { - return mergeFrom( - (com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags - other) { - if (other - == com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.getDefaultInstance()) return this; - if (other.hasContainerImageSignatures()) { - mergeContainerImageSignatures(other.getContainerImageSignatures()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == 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( - getContainerImageSignaturesFieldBuilder().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.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignatures - containerImageSignatures_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignatures, - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignatures.Builder, - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignaturesOrBuilder> - containerImageSignaturesBuilder_; - - /** - * - * - *
    -         * Optional. Container image signatures allowed in the token.
    -         * 
    - * - * - * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the containerImageSignatures field is set. - */ - public boolean hasContainerImageSignatures() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
    -         * Optional. Container image signatures allowed in the token.
    -         * 
    - * - * - * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The containerImageSignatures. - */ - public com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignatures - getContainerImageSignatures() { - if (containerImageSignaturesBuilder_ == null) { - return containerImageSignatures_ == null - ? com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignatures.getDefaultInstance() - : containerImageSignatures_; - } else { - return containerImageSignaturesBuilder_.getMessage(); - } - } - - /** - * - * - *
    -         * Optional. Container image signatures allowed in the token.
    -         * 
    - * - * - * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setContainerImageSignatures( - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignatures - value) { - if (containerImageSignaturesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - containerImageSignatures_ = value; - } else { - containerImageSignaturesBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
    -         * Optional. Container image signatures allowed in the token.
    -         * 
    - * - * - * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setContainerImageSignatures( - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignatures.Builder - builderForValue) { - if (containerImageSignaturesBuilder_ == null) { - containerImageSignatures_ = builderForValue.build(); - } else { - containerImageSignaturesBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
    -         * Optional. Container image signatures allowed in the token.
    -         * 
    - * - * - * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeContainerImageSignatures( - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignatures - value) { - if (containerImageSignaturesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && containerImageSignatures_ != null - && containerImageSignatures_ - != com.google.cloud.confidentialcomputing.v1.TokenOptions - .AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures - .getDefaultInstance()) { - getContainerImageSignaturesBuilder().mergeFrom(value); - } else { - containerImageSignatures_ = value; - } - } else { - containerImageSignaturesBuilder_.mergeFrom(value); - } - if (containerImageSignatures_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - - /** - * - * - *
    -         * Optional. Container image signatures allowed in the token.
    -         * 
    - * - * - * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearContainerImageSignatures() { - bitField0_ = (bitField0_ & ~0x00000001); - containerImageSignatures_ = null; - if (containerImageSignaturesBuilder_ != null) { - containerImageSignaturesBuilder_.dispose(); - containerImageSignaturesBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
    -         * Optional. Container image signatures allowed in the token.
    -         * 
    - * - * - * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignatures.Builder - getContainerImageSignaturesBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getContainerImageSignaturesFieldBuilder().getBuilder(); - } - - /** - * - * - *
    -         * Optional. Container image signatures allowed in the token.
    -         * 
    - * - * - * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignaturesOrBuilder - getContainerImageSignaturesOrBuilder() { - if (containerImageSignaturesBuilder_ != null) { - return containerImageSignaturesBuilder_.getMessageOrBuilder(); - } else { - return containerImageSignatures_ == null - ? com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignatures.getDefaultInstance() - : containerImageSignatures_; - } - } - - /** - * - * - *
    -         * Optional. Container image signatures allowed in the token.
    -         * 
    - * - * - * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags.ContainerImageSignatures container_image_signatures = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignatures, - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignatures.Builder, - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignaturesOrBuilder> - getContainerImageSignaturesFieldBuilder() { - if (containerImageSignaturesBuilder_ == null) { - containerImageSignaturesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignatures, - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignatures.Builder, - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.ContainerImageSignaturesOrBuilder>( - getContainerImageSignatures(), getParentForChildren(), isClean()); - containerImageSignatures_ = null; - } - return containerImageSignaturesBuilder_; - } - - @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.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags) - } - - // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags) - private static final com.google.cloud.confidentialcomputing.v1.TokenOptions - .AwsPrincipalTagsOptions.AllowedPrincipalTags - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags(); - } - - public static com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AllowedPrincipalTags parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static 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.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int bitField0_; - public static final int ALLOWED_PRINCIPAL_TAGS_FIELD_NUMBER = 1; - private com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags - allowedPrincipalTags_; - - /** - * - * - *
    -     * Optional. Principal tags to allow in the token.
    -     * 
    - * - * - * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags allowed_principal_tags = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the allowedPrincipalTags field is set. - */ - @java.lang.Override - public boolean hasAllowedPrincipalTags() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
    -     * Optional. Principal tags to allow in the token.
    -     * 
    - * - * - * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags allowed_principal_tags = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The allowedPrincipalTags. - */ - @java.lang.Override - public com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags - getAllowedPrincipalTags() { - return allowedPrincipalTags_ == null - ? com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.getDefaultInstance() - : allowedPrincipalTags_; - } - - /** - * - * - *
    -     * Optional. Principal tags to allow in the token.
    -     * 
    - * - * - * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags allowed_principal_tags = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTagsOrBuilder - getAllowedPrincipalTagsOrBuilder() { - return allowedPrincipalTags_ == null - ? com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.getDefaultInstance() - : allowedPrincipalTags_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - 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, getAllowedPrincipalTags()); - } - 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, getAllowedPrincipalTags()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = 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.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions)) { - return super.equals(obj); - } - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions other = - (com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions) obj; - - if (hasAllowedPrincipalTags() != other.hasAllowedPrincipalTags()) return false; - if (hasAllowedPrincipalTags()) { - if (!getAllowedPrincipalTags().equals(other.getAllowedPrincipalTags())) 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 (hasAllowedPrincipalTags()) { - hash = (37 * hash) + ALLOWED_PRINCIPAL_TAGS_FIELD_NUMBER; - hash = (53 * hash) + getAllowedPrincipalTags().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - 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.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - parseFrom( - 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.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - 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.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - 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.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - 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.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - - /** - * - * - *
    -     * Token options that only apply to the AWS Principal Tags token type.
    -     * 
    - * - * Protobuf type {@code - * google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions) - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.confidentialcomputing.v1.ServiceProto - .internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.confidentialcomputing.v1.ServiceProto - .internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .class, - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .Builder.class); - } - - // Construct using - // com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getAllowedPrincipalTagsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - allowedPrincipalTags_ = null; - if (allowedPrincipalTagsBuilder_ != null) { - allowedPrincipalTagsBuilder_.dispose(); - allowedPrincipalTagsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.confidentialcomputing.v1.ServiceProto - .internal_static_google_cloud_confidentialcomputing_v1_TokenOptions_AwsPrincipalTagsOptions_descriptor; - } - - @java.lang.Override - public com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - getDefaultInstanceForType() { - return com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - build() { - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - buildPartial() { - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions result = - new com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions( - this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.allowedPrincipalTags_ = - allowedPrincipalTagsBuilder_ == null - ? allowedPrincipalTags_ - : allowedPrincipalTagsBuilder_.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.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions) { - return mergeFrom( - (com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions other) { - if (other - == com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .getDefaultInstance()) return this; - if (other.hasAllowedPrincipalTags()) { - mergeAllowedPrincipalTags(other.getAllowedPrincipalTags()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == 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( - getAllowedPrincipalTagsFieldBuilder().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.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags - allowedPrincipalTags_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags, - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.Builder, - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTagsOrBuilder> - allowedPrincipalTagsBuilder_; - - /** - * - * - *
    -       * Optional. Principal tags to allow in the token.
    -       * 
    - * - * - * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags allowed_principal_tags = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the allowedPrincipalTags field is set. - */ - public boolean hasAllowedPrincipalTags() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
    -       * Optional. Principal tags to allow in the token.
    -       * 
    - * - * - * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags allowed_principal_tags = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The allowedPrincipalTags. - */ - public com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags - getAllowedPrincipalTags() { - if (allowedPrincipalTagsBuilder_ == null) { - return allowedPrincipalTags_ == null - ? com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.getDefaultInstance() - : allowedPrincipalTags_; - } else { - return allowedPrincipalTagsBuilder_.getMessage(); - } - } - - /** - * - * - *
    -       * Optional. Principal tags to allow in the token.
    -       * 
    - * - * - * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags allowed_principal_tags = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setAllowedPrincipalTags( - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags - value) { - if (allowedPrincipalTagsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - allowedPrincipalTags_ = value; - } else { - allowedPrincipalTagsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
    -       * Optional. Principal tags to allow in the token.
    -       * 
    - * - * - * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags allowed_principal_tags = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setAllowedPrincipalTags( - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.Builder - builderForValue) { - if (allowedPrincipalTagsBuilder_ == null) { - allowedPrincipalTags_ = builderForValue.build(); - } else { - allowedPrincipalTagsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
    -       * Optional. Principal tags to allow in the token.
    -       * 
    - * - * - * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags allowed_principal_tags = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeAllowedPrincipalTags( - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags - value) { - if (allowedPrincipalTagsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && allowedPrincipalTags_ != null - && allowedPrincipalTags_ - != com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.getDefaultInstance()) { - getAllowedPrincipalTagsBuilder().mergeFrom(value); - } else { - allowedPrincipalTags_ = value; - } - } else { - allowedPrincipalTagsBuilder_.mergeFrom(value); - } - if (allowedPrincipalTags_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - - /** - * - * - *
    -       * Optional. Principal tags to allow in the token.
    -       * 
    - * - * - * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags allowed_principal_tags = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearAllowedPrincipalTags() { - bitField0_ = (bitField0_ & ~0x00000001); - allowedPrincipalTags_ = null; - if (allowedPrincipalTagsBuilder_ != null) { - allowedPrincipalTagsBuilder_.dispose(); - allowedPrincipalTagsBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
    -       * Optional. Principal tags to allow in the token.
    -       * 
    - * - * - * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags allowed_principal_tags = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.Builder - getAllowedPrincipalTagsBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getAllowedPrincipalTagsFieldBuilder().getBuilder(); - } - - /** - * - * - *
    -       * Optional. Principal tags to allow in the token.
    -       * 
    - * - * - * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags allowed_principal_tags = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTagsOrBuilder - getAllowedPrincipalTagsOrBuilder() { - if (allowedPrincipalTagsBuilder_ != null) { - return allowedPrincipalTagsBuilder_.getMessageOrBuilder(); - } else { - return allowedPrincipalTags_ == null - ? com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.getDefaultInstance() - : allowedPrincipalTags_; - } - } - - /** - * - * - *
    -       * Optional. Principal tags to allow in the token.
    -       * 
    - * - * - * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.AllowedPrincipalTags allowed_principal_tags = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags, - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.Builder, - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTagsOrBuilder> - getAllowedPrincipalTagsFieldBuilder() { - if (allowedPrincipalTagsBuilder_ == null) { - allowedPrincipalTagsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags, - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTags.Builder, - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .AllowedPrincipalTagsOrBuilder>( - getAllowedPrincipalTags(), getParentForChildren(), isClean()); - allowedPrincipalTags_ = null; - } - return allowedPrincipalTagsBuilder_; - } - - @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.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions) - } - - // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions) - private static final com.google.cloud.confidentialcomputing.v1.TokenOptions - .AwsPrincipalTagsOptions - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions(); - } - - public static com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AwsPrincipalTagsOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static 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.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - private int tokenTypeOptionsCase_ = 0; @SuppressWarnings("serial") @@ -2805,11 +119,11 @@ public TokenTypeOptionsCase getTokenTypeOptionsCase() { * * *
    -   * Optional. Options for the Limited AWS token type.
    +   * Optional. Options for AWS token type.
        * 
    * * - * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the awsPrincipalTagsOptions field is set. @@ -2823,46 +137,42 @@ public boolean hasAwsPrincipalTagsOptions() { * * *
    -   * Optional. Options for the Limited AWS token type.
    +   * Optional. Options for AWS token type.
        * 
    * * - * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The awsPrincipalTagsOptions. */ @java.lang.Override - public com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + public com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions getAwsPrincipalTagsOptions() { if (tokenTypeOptionsCase_ == 4) { - return (com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions) - tokenTypeOptions_; + return (com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions) tokenTypeOptions_; } - return com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .getDefaultInstance(); + return com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.getDefaultInstance(); } /** * * *
    -   * Optional. Options for the Limited AWS token type.
    +   * Optional. Options for AWS token type.
        * 
    * * - * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptionsOrBuilder + public com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptionsOrBuilder getAwsPrincipalTagsOptionsOrBuilder() { if (tokenTypeOptionsCase_ == 4) { - return (com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions) - tokenTypeOptions_; + return (com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions) tokenTypeOptions_; } - return com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .getDefaultInstance(); + return com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.getDefaultInstance(); } public static final int AUDIENCE_FIELD_NUMBER = 1; @@ -3065,9 +375,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } if (tokenTypeOptionsCase_ == 4) { output.writeMessage( - 4, - (com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions) - tokenTypeOptions_); + 4, (com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions) tokenTypeOptions_); } getUnknownFields().writeTo(output); } @@ -3097,7 +405,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 4, - (com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions) + (com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions) tokenTypeOptions_); } size += getUnknownFields().getSerializedSize(); @@ -3521,20 +829,20 @@ public Builder clearTokenTypeOptions() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions, - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.Builder, - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptionsOrBuilder> + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions, + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.Builder, + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptionsOrBuilder> awsPrincipalTagsOptionsBuilder_; /** * * *
    -     * Optional. Options for the Limited AWS token type.
    +     * Optional. Options for AWS token type.
          * 
    * * - * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the awsPrincipalTagsOptions field is set. @@ -3548,30 +856,30 @@ public boolean hasAwsPrincipalTagsOptions() { * * *
    -     * Optional. Options for the Limited AWS token type.
    +     * Optional. Options for AWS token type.
          * 
    * * - * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The awsPrincipalTagsOptions. */ @java.lang.Override - public com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + public com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions getAwsPrincipalTagsOptions() { if (awsPrincipalTagsOptionsBuilder_ == null) { if (tokenTypeOptionsCase_ == 4) { - return (com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions) + return (com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions) tokenTypeOptions_; } - return com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + return com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions .getDefaultInstance(); } else { if (tokenTypeOptionsCase_ == 4) { return awsPrincipalTagsOptionsBuilder_.getMessage(); } - return com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + return com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions .getDefaultInstance(); } } @@ -3580,15 +888,15 @@ public boolean hasAwsPrincipalTagsOptions() { * * *
    -     * Optional. Options for the Limited AWS token type.
    +     * Optional. Options for AWS token type.
          * 
    * * - * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setAwsPrincipalTagsOptions( - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions value) { + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions value) { if (awsPrincipalTagsOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3606,16 +914,15 @@ public Builder setAwsPrincipalTagsOptions( * * *
    -     * Optional. Options for the Limited AWS token type.
    +     * Optional. Options for AWS token type.
          * 
    * * - * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setAwsPrincipalTagsOptions( - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.Builder - builderForValue) { + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.Builder builderForValue) { if (awsPrincipalTagsOptionsBuilder_ == null) { tokenTypeOptions_ = builderForValue.build(); onChanged(); @@ -3630,25 +937,23 @@ public Builder setAwsPrincipalTagsOptions( * * *
    -     * Optional. Options for the Limited AWS token type.
    +     * Optional. Options for AWS token type.
          * 
    * * - * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder mergeAwsPrincipalTagsOptions( - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions value) { + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions value) { if (awsPrincipalTagsOptionsBuilder_ == null) { if (tokenTypeOptionsCase_ == 4 && tokenTypeOptions_ - != com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + != com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions .getDefaultInstance()) { tokenTypeOptions_ = - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .newBuilder( - (com.google.cloud.confidentialcomputing.v1.TokenOptions - .AwsPrincipalTagsOptions) + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.newBuilder( + (com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions) tokenTypeOptions_) .mergeFrom(value) .buildPartial(); @@ -3671,11 +976,11 @@ public Builder mergeAwsPrincipalTagsOptions( * * *
    -     * Optional. Options for the Limited AWS token type.
    +     * Optional. Options for AWS token type.
          * 
    * * - * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearAwsPrincipalTagsOptions() { @@ -3699,14 +1004,14 @@ public Builder clearAwsPrincipalTagsOptions() { * * *
    -     * Optional. Options for the Limited AWS token type.
    +     * Optional. Options for AWS token type.
          * 
    * * - * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.Builder + public com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.Builder getAwsPrincipalTagsOptionsBuilder() { return getAwsPrincipalTagsOptionsFieldBuilder().getBuilder(); } @@ -3715,24 +1020,24 @@ public Builder clearAwsPrincipalTagsOptions() { * * *
    -     * Optional. Options for the Limited AWS token type.
    +     * Optional. Options for AWS token type.
          * 
    * * - * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptionsOrBuilder + public com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptionsOrBuilder getAwsPrincipalTagsOptionsOrBuilder() { if ((tokenTypeOptionsCase_ == 4) && (awsPrincipalTagsOptionsBuilder_ != null)) { return awsPrincipalTagsOptionsBuilder_.getMessageOrBuilder(); } else { if (tokenTypeOptionsCase_ == 4) { - return (com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions) + return (com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions) tokenTypeOptions_; } - return com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + return com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions .getDefaultInstance(); } } @@ -3741,32 +1046,30 @@ public Builder clearAwsPrincipalTagsOptions() { * * *
    -     * Optional. Options for the Limited AWS token type.
    +     * Optional. Options for AWS token type.
          * 
    * * - * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions, - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions.Builder, - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptionsOrBuilder> + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions, + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.Builder, + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptionsOrBuilder> getAwsPrincipalTagsOptionsFieldBuilder() { if (awsPrincipalTagsOptionsBuilder_ == null) { if (!(tokenTypeOptionsCase_ == 4)) { tokenTypeOptions_ = - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions .getDefaultInstance(); } awsPrincipalTagsOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions, - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - .Builder, - com.google.cloud.confidentialcomputing.v1.TokenOptions - .AwsPrincipalTagsOptionsOrBuilder>( - (com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions) + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions, + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.Builder, + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptionsOrBuilder>( + (com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions) tokenTypeOptions_, getParentForChildren(), isClean()); diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TokenOptionsOrBuilder.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TokenOptionsOrBuilder.java index 017601269d66..69076fb3ffc5 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TokenOptionsOrBuilder.java +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TokenOptionsOrBuilder.java @@ -28,11 +28,11 @@ public interface TokenOptionsOrBuilder * * *
    -   * Optional. Options for the Limited AWS token type.
    +   * Optional. Options for AWS token type.
        * 
    * * - * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the awsPrincipalTagsOptions field is set. @@ -43,30 +43,29 @@ public interface TokenOptionsOrBuilder * * *
    -   * Optional. Options for the Limited AWS token type.
    +   * Optional. Options for AWS token type.
        * 
    * * - * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The awsPrincipalTagsOptions. */ - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions - getAwsPrincipalTagsOptions(); + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions getAwsPrincipalTagsOptions(); /** * * *
    -   * Optional. Options for the Limited AWS token type.
    +   * Optional. Options for AWS token type.
        * 
    * * - * .google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - com.google.cloud.confidentialcomputing.v1.TokenOptions.AwsPrincipalTagsOptionsOrBuilder + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptionsOrBuilder getAwsPrincipalTagsOptionsOrBuilder(); /** diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TokenProfile.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TokenProfile.java new file mode 100644 index 000000000000..e9ff5f011a06 --- /dev/null +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/TokenProfile.java @@ -0,0 +1,181 @@ +/* + * 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/confidentialcomputing/v1/service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.confidentialcomputing.v1; + +/** + * + * + *
    + * TokenProfile enumerates the supported token claims profiles.
    + * 
    + * + * Protobuf enum {@code google.cloud.confidentialcomputing.v1.TokenProfile} + */ +public enum TokenProfile implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +   * Unspecified token profile.
    +   * 
    + * + * TOKEN_PROFILE_UNSPECIFIED = 0; + */ + TOKEN_PROFILE_UNSPECIFIED(0), + /** + * + * + *
    +   * EAT claims.
    +   * 
    + * + * TOKEN_PROFILE_DEFAULT_EAT = 1; + */ + TOKEN_PROFILE_DEFAULT_EAT(1), + /** + * + * + *
    +   * AWS Principal Tags claims.
    +   * 
    + * + * TOKEN_PROFILE_AWS = 2; + */ + TOKEN_PROFILE_AWS(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +   * Unspecified token profile.
    +   * 
    + * + * TOKEN_PROFILE_UNSPECIFIED = 0; + */ + public static final int TOKEN_PROFILE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +   * EAT claims.
    +   * 
    + * + * TOKEN_PROFILE_DEFAULT_EAT = 1; + */ + public static final int TOKEN_PROFILE_DEFAULT_EAT_VALUE = 1; + + /** + * + * + *
    +   * AWS Principal Tags claims.
    +   * 
    + * + * TOKEN_PROFILE_AWS = 2; + */ + public static final int TOKEN_PROFILE_AWS_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 TokenProfile 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 TokenProfile forNumber(int value) { + switch (value) { + case 0: + return TOKEN_PROFILE_UNSPECIFIED; + case 1: + return TOKEN_PROFILE_DEFAULT_EAT; + case 2: + return TOKEN_PROFILE_AWS; + 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 TokenProfile findValueByNumber(int number) { + return TokenProfile.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.confidentialcomputing.v1.ServiceProto.getDescriptor() + .getEnumTypes() + .get(3); + } + + private static final TokenProfile[] VALUES = values(); + + public static TokenProfile 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 TokenProfile(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.confidentialcomputing.v1.TokenProfile) +} diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequest.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequest.java index e55a8e297dc3..d749b8725d59 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequest.java +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationRequest.java @@ -23,8 +23,8 @@ * * *
    - * A request for an OIDC token, providing all the necessary information needed
    - * for this service to verify the platform state of the requestor.
    + * A request for an attestation token, providing all the necessary information
    + * needed for this service to verify the platform state of the requestor.
      * 
    * * Protobuf type {@code google.cloud.confidentialcomputing.v1.VerifyAttestationRequest} @@ -878,8 +878,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
    -   * A request for an OIDC token, providing all the necessary information needed
    -   * for this service to verify the platform state of the requestor.
    +   * A request for an attestation token, providing all the necessary information
    +   * needed for this service to verify the platform state of the requestor.
        * 
    * * Protobuf type {@code google.cloud.confidentialcomputing.v1.VerifyAttestationRequest} diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationResponse.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationResponse.java index 62853e07d08f..68acf85a6a66 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationResponse.java +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyAttestationResponse.java @@ -24,7 +24,7 @@ * *
      * A response once an attestation has been successfully verified, containing a
    - * signed OIDC token.
    + * signed attestation token.
      * 
    * * Protobuf type {@code google.cloud.confidentialcomputing.v1.VerifyAttestationResponse} @@ -387,7 +387,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
        * A response once an attestation has been successfully verified, containing a
    -   * signed OIDC token.
    +   * signed attestation token.
        * 
    * * Protobuf type {@code google.cloud.confidentialcomputing.v1.VerifyAttestationResponse} diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyConfidentialGkeRequest.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyConfidentialGkeRequest.java new file mode 100644 index 000000000000..10f5b0a579d2 --- /dev/null +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyConfidentialGkeRequest.java @@ -0,0 +1,1088 @@ +/* + * 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/confidentialcomputing/v1/service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.confidentialcomputing.v1; + +/** + * + * + *
    + * A request for an attestation token, providing all the necessary information
    + * needed for this service to verify Confidential GKE platform state of the
    + * requestor.
    + * 
    + * + * Protobuf type {@code google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest} + */ +public final class VerifyConfidentialGkeRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest) + VerifyConfidentialGkeRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use VerifyConfidentialGkeRequest.newBuilder() to construct. + private VerifyConfidentialGkeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private VerifyConfidentialGkeRequest() { + challenge_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VerifyConfidentialGkeRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialGkeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialGkeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.class, + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.Builder.class); + } + + private int teeAttestationCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object teeAttestation_; + + public enum TeeAttestationCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TPM_ATTESTATION(2), + TEEATTESTATION_NOT_SET(0); + private final int value; + + private TeeAttestationCase(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 TeeAttestationCase valueOf(int value) { + return forNumber(value); + } + + public static TeeAttestationCase forNumber(int value) { + switch (value) { + case 2: + return TPM_ATTESTATION; + case 0: + return TEEATTESTATION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public TeeAttestationCase getTeeAttestationCase() { + return TeeAttestationCase.forNumber(teeAttestationCase_); + } + + public static final int TPM_ATTESTATION_FIELD_NUMBER = 2; + + /** + * + * + *
    +   * The TPM-specific data provided by the attesting platform, used to
    +   * populate any of the claims regarding platform state.
    +   * 
    + * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 2; + * + * @return Whether the tpmAttestation field is set. + */ + @java.lang.Override + public boolean hasTpmAttestation() { + return teeAttestationCase_ == 2; + } + + /** + * + * + *
    +   * The TPM-specific data provided by the attesting platform, used to
    +   * populate any of the claims regarding platform state.
    +   * 
    + * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 2; + * + * @return The tpmAttestation. + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.TpmAttestation getTpmAttestation() { + if (teeAttestationCase_ == 2) { + return (com.google.cloud.confidentialcomputing.v1.TpmAttestation) teeAttestation_; + } + return com.google.cloud.confidentialcomputing.v1.TpmAttestation.getDefaultInstance(); + } + + /** + * + * + *
    +   * The TPM-specific data provided by the attesting platform, used to
    +   * populate any of the claims regarding platform state.
    +   * 
    + * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 2; + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.TpmAttestationOrBuilder + getTpmAttestationOrBuilder() { + if (teeAttestationCase_ == 2) { + return (com.google.cloud.confidentialcomputing.v1.TpmAttestation) teeAttestation_; + } + return com.google.cloud.confidentialcomputing.v1.TpmAttestation.getDefaultInstance(); + } + + public static final int CHALLENGE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object challenge_ = ""; + + /** + * + * + *
    +   * Required. The name of the Challenge whose nonce was used to generate the
    +   * attestation, in the format projects/*/locations/*/challenges/*. The
    +   * provided Challenge will be consumed, and cannot be used again.
    +   * 
    + * + * + * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The challenge. + */ + @java.lang.Override + public java.lang.String getChallenge() { + java.lang.Object ref = challenge_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + challenge_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. The name of the Challenge whose nonce was used to generate the
    +   * attestation, in the format projects/*/locations/*/challenges/*. The
    +   * provided Challenge will be consumed, and cannot be used again.
    +   * 
    + * + * + * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for challenge. + */ + @java.lang.Override + public com.google.protobuf.ByteString getChallengeBytes() { + java.lang.Object ref = challenge_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + challenge_ = 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(challenge_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, challenge_); + } + if (teeAttestationCase_ == 2) { + output.writeMessage( + 2, (com.google.cloud.confidentialcomputing.v1.TpmAttestation) teeAttestation_); + } + 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(challenge_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, challenge_); + } + if (teeAttestationCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.confidentialcomputing.v1.TpmAttestation) teeAttestation_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.confidentialcomputing.v1.VerifyConfidentialGkeRequest)) { + return super.equals(obj); + } + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest other = + (com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest) obj; + + if (!getChallenge().equals(other.getChallenge())) return false; + if (!getTeeAttestationCase().equals(other.getTeeAttestationCase())) return false; + switch (teeAttestationCase_) { + case 2: + if (!getTpmAttestation().equals(other.getTpmAttestation())) 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) + CHALLENGE_FIELD_NUMBER; + hash = (53 * hash) + getChallenge().hashCode(); + switch (teeAttestationCase_) { + case 2: + hash = (37 * hash) + TPM_ATTESTATION_FIELD_NUMBER; + hash = (53 * hash) + getTpmAttestation().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest 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.confidentialcomputing.v1.VerifyConfidentialGkeRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest parseFrom( + 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.confidentialcomputing.v1.VerifyConfidentialGkeRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest 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.confidentialcomputing.v1.VerifyConfidentialGkeRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + 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.confidentialcomputing.v1.VerifyConfidentialGkeRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest 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.confidentialcomputing.v1.VerifyConfidentialGkeRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 request for an attestation token, providing all the necessary information
    +   * needed for this service to verify Confidential GKE platform state of the
    +   * requestor.
    +   * 
    + * + * Protobuf type {@code google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest) + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialGkeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialGkeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.class, + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.Builder.class); + } + + // Construct using + // com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (tpmAttestationBuilder_ != null) { + tpmAttestationBuilder_.clear(); + } + challenge_ = ""; + teeAttestationCase_ = 0; + teeAttestation_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialGkeRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + getDefaultInstanceForType() { + return com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest build() { + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest buildPartial() { + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest result = + new com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.challenge_ = challenge_; + } + } + + private void buildPartialOneofs( + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest result) { + result.teeAttestationCase_ = teeAttestationCase_; + result.teeAttestation_ = this.teeAttestation_; + if (teeAttestationCase_ == 2 && tpmAttestationBuilder_ != null) { + result.teeAttestation_ = tpmAttestationBuilder_.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.confidentialcomputing.v1.VerifyConfidentialGkeRequest) { + return mergeFrom( + (com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest other) { + if (other + == com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + .getDefaultInstance()) return this; + if (!other.getChallenge().isEmpty()) { + challenge_ = other.challenge_; + bitField0_ |= 0x00000002; + onChanged(); + } + switch (other.getTeeAttestationCase()) { + case TPM_ATTESTATION: + { + mergeTpmAttestation(other.getTpmAttestation()); + break; + } + case TEEATTESTATION_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: + { + challenge_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: + { + input.readMessage(getTpmAttestationFieldBuilder().getBuilder(), extensionRegistry); + teeAttestationCase_ = 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 teeAttestationCase_ = 0; + private java.lang.Object teeAttestation_; + + public TeeAttestationCase getTeeAttestationCase() { + return TeeAttestationCase.forNumber(teeAttestationCase_); + } + + public Builder clearTeeAttestation() { + teeAttestationCase_ = 0; + teeAttestation_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.TpmAttestation, + com.google.cloud.confidentialcomputing.v1.TpmAttestation.Builder, + com.google.cloud.confidentialcomputing.v1.TpmAttestationOrBuilder> + tpmAttestationBuilder_; + + /** + * + * + *
    +     * The TPM-specific data provided by the attesting platform, used to
    +     * populate any of the claims regarding platform state.
    +     * 
    + * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 2; + * + * @return Whether the tpmAttestation field is set. + */ + @java.lang.Override + public boolean hasTpmAttestation() { + return teeAttestationCase_ == 2; + } + + /** + * + * + *
    +     * The TPM-specific data provided by the attesting platform, used to
    +     * populate any of the claims regarding platform state.
    +     * 
    + * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 2; + * + * @return The tpmAttestation. + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.TpmAttestation getTpmAttestation() { + if (tpmAttestationBuilder_ == null) { + if (teeAttestationCase_ == 2) { + return (com.google.cloud.confidentialcomputing.v1.TpmAttestation) teeAttestation_; + } + return com.google.cloud.confidentialcomputing.v1.TpmAttestation.getDefaultInstance(); + } else { + if (teeAttestationCase_ == 2) { + return tpmAttestationBuilder_.getMessage(); + } + return com.google.cloud.confidentialcomputing.v1.TpmAttestation.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * The TPM-specific data provided by the attesting platform, used to
    +     * populate any of the claims regarding platform state.
    +     * 
    + * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 2; + */ + public Builder setTpmAttestation( + com.google.cloud.confidentialcomputing.v1.TpmAttestation value) { + if (tpmAttestationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + teeAttestation_ = value; + onChanged(); + } else { + tpmAttestationBuilder_.setMessage(value); + } + teeAttestationCase_ = 2; + return this; + } + + /** + * + * + *
    +     * The TPM-specific data provided by the attesting platform, used to
    +     * populate any of the claims regarding platform state.
    +     * 
    + * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 2; + */ + public Builder setTpmAttestation( + com.google.cloud.confidentialcomputing.v1.TpmAttestation.Builder builderForValue) { + if (tpmAttestationBuilder_ == null) { + teeAttestation_ = builderForValue.build(); + onChanged(); + } else { + tpmAttestationBuilder_.setMessage(builderForValue.build()); + } + teeAttestationCase_ = 2; + return this; + } + + /** + * + * + *
    +     * The TPM-specific data provided by the attesting platform, used to
    +     * populate any of the claims regarding platform state.
    +     * 
    + * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 2; + */ + public Builder mergeTpmAttestation( + com.google.cloud.confidentialcomputing.v1.TpmAttestation value) { + if (tpmAttestationBuilder_ == null) { + if (teeAttestationCase_ == 2 + && teeAttestation_ + != com.google.cloud.confidentialcomputing.v1.TpmAttestation.getDefaultInstance()) { + teeAttestation_ = + com.google.cloud.confidentialcomputing.v1.TpmAttestation.newBuilder( + (com.google.cloud.confidentialcomputing.v1.TpmAttestation) teeAttestation_) + .mergeFrom(value) + .buildPartial(); + } else { + teeAttestation_ = value; + } + onChanged(); + } else { + if (teeAttestationCase_ == 2) { + tpmAttestationBuilder_.mergeFrom(value); + } else { + tpmAttestationBuilder_.setMessage(value); + } + } + teeAttestationCase_ = 2; + return this; + } + + /** + * + * + *
    +     * The TPM-specific data provided by the attesting platform, used to
    +     * populate any of the claims regarding platform state.
    +     * 
    + * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 2; + */ + public Builder clearTpmAttestation() { + if (tpmAttestationBuilder_ == null) { + if (teeAttestationCase_ == 2) { + teeAttestationCase_ = 0; + teeAttestation_ = null; + onChanged(); + } + } else { + if (teeAttestationCase_ == 2) { + teeAttestationCase_ = 0; + teeAttestation_ = null; + } + tpmAttestationBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * The TPM-specific data provided by the attesting platform, used to
    +     * populate any of the claims regarding platform state.
    +     * 
    + * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 2; + */ + public com.google.cloud.confidentialcomputing.v1.TpmAttestation.Builder + getTpmAttestationBuilder() { + return getTpmAttestationFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * The TPM-specific data provided by the attesting platform, used to
    +     * populate any of the claims regarding platform state.
    +     * 
    + * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 2; + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.TpmAttestationOrBuilder + getTpmAttestationOrBuilder() { + if ((teeAttestationCase_ == 2) && (tpmAttestationBuilder_ != null)) { + return tpmAttestationBuilder_.getMessageOrBuilder(); + } else { + if (teeAttestationCase_ == 2) { + return (com.google.cloud.confidentialcomputing.v1.TpmAttestation) teeAttestation_; + } + return com.google.cloud.confidentialcomputing.v1.TpmAttestation.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * The TPM-specific data provided by the attesting platform, used to
    +     * populate any of the claims regarding platform state.
    +     * 
    + * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.TpmAttestation, + com.google.cloud.confidentialcomputing.v1.TpmAttestation.Builder, + com.google.cloud.confidentialcomputing.v1.TpmAttestationOrBuilder> + getTpmAttestationFieldBuilder() { + if (tpmAttestationBuilder_ == null) { + if (!(teeAttestationCase_ == 2)) { + teeAttestation_ = + com.google.cloud.confidentialcomputing.v1.TpmAttestation.getDefaultInstance(); + } + tpmAttestationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.TpmAttestation, + com.google.cloud.confidentialcomputing.v1.TpmAttestation.Builder, + com.google.cloud.confidentialcomputing.v1.TpmAttestationOrBuilder>( + (com.google.cloud.confidentialcomputing.v1.TpmAttestation) teeAttestation_, + getParentForChildren(), + isClean()); + teeAttestation_ = null; + } + teeAttestationCase_ = 2; + onChanged(); + return tpmAttestationBuilder_; + } + + private java.lang.Object challenge_ = ""; + + /** + * + * + *
    +     * Required. The name of the Challenge whose nonce was used to generate the
    +     * attestation, in the format projects/*/locations/*/challenges/*. The
    +     * provided Challenge will be consumed, and cannot be used again.
    +     * 
    + * + * + * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The challenge. + */ + public java.lang.String getChallenge() { + java.lang.Object ref = challenge_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + challenge_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. The name of the Challenge whose nonce was used to generate the
    +     * attestation, in the format projects/*/locations/*/challenges/*. The
    +     * provided Challenge will be consumed, and cannot be used again.
    +     * 
    + * + * + * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for challenge. + */ + public com.google.protobuf.ByteString getChallengeBytes() { + java.lang.Object ref = challenge_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + challenge_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. The name of the Challenge whose nonce was used to generate the
    +     * attestation, in the format projects/*/locations/*/challenges/*. The
    +     * provided Challenge will be consumed, and cannot be used again.
    +     * 
    + * + * + * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The challenge to set. + * @return This builder for chaining. + */ + public Builder setChallenge(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + challenge_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The name of the Challenge whose nonce was used to generate the
    +     * attestation, in the format projects/*/locations/*/challenges/*. The
    +     * provided Challenge will be consumed, and cannot be used again.
    +     * 
    + * + * + * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearChallenge() { + challenge_ = getDefaultInstance().getChallenge(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The name of the Challenge whose nonce was used to generate the
    +     * attestation, in the format projects/*/locations/*/challenges/*. The
    +     * provided Challenge will be consumed, and cannot be used again.
    +     * 
    + * + * + * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for challenge to set. + * @return This builder for chaining. + */ + public Builder setChallengeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + challenge_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest) + private static final com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest(); + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VerifyConfidentialGkeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.confidentialcomputing.v1.VerifyConfidentialGkeRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyConfidentialGkeRequestOrBuilder.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyConfidentialGkeRequestOrBuilder.java new file mode 100644 index 000000000000..216f51d7e846 --- /dev/null +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyConfidentialGkeRequestOrBuilder.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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/confidentialcomputing/v1/service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.confidentialcomputing.v1; + +public interface VerifyConfidentialGkeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The TPM-specific data provided by the attesting platform, used to
    +   * populate any of the claims regarding platform state.
    +   * 
    + * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 2; + * + * @return Whether the tpmAttestation field is set. + */ + boolean hasTpmAttestation(); + + /** + * + * + *
    +   * The TPM-specific data provided by the attesting platform, used to
    +   * populate any of the claims regarding platform state.
    +   * 
    + * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 2; + * + * @return The tpmAttestation. + */ + com.google.cloud.confidentialcomputing.v1.TpmAttestation getTpmAttestation(); + + /** + * + * + *
    +   * The TPM-specific data provided by the attesting platform, used to
    +   * populate any of the claims regarding platform state.
    +   * 
    + * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 2; + */ + com.google.cloud.confidentialcomputing.v1.TpmAttestationOrBuilder getTpmAttestationOrBuilder(); + + /** + * + * + *
    +   * Required. The name of the Challenge whose nonce was used to generate the
    +   * attestation, in the format projects/*/locations/*/challenges/*. The
    +   * provided Challenge will be consumed, and cannot be used again.
    +   * 
    + * + * + * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The challenge. + */ + java.lang.String getChallenge(); + + /** + * + * + *
    +   * Required. The name of the Challenge whose nonce was used to generate the
    +   * attestation, in the format projects/*/locations/*/challenges/*. The
    +   * provided Challenge will be consumed, and cannot be used again.
    +   * 
    + * + * + * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for challenge. + */ + com.google.protobuf.ByteString getChallengeBytes(); + + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.TeeAttestationCase + getTeeAttestationCase(); +} diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyConfidentialGkeResponse.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyConfidentialGkeResponse.java new file mode 100644 index 000000000000..6dcf3ec64bac --- /dev/null +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyConfidentialGkeResponse.java @@ -0,0 +1,666 @@ +/* + * 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/confidentialcomputing/v1/service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.confidentialcomputing.v1; + +/** + * + * + *
    + * VerifyConfidentialGkeResponse response is returened once a Confidential GKE
    + * attestation has been successfully verified, containing a signed OIDC token.
    + * 
    + * + * Protobuf type {@code google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse} + */ +public final class VerifyConfidentialGkeResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse) + VerifyConfidentialGkeResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use VerifyConfidentialGkeResponse.newBuilder() to construct. + private VerifyConfidentialGkeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private VerifyConfidentialGkeResponse() { + attestationToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VerifyConfidentialGkeResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialGkeResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialGkeResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse.class, + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse.Builder.class); + } + + public static final int ATTESTATION_TOKEN_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object attestationToken_ = ""; + + /** + * + * + *
    +   * Output only. The attestation token issued by this service for Confidential
    +   * GKE. It contains specific platform claims based on the contents of the
    +   * provided attestation.
    +   * 
    + * + * string attestation_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The attestationToken. + */ + @java.lang.Override + public java.lang.String getAttestationToken() { + java.lang.Object ref = attestationToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + attestationToken_ = s; + return s; + } + } + + /** + * + * + *
    +   * Output only. The attestation token issued by this service for Confidential
    +   * GKE. It contains specific platform claims based on the contents of the
    +   * provided attestation.
    +   * 
    + * + * string attestation_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for attestationToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAttestationTokenBytes() { + java.lang.Object ref = attestationToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + attestationToken_ = 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(attestationToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, attestationToken_); + } + 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(attestationToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, attestationToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.confidentialcomputing.v1.VerifyConfidentialGkeResponse)) { + return super.equals(obj); + } + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse other = + (com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse) obj; + + if (!getAttestationToken().equals(other.getAttestationToken())) 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) + ATTESTATION_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getAttestationToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse 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.confidentialcomputing.v1.VerifyConfidentialGkeResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse parseFrom( + 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.confidentialcomputing.v1.VerifyConfidentialGkeResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse 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.confidentialcomputing.v1.VerifyConfidentialGkeResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse + 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.confidentialcomputing.v1.VerifyConfidentialGkeResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse 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.confidentialcomputing.v1.VerifyConfidentialGkeResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
    +   * VerifyConfidentialGkeResponse response is returened once a Confidential GKE
    +   * attestation has been successfully verified, containing a signed OIDC token.
    +   * 
    + * + * Protobuf type {@code google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse) + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialGkeResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialGkeResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse.class, + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + attestationToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialGkeResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse + getDefaultInstanceForType() { + return com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse build() { + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse buildPartial() { + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse result = + new com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.attestationToken_ = attestationToken_; + } + } + + @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.confidentialcomputing.v1.VerifyConfidentialGkeResponse) { + return mergeFrom( + (com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse other) { + if (other + == com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse + .getDefaultInstance()) return this; + if (!other.getAttestationToken().isEmpty()) { + attestationToken_ = other.attestationToken_; + 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: + { + attestationToken_ = 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 attestationToken_ = ""; + + /** + * + * + *
    +     * Output only. The attestation token issued by this service for Confidential
    +     * GKE. It contains specific platform claims based on the contents of the
    +     * provided attestation.
    +     * 
    + * + * string attestation_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The attestationToken. + */ + public java.lang.String getAttestationToken() { + java.lang.Object ref = attestationToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + attestationToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Output only. The attestation token issued by this service for Confidential
    +     * GKE. It contains specific platform claims based on the contents of the
    +     * provided attestation.
    +     * 
    + * + * string attestation_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for attestationToken. + */ + public com.google.protobuf.ByteString getAttestationTokenBytes() { + java.lang.Object ref = attestationToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + attestationToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Output only. The attestation token issued by this service for Confidential
    +     * GKE. It contains specific platform claims based on the contents of the
    +     * provided attestation.
    +     * 
    + * + * string attestation_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The attestationToken to set. + * @return This builder for chaining. + */ + public Builder setAttestationToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + attestationToken_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The attestation token issued by this service for Confidential
    +     * GKE. It contains specific platform claims based on the contents of the
    +     * provided attestation.
    +     * 
    + * + * string attestation_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearAttestationToken() { + attestationToken_ = getDefaultInstance().getAttestationToken(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The attestation token issued by this service for Confidential
    +     * GKE. It contains specific platform claims based on the contents of the
    +     * provided attestation.
    +     * 
    + * + * string attestation_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for attestationToken to set. + * @return This builder for chaining. + */ + public Builder setAttestationTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + attestationToken_ = 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.confidentialcomputing.v1.VerifyConfidentialGkeResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse) + private static final com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse(); + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VerifyConfidentialGkeResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.confidentialcomputing.v1.VerifyConfidentialGkeResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyConfidentialGkeResponseOrBuilder.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyConfidentialGkeResponseOrBuilder.java new file mode 100644 index 000000000000..88289ca9893a --- /dev/null +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyConfidentialGkeResponseOrBuilder.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/confidentialcomputing/v1/service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.confidentialcomputing.v1; + +public interface VerifyConfidentialGkeResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Output only. The attestation token issued by this service for Confidential
    +   * GKE. It contains specific platform claims based on the contents of the
    +   * provided attestation.
    +   * 
    + * + * string attestation_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The attestationToken. + */ + java.lang.String getAttestationToken(); + + /** + * + * + *
    +   * Output only. The attestation token issued by this service for Confidential
    +   * GKE. It contains specific platform claims based on the contents of the
    +   * provided attestation.
    +   * 
    + * + * string attestation_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for attestationToken. + */ + com.google.protobuf.ByteString getAttestationTokenBytes(); +} diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyConfidentialSpaceRequest.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyConfidentialSpaceRequest.java new file mode 100644 index 000000000000..072f7ab5c930 --- /dev/null +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyConfidentialSpaceRequest.java @@ -0,0 +1,5096 @@ +/* + * 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/confidentialcomputing/v1/service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.confidentialcomputing.v1; + +/** + * + * + *
    + * A request for an attestation token, providing all the necessary information
    + * needed for this service to verify the platform state of the requestor.
    + * 
    + * + * Protobuf type {@code google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest} + */ +public final class VerifyConfidentialSpaceRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest) + VerifyConfidentialSpaceRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use VerifyConfidentialSpaceRequest.newBuilder() to construct. + private VerifyConfidentialSpaceRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private VerifyConfidentialSpaceRequest() { + challenge_ = ""; + signedEntities_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VerifyConfidentialSpaceRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialSpaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialSpaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest.class, + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest.Builder.class); + } + + public interface ConfidentialSpaceOptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest.ConfidentialSpaceOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * Optional. Options for the AWS token type.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions aws_principal_tags_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the awsPrincipalTagsOptions field is set. + */ + boolean hasAwsPrincipalTagsOptions(); + + /** + * + * + *
    +     * Optional. Options for the AWS token type.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions aws_principal_tags_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The awsPrincipalTagsOptions. + */ + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions getAwsPrincipalTagsOptions(); + + /** + * + * + *
    +     * Optional. Options for the AWS token type.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions aws_principal_tags_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptionsOrBuilder + getAwsPrincipalTagsOptionsOrBuilder(); + + /** + * + * + *
    +     * Optional. Optional string to issue the token with a custom audience
    +     * claim. Required if custom nonces are specified.
    +     * 
    + * + * string audience = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The audience. + */ + java.lang.String getAudience(); + + /** + * + * + *
    +     * Optional. Optional string to issue the token with a custom audience
    +     * claim. Required if custom nonces are specified.
    +     * 
    + * + * string audience = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for audience. + */ + com.google.protobuf.ByteString getAudienceBytes(); + + /** + * + * + *
    +     * Optional. Optional specification for token claims profile.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TokenProfile token_profile = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for tokenProfile. + */ + int getTokenProfileValue(); + + /** + * + * + *
    +     * Optional. Optional specification for token claims profile.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TokenProfile token_profile = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tokenProfile. + */ + com.google.cloud.confidentialcomputing.v1.TokenProfile getTokenProfile(); + + /** + * + * + *
    +     * Optional. Optional parameter to place one or more nonces in the eat_nonce
    +     * claim in the output token. The minimum size for JSON-encoded EATs is 10
    +     * bytes and the maximum size is 74 bytes.
    +     * 
    + * + * repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the nonce. + */ + java.util.List getNonceList(); + + /** + * + * + *
    +     * Optional. Optional parameter to place one or more nonces in the eat_nonce
    +     * claim in the output token. The minimum size for JSON-encoded EATs is 10
    +     * bytes and the maximum size is 74 bytes.
    +     * 
    + * + * repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of nonce. + */ + int getNonceCount(); + + /** + * + * + *
    +     * Optional. Optional parameter to place one or more nonces in the eat_nonce
    +     * claim in the output token. The minimum size for JSON-encoded EATs is 10
    +     * bytes and the maximum size is 74 bytes.
    +     * 
    + * + * repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The nonce at the given index. + */ + java.lang.String getNonce(int index); + + /** + * + * + *
    +     * Optional. Optional parameter to place one or more nonces in the eat_nonce
    +     * claim in the output token. The minimum size for JSON-encoded EATs is 10
    +     * bytes and the maximum size is 74 bytes.
    +     * 
    + * + * repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the nonce at the given index. + */ + com.google.protobuf.ByteString getNonceBytes(int index); + + /** + * + * + *
    +     * Optional. Optional specification for how to sign the attestation token.
    +     * Defaults to SIGNATURE_TYPE_OIDC if unspecified.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.SignatureType signature_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for signatureType. + */ + int getSignatureTypeValue(); + + /** + * + * + *
    +     * Optional. Optional specification for how to sign the attestation token.
    +     * Defaults to SIGNATURE_TYPE_OIDC if unspecified.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.SignatureType signature_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The signatureType. + */ + com.google.cloud.confidentialcomputing.v1.SignatureType getSignatureType(); + + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptions.TokenProfileOptionsCase + getTokenProfileOptionsCase(); + } + + /** + * + * + *
    +   * Token options for Confidential Space attestation.
    +   * 
    + * + * Protobuf type {@code + * google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest.ConfidentialSpaceOptions} + */ + public static final class ConfidentialSpaceOptions extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest.ConfidentialSpaceOptions) + ConfidentialSpaceOptionsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ConfidentialSpaceOptions.newBuilder() to construct. + private ConfidentialSpaceOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ConfidentialSpaceOptions() { + audience_ = ""; + tokenProfile_ = 0; + nonce_ = com.google.protobuf.LazyStringArrayList.emptyList(); + signatureType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ConfidentialSpaceOptions(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialSpaceRequest_ConfidentialSpaceOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialSpaceRequest_ConfidentialSpaceOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptions.class, + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptions.Builder.class); + } + + private int tokenProfileOptionsCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object tokenProfileOptions_; + + public enum TokenProfileOptionsCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + AWS_PRINCIPAL_TAGS_OPTIONS(5), + TOKENPROFILEOPTIONS_NOT_SET(0); + private final int value; + + private TokenProfileOptionsCase(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 TokenProfileOptionsCase valueOf(int value) { + return forNumber(value); + } + + public static TokenProfileOptionsCase forNumber(int value) { + switch (value) { + case 5: + return AWS_PRINCIPAL_TAGS_OPTIONS; + case 0: + return TOKENPROFILEOPTIONS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public TokenProfileOptionsCase getTokenProfileOptionsCase() { + return TokenProfileOptionsCase.forNumber(tokenProfileOptionsCase_); + } + + public static final int AWS_PRINCIPAL_TAGS_OPTIONS_FIELD_NUMBER = 5; + + /** + * + * + *
    +     * Optional. Options for the AWS token type.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions aws_principal_tags_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the awsPrincipalTagsOptions field is set. + */ + @java.lang.Override + public boolean hasAwsPrincipalTagsOptions() { + return tokenProfileOptionsCase_ == 5; + } + + /** + * + * + *
    +     * Optional. Options for the AWS token type.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions aws_principal_tags_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The awsPrincipalTagsOptions. + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + getAwsPrincipalTagsOptions() { + if (tokenProfileOptionsCase_ == 5) { + return (com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions) + tokenProfileOptions_; + } + return com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.getDefaultInstance(); + } + + /** + * + * + *
    +     * Optional. Options for the AWS token type.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions aws_principal_tags_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptionsOrBuilder + getAwsPrincipalTagsOptionsOrBuilder() { + if (tokenProfileOptionsCase_ == 5) { + return (com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions) + tokenProfileOptions_; + } + return com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.getDefaultInstance(); + } + + public static final int AUDIENCE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object audience_ = ""; + + /** + * + * + *
    +     * Optional. Optional string to issue the token with a custom audience
    +     * claim. Required if custom nonces are specified.
    +     * 
    + * + * string audience = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The audience. + */ + @java.lang.Override + public java.lang.String getAudience() { + java.lang.Object ref = audience_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + audience_ = s; + return s; + } + } + + /** + * + * + *
    +     * Optional. Optional string to issue the token with a custom audience
    +     * claim. Required if custom nonces are specified.
    +     * 
    + * + * string audience = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for audience. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAudienceBytes() { + java.lang.Object ref = audience_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + audience_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOKEN_PROFILE_FIELD_NUMBER = 2; + private int tokenProfile_ = 0; + + /** + * + * + *
    +     * Optional. Optional specification for token claims profile.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TokenProfile token_profile = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for tokenProfile. + */ + @java.lang.Override + public int getTokenProfileValue() { + return tokenProfile_; + } + + /** + * + * + *
    +     * Optional. Optional specification for token claims profile.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TokenProfile token_profile = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tokenProfile. + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.TokenProfile getTokenProfile() { + com.google.cloud.confidentialcomputing.v1.TokenProfile result = + com.google.cloud.confidentialcomputing.v1.TokenProfile.forNumber(tokenProfile_); + return result == null + ? com.google.cloud.confidentialcomputing.v1.TokenProfile.UNRECOGNIZED + : result; + } + + public static final int NONCE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList nonce_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
    +     * Optional. Optional parameter to place one or more nonces in the eat_nonce
    +     * claim in the output token. The minimum size for JSON-encoded EATs is 10
    +     * bytes and the maximum size is 74 bytes.
    +     * 
    + * + * repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the nonce. + */ + public com.google.protobuf.ProtocolStringList getNonceList() { + return nonce_; + } + + /** + * + * + *
    +     * Optional. Optional parameter to place one or more nonces in the eat_nonce
    +     * claim in the output token. The minimum size for JSON-encoded EATs is 10
    +     * bytes and the maximum size is 74 bytes.
    +     * 
    + * + * repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of nonce. + */ + public int getNonceCount() { + return nonce_.size(); + } + + /** + * + * + *
    +     * Optional. Optional parameter to place one or more nonces in the eat_nonce
    +     * claim in the output token. The minimum size for JSON-encoded EATs is 10
    +     * bytes and the maximum size is 74 bytes.
    +     * 
    + * + * repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The nonce at the given index. + */ + public java.lang.String getNonce(int index) { + return nonce_.get(index); + } + + /** + * + * + *
    +     * Optional. Optional parameter to place one or more nonces in the eat_nonce
    +     * claim in the output token. The minimum size for JSON-encoded EATs is 10
    +     * bytes and the maximum size is 74 bytes.
    +     * 
    + * + * repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the nonce at the given index. + */ + public com.google.protobuf.ByteString getNonceBytes(int index) { + return nonce_.getByteString(index); + } + + public static final int SIGNATURE_TYPE_FIELD_NUMBER = 4; + private int signatureType_ = 0; + + /** + * + * + *
    +     * Optional. Optional specification for how to sign the attestation token.
    +     * Defaults to SIGNATURE_TYPE_OIDC if unspecified.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.SignatureType signature_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for signatureType. + */ + @java.lang.Override + public int getSignatureTypeValue() { + return signatureType_; + } + + /** + * + * + *
    +     * Optional. Optional specification for how to sign the attestation token.
    +     * Defaults to SIGNATURE_TYPE_OIDC if unspecified.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.SignatureType signature_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The signatureType. + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.SignatureType getSignatureType() { + com.google.cloud.confidentialcomputing.v1.SignatureType result = + com.google.cloud.confidentialcomputing.v1.SignatureType.forNumber(signatureType_); + return result == null + ? com.google.cloud.confidentialcomputing.v1.SignatureType.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(audience_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, audience_); + } + if (tokenProfile_ + != com.google.cloud.confidentialcomputing.v1.TokenProfile.TOKEN_PROFILE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, tokenProfile_); + } + for (int i = 0; i < nonce_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, nonce_.getRaw(i)); + } + if (signatureType_ + != com.google.cloud.confidentialcomputing.v1.SignatureType.SIGNATURE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, signatureType_); + } + if (tokenProfileOptionsCase_ == 5) { + output.writeMessage( + 5, + (com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions) + tokenProfileOptions_); + } + 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(audience_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, audience_); + } + if (tokenProfile_ + != com.google.cloud.confidentialcomputing.v1.TokenProfile.TOKEN_PROFILE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, tokenProfile_); + } + { + int dataSize = 0; + for (int i = 0; i < nonce_.size(); i++) { + dataSize += computeStringSizeNoTag(nonce_.getRaw(i)); + } + size += dataSize; + size += 1 * getNonceList().size(); + } + if (signatureType_ + != com.google.cloud.confidentialcomputing.v1.SignatureType.SIGNATURE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, signatureType_); + } + if (tokenProfileOptionsCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, + (com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions) + tokenProfileOptions_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptions)) { + return super.equals(obj); + } + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptions + other = + (com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptions) + obj; + + if (!getAudience().equals(other.getAudience())) return false; + if (tokenProfile_ != other.tokenProfile_) return false; + if (!getNonceList().equals(other.getNonceList())) return false; + if (signatureType_ != other.signatureType_) return false; + if (!getTokenProfileOptionsCase().equals(other.getTokenProfileOptionsCase())) return false; + switch (tokenProfileOptionsCase_) { + case 5: + if (!getAwsPrincipalTagsOptions().equals(other.getAwsPrincipalTagsOptions())) + 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) + AUDIENCE_FIELD_NUMBER; + hash = (53 * hash) + getAudience().hashCode(); + hash = (37 * hash) + TOKEN_PROFILE_FIELD_NUMBER; + hash = (53 * hash) + tokenProfile_; + if (getNonceCount() > 0) { + hash = (37 * hash) + NONCE_FIELD_NUMBER; + hash = (53 * hash) + getNonceList().hashCode(); + } + hash = (37 * hash) + SIGNATURE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + signatureType_; + switch (tokenProfileOptionsCase_) { + case 5: + hash = (37 * hash) + AWS_PRINCIPAL_TAGS_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getAwsPrincipalTagsOptions().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptions + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptions + 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.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptions + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptions + parseFrom( + 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.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptions + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptions + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptions + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptions + 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.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptions + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptions + 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.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptions + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptions + 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.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptions + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
    +     * Token options for Confidential Space attestation.
    +     * 
    + * + * Protobuf type {@code + * google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest.ConfidentialSpaceOptions} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest.ConfidentialSpaceOptions) + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialSpaceRequest_ConfidentialSpaceOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialSpaceRequest_ConfidentialSpaceOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptions.class, + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptions.Builder.class); + } + + // Construct using + // com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest.ConfidentialSpaceOptions.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (awsPrincipalTagsOptionsBuilder_ != null) { + awsPrincipalTagsOptionsBuilder_.clear(); + } + audience_ = ""; + tokenProfile_ = 0; + nonce_ = com.google.protobuf.LazyStringArrayList.emptyList(); + signatureType_ = 0; + tokenProfileOptionsCase_ = 0; + tokenProfileOptions_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialSpaceRequest_ConfidentialSpaceOptions_descriptor; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptions + getDefaultInstanceForType() { + return com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptions.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptions + build() { + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptions + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptions + buildPartial() { + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptions + result = + new com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptions(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptions + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.audience_ = audience_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.tokenProfile_ = tokenProfile_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + nonce_.makeImmutable(); + result.nonce_ = nonce_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.signatureType_ = signatureType_; + } + } + + private void buildPartialOneofs( + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptions + result) { + result.tokenProfileOptionsCase_ = tokenProfileOptionsCase_; + result.tokenProfileOptions_ = this.tokenProfileOptions_; + if (tokenProfileOptionsCase_ == 5 && awsPrincipalTagsOptionsBuilder_ != null) { + result.tokenProfileOptions_ = awsPrincipalTagsOptionsBuilder_.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.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptions) { + return mergeFrom( + (com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptions) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptions + other) { + if (other + == com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptions.getDefaultInstance()) return this; + if (!other.getAudience().isEmpty()) { + audience_ = other.audience_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.tokenProfile_ != 0) { + setTokenProfileValue(other.getTokenProfileValue()); + } + if (!other.nonce_.isEmpty()) { + if (nonce_.isEmpty()) { + nonce_ = other.nonce_; + bitField0_ |= 0x00000008; + } else { + ensureNonceIsMutable(); + nonce_.addAll(other.nonce_); + } + onChanged(); + } + if (other.signatureType_ != 0) { + setSignatureTypeValue(other.getSignatureTypeValue()); + } + switch (other.getTokenProfileOptionsCase()) { + case AWS_PRINCIPAL_TAGS_OPTIONS: + { + mergeAwsPrincipalTagsOptions(other.getAwsPrincipalTagsOptions()); + break; + } + case TOKENPROFILEOPTIONS_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: + { + audience_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 16: + { + tokenProfile_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 16 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureNonceIsMutable(); + nonce_.add(s); + break; + } // case 26 + case 32: + { + signatureType_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 32 + case 42: + { + input.readMessage( + getAwsPrincipalTagsOptionsFieldBuilder().getBuilder(), extensionRegistry); + tokenProfileOptionsCase_ = 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 tokenProfileOptionsCase_ = 0; + private java.lang.Object tokenProfileOptions_; + + public TokenProfileOptionsCase getTokenProfileOptionsCase() { + return TokenProfileOptionsCase.forNumber(tokenProfileOptionsCase_); + } + + public Builder clearTokenProfileOptions() { + tokenProfileOptionsCase_ = 0; + tokenProfileOptions_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions, + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.Builder, + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptionsOrBuilder> + awsPrincipalTagsOptionsBuilder_; + + /** + * + * + *
    +       * Optional. Options for the AWS token type.
    +       * 
    + * + * + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions aws_principal_tags_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the awsPrincipalTagsOptions field is set. + */ + @java.lang.Override + public boolean hasAwsPrincipalTagsOptions() { + return tokenProfileOptionsCase_ == 5; + } + + /** + * + * + *
    +       * Optional. Options for the AWS token type.
    +       * 
    + * + * + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions aws_principal_tags_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The awsPrincipalTagsOptions. + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + getAwsPrincipalTagsOptions() { + if (awsPrincipalTagsOptionsBuilder_ == null) { + if (tokenProfileOptionsCase_ == 5) { + return (com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions) + tokenProfileOptions_; + } + return com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .getDefaultInstance(); + } else { + if (tokenProfileOptionsCase_ == 5) { + return awsPrincipalTagsOptionsBuilder_.getMessage(); + } + return com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .getDefaultInstance(); + } + } + + /** + * + * + *
    +       * Optional. Options for the AWS token type.
    +       * 
    + * + * + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions aws_principal_tags_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAwsPrincipalTagsOptions( + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions value) { + if (awsPrincipalTagsOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tokenProfileOptions_ = value; + onChanged(); + } else { + awsPrincipalTagsOptionsBuilder_.setMessage(value); + } + tokenProfileOptionsCase_ = 5; + return this; + } + + /** + * + * + *
    +       * Optional. Options for the AWS token type.
    +       * 
    + * + * + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions aws_principal_tags_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAwsPrincipalTagsOptions( + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.Builder + builderForValue) { + if (awsPrincipalTagsOptionsBuilder_ == null) { + tokenProfileOptions_ = builderForValue.build(); + onChanged(); + } else { + awsPrincipalTagsOptionsBuilder_.setMessage(builderForValue.build()); + } + tokenProfileOptionsCase_ = 5; + return this; + } + + /** + * + * + *
    +       * Optional. Options for the AWS token type.
    +       * 
    + * + * + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions aws_principal_tags_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAwsPrincipalTagsOptions( + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions value) { + if (awsPrincipalTagsOptionsBuilder_ == null) { + if (tokenProfileOptionsCase_ == 5 + && tokenProfileOptions_ + != com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .getDefaultInstance()) { + tokenProfileOptions_ = + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.newBuilder( + (com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions) + tokenProfileOptions_) + .mergeFrom(value) + .buildPartial(); + } else { + tokenProfileOptions_ = value; + } + onChanged(); + } else { + if (tokenProfileOptionsCase_ == 5) { + awsPrincipalTagsOptionsBuilder_.mergeFrom(value); + } else { + awsPrincipalTagsOptionsBuilder_.setMessage(value); + } + } + tokenProfileOptionsCase_ = 5; + return this; + } + + /** + * + * + *
    +       * Optional. Options for the AWS token type.
    +       * 
    + * + * + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions aws_principal_tags_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAwsPrincipalTagsOptions() { + if (awsPrincipalTagsOptionsBuilder_ == null) { + if (tokenProfileOptionsCase_ == 5) { + tokenProfileOptionsCase_ = 0; + tokenProfileOptions_ = null; + onChanged(); + } + } else { + if (tokenProfileOptionsCase_ == 5) { + tokenProfileOptionsCase_ = 0; + tokenProfileOptions_ = null; + } + awsPrincipalTagsOptionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +       * Optional. Options for the AWS token type.
    +       * 
    + * + * + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions aws_principal_tags_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.Builder + getAwsPrincipalTagsOptionsBuilder() { + return getAwsPrincipalTagsOptionsFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +       * Optional. Options for the AWS token type.
    +       * 
    + * + * + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions aws_principal_tags_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptionsOrBuilder + getAwsPrincipalTagsOptionsOrBuilder() { + if ((tokenProfileOptionsCase_ == 5) && (awsPrincipalTagsOptionsBuilder_ != null)) { + return awsPrincipalTagsOptionsBuilder_.getMessageOrBuilder(); + } else { + if (tokenProfileOptionsCase_ == 5) { + return (com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions) + tokenProfileOptions_; + } + return com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .getDefaultInstance(); + } + } + + /** + * + * + *
    +       * Optional. Options for the AWS token type.
    +       * 
    + * + * + * .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions aws_principal_tags_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions, + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.Builder, + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptionsOrBuilder> + getAwsPrincipalTagsOptionsFieldBuilder() { + if (awsPrincipalTagsOptionsBuilder_ == null) { + if (!(tokenProfileOptionsCase_ == 5)) { + tokenProfileOptions_ = + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions + .getDefaultInstance(); + } + awsPrincipalTagsOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions, + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions.Builder, + com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptionsOrBuilder>( + (com.google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions) + tokenProfileOptions_, + getParentForChildren(), + isClean()); + tokenProfileOptions_ = null; + } + tokenProfileOptionsCase_ = 5; + onChanged(); + return awsPrincipalTagsOptionsBuilder_; + } + + private java.lang.Object audience_ = ""; + + /** + * + * + *
    +       * Optional. Optional string to issue the token with a custom audience
    +       * claim. Required if custom nonces are specified.
    +       * 
    + * + * string audience = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The audience. + */ + public java.lang.String getAudience() { + java.lang.Object ref = audience_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + audience_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +       * Optional. Optional string to issue the token with a custom audience
    +       * claim. Required if custom nonces are specified.
    +       * 
    + * + * string audience = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for audience. + */ + public com.google.protobuf.ByteString getAudienceBytes() { + java.lang.Object ref = audience_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + audience_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +       * Optional. Optional string to issue the token with a custom audience
    +       * claim. Required if custom nonces are specified.
    +       * 
    + * + * string audience = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The audience to set. + * @return This builder for chaining. + */ + public Builder setAudience(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + audience_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. Optional string to issue the token with a custom audience
    +       * claim. Required if custom nonces are specified.
    +       * 
    + * + * string audience = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAudience() { + audience_ = getDefaultInstance().getAudience(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. Optional string to issue the token with a custom audience
    +       * claim. Required if custom nonces are specified.
    +       * 
    + * + * string audience = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for audience to set. + * @return This builder for chaining. + */ + public Builder setAudienceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + audience_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int tokenProfile_ = 0; + + /** + * + * + *
    +       * Optional. Optional specification for token claims profile.
    +       * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TokenProfile token_profile = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for tokenProfile. + */ + @java.lang.Override + public int getTokenProfileValue() { + return tokenProfile_; + } + + /** + * + * + *
    +       * Optional. Optional specification for token claims profile.
    +       * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TokenProfile token_profile = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for tokenProfile to set. + * @return This builder for chaining. + */ + public Builder setTokenProfileValue(int value) { + tokenProfile_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. Optional specification for token claims profile.
    +       * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TokenProfile token_profile = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tokenProfile. + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.TokenProfile getTokenProfile() { + com.google.cloud.confidentialcomputing.v1.TokenProfile result = + com.google.cloud.confidentialcomputing.v1.TokenProfile.forNumber(tokenProfile_); + return result == null + ? com.google.cloud.confidentialcomputing.v1.TokenProfile.UNRECOGNIZED + : result; + } + + /** + * + * + *
    +       * Optional. Optional specification for token claims profile.
    +       * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TokenProfile token_profile = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The tokenProfile to set. + * @return This builder for chaining. + */ + public Builder setTokenProfile(com.google.cloud.confidentialcomputing.v1.TokenProfile value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + tokenProfile_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. Optional specification for token claims profile.
    +       * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TokenProfile token_profile = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearTokenProfile() { + bitField0_ = (bitField0_ & ~0x00000004); + tokenProfile_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList nonce_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureNonceIsMutable() { + if (!nonce_.isModifiable()) { + nonce_ = new com.google.protobuf.LazyStringArrayList(nonce_); + } + bitField0_ |= 0x00000008; + } + + /** + * + * + *
    +       * Optional. Optional parameter to place one or more nonces in the eat_nonce
    +       * claim in the output token. The minimum size for JSON-encoded EATs is 10
    +       * bytes and the maximum size is 74 bytes.
    +       * 
    + * + * repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the nonce. + */ + public com.google.protobuf.ProtocolStringList getNonceList() { + nonce_.makeImmutable(); + return nonce_; + } + + /** + * + * + *
    +       * Optional. Optional parameter to place one or more nonces in the eat_nonce
    +       * claim in the output token. The minimum size for JSON-encoded EATs is 10
    +       * bytes and the maximum size is 74 bytes.
    +       * 
    + * + * repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of nonce. + */ + public int getNonceCount() { + return nonce_.size(); + } + + /** + * + * + *
    +       * Optional. Optional parameter to place one or more nonces in the eat_nonce
    +       * claim in the output token. The minimum size for JSON-encoded EATs is 10
    +       * bytes and the maximum size is 74 bytes.
    +       * 
    + * + * repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The nonce at the given index. + */ + public java.lang.String getNonce(int index) { + return nonce_.get(index); + } + + /** + * + * + *
    +       * Optional. Optional parameter to place one or more nonces in the eat_nonce
    +       * claim in the output token. The minimum size for JSON-encoded EATs is 10
    +       * bytes and the maximum size is 74 bytes.
    +       * 
    + * + * repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the nonce at the given index. + */ + public com.google.protobuf.ByteString getNonceBytes(int index) { + return nonce_.getByteString(index); + } + + /** + * + * + *
    +       * Optional. Optional parameter to place one or more nonces in the eat_nonce
    +       * claim in the output token. The minimum size for JSON-encoded EATs is 10
    +       * bytes and the maximum size is 74 bytes.
    +       * 
    + * + * repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The nonce to set. + * @return This builder for chaining. + */ + public Builder setNonce(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNonceIsMutable(); + nonce_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. Optional parameter to place one or more nonces in the eat_nonce
    +       * claim in the output token. The minimum size for JSON-encoded EATs is 10
    +       * bytes and the maximum size is 74 bytes.
    +       * 
    + * + * repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The nonce to add. + * @return This builder for chaining. + */ + public Builder addNonce(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNonceIsMutable(); + nonce_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. Optional parameter to place one or more nonces in the eat_nonce
    +       * claim in the output token. The minimum size for JSON-encoded EATs is 10
    +       * bytes and the maximum size is 74 bytes.
    +       * 
    + * + * repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The nonce to add. + * @return This builder for chaining. + */ + public Builder addAllNonce(java.lang.Iterable values) { + ensureNonceIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nonce_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. Optional parameter to place one or more nonces in the eat_nonce
    +       * claim in the output token. The minimum size for JSON-encoded EATs is 10
    +       * bytes and the maximum size is 74 bytes.
    +       * 
    + * + * repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearNonce() { + nonce_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. Optional parameter to place one or more nonces in the eat_nonce
    +       * claim in the output token. The minimum size for JSON-encoded EATs is 10
    +       * bytes and the maximum size is 74 bytes.
    +       * 
    + * + * repeated string nonce = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the nonce to add. + * @return This builder for chaining. + */ + public Builder addNonceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureNonceIsMutable(); + nonce_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private int signatureType_ = 0; + + /** + * + * + *
    +       * Optional. Optional specification for how to sign the attestation token.
    +       * Defaults to SIGNATURE_TYPE_OIDC if unspecified.
    +       * 
    + * + * + * .google.cloud.confidentialcomputing.v1.SignatureType signature_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for signatureType. + */ + @java.lang.Override + public int getSignatureTypeValue() { + return signatureType_; + } + + /** + * + * + *
    +       * Optional. Optional specification for how to sign the attestation token.
    +       * Defaults to SIGNATURE_TYPE_OIDC if unspecified.
    +       * 
    + * + * + * .google.cloud.confidentialcomputing.v1.SignatureType signature_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for signatureType to set. + * @return This builder for chaining. + */ + public Builder setSignatureTypeValue(int value) { + signatureType_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. Optional specification for how to sign the attestation token.
    +       * Defaults to SIGNATURE_TYPE_OIDC if unspecified.
    +       * 
    + * + * + * .google.cloud.confidentialcomputing.v1.SignatureType signature_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The signatureType. + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.SignatureType getSignatureType() { + com.google.cloud.confidentialcomputing.v1.SignatureType result = + com.google.cloud.confidentialcomputing.v1.SignatureType.forNumber(signatureType_); + return result == null + ? com.google.cloud.confidentialcomputing.v1.SignatureType.UNRECOGNIZED + : result; + } + + /** + * + * + *
    +       * Optional. Optional specification for how to sign the attestation token.
    +       * Defaults to SIGNATURE_TYPE_OIDC if unspecified.
    +       * 
    + * + * + * .google.cloud.confidentialcomputing.v1.SignatureType signature_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The signatureType to set. + * @return This builder for chaining. + */ + public Builder setSignatureType( + com.google.cloud.confidentialcomputing.v1.SignatureType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + signatureType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. Optional specification for how to sign the attestation token.
    +       * Defaults to SIGNATURE_TYPE_OIDC if unspecified.
    +       * 
    + * + * + * .google.cloud.confidentialcomputing.v1.SignatureType signature_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearSignatureType() { + bitField0_ = (bitField0_ & ~0x00000010); + signatureType_ = 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.confidentialcomputing.v1.VerifyConfidentialSpaceRequest.ConfidentialSpaceOptions) + } + + // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest.ConfidentialSpaceOptions) + private static final com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptions + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptions(); + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptions + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfidentialSpaceOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptions + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int teeAttestationCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object teeAttestation_; + + public enum TeeAttestationCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TD_CCEL(3), + TPM_ATTESTATION(4), + TEEATTESTATION_NOT_SET(0); + private final int value; + + private TeeAttestationCase(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 TeeAttestationCase valueOf(int value) { + return forNumber(value); + } + + public static TeeAttestationCase forNumber(int value) { + switch (value) { + case 3: + return TD_CCEL; + case 4: + return TPM_ATTESTATION; + case 0: + return TEEATTESTATION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public TeeAttestationCase getTeeAttestationCase() { + return TeeAttestationCase.forNumber(teeAttestationCase_); + } + + public static final int TD_CCEL_FIELD_NUMBER = 3; + + /** + * + * + *
    +   * Input only. A TDX with CCEL and RTMR Attestation Quote.
    +   * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TdxCcelAttestation td_ccel = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return Whether the tdCcel field is set. + */ + @java.lang.Override + public boolean hasTdCcel() { + return teeAttestationCase_ == 3; + } + + /** + * + * + *
    +   * Input only. A TDX with CCEL and RTMR Attestation Quote.
    +   * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TdxCcelAttestation td_ccel = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The tdCcel. + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation getTdCcel() { + if (teeAttestationCase_ == 3) { + return (com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation) teeAttestation_; + } + return com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation.getDefaultInstance(); + } + + /** + * + * + *
    +   * Input only. A TDX with CCEL and RTMR Attestation Quote.
    +   * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TdxCcelAttestation td_ccel = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.TdxCcelAttestationOrBuilder + getTdCcelOrBuilder() { + if (teeAttestationCase_ == 3) { + return (com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation) teeAttestation_; + } + return com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation.getDefaultInstance(); + } + + public static final int TPM_ATTESTATION_FIELD_NUMBER = 4; + + /** + * + * + *
    +   * Input only. The TPM-specific data provided by the attesting platform,
    +   * used to populate any of the claims regarding platform state.
    +   * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return Whether the tpmAttestation field is set. + */ + @java.lang.Override + public boolean hasTpmAttestation() { + return teeAttestationCase_ == 4; + } + + /** + * + * + *
    +   * Input only. The TPM-specific data provided by the attesting platform,
    +   * used to populate any of the claims regarding platform state.
    +   * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The tpmAttestation. + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.TpmAttestation getTpmAttestation() { + if (teeAttestationCase_ == 4) { + return (com.google.cloud.confidentialcomputing.v1.TpmAttestation) teeAttestation_; + } + return com.google.cloud.confidentialcomputing.v1.TpmAttestation.getDefaultInstance(); + } + + /** + * + * + *
    +   * Input only. The TPM-specific data provided by the attesting platform,
    +   * used to populate any of the claims regarding platform state.
    +   * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.TpmAttestationOrBuilder + getTpmAttestationOrBuilder() { + if (teeAttestationCase_ == 4) { + return (com.google.cloud.confidentialcomputing.v1.TpmAttestation) teeAttestation_; + } + return com.google.cloud.confidentialcomputing.v1.TpmAttestation.getDefaultInstance(); + } + + public static final int CHALLENGE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object challenge_ = ""; + + /** + * + * + *
    +   * Required. The name of the Challenge whose nonce was used to generate the
    +   * attestation, in the format `projects/*/locations/*/challenges/*`. The
    +   * provided Challenge will be consumed, and cannot be used again.
    +   * 
    + * + * + * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The challenge. + */ + @java.lang.Override + public java.lang.String getChallenge() { + java.lang.Object ref = challenge_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + challenge_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. The name of the Challenge whose nonce was used to generate the
    +   * attestation, in the format `projects/*/locations/*/challenges/*`. The
    +   * provided Challenge will be consumed, and cannot be used again.
    +   * 
    + * + * + * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for challenge. + */ + @java.lang.Override + public com.google.protobuf.ByteString getChallengeBytes() { + java.lang.Object ref = challenge_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + challenge_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GCP_CREDENTIALS_FIELD_NUMBER = 2; + private com.google.cloud.confidentialcomputing.v1.GcpCredentials gcpCredentials_; + + /** + * + * + *
    +   * Optional. Credentials used to populate the "emails" claim in the
    +   * claims_token. If not present, token will not contain the "emails" claim.
    +   * 
    + * + * + * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the gcpCredentials field is set. + */ + @java.lang.Override + public boolean hasGcpCredentials() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Optional. Credentials used to populate the "emails" claim in the
    +   * claims_token. If not present, token will not contain the "emails" claim.
    +   * 
    + * + * + * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gcpCredentials. + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.GcpCredentials getGcpCredentials() { + return gcpCredentials_ == null + ? com.google.cloud.confidentialcomputing.v1.GcpCredentials.getDefaultInstance() + : gcpCredentials_; + } + + /** + * + * + *
    +   * Optional. Credentials used to populate the "emails" claim in the
    +   * claims_token. If not present, token will not contain the "emails" claim.
    +   * 
    + * + * + * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.GcpCredentialsOrBuilder + getGcpCredentialsOrBuilder() { + return gcpCredentials_ == null + ? com.google.cloud.confidentialcomputing.v1.GcpCredentials.getDefaultInstance() + : gcpCredentials_; + } + + public static final int SIGNED_ENTITIES_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private java.util.List signedEntities_; + + /** + * + * + *
    +   * Optional. A list of signed entities containing container image signatures
    +   * that can be used for server-side signature verification.
    +   * 
    + * + * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getSignedEntitiesList() { + return signedEntities_; + } + + /** + * + * + *
    +   * Optional. A list of signed entities containing container image signatures
    +   * that can be used for server-side signature verification.
    +   * 
    + * + * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getSignedEntitiesOrBuilderList() { + return signedEntities_; + } + + /** + * + * + *
    +   * Optional. A list of signed entities containing container image signatures
    +   * that can be used for server-side signature verification.
    +   * 
    + * + * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getSignedEntitiesCount() { + return signedEntities_.size(); + } + + /** + * + * + *
    +   * Optional. A list of signed entities containing container image signatures
    +   * that can be used for server-side signature verification.
    +   * 
    + * + * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.SignedEntity getSignedEntities(int index) { + return signedEntities_.get(index); + } + + /** + * + * + *
    +   * Optional. A list of signed entities containing container image signatures
    +   * that can be used for server-side signature verification.
    +   * 
    + * + * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.SignedEntityOrBuilder getSignedEntitiesOrBuilder( + int index) { + return signedEntities_.get(index); + } + + public static final int GCE_SHIELDED_IDENTITY_FIELD_NUMBER = 6; + private com.google.cloud.confidentialcomputing.v1.GceShieldedIdentity gceShieldedIdentity_; + + /** + * + * + *
    +   * Optional. Information about the associated Compute Engine instance.
    +   * Required for td_ccel requests only - tpm_attestation requests will provide
    +   * this information in the attestation.
    +   * 
    + * + * + * .google.cloud.confidentialcomputing.v1.GceShieldedIdentity gce_shielded_identity = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the gceShieldedIdentity field is set. + */ + @java.lang.Override + public boolean hasGceShieldedIdentity() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +   * Optional. Information about the associated Compute Engine instance.
    +   * Required for td_ccel requests only - tpm_attestation requests will provide
    +   * this information in the attestation.
    +   * 
    + * + * + * .google.cloud.confidentialcomputing.v1.GceShieldedIdentity gce_shielded_identity = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gceShieldedIdentity. + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.GceShieldedIdentity getGceShieldedIdentity() { + return gceShieldedIdentity_ == null + ? com.google.cloud.confidentialcomputing.v1.GceShieldedIdentity.getDefaultInstance() + : gceShieldedIdentity_; + } + + /** + * + * + *
    +   * Optional. Information about the associated Compute Engine instance.
    +   * Required for td_ccel requests only - tpm_attestation requests will provide
    +   * this information in the attestation.
    +   * 
    + * + * + * .google.cloud.confidentialcomputing.v1.GceShieldedIdentity gce_shielded_identity = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.GceShieldedIdentityOrBuilder + getGceShieldedIdentityOrBuilder() { + return gceShieldedIdentity_ == null + ? com.google.cloud.confidentialcomputing.v1.GceShieldedIdentity.getDefaultInstance() + : gceShieldedIdentity_; + } + + public static final int OPTIONS_FIELD_NUMBER = 7; + private com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptions + options_; + + /** + * + * + *
    +   * Optional. A collection of fields that modify the token output.
    +   * 
    + * + * + * .google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest.ConfidentialSpaceOptions options = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the options field is set. + */ + @java.lang.Override + public boolean hasOptions() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +   * Optional. A collection of fields that modify the token output.
    +   * 
    + * + * + * .google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest.ConfidentialSpaceOptions options = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The options. + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptions + getOptions() { + return options_ == null + ? com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptions.getDefaultInstance() + : options_; + } + + /** + * + * + *
    +   * Optional. A collection of fields that modify the token output.
    +   * 
    + * + * + * .google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest.ConfidentialSpaceOptions options = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptionsOrBuilder + getOptionsOrBuilder() { + return options_ == null + ? com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptions.getDefaultInstance() + : options_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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(challenge_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, challenge_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getGcpCredentials()); + } + if (teeAttestationCase_ == 3) { + output.writeMessage( + 3, (com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation) teeAttestation_); + } + if (teeAttestationCase_ == 4) { + output.writeMessage( + 4, (com.google.cloud.confidentialcomputing.v1.TpmAttestation) teeAttestation_); + } + for (int i = 0; i < signedEntities_.size(); i++) { + output.writeMessage(5, signedEntities_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getGceShieldedIdentity()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(7, getOptions()); + } + 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(challenge_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, challenge_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getGcpCredentials()); + } + if (teeAttestationCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation) teeAttestation_); + } + if (teeAttestationCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.confidentialcomputing.v1.TpmAttestation) teeAttestation_); + } + for (int i = 0; i < signedEntities_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, signedEntities_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getGceShieldedIdentity()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getOptions()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.confidentialcomputing.v1.VerifyConfidentialSpaceRequest)) { + return super.equals(obj); + } + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest other = + (com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest) obj; + + if (!getChallenge().equals(other.getChallenge())) return false; + if (hasGcpCredentials() != other.hasGcpCredentials()) return false; + if (hasGcpCredentials()) { + if (!getGcpCredentials().equals(other.getGcpCredentials())) return false; + } + if (!getSignedEntitiesList().equals(other.getSignedEntitiesList())) return false; + if (hasGceShieldedIdentity() != other.hasGceShieldedIdentity()) return false; + if (hasGceShieldedIdentity()) { + if (!getGceShieldedIdentity().equals(other.getGceShieldedIdentity())) return false; + } + if (hasOptions() != other.hasOptions()) return false; + if (hasOptions()) { + if (!getOptions().equals(other.getOptions())) return false; + } + if (!getTeeAttestationCase().equals(other.getTeeAttestationCase())) return false; + switch (teeAttestationCase_) { + case 3: + if (!getTdCcel().equals(other.getTdCcel())) return false; + break; + case 4: + if (!getTpmAttestation().equals(other.getTpmAttestation())) 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) + CHALLENGE_FIELD_NUMBER; + hash = (53 * hash) + getChallenge().hashCode(); + if (hasGcpCredentials()) { + hash = (37 * hash) + GCP_CREDENTIALS_FIELD_NUMBER; + hash = (53 * hash) + getGcpCredentials().hashCode(); + } + if (getSignedEntitiesCount() > 0) { + hash = (37 * hash) + SIGNED_ENTITIES_FIELD_NUMBER; + hash = (53 * hash) + getSignedEntitiesList().hashCode(); + } + if (hasGceShieldedIdentity()) { + hash = (37 * hash) + GCE_SHIELDED_IDENTITY_FIELD_NUMBER; + hash = (53 * hash) + getGceShieldedIdentity().hashCode(); + } + if (hasOptions()) { + hash = (37 * hash) + OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getOptions().hashCode(); + } + switch (teeAttestationCase_) { + case 3: + hash = (37 * hash) + TD_CCEL_FIELD_NUMBER; + hash = (53 * hash) + getTdCcel().hashCode(); + break; + case 4: + hash = (37 * hash) + TPM_ATTESTATION_FIELD_NUMBER; + hash = (53 * hash) + getTpmAttestation().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest 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.confidentialcomputing.v1.VerifyConfidentialSpaceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest parseFrom( + 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.confidentialcomputing.v1.VerifyConfidentialSpaceRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest 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.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + 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.confidentialcomputing.v1.VerifyConfidentialSpaceRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest 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.confidentialcomputing.v1.VerifyConfidentialSpaceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 request for an attestation token, providing all the necessary information
    +   * needed for this service to verify the platform state of the requestor.
    +   * 
    + * + * Protobuf type {@code google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest) + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialSpaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialSpaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest.class, + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getGcpCredentialsFieldBuilder(); + getSignedEntitiesFieldBuilder(); + getGceShieldedIdentityFieldBuilder(); + getOptionsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (tdCcelBuilder_ != null) { + tdCcelBuilder_.clear(); + } + if (tpmAttestationBuilder_ != null) { + tpmAttestationBuilder_.clear(); + } + challenge_ = ""; + gcpCredentials_ = null; + if (gcpCredentialsBuilder_ != null) { + gcpCredentialsBuilder_.dispose(); + gcpCredentialsBuilder_ = null; + } + if (signedEntitiesBuilder_ == null) { + signedEntities_ = java.util.Collections.emptyList(); + } else { + signedEntities_ = null; + signedEntitiesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + gceShieldedIdentity_ = null; + if (gceShieldedIdentityBuilder_ != null) { + gceShieldedIdentityBuilder_.dispose(); + gceShieldedIdentityBuilder_ = null; + } + options_ = null; + if (optionsBuilder_ != null) { + optionsBuilder_.dispose(); + optionsBuilder_ = null; + } + teeAttestationCase_ = 0; + teeAttestation_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialSpaceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + getDefaultInstanceForType() { + return com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest build() { + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest buildPartial() { + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest result = + new com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest result) { + if (signedEntitiesBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + signedEntities_ = java.util.Collections.unmodifiableList(signedEntities_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.signedEntities_ = signedEntities_; + } else { + result.signedEntities_ = signedEntitiesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.challenge_ = challenge_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.gcpCredentials_ = + gcpCredentialsBuilder_ == null ? gcpCredentials_ : gcpCredentialsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.gceShieldedIdentity_ = + gceShieldedIdentityBuilder_ == null + ? gceShieldedIdentity_ + : gceShieldedIdentityBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.options_ = optionsBuilder_ == null ? options_ : optionsBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest result) { + result.teeAttestationCase_ = teeAttestationCase_; + result.teeAttestation_ = this.teeAttestation_; + if (teeAttestationCase_ == 3 && tdCcelBuilder_ != null) { + result.teeAttestation_ = tdCcelBuilder_.build(); + } + if (teeAttestationCase_ == 4 && tpmAttestationBuilder_ != null) { + result.teeAttestation_ = tpmAttestationBuilder_.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.confidentialcomputing.v1.VerifyConfidentialSpaceRequest) { + return mergeFrom( + (com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest other) { + if (other + == com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .getDefaultInstance()) return this; + if (!other.getChallenge().isEmpty()) { + challenge_ = other.challenge_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasGcpCredentials()) { + mergeGcpCredentials(other.getGcpCredentials()); + } + if (signedEntitiesBuilder_ == null) { + if (!other.signedEntities_.isEmpty()) { + if (signedEntities_.isEmpty()) { + signedEntities_ = other.signedEntities_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureSignedEntitiesIsMutable(); + signedEntities_.addAll(other.signedEntities_); + } + onChanged(); + } + } else { + if (!other.signedEntities_.isEmpty()) { + if (signedEntitiesBuilder_.isEmpty()) { + signedEntitiesBuilder_.dispose(); + signedEntitiesBuilder_ = null; + signedEntities_ = other.signedEntities_; + bitField0_ = (bitField0_ & ~0x00000010); + signedEntitiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSignedEntitiesFieldBuilder() + : null; + } else { + signedEntitiesBuilder_.addAllMessages(other.signedEntities_); + } + } + } + if (other.hasGceShieldedIdentity()) { + mergeGceShieldedIdentity(other.getGceShieldedIdentity()); + } + if (other.hasOptions()) { + mergeOptions(other.getOptions()); + } + switch (other.getTeeAttestationCase()) { + case TD_CCEL: + { + mergeTdCcel(other.getTdCcel()); + break; + } + case TPM_ATTESTATION: + { + mergeTpmAttestation(other.getTpmAttestation()); + break; + } + case TEEATTESTATION_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: + { + challenge_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 18: + { + input.readMessage(getGcpCredentialsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 18 + case 26: + { + input.readMessage(getTdCcelFieldBuilder().getBuilder(), extensionRegistry); + teeAttestationCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage(getTpmAttestationFieldBuilder().getBuilder(), extensionRegistry); + teeAttestationCase_ = 4; + break; + } // case 34 + case 42: + { + com.google.cloud.confidentialcomputing.v1.SignedEntity m = + input.readMessage( + com.google.cloud.confidentialcomputing.v1.SignedEntity.parser(), + extensionRegistry); + if (signedEntitiesBuilder_ == null) { + ensureSignedEntitiesIsMutable(); + signedEntities_.add(m); + } else { + signedEntitiesBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: + { + input.readMessage( + getGceShieldedIdentityFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage(getOptionsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int teeAttestationCase_ = 0; + private java.lang.Object teeAttestation_; + + public TeeAttestationCase getTeeAttestationCase() { + return TeeAttestationCase.forNumber(teeAttestationCase_); + } + + public Builder clearTeeAttestation() { + teeAttestationCase_ = 0; + teeAttestation_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation, + com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation.Builder, + com.google.cloud.confidentialcomputing.v1.TdxCcelAttestationOrBuilder> + tdCcelBuilder_; + + /** + * + * + *
    +     * Input only. A TDX with CCEL and RTMR Attestation Quote.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TdxCcelAttestation td_ccel = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return Whether the tdCcel field is set. + */ + @java.lang.Override + public boolean hasTdCcel() { + return teeAttestationCase_ == 3; + } + + /** + * + * + *
    +     * Input only. A TDX with CCEL and RTMR Attestation Quote.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TdxCcelAttestation td_ccel = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The tdCcel. + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation getTdCcel() { + if (tdCcelBuilder_ == null) { + if (teeAttestationCase_ == 3) { + return (com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation) teeAttestation_; + } + return com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation.getDefaultInstance(); + } else { + if (teeAttestationCase_ == 3) { + return tdCcelBuilder_.getMessage(); + } + return com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Input only. A TDX with CCEL and RTMR Attestation Quote.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TdxCcelAttestation td_ccel = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder setTdCcel(com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation value) { + if (tdCcelBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + teeAttestation_ = value; + onChanged(); + } else { + tdCcelBuilder_.setMessage(value); + } + teeAttestationCase_ = 3; + return this; + } + + /** + * + * + *
    +     * Input only. A TDX with CCEL and RTMR Attestation Quote.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TdxCcelAttestation td_ccel = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder setTdCcel( + com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation.Builder builderForValue) { + if (tdCcelBuilder_ == null) { + teeAttestation_ = builderForValue.build(); + onChanged(); + } else { + tdCcelBuilder_.setMessage(builderForValue.build()); + } + teeAttestationCase_ = 3; + return this; + } + + /** + * + * + *
    +     * Input only. A TDX with CCEL and RTMR Attestation Quote.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TdxCcelAttestation td_ccel = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder mergeTdCcel(com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation value) { + if (tdCcelBuilder_ == null) { + if (teeAttestationCase_ == 3 + && teeAttestation_ + != com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation + .getDefaultInstance()) { + teeAttestation_ = + com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation.newBuilder( + (com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation) + teeAttestation_) + .mergeFrom(value) + .buildPartial(); + } else { + teeAttestation_ = value; + } + onChanged(); + } else { + if (teeAttestationCase_ == 3) { + tdCcelBuilder_.mergeFrom(value); + } else { + tdCcelBuilder_.setMessage(value); + } + } + teeAttestationCase_ = 3; + return this; + } + + /** + * + * + *
    +     * Input only. A TDX with CCEL and RTMR Attestation Quote.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TdxCcelAttestation td_ccel = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder clearTdCcel() { + if (tdCcelBuilder_ == null) { + if (teeAttestationCase_ == 3) { + teeAttestationCase_ = 0; + teeAttestation_ = null; + onChanged(); + } + } else { + if (teeAttestationCase_ == 3) { + teeAttestationCase_ = 0; + teeAttestation_ = null; + } + tdCcelBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Input only. A TDX with CCEL and RTMR Attestation Quote.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TdxCcelAttestation td_ccel = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation.Builder getTdCcelBuilder() { + return getTdCcelFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Input only. A TDX with CCEL and RTMR Attestation Quote.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TdxCcelAttestation td_ccel = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.TdxCcelAttestationOrBuilder + getTdCcelOrBuilder() { + if ((teeAttestationCase_ == 3) && (tdCcelBuilder_ != null)) { + return tdCcelBuilder_.getMessageOrBuilder(); + } else { + if (teeAttestationCase_ == 3) { + return (com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation) teeAttestation_; + } + return com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Input only. A TDX with CCEL and RTMR Attestation Quote.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TdxCcelAttestation td_ccel = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation, + com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation.Builder, + com.google.cloud.confidentialcomputing.v1.TdxCcelAttestationOrBuilder> + getTdCcelFieldBuilder() { + if (tdCcelBuilder_ == null) { + if (!(teeAttestationCase_ == 3)) { + teeAttestation_ = + com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation.getDefaultInstance(); + } + tdCcelBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation, + com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation.Builder, + com.google.cloud.confidentialcomputing.v1.TdxCcelAttestationOrBuilder>( + (com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation) teeAttestation_, + getParentForChildren(), + isClean()); + teeAttestation_ = null; + } + teeAttestationCase_ = 3; + onChanged(); + return tdCcelBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.TpmAttestation, + com.google.cloud.confidentialcomputing.v1.TpmAttestation.Builder, + com.google.cloud.confidentialcomputing.v1.TpmAttestationOrBuilder> + tpmAttestationBuilder_; + + /** + * + * + *
    +     * Input only. The TPM-specific data provided by the attesting platform,
    +     * used to populate any of the claims regarding platform state.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return Whether the tpmAttestation field is set. + */ + @java.lang.Override + public boolean hasTpmAttestation() { + return teeAttestationCase_ == 4; + } + + /** + * + * + *
    +     * Input only. The TPM-specific data provided by the attesting platform,
    +     * used to populate any of the claims regarding platform state.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The tpmAttestation. + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.TpmAttestation getTpmAttestation() { + if (tpmAttestationBuilder_ == null) { + if (teeAttestationCase_ == 4) { + return (com.google.cloud.confidentialcomputing.v1.TpmAttestation) teeAttestation_; + } + return com.google.cloud.confidentialcomputing.v1.TpmAttestation.getDefaultInstance(); + } else { + if (teeAttestationCase_ == 4) { + return tpmAttestationBuilder_.getMessage(); + } + return com.google.cloud.confidentialcomputing.v1.TpmAttestation.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Input only. The TPM-specific data provided by the attesting platform,
    +     * used to populate any of the claims regarding platform state.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder setTpmAttestation( + com.google.cloud.confidentialcomputing.v1.TpmAttestation value) { + if (tpmAttestationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + teeAttestation_ = value; + onChanged(); + } else { + tpmAttestationBuilder_.setMessage(value); + } + teeAttestationCase_ = 4; + return this; + } + + /** + * + * + *
    +     * Input only. The TPM-specific data provided by the attesting platform,
    +     * used to populate any of the claims regarding platform state.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder setTpmAttestation( + com.google.cloud.confidentialcomputing.v1.TpmAttestation.Builder builderForValue) { + if (tpmAttestationBuilder_ == null) { + teeAttestation_ = builderForValue.build(); + onChanged(); + } else { + tpmAttestationBuilder_.setMessage(builderForValue.build()); + } + teeAttestationCase_ = 4; + return this; + } + + /** + * + * + *
    +     * Input only. The TPM-specific data provided by the attesting platform,
    +     * used to populate any of the claims regarding platform state.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder mergeTpmAttestation( + com.google.cloud.confidentialcomputing.v1.TpmAttestation value) { + if (tpmAttestationBuilder_ == null) { + if (teeAttestationCase_ == 4 + && teeAttestation_ + != com.google.cloud.confidentialcomputing.v1.TpmAttestation.getDefaultInstance()) { + teeAttestation_ = + com.google.cloud.confidentialcomputing.v1.TpmAttestation.newBuilder( + (com.google.cloud.confidentialcomputing.v1.TpmAttestation) teeAttestation_) + .mergeFrom(value) + .buildPartial(); + } else { + teeAttestation_ = value; + } + onChanged(); + } else { + if (teeAttestationCase_ == 4) { + tpmAttestationBuilder_.mergeFrom(value); + } else { + tpmAttestationBuilder_.setMessage(value); + } + } + teeAttestationCase_ = 4; + return this; + } + + /** + * + * + *
    +     * Input only. The TPM-specific data provided by the attesting platform,
    +     * used to populate any of the claims regarding platform state.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder clearTpmAttestation() { + if (tpmAttestationBuilder_ == null) { + if (teeAttestationCase_ == 4) { + teeAttestationCase_ = 0; + teeAttestation_ = null; + onChanged(); + } + } else { + if (teeAttestationCase_ == 4) { + teeAttestationCase_ = 0; + teeAttestation_ = null; + } + tpmAttestationBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Input only. The TPM-specific data provided by the attesting platform,
    +     * used to populate any of the claims regarding platform state.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public com.google.cloud.confidentialcomputing.v1.TpmAttestation.Builder + getTpmAttestationBuilder() { + return getTpmAttestationFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Input only. The TPM-specific data provided by the attesting platform,
    +     * used to populate any of the claims regarding platform state.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.TpmAttestationOrBuilder + getTpmAttestationOrBuilder() { + if ((teeAttestationCase_ == 4) && (tpmAttestationBuilder_ != null)) { + return tpmAttestationBuilder_.getMessageOrBuilder(); + } else { + if (teeAttestationCase_ == 4) { + return (com.google.cloud.confidentialcomputing.v1.TpmAttestation) teeAttestation_; + } + return com.google.cloud.confidentialcomputing.v1.TpmAttestation.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Input only. The TPM-specific data provided by the attesting platform,
    +     * used to populate any of the claims regarding platform state.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.TpmAttestation, + com.google.cloud.confidentialcomputing.v1.TpmAttestation.Builder, + com.google.cloud.confidentialcomputing.v1.TpmAttestationOrBuilder> + getTpmAttestationFieldBuilder() { + if (tpmAttestationBuilder_ == null) { + if (!(teeAttestationCase_ == 4)) { + teeAttestation_ = + com.google.cloud.confidentialcomputing.v1.TpmAttestation.getDefaultInstance(); + } + tpmAttestationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.TpmAttestation, + com.google.cloud.confidentialcomputing.v1.TpmAttestation.Builder, + com.google.cloud.confidentialcomputing.v1.TpmAttestationOrBuilder>( + (com.google.cloud.confidentialcomputing.v1.TpmAttestation) teeAttestation_, + getParentForChildren(), + isClean()); + teeAttestation_ = null; + } + teeAttestationCase_ = 4; + onChanged(); + return tpmAttestationBuilder_; + } + + private java.lang.Object challenge_ = ""; + + /** + * + * + *
    +     * Required. The name of the Challenge whose nonce was used to generate the
    +     * attestation, in the format `projects/*/locations/*/challenges/*`. The
    +     * provided Challenge will be consumed, and cannot be used again.
    +     * 
    + * + * + * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The challenge. + */ + public java.lang.String getChallenge() { + java.lang.Object ref = challenge_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + challenge_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. The name of the Challenge whose nonce was used to generate the
    +     * attestation, in the format `projects/*/locations/*/challenges/*`. The
    +     * provided Challenge will be consumed, and cannot be used again.
    +     * 
    + * + * + * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for challenge. + */ + public com.google.protobuf.ByteString getChallengeBytes() { + java.lang.Object ref = challenge_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + challenge_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. The name of the Challenge whose nonce was used to generate the
    +     * attestation, in the format `projects/*/locations/*/challenges/*`. The
    +     * provided Challenge will be consumed, and cannot be used again.
    +     * 
    + * + * + * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The challenge to set. + * @return This builder for chaining. + */ + public Builder setChallenge(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + challenge_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The name of the Challenge whose nonce was used to generate the
    +     * attestation, in the format `projects/*/locations/*/challenges/*`. The
    +     * provided Challenge will be consumed, and cannot be used again.
    +     * 
    + * + * + * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearChallenge() { + challenge_ = getDefaultInstance().getChallenge(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The name of the Challenge whose nonce was used to generate the
    +     * attestation, in the format `projects/*/locations/*/challenges/*`. The
    +     * provided Challenge will be consumed, and cannot be used again.
    +     * 
    + * + * + * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for challenge to set. + * @return This builder for chaining. + */ + public Builder setChallengeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + challenge_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.cloud.confidentialcomputing.v1.GcpCredentials gcpCredentials_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.GcpCredentials, + com.google.cloud.confidentialcomputing.v1.GcpCredentials.Builder, + com.google.cloud.confidentialcomputing.v1.GcpCredentialsOrBuilder> + gcpCredentialsBuilder_; + + /** + * + * + *
    +     * Optional. Credentials used to populate the "emails" claim in the
    +     * claims_token. If not present, token will not contain the "emails" claim.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the gcpCredentials field is set. + */ + public boolean hasGcpCredentials() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
    +     * Optional. Credentials used to populate the "emails" claim in the
    +     * claims_token. If not present, token will not contain the "emails" claim.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gcpCredentials. + */ + public com.google.cloud.confidentialcomputing.v1.GcpCredentials getGcpCredentials() { + if (gcpCredentialsBuilder_ == null) { + return gcpCredentials_ == null + ? com.google.cloud.confidentialcomputing.v1.GcpCredentials.getDefaultInstance() + : gcpCredentials_; + } else { + return gcpCredentialsBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Optional. Credentials used to populate the "emails" claim in the
    +     * claims_token. If not present, token will not contain the "emails" claim.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGcpCredentials( + com.google.cloud.confidentialcomputing.v1.GcpCredentials value) { + if (gcpCredentialsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gcpCredentials_ = value; + } else { + gcpCredentialsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Credentials used to populate the "emails" claim in the
    +     * claims_token. If not present, token will not contain the "emails" claim.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGcpCredentials( + com.google.cloud.confidentialcomputing.v1.GcpCredentials.Builder builderForValue) { + if (gcpCredentialsBuilder_ == null) { + gcpCredentials_ = builderForValue.build(); + } else { + gcpCredentialsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Credentials used to populate the "emails" claim in the
    +     * claims_token. If not present, token will not contain the "emails" claim.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeGcpCredentials( + com.google.cloud.confidentialcomputing.v1.GcpCredentials value) { + if (gcpCredentialsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && gcpCredentials_ != null + && gcpCredentials_ + != com.google.cloud.confidentialcomputing.v1.GcpCredentials.getDefaultInstance()) { + getGcpCredentialsBuilder().mergeFrom(value); + } else { + gcpCredentials_ = value; + } + } else { + gcpCredentialsBuilder_.mergeFrom(value); + } + if (gcpCredentials_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Optional. Credentials used to populate the "emails" claim in the
    +     * claims_token. If not present, token will not contain the "emails" claim.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearGcpCredentials() { + bitField0_ = (bitField0_ & ~0x00000008); + gcpCredentials_ = null; + if (gcpCredentialsBuilder_ != null) { + gcpCredentialsBuilder_.dispose(); + gcpCredentialsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Credentials used to populate the "emails" claim in the
    +     * claims_token. If not present, token will not contain the "emails" claim.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.confidentialcomputing.v1.GcpCredentials.Builder + getGcpCredentialsBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getGcpCredentialsFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. Credentials used to populate the "emails" claim in the
    +     * claims_token. If not present, token will not contain the "emails" claim.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.confidentialcomputing.v1.GcpCredentialsOrBuilder + getGcpCredentialsOrBuilder() { + if (gcpCredentialsBuilder_ != null) { + return gcpCredentialsBuilder_.getMessageOrBuilder(); + } else { + return gcpCredentials_ == null + ? com.google.cloud.confidentialcomputing.v1.GcpCredentials.getDefaultInstance() + : gcpCredentials_; + } + } + + /** + * + * + *
    +     * Optional. Credentials used to populate the "emails" claim in the
    +     * claims_token. If not present, token will not contain the "emails" claim.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.GcpCredentials, + com.google.cloud.confidentialcomputing.v1.GcpCredentials.Builder, + com.google.cloud.confidentialcomputing.v1.GcpCredentialsOrBuilder> + getGcpCredentialsFieldBuilder() { + if (gcpCredentialsBuilder_ == null) { + gcpCredentialsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.GcpCredentials, + com.google.cloud.confidentialcomputing.v1.GcpCredentials.Builder, + com.google.cloud.confidentialcomputing.v1.GcpCredentialsOrBuilder>( + getGcpCredentials(), getParentForChildren(), isClean()); + gcpCredentials_ = null; + } + return gcpCredentialsBuilder_; + } + + private java.util.List signedEntities_ = + java.util.Collections.emptyList(); + + private void ensureSignedEntitiesIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + signedEntities_ = + new java.util.ArrayList( + signedEntities_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.SignedEntity, + com.google.cloud.confidentialcomputing.v1.SignedEntity.Builder, + com.google.cloud.confidentialcomputing.v1.SignedEntityOrBuilder> + signedEntitiesBuilder_; + + /** + * + * + *
    +     * Optional. A list of signed entities containing container image signatures
    +     * that can be used for server-side signature verification.
    +     * 
    + * + * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getSignedEntitiesList() { + if (signedEntitiesBuilder_ == null) { + return java.util.Collections.unmodifiableList(signedEntities_); + } else { + return signedEntitiesBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * Optional. A list of signed entities containing container image signatures
    +     * that can be used for server-side signature verification.
    +     * 
    + * + * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getSignedEntitiesCount() { + if (signedEntitiesBuilder_ == null) { + return signedEntities_.size(); + } else { + return signedEntitiesBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * Optional. A list of signed entities containing container image signatures
    +     * that can be used for server-side signature verification.
    +     * 
    + * + * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.confidentialcomputing.v1.SignedEntity getSignedEntities(int index) { + if (signedEntitiesBuilder_ == null) { + return signedEntities_.get(index); + } else { + return signedEntitiesBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * Optional. A list of signed entities containing container image signatures
    +     * that can be used for server-side signature verification.
    +     * 
    + * + * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSignedEntities( + int index, com.google.cloud.confidentialcomputing.v1.SignedEntity value) { + if (signedEntitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSignedEntitiesIsMutable(); + signedEntities_.set(index, value); + onChanged(); + } else { + signedEntitiesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Optional. A list of signed entities containing container image signatures
    +     * that can be used for server-side signature verification.
    +     * 
    + * + * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSignedEntities( + int index, com.google.cloud.confidentialcomputing.v1.SignedEntity.Builder builderForValue) { + if (signedEntitiesBuilder_ == null) { + ensureSignedEntitiesIsMutable(); + signedEntities_.set(index, builderForValue.build()); + onChanged(); + } else { + signedEntitiesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Optional. A list of signed entities containing container image signatures
    +     * that can be used for server-side signature verification.
    +     * 
    + * + * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSignedEntities(com.google.cloud.confidentialcomputing.v1.SignedEntity value) { + if (signedEntitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSignedEntitiesIsMutable(); + signedEntities_.add(value); + onChanged(); + } else { + signedEntitiesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * Optional. A list of signed entities containing container image signatures
    +     * that can be used for server-side signature verification.
    +     * 
    + * + * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSignedEntities( + int index, com.google.cloud.confidentialcomputing.v1.SignedEntity value) { + if (signedEntitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSignedEntitiesIsMutable(); + signedEntities_.add(index, value); + onChanged(); + } else { + signedEntitiesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Optional. A list of signed entities containing container image signatures
    +     * that can be used for server-side signature verification.
    +     * 
    + * + * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSignedEntities( + com.google.cloud.confidentialcomputing.v1.SignedEntity.Builder builderForValue) { + if (signedEntitiesBuilder_ == null) { + ensureSignedEntitiesIsMutable(); + signedEntities_.add(builderForValue.build()); + onChanged(); + } else { + signedEntitiesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Optional. A list of signed entities containing container image signatures
    +     * that can be used for server-side signature verification.
    +     * 
    + * + * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSignedEntities( + int index, com.google.cloud.confidentialcomputing.v1.SignedEntity.Builder builderForValue) { + if (signedEntitiesBuilder_ == null) { + ensureSignedEntitiesIsMutable(); + signedEntities_.add(index, builderForValue.build()); + onChanged(); + } else { + signedEntitiesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Optional. A list of signed entities containing container image signatures
    +     * that can be used for server-side signature verification.
    +     * 
    + * + * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllSignedEntities( + java.lang.Iterable + values) { + if (signedEntitiesBuilder_ == null) { + ensureSignedEntitiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, signedEntities_); + onChanged(); + } else { + signedEntitiesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * Optional. A list of signed entities containing container image signatures
    +     * that can be used for server-side signature verification.
    +     * 
    + * + * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSignedEntities() { + if (signedEntitiesBuilder_ == null) { + signedEntities_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + signedEntitiesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Optional. A list of signed entities containing container image signatures
    +     * that can be used for server-side signature verification.
    +     * 
    + * + * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeSignedEntities(int index) { + if (signedEntitiesBuilder_ == null) { + ensureSignedEntitiesIsMutable(); + signedEntities_.remove(index); + onChanged(); + } else { + signedEntitiesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * Optional. A list of signed entities containing container image signatures
    +     * that can be used for server-side signature verification.
    +     * 
    + * + * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.confidentialcomputing.v1.SignedEntity.Builder getSignedEntitiesBuilder( + int index) { + return getSignedEntitiesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * Optional. A list of signed entities containing container image signatures
    +     * that can be used for server-side signature verification.
    +     * 
    + * + * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.confidentialcomputing.v1.SignedEntityOrBuilder + getSignedEntitiesOrBuilder(int index) { + if (signedEntitiesBuilder_ == null) { + return signedEntities_.get(index); + } else { + return signedEntitiesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * Optional. A list of signed entities containing container image signatures
    +     * that can be used for server-side signature verification.
    +     * 
    + * + * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getSignedEntitiesOrBuilderList() { + if (signedEntitiesBuilder_ != null) { + return signedEntitiesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(signedEntities_); + } + } + + /** + * + * + *
    +     * Optional. A list of signed entities containing container image signatures
    +     * that can be used for server-side signature verification.
    +     * 
    + * + * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.confidentialcomputing.v1.SignedEntity.Builder + addSignedEntitiesBuilder() { + return getSignedEntitiesFieldBuilder() + .addBuilder(com.google.cloud.confidentialcomputing.v1.SignedEntity.getDefaultInstance()); + } + + /** + * + * + *
    +     * Optional. A list of signed entities containing container image signatures
    +     * that can be used for server-side signature verification.
    +     * 
    + * + * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.confidentialcomputing.v1.SignedEntity.Builder addSignedEntitiesBuilder( + int index) { + return getSignedEntitiesFieldBuilder() + .addBuilder( + index, com.google.cloud.confidentialcomputing.v1.SignedEntity.getDefaultInstance()); + } + + /** + * + * + *
    +     * Optional. A list of signed entities containing container image signatures
    +     * that can be used for server-side signature verification.
    +     * 
    + * + * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getSignedEntitiesBuilderList() { + return getSignedEntitiesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.SignedEntity, + com.google.cloud.confidentialcomputing.v1.SignedEntity.Builder, + com.google.cloud.confidentialcomputing.v1.SignedEntityOrBuilder> + getSignedEntitiesFieldBuilder() { + if (signedEntitiesBuilder_ == null) { + signedEntitiesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.SignedEntity, + com.google.cloud.confidentialcomputing.v1.SignedEntity.Builder, + com.google.cloud.confidentialcomputing.v1.SignedEntityOrBuilder>( + signedEntities_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + signedEntities_ = null; + } + return signedEntitiesBuilder_; + } + + private com.google.cloud.confidentialcomputing.v1.GceShieldedIdentity gceShieldedIdentity_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.GceShieldedIdentity, + com.google.cloud.confidentialcomputing.v1.GceShieldedIdentity.Builder, + com.google.cloud.confidentialcomputing.v1.GceShieldedIdentityOrBuilder> + gceShieldedIdentityBuilder_; + + /** + * + * + *
    +     * Optional. Information about the associated Compute Engine instance.
    +     * Required for td_ccel requests only - tpm_attestation requests will provide
    +     * this information in the attestation.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.GceShieldedIdentity gce_shielded_identity = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the gceShieldedIdentity field is set. + */ + public boolean hasGceShieldedIdentity() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
    +     * Optional. Information about the associated Compute Engine instance.
    +     * Required for td_ccel requests only - tpm_attestation requests will provide
    +     * this information in the attestation.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.GceShieldedIdentity gce_shielded_identity = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gceShieldedIdentity. + */ + public com.google.cloud.confidentialcomputing.v1.GceShieldedIdentity getGceShieldedIdentity() { + if (gceShieldedIdentityBuilder_ == null) { + return gceShieldedIdentity_ == null + ? com.google.cloud.confidentialcomputing.v1.GceShieldedIdentity.getDefaultInstance() + : gceShieldedIdentity_; + } else { + return gceShieldedIdentityBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Optional. Information about the associated Compute Engine instance.
    +     * Required for td_ccel requests only - tpm_attestation requests will provide
    +     * this information in the attestation.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.GceShieldedIdentity gce_shielded_identity = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGceShieldedIdentity( + com.google.cloud.confidentialcomputing.v1.GceShieldedIdentity value) { + if (gceShieldedIdentityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gceShieldedIdentity_ = value; + } else { + gceShieldedIdentityBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Information about the associated Compute Engine instance.
    +     * Required for td_ccel requests only - tpm_attestation requests will provide
    +     * this information in the attestation.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.GceShieldedIdentity gce_shielded_identity = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGceShieldedIdentity( + com.google.cloud.confidentialcomputing.v1.GceShieldedIdentity.Builder builderForValue) { + if (gceShieldedIdentityBuilder_ == null) { + gceShieldedIdentity_ = builderForValue.build(); + } else { + gceShieldedIdentityBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Information about the associated Compute Engine instance.
    +     * Required for td_ccel requests only - tpm_attestation requests will provide
    +     * this information in the attestation.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.GceShieldedIdentity gce_shielded_identity = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeGceShieldedIdentity( + com.google.cloud.confidentialcomputing.v1.GceShieldedIdentity value) { + if (gceShieldedIdentityBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && gceShieldedIdentity_ != null + && gceShieldedIdentity_ + != com.google.cloud.confidentialcomputing.v1.GceShieldedIdentity + .getDefaultInstance()) { + getGceShieldedIdentityBuilder().mergeFrom(value); + } else { + gceShieldedIdentity_ = value; + } + } else { + gceShieldedIdentityBuilder_.mergeFrom(value); + } + if (gceShieldedIdentity_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Optional. Information about the associated Compute Engine instance.
    +     * Required for td_ccel requests only - tpm_attestation requests will provide
    +     * this information in the attestation.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.GceShieldedIdentity gce_shielded_identity = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearGceShieldedIdentity() { + bitField0_ = (bitField0_ & ~0x00000020); + gceShieldedIdentity_ = null; + if (gceShieldedIdentityBuilder_ != null) { + gceShieldedIdentityBuilder_.dispose(); + gceShieldedIdentityBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Information about the associated Compute Engine instance.
    +     * Required for td_ccel requests only - tpm_attestation requests will provide
    +     * this information in the attestation.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.GceShieldedIdentity gce_shielded_identity = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.confidentialcomputing.v1.GceShieldedIdentity.Builder + getGceShieldedIdentityBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getGceShieldedIdentityFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. Information about the associated Compute Engine instance.
    +     * Required for td_ccel requests only - tpm_attestation requests will provide
    +     * this information in the attestation.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.GceShieldedIdentity gce_shielded_identity = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.confidentialcomputing.v1.GceShieldedIdentityOrBuilder + getGceShieldedIdentityOrBuilder() { + if (gceShieldedIdentityBuilder_ != null) { + return gceShieldedIdentityBuilder_.getMessageOrBuilder(); + } else { + return gceShieldedIdentity_ == null + ? com.google.cloud.confidentialcomputing.v1.GceShieldedIdentity.getDefaultInstance() + : gceShieldedIdentity_; + } + } + + /** + * + * + *
    +     * Optional. Information about the associated Compute Engine instance.
    +     * Required for td_ccel requests only - tpm_attestation requests will provide
    +     * this information in the attestation.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.GceShieldedIdentity gce_shielded_identity = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.GceShieldedIdentity, + com.google.cloud.confidentialcomputing.v1.GceShieldedIdentity.Builder, + com.google.cloud.confidentialcomputing.v1.GceShieldedIdentityOrBuilder> + getGceShieldedIdentityFieldBuilder() { + if (gceShieldedIdentityBuilder_ == null) { + gceShieldedIdentityBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.GceShieldedIdentity, + com.google.cloud.confidentialcomputing.v1.GceShieldedIdentity.Builder, + com.google.cloud.confidentialcomputing.v1.GceShieldedIdentityOrBuilder>( + getGceShieldedIdentity(), getParentForChildren(), isClean()); + gceShieldedIdentity_ = null; + } + return gceShieldedIdentityBuilder_; + } + + private com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptions + options_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptions, + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptions.Builder, + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptionsOrBuilder> + optionsBuilder_; + + /** + * + * + *
    +     * Optional. A collection of fields that modify the token output.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest.ConfidentialSpaceOptions options = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the options field is set. + */ + public boolean hasOptions() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
    +     * Optional. A collection of fields that modify the token output.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest.ConfidentialSpaceOptions options = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The options. + */ + public com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptions + getOptions() { + if (optionsBuilder_ == null) { + return options_ == null + ? com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptions.getDefaultInstance() + : options_; + } else { + return optionsBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Optional. A collection of fields that modify the token output.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest.ConfidentialSpaceOptions options = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOptions( + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptions + value) { + if (optionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + options_ = value; + } else { + optionsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A collection of fields that modify the token output.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest.ConfidentialSpaceOptions options = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOptions( + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptions.Builder + builderForValue) { + if (optionsBuilder_ == null) { + options_ = builderForValue.build(); + } else { + optionsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A collection of fields that modify the token output.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest.ConfidentialSpaceOptions options = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeOptions( + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptions + value) { + if (optionsBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && options_ != null + && options_ + != com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptions.getDefaultInstance()) { + getOptionsBuilder().mergeFrom(value); + } else { + options_ = value; + } + } else { + optionsBuilder_.mergeFrom(value); + } + if (options_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Optional. A collection of fields that modify the token output.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest.ConfidentialSpaceOptions options = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearOptions() { + bitField0_ = (bitField0_ & ~0x00000040); + options_ = null; + if (optionsBuilder_ != null) { + optionsBuilder_.dispose(); + optionsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A collection of fields that modify the token output.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest.ConfidentialSpaceOptions options = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptions.Builder + getOptionsBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getOptionsFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. A collection of fields that modify the token output.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest.ConfidentialSpaceOptions options = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptionsOrBuilder + getOptionsOrBuilder() { + if (optionsBuilder_ != null) { + return optionsBuilder_.getMessageOrBuilder(); + } else { + return options_ == null + ? com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptions.getDefaultInstance() + : options_; + } + } + + /** + * + * + *
    +     * Optional. A collection of fields that modify the token output.
    +     * 
    + * + * + * .google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest.ConfidentialSpaceOptions options = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptions, + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptions.Builder, + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptionsOrBuilder> + getOptionsFieldBuilder() { + if (optionsBuilder_ == null) { + optionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptions, + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptions.Builder, + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptionsOrBuilder>( + getOptions(), getParentForChildren(), isClean()); + options_ = null; + } + return optionsBuilder_; + } + + @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.confidentialcomputing.v1.VerifyConfidentialSpaceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest) + private static final com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest(); + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VerifyConfidentialSpaceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyConfidentialSpaceRequestOrBuilder.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyConfidentialSpaceRequestOrBuilder.java new file mode 100644 index 000000000000..8066aac14489 --- /dev/null +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyConfidentialSpaceRequestOrBuilder.java @@ -0,0 +1,366 @@ +/* + * 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/confidentialcomputing/v1/service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.confidentialcomputing.v1; + +public interface VerifyConfidentialSpaceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Input only. A TDX with CCEL and RTMR Attestation Quote.
    +   * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TdxCcelAttestation td_ccel = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return Whether the tdCcel field is set. + */ + boolean hasTdCcel(); + + /** + * + * + *
    +   * Input only. A TDX with CCEL and RTMR Attestation Quote.
    +   * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TdxCcelAttestation td_ccel = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The tdCcel. + */ + com.google.cloud.confidentialcomputing.v1.TdxCcelAttestation getTdCcel(); + + /** + * + * + *
    +   * Input only. A TDX with CCEL and RTMR Attestation Quote.
    +   * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TdxCcelAttestation td_ccel = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * + */ + com.google.cloud.confidentialcomputing.v1.TdxCcelAttestationOrBuilder getTdCcelOrBuilder(); + + /** + * + * + *
    +   * Input only. The TPM-specific data provided by the attesting platform,
    +   * used to populate any of the claims regarding platform state.
    +   * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return Whether the tpmAttestation field is set. + */ + boolean hasTpmAttestation(); + + /** + * + * + *
    +   * Input only. The TPM-specific data provided by the attesting platform,
    +   * used to populate any of the claims regarding platform state.
    +   * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The tpmAttestation. + */ + com.google.cloud.confidentialcomputing.v1.TpmAttestation getTpmAttestation(); + + /** + * + * + *
    +   * Input only. The TPM-specific data provided by the attesting platform,
    +   * used to populate any of the claims regarding platform state.
    +   * 
    + * + * + * .google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + */ + com.google.cloud.confidentialcomputing.v1.TpmAttestationOrBuilder getTpmAttestationOrBuilder(); + + /** + * + * + *
    +   * Required. The name of the Challenge whose nonce was used to generate the
    +   * attestation, in the format `projects/*/locations/*/challenges/*`. The
    +   * provided Challenge will be consumed, and cannot be used again.
    +   * 
    + * + * + * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The challenge. + */ + java.lang.String getChallenge(); + + /** + * + * + *
    +   * Required. The name of the Challenge whose nonce was used to generate the
    +   * attestation, in the format `projects/*/locations/*/challenges/*`. The
    +   * provided Challenge will be consumed, and cannot be used again.
    +   * 
    + * + * + * string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for challenge. + */ + com.google.protobuf.ByteString getChallengeBytes(); + + /** + * + * + *
    +   * Optional. Credentials used to populate the "emails" claim in the
    +   * claims_token. If not present, token will not contain the "emails" claim.
    +   * 
    + * + * + * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the gcpCredentials field is set. + */ + boolean hasGcpCredentials(); + + /** + * + * + *
    +   * Optional. Credentials used to populate the "emails" claim in the
    +   * claims_token. If not present, token will not contain the "emails" claim.
    +   * 
    + * + * + * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gcpCredentials. + */ + com.google.cloud.confidentialcomputing.v1.GcpCredentials getGcpCredentials(); + + /** + * + * + *
    +   * Optional. Credentials used to populate the "emails" claim in the
    +   * claims_token. If not present, token will not contain the "emails" claim.
    +   * 
    + * + * + * .google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.confidentialcomputing.v1.GcpCredentialsOrBuilder getGcpCredentialsOrBuilder(); + + /** + * + * + *
    +   * Optional. A list of signed entities containing container image signatures
    +   * that can be used for server-side signature verification.
    +   * 
    + * + * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getSignedEntitiesList(); + + /** + * + * + *
    +   * Optional. A list of signed entities containing container image signatures
    +   * that can be used for server-side signature verification.
    +   * 
    + * + * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.confidentialcomputing.v1.SignedEntity getSignedEntities(int index); + + /** + * + * + *
    +   * Optional. A list of signed entities containing container image signatures
    +   * that can be used for server-side signature verification.
    +   * 
    + * + * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getSignedEntitiesCount(); + + /** + * + * + *
    +   * Optional. A list of signed entities containing container image signatures
    +   * that can be used for server-side signature verification.
    +   * 
    + * + * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getSignedEntitiesOrBuilderList(); + + /** + * + * + *
    +   * Optional. A list of signed entities containing container image signatures
    +   * that can be used for server-side signature verification.
    +   * 
    + * + * + * repeated .google.cloud.confidentialcomputing.v1.SignedEntity signed_entities = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.confidentialcomputing.v1.SignedEntityOrBuilder getSignedEntitiesOrBuilder( + int index); + + /** + * + * + *
    +   * Optional. Information about the associated Compute Engine instance.
    +   * Required for td_ccel requests only - tpm_attestation requests will provide
    +   * this information in the attestation.
    +   * 
    + * + * + * .google.cloud.confidentialcomputing.v1.GceShieldedIdentity gce_shielded_identity = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the gceShieldedIdentity field is set. + */ + boolean hasGceShieldedIdentity(); + + /** + * + * + *
    +   * Optional. Information about the associated Compute Engine instance.
    +   * Required for td_ccel requests only - tpm_attestation requests will provide
    +   * this information in the attestation.
    +   * 
    + * + * + * .google.cloud.confidentialcomputing.v1.GceShieldedIdentity gce_shielded_identity = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gceShieldedIdentity. + */ + com.google.cloud.confidentialcomputing.v1.GceShieldedIdentity getGceShieldedIdentity(); + + /** + * + * + *
    +   * Optional. Information about the associated Compute Engine instance.
    +   * Required for td_ccel requests only - tpm_attestation requests will provide
    +   * this information in the attestation.
    +   * 
    + * + * + * .google.cloud.confidentialcomputing.v1.GceShieldedIdentity gce_shielded_identity = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.confidentialcomputing.v1.GceShieldedIdentityOrBuilder + getGceShieldedIdentityOrBuilder(); + + /** + * + * + *
    +   * Optional. A collection of fields that modify the token output.
    +   * 
    + * + * + * .google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest.ConfidentialSpaceOptions options = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the options field is set. + */ + boolean hasOptions(); + + /** + * + * + *
    +   * Optional. A collection of fields that modify the token output.
    +   * 
    + * + * + * .google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest.ConfidentialSpaceOptions options = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The options. + */ + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest.ConfidentialSpaceOptions + getOptions(); + + /** + * + * + *
    +   * Optional. A collection of fields that modify the token output.
    +   * 
    + * + * + * .google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest.ConfidentialSpaceOptions options = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest + .ConfidentialSpaceOptionsOrBuilder + getOptionsOrBuilder(); + + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest.TeeAttestationCase + getTeeAttestationCase(); +} diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyConfidentialSpaceResponse.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyConfidentialSpaceResponse.java new file mode 100644 index 000000000000..8c73cfad35a3 --- /dev/null +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyConfidentialSpaceResponse.java @@ -0,0 +1,1331 @@ +/* + * 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/confidentialcomputing/v1/service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.confidentialcomputing.v1; + +/** + * + * + *
    + * VerifyConfidentialSpaceResponse is returned once a Confidential Space
    + * attestation has been successfully verified, containing a signed token.
    + * 
    + * + * Protobuf type {@code google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse} + */ +public final class VerifyConfidentialSpaceResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse) + VerifyConfidentialSpaceResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use VerifyConfidentialSpaceResponse.newBuilder() to construct. + private VerifyConfidentialSpaceResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private VerifyConfidentialSpaceResponse() { + attestationToken_ = ""; + partialErrors_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VerifyConfidentialSpaceResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialSpaceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialSpaceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse.class, + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse.Builder + .class); + } + + public static final int ATTESTATION_TOKEN_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object attestationToken_ = ""; + + /** + * + * + *
    +   * Output only. The attestation token issued by this service. It contains
    +   * specific platform claims based on the contents of the provided attestation.
    +   * 
    + * + * string attestation_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The attestationToken. + */ + @java.lang.Override + public java.lang.String getAttestationToken() { + java.lang.Object ref = attestationToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + attestationToken_ = s; + return s; + } + } + + /** + * + * + *
    +   * Output only. The attestation token issued by this service. It contains
    +   * specific platform claims based on the contents of the provided attestation.
    +   * 
    + * + * string attestation_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for attestationToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAttestationTokenBytes() { + java.lang.Object ref = attestationToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + attestationToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARTIAL_ERRORS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List partialErrors_; + + /** + * + * + *
    +   * Output only. A list of messages that carry the partial error details
    +   * related to VerifyConfidentialSpace. This field is populated by errors
    +   * during container image signature verification, which may reflect problems
    +   * in the provided image signatures. This does not block the issuing of an
    +   * attestation token, but the token will not contain claims for the failed
    +   * image signatures.
    +   * 
    + * + * + * repeated .google.rpc.Status partial_errors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getPartialErrorsList() { + return partialErrors_; + } + + /** + * + * + *
    +   * Output only. A list of messages that carry the partial error details
    +   * related to VerifyConfidentialSpace. This field is populated by errors
    +   * during container image signature verification, which may reflect problems
    +   * in the provided image signatures. This does not block the issuing of an
    +   * attestation token, but the token will not contain claims for the failed
    +   * image signatures.
    +   * 
    + * + * + * repeated .google.rpc.Status partial_errors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getPartialErrorsOrBuilderList() { + return partialErrors_; + } + + /** + * + * + *
    +   * Output only. A list of messages that carry the partial error details
    +   * related to VerifyConfidentialSpace. This field is populated by errors
    +   * during container image signature verification, which may reflect problems
    +   * in the provided image signatures. This does not block the issuing of an
    +   * attestation token, but the token will not contain claims for the failed
    +   * image signatures.
    +   * 
    + * + * + * repeated .google.rpc.Status partial_errors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getPartialErrorsCount() { + return partialErrors_.size(); + } + + /** + * + * + *
    +   * Output only. A list of messages that carry the partial error details
    +   * related to VerifyConfidentialSpace. This field is populated by errors
    +   * during container image signature verification, which may reflect problems
    +   * in the provided image signatures. This does not block the issuing of an
    +   * attestation token, but the token will not contain claims for the failed
    +   * image signatures.
    +   * 
    + * + * + * repeated .google.rpc.Status partial_errors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.rpc.Status getPartialErrors(int index) { + return partialErrors_.get(index); + } + + /** + * + * + *
    +   * Output only. A list of messages that carry the partial error details
    +   * related to VerifyConfidentialSpace. This field is populated by errors
    +   * during container image signature verification, which may reflect problems
    +   * in the provided image signatures. This does not block the issuing of an
    +   * attestation token, but the token will not contain claims for the failed
    +   * image signatures.
    +   * 
    + * + * + * repeated .google.rpc.Status partial_errors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getPartialErrorsOrBuilder(int index) { + return partialErrors_.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(attestationToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, attestationToken_); + } + for (int i = 0; i < partialErrors_.size(); i++) { + output.writeMessage(2, partialErrors_.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(attestationToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, attestationToken_); + } + for (int i = 0; i < partialErrors_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, partialErrors_.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.confidentialcomputing.v1.VerifyConfidentialSpaceResponse)) { + return super.equals(obj); + } + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse other = + (com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse) obj; + + if (!getAttestationToken().equals(other.getAttestationToken())) return false; + if (!getPartialErrorsList().equals(other.getPartialErrorsList())) 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) + ATTESTATION_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getAttestationToken().hashCode(); + if (getPartialErrorsCount() > 0) { + hash = (37 * hash) + PARTIAL_ERRORS_FIELD_NUMBER; + hash = (53 * hash) + getPartialErrorsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse 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.confidentialcomputing.v1.VerifyConfidentialSpaceResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse parseFrom( + 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.confidentialcomputing.v1.VerifyConfidentialSpaceResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse 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.confidentialcomputing.v1.VerifyConfidentialSpaceResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse + 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.confidentialcomputing.v1.VerifyConfidentialSpaceResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse 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.confidentialcomputing.v1.VerifyConfidentialSpaceResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
    +   * VerifyConfidentialSpaceResponse is returned once a Confidential Space
    +   * attestation has been successfully verified, containing a signed token.
    +   * 
    + * + * Protobuf type {@code google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse) + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialSpaceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialSpaceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse.class, + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + attestationToken_ = ""; + if (partialErrorsBuilder_ == null) { + partialErrors_ = java.util.Collections.emptyList(); + } else { + partialErrors_ = null; + partialErrorsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.confidentialcomputing.v1.ServiceProto + .internal_static_google_cloud_confidentialcomputing_v1_VerifyConfidentialSpaceResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse + getDefaultInstanceForType() { + return com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse build() { + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse + buildPartial() { + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse result = + new com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse result) { + if (partialErrorsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + partialErrors_ = java.util.Collections.unmodifiableList(partialErrors_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.partialErrors_ = partialErrors_; + } else { + result.partialErrors_ = partialErrorsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.attestationToken_ = attestationToken_; + } + } + + @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.confidentialcomputing.v1.VerifyConfidentialSpaceResponse) { + return mergeFrom( + (com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse other) { + if (other + == com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse + .getDefaultInstance()) return this; + if (!other.getAttestationToken().isEmpty()) { + attestationToken_ = other.attestationToken_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (partialErrorsBuilder_ == null) { + if (!other.partialErrors_.isEmpty()) { + if (partialErrors_.isEmpty()) { + partialErrors_ = other.partialErrors_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensurePartialErrorsIsMutable(); + partialErrors_.addAll(other.partialErrors_); + } + onChanged(); + } + } else { + if (!other.partialErrors_.isEmpty()) { + if (partialErrorsBuilder_.isEmpty()) { + partialErrorsBuilder_.dispose(); + partialErrorsBuilder_ = null; + partialErrors_ = other.partialErrors_; + bitField0_ = (bitField0_ & ~0x00000002); + partialErrorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPartialErrorsFieldBuilder() + : null; + } else { + partialErrorsBuilder_.addAllMessages(other.partialErrors_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + attestationToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.rpc.Status m = + input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (partialErrorsBuilder_ == null) { + ensurePartialErrorsIsMutable(); + partialErrors_.add(m); + } else { + partialErrorsBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object attestationToken_ = ""; + + /** + * + * + *
    +     * Output only. The attestation token issued by this service. It contains
    +     * specific platform claims based on the contents of the provided attestation.
    +     * 
    + * + * string attestation_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The attestationToken. + */ + public java.lang.String getAttestationToken() { + java.lang.Object ref = attestationToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + attestationToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Output only. The attestation token issued by this service. It contains
    +     * specific platform claims based on the contents of the provided attestation.
    +     * 
    + * + * string attestation_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for attestationToken. + */ + public com.google.protobuf.ByteString getAttestationTokenBytes() { + java.lang.Object ref = attestationToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + attestationToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Output only. The attestation token issued by this service. It contains
    +     * specific platform claims based on the contents of the provided attestation.
    +     * 
    + * + * string attestation_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The attestationToken to set. + * @return This builder for chaining. + */ + public Builder setAttestationToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + attestationToken_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The attestation token issued by this service. It contains
    +     * specific platform claims based on the contents of the provided attestation.
    +     * 
    + * + * string attestation_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearAttestationToken() { + attestationToken_ = getDefaultInstance().getAttestationToken(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The attestation token issued by this service. It contains
    +     * specific platform claims based on the contents of the provided attestation.
    +     * 
    + * + * string attestation_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for attestationToken to set. + * @return This builder for chaining. + */ + public Builder setAttestationTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + attestationToken_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List partialErrors_ = + java.util.Collections.emptyList(); + + private void ensurePartialErrorsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + partialErrors_ = new java.util.ArrayList(partialErrors_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + partialErrorsBuilder_; + + /** + * + * + *
    +     * Output only. A list of messages that carry the partial error details
    +     * related to VerifyConfidentialSpace. This field is populated by errors
    +     * during container image signature verification, which may reflect problems
    +     * in the provided image signatures. This does not block the issuing of an
    +     * attestation token, but the token will not contain claims for the failed
    +     * image signatures.
    +     * 
    + * + * + * repeated .google.rpc.Status partial_errors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getPartialErrorsList() { + if (partialErrorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(partialErrors_); + } else { + return partialErrorsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * Output only. A list of messages that carry the partial error details
    +     * related to VerifyConfidentialSpace. This field is populated by errors
    +     * during container image signature verification, which may reflect problems
    +     * in the provided image signatures. This does not block the issuing of an
    +     * attestation token, but the token will not contain claims for the failed
    +     * image signatures.
    +     * 
    + * + * + * repeated .google.rpc.Status partial_errors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getPartialErrorsCount() { + if (partialErrorsBuilder_ == null) { + return partialErrors_.size(); + } else { + return partialErrorsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * Output only. A list of messages that carry the partial error details
    +     * related to VerifyConfidentialSpace. This field is populated by errors
    +     * during container image signature verification, which may reflect problems
    +     * in the provided image signatures. This does not block the issuing of an
    +     * attestation token, but the token will not contain claims for the failed
    +     * image signatures.
    +     * 
    + * + * + * repeated .google.rpc.Status partial_errors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.rpc.Status getPartialErrors(int index) { + if (partialErrorsBuilder_ == null) { + return partialErrors_.get(index); + } else { + return partialErrorsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * Output only. A list of messages that carry the partial error details
    +     * related to VerifyConfidentialSpace. This field is populated by errors
    +     * during container image signature verification, which may reflect problems
    +     * in the provided image signatures. This does not block the issuing of an
    +     * attestation token, but the token will not contain claims for the failed
    +     * image signatures.
    +     * 
    + * + * + * repeated .google.rpc.Status partial_errors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPartialErrors(int index, com.google.rpc.Status value) { + if (partialErrorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePartialErrorsIsMutable(); + partialErrors_.set(index, value); + onChanged(); + } else { + partialErrorsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Output only. A list of messages that carry the partial error details
    +     * related to VerifyConfidentialSpace. This field is populated by errors
    +     * during container image signature verification, which may reflect problems
    +     * in the provided image signatures. This does not block the issuing of an
    +     * attestation token, but the token will not contain claims for the failed
    +     * image signatures.
    +     * 
    + * + * + * repeated .google.rpc.Status partial_errors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPartialErrors(int index, com.google.rpc.Status.Builder builderForValue) { + if (partialErrorsBuilder_ == null) { + ensurePartialErrorsIsMutable(); + partialErrors_.set(index, builderForValue.build()); + onChanged(); + } else { + partialErrorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Output only. A list of messages that carry the partial error details
    +     * related to VerifyConfidentialSpace. This field is populated by errors
    +     * during container image signature verification, which may reflect problems
    +     * in the provided image signatures. This does not block the issuing of an
    +     * attestation token, but the token will not contain claims for the failed
    +     * image signatures.
    +     * 
    + * + * + * repeated .google.rpc.Status partial_errors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPartialErrors(com.google.rpc.Status value) { + if (partialErrorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePartialErrorsIsMutable(); + partialErrors_.add(value); + onChanged(); + } else { + partialErrorsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * Output only. A list of messages that carry the partial error details
    +     * related to VerifyConfidentialSpace. This field is populated by errors
    +     * during container image signature verification, which may reflect problems
    +     * in the provided image signatures. This does not block the issuing of an
    +     * attestation token, but the token will not contain claims for the failed
    +     * image signatures.
    +     * 
    + * + * + * repeated .google.rpc.Status partial_errors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPartialErrors(int index, com.google.rpc.Status value) { + if (partialErrorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePartialErrorsIsMutable(); + partialErrors_.add(index, value); + onChanged(); + } else { + partialErrorsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Output only. A list of messages that carry the partial error details
    +     * related to VerifyConfidentialSpace. This field is populated by errors
    +     * during container image signature verification, which may reflect problems
    +     * in the provided image signatures. This does not block the issuing of an
    +     * attestation token, but the token will not contain claims for the failed
    +     * image signatures.
    +     * 
    + * + * + * repeated .google.rpc.Status partial_errors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPartialErrors(com.google.rpc.Status.Builder builderForValue) { + if (partialErrorsBuilder_ == null) { + ensurePartialErrorsIsMutable(); + partialErrors_.add(builderForValue.build()); + onChanged(); + } else { + partialErrorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Output only. A list of messages that carry the partial error details
    +     * related to VerifyConfidentialSpace. This field is populated by errors
    +     * during container image signature verification, which may reflect problems
    +     * in the provided image signatures. This does not block the issuing of an
    +     * attestation token, but the token will not contain claims for the failed
    +     * image signatures.
    +     * 
    + * + * + * repeated .google.rpc.Status partial_errors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPartialErrors(int index, com.google.rpc.Status.Builder builderForValue) { + if (partialErrorsBuilder_ == null) { + ensurePartialErrorsIsMutable(); + partialErrors_.add(index, builderForValue.build()); + onChanged(); + } else { + partialErrorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Output only. A list of messages that carry the partial error details
    +     * related to VerifyConfidentialSpace. This field is populated by errors
    +     * during container image signature verification, which may reflect problems
    +     * in the provided image signatures. This does not block the issuing of an
    +     * attestation token, but the token will not contain claims for the failed
    +     * image signatures.
    +     * 
    + * + * + * repeated .google.rpc.Status partial_errors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllPartialErrors(java.lang.Iterable values) { + if (partialErrorsBuilder_ == null) { + ensurePartialErrorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, partialErrors_); + onChanged(); + } else { + partialErrorsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * Output only. A list of messages that carry the partial error details
    +     * related to VerifyConfidentialSpace. This field is populated by errors
    +     * during container image signature verification, which may reflect problems
    +     * in the provided image signatures. This does not block the issuing of an
    +     * attestation token, but the token will not contain claims for the failed
    +     * image signatures.
    +     * 
    + * + * + * repeated .google.rpc.Status partial_errors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearPartialErrors() { + if (partialErrorsBuilder_ == null) { + partialErrors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + partialErrorsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Output only. A list of messages that carry the partial error details
    +     * related to VerifyConfidentialSpace. This field is populated by errors
    +     * during container image signature verification, which may reflect problems
    +     * in the provided image signatures. This does not block the issuing of an
    +     * attestation token, but the token will not contain claims for the failed
    +     * image signatures.
    +     * 
    + * + * + * repeated .google.rpc.Status partial_errors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removePartialErrors(int index) { + if (partialErrorsBuilder_ == null) { + ensurePartialErrorsIsMutable(); + partialErrors_.remove(index); + onChanged(); + } else { + partialErrorsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * Output only. A list of messages that carry the partial error details
    +     * related to VerifyConfidentialSpace. This field is populated by errors
    +     * during container image signature verification, which may reflect problems
    +     * in the provided image signatures. This does not block the issuing of an
    +     * attestation token, but the token will not contain claims for the failed
    +     * image signatures.
    +     * 
    + * + * + * repeated .google.rpc.Status partial_errors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.rpc.Status.Builder getPartialErrorsBuilder(int index) { + return getPartialErrorsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * Output only. A list of messages that carry the partial error details
    +     * related to VerifyConfidentialSpace. This field is populated by errors
    +     * during container image signature verification, which may reflect problems
    +     * in the provided image signatures. This does not block the issuing of an
    +     * attestation token, but the token will not contain claims for the failed
    +     * image signatures.
    +     * 
    + * + * + * repeated .google.rpc.Status partial_errors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.rpc.StatusOrBuilder getPartialErrorsOrBuilder(int index) { + if (partialErrorsBuilder_ == null) { + return partialErrors_.get(index); + } else { + return partialErrorsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * Output only. A list of messages that carry the partial error details
    +     * related to VerifyConfidentialSpace. This field is populated by errors
    +     * during container image signature verification, which may reflect problems
    +     * in the provided image signatures. This does not block the issuing of an
    +     * attestation token, but the token will not contain claims for the failed
    +     * image signatures.
    +     * 
    + * + * + * repeated .google.rpc.Status partial_errors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getPartialErrorsOrBuilderList() { + if (partialErrorsBuilder_ != null) { + return partialErrorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(partialErrors_); + } + } + + /** + * + * + *
    +     * Output only. A list of messages that carry the partial error details
    +     * related to VerifyConfidentialSpace. This field is populated by errors
    +     * during container image signature verification, which may reflect problems
    +     * in the provided image signatures. This does not block the issuing of an
    +     * attestation token, but the token will not contain claims for the failed
    +     * image signatures.
    +     * 
    + * + * + * repeated .google.rpc.Status partial_errors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.rpc.Status.Builder addPartialErrorsBuilder() { + return getPartialErrorsFieldBuilder().addBuilder(com.google.rpc.Status.getDefaultInstance()); + } + + /** + * + * + *
    +     * Output only. A list of messages that carry the partial error details
    +     * related to VerifyConfidentialSpace. This field is populated by errors
    +     * during container image signature verification, which may reflect problems
    +     * in the provided image signatures. This does not block the issuing of an
    +     * attestation token, but the token will not contain claims for the failed
    +     * image signatures.
    +     * 
    + * + * + * repeated .google.rpc.Status partial_errors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.rpc.Status.Builder addPartialErrorsBuilder(int index) { + return getPartialErrorsFieldBuilder() + .addBuilder(index, com.google.rpc.Status.getDefaultInstance()); + } + + /** + * + * + *
    +     * Output only. A list of messages that carry the partial error details
    +     * related to VerifyConfidentialSpace. This field is populated by errors
    +     * during container image signature verification, which may reflect problems
    +     * in the provided image signatures. This does not block the issuing of an
    +     * attestation token, but the token will not contain claims for the failed
    +     * image signatures.
    +     * 
    + * + * + * repeated .google.rpc.Status partial_errors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getPartialErrorsBuilderList() { + return getPartialErrorsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getPartialErrorsFieldBuilder() { + if (partialErrorsBuilder_ == null) { + partialErrorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>( + partialErrors_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + partialErrors_ = null; + } + return partialErrorsBuilder_; + } + + @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.confidentialcomputing.v1.VerifyConfidentialSpaceResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse) + private static final com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse(); + } + + public static com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VerifyConfidentialSpaceResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.confidentialcomputing.v1.VerifyConfidentialSpaceResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyConfidentialSpaceResponseOrBuilder.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyConfidentialSpaceResponseOrBuilder.java new file mode 100644 index 000000000000..937079262af8 --- /dev/null +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/VerifyConfidentialSpaceResponseOrBuilder.java @@ -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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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/confidentialcomputing/v1/service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.confidentialcomputing.v1; + +public interface VerifyConfidentialSpaceResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Output only. The attestation token issued by this service. It contains
    +   * specific platform claims based on the contents of the provided attestation.
    +   * 
    + * + * string attestation_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The attestationToken. + */ + java.lang.String getAttestationToken(); + + /** + * + * + *
    +   * Output only. The attestation token issued by this service. It contains
    +   * specific platform claims based on the contents of the provided attestation.
    +   * 
    + * + * string attestation_token = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for attestationToken. + */ + com.google.protobuf.ByteString getAttestationTokenBytes(); + + /** + * + * + *
    +   * Output only. A list of messages that carry the partial error details
    +   * related to VerifyConfidentialSpace. This field is populated by errors
    +   * during container image signature verification, which may reflect problems
    +   * in the provided image signatures. This does not block the issuing of an
    +   * attestation token, but the token will not contain claims for the failed
    +   * image signatures.
    +   * 
    + * + * + * repeated .google.rpc.Status partial_errors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getPartialErrorsList(); + + /** + * + * + *
    +   * Output only. A list of messages that carry the partial error details
    +   * related to VerifyConfidentialSpace. This field is populated by errors
    +   * during container image signature verification, which may reflect problems
    +   * in the provided image signatures. This does not block the issuing of an
    +   * attestation token, but the token will not contain claims for the failed
    +   * image signatures.
    +   * 
    + * + * + * repeated .google.rpc.Status partial_errors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.rpc.Status getPartialErrors(int index); + + /** + * + * + *
    +   * Output only. A list of messages that carry the partial error details
    +   * related to VerifyConfidentialSpace. This field is populated by errors
    +   * during container image signature verification, which may reflect problems
    +   * in the provided image signatures. This does not block the issuing of an
    +   * attestation token, but the token will not contain claims for the failed
    +   * image signatures.
    +   * 
    + * + * + * repeated .google.rpc.Status partial_errors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getPartialErrorsCount(); + + /** + * + * + *
    +   * Output only. A list of messages that carry the partial error details
    +   * related to VerifyConfidentialSpace. This field is populated by errors
    +   * during container image signature verification, which may reflect problems
    +   * in the provided image signatures. This does not block the issuing of an
    +   * attestation token, but the token will not contain claims for the failed
    +   * image signatures.
    +   * 
    + * + * + * repeated .google.rpc.Status partial_errors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getPartialErrorsOrBuilderList(); + + /** + * + * + *
    +   * Output only. A list of messages that carry the partial error details
    +   * related to VerifyConfidentialSpace. This field is populated by errors
    +   * during container image signature verification, which may reflect problems
    +   * in the provided image signatures. This does not block the issuing of an
    +   * attestation token, but the token will not contain claims for the failed
    +   * image signatures.
    +   * 
    + * + * + * repeated .google.rpc.Status partial_errors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.rpc.StatusOrBuilder getPartialErrorsOrBuilder(int index); +} diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/proto/google/cloud/confidentialcomputing/v1/service.proto b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/proto/google/cloud/confidentialcomputing/v1/service.proto index 3e2afb09fd9a..a4b0a54281af 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/proto/google/cloud/confidentialcomputing/v1/service.proto +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/proto/google/cloud/confidentialcomputing/v1/service.proto @@ -46,7 +46,8 @@ service ConfidentialComputing { option (google.api.method_signature) = "parent,challenge"; } - // Verifies the provided attestation info, returning a signed OIDC token. + // Verifies the provided attestation info, returning a signed attestation + // token. rpc VerifyAttestation(VerifyAttestationRequest) returns (VerifyAttestationResponse) { option (google.api.http) = { @@ -54,6 +55,26 @@ service ConfidentialComputing { body: "*" }; } + + // Verifies whether the provided attestation info is valid, returning a signed + // attestation token if so. + rpc VerifyConfidentialSpace(VerifyConfidentialSpaceRequest) + returns (VerifyConfidentialSpaceResponse) { + option (google.api.http) = { + post: "/v1/{challenge=projects/*/locations/*/challenges/*}:verifyConfidentialSpace" + body: "*" + }; + } + + // Verifies the provided Confidential GKE attestation info, returning a signed + // OIDC token. + rpc VerifyConfidentialGke(VerifyConfidentialGkeRequest) + returns (VerifyConfidentialGkeResponse) { + option (google.api.http) = { + post: "/v1/{challenge=projects/*/locations/*/challenges/*}:verifyConfidentialGke" + body: "*" + }; + } } // SigningAlgorithm enumerates all the supported signing algorithms. @@ -90,6 +111,30 @@ enum TokenType { TOKEN_TYPE_AWS_PRINCIPALTAGS = 4; } +// SignatureType enumerates supported signature types for attestation tokens. +enum SignatureType { + // Unspecified signature type. + SIGNATURE_TYPE_UNSPECIFIED = 0; + + // Google OIDC signature. + SIGNATURE_TYPE_OIDC = 1; + + // Public Key Infrastructure (PKI) signature. + SIGNATURE_TYPE_PKI = 2; +} + +// TokenProfile enumerates the supported token claims profiles. +enum TokenProfile { + // Unspecified token profile. + TOKEN_PROFILE_UNSPECIFIED = 0; + + // EAT claims. + TOKEN_PROFILE_DEFAULT_EAT = 1; + + // AWS Principal Tags claims. + TOKEN_PROFILE_AWS = 2; +} + // A Challenge from the server used to guarantee freshness of attestations message Challenge { option (google.api.resource) = { @@ -133,8 +178,8 @@ message CreateChallengeRequest { Challenge challenge = 2 [(google.api.field_behavior) = REQUIRED]; } -// A request for an OIDC token, providing all the necessary information needed -// for this service to verify the platform state of the requestor. +// A request for an attestation token, providing all the necessary information +// needed for this service to verify the platform state of the requestor. message VerifyAttestationRequest { // An optional tee attestation report, used to populate hardware rooted // claims. @@ -214,7 +259,7 @@ message SevSnpAttestation { } // A response once an attestation has been successfully verified, containing a -// signed OIDC token. +// signed attestation token. message VerifyAttestationResponse { // Output only. Same as claims_token, but as a string. string oidc_claims_token = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -234,33 +279,9 @@ message GcpCredentials { // Options to modify claims in the token to generate custom-purpose tokens. message TokenOptions { - // Token options that only apply to the AWS Principal Tags token type. - message AwsPrincipalTagsOptions { - // Allowed principal tags is used to define what principal tags will be - // placed in the token. - message AllowedPrincipalTags { - // Allowed Container Image Signatures. Key IDs are required to allow this - // claim to fit within the narrow AWS IAM restrictions. - message ContainerImageSignatures { - // Optional. List of key ids to filter into the Principal tags. Only - // keys that have been validated and added to the token will be filtered - // into principal tags. Unrecognized key ids will be ignored. - repeated string key_ids = 1 [(google.api.field_behavior) = OPTIONAL]; - } - - // Optional. Container image signatures allowed in the token. - ContainerImageSignatures container_image_signatures = 1 - [(google.api.field_behavior) = OPTIONAL]; - } - - // Optional. Principal tags to allow in the token. - AllowedPrincipalTags allowed_principal_tags = 1 - [(google.api.field_behavior) = OPTIONAL]; - } - // An optional additional configuration per token type. oneof token_type_options { - // Optional. Options for the Limited AWS token type. + // Optional. Options for AWS token type. AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(google.api.field_behavior) = OPTIONAL]; } @@ -278,6 +299,30 @@ message TokenOptions { TokenType token_type = 3 [(google.api.field_behavior) = OPTIONAL]; } +// Token options that only apply to the AWS Principal Tags token type. +message AwsPrincipalTagsOptions { + // Allowed principal tags is used to define what principal tags will be + // placed in the token. + message AllowedPrincipalTags { + // Allowed Container Image Signatures. Key IDs are required to allow + // this claim to fit within the narrow AWS IAM restrictions. + message ContainerImageSignatures { + // Optional. List of key ids to filter into the Principal tags. Only keys + // that have been validated and added to the token will be filtered into + // principal tags. Unrecognized key ids will be ignored. + repeated string key_ids = 1 [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. Container image signatures allowed in the token. + ContainerImageSignatures container_image_signatures = 1 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. Principal tags to allow in the token. + AllowedPrincipalTags allowed_principal_tags = 1 + [(google.api.field_behavior) = OPTIONAL]; +} + // TPM2 data containing everything necessary to validate any platform state // measured into the TPM. message TpmAttestation { @@ -360,3 +405,134 @@ message ContainerImageSignature { // Optional. Reserved for future use. SigningAlgorithm sig_alg = 4 [(google.api.field_behavior) = OPTIONAL]; } + +// A request for an attestation token, providing all the necessary information +// needed for this service to verify the platform state of the requestor. +message VerifyConfidentialSpaceRequest { + // Token options for Confidential Space attestation. + message ConfidentialSpaceOptions { + // An optional additional configuration per token type. + oneof token_profile_options { + // Optional. Options for the AWS token type. + AwsPrincipalTagsOptions aws_principal_tags_options = 5 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. Optional string to issue the token with a custom audience + // claim. Required if custom nonces are specified. + string audience = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Optional specification for token claims profile. + TokenProfile token_profile = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Optional parameter to place one or more nonces in the eat_nonce + // claim in the output token. The minimum size for JSON-encoded EATs is 10 + // bytes and the maximum size is 74 bytes. + repeated string nonce = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Optional specification for how to sign the attestation token. + // Defaults to SIGNATURE_TYPE_OIDC if unspecified. + SignatureType signature_type = 4 [(google.api.field_behavior) = OPTIONAL]; + } + + // Required. A tee attestation report, used to populate hardware rooted + // claims. + oneof tee_attestation { + // Input only. A TDX with CCEL and RTMR Attestation Quote. + TdxCcelAttestation td_ccel = 3 [(google.api.field_behavior) = INPUT_ONLY]; + + // Input only. The TPM-specific data provided by the attesting platform, + // used to populate any of the claims regarding platform state. + TpmAttestation tpm_attestation = 4 + [(google.api.field_behavior) = INPUT_ONLY]; + } + + // Required. The name of the Challenge whose nonce was used to generate the + // attestation, in the format `projects/*/locations/*/challenges/*`. The + // provided Challenge will be consumed, and cannot be used again. + string challenge = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "confidentialcomputing.googleapis.com/Challenge" + } + ]; + + // Optional. Credentials used to populate the "emails" claim in the + // claims_token. If not present, token will not contain the "emails" claim. + GcpCredentials gcp_credentials = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A list of signed entities containing container image signatures + // that can be used for server-side signature verification. + repeated SignedEntity signed_entities = 5 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Information about the associated Compute Engine instance. + // Required for td_ccel requests only - tpm_attestation requests will provide + // this information in the attestation. + GceShieldedIdentity gce_shielded_identity = 6 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A collection of fields that modify the token output. + ConfidentialSpaceOptions options = 7 [(google.api.field_behavior) = OPTIONAL]; +} + +// GceShieldedIdentity contains information about a Compute Engine instance. +message GceShieldedIdentity { + // Optional. DER-encoded X.509 certificate of the Attestation Key (otherwise + // known as an AK or a TPM restricted signing key) used to generate the + // quotes. + bytes ak_cert = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of DER-encoded X.509 certificates which, together with the + // ak_cert, chain back to a trusted Root Certificate. + repeated bytes ak_cert_chain = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// VerifyConfidentialSpaceResponse is returned once a Confidential Space +// attestation has been successfully verified, containing a signed token. +message VerifyConfidentialSpaceResponse { + // Output only. The attestation token issued by this service. It contains + // specific platform claims based on the contents of the provided attestation. + string attestation_token = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A list of messages that carry the partial error details + // related to VerifyConfidentialSpace. This field is populated by errors + // during container image signature verification, which may reflect problems + // in the provided image signatures. This does not block the issuing of an + // attestation token, but the token will not contain claims for the failed + // image signatures. + repeated google.rpc.Status partial_errors = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// A request for an attestation token, providing all the necessary information +// needed for this service to verify Confidential GKE platform state of the +// requestor. +message VerifyConfidentialGkeRequest { + // Required. A tee attestation report, used to populate hardware rooted + // claims. + oneof tee_attestation { + // The TPM-specific data provided by the attesting platform, used to + // populate any of the claims regarding platform state. + TpmAttestation tpm_attestation = 2; + } + + // Required. The name of the Challenge whose nonce was used to generate the + // attestation, in the format projects/*/locations/*/challenges/*. The + // provided Challenge will be consumed, and cannot be used again. + string challenge = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "confidentialcomputing.googleapis.com/Challenge" + } + ]; +} + +// VerifyConfidentialGkeResponse response is returened once a Confidential GKE +// attestation has been successfully verified, containing a signed OIDC token. +message VerifyConfidentialGkeResponse { + // Output only. The attestation token issued by this service for Confidential + // GKE. It contains specific platform claims based on the contents of the + // provided attestation. + string attestation_token = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyconfidentialgke/AsyncVerifyConfidentialGke.java b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyconfidentialgke/AsyncVerifyConfidentialGke.java new file mode 100644 index 000000000000..c83e965ab0cd --- /dev/null +++ b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyconfidentialgke/AsyncVerifyConfidentialGke.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.confidentialcomputing.v1.samples; + +// [START confidentialcomputing_v1_generated_ConfidentialComputing_VerifyConfidentialGke_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.confidentialcomputing.v1.ChallengeName; +import com.google.cloud.confidentialcomputing.v1.ConfidentialComputingClient; +import com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest; +import com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse; + +public class AsyncVerifyConfidentialGke { + + public static void main(String[] args) throws Exception { + asyncVerifyConfidentialGke(); + } + + public static void asyncVerifyConfidentialGke() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConfidentialComputingClient confidentialComputingClient = + ConfidentialComputingClient.create()) { + VerifyConfidentialGkeRequest request = + VerifyConfidentialGkeRequest.newBuilder() + .setChallenge(ChallengeName.of("[PROJECT]", "[LOCATION]", "[UUID]").toString()) + .build(); + ApiFuture future = + confidentialComputingClient.verifyConfidentialGkeCallable().futureCall(request); + // Do something. + VerifyConfidentialGkeResponse response = future.get(); + } + } +} +// [END confidentialcomputing_v1_generated_ConfidentialComputing_VerifyConfidentialGke_async] diff --git a/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyconfidentialgke/SyncVerifyConfidentialGke.java b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyconfidentialgke/SyncVerifyConfidentialGke.java new file mode 100644 index 000000000000..97b99634af85 --- /dev/null +++ b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyconfidentialgke/SyncVerifyConfidentialGke.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.confidentialcomputing.v1.samples; + +// [START confidentialcomputing_v1_generated_ConfidentialComputing_VerifyConfidentialGke_sync] +import com.google.cloud.confidentialcomputing.v1.ChallengeName; +import com.google.cloud.confidentialcomputing.v1.ConfidentialComputingClient; +import com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest; +import com.google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse; + +public class SyncVerifyConfidentialGke { + + public static void main(String[] args) throws Exception { + syncVerifyConfidentialGke(); + } + + public static void syncVerifyConfidentialGke() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConfidentialComputingClient confidentialComputingClient = + ConfidentialComputingClient.create()) { + VerifyConfidentialGkeRequest request = + VerifyConfidentialGkeRequest.newBuilder() + .setChallenge(ChallengeName.of("[PROJECT]", "[LOCATION]", "[UUID]").toString()) + .build(); + VerifyConfidentialGkeResponse response = + confidentialComputingClient.verifyConfidentialGke(request); + } + } +} +// [END confidentialcomputing_v1_generated_ConfidentialComputing_VerifyConfidentialGke_sync] diff --git a/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyconfidentialspace/AsyncVerifyConfidentialSpace.java b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyconfidentialspace/AsyncVerifyConfidentialSpace.java new file mode 100644 index 000000000000..8e2b07daeb66 --- /dev/null +++ b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyconfidentialspace/AsyncVerifyConfidentialSpace.java @@ -0,0 +1,60 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.confidentialcomputing.v1.samples; + +// [START confidentialcomputing_v1_generated_ConfidentialComputing_VerifyConfidentialSpace_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.confidentialcomputing.v1.ChallengeName; +import com.google.cloud.confidentialcomputing.v1.ConfidentialComputingClient; +import com.google.cloud.confidentialcomputing.v1.GceShieldedIdentity; +import com.google.cloud.confidentialcomputing.v1.GcpCredentials; +import com.google.cloud.confidentialcomputing.v1.SignedEntity; +import com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest; +import com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse; +import java.util.ArrayList; + +public class AsyncVerifyConfidentialSpace { + + public static void main(String[] args) throws Exception { + asyncVerifyConfidentialSpace(); + } + + public static void asyncVerifyConfidentialSpace() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConfidentialComputingClient confidentialComputingClient = + ConfidentialComputingClient.create()) { + VerifyConfidentialSpaceRequest request = + VerifyConfidentialSpaceRequest.newBuilder() + .setChallenge(ChallengeName.of("[PROJECT]", "[LOCATION]", "[UUID]").toString()) + .setGcpCredentials(GcpCredentials.newBuilder().build()) + .addAllSignedEntities(new ArrayList()) + .setGceShieldedIdentity(GceShieldedIdentity.newBuilder().build()) + .setOptions( + VerifyConfidentialSpaceRequest.ConfidentialSpaceOptions.newBuilder().build()) + .build(); + ApiFuture future = + confidentialComputingClient.verifyConfidentialSpaceCallable().futureCall(request); + // Do something. + VerifyConfidentialSpaceResponse response = future.get(); + } + } +} +// [END confidentialcomputing_v1_generated_ConfidentialComputing_VerifyConfidentialSpace_async] diff --git a/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyconfidentialspace/SyncVerifyConfidentialSpace.java b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyconfidentialspace/SyncVerifyConfidentialSpace.java new file mode 100644 index 000000000000..4804e6efcd03 --- /dev/null +++ b/java-confidentialcomputing/samples/snippets/generated/com/google/cloud/confidentialcomputing/v1/confidentialcomputing/verifyconfidentialspace/SyncVerifyConfidentialSpace.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.confidentialcomputing.v1.samples; + +// [START confidentialcomputing_v1_generated_ConfidentialComputing_VerifyConfidentialSpace_sync] +import com.google.cloud.confidentialcomputing.v1.ChallengeName; +import com.google.cloud.confidentialcomputing.v1.ConfidentialComputingClient; +import com.google.cloud.confidentialcomputing.v1.GceShieldedIdentity; +import com.google.cloud.confidentialcomputing.v1.GcpCredentials; +import com.google.cloud.confidentialcomputing.v1.SignedEntity; +import com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest; +import com.google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse; +import java.util.ArrayList; + +public class SyncVerifyConfidentialSpace { + + public static void main(String[] args) throws Exception { + syncVerifyConfidentialSpace(); + } + + public static void syncVerifyConfidentialSpace() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConfidentialComputingClient confidentialComputingClient = + ConfidentialComputingClient.create()) { + VerifyConfidentialSpaceRequest request = + VerifyConfidentialSpaceRequest.newBuilder() + .setChallenge(ChallengeName.of("[PROJECT]", "[LOCATION]", "[UUID]").toString()) + .setGcpCredentials(GcpCredentials.newBuilder().build()) + .addAllSignedEntities(new ArrayList()) + .setGceShieldedIdentity(GceShieldedIdentity.newBuilder().build()) + .setOptions( + VerifyConfidentialSpaceRequest.ConfidentialSpaceOptions.newBuilder().build()) + .build(); + VerifyConfidentialSpaceResponse response = + confidentialComputingClient.verifyConfidentialSpace(request); + } + } +} +// [END confidentialcomputing_v1_generated_ConfidentialComputing_VerifyConfidentialSpace_sync] diff --git a/java-configdelivery/README.md b/java-configdelivery/README.md index bc61074e1a25..a1662183bdac 100644 --- a/java-configdelivery/README.md +++ b/java-configdelivery/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.66.0 + 26.67.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-configdelivery - 0.6.0 + 0.7.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-configdelivery:0.6.0' +implementation 'com.google.cloud:google-cloud-configdelivery:0.7.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-configdelivery" % "0.6.0" +libraryDependencies += "com.google.cloud" % "google-cloud-configdelivery" % "0.7.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-configdelivery.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-configdelivery/0.6.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-configdelivery/0.7.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-connectgateway/README.md b/java-connectgateway/README.md index 6c030e68be2d..b40a0836e4ee 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.66.0 + 26.67.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.24.0 + 0.25.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-connectgateway:0.24.0' +implementation 'com.google.cloud:google-cloud-connectgateway:0.25.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-connectgateway" % "0.24.0" +libraryDependencies += "com.google.cloud" % "google-cloud-connectgateway" % "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-connectgateway.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-connectgateway/0.24.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-connectgateway/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-contact-center-insights/README.md b/java-contact-center-insights/README.md index 36eb5613d71d..65bc6dfd3b2a 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.66.0 + 26.67.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.72.0 + 2.73.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-contact-center-insights:2.72.0' +implementation 'com.google.cloud:google-cloud-contact-center-insights:2.73.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-contact-center-insights" % "2.72.0" +libraryDependencies += "com.google.cloud" % "google-cloud-contact-center-insights" % "2.73.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.72.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contact-center-insights/2.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-container/README.md b/java-container/README.md index b155633d9bde..d0327ca70593 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.66.0 + 26.67.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.75.0 + 2.76.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-container:2.75.0' +implementation 'com.google.cloud:google-cloud-container:2.76.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-container" % "2.75.0" +libraryDependencies += "com.google.cloud" % "google-cloud-container" % "2.76.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-container.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-container/2.75.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-container/2.76.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-containeranalysis/README.md b/java-containeranalysis/README.md index 4462dc6f12ff..d25bf4f56f8b 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.66.0 + 26.67.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.73.0 + 2.74.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-containeranalysis:2.73.0' +implementation 'com.google.cloud:google-cloud-containeranalysis:2.74.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-containeranalysis" % "2.73.0" +libraryDependencies += "com.google.cloud" % "google-cloud-containeranalysis" % "2.74.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.73.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-containeranalysis/2.74.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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 c43b6f08a7e4..a136c35bed60 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.66.0 + 26.67.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.68.0 + 0.69.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-contentwarehouse:0.68.0' +implementation 'com.google.cloud:google-cloud-contentwarehouse:0.69.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-contentwarehouse" % "0.68.0" +libraryDependencies += "com.google.cloud" % "google-cloud-contentwarehouse" % "0.69.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.68.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contentwarehouse/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-data-fusion/README.md b/java-data-fusion/README.md index 38eda08348c8..fdb0efc2827a 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.66.0 + 26.67.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.72.0 + 1.73.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-data-fusion:1.72.0' +implementation 'com.google.cloud:google-cloud-data-fusion:1.73.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-data-fusion" % "1.72.0" +libraryDependencies += "com.google.cloud" % "google-cloud-data-fusion" % "1.73.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.72.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-data-fusion/1.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-datacatalog/README.md b/java-datacatalog/README.md index 0d13039cb70a..ea5617f35b38 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.66.0 + 26.67.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.78.0 + 1.79.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datacatalog:1.78.0' +implementation 'com.google.cloud:google-cloud-datacatalog:1.79.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datacatalog" % "1.78.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datacatalog" % "1.79.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-datacatalog.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datacatalog/1.78.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datacatalog/1.79.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dataflow/README.md b/java-dataflow/README.md index 1ade2aca01c0..884eb42ce6f8 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.66.0 + 26.67.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.76.0 + 0.77.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataflow:0.76.0' +implementation 'com.google.cloud:google-cloud-dataflow:0.77.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataflow" % "0.76.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataflow" % "0.77.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataflow.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataflow/0.76.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataflow/0.77.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dataform/README.md b/java-dataform/README.md index 80b40d606415..c82f218fde86 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.66.0 + 26.67.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.71.0 + 0.72.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataform:0.71.0' +implementation 'com.google.cloud:google-cloud-dataform:0.72.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataform" % "0.71.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataform" % "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.cloud/google-cloud-dataform.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataform/0.71.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataform/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-datalabeling/README.md b/java-datalabeling/README.md index b28ee16875ca..0026794ff45d 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.66.0 + 26.67.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.192.0 + 0.193.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datalabeling:0.192.0' +implementation 'com.google.cloud:google-cloud-datalabeling:0.193.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datalabeling" % "0.192.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datalabeling" % "0.193.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.192.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datalabeling/0.193.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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 b44e4b8adf26..7e68e46fa953 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.66.0 + 26.67.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.64.0 + 0.65.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datalineage:0.64.0' +implementation 'com.google.cloud:google-cloud-datalineage:0.65.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datalineage" % "0.64.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datalineage" % "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-datalineage.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datalineage/0.64.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datalineage/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-dataplex/README.md b/java-dataplex/README.md index f5c3579bcbc7..218405a790ec 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.66.0 + 26.67.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.70.0 + 1.71.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataplex:1.70.0' +implementation 'com.google.cloud:google-cloud-dataplex:1.71.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataplex" % "1.70.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataplex" % "1.71.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.70.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataplex/1.71.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dataproc-metastore/README.md b/java-dataproc-metastore/README.md index 6822f4b5b620..a7921e17f4aa 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.66.0 + 26.67.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.73.0 + 2.74.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc-metastore:2.73.0' +implementation 'com.google.cloud:google-cloud-dataproc-metastore:2.74.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc-metastore" % "2.73.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc-metastore" % "2.74.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.73.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc-metastore/2.74.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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 08434061b77b..237d90704a99 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.66.0 + 26.67.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.69.0 + 4.70.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc:4.69.0' +implementation 'com.google.cloud:google-cloud-dataproc:4.70.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "4.69.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "4.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-dataproc.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc/4.69.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc/4.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-datastream/README.md b/java-datastream/README.md index b73609363254..3c76be50aab2 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.66.0 + 26.67.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.71.0 + 1.72.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datastream:1.71.0' +implementation 'com.google.cloud:google-cloud-datastream:1.72.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datastream" % "1.71.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datastream" % "1.72.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-datastream.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datastream/1.71.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datastream/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-deploy/README.md b/java-deploy/README.md index 6cfad0459a7d..0671b14d9302 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.66.0 + 26.67.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.70.0 + 1.71.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-deploy:1.70.0' +implementation 'com.google.cloud:google-cloud-deploy:1.71.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-deploy" % "1.70.0" +libraryDependencies += "com.google.cloud" % "google-cloud-deploy" % "1.71.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.70.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-deploy/1.71.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-developerconnect/README.md b/java-developerconnect/README.md index bd568a3b1c96..7d86d0d59a64 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.66.0 + 26.67.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.29.0 + 0.30.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-developerconnect:0.29.0' +implementation 'com.google.cloud:google-cloud-developerconnect:0.30.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-developerconnect" % "0.29.0" +libraryDependencies += "com.google.cloud" % "google-cloud-developerconnect" % "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.cloud/google-cloud-developerconnect.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-developerconnect/0.29.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-developerconnect/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-devicestreaming/README.md b/java-devicestreaming/README.md index dc57adfa64d4..5e2260c44b76 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.66.0 + 26.67.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.12.0 + 0.13.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-devicestreaming:0.12.0' +implementation 'com.google.cloud:google-cloud-devicestreaming:0.13.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-devicestreaming" % "0.12.0" +libraryDependencies += "com.google.cloud" % "google-cloud-devicestreaming" % "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.cloud/google-cloud-devicestreaming.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-devicestreaming/0.12.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-devicestreaming/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-dialogflow-cx/README.md b/java-dialogflow-cx/README.md index 8e55aaea71f8..f2786051a86c 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.66.0 + 26.67.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.83.0 + 0.84.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dialogflow-cx:0.83.0' +implementation 'com.google.cloud:google-cloud-dialogflow-cx:0.84.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow-cx" % "0.83.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow-cx" % "0.84.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dialogflow-cx.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow-cx/0.83.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow-cx/0.84.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dialogflow/README.md b/java-dialogflow/README.md index 4167f738d081..78f0cf174f64 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.66.0 + 26.67.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.78.0 + 4.79.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dialogflow:4.78.0' +implementation 'com.google.cloud:google-cloud-dialogflow:4.79.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow" % "4.78.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow" % "4.79.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dialogflow.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow/4.78.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow/4.79.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-discoveryengine/README.md b/java-discoveryengine/README.md index b88c33cb13ac..5bb480b45ee7 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.66.0 + 26.67.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.68.0 + 0.69.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-discoveryengine:0.68.0' +implementation 'com.google.cloud:google-cloud-discoveryengine:0.69.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-discoveryengine" % "0.68.0" +libraryDependencies += "com.google.cloud" % "google-cloud-discoveryengine" % "0.69.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-discoveryengine.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-discoveryengine/0.68.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-discoveryengine/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-distributedcloudedge/README.md b/java-distributedcloudedge/README.md index 813e65bf84f6..bdfd80d6e7a9 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.66.0 + 26.67.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.69.0 + 0.70.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-distributedcloudedge:0.69.0' +implementation 'com.google.cloud:google-cloud-distributedcloudedge:0.70.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-distributedcloudedge" % "0.69.0" +libraryDependencies += "com.google.cloud" % "google-cloud-distributedcloudedge" % "0.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-distributedcloudedge.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-distributedcloudedge/0.69.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-distributedcloudedge/0.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-dlp/README.md b/java-dlp/README.md index 01170f41aead..971704253a3d 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.66.0 + 26.67.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.76.0 + 3.77.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dlp:3.76.0' +implementation 'com.google.cloud:google-cloud-dlp:3.77.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dlp" % "3.76.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dlp" % "3.77.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dlp.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dlp/3.76.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dlp/3.77.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dlp/google-cloud-dlp/src/main/resources/META-INF/native-image/com.google.cloud.dlp.v2/reflect-config.json b/java-dlp/google-cloud-dlp/src/main/resources/META-INF/native-image/com.google.cloud.dlp.v2/reflect-config.json index 64dbe4da5fe9..9ad43c1a8700 100644 --- a/java-dlp/google-cloud-dlp/src/main/resources/META-INF/native-image/com.google.cloud.dlp.v2/reflect-config.json +++ b/java-dlp/google-cloud-dlp/src/main/resources/META-INF/native-image/com.google.cloud.dlp.v2/reflect-config.json @@ -3635,6 +3635,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.privacy.dlp.v2.Domain", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.privacy.dlp.v2.Domain$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.privacy.dlp.v2.Domain$Category", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.privacy.dlp.v2.Domain$Signal", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.privacy.dlp.v2.EncryptionStatus", "queryAllDeclaredConstructors": true, @@ -5462,6 +5498,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.privacy.dlp.v2.LocationSupport", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.privacy.dlp.v2.LocationSupport$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.privacy.dlp.v2.LocationSupport$RegionalizationScope", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.privacy.dlp.v2.Manual", "queryAllDeclaredConstructors": true, @@ -5930,6 +5993,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.privacy.dlp.v2.ProcessingLocation$DocumentFallbackLocation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.privacy.dlp.v2.ProcessingLocation$DocumentFallbackLocation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.privacy.dlp.v2.ProcessingLocation$GlobalProcessing", "queryAllDeclaredConstructors": true, diff --git a/java-dlp/google-cloud-dlp/src/test/java/com/google/cloud/dlp/v2/DlpServiceClientHttpJsonTest.java b/java-dlp/google-cloud-dlp/src/test/java/com/google/cloud/dlp/v2/DlpServiceClientHttpJsonTest.java index 714a4953c7ab..b94981525532 100644 --- a/java-dlp/google-cloud-dlp/src/test/java/com/google/cloud/dlp/v2/DlpServiceClientHttpJsonTest.java +++ b/java-dlp/google-cloud-dlp/src/test/java/com/google/cloud/dlp/v2/DlpServiceClientHttpJsonTest.java @@ -66,6 +66,7 @@ import com.google.privacy.dlp.v2.DlpJob; import com.google.privacy.dlp.v2.DlpJobName; import com.google.privacy.dlp.v2.DlpJobType; +import com.google.privacy.dlp.v2.Domain; import com.google.privacy.dlp.v2.EncryptionStatus; import com.google.privacy.dlp.v2.Error; import com.google.privacy.dlp.v2.FileClusterSummary; @@ -5678,6 +5679,7 @@ public void getFileStoreDataProfileTest() throws Exception { .setFileStoreIsEmpty(true) .addAllTags(new ArrayList()) .addAllRelatedResources(new ArrayList()) + .addAllDomains(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -5753,6 +5755,7 @@ public void getFileStoreDataProfileTest2() throws Exception { .setFileStoreIsEmpty(true) .addAllTags(new ArrayList()) .addAllRelatedResources(new ArrayList()) + .addAllDomains(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -5915,6 +5918,7 @@ public void getTableDataProfileTest() throws Exception { .setSampleFindingsTable(BigQueryTable.newBuilder().build()) .addAllTags(new ArrayList()) .addAllRelatedResources(new ArrayList()) + .addAllDomains(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -5993,6 +5997,7 @@ public void getTableDataProfileTest2() throws Exception { .setSampleFindingsTable(BigQueryTable.newBuilder().build()) .addAllTags(new ArrayList()) .addAllRelatedResources(new ArrayList()) + .addAllDomains(new ArrayList()) .build(); mockService.addResponse(expectedResponse); diff --git a/java-dlp/google-cloud-dlp/src/test/java/com/google/cloud/dlp/v2/DlpServiceClientTest.java b/java-dlp/google-cloud-dlp/src/test/java/com/google/cloud/dlp/v2/DlpServiceClientTest.java index c8d034429a36..aad69a978f9e 100644 --- a/java-dlp/google-cloud-dlp/src/test/java/com/google/cloud/dlp/v2/DlpServiceClientTest.java +++ b/java-dlp/google-cloud-dlp/src/test/java/com/google/cloud/dlp/v2/DlpServiceClientTest.java @@ -79,6 +79,7 @@ import com.google.privacy.dlp.v2.DlpJob; import com.google.privacy.dlp.v2.DlpJobName; import com.google.privacy.dlp.v2.DlpJobType; +import com.google.privacy.dlp.v2.Domain; import com.google.privacy.dlp.v2.EncryptionStatus; import com.google.privacy.dlp.v2.Error; import com.google.privacy.dlp.v2.FileClusterSummary; @@ -5213,6 +5214,7 @@ public void getFileStoreDataProfileTest() throws Exception { .setFileStoreIsEmpty(true) .addAllTags(new ArrayList()) .addAllRelatedResources(new ArrayList()) + .addAllDomains(new ArrayList()) .build(); mockDlpService.addResponse(expectedResponse); @@ -5283,6 +5285,7 @@ public void getFileStoreDataProfileTest2() throws Exception { .setFileStoreIsEmpty(true) .addAllTags(new ArrayList()) .addAllRelatedResources(new ArrayList()) + .addAllDomains(new ArrayList()) .build(); mockDlpService.addResponse(expectedResponse); @@ -5426,6 +5429,7 @@ public void getTableDataProfileTest() throws Exception { .setSampleFindingsTable(BigQueryTable.newBuilder().build()) .addAllTags(new ArrayList()) .addAllRelatedResources(new ArrayList()) + .addAllDomains(new ArrayList()) .build(); mockDlpService.addResponse(expectedResponse); @@ -5498,6 +5502,7 @@ public void getTableDataProfileTest2() throws Exception { .setSampleFindingsTable(BigQueryTable.newBuilder().build()) .addAllTags(new ArrayList()) .addAllRelatedResources(new ArrayList()) + .addAllDomains(new ArrayList()) .build(); mockDlpService.addResponse(expectedResponse); diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Action.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Action.java index 2e4ff3bc56c5..da45d49719ec 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Action.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Action.java @@ -2761,12 +2761,12 @@ public interface DeidentifyOrBuilder * *
          * List of user-specified file type groups to transform. If specified, only
    -     * the files with these file types will be transformed. If empty, all
    -     * supported files will be transformed. Supported types may be automatically
    -     * added over time. If a file type is set in this field that isn't supported
    -     * by the Deidentify action then the job will fail and will not be
    -     * successfully created/started. Currently the only file types supported
    -     * are: IMAGES, TEXT_FILES, CSV, TSV.
    +     * the files with these file types are transformed. If empty, all
    +     * supported files are transformed. Supported types may be automatically
    +     * added over time. Any unsupported file types that are set in this field
    +     * are excluded from de-identification. An error is recorded for each
    +     * unsupported file in the TransformationDetails output table. Currently the
    +     * only file types supported are: IMAGES, TEXT_FILES, CSV, TSV.
          * 
    * * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8; @@ -2780,12 +2780,12 @@ public interface DeidentifyOrBuilder * *
          * List of user-specified file type groups to transform. If specified, only
    -     * the files with these file types will be transformed. If empty, all
    -     * supported files will be transformed. Supported types may be automatically
    -     * added over time. If a file type is set in this field that isn't supported
    -     * by the Deidentify action then the job will fail and will not be
    -     * successfully created/started. Currently the only file types supported
    -     * are: IMAGES, TEXT_FILES, CSV, TSV.
    +     * the files with these file types are transformed. If empty, all
    +     * supported files are transformed. Supported types may be automatically
    +     * added over time. Any unsupported file types that are set in this field
    +     * are excluded from de-identification. An error is recorded for each
    +     * unsupported file in the TransformationDetails output table. Currently the
    +     * only file types supported are: IMAGES, TEXT_FILES, CSV, TSV.
          * 
    * * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8; @@ -2799,12 +2799,12 @@ public interface DeidentifyOrBuilder * *
          * List of user-specified file type groups to transform. If specified, only
    -     * the files with these file types will be transformed. If empty, all
    -     * supported files will be transformed. Supported types may be automatically
    -     * added over time. If a file type is set in this field that isn't supported
    -     * by the Deidentify action then the job will fail and will not be
    -     * successfully created/started. Currently the only file types supported
    -     * are: IMAGES, TEXT_FILES, CSV, TSV.
    +     * the files with these file types are transformed. If empty, all
    +     * supported files are transformed. Supported types may be automatically
    +     * added over time. Any unsupported file types that are set in this field
    +     * are excluded from de-identification. An error is recorded for each
    +     * unsupported file in the TransformationDetails output table. Currently the
    +     * only file types supported are: IMAGES, TEXT_FILES, CSV, TSV.
          * 
    * * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8; @@ -2819,12 +2819,12 @@ public interface DeidentifyOrBuilder * *
          * List of user-specified file type groups to transform. If specified, only
    -     * the files with these file types will be transformed. If empty, all
    -     * supported files will be transformed. Supported types may be automatically
    -     * added over time. If a file type is set in this field that isn't supported
    -     * by the Deidentify action then the job will fail and will not be
    -     * successfully created/started. Currently the only file types supported
    -     * are: IMAGES, TEXT_FILES, CSV, TSV.
    +     * the files with these file types are transformed. If empty, all
    +     * supported files are transformed. Supported types may be automatically
    +     * added over time. Any unsupported file types that are set in this field
    +     * are excluded from de-identification. An error is recorded for each
    +     * unsupported file in the TransformationDetails output table. Currently the
    +     * only file types supported are: IMAGES, TEXT_FILES, CSV, TSV.
          * 
    * * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8; @@ -2838,12 +2838,12 @@ public interface DeidentifyOrBuilder * *
          * List of user-specified file type groups to transform. If specified, only
    -     * the files with these file types will be transformed. If empty, all
    -     * supported files will be transformed. Supported types may be automatically
    -     * added over time. If a file type is set in this field that isn't supported
    -     * by the Deidentify action then the job will fail and will not be
    -     * successfully created/started. Currently the only file types supported
    -     * are: IMAGES, TEXT_FILES, CSV, TSV.
    +     * the files with these file types are transformed. If empty, all
    +     * supported files are transformed. Supported types may be automatically
    +     * added over time. Any unsupported file types that are set in this field
    +     * are excluded from de-identification. An error is recorded for each
    +     * unsupported file in the TransformationDetails output table. Currently the
    +     * only file types supported are: IMAGES, TEXT_FILES, CSV, TSV.
          * 
    * * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8; @@ -3362,12 +3362,12 @@ public com.google.privacy.dlp.v2.FileType convert(java.lang.Integer from) { * *
          * List of user-specified file type groups to transform. If specified, only
    -     * the files with these file types will be transformed. If empty, all
    -     * supported files will be transformed. Supported types may be automatically
    -     * added over time. If a file type is set in this field that isn't supported
    -     * by the Deidentify action then the job will fail and will not be
    -     * successfully created/started. Currently the only file types supported
    -     * are: IMAGES, TEXT_FILES, CSV, TSV.
    +     * the files with these file types are transformed. If empty, all
    +     * supported files are transformed. Supported types may be automatically
    +     * added over time. Any unsupported file types that are set in this field
    +     * are excluded from de-identification. An error is recorded for each
    +     * unsupported file in the TransformationDetails output table. Currently the
    +     * only file types supported are: IMAGES, TEXT_FILES, CSV, TSV.
          * 
    * * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8; @@ -3386,12 +3386,12 @@ public java.util.List getFileTypesToTransfor * *
          * List of user-specified file type groups to transform. If specified, only
    -     * the files with these file types will be transformed. If empty, all
    -     * supported files will be transformed. Supported types may be automatically
    -     * added over time. If a file type is set in this field that isn't supported
    -     * by the Deidentify action then the job will fail and will not be
    -     * successfully created/started. Currently the only file types supported
    -     * are: IMAGES, TEXT_FILES, CSV, TSV.
    +     * the files with these file types are transformed. If empty, all
    +     * supported files are transformed. Supported types may be automatically
    +     * added over time. Any unsupported file types that are set in this field
    +     * are excluded from de-identification. An error is recorded for each
    +     * unsupported file in the TransformationDetails output table. Currently the
    +     * only file types supported are: IMAGES, TEXT_FILES, CSV, TSV.
          * 
    * * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8; @@ -3408,12 +3408,12 @@ public int getFileTypesToTransformCount() { * *
          * List of user-specified file type groups to transform. If specified, only
    -     * the files with these file types will be transformed. If empty, all
    -     * supported files will be transformed. Supported types may be automatically
    -     * added over time. If a file type is set in this field that isn't supported
    -     * by the Deidentify action then the job will fail and will not be
    -     * successfully created/started. Currently the only file types supported
    -     * are: IMAGES, TEXT_FILES, CSV, TSV.
    +     * the files with these file types are transformed. If empty, all
    +     * supported files are transformed. Supported types may be automatically
    +     * added over time. Any unsupported file types that are set in this field
    +     * are excluded from de-identification. An error is recorded for each
    +     * unsupported file in the TransformationDetails output table. Currently the
    +     * only file types supported are: IMAGES, TEXT_FILES, CSV, TSV.
          * 
    * * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8; @@ -3431,12 +3431,12 @@ public com.google.privacy.dlp.v2.FileType getFileTypesToTransform(int index) { * *
          * List of user-specified file type groups to transform. If specified, only
    -     * the files with these file types will be transformed. If empty, all
    -     * supported files will be transformed. Supported types may be automatically
    -     * added over time. If a file type is set in this field that isn't supported
    -     * by the Deidentify action then the job will fail and will not be
    -     * successfully created/started. Currently the only file types supported
    -     * are: IMAGES, TEXT_FILES, CSV, TSV.
    +     * the files with these file types are transformed. If empty, all
    +     * supported files are transformed. Supported types may be automatically
    +     * added over time. Any unsupported file types that are set in this field
    +     * are excluded from de-identification. An error is recorded for each
    +     * unsupported file in the TransformationDetails output table. Currently the
    +     * only file types supported are: IMAGES, TEXT_FILES, CSV, TSV.
          * 
    * * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8; @@ -3453,12 +3453,12 @@ public java.util.List getFileTypesToTransformValueList() { * *
          * List of user-specified file type groups to transform. If specified, only
    -     * the files with these file types will be transformed. If empty, all
    -     * supported files will be transformed. Supported types may be automatically
    -     * added over time. If a file type is set in this field that isn't supported
    -     * by the Deidentify action then the job will fail and will not be
    -     * successfully created/started. Currently the only file types supported
    -     * are: IMAGES, TEXT_FILES, CSV, TSV.
    +     * the files with these file types are transformed. If empty, all
    +     * supported files are transformed. Supported types may be automatically
    +     * added over time. Any unsupported file types that are set in this field
    +     * are excluded from de-identification. An error is recorded for each
    +     * unsupported file in the TransformationDetails output table. Currently the
    +     * only file types supported are: IMAGES, TEXT_FILES, CSV, TSV.
          * 
    * * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8; @@ -5164,12 +5164,12 @@ private void ensureFileTypesToTransformIsMutable() { * *
            * List of user-specified file type groups to transform. If specified, only
    -       * the files with these file types will be transformed. If empty, all
    -       * supported files will be transformed. Supported types may be automatically
    -       * added over time. If a file type is set in this field that isn't supported
    -       * by the Deidentify action then the job will fail and will not be
    -       * successfully created/started. Currently the only file types supported
    -       * are: IMAGES, TEXT_FILES, CSV, TSV.
    +       * the files with these file types are transformed. If empty, all
    +       * supported files are transformed. Supported types may be automatically
    +       * added over time. Any unsupported file types that are set in this field
    +       * are excluded from de-identification. An error is recorded for each
    +       * unsupported file in the TransformationDetails output table. Currently the
    +       * only file types supported are: IMAGES, TEXT_FILES, CSV, TSV.
            * 
    * * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8; @@ -5187,12 +5187,12 @@ public java.util.List getFileTypesToTransfor * *
            * List of user-specified file type groups to transform. If specified, only
    -       * the files with these file types will be transformed. If empty, all
    -       * supported files will be transformed. Supported types may be automatically
    -       * added over time. If a file type is set in this field that isn't supported
    -       * by the Deidentify action then the job will fail and will not be
    -       * successfully created/started. Currently the only file types supported
    -       * are: IMAGES, TEXT_FILES, CSV, TSV.
    +       * the files with these file types are transformed. If empty, all
    +       * supported files are transformed. Supported types may be automatically
    +       * added over time. Any unsupported file types that are set in this field
    +       * are excluded from de-identification. An error is recorded for each
    +       * unsupported file in the TransformationDetails output table. Currently the
    +       * only file types supported are: IMAGES, TEXT_FILES, CSV, TSV.
            * 
    * * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8; @@ -5208,12 +5208,12 @@ public int getFileTypesToTransformCount() { * *
            * List of user-specified file type groups to transform. If specified, only
    -       * the files with these file types will be transformed. If empty, all
    -       * supported files will be transformed. Supported types may be automatically
    -       * added over time. If a file type is set in this field that isn't supported
    -       * by the Deidentify action then the job will fail and will not be
    -       * successfully created/started. Currently the only file types supported
    -       * are: IMAGES, TEXT_FILES, CSV, TSV.
    +       * the files with these file types are transformed. If empty, all
    +       * supported files are transformed. Supported types may be automatically
    +       * added over time. Any unsupported file types that are set in this field
    +       * are excluded from de-identification. An error is recorded for each
    +       * unsupported file in the TransformationDetails output table. Currently the
    +       * only file types supported are: IMAGES, TEXT_FILES, CSV, TSV.
            * 
    * * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8; @@ -5230,12 +5230,12 @@ public com.google.privacy.dlp.v2.FileType getFileTypesToTransform(int index) { * *
            * List of user-specified file type groups to transform. If specified, only
    -       * the files with these file types will be transformed. If empty, all
    -       * supported files will be transformed. Supported types may be automatically
    -       * added over time. If a file type is set in this field that isn't supported
    -       * by the Deidentify action then the job will fail and will not be
    -       * successfully created/started. Currently the only file types supported
    -       * are: IMAGES, TEXT_FILES, CSV, TSV.
    +       * the files with these file types are transformed. If empty, all
    +       * supported files are transformed. Supported types may be automatically
    +       * added over time. Any unsupported file types that are set in this field
    +       * are excluded from de-identification. An error is recorded for each
    +       * unsupported file in the TransformationDetails output table. Currently the
    +       * only file types supported are: IMAGES, TEXT_FILES, CSV, TSV.
            * 
    * * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8; @@ -5259,12 +5259,12 @@ public Builder setFileTypesToTransform(int index, com.google.privacy.dlp.v2.File * *
            * List of user-specified file type groups to transform. If specified, only
    -       * the files with these file types will be transformed. If empty, all
    -       * supported files will be transformed. Supported types may be automatically
    -       * added over time. If a file type is set in this field that isn't supported
    -       * by the Deidentify action then the job will fail and will not be
    -       * successfully created/started. Currently the only file types supported
    -       * are: IMAGES, TEXT_FILES, CSV, TSV.
    +       * the files with these file types are transformed. If empty, all
    +       * supported files are transformed. Supported types may be automatically
    +       * added over time. Any unsupported file types that are set in this field
    +       * are excluded from de-identification. An error is recorded for each
    +       * unsupported file in the TransformationDetails output table. Currently the
    +       * only file types supported are: IMAGES, TEXT_FILES, CSV, TSV.
            * 
    * * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8; @@ -5287,12 +5287,12 @@ public Builder addFileTypesToTransform(com.google.privacy.dlp.v2.FileType value) * *
            * List of user-specified file type groups to transform. If specified, only
    -       * the files with these file types will be transformed. If empty, all
    -       * supported files will be transformed. Supported types may be automatically
    -       * added over time. If a file type is set in this field that isn't supported
    -       * by the Deidentify action then the job will fail and will not be
    -       * successfully created/started. Currently the only file types supported
    -       * are: IMAGES, TEXT_FILES, CSV, TSV.
    +       * the files with these file types are transformed. If empty, all
    +       * supported files are transformed. Supported types may be automatically
    +       * added over time. Any unsupported file types that are set in this field
    +       * are excluded from de-identification. An error is recorded for each
    +       * unsupported file in the TransformationDetails output table. Currently the
    +       * only file types supported are: IMAGES, TEXT_FILES, CSV, TSV.
            * 
    * * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8; @@ -5315,12 +5315,12 @@ public Builder addAllFileTypesToTransform( * *
            * List of user-specified file type groups to transform. If specified, only
    -       * the files with these file types will be transformed. If empty, all
    -       * supported files will be transformed. Supported types may be automatically
    -       * added over time. If a file type is set in this field that isn't supported
    -       * by the Deidentify action then the job will fail and will not be
    -       * successfully created/started. Currently the only file types supported
    -       * are: IMAGES, TEXT_FILES, CSV, TSV.
    +       * the files with these file types are transformed. If empty, all
    +       * supported files are transformed. Supported types may be automatically
    +       * added over time. Any unsupported file types that are set in this field
    +       * are excluded from de-identification. An error is recorded for each
    +       * unsupported file in the TransformationDetails output table. Currently the
    +       * only file types supported are: IMAGES, TEXT_FILES, CSV, TSV.
            * 
    * * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8; @@ -5339,12 +5339,12 @@ public Builder clearFileTypesToTransform() { * *
            * List of user-specified file type groups to transform. If specified, only
    -       * the files with these file types will be transformed. If empty, all
    -       * supported files will be transformed. Supported types may be automatically
    -       * added over time. If a file type is set in this field that isn't supported
    -       * by the Deidentify action then the job will fail and will not be
    -       * successfully created/started. Currently the only file types supported
    -       * are: IMAGES, TEXT_FILES, CSV, TSV.
    +       * the files with these file types are transformed. If empty, all
    +       * supported files are transformed. Supported types may be automatically
    +       * added over time. Any unsupported file types that are set in this field
    +       * are excluded from de-identification. An error is recorded for each
    +       * unsupported file in the TransformationDetails output table. Currently the
    +       * only file types supported are: IMAGES, TEXT_FILES, CSV, TSV.
            * 
    * * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8; @@ -5360,12 +5360,12 @@ public java.util.List getFileTypesToTransformValueList() { * *
            * List of user-specified file type groups to transform. If specified, only
    -       * the files with these file types will be transformed. If empty, all
    -       * supported files will be transformed. Supported types may be automatically
    -       * added over time. If a file type is set in this field that isn't supported
    -       * by the Deidentify action then the job will fail and will not be
    -       * successfully created/started. Currently the only file types supported
    -       * are: IMAGES, TEXT_FILES, CSV, TSV.
    +       * the files with these file types are transformed. If empty, all
    +       * supported files are transformed. Supported types may be automatically
    +       * added over time. Any unsupported file types that are set in this field
    +       * are excluded from de-identification. An error is recorded for each
    +       * unsupported file in the TransformationDetails output table. Currently the
    +       * only file types supported are: IMAGES, TEXT_FILES, CSV, TSV.
            * 
    * * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8; @@ -5382,12 +5382,12 @@ public int getFileTypesToTransformValue(int index) { * *
            * List of user-specified file type groups to transform. If specified, only
    -       * the files with these file types will be transformed. If empty, all
    -       * supported files will be transformed. Supported types may be automatically
    -       * added over time. If a file type is set in this field that isn't supported
    -       * by the Deidentify action then the job will fail and will not be
    -       * successfully created/started. Currently the only file types supported
    -       * are: IMAGES, TEXT_FILES, CSV, TSV.
    +       * the files with these file types are transformed. If empty, all
    +       * supported files are transformed. Supported types may be automatically
    +       * added over time. Any unsupported file types that are set in this field
    +       * are excluded from de-identification. An error is recorded for each
    +       * unsupported file in the TransformationDetails output table. Currently the
    +       * only file types supported are: IMAGES, TEXT_FILES, CSV, TSV.
            * 
    * * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8; @@ -5408,12 +5408,12 @@ public Builder setFileTypesToTransformValue(int index, int value) { * *
            * List of user-specified file type groups to transform. If specified, only
    -       * the files with these file types will be transformed. If empty, all
    -       * supported files will be transformed. Supported types may be automatically
    -       * added over time. If a file type is set in this field that isn't supported
    -       * by the Deidentify action then the job will fail and will not be
    -       * successfully created/started. Currently the only file types supported
    -       * are: IMAGES, TEXT_FILES, CSV, TSV.
    +       * the files with these file types are transformed. If empty, all
    +       * supported files are transformed. Supported types may be automatically
    +       * added over time. Any unsupported file types that are set in this field
    +       * are excluded from de-identification. An error is recorded for each
    +       * unsupported file in the TransformationDetails output table. Currently the
    +       * only file types supported are: IMAGES, TEXT_FILES, CSV, TSV.
            * 
    * * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8; @@ -5433,12 +5433,12 @@ public Builder addFileTypesToTransformValue(int value) { * *
            * List of user-specified file type groups to transform. If specified, only
    -       * the files with these file types will be transformed. If empty, all
    -       * supported files will be transformed. Supported types may be automatically
    -       * added over time. If a file type is set in this field that isn't supported
    -       * by the Deidentify action then the job will fail and will not be
    -       * successfully created/started. Currently the only file types supported
    -       * are: IMAGES, TEXT_FILES, CSV, TSV.
    +       * the files with these file types are transformed. If empty, all
    +       * supported files are transformed. Supported types may be automatically
    +       * added over time. Any unsupported file types that are set in this field
    +       * are excluded from de-identification. An error is recorded for each
    +       * unsupported file in the TransformationDetails output table. Currently the
    +       * only file types supported are: IMAGES, TEXT_FILES, CSV, TSV.
            * 
    * * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8; diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileConfigSnapshot.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileConfigSnapshot.java index d2d261a6ab30..ec569c6e2a53 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileConfigSnapshot.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileConfigSnapshot.java @@ -139,7 +139,7 @@ public com.google.privacy.dlp.v2.InspectConfigOrBuilder getInspectConfigOrBuilde *
    * * @deprecated google.privacy.dlp.v2.DataProfileConfigSnapshot.data_profile_job is deprecated. See - * google/privacy/dlp/v2/dlp.proto;l=7563 + * google/privacy/dlp/v2/dlp.proto;l=7593 * @return Whether the dataProfileJob field is set. */ @java.lang.Override @@ -163,7 +163,7 @@ public boolean hasDataProfileJob() { *
    * * @deprecated google.privacy.dlp.v2.DataProfileConfigSnapshot.data_profile_job is deprecated. See - * google/privacy/dlp/v2/dlp.proto;l=7563 + * google/privacy/dlp/v2/dlp.proto;l=7593 * @return The dataProfileJob. */ @java.lang.Override @@ -1076,7 +1076,7 @@ public com.google.privacy.dlp.v2.InspectConfigOrBuilder getInspectConfigOrBuilde * * * @deprecated google.privacy.dlp.v2.DataProfileConfigSnapshot.data_profile_job is deprecated. - * See google/privacy/dlp/v2/dlp.proto;l=7563 + * See google/privacy/dlp/v2/dlp.proto;l=7593 * @return Whether the dataProfileJob field is set. */ @java.lang.Deprecated @@ -1099,7 +1099,7 @@ public boolean hasDataProfileJob() { * * * @deprecated google.privacy.dlp.v2.DataProfileConfigSnapshot.data_profile_job is deprecated. - * See google/privacy/dlp/v2/dlp.proto;l=7563 + * See google/privacy/dlp/v2/dlp.proto;l=7593 * @return The dataProfileJob. */ @java.lang.Deprecated diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileConfigSnapshotOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileConfigSnapshotOrBuilder.java index 9036eb2ffb18..4fd3acd7c3c3 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileConfigSnapshotOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileConfigSnapshotOrBuilder.java @@ -79,7 +79,7 @@ public interface DataProfileConfigSnapshotOrBuilder * * * @deprecated google.privacy.dlp.v2.DataProfileConfigSnapshot.data_profile_job is deprecated. See - * google/privacy/dlp/v2/dlp.proto;l=7563 + * google/privacy/dlp/v2/dlp.proto;l=7593 * @return Whether the dataProfileJob field is set. */ @java.lang.Deprecated @@ -100,7 +100,7 @@ public interface DataProfileConfigSnapshotOrBuilder * * * @deprecated google.privacy.dlp.v2.DataProfileConfigSnapshot.data_profile_job is deprecated. See - * google/privacy/dlp/v2/dlp.proto;l=7563 + * google/privacy/dlp/v2/dlp.proto;l=7593 * @return The dataProfileJob. */ @java.lang.Deprecated diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpProto.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpProto.java index 9b52eada8405..9188a02b874f 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpProto.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpProto.java @@ -220,6 +220,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_privacy_dlp_v2_DeidentifyDataSourceDetails_RequestedDeidentifyOptions_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_privacy_dlp_v2_DeidentifyDataSourceDetails_RequestedDeidentifyOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_LocationSupport_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_LocationSupport_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_privacy_dlp_v2_InfoTypeDescription_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -1360,10 +1364,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_privacy_dlp_v2_ProcessingLocation_ImageFallbackLocation_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_privacy_dlp_v2_ProcessingLocation_ImageFallbackLocation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_ProcessingLocation_DocumentFallbackLocation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_ProcessingLocation_DocumentFallbackLocation_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_privacy_dlp_v2_SaveToGcsFindingsOutput_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_privacy_dlp_v2_SaveToGcsFindingsOutput_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_Domain_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_Domain_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -1661,34 +1673,44 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\'snapshot_structured_deidentify_template\030\002" + " \001(\0132).google.privacy.dlp.v2.DeidentifyTemplate\022Q\n" + "\036snapshot_image_redact_template\030\003 \001(\0132).go" - + "ogle.privacy.dlp.v2.DeidentifyTemplate\"\374\002\n" + + "ogle.privacy.dlp.v2.DeidentifyTemplate\"\337\001\n" + + "\017LocationSupport\022Z\n" + + "\025regionalization_scope\030\001" + + " \001(\0162;.google.privacy.dlp.v2.LocationSupport.RegionalizationScope\022\021\n" + + "\tlocations\030\002 \003(\t\"]\n" + + "\024RegionalizationScope\022%\n" + + "!REGIONALIZATION_SCOPE_UNSPECIFIED\020\000\022\014\n" + + "\010REGIONAL\020\001\022\020\n" + + "\014ANY_LOCATION\020\002\"\276\003\n" + "\023InfoTypeDescription\022\014\n" + "\004name\030\001 \001(\t\022\024\n" + "\014display_name\030\002 \001(\t\022@\n" - + "\014supported_by\030\003 \003(\016" - + "2*.google.privacy.dlp.v2.InfoTypeSupportedBy\022\023\n" - + "\013description\030\004 \001(\t\022\017\n" + + "\014supported_by\030\003" + + " \003(\0162*.google.privacy.dlp.v2.InfoTypeSupportedBy\022\023\n" + + "\013description\030\004 \001(\t\022@\n" + + "\020location_support\030\006" + + " \001(\0132&.google.privacy.dlp.v2.LocationSupport\022\017\n" + "\007example\030\010 \001(\t\022;\n" + "\010versions\030\t \003(\0132).google.privacy.dlp.v2.VersionDescription\022;\n\n" + "categories\030\n" + " \003(\0132\'.google.privacy.dlp.v2.InfoTypeCategory\022B\n" - + "\021sensitivity_score\030\013" - + " \001(\0132\'.google.privacy.dlp.v2.SensitivityScore\022\033\n" - + "\023specific_info_types\030\014 \003(\t\"\203\n\n" + + "\021sensitivity_score\030\013 " + + "\001(\0132\'.google.privacy.dlp.v2.SensitivityScore\022\033\n" + + "\023specific_info_types\030\014 \003(\t\"\220\n\n" + "\020InfoTypeCategory\022U\n" - + "\021location_category\030\001 \001(\01628.google.p" - + "rivacy.dlp.v2.InfoTypeCategory.LocationCategoryH\000\022U\n" - + "\021industry_category\030\002 \001(\01628.g" - + "oogle.privacy.dlp.v2.InfoTypeCategory.IndustryCategoryH\000\022M\n\r" - + "type_category\030\003 \001(\0162" - + "4.google.privacy.dlp.v2.InfoTypeCategory.TypeCategoryH\000\"\342\005\n" + + "\021location_category\030\001 \001(" + + "\01628.google.privacy.dlp.v2.InfoTypeCategory.LocationCategoryH\000\022U\n" + + "\021industry_category\030\002" + + " \001(\01628.google.privacy.dlp.v2.InfoTypeCategory.IndustryCategoryH\000\022M\n\r" + + "type_category\030\003" + + " \001(\01624.google.privacy.dlp.v2.InfoTypeCategory.TypeCategoryH\000\"\357\005\n" + "\020LocationCategory\022\030\n" + "\024LOCATION_UNSPECIFIED\020\000\022\n\n" + "\006GLOBAL\020\001\022\r\n" + "\tARGENTINA\020\002\022\013\n" + "\007ARMENIA\0203\022\r\n" - + "\tAUSTRALIA\020\003\022\016\n" - + "\n" + + "\tAUSTRALIA\020\003\022\013\n" + + "\007AUSTRIA\0205\022\016\n\n" + "AZERBAIJAN\0200\022\013\n" + "\007BELARUS\0202\022\013\n" + "\007BELGIUM\020\004\022\n\n" @@ -1762,7 +1784,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "language_code\030\001 \001(\t\022\016\n" + "\006filter\030\002 \001(\t\022\023\n" + "\013location_id\030\003 \001(\t\"W\n" - + "\025ListInfoTypesResponse\022>\n\n" + + "\025ListInfoTypesResponse\022>\n" + + "\n" + "info_types\030\001 \003(\0132*.google.privacy.dlp.v2.InfoTypeDescription\"\301\001\n" + "\025RiskAnalysisJobConfig\022<\n" + "\016privacy_metric\030\001 \001(\0132$.google.privacy.dlp.v2.PrivacyMetric\022:\n" @@ -1776,26 +1799,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003tag\"\276\002\n" + "\020StatisticalTable\0228\n" + "\005table\030\003 \001(\0132$.google.privacy.dlp.v2.BigQueryTableB\003\340A\002\022T\n" - + "\tquasi_ids\030\001 \003(" - + "\0132<.google.privacy.dlp.v2.StatisticalTable.QuasiIdentifierFieldB\003\340A\002\022?\n" - + "\022relative_frequency\030\002" - + " \001(\0132\036.google.privacy.dlp.v2.FieldIdB\003\340A\002\032Y\n" + + "\tquasi_ids\030\001 \003(\0132<.google.priv" + + "acy.dlp.v2.StatisticalTable.QuasiIdentifierFieldB\003\340A\002\022?\n" + + "\022relative_frequency\030\002 \001(" + + "\0132\036.google.privacy.dlp.v2.FieldIdB\003\340A\002\032Y\n" + "\024QuasiIdentifierField\022-\n" + "\005field\030\001 \001(\0132\036.google.privacy.dlp.v2.FieldId\022\022\n\n" + "custom_tag\030\002 \001(\t\"\223\017\n\r" + "PrivacyMetric\022[\n" - + "\026numerical_stats_config\030\001 \001(\01329.goo" - + "gle.privacy.dlp.v2.PrivacyMetric.NumericalStatsConfigH\000\022_\n" - + "\030categorical_stats_config\030\002" - + " \001(\0132;.google.privacy.dlp.v2.PrivacyMetric.CategoricalStatsConfigH\000\022S\n" + + "\026numerical_stats_config\030\001 \001(\01329.google.privacy.dlp" + + ".v2.PrivacyMetric.NumericalStatsConfigH\000\022_\n" + + "\030categorical_stats_config\030\002 \001(\0132;.goo" + + "gle.privacy.dlp.v2.PrivacyMetric.CategoricalStatsConfigH\000\022S\n" + "\022k_anonymity_config\030\003" + " \001(\01325.google.privacy.dlp.v2.PrivacyMetric.KAnonymityConfigH\000\022S\n" - + "\022l_diversity_config\030\004 \001(\01325.google.priva" - + "cy.dlp.v2.PrivacyMetric.LDiversityConfigH\000\022\\\n" - + "\027k_map_estimation_config\030\005 \001(\01329.go" - + "ogle.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfigH\000\022n\n" - + " delta_presence_estimation_config\030\006 \001(\0132B.google.privacy.dlp." - + "v2.PrivacyMetric.DeltaPresenceEstimationConfigH\000\032E\n" + + "\022l_diversity_config\030\004" + + " \001(\01325.google.privacy.dlp.v2.PrivacyMetric.LDiversityConfigH\000\022\\\n" + + "\027k_map_estimation_config\030\005 \001(\01329.google.privacy.dl" + + "p.v2.PrivacyMetric.KMapEstimationConfigH\000\022n\n" + + " delta_presence_estimation_config\030\006 " + + "\001(\0132B.google.privacy.dlp.v2.PrivacyMetric.DeltaPresenceEstimationConfigH\000\032E\n" + "\024NumericalStatsConfig\022-\n" + "\005field\030\001 \001(\0132\036.google.privacy.dlp.v2.FieldId\032G\n" + "\026CategoricalStatsConfig\022-\n" @@ -1808,11 +1831,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023sensitive_attribute\030\002" + " \001(\0132\036.google.privacy.dlp.v2.FieldId\032\201\006\n" + "\024KMapEstimationConfig\022]\n" - + "\tquasi_ids\030\001 \003(\0132E.google.privacy.dlp.v2.Pri" - + "vacyMetric.KMapEstimationConfig.TaggedFieldB\003\340A\002\022\023\n" + + "\tquasi_ids\030\001 \003(\0132E." + + "google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.TaggedFieldB\003\340A\002\022\023\n" + "\013region_code\030\002 \001(\t\022b\n" - + "\020auxiliary_tables\030\003 \003(\0132H.google.privacy.dlp.v2." - + "PrivacyMetric.KMapEstimationConfig.AuxiliaryTable\032\300\001\n" + + "\020auxiliary_tables\030\003 \003(\013" + + "2H.google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable\032\300\001\n" + "\013TaggedField\0222\n" + "\005field\030\001 \001(\0132\036.google.privacy.dlp.v2.FieldIdB\003\340A\002\0224\n" + "\tinfo_type\030\002 \001(\0132\037.google.privacy.dlp.v2.InfoTypeH\000\022\024\n\n" @@ -1821,8 +1844,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003tag\032\315\002\n" + "\016AuxiliaryTable\0228\n" + "\005table\030\003 \001(\0132$.google.privacy.dlp.v2.BigQueryTableB\003\340A\002\022m\n" - + "\tquasi_ids\030\001 \003(\0132U.google.privacy.dl" - + "p.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable.QuasiIdFieldB\003\340A\002\022?\n" + + "\tquasi_ids\030\001 \003(\0132U.google.privacy.dlp.v2.PrivacyMet" + + "ric.KMapEstimationConfig.AuxiliaryTable.QuasiIdFieldB\003\340A\002\022?\n" + "\022relative_frequency\030\002" + " \001(\0132\036.google.privacy.dlp.v2.FieldIdB\003\340A\002\032Q\n" + "\014QuasiIdField\022-\n" @@ -1832,37 +1855,37 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tquasi_ids\030\001" + " \003(\0132\036.google.privacy.dlp.v2.QuasiIdB\003\340A\002\022\023\n" + "\013region_code\030\002 \001(\t\022A\n" - + "\020auxiliary_tables\030\003 \003(\0132\'." - + "google.privacy.dlp.v2.StatisticalTableB\006\n" + + "\020auxiliary_tables\030\003" + + " \003(\0132\'.google.privacy.dlp.v2.StatisticalTableB\006\n" + "\004type\"\301\037\n" + "\034AnalyzeDataSourceRiskDetails\022F\n" + "\030requested_privacy_metric\030\001" + " \001(\0132$.google.privacy.dlp.v2.PrivacyMetric\022D\n" + "\026requested_source_table\030\002" + " \001(\0132$.google.privacy.dlp.v2.BigQueryTable\022j\n" - + "\026numerical_stats_result\030\003 \001(\0132H.google.privacy.dlp.v2.An" - + "alyzeDataSourceRiskDetails.NumericalStatsResultH\000\022n\n" - + "\030categorical_stats_result\030\004 \001(\0132J.google.privacy.dlp.v2.AnalyzeDataS" - + "ourceRiskDetails.CategoricalStatsResultH\000\022b\n" - + "\022k_anonymity_result\030\005 \001(\0132D.google.p" - + "rivacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResultH\000\022b\n" - + "\022l_diversity_result\030\006 \001(\0132D.google.privacy.dlp.v2.Analyz" - + "eDataSourceRiskDetails.LDiversityResultH\000\022k\n" - + "\027k_map_estimation_result\030\007 \001(\0132H.goo" - + "gle.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResultH\000\022}\n" - + " delta_presence_estimation_result\030\t \001(\0132Q.googl" - + "e.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResultH\000\022k\n" + + "\026numerical_stats_result\030\003 \001(\0132H" + + ".google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.NumericalStatsResultH\000\022n\n" + + "\030categorical_stats_result\030\004 \001(\0132J.google.pr" + + "ivacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResultH\000\022b\n" + + "\022k_anonymity_result\030\005 \001(\0132D.google.privacy.dlp.v2.A" + + "nalyzeDataSourceRiskDetails.KAnonymityResultH\000\022b\n" + + "\022l_diversity_result\030\006 \001(\0132D.goo" + + "gle.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResultH\000\022k\n" + + "\027k_map_estimation_result\030\007 \001(\0132H.google.privacy.dlp" + + ".v2.AnalyzeDataSourceRiskDetails.KMapEstimationResultH\000\022}\n" + + " delta_presence_estimation_result\030\t \001(\0132Q.google.privacy.dlp.v" + + "2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResultH\000\022k\n" + "\021requested_options\030\n" - + " \001(\0132P.google.privac" - + "y.dlp.v2.AnalyzeDataSourceRiskDetails.RequestedRiskAnalysisOptions\032\257\001\n" + + " \001(\0132P.google.privacy.dlp.v2.Analyz" + + "eDataSourceRiskDetails.RequestedRiskAnalysisOptions\032\257\001\n" + "\024NumericalStatsResult\022/\n" + "\tmin_value\030\001 \001(\0132\034.google.privacy.dlp.v2.Value\022/\n" + "\tmax_value\030\002 \001(\0132\034.google.privacy.dlp.v2.Value\0225\n" + "\017quantile_values\030\004 \003(\0132\034.google.privacy.dlp.v2.Value\032\215\003\n" + "\026CategoricalStatsResult\022\225\001\n" - + "!value_frequency_histogram_buckets\030\005 \003(\0132j.go" - + "ogle.privacy.dlp.v2.AnalyzeDataSourceRis" - + "kDetails.CategoricalStatsResult.CategoricalStatsHistogramBucket\032\332\001\n" + + "!value_frequency_histogram_buckets\030\005 \003(\0132j.google.privacy.dl" + + "p.v2.AnalyzeDataSourceRiskDetails.Catego" + + "ricalStatsResult.CategoricalStatsHistogramBucket\032\332\001\n" + "\037CategoricalStatsHistogramBucket\022#\n" + "\033value_frequency_lower_bound\030\001 \001(\003\022#\n" + "\033value_frequency_upper_bound\030\002 \001(\003\022\023\n" @@ -1870,24 +1893,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "bucket_values\030\004 \003(\0132%.google.privacy.dlp.v2.ValueFrequency\022\032\n" + "\022bucket_value_count\030\005 \001(\003\032\265\004\n" + "\020KAnonymityResult\022\213\001\n" - + "#equivalence_class_histogram_buckets\030\005 \003(\0132^.google" - + ".privacy.dlp.v2.AnalyzeDataSourceRiskDet" - + "ails.KAnonymityResult.KAnonymityHistogramBucket\032t\n" + + "#equivalence_class_histogram_buckets\030\005 \003(\0132^.google.privacy.dlp.v2" + + ".AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityHistogramBucket\032t\n" + "\032KAnonymityEquivalenceClass\0226\n" - + "\020quasi_ids_values\030\001 \003(\0132\034.google.privacy.dlp.v2.Value\022\036\n" + + "\020quasi_ids_values\030\001 \003(\0132\034.google.privacy.dlp.v2.Value\022\036", + "\n" + "\026equivalence_class_size\030\002 \001(\003\032\234\002\n" + "\031KAnonymityHistogramBucket\022*\n" + "\"equivalence_class_size_lower_bound\030\001 \001(\003\022*\n" + "\"equivalence_class_size_upper_bound\030\002 \001(\003\022\023\n" + "\013bucket_size\030\003 \001(\003\022v\n\r" - + "bucket_values\030\004 \003(\0132_.google.privacy.dlp.v2.AnalyzeD" - + "ataSourceRiskDetails.KAnonymityResult.KAnonymityEquivalenceClass\022\032\n" - + "\022bucket_value", - "_count\030\005 \001(\003\032\260\005\n" + + "bucket_values\030\004 \003(\0132_.google.privacy.dlp.v2.AnalyzeDataSourceRiskDe" + + "tails.KAnonymityResult.KAnonymityEquivalenceClass\022\032\n" + + "\022bucket_value_count\030\005 \001(\003\032\260\005\n" + "\020LDiversityResult\022\223\001\n" - + "+sensitive_value_frequency_histogram_buckets\030\005" - + " \003(\0132^.google.privacy.dlp.v2.AnalyzeD" - + "ataSourceRiskDetails.LDiversityResult.LDiversityHistogramBucket\032\340\001\n" + + "+sensitive_value_frequency_histogram_buckets\030\005 \003(\0132^.googl" + + "e.privacy.dlp.v2.AnalyzeDataSourceRiskDe" + + "tails.LDiversityResult.LDiversityHistogramBucket\032\340\001\n" + "\032LDiversityEquivalenceClass\0226\n" + "\020quasi_ids_values\030\001 \003(\0132\034.google.privacy.dlp.v2.Value\022\036\n" + "\026equivalence_class_size\030\002 \001(\003\022%\n" @@ -1898,12 +1920,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "%sensitive_value_frequency_lower_bound\030\001 \001(\003\022-\n" + "%sensitive_value_frequency_upper_bound\030\002 \001(\003\022\023\n" + "\013bucket_size\030\003 \001(\003\022v\n\r" - + "bucket_values\030\004 \003(\0132_.google.privacy.dlp." - + "v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityEquivalenceClass\022\032\n" + + "bucket_values\030\004 \003(\0132_.google.privacy.dlp.v2.AnalyzeDataS" + + "ourceRiskDetails.LDiversityResult.LDiversityEquivalenceClass\022\032\n" + "\022bucket_value_count\030\005 \001(\003\032\225\004\n" + "\024KMapEstimationResult\022\212\001\n" - + "\032k_map_estimation_histogram\030\001 \003(\0132f.google.privacy.dlp.v2.AnalyzeDat" - + "aSourceRiskDetails.KMapEstimationResult.KMapEstimationHistogramBucket\032r\n" + + "\032k_map_estimation_histogram\030\001 \003(\0132f.google." + + "privacy.dlp.v2.AnalyzeDataSourceRiskDeta" + + "ils.KMapEstimationResult.KMapEstimationHistogramBucket\032r\n" + "\033KMapEstimationQuasiIdValues\0226\n" + "\020quasi_ids_values\030\001 \003(\0132\034.google.privacy.dlp.v2.Value\022\033\n" + "\023estimated_anonymity\030\002 \001(\003\032\373\001\n" @@ -1911,13 +1934,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "min_anonymity\030\001 \001(\003\022\025\n\r" + "max_anonymity\030\002 \001(\003\022\023\n" + "\013bucket_size\030\005 \001(\003\022{\n\r" - + "bucket_values\030\006 \003(\0132d.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetai" - + "ls.KMapEstimationResult.KMapEstimationQuasiIdValues\022\032\n" + + "bucket_values\030\006 \003(\0132d.google.privacy.dlp.v2.A" + + "nalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationQuasiIdValues\022\032\n" + "\022bucket_value_count\030\007 \001(\003\032\344\004\n" + "\035DeltaPresenceEstimationResult\022\245\001\n" - + "#delta_presence_estimation_histogram\030\001 \003(\0132" - + "x.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResu" - + "lt.DeltaPresenceEstimationHistogramBucket\032}\n" + + "#delta_presence_estimation_histogram\030\001 \003(\0132x.google.privac" + + "y.dlp.v2.AnalyzeDataSourceRiskDetails.De" + + "ltaPresenceEstimationResult.DeltaPresenceEstimationHistogramBucket\032}\n" + "$DeltaPresenceEstimationQuasiIdValues\0226\n" + "\020quasi_ids_values\030\001 \003(\0132\034.google.privacy.dlp.v2.Value\022\035\n" + "\025estimated_probability\030\002 \001(\001\032\233\002\n" @@ -1925,8 +1948,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017min_probability\030\001 \001(\001\022\027\n" + "\017max_probability\030\002 \001(\001\022\023\n" + "\013bucket_size\030\005 \001(\003\022\215\001\n\r" - + "bucket_values\030\006 \003(\0132v.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails." - + "DeltaPresenceEstimationResult.DeltaPresenceEstimationQuasiIdValues\022\032\n" + + "bucket_values\030\006 \003(\0132v.google.privacy.dlp.v2.Anal" + + "yzeDataSourceRiskDetails.DeltaPresenceEs" + + "timationResult.DeltaPresenceEstimationQuasiIdValues\022\032\n" + "\022bucket_value_count\030\007 \001(\003\032`\n" + "\034RequestedRiskAnalysisOptions\022@\n\n" + "job_config\030\001 \001(\0132,.google.privacy.dlp.v2.RiskAnalysisJobConfigB\010\n" @@ -1955,25 +1979,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010TimeZone\022\026\n" + "\016offset_minutes\030\001 \001(\005\"\362\002\n" + "\020DeidentifyConfig\022S\n" - + "\031info_type_transformations\030\001 \001(\0132..go" - + "ogle.privacy.dlp.v2.InfoTypeTransformationsH\000\022N\n" - + "\026record_transformations\030\002 \001(\0132,." - + "google.privacy.dlp.v2.RecordTransformationsH\000\022L\n" - + "\025image_transformations\030\004 \001(\0132+.g" - + "oogle.privacy.dlp.v2.ImageTransformationsH\000\022Y\n" - + "\035transformation_error_handling\030\003 \001" - + "(\01322.google.privacy.dlp.v2.TransformationErrorHandlingB\020\n" + + "\031info_type_transformations\030\001" + + " \001(\0132..google.privacy.dlp.v2.InfoTypeTransformationsH\000\022N\n" + + "\026record_transformations\030\002" + + " \001(\0132,.google.privacy.dlp.v2.RecordTransformationsH\000\022L\n" + + "\025image_transformations\030\004" + + " \001(\0132+.google.privacy.dlp.v2.ImageTransformationsH\000\022Y\n" + + "\035transformation_error_handling\030\003 \001(\01322.google.pri" + + "vacy.dlp.v2.TransformationErrorHandlingB\020\n" + "\016transformation\"\345\004\n" + "\024ImageTransformations\022S\n\n" - + "transforms\030\002 \003(\0132?." - + "google.privacy.dlp.v2.ImageTransformations.ImageTransformation\032\367\003\n" + + "transforms\030\002 \003(\0132?.google.privacy." + + "dlp.v2.ImageTransformations.ImageTransformation\032\367\003\n" + "\023ImageTransformation\022p\n" - + "\023selected_info_types\030\004 \001(\0132Q.google.privacy.dlp.v2.ImageTransformations" - + ".ImageTransformation.SelectedInfoTypesH\000\022f\n" - + "\016all_info_types\030\005 \001(\0132L.google.privac" - + "y.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypesH\000\022[\n" - + "\010all_text\030\006 \001" - + "(\0132G.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllTextH\000\0225\n" + + "\023selected_info_types\030\004 \001(\0132Q.google.privacy.dl" + + "p.v2.ImageTransformations.ImageTransformation.SelectedInfoTypesH\000\022f\n" + + "\016all_info_types\030\005 \001(\0132L.google.privacy.dlp.v2.ImageT" + + "ransformations.ImageTransformation.AllInfoTypesH\000\022[\n" + + "\010all_text\030\006 \001(\0132G.google.pri" + + "vacy.dlp.v2.ImageTransformations.ImageTransformation.AllTextH\000\0225\n" + "\017redaction_color\030\003 \001(\0132\034.google.privacy.dlp.v2.Color\032M\n" + "\021SelectedInfoTypes\0228\n\n" + "info_types\030\005" @@ -1982,10 +2006,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007AllTextB\010\n" + "\006target\"\205\002\n" + "\033TransformationErrorHandling\022T\n" - + "\013throw_error\030\001 \001(\0132=.google.privacy.d" - + "lp.v2.TransformationErrorHandling.ThrowErrorH\000\022d\n" - + "\023leave_untransformed\030\002 \001(\0132E.go" - + "ogle.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformedH\000\032\014\n\n" + + "\013throw_error\030\001" + + " \001(\0132=.google.privacy.dlp.v2.TransformationErrorHandling.ThrowErrorH\000\022d\n" + + "\023leave_untransformed\030\002 \001(\0132E.google.privacy.dl" + + "p.v2.TransformationErrorHandling.LeaveUntransformedH\000\032\014\n\n" + "ThrowError\032\024\n" + "\022LeaveUntransformedB\006\n" + "\004mode\"\312\007\n" @@ -1995,28 +2019,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "redact_config\030\002 \001(\0132#.google.privacy.dlp.v2.RedactConfigH\000\022K\n" + "\025character_mask_config\030\003" + " \001(\0132*.google.privacy.dlp.v2.CharacterMaskConfigH\000\022Y\n" - + "\035crypto_replace_ffx_fpe_config\030\004 \001(\01320.google.pri" - + "vacy.dlp.v2.CryptoReplaceFfxFpeConfigH\000\022V\n" - + "\033fixed_size_bucketing_config\030\005 \001(\0132/.g" - + "oogle.privacy.dlp.v2.FixedSizeBucketingConfigH\000\022B\n" + + "\035crypto_replace_ffx_fpe_config\030\004" + + " \001(\01320.google.privacy.dlp.v2.CryptoReplaceFfxFpeConfigH\000\022V\n" + + "\033fixed_size_bucketing_config\030\005" + + " \001(\0132/.google.privacy.dlp.v2.FixedSizeBucketingConfigH\000\022B\n" + "\020bucketing_config\030\006" + " \001(\0132&.google.privacy.dlp.v2.BucketingConfigH\000\022Y\n" - + "\035replace_with_info_type_config\030\007 \001(\01320.goo" - + "gle.privacy.dlp.v2.ReplaceWithInfoTypeConfigH\000\022A\n" + + "\035replace_with_info_type_config\030\007" + + " \001(\01320.google.privacy.dlp.v2.ReplaceWithInfoTypeConfigH\000\022A\n" + "\020time_part_config\030\010" + " \001(\0132%.google.privacy.dlp.v2.TimePartConfigH\000\022E\n" + "\022crypto_hash_config\030\t" + " \001(\0132\'.google.privacy.dlp.v2.CryptoHashConfigH\000\022C\n" - + "\021date_shift_config\030\013" - + " \001(\0132&.google.privacy.dlp.v2.DateShiftConfigH\000\022W\n" - + "\033crypto_deterministic_config\030\014" - + " \001(\01320.google.privacy.dlp.v2.CryptoDeterministicConfigH\000\022S\n" + + "\021date_shift_config\030\013 \001(\0132&.g" + + "oogle.privacy.dlp.v2.DateShiftConfigH\000\022W\n" + + "\033crypto_deterministic_config\030\014 \001(\01320.go" + + "ogle.privacy.dlp.v2.CryptoDeterministicConfigH\000\022S\n" + "\031replace_dictionary_config\030\r" + " \001(\0132..google.privacy.dlp.v2.ReplaceDictionaryConfigH\000B\020\n" + "\016transformation\"\334\001\n" + "\016TimePartConfig\022G\n" - + "\017part_to_extract\030\001" - + " \001(\0162..google.privacy.dlp.v2.TimePartConfig.TimePart\"\200\001\n" + + "\017part_to_extract\030\001 \001(\0162..goo" + + "gle.privacy.dlp.v2.TimePartConfig.TimePart\"\200\001\n" + "\010TimePart\022\031\n" + "\025TIME_PART_UNSPECIFIED\020\000\022\010\n" + "\004YEAR\020\001\022\t\n" @@ -2027,22 +2051,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013HOUR_OF_DAY\020\006\"H\n" + "\020CryptoHashConfig\0224\n\n" + "crypto_key\030\001 \001(\0132 .google.privacy.dlp.v2.CryptoKey\"\300\001\n" - + "\031CryptoDeterministicConfig\0224\n\n" + + "\031CryptoDeterministicConfig\0224\n" + + "\n" + "crypto_key\030\001 \001(\0132 .google.privacy.dlp.v2.CryptoKey\022<\n" + "\023surrogate_info_type\030\002 \001(\0132\037.google.privacy.dlp.v2.InfoType\022/\n" + "\007context\030\003 \001(\0132\036.google.privacy.dlp.v2.FieldId\"E\n" + "\022ReplaceValueConfig\022/\n" + "\tnew_value\030\001 \001(\0132\034.google.privacy.dlp.v2.Value\"q\n" + "\027ReplaceDictionaryConfig\022N\n" - + "\tword_list\030\001" - + " \001(\01329.google.privacy.dlp.v2.CustomInfoType.Dictionary.WordListH\000B\006\n" + + "\tword_list\030\001 \001(\0132" + + "9.google.privacy.dlp.v2.CustomInfoType.Dictionary.WordListH\000B\006\n" + "\004type\"\033\n" + "\031ReplaceWithInfoTypeConfig\"\016\n" + "\014RedactConfig\"\266\002\n\r" + "CharsToIgnore\022\034\n" + "\022characters_to_skip\030\001 \001(\tH\000\022_\n" - + "\033common_characters_to_ignore\030\002" - + " \001(\01628.google.privacy.dlp.v2.CharsToIgnore.CommonCharsToIgnoreH\000\"\227\001\n" + + "\033common_characters_to_ignore\030\002 \001(\01628" + + ".google.privacy.dlp.v2.CharsToIgnore.CommonCharsToIgnoreH\000\"\227\001\n" + "\023CommonCharsToIgnore\022&\n" + "\"COMMON_CHARS_TO_IGNORE_UNSPECIFIED\020\000\022\013\n" + "\007NUMERIC\020\001\022\024\n" @@ -2064,8 +2089,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\034.google.privacy.dlp.v2.ValueB\003\340A\002\022\030\n" + "\013bucket_size\030\003 \001(\001B\003\340A\002\"\360\001\n" + "\017BucketingConfig\022>\n" - + "\007buckets\030\001" - + " \003(\0132-.google.privacy.dlp.v2.BucketingConfig.Bucket\032\234\001\n" + + "\007buckets\030\001 \003(\0132-.g" + + "oogle.privacy.dlp.v2.BucketingConfig.Bucket\032\234\001\n" + "\006Bucket\022)\n" + "\003min\030\001 \001(\0132\034.google.privacy.dlp.v2.Value\022)\n" + "\003max\030\002 \001(\0132\034.google.privacy.dlp.v2.Value\022<\n" @@ -2074,8 +2099,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031CryptoReplaceFfxFpeConfig\0229\n\n" + "crypto_key\030\001 \001(\0132 .google.privacy.dlp.v2.CryptoKeyB\003\340A\002\022/\n" + "\007context\030\002 \001(\0132\036.google.privacy.dlp.v2.FieldId\022c\n" - + "\017common_alphabet\030\004 \001(\0162H.google.privacy.dl" - + "p.v2.CryptoReplaceFfxFpeConfig.FfxCommonNativeAlphabetH\000\022\031\n" + + "\017common_alphabet\030\004 \001(\0162H.google.privacy.dlp.v2.CryptoRepl" + + "aceFfxFpeConfig.FfxCommonNativeAlphabetH\000\022\031\n" + "\017custom_alphabet\030\005 \001(\tH\000\022\017\n" + "\005radix\030\006 \001(\005H\000\022<\n" + "\023surrogate_info_type\030\010" @@ -2090,8 +2115,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tCryptoKey\022>\n" + "\ttransient\030\001 \001(\0132).google.privacy.dlp.v2.TransientCryptoKeyH\000\022>\n" + "\tunwrapped\030\002 \001(\0132).google.privacy.dlp.v2.UnwrappedCryptoKeyH\000\022A\n" - + "\013kms_wrapped\030\003" - + " \001(\0132*.google.privacy.dlp.v2.KmsWrappedCryptoKeyH\000B\010\n" + + "\013kms_wrapped\030\003 \001(\0132*.goog" + + "le.privacy.dlp.v2.KmsWrappedCryptoKeyH\000B\010\n" + "\006source\"\'\n" + "\022TransientCryptoKey\022\021\n" + "\004name\030\001 \001(\tB\003\340A\002\"&\n" @@ -2107,43 +2132,43 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "crypto_key\030\004 \001(\0132 .google.privacy.dlp.v2.CryptoKeyH\000B\010\n" + "\006method\"\245\002\n" + "\027InfoTypeTransformations\022c\n" - + "\017transformations\030\001 \003(\0132E.goo" - + "gle.privacy.dlp.v2.InfoTypeTransformations.InfoTypeTransformationB\003\340A\002\032\244\001\n" + + "\017transformations\030\001 \003(\0132E.google.privacy.dlp" + + ".v2.InfoTypeTransformations.InfoTypeTransformationB\003\340A\002\032\244\001\n" + "\026InfoTypeTransformation\0223\n\n" + "info_types\030\001 \003(\0132\037.google.privacy.dlp.v2.InfoType\022U\n" - + "\030primitive_transformation\030\002 \001(\0132..google.privac" - + "y.dlp.v2.PrimitiveTransformationB\003\340A\002\"\300\002\n" + + "\030primitive_transformation\030\002" + + " \001(\0132..google.privacy.dlp.v2.PrimitiveTransformationB\003\340A\002\"\300\002\n" + "\023FieldTransformation\0223\n" + "\006fields\030\001 \003(\0132\036.google.privacy.dlp.v2.FieldIdB\003\340A\002\0229\n" + "\tcondition\030\003 \001(\0132&.google.privacy.dlp.v2.RecordCondition\022R\n" - + "\030primitive_transformation\030\004" - + " \001(\0132..google.privacy.dlp.v2.PrimitiveTransformationH\000\022S\n" - + "\031info_type_transformations\030\005" - + " \001(\0132..google.privacy.dlp.v2.InfoTypeTransformationsH\000B\020\n" + + "\030primitive_transformation\030\004 \001(\0132..googl" + + "e.privacy.dlp.v2.PrimitiveTransformationH\000\022S\n" + + "\031info_type_transformations\030\005 \001(\0132.." + + "google.privacy.dlp.v2.InfoTypeTransformationsH\000B\020\n" + "\016transformation\"\251\001\n" + "\025RecordTransformations\022I\n" - + "\025field_transformations\030\001" - + " \003(\0132*.google.privacy.dlp.v2.FieldTransformation\022E\n" + + "\025field_transformations\030\001 \003" + + "(\0132*.google.privacy.dlp.v2.FieldTransformation\022E\n" + "\023record_suppressions\030\002" + " \003(\0132(.google.privacy.dlp.v2.RecordSuppression\"N\n" + "\021RecordSuppression\0229\n" + "\tcondition\030\001 \001(\0132&.google.privacy.dlp.v2.RecordCondition\"\334\004\n" + "\017RecordCondition\022G\n" - + "\013expressions\030\003" - + " \001(\01322.google.privacy.dlp.v2.RecordCondition.Expressions\032\256\001\n" + + "\013expressions\030\003 \001(\01322" + + ".google.privacy.dlp.v2.RecordCondition.Expressions\032\256\001\n" + "\tCondition\0222\n" + "\005field\030\001 \001(\0132\036.google.privacy.dlp.v2.FieldIdB\003\340A\002\022@\n" + "\010operator\030\003" + " \001(\0162).google.privacy.dlp.v2.RelationalOperatorB\003\340A\002\022+\n" + "\005value\030\004 \001(\0132\034.google.privacy.dlp.v2.Value\032R\n\n" + "Conditions\022D\n\n" - + "conditions\030\001 \003(\01320.g" - + "oogle.privacy.dlp.v2.RecordCondition.Condition\032\372\001\n" + + "conditions\030\001" + + " \003(\01320.google.privacy.dlp.v2.RecordCondition.Condition\032\372\001\n" + "\013Expressions\022\\\n" - + "\020logical_operator\030\001" - + " \001(\0162B.google.privacy.dlp.v2.RecordCondition.Expressions.LogicalOperator\022G\n\n" - + "conditions\030\003" - + " \001(\01321.google.privacy.dlp.v2.RecordCondition.ConditionsH\000\"<\n" + + "\020logical_operator\030\001 \001(\0162B.goog" + + "le.privacy.dlp.v2.RecordCondition.Expressions.LogicalOperator\022G\n\n" + + "conditions\030\003 \001(" + + "\01321.google.privacy.dlp.v2.RecordCondition.ConditionsH\000\"<\n" + "\017LogicalOperator\022 \n" + "\034LOGICAL_OPERATOR_UNSPECIFIED\020\000\022\007\n" + "\003AND\020\001B\006\n" @@ -2160,14 +2185,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025field_transformations\030\005" + " \003(\0132*.google.privacy.dlp.v2.FieldTransformation\022A\n" + "\017record_suppress\030\006 \001(\0132(.google.privacy.dlp.v2.RecordSuppression\022K\n" - + "\007results\030\004 \003(\0132:.google.p" - + "rivacy.dlp.v2.TransformationSummary.SummaryResult\022\031\n" - + "\021transformed_bytes\030\007 \001(\003\032\204\001\n" - + "\r" + + "\007results\030\004" + + " \003(\0132:.google.privacy.dlp.v2.TransformationSummary.SummaryResult\022\031\n" + + "\021transformed_bytes\030\007 \001(\003\032\204\001\n\r" + "SummaryResult\022\r\n" + "\005count\030\001 \001(\003\022S\n" - + "\004code\030\002 " - + "\001(\0162E.google.privacy.dlp.v2.TransformationSummary.TransformationResultCode\022\017\n" + + "\004code\030\002 \001(\0162E.google.pr" + + "ivacy.dlp.v2.TransformationSummary.TransformationResultCode\022\017\n" + "\007details\030\003 \001(\t\"^\n" + "\030TransformationResultCode\022*\n" + "&TRANSFORMATION_RESULT_CODE_UNSPECIFIED\020\000\022\013\n" @@ -2183,25 +2207,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016container_name\030\002 \001(\t\022H\n" + "\016transformation\030\003" + " \003(\01320.google.privacy.dlp.v2.TransformationDescription\022I\n" - + "\016status_details\030\004" - + " \001(\01321.google.privacy.dlp.v2.TransformationResultStatus\022\031\n" + + "\016status_details\030\004 \001" + + "(\01321.google.privacy.dlp.v2.TransformationResultStatus\022\031\n" + "\021transformed_bytes\030\005 \001(\003\022N\n" - + "\027transformation_location\030\006" - + " \001(\0132-.google.privacy.dlp.v2.TransformationLocation\"\331\001\n" + + "\027transformation_location\030\006 \001(\0132-.goog" + + "le.privacy.dlp.v2.TransformationLocation\"\331\001\n" + "\026TransformationLocation\022\024\n\n" + "finding_id\030\001 \001(\tH\000\022L\n" - + "\025record_transformation\030\002" - + " \001(\0132+.google.privacy.dlp.v2.RecordTransformationH\000\022J\n" - + "\016container_type\030\003" - + " \001(\01622.google.privacy.dlp.v2.TransformationContainerTypeB\017\n\r" + + "\025record_transformation\030\002 \001(\013" + + "2+.google.privacy.dlp.v2.RecordTransformationH\000\022J\n" + + "\016container_type\030\003 \001(\01622.google" + + ".privacy.dlp.v2.TransformationContainerTypeB\017\n\r" + "location_type\"\234\001\n" + "\024RecordTransformation\0220\n" + "\010field_id\030\001 \001(\0132\036.google.privacy.dlp.v2.FieldId\0227\n" + "\023container_timestamp\030\002 \001(\0132\032.google.protobuf.Timestamp\022\031\n" + "\021container_version\030\003 \001(\t\"\224\001\n" + "\032TransformationResultStatus\022Q\n" - + "\022result_status_type\030\001" - + " \001(\01625.google.privacy.dlp.v2.TransformationResultStatusType\022#\n" + + "\022result_status_type\030\001 \001(\01625" + + ".google.privacy.dlp.v2.TransformationResultStatusType\022#\n" + "\007details\030\002 \001(\0132\022.google.rpc.Status\"c\n" + "\"TransformationDetailsStorageConfig\0225\n" + "\005table\030\001 \001(\0132$.google.privacy.dlp.v2.BigQueryTableH\000B\006\n" @@ -2217,13 +2241,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013description\030\003 \001(\t\0224\n" + "\013create_time\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022<\n" - + "\016inspect_config\030\006 \001(\0132$." - + "google.privacy.dlp.v2.InspectConfig:\306\002\352A\302\002\n" - + "\"dlp.googleapis.com/InspectTemplate\022@organizations/{organization}/inspectTemp" - + "lates/{inspect_template}\0226projects/{project}/inspectTemplates/{inspect_template}" - + "\022Uorganizations/{organization}/locations/{location}/inspectTemplates/{inspect_te" - + "mplate}\022Kprojects/{project}/locations/{l" - + "ocation}/inspectTemplates/{inspect_template}\"\346\004\n" + + "\016inspect_config\030\006" + + " \001(\0132$.google.privacy.dlp.v2.InspectConfig:\306\002\352A\302\002\n" + + "\"dlp.googleapis.com/InspectTemplate\022@organizations/{" + + "organization}/inspectTemplates/{inspect_template}\0226projects/{project}/inspectTem" + + "plates/{inspect_template}\022Uorganizations/{organization}/locations/{location}/ins" + + "pectTemplates/{inspect_template}\022Kprojec" + + "ts/{project}/locations/{location}/inspectTemplates/{inspect_template}\"\346\004\n" + "\022DeidentifyTemplate\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\024\n" + "\014display_name\030\002 \001(\t\022\023\n" @@ -2232,11 +2256,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013update_time\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022B\n" + "\021deidentify_config\030\006" + " \001(\0132\'.google.privacy.dlp.v2.DeidentifyConfig:\341\002\352A\335\002\n" - + "%dlp.googleapis.com/DeidentifyTemplate\022Forganiz" - + "ations/{organization}/deidentifyTemplates/{deidentify_template}\022\n\n" + + "\007pub_sub\030\002" + + " \001(\0132-.google.privacy.dlp.v2.Action.PublishToPubSubH\000\022U\n" + + "\027publish_summary_to_cscc\030\003" + + " \001(\01322.google.privacy.dlp.v2.Action.PublishSummaryToCsccH\000\022q\n" + + "&publish_findings_to_cloud_data_catalog\030\005 \001(\0132?" + + ".google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalogH\000\022>\n\n" + "deidentify\030\007 \001(\0132(.google.privacy.dlp.v2.Action.DeidentifyH\000\022V\n" - + "\027job_notification_emails\030\010" - + " \001(\01323.google.privacy.dlp.v2.Action.JobNotificationEmailsH\000\022T\n" - + "\026publish_to_stackdriver\030\t \001(\01322.google.privac" - + "y.dlp.v2.Action.PublishToStackdriverH\000\032Q\n" + + "\027job_notification_emails\030\010 \001" + + "(\01323.google.privacy.dlp.v2.Action.JobNotificationEmailsH\000\022T\n" + + "\026publish_to_stackdriver\030\t" + + " \001(\01322.google.privacy.dlp.v2.Action.PublishToStackdriverH\000\032Q\n" + "\014SaveFindings\022A\n\r" + "output_config\030\001 \001(\0132*.google.privacy.dlp.v2.OutputStorageConfig\032 \n" + "\017PublishToPubSub\022\r\n" @@ -2295,8 +2318,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "Deidentify\022J\n" + "\025transformation_config\030\007" + " \001(\0132+.google.privacy.dlp.v2.TransformationConfig\022h\n" - + "%transformation_details_storage_config\030\003 \001(\01329.goo" - + "gle.privacy.dlp.v2.TransformationDetailsStorageConfig\022#\n" + + "%transformation_details_storage_config\030\003 \001(\01329.google.privacy.dlp" + + ".v2.TransformationDetailsStorageConfig\022#\n" + "\024cloud_storage_output\030\t \001(\tB\003\340A\002H\000\022@\n" + "\027file_types_to_transform\030\010" + " \003(\0162\037.google.privacy.dlp.v2.FileTypeB\010\n" @@ -2309,8 +2332,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036structured_deidentify_template\030\002 \001(\t\022\035\n" + "\025image_redact_template\030\004 \001(\t\"\313\001\n" + "\034CreateInspectTemplateRequest\022:\n" - + "\006parent\030\001 \001(\tB*" - + "\340A\002\372A$\022\"dlp.googleapis.com/InspectTemplate\022E\n" + + "\006parent\030\001 \001(" + + "\tB*\340A\002\372A$\022\"dlp.googleapis.com/InspectTemplate\022E\n" + "\020inspect_template\030\002" + " \001(\0132&.google.privacy.dlp.v2.InspectTemplateB\003\340A\002\022\023\n" + "\013template_id\030\003 \001(\t\022\023\n" @@ -2340,8 +2363,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027CreateJobTriggerRequest\0225\n" + "\006parent\030\001 \001(" + "\tB%\340A\002\372A\037\022\035dlp.googleapis.com/JobTrigger\022;\n" - + "\013job_trigger\030\002" - + " \001(\0132!.google.privacy.dlp.v2.JobTriggerB\003\340A\002\022\022\n\n" + + "\013job_trigger\030\002 \001(\0132!.google.privacy.dlp.v2.JobTriggerB\003\340A", + "\002\022\022\n\n" + "trigger_id\030\003 \001(\t\022\023\n" + "\013location_id\030\004 \001(\t\"P\n" + "\031ActivateJobTriggerRequest\0223\n" @@ -2351,16 +2374,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB%\340A\002\372A\037\n" + "\035dlp.googleapis.com/JobTrigger\0226\n" + "\013job_trigger\030\002 \001(\0132!.google.privacy.dlp.v2.JobTrigger\022/\n" - + "\013update_mask\030\003 \001(\0132\032.google.protobuf.Fiel", - "dMask\"K\n" + + "\013update_mask\030\003 \001(\0132\032.google.protobuf.FieldMask\"K\n" + "\024GetJobTriggerRequest\0223\n" + "\004name\030\001 \001(\tB%\340A\002\372A\037\n" + "\035dlp.googleapis.com/JobTrigger\"\264\001\n" + "\034CreateDiscoveryConfigRequest\022:\n" - + "\006parent\030\001 \001(" - + "\tB*\340A\002\372A$\022\"dlp.googleapis.com/DiscoveryConfig\022E\n" - + "\020discovery_config\030\002 \001(" - + "\0132&.google.privacy.dlp.v2.DiscoveryConfigB\003\340A\002\022\021\n" + + "\006parent\030\001 \001(\tB*\340A" + + "\002\372A$\022\"dlp.googleapis.com/DiscoveryConfig\022E\n" + + "\020discovery_config\030\002" + + " \001(\0132&.google.privacy.dlp.v2.DiscoveryConfigB\003\340A\002\022\021\n" + "\tconfig_id\030\003 \001(\t\"\320\001\n" + "\034UpdateDiscoveryConfigRequest\0228\n" + "\004name\030\001 \001(\tB*\340A\002\372A$\n" @@ -2372,8 +2394,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB*\340A\002\372A$\n" + "\"dlp.googleapis.com/DiscoveryConfig\"\222\001\n" + "\033ListDiscoveryConfigsRequest\022:\n" - + "\006parent\030\001 \001(" - + "\tB*\340A\002\372A$\022\"dlp.googleapis.com/DiscoveryConfig\022\022\n\n" + + "\006parent\030\001 \001(\tB*\340A" + + "\002\372A$\022\"dlp.googleapis.com/DiscoveryConfig\022\022\n\n" + "page_token\030\002 \001(\t\022\021\n" + "\tpage_size\030\003 \001(\005\022\020\n" + "\010order_by\030\004 \001(\t\"z\n" @@ -2388,8 +2410,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(\tB!\340A\002\372A\033\022\031dlp.googleapis.com/DlpJob\022>\n" + "\013inspect_job\030\002" + " \001(\0132\'.google.privacy.dlp.v2.InspectJobConfigH\000\022@\n" - + "\010risk_job\030\003 " - + "\001(\0132,.google.privacy.dlp.v2.RiskAnalysisJobConfigH\000\022\016\n" + + "\010risk_job\030\003" + + " \001(\0132,.google.privacy.dlp.v2.RiskAnalysisJobConfigH\000\022\016\n" + "\006job_id\030\004 \001(\t\022\023\n" + "\013location_id\030\005 \001(\tB\005\n" + "\003job\"\336\001\n" @@ -2414,29 +2436,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025inspect_template_name\030\003 \001(\t\022.\n" + "\007actions\030\004 \003(\0132\035.google.privacy.dlp.v2.Action\"\362\r\n" + "\021DataProfileAction\022F\n" - + "\013export_data\030\001" - + " \001(\0132/.google.privacy.dlp.v2.DataProfileAction.ExportH\000\022[\n" - + "\024pub_sub_notification\030\002 \001(\0132;.google.privacy.dlp.v" - + "2.DataProfileAction.PubSubNotificationH\000\022[\n" - + "\024publish_to_chronicle\030\003 \001(\0132;.google." - + "privacy.dlp.v2.DataProfileAction.PublishToChronicleH\000\022a\n" - + "\016publish_to_scc\030\004 \001(\0132G." - + "google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenterH\000\022N\n\r" - + "tag_resources\030\010" - + " \001(\01325.google.privacy.dlp.v2.DataProfileAction.TagResourcesH\000\022h\n" - + "\033publish_to_dataplex_catalog\030\t \001(\0132A.google.p" - + "rivacy.dlp.v2.DataProfileAction.PublishToDataplexCatalogH\000\032\212\001\n" + + "\013export_data\030\001 \001(" + + "\0132/.google.privacy.dlp.v2.DataProfileAction.ExportH\000\022[\n" + + "\024pub_sub_notification\030\002 \001" + + "(\0132;.google.privacy.dlp.v2.DataProfileAction.PubSubNotificationH\000\022[\n" + + "\024publish_to_chronicle\030\003 \001(\0132;.google.privacy.dlp.v2." + + "DataProfileAction.PublishToChronicleH\000\022a\n" + + "\016publish_to_scc\030\004 \001(\0132G.google.privacy." + + "dlp.v2.DataProfileAction.PublishToSecurityCommandCenterH\000\022N\n\r" + + "tag_resources\030\010 \001(\013" + + "25.google.privacy.dlp.v2.DataProfileAction.TagResourcesH\000\022h\n" + + "\033publish_to_dataplex_catalog\030\t \001(\0132A.google.privacy.dlp.v2.D" + + "ataProfileAction.PublishToDataplexCatalogH\000\032\212\001\n" + "\006Export\022;\n\r" + "profile_table\030\001 \001(\0132$.google.privacy.dlp.v2.BigQueryTable\022C\n" - + "\025sample_findings_table\030\002 \001(" - + "\0132$.google.privacy.dlp.v2.BigQueryTable\032\202\003\n" + + "\025sample_findings_table\030\002" + + " \001(\0132$.google.privacy.dlp.v2.BigQueryTable\032\202\003\n" + "\022PubSubNotification\022\r\n" + "\005topic\030\001 \001(\t\022A\n" + "\005event\030\002 \001(\01622.google.privacy.dlp.v2.DataProfileAction.EventType\022K\n" - + "\020pubsub_condition\030\003" - + " \001(\01321.google.privacy.dlp.v2.DataProfilePubSubCondition\022b\n" - + "\021detail_of_message\030\004 \001(\0162G.google.privacy.dlp.v2.DataPro" - + "fileAction.PubSubNotification.DetailLevel\"i\n" + + "\020pubsub_condition\030\003 \001(\01321.go" + + "ogle.privacy.dlp.v2.DataProfilePubSubCondition\022b\n" + + "\021detail_of_message\030\004 \001(\0162G.goog" + + "le.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel\"i\n" + "\013DetailLevel\022\034\n" + "\030DETAIL_LEVEL_UNSPECIFIED\020\000\022\021\n\r" + "TABLE_PROFILE\020\001\022\021\n\r" @@ -2447,14 +2469,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030PublishToDataplexCatalog\022\036\n" + "\026lower_data_risk_to_low\030\001 \001(\010\032\266\003\n" + "\014TagResources\022Z\n" - + "\016tag_conditions\030\001 \003(\0132B.google.priva" - + "cy.dlp.v2.DataProfileAction.TagResources.TagCondition\022L\n" + + "\016tag_conditions\030\001 \003(\0132B.google.privacy.dlp.v2.DataP" + + "rofileAction.TagResources.TagCondition\022L\n" + "\032profile_generations_to_tag\030\002" + " \003(\0162(.google.privacy.dlp.v2.ProfileGeneration\022\036\n" + "\026lower_data_risk_to_low\030\003 \001(\010\032\251\001\n" + "\014TagCondition\022K\n" - + "\003tag\030\001 \001(\0132>.goog" - + "le.privacy.dlp.v2.DataProfileAction.TagResources.TagValue\022D\n" + + "\003tag\030\001 \001(\0132>.google.privacy.dlp." + + "v2.DataProfileAction.TagResources.TagValue\022D\n" + "\021sensitivity_score\030\002" + " \001(\0132\'.google.privacy.dlp.v2.SensitivityScoreH\000B\006\n" + "\004type\0320\n" @@ -2475,25 +2497,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032data_profile_resource_name\030\004 \001(\t\022\022\n\n" + "finding_id\030\005 \001(\t\022-\n" + "\ttimestamp\030\006 \001(\0132\032.google.protobuf.Timestamp\022C\n" - + "\010location\030\007" - + " \001(\01321.google.privacy.dlp.v2.DataProfileFindingLocation\022F\n" - + "\023resource_visibility\030\010" - + " \001(\0162).google.privacy.dlp.v2.ResourceVisibility\022\032\n" + + "\010location\030\007 " + + "\001(\01321.google.privacy.dlp.v2.DataProfileFindingLocation\022F\n" + + "\023resource_visibility\030\010 " + + "\001(\0162).google.privacy.dlp.v2.ResourceVisibility\022\032\n" + "\022full_resource_name\030\t \001(\t\022?\n" + "\020data_source_type\030\n" + " \001(\0132%.google.privacy.dlp.v2.DataSourceType\"\267\001\n" + "\032DataProfileFindingLocation\022\026\n" + "\016container_name\030\001 \001(\t\022g\n" - + "$data_profile_finding_record_location\030\002" - + " \001(\01327.google.privacy.dlp.v2.DataProfileFindingRecordLocationH\000B\030\n" + + "$data_profile_finding_record_location\030\002 \001(\013" + + "27.google.privacy.dlp.v2.DataProfileFindingRecordLocationH\000B\030\n" + "\026location_extra_details\"Q\n" + " DataProfileFindingRecordLocation\022-\n" + "\005field\030\001 \001(\0132\036.google.privacy.dlp.v2.FieldId\"\256\002\n" + "\024DataProfileJobConfig\022<\n" + "\010location\030\001 \001(\0132*.google.privacy.dlp.v2.DataProfileLocation\022\022\n\n" + "project_id\030\005 \001(\t\022a\n" - + "\035other_cloud_starting_location\030\010" - + " \001(\0132:.google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation\022\031\n" + + "\035other_cloud_starting_location\030\010 \001(\0132:.goo" + + "gle.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation\022\031\n" + "\021inspect_templates\030\007 \003(\t\022F\n" + "\024data_profile_actions\030\006" + " \003(\0132(.google.privacy.dlp.v2.DataProfileAction\"[\n\r" @@ -2514,58 +2536,58 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\t\022\024\n" + "\014display_name\030\013 \001(\t\022D\n\n" + "org_config\030\002 \001(\01320.google.privacy.dlp.v2.DiscoveryConfig.OrgConfig\022a\n" - + "\035other_cloud_starting_location\030\014 \001(\0132:.go" - + "ogle.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation\022\031\n" + + "\035other_cloud_starting_location\030\014 \001(\0132:.google.privacy.dl" + + "p.v2.OtherCloudDiscoveryStartingLocation\022\031\n" + "\021inspect_templates\030\003 \003(\t\0229\n" + "\007actions\030\004 \003(\0132(.google.privacy.dlp.v2.DataProfileAction\0227\n" + "\007targets\030\005 \003(\0132&.google.privacy.dlp.v2.DiscoveryTarget\0221\n" + "\006errors\030\006 \003(\0132\034.google.privacy.dlp.v2.ErrorB\003\340A\003\0224\n" + "\013create_time\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" - + "\013update_time\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0226\n" - + "\r" + + "\013update_time\030\010" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0226\n\r" + "last_run_time\030\t \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022B\n" + "\006status\030\n" + " \001(\0162-.google.privacy.dlp.v2.DiscoveryConfig.StatusB\003\340A\002\022K\n" + "\023processing_location\030\r" + " \001(\0132).google.privacy.dlp.v2.ProcessingLocationB\003\340A\001\032c\n" + "\tOrgConfig\022B\n" - + "\010location\030\001 \001(\01320.google.p" - + "rivacy.dlp.v2.DiscoveryStartingLocation\022\022\n\n" + + "\010location\030\001" + + " \001(\01320.google.privacy.dlp.v2.DiscoveryStartingLocation\022\022\n\n" + "project_id\030\002 \001(\t\"9\n" + "\006Status\022\026\n" + "\022STATUS_UNSPECIFIED\020\000\022\013\n" + "\007RUNNING\020\001\022\n\n" + "\006PAUSED\020\002:t\352Aq\n" - + "\"dlp.googleapis.com/DiscoveryConfig\022" - + "Kprojects/{project}/locations/{location}/discoveryConfigs/{discovery_config}\"\366\003\n" + + "\"dlp.googleapis.com/DiscoveryConfig\022Kprojects/{proj" + + "ect}/locations/{location}/discoveryConfigs/{discovery_config}\"\366\003\n" + "\017DiscoveryTarget\022J\n" - + "\020big_query_target\030\001 \001" - + "(\0132..google.privacy.dlp.v2.BigQueryDiscoveryTargetH\000\022J\n" - + "\020cloud_sql_target\030\002 \001(\0132." - + ".google.privacy.dlp.v2.CloudSqlDiscoveryTargetH\000\022G\n" - + "\016secrets_target\030\003 \001(\0132-.googl" - + "e.privacy.dlp.v2.SecretsDiscoveryTargetH\000\022R\n" - + "\024cloud_storage_target\030\004 \001(\01322.google" - + ".privacy.dlp.v2.CloudStorageDiscoveryTargetH\000\022N\n" - + "\022other_cloud_target\030\005 \001(\01320.goog" - + "le.privacy.dlp.v2.OtherCloudDiscoveryTargetH\000\022T\n" - + "\025vertex_dataset_target\030\007 \001(\01323.g" - + "oogle.privacy.dlp.v2.VertexDatasetDiscoveryTargetH\000B\010\n" + + "\020big_query_target\030\001" + + " \001(\0132..google.privacy.dlp.v2.BigQueryDiscoveryTargetH\000\022J\n" + + "\020cloud_sql_target\030\002" + + " \001(\0132..google.privacy.dlp.v2.CloudSqlDiscoveryTargetH\000\022G\n" + + "\016secrets_target\030\003" + + " \001(\0132-.google.privacy.dlp.v2.SecretsDiscoveryTargetH\000\022R\n" + + "\024cloud_storage_target\030\004" + + " \001(\01322.google.privacy.dlp.v2.CloudStorageDiscoveryTargetH\000\022N\n" + + "\022other_cloud_target\030\005" + + " \001(\01320.google.privacy.dlp.v2.OtherCloudDiscoveryTargetH\000\022T\n" + + "\025vertex_dataset_target\030\007" + + " \001(\01323.google.privacy.dlp.v2.VertexDatasetDiscoveryTargetH\000B\010\n" + "\006target\"\256\002\n" + "\027BigQueryDiscoveryTarget\022C\n" - + "\006filter\030\001 \001(\0132..google.priva" - + "cy.dlp.v2.DiscoveryBigQueryFilterB\003\340A\002\022F\n\n" - + "conditions\030\002" - + " \001(\01322.google.privacy.dlp.v2.DiscoveryBigQueryConditions\022D\n" - + "\007cadence\030\003" - + " \001(\01321.google.privacy.dlp.v2.DiscoveryGenerationCadenceH\000\0223\n" + + "\006filter\030\001" + + " \001(\0132..google.privacy.dlp.v2.DiscoveryBigQueryFilterB\003\340A\002\022F\n\n" + + "conditions\030\002 " + + "\001(\01322.google.privacy.dlp.v2.DiscoveryBigQueryConditions\022D\n" + + "\007cadence\030\003 \001(\01321.googl" + + "e.privacy.dlp.v2.DiscoveryGenerationCadenceH\000\0223\n" + "\010disabled\030\004 \001(\0132\037.google.privacy.dlp.v2.DisabledH\000B\013\n" + "\tfrequency\"\240\002\n" + "\027DiscoveryBigQueryFilter\022@\n" - + "\006tables\030\001" - + " \001(\0132..google.privacy.dlp.v2.BigQueryTableCollectionH\000\022]\n" - + "\014other_tables\030\002 \001" - + "(\0132E.google.privacy.dlp.v2.DiscoveryBigQueryFilter.AllOtherBigQueryTablesH\000\022@\n" + + "\006tables\030\001 \001(\0132..go" + + "ogle.privacy.dlp.v2.BigQueryTableCollectionH\000\022]\n" + + "\014other_tables\030\002 \001(\0132E.google.pri" + + "vacy.dlp.v2.DiscoveryBigQueryFilter.AllOtherBigQueryTablesH\000\022@\n" + "\017table_reference\030\003" + " \001(\0132%.google.privacy.dlp.v2.TableReferenceH\000\032\030\n" + "\026AllOtherBigQueryTablesB\010\n" @@ -2577,47 +2599,47 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033DiscoveryBigQueryConditions\0221\n\r" + "created_after\030\001 \001(\0132\032.google.protobuf.Timestamp\022:\n" + "\005types\030\002 \001(\0132).google.privacy.dlp.v2.BigQueryTableTypesH\000\022M\n" - + "\017type_collection\030\003" - + " \001(\01622.google.privacy.dlp.v2.BigQueryTableTypeCollectionH\000\022V\n\r" - + "or_conditions\030\004" - + " \001(\0132?.google.privacy.dlp.v2.DiscoveryBigQueryConditions.OrConditions\032Q\n" + + "\017type_collection\030\003 \001(\01622.go" + + "ogle.privacy.dlp.v2.BigQueryTableTypeCollectionH\000\022V\n\r" + + "or_conditions\030\004 \001(\0132?.googl" + + "e.privacy.dlp.v2.DiscoveryBigQueryConditions.OrConditions\032Q\n" + "\014OrConditions\022\025\n\r" + "min_row_count\030\001 \001(\005\022*\n" + "\007min_age\030\002 \001(\0132\031.google.protobuf.DurationB\020\n" + "\016included_types\"\203\003\n" + "\032DiscoveryGenerationCadence\022V\n" - + "\027schema_modified_cadence\030\001 \001(\01325." - + "google.privacy.dlp.v2.DiscoverySchemaModifiedCadence\022T\n" - + "\026table_modified_cadence\030\002" - + " \001(\01324.google.privacy.dlp.v2.DiscoveryTableModifiedCadence\022i\n" - + "!inspect_template_modified_cadence\030\003 \001(\0132>.google.privacy.d" - + "lp.v2.DiscoveryInspectTemplateModifiedCadence\022L\n" - + "\021refresh_frequency\030\004 \001(\01621.googl" - + "e.privacy.dlp.v2.DataProfileUpdateFrequency\"\246\001\n" + + "\027schema_modified_cadence\030\001" + + " \001(\01325.google.privacy.dlp.v2.DiscoverySchemaModifiedCadence\022T\n" + + "\026table_modified_cadence\030\002 \001(\01324.google.p" + + "rivacy.dlp.v2.DiscoveryTableModifiedCadence\022i\n" + + "!inspect_template_modified_cadence\030\003" + + " \001(\0132>.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence\022L\n" + + "\021refresh_frequency\030\004" + + " \001(\01621.google.privacy.dlp.v2.DataProfileUpdateFrequency\"\246\001\n" + "\035DiscoveryTableModifiedCadence\022?\n" + "\005types\030\001 \003(\01620.google.privacy.dlp.v2.BigQueryTableModification\022D\n" - + "\tfrequency\030\002 \001(" - + "\01621.google.privacy.dlp.v2.DataProfileUpdateFrequency\"\250\001\n" + + "\tfrequency\030\002 \001(\01621.google.priv" + + "acy.dlp.v2.DataProfileUpdateFrequency\"\250\001\n" + "\036DiscoverySchemaModifiedCadence\022@\n" + "\005types\030\001 \003(\01621.google.privacy.dlp.v2.BigQuerySchemaModification\022D\n" + "\tfrequency\030\002 \001(\01621.google.privacy.dlp.v2.DataProfileUpdateFrequency\"o\n" + "\'DiscoveryInspectTemplateModifiedCadence\022D\n" - + "\tfrequency\030\001" - + " \001(\01621.google.privacy.dlp.v2.DataProfileUpdateFrequency\"\277\002\n" + + "\tfrequency\030\001 \001(\01621.google." + + "privacy.dlp.v2.DataProfileUpdateFrequency\"\277\002\n" + "\027CloudSqlDiscoveryTarget\022C\n" + "\006filter\030\001" + " \001(\0132..google.privacy.dlp.v2.DiscoveryCloudSqlFilterB\003\340A\002\022F\n\n" - + "conditions\030\002" - + " \001(\01322.google.privacy.dlp.v2.DiscoveryCloudSqlConditions\022W\n" - + "\022generation_cadence\030\003" - + " \001(\01329.google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadenceH\000\0223\n" + + "conditions\030\002 \001(\01322" + + ".google.privacy.dlp.v2.DiscoveryCloudSqlConditions\022W\n" + + "\022generation_cadence\030\003 \001(\01329" + + ".google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadenceH\000\0223\n" + "\010disabled\030\004 \001(\0132\037.google.privacy.dlp.v2.DisabledH\000B\t\n" + "\007cadence\"\211\002\n" + "\027DiscoveryCloudSqlFilter\022G\n\n" - + "collection\030\001 \001(\01321.google.priv" - + "acy.dlp.v2.DatabaseResourceCollectionH\000\022B\n" - + "\006others\030\002" - + " \001(\01320.google.privacy.dlp.v2.AllOtherDatabaseResourcesH\000\022W\n" + + "collection\030\001" + + " \001(\01321.google.privacy.dlp.v2.DatabaseResourceCollectionH\000\022B\n" + + "\006others\030\002 \001(\013" + + "20.google.privacy.dlp.v2.AllOtherDatabaseResourcesH\000\022W\n" + "\033database_resource_reference\030\003" + " \001(\01320.google.privacy.dlp.v2.DatabaseResourceReferenceH\000B\010\n" + "\006filter\"r\n" @@ -2626,8 +2648,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132..google.privacy.dlp.v2.DatabaseResourceRegexesH\000B\t\n" + "\007pattern\"Y\n" + "\027DatabaseResourceRegexes\022>\n" - + "\010patterns\030\001" - + " \003(\0132,.google.privacy.dlp.v2.DatabaseResourceRegex\"\207\001\n" + + "\010patterns\030\001 \003(\0132,.googl" + + "e.privacy.dlp.v2.DatabaseResourceRegex\"\207\001\n" + "\025DatabaseResourceRegex\022\030\n" + "\020project_id_regex\030\001 \001(\t\022\026\n" + "\016instance_regex\030\002 \001(\t\022\026\n" @@ -2640,10 +2662,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010database\030\003 \001(\tB\003\340A\002\022\036\n" + "\021database_resource\030\004 \001(\tB\003\340A\002\"\332\003\n" + "\033DiscoveryCloudSqlConditions\022`\n" - + "\020database_engines\030\001 \003(\0162A.google.privacy.dlp.v2.Disc" - + "overyCloudSqlConditions.DatabaseEngineB\003\340A\001\022V\n" - + "\005types\030\003 \003(\0162G.google.privacy.dlp." - + "v2.DiscoveryCloudSqlConditions.DatabaseResourceType\"n\n" + + "\020database_engines\030\001 \003(\0162A.g" + + "oogle.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseEngineB\003\340A\001\022V\n" + + "\005types\030\003 " + + "\003(\0162G.google.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseResourceType\"n\n" + "\016DatabaseEngine\022\037\n" + "\033DATABASE_ENGINE_UNSPECIFIED\020\000\022\"\n" + "\036ALL_SUPPORTED_DATABASE_ENGINES\020\001\022\t\n" @@ -2654,15 +2676,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "*DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES\020\001\022 \n" + "\034DATABASE_RESOURCE_TYPE_TABLE\020\002\"\227\005\n" + "\"DiscoveryCloudSqlGenerationCadence\022p\n" - + "\027schema_modified_cadence\030\001 \001(\0132O.google.privacy." - + "dlp.v2.DiscoveryCloudSqlGenerationCadence.SchemaModifiedCadence\022L\n" - + "\021refresh_frequency\030\002" - + " \001(\01621.google.privacy.dlp.v2.DataProfileUpdateFrequency\022i\n" - + "!inspect_template_modified_cadence\030\003 \001(\0132>.google.privac" - + "y.dlp.v2.DiscoveryInspectTemplateModifiedCadence\032\305\002\n" + + "\027schema_modified_cadence\030\001 \001(\0132O.google.privacy.dlp.v2.Discover" + + "yCloudSqlGenerationCadence.SchemaModifiedCadence\022L\n" + + "\021refresh_frequency\030\002 \001(\01621.go" + + "ogle.privacy.dlp.v2.DataProfileUpdateFrequency\022i\n" + + "!inspect_template_modified_cadence\030\003" + + " \001(\0132>.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence\032\305\002\n" + "\025SchemaModifiedCadence\022y\n" - + "\005types\030\001 \003(\0162j.google.privacy.dlp.v2.Discov" - + "eryCloudSqlGenerationCadence.SchemaModifiedCadence.CloudSqlSchemaModification\022D\n" + + "\005types\030\001 \003(\0162j.google.privacy.dlp.v2.DiscoveryCloudSqlGene" + + "rationCadence.SchemaModifiedCadence.CloudSqlSchemaModification\022D\n" + "\tfrequency\030\002 \001(\01621.google.privacy.dlp.v2.DataProfileUpdateFrequency\"k\n" + "\032CloudSqlSchemaModification\022\'\n" + "#SQL_SCHEMA_MODIFICATION_UNSPECIFIED\020\000\022\017\n" @@ -2670,33 +2692,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017REMOVED_COLUMNS\020\002\"\030\n" + "\026SecretsDiscoveryTarget\"\333\002\n" + "\033CloudStorageDiscoveryTarget\022G\n" - + "\006filter\030\001" - + " \001(\01322.google.privacy.dlp.v2.DiscoveryCloudStorageFilterB\003\340A\002\022L\n\n" - + "conditions\030\004" - + " \001(\01323.google.privacy.dlp.v2.DiscoveryFileStoreConditionsB\003\340A\001\022`\n" - + "\022generation_cadence\030\002 \001(\0132=.google.privacy.dlp.v2.Di" - + "scoveryCloudStorageGenerationCadenceB\003\340A\001H\000\0228\n" + + "\006filter\030\001 \001(\01322.go" + + "ogle.privacy.dlp.v2.DiscoveryCloudStorageFilterB\003\340A\002\022L\n\n" + + "conditions\030\004 \001(\01323.googl" + + "e.privacy.dlp.v2.DiscoveryFileStoreConditionsB\003\340A\001\022`\n" + + "\022generation_cadence\030\002 \001(\0132=" + + ".google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadenceB\003\340A\001H\000\0228\n" + "\010disabled\030\003 \001(\0132\037.google.privacy.dlp.v2.DisabledB\003\340A\001H\000B" + "\t\n" + "\007cadence\"\226\002\n" + "\033DiscoveryCloudStorageFilter\022E\n\n" - + "collection\030\001" - + " \001(\0132*.google.privacy.dlp.v2.FileStoreCollectionB\003\340A\001H\000\022e\n" - + " cloud_storage_resource_reference\030\002 \001(\01324.google.privacy.dlp.v" - + "2.CloudStorageResourceReferenceB\003\340A\001H\000\022?\n" - + "\006others\030d" - + " \001(\0132(.google.privacy.dlp.v2.AllOtherResourcesB\003\340A\001H\000B\010\n" + + "collection\030\001 \001(\0132*.google.p" + + "rivacy.dlp.v2.FileStoreCollectionB\003\340A\001H\000\022e\n" + + " cloud_storage_resource_reference\030\002 \001" + + "(\01324.google.privacy.dlp.v2.CloudStorageResourceReferenceB\003\340A\001H\000\022?\n" + + "\006others\030d \001(\0132" + + "(.google.privacy.dlp.v2.AllOtherResourcesB\003\340A\001H\000B\010\n" + "\006filter\"i\n" + "\023FileStoreCollection\022G\n" - + "\017include_regexes\030\001 \001(" - + "\0132\'.google.privacy.dlp.v2.FileStoreRegexesB\003\340A\001H\000B\t\n" + + "\017include_regexes\030\001" + + " \001(\0132\'.google.privacy.dlp.v2.FileStoreRegexesB\003\340A\001H\000B\t\n" + "\007pattern\"P\n" + "\020FileStoreRegexes\022<\n" - + "\010patterns\030\001" - + " \003(\0132%.google.privacy.dlp.v2.FileStoreRegexB\003\340A\002\"p\n" + + "\010patterns\030\001 " + + "\003(\0132%.google.privacy.dlp.v2.FileStoreRegexB\003\340A\002\"p\n" + "\016FileStoreRegex\022L\n" - + "\023cloud_storage_regex\030\001 \001(\0132(.google.p" - + "rivacy.dlp.v2.CloudStorageRegexB\003\340A\001H\000B\020\n" + + "\023cloud_storage_regex\030\001" + + " \001(\0132(.google.privacy.dlp.v2.CloudStorageRegexB\003\340A\001H\000B\020\n" + "\016resource_regex\"R\n" + "\021CloudStorageRegex\022\035\n" + "\020project_id_regex\030\001 \001(\tB\003\340A\001\022\036\n" @@ -2705,15 +2727,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013bucket_name\030\001 \001(\tB\003\340A\002\022\027\n\n" + "project_id\030\002 \001(\tB\003\340A\002\"\353\001\n" + "&DiscoveryCloudStorageGenerationCadence\022Q\n" - + "\021refresh_frequency\030\001" - + " \001(\01621.google.privacy.dlp.v2.DataProfileUpdateFrequencyB\003\340A\001\022n\n" - + "!inspect_template_modified_cadence\030\002 \001(\0132>.goog" - + "le.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadenceB\003\340A\001\"\233\005\n" + + "\021refresh_frequency\030\001 \001(\0162" + + "1.google.privacy.dlp.v2.DataProfileUpdateFrequencyB\003\340A\001\022n\n" + + "!inspect_template_modified_cadence\030\002 \001(\0132>.google.privacy.dlp." + + "v2.DiscoveryInspectTemplateModifiedCadenceB\003\340A\001\"\233\005\n" + "\037DiscoveryCloudStorageConditions\022{\n" - + "\032included_object_attributes\030\001 \003(\0162R.google.privacy.dlp.v2.D" - + "iscoveryCloudStorageConditions.CloudStorageObjectAttributeB\003\340A\002\022{\n" - + "\032included_bucket_attributes\030\002 \003(\0162R.google.privacy.dlp" - + ".v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttributeB\003\340A\002\"\343\001\n" + + "\032included_object_attributes\030\001 \003(\0162" + + "R.google.privacy.dlp.v2.DiscoveryCloudSt" + + "orageConditions.CloudStorageObjectAttributeB\003\340A\002\022{\n" + + "\032included_bucket_attributes\030\002 \003(\0162R.google.privacy.dlp.v2.DiscoveryCl" + + "oudStorageConditions.CloudStorageBucketAttributeB\003\340A\002\"\343\001\n" + "\033CloudStorageObjectAttribute\022.\n" + "*CLOUD_STORAGE_OBJECT_ATTRIBUTE_UNSPECIFIED\020\000\022\031\n" + "\025ALL_SUPPORTED_OBJECTS\020\001\022\014\n" @@ -2732,31 +2755,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\034DiscoveryFileStoreConditions\0226\n\r" + "created_after\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\001\022/\n" + "\007min_age\030\002 \001(\0132\031.google.protobuf.DurationB\003\340A\001\022_\n" - + "\030cloud_storage_conditions\030\003 \001(\01326.google.privac" - + "y.dlp.v2.DiscoveryCloudStorageConditionsB\003\340A\001H\000B\014\n\n" + + "\030cloud_storage_conditions\030\003" + + " \001(\01326.google.privacy.dlp.v2.DiscoveryCloudStorageConditionsB\003\340A\001H\000B\014\n\n" + "conditions\"\222\003\n" + "\031OtherCloudDiscoveryTarget\022D\n" - + "\020data_source_type\030\001 \001(\0132%." - + "google.privacy.dlp.v2.DataSourceTypeB\003\340A\002\022E\n" - + "\006filter\030\002" - + " \001(\01320.google.privacy.dlp.v2.DiscoveryOtherCloudFilterB\003\340A\002\022M\n\n" - + "conditions\030\003" - + " \001(\01324.google.privacy.dlp.v2.DiscoveryOtherCloudConditionsB\003\340A\001\022Y\n" - + "\022generation_cadence\030\004 \001(\0132;.google.privacy.dlp" - + ".v2.DiscoveryOtherCloudGenerationCadenceH\000\0223\n" + + "\020data_source_type\030\001" + + " \001(\0132%.google.privacy.dlp.v2.DataSourceTypeB\003\340A\002\022E\n" + + "\006filter\030\002 \001" + + "(\01320.google.privacy.dlp.v2.DiscoveryOtherCloudFilterB\003\340A\002\022M\n\n" + + "conditions\030\003 \001(\01324." + + "google.privacy.dlp.v2.DiscoveryOtherCloudConditionsB\003\340A\001\022Y\n" + + "\022generation_cadence\030\004" + + " \001(\0132;.google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadenceH\000\0223\n" + "\010disabled\030\005 \001(\0132\037.google.privacy.dlp.v2.DisabledH\000B\t\n" + "\007cadence\"\206\002\n" + "\031DiscoveryOtherCloudFilter\022I\n\n" - + "collection\030\001 \001(\01323.g" - + "oogle.privacy.dlp.v2.OtherCloudResourceCollectionH\000\022S\n" - + "\017single_resource\030\002 \001(\01328.g" - + "oogle.privacy.dlp.v2.OtherCloudSingleResourceReferenceH\000\022?\n" - + "\006others\030d \001(\0132(.googl" - + "e.privacy.dlp.v2.AllOtherResourcesB\003\340A\001H\000B\010\n" + + "collection\030\001" + + " \001(\01323.google.privacy.dlp.v2.OtherCloudResourceCollectionH\000\022S\n" + + "\017single_resource\030\002 \001(\01328.google.privacy.d" + + "lp.v2.OtherCloudSingleResourceReferenceH\000\022?\n" + + "\006others\030d" + + " \001(\0132(.google.privacy.dlp.v2.AllOtherResourcesB\003\340A\001H\000B\010\n" + "\006filter\"v\n" + "\034OtherCloudResourceCollection\022K\n" - + "\017include_regexes\030\001 \001(\01320.google.pr" - + "ivacy.dlp.v2.OtherCloudResourceRegexesH\000B\t\n" + + "\017include_regexes\030\001" + + " \001(\01320.google.privacy.dlp.v2.OtherCloudResourceRegexesH\000B\t\n" + "\007pattern\"]\n" + "\031OtherCloudResourceRegexes\022@\n" + "\010patterns\030\001 \003(\0132..google.privacy.dlp.v2.OtherCloudResourceRegex\"y\n" @@ -2773,8 +2796,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "!OtherCloudSingleResourceReference\022A\n" + "\020amazon_s3_bucket\030\001" + " \001(\0132%.google.privacy.dlp.v2.AmazonS3BucketH\000B\n\n" - + "\010resource\"%\n" - + "\n" + + "\010resource\"%\n\n" + "AwsAccount\022\027\n\n" + "account_id\030\001 \001(\tB\003\340A\002\"b\n" + "\016AmazonS3Bucket\0226\n" @@ -2782,14 +2804,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013bucket_name\030\002 \001(\tB\003\340A\002\"\261\001\n" + "\035DiscoveryOtherCloudConditions\022*\n" + "\007min_age\030\001 \001(\0132\031.google.protobuf.Duration\022V\n" - + "\033amazon_s3_bucket_conditions\030\002" - + " \001(\0132/.google.privacy.dlp.v2.AmazonS3BucketConditionsH\000B\014\n\n" + + "\033amazon_s3_bucket_conditions\030\002 \001(\0132/.g" + + "oogle.privacy.dlp.v2.AmazonS3BucketConditionsH\000B\014\n\n" + "conditions\"\331\003\n" + "\030AmazonS3BucketConditions\022U\n" - + "\014bucket_types\030\001" - + " \003(\0162:.google.privacy.dlp.v2.AmazonS3BucketConditions.BucketTypeB\003\340A\001\022g\n" - + "\026object_storage_classes\030\002 \003(\0162B.google.privac" - + "y.dlp.v2.AmazonS3BucketConditions.ObjectStorageClassB\003\340A\001\"T\n\n" + + "\014bucket_types\030\001 \003(\0162:.googl" + + "e.privacy.dlp.v2.AmazonS3BucketConditions.BucketTypeB\003\340A\001\022g\n" + + "\026object_storage_classes\030\002 \003(\0162B.google.privacy.dlp.v2.Amazon" + + "S3BucketConditions.ObjectStorageClassB\003\340A\001\"T\n\n" + "BucketType\022\024\n" + "\020TYPE_UNSPECIFIED\020\000\022\026\n" + "\022TYPE_ALL_SUPPORTED\020\001\022\030\n" @@ -2804,45 +2826,45 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "$DiscoveryOtherCloudGenerationCadence\022Q\n" + "\021refresh_frequency\030\001" + " \001(\01621.google.privacy.dlp.v2.DataProfileUpdateFrequencyB\003\340A\001\022n\n" - + "!inspect_template_modified_cadence\030\002 \001(\0132" - + ">.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadenceB\003\340A\001\"W\n" + + "!inspect_template_modified_cadence\030\002 \001(\0132>.google.privac" + + "y.dlp.v2.DiscoveryInspectTemplateModifiedCadenceB\003\340A\001\"W\n" + "\031DiscoveryStartingLocation\022\031\n" + "\017organization_id\030\001 \001(\003H\000\022\023\n" + "\tfolder_id\030\002 \001(\003H\000B\n\n" + "\010location\"\207\002\n" + "#OtherCloudDiscoveryStartingLocation\022o\n" - + "\014aws_location\030\001 \001(\0132W.google.privacy.dlp" - + ".v2.OtherCloudDiscoveryStartingLocation.AwsDiscoveryStartingLocationH\000\032c\n" + + "\014aws_location\030\001 \001(\0132W.google.privacy.dlp.v2.OtherCloudD" + + "iscoveryStartingLocation.AwsDiscoveryStartingLocationH\000\032c\n" + "\034AwsDiscoveryStartingLocation\022\024\n\n" + "account_id\030\002 \001(\tH\000\022$\n" + "\032all_asset_inventory_assets\030\003 \001(\010H\000B\007\n" + "\005scopeB\n\n" + "\010location\"\023\n" + "\021AllOtherResources\"\323\002\n" - + "\034VertexDatasetDiscoveryTarget\022H\n" - + "\006filter\030\001" - + " \001(\01323.google.privacy.dlp.v2.DiscoveryVertexDatasetFilterB\003\340A\002\022K\n\n" - + "conditions\030\002" - + " \001(\01327.google.privacy.dlp.v2.DiscoveryVertexDatasetConditions\022\\\n" - + "\022generation_cadence\030\003 \001(\0132>.google.privacy.dlp.v2" - + ".DiscoveryVertexDatasetGenerationCadenceH\000\0223\n" - + "\010disabled\030\004 \001(\0132\037.google.privacy.dl", - "p.v2.DisabledH\000B\t\n" + + "\034Vertex", + "DatasetDiscoveryTarget\022H\n" + + "\006filter\030\001 \001(\01323" + + ".google.privacy.dlp.v2.DiscoveryVertexDatasetFilterB\003\340A\002\022K\n\n" + + "conditions\030\002 \001(\01327.g" + + "oogle.privacy.dlp.v2.DiscoveryVertexDatasetConditions\022\\\n" + + "\022generation_cadence\030\003 \001(" + + "\0132>.google.privacy.dlp.v2.DiscoveryVertexDatasetGenerationCadenceH\000\0223\n" + + "\010disabled\030\004 \001(\0132\037.google.privacy.dlp.v2.DisabledH\000B\t\n" + "\007cadence\"\216\002\n" + "\034DiscoveryVertexDatasetFilter\022D\n\n" - + "collection\030\001 \001(\0132" - + "..google.privacy.dlp.v2.VertexDatasetCollectionH\000\022b\n" - + "!vertex_dataset_resource_reference\030\002" - + " \001(\01325.google.privacy.dlp.v2.VertexDatasetResourceReferenceH\000\022:\n" + + "collection\030\001" + + " \001(\0132..google.privacy.dlp.v2.VertexDatasetCollectionH\000\022b\n" + + "!vertex_dataset_resource_reference\030\002 \001(\01325." + + "google.privacy.dlp.v2.VertexDatasetResourceReferenceH\000\022:\n" + "\006others\030d \001(\0132(.google.privacy.dlp.v2.AllOtherResourcesH\000B\010\n" + "\006filter\"s\n" + "\027VertexDatasetCollection\022M\n" - + "\026vertex_dataset_regexes\030\001 \001(\0132+" - + ".google.privacy.dlp.v2.VertexDatasetRegexesH\000B\t\n" + + "\026vertex_dataset_regexes\030\001" + + " \001(\0132+.google.privacy.dlp.v2.VertexDatasetRegexesH\000B\t\n" + "\007pattern\"X\n" + "\024VertexDatasetRegexes\022@\n" - + "\010patterns\030\001" - + " \003(\0132).google.privacy.dlp.v2.VertexDatasetRegexB\003\340A\002\".\n" + + "\010patterns\030\001 " + + "\003(\0132).google.privacy.dlp.v2.VertexDatasetRegexB\003\340A\002\".\n" + "\022VertexDatasetRegex\022\030\n" + "\020project_id_regex\030\001 \001(\t\"D\n" + "\036VertexDatasetResourceReference\022\"\n" @@ -2851,18 +2873,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "created_after\030\001 \001(\0132\032.google.protobuf.Timestamp\022*\n" + "\007min_age\030\002 \001(\0132\031.google.protobuf.Duration\"\342\001\n" + "\'DiscoveryVertexDatasetGenerationCadence\022L\n" - + "\021refresh_frequency\030\001 \001(\01621.google.pri" - + "vacy.dlp.v2.DataProfileUpdateFrequency\022i\n" - + "!inspect_template_modified_cadence\030\002 \001(" - + "\0132>.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence\"\334\006\n" + + "\021refresh_frequency\030\001" + + " \001(\01621.google.privacy.dlp.v2.DataProfileUpdateFrequency\022i\n" + + "!inspect_template_modified_cadence\030\002 \001(\0132>.google.priv" + + "acy.dlp.v2.DiscoveryInspectTemplateModifiedCadence\"\334\006\n" + "\006DlpJob\022\014\n" + "\004name\030\001 \001(\t\022/\n" + "\004type\030\002 \001(\0162!.google.privacy.dlp.v2.DlpJobType\0225\n" + "\005state\030\003 \001(\0162&.google.privacy.dlp.v2.DlpJob.JobState\022K\n" - + "\014risk_details\030\004" - + " \001(\01323.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetailsH\000\022J\n" - + "\017inspect_details\030\005" - + " \001(\0132/.google.privacy.dlp.v2.InspectDataSourceDetailsH\000\022/\n" + + "\014risk_details\030\004 \001(" + + "\01323.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetailsH\000\022J\n" + + "\017inspect_details\030\005 \001(" + + "\0132/.google.privacy.dlp.v2.InspectDataSourceDetailsH\000\022/\n" + "\013create_time\030\006 \001(\0132\032.google.protobuf.Timestamp\022.\n\n" + "start_time\030\007 \001(\0132\032.google.protobuf.Timestamp\022,\n" + "\010end_time\030\010 \001(\0132\032.google.protobuf.Timestamp\0221\n\r" @@ -2879,8 +2901,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010CANCELED\020\004\022\n\n" + "\006FAILED\020\005\022\n\n" + "\006ACTIVE\020\006:\177\352A|\n" - + "\031dlp.googleapis.com/DlpJob\022$projects/{project}" - + "/dlpJobs/{dlp_job}\0229projects/{project}/locations/{location}/dlpJobs/{dlp_job}B\t\n" + + "\031dlp.googleapis.com/DlpJob\022$projects/{project}/dlpJobs/{dlp_j" + + "ob}\0229projects/{project}/locations/{location}/dlpJobs/{dlp_job}B\t\n" + "\007details\"C\n" + "\020GetDlpJobRequest\022/\n" + "\004name\030\001 \001(\tB!\340A\002\372A\033\n" @@ -2907,10 +2929,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB!\340A\002\372A\033\n" + "\031dlp.googleapis.com/DlpJob\"\327\001\n" + "\037CreateDeidentifyTemplateRequest\022=\n" - + "\006parent\030\001 \001(" - + "\tB-\340A\002\372A\'\022%dlp.googleapis.com/DeidentifyTemplate\022K\n" - + "\023deidentify_template\030\002" - + " \001(\0132).google.privacy.dlp.v2.DeidentifyTemplateB\003\340A\002\022\023\n" + + "\006parent\030\001 \001(\t" + + "B-\340A\002\372A\'\022%dlp.googleapis.com/DeidentifyTemplate\022K\n" + + "\023deidentify_template\030\002 \001(\0132).g" + + "oogle.privacy.dlp.v2.DeidentifyTemplateB\003\340A\002\022\023\n" + "\013template_id\030\003 \001(\t\022\023\n" + "\013location_id\030\004 \001(\t\"\327\001\n" + "\037UpdateDeidentifyTemplateRequest\022;\n" @@ -2930,8 +2952,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010order_by\030\004 \001(\t\022\023\n" + "\013location_id\030\005 \001(\t\"\203\001\n" + "\037ListDeidentifyTemplatesResponse\022G\n" - + "\024deidentify_templates\030\001" - + " \003(\0132).google.privacy.dlp.v2.DeidentifyTemplate\022\027\n" + + "\024deidentify_templates\030\001 \003(\0132" + + ").google.privacy.dlp.v2.DeidentifyTemplate\022\027\n" + "\017next_page_token\030\002 \001(\t\"^\n" + "\037DeleteDeidentifyTemplateRequest\022;\n" + "\004name\030\001 \001(\tB-\340A\002\372A\'\n" @@ -2940,23 +2962,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013output_path\030\001 \001(\0132\'.google.privacy.dlp.v2.CloudStoragePath\022L\n" + "\026cloud_storage_file_set\030\002" + " \001(\0132*.google.privacy.dlp.v2.CloudStorageFileSetH\000\022?\n" - + "\017big_query_field\030\003" - + " \001(\0132$.google.privacy.dlp.v2.BigQueryFieldH\000B\010\n" + + "\017big_query_field\030\003 \001(\013" + + "2$.google.privacy.dlp.v2.BigQueryFieldH\000B\010\n" + "\006source\"8\n" + "\032LargeCustomDictionaryStats\022\032\n" + "\022approx_num_phrases\030\001 \001(\003\"\246\002\n" + "\024StoredInfoTypeConfig\022\024\n" + "\014display_name\030\001 \001(\t\022\023\n" + "\013description\030\002 \001(\t\022U\n" - + "\027large_custom_dictionary\030\003 \001(\01322.google.privac" - + "y.dlp.v2.LargeCustomDictionaryConfigH\000\022F\n\n" - + "dictionary\030\004" - + " \001(\01320.google.privacy.dlp.v2.CustomInfoType.DictionaryH\000\022<\n" + + "\027large_custom_dictionary\030\003" + + " \001(\01322.google.privacy.dlp.v2.LargeCustomDictionaryConfigH\000\022F\n\n" + + "dictionary\030\004 " + + "\001(\01320.google.privacy.dlp.v2.CustomInfoType.DictionaryH\000\022<\n" + "\005regex\030\005 \001(\0132+.google.privacy.dlp.v2.CustomInfoType.RegexH\000B\006\n" + "\004type\"s\n" + "\023StoredInfoTypeStats\022T\n" - + "\027large_custom_dictionary\030\001 \001(\01321.g" - + "oogle.privacy.dlp.v2.LargeCustomDictionaryStatsH\000B\006\n" + + "\027large_custom_dictionary\030\001" + + " \001(\01321.google.privacy.dlp.v2.LargeCustomDictionaryStatsH\000B\006\n" + "\004type\"\251\002\n" + "\025StoredInfoTypeVersion\022;\n" + "\006config\030\001 \001(\0132+.google.privacy.dlp.v2.StoredInfoTypeConfig\022/\n" @@ -2966,20 +2988,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005stats\030\005 \001(\0132*.google.privacy.dlp.v2.StoredInfoTypeStats\"\361\003\n" + "\016StoredInfoType\022\014\n" + "\004name\030\001 \001(\t\022E\n" - + "\017current_version\030\002" - + " \001(\0132,.google.privacy.dlp.v2.StoredInfoTypeVersion\022F\n" - + "\020pending_versions\030\003" - + " \003(\0132,.google.privacy.dlp.v2.StoredInfoTypeVersion:\301\002\352A\275\002\n" - + "!dlp.googleapis.com/StoredInfoType\022?organizations/{organiza" - + "tion}/storedInfoTypes/{stored_info_type}\0225projects/{project}/storedInfoTypes/{st" - + "ored_info_type}\022Torganizations/{organization}/locations/{location}/storedInfoTyp" - + "es/{stored_info_type}\022Jprojects/{project" - + "}/locations/{location}/storedInfoTypes/{stored_info_type}\"\314\001\n" + + "\017current_version\030\002 \001(\013" + + "2,.google.privacy.dlp.v2.StoredInfoTypeVersion\022F\n" + + "\020pending_versions\030\003 \003(\0132,.googl" + + "e.privacy.dlp.v2.StoredInfoTypeVersion:\301\002\352A\275\002\n" + + "!dlp.googleapis.com/StoredInfoType\022?organizations/{organization}/storedInf" + + "oTypes/{stored_info_type}\0225projects/{project}/storedInfoTypes/{stored_info_type}" + + "\022Torganizations/{organization}/locations/{location}/storedInfoTypes/{stored_info" + + "_type}\022Jprojects/{project}/locations/{lo" + + "cation}/storedInfoTypes/{stored_info_type}\"\314\001\n" + "\033CreateStoredInfoTypeRequest\0229\n" + "\006parent\030\001 \001(" + "\tB)\340A\002\372A#\022!dlp.googleapis.com/StoredInfoType\022@\n" - + "\006config\030\002" - + " \001(\0132+.google.privacy.dlp.v2.StoredInfoTypeConfigB\003\340A\002\022\033\n" + + "\006config\030\002 \001(\0132+.google.p" + + "rivacy.dlp.v2.StoredInfoTypeConfigB\003\340A\002\022\033\n" + "\023stored_info_type_id\030\003 \001(\t\022\023\n" + "\013location_id\030\004 \001(\t\"\304\001\n" + "\033UpdateStoredInfoTypeRequest\0227\n" @@ -2991,15 +3013,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB)\340A\002\372A#\n" + "!dlp.googleapis.com/StoredInfoType\"\245\001\n" + "\032ListStoredInfoTypesRequest\0229\n" - + "\006parent\030\001 \001(\tB)\340A\002" - + "\372A#\022!dlp.googleapis.com/StoredInfoType\022\022\n\n" + + "\006parent\030\001 \001(" + + "\tB)\340A\002\372A#\022!dlp.googleapis.com/StoredInfoType\022\022\n\n" + "page_token\030\002 \001(\t\022\021\n" + "\tpage_size\030\003 \001(\005\022\020\n" + "\010order_by\030\004 \001(\t\022\023\n" + "\013location_id\030\005 \001(\t\"x\n" + "\033ListStoredInfoTypesResponse\022@\n" - + "\021stored_info_types\030\001" - + " \003(\0132%.google.privacy.dlp.v2.StoredInfoType\022\027\n" + + "\021stored_info_types\030\001 \003(\0132" + + "%.google.privacy.dlp.v2.StoredInfoType\022\027\n" + "\017next_page_token\030\002 \001(\t\"V\n" + "\033DeleteStoredInfoTypeRequest\0227\n" + "\004name\030\001 \001(\tB)\340A\002\372A#\n" @@ -3007,24 +3029,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036HybridInspectJobTriggerRequest\0223\n" + "\004name\030\001 \001(\tB%\340A\002\372A\037\n" + "\035dlp.googleapis.com/JobTrigger\022=\n" - + "\013hybrid_item\030\003 \001(\0132(.go" - + "ogle.privacy.dlp.v2.HybridContentItem\"\214\001\n" + + "\013hybrid_item\030\003" + + " \001(\0132(.google.privacy.dlp.v2.HybridContentItem\"\214\001\n" + "\032HybridInspectDlpJobRequest\022/\n" + "\004name\030\001 \001(\tB!\340A\002\372A\033\n" + "\031dlp.googleapis.com/DlpJob\022=\n" - + "\013hybrid_item\030\003" - + " \001(\0132(.google.privacy.dlp.v2.HybridContentItem\"\213\001\n" + + "\013hybrid_item\030\003 " + + "\001(\0132(.google.privacy.dlp.v2.HybridContentItem\"\213\001\n" + "\021HybridContentItem\0220\n" + "\004item\030\001 \001(\0132\".google.privacy.dlp.v2.ContentItem\022D\n" - + "\017finding_details\030\002 \001(\0132+." - + "google.privacy.dlp.v2.HybridFindingDetails\"\260\002\n" + + "\017finding_details\030\002" + + " \001(\0132+.google.privacy.dlp.v2.HybridFindingDetails\"\260\002\n" + "\024HybridFindingDetails\022;\n" + "\021container_details\030\001 \001(\0132 .google.privacy.dlp.v2.Container\022\023\n" + "\013file_offset\030\002 \001(\003\022\022\n\n" + "row_offset\030\003 \001(\003\022:\n\r" + "table_options\030\004 \001(\0132#.google.privacy.dlp.v2.TableOptions\022G\n" - + "\006labels\030\005" - + " \003(\01327.google.privacy.dlp.v2.HybridFindingDetails.LabelsEntry\032-\n" + + "\006labels\030\005 \003(\01327.google." + + "privacy.dlp.v2.HybridFindingDetails.LabelsEntry\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\027\n" @@ -3037,12 +3059,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010order_by\030\004 \001(\t\022\016\n" + "\006filter\030\005 \001(\t\"\204\001\n" + "\037ListProjectDataProfilesResponse\022H\n" - + "\025project_data_profiles\030\001" - + " \003(\0132).google.privacy.dlp.v2.ProjectDataProfile\022\027\n" + + "\025project_data_profiles\030\001 \003(\0132)." + + "google.privacy.dlp.v2.ProjectDataProfile\022\027\n" + "\017next_page_token\030\002 \001(\t\"\244\001\n" + "\034ListTableDataProfilesRequest\022;\n" - + "\006parent\030\001 \001(" - + "\tB+\340A\002\372A%\022#dlp.googleapis.com/TableDataProfile\022\022\n\n" + + "\006parent\030\001 \001(\tB+\340A\002\372" + + "A%\022#dlp.googleapis.com/TableDataProfile\022\022\n\n" + "page_token\030\002 \001(\t\022\021\n" + "\tpage_size\030\003 \001(\005\022\020\n" + "\010order_by\030\004 \001(\t\022\016\n" @@ -3061,11 +3083,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036ListColumnDataProfilesResponse\022F\n" + "\024column_data_profiles\030\001" + " \003(\0132(.google.privacy.dlp.v2.ColumnDataProfile\022\027\n" - + "\017next_page_token\030\002 \001(\t\"\313\001\n" - + "\r" + + "\017next_page_token\030\002 \001(\t\"\313\001\n\r" + "DataRiskLevel\022F\n" - + "\005score\030\001 \001(\01627.google.p" - + "rivacy.dlp.v2.DataRiskLevel.DataRiskLevelScore\"r\n" + + "\005score\030\001" + + " \001(\01627.google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore\"r\n" + "\022DataRiskLevelScore\022\032\n" + "\026RISK_SCORE_UNSPECIFIED\020\000\022\014\n" + "\010RISK_LOW\020\n" @@ -3084,19 +3105,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030table_data_profile_count\030\t \001(\003\022%\n" + "\035file_store_data_profile_count\030\n" + " \001(\003:\335\001\352A\331\001\n" - + "%dlp.googleapis.com/ProjectDataProfile\022\\organiz" - + "ations/{organization}/locations/{location}/projectDataProfiles/{project_data_pro" - + "file}\022Rprojects/{project}/locations/{loc" - + "ation}/projectDataProfiles/{project_data_profile}\"\311\002\n" + + "%dlp.googleapis.com/ProjectDataProfile\022\\organizations/{organiz" + + "ation}/locations/{location}/projectDataProfiles/{project_data_profile}\022Rprojects" + + "/{project}/locations/{location}/projectDataProfiles/{project_data_profile}\"\311\002\n" + "\031DataProfileConfigSnapshot\022<\n" + "\016inspect_config\030\002 \001(\0132$.google.privacy.dlp.v2.InspectConfig\022I\n" - + "\020data_profile_job\030\003" - + " \001(\0132+.google.privacy.dlp.v2.DataProfileJobConfigB\002\030\001\022@\n" - + "\020discovery_config\030\004 \001" - + "(\0132&.google.privacy.dlp.v2.DiscoveryConfig\022\035\n" + + "\020data_profile_job\030\003 \001(\0132+.googl" + + "e.privacy.dlp.v2.DataProfileJobConfigB\002\030\001\022@\n" + + "\020discovery_config\030\004" + + " \001(\0132&.google.privacy.dlp.v2.DiscoveryConfig\022\035\n" + "\025inspect_template_name\030\005 \001(\t\022B\n" + "\036inspect_template_modified_time\030\006" - + " \001(\0132\032.google.protobuf.Timestamp\"\343\r\n" + + " \001(\0132\032.google.protobuf.Timestamp\"\223\016\n" + "\020TableDataProfile\022\014\n" + "\004name\030\001 \001(\t\022?\n" + "\020data_source_type\030$ \001(\0132%.google.privacy.dlp.v2.DataSourceType\022\034\n" @@ -3108,15 +3128,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "full_resource\030\003 \001(\t\022<\n" + "\016profile_status\030\025 \001(\0132$.google.privacy.dlp.v2.ProfileStatus\022<\n" + "\005state\030\026 \001(\0162-.google.privacy.dlp.v2.TableDataProfile.State\022B\n" - + "\021sensitivity_score\030\005" - + " \001(\0132\'.google.privacy.dlp.v2.SensitivityScore\022=\n" + + "\021sensitivity_score\030\005 \001" + + "(\0132\'.google.privacy.dlp.v2.SensitivityScore\022=\n" + "\017data_risk_level\030\006 \001(\0132$.google.privacy.dlp.v2.DataRiskLevel\022D\n" + "\024predicted_info_types\030\033" + " \003(\0132&.google.privacy.dlp.v2.InfoTypeSummary\022E\n" - + "\020other_info_types\030\034" - + " \003(\0132+.google.privacy.dlp.v2.OtherInfoTypeSummary\022I\n" - + "\017config_snapshot\030\007" - + " \001(\01320.google.privacy.dlp.v2.DataProfileConfigSnapshot\0226\n" + + "\020other_info_types\030\034 \003" + + "(\0132+.google.privacy.dlp.v2.OtherInfoTypeSummary\022I\n" + + "\017config_snapshot\030\007 \001(\01320.googl" + + "e.privacy.dlp.v2.DataProfileConfigSnapshot\0226\n" + "\022last_modified_time\030\010 \001(\0132\032.google.protobuf.Timestamp\0223\n" + "\017expiration_time\030\t \001(\0132\032.google.protobuf.Timestamp\022\034\n" + "\024scanned_column_count\030\n" @@ -3125,17 +3145,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020table_size_bytes\030\014 \001(\003\022\021\n" + "\trow_count\030\r" + " \001(\003\022B\n" - + "\021encryption_status\030\016" - + " \001(\0162\'.google.privacy.dlp.v2.EncryptionStatus\022F\n" + + "\021encryption_status\030\016 \001" + + "(\0162\'.google.privacy.dlp.v2.EncryptionStatus\022F\n" + "\023resource_visibility\030\017" + " \001(\0162).google.privacy.dlp.v2.ResourceVisibility\022:\n" + "\026profile_last_generated\030\020 \001(\0132\032.google.protobuf.Timestamp\022T\n" - + "\017resource_labels\030\021" - + " \003(\0132;.google.privacy.dlp.v2.TableDataProfile.ResourceLabelsEntry\022/\n" + + "\017resource_labels\030\021 \003(\013" + + "2;.google.privacy.dlp.v2.TableDataProfile.ResourceLabelsEntry\022/\n" + "\013create_time\030\027 \001(\0132\032.google.protobuf.Timestamp\022C\n" + "\025sample_findings_table\030% \001(\0132$.google.privacy.dlp.v2.BigQueryTable\022(\n" + "\004tags\030\' \003(\0132\032.google.privacy.dlp.v2.Tag\022A\n" - + "\021related_resources\030) \003(\0132&.google.privacy.dlp.v2.RelatedResource\0325\n" + + "\021related_resources\030) \003(\0132&.google.privacy.dlp.v2.RelatedResource\022.\n" + + "\007domains\030/ \003(\0132\035.google.privacy.dlp.v2.Domain\0325\n" + "\023ResourceLabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"5\n" @@ -3143,9 +3164,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021STATE_UNSPECIFIED\020\000\022\013\n" + "\007RUNNING\020\001\022\010\n" + "\004DONE\020\002:\323\001\352A\317\001\n" - + "#dlp.googleapis.com/TableDataProfile\022Xorganizations/{organi" - + "zation}/locations/{location}/tableDataProfiles/{table_data_profile}\022Nprojects/{p" - + "roject}/locations/{location}/tableDataProfiles/{table_data_profile}\"b\n\r" + + "#dlp.googleapis.com/TableDataProfile\022Xorganizations/{organization}" + + "/locations/{location}/tableDataProfiles/{table_data_profile}\022Nprojects/{project}" + + "/locations/{location}/tableDataProfiles/{table_data_profile}\"b\n\r" + "ProfileStatus\022\"\n" + "\006status\030\001 \001(\0132\022.google.rpc.Status\022-\n" + "\ttimestamp\030\003 \001(\0132\032.google.protobuf.Timestamp\"g\n" @@ -3180,10 +3201,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0162+.google.privacy.dlp.v2.UniquenessScoreLevel\022\027\n" + "\017free_text_score\030\r" + " \001(\001\022L\n" - + "\013column_type\030\016 \001(\01627.google.pr" - + "ivacy.dlp.v2.ColumnDataProfile.ColumnDataType\022P\n" - + "\014policy_state\030\017 \001(\0162:.google.pri" - + "vacy.dlp.v2.ColumnDataProfile.ColumnPolicyState\"5\n" + + "\013column_type\030\016 \001(\01627.google.privacy.d" + + "lp.v2.ColumnDataProfile.ColumnDataType\022P\n" + + "\014policy_state\030\017 \001(\0162:.google.privacy.dl" + + "p.v2.ColumnDataProfile.ColumnPolicyState\"5\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\013\n" + "\007RUNNING\020\001\022\010\n" @@ -3205,8 +3226,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013TYPE_RECORD\020\014\022\023\n" + "\017TYPE_BIGNUMERIC\020\r" + "\022\r\n" - + "\tTYPE_JSON\020\016\022\021\n" - + "\r" + + "\tTYPE_JSON\020\016\022\021\n\r" + "TYPE_INTERVAL\020\017\022\023\n" + "\017TYPE_RANGE_DATE\020\020\022\027\n" + "\023TYPE_RANGE_DATETIME\020\021\022\030\n" @@ -3214,9 +3234,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021ColumnPolicyState\022#\n" + "\037COLUMN_POLICY_STATE_UNSPECIFIED\020\000\022\030\n" + "\024COLUMN_POLICY_TAGGED\020\001:\330\001\352A\324\001\n" - + "$dlp.googleapis.com/ColumnDataProfile\022Zorganizations/{organi" - + "zation}/locations/{location}/columnDataProfiles/{column_data_profile}\022Pprojects/" - + "{project}/locations/{location}/columnDataProfiles/{column_data_profile}\"\270\016\n" + + "$dlp.googleapis.com/ColumnDataProfile\022Zorganizations/{organization}" + + "/locations/{location}/columnDataProfiles/{column_data_profile}\022Pprojects/{projec" + + "t}/locations/{location}/columnDataProfiles/{column_data_profile}\"\350\016\n" + "\024FileStoreDataProfile\022\014\n" + "\004name\030\001 \001(\t\022?\n" + "\020data_source_type\030\002" @@ -3234,27 +3254,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005state\030\t \001(\01621.google.privacy.dlp.v2.FileStoreDataProfile.State\022:\n" + "\026profile_last_generated\030\n" + " \001(\0132\032.google.protobuf.Timestamp\022F\n" - + "\023resource_visibility\030\013" - + " \001(\0162).google.privacy.dlp.v2.ResourceVisibility\022B\n" - + "\021sensitivity_score\030\014 \001(\0132" - + "\'.google.privacy.dlp.v2.SensitivityScore\022=\n" + + "\023resource_visibility\030\013 \001" + + "(\0162).google.privacy.dlp.v2.ResourceVisibility\022B\n" + + "\021sensitivity_score\030\014" + + " \001(\0132\'.google.privacy.dlp.v2.SensitivityScore\022=\n" + "\017data_risk_level\030\r" + " \001(\0132$.google.privacy.dlp.v2.DataRiskLevel\022/\n" + "\013create_time\030\016 \001(\0132\032.google.protobuf.Timestamp\0226\n" + "\022last_modified_time\030\017 \001(\0132\032.google.protobuf.Timestamp\022I\n" - + "\026file_cluster_summaries\030\020 \003(\013" - + "2).google.privacy.dlp.v2.FileClusterSummary\022`\n" - + "\023resource_attributes\030\021 \003(\0132C.googl" - + "e.privacy.dlp.v2.FileStoreDataProfile.ResourceAttributesEntry\022X\n" - + "\017resource_labels\030\022" - + " \003(\0132?.google.privacy.dlp.v2.FileStoreDataProfile.ResourceLabelsEntry\022W\n" - + "\036file_store_info_type_summaries\030\025 \003(\0132/.google" - + ".privacy.dlp.v2.FileStoreInfoTypeSummary\022C\n" + + "\026file_cluster_summaries\030\020" + + " \003(\0132).google.privacy.dlp.v2.FileClusterSummary\022`\n" + + "\023resource_attributes\030\021 \003(\0132C.google.priva" + + "cy.dlp.v2.FileStoreDataProfile.ResourceAttributesEntry\022X\n" + + "\017resource_labels\030\022 \003(\0132" + + "?.google.privacy.dlp.v2.FileStoreDataProfile.ResourceLabelsEntry\022W\n" + + "\036file_store_info_type_summaries\030\025" + + " \003(\0132/.google.privacy.dlp.v2.FileStoreInfoTypeSummary\022C\n" + "\025sample_findings_table\030\026" + " \001(\0132$.google.privacy.dlp.v2.BigQueryTable\022\033\n" + "\023file_store_is_empty\030\027 \001(\010\022(\n" + "\004tags\030\031 \003(\0132\032.google.privacy.dlp.v2.Tag\022A\n" - + "\021related_resources\030\032 \003(\0132&.google.privacy.dlp.v2.RelatedResource\032W\n" + + "\021related_resources\030\032 \003(\0132&.google.privacy.dlp.v2.RelatedResource\022.\n" + + "\007domains\030\033 \003(\0132\035.google.privacy.dlp.v2.Domain\032W\n" + "\027ResourceAttributesEntry\022\013\n" + "\003key\030\001 \001(\t\022+\n" + "\005value\030\002 \001(\0132\034.google.privacy.dlp.v2.Value:\0028\001\0325\n" @@ -3265,10 +3286,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021STATE_UNSPECIFIED\020\000\022\013\n" + "\007RUNNING\020\001\022\010\n" + "\004DONE\020\002:\351\001\352A\345\001\n" - + "\'dlp.googleapis.com/FileStoreDataProfile\022aorganizations/{organizat" - + "ion}/locations/{location}/fileStoreDataProfiles/{file_store_data_profile}\022Wproje" - + "cts/{project}/locations/{location}/fileS" - + "toreDataProfiles/{file_store_data_profile}\"?\n" + + "\'dlp.googleapis.com/FileStoreDataProfile\022aorganizations/{organiza" + + "tion}/locations/{location}/fileStoreDataProfiles/{file_store_data_profile}\022Wproj" + + "ects/{project}/locations/{location}/file" + + "StoreDataProfiles/{file_store_data_profile}\"?\n" + "\003Tag\022\034\n" + "\024namespaced_tag_value\030\001 \001(\t\022\013\n" + "\003key\030\002 \001(\t\022\r\n" @@ -3283,8 +3304,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021file_cluster_type\030\001 \001(\0132&.google.privacy.dlp.v2.FileClusterType\022W\n" + "\036file_store_info_type_summaries\030\002" + " \003(\0132/.google.privacy.dlp.v2.FileStoreInfoTypeSummary\022B\n" - + "\021sensitivity_score\030\003 \001(\013" - + "2\'.google.privacy.dlp.v2.SensitivityScore\022=\n" + + "\021sensitivity_score\030\003 \001(" + + "\0132\'.google.privacy.dlp.v2.SensitivityScore\022=\n" + "\017data_risk_level\030\004 \001(\0132$.google.privacy.dlp.v2.DataRiskLevel\022,\n" + "\006errors\030\006 \003(\0132\034.google.privacy.dlp.v2.Error\022I\n" + "\027file_extensions_scanned\030\007" @@ -3309,7 +3330,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030file_store_data_profiles\030\001" + " \003(\0132+.google.privacy.dlp.v2.FileStoreDataProfile\022\027\n" + "\017next_page_token\030\002 \001(\t\"b\n" - + "!DeleteFileStoreDataProfileRequest\022=\n" + + "!DeleteFileStoreDataProfileReq", + "uest\022=\n" + "\004name\030\001 \001(\tB/\340A\002\372A)\n" + "\'dlp.googleapis.com/FileStoreDataProfile\"W\n" + "\032GetTableDataProfileRequest\0229\n" @@ -3319,20 +3341,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB,\340A\002\372A&\n" + "$dlp.googleapis.com/ColumnDataProfile\"\352\005\n" + "\032DataProfilePubSubCondition\022X\n" - + "\013expressions\030\001 \001(\0132C.google.privacy.dlp." - + "v2.DataProfilePubSubCondition.PubSubExpressions\032\351\001\n" + + "\013expressions\030\001 \001(\0132C.google.privacy.dlp" + + ".v2.DataProfilePubSubCondition.PubSubExpressions\032\351\001\n" + "\017PubSubCondition\022b\n" - + "\022minimum_r", - "isk_score\030\001 \001(\0162D.google.privacy.dlp.v2." - + "DataProfilePubSubCondition.ProfileScoreBucketH\000\022i\n" - + "\031minimum_sensitivity_score\030\002 \001" - + "(\0162D.google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucketH\000B\007\n" + + "\022minimum_risk_score\030\001 \001(\0162D.google.privacy.dlp.v2" + + ".DataProfilePubSubCondition.ProfileScoreBucketH\000\022i\n" + + "\031minimum_sensitivity_score\030\002 " + + "\001(\0162D.google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucketH\000B\007\n" + "\005value\032\253\002\n" + "\021PubSubExpressions\022s\n" - + "\020logical_operator\030\001 \001(\0162Y.google.privacy.dlp.v2.Data" - + "ProfilePubSubCondition.PubSubExpressions.PubSubLogicalOperator\022U\n\n" - + "conditions\030\002 \003" - + "(\0132A.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition\"J\n" + + "\020logical_operator\030\001 \001(\0162Y.google.privacy.dlp.v2.Dat" + + "aProfilePubSubCondition.PubSubExpressions.PubSubLogicalOperator\022U\n\n" + + "conditions\030\002 " + + "\003(\0132A.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition\"J\n" + "\025PubSubLogicalOperator\022 \n" + "\034LOGICAL_OPERATOR_UNSPECIFIED\020\000\022\006\n" + "\002OR\020\001\022\007\n" @@ -3361,8 +3382,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\"\227\001\n" + "\030SearchConnectionsRequest\0225\n" - + "\006parent\030\001 \001(\tB" - + "%\340A\002\372A\037\022\035dlp.googleapis.com/Connection\022\026\n" + + "\006parent\030\001 \001(\t" + + "B%\340A\002\372A\037\022\035dlp.googleapis.com/Connection\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" @@ -3387,9 +3408,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006errors\030\003 \003(\0132\034.google.privacy.dlp.v2.ErrorB\003\340A\003\022>\n" + "\tcloud_sql\030\004" + " \001(\0132).google.privacy.dlp.v2.CloudSqlPropertiesH\000:\261\001\352A\255\001\n" - + "\035dlp.googleapis.com/Connection\022@projects/{project}/locations/{" - + "location}/connections/{connection}\022Jorga" - + "nizations/{organization}/locations/{location}/connections/{connection}B\014\n\n" + + "\035dlp.googleapis.com/Connection\022@projects/{project}/locations/" + + "{location}/connections/{connection}\022Jorg" + + "anizations/{organization}/locations/{location}/connections/{connection}B\014\n\n" + "properties\"[\n" + "\027SecretManagerCredential\022\025\n" + "\010username\030\001 \001(\tB\003\340A\002\022)\n" @@ -3399,11 +3420,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017connection_name\030\001 \001(\tB\006\340A\005\340A\001\022K\n" + "\021username_password\030\002" + " \001(\0132..google.privacy.dlp.v2.SecretManagerCredentialH\000\022E\n\r" - + "cloud_sql_iam\030\003 \001(\0132," - + ".google.privacy.dlp.v2.CloudSqlIamCredentialH\000\022\034\n" + + "cloud_sql_iam\030\003 \001(\0132" + + ",.google.privacy.dlp.v2.CloudSqlIamCredentialH\000\022\034\n" + "\017max_connections\030\004 \001(\005B\003\340A\002\022V\n" - + "\017database_engine\030\007 \001(\01628.google.privacy.d" - + "lp.v2.CloudSqlProperties.DatabaseEngineB\003\340A\002\"f\n" + + "\017database_engine\030\007 \001(\01628.google.privacy." + + "dlp.v2.CloudSqlProperties.DatabaseEngineB\003\340A\002\"f\n" + "\016DatabaseEngine\022\033\n" + "\027DATABASE_ENGINE_UNKNOWN\020\000\022\031\n" + "\025DATABASE_ENGINE_MYSQL\020\001\022\034\n" @@ -3430,19 +3451,41 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022CLUSTER_EXECUTABLE\020\t\022\024\n" + "\020CLUSTER_AI_MODEL\020\n" + "B\023\n" - + "\021file_cluster_type\"\367\002\n" + + "\021file_cluster_type\"\266\005\n" + "\022ProcessingLocation\022`\n" + "\027image_fallback_location\030\001" - + " \001(\0132?.google.privacy.dlp.v2.ProcessingLocation.ImageFallbackLocation\032\027\n" + + " \001(\0132?.google.privacy.dlp.v2.ProcessingLocation.ImageFallbackLocation\022f\n" + + "\032document_fallback_location\030\002 \001(\0132B.google" + + ".privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation\032\027\n" + "\025MultiRegionProcessing\032\022\n" + "\020GlobalProcessing\032\321\001\n" + "\025ImageFallbackLocation\022`\n" + + "\027multi_region_processing\030d " + + "\001(\0132?.google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing\022V\n" + + "\021global_processing\030\310\001" + + " \001(\0132:.google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing\032\324\001\n" + + "\030DocumentFallbackLocation\022`\n" + "\027multi_region_processing\030d \001(\0132?.google.privacy.dlp." + "v2.ProcessingLocation.MultiRegionProcessing\022V\n" + "\021global_processing\030\310\001 \001(\0132:.google" + ".privacy.dlp.v2.ProcessingLocation.GlobalProcessing\"K\n" + "\027SaveToGcsFindingsOutput\0220\n" - + "\010findings\030\001 \003(\0132\036.google.privacy.dlp.v2.Finding*\240\001\n" + + "\010findings\030\001 \003(\0132\036.google.privacy.dlp.v2.Finding\"\267\002\n" + + "\006Domain\0228\n" + + "\010category\030\001 \001(\0162&.google.privacy.dlp.v2.Domain.Category\0225\n" + + "\007signals\030\002 \003(\0162$.google.privacy.dlp.v2.Domain.Signal\"6\n" + + "\010Category\022\030\n" + + "\024CATEGORY_UNSPECIFIED\020\000\022\006\n" + + "\002AI\020\001\022\010\n" + + "\004CODE\020\002\"\203\001\n" + + "\006Signal\022\026\n" + + "\022SIGNAL_UNSPECIFIED\020\000\022\t\n" + + "\005MODEL\020\001\022\022\n" + + "\016TEXT_EMBEDDING\020\002\022\021\n\r" + + "VERTEX_PLUGIN\020\003\022\021\n\r" + + "VECTOR_PLUGIN\020\004\022\017\n" + + "\013SOURCE_CODE\020\005\022\013\n" + + "\007SERVICE\020\006*\240\001\n" + "\036TransformationResultStatusType\022\032\n" + "\026STATE_TYPE_UNSPECIFIED\020\000\022\025\n" + "\021INVALID_TRANSFORM\020\001\022\"\n" @@ -3504,8 +3547,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014GREATER_THAN\020\003\022\r\n" + "\tLESS_THAN\020\004\022\032\n" + "\026GREATER_THAN_OR_EQUALS\020\005\022\027\n" - + "\023LESS_THAN_OR_EQUALS\020\006\022\n" - + "\n" + + "\023LESS_THAN_OR_EQUALS\020\006\022\n\n" + "\006EXISTS\020\007*\215\001\n" + "\014MatchingType\022\035\n" + "\031MATCHING_TYPE_UNSPECIFIED\020\000\022\034\n" @@ -3560,338 +3602,348 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tAVAILABLE\020\002\022\t\n" + "\005ERROR\020\0032\335v\n\n" + "DlpService\022\333\001\n" - + "\016InspectContent\022,.google.privacy.dlp.v2.InspectContent" - + "Request\032-.google.privacy.dlp.v2.InspectC" - + "ontentResponse\"l\202\323\344\223\002f\"\'/v2/{parent=proj" - + "ects/*}/content:inspect:\001*Z8\"3/v2/{paren" - + "t=projects/*/locations/*}/content:inspect:\001*\022\314\001\n" - + "\013RedactImage\022).google.privacy.dlp.v2.RedactImageRequest\032*.google.privacy" - + ".dlp.v2.RedactImageResponse\"f\202\323\344\223\002`\"$/v2" - + "/{parent=projects/*}/image:redact:\001*Z5\"0" - + "/v2/{parent=projects/*/locations/*}/image:redact:\001*\022\352\001\n" - + "\021DeidentifyContent\022/.google.privacy.dlp.v2.DeidentifyContentReque" - + "st\0320.google.privacy.dlp.v2.DeidentifyCon" - + "tentResponse\"r\202\323\344\223\002l\"*/v2/{parent=projec" - + "ts/*}/content:deidentify:\001*Z;\"6/v2/{pare" - + "nt=projects/*/locations/*}/content:deidentify:\001*\022\352\001\n" - + "\021ReidentifyContent\022/.google.privacy.dlp.v2.ReidentifyContentRequest\032" - + "0.google.privacy.dlp.v2.ReidentifyConten" - + "tResponse\"r\202\323\344\223\002l\"*/v2/{parent=projects/" - + "*}/content:reidentify:\001*Z;\"6/v2/{parent=" - + "projects/*/locations/*}/content:reidentify:\001*\022\231\002\n\r" - + "ListInfoTypes\022+.google.privacy.dlp.v2.ListInfoTypesRequest\032,.google.pr" - + "ivacy.dlp.v2.ListInfoTypesResponse\"\254\001\332A\006parent\202\323\344\223\002\234\001\022\r" - + "/v2/infoTypesZ$\022\"/v2/{parent=locations/*}/infoTypesZ/\022-/v2/{paren" - + "t=projects/*/locations/*}/infoTypesZ4\0222/" - + "v2/{parent=organizations/*/locations/*}/infoTypes\022\364\002\n" - + "\025CreateInspectTemplate\0223.google.privacy.dlp.v2.CreateInspectTemplat" - + "eRequest\032&.google.privacy.dlp.v2.Inspect" - + "Template\"\375\001\332A\027parent,inspect_template\202\323\344" - + "\223\002\334\001\"4/v2/{parent=projects/*/locations/*" - + "}/inspectTemplates:\001*Z>\"9/v2/{parent=organizations/*/locations/*}/inspectTemplat" - + "es:\001*Z-\"(/v2/{parent=projects/*}/inspect" - + "Templates:\001*Z2\"-/v2/{parent=organizations/*}/inspectTemplates:\001*\022\376\002\n" - + "\025UpdateInspectTemplate\0223.google.privacy.dlp.v2.Updat" - + "eInspectTemplateRequest\032&.google.privacy" - + ".dlp.v2.InspectTemplate\"\207\002\332A!name,inspec" - + "t_template,update_mask\202\323\344\223\002\334\00124/v2/{name" - + "=projects/*/locations/*/inspectTemplates/*}:\001*Z>29/v2/{name=organizations/*/loca" - + "tions/*/inspectTemplates/*}:\001*Z-2(/v2/{name=projects/*/inspectTemplates/*}:\001*Z22" - + "-/v2/{name=organizations/*/inspectTemplates/*}:\001*\022\317\002\n" - + "\022GetInspectTemplate\0220.google.privacy.dlp.v2.GetInspectTemplateReque" + + "\016InspectContent\022,.google.privacy.dlp.v2.InspectContentReques" + + "t\032-.google.privacy.dlp.v2.InspectContent" + + "Response\"l\202\323\344\223\002f\"\'/v2/{parent=projects/*" + + "}/content:inspect:\001*Z8\"3/v2/{parent=proj" + + "ects/*/locations/*}/content:inspect:\001*\022\314\001\n" + + "\013RedactImage\022).google.privacy.dlp.v2.R" + + "edactImageRequest\032*.google.privacy.dlp.v" + + "2.RedactImageResponse\"f\202\323\344\223\002`\"$/v2/{pare" + + "nt=projects/*}/image:redact:\001*Z5\"0/v2/{p" + + "arent=projects/*/locations/*}/image:redact:\001*\022\352\001\n" + + "\021DeidentifyContent\022/.google.privacy.dlp.v2.DeidentifyContentRequest\0320.g" + + "oogle.privacy.dlp.v2.DeidentifyContentRe" + + "sponse\"r\202\323\344\223\002l\"*/v2/{parent=projects/*}/" + + "content:deidentify:\001*Z;\"6/v2/{parent=pro" + + "jects/*/locations/*}/content:deidentify:\001*\022\352\001\n" + + "\021ReidentifyContent\022/.google.privacy.dlp.v2.ReidentifyContentRequest\0320.goog" + + "le.privacy.dlp.v2.ReidentifyContentRespo" + + "nse\"r\202\323\344\223\002l\"*/v2/{parent=projects/*}/con" + + "tent:reidentify:\001*Z;\"6/v2/{parent=projec" + + "ts/*/locations/*}/content:reidentify:\001*\022\231\002\n\r" + + "ListInfoTypes\022+.google.privacy.dlp.v2.ListInfoTypesRequest\032,.google.privacy." + + "dlp.v2.ListInfoTypesResponse\"\254\001\332A\006parent\202\323\344\223\002\234\001\022\r" + + "/v2/infoTypesZ$\022\"/v2/{parent=locations/*}/infoTypesZ/\022-/v2/{parent=proj" + + "ects/*/locations/*}/infoTypesZ4\0222/v2/{pa" + + "rent=organizations/*/locations/*}/infoTypes\022\364\002\n" + + "\025CreateInspectTemplate\0223.google.privacy.dlp.v2.CreateInspectTemplateReque" + "st\032&.google.privacy.dlp.v2.InspectTempla" - + "te\"\336\001\332A\004name\202\323\344\223\002\320\001\0224/v2/{name=projects/" - + "*/locations/*/inspectTemplates/*}Z;\0229/v2/{name=organizations/*/locations/*/inspe" - + "ctTemplates/*}Z*\022(/v2/{name=projects/*/i" - + "nspectTemplates/*}Z/\022-/v2/{name=organizations/*/inspectTemplates/*}\022\342\002\n" - + "\024ListInspectTemplates\0222.google.privacy.dlp.v2.Lis" - + "tInspectTemplatesRequest\0323.google.privac" - + "y.dlp.v2.ListInspectTemplatesResponse\"\340\001" - + "\332A\006parent\202\323\344\223\002\320\001\0224/v2/{parent=projects/*" - + "/locations/*}/inspectTemplatesZ;\0229/v2/{parent=organizations/*/locations/*}/inspe" - + "ctTemplatesZ*\022(/v2/{parent=projects/*}/i" - + "nspectTemplatesZ/\022-/v2/{parent=organizations/*}/inspectTemplates\022\305\002\n" - + "\025DeleteInspectTemplate\0223.google.privacy.dlp.v2.Delet" - + "eInspectTemplateRequest\032\026.google.protobu" - + "f.Empty\"\336\001\332A\004name\202\323\344\223\002\320\001*4/v2/{name=proj" - + "ects/*/locations/*/inspectTemplates/*}Z;*9/v2/{name=organizations/*/locations/*/" - + "inspectTemplates/*}Z**(/v2/{name=project" - + "s/*/inspectTemplates/*}Z/*-/v2/{name=organizations/*/inspectTemplates/*}\022\214\003\n" - + "\030CreateDeidentifyTemplate\0226.google.privacy.d" - + "lp.v2.CreateDeidentifyTemplateRequest\032).google.privacy.dlp.v2.DeidentifyTemplate" - + "\"\214\002\332A\032parent,deidentify_template\202\323\344\223\002\350\001\"" - + "0/v2/{parent=organizations/*}/deidentifyTemplates:\001*ZA\"\022\022*\"9/v2/{parent" - + "=organizations/*/locations/*}/discoveryConfigs:\001*\022\232\002\n" - + "\025UpdateDiscoveryConfig\0223.google.privacy.dlp.v2.UpdateDiscoveryConfi" - + "gRequest\032&.google.privacy.dlp.v2.Discove" - + "ryConfig\"\243\001\332A!name,discovery_config,upda" - + "te_mask\202\323\344\223\002y24/v2/{name=projects/*/loca" - + "tions/*/discoveryConfigs/*}:\001*Z>29/v2/{n" - + "ame=organizations/*/locations/*/discoveryConfigs/*}:\001*\022\361\001\n" - + "\022GetDiscoveryConfig\0220.google.privacy.dlp.v2.GetDiscoveryConfig" + + "te\"\375\001\332A\027parent,inspect_template\202\323\344\223\002\334\001\"4" + + "/v2/{parent=projects/*/locations/*}/inspectTemplates:\001*Z>\"9/v2/{parent=organizat" + + "ions/*/locations/*}/inspectTemplates:\001*Z-\"(/v2/{parent=projects/*}/inspectTempla" + + "tes:\001*Z2\"-/v2/{parent=organizations/*}/inspectTemplates:\001*\022\376\002\n" + + "\025UpdateInspectTemplate\0223.google.privacy.dlp.v2.UpdateInspe" + + "ctTemplateRequest\032&.google.privacy.dlp.v" + + "2.InspectTemplate\"\207\002\332A!name,inspect_temp" + + "late,update_mask\202\323\344\223\002\334\00124/v2/{name=proje" + + "cts/*/locations/*/inspectTemplates/*}:\001*Z>29/v2/{name=organizations/*/locations/" + + "*/inspectTemplates/*}:\001*Z-2(/v2/{name=projects/*/inspectTemplates/*}:\001*Z22-/v2/{" + + "name=organizations/*/inspectTemplates/*}:\001*\022\317\002\n" + + "\022GetInspectTemplate\0220.google.privacy.dlp.v2.GetInspectTemplateRequest\032&.g" + + "oogle.privacy.dlp.v2.InspectTemplate\"\336\001\332" + + "A\004name\202\323\344\223\002\320\001\0224/v2/{name=projects/*/loca" + + "tions/*/inspectTemplates/*}Z;\0229/v2/{name=organizations/*/locations/*/inspectTemp" + + "lates/*}Z*\022(/v2/{name=projects/*/inspect" + + "Templates/*}Z/\022-/v2/{name=organizations/*/inspectTemplates/*}\022\342\002\n" + + "\024ListInspectTemplates\0222.google.privacy.dlp.v2.ListInspe" + + "ctTemplatesRequest\0323.google.privacy.dlp." + + "v2.ListInspectTemplatesResponse\"\340\001\332A\006par" + + "ent\202\323\344\223\002\320\001\0224/v2/{parent=projects/*/locat" + + "ions/*}/inspectTemplatesZ;\0229/v2/{parent=organizations/*/locations/*}/inspectTemp" + + "latesZ*\022(/v2/{parent=projects/*}/inspect" + + "TemplatesZ/\022-/v2/{parent=organizations/*}/inspectTemplates\022\305\002\n" + + "\025DeleteInspectTemplate\0223.google.privacy.dlp.v2.DeleteInspe" + + "ctTemplateRequest\032\026.google.protobuf.Empt" + + "y\"\336\001\332A\004name\202\323\344\223\002\320\001*4/v2/{name=projects/*" + + "/locations/*/inspectTemplates/*}Z;*9/v2/{name=organizations/*/locations/*/inspec" + + "tTemplates/*}Z**(/v2/{name=projects/*/in" + + "spectTemplates/*}Z/*-/v2/{name=organizations/*/inspectTemplates/*}\022\214\003\n" + + "\030CreateDeidentifyTemplate\0226.google.privacy.dlp.v2." + + "CreateDeidentifyTemplateRequest\032).google" + + ".privacy.dlp.v2.DeidentifyTemplate\"\214\002\332A\032" + + "parent,deidentify_template\202\323\344\223\002\350\001\"0/v2/{" + + "parent=organizations/*}/deidentifyTemplates:\001*ZA\"\022\022*\"9/v2/{parent=organ" + + "izations/*/locations/*}/discoveryConfigs:\001*\022\232\002\n" + + "\025UpdateDiscoveryConfig\0223.google.privacy.dlp.v2.UpdateDiscoveryConfigReque" + + "st\032&.google.privacy.dlp.v2.DiscoveryConf" + + "ig\"\243\001\332A!name,discovery_config,update_mas" + + "k\202\323\344\223\002y24/v2/{name=projects/*/locations/" + + "*/discoveryConfigs/*}:\001*Z>29/v2/{name=or" + + "ganizations/*/locations/*/discoveryConfigs/*}:\001*\022\361\001\n" + + "\022GetDiscoveryConfig\0220.google.privacy.dlp.v2.GetDiscoveryConfigReques" + + "t\032&.google.privacy.dlp.v2.DiscoveryConfi" + + "g\"\200\001\332A\004name\202\323\344\223\002s\0224/v2/{name=projects/*/" + + "locations/*/discoveryConfigs/*}Z;\0229/v2/{" + + "name=organizations/*/locations/*/discoveryConfigs/*}\022\204\002\n" + + "\024ListDiscoveryConfigs\0222.google.privacy.dlp.v2.ListDiscoveryConfi" + + "gsRequest\0323.google.privacy.dlp.v2.ListDi" + + "scoveryConfigsResponse\"\202\001\332A\006parent\202\323\344\223\002s" + + "\0224/v2/{parent=projects/*/locations/*}/di" + + "scoveryConfigsZ;\0229/v2/{parent=organizations/*/locations/*}/discoveryConfigs\022\347\001\n" + + "\025DeleteDiscoveryConfig\0223.google.privacy.d" + + "lp.v2.DeleteDiscoveryConfigRequest\032\026.goo" + + "gle.protobuf.Empty\"\200\001\332A\004name\202\323\344\223\002s*4/v2/" + + "{name=projects/*/locations/*/discoveryCo" + + "nfigs/*}Z;*9/v2/{name=organizations/*/locations/*/discoveryConfigs/*}\022\337\001\n" + + "\014CreateDlpJob\022*.google.privacy.dlp.v2.CreateDlp" + "JobRequest\032\035.google.privacy.dlp.v2.DlpJo" - + "b\"]\332A\004name\202\323\344\223\002P\022\037/v2/{name=projects/*/d" - + "lpJobs/*}Z-\022+/v2/{name=projects/*/locations/*/dlpJobs/*}\022\261\001\n" - + "\014DeleteDlpJob\022*.google.privacy.dlp.v2.DeleteDlpJobRequest\032\026." - + "google.protobuf.Empty\"]\332A\004name\202\323\344\223\002P*\037/v" - + "2/{name=projects/*/dlpJobs/*}Z-*+/v2/{name=projects/*/locations/*/dlpJobs/*}\022\276\001\n" - + "\014CancelDlpJob\022*.google.privacy.dlp.v2.Ca" - + "ncelDlpJobRequest\032\026.google.protobuf.Empt" - + "y\"j\202\323\344\223\002d\"&/v2/{name=projects/*/dlpJobs/" - + "*}:cancel:\001*Z7\"2/v2/{name=projects/*/locations/*/dlpJobs/*}:cancel:\001*\022\343\002\n" - + "\024CreateStoredInfoType\0222.google.privacy.dlp.v2.C" - + "reateStoredInfoTypeRequest\032%.google.privacy.dlp.v2.StoredInfoType\"\357\001\332A\r" - + "parent,config\202\323\344\223\002\330\001\",/v2/{parent=organizations/*" - + "}/storedInfoTypes:\001*Z=\"8/v2/{parent=organizations/*/locations/*}/storedInfoTypes" - + ":\001*Z,\"\'/v2/{parent=projects/*}/storedInf", - "oTypes:\001*Z8\"3/v2/{parent=projects/*/loca" - + "tions/*}/storedInfoTypes:\001*\022\355\002\n\024UpdateSt" - + "oredInfoType\0222.google.privacy.dlp.v2.Upd" - + "ateStoredInfoTypeRequest\032%.google.privac" - + "y.dlp.v2.StoredInfoType\"\371\001\332A\027name,config" - + ",update_mask\202\323\344\223\002\330\0012,/v2/{name=organizat" - + "ions/*/storedInfoTypes/*}:\001*Z=28/v2/{nam" - + "e=organizations/*/locations/*/storedInfo" - + "Types/*}:\001*Z,2\'/v2/{name=projects/*/stor" - + "edInfoTypes/*}:\001*Z823/v2/{name=projects/" - + "*/locations/*/storedInfoTypes/*}:\001*\022\310\002\n\021" - + "GetStoredInfoType\022/.google.privacy.dlp.v" - + "2.GetStoredInfoTypeRequest\032%.google.priv" - + "acy.dlp.v2.StoredInfoType\"\332\001\332A\004name\202\323\344\223\002" - + "\314\001\022,/v2/{name=organizations/*/storedInfo" - + "Types/*}Z:\0228/v2/{name=organizations/*/lo" - + "cations/*/storedInfoTypes/*}Z)\022\'/v2/{nam" - + "e=projects/*/storedInfoTypes/*}Z5\0223/v2/{" - + "name=projects/*/locations/*/storedInfoTy" - + "pes/*}\022\333\002\n\023ListStoredInfoTypes\0221.google." - + "privacy.dlp.v2.ListStoredInfoTypesReques" - + "t\0322.google.privacy.dlp.v2.ListStoredInfo" - + "TypesResponse\"\334\001\332A\006parent\202\323\344\223\002\314\001\022,/v2/{p" - + "arent=organizations/*}/storedInfoTypesZ:" - + "\0228/v2/{parent=organizations/*/locations/" - + "*}/storedInfoTypesZ)\022\'/v2/{parent=projec" - + "ts/*}/storedInfoTypesZ5\0223/v2/{parent=pro" - + "jects/*/locations/*}/storedInfoTypes\022\277\002\n" - + "\024DeleteStoredInfoType\0222.google.privacy.d" - + "lp.v2.DeleteStoredInfoTypeRequest\032\026.goog" - + "le.protobuf.Empty\"\332\001\332A\004name\202\323\344\223\002\314\001*,/v2/" - + "{name=organizations/*/storedInfoTypes/*}" - + "Z:*8/v2/{name=organizations/*/locations/" - + "*/storedInfoTypes/*}Z)*\'/v2/{name=projec" - + "ts/*/storedInfoTypes/*}Z5*3/v2/{name=pro" - + "jects/*/locations/*/storedInfoTypes/*}\022\223" - + "\002\n\027ListProjectDataProfiles\0225.google.priv" - + "acy.dlp.v2.ListProjectDataProfilesReques" - + "t\0326.google.privacy.dlp.v2.ListProjectDat" - + "aProfilesResponse\"\210\001\332A\006parent\202\323\344\223\002y\022/v2/{parent=organizations/*/locations/*" - + "}/fileStoreDataProfilesZ;\0229/v2/{parent=p" - + "rojects/*/locations/*}/fileStoreDataProf" - + "iles\022\212\002\n\027GetFileStoreDataProfile\0225.googl" - + "e.privacy.dlp.v2.GetFileStoreDataProfile" - + "Request\032+.google.privacy.dlp.v2.FileStor" - + "eDataProfile\"\212\001\332A\004name\202\323\344\223\002}\022>/v2/{name=" - + "organizations/*/locations/*/fileStoreDat" - + "aProfiles/*}Z;\0229/v2/{name=projects/*/loc" - + "ations/*/fileStoreDataProfiles/*}\022\373\001\n\032De" - + "leteFileStoreDataProfile\0228.google.privac" - + "y.dlp.v2.DeleteFileStoreDataProfileReque" - + "st\032\026.google.protobuf.Empty\"\212\001\332A\004name\202\323\344\223" - + "\002}*>/v2/{name=organizations/*/locations/" - + "*/fileStoreDataProfiles/*}Z;*9/v2/{name=" - + "projects/*/locations/*/fileStoreDataProf" - + "iles/*}\022\366\001\n\023GetTableDataProfile\0221.google" - + ".privacy.dlp.v2.GetTableDataProfileReque" - + "st\032\'.google.privacy.dlp.v2.TableDataProf" - + "ile\"\202\001\332A\004name\202\323\344\223\002u\022:/v2/{name=organizat" - + "ions/*/locations/*/tableDataProfiles/*}Z" - + "7\0225/v2/{name=projects/*/locations/*/tabl" - + "eDataProfiles/*}\022\373\001\n\024GetColumnDataProfil" - + "e\0222.google.privacy.dlp.v2.GetColumnDataP" - + "rofileRequest\032(.google.privacy.dlp.v2.Co" - + "lumnDataProfile\"\204\001\332A\004name\202\323\344\223\002w\022;/v2/{na" - + "me=organizations/*/locations/*/columnDat" - + "aProfiles/*}Z8\0226/v2/{name=projects/*/loc" - + "ations/*/columnDataProfiles/*}\022\353\001\n\026Delet" - + "eTableDataProfile\0224.google.privacy.dlp.v" - + "2.DeleteTableDataProfileRequest\032\026.google" - + ".protobuf.Empty\"\202\001\332A\004name\202\323\344\223\002u*:/v2/{na" - + "me=organizations/*/locations/*/tableData" - + "Profiles/*}Z7*5/v2/{name=projects/*/loca" - + "tions/*/tableDataProfiles/*}\022\303\001\n\023HybridI" - + "nspectDlpJob\0221.google.privacy.dlp.v2.Hyb" - + "ridInspectDlpJobRequest\032,.google.privacy" - + ".dlp.v2.HybridInspectResponse\"K\332A\004name\202\323" - + "\344\223\002>\"9/v2/{name=projects/*/locations/*/d" - + "lpJobs/*}:hybridInspect:\001*\022\221\001\n\014FinishDlp" - + "Job\022*.google.privacy.dlp.v2.FinishDlpJob" - + "Request\032\026.google.protobuf.Empty\"=\202\323\344\223\0027\"" - + "2/v2/{name=projects/*/locations/*/dlpJob" - + "s/*}:finish:\001*\022\362\001\n\020CreateConnection\022..go" - + "ogle.privacy.dlp.v2.CreateConnectionRequ" - + "est\032!.google.privacy.dlp.v2.Connection\"\212" - + "\001\332A\022parent, connection\202\323\344\223\002o\"//v2/{paren" - + "t=projects/*/locations/*}/connections:\001*" - + "Z9\"4/v2/{parent=organizations/*/location" - + "s/*}/connections:\001*\022\327\001\n\rGetConnection\022+." - + "google.privacy.dlp.v2.GetConnectionReque" - + "st\032!.google.privacy.dlp.v2.Connection\"v\332" - + "A\004name\202\323\344\223\002i\022//v2/{name=projects/*/locat" - + "ions/*/connections/*}Z6\0224/v2/{name=organ" - + "izations/*/locations/*/connections/*}\022\352\001" - + "\n\017ListConnections\022-.google.privacy.dlp.v" - + "2.ListConnectionsRequest\032..google.privac" - + "y.dlp.v2.ListConnectionsResponse\"x\332A\006par" - + "ent\202\323\344\223\002i\022//v2/{parent=projects/*/locati" - + "ons/*}/connectionsZ6\0224/v2/{parent=organi" - + "zations/*/locations/*}/connections\022\377\001\n\021S" - + "earchConnections\022/.google.privacy.dlp.v2" - + ".SearchConnectionsRequest\0320.google.priva" - + "cy.dlp.v2.SearchConnectionsResponse\"\206\001\332A" - + "\006parent\202\323\344\223\002w\0226/v2/{parent=projects/*/lo" - + "cations/*}/connections:searchZ=\022;/v2/{pa" - + "rent=organizations/*/locations/*}/connec" - + "tions:search\022\322\001\n\020DeleteConnection\022..goog" - + "le.privacy.dlp.v2.DeleteConnectionReques" - + "t\032\026.google.protobuf.Empty\"v\332A\004name\202\323\344\223\002i" - + "*//v2/{name=projects/*/locations/*/conne" - + "ctions/*}Z6*4/v2/{name=organizations/*/l" - + "ocations/*/connections/*}\022\343\001\n\020UpdateConn" - + "ection\022..google.privacy.dlp.v2.UpdateCon" - + "nectionRequest\032!.google.privacy.dlp.v2.C" - + "onnection\"|\332A\004name\202\323\344\223\002o2//v2/{name=proj" - + "ects/*/locations/*/connections/*}:\001*Z924" - + "/v2/{name=organizations/*/locations/*/co" - + "nnections/*}:\001*\032F\312A\022dlp.googleapis.com\322A" - + ".https://www.googleapis.com/auth/cloud-p" - + "latformB\353\002\n\031com.google.privacy.dlp.v2B\010D" - + "lpProtoP\001Z)cloud.google.com/go/dlp/apiv2" - + "/dlppb;dlppb\252\002\023Google.Cloud.Dlp.V2\312\002\023Goo" - + "gle\\Cloud\\Dlp\\V2\352\002\026Google::Cloud::Dlp::V" - + "2\352Ar\n\035dlp.googleapis.com/DlpContent\022\035pro" - + "jects/{project}/dlpContent\0222projects/{pr" - + "oject}/locations/{location}/dlpContent\352A" - + "\\\n\'dlp.googleapis.com/OrganizationLocati" - + "on\0221organizations/{organization}/locatio" - + "ns/{location}b\006proto3" + + "b\"\203\001\332A\022parent,inspect_job\332A\017parent,risk_" + + "job\202\323\344\223\002V\"\037/v2/{parent=projects/*}/dlpJo" + + "bs:\001*Z0\"+/v2/{parent=projects/*/locations/*}/dlpJobs:\001*\022\373\001\n" + + "\013ListDlpJobs\022).google.privacy.dlp.v2.ListDlpJobsRequest\032*.goo", + "gle.privacy.dlp.v2.ListDlpJobsResponse\"\224" + + "\001\332A\006parent\202\323\344\223\002\204\001\022\037/v2/{parent=projects/" + + "*}/dlpJobsZ-\022+/v2/{parent=projects/*/loc" + + "ations/*}/dlpJobsZ2\0220/v2/{parent=organiz" + + "ations/*/locations/*}/dlpJobs\022\262\001\n\tGetDlp" + + "Job\022\'.google.privacy.dlp.v2.GetDlpJobReq" + + "uest\032\035.google.privacy.dlp.v2.DlpJob\"]\332A\004" + + "name\202\323\344\223\002P\022\037/v2/{name=projects/*/dlpJobs" + + "/*}Z-\022+/v2/{name=projects/*/locations/*/" + + "dlpJobs/*}\022\261\001\n\014DeleteDlpJob\022*.google.pri" + + "vacy.dlp.v2.DeleteDlpJobRequest\032\026.google" + + ".protobuf.Empty\"]\332A\004name\202\323\344\223\002P*\037/v2/{nam" + + "e=projects/*/dlpJobs/*}Z-*+/v2/{name=pro" + + "jects/*/locations/*/dlpJobs/*}\022\276\001\n\014Cance" + + "lDlpJob\022*.google.privacy.dlp.v2.CancelDl" + + "pJobRequest\032\026.google.protobuf.Empty\"j\202\323\344" + + "\223\002d\"&/v2/{name=projects/*/dlpJobs/*}:can" + + "cel:\001*Z7\"2/v2/{name=projects/*/locations" + + "/*/dlpJobs/*}:cancel:\001*\022\343\002\n\024CreateStored" + + "InfoType\0222.google.privacy.dlp.v2.CreateS" + + "toredInfoTypeRequest\032%.google.privacy.dl" + + "p.v2.StoredInfoType\"\357\001\332A\rparent,config\202\323" + + "\344\223\002\330\001\",/v2/{parent=organizations/*}/stor" + + "edInfoTypes:\001*Z=\"8/v2/{parent=organizati" + + "ons/*/locations/*}/storedInfoTypes:\001*Z,\"" + + "\'/v2/{parent=projects/*}/storedInfoTypes" + + ":\001*Z8\"3/v2/{parent=projects/*/locations/" + + "*}/storedInfoTypes:\001*\022\355\002\n\024UpdateStoredIn" + + "foType\0222.google.privacy.dlp.v2.UpdateSto" + + "redInfoTypeRequest\032%.google.privacy.dlp." + + "v2.StoredInfoType\"\371\001\332A\027name,config,updat" + + "e_mask\202\323\344\223\002\330\0012,/v2/{name=organizations/*" + + "/storedInfoTypes/*}:\001*Z=28/v2/{name=orga" + + "nizations/*/locations/*/storedInfoTypes/" + + "*}:\001*Z,2\'/v2/{name=projects/*/storedInfo" + + "Types/*}:\001*Z823/v2/{name=projects/*/loca" + + "tions/*/storedInfoTypes/*}:\001*\022\310\002\n\021GetSto" + + "redInfoType\022/.google.privacy.dlp.v2.GetS" + + "toredInfoTypeRequest\032%.google.privacy.dl" + + "p.v2.StoredInfoType\"\332\001\332A\004name\202\323\344\223\002\314\001\022,/v" + + "2/{name=organizations/*/storedInfoTypes/" + + "*}Z:\0228/v2/{name=organizations/*/location" + + "s/*/storedInfoTypes/*}Z)\022\'/v2/{name=proj" + + "ects/*/storedInfoTypes/*}Z5\0223/v2/{name=p" + + "rojects/*/locations/*/storedInfoTypes/*}" + + "\022\333\002\n\023ListStoredInfoTypes\0221.google.privac" + + "y.dlp.v2.ListStoredInfoTypesRequest\0322.go" + + "ogle.privacy.dlp.v2.ListStoredInfoTypesR" + + "esponse\"\334\001\332A\006parent\202\323\344\223\002\314\001\022,/v2/{parent=" + + "organizations/*}/storedInfoTypesZ:\0228/v2/" + + "{parent=organizations/*/locations/*}/sto" + + "redInfoTypesZ)\022\'/v2/{parent=projects/*}/" + + "storedInfoTypesZ5\0223/v2/{parent=projects/" + + "*/locations/*}/storedInfoTypes\022\277\002\n\024Delet" + + "eStoredInfoType\0222.google.privacy.dlp.v2." + + "DeleteStoredInfoTypeRequest\032\026.google.pro" + + "tobuf.Empty\"\332\001\332A\004name\202\323\344\223\002\314\001*,/v2/{name=" + + "organizations/*/storedInfoTypes/*}Z:*8/v" + + "2/{name=organizations/*/locations/*/stor" + + "edInfoTypes/*}Z)*\'/v2/{name=projects/*/s" + + "toredInfoTypes/*}Z5*3/v2/{name=projects/" + + "*/locations/*/storedInfoTypes/*}\022\223\002\n\027Lis" + + "tProjectDataProfiles\0225.google.privacy.dl" + + "p.v2.ListProjectDataProfilesRequest\0326.go" + + "ogle.privacy.dlp.v2.ListProjectDataProfi" + + "lesResponse\"\210\001\332A\006parent\202\323\344\223\002y\022/v2/{" + + "parent=organizations/*/locations/*}/file" + + "StoreDataProfilesZ;\0229/v2/{parent=project" + + "s/*/locations/*}/fileStoreDataProfiles\022\212" + + "\002\n\027GetFileStoreDataProfile\0225.google.priv" + + "acy.dlp.v2.GetFileStoreDataProfileReques" + + "t\032+.google.privacy.dlp.v2.FileStoreDataP" + + "rofile\"\212\001\332A\004name\202\323\344\223\002}\022>/v2/{name=organi" + + "zations/*/locations/*/fileStoreDataProfi" + + "les/*}Z;\0229/v2/{name=projects/*/locations" + + "/*/fileStoreDataProfiles/*}\022\373\001\n\032DeleteFi" + + "leStoreDataProfile\0228.google.privacy.dlp." + + "v2.DeleteFileStoreDataProfileRequest\032\026.g" + + "oogle.protobuf.Empty\"\212\001\332A\004name\202\323\344\223\002}*>/v" + + "2/{name=organizations/*/locations/*/file" + + "StoreDataProfiles/*}Z;*9/v2/{name=projec" + + "ts/*/locations/*/fileStoreDataProfiles/*" + + "}\022\366\001\n\023GetTableDataProfile\0221.google.priva" + + "cy.dlp.v2.GetTableDataProfileRequest\032\'.g" + + "oogle.privacy.dlp.v2.TableDataProfile\"\202\001" + + "\332A\004name\202\323\344\223\002u\022:/v2/{name=organizations/*" + + "/locations/*/tableDataProfiles/*}Z7\0225/v2" + + "/{name=projects/*/locations/*/tableDataP" + + "rofiles/*}\022\373\001\n\024GetColumnDataProfile\0222.go" + + "ogle.privacy.dlp.v2.GetColumnDataProfile" + + "Request\032(.google.privacy.dlp.v2.ColumnDa" + + "taProfile\"\204\001\332A\004name\202\323\344\223\002w\022;/v2/{name=org" + + "anizations/*/locations/*/columnDataProfi" + + "les/*}Z8\0226/v2/{name=projects/*/locations" + + "/*/columnDataProfiles/*}\022\353\001\n\026DeleteTable" + + "DataProfile\0224.google.privacy.dlp.v2.Dele" + + "teTableDataProfileRequest\032\026.google.proto" + + "buf.Empty\"\202\001\332A\004name\202\323\344\223\002u*:/v2/{name=org" + + "anizations/*/locations/*/tableDataProfil" + + "es/*}Z7*5/v2/{name=projects/*/locations/" + + "*/tableDataProfiles/*}\022\303\001\n\023HybridInspect" + + "DlpJob\0221.google.privacy.dlp.v2.HybridIns" + + "pectDlpJobRequest\032,.google.privacy.dlp.v" + + "2.HybridInspectResponse\"K\332A\004name\202\323\344\223\002>\"9" + + "/v2/{name=projects/*/locations/*/dlpJobs" + + "/*}:hybridInspect:\001*\022\221\001\n\014FinishDlpJob\022*." + + "google.privacy.dlp.v2.FinishDlpJobReques" + + "t\032\026.google.protobuf.Empty\"=\202\323\344\223\0027\"2/v2/{" + + "name=projects/*/locations/*/dlpJobs/*}:f" + + "inish:\001*\022\362\001\n\020CreateConnection\022..google.p" + + "rivacy.dlp.v2.CreateConnectionRequest\032!." + + "google.privacy.dlp.v2.Connection\"\212\001\332A\022pa" + + "rent, connection\202\323\344\223\002o\"//v2/{parent=proj" + + "ects/*/locations/*}/connections:\001*Z9\"4/v" + + "2/{parent=organizations/*/locations/*}/c" + + "onnections:\001*\022\327\001\n\rGetConnection\022+.google" + + ".privacy.dlp.v2.GetConnectionRequest\032!.g" + + "oogle.privacy.dlp.v2.Connection\"v\332A\004name" + + "\202\323\344\223\002i\022//v2/{name=projects/*/locations/*" + + "/connections/*}Z6\0224/v2/{name=organizatio" + + "ns/*/locations/*/connections/*}\022\352\001\n\017List" + + "Connections\022-.google.privacy.dlp.v2.List" + + "ConnectionsRequest\032..google.privacy.dlp." + + "v2.ListConnectionsResponse\"x\332A\006parent\202\323\344" + + "\223\002i\022//v2/{parent=projects/*/locations/*}" + + "/connectionsZ6\0224/v2/{parent=organization" + + "s/*/locations/*}/connections\022\377\001\n\021SearchC" + + "onnections\022/.google.privacy.dlp.v2.Searc" + + "hConnectionsRequest\0320.google.privacy.dlp" + + ".v2.SearchConnectionsResponse\"\206\001\332A\006paren" + + "t\202\323\344\223\002w\0226/v2/{parent=projects/*/location" + + "s/*}/connections:searchZ=\022;/v2/{parent=o" + + "rganizations/*/locations/*}/connections:" + + "search\022\322\001\n\020DeleteConnection\022..google.pri" + + "vacy.dlp.v2.DeleteConnectionRequest\032\026.go" + + "ogle.protobuf.Empty\"v\332A\004name\202\323\344\223\002i*//v2/" + + "{name=projects/*/locations/*/connections" + + "/*}Z6*4/v2/{name=organizations/*/locatio" + + "ns/*/connections/*}\022\343\001\n\020UpdateConnection" + + "\022..google.privacy.dlp.v2.UpdateConnectio" + + "nRequest\032!.google.privacy.dlp.v2.Connect" + + "ion\"|\332A\004name\202\323\344\223\002o2//v2/{name=projects/*" + + "/locations/*/connections/*}:\001*Z924/v2/{n" + + "ame=organizations/*/locations/*/connecti" + + "ons/*}:\001*\032F\312A\022dlp.googleapis.com\322A.https" + + "://www.googleapis.com/auth/cloud-platfor" + + "mB\353\002\n\031com.google.privacy.dlp.v2B\010DlpProt" + + "oP\001Z)cloud.google.com/go/dlp/apiv2/dlppb" + + ";dlppb\252\002\023Google.Cloud.Dlp.V2\312\002\023Google\\Cl" + + "oud\\Dlp\\V2\352\002\026Google::Cloud::Dlp::V2\352Ar\n\035" + + "dlp.googleapis.com/DlpContent\022\035projects/" + + "{project}/dlpContent\0222projects/{project}" + + "/locations/{location}/dlpContent\352A\\\n\'dlp" + + ".googleapis.com/OrganizationLocation\0221or" + + "ganizations/{organization}/locations/{lo" + + "cation}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -4353,8 +4405,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SnapshotStructuredDeidentifyTemplate", "SnapshotImageRedactTemplate", }); - internal_static_google_privacy_dlp_v2_InfoTypeDescription_descriptor = + internal_static_google_privacy_dlp_v2_LocationSupport_descriptor = getDescriptor().getMessageTypes().get(39); + internal_static_google_privacy_dlp_v2_LocationSupport_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_LocationSupport_descriptor, + new java.lang.String[] { + "RegionalizationScope", "Locations", + }); + internal_static_google_privacy_dlp_v2_InfoTypeDescription_descriptor = + getDescriptor().getMessageTypes().get(40); internal_static_google_privacy_dlp_v2_InfoTypeDescription_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_InfoTypeDescription_descriptor, @@ -4363,6 +4423,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisplayName", "SupportedBy", "Description", + "LocationSupport", "Example", "Versions", "Categories", @@ -4370,7 +4431,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SpecificInfoTypes", }); internal_static_google_privacy_dlp_v2_InfoTypeCategory_descriptor = - getDescriptor().getMessageTypes().get(40); + getDescriptor().getMessageTypes().get(41); internal_static_google_privacy_dlp_v2_InfoTypeCategory_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_InfoTypeCategory_descriptor, @@ -4378,7 +4439,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LocationCategory", "IndustryCategory", "TypeCategory", "Category", }); internal_static_google_privacy_dlp_v2_VersionDescription_descriptor = - getDescriptor().getMessageTypes().get(41); + getDescriptor().getMessageTypes().get(42); internal_static_google_privacy_dlp_v2_VersionDescription_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_VersionDescription_descriptor, @@ -4386,7 +4447,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Version", "Description", }); internal_static_google_privacy_dlp_v2_ListInfoTypesRequest_descriptor = - getDescriptor().getMessageTypes().get(42); + getDescriptor().getMessageTypes().get(43); internal_static_google_privacy_dlp_v2_ListInfoTypesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListInfoTypesRequest_descriptor, @@ -4394,7 +4455,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "LanguageCode", "Filter", "LocationId", }); internal_static_google_privacy_dlp_v2_ListInfoTypesResponse_descriptor = - getDescriptor().getMessageTypes().get(43); + getDescriptor().getMessageTypes().get(44); internal_static_google_privacy_dlp_v2_ListInfoTypesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListInfoTypesResponse_descriptor, @@ -4402,7 +4463,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InfoTypes", }); internal_static_google_privacy_dlp_v2_RiskAnalysisJobConfig_descriptor = - getDescriptor().getMessageTypes().get(44); + getDescriptor().getMessageTypes().get(45); internal_static_google_privacy_dlp_v2_RiskAnalysisJobConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_RiskAnalysisJobConfig_descriptor, @@ -4410,7 +4471,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PrivacyMetric", "SourceTable", "Actions", }); internal_static_google_privacy_dlp_v2_QuasiId_descriptor = - getDescriptor().getMessageTypes().get(45); + getDescriptor().getMessageTypes().get(46); internal_static_google_privacy_dlp_v2_QuasiId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_QuasiId_descriptor, @@ -4418,7 +4479,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Field", "InfoType", "CustomTag", "Inferred", "Tag", }); internal_static_google_privacy_dlp_v2_StatisticalTable_descriptor = - getDescriptor().getMessageTypes().get(46); + getDescriptor().getMessageTypes().get(47); internal_static_google_privacy_dlp_v2_StatisticalTable_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_StatisticalTable_descriptor, @@ -4434,7 +4495,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Field", "CustomTag", }); internal_static_google_privacy_dlp_v2_PrivacyMetric_descriptor = - getDescriptor().getMessageTypes().get(47); + getDescriptor().getMessageTypes().get(48); internal_static_google_privacy_dlp_v2_PrivacyMetric_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_PrivacyMetric_descriptor, @@ -4526,7 +4587,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "QuasiIds", "RegionCode", "AuxiliaryTables", }); internal_static_google_privacy_dlp_v2_AnalyzeDataSourceRiskDetails_descriptor = - getDescriptor().getMessageTypes().get(48); + getDescriptor().getMessageTypes().get(49); internal_static_google_privacy_dlp_v2_AnalyzeDataSourceRiskDetails_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_AnalyzeDataSourceRiskDetails_descriptor, @@ -4718,7 +4779,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "JobConfig", }); internal_static_google_privacy_dlp_v2_ValueFrequency_descriptor = - getDescriptor().getMessageTypes().get(49); + getDescriptor().getMessageTypes().get(50); internal_static_google_privacy_dlp_v2_ValueFrequency_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ValueFrequency_descriptor, @@ -4726,7 +4787,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Value", "Count", }); internal_static_google_privacy_dlp_v2_Value_descriptor = - getDescriptor().getMessageTypes().get(50); + getDescriptor().getMessageTypes().get(51); internal_static_google_privacy_dlp_v2_Value_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_Value_descriptor, @@ -4742,7 +4803,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Type", }); internal_static_google_privacy_dlp_v2_QuoteInfo_descriptor = - getDescriptor().getMessageTypes().get(51); + getDescriptor().getMessageTypes().get(52); internal_static_google_privacy_dlp_v2_QuoteInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_QuoteInfo_descriptor, @@ -4750,7 +4811,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DateTime", "ParsedQuote", }); internal_static_google_privacy_dlp_v2_DateTime_descriptor = - getDescriptor().getMessageTypes().get(52); + getDescriptor().getMessageTypes().get(53); internal_static_google_privacy_dlp_v2_DateTime_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DateTime_descriptor, @@ -4766,7 +4827,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OffsetMinutes", }); internal_static_google_privacy_dlp_v2_DeidentifyConfig_descriptor = - getDescriptor().getMessageTypes().get(53); + getDescriptor().getMessageTypes().get(54); internal_static_google_privacy_dlp_v2_DeidentifyConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DeidentifyConfig_descriptor, @@ -4778,7 +4839,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Transformation", }); internal_static_google_privacy_dlp_v2_ImageTransformations_descriptor = - getDescriptor().getMessageTypes().get(54); + getDescriptor().getMessageTypes().get(55); internal_static_google_privacy_dlp_v2_ImageTransformations_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ImageTransformations_descriptor, @@ -4822,7 +4883,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_privacy_dlp_v2_ImageTransformations_ImageTransformation_AllText_descriptor, new java.lang.String[] {}); internal_static_google_privacy_dlp_v2_TransformationErrorHandling_descriptor = - getDescriptor().getMessageTypes().get(55); + getDescriptor().getMessageTypes().get(56); internal_static_google_privacy_dlp_v2_TransformationErrorHandling_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_TransformationErrorHandling_descriptor, @@ -4846,7 +4907,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_privacy_dlp_v2_TransformationErrorHandling_LeaveUntransformed_descriptor, new java.lang.String[] {}); internal_static_google_privacy_dlp_v2_PrimitiveTransformation_descriptor = - getDescriptor().getMessageTypes().get(56); + getDescriptor().getMessageTypes().get(57); internal_static_google_privacy_dlp_v2_PrimitiveTransformation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_PrimitiveTransformation_descriptor, @@ -4866,7 +4927,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Transformation", }); internal_static_google_privacy_dlp_v2_TimePartConfig_descriptor = - getDescriptor().getMessageTypes().get(57); + getDescriptor().getMessageTypes().get(58); internal_static_google_privacy_dlp_v2_TimePartConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_TimePartConfig_descriptor, @@ -4874,7 +4935,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PartToExtract", }); internal_static_google_privacy_dlp_v2_CryptoHashConfig_descriptor = - getDescriptor().getMessageTypes().get(58); + getDescriptor().getMessageTypes().get(59); internal_static_google_privacy_dlp_v2_CryptoHashConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CryptoHashConfig_descriptor, @@ -4882,7 +4943,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CryptoKey", }); internal_static_google_privacy_dlp_v2_CryptoDeterministicConfig_descriptor = - getDescriptor().getMessageTypes().get(59); + getDescriptor().getMessageTypes().get(60); internal_static_google_privacy_dlp_v2_CryptoDeterministicConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CryptoDeterministicConfig_descriptor, @@ -4890,7 +4951,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CryptoKey", "SurrogateInfoType", "Context", }); internal_static_google_privacy_dlp_v2_ReplaceValueConfig_descriptor = - getDescriptor().getMessageTypes().get(60); + getDescriptor().getMessageTypes().get(61); internal_static_google_privacy_dlp_v2_ReplaceValueConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ReplaceValueConfig_descriptor, @@ -4898,7 +4959,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NewValue", }); internal_static_google_privacy_dlp_v2_ReplaceDictionaryConfig_descriptor = - getDescriptor().getMessageTypes().get(61); + getDescriptor().getMessageTypes().get(62); internal_static_google_privacy_dlp_v2_ReplaceDictionaryConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ReplaceDictionaryConfig_descriptor, @@ -4906,19 +4967,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "WordList", "Type", }); internal_static_google_privacy_dlp_v2_ReplaceWithInfoTypeConfig_descriptor = - getDescriptor().getMessageTypes().get(62); + getDescriptor().getMessageTypes().get(63); internal_static_google_privacy_dlp_v2_ReplaceWithInfoTypeConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ReplaceWithInfoTypeConfig_descriptor, new java.lang.String[] {}); internal_static_google_privacy_dlp_v2_RedactConfig_descriptor = - getDescriptor().getMessageTypes().get(63); + getDescriptor().getMessageTypes().get(64); internal_static_google_privacy_dlp_v2_RedactConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_RedactConfig_descriptor, new java.lang.String[] {}); internal_static_google_privacy_dlp_v2_CharsToIgnore_descriptor = - getDescriptor().getMessageTypes().get(64); + getDescriptor().getMessageTypes().get(65); internal_static_google_privacy_dlp_v2_CharsToIgnore_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CharsToIgnore_descriptor, @@ -4926,7 +4987,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CharactersToSkip", "CommonCharactersToIgnore", "Characters", }); internal_static_google_privacy_dlp_v2_CharacterMaskConfig_descriptor = - getDescriptor().getMessageTypes().get(65); + getDescriptor().getMessageTypes().get(66); internal_static_google_privacy_dlp_v2_CharacterMaskConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CharacterMaskConfig_descriptor, @@ -4934,7 +4995,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MaskingCharacter", "NumberToMask", "ReverseOrder", "CharactersToIgnore", }); internal_static_google_privacy_dlp_v2_FixedSizeBucketingConfig_descriptor = - getDescriptor().getMessageTypes().get(66); + getDescriptor().getMessageTypes().get(67); internal_static_google_privacy_dlp_v2_FixedSizeBucketingConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_FixedSizeBucketingConfig_descriptor, @@ -4942,7 +5003,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LowerBound", "UpperBound", "BucketSize", }); internal_static_google_privacy_dlp_v2_BucketingConfig_descriptor = - getDescriptor().getMessageTypes().get(67); + getDescriptor().getMessageTypes().get(68); internal_static_google_privacy_dlp_v2_BucketingConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_BucketingConfig_descriptor, @@ -4958,7 +5019,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Min", "Max", "ReplacementValue", }); internal_static_google_privacy_dlp_v2_CryptoReplaceFfxFpeConfig_descriptor = - getDescriptor().getMessageTypes().get(68); + getDescriptor().getMessageTypes().get(69); internal_static_google_privacy_dlp_v2_CryptoReplaceFfxFpeConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CryptoReplaceFfxFpeConfig_descriptor, @@ -4972,7 +5033,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Alphabet", }); internal_static_google_privacy_dlp_v2_CryptoKey_descriptor = - getDescriptor().getMessageTypes().get(69); + getDescriptor().getMessageTypes().get(70); internal_static_google_privacy_dlp_v2_CryptoKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CryptoKey_descriptor, @@ -4980,7 +5041,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Transient", "Unwrapped", "KmsWrapped", "Source", }); internal_static_google_privacy_dlp_v2_TransientCryptoKey_descriptor = - getDescriptor().getMessageTypes().get(70); + getDescriptor().getMessageTypes().get(71); internal_static_google_privacy_dlp_v2_TransientCryptoKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_TransientCryptoKey_descriptor, @@ -4988,7 +5049,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_UnwrappedCryptoKey_descriptor = - getDescriptor().getMessageTypes().get(71); + getDescriptor().getMessageTypes().get(72); internal_static_google_privacy_dlp_v2_UnwrappedCryptoKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_UnwrappedCryptoKey_descriptor, @@ -4996,7 +5057,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", }); internal_static_google_privacy_dlp_v2_KmsWrappedCryptoKey_descriptor = - getDescriptor().getMessageTypes().get(72); + getDescriptor().getMessageTypes().get(73); internal_static_google_privacy_dlp_v2_KmsWrappedCryptoKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_KmsWrappedCryptoKey_descriptor, @@ -5004,7 +5065,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "WrappedKey", "CryptoKeyName", }); internal_static_google_privacy_dlp_v2_DateShiftConfig_descriptor = - getDescriptor().getMessageTypes().get(73); + getDescriptor().getMessageTypes().get(74); internal_static_google_privacy_dlp_v2_DateShiftConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DateShiftConfig_descriptor, @@ -5012,7 +5073,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpperBoundDays", "LowerBoundDays", "Context", "CryptoKey", "Method", }); internal_static_google_privacy_dlp_v2_InfoTypeTransformations_descriptor = - getDescriptor().getMessageTypes().get(74); + getDescriptor().getMessageTypes().get(75); internal_static_google_privacy_dlp_v2_InfoTypeTransformations_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_InfoTypeTransformations_descriptor, @@ -5030,7 +5091,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InfoTypes", "PrimitiveTransformation", }); internal_static_google_privacy_dlp_v2_FieldTransformation_descriptor = - getDescriptor().getMessageTypes().get(75); + getDescriptor().getMessageTypes().get(76); internal_static_google_privacy_dlp_v2_FieldTransformation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_FieldTransformation_descriptor, @@ -5042,7 +5103,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Transformation", }); internal_static_google_privacy_dlp_v2_RecordTransformations_descriptor = - getDescriptor().getMessageTypes().get(76); + getDescriptor().getMessageTypes().get(77); internal_static_google_privacy_dlp_v2_RecordTransformations_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_RecordTransformations_descriptor, @@ -5050,7 +5111,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FieldTransformations", "RecordSuppressions", }); internal_static_google_privacy_dlp_v2_RecordSuppression_descriptor = - getDescriptor().getMessageTypes().get(77); + getDescriptor().getMessageTypes().get(78); internal_static_google_privacy_dlp_v2_RecordSuppression_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_RecordSuppression_descriptor, @@ -5058,7 +5119,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Condition", }); internal_static_google_privacy_dlp_v2_RecordCondition_descriptor = - getDescriptor().getMessageTypes().get(78); + getDescriptor().getMessageTypes().get(79); internal_static_google_privacy_dlp_v2_RecordCondition_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_RecordCondition_descriptor, @@ -5090,7 +5151,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LogicalOperator", "Conditions", "Type", }); internal_static_google_privacy_dlp_v2_TransformationOverview_descriptor = - getDescriptor().getMessageTypes().get(79); + getDescriptor().getMessageTypes().get(80); internal_static_google_privacy_dlp_v2_TransformationOverview_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_TransformationOverview_descriptor, @@ -5098,7 +5159,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TransformedBytes", "TransformationSummaries", }); internal_static_google_privacy_dlp_v2_TransformationSummary_descriptor = - getDescriptor().getMessageTypes().get(80); + getDescriptor().getMessageTypes().get(81); internal_static_google_privacy_dlp_v2_TransformationSummary_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_TransformationSummary_descriptor, @@ -5122,7 +5183,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Count", "Code", "Details", }); internal_static_google_privacy_dlp_v2_TransformationDescription_descriptor = - getDescriptor().getMessageTypes().get(81); + getDescriptor().getMessageTypes().get(82); internal_static_google_privacy_dlp_v2_TransformationDescription_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_TransformationDescription_descriptor, @@ -5130,7 +5191,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Type", "Description", "Condition", "InfoType", }); internal_static_google_privacy_dlp_v2_TransformationDetails_descriptor = - getDescriptor().getMessageTypes().get(82); + getDescriptor().getMessageTypes().get(83); internal_static_google_privacy_dlp_v2_TransformationDetails_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_TransformationDetails_descriptor, @@ -5143,7 +5204,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TransformationLocation", }); internal_static_google_privacy_dlp_v2_TransformationLocation_descriptor = - getDescriptor().getMessageTypes().get(83); + getDescriptor().getMessageTypes().get(84); internal_static_google_privacy_dlp_v2_TransformationLocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_TransformationLocation_descriptor, @@ -5151,7 +5212,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FindingId", "RecordTransformation", "ContainerType", "LocationType", }); internal_static_google_privacy_dlp_v2_RecordTransformation_descriptor = - getDescriptor().getMessageTypes().get(84); + getDescriptor().getMessageTypes().get(85); internal_static_google_privacy_dlp_v2_RecordTransformation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_RecordTransformation_descriptor, @@ -5159,7 +5220,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FieldId", "ContainerTimestamp", "ContainerVersion", }); internal_static_google_privacy_dlp_v2_TransformationResultStatus_descriptor = - getDescriptor().getMessageTypes().get(85); + getDescriptor().getMessageTypes().get(86); internal_static_google_privacy_dlp_v2_TransformationResultStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_TransformationResultStatus_descriptor, @@ -5167,7 +5228,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ResultStatusType", "Details", }); internal_static_google_privacy_dlp_v2_TransformationDetailsStorageConfig_descriptor = - getDescriptor().getMessageTypes().get(86); + getDescriptor().getMessageTypes().get(87); internal_static_google_privacy_dlp_v2_TransformationDetailsStorageConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_TransformationDetailsStorageConfig_descriptor, @@ -5175,7 +5236,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Table", "Type", }); internal_static_google_privacy_dlp_v2_Schedule_descriptor = - getDescriptor().getMessageTypes().get(87); + getDescriptor().getMessageTypes().get(88); internal_static_google_privacy_dlp_v2_Schedule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_Schedule_descriptor, @@ -5183,12 +5244,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RecurrencePeriodDuration", "Option", }); internal_static_google_privacy_dlp_v2_Manual_descriptor = - getDescriptor().getMessageTypes().get(88); + getDescriptor().getMessageTypes().get(89); internal_static_google_privacy_dlp_v2_Manual_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_Manual_descriptor, new java.lang.String[] {}); internal_static_google_privacy_dlp_v2_InspectTemplate_descriptor = - getDescriptor().getMessageTypes().get(89); + getDescriptor().getMessageTypes().get(90); internal_static_google_privacy_dlp_v2_InspectTemplate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_InspectTemplate_descriptor, @@ -5196,7 +5257,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "DisplayName", "Description", "CreateTime", "UpdateTime", "InspectConfig", }); internal_static_google_privacy_dlp_v2_DeidentifyTemplate_descriptor = - getDescriptor().getMessageTypes().get(90); + getDescriptor().getMessageTypes().get(91); internal_static_google_privacy_dlp_v2_DeidentifyTemplate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DeidentifyTemplate_descriptor, @@ -5204,7 +5265,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "DisplayName", "Description", "CreateTime", "UpdateTime", "DeidentifyConfig", }); internal_static_google_privacy_dlp_v2_Error_descriptor = - getDescriptor().getMessageTypes().get(91); + getDescriptor().getMessageTypes().get(92); internal_static_google_privacy_dlp_v2_Error_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_Error_descriptor, @@ -5212,7 +5273,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Details", "Timestamps", "ExtraInfo", }); internal_static_google_privacy_dlp_v2_JobTrigger_descriptor = - getDescriptor().getMessageTypes().get(92); + getDescriptor().getMessageTypes().get(93); internal_static_google_privacy_dlp_v2_JobTrigger_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_JobTrigger_descriptor, @@ -5238,7 +5299,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Schedule", "Manual", "Trigger", }); internal_static_google_privacy_dlp_v2_Action_descriptor = - getDescriptor().getMessageTypes().get(93); + getDescriptor().getMessageTypes().get(94); internal_static_google_privacy_dlp_v2_Action_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_Action_descriptor, @@ -5305,7 +5366,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_privacy_dlp_v2_Action_PublishToStackdriver_descriptor, new java.lang.String[] {}); internal_static_google_privacy_dlp_v2_TransformationConfig_descriptor = - getDescriptor().getMessageTypes().get(94); + getDescriptor().getMessageTypes().get(95); internal_static_google_privacy_dlp_v2_TransformationConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_TransformationConfig_descriptor, @@ -5313,7 +5374,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DeidentifyTemplate", "StructuredDeidentifyTemplate", "ImageRedactTemplate", }); internal_static_google_privacy_dlp_v2_CreateInspectTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(95); + getDescriptor().getMessageTypes().get(96); internal_static_google_privacy_dlp_v2_CreateInspectTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CreateInspectTemplateRequest_descriptor, @@ -5321,7 +5382,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "InspectTemplate", "TemplateId", "LocationId", }); internal_static_google_privacy_dlp_v2_UpdateInspectTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(96); + getDescriptor().getMessageTypes().get(97); internal_static_google_privacy_dlp_v2_UpdateInspectTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_UpdateInspectTemplateRequest_descriptor, @@ -5329,7 +5390,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "InspectTemplate", "UpdateMask", }); internal_static_google_privacy_dlp_v2_GetInspectTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(97); + getDescriptor().getMessageTypes().get(98); internal_static_google_privacy_dlp_v2_GetInspectTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_GetInspectTemplateRequest_descriptor, @@ -5337,7 +5398,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_ListInspectTemplatesRequest_descriptor = - getDescriptor().getMessageTypes().get(98); + getDescriptor().getMessageTypes().get(99); internal_static_google_privacy_dlp_v2_ListInspectTemplatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListInspectTemplatesRequest_descriptor, @@ -5345,7 +5406,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageToken", "PageSize", "OrderBy", "LocationId", }); internal_static_google_privacy_dlp_v2_ListInspectTemplatesResponse_descriptor = - getDescriptor().getMessageTypes().get(99); + getDescriptor().getMessageTypes().get(100); internal_static_google_privacy_dlp_v2_ListInspectTemplatesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListInspectTemplatesResponse_descriptor, @@ -5353,7 +5414,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InspectTemplates", "NextPageToken", }); internal_static_google_privacy_dlp_v2_DeleteInspectTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(100); + getDescriptor().getMessageTypes().get(101); internal_static_google_privacy_dlp_v2_DeleteInspectTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DeleteInspectTemplateRequest_descriptor, @@ -5361,7 +5422,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_CreateJobTriggerRequest_descriptor = - getDescriptor().getMessageTypes().get(101); + getDescriptor().getMessageTypes().get(102); internal_static_google_privacy_dlp_v2_CreateJobTriggerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CreateJobTriggerRequest_descriptor, @@ -5369,7 +5430,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "JobTrigger", "TriggerId", "LocationId", }); internal_static_google_privacy_dlp_v2_ActivateJobTriggerRequest_descriptor = - getDescriptor().getMessageTypes().get(102); + getDescriptor().getMessageTypes().get(103); internal_static_google_privacy_dlp_v2_ActivateJobTriggerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ActivateJobTriggerRequest_descriptor, @@ -5377,7 +5438,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_UpdateJobTriggerRequest_descriptor = - getDescriptor().getMessageTypes().get(103); + getDescriptor().getMessageTypes().get(104); internal_static_google_privacy_dlp_v2_UpdateJobTriggerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_UpdateJobTriggerRequest_descriptor, @@ -5385,7 +5446,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "JobTrigger", "UpdateMask", }); internal_static_google_privacy_dlp_v2_GetJobTriggerRequest_descriptor = - getDescriptor().getMessageTypes().get(104); + getDescriptor().getMessageTypes().get(105); internal_static_google_privacy_dlp_v2_GetJobTriggerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_GetJobTriggerRequest_descriptor, @@ -5393,7 +5454,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_CreateDiscoveryConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(105); + getDescriptor().getMessageTypes().get(106); internal_static_google_privacy_dlp_v2_CreateDiscoveryConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CreateDiscoveryConfigRequest_descriptor, @@ -5401,7 +5462,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "DiscoveryConfig", "ConfigId", }); internal_static_google_privacy_dlp_v2_UpdateDiscoveryConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(106); + getDescriptor().getMessageTypes().get(107); internal_static_google_privacy_dlp_v2_UpdateDiscoveryConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_UpdateDiscoveryConfigRequest_descriptor, @@ -5409,7 +5470,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "DiscoveryConfig", "UpdateMask", }); internal_static_google_privacy_dlp_v2_GetDiscoveryConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(107); + getDescriptor().getMessageTypes().get(108); internal_static_google_privacy_dlp_v2_GetDiscoveryConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_GetDiscoveryConfigRequest_descriptor, @@ -5417,7 +5478,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_ListDiscoveryConfigsRequest_descriptor = - getDescriptor().getMessageTypes().get(108); + getDescriptor().getMessageTypes().get(109); internal_static_google_privacy_dlp_v2_ListDiscoveryConfigsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListDiscoveryConfigsRequest_descriptor, @@ -5425,7 +5486,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageToken", "PageSize", "OrderBy", }); internal_static_google_privacy_dlp_v2_ListDiscoveryConfigsResponse_descriptor = - getDescriptor().getMessageTypes().get(109); + getDescriptor().getMessageTypes().get(110); internal_static_google_privacy_dlp_v2_ListDiscoveryConfigsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListDiscoveryConfigsResponse_descriptor, @@ -5433,7 +5494,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DiscoveryConfigs", "NextPageToken", }); internal_static_google_privacy_dlp_v2_DeleteDiscoveryConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(110); + getDescriptor().getMessageTypes().get(111); internal_static_google_privacy_dlp_v2_DeleteDiscoveryConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DeleteDiscoveryConfigRequest_descriptor, @@ -5441,7 +5502,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_CreateDlpJobRequest_descriptor = - getDescriptor().getMessageTypes().get(111); + getDescriptor().getMessageTypes().get(112); internal_static_google_privacy_dlp_v2_CreateDlpJobRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CreateDlpJobRequest_descriptor, @@ -5449,7 +5510,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "InspectJob", "RiskJob", "JobId", "LocationId", "Job", }); internal_static_google_privacy_dlp_v2_ListJobTriggersRequest_descriptor = - getDescriptor().getMessageTypes().get(112); + getDescriptor().getMessageTypes().get(113); internal_static_google_privacy_dlp_v2_ListJobTriggersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListJobTriggersRequest_descriptor, @@ -5457,7 +5518,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageToken", "PageSize", "OrderBy", "Filter", "Type", "LocationId", }); internal_static_google_privacy_dlp_v2_ListJobTriggersResponse_descriptor = - getDescriptor().getMessageTypes().get(113); + getDescriptor().getMessageTypes().get(114); internal_static_google_privacy_dlp_v2_ListJobTriggersResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListJobTriggersResponse_descriptor, @@ -5465,7 +5526,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "JobTriggers", "NextPageToken", }); internal_static_google_privacy_dlp_v2_DeleteJobTriggerRequest_descriptor = - getDescriptor().getMessageTypes().get(114); + getDescriptor().getMessageTypes().get(115); internal_static_google_privacy_dlp_v2_DeleteJobTriggerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DeleteJobTriggerRequest_descriptor, @@ -5473,7 +5534,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_InspectJobConfig_descriptor = - getDescriptor().getMessageTypes().get(115); + getDescriptor().getMessageTypes().get(116); internal_static_google_privacy_dlp_v2_InspectJobConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_InspectJobConfig_descriptor, @@ -5481,7 +5542,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "StorageConfig", "InspectConfig", "InspectTemplateName", "Actions", }); internal_static_google_privacy_dlp_v2_DataProfileAction_descriptor = - getDescriptor().getMessageTypes().get(116); + getDescriptor().getMessageTypes().get(117); internal_static_google_privacy_dlp_v2_DataProfileAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DataProfileAction_descriptor, @@ -5559,7 +5620,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NamespacedValue", "Format", }); internal_static_google_privacy_dlp_v2_DataProfileFinding_descriptor = - getDescriptor().getMessageTypes().get(117); + getDescriptor().getMessageTypes().get(118); internal_static_google_privacy_dlp_v2_DataProfileFinding_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DataProfileFinding_descriptor, @@ -5576,7 +5637,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DataSourceType", }); internal_static_google_privacy_dlp_v2_DataProfileFindingLocation_descriptor = - getDescriptor().getMessageTypes().get(118); + getDescriptor().getMessageTypes().get(119); internal_static_google_privacy_dlp_v2_DataProfileFindingLocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DataProfileFindingLocation_descriptor, @@ -5584,7 +5645,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ContainerName", "DataProfileFindingRecordLocation", "LocationExtraDetails", }); internal_static_google_privacy_dlp_v2_DataProfileFindingRecordLocation_descriptor = - getDescriptor().getMessageTypes().get(119); + getDescriptor().getMessageTypes().get(120); internal_static_google_privacy_dlp_v2_DataProfileFindingRecordLocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DataProfileFindingRecordLocation_descriptor, @@ -5592,7 +5653,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Field", }); internal_static_google_privacy_dlp_v2_DataProfileJobConfig_descriptor = - getDescriptor().getMessageTypes().get(120); + getDescriptor().getMessageTypes().get(121); internal_static_google_privacy_dlp_v2_DataProfileJobConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DataProfileJobConfig_descriptor, @@ -5604,7 +5665,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DataProfileActions", }); internal_static_google_privacy_dlp_v2_BigQueryRegex_descriptor = - getDescriptor().getMessageTypes().get(121); + getDescriptor().getMessageTypes().get(122); internal_static_google_privacy_dlp_v2_BigQueryRegex_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_BigQueryRegex_descriptor, @@ -5612,7 +5673,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectIdRegex", "DatasetIdRegex", "TableIdRegex", }); internal_static_google_privacy_dlp_v2_BigQueryRegexes_descriptor = - getDescriptor().getMessageTypes().get(122); + getDescriptor().getMessageTypes().get(123); internal_static_google_privacy_dlp_v2_BigQueryRegexes_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_BigQueryRegexes_descriptor, @@ -5620,7 +5681,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Patterns", }); internal_static_google_privacy_dlp_v2_BigQueryTableTypes_descriptor = - getDescriptor().getMessageTypes().get(123); + getDescriptor().getMessageTypes().get(124); internal_static_google_privacy_dlp_v2_BigQueryTableTypes_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_BigQueryTableTypes_descriptor, @@ -5628,12 +5689,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Types", }); internal_static_google_privacy_dlp_v2_Disabled_descriptor = - getDescriptor().getMessageTypes().get(124); + getDescriptor().getMessageTypes().get(125); internal_static_google_privacy_dlp_v2_Disabled_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_Disabled_descriptor, new java.lang.String[] {}); internal_static_google_privacy_dlp_v2_DataProfileLocation_descriptor = - getDescriptor().getMessageTypes().get(125); + getDescriptor().getMessageTypes().get(126); internal_static_google_privacy_dlp_v2_DataProfileLocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DataProfileLocation_descriptor, @@ -5641,7 +5702,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OrganizationId", "FolderId", "Location", }); internal_static_google_privacy_dlp_v2_DiscoveryConfig_descriptor = - getDescriptor().getMessageTypes().get(126); + getDescriptor().getMessageTypes().get(127); internal_static_google_privacy_dlp_v2_DiscoveryConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DiscoveryConfig_descriptor, @@ -5669,7 +5730,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Location", "ProjectId", }); internal_static_google_privacy_dlp_v2_DiscoveryTarget_descriptor = - getDescriptor().getMessageTypes().get(127); + getDescriptor().getMessageTypes().get(128); internal_static_google_privacy_dlp_v2_DiscoveryTarget_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DiscoveryTarget_descriptor, @@ -5683,7 +5744,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Target", }); internal_static_google_privacy_dlp_v2_BigQueryDiscoveryTarget_descriptor = - getDescriptor().getMessageTypes().get(128); + getDescriptor().getMessageTypes().get(129); internal_static_google_privacy_dlp_v2_BigQueryDiscoveryTarget_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_BigQueryDiscoveryTarget_descriptor, @@ -5691,7 +5752,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Filter", "Conditions", "Cadence", "Disabled", "Frequency", }); internal_static_google_privacy_dlp_v2_DiscoveryBigQueryFilter_descriptor = - getDescriptor().getMessageTypes().get(129); + getDescriptor().getMessageTypes().get(130); internal_static_google_privacy_dlp_v2_DiscoveryBigQueryFilter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DiscoveryBigQueryFilter_descriptor, @@ -5707,7 +5768,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_privacy_dlp_v2_DiscoveryBigQueryFilter_AllOtherBigQueryTables_descriptor, new java.lang.String[] {}); internal_static_google_privacy_dlp_v2_BigQueryTableCollection_descriptor = - getDescriptor().getMessageTypes().get(130); + getDescriptor().getMessageTypes().get(131); internal_static_google_privacy_dlp_v2_BigQueryTableCollection_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_BigQueryTableCollection_descriptor, @@ -5715,7 +5776,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IncludeRegexes", "Pattern", }); internal_static_google_privacy_dlp_v2_DiscoveryBigQueryConditions_descriptor = - getDescriptor().getMessageTypes().get(131); + getDescriptor().getMessageTypes().get(132); internal_static_google_privacy_dlp_v2_DiscoveryBigQueryConditions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DiscoveryBigQueryConditions_descriptor, @@ -5733,7 +5794,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MinRowCount", "MinAge", }); internal_static_google_privacy_dlp_v2_DiscoveryGenerationCadence_descriptor = - getDescriptor().getMessageTypes().get(132); + getDescriptor().getMessageTypes().get(133); internal_static_google_privacy_dlp_v2_DiscoveryGenerationCadence_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DiscoveryGenerationCadence_descriptor, @@ -5744,7 +5805,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RefreshFrequency", }); internal_static_google_privacy_dlp_v2_DiscoveryTableModifiedCadence_descriptor = - getDescriptor().getMessageTypes().get(133); + getDescriptor().getMessageTypes().get(134); internal_static_google_privacy_dlp_v2_DiscoveryTableModifiedCadence_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DiscoveryTableModifiedCadence_descriptor, @@ -5752,7 +5813,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Types", "Frequency", }); internal_static_google_privacy_dlp_v2_DiscoverySchemaModifiedCadence_descriptor = - getDescriptor().getMessageTypes().get(134); + getDescriptor().getMessageTypes().get(135); internal_static_google_privacy_dlp_v2_DiscoverySchemaModifiedCadence_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DiscoverySchemaModifiedCadence_descriptor, @@ -5760,7 +5821,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Types", "Frequency", }); internal_static_google_privacy_dlp_v2_DiscoveryInspectTemplateModifiedCadence_descriptor = - getDescriptor().getMessageTypes().get(135); + getDescriptor().getMessageTypes().get(136); internal_static_google_privacy_dlp_v2_DiscoveryInspectTemplateModifiedCadence_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DiscoveryInspectTemplateModifiedCadence_descriptor, @@ -5768,7 +5829,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Frequency", }); internal_static_google_privacy_dlp_v2_CloudSqlDiscoveryTarget_descriptor = - getDescriptor().getMessageTypes().get(136); + getDescriptor().getMessageTypes().get(137); internal_static_google_privacy_dlp_v2_CloudSqlDiscoveryTarget_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CloudSqlDiscoveryTarget_descriptor, @@ -5776,7 +5837,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Filter", "Conditions", "GenerationCadence", "Disabled", "Cadence", }); internal_static_google_privacy_dlp_v2_DiscoveryCloudSqlFilter_descriptor = - getDescriptor().getMessageTypes().get(137); + getDescriptor().getMessageTypes().get(138); internal_static_google_privacy_dlp_v2_DiscoveryCloudSqlFilter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DiscoveryCloudSqlFilter_descriptor, @@ -5784,7 +5845,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Collection", "Others", "DatabaseResourceReference", "Filter", }); internal_static_google_privacy_dlp_v2_DatabaseResourceCollection_descriptor = - getDescriptor().getMessageTypes().get(138); + getDescriptor().getMessageTypes().get(139); internal_static_google_privacy_dlp_v2_DatabaseResourceCollection_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DatabaseResourceCollection_descriptor, @@ -5792,7 +5853,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IncludeRegexes", "Pattern", }); internal_static_google_privacy_dlp_v2_DatabaseResourceRegexes_descriptor = - getDescriptor().getMessageTypes().get(139); + getDescriptor().getMessageTypes().get(140); internal_static_google_privacy_dlp_v2_DatabaseResourceRegexes_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DatabaseResourceRegexes_descriptor, @@ -5800,7 +5861,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Patterns", }); internal_static_google_privacy_dlp_v2_DatabaseResourceRegex_descriptor = - getDescriptor().getMessageTypes().get(140); + getDescriptor().getMessageTypes().get(141); internal_static_google_privacy_dlp_v2_DatabaseResourceRegex_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DatabaseResourceRegex_descriptor, @@ -5808,13 +5869,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectIdRegex", "InstanceRegex", "DatabaseRegex", "DatabaseResourceNameRegex", }); internal_static_google_privacy_dlp_v2_AllOtherDatabaseResources_descriptor = - getDescriptor().getMessageTypes().get(141); + getDescriptor().getMessageTypes().get(142); internal_static_google_privacy_dlp_v2_AllOtherDatabaseResources_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_AllOtherDatabaseResources_descriptor, new java.lang.String[] {}); internal_static_google_privacy_dlp_v2_DatabaseResourceReference_descriptor = - getDescriptor().getMessageTypes().get(142); + getDescriptor().getMessageTypes().get(143); internal_static_google_privacy_dlp_v2_DatabaseResourceReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DatabaseResourceReference_descriptor, @@ -5822,7 +5883,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Instance", "Database", "DatabaseResource", }); internal_static_google_privacy_dlp_v2_DiscoveryCloudSqlConditions_descriptor = - getDescriptor().getMessageTypes().get(143); + getDescriptor().getMessageTypes().get(144); internal_static_google_privacy_dlp_v2_DiscoveryCloudSqlConditions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DiscoveryCloudSqlConditions_descriptor, @@ -5830,7 +5891,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DatabaseEngines", "Types", }); internal_static_google_privacy_dlp_v2_DiscoveryCloudSqlGenerationCadence_descriptor = - getDescriptor().getMessageTypes().get(144); + getDescriptor().getMessageTypes().get(145); internal_static_google_privacy_dlp_v2_DiscoveryCloudSqlGenerationCadence_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DiscoveryCloudSqlGenerationCadence_descriptor, @@ -5848,13 +5909,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Types", "Frequency", }); internal_static_google_privacy_dlp_v2_SecretsDiscoveryTarget_descriptor = - getDescriptor().getMessageTypes().get(145); + getDescriptor().getMessageTypes().get(146); internal_static_google_privacy_dlp_v2_SecretsDiscoveryTarget_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_SecretsDiscoveryTarget_descriptor, new java.lang.String[] {}); internal_static_google_privacy_dlp_v2_CloudStorageDiscoveryTarget_descriptor = - getDescriptor().getMessageTypes().get(146); + getDescriptor().getMessageTypes().get(147); internal_static_google_privacy_dlp_v2_CloudStorageDiscoveryTarget_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CloudStorageDiscoveryTarget_descriptor, @@ -5862,7 +5923,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Filter", "Conditions", "GenerationCadence", "Disabled", "Cadence", }); internal_static_google_privacy_dlp_v2_DiscoveryCloudStorageFilter_descriptor = - getDescriptor().getMessageTypes().get(147); + getDescriptor().getMessageTypes().get(148); internal_static_google_privacy_dlp_v2_DiscoveryCloudStorageFilter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DiscoveryCloudStorageFilter_descriptor, @@ -5870,7 +5931,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Collection", "CloudStorageResourceReference", "Others", "Filter", }); internal_static_google_privacy_dlp_v2_FileStoreCollection_descriptor = - getDescriptor().getMessageTypes().get(148); + getDescriptor().getMessageTypes().get(149); internal_static_google_privacy_dlp_v2_FileStoreCollection_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_FileStoreCollection_descriptor, @@ -5878,7 +5939,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IncludeRegexes", "Pattern", }); internal_static_google_privacy_dlp_v2_FileStoreRegexes_descriptor = - getDescriptor().getMessageTypes().get(149); + getDescriptor().getMessageTypes().get(150); internal_static_google_privacy_dlp_v2_FileStoreRegexes_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_FileStoreRegexes_descriptor, @@ -5886,7 +5947,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Patterns", }); internal_static_google_privacy_dlp_v2_FileStoreRegex_descriptor = - getDescriptor().getMessageTypes().get(150); + getDescriptor().getMessageTypes().get(151); internal_static_google_privacy_dlp_v2_FileStoreRegex_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_FileStoreRegex_descriptor, @@ -5894,7 +5955,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CloudStorageRegex", "ResourceRegex", }); internal_static_google_privacy_dlp_v2_CloudStorageRegex_descriptor = - getDescriptor().getMessageTypes().get(151); + getDescriptor().getMessageTypes().get(152); internal_static_google_privacy_dlp_v2_CloudStorageRegex_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CloudStorageRegex_descriptor, @@ -5902,7 +5963,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectIdRegex", "BucketNameRegex", }); internal_static_google_privacy_dlp_v2_CloudStorageResourceReference_descriptor = - getDescriptor().getMessageTypes().get(152); + getDescriptor().getMessageTypes().get(153); internal_static_google_privacy_dlp_v2_CloudStorageResourceReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CloudStorageResourceReference_descriptor, @@ -5910,7 +5971,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BucketName", "ProjectId", }); internal_static_google_privacy_dlp_v2_DiscoveryCloudStorageGenerationCadence_descriptor = - getDescriptor().getMessageTypes().get(153); + getDescriptor().getMessageTypes().get(154); internal_static_google_privacy_dlp_v2_DiscoveryCloudStorageGenerationCadence_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DiscoveryCloudStorageGenerationCadence_descriptor, @@ -5918,7 +5979,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RefreshFrequency", "InspectTemplateModifiedCadence", }); internal_static_google_privacy_dlp_v2_DiscoveryCloudStorageConditions_descriptor = - getDescriptor().getMessageTypes().get(154); + getDescriptor().getMessageTypes().get(155); internal_static_google_privacy_dlp_v2_DiscoveryCloudStorageConditions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DiscoveryCloudStorageConditions_descriptor, @@ -5926,7 +5987,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IncludedObjectAttributes", "IncludedBucketAttributes", }); internal_static_google_privacy_dlp_v2_DiscoveryFileStoreConditions_descriptor = - getDescriptor().getMessageTypes().get(155); + getDescriptor().getMessageTypes().get(156); internal_static_google_privacy_dlp_v2_DiscoveryFileStoreConditions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DiscoveryFileStoreConditions_descriptor, @@ -5934,7 +5995,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreatedAfter", "MinAge", "CloudStorageConditions", "Conditions", }); internal_static_google_privacy_dlp_v2_OtherCloudDiscoveryTarget_descriptor = - getDescriptor().getMessageTypes().get(156); + getDescriptor().getMessageTypes().get(157); internal_static_google_privacy_dlp_v2_OtherCloudDiscoveryTarget_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_OtherCloudDiscoveryTarget_descriptor, @@ -5942,7 +6003,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DataSourceType", "Filter", "Conditions", "GenerationCadence", "Disabled", "Cadence", }); internal_static_google_privacy_dlp_v2_DiscoveryOtherCloudFilter_descriptor = - getDescriptor().getMessageTypes().get(157); + getDescriptor().getMessageTypes().get(158); internal_static_google_privacy_dlp_v2_DiscoveryOtherCloudFilter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DiscoveryOtherCloudFilter_descriptor, @@ -5950,7 +6011,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Collection", "SingleResource", "Others", "Filter", }); internal_static_google_privacy_dlp_v2_OtherCloudResourceCollection_descriptor = - getDescriptor().getMessageTypes().get(158); + getDescriptor().getMessageTypes().get(159); internal_static_google_privacy_dlp_v2_OtherCloudResourceCollection_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_OtherCloudResourceCollection_descriptor, @@ -5958,7 +6019,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IncludeRegexes", "Pattern", }); internal_static_google_privacy_dlp_v2_OtherCloudResourceRegexes_descriptor = - getDescriptor().getMessageTypes().get(159); + getDescriptor().getMessageTypes().get(160); internal_static_google_privacy_dlp_v2_OtherCloudResourceRegexes_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_OtherCloudResourceRegexes_descriptor, @@ -5966,7 +6027,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Patterns", }); internal_static_google_privacy_dlp_v2_OtherCloudResourceRegex_descriptor = - getDescriptor().getMessageTypes().get(160); + getDescriptor().getMessageTypes().get(161); internal_static_google_privacy_dlp_v2_OtherCloudResourceRegex_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_OtherCloudResourceRegex_descriptor, @@ -5974,7 +6035,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AmazonS3BucketRegex", "ResourceRegex", }); internal_static_google_privacy_dlp_v2_AwsAccountRegex_descriptor = - getDescriptor().getMessageTypes().get(161); + getDescriptor().getMessageTypes().get(162); internal_static_google_privacy_dlp_v2_AwsAccountRegex_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_AwsAccountRegex_descriptor, @@ -5982,7 +6043,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AccountIdRegex", }); internal_static_google_privacy_dlp_v2_AmazonS3BucketRegex_descriptor = - getDescriptor().getMessageTypes().get(162); + getDescriptor().getMessageTypes().get(163); internal_static_google_privacy_dlp_v2_AmazonS3BucketRegex_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_AmazonS3BucketRegex_descriptor, @@ -5990,7 +6051,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AwsAccountRegex", "BucketNameRegex", }); internal_static_google_privacy_dlp_v2_OtherCloudSingleResourceReference_descriptor = - getDescriptor().getMessageTypes().get(163); + getDescriptor().getMessageTypes().get(164); internal_static_google_privacy_dlp_v2_OtherCloudSingleResourceReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_OtherCloudSingleResourceReference_descriptor, @@ -5998,7 +6059,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AmazonS3Bucket", "Resource", }); internal_static_google_privacy_dlp_v2_AwsAccount_descriptor = - getDescriptor().getMessageTypes().get(164); + getDescriptor().getMessageTypes().get(165); internal_static_google_privacy_dlp_v2_AwsAccount_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_AwsAccount_descriptor, @@ -6006,7 +6067,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AccountId", }); internal_static_google_privacy_dlp_v2_AmazonS3Bucket_descriptor = - getDescriptor().getMessageTypes().get(165); + getDescriptor().getMessageTypes().get(166); internal_static_google_privacy_dlp_v2_AmazonS3Bucket_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_AmazonS3Bucket_descriptor, @@ -6014,7 +6075,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AwsAccount", "BucketName", }); internal_static_google_privacy_dlp_v2_DiscoveryOtherCloudConditions_descriptor = - getDescriptor().getMessageTypes().get(166); + getDescriptor().getMessageTypes().get(167); internal_static_google_privacy_dlp_v2_DiscoveryOtherCloudConditions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DiscoveryOtherCloudConditions_descriptor, @@ -6022,7 +6083,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MinAge", "AmazonS3BucketConditions", "Conditions", }); internal_static_google_privacy_dlp_v2_AmazonS3BucketConditions_descriptor = - getDescriptor().getMessageTypes().get(167); + getDescriptor().getMessageTypes().get(168); internal_static_google_privacy_dlp_v2_AmazonS3BucketConditions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_AmazonS3BucketConditions_descriptor, @@ -6030,7 +6091,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BucketTypes", "ObjectStorageClasses", }); internal_static_google_privacy_dlp_v2_DiscoveryOtherCloudGenerationCadence_descriptor = - getDescriptor().getMessageTypes().get(168); + getDescriptor().getMessageTypes().get(169); internal_static_google_privacy_dlp_v2_DiscoveryOtherCloudGenerationCadence_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DiscoveryOtherCloudGenerationCadence_descriptor, @@ -6038,7 +6099,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RefreshFrequency", "InspectTemplateModifiedCadence", }); internal_static_google_privacy_dlp_v2_DiscoveryStartingLocation_descriptor = - getDescriptor().getMessageTypes().get(169); + getDescriptor().getMessageTypes().get(170); internal_static_google_privacy_dlp_v2_DiscoveryStartingLocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DiscoveryStartingLocation_descriptor, @@ -6046,7 +6107,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OrganizationId", "FolderId", "Location", }); internal_static_google_privacy_dlp_v2_OtherCloudDiscoveryStartingLocation_descriptor = - getDescriptor().getMessageTypes().get(170); + getDescriptor().getMessageTypes().get(171); internal_static_google_privacy_dlp_v2_OtherCloudDiscoveryStartingLocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_OtherCloudDiscoveryStartingLocation_descriptor, @@ -6064,13 +6125,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AccountId", "AllAssetInventoryAssets", "Scope", }); internal_static_google_privacy_dlp_v2_AllOtherResources_descriptor = - getDescriptor().getMessageTypes().get(171); + getDescriptor().getMessageTypes().get(172); internal_static_google_privacy_dlp_v2_AllOtherResources_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_AllOtherResources_descriptor, new java.lang.String[] {}); internal_static_google_privacy_dlp_v2_VertexDatasetDiscoveryTarget_descriptor = - getDescriptor().getMessageTypes().get(172); + getDescriptor().getMessageTypes().get(173); internal_static_google_privacy_dlp_v2_VertexDatasetDiscoveryTarget_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_VertexDatasetDiscoveryTarget_descriptor, @@ -6078,7 +6139,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Filter", "Conditions", "GenerationCadence", "Disabled", "Cadence", }); internal_static_google_privacy_dlp_v2_DiscoveryVertexDatasetFilter_descriptor = - getDescriptor().getMessageTypes().get(173); + getDescriptor().getMessageTypes().get(174); internal_static_google_privacy_dlp_v2_DiscoveryVertexDatasetFilter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DiscoveryVertexDatasetFilter_descriptor, @@ -6086,7 +6147,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Collection", "VertexDatasetResourceReference", "Others", "Filter", }); internal_static_google_privacy_dlp_v2_VertexDatasetCollection_descriptor = - getDescriptor().getMessageTypes().get(174); + getDescriptor().getMessageTypes().get(175); internal_static_google_privacy_dlp_v2_VertexDatasetCollection_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_VertexDatasetCollection_descriptor, @@ -6094,7 +6155,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "VertexDatasetRegexes", "Pattern", }); internal_static_google_privacy_dlp_v2_VertexDatasetRegexes_descriptor = - getDescriptor().getMessageTypes().get(175); + getDescriptor().getMessageTypes().get(176); internal_static_google_privacy_dlp_v2_VertexDatasetRegexes_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_VertexDatasetRegexes_descriptor, @@ -6102,7 +6163,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Patterns", }); internal_static_google_privacy_dlp_v2_VertexDatasetRegex_descriptor = - getDescriptor().getMessageTypes().get(176); + getDescriptor().getMessageTypes().get(177); internal_static_google_privacy_dlp_v2_VertexDatasetRegex_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_VertexDatasetRegex_descriptor, @@ -6110,7 +6171,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectIdRegex", }); internal_static_google_privacy_dlp_v2_VertexDatasetResourceReference_descriptor = - getDescriptor().getMessageTypes().get(177); + getDescriptor().getMessageTypes().get(178); internal_static_google_privacy_dlp_v2_VertexDatasetResourceReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_VertexDatasetResourceReference_descriptor, @@ -6118,7 +6179,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DatasetResourceName", }); internal_static_google_privacy_dlp_v2_DiscoveryVertexDatasetConditions_descriptor = - getDescriptor().getMessageTypes().get(178); + getDescriptor().getMessageTypes().get(179); internal_static_google_privacy_dlp_v2_DiscoveryVertexDatasetConditions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DiscoveryVertexDatasetConditions_descriptor, @@ -6126,7 +6187,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreatedAfter", "MinAge", }); internal_static_google_privacy_dlp_v2_DiscoveryVertexDatasetGenerationCadence_descriptor = - getDescriptor().getMessageTypes().get(179); + getDescriptor().getMessageTypes().get(180); internal_static_google_privacy_dlp_v2_DiscoveryVertexDatasetGenerationCadence_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DiscoveryVertexDatasetGenerationCadence_descriptor, @@ -6134,7 +6195,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RefreshFrequency", "InspectTemplateModifiedCadence", }); internal_static_google_privacy_dlp_v2_DlpJob_descriptor = - getDescriptor().getMessageTypes().get(180); + getDescriptor().getMessageTypes().get(181); internal_static_google_privacy_dlp_v2_DlpJob_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DlpJob_descriptor, @@ -6154,7 +6215,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Details", }); internal_static_google_privacy_dlp_v2_GetDlpJobRequest_descriptor = - getDescriptor().getMessageTypes().get(181); + getDescriptor().getMessageTypes().get(182); internal_static_google_privacy_dlp_v2_GetDlpJobRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_GetDlpJobRequest_descriptor, @@ -6162,7 +6223,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_ListDlpJobsRequest_descriptor = - getDescriptor().getMessageTypes().get(182); + getDescriptor().getMessageTypes().get(183); internal_static_google_privacy_dlp_v2_ListDlpJobsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListDlpJobsRequest_descriptor, @@ -6170,7 +6231,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Filter", "PageSize", "PageToken", "Type", "OrderBy", "LocationId", }); internal_static_google_privacy_dlp_v2_ListDlpJobsResponse_descriptor = - getDescriptor().getMessageTypes().get(183); + getDescriptor().getMessageTypes().get(184); internal_static_google_privacy_dlp_v2_ListDlpJobsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListDlpJobsResponse_descriptor, @@ -6178,7 +6239,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Jobs", "NextPageToken", }); internal_static_google_privacy_dlp_v2_CancelDlpJobRequest_descriptor = - getDescriptor().getMessageTypes().get(184); + getDescriptor().getMessageTypes().get(185); internal_static_google_privacy_dlp_v2_CancelDlpJobRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CancelDlpJobRequest_descriptor, @@ -6186,7 +6247,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_FinishDlpJobRequest_descriptor = - getDescriptor().getMessageTypes().get(185); + getDescriptor().getMessageTypes().get(186); internal_static_google_privacy_dlp_v2_FinishDlpJobRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_FinishDlpJobRequest_descriptor, @@ -6194,7 +6255,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_DeleteDlpJobRequest_descriptor = - getDescriptor().getMessageTypes().get(186); + getDescriptor().getMessageTypes().get(187); internal_static_google_privacy_dlp_v2_DeleteDlpJobRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DeleteDlpJobRequest_descriptor, @@ -6202,7 +6263,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_CreateDeidentifyTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(187); + getDescriptor().getMessageTypes().get(188); internal_static_google_privacy_dlp_v2_CreateDeidentifyTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CreateDeidentifyTemplateRequest_descriptor, @@ -6210,7 +6271,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "DeidentifyTemplate", "TemplateId", "LocationId", }); internal_static_google_privacy_dlp_v2_UpdateDeidentifyTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(188); + getDescriptor().getMessageTypes().get(189); internal_static_google_privacy_dlp_v2_UpdateDeidentifyTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_UpdateDeidentifyTemplateRequest_descriptor, @@ -6218,7 +6279,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "DeidentifyTemplate", "UpdateMask", }); internal_static_google_privacy_dlp_v2_GetDeidentifyTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(189); + getDescriptor().getMessageTypes().get(190); internal_static_google_privacy_dlp_v2_GetDeidentifyTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_GetDeidentifyTemplateRequest_descriptor, @@ -6226,7 +6287,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_ListDeidentifyTemplatesRequest_descriptor = - getDescriptor().getMessageTypes().get(190); + getDescriptor().getMessageTypes().get(191); internal_static_google_privacy_dlp_v2_ListDeidentifyTemplatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListDeidentifyTemplatesRequest_descriptor, @@ -6234,7 +6295,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageToken", "PageSize", "OrderBy", "LocationId", }); internal_static_google_privacy_dlp_v2_ListDeidentifyTemplatesResponse_descriptor = - getDescriptor().getMessageTypes().get(191); + getDescriptor().getMessageTypes().get(192); internal_static_google_privacy_dlp_v2_ListDeidentifyTemplatesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListDeidentifyTemplatesResponse_descriptor, @@ -6242,7 +6303,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DeidentifyTemplates", "NextPageToken", }); internal_static_google_privacy_dlp_v2_DeleteDeidentifyTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(192); + getDescriptor().getMessageTypes().get(193); internal_static_google_privacy_dlp_v2_DeleteDeidentifyTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DeleteDeidentifyTemplateRequest_descriptor, @@ -6250,7 +6311,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_LargeCustomDictionaryConfig_descriptor = - getDescriptor().getMessageTypes().get(193); + getDescriptor().getMessageTypes().get(194); internal_static_google_privacy_dlp_v2_LargeCustomDictionaryConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_LargeCustomDictionaryConfig_descriptor, @@ -6258,7 +6319,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OutputPath", "CloudStorageFileSet", "BigQueryField", "Source", }); internal_static_google_privacy_dlp_v2_LargeCustomDictionaryStats_descriptor = - getDescriptor().getMessageTypes().get(194); + getDescriptor().getMessageTypes().get(195); internal_static_google_privacy_dlp_v2_LargeCustomDictionaryStats_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_LargeCustomDictionaryStats_descriptor, @@ -6266,7 +6327,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ApproxNumPhrases", }); internal_static_google_privacy_dlp_v2_StoredInfoTypeConfig_descriptor = - getDescriptor().getMessageTypes().get(195); + getDescriptor().getMessageTypes().get(196); internal_static_google_privacy_dlp_v2_StoredInfoTypeConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_StoredInfoTypeConfig_descriptor, @@ -6274,7 +6335,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisplayName", "Description", "LargeCustomDictionary", "Dictionary", "Regex", "Type", }); internal_static_google_privacy_dlp_v2_StoredInfoTypeStats_descriptor = - getDescriptor().getMessageTypes().get(196); + getDescriptor().getMessageTypes().get(197); internal_static_google_privacy_dlp_v2_StoredInfoTypeStats_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_StoredInfoTypeStats_descriptor, @@ -6282,7 +6343,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LargeCustomDictionary", "Type", }); internal_static_google_privacy_dlp_v2_StoredInfoTypeVersion_descriptor = - getDescriptor().getMessageTypes().get(197); + getDescriptor().getMessageTypes().get(198); internal_static_google_privacy_dlp_v2_StoredInfoTypeVersion_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_StoredInfoTypeVersion_descriptor, @@ -6290,7 +6351,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Config", "CreateTime", "State", "Errors", "Stats", }); internal_static_google_privacy_dlp_v2_StoredInfoType_descriptor = - getDescriptor().getMessageTypes().get(198); + getDescriptor().getMessageTypes().get(199); internal_static_google_privacy_dlp_v2_StoredInfoType_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_StoredInfoType_descriptor, @@ -6298,7 +6359,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "CurrentVersion", "PendingVersions", }); internal_static_google_privacy_dlp_v2_CreateStoredInfoTypeRequest_descriptor = - getDescriptor().getMessageTypes().get(199); + getDescriptor().getMessageTypes().get(200); internal_static_google_privacy_dlp_v2_CreateStoredInfoTypeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CreateStoredInfoTypeRequest_descriptor, @@ -6306,7 +6367,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Config", "StoredInfoTypeId", "LocationId", }); internal_static_google_privacy_dlp_v2_UpdateStoredInfoTypeRequest_descriptor = - getDescriptor().getMessageTypes().get(200); + getDescriptor().getMessageTypes().get(201); internal_static_google_privacy_dlp_v2_UpdateStoredInfoTypeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_UpdateStoredInfoTypeRequest_descriptor, @@ -6314,7 +6375,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Config", "UpdateMask", }); internal_static_google_privacy_dlp_v2_GetStoredInfoTypeRequest_descriptor = - getDescriptor().getMessageTypes().get(201); + getDescriptor().getMessageTypes().get(202); internal_static_google_privacy_dlp_v2_GetStoredInfoTypeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_GetStoredInfoTypeRequest_descriptor, @@ -6322,7 +6383,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_ListStoredInfoTypesRequest_descriptor = - getDescriptor().getMessageTypes().get(202); + getDescriptor().getMessageTypes().get(203); internal_static_google_privacy_dlp_v2_ListStoredInfoTypesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListStoredInfoTypesRequest_descriptor, @@ -6330,7 +6391,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageToken", "PageSize", "OrderBy", "LocationId", }); internal_static_google_privacy_dlp_v2_ListStoredInfoTypesResponse_descriptor = - getDescriptor().getMessageTypes().get(203); + getDescriptor().getMessageTypes().get(204); internal_static_google_privacy_dlp_v2_ListStoredInfoTypesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListStoredInfoTypesResponse_descriptor, @@ -6338,7 +6399,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "StoredInfoTypes", "NextPageToken", }); internal_static_google_privacy_dlp_v2_DeleteStoredInfoTypeRequest_descriptor = - getDescriptor().getMessageTypes().get(204); + getDescriptor().getMessageTypes().get(205); internal_static_google_privacy_dlp_v2_DeleteStoredInfoTypeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DeleteStoredInfoTypeRequest_descriptor, @@ -6346,7 +6407,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_HybridInspectJobTriggerRequest_descriptor = - getDescriptor().getMessageTypes().get(205); + getDescriptor().getMessageTypes().get(206); internal_static_google_privacy_dlp_v2_HybridInspectJobTriggerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_HybridInspectJobTriggerRequest_descriptor, @@ -6354,7 +6415,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "HybridItem", }); internal_static_google_privacy_dlp_v2_HybridInspectDlpJobRequest_descriptor = - getDescriptor().getMessageTypes().get(206); + getDescriptor().getMessageTypes().get(207); internal_static_google_privacy_dlp_v2_HybridInspectDlpJobRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_HybridInspectDlpJobRequest_descriptor, @@ -6362,7 +6423,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "HybridItem", }); internal_static_google_privacy_dlp_v2_HybridContentItem_descriptor = - getDescriptor().getMessageTypes().get(207); + getDescriptor().getMessageTypes().get(208); internal_static_google_privacy_dlp_v2_HybridContentItem_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_HybridContentItem_descriptor, @@ -6370,7 +6431,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Item", "FindingDetails", }); internal_static_google_privacy_dlp_v2_HybridFindingDetails_descriptor = - getDescriptor().getMessageTypes().get(208); + getDescriptor().getMessageTypes().get(209); internal_static_google_privacy_dlp_v2_HybridFindingDetails_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_HybridFindingDetails_descriptor, @@ -6388,13 +6449,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_privacy_dlp_v2_HybridInspectResponse_descriptor = - getDescriptor().getMessageTypes().get(209); + getDescriptor().getMessageTypes().get(210); internal_static_google_privacy_dlp_v2_HybridInspectResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_HybridInspectResponse_descriptor, new java.lang.String[] {}); internal_static_google_privacy_dlp_v2_ListProjectDataProfilesRequest_descriptor = - getDescriptor().getMessageTypes().get(210); + getDescriptor().getMessageTypes().get(211); internal_static_google_privacy_dlp_v2_ListProjectDataProfilesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListProjectDataProfilesRequest_descriptor, @@ -6402,7 +6463,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageToken", "PageSize", "OrderBy", "Filter", }); internal_static_google_privacy_dlp_v2_ListProjectDataProfilesResponse_descriptor = - getDescriptor().getMessageTypes().get(211); + getDescriptor().getMessageTypes().get(212); internal_static_google_privacy_dlp_v2_ListProjectDataProfilesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListProjectDataProfilesResponse_descriptor, @@ -6410,7 +6471,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectDataProfiles", "NextPageToken", }); internal_static_google_privacy_dlp_v2_ListTableDataProfilesRequest_descriptor = - getDescriptor().getMessageTypes().get(212); + getDescriptor().getMessageTypes().get(213); internal_static_google_privacy_dlp_v2_ListTableDataProfilesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListTableDataProfilesRequest_descriptor, @@ -6418,7 +6479,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageToken", "PageSize", "OrderBy", "Filter", }); internal_static_google_privacy_dlp_v2_ListTableDataProfilesResponse_descriptor = - getDescriptor().getMessageTypes().get(213); + getDescriptor().getMessageTypes().get(214); internal_static_google_privacy_dlp_v2_ListTableDataProfilesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListTableDataProfilesResponse_descriptor, @@ -6426,7 +6487,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TableDataProfiles", "NextPageToken", }); internal_static_google_privacy_dlp_v2_ListColumnDataProfilesRequest_descriptor = - getDescriptor().getMessageTypes().get(214); + getDescriptor().getMessageTypes().get(215); internal_static_google_privacy_dlp_v2_ListColumnDataProfilesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListColumnDataProfilesRequest_descriptor, @@ -6434,7 +6495,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageToken", "PageSize", "OrderBy", "Filter", }); internal_static_google_privacy_dlp_v2_ListColumnDataProfilesResponse_descriptor = - getDescriptor().getMessageTypes().get(215); + getDescriptor().getMessageTypes().get(216); internal_static_google_privacy_dlp_v2_ListColumnDataProfilesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListColumnDataProfilesResponse_descriptor, @@ -6442,7 +6503,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ColumnDataProfiles", "NextPageToken", }); internal_static_google_privacy_dlp_v2_DataRiskLevel_descriptor = - getDescriptor().getMessageTypes().get(216); + getDescriptor().getMessageTypes().get(217); internal_static_google_privacy_dlp_v2_DataRiskLevel_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DataRiskLevel_descriptor, @@ -6450,7 +6511,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Score", }); internal_static_google_privacy_dlp_v2_ProjectDataProfile_descriptor = - getDescriptor().getMessageTypes().get(217); + getDescriptor().getMessageTypes().get(218); internal_static_google_privacy_dlp_v2_ProjectDataProfile_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ProjectDataProfile_descriptor, @@ -6465,7 +6526,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FileStoreDataProfileCount", }); internal_static_google_privacy_dlp_v2_DataProfileConfigSnapshot_descriptor = - getDescriptor().getMessageTypes().get(218); + getDescriptor().getMessageTypes().get(219); internal_static_google_privacy_dlp_v2_DataProfileConfigSnapshot_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DataProfileConfigSnapshot_descriptor, @@ -6477,7 +6538,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InspectTemplateModifiedTime", }); internal_static_google_privacy_dlp_v2_TableDataProfile_descriptor = - getDescriptor().getMessageTypes().get(219); + getDescriptor().getMessageTypes().get(220); internal_static_google_privacy_dlp_v2_TableDataProfile_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_TableDataProfile_descriptor, @@ -6511,6 +6572,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SampleFindingsTable", "Tags", "RelatedResources", + "Domains", }); internal_static_google_privacy_dlp_v2_TableDataProfile_ResourceLabelsEntry_descriptor = internal_static_google_privacy_dlp_v2_TableDataProfile_descriptor.getNestedTypes().get(0); @@ -6521,7 +6583,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_privacy_dlp_v2_ProfileStatus_descriptor = - getDescriptor().getMessageTypes().get(220); + getDescriptor().getMessageTypes().get(221); internal_static_google_privacy_dlp_v2_ProfileStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ProfileStatus_descriptor, @@ -6529,7 +6591,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Status", "Timestamp", }); internal_static_google_privacy_dlp_v2_InfoTypeSummary_descriptor = - getDescriptor().getMessageTypes().get(221); + getDescriptor().getMessageTypes().get(222); internal_static_google_privacy_dlp_v2_InfoTypeSummary_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_InfoTypeSummary_descriptor, @@ -6537,7 +6599,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InfoType", "EstimatedPrevalence", }); internal_static_google_privacy_dlp_v2_OtherInfoTypeSummary_descriptor = - getDescriptor().getMessageTypes().get(222); + getDescriptor().getMessageTypes().get(223); internal_static_google_privacy_dlp_v2_OtherInfoTypeSummary_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_OtherInfoTypeSummary_descriptor, @@ -6545,7 +6607,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InfoType", "EstimatedPrevalence", "ExcludedFromAnalysis", }); internal_static_google_privacy_dlp_v2_ColumnDataProfile_descriptor = - getDescriptor().getMessageTypes().get(223); + getDescriptor().getMessageTypes().get(224); internal_static_google_privacy_dlp_v2_ColumnDataProfile_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ColumnDataProfile_descriptor, @@ -6572,7 +6634,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PolicyState", }); internal_static_google_privacy_dlp_v2_FileStoreDataProfile_descriptor = - getDescriptor().getMessageTypes().get(224); + getDescriptor().getMessageTypes().get(225); internal_static_google_privacy_dlp_v2_FileStoreDataProfile_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_FileStoreDataProfile_descriptor, @@ -6603,6 +6665,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FileStoreIsEmpty", "Tags", "RelatedResources", + "Domains", }); internal_static_google_privacy_dlp_v2_FileStoreDataProfile_ResourceAttributesEntry_descriptor = internal_static_google_privacy_dlp_v2_FileStoreDataProfile_descriptor @@ -6625,7 +6688,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_privacy_dlp_v2_Tag_descriptor = - getDescriptor().getMessageTypes().get(225); + getDescriptor().getMessageTypes().get(226); internal_static_google_privacy_dlp_v2_Tag_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_Tag_descriptor, @@ -6633,7 +6696,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NamespacedTagValue", "Key", "Value", }); internal_static_google_privacy_dlp_v2_RelatedResource_descriptor = - getDescriptor().getMessageTypes().get(226); + getDescriptor().getMessageTypes().get(227); internal_static_google_privacy_dlp_v2_RelatedResource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_RelatedResource_descriptor, @@ -6641,7 +6704,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FullResource", }); internal_static_google_privacy_dlp_v2_FileStoreInfoTypeSummary_descriptor = - getDescriptor().getMessageTypes().get(227); + getDescriptor().getMessageTypes().get(228); internal_static_google_privacy_dlp_v2_FileStoreInfoTypeSummary_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_FileStoreInfoTypeSummary_descriptor, @@ -6649,7 +6712,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InfoType", }); internal_static_google_privacy_dlp_v2_FileExtensionInfo_descriptor = - getDescriptor().getMessageTypes().get(228); + getDescriptor().getMessageTypes().get(229); internal_static_google_privacy_dlp_v2_FileExtensionInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_FileExtensionInfo_descriptor, @@ -6657,7 +6720,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FileExtension", }); internal_static_google_privacy_dlp_v2_FileClusterSummary_descriptor = - getDescriptor().getMessageTypes().get(229); + getDescriptor().getMessageTypes().get(230); internal_static_google_privacy_dlp_v2_FileClusterSummary_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_FileClusterSummary_descriptor, @@ -6672,7 +6735,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NoFilesExist", }); internal_static_google_privacy_dlp_v2_GetProjectDataProfileRequest_descriptor = - getDescriptor().getMessageTypes().get(230); + getDescriptor().getMessageTypes().get(231); internal_static_google_privacy_dlp_v2_GetProjectDataProfileRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_GetProjectDataProfileRequest_descriptor, @@ -6680,7 +6743,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_GetFileStoreDataProfileRequest_descriptor = - getDescriptor().getMessageTypes().get(231); + getDescriptor().getMessageTypes().get(232); internal_static_google_privacy_dlp_v2_GetFileStoreDataProfileRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_GetFileStoreDataProfileRequest_descriptor, @@ -6688,7 +6751,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_ListFileStoreDataProfilesRequest_descriptor = - getDescriptor().getMessageTypes().get(232); + getDescriptor().getMessageTypes().get(233); internal_static_google_privacy_dlp_v2_ListFileStoreDataProfilesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListFileStoreDataProfilesRequest_descriptor, @@ -6696,7 +6759,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageToken", "PageSize", "OrderBy", "Filter", }); internal_static_google_privacy_dlp_v2_ListFileStoreDataProfilesResponse_descriptor = - getDescriptor().getMessageTypes().get(233); + getDescriptor().getMessageTypes().get(234); internal_static_google_privacy_dlp_v2_ListFileStoreDataProfilesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListFileStoreDataProfilesResponse_descriptor, @@ -6704,7 +6767,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FileStoreDataProfiles", "NextPageToken", }); internal_static_google_privacy_dlp_v2_DeleteFileStoreDataProfileRequest_descriptor = - getDescriptor().getMessageTypes().get(234); + getDescriptor().getMessageTypes().get(235); internal_static_google_privacy_dlp_v2_DeleteFileStoreDataProfileRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DeleteFileStoreDataProfileRequest_descriptor, @@ -6712,7 +6775,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_GetTableDataProfileRequest_descriptor = - getDescriptor().getMessageTypes().get(235); + getDescriptor().getMessageTypes().get(236); internal_static_google_privacy_dlp_v2_GetTableDataProfileRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_GetTableDataProfileRequest_descriptor, @@ -6720,7 +6783,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_GetColumnDataProfileRequest_descriptor = - getDescriptor().getMessageTypes().get(236); + getDescriptor().getMessageTypes().get(237); internal_static_google_privacy_dlp_v2_GetColumnDataProfileRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_GetColumnDataProfileRequest_descriptor, @@ -6728,7 +6791,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_DataProfilePubSubCondition_descriptor = - getDescriptor().getMessageTypes().get(237); + getDescriptor().getMessageTypes().get(238); internal_static_google_privacy_dlp_v2_DataProfilePubSubCondition_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DataProfilePubSubCondition_descriptor, @@ -6756,7 +6819,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LogicalOperator", "Conditions", }); internal_static_google_privacy_dlp_v2_DataProfilePubSubMessage_descriptor = - getDescriptor().getMessageTypes().get(238); + getDescriptor().getMessageTypes().get(239); internal_static_google_privacy_dlp_v2_DataProfilePubSubMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DataProfilePubSubMessage_descriptor, @@ -6764,7 +6827,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Profile", "FileStoreProfile", "Event", }); internal_static_google_privacy_dlp_v2_CreateConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(239); + getDescriptor().getMessageTypes().get(240); internal_static_google_privacy_dlp_v2_CreateConnectionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CreateConnectionRequest_descriptor, @@ -6772,7 +6835,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Connection", }); internal_static_google_privacy_dlp_v2_GetConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(240); + getDescriptor().getMessageTypes().get(241); internal_static_google_privacy_dlp_v2_GetConnectionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_GetConnectionRequest_descriptor, @@ -6780,7 +6843,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_ListConnectionsRequest_descriptor = - getDescriptor().getMessageTypes().get(241); + getDescriptor().getMessageTypes().get(242); internal_static_google_privacy_dlp_v2_ListConnectionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListConnectionsRequest_descriptor, @@ -6788,7 +6851,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", }); internal_static_google_privacy_dlp_v2_SearchConnectionsRequest_descriptor = - getDescriptor().getMessageTypes().get(242); + getDescriptor().getMessageTypes().get(243); internal_static_google_privacy_dlp_v2_SearchConnectionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_SearchConnectionsRequest_descriptor, @@ -6796,7 +6859,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", }); internal_static_google_privacy_dlp_v2_ListConnectionsResponse_descriptor = - getDescriptor().getMessageTypes().get(243); + getDescriptor().getMessageTypes().get(244); internal_static_google_privacy_dlp_v2_ListConnectionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListConnectionsResponse_descriptor, @@ -6804,7 +6867,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Connections", "NextPageToken", }); internal_static_google_privacy_dlp_v2_SearchConnectionsResponse_descriptor = - getDescriptor().getMessageTypes().get(244); + getDescriptor().getMessageTypes().get(245); internal_static_google_privacy_dlp_v2_SearchConnectionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_SearchConnectionsResponse_descriptor, @@ -6812,7 +6875,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Connections", "NextPageToken", }); internal_static_google_privacy_dlp_v2_UpdateConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(245); + getDescriptor().getMessageTypes().get(246); internal_static_google_privacy_dlp_v2_UpdateConnectionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_UpdateConnectionRequest_descriptor, @@ -6820,7 +6883,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Connection", "UpdateMask", }); internal_static_google_privacy_dlp_v2_DeleteConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(246); + getDescriptor().getMessageTypes().get(247); internal_static_google_privacy_dlp_v2_DeleteConnectionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DeleteConnectionRequest_descriptor, @@ -6828,7 +6891,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_Connection_descriptor = - getDescriptor().getMessageTypes().get(247); + getDescriptor().getMessageTypes().get(248); internal_static_google_privacy_dlp_v2_Connection_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_Connection_descriptor, @@ -6836,7 +6899,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "State", "Errors", "CloudSql", "Properties", }); internal_static_google_privacy_dlp_v2_SecretManagerCredential_descriptor = - getDescriptor().getMessageTypes().get(248); + getDescriptor().getMessageTypes().get(249); internal_static_google_privacy_dlp_v2_SecretManagerCredential_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_SecretManagerCredential_descriptor, @@ -6844,13 +6907,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Username", "PasswordSecretVersionName", }); internal_static_google_privacy_dlp_v2_CloudSqlIamCredential_descriptor = - getDescriptor().getMessageTypes().get(249); + getDescriptor().getMessageTypes().get(250); internal_static_google_privacy_dlp_v2_CloudSqlIamCredential_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CloudSqlIamCredential_descriptor, new java.lang.String[] {}); internal_static_google_privacy_dlp_v2_CloudSqlProperties_descriptor = - getDescriptor().getMessageTypes().get(250); + getDescriptor().getMessageTypes().get(251); internal_static_google_privacy_dlp_v2_CloudSqlProperties_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CloudSqlProperties_descriptor, @@ -6863,7 +6926,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Credential", }); internal_static_google_privacy_dlp_v2_DeleteTableDataProfileRequest_descriptor = - getDescriptor().getMessageTypes().get(251); + getDescriptor().getMessageTypes().get(252); internal_static_google_privacy_dlp_v2_DeleteTableDataProfileRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DeleteTableDataProfileRequest_descriptor, @@ -6871,7 +6934,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_DataSourceType_descriptor = - getDescriptor().getMessageTypes().get(252); + getDescriptor().getMessageTypes().get(253); internal_static_google_privacy_dlp_v2_DataSourceType_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DataSourceType_descriptor, @@ -6879,7 +6942,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DataSource", }); internal_static_google_privacy_dlp_v2_FileClusterType_descriptor = - getDescriptor().getMessageTypes().get(253); + getDescriptor().getMessageTypes().get(254); internal_static_google_privacy_dlp_v2_FileClusterType_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_FileClusterType_descriptor, @@ -6887,12 +6950,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Cluster", "FileClusterType", }); internal_static_google_privacy_dlp_v2_ProcessingLocation_descriptor = - getDescriptor().getMessageTypes().get(254); + getDescriptor().getMessageTypes().get(255); internal_static_google_privacy_dlp_v2_ProcessingLocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ProcessingLocation_descriptor, new java.lang.String[] { - "ImageFallbackLocation", + "ImageFallbackLocation", "DocumentFallbackLocation", }); internal_static_google_privacy_dlp_v2_ProcessingLocation_MultiRegionProcessing_descriptor = internal_static_google_privacy_dlp_v2_ProcessingLocation_descriptor.getNestedTypes().get(0); @@ -6914,14 +6977,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "MultiRegionProcessing", "GlobalProcessing", }); + internal_static_google_privacy_dlp_v2_ProcessingLocation_DocumentFallbackLocation_descriptor = + internal_static_google_privacy_dlp_v2_ProcessingLocation_descriptor.getNestedTypes().get(3); + internal_static_google_privacy_dlp_v2_ProcessingLocation_DocumentFallbackLocation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_ProcessingLocation_DocumentFallbackLocation_descriptor, + new java.lang.String[] { + "MultiRegionProcessing", "GlobalProcessing", + }); internal_static_google_privacy_dlp_v2_SaveToGcsFindingsOutput_descriptor = - getDescriptor().getMessageTypes().get(255); + getDescriptor().getMessageTypes().get(256); internal_static_google_privacy_dlp_v2_SaveToGcsFindingsOutput_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_SaveToGcsFindingsOutput_descriptor, new java.lang.String[] { "Findings", }); + internal_static_google_privacy_dlp_v2_Domain_descriptor = + getDescriptor().getMessageTypes().get(257); + internal_static_google_privacy_dlp_v2_Domain_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_Domain_descriptor, + new java.lang.String[] { + "Category", "Signals", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Domain.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Domain.java new file mode 100644 index 000000000000..e9ee1045d532 --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Domain.java @@ -0,0 +1,1421 @@ +/* + * 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/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.8 +package com.google.privacy.dlp.v2; + +/** + * + * + *
    + * A domain represents a thematic category that a data profile can fall under.
    + * 
    + * + * Protobuf type {@code google.privacy.dlp.v2.Domain} + */ +public final class Domain extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.Domain) + DomainOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Domain.newBuilder() to construct. + private Domain(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Domain() { + category_ = 0; + signals_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Domain(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_Domain_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_Domain_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.Domain.class, com.google.privacy.dlp.v2.Domain.Builder.class); + } + + /** + * + * + *
    +   * This enum defines the various domain categories a data profile can fall
    +   * under.
    +   * 
    + * + * Protobuf enum {@code google.privacy.dlp.v2.Domain.Category} + */ + public enum Category implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Category unspecified.
    +     * 
    + * + * CATEGORY_UNSPECIFIED = 0; + */ + CATEGORY_UNSPECIFIED(0), + /** + * + * + *
    +     * Indicates that the data profile is related to artificial intelligence.
    +     * When set, all findings stored to Security Command Center will set the
    +     * corresponding AI domain field of `Finding` objects.
    +     * 
    + * + * AI = 1; + */ + AI(1), + /** + * + * + *
    +     * Indicates that the data profile is related to code.
    +     * 
    + * + * CODE = 2; + */ + CODE(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * Category unspecified.
    +     * 
    + * + * CATEGORY_UNSPECIFIED = 0; + */ + public static final int CATEGORY_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +     * Indicates that the data profile is related to artificial intelligence.
    +     * When set, all findings stored to Security Command Center will set the
    +     * corresponding AI domain field of `Finding` objects.
    +     * 
    + * + * AI = 1; + */ + public static final int AI_VALUE = 1; + + /** + * + * + *
    +     * Indicates that the data profile is related to code.
    +     * 
    + * + * CODE = 2; + */ + public static final int CODE_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 Category 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 Category forNumber(int value) { + switch (value) { + case 0: + return CATEGORY_UNSPECIFIED; + case 1: + return AI; + case 2: + return CODE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Category findValueByNumber(int number) { + return Category.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.privacy.dlp.v2.Domain.getDescriptor().getEnumTypes().get(0); + } + + private static final Category[] VALUES = values(); + + public static Category 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 Category(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.privacy.dlp.v2.Domain.Category) + } + + /** + * + * + *
    +   * The signal used to determine the category.
    +   * This list may increase over time.
    +   * 
    + * + * Protobuf enum {@code google.privacy.dlp.v2.Domain.Signal} + */ + public enum Signal implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Unused.
    +     * 
    + * + * SIGNAL_UNSPECIFIED = 0; + */ + SIGNAL_UNSPECIFIED(0), + /** + * + * + *
    +     * One or more machine learning models are present.
    +     * 
    + * + * MODEL = 1; + */ + MODEL(1), + /** + * + * + *
    +     * A table appears to be a text embedding.
    +     * 
    + * + * TEXT_EMBEDDING = 2; + */ + TEXT_EMBEDDING(2), + /** + * + * + *
    +     * The [Cloud SQL Vertex
    +     * AI](https://cloud.google.com/sql/docs/postgres/integrate-cloud-sql-with-vertex-ai)
    +     * plugin is installed on the database.
    +     * 
    + * + * VERTEX_PLUGIN = 3; + */ + VERTEX_PLUGIN(3), + /** + * + * + *
    +     * Support for [Cloud SQL vector
    +     * embeddings](https://cloud.google.com/sql/docs/mysql/enable-vector-search)
    +     * is enabled on the database.
    +     * 
    + * + * VECTOR_PLUGIN = 4; + */ + VECTOR_PLUGIN(4), + /** + * + * + *
    +     * Source code is present.
    +     * 
    + * + * SOURCE_CODE = 5; + */ + SOURCE_CODE(5), + /** + * + * + *
    +     * If the service determines the category type. For example, Vertex AI
    +     * assets would always have a `Category` of `AI`.
    +     * 
    + * + * SERVICE = 6; + */ + SERVICE(6), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * Unused.
    +     * 
    + * + * SIGNAL_UNSPECIFIED = 0; + */ + public static final int SIGNAL_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +     * One or more machine learning models are present.
    +     * 
    + * + * MODEL = 1; + */ + public static final int MODEL_VALUE = 1; + + /** + * + * + *
    +     * A table appears to be a text embedding.
    +     * 
    + * + * TEXT_EMBEDDING = 2; + */ + public static final int TEXT_EMBEDDING_VALUE = 2; + + /** + * + * + *
    +     * The [Cloud SQL Vertex
    +     * AI](https://cloud.google.com/sql/docs/postgres/integrate-cloud-sql-with-vertex-ai)
    +     * plugin is installed on the database.
    +     * 
    + * + * VERTEX_PLUGIN = 3; + */ + public static final int VERTEX_PLUGIN_VALUE = 3; + + /** + * + * + *
    +     * Support for [Cloud SQL vector
    +     * embeddings](https://cloud.google.com/sql/docs/mysql/enable-vector-search)
    +     * is enabled on the database.
    +     * 
    + * + * VECTOR_PLUGIN = 4; + */ + public static final int VECTOR_PLUGIN_VALUE = 4; + + /** + * + * + *
    +     * Source code is present.
    +     * 
    + * + * SOURCE_CODE = 5; + */ + public static final int SOURCE_CODE_VALUE = 5; + + /** + * + * + *
    +     * If the service determines the category type. For example, Vertex AI
    +     * assets would always have a `Category` of `AI`.
    +     * 
    + * + * SERVICE = 6; + */ + public static final int SERVICE_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 Signal 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 Signal forNumber(int value) { + switch (value) { + case 0: + return SIGNAL_UNSPECIFIED; + case 1: + return MODEL; + case 2: + return TEXT_EMBEDDING; + case 3: + return VERTEX_PLUGIN; + case 4: + return VECTOR_PLUGIN; + case 5: + return SOURCE_CODE; + case 6: + return SERVICE; + 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 Signal findValueByNumber(int number) { + return Signal.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.privacy.dlp.v2.Domain.getDescriptor().getEnumTypes().get(1); + } + + private static final Signal[] VALUES = values(); + + public static Signal 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 Signal(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.privacy.dlp.v2.Domain.Signal) + } + + public static final int CATEGORY_FIELD_NUMBER = 1; + private int category_ = 0; + + /** + * + * + *
    +   * A domain category that this profile is related to.
    +   * 
    + * + * .google.privacy.dlp.v2.Domain.Category category = 1; + * + * @return The enum numeric value on the wire for category. + */ + @java.lang.Override + public int getCategoryValue() { + return category_; + } + + /** + * + * + *
    +   * A domain category that this profile is related to.
    +   * 
    + * + * .google.privacy.dlp.v2.Domain.Category category = 1; + * + * @return The category. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.Domain.Category getCategory() { + com.google.privacy.dlp.v2.Domain.Category result = + com.google.privacy.dlp.v2.Domain.Category.forNumber(category_); + return result == null ? com.google.privacy.dlp.v2.Domain.Category.UNRECOGNIZED : result; + } + + public static final int SIGNALS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List signals_; + + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.privacy.dlp.v2.Domain.Signal> + signals_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.privacy.dlp.v2.Domain.Signal>() { + public com.google.privacy.dlp.v2.Domain.Signal convert(java.lang.Integer from) { + com.google.privacy.dlp.v2.Domain.Signal result = + com.google.privacy.dlp.v2.Domain.Signal.forNumber(from); + return result == null ? com.google.privacy.dlp.v2.Domain.Signal.UNRECOGNIZED : result; + } + }; + + /** + * + * + *
    +   * The collection of signals that influenced selection of the category.
    +   * 
    + * + * repeated .google.privacy.dlp.v2.Domain.Signal signals = 2; + * + * @return A list containing the signals. + */ + @java.lang.Override + public java.util.List getSignalsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.privacy.dlp.v2.Domain.Signal>(signals_, signals_converter_); + } + + /** + * + * + *
    +   * The collection of signals that influenced selection of the category.
    +   * 
    + * + * repeated .google.privacy.dlp.v2.Domain.Signal signals = 2; + * + * @return The count of signals. + */ + @java.lang.Override + public int getSignalsCount() { + return signals_.size(); + } + + /** + * + * + *
    +   * The collection of signals that influenced selection of the category.
    +   * 
    + * + * repeated .google.privacy.dlp.v2.Domain.Signal signals = 2; + * + * @param index The index of the element to return. + * @return The signals at the given index. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.Domain.Signal getSignals(int index) { + return signals_converter_.convert(signals_.get(index)); + } + + /** + * + * + *
    +   * The collection of signals that influenced selection of the category.
    +   * 
    + * + * repeated .google.privacy.dlp.v2.Domain.Signal signals = 2; + * + * @return A list containing the enum numeric values on the wire for signals. + */ + @java.lang.Override + public java.util.List getSignalsValueList() { + return signals_; + } + + /** + * + * + *
    +   * The collection of signals that influenced selection of the category.
    +   * 
    + * + * repeated .google.privacy.dlp.v2.Domain.Signal signals = 2; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of signals at the given index. + */ + @java.lang.Override + public int getSignalsValue(int index) { + return signals_.get(index); + } + + private int signalsMemoizedSerializedSize; + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (category_ != com.google.privacy.dlp.v2.Domain.Category.CATEGORY_UNSPECIFIED.getNumber()) { + output.writeEnum(1, category_); + } + if (getSignalsList().size() > 0) { + output.writeUInt32NoTag(18); + output.writeUInt32NoTag(signalsMemoizedSerializedSize); + } + for (int i = 0; i < signals_.size(); i++) { + output.writeEnumNoTag(signals_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (category_ != com.google.privacy.dlp.v2.Domain.Category.CATEGORY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, category_); + } + { + int dataSize = 0; + for (int i = 0; i < signals_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(signals_.get(i)); + } + size += dataSize; + if (!getSignalsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + signalsMemoizedSerializedSize = dataSize; + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.privacy.dlp.v2.Domain)) { + return super.equals(obj); + } + com.google.privacy.dlp.v2.Domain other = (com.google.privacy.dlp.v2.Domain) obj; + + if (category_ != other.category_) return false; + if (!signals_.equals(other.signals_)) 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) + CATEGORY_FIELD_NUMBER; + hash = (53 * hash) + category_; + if (getSignalsCount() > 0) { + hash = (37 * hash) + SIGNALS_FIELD_NUMBER; + hash = (53 * hash) + signals_.hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.privacy.dlp.v2.Domain parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.Domain parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.Domain parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.Domain parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.Domain parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.Domain parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.Domain parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.Domain 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.privacy.dlp.v2.Domain parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.Domain 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.privacy.dlp.v2.Domain parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.Domain 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.privacy.dlp.v2.Domain prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 domain represents a thematic category that a data profile can fall under.
    +   * 
    + * + * Protobuf type {@code google.privacy.dlp.v2.Domain} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.Domain) + com.google.privacy.dlp.v2.DomainOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_Domain_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_Domain_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.Domain.class, + com.google.privacy.dlp.v2.Domain.Builder.class); + } + + // Construct using com.google.privacy.dlp.v2.Domain.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + category_ = 0; + signals_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_Domain_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.Domain getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.Domain.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.Domain build() { + com.google.privacy.dlp.v2.Domain result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.Domain buildPartial() { + com.google.privacy.dlp.v2.Domain result = new com.google.privacy.dlp.v2.Domain(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.privacy.dlp.v2.Domain result) { + if (((bitField0_ & 0x00000002) != 0)) { + signals_ = java.util.Collections.unmodifiableList(signals_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.signals_ = signals_; + } + + private void buildPartial0(com.google.privacy.dlp.v2.Domain result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.category_ = category_; + } + } + + @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.privacy.dlp.v2.Domain) { + return mergeFrom((com.google.privacy.dlp.v2.Domain) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.Domain other) { + if (other == com.google.privacy.dlp.v2.Domain.getDefaultInstance()) return this; + if (other.category_ != 0) { + setCategoryValue(other.getCategoryValue()); + } + if (!other.signals_.isEmpty()) { + if (signals_.isEmpty()) { + signals_ = other.signals_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureSignalsIsMutable(); + signals_.addAll(other.signals_); + } + 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: + { + category_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + int tmpRaw = input.readEnum(); + ensureSignalsIsMutable(); + signals_.add(tmpRaw); + break; + } // case 16 + case 18: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureSignalsIsMutable(); + signals_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int category_ = 0; + + /** + * + * + *
    +     * A domain category that this profile is related to.
    +     * 
    + * + * .google.privacy.dlp.v2.Domain.Category category = 1; + * + * @return The enum numeric value on the wire for category. + */ + @java.lang.Override + public int getCategoryValue() { + return category_; + } + + /** + * + * + *
    +     * A domain category that this profile is related to.
    +     * 
    + * + * .google.privacy.dlp.v2.Domain.Category category = 1; + * + * @param value The enum numeric value on the wire for category to set. + * @return This builder for chaining. + */ + public Builder setCategoryValue(int value) { + category_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * A domain category that this profile is related to.
    +     * 
    + * + * .google.privacy.dlp.v2.Domain.Category category = 1; + * + * @return The category. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.Domain.Category getCategory() { + com.google.privacy.dlp.v2.Domain.Category result = + com.google.privacy.dlp.v2.Domain.Category.forNumber(category_); + return result == null ? com.google.privacy.dlp.v2.Domain.Category.UNRECOGNIZED : result; + } + + /** + * + * + *
    +     * A domain category that this profile is related to.
    +     * 
    + * + * .google.privacy.dlp.v2.Domain.Category category = 1; + * + * @param value The category to set. + * @return This builder for chaining. + */ + public Builder setCategory(com.google.privacy.dlp.v2.Domain.Category value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + category_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +     * A domain category that this profile is related to.
    +     * 
    + * + * .google.privacy.dlp.v2.Domain.Category category = 1; + * + * @return This builder for chaining. + */ + public Builder clearCategory() { + bitField0_ = (bitField0_ & ~0x00000001); + category_ = 0; + onChanged(); + return this; + } + + private java.util.List signals_ = java.util.Collections.emptyList(); + + private void ensureSignalsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + signals_ = new java.util.ArrayList(signals_); + bitField0_ |= 0x00000002; + } + } + + /** + * + * + *
    +     * The collection of signals that influenced selection of the category.
    +     * 
    + * + * repeated .google.privacy.dlp.v2.Domain.Signal signals = 2; + * + * @return A list containing the signals. + */ + public java.util.List getSignalsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.privacy.dlp.v2.Domain.Signal>(signals_, signals_converter_); + } + + /** + * + * + *
    +     * The collection of signals that influenced selection of the category.
    +     * 
    + * + * repeated .google.privacy.dlp.v2.Domain.Signal signals = 2; + * + * @return The count of signals. + */ + public int getSignalsCount() { + return signals_.size(); + } + + /** + * + * + *
    +     * The collection of signals that influenced selection of the category.
    +     * 
    + * + * repeated .google.privacy.dlp.v2.Domain.Signal signals = 2; + * + * @param index The index of the element to return. + * @return The signals at the given index. + */ + public com.google.privacy.dlp.v2.Domain.Signal getSignals(int index) { + return signals_converter_.convert(signals_.get(index)); + } + + /** + * + * + *
    +     * The collection of signals that influenced selection of the category.
    +     * 
    + * + * repeated .google.privacy.dlp.v2.Domain.Signal signals = 2; + * + * @param index The index to set the value at. + * @param value The signals to set. + * @return This builder for chaining. + */ + public Builder setSignals(int index, com.google.privacy.dlp.v2.Domain.Signal value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSignalsIsMutable(); + signals_.set(index, value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
    +     * The collection of signals that influenced selection of the category.
    +     * 
    + * + * repeated .google.privacy.dlp.v2.Domain.Signal signals = 2; + * + * @param value The signals to add. + * @return This builder for chaining. + */ + public Builder addSignals(com.google.privacy.dlp.v2.Domain.Signal value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSignalsIsMutable(); + signals_.add(value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
    +     * The collection of signals that influenced selection of the category.
    +     * 
    + * + * repeated .google.privacy.dlp.v2.Domain.Signal signals = 2; + * + * @param values The signals to add. + * @return This builder for chaining. + */ + public Builder addAllSignals( + java.lang.Iterable values) { + ensureSignalsIsMutable(); + for (com.google.privacy.dlp.v2.Domain.Signal value : values) { + signals_.add(value.getNumber()); + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * The collection of signals that influenced selection of the category.
    +     * 
    + * + * repeated .google.privacy.dlp.v2.Domain.Signal signals = 2; + * + * @return This builder for chaining. + */ + public Builder clearSignals() { + signals_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * The collection of signals that influenced selection of the category.
    +     * 
    + * + * repeated .google.privacy.dlp.v2.Domain.Signal signals = 2; + * + * @return A list containing the enum numeric values on the wire for signals. + */ + public java.util.List getSignalsValueList() { + return java.util.Collections.unmodifiableList(signals_); + } + + /** + * + * + *
    +     * The collection of signals that influenced selection of the category.
    +     * 
    + * + * repeated .google.privacy.dlp.v2.Domain.Signal signals = 2; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of signals at the given index. + */ + public int getSignalsValue(int index) { + return signals_.get(index); + } + + /** + * + * + *
    +     * The collection of signals that influenced selection of the category.
    +     * 
    + * + * repeated .google.privacy.dlp.v2.Domain.Signal signals = 2; + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for signals to set. + * @return This builder for chaining. + */ + public Builder setSignalsValue(int index, int value) { + ensureSignalsIsMutable(); + signals_.set(index, value); + onChanged(); + return this; + } + + /** + * + * + *
    +     * The collection of signals that influenced selection of the category.
    +     * 
    + * + * repeated .google.privacy.dlp.v2.Domain.Signal signals = 2; + * + * @param value The enum numeric value on the wire for signals to add. + * @return This builder for chaining. + */ + public Builder addSignalsValue(int value) { + ensureSignalsIsMutable(); + signals_.add(value); + onChanged(); + return this; + } + + /** + * + * + *
    +     * The collection of signals that influenced selection of the category.
    +     * 
    + * + * repeated .google.privacy.dlp.v2.Domain.Signal signals = 2; + * + * @param values The enum numeric values on the wire for signals to add. + * @return This builder for chaining. + */ + public Builder addAllSignalsValue(java.lang.Iterable values) { + ensureSignalsIsMutable(); + for (int value : values) { + signals_.add(value); + } + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.Domain) + } + + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.Domain) + private static final com.google.privacy.dlp.v2.Domain DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.Domain(); + } + + public static com.google.privacy.dlp.v2.Domain getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Domain parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.Domain getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DomainOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DomainOrBuilder.java new file mode 100644 index 000000000000..7f3d7956cf1f --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DomainOrBuilder.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/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.8 +package com.google.privacy.dlp.v2; + +public interface DomainOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.Domain) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * A domain category that this profile is related to.
    +   * 
    + * + * .google.privacy.dlp.v2.Domain.Category category = 1; + * + * @return The enum numeric value on the wire for category. + */ + int getCategoryValue(); + + /** + * + * + *
    +   * A domain category that this profile is related to.
    +   * 
    + * + * .google.privacy.dlp.v2.Domain.Category category = 1; + * + * @return The category. + */ + com.google.privacy.dlp.v2.Domain.Category getCategory(); + + /** + * + * + *
    +   * The collection of signals that influenced selection of the category.
    +   * 
    + * + * repeated .google.privacy.dlp.v2.Domain.Signal signals = 2; + * + * @return A list containing the signals. + */ + java.util.List getSignalsList(); + + /** + * + * + *
    +   * The collection of signals that influenced selection of the category.
    +   * 
    + * + * repeated .google.privacy.dlp.v2.Domain.Signal signals = 2; + * + * @return The count of signals. + */ + int getSignalsCount(); + + /** + * + * + *
    +   * The collection of signals that influenced selection of the category.
    +   * 
    + * + * repeated .google.privacy.dlp.v2.Domain.Signal signals = 2; + * + * @param index The index of the element to return. + * @return The signals at the given index. + */ + com.google.privacy.dlp.v2.Domain.Signal getSignals(int index); + + /** + * + * + *
    +   * The collection of signals that influenced selection of the category.
    +   * 
    + * + * repeated .google.privacy.dlp.v2.Domain.Signal signals = 2; + * + * @return A list containing the enum numeric values on the wire for signals. + */ + java.util.List getSignalsValueList(); + + /** + * + * + *
    +   * The collection of signals that influenced selection of the category.
    +   * 
    + * + * repeated .google.privacy.dlp.v2.Domain.Signal signals = 2; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of signals at the given index. + */ + int getSignalsValue(int index); +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileStoreDataProfile.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileStoreDataProfile.java index 181d28988080..dd35dc391da9 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileStoreDataProfile.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileStoreDataProfile.java @@ -57,6 +57,7 @@ private FileStoreDataProfile() { fileStoreInfoTypeSummaries_ = java.util.Collections.emptyList(); tags_ = java.util.Collections.emptyList(); relatedResources_ = java.util.Collections.emptyList(); + domains_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -1892,6 +1893,82 @@ public com.google.privacy.dlp.v2.RelatedResourceOrBuilder getRelatedResourcesOrB return relatedResources_.get(index); } + public static final int DOMAINS_FIELD_NUMBER = 27; + + @SuppressWarnings("serial") + private java.util.List domains_; + + /** + * + * + *
    +   * Domains associated with the profile.
    +   * 
    + * + * repeated .google.privacy.dlp.v2.Domain domains = 27; + */ + @java.lang.Override + public java.util.List getDomainsList() { + return domains_; + } + + /** + * + * + *
    +   * Domains associated with the profile.
    +   * 
    + * + * repeated .google.privacy.dlp.v2.Domain domains = 27; + */ + @java.lang.Override + public java.util.List + getDomainsOrBuilderList() { + return domains_; + } + + /** + * + * + *
    +   * Domains associated with the profile.
    +   * 
    + * + * repeated .google.privacy.dlp.v2.Domain domains = 27; + */ + @java.lang.Override + public int getDomainsCount() { + return domains_.size(); + } + + /** + * + * + *
    +   * Domains associated with the profile.
    +   * 
    + * + * repeated .google.privacy.dlp.v2.Domain domains = 27; + */ + @java.lang.Override + public com.google.privacy.dlp.v2.Domain getDomains(int index) { + return domains_.get(index); + } + + /** + * + * + *
    +   * Domains associated with the profile.
    +   * 
    + * + * repeated .google.privacy.dlp.v2.Domain domains = 27; + */ + @java.lang.Override + public com.google.privacy.dlp.v2.DomainOrBuilder getDomainsOrBuilder(int index) { + return domains_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1989,6 +2066,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < relatedResources_.size(); i++) { output.writeMessage(26, relatedResources_.get(i)); } + for (int i = 0; i < domains_.size(); i++) { + output.writeMessage(27, domains_.get(i)); + } getUnknownFields().writeTo(output); } @@ -2106,6 +2186,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(26, relatedResources_.get(i)); } + for (int i = 0; i < domains_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(27, domains_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2177,6 +2260,7 @@ public boolean equals(final java.lang.Object obj) { if (getFileStoreIsEmpty() != other.getFileStoreIsEmpty()) return false; if (!getTagsList().equals(other.getTagsList())) return false; if (!getRelatedResourcesList().equals(other.getRelatedResourcesList())) return false; + if (!getDomainsList().equals(other.getDomainsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2272,6 +2356,10 @@ public int hashCode() { hash = (37 * hash) + RELATED_RESOURCES_FIELD_NUMBER; hash = (53 * hash) + getRelatedResourcesList().hashCode(); } + if (getDomainsCount() > 0) { + hash = (37 * hash) + DOMAINS_FIELD_NUMBER; + hash = (53 * hash) + getDomainsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2455,6 +2543,7 @@ private void maybeForceBuilderInitialization() { getSampleFindingsTableFieldBuilder(); getTagsFieldBuilder(); getRelatedResourcesFieldBuilder(); + getDomainsFieldBuilder(); } } @@ -2548,6 +2637,13 @@ public Builder clear() { relatedResourcesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x02000000); + if (domainsBuilder_ == null) { + domains_ = java.util.Collections.emptyList(); + } else { + domains_ = null; + domainsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x04000000); return this; } @@ -2621,6 +2717,15 @@ private void buildPartialRepeatedFields(com.google.privacy.dlp.v2.FileStoreDataP } else { result.relatedResources_ = relatedResourcesBuilder_.build(); } + if (domainsBuilder_ == null) { + if (((bitField0_ & 0x04000000) != 0)) { + domains_ = java.util.Collections.unmodifiableList(domains_); + bitField0_ = (bitField0_ & ~0x04000000); + } + result.domains_ = domains_; + } else { + result.domains_ = domainsBuilder_.build(); + } } private void buildPartial0(com.google.privacy.dlp.v2.FileStoreDataProfile result) { @@ -2958,6 +3063,33 @@ public Builder mergeFrom(com.google.privacy.dlp.v2.FileStoreDataProfile other) { } } } + if (domainsBuilder_ == null) { + if (!other.domains_.isEmpty()) { + if (domains_.isEmpty()) { + domains_ = other.domains_; + bitField0_ = (bitField0_ & ~0x04000000); + } else { + ensureDomainsIsMutable(); + domains_.addAll(other.domains_); + } + onChanged(); + } + } else { + if (!other.domains_.isEmpty()) { + if (domainsBuilder_.isEmpty()) { + domainsBuilder_.dispose(); + domainsBuilder_ = null; + domains_ = other.domains_; + bitField0_ = (bitField0_ & ~0x04000000); + domainsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDomainsFieldBuilder() + : null; + } else { + domainsBuilder_.addAllMessages(other.domains_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -3186,6 +3318,18 @@ public Builder mergeFrom( } break; } // case 210 + case 218: + { + com.google.privacy.dlp.v2.Domain m = + input.readMessage(com.google.privacy.dlp.v2.Domain.parser(), extensionRegistry); + if (domainsBuilder_ == null) { + ensureDomainsIsMutable(); + domains_.add(m); + } else { + domainsBuilder_.addMessage(m); + } + break; + } // case 218 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -8312,6 +8456,369 @@ public com.google.privacy.dlp.v2.RelatedResource.Builder addRelatedResourcesBuil return relatedResourcesBuilder_; } + private java.util.List domains_ = + java.util.Collections.emptyList(); + + private void ensureDomainsIsMutable() { + if (!((bitField0_ & 0x04000000) != 0)) { + domains_ = new java.util.ArrayList(domains_); + bitField0_ |= 0x04000000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.Domain, + com.google.privacy.dlp.v2.Domain.Builder, + com.google.privacy.dlp.v2.DomainOrBuilder> + domainsBuilder_; + + /** + * + * + *
    +     * Domains associated with the profile.
    +     * 
    + * + * repeated .google.privacy.dlp.v2.Domain domains = 27; + */ + public java.util.List getDomainsList() { + if (domainsBuilder_ == null) { + return java.util.Collections.unmodifiableList(domains_); + } else { + return domainsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * Domains associated with the profile.
    +     * 
    + * + * repeated .google.privacy.dlp.v2.Domain domains = 27; + */ + public int getDomainsCount() { + if (domainsBuilder_ == null) { + return domains_.size(); + } else { + return domainsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * Domains associated with the profile.
    +     * 
    + * + * repeated .google.privacy.dlp.v2.Domain domains = 27; + */ + public com.google.privacy.dlp.v2.Domain getDomains(int index) { + if (domainsBuilder_ == null) { + return domains_.get(index); + } else { + return domainsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * Domains associated with the profile.
    +     * 
    + * + * repeated .google.privacy.dlp.v2.Domain domains = 27; + */ + public Builder setDomains(int index, com.google.privacy.dlp.v2.Domain value) { + if (domainsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDomainsIsMutable(); + domains_.set(index, value); + onChanged(); + } else { + domainsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Domains associated with the profile.
    +     * 
    + * + * repeated .google.privacy.dlp.v2.Domain domains = 27; + */ + public Builder setDomains(int index, com.google.privacy.dlp.v2.Domain.Builder builderForValue) { + if (domainsBuilder_ == null) { + ensureDomainsIsMutable(); + domains_.set(index, builderForValue.build()); + onChanged(); + } else { + domainsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Domains associated with the profile.
    +     * 
    + * + * repeated .google.privacy.dlp.v2.Domain domains = 27; + */ + public Builder addDomains(com.google.privacy.dlp.v2.Domain value) { + if (domainsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDomainsIsMutable(); + domains_.add(value); + onChanged(); + } else { + domainsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * Domains associated with the profile.
    +     * 
    + * + * repeated .google.privacy.dlp.v2.Domain domains = 27; + */ + public Builder addDomains(int index, com.google.privacy.dlp.v2.Domain value) { + if (domainsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDomainsIsMutable(); + domains_.add(index, value); + onChanged(); + } else { + domainsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Domains associated with the profile.
    +     * 
    + * + * repeated .google.privacy.dlp.v2.Domain domains = 27; + */ + public Builder addDomains(com.google.privacy.dlp.v2.Domain.Builder builderForValue) { + if (domainsBuilder_ == null) { + ensureDomainsIsMutable(); + domains_.add(builderForValue.build()); + onChanged(); + } else { + domainsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Domains associated with the profile.
    +     * 
    + * + * repeated .google.privacy.dlp.v2.Domain domains = 27; + */ + public Builder addDomains(int index, com.google.privacy.dlp.v2.Domain.Builder builderForValue) { + if (domainsBuilder_ == null) { + ensureDomainsIsMutable(); + domains_.add(index, builderForValue.build()); + onChanged(); + } else { + domainsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Domains associated with the profile.
    +     * 
    + * + * repeated .google.privacy.dlp.v2.Domain domains = 27; + */ + public Builder addAllDomains( + java.lang.Iterable values) { + if (domainsBuilder_ == null) { + ensureDomainsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, domains_); + onChanged(); + } else { + domainsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * Domains associated with the profile.
    +     * 
    + * + * repeated .google.privacy.dlp.v2.Domain domains = 27; + */ + public Builder clearDomains() { + if (domainsBuilder_ == null) { + domains_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x04000000); + onChanged(); + } else { + domainsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Domains associated with the profile.
    +     * 
    + * + * repeated .google.privacy.dlp.v2.Domain domains = 27; + */ + public Builder removeDomains(int index) { + if (domainsBuilder_ == null) { + ensureDomainsIsMutable(); + domains_.remove(index); + onChanged(); + } else { + domainsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * Domains associated with the profile.
    +     * 
    + * + * repeated .google.privacy.dlp.v2.Domain domains = 27; + */ + public com.google.privacy.dlp.v2.Domain.Builder getDomainsBuilder(int index) { + return getDomainsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * Domains associated with the profile.
    +     * 
    + * + * repeated .google.privacy.dlp.v2.Domain domains = 27; + */ + public com.google.privacy.dlp.v2.DomainOrBuilder getDomainsOrBuilder(int index) { + if (domainsBuilder_ == null) { + return domains_.get(index); + } else { + return domainsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * Domains associated with the profile.
    +     * 
    + * + * repeated .google.privacy.dlp.v2.Domain domains = 27; + */ + public java.util.List + getDomainsOrBuilderList() { + if (domainsBuilder_ != null) { + return domainsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(domains_); + } + } + + /** + * + * + *
    +     * Domains associated with the profile.
    +     * 
    + * + * repeated .google.privacy.dlp.v2.Domain domains = 27; + */ + public com.google.privacy.dlp.v2.Domain.Builder addDomainsBuilder() { + return getDomainsFieldBuilder() + .addBuilder(com.google.privacy.dlp.v2.Domain.getDefaultInstance()); + } + + /** + * + * + *
    +     * Domains associated with the profile.
    +     * 
    + * + * repeated .google.privacy.dlp.v2.Domain domains = 27; + */ + public com.google.privacy.dlp.v2.Domain.Builder addDomainsBuilder(int index) { + return getDomainsFieldBuilder() + .addBuilder(index, com.google.privacy.dlp.v2.Domain.getDefaultInstance()); + } + + /** + * + * + *
    +     * Domains associated with the profile.
    +     * 
    + * + * repeated .google.privacy.dlp.v2.Domain domains = 27; + */ + public java.util.List getDomainsBuilderList() { + return getDomainsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.Domain, + com.google.privacy.dlp.v2.Domain.Builder, + com.google.privacy.dlp.v2.DomainOrBuilder> + getDomainsFieldBuilder() { + if (domainsBuilder_ == null) { + domainsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.Domain, + com.google.privacy.dlp.v2.Domain.Builder, + com.google.privacy.dlp.v2.DomainOrBuilder>( + domains_, ((bitField0_ & 0x04000000) != 0), getParentForChildren(), isClean()); + domains_ = null; + } + return domainsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileStoreDataProfileOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileStoreDataProfileOrBuilder.java index abdd9938d58b..0de9d260de72 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileStoreDataProfileOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileStoreDataProfileOrBuilder.java @@ -1104,4 +1104,59 @@ java.lang.String getResourceLabelsOrDefault( * repeated .google.privacy.dlp.v2.RelatedResource related_resources = 26; */ com.google.privacy.dlp.v2.RelatedResourceOrBuilder getRelatedResourcesOrBuilder(int index); + + /** + * + * + *
    +   * Domains associated with the profile.
    +   * 
    + * + * repeated .google.privacy.dlp.v2.Domain domains = 27; + */ + java.util.List getDomainsList(); + + /** + * + * + *
    +   * Domains associated with the profile.
    +   * 
    + * + * repeated .google.privacy.dlp.v2.Domain domains = 27; + */ + com.google.privacy.dlp.v2.Domain getDomains(int index); + + /** + * + * + *
    +   * Domains associated with the profile.
    +   * 
    + * + * repeated .google.privacy.dlp.v2.Domain domains = 27; + */ + int getDomainsCount(); + + /** + * + * + *
    +   * Domains associated with the profile.
    +   * 
    + * + * repeated .google.privacy.dlp.v2.Domain domains = 27; + */ + java.util.List getDomainsOrBuilderList(); + + /** + * + * + *
    +   * Domains associated with the profile.
    +   * 
    + * + * repeated .google.privacy.dlp.v2.Domain domains = 27; + */ + com.google.privacy.dlp.v2.DomainOrBuilder getDomainsOrBuilder(int index); } diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeCategory.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeCategory.java index 729b1635a54e..5e959738221c 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeCategory.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeCategory.java @@ -125,6 +125,16 @@ public enum LocationCategory implements com.google.protobuf.ProtocolMessageEnum * AUSTRALIA = 3; */ AUSTRALIA(3), + /** + * + * + *
    +     * The infoType is typically used in Austria.
    +     * 
    + * + * AUSTRIA = 53; + */ + AUSTRIA(53), /** * * @@ -654,6 +664,17 @@ public enum LocationCategory implements com.google.protobuf.ProtocolMessageEnum */ public static final int AUSTRALIA_VALUE = 3; + /** + * + * + *
    +     * The infoType is typically used in Austria.
    +     * 
    + * + * AUSTRIA = 53; + */ + public static final int AUSTRIA_VALUE = 53; + /** * * @@ -1205,6 +1226,8 @@ public static LocationCategory forNumber(int value) { return ARMENIA; case 3: return AUSTRALIA; + case 53: + return AUSTRIA; case 48: return AZERBAIJAN; case 50: diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeDescription.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeDescription.java index 8870f2090a56..66bbaeb979f8 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeDescription.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeDescription.java @@ -338,6 +338,59 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } + public static final int LOCATION_SUPPORT_FIELD_NUMBER = 6; + private com.google.privacy.dlp.v2.LocationSupport locationSupport_; + + /** + * + * + *
    +   * Locations at which this feature can be used. May change over time.
    +   * 
    + * + * .google.privacy.dlp.v2.LocationSupport location_support = 6; + * + * @return Whether the locationSupport field is set. + */ + @java.lang.Override + public boolean hasLocationSupport() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Locations at which this feature can be used. May change over time.
    +   * 
    + * + * .google.privacy.dlp.v2.LocationSupport location_support = 6; + * + * @return The locationSupport. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.LocationSupport getLocationSupport() { + return locationSupport_ == null + ? com.google.privacy.dlp.v2.LocationSupport.getDefaultInstance() + : locationSupport_; + } + + /** + * + * + *
    +   * Locations at which this feature can be used. May change over time.
    +   * 
    + * + * .google.privacy.dlp.v2.LocationSupport location_support = 6; + */ + @java.lang.Override + public com.google.privacy.dlp.v2.LocationSupportOrBuilder getLocationSupportOrBuilder() { + return locationSupport_ == null + ? com.google.privacy.dlp.v2.LocationSupport.getDefaultInstance() + : locationSupport_; + } + public static final int EXAMPLE_FIELD_NUMBER = 8; @SuppressWarnings("serial") @@ -559,7 +612,7 @@ public com.google.privacy.dlp.v2.InfoTypeCategoryOrBuilder getCategoriesOrBuilde */ @java.lang.Override public boolean hasSensitivityScore() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** @@ -711,6 +764,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(6, getLocationSupport()); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(example_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, example_); } @@ -720,7 +776,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < categories_.size(); i++) { output.writeMessage(10, categories_.get(i)); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(11, getSensitivityScore()); } for (int i = 0; i < specificInfoTypes_.size(); i++) { @@ -756,6 +812,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getLocationSupport()); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(example_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, example_); } @@ -765,7 +824,7 @@ public int getSerializedSize() { for (int i = 0; i < categories_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, categories_.get(i)); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getSensitivityScore()); } { @@ -796,6 +855,10 @@ public boolean equals(final java.lang.Object obj) { if (!getDisplayName().equals(other.getDisplayName())) return false; if (!supportedBy_.equals(other.supportedBy_)) return false; if (!getDescription().equals(other.getDescription())) return false; + if (hasLocationSupport() != other.hasLocationSupport()) return false; + if (hasLocationSupport()) { + if (!getLocationSupport().equals(other.getLocationSupport())) return false; + } if (!getExample().equals(other.getExample())) return false; if (!getVersionsList().equals(other.getVersionsList())) return false; if (!getCategoriesList().equals(other.getCategoriesList())) return false; @@ -825,6 +888,10 @@ public int hashCode() { } hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); + if (hasLocationSupport()) { + hash = (37 * hash) + LOCATION_SUPPORT_FIELD_NUMBER; + hash = (53 * hash) + getLocationSupport().hashCode(); + } hash = (37 * hash) + EXAMPLE_FIELD_NUMBER; hash = (53 * hash) + getExample().hashCode(); if (getVersionsCount() > 0) { @@ -984,6 +1051,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getLocationSupportFieldBuilder(); getVersionsFieldBuilder(); getCategoriesFieldBuilder(); getSensitivityScoreFieldBuilder(); @@ -999,6 +1067,11 @@ public Builder clear() { supportedBy_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); description_ = ""; + locationSupport_ = null; + if (locationSupportBuilder_ != null) { + locationSupportBuilder_.dispose(); + locationSupportBuilder_ = null; + } example_ = ""; if (versionsBuilder_ == null) { versions_ = java.util.Collections.emptyList(); @@ -1006,14 +1079,14 @@ public Builder clear() { versions_ = null; versionsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); if (categoriesBuilder_ == null) { categories_ = java.util.Collections.emptyList(); } else { categories_ = null; categoriesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); sensitivityScore_ = null; if (sensitivityScoreBuilder_ != null) { sensitivityScoreBuilder_.dispose(); @@ -1062,18 +1135,18 @@ private void buildPartialRepeatedFields(com.google.privacy.dlp.v2.InfoTypeDescri } result.supportedBy_ = supportedBy_; if (versionsBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { versions_ = java.util.Collections.unmodifiableList(versions_); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); } result.versions_ = versions_; } else { result.versions_ = versionsBuilder_.build(); } if (categoriesBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { categories_ = java.util.Collections.unmodifiableList(categories_); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); } result.categories_ = categories_; } else { @@ -1092,16 +1165,21 @@ private void buildPartial0(com.google.privacy.dlp.v2.InfoTypeDescription result) if (((from_bitField0_ & 0x00000008) != 0)) { result.description_ = description_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000010) != 0)) { + result.locationSupport_ = + locationSupportBuilder_ == null ? locationSupport_ : locationSupportBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { result.example_ = example_; } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.sensitivityScore_ = sensitivityScoreBuilder_ == null ? sensitivityScore_ : sensitivityScoreBuilder_.build(); - to_bitField0_ |= 0x00000001; + to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { specificInfoTypes_.makeImmutable(); result.specificInfoTypes_ = specificInfoTypes_; } @@ -1178,16 +1256,19 @@ public Builder mergeFrom(com.google.privacy.dlp.v2.InfoTypeDescription other) { bitField0_ |= 0x00000008; onChanged(); } + if (other.hasLocationSupport()) { + mergeLocationSupport(other.getLocationSupport()); + } if (!other.getExample().isEmpty()) { example_ = other.example_; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); } if (versionsBuilder_ == null) { if (!other.versions_.isEmpty()) { if (versions_.isEmpty()) { versions_ = other.versions_; - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); } else { ensureVersionsIsMutable(); versions_.addAll(other.versions_); @@ -1200,7 +1281,7 @@ public Builder mergeFrom(com.google.privacy.dlp.v2.InfoTypeDescription other) { versionsBuilder_.dispose(); versionsBuilder_ = null; versions_ = other.versions_; - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); versionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getVersionsFieldBuilder() @@ -1214,7 +1295,7 @@ public Builder mergeFrom(com.google.privacy.dlp.v2.InfoTypeDescription other) { if (!other.categories_.isEmpty()) { if (categories_.isEmpty()) { categories_ = other.categories_; - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); } else { ensureCategoriesIsMutable(); categories_.addAll(other.categories_); @@ -1227,7 +1308,7 @@ public Builder mergeFrom(com.google.privacy.dlp.v2.InfoTypeDescription other) { categoriesBuilder_.dispose(); categoriesBuilder_ = null; categories_ = other.categories_; - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); categoriesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCategoriesFieldBuilder() @@ -1243,7 +1324,7 @@ public Builder mergeFrom(com.google.privacy.dlp.v2.InfoTypeDescription other) { if (!other.specificInfoTypes_.isEmpty()) { if (specificInfoTypes_.isEmpty()) { specificInfoTypes_ = other.specificInfoTypes_; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; } else { ensureSpecificInfoTypesIsMutable(); specificInfoTypes_.addAll(other.specificInfoTypes_); @@ -1313,10 +1394,16 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 34 + case 50: + { + input.readMessage(getLocationSupportFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 50 case 66: { example_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 66 case 74: @@ -1349,7 +1436,7 @@ public Builder mergeFrom( { input.readMessage( getSensitivityScoreFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 90 case 98: @@ -1949,6 +2036,201 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.privacy.dlp.v2.LocationSupport locationSupport_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.LocationSupport, + com.google.privacy.dlp.v2.LocationSupport.Builder, + com.google.privacy.dlp.v2.LocationSupportOrBuilder> + locationSupportBuilder_; + + /** + * + * + *
    +     * Locations at which this feature can be used. May change over time.
    +     * 
    + * + * .google.privacy.dlp.v2.LocationSupport location_support = 6; + * + * @return Whether the locationSupport field is set. + */ + public boolean hasLocationSupport() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
    +     * Locations at which this feature can be used. May change over time.
    +     * 
    + * + * .google.privacy.dlp.v2.LocationSupport location_support = 6; + * + * @return The locationSupport. + */ + public com.google.privacy.dlp.v2.LocationSupport getLocationSupport() { + if (locationSupportBuilder_ == null) { + return locationSupport_ == null + ? com.google.privacy.dlp.v2.LocationSupport.getDefaultInstance() + : locationSupport_; + } else { + return locationSupportBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Locations at which this feature can be used. May change over time.
    +     * 
    + * + * .google.privacy.dlp.v2.LocationSupport location_support = 6; + */ + public Builder setLocationSupport(com.google.privacy.dlp.v2.LocationSupport value) { + if (locationSupportBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + locationSupport_ = value; + } else { + locationSupportBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Locations at which this feature can be used. May change over time.
    +     * 
    + * + * .google.privacy.dlp.v2.LocationSupport location_support = 6; + */ + public Builder setLocationSupport( + com.google.privacy.dlp.v2.LocationSupport.Builder builderForValue) { + if (locationSupportBuilder_ == null) { + locationSupport_ = builderForValue.build(); + } else { + locationSupportBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Locations at which this feature can be used. May change over time.
    +     * 
    + * + * .google.privacy.dlp.v2.LocationSupport location_support = 6; + */ + public Builder mergeLocationSupport(com.google.privacy.dlp.v2.LocationSupport value) { + if (locationSupportBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && locationSupport_ != null + && locationSupport_ != com.google.privacy.dlp.v2.LocationSupport.getDefaultInstance()) { + getLocationSupportBuilder().mergeFrom(value); + } else { + locationSupport_ = value; + } + } else { + locationSupportBuilder_.mergeFrom(value); + } + if (locationSupport_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Locations at which this feature can be used. May change over time.
    +     * 
    + * + * .google.privacy.dlp.v2.LocationSupport location_support = 6; + */ + public Builder clearLocationSupport() { + bitField0_ = (bitField0_ & ~0x00000010); + locationSupport_ = null; + if (locationSupportBuilder_ != null) { + locationSupportBuilder_.dispose(); + locationSupportBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Locations at which this feature can be used. May change over time.
    +     * 
    + * + * .google.privacy.dlp.v2.LocationSupport location_support = 6; + */ + public com.google.privacy.dlp.v2.LocationSupport.Builder getLocationSupportBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getLocationSupportFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Locations at which this feature can be used. May change over time.
    +     * 
    + * + * .google.privacy.dlp.v2.LocationSupport location_support = 6; + */ + public com.google.privacy.dlp.v2.LocationSupportOrBuilder getLocationSupportOrBuilder() { + if (locationSupportBuilder_ != null) { + return locationSupportBuilder_.getMessageOrBuilder(); + } else { + return locationSupport_ == null + ? com.google.privacy.dlp.v2.LocationSupport.getDefaultInstance() + : locationSupport_; + } + } + + /** + * + * + *
    +     * Locations at which this feature can be used. May change over time.
    +     * 
    + * + * .google.privacy.dlp.v2.LocationSupport location_support = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.LocationSupport, + com.google.privacy.dlp.v2.LocationSupport.Builder, + com.google.privacy.dlp.v2.LocationSupportOrBuilder> + getLocationSupportFieldBuilder() { + if (locationSupportBuilder_ == null) { + locationSupportBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.LocationSupport, + com.google.privacy.dlp.v2.LocationSupport.Builder, + com.google.privacy.dlp.v2.LocationSupportOrBuilder>( + getLocationSupport(), getParentForChildren(), isClean()); + locationSupport_ = null; + } + return locationSupportBuilder_; + } + private java.lang.Object example_ = ""; /** @@ -2014,7 +2296,7 @@ public Builder setExample(java.lang.String value) { throw new NullPointerException(); } example_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2032,7 +2314,7 @@ public Builder setExample(java.lang.String value) { */ public Builder clearExample() { example_ = getDefaultInstance().getExample(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -2055,7 +2337,7 @@ public Builder setExampleBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); example_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2064,10 +2346,10 @@ public Builder setExampleBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureVersionsIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { + if (!((bitField0_ & 0x00000040) != 0)) { versions_ = new java.util.ArrayList(versions_); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; } } @@ -2293,7 +2575,7 @@ public Builder addAllVersions( public Builder clearVersions() { if (versionsBuilder_ == null) { versions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { versionsBuilder_.clear(); @@ -2422,7 +2704,7 @@ public com.google.privacy.dlp.v2.VersionDescription.Builder addVersionsBuilder(i com.google.privacy.dlp.v2.VersionDescription, com.google.privacy.dlp.v2.VersionDescription.Builder, com.google.privacy.dlp.v2.VersionDescriptionOrBuilder>( - versions_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); + versions_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); versions_ = null; } return versionsBuilder_; @@ -2432,10 +2714,10 @@ public com.google.privacy.dlp.v2.VersionDescription.Builder addVersionsBuilder(i java.util.Collections.emptyList(); private void ensureCategoriesIsMutable() { - if (!((bitField0_ & 0x00000040) != 0)) { + if (!((bitField0_ & 0x00000080) != 0)) { categories_ = new java.util.ArrayList(categories_); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; } } @@ -2661,7 +2943,7 @@ public Builder addAllCategories( public Builder clearCategories() { if (categoriesBuilder_ == null) { categories_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { categoriesBuilder_.clear(); @@ -2790,7 +3072,7 @@ public com.google.privacy.dlp.v2.InfoTypeCategory.Builder addCategoriesBuilder(i com.google.privacy.dlp.v2.InfoTypeCategory, com.google.privacy.dlp.v2.InfoTypeCategory.Builder, com.google.privacy.dlp.v2.InfoTypeCategoryOrBuilder>( - categories_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); + categories_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); categories_ = null; } return categoriesBuilder_; @@ -2815,7 +3097,7 @@ public com.google.privacy.dlp.v2.InfoTypeCategory.Builder addCategoriesBuilder(i * @return Whether the sensitivityScore field is set. */ public boolean hasSensitivityScore() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -2857,7 +3139,7 @@ public Builder setSensitivityScore(com.google.privacy.dlp.v2.SensitivityScore va } else { sensitivityScoreBuilder_.setMessage(value); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2878,7 +3160,7 @@ public Builder setSensitivityScore( } else { sensitivityScoreBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2894,7 +3176,7 @@ public Builder setSensitivityScore( */ public Builder mergeSensitivityScore(com.google.privacy.dlp.v2.SensitivityScore value) { if (sensitivityScoreBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) + if (((bitField0_ & 0x00000100) != 0) && sensitivityScore_ != null && sensitivityScore_ != com.google.privacy.dlp.v2.SensitivityScore.getDefaultInstance()) { @@ -2906,7 +3188,7 @@ public Builder mergeSensitivityScore(com.google.privacy.dlp.v2.SensitivityScore sensitivityScoreBuilder_.mergeFrom(value); } if (sensitivityScore_ != null) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } return this; @@ -2922,7 +3204,7 @@ public Builder mergeSensitivityScore(com.google.privacy.dlp.v2.SensitivityScore * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 11; */ public Builder clearSensitivityScore() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); sensitivityScore_ = null; if (sensitivityScoreBuilder_ != null) { sensitivityScoreBuilder_.dispose(); @@ -2942,7 +3224,7 @@ public Builder clearSensitivityScore() { * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 11; */ public com.google.privacy.dlp.v2.SensitivityScore.Builder getSensitivityScoreBuilder() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return getSensitivityScoreFieldBuilder().getBuilder(); } @@ -2999,7 +3281,7 @@ private void ensureSpecificInfoTypesIsMutable() { if (!specificInfoTypes_.isModifiable()) { specificInfoTypes_ = new com.google.protobuf.LazyStringArrayList(specificInfoTypes_); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; } /** @@ -3104,7 +3386,7 @@ public Builder setSpecificInfoTypes(int index, java.lang.String value) { } ensureSpecificInfoTypesIsMutable(); specificInfoTypes_.set(index, value); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3131,7 +3413,7 @@ public Builder addSpecificInfoTypes(java.lang.String value) { } ensureSpecificInfoTypesIsMutable(); specificInfoTypes_.add(value); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3155,7 +3437,7 @@ public Builder addSpecificInfoTypes(java.lang.String value) { public Builder addAllSpecificInfoTypes(java.lang.Iterable values) { ensureSpecificInfoTypesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, specificInfoTypes_); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3177,7 +3459,7 @@ public Builder addAllSpecificInfoTypes(java.lang.Iterable valu */ public Builder clearSpecificInfoTypes() { specificInfoTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); ; onChanged(); return this; @@ -3206,7 +3488,7 @@ public Builder addSpecificInfoTypesBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureSpecificInfoTypesIsMutable(); specificInfoTypes_.add(value); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeDescriptionOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeDescriptionOrBuilder.java index 12c56c05766f..f3f154222ab0 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeDescriptionOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeDescriptionOrBuilder.java @@ -171,6 +171,43 @@ public interface InfoTypeDescriptionOrBuilder */ com.google.protobuf.ByteString getDescriptionBytes(); + /** + * + * + *
    +   * Locations at which this feature can be used. May change over time.
    +   * 
    + * + * .google.privacy.dlp.v2.LocationSupport location_support = 6; + * + * @return Whether the locationSupport field is set. + */ + boolean hasLocationSupport(); + + /** + * + * + *
    +   * Locations at which this feature can be used. May change over time.
    +   * 
    + * + * .google.privacy.dlp.v2.LocationSupport location_support = 6; + * + * @return The locationSupport. + */ + com.google.privacy.dlp.v2.LocationSupport getLocationSupport(); + + /** + * + * + *
    +   * Locations at which this feature can be used. May change over time.
    +   * 
    + * + * .google.privacy.dlp.v2.LocationSupport location_support = 6; + */ + com.google.privacy.dlp.v2.LocationSupportOrBuilder getLocationSupportOrBuilder(); + /** * * diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSummary.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSummary.java index 7418e666593f..b99f073cb0a2 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSummary.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSummary.java @@ -125,7 +125,7 @@ public com.google.privacy.dlp.v2.InfoTypeOrBuilder getInfoTypeOrBuilder() { * int32 estimated_prevalence = 2 [deprecated = true]; * * @deprecated google.privacy.dlp.v2.InfoTypeSummary.estimated_prevalence is deprecated. See - * google/privacy/dlp/v2/dlp.proto;l=7722 + * google/privacy/dlp/v2/dlp.proto;l=7756 * @return The estimatedPrevalence. */ @java.lang.Override @@ -723,7 +723,7 @@ public com.google.privacy.dlp.v2.InfoTypeOrBuilder getInfoTypeOrBuilder() { * int32 estimated_prevalence = 2 [deprecated = true]; * * @deprecated google.privacy.dlp.v2.InfoTypeSummary.estimated_prevalence is deprecated. See - * google/privacy/dlp/v2/dlp.proto;l=7722 + * google/privacy/dlp/v2/dlp.proto;l=7756 * @return The estimatedPrevalence. */ @java.lang.Override @@ -742,7 +742,7 @@ public int getEstimatedPrevalence() { * int32 estimated_prevalence = 2 [deprecated = true]; * * @deprecated google.privacy.dlp.v2.InfoTypeSummary.estimated_prevalence is deprecated. See - * google/privacy/dlp/v2/dlp.proto;l=7722 + * google/privacy/dlp/v2/dlp.proto;l=7756 * @param value The estimatedPrevalence to set. * @return This builder for chaining. */ @@ -765,7 +765,7 @@ public Builder setEstimatedPrevalence(int value) { * int32 estimated_prevalence = 2 [deprecated = true]; * * @deprecated google.privacy.dlp.v2.InfoTypeSummary.estimated_prevalence is deprecated. See - * google/privacy/dlp/v2/dlp.proto;l=7722 + * google/privacy/dlp/v2/dlp.proto;l=7756 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSummaryOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSummaryOrBuilder.java index 5fdddd22ddf9..0735337b8e71 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSummaryOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSummaryOrBuilder.java @@ -71,7 +71,7 @@ public interface InfoTypeSummaryOrBuilder * int32 estimated_prevalence = 2 [deprecated = true]; * * @deprecated google.privacy.dlp.v2.InfoTypeSummary.estimated_prevalence is deprecated. See - * google/privacy/dlp/v2/dlp.proto;l=7722 + * google/privacy/dlp/v2/dlp.proto;l=7756 * @return The estimatedPrevalence. */ @java.lang.Deprecated diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectDataSourceDetails.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectDataSourceDetails.java index 0602ab49570a..cd803dc5a8b4 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectDataSourceDetails.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectDataSourceDetails.java @@ -1329,7 +1329,7 @@ public interface ResultOrBuilder * * *
    -   * All result fields mentioned below are updated while the job is processing.
    +   * All Result fields are updated while the job is processing.
        * 
    * * Protobuf type {@code google.privacy.dlp.v2.InspectDataSourceDetails.Result} @@ -1772,7 +1772,7 @@ protected Builder newBuilderForType( * * *
    -     * All result fields mentioned below are updated while the job is processing.
    +     * All Result fields are updated while the job is processing.
          * 
    * * Protobuf type {@code google.privacy.dlp.v2.InspectDataSourceDetails.Result} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListFileStoreDataProfilesRequest.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListFileStoreDataProfilesRequest.java index a1ade4bdcdb3..186e460473d6 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListFileStoreDataProfilesRequest.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListFileStoreDataProfilesRequest.java @@ -328,6 +328,7 @@ public com.google.protobuf.ByteString getOrderByBytes() { * - `resource_visibility`: PUBLIC|RESTRICTED * - `status_code` - an RPC status code as defined in * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto + * * * The operator must be `=` or `!=`. * * Examples: @@ -382,6 +383,7 @@ public java.lang.String getFilter() { * - `resource_visibility`: PUBLIC|RESTRICTED * - `status_code` - an RPC status code as defined in * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto + * * * The operator must be `=` or `!=`. * * Examples: @@ -1394,6 +1396,7 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { * - `resource_visibility`: PUBLIC|RESTRICTED * - `status_code` - an RPC status code as defined in * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto + * * * The operator must be `=` or `!=`. * * Examples: @@ -1447,6 +1450,7 @@ public java.lang.String getFilter() { * - `resource_visibility`: PUBLIC|RESTRICTED * - `status_code` - an RPC status code as defined in * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto + * * * The operator must be `=` or `!=`. * * Examples: @@ -1500,6 +1504,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * - `resource_visibility`: PUBLIC|RESTRICTED * - `status_code` - an RPC status code as defined in * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto + * * * The operator must be `=` or `!=`. * * Examples: @@ -1552,6 +1557,7 @@ public Builder setFilter(java.lang.String value) { * - `resource_visibility`: PUBLIC|RESTRICTED * - `status_code` - an RPC status code as defined in * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto + * * * The operator must be `=` or `!=`. * * Examples: @@ -1600,6 +1606,7 @@ public Builder clearFilter() { * - `resource_visibility`: PUBLIC|RESTRICTED * - `status_code` - an RPC status code as defined in * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto + * * * The operator must be `=` or `!=`. * * Examples: diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListFileStoreDataProfilesRequestOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListFileStoreDataProfilesRequestOrBuilder.java index 4d1c0ca121e4..d960518725a5 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListFileStoreDataProfilesRequestOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListFileStoreDataProfilesRequestOrBuilder.java @@ -191,6 +191,7 @@ public interface ListFileStoreDataProfilesRequestOrBuilder * - `resource_visibility`: PUBLIC|RESTRICTED * - `status_code` - an RPC status code as defined in * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto + * * * The operator must be `=` or `!=`. * * Examples: @@ -234,6 +235,7 @@ public interface ListFileStoreDataProfilesRequestOrBuilder * - `resource_visibility`: PUBLIC|RESTRICTED * - `status_code` - an RPC status code as defined in * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto + * * * The operator must be `=` or `!=`. * * Examples: diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListTableDataProfilesRequest.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListTableDataProfilesRequest.java index d47d1c08bfd6..d3e7739735db 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListTableDataProfilesRequest.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListTableDataProfilesRequest.java @@ -322,6 +322,7 @@ public com.google.protobuf.ByteString getOrderByBytes() { * - `resource_visibility`: PUBLIC|RESTRICTED * - `status_code` - an RPC status code as defined in * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto + * * * The operator must be `=` or `!=`. * * Examples: @@ -371,6 +372,7 @@ public java.lang.String getFilter() { * - `resource_visibility`: PUBLIC|RESTRICTED * - `status_code` - an RPC status code as defined in * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto + * * * The operator must be `=` or `!=`. * * Examples: @@ -1377,6 +1379,7 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { * - `resource_visibility`: PUBLIC|RESTRICTED * - `status_code` - an RPC status code as defined in * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto + * * * The operator must be `=` or `!=`. * * Examples: @@ -1425,6 +1428,7 @@ public java.lang.String getFilter() { * - `resource_visibility`: PUBLIC|RESTRICTED * - `status_code` - an RPC status code as defined in * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto + * * * The operator must be `=` or `!=`. * * Examples: @@ -1473,6 +1477,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * - `resource_visibility`: PUBLIC|RESTRICTED * - `status_code` - an RPC status code as defined in * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto + * * * The operator must be `=` or `!=`. * * Examples: @@ -1520,6 +1525,7 @@ public Builder setFilter(java.lang.String value) { * - `resource_visibility`: PUBLIC|RESTRICTED * - `status_code` - an RPC status code as defined in * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto + * * * The operator must be `=` or `!=`. * * Examples: @@ -1563,6 +1569,7 @@ public Builder clearFilter() { * - `resource_visibility`: PUBLIC|RESTRICTED * - `status_code` - an RPC status code as defined in * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto + * * * The operator must be `=` or `!=`. * * Examples: diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListTableDataProfilesRequestOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListTableDataProfilesRequestOrBuilder.java index 092ab4dd3261..65e5a44b27d8 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListTableDataProfilesRequestOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListTableDataProfilesRequestOrBuilder.java @@ -187,6 +187,7 @@ public interface ListTableDataProfilesRequestOrBuilder * - `resource_visibility`: PUBLIC|RESTRICTED * - `status_code` - an RPC status code as defined in * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto + * * * The operator must be `=` or `!=`. * * Examples: @@ -225,6 +226,7 @@ public interface ListTableDataProfilesRequestOrBuilder * - `resource_visibility`: PUBLIC|RESTRICTED * - `status_code` - an RPC status code as defined in * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto + * * * The operator must be `=` or `!=`. * * Examples: diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/LocationSupport.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/LocationSupport.java new file mode 100644 index 000000000000..a87c0d38670d --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/LocationSupport.java @@ -0,0 +1,1098 @@ +/* + * 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/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.8 +package com.google.privacy.dlp.v2; + +/** + * + * + *
    + * Locations at which a feature can be used.
    + * 
    + * + * Protobuf type {@code google.privacy.dlp.v2.LocationSupport} + */ +public final class LocationSupport extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.LocationSupport) + LocationSupportOrBuilder { + private static final long serialVersionUID = 0L; + + // Use LocationSupport.newBuilder() to construct. + private LocationSupport(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LocationSupport() { + regionalizationScope_ = 0; + locations_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LocationSupport(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_LocationSupport_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_LocationSupport_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.LocationSupport.class, + com.google.privacy.dlp.v2.LocationSupport.Builder.class); + } + + /** + * + * + *
    +   * The location scope for a feature.
    +   * 
    + * + * Protobuf enum {@code google.privacy.dlp.v2.LocationSupport.RegionalizationScope} + */ + public enum RegionalizationScope implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Invalid.
    +     * 
    + * + * REGIONALIZATION_SCOPE_UNSPECIFIED = 0; + */ + REGIONALIZATION_SCOPE_UNSPECIFIED(0), + /** + * + * + *
    +     * Feature may be used with one or more regions. See locations for details.
    +     * 
    + * + * REGIONAL = 1; + */ + REGIONAL(1), + /** + * + * + *
    +     * Feature may be used anywhere. Default value.
    +     * 
    + * + * ANY_LOCATION = 2; + */ + ANY_LOCATION(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * Invalid.
    +     * 
    + * + * REGIONALIZATION_SCOPE_UNSPECIFIED = 0; + */ + public static final int REGIONALIZATION_SCOPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +     * Feature may be used with one or more regions. See locations for details.
    +     * 
    + * + * REGIONAL = 1; + */ + public static final int REGIONAL_VALUE = 1; + + /** + * + * + *
    +     * Feature may be used anywhere. Default value.
    +     * 
    + * + * ANY_LOCATION = 2; + */ + public static final int ANY_LOCATION_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 RegionalizationScope 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 RegionalizationScope forNumber(int value) { + switch (value) { + case 0: + return REGIONALIZATION_SCOPE_UNSPECIFIED; + case 1: + return REGIONAL; + case 2: + return ANY_LOCATION; + 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 RegionalizationScope findValueByNumber(int number) { + return RegionalizationScope.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.privacy.dlp.v2.LocationSupport.getDescriptor().getEnumTypes().get(0); + } + + private static final RegionalizationScope[] VALUES = values(); + + public static RegionalizationScope 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 RegionalizationScope(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.privacy.dlp.v2.LocationSupport.RegionalizationScope) + } + + public static final int REGIONALIZATION_SCOPE_FIELD_NUMBER = 1; + private int regionalizationScope_ = 0; + + /** + * + * + *
    +   * The current scope for location on this feature. This may expand over time.
    +   * 
    + * + * .google.privacy.dlp.v2.LocationSupport.RegionalizationScope regionalization_scope = 1; + * + * + * @return The enum numeric value on the wire for regionalizationScope. + */ + @java.lang.Override + public int getRegionalizationScopeValue() { + return regionalizationScope_; + } + + /** + * + * + *
    +   * The current scope for location on this feature. This may expand over time.
    +   * 
    + * + * .google.privacy.dlp.v2.LocationSupport.RegionalizationScope regionalization_scope = 1; + * + * + * @return The regionalizationScope. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.LocationSupport.RegionalizationScope getRegionalizationScope() { + com.google.privacy.dlp.v2.LocationSupport.RegionalizationScope result = + com.google.privacy.dlp.v2.LocationSupport.RegionalizationScope.forNumber( + regionalizationScope_); + return result == null + ? com.google.privacy.dlp.v2.LocationSupport.RegionalizationScope.UNRECOGNIZED + : result; + } + + public static final int LOCATIONS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList locations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
    +   * Specific locations where the feature may be used.
    +   * Examples: us-central1, us, asia, global
    +   * If scope is ANY_LOCATION, no regions will be listed.
    +   * 
    + * + * repeated string locations = 2; + * + * @return A list containing the locations. + */ + public com.google.protobuf.ProtocolStringList getLocationsList() { + return locations_; + } + + /** + * + * + *
    +   * Specific locations where the feature may be used.
    +   * Examples: us-central1, us, asia, global
    +   * If scope is ANY_LOCATION, no regions will be listed.
    +   * 
    + * + * repeated string locations = 2; + * + * @return The count of locations. + */ + public int getLocationsCount() { + return locations_.size(); + } + + /** + * + * + *
    +   * Specific locations where the feature may be used.
    +   * Examples: us-central1, us, asia, global
    +   * If scope is ANY_LOCATION, no regions will be listed.
    +   * 
    + * + * repeated string locations = 2; + * + * @param index The index of the element to return. + * @return The locations at the given index. + */ + public java.lang.String getLocations(int index) { + return locations_.get(index); + } + + /** + * + * + *
    +   * Specific locations where the feature may be used.
    +   * Examples: us-central1, us, asia, global
    +   * If scope is ANY_LOCATION, no regions will be listed.
    +   * 
    + * + * repeated string locations = 2; + * + * @param index The index of the value to return. + * @return The bytes of the locations at the given index. + */ + public com.google.protobuf.ByteString getLocationsBytes(int index) { + return locations_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (regionalizationScope_ + != com.google.privacy.dlp.v2.LocationSupport.RegionalizationScope + .REGIONALIZATION_SCOPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, regionalizationScope_); + } + for (int i = 0; i < locations_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, locations_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (regionalizationScope_ + != com.google.privacy.dlp.v2.LocationSupport.RegionalizationScope + .REGIONALIZATION_SCOPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, regionalizationScope_); + } + { + int dataSize = 0; + for (int i = 0; i < locations_.size(); i++) { + dataSize += computeStringSizeNoTag(locations_.getRaw(i)); + } + size += dataSize; + size += 1 * getLocationsList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.privacy.dlp.v2.LocationSupport)) { + return super.equals(obj); + } + com.google.privacy.dlp.v2.LocationSupport other = + (com.google.privacy.dlp.v2.LocationSupport) obj; + + if (regionalizationScope_ != other.regionalizationScope_) return false; + if (!getLocationsList().equals(other.getLocationsList())) 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) + REGIONALIZATION_SCOPE_FIELD_NUMBER; + hash = (53 * hash) + regionalizationScope_; + if (getLocationsCount() > 0) { + hash = (37 * hash) + LOCATIONS_FIELD_NUMBER; + hash = (53 * hash) + getLocationsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.privacy.dlp.v2.LocationSupport parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.LocationSupport parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.LocationSupport parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.LocationSupport parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.LocationSupport parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.LocationSupport parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.LocationSupport parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.LocationSupport 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.privacy.dlp.v2.LocationSupport parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.LocationSupport 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.privacy.dlp.v2.LocationSupport parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.LocationSupport 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.privacy.dlp.v2.LocationSupport prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
    +   * Locations at which a feature can be used.
    +   * 
    + * + * Protobuf type {@code google.privacy.dlp.v2.LocationSupport} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.LocationSupport) + com.google.privacy.dlp.v2.LocationSupportOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_LocationSupport_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_LocationSupport_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.LocationSupport.class, + com.google.privacy.dlp.v2.LocationSupport.Builder.class); + } + + // Construct using com.google.privacy.dlp.v2.LocationSupport.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + regionalizationScope_ = 0; + locations_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_LocationSupport_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.LocationSupport getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.LocationSupport.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.LocationSupport build() { + com.google.privacy.dlp.v2.LocationSupport result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.LocationSupport buildPartial() { + com.google.privacy.dlp.v2.LocationSupport result = + new com.google.privacy.dlp.v2.LocationSupport(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.privacy.dlp.v2.LocationSupport result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.regionalizationScope_ = regionalizationScope_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + locations_.makeImmutable(); + result.locations_ = locations_; + } + } + + @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.privacy.dlp.v2.LocationSupport) { + return mergeFrom((com.google.privacy.dlp.v2.LocationSupport) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.LocationSupport other) { + if (other == com.google.privacy.dlp.v2.LocationSupport.getDefaultInstance()) return this; + if (other.regionalizationScope_ != 0) { + setRegionalizationScopeValue(other.getRegionalizationScopeValue()); + } + if (!other.locations_.isEmpty()) { + if (locations_.isEmpty()) { + locations_ = other.locations_; + bitField0_ |= 0x00000002; + } else { + ensureLocationsIsMutable(); + locations_.addAll(other.locations_); + } + 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: + { + regionalizationScope_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureLocationsIsMutable(); + locations_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int regionalizationScope_ = 0; + + /** + * + * + *
    +     * The current scope for location on this feature. This may expand over time.
    +     * 
    + * + * .google.privacy.dlp.v2.LocationSupport.RegionalizationScope regionalization_scope = 1; + * + * + * @return The enum numeric value on the wire for regionalizationScope. + */ + @java.lang.Override + public int getRegionalizationScopeValue() { + return regionalizationScope_; + } + + /** + * + * + *
    +     * The current scope for location on this feature. This may expand over time.
    +     * 
    + * + * .google.privacy.dlp.v2.LocationSupport.RegionalizationScope regionalization_scope = 1; + * + * + * @param value The enum numeric value on the wire for regionalizationScope to set. + * @return This builder for chaining. + */ + public Builder setRegionalizationScopeValue(int value) { + regionalizationScope_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * The current scope for location on this feature. This may expand over time.
    +     * 
    + * + * .google.privacy.dlp.v2.LocationSupport.RegionalizationScope regionalization_scope = 1; + * + * + * @return The regionalizationScope. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.LocationSupport.RegionalizationScope + getRegionalizationScope() { + com.google.privacy.dlp.v2.LocationSupport.RegionalizationScope result = + com.google.privacy.dlp.v2.LocationSupport.RegionalizationScope.forNumber( + regionalizationScope_); + return result == null + ? com.google.privacy.dlp.v2.LocationSupport.RegionalizationScope.UNRECOGNIZED + : result; + } + + /** + * + * + *
    +     * The current scope for location on this feature. This may expand over time.
    +     * 
    + * + * .google.privacy.dlp.v2.LocationSupport.RegionalizationScope regionalization_scope = 1; + * + * + * @param value The regionalizationScope to set. + * @return This builder for chaining. + */ + public Builder setRegionalizationScope( + com.google.privacy.dlp.v2.LocationSupport.RegionalizationScope value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + regionalizationScope_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +     * The current scope for location on this feature. This may expand over time.
    +     * 
    + * + * .google.privacy.dlp.v2.LocationSupport.RegionalizationScope regionalization_scope = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearRegionalizationScope() { + bitField0_ = (bitField0_ & ~0x00000001); + regionalizationScope_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList locations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureLocationsIsMutable() { + if (!locations_.isModifiable()) { + locations_ = new com.google.protobuf.LazyStringArrayList(locations_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
    +     * Specific locations where the feature may be used.
    +     * Examples: us-central1, us, asia, global
    +     * If scope is ANY_LOCATION, no regions will be listed.
    +     * 
    + * + * repeated string locations = 2; + * + * @return A list containing the locations. + */ + public com.google.protobuf.ProtocolStringList getLocationsList() { + locations_.makeImmutable(); + return locations_; + } + + /** + * + * + *
    +     * Specific locations where the feature may be used.
    +     * Examples: us-central1, us, asia, global
    +     * If scope is ANY_LOCATION, no regions will be listed.
    +     * 
    + * + * repeated string locations = 2; + * + * @return The count of locations. + */ + public int getLocationsCount() { + return locations_.size(); + } + + /** + * + * + *
    +     * Specific locations where the feature may be used.
    +     * Examples: us-central1, us, asia, global
    +     * If scope is ANY_LOCATION, no regions will be listed.
    +     * 
    + * + * repeated string locations = 2; + * + * @param index The index of the element to return. + * @return The locations at the given index. + */ + public java.lang.String getLocations(int index) { + return locations_.get(index); + } + + /** + * + * + *
    +     * Specific locations where the feature may be used.
    +     * Examples: us-central1, us, asia, global
    +     * If scope is ANY_LOCATION, no regions will be listed.
    +     * 
    + * + * repeated string locations = 2; + * + * @param index The index of the value to return. + * @return The bytes of the locations at the given index. + */ + public com.google.protobuf.ByteString getLocationsBytes(int index) { + return locations_.getByteString(index); + } + + /** + * + * + *
    +     * Specific locations where the feature may be used.
    +     * Examples: us-central1, us, asia, global
    +     * If scope is ANY_LOCATION, no regions will be listed.
    +     * 
    + * + * repeated string locations = 2; + * + * @param index The index to set the value at. + * @param value The locations to set. + * @return This builder for chaining. + */ + public Builder setLocations(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Specific locations where the feature may be used.
    +     * Examples: us-central1, us, asia, global
    +     * If scope is ANY_LOCATION, no regions will be listed.
    +     * 
    + * + * repeated string locations = 2; + * + * @param value The locations to add. + * @return This builder for chaining. + */ + public Builder addLocations(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Specific locations where the feature may be used.
    +     * Examples: us-central1, us, asia, global
    +     * If scope is ANY_LOCATION, no regions will be listed.
    +     * 
    + * + * repeated string locations = 2; + * + * @param values The locations to add. + * @return This builder for chaining. + */ + public Builder addAllLocations(java.lang.Iterable values) { + ensureLocationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locations_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Specific locations where the feature may be used.
    +     * Examples: us-central1, us, asia, global
    +     * If scope is ANY_LOCATION, no regions will be listed.
    +     * 
    + * + * repeated string locations = 2; + * + * @return This builder for chaining. + */ + public Builder clearLocations() { + locations_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Specific locations where the feature may be used.
    +     * Examples: us-central1, us, asia, global
    +     * If scope is ANY_LOCATION, no regions will be listed.
    +     * 
    + * + * repeated string locations = 2; + * + * @param value The bytes of the locations to add. + * @return This builder for chaining. + */ + public Builder addLocationsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureLocationsIsMutable(); + locations_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.LocationSupport) + } + + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.LocationSupport) + private static final com.google.privacy.dlp.v2.LocationSupport DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.LocationSupport(); + } + + public static com.google.privacy.dlp.v2.LocationSupport getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LocationSupport parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.LocationSupport getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/LocationSupportOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/LocationSupportOrBuilder.java new file mode 100644 index 000000000000..8418a08d425d --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/LocationSupportOrBuilder.java @@ -0,0 +1,116 @@ +/* + * 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/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.8 +package com.google.privacy.dlp.v2; + +public interface LocationSupportOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.LocationSupport) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The current scope for location on this feature. This may expand over time.
    +   * 
    + * + * .google.privacy.dlp.v2.LocationSupport.RegionalizationScope regionalization_scope = 1; + * + * + * @return The enum numeric value on the wire for regionalizationScope. + */ + int getRegionalizationScopeValue(); + + /** + * + * + *
    +   * The current scope for location on this feature. This may expand over time.
    +   * 
    + * + * .google.privacy.dlp.v2.LocationSupport.RegionalizationScope regionalization_scope = 1; + * + * + * @return The regionalizationScope. + */ + com.google.privacy.dlp.v2.LocationSupport.RegionalizationScope getRegionalizationScope(); + + /** + * + * + *
    +   * Specific locations where the feature may be used.
    +   * Examples: us-central1, us, asia, global
    +   * If scope is ANY_LOCATION, no regions will be listed.
    +   * 
    + * + * repeated string locations = 2; + * + * @return A list containing the locations. + */ + java.util.List getLocationsList(); + + /** + * + * + *
    +   * Specific locations where the feature may be used.
    +   * Examples: us-central1, us, asia, global
    +   * If scope is ANY_LOCATION, no regions will be listed.
    +   * 
    + * + * repeated string locations = 2; + * + * @return The count of locations. + */ + int getLocationsCount(); + + /** + * + * + *
    +   * Specific locations where the feature may be used.
    +   * Examples: us-central1, us, asia, global
    +   * If scope is ANY_LOCATION, no regions will be listed.
    +   * 
    + * + * repeated string locations = 2; + * + * @param index The index of the element to return. + * @return The locations at the given index. + */ + java.lang.String getLocations(int index); + + /** + * + * + *
    +   * Specific locations where the feature may be used.
    +   * Examples: us-central1, us, asia, global
    +   * If scope is ANY_LOCATION, no regions will be listed.
    +   * 
    + * + * repeated string locations = 2; + * + * @param index The index of the value to return. + * @return The bytes of the locations at the given index. + */ + com.google.protobuf.ByteString getLocationsBytes(int index); +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/PrivacyMetric.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/PrivacyMetric.java index a3d64ef39c8d..a1f1734fb953 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/PrivacyMetric.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/PrivacyMetric.java @@ -4979,7 +4979,7 @@ public interface TaggedFieldOrBuilder *
            * A column can be tagged with a custom tag. In this case, the user must
            * indicate an auxiliary table that contains statistical information on
    -       * the possible values of this column (below).
    +       * the possible values of this column.
            * 
    * * string custom_tag = 3; @@ -4994,7 +4994,7 @@ public interface TaggedFieldOrBuilder *
            * A column can be tagged with a custom tag. In this case, the user must
            * indicate an auxiliary table that contains statistical information on
    -       * the possible values of this column (below).
    +       * the possible values of this column.
            * 
    * * string custom_tag = 3; @@ -5009,7 +5009,7 @@ public interface TaggedFieldOrBuilder *
            * A column can be tagged with a custom tag. In this case, the user must
            * indicate an auxiliary table that contains statistical information on
    -       * the possible values of this column (below).
    +       * the possible values of this column.
            * 
    * * string custom_tag = 3; @@ -5285,7 +5285,7 @@ public com.google.privacy.dlp.v2.InfoTypeOrBuilder getInfoTypeOrBuilder() { *
            * A column can be tagged with a custom tag. In this case, the user must
            * indicate an auxiliary table that contains statistical information on
    -       * the possible values of this column (below).
    +       * the possible values of this column.
            * 
    * * string custom_tag = 3; @@ -5302,7 +5302,7 @@ public boolean hasCustomTag() { *
            * A column can be tagged with a custom tag. In this case, the user must
            * indicate an auxiliary table that contains statistical information on
    -       * the possible values of this column (below).
    +       * the possible values of this column.
            * 
    * * string custom_tag = 3; @@ -5332,7 +5332,7 @@ public java.lang.String getCustomTag() { *
            * A column can be tagged with a custom tag. In this case, the user must
            * indicate an auxiliary table that contains statistical information on
    -       * the possible values of this column (below).
    +       * the possible values of this column.
            * 
    * * string custom_tag = 3; @@ -6384,7 +6384,7 @@ public com.google.privacy.dlp.v2.InfoTypeOrBuilder getInfoTypeOrBuilder() { *
              * A column can be tagged with a custom tag. In this case, the user must
              * indicate an auxiliary table that contains statistical information on
    -         * the possible values of this column (below).
    +         * the possible values of this column.
              * 
    * * string custom_tag = 3; @@ -6402,7 +6402,7 @@ public boolean hasCustomTag() { *
              * A column can be tagged with a custom tag. In this case, the user must
              * indicate an auxiliary table that contains statistical information on
    -         * the possible values of this column (below).
    +         * the possible values of this column.
              * 
    * * string custom_tag = 3; @@ -6433,7 +6433,7 @@ public java.lang.String getCustomTag() { *
              * A column can be tagged with a custom tag. In this case, the user must
              * indicate an auxiliary table that contains statistical information on
    -         * the possible values of this column (below).
    +         * the possible values of this column.
              * 
    * * string custom_tag = 3; @@ -6464,7 +6464,7 @@ public com.google.protobuf.ByteString getCustomTagBytes() { *
              * A column can be tagged with a custom tag. In this case, the user must
              * indicate an auxiliary table that contains statistical information on
    -         * the possible values of this column (below).
    +         * the possible values of this column.
              * 
    * * string custom_tag = 3; @@ -6488,7 +6488,7 @@ public Builder setCustomTag(java.lang.String value) { *
              * A column can be tagged with a custom tag. In this case, the user must
              * indicate an auxiliary table that contains statistical information on
    -         * the possible values of this column (below).
    +         * the possible values of this column.
              * 
    * * string custom_tag = 3; @@ -6510,7 +6510,7 @@ public Builder clearCustomTag() { *
              * A column can be tagged with a custom tag. In this case, the user must
              * indicate an auxiliary table that contains statistical information on
    -         * the possible values of this column (below).
    +         * the possible values of this column.
              * 
    * * string custom_tag = 3; diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProcessingLocation.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProcessingLocation.java index 1e0132cb2b6d..a5a0901a7c53 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProcessingLocation.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProcessingLocation.java @@ -73,7 +73,7 @@ public interface MultiRegionProcessingOrBuilder * * *
    -   * Processing will happen in a multi-region that contains the current region
    +   * Processing occurs in a multi-region that contains the current region
        * if available.
        * 
    * @@ -271,7 +271,7 @@ protected Builder newBuilderForType( * * *
    -     * Processing will happen in a multi-region that contains the current region
    +     * Processing occurs in a multi-region that contains the current region
          * if available.
          * 
    * @@ -511,7 +511,7 @@ public interface GlobalProcessingOrBuilder * * *
    -   * Processing will happen in the global region.
    +   * Processing occurs in the global region.
        * 
    * * Protobuf type {@code google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing} @@ -707,7 +707,7 @@ protected Builder newBuilderForType( * * *
    -     * Processing will happen in the global region.
    +     * Processing occurs in the global region.
          * 
    * * Protobuf type {@code google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing} @@ -943,7 +943,7 @@ public interface ImageFallbackLocationOrBuilder * * *
    -     * Processing will happen in a multi-region that contains the current region
    +     * Processing occurs in a multi-region that contains the current region
          * if available.
          * 
    * @@ -959,7 +959,7 @@ public interface ImageFallbackLocationOrBuilder * * *
    -     * Processing will happen in a multi-region that contains the current region
    +     * Processing occurs in a multi-region that contains the current region
          * if available.
          * 
    * @@ -975,7 +975,7 @@ public interface ImageFallbackLocationOrBuilder * * *
    -     * Processing will happen in a multi-region that contains the current region
    +     * Processing occurs in a multi-region that contains the current region
          * if available.
          * 
    * @@ -990,7 +990,7 @@ public interface ImageFallbackLocationOrBuilder * * *
    -     * Processing will happen in the global region.
    +     * Processing occurs in the global region.
          * 
    * * .google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing global_processing = 200; @@ -1004,7 +1004,7 @@ public interface ImageFallbackLocationOrBuilder * * *
    -     * Processing will happen in the global region.
    +     * Processing occurs in the global region.
          * 
    * * .google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing global_processing = 200; @@ -1018,7 +1018,7 @@ public interface ImageFallbackLocationOrBuilder * * *
    -     * Processing will happen in the global region.
    +     * Processing occurs in the global region.
          * 
    * * .google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing global_processing = 200; @@ -1032,8 +1032,9 @@ public interface ImageFallbackLocationOrBuilder * * *
    -   * Configure image processing to fall back to the configured processing option
    -   * below if unavailable in the request location.
    +   * Configure image processing to fall back to any of the following processing
    +   * options if image processing is unavailable in the original request
    +   * location.
        * 
    * * Protobuf type {@code google.privacy.dlp.v2.ProcessingLocation.ImageFallbackLocation} @@ -1081,7 +1082,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -     * Processing will happen in a multi-region that contains the current region
    +     * Processing occurs in a multi-region that contains the current region
          * if available.
          * 
    * @@ -1100,7 +1101,7 @@ public boolean hasMultiRegionProcessing() { * * *
    -     * Processing will happen in a multi-region that contains the current region
    +     * Processing occurs in a multi-region that contains the current region
          * if available.
          * 
    * @@ -1122,7 +1123,7 @@ public boolean hasMultiRegionProcessing() { * * *
    -     * Processing will happen in a multi-region that contains the current region
    +     * Processing occurs in a multi-region that contains the current region
          * if available.
          * 
    * @@ -1145,7 +1146,7 @@ public boolean hasMultiRegionProcessing() { * * *
    -     * Processing will happen in the global region.
    +     * Processing occurs in the global region.
          * 
    * * .google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing global_processing = 200; @@ -1162,7 +1163,7 @@ public boolean hasGlobalProcessing() { * * *
    -     * Processing will happen in the global region.
    +     * Processing occurs in the global region.
          * 
    * * .google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing global_processing = 200; @@ -1181,7 +1182,7 @@ public com.google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing getGlobalPr * * *
    -     * Processing will happen in the global region.
    +     * Processing occurs in the global region.
          * 
    * * .google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing global_processing = 200; @@ -1384,8 +1385,9 @@ protected Builder newBuilderForType( * * *
    -     * Configure image processing to fall back to the configured processing option
    -     * below if unavailable in the request location.
    +     * Configure image processing to fall back to any of the following processing
    +     * options if image processing is unavailable in the original request
    +     * location.
          * 
    * * Protobuf type {@code google.privacy.dlp.v2.ProcessingLocation.ImageFallbackLocation} @@ -1627,7 +1629,7 @@ public Builder mergeFrom( * * *
    -       * Processing will happen in a multi-region that contains the current region
    +       * Processing occurs in a multi-region that contains the current region
            * if available.
            * 
    * @@ -1645,7 +1647,7 @@ public boolean hasMultiRegionProcessing() { * * *
    -       * Processing will happen in a multi-region that contains the current region
    +       * Processing occurs in a multi-region that contains the current region
            * if available.
            * 
    * @@ -1671,7 +1673,7 @@ public boolean hasMultiRegionProcessing() { * * *
    -       * Processing will happen in a multi-region that contains the current region
    +       * Processing occurs in a multi-region that contains the current region
            * if available.
            * 
    * @@ -1698,7 +1700,7 @@ public Builder setMultiRegionProcessing( * * *
    -       * Processing will happen in a multi-region that contains the current region
    +       * Processing occurs in a multi-region that contains the current region
            * if available.
            * 
    * @@ -1723,7 +1725,7 @@ public Builder setMultiRegionProcessing( * * *
    -       * Processing will happen in a multi-region that contains the current region
    +       * Processing occurs in a multi-region that contains the current region
            * if available.
            * 
    * @@ -1757,7 +1759,7 @@ public Builder mergeMultiRegionProcessing( * * *
    -       * Processing will happen in a multi-region that contains the current region
    +       * Processing occurs in a multi-region that contains the current region
            * if available.
            * 
    * @@ -1780,7 +1782,7 @@ public Builder clearMultiRegionProcessing() { * * *
    -       * Processing will happen in a multi-region that contains the current region
    +       * Processing occurs in a multi-region that contains the current region
            * if available.
            * 
    * @@ -1799,7 +1801,7 @@ public Builder clearMultiRegionProcessing() { * * *
    -       * Processing will happen in a multi-region that contains the current region
    +       * Processing occurs in a multi-region that contains the current region
            * if available.
            * 
    * @@ -1823,7 +1825,7 @@ public Builder clearMultiRegionProcessing() { * * *
    -       * Processing will happen in a multi-region that contains the current region
    +       * Processing occurs in a multi-region that contains the current region
            * if available.
            * 
    * @@ -1859,7 +1861,7 @@ public Builder clearMultiRegionProcessing() { * * *
    -       * Processing will happen in the global region.
    +       * Processing occurs in the global region.
            * 
    * * .google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing global_processing = 200; @@ -1875,7 +1877,7 @@ public boolean hasGlobalProcessing() { * * *
    -       * Processing will happen in the global region.
    +       * Processing occurs in the global region.
            * 
    * * .google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing global_processing = 200; @@ -1897,7 +1899,7 @@ public com.google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing getGlobalPr * * *
    -       * Processing will happen in the global region.
    +       * Processing occurs in the global region.
            * 
    * * .google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing global_processing = 200; @@ -1922,7 +1924,7 @@ public Builder setGlobalProcessing( * * *
    -       * Processing will happen in the global region.
    +       * Processing occurs in the global region.
            * 
    * * .google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing global_processing = 200; @@ -1944,7 +1946,7 @@ public Builder setGlobalProcessing( * * *
    -       * Processing will happen in the global region.
    +       * Processing occurs in the global region.
            * 
    * * .google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing global_processing = 200; @@ -1976,7 +1978,7 @@ public Builder mergeGlobalProcessing( * * *
    -       * Processing will happen in the global region.
    +       * Processing occurs in the global region.
            * 
    * * .google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing global_processing = 200; @@ -1997,7 +1999,7 @@ public Builder clearGlobalProcessing() { * * *
    -       * Processing will happen in the global region.
    +       * Processing occurs in the global region.
            * 
    * * .google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing global_processing = 200; @@ -2014,7 +2016,7 @@ public Builder clearGlobalProcessing() { * * *
    -       * Processing will happen in the global region.
    +       * Processing occurs in the global region.
            * 
    * * .google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing global_processing = 200; @@ -2035,7 +2037,7 @@ public Builder clearGlobalProcessing() { * * *
    -       * Processing will happen in the global region.
    +       * Processing occurs in the global region.
            * 
    * * .google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing global_processing = 200; @@ -2125,6 +2127,1203 @@ public com.google.protobuf.Parser getParserForType() { } } + public interface DocumentFallbackLocationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * Processing occurs in a multi-region that contains the current region
    +     * if available.
    +     * 
    + * + * + * .google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing multi_region_processing = 100; + * + * + * @return Whether the multiRegionProcessing field is set. + */ + boolean hasMultiRegionProcessing(); + + /** + * + * + *
    +     * Processing occurs in a multi-region that contains the current region
    +     * if available.
    +     * 
    + * + * + * .google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing multi_region_processing = 100; + * + * + * @return The multiRegionProcessing. + */ + com.google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing getMultiRegionProcessing(); + + /** + * + * + *
    +     * Processing occurs in a multi-region that contains the current region
    +     * if available.
    +     * 
    + * + * + * .google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing multi_region_processing = 100; + * + */ + com.google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessingOrBuilder + getMultiRegionProcessingOrBuilder(); + + /** + * + * + *
    +     * Processing occurs in the global region.
    +     * 
    + * + * .google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing global_processing = 200; + * + * + * @return Whether the globalProcessing field is set. + */ + boolean hasGlobalProcessing(); + + /** + * + * + *
    +     * Processing occurs in the global region.
    +     * 
    + * + * .google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing global_processing = 200; + * + * + * @return The globalProcessing. + */ + com.google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing getGlobalProcessing(); + + /** + * + * + *
    +     * Processing occurs in the global region.
    +     * 
    + * + * .google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing global_processing = 200; + * + */ + com.google.privacy.dlp.v2.ProcessingLocation.GlobalProcessingOrBuilder + getGlobalProcessingOrBuilder(); + } + + /** + * + * + *
    +   * Configure document processing to fall back to any of the following
    +   * processing options if document processing is unavailable in the original
    +   * request location.
    +   * 
    + * + * Protobuf type {@code google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation} + */ + public static final class DocumentFallbackLocation extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation) + DocumentFallbackLocationOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DocumentFallbackLocation.newBuilder() to construct. + private DocumentFallbackLocation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DocumentFallbackLocation() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DocumentFallbackLocation(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_ProcessingLocation_DocumentFallbackLocation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_ProcessingLocation_DocumentFallbackLocation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation.class, + com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation.Builder.class); + } + + private int bitField0_; + public static final int MULTI_REGION_PROCESSING_FIELD_NUMBER = 100; + private com.google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing + multiRegionProcessing_; + + /** + * + * + *
    +     * Processing occurs in a multi-region that contains the current region
    +     * if available.
    +     * 
    + * + * + * .google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing multi_region_processing = 100; + * + * + * @return Whether the multiRegionProcessing field is set. + */ + @java.lang.Override + public boolean hasMultiRegionProcessing() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +     * Processing occurs in a multi-region that contains the current region
    +     * if available.
    +     * 
    + * + * + * .google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing multi_region_processing = 100; + * + * + * @return The multiRegionProcessing. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing + getMultiRegionProcessing() { + return multiRegionProcessing_ == null + ? com.google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing.getDefaultInstance() + : multiRegionProcessing_; + } + + /** + * + * + *
    +     * Processing occurs in a multi-region that contains the current region
    +     * if available.
    +     * 
    + * + * + * .google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing multi_region_processing = 100; + * + */ + @java.lang.Override + public com.google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessingOrBuilder + getMultiRegionProcessingOrBuilder() { + return multiRegionProcessing_ == null + ? com.google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing.getDefaultInstance() + : multiRegionProcessing_; + } + + public static final int GLOBAL_PROCESSING_FIELD_NUMBER = 200; + private com.google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing globalProcessing_; + + /** + * + * + *
    +     * Processing occurs in the global region.
    +     * 
    + * + * .google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing global_processing = 200; + * + * + * @return Whether the globalProcessing field is set. + */ + @java.lang.Override + public boolean hasGlobalProcessing() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Processing occurs in the global region.
    +     * 
    + * + * .google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing global_processing = 200; + * + * + * @return The globalProcessing. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing getGlobalProcessing() { + return globalProcessing_ == null + ? com.google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing.getDefaultInstance() + : globalProcessing_; + } + + /** + * + * + *
    +     * Processing occurs in the global region.
    +     * 
    + * + * .google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing global_processing = 200; + * + */ + @java.lang.Override + public com.google.privacy.dlp.v2.ProcessingLocation.GlobalProcessingOrBuilder + getGlobalProcessingOrBuilder() { + return globalProcessing_ == null + ? com.google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing.getDefaultInstance() + : globalProcessing_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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(100, getMultiRegionProcessing()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(200, getGlobalProcessing()); + } + 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( + 100, getMultiRegionProcessing()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(200, getGlobalProcessing()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation)) { + return super.equals(obj); + } + com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation other = + (com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation) obj; + + if (hasMultiRegionProcessing() != other.hasMultiRegionProcessing()) return false; + if (hasMultiRegionProcessing()) { + if (!getMultiRegionProcessing().equals(other.getMultiRegionProcessing())) return false; + } + if (hasGlobalProcessing() != other.hasGlobalProcessing()) return false; + if (hasGlobalProcessing()) { + if (!getGlobalProcessing().equals(other.getGlobalProcessing())) 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 (hasMultiRegionProcessing()) { + hash = (37 * hash) + MULTI_REGION_PROCESSING_FIELD_NUMBER; + hash = (53 * hash) + getMultiRegionProcessing().hashCode(); + } + if (hasGlobalProcessing()) { + hash = (37 * hash) + GLOBAL_PROCESSING_FIELD_NUMBER; + hash = (53 * hash) + getGlobalProcessing().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation 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.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation + 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.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation 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.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
    +     * Configure document processing to fall back to any of the following
    +     * processing options if document processing is unavailable in the original
    +     * request location.
    +     * 
    + * + * Protobuf type {@code google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation) + com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_ProcessingLocation_DocumentFallbackLocation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_ProcessingLocation_DocumentFallbackLocation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation.class, + com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation.Builder + .class); + } + + // Construct using + // com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMultiRegionProcessingFieldBuilder(); + getGlobalProcessingFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + multiRegionProcessing_ = null; + if (multiRegionProcessingBuilder_ != null) { + multiRegionProcessingBuilder_.dispose(); + multiRegionProcessingBuilder_ = null; + } + globalProcessing_ = null; + if (globalProcessingBuilder_ != null) { + globalProcessingBuilder_.dispose(); + globalProcessingBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_ProcessingLocation_DocumentFallbackLocation_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation + getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation build() { + com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation buildPartial() { + com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation result = + new com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.multiRegionProcessing_ = + multiRegionProcessingBuilder_ == null + ? multiRegionProcessing_ + : multiRegionProcessingBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.globalProcessing_ = + globalProcessingBuilder_ == null + ? globalProcessing_ + : globalProcessingBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation) { + return mergeFrom( + (com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation other) { + if (other + == com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation + .getDefaultInstance()) return this; + if (other.hasMultiRegionProcessing()) { + mergeMultiRegionProcessing(other.getMultiRegionProcessing()); + } + if (other.hasGlobalProcessing()) { + mergeGlobalProcessing(other.getGlobalProcessing()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 802: + { + input.readMessage( + getMultiRegionProcessingFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 802 + case 1602: + { + input.readMessage( + getGlobalProcessingFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 1602 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was 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.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing + multiRegionProcessing_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing, + com.google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing.Builder, + com.google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessingOrBuilder> + multiRegionProcessingBuilder_; + + /** + * + * + *
    +       * Processing occurs in a multi-region that contains the current region
    +       * if available.
    +       * 
    + * + * + * .google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing multi_region_processing = 100; + * + * + * @return Whether the multiRegionProcessing field is set. + */ + public boolean hasMultiRegionProcessing() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +       * Processing occurs in a multi-region that contains the current region
    +       * if available.
    +       * 
    + * + * + * .google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing multi_region_processing = 100; + * + * + * @return The multiRegionProcessing. + */ + public com.google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing + getMultiRegionProcessing() { + if (multiRegionProcessingBuilder_ == null) { + return multiRegionProcessing_ == null + ? com.google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing + .getDefaultInstance() + : multiRegionProcessing_; + } else { + return multiRegionProcessingBuilder_.getMessage(); + } + } + + /** + * + * + *
    +       * Processing occurs in a multi-region that contains the current region
    +       * if available.
    +       * 
    + * + * + * .google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing multi_region_processing = 100; + * + */ + public Builder setMultiRegionProcessing( + com.google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing value) { + if (multiRegionProcessingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + multiRegionProcessing_ = value; + } else { + multiRegionProcessingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Processing occurs in a multi-region that contains the current region
    +       * if available.
    +       * 
    + * + * + * .google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing multi_region_processing = 100; + * + */ + public Builder setMultiRegionProcessing( + com.google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing.Builder + builderForValue) { + if (multiRegionProcessingBuilder_ == null) { + multiRegionProcessing_ = builderForValue.build(); + } else { + multiRegionProcessingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Processing occurs in a multi-region that contains the current region
    +       * if available.
    +       * 
    + * + * + * .google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing multi_region_processing = 100; + * + */ + public Builder mergeMultiRegionProcessing( + com.google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing value) { + if (multiRegionProcessingBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && multiRegionProcessing_ != null + && multiRegionProcessing_ + != com.google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing + .getDefaultInstance()) { + getMultiRegionProcessingBuilder().mergeFrom(value); + } else { + multiRegionProcessing_ = value; + } + } else { + multiRegionProcessingBuilder_.mergeFrom(value); + } + if (multiRegionProcessing_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
    +       * Processing occurs in a multi-region that contains the current region
    +       * if available.
    +       * 
    + * + * + * .google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing multi_region_processing = 100; + * + */ + public Builder clearMultiRegionProcessing() { + bitField0_ = (bitField0_ & ~0x00000001); + multiRegionProcessing_ = null; + if (multiRegionProcessingBuilder_ != null) { + multiRegionProcessingBuilder_.dispose(); + multiRegionProcessingBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +       * Processing occurs in a multi-region that contains the current region
    +       * if available.
    +       * 
    + * + * + * .google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing multi_region_processing = 100; + * + */ + public com.google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing.Builder + getMultiRegionProcessingBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMultiRegionProcessingFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +       * Processing occurs in a multi-region that contains the current region
    +       * if available.
    +       * 
    + * + * + * .google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing multi_region_processing = 100; + * + */ + public com.google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessingOrBuilder + getMultiRegionProcessingOrBuilder() { + if (multiRegionProcessingBuilder_ != null) { + return multiRegionProcessingBuilder_.getMessageOrBuilder(); + } else { + return multiRegionProcessing_ == null + ? com.google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing + .getDefaultInstance() + : multiRegionProcessing_; + } + } + + /** + * + * + *
    +       * Processing occurs in a multi-region that contains the current region
    +       * if available.
    +       * 
    + * + * + * .google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing multi_region_processing = 100; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing, + com.google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing.Builder, + com.google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessingOrBuilder> + getMultiRegionProcessingFieldBuilder() { + if (multiRegionProcessingBuilder_ == null) { + multiRegionProcessingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing, + com.google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing.Builder, + com.google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessingOrBuilder>( + getMultiRegionProcessing(), getParentForChildren(), isClean()); + multiRegionProcessing_ = null; + } + return multiRegionProcessingBuilder_; + } + + private com.google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing globalProcessing_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing, + com.google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing.Builder, + com.google.privacy.dlp.v2.ProcessingLocation.GlobalProcessingOrBuilder> + globalProcessingBuilder_; + + /** + * + * + *
    +       * Processing occurs in the global region.
    +       * 
    + * + * .google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing global_processing = 200; + * + * + * @return Whether the globalProcessing field is set. + */ + public boolean hasGlobalProcessing() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +       * Processing occurs in the global region.
    +       * 
    + * + * .google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing global_processing = 200; + * + * + * @return The globalProcessing. + */ + public com.google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing getGlobalProcessing() { + if (globalProcessingBuilder_ == null) { + return globalProcessing_ == null + ? com.google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing.getDefaultInstance() + : globalProcessing_; + } else { + return globalProcessingBuilder_.getMessage(); + } + } + + /** + * + * + *
    +       * Processing occurs in the global region.
    +       * 
    + * + * .google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing global_processing = 200; + * + */ + public Builder setGlobalProcessing( + com.google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing value) { + if (globalProcessingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + globalProcessing_ = value; + } else { + globalProcessingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Processing occurs in the global region.
    +       * 
    + * + * .google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing global_processing = 200; + * + */ + public Builder setGlobalProcessing( + com.google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing.Builder builderForValue) { + if (globalProcessingBuilder_ == null) { + globalProcessing_ = builderForValue.build(); + } else { + globalProcessingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Processing occurs in the global region.
    +       * 
    + * + * .google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing global_processing = 200; + * + */ + public Builder mergeGlobalProcessing( + com.google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing value) { + if (globalProcessingBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && globalProcessing_ != null + && globalProcessing_ + != com.google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing + .getDefaultInstance()) { + getGlobalProcessingBuilder().mergeFrom(value); + } else { + globalProcessing_ = value; + } + } else { + globalProcessingBuilder_.mergeFrom(value); + } + if (globalProcessing_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
    +       * Processing occurs in the global region.
    +       * 
    + * + * .google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing global_processing = 200; + * + */ + public Builder clearGlobalProcessing() { + bitField0_ = (bitField0_ & ~0x00000002); + globalProcessing_ = null; + if (globalProcessingBuilder_ != null) { + globalProcessingBuilder_.dispose(); + globalProcessingBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +       * Processing occurs in the global region.
    +       * 
    + * + * .google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing global_processing = 200; + * + */ + public com.google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing.Builder + getGlobalProcessingBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getGlobalProcessingFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +       * Processing occurs in the global region.
    +       * 
    + * + * .google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing global_processing = 200; + * + */ + public com.google.privacy.dlp.v2.ProcessingLocation.GlobalProcessingOrBuilder + getGlobalProcessingOrBuilder() { + if (globalProcessingBuilder_ != null) { + return globalProcessingBuilder_.getMessageOrBuilder(); + } else { + return globalProcessing_ == null + ? com.google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing.getDefaultInstance() + : globalProcessing_; + } + } + + /** + * + * + *
    +       * Processing occurs in the global region.
    +       * 
    + * + * .google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing global_processing = 200; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing, + com.google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing.Builder, + com.google.privacy.dlp.v2.ProcessingLocation.GlobalProcessingOrBuilder> + getGlobalProcessingFieldBuilder() { + if (globalProcessingBuilder_ == null) { + globalProcessingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing, + com.google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing.Builder, + com.google.privacy.dlp.v2.ProcessingLocation.GlobalProcessingOrBuilder>( + getGlobalProcessing(), getParentForChildren(), isClean()); + globalProcessing_ = null; + } + return globalProcessingBuilder_; + } + + @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.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation) + } + + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation) + private static final com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation(); + } + + public static com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentFallbackLocation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int bitField0_; public static final int IMAGE_FALLBACK_LOCATION_FIELD_NUMBER = 1; private com.google.privacy.dlp.v2.ProcessingLocation.ImageFallbackLocation imageFallbackLocation_; @@ -2133,7 +3332,7 @@ public com.google.protobuf.Parser getParserForType() { * * *
    -   * Image processing will fall back using this configuration.
    +   * Image processing falls back using this configuration.
        * 
    * * @@ -2151,7 +3350,7 @@ public boolean hasImageFallbackLocation() { * * *
    -   * Image processing will fall back using this configuration.
    +   * Image processing falls back using this configuration.
        * 
    * * @@ -2172,7 +3371,7 @@ public boolean hasImageFallbackLocation() { * * *
    -   * Image processing will fall back using this configuration.
    +   * Image processing falls back using this configuration.
        * 
    * * @@ -2187,6 +3386,68 @@ public boolean hasImageFallbackLocation() { : imageFallbackLocation_; } + public static final int DOCUMENT_FALLBACK_LOCATION_FIELD_NUMBER = 2; + private com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation + documentFallbackLocation_; + + /** + * + * + *
    +   * Document processing falls back using this configuration.
    +   * 
    + * + * + * .google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation document_fallback_location = 2; + * + * + * @return Whether the documentFallbackLocation field is set. + */ + @java.lang.Override + public boolean hasDocumentFallbackLocation() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +   * Document processing falls back using this configuration.
    +   * 
    + * + * + * .google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation document_fallback_location = 2; + * + * + * @return The documentFallbackLocation. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation + getDocumentFallbackLocation() { + return documentFallbackLocation_ == null + ? com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation.getDefaultInstance() + : documentFallbackLocation_; + } + + /** + * + * + *
    +   * Document processing falls back using this configuration.
    +   * 
    + * + * + * .google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation document_fallback_location = 2; + * + */ + @java.lang.Override + public com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocationOrBuilder + getDocumentFallbackLocationOrBuilder() { + return documentFallbackLocation_ == null + ? com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation.getDefaultInstance() + : documentFallbackLocation_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2204,6 +3465,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getImageFallbackLocation()); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getDocumentFallbackLocation()); + } getUnknownFields().writeTo(output); } @@ -2217,6 +3481,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getImageFallbackLocation()); } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getDocumentFallbackLocation()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2237,6 +3506,10 @@ public boolean equals(final java.lang.Object obj) { if (hasImageFallbackLocation()) { if (!getImageFallbackLocation().equals(other.getImageFallbackLocation())) return false; } + if (hasDocumentFallbackLocation() != other.hasDocumentFallbackLocation()) return false; + if (hasDocumentFallbackLocation()) { + if (!getDocumentFallbackLocation().equals(other.getDocumentFallbackLocation())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2252,6 +3525,10 @@ public int hashCode() { hash = (37 * hash) + IMAGE_FALLBACK_LOCATION_FIELD_NUMBER; hash = (53 * hash) + getImageFallbackLocation().hashCode(); } + if (hasDocumentFallbackLocation()) { + hash = (37 * hash) + DOCUMENT_FALLBACK_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getDocumentFallbackLocation().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2396,6 +3673,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getImageFallbackLocationFieldBuilder(); + getDocumentFallbackLocationFieldBuilder(); } } @@ -2408,6 +3686,11 @@ public Builder clear() { imageFallbackLocationBuilder_.dispose(); imageFallbackLocationBuilder_ = null; } + documentFallbackLocation_ = null; + if (documentFallbackLocationBuilder_ != null) { + documentFallbackLocationBuilder_.dispose(); + documentFallbackLocationBuilder_ = null; + } return this; } @@ -2452,6 +3735,13 @@ private void buildPartial0(com.google.privacy.dlp.v2.ProcessingLocation result) : imageFallbackLocationBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.documentFallbackLocation_ = + documentFallbackLocationBuilder_ == null + ? documentFallbackLocation_ + : documentFallbackLocationBuilder_.build(); + to_bitField0_ |= 0x00000002; + } result.bitField0_ |= to_bitField0_; } @@ -2503,6 +3793,9 @@ public Builder mergeFrom(com.google.privacy.dlp.v2.ProcessingLocation other) { if (other.hasImageFallbackLocation()) { mergeImageFallbackLocation(other.getImageFallbackLocation()); } + if (other.hasDocumentFallbackLocation()) { + mergeDocumentFallbackLocation(other.getDocumentFallbackLocation()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2536,6 +3829,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 + case 18: + { + input.readMessage( + getDocumentFallbackLocationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2567,7 +3867,7 @@ public Builder mergeFrom( * * *
    -     * Image processing will fall back using this configuration.
    +     * Image processing falls back using this configuration.
          * 
    * * @@ -2584,7 +3884,7 @@ public boolean hasImageFallbackLocation() { * * *
    -     * Image processing will fall back using this configuration.
    +     * Image processing falls back using this configuration.
          * 
    * * @@ -2609,7 +3909,7 @@ public boolean hasImageFallbackLocation() { * * *
    -     * Image processing will fall back using this configuration.
    +     * Image processing falls back using this configuration.
          * 
    * * @@ -2635,7 +3935,7 @@ public Builder setImageFallbackLocation( * * *
    -     * Image processing will fall back using this configuration.
    +     * Image processing falls back using this configuration.
          * 
    * * @@ -2659,7 +3959,7 @@ public Builder setImageFallbackLocation( * * *
    -     * Image processing will fall back using this configuration.
    +     * Image processing falls back using this configuration.
          * 
    * * @@ -2692,7 +3992,7 @@ public Builder mergeImageFallbackLocation( * * *
    -     * Image processing will fall back using this configuration.
    +     * Image processing falls back using this configuration.
          * 
    * * @@ -2714,7 +4014,7 @@ public Builder clearImageFallbackLocation() { * * *
    -     * Image processing will fall back using this configuration.
    +     * Image processing falls back using this configuration.
          * 
    * * @@ -2732,7 +4032,7 @@ public Builder clearImageFallbackLocation() { * * *
    -     * Image processing will fall back using this configuration.
    +     * Image processing falls back using this configuration.
          * 
    * * @@ -2755,7 +4055,7 @@ public Builder clearImageFallbackLocation() { * * *
    -     * Image processing will fall back using this configuration.
    +     * Image processing falls back using this configuration.
          * 
    * * @@ -2779,6 +4079,230 @@ public Builder clearImageFallbackLocation() { return imageFallbackLocationBuilder_; } + private com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation + documentFallbackLocation_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation, + com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation.Builder, + com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocationOrBuilder> + documentFallbackLocationBuilder_; + + /** + * + * + *
    +     * Document processing falls back using this configuration.
    +     * 
    + * + * + * .google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation document_fallback_location = 2; + * + * + * @return Whether the documentFallbackLocation field is set. + */ + public boolean hasDocumentFallbackLocation() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Document processing falls back using this configuration.
    +     * 
    + * + * + * .google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation document_fallback_location = 2; + * + * + * @return The documentFallbackLocation. + */ + public com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation + getDocumentFallbackLocation() { + if (documentFallbackLocationBuilder_ == null) { + return documentFallbackLocation_ == null + ? com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation + .getDefaultInstance() + : documentFallbackLocation_; + } else { + return documentFallbackLocationBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Document processing falls back using this configuration.
    +     * 
    + * + * + * .google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation document_fallback_location = 2; + * + */ + public Builder setDocumentFallbackLocation( + com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation value) { + if (documentFallbackLocationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + documentFallbackLocation_ = value; + } else { + documentFallbackLocationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Document processing falls back using this configuration.
    +     * 
    + * + * + * .google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation document_fallback_location = 2; + * + */ + public Builder setDocumentFallbackLocation( + com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation.Builder + builderForValue) { + if (documentFallbackLocationBuilder_ == null) { + documentFallbackLocation_ = builderForValue.build(); + } else { + documentFallbackLocationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Document processing falls back using this configuration.
    +     * 
    + * + * + * .google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation document_fallback_location = 2; + * + */ + public Builder mergeDocumentFallbackLocation( + com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation value) { + if (documentFallbackLocationBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && documentFallbackLocation_ != null + && documentFallbackLocation_ + != com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation + .getDefaultInstance()) { + getDocumentFallbackLocationBuilder().mergeFrom(value); + } else { + documentFallbackLocation_ = value; + } + } else { + documentFallbackLocationBuilder_.mergeFrom(value); + } + if (documentFallbackLocation_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Document processing falls back using this configuration.
    +     * 
    + * + * + * .google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation document_fallback_location = 2; + * + */ + public Builder clearDocumentFallbackLocation() { + bitField0_ = (bitField0_ & ~0x00000002); + documentFallbackLocation_ = null; + if (documentFallbackLocationBuilder_ != null) { + documentFallbackLocationBuilder_.dispose(); + documentFallbackLocationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Document processing falls back using this configuration.
    +     * 
    + * + * + * .google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation document_fallback_location = 2; + * + */ + public com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation.Builder + getDocumentFallbackLocationBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getDocumentFallbackLocationFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Document processing falls back using this configuration.
    +     * 
    + * + * + * .google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation document_fallback_location = 2; + * + */ + public com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocationOrBuilder + getDocumentFallbackLocationOrBuilder() { + if (documentFallbackLocationBuilder_ != null) { + return documentFallbackLocationBuilder_.getMessageOrBuilder(); + } else { + return documentFallbackLocation_ == null + ? com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation + .getDefaultInstance() + : documentFallbackLocation_; + } + } + + /** + * + * + *
    +     * Document processing falls back using this configuration.
    +     * 
    + * + * + * .google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation document_fallback_location = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation, + com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation.Builder, + com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocationOrBuilder> + getDocumentFallbackLocationFieldBuilder() { + if (documentFallbackLocationBuilder_ == null) { + documentFallbackLocationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation, + com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation.Builder, + com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocationOrBuilder>( + getDocumentFallbackLocation(), getParentForChildren(), isClean()); + documentFallbackLocation_ = null; + } + return documentFallbackLocationBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProcessingLocationOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProcessingLocationOrBuilder.java index e51600948aeb..040808fd15c8 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProcessingLocationOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProcessingLocationOrBuilder.java @@ -28,7 +28,7 @@ public interface ProcessingLocationOrBuilder * * *
    -   * Image processing will fall back using this configuration.
    +   * Image processing falls back using this configuration.
        * 
    * * @@ -43,7 +43,7 @@ public interface ProcessingLocationOrBuilder * * *
    -   * Image processing will fall back using this configuration.
    +   * Image processing falls back using this configuration.
        * 
    * * @@ -58,7 +58,7 @@ public interface ProcessingLocationOrBuilder * * *
    -   * Image processing will fall back using this configuration.
    +   * Image processing falls back using this configuration.
        * 
    * * @@ -67,4 +67,49 @@ public interface ProcessingLocationOrBuilder */ com.google.privacy.dlp.v2.ProcessingLocation.ImageFallbackLocationOrBuilder getImageFallbackLocationOrBuilder(); + + /** + * + * + *
    +   * Document processing falls back using this configuration.
    +   * 
    + * + * + * .google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation document_fallback_location = 2; + * + * + * @return Whether the documentFallbackLocation field is set. + */ + boolean hasDocumentFallbackLocation(); + + /** + * + * + *
    +   * Document processing falls back using this configuration.
    +   * 
    + * + * + * .google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation document_fallback_location = 2; + * + * + * @return The documentFallbackLocation. + */ + com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation + getDocumentFallbackLocation(); + + /** + * + * + *
    +   * Document processing falls back using this configuration.
    +   * 
    + * + * + * .google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation document_fallback_location = 2; + * + */ + com.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocationOrBuilder + getDocumentFallbackLocationOrBuilder(); } diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/QuasiId.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/QuasiId.java index b437140f792c..5a660cbf2641 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/QuasiId.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/QuasiId.java @@ -242,7 +242,7 @@ public com.google.privacy.dlp.v2.InfoTypeOrBuilder getInfoTypeOrBuilder() { *
        * A column can be tagged with a custom tag. In this case, the user must
        * indicate an auxiliary table that contains statistical information on
    -   * the possible values of this column (below).
    +   * the possible values of this column.
        * 
    * * string custom_tag = 3; @@ -259,7 +259,7 @@ public boolean hasCustomTag() { *
        * A column can be tagged with a custom tag. In this case, the user must
        * indicate an auxiliary table that contains statistical information on
    -   * the possible values of this column (below).
    +   * the possible values of this column.
        * 
    * * string custom_tag = 3; @@ -289,7 +289,7 @@ public java.lang.String getCustomTag() { *
        * A column can be tagged with a custom tag. In this case, the user must
        * indicate an auxiliary table that contains statistical information on
    -   * the possible values of this column (below).
    +   * the possible values of this column.
        * 
    * * string custom_tag = 3; @@ -1311,7 +1311,7 @@ public com.google.privacy.dlp.v2.InfoTypeOrBuilder getInfoTypeOrBuilder() { *
          * A column can be tagged with a custom tag. In this case, the user must
          * indicate an auxiliary table that contains statistical information on
    -     * the possible values of this column (below).
    +     * the possible values of this column.
          * 
    * * string custom_tag = 3; @@ -1329,7 +1329,7 @@ public boolean hasCustomTag() { *
          * A column can be tagged with a custom tag. In this case, the user must
          * indicate an auxiliary table that contains statistical information on
    -     * the possible values of this column (below).
    +     * the possible values of this column.
          * 
    * * string custom_tag = 3; @@ -1360,7 +1360,7 @@ public java.lang.String getCustomTag() { *
          * A column can be tagged with a custom tag. In this case, the user must
          * indicate an auxiliary table that contains statistical information on
    -     * the possible values of this column (below).
    +     * the possible values of this column.
          * 
    * * string custom_tag = 3; @@ -1391,7 +1391,7 @@ public com.google.protobuf.ByteString getCustomTagBytes() { *
          * A column can be tagged with a custom tag. In this case, the user must
          * indicate an auxiliary table that contains statistical information on
    -     * the possible values of this column (below).
    +     * the possible values of this column.
          * 
    * * string custom_tag = 3; @@ -1415,7 +1415,7 @@ public Builder setCustomTag(java.lang.String value) { *
          * A column can be tagged with a custom tag. In this case, the user must
          * indicate an auxiliary table that contains statistical information on
    -     * the possible values of this column (below).
    +     * the possible values of this column.
          * 
    * * string custom_tag = 3; @@ -1437,7 +1437,7 @@ public Builder clearCustomTag() { *
          * A column can be tagged with a custom tag. In this case, the user must
          * indicate an auxiliary table that contains statistical information on
    -     * the possible values of this column (below).
    +     * the possible values of this column.
          * 
    * * string custom_tag = 3; diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/QuasiIdOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/QuasiIdOrBuilder.java index c35e3710b53f..ec3d7de9ec1c 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/QuasiIdOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/QuasiIdOrBuilder.java @@ -119,7 +119,7 @@ public interface QuasiIdOrBuilder *
        * A column can be tagged with a custom tag. In this case, the user must
        * indicate an auxiliary table that contains statistical information on
    -   * the possible values of this column (below).
    +   * the possible values of this column.
        * 
    * * string custom_tag = 3; @@ -134,7 +134,7 @@ public interface QuasiIdOrBuilder *
        * A column can be tagged with a custom tag. In this case, the user must
        * indicate an auxiliary table that contains statistical information on
    -   * the possible values of this column (below).
    +   * the possible values of this column.
        * 
    * * string custom_tag = 3; @@ -149,7 +149,7 @@ public interface QuasiIdOrBuilder *
        * A column can be tagged with a custom tag. In this case, the user must
        * indicate an auxiliary table that contains statistical information on
    -   * the possible values of this column (below).
    +   * the possible values of this column.
        * 
    * * string custom_tag = 3; diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/SaveToGcsFindingsOutput.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/SaveToGcsFindingsOutput.java index 3fc678d0690a..926dbb11cd96 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/SaveToGcsFindingsOutput.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/SaveToGcsFindingsOutput.java @@ -25,7 +25,7 @@ *
      * Collection of findings saved to a Cloud Storage bucket. This is used as the
      * proto schema for textproto files created when specifying a cloud storage
    - * path to save inspection findings.
    + * path to save Inspect findings.
      * 
    * * Protobuf type {@code google.privacy.dlp.v2.SaveToGcsFindingsOutput} @@ -310,7 +310,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build *
        * Collection of findings saved to a Cloud Storage bucket. This is used as the
        * proto schema for textproto files created when specifying a cloud storage
    -   * path to save inspection findings.
    +   * path to save Inspect findings.
        * 
    * * Protobuf type {@code google.privacy.dlp.v2.SaveToGcsFindingsOutput} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StatisticalTable.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StatisticalTable.java index d0c1e7530af4..87e5b10c40b9 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StatisticalTable.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StatisticalTable.java @@ -118,7 +118,7 @@ public interface QuasiIdentifierFieldOrBuilder *
          * A column can be tagged with a custom tag. In this case, the user must
          * indicate an auxiliary table that contains statistical information on
    -     * the possible values of this column (below).
    +     * the possible values of this column.
          * 
    * * string custom_tag = 2; @@ -133,7 +133,7 @@ public interface QuasiIdentifierFieldOrBuilder *
          * A column can be tagged with a custom tag. In this case, the user must
          * indicate an auxiliary table that contains statistical information on
    -     * the possible values of this column (below).
    +     * the possible values of this column.
          * 
    * * string custom_tag = 2; @@ -250,7 +250,7 @@ public com.google.privacy.dlp.v2.FieldIdOrBuilder getFieldOrBuilder() { *
          * A column can be tagged with a custom tag. In this case, the user must
          * indicate an auxiliary table that contains statistical information on
    -     * the possible values of this column (below).
    +     * the possible values of this column.
          * 
    * * string custom_tag = 2; @@ -276,7 +276,7 @@ public java.lang.String getCustomTag() { *
          * A column can be tagged with a custom tag. In this case, the user must
          * indicate an auxiliary table that contains statistical information on
    -     * the possible values of this column (below).
    +     * the possible values of this column.
          * 
    * * string custom_tag = 2; @@ -892,7 +892,7 @@ public com.google.privacy.dlp.v2.FieldIdOrBuilder getFieldOrBuilder() { *
            * A column can be tagged with a custom tag. In this case, the user must
            * indicate an auxiliary table that contains statistical information on
    -       * the possible values of this column (below).
    +       * the possible values of this column.
            * 
    * * string custom_tag = 2; @@ -917,7 +917,7 @@ public java.lang.String getCustomTag() { *
            * A column can be tagged with a custom tag. In this case, the user must
            * indicate an auxiliary table that contains statistical information on
    -       * the possible values of this column (below).
    +       * the possible values of this column.
            * 
    * * string custom_tag = 2; @@ -942,7 +942,7 @@ public com.google.protobuf.ByteString getCustomTagBytes() { *
            * A column can be tagged with a custom tag. In this case, the user must
            * indicate an auxiliary table that contains statistical information on
    -       * the possible values of this column (below).
    +       * the possible values of this column.
            * 
    * * string custom_tag = 2; @@ -966,7 +966,7 @@ public Builder setCustomTag(java.lang.String value) { *
            * A column can be tagged with a custom tag. In this case, the user must
            * indicate an auxiliary table that contains statistical information on
    -       * the possible values of this column (below).
    +       * the possible values of this column.
            * 
    * * string custom_tag = 2; @@ -986,7 +986,7 @@ public Builder clearCustomTag() { *
            * A column can be tagged with a custom tag. In this case, the user must
            * indicate an auxiliary table that contains statistical information on
    -       * the possible values of this column (below).
    +       * the possible values of this column.
            * 
    * * string custom_tag = 2; diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TableDataProfile.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TableDataProfile.java index 62d5c5312f38..1c9d8fc9b988 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TableDataProfile.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TableDataProfile.java @@ -54,6 +54,7 @@ private TableDataProfile() { resourceVisibility_ = 0; tags_ = java.util.Collections.emptyList(); relatedResources_ = java.util.Collections.emptyList(); + domains_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -750,7 +751,8 @@ public com.google.privacy.dlp.v2.ProfileStatusOrBuilder getProfileStatusOrBuilde * * *
    -   * State of a profile.
    +   * State of a profile. This will always be set to DONE when the table data
    +   * profile is written to another service like BigQuery or Pub/Sub.
        * 
    * * .google.privacy.dlp.v2.TableDataProfile.State state = 22; @@ -766,7 +768,8 @@ public int getStateValue() { * * *
    -   * State of a profile.
    +   * State of a profile. This will always be set to DONE when the table data
    +   * profile is written to another service like BigQuery or Pub/Sub.
        * 
    * * .google.privacy.dlp.v2.TableDataProfile.State state = 22; @@ -1776,6 +1779,82 @@ public com.google.privacy.dlp.v2.RelatedResourceOrBuilder getRelatedResourcesOrB return relatedResources_.get(index); } + public static final int DOMAINS_FIELD_NUMBER = 47; + + @SuppressWarnings("serial") + private java.util.List domains_; + + /** + * + * + *
    +   * Domains associated with the profile.
    +   * 
    + * + * repeated .google.privacy.dlp.v2.Domain domains = 47; + */ + @java.lang.Override + public java.util.List getDomainsList() { + return domains_; + } + + /** + * + * + *
    +   * Domains associated with the profile.
    +   * 
    + * + * repeated .google.privacy.dlp.v2.Domain domains = 47; + */ + @java.lang.Override + public java.util.List + getDomainsOrBuilderList() { + return domains_; + } + + /** + * + * + *
    +   * Domains associated with the profile.
    +   * 
    + * + * repeated .google.privacy.dlp.v2.Domain domains = 47; + */ + @java.lang.Override + public int getDomainsCount() { + return domains_.size(); + } + + /** + * + * + *
    +   * Domains associated with the profile.
    +   * 
    + * + * repeated .google.privacy.dlp.v2.Domain domains = 47; + */ + @java.lang.Override + public com.google.privacy.dlp.v2.Domain getDomains(int index) { + return domains_.get(index); + } + + /** + * + * + *
    +   * Domains associated with the profile.
    +   * 
    + * + * repeated .google.privacy.dlp.v2.Domain domains = 47; + */ + @java.lang.Override + public com.google.privacy.dlp.v2.DomainOrBuilder getDomainsOrBuilder(int index) { + return domains_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1879,6 +1958,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < relatedResources_.size(); i++) { output.writeMessage(41, relatedResources_.get(i)); } + for (int i = 0; i < domains_.size(); i++) { + output.writeMessage(47, domains_.get(i)); + } getUnknownFields().writeTo(output); } @@ -1989,6 +2071,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(41, relatedResources_.get(i)); } + for (int i = 0; i < domains_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(47, domains_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2064,6 +2149,7 @@ public boolean equals(final java.lang.Object obj) { } if (!getTagsList().equals(other.getTagsList())) return false; if (!getRelatedResourcesList().equals(other.getRelatedResourcesList())) return false; + if (!getDomainsList().equals(other.getDomainsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2163,6 +2249,10 @@ public int hashCode() { hash = (37 * hash) + RELATED_RESOURCES_FIELD_NUMBER; hash = (53 * hash) + getRelatedResourcesList().hashCode(); } + if (getDomainsCount() > 0) { + hash = (37 * hash) + DOMAINS_FIELD_NUMBER; + hash = (53 * hash) + getDomainsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2340,6 +2430,7 @@ private void maybeForceBuilderInitialization() { getSampleFindingsTableFieldBuilder(); getTagsFieldBuilder(); getRelatedResourcesFieldBuilder(); + getDomainsFieldBuilder(); } } @@ -2440,6 +2531,13 @@ public Builder clear() { relatedResourcesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x10000000); + if (domainsBuilder_ == null) { + domains_ = java.util.Collections.emptyList(); + } else { + domains_ = null; + domainsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x20000000); return this; } @@ -2512,6 +2610,15 @@ private void buildPartialRepeatedFields(com.google.privacy.dlp.v2.TableDataProfi } else { result.relatedResources_ = relatedResourcesBuilder_.build(); } + if (domainsBuilder_ == null) { + if (((bitField0_ & 0x20000000) != 0)) { + domains_ = java.util.Collections.unmodifiableList(domains_); + bitField0_ = (bitField0_ & ~0x20000000); + } + result.domains_ = domains_; + } else { + result.domains_ = domainsBuilder_.build(); + } } private void buildPartial0(com.google.privacy.dlp.v2.TableDataProfile result) { @@ -2860,6 +2967,33 @@ public Builder mergeFrom(com.google.privacy.dlp.v2.TableDataProfile other) { } } } + if (domainsBuilder_ == null) { + if (!other.domains_.isEmpty()) { + if (domains_.isEmpty()) { + domains_ = other.domains_; + bitField0_ = (bitField0_ & ~0x20000000); + } else { + ensureDomainsIsMutable(); + domains_.addAll(other.domains_); + } + onChanged(); + } + } else { + if (!other.domains_.isEmpty()) { + if (domainsBuilder_.isEmpty()) { + domainsBuilder_.dispose(); + domainsBuilder_ = null; + domains_ = other.domains_; + bitField0_ = (bitField0_ & ~0x20000000); + domainsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDomainsFieldBuilder() + : null; + } else { + domainsBuilder_.addAllMessages(other.domains_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -3097,6 +3231,18 @@ public Builder mergeFrom( } break; } // case 330 + case 378: + { + com.google.privacy.dlp.v2.Domain m = + input.readMessage(com.google.privacy.dlp.v2.Domain.parser(), extensionRegistry); + if (domainsBuilder_ == null) { + ensureDomainsIsMutable(); + domains_.add(m); + } else { + domainsBuilder_.addMessage(m); + } + break; + } // case 378 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4318,7 +4464,8 @@ public com.google.privacy.dlp.v2.ProfileStatusOrBuilder getProfileStatusOrBuilde * * *
    -     * State of a profile.
    +     * State of a profile. This will always be set to DONE when the table data
    +     * profile is written to another service like BigQuery or Pub/Sub.
          * 
    * * .google.privacy.dlp.v2.TableDataProfile.State state = 22; @@ -4334,7 +4481,8 @@ public int getStateValue() { * * *
    -     * State of a profile.
    +     * State of a profile. This will always be set to DONE when the table data
    +     * profile is written to another service like BigQuery or Pub/Sub.
          * 
    * * .google.privacy.dlp.v2.TableDataProfile.State state = 22; @@ -4353,7 +4501,8 @@ public Builder setStateValue(int value) { * * *
    -     * State of a profile.
    +     * State of a profile. This will always be set to DONE when the table data
    +     * profile is written to another service like BigQuery or Pub/Sub.
          * 
    * * .google.privacy.dlp.v2.TableDataProfile.State state = 22; @@ -4373,7 +4522,8 @@ public com.google.privacy.dlp.v2.TableDataProfile.State getState() { * * *
    -     * State of a profile.
    +     * State of a profile. This will always be set to DONE when the table data
    +     * profile is written to another service like BigQuery or Pub/Sub.
          * 
    * * .google.privacy.dlp.v2.TableDataProfile.State state = 22; @@ -4395,7 +4545,8 @@ public Builder setState(com.google.privacy.dlp.v2.TableDataProfile.State value) * * *
    -     * State of a profile.
    +     * State of a profile. This will always be set to DONE when the table data
    +     * profile is written to another service like BigQuery or Pub/Sub.
          * 
    * * .google.privacy.dlp.v2.TableDataProfile.State state = 22; @@ -8081,6 +8232,369 @@ public com.google.privacy.dlp.v2.RelatedResource.Builder addRelatedResourcesBuil return relatedResourcesBuilder_; } + private java.util.List domains_ = + java.util.Collections.emptyList(); + + private void ensureDomainsIsMutable() { + if (!((bitField0_ & 0x20000000) != 0)) { + domains_ = new java.util.ArrayList(domains_); + bitField0_ |= 0x20000000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.Domain, + com.google.privacy.dlp.v2.Domain.Builder, + com.google.privacy.dlp.v2.DomainOrBuilder> + domainsBuilder_; + + /** + * + * + *
    +     * Domains associated with the profile.
    +     * 
    + * + * repeated .google.privacy.dlp.v2.Domain domains = 47; + */ + public java.util.List getDomainsList() { + if (domainsBuilder_ == null) { + return java.util.Collections.unmodifiableList(domains_); + } else { + return domainsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * Domains associated with the profile.
    +     * 
    + * + * repeated .google.privacy.dlp.v2.Domain domains = 47; + */ + public int getDomainsCount() { + if (domainsBuilder_ == null) { + return domains_.size(); + } else { + return domainsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * Domains associated with the profile.
    +     * 
    + * + * repeated .google.privacy.dlp.v2.Domain domains = 47; + */ + public com.google.privacy.dlp.v2.Domain getDomains(int index) { + if (domainsBuilder_ == null) { + return domains_.get(index); + } else { + return domainsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * Domains associated with the profile.
    +     * 
    + * + * repeated .google.privacy.dlp.v2.Domain domains = 47; + */ + public Builder setDomains(int index, com.google.privacy.dlp.v2.Domain value) { + if (domainsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDomainsIsMutable(); + domains_.set(index, value); + onChanged(); + } else { + domainsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Domains associated with the profile.
    +     * 
    + * + * repeated .google.privacy.dlp.v2.Domain domains = 47; + */ + public Builder setDomains(int index, com.google.privacy.dlp.v2.Domain.Builder builderForValue) { + if (domainsBuilder_ == null) { + ensureDomainsIsMutable(); + domains_.set(index, builderForValue.build()); + onChanged(); + } else { + domainsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Domains associated with the profile.
    +     * 
    + * + * repeated .google.privacy.dlp.v2.Domain domains = 47; + */ + public Builder addDomains(com.google.privacy.dlp.v2.Domain value) { + if (domainsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDomainsIsMutable(); + domains_.add(value); + onChanged(); + } else { + domainsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * Domains associated with the profile.
    +     * 
    + * + * repeated .google.privacy.dlp.v2.Domain domains = 47; + */ + public Builder addDomains(int index, com.google.privacy.dlp.v2.Domain value) { + if (domainsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDomainsIsMutable(); + domains_.add(index, value); + onChanged(); + } else { + domainsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Domains associated with the profile.
    +     * 
    + * + * repeated .google.privacy.dlp.v2.Domain domains = 47; + */ + public Builder addDomains(com.google.privacy.dlp.v2.Domain.Builder builderForValue) { + if (domainsBuilder_ == null) { + ensureDomainsIsMutable(); + domains_.add(builderForValue.build()); + onChanged(); + } else { + domainsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Domains associated with the profile.
    +     * 
    + * + * repeated .google.privacy.dlp.v2.Domain domains = 47; + */ + public Builder addDomains(int index, com.google.privacy.dlp.v2.Domain.Builder builderForValue) { + if (domainsBuilder_ == null) { + ensureDomainsIsMutable(); + domains_.add(index, builderForValue.build()); + onChanged(); + } else { + domainsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Domains associated with the profile.
    +     * 
    + * + * repeated .google.privacy.dlp.v2.Domain domains = 47; + */ + public Builder addAllDomains( + java.lang.Iterable values) { + if (domainsBuilder_ == null) { + ensureDomainsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, domains_); + onChanged(); + } else { + domainsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * Domains associated with the profile.
    +     * 
    + * + * repeated .google.privacy.dlp.v2.Domain domains = 47; + */ + public Builder clearDomains() { + if (domainsBuilder_ == null) { + domains_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x20000000); + onChanged(); + } else { + domainsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Domains associated with the profile.
    +     * 
    + * + * repeated .google.privacy.dlp.v2.Domain domains = 47; + */ + public Builder removeDomains(int index) { + if (domainsBuilder_ == null) { + ensureDomainsIsMutable(); + domains_.remove(index); + onChanged(); + } else { + domainsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * Domains associated with the profile.
    +     * 
    + * + * repeated .google.privacy.dlp.v2.Domain domains = 47; + */ + public com.google.privacy.dlp.v2.Domain.Builder getDomainsBuilder(int index) { + return getDomainsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * Domains associated with the profile.
    +     * 
    + * + * repeated .google.privacy.dlp.v2.Domain domains = 47; + */ + public com.google.privacy.dlp.v2.DomainOrBuilder getDomainsOrBuilder(int index) { + if (domainsBuilder_ == null) { + return domains_.get(index); + } else { + return domainsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * Domains associated with the profile.
    +     * 
    + * + * repeated .google.privacy.dlp.v2.Domain domains = 47; + */ + public java.util.List + getDomainsOrBuilderList() { + if (domainsBuilder_ != null) { + return domainsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(domains_); + } + } + + /** + * + * + *
    +     * Domains associated with the profile.
    +     * 
    + * + * repeated .google.privacy.dlp.v2.Domain domains = 47; + */ + public com.google.privacy.dlp.v2.Domain.Builder addDomainsBuilder() { + return getDomainsFieldBuilder() + .addBuilder(com.google.privacy.dlp.v2.Domain.getDefaultInstance()); + } + + /** + * + * + *
    +     * Domains associated with the profile.
    +     * 
    + * + * repeated .google.privacy.dlp.v2.Domain domains = 47; + */ + public com.google.privacy.dlp.v2.Domain.Builder addDomainsBuilder(int index) { + return getDomainsFieldBuilder() + .addBuilder(index, com.google.privacy.dlp.v2.Domain.getDefaultInstance()); + } + + /** + * + * + *
    +     * Domains associated with the profile.
    +     * 
    + * + * repeated .google.privacy.dlp.v2.Domain domains = 47; + */ + public java.util.List getDomainsBuilderList() { + return getDomainsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.Domain, + com.google.privacy.dlp.v2.Domain.Builder, + com.google.privacy.dlp.v2.DomainOrBuilder> + getDomainsFieldBuilder() { + if (domainsBuilder_ == null) { + domainsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.Domain, + com.google.privacy.dlp.v2.Domain.Builder, + com.google.privacy.dlp.v2.DomainOrBuilder>( + domains_, ((bitField0_ & 0x20000000) != 0), getParentForChildren(), isClean()); + domains_ = null; + } + return domainsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TableDataProfileOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TableDataProfileOrBuilder.java index 5cbff63b6705..ec3aa846eaaa 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TableDataProfileOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TableDataProfileOrBuilder.java @@ -295,7 +295,8 @@ public interface TableDataProfileOrBuilder * * *
    -   * State of a profile.
    +   * State of a profile. This will always be set to DONE when the table data
    +   * profile is written to another service like BigQuery or Pub/Sub.
        * 
    * * .google.privacy.dlp.v2.TableDataProfile.State state = 22; @@ -308,7 +309,8 @@ public interface TableDataProfileOrBuilder * * *
    -   * State of a profile.
    +   * State of a profile. This will always be set to DONE when the table data
    +   * profile is written to another service like BigQuery or Pub/Sub.
        * 
    * * .google.privacy.dlp.v2.TableDataProfile.State state = 22; @@ -1013,4 +1015,59 @@ java.lang.String getResourceLabelsOrDefault( * repeated .google.privacy.dlp.v2.RelatedResource related_resources = 41; */ com.google.privacy.dlp.v2.RelatedResourceOrBuilder getRelatedResourcesOrBuilder(int index); + + /** + * + * + *
    +   * Domains associated with the profile.
    +   * 
    + * + * repeated .google.privacy.dlp.v2.Domain domains = 47; + */ + java.util.List getDomainsList(); + + /** + * + * + *
    +   * Domains associated with the profile.
    +   * 
    + * + * repeated .google.privacy.dlp.v2.Domain domains = 47; + */ + com.google.privacy.dlp.v2.Domain getDomains(int index); + + /** + * + * + *
    +   * Domains associated with the profile.
    +   * 
    + * + * repeated .google.privacy.dlp.v2.Domain domains = 47; + */ + int getDomainsCount(); + + /** + * + * + *
    +   * Domains associated with the profile.
    +   * 
    + * + * repeated .google.privacy.dlp.v2.Domain domains = 47; + */ + java.util.List getDomainsOrBuilderList(); + + /** + * + * + *
    +   * Domains associated with the profile.
    +   * 
    + * + * repeated .google.privacy.dlp.v2.Domain domains = 47; + */ + com.google.privacy.dlp.v2.DomainOrBuilder getDomainsOrBuilder(int index); } diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/dlp.proto b/java-dlp/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/dlp.proto index fe26089f7534..c36796542f78 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/dlp.proto +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/dlp.proto @@ -1917,7 +1917,7 @@ message InspectDataSourceDetails { InspectJobConfig job_config = 3; } - // All result fields mentioned below are updated while the job is processing. + // All Result fields are updated while the job is processing. message Result { // Total size in bytes that were processed. int64 processed_bytes = 1; @@ -2024,6 +2024,29 @@ message DeidentifyDataSourceDetails { DeidentifyDataSourceStats deidentify_stats = 2; } +// Locations at which a feature can be used. +message LocationSupport { + // The location scope for a feature. + enum RegionalizationScope { + // Invalid. + REGIONALIZATION_SCOPE_UNSPECIFIED = 0; + + // Feature may be used with one or more regions. See locations for details. + REGIONAL = 1; + + // Feature may be used anywhere. Default value. + ANY_LOCATION = 2; + } + + // The current scope for location on this feature. This may expand over time. + RegionalizationScope regionalization_scope = 1; + + // Specific locations where the feature may be used. + // Examples: us-central1, us, asia, global + // If scope is ANY_LOCATION, no regions will be listed. + repeated string locations = 2; +} + // InfoType description. message InfoTypeDescription { // Internal name of the infoType. @@ -2039,6 +2062,9 @@ message InfoTypeDescription { // request. string description = 4; + // Locations at which this feature can be used. May change over time. + LocationSupport location_support = 6; + // A sample that is a true positive for this infoType. string example = 8; @@ -2081,6 +2107,9 @@ message InfoTypeCategory { // The infoType is typically used in Australia. AUSTRALIA = 3; + // The infoType is typically used in Austria. + AUSTRIA = 53; + // The infoType is typically used in Azerbaijan. AZERBAIJAN = 48; @@ -2358,7 +2387,7 @@ message QuasiId { // A column can be tagged with a custom tag. In this case, the user must // indicate an auxiliary table that contains statistical information on - // the possible values of this column (below). + // the possible values of this column. string custom_tag = 3; // If no semantic tag is indicated, we infer the statistical model from @@ -2383,7 +2412,7 @@ message StatisticalTable { // A column can be tagged with a custom tag. In this case, the user must // indicate an auxiliary table that contains statistical information on - // the possible values of this column (below). + // the possible values of this column. string custom_tag = 2; } @@ -2477,7 +2506,7 @@ message PrivacyMetric { // A column can be tagged with a custom tag. In this case, the user must // indicate an auxiliary table that contains statistical information on - // the possible values of this column (below). + // the possible values of this column. string custom_tag = 3; // If no semantic tag is indicated, we infer the statistical model from @@ -4287,12 +4316,12 @@ message Action { } // List of user-specified file type groups to transform. If specified, only - // the files with these file types will be transformed. If empty, all - // supported files will be transformed. Supported types may be automatically - // added over time. If a file type is set in this field that isn't supported - // by the Deidentify action then the job will fail and will not be - // successfully created/started. Currently the only file types supported - // are: IMAGES, TEXT_FILES, CSV, TSV. + // the files with these file types are transformed. If empty, all + // supported files are transformed. Supported types may be automatically + // added over time. Any unsupported file types that are set in this field + // are excluded from de-identification. An error is recorded for each + // unsupported file in the TransformationDetails output table. Currently the + // only file types supported are: IMAGES, TEXT_FILES, CSV, TSV. repeated FileType file_types_to_transform = 8; } @@ -7363,6 +7392,7 @@ message ListTableDataProfilesRequest { // - `resource_visibility`: PUBLIC|RESTRICTED // - `status_code` - an RPC status code as defined in // https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto + // // * The operator must be `=` or `!=`. // // Examples: @@ -7628,7 +7658,8 @@ message TableDataProfile { // May be empty if the profile is still being generated. ProfileStatus profile_status = 21; - // State of a profile. + // State of a profile. This will always be set to DONE when the table data + // profile is written to another service like BigQuery or Pub/Sub. State state = 22; // The sensitivity score of this table. @@ -7690,6 +7721,9 @@ message TableDataProfile { // Resources related to this profile. repeated RelatedResource related_resources = 41; + + // Domains associated with the profile. + repeated Domain domains = 47; } // Success or errors for the profile generation. @@ -8069,6 +8103,9 @@ message FileStoreDataProfile { // Resources related to this profile. repeated RelatedResource related_resources = 26; + + // Domains associated with the profile. + repeated Domain domains = 27; } // A tag associated with a resource. @@ -8234,6 +8271,7 @@ message ListFileStoreDataProfilesRequest { // - `resource_visibility`: PUBLIC|RESTRICTED // - `status_code` - an RPC status code as defined in // https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto + // // * The operator must be `=` or `!=`. // // Examples: @@ -8679,32 +8717,102 @@ message FileClusterType { // image OCR is only provided in limited regions but configuring // ProcessingLocation will redirect OCR to a location where OCR is provided. message ProcessingLocation { - // Processing will happen in a multi-region that contains the current region + // Processing occurs in a multi-region that contains the current region // if available. message MultiRegionProcessing {} - // Processing will happen in the global region. + // Processing occurs in the global region. message GlobalProcessing {} - // Configure image processing to fall back to the configured processing option - // below if unavailable in the request location. + // Configure image processing to fall back to any of the following processing + // options if image processing is unavailable in the original request + // location. message ImageFallbackLocation { - // Processing will happen in a multi-region that contains the current region + // Processing occurs in a multi-region that contains the current region // if available. MultiRegionProcessing multi_region_processing = 100; - // Processing will happen in the global region. + // Processing occurs in the global region. GlobalProcessing global_processing = 200; } - // Image processing will fall back using this configuration. + // Configure document processing to fall back to any of the following + // processing options if document processing is unavailable in the original + // request location. + message DocumentFallbackLocation { + // Processing occurs in a multi-region that contains the current region + // if available. + MultiRegionProcessing multi_region_processing = 100; + + // Processing occurs in the global region. + GlobalProcessing global_processing = 200; + } + + // Image processing falls back using this configuration. ImageFallbackLocation image_fallback_location = 1; + + // Document processing falls back using this configuration. + DocumentFallbackLocation document_fallback_location = 2; } // Collection of findings saved to a Cloud Storage bucket. This is used as the // proto schema for textproto files created when specifying a cloud storage -// path to save inspection findings. +// path to save Inspect findings. message SaveToGcsFindingsOutput { // List of findings. repeated Finding findings = 1; } + +// A domain represents a thematic category that a data profile can fall under. +message Domain { + // This enum defines the various domain categories a data profile can fall + // under. + enum Category { + // Category unspecified. + CATEGORY_UNSPECIFIED = 0; + + // Indicates that the data profile is related to artificial intelligence. + // When set, all findings stored to Security Command Center will set the + // corresponding AI domain field of `Finding` objects. + AI = 1; + + // Indicates that the data profile is related to code. + CODE = 2; + } + + // The signal used to determine the category. + // This list may increase over time. + enum Signal { + // Unused. + SIGNAL_UNSPECIFIED = 0; + + // One or more machine learning models are present. + MODEL = 1; + + // A table appears to be a text embedding. + TEXT_EMBEDDING = 2; + + // The [Cloud SQL Vertex + // AI](https://cloud.google.com/sql/docs/postgres/integrate-cloud-sql-with-vertex-ai) + // plugin is installed on the database. + VERTEX_PLUGIN = 3; + + // Support for [Cloud SQL vector + // embeddings](https://cloud.google.com/sql/docs/mysql/enable-vector-search) + // is enabled on the database. + VECTOR_PLUGIN = 4; + + // Source code is present. + SOURCE_CODE = 5; + + // If the service determines the category type. For example, Vertex AI + // assets would always have a `Category` of `AI`. + SERVICE = 6; + } + + // A domain category that this profile is related to. + Category category = 1; + + // The collection of signals that influenced selection of the category. + repeated Signal signals = 2; +} diff --git a/java-dms/README.md b/java-dms/README.md index aa5be321ed32..1dea836b06e7 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.66.0 + 26.67.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.71.0 + 2.72.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dms:2.71.0' +implementation 'com.google.cloud:google-cloud-dms:2.72.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dms" % "2.71.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dms" % "2.72.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dms.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dms/2.71.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dms/2.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-document-ai/README.md b/java-document-ai/README.md index 406c65d6edf8..3f032811dd66 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.66.0 + 26.67.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.76.0 + 2.77.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-document-ai:2.76.0' +implementation 'com.google.cloud:google-cloud-document-ai:2.77.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-document-ai" % "2.76.0" +libraryDependencies += "com.google.cloud" % "google-cloud-document-ai" % "2.77.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-document-ai.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-document-ai/2.76.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-document-ai/2.77.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-domains/README.md b/java-domains/README.md index 8c1c92f5ac32..12419ee79004 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.66.0 + 26.67.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.69.0 + 1.70.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-domains:1.69.0' +implementation 'com.google.cloud:google-cloud-domains:1.70.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-domains" % "1.69.0" +libraryDependencies += "com.google.cloud" % "google-cloud-domains" % "1.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-domains.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-domains/1.69.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-domains/1.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-edgenetwork/README.md b/java-edgenetwork/README.md index 2e254516ccc7..ede9b57f5447 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.66.0 + 26.67.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.40.0 + 0.41.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-edgenetwork:0.40.0' +implementation 'com.google.cloud:google-cloud-edgenetwork:0.41.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-edgenetwork" % "0.40.0" +libraryDependencies += "com.google.cloud" % "google-cloud-edgenetwork" % "0.41.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.40.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-edgenetwork/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-enterpriseknowledgegraph/README.md b/java-enterpriseknowledgegraph/README.md index e5b2406d932a..3edea2b19550 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.66.0 + 26.67.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.68.0 + 0.69.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-enterpriseknowledgegraph:0.68.0' +implementation 'com.google.cloud:google-cloud-enterpriseknowledgegraph:0.69.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-enterpriseknowledgegraph" % "0.68.0" +libraryDependencies += "com.google.cloud" % "google-cloud-enterpriseknowledgegraph" % "0.69.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.68.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-enterpriseknowledgegraph/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-errorreporting/README.md b/java-errorreporting/README.md index 3cff4cad2a4f..5f3c7b792cfd 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.66.0 + 26.67.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.193.0-beta + 0.194.0-beta ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-errorreporting:0.193.0-beta' +implementation 'com.google.cloud:google-cloud-errorreporting:0.194.0-beta' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-errorreporting" % "0.193.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-errorreporting" % "0.194.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.193.0-beta +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-errorreporting/0.194.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 3adcd4298ec6..6d09c144cbe7 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.66.0 + 26.67.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.72.0 + 2.73.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-essential-contacts:2.72.0' +implementation 'com.google.cloud:google-cloud-essential-contacts:2.73.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-essential-contacts" % "2.72.0" +libraryDependencies += "com.google.cloud" % "google-cloud-essential-contacts" % "2.73.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.72.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-essential-contacts/2.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-eventarc-publishing/README.md b/java-eventarc-publishing/README.md index eee484f897e0..cdea983c14c8 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.66.0 + 26.67.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.72.0 + 0.73.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-eventarc-publishing:0.72.0' +implementation 'com.google.cloud:google-cloud-eventarc-publishing:0.73.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-eventarc-publishing" % "0.72.0" +libraryDependencies += "com.google.cloud" % "google-cloud-eventarc-publishing" % "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-eventarc-publishing.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc-publishing/0.72.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc-publishing/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-eventarc/README.md b/java-eventarc/README.md index ea68b3a5efd5..c43e004107a5 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.66.0 + 26.67.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.72.0 + 1.73.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-eventarc:1.72.0' +implementation 'com.google.cloud:google-cloud-eventarc:1.73.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-eventarc" % "1.72.0" +libraryDependencies += "com.google.cloud" % "google-cloud-eventarc" % "1.73.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.72.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc/1.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-filestore/README.md b/java-filestore/README.md index 326cc84b861c..014e2a57c9a5 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.66.0 + 26.67.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.73.0 + 1.74.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-filestore:1.73.0' +implementation 'com.google.cloud:google-cloud-filestore:1.74.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-filestore" % "1.73.0" +libraryDependencies += "com.google.cloud" % "google-cloud-filestore" % "1.74.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.73.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-filestore/1.74.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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 9f6486bf4274..de9fdab62435 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.66.0 + 26.67.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.13.0 + 0.14.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-financialservices:0.13.0' +implementation 'com.google.cloud:google-cloud-financialservices:0.14.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-financialservices" % "0.13.0" +libraryDependencies += "com.google.cloud" % "google-cloud-financialservices" % "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-financialservices.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-financialservices/0.13.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-financialservices/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-functions/README.md b/java-functions/README.md index da3d1b05a304..56080b5c1f1d 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.66.0 + 26.67.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.74.0 + 2.75.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-functions:2.74.0' +implementation 'com.google.cloud:google-cloud-functions:2.75.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-functions" % "2.74.0" +libraryDependencies += "com.google.cloud" % "google-cloud-functions" % "2.75.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.74.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-functions/2.75.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-gdchardwaremanagement/README.md b/java-gdchardwaremanagement/README.md index b11e5486af0b..44c9c6ab7efb 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.66.0 + 26.67.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.27.0 + 0.28.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gdchardwaremanagement:0.27.0' +implementation 'com.google.cloud:google-cloud-gdchardwaremanagement:0.28.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gdchardwaremanagement" % "0.27.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gdchardwaremanagement" % "0.28.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.27.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gdchardwaremanagement/0.28.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementClient.java b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementClient.java index d72a5592a659..5e4880a8de5d 100644 --- a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementClient.java +++ b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementClient.java @@ -38,6 +38,7 @@ import com.google.longrunning.Operation; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; +import com.google.type.Date; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -193,6 +194,26 @@ * * * + *

    CancelOrder + *

    Cancels an order. + * + *

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

    + *
      + *
    • cancelOrderAsync(CancelOrderRequest request) + *

    + *

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

    + *
      + *
    • cancelOrderAsync(OrderName name) + *

    • cancelOrderAsync(String name) + *

    + *

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

    + *
      + *
    • cancelOrderOperationCallable() + *

    • cancelOrderCallable() + *

    + * + * + * *

    ListSites *

    Lists sites in a given project and location. * @@ -761,6 +782,20 @@ * * * + *

    RequestOrderDateChange + *

    Updates the requested date change of a single Order. + * + *

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

    + *
      + *
    • requestOrderDateChangeAsync(OrderName name, Date requestedDate) + *

    • requestOrderDateChangeAsync(String name, Date requestedDate) + *

    • requestOrderDateChangeAsync(RequestOrderDateChangeRequest request) + *

    • requestOrderDateChangeOperationCallable() + *

    • requestOrderDateChangeCallable() + *

    + * + * + * *

    ListLocations *

    Lists information about the supported locations for this service. * @@ -1824,6 +1859,155 @@ public final UnaryCallable submitOrderCallable() return stub.submitOrderCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Cancels an order. + * + *

    Sample code: + * + *

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

    Sample code: + * + *

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

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
    +   *     GDCHardwareManagementClient.create()) {
    +   *   CancelOrderRequest request =
    +   *       CancelOrderRequest.newBuilder()
    +   *           .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
    +   *           .setRequestId("requestId693933066")
    +   *           .build();
    +   *   Order response = gDCHardwareManagementClient.cancelOrderAsync(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 cancelOrderAsync( + CancelOrderRequest request) { + return cancelOrderOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Cancels an order. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
    +   *     GDCHardwareManagementClient.create()) {
    +   *   CancelOrderRequest request =
    +   *       CancelOrderRequest.newBuilder()
    +   *           .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
    +   *           .setRequestId("requestId693933066")
    +   *           .build();
    +   *   OperationFuture future =
    +   *       gDCHardwareManagementClient.cancelOrderOperationCallable().futureCall(request);
    +   *   // Do something.
    +   *   Order response = future.get();
    +   * }
    +   * }
    + */ + public final OperationCallable + cancelOrderOperationCallable() { + return stub.cancelOrderOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Cancels an order. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
    +   *     GDCHardwareManagementClient.create()) {
    +   *   CancelOrderRequest request =
    +   *       CancelOrderRequest.newBuilder()
    +   *           .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
    +   *           .setRequestId("requestId693933066")
    +   *           .build();
    +   *   ApiFuture future =
    +   *       gDCHardwareManagementClient.cancelOrderCallable().futureCall(request);
    +   *   // Do something.
    +   *   Operation response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable cancelOrderCallable() { + return stub.cancelOrderCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists sites in a given project and location. @@ -6234,6 +6418,173 @@ public final UnaryCallable signalZoneStateCal return stub.signalZoneStateCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the requested date change of a single Order. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
    +   *     GDCHardwareManagementClient.create()) {
    +   *   OrderName name = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]");
    +   *   Date requestedDate = Date.newBuilder().build();
    +   *   Order response =
    +   *       gDCHardwareManagementClient.requestOrderDateChangeAsync(name, requestedDate).get();
    +   * }
    +   * }
    + * + * @param name Required. The name of the order to update. Format: + * projects/{project}/locations/{location}/orders/{order} + * @param requestedDate Required. The date to which the customer or Google wants to set the + * scheduled installation date. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture requestOrderDateChangeAsync( + OrderName name, Date requestedDate) { + RequestOrderDateChangeRequest request = + RequestOrderDateChangeRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setRequestedDate(requestedDate) + .build(); + return requestOrderDateChangeAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the requested date change of a single Order. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
    +   *     GDCHardwareManagementClient.create()) {
    +   *   String name = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString();
    +   *   Date requestedDate = Date.newBuilder().build();
    +   *   Order response =
    +   *       gDCHardwareManagementClient.requestOrderDateChangeAsync(name, requestedDate).get();
    +   * }
    +   * }
    + * + * @param name Required. The name of the order to update. Format: + * projects/{project}/locations/{location}/orders/{order} + * @param requestedDate Required. The date to which the customer or Google wants to set the + * scheduled installation date. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture requestOrderDateChangeAsync( + String name, Date requestedDate) { + RequestOrderDateChangeRequest request = + RequestOrderDateChangeRequest.newBuilder() + .setName(name) + .setRequestedDate(requestedDate) + .build(); + return requestOrderDateChangeAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the requested date change of a single Order. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
    +   *     GDCHardwareManagementClient.create()) {
    +   *   RequestOrderDateChangeRequest request =
    +   *       RequestOrderDateChangeRequest.newBuilder()
    +   *           .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
    +   *           .setRequestedDate(Date.newBuilder().build())
    +   *           .build();
    +   *   Order response = gDCHardwareManagementClient.requestOrderDateChangeAsync(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 requestOrderDateChangeAsync( + RequestOrderDateChangeRequest request) { + return requestOrderDateChangeOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the requested date change of a single Order. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
    +   *     GDCHardwareManagementClient.create()) {
    +   *   RequestOrderDateChangeRequest request =
    +   *       RequestOrderDateChangeRequest.newBuilder()
    +   *           .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
    +   *           .setRequestedDate(Date.newBuilder().build())
    +   *           .build();
    +   *   OperationFuture future =
    +   *       gDCHardwareManagementClient.requestOrderDateChangeOperationCallable().futureCall(request);
    +   *   // Do something.
    +   *   Order response = future.get();
    +   * }
    +   * }
    + */ + public final OperationCallable + requestOrderDateChangeOperationCallable() { + return stub.requestOrderDateChangeOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the requested date change of a single Order. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
    +   *     GDCHardwareManagementClient.create()) {
    +   *   RequestOrderDateChangeRequest request =
    +   *       RequestOrderDateChangeRequest.newBuilder()
    +   *           .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
    +   *           .setRequestedDate(Date.newBuilder().build())
    +   *           .build();
    +   *   ApiFuture future =
    +   *       gDCHardwareManagementClient.requestOrderDateChangeCallable().futureCall(request);
    +   *   // Do something.
    +   *   Operation response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable + requestOrderDateChangeCallable() { + return stub.requestOrderDateChangeCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists information about the supported locations for this service. diff --git a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementSettings.java b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementSettings.java index 7e6f5a07949a..9bc1a1b88172 100644 --- a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementSettings.java +++ b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementSettings.java @@ -187,6 +187,17 @@ public UnaryCallSettings submitOrderSettings() { return ((GDCHardwareManagementStubSettings) getStubSettings()).submitOrderOperationSettings(); } + /** Returns the object with the settings used for calls to cancelOrder. */ + public UnaryCallSettings cancelOrderSettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()).cancelOrderSettings(); + } + + /** Returns the object with the settings used for calls to cancelOrder. */ + public OperationCallSettings + cancelOrderOperationSettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()).cancelOrderOperationSettings(); + } + /** Returns the object with the settings used for calls to listSites. */ public PagedCallSettings listSitesSettings() { @@ -434,6 +445,19 @@ public UnaryCallSettings signalZoneStateSetti .signalZoneStateOperationSettings(); } + /** Returns the object with the settings used for calls to requestOrderDateChange. */ + public UnaryCallSettings + requestOrderDateChangeSettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()).requestOrderDateChangeSettings(); + } + + /** Returns the object with the settings used for calls to requestOrderDateChange. */ + public OperationCallSettings + requestOrderDateChangeOperationSettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()) + .requestOrderDateChangeOperationSettings(); + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -613,6 +637,17 @@ public UnaryCallSettings.Builder submitOrderSetti return getStubSettingsBuilder().submitOrderOperationSettings(); } + /** Returns the builder for the settings used for calls to cancelOrder. */ + public UnaryCallSettings.Builder cancelOrderSettings() { + return getStubSettingsBuilder().cancelOrderSettings(); + } + + /** Returns the builder for the settings used for calls to cancelOrder. */ + public OperationCallSettings.Builder + cancelOrderOperationSettings() { + return getStubSettingsBuilder().cancelOrderOperationSettings(); + } + /** Returns the builder for the settings used for calls to listSites. */ public PagedCallSettings.Builder listSitesSettings() { @@ -863,6 +898,18 @@ public UnaryCallSettings.Builder signalZoneSt return getStubSettingsBuilder().signalZoneStateOperationSettings(); } + /** Returns the builder for the settings used for calls to requestOrderDateChange. */ + public UnaryCallSettings.Builder + requestOrderDateChangeSettings() { + return getStubSettingsBuilder().requestOrderDateChangeSettings(); + } + + /** Returns the builder for the settings used for calls to requestOrderDateChange. */ + public OperationCallSettings.Builder + requestOrderDateChangeOperationSettings() { + return getStubSettingsBuilder().requestOrderDateChangeOperationSettings(); + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/gapic_metadata.json b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/gapic_metadata.json index b85a8a2ebf49..ba5bed1a1cf0 100644 --- a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/gapic_metadata.json +++ b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/gapic_metadata.json @@ -10,6 +10,9 @@ "grpc": { "libraryClient": "GDCHardwareManagementClient", "rpcs": { + "CancelOrder": { + "methods": ["cancelOrderAsync", "cancelOrderAsync", "cancelOrderAsync", "cancelOrderOperationCallable", "cancelOrderCallable"] + }, "CreateComment": { "methods": ["createCommentAsync", "createCommentAsync", "createCommentAsync", "createCommentOperationCallable", "createCommentCallable"] }, @@ -100,6 +103,9 @@ "RecordActionOnComment": { "methods": ["recordActionOnComment", "recordActionOnComment", "recordActionOnComment", "recordActionOnCommentCallable"] }, + "RequestOrderDateChange": { + "methods": ["requestOrderDateChangeAsync", "requestOrderDateChangeAsync", "requestOrderDateChangeAsync", "requestOrderDateChangeOperationCallable", "requestOrderDateChangeCallable"] + }, "SignalZoneState": { "methods": ["signalZoneStateAsync", "signalZoneStateAsync", "signalZoneStateAsync", "signalZoneStateOperationCallable", "signalZoneStateCallable"] }, diff --git a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/GDCHardwareManagementStub.java b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/GDCHardwareManagementStub.java index 29f90d4fb202..46d00826ea12 100644 --- a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/GDCHardwareManagementStub.java +++ b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/GDCHardwareManagementStub.java @@ -30,6 +30,7 @@ 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.gdchardwaremanagement.v1alpha.CancelOrderRequest; import com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry; import com.google.cloud.gdchardwaremanagement.v1alpha.Comment; import com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest; @@ -72,6 +73,7 @@ import com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata; import com.google.cloud.gdchardwaremanagement.v1alpha.Order; import com.google.cloud.gdchardwaremanagement.v1alpha.RecordActionOnCommentRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest; import com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest; import com.google.cloud.gdchardwaremanagement.v1alpha.Site; import com.google.cloud.gdchardwaremanagement.v1alpha.Sku; @@ -157,6 +159,15 @@ public UnaryCallable submitOrderCallable() { throw new UnsupportedOperationException("Not implemented: submitOrderCallable()"); } + public OperationCallable + cancelOrderOperationCallable() { + throw new UnsupportedOperationException("Not implemented: cancelOrderOperationCallable()"); + } + + public UnaryCallable cancelOrderCallable() { + throw new UnsupportedOperationException("Not implemented: cancelOrderCallable()"); + } + public UnaryCallable listSitesPagedCallable() { throw new UnsupportedOperationException("Not implemented: listSitesPagedCallable()"); } @@ -378,6 +389,16 @@ public UnaryCallable signalZoneStateCallable( throw new UnsupportedOperationException("Not implemented: signalZoneStateCallable()"); } + public OperationCallable + requestOrderDateChangeOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: requestOrderDateChangeOperationCallable()"); + } + + public UnaryCallable requestOrderDateChangeCallable() { + throw new UnsupportedOperationException("Not implemented: requestOrderDateChangeCallable()"); + } + public UnaryCallable listLocationsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); diff --git a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/GDCHardwareManagementStubSettings.java b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/GDCHardwareManagementStubSettings.java index 0796250c1b58..c457db987001 100644 --- a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/GDCHardwareManagementStubSettings.java +++ b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/GDCHardwareManagementStubSettings.java @@ -56,6 +56,7 @@ 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.gdchardwaremanagement.v1alpha.CancelOrderRequest; import com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry; import com.google.cloud.gdchardwaremanagement.v1alpha.Comment; import com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest; @@ -98,6 +99,7 @@ import com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata; import com.google.cloud.gdchardwaremanagement.v1alpha.Order; import com.google.cloud.gdchardwaremanagement.v1alpha.RecordActionOnCommentRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest; import com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest; import com.google.cloud.gdchardwaremanagement.v1alpha.Site; import com.google.cloud.gdchardwaremanagement.v1alpha.Sku; @@ -224,6 +226,9 @@ public class GDCHardwareManagementStubSettings private final UnaryCallSettings submitOrderSettings; private final OperationCallSettings submitOrderOperationSettings; + private final UnaryCallSettings cancelOrderSettings; + private final OperationCallSettings + cancelOrderOperationSettings; private final PagedCallSettings listSitesSettings; private final UnaryCallSettings getSiteSettings; @@ -299,6 +304,10 @@ public class GDCHardwareManagementStubSettings private final UnaryCallSettings signalZoneStateSettings; private final OperationCallSettings signalZoneStateOperationSettings; + private final UnaryCallSettings + requestOrderDateChangeSettings; + private final OperationCallSettings + requestOrderDateChangeOperationSettings; private final PagedCallSettings< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -835,6 +844,17 @@ public UnaryCallSettings submitOrderSettings() { return submitOrderOperationSettings; } + /** Returns the object with the settings used for calls to cancelOrder. */ + public UnaryCallSettings cancelOrderSettings() { + return cancelOrderSettings; + } + + /** Returns the object with the settings used for calls to cancelOrder. */ + public OperationCallSettings + cancelOrderOperationSettings() { + return cancelOrderOperationSettings; + } + /** Returns the object with the settings used for calls to listSites. */ public PagedCallSettings listSitesSettings() { @@ -1075,6 +1095,18 @@ public UnaryCallSettings signalZoneStateSetti return signalZoneStateOperationSettings; } + /** Returns the object with the settings used for calls to requestOrderDateChange. */ + public UnaryCallSettings + requestOrderDateChangeSettings() { + return requestOrderDateChangeSettings; + } + + /** Returns the object with the settings used for calls to requestOrderDateChange. */ + public OperationCallSettings + requestOrderDateChangeOperationSettings() { + return requestOrderDateChangeOperationSettings; + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -1207,6 +1239,8 @@ protected GDCHardwareManagementStubSettings(Builder settingsBuilder) throws IOEx deleteOrderOperationSettings = settingsBuilder.deleteOrderOperationSettings().build(); submitOrderSettings = settingsBuilder.submitOrderSettings().build(); submitOrderOperationSettings = settingsBuilder.submitOrderOperationSettings().build(); + cancelOrderSettings = settingsBuilder.cancelOrderSettings().build(); + cancelOrderOperationSettings = settingsBuilder.cancelOrderOperationSettings().build(); listSitesSettings = settingsBuilder.listSitesSettings().build(); getSiteSettings = settingsBuilder.getSiteSettings().build(); createSiteSettings = settingsBuilder.createSiteSettings().build(); @@ -1253,6 +1287,9 @@ protected GDCHardwareManagementStubSettings(Builder settingsBuilder) throws IOEx deleteZoneOperationSettings = settingsBuilder.deleteZoneOperationSettings().build(); signalZoneStateSettings = settingsBuilder.signalZoneStateSettings().build(); signalZoneStateOperationSettings = settingsBuilder.signalZoneStateOperationSettings().build(); + requestOrderDateChangeSettings = settingsBuilder.requestOrderDateChangeSettings().build(); + requestOrderDateChangeOperationSettings = + settingsBuilder.requestOrderDateChangeOperationSettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); getLocationSettings = settingsBuilder.getLocationSettings().build(); } @@ -1277,6 +1314,9 @@ public static class Builder private final UnaryCallSettings.Builder submitOrderSettings; private final OperationCallSettings.Builder submitOrderOperationSettings; + private final UnaryCallSettings.Builder cancelOrderSettings; + private final OperationCallSettings.Builder + cancelOrderOperationSettings; private final PagedCallSettings.Builder< ListSitesRequest, ListSitesResponse, ListSitesPagedResponse> listSitesSettings; @@ -1363,6 +1403,11 @@ public static class Builder signalZoneStateSettings; private final OperationCallSettings.Builder signalZoneStateOperationSettings; + private final UnaryCallSettings.Builder + requestOrderDateChangeSettings; + private final OperationCallSettings.Builder< + RequestOrderDateChangeRequest, Order, OperationMetadata> + requestOrderDateChangeOperationSettings; private final PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -1428,6 +1473,8 @@ protected Builder(ClientContext clientContext) { deleteOrderOperationSettings = OperationCallSettings.newBuilder(); submitOrderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); submitOrderOperationSettings = OperationCallSettings.newBuilder(); + cancelOrderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + cancelOrderOperationSettings = OperationCallSettings.newBuilder(); listSitesSettings = PagedCallSettings.newBuilder(LIST_SITES_PAGE_STR_FACT); getSiteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createSiteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -1472,6 +1519,8 @@ protected Builder(ClientContext clientContext) { deleteZoneOperationSettings = OperationCallSettings.newBuilder(); signalZoneStateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); signalZoneStateOperationSettings = OperationCallSettings.newBuilder(); + requestOrderDateChangeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + requestOrderDateChangeOperationSettings = OperationCallSettings.newBuilder(); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -1483,6 +1532,7 @@ protected Builder(ClientContext clientContext) { updateOrderSettings, deleteOrderSettings, submitOrderSettings, + cancelOrderSettings, listSitesSettings, getSiteSettings, createSiteSettings, @@ -1512,6 +1562,7 @@ protected Builder(ClientContext clientContext) { updateZoneSettings, deleteZoneSettings, signalZoneStateSettings, + requestOrderDateChangeSettings, listLocationsSettings, getLocationSettings); initDefaults(this); @@ -1530,6 +1581,8 @@ protected Builder(GDCHardwareManagementStubSettings settings) { deleteOrderOperationSettings = settings.deleteOrderOperationSettings.toBuilder(); submitOrderSettings = settings.submitOrderSettings.toBuilder(); submitOrderOperationSettings = settings.submitOrderOperationSettings.toBuilder(); + cancelOrderSettings = settings.cancelOrderSettings.toBuilder(); + cancelOrderOperationSettings = settings.cancelOrderOperationSettings.toBuilder(); listSitesSettings = settings.listSitesSettings.toBuilder(); getSiteSettings = settings.getSiteSettings.toBuilder(); createSiteSettings = settings.createSiteSettings.toBuilder(); @@ -1576,6 +1629,9 @@ protected Builder(GDCHardwareManagementStubSettings settings) { deleteZoneOperationSettings = settings.deleteZoneOperationSettings.toBuilder(); signalZoneStateSettings = settings.signalZoneStateSettings.toBuilder(); signalZoneStateOperationSettings = settings.signalZoneStateOperationSettings.toBuilder(); + requestOrderDateChangeSettings = settings.requestOrderDateChangeSettings.toBuilder(); + requestOrderDateChangeOperationSettings = + settings.requestOrderDateChangeOperationSettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); getLocationSettings = settings.getLocationSettings.toBuilder(); @@ -1587,6 +1643,7 @@ protected Builder(GDCHardwareManagementStubSettings settings) { updateOrderSettings, deleteOrderSettings, submitOrderSettings, + cancelOrderSettings, listSitesSettings, getSiteSettings, createSiteSettings, @@ -1616,6 +1673,7 @@ protected Builder(GDCHardwareManagementStubSettings settings) { updateZoneSettings, deleteZoneSettings, signalZoneStateSettings, + requestOrderDateChangeSettings, listLocationsSettings, getLocationSettings); } @@ -1675,6 +1733,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder + .cancelOrderSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .listSitesSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) @@ -1820,6 +1883,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .requestOrderDateChangeSettings() + .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")) @@ -1922,6 +1990,29 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeoutDuration(Duration.ofMillis(300000L)) .build())); + builder + .cancelOrderOperationSettings() + .setInitialCallSettings( + UnaryCallSettings.newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Order.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 .createSiteOperationSettings() .setInitialCallSettings( @@ -2247,6 +2338,30 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeoutDuration(Duration.ofMillis(300000L)) .build())); + builder + .requestOrderDateChangeOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Order.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; } @@ -2320,6 +2435,17 @@ public UnaryCallSettings.Builder submitOrderSetti return submitOrderOperationSettings; } + /** Returns the builder for the settings used for calls to cancelOrder. */ + public UnaryCallSettings.Builder cancelOrderSettings() { + return cancelOrderSettings; + } + + /** Returns the builder for the settings used for calls to cancelOrder. */ + public OperationCallSettings.Builder + cancelOrderOperationSettings() { + return cancelOrderOperationSettings; + } + /** Returns the builder for the settings used for calls to listSites. */ public PagedCallSettings.Builder listSitesSettings() { @@ -2570,6 +2696,18 @@ public UnaryCallSettings.Builder signalZoneSt return signalZoneStateOperationSettings; } + /** Returns the builder for the settings used for calls to requestOrderDateChange. */ + public UnaryCallSettings.Builder + requestOrderDateChangeSettings() { + return requestOrderDateChangeSettings; + } + + /** Returns the builder for the settings used for calls to requestOrderDateChange. */ + public OperationCallSettings.Builder + requestOrderDateChangeOperationSettings() { + return requestOrderDateChangeOperationSettings; + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/GrpcGDCHardwareManagementStub.java b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/GrpcGDCHardwareManagementStub.java index 714aac6db23e..969181376a8e 100644 --- a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/GrpcGDCHardwareManagementStub.java +++ b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/GrpcGDCHardwareManagementStub.java @@ -35,6 +35,7 @@ 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.gdchardwaremanagement.v1alpha.CancelOrderRequest; import com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry; import com.google.cloud.gdchardwaremanagement.v1alpha.Comment; import com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest; @@ -77,6 +78,7 @@ import com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata; import com.google.cloud.gdchardwaremanagement.v1alpha.Order; import com.google.cloud.gdchardwaremanagement.v1alpha.RecordActionOnCommentRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest; import com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest; import com.google.cloud.gdchardwaremanagement.v1alpha.Site; import com.google.cloud.gdchardwaremanagement.v1alpha.Sku; @@ -170,6 +172,16 @@ public class GrpcGDCHardwareManagementStub extends GDCHardwareManagementStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor cancelOrderMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/CancelOrder") + .setRequestMarshaller(ProtoUtils.marshaller(CancelOrderRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor listSitesMethodDescriptor = MethodDescriptor.newBuilder() @@ -495,6 +507,18 @@ public class GrpcGDCHardwareManagementStub extends GDCHardwareManagementStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + requestOrderDateChangeMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/RequestOrderDateChange") + .setRequestMarshaller( + ProtoUtils.marshaller(RequestOrderDateChangeRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor listLocationsMethodDescriptor = MethodDescriptor.newBuilder() @@ -531,6 +555,9 @@ public class GrpcGDCHardwareManagementStub extends GDCHardwareManagementStub { private final UnaryCallable submitOrderCallable; private final OperationCallable submitOrderOperationCallable; + private final UnaryCallable cancelOrderCallable; + private final OperationCallable + cancelOrderOperationCallable; private final UnaryCallable listSitesCallable; private final UnaryCallable listSitesPagedCallable; private final UnaryCallable getSiteCallable; @@ -601,6 +628,10 @@ public class GrpcGDCHardwareManagementStub extends GDCHardwareManagementStub { private final UnaryCallable signalZoneStateCallable; private final OperationCallable signalZoneStateOperationCallable; + private final UnaryCallable + requestOrderDateChangeCallable; + private final OperationCallable + requestOrderDateChangeOperationCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -710,6 +741,16 @@ protected GrpcGDCHardwareManagementStub( return builder.build(); }) .build(); + GrpcCallSettings cancelOrderTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(cancelOrderMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); GrpcCallSettings listSitesTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listSitesMethodDescriptor) @@ -1003,6 +1044,17 @@ protected GrpcGDCHardwareManagementStub( return builder.build(); }) .build(); + GrpcCallSettings + requestOrderDateChangeTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(requestOrderDateChangeMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listLocationsMethodDescriptor) @@ -1069,6 +1121,15 @@ protected GrpcGDCHardwareManagementStub( settings.submitOrderOperationSettings(), clientContext, operationsStub); + this.cancelOrderCallable = + callableFactory.createUnaryCallable( + cancelOrderTransportSettings, settings.cancelOrderSettings(), clientContext); + this.cancelOrderOperationCallable = + callableFactory.createOperationCallable( + cancelOrderTransportSettings, + settings.cancelOrderOperationSettings(), + clientContext, + operationsStub); this.listSitesCallable = callableFactory.createUnaryCallable( listSitesTransportSettings, settings.listSitesSettings(), clientContext); @@ -1279,6 +1340,17 @@ protected GrpcGDCHardwareManagementStub( settings.signalZoneStateOperationSettings(), clientContext, operationsStub); + this.requestOrderDateChangeCallable = + callableFactory.createUnaryCallable( + requestOrderDateChangeTransportSettings, + settings.requestOrderDateChangeSettings(), + clientContext); + this.requestOrderDateChangeOperationCallable = + callableFactory.createOperationCallable( + requestOrderDateChangeTransportSettings, + settings.requestOrderDateChangeOperationSettings(), + clientContext, + operationsStub); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -1356,6 +1428,17 @@ public UnaryCallable submitOrderCallable() { return submitOrderOperationCallable; } + @Override + public UnaryCallable cancelOrderCallable() { + return cancelOrderCallable; + } + + @Override + public OperationCallable + cancelOrderOperationCallable() { + return cancelOrderOperationCallable; + } + @Override public UnaryCallable listSitesCallable() { return listSitesCallable; @@ -1624,6 +1707,17 @@ public UnaryCallable signalZoneStateCallable( return signalZoneStateOperationCallable; } + @Override + public UnaryCallable requestOrderDateChangeCallable() { + return requestOrderDateChangeCallable; + } + + @Override + public OperationCallable + requestOrderDateChangeOperationCallable() { + return requestOrderDateChangeOperationCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/HttpJsonGDCHardwareManagementStub.java b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/HttpJsonGDCHardwareManagementStub.java index 250901c43d7d..e72280daab93 100644 --- a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/HttpJsonGDCHardwareManagementStub.java +++ b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/HttpJsonGDCHardwareManagementStub.java @@ -43,6 +43,7 @@ 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.gdchardwaremanagement.v1alpha.CancelOrderRequest; import com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry; import com.google.cloud.gdchardwaremanagement.v1alpha.Comment; import com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest; @@ -85,6 +86,7 @@ import com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata; import com.google.cloud.gdchardwaremanagement.v1alpha.Order; import com.google.cloud.gdchardwaremanagement.v1alpha.RecordActionOnCommentRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest; import com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest; import com.google.cloud.gdchardwaremanagement.v1alpha.Site; import com.google.cloud.gdchardwaremanagement.v1alpha.Sku; @@ -373,6 +375,47 @@ public class HttpJsonGDCHardwareManagementStub extends GDCHardwareManagementStub HttpJsonOperationSnapshot.create(response)) .build(); + private static final ApiMethodDescriptor + cancelOrderMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/CancelOrder") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{name=projects/*/locations/*/orders/*}:cancel", + 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( + (CancelOrderRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + private static final ApiMethodDescriptor listSitesMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -1511,6 +1554,47 @@ public class HttpJsonGDCHardwareManagementStub extends GDCHardwareManagementStub HttpJsonOperationSnapshot.create(response)) .build(); + private static final ApiMethodDescriptor + requestOrderDateChangeMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/RequestOrderDateChange") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{name=projects/*/locations/*/orders/*}:requestDateChange", + 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( + (RequestOrderDateChangeRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + private static final ApiMethodDescriptor listLocationsMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -1594,6 +1678,9 @@ public class HttpJsonGDCHardwareManagementStub extends GDCHardwareManagementStub private final UnaryCallable submitOrderCallable; private final OperationCallable submitOrderOperationCallable; + private final UnaryCallable cancelOrderCallable; + private final OperationCallable + cancelOrderOperationCallable; private final UnaryCallable listSitesCallable; private final UnaryCallable listSitesPagedCallable; private final UnaryCallable getSiteCallable; @@ -1664,6 +1751,10 @@ public class HttpJsonGDCHardwareManagementStub extends GDCHardwareManagementStub private final UnaryCallable signalZoneStateCallable; private final OperationCallable signalZoneStateOperationCallable; + private final UnaryCallable + requestOrderDateChangeCallable; + private final OperationCallable + requestOrderDateChangeOperationCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -1807,6 +1898,17 @@ protected HttpJsonGDCHardwareManagementStub( return builder.build(); }) .build(); + HttpJsonCallSettings cancelOrderTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(cancelOrderMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings listSitesTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(listSitesMethodDescriptor) @@ -2136,6 +2238,18 @@ protected HttpJsonGDCHardwareManagementStub( return builder.build(); }) .build(); + HttpJsonCallSettings + requestOrderDateChangeTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(requestOrderDateChangeMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings listLocationsTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2205,6 +2319,15 @@ protected HttpJsonGDCHardwareManagementStub( settings.submitOrderOperationSettings(), clientContext, httpJsonOperationsStub); + this.cancelOrderCallable = + callableFactory.createUnaryCallable( + cancelOrderTransportSettings, settings.cancelOrderSettings(), clientContext); + this.cancelOrderOperationCallable = + callableFactory.createOperationCallable( + cancelOrderTransportSettings, + settings.cancelOrderOperationSettings(), + clientContext, + httpJsonOperationsStub); this.listSitesCallable = callableFactory.createUnaryCallable( listSitesTransportSettings, settings.listSitesSettings(), clientContext); @@ -2415,6 +2538,17 @@ protected HttpJsonGDCHardwareManagementStub( settings.signalZoneStateOperationSettings(), clientContext, httpJsonOperationsStub); + this.requestOrderDateChangeCallable = + callableFactory.createUnaryCallable( + requestOrderDateChangeTransportSettings, + settings.requestOrderDateChangeSettings(), + clientContext); + this.requestOrderDateChangeOperationCallable = + callableFactory.createOperationCallable( + requestOrderDateChangeTransportSettings, + settings.requestOrderDateChangeOperationSettings(), + clientContext, + httpJsonOperationsStub); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -2438,6 +2572,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(updateOrderMethodDescriptor); methodDescriptors.add(deleteOrderMethodDescriptor); methodDescriptors.add(submitOrderMethodDescriptor); + methodDescriptors.add(cancelOrderMethodDescriptor); methodDescriptors.add(listSitesMethodDescriptor); methodDescriptors.add(getSiteMethodDescriptor); methodDescriptors.add(createSiteMethodDescriptor); @@ -2467,6 +2602,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(updateZoneMethodDescriptor); methodDescriptors.add(deleteZoneMethodDescriptor); methodDescriptors.add(signalZoneStateMethodDescriptor); + methodDescriptors.add(requestOrderDateChangeMethodDescriptor); methodDescriptors.add(listLocationsMethodDescriptor); methodDescriptors.add(getLocationMethodDescriptor); return methodDescriptors; @@ -2535,6 +2671,17 @@ public UnaryCallable submitOrderCallable() { return submitOrderOperationCallable; } + @Override + public UnaryCallable cancelOrderCallable() { + return cancelOrderCallable; + } + + @Override + public OperationCallable + cancelOrderOperationCallable() { + return cancelOrderOperationCallable; + } + @Override public UnaryCallable listSitesCallable() { return listSitesCallable; @@ -2803,6 +2950,17 @@ public UnaryCallable signalZoneStateCallable( return signalZoneStateOperationCallable; } + @Override + public UnaryCallable requestOrderDateChangeCallable() { + return requestOrderDateChangeCallable; + } + + @Override + public OperationCallable + requestOrderDateChangeOperationCallable() { + return requestOrderDateChangeOperationCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/resources/META-INF/native-image/com.google.cloud.gdchardwaremanagement.v1alpha/reflect-config.json b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/resources/META-INF/native-image/com.google.cloud.gdchardwaremanagement.v1alpha/reflect-config.json index bd76d97541c1..a65c7ca3e13d 100644 --- a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/resources/META-INF/native-image/com.google.cloud.gdchardwaremanagement.v1alpha/reflect-config.json +++ b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/resources/META-INF/native-image/com.google.cloud.gdchardwaremanagement.v1alpha/reflect-config.json @@ -458,6 +458,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.CancelOrderRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.CancelOrderRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry", "queryAllDeclaredConstructors": true, @@ -1538,6 +1556,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest", "queryAllDeclaredConstructors": true, diff --git a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/test/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementClientHttpJsonTest.java b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/test/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementClientHttpJsonTest.java index d7bc15acdc33..a353f74ec60c 100644 --- a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/test/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementClientHttpJsonTest.java +++ b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/test/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementClientHttpJsonTest.java @@ -209,6 +209,7 @@ public void getOrderTest() throws Exception { .addAllTargetWorkloads(new ArrayList()) .setCustomerMotivation("customerMotivation419733780") .setFulfillmentTime(Timestamp.newBuilder().build()) + .setCustomerRequestedInstallationDate(Date.newBuilder().build()) .setRegionCode("regionCode-1991004415") .setOrderFormUri("orderFormUri212580058") .setSubmitTime(Timestamp.newBuilder().build()) @@ -216,6 +217,12 @@ public void getOrderTest() throws Exception { .addAllExistingHardware(new ArrayList()) .setActualInstallationDate(Date.newBuilder().build()) .setEstimatedInstallationDate(Date.newBuilder().build()) + .setEstimatedDeliveryDate(Date.newBuilder().build()) + .setMigration(true) + .setAcceptedTime(Timestamp.newBuilder().build()) + .setRequestedDateChange(Date.newBuilder().build()) + .setVendorNotes("vendorNotes43828825") + .setVendorContact(OrganizationContact.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -268,6 +275,7 @@ public void getOrderTest2() throws Exception { .addAllTargetWorkloads(new ArrayList()) .setCustomerMotivation("customerMotivation419733780") .setFulfillmentTime(Timestamp.newBuilder().build()) + .setCustomerRequestedInstallationDate(Date.newBuilder().build()) .setRegionCode("regionCode-1991004415") .setOrderFormUri("orderFormUri212580058") .setSubmitTime(Timestamp.newBuilder().build()) @@ -275,6 +283,12 @@ public void getOrderTest2() throws Exception { .addAllExistingHardware(new ArrayList()) .setActualInstallationDate(Date.newBuilder().build()) .setEstimatedInstallationDate(Date.newBuilder().build()) + .setEstimatedDeliveryDate(Date.newBuilder().build()) + .setMigration(true) + .setAcceptedTime(Timestamp.newBuilder().build()) + .setRequestedDateChange(Date.newBuilder().build()) + .setVendorNotes("vendorNotes43828825") + .setVendorContact(OrganizationContact.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -327,6 +341,7 @@ public void createOrderTest() throws Exception { .addAllTargetWorkloads(new ArrayList()) .setCustomerMotivation("customerMotivation419733780") .setFulfillmentTime(Timestamp.newBuilder().build()) + .setCustomerRequestedInstallationDate(Date.newBuilder().build()) .setRegionCode("regionCode-1991004415") .setOrderFormUri("orderFormUri212580058") .setSubmitTime(Timestamp.newBuilder().build()) @@ -334,6 +349,12 @@ public void createOrderTest() throws Exception { .addAllExistingHardware(new ArrayList()) .setActualInstallationDate(Date.newBuilder().build()) .setEstimatedInstallationDate(Date.newBuilder().build()) + .setEstimatedDeliveryDate(Date.newBuilder().build()) + .setMigration(true) + .setAcceptedTime(Timestamp.newBuilder().build()) + .setRequestedDateChange(Date.newBuilder().build()) + .setVendorNotes("vendorNotes43828825") + .setVendorContact(OrganizationContact.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -395,6 +416,7 @@ public void createOrderTest2() throws Exception { .addAllTargetWorkloads(new ArrayList()) .setCustomerMotivation("customerMotivation419733780") .setFulfillmentTime(Timestamp.newBuilder().build()) + .setCustomerRequestedInstallationDate(Date.newBuilder().build()) .setRegionCode("regionCode-1991004415") .setOrderFormUri("orderFormUri212580058") .setSubmitTime(Timestamp.newBuilder().build()) @@ -402,6 +424,12 @@ public void createOrderTest2() throws Exception { .addAllExistingHardware(new ArrayList()) .setActualInstallationDate(Date.newBuilder().build()) .setEstimatedInstallationDate(Date.newBuilder().build()) + .setEstimatedDeliveryDate(Date.newBuilder().build()) + .setMigration(true) + .setAcceptedTime(Timestamp.newBuilder().build()) + .setRequestedDateChange(Date.newBuilder().build()) + .setVendorNotes("vendorNotes43828825") + .setVendorContact(OrganizationContact.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -463,6 +491,7 @@ public void updateOrderTest() throws Exception { .addAllTargetWorkloads(new ArrayList()) .setCustomerMotivation("customerMotivation419733780") .setFulfillmentTime(Timestamp.newBuilder().build()) + .setCustomerRequestedInstallationDate(Date.newBuilder().build()) .setRegionCode("regionCode-1991004415") .setOrderFormUri("orderFormUri212580058") .setSubmitTime(Timestamp.newBuilder().build()) @@ -470,6 +499,12 @@ public void updateOrderTest() throws Exception { .addAllExistingHardware(new ArrayList()) .setActualInstallationDate(Date.newBuilder().build()) .setEstimatedInstallationDate(Date.newBuilder().build()) + .setEstimatedDeliveryDate(Date.newBuilder().build()) + .setMigration(true) + .setAcceptedTime(Timestamp.newBuilder().build()) + .setRequestedDateChange(Date.newBuilder().build()) + .setVendorNotes("vendorNotes43828825") + .setVendorContact(OrganizationContact.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -490,6 +525,7 @@ public void updateOrderTest() throws Exception { .addAllTargetWorkloads(new ArrayList()) .setCustomerMotivation("customerMotivation419733780") .setFulfillmentTime(Timestamp.newBuilder().build()) + .setCustomerRequestedInstallationDate(Date.newBuilder().build()) .setRegionCode("regionCode-1991004415") .setOrderFormUri("orderFormUri212580058") .setSubmitTime(Timestamp.newBuilder().build()) @@ -497,6 +533,12 @@ public void updateOrderTest() throws Exception { .addAllExistingHardware(new ArrayList()) .setActualInstallationDate(Date.newBuilder().build()) .setEstimatedInstallationDate(Date.newBuilder().build()) + .setEstimatedDeliveryDate(Date.newBuilder().build()) + .setMigration(true) + .setAcceptedTime(Timestamp.newBuilder().build()) + .setRequestedDateChange(Date.newBuilder().build()) + .setVendorNotes("vendorNotes43828825") + .setVendorContact(OrganizationContact.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -537,6 +579,7 @@ public void updateOrderExceptionTest() throws Exception { .addAllTargetWorkloads(new ArrayList()) .setCustomerMotivation("customerMotivation419733780") .setFulfillmentTime(Timestamp.newBuilder().build()) + .setCustomerRequestedInstallationDate(Date.newBuilder().build()) .setRegionCode("regionCode-1991004415") .setOrderFormUri("orderFormUri212580058") .setSubmitTime(Timestamp.newBuilder().build()) @@ -544,6 +587,12 @@ public void updateOrderExceptionTest() throws Exception { .addAllExistingHardware(new ArrayList()) .setActualInstallationDate(Date.newBuilder().build()) .setEstimatedInstallationDate(Date.newBuilder().build()) + .setEstimatedDeliveryDate(Date.newBuilder().build()) + .setMigration(true) + .setAcceptedTime(Timestamp.newBuilder().build()) + .setRequestedDateChange(Date.newBuilder().build()) + .setVendorNotes("vendorNotes43828825") + .setVendorContact(OrganizationContact.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateOrderAsync(order, updateMask).get(); @@ -655,6 +704,7 @@ public void submitOrderTest() throws Exception { .addAllTargetWorkloads(new ArrayList()) .setCustomerMotivation("customerMotivation419733780") .setFulfillmentTime(Timestamp.newBuilder().build()) + .setCustomerRequestedInstallationDate(Date.newBuilder().build()) .setRegionCode("regionCode-1991004415") .setOrderFormUri("orderFormUri212580058") .setSubmitTime(Timestamp.newBuilder().build()) @@ -662,6 +712,12 @@ public void submitOrderTest() throws Exception { .addAllExistingHardware(new ArrayList()) .setActualInstallationDate(Date.newBuilder().build()) .setEstimatedInstallationDate(Date.newBuilder().build()) + .setEstimatedDeliveryDate(Date.newBuilder().build()) + .setMigration(true) + .setAcceptedTime(Timestamp.newBuilder().build()) + .setRequestedDateChange(Date.newBuilder().build()) + .setVendorNotes("vendorNotes43828825") + .setVendorContact(OrganizationContact.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -719,6 +775,7 @@ public void submitOrderTest2() throws Exception { .addAllTargetWorkloads(new ArrayList()) .setCustomerMotivation("customerMotivation419733780") .setFulfillmentTime(Timestamp.newBuilder().build()) + .setCustomerRequestedInstallationDate(Date.newBuilder().build()) .setRegionCode("regionCode-1991004415") .setOrderFormUri("orderFormUri212580058") .setSubmitTime(Timestamp.newBuilder().build()) @@ -726,6 +783,12 @@ public void submitOrderTest2() throws Exception { .addAllExistingHardware(new ArrayList()) .setActualInstallationDate(Date.newBuilder().build()) .setEstimatedInstallationDate(Date.newBuilder().build()) + .setEstimatedDeliveryDate(Date.newBuilder().build()) + .setMigration(true) + .setAcceptedTime(Timestamp.newBuilder().build()) + .setRequestedDateChange(Date.newBuilder().build()) + .setVendorNotes("vendorNotes43828825") + .setVendorContact(OrganizationContact.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -770,6 +833,148 @@ public void submitOrderExceptionTest2() throws Exception { } } + @Test + public void cancelOrderTest() throws Exception { + Order expectedResponse = + Order.newBuilder() + .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setOrganizationContact(OrganizationContact.newBuilder().build()) + .addAllTargetWorkloads(new ArrayList()) + .setCustomerMotivation("customerMotivation419733780") + .setFulfillmentTime(Timestamp.newBuilder().build()) + .setCustomerRequestedInstallationDate(Date.newBuilder().build()) + .setRegionCode("regionCode-1991004415") + .setOrderFormUri("orderFormUri212580058") + .setSubmitTime(Timestamp.newBuilder().build()) + .setBillingId("billingId1828026614") + .addAllExistingHardware(new ArrayList()) + .setActualInstallationDate(Date.newBuilder().build()) + .setEstimatedInstallationDate(Date.newBuilder().build()) + .setEstimatedDeliveryDate(Date.newBuilder().build()) + .setMigration(true) + .setAcceptedTime(Timestamp.newBuilder().build()) + .setRequestedDateChange(Date.newBuilder().build()) + .setVendorNotes("vendorNotes43828825") + .setVendorContact(OrganizationContact.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("cancelOrderTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + OrderName name = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]"); + + Order actualResponse = client.cancelOrderAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void cancelOrderExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrderName name = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]"); + client.cancelOrderAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void cancelOrderTest2() throws Exception { + Order expectedResponse = + Order.newBuilder() + .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setOrganizationContact(OrganizationContact.newBuilder().build()) + .addAllTargetWorkloads(new ArrayList()) + .setCustomerMotivation("customerMotivation419733780") + .setFulfillmentTime(Timestamp.newBuilder().build()) + .setCustomerRequestedInstallationDate(Date.newBuilder().build()) + .setRegionCode("regionCode-1991004415") + .setOrderFormUri("orderFormUri212580058") + .setSubmitTime(Timestamp.newBuilder().build()) + .setBillingId("billingId1828026614") + .addAllExistingHardware(new ArrayList()) + .setActualInstallationDate(Date.newBuilder().build()) + .setEstimatedInstallationDate(Date.newBuilder().build()) + .setEstimatedDeliveryDate(Date.newBuilder().build()) + .setMigration(true) + .setAcceptedTime(Timestamp.newBuilder().build()) + .setRequestedDateChange(Date.newBuilder().build()) + .setVendorNotes("vendorNotes43828825") + .setVendorContact(OrganizationContact.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("cancelOrderTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-6539/locations/location-6539/orders/order-6539"; + + Order actualResponse = client.cancelOrderAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void cancelOrderExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-6539/locations/location-6539/orders/order-6539"; + client.cancelOrderAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @Test public void listSitesTest() throws Exception { Site responsesElement = Site.newBuilder().build(); @@ -1925,6 +2130,7 @@ public void getHardwareTest() throws Exception { .setRequestedInstallationDate(Date.newBuilder().build()) .setActualInstallationDate(Date.newBuilder().build()) .addAllMachineInfos(new ArrayList()) + .setEstimatedDeliveryDate(Date.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -1987,6 +2193,7 @@ public void getHardwareTest2() throws Exception { .setRequestedInstallationDate(Date.newBuilder().build()) .setActualInstallationDate(Date.newBuilder().build()) .addAllMachineInfos(new ArrayList()) + .setEstimatedDeliveryDate(Date.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -2049,6 +2256,7 @@ public void createHardwareTest() throws Exception { .setRequestedInstallationDate(Date.newBuilder().build()) .setActualInstallationDate(Date.newBuilder().build()) .addAllMachineInfos(new ArrayList()) + .setEstimatedDeliveryDate(Date.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2120,6 +2328,7 @@ public void createHardwareTest2() throws Exception { .setRequestedInstallationDate(Date.newBuilder().build()) .setActualInstallationDate(Date.newBuilder().build()) .addAllMachineInfos(new ArrayList()) + .setEstimatedDeliveryDate(Date.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2191,6 +2400,7 @@ public void updateHardwareTest() throws Exception { .setRequestedInstallationDate(Date.newBuilder().build()) .setActualInstallationDate(Date.newBuilder().build()) .addAllMachineInfos(new ArrayList()) + .setEstimatedDeliveryDate(Date.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2221,6 +2431,7 @@ public void updateHardwareTest() throws Exception { .setRequestedInstallationDate(Date.newBuilder().build()) .setActualInstallationDate(Date.newBuilder().build()) .addAllMachineInfos(new ArrayList()) + .setEstimatedDeliveryDate(Date.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -2271,6 +2482,7 @@ public void updateHardwareExceptionTest() throws Exception { .setRequestedInstallationDate(Date.newBuilder().build()) .setActualInstallationDate(Date.newBuilder().build()) .addAllMachineInfos(new ArrayList()) + .setEstimatedDeliveryDate(Date.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateHardwareAsync(hardware, updateMask).get(); @@ -3323,6 +3535,9 @@ public void getZoneTest() throws Exception { .setNetworkConfig(ZoneNetworkConfig.newBuilder().build()) .setGloballyUniqueId("globallyUniqueId-1207923364") .addAllSubscriptionConfigs(new ArrayList()) + .setSkipClusterProvisioning(true) + .setClusterIntentRequired(true) + .setClusterIntentVerified(true) .build(); mockService.addResponse(expectedResponse); @@ -3376,6 +3591,9 @@ public void getZoneTest2() throws Exception { .setNetworkConfig(ZoneNetworkConfig.newBuilder().build()) .setGloballyUniqueId("globallyUniqueId-1207923364") .addAllSubscriptionConfigs(new ArrayList()) + .setSkipClusterProvisioning(true) + .setClusterIntentRequired(true) + .setClusterIntentVerified(true) .build(); mockService.addResponse(expectedResponse); @@ -3429,6 +3647,9 @@ public void createZoneTest() throws Exception { .setNetworkConfig(ZoneNetworkConfig.newBuilder().build()) .setGloballyUniqueId("globallyUniqueId-1207923364") .addAllSubscriptionConfigs(new ArrayList()) + .setSkipClusterProvisioning(true) + .setClusterIntentRequired(true) + .setClusterIntentVerified(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -3491,6 +3712,9 @@ public void createZoneTest2() throws Exception { .setNetworkConfig(ZoneNetworkConfig.newBuilder().build()) .setGloballyUniqueId("globallyUniqueId-1207923364") .addAllSubscriptionConfigs(new ArrayList()) + .setSkipClusterProvisioning(true) + .setClusterIntentRequired(true) + .setClusterIntentVerified(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -3553,6 +3777,9 @@ public void updateZoneTest() throws Exception { .setNetworkConfig(ZoneNetworkConfig.newBuilder().build()) .setGloballyUniqueId("globallyUniqueId-1207923364") .addAllSubscriptionConfigs(new ArrayList()) + .setSkipClusterProvisioning(true) + .setClusterIntentRequired(true) + .setClusterIntentVerified(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -3574,6 +3801,9 @@ public void updateZoneTest() throws Exception { .setNetworkConfig(ZoneNetworkConfig.newBuilder().build()) .setGloballyUniqueId("globallyUniqueId-1207923364") .addAllSubscriptionConfigs(new ArrayList()) + .setSkipClusterProvisioning(true) + .setClusterIntentRequired(true) + .setClusterIntentVerified(true) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -3615,6 +3845,9 @@ public void updateZoneExceptionTest() throws Exception { .setNetworkConfig(ZoneNetworkConfig.newBuilder().build()) .setGloballyUniqueId("globallyUniqueId-1207923364") .addAllSubscriptionConfigs(new ArrayList()) + .setSkipClusterProvisioning(true) + .setClusterIntentRequired(true) + .setClusterIntentVerified(true) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateZoneAsync(zone, updateMask).get(); @@ -3727,6 +3960,9 @@ public void signalZoneStateTest() throws Exception { .setNetworkConfig(ZoneNetworkConfig.newBuilder().build()) .setGloballyUniqueId("globallyUniqueId-1207923364") .addAllSubscriptionConfigs(new ArrayList()) + .setSkipClusterProvisioning(true) + .setClusterIntentRequired(true) + .setClusterIntentVerified(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -3789,6 +4025,9 @@ public void signalZoneStateTest2() throws Exception { .setNetworkConfig(ZoneNetworkConfig.newBuilder().build()) .setGloballyUniqueId("globallyUniqueId-1207923364") .addAllSubscriptionConfigs(new ArrayList()) + .setSkipClusterProvisioning(true) + .setClusterIntentRequired(true) + .setClusterIntentVerified(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -3837,6 +4076,152 @@ public void signalZoneStateExceptionTest2() throws Exception { } } + @Test + public void requestOrderDateChangeTest() throws Exception { + Order expectedResponse = + Order.newBuilder() + .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setOrganizationContact(OrganizationContact.newBuilder().build()) + .addAllTargetWorkloads(new ArrayList()) + .setCustomerMotivation("customerMotivation419733780") + .setFulfillmentTime(Timestamp.newBuilder().build()) + .setCustomerRequestedInstallationDate(Date.newBuilder().build()) + .setRegionCode("regionCode-1991004415") + .setOrderFormUri("orderFormUri212580058") + .setSubmitTime(Timestamp.newBuilder().build()) + .setBillingId("billingId1828026614") + .addAllExistingHardware(new ArrayList()) + .setActualInstallationDate(Date.newBuilder().build()) + .setEstimatedInstallationDate(Date.newBuilder().build()) + .setEstimatedDeliveryDate(Date.newBuilder().build()) + .setMigration(true) + .setAcceptedTime(Timestamp.newBuilder().build()) + .setRequestedDateChange(Date.newBuilder().build()) + .setVendorNotes("vendorNotes43828825") + .setVendorContact(OrganizationContact.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("requestOrderDateChangeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + OrderName name = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]"); + Date requestedDate = Date.newBuilder().build(); + + Order actualResponse = client.requestOrderDateChangeAsync(name, requestedDate).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 requestOrderDateChangeExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrderName name = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]"); + Date requestedDate = Date.newBuilder().build(); + client.requestOrderDateChangeAsync(name, requestedDate).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void requestOrderDateChangeTest2() throws Exception { + Order expectedResponse = + Order.newBuilder() + .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setOrganizationContact(OrganizationContact.newBuilder().build()) + .addAllTargetWorkloads(new ArrayList()) + .setCustomerMotivation("customerMotivation419733780") + .setFulfillmentTime(Timestamp.newBuilder().build()) + .setCustomerRequestedInstallationDate(Date.newBuilder().build()) + .setRegionCode("regionCode-1991004415") + .setOrderFormUri("orderFormUri212580058") + .setSubmitTime(Timestamp.newBuilder().build()) + .setBillingId("billingId1828026614") + .addAllExistingHardware(new ArrayList()) + .setActualInstallationDate(Date.newBuilder().build()) + .setEstimatedInstallationDate(Date.newBuilder().build()) + .setEstimatedDeliveryDate(Date.newBuilder().build()) + .setMigration(true) + .setAcceptedTime(Timestamp.newBuilder().build()) + .setRequestedDateChange(Date.newBuilder().build()) + .setVendorNotes("vendorNotes43828825") + .setVendorContact(OrganizationContact.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("requestOrderDateChangeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-6539/locations/location-6539/orders/order-6539"; + Date requestedDate = Date.newBuilder().build(); + + Order actualResponse = client.requestOrderDateChangeAsync(name, requestedDate).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 requestOrderDateChangeExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-6539/locations/location-6539/orders/order-6539"; + Date requestedDate = Date.newBuilder().build(); + client.requestOrderDateChangeAsync(name, requestedDate).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/test/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementClientTest.java b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/test/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementClientTest.java index 2800a445a031..574f3b5c51b4 100644 --- a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/test/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementClientTest.java +++ b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/test/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementClientTest.java @@ -204,6 +204,7 @@ public void getOrderTest() throws Exception { .addAllTargetWorkloads(new ArrayList()) .setCustomerMotivation("customerMotivation419733780") .setFulfillmentTime(Timestamp.newBuilder().build()) + .setCustomerRequestedInstallationDate(Date.newBuilder().build()) .setRegionCode("regionCode-1991004415") .setOrderFormUri("orderFormUri212580058") .setSubmitTime(Timestamp.newBuilder().build()) @@ -211,6 +212,12 @@ public void getOrderTest() throws Exception { .addAllExistingHardware(new ArrayList()) .setActualInstallationDate(Date.newBuilder().build()) .setEstimatedInstallationDate(Date.newBuilder().build()) + .setEstimatedDeliveryDate(Date.newBuilder().build()) + .setMigration(true) + .setAcceptedTime(Timestamp.newBuilder().build()) + .setRequestedDateChange(Date.newBuilder().build()) + .setVendorNotes("vendorNotes43828825") + .setVendorContact(OrganizationContact.newBuilder().build()) .build(); mockGDCHardwareManagement.addResponse(expectedResponse); @@ -257,6 +264,7 @@ public void getOrderTest2() throws Exception { .addAllTargetWorkloads(new ArrayList()) .setCustomerMotivation("customerMotivation419733780") .setFulfillmentTime(Timestamp.newBuilder().build()) + .setCustomerRequestedInstallationDate(Date.newBuilder().build()) .setRegionCode("regionCode-1991004415") .setOrderFormUri("orderFormUri212580058") .setSubmitTime(Timestamp.newBuilder().build()) @@ -264,6 +272,12 @@ public void getOrderTest2() throws Exception { .addAllExistingHardware(new ArrayList()) .setActualInstallationDate(Date.newBuilder().build()) .setEstimatedInstallationDate(Date.newBuilder().build()) + .setEstimatedDeliveryDate(Date.newBuilder().build()) + .setMigration(true) + .setAcceptedTime(Timestamp.newBuilder().build()) + .setRequestedDateChange(Date.newBuilder().build()) + .setVendorNotes("vendorNotes43828825") + .setVendorContact(OrganizationContact.newBuilder().build()) .build(); mockGDCHardwareManagement.addResponse(expectedResponse); @@ -310,6 +324,7 @@ public void createOrderTest() throws Exception { .addAllTargetWorkloads(new ArrayList()) .setCustomerMotivation("customerMotivation419733780") .setFulfillmentTime(Timestamp.newBuilder().build()) + .setCustomerRequestedInstallationDate(Date.newBuilder().build()) .setRegionCode("regionCode-1991004415") .setOrderFormUri("orderFormUri212580058") .setSubmitTime(Timestamp.newBuilder().build()) @@ -317,6 +332,12 @@ public void createOrderTest() throws Exception { .addAllExistingHardware(new ArrayList()) .setActualInstallationDate(Date.newBuilder().build()) .setEstimatedInstallationDate(Date.newBuilder().build()) + .setEstimatedDeliveryDate(Date.newBuilder().build()) + .setMigration(true) + .setAcceptedTime(Timestamp.newBuilder().build()) + .setRequestedDateChange(Date.newBuilder().build()) + .setVendorNotes("vendorNotes43828825") + .setVendorContact(OrganizationContact.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -377,6 +398,7 @@ public void createOrderTest2() throws Exception { .addAllTargetWorkloads(new ArrayList()) .setCustomerMotivation("customerMotivation419733780") .setFulfillmentTime(Timestamp.newBuilder().build()) + .setCustomerRequestedInstallationDate(Date.newBuilder().build()) .setRegionCode("regionCode-1991004415") .setOrderFormUri("orderFormUri212580058") .setSubmitTime(Timestamp.newBuilder().build()) @@ -384,6 +406,12 @@ public void createOrderTest2() throws Exception { .addAllExistingHardware(new ArrayList()) .setActualInstallationDate(Date.newBuilder().build()) .setEstimatedInstallationDate(Date.newBuilder().build()) + .setEstimatedDeliveryDate(Date.newBuilder().build()) + .setMigration(true) + .setAcceptedTime(Timestamp.newBuilder().build()) + .setRequestedDateChange(Date.newBuilder().build()) + .setVendorNotes("vendorNotes43828825") + .setVendorContact(OrganizationContact.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -444,6 +472,7 @@ public void updateOrderTest() throws Exception { .addAllTargetWorkloads(new ArrayList()) .setCustomerMotivation("customerMotivation419733780") .setFulfillmentTime(Timestamp.newBuilder().build()) + .setCustomerRequestedInstallationDate(Date.newBuilder().build()) .setRegionCode("regionCode-1991004415") .setOrderFormUri("orderFormUri212580058") .setSubmitTime(Timestamp.newBuilder().build()) @@ -451,6 +480,12 @@ public void updateOrderTest() throws Exception { .addAllExistingHardware(new ArrayList()) .setActualInstallationDate(Date.newBuilder().build()) .setEstimatedInstallationDate(Date.newBuilder().build()) + .setEstimatedDeliveryDate(Date.newBuilder().build()) + .setMigration(true) + .setAcceptedTime(Timestamp.newBuilder().build()) + .setRequestedDateChange(Date.newBuilder().build()) + .setVendorNotes("vendorNotes43828825") + .setVendorContact(OrganizationContact.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -592,6 +627,7 @@ public void submitOrderTest() throws Exception { .addAllTargetWorkloads(new ArrayList()) .setCustomerMotivation("customerMotivation419733780") .setFulfillmentTime(Timestamp.newBuilder().build()) + .setCustomerRequestedInstallationDate(Date.newBuilder().build()) .setRegionCode("regionCode-1991004415") .setOrderFormUri("orderFormUri212580058") .setSubmitTime(Timestamp.newBuilder().build()) @@ -599,6 +635,12 @@ public void submitOrderTest() throws Exception { .addAllExistingHardware(new ArrayList()) .setActualInstallationDate(Date.newBuilder().build()) .setEstimatedInstallationDate(Date.newBuilder().build()) + .setEstimatedDeliveryDate(Date.newBuilder().build()) + .setMigration(true) + .setAcceptedTime(Timestamp.newBuilder().build()) + .setRequestedDateChange(Date.newBuilder().build()) + .setVendorNotes("vendorNotes43828825") + .setVendorContact(OrganizationContact.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -653,6 +695,7 @@ public void submitOrderTest2() throws Exception { .addAllTargetWorkloads(new ArrayList()) .setCustomerMotivation("customerMotivation419733780") .setFulfillmentTime(Timestamp.newBuilder().build()) + .setCustomerRequestedInstallationDate(Date.newBuilder().build()) .setRegionCode("regionCode-1991004415") .setOrderFormUri("orderFormUri212580058") .setSubmitTime(Timestamp.newBuilder().build()) @@ -660,6 +703,12 @@ public void submitOrderTest2() throws Exception { .addAllExistingHardware(new ArrayList()) .setActualInstallationDate(Date.newBuilder().build()) .setEstimatedInstallationDate(Date.newBuilder().build()) + .setEstimatedDeliveryDate(Date.newBuilder().build()) + .setMigration(true) + .setAcceptedTime(Timestamp.newBuilder().build()) + .setRequestedDateChange(Date.newBuilder().build()) + .setVendorNotes("vendorNotes43828825") + .setVendorContact(OrganizationContact.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -701,6 +750,142 @@ public void submitOrderExceptionTest2() throws Exception { } } + @Test + public void cancelOrderTest() throws Exception { + Order expectedResponse = + Order.newBuilder() + .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setOrganizationContact(OrganizationContact.newBuilder().build()) + .addAllTargetWorkloads(new ArrayList()) + .setCustomerMotivation("customerMotivation419733780") + .setFulfillmentTime(Timestamp.newBuilder().build()) + .setCustomerRequestedInstallationDate(Date.newBuilder().build()) + .setRegionCode("regionCode-1991004415") + .setOrderFormUri("orderFormUri212580058") + .setSubmitTime(Timestamp.newBuilder().build()) + .setBillingId("billingId1828026614") + .addAllExistingHardware(new ArrayList()) + .setActualInstallationDate(Date.newBuilder().build()) + .setEstimatedInstallationDate(Date.newBuilder().build()) + .setEstimatedDeliveryDate(Date.newBuilder().build()) + .setMigration(true) + .setAcceptedTime(Timestamp.newBuilder().build()) + .setRequestedDateChange(Date.newBuilder().build()) + .setVendorNotes("vendorNotes43828825") + .setVendorContact(OrganizationContact.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("cancelOrderTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGDCHardwareManagement.addResponse(resultOperation); + + OrderName name = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]"); + + Order actualResponse = client.cancelOrderAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CancelOrderRequest actualRequest = ((CancelOrderRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void cancelOrderExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + OrderName name = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]"); + client.cancelOrderAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void cancelOrderTest2() throws Exception { + Order expectedResponse = + Order.newBuilder() + .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setOrganizationContact(OrganizationContact.newBuilder().build()) + .addAllTargetWorkloads(new ArrayList()) + .setCustomerMotivation("customerMotivation419733780") + .setFulfillmentTime(Timestamp.newBuilder().build()) + .setCustomerRequestedInstallationDate(Date.newBuilder().build()) + .setRegionCode("regionCode-1991004415") + .setOrderFormUri("orderFormUri212580058") + .setSubmitTime(Timestamp.newBuilder().build()) + .setBillingId("billingId1828026614") + .addAllExistingHardware(new ArrayList()) + .setActualInstallationDate(Date.newBuilder().build()) + .setEstimatedInstallationDate(Date.newBuilder().build()) + .setEstimatedDeliveryDate(Date.newBuilder().build()) + .setMigration(true) + .setAcceptedTime(Timestamp.newBuilder().build()) + .setRequestedDateChange(Date.newBuilder().build()) + .setVendorNotes("vendorNotes43828825") + .setVendorContact(OrganizationContact.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("cancelOrderTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGDCHardwareManagement.addResponse(resultOperation); + + String name = "name3373707"; + + Order actualResponse = client.cancelOrderAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CancelOrderRequest actualRequest = ((CancelOrderRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void cancelOrderExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + String name = "name3373707"; + client.cancelOrderAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + @Test public void listSitesTest() throws Exception { Site responsesElement = Site.newBuilder().build(); @@ -1720,6 +1905,7 @@ public void getHardwareTest() throws Exception { .setRequestedInstallationDate(Date.newBuilder().build()) .setActualInstallationDate(Date.newBuilder().build()) .addAllMachineInfos(new ArrayList()) + .setEstimatedDeliveryDate(Date.newBuilder().build()) .build(); mockGDCHardwareManagement.addResponse(expectedResponse); @@ -1776,6 +1962,7 @@ public void getHardwareTest2() throws Exception { .setRequestedInstallationDate(Date.newBuilder().build()) .setActualInstallationDate(Date.newBuilder().build()) .addAllMachineInfos(new ArrayList()) + .setEstimatedDeliveryDate(Date.newBuilder().build()) .build(); mockGDCHardwareManagement.addResponse(expectedResponse); @@ -1832,6 +2019,7 @@ public void createHardwareTest() throws Exception { .setRequestedInstallationDate(Date.newBuilder().build()) .setActualInstallationDate(Date.newBuilder().build()) .addAllMachineInfos(new ArrayList()) + .setEstimatedDeliveryDate(Date.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1902,6 +2090,7 @@ public void createHardwareTest2() throws Exception { .setRequestedInstallationDate(Date.newBuilder().build()) .setActualInstallationDate(Date.newBuilder().build()) .addAllMachineInfos(new ArrayList()) + .setEstimatedDeliveryDate(Date.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1972,6 +2161,7 @@ public void updateHardwareTest() throws Exception { .setRequestedInstallationDate(Date.newBuilder().build()) .setActualInstallationDate(Date.newBuilder().build()) .addAllMachineInfos(new ArrayList()) + .setEstimatedDeliveryDate(Date.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2956,6 +3146,9 @@ public void getZoneTest() throws Exception { .setNetworkConfig(ZoneNetworkConfig.newBuilder().build()) .setGloballyUniqueId("globallyUniqueId-1207923364") .addAllSubscriptionConfigs(new ArrayList()) + .setSkipClusterProvisioning(true) + .setClusterIntentRequired(true) + .setClusterIntentVerified(true) .build(); mockGDCHardwareManagement.addResponse(expectedResponse); @@ -3003,6 +3196,9 @@ public void getZoneTest2() throws Exception { .setNetworkConfig(ZoneNetworkConfig.newBuilder().build()) .setGloballyUniqueId("globallyUniqueId-1207923364") .addAllSubscriptionConfigs(new ArrayList()) + .setSkipClusterProvisioning(true) + .setClusterIntentRequired(true) + .setClusterIntentVerified(true) .build(); mockGDCHardwareManagement.addResponse(expectedResponse); @@ -3050,6 +3246,9 @@ public void createZoneTest() throws Exception { .setNetworkConfig(ZoneNetworkConfig.newBuilder().build()) .setGloballyUniqueId("globallyUniqueId-1207923364") .addAllSubscriptionConfigs(new ArrayList()) + .setSkipClusterProvisioning(true) + .setClusterIntentRequired(true) + .setClusterIntentVerified(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -3111,6 +3310,9 @@ public void createZoneTest2() throws Exception { .setNetworkConfig(ZoneNetworkConfig.newBuilder().build()) .setGloballyUniqueId("globallyUniqueId-1207923364") .addAllSubscriptionConfigs(new ArrayList()) + .setSkipClusterProvisioning(true) + .setClusterIntentRequired(true) + .setClusterIntentVerified(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -3172,6 +3374,9 @@ public void updateZoneTest() throws Exception { .setNetworkConfig(ZoneNetworkConfig.newBuilder().build()) .setGloballyUniqueId("globallyUniqueId-1207923364") .addAllSubscriptionConfigs(new ArrayList()) + .setSkipClusterProvisioning(true) + .setClusterIntentRequired(true) + .setClusterIntentVerified(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -3314,6 +3519,9 @@ public void signalZoneStateTest() throws Exception { .setNetworkConfig(ZoneNetworkConfig.newBuilder().build()) .setGloballyUniqueId("globallyUniqueId-1207923364") .addAllSubscriptionConfigs(new ArrayList()) + .setSkipClusterProvisioning(true) + .setClusterIntentRequired(true) + .setClusterIntentVerified(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -3374,6 +3582,9 @@ public void signalZoneStateTest2() throws Exception { .setNetworkConfig(ZoneNetworkConfig.newBuilder().build()) .setGloballyUniqueId("globallyUniqueId-1207923364") .addAllSubscriptionConfigs(new ArrayList()) + .setSkipClusterProvisioning(true) + .setClusterIntentRequired(true) + .setClusterIntentVerified(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -3420,6 +3631,150 @@ public void signalZoneStateExceptionTest2() throws Exception { } } + @Test + public void requestOrderDateChangeTest() throws Exception { + Order expectedResponse = + Order.newBuilder() + .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setOrganizationContact(OrganizationContact.newBuilder().build()) + .addAllTargetWorkloads(new ArrayList()) + .setCustomerMotivation("customerMotivation419733780") + .setFulfillmentTime(Timestamp.newBuilder().build()) + .setCustomerRequestedInstallationDate(Date.newBuilder().build()) + .setRegionCode("regionCode-1991004415") + .setOrderFormUri("orderFormUri212580058") + .setSubmitTime(Timestamp.newBuilder().build()) + .setBillingId("billingId1828026614") + .addAllExistingHardware(new ArrayList()) + .setActualInstallationDate(Date.newBuilder().build()) + .setEstimatedInstallationDate(Date.newBuilder().build()) + .setEstimatedDeliveryDate(Date.newBuilder().build()) + .setMigration(true) + .setAcceptedTime(Timestamp.newBuilder().build()) + .setRequestedDateChange(Date.newBuilder().build()) + .setVendorNotes("vendorNotes43828825") + .setVendorContact(OrganizationContact.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("requestOrderDateChangeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGDCHardwareManagement.addResponse(resultOperation); + + OrderName name = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]"); + Date requestedDate = Date.newBuilder().build(); + + Order actualResponse = client.requestOrderDateChangeAsync(name, requestedDate).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RequestOrderDateChangeRequest actualRequest = + ((RequestOrderDateChangeRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(requestedDate, actualRequest.getRequestedDate()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void requestOrderDateChangeExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + OrderName name = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]"); + Date requestedDate = Date.newBuilder().build(); + client.requestOrderDateChangeAsync(name, requestedDate).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 requestOrderDateChangeTest2() throws Exception { + Order expectedResponse = + Order.newBuilder() + .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setOrganizationContact(OrganizationContact.newBuilder().build()) + .addAllTargetWorkloads(new ArrayList()) + .setCustomerMotivation("customerMotivation419733780") + .setFulfillmentTime(Timestamp.newBuilder().build()) + .setCustomerRequestedInstallationDate(Date.newBuilder().build()) + .setRegionCode("regionCode-1991004415") + .setOrderFormUri("orderFormUri212580058") + .setSubmitTime(Timestamp.newBuilder().build()) + .setBillingId("billingId1828026614") + .addAllExistingHardware(new ArrayList()) + .setActualInstallationDate(Date.newBuilder().build()) + .setEstimatedInstallationDate(Date.newBuilder().build()) + .setEstimatedDeliveryDate(Date.newBuilder().build()) + .setMigration(true) + .setAcceptedTime(Timestamp.newBuilder().build()) + .setRequestedDateChange(Date.newBuilder().build()) + .setVendorNotes("vendorNotes43828825") + .setVendorContact(OrganizationContact.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("requestOrderDateChangeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGDCHardwareManagement.addResponse(resultOperation); + + String name = "name3373707"; + Date requestedDate = Date.newBuilder().build(); + + Order actualResponse = client.requestOrderDateChangeAsync(name, requestedDate).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RequestOrderDateChangeRequest actualRequest = + ((RequestOrderDateChangeRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(requestedDate, actualRequest.getRequestedDate()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void requestOrderDateChangeExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + String name = "name3373707"; + Date requestedDate = Date.newBuilder().build(); + client.requestOrderDateChangeAsync(name, requestedDate).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/test/java/com/google/cloud/gdchardwaremanagement/v1alpha/MockGDCHardwareManagementImpl.java b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/test/java/com/google/cloud/gdchardwaremanagement/v1alpha/MockGDCHardwareManagementImpl.java index 8652981d8a85..bdb49ada7635 100644 --- a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/test/java/com/google/cloud/gdchardwaremanagement/v1alpha/MockGDCHardwareManagementImpl.java +++ b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/test/java/com/google/cloud/gdchardwaremanagement/v1alpha/MockGDCHardwareManagementImpl.java @@ -180,6 +180,26 @@ public void submitOrder(SubmitOrderRequest request, StreamObserver re } } + @Override + public void cancelOrder(CancelOrderRequest 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 CancelOrder, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void listSites( ListSitesRequest request, StreamObserver responseObserver) { @@ -780,4 +800,26 @@ public void signalZoneState( Exception.class.getName()))); } } + + @Override + public void requestOrderDateChange( + RequestOrderDateChangeRequest 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 RequestOrderDateChange, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-gdchardwaremanagement/grpc-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementGrpc.java b/java-gdchardwaremanagement/grpc-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementGrpc.java index c618f2332855..81ef4a2fe29a 100644 --- a/java-gdchardwaremanagement/grpc-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementGrpc.java +++ b/java-gdchardwaremanagement/grpc-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementGrpc.java @@ -314,6 +314,52 @@ private GDCHardwareManagementGrpc() {} return getSubmitOrderMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.CancelOrderRequest, + com.google.longrunning.Operation> + getCancelOrderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CancelOrder", + requestType = com.google.cloud.gdchardwaremanagement.v1alpha.CancelOrderRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.CancelOrderRequest, + com.google.longrunning.Operation> + getCancelOrderMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.CancelOrderRequest, + com.google.longrunning.Operation> + getCancelOrderMethod; + if ((getCancelOrderMethod = GDCHardwareManagementGrpc.getCancelOrderMethod) == null) { + synchronized (GDCHardwareManagementGrpc.class) { + if ((getCancelOrderMethod = GDCHardwareManagementGrpc.getCancelOrderMethod) == null) { + GDCHardwareManagementGrpc.getCancelOrderMethod = + getCancelOrderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CancelOrder")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gdchardwaremanagement.v1alpha.CancelOrderRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new GDCHardwareManagementMethodDescriptorSupplier("CancelOrder")) + .build(); + } + } + } + return getCancelOrderMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest, com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse> @@ -1692,6 +1738,60 @@ private GDCHardwareManagementGrpc() {} return getSignalZoneStateMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest, + com.google.longrunning.Operation> + getRequestOrderDateChangeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RequestOrderDateChange", + requestType = + com.google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest, + com.google.longrunning.Operation> + getRequestOrderDateChangeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest, + com.google.longrunning.Operation> + getRequestOrderDateChangeMethod; + if ((getRequestOrderDateChangeMethod = + GDCHardwareManagementGrpc.getRequestOrderDateChangeMethod) + == null) { + synchronized (GDCHardwareManagementGrpc.class) { + if ((getRequestOrderDateChangeMethod = + GDCHardwareManagementGrpc.getRequestOrderDateChangeMethod) + == null) { + GDCHardwareManagementGrpc.getRequestOrderDateChangeMethod = + getRequestOrderDateChangeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "RequestOrderDateChange")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gdchardwaremanagement.v1alpha + .RequestOrderDateChangeRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new GDCHardwareManagementMethodDescriptorSupplier( + "RequestOrderDateChange")) + .build(); + } + } + } + return getRequestOrderDateChangeMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static GDCHardwareManagementStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -1840,6 +1940,20 @@ default void submitOrder( getSubmitOrderMethod(), responseObserver); } + /** + * + * + *
    +     * Cancels an order.
    +     * 
    + */ + default void cancelOrder( + com.google.cloud.gdchardwaremanagement.v1alpha.CancelOrderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCancelOrderMethod(), responseObserver); + } + /** * * @@ -2256,6 +2370,20 @@ default void signalZoneState( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getSignalZoneStateMethod(), responseObserver); } + + /** + * + * + *
    +     * Updates the requested date change of a single Order.
    +     * 
    + */ + default void requestOrderDateChange( + com.google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRequestOrderDateChangeMethod(), responseObserver); + } } /** @@ -2388,6 +2516,22 @@ public void submitOrder( responseObserver); } + /** + * + * + *
    +     * Cancels an order.
    +     * 
    + */ + public void cancelOrder( + com.google.cloud.gdchardwaremanagement.v1alpha.CancelOrderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCancelOrderMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -2849,6 +2993,22 @@ public void signalZoneState( request, responseObserver); } + + /** + * + * + *
    +     * Updates the requested date change of a single Order.
    +     * 
    + */ + public void requestOrderDateChange( + com.google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRequestOrderDateChangeMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -2949,6 +3109,19 @@ public com.google.longrunning.Operation submitOrder( getChannel(), getSubmitOrderMethod(), getCallOptions(), request); } + /** + * + * + *
    +     * Cancels an order.
    +     * 
    + */ + public com.google.longrunning.Operation cancelOrder( + com.google.cloud.gdchardwaremanagement.v1alpha.CancelOrderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCancelOrderMethod(), getCallOptions(), request); + } + /** * * @@ -3330,6 +3503,19 @@ public com.google.longrunning.Operation signalZoneState( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getSignalZoneStateMethod(), getCallOptions(), request); } + + /** + * + * + *
    +     * Updates the requested date change of a single Order.
    +     * 
    + */ + public com.google.longrunning.Operation requestOrderDateChange( + com.google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRequestOrderDateChangeMethod(), getCallOptions(), request); + } } /** @@ -3430,6 +3616,19 @@ public com.google.longrunning.Operation submitOrder( getChannel(), getSubmitOrderMethod(), getCallOptions(), request); } + /** + * + * + *
    +     * Cancels an order.
    +     * 
    + */ + public com.google.longrunning.Operation cancelOrder( + com.google.cloud.gdchardwaremanagement.v1alpha.CancelOrderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCancelOrderMethod(), getCallOptions(), request); + } + /** * * @@ -3811,6 +4010,19 @@ public com.google.longrunning.Operation signalZoneState( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getSignalZoneStateMethod(), getCallOptions(), request); } + + /** + * + * + *
    +     * Updates the requested date change of a single Order.
    +     * 
    + */ + public com.google.longrunning.Operation requestOrderDateChange( + com.google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRequestOrderDateChangeMethod(), getCallOptions(), request); + } } /** @@ -3914,6 +4126,19 @@ protected GDCHardwareManagementFutureStub build( getChannel().newCall(getSubmitOrderMethod(), getCallOptions()), request); } + /** + * + * + *
    +     * Cancels an order.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + cancelOrder(com.google.cloud.gdchardwaremanagement.v1alpha.CancelOrderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCancelOrderMethod(), getCallOptions()), request); + } + /** * * @@ -4320,6 +4545,20 @@ protected GDCHardwareManagementFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSignalZoneStateMethod(), getCallOptions()), request); } + + /** + * + * + *
    +     * Updates the requested date change of a single Order.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + requestOrderDateChange( + com.google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRequestOrderDateChangeMethod(), getCallOptions()), request); + } } private static final int METHODID_LIST_ORDERS = 0; @@ -4328,35 +4567,37 @@ protected GDCHardwareManagementFutureStub build( private static final int METHODID_UPDATE_ORDER = 3; private static final int METHODID_DELETE_ORDER = 4; private static final int METHODID_SUBMIT_ORDER = 5; - private static final int METHODID_LIST_SITES = 6; - private static final int METHODID_GET_SITE = 7; - private static final int METHODID_CREATE_SITE = 8; - private static final int METHODID_UPDATE_SITE = 9; - private static final int METHODID_DELETE_SITE = 10; - private static final int METHODID_LIST_HARDWARE_GROUPS = 11; - private static final int METHODID_GET_HARDWARE_GROUP = 12; - private static final int METHODID_CREATE_HARDWARE_GROUP = 13; - private static final int METHODID_UPDATE_HARDWARE_GROUP = 14; - private static final int METHODID_DELETE_HARDWARE_GROUP = 15; - private static final int METHODID_LIST_HARDWARE = 16; - private static final int METHODID_GET_HARDWARE = 17; - private static final int METHODID_CREATE_HARDWARE = 18; - private static final int METHODID_UPDATE_HARDWARE = 19; - private static final int METHODID_DELETE_HARDWARE = 20; - private static final int METHODID_LIST_COMMENTS = 21; - private static final int METHODID_GET_COMMENT = 22; - private static final int METHODID_CREATE_COMMENT = 23; - private static final int METHODID_RECORD_ACTION_ON_COMMENT = 24; - private static final int METHODID_LIST_CHANGE_LOG_ENTRIES = 25; - private static final int METHODID_GET_CHANGE_LOG_ENTRY = 26; - private static final int METHODID_LIST_SKUS = 27; - private static final int METHODID_GET_SKU = 28; - private static final int METHODID_LIST_ZONES = 29; - private static final int METHODID_GET_ZONE = 30; - private static final int METHODID_CREATE_ZONE = 31; - private static final int METHODID_UPDATE_ZONE = 32; - private static final int METHODID_DELETE_ZONE = 33; - private static final int METHODID_SIGNAL_ZONE_STATE = 34; + private static final int METHODID_CANCEL_ORDER = 6; + private static final int METHODID_LIST_SITES = 7; + private static final int METHODID_GET_SITE = 8; + private static final int METHODID_CREATE_SITE = 9; + private static final int METHODID_UPDATE_SITE = 10; + private static final int METHODID_DELETE_SITE = 11; + private static final int METHODID_LIST_HARDWARE_GROUPS = 12; + private static final int METHODID_GET_HARDWARE_GROUP = 13; + private static final int METHODID_CREATE_HARDWARE_GROUP = 14; + private static final int METHODID_UPDATE_HARDWARE_GROUP = 15; + private static final int METHODID_DELETE_HARDWARE_GROUP = 16; + private static final int METHODID_LIST_HARDWARE = 17; + private static final int METHODID_GET_HARDWARE = 18; + private static final int METHODID_CREATE_HARDWARE = 19; + private static final int METHODID_UPDATE_HARDWARE = 20; + private static final int METHODID_DELETE_HARDWARE = 21; + private static final int METHODID_LIST_COMMENTS = 22; + private static final int METHODID_GET_COMMENT = 23; + private static final int METHODID_CREATE_COMMENT = 24; + private static final int METHODID_RECORD_ACTION_ON_COMMENT = 25; + private static final int METHODID_LIST_CHANGE_LOG_ENTRIES = 26; + private static final int METHODID_GET_CHANGE_LOG_ENTRY = 27; + private static final int METHODID_LIST_SKUS = 28; + private static final int METHODID_GET_SKU = 29; + private static final int METHODID_LIST_ZONES = 30; + private static final int METHODID_GET_ZONE = 31; + private static final int METHODID_CREATE_ZONE = 32; + private static final int METHODID_UPDATE_ZONE = 33; + private static final int METHODID_DELETE_ZONE = 34; + private static final int METHODID_SIGNAL_ZONE_STATE = 35; + private static final int METHODID_REQUEST_ORDER_DATE_CHANGE = 36; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -4408,6 +4649,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_CANCEL_ORDER: + serviceImpl.cancelOrder( + (com.google.cloud.gdchardwaremanagement.v1alpha.CancelOrderRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_LIST_SITES: serviceImpl.listSites( (com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest) request, @@ -4577,6 +4823,12 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_REQUEST_ORDER_DATE_CHANGE: + serviceImpl.requestOrderDateChange( + (com.google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest) + request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -4633,6 +4885,12 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest, com.google.longrunning.Operation>(service, METHODID_SUBMIT_ORDER))) + .addMethod( + getCancelOrderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gdchardwaremanagement.v1alpha.CancelOrderRequest, + com.google.longrunning.Operation>(service, METHODID_CANCEL_ORDER))) .addMethod( getListSitesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -4821,6 +5079,12 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest, com.google.longrunning.Operation>(service, METHODID_SIGNAL_ZONE_STATE))) + .addMethod( + getRequestOrderDateChangeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest, + com.google.longrunning.Operation>(service, METHODID_REQUEST_ORDER_DATE_CHANGE))) .build(); } @@ -4878,6 +5142,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getUpdateOrderMethod()) .addMethod(getDeleteOrderMethod()) .addMethod(getSubmitOrderMethod()) + .addMethod(getCancelOrderMethod()) .addMethod(getListSitesMethod()) .addMethod(getGetSiteMethod()) .addMethod(getCreateSiteMethod()) @@ -4907,6 +5172,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getUpdateZoneMethod()) .addMethod(getDeleteZoneMethod()) .addMethod(getSignalZoneStateMethod()) + .addMethod(getRequestOrderDateChangeMethod()) .build(); } } diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CancelOrderRequest.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CancelOrderRequest.java new file mode 100644 index 000000000000..13076b84c4ed --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CancelOrderRequest.java @@ -0,0 +1,875 @@ +/* + * 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/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
    + * A request to cancel an order.
    + * 
    + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.CancelOrderRequest} + */ +public final class CancelOrderRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.CancelOrderRequest) + CancelOrderRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CancelOrderRequest.newBuilder() to construct. + private CancelOrderRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CancelOrderRequest() { + name_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CancelOrderRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_CancelOrderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_CancelOrderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.CancelOrderRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.CancelOrderRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Required. The name of the order.
    +   * Format: `projects/{project}/locations/{location}/orders/{order}`
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. The name of the order.
    +   * Format: `projects/{project}/locations/{location}/orders/{order}`
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
    +   * Optional. An optional unique identifier for this request. See
    +   * [AIP-155](https://google.aip.dev/155).
    +   * 
    + * + * + * string request_id = 2 [(.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 unique identifier for this request. See
    +   * [AIP-155](https://google.aip.dev/155).
    +   * 
    + * + * + * string request_id = 2 [(.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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.CancelOrderRequest)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.CancelOrderRequest other = + (com.google.cloud.gdchardwaremanagement.v1alpha.CancelOrderRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CancelOrderRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CancelOrderRequest 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.gdchardwaremanagement.v1alpha.CancelOrderRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CancelOrderRequest parseFrom( + 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.gdchardwaremanagement.v1alpha.CancelOrderRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CancelOrderRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CancelOrderRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CancelOrderRequest 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.gdchardwaremanagement.v1alpha.CancelOrderRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CancelOrderRequest + 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.gdchardwaremanagement.v1alpha.CancelOrderRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CancelOrderRequest 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.gdchardwaremanagement.v1alpha.CancelOrderRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 request to cancel an order.
    +   * 
    + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.CancelOrderRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.CancelOrderRequest) + com.google.cloud.gdchardwaremanagement.v1alpha.CancelOrderRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_CancelOrderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_CancelOrderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.CancelOrderRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.CancelOrderRequest.Builder.class); + } + + // Construct using + // com.google.cloud.gdchardwaremanagement.v1alpha.CancelOrderRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_CancelOrderRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.CancelOrderRequest + getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.CancelOrderRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.CancelOrderRequest build() { + com.google.cloud.gdchardwaremanagement.v1alpha.CancelOrderRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.CancelOrderRequest buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.CancelOrderRequest result = + new com.google.cloud.gdchardwaremanagement.v1alpha.CancelOrderRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gdchardwaremanagement.v1alpha.CancelOrderRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + } + + @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.gdchardwaremanagement.v1alpha.CancelOrderRequest) { + return mergeFrom((com.google.cloud.gdchardwaremanagement.v1alpha.CancelOrderRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gdchardwaremanagement.v1alpha.CancelOrderRequest other) { + if (other + == com.google.cloud.gdchardwaremanagement.v1alpha.CancelOrderRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
    +     * Required. The name of the order.
    +     * Format: `projects/{project}/locations/{location}/orders/{order}`
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. The name of the order.
    +     * Format: `projects/{project}/locations/{location}/orders/{order}`
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. The name of the order.
    +     * Format: `projects/{project}/locations/{location}/orders/{order}`
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The name of the order.
    +     * Format: `projects/{project}/locations/{location}/orders/{order}`
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The name of the order.
    +     * Format: `projects/{project}/locations/{location}/orders/{order}`
    +     * 
    + * + * + * 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 java.lang.Object requestId_ = ""; + + /** + * + * + *
    +     * Optional. An optional unique identifier for this request. See
    +     * [AIP-155](https://google.aip.dev/155).
    +     * 
    + * + * + * string request_id = 2 [(.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 unique identifier for this request. See
    +     * [AIP-155](https://google.aip.dev/155).
    +     * 
    + * + * + * string request_id = 2 [(.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 unique identifier for this request. See
    +     * [AIP-155](https://google.aip.dev/155).
    +     * 
    + * + * + * string request_id = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. An optional unique identifier for this request. See
    +     * [AIP-155](https://google.aip.dev/155).
    +     * 
    + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. An optional unique identifier for this request. See
    +     * [AIP-155](https://google.aip.dev/155).
    +     * 
    + * + * + * string request_id = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.CancelOrderRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.CancelOrderRequest) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.CancelOrderRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.CancelOrderRequest(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CancelOrderRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CancelOrderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.gdchardwaremanagement.v1alpha.CancelOrderRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CancelOrderRequestOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CancelOrderRequestOrBuilder.java new file mode 100644 index 000000000000..145b65d45617 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CancelOrderRequestOrBuilder.java @@ -0,0 +1,90 @@ +/* + * 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/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface CancelOrderRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.CancelOrderRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The name of the order.
    +   * Format: `projects/{project}/locations/{location}/orders/{order}`
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Required. The name of the order.
    +   * Format: `projects/{project}/locations/{location}/orders/{order}`
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Optional. An optional unique identifier for this request. See
    +   * [AIP-155](https://google.aip.dev/155).
    +   * 
    + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
    +   * Optional. An optional unique identifier for this request. See
    +   * [AIP-155](https://google.aip.dev/155).
    +   * 
    + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/Hardware.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/Hardware.java index e54137098be4..680f03e9e264 100644 --- a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/Hardware.java +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/Hardware.java @@ -6605,6 +6605,65 @@ public com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfo getMa return machineInfos_.get(index); } + public static final int ESTIMATED_DELIVERY_DATE_FIELD_NUMBER = 21; + private com.google.type.Date estimatedDeliveryDate_; + + /** + * + * + *
    +   * Output only. The estimated delivery date of the hardware.
    +   * 
    + * + * + * .google.type.Date estimated_delivery_date = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the estimatedDeliveryDate field is set. + */ + @java.lang.Override + public boolean hasEstimatedDeliveryDate() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
    +   * Output only. The estimated delivery date of the hardware.
    +   * 
    + * + * + * .google.type.Date estimated_delivery_date = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The estimatedDeliveryDate. + */ + @java.lang.Override + public com.google.type.Date getEstimatedDeliveryDate() { + return estimatedDeliveryDate_ == null + ? com.google.type.Date.getDefaultInstance() + : estimatedDeliveryDate_; + } + + /** + * + * + *
    +   * Output only. The estimated delivery date of the hardware.
    +   * 
    + * + * + * .google.type.Date estimated_delivery_date = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.type.DateOrBuilder getEstimatedDeliveryDateOrBuilder() { + return estimatedDeliveryDate_ == null + ? com.google.type.Date.getDefaultInstance() + : estimatedDeliveryDate_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -6674,6 +6733,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < machineInfos_.size(); i++) { output.writeMessage(20, machineInfos_.get(i)); } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(21, getEstimatedDeliveryDate()); + } getUnknownFields().writeTo(output); } @@ -6751,6 +6813,10 @@ public int getSerializedSize() { for (int i = 0; i < machineInfos_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, machineInfos_.get(i)); } + if (((bitField0_ & 0x00000100) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(21, getEstimatedDeliveryDate()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -6811,6 +6877,10 @@ public boolean equals(final java.lang.Object obj) { if (!getActualInstallationDate().equals(other.getActualInstallationDate())) return false; } if (!getMachineInfosList().equals(other.getMachineInfosList())) return false; + if (hasEstimatedDeliveryDate() != other.hasEstimatedDeliveryDate()) return false; + if (hasEstimatedDeliveryDate()) { + if (!getEstimatedDeliveryDate().equals(other.getEstimatedDeliveryDate())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -6878,6 +6948,10 @@ public int hashCode() { hash = (37 * hash) + MACHINE_INFOS_FIELD_NUMBER; hash = (53 * hash) + getMachineInfosList().hashCode(); } + if (hasEstimatedDeliveryDate()) { + hash = (37 * hash) + ESTIMATED_DELIVERY_DATE_FIELD_NUMBER; + hash = (53 * hash) + getEstimatedDeliveryDate().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -7051,6 +7125,7 @@ private void maybeForceBuilderInitialization() { getRequestedInstallationDateFieldBuilder(); getActualInstallationDateFieldBuilder(); getMachineInfosFieldBuilder(); + getEstimatedDeliveryDateFieldBuilder(); } } @@ -7114,6 +7189,11 @@ public Builder clear() { machineInfosBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00020000); + estimatedDeliveryDate_ = null; + if (estimatedDeliveryDateBuilder_ != null) { + estimatedDeliveryDateBuilder_.dispose(); + estimatedDeliveryDateBuilder_ = null; + } return this; } @@ -7236,6 +7316,13 @@ private void buildPartial0(com.google.cloud.gdchardwaremanagement.v1alpha.Hardwa : actualInstallationDateBuilder_.build(); to_bitField0_ |= 0x00000080; } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.estimatedDeliveryDate_ = + estimatedDeliveryDateBuilder_ == null + ? estimatedDeliveryDate_ + : estimatedDeliveryDateBuilder_.build(); + to_bitField0_ |= 0x00000100; + } result.bitField0_ |= to_bitField0_; } @@ -7376,6 +7463,9 @@ public Builder mergeFrom(com.google.cloud.gdchardwaremanagement.v1alpha.Hardware } } } + if (other.hasEstimatedDeliveryDate()) { + mergeEstimatedDeliveryDate(other.getEstimatedDeliveryDate()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -7529,6 +7619,13 @@ public Builder mergeFrom( } break; } // case 162 + case 170: + { + input.readMessage( + getEstimatedDeliveryDateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00040000; + break; + } // case 170 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -10854,6 +10951,212 @@ public Builder removeMachineInfos(int index) { return machineInfosBuilder_; } + private com.google.type.Date estimatedDeliveryDate_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + estimatedDeliveryDateBuilder_; + + /** + * + * + *
    +     * Output only. The estimated delivery date of the hardware.
    +     * 
    + * + * + * .google.type.Date estimated_delivery_date = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the estimatedDeliveryDate field is set. + */ + public boolean hasEstimatedDeliveryDate() { + return ((bitField0_ & 0x00040000) != 0); + } + + /** + * + * + *
    +     * Output only. The estimated delivery date of the hardware.
    +     * 
    + * + * + * .google.type.Date estimated_delivery_date = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The estimatedDeliveryDate. + */ + public com.google.type.Date getEstimatedDeliveryDate() { + if (estimatedDeliveryDateBuilder_ == null) { + return estimatedDeliveryDate_ == null + ? com.google.type.Date.getDefaultInstance() + : estimatedDeliveryDate_; + } else { + return estimatedDeliveryDateBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Output only. The estimated delivery date of the hardware.
    +     * 
    + * + * + * .google.type.Date estimated_delivery_date = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEstimatedDeliveryDate(com.google.type.Date value) { + if (estimatedDeliveryDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + estimatedDeliveryDate_ = value; + } else { + estimatedDeliveryDateBuilder_.setMessage(value); + } + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The estimated delivery date of the hardware.
    +     * 
    + * + * + * .google.type.Date estimated_delivery_date = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEstimatedDeliveryDate(com.google.type.Date.Builder builderForValue) { + if (estimatedDeliveryDateBuilder_ == null) { + estimatedDeliveryDate_ = builderForValue.build(); + } else { + estimatedDeliveryDateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The estimated delivery date of the hardware.
    +     * 
    + * + * + * .google.type.Date estimated_delivery_date = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEstimatedDeliveryDate(com.google.type.Date value) { + if (estimatedDeliveryDateBuilder_ == null) { + if (((bitField0_ & 0x00040000) != 0) + && estimatedDeliveryDate_ != null + && estimatedDeliveryDate_ != com.google.type.Date.getDefaultInstance()) { + getEstimatedDeliveryDateBuilder().mergeFrom(value); + } else { + estimatedDeliveryDate_ = value; + } + } else { + estimatedDeliveryDateBuilder_.mergeFrom(value); + } + if (estimatedDeliveryDate_ != null) { + bitField0_ |= 0x00040000; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Output only. The estimated delivery date of the hardware.
    +     * 
    + * + * + * .google.type.Date estimated_delivery_date = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEstimatedDeliveryDate() { + bitField0_ = (bitField0_ & ~0x00040000); + estimatedDeliveryDate_ = null; + if (estimatedDeliveryDateBuilder_ != null) { + estimatedDeliveryDateBuilder_.dispose(); + estimatedDeliveryDateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The estimated delivery date of the hardware.
    +     * 
    + * + * + * .google.type.Date estimated_delivery_date = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.type.Date.Builder getEstimatedDeliveryDateBuilder() { + bitField0_ |= 0x00040000; + onChanged(); + return getEstimatedDeliveryDateFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Output only. The estimated delivery date of the hardware.
    +     * 
    + * + * + * .google.type.Date estimated_delivery_date = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.type.DateOrBuilder getEstimatedDeliveryDateOrBuilder() { + if (estimatedDeliveryDateBuilder_ != null) { + return estimatedDeliveryDateBuilder_.getMessageOrBuilder(); + } else { + return estimatedDeliveryDate_ == null + ? com.google.type.Date.getDefaultInstance() + : estimatedDeliveryDate_; + } + } + + /** + * + * + *
    +     * Output only. The estimated delivery date of the hardware.
    +     * 
    + * + * + * .google.type.Date estimated_delivery_date = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getEstimatedDeliveryDateFieldBuilder() { + if (estimatedDeliveryDateBuilder_ == null) { + estimatedDeliveryDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getEstimatedDeliveryDate(), getParentForChildren(), isClean()); + estimatedDeliveryDate_ = null; + } + return estimatedDeliveryDateBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareGroup.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareGroup.java index 2e0a190483d9..3893b5654360 100644 --- a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareGroup.java +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareGroup.java @@ -882,17 +882,21 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
    -   * Optional. Requested installation date for the hardware in this
    -   * HardwareGroup. Filled in by the customer.
    +   * Deprecated: This value is not used. Use the requested_installation_date
    +   * field in the Order resource instead.
        * 
    * * - * .google.type.Date requested_installation_date = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.type.Date requested_installation_date = 10 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated + * google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.requested_installation_date is + * deprecated. See google/cloud/gdchardwaremanagement/v1alpha/resources.proto;l=408 * @return Whether the requestedInstallationDate field is set. */ @java.lang.Override + @java.lang.Deprecated public boolean hasRequestedInstallationDate() { return ((bitField0_ & 0x00000008) != 0); } @@ -901,17 +905,21 @@ public boolean hasRequestedInstallationDate() { * * *
    -   * Optional. Requested installation date for the hardware in this
    -   * HardwareGroup. Filled in by the customer.
    +   * Deprecated: This value is not used. Use the requested_installation_date
    +   * field in the Order resource instead.
        * 
    * * - * .google.type.Date requested_installation_date = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.type.Date requested_installation_date = 10 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated + * google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.requested_installation_date is + * deprecated. See google/cloud/gdchardwaremanagement/v1alpha/resources.proto;l=408 * @return The requestedInstallationDate. */ @java.lang.Override + @java.lang.Deprecated public com.google.type.Date getRequestedInstallationDate() { return requestedInstallationDate_ == null ? com.google.type.Date.getDefaultInstance() @@ -922,15 +930,16 @@ public com.google.type.Date getRequestedInstallationDate() { * * *
    -   * Optional. Requested installation date for the hardware in this
    -   * HardwareGroup. Filled in by the customer.
    +   * Deprecated: This value is not used. Use the requested_installation_date
    +   * field in the Order resource instead.
        * 
    * * - * .google.type.Date requested_installation_date = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.type.Date requested_installation_date = 10 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override + @java.lang.Deprecated public com.google.type.DateOrBuilder getRequestedInstallationDateOrBuilder() { return requestedInstallationDate_ == null ? com.google.type.Date.getDefaultInstance() @@ -2967,16 +2976,20 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * *
    -     * Optional. Requested installation date for the hardware in this
    -     * HardwareGroup. Filled in by the customer.
    +     * Deprecated: This value is not used. Use the requested_installation_date
    +     * field in the Order resource instead.
          * 
    * * - * .google.type.Date requested_installation_date = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.type.Date requested_installation_date = 10 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated + * google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.requested_installation_date is + * deprecated. See google/cloud/gdchardwaremanagement/v1alpha/resources.proto;l=408 * @return Whether the requestedInstallationDate field is set. */ + @java.lang.Deprecated public boolean hasRequestedInstallationDate() { return ((bitField0_ & 0x00000200) != 0); } @@ -2985,16 +2998,20 @@ public boolean hasRequestedInstallationDate() { * * *
    -     * Optional. Requested installation date for the hardware in this
    -     * HardwareGroup. Filled in by the customer.
    +     * Deprecated: This value is not used. Use the requested_installation_date
    +     * field in the Order resource instead.
          * 
    * * - * .google.type.Date requested_installation_date = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.type.Date requested_installation_date = 10 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated + * google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.requested_installation_date is + * deprecated. See google/cloud/gdchardwaremanagement/v1alpha/resources.proto;l=408 * @return The requestedInstallationDate. */ + @java.lang.Deprecated public com.google.type.Date getRequestedInstallationDate() { if (requestedInstallationDateBuilder_ == null) { return requestedInstallationDate_ == null @@ -3009,14 +3026,15 @@ public com.google.type.Date getRequestedInstallationDate() { * * *
    -     * Optional. Requested installation date for the hardware in this
    -     * HardwareGroup. Filled in by the customer.
    +     * Deprecated: This value is not used. Use the requested_installation_date
    +     * field in the Order resource instead.
          * 
    * * - * .google.type.Date requested_installation_date = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.type.Date requested_installation_date = 10 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * */ + @java.lang.Deprecated public Builder setRequestedInstallationDate(com.google.type.Date value) { if (requestedInstallationDateBuilder_ == null) { if (value == null) { @@ -3035,14 +3053,15 @@ public Builder setRequestedInstallationDate(com.google.type.Date value) { * * *
    -     * Optional. Requested installation date for the hardware in this
    -     * HardwareGroup. Filled in by the customer.
    +     * Deprecated: This value is not used. Use the requested_installation_date
    +     * field in the Order resource instead.
          * 
    * * - * .google.type.Date requested_installation_date = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.type.Date requested_installation_date = 10 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * */ + @java.lang.Deprecated public Builder setRequestedInstallationDate(com.google.type.Date.Builder builderForValue) { if (requestedInstallationDateBuilder_ == null) { requestedInstallationDate_ = builderForValue.build(); @@ -3058,14 +3077,15 @@ public Builder setRequestedInstallationDate(com.google.type.Date.Builder builder * * *
    -     * Optional. Requested installation date for the hardware in this
    -     * HardwareGroup. Filled in by the customer.
    +     * Deprecated: This value is not used. Use the requested_installation_date
    +     * field in the Order resource instead.
          * 
    * * - * .google.type.Date requested_installation_date = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.type.Date requested_installation_date = 10 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * */ + @java.lang.Deprecated public Builder mergeRequestedInstallationDate(com.google.type.Date value) { if (requestedInstallationDateBuilder_ == null) { if (((bitField0_ & 0x00000200) != 0) @@ -3089,14 +3109,15 @@ public Builder mergeRequestedInstallationDate(com.google.type.Date value) { * * *
    -     * Optional. Requested installation date for the hardware in this
    -     * HardwareGroup. Filled in by the customer.
    +     * Deprecated: This value is not used. Use the requested_installation_date
    +     * field in the Order resource instead.
          * 
    * * - * .google.type.Date requested_installation_date = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.type.Date requested_installation_date = 10 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * */ + @java.lang.Deprecated public Builder clearRequestedInstallationDate() { bitField0_ = (bitField0_ & ~0x00000200); requestedInstallationDate_ = null; @@ -3112,14 +3133,15 @@ public Builder clearRequestedInstallationDate() { * * *
    -     * Optional. Requested installation date for the hardware in this
    -     * HardwareGroup. Filled in by the customer.
    +     * Deprecated: This value is not used. Use the requested_installation_date
    +     * field in the Order resource instead.
          * 
    * * - * .google.type.Date requested_installation_date = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.type.Date requested_installation_date = 10 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * */ + @java.lang.Deprecated public com.google.type.Date.Builder getRequestedInstallationDateBuilder() { bitField0_ |= 0x00000200; onChanged(); @@ -3130,14 +3152,15 @@ public com.google.type.Date.Builder getRequestedInstallationDateBuilder() { * * *
    -     * Optional. Requested installation date for the hardware in this
    -     * HardwareGroup. Filled in by the customer.
    +     * Deprecated: This value is not used. Use the requested_installation_date
    +     * field in the Order resource instead.
          * 
    * * - * .google.type.Date requested_installation_date = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.type.Date requested_installation_date = 10 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * */ + @java.lang.Deprecated public com.google.type.DateOrBuilder getRequestedInstallationDateOrBuilder() { if (requestedInstallationDateBuilder_ != null) { return requestedInstallationDateBuilder_.getMessageOrBuilder(); @@ -3152,12 +3175,12 @@ public com.google.type.DateOrBuilder getRequestedInstallationDateOrBuilder() { * * *
    -     * Optional. Requested installation date for the hardware in this
    -     * HardwareGroup. Filled in by the customer.
    +     * Deprecated: This value is not used. Use the requested_installation_date
    +     * field in the Order resource instead.
          * 
    * * - * .google.type.Date requested_installation_date = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.type.Date requested_installation_date = 10 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareGroupOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareGroupOrBuilder.java index c96b8cb6cbc8..3c1aa3f231b8 100644 --- a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareGroupOrBuilder.java +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareGroupOrBuilder.java @@ -363,45 +363,54 @@ java.lang.String getLabelsOrDefault( * * *
    -   * Optional. Requested installation date for the hardware in this
    -   * HardwareGroup. Filled in by the customer.
    +   * Deprecated: This value is not used. Use the requested_installation_date
    +   * field in the Order resource instead.
        * 
    * * - * .google.type.Date requested_installation_date = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.type.Date requested_installation_date = 10 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated + * google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.requested_installation_date is + * deprecated. See google/cloud/gdchardwaremanagement/v1alpha/resources.proto;l=408 * @return Whether the requestedInstallationDate field is set. */ + @java.lang.Deprecated boolean hasRequestedInstallationDate(); /** * * *
    -   * Optional. Requested installation date for the hardware in this
    -   * HardwareGroup. Filled in by the customer.
    +   * Deprecated: This value is not used. Use the requested_installation_date
    +   * field in the Order resource instead.
        * 
    * * - * .google.type.Date requested_installation_date = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.type.Date requested_installation_date = 10 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated + * google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.requested_installation_date is + * deprecated. See google/cloud/gdchardwaremanagement/v1alpha/resources.proto;l=408 * @return The requestedInstallationDate. */ + @java.lang.Deprecated com.google.type.Date getRequestedInstallationDate(); /** * * *
    -   * Optional. Requested installation date for the hardware in this
    -   * HardwareGroup. Filled in by the customer.
    +   * Deprecated: This value is not used. Use the requested_installation_date
    +   * field in the Order resource instead.
        * 
    * * - * .google.type.Date requested_installation_date = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.type.Date requested_installation_date = 10 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * */ + @java.lang.Deprecated com.google.type.DateOrBuilder getRequestedInstallationDateOrBuilder(); } diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareOrBuilder.java index febe47ace939..ad68430065f2 100644 --- a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareOrBuilder.java +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareOrBuilder.java @@ -756,4 +756,47 @@ java.lang.String getLabelsOrDefault( */ com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfoOrBuilder getMachineInfosOrBuilder(int index); + + /** + * + * + *
    +   * Output only. The estimated delivery date of the hardware.
    +   * 
    + * + * + * .google.type.Date estimated_delivery_date = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the estimatedDeliveryDate field is set. + */ + boolean hasEstimatedDeliveryDate(); + + /** + * + * + *
    +   * Output only. The estimated delivery date of the hardware.
    +   * 
    + * + * + * .google.type.Date estimated_delivery_date = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The estimatedDeliveryDate. + */ + com.google.type.Date getEstimatedDeliveryDate(); + + /** + * + * + *
    +   * Output only. The estimated delivery date of the hardware.
    +   * 
    + * + * + * .google.type.Date estimated_delivery_date = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.type.DateOrBuilder getEstimatedDeliveryDateOrBuilder(); } diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwarePhysicalInfo.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwarePhysicalInfo.java index b7f3c39a65a5..5ea428d8ac05 100644 --- a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwarePhysicalInfo.java +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwarePhysicalInfo.java @@ -112,12 +112,54 @@ public enum PowerReceptacleType implements com.google.protobuf.ProtocolMessageEn * * *
    -     * Standard european receptacle.
    +     * Deprecated: Please use TYPE_G_BS1363, CEE_7_3, CEE_7_5 or TYPE_F
    +     * instead.
          * 
    * - * STANDARD_EU = 3; + * STANDARD_EU = 3 [deprecated = true]; */ + @java.lang.Deprecated STANDARD_EU(3), + /** + * + * + *
    +     * Type G / BS1363.
    +     * 
    + * + * TYPE_G_BS1363 = 4; + */ + TYPE_G_BS1363(4), + /** + * + * + *
    +     * C 7/3.
    +     * 
    + * + * CEE_7_3 = 5; + */ + CEE_7_3(5), + /** + * + * + *
    +     * C 7/5.
    +     * 
    + * + * CEE_7_5 = 6; + */ + CEE_7_5(6), + /** + * + * + *
    +     * Type F.
    +     * 
    + * + * TYPE_F = 7; + */ + TYPE_F(7), UNRECOGNIZED(-1), ; @@ -158,12 +200,57 @@ public enum PowerReceptacleType implements com.google.protobuf.ProtocolMessageEn * * *
    -     * Standard european receptacle.
    +     * Deprecated: Please use TYPE_G_BS1363, CEE_7_3, CEE_7_5 or TYPE_F
    +     * instead.
    +     * 
    + * + * STANDARD_EU = 3 [deprecated = true]; + */ + @java.lang.Deprecated public static final int STANDARD_EU_VALUE = 3; + + /** + * + * + *
    +     * Type G / BS1363.
    +     * 
    + * + * TYPE_G_BS1363 = 4; + */ + public static final int TYPE_G_BS1363_VALUE = 4; + + /** + * + * + *
    +     * C 7/3.
    +     * 
    + * + * CEE_7_3 = 5; + */ + public static final int CEE_7_3_VALUE = 5; + + /** + * + * + *
    +     * C 7/5.
    +     * 
    + * + * CEE_7_5 = 6; + */ + public static final int CEE_7_5_VALUE = 6; + + /** + * + * + *
    +     * Type F.
          * 
    * - * STANDARD_EU = 3; + * TYPE_F = 7; */ - public static final int STANDARD_EU_VALUE = 3; + public static final int TYPE_F_VALUE = 7; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -197,6 +284,14 @@ public static PowerReceptacleType forNumber(int value) { return C_13; case 3: return STANDARD_EU; + case 4: + return TYPE_G_BS1363; + case 5: + return CEE_7_3; + case 6: + return CEE_7_5; + case 7: + return TYPE_F; default: return null; } diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/Order.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/Order.java index 10d6b2c4d226..a285a9b80829 100644 --- a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/Order.java +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/Order.java @@ -51,6 +51,7 @@ private Order() { billingId_ = ""; existingHardware_ = java.util.Collections.emptyList(); deploymentType_ = 0; + vendorNotes_ = ""; } @java.lang.Override @@ -1451,17 +1452,19 @@ public com.google.protobuf.ByteString getCustomerMotivationBytes() { * * *
    -   * Required. Customer specified deadline by when this order should be
    -   * fulfilled.
    +   * Deprecated: Please use customer_requested_installation_date instead.
        * 
    * * - * .google.protobuf.Timestamp fulfillment_time = 9 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp fulfillment_time = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.gdchardwaremanagement.v1alpha.Order.fulfillment_time is deprecated. + * See google/cloud/gdchardwaremanagement/v1alpha/resources.proto;l=190 * @return Whether the fulfillmentTime field is set. */ @java.lang.Override + @java.lang.Deprecated public boolean hasFulfillmentTime() { return ((bitField0_ & 0x00000008) != 0); } @@ -1470,17 +1473,19 @@ public boolean hasFulfillmentTime() { * * *
    -   * Required. Customer specified deadline by when this order should be
    -   * fulfilled.
    +   * Deprecated: Please use customer_requested_installation_date instead.
        * 
    * * - * .google.protobuf.Timestamp fulfillment_time = 9 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp fulfillment_time = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.gdchardwaremanagement.v1alpha.Order.fulfillment_time is deprecated. + * See google/cloud/gdchardwaremanagement/v1alpha/resources.proto;l=190 * @return The fulfillmentTime. */ @java.lang.Override + @java.lang.Deprecated public com.google.protobuf.Timestamp getFulfillmentTime() { return fulfillmentTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() @@ -1491,21 +1496,80 @@ public com.google.protobuf.Timestamp getFulfillmentTime() { * * *
    -   * Required. Customer specified deadline by when this order should be
    -   * fulfilled.
    +   * Deprecated: Please use customer_requested_installation_date instead.
        * 
    * * - * .google.protobuf.Timestamp fulfillment_time = 9 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp fulfillment_time = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override + @java.lang.Deprecated public com.google.protobuf.TimestampOrBuilder getFulfillmentTimeOrBuilder() { return fulfillmentTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : fulfillmentTime_; } + public static final int CUSTOMER_REQUESTED_INSTALLATION_DATE_FIELD_NUMBER = 21; + private com.google.type.Date customerRequestedInstallationDate_; + + /** + * + * + *
    +   * Optional. Customer requested installation date for this order.
    +   * 
    + * + * + * .google.type.Date customer_requested_installation_date = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customerRequestedInstallationDate field is set. + */ + @java.lang.Override + public boolean hasCustomerRequestedInstallationDate() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
    +   * Optional. Customer requested installation date for this order.
    +   * 
    + * + * + * .google.type.Date customer_requested_installation_date = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customerRequestedInstallationDate. + */ + @java.lang.Override + public com.google.type.Date getCustomerRequestedInstallationDate() { + return customerRequestedInstallationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : customerRequestedInstallationDate_; + } + + /** + * + * + *
    +   * Optional. Customer requested installation date for this order.
    +   * 
    + * + * + * .google.type.Date customer_requested_installation_date = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.type.DateOrBuilder getCustomerRequestedInstallationDateOrBuilder() { + return customerRequestedInstallationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : customerRequestedInstallationDate_; + } + public static final int REGION_CODE_FIELD_NUMBER = 10; @SuppressWarnings("serial") @@ -1679,7 +1743,7 @@ public com.google.cloud.gdchardwaremanagement.v1alpha.Order.Type getType() { */ @java.lang.Override public boolean hasSubmitTime() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** @@ -1927,7 +1991,7 @@ public com.google.cloud.gdchardwaremanagement.v1alpha.Order.DeploymentType getDe */ @java.lang.Override public boolean hasActualInstallationDate() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** @@ -1986,7 +2050,7 @@ public com.google.type.DateOrBuilder getActualInstallationDateOrBuilder() { */ @java.lang.Override public boolean hasEstimatedInstallationDate() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -2027,1271 +2091,2864 @@ public com.google.type.DateOrBuilder getEstimatedInstallationDateOrBuilder() { : estimatedInstallationDate_; } - private byte memoizedIsInitialized = -1; + public static final int ESTIMATED_DELIVERY_DATE_FIELD_NUMBER = 22; + private com.google.type.Date estimatedDeliveryDate_; + /** + * + * + *
    +   * Output only. Estimated delivery date for this order.
    +   * 
    + * + * + * .google.type.Date estimated_delivery_date = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the estimatedDeliveryDate field is set. + */ @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; + public boolean hasEstimatedDeliveryDate() { + return ((bitField0_ & 0x00000100) != 0); } + /** + * + * + *
    +   * Output only. Estimated delivery date for this order.
    +   * 
    + * + * + * .google.type.Date estimated_delivery_date = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The estimatedDeliveryDate. + */ @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(2, getCreateTime()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(3, getUpdateTime()); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); - if (state_ - != com.google.cloud.gdchardwaremanagement.v1alpha.Order.State.STATE_UNSPECIFIED - .getNumber()) { - output.writeEnum(5, state_); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(6, getOrganizationContact()); - } - for (int i = 0; i < targetWorkloads_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, targetWorkloads_.getRaw(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customerMotivation_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, customerMotivation_); - } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeMessage(9, getFulfillmentTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(regionCode_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, regionCode_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderFormUri_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 11, orderFormUri_); - } - if (type_ - != com.google.cloud.gdchardwaremanagement.v1alpha.Order.Type.TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(12, type_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 13, displayName_); - } - if (((bitField0_ & 0x00000010) != 0)) { - output.writeMessage(14, getSubmitTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(billingId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 15, billingId_); - } - for (int i = 0; i < existingHardware_.size(); i++) { - output.writeMessage(16, existingHardware_.get(i)); - } - if (deploymentType_ - != com.google.cloud.gdchardwaremanagement.v1alpha.Order.DeploymentType - .DEPLOYMENT_TYPE_UNSPECIFIED - .getNumber()) { - output.writeEnum(18, deploymentType_); - } - if (((bitField0_ & 0x00000020) != 0)) { - output.writeMessage(19, getActualInstallationDate()); - } - if (((bitField0_ & 0x00000040) != 0)) { - output.writeMessage(20, getEstimatedInstallationDate()); - } - getUnknownFields().writeTo(output); + public com.google.type.Date getEstimatedDeliveryDate() { + return estimatedDeliveryDate_ == null + ? com.google.type.Date.getDefaultInstance() + : estimatedDeliveryDate_; } + /** + * + * + *
    +   * Output only. Estimated delivery date for this order.
    +   * 
    + * + * + * .google.type.Date estimated_delivery_date = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ @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 (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); - } - if (state_ - != com.google.cloud.gdchardwaremanagement.v1alpha.Order.State.STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getOrganizationContact()); - } - { - int dataSize = 0; - for (int i = 0; i < targetWorkloads_.size(); i++) { - dataSize += computeStringSizeNoTag(targetWorkloads_.getRaw(i)); - } - size += dataSize; - size += 1 * getTargetWorkloadsList().size(); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customerMotivation_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, customerMotivation_); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getFulfillmentTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(regionCode_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, regionCode_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderFormUri_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, orderFormUri_); - } - if (type_ - != com.google.cloud.gdchardwaremanagement.v1alpha.Order.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, type_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, displayName_); - } - if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getSubmitTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(billingId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, billingId_); - } - for (int i = 0; i < existingHardware_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(16, existingHardware_.get(i)); - } - if (deploymentType_ - != com.google.cloud.gdchardwaremanagement.v1alpha.Order.DeploymentType - .DEPLOYMENT_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(18, deploymentType_); - } - if (((bitField0_ & 0x00000020) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(19, getActualInstallationDate()); - } - if (((bitField0_ & 0x00000040) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 20, getEstimatedInstallationDate()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; + public com.google.type.DateOrBuilder getEstimatedDeliveryDateOrBuilder() { + return estimatedDeliveryDate_ == null + ? com.google.type.Date.getDefaultInstance() + : estimatedDeliveryDate_; } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.Order)) { - return super.equals(obj); - } - com.google.cloud.gdchardwaremanagement.v1alpha.Order other = - (com.google.cloud.gdchardwaremanagement.v1alpha.Order) obj; - - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; - } - if (hasUpdateTime() != other.hasUpdateTime()) return false; - if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; - } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (state_ != other.state_) return false; - if (hasOrganizationContact() != other.hasOrganizationContact()) return false; - if (hasOrganizationContact()) { - if (!getOrganizationContact().equals(other.getOrganizationContact())) return false; - } - if (!getTargetWorkloadsList().equals(other.getTargetWorkloadsList())) return false; - if (!getCustomerMotivation().equals(other.getCustomerMotivation())) return false; - if (hasFulfillmentTime() != other.hasFulfillmentTime()) return false; - if (hasFulfillmentTime()) { - if (!getFulfillmentTime().equals(other.getFulfillmentTime())) return false; - } - if (!getRegionCode().equals(other.getRegionCode())) return false; - if (!getOrderFormUri().equals(other.getOrderFormUri())) return false; - if (type_ != other.type_) return false; - if (hasSubmitTime() != other.hasSubmitTime()) return false; - if (hasSubmitTime()) { - if (!getSubmitTime().equals(other.getSubmitTime())) return false; - } - if (!getBillingId().equals(other.getBillingId())) return false; - if (!getExistingHardwareList().equals(other.getExistingHardwareList())) return false; - if (deploymentType_ != other.deploymentType_) return false; - if (hasActualInstallationDate() != other.hasActualInstallationDate()) return false; - if (hasActualInstallationDate()) { - if (!getActualInstallationDate().equals(other.getActualInstallationDate())) return false; - } - if (hasEstimatedInstallationDate() != other.hasEstimatedInstallationDate()) return false; - if (hasEstimatedInstallationDate()) { - if (!getEstimatedInstallationDate().equals(other.getEstimatedInstallationDate())) - return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + public static final int MIGRATION_FIELD_NUMBER = 23; + private boolean migration_ = false; + /** + * + * + *
    +   * Optional. Whether this order is a migration from customer's existing
    +   * infrastructure.
    +   * 
    + * + * bool migration = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The migration. + */ @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) + DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDisplayName().hashCode(); - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - } - if (hasUpdateTime()) { - hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getUpdateTime().hashCode(); - } - if (!internalGetLabels().getMap().isEmpty()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetLabels().hashCode(); - } - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - if (hasOrganizationContact()) { - hash = (37 * hash) + ORGANIZATION_CONTACT_FIELD_NUMBER; - hash = (53 * hash) + getOrganizationContact().hashCode(); - } - if (getTargetWorkloadsCount() > 0) { - hash = (37 * hash) + TARGET_WORKLOADS_FIELD_NUMBER; - hash = (53 * hash) + getTargetWorkloadsList().hashCode(); - } - hash = (37 * hash) + CUSTOMER_MOTIVATION_FIELD_NUMBER; - hash = (53 * hash) + getCustomerMotivation().hashCode(); - if (hasFulfillmentTime()) { - hash = (37 * hash) + FULFILLMENT_TIME_FIELD_NUMBER; - hash = (53 * hash) + getFulfillmentTime().hashCode(); - } - hash = (37 * hash) + REGION_CODE_FIELD_NUMBER; - hash = (53 * hash) + getRegionCode().hashCode(); - hash = (37 * hash) + ORDER_FORM_URI_FIELD_NUMBER; - hash = (53 * hash) + getOrderFormUri().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; - if (hasSubmitTime()) { - hash = (37 * hash) + SUBMIT_TIME_FIELD_NUMBER; - hash = (53 * hash) + getSubmitTime().hashCode(); - } - hash = (37 * hash) + BILLING_ID_FIELD_NUMBER; - hash = (53 * hash) + getBillingId().hashCode(); - if (getExistingHardwareCount() > 0) { - hash = (37 * hash) + EXISTING_HARDWARE_FIELD_NUMBER; - hash = (53 * hash) + getExistingHardwareList().hashCode(); - } - hash = (37 * hash) + DEPLOYMENT_TYPE_FIELD_NUMBER; - hash = (53 * hash) + deploymentType_; - if (hasActualInstallationDate()) { - hash = (37 * hash) + ACTUAL_INSTALLATION_DATE_FIELD_NUMBER; - hash = (53 * hash) + getActualInstallationDate().hashCode(); - } - if (hasEstimatedInstallationDate()) { - hash = (37 * hash) + ESTIMATED_INSTALLATION_DATE_FIELD_NUMBER; - hash = (53 * hash) + getEstimatedInstallationDate().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gdchardwaremanagement.v1alpha.Order parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gdchardwaremanagement.v1alpha.Order 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.gdchardwaremanagement.v1alpha.Order parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gdchardwaremanagement.v1alpha.Order parseFrom( - 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.gdchardwaremanagement.v1alpha.Order parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gdchardwaremanagement.v1alpha.Order parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gdchardwaremanagement.v1alpha.Order parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gdchardwaremanagement.v1alpha.Order 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.gdchardwaremanagement.v1alpha.Order parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gdchardwaremanagement.v1alpha.Order parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public boolean getMigration() { + return migration_; } - public static com.google.cloud.gdchardwaremanagement.v1alpha.Order parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + public static final int ACCEPTED_TIME_FIELD_NUMBER = 24; + private com.google.protobuf.Timestamp acceptedTime_; - public static com.google.cloud.gdchardwaremanagement.v1alpha.Order parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + /** + * + * + *
    +   * Output only. The time when the order was moved to ACCEPTED state.
    +   * 
    + * + * + * .google.protobuf.Timestamp accepted_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the acceptedTime field is set. + */ + @java.lang.Override + public boolean hasAcceptedTime() { + return ((bitField0_ & 0x00000200) != 0); } + /** + * + * + *
    +   * Output only. The time when the order was moved to ACCEPTED state.
    +   * 
    + * + * + * .google.protobuf.Timestamp accepted_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The acceptedTime. + */ @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); + public com.google.protobuf.Timestamp getAcceptedTime() { + return acceptedTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : acceptedTime_; } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); + /** + * + * + *
    +   * Output only. The time when the order was moved to ACCEPTED state.
    +   * 
    + * + * + * .google.protobuf.Timestamp accepted_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getAcceptedTimeOrBuilder() { + return acceptedTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : acceptedTime_; } - public static Builder newBuilder(com.google.cloud.gdchardwaremanagement.v1alpha.Order prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + public static final int REQUESTED_DATE_CHANGE_FIELD_NUMBER = 25; + private com.google.type.Date requestedDateChange_; + /** + * + * + *
    +   * Output only. The date to which the customer or Google wants to set the
    +   * scheduled installation date.
    +   * 
    + * + * + * .google.type.Date requested_date_change = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the requestedDateChange field is set. + */ @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + public boolean hasRequestedDateChange() { + return ((bitField0_ & 0x00000400) != 0); } + /** + * + * + *
    +   * Output only. The date to which the customer or Google wants to set the
    +   * scheduled installation date.
    +   * 
    + * + * + * .google.type.Date requested_date_change = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The requestedDateChange. + */ @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + public com.google.type.Date getRequestedDateChange() { + return requestedDateChange_ == null + ? com.google.type.Date.getDefaultInstance() + : requestedDateChange_; } /** * * *
    -   * An order for GDC hardware.
    +   * Output only. The date to which the customer or Google wants to set the
    +   * scheduled installation date.
        * 
    * - * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.Order} + * + * .google.type.Date requested_date_change = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.Order) + @java.lang.Override + public com.google.type.DateOrBuilder getRequestedDateChangeOrBuilder() { + return requestedDateChange_ == null + ? com.google.type.Date.getDefaultInstance() + : requestedDateChange_; + } + + public static final int VENDOR_NOTES_FIELD_NUMBER = 26; + + @SuppressWarnings("serial") + private volatile java.lang.Object vendorNotes_ = ""; + + /** + * + * + *
    +   * Output only. Notes for this order, provided by the vendor.
    +   * 
    + * + * string vendor_notes = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The vendorNotes. + */ + @java.lang.Override + public java.lang.String getVendorNotes() { + java.lang.Object ref = vendorNotes_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vendorNotes_ = s; + return s; + } + } + + /** + * + * + *
    +   * Output only. Notes for this order, provided by the vendor.
    +   * 
    + * + * string vendor_notes = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for vendorNotes. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVendorNotesBytes() { + java.lang.Object ref = vendorNotes_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vendorNotes_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VENDOR_CONTACT_FIELD_NUMBER = 27; + private com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact vendorContact_; + + /** + * + * + *
    +   * Output only. Contact information of the SI assigned to this order.
    +   * 
    + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact vendor_contact = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the vendorContact field is set. + */ + @java.lang.Override + public boolean hasVendorContact() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
    +   * Output only. Contact information of the SI assigned to this order.
    +   * 
    + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact vendor_contact = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The vendorContact. + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact getVendorContact() { + return vendorContact_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact.getDefaultInstance() + : vendorContact_; + } + + /** + * + * + *
    +   * Output only. Contact information of the SI assigned to this order.
    +   * 
    + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact vendor_contact = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContactOrBuilder + getVendorContactOrBuilder() { + return vendorContact_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact.getDefaultInstance() + : vendorContact_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getUpdateTime()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + if (state_ + != com.google.cloud.gdchardwaremanagement.v1alpha.Order.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, state_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(6, getOrganizationContact()); + } + for (int i = 0; i < targetWorkloads_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, targetWorkloads_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customerMotivation_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, customerMotivation_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(9, getFulfillmentTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(regionCode_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, regionCode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderFormUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, orderFormUri_); + } + if (type_ + != com.google.cloud.gdchardwaremanagement.v1alpha.Order.Type.TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(12, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, displayName_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(14, getSubmitTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(billingId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 15, billingId_); + } + for (int i = 0; i < existingHardware_.size(); i++) { + output.writeMessage(16, existingHardware_.get(i)); + } + if (deploymentType_ + != com.google.cloud.gdchardwaremanagement.v1alpha.Order.DeploymentType + .DEPLOYMENT_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(18, deploymentType_); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(19, getActualInstallationDate()); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(20, getEstimatedInstallationDate()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(21, getCustomerRequestedInstallationDate()); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(22, getEstimatedDeliveryDate()); + } + if (migration_ != false) { + output.writeBool(23, migration_); + } + if (((bitField0_ & 0x00000200) != 0)) { + output.writeMessage(24, getAcceptedTime()); + } + if (((bitField0_ & 0x00000400) != 0)) { + output.writeMessage(25, getRequestedDateChange()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vendorNotes_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 26, vendorNotes_); + } + if (((bitField0_ & 0x00000800) != 0)) { + output.writeMessage(27, getVendorContact()); + } + 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 (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + } + if (state_ + != com.google.cloud.gdchardwaremanagement.v1alpha.Order.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getOrganizationContact()); + } + { + int dataSize = 0; + for (int i = 0; i < targetWorkloads_.size(); i++) { + dataSize += computeStringSizeNoTag(targetWorkloads_.getRaw(i)); + } + size += dataSize; + size += 1 * getTargetWorkloadsList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customerMotivation_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, customerMotivation_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getFulfillmentTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(regionCode_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, regionCode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderFormUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, orderFormUri_); + } + if (type_ + != com.google.cloud.gdchardwaremanagement.v1alpha.Order.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, displayName_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getSubmitTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(billingId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, billingId_); + } + for (int i = 0; i < existingHardware_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(16, existingHardware_.get(i)); + } + if (deploymentType_ + != com.google.cloud.gdchardwaremanagement.v1alpha.Order.DeploymentType + .DEPLOYMENT_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(18, deploymentType_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(19, getActualInstallationDate()); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 20, getEstimatedInstallationDate()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 21, getCustomerRequestedInstallationDate()); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(22, getEstimatedDeliveryDate()); + } + if (migration_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(23, migration_); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(24, getAcceptedTime()); + } + if (((bitField0_ & 0x00000400) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(25, getRequestedDateChange()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vendorNotes_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(26, vendorNotes_); + } + if (((bitField0_ & 0x00000800) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(27, getVendorContact()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.gdchardwaremanagement.v1alpha.Order)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.Order other = + (com.google.cloud.gdchardwaremanagement.v1alpha.Order) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (state_ != other.state_) return false; + if (hasOrganizationContact() != other.hasOrganizationContact()) return false; + if (hasOrganizationContact()) { + if (!getOrganizationContact().equals(other.getOrganizationContact())) return false; + } + if (!getTargetWorkloadsList().equals(other.getTargetWorkloadsList())) return false; + if (!getCustomerMotivation().equals(other.getCustomerMotivation())) return false; + if (hasFulfillmentTime() != other.hasFulfillmentTime()) return false; + if (hasFulfillmentTime()) { + if (!getFulfillmentTime().equals(other.getFulfillmentTime())) return false; + } + if (hasCustomerRequestedInstallationDate() != other.hasCustomerRequestedInstallationDate()) + return false; + if (hasCustomerRequestedInstallationDate()) { + if (!getCustomerRequestedInstallationDate() + .equals(other.getCustomerRequestedInstallationDate())) return false; + } + if (!getRegionCode().equals(other.getRegionCode())) return false; + if (!getOrderFormUri().equals(other.getOrderFormUri())) return false; + if (type_ != other.type_) return false; + if (hasSubmitTime() != other.hasSubmitTime()) return false; + if (hasSubmitTime()) { + if (!getSubmitTime().equals(other.getSubmitTime())) return false; + } + if (!getBillingId().equals(other.getBillingId())) return false; + if (!getExistingHardwareList().equals(other.getExistingHardwareList())) return false; + if (deploymentType_ != other.deploymentType_) return false; + if (hasActualInstallationDate() != other.hasActualInstallationDate()) return false; + if (hasActualInstallationDate()) { + if (!getActualInstallationDate().equals(other.getActualInstallationDate())) return false; + } + if (hasEstimatedInstallationDate() != other.hasEstimatedInstallationDate()) return false; + if (hasEstimatedInstallationDate()) { + if (!getEstimatedInstallationDate().equals(other.getEstimatedInstallationDate())) + return false; + } + if (hasEstimatedDeliveryDate() != other.hasEstimatedDeliveryDate()) return false; + if (hasEstimatedDeliveryDate()) { + if (!getEstimatedDeliveryDate().equals(other.getEstimatedDeliveryDate())) return false; + } + if (getMigration() != other.getMigration()) return false; + if (hasAcceptedTime() != other.hasAcceptedTime()) return false; + if (hasAcceptedTime()) { + if (!getAcceptedTime().equals(other.getAcceptedTime())) return false; + } + if (hasRequestedDateChange() != other.hasRequestedDateChange()) return false; + if (hasRequestedDateChange()) { + if (!getRequestedDateChange().equals(other.getRequestedDateChange())) return false; + } + if (!getVendorNotes().equals(other.getVendorNotes())) return false; + if (hasVendorContact() != other.hasVendorContact()) return false; + if (hasVendorContact()) { + if (!getVendorContact().equals(other.getVendorContact())) 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) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (hasOrganizationContact()) { + hash = (37 * hash) + ORGANIZATION_CONTACT_FIELD_NUMBER; + hash = (53 * hash) + getOrganizationContact().hashCode(); + } + if (getTargetWorkloadsCount() > 0) { + hash = (37 * hash) + TARGET_WORKLOADS_FIELD_NUMBER; + hash = (53 * hash) + getTargetWorkloadsList().hashCode(); + } + hash = (37 * hash) + CUSTOMER_MOTIVATION_FIELD_NUMBER; + hash = (53 * hash) + getCustomerMotivation().hashCode(); + if (hasFulfillmentTime()) { + hash = (37 * hash) + FULFILLMENT_TIME_FIELD_NUMBER; + hash = (53 * hash) + getFulfillmentTime().hashCode(); + } + if (hasCustomerRequestedInstallationDate()) { + hash = (37 * hash) + CUSTOMER_REQUESTED_INSTALLATION_DATE_FIELD_NUMBER; + hash = (53 * hash) + getCustomerRequestedInstallationDate().hashCode(); + } + hash = (37 * hash) + REGION_CODE_FIELD_NUMBER; + hash = (53 * hash) + getRegionCode().hashCode(); + hash = (37 * hash) + ORDER_FORM_URI_FIELD_NUMBER; + hash = (53 * hash) + getOrderFormUri().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + if (hasSubmitTime()) { + hash = (37 * hash) + SUBMIT_TIME_FIELD_NUMBER; + hash = (53 * hash) + getSubmitTime().hashCode(); + } + hash = (37 * hash) + BILLING_ID_FIELD_NUMBER; + hash = (53 * hash) + getBillingId().hashCode(); + if (getExistingHardwareCount() > 0) { + hash = (37 * hash) + EXISTING_HARDWARE_FIELD_NUMBER; + hash = (53 * hash) + getExistingHardwareList().hashCode(); + } + hash = (37 * hash) + DEPLOYMENT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + deploymentType_; + if (hasActualInstallationDate()) { + hash = (37 * hash) + ACTUAL_INSTALLATION_DATE_FIELD_NUMBER; + hash = (53 * hash) + getActualInstallationDate().hashCode(); + } + if (hasEstimatedInstallationDate()) { + hash = (37 * hash) + ESTIMATED_INSTALLATION_DATE_FIELD_NUMBER; + hash = (53 * hash) + getEstimatedInstallationDate().hashCode(); + } + if (hasEstimatedDeliveryDate()) { + hash = (37 * hash) + ESTIMATED_DELIVERY_DATE_FIELD_NUMBER; + hash = (53 * hash) + getEstimatedDeliveryDate().hashCode(); + } + hash = (37 * hash) + MIGRATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getMigration()); + if (hasAcceptedTime()) { + hash = (37 * hash) + ACCEPTED_TIME_FIELD_NUMBER; + hash = (53 * hash) + getAcceptedTime().hashCode(); + } + if (hasRequestedDateChange()) { + hash = (37 * hash) + REQUESTED_DATE_CHANGE_FIELD_NUMBER; + hash = (53 * hash) + getRequestedDateChange().hashCode(); + } + hash = (37 * hash) + VENDOR_NOTES_FIELD_NUMBER; + hash = (53 * hash) + getVendorNotes().hashCode(); + if (hasVendorContact()) { + hash = (37 * hash) + VENDOR_CONTACT_FIELD_NUMBER; + hash = (53 * hash) + getVendorContact().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Order parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Order 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.gdchardwaremanagement.v1alpha.Order parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Order parseFrom( + 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.gdchardwaremanagement.v1alpha.Order parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Order parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Order parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Order 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.gdchardwaremanagement.v1alpha.Order parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Order 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.gdchardwaremanagement.v1alpha.Order parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Order 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.gdchardwaremanagement.v1alpha.Order prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
    +   * An order for GDC hardware.
    +   * 
    + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.Order} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.Order) com.google.cloud.gdchardwaremanagement.v1alpha.OrderOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Order_descriptor; } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 4: - return internalGetLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Order_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.Order.class, + com.google.cloud.gdchardwaremanagement.v1alpha.Order.Builder.class); + } + + // Construct using com.google.cloud.gdchardwaremanagement.v1alpha.Order.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + getOrganizationContactFieldBuilder(); + getFulfillmentTimeFieldBuilder(); + getCustomerRequestedInstallationDateFieldBuilder(); + getSubmitTimeFieldBuilder(); + getExistingHardwareFieldBuilder(); + getActualInstallationDateFieldBuilder(); + getEstimatedInstallationDateFieldBuilder(); + getEstimatedDeliveryDateFieldBuilder(); + getAcceptedTimeFieldBuilder(); + getRequestedDateChangeFieldBuilder(); + getVendorContactFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + state_ = 0; + organizationContact_ = null; + if (organizationContactBuilder_ != null) { + organizationContactBuilder_.dispose(); + organizationContactBuilder_ = null; + } + targetWorkloads_ = com.google.protobuf.LazyStringArrayList.emptyList(); + customerMotivation_ = ""; + fulfillmentTime_ = null; + if (fulfillmentTimeBuilder_ != null) { + fulfillmentTimeBuilder_.dispose(); + fulfillmentTimeBuilder_ = null; + } + customerRequestedInstallationDate_ = null; + if (customerRequestedInstallationDateBuilder_ != null) { + customerRequestedInstallationDateBuilder_.dispose(); + customerRequestedInstallationDateBuilder_ = null; + } + regionCode_ = ""; + orderFormUri_ = ""; + type_ = 0; + submitTime_ = null; + if (submitTimeBuilder_ != null) { + submitTimeBuilder_.dispose(); + submitTimeBuilder_ = null; + } + billingId_ = ""; + if (existingHardwareBuilder_ == null) { + existingHardware_ = java.util.Collections.emptyList(); + } else { + existingHardware_ = null; + existingHardwareBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00010000); + deploymentType_ = 0; + actualInstallationDate_ = null; + if (actualInstallationDateBuilder_ != null) { + actualInstallationDateBuilder_.dispose(); + actualInstallationDateBuilder_ = null; + } + estimatedInstallationDate_ = null; + if (estimatedInstallationDateBuilder_ != null) { + estimatedInstallationDateBuilder_.dispose(); + estimatedInstallationDateBuilder_ = null; + } + estimatedDeliveryDate_ = null; + if (estimatedDeliveryDateBuilder_ != null) { + estimatedDeliveryDateBuilder_.dispose(); + estimatedDeliveryDateBuilder_ = null; + } + migration_ = false; + acceptedTime_ = null; + if (acceptedTimeBuilder_ != null) { + acceptedTimeBuilder_.dispose(); + acceptedTimeBuilder_ = null; + } + requestedDateChange_ = null; + if (requestedDateChangeBuilder_ != null) { + requestedDateChangeBuilder_.dispose(); + requestedDateChangeBuilder_ = null; + } + vendorNotes_ = ""; + vendorContact_ = null; + if (vendorContactBuilder_ != null) { + vendorContactBuilder_.dispose(); + vendorContactBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Order_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Order getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.Order.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Order build() { + com.google.cloud.gdchardwaremanagement.v1alpha.Order result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Order buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.Order result = + new com.google.cloud.gdchardwaremanagement.v1alpha.Order(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.gdchardwaremanagement.v1alpha.Order result) { + if (existingHardwareBuilder_ == null) { + if (((bitField0_ & 0x00010000) != 0)) { + existingHardware_ = java.util.Collections.unmodifiableList(existingHardware_); + bitField0_ = (bitField0_ & ~0x00010000); + } + result.existingHardware_ = existingHardware_; + } else { + result.existingHardware_ = existingHardwareBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.gdchardwaremanagement.v1alpha.Order result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.organizationContact_ = + organizationContactBuilder_ == null + ? organizationContact_ + : organizationContactBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + targetWorkloads_.makeImmutable(); + result.targetWorkloads_ = targetWorkloads_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.customerMotivation_ = customerMotivation_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.fulfillmentTime_ = + fulfillmentTimeBuilder_ == null ? fulfillmentTime_ : fulfillmentTimeBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.customerRequestedInstallationDate_ = + customerRequestedInstallationDateBuilder_ == null + ? customerRequestedInstallationDate_ + : customerRequestedInstallationDateBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.regionCode_ = regionCode_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.orderFormUri_ = orderFormUri_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.billingId_ = billingId_; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.deploymentType_ = deploymentType_; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.actualInstallationDate_ = + actualInstallationDateBuilder_ == null + ? actualInstallationDate_ + : actualInstallationDateBuilder_.build(); + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.estimatedInstallationDate_ = + estimatedInstallationDateBuilder_ == null + ? estimatedInstallationDate_ + : estimatedInstallationDateBuilder_.build(); + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.estimatedDeliveryDate_ = + estimatedDeliveryDateBuilder_ == null + ? estimatedDeliveryDate_ + : estimatedDeliveryDateBuilder_.build(); + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00200000) != 0)) { + result.migration_ = migration_; + } + if (((from_bitField0_ & 0x00400000) != 0)) { + result.acceptedTime_ = + acceptedTimeBuilder_ == null ? acceptedTime_ : acceptedTimeBuilder_.build(); + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x00800000) != 0)) { + result.requestedDateChange_ = + requestedDateChangeBuilder_ == null + ? requestedDateChange_ + : requestedDateChangeBuilder_.build(); + to_bitField0_ |= 0x00000400; + } + if (((from_bitField0_ & 0x01000000) != 0)) { + result.vendorNotes_ = vendorNotes_; + } + if (((from_bitField0_ & 0x02000000) != 0)) { + result.vendorContact_ = + vendorContactBuilder_ == null ? vendorContact_ : vendorContactBuilder_.build(); + to_bitField0_ |= 0x00000800; + } + 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.gdchardwaremanagement.v1alpha.Order) { + return mergeFrom((com.google.cloud.gdchardwaremanagement.v1alpha.Order) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gdchardwaremanagement.v1alpha.Order other) { + if (other == com.google.cloud.gdchardwaremanagement.v1alpha.Order.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000010; + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.hasOrganizationContact()) { + mergeOrganizationContact(other.getOrganizationContact()); + } + if (!other.targetWorkloads_.isEmpty()) { + if (targetWorkloads_.isEmpty()) { + targetWorkloads_ = other.targetWorkloads_; + bitField0_ |= 0x00000080; + } else { + ensureTargetWorkloadsIsMutable(); + targetWorkloads_.addAll(other.targetWorkloads_); + } + onChanged(); + } + if (!other.getCustomerMotivation().isEmpty()) { + customerMotivation_ = other.customerMotivation_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (other.hasFulfillmentTime()) { + mergeFulfillmentTime(other.getFulfillmentTime()); + } + if (other.hasCustomerRequestedInstallationDate()) { + mergeCustomerRequestedInstallationDate(other.getCustomerRequestedInstallationDate()); + } + if (!other.getRegionCode().isEmpty()) { + regionCode_ = other.regionCode_; + bitField0_ |= 0x00000800; + onChanged(); + } + if (!other.getOrderFormUri().isEmpty()) { + orderFormUri_ = other.orderFormUri_; + bitField0_ |= 0x00001000; + onChanged(); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.hasSubmitTime()) { + mergeSubmitTime(other.getSubmitTime()); + } + if (!other.getBillingId().isEmpty()) { + billingId_ = other.billingId_; + bitField0_ |= 0x00008000; + onChanged(); + } + if (existingHardwareBuilder_ == null) { + if (!other.existingHardware_.isEmpty()) { + if (existingHardware_.isEmpty()) { + existingHardware_ = other.existingHardware_; + bitField0_ = (bitField0_ & ~0x00010000); + } else { + ensureExistingHardwareIsMutable(); + existingHardware_.addAll(other.existingHardware_); + } + onChanged(); + } + } else { + if (!other.existingHardware_.isEmpty()) { + if (existingHardwareBuilder_.isEmpty()) { + existingHardwareBuilder_.dispose(); + existingHardwareBuilder_ = null; + existingHardware_ = other.existingHardware_; + bitField0_ = (bitField0_ & ~0x00010000); + existingHardwareBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getExistingHardwareFieldBuilder() + : null; + } else { + existingHardwareBuilder_.addAllMessages(other.existingHardware_); + } + } + } + if (other.deploymentType_ != 0) { + setDeploymentTypeValue(other.getDeploymentTypeValue()); + } + if (other.hasActualInstallationDate()) { + mergeActualInstallationDate(other.getActualInstallationDate()); + } + if (other.hasEstimatedInstallationDate()) { + mergeEstimatedInstallationDate(other.getEstimatedInstallationDate()); + } + if (other.hasEstimatedDeliveryDate()) { + mergeEstimatedDeliveryDate(other.getEstimatedDeliveryDate()); + } + if (other.getMigration() != false) { + setMigration(other.getMigration()); + } + if (other.hasAcceptedTime()) { + mergeAcceptedTime(other.getAcceptedTime()); + } + if (other.hasRequestedDateChange()) { + mergeRequestedDateChange(other.getRequestedDateChange()); + } + if (!other.getVendorNotes().isEmpty()) { + vendorNotes_ = other.vendorNotes_; + bitField0_ |= 0x01000000; + onChanged(); + } + if (other.hasVendorContact()) { + mergeVendorContact(other.getVendorContact()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 40: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 40 + case 50: + { + input.readMessage( + getOrganizationContactFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTargetWorkloadsIsMutable(); + targetWorkloads_.add(s); + break; + } // case 58 + case 66: + { + customerMotivation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 66 + case 74: + { + input.readMessage(getFulfillmentTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 74 + case 82: + { + regionCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 82 + case 90: + { + orderFormUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case 90 + case 96: + { + type_ = input.readEnum(); + bitField0_ |= 0x00002000; + break; + } // case 96 + case 106: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 106 + case 114: + { + input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00004000; + break; + } // case 114 + case 122: + { + billingId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00008000; + break; + } // case 122 + case 130: + { + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation m = + input.readMessage( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation.parser(), + extensionRegistry); + if (existingHardwareBuilder_ == null) { + ensureExistingHardwareIsMutable(); + existingHardware_.add(m); + } else { + existingHardwareBuilder_.addMessage(m); + } + break; + } // case 130 + case 144: + { + deploymentType_ = input.readEnum(); + bitField0_ |= 0x00020000; + break; + } // case 144 + case 154: + { + input.readMessage( + getActualInstallationDateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00040000; + break; + } // case 154 + case 162: + { + input.readMessage( + getEstimatedInstallationDateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00080000; + break; + } // case 162 + case 170: + { + input.readMessage( + getCustomerRequestedInstallationDateFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 170 + case 178: + { + input.readMessage( + getEstimatedDeliveryDateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00100000; + break; + } // case 178 + case 184: + { + migration_ = input.readBool(); + bitField0_ |= 0x00200000; + break; + } // case 184 + case 194: + { + input.readMessage(getAcceptedTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00400000; + break; + } // case 194 + case 202: + { + input.readMessage( + getRequestedDateChangeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00800000; + break; + } // case 202 + case 210: + { + vendorNotes_ = input.readStringRequireUtf8(); + bitField0_ |= 0x01000000; + break; + } // case 210 + case 218: + { + input.readMessage(getVendorContactFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x02000000; + break; + } // case 218 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
    +     * Identifier. Name of this order.
    +     * Format: `projects/{project}/locations/{location}/orders/{order}`
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Identifier. Name of this order.
    +     * Format: `projects/{project}/locations/{location}/orders/{order}`
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Identifier. Name of this order.
    +     * Format: `projects/{project}/locations/{location}/orders/{order}`
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Identifier. Name of this order.
    +     * Format: `projects/{project}/locations/{location}/orders/{order}`
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Identifier. Name of this order.
    +     * Format: `projects/{project}/locations/{location}/orders/{order}`
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
    +     * Optional. Display name of this order.
    +     * 
    + * + * string display_name = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. Display name of this order.
    +     * 
    + * + * string display_name = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. Display name of this order.
    +     * 
    + * + * string display_name = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Display name of this order.
    +     * 
    + * + * string display_name = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Display name of this order.
    +     * 
    + * + * string display_name = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
    +     * Output only. Time when this order was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +     * Output only. Time when this order was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 4: - return internalGetMutableLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); + /** + * + * + *
    +     * Output only. Time when this order was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Time when this order was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Time when this order was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Output only. Time when this order was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Time when this order was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Output only. Time when this order was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
    +     * Output only. Time when this order was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
    +     * Output only. Time when this order was last updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
    +     * Output only. Time when this order was last updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); } } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto - .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Order_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gdchardwaremanagement.v1alpha.Order.class, - com.google.cloud.gdchardwaremanagement.v1alpha.Order.Builder.class); - } - - // Construct using com.google.cloud.gdchardwaremanagement.v1alpha.Order.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); + /** + * + * + *
    +     * Output only. Time when this order was last updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); + /** + * + * + *
    +     * Output only. Time when this order was last updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getCreateTimeFieldBuilder(); - getUpdateTimeFieldBuilder(); - getOrganizationContactFieldBuilder(); - getFulfillmentTimeFieldBuilder(); - getSubmitTimeFieldBuilder(); - getExistingHardwareFieldBuilder(); - getActualInstallationDateFieldBuilder(); - getEstimatedInstallationDateFieldBuilder(); + /** + * + * + *
    +     * Output only. Time when this order was last updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); } + return this; } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - displayName_ = ""; - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; - } + /** + * + * + *
    +     * Output only. Time when this order was last updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000008); updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - internalGetMutableLabels().clear(); - state_ = 0; - organizationContact_ = null; - if (organizationContactBuilder_ != null) { - organizationContactBuilder_.dispose(); - organizationContactBuilder_ = null; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Time when this order was last updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Output only. Time when this order was last updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } - targetWorkloads_ = com.google.protobuf.LazyStringArrayList.emptyList(); - customerMotivation_ = ""; - fulfillmentTime_ = null; - if (fulfillmentTimeBuilder_ != null) { - fulfillmentTimeBuilder_.dispose(); - fulfillmentTimeBuilder_ = null; + } + + /** + * + * + *
    +     * Output only. Time when this order was last updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; } - regionCode_ = ""; - orderFormUri_ = ""; - type_ = 0; - submitTime_ = null; - if (submitTimeBuilder_ != null) { - submitTimeBuilder_.dispose(); - submitTimeBuilder_ = null; + return updateTimeBuilder_; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } - billingId_ = ""; - if (existingHardwareBuilder_ == null) { - existingHardware_ = java.util.Collections.emptyList(); - } else { - existingHardware_ = null; - existingHardwareBuilder_.clear(); + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } - bitField0_ = (bitField0_ & ~0x00008000); - deploymentType_ = 0; - actualInstallationDate_ = null; - if (actualInstallationDateBuilder_ != null) { - actualInstallationDateBuilder_.dispose(); - actualInstallationDateBuilder_ = null; + if (!labels_.isMutable()) { + labels_ = labels_.copy(); } - estimatedInstallationDate_ = null; - if (estimatedInstallationDateBuilder_ != null) { - estimatedInstallationDateBuilder_.dispose(); - estimatedInstallationDateBuilder_ = null; + bitField0_ |= 0x00000010; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
    +     * Optional. Labels associated with this order as key value pairs.
    +     * For more information about labels, see [Create and manage
    +     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
    +     * 
    + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - return this; + return internalGetLabels().getMap().containsKey(key); } + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto - .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Order_descriptor; + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); } + /** + * + * + *
    +     * Optional. Labels associated with this order as key value pairs.
    +     * For more information about labels, see [Create and manage
    +     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
    +     * 
    + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ @java.lang.Override - public com.google.cloud.gdchardwaremanagement.v1alpha.Order getDefaultInstanceForType() { - return com.google.cloud.gdchardwaremanagement.v1alpha.Order.getDefaultInstance(); + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); } + /** + * + * + *
    +     * Optional. Labels associated with this order as key value pairs.
    +     * For more information about labels, see [Create and manage
    +     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
    +     * 
    + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ @java.lang.Override - public com.google.cloud.gdchardwaremanagement.v1alpha.Order build() { - com.google.cloud.gdchardwaremanagement.v1alpha.Order result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); } - return result; + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; } + /** + * + * + *
    +     * Optional. Labels associated with this order as key value pairs.
    +     * For more information about labels, see [Create and manage
    +     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
    +     * 
    + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ @java.lang.Override - public com.google.cloud.gdchardwaremanagement.v1alpha.Order buildPartial() { - com.google.cloud.gdchardwaremanagement.v1alpha.Order result = - new com.google.cloud.gdchardwaremanagement.v1alpha.Order(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - onBuilt(); - return result; + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); } - private void buildPartialRepeatedFields( - com.google.cloud.gdchardwaremanagement.v1alpha.Order result) { - if (existingHardwareBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0)) { - existingHardware_ = java.util.Collections.unmodifiableList(existingHardware_); - bitField0_ = (bitField0_ & ~0x00008000); - } - result.existingHardware_ = existingHardware_; - } else { - result.existingHardware_ = existingHardwareBuilder_.build(); - } + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000010); + internalGetMutableLabels().getMutableMap().clear(); + return this; } - private void buildPartial0(com.google.cloud.gdchardwaremanagement.v1alpha.Order result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.displayName_ = displayName_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.state_ = state_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.organizationContact_ = - organizationContactBuilder_ == null - ? organizationContact_ - : organizationContactBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - targetWorkloads_.makeImmutable(); - result.targetWorkloads_ = targetWorkloads_; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.customerMotivation_ = customerMotivation_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.fulfillmentTime_ = - fulfillmentTimeBuilder_ == null ? fulfillmentTime_ : fulfillmentTimeBuilder_.build(); - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.regionCode_ = regionCode_; - } - if (((from_bitField0_ & 0x00000800) != 0)) { - result.orderFormUri_ = orderFormUri_; - } - if (((from_bitField0_ & 0x00001000) != 0)) { - result.type_ = type_; - } - if (((from_bitField0_ & 0x00002000) != 0)) { - result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build(); - to_bitField0_ |= 0x00000010; - } - if (((from_bitField0_ & 0x00004000) != 0)) { - result.billingId_ = billingId_; - } - if (((from_bitField0_ & 0x00010000) != 0)) { - result.deploymentType_ = deploymentType_; + /** + * + * + *
    +     * Optional. Labels associated with this order as key value pairs.
    +     * For more information about labels, see [Create and manage
    +     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
    +     * 
    + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - if (((from_bitField0_ & 0x00020000) != 0)) { - result.actualInstallationDate_ = - actualInstallationDateBuilder_ == null - ? actualInstallationDate_ - : actualInstallationDateBuilder_.build(); - to_bitField0_ |= 0x00000020; + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000010; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
    +     * Optional. Labels associated with this order as key value pairs.
    +     * For more information about labels, see [Create and manage
    +     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
    +     * 
    + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); } - if (((from_bitField0_ & 0x00040000) != 0)) { - result.estimatedInstallationDate_ = - estimatedInstallationDateBuilder_ == null - ? estimatedInstallationDate_ - : estimatedInstallationDateBuilder_.build(); - to_bitField0_ |= 0x00000040; + if (value == null) { + throw new NullPointerException("map value"); } - result.bitField0_ |= to_bitField0_; + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000010; + return this; + } + + /** + * + * + *
    +     * Optional. Labels associated with this order as key value pairs.
    +     * For more information about labels, see [Create and manage
    +     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
    +     * 
    + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000010; + return this; } + private int state_ = 0; + + /** + * + * + *
    +     * Output only. State of this order. On order creation, state will be set to
    +     * DRAFT.
    +     * 
    + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Order.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ @java.lang.Override - public Builder clone() { - return super.clone(); + public int getStateValue() { + return state_; + } + + /** + * + * + *
    +     * Output only. State of this order. On order creation, state will be set to
    +     * DRAFT.
    +     * 
    + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Order.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; } + /** + * + * + *
    +     * Output only. State of this order. On order creation, state will be set to
    +     * DRAFT.
    +     * 
    + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Order.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); + public com.google.cloud.gdchardwaremanagement.v1alpha.Order.State getState() { + com.google.cloud.gdchardwaremanagement.v1alpha.Order.State result = + com.google.cloud.gdchardwaremanagement.v1alpha.Order.State.forNumber(state_); + return result == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Order.State.UNRECOGNIZED + : result; } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + /** + * + * + *
    +     * Output only. State of this order. On order creation, state will be set to
    +     * DRAFT.
    +     * 
    + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Order.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.gdchardwaremanagement.v1alpha.Order.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + state_ = value.getNumber(); + onChanged(); + return this; } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + /** + * + * + *
    +     * Output only. State of this order. On order creation, state will be set to
    +     * DRAFT.
    +     * 
    + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Order.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000020); + state_ = 0; + 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 com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organizationContact_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact, + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContactOrBuilder> + organizationContactBuilder_; - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + /** + * + * + *
    +     * Required. Customer contact information.
    +     * 
    + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the organizationContact field is set. + */ + public boolean hasOrganizationContact() { + return ((bitField0_ & 0x00000040) != 0); } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.Order) { - return mergeFrom((com.google.cloud.gdchardwaremanagement.v1alpha.Order) other); + /** + * + * + *
    +     * Required. Customer contact information.
    +     * 
    + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The organizationContact. + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact + getOrganizationContact() { + if (organizationContactBuilder_ == null) { + return organizationContact_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact + .getDefaultInstance() + : organizationContact_; } else { - super.mergeFrom(other); - return this; + return organizationContactBuilder_.getMessage(); } } - public Builder mergeFrom(com.google.cloud.gdchardwaremanagement.v1alpha.Order other) { - if (other == com.google.cloud.gdchardwaremanagement.v1alpha.Order.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasUpdateTime()) { - mergeUpdateTime(other.getUpdateTime()); - } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - bitField0_ |= 0x00000010; - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - if (other.hasOrganizationContact()) { - mergeOrganizationContact(other.getOrganizationContact()); - } - if (!other.targetWorkloads_.isEmpty()) { - if (targetWorkloads_.isEmpty()) { - targetWorkloads_ = other.targetWorkloads_; - bitField0_ |= 0x00000080; - } else { - ensureTargetWorkloadsIsMutable(); - targetWorkloads_.addAll(other.targetWorkloads_); - } - onChanged(); - } - if (!other.getCustomerMotivation().isEmpty()) { - customerMotivation_ = other.customerMotivation_; - bitField0_ |= 0x00000100; - onChanged(); - } - if (other.hasFulfillmentTime()) { - mergeFulfillmentTime(other.getFulfillmentTime()); - } - if (!other.getRegionCode().isEmpty()) { - regionCode_ = other.regionCode_; - bitField0_ |= 0x00000400; - onChanged(); - } - if (!other.getOrderFormUri().isEmpty()) { - orderFormUri_ = other.orderFormUri_; - bitField0_ |= 0x00000800; - onChanged(); - } - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); - } - if (other.hasSubmitTime()) { - mergeSubmitTime(other.getSubmitTime()); - } - if (!other.getBillingId().isEmpty()) { - billingId_ = other.billingId_; - bitField0_ |= 0x00004000; - onChanged(); - } - if (existingHardwareBuilder_ == null) { - if (!other.existingHardware_.isEmpty()) { - if (existingHardware_.isEmpty()) { - existingHardware_ = other.existingHardware_; - bitField0_ = (bitField0_ & ~0x00008000); - } else { - ensureExistingHardwareIsMutable(); - existingHardware_.addAll(other.existingHardware_); - } - onChanged(); - } - } else { - if (!other.existingHardware_.isEmpty()) { - if (existingHardwareBuilder_.isEmpty()) { - existingHardwareBuilder_.dispose(); - existingHardwareBuilder_ = null; - existingHardware_ = other.existingHardware_; - bitField0_ = (bitField0_ & ~0x00008000); - existingHardwareBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getExistingHardwareFieldBuilder() - : null; - } else { - existingHardwareBuilder_.addAllMessages(other.existingHardware_); - } - } - } - if (other.deploymentType_ != 0) { - setDeploymentTypeValue(other.getDeploymentTypeValue()); - } - if (other.hasActualInstallationDate()) { - mergeActualInstallationDate(other.getActualInstallationDate()); - } - if (other.hasEstimatedInstallationDate()) { - mergeEstimatedInstallationDate(other.getEstimatedInstallationDate()); + /** + * + * + *
    +     * Required. Customer contact information.
    +     * 
    + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setOrganizationContact( + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact value) { + if (organizationContactBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + organizationContact_ = value; + } else { + organizationContactBuilder_.setMessage(value); } - this.mergeUnknownFields(other.getUnknownFields()); + bitField0_ |= 0x00000040; onChanged(); return this; } - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); + /** + * + * + *
    +     * Required. Customer contact information.
    +     * 
    + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setOrganizationContact( + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact.Builder + builderForValue) { + if (organizationContactBuilder_ == null) { + organizationContact_ = builderForValue.build(); + } else { + organizationContactBuilder_.setMessage(builderForValue.build()); } - 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: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 18 - case 26: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 26 - case 34: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000010; - break; - } // case 34 - case 40: - { - state_ = input.readEnum(); - bitField0_ |= 0x00000020; - break; - } // case 40 - case 50: - { - input.readMessage( - getOrganizationContactFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 50 - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureTargetWorkloadsIsMutable(); - targetWorkloads_.add(s); - break; - } // case 58 - case 66: - { - customerMotivation_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 66 - case 74: - { - input.readMessage(getFulfillmentTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 74 - case 82: - { - regionCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000400; - break; - } // case 82 - case 90: - { - orderFormUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000800; - break; - } // case 90 - case 96: - { - type_ = input.readEnum(); - bitField0_ |= 0x00001000; - break; - } // case 96 - case 106: - { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 106 - case 114: - { - input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00002000; - break; - } // case 114 - case 122: - { - billingId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00004000; - break; - } // case 122 - case 130: - { - com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation m = - input.readMessage( - com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation.parser(), - extensionRegistry); - if (existingHardwareBuilder_ == null) { - ensureExistingHardwareIsMutable(); - existingHardware_.add(m); - } else { - existingHardwareBuilder_.addMessage(m); - } - break; - } // case 130 - case 144: - { - deploymentType_ = input.readEnum(); - bitField0_ |= 0x00010000; - break; - } // case 144 - case 154: - { - input.readMessage( - getActualInstallationDateFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00020000; - break; - } // case 154 - case 162: - { - input.readMessage( - getEstimatedInstallationDateFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00040000; - break; - } // case 162 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally + bitField0_ |= 0x00000040; + onChanged(); return this; } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** * * *
    -     * Identifier. Name of this order.
    -     * Format: `projects/{project}/locations/{location}/orders/{order}`
    +     * Required. Customer contact information.
          * 
    * - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * - * @return The name. + * + * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ - 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; + public Builder mergeOrganizationContact( + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact value) { + if (organizationContactBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && organizationContact_ != null + && organizationContact_ + != com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact + .getDefaultInstance()) { + getOrganizationContactBuilder().mergeFrom(value); + } else { + organizationContact_ = value; + } } else { - return (java.lang.String) ref; + organizationContactBuilder_.mergeFrom(value); + } + if (organizationContact_ != null) { + bitField0_ |= 0x00000040; + onChanged(); } + return this; } /** * * *
    -     * Identifier. Name of this order.
    -     * Format: `projects/{project}/locations/{location}/orders/{order}`
    +     * Required. Customer contact information.
          * 
    * - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * - * @return The bytes for name. + * + * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ - 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; + public Builder clearOrganizationContact() { + bitField0_ = (bitField0_ & ~0x00000040); + organizationContact_ = null; + if (organizationContactBuilder_ != null) { + organizationContactBuilder_.dispose(); + organizationContactBuilder_ = null; } + onChanged(); + return this; } /** * * *
    -     * Identifier. Name of this order.
    -     * Format: `projects/{project}/locations/{location}/orders/{order}`
    +     * Required. Customer contact information.
          * 
    * - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * - * @param value The name to set. - * @return This builder for chaining. + * + * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - name_ = value; - bitField0_ |= 0x00000001; + public com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact.Builder + getOrganizationContactBuilder() { + bitField0_ |= 0x00000040; onChanged(); - return this; + return getOrganizationContactFieldBuilder().getBuilder(); } /** * * *
    -     * Identifier. Name of this order.
    -     * Format: `projects/{project}/locations/{location}/orders/{order}`
    +     * Required. Customer contact information.
          * 
    * - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * - * @return This builder for chaining. + * + * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; + public com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContactOrBuilder + getOrganizationContactOrBuilder() { + if (organizationContactBuilder_ != null) { + return organizationContactBuilder_.getMessageOrBuilder(); + } else { + return organizationContact_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact + .getDefaultInstance() + : organizationContact_; + } } /** * * *
    -     * Identifier. Name of this order.
    -     * Format: `projects/{project}/locations/{location}/orders/{order}`
    +     * Required. Customer contact information.
          * 
    * - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * - * @param value The bytes for name to set. - * @return This builder for chaining. + * + * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact, + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContactOrBuilder> + getOrganizationContactFieldBuilder() { + if (organizationContactBuilder_ == null) { + organizationContactBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact, + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContactOrBuilder>( + getOrganizationContact(), getParentForChildren(), isClean()); + organizationContact_ = null; } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + return organizationContactBuilder_; } - private java.lang.Object displayName_ = ""; + private com.google.protobuf.LazyStringArrayList targetWorkloads_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureTargetWorkloadsIsMutable() { + if (!targetWorkloads_.isModifiable()) { + targetWorkloads_ = new com.google.protobuf.LazyStringArrayList(targetWorkloads_); + } + bitField0_ |= 0x00000080; + } /** * * *
    -     * Optional. Display name of this order.
    +     * Optional. Customer specified workloads of interest targeted by this order.
    +     * This must contain <= 20 elements and the length of each element must be <=
    +     * 50 characters.
          * 
    * - * string display_name = 13 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string target_workloads = 7 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The displayName. + * @return A list containing the targetWorkloads. */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } + public com.google.protobuf.ProtocolStringList getTargetWorkloadsList() { + targetWorkloads_.makeImmutable(); + return targetWorkloads_; } /** * * *
    -     * Optional. Display name of this order.
    +     * Optional. Customer specified workloads of interest targeted by this order.
    +     * This must contain <= 20 elements and the length of each element must be <=
    +     * 50 characters.
          * 
    * - * string display_name = 13 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string target_workloads = 7 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for displayName. + * @return The count of targetWorkloads. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public int getTargetWorkloadsCount() { + return targetWorkloads_.size(); } /** * * *
    -     * Optional. Display name of this order.
    +     * Optional. Customer specified workloads of interest targeted by this order.
    +     * This must contain <= 20 elements and the length of each element must be <=
    +     * 50 characters.
          * 
    * - * string display_name = 13 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string target_workloads = 7 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The displayName to set. - * @return This builder for chaining. + * @param index The index of the element to return. + * @return The targetWorkloads at the given index. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - displayName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; + public java.lang.String getTargetWorkloads(int index) { + return targetWorkloads_.get(index); } /** * * *
    -     * Optional. Display name of this order.
    +     * Optional. Customer specified workloads of interest targeted by this order.
    +     * This must contain <= 20 elements and the length of each element must be <=
    +     * 50 characters.
          * 
    * - * string display_name = 13 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string target_workloads = 7 [(.google.api.field_behavior) = OPTIONAL]; * - * @return This builder for chaining. + * @param index The index of the value to return. + * @return The bytes of the targetWorkloads at the given index. */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; + public com.google.protobuf.ByteString getTargetWorkloadsBytes(int index) { + return targetWorkloads_.getByteString(index); } /** * * *
    -     * Optional. Display name of this order.
    +     * Optional. Customer specified workloads of interest targeted by this order.
    +     * This must contain <= 20 elements and the length of each element must be <=
    +     * 50 characters.
          * 
    * - * string display_name = 13 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string target_workloads = 7 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The bytes for displayName to set. + * @param index The index to set the value at. + * @param value The targetWorkloads to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setTargetWorkloads(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - displayName_ = value; - bitField0_ |= 0x00000002; + ensureTargetWorkloadsIsMutable(); + targetWorkloads_.set(index, value); + bitField0_ |= 0x00000080; onChanged(); return this; } - private com.google.protobuf.Timestamp createTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; - /** * * *
    -     * Output only. Time when this order was created.
    +     * Optional. Customer specified workloads of interest targeted by this order.
    +     * This must contain <= 20 elements and the length of each element must be <=
    +     * 50 characters.
          * 
    * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated string target_workloads = 7 [(.google.api.field_behavior) = OPTIONAL]; * - * @return Whether the createTime field is set. + * @param value The targetWorkloads to add. + * @return This builder for chaining. */ - public boolean hasCreateTime() { - return ((bitField0_ & 0x00000004) != 0); + public Builder addTargetWorkloads(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetWorkloadsIsMutable(); + targetWorkloads_.add(value); + bitField0_ |= 0x00000080; + onChanged(); + return this; } /** * * *
    -     * Output only. Time when this order was created.
    +     * Optional. Customer specified workloads of interest targeted by this order.
    +     * This must contain <= 20 elements and the length of each element must be <=
    +     * 50 characters.
          * 
    * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated string target_workloads = 7 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The createTime. + * @param values The targetWorkloads to add. + * @return This builder for chaining. */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } else { - return createTimeBuilder_.getMessage(); - } + public Builder addAllTargetWorkloads(java.lang.Iterable values) { + ensureTargetWorkloadsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetWorkloads_); + bitField0_ |= 0x00000080; + onChanged(); + return this; } /** * * *
    -     * Output only. Time when this order was created.
    +     * Optional. Customer specified workloads of interest targeted by this order.
    +     * This must contain <= 20 elements and the length of each element must be <=
    +     * 50 characters.
          * 
    * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - } else { - createTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; + * repeated string target_workloads = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTargetWorkloads() { + targetWorkloads_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + ; onChanged(); return this; } @@ -3300,186 +4957,194 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { * * *
    -     * Output only. Time when this order was created.
    +     * Optional. Customer specified workloads of interest targeted by this order.
    +     * This must contain <= 20 elements and the length of each element must be <=
    +     * 50 characters.
          * 
    * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated string target_workloads = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the targetWorkloads to add. + * @return This builder for chaining. */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); + public Builder addTargetWorkloadsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - bitField0_ |= 0x00000004; + checkByteStringIsUtf8(value); + ensureTargetWorkloadsIsMutable(); + targetWorkloads_.add(value); + bitField0_ |= 0x00000080; onChanged(); return this; } + private java.lang.Object customerMotivation_ = ""; + /** * * *
    -     * Output only. Time when this order was created.
    +     * Required. Information about the customer's motivation for this order. The
    +     * length of this field must be <= 1000 characters.
          * 
    * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string customer_motivation = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The customerMotivation. */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getCreateTimeBuilder().mergeFrom(value); - } else { - createTime_ = value; - } + public java.lang.String getCustomerMotivation() { + java.lang.Object ref = customerMotivation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customerMotivation_ = s; + return s; } else { - createTimeBuilder_.mergeFrom(value); - } - if (createTime_ != null) { - bitField0_ |= 0x00000004; - onChanged(); + return (java.lang.String) ref; } - return this; } /** * * *
    -     * Output only. Time when this order was created.
    +     * Required. Information about the customer's motivation for this order. The
    +     * length of this field must be <= 1000 characters.
          * 
    * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string customer_motivation = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for customerMotivation. */ - public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000004); - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; + public com.google.protobuf.ByteString getCustomerMotivationBytes() { + java.lang.Object ref = customerMotivation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customerMotivation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - onChanged(); - return this; } /** * * *
    -     * Output only. Time when this order was created.
    +     * Required. Information about the customer's motivation for this order. The
    +     * length of this field must be <= 1000 characters.
          * 
    * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string customer_motivation = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The customerMotivation to set. + * @return This builder for chaining. */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000004; + public Builder setCustomerMotivation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + customerMotivation_ = value; + bitField0_ |= 0x00000100; onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); + return this; } /** * * *
    -     * Output only. Time when this order was created.
    +     * Required. Information about the customer's motivation for this order. The
    +     * length of this field must be <= 1000 characters.
          * 
    * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string customer_motivation = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } + public Builder clearCustomerMotivation() { + customerMotivation_ = getDefaultInstance().getCustomerMotivation(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; } /** * * *
    -     * Output only. Time when this order was created.
    +     * Required. Information about the customer's motivation for this order. The
    +     * length of this field must be <= 1000 characters.
          * 
    * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string customer_motivation = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for customerMotivation to set. + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); - createTime_ = null; + public Builder setCustomerMotivationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - return createTimeBuilder_; + checkByteStringIsUtf8(value); + customerMotivation_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; } - private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.Timestamp fulfillmentTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + fulfillmentTimeBuilder_; /** * * *
    -     * Output only. Time when this order was last updated.
    +     * Deprecated: Please use customer_requested_installation_date instead.
          * 
    * * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp fulfillment_time = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the updateTime field is set. + * @deprecated google.cloud.gdchardwaremanagement.v1alpha.Order.fulfillment_time is deprecated. + * See google/cloud/gdchardwaremanagement/v1alpha/resources.proto;l=190 + * @return Whether the fulfillmentTime field is set. */ - public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000008) != 0); + @java.lang.Deprecated + public boolean hasFulfillmentTime() { + return ((bitField0_ & 0x00000200) != 0); } /** * * *
    -     * Output only. Time when this order was last updated.
    +     * Deprecated: Please use customer_requested_installation_date instead.
          * 
    * * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp fulfillment_time = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * - * @return The updateTime. + * @deprecated google.cloud.gdchardwaremanagement.v1alpha.Order.fulfillment_time is deprecated. + * See google/cloud/gdchardwaremanagement/v1alpha/resources.proto;l=190 + * @return The fulfillmentTime. */ - public com.google.protobuf.Timestamp getUpdateTime() { - if (updateTimeBuilder_ == null) { - return updateTime_ == null + @java.lang.Deprecated + public com.google.protobuf.Timestamp getFulfillmentTime() { + if (fulfillmentTimeBuilder_ == null) { + return fulfillmentTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + : fulfillmentTime_; } else { - return updateTimeBuilder_.getMessage(); + return fulfillmentTimeBuilder_.getMessage(); } } @@ -3487,23 +5152,24 @@ public com.google.protobuf.Timestamp getUpdateTime() { * * *
    -     * Output only. Time when this order was last updated.
    +     * Deprecated: Please use customer_requested_installation_date instead.
          * 
    * * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp fulfillment_time = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { + @java.lang.Deprecated + public Builder setFulfillmentTime(com.google.protobuf.Timestamp value) { + if (fulfillmentTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - updateTime_ = value; + fulfillmentTime_ = value; } else { - updateTimeBuilder_.setMessage(value); + fulfillmentTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3512,20 +5178,21 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { * * *
    -     * Output only. Time when this order was last updated.
    +     * Deprecated: Please use customer_requested_installation_date instead.
          * 
    * * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp fulfillment_time = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (updateTimeBuilder_ == null) { - updateTime_ = builderForValue.build(); + @java.lang.Deprecated + public Builder setFulfillmentTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (fulfillmentTimeBuilder_ == null) { + fulfillmentTime_ = builderForValue.build(); } else { - updateTimeBuilder_.setMessage(builderForValue.build()); + fulfillmentTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3534,27 +5201,28 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal * * *
    -     * Output only. Time when this order was last updated.
    +     * Deprecated: Please use customer_requested_installation_date instead.
          * 
    * * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp fulfillment_time = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getUpdateTimeBuilder().mergeFrom(value); + @java.lang.Deprecated + public Builder mergeFulfillmentTime(com.google.protobuf.Timestamp value) { + if (fulfillmentTimeBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && fulfillmentTime_ != null + && fulfillmentTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getFulfillmentTimeBuilder().mergeFrom(value); } else { - updateTime_ = value; + fulfillmentTime_ = value; } } else { - updateTimeBuilder_.mergeFrom(value); + fulfillmentTimeBuilder_.mergeFrom(value); } - if (updateTime_ != null) { - bitField0_ |= 0x00000008; + if (fulfillmentTime_ != null) { + bitField0_ |= 0x00000200; onChanged(); } return this; @@ -3564,19 +5232,20 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * * *
    -     * Output only. Time when this order was last updated.
    +     * Deprecated: Please use customer_requested_installation_date instead.
          * 
    * * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp fulfillment_time = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00000008); - updateTime_ = null; - if (updateTimeBuilder_ != null) { - updateTimeBuilder_.dispose(); - updateTimeBuilder_ = null; + @java.lang.Deprecated + public Builder clearFulfillmentTime() { + bitField0_ = (bitField0_ & ~0x00000200); + fulfillmentTime_ = null; + if (fulfillmentTimeBuilder_ != null) { + fulfillmentTimeBuilder_.dispose(); + fulfillmentTimeBuilder_ = null; } onChanged(); return this; @@ -3586,37 +5255,39 @@ public Builder clearUpdateTime() { * * *
    -     * Output only. Time when this order was last updated.
    +     * Deprecated: Please use customer_requested_installation_date instead.
          * 
    * * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp fulfillment_time = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00000008; + @java.lang.Deprecated + public com.google.protobuf.Timestamp.Builder getFulfillmentTimeBuilder() { + bitField0_ |= 0x00000200; onChanged(); - return getUpdateTimeFieldBuilder().getBuilder(); + return getFulfillmentTimeFieldBuilder().getBuilder(); } /** * * *
    -     * Output only. Time when this order was last updated.
    +     * Deprecated: Please use customer_requested_installation_date instead.
          * 
    * * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp fulfillment_time = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - if (updateTimeBuilder_ != null) { - return updateTimeBuilder_.getMessageOrBuilder(); + @java.lang.Deprecated + public com.google.protobuf.TimestampOrBuilder getFulfillmentTimeOrBuilder() { + if (fulfillmentTimeBuilder_ != null) { + return fulfillmentTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null + return fulfillmentTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + : fulfillmentTime_; } } @@ -3624,147 +5295,150 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * * *
    -     * Output only. Time when this order was last updated.
    +     * Deprecated: Please use customer_requested_installation_date instead.
          * 
    * * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp fulfillment_time = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getUpdateTimeFieldBuilder() { - if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = + getFulfillmentTimeFieldBuilder() { + if (fulfillmentTimeBuilder_ == null) { + fulfillmentTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); - updateTime_ = null; - } - return updateTimeBuilder_; - } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + getFulfillmentTime(), getParentForChildren(), isClean()); + fulfillmentTime_ = null; } - return labels_; + return fulfillmentTimeBuilder_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - } - if (!labels_.isMutable()) { - labels_ = labels_.copy(); - } - bitField0_ |= 0x00000010; - onChanged(); - return labels_; - } + private com.google.type.Date customerRequestedInstallationDate_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + customerRequestedInstallationDateBuilder_; - public int getLabelsCount() { - return internalGetLabels().getMap().size(); + /** + * + * + *
    +     * Optional. Customer requested installation date for this order.
    +     * 
    + * + * + * .google.type.Date customer_requested_installation_date = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customerRequestedInstallationDate field is set. + */ + public boolean hasCustomerRequestedInstallationDate() { + return ((bitField0_ & 0x00000400) != 0); } /** * * *
    -     * Optional. Labels associated with this order as key value pairs.
    -     * For more information about labels, see [Create and manage
    -     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
    +     * Optional. Customer requested installation date for this order.
          * 
    * - * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.type.Date customer_requested_installation_date = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customerRequestedInstallationDate. */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public com.google.type.Date getCustomerRequestedInstallationDate() { + if (customerRequestedInstallationDateBuilder_ == null) { + return customerRequestedInstallationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : customerRequestedInstallationDate_; + } else { + return customerRequestedInstallationDateBuilder_.getMessage(); } - return internalGetLabels().getMap().containsKey(key); - } - - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); } /** * * *
    -     * Optional. Labels associated with this order as key value pairs.
    -     * For more information about labels, see [Create and manage
    -     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
    +     * Optional. Customer requested installation date for this order.
          * 
    * - * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.type.Date customer_requested_installation_date = 21 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); + public Builder setCustomerRequestedInstallationDate(com.google.type.Date value) { + if (customerRequestedInstallationDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customerRequestedInstallationDate_ = value; + } else { + customerRequestedInstallationDateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; } /** * * *
    -     * Optional. Labels associated with this order as key value pairs.
    -     * For more information about labels, see [Create and manage
    -     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
    +     * Optional. Customer requested installation date for this order.
          * 
    * - * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.type.Date customer_requested_installation_date = 21 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); + public Builder setCustomerRequestedInstallationDate( + com.google.type.Date.Builder builderForValue) { + if (customerRequestedInstallationDateBuilder_ == null) { + customerRequestedInstallationDate_ = builderForValue.build(); + } else { + customerRequestedInstallationDateBuilder_.setMessage(builderForValue.build()); } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; + bitField0_ |= 0x00000400; + onChanged(); + return this; } /** * * *
    -     * Optional. Labels associated with this order as key value pairs.
    -     * For more information about labels, see [Create and manage
    -     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
    +     * Optional. Customer requested installation date for this order.
          * 
    * - * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.type.Date customer_requested_installation_date = 21 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public Builder mergeCustomerRequestedInstallationDate(com.google.type.Date value) { + if (customerRequestedInstallationDateBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && customerRequestedInstallationDate_ != null + && customerRequestedInstallationDate_ != com.google.type.Date.getDefaultInstance()) { + getCustomerRequestedInstallationDateBuilder().mergeFrom(value); + } else { + customerRequestedInstallationDate_ = value; + } + } else { + customerRequestedInstallationDateBuilder_.mergeFrom(value); } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); + if (customerRequestedInstallationDate_ != null) { + bitField0_ |= 0x00000400; + onChanged(); } - return map.get(key); - } - - public Builder clearLabels() { - bitField0_ = (bitField0_ & ~0x00000010); - internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -3772,107 +5446,161 @@ public Builder clearLabels() { * * *
    -     * Optional. Labels associated with this order as key value pairs.
    -     * For more information about labels, see [Create and manage
    -     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
    +     * Optional. Customer requested installation date for this order.
          * 
    * - * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.type.Date customer_requested_installation_date = 21 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public Builder clearCustomerRequestedInstallationDate() { + bitField0_ = (bitField0_ & ~0x00000400); + customerRequestedInstallationDate_ = null; + if (customerRequestedInstallationDateBuilder_ != null) { + customerRequestedInstallationDateBuilder_.dispose(); + customerRequestedInstallationDateBuilder_ = null; } - internalGetMutableLabels().getMutableMap().remove(key); + onChanged(); return this; } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableLabels() { - bitField0_ |= 0x00000010; - return internalGetMutableLabels().getMutableMap(); + /** + * + * + *
    +     * Optional. Customer requested installation date for this order.
    +     * 
    + * + * + * .google.type.Date customer_requested_installation_date = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.type.Date.Builder getCustomerRequestedInstallationDateBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return getCustomerRequestedInstallationDateFieldBuilder().getBuilder(); } /** * * *
    -     * Optional. Labels associated with this order as key value pairs.
    -     * For more information about labels, see [Create and manage
    -     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
    +     * Optional. Customer requested installation date for this order.
          * 
    * - * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.type.Date customer_requested_installation_date = 21 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); + public com.google.type.DateOrBuilder getCustomerRequestedInstallationDateOrBuilder() { + if (customerRequestedInstallationDateBuilder_ != null) { + return customerRequestedInstallationDateBuilder_.getMessageOrBuilder(); + } else { + return customerRequestedInstallationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : customerRequestedInstallationDate_; } - internalGetMutableLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00000010; - return this; } /** * * *
    -     * Optional. Labels associated with this order as key value pairs.
    -     * For more information about labels, see [Create and manage
    -     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
    +     * Optional. Customer requested installation date for this order.
          * 
    * - * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.type.Date customer_requested_installation_date = 21 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00000010; - return this; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getCustomerRequestedInstallationDateFieldBuilder() { + if (customerRequestedInstallationDateBuilder_ == null) { + customerRequestedInstallationDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getCustomerRequestedInstallationDate(), getParentForChildren(), isClean()); + customerRequestedInstallationDate_ = null; + } + return customerRequestedInstallationDateBuilder_; } - private int state_ = 0; + private java.lang.Object regionCode_ = ""; /** * * *
    -     * Output only. State of this order. On order creation, state will be set to
    -     * DRAFT.
    +     * Required. [Unicode CLDR](http://cldr.unicode.org/) region code where this
    +     * order will be deployed. For a list of valid CLDR region codes, see the
    +     * [Language Subtag
    +     * Registry](https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry).
          * 
    * - * - * .google.cloud.gdchardwaremanagement.v1alpha.Order.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string region_code = 10 [(.google.api.field_behavior) = REQUIRED]; * - * @return The enum numeric value on the wire for state. + * @return The regionCode. */ - @java.lang.Override - public int getStateValue() { - return state_; + public java.lang.String getRegionCode() { + java.lang.Object ref = regionCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + regionCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. [Unicode CLDR](http://cldr.unicode.org/) region code where this
    +     * order will be deployed. For a list of valid CLDR region codes, see the
    +     * [Language Subtag
    +     * Registry](https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry).
    +     * 
    + * + * string region_code = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for regionCode. + */ + public com.google.protobuf.ByteString getRegionCodeBytes() { + java.lang.Object ref = regionCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + regionCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** * * *
    -     * Output only. State of this order. On order creation, state will be set to
    -     * DRAFT.
    +     * Required. [Unicode CLDR](http://cldr.unicode.org/) region code where this
    +     * order will be deployed. For a list of valid CLDR region codes, see the
    +     * [Language Subtag
    +     * Registry](https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry).
          * 
    * - * - * .google.cloud.gdchardwaremanagement.v1alpha.Order.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string region_code = 10 [(.google.api.field_behavior) = REQUIRED]; * - * @param value The enum numeric value on the wire for state to set. + * @param value The regionCode to set. * @return This builder for chaining. */ - public Builder setStateValue(int value) { - state_ = value; - bitField0_ |= 0x00000020; + public Builder setRegionCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + regionCode_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3881,142 +5609,133 @@ public Builder setStateValue(int value) { * * *
    -     * Output only. State of this order. On order creation, state will be set to
    -     * DRAFT.
    +     * Required. [Unicode CLDR](http://cldr.unicode.org/) region code where this
    +     * order will be deployed. For a list of valid CLDR region codes, see the
    +     * [Language Subtag
    +     * Registry](https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry).
          * 
    * - * - * .google.cloud.gdchardwaremanagement.v1alpha.Order.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string region_code = 10 [(.google.api.field_behavior) = REQUIRED]; * - * @return The state. + * @return This builder for chaining. */ - @java.lang.Override - public com.google.cloud.gdchardwaremanagement.v1alpha.Order.State getState() { - com.google.cloud.gdchardwaremanagement.v1alpha.Order.State result = - com.google.cloud.gdchardwaremanagement.v1alpha.Order.State.forNumber(state_); - return result == null - ? com.google.cloud.gdchardwaremanagement.v1alpha.Order.State.UNRECOGNIZED - : result; + public Builder clearRegionCode() { + regionCode_ = getDefaultInstance().getRegionCode(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + return this; } /** * * *
    -     * Output only. State of this order. On order creation, state will be set to
    -     * DRAFT.
    +     * Required. [Unicode CLDR](http://cldr.unicode.org/) region code where this
    +     * order will be deployed. For a list of valid CLDR region codes, see the
    +     * [Language Subtag
    +     * Registry](https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry).
          * 
    * - * - * .google.cloud.gdchardwaremanagement.v1alpha.Order.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string region_code = 10 [(.google.api.field_behavior) = REQUIRED]; * - * @param value The state to set. + * @param value The bytes for regionCode to set. * @return This builder for chaining. */ - public Builder setState(com.google.cloud.gdchardwaremanagement.v1alpha.Order.State value) { + public Builder setRegionCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000020; - state_ = value.getNumber(); + checkByteStringIsUtf8(value); + regionCode_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } + private java.lang.Object orderFormUri_ = ""; + /** * * *
    -     * Output only. State of this order. On order creation, state will be set to
    -     * DRAFT.
    +     * Output only. Link to the order form.
          * 
    * - * - * .google.cloud.gdchardwaremanagement.v1alpha.Order.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string order_form_uri = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return This builder for chaining. + * @return The orderFormUri. */ - public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000020); - state_ = 0; - onChanged(); - return this; + public java.lang.String getOrderFormUri() { + java.lang.Object ref = orderFormUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderFormUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } } - private com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organizationContact_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact, - com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact.Builder, - com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContactOrBuilder> - organizationContactBuilder_; - /** * * *
    -     * Required. Customer contact information.
    +     * Output only. Link to the order form.
          * 
    * - * - * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * string order_form_uri = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return Whether the organizationContact field is set. + * @return The bytes for orderFormUri. */ - public boolean hasOrganizationContact() { - return ((bitField0_ & 0x00000040) != 0); + public com.google.protobuf.ByteString getOrderFormUriBytes() { + java.lang.Object ref = orderFormUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderFormUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** * * *
    -     * Required. Customer contact information.
    +     * Output only. Link to the order form.
          * 
    * - * - * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * string order_form_uri = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The organizationContact. + * @param value The orderFormUri to set. + * @return This builder for chaining. */ - public com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact - getOrganizationContact() { - if (organizationContactBuilder_ == null) { - return organizationContact_ == null - ? com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact - .getDefaultInstance() - : organizationContact_; - } else { - return organizationContactBuilder_.getMessage(); + public Builder setOrderFormUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + orderFormUri_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; } /** * * *
    -     * Required. Customer contact information.
    +     * Output only. Link to the order form.
          * 
    * - * - * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * string order_form_uri = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. */ - public Builder setOrganizationContact( - com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact value) { - if (organizationContactBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - organizationContact_ = value; - } else { - organizationContactBuilder_.setMessage(value); - } - bitField0_ |= 0x00000040; + public Builder clearOrderFormUri() { + orderFormUri_ = getDefaultInstance().getOrderFormUri(); + bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } @@ -4025,77 +5744,62 @@ public Builder setOrganizationContact( * * *
    -     * Required. Customer contact information.
    +     * Output only. Link to the order form.
          * 
    * - * - * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * string order_form_uri = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for orderFormUri to set. + * @return This builder for chaining. */ - public Builder setOrganizationContact( - com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact.Builder - builderForValue) { - if (organizationContactBuilder_ == null) { - organizationContact_ = builderForValue.build(); - } else { - organizationContactBuilder_.setMessage(builderForValue.build()); + public Builder setOrderFormUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - bitField0_ |= 0x00000040; + checkByteStringIsUtf8(value); + orderFormUri_ = value; + bitField0_ |= 0x00001000; onChanged(); return this; } + private int type_ = 0; + /** * * *
    -     * Required. Customer contact information.
    +     * Output only. Type of this Order.
          * 
    * * - * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 6 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.gdchardwaremanagement.v1alpha.Order.Type type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return The enum numeric value on the wire for type. */ - public Builder mergeOrganizationContact( - com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact value) { - if (organizationContactBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && organizationContact_ != null - && organizationContact_ - != com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact - .getDefaultInstance()) { - getOrganizationContactBuilder().mergeFrom(value); - } else { - organizationContact_ = value; - } - } else { - organizationContactBuilder_.mergeFrom(value); - } - if (organizationContact_ != null) { - bitField0_ |= 0x00000040; - onChanged(); - } - return this; + @java.lang.Override + public int getTypeValue() { + return type_; } /** * * *
    -     * Required. Customer contact information.
    +     * Output only. Type of this Order.
          * 
    * * - * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 6 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.gdchardwaremanagement.v1alpha.Order.Type type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. */ - public Builder clearOrganizationContact() { - bitField0_ = (bitField0_ & ~0x00000040); - organizationContact_ = null; - if (organizationContactBuilder_ != null) { - organizationContactBuilder_.dispose(); - organizationContactBuilder_ = null; - } + public Builder setTypeValue(int value) { + type_ = value; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -4104,175 +5808,194 @@ public Builder clearOrganizationContact() { * * *
    -     * Required. Customer contact information.
    +     * Output only. Type of this Order.
          * 
    * * - * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 6 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.gdchardwaremanagement.v1alpha.Order.Type type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - */ - public com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact.Builder - getOrganizationContactBuilder() { - bitField0_ |= 0x00000040; - onChanged(); - return getOrganizationContactFieldBuilder().getBuilder(); + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Order.Type getType() { + com.google.cloud.gdchardwaremanagement.v1alpha.Order.Type result = + com.google.cloud.gdchardwaremanagement.v1alpha.Order.Type.forNumber(type_); + return result == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Order.Type.UNRECOGNIZED + : result; } /** * * *
    -     * Required. Customer contact information.
    +     * Output only. Type of this Order.
          * 
    * * - * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 6 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.gdchardwaremanagement.v1alpha.Order.Type type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param value The type to set. + * @return This builder for chaining. */ - public com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContactOrBuilder - getOrganizationContactOrBuilder() { - if (organizationContactBuilder_ != null) { - return organizationContactBuilder_.getMessageOrBuilder(); - } else { - return organizationContact_ == null - ? com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact - .getDefaultInstance() - : organizationContact_; + public Builder setType(com.google.cloud.gdchardwaremanagement.v1alpha.Order.Type value) { + if (value == null) { + throw new NullPointerException(); } + bitField0_ |= 0x00002000; + type_ = value.getNumber(); + onChanged(); + return this; } /** * * *
    -     * Required. Customer contact information.
    +     * Output only. Type of this Order.
          * 
    * * - * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 6 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.gdchardwaremanagement.v1alpha.Order.Type type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact, - com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact.Builder, - com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContactOrBuilder> - getOrganizationContactFieldBuilder() { - if (organizationContactBuilder_ == null) { - organizationContactBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact, - com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact.Builder, - com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContactOrBuilder>( - getOrganizationContact(), getParentForChildren(), isClean()); - organizationContact_ = null; - } - return organizationContactBuilder_; + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00002000); + type_ = 0; + onChanged(); + return this; } - private com.google.protobuf.LazyStringArrayList targetWorkloads_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureTargetWorkloadsIsMutable() { - if (!targetWorkloads_.isModifiable()) { - targetWorkloads_ = new com.google.protobuf.LazyStringArrayList(targetWorkloads_); - } - bitField0_ |= 0x00000080; - } + private com.google.protobuf.Timestamp submitTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + submitTimeBuilder_; /** * * *
    -     * Optional. Customer specified workloads of interest targeted by this order.
    -     * This must contain <= 20 elements and the length of each element must be <=
    -     * 50 characters.
    +     * Output only. Time when the order was submitted. Is auto-populated to the
    +     * current time when an order is submitted.
          * 
    * - * repeated string target_workloads = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp submit_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return A list containing the targetWorkloads. + * @return Whether the submitTime field is set. */ - public com.google.protobuf.ProtocolStringList getTargetWorkloadsList() { - targetWorkloads_.makeImmutable(); - return targetWorkloads_; + public boolean hasSubmitTime() { + return ((bitField0_ & 0x00004000) != 0); } /** * * *
    -     * Optional. Customer specified workloads of interest targeted by this order.
    -     * This must contain <= 20 elements and the length of each element must be <=
    -     * 50 characters.
    +     * Output only. Time when the order was submitted. Is auto-populated to the
    +     * current time when an order is submitted.
          * 
    * - * repeated string target_workloads = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp submit_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return The count of targetWorkloads. + * @return The submitTime. */ - public int getTargetWorkloadsCount() { - return targetWorkloads_.size(); + public com.google.protobuf.Timestamp getSubmitTime() { + if (submitTimeBuilder_ == null) { + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; + } else { + return submitTimeBuilder_.getMessage(); + } } /** * * *
    -     * Optional. Customer specified workloads of interest targeted by this order.
    -     * This must contain <= 20 elements and the length of each element must be <=
    -     * 50 characters.
    +     * Output only. Time when the order was submitted. Is auto-populated to the
    +     * current time when an order is submitted.
          * 
    * - * repeated string target_workloads = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The targetWorkloads at the given index. + * + * .google.protobuf.Timestamp submit_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.lang.String getTargetWorkloads(int index) { - return targetWorkloads_.get(index); + public Builder setSubmitTime(com.google.protobuf.Timestamp value) { + if (submitTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + submitTime_ = value; + } else { + submitTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; } /** * * *
    -     * Optional. Customer specified workloads of interest targeted by this order.
    -     * This must contain <= 20 elements and the length of each element must be <=
    -     * 50 characters.
    +     * Output only. Time when the order was submitted. Is auto-populated to the
    +     * current time when an order is submitted.
          * 
    * - * repeated string target_workloads = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the targetWorkloads at the given index. + * + * .google.protobuf.Timestamp submit_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.protobuf.ByteString getTargetWorkloadsBytes(int index) { - return targetWorkloads_.getByteString(index); + public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (submitTimeBuilder_ == null) { + submitTime_ = builderForValue.build(); + } else { + submitTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; } /** * * *
    -     * Optional. Customer specified workloads of interest targeted by this order.
    -     * This must contain <= 20 elements and the length of each element must be <=
    -     * 50 characters.
    +     * Output only. Time when the order was submitted. Is auto-populated to the
    +     * current time when an order is submitted.
          * 
    * - * repeated string target_workloads = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The targetWorkloads to set. - * @return This builder for chaining. + * + * .google.protobuf.Timestamp submit_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setTargetWorkloads(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { + if (submitTimeBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0) + && submitTime_ != null + && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getSubmitTimeBuilder().mergeFrom(value); + } else { + submitTime_ = value; + } + } else { + submitTimeBuilder_.mergeFrom(value); + } + if (submitTime_ != null) { + bitField0_ |= 0x00004000; + onChanged(); } - ensureTargetWorkloadsIsMutable(); - targetWorkloads_.set(index, value); - bitField0_ |= 0x00000080; - onChanged(); return this; } @@ -4280,23 +6003,21 @@ public Builder setTargetWorkloads(int index, java.lang.String value) { * * *
    -     * Optional. Customer specified workloads of interest targeted by this order.
    -     * This must contain <= 20 elements and the length of each element must be <=
    -     * 50 characters.
    +     * Output only. Time when the order was submitted. Is auto-populated to the
    +     * current time when an order is submitted.
          * 
    * - * repeated string target_workloads = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The targetWorkloads to add. - * @return This builder for chaining. + * + * .google.protobuf.Timestamp submit_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addTargetWorkloads(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder clearSubmitTime() { + bitField0_ = (bitField0_ & ~0x00004000); + submitTime_ = null; + if (submitTimeBuilder_ != null) { + submitTimeBuilder_.dispose(); + submitTimeBuilder_ = null; } - ensureTargetWorkloadsIsMutable(); - targetWorkloads_.add(value); - bitField0_ |= 0x00000080; onChanged(); return this; } @@ -4305,91 +6026,90 @@ public Builder addTargetWorkloads(java.lang.String value) { * * *
    -     * Optional. Customer specified workloads of interest targeted by this order.
    -     * This must contain <= 20 elements and the length of each element must be <=
    -     * 50 characters.
    +     * Output only. Time when the order was submitted. Is auto-populated to the
    +     * current time when an order is submitted.
          * 
    * - * repeated string target_workloads = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The targetWorkloads to add. - * @return This builder for chaining. + * + * .google.protobuf.Timestamp submit_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addAllTargetWorkloads(java.lang.Iterable values) { - ensureTargetWorkloadsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetWorkloads_); - bitField0_ |= 0x00000080; + public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { + bitField0_ |= 0x00004000; onChanged(); - return this; + return getSubmitTimeFieldBuilder().getBuilder(); } /** * * *
    -     * Optional. Customer specified workloads of interest targeted by this order.
    -     * This must contain <= 20 elements and the length of each element must be <=
    -     * 50 characters.
    +     * Output only. Time when the order was submitted. Is auto-populated to the
    +     * current time when an order is submitted.
          * 
    * - * repeated string target_workloads = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. + * + * .google.protobuf.Timestamp submit_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder clearTargetWorkloads() { - targetWorkloads_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); - ; - onChanged(); - return this; + public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { + if (submitTimeBuilder_ != null) { + return submitTimeBuilder_.getMessageOrBuilder(); + } else { + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; + } } /** * * *
    -     * Optional. Customer specified workloads of interest targeted by this order.
    -     * This must contain <= 20 elements and the length of each element must be <=
    -     * 50 characters.
    +     * Output only. Time when the order was submitted. Is auto-populated to the
    +     * current time when an order is submitted.
          * 
    * - * repeated string target_workloads = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the targetWorkloads to add. - * @return This builder for chaining. + * + * .google.protobuf.Timestamp submit_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addTargetWorkloadsBytes(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> + getSubmitTimeFieldBuilder() { + if (submitTimeBuilder_ == null) { + submitTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), getParentForChildren(), isClean()); + submitTime_ = null; } - checkByteStringIsUtf8(value); - ensureTargetWorkloadsIsMutable(); - targetWorkloads_.add(value); - bitField0_ |= 0x00000080; - onChanged(); - return this; + return submitTimeBuilder_; } - private java.lang.Object customerMotivation_ = ""; + private java.lang.Object billingId_ = ""; /** * * *
    -     * Required. Information about the customer's motivation for this order. The
    -     * length of this field must be <= 1000 characters.
    +     * Output only. The Google Cloud Billing ID to be charged for this order.
          * 
    * - * string customer_motivation = 8 [(.google.api.field_behavior) = REQUIRED]; + * string billing_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The customerMotivation. + * @return The billingId. */ - public java.lang.String getCustomerMotivation() { - java.lang.Object ref = customerMotivation_; + public java.lang.String getBillingId() { + java.lang.Object ref = billingId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - customerMotivation_ = s; + billingId_ = s; return s; } else { return (java.lang.String) ref; @@ -4400,20 +6120,19 @@ public java.lang.String getCustomerMotivation() { * * *
    -     * Required. Information about the customer's motivation for this order. The
    -     * length of this field must be <= 1000 characters.
    +     * Output only. The Google Cloud Billing ID to be charged for this order.
          * 
    * - * string customer_motivation = 8 [(.google.api.field_behavior) = REQUIRED]; + * string billing_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The bytes for customerMotivation. + * @return The bytes for billingId. */ - public com.google.protobuf.ByteString getCustomerMotivationBytes() { - java.lang.Object ref = customerMotivation_; + public com.google.protobuf.ByteString getBillingIdBytes() { + java.lang.Object ref = billingId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - customerMotivation_ = b; + billingId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -4424,21 +6143,20 @@ public com.google.protobuf.ByteString getCustomerMotivationBytes() { * * *
    -     * Required. Information about the customer's motivation for this order. The
    -     * length of this field must be <= 1000 characters.
    +     * Output only. The Google Cloud Billing ID to be charged for this order.
          * 
    * - * string customer_motivation = 8 [(.google.api.field_behavior) = REQUIRED]; + * string billing_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @param value The customerMotivation to set. + * @param value The billingId to set. * @return This builder for chaining. */ - public Builder setCustomerMotivation(java.lang.String value) { + public Builder setBillingId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - customerMotivation_ = value; - bitField0_ |= 0x00000100; + billingId_ = value; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -4447,17 +6165,16 @@ public Builder setCustomerMotivation(java.lang.String value) { * * *
    -     * Required. Information about the customer's motivation for this order. The
    -     * length of this field must be <= 1000 characters.
    +     * Output only. The Google Cloud Billing ID to be charged for this order.
          * 
    * - * string customer_motivation = 8 [(.google.api.field_behavior) = REQUIRED]; + * string billing_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ - public Builder clearCustomerMotivation() { - customerMotivation_ = getDefaultInstance().getCustomerMotivation(); - bitField0_ = (bitField0_ & ~0x00000100); + public Builder clearBillingId() { + billingId_ = getDefaultInstance().getBillingId(); + bitField0_ = (bitField0_ & ~0x00008000); onChanged(); return this; } @@ -4466,72 +6183,61 @@ public Builder clearCustomerMotivation() { * * *
    -     * Required. Information about the customer's motivation for this order. The
    -     * length of this field must be <= 1000 characters.
    +     * Output only. The Google Cloud Billing ID to be charged for this order.
          * 
    * - * string customer_motivation = 8 [(.google.api.field_behavior) = REQUIRED]; + * string billing_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @param value The bytes for customerMotivation to set. + * @param value The bytes for billingId to set. * @return This builder for chaining. */ - public Builder setCustomerMotivationBytes(com.google.protobuf.ByteString value) { + public Builder setBillingIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - customerMotivation_ = value; - bitField0_ |= 0x00000100; + billingId_ = value; + bitField0_ |= 0x00008000; onChanged(); return this; } - private com.google.protobuf.Timestamp fulfillmentTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - fulfillmentTimeBuilder_; + private java.util.List + existingHardware_ = java.util.Collections.emptyList(); - /** - * - * - *
    -     * Required. Customer specified deadline by when this order should be
    -     * fulfilled.
    -     * 
    - * - * - * .google.protobuf.Timestamp fulfillment_time = 9 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the fulfillmentTime field is set. - */ - public boolean hasFulfillmentTime() { - return ((bitField0_ & 0x00000200) != 0); + private void ensureExistingHardwareIsMutable() { + if (!((bitField0_ & 0x00010000) != 0)) { + existingHardware_ = + new java.util.ArrayList< + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation>(existingHardware_); + bitField0_ |= 0x00010000; + } } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocationOrBuilder> + existingHardwareBuilder_; + /** * * *
    -     * Required. Customer specified deadline by when this order should be
    -     * fulfilled.
    +     * Optional. Existing hardware to be removed as part of this order.
    +     * Note: any hardware removed will be recycled unless otherwise agreed.
          * 
    * * - * .google.protobuf.Timestamp fulfillment_time = 9 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The fulfillmentTime. */ - public com.google.protobuf.Timestamp getFulfillmentTime() { - if (fulfillmentTimeBuilder_ == null) { - return fulfillmentTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : fulfillmentTime_; + public java.util.List + getExistingHardwareList() { + if (existingHardwareBuilder_ == null) { + return java.util.Collections.unmodifiableList(existingHardware_); } else { - return fulfillmentTimeBuilder_.getMessage(); + return existingHardwareBuilder_.getMessageList(); } } @@ -4539,78 +6245,66 @@ public com.google.protobuf.Timestamp getFulfillmentTime() { * * *
    -     * Required. Customer specified deadline by when this order should be
    -     * fulfilled.
    +     * Optional. Existing hardware to be removed as part of this order.
    +     * Note: any hardware removed will be recycled unless otherwise agreed.
          * 
    * * - * .google.protobuf.Timestamp fulfillment_time = 9 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setFulfillmentTime(com.google.protobuf.Timestamp value) { - if (fulfillmentTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - fulfillmentTime_ = value; + public int getExistingHardwareCount() { + if (existingHardwareBuilder_ == null) { + return existingHardware_.size(); } else { - fulfillmentTimeBuilder_.setMessage(value); + return existingHardwareBuilder_.getCount(); } - bitField0_ |= 0x00000200; - onChanged(); - return this; } /** * * *
    -     * Required. Customer specified deadline by when this order should be
    -     * fulfilled.
    +     * Optional. Existing hardware to be removed as part of this order.
    +     * Note: any hardware removed will be recycled unless otherwise agreed.
          * 
    * * - * .google.protobuf.Timestamp fulfillment_time = 9 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setFulfillmentTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (fulfillmentTimeBuilder_ == null) { - fulfillmentTime_ = builderForValue.build(); + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation getExistingHardware( + int index) { + if (existingHardwareBuilder_ == null) { + return existingHardware_.get(index); } else { - fulfillmentTimeBuilder_.setMessage(builderForValue.build()); + return existingHardwareBuilder_.getMessage(index); } - bitField0_ |= 0x00000200; - onChanged(); - return this; } /** * * *
    -     * Required. Customer specified deadline by when this order should be
    -     * fulfilled.
    +     * Optional. Existing hardware to be removed as part of this order.
    +     * Note: any hardware removed will be recycled unless otherwise agreed.
          * 
    * * - * .google.protobuf.Timestamp fulfillment_time = 9 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeFulfillmentTime(com.google.protobuf.Timestamp value) { - if (fulfillmentTimeBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) - && fulfillmentTime_ != null - && fulfillmentTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getFulfillmentTimeBuilder().mergeFrom(value); - } else { - fulfillmentTime_ = value; + public Builder setExistingHardware( + int index, com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation value) { + if (existingHardwareBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } - } else { - fulfillmentTimeBuilder_.mergeFrom(value); - } - if (fulfillmentTime_ != null) { - bitField0_ |= 0x00000200; + ensureExistingHardwareIsMutable(); + existingHardware_.set(index, value); onChanged(); + } else { + existingHardwareBuilder_.setMessage(index, value); } return this; } @@ -4619,22 +6313,24 @@ public Builder mergeFulfillmentTime(com.google.protobuf.Timestamp value) { * * *
    -     * Required. Customer specified deadline by when this order should be
    -     * fulfilled.
    +     * Optional. Existing hardware to be removed as part of this order.
    +     * Note: any hardware removed will be recycled unless otherwise agreed.
          * 
    * * - * .google.protobuf.Timestamp fulfillment_time = 9 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearFulfillmentTime() { - bitField0_ = (bitField0_ & ~0x00000200); - fulfillmentTime_ = null; - if (fulfillmentTimeBuilder_ != null) { - fulfillmentTimeBuilder_.dispose(); - fulfillmentTimeBuilder_ = null; + public Builder setExistingHardware( + int index, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation.Builder builderForValue) { + if (existingHardwareBuilder_ == null) { + ensureExistingHardwareIsMutable(); + existingHardware_.set(index, builderForValue.build()); + onChanged(); + } else { + existingHardwareBuilder_.setMessage(index, builderForValue.build()); } - onChanged(); return this; } @@ -4642,147 +6338,151 @@ public Builder clearFulfillmentTime() { * * *
    -     * Required. Customer specified deadline by when this order should be
    -     * fulfilled.
    +     * Optional. Existing hardware to be removed as part of this order.
    +     * Note: any hardware removed will be recycled unless otherwise agreed.
          * 
    * * - * .google.protobuf.Timestamp fulfillment_time = 9 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.protobuf.Timestamp.Builder getFulfillmentTimeBuilder() { - bitField0_ |= 0x00000200; - onChanged(); - return getFulfillmentTimeFieldBuilder().getBuilder(); + public Builder addExistingHardware( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation value) { + if (existingHardwareBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExistingHardwareIsMutable(); + existingHardware_.add(value); + onChanged(); + } else { + existingHardwareBuilder_.addMessage(value); + } + return this; } /** * * *
    -     * Required. Customer specified deadline by when this order should be
    -     * fulfilled.
    +     * Optional. Existing hardware to be removed as part of this order.
    +     * Note: any hardware removed will be recycled unless otherwise agreed.
          * 
    * * - * .google.protobuf.Timestamp fulfillment_time = 9 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.protobuf.TimestampOrBuilder getFulfillmentTimeOrBuilder() { - if (fulfillmentTimeBuilder_ != null) { - return fulfillmentTimeBuilder_.getMessageOrBuilder(); + public Builder addExistingHardware( + int index, com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation value) { + if (existingHardwareBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExistingHardwareIsMutable(); + existingHardware_.add(index, value); + onChanged(); } else { - return fulfillmentTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : fulfillmentTime_; + existingHardwareBuilder_.addMessage(index, value); } + return this; } /** * * *
    -     * Required. Customer specified deadline by when this order should be
    -     * fulfilled.
    +     * Optional. Existing hardware to be removed as part of this order.
    +     * Note: any hardware removed will be recycled unless otherwise agreed.
          * 
    * * - * .google.protobuf.Timestamp fulfillment_time = 9 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getFulfillmentTimeFieldBuilder() { - if (fulfillmentTimeBuilder_ == null) { - fulfillmentTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getFulfillmentTime(), getParentForChildren(), isClean()); - fulfillmentTime_ = null; + public Builder addExistingHardware( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation.Builder builderForValue) { + if (existingHardwareBuilder_ == null) { + ensureExistingHardwareIsMutable(); + existingHardware_.add(builderForValue.build()); + onChanged(); + } else { + existingHardwareBuilder_.addMessage(builderForValue.build()); } - return fulfillmentTimeBuilder_; + return this; } - private java.lang.Object regionCode_ = ""; - /** * * *
    -     * Required. [Unicode CLDR](http://cldr.unicode.org/) region code where this
    -     * order will be deployed. For a list of valid CLDR region codes, see the
    -     * [Language Subtag
    -     * Registry](https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry).
    +     * Optional. Existing hardware to be removed as part of this order.
    +     * Note: any hardware removed will be recycled unless otherwise agreed.
          * 
    * - * string region_code = 10 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The regionCode. + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.lang.String getRegionCode() { - java.lang.Object ref = regionCode_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - regionCode_ = s; - return s; + public Builder addExistingHardware( + int index, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation.Builder builderForValue) { + if (existingHardwareBuilder_ == null) { + ensureExistingHardwareIsMutable(); + existingHardware_.add(index, builderForValue.build()); + onChanged(); } else { - return (java.lang.String) ref; + existingHardwareBuilder_.addMessage(index, builderForValue.build()); } + return this; } /** * * *
    -     * Required. [Unicode CLDR](http://cldr.unicode.org/) region code where this
    -     * order will be deployed. For a list of valid CLDR region codes, see the
    -     * [Language Subtag
    -     * Registry](https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry).
    +     * Optional. Existing hardware to be removed as part of this order.
    +     * Note: any hardware removed will be recycled unless otherwise agreed.
          * 
    * - * string region_code = 10 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for regionCode. + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.protobuf.ByteString getRegionCodeBytes() { - java.lang.Object ref = regionCode_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - regionCode_ = b; - return b; + public Builder addAllExistingHardware( + java.lang.Iterable< + ? extends com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation> + values) { + if (existingHardwareBuilder_ == null) { + ensureExistingHardwareIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, existingHardware_); + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + existingHardwareBuilder_.addAllMessages(values); } + return this; } /** * * *
    -     * Required. [Unicode CLDR](http://cldr.unicode.org/) region code where this
    -     * order will be deployed. For a list of valid CLDR region codes, see the
    -     * [Language Subtag
    -     * Registry](https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry).
    +     * Optional. Existing hardware to be removed as part of this order.
    +     * Note: any hardware removed will be recycled unless otherwise agreed.
          * 
    * - * string region_code = 10 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The regionCode to set. - * @return This builder for chaining. + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setRegionCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder clearExistingHardware() { + if (existingHardwareBuilder_ == null) { + existingHardware_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00010000); + onChanged(); + } else { + existingHardwareBuilder_.clear(); } - regionCode_ = value; - bitField0_ |= 0x00000400; - onChanged(); return this; } @@ -4790,20 +6490,22 @@ public Builder setRegionCode(java.lang.String value) { * * *
    -     * Required. [Unicode CLDR](http://cldr.unicode.org/) region code where this
    -     * order will be deployed. For a list of valid CLDR region codes, see the
    -     * [Language Subtag
    -     * Registry](https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry).
    +     * Optional. Existing hardware to be removed as part of this order.
    +     * Note: any hardware removed will be recycled unless otherwise agreed.
          * 
    * - * string region_code = 10 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearRegionCode() { - regionCode_ = getDefaultInstance().getRegionCode(); - bitField0_ = (bitField0_ & ~0x00000400); - onChanged(); + public Builder removeExistingHardware(int index) { + if (existingHardwareBuilder_ == null) { + ensureExistingHardwareIsMutable(); + existingHardware_.remove(index); + onChanged(); + } else { + existingHardwareBuilder_.remove(index); + } return this; } @@ -4811,50 +6513,37 @@ public Builder clearRegionCode() { * * *
    -     * Required. [Unicode CLDR](http://cldr.unicode.org/) region code where this
    -     * order will be deployed. For a list of valid CLDR region codes, see the
    -     * [Language Subtag
    -     * Registry](https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry).
    +     * Optional. Existing hardware to be removed as part of this order.
    +     * Note: any hardware removed will be recycled unless otherwise agreed.
          * 
    * - * string region_code = 10 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for regionCode to set. - * @return This builder for chaining. + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setRegionCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - regionCode_ = value; - bitField0_ |= 0x00000400; - onChanged(); - return this; + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation.Builder + getExistingHardwareBuilder(int index) { + return getExistingHardwareFieldBuilder().getBuilder(index); } - private java.lang.Object orderFormUri_ = ""; - /** * * *
    -     * Output only. Link to the order form.
    +     * Optional. Existing hardware to be removed as part of this order.
    +     * Note: any hardware removed will be recycled unless otherwise agreed.
          * 
    * - * string order_form_uri = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The orderFormUri. + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.lang.String getOrderFormUri() { - java.lang.Object ref = orderFormUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - orderFormUri_ = s; - return s; + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocationOrBuilder + getExistingHardwareOrBuilder(int index) { + if (existingHardwareBuilder_ == null) { + return existingHardware_.get(index); } else { - return (java.lang.String) ref; + return existingHardwareBuilder_.getMessageOrBuilder(index); } } @@ -4862,22 +6551,21 @@ public java.lang.String getOrderFormUri() { * * *
    -     * Output only. Link to the order form.
    +     * Optional. Existing hardware to be removed as part of this order.
    +     * Note: any hardware removed will be recycled unless otherwise agreed.
          * 
    * - * string order_form_uri = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for orderFormUri. + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.protobuf.ByteString getOrderFormUriBytes() { - java.lang.Object ref = orderFormUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - orderFormUri_ = b; - return b; + public java.util.List< + ? extends com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocationOrBuilder> + getExistingHardwareOrBuilderList() { + if (existingHardwareBuilder_ != null) { + return existingHardwareBuilder_.getMessageOrBuilderList(); } else { - return (com.google.protobuf.ByteString) ref; + return java.util.Collections.unmodifiableList(existingHardware_); } } @@ -4885,102 +6573,115 @@ public com.google.protobuf.ByteString getOrderFormUriBytes() { * * *
    -     * Output only. Link to the order form.
    +     * Optional. Existing hardware to be removed as part of this order.
    +     * Note: any hardware removed will be recycled unless otherwise agreed.
          * 
    * - * string order_form_uri = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The orderFormUri to set. - * @return This builder for chaining. + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setOrderFormUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - orderFormUri_ = value; - bitField0_ |= 0x00000800; - onChanged(); - return this; + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation.Builder + addExistingHardwareBuilder() { + return getExistingHardwareFieldBuilder() + .addBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation.getDefaultInstance()); } /** * * *
    -     * Output only. Link to the order form.
    +     * Optional. Existing hardware to be removed as part of this order.
    +     * Note: any hardware removed will be recycled unless otherwise agreed.
          * 
    * - * string order_form_uri = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearOrderFormUri() { - orderFormUri_ = getDefaultInstance().getOrderFormUri(); - bitField0_ = (bitField0_ & ~0x00000800); - onChanged(); - return this; + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation.Builder + addExistingHardwareBuilder(int index) { + return getExistingHardwareFieldBuilder() + .addBuilder( + index, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation.getDefaultInstance()); } /** * * *
    -     * Output only. Link to the order form.
    +     * Optional. Existing hardware to be removed as part of this order.
    +     * Note: any hardware removed will be recycled unless otherwise agreed.
          * 
    * - * string order_form_uri = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for orderFormUri to set. - * @return This builder for chaining. + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setOrderFormUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public java.util.List + getExistingHardwareBuilderList() { + return getExistingHardwareFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocationOrBuilder> + getExistingHardwareFieldBuilder() { + if (existingHardwareBuilder_ == null) { + existingHardwareBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocationOrBuilder>( + existingHardware_, + ((bitField0_ & 0x00010000) != 0), + getParentForChildren(), + isClean()); + existingHardware_ = null; } - checkByteStringIsUtf8(value); - orderFormUri_ = value; - bitField0_ |= 0x00000800; - onChanged(); - return this; + return existingHardwareBuilder_; } - private int type_ = 0; + private int deploymentType_ = 0; /** * * *
    -     * Output only. Type of this Order.
    +     * Output only. The deployment type of this order.
          * 
    * * - * .google.cloud.gdchardwaremanagement.v1alpha.Order.Type type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.gdchardwaremanagement.v1alpha.Order.DeploymentType deployment_type = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return The enum numeric value on the wire for type. + * @return The enum numeric value on the wire for deploymentType. */ @java.lang.Override - public int getTypeValue() { - return type_; + public int getDeploymentTypeValue() { + return deploymentType_; } /** * * *
    -     * Output only. Type of this Order.
    +     * Output only. The deployment type of this order.
          * 
    * * - * .google.cloud.gdchardwaremanagement.v1alpha.Order.Type type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.gdchardwaremanagement.v1alpha.Order.DeploymentType deployment_type = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @param value The enum numeric value on the wire for type to set. + * @param value The enum numeric value on the wire for deploymentType to set. * @return This builder for chaining. */ - public Builder setTypeValue(int value) { - type_ = value; - bitField0_ |= 0x00001000; + public Builder setDeploymentTypeValue(int value) { + deploymentType_ = value; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -4989,21 +6690,22 @@ public Builder setTypeValue(int value) { * * *
    -     * Output only. Type of this Order.
    +     * Output only. The deployment type of this order.
          * 
    * * - * .google.cloud.gdchardwaremanagement.v1alpha.Order.Type type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.gdchardwaremanagement.v1alpha.Order.DeploymentType deployment_type = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return The type. + * @return The deploymentType. */ @java.lang.Override - public com.google.cloud.gdchardwaremanagement.v1alpha.Order.Type getType() { - com.google.cloud.gdchardwaremanagement.v1alpha.Order.Type result = - com.google.cloud.gdchardwaremanagement.v1alpha.Order.Type.forNumber(type_); + public com.google.cloud.gdchardwaremanagement.v1alpha.Order.DeploymentType getDeploymentType() { + com.google.cloud.gdchardwaremanagement.v1alpha.Order.DeploymentType result = + com.google.cloud.gdchardwaremanagement.v1alpha.Order.DeploymentType.forNumber( + deploymentType_); return result == null - ? com.google.cloud.gdchardwaremanagement.v1alpha.Order.Type.UNRECOGNIZED + ? com.google.cloud.gdchardwaremanagement.v1alpha.Order.DeploymentType.UNRECOGNIZED : result; } @@ -5011,22 +6713,23 @@ public com.google.cloud.gdchardwaremanagement.v1alpha.Order.Type getType() { * * *
    -     * Output only. Type of this Order.
    +     * Output only. The deployment type of this order.
          * 
    * * - * .google.cloud.gdchardwaremanagement.v1alpha.Order.Type type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.gdchardwaremanagement.v1alpha.Order.DeploymentType deployment_type = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @param value The type to set. + * @param value The deploymentType to set. * @return This builder for chaining. */ - public Builder setType(com.google.cloud.gdchardwaremanagement.v1alpha.Order.Type value) { + public Builder setDeploymentType( + com.google.cloud.gdchardwaremanagement.v1alpha.Order.DeploymentType value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00001000; - type_ = value.getNumber(); + bitField0_ |= 0x00020000; + deploymentType_ = value.getNumber(); onChanged(); return this; } @@ -5035,68 +6738,64 @@ public Builder setType(com.google.cloud.gdchardwaremanagement.v1alpha.Order.Type * * *
    -     * Output only. Type of this Order.
    +     * Output only. The deployment type of this order.
          * 
    * * - * .google.cloud.gdchardwaremanagement.v1alpha.Order.Type type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.gdchardwaremanagement.v1alpha.Order.DeploymentType deployment_type = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. */ - public Builder clearType() { - bitField0_ = (bitField0_ & ~0x00001000); - type_ = 0; + public Builder clearDeploymentType() { + bitField0_ = (bitField0_ & ~0x00020000); + deploymentType_ = 0; onChanged(); return this; } - private com.google.protobuf.Timestamp submitTime_; + private com.google.type.Date actualInstallationDate_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - submitTimeBuilder_; + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + actualInstallationDateBuilder_; /** * * *
    -     * Output only. Time when the order was submitted. Is auto-populated to the
    -     * current time when an order is submitted.
    +     * Output only. Actual installation date for this order.
          * 
    * * - * .google.protobuf.Timestamp submit_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.type.Date actual_installation_date = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return Whether the submitTime field is set. + * @return Whether the actualInstallationDate field is set. */ - public boolean hasSubmitTime() { - return ((bitField0_ & 0x00002000) != 0); + public boolean hasActualInstallationDate() { + return ((bitField0_ & 0x00040000) != 0); } /** * * *
    -     * Output only. Time when the order was submitted. Is auto-populated to the
    -     * current time when an order is submitted.
    +     * Output only. Actual installation date for this order.
          * 
    * * - * .google.protobuf.Timestamp submit_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.type.Date actual_installation_date = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return The submitTime. + * @return The actualInstallationDate. */ - public com.google.protobuf.Timestamp getSubmitTime() { - if (submitTimeBuilder_ == null) { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + public com.google.type.Date getActualInstallationDate() { + if (actualInstallationDateBuilder_ == null) { + return actualInstallationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : actualInstallationDate_; } else { - return submitTimeBuilder_.getMessage(); + return actualInstallationDateBuilder_.getMessage(); } } @@ -5104,24 +6803,23 @@ public com.google.protobuf.Timestamp getSubmitTime() { * * *
    -     * Output only. Time when the order was submitted. Is auto-populated to the
    -     * current time when an order is submitted.
    +     * Output only. Actual installation date for this order.
          * 
    * * - * .google.protobuf.Timestamp submit_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.type.Date actual_installation_date = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setSubmitTime(com.google.protobuf.Timestamp value) { - if (submitTimeBuilder_ == null) { + public Builder setActualInstallationDate(com.google.type.Date value) { + if (actualInstallationDateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - submitTime_ = value; + actualInstallationDate_ = value; } else { - submitTimeBuilder_.setMessage(value); + actualInstallationDateBuilder_.setMessage(value); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -5130,21 +6828,20 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { * * *
    -     * Output only. Time when the order was submitted. Is auto-populated to the
    -     * current time when an order is submitted.
    +     * Output only. Actual installation date for this order.
          * 
    * * - * .google.protobuf.Timestamp submit_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.type.Date actual_installation_date = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (submitTimeBuilder_ == null) { - submitTime_ = builderForValue.build(); + public Builder setActualInstallationDate(com.google.type.Date.Builder builderForValue) { + if (actualInstallationDateBuilder_ == null) { + actualInstallationDate_ = builderForValue.build(); } else { - submitTimeBuilder_.setMessage(builderForValue.build()); + actualInstallationDateBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -5153,28 +6850,27 @@ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForVal * * *
    -     * Output only. Time when the order was submitted. Is auto-populated to the
    -     * current time when an order is submitted.
    +     * Output only. Actual installation date for this order.
          * 
    * * - * .google.protobuf.Timestamp submit_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.type.Date actual_installation_date = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { - if (submitTimeBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) - && submitTime_ != null - && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getSubmitTimeBuilder().mergeFrom(value); + public Builder mergeActualInstallationDate(com.google.type.Date value) { + if (actualInstallationDateBuilder_ == null) { + if (((bitField0_ & 0x00040000) != 0) + && actualInstallationDate_ != null + && actualInstallationDate_ != com.google.type.Date.getDefaultInstance()) { + getActualInstallationDateBuilder().mergeFrom(value); } else { - submitTime_ = value; + actualInstallationDate_ = value; } } else { - submitTimeBuilder_.mergeFrom(value); + actualInstallationDateBuilder_.mergeFrom(value); } - if (submitTime_ != null) { - bitField0_ |= 0x00002000; + if (actualInstallationDate_ != null) { + bitField0_ |= 0x00040000; onChanged(); } return this; @@ -5184,20 +6880,19 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { * * *
    -     * Output only. Time when the order was submitted. Is auto-populated to the
    -     * current time when an order is submitted.
    +     * Output only. Actual installation date for this order.
          * 
    * * - * .google.protobuf.Timestamp submit_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.type.Date actual_installation_date = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder clearSubmitTime() { - bitField0_ = (bitField0_ & ~0x00002000); - submitTime_ = null; - if (submitTimeBuilder_ != null) { - submitTimeBuilder_.dispose(); - submitTimeBuilder_ = null; + public Builder clearActualInstallationDate() { + bitField0_ = (bitField0_ & ~0x00040000); + actualInstallationDate_ = null; + if (actualInstallationDateBuilder_ != null) { + actualInstallationDateBuilder_.dispose(); + actualInstallationDateBuilder_ = null; } onChanged(); return this; @@ -5207,39 +6902,37 @@ public Builder clearSubmitTime() { * * *
    -     * Output only. Time when the order was submitted. Is auto-populated to the
    -     * current time when an order is submitted.
    +     * Output only. Actual installation date for this order.
          * 
    * * - * .google.protobuf.Timestamp submit_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.type.Date actual_installation_date = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { - bitField0_ |= 0x00002000; + public com.google.type.Date.Builder getActualInstallationDateBuilder() { + bitField0_ |= 0x00040000; onChanged(); - return getSubmitTimeFieldBuilder().getBuilder(); + return getActualInstallationDateFieldBuilder().getBuilder(); } /** * * *
    -     * Output only. Time when the order was submitted. Is auto-populated to the
    -     * current time when an order is submitted.
    +     * Output only. Actual installation date for this order.
          * 
    * * - * .google.protobuf.Timestamp submit_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.type.Date actual_installation_date = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { - if (submitTimeBuilder_ != null) { - return submitTimeBuilder_.getMessageOrBuilder(); + public com.google.type.DateOrBuilder getActualInstallationDateOrBuilder() { + if (actualInstallationDateBuilder_ != null) { + return actualInstallationDateBuilder_.getMessageOrBuilder(); } else { - return submitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : submitTime_; + return actualInstallationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : actualInstallationDate_; } } @@ -5247,76 +6940,68 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { * * *
    -     * Output only. Time when the order was submitted. Is auto-populated to the
    -     * current time when an order is submitted.
    +     * Output only. Actual installation date for this order.
          * 
    * * - * .google.protobuf.Timestamp submit_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getSubmitTimeFieldBuilder() { - if (submitTimeBuilder_ == null) { - submitTimeBuilder_ = + * .google.type.Date actual_installation_date = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
    + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getActualInstallationDateFieldBuilder() { + if (actualInstallationDateBuilder_ == null) { + actualInstallationDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSubmitTime(), getParentForChildren(), isClean()); - submitTime_ = null; + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getActualInstallationDate(), getParentForChildren(), isClean()); + actualInstallationDate_ = null; } - return submitTimeBuilder_; + return actualInstallationDateBuilder_; } - private java.lang.Object billingId_ = ""; + private com.google.type.Date estimatedInstallationDate_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + estimatedInstallationDateBuilder_; /** * * *
    -     * Output only. The Google Cloud Billing ID to be charged for this order.
    +     * Output only. Estimated installation date for this order.
          * 
    * - * string billing_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.type.Date estimated_installation_date = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return The billingId. + * @return Whether the estimatedInstallationDate field is set. */ - public java.lang.String getBillingId() { - java.lang.Object ref = billingId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - billingId_ = s; - return s; - } else { - return (java.lang.String) ref; - } + public boolean hasEstimatedInstallationDate() { + return ((bitField0_ & 0x00080000) != 0); } /** * * *
    -     * Output only. The Google Cloud Billing ID to be charged for this order.
    +     * Output only. Estimated installation date for this order.
          * 
    * - * string billing_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.type.Date estimated_installation_date = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return The bytes for billingId. + * @return The estimatedInstallationDate. */ - public com.google.protobuf.ByteString getBillingIdBytes() { - java.lang.Object ref = billingId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - billingId_ = b; - return b; + public com.google.type.Date getEstimatedInstallationDate() { + if (estimatedInstallationDateBuilder_ == null) { + return estimatedInstallationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : estimatedInstallationDate_; } else { - return (com.google.protobuf.ByteString) ref; + return estimatedInstallationDateBuilder_.getMessage(); } } @@ -5324,20 +7009,23 @@ public com.google.protobuf.ByteString getBillingIdBytes() { * * *
    -     * Output only. The Google Cloud Billing ID to be charged for this order.
    +     * Output only. Estimated installation date for this order.
          * 
    * - * string billing_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The billingId to set. - * @return This builder for chaining. + * + * .google.type.Date estimated_installation_date = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setBillingId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder setEstimatedInstallationDate(com.google.type.Date value) { + if (estimatedInstallationDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + estimatedInstallationDate_ = value; + } else { + estimatedInstallationDateBuilder_.setMessage(value); } - billingId_ = value; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -5346,16 +7034,20 @@ public Builder setBillingId(java.lang.String value) { * * *
    -     * Output only. The Google Cloud Billing ID to be charged for this order.
    +     * Output only. Estimated installation date for this order.
          * 
    * - * string billing_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. + * + * .google.type.Date estimated_installation_date = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder clearBillingId() { - billingId_ = getDefaultInstance().getBillingId(); - bitField0_ = (bitField0_ & ~0x00004000); + public Builder setEstimatedInstallationDate(com.google.type.Date.Builder builderForValue) { + if (estimatedInstallationDateBuilder_ == null) { + estimatedInstallationDate_ = builderForValue.build(); + } else { + estimatedInstallationDateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -5364,102 +7056,89 @@ public Builder clearBillingId() { * * *
    -     * Output only. The Google Cloud Billing ID to be charged for this order.
    +     * Output only. Estimated installation date for this order.
          * 
    * - * string billing_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for billingId to set. - * @return This builder for chaining. + * + * .google.type.Date estimated_installation_date = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setBillingIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder mergeEstimatedInstallationDate(com.google.type.Date value) { + if (estimatedInstallationDateBuilder_ == null) { + if (((bitField0_ & 0x00080000) != 0) + && estimatedInstallationDate_ != null + && estimatedInstallationDate_ != com.google.type.Date.getDefaultInstance()) { + getEstimatedInstallationDateBuilder().mergeFrom(value); + } else { + estimatedInstallationDate_ = value; + } + } else { + estimatedInstallationDateBuilder_.mergeFrom(value); } - checkByteStringIsUtf8(value); - billingId_ = value; - bitField0_ |= 0x00004000; - onChanged(); - return this; - } - - private java.util.List - existingHardware_ = java.util.Collections.emptyList(); - - private void ensureExistingHardwareIsMutable() { - if (!((bitField0_ & 0x00008000) != 0)) { - existingHardware_ = - new java.util.ArrayList< - com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation>(existingHardware_); - bitField0_ |= 0x00008000; + if (estimatedInstallationDate_ != null) { + bitField0_ |= 0x00080000; + onChanged(); } + return this; } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation, - com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation.Builder, - com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocationOrBuilder> - existingHardwareBuilder_; - /** * * *
    -     * Optional. Existing hardware to be removed as part of this order.
    -     * Note: any hardware removed will be recycled unless otherwise agreed.
    +     * Output only. Estimated installation date for this order.
          * 
    * * - * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; + * .google.type.Date estimated_installation_date = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public java.util.List - getExistingHardwareList() { - if (existingHardwareBuilder_ == null) { - return java.util.Collections.unmodifiableList(existingHardware_); - } else { - return existingHardwareBuilder_.getMessageList(); + public Builder clearEstimatedInstallationDate() { + bitField0_ = (bitField0_ & ~0x00080000); + estimatedInstallationDate_ = null; + if (estimatedInstallationDateBuilder_ != null) { + estimatedInstallationDateBuilder_.dispose(); + estimatedInstallationDateBuilder_ = null; } + onChanged(); + return this; } /** * * *
    -     * Optional. Existing hardware to be removed as part of this order.
    -     * Note: any hardware removed will be recycled unless otherwise agreed.
    +     * Output only. Estimated installation date for this order.
          * 
    * * - * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; + * .google.type.Date estimated_installation_date = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public int getExistingHardwareCount() { - if (existingHardwareBuilder_ == null) { - return existingHardware_.size(); - } else { - return existingHardwareBuilder_.getCount(); - } + public com.google.type.Date.Builder getEstimatedInstallationDateBuilder() { + bitField0_ |= 0x00080000; + onChanged(); + return getEstimatedInstallationDateFieldBuilder().getBuilder(); } /** * * *
    -     * Optional. Existing hardware to be removed as part of this order.
    -     * Note: any hardware removed will be recycled unless otherwise agreed.
    +     * Output only. Estimated installation date for this order.
          * 
    * * - * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; + * .google.type.Date estimated_installation_date = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation getExistingHardware( - int index) { - if (existingHardwareBuilder_ == null) { - return existingHardware_.get(index); + public com.google.type.DateOrBuilder getEstimatedInstallationDateOrBuilder() { + if (estimatedInstallationDateBuilder_ != null) { + return estimatedInstallationDateBuilder_.getMessageOrBuilder(); } else { - return existingHardwareBuilder_.getMessage(index); + return estimatedInstallationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : estimatedInstallationDate_; } } @@ -5467,105 +7146,93 @@ public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation getExisti * * *
    -     * Optional. Existing hardware to be removed as part of this order.
    -     * Note: any hardware removed will be recycled unless otherwise agreed.
    +     * Output only. Estimated installation date for this order.
          * 
    * * - * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; + * .google.type.Date estimated_installation_date = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setExistingHardware( - int index, com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation value) { - if (existingHardwareBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExistingHardwareIsMutable(); - existingHardware_.set(index, value); - onChanged(); - } else { - existingHardwareBuilder_.setMessage(index, value); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getEstimatedInstallationDateFieldBuilder() { + if (estimatedInstallationDateBuilder_ == null) { + estimatedInstallationDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getEstimatedInstallationDate(), getParentForChildren(), isClean()); + estimatedInstallationDate_ = null; } - return this; + return estimatedInstallationDateBuilder_; } + private com.google.type.Date estimatedDeliveryDate_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + estimatedDeliveryDateBuilder_; + /** * * *
    -     * Optional. Existing hardware to be removed as part of this order.
    -     * Note: any hardware removed will be recycled unless otherwise agreed.
    +     * Output only. Estimated delivery date for this order.
          * 
    * * - * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; + * .google.type.Date estimated_delivery_date = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return Whether the estimatedDeliveryDate field is set. */ - public Builder setExistingHardware( - int index, - com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation.Builder builderForValue) { - if (existingHardwareBuilder_ == null) { - ensureExistingHardwareIsMutable(); - existingHardware_.set(index, builderForValue.build()); - onChanged(); - } else { - existingHardwareBuilder_.setMessage(index, builderForValue.build()); - } - return this; + public boolean hasEstimatedDeliveryDate() { + return ((bitField0_ & 0x00100000) != 0); } /** * * *
    -     * Optional. Existing hardware to be removed as part of this order.
    -     * Note: any hardware removed will be recycled unless otherwise agreed.
    +     * Output only. Estimated delivery date for this order.
          * 
    * * - * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; + * .google.type.Date estimated_delivery_date = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return The estimatedDeliveryDate. */ - public Builder addExistingHardware( - com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation value) { - if (existingHardwareBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExistingHardwareIsMutable(); - existingHardware_.add(value); - onChanged(); + public com.google.type.Date getEstimatedDeliveryDate() { + if (estimatedDeliveryDateBuilder_ == null) { + return estimatedDeliveryDate_ == null + ? com.google.type.Date.getDefaultInstance() + : estimatedDeliveryDate_; } else { - existingHardwareBuilder_.addMessage(value); + return estimatedDeliveryDateBuilder_.getMessage(); } - return this; } /** * * *
    -     * Optional. Existing hardware to be removed as part of this order.
    -     * Note: any hardware removed will be recycled unless otherwise agreed.
    +     * Output only. Estimated delivery date for this order.
          * 
    * * - * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; + * .google.type.Date estimated_delivery_date = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder addExistingHardware( - int index, com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation value) { - if (existingHardwareBuilder_ == null) { + public Builder setEstimatedDeliveryDate(com.google.type.Date value) { + if (estimatedDeliveryDateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureExistingHardwareIsMutable(); - existingHardware_.add(index, value); - onChanged(); + estimatedDeliveryDate_ = value; } else { - existingHardwareBuilder_.addMessage(index, value); + estimatedDeliveryDateBuilder_.setMessage(value); } + bitField0_ |= 0x00100000; + onChanged(); return this; } @@ -5573,23 +7240,21 @@ public Builder addExistingHardware( * * *
    -     * Optional. Existing hardware to be removed as part of this order.
    -     * Note: any hardware removed will be recycled unless otherwise agreed.
    +     * Output only. Estimated delivery date for this order.
          * 
    * * - * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; + * .google.type.Date estimated_delivery_date = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder addExistingHardware( - com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation.Builder builderForValue) { - if (existingHardwareBuilder_ == null) { - ensureExistingHardwareIsMutable(); - existingHardware_.add(builderForValue.build()); - onChanged(); + public Builder setEstimatedDeliveryDate(com.google.type.Date.Builder builderForValue) { + if (estimatedDeliveryDateBuilder_ == null) { + estimatedDeliveryDate_ = builderForValue.build(); } else { - existingHardwareBuilder_.addMessage(builderForValue.build()); + estimatedDeliveryDateBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00100000; + onChanged(); return this; } @@ -5597,23 +7262,28 @@ public Builder addExistingHardware( * * *
    -     * Optional. Existing hardware to be removed as part of this order.
    -     * Note: any hardware removed will be recycled unless otherwise agreed.
    +     * Output only. Estimated delivery date for this order.
          * 
    * * - * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; + * .google.type.Date estimated_delivery_date = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder addExistingHardware( - int index, - com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation.Builder builderForValue) { - if (existingHardwareBuilder_ == null) { - ensureExistingHardwareIsMutable(); - existingHardware_.add(index, builderForValue.build()); - onChanged(); + public Builder mergeEstimatedDeliveryDate(com.google.type.Date value) { + if (estimatedDeliveryDateBuilder_ == null) { + if (((bitField0_ & 0x00100000) != 0) + && estimatedDeliveryDate_ != null + && estimatedDeliveryDate_ != com.google.type.Date.getDefaultInstance()) { + getEstimatedDeliveryDateBuilder().mergeFrom(value); + } else { + estimatedDeliveryDate_ = value; + } } else { - existingHardwareBuilder_.addMessage(index, builderForValue.build()); + estimatedDeliveryDateBuilder_.mergeFrom(value); + } + if (estimatedDeliveryDate_ != null) { + bitField0_ |= 0x00100000; + onChanged(); } return this; } @@ -5622,25 +7292,21 @@ public Builder addExistingHardware( * * *
    -     * Optional. Existing hardware to be removed as part of this order.
    -     * Note: any hardware removed will be recycled unless otherwise agreed.
    +     * Output only. Estimated delivery date for this order.
          * 
    * * - * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; + * .google.type.Date estimated_delivery_date = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder addAllExistingHardware( - java.lang.Iterable< - ? extends com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation> - values) { - if (existingHardwareBuilder_ == null) { - ensureExistingHardwareIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, existingHardware_); - onChanged(); - } else { - existingHardwareBuilder_.addAllMessages(values); + public Builder clearEstimatedDeliveryDate() { + bitField0_ = (bitField0_ & ~0x00100000); + estimatedDeliveryDate_ = null; + if (estimatedDeliveryDateBuilder_ != null) { + estimatedDeliveryDateBuilder_.dispose(); + estimatedDeliveryDateBuilder_ = null; } + onChanged(); return this; } @@ -5648,221 +7314,265 @@ public Builder addAllExistingHardware( * * *
    -     * Optional. Existing hardware to be removed as part of this order.
    -     * Note: any hardware removed will be recycled unless otherwise agreed.
    +     * Output only. Estimated delivery date for this order.
          * 
    * * - * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; + * .google.type.Date estimated_delivery_date = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder clearExistingHardware() { - if (existingHardwareBuilder_ == null) { - existingHardware_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00008000); - onChanged(); - } else { - existingHardwareBuilder_.clear(); - } - return this; + public com.google.type.Date.Builder getEstimatedDeliveryDateBuilder() { + bitField0_ |= 0x00100000; + onChanged(); + return getEstimatedDeliveryDateFieldBuilder().getBuilder(); } /** * * *
    -     * Optional. Existing hardware to be removed as part of this order.
    -     * Note: any hardware removed will be recycled unless otherwise agreed.
    +     * Output only. Estimated delivery date for this order.
          * 
    * * - * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; + * .google.type.Date estimated_delivery_date = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder removeExistingHardware(int index) { - if (existingHardwareBuilder_ == null) { - ensureExistingHardwareIsMutable(); - existingHardware_.remove(index); - onChanged(); + public com.google.type.DateOrBuilder getEstimatedDeliveryDateOrBuilder() { + if (estimatedDeliveryDateBuilder_ != null) { + return estimatedDeliveryDateBuilder_.getMessageOrBuilder(); } else { - existingHardwareBuilder_.remove(index); + return estimatedDeliveryDate_ == null + ? com.google.type.Date.getDefaultInstance() + : estimatedDeliveryDate_; } - return this; } /** * * *
    -     * Optional. Existing hardware to be removed as part of this order.
    -     * Note: any hardware removed will be recycled unless otherwise agreed.
    +     * Output only. Estimated delivery date for this order.
          * 
    * * - * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; + * .google.type.Date estimated_delivery_date = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation.Builder - getExistingHardwareBuilder(int index) { - return getExistingHardwareFieldBuilder().getBuilder(index); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getEstimatedDeliveryDateFieldBuilder() { + if (estimatedDeliveryDateBuilder_ == null) { + estimatedDeliveryDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getEstimatedDeliveryDate(), getParentForChildren(), isClean()); + estimatedDeliveryDate_ = null; + } + return estimatedDeliveryDateBuilder_; } + private boolean migration_; + /** * * *
    -     * Optional. Existing hardware to be removed as part of this order.
    -     * Note: any hardware removed will be recycled unless otherwise agreed.
    +     * Optional. Whether this order is a migration from customer's existing
    +     * infrastructure.
          * 
    * - * - * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * bool migration = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The migration. */ - public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocationOrBuilder - getExistingHardwareOrBuilder(int index) { - if (existingHardwareBuilder_ == null) { - return existingHardware_.get(index); - } else { - return existingHardwareBuilder_.getMessageOrBuilder(index); - } + @java.lang.Override + public boolean getMigration() { + return migration_; } /** * * *
    -     * Optional. Existing hardware to be removed as part of this order.
    -     * Note: any hardware removed will be recycled unless otherwise agreed.
    +     * Optional. Whether this order is a migration from customer's existing
    +     * infrastructure.
          * 
    * - * - * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; - * + * bool migration = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The migration to set. + * @return This builder for chaining. */ - public java.util.List< - ? extends com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocationOrBuilder> - getExistingHardwareOrBuilderList() { - if (existingHardwareBuilder_ != null) { - return existingHardwareBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(existingHardware_); - } + public Builder setMigration(boolean value) { + + migration_ = value; + bitField0_ |= 0x00200000; + onChanged(); + return this; } /** * * *
    -     * Optional. Existing hardware to be removed as part of this order.
    -     * Note: any hardware removed will be recycled unless otherwise agreed.
    +     * Optional. Whether this order is a migration from customer's existing
    +     * infrastructure.
    +     * 
    + * + * bool migration = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMigration() { + bitField0_ = (bitField0_ & ~0x00200000); + migration_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp acceptedTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + acceptedTimeBuilder_; + + /** + * + * + *
    +     * Output only. The time when the order was moved to ACCEPTED state.
          * 
    * * - * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp accepted_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return Whether the acceptedTime field is set. */ - public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation.Builder - addExistingHardwareBuilder() { - return getExistingHardwareFieldBuilder() - .addBuilder( - com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation.getDefaultInstance()); + public boolean hasAcceptedTime() { + return ((bitField0_ & 0x00400000) != 0); } /** * * *
    -     * Optional. Existing hardware to be removed as part of this order.
    -     * Note: any hardware removed will be recycled unless otherwise agreed.
    +     * Output only. The time when the order was moved to ACCEPTED state.
          * 
    * * - * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp accepted_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return The acceptedTime. */ - public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation.Builder - addExistingHardwareBuilder(int index) { - return getExistingHardwareFieldBuilder() - .addBuilder( - index, - com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation.getDefaultInstance()); + public com.google.protobuf.Timestamp getAcceptedTime() { + if (acceptedTimeBuilder_ == null) { + return acceptedTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : acceptedTime_; + } else { + return acceptedTimeBuilder_.getMessage(); + } } /** * * *
    -     * Optional. Existing hardware to be removed as part of this order.
    -     * Note: any hardware removed will be recycled unless otherwise agreed.
    +     * Output only. The time when the order was moved to ACCEPTED state.
          * 
    * * - * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp accepted_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public java.util.List - getExistingHardwareBuilderList() { - return getExistingHardwareFieldBuilder().getBuilderList(); + public Builder setAcceptedTime(com.google.protobuf.Timestamp value) { + if (acceptedTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + acceptedTime_ = value; + } else { + acceptedTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00400000; + onChanged(); + return this; } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation, - com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation.Builder, - com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocationOrBuilder> - getExistingHardwareFieldBuilder() { - if (existingHardwareBuilder_ == null) { - existingHardwareBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation, - com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation.Builder, - com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocationOrBuilder>( - existingHardware_, - ((bitField0_ & 0x00008000) != 0), - getParentForChildren(), - isClean()); - existingHardware_ = null; + /** + * + * + *
    +     * Output only. The time when the order was moved to ACCEPTED state.
    +     * 
    + * + * + * .google.protobuf.Timestamp accepted_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAcceptedTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (acceptedTimeBuilder_ == null) { + acceptedTime_ = builderForValue.build(); + } else { + acceptedTimeBuilder_.setMessage(builderForValue.build()); } - return existingHardwareBuilder_; + bitField0_ |= 0x00400000; + onChanged(); + return this; } - private int deploymentType_ = 0; - /** * * *
    -     * Output only. The deployment type of this order.
    +     * Output only. The time when the order was moved to ACCEPTED state.
          * 
    * * - * .google.cloud.gdchardwaremanagement.v1alpha.Order.DeploymentType deployment_type = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp accepted_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return The enum numeric value on the wire for deploymentType. */ - @java.lang.Override - public int getDeploymentTypeValue() { - return deploymentType_; + public Builder mergeAcceptedTime(com.google.protobuf.Timestamp value) { + if (acceptedTimeBuilder_ == null) { + if (((bitField0_ & 0x00400000) != 0) + && acceptedTime_ != null + && acceptedTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getAcceptedTimeBuilder().mergeFrom(value); + } else { + acceptedTime_ = value; + } + } else { + acceptedTimeBuilder_.mergeFrom(value); + } + if (acceptedTime_ != null) { + bitField0_ |= 0x00400000; + onChanged(); + } + return this; } /** * * *
    -     * Output only. The deployment type of this order.
    +     * Output only. The time when the order was moved to ACCEPTED state.
          * 
    * * - * .google.cloud.gdchardwaremanagement.v1alpha.Order.DeploymentType deployment_type = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp accepted_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @param value The enum numeric value on the wire for deploymentType to set. - * @return This builder for chaining. */ - public Builder setDeploymentTypeValue(int value) { - deploymentType_ = value; - bitField0_ |= 0x00010000; + public Builder clearAcceptedTime() { + bitField0_ = (bitField0_ & ~0x00400000); + acceptedTime_ = null; + if (acceptedTimeBuilder_ != null) { + acceptedTimeBuilder_.dispose(); + acceptedTimeBuilder_ = null; + } onChanged(); return this; } @@ -5871,112 +7581,112 @@ public Builder setDeploymentTypeValue(int value) { * * *
    -     * Output only. The deployment type of this order.
    +     * Output only. The time when the order was moved to ACCEPTED state.
          * 
    * * - * .google.cloud.gdchardwaremanagement.v1alpha.Order.DeploymentType deployment_type = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp accepted_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return The deploymentType. */ - @java.lang.Override - public com.google.cloud.gdchardwaremanagement.v1alpha.Order.DeploymentType getDeploymentType() { - com.google.cloud.gdchardwaremanagement.v1alpha.Order.DeploymentType result = - com.google.cloud.gdchardwaremanagement.v1alpha.Order.DeploymentType.forNumber( - deploymentType_); - return result == null - ? com.google.cloud.gdchardwaremanagement.v1alpha.Order.DeploymentType.UNRECOGNIZED - : result; + public com.google.protobuf.Timestamp.Builder getAcceptedTimeBuilder() { + bitField0_ |= 0x00400000; + onChanged(); + return getAcceptedTimeFieldBuilder().getBuilder(); } /** * * *
    -     * Output only. The deployment type of this order.
    +     * Output only. The time when the order was moved to ACCEPTED state.
          * 
    * * - * .google.cloud.gdchardwaremanagement.v1alpha.Order.DeploymentType deployment_type = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp accepted_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @param value The deploymentType to set. - * @return This builder for chaining. */ - public Builder setDeploymentType( - com.google.cloud.gdchardwaremanagement.v1alpha.Order.DeploymentType value) { - if (value == null) { - throw new NullPointerException(); + public com.google.protobuf.TimestampOrBuilder getAcceptedTimeOrBuilder() { + if (acceptedTimeBuilder_ != null) { + return acceptedTimeBuilder_.getMessageOrBuilder(); + } else { + return acceptedTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : acceptedTime_; } - bitField0_ |= 0x00010000; - deploymentType_ = value.getNumber(); - onChanged(); - return this; } /** * * *
    -     * Output only. The deployment type of this order.
    +     * Output only. The time when the order was moved to ACCEPTED state.
          * 
    * * - * .google.cloud.gdchardwaremanagement.v1alpha.Order.DeploymentType deployment_type = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp accepted_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return This builder for chaining. */ - public Builder clearDeploymentType() { - bitField0_ = (bitField0_ & ~0x00010000); - deploymentType_ = 0; - onChanged(); - return this; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getAcceptedTimeFieldBuilder() { + if (acceptedTimeBuilder_ == null) { + acceptedTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getAcceptedTime(), getParentForChildren(), isClean()); + acceptedTime_ = null; + } + return acceptedTimeBuilder_; } - private com.google.type.Date actualInstallationDate_; + private com.google.type.Date requestedDateChange_; private com.google.protobuf.SingleFieldBuilderV3< com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - actualInstallationDateBuilder_; + requestedDateChangeBuilder_; /** * * *
    -     * Output only. Actual installation date for this order.
    +     * Output only. The date to which the customer or Google wants to set the
    +     * scheduled installation date.
          * 
    * * - * .google.type.Date actual_installation_date = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.type.Date requested_date_change = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return Whether the actualInstallationDate field is set. + * @return Whether the requestedDateChange field is set. */ - public boolean hasActualInstallationDate() { - return ((bitField0_ & 0x00020000) != 0); + public boolean hasRequestedDateChange() { + return ((bitField0_ & 0x00800000) != 0); } /** * * *
    -     * Output only. Actual installation date for this order.
    +     * Output only. The date to which the customer or Google wants to set the
    +     * scheduled installation date.
          * 
    * * - * .google.type.Date actual_installation_date = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.type.Date requested_date_change = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return The actualInstallationDate. + * @return The requestedDateChange. */ - public com.google.type.Date getActualInstallationDate() { - if (actualInstallationDateBuilder_ == null) { - return actualInstallationDate_ == null + public com.google.type.Date getRequestedDateChange() { + if (requestedDateChangeBuilder_ == null) { + return requestedDateChange_ == null ? com.google.type.Date.getDefaultInstance() - : actualInstallationDate_; + : requestedDateChange_; } else { - return actualInstallationDateBuilder_.getMessage(); + return requestedDateChangeBuilder_.getMessage(); } } @@ -5984,23 +7694,24 @@ public com.google.type.Date getActualInstallationDate() { * * *
    -     * Output only. Actual installation date for this order.
    +     * Output only. The date to which the customer or Google wants to set the
    +     * scheduled installation date.
          * 
    * * - * .google.type.Date actual_installation_date = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.type.Date requested_date_change = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setActualInstallationDate(com.google.type.Date value) { - if (actualInstallationDateBuilder_ == null) { + public Builder setRequestedDateChange(com.google.type.Date value) { + if (requestedDateChangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - actualInstallationDate_ = value; + requestedDateChange_ = value; } else { - actualInstallationDateBuilder_.setMessage(value); + requestedDateChangeBuilder_.setMessage(value); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -6009,20 +7720,21 @@ public Builder setActualInstallationDate(com.google.type.Date value) { * * *
    -     * Output only. Actual installation date for this order.
    +     * Output only. The date to which the customer or Google wants to set the
    +     * scheduled installation date.
          * 
    * * - * .google.type.Date actual_installation_date = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.type.Date requested_date_change = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setActualInstallationDate(com.google.type.Date.Builder builderForValue) { - if (actualInstallationDateBuilder_ == null) { - actualInstallationDate_ = builderForValue.build(); + public Builder setRequestedDateChange(com.google.type.Date.Builder builderForValue) { + if (requestedDateChangeBuilder_ == null) { + requestedDateChange_ = builderForValue.build(); } else { - actualInstallationDateBuilder_.setMessage(builderForValue.build()); + requestedDateChangeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -6031,27 +7743,28 @@ public Builder setActualInstallationDate(com.google.type.Date.Builder builderFor * * *
    -     * Output only. Actual installation date for this order.
    +     * Output only. The date to which the customer or Google wants to set the
    +     * scheduled installation date.
          * 
    * * - * .google.type.Date actual_installation_date = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.type.Date requested_date_change = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder mergeActualInstallationDate(com.google.type.Date value) { - if (actualInstallationDateBuilder_ == null) { - if (((bitField0_ & 0x00020000) != 0) - && actualInstallationDate_ != null - && actualInstallationDate_ != com.google.type.Date.getDefaultInstance()) { - getActualInstallationDateBuilder().mergeFrom(value); + public Builder mergeRequestedDateChange(com.google.type.Date value) { + if (requestedDateChangeBuilder_ == null) { + if (((bitField0_ & 0x00800000) != 0) + && requestedDateChange_ != null + && requestedDateChange_ != com.google.type.Date.getDefaultInstance()) { + getRequestedDateChangeBuilder().mergeFrom(value); } else { - actualInstallationDate_ = value; + requestedDateChange_ = value; } } else { - actualInstallationDateBuilder_.mergeFrom(value); + requestedDateChangeBuilder_.mergeFrom(value); } - if (actualInstallationDate_ != null) { - bitField0_ |= 0x00020000; + if (requestedDateChange_ != null) { + bitField0_ |= 0x00800000; onChanged(); } return this; @@ -6061,19 +7774,20 @@ public Builder mergeActualInstallationDate(com.google.type.Date value) { * * *
    -     * Output only. Actual installation date for this order.
    +     * Output only. The date to which the customer or Google wants to set the
    +     * scheduled installation date.
          * 
    * * - * .google.type.Date actual_installation_date = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.type.Date requested_date_change = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder clearActualInstallationDate() { - bitField0_ = (bitField0_ & ~0x00020000); - actualInstallationDate_ = null; - if (actualInstallationDateBuilder_ != null) { - actualInstallationDateBuilder_.dispose(); - actualInstallationDateBuilder_ = null; + public Builder clearRequestedDateChange() { + bitField0_ = (bitField0_ & ~0x00800000); + requestedDateChange_ = null; + if (requestedDateChangeBuilder_ != null) { + requestedDateChangeBuilder_.dispose(); + requestedDateChangeBuilder_ = null; } onChanged(); return this; @@ -6083,37 +7797,39 @@ public Builder clearActualInstallationDate() { * * *
    -     * Output only. Actual installation date for this order.
    +     * Output only. The date to which the customer or Google wants to set the
    +     * scheduled installation date.
          * 
    * * - * .google.type.Date actual_installation_date = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.type.Date requested_date_change = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.type.Date.Builder getActualInstallationDateBuilder() { - bitField0_ |= 0x00020000; + public com.google.type.Date.Builder getRequestedDateChangeBuilder() { + bitField0_ |= 0x00800000; onChanged(); - return getActualInstallationDateFieldBuilder().getBuilder(); + return getRequestedDateChangeFieldBuilder().getBuilder(); } /** * * *
    -     * Output only. Actual installation date for this order.
    +     * Output only. The date to which the customer or Google wants to set the
    +     * scheduled installation date.
          * 
    * * - * .google.type.Date actual_installation_date = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.type.Date requested_date_change = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.type.DateOrBuilder getActualInstallationDateOrBuilder() { - if (actualInstallationDateBuilder_ != null) { - return actualInstallationDateBuilder_.getMessageOrBuilder(); + public com.google.type.DateOrBuilder getRequestedDateChangeOrBuilder() { + if (requestedDateChangeBuilder_ != null) { + return requestedDateChangeBuilder_.getMessageOrBuilder(); } else { - return actualInstallationDate_ == null + return requestedDateChange_ == null ? com.google.type.Date.getDefaultInstance() - : actualInstallationDate_; + : requestedDateChange_; } } @@ -6121,68 +7837,183 @@ public com.google.type.DateOrBuilder getActualInstallationDateOrBuilder() { * * *
    -     * Output only. Actual installation date for this order.
    +     * Output only. The date to which the customer or Google wants to set the
    +     * scheduled installation date.
          * 
    * * - * .google.type.Date actual_installation_date = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.type.Date requested_date_change = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - getActualInstallationDateFieldBuilder() { - if (actualInstallationDateBuilder_ == null) { - actualInstallationDateBuilder_ = + getRequestedDateChangeFieldBuilder() { + if (requestedDateChangeBuilder_ == null) { + requestedDateChangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( - getActualInstallationDate(), getParentForChildren(), isClean()); - actualInstallationDate_ = null; + getRequestedDateChange(), getParentForChildren(), isClean()); + requestedDateChange_ = null; } - return actualInstallationDateBuilder_; + return requestedDateChangeBuilder_; } - private com.google.type.Date estimatedInstallationDate_; + private java.lang.Object vendorNotes_ = ""; + + /** + * + * + *
    +     * Output only. Notes for this order, provided by the vendor.
    +     * 
    + * + * string vendor_notes = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The vendorNotes. + */ + public java.lang.String getVendorNotes() { + java.lang.Object ref = vendorNotes_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vendorNotes_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Output only. Notes for this order, provided by the vendor.
    +     * 
    + * + * string vendor_notes = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for vendorNotes. + */ + public com.google.protobuf.ByteString getVendorNotesBytes() { + java.lang.Object ref = vendorNotes_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vendorNotes_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Output only. Notes for this order, provided by the vendor.
    +     * 
    + * + * string vendor_notes = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The vendorNotes to set. + * @return This builder for chaining. + */ + public Builder setVendorNotes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + vendorNotes_ = value; + bitField0_ |= 0x01000000; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Notes for this order, provided by the vendor.
    +     * 
    + * + * string vendor_notes = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearVendorNotes() { + vendorNotes_ = getDefaultInstance().getVendorNotes(); + bitField0_ = (bitField0_ & ~0x01000000); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Notes for this order, provided by the vendor.
    +     * 
    + * + * string vendor_notes = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for vendorNotes to set. + * @return This builder for chaining. + */ + public Builder setVendorNotesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vendorNotes_ = value; + bitField0_ |= 0x01000000; + onChanged(); + return this; + } + + private com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact vendorContact_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - estimatedInstallationDateBuilder_; + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact, + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContactOrBuilder> + vendorContactBuilder_; /** * * *
    -     * Output only. Estimated installation date for this order.
    +     * Output only. Contact information of the SI assigned to this order.
          * 
    * * - * .google.type.Date estimated_installation_date = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact vendor_contact = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return Whether the estimatedInstallationDate field is set. + * @return Whether the vendorContact field is set. */ - public boolean hasEstimatedInstallationDate() { - return ((bitField0_ & 0x00040000) != 0); + public boolean hasVendorContact() { + return ((bitField0_ & 0x02000000) != 0); } /** * * *
    -     * Output only. Estimated installation date for this order.
    +     * Output only. Contact information of the SI assigned to this order.
          * 
    * * - * .google.type.Date estimated_installation_date = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact vendor_contact = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return The estimatedInstallationDate. + * @return The vendorContact. */ - public com.google.type.Date getEstimatedInstallationDate() { - if (estimatedInstallationDateBuilder_ == null) { - return estimatedInstallationDate_ == null - ? com.google.type.Date.getDefaultInstance() - : estimatedInstallationDate_; + public com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact getVendorContact() { + if (vendorContactBuilder_ == null) { + return vendorContact_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact + .getDefaultInstance() + : vendorContact_; } else { - return estimatedInstallationDateBuilder_.getMessage(); + return vendorContactBuilder_.getMessage(); } } @@ -6190,23 +8021,24 @@ public com.google.type.Date getEstimatedInstallationDate() { * * *
    -     * Output only. Estimated installation date for this order.
    +     * Output only. Contact information of the SI assigned to this order.
          * 
    * * - * .google.type.Date estimated_installation_date = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact vendor_contact = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setEstimatedInstallationDate(com.google.type.Date value) { - if (estimatedInstallationDateBuilder_ == null) { + public Builder setVendorContact( + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact value) { + if (vendorContactBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - estimatedInstallationDate_ = value; + vendorContact_ = value; } else { - estimatedInstallationDateBuilder_.setMessage(value); + vendorContactBuilder_.setMessage(value); } - bitField0_ |= 0x00040000; + bitField0_ |= 0x02000000; onChanged(); return this; } @@ -6215,20 +8047,22 @@ public Builder setEstimatedInstallationDate(com.google.type.Date value) { * * *
    -     * Output only. Estimated installation date for this order.
    +     * Output only. Contact information of the SI assigned to this order.
          * 
    * * - * .google.type.Date estimated_installation_date = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact vendor_contact = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setEstimatedInstallationDate(com.google.type.Date.Builder builderForValue) { - if (estimatedInstallationDateBuilder_ == null) { - estimatedInstallationDate_ = builderForValue.build(); + public Builder setVendorContact( + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact.Builder + builderForValue) { + if (vendorContactBuilder_ == null) { + vendorContact_ = builderForValue.build(); } else { - estimatedInstallationDateBuilder_.setMessage(builderForValue.build()); + vendorContactBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00040000; + bitField0_ |= 0x02000000; onChanged(); return this; } @@ -6237,27 +8071,30 @@ public Builder setEstimatedInstallationDate(com.google.type.Date.Builder builder * * *
    -     * Output only. Estimated installation date for this order.
    +     * Output only. Contact information of the SI assigned to this order.
          * 
    * * - * .google.type.Date estimated_installation_date = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact vendor_contact = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder mergeEstimatedInstallationDate(com.google.type.Date value) { - if (estimatedInstallationDateBuilder_ == null) { - if (((bitField0_ & 0x00040000) != 0) - && estimatedInstallationDate_ != null - && estimatedInstallationDate_ != com.google.type.Date.getDefaultInstance()) { - getEstimatedInstallationDateBuilder().mergeFrom(value); + public Builder mergeVendorContact( + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact value) { + if (vendorContactBuilder_ == null) { + if (((bitField0_ & 0x02000000) != 0) + && vendorContact_ != null + && vendorContact_ + != com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact + .getDefaultInstance()) { + getVendorContactBuilder().mergeFrom(value); } else { - estimatedInstallationDate_ = value; + vendorContact_ = value; } } else { - estimatedInstallationDateBuilder_.mergeFrom(value); + vendorContactBuilder_.mergeFrom(value); } - if (estimatedInstallationDate_ != null) { - bitField0_ |= 0x00040000; + if (vendorContact_ != null) { + bitField0_ |= 0x02000000; onChanged(); } return this; @@ -6267,19 +8104,19 @@ public Builder mergeEstimatedInstallationDate(com.google.type.Date value) { * * *
    -     * Output only. Estimated installation date for this order.
    +     * Output only. Contact information of the SI assigned to this order.
          * 
    * * - * .google.type.Date estimated_installation_date = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact vendor_contact = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder clearEstimatedInstallationDate() { - bitField0_ = (bitField0_ & ~0x00040000); - estimatedInstallationDate_ = null; - if (estimatedInstallationDateBuilder_ != null) { - estimatedInstallationDateBuilder_.dispose(); - estimatedInstallationDateBuilder_ = null; + public Builder clearVendorContact() { + bitField0_ = (bitField0_ & ~0x02000000); + vendorContact_ = null; + if (vendorContactBuilder_ != null) { + vendorContactBuilder_.dispose(); + vendorContactBuilder_ = null; } onChanged(); return this; @@ -6289,37 +8126,40 @@ public Builder clearEstimatedInstallationDate() { * * *
    -     * Output only. Estimated installation date for this order.
    +     * Output only. Contact information of the SI assigned to this order.
          * 
    * * - * .google.type.Date estimated_installation_date = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact vendor_contact = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.type.Date.Builder getEstimatedInstallationDateBuilder() { - bitField0_ |= 0x00040000; + public com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact.Builder + getVendorContactBuilder() { + bitField0_ |= 0x02000000; onChanged(); - return getEstimatedInstallationDateFieldBuilder().getBuilder(); + return getVendorContactFieldBuilder().getBuilder(); } /** * * *
    -     * Output only. Estimated installation date for this order.
    +     * Output only. Contact information of the SI assigned to this order.
          * 
    * * - * .google.type.Date estimated_installation_date = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact vendor_contact = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.type.DateOrBuilder getEstimatedInstallationDateOrBuilder() { - if (estimatedInstallationDateBuilder_ != null) { - return estimatedInstallationDateBuilder_.getMessageOrBuilder(); + public com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContactOrBuilder + getVendorContactOrBuilder() { + if (vendorContactBuilder_ != null) { + return vendorContactBuilder_.getMessageOrBuilder(); } else { - return estimatedInstallationDate_ == null - ? com.google.type.Date.getDefaultInstance() - : estimatedInstallationDate_; + return vendorContact_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact + .getDefaultInstance() + : vendorContact_; } } @@ -6327,24 +8167,28 @@ public com.google.type.DateOrBuilder getEstimatedInstallationDateOrBuilder() { * * *
    -     * Output only. Estimated installation date for this order.
    +     * Output only. Contact information of the SI assigned to this order.
          * 
    * * - * .google.type.Date estimated_installation_date = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact vendor_contact = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - getEstimatedInstallationDateFieldBuilder() { - if (estimatedInstallationDateBuilder_ == null) { - estimatedInstallationDateBuilder_ = + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact, + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContactOrBuilder> + getVendorContactFieldBuilder() { + if (vendorContactBuilder_ == null) { + vendorContactBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( - getEstimatedInstallationDate(), getParentForChildren(), isClean()); - estimatedInstallationDate_ = null; + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact, + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContactOrBuilder>( + getVendorContact(), getParentForChildren(), isClean()); + vendorContact_ = null; } - return estimatedInstallationDateBuilder_; + return vendorContactBuilder_; } @java.lang.Override diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/OrderOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/OrderOrBuilder.java index b09dec89a5d7..e21251e71947 100644 --- a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/OrderOrBuilder.java +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/OrderOrBuilder.java @@ -401,48 +401,95 @@ java.lang.String getLabelsOrDefault( * * *
    -   * Required. Customer specified deadline by when this order should be
    -   * fulfilled.
    +   * Deprecated: Please use customer_requested_installation_date instead.
        * 
    * * - * .google.protobuf.Timestamp fulfillment_time = 9 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp fulfillment_time = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.gdchardwaremanagement.v1alpha.Order.fulfillment_time is deprecated. + * See google/cloud/gdchardwaremanagement/v1alpha/resources.proto;l=190 * @return Whether the fulfillmentTime field is set. */ + @java.lang.Deprecated boolean hasFulfillmentTime(); /** * * *
    -   * Required. Customer specified deadline by when this order should be
    -   * fulfilled.
    +   * Deprecated: Please use customer_requested_installation_date instead.
        * 
    * * - * .google.protobuf.Timestamp fulfillment_time = 9 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp fulfillment_time = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.gdchardwaremanagement.v1alpha.Order.fulfillment_time is deprecated. + * See google/cloud/gdchardwaremanagement/v1alpha/resources.proto;l=190 * @return The fulfillmentTime. */ + @java.lang.Deprecated com.google.protobuf.Timestamp getFulfillmentTime(); /** * * *
    -   * Required. Customer specified deadline by when this order should be
    -   * fulfilled.
    +   * Deprecated: Please use customer_requested_installation_date instead.
        * 
    * * - * .google.protobuf.Timestamp fulfillment_time = 9 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp fulfillment_time = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * */ + @java.lang.Deprecated com.google.protobuf.TimestampOrBuilder getFulfillmentTimeOrBuilder(); + /** + * + * + *
    +   * Optional. Customer requested installation date for this order.
    +   * 
    + * + * + * .google.type.Date customer_requested_installation_date = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customerRequestedInstallationDate field is set. + */ + boolean hasCustomerRequestedInstallationDate(); + + /** + * + * + *
    +   * Optional. Customer requested installation date for this order.
    +   * 
    + * + * + * .google.type.Date customer_requested_installation_date = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customerRequestedInstallationDate. + */ + com.google.type.Date getCustomerRequestedInstallationDate(); + + /** + * + * + *
    +   * Optional. Customer requested installation date for this order.
    +   * 
    + * + * + * .google.type.Date customer_requested_installation_date = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.type.DateOrBuilder getCustomerRequestedInstallationDateOrBuilder(); + /** * * @@ -788,4 +835,220 @@ java.lang.String getLabelsOrDefault( *
    */ com.google.type.DateOrBuilder getEstimatedInstallationDateOrBuilder(); + + /** + * + * + *
    +   * Output only. Estimated delivery date for this order.
    +   * 
    + * + * + * .google.type.Date estimated_delivery_date = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the estimatedDeliveryDate field is set. + */ + boolean hasEstimatedDeliveryDate(); + + /** + * + * + *
    +   * Output only. Estimated delivery date for this order.
    +   * 
    + * + * + * .google.type.Date estimated_delivery_date = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The estimatedDeliveryDate. + */ + com.google.type.Date getEstimatedDeliveryDate(); + + /** + * + * + *
    +   * Output only. Estimated delivery date for this order.
    +   * 
    + * + * + * .google.type.Date estimated_delivery_date = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.type.DateOrBuilder getEstimatedDeliveryDateOrBuilder(); + + /** + * + * + *
    +   * Optional. Whether this order is a migration from customer's existing
    +   * infrastructure.
    +   * 
    + * + * bool migration = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The migration. + */ + boolean getMigration(); + + /** + * + * + *
    +   * Output only. The time when the order was moved to ACCEPTED state.
    +   * 
    + * + * + * .google.protobuf.Timestamp accepted_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the acceptedTime field is set. + */ + boolean hasAcceptedTime(); + + /** + * + * + *
    +   * Output only. The time when the order was moved to ACCEPTED state.
    +   * 
    + * + * + * .google.protobuf.Timestamp accepted_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The acceptedTime. + */ + com.google.protobuf.Timestamp getAcceptedTime(); + + /** + * + * + *
    +   * Output only. The time when the order was moved to ACCEPTED state.
    +   * 
    + * + * + * .google.protobuf.Timestamp accepted_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getAcceptedTimeOrBuilder(); + + /** + * + * + *
    +   * Output only. The date to which the customer or Google wants to set the
    +   * scheduled installation date.
    +   * 
    + * + * + * .google.type.Date requested_date_change = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the requestedDateChange field is set. + */ + boolean hasRequestedDateChange(); + + /** + * + * + *
    +   * Output only. The date to which the customer or Google wants to set the
    +   * scheduled installation date.
    +   * 
    + * + * + * .google.type.Date requested_date_change = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The requestedDateChange. + */ + com.google.type.Date getRequestedDateChange(); + + /** + * + * + *
    +   * Output only. The date to which the customer or Google wants to set the
    +   * scheduled installation date.
    +   * 
    + * + * + * .google.type.Date requested_date_change = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.type.DateOrBuilder getRequestedDateChangeOrBuilder(); + + /** + * + * + *
    +   * Output only. Notes for this order, provided by the vendor.
    +   * 
    + * + * string vendor_notes = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The vendorNotes. + */ + java.lang.String getVendorNotes(); + + /** + * + * + *
    +   * Output only. Notes for this order, provided by the vendor.
    +   * 
    + * + * string vendor_notes = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for vendorNotes. + */ + com.google.protobuf.ByteString getVendorNotesBytes(); + + /** + * + * + *
    +   * Output only. Contact information of the SI assigned to this order.
    +   * 
    + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact vendor_contact = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the vendorContact field is set. + */ + boolean hasVendorContact(); + + /** + * + * + *
    +   * Output only. Contact information of the SI assigned to this order.
    +   * 
    + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact vendor_contact = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The vendorContact. + */ + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact getVendorContact(); + + /** + * + * + *
    +   * Output only. Contact information of the SI assigned to this order.
    +   * 
    + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact vendor_contact = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContactOrBuilder + getVendorContactOrBuilder(); } diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/RequestOrderDateChangeRequest.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/RequestOrderDateChangeRequest.java new file mode 100644 index 000000000000..7260508254db --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/RequestOrderDateChangeRequest.java @@ -0,0 +1,969 @@ +/* + * 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/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
    + * A request to change the requested date of an order.
    + * 
    + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest} + */ +public final class RequestOrderDateChangeRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest) + RequestOrderDateChangeRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use RequestOrderDateChangeRequest.newBuilder() to construct. + private RequestOrderDateChangeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RequestOrderDateChangeRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RequestOrderDateChangeRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_RequestOrderDateChangeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_RequestOrderDateChangeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest.Builder + .class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Required. The name of the order to update.
    +   * Format: projects/{project}/locations/{location}/orders/{order}
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. The name of the order to update.
    +   * Format: projects/{project}/locations/{location}/orders/{order}
    +   * 
    + * + * + * 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 REQUESTED_DATE_FIELD_NUMBER = 2; + private com.google.type.Date requestedDate_; + + /** + * + * + *
    +   * Required. The date to which the customer or Google wants to set the
    +   * scheduled installation date.
    +   * 
    + * + * .google.type.Date requested_date = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the requestedDate field is set. + */ + @java.lang.Override + public boolean hasRequestedDate() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Required. The date to which the customer or Google wants to set the
    +   * scheduled installation date.
    +   * 
    + * + * .google.type.Date requested_date = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The requestedDate. + */ + @java.lang.Override + public com.google.type.Date getRequestedDate() { + return requestedDate_ == null ? com.google.type.Date.getDefaultInstance() : requestedDate_; + } + + /** + * + * + *
    +   * Required. The date to which the customer or Google wants to set the
    +   * scheduled installation date.
    +   * 
    + * + * .google.type.Date requested_date = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.type.DateOrBuilder getRequestedDateOrBuilder() { + return requestedDate_ == null ? com.google.type.Date.getDefaultInstance() : requestedDate_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getRequestedDate()); + } + 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 (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRequestedDate()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest other = + (com.google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (hasRequestedDate() != other.hasRequestedDate()) return false; + if (hasRequestedDate()) { + if (!getRequestedDate().equals(other.getRequestedDate())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasRequestedDate()) { + hash = (37 * hash) + REQUESTED_DATE_FIELD_NUMBER; + hash = (53 * hash) + getRequestedDate().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest + 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.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest + parseFrom( + 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.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest + 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.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest + 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.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest + 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.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 request to change the requested date of an order.
    +   * 
    + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest) + com.google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_RequestOrderDateChangeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_RequestOrderDateChangeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getRequestedDateFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestedDate_ = null; + if (requestedDateBuilder_ != null) { + requestedDateBuilder_.dispose(); + requestedDateBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_RequestOrderDateChangeRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest + getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest build() { + com.google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest + buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest result = + new com.google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestedDate_ = + requestedDateBuilder_ == null ? requestedDate_ : requestedDateBuilder_.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.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest) { + return mergeFrom( + (com.google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest other) { + if (other + == com.google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasRequestedDate()) { + mergeRequestedDate(other.getRequestedDate()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + input.readMessage(getRequestedDateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
    +     * Required. The name of the order to update.
    +     * Format: projects/{project}/locations/{location}/orders/{order}
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. The name of the order to update.
    +     * Format: projects/{project}/locations/{location}/orders/{order}
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. The name of the order to update.
    +     * Format: projects/{project}/locations/{location}/orders/{order}
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The name of the order to update.
    +     * Format: projects/{project}/locations/{location}/orders/{order}
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The name of the order to update.
    +     * Format: projects/{project}/locations/{location}/orders/{order}
    +     * 
    + * + * + * 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 com.google.type.Date requestedDate_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + requestedDateBuilder_; + + /** + * + * + *
    +     * Required. The date to which the customer or Google wants to set the
    +     * scheduled installation date.
    +     * 
    + * + * .google.type.Date requested_date = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the requestedDate field is set. + */ + public boolean hasRequestedDate() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Required. The date to which the customer or Google wants to set the
    +     * scheduled installation date.
    +     * 
    + * + * .google.type.Date requested_date = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The requestedDate. + */ + public com.google.type.Date getRequestedDate() { + if (requestedDateBuilder_ == null) { + return requestedDate_ == null ? com.google.type.Date.getDefaultInstance() : requestedDate_; + } else { + return requestedDateBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Required. The date to which the customer or Google wants to set the
    +     * scheduled installation date.
    +     * 
    + * + * .google.type.Date requested_date = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setRequestedDate(com.google.type.Date value) { + if (requestedDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + requestedDate_ = value; + } else { + requestedDateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The date to which the customer or Google wants to set the
    +     * scheduled installation date.
    +     * 
    + * + * .google.type.Date requested_date = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setRequestedDate(com.google.type.Date.Builder builderForValue) { + if (requestedDateBuilder_ == null) { + requestedDate_ = builderForValue.build(); + } else { + requestedDateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The date to which the customer or Google wants to set the
    +     * scheduled installation date.
    +     * 
    + * + * .google.type.Date requested_date = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeRequestedDate(com.google.type.Date value) { + if (requestedDateBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && requestedDate_ != null + && requestedDate_ != com.google.type.Date.getDefaultInstance()) { + getRequestedDateBuilder().mergeFrom(value); + } else { + requestedDate_ = value; + } + } else { + requestedDateBuilder_.mergeFrom(value); + } + if (requestedDate_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Required. The date to which the customer or Google wants to set the
    +     * scheduled installation date.
    +     * 
    + * + * .google.type.Date requested_date = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearRequestedDate() { + bitField0_ = (bitField0_ & ~0x00000002); + requestedDate_ = null; + if (requestedDateBuilder_ != null) { + requestedDateBuilder_.dispose(); + requestedDateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The date to which the customer or Google wants to set the
    +     * scheduled installation date.
    +     * 
    + * + * .google.type.Date requested_date = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.type.Date.Builder getRequestedDateBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getRequestedDateFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Required. The date to which the customer or Google wants to set the
    +     * scheduled installation date.
    +     * 
    + * + * .google.type.Date requested_date = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.type.DateOrBuilder getRequestedDateOrBuilder() { + if (requestedDateBuilder_ != null) { + return requestedDateBuilder_.getMessageOrBuilder(); + } else { + return requestedDate_ == null ? com.google.type.Date.getDefaultInstance() : requestedDate_; + } + } + + /** + * + * + *
    +     * Required. The date to which the customer or Google wants to set the
    +     * scheduled installation date.
    +     * 
    + * + * .google.type.Date requested_date = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getRequestedDateFieldBuilder() { + if (requestedDateBuilder_ == null) { + requestedDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getRequestedDate(), getParentForChildren(), isClean()); + requestedDate_ = null; + } + return requestedDateBuilder_; + } + + @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.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RequestOrderDateChangeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/RequestOrderDateChangeRequestOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/RequestOrderDateChangeRequestOrBuilder.java new file mode 100644 index 000000000000..cf5af4636e89 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/RequestOrderDateChangeRequestOrBuilder.java @@ -0,0 +1,98 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface RequestOrderDateChangeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The name of the order to update.
    +   * Format: projects/{project}/locations/{location}/orders/{order}
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Required. The name of the order to update.
    +   * Format: projects/{project}/locations/{location}/orders/{order}
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Required. The date to which the customer or Google wants to set the
    +   * scheduled installation date.
    +   * 
    + * + * .google.type.Date requested_date = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the requestedDate field is set. + */ + boolean hasRequestedDate(); + + /** + * + * + *
    +   * Required. The date to which the customer or Google wants to set the
    +   * scheduled installation date.
    +   * 
    + * + * .google.type.Date requested_date = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The requestedDate. + */ + com.google.type.Date getRequestedDate(); + + /** + * + * + *
    +   * Required. The date to which the customer or Google wants to set the
    +   * scheduled installation date.
    +   * 
    + * + * .google.type.Date requested_date = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.type.DateOrBuilder getRequestedDateOrBuilder(); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ResourcesProto.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ResourcesProto.java index 181eb7a87786..807e31857e80 100644 --- a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ResourcesProto.java +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ResourcesProto.java @@ -176,7 +176,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".proto\032\031google/api/resource.proto\032\037googl" + "e/protobuf/timestamp.proto\032\026google/type/" + "date.proto\032\032google/type/datetime.proto\032\033google/type/dayofweek.proto\032" - + " google/type/postal_address.proto\032\033google/type/timeofday.proto\"\365\014\n" + + " google/type/postal_address.proto\032\033google/type/timeofday.proto\"\366\017\n" + "\005Order\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" + "\014display_name\030\r" @@ -190,25 +190,36 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024organization_contact\030\006" + " \001(\0132?.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContactB\003\340A\002\022\035\n" + "\020target_workloads\030\007 \003(\tB\003\340A\001\022 \n" - + "\023customer_motivation\030\010 \001(\tB\003\340A\002\0229\n" + + "\023customer_motivation\030\010 \001(\tB\003\340A\002\022;\n" + "\020fulfillment_time\030\t" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\002\022\030\n" + + " \001(\0132\032.google.protobuf.TimestampB\005\030\001\340A\001\022D\n" + + "$customer_requested_installation_date\030\025" + + " \001(\0132\021.google.type.DateB\003\340A\001\022\030\n" + "\013region_code\030\n" + " \001(\tB\003\340A\002\022\033\n" + "\016order_form_uri\030\013 \001(\tB\003\340A\003\022I\n" - + "\004type\030\014 \001(\01626.google.cl" - + "oud.gdchardwaremanagement.v1alpha.Order.TypeB\003\340A\003\0224\n" + + "\004type\030\014 \001(\01626.google.cloud.gdch" + + "ardwaremanagement.v1alpha.Order.TypeB\003\340A\003\0224\n" + "\013submit_time\030\016" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\027\n\n" + "billing_id\030\017 \001(\tB\003\340A\003\022\\\n" - + "\021existing_hardware\030\020 \003(\0132<.go" - + "ogle.cloud.gdchardwaremanagement.v1alpha.HardwareLocationB\003\340A\001\022^\n" - + "\017deployment_type\030\022 \001(\0162@.google.cloud.gdchardwaremanage" - + "ment.v1alpha.Order.DeploymentTypeB\003\340A\003\0228\n" + + "\021existing_hardware\030\020 \003(\0132<.google.clo" + + "ud.gdchardwaremanagement.v1alpha.HardwareLocationB\003\340A\001\022^\n" + + "\017deployment_type\030\022 \001(\0162" + + "@.google.cloud.gdchardwaremanagement.v1alpha.Order.DeploymentTypeB\003\340A\003\0228\n" + "\030actual_installation_date\030\023" + " \001(\0132\021.google.type.DateB\003\340A\003\022;\n" + "\033estimated_installation_date\030\024" - + " \001(\0132\021.google.type.DateB\003\340A\003\032-\n" + + " \001(\0132\021.google.type.DateB\003\340A\003\0227\n" + + "\027estimated_delivery_date\030\026" + + " \001(\0132\021.google.type.DateB\003\340A\003\022\026\n" + + "\tmigration\030\027 \001(\010B\003\340A\001\0226\n\r" + + "accepted_time\030\030 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0225\n" + + "\025requested_date_change\030\031" + + " \001(\0132\021.google.type.DateB\003\340A\003\022\031\n" + + "\014vendor_notes\030\032 \001(\tB\003\340A\003\022\\\n" + + "\016vendor_contact\030\033 \001(\0132?.googl" + + "e.cloud.gdchardwaremanagement.v1alpha.OrganizationContactB\003\340A\003\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\344\001\n" @@ -238,46 +249,45 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020PROOF_OF_CONCEPT\020\002\022\014\n" + "\010INTERNAL\020\003\022\020\n" + "\014CUSTOMER_LAB\020\004:v\352As\n" - + "*gdchardwaremanagement.googleapis.com/Order\0226pro" - + "jects/{project}/locations/{location}/orders/{order}*\006orders2\005order\"\273\005\n" + + "*gdchardwaremanagement.googleapis.com/Order\0226projects/{project}" + + "/locations/{location}/orders/{order}*\006orders2\005order\"\273\005\n" + "\004Site\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" + "\014display_name\030\030 \001(\tB\003\340A\001\022\030\n" + "\013description\030\031 \001(\tB\003\340A\001\0224\n" + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022Q\n" - + "\006labels\030\004 \003(\0132<.google" - + ".cloud.gdchardwaremanagement.v1alpha.Site.LabelsEntryB\003\340A\001\022b\n" - + "\024organization_contact\030\005" - + " \001(\0132?.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContactB\003\340A\002\022" - + " \n" + + "\006labels\030\004 \003(\0132<.google.cloud.gdchardw" + + "aremanagement.v1alpha.Site.LabelsEntryB\003\340A\001\022b\n" + + "\024organization_contact\030\005 \001(\0132?.goog" + + "le.cloud.gdchardwaremanagement.v1alpha.OrganizationContactB\003\340A\002\022 \n" + "\023google_maps_pin_uri\030\006 \001(\tB\003\340A\001\022Q\n" - + "\014access_times\030\032" - + " \003(\01326.google.cloud.gdchardwaremanagement.v1alpha.TimePeriodB\003\340A\001\022\022\n" + + "\014access_times\030\032 \003(\0132" + + "6.google.cloud.gdchardwaremanagement.v1alpha.TimePeriodB\003\340A\001\022\022\n" + "\005notes\030\033 \001(\tB\003\340A\001\022\035\n" + "\020customer_site_id\030\034 \001(\tB\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:q\352An\n" - + ")gdchardwaremanagement.googleapis.com/Site\0224projects/{project" - + "}/locations/{location}/sites/{site}*\005sites2\004site\"\352\007\n\r" + + ")gdchardwaremanagement.googleapis.co" + + "m/Site\0224projects/{project}/locations/{location}/sites/{site}*\005sites2\004site\"\354\007\n\r" + "HardwareGroup\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\0224\n" + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022Z\n" - + "\006labels\030\004 \003(\0132E.google.cloud.gdchardwaremana" - + "gement.v1alpha.HardwareGroup.LabelsEntryB\003\340A\001\022\033\n" + + "\006labels\030\004 \003(\0132E.goo" + + "gle.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.LabelsEntryB\003\340A\001\022\033\n" + "\016hardware_count\030\005 \001(\005B\003\340A\002\022O\n" - + "\006config\030\006" - + " \001(\0132:.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfigB\003\340A\002\022?\n" + + "\006config\030\006 \001(\0132:.go" + + "ogle.cloud.gdchardwaremanagement.v1alpha.HardwareConfigB\003\340A\002\022?\n" + "\004site\030\007 \001(\tB1\340A\002\372A+\n" + ")gdchardwaremanagement.googleapis.com/Site\022S\n" - + "\005state\030\010 \001(\0162?.go" - + "ogle.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.StateB\003\340A\003\022?\n" + + "\005state\030\010 \001(\0162?.google.cloud.gdch" + + "ardwaremanagement.v1alpha.HardwareGroup.StateB\003\340A\003\022?\n" + "\004zone\030\t \001(\tB1\340A\001\372A+\n" - + ")gdchardwaremanagement.googleapis.com/Zone\022;\n" + + ")gdchardwaremanagement.googleapis.com/Zone\022=\n" + "\033requested_installation_date\030\n" - + " \001(\0132\021.google.type.DateB\003\340A\001\032-\n" + + " \001(\0132\021.google.type.DateB\005\030\001\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\232\001\n" @@ -290,47 +300,50 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023PARTIALLY_INSTALLED\020\005\022\r\n" + "\tINSTALLED\020\006\022\n\n" + "\006FAILED\020\007:\257\001\352A\253\001\n" - + "2gdchardwaremanagement.googleapis.com/HardwareGroup\022Vprojects/{project}/locat" - + "ions/{location}/orders/{order}/hardwareGroups/{hardware_group}*\016hardwareGroups2\r" - + "hardwareGroup\"\340\020\n" + + "2gdchardwaremanagement.googleapis.com/HardwareGrou" + + "p\022Vprojects/{project}/locations/{locatio" + + "n}/orders/{order}/hardwareGroups/{hardware_group}*\016hardwareGroups2\r" + + "hardwareGroup\"\231\021\n" + "\010Hardware\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" + "\014display_name\030\002 \001(\tB\003\340A\001\0224\n" + "\013create_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022U\n" - + "\006labels\030\005 \003(\0132@.g" - + "oogle.cloud.gdchardwaremanagement.v1alpha.Hardware.LabelsEntryB\003\340A\001\022A\n" + + "\006labels\030\005 \003(\0132@.google.cloud.g" + + "dchardwaremanagement.v1alpha.Hardware.LabelsEntryB\003\340A\001\022A\n" + "\005order\030\006 \001(\tB2\340A\002\372A,\n" + "*gdchardwaremanagement.googleapis.com/Order\022R\n" + "\016hardware_group\030\007 \001(\tB:\340A\003\372A4\n" + "2gdchardwaremanagement.googleapis.com/HardwareGroup\022?\n" + "\004site\030\010 \001(\tB1\340A\002\372A+\n" + ")gdchardwaremanagement.googleapis.com/Site\022N\n" - + "\005state\030\t \001(\0162:.google.cloud.gdchar" - + "dwaremanagement.v1alpha.Hardware.StateB\003\340A\003\022\024\n" + + "\005state\030\t" + + " \001(\0162:.google.cloud.gdchardwaremanagement.v1alpha.Hardware.StateB\003\340A\003\022\024\n" + "\007ciq_uri\030\n" + " \001(\tB\003\340A\003\022O\n" - + "\006config\030\013 \001(" - + "\0132:.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfigB\003\340A\002\022;\n" + + "\006config\030\013 \001(\0132:.google.cl" + + "oud.gdchardwaremanagement.v1alpha.HardwareConfigB\003\340A\002\022;\n" + "\033estimated_installation_date\030\014" + " \001(\0132\021.google.type.DateB\003\340A\003\022\\\n\r" + "physical_info\030\r" - + " \001(\0132@.google." - + "cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfoB\003\340A\001\022d\n" - + "\021installation_info\030\016 \001(\0132D.google.cloud.gdchardwaremanag" - + "ement.v1alpha.HardwareInstallationInfoB\003\340A\001\022?\n" + + " \001(\0132@.google.cloud.gdchard" + + "waremanagement.v1alpha.HardwarePhysicalInfoB\003\340A\001\022d\n" + + "\021installation_info\030\016 \001(\0132D.go" + + "ogle.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfoB\003\340A\001\022?\n" + "\004zone\030\017 \001(\tB1\340A\002\372A+\n" + ")gdchardwaremanagement.googleapis.com/Zone\022;\n" + "\033requested_installation_date\030\020" + " \001(\0132\021.google.type.DateB\003\340A\001\0228\n" + "\030actual_installation_date\030\021" + " \001(\0132\021.google.type.DateB\003\340A\003\022\\\n\r" - + "machine_infos\030\024 \003(\0132@.google.cloud.gdchardwareman" - + "agement.v1alpha.Hardware.MachineInfoB\003\340A\003\032\361\001\n\n" + + "machine_infos\030\024 \003(\0132@." + + "google.cloud.gdchardwaremanagement.v1alpha.Hardware.MachineInfoB\003\340A\003\0227\n" + + "\027estimated_delivery_date\030\025" + + " \001(\0132\021.google.type.DateB\003\340A\003\032\361\001\n\n" + "MacAddress\022\024\n" + "\007address\030\001 \001(\tB\003\340A\003\022^\n" - + "\004type\030\002 \001(\0162K.google.cloud.gdchardwarem" - + "anagement.v1alpha.Hardware.MacAddress.AddressTypeB\003\340A\003\022!\n" + + "\004type\030\002 \001(\0162K.google.cloud.gdchardw" + + "aremanagement.v1alpha.Hardware.MacAddress.AddressTypeB\003\340A\003\022!\n" + "\014ipv4_address\030\003 \001(\tB\013\340A\003\342\214\317\327\010\002\010\002\"J\n" + "\013AddressType\022\034\n" + "\030ADDRESS_TYPE_UNSPECIFIED\020\000\022\007\n" @@ -346,69 +359,68 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014model_number\030\006 \001(\tB\003\340A\003\032\357\001\n" + "\013MachineInfo\022\030\n" + "\013service_tag\030\001 \001(\tB\003\340A\003\022[\n\r" - + "mac_addresses\030\002 \003(\0132?.google.c" - + "loud.gdchardwaremanagement.v1alpha.Hardware.MacAddressB\003\340A\003\022\021\n" + + "mac_addresses\030\002 \003(\0132?.goog" + + "le.cloud.gdchardwaremanagement.v1alpha.Hardware.MacAddressB\003\340A\003\022\021\n" + "\004name\030\003 \001(\tB\003\340A\003\022V\n\n" - + "disk_infos\030\004 \003(\0132=.google.cloud.gdchar" - + "dwaremanagement.v1alpha.Hardware.DiskInfoB\003\340A\003\032-\n" + + "disk_infos\030\004 \003(\0132=.google.cloud.gd" + + "chardwaremanagement.v1alpha.Hardware.DiskInfoB\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\"\201\001\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\032\n" + "\026ADDITIONAL_INFO_NEEDED\020\001\022\014\n" + "\010BUILDING\020\002\022\014\n" + "\010SHIPPING\020\003\022\016\n\n" - + "INSTALLING\020\004\022\r" - + "\n" + + "INSTALLING\020\004\022\r\n" + "\tINSTALLED\020\005\022\n\n" + "\006FAILED\020\006:\204\001\352A\200\001\n" - + "-gdchardwaremanagement.googleapis.com/Hardware\022" - + ";projects/{project}/locations/{location}" - + "/hardware/{hardware}*\010hardware2\010hardware\"\241\004\n" + + "-gdchardwaremanagement.googleapis.com/Hardware\022;projects/{project}/locations/{locat" + + "ion}/hardware/{hardware}*\010hardware2\010hardware\"\241\004\n" + "\007Comment\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\0224\n" + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022T\n" - + "\006labels\030\003 \003(\0132?.google.cloud.gdc" - + "hardwaremanagement.v1alpha.Comment.LabelsEntryB\003\340A\001\022\023\n" + + "\006labels\030\003 \003(\0132?.google.cloud" + + ".gdchardwaremanagement.v1alpha.Comment.LabelsEntryB\003\340A\001\022\023\n" + "\006author\030\004 \001(\tB\003\340A\003\022\021\n" + "\004text\030\005 \001(\tB\003\340A\002\022=\n" + "\024customer_viewed_time\030\006" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022N\n\r" - + "author_entity\030\007" - + " \001(\01622.google.cloud.gdchardwaremanagement.v1alpha.EntityB\003\340A\003\032-\n" + + "author_entity\030\007 \001(\01622.google.cloud.gdc" + + "hardwaremanagement.v1alpha.EntityB\003\340A\003\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:\220\001\352A\214\001\n" - + ",gdchardwaremanagement.googleapis.com/Comment\022Iprojects/{project}/locat" - + "ions/{location}/orders/{order}/comments/{comment}*\010comments2\007comment\"\261\003\n" + + ",gdchardwaremanagement.googleapis.com/Comment\022Iprojects/{project}/l" + + "ocations/{location}/orders/{order}/comments/{comment}*\010comments2\007comment\"\261\003\n" + "\016ChangeLogEntry\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\0224\n" + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022[\n" - + "\006labels\030\003 \003(\0132F.google.cloud.gdchardw" - + "aremanagement.v1alpha.ChangeLogEntry.LabelsEntryB\003\340A\001\022\020\n" + + "\006labels\030\003 \003(\0132F.google.cloud.gdch" + + "ardwaremanagement.v1alpha.ChangeLogEntry.LabelsEntryB\003\340A\001\022\020\n" + "\003log\030\004 \001(\tB\003\340A\003\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:\267\001\352A\263\001\n" - + "3gdchardwaremanagement.googleapis.com/ChangeLogEntry\022Zprojects/{project}/l" - + "ocations/{location}/orders/{order}/chang" - + "eLogEntries/{change_log_entry}*\020changeLogEntries2\016changeLogEntry\"\212\006\n" + + "3gdchardwaremanagement.googleapis.com/ChangeLogEntry\022Zprojects/{projec" + + "t}/locations/{location}/orders/{order}/c" + + "hangeLogEntries/{change_log_entry}*\020changeLogEntries2\016changeLogEntry\"\212\006\n" + "\003Sku\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" + "\014display_name\030\002 \001(\tB\003\340A\003\0224\n" + "\013create_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022J\n" - + "\006config\030\006 \001" - + "(\01325.google.cloud.gdchardwaremanagement.v1alpha.SkuConfigB\003\340A\003\022O\n" - + "\tinstances\030\007 \003(" - + "\01327.google.cloud.gdchardwaremanagement.v1alpha.SkuInstanceB\003\340A\003\022\030\n" + + "\006config\030\006" + + " \001(\01325.google.cloud.gdchardwaremanagement.v1alpha.SkuConfigB\003\340A\003\022O\n" + + "\tinstances\030\007" + + " \003(\01327.google.cloud.gdchardwaremanagement.v1alpha.SkuInstanceB\003\340A\003\022\030\n" + "\013description\030\010 \001(\tB\003\340A\003\022\030\n" + "\013revision_id\030\t \001(\tB\003\340A\003\022\026\n" + "\tis_active\030\n" + " \001(\010B\003\340A\003\022G\n" - + "\004type\030\013 \001(\01624.goog" - + "le.cloud.gdchardwaremanagement.v1alpha.Sku.TypeB\003\340A\003\022\027\n\n" + + "\004type\030\013 \001(\01624." + + "google.cloud.gdchardwaremanagement.v1alpha.Sku.TypeB\003\340A\003\022\027\n\n" + "vcpu_count\030\014 \001(\005B\003\340A\003\022Y\n" + "\025hardware_count_ranges\030\r" + " \003(\01325.google.cloud.gdchardwaremanagement.v1alpha.Sku.RangeB\003\340A\003\032!\n" @@ -419,29 +431,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020TYPE_UNSPECIFIED\020\000\022\010\n" + "\004RACK\020\001\022\n\n" + "\006SERVER\020\002:l\352Ai\n" - + "(gdchardwaremanagement.googleapis.com/Sku\0222projects/{projec" - + "t}/locations/{location}/skus/{sku}*\004skus2\003sku\"\235\n\n" + + "(gdchardwaremanagement.googleapis.com/Sku\0222projects/{pr" + + "oject}/locations/{location}/skus/{sku}*\004skus2\003sku\"\221\013\n" + "\004Zone\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\0224\n" + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022Q\n" - + "\006labels\030\004 \003(\0132<." - + "google.cloud.gdchardwaremanagement.v1alpha.Zone.LabelsEntryB\003\340A\001\022\031\n" + + "\006labels\030\004 \003(" + + "\0132<.google.cloud.gdchardwaremanagement.v1alpha.Zone.LabelsEntryB\003\340A\001\022\031\n" + "\014display_name\030\005 \001(\tB\003\340A\001\022J\n" - + "\005state\030\010 \001(\01626.google.clou" - + "d.gdchardwaremanagement.v1alpha.Zone.StateB\003\340A\003\022J\n" - + "\010contacts\030\t \003(\01323.google.cloud" - + ".gdchardwaremanagement.v1alpha.ContactB\003\340A\002\022\024\n" + + "\005state\030\010 \001(\01626.google." + + "cloud.gdchardwaremanagement.v1alpha.Zone.StateB\003\340A\003\022J\n" + + "\010contacts\030\t \003(\01323.google.c" + + "loud.gdchardwaremanagement.v1alpha.ContactB\003\340A\002\022\024\n" + "\007ciq_uri\030\n" + " \001(\tB\003\340A\003\022Z\n" - + "\016network_config\030\013" - + " \001(\0132=.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfigB\003\340A\001\022\037\n" + + "\016network_config\030\013 \001(\0132=.google.cloud.gdchardware" + + "management.v1alpha.ZoneNetworkConfigB\003\340A\001\022\037\n" + "\022globally_unique_id\030\014 \001(\tB\003\340A\003\022a\n" + "\024subscription_configs\030\r" - + " \003(\0132>.google.cloud.gdch" - + "ardwaremanagement.v1alpha.SubscriptionConfigB\003\340A\003\022c\n" - + "\022provisioning_state\030\016 \001(\0162B." - + "google.cloud.gdchardwaremanagement.v1alpha.Zone.ProvisioningStateB\003\340A\003\032-\n" + + " \003(\0132>.google.cloud." + + "gdchardwaremanagement.v1alpha.SubscriptionConfigB\003\340A\003\022c\n" + + "\022provisioning_state\030\016 \001(" + + "\0162B.google.cloud.gdchardwaremanagement.v1alpha.Zone.ProvisioningStateB\003\340A\003\022&\n" + + "\031skip_cluster_provisioning\030\020 \001(\010B\003\340A\001\022$\n" + + "\027cluster_intent_required\030\021 \001(\010B\003\340A\003\022$\n" + + "\027cluster_intent_verified\030\022 \001(\010B\003\340A\003\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\204\002\n" @@ -493,7 +508,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "27.google.cloud.gdchardwaremanagement.v1alpha.PowerSupply\022\023\n" + "\013billing_sku\030\003 \001(\t\022\034\n" + "\024billing_sku_per_vcpu\030\004 \001(\t\022$\n" - + "\034subscription_duration_months\030\005 \001(\005\"\343\005\n" + + "\034subscription_duration_months\030\005 \001(\005\"\241\006\n" + "\024HardwarePhysicalInfo\022s\n" + "\020power_receptacle\030\001 \001(\0162T.google.cloud.gdchardwaremanagement.v1alp" + "ha.HardwarePhysicalInfo.PowerReceptacleTypeB\003\340A\002\022o\n" @@ -502,12 +517,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007voltage\030\003 \001(\0162H.google.cloud.gdchar" + "dwaremanagement.v1alpha.HardwarePhysicalInfo.VoltageB\003\340A\002\022^\n" + "\007amperes\030\004 \001(\0162H.goo" - + "gle.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.AmperesB\003\340A\002\"f\n" + + "gle.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.AmperesB\003\340A\002\"\243\001\n" + "\023PowerReceptacleType\022%\n" + "!POWER_RECEPTACLE_TYPE_UNSPECIFIED\020\000\022\r\n" + "\tNEMA_5_15\020\001\022\010\n" - + "\004C_13\020\002\022\017\n" - + "\013STANDARD_EU\020\003\"C\n" + + "\004C_13\020\002\022\023\n" + + "\013STANDARD_EU\020\003\032\002\010\001\022\021\n\r" + + "TYPE_G_BS1363\020\004\022\013\n" + + "\007CEE_7_3\020\005\022\013\n" + + "\007CEE_7_5\020\006\022\n\n" + + "\006TYPE_F\020\007\"C\n" + "\021NetworkUplinkType\022#\n" + "\037NETWORK_UPLINK_TYPE_UNSPECIFIED\020\000\022\t\n" + "\005RJ_45\020\001\"D\n" @@ -518,17 +537,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007Amperes\022\027\n" + "\023AMPERES_UNSPECIFIED\020\000\022\016\n\n" + "AMPERES_15\020\001\"\325\003\n" - + "\030HardwareInstallationInfo\022\032\n" - + "\r" + + "\030HardwareInstallationInfo\022\032\n\r" + "rack_location\030\001 \001(\tB\003\340A\002\022\"\n" + "\025power_distance_meters\030\002 \001(\005B\003\340A\002\022#\n" + "\026switch_distance_meters\030\003 \001(\005B\003\340A\002\022Y\n" - + "\024rack_unit_dimensions\030\004" - + " \001(\01326.google.cloud.gdchardwaremanagement.v1alpha.DimensionsB\003\340A\002\022N\n\n" - + "rack_space\030\005" - + " \001(\01325.google.cloud.gdchardwaremanagement.v1alpha.RackSpaceB\003\340A\002\022e\n" - + "\track_type\030\006 \001(\0162M.google.cloud.gdchardwaremanag" - + "ement.v1alpha.HardwareInstallationInfo.RackTypeB\003\340A\002\"B\n" + + "\024rack_unit_dimensions\030\004 \001(\01326.google." + + "cloud.gdchardwaremanagement.v1alpha.DimensionsB\003\340A\002\022N\n\n" + + "rack_space\030\005 \001(\01325.google" + + ".cloud.gdchardwaremanagement.v1alpha.RackSpaceB\003\340A\002\022e\n" + + "\track_type\030\006 \001(\0162M.google." + + "cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo.RackTypeB\003\340A\002\"B\n" + "\010RackType\022\031\n" + "\025RACK_TYPE_UNSPECIFIED\020\000\022\014\n" + "\010TWO_POST\020\001\022\r\n" @@ -540,10 +558,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tB\013\340A\002\342\214\317\327\010\002\010\002\0228\n" + "#kubernetes_control_plane_ipv4_range\030\003 \001(" + "\tB\013\340A\002\342\214\317\327\010\002\010\002\022W\n" - + "\026management_ipv4_subnet\030\004" - + " \001(\01322.google.cloud.gdchardwaremanagement.v1alpha.SubnetB\003\340A\002\022W\n" - + "\026kubernetes_ipv4_subnet\030\005" - + " \001(\01322.google.cloud.gdchardwaremanagement.v1alpha.SubnetB\003\340A\001\022\'\n" + + "\026management_ipv4_subnet\030\004 \001(\01322.google.c" + + "loud.gdchardwaremanagement.v1alpha.SubnetB\003\340A\002\022W\n" + + "\026kubernetes_ipv4_subnet\030\005 \001(\01322" + + ".google.cloud.gdchardwaremanagement.v1alpha.SubnetB\003\340A\001\022\'\n" + "\022dns_ipv4_addresses\030\006 \003(" + "\tB\013\340A\001\342\214\317\327\010\002\010\002\022\'\n" + "\032kubernetes_primary_vlan_id\030\007 \001(\005B\003\340A\001\"]\n" @@ -566,13 +584,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004site\030\001 \001(\tB1\340A\002\372A+\n" + ")gdchardwaremanagement.googleapis.com/Site\022\032\n\r" + "rack_location\030\002 \001(\tB\003\340A\002\022N\n\n" - + "rack_space\030\003 \003(\01325.google.cloud" - + ".gdchardwaremanagement.v1alpha.RackSpaceB\003\340A\001\"\267\002\n" + + "rack_space\030\003" + + " \003(\01325.google.cloud.gdchardwaremanagement.v1alpha.RackSpaceB\003\340A\001\"\267\002\n" + "\022SubscriptionConfig\022\034\n" + "\017subscription_id\030\001 \001(\tB\003\340A\003\022\027\n\n" + "billing_id\030\002 \001(\tB\003\340A\003\022d\n" - + "\005state\030\003 \001(\0162P.google.cloud.gdchar" - + "dwaremanagement.v1alpha.SubscriptionConfig.SubscriptionStateB\003\340A\003\"\203\001\n" + + "\005state\030\003 \001(\0162P.google.cloud.gdchardwaremanagement.v1" + + "alpha.SubscriptionConfig.SubscriptionStateB\003\340A\003\"\203\001\n" + "\021SubscriptionState\022\"\n" + "\036SUBSCRIPTION_STATE_UNSPECIFIED\020\000\022\n\n" + "\006ACTIVE\020\001\022\014\n" @@ -589,11 +607,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006GOOGLE\020\001\022\014\n" + "\010CUSTOMER\020\002\022\n\n" + "\006VENDOR\020\003B\262\002\n" - + ".com.google.cloud.gdchardwaremanagement.v1alphaB\016ResourcesProtoP\001Zdcloud.googl" - + "e.com/go/gdchardwaremanagement/apiv1alpha/gdchardwaremanagementpb;gdchardwareman" - + "agementpb\252\002*Google.Cloud.GdcHardwareMana" - + "gement.V1Alpha\312\002*Google\\Cloud\\GdcHardwar" - + "eManagement\\V1alpha\352\002-Google::Cloud::GDCHardwareManagement::V1alphab\006proto3" + + ".com.google.cloud.gdchardwaremanagement.v1alphaB\016Resourc" + + "esProtoP\001Zdcloud.google.com/go/gdchardwaremanagement/apiv1alpha/gdchardwaremanag" + + "ementpb;gdchardwaremanagementpb\252\002*Google" + + ".Cloud.GdcHardwareManagement.V1Alpha\312\002*G" + + "oogle\\Cloud\\GdcHardwareManagement\\V1alph" + + "a\352\002-Google::Cloud::GDCHardwareManagement::V1alphab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -625,6 +644,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TargetWorkloads", "CustomerMotivation", "FulfillmentTime", + "CustomerRequestedInstallationDate", "RegionCode", "OrderFormUri", "Type", @@ -634,6 +654,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DeploymentType", "ActualInstallationDate", "EstimatedInstallationDate", + "EstimatedDeliveryDate", + "Migration", + "AcceptedTime", + "RequestedDateChange", + "VendorNotes", + "VendorContact", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_Order_LabelsEntry_descriptor = internal_static_google_cloud_gdchardwaremanagement_v1alpha_Order_descriptor @@ -724,6 +750,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RequestedInstallationDate", "ActualInstallationDate", "MachineInfos", + "EstimatedDeliveryDate", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_MacAddress_descriptor = internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_descriptor @@ -854,6 +881,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GloballyUniqueId", "SubscriptionConfigs", "ProvisioningState", + "SkipClusterProvisioning", + "ClusterIntentRequired", + "ClusterIntentVerified", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_Zone_LabelsEntry_descriptor = internal_static_google_cloud_gdchardwaremanagement_v1alpha_Zone_descriptor diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ServiceProto.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ServiceProto.java index 5f9dae796f0d..03c47df1f3a0 100644 --- a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ServiceProto.java +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ServiceProto.java @@ -56,6 +56,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_gdchardwaremanagement_v1alpha_SubmitOrderRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_gdchardwaremanagement_v1alpha_SubmitOrderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_CancelOrderRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_CancelOrderRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSitesRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -204,6 +208,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_gdchardwaremanagement_v1alpha_OperationMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_gdchardwaremanagement_v1alpha_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_RequestOrderDateChangeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_RequestOrderDateChangeRequest_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -221,10 +229,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "pi/field_info.proto\032\031google/api/resource" + ".proto\032:google/cloud/gdchardwaremanagement/v1alpha/resources.proto\032#google/longr" + "unning/operations.proto\032\033google/protobuf/empty.proto\032" - + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\264\001\n" + + " google/protobuf/field_mask" + + ".proto\032\037google/protobuf/timestamp.proto\032\026google/type/date.proto\"\264\001\n" + "\021ListOrdersRequest\022B\n" - + "\006parent\030\001 \001(\tB2\340" - + "A\002\372A,\022*gdchardwaremanagement.googleapis.com/Order\022\026\n" + + "\006parent\030\001 \001(" + + "\tB2\340A\002\372A,\022*gdchardwaremanagement.googleapis.com/Order\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" @@ -238,16 +247,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB2\340A\002\372A,\n" + "*gdchardwaremanagement.googleapis.com/Order\"\317\001\n" + "\022CreateOrderRequest\022B\n" - + "\006parent\030\001 \001(" - + "\tB2\340A\002\372A,\022*gdchardwaremanagement.googleapis.com/Order\022\025\n" + + "\006parent\030\001 \001(\tB2\340A\002\372A,\022*gdch" + + "ardwaremanagement.googleapis.com/Order\022\025\n" + "\010order_id\030\002 \001(\tB\003\340A\001\022E\n" - + "\005order\030\003" - + " \001(\01321.google.cloud.gdchardwaremanagement.v1alpha.OrderB\003\340A\002\022\027\n\n" + + "\005order\030\003 \001(\01321.g" + + "oogle.cloud.gdchardwaremanagement.v1alpha.OrderB\003\340A\002\022\027\n\n" + "request_id\030\004 \001(\tB\003\340A\001\"\252\001\n" + "\022UpdateOrderRequest\0224\n" + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022E\n" - + "\005order\030\002 \001(\01321.google.cloud" - + ".gdchardwaremanagement.v1alpha.OrderB\003\340A\002\022\027\n\n" + + "\005order\030\002" + + " \001(\01321.google.cloud.gdchardwaremanagement.v1alpha.OrderB\003\340A\002\022\027\n\n" + "request_id\030\003 \001(\tB\003\340A\001\"\203\001\n" + "\022DeleteOrderRequest\022@\n" + "\004name\030\001 \001(\tB2\340A\002\372A,\n" @@ -258,12 +267,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB2\340A\002\372A,\n" + "*gdchardwaremanagement.googleapis.com/Order\022\027\n\n" + "request_id\030\002 \001(\tB\003\340A\001\022V\n" - + "\004type\030\003 \001(\0162C.google.cloud.gdchardwaremanag" - + "ement.v1alpha.SubmitOrderRequest.TypeB\003\340A\001\"A\n" + + "\004type\030\003 \001(\0162C.googl" + + "e.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest.TypeB\003\340A\001\"A\n" + "\004Type\022\024\n" + "\020TYPE_UNSPECIFIED\020\000\022\020\n" + "\014INFO_PENDING\020\001\022\021\n\r" - + "INFO_COMPLETE\020\002\"\262\001\n" + + "INFO_COMPLETE\020\002\"w\n" + + "\022CancelOrderRequest\022@\n" + + "\004name\030\001 \001(\tB2\340A\002\372A,\n" + + "*gdchardwaremanagement.googleapis.com/Order\022\037\n\n" + + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\262\001\n" + "\020ListSitesRequest\022A\n" + "\006parent\030\001 \001(" + "\tB1\340A\002\372A+\022)gdchardwaremanagement.googleapis.com/Site\022\026\n" @@ -272,8 +285,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + "\010order_by\030\005 \001(\tB\003\340A\001\"\202\001\n" + "\021ListSitesResponse\022?\n" - + "\005sites\030\001" - + " \003(\01320.google.cloud.gdchardwaremanagement.v1alpha.Site\022\027\n" + + "\005sites\030\001 \003(\01320.googl" + + "e.cloud.gdchardwaremanagement.v1alpha.Site\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" + "\013unreachable\030\003 \003(\t\"Q\n" + "\016GetSiteRequest\022?\n" @@ -283,128 +296,128 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(" + "\tB1\340A\002\372A+\022)gdchardwaremanagement.googleapis.com/Site\022\024\n" + "\007site_id\030\002 \001(\tB\003\340A\001\022C\n" - + "\004site\030\003 \001(\01320.google" - + ".cloud.gdchardwaremanagement.v1alpha.SiteB\003\340A\002\022\027\n\n" + + "\004site\030\003" + + " \001(\01320.google.cloud.gdchardwaremanagement.v1alpha.SiteB\003\340A\002\022\027\n\n" + "request_id\030\004 \001(\tB\003\340A\001\"\247\001\n" + "\021UpdateSiteRequest\0224\n" + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022C\n" - + "\004site\030\002 \001(" - + "\01320.google.cloud.gdchardwaremanagement.v1alpha.SiteB\003\340A\002\022\027\n\n" + + "\004site\030\002 \001(\01320.google.clou" + + "d.gdchardwaremanagement.v1alpha.SiteB\003\340A\002\022\027\n\n" + "request_id\030\003 \001(\tB\003\340A\001\"u\n" + "\021DeleteSiteRequest\022?\n" + "\004name\030\001 \001(\tB1\340A\002\372A+\n" + ")gdchardwaremanagement.googleapis.com/Site\022\037\n\n" + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\304\001\n" + "\031ListHardwareGroupsRequest\022J\n" - + "\006parent\030\001 \001(" - + "\tB:\340A\002\372A4\0222gdchardwaremanagement.googleapis.com/HardwareGroup\022\026\n" + + "\006parent\030\001 \001(\tB:\340A\002\372A4\022" + + "2gdchardwaremanagement.googleapis.com/HardwareGroup\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + "\010order_by\030\005 \001(\tB\003\340A\001\"\236\001\n" + "\032ListHardwareGroupsResponse\022R\n" - + "\017hardware_groups\030\001" - + " \003(\01329.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup\022\027\n" + + "\017hardware_groups\030\001 \003(\013" + + "29.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" + "\013unreachable\030\003 \003(\t\"c\n" + "\027GetHardwareGroupRequest\022H\n" + "\004name\030\001 \001(\tB:\340A\002\372A4\n" + "2gdchardwaremanagement.googleapis.com/HardwareGroup\"\371\001\n" + "\032CreateHardwareGroupRequest\022J\n" - + "\006parent\030\001 \001(\tB:\340A\002\372A4\0222gd" - + "chardwaremanagement.googleapis.com/HardwareGroup\022\036\n" + + "\006parent\030\001 \001(" + + "\tB:\340A\002\372A4\0222gdchardwaremanagement.googleapis.com/HardwareGroup\022\036\n" + "\021hardware_group_id\030\002 \001(\tB\003\340A\001\022V\n" - + "\016hardware_group\030\003 \001(\01329.google.cloud." - + "gdchardwaremanagement.v1alpha.HardwareGroupB\003\340A\002\022\027\n\n" + + "\016hardware_group\030\003" + + " \001(\01329.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroupB\003\340A\002\022\027\n\n" + "request_id\030\004 \001(\tB\003\340A\001\"\303\001\n" + "\032UpdateHardwareGroupRequest\0224\n" + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022V\n" - + "\016hardware_group\030\002 \001(\01329.google.cloud.gd" - + "chardwaremanagement.v1alpha.HardwareGroupB\003\340A\002\022\027\n\n" + + "\016hardware_group\030\002" + + " \001(\01329.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroupB\003\340A\002\022\027\n\n" + "request_id\030\003 \001(\tB\003\340A\001\"\177\n" + "\032DeleteHardwareGroupRequest\022H\n" + "\004name\030\001 \001(\tB:\340A\002\372A4\n" + "2gdchardwaremanagement.googleapis.com/HardwareGroup\022\027\n\n" + "request_id\030\002 \001(\tB\003\340A\001\"\271\001\n" + "\023ListHardwareRequest\022E\n" - + "\006parent\030\001 \001(\t" - + "B5\340A\002\372A/\022-gdchardwaremanagement.googleapis.com/Hardware\022\026\n" + + "\006parent\030\001 \001(\tB5\340A\002\372A/\022-gdcha" + + "rdwaremanagement.googleapis.com/Hardware\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + "\010order_by\030\005 \001(\tB\003\340A\001\"\214\001\n" + "\024ListHardwareResponse\022F\n" - + "\010hardware\030\001 \003(\01324.google" - + ".cloud.gdchardwaremanagement.v1alpha.Hardware\022\027\n" + + "\010hardware\030\001" + + " \003(\01324.google.cloud.gdchardwaremanagement.v1alpha.Hardware\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" + "\013unreachable\030\003 \003(\t\"Y\n" + "\022GetHardwareRequest\022C\n" + "\004name\030\001 \001(\tB5\340A\002\372A/\n" + "-gdchardwaremanagement.googleapis.com/Hardware\"\305\001\n" + "\025CreateHardwareRequest\022E\n" - + "\006parent\030\001 \001(\tB5\340A\002\372A/\022-gdchar" - + "dwaremanagement.googleapis.com/Hardware\022\030\n" + + "\006parent\030\001 \001(" + + "\tB5\340A\002\372A/\022-gdchardwaremanagement.googleapis.com/Hardware\022\030\n" + "\013hardware_id\030\002 \001(\tB\003\340A\001\022K\n" - + "\010hardware\030\003 " - + "\001(\01324.google.cloud.gdchardwaremanagement.v1alpha.HardwareB\003\340A\002\"\263\001\n" + + "\010hardware\030\003 \001(\01324.google.cl" + + "oud.gdchardwaremanagement.v1alpha.HardwareB\003\340A\002\"\263\001\n" + "\025UpdateHardwareRequest\0224\n" + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022K\n" - + "\010hardware\030\002 \001(\013" - + "24.google.cloud.gdchardwaremanagement.v1alpha.HardwareB\003\340A\002\022\027\n\n" + + "\010hardware\030\002 \001(\01324.google.cloud" + + ".gdchardwaremanagement.v1alpha.HardwareB\003\340A\002\022\027\n\n" + "request_id\030\003 \001(\tB\003\340A\001\"}\n" + "\025DeleteHardwareRequest\022C\n" + "\004name\030\001 \001(\tB5\340A\002\372A/\n" + "-gdchardwaremanagement.googleapis.com/Hardware\022\037\n\n" + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\270\001\n" + "\023ListCommentsRequest\022D\n" - + "\006parent\030\001 \001(" - + "\tB4\340A\002\372A.\022,gdchardwaremanagement.googleapis.com/Comment\022\026\n" + + "\006parent\030\001 \001(\tB4\340A" + + "\002\372A.\022,gdchardwaremanagement.googleapis.com/Comment\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + "\010order_by\030\005 \001(\tB\003\340A\001\"\213\001\n" + "\024ListCommentsResponse\022E\n" - + "\010comments\030\001 \003(" - + "\01323.google.cloud.gdchardwaremanagement.v1alpha.Comment\022\027\n" + + "\010comments\030\001 \003(\01323.google.clou" + + "d.gdchardwaremanagement.v1alpha.Comment\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" + "\013unreachable\030\003 \003(\t\"W\n" + "\021GetCommentRequest\022B\n" + "\004name\030\001 \001(\tB4\340A\002\372A.\n" + ",gdchardwaremanagement.googleapis.com/Comment\"\331\001\n" + "\024CreateCommentRequest\022D\n" - + "\006parent\030\001 \001(\tB4\340A\002\372A.\022," - + "gdchardwaremanagement.googleapis.com/Comment\022\027\n\n" + + "\006parent\030\001 \001(" + + "\tB4\340A\002\372A.\022,gdchardwaremanagement.googleapis.com/Comment\022\027\n\n" + "comment_id\030\002 \001(\tB\003\340A\001\022I\n" - + "\007comment\030\003" - + " \001(\01323.google.cloud.gdchardwaremanagement.v1alpha.CommentB\003\340A\002\022\027\n\n" + + "\007comment\030\003 \001(\01323.google" + + ".cloud.gdchardwaremanagement.v1alpha.CommentB\003\340A\002\022\027\n\n" + "request_id\030\004 \001(\tB\003\340A\001\"\222\002\n" + "\034RecordActionOnCommentRequest\022B\n" + "\004name\030\001 \001(\tB4\340A\002\372A.\n" + ",gdchardwaremanagement.googleapis.com/Comment\022m\n" - + "\013action_type\030\002 \001(\0162S.google.cloud.gdchardwarema" - + "nagement.v1alpha.RecordActionOnCommentRequest.ActionTypeB\003\340A\002\"?\n\n" + + "\013action_type\030\002 \001(\0162S.google.cloud.gdchardwaremanagement.v1alph" + + "a.RecordActionOnCommentRequest.ActionTypeB\003\340A\002\"?\n\n" + "ActionType\022\033\n" + "\027ACTION_TYPE_UNSPECIFIED\020\000\022\010\n" + "\004READ\020\001\022\n\n" + "\006UNREAD\020\002\"\307\001\n" + "\033ListChangeLogEntriesRequest\022K\n" - + "\006parent\030\001 \001(" - + "\tB;\340A\002\372A5\0223gdchardwaremanagement.googleapis.com/ChangeLogEntry\022\026\n" + + "\006parent\030\001 \001(\tB" + + ";\340A\002\372A5\0223gdchardwaremanagement.googleapis.com/ChangeLogEntry\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + "\010order_by\030\005 \001(\tB\003\340A\001\"\244\001\n" + "\034ListChangeLogEntriesResponse\022V\n" - + "\022change_log_entries\030\001 \003(\0132:.google.c" - + "loud.gdchardwaremanagement.v1alpha.ChangeLogEntry\022\027\n" + + "\022change_log_entries\030\001" + + " \003(\0132:.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" + "\013unreachable\030\003 \003(\t\"e\n" + "\030GetChangeLogEntryRequest\022I\n" + "\004name\030\001 \001(\tB;\340A\002\372A5\n" + "3gdchardwaremanagement.googleapis.com/ChangeLogEntry\"\260\001\n" + "\017ListSkusRequest\022@\n" - + "\006parent\030\001 \001(\tB0\340A\002\372" - + "A*\022(gdchardwaremanagement.googleapis.com/Sku\022\026\n" + + "\006parent\030\001 \001(" + + "\tB0\340A\002\372A*\022(gdchardwaremanagement.googleapis.com/Sku\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" @@ -424,8 +437,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + "\010order_by\030\005 \001(\tB\003\340A\001\"\202\001\n" + "\021ListZonesResponse\022?\n" - + "\005zones\030\001" - + " \003(\01320.google.cloud.gdchardwaremanagement.v1alpha.Zone\022\027\n" + + "\005zones\030\001 \003(\01320.google." + + "cloud.gdchardwaremanagement.v1alpha.Zone\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" + "\013unreachable\030\003 \003(\t\"Q\n" + "\016GetZoneRequest\022?\n" @@ -435,34 +448,36 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(" + "\tB1\340A\002\372A+\022)gdchardwaremanagement.googleapis.com/Zone\022\024\n" + "\007zone_id\030\002 \001(\tB\003\340A\001\022C\n" - + "\004zone\030\003 \001(\01320.google.c" - + "loud.gdchardwaremanagement.v1alpha.ZoneB\003\340A\002\022\037\n\n" + + "\004zone\030\003" + + " \001(\01320.google.cloud.gdchardwaremanagement.v1alpha.ZoneB\003\340A\002\022\037\n\n" + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\257\001\n" + "\021UpdateZoneRequest\0224\n" + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022C\n" - + "\004zone\030\002" - + " \001(\01320.google.cloud.gdchardwaremanagement.v1alpha.ZoneB\003\340A\002\022\037\n\n" + + "\004zone\030\002 \001(\01320.googl" + + "e.cloud.gdchardwaremanagement.v1alpha.ZoneB\003\340A\002\022\037\n\n" + "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"u\n" + "\021DeleteZoneRequest\022?\n" + "\004name\030\001 \001(\tB1\340A\002\372A+\n" + ")gdchardwaremanagement.googleapis.com/Zone\022\037\n\n" - + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\312\005\n" + + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\356\005\n" + "\026SignalZoneStateRequest\022?\n" + "\004name\030\001 \001(\tB1\340A\002\372A+\n" + ")gdchardwaremanagement.googleapis.com/Zone\022\037\n\n" + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\022i\n" - + "\014state_signal\030\003 \001(\0162N.google.cloud.gdchardwaremanagement.v" - + "1alpha.SignalZoneStateRequest.StateSignalB\003\340A\001\022\202\001\n" - + "\031provisioning_state_signal\030\004 \001(\0162Z.google.cloud.gdchardwaremanagement." - + "v1alpha.SignalZoneStateRequest.ProvisioningStateSignalB\003\340A\001\022\021\n" + + "\014state_signal\030\003 \001(\0162N.google.clou" + + "d.gdchardwaremanagement.v1alpha.SignalZoneStateRequest.StateSignalB\003\340A\001\022\202\001\n" + + "\031provisioning_state_signal\030\004 \001(\0162Z.google.clo" + + "ud.gdchardwaremanagement.v1alpha.SignalZ" + + "oneStateRequest.ProvisioningStateSignalB\003\340A\001\022\021\n" + "\004step\030\005 \001(\tB\003\340A\001\022\024\n" - + "\007details\030\006 \001(\tB\003\340A\001\"\265\001\n" + + "\007details\030\006 \001(\tB\003\340A\001\"\331\001\n" + "\013StateSignal\022\034\n" + "\030STATE_SIGNAL_UNSPECIFIED\020\000\022!\n" + "\035FACTORY_TURNUP_CHECKS_STARTED\020\003\022 \n" + "\034FACTORY_TURNUP_CHECKS_PASSED\020\001\022\035\n" + "\025READY_FOR_SITE_TURNUP\020\001\032\002\010\001\022 \n" - + "\034FACTORY_TURNUP_CHECKS_FAILED\020\002\032\002\020\001\"}\n" + + "\034FACTORY_TURNUP_CHECKS_FAILED\020\002\022\"\n" + + "\036VERIFY_CLUSTER_INTENT_PRESENCE\020\004\032\002\020\001\"}\n" + "\027ProvisioningStateSignal\022)\n" + "%PROVISIONING_STATE_SIGNAL_UNSPECIFIED\020\000\022\034\n" + "\030PROVISIONING_IN_PROGRESS\020\001\022\031\n" @@ -474,168 +489,184 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004verb\030\004 \001(\tB\003\340A\003\022\033\n" + "\016status_message\030\005 \001(\tB\003\340A\003\022#\n" + "\026requested_cancellation\030\006 \001(\010B\003\340A\003\022\030\n" - + "\013api_version\030\007 \001(\tB\003\340A\0032\323>\n" + + "\013api_version\030\007 \001(\tB\003\340A\003\"\221\001\n" + + "\035RequestOrderDateChangeRequest\022@\n" + + "\004name\030\001 \001(\tB2\340A\002\372A,\n" + + "*gdchardwaremanagement.googleapis.com/Order\022.\n" + + "\016requested_date\030\002 \001(\0132\021.google.type.DateB\003\340A\0022\257B\n" + "\025GDCHardwareManagement\022\315\001\n\n" - + "ListOrders\022=.google.cloud.gdchardwaremanagement.v1alpha.Lis" - + "tOrdersRequest\032>.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse\"@" - + "\332A\006parent\202\323\344\223\0021\022//v1alpha/{parent=projects/*/locations/*}/orders\022\272\001\n" - + "\010GetOrder\022;.google.cloud.gdchardwaremanagement.v1alp" - + "ha.GetOrderRequest\0321.google.cloud.gdchar" - + "dwaremanagement.v1alpha.Order\">\332A\004name\202\323" - + "\344\223\0021\022//v1alpha/{name=projects/*/locations/*/orders/*}\022\341\001\n" - + "\013CreateOrder\022>.google.cloud.gdchardwaremanagement.v1alpha.Creat" - + "eOrderRequest\032\035.google.longrunning.Operation\"s\312A\032\n" - + "\005Order\022\021OperationMetadata\332A\025pa" - + "rent,order,order_id\202\323\344\223\0028\"//v1alpha/{par" - + "ent=projects/*/locations/*}/orders:\005order\022\343\001\n" - + "\013UpdateOrder\022>.google.cloud.gdchard" - + "waremanagement.v1alpha.UpdateOrderRequest\032\035.google.longrunning.Operation\"u\312A\032\n" - + "\005Order\022\021OperationMetadata\332A\021order,update_m" - + "ask\202\323\344\223\002>25/v1alpha/{order.name=projects/*/locations/*/orders/*}:\005order\022\331\001\n" - + "\013DeleteOrder\022>.google.cloud.gdchardwaremanage" - + "ment.v1alpha.DeleteOrderRequest\032\035.google.longrunning.Operation\"k\312A*\n" - + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004name\202\323\344\223" - + "\0021*//v1alpha/{name=projects/*/locations/*/orders/*}\022\323\001\n" - + "\013SubmitOrder\022>.google.cloud.gdchardwaremanagement.v1alpha.SubmitO" - + "rderRequest\032\035.google.longrunning.Operation\"e\312A\032\n" - + "\005Order\022\021OperationMetadata\332A\004name" - + "\202\323\344\223\002;\"6/v1alpha/{name=projects/*/locations/*/orders/*}:submit:\001*\022\311\001\n" - + "\tListSites\022<.google.cloud.gdchardwaremanagement.v1a" - + "lpha.ListSitesRequest\032=.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResp" - + "onse\"?\332A\006parent\202\323\344\223\0020\022./v1alpha/{parent=projects/*/locations/*}/sites\022\266\001\n" - + "\007GetSite\022:.google.cloud.gdchardwaremanagement.v" - + "1alpha.GetSiteRequest\0320.google.cloud.gdc" - + "hardwaremanagement.v1alpha.Site\"=\332A\004name" - + "\202\323\344\223\0020\022./v1alpha/{name=projects/*/locations/*/sites/*}\022\332\001\n\n" - + "CreateSite\022=.google.cloud.gdchardwaremanagement.v1alpha.Creat" - + "eSiteRequest\032\035.google.longrunning.Operation\"n\312A\031\n" - + "\004Site\022\021OperationMetadata\332A\023pare" - + "nt,site,site_id\202\323\344\223\0026\"./v1alpha/{parent=projects/*/locations/*}/sites:\004site\022\334\001\n\n" - + "UpdateSite\022=.google.cloud.gdchardwareman" - + "agement.v1alpha.UpdateSiteRequest\032\035.google.longrunning.Operation\"p\312A\031\n" - + "\004Site\022\021OperationMetadata\332A\020site,update_mask\202\323\344\223\002;2" - + "3/v1alpha/{site.name=projects/*/locations/*/sites/*}:\004site\022\326\001\n\n" - + "DeleteSite\022=.google.cloud.gdchardwaremanagement.v1alpha.D" - + "eleteSiteRequest\032\035.google.longrunning.Operation\"j\312A*\n" - + "\025google.protobuf.Empty\022\021Ope" - + "rationMetadata\332A\004name\202\323\344\223\0020*./v1alpha/{name=projects/*/locations/*/sites/*}\022\366\001\n" - + "\022ListHardwareGroups\022E.google.cloud.gdchar" - + "dwaremanagement.v1alpha.ListHardwareGroupsRequest\032F.google.cloud.gdchardwaremana" - + "gement.v1alpha.ListHardwareGroupsRespons" - + "e\"Q\332A\006parent\202\323\344\223\002B\022@/v1alpha/{parent=pro" - + "jects/*/locations/*/orders/*}/hardwareGroups\022\343\001\n" - + "\020GetHardwareGroup\022C.google.cloud.gdchardwaremanagement.v1alpha.GetHardwa" - + "reGroupRequest\0329.google.cloud.gdchardwar" - + "emanagement.v1alpha.HardwareGroup\"O\332A\004na" - + "me\202\323\344\223\002B\022@/v1alpha/{name=projects/*/locations/*/orders/*/hardwareGroups/*}\022\246\002\n" - + "\023CreateHardwareGroup\022F.google.cloud.gdchar" - + "dwaremanagement.v1alpha.CreateHardwareGr" - + "oupRequest\032\035.google.longrunning.Operation\"\247\001\312A\"\n\r" - + "HardwareGroup\022\021OperationMetadata\332A\'parent,hardware_group,hardware_group" - + "_id\202\323\344\223\002R\"@/v1alpha/{parent=projects/*/l" - + "ocations/*/orders/*}/hardwareGroups:\016hardware_group\022\250\002\n" - + "\023UpdateHardwareGroup\022F.google.cloud.gdchardwaremanagement.v1alpha" - + ".UpdateHardwareGroupRequest\032\035.google.longrunning.Operation\"\251\001\312A\"\n\r" - + "HardwareGroup\022\021OperationMetadata\332A\032hardware_group,upda" - + "te_mask\202\323\344\223\002a2O/v1alpha/{hardware_group." - + "name=projects/*/locations/*/orders/*/hardwareGroups/*}:\016hardware_group\022\372\001\n" - + "\023DeleteHardwareGroup\022F.google.cloud.gdchardwar" - + "emanagement.v1alpha.DeleteHardwareGroupR" - + "equest\032\035.google.longrunning.Operation\"|\312A*\n" - + "\025google.protobuf.Empty\022\021OperationMeta" - + "data\332A\004name\202\323\344\223\002B*@/v1alpha/{name=projec" - + "ts/*/locations/*/orders/*/hardwareGroups/*}\022\325\001\n" - + "\014ListHardware\022?.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRe" - + "quest\032@.google.cloud.gdchardwaremanageme" - + "nt.v1alpha.ListHardwareResponse\"B\332A\006pare" - + "nt\202\323\344\223\0023\0221/v1alpha/{parent=projects/*/locations/*}/hardware\022\305\001\n" - + "\013GetHardware\022>.google.cloud.gdchardwaremanagement.v1alpha" - + ".GetHardwareRequest\0324.google.cloud.gdcha" - + "rdwaremanagement.v1alpha.Hardware\"@\332A\004na" - + "me\202\323\344\223\0023\0221/v1alpha/{name=projects/*/locations/*/hardware/*}\022\366\001\n" - + "\016CreateHardware\022A.google.cloud.gdchardwaremanagement.v1al" - + "pha.CreateHardwareRequest\032\035.google.longrunning.Operation\"\201\001\312A\035\n" - + "\010Hardware\022\021OperationMetadata\332A\033parent,hardware,hardware_i" - + "d\202\323\344\223\002=\"1/v1alpha/{parent=projects/*/locations/*}/hardware:\010hardware\022\370\001\n" - + "\016UpdateHardware\022A.google.cloud.gdchardwaremanage" - + "ment.v1alpha.UpdateHardwareRequest\032\035.google.longrunning.Operation\"\203\001\312A\035\n" - + "\010Hardware\022\021OperationMetadata\332A\024hardware,update_m" - + "ask\202\323\344\223\002F2:/v1alpha/{hardware.name=proje" - + "cts/*/locations/*/hardware/*}:\010hardware\022\341\001\n" - + "\016DeleteHardware\022A.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRe" - + "quest\032\035.google.longrunning.Operation\"m\312A*\n" - + "\025google.protobuf.Empty\022\021OperationMetad" - + "ata\332A\004name\202\323\344\223\0023*1/v1alpha/{name=projects/*/locations/*/hardware/*}\022\336\001\n" - + "\014ListComments\022?.google.cloud.gdchardwaremanagemen" - + "t.v1alpha.ListCommentsRequest\032@.google.cloud.gdchardwaremanagement.v1alpha.ListC" - + "ommentsResponse\"K\332A\006parent\202\323\344\223\002<\022:/v1alp" - + "ha/{parent=projects/*/locations/*/orders/*}/comments\022\313\001\n\n" - + "GetComment\022=.google.cloud.gdchardwaremanagement.v1alpha.GetComm" - + "entRequest\0323.google.cloud.gdchardwareman" - + "agement.v1alpha.Comment\"I\332A\004name\202\323\344\223\002<\022:" - + "/v1alpha/{name=projects/*/locations/*/orders/*/comments/*}\022\371\001\n\r" - + "CreateComment\022@.google.cloud.gdchardwaremanagement.v1alph" - + "a.CreateCommentRequest\032\035.google.longrunning.Operation\"\206\001\312A\034\n" - + "\007Comment\022\021OperationM" - + "etadata\332A\031parent,comment,comment_id\202\323\344\223\002" - + "E\":/v1alpha/{parent=projects/*/locations/*/orders/*}/comments:\007comment\022\375\001\n" - + "\025RecordActionOnComment\022H.google.cloud.gdchardw" - + "aremanagement.v1alpha.RecordActionOnCommentRequest\0323.google.cloud.gdchardwareman" - + "agement.v1alpha.Comment\"e\332A\020name,action_" - + "type\202\323\344\223\002L\"G/v1alpha/{name=projects/*/lo" - + "cations/*/orders/*/comments/*}:recordAction:\001*\022\376\001\n" - + "\024ListChangeLogEntries\022G.google.cloud.gdchardwaremanagement.v1alpha.Lis" - + "tChangeLogEntriesRequest\032H.google.cloud.gdchardwaremanagement.v1alpha.ListChange" - + "LogEntriesResponse\"S\332A\006parent\202\323\344\223\002D\022B/v1" - + "alpha/{parent=projects/*/locations/*/orders/*}/changeLogEntries\022\350\001\n" - + "\021GetChangeLogEntry\022D.google.cloud.gdchardwaremanageme" - + "nt.v1alpha.GetChangeLogEntryRequest\032:.google.cloud.gdchardwaremanagement.v1alpha" - + ".ChangeLogEntry\"Q\332A\004name\202\323\344\223\002D\022B/v1alpha" - + "/{name=projects/*/locations/*/orders/*/changeLogEntries/*}\022\305\001\n" - + "\010ListSkus\022;.google.cloud.gdchardwaremanagement.v1alpha.Lis" - + "tSkusRequest\032<.google.cloud.gdchardwarem" - + "anagement.v1alpha.ListSkusResponse\">\332A\006p" - + "arent\202\323\344\223\002/\022-/v1alpha/{parent=projects/*/locations/*}/skus\022\262\001\n" - + "\006GetSku\0229.google.cloud.gdchardwaremanagement.v1alpha.GetSk" - + "uRequest\032/.google.cloud.gdchardwaremanag" - + "ement.v1alpha.Sku\"<\332A\004name\202\323\344\223\002/\022-/v1alp" - + "ha/{name=projects/*/locations/*/skus/*}\022\311\001\n" - + "\tListZones\022<.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest\032=.go" - + "ogle.cloud.gdchardwaremanagement.v1alpha" - + ".ListZonesResponse\"?\332A\006parent\202\323\344\223\0020\022./v1" - + "alpha/{parent=projects/*/locations/*}/zones\022\266\001\n" - + "\007GetZone\022:.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest\0320.go" + + "ListOrders\022=.google.cloud.gdchardwaremanagement.v1" + + "alpha.ListOrdersRequest\032>.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersR" + + "esponse\"@\332A\006parent\202\323\344\223\0021\022//v1alpha/{parent=projects/*/locations/*}/orders\022\272\001\n" + + "\010GetOrder\022;.google.cloud.gdchardwaremanagem" + + "ent.v1alpha.GetOrderRequest\0321.google.cloud.gdchardwaremanagement.v1alpha.Order\">" + + "\332A\004name\202\323\344\223\0021\022//v1alpha/{name=projects/*/locations/*/orders/*}\022\341\001\n" + + "\013CreateOrder\022>.google.cloud.gdchardwaremanagement.v1al" + + "pha.CreateOrderRequest\032\035.google.longrunning.Operation\"s\312A\032\n" + + "\005Order\022\021OperationMeta" + + "data\332A\025parent,order,order_id\202\323\344\223\0028\"//v1a" + + "lpha/{parent=projects/*/locations/*}/orders:\005order\022\343\001\n" + + "\013UpdateOrder\022>.google.cloud.gdchardwaremanagement.v1alpha.UpdateOr" + + "derRequest\032\035.google.longrunning.Operation\"u\312A\032\n" + + "\005Order\022\021OperationMetadata\332A\021order" + + ",update_mask\202\323\344\223\002>25/v1alpha/{order.name" + + "=projects/*/locations/*/orders/*}:\005order\022\331\001\n" + + "\013DeleteOrder\022>.google.cloud.gdchardw" + + "aremanagement.v1alpha.DeleteOrderRequest\032\035.google.longrunning.Operation\"k\312A*\n" + + "\025google.protobuf.Empty\022\021OperationMetadata\332A" + + "\004name\202\323\344\223\0021*//v1alpha/{name=projects/*/locations/*/orders/*}\022\323\001\n" + + "\013SubmitOrder\022>.google.cloud.gdchardwaremanagement.v1alph" + + "a.SubmitOrderRequest\032\035.google.longrunning.Operation\"e\312A\032\n" + + "\005Order\022\021OperationMetada" + + "ta\332A\004name\202\323\344\223\002;\"6/v1alpha/{name=projects/*/locations/*/orders/*}:submit:\001*\022\323\001\n" + + "\013CancelOrder\022>.google.cloud.gdchardwareman" + + "agement.v1alpha.CancelOrderRequest\032\035.google.longrunning.Operation\"e\312A\032\n" + + "\005Order\022\021OperationMetadata\332A\004name\202\323\344\223\002;\"6/v1alpha/" + + "{name=projects/*/locations/*/orders/*}:cancel:\001*\022\311\001\n" + + "\tListSites\022<.google.cloud.gdchardwaremanagement.v1alpha.ListSitesReq" + + "uest\032=.google.cloud.gdchardwaremanagemen" + + "t.v1alpha.ListSitesResponse\"?\332A\006parent\202\323" + + "\344\223\0020\022./v1alpha/{parent=projects/*/locations/*}/sites\022\266\001\n" + + "\007GetSite\022:.google.cloud.gdchardwaremanagement.v1alpha.GetSiteReq" + + "uest\0320.google.cloud.gdchardwaremanagemen" + + "t.v1alpha.Site\"=\332A\004name\202\323\344\223\0020\022./v1alpha/" + + "{name=projects/*/locations/*/sites/*}\022\332\001\n\n" + + "CreateSite\022=.google.cloud.gdchardwarem" + + "anagement.v1alpha.CreateSiteRequest\032\035.google.longrunning.Operation\"n\312A\031\n" + + "\004Site\022\021OperationMetadata\332A\023parent,site,site_id\202\323" + + "\344\223\0026\"./v1alpha/{parent=projects/*/locations/*}/sites:\004site\022\334\001\n\n" + + "UpdateSite\022=.google.cloud.gdchardwaremanagement.v1alpha.U" + + "pdateSiteRequest\032\035.google.longrunning.Operation\"p\312A\031\n" + + "\004Site\022\021OperationMetadata\332A\020" + + "site,update_mask\202\323\344\223\002;23/v1alpha/{site.n" + + "ame=projects/*/locations/*/sites/*}:\004site\022\326\001\n\n" + + "DeleteSite\022=.google.cloud.gdchardw" + + "aremanagement.v1alpha.DeleteSiteRequest\032\035.google.longrunning.Operation\"j\312A*\n" + + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004" + + "name\202\323\344\223\0020*./v1alpha/{name=projects/*/locations/*/sites/*}\022\366\001\n" + + "\022ListHardwareGroups\022E.google.cloud.gdchardwaremanagement.v" + + "1alpha.ListHardwareGroupsRequest\032F.google.cloud.gdchardwaremanagement.v1alpha.Li" + + "stHardwareGroupsResponse\"Q\332A\006parent\202\323\344\223\002" + + "B\022@/v1alpha/{parent=projects/*/locations/*/orders/*}/hardwareGroups\022\343\001\n" + + "\020GetHardwareGroup\022C.google.cloud.gdchardwaremanag" + + "ement.v1alpha.GetHardwareGroupRequest\0329.google.cloud.gdchardwaremanagement.v1alp" + + "ha.HardwareGroup\"O\332A\004name\202\323\344\223\002B\022@/v1alph" + + "a/{name=projects/*/locations/*/orders/*/hardwareGroups/*}\022\246\002\n" + + "\023CreateHardwareGroup\022F.google.cloud.gdchardwaremanagement.v" + + "1alpha.CreateHardwareGroupRequest\032\035.google.longrunning.Operation\"\247\001\312A\"\n\r" + + "HardwareGroup\022\021OperationMetadata\332A\'parent,hardwa" + + "re_group,hardware_group_id\202\323\344\223\002R\"@/v1alp" + + "ha/{parent=projects/*/locations/*/orders/*}/hardwareGroups:\016hardware_group\022\250\002\n" + + "\023UpdateHardwareGroup\022F.google.cloud.gdchar" + + "dwaremanagement.v1alpha.UpdateHardwareGr" + + "oupRequest\032\035.google.longrunning.Operation\"\251\001\312A\"\n\r" + + "HardwareGroup\022\021OperationMetadat" + + "a\332A\032hardware_group,update_mask\202\323\344\223\002a2O/v" + + "1alpha/{hardware_group.name=projects/*/l" + + "ocations/*/orders/*/hardwareGroups/*}:\016hardware_group\022\372\001\n" + + "\023DeleteHardwareGroup\022F.google.cloud.gdchardwaremanagement.v1alp" + + "ha.DeleteHardwareGroupRequest\032\035.google.longrunning.Operation\"|\312A*\n" + + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004name\202\323\344\223\002B" + + "*@/v1alpha/{name=projects/*/locations/*/orders/*/hardwareGroups/*}\022\325\001\n" + + "\014ListHardware\022?.google.cloud.gdchardwaremanagement" + + ".v1alpha.ListHardwareRequest\032@.google.cloud.gdchardwaremanagement.v1alpha.ListHa" + + "rdwareResponse\"B\332A\006parent\202\323\344\223\0023\0221/v1alph" + + "a/{parent=projects/*/locations/*}/hardware\022\305\001\n" + + "\013GetHardware\022>.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareReque" + + "st\0324.google.cloud.gdchardwaremanagement." + + "v1alpha.Hardware\"@\332A\004name\202\323\344\223\0023\0221/v1alph" + + "a/{name=projects/*/locations/*/hardware/*}\022\366\001\n" + + "\016CreateHardware\022A.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwar" + + "eRequest\032\035.google.longrunning.Operation\"\201\001\312A\035\n" + + "\010Hardware\022\021OperationMetadata\332A\033par" + + "ent,hardware,hardware_id\202\323\344\223\002=\"1/v1alpha" + + "/{parent=projects/*/locations/*}/hardware:\010hardware\022\370\001\n" + + "\016UpdateHardware\022A.google.cloud.gdchardwaremanagement.v1alpha.Upda" + + "teHardwareRequest\032\035.google.longrunning.Operation\"\203\001\312A\035\n" + + "\010Hardware\022\021OperationMetad" + + "ata\332A\024hardware,update_mask\202\323\344\223\002F2:/v1alp" + + "ha/{hardware.name=projects/*/locations/*/hardware/*}:\010hardware\022\341\001\n" + + "\016DeleteHardware\022A.google.cloud.gdchardwaremanagement.v" + + "1alpha.DeleteHardwareRequest\032\035.google.longrunning.Operation\"m\312A*\n" + + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004name\202\323\344\223\0023*" + + "1/v1alpha/{name=projects/*/locations/*/hardware/*}\022\336\001\n" + + "\014ListComments\022?.google.cloud.gdchardwaremanagement.v1alpha.ListCom" + + "mentsRequest\032@.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse\"K" + + "\332A\006parent\202\323\344\223\002<\022:/v1alpha/{parent=projects/*/locations/*/orders/*}/comments\022\313\001\n\n" + + "GetComment\022=.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest\0323.goog" + + "le.cloud.gdchardwaremanagement.v1alpha.C" + + "omment\"I\332A\004name\202\323\344\223\002<\022:/v1alpha/{name=pr" + + "ojects/*/locations/*/orders/*/comments/*}\022\371\001\n\r" + + "CreateComment\022@.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRe" + + "quest\032\035.google.longrunning.Operation\"\206\001\312A\034\n" + + "\007Comment\022\021OperationMetadata\332A\031parent," + + "comment,comment_id\202\323\344\223\002E\":/v1alpha/{pare" + + "nt=projects/*/locations/*/orders/*}/comments:\007comment\022\375\001\n" + + "\025RecordActionOnComment\022H.google.cloud.gdchardwaremanagement.v1a" + + "lpha.RecordActionOnCommentRequest\0323.google.cloud.gdchardwaremanagement.v1alpha.C" + + "omment\"e\332A\020name,action_type\202\323\344\223\002L\"G/v1al" + + "pha/{name=projects/*/locations/*/orders/*/comments/*}:recordAction:\001*\022\376\001\n" + + "\024ListChangeLogEntries\022G.google.cloud.gdchardwar" + + "emanagement.v1alpha.ListChangeLogEntriesRequest\032H.google.cloud.gdchardwaremanage" + + "ment.v1alpha.ListChangeLogEntriesRespons" + + "e\"S\332A\006parent\202\323\344\223\002D\022B/v1alpha/{parent=pro" + + "jects/*/locations/*/orders/*}/changeLogEntries\022\350\001\n" + + "\021GetChangeLogEntry\022D.google.cloud.gdchardwaremanagement.v1alpha.GetCha" + + "ngeLogEntryRequest\032:.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry\"Q" + + "\332A\004name\202\323\344\223\002D\022B/v1alpha/{name=projects/*" + + "/locations/*/orders/*/changeLogEntries/*}\022\305\001\n" + + "\010ListSkus\022;.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest\032<.go" + "ogle.cloud.gdchardwaremanagement.v1alpha" - + ".Zone\"=\332A\004name\202\323\344\223\0020\022./v1alpha/{name=projects/*/locations/*/zones/*}\022\332\001\n\n" - + "CreateZone\022=.google.cloud.gdchardwaremanagement" - + ".v1alpha.CreateZoneRequest\032\035.google.longrunning.Operation\"n\312A\031\n" - + "\004Zone\022\021OperationM" - + "etadata\332A\023parent,zone,zone_id\202\323\344\223\0026\"./v1" - + "alpha/{parent=projects/*/locations/*}/zones:\004zone\022\334\001\n\n" - + "UpdateZone\022=.google.cloud.gdchardwaremanagement.v1alpha.UpdateZone" - + "Request\032\035.google.longrunning.Operation\"p\312A\031\n" - + "\004Zone\022\021OperationMetadata\332A\020zone,upda" - + "te_mask\202\323\344\223\002;23/v1alpha/{zone.name=projects/*/locations/*/zones/*}:\004zone\022\326\001\n\n" - + "DeleteZone\022=.google.cloud.gdchardwaremanage" - + "ment.v1alpha.DeleteZoneRequest\032\035.google.longrunning.Operation\"j\312A*\n" - + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004name\202\323\344\223\002" - + "0*./v1alpha/{name=projects/*/locations/*/zones/*}\022\346\001\n" - + "\017SignalZoneState\022B.google.cloud.gdchardwaremanagement.v1alpha.Signa" - + "lZoneStateRequest\032\035.google.longrunning.Operation\"p\312A\031\n" - + "\004Zone\022\021OperationMetadata\332A", - "\021name,state_signal\202\323\344\223\002:\"5/v1alpha/{name" - + "=projects/*/locations/*/zones/*}:signal:" - + "\001*\032X\312A$gdchardwaremanagement.googleapis." - + "com\322A.https://www.googleapis.com/auth/cl" - + "oud-platformB\260\002\n.com.google.cloud.gdchar" - + "dwaremanagement.v1alphaB\014ServiceProtoP\001Z" - + "dcloud.google.com/go/gdchardwaremanageme" - + "nt/apiv1alpha/gdchardwaremanagementpb;gd" - + "chardwaremanagementpb\252\002*Google.Cloud.Gdc" - + "HardwareManagement.V1Alpha\312\002*Google\\Clou" - + "d\\GdcHardwareManagement\\V1alpha\352\002-Google" - + "::Cloud::GDCHardwareManagement::V1alphab" - + "\006proto3" + + ".ListSkusResponse\">\332A\006parent\202\323\344\223\002/\022-/v1a" + + "lpha/{parent=projects/*/locations/*}/skus\022\262\001\n" + + "\006GetSku\0229.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest\032/.google" + + ".cloud.gdchardwaremanagement.v1alpha.Sku" + + "\"<\332A\004name\202\323\344\223\002/\022-/v1alpha/{name=projects/*/locations/*/skus/*}\022\311\001\n" + + "\tListZones\022<.google.cloud.gdchardwaremanagement.v1alph" + + "a.ListZonesRequest\032=.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRespons" + + "e\"?\332A\006parent\202\323\344\223\0020\022./v1alpha/{parent=projects/*/locations/*}/zones\022\266\001\n" + + "\007GetZone\022:.google.cloud.gdchardwaremanagement.v1al" + + "pha.GetZoneRequest\0320.google.cloud.gdchar" + + "dwaremanagement.v1alpha.Zone\"=\332A\004name\202\323\344" + + "\223\0020\022./v1alpha/{name=projects/*/locations/*/zones/*}\022\332\001\n\n" + + "CreateZone\022=.google.cloud.gdchardwaremanagement.v1alpha.CreateZo" + + "neRequest\032\035.google.longrunning.Operation\"n\312A\031\n" + + "\004Zone\022\021OperationMetadata\332A\023parent," + + "zone,zone_id\202\323\344\223\0026\"./v1alpha/{parent=projects/*/locations/*}/zones:\004zone\022\334\001\n\n" + + "UpdateZone\022=.google.cloud.gdchardwaremanage", + "ment.v1alpha.UpdateZoneRequest\032\035.google." + + "longrunning.Operation\"p\312A\031\n\004Zone\022\021Operat" + + "ionMetadata\332A\020zone,update_mask\202\323\344\223\002;23/v" + + "1alpha/{zone.name=projects/*/locations/*" + + "/zones/*}:\004zone\022\326\001\n\nDeleteZone\022=.google." + + "cloud.gdchardwaremanagement.v1alpha.Dele" + + "teZoneRequest\032\035.google.longrunning.Opera" + + "tion\"j\312A*\n\025google.protobuf.Empty\022\021Operat" + + "ionMetadata\332A\004name\202\323\344\223\0020*./v1alpha/{name" + + "=projects/*/locations/*/zones/*}\022\346\001\n\017Sig" + + "nalZoneState\022B.google.cloud.gdchardwarem" + + "anagement.v1alpha.SignalZoneStateRequest" + + "\032\035.google.longrunning.Operation\"p\312A\031\n\004Zo" + + "ne\022\021OperationMetadata\332A\021name,state_signa" + + "l\202\323\344\223\002:\"5/v1alpha/{name=projects/*/locat" + + "ions/*/zones/*}:signal:\001*\022\203\002\n\026RequestOrd" + + "erDateChange\022I.google.cloud.gdchardwarem" + + "anagement.v1alpha.RequestOrderDateChange" + + "Request\032\035.google.longrunning.Operation\"\177" + + "\312A\032\n\005Order\022\021OperationMetadata\332A\023name,req" + + "uested_date\202\323\344\223\002F\"A/v1alpha/{name=projec" + + "ts/*/locations/*/orders/*}:requestDateCh" + + "ange:\001*\032X\312A$gdchardwaremanagement.google" + + "apis.com\322A.https://www.googleapis.com/au" + + "th/cloud-platformB\260\002\n.com.google.cloud.g" + + "dchardwaremanagement.v1alphaB\014ServicePro" + + "toP\001Zdcloud.google.com/go/gdchardwareman" + + "agement/apiv1alpha/gdchardwaremanagement" + + "pb;gdchardwaremanagementpb\252\002*Google.Clou" + + "d.GdcHardwareManagement.V1Alpha\312\002*Google" + + "\\Cloud\\GdcHardwareManagement\\V1alpha\352\002-G" + + "oogle::Cloud::GDCHardwareManagement::V1a" + + "lphab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -651,6 +682,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), + com.google.type.DateProto.getDescriptor(), }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListOrdersRequest_descriptor = getDescriptor().getMessageTypes().get(0); @@ -708,8 +740,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", "RequestId", "Type", }); - internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSitesRequest_descriptor = + internal_static_google_cloud_gdchardwaremanagement_v1alpha_CancelOrderRequest_descriptor = getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_CancelOrderRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_CancelOrderRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSitesRequest_descriptor = + getDescriptor().getMessageTypes().get(8); internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSitesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSitesRequest_descriptor, @@ -717,7 +757,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSitesResponse_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(9); internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSitesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSitesResponse_descriptor, @@ -725,7 +765,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Sites", "NextPageToken", "Unreachable", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetSiteRequest_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(10); internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetSiteRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetSiteRequest_descriptor, @@ -733,7 +773,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateSiteRequest_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(11); internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateSiteRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateSiteRequest_descriptor, @@ -741,7 +781,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "SiteId", "Site", "RequestId", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateSiteRequest_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateSiteRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateSiteRequest_descriptor, @@ -749,7 +789,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateMask", "Site", "RequestId", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteSiteRequest_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(13); internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteSiteRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteSiteRequest_descriptor, @@ -757,7 +797,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareGroupsRequest_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareGroupsRequest_descriptor, @@ -765,7 +805,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareGroupsResponse_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareGroupsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareGroupsResponse_descriptor, @@ -773,7 +813,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "HardwareGroups", "NextPageToken", "Unreachable", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetHardwareGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetHardwareGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetHardwareGroupRequest_descriptor, @@ -781,7 +821,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateHardwareGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateHardwareGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateHardwareGroupRequest_descriptor, @@ -789,7 +829,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "HardwareGroupId", "HardwareGroup", "RequestId", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateHardwareGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateHardwareGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateHardwareGroupRequest_descriptor, @@ -797,7 +837,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateMask", "HardwareGroup", "RequestId", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteHardwareGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteHardwareGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteHardwareGroupRequest_descriptor, @@ -805,7 +845,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareRequest_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareRequest_descriptor, @@ -813,7 +853,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareResponse_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareResponse_descriptor, @@ -821,7 +861,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Hardware", "NextPageToken", "Unreachable", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetHardwareRequest_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(22); internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetHardwareRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetHardwareRequest_descriptor, @@ -829,7 +869,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateHardwareRequest_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateHardwareRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateHardwareRequest_descriptor, @@ -837,7 +877,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "HardwareId", "Hardware", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateHardwareRequest_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(24); internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateHardwareRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateHardwareRequest_descriptor, @@ -845,7 +885,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateMask", "Hardware", "RequestId", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteHardwareRequest_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteHardwareRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteHardwareRequest_descriptor, @@ -853,7 +893,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListCommentsRequest_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(26); internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListCommentsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListCommentsRequest_descriptor, @@ -861,7 +901,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListCommentsResponse_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(27); internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListCommentsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListCommentsResponse_descriptor, @@ -869,7 +909,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Comments", "NextPageToken", "Unreachable", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetCommentRequest_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(28); internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetCommentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetCommentRequest_descriptor, @@ -877,7 +917,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateCommentRequest_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(29); internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateCommentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateCommentRequest_descriptor, @@ -885,7 +925,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "CommentId", "Comment", "RequestId", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_RecordActionOnCommentRequest_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(30); internal_static_google_cloud_gdchardwaremanagement_v1alpha_RecordActionOnCommentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_RecordActionOnCommentRequest_descriptor, @@ -893,7 +933,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "ActionType", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListChangeLogEntriesRequest_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(31); internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListChangeLogEntriesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListChangeLogEntriesRequest_descriptor, @@ -901,7 +941,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListChangeLogEntriesResponse_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(32); internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListChangeLogEntriesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListChangeLogEntriesResponse_descriptor, @@ -909,7 +949,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ChangeLogEntries", "NextPageToken", "Unreachable", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetChangeLogEntryRequest_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(33); internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetChangeLogEntryRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetChangeLogEntryRequest_descriptor, @@ -917,7 +957,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSkusRequest_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(34); internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSkusRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSkusRequest_descriptor, @@ -925,7 +965,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSkusResponse_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(35); internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSkusResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSkusResponse_descriptor, @@ -933,7 +973,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Skus", "NextPageToken", "Unreachable", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetSkuRequest_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(36); internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetSkuRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetSkuRequest_descriptor, @@ -941,7 +981,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListZonesRequest_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(37); internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListZonesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListZonesRequest_descriptor, @@ -949,7 +989,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListZonesResponse_descriptor = - getDescriptor().getMessageTypes().get(37); + getDescriptor().getMessageTypes().get(38); internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListZonesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListZonesResponse_descriptor, @@ -957,7 +997,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Zones", "NextPageToken", "Unreachable", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetZoneRequest_descriptor = - getDescriptor().getMessageTypes().get(38); + getDescriptor().getMessageTypes().get(39); internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetZoneRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetZoneRequest_descriptor, @@ -965,7 +1005,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateZoneRequest_descriptor = - getDescriptor().getMessageTypes().get(39); + getDescriptor().getMessageTypes().get(40); internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateZoneRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateZoneRequest_descriptor, @@ -973,7 +1013,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "ZoneId", "Zone", "RequestId", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateZoneRequest_descriptor = - getDescriptor().getMessageTypes().get(40); + getDescriptor().getMessageTypes().get(41); internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateZoneRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateZoneRequest_descriptor, @@ -981,7 +1021,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateMask", "Zone", "RequestId", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteZoneRequest_descriptor = - getDescriptor().getMessageTypes().get(41); + getDescriptor().getMessageTypes().get(42); internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteZoneRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteZoneRequest_descriptor, @@ -989,7 +1029,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_SignalZoneStateRequest_descriptor = - getDescriptor().getMessageTypes().get(42); + getDescriptor().getMessageTypes().get(43); internal_static_google_cloud_gdchardwaremanagement_v1alpha_SignalZoneStateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_SignalZoneStateRequest_descriptor, @@ -997,7 +1037,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", "StateSignal", "ProvisioningStateSignal", "Step", "Details", }); internal_static_google_cloud_gdchardwaremanagement_v1alpha_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(43); + getDescriptor().getMessageTypes().get(44); internal_static_google_cloud_gdchardwaremanagement_v1alpha_OperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gdchardwaremanagement_v1alpha_OperationMetadata_descriptor, @@ -1010,6 +1050,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RequestedCancellation", "ApiVersion", }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_RequestOrderDateChangeRequest_descriptor = + getDescriptor().getMessageTypes().get(45); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_RequestOrderDateChangeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_RequestOrderDateChangeRequest_descriptor, + new java.lang.String[] { + "Name", "RequestedDate", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); @@ -1032,6 +1080,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); + com.google.type.DateProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SignalZoneStateRequest.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SignalZoneStateRequest.java index 3d7ea37d2258..0bee5ec8d55e 100644 --- a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SignalZoneStateRequest.java +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SignalZoneStateRequest.java @@ -120,6 +120,16 @@ public enum StateSignal implements com.google.protobuf.ProtocolMessageEnum { * FACTORY_TURNUP_CHECKS_FAILED = 2; */ FACTORY_TURNUP_CHECKS_FAILED(4, 2), + /** + * + * + *
    +     * Verify that a valid cluster intent is present.
    +     * 
    + * + * VERIFY_CLUSTER_INTENT_PRESENCE = 4; + */ + VERIFY_CLUSTER_INTENT_PRESENCE(5, 4), UNRECOGNIZED(-1, -1), ; @@ -189,6 +199,17 @@ public enum StateSignal implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FACTORY_TURNUP_CHECKS_FAILED_VALUE = 2; + /** + * + * + *
    +     * Verify that a valid cluster intent is present.
    +     * 
    + * + * VERIFY_CLUSTER_INTENT_PRESENCE = 4; + */ + public static final int VERIFY_CLUSTER_INTENT_PRESENCE_VALUE = 4; + public final int getNumber() { if (index == -1) { throw new java.lang.IllegalArgumentException( @@ -221,6 +242,8 @@ public static StateSignal forNumber(int value) { return FACTORY_TURNUP_CHECKS_PASSED; case 2: return FACTORY_TURNUP_CHECKS_FAILED; + case 4: + return VERIFY_CLUSTER_INTENT_PRESENCE; default: return null; } @@ -264,6 +287,7 @@ private static StateSignal[] getStaticValuesArray() { FACTORY_TURNUP_CHECKS_PASSED, READY_FOR_SITE_TURNUP, FACTORY_TURNUP_CHECKS_FAILED, + VERIFY_CLUSTER_INTENT_PRESENCE, }; } diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/Zone.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/Zone.java index a45559bc7cc8..6db5cdad94c6 100644 --- a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/Zone.java +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/Zone.java @@ -1331,6 +1331,70 @@ public int getProvisioningStateValue() { : result; } + public static final int SKIP_CLUSTER_PROVISIONING_FIELD_NUMBER = 16; + private boolean skipClusterProvisioning_ = false; + + /** + * + * + *
    +   * Optional. Whether to skip the cluster provisioning step during factory
    +   * turnup. If true, indicates that the Kubernetes cluster will be created
    +   * after the zone's hardware is installed at the customer site.
    +   * 
    + * + * bool skip_cluster_provisioning = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skipClusterProvisioning. + */ + @java.lang.Override + public boolean getSkipClusterProvisioning() { + return skipClusterProvisioning_; + } + + public static final int CLUSTER_INTENT_REQUIRED_FIELD_NUMBER = 17; + private boolean clusterIntentRequired_ = false; + + /** + * + * + *
    +   * Output only. Indicates whether a valid cluster intent must be provided by
    +   * the customer before accepting the order. If true, the order cannot be
    +   * accepted until cluster intent is present. This is used to enforce early
    +   * validation and prevent delays caused by missing configuration.
    +   * 
    + * + * bool cluster_intent_required = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The clusterIntentRequired. + */ + @java.lang.Override + public boolean getClusterIntentRequired() { + return clusterIntentRequired_; + } + + public static final int CLUSTER_INTENT_VERIFIED_FIELD_NUMBER = 18; + private boolean clusterIntentVerified_ = false; + + /** + * + * + *
    +   * Output only. Indicates whether the provided cluster intent has been
    +   * successfully verified. This flag ensures cluster intent exists before order
    +   * can be accepted.
    +   * 
    + * + * bool cluster_intent_verified = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The clusterIntentVerified. + */ + @java.lang.Override + public boolean getClusterIntentVerified() { + return clusterIntentVerified_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1385,6 +1449,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(14, provisioningState_); } + if (skipClusterProvisioning_ != false) { + output.writeBool(16, skipClusterProvisioning_); + } + if (clusterIntentRequired_ != false) { + output.writeBool(17, clusterIntentRequired_); + } + if (clusterIntentVerified_ != false) { + output.writeBool(18, clusterIntentVerified_); + } getUnknownFields().writeTo(output); } @@ -1443,6 +1516,15 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(14, provisioningState_); } + if (skipClusterProvisioning_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(16, skipClusterProvisioning_); + } + if (clusterIntentRequired_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(17, clusterIntentRequired_); + } + if (clusterIntentVerified_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(18, clusterIntentVerified_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1480,6 +1562,9 @@ public boolean equals(final java.lang.Object obj) { if (!getGloballyUniqueId().equals(other.getGloballyUniqueId())) return false; if (!getSubscriptionConfigsList().equals(other.getSubscriptionConfigsList())) return false; if (provisioningState_ != other.provisioningState_) return false; + if (getSkipClusterProvisioning() != other.getSkipClusterProvisioning()) return false; + if (getClusterIntentRequired() != other.getClusterIntentRequired()) return false; + if (getClusterIntentVerified() != other.getClusterIntentVerified()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1527,6 +1612,12 @@ public int hashCode() { } hash = (37 * hash) + PROVISIONING_STATE_FIELD_NUMBER; hash = (53 * hash) + provisioningState_; + hash = (37 * hash) + SKIP_CLUSTER_PROVISIONING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSkipClusterProvisioning()); + hash = (37 * hash) + CLUSTER_INTENT_REQUIRED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getClusterIntentRequired()); + hash = (37 * hash) + CLUSTER_INTENT_VERIFIED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getClusterIntentVerified()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1738,6 +1829,9 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000400); provisioningState_ = 0; + skipClusterProvisioning_ = false; + clusterIntentRequired_ = false; + clusterIntentVerified_ = false; return this; } @@ -1833,6 +1927,15 @@ private void buildPartial0(com.google.cloud.gdchardwaremanagement.v1alpha.Zone r if (((from_bitField0_ & 0x00000800) != 0)) { result.provisioningState_ = provisioningState_; } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.skipClusterProvisioning_ = skipClusterProvisioning_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.clusterIntentRequired_ = clusterIntentRequired_; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.clusterIntentVerified_ = clusterIntentVerified_; + } result.bitField0_ |= to_bitField0_; } @@ -1973,6 +2076,15 @@ public Builder mergeFrom(com.google.cloud.gdchardwaremanagement.v1alpha.Zone oth if (other.provisioningState_ != 0) { setProvisioningStateValue(other.getProvisioningStateValue()); } + if (other.getSkipClusterProvisioning() != false) { + setSkipClusterProvisioning(other.getSkipClusterProvisioning()); + } + if (other.getClusterIntentRequired() != false) { + setClusterIntentRequired(other.getClusterIntentRequired()); + } + if (other.getClusterIntentVerified() != false) { + setClusterIntentVerified(other.getClusterIntentVerified()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2093,6 +2205,24 @@ public Builder mergeFrom( bitField0_ |= 0x00000800; break; } // case 112 + case 128: + { + skipClusterProvisioning_ = input.readBool(); + bitField0_ |= 0x00001000; + break; + } // case 128 + case 136: + { + clusterIntentRequired_ = input.readBool(); + bitField0_ |= 0x00002000; + break; + } // case 136 + case 144: + { + clusterIntentVerified_ = input.readBool(); + bitField0_ |= 0x00004000; + break; + } // case 144 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4453,6 +4583,195 @@ public Builder clearProvisioningState() { return this; } + private boolean skipClusterProvisioning_; + + /** + * + * + *
    +     * Optional. Whether to skip the cluster provisioning step during factory
    +     * turnup. If true, indicates that the Kubernetes cluster will be created
    +     * after the zone's hardware is installed at the customer site.
    +     * 
    + * + * bool skip_cluster_provisioning = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skipClusterProvisioning. + */ + @java.lang.Override + public boolean getSkipClusterProvisioning() { + return skipClusterProvisioning_; + } + + /** + * + * + *
    +     * Optional. Whether to skip the cluster provisioning step during factory
    +     * turnup. If true, indicates that the Kubernetes cluster will be created
    +     * after the zone's hardware is installed at the customer site.
    +     * 
    + * + * bool skip_cluster_provisioning = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The skipClusterProvisioning to set. + * @return This builder for chaining. + */ + public Builder setSkipClusterProvisioning(boolean value) { + + skipClusterProvisioning_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Whether to skip the cluster provisioning step during factory
    +     * turnup. If true, indicates that the Kubernetes cluster will be created
    +     * after the zone's hardware is installed at the customer site.
    +     * 
    + * + * bool skip_cluster_provisioning = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSkipClusterProvisioning() { + bitField0_ = (bitField0_ & ~0x00001000); + skipClusterProvisioning_ = false; + onChanged(); + return this; + } + + private boolean clusterIntentRequired_; + + /** + * + * + *
    +     * Output only. Indicates whether a valid cluster intent must be provided by
    +     * the customer before accepting the order. If true, the order cannot be
    +     * accepted until cluster intent is present. This is used to enforce early
    +     * validation and prevent delays caused by missing configuration.
    +     * 
    + * + * bool cluster_intent_required = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The clusterIntentRequired. + */ + @java.lang.Override + public boolean getClusterIntentRequired() { + return clusterIntentRequired_; + } + + /** + * + * + *
    +     * Output only. Indicates whether a valid cluster intent must be provided by
    +     * the customer before accepting the order. If true, the order cannot be
    +     * accepted until cluster intent is present. This is used to enforce early
    +     * validation and prevent delays caused by missing configuration.
    +     * 
    + * + * bool cluster_intent_required = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The clusterIntentRequired to set. + * @return This builder for chaining. + */ + public Builder setClusterIntentRequired(boolean value) { + + clusterIntentRequired_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Indicates whether a valid cluster intent must be provided by
    +     * the customer before accepting the order. If true, the order cannot be
    +     * accepted until cluster intent is present. This is used to enforce early
    +     * validation and prevent delays caused by missing configuration.
    +     * 
    + * + * bool cluster_intent_required = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearClusterIntentRequired() { + bitField0_ = (bitField0_ & ~0x00002000); + clusterIntentRequired_ = false; + onChanged(); + return this; + } + + private boolean clusterIntentVerified_; + + /** + * + * + *
    +     * Output only. Indicates whether the provided cluster intent has been
    +     * successfully verified. This flag ensures cluster intent exists before order
    +     * can be accepted.
    +     * 
    + * + * bool cluster_intent_verified = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The clusterIntentVerified. + */ + @java.lang.Override + public boolean getClusterIntentVerified() { + return clusterIntentVerified_; + } + + /** + * + * + *
    +     * Output only. Indicates whether the provided cluster intent has been
    +     * successfully verified. This flag ensures cluster intent exists before order
    +     * can be accepted.
    +     * 
    + * + * bool cluster_intent_verified = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The clusterIntentVerified to set. + * @return This builder for chaining. + */ + public Builder setClusterIntentVerified(boolean value) { + + clusterIntentVerified_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Indicates whether the provided cluster intent has been
    +     * successfully verified. This flag ensures cluster intent exists before order
    +     * can be accepted.
    +     * 
    + * + * bool cluster_intent_verified = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearClusterIntentVerified() { + bitField0_ = (bitField0_ & ~0x00004000); + clusterIntentVerified_ = 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-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ZoneOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ZoneOrBuilder.java index dd08c5b61e58..d49194d50b97 100644 --- a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ZoneOrBuilder.java +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ZoneOrBuilder.java @@ -524,4 +524,50 @@ com.google.cloud.gdchardwaremanagement.v1alpha.SubscriptionConfig getSubscriptio * @return The provisioningState. */ com.google.cloud.gdchardwaremanagement.v1alpha.Zone.ProvisioningState getProvisioningState(); + + /** + * + * + *
    +   * Optional. Whether to skip the cluster provisioning step during factory
    +   * turnup. If true, indicates that the Kubernetes cluster will be created
    +   * after the zone's hardware is installed at the customer site.
    +   * 
    + * + * bool skip_cluster_provisioning = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skipClusterProvisioning. + */ + boolean getSkipClusterProvisioning(); + + /** + * + * + *
    +   * Output only. Indicates whether a valid cluster intent must be provided by
    +   * the customer before accepting the order. If true, the order cannot be
    +   * accepted until cluster intent is present. This is used to enforce early
    +   * validation and prevent delays caused by missing configuration.
    +   * 
    + * + * bool cluster_intent_required = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The clusterIntentRequired. + */ + boolean getClusterIntentRequired(); + + /** + * + * + *
    +   * Output only. Indicates whether the provided cluster intent has been
    +   * successfully verified. This flag ensures cluster intent exists before order
    +   * can be accepted.
    +   * 
    + * + * bool cluster_intent_verified = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The clusterIntentVerified. + */ + boolean getClusterIntentVerified(); } diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/proto/google/cloud/gdchardwaremanagement/v1alpha/resources.proto b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/proto/google/cloud/gdchardwaremanagement/v1alpha/resources.proto index e6083d419317..b1b3c9ecca67 100644 --- a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/proto/google/cloud/gdchardwaremanagement/v1alpha/resources.proto +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/proto/google/cloud/gdchardwaremanagement/v1alpha/resources.proto @@ -187,10 +187,13 @@ message Order { // length of this field must be <= 1000 characters. string customer_motivation = 8 [(google.api.field_behavior) = REQUIRED]; - // Required. Customer specified deadline by when this order should be - // fulfilled. + // Deprecated: Please use customer_requested_installation_date instead. google.protobuf.Timestamp fulfillment_time = 9 - [(google.api.field_behavior) = REQUIRED]; + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; + + // Optional. Customer requested installation date for this order. + google.type.Date customer_requested_installation_date = 21 + [(google.api.field_behavior) = OPTIONAL]; // Required. [Unicode CLDR](http://cldr.unicode.org/) region code where this // order will be deployed. For a list of valid CLDR region codes, see the @@ -228,6 +231,30 @@ message Order { // Output only. Estimated installation date for this order. google.type.Date estimated_installation_date = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Estimated delivery date for this order. + google.type.Date estimated_delivery_date = 22 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Whether this order is a migration from customer's existing + // infrastructure. + bool migration = 23 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The time when the order was moved to ACCEPTED state. + google.protobuf.Timestamp accepted_time = 24 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The date to which the customer or Google wants to set the + // scheduled installation date. + google.type.Date requested_date_change = 25 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Notes for this order, provided by the vendor. + string vendor_notes = 26 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Contact information of the SI assigned to this order. + OrganizationContact vendor_contact = 27 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // A physical site where hardware will be installed. @@ -377,10 +404,10 @@ message HardwareGroup { } ]; - // Optional. Requested installation date for the hardware in this - // HardwareGroup. Filled in by the customer. + // Deprecated: This value is not used. Use the requested_installation_date + // field in the Order resource instead. google.type.Date requested_installation_date = 10 - [(google.api.field_behavior) = OPTIONAL]; + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; } // An instance of hardware installed at a site. @@ -578,6 +605,10 @@ message Hardware { // Output only. Per machine asset information needed for turnup. repeated MachineInfo machine_infos = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The estimated delivery date of the hardware. + google.type.Date estimated_delivery_date = 21 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // A comment on an order. @@ -822,6 +853,22 @@ message Zone { // Output only. Provisioning state for configurations like MAC addresses. ProvisioningState provisioning_state = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Whether to skip the cluster provisioning step during factory + // turnup. If true, indicates that the Kubernetes cluster will be created + // after the zone's hardware is installed at the customer site. + bool skip_cluster_provisioning = 16 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Indicates whether a valid cluster intent must be provided by + // the customer before accepting the order. If true, the order cannot be + // accepted until cluster intent is present. This is used to enforce early + // validation and prevent delays caused by missing configuration. + bool cluster_intent_required = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Indicates whether the provided cluster intent has been + // successfully verified. This flag ensures cluster intent exists before order + // can be accepted. + bool cluster_intent_verified = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Contact information of the customer organization. @@ -936,8 +983,21 @@ message HardwarePhysicalInfo { // C13. C_13 = 2; - // Standard european receptacle. - STANDARD_EU = 3; + // Deprecated: Please use TYPE_G_BS1363, CEE_7_3, CEE_7_5 or TYPE_F + // instead. + STANDARD_EU = 3 [deprecated = true]; + + // Type G / BS1363. + TYPE_G_BS1363 = 4; + + // C 7/3. + CEE_7_3 = 5; + + // C 7/5. + CEE_7_5 = 6; + + // Type F. + TYPE_F = 7; } // Valid network uplink types. diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/proto/google/cloud/gdchardwaremanagement/v1alpha/service.proto b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/proto/google/cloud/gdchardwaremanagement/v1alpha/service.proto index 3b838e551a6f..1574e187bd26 100644 --- a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/proto/google/cloud/gdchardwaremanagement/v1alpha/service.proto +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/proto/google/cloud/gdchardwaremanagement/v1alpha/service.proto @@ -26,6 +26,7 @@ import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; +import "google/type/date.proto"; option csharp_namespace = "Google.Cloud.GdcHardwareManagement.V1Alpha"; option go_package = "cloud.google.com/go/gdchardwaremanagement/apiv1alpha/gdchardwaremanagementpb;gdchardwaremanagementpb"; @@ -108,6 +109,19 @@ service GDCHardwareManagement { }; } + // Cancels an order. + rpc CancelOrder(CancelOrderRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1alpha/{name=projects/*/locations/*/orders/*}:cancel" + body: "*" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "Order" + metadata_type: "OperationMetadata" + }; + } + // Lists sites in a given project and location. rpc ListSites(ListSitesRequest) returns (ListSitesResponse) { option (google.api.http) = { @@ -420,6 +434,20 @@ service GDCHardwareManagement { metadata_type: "OperationMetadata" }; } + + // Updates the requested date change of a single Order. + rpc RequestOrderDateChange(RequestOrderDateChangeRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1alpha/{name=projects/*/locations/*/orders/*}:requestDateChange" + body: "*" + }; + option (google.api.method_signature) = "name,requested_date"; + option (google.longrunning.operation_info) = { + response_type: "Order" + metadata_type: "OperationMetadata" + }; + } } // A request to list orders. @@ -587,6 +615,25 @@ message SubmitOrderRequest { Type type = 3 [(google.api.field_behavior) = OPTIONAL]; } +// A request to cancel an order. +message CancelOrderRequest { + // Required. The name of the order. + // Format: `projects/{project}/locations/{location}/orders/{order}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gdchardwaremanagement.googleapis.com/Order" + } + ]; + + // Optional. An optional unique identifier for this request. See + // [AIP-155](https://google.aip.dev/155). + string request_id = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + // A request to list sites. message ListSitesRequest { // Required. The project and location to list sites in. @@ -1291,6 +1338,9 @@ message SignalZoneStateRequest { // The Zone failed in factory turnup checks. FACTORY_TURNUP_CHECKS_FAILED = 2; + + // Verify that a valid cluster intent is present. + VERIFY_CLUSTER_INTENT_PRESENCE = 4; } // Valid provisioning state signals for a zone. @@ -1369,3 +1419,19 @@ message OperationMetadata { // Output only. API version used to start the operation. string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; } + +// A request to change the requested date of an order. +message RequestOrderDateChangeRequest { + // Required. The name of the order to update. + // Format: projects/{project}/locations/{location}/orders/{order} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gdchardwaremanagement.googleapis.com/Order" + } + ]; + + // Required. The date to which the customer or Google wants to set the + // scheduled installation date. + google.type.Date requested_date = 2 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/cancelorder/AsyncCancelOrder.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/cancelorder/AsyncCancelOrder.java new file mode 100644 index 000000000000..54f53814c3e9 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/cancelorder/AsyncCancelOrder.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.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CancelOrder_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.CancelOrderRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.OrderName; +import com.google.longrunning.Operation; + +public class AsyncCancelOrder { + + public static void main(String[] args) throws Exception { + asyncCancelOrder(); + } + + public static void asyncCancelOrder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + CancelOrderRequest request = + CancelOrderRequest.newBuilder() + .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + gDCHardwareManagementClient.cancelOrderCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CancelOrder_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/cancelorder/AsyncCancelOrderLRO.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/cancelorder/AsyncCancelOrderLRO.java new file mode 100644 index 000000000000..83bce71fc228 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/cancelorder/AsyncCancelOrderLRO.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.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CancelOrder_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.CancelOrderRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata; +import com.google.cloud.gdchardwaremanagement.v1alpha.Order; +import com.google.cloud.gdchardwaremanagement.v1alpha.OrderName; + +public class AsyncCancelOrderLRO { + + public static void main(String[] args) throws Exception { + asyncCancelOrderLRO(); + } + + public static void asyncCancelOrderLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + CancelOrderRequest request = + CancelOrderRequest.newBuilder() + .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + gDCHardwareManagementClient.cancelOrderOperationCallable().futureCall(request); + // Do something. + Order response = future.get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CancelOrder_LRO_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/cancelorder/SyncCancelOrder.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/cancelorder/SyncCancelOrder.java new file mode 100644 index 000000000000..ef5ca9fbe62e --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/cancelorder/SyncCancelOrder.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.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CancelOrder_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.CancelOrderRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.Order; +import com.google.cloud.gdchardwaremanagement.v1alpha.OrderName; + +public class SyncCancelOrder { + + public static void main(String[] args) throws Exception { + syncCancelOrder(); + } + + public static void syncCancelOrder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + CancelOrderRequest request = + CancelOrderRequest.newBuilder() + .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setRequestId("requestId693933066") + .build(); + Order response = gDCHardwareManagementClient.cancelOrderAsync(request).get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CancelOrder_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/cancelorder/SyncCancelOrderOrdername.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/cancelorder/SyncCancelOrderOrdername.java new file mode 100644 index 000000000000..d539d200b202 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/cancelorder/SyncCancelOrderOrdername.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.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CancelOrder_Ordername_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.Order; +import com.google.cloud.gdchardwaremanagement.v1alpha.OrderName; + +public class SyncCancelOrderOrdername { + + public static void main(String[] args) throws Exception { + syncCancelOrderOrdername(); + } + + public static void syncCancelOrderOrdername() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + OrderName name = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]"); + Order response = gDCHardwareManagementClient.cancelOrderAsync(name).get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CancelOrder_Ordername_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/cancelorder/SyncCancelOrderString.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/cancelorder/SyncCancelOrderString.java new file mode 100644 index 000000000000..974e417eaeb1 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/cancelorder/SyncCancelOrderString.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.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CancelOrder_String_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.Order; +import com.google.cloud.gdchardwaremanagement.v1alpha.OrderName; + +public class SyncCancelOrderString { + + public static void main(String[] args) throws Exception { + syncCancelOrderString(); + } + + public static void syncCancelOrderString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + String name = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString(); + Order response = gDCHardwareManagementClient.cancelOrderAsync(name).get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CancelOrder_String_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/requestorderdatechange/AsyncRequestOrderDateChange.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/requestorderdatechange/AsyncRequestOrderDateChange.java new file mode 100644 index 000000000000..93ede3313e2b --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/requestorderdatechange/AsyncRequestOrderDateChange.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.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_RequestOrderDateChange_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.OrderName; +import com.google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest; +import com.google.longrunning.Operation; +import com.google.type.Date; + +public class AsyncRequestOrderDateChange { + + public static void main(String[] args) throws Exception { + asyncRequestOrderDateChange(); + } + + public static void asyncRequestOrderDateChange() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + RequestOrderDateChangeRequest request = + RequestOrderDateChangeRequest.newBuilder() + .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setRequestedDate(Date.newBuilder().build()) + .build(); + ApiFuture future = + gDCHardwareManagementClient.requestOrderDateChangeCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_RequestOrderDateChange_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/requestorderdatechange/AsyncRequestOrderDateChangeLRO.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/requestorderdatechange/AsyncRequestOrderDateChangeLRO.java new file mode 100644 index 000000000000..0471d9f8d1f7 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/requestorderdatechange/AsyncRequestOrderDateChangeLRO.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.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_RequestOrderDateChange_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata; +import com.google.cloud.gdchardwaremanagement.v1alpha.Order; +import com.google.cloud.gdchardwaremanagement.v1alpha.OrderName; +import com.google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest; +import com.google.type.Date; + +public class AsyncRequestOrderDateChangeLRO { + + public static void main(String[] args) throws Exception { + asyncRequestOrderDateChangeLRO(); + } + + public static void asyncRequestOrderDateChangeLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + RequestOrderDateChangeRequest request = + RequestOrderDateChangeRequest.newBuilder() + .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setRequestedDate(Date.newBuilder().build()) + .build(); + OperationFuture future = + gDCHardwareManagementClient.requestOrderDateChangeOperationCallable().futureCall(request); + // Do something. + Order response = future.get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_RequestOrderDateChange_LRO_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/requestorderdatechange/SyncRequestOrderDateChange.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/requestorderdatechange/SyncRequestOrderDateChange.java new file mode 100644 index 000000000000..db8a9e88752c --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/requestorderdatechange/SyncRequestOrderDateChange.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.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_RequestOrderDateChange_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.Order; +import com.google.cloud.gdchardwaremanagement.v1alpha.OrderName; +import com.google.cloud.gdchardwaremanagement.v1alpha.RequestOrderDateChangeRequest; +import com.google.type.Date; + +public class SyncRequestOrderDateChange { + + public static void main(String[] args) throws Exception { + syncRequestOrderDateChange(); + } + + public static void syncRequestOrderDateChange() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + RequestOrderDateChangeRequest request = + RequestOrderDateChangeRequest.newBuilder() + .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setRequestedDate(Date.newBuilder().build()) + .build(); + Order response = gDCHardwareManagementClient.requestOrderDateChangeAsync(request).get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_RequestOrderDateChange_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/requestorderdatechange/SyncRequestOrderDateChangeOrdernameDate.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/requestorderdatechange/SyncRequestOrderDateChangeOrdernameDate.java new file mode 100644 index 000000000000..9a8ccd564ff7 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/requestorderdatechange/SyncRequestOrderDateChangeOrdernameDate.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.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_RequestOrderDateChange_OrdernameDate_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.Order; +import com.google.cloud.gdchardwaremanagement.v1alpha.OrderName; +import com.google.type.Date; + +public class SyncRequestOrderDateChangeOrdernameDate { + + public static void main(String[] args) throws Exception { + syncRequestOrderDateChangeOrdernameDate(); + } + + public static void syncRequestOrderDateChangeOrdernameDate() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + OrderName name = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]"); + Date requestedDate = Date.newBuilder().build(); + Order response = + gDCHardwareManagementClient.requestOrderDateChangeAsync(name, requestedDate).get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_RequestOrderDateChange_OrdernameDate_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/requestorderdatechange/SyncRequestOrderDateChangeStringDate.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/requestorderdatechange/SyncRequestOrderDateChangeStringDate.java new file mode 100644 index 000000000000..4bb053c97342 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/requestorderdatechange/SyncRequestOrderDateChangeStringDate.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.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_RequestOrderDateChange_StringDate_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.Order; +import com.google.cloud.gdchardwaremanagement.v1alpha.OrderName; +import com.google.type.Date; + +public class SyncRequestOrderDateChangeStringDate { + + public static void main(String[] args) throws Exception { + syncRequestOrderDateChangeStringDate(); + } + + public static void syncRequestOrderDateChangeStringDate() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + String name = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString(); + Date requestedDate = Date.newBuilder().build(); + Order response = + gDCHardwareManagementClient.requestOrderDateChangeAsync(name, requestedDate).get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_RequestOrderDateChange_StringDate_sync] diff --git a/java-geminidataanalytics/README.md b/java-geminidataanalytics/README.md index 520119e44fed..2a38018d2283 100644 --- a/java-geminidataanalytics/README.md +++ b/java-geminidataanalytics/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.66.0 + 26.67.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-geminidataanalytics - 0.0.0 + 0.1.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-geminidataanalytics:0.0.0' +implementation 'com.google.cloud:google-cloud-geminidataanalytics:0.1.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-geminidataanalytics" % "0.0.0" +libraryDependencies += "com.google.cloud" % "google-cloud-geminidataanalytics" % "0.1.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-geminidataanalytics.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-geminidataanalytics/0.0.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-geminidataanalytics/0.1.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-gke-backup/README.md b/java-gke-backup/README.md index daf92fede615..d331edf17196 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.66.0 + 26.67.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.71.0 + 0.72.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gke-backup:0.71.0' +implementation 'com.google.cloud:google-cloud-gke-backup:0.72.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gke-backup" % "0.71.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gke-backup" % "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.cloud/google-cloud-gke-backup.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-backup/0.71.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-backup/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-gke-connect-gateway/README.md b/java-gke-connect-gateway/README.md index 6cb37661ed2f..2fc4a89ea4ff 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.66.0 + 26.67.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.73.0 + 0.74.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gke-connect-gateway:0.73.0' +implementation 'com.google.cloud:google-cloud-gke-connect-gateway:0.74.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gke-connect-gateway" % "0.73.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gke-connect-gateway" % "0.74.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.73.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-connect-gateway/0.74.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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 25080282078f..689d5a53f220 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.66.0 + 26.67.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.71.0 + 0.72.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gke-multi-cloud:0.71.0' +implementation 'com.google.cloud:google-cloud-gke-multi-cloud:0.72.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gke-multi-cloud" % "0.71.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gke-multi-cloud" % "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.cloud/google-cloud-gke-multi-cloud.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-multi-cloud/0.71.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-multi-cloud/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-gkehub/README.md b/java-gkehub/README.md index 0f817ef471bb..e9f906a528bc 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.66.0 + 26.67.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.72.0 + 1.73.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gkehub:1.72.0' +implementation 'com.google.cloud:google-cloud-gkehub:1.73.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gkehub" % "1.72.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gkehub" % "1.73.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.72.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gkehub/1.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-grafeas/README.md b/java-grafeas/README.md index 01cd5ed9fe68..e45d97c5d275 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.66.0 + 26.67.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: io.grafeas grafeas - 2.73.0 + 2.74.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'io.grafeas:grafeas:2.73.0' +implementation 'io.grafeas:grafeas:2.74.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "io.grafeas" % "grafeas" % "2.73.0" +libraryDependencies += "io.grafeas" % "grafeas" % "2.74.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.73.0 +[maven-version-link]: https://central.sonatype.com/artifact/io.grafeas/grafeas/2.74.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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 76e2c79ecba9..ede09a13e87c 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.66.0 + 26.67.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.72.0 + 2.73.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gsuite-addons:2.72.0' +implementation 'com.google.cloud:google-cloud-gsuite-addons:2.73.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gsuite-addons" % "2.72.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gsuite-addons" % "2.73.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.72.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gsuite-addons/2.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-iam-admin/README.md b/java-iam-admin/README.md index c2ed09c253d3..dec9beea9c2e 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.66.0 + 26.67.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.67.0 + 3.68.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-iam-admin:3.67.0' +implementation 'com.google.cloud:google-iam-admin:3.68.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-iam-admin" % "3.67.0" +libraryDependencies += "com.google.cloud" % "google-iam-admin" % "3.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-iam-admin.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-admin/3.67.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-admin/3.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-iam/README.md b/java-iam/README.md index 8163ec029c5d..37f02ebcd8c0 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.66.0 + 26.67.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.70.0 + 1.71.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-iam-policy:1.70.0' +implementation 'com.google.cloud:google-iam-policy:1.71.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-iam-policy" % "1.70.0" +libraryDependencies += "com.google.cloud" % "google-iam-policy" % "1.71.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.70.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-policy/1.71.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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 396b7b7c1cca..5acbbc0c529f 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.66.0 + 26.67.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.72.0 + 2.73.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-iamcredentials:2.72.0' +implementation 'com.google.cloud:google-cloud-iamcredentials:2.73.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-iamcredentials" % "2.72.0" +libraryDependencies += "com.google.cloud" % "google-cloud-iamcredentials" % "2.73.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.72.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iamcredentials/2.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-iap/README.md b/java-iap/README.md index 2e2537a064c2..83d7375cf7b2 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.66.0 + 26.67.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.28.0 + 0.29.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-iap:0.28.0' +implementation 'com.google.cloud:google-cloud-iap:0.29.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-iap" % "0.28.0" +libraryDependencies += "com.google.cloud" % "google-cloud-iap" % "0.29.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.28.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iap/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-ids/README.md b/java-ids/README.md index a0b5d8a04bfd..2ff981cb67a8 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.66.0 + 26.67.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.71.0 + 1.72.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-ids:1.71.0' +implementation 'com.google.cloud:google-cloud-ids:1.72.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-ids" % "1.71.0" +libraryDependencies += "com.google.cloud" % "google-cloud-ids" % "1.72.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-ids.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-ids/1.71.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-ids/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-infra-manager/README.md b/java-infra-manager/README.md index b534ad1ae764..810467b32930 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.66.0 + 26.67.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.49.0 + 0.50.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-infra-manager:0.49.0' +implementation 'com.google.cloud:google-cloud-infra-manager:0.50.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-infra-manager" % "0.49.0" +libraryDependencies += "com.google.cloud" % "google-cloud-infra-manager" % "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-infra-manager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-infra-manager/0.49.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-infra-manager/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-infra-manager/google-cloud-infra-manager/src/main/resources/META-INF/native-image/com.google.cloud.config.v1/reflect-config.json b/java-infra-manager/google-cloud-infra-manager/src/main/resources/META-INF/native-image/com.google.cloud.config.v1/reflect-config.json index a6638db4d0b0..b69baa813f4e 100644 --- a/java-infra-manager/google-cloud-infra-manager/src/main/resources/META-INF/native-image/com.google.cloud.config.v1/reflect-config.json +++ b/java-infra-manager/google-cloud-infra-manager/src/main/resources/META-INF/native-image/com.google.cloud.config.v1/reflect-config.json @@ -1349,6 +1349,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.config.v1.ProviderConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ProviderConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.config.v1.ProviderConfig$ProviderSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.config.v1.QuotaValidation", "queryAllDeclaredConstructors": true, diff --git a/java-infra-manager/google-cloud-infra-manager/src/test/java/com/google/cloud/config/v1/ConfigClientHttpJsonTest.java b/java-infra-manager/google-cloud-infra-manager/src/test/java/com/google/cloud/config/v1/ConfigClientHttpJsonTest.java index f7093d02bfe8..3575179c3add 100644 --- a/java-infra-manager/google-cloud-infra-manager/src/test/java/com/google/cloud/config/v1/ConfigClientHttpJsonTest.java +++ b/java-infra-manager/google-cloud-infra-manager/src/test/java/com/google/cloud/config/v1/ConfigClientHttpJsonTest.java @@ -226,6 +226,7 @@ public void getDeploymentTest() throws Exception { .setTfVersion("tfVersion182968838") .setQuotaValidation(QuotaValidation.forNumber(0)) .putAllAnnotations(new HashMap()) + .setProviderConfig(ProviderConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -288,6 +289,7 @@ public void getDeploymentTest2() throws Exception { .setTfVersion("tfVersion182968838") .setQuotaValidation(QuotaValidation.forNumber(0)) .putAllAnnotations(new HashMap()) + .setProviderConfig(ProviderConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -350,6 +352,7 @@ public void createDeploymentTest() throws Exception { .setTfVersion("tfVersion182968838") .setQuotaValidation(QuotaValidation.forNumber(0)) .putAllAnnotations(new HashMap()) + .setProviderConfig(ProviderConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -422,6 +425,7 @@ public void createDeploymentTest2() throws Exception { .setTfVersion("tfVersion182968838") .setQuotaValidation(QuotaValidation.forNumber(0)) .putAllAnnotations(new HashMap()) + .setProviderConfig(ProviderConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -494,6 +498,7 @@ public void updateDeploymentTest() throws Exception { .setTfVersion("tfVersion182968838") .setQuotaValidation(QuotaValidation.forNumber(0)) .putAllAnnotations(new HashMap()) + .setProviderConfig(ProviderConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -524,6 +529,7 @@ public void updateDeploymentTest() throws Exception { .setTfVersion("tfVersion182968838") .setQuotaValidation(QuotaValidation.forNumber(0)) .putAllAnnotations(new HashMap()) + .setProviderConfig(ProviderConfig.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -574,6 +580,7 @@ public void updateDeploymentExceptionTest() throws Exception { .setTfVersion("tfVersion182968838") .setQuotaValidation(QuotaValidation.forNumber(0)) .putAllAnnotations(new HashMap()) + .setProviderConfig(ProviderConfig.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateDeploymentAsync(deployment, updateMask).get(); @@ -605,6 +612,7 @@ public void deleteDeploymentTest() throws Exception { .setTfVersion("tfVersion182968838") .setQuotaValidation(QuotaValidation.forNumber(0)) .putAllAnnotations(new HashMap()) + .setProviderConfig(ProviderConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -672,6 +680,7 @@ public void deleteDeploymentTest2() throws Exception { .setTfVersion("tfVersion182968838") .setQuotaValidation(QuotaValidation.forNumber(0)) .putAllAnnotations(new HashMap()) + .setProviderConfig(ProviderConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -837,6 +846,7 @@ public void getRevisionTest() throws Exception { .setTfVersion("tfVersion182968838") .setQuotaValidationResults("quotaValidationResults-1396407899") .setQuotaValidation(QuotaValidation.forNumber(0)) + .setProviderConfig(ProviderConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -897,6 +907,7 @@ public void getRevisionTest2() throws Exception { .setTfVersion("tfVersion182968838") .setQuotaValidationResults("quotaValidationResults-1396407899") .setQuotaValidation(QuotaValidation.forNumber(0)) + .setProviderConfig(ProviderConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -1431,6 +1442,7 @@ public void lockDeploymentTest() throws Exception { .setTfVersion("tfVersion182968838") .setQuotaValidation(QuotaValidation.forNumber(0)) .putAllAnnotations(new HashMap()) + .setProviderConfig(ProviderConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1498,6 +1510,7 @@ public void lockDeploymentTest2() throws Exception { .setTfVersion("tfVersion182968838") .setQuotaValidation(QuotaValidation.forNumber(0)) .putAllAnnotations(new HashMap()) + .setProviderConfig(ProviderConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1565,6 +1578,7 @@ public void unlockDeploymentTest() throws Exception { .setTfVersion("tfVersion182968838") .setQuotaValidation(QuotaValidation.forNumber(0)) .putAllAnnotations(new HashMap()) + .setProviderConfig(ProviderConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1634,6 +1648,7 @@ public void unlockDeploymentTest2() throws Exception { .setTfVersion("tfVersion182968838") .setQuotaValidation(QuotaValidation.forNumber(0)) .putAllAnnotations(new HashMap()) + .setProviderConfig(ProviderConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1798,6 +1813,7 @@ public void createPreviewTest() throws Exception { .setTfVersion("tfVersion182968838") .setTfVersionConstraint("tfVersionConstraint-1530231677") .putAllAnnotations(new HashMap()) + .setProviderConfig(ProviderConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1864,6 +1880,7 @@ public void createPreviewTest2() throws Exception { .setTfVersion("tfVersion182968838") .setTfVersionConstraint("tfVersionConstraint-1530231677") .putAllAnnotations(new HashMap()) + .setProviderConfig(ProviderConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1930,6 +1947,7 @@ public void getPreviewTest() throws Exception { .setTfVersion("tfVersion182968838") .setTfVersionConstraint("tfVersionConstraint-1530231677") .putAllAnnotations(new HashMap()) + .setProviderConfig(ProviderConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -1989,6 +2007,7 @@ public void getPreviewTest2() throws Exception { .setTfVersion("tfVersion182968838") .setTfVersionConstraint("tfVersionConstraint-1530231677") .putAllAnnotations(new HashMap()) + .setProviderConfig(ProviderConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -2148,6 +2167,7 @@ public void deletePreviewTest() throws Exception { .setTfVersion("tfVersion182968838") .setTfVersionConstraint("tfVersionConstraint-1530231677") .putAllAnnotations(new HashMap()) + .setProviderConfig(ProviderConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2212,6 +2232,7 @@ public void deletePreviewTest2() throws Exception { .setTfVersion("tfVersion182968838") .setTfVersionConstraint("tfVersionConstraint-1530231677") .putAllAnnotations(new HashMap()) + .setProviderConfig(ProviderConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() diff --git a/java-infra-manager/google-cloud-infra-manager/src/test/java/com/google/cloud/config/v1/ConfigClientTest.java b/java-infra-manager/google-cloud-infra-manager/src/test/java/com/google/cloud/config/v1/ConfigClientTest.java index 55c6c6206cf7..a246b4d5ff95 100644 --- a/java-infra-manager/google-cloud-infra-manager/src/test/java/com/google/cloud/config/v1/ConfigClientTest.java +++ b/java-infra-manager/google-cloud-infra-manager/src/test/java/com/google/cloud/config/v1/ConfigClientTest.java @@ -224,6 +224,7 @@ public void getDeploymentTest() throws Exception { .setTfVersion("tfVersion182968838") .setQuotaValidation(QuotaValidation.forNumber(0)) .putAllAnnotations(new HashMap()) + .setProviderConfig(ProviderConfig.newBuilder().build()) .build(); mockConfig.addResponse(expectedResponse); @@ -280,6 +281,7 @@ public void getDeploymentTest2() throws Exception { .setTfVersion("tfVersion182968838") .setQuotaValidation(QuotaValidation.forNumber(0)) .putAllAnnotations(new HashMap()) + .setProviderConfig(ProviderConfig.newBuilder().build()) .build(); mockConfig.addResponse(expectedResponse); @@ -336,6 +338,7 @@ public void createDeploymentTest() throws Exception { .setTfVersion("tfVersion182968838") .setQuotaValidation(QuotaValidation.forNumber(0)) .putAllAnnotations(new HashMap()) + .setProviderConfig(ProviderConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -407,6 +410,7 @@ public void createDeploymentTest2() throws Exception { .setTfVersion("tfVersion182968838") .setQuotaValidation(QuotaValidation.forNumber(0)) .putAllAnnotations(new HashMap()) + .setProviderConfig(ProviderConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -478,6 +482,7 @@ public void updateDeploymentTest() throws Exception { .setTfVersion("tfVersion182968838") .setQuotaValidation(QuotaValidation.forNumber(0)) .putAllAnnotations(new HashMap()) + .setProviderConfig(ProviderConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -545,6 +550,7 @@ public void deleteDeploymentTest() throws Exception { .setTfVersion("tfVersion182968838") .setQuotaValidation(QuotaValidation.forNumber(0)) .putAllAnnotations(new HashMap()) + .setProviderConfig(ProviderConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -609,6 +615,7 @@ public void deleteDeploymentTest2() throws Exception { .setTfVersion("tfVersion182968838") .setQuotaValidation(QuotaValidation.forNumber(0)) .putAllAnnotations(new HashMap()) + .setProviderConfig(ProviderConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -759,6 +766,7 @@ public void getRevisionTest() throws Exception { .setTfVersion("tfVersion182968838") .setQuotaValidationResults("quotaValidationResults-1396407899") .setQuotaValidation(QuotaValidation.forNumber(0)) + .setProviderConfig(ProviderConfig.newBuilder().build()) .build(); mockConfig.addResponse(expectedResponse); @@ -813,6 +821,7 @@ public void getRevisionTest2() throws Exception { .setTfVersion("tfVersion182968838") .setQuotaValidationResults("quotaValidationResults-1396407899") .setQuotaValidation(QuotaValidation.forNumber(0)) + .setProviderConfig(ProviderConfig.newBuilder().build()) .build(); mockConfig.addResponse(expectedResponse); @@ -1280,6 +1289,7 @@ public void lockDeploymentTest() throws Exception { .setTfVersion("tfVersion182968838") .setQuotaValidation(QuotaValidation.forNumber(0)) .putAllAnnotations(new HashMap()) + .setProviderConfig(ProviderConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1344,6 +1354,7 @@ public void lockDeploymentTest2() throws Exception { .setTfVersion("tfVersion182968838") .setQuotaValidation(QuotaValidation.forNumber(0)) .putAllAnnotations(new HashMap()) + .setProviderConfig(ProviderConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1408,6 +1419,7 @@ public void unlockDeploymentTest() throws Exception { .setTfVersion("tfVersion182968838") .setQuotaValidation(QuotaValidation.forNumber(0)) .putAllAnnotations(new HashMap()) + .setProviderConfig(ProviderConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1475,6 +1487,7 @@ public void unlockDeploymentTest2() throws Exception { .setTfVersion("tfVersion182968838") .setQuotaValidation(QuotaValidation.forNumber(0)) .putAllAnnotations(new HashMap()) + .setProviderConfig(ProviderConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1625,6 +1638,7 @@ public void createPreviewTest() throws Exception { .setTfVersion("tfVersion182968838") .setTfVersionConstraint("tfVersionConstraint-1530231677") .putAllAnnotations(new HashMap()) + .setProviderConfig(ProviderConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1689,6 +1703,7 @@ public void createPreviewTest2() throws Exception { .setTfVersion("tfVersion182968838") .setTfVersionConstraint("tfVersionConstraint-1530231677") .putAllAnnotations(new HashMap()) + .setProviderConfig(ProviderConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1753,6 +1768,7 @@ public void getPreviewTest() throws Exception { .setTfVersion("tfVersion182968838") .setTfVersionConstraint("tfVersionConstraint-1530231677") .putAllAnnotations(new HashMap()) + .setProviderConfig(ProviderConfig.newBuilder().build()) .build(); mockConfig.addResponse(expectedResponse); @@ -1806,6 +1822,7 @@ public void getPreviewTest2() throws Exception { .setTfVersion("tfVersion182968838") .setTfVersionConstraint("tfVersionConstraint-1530231677") .putAllAnnotations(new HashMap()) + .setProviderConfig(ProviderConfig.newBuilder().build()) .build(); mockConfig.addResponse(expectedResponse); @@ -1947,6 +1964,7 @@ public void deletePreviewTest() throws Exception { .setTfVersion("tfVersion182968838") .setTfVersionConstraint("tfVersionConstraint-1530231677") .putAllAnnotations(new HashMap()) + .setProviderConfig(ProviderConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2008,6 +2026,7 @@ public void deletePreviewTest2() throws Exception { .setTfVersion("tfVersion182968838") .setTfVersionConstraint("tfVersionConstraint-1530231677") .putAllAnnotations(new HashMap()) + .setProviderConfig(ProviderConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ConfigProto.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ConfigProto.java index 51424b823bb3..58944a4cd63f 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ConfigProto.java +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ConfigProto.java @@ -300,6 +300,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_config_v1_GetResourceDriftRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_config_v1_GetResourceDriftRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_config_v1_ProviderConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_config_v1_ProviderConfig_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -317,7 +321,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "i/field_info.proto\032\031google/api/resource." + "proto\032#google/longrunning/operations.proto\032\033google/protobuf/empty.proto\032" + " google/protobuf/field_mask.proto\032\034google/protob" - + "uf/struct.proto\032\037google/protobuf/timestamp.proto\032\027google/rpc/status.proto\"\332\017\n\n" + + "uf/struct.proto\032\037google/protobuf/timestamp.proto\032\027google/rpc/status.proto\"\240\020\n\n" + "Deployment\022I\n" + "\023terraform_blueprint\030\006 \001(\0132*." + "google.cloud.config.v1.TerraformBlueprintH\000\022\021\n" @@ -352,7 +356,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020quota_validation\030\027" + " \001(\0162\'.google.cloud.config.v1.QuotaValidationB\003\340A\001\022M\n" + "\013annotations\030\030" - + " \003(\01323.google.cloud.config.v1.Deployment.AnnotationsEntryB\003\340A\001\032-\n" + + " \003(\01323.google.cloud.config.v1.Deployment.AnnotationsEntryB\003\340A\001\022D\n" + + "\017provider_config\030\031" + + " \001(\0132&.google.cloud.config.v1.ProviderConfigB\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" @@ -384,8 +390,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tUNLOCKING\020\004\022\017\n" + "\013LOCK_FAILED\020\005\022\021\n\r" + "UNLOCK_FAILED\020\006:g\352Ad\n" - + " config.googleapis.com/" - + "Deployment\022@projects/{project}/locations/{location}/deployments/{deployment}B\013\n" + + " config.googleapis.com/Deployment" + + "\022@projects/{project}/locations/{location}/deployments/{deployment}B\013\n" + "\tblueprintB\027\n" + "\025_artifacts_gcs_bucketB\022\n" + "\020_service_accountB\034\n" @@ -395,20 +401,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022TerraformBlueprint\022\024\n\n" + "gcs_source\030\001 \001(\tH\000\0227\n\n" + "git_source\030\002 \001(\0132!.google.cloud.config.v1.GitSourceH\000\022V\n" - + "\014input_values\030\004" - + " \003(\0132;.google.cloud.config.v1.TerraformBlueprint.InputValuesEntryB\003\340A\001\032]\n" + + "\014input_values\030\004 \003(\013" + + "2;.google.cloud.config.v1.TerraformBlueprint.InputValuesEntryB\003\340A\001\032]\n" + "\020InputValuesEntry\022\013\n" + "\003key\030\001 \001(\t\0228\n" - + "\005value\030\002" - + " \001(\0132).google.cloud.config.v1.TerraformVariable:\0028\001B\010\n" + + "\005value\030\002 \001(\0132).goo" + + "gle.cloud.config.v1.TerraformVariable:\0028\001B\010\n" + "\006source\"E\n" + "\021TerraformVariable\0220\n" + "\013input_value\030\005 \001(\0132\026.google.protobuf.ValueB\003\340A\001\"\317\001\n" + "\014ApplyResults\022\017\n" + "\007content\030\001 \001(\t\022\021\n" + "\tartifacts\030\002 \001(\t\022B\n" - + "\007outputs\030\003 \003" - + "(\01321.google.cloud.config.v1.ApplyResults.OutputsEntry\032W\n" + + "\007outputs\030\003 \003(\01321.googl" + + "e.cloud.config.v1.ApplyResults.OutputsEntry\032W\n" + "\014OutputsEntry\022\013\n" + "\003key\030\001 \001(\t\0226\n" + "\005value\030\002 \001(\0132\'.google.cloud.config.v1.TerraformOutput:\0028\001\"K\n" @@ -447,22 +453,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + "!locations.googleapis.com/Location\022\032\n\r" + "deployment_id\030\002 \001(\tB\003\340A\002\022;\n\n" - + "deployment\030\003 \001(\013" - + "2\".google.cloud.config.v1.DeploymentB\003\340A\002\022\027\n\n" + + "deployment\030\003" + + " \001(\0132\".google.cloud.config.v1.DeploymentB\003\340A\002\022\027\n\n" + "request_id\030\004 \001(\tB\003\340A\001\"\245\001\n" + "\027UpdateDeploymentRequest\0224\n" + "\013update_mask\030\001" + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022;\n\n" - + "deployment\030\002" - + " \001(\0132\".google.cloud.config.v1.DeploymentB\003\340A\002\022\027\n\n" + + "deployment\030\002 \001(\0132\"" + + ".google.cloud.config.v1.DeploymentB\003\340A\002\022\027\n\n" + "request_id\030\003 \001(\tB\003\340A\001\"\240\002\n" + "\027DeleteDeploymentRequest\0226\n" + "\004name\030\001 \001(\tB(\340A\002\372A\"\n" + " config.googleapis.com/Deployment\022\027\n\n" + "request_id\030\002 \001(\tB\003\340A\001\022\022\n" + "\005force\030\003 \001(\010B\003\340A\001\022X\n\r" - + "delete_policy\030\004 \001(\0162<.google.clou" - + "d.config.v1.DeleteDeploymentRequest.DeletePolicyB\003\340A\001\"F\n" + + "delete_policy\030\004 \001(\0162<.google.cloud.config.v" + + "1.DeleteDeploymentRequest.DeletePolicyB\003\340A\001\"F\n" + "\014DeletePolicy\022\035\n" + "\031DELETE_POLICY_UNSPECIFIED\020\000\022\n\n" + "\006DELETE\020\001\022\013\n" @@ -470,8 +476,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021OperationMetadata\022W\n" + "\023deployment_metadata\030\010" + " \001(\01323.google.cloud.config.v1.DeploymentOperationMetadataB\003\340A\003H\000\022Q\n" - + "\020preview_metadata\030\t \001(\01320.google.cloud.co" - + "nfig.v1.PreviewOperationMetadataB\003\340A\003H\000\0224\n" + + "\020preview_metadata\030\t" + + " \001(\01320.google.cloud.config.v1.PreviewOperationMetadataB\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" @@ -479,20 +485,21 @@ 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\023\n" - + "\021resource_metadata\"\203\013\n" + + "\021resource_metadata\"\311\013\n" + "\010Revision\022N\n" + "\023terraform_blueprint\030\006" + " \001(\0132*.google.cloud.config.v1.TerraformBlueprintB\003\340A\003H\000\022\014\n" + "\004name\030\001 \001(\t\0224\n" + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022<\n" - + "\006action\030\004" - + " \001(\0162\'.google.cloud.config.v1.Revision.ActionB\003\340A\003\022:\n" + + "\006action\030\004 \001(\0162\'" + + ".google.cloud.config.v1.Revision.ActionB\003\340A\003\022:\n" + "\005state\030\005" + " \001(\0162&.google.cloud.config.v1.Revision.StateB\003\340A\003\022@\n\r" + "apply_results\030\007" + " \001(\0132$.google.cloud.config.v1.ApplyResultsB\003\340A\003\022\031\n" - + "\014state_detail\030\010 \001(\tB\003\340A\003\022C\n\n" + + "\014state_detail\030\010 \001(\tB\003\340A\003\022C\n" + + "\n" + "error_code\030\t" + " \001(\0162*.google.cloud.config.v1.Revision.ErrorCodeB\003\340A\003\022\022\n" + "\005build\030\n" @@ -511,7 +518,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "tf_version\030\023 \001(\tB\003\340A\003\022%\n" + "\030quota_validation_results\030\035 \001(\tB\003\340A\003\022F\n" + "\020quota_validation\030\024" - + " \001(\0162\'.google.cloud.config.v1.QuotaValidationB\003\340A\001\"D\n" + + " \001(\0162\'.google.cloud.config.v1.QuotaValidationB\003\340A\001\022D\n" + + "\017provider_config\030\025" + + " \001(\0132&.google.cloud.config.v1.ProviderConfigB\003\340A\003\"D\n" + "\006Action\022\026\n" + "\022ACTION_UNSPECIFIED\020\000\022\n\n" + "\006CREATE\020\001\022\n\n" @@ -528,8 +537,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026APPLY_BUILD_API_FAILED\020\004\022\032\n" + "\026APPLY_BUILD_RUN_FAILED\020\005\022\033\n" + "\027QUOTA_VALIDATION_FAILED\020\007:z\352Aw\n" - + "\036config.googleapis.com/Revision\022Uprojects/{project}/location" - + "s/{location}/deployments/{deployment}/revisions/{revision}B\013\n" + + "\036config.googleapis.com/Revision\022Uprojects/{project}/locations/{location}/deploym" + + "ents/{deployment}/revisions/{revision}B\013\n" + "\tblueprint\"\211\001\n" + "\016TerraformError\022\030\n" + "\020resource_address\030\001 \001(\t\022\032\n" @@ -544,8 +553,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_directoryB\006\n" + "\004_ref\"\237\004\n" + "\033DeploymentOperationMetadata\022P\n" - + "\004step\030\001 \001(\0162B.google.cloud.config." - + "v1.DeploymentOperationMetadata.DeploymentStep\022;\n\r" + + "\004step\030\001 \001(\0162B." + + "google.cloud.config.v1.DeploymentOperationMetadata.DeploymentStep\022;\n\r" + "apply_results\030\002 \001(\0132$.google.cloud.config.v1.ApplyResults\022\022\n" + "\005build\030\003 \001(\tB\003\340A\003\022\021\n" + "\004logs\030\004 \001(\tB\003\340A\003\"\311\002\n" @@ -566,21 +575,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030RUNNING_QUOTA_VALIDATION\020\014\"\330\005\n" + "\010Resource\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022J\n" - + "\016terraform_info\030\002" - + " \001(\0132-.google.cloud.config.v1.ResourceTerraformInfoB\003\340A\003\022H\n\n" - + "cai_assets\030\003" - + " \003(\0132/.google.cloud.config.v1.Resource.CaiAssetsEntryB\003\340A\003\022<\n" - + "\006intent\030\004 \001(\0162\'.go" - + "ogle.cloud.config.v1.Resource.IntentB\003\340A\003\022:\n" - + "\005state\030\005" - + " \001(\0162&.google.cloud.config.v1.Resource.StateB\003\340A\003\032Y\n" + + "\016terraform_info\030\002 \001(\0132-.goog" + + "le.cloud.config.v1.ResourceTerraformInfoB\003\340A\003\022H\n\n" + + "cai_assets\030\003 \003(\0132/.google.cloud" + + ".config.v1.Resource.CaiAssetsEntryB\003\340A\003\022<\n" + + "\006intent\030\004" + + " \001(\0162\'.google.cloud.config.v1.Resource.IntentB\003\340A\003\022:\n" + + "\005state\030\005 \001(\0162&.g" + + "oogle.cloud.config.v1.Resource.StateB\003\340A\003\032Y\n" + "\016CaiAssetsEntry\022\013\n" + "\003key\030\001 \001(\t\0226\n" + "\005value\030\002 \001(\0132\'.google.cloud.config.v1.ResourceCAIInfo:\0028\001\"a\n" + "\006Intent\022\026\n" + "\022INTENT_UNSPECIFIED\020\000\022\n\n" - + "\006CREATE\020\001\022\n" - + "\n" + + "\006CREATE\020\001\022\n\n" + "\006UPDATE\020\002\022\n\n" + "\006DELETE\020\003\022\014\n" + "\010RECREATE\020\004\022\r\n" @@ -591,9 +599,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013IN_PROGRESS\020\002\022\016\n\n" + "RECONCILED\020\003\022\n\n" + "\006FAILED\020\004:\220\001\352A\214\001\n" - + "\036config.googleapis.com/Resource\022jprojects/{project}" - + "/locations/{location}/deployments/{deplo" - + "yment}/revisions/{revision}/resources/{resource}\"B\n" + + "\036config.googleapis.com/Resource\022jprojects/{project}/locations/{location" + + "}/deployments/{deployment}/revisions/{revision}/resources/{resource}\"B\n" + "\025ResourceTerraformInfo\022\017\n" + "\007address\030\001 \001(\t\022\014\n" + "\004type\030\002 \001(\t\022\n\n" @@ -648,20 +655,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004info\030\003 \001(\t\022\013\n" + "\003who\030\004 \001(\t\022\017\n" + "\007version\030\005 \001(\t\022/\n" - + "\013create_time\030\006 \001(\0132\032.google.protobuf.Timestamp\"\370\r\n" + + "\013create_time\030\006 \001(\0132\032.google.protobuf.Timestamp\"\276\016\n" + "\007Preview\022I\n" + "\023terraform_blueprint\030\006" + " \001(\0132*.google.cloud.config.v1.TerraformBlueprintH\000\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\0224\n" + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022@\n" - + "\006labels\030\003" - + " \003(\0132+.google.cloud.config.v1.Preview.LabelsEntryB\003\340A\001\0229\n" + + "\006labels\030\003 \003(\013" + + "2+.google.cloud.config.v1.Preview.LabelsEntryB\003\340A\001\0229\n" + "\005state\030\004" + " \001(\0162%.google.cloud.config.v1.Preview.StateB\003\340A\003\022<\n\n" + "deployment\030\005 \001(\tB(\340A\001\372A\"\n" + " config.googleapis.com/Deployment\022F\n" - + "\014preview_mode\030\017" - + " \001(\0162+.google.cloud.config.v1.Preview.PreviewModeB\003\340A\001\022B\n" + + "\014preview_mode\030\017 \001(\0162+.goog" + + "le.cloud.config.v1.Preview.PreviewModeB\003\340A\001\022B\n" + "\017service_account\030\007 \001(\tB)\340A\002\372A#\n" + "!iam.googleapis.com/ServiceAccount\022&\n" + "\024artifacts_gcs_bucket\030\010 \001(\tB\003\340A\001H\001\210\001\001\022F\n" @@ -674,13 +681,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\ttf_errors\030\r" + " \003(\0132&.google.cloud.config.v1.TerraformErrorB\003\340A\003\022\027\n\n" + "error_logs\030\016 \001(\tB\003\340A\003\022H\n" - + "\021preview_artifacts\030\020" - + " \001(\0132(.google.cloud.config.v1.PreviewArtifactsB\003\340A\003\022\021\n" + + "\021preview_artifacts\030\020 \001(\0132(.goo" + + "gle.cloud.config.v1.PreviewArtifactsB\003\340A\003\022\021\n" + "\004logs\030\021 \001(\tB\003\340A\003\022\027\n\n" + "tf_version\030\022 \001(\tB\003\340A\003\022\'\n" + "\025tf_version_constraint\030\023 \001(\tB\003\340A\001H\003\210\001\001\022J\n" - + "\013annotations\030\024" - + " \003(\01320.google.cloud.config.v1.Preview.AnnotationsEntryB\003\340A\001\032-\n" + + "\013annotations\030\024 \003(\01320.google.clo" + + "ud.config.v1.Preview.AnnotationsEntryB\003\340A\001\022D\n" + + "\017provider_config\030\025" + + " \001(\0132&.google.cloud.config.v1.ProviderConfigB\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" @@ -708,17 +717,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036DEPLOYMENT_LOCK_ACQUIRE_FAILED\020\004\022\034\n" + "\030PREVIEW_BUILD_API_FAILED\020\005\022\034\n" + "\030PREVIEW_BUILD_RUN_FAILED\020\006:q\352An\n" - + "\035config.googleapis.com/Preview\022:projec" - + "ts/{project}/locations/{location}/previews/{preview}*\010previews2\007previewB\013\n" + + "\035config.googleapis.com/Preview\022:projects/{project}/locations/{locati" + + "on}/previews/{preview}*\010previews2\007previewB\013\n" + "\tblueprintB\027\n" + "\025_artifacts_gcs_bucketB\016\n" + "\014_worker_poolB\030\n" + "\026_tf_version_constraint\"\344\003\n" + "\030PreviewOperationMetadata\022J\n" - + "\004step\030\001 \001(\0162<.goo" - + "gle.cloud.config.v1.PreviewOperationMetadata.PreviewStep\022C\n" - + "\021preview_artifacts\030\002 " - + "\001(\0132(.google.cloud.config.v1.PreviewArtifacts\022\021\n" + + "\004step\030\001" + + " \001(\0162<.google.cloud.config.v1.PreviewOperationMetadata.PreviewStep\022C\n" + + "\021preview_artifacts\030\002" + + " \001(\0132(.google.cloud.config.v1.PreviewArtifacts\022\021\n" + "\004logs\030\003 \001(\tB\003\340A\003\022\022\n" + "\005build\030\004 \001(\tB\003\340A\003\"\217\002\n" + "\013PreviewStep\022\034\n" @@ -741,8 +750,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + "!locations.googleapis.com/Location\022\027\n\n" + "preview_id\030\002 \001(\tB\003\340A\001\0225\n" - + "\007preview\030\003" - + " \001(\0132\037.google.cloud.config.v1.PreviewB\003\340A\002\022\037\n\n" + + "\007preview\030\003 \001(\013" + + "2\037.google.cloud.config.v1.PreviewB\003\340A\002\022\037\n\n" + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"H\n" + "\021GetPreviewRequest\0223\n" + "\004name\030\001 \001(\tB%\340A\002\372A\037\n" @@ -766,8 +775,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(\tB%\340A\002\372A\037\n" + "\035config.googleapis.com/Preview\"Y\n" + "\033ExportPreviewResultResponse\022:\n" - + "\006result\030\001 \001(\0132%.goo" - + "gle.cloud.config.v1.PreviewResultB\003\340A\003\"M\n\r" + + "\006result\030\001" + + " \001(\0132%.google.cloud.config.v1.PreviewResultB\003\340A\003\"M\n\r" + "PreviewResult\022\036\n" + "\021binary_signed_uri\030\001 \001(\tB\003\340A\003\022\034\n" + "\017json_signed_uri\030\002 \001(\tB\003\340A\003\"Z\n" @@ -788,21 +797,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013unreachable\030\003 \003(\t\"\255\004\n" + "\020TerraformVersion\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022B\n" - + "\005state\030\002 \001(\0162" - + "..google.cloud.config.v1.TerraformVersion.StateB\003\340A\003\0225\n" + + "\005state\030\002" + + " \001(\0162..google.cloud.config.v1.TerraformVersion.StateB\003\340A\003\0225\n" + "\014support_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022<\n" + "\016deprecate_time\030\004" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003H\000\210\001\001\022;\n\r" - + "obsolete_time\030\005" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003H\001\210\001\001\"H\n" + + "obsolete_time\030\005 \001" + + "(\0132\032.google.protobuf.TimestampB\003\340A\003H\001\210\001\001\"H\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\n\n" + "\006ACTIVE\020\001\022\016\n\n" + "DEPRECATED\020\002\022\014\n" + "\010OBSOLETE\020\003:\240\001\352A\234\001\n" - + "&config.googleapis.com/TerraformVersion\022Mproject" - + "s/{project}/locations/{location}/terrafo" - + "rmVersions/{terraform_version}*\021terraformVersions2\020terraformVersionB\021\n" + + "&config.googleapis.com/TerraformVersion\022Mprojects/{project}/locations/{locatio" + + "n}/terraformVersions/{terraform_version}*\021terraformVersions2\020terraformVersionB\021\n" + "\017_deprecate_timeB\020\n" + "\016_obsolete_time\"\217\001\n" + "\033ResourceChangeTerraformInfo\022\024\n" @@ -813,12 +821,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007actions\030\005 \003(\tB\003\340A\003\"\217\004\n" + "\016ResourceChange\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022P\n" - + "\016terraform_info\030\002 \001(\01323.googl" - + "e.cloud.config.v1.ResourceChangeTerraformInfoB\003\340A\003\022B\n" - + "\006intent\030\003 \001(\0162-.google.clou" - + "d.config.v1.ResourceChange.IntentB\003\340A\003\022E\n" - + "\020property_changes\030\004" - + " \003(\0132&.google.cloud.config.v1.PropertyChangeB\003\340A\003\"a\n" + + "\016terraform_info\030\002 \001" + + "(\01323.google.cloud.config.v1.ResourceChangeTerraformInfoB\003\340A\003\022B\n" + + "\006intent\030\003 \001(\0162-.g" + + "oogle.cloud.config.v1.ResourceChange.IntentB\003\340A\003\022E\n" + + "\020property_changes\030\004 \003(\0132&.goo" + + "gle.cloud.config.v1.PropertyChangeB\003\340A\003\"a\n" + "\006Intent\022\026\n" + "\022INTENT_UNSPECIFIED\020\000\022\n\n" + "\006CREATE\020\001\022\n\n" @@ -826,9 +834,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006DELETE\020\003\022\014\n" + "\010RECREATE\020\004\022\r\n" + "\tUNCHANGED\020\005:\251\001\352A\245\001\n" - + "$config.googleapis.com/ResourceChange\022\\projects/{project}/locati" - + "ons/{location}/previews/{preview}/resour" - + "ceChanges/{resource_change}*\017resourceChanges2\016resourceChange\"\305\001\n" + + "$config.googleapis.com/ResourceChange\022\\projects/{proje" + + "ct}/locations/{location}/previews/{previ" + + "ew}/resourceChanges/{resource_change}*\017resourceChanges2\016resourceChange\"\305\001\n" + "\016PropertyChange\022\021\n" + "\004path\030\001 \001(\tB\003\340A\003\022#\n" + "\026before_sensitive_paths\030\002 \003(\tB\003\340A\003\022+\n" @@ -857,13 +865,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010provider\030\004 \001(\tB\003\340A\003\"\337\002\n\r" + "ResourceDrift\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022O\n" - + "\016terraform_info\030\002" - + " \001(\01322.google.cloud.config.v1.ResourceDriftTerraformInfoB\003\340A\003\022C\n" + + "\016terraform_info\030\002 \001(\01322.google.cloud." + + "config.v1.ResourceDriftTerraformInfoB\003\340A\003\022C\n" + "\017property_drifts\030\003" + " \003(\0132%.google.cloud.config.v1.PropertyDriftB\003\340A\003:\244\001\352A\240\001\n" - + "#config.googleapis.com/ResourceDrift\022Zprojects/{proj" - + "ect}/locations/{location}/previews/{prev" - + "iew}/resourceDrifts/{resource_drift}*\016resourceDrifts2\r" + + "#config.googleapis.com/ResourceDrift\022Zprojects/{project}/locations/{location}/prev" + + "iews/{preview}/resourceDrifts/{resource_drift}*\016resourceDrifts2\r" + "resourceDrift\"\304\001\n\r" + "PropertyDrift\022\021\n" + "\004path\030\001 \001(\tB\003\340A\003\022#\n" @@ -883,155 +890,158 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017next_page_token\030\002 \001(\t\022\023\n" + "\013unreachable\030\003 \003(\t\"T\n" + "\027GetResourceDriftRequest\0229\n" - + "\004name\030\001 \001(\tB+\340A\002\372A%\n" - + "#config.googleapis.com/ResourceDrift*N\n" - + "\017QuotaValidation\022 \n" - + "\034QUOTA_VALIDATION_UNSPECIFIED\020\000\022\013\n" - + "\007ENABLED\020\001\022\014\n" - + "\010ENFORCED\020\0022\301)\n" - + "\006Config\022\264\001\n" - + "\017ListDeployments\022..google.cloud.config.v1.ListDeploymentsRequest\032/.google.", - "cloud.config.v1.ListDeploymentsResponse\"" - + "@\332A\006parent\202\323\344\223\0021\022//v1/{parent=projects/*" - + "/locations/*}/deployments\022\241\001\n\rGetDeploym" - + "ent\022,.google.cloud.config.v1.GetDeployme" - + "ntRequest\032\".google.cloud.config.v1.Deplo" - + "yment\">\332A\004name\202\323\344\223\0021\022//v1/{name=projects" - + "/*/locations/*/deployments/*}\022\354\001\n\020Create" - + "Deployment\022/.google.cloud.config.v1.Crea" - + "teDeploymentRequest\032\035.google.longrunning" - + ".Operation\"\207\001\312A\037\n\nDeployment\022\021OperationM" - + "etadata\332A\037parent,deployment,deployment_i" - + "d\202\323\344\223\002=\"//v1/{parent=projects/*/location" - + "s/*}/deployments:\ndeployment\022\356\001\n\020UpdateD" - + "eployment\022/.google.cloud.config.v1.Updat" - + "eDeploymentRequest\032\035.google.longrunning." - + "Operation\"\211\001\312A\037\n\nDeployment\022\021OperationMe" - + "tadata\332A\026deployment,update_mask\202\323\344\223\002H2:/" - + "v1/{deployment.name=projects/*/locations" - + "/*/deployments/*}:\ndeployment\022\304\001\n\020Delete" - + "Deployment\022/.google.cloud.config.v1.Dele" - + "teDeploymentRequest\032\035.google.longrunning" - + ".Operation\"`\312A\037\n\nDeployment\022\021OperationMe" - + "tadata\332A\004name\202\323\344\223\0021*//v1/{name=projects/" - + "*/locations/*/deployments/*}\022\272\001\n\rListRev" - + "isions\022,.google.cloud.config.v1.ListRevi" - + "sionsRequest\032-.google.cloud.config.v1.Li" - + "stRevisionsResponse\"L\332A\006parent\202\323\344\223\002=\022;/v" - + "1/{parent=projects/*/locations/*/deploym" - + "ents/*}/revisions\022\247\001\n\013GetRevision\022*.goog" - + "le.cloud.config.v1.GetRevisionRequest\032 ." - + "google.cloud.config.v1.Revision\"J\332A\004name" - + "\202\323\344\223\002=\022;/v1/{name=projects/*/locations/*" - + "/deployments/*/revisions/*}\022\263\001\n\013GetResou" - + "rce\022*.google.cloud.config.v1.GetResource" - + "Request\032 .google.cloud.config.v1.Resourc" - + "e\"V\332A\004name\202\323\344\223\002I\022G/v1/{name=projects/*/l" - + "ocations/*/deployments/*/revisions/*/res" - + "ources/*}\022\306\001\n\rListResources\022,.google.clo" - + "ud.config.v1.ListResourcesRequest\032-.goog" - + "le.cloud.config.v1.ListResourcesResponse" - + "\"X\332A\006parent\202\323\344\223\002I\022G/v1/{parent=projects/" - + "*/locations/*/deployments/*/revisions/*}" - + "/resources\022\302\001\n\031ExportDeploymentStatefile" - + "\0228.google.cloud.config.v1.ExportDeployme" - + "ntStatefileRequest\032!.google.cloud.config" - + ".v1.Statefile\"H\202\323\344\223\002B\"=/v1/{parent=proje" - + "cts/*/locations/*/deployments/*}:exportS" - + "tate:\001*\022\312\001\n\027ExportRevisionStatefile\0226.go" - + "ogle.cloud.config.v1.ExportRevisionState" - + "fileRequest\032!.google.cloud.config.v1.Sta" - + "tefile\"T\202\323\344\223\002N\"I/v1/{parent=projects/*/l" - + "ocations/*/deployments/*/revisions/*}:ex" - + "portState:\001*\022\277\001\n\017ImportStatefile\022..googl" - + "e.cloud.config.v1.ImportStatefileRequest" - + "\032!.google.cloud.config.v1.Statefile\"Y\332A\016" - + "parent,lock_id\202\323\344\223\002B\"=/v1/{parent=projec" - + "ts/*/locations/*/deployments/*}:importSt" - + "ate:\001*\022\250\001\n\017DeleteStatefile\022..google.clou" - + "d.config.v1.DeleteStatefileRequest\032\026.goo" - + "gle.protobuf.Empty\"M\332A\004name\202\323\344\223\002@\";/v1/{" - + "name=projects/*/locations/*/deployments/" - + "*}:deleteState:\001*\022\310\001\n\016LockDeployment\022-.g" - + "oogle.cloud.config.v1.LockDeploymentRequ" - + "est\032\035.google.longrunning.Operation\"h\312A\037\n" - + "\nDeployment\022\021OperationMetadata\332A\004name\202\323\344" - + "\223\0029\"4/v1/{name=projects/*/locations/*/de" - + "ployments/*}:lock:\001*\022\326\001\n\020UnlockDeploymen" - + "t\022/.google.cloud.config.v1.UnlockDeploym" - + "entRequest\032\035.google.longrunning.Operatio" - + "n\"r\312A\037\n\nDeployment\022\021OperationMetadata\332A\014" - + "name,lock_id\202\323\344\223\002;\"6/v1/{name=projects/*" - + "/locations/*/deployments/*}:unlock:\001*\022\254\001" - + "\n\016ExportLockInfo\022-.google.cloud.config.v" - + "1.ExportLockInfoRequest\032 .google.cloud.c" - + "onfig.v1.LockInfo\"I\332A\004name\202\323\344\223\002<\022:/v1/{n" - + "ame=projects/*/locations/*/deployments/*" - + "}:exportLock\022\313\001\n\rCreatePreview\022,.google." - + "cloud.config.v1.CreatePreviewRequest\032\035.g" - + "oogle.longrunning.Operation\"m\312A\034\n\007Previe" - + "w\022\021OperationMetadata\332A\016parent,preview\202\323\344" - + "\223\0027\",/v1/{parent=projects/*/locations/*}" - + "/previews:\007preview\022\225\001\n\nGetPreview\022).goog" - + "le.cloud.config.v1.GetPreviewRequest\032\037.g" - + "oogle.cloud.config.v1.Preview\";\332A\004name\202\323" - + "\344\223\002.\022,/v1/{name=projects/*/locations/*/p" - + "reviews/*}\022\250\001\n\014ListPreviews\022+.google.clo" - + "ud.config.v1.ListPreviewsRequest\032,.googl" - + "e.cloud.config.v1.ListPreviewsResponse\"=" - + "\332A\006parent\202\323\344\223\002.\022,/v1/{parent=projects/*/" - + "locations/*}/previews\022\270\001\n\rDeletePreview\022" - + ",.google.cloud.config.v1.DeletePreviewRe" - + "quest\032\035.google.longrunning.Operation\"Z\312A" - + "\034\n\007Preview\022\021OperationMetadata\332A\004name\202\323\344\223" - + "\002.*,/v1/{name=projects/*/locations/*/pre" - + "views/*}\022\300\001\n\023ExportPreviewResult\0222.googl" - + "e.cloud.config.v1.ExportPreviewResultReq" - + "uest\0323.google.cloud.config.v1.ExportPrev" - + "iewResultResponse\"@\202\323\344\223\002:\"5/v1/{parent=p" - + "rojects/*/locations/*/previews/*}:export" - + ":\001*\022\314\001\n\025ListTerraformVersions\0224.google.c" - + "loud.config.v1.ListTerraformVersionsRequ" - + "est\0325.google.cloud.config.v1.ListTerrafo" - + "rmVersionsResponse\"F\332A\006parent\202\323\344\223\0027\0225/v1" - + "/{parent=projects/*/locations/*}/terrafo" - + "rmVersions\022\271\001\n\023GetTerraformVersion\0222.goo" - + "gle.cloud.config.v1.GetTerraformVersionR" - + "equest\032(.google.cloud.config.v1.Terrafor" - + "mVersion\"D\332A\004name\202\323\344\223\0027\0225/v1/{name=proje" - + "cts/*/locations/*/terraformVersions/*}\022\317" - + "\001\n\023ListResourceChanges\0222.google.cloud.co" - + "nfig.v1.ListResourceChangesRequest\0323.goo" - + "gle.cloud.config.v1.ListResourceChangesR" - + "esponse\"O\332A\006parent\202\323\344\223\002@\022>/v1/{parent=pr" - + "ojects/*/locations/*/previews/*}/resourc" - + "eChanges\022\274\001\n\021GetResourceChange\0220.google." - + "cloud.config.v1.GetResourceChangeRequest" - + "\032&.google.cloud.config.v1.ResourceChange" - + "\"M\332A\004name\202\323\344\223\002@\022>/v1/{name=projects/*/lo" - + "cations/*/previews/*/resourceChanges/*}\022" - + "\313\001\n\022ListResourceDrifts\0221.google.cloud.co" - + "nfig.v1.ListResourceDriftsRequest\0322.goog" - + "le.cloud.config.v1.ListResourceDriftsRes" - + "ponse\"N\332A\006parent\202\323\344\223\002?\022=/v1/{parent=proj" - + "ects/*/locations/*/previews/*}/resourceD" - + "rifts\022\270\001\n\020GetResourceDrift\022/.google.clou" - + "d.config.v1.GetResourceDriftRequest\032%.go" - + "ogle.cloud.config.v1.ResourceDrift\"L\332A\004n" - + "ame\202\323\344\223\002?\022=/v1/{name=projects/*/location" - + "s/*/previews/*/resourceDrifts/*}\032I\312A\025con" - + "fig.googleapis.com\322A.https://www.googlea" - + "pis.com/auth/cloud-platformB\374\002\n\032com.goog" - + "le.cloud.config.v1B\013ConfigProtoP\001Z2cloud" - + ".google.com/go/config/apiv1/configpb;con" - + "figpb\252\002\026Google.Cloud.Config.V1\312\002\026Google\\" - + "Cloud\\Config\\V1\352\002 Google::Cloud::ConfigS" - + "ervice::V1\352AY\n!iam.googleapis.com/Servic" - + "eAccount\0224projects/{project}/serviceAcco" - + "unts/{service_account}\352Ai\n$cloudbuild.go" - + "ogleapis.com/WorkerPool\022Aprojects/{proje" - + "ct}/locations/{location}/workerPools/{wo" - + "rker_pool}b\006proto3" + + "\004name\030\001 \001(\tB+\340A", + "\002\372A%\n#config.googleapis.com/ResourceDrif" + + "t\"\301\001\n\016ProviderConfig\022T\n\013source_type\030\001 \001(" + + "\01625.google.cloud.config.v1.ProviderConfi" + + "g.ProviderSourceB\003\340A\001H\000\210\001\001\"I\n\016ProviderSo" + + "urce\022\037\n\033PROVIDER_SOURCE_UNSPECIFIED\020\000\022\026\n" + + "\022SERVICE_MAINTAINED\020\001B\016\n\014_source_type*N\n" + + "\017QuotaValidation\022 \n\034QUOTA_VALIDATION_UNS" + + "PECIFIED\020\000\022\013\n\007ENABLED\020\001\022\014\n\010ENFORCED\020\0022\301)" + + "\n\006Config\022\264\001\n\017ListDeployments\022..google.cl" + + "oud.config.v1.ListDeploymentsRequest\032/.g" + + "oogle.cloud.config.v1.ListDeploymentsRes" + + "ponse\"@\332A\006parent\202\323\344\223\0021\022//v1/{parent=proj" + + "ects/*/locations/*}/deployments\022\241\001\n\rGetD" + + "eployment\022,.google.cloud.config.v1.GetDe" + + "ploymentRequest\032\".google.cloud.config.v1" + + ".Deployment\">\332A\004name\202\323\344\223\0021\022//v1/{name=pr" + + "ojects/*/locations/*/deployments/*}\022\354\001\n\020" + + "CreateDeployment\022/.google.cloud.config.v" + + "1.CreateDeploymentRequest\032\035.google.longr" + + "unning.Operation\"\207\001\312A\037\n\nDeployment\022\021Oper" + + "ationMetadata\332A\037parent,deployment,deploy" + + "ment_id\202\323\344\223\002=\"//v1/{parent=projects/*/lo" + + "cations/*}/deployments:\ndeployment\022\356\001\n\020U" + + "pdateDeployment\022/.google.cloud.config.v1" + + ".UpdateDeploymentRequest\032\035.google.longru" + + "nning.Operation\"\211\001\312A\037\n\nDeployment\022\021Opera" + + "tionMetadata\332A\026deployment,update_mask\202\323\344" + + "\223\002H2:/v1/{deployment.name=projects/*/loc" + + "ations/*/deployments/*}:\ndeployment\022\304\001\n\020" + + "DeleteDeployment\022/.google.cloud.config.v" + + "1.DeleteDeploymentRequest\032\035.google.longr" + + "unning.Operation\"`\312A\037\n\nDeployment\022\021Opera" + + "tionMetadata\332A\004name\202\323\344\223\0021*//v1/{name=pro" + + "jects/*/locations/*/deployments/*}\022\272\001\n\rL" + + "istRevisions\022,.google.cloud.config.v1.Li" + + "stRevisionsRequest\032-.google.cloud.config" + + ".v1.ListRevisionsResponse\"L\332A\006parent\202\323\344\223" + + "\002=\022;/v1/{parent=projects/*/locations/*/d" + + "eployments/*}/revisions\022\247\001\n\013GetRevision\022" + + "*.google.cloud.config.v1.GetRevisionRequ" + + "est\032 .google.cloud.config.v1.Revision\"J\332" + + "A\004name\202\323\344\223\002=\022;/v1/{name=projects/*/locat" + + "ions/*/deployments/*/revisions/*}\022\263\001\n\013Ge" + + "tResource\022*.google.cloud.config.v1.GetRe" + + "sourceRequest\032 .google.cloud.config.v1.R" + + "esource\"V\332A\004name\202\323\344\223\002I\022G/v1/{name=projec" + + "ts/*/locations/*/deployments/*/revisions" + + "/*/resources/*}\022\306\001\n\rListResources\022,.goog" + + "le.cloud.config.v1.ListResourcesRequest\032" + + "-.google.cloud.config.v1.ListResourcesRe" + + "sponse\"X\332A\006parent\202\323\344\223\002I\022G/v1/{parent=pro" + + "jects/*/locations/*/deployments/*/revisi" + + "ons/*}/resources\022\302\001\n\031ExportDeploymentSta" + + "tefile\0228.google.cloud.config.v1.ExportDe" + + "ploymentStatefileRequest\032!.google.cloud." + + "config.v1.Statefile\"H\202\323\344\223\002B\"=/v1/{parent" + + "=projects/*/locations/*/deployments/*}:e" + + "xportState:\001*\022\312\001\n\027ExportRevisionStatefil" + + "e\0226.google.cloud.config.v1.ExportRevisio" + + "nStatefileRequest\032!.google.cloud.config." + + "v1.Statefile\"T\202\323\344\223\002N\"I/v1/{parent=projec" + + "ts/*/locations/*/deployments/*/revisions" + + "/*}:exportState:\001*\022\277\001\n\017ImportStatefile\022." + + ".google.cloud.config.v1.ImportStatefileR" + + "equest\032!.google.cloud.config.v1.Statefil" + + "e\"Y\332A\016parent,lock_id\202\323\344\223\002B\"=/v1/{parent=" + + "projects/*/locations/*/deployments/*}:im" + + "portState:\001*\022\250\001\n\017DeleteStatefile\022..googl" + + "e.cloud.config.v1.DeleteStatefileRequest" + + "\032\026.google.protobuf.Empty\"M\332A\004name\202\323\344\223\002@\"" + + ";/v1/{name=projects/*/locations/*/deploy" + + "ments/*}:deleteState:\001*\022\310\001\n\016LockDeployme" + + "nt\022-.google.cloud.config.v1.LockDeployme" + + "ntRequest\032\035.google.longrunning.Operation" + + "\"h\312A\037\n\nDeployment\022\021OperationMetadata\332A\004n" + + "ame\202\323\344\223\0029\"4/v1/{name=projects/*/location" + + "s/*/deployments/*}:lock:\001*\022\326\001\n\020UnlockDep" + + "loyment\022/.google.cloud.config.v1.UnlockD" + + "eploymentRequest\032\035.google.longrunning.Op" + + "eration\"r\312A\037\n\nDeployment\022\021OperationMetad" + + "ata\332A\014name,lock_id\202\323\344\223\002;\"6/v1/{name=proj" + + "ects/*/locations/*/deployments/*}:unlock" + + ":\001*\022\254\001\n\016ExportLockInfo\022-.google.cloud.co" + + "nfig.v1.ExportLockInfoRequest\032 .google.c" + + "loud.config.v1.LockInfo\"I\332A\004name\202\323\344\223\002<\022:" + + "/v1/{name=projects/*/locations/*/deploym" + + "ents/*}:exportLock\022\313\001\n\rCreatePreview\022,.g" + + "oogle.cloud.config.v1.CreatePreviewReque" + + "st\032\035.google.longrunning.Operation\"m\312A\034\n\007" + + "Preview\022\021OperationMetadata\332A\016parent,prev" + + "iew\202\323\344\223\0027\",/v1/{parent=projects/*/locati" + + "ons/*}/previews:\007preview\022\225\001\n\nGetPreview\022" + + ").google.cloud.config.v1.GetPreviewReque" + + "st\032\037.google.cloud.config.v1.Preview\";\332A\004" + + "name\202\323\344\223\002.\022,/v1/{name=projects/*/locatio" + + "ns/*/previews/*}\022\250\001\n\014ListPreviews\022+.goog" + + "le.cloud.config.v1.ListPreviewsRequest\032," + + ".google.cloud.config.v1.ListPreviewsResp" + + "onse\"=\332A\006parent\202\323\344\223\002.\022,/v1/{parent=proje" + + "cts/*/locations/*}/previews\022\270\001\n\rDeletePr" + + "eview\022,.google.cloud.config.v1.DeletePre" + + "viewRequest\032\035.google.longrunning.Operati" + + "on\"Z\312A\034\n\007Preview\022\021OperationMetadata\332A\004na" + + "me\202\323\344\223\002.*,/v1/{name=projects/*/locations" + + "/*/previews/*}\022\300\001\n\023ExportPreviewResult\0222" + + ".google.cloud.config.v1.ExportPreviewRes" + + "ultRequest\0323.google.cloud.config.v1.Expo" + + "rtPreviewResultResponse\"@\202\323\344\223\002:\"5/v1/{pa" + + "rent=projects/*/locations/*/previews/*}:" + + "export:\001*\022\314\001\n\025ListTerraformVersions\0224.go" + + "ogle.cloud.config.v1.ListTerraformVersio" + + "nsRequest\0325.google.cloud.config.v1.ListT" + + "erraformVersionsResponse\"F\332A\006parent\202\323\344\223\002" + + "7\0225/v1/{parent=projects/*/locations/*}/t" + + "erraformVersions\022\271\001\n\023GetTerraformVersion" + + "\0222.google.cloud.config.v1.GetTerraformVe" + + "rsionRequest\032(.google.cloud.config.v1.Te" + + "rraformVersion\"D\332A\004name\202\323\344\223\0027\0225/v1/{name" + + "=projects/*/locations/*/terraformVersion" + + "s/*}\022\317\001\n\023ListResourceChanges\0222.google.cl" + + "oud.config.v1.ListResourceChangesRequest" + + "\0323.google.cloud.config.v1.ListResourceCh" + + "angesResponse\"O\332A\006parent\202\323\344\223\002@\022>/v1/{par" + + "ent=projects/*/locations/*/previews/*}/r" + + "esourceChanges\022\274\001\n\021GetResourceChange\0220.g" + + "oogle.cloud.config.v1.GetResourceChangeR" + + "equest\032&.google.cloud.config.v1.Resource" + + "Change\"M\332A\004name\202\323\344\223\002@\022>/v1/{name=project" + + "s/*/locations/*/previews/*/resourceChang" + + "es/*}\022\313\001\n\022ListResourceDrifts\0221.google.cl" + + "oud.config.v1.ListResourceDriftsRequest\032" + + "2.google.cloud.config.v1.ListResourceDri" + + "ftsResponse\"N\332A\006parent\202\323\344\223\002?\022=/v1/{paren" + + "t=projects/*/locations/*/previews/*}/res" + + "ourceDrifts\022\270\001\n\020GetResourceDrift\022/.googl" + + "e.cloud.config.v1.GetResourceDriftReques" + + "t\032%.google.cloud.config.v1.ResourceDrift" + + "\"L\332A\004name\202\323\344\223\002?\022=/v1/{name=projects/*/lo" + + "cations/*/previews/*/resourceDrifts/*}\032I" + + "\312A\025config.googleapis.com\322A.https://www.g" + + "oogleapis.com/auth/cloud-platformB\374\002\n\032co" + + "m.google.cloud.config.v1B\013ConfigProtoP\001Z" + + "2cloud.google.com/go/config/apiv1/config" + + "pb;configpb\252\002\026Google.Cloud.Config.V1\312\002\026G" + + "oogle\\Cloud\\Config\\V1\352\002 Google::Cloud::C" + + "onfigService::V1\352AY\n!iam.googleapis.com/" + + "ServiceAccount\0224projects/{project}/servi" + + "ceAccounts/{service_account}\352Ai\n$cloudbu" + + "ild.googleapis.com/WorkerPool\022Aprojects/" + + "{project}/locations/{location}/workerPoo" + + "ls/{worker_pool}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1078,6 +1088,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TfVersion", "QuotaValidation", "Annotations", + "ProviderConfig", "Blueprint", }); internal_static_google_cloud_config_v1_Deployment_LabelsEntry_descriptor = @@ -1261,6 +1272,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TfVersion", "QuotaValidationResults", "QuotaValidation", + "ProviderConfig", "Blueprint", }); internal_static_google_cloud_config_v1_TerraformError_descriptor = @@ -1441,6 +1453,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TfVersion", "TfVersionConstraint", "Annotations", + "ProviderConfig", "Blueprint", }); internal_static_google_cloud_config_v1_Preview_LabelsEntry_descriptor = @@ -1667,6 +1680,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", }); + internal_static_google_cloud_config_v1_ProviderConfig_descriptor = + getDescriptor().getMessageTypes().get(61); + internal_static_google_cloud_config_v1_ProviderConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_config_v1_ProviderConfig_descriptor, + new java.lang.String[] { + "SourceType", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/Deployment.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/Deployment.java index 0424674c1234..b84eb4c28ef4 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/Deployment.java +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/Deployment.java @@ -2412,6 +2412,65 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) { return map.get(key); } + public static final int PROVIDER_CONFIG_FIELD_NUMBER = 25; + private com.google.cloud.config.v1.ProviderConfig providerConfig_; + + /** + * + * + *
    +   * Optional. This field specifies the provider configurations.
    +   * 
    + * + * + * .google.cloud.config.v1.ProviderConfig provider_config = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the providerConfig field is set. + */ + @java.lang.Override + public boolean hasProviderConfig() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
    +   * Optional. This field specifies the provider configurations.
    +   * 
    + * + * + * .google.cloud.config.v1.ProviderConfig provider_config = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The providerConfig. + */ + @java.lang.Override + public com.google.cloud.config.v1.ProviderConfig getProviderConfig() { + return providerConfig_ == null + ? com.google.cloud.config.v1.ProviderConfig.getDefaultInstance() + : providerConfig_; + } + + /** + * + * + *
    +   * Optional. This field specifies the provider configurations.
    +   * 
    + * + * + * .google.cloud.config.v1.ProviderConfig provider_config = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.config.v1.ProviderConfigOrBuilder getProviderConfigOrBuilder() { + return providerConfig_ == null + ? com.google.cloud.config.v1.ProviderConfig.getDefaultInstance() + : providerConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2496,6 +2555,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 24); + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(25, getProviderConfig()); + } getUnknownFields().writeTo(output); } @@ -2593,6 +2655,9 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(24, annotations__); } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, getProviderConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2654,6 +2719,10 @@ public boolean equals(final java.lang.Object obj) { if (!getTfVersion().equals(other.getTfVersion())) return false; if (quotaValidation_ != other.quotaValidation_) return false; if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; + if (hasProviderConfig() != other.hasProviderConfig()) return false; + if (hasProviderConfig()) { + if (!getProviderConfig().equals(other.getProviderConfig())) return false; + } if (!getBlueprintCase().equals(other.getBlueprintCase())) return false; switch (blueprintCase_) { case 6: @@ -2739,6 +2808,10 @@ public int hashCode() { hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; hash = (53 * hash) + internalGetAnnotations().hashCode(); } + if (hasProviderConfig()) { + hash = (37 * hash) + PROVIDER_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getProviderConfig().hashCode(); + } switch (blueprintCase_) { case 6: hash = (37 * hash) + TERRAFORM_BLUEPRINT_FIELD_NUMBER; @@ -2918,6 +2991,7 @@ private void maybeForceBuilderInitialization() { getUpdateTimeFieldBuilder(); getDeleteResultsFieldBuilder(); getTfErrorsFieldBuilder(); + getProviderConfigFieldBuilder(); } } @@ -2968,6 +3042,11 @@ public Builder clear() { tfVersion_ = ""; quotaValidation_ = 0; internalGetMutableAnnotations().clear(); + providerConfig_ = null; + if (providerConfigBuilder_ != null) { + providerConfigBuilder_.dispose(); + providerConfigBuilder_ = null; + } blueprintCase_ = 0; blueprint_ = null; return this; @@ -3095,6 +3174,11 @@ private void buildPartial0(com.google.cloud.config.v1.Deployment result) { result.annotations_ = internalGetAnnotations(); result.annotations_.makeImmutable(); } + if (((from_bitField0_ & 0x00800000) != 0)) { + result.providerConfig_ = + providerConfigBuilder_ == null ? providerConfig_ : providerConfigBuilder_.build(); + to_bitField0_ |= 0x00000100; + } result.bitField0_ |= to_bitField0_; } @@ -3261,6 +3345,9 @@ public Builder mergeFrom(com.google.cloud.config.v1.Deployment other) { } internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations()); bitField0_ |= 0x00400000; + if (other.hasProviderConfig()) { + mergeProviderConfig(other.getProviderConfig()); + } switch (other.getBlueprintCase()) { case TERRAFORM_BLUEPRINT: { @@ -3456,6 +3543,12 @@ public Builder mergeFrom( bitField0_ |= 0x00400000; break; } // case 194 + case 202: + { + input.readMessage(getProviderConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00800000; + break; + } // case 202 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -7134,6 +7227,219 @@ public Builder putAllAnnotations(java.util.Map + providerConfigBuilder_; + + /** + * + * + *
    +     * Optional. This field specifies the provider configurations.
    +     * 
    + * + * + * .google.cloud.config.v1.ProviderConfig provider_config = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the providerConfig field is set. + */ + public boolean hasProviderConfig() { + return ((bitField0_ & 0x00800000) != 0); + } + + /** + * + * + *
    +     * Optional. This field specifies the provider configurations.
    +     * 
    + * + * + * .google.cloud.config.v1.ProviderConfig provider_config = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The providerConfig. + */ + public com.google.cloud.config.v1.ProviderConfig getProviderConfig() { + if (providerConfigBuilder_ == null) { + return providerConfig_ == null + ? com.google.cloud.config.v1.ProviderConfig.getDefaultInstance() + : providerConfig_; + } else { + return providerConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Optional. This field specifies the provider configurations.
    +     * 
    + * + * + * .google.cloud.config.v1.ProviderConfig provider_config = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setProviderConfig(com.google.cloud.config.v1.ProviderConfig value) { + if (providerConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + providerConfig_ = value; + } else { + providerConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. This field specifies the provider configurations.
    +     * 
    + * + * + * .google.cloud.config.v1.ProviderConfig provider_config = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setProviderConfig( + com.google.cloud.config.v1.ProviderConfig.Builder builderForValue) { + if (providerConfigBuilder_ == null) { + providerConfig_ = builderForValue.build(); + } else { + providerConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. This field specifies the provider configurations.
    +     * 
    + * + * + * .google.cloud.config.v1.ProviderConfig provider_config = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeProviderConfig(com.google.cloud.config.v1.ProviderConfig value) { + if (providerConfigBuilder_ == null) { + if (((bitField0_ & 0x00800000) != 0) + && providerConfig_ != null + && providerConfig_ != com.google.cloud.config.v1.ProviderConfig.getDefaultInstance()) { + getProviderConfigBuilder().mergeFrom(value); + } else { + providerConfig_ = value; + } + } else { + providerConfigBuilder_.mergeFrom(value); + } + if (providerConfig_ != null) { + bitField0_ |= 0x00800000; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Optional. This field specifies the provider configurations.
    +     * 
    + * + * + * .google.cloud.config.v1.ProviderConfig provider_config = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearProviderConfig() { + bitField0_ = (bitField0_ & ~0x00800000); + providerConfig_ = null; + if (providerConfigBuilder_ != null) { + providerConfigBuilder_.dispose(); + providerConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. This field specifies the provider configurations.
    +     * 
    + * + * + * .google.cloud.config.v1.ProviderConfig provider_config = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.config.v1.ProviderConfig.Builder getProviderConfigBuilder() { + bitField0_ |= 0x00800000; + onChanged(); + return getProviderConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. This field specifies the provider configurations.
    +     * 
    + * + * + * .google.cloud.config.v1.ProviderConfig provider_config = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.config.v1.ProviderConfigOrBuilder getProviderConfigOrBuilder() { + if (providerConfigBuilder_ != null) { + return providerConfigBuilder_.getMessageOrBuilder(); + } else { + return providerConfig_ == null + ? com.google.cloud.config.v1.ProviderConfig.getDefaultInstance() + : providerConfig_; + } + } + + /** + * + * + *
    +     * Optional. This field specifies the provider configurations.
    +     * 
    + * + * + * .google.cloud.config.v1.ProviderConfig provider_config = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.config.v1.ProviderConfig, + com.google.cloud.config.v1.ProviderConfig.Builder, + com.google.cloud.config.v1.ProviderConfigOrBuilder> + getProviderConfigFieldBuilder() { + if (providerConfigBuilder_ == null) { + providerConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.config.v1.ProviderConfig, + com.google.cloud.config.v1.ProviderConfig.Builder, + com.google.cloud.config.v1.ProviderConfigOrBuilder>( + getProviderConfig(), getParentForChildren(), isClean()); + providerConfig_ = null; + } + return providerConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentOrBuilder.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentOrBuilder.java index e69525a92179..12b00bff4f9b 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentOrBuilder.java +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentOrBuilder.java @@ -986,5 +986,48 @@ java.lang.String getAnnotationsOrDefault( */ java.lang.String getAnnotationsOrThrow(java.lang.String key); + /** + * + * + *
    +   * Optional. This field specifies the provider configurations.
    +   * 
    + * + * + * .google.cloud.config.v1.ProviderConfig provider_config = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the providerConfig field is set. + */ + boolean hasProviderConfig(); + + /** + * + * + *
    +   * Optional. This field specifies the provider configurations.
    +   * 
    + * + * + * .google.cloud.config.v1.ProviderConfig provider_config = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The providerConfig. + */ + com.google.cloud.config.v1.ProviderConfig getProviderConfig(); + + /** + * + * + *
    +   * Optional. This field specifies the provider configurations.
    +   * 
    + * + * + * .google.cloud.config.v1.ProviderConfig provider_config = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.config.v1.ProviderConfigOrBuilder getProviderConfigOrBuilder(); + com.google.cloud.config.v1.Deployment.BlueprintCase getBlueprintCase(); } diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/Preview.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/Preview.java index 1c8079ccc24d..eee7542fd070 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/Preview.java +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/Preview.java @@ -2151,6 +2151,65 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) { return map.get(key); } + public static final int PROVIDER_CONFIG_FIELD_NUMBER = 21; + private com.google.cloud.config.v1.ProviderConfig providerConfig_; + + /** + * + * + *
    +   * Optional. This field specifies the provider configurations.
    +   * 
    + * + * + * .google.cloud.config.v1.ProviderConfig provider_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the providerConfig field is set. + */ + @java.lang.Override + public boolean hasProviderConfig() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
    +   * Optional. This field specifies the provider configurations.
    +   * 
    + * + * + * .google.cloud.config.v1.ProviderConfig provider_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The providerConfig. + */ + @java.lang.Override + public com.google.cloud.config.v1.ProviderConfig getProviderConfig() { + return providerConfig_ == null + ? com.google.cloud.config.v1.ProviderConfig.getDefaultInstance() + : providerConfig_; + } + + /** + * + * + *
    +   * Optional. This field specifies the provider configurations.
    +   * 
    + * + * + * .google.cloud.config.v1.ProviderConfig provider_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.config.v1.ProviderConfigOrBuilder getProviderConfigOrBuilder() { + return providerConfig_ == null + ? com.google.cloud.config.v1.ProviderConfig.getDefaultInstance() + : providerConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2225,6 +2284,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 20); + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(21, getProviderConfig()); + } getUnknownFields().writeTo(output); } @@ -2312,6 +2374,9 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, annotations__); } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getProviderConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2364,6 +2429,10 @@ public boolean equals(final java.lang.Object obj) { if (!getTfVersionConstraint().equals(other.getTfVersionConstraint())) return false; } if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; + if (hasProviderConfig() != other.hasProviderConfig()) return false; + if (hasProviderConfig()) { + if (!getProviderConfig().equals(other.getProviderConfig())) return false; + } if (!getBlueprintCase().equals(other.getBlueprintCase())) return false; switch (blueprintCase_) { case 6: @@ -2439,6 +2508,10 @@ public int hashCode() { hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; hash = (53 * hash) + internalGetAnnotations().hashCode(); } + if (hasProviderConfig()) { + hash = (37 * hash) + PROVIDER_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getProviderConfig().hashCode(); + } switch (blueprintCase_) { case 6: hash = (37 * hash) + TERRAFORM_BLUEPRINT_FIELD_NUMBER; @@ -2619,6 +2692,7 @@ private void maybeForceBuilderInitialization() { getErrorStatusFieldBuilder(); getTfErrorsFieldBuilder(); getPreviewArtifactsFieldBuilder(); + getProviderConfigFieldBuilder(); } } @@ -2666,6 +2740,11 @@ public Builder clear() { tfVersion_ = ""; tfVersionConstraint_ = ""; internalGetMutableAnnotations().clear(); + providerConfig_ = null; + if (providerConfigBuilder_ != null) { + providerConfigBuilder_.dispose(); + providerConfigBuilder_ = null; + } blueprintCase_ = 0; blueprint_ = null; return this; @@ -2782,6 +2861,11 @@ private void buildPartial0(com.google.cloud.config.v1.Preview result) { result.annotations_ = internalGetAnnotations(); result.annotations_.makeImmutable(); } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.providerConfig_ = + providerConfigBuilder_ == null ? providerConfig_ : providerConfigBuilder_.build(); + to_bitField0_ |= 0x00000040; + } result.bitField0_ |= to_bitField0_; } @@ -2937,6 +3021,9 @@ public Builder mergeFrom(com.google.cloud.config.v1.Preview other) { } internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations()); bitField0_ |= 0x00080000; + if (other.hasProviderConfig()) { + mergeProviderConfig(other.getProviderConfig()); + } switch (other.getBlueprintCase()) { case TERRAFORM_BLUEPRINT: { @@ -3115,6 +3202,12 @@ public Builder mergeFrom( bitField0_ |= 0x00080000; break; } // case 162 + case 170: + { + input.readMessage(getProviderConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00100000; + break; + } // case 170 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -6436,6 +6529,219 @@ public Builder putAllAnnotations(java.util.Map + providerConfigBuilder_; + + /** + * + * + *
    +     * Optional. This field specifies the provider configurations.
    +     * 
    + * + * + * .google.cloud.config.v1.ProviderConfig provider_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the providerConfig field is set. + */ + public boolean hasProviderConfig() { + return ((bitField0_ & 0x00100000) != 0); + } + + /** + * + * + *
    +     * Optional. This field specifies the provider configurations.
    +     * 
    + * + * + * .google.cloud.config.v1.ProviderConfig provider_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The providerConfig. + */ + public com.google.cloud.config.v1.ProviderConfig getProviderConfig() { + if (providerConfigBuilder_ == null) { + return providerConfig_ == null + ? com.google.cloud.config.v1.ProviderConfig.getDefaultInstance() + : providerConfig_; + } else { + return providerConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Optional. This field specifies the provider configurations.
    +     * 
    + * + * + * .google.cloud.config.v1.ProviderConfig provider_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setProviderConfig(com.google.cloud.config.v1.ProviderConfig value) { + if (providerConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + providerConfig_ = value; + } else { + providerConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. This field specifies the provider configurations.
    +     * 
    + * + * + * .google.cloud.config.v1.ProviderConfig provider_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setProviderConfig( + com.google.cloud.config.v1.ProviderConfig.Builder builderForValue) { + if (providerConfigBuilder_ == null) { + providerConfig_ = builderForValue.build(); + } else { + providerConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. This field specifies the provider configurations.
    +     * 
    + * + * + * .google.cloud.config.v1.ProviderConfig provider_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeProviderConfig(com.google.cloud.config.v1.ProviderConfig value) { + if (providerConfigBuilder_ == null) { + if (((bitField0_ & 0x00100000) != 0) + && providerConfig_ != null + && providerConfig_ != com.google.cloud.config.v1.ProviderConfig.getDefaultInstance()) { + getProviderConfigBuilder().mergeFrom(value); + } else { + providerConfig_ = value; + } + } else { + providerConfigBuilder_.mergeFrom(value); + } + if (providerConfig_ != null) { + bitField0_ |= 0x00100000; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Optional. This field specifies the provider configurations.
    +     * 
    + * + * + * .google.cloud.config.v1.ProviderConfig provider_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearProviderConfig() { + bitField0_ = (bitField0_ & ~0x00100000); + providerConfig_ = null; + if (providerConfigBuilder_ != null) { + providerConfigBuilder_.dispose(); + providerConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. This field specifies the provider configurations.
    +     * 
    + * + * + * .google.cloud.config.v1.ProviderConfig provider_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.config.v1.ProviderConfig.Builder getProviderConfigBuilder() { + bitField0_ |= 0x00100000; + onChanged(); + return getProviderConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. This field specifies the provider configurations.
    +     * 
    + * + * + * .google.cloud.config.v1.ProviderConfig provider_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.config.v1.ProviderConfigOrBuilder getProviderConfigOrBuilder() { + if (providerConfigBuilder_ != null) { + return providerConfigBuilder_.getMessageOrBuilder(); + } else { + return providerConfig_ == null + ? com.google.cloud.config.v1.ProviderConfig.getDefaultInstance() + : providerConfig_; + } + } + + /** + * + * + *
    +     * Optional. This field specifies the provider configurations.
    +     * 
    + * + * + * .google.cloud.config.v1.ProviderConfig provider_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.config.v1.ProviderConfig, + com.google.cloud.config.v1.ProviderConfig.Builder, + com.google.cloud.config.v1.ProviderConfigOrBuilder> + getProviderConfigFieldBuilder() { + if (providerConfigBuilder_ == null) { + providerConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.config.v1.ProviderConfig, + com.google.cloud.config.v1.ProviderConfig.Builder, + com.google.cloud.config.v1.ProviderConfigOrBuilder>( + getProviderConfig(), getParentForChildren(), isClean()); + providerConfig_ = null; + } + return providerConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/PreviewOrBuilder.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/PreviewOrBuilder.java index 6e7c7acdc20f..8bd0b46e195a 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/PreviewOrBuilder.java +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/PreviewOrBuilder.java @@ -872,5 +872,48 @@ java.lang.String getAnnotationsOrDefault( */ java.lang.String getAnnotationsOrThrow(java.lang.String key); + /** + * + * + *
    +   * Optional. This field specifies the provider configurations.
    +   * 
    + * + * + * .google.cloud.config.v1.ProviderConfig provider_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the providerConfig field is set. + */ + boolean hasProviderConfig(); + + /** + * + * + *
    +   * Optional. This field specifies the provider configurations.
    +   * 
    + * + * + * .google.cloud.config.v1.ProviderConfig provider_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The providerConfig. + */ + com.google.cloud.config.v1.ProviderConfig getProviderConfig(); + + /** + * + * + *
    +   * Optional. This field specifies the provider configurations.
    +   * 
    + * + * + * .google.cloud.config.v1.ProviderConfig provider_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.config.v1.ProviderConfigOrBuilder getProviderConfigOrBuilder(); + com.google.cloud.config.v1.Preview.BlueprintCase getBlueprintCase(); } diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ProviderConfig.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ProviderConfig.java new file mode 100644 index 000000000000..1a96c64ea368 --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ProviderConfig.java @@ -0,0 +1,798 @@ +/* + * 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/config/v1/config.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.config.v1; + +/** + * + * + *
    + * ProviderConfig contains the provider configurations.
    + * 
    + * + * Protobuf type {@code google.cloud.config.v1.ProviderConfig} + */ +public final class ProviderConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.config.v1.ProviderConfig) + ProviderConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ProviderConfig.newBuilder() to construct. + private ProviderConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ProviderConfig() { + sourceType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ProviderConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ProviderConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ProviderConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.ProviderConfig.class, + com.google.cloud.config.v1.ProviderConfig.Builder.class); + } + + /** + * + * + *
    +   * ProviderSource represents the source type of the provider.
    +   * 
    + * + * Protobuf enum {@code google.cloud.config.v1.ProviderConfig.ProviderSource} + */ + public enum ProviderSource implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Unspecified source type, default to public sources.
    +     * 
    + * + * PROVIDER_SOURCE_UNSPECIFIED = 0; + */ + PROVIDER_SOURCE_UNSPECIFIED(0), + /** + * + * + *
    +     * Service maintained provider source type.
    +     * 
    + * + * SERVICE_MAINTAINED = 1; + */ + SERVICE_MAINTAINED(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * Unspecified source type, default to public sources.
    +     * 
    + * + * PROVIDER_SOURCE_UNSPECIFIED = 0; + */ + public static final int PROVIDER_SOURCE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +     * Service maintained provider source type.
    +     * 
    + * + * SERVICE_MAINTAINED = 1; + */ + public static final int SERVICE_MAINTAINED_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 ProviderSource 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 ProviderSource forNumber(int value) { + switch (value) { + case 0: + return PROVIDER_SOURCE_UNSPECIFIED; + case 1: + return SERVICE_MAINTAINED; + 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 ProviderSource findValueByNumber(int number) { + return ProviderSource.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.config.v1.ProviderConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final ProviderSource[] VALUES = values(); + + public static ProviderSource 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 ProviderSource(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.config.v1.ProviderConfig.ProviderSource) + } + + private int bitField0_; + public static final int SOURCE_TYPE_FIELD_NUMBER = 1; + private int sourceType_ = 0; + + /** + * + * + *
    +   * Optional. ProviderSource specifies the source type of the provider.
    +   * 
    + * + * + * optional .google.cloud.config.v1.ProviderConfig.ProviderSource source_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sourceType field is set. + */ + @java.lang.Override + public boolean hasSourceType() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Optional. ProviderSource specifies the source type of the provider.
    +   * 
    + * + * + * optional .google.cloud.config.v1.ProviderConfig.ProviderSource source_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for sourceType. + */ + @java.lang.Override + public int getSourceTypeValue() { + return sourceType_; + } + + /** + * + * + *
    +   * Optional. ProviderSource specifies the source type of the provider.
    +   * 
    + * + * + * optional .google.cloud.config.v1.ProviderConfig.ProviderSource source_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sourceType. + */ + @java.lang.Override + public com.google.cloud.config.v1.ProviderConfig.ProviderSource getSourceType() { + com.google.cloud.config.v1.ProviderConfig.ProviderSource result = + com.google.cloud.config.v1.ProviderConfig.ProviderSource.forNumber(sourceType_); + return result == null + ? com.google.cloud.config.v1.ProviderConfig.ProviderSource.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)) { + output.writeEnum(1, sourceType_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, sourceType_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.config.v1.ProviderConfig)) { + return super.equals(obj); + } + com.google.cloud.config.v1.ProviderConfig other = + (com.google.cloud.config.v1.ProviderConfig) obj; + + if (hasSourceType() != other.hasSourceType()) return false; + if (hasSourceType()) { + if (sourceType_ != other.sourceType_) 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 (hasSourceType()) { + hash = (37 * hash) + SOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + sourceType_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.config.v1.ProviderConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.ProviderConfig 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.config.v1.ProviderConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.ProviderConfig parseFrom( + 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.config.v1.ProviderConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.config.v1.ProviderConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.config.v1.ProviderConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.ProviderConfig 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.config.v1.ProviderConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.ProviderConfig 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.config.v1.ProviderConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.config.v1.ProviderConfig 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.config.v1.ProviderConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
    +   * ProviderConfig contains the provider configurations.
    +   * 
    + * + * Protobuf type {@code google.cloud.config.v1.ProviderConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.config.v1.ProviderConfig) + com.google.cloud.config.v1.ProviderConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ProviderConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ProviderConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.config.v1.ProviderConfig.class, + com.google.cloud.config.v1.ProviderConfig.Builder.class); + } + + // Construct using com.google.cloud.config.v1.ProviderConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sourceType_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.config.v1.ConfigProto + .internal_static_google_cloud_config_v1_ProviderConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.config.v1.ProviderConfig getDefaultInstanceForType() { + return com.google.cloud.config.v1.ProviderConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.config.v1.ProviderConfig build() { + com.google.cloud.config.v1.ProviderConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.config.v1.ProviderConfig buildPartial() { + com.google.cloud.config.v1.ProviderConfig result = + new com.google.cloud.config.v1.ProviderConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.config.v1.ProviderConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sourceType_ = sourceType_; + 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.config.v1.ProviderConfig) { + return mergeFrom((com.google.cloud.config.v1.ProviderConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.config.v1.ProviderConfig other) { + if (other == com.google.cloud.config.v1.ProviderConfig.getDefaultInstance()) return this; + if (other.hasSourceType()) { + setSourceType(other.getSourceType()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + sourceType_ = 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 sourceType_ = 0; + + /** + * + * + *
    +     * Optional. ProviderSource specifies the source type of the provider.
    +     * 
    + * + * + * optional .google.cloud.config.v1.ProviderConfig.ProviderSource source_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sourceType field is set. + */ + @java.lang.Override + public boolean hasSourceType() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +     * Optional. ProviderSource specifies the source type of the provider.
    +     * 
    + * + * + * optional .google.cloud.config.v1.ProviderConfig.ProviderSource source_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for sourceType. + */ + @java.lang.Override + public int getSourceTypeValue() { + return sourceType_; + } + + /** + * + * + *
    +     * Optional. ProviderSource specifies the source type of the provider.
    +     * 
    + * + * + * optional .google.cloud.config.v1.ProviderConfig.ProviderSource source_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for sourceType to set. + * @return This builder for chaining. + */ + public Builder setSourceTypeValue(int value) { + sourceType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. ProviderSource specifies the source type of the provider.
    +     * 
    + * + * + * optional .google.cloud.config.v1.ProviderConfig.ProviderSource source_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sourceType. + */ + @java.lang.Override + public com.google.cloud.config.v1.ProviderConfig.ProviderSource getSourceType() { + com.google.cloud.config.v1.ProviderConfig.ProviderSource result = + com.google.cloud.config.v1.ProviderConfig.ProviderSource.forNumber(sourceType_); + return result == null + ? com.google.cloud.config.v1.ProviderConfig.ProviderSource.UNRECOGNIZED + : result; + } + + /** + * + * + *
    +     * Optional. ProviderSource specifies the source type of the provider.
    +     * 
    + * + * + * optional .google.cloud.config.v1.ProviderConfig.ProviderSource source_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The sourceType to set. + * @return This builder for chaining. + */ + public Builder setSourceType(com.google.cloud.config.v1.ProviderConfig.ProviderSource value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + sourceType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. ProviderSource specifies the source type of the provider.
    +     * 
    + * + * + * optional .google.cloud.config.v1.ProviderConfig.ProviderSource source_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearSourceType() { + bitField0_ = (bitField0_ & ~0x00000001); + sourceType_ = 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.config.v1.ProviderConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.config.v1.ProviderConfig) + private static final com.google.cloud.config.v1.ProviderConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.config.v1.ProviderConfig(); + } + + public static com.google.cloud.config.v1.ProviderConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProviderConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.config.v1.ProviderConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ProviderConfigOrBuilder.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ProviderConfigOrBuilder.java new file mode 100644 index 000000000000..ff7b468dbed1 --- /dev/null +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ProviderConfigOrBuilder.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/config/v1/config.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.config.v1; + +public interface ProviderConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.config.v1.ProviderConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Optional. ProviderSource specifies the source type of the provider.
    +   * 
    + * + * + * optional .google.cloud.config.v1.ProviderConfig.ProviderSource source_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sourceType field is set. + */ + boolean hasSourceType(); + + /** + * + * + *
    +   * Optional. ProviderSource specifies the source type of the provider.
    +   * 
    + * + * + * optional .google.cloud.config.v1.ProviderConfig.ProviderSource source_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for sourceType. + */ + int getSourceTypeValue(); + + /** + * + * + *
    +   * Optional. ProviderSource specifies the source type of the provider.
    +   * 
    + * + * + * optional .google.cloud.config.v1.ProviderConfig.ProviderSource source_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sourceType. + */ + com.google.cloud.config.v1.ProviderConfig.ProviderSource getSourceType(); +} diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/Revision.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/Revision.java index 32e0612e1de1..f7db2424b478 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/Revision.java +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/Revision.java @@ -1784,6 +1784,65 @@ public com.google.cloud.config.v1.QuotaValidation getQuotaValidation() { return result == null ? com.google.cloud.config.v1.QuotaValidation.UNRECOGNIZED : result; } + public static final int PROVIDER_CONFIG_FIELD_NUMBER = 21; + private com.google.cloud.config.v1.ProviderConfig providerConfig_; + + /** + * + * + *
    +   * Output only. This field specifies the provider configurations.
    +   * 
    + * + * + * .google.cloud.config.v1.ProviderConfig provider_config = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the providerConfig field is set. + */ + @java.lang.Override + public boolean hasProviderConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
    +   * Output only. This field specifies the provider configurations.
    +   * 
    + * + * + * .google.cloud.config.v1.ProviderConfig provider_config = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The providerConfig. + */ + @java.lang.Override + public com.google.cloud.config.v1.ProviderConfig getProviderConfig() { + return providerConfig_ == null + ? com.google.cloud.config.v1.ProviderConfig.getDefaultInstance() + : providerConfig_; + } + + /** + * + * + *
    +   * Output only. This field specifies the provider configurations.
    +   * 
    + * + * + * .google.cloud.config.v1.ProviderConfig provider_config = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.config.v1.ProviderConfigOrBuilder getProviderConfigOrBuilder() { + return providerConfig_ == null + ? com.google.cloud.config.v1.ProviderConfig.getDefaultInstance() + : providerConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1857,6 +1916,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io != com.google.cloud.config.v1.QuotaValidation.QUOTA_VALIDATION_UNSPECIFIED.getNumber()) { output.writeEnum(20, quotaValidation_); } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(21, getProviderConfig()); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(quotaValidationResults_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 29, quotaValidationResults_); } @@ -1930,6 +1992,9 @@ public int getSerializedSize() { != com.google.cloud.config.v1.QuotaValidation.QUOTA_VALIDATION_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(20, quotaValidation_); } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getProviderConfig()); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(quotaValidationResults_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(29, quotaValidationResults_); } @@ -1976,6 +2041,10 @@ public boolean equals(final java.lang.Object obj) { if (!getTfVersion().equals(other.getTfVersion())) return false; if (!getQuotaValidationResults().equals(other.getQuotaValidationResults())) return false; if (quotaValidation_ != other.quotaValidation_) return false; + if (hasProviderConfig() != other.hasProviderConfig()) return false; + if (hasProviderConfig()) { + if (!getProviderConfig().equals(other.getProviderConfig())) return false; + } if (!getBlueprintCase().equals(other.getBlueprintCase())) return false; switch (blueprintCase_) { case 6: @@ -2041,6 +2110,10 @@ public int hashCode() { hash = (53 * hash) + getQuotaValidationResults().hashCode(); hash = (37 * hash) + QUOTA_VALIDATION_FIELD_NUMBER; hash = (53 * hash) + quotaValidation_; + if (hasProviderConfig()) { + hash = (37 * hash) + PROVIDER_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getProviderConfig().hashCode(); + } switch (blueprintCase_) { case 6: hash = (37 * hash) + TERRAFORM_BLUEPRINT_FIELD_NUMBER; @@ -2195,6 +2268,7 @@ private void maybeForceBuilderInitialization() { getUpdateTimeFieldBuilder(); getApplyResultsFieldBuilder(); getTfErrorsFieldBuilder(); + getProviderConfigFieldBuilder(); } } @@ -2242,6 +2316,11 @@ public Builder clear() { tfVersion_ = ""; quotaValidationResults_ = ""; quotaValidation_ = 0; + providerConfig_ = null; + if (providerConfigBuilder_ != null) { + providerConfigBuilder_.dispose(); + providerConfigBuilder_ = null; + } blueprintCase_ = 0; blueprint_ = null; return this; @@ -2352,6 +2431,11 @@ private void buildPartial0(com.google.cloud.config.v1.Revision result) { if (((from_bitField0_ & 0x00080000) != 0)) { result.quotaValidation_ = quotaValidation_; } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.providerConfig_ = + providerConfigBuilder_ == null ? providerConfig_ : providerConfigBuilder_.build(); + to_bitField0_ |= 0x00000008; + } result.bitField0_ |= to_bitField0_; } @@ -2509,6 +2593,9 @@ public Builder mergeFrom(com.google.cloud.config.v1.Revision other) { if (other.quotaValidation_ != 0) { setQuotaValidationValue(other.getQuotaValidationValue()); } + if (other.hasProviderConfig()) { + mergeProviderConfig(other.getProviderConfig()); + } switch (other.getBlueprintCase()) { case TERRAFORM_BLUEPRINT: { @@ -2668,6 +2755,12 @@ public Builder mergeFrom( bitField0_ |= 0x00080000; break; } // case 160 + case 170: + { + input.readMessage(getProviderConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00100000; + break; + } // case 170 case 234: { quotaValidationResults_ = input.readStringRequireUtf8(); @@ -5739,6 +5832,219 @@ public Builder clearQuotaValidation() { return this; } + private com.google.cloud.config.v1.ProviderConfig providerConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.config.v1.ProviderConfig, + com.google.cloud.config.v1.ProviderConfig.Builder, + com.google.cloud.config.v1.ProviderConfigOrBuilder> + providerConfigBuilder_; + + /** + * + * + *
    +     * Output only. This field specifies the provider configurations.
    +     * 
    + * + * + * .google.cloud.config.v1.ProviderConfig provider_config = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the providerConfig field is set. + */ + public boolean hasProviderConfig() { + return ((bitField0_ & 0x00100000) != 0); + } + + /** + * + * + *
    +     * Output only. This field specifies the provider configurations.
    +     * 
    + * + * + * .google.cloud.config.v1.ProviderConfig provider_config = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The providerConfig. + */ + public com.google.cloud.config.v1.ProviderConfig getProviderConfig() { + if (providerConfigBuilder_ == null) { + return providerConfig_ == null + ? com.google.cloud.config.v1.ProviderConfig.getDefaultInstance() + : providerConfig_; + } else { + return providerConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Output only. This field specifies the provider configurations.
    +     * 
    + * + * + * .google.cloud.config.v1.ProviderConfig provider_config = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setProviderConfig(com.google.cloud.config.v1.ProviderConfig value) { + if (providerConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + providerConfig_ = value; + } else { + providerConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. This field specifies the provider configurations.
    +     * 
    + * + * + * .google.cloud.config.v1.ProviderConfig provider_config = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setProviderConfig( + com.google.cloud.config.v1.ProviderConfig.Builder builderForValue) { + if (providerConfigBuilder_ == null) { + providerConfig_ = builderForValue.build(); + } else { + providerConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. This field specifies the provider configurations.
    +     * 
    + * + * + * .google.cloud.config.v1.ProviderConfig provider_config = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeProviderConfig(com.google.cloud.config.v1.ProviderConfig value) { + if (providerConfigBuilder_ == null) { + if (((bitField0_ & 0x00100000) != 0) + && providerConfig_ != null + && providerConfig_ != com.google.cloud.config.v1.ProviderConfig.getDefaultInstance()) { + getProviderConfigBuilder().mergeFrom(value); + } else { + providerConfig_ = value; + } + } else { + providerConfigBuilder_.mergeFrom(value); + } + if (providerConfig_ != null) { + bitField0_ |= 0x00100000; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Output only. This field specifies the provider configurations.
    +     * 
    + * + * + * .google.cloud.config.v1.ProviderConfig provider_config = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearProviderConfig() { + bitField0_ = (bitField0_ & ~0x00100000); + providerConfig_ = null; + if (providerConfigBuilder_ != null) { + providerConfigBuilder_.dispose(); + providerConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. This field specifies the provider configurations.
    +     * 
    + * + * + * .google.cloud.config.v1.ProviderConfig provider_config = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.config.v1.ProviderConfig.Builder getProviderConfigBuilder() { + bitField0_ |= 0x00100000; + onChanged(); + return getProviderConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Output only. This field specifies the provider configurations.
    +     * 
    + * + * + * .google.cloud.config.v1.ProviderConfig provider_config = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.config.v1.ProviderConfigOrBuilder getProviderConfigOrBuilder() { + if (providerConfigBuilder_ != null) { + return providerConfigBuilder_.getMessageOrBuilder(); + } else { + return providerConfig_ == null + ? com.google.cloud.config.v1.ProviderConfig.getDefaultInstance() + : providerConfig_; + } + } + + /** + * + * + *
    +     * Output only. This field specifies the provider configurations.
    +     * 
    + * + * + * .google.cloud.config.v1.ProviderConfig provider_config = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.config.v1.ProviderConfig, + com.google.cloud.config.v1.ProviderConfig.Builder, + com.google.cloud.config.v1.ProviderConfigOrBuilder> + getProviderConfigFieldBuilder() { + if (providerConfigBuilder_ == null) { + providerConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.config.v1.ProviderConfig, + com.google.cloud.config.v1.ProviderConfig.Builder, + com.google.cloud.config.v1.ProviderConfigOrBuilder>( + getProviderConfig(), getParentForChildren(), isClean()); + providerConfig_ = null; + } + return providerConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/RevisionOrBuilder.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/RevisionOrBuilder.java index 6942fb08e7a7..9c68e563b3af 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/RevisionOrBuilder.java +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/RevisionOrBuilder.java @@ -708,5 +708,48 @@ public interface RevisionOrBuilder */ com.google.cloud.config.v1.QuotaValidation getQuotaValidation(); + /** + * + * + *
    +   * Output only. This field specifies the provider configurations.
    +   * 
    + * + * + * .google.cloud.config.v1.ProviderConfig provider_config = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the providerConfig field is set. + */ + boolean hasProviderConfig(); + + /** + * + * + *
    +   * Output only. This field specifies the provider configurations.
    +   * 
    + * + * + * .google.cloud.config.v1.ProviderConfig provider_config = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The providerConfig. + */ + com.google.cloud.config.v1.ProviderConfig getProviderConfig(); + + /** + * + * + *
    +   * Output only. This field specifies the provider configurations.
    +   * 
    + * + * + * .google.cloud.config.v1.ProviderConfig provider_config = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.config.v1.ProviderConfigOrBuilder getProviderConfigOrBuilder(); + com.google.cloud.config.v1.Revision.BlueprintCase getBlueprintCase(); } diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/proto/google/cloud/config/v1/config.proto b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/proto/google/cloud/config/v1/config.proto index 6eaea8fcd697..aa8a629c10b2 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/proto/google/cloud/config/v1/config.proto +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/proto/google/cloud/config/v1/config.proto @@ -551,6 +551,9 @@ message Deployment { // https://google.aip.dev/148#annotations for details on format and size // limitations. map annotations = 24 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. This field specifies the provider configurations. + ProviderConfig provider_config = 25 [(google.api.field_behavior) = OPTIONAL]; } // TerraformBlueprint describes the source of a Terraform root module which @@ -1068,6 +1071,10 @@ message Revision { // applies. QuotaValidation quota_validation = 20 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. This field specifies the provider configurations. + ProviderConfig provider_config = 21 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Errors encountered during actuation using Terraform @@ -1636,6 +1643,9 @@ message Preview { // https://google.aip.dev/148#annotations for details on format and size // limitations. map annotations = 20 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. This field specifies the provider configurations. + ProviderConfig provider_config = 21 [(google.api.field_behavior) = OPTIONAL]; } // Ephemeral metadata content describing the state of a preview operation. @@ -2249,3 +2259,19 @@ message GetResourceDriftRequest { } ]; } + +// ProviderConfig contains the provider configurations. +message ProviderConfig { + // ProviderSource represents the source type of the provider. + enum ProviderSource { + // Unspecified source type, default to public sources. + PROVIDER_SOURCE_UNSPECIFIED = 0; + + // Service maintained provider source type. + SERVICE_MAINTAINED = 1; + } + + // Optional. ProviderSource specifies the source type of the provider. + optional ProviderSource source_type = 1 + [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-iot/README.md b/java-iot/README.md index fd866b98f654..d47c4b1df138 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.66.0 + 26.67.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.72.0 + 2.73.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-iot:2.72.0' +implementation 'com.google.cloud:google-cloud-iot:2.73.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-iot" % "2.72.0" +libraryDependencies += "com.google.cloud" % "google-cloud-iot" % "2.73.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.72.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iot/2.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-java-shopping-merchant-issue-resolution/README.md b/java-java-shopping-merchant-issue-resolution/README.md index 5114102441ce..32ea0ab57e52 100644 --- a/java-java-shopping-merchant-issue-resolution/README.md +++ b/java-java-shopping-merchant-issue-resolution/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.66.0 + 26.67.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-issue-resolution - 1.0.0 + 1.1.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-issue-resolution:1.0.0' +implementation 'com.google.shopping:google-shopping-merchant-issue-resolution:1.1.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-issue-resolution" % "1.0.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-issue-resolution" % "1.1.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.shopping/google-shopping-merchant-issue-resolution.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-issue-resolution/1.0.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-issue-resolution/1.1.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-java-shopping-merchant-order-tracking/README.md b/java-java-shopping-merchant-order-tracking/README.md index d7b9bad92622..248f52995a55 100644 --- a/java-java-shopping-merchant-order-tracking/README.md +++ b/java-java-shopping-merchant-order-tracking/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.66.0 + 26.67.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-order-tracking - 1.0.0 + 1.1.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-order-tracking:1.0.0' +implementation 'com.google.shopping:google-shopping-merchant-order-tracking:1.1.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-order-tracking" % "1.0.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-order-tracking" % "1.1.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.shopping/google-shopping-merchant-order-tracking.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-order-tracking/1.0.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-order-tracking/1.1.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-kms/README.md b/java-kms/README.md index 77cb02c0c627..92ae7cd6a75b 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.66.0 + 26.67.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.75.0 + 2.76.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-kms:2.75.0' +implementation 'com.google.cloud:google-cloud-kms:2.76.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-kms" % "2.75.0" +libraryDependencies += "com.google.cloud" % "google-cloud-kms" % "2.76.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-kms.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kms/2.75.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kms/2.76.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-kmsinventory/README.md b/java-kmsinventory/README.md index 49741f78b4f1..0e407bf2fe5e 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.66.0 + 26.67.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.61.0 + 0.62.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-kmsinventory:0.61.0' +implementation 'com.google.cloud:google-cloud-kmsinventory:0.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-kmsinventory" % "0.61.0" +libraryDependencies += "com.google.cloud" % "google-cloud-kmsinventory" % "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-kmsinventory.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kmsinventory/0.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kmsinventory/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-language/README.md b/java-language/README.md index ef1168b14059..b3c05558aa37 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.66.0 + 26.67.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.73.0 + 2.74.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-language:2.73.0' +implementation 'com.google.cloud:google-cloud-language:2.74.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-language" % "2.73.0" +libraryDependencies += "com.google.cloud" % "google-cloud-language" % "2.74.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.73.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-language/2.74.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-licensemanager/README.md b/java-licensemanager/README.md index 20dbc4cb40c5..b44a177f4a7f 100644 --- a/java-licensemanager/README.md +++ b/java-licensemanager/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.66.0 + 26.67.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-licensemanager - 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-licensemanager:0.5.0' +implementation 'com.google.cloud:google-cloud-licensemanager:0.6.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-licensemanager" % "0.5.0" +libraryDependencies += "com.google.cloud" % "google-cloud-licensemanager" % "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-licensemanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-licensemanager/0.5.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-licensemanager/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-life-sciences/README.md b/java-life-sciences/README.md index 417bab2fd44c..604c718f5655 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.66.0 + 26.67.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.74.0 + 0.75.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-life-sciences:0.74.0' +implementation 'com.google.cloud:google-cloud-life-sciences:0.75.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-life-sciences" % "0.74.0" +libraryDependencies += "com.google.cloud" % "google-cloud-life-sciences" % "0.75.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-life-sciences.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-life-sciences/0.74.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-life-sciences/0.75.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-lustre/README.md b/java-lustre/README.md index 4db00fcb8033..58c0b93be0ac 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.66.0 + 26.67.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.12.0 + 0.13.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-lustre:0.12.0' +implementation 'com.google.cloud:google-cloud-lustre:0.13.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-lustre" % "0.12.0" +libraryDependencies += "com.google.cloud" % "google-cloud-lustre" % "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.cloud/google-cloud-lustre.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-lustre/0.12.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-lustre/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-maintenance/README.md b/java-maintenance/README.md index 0e1f4b9ce26c..4ad64d27f85b 100644 --- a/java-maintenance/README.md +++ b/java-maintenance/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.66.0 + 26.67.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-maintenance - 0.6.0 + 0.7.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-maintenance:0.6.0' +implementation 'com.google.cloud:google-cloud-maintenance:0.7.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-maintenance" % "0.6.0" +libraryDependencies += "com.google.cloud" % "google-cloud-maintenance" % "0.7.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-maintenance.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-maintenance/0.6.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-maintenance/0.7.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-managed-identities/README.md b/java-managed-identities/README.md index b490aa2f4400..41d5c89c618f 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.66.0 + 26.67.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.70.0 + 1.71.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-managed-identities:1.70.0' +implementation 'com.google.cloud:google-cloud-managed-identities:1.71.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-managed-identities" % "1.70.0" +libraryDependencies += "com.google.cloud" % "google-cloud-managed-identities" % "1.71.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.70.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-managed-identities/1.71.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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 f15db5dba838..c59ff77e83e4 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.66.0 + 26.67.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.28.0 + 0.29.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-managedkafka:0.28.0' +implementation 'com.google.cloud:google-cloud-managedkafka:0.29.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-managedkafka" % "0.28.0" +libraryDependencies += "com.google.cloud" % "google-cloud-managedkafka" % "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-managedkafka.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-managedkafka/0.28.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-managedkafka/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-maps-addressvalidation/README.md b/java-maps-addressvalidation/README.md index 2a0b6bd36726..d6cad1b70f50 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.66.0 + 26.67.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.66.0 + 0.67.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-addressvalidation:0.66.0' +implementation 'com.google.maps:google-maps-addressvalidation:0.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-addressvalidation" % "0.66.0" +libraryDependencies += "com.google.maps" % "google-maps-addressvalidation" % "0.67.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.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-addressvalidation/0.67.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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 53622a9245bd..2cacb13b4d15 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.66.0 + 26.67.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.23.0 + 0.24.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-area-insights:0.23.0' +implementation 'com.google.maps:google-maps-area-insights:0.24.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-area-insights" % "0.23.0" +libraryDependencies += "com.google.maps" % "google-maps-area-insights" % "0.24.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.23.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-area-insights/0.24.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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 9d65ec0e0cc1..a452bad3411a 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.66.0 + 26.67.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.19.0 + 0.20.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-fleetengine-delivery:0.19.0' +implementation 'com.google.maps:google-maps-fleetengine-delivery:0.20.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-fleetengine-delivery" % "0.19.0" +libraryDependencies += "com.google.maps" % "google-maps-fleetengine-delivery" % "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-fleetengine-delivery.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-fleetengine-delivery/0.19.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-fleetengine-delivery/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-fleetengine/README.md b/java-maps-fleetengine/README.md index 7d4629788fd9..5461c184ed40 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.66.0 + 26.67.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.19.0 + 0.20.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-fleetengine:0.19.0' +implementation 'com.google.maps:google-maps-fleetengine:0.20.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-fleetengine" % "0.19.0" +libraryDependencies += "com.google.maps" % "google-maps-fleetengine" % "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-fleetengine.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-fleetengine/0.19.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-fleetengine/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-mapsplatformdatasets/README.md b/java-maps-mapsplatformdatasets/README.md index f3c5eea76bee..ca1907cc1240 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.66.0 + 26.67.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.61.0 + 0.62.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-mapsplatformdatasets:0.61.0' +implementation 'com.google.maps:google-maps-mapsplatformdatasets:0.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-mapsplatformdatasets" % "0.61.0" +libraryDependencies += "com.google.maps" % "google-maps-mapsplatformdatasets" % "0.62.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.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-mapsplatformdatasets/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-maps-places/README.md b/java-maps-places/README.md index 4a4b44d2fe62..179f7e52a56c 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.66.0 + 26.67.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.43.0 + 0.44.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-places:0.43.0' +implementation 'com.google.maps:google-maps-places:0.44.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-places" % "0.43.0" +libraryDependencies += "com.google.maps" % "google-maps-places" % "0.44.0" ``` ## Authentication @@ -204,7 +204,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-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.43.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-places/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-maps-routeoptimization/README.md b/java-maps-routeoptimization/README.md index cca0b305423d..16121e01cb10 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.66.0 + 26.67.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.30.0 + 0.31.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-routeoptimization:0.30.0' +implementation 'com.google.maps:google-maps-routeoptimization:0.31.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-routeoptimization" % "0.30.0" +libraryDependencies += "com.google.maps" % "google-maps-routeoptimization" % "0.31.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.30.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-routeoptimization/0.31.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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 a80b693400d5..a28043a2a469 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.66.0 + 26.67.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.57.0 + 1.58.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-routing:1.57.0' +implementation 'com.google.maps:google-maps-routing:1.58.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-routing" % "1.57.0" +libraryDependencies += "com.google.maps" % "google-maps-routing" % "1.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.maps/google-maps-routing.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-routing/1.57.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-routing/1.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-maps-solar/README.md b/java-maps-solar/README.md index fe9e9d6c62ec..9303b5f9dbae 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.66.0 + 26.67.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.31.0 + 0.32.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-solar:0.31.0' +implementation 'com.google.maps:google-maps-solar:0.32.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-solar" % "0.31.0" +libraryDependencies += "com.google.maps" % "google-maps-solar" % "0.32.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-solar.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-solar/0.31.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-solar/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-marketingplatformadminapi/README.md b/java-marketingplatformadminapi/README.md index 3d22806213de..0b5ba1dbc0ef 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.66.0 + 26.67.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.21.0 + 0.22.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.ads-marketingplatform:admin:0.21.0' +implementation 'com.google.ads-marketingplatform:admin:0.22.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.ads-marketingplatform" % "admin" % "0.21.0" +libraryDependencies += "com.google.ads-marketingplatform" % "admin" % "0.22.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.21.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.ads-marketingplatform/admin/0.22.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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 bb9ea3014dea..2117af246c35 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.66.0 + 26.67.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.78.0 + 0.79.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-mediatranslation:0.78.0' +implementation 'com.google.cloud:google-cloud-mediatranslation:0.79.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-mediatranslation" % "0.78.0" +libraryDependencies += "com.google.cloud" % "google-cloud-mediatranslation" % "0.79.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-mediatranslation.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-mediatranslation/0.78.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-mediatranslation/0.79.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-meet/README.md b/java-meet/README.md index 19f048c9a943..b78c407a252f 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.66.0 + 26.67.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.39.0 + 0.40.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-meet:0.39.0' +implementation 'com.google.cloud:google-cloud-meet:0.40.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-meet" % "0.39.0" +libraryDependencies += "com.google.cloud" % "google-cloud-meet" % "0.40.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.39.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-meet/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-memcache/README.md b/java-memcache/README.md index 48224a53276b..e6990bb1cd3e 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.66.0 + 26.67.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.72.0 + 2.73.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-memcache:2.72.0' +implementation 'com.google.cloud:google-cloud-memcache:2.73.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-memcache" % "2.72.0" +libraryDependencies += "com.google.cloud" % "google-cloud-memcache" % "2.73.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.72.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-memcache/2.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-migrationcenter/README.md b/java-migrationcenter/README.md index 980dc727ea30..a1db66e7b9d9 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.66.0 + 26.67.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.54.0 + 0.55.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-migrationcenter:0.54.0' +implementation 'com.google.cloud:google-cloud-migrationcenter:0.55.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-migrationcenter" % "0.54.0" +libraryDependencies += "com.google.cloud" % "google-cloud-migrationcenter" % "0.55.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.54.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-migrationcenter/0.55.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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 c165878c3c6d..cb3a1bfa5e72 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.66.0 + 26.67.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.13.0 + 0.14.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-modelarmor:0.13.0' +implementation 'com.google.cloud:google-cloud-modelarmor:0.14.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-modelarmor" % "0.13.0" +libraryDependencies += "com.google.cloud" % "google-cloud-modelarmor" % "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-modelarmor.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-modelarmor/0.13.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-modelarmor/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-monitoring-dashboards/README.md b/java-monitoring-dashboards/README.md index 6436fec97614..06147675445e 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.66.0 + 26.67.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.74.0 + 2.75.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-monitoring-dashboard:2.74.0' +implementation 'com.google.cloud:google-cloud-monitoring-dashboard:2.75.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-dashboard" % "2.74.0" +libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-dashboard" % "2.75.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.74.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring-dashboard/2.75.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-monitoring-metricsscope/README.md b/java-monitoring-metricsscope/README.md index fbe4359509b2..1e188786eaed 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.66.0 + 26.67.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.66.0 + 0.67.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-monitoring-metricsscope:0.66.0' +implementation 'com.google.cloud:google-cloud-monitoring-metricsscope:0.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-metricsscope" % "0.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-metricsscope" % "0.67.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.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring-metricsscope/0.67.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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 23767dceac1c..778c2ad7cf4e 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.66.0 + 26.67.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.73.0 + 3.74.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-monitoring:3.73.0' +implementation 'com.google.cloud:google-cloud-monitoring:3.74.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-monitoring" % "3.73.0" +libraryDependencies += "com.google.cloud" % "google-cloud-monitoring" % "3.74.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.73.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring/3.74.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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 e751681fb6fa..d491992cf272 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.66.0 + 26.67.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.51.0 + 0.52.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-netapp:0.51.0' +implementation 'com.google.cloud:google-cloud-netapp:0.52.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-netapp" % "0.51.0" +libraryDependencies += "com.google.cloud" % "google-cloud-netapp" % "0.52.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.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-netapp/0.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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/google-cloud-netapp/src/main/resources/META-INF/native-image/com.google.cloud.netapp.v1/reflect-config.json b/java-netapp/google-cloud-netapp/src/main/resources/META-INF/native-image/com.google.cloud.netapp.v1/reflect-config.json index d77121c1ba8c..bce3b9fa3f18 100644 --- a/java-netapp/google-cloud-netapp/src/main/resources/META-INF/native-image/com.google.cloud.netapp.v1/reflect-config.json +++ b/java-netapp/google-cloud-netapp/src/main/resources/META-INF/native-image/com.google.cloud.netapp.v1/reflect-config.json @@ -1412,6 +1412,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.netapp.v1.HybridReplicationParameters$VolumeHybridReplicationType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.netapp.v1.HybridReplicationSchedule", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.netapp.v1.KmsConfig", "queryAllDeclaredConstructors": true, @@ -1880,6 +1898,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.netapp.v1.QosType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.netapp.v1.QuotaRule", "queryAllDeclaredConstructors": true, @@ -2456,6 +2483,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.netapp.v1.UserCommands", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.netapp.v1.UserCommands$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.netapp.v1.ValidateDirectoryServiceRequest", "queryAllDeclaredConstructors": true, diff --git a/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/NetAppClientHttpJsonTest.java b/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/NetAppClientHttpJsonTest.java index 69b308f09f57..0d9876fa3d5f 100644 --- a/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/NetAppClientHttpJsonTest.java +++ b/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/NetAppClientHttpJsonTest.java @@ -225,6 +225,12 @@ public void createStoragePoolTest() throws Exception { .setCustomPerformanceEnabled(true) .setTotalThroughputMibps(-2085075953) .setTotalIops(-705711676) + .setHotTierSizeGib(369881037) + .setEnableHotTierAutoResize(true) + .setQosType(QosType.forNumber(0)) + .setAvailableThroughputMibps(1487662890) + .setColdTierSizeUsedGib(-1242809254) + .setHotTierSizeUsedGib(-151116719) .build(); Operation resultOperation = Operation.newBuilder() @@ -303,6 +309,12 @@ public void createStoragePoolTest2() throws Exception { .setCustomPerformanceEnabled(true) .setTotalThroughputMibps(-2085075953) .setTotalIops(-705711676) + .setHotTierSizeGib(369881037) + .setEnableHotTierAutoResize(true) + .setQosType(QosType.forNumber(0)) + .setAvailableThroughputMibps(1487662890) + .setColdTierSizeUsedGib(-1242809254) + .setHotTierSizeUsedGib(-151116719) .build(); Operation resultOperation = Operation.newBuilder() @@ -381,6 +393,12 @@ public void getStoragePoolTest() throws Exception { .setCustomPerformanceEnabled(true) .setTotalThroughputMibps(-2085075953) .setTotalIops(-705711676) + .setHotTierSizeGib(369881037) + .setEnableHotTierAutoResize(true) + .setQosType(QosType.forNumber(0)) + .setAvailableThroughputMibps(1487662890) + .setColdTierSizeUsedGib(-1242809254) + .setHotTierSizeUsedGib(-151116719) .build(); mockService.addResponse(expectedResponse); @@ -449,6 +467,12 @@ public void getStoragePoolTest2() throws Exception { .setCustomPerformanceEnabled(true) .setTotalThroughputMibps(-2085075953) .setTotalIops(-705711676) + .setHotTierSizeGib(369881037) + .setEnableHotTierAutoResize(true) + .setQosType(QosType.forNumber(0)) + .setAvailableThroughputMibps(1487662890) + .setColdTierSizeUsedGib(-1242809254) + .setHotTierSizeUsedGib(-151116719) .build(); mockService.addResponse(expectedResponse); @@ -517,6 +541,12 @@ public void updateStoragePoolTest() throws Exception { .setCustomPerformanceEnabled(true) .setTotalThroughputMibps(-2085075953) .setTotalIops(-705711676) + .setHotTierSizeGib(369881037) + .setEnableHotTierAutoResize(true) + .setQosType(QosType.forNumber(0)) + .setAvailableThroughputMibps(1487662890) + .setColdTierSizeUsedGib(-1242809254) + .setHotTierSizeUsedGib(-151116719) .build(); Operation resultOperation = Operation.newBuilder() @@ -553,6 +583,12 @@ public void updateStoragePoolTest() throws Exception { .setCustomPerformanceEnabled(true) .setTotalThroughputMibps(-2085075953) .setTotalIops(-705711676) + .setHotTierSizeGib(369881037) + .setEnableHotTierAutoResize(true) + .setQosType(QosType.forNumber(0)) + .setAvailableThroughputMibps(1487662890) + .setColdTierSizeUsedGib(-1242809254) + .setHotTierSizeUsedGib(-151116719) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -610,6 +646,12 @@ public void updateStoragePoolExceptionTest() throws Exception { .setCustomPerformanceEnabled(true) .setTotalThroughputMibps(-2085075953) .setTotalIops(-705711676) + .setHotTierSizeGib(369881037) + .setEnableHotTierAutoResize(true) + .setQosType(QosType.forNumber(0)) + .setAvailableThroughputMibps(1487662890) + .setColdTierSizeUsedGib(-1242809254) + .setHotTierSizeUsedGib(-151116719) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateStoragePoolAsync(storagePool, updateMask).get(); @@ -790,6 +832,12 @@ public void switchActiveReplicaZoneTest() throws Exception { .setCustomPerformanceEnabled(true) .setTotalThroughputMibps(-2085075953) .setTotalIops(-705711676) + .setHotTierSizeGib(369881037) + .setEnableHotTierAutoResize(true) + .setQosType(QosType.forNumber(0)) + .setAvailableThroughputMibps(1487662890) + .setColdTierSizeUsedGib(-1242809254) + .setHotTierSizeUsedGib(-151116719) .build(); Operation resultOperation = Operation.newBuilder() @@ -983,6 +1031,8 @@ public void getVolumeTest() throws Exception { .setZone("zone3744684") .setColdTierSizeGib(212809252) .setHybridReplicationParameters(HybridReplicationParameters.newBuilder().build()) + .setThroughputMibps(1498696820) + .setHotTierSizeUsedGib(-151116719) .build(); mockService.addResponse(expectedResponse); @@ -1065,6 +1115,8 @@ public void getVolumeTest2() throws Exception { .setZone("zone3744684") .setColdTierSizeGib(212809252) .setHybridReplicationParameters(HybridReplicationParameters.newBuilder().build()) + .setThroughputMibps(1498696820) + .setHotTierSizeUsedGib(-151116719) .build(); mockService.addResponse(expectedResponse); @@ -1147,6 +1199,8 @@ public void createVolumeTest() throws Exception { .setZone("zone3744684") .setColdTierSizeGib(212809252) .setHybridReplicationParameters(HybridReplicationParameters.newBuilder().build()) + .setThroughputMibps(1498696820) + .setHotTierSizeUsedGib(-151116719) .build(); Operation resultOperation = Operation.newBuilder() @@ -1238,6 +1292,8 @@ public void createVolumeTest2() throws Exception { .setZone("zone3744684") .setColdTierSizeGib(212809252) .setHybridReplicationParameters(HybridReplicationParameters.newBuilder().build()) + .setThroughputMibps(1498696820) + .setHotTierSizeUsedGib(-151116719) .build(); Operation resultOperation = Operation.newBuilder() @@ -1329,6 +1385,8 @@ public void updateVolumeTest() throws Exception { .setZone("zone3744684") .setColdTierSizeGib(212809252) .setHybridReplicationParameters(HybridReplicationParameters.newBuilder().build()) + .setThroughputMibps(1498696820) + .setHotTierSizeUsedGib(-151116719) .build(); Operation resultOperation = Operation.newBuilder() @@ -1379,6 +1437,8 @@ public void updateVolumeTest() throws Exception { .setZone("zone3744684") .setColdTierSizeGib(212809252) .setHybridReplicationParameters(HybridReplicationParameters.newBuilder().build()) + .setThroughputMibps(1498696820) + .setHotTierSizeUsedGib(-151116719) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -1450,6 +1510,8 @@ public void updateVolumeExceptionTest() throws Exception { .setZone("zone3744684") .setColdTierSizeGib(212809252) .setHybridReplicationParameters(HybridReplicationParameters.newBuilder().build()) + .setThroughputMibps(1498696820) + .setHotTierSizeUsedGib(-151116719) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateVolumeAsync(volume, updateMask).get(); @@ -1591,6 +1653,8 @@ public void revertVolumeTest() throws Exception { .setZone("zone3744684") .setColdTierSizeGib(212809252) .setHybridReplicationParameters(HybridReplicationParameters.newBuilder().build()) + .setThroughputMibps(1498696820) + .setHotTierSizeUsedGib(-151116719) .build(); Operation resultOperation = Operation.newBuilder() @@ -3452,6 +3516,7 @@ public void getReplicationTest() throws Exception { .setSourceVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) .setHybridPeeringDetails(HybridPeeringDetails.newBuilder().build()) .setClusterLocation("clusterLocation-732398641") + .setHybridReplicationUserCommands(UserCommands.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -3511,6 +3576,7 @@ public void getReplicationTest2() throws Exception { .setSourceVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) .setHybridPeeringDetails(HybridPeeringDetails.newBuilder().build()) .setClusterLocation("clusterLocation-732398641") + .setHybridReplicationUserCommands(UserCommands.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -3570,6 +3636,7 @@ public void createReplicationTest() throws Exception { .setSourceVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) .setHybridPeeringDetails(HybridPeeringDetails.newBuilder().build()) .setClusterLocation("clusterLocation-732398641") + .setHybridReplicationUserCommands(UserCommands.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -3637,6 +3704,7 @@ public void createReplicationTest2() throws Exception { .setSourceVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) .setHybridPeeringDetails(HybridPeeringDetails.newBuilder().build()) .setClusterLocation("clusterLocation-732398641") + .setHybridReplicationUserCommands(UserCommands.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -3798,6 +3866,7 @@ public void updateReplicationTest() throws Exception { .setSourceVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) .setHybridPeeringDetails(HybridPeeringDetails.newBuilder().build()) .setClusterLocation("clusterLocation-732398641") + .setHybridReplicationUserCommands(UserCommands.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -3823,6 +3892,7 @@ public void updateReplicationTest() throws Exception { .setSourceVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) .setHybridPeeringDetails(HybridPeeringDetails.newBuilder().build()) .setClusterLocation("clusterLocation-732398641") + .setHybridReplicationUserCommands(UserCommands.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -3868,6 +3938,7 @@ public void updateReplicationExceptionTest() throws Exception { .setSourceVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) .setHybridPeeringDetails(HybridPeeringDetails.newBuilder().build()) .setClusterLocation("clusterLocation-732398641") + .setHybridReplicationUserCommands(UserCommands.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateReplicationAsync(replication, updateMask).get(); @@ -3894,6 +3965,7 @@ public void stopReplicationTest() throws Exception { .setSourceVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) .setHybridPeeringDetails(HybridPeeringDetails.newBuilder().build()) .setClusterLocation("clusterLocation-732398641") + .setHybridReplicationUserCommands(UserCommands.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -3968,6 +4040,7 @@ public void resumeReplicationTest() throws Exception { .setSourceVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) .setHybridPeeringDetails(HybridPeeringDetails.newBuilder().build()) .setClusterLocation("clusterLocation-732398641") + .setHybridReplicationUserCommands(UserCommands.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -4040,6 +4113,7 @@ public void reverseReplicationDirectionTest() throws Exception { .setSourceVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) .setHybridPeeringDetails(HybridPeeringDetails.newBuilder().build()) .setClusterLocation("clusterLocation-732398641") + .setHybridReplicationUserCommands(UserCommands.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -4112,6 +4186,7 @@ public void establishPeeringTest() throws Exception { .setSourceVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) .setHybridPeeringDetails(HybridPeeringDetails.newBuilder().build()) .setClusterLocation("clusterLocation-732398641") + .setHybridReplicationUserCommands(UserCommands.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -4192,6 +4267,7 @@ public void syncReplicationTest() throws Exception { .setSourceVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) .setHybridPeeringDetails(HybridPeeringDetails.newBuilder().build()) .setClusterLocation("clusterLocation-732398641") + .setHybridReplicationUserCommands(UserCommands.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() diff --git a/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/NetAppClientTest.java b/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/NetAppClientTest.java index 8f431a9ce24d..c7c412dbb0ae 100644 --- a/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/NetAppClientTest.java +++ b/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/NetAppClientTest.java @@ -221,6 +221,12 @@ public void createStoragePoolTest() throws Exception { .setCustomPerformanceEnabled(true) .setTotalThroughputMibps(-2085075953) .setTotalIops(-705711676) + .setHotTierSizeGib(369881037) + .setEnableHotTierAutoResize(true) + .setQosType(QosType.forNumber(0)) + .setAvailableThroughputMibps(1487662890) + .setColdTierSizeUsedGib(-1242809254) + .setHotTierSizeUsedGib(-151116719) .build(); Operation resultOperation = Operation.newBuilder() @@ -298,6 +304,12 @@ public void createStoragePoolTest2() throws Exception { .setCustomPerformanceEnabled(true) .setTotalThroughputMibps(-2085075953) .setTotalIops(-705711676) + .setHotTierSizeGib(369881037) + .setEnableHotTierAutoResize(true) + .setQosType(QosType.forNumber(0)) + .setAvailableThroughputMibps(1487662890) + .setColdTierSizeUsedGib(-1242809254) + .setHotTierSizeUsedGib(-151116719) .build(); Operation resultOperation = Operation.newBuilder() @@ -375,6 +387,12 @@ public void getStoragePoolTest() throws Exception { .setCustomPerformanceEnabled(true) .setTotalThroughputMibps(-2085075953) .setTotalIops(-705711676) + .setHotTierSizeGib(369881037) + .setEnableHotTierAutoResize(true) + .setQosType(QosType.forNumber(0)) + .setAvailableThroughputMibps(1487662890) + .setColdTierSizeUsedGib(-1242809254) + .setHotTierSizeUsedGib(-151116719) .build(); mockNetApp.addResponse(expectedResponse); @@ -437,6 +455,12 @@ public void getStoragePoolTest2() throws Exception { .setCustomPerformanceEnabled(true) .setTotalThroughputMibps(-2085075953) .setTotalIops(-705711676) + .setHotTierSizeGib(369881037) + .setEnableHotTierAutoResize(true) + .setQosType(QosType.forNumber(0)) + .setAvailableThroughputMibps(1487662890) + .setColdTierSizeUsedGib(-1242809254) + .setHotTierSizeUsedGib(-151116719) .build(); mockNetApp.addResponse(expectedResponse); @@ -499,6 +523,12 @@ public void updateStoragePoolTest() throws Exception { .setCustomPerformanceEnabled(true) .setTotalThroughputMibps(-2085075953) .setTotalIops(-705711676) + .setHotTierSizeGib(369881037) + .setEnableHotTierAutoResize(true) + .setQosType(QosType.forNumber(0)) + .setAvailableThroughputMibps(1487662890) + .setColdTierSizeUsedGib(-1242809254) + .setHotTierSizeUsedGib(-151116719) .build(); Operation resultOperation = Operation.newBuilder() @@ -708,6 +738,12 @@ public void switchActiveReplicaZoneTest() throws Exception { .setCustomPerformanceEnabled(true) .setTotalThroughputMibps(-2085075953) .setTotalIops(-705711676) + .setHotTierSizeGib(369881037) + .setEnableHotTierAutoResize(true) + .setQosType(QosType.forNumber(0)) + .setAvailableThroughputMibps(1487662890) + .setColdTierSizeUsedGib(-1242809254) + .setHotTierSizeUsedGib(-151116719) .build(); Operation resultOperation = Operation.newBuilder() @@ -887,6 +923,8 @@ public void getVolumeTest() throws Exception { .setZone("zone3744684") .setColdTierSizeGib(212809252) .setHybridReplicationParameters(HybridReplicationParameters.newBuilder().build()) + .setThroughputMibps(1498696820) + .setHotTierSizeUsedGib(-151116719) .build(); mockNetApp.addResponse(expectedResponse); @@ -963,6 +1001,8 @@ public void getVolumeTest2() throws Exception { .setZone("zone3744684") .setColdTierSizeGib(212809252) .setHybridReplicationParameters(HybridReplicationParameters.newBuilder().build()) + .setThroughputMibps(1498696820) + .setHotTierSizeUsedGib(-151116719) .build(); mockNetApp.addResponse(expectedResponse); @@ -1039,6 +1079,8 @@ public void createVolumeTest() throws Exception { .setZone("zone3744684") .setColdTierSizeGib(212809252) .setHybridReplicationParameters(HybridReplicationParameters.newBuilder().build()) + .setThroughputMibps(1498696820) + .setHotTierSizeUsedGib(-151116719) .build(); Operation resultOperation = Operation.newBuilder() @@ -1129,6 +1171,8 @@ public void createVolumeTest2() throws Exception { .setZone("zone3744684") .setColdTierSizeGib(212809252) .setHybridReplicationParameters(HybridReplicationParameters.newBuilder().build()) + .setThroughputMibps(1498696820) + .setHotTierSizeUsedGib(-151116719) .build(); Operation resultOperation = Operation.newBuilder() @@ -1219,6 +1263,8 @@ public void updateVolumeTest() throws Exception { .setZone("zone3744684") .setColdTierSizeGib(212809252) .setHybridReplicationParameters(HybridReplicationParameters.newBuilder().build()) + .setThroughputMibps(1498696820) + .setHotTierSizeUsedGib(-151116719) .build(); Operation resultOperation = Operation.newBuilder() @@ -1390,6 +1436,8 @@ public void revertVolumeTest() throws Exception { .setZone("zone3744684") .setColdTierSizeGib(212809252) .setHybridReplicationParameters(HybridReplicationParameters.newBuilder().build()) + .setThroughputMibps(1498696820) + .setHotTierSizeUsedGib(-151116719) .build(); Operation resultOperation = Operation.newBuilder() @@ -3038,6 +3086,7 @@ public void getReplicationTest() throws Exception { .setSourceVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) .setHybridPeeringDetails(HybridPeeringDetails.newBuilder().build()) .setClusterLocation("clusterLocation-732398641") + .setHybridReplicationUserCommands(UserCommands.newBuilder().build()) .build(); mockNetApp.addResponse(expectedResponse); @@ -3091,6 +3140,7 @@ public void getReplicationTest2() throws Exception { .setSourceVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) .setHybridPeeringDetails(HybridPeeringDetails.newBuilder().build()) .setClusterLocation("clusterLocation-732398641") + .setHybridReplicationUserCommands(UserCommands.newBuilder().build()) .build(); mockNetApp.addResponse(expectedResponse); @@ -3142,6 +3192,7 @@ public void createReplicationTest() throws Exception { .setSourceVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) .setHybridPeeringDetails(HybridPeeringDetails.newBuilder().build()) .setClusterLocation("clusterLocation-732398641") + .setHybridReplicationUserCommands(UserCommands.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -3208,6 +3259,7 @@ public void createReplicationTest2() throws Exception { .setSourceVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) .setHybridPeeringDetails(HybridPeeringDetails.newBuilder().build()) .setClusterLocation("clusterLocation-732398641") + .setHybridReplicationUserCommands(UserCommands.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -3360,6 +3412,7 @@ public void updateReplicationTest() throws Exception { .setSourceVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) .setHybridPeeringDetails(HybridPeeringDetails.newBuilder().build()) .setClusterLocation("clusterLocation-732398641") + .setHybridReplicationUserCommands(UserCommands.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -3422,6 +3475,7 @@ public void stopReplicationTest() throws Exception { .setSourceVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) .setHybridPeeringDetails(HybridPeeringDetails.newBuilder().build()) .setClusterLocation("clusterLocation-732398641") + .setHybridReplicationUserCommands(UserCommands.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -3494,6 +3548,7 @@ public void resumeReplicationTest() throws Exception { .setSourceVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) .setHybridPeeringDetails(HybridPeeringDetails.newBuilder().build()) .setClusterLocation("clusterLocation-732398641") + .setHybridReplicationUserCommands(UserCommands.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -3563,6 +3618,7 @@ public void reverseReplicationDirectionTest() throws Exception { .setSourceVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) .setHybridPeeringDetails(HybridPeeringDetails.newBuilder().build()) .setClusterLocation("clusterLocation-732398641") + .setHybridReplicationUserCommands(UserCommands.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -3633,6 +3689,7 @@ public void establishPeeringTest() throws Exception { .setSourceVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) .setHybridPeeringDetails(HybridPeeringDetails.newBuilder().build()) .setClusterLocation("clusterLocation-732398641") + .setHybridReplicationUserCommands(UserCommands.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -3714,6 +3771,7 @@ public void syncReplicationTest() throws Exception { .setSourceVolume(VolumeName.of("[PROJECT]", "[LOCATION]", "[VOLUME]").toString()) .setHybridPeeringDetails(HybridPeeringDetails.newBuilder().build()) .setClusterLocation("clusterLocation-732398641") + .setHybridReplicationUserCommands(UserCommands.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/BackupVault.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/BackupVault.java index d73f21bfb7a8..e4dfdbc782d8 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/BackupVault.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/BackupVault.java @@ -498,7 +498,7 @@ public interface BackupRetentionPolicyOrBuilder * *
          * Optional. Indicates if the daily backups are immutable.
    -     * Atleast one of daily_backup_immutable, weekly_backup_immutable,
    +     * At least one of daily_backup_immutable, weekly_backup_immutable,
          * monthly_backup_immutable and manual_backup_immutable must be true.
          * 
    * @@ -513,7 +513,7 @@ public interface BackupRetentionPolicyOrBuilder * *
          * Optional. Indicates if the weekly backups are immutable.
    -     * Atleast one of daily_backup_immutable, weekly_backup_immutable,
    +     * At least one of daily_backup_immutable, weekly_backup_immutable,
          * monthly_backup_immutable and manual_backup_immutable must be true.
          * 
    * @@ -528,7 +528,7 @@ public interface BackupRetentionPolicyOrBuilder * *
          * Optional. Indicates if the monthly backups are immutable.
    -     * Atleast one of daily_backup_immutable, weekly_backup_immutable,
    +     * At least one of daily_backup_immutable, weekly_backup_immutable,
          * monthly_backup_immutable and manual_backup_immutable must be true.
          * 
    * @@ -543,7 +543,7 @@ public interface BackupRetentionPolicyOrBuilder * *
          * Optional. Indicates if the manual backups are immutable.
    -     * Atleast one of daily_backup_immutable, weekly_backup_immutable,
    +     * At least one of daily_backup_immutable, weekly_backup_immutable,
          * monthly_backup_immutable and manual_backup_immutable must be true.
          * 
    * @@ -627,7 +627,7 @@ public int getBackupMinimumEnforcedRetentionDays() { * *
          * Optional. Indicates if the daily backups are immutable.
    -     * Atleast one of daily_backup_immutable, weekly_backup_immutable,
    +     * At least one of daily_backup_immutable, weekly_backup_immutable,
          * monthly_backup_immutable and manual_backup_immutable must be true.
          * 
    * @@ -648,7 +648,7 @@ public boolean getDailyBackupImmutable() { * *
          * Optional. Indicates if the weekly backups are immutable.
    -     * Atleast one of daily_backup_immutable, weekly_backup_immutable,
    +     * At least one of daily_backup_immutable, weekly_backup_immutable,
          * monthly_backup_immutable and manual_backup_immutable must be true.
          * 
    * @@ -669,7 +669,7 @@ public boolean getWeeklyBackupImmutable() { * *
          * Optional. Indicates if the monthly backups are immutable.
    -     * Atleast one of daily_backup_immutable, weekly_backup_immutable,
    +     * At least one of daily_backup_immutable, weekly_backup_immutable,
          * monthly_backup_immutable and manual_backup_immutable must be true.
          * 
    * @@ -690,7 +690,7 @@ public boolean getMonthlyBackupImmutable() { * *
          * Optional. Indicates if the manual backups are immutable.
    -     * Atleast one of daily_backup_immutable, weekly_backup_immutable,
    +     * At least one of daily_backup_immutable, weekly_backup_immutable,
          * monthly_backup_immutable and manual_backup_immutable must be true.
          * 
    * @@ -1215,7 +1215,7 @@ public Builder clearBackupMinimumEnforcedRetentionDays() { * *
            * Optional. Indicates if the daily backups are immutable.
    -       * Atleast one of daily_backup_immutable, weekly_backup_immutable,
    +       * At least one of daily_backup_immutable, weekly_backup_immutable,
            * monthly_backup_immutable and manual_backup_immutable must be true.
            * 
    * @@ -1233,7 +1233,7 @@ public boolean getDailyBackupImmutable() { * *
            * Optional. Indicates if the daily backups are immutable.
    -       * Atleast one of daily_backup_immutable, weekly_backup_immutable,
    +       * At least one of daily_backup_immutable, weekly_backup_immutable,
            * monthly_backup_immutable and manual_backup_immutable must be true.
            * 
    * @@ -1255,7 +1255,7 @@ public Builder setDailyBackupImmutable(boolean value) { * *
            * Optional. Indicates if the daily backups are immutable.
    -       * Atleast one of daily_backup_immutable, weekly_backup_immutable,
    +       * At least one of daily_backup_immutable, weekly_backup_immutable,
            * monthly_backup_immutable and manual_backup_immutable must be true.
            * 
    * @@ -1277,7 +1277,7 @@ public Builder clearDailyBackupImmutable() { * *
            * Optional. Indicates if the weekly backups are immutable.
    -       * Atleast one of daily_backup_immutable, weekly_backup_immutable,
    +       * At least one of daily_backup_immutable, weekly_backup_immutable,
            * monthly_backup_immutable and manual_backup_immutable must be true.
            * 
    * @@ -1295,7 +1295,7 @@ public boolean getWeeklyBackupImmutable() { * *
            * Optional. Indicates if the weekly backups are immutable.
    -       * Atleast one of daily_backup_immutable, weekly_backup_immutable,
    +       * At least one of daily_backup_immutable, weekly_backup_immutable,
            * monthly_backup_immutable and manual_backup_immutable must be true.
            * 
    * @@ -1317,7 +1317,7 @@ public Builder setWeeklyBackupImmutable(boolean value) { * *
            * Optional. Indicates if the weekly backups are immutable.
    -       * Atleast one of daily_backup_immutable, weekly_backup_immutable,
    +       * At least one of daily_backup_immutable, weekly_backup_immutable,
            * monthly_backup_immutable and manual_backup_immutable must be true.
            * 
    * @@ -1339,7 +1339,7 @@ public Builder clearWeeklyBackupImmutable() { * *
            * Optional. Indicates if the monthly backups are immutable.
    -       * Atleast one of daily_backup_immutable, weekly_backup_immutable,
    +       * At least one of daily_backup_immutable, weekly_backup_immutable,
            * monthly_backup_immutable and manual_backup_immutable must be true.
            * 
    * @@ -1357,7 +1357,7 @@ public boolean getMonthlyBackupImmutable() { * *
            * Optional. Indicates if the monthly backups are immutable.
    -       * Atleast one of daily_backup_immutable, weekly_backup_immutable,
    +       * At least one of daily_backup_immutable, weekly_backup_immutable,
            * monthly_backup_immutable and manual_backup_immutable must be true.
            * 
    * @@ -1379,7 +1379,7 @@ public Builder setMonthlyBackupImmutable(boolean value) { * *
            * Optional. Indicates if the monthly backups are immutable.
    -       * Atleast one of daily_backup_immutable, weekly_backup_immutable,
    +       * At least one of daily_backup_immutable, weekly_backup_immutable,
            * monthly_backup_immutable and manual_backup_immutable must be true.
            * 
    * @@ -1401,7 +1401,7 @@ public Builder clearMonthlyBackupImmutable() { * *
            * Optional. Indicates if the manual backups are immutable.
    -       * Atleast one of daily_backup_immutable, weekly_backup_immutable,
    +       * At least one of daily_backup_immutable, weekly_backup_immutable,
            * monthly_backup_immutable and manual_backup_immutable must be true.
            * 
    * @@ -1419,7 +1419,7 @@ public boolean getManualBackupImmutable() { * *
            * Optional. Indicates if the manual backups are immutable.
    -       * Atleast one of daily_backup_immutable, weekly_backup_immutable,
    +       * At least one of daily_backup_immutable, weekly_backup_immutable,
            * monthly_backup_immutable and manual_backup_immutable must be true.
            * 
    * @@ -1441,7 +1441,7 @@ public Builder setManualBackupImmutable(boolean value) { * *
            * Optional. Indicates if the manual backups are immutable.
    -       * Atleast one of daily_backup_immutable, weekly_backup_immutable,
    +       * At least one of daily_backup_immutable, weekly_backup_immutable,
            * monthly_backup_immutable and manual_backup_immutable must be true.
            * 
    * diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CommonProto.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CommonProto.java index 9f678b7cff0c..a946d8e18ac8 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CommonProto.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CommonProto.java @@ -32,6 +32,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_netapp_v1_LocationMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_netapp_v1_LocationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_netapp_v1_UserCommands_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_netapp_v1_UserCommands_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -41,35 +45,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n" - + "#google/cloud/netapp/v1/common.proto\022\026g" - + "oogle.cloud.netapp.v1\032\037google/api/field_behavior.proto\"\261\001\n" - + "\020LocationMetadata\022K\n" - + "\030supported_service_levels\030\001" - + " \003(\0162$.google.cloud.netapp.v1.ServiceLevelB\003\340A\003\022P\n" - + "\032supported_flex_performance\030\002" - + " \003(\0162\'.google.cloud.netapp.v1.FlexPerformanceB\003\340A\003*_\n" - + "\014ServiceLevel\022\035\n" - + "\031SERVICE_LEVEL_UNSPECIFIED\020\000\022\013\n" - + "\007PREMIUM\020\001\022\013\n" - + "\007EXTREME\020\002\022\014\n" - + "\010STANDARD\020\003\022\010\n" - + "\004FLEX\020\004*n\n" - + "\017FlexPerformance\022 \n" - + "\034FLEX_PERFORMANCE_UNSPECIFIED\020\000\022\034\n" - + "\030FLEX_PERFORMANCE_DEFAULT\020\001\022\033\n" - + "\027FLEX_PERFORMANCE_CUSTOM\020\002*U\n" - + "\016EncryptionType\022\037\n" - + "\033ENCRYPTION_TYPE_UNSPECIFIED\020\000\022\023\n" - + "\017SERVICE_MANAGED\020\001\022\r\n" - + "\tCLOUD_KMS\020\002*T\n" - + "\024DirectoryServiceType\022&\n" - + "\"DIRECTORY_SERVICE_TYPE_UNSPECIFIED\020\000\022\024\n" - + "\020ACTIVE_DIRECTORY\020\001B\255\001\n" - + "\032com.google.cloud.netapp.v1B\013CommonProtoP\001Z2cloud.google.com" - + "/go/netapp/apiv1/netapppb;netapppb\252\002\026Goo" - + "gle.Cloud.NetApp.V1\312\002\026Google\\Cloud\\NetAp" - + "p\\V1\352\002\031Google::Cloud::NetApp::V1b\006proto3" + "\n#google/cloud/netapp/v1/common.proto\022\026g" + + "oogle.cloud.netapp.v1\032\037google/api/field_" + + "behavior.proto\"\307\001\n\020LocationMetadata\022K\n\030s" + + "upported_service_levels\030\001 \003(\0162$.google.c" + + "loud.netapp.v1.ServiceLevelB\003\340A\003\022P\n\032supp" + + "orted_flex_performance\030\002 \003(\0162\'.google.cl" + + "oud.netapp.v1.FlexPerformanceB\003\340A\003\022\024\n\007ha" + + "s_vcp\030\003 \001(\010B\003\340A\003\"%\n\014UserCommands\022\025\n\010comm" + + "ands\030\001 \003(\tB\003\340A\003*_\n\014ServiceLevel\022\035\n\031SERVI" + + "CE_LEVEL_UNSPECIFIED\020\000\022\013\n\007PREMIUM\020\001\022\013\n\007E" + + "XTREME\020\002\022\014\n\010STANDARD\020\003\022\010\n\004FLEX\020\004*n\n\017Flex" + + "Performance\022 \n\034FLEX_PERFORMANCE_UNSPECIF" + + "IED\020\000\022\034\n\030FLEX_PERFORMANCE_DEFAULT\020\001\022\033\n\027F" + + "LEX_PERFORMANCE_CUSTOM\020\002*U\n\016EncryptionTy" + + "pe\022\037\n\033ENCRYPTION_TYPE_UNSPECIFIED\020\000\022\023\n\017S" + + "ERVICE_MANAGED\020\001\022\r\n\tCLOUD_KMS\020\002*T\n\024Direc" + + "toryServiceType\022&\n\"DIRECTORY_SERVICE_TYP" + + "E_UNSPECIFIED\020\000\022\024\n\020ACTIVE_DIRECTORY\020\001*u\n" + + "\031HybridReplicationSchedule\022+\n\'HYBRID_REP" + + "LICATION_SCHEDULE_UNSPECIFIED\020\000\022\024\n\020EVERY" + + "_10_MINUTES\020\001\022\n\n\006HOURLY\020\002\022\t\n\005DAILY\020\003*9\n\007" + + "QosType\022\030\n\024QOS_TYPE_UNSPECIFIED\020\000\022\010\n\004AUT" + + "O\020\001\022\n\n\006MANUAL\020\002B\255\001\n\032com.google.cloud.net" + + "app.v1B\013CommonProtoP\001Z2cloud.google.com/" + + "go/netapp/apiv1/netapppb;netapppb\252\002\026Goog" + + "le.Cloud.NetApp.V1\312\002\026Google\\Cloud\\NetApp" + + "\\V1\352\002\031Google::Cloud::NetApp::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -83,7 +85,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_netapp_v1_LocationMetadata_descriptor, new java.lang.String[] { - "SupportedServiceLevels", "SupportedFlexPerformance", + "SupportedServiceLevels", "SupportedFlexPerformance", "HasVcp", + }); + internal_static_google_cloud_netapp_v1_UserCommands_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_netapp_v1_UserCommands_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_netapp_v1_UserCommands_descriptor, + new java.lang.String[] { + "Commands", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/HybridPeeringDetails.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/HybridPeeringDetails.java index 0d1d00f93b4e..ca33151b7bdb 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/HybridPeeringDetails.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/HybridPeeringDetails.java @@ -79,10 +79,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * Optional. IP address of the subnet.
    +   * Output only. IP address of the subnet.
        * 
    * - * string subnet_ip = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string subnet_ip = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The subnetIp. */ @@ -103,10 +103,10 @@ public java.lang.String getSubnetIp() { * * *
    -   * Optional. IP address of the subnet.
    +   * Output only. IP address of the subnet.
        * 
    * - * string subnet_ip = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string subnet_ip = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for subnetIp. */ @@ -132,11 +132,11 @@ public com.google.protobuf.ByteString getSubnetIpBytes() { * * *
    -   * Optional. Copy-paste-able commands to be used on user's ONTAP to accept
    +   * Output only. Copy-paste-able commands to be used on user's ONTAP to accept
        * peering requests.
        * 
    * - * string command = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string command = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The command. */ @@ -157,11 +157,11 @@ public java.lang.String getCommand() { * * *
    -   * Optional. Copy-paste-able commands to be used on user's ONTAP to accept
    +   * Output only. Copy-paste-able commands to be used on user's ONTAP to accept
        * peering requests.
        * 
    * - * string command = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string command = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for command. */ @@ -185,12 +185,12 @@ public com.google.protobuf.ByteString getCommandBytes() { * * *
    -   * Optional. Expiration time for the peering command to be executed on user's
    -   * ONTAP.
    +   * Output only. Expiration time for the peering command to be executed on
    +   * user's ONTAP.
        * 
    * * - * .google.protobuf.Timestamp command_expiry_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp command_expiry_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the commandExpiryTime field is set. @@ -204,12 +204,12 @@ public boolean hasCommandExpiryTime() { * * *
    -   * Optional. Expiration time for the peering command to be executed on user's
    -   * ONTAP.
    +   * Output only. Expiration time for the peering command to be executed on
    +   * user's ONTAP.
        * 
    * * - * .google.protobuf.Timestamp command_expiry_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp command_expiry_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The commandExpiryTime. @@ -225,12 +225,12 @@ public com.google.protobuf.Timestamp getCommandExpiryTime() { * * *
    -   * Optional. Expiration time for the peering command to be executed on user's
    -   * ONTAP.
    +   * Output only. Expiration time for the peering command to be executed on
    +   * user's ONTAP.
        * 
    * * - * .google.protobuf.Timestamp command_expiry_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp command_expiry_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override @@ -249,10 +249,11 @@ public com.google.protobuf.TimestampOrBuilder getCommandExpiryTimeOrBuilder() { * * *
    -   * Optional. Temporary passphrase generated to accept cluster peering command.
    +   * Output only. Temporary passphrase generated to accept cluster peering
    +   * command.
        * 
    * - * string passphrase = 4 [(.google.api.field_behavior) = OPTIONAL]; + * string passphrase = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The passphrase. */ @@ -273,10 +274,11 @@ public java.lang.String getPassphrase() { * * *
    -   * Optional. Temporary passphrase generated to accept cluster peering command.
    +   * Output only. Temporary passphrase generated to accept cluster peering
    +   * command.
        * 
    * - * string passphrase = 4 [(.google.api.field_behavior) = OPTIONAL]; + * string passphrase = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for passphrase. */ @@ -302,11 +304,11 @@ public com.google.protobuf.ByteString getPassphraseBytes() { * * *
    -   * Optional. Name of the user's local source volume to be peered with the
    +   * Output only. Name of the user's local source volume to be peered with the
        * destination volume.
        * 
    * - * string peer_volume_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * string peer_volume_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The peerVolumeName. */ @@ -327,11 +329,11 @@ public java.lang.String getPeerVolumeName() { * * *
    -   * Optional. Name of the user's local source volume to be peered with the
    +   * Output only. Name of the user's local source volume to be peered with the
        * destination volume.
        * 
    * - * string peer_volume_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * string peer_volume_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for peerVolumeName. */ @@ -357,11 +359,11 @@ public com.google.protobuf.ByteString getPeerVolumeNameBytes() { * * *
    -   * Optional. Name of the user's local source cluster to be peered with the
    +   * Output only. Name of the user's local source cluster to be peered with the
        * destination cluster.
        * 
    * - * string peer_cluster_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * string peer_cluster_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The peerClusterName. */ @@ -382,11 +384,11 @@ public java.lang.String getPeerClusterName() { * * *
    -   * Optional. Name of the user's local source cluster to be peered with the
    +   * Output only. Name of the user's local source cluster to be peered with the
        * destination cluster.
        * 
    * - * string peer_cluster_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * string peer_cluster_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for peerClusterName. */ @@ -412,11 +414,11 @@ public com.google.protobuf.ByteString getPeerClusterNameBytes() { * * *
    -   * Optional. Name of the user's local source vserver svm to be peered with the
    -   * destination vserver svm.
    +   * Output only. Name of the user's local source vserver svm to be peered with
    +   * the destination vserver svm.
        * 
    * - * string peer_svm_name = 7 [(.google.api.field_behavior) = OPTIONAL]; + * string peer_svm_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The peerSvmName. */ @@ -437,11 +439,11 @@ public java.lang.String getPeerSvmName() { * * *
    -   * Optional. Name of the user's local source vserver svm to be peered with the
    -   * destination vserver svm.
    +   * Output only. Name of the user's local source vserver svm to be peered with
    +   * the destination vserver svm.
        * 
    * - * string peer_svm_name = 7 [(.google.api.field_behavior) = OPTIONAL]; + * string peer_svm_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for peerSvmName. */ @@ -974,10 +976,10 @@ public Builder mergeFrom( * * *
    -     * Optional. IP address of the subnet.
    +     * Output only. IP address of the subnet.
          * 
    * - * string subnet_ip = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string subnet_ip = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The subnetIp. */ @@ -997,10 +999,10 @@ public java.lang.String getSubnetIp() { * * *
    -     * Optional. IP address of the subnet.
    +     * Output only. IP address of the subnet.
          * 
    * - * string subnet_ip = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string subnet_ip = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for subnetIp. */ @@ -1020,10 +1022,10 @@ public com.google.protobuf.ByteString getSubnetIpBytes() { * * *
    -     * Optional. IP address of the subnet.
    +     * Output only. IP address of the subnet.
          * 
    * - * string subnet_ip = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string subnet_ip = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The subnetIp to set. * @return This builder for chaining. @@ -1042,10 +1044,10 @@ public Builder setSubnetIp(java.lang.String value) { * * *
    -     * Optional. IP address of the subnet.
    +     * Output only. IP address of the subnet.
          * 
    * - * string subnet_ip = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string subnet_ip = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -1060,10 +1062,10 @@ public Builder clearSubnetIp() { * * *
    -     * Optional. IP address of the subnet.
    +     * Output only. IP address of the subnet.
          * 
    * - * string subnet_ip = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string subnet_ip = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for subnetIp to set. * @return This builder for chaining. @@ -1085,11 +1087,11 @@ public Builder setSubnetIpBytes(com.google.protobuf.ByteString value) { * * *
    -     * Optional. Copy-paste-able commands to be used on user's ONTAP to accept
    +     * Output only. Copy-paste-able commands to be used on user's ONTAP to accept
          * peering requests.
          * 
    * - * string command = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string command = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The command. */ @@ -1109,11 +1111,11 @@ public java.lang.String getCommand() { * * *
    -     * Optional. Copy-paste-able commands to be used on user's ONTAP to accept
    +     * Output only. Copy-paste-able commands to be used on user's ONTAP to accept
          * peering requests.
          * 
    * - * string command = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string command = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for command. */ @@ -1133,11 +1135,11 @@ public com.google.protobuf.ByteString getCommandBytes() { * * *
    -     * Optional. Copy-paste-able commands to be used on user's ONTAP to accept
    +     * Output only. Copy-paste-able commands to be used on user's ONTAP to accept
          * peering requests.
          * 
    * - * string command = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string command = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The command to set. * @return This builder for chaining. @@ -1156,11 +1158,11 @@ public Builder setCommand(java.lang.String value) { * * *
    -     * Optional. Copy-paste-able commands to be used on user's ONTAP to accept
    +     * Output only. Copy-paste-able commands to be used on user's ONTAP to accept
          * peering requests.
          * 
    * - * string command = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string command = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -1175,11 +1177,11 @@ public Builder clearCommand() { * * *
    -     * Optional. Copy-paste-able commands to be used on user's ONTAP to accept
    +     * Output only. Copy-paste-able commands to be used on user's ONTAP to accept
          * peering requests.
          * 
    * - * string command = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string command = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for command to set. * @return This builder for chaining. @@ -1206,12 +1208,12 @@ public Builder setCommandBytes(com.google.protobuf.ByteString value) { * * *
    -     * Optional. Expiration time for the peering command to be executed on user's
    -     * ONTAP.
    +     * Output only. Expiration time for the peering command to be executed on
    +     * user's ONTAP.
          * 
    * * - * .google.protobuf.Timestamp command_expiry_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp command_expiry_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the commandExpiryTime field is set. @@ -1224,12 +1226,12 @@ public boolean hasCommandExpiryTime() { * * *
    -     * Optional. Expiration time for the peering command to be executed on user's
    -     * ONTAP.
    +     * Output only. Expiration time for the peering command to be executed on
    +     * user's ONTAP.
          * 
    * * - * .google.protobuf.Timestamp command_expiry_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp command_expiry_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The commandExpiryTime. @@ -1248,12 +1250,12 @@ public com.google.protobuf.Timestamp getCommandExpiryTime() { * * *
    -     * Optional. Expiration time for the peering command to be executed on user's
    -     * ONTAP.
    +     * Output only. Expiration time for the peering command to be executed on
    +     * user's ONTAP.
          * 
    * * - * .google.protobuf.Timestamp command_expiry_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp command_expiry_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setCommandExpiryTime(com.google.protobuf.Timestamp value) { @@ -1274,12 +1276,12 @@ public Builder setCommandExpiryTime(com.google.protobuf.Timestamp value) { * * *
    -     * Optional. Expiration time for the peering command to be executed on user's
    -     * ONTAP.
    +     * Output only. Expiration time for the peering command to be executed on
    +     * user's ONTAP.
          * 
    * * - * .google.protobuf.Timestamp command_expiry_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp command_expiry_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setCommandExpiryTime(com.google.protobuf.Timestamp.Builder builderForValue) { @@ -1297,12 +1299,12 @@ public Builder setCommandExpiryTime(com.google.protobuf.Timestamp.Builder builde * * *
    -     * Optional. Expiration time for the peering command to be executed on user's
    -     * ONTAP.
    +     * Output only. Expiration time for the peering command to be executed on
    +     * user's ONTAP.
          * 
    * * - * .google.protobuf.Timestamp command_expiry_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp command_expiry_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeCommandExpiryTime(com.google.protobuf.Timestamp value) { @@ -1328,12 +1330,12 @@ public Builder mergeCommandExpiryTime(com.google.protobuf.Timestamp value) { * * *
    -     * Optional. Expiration time for the peering command to be executed on user's
    -     * ONTAP.
    +     * Output only. Expiration time for the peering command to be executed on
    +     * user's ONTAP.
          * 
    * * - * .google.protobuf.Timestamp command_expiry_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp command_expiry_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearCommandExpiryTime() { @@ -1351,12 +1353,12 @@ public Builder clearCommandExpiryTime() { * * *
    -     * Optional. Expiration time for the peering command to be executed on user's
    -     * ONTAP.
    +     * Output only. Expiration time for the peering command to be executed on
    +     * user's ONTAP.
          * 
    * * - * .google.protobuf.Timestamp command_expiry_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp command_expiry_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.Timestamp.Builder getCommandExpiryTimeBuilder() { @@ -1369,12 +1371,12 @@ public com.google.protobuf.Timestamp.Builder getCommandExpiryTimeBuilder() { * * *
    -     * Optional. Expiration time for the peering command to be executed on user's
    -     * ONTAP.
    +     * Output only. Expiration time for the peering command to be executed on
    +     * user's ONTAP.
          * 
    * * - * .google.protobuf.Timestamp command_expiry_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp command_expiry_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.TimestampOrBuilder getCommandExpiryTimeOrBuilder() { @@ -1391,12 +1393,12 @@ public com.google.protobuf.TimestampOrBuilder getCommandExpiryTimeOrBuilder() { * * *
    -     * Optional. Expiration time for the peering command to be executed on user's
    -     * ONTAP.
    +     * Output only. Expiration time for the peering command to be executed on
    +     * user's ONTAP.
          * 
    * * - * .google.protobuf.Timestamp command_expiry_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp command_expiry_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< @@ -1422,10 +1424,11 @@ public com.google.protobuf.TimestampOrBuilder getCommandExpiryTimeOrBuilder() { * * *
    -     * Optional. Temporary passphrase generated to accept cluster peering command.
    +     * Output only. Temporary passphrase generated to accept cluster peering
    +     * command.
          * 
    * - * string passphrase = 4 [(.google.api.field_behavior) = OPTIONAL]; + * string passphrase = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The passphrase. */ @@ -1445,10 +1448,11 @@ public java.lang.String getPassphrase() { * * *
    -     * Optional. Temporary passphrase generated to accept cluster peering command.
    +     * Output only. Temporary passphrase generated to accept cluster peering
    +     * command.
          * 
    * - * string passphrase = 4 [(.google.api.field_behavior) = OPTIONAL]; + * string passphrase = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for passphrase. */ @@ -1468,10 +1472,11 @@ public com.google.protobuf.ByteString getPassphraseBytes() { * * *
    -     * Optional. Temporary passphrase generated to accept cluster peering command.
    +     * Output only. Temporary passphrase generated to accept cluster peering
    +     * command.
          * 
    * - * string passphrase = 4 [(.google.api.field_behavior) = OPTIONAL]; + * string passphrase = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The passphrase to set. * @return This builder for chaining. @@ -1490,10 +1495,11 @@ public Builder setPassphrase(java.lang.String value) { * * *
    -     * Optional. Temporary passphrase generated to accept cluster peering command.
    +     * Output only. Temporary passphrase generated to accept cluster peering
    +     * command.
          * 
    * - * string passphrase = 4 [(.google.api.field_behavior) = OPTIONAL]; + * string passphrase = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -1508,10 +1514,11 @@ public Builder clearPassphrase() { * * *
    -     * Optional. Temporary passphrase generated to accept cluster peering command.
    +     * Output only. Temporary passphrase generated to accept cluster peering
    +     * command.
          * 
    * - * string passphrase = 4 [(.google.api.field_behavior) = OPTIONAL]; + * string passphrase = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for passphrase to set. * @return This builder for chaining. @@ -1533,11 +1540,11 @@ public Builder setPassphraseBytes(com.google.protobuf.ByteString value) { * * *
    -     * Optional. Name of the user's local source volume to be peered with the
    +     * Output only. Name of the user's local source volume to be peered with the
          * destination volume.
          * 
    * - * string peer_volume_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * string peer_volume_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The peerVolumeName. */ @@ -1557,11 +1564,11 @@ public java.lang.String getPeerVolumeName() { * * *
    -     * Optional. Name of the user's local source volume to be peered with the
    +     * Output only. Name of the user's local source volume to be peered with the
          * destination volume.
          * 
    * - * string peer_volume_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * string peer_volume_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for peerVolumeName. */ @@ -1581,11 +1588,11 @@ public com.google.protobuf.ByteString getPeerVolumeNameBytes() { * * *
    -     * Optional. Name of the user's local source volume to be peered with the
    +     * Output only. Name of the user's local source volume to be peered with the
          * destination volume.
          * 
    * - * string peer_volume_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * string peer_volume_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The peerVolumeName to set. * @return This builder for chaining. @@ -1604,11 +1611,11 @@ public Builder setPeerVolumeName(java.lang.String value) { * * *
    -     * Optional. Name of the user's local source volume to be peered with the
    +     * Output only. Name of the user's local source volume to be peered with the
          * destination volume.
          * 
    * - * string peer_volume_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * string peer_volume_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -1623,11 +1630,11 @@ public Builder clearPeerVolumeName() { * * *
    -     * Optional. Name of the user's local source volume to be peered with the
    +     * Output only. Name of the user's local source volume to be peered with the
          * destination volume.
          * 
    * - * string peer_volume_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * string peer_volume_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for peerVolumeName to set. * @return This builder for chaining. @@ -1649,11 +1656,11 @@ public Builder setPeerVolumeNameBytes(com.google.protobuf.ByteString value) { * * *
    -     * Optional. Name of the user's local source cluster to be peered with the
    +     * Output only. Name of the user's local source cluster to be peered with the
          * destination cluster.
          * 
    * - * string peer_cluster_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * string peer_cluster_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The peerClusterName. */ @@ -1673,11 +1680,11 @@ public java.lang.String getPeerClusterName() { * * *
    -     * Optional. Name of the user's local source cluster to be peered with the
    +     * Output only. Name of the user's local source cluster to be peered with the
          * destination cluster.
          * 
    * - * string peer_cluster_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * string peer_cluster_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for peerClusterName. */ @@ -1697,11 +1704,11 @@ public com.google.protobuf.ByteString getPeerClusterNameBytes() { * * *
    -     * Optional. Name of the user's local source cluster to be peered with the
    +     * Output only. Name of the user's local source cluster to be peered with the
          * destination cluster.
          * 
    * - * string peer_cluster_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * string peer_cluster_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The peerClusterName to set. * @return This builder for chaining. @@ -1720,11 +1727,11 @@ public Builder setPeerClusterName(java.lang.String value) { * * *
    -     * Optional. Name of the user's local source cluster to be peered with the
    +     * Output only. Name of the user's local source cluster to be peered with the
          * destination cluster.
          * 
    * - * string peer_cluster_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * string peer_cluster_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -1739,11 +1746,11 @@ public Builder clearPeerClusterName() { * * *
    -     * Optional. Name of the user's local source cluster to be peered with the
    +     * Output only. Name of the user's local source cluster to be peered with the
          * destination cluster.
          * 
    * - * string peer_cluster_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * string peer_cluster_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for peerClusterName to set. * @return This builder for chaining. @@ -1765,11 +1772,11 @@ public Builder setPeerClusterNameBytes(com.google.protobuf.ByteString value) { * * *
    -     * Optional. Name of the user's local source vserver svm to be peered with the
    -     * destination vserver svm.
    +     * Output only. Name of the user's local source vserver svm to be peered with
    +     * the destination vserver svm.
          * 
    * - * string peer_svm_name = 7 [(.google.api.field_behavior) = OPTIONAL]; + * string peer_svm_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The peerSvmName. */ @@ -1789,11 +1796,11 @@ public java.lang.String getPeerSvmName() { * * *
    -     * Optional. Name of the user's local source vserver svm to be peered with the
    -     * destination vserver svm.
    +     * Output only. Name of the user's local source vserver svm to be peered with
    +     * the destination vserver svm.
          * 
    * - * string peer_svm_name = 7 [(.google.api.field_behavior) = OPTIONAL]; + * string peer_svm_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for peerSvmName. */ @@ -1813,11 +1820,11 @@ public com.google.protobuf.ByteString getPeerSvmNameBytes() { * * *
    -     * Optional. Name of the user's local source vserver svm to be peered with the
    -     * destination vserver svm.
    +     * Output only. Name of the user's local source vserver svm to be peered with
    +     * the destination vserver svm.
          * 
    * - * string peer_svm_name = 7 [(.google.api.field_behavior) = OPTIONAL]; + * string peer_svm_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The peerSvmName to set. * @return This builder for chaining. @@ -1836,11 +1843,11 @@ public Builder setPeerSvmName(java.lang.String value) { * * *
    -     * Optional. Name of the user's local source vserver svm to be peered with the
    -     * destination vserver svm.
    +     * Output only. Name of the user's local source vserver svm to be peered with
    +     * the destination vserver svm.
          * 
    * - * string peer_svm_name = 7 [(.google.api.field_behavior) = OPTIONAL]; + * string peer_svm_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -1855,11 +1862,11 @@ public Builder clearPeerSvmName() { * * *
    -     * Optional. Name of the user's local source vserver svm to be peered with the
    -     * destination vserver svm.
    +     * Output only. Name of the user's local source vserver svm to be peered with
    +     * the destination vserver svm.
          * 
    * - * string peer_svm_name = 7 [(.google.api.field_behavior) = OPTIONAL]; + * string peer_svm_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for peerSvmName to set. * @return This builder for chaining. diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/HybridPeeringDetailsOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/HybridPeeringDetailsOrBuilder.java index e58903ae20b3..fa627a96a98a 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/HybridPeeringDetailsOrBuilder.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/HybridPeeringDetailsOrBuilder.java @@ -28,10 +28,10 @@ public interface HybridPeeringDetailsOrBuilder * * *
    -   * Optional. IP address of the subnet.
    +   * Output only. IP address of the subnet.
        * 
    * - * string subnet_ip = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string subnet_ip = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The subnetIp. */ @@ -41,10 +41,10 @@ public interface HybridPeeringDetailsOrBuilder * * *
    -   * Optional. IP address of the subnet.
    +   * Output only. IP address of the subnet.
        * 
    * - * string subnet_ip = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string subnet_ip = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for subnetIp. */ @@ -54,11 +54,11 @@ public interface HybridPeeringDetailsOrBuilder * * *
    -   * Optional. Copy-paste-able commands to be used on user's ONTAP to accept
    +   * Output only. Copy-paste-able commands to be used on user's ONTAP to accept
        * peering requests.
        * 
    * - * string command = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string command = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The command. */ @@ -68,11 +68,11 @@ public interface HybridPeeringDetailsOrBuilder * * *
    -   * Optional. Copy-paste-able commands to be used on user's ONTAP to accept
    +   * Output only. Copy-paste-able commands to be used on user's ONTAP to accept
        * peering requests.
        * 
    * - * string command = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string command = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for command. */ @@ -82,12 +82,12 @@ public interface HybridPeeringDetailsOrBuilder * * *
    -   * Optional. Expiration time for the peering command to be executed on user's
    -   * ONTAP.
    +   * Output only. Expiration time for the peering command to be executed on
    +   * user's ONTAP.
        * 
    * * - * .google.protobuf.Timestamp command_expiry_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp command_expiry_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the commandExpiryTime field is set. @@ -98,12 +98,12 @@ public interface HybridPeeringDetailsOrBuilder * * *
    -   * Optional. Expiration time for the peering command to be executed on user's
    -   * ONTAP.
    +   * Output only. Expiration time for the peering command to be executed on
    +   * user's ONTAP.
        * 
    * * - * .google.protobuf.Timestamp command_expiry_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp command_expiry_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The commandExpiryTime. @@ -114,12 +114,12 @@ public interface HybridPeeringDetailsOrBuilder * * *
    -   * Optional. Expiration time for the peering command to be executed on user's
    -   * ONTAP.
    +   * Output only. Expiration time for the peering command to be executed on
    +   * user's ONTAP.
        * 
    * * - * .google.protobuf.Timestamp command_expiry_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp command_expiry_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ com.google.protobuf.TimestampOrBuilder getCommandExpiryTimeOrBuilder(); @@ -128,10 +128,11 @@ public interface HybridPeeringDetailsOrBuilder * * *
    -   * Optional. Temporary passphrase generated to accept cluster peering command.
    +   * Output only. Temporary passphrase generated to accept cluster peering
    +   * command.
        * 
    * - * string passphrase = 4 [(.google.api.field_behavior) = OPTIONAL]; + * string passphrase = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The passphrase. */ @@ -141,10 +142,11 @@ public interface HybridPeeringDetailsOrBuilder * * *
    -   * Optional. Temporary passphrase generated to accept cluster peering command.
    +   * Output only. Temporary passphrase generated to accept cluster peering
    +   * command.
        * 
    * - * string passphrase = 4 [(.google.api.field_behavior) = OPTIONAL]; + * string passphrase = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for passphrase. */ @@ -154,11 +156,11 @@ public interface HybridPeeringDetailsOrBuilder * * *
    -   * Optional. Name of the user's local source volume to be peered with the
    +   * Output only. Name of the user's local source volume to be peered with the
        * destination volume.
        * 
    * - * string peer_volume_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * string peer_volume_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The peerVolumeName. */ @@ -168,11 +170,11 @@ public interface HybridPeeringDetailsOrBuilder * * *
    -   * Optional. Name of the user's local source volume to be peered with the
    +   * Output only. Name of the user's local source volume to be peered with the
        * destination volume.
        * 
    * - * string peer_volume_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * string peer_volume_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for peerVolumeName. */ @@ -182,11 +184,11 @@ public interface HybridPeeringDetailsOrBuilder * * *
    -   * Optional. Name of the user's local source cluster to be peered with the
    +   * Output only. Name of the user's local source cluster to be peered with the
        * destination cluster.
        * 
    * - * string peer_cluster_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * string peer_cluster_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The peerClusterName. */ @@ -196,11 +198,11 @@ public interface HybridPeeringDetailsOrBuilder * * *
    -   * Optional. Name of the user's local source cluster to be peered with the
    +   * Output only. Name of the user's local source cluster to be peered with the
        * destination cluster.
        * 
    * - * string peer_cluster_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * string peer_cluster_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for peerClusterName. */ @@ -210,11 +212,11 @@ public interface HybridPeeringDetailsOrBuilder * * *
    -   * Optional. Name of the user's local source vserver svm to be peered with the
    -   * destination vserver svm.
    +   * Output only. Name of the user's local source vserver svm to be peered with
    +   * the destination vserver svm.
        * 
    * - * string peer_svm_name = 7 [(.google.api.field_behavior) = OPTIONAL]; + * string peer_svm_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The peerSvmName. */ @@ -224,11 +226,11 @@ public interface HybridPeeringDetailsOrBuilder * * *
    -   * Optional. Name of the user's local source vserver svm to be peered with the
    -   * destination vserver svm.
    +   * Output only. Name of the user's local source vserver svm to be peered with
    +   * the destination vserver svm.
        * 
    * - * string peer_svm_name = 7 [(.google.api.field_behavior) = OPTIONAL]; + * string peer_svm_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for peerSvmName. */ diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/HybridReplicationParameters.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/HybridReplicationParameters.java index 0df59305801f..d5713eaf8cfa 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/HybridReplicationParameters.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/HybridReplicationParameters.java @@ -47,6 +47,8 @@ private HybridReplicationParameters() { peerIpAddresses_ = com.google.protobuf.LazyStringArrayList.emptyList(); clusterLocation_ = ""; description_ = ""; + replicationSchedule_ = 0; + hybridReplicationType_ = 0; } @java.lang.Override @@ -82,6 +84,221 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl com.google.cloud.netapp.v1.HybridReplicationParameters.Builder.class); } + /** + * + * + *
    +   * Type of the volume's hybrid replication.
    +   * 
    + * + * Protobuf enum {@code + * google.cloud.netapp.v1.HybridReplicationParameters.VolumeHybridReplicationType} + */ + public enum VolumeHybridReplicationType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Unspecified hybrid replication type.
    +     * 
    + * + * VOLUME_HYBRID_REPLICATION_TYPE_UNSPECIFIED = 0; + */ + VOLUME_HYBRID_REPLICATION_TYPE_UNSPECIFIED(0), + /** + * + * + *
    +     * Hybrid replication type for migration.
    +     * 
    + * + * MIGRATION = 1; + */ + MIGRATION(1), + /** + * + * + *
    +     * Hybrid replication type for continuous replication.
    +     * 
    + * + * CONTINUOUS_REPLICATION = 2; + */ + CONTINUOUS_REPLICATION(2), + /** + * + * + *
    +     * New field for reversible OnPrem replication, to be used for data
    +     * protection.
    +     * 
    + * + * ONPREM_REPLICATION = 3; + */ + ONPREM_REPLICATION(3), + /** + * + * + *
    +     * New field for reversible OnPrem replication, to be used for data
    +     * protection.
    +     * 
    + * + * REVERSE_ONPREM_REPLICATION = 4; + */ + REVERSE_ONPREM_REPLICATION(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * Unspecified hybrid replication type.
    +     * 
    + * + * VOLUME_HYBRID_REPLICATION_TYPE_UNSPECIFIED = 0; + */ + public static final int VOLUME_HYBRID_REPLICATION_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +     * Hybrid replication type for migration.
    +     * 
    + * + * MIGRATION = 1; + */ + public static final int MIGRATION_VALUE = 1; + + /** + * + * + *
    +     * Hybrid replication type for continuous replication.
    +     * 
    + * + * CONTINUOUS_REPLICATION = 2; + */ + public static final int CONTINUOUS_REPLICATION_VALUE = 2; + + /** + * + * + *
    +     * New field for reversible OnPrem replication, to be used for data
    +     * protection.
    +     * 
    + * + * ONPREM_REPLICATION = 3; + */ + public static final int ONPREM_REPLICATION_VALUE = 3; + + /** + * + * + *
    +     * New field for reversible OnPrem replication, to be used for data
    +     * protection.
    +     * 
    + * + * REVERSE_ONPREM_REPLICATION = 4; + */ + public static final int REVERSE_ONPREM_REPLICATION_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static VolumeHybridReplicationType 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 VolumeHybridReplicationType forNumber(int value) { + switch (value) { + case 0: + return VOLUME_HYBRID_REPLICATION_TYPE_UNSPECIFIED; + case 1: + return MIGRATION; + case 2: + return CONTINUOUS_REPLICATION; + case 3: + return ONPREM_REPLICATION; + case 4: + return REVERSE_ONPREM_REPLICATION; + 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 VolumeHybridReplicationType findValueByNumber(int number) { + return VolumeHybridReplicationType.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.netapp.v1.HybridReplicationParameters.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final VolumeHybridReplicationType[] VALUES = values(); + + public static VolumeHybridReplicationType 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 VolumeHybridReplicationType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.netapp.v1.HybridReplicationParameters.VolumeHybridReplicationType) + } + public static final int REPLICATION_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -587,6 +804,115 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { return map.get(key); } + public static final int REPLICATION_SCHEDULE_FIELD_NUMBER = 9; + private int replicationSchedule_ = 0; + + /** + * + * + *
    +   * Optional. Replication Schedule for the replication created.
    +   * 
    + * + * + * .google.cloud.netapp.v1.HybridReplicationSchedule replication_schedule = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for replicationSchedule. + */ + @java.lang.Override + public int getReplicationScheduleValue() { + return replicationSchedule_; + } + + /** + * + * + *
    +   * Optional. Replication Schedule for the replication created.
    +   * 
    + * + * + * .google.cloud.netapp.v1.HybridReplicationSchedule replication_schedule = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The replicationSchedule. + */ + @java.lang.Override + public com.google.cloud.netapp.v1.HybridReplicationSchedule getReplicationSchedule() { + com.google.cloud.netapp.v1.HybridReplicationSchedule result = + com.google.cloud.netapp.v1.HybridReplicationSchedule.forNumber(replicationSchedule_); + return result == null + ? com.google.cloud.netapp.v1.HybridReplicationSchedule.UNRECOGNIZED + : result; + } + + public static final int HYBRID_REPLICATION_TYPE_FIELD_NUMBER = 10; + private int hybridReplicationType_ = 0; + + /** + * + * + *
    +   * Optional. Type of the hybrid replication.
    +   * 
    + * + * + * .google.cloud.netapp.v1.HybridReplicationParameters.VolumeHybridReplicationType hybrid_replication_type = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for hybridReplicationType. + */ + @java.lang.Override + public int getHybridReplicationTypeValue() { + return hybridReplicationType_; + } + + /** + * + * + *
    +   * Optional. Type of the hybrid replication.
    +   * 
    + * + * + * .google.cloud.netapp.v1.HybridReplicationParameters.VolumeHybridReplicationType hybrid_replication_type = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The hybridReplicationType. + */ + @java.lang.Override + public com.google.cloud.netapp.v1.HybridReplicationParameters.VolumeHybridReplicationType + getHybridReplicationType() { + com.google.cloud.netapp.v1.HybridReplicationParameters.VolumeHybridReplicationType result = + com.google.cloud.netapp.v1.HybridReplicationParameters.VolumeHybridReplicationType + .forNumber(hybridReplicationType_); + return result == null + ? com.google.cloud.netapp.v1.HybridReplicationParameters.VolumeHybridReplicationType + .UNRECOGNIZED + : result; + } + + public static final int LARGE_VOLUME_CONSTITUENT_COUNT_FIELD_NUMBER = 11; + private int largeVolumeConstituentCount_ = 0; + + /** + * + * + *
    +   * Optional. Constituent volume count for large volume.
    +   * 
    + * + * int32 large_volume_constituent_count = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The largeVolumeConstituentCount. + */ + @java.lang.Override + public int getLargeVolumeConstituentCount() { + return largeVolumeConstituentCount_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -624,6 +950,21 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 8); + if (replicationSchedule_ + != com.google.cloud.netapp.v1.HybridReplicationSchedule + .HYBRID_REPLICATION_SCHEDULE_UNSPECIFIED + .getNumber()) { + output.writeEnum(9, replicationSchedule_); + } + if (hybridReplicationType_ + != com.google.cloud.netapp.v1.HybridReplicationParameters.VolumeHybridReplicationType + .VOLUME_HYBRID_REPLICATION_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(10, hybridReplicationType_); + } + if (largeVolumeConstituentCount_ != 0) { + output.writeInt32(11, largeVolumeConstituentCount_); + } getUnknownFields().writeTo(output); } @@ -669,6 +1010,22 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, labels__); } + if (replicationSchedule_ + != com.google.cloud.netapp.v1.HybridReplicationSchedule + .HYBRID_REPLICATION_SCHEDULE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, replicationSchedule_); + } + if (hybridReplicationType_ + != com.google.cloud.netapp.v1.HybridReplicationParameters.VolumeHybridReplicationType + .VOLUME_HYBRID_REPLICATION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, hybridReplicationType_); + } + if (largeVolumeConstituentCount_ != 0) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size(11, largeVolumeConstituentCount_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -693,6 +1050,9 @@ public boolean equals(final java.lang.Object obj) { if (!getClusterLocation().equals(other.getClusterLocation())) return false; if (!getDescription().equals(other.getDescription())) return false; if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (replicationSchedule_ != other.replicationSchedule_) return false; + if (hybridReplicationType_ != other.hybridReplicationType_) return false; + if (getLargeVolumeConstituentCount() != other.getLargeVolumeConstituentCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -724,6 +1084,12 @@ public int hashCode() { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } + hash = (37 * hash) + REPLICATION_SCHEDULE_FIELD_NUMBER; + hash = (53 * hash) + replicationSchedule_; + hash = (37 * hash) + HYBRID_REPLICATION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + hybridReplicationType_; + hash = (37 * hash) + LARGE_VOLUME_CONSTITUENT_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getLargeVolumeConstituentCount(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -895,6 +1261,9 @@ public Builder clear() { clusterLocation_ = ""; description_ = ""; internalGetMutableLabels().clear(); + replicationSchedule_ = 0; + hybridReplicationType_ = 0; + largeVolumeConstituentCount_ = 0; return this; } @@ -957,6 +1326,15 @@ private void buildPartial0(com.google.cloud.netapp.v1.HybridReplicationParameter result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.replicationSchedule_ = replicationSchedule_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.hybridReplicationType_ = hybridReplicationType_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.largeVolumeConstituentCount_ = largeVolumeConstituentCount_; + } } @java.lang.Override @@ -1047,6 +1425,15 @@ public Builder mergeFrom(com.google.cloud.netapp.v1.HybridReplicationParameters } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00000080; + if (other.replicationSchedule_ != 0) { + setReplicationScheduleValue(other.getReplicationScheduleValue()); + } + if (other.hybridReplicationType_ != 0) { + setHybridReplicationTypeValue(other.getHybridReplicationTypeValue()); + } + if (other.getLargeVolumeConstituentCount() != 0) { + setLargeVolumeConstituentCount(other.getLargeVolumeConstituentCount()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1128,6 +1515,24 @@ public Builder mergeFrom( bitField0_ |= 0x00000080; break; } // case 66 + case 72: + { + replicationSchedule_ = input.readEnum(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 80: + { + hybridReplicationType_ = input.readEnum(); + bitField0_ |= 0x00000200; + break; + } // case 80 + case 88: + { + largeVolumeConstituentCount_ = input.readInt32(); + bitField0_ |= 0x00000400; + break; + } // case 88 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2198,6 +2603,284 @@ public Builder putAllLabels(java.util.Map va return this; } + private int replicationSchedule_ = 0; + + /** + * + * + *
    +     * Optional. Replication Schedule for the replication created.
    +     * 
    + * + * + * .google.cloud.netapp.v1.HybridReplicationSchedule replication_schedule = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for replicationSchedule. + */ + @java.lang.Override + public int getReplicationScheduleValue() { + return replicationSchedule_; + } + + /** + * + * + *
    +     * Optional. Replication Schedule for the replication created.
    +     * 
    + * + * + * .google.cloud.netapp.v1.HybridReplicationSchedule replication_schedule = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for replicationSchedule to set. + * @return This builder for chaining. + */ + public Builder setReplicationScheduleValue(int value) { + replicationSchedule_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Replication Schedule for the replication created.
    +     * 
    + * + * + * .google.cloud.netapp.v1.HybridReplicationSchedule replication_schedule = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The replicationSchedule. + */ + @java.lang.Override + public com.google.cloud.netapp.v1.HybridReplicationSchedule getReplicationSchedule() { + com.google.cloud.netapp.v1.HybridReplicationSchedule result = + com.google.cloud.netapp.v1.HybridReplicationSchedule.forNumber(replicationSchedule_); + return result == null + ? com.google.cloud.netapp.v1.HybridReplicationSchedule.UNRECOGNIZED + : result; + } + + /** + * + * + *
    +     * Optional. Replication Schedule for the replication created.
    +     * 
    + * + * + * .google.cloud.netapp.v1.HybridReplicationSchedule replication_schedule = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The replicationSchedule to set. + * @return This builder for chaining. + */ + public Builder setReplicationSchedule( + com.google.cloud.netapp.v1.HybridReplicationSchedule value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000100; + replicationSchedule_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Replication Schedule for the replication created.
    +     * 
    + * + * + * .google.cloud.netapp.v1.HybridReplicationSchedule replication_schedule = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearReplicationSchedule() { + bitField0_ = (bitField0_ & ~0x00000100); + replicationSchedule_ = 0; + onChanged(); + return this; + } + + private int hybridReplicationType_ = 0; + + /** + * + * + *
    +     * Optional. Type of the hybrid replication.
    +     * 
    + * + * + * .google.cloud.netapp.v1.HybridReplicationParameters.VolumeHybridReplicationType hybrid_replication_type = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for hybridReplicationType. + */ + @java.lang.Override + public int getHybridReplicationTypeValue() { + return hybridReplicationType_; + } + + /** + * + * + *
    +     * Optional. Type of the hybrid replication.
    +     * 
    + * + * + * .google.cloud.netapp.v1.HybridReplicationParameters.VolumeHybridReplicationType hybrid_replication_type = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for hybridReplicationType to set. + * @return This builder for chaining. + */ + public Builder setHybridReplicationTypeValue(int value) { + hybridReplicationType_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Type of the hybrid replication.
    +     * 
    + * + * + * .google.cloud.netapp.v1.HybridReplicationParameters.VolumeHybridReplicationType hybrid_replication_type = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The hybridReplicationType. + */ + @java.lang.Override + public com.google.cloud.netapp.v1.HybridReplicationParameters.VolumeHybridReplicationType + getHybridReplicationType() { + com.google.cloud.netapp.v1.HybridReplicationParameters.VolumeHybridReplicationType result = + com.google.cloud.netapp.v1.HybridReplicationParameters.VolumeHybridReplicationType + .forNumber(hybridReplicationType_); + return result == null + ? com.google.cloud.netapp.v1.HybridReplicationParameters.VolumeHybridReplicationType + .UNRECOGNIZED + : result; + } + + /** + * + * + *
    +     * Optional. Type of the hybrid replication.
    +     * 
    + * + * + * .google.cloud.netapp.v1.HybridReplicationParameters.VolumeHybridReplicationType hybrid_replication_type = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The hybridReplicationType to set. + * @return This builder for chaining. + */ + public Builder setHybridReplicationType( + com.google.cloud.netapp.v1.HybridReplicationParameters.VolumeHybridReplicationType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000200; + hybridReplicationType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Type of the hybrid replication.
    +     * 
    + * + * + * .google.cloud.netapp.v1.HybridReplicationParameters.VolumeHybridReplicationType hybrid_replication_type = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearHybridReplicationType() { + bitField0_ = (bitField0_ & ~0x00000200); + hybridReplicationType_ = 0; + onChanged(); + return this; + } + + private int largeVolumeConstituentCount_; + + /** + * + * + *
    +     * Optional. Constituent volume count for large volume.
    +     * 
    + * + * int32 large_volume_constituent_count = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The largeVolumeConstituentCount. + */ + @java.lang.Override + public int getLargeVolumeConstituentCount() { + return largeVolumeConstituentCount_; + } + + /** + * + * + *
    +     * Optional. Constituent volume count for large volume.
    +     * 
    + * + * int32 large_volume_constituent_count = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The largeVolumeConstituentCount to set. + * @return This builder for chaining. + */ + public Builder setLargeVolumeConstituentCount(int value) { + + largeVolumeConstituentCount_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Constituent volume count for large volume.
    +     * 
    + * + * int32 large_volume_constituent_count = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearLargeVolumeConstituentCount() { + bitField0_ = (bitField0_ & ~0x00000400); + largeVolumeConstituentCount_ = 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-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/HybridReplicationParametersOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/HybridReplicationParametersOrBuilder.java index 3c935258db6d..34b658c3fcb7 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/HybridReplicationParametersOrBuilder.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/HybridReplicationParametersOrBuilder.java @@ -308,4 +308,79 @@ java.lang.String getLabelsOrDefault( * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; */ java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
    +   * Optional. Replication Schedule for the replication created.
    +   * 
    + * + * + * .google.cloud.netapp.v1.HybridReplicationSchedule replication_schedule = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for replicationSchedule. + */ + int getReplicationScheduleValue(); + + /** + * + * + *
    +   * Optional. Replication Schedule for the replication created.
    +   * 
    + * + * + * .google.cloud.netapp.v1.HybridReplicationSchedule replication_schedule = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The replicationSchedule. + */ + com.google.cloud.netapp.v1.HybridReplicationSchedule getReplicationSchedule(); + + /** + * + * + *
    +   * Optional. Type of the hybrid replication.
    +   * 
    + * + * + * .google.cloud.netapp.v1.HybridReplicationParameters.VolumeHybridReplicationType hybrid_replication_type = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for hybridReplicationType. + */ + int getHybridReplicationTypeValue(); + + /** + * + * + *
    +   * Optional. Type of the hybrid replication.
    +   * 
    + * + * + * .google.cloud.netapp.v1.HybridReplicationParameters.VolumeHybridReplicationType hybrid_replication_type = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The hybridReplicationType. + */ + com.google.cloud.netapp.v1.HybridReplicationParameters.VolumeHybridReplicationType + getHybridReplicationType(); + + /** + * + * + *
    +   * Optional. Constituent volume count for large volume.
    +   * 
    + * + * int32 large_volume_constituent_count = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The largeVolumeConstituentCount. + */ + int getLargeVolumeConstituentCount(); } diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/HybridReplicationSchedule.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/HybridReplicationSchedule.java new file mode 100644 index 000000000000..3769f28c3be6 --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/HybridReplicationSchedule.java @@ -0,0 +1,207 @@ +/* + * 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/netapp/v1/common.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.netapp.v1; + +/** + * + * + *
    + * Schedule for Hybrid Replication.
    + * New enum values may be added in future to support different frequency of
    + * replication.
    + * 
    + * + * Protobuf enum {@code google.cloud.netapp.v1.HybridReplicationSchedule} + */ +public enum HybridReplicationSchedule implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +   * Unspecified HybridReplicationSchedule
    +   * 
    + * + * HYBRID_REPLICATION_SCHEDULE_UNSPECIFIED = 0; + */ + HYBRID_REPLICATION_SCHEDULE_UNSPECIFIED(0), + /** + * + * + *
    +   * Replication happens once every 10 minutes.
    +   * 
    + * + * EVERY_10_MINUTES = 1; + */ + EVERY_10_MINUTES(1), + /** + * + * + *
    +   * Replication happens once every hour.
    +   * 
    + * + * HOURLY = 2; + */ + HOURLY(2), + /** + * + * + *
    +   * Replication happens once every day.
    +   * 
    + * + * DAILY = 3; + */ + DAILY(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +   * Unspecified HybridReplicationSchedule
    +   * 
    + * + * HYBRID_REPLICATION_SCHEDULE_UNSPECIFIED = 0; + */ + public static final int HYBRID_REPLICATION_SCHEDULE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +   * Replication happens once every 10 minutes.
    +   * 
    + * + * EVERY_10_MINUTES = 1; + */ + public static final int EVERY_10_MINUTES_VALUE = 1; + + /** + * + * + *
    +   * Replication happens once every hour.
    +   * 
    + * + * HOURLY = 2; + */ + public static final int HOURLY_VALUE = 2; + + /** + * + * + *
    +   * Replication happens once every day.
    +   * 
    + * + * DAILY = 3; + */ + public static final int DAILY_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 HybridReplicationSchedule 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 HybridReplicationSchedule forNumber(int value) { + switch (value) { + case 0: + return HYBRID_REPLICATION_SCHEDULE_UNSPECIFIED; + case 1: + return EVERY_10_MINUTES; + case 2: + return HOURLY; + case 3: + return DAILY; + 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 HybridReplicationSchedule findValueByNumber(int number) { + return HybridReplicationSchedule.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.netapp.v1.CommonProto.getDescriptor().getEnumTypes().get(4); + } + + private static final HybridReplicationSchedule[] VALUES = values(); + + public static HybridReplicationSchedule 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 HybridReplicationSchedule(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.netapp.v1.HybridReplicationSchedule) +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/LocationMetadata.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/LocationMetadata.java index b25222d261f0..fef4eb4b95db 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/LocationMetadata.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/LocationMetadata.java @@ -295,6 +295,25 @@ public int getSupportedFlexPerformanceValue(int index) { private int supportedFlexPerformanceMemoizedSerializedSize; + public static final int HAS_VCP_FIELD_NUMBER = 3; + private boolean hasVcp_ = false; + + /** + * + * + *
    +   * Output only. Indicates if the location has VCP support.
    +   * 
    + * + * bool has_vcp = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The hasVcp. + */ + @java.lang.Override + public boolean getHasVcp() { + return hasVcp_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -324,6 +343,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < supportedFlexPerformance_.size(); i++) { output.writeEnumNoTag(supportedFlexPerformance_.get(i)); } + if (hasVcp_ != false) { + output.writeBool(3, hasVcp_); + } getUnknownFields().writeTo(output); } @@ -361,6 +383,9 @@ public int getSerializedSize() { } supportedFlexPerformanceMemoizedSerializedSize = dataSize; } + if (hasVcp_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, hasVcp_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -379,6 +404,7 @@ public boolean equals(final java.lang.Object obj) { if (!supportedServiceLevels_.equals(other.supportedServiceLevels_)) return false; if (!supportedFlexPerformance_.equals(other.supportedFlexPerformance_)) return false; + if (getHasVcp() != other.getHasVcp()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -398,6 +424,8 @@ public int hashCode() { hash = (37 * hash) + SUPPORTED_FLEX_PERFORMANCE_FIELD_NUMBER; hash = (53 * hash) + supportedFlexPerformance_.hashCode(); } + hash = (37 * hash) + HAS_VCP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHasVcp()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -543,6 +571,7 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00000001); supportedFlexPerformance_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); + hasVcp_ = false; return this; } @@ -594,6 +623,9 @@ private void buildPartialRepeatedFields(com.google.cloud.netapp.v1.LocationMetad private void buildPartial0(com.google.cloud.netapp.v1.LocationMetadata result) { int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.hasVcp_ = hasVcp_; + } } @java.lang.Override @@ -661,6 +693,9 @@ public Builder mergeFrom(com.google.cloud.netapp.v1.LocationMetadata other) { } onChanged(); } + if (other.getHasVcp() != false) { + setHasVcp(other.getHasVcp()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -725,6 +760,12 @@ public Builder mergeFrom( input.popLimit(oldLimit); break; } // case 18 + case 24: + { + hasVcp_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1266,6 +1307,62 @@ public Builder addAllSupportedFlexPerformanceValue( return this; } + private boolean hasVcp_; + + /** + * + * + *
    +     * Output only. Indicates if the location has VCP support.
    +     * 
    + * + * bool has_vcp = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The hasVcp. + */ + @java.lang.Override + public boolean getHasVcp() { + return hasVcp_; + } + + /** + * + * + *
    +     * Output only. Indicates if the location has VCP support.
    +     * 
    + * + * bool has_vcp = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The hasVcp to set. + * @return This builder for chaining. + */ + public Builder setHasVcp(boolean value) { + + hasVcp_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Indicates if the location has VCP support.
    +     * 
    + * + * bool has_vcp = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearHasVcp() { + bitField0_ = (bitField0_ & ~0x00000004); + hasVcp_ = 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-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/LocationMetadataOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/LocationMetadataOrBuilder.java index 6983f674e2b6..3ec042e18a6c 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/LocationMetadataOrBuilder.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/LocationMetadataOrBuilder.java @@ -177,4 +177,17 @@ public interface LocationMetadataOrBuilder * @return The enum numeric value on the wire of supportedFlexPerformance at the given index. */ int getSupportedFlexPerformanceValue(int index); + + /** + * + * + *
    +   * Output only. Indicates if the location has VCP support.
    +   * 
    + * + * bool has_vcp = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The hasVcp. + */ + boolean getHasVcp(); } diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/QosType.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/QosType.java new file mode 100644 index 000000000000..405cef39f64c --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/QosType.java @@ -0,0 +1,179 @@ +/* + * 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/netapp/v1/common.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.netapp.v1; + +/** + * + * + *
    + * QoS (Quality of Service) Types of the storage pool
    + * 
    + * + * Protobuf enum {@code google.cloud.netapp.v1.QosType} + */ +public enum QosType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +   * Unspecified QoS Type
    +   * 
    + * + * QOS_TYPE_UNSPECIFIED = 0; + */ + QOS_TYPE_UNSPECIFIED(0), + /** + * + * + *
    +   * QoS Type is Auto
    +   * 
    + * + * AUTO = 1; + */ + AUTO(1), + /** + * + * + *
    +   * QoS Type is Manual
    +   * 
    + * + * MANUAL = 2; + */ + MANUAL(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +   * Unspecified QoS Type
    +   * 
    + * + * QOS_TYPE_UNSPECIFIED = 0; + */ + public static final int QOS_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +   * QoS Type is Auto
    +   * 
    + * + * AUTO = 1; + */ + public static final int AUTO_VALUE = 1; + + /** + * + * + *
    +   * QoS Type is Manual
    +   * 
    + * + * MANUAL = 2; + */ + public static final int MANUAL_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static QosType 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 QosType forNumber(int value) { + switch (value) { + case 0: + return QOS_TYPE_UNSPECIFIED; + case 1: + return AUTO; + case 2: + return MANUAL; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public QosType findValueByNumber(int number) { + return QosType.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.netapp.v1.CommonProto.getDescriptor().getEnumTypes().get(5); + } + + private static final QosType[] VALUES = values(); + + public static QosType 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 QosType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.netapp.v1.QosType) +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/Replication.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/Replication.java index f800ffb4fb36..3c9eeb01d987 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/Replication.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/Replication.java @@ -179,6 +179,27 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * PENDING_SVM_PEERING = 9; */ PENDING_SVM_PEERING(9), + /** + * + * + *
    +     * Replication is waiting for Commands to be executed on Onprem ONTAP.
    +     * 
    + * + * PENDING_REMOTE_RESYNC = 10; + */ + PENDING_REMOTE_RESYNC(10), + /** + * + * + *
    +     * Onprem ONTAP is destination and Replication can only be managed from
    +     * Onprem.
    +     * 
    + * + * EXTERNALLY_MANAGED_REPLICATION = 11; + */ + EXTERNALLY_MANAGED_REPLICATION(11), UNRECOGNIZED(-1), ; @@ -270,6 +291,29 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PENDING_SVM_PEERING_VALUE = 9; + /** + * + * + *
    +     * Replication is waiting for Commands to be executed on Onprem ONTAP.
    +     * 
    + * + * PENDING_REMOTE_RESYNC = 10; + */ + public static final int PENDING_REMOTE_RESYNC_VALUE = 10; + + /** + * + * + *
    +     * Onprem ONTAP is destination and Replication can only be managed from
    +     * Onprem.
    +     * 
    + * + * EXTERNALLY_MANAGED_REPLICATION = 11; + */ + public static final int EXTERNALLY_MANAGED_REPLICATION_VALUE = 11; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -310,6 +354,10 @@ public static State forNumber(int value) { return PENDING_CLUSTER_PEERING; case 9: return PENDING_SVM_PEERING; + case 10: + return PENDING_REMOTE_RESYNC; + case 11: + return EXTERNALLY_MANAGED_REPLICATION; default: return null; } @@ -794,6 +842,26 @@ public enum MirrorState implements com.google.protobuf.ProtocolMessageEnum { * ABORTED = 6; */ ABORTED(6), + /** + * + * + *
    +     * Replication is being managed from Onprem ONTAP.
    +     * 
    + * + * EXTERNALLY_MANAGED = 7; + */ + EXTERNALLY_MANAGED(7), + /** + * + * + *
    +     * Peering is yet to be established.
    +     * 
    + * + * PENDING_PEERING = 8; + */ + PENDING_PEERING(8), UNRECOGNIZED(-1), ; @@ -875,6 +943,28 @@ public enum MirrorState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ABORTED_VALUE = 6; + /** + * + * + *
    +     * Replication is being managed from Onprem ONTAP.
    +     * 
    + * + * EXTERNALLY_MANAGED = 7; + */ + public static final int EXTERNALLY_MANAGED_VALUE = 7; + + /** + * + * + *
    +     * Peering is yet to be established.
    +     * 
    + * + * PENDING_PEERING = 8; + */ + public static final int PENDING_PEERING_VALUE = 8; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -913,6 +1003,10 @@ public static MirrorState forNumber(int value) { return BASELINE_TRANSFERRING; case 6: return ABORTED; + case 7: + return EXTERNALLY_MANAGED; + case 8: + return PENDING_PEERING; default: return null; } @@ -1006,6 +1100,28 @@ public enum HybridReplicationType implements com.google.protobuf.ProtocolMessage * CONTINUOUS_REPLICATION = 2; */ CONTINUOUS_REPLICATION(2), + /** + * + * + *
    +     * New field for reversible OnPrem replication, to be used for data
    +     * protection.
    +     * 
    + * + * ONPREM_REPLICATION = 3; + */ + ONPREM_REPLICATION(3), + /** + * + * + *
    +     * Hybrid replication type for incremental Transfer in the reverse direction
    +     * (GCNV is source and Onprem is destination)
    +     * 
    + * + * REVERSE_ONPREM_REPLICATION = 4; + */ + REVERSE_ONPREM_REPLICATION(4), UNRECOGNIZED(-1), ; @@ -1042,6 +1158,30 @@ public enum HybridReplicationType implements com.google.protobuf.ProtocolMessage */ public static final int CONTINUOUS_REPLICATION_VALUE = 2; + /** + * + * + *
    +     * New field for reversible OnPrem replication, to be used for data
    +     * protection.
    +     * 
    + * + * ONPREM_REPLICATION = 3; + */ + public static final int ONPREM_REPLICATION_VALUE = 3; + + /** + * + * + *
    +     * Hybrid replication type for incremental Transfer in the reverse direction
    +     * (GCNV is source and Onprem is destination)
    +     * 
    + * + * REVERSE_ONPREM_REPLICATION = 4; + */ + public static final int REVERSE_ONPREM_REPLICATION_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1072,6 +1212,10 @@ public static HybridReplicationType forNumber(int value) { return MIGRATION; case 2: return CONTINUOUS_REPLICATION; + case 3: + return ONPREM_REPLICATION; + case 4: + return REVERSE_ONPREM_REPLICATION; default: return null; } @@ -2074,6 +2218,69 @@ public com.google.cloud.netapp.v1.Replication.HybridReplicationType getHybridRep : result; } + public static final int HYBRID_REPLICATION_USER_COMMANDS_FIELD_NUMBER = 20; + private com.google.cloud.netapp.v1.UserCommands hybridReplicationUserCommands_; + + /** + * + * + *
    +   * Output only. Copy pastable snapmirror commands to be executed on onprem
    +   * cluster by the customer.
    +   * 
    + * + * + * .google.cloud.netapp.v1.UserCommands hybrid_replication_user_commands = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the hybridReplicationUserCommands field is set. + */ + @java.lang.Override + public boolean hasHybridReplicationUserCommands() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
    +   * Output only. Copy pastable snapmirror commands to be executed on onprem
    +   * cluster by the customer.
    +   * 
    + * + * + * .google.cloud.netapp.v1.UserCommands hybrid_replication_user_commands = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The hybridReplicationUserCommands. + */ + @java.lang.Override + public com.google.cloud.netapp.v1.UserCommands getHybridReplicationUserCommands() { + return hybridReplicationUserCommands_ == null + ? com.google.cloud.netapp.v1.UserCommands.getDefaultInstance() + : hybridReplicationUserCommands_; + } + + /** + * + * + *
    +   * Output only. Copy pastable snapmirror commands to be executed on onprem
    +   * cluster by the customer.
    +   * 
    + * + * + * .google.cloud.netapp.v1.UserCommands hybrid_replication_user_commands = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.netapp.v1.UserCommandsOrBuilder + getHybridReplicationUserCommandsOrBuilder() { + return hybridReplicationUserCommands_ == null + ? com.google.cloud.netapp.v1.UserCommands.getDefaultInstance() + : hybridReplicationUserCommands_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2148,6 +2355,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(19, hybridReplicationType_); } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(20, getHybridReplicationUserCommands()); + } getUnknownFields().writeTo(output); } @@ -2228,6 +2438,11 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(19, hybridReplicationType_); } + if (((bitField0_ & 0x00000040) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 20, getHybridReplicationUserCommands()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2279,6 +2494,12 @@ public boolean equals(final java.lang.Object obj) { } if (!getClusterLocation().equals(other.getClusterLocation())) return false; if (hybridReplicationType_ != other.hybridReplicationType_) return false; + if (hasHybridReplicationUserCommands() != other.hasHybridReplicationUserCommands()) + return false; + if (hasHybridReplicationUserCommands()) { + if (!getHybridReplicationUserCommands().equals(other.getHybridReplicationUserCommands())) + return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2338,6 +2559,10 @@ public int hashCode() { hash = (53 * hash) + getClusterLocation().hashCode(); hash = (37 * hash) + HYBRID_REPLICATION_TYPE_FIELD_NUMBER; hash = (53 * hash) + hybridReplicationType_; + if (hasHybridReplicationUserCommands()) { + hash = (37 * hash) + HYBRID_REPLICATION_USER_COMMANDS_FIELD_NUMBER; + hash = (53 * hash) + getHybridReplicationUserCommands().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2507,6 +2732,7 @@ private void maybeForceBuilderInitialization() { getTransferStatsFieldBuilder(); getDestinationVolumeParametersFieldBuilder(); getHybridPeeringDetailsFieldBuilder(); + getHybridReplicationUserCommandsFieldBuilder(); } } @@ -2547,6 +2773,11 @@ public Builder clear() { } clusterLocation_ = ""; hybridReplicationType_ = 0; + hybridReplicationUserCommands_ = null; + if (hybridReplicationUserCommandsBuilder_ != null) { + hybridReplicationUserCommandsBuilder_.dispose(); + hybridReplicationUserCommandsBuilder_ = null; + } return this; } @@ -2649,6 +2880,13 @@ private void buildPartial0(com.google.cloud.netapp.v1.Replication result) { if (((from_bitField0_ & 0x00010000) != 0)) { result.hybridReplicationType_ = hybridReplicationType_; } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.hybridReplicationUserCommands_ = + hybridReplicationUserCommandsBuilder_ == null + ? hybridReplicationUserCommands_ + : hybridReplicationUserCommandsBuilder_.build(); + to_bitField0_ |= 0x00000040; + } result.bitField0_ |= to_bitField0_; } @@ -2759,6 +2997,9 @@ public Builder mergeFrom(com.google.cloud.netapp.v1.Replication other) { if (other.hybridReplicationType_ != 0) { setHybridReplicationTypeValue(other.getHybridReplicationTypeValue()); } + if (other.hasHybridReplicationUserCommands()) { + mergeHybridReplicationUserCommands(other.getHybridReplicationUserCommands()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2895,6 +3136,13 @@ public Builder mergeFrom( bitField0_ |= 0x00010000; break; } // case 152 + case 162: + { + input.readMessage( + getHybridReplicationUserCommandsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00020000; + break; + } // case 162 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5292,6 +5540,232 @@ public Builder clearHybridReplicationType() { return this; } + private com.google.cloud.netapp.v1.UserCommands hybridReplicationUserCommands_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.netapp.v1.UserCommands, + com.google.cloud.netapp.v1.UserCommands.Builder, + com.google.cloud.netapp.v1.UserCommandsOrBuilder> + hybridReplicationUserCommandsBuilder_; + + /** + * + * + *
    +     * Output only. Copy pastable snapmirror commands to be executed on onprem
    +     * cluster by the customer.
    +     * 
    + * + * + * .google.cloud.netapp.v1.UserCommands hybrid_replication_user_commands = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the hybridReplicationUserCommands field is set. + */ + public boolean hasHybridReplicationUserCommands() { + return ((bitField0_ & 0x00020000) != 0); + } + + /** + * + * + *
    +     * Output only. Copy pastable snapmirror commands to be executed on onprem
    +     * cluster by the customer.
    +     * 
    + * + * + * .google.cloud.netapp.v1.UserCommands hybrid_replication_user_commands = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The hybridReplicationUserCommands. + */ + public com.google.cloud.netapp.v1.UserCommands getHybridReplicationUserCommands() { + if (hybridReplicationUserCommandsBuilder_ == null) { + return hybridReplicationUserCommands_ == null + ? com.google.cloud.netapp.v1.UserCommands.getDefaultInstance() + : hybridReplicationUserCommands_; + } else { + return hybridReplicationUserCommandsBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Output only. Copy pastable snapmirror commands to be executed on onprem
    +     * cluster by the customer.
    +     * 
    + * + * + * .google.cloud.netapp.v1.UserCommands hybrid_replication_user_commands = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setHybridReplicationUserCommands(com.google.cloud.netapp.v1.UserCommands value) { + if (hybridReplicationUserCommandsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + hybridReplicationUserCommands_ = value; + } else { + hybridReplicationUserCommandsBuilder_.setMessage(value); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Copy pastable snapmirror commands to be executed on onprem
    +     * cluster by the customer.
    +     * 
    + * + * + * .google.cloud.netapp.v1.UserCommands hybrid_replication_user_commands = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setHybridReplicationUserCommands( + com.google.cloud.netapp.v1.UserCommands.Builder builderForValue) { + if (hybridReplicationUserCommandsBuilder_ == null) { + hybridReplicationUserCommands_ = builderForValue.build(); + } else { + hybridReplicationUserCommandsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Copy pastable snapmirror commands to be executed on onprem
    +     * cluster by the customer.
    +     * 
    + * + * + * .google.cloud.netapp.v1.UserCommands hybrid_replication_user_commands = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeHybridReplicationUserCommands( + com.google.cloud.netapp.v1.UserCommands value) { + if (hybridReplicationUserCommandsBuilder_ == null) { + if (((bitField0_ & 0x00020000) != 0) + && hybridReplicationUserCommands_ != null + && hybridReplicationUserCommands_ + != com.google.cloud.netapp.v1.UserCommands.getDefaultInstance()) { + getHybridReplicationUserCommandsBuilder().mergeFrom(value); + } else { + hybridReplicationUserCommands_ = value; + } + } else { + hybridReplicationUserCommandsBuilder_.mergeFrom(value); + } + if (hybridReplicationUserCommands_ != null) { + bitField0_ |= 0x00020000; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Output only. Copy pastable snapmirror commands to be executed on onprem
    +     * cluster by the customer.
    +     * 
    + * + * + * .google.cloud.netapp.v1.UserCommands hybrid_replication_user_commands = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearHybridReplicationUserCommands() { + bitField0_ = (bitField0_ & ~0x00020000); + hybridReplicationUserCommands_ = null; + if (hybridReplicationUserCommandsBuilder_ != null) { + hybridReplicationUserCommandsBuilder_.dispose(); + hybridReplicationUserCommandsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Copy pastable snapmirror commands to be executed on onprem
    +     * cluster by the customer.
    +     * 
    + * + * + * .google.cloud.netapp.v1.UserCommands hybrid_replication_user_commands = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.netapp.v1.UserCommands.Builder + getHybridReplicationUserCommandsBuilder() { + bitField0_ |= 0x00020000; + onChanged(); + return getHybridReplicationUserCommandsFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Output only. Copy pastable snapmirror commands to be executed on onprem
    +     * cluster by the customer.
    +     * 
    + * + * + * .google.cloud.netapp.v1.UserCommands hybrid_replication_user_commands = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.netapp.v1.UserCommandsOrBuilder + getHybridReplicationUserCommandsOrBuilder() { + if (hybridReplicationUserCommandsBuilder_ != null) { + return hybridReplicationUserCommandsBuilder_.getMessageOrBuilder(); + } else { + return hybridReplicationUserCommands_ == null + ? com.google.cloud.netapp.v1.UserCommands.getDefaultInstance() + : hybridReplicationUserCommands_; + } + } + + /** + * + * + *
    +     * Output only. Copy pastable snapmirror commands to be executed on onprem
    +     * cluster by the customer.
    +     * 
    + * + * + * .google.cloud.netapp.v1.UserCommands hybrid_replication_user_commands = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.netapp.v1.UserCommands, + com.google.cloud.netapp.v1.UserCommands.Builder, + com.google.cloud.netapp.v1.UserCommandsOrBuilder> + getHybridReplicationUserCommandsFieldBuilder() { + if (hybridReplicationUserCommandsBuilder_ == null) { + hybridReplicationUserCommandsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.netapp.v1.UserCommands, + com.google.cloud.netapp.v1.UserCommands.Builder, + com.google.cloud.netapp.v1.UserCommandsOrBuilder>( + getHybridReplicationUserCommands(), getParentForChildren(), isClean()); + hybridReplicationUserCommands_ = null; + } + return hybridReplicationUserCommandsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ReplicationOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ReplicationOrBuilder.java index 58e34d38184f..8e72a54491cc 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ReplicationOrBuilder.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ReplicationOrBuilder.java @@ -625,4 +625,50 @@ java.lang.String getLabelsOrDefault( * @return The hybridReplicationType. */ com.google.cloud.netapp.v1.Replication.HybridReplicationType getHybridReplicationType(); + + /** + * + * + *
    +   * Output only. Copy pastable snapmirror commands to be executed on onprem
    +   * cluster by the customer.
    +   * 
    + * + * + * .google.cloud.netapp.v1.UserCommands hybrid_replication_user_commands = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the hybridReplicationUserCommands field is set. + */ + boolean hasHybridReplicationUserCommands(); + + /** + * + * + *
    +   * Output only. Copy pastable snapmirror commands to be executed on onprem
    +   * cluster by the customer.
    +   * 
    + * + * + * .google.cloud.netapp.v1.UserCommands hybrid_replication_user_commands = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The hybridReplicationUserCommands. + */ + com.google.cloud.netapp.v1.UserCommands getHybridReplicationUserCommands(); + + /** + * + * + *
    +   * Output only. Copy pastable snapmirror commands to be executed on onprem
    +   * cluster by the customer.
    +   * 
    + * + * + * .google.cloud.netapp.v1.UserCommands hybrid_replication_user_commands = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.netapp.v1.UserCommandsOrBuilder getHybridReplicationUserCommandsOrBuilder(); } diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ReplicationProto.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ReplicationProto.java index 6ed0d7730caf..e34c470220ad 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ReplicationProto.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ReplicationProto.java @@ -105,7 +105,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "(google/cloud/netapp/v1/replication.pro" + "to\022\026google.cloud.netapp.v1\032\037google/api/f" + "ield_behavior.proto\032\031google/api/resource" - + ".proto\032#google/cloud/netapp/v1/volume.proto\032\036google/protobuf/duration.proto\032" + + ".proto\032#google/cloud/netapp/v1/common.pr" + + "oto\032#google/cloud/netapp/v1/volume.proto\032\036google/protobuf/duration.proto\032" + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\324\004\n\r" + "TransferStats\022\033\n" + "\016transfer_bytes\030\001 \001(\003H\000\210\001\001\022?\n" @@ -128,14 +129,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_lag_durationB\016\n" + "\014_update_timeB\031\n" + "\027_last_transfer_end_timeB\026\n" - + "\024_last_transfer_error\"\310\016\n" + + "\024_last_transfer_error\"\302\020\n" + "\013Replication\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022=\n" - + "\005state\030\002 \001(\0162).google" - + ".cloud.netapp.v1.Replication.StateB\003\340A\003\022\032\n\r" + + "\005state\030\002" + + " \001(\0162).google.cloud.netapp.v1.Replication.StateB\003\340A\003\022\032\n\r" + "state_details\030\003 \001(\tB\003\340A\003\022F\n" - + "\004role\030\004 \001(" - + "\01623.google.cloud.netapp.v1.Replication.ReplicationRoleB\003\340A\003\022Z\n" + + "\004role\030\004 \001(\01623" + + ".google.cloud.netapp.v1.Replication.ReplicationRoleB\003\340A\003\022Z\n" + "\024replication_schedule\030\005" + " \001(\01627.google.cloud.netapp.v1.Replication.ReplicationScheduleB\003\340A\002\022J\n" + "\014mirror_state\030\006" @@ -145,8 +146,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022destination_volume\030\n" + " \001(\tB$\340A\003\372A\036\n" + "\034netapp.googleapis.com/Volume\022B\n" - + "\016transfer_stats\030\013 \001(\0132%" - + ".google.cloud.netapp.v1.TransferStatsB\003\340A\003\022?\n" + + "\016transfer_stats\030\013 \001(\0132%.go" + + "ogle.cloud.netapp.v1.TransferStatsB\003\340A\003\022?\n" + "\006labels\030\014" + " \003(\0132/.google.cloud.netapp.v1.Replication.LabelsEntry\022\030\n" + "\013description\030\r" @@ -155,14 +156,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\01323.google.cloud.netapp.v1.DestinationVolumeParametersB\006\340A\004\340A\002\022;\n\r" + "source_volume\030\017 \001(\tB$\340A\003\372A\036\n" + "\034netapp.googleapis.com/Volume\022Q\n" - + "\026hybrid_peering_details\030\020" - + " \001(\0132,.google.cloud.netapp.v1.HybridPeeringDetailsB\003\340A\003\022\035\n" + + "\026hybrid_peering_details\030\020 " + + "\001(\0132,.google.cloud.netapp.v1.HybridPeeringDetailsB\003\340A\003\022\035\n" + "\020cluster_location\030\022 \001(\tB\003\340A\001\022_\n" - + "\027hybrid_replication_type\030\023 \001(" - + "\01629.google.cloud.netapp.v1.Replication.HybridReplicationTypeB\003\340A\003\032-\n" + + "\027hybrid_replication_type\030\023 \001(\01629" + + ".google.cloud.netapp.v1.Replication.HybridReplicationTypeB\003\340A\003\022S\n" + + " hybrid_replication_user_commands\030\024" + + " \001(\0132$.google.cloud.netapp.v1.UserCommandsB\003\340A\003\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\"\224\001\n" + + "\005value\030\002 \001(\t:\0028\001\"\323\001\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\014\n" + "\010CREATING\020\001\022\t\n" @@ -171,7 +174,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010DELETING\020\005\022\t\n" + "\005ERROR\020\006\022\033\n" + "\027PENDING_CLUSTER_PEERING\020\010\022\027\n" - + "\023PENDING_SVM_PEERING\020\t\"P\n" + + "\023PENDING_SVM_PEERING\020\t\022\031\n" + + "\025PENDING_REMOTE_RESYNC\020\n" + + "\022\"\n" + + "\036EXTERNALLY_MANAGED_REPLICATION\020\013\"P\n" + "\017ReplicationRole\022 \n" + "\034REPLICATION_ROLE_UNSPECIFIED\020\000\022\n\n" + "\006SOURCE\020\001\022\017\n" @@ -180,7 +186,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " REPLICATION_SCHEDULE_UNSPECIFIED\020\000\022\024\n" + "\020EVERY_10_MINUTES\020\001\022\n\n" + "\006HOURLY\020\002\022\t\n" - + "\005DAILY\020\003\"\217\001\n" + + "\005DAILY\020\003\"\274\001\n" + "\013MirrorState\022\034\n" + "\030MIRROR_STATE_UNSPECIFIED\020\000\022\r\n" + "\tPREPARING\020\001\022\014\n" @@ -188,25 +194,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007STOPPED\020\003\022\020\n" + "\014TRANSFERRING\020\004\022\031\n" + "\025BASELINE_TRANSFERRING\020\005\022\013\n" - + "\007ABORTED\020\006\"k\n" + + "\007ABORTED\020\006\022\026\n" + + "\022EXTERNALLY_MANAGED\020\007\022\023\n" + + "\017PENDING_PEERING\020\010\"\243\001\n" + "\025HybridReplicationType\022\'\n" + "#HYBRID_REPLICATION_TYPE_UNSPECIFIED\020\000\022\r\n" + "\tMIGRATION\020\001\022\032\n" - + "\026CONTINUOUS_REPLICATION\020\002:\227\001\352A\223\001\n" - + "!netapp.googleapis.com/Replication\022Sprojects/{" - + "project}/locations/{location}/volumes/{v" - + "olume}/replications/{replication}*\014replications2\013replicationB\n\n" + + "\026CONTINUOUS_REPLICATION\020\002\022\026\n" + + "\022ONPREM_REPLICATION\020\003\022\036\n" + + "\032REVERSE_ONPREM_REPLICATION\020\004:\227\001\352A\223\001\n" + + "!netapp.googleapis.com/Replication\022Sprojects/{project}/locations/{location}/vol" + + "umes/{volume}/replications/{replication}*\014replications2\013replicationB\n\n" + "\010_healthyB\016\n" + "\014_description\"\366\001\n" + "\024HybridPeeringDetails\022\026\n" - + "\tsubnet_ip\030\001 \001(\tB\003\340A\001\022\024\n" - + "\007command\030\002 \001(\tB\003\340A\001\022<\n" + + "\tsubnet_ip\030\001 \001(\tB\003\340A\003\022\024\n" + + "\007command\030\002 \001(\tB\003\340A\003\022<\n" + "\023command_expiry_time\030\003" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001\022\027\n\n" - + "passphrase\030\004 \001(\tB\003\340A\001\022\035\n" - + "\020peer_volume_name\030\005 \001(\tB\003\340A\001\022\036\n" - + "\021peer_cluster_name\030\006 \001(\tB\003\340A\001\022\032\n\r" - + "peer_svm_name\030\007 \001(\tB\003\340A\001\"\235\001\n" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\027\n\n" + + "passphrase\030\004 \001(\tB\003\340A\003\022\035\n" + + "\020peer_volume_name\030\005 \001(\tB\003\340A\003\022\036\n" + + "\021peer_cluster_name\030\006 \001(\tB\003\340A\003\022\032\n\r" + + "peer_svm_name\030\007 \001(\tB\003\340A\003\"\235\001\n" + "\027ListReplicationsRequest\0229\n" + "\006parent\030\001 \001(" + "\tB)\340A\002\372A#\022!netapp.googleapis.com/Replication\022\021\n" @@ -232,8 +241,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014_descriptionB\021\n" + "\017_tiering_policy\"\261\001\n" + "\030CreateReplicationRequest\0229\n" - + "\006parent\030\001 \001(" - + "\tB)\340A\002\372A#\022!netapp.googleapis.com/Replication\022=\n" + + "\006parent\030\001 \001(\tB)\340A\002" + + "\372A#\022!netapp.googleapis.com/Replication\022=\n" + "\013replication\030\002" + " \001(\0132#.google.cloud.netapp.v1.ReplicationB\003\340A\002\022\033\n" + "\016replication_id\030\003 \001(\tB\003\340A\002\"S\n" @@ -242,8 +251,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "!netapp.googleapis.com/Replication\"\217\001\n" + "\030UpdateReplicationRequest\0224\n" + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022=\n" - + "\013replication\030\002" - + " \001(\0132#.google.cloud.netapp.v1.ReplicationB\003\340A\002\"`\n" + + "\013replication\030\002 \001(\0132" + + "#.google.cloud.netapp.v1.ReplicationB\003\340A\002\"`\n" + "\026StopReplicationRequest\0227\n" + "\004name\030\001 \001(\tB)\340A\002\372A#\n" + "!netapp.googleapis.com/Replication\022\r\n" @@ -264,10 +273,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026SyncReplicationRequest\0227\n" + "\004name\030\001 \001(\tB)\340A\002\372A#\n" + "!netapp.googleapis.com/ReplicationB\262\001\n" - + "\032com.google.cloud.netapp.v1B\020ReplicationProtoP\001Z2cloud.google.com/go/neta" - + "pp/apiv1/netapppb;netapppb\252\002\026Google.Clou" - + "d.NetApp.V1\312\002\026Google\\Cloud\\NetApp\\V1\352\002\031G" - + "oogle::Cloud::NetApp::V1b\006proto3" + + "\032com.google.cloud.netapp.v1B\020ReplicationProtoP\001Z2cloud.google.com/" + + "go/netapp/apiv1/netapppb;netapppb\252\002\026Goog" + + "le.Cloud.NetApp.V1\312\002\026Google\\Cloud\\NetApp" + + "\\V1\352\002\031Google::Cloud::NetApp::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -275,6 +284,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.netapp.v1.CommonProto.getDescriptor(), com.google.cloud.netapp.v1.VolumeProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), @@ -318,6 +328,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "HybridPeeringDetails", "ClusterLocation", "HybridReplicationType", + "HybridReplicationUserCommands", }); internal_static_google_cloud_netapp_v1_Replication_LabelsEntry_descriptor = internal_static_google_cloud_netapp_v1_Replication_descriptor.getNestedTypes().get(0); @@ -446,6 +457,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { descriptor, registry); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.netapp.v1.CommonProto.getDescriptor(); com.google.cloud.netapp.v1.VolumeProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePool.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePool.java index 2ed2794c4649..fecdeadec596 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePool.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePool.java @@ -54,6 +54,7 @@ private StoragePool() { encryptionType_ = 0; replicaZone_ = ""; zone_ = ""; + qosType_ = 0; } @java.lang.Override @@ -1346,7 +1347,7 @@ public boolean getCustomPerformanceEnabled() { * * *
    -   * Optional. Custom Performance Total Throughput of the pool (in MiB/s)
    +   * Optional. Custom Performance Total Throughput of the pool (in MiBps)
        * 
    * * int64 total_throughput_mibps = 26 [(.google.api.field_behavior) = OPTIONAL]; @@ -1366,7 +1367,7 @@ public long getTotalThroughputMibps() { * *
        * Optional. Custom Performance Total IOPS of the pool
    -   * If not provided, it will be calculated based on the total_throughput_mibps
    +   * if not provided, it will be calculated based on the total_throughput_mibps
        * 
    * * int64 total_iops = 27 [(.google.api.field_behavior) = OPTIONAL]; @@ -1378,6 +1379,170 @@ public long getTotalIops() { return totalIops_; } + public static final int HOT_TIER_SIZE_GIB_FIELD_NUMBER = 28; + private long hotTierSizeGib_ = 0L; + + /** + * + * + *
    +   * Optional. Total hot tier capacity for the Storage Pool. It is applicable
    +   * only to Flex service level. It should be less than the minimum storage pool
    +   * size and cannot be more than the current storage pool size. It cannot be
    +   * decreased once set.
    +   * 
    + * + * int64 hot_tier_size_gib = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The hotTierSizeGib. + */ + @java.lang.Override + public long getHotTierSizeGib() { + return hotTierSizeGib_; + } + + public static final int ENABLE_HOT_TIER_AUTO_RESIZE_FIELD_NUMBER = 29; + private boolean enableHotTierAutoResize_ = false; + + /** + * + * + *
    +   * Optional. Flag indicating that the hot-tier threshold will be
    +   * auto-increased by 10% of the hot-tier when it hits 100%. Default is true.
    +   * The increment will kick in only if the new size after increment is
    +   * still less than or equal to storage pool size.
    +   * 
    + * + * optional bool enable_hot_tier_auto_resize = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the enableHotTierAutoResize field is set. + */ + @java.lang.Override + public boolean hasEnableHotTierAutoResize() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +   * Optional. Flag indicating that the hot-tier threshold will be
    +   * auto-increased by 10% of the hot-tier when it hits 100%. Default is true.
    +   * The increment will kick in only if the new size after increment is
    +   * still less than or equal to storage pool size.
    +   * 
    + * + * optional bool enable_hot_tier_auto_resize = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enableHotTierAutoResize. + */ + @java.lang.Override + public boolean getEnableHotTierAutoResize() { + return enableHotTierAutoResize_; + } + + public static final int QOS_TYPE_FIELD_NUMBER = 30; + private int qosType_ = 0; + + /** + * + * + *
    +   * Optional. QoS (Quality of Service) Type of the storage pool
    +   * 
    + * + * .google.cloud.netapp.v1.QosType qos_type = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for qosType. + */ + @java.lang.Override + public int getQosTypeValue() { + return qosType_; + } + + /** + * + * + *
    +   * Optional. QoS (Quality of Service) Type of the storage pool
    +   * 
    + * + * .google.cloud.netapp.v1.QosType qos_type = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The qosType. + */ + @java.lang.Override + public com.google.cloud.netapp.v1.QosType getQosType() { + com.google.cloud.netapp.v1.QosType result = + com.google.cloud.netapp.v1.QosType.forNumber(qosType_); + return result == null ? com.google.cloud.netapp.v1.QosType.UNRECOGNIZED : result; + } + + public static final int AVAILABLE_THROUGHPUT_MIBPS_FIELD_NUMBER = 31; + private double availableThroughputMibps_ = 0D; + + /** + * + * + *
    +   * Output only. Available throughput of the storage pool (in MiB/s).
    +   * 
    + * + * double available_throughput_mibps = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The availableThroughputMibps. + */ + @java.lang.Override + public double getAvailableThroughputMibps() { + return availableThroughputMibps_; + } + + public static final int COLD_TIER_SIZE_USED_GIB_FIELD_NUMBER = 33; + private long coldTierSizeUsedGib_ = 0L; + + /** + * + * + *
    +   * Output only. Total cold tier data rounded down to the nearest GiB used by
    +   * the storage pool.
    +   * 
    + * + * int64 cold_tier_size_used_gib = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The coldTierSizeUsedGib. + */ + @java.lang.Override + public long getColdTierSizeUsedGib() { + return coldTierSizeUsedGib_; + } + + public static final int HOT_TIER_SIZE_USED_GIB_FIELD_NUMBER = 34; + private long hotTierSizeUsedGib_ = 0L; + + /** + * + * + *
    +   * Output only. Total hot tier data rounded down to the nearest GiB used by
    +   * the storage pool.
    +   * 
    + * + * int64 hot_tier_size_used_gib = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The hotTierSizeUsedGib. + */ + @java.lang.Override + public long getHotTierSizeUsedGib() { + return hotTierSizeUsedGib_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1468,6 +1633,24 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (totalIops_ != 0L) { output.writeInt64(27, totalIops_); } + if (hotTierSizeGib_ != 0L) { + output.writeInt64(28, hotTierSizeGib_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeBool(29, enableHotTierAutoResize_); + } + if (qosType_ != com.google.cloud.netapp.v1.QosType.QOS_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(30, qosType_); + } + if (java.lang.Double.doubleToRawLongBits(availableThroughputMibps_) != 0) { + output.writeDouble(31, availableThroughputMibps_); + } + if (coldTierSizeUsedGib_ != 0L) { + output.writeInt64(33, coldTierSizeUsedGib_); + } + if (hotTierSizeUsedGib_ != 0L) { + output.writeInt64(34, hotTierSizeUsedGib_); + } getUnknownFields().writeTo(output); } @@ -1561,6 +1744,25 @@ public int getSerializedSize() { if (totalIops_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(27, totalIops_); } + if (hotTierSizeGib_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(28, hotTierSizeGib_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(29, enableHotTierAutoResize_); + } + if (qosType_ != com.google.cloud.netapp.v1.QosType.QOS_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(30, qosType_); + } + if (java.lang.Double.doubleToRawLongBits(availableThroughputMibps_) != 0) { + size += + com.google.protobuf.CodedOutputStream.computeDoubleSize(31, availableThroughputMibps_); + } + if (coldTierSizeUsedGib_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(33, coldTierSizeUsedGib_); + } + if (hotTierSizeUsedGib_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(34, hotTierSizeUsedGib_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1607,6 +1809,16 @@ public boolean equals(final java.lang.Object obj) { if (getCustomPerformanceEnabled() != other.getCustomPerformanceEnabled()) return false; if (getTotalThroughputMibps() != other.getTotalThroughputMibps()) return false; if (getTotalIops() != other.getTotalIops()) return false; + if (getHotTierSizeGib() != other.getHotTierSizeGib()) return false; + if (hasEnableHotTierAutoResize() != other.hasEnableHotTierAutoResize()) return false; + if (hasEnableHotTierAutoResize()) { + if (getEnableHotTierAutoResize() != other.getEnableHotTierAutoResize()) return false; + } + if (qosType_ != other.qosType_) return false; + if (java.lang.Double.doubleToLongBits(getAvailableThroughputMibps()) + != java.lang.Double.doubleToLongBits(other.getAvailableThroughputMibps())) return false; + if (getColdTierSizeUsedGib() != other.getColdTierSizeUsedGib()) return false; + if (getHotTierSizeUsedGib() != other.getHotTierSizeUsedGib()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1674,6 +1886,23 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalThroughputMibps()); hash = (37 * hash) + TOTAL_IOPS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalIops()); + hash = (37 * hash) + HOT_TIER_SIZE_GIB_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getHotTierSizeGib()); + if (hasEnableHotTierAutoResize()) { + hash = (37 * hash) + ENABLE_HOT_TIER_AUTO_RESIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableHotTierAutoResize()); + } + hash = (37 * hash) + QOS_TYPE_FIELD_NUMBER; + hash = (53 * hash) + qosType_; + hash = (37 * hash) + AVAILABLE_THROUGHPUT_MIBPS_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getAvailableThroughputMibps())); + hash = (37 * hash) + COLD_TIER_SIZE_USED_GIB_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getColdTierSizeUsedGib()); + hash = (37 * hash) + HOT_TIER_SIZE_USED_GIB_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getHotTierSizeUsedGib()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1876,6 +2105,12 @@ public Builder clear() { customPerformanceEnabled_ = false; totalThroughputMibps_ = 0L; totalIops_ = 0L; + hotTierSizeGib_ = 0L; + enableHotTierAutoResize_ = false; + qosType_ = 0; + availableThroughputMibps_ = 0D; + coldTierSizeUsedGib_ = 0L; + hotTierSizeUsedGib_ = 0L; return this; } @@ -1991,6 +2226,25 @@ private void buildPartial0(com.google.cloud.netapp.v1.StoragePool result) { if (((from_bitField0_ & 0x01000000) != 0)) { result.totalIops_ = totalIops_; } + if (((from_bitField0_ & 0x02000000) != 0)) { + result.hotTierSizeGib_ = hotTierSizeGib_; + } + if (((from_bitField0_ & 0x04000000) != 0)) { + result.enableHotTierAutoResize_ = enableHotTierAutoResize_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x08000000) != 0)) { + result.qosType_ = qosType_; + } + if (((from_bitField0_ & 0x10000000) != 0)) { + result.availableThroughputMibps_ = availableThroughputMibps_; + } + if (((from_bitField0_ & 0x20000000) != 0)) { + result.coldTierSizeUsedGib_ = coldTierSizeUsedGib_; + } + if (((from_bitField0_ & 0x40000000) != 0)) { + result.hotTierSizeUsedGib_ = hotTierSizeUsedGib_; + } result.bitField0_ |= to_bitField0_; } @@ -2131,6 +2385,24 @@ public Builder mergeFrom(com.google.cloud.netapp.v1.StoragePool other) { if (other.getTotalIops() != 0L) { setTotalIops(other.getTotalIops()); } + if (other.getHotTierSizeGib() != 0L) { + setHotTierSizeGib(other.getHotTierSizeGib()); + } + if (other.hasEnableHotTierAutoResize()) { + setEnableHotTierAutoResize(other.getEnableHotTierAutoResize()); + } + if (other.qosType_ != 0) { + setQosTypeValue(other.getQosTypeValue()); + } + if (other.getAvailableThroughputMibps() != 0D) { + setAvailableThroughputMibps(other.getAvailableThroughputMibps()); + } + if (other.getColdTierSizeUsedGib() != 0L) { + setColdTierSizeUsedGib(other.getColdTierSizeUsedGib()); + } + if (other.getHotTierSizeUsedGib() != 0L) { + setHotTierSizeUsedGib(other.getHotTierSizeUsedGib()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2313,6 +2585,42 @@ public Builder mergeFrom( bitField0_ |= 0x01000000; break; } // case 216 + case 224: + { + hotTierSizeGib_ = input.readInt64(); + bitField0_ |= 0x02000000; + break; + } // case 224 + case 232: + { + enableHotTierAutoResize_ = input.readBool(); + bitField0_ |= 0x04000000; + break; + } // case 232 + case 240: + { + qosType_ = input.readEnum(); + bitField0_ |= 0x08000000; + break; + } // case 240 + case 249: + { + availableThroughputMibps_ = input.readDouble(); + bitField0_ |= 0x10000000; + break; + } // case 249 + case 264: + { + coldTierSizeUsedGib_ = input.readInt64(); + bitField0_ |= 0x20000000; + break; + } // case 264 + case 272: + { + hotTierSizeUsedGib_ = input.readInt64(); + bitField0_ |= 0x40000000; + break; + } // case 272 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4626,7 +4934,7 @@ public Builder clearCustomPerformanceEnabled() { * * *
    -     * Optional. Custom Performance Total Throughput of the pool (in MiB/s)
    +     * Optional. Custom Performance Total Throughput of the pool (in MiBps)
          * 
    * * int64 total_throughput_mibps = 26 [(.google.api.field_behavior) = OPTIONAL]; @@ -4642,7 +4950,7 @@ public long getTotalThroughputMibps() { * * *
    -     * Optional. Custom Performance Total Throughput of the pool (in MiB/s)
    +     * Optional. Custom Performance Total Throughput of the pool (in MiBps)
          * 
    * * int64 total_throughput_mibps = 26 [(.google.api.field_behavior) = OPTIONAL]; @@ -4662,7 +4970,7 @@ public Builder setTotalThroughputMibps(long value) { * * *
    -     * Optional. Custom Performance Total Throughput of the pool (in MiB/s)
    +     * Optional. Custom Performance Total Throughput of the pool (in MiBps)
          * 
    * * int64 total_throughput_mibps = 26 [(.google.api.field_behavior) = OPTIONAL]; @@ -4683,7 +4991,7 @@ public Builder clearTotalThroughputMibps() { * *
          * Optional. Custom Performance Total IOPS of the pool
    -     * If not provided, it will be calculated based on the total_throughput_mibps
    +     * if not provided, it will be calculated based on the total_throughput_mibps
          * 
    * * int64 total_iops = 27 [(.google.api.field_behavior) = OPTIONAL]; @@ -4700,7 +5008,7 @@ public long getTotalIops() { * *
          * Optional. Custom Performance Total IOPS of the pool
    -     * If not provided, it will be calculated based on the total_throughput_mibps
    +     * if not provided, it will be calculated based on the total_throughput_mibps
          * 
    * * int64 total_iops = 27 [(.google.api.field_behavior) = OPTIONAL]; @@ -4721,7 +5029,7 @@ public Builder setTotalIops(long value) { * *
          * Optional. Custom Performance Total IOPS of the pool
    -     * If not provided, it will be calculated based on the total_throughput_mibps
    +     * if not provided, it will be calculated based on the total_throughput_mibps
          * 
    * * int64 total_iops = 27 [(.google.api.field_behavior) = OPTIONAL]; @@ -4735,6 +5043,445 @@ public Builder clearTotalIops() { return this; } + private long hotTierSizeGib_; + + /** + * + * + *
    +     * Optional. Total hot tier capacity for the Storage Pool. It is applicable
    +     * only to Flex service level. It should be less than the minimum storage pool
    +     * size and cannot be more than the current storage pool size. It cannot be
    +     * decreased once set.
    +     * 
    + * + * int64 hot_tier_size_gib = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The hotTierSizeGib. + */ + @java.lang.Override + public long getHotTierSizeGib() { + return hotTierSizeGib_; + } + + /** + * + * + *
    +     * Optional. Total hot tier capacity for the Storage Pool. It is applicable
    +     * only to Flex service level. It should be less than the minimum storage pool
    +     * size and cannot be more than the current storage pool size. It cannot be
    +     * decreased once set.
    +     * 
    + * + * int64 hot_tier_size_gib = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The hotTierSizeGib to set. + * @return This builder for chaining. + */ + public Builder setHotTierSizeGib(long value) { + + hotTierSizeGib_ = value; + bitField0_ |= 0x02000000; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Total hot tier capacity for the Storage Pool. It is applicable
    +     * only to Flex service level. It should be less than the minimum storage pool
    +     * size and cannot be more than the current storage pool size. It cannot be
    +     * decreased once set.
    +     * 
    + * + * int64 hot_tier_size_gib = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearHotTierSizeGib() { + bitField0_ = (bitField0_ & ~0x02000000); + hotTierSizeGib_ = 0L; + onChanged(); + return this; + } + + private boolean enableHotTierAutoResize_; + + /** + * + * + *
    +     * Optional. Flag indicating that the hot-tier threshold will be
    +     * auto-increased by 10% of the hot-tier when it hits 100%. Default is true.
    +     * The increment will kick in only if the new size after increment is
    +     * still less than or equal to storage pool size.
    +     * 
    + * + * + * optional bool enable_hot_tier_auto_resize = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the enableHotTierAutoResize field is set. + */ + @java.lang.Override + public boolean hasEnableHotTierAutoResize() { + return ((bitField0_ & 0x04000000) != 0); + } + + /** + * + * + *
    +     * Optional. Flag indicating that the hot-tier threshold will be
    +     * auto-increased by 10% of the hot-tier when it hits 100%. Default is true.
    +     * The increment will kick in only if the new size after increment is
    +     * still less than or equal to storage pool size.
    +     * 
    + * + * + * optional bool enable_hot_tier_auto_resize = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enableHotTierAutoResize. + */ + @java.lang.Override + public boolean getEnableHotTierAutoResize() { + return enableHotTierAutoResize_; + } + + /** + * + * + *
    +     * Optional. Flag indicating that the hot-tier threshold will be
    +     * auto-increased by 10% of the hot-tier when it hits 100%. Default is true.
    +     * The increment will kick in only if the new size after increment is
    +     * still less than or equal to storage pool size.
    +     * 
    + * + * + * optional bool enable_hot_tier_auto_resize = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enableHotTierAutoResize to set. + * @return This builder for chaining. + */ + public Builder setEnableHotTierAutoResize(boolean value) { + + enableHotTierAutoResize_ = value; + bitField0_ |= 0x04000000; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Flag indicating that the hot-tier threshold will be
    +     * auto-increased by 10% of the hot-tier when it hits 100%. Default is true.
    +     * The increment will kick in only if the new size after increment is
    +     * still less than or equal to storage pool size.
    +     * 
    + * + * + * optional bool enable_hot_tier_auto_resize = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearEnableHotTierAutoResize() { + bitField0_ = (bitField0_ & ~0x04000000); + enableHotTierAutoResize_ = false; + onChanged(); + return this; + } + + private int qosType_ = 0; + + /** + * + * + *
    +     * Optional. QoS (Quality of Service) Type of the storage pool
    +     * 
    + * + * + * .google.cloud.netapp.v1.QosType qos_type = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for qosType. + */ + @java.lang.Override + public int getQosTypeValue() { + return qosType_; + } + + /** + * + * + *
    +     * Optional. QoS (Quality of Service) Type of the storage pool
    +     * 
    + * + * + * .google.cloud.netapp.v1.QosType qos_type = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for qosType to set. + * @return This builder for chaining. + */ + public Builder setQosTypeValue(int value) { + qosType_ = value; + bitField0_ |= 0x08000000; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. QoS (Quality of Service) Type of the storage pool
    +     * 
    + * + * + * .google.cloud.netapp.v1.QosType qos_type = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The qosType. + */ + @java.lang.Override + public com.google.cloud.netapp.v1.QosType getQosType() { + com.google.cloud.netapp.v1.QosType result = + com.google.cloud.netapp.v1.QosType.forNumber(qosType_); + return result == null ? com.google.cloud.netapp.v1.QosType.UNRECOGNIZED : result; + } + + /** + * + * + *
    +     * Optional. QoS (Quality of Service) Type of the storage pool
    +     * 
    + * + * + * .google.cloud.netapp.v1.QosType qos_type = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The qosType to set. + * @return This builder for chaining. + */ + public Builder setQosType(com.google.cloud.netapp.v1.QosType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x08000000; + qosType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. QoS (Quality of Service) Type of the storage pool
    +     * 
    + * + * + * .google.cloud.netapp.v1.QosType qos_type = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearQosType() { + bitField0_ = (bitField0_ & ~0x08000000); + qosType_ = 0; + onChanged(); + return this; + } + + private double availableThroughputMibps_; + + /** + * + * + *
    +     * Output only. Available throughput of the storage pool (in MiB/s).
    +     * 
    + * + * double available_throughput_mibps = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The availableThroughputMibps. + */ + @java.lang.Override + public double getAvailableThroughputMibps() { + return availableThroughputMibps_; + } + + /** + * + * + *
    +     * Output only. Available throughput of the storage pool (in MiB/s).
    +     * 
    + * + * double available_throughput_mibps = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The availableThroughputMibps to set. + * @return This builder for chaining. + */ + public Builder setAvailableThroughputMibps(double value) { + + availableThroughputMibps_ = value; + bitField0_ |= 0x10000000; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Available throughput of the storage pool (in MiB/s).
    +     * 
    + * + * double available_throughput_mibps = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearAvailableThroughputMibps() { + bitField0_ = (bitField0_ & ~0x10000000); + availableThroughputMibps_ = 0D; + onChanged(); + return this; + } + + private long coldTierSizeUsedGib_; + + /** + * + * + *
    +     * Output only. Total cold tier data rounded down to the nearest GiB used by
    +     * the storage pool.
    +     * 
    + * + * int64 cold_tier_size_used_gib = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The coldTierSizeUsedGib. + */ + @java.lang.Override + public long getColdTierSizeUsedGib() { + return coldTierSizeUsedGib_; + } + + /** + * + * + *
    +     * Output only. Total cold tier data rounded down to the nearest GiB used by
    +     * the storage pool.
    +     * 
    + * + * int64 cold_tier_size_used_gib = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The coldTierSizeUsedGib to set. + * @return This builder for chaining. + */ + public Builder setColdTierSizeUsedGib(long value) { + + coldTierSizeUsedGib_ = value; + bitField0_ |= 0x20000000; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Total cold tier data rounded down to the nearest GiB used by
    +     * the storage pool.
    +     * 
    + * + * int64 cold_tier_size_used_gib = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearColdTierSizeUsedGib() { + bitField0_ = (bitField0_ & ~0x20000000); + coldTierSizeUsedGib_ = 0L; + onChanged(); + return this; + } + + private long hotTierSizeUsedGib_; + + /** + * + * + *
    +     * Output only. Total hot tier data rounded down to the nearest GiB used by
    +     * the storage pool.
    +     * 
    + * + * int64 hot_tier_size_used_gib = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The hotTierSizeUsedGib. + */ + @java.lang.Override + public long getHotTierSizeUsedGib() { + return hotTierSizeUsedGib_; + } + + /** + * + * + *
    +     * Output only. Total hot tier data rounded down to the nearest GiB used by
    +     * the storage pool.
    +     * 
    + * + * int64 hot_tier_size_used_gib = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The hotTierSizeUsedGib to set. + * @return This builder for chaining. + */ + public Builder setHotTierSizeUsedGib(long value) { + + hotTierSizeUsedGib_ = value; + bitField0_ |= 0x40000000; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Total hot tier data rounded down to the nearest GiB used by
    +     * the storage pool.
    +     * 
    + * + * int64 hot_tier_size_used_gib = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearHotTierSizeUsedGib() { + bitField0_ = (bitField0_ & ~0x40000000); + hotTierSizeUsedGib_ = 0L; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePoolOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePoolOrBuilder.java index a49a794b075c..4c42427cd9d8 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePoolOrBuilder.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePoolOrBuilder.java @@ -614,7 +614,7 @@ java.lang.String getLabelsOrDefault( * * *
    -   * Optional. Custom Performance Total Throughput of the pool (in MiB/s)
    +   * Optional. Custom Performance Total Throughput of the pool (in MiBps)
        * 
    * * int64 total_throughput_mibps = 26 [(.google.api.field_behavior) = OPTIONAL]; @@ -628,7 +628,7 @@ java.lang.String getLabelsOrDefault( * *
        * Optional. Custom Performance Total IOPS of the pool
    -   * If not provided, it will be calculated based on the total_throughput_mibps
    +   * if not provided, it will be calculated based on the total_throughput_mibps
        * 
    * * int64 total_iops = 27 [(.google.api.field_behavior) = OPTIONAL]; @@ -636,4 +636,124 @@ java.lang.String getLabelsOrDefault( * @return The totalIops. */ long getTotalIops(); + + /** + * + * + *
    +   * Optional. Total hot tier capacity for the Storage Pool. It is applicable
    +   * only to Flex service level. It should be less than the minimum storage pool
    +   * size and cannot be more than the current storage pool size. It cannot be
    +   * decreased once set.
    +   * 
    + * + * int64 hot_tier_size_gib = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The hotTierSizeGib. + */ + long getHotTierSizeGib(); + + /** + * + * + *
    +   * Optional. Flag indicating that the hot-tier threshold will be
    +   * auto-increased by 10% of the hot-tier when it hits 100%. Default is true.
    +   * The increment will kick in only if the new size after increment is
    +   * still less than or equal to storage pool size.
    +   * 
    + * + * optional bool enable_hot_tier_auto_resize = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the enableHotTierAutoResize field is set. + */ + boolean hasEnableHotTierAutoResize(); + + /** + * + * + *
    +   * Optional. Flag indicating that the hot-tier threshold will be
    +   * auto-increased by 10% of the hot-tier when it hits 100%. Default is true.
    +   * The increment will kick in only if the new size after increment is
    +   * still less than or equal to storage pool size.
    +   * 
    + * + * optional bool enable_hot_tier_auto_resize = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enableHotTierAutoResize. + */ + boolean getEnableHotTierAutoResize(); + + /** + * + * + *
    +   * Optional. QoS (Quality of Service) Type of the storage pool
    +   * 
    + * + * .google.cloud.netapp.v1.QosType qos_type = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for qosType. + */ + int getQosTypeValue(); + + /** + * + * + *
    +   * Optional. QoS (Quality of Service) Type of the storage pool
    +   * 
    + * + * .google.cloud.netapp.v1.QosType qos_type = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The qosType. + */ + com.google.cloud.netapp.v1.QosType getQosType(); + + /** + * + * + *
    +   * Output only. Available throughput of the storage pool (in MiB/s).
    +   * 
    + * + * double available_throughput_mibps = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The availableThroughputMibps. + */ + double getAvailableThroughputMibps(); + + /** + * + * + *
    +   * Output only. Total cold tier data rounded down to the nearest GiB used by
    +   * the storage pool.
    +   * 
    + * + * int64 cold_tier_size_used_gib = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The coldTierSizeUsedGib. + */ + long getColdTierSizeUsedGib(); + + /** + * + * + *
    +   * Output only. Total hot tier data rounded down to the nearest GiB used by
    +   * the storage pool.
    +   * 
    + * + * int64 hot_tier_size_used_gib = 34 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The hotTierSizeUsedGib. + */ + long getHotTierSizeUsedGib(); } diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePoolProto.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePoolProto.java index 82d35cafd2fd..e4e15560172b 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePoolProto.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePoolProto.java @@ -112,7 +112,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "!netapp.googleapis.com/StoragePool\"Y\n" + "\036SwitchActiveReplicaZoneRequest\0227\n" + "\004name\030\001 \001(\tB)\340A\002\372A#\n" - + "!netapp.googleapis.com/StoragePool\"\311\n\n" + + "!netapp.googleapis.com/StoragePool\"\344\014\n" + "\013StoragePool\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022@\n\r" + "service_level\030\002" @@ -147,7 +147,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "satisfies_pzi\030\030 \001(\010B\003\340A\003\022\'\n" + "\032custom_performance_enabled\030\031 \001(\010B\003\340A\001\022#\n" + "\026total_throughput_mibps\030\032 \001(\003B\003\340A\001\022\027\n\n" - + "total_iops\030\033 \001(\003B\003\340A\001\032-\n" + + "total_iops\030\033 \001(\003B\003\340A\001\022\036\n" + + "\021hot_tier_size_gib\030\034 \001(\003B\003\340A\001\022-\n" + + "\033enable_hot_tier_auto_resize\030\035" + + " \001(\010B\003\340A\001H\001\210\001\001\0226\n" + + "\010qos_type\030\036" + + " \001(\0162\037.google.cloud.netapp.v1.QosTypeB\003\340A\001\022\'\n" + + "\032available_throughput_mibps\030\037 \001(\001B\003\340A\003\022$\n" + + "\027cold_tier_size_used_gib\030! \001(\003B\003\340A\003\022#\n" + + "\026hot_tier_size_used_gib\030\" \001(\003B\003\340A\003\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"{\n" @@ -160,18 +168,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tRESTORING\020\005\022\014\n" + "\010DISABLED\020\006\022\t\n" + "\005ERROR\020\007:\207\001\352A\203\001\n" - + "!netapp.googleapis.com/StoragePool\022Cprojects/{project}/locations/{l" - + "ocation}/storagePools/{storage_pool}*\014storagePools2\013storagePoolB\030\n" - + "\026_global_access_allowed\"\250\001\n" + + "!netapp.googleapis.com/StoragePool\022Cprojects/{project}/l" + + "ocations/{location}/storagePools/{storage_pool}*\014storagePools2\013storagePoolB\030\n" + + "\026_global_access_allowedB\036\n" + + "\034_enable_hot_tier_auto_resize\"\250\001\n" + "\037ValidateDirectoryServiceRequest\0227\n" + "\004name\030\001 \001(\tB)\340A\002\372A#\n" + "!netapp.googleapis.com/StoragePool\022L\n" + "\026directory_service_type\030\002" + " \001(\0162,.google.cloud.netapp.v1.DirectoryServiceTypeB\262\001\n" - + "\032com.google.cloud.netapp.v1B\020StoragePoolProtoP\001Z2cloud.g" - + "oogle.com/go/netapp/apiv1/netapppb;netap" - + "ppb\252\002\026Google.Cloud.NetApp.V1\312\002\026Google\\Cl" - + "oud\\NetApp\\V1\352\002\031Google::Cloud::NetApp::V1b\006proto3" + + "\032com.google.cloud.netapp.v1B\020StoragePoolProtoP\001Z2clou" + + "d.google.com/go/netapp/apiv1/netapppb;ne" + + "tapppb\252\002\026Google.Cloud.NetApp.V1\312\002\026Google" + + "\\Cloud\\NetApp\\V1\352\002\031Google::Cloud::NetApp::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -270,6 +279,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CustomPerformanceEnabled", "TotalThroughputMibps", "TotalIops", + "HotTierSizeGib", + "EnableHotTierAutoResize", + "QosType", + "AvailableThroughputMibps", + "ColdTierSizeUsedGib", + "HotTierSizeUsedGib", }); internal_static_google_cloud_netapp_v1_StoragePool_LabelsEntry_descriptor = internal_static_google_cloud_netapp_v1_StoragePool_descriptor.getNestedTypes().get(0); diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/TieringPolicy.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/TieringPolicy.java index b070fd9406d3..d1f1a17103cc 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/TieringPolicy.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/TieringPolicy.java @@ -329,6 +329,45 @@ public int getCoolingThresholdDays() { return coolingThresholdDays_; } + public static final int HOT_TIER_BYPASS_MODE_ENABLED_FIELD_NUMBER = 3; + private boolean hotTierBypassModeEnabled_ = false; + + /** + * + * + *
    +   * Optional. Flag indicating that the hot tier bypass mode is enabled. Default
    +   * is false. This is only applicable to Flex service level.
    +   * 
    + * + * optional bool hot_tier_bypass_mode_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the hotTierBypassModeEnabled field is set. + */ + @java.lang.Override + public boolean hasHotTierBypassModeEnabled() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +   * Optional. Flag indicating that the hot tier bypass mode is enabled. Default
    +   * is false. This is only applicable to Flex service level.
    +   * 
    + * + * optional bool hot_tier_bypass_mode_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The hotTierBypassModeEnabled. + */ + @java.lang.Override + public boolean getHotTierBypassModeEnabled() { + return hotTierBypassModeEnabled_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -349,6 +388,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeInt32(2, coolingThresholdDays_); } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeBool(3, hotTierBypassModeEnabled_); + } getUnknownFields().writeTo(output); } @@ -364,6 +406,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, coolingThresholdDays_); } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, hotTierBypassModeEnabled_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -387,6 +432,10 @@ public boolean equals(final java.lang.Object obj) { if (hasCoolingThresholdDays()) { if (getCoolingThresholdDays() != other.getCoolingThresholdDays()) return false; } + if (hasHotTierBypassModeEnabled() != other.hasHotTierBypassModeEnabled()) return false; + if (hasHotTierBypassModeEnabled()) { + if (getHotTierBypassModeEnabled() != other.getHotTierBypassModeEnabled()) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -406,6 +455,10 @@ public int hashCode() { hash = (37 * hash) + COOLING_THRESHOLD_DAYS_FIELD_NUMBER; hash = (53 * hash) + getCoolingThresholdDays(); } + if (hasHotTierBypassModeEnabled()) { + hash = (37 * hash) + HOT_TIER_BYPASS_MODE_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHotTierBypassModeEnabled()); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -548,6 +601,7 @@ public Builder clear() { bitField0_ = 0; tierAction_ = 0; coolingThresholdDays_ = 0; + hotTierBypassModeEnabled_ = false; return this; } @@ -593,6 +647,10 @@ private void buildPartial0(com.google.cloud.netapp.v1.TieringPolicy result) { result.coolingThresholdDays_ = coolingThresholdDays_; to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.hotTierBypassModeEnabled_ = hotTierBypassModeEnabled_; + to_bitField0_ |= 0x00000004; + } result.bitField0_ |= to_bitField0_; } @@ -647,6 +705,9 @@ public Builder mergeFrom(com.google.cloud.netapp.v1.TieringPolicy other) { if (other.hasCoolingThresholdDays()) { setCoolingThresholdDays(other.getCoolingThresholdDays()); } + if (other.hasHotTierBypassModeEnabled()) { + setHotTierBypassModeEnabled(other.getHotTierBypassModeEnabled()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -685,6 +746,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 16 + case 24: + { + hotTierBypassModeEnabled_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -915,6 +982,90 @@ public Builder clearCoolingThresholdDays() { return this; } + private boolean hotTierBypassModeEnabled_; + + /** + * + * + *
    +     * Optional. Flag indicating that the hot tier bypass mode is enabled. Default
    +     * is false. This is only applicable to Flex service level.
    +     * 
    + * + * + * optional bool hot_tier_bypass_mode_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the hotTierBypassModeEnabled field is set. + */ + @java.lang.Override + public boolean hasHotTierBypassModeEnabled() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +     * Optional. Flag indicating that the hot tier bypass mode is enabled. Default
    +     * is false. This is only applicable to Flex service level.
    +     * 
    + * + * + * optional bool hot_tier_bypass_mode_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The hotTierBypassModeEnabled. + */ + @java.lang.Override + public boolean getHotTierBypassModeEnabled() { + return hotTierBypassModeEnabled_; + } + + /** + * + * + *
    +     * Optional. Flag indicating that the hot tier bypass mode is enabled. Default
    +     * is false. This is only applicable to Flex service level.
    +     * 
    + * + * + * optional bool hot_tier_bypass_mode_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The hotTierBypassModeEnabled to set. + * @return This builder for chaining. + */ + public Builder setHotTierBypassModeEnabled(boolean value) { + + hotTierBypassModeEnabled_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Flag indicating that the hot tier bypass mode is enabled. Default
    +     * is false. This is only applicable to Flex service level.
    +     * 
    + * + * + * optional bool hot_tier_bypass_mode_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearHotTierBypassModeEnabled() { + bitField0_ = (bitField0_ & ~0x00000004); + hotTierBypassModeEnabled_ = 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-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/TieringPolicyOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/TieringPolicyOrBuilder.java index 7cde8f0016a3..ccb9b0c2b905 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/TieringPolicyOrBuilder.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/TieringPolicyOrBuilder.java @@ -101,4 +101,34 @@ public interface TieringPolicyOrBuilder * @return The coolingThresholdDays. */ int getCoolingThresholdDays(); + + /** + * + * + *
    +   * Optional. Flag indicating that the hot tier bypass mode is enabled. Default
    +   * is false. This is only applicable to Flex service level.
    +   * 
    + * + * optional bool hot_tier_bypass_mode_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the hotTierBypassModeEnabled field is set. + */ + boolean hasHotTierBypassModeEnabled(); + + /** + * + * + *
    +   * Optional. Flag indicating that the hot tier bypass mode is enabled. Default
    +   * is false. This is only applicable to Flex service level.
    +   * 
    + * + * optional bool hot_tier_bypass_mode_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The hotTierBypassModeEnabled. + */ + boolean getHotTierBypassModeEnabled(); } diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/UserCommands.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/UserCommands.java new file mode 100644 index 000000000000..fe5c51431345 --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/UserCommands.java @@ -0,0 +1,733 @@ +/* + * 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/netapp/v1/common.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.netapp.v1; + +/** + * + * + *
    + * UserCommands contains the commands to be executed by the customer.
    + * 
    + * + * Protobuf type {@code google.cloud.netapp.v1.UserCommands} + */ +public final class UserCommands extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.netapp.v1.UserCommands) + UserCommandsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UserCommands.newBuilder() to construct. + private UserCommands(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UserCommands() { + commands_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UserCommands(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.CommonProto + .internal_static_google_cloud_netapp_v1_UserCommands_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.CommonProto + .internal_static_google_cloud_netapp_v1_UserCommands_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.UserCommands.class, + com.google.cloud.netapp.v1.UserCommands.Builder.class); + } + + public static final int COMMANDS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList commands_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
    +   * Output only. List of commands to be executed by the customer.
    +   * 
    + * + * repeated string commands = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the commands. + */ + public com.google.protobuf.ProtocolStringList getCommandsList() { + return commands_; + } + + /** + * + * + *
    +   * Output only. List of commands to be executed by the customer.
    +   * 
    + * + * repeated string commands = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of commands. + */ + public int getCommandsCount() { + return commands_.size(); + } + + /** + * + * + *
    +   * Output only. List of commands to be executed by the customer.
    +   * 
    + * + * repeated string commands = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The commands at the given index. + */ + public java.lang.String getCommands(int index) { + return commands_.get(index); + } + + /** + * + * + *
    +   * Output only. List of commands to be executed by the customer.
    +   * 
    + * + * repeated string commands = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the commands at the given index. + */ + public com.google.protobuf.ByteString getCommandsBytes(int index) { + return commands_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < commands_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, commands_.getRaw(i)); + } + 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 < commands_.size(); i++) { + dataSize += computeStringSizeNoTag(commands_.getRaw(i)); + } + size += dataSize; + size += 1 * getCommandsList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.netapp.v1.UserCommands)) { + return super.equals(obj); + } + com.google.cloud.netapp.v1.UserCommands other = (com.google.cloud.netapp.v1.UserCommands) obj; + + if (!getCommandsList().equals(other.getCommandsList())) 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 (getCommandsCount() > 0) { + hash = (37 * hash) + COMMANDS_FIELD_NUMBER; + hash = (53 * hash) + getCommandsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.netapp.v1.UserCommands parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.UserCommands 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.netapp.v1.UserCommands parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.UserCommands parseFrom( + 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.netapp.v1.UserCommands parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.UserCommands parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.netapp.v1.UserCommands parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.UserCommands 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.netapp.v1.UserCommands parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.UserCommands 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.netapp.v1.UserCommands parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.UserCommands 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.netapp.v1.UserCommands prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
    +   * UserCommands contains the commands to be executed by the customer.
    +   * 
    + * + * Protobuf type {@code google.cloud.netapp.v1.UserCommands} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.netapp.v1.UserCommands) + com.google.cloud.netapp.v1.UserCommandsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.CommonProto + .internal_static_google_cloud_netapp_v1_UserCommands_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.CommonProto + .internal_static_google_cloud_netapp_v1_UserCommands_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.UserCommands.class, + com.google.cloud.netapp.v1.UserCommands.Builder.class); + } + + // Construct using com.google.cloud.netapp.v1.UserCommands.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + commands_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.netapp.v1.CommonProto + .internal_static_google_cloud_netapp_v1_UserCommands_descriptor; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.UserCommands getDefaultInstanceForType() { + return com.google.cloud.netapp.v1.UserCommands.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.netapp.v1.UserCommands build() { + com.google.cloud.netapp.v1.UserCommands result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.UserCommands buildPartial() { + com.google.cloud.netapp.v1.UserCommands result = + new com.google.cloud.netapp.v1.UserCommands(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.netapp.v1.UserCommands result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + commands_.makeImmutable(); + result.commands_ = commands_; + } + } + + @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.netapp.v1.UserCommands) { + return mergeFrom((com.google.cloud.netapp.v1.UserCommands) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.netapp.v1.UserCommands other) { + if (other == com.google.cloud.netapp.v1.UserCommands.getDefaultInstance()) return this; + if (!other.commands_.isEmpty()) { + if (commands_.isEmpty()) { + commands_ = other.commands_; + bitField0_ |= 0x00000001; + } else { + ensureCommandsIsMutable(); + commands_.addAll(other.commands_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureCommandsIsMutable(); + commands_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList commands_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureCommandsIsMutable() { + if (!commands_.isModifiable()) { + commands_ = new com.google.protobuf.LazyStringArrayList(commands_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
    +     * Output only. List of commands to be executed by the customer.
    +     * 
    + * + * repeated string commands = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the commands. + */ + public com.google.protobuf.ProtocolStringList getCommandsList() { + commands_.makeImmutable(); + return commands_; + } + + /** + * + * + *
    +     * Output only. List of commands to be executed by the customer.
    +     * 
    + * + * repeated string commands = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of commands. + */ + public int getCommandsCount() { + return commands_.size(); + } + + /** + * + * + *
    +     * Output only. List of commands to be executed by the customer.
    +     * 
    + * + * repeated string commands = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The commands at the given index. + */ + public java.lang.String getCommands(int index) { + return commands_.get(index); + } + + /** + * + * + *
    +     * Output only. List of commands to be executed by the customer.
    +     * 
    + * + * repeated string commands = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the commands at the given index. + */ + public com.google.protobuf.ByteString getCommandsBytes(int index) { + return commands_.getByteString(index); + } + + /** + * + * + *
    +     * Output only. List of commands to be executed by the customer.
    +     * 
    + * + * repeated string commands = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index to set the value at. + * @param value The commands to set. + * @return This builder for chaining. + */ + public Builder setCommands(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCommandsIsMutable(); + commands_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. List of commands to be executed by the customer.
    +     * 
    + * + * repeated string commands = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The commands to add. + * @return This builder for chaining. + */ + public Builder addCommands(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCommandsIsMutable(); + commands_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. List of commands to be executed by the customer.
    +     * 
    + * + * repeated string commands = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param values The commands to add. + * @return This builder for chaining. + */ + public Builder addAllCommands(java.lang.Iterable values) { + ensureCommandsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, commands_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. List of commands to be executed by the customer.
    +     * 
    + * + * repeated string commands = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearCommands() { + commands_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. List of commands to be executed by the customer.
    +     * 
    + * + * repeated string commands = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes of the commands to add. + * @return This builder for chaining. + */ + public Builder addCommandsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureCommandsIsMutable(); + commands_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.netapp.v1.UserCommands) + } + + // @@protoc_insertion_point(class_scope:google.cloud.netapp.v1.UserCommands) + private static final com.google.cloud.netapp.v1.UserCommands DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.netapp.v1.UserCommands(); + } + + public static com.google.cloud.netapp.v1.UserCommands getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserCommands parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.netapp.v1.UserCommands getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/UserCommandsOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/UserCommandsOrBuilder.java new file mode 100644 index 000000000000..e1da4a3ad47a --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/UserCommandsOrBuilder.java @@ -0,0 +1,80 @@ +/* + * 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/netapp/v1/common.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.netapp.v1; + +public interface UserCommandsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.netapp.v1.UserCommands) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Output only. List of commands to be executed by the customer.
    +   * 
    + * + * repeated string commands = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the commands. + */ + java.util.List getCommandsList(); + + /** + * + * + *
    +   * Output only. List of commands to be executed by the customer.
    +   * 
    + * + * repeated string commands = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of commands. + */ + int getCommandsCount(); + + /** + * + * + *
    +   * Output only. List of commands to be executed by the customer.
    +   * 
    + * + * repeated string commands = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The commands at the given index. + */ + java.lang.String getCommands(int index); + + /** + * + * + *
    +   * Output only. List of commands to be executed by the customer.
    +   * 
    + * + * repeated string commands = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the commands at the given index. + */ + com.google.protobuf.ByteString getCommandsBytes(int index); +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/Volume.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/Volume.java index 2e5c1df033a3..e9b987b1d38d 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/Volume.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/Volume.java @@ -2297,7 +2297,8 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
    -   * Output only. Size of the volume cold tier data in GiB.
    +   * Output only. Size of the volume cold tier data rounded down to the nearest
    +   * GiB.
        * 
    * * int64 cold_tier_size_gib = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2369,6 +2370,45 @@ public com.google.cloud.netapp.v1.HybridReplicationParameters getHybridReplicati : hybridReplicationParameters_; } + public static final int THROUGHPUT_MIBPS_FIELD_NUMBER = 41; + private double throughputMibps_ = 0D; + + /** + * + * + *
    +   * Optional. Throughput of the volume (in MiB/s)
    +   * 
    + * + * double throughput_mibps = 41 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The throughputMibps. + */ + @java.lang.Override + public double getThroughputMibps() { + return throughputMibps_; + } + + public static final int HOT_TIER_SIZE_USED_GIB_FIELD_NUMBER = 44; + private long hotTierSizeUsedGib_ = 0L; + + /** + * + * + *
    +   * Output only. Total hot tier data rounded down to the nearest GiB used by
    +   * the Volume. This field is only used for flex Service Level
    +   * 
    + * + * int64 hot_tier_size_used_gib = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The hotTierSizeUsedGib. + */ + @java.lang.Override + public long getHotTierSizeUsedGib() { + return hotTierSizeUsedGib_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2512,6 +2552,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000040) != 0)) { output.writeMessage(40, getHybridReplicationParameters()); } + if (java.lang.Double.doubleToRawLongBits(throughputMibps_) != 0) { + output.writeDouble(41, throughputMibps_); + } + if (hotTierSizeUsedGib_ != 0L) { + output.writeInt64(44, hotTierSizeUsedGib_); + } getUnknownFields().writeTo(output); } @@ -2675,6 +2721,12 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 40, getHybridReplicationParameters()); } + if (java.lang.Double.doubleToRawLongBits(throughputMibps_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(41, throughputMibps_); + } + if (hotTierSizeUsedGib_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(44, hotTierSizeUsedGib_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2751,6 +2803,9 @@ public boolean equals(final java.lang.Object obj) { if (!getHybridReplicationParameters().equals(other.getHybridReplicationParameters())) return false; } + if (java.lang.Double.doubleToLongBits(getThroughputMibps()) + != java.lang.Double.doubleToLongBits(other.getThroughputMibps())) return false; + if (getHotTierSizeUsedGib() != other.getHotTierSizeUsedGib()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2865,6 +2920,13 @@ public int hashCode() { hash = (37 * hash) + HYBRID_REPLICATION_PARAMETERS_FIELD_NUMBER; hash = (53 * hash) + getHybridReplicationParameters().hashCode(); } + hash = (37 * hash) + THROUGHPUT_MIBPS_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getThroughputMibps())); + hash = (37 * hash) + HOT_TIER_SIZE_USED_GIB_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getHotTierSizeUsedGib()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -3118,6 +3180,8 @@ public Builder clear() { hybridReplicationParametersBuilder_.dispose(); hybridReplicationParametersBuilder_ = null; } + throughputMibps_ = 0D; + hotTierSizeUsedGib_ = 0L; return this; } @@ -3311,6 +3375,12 @@ private void buildPartial1(com.google.cloud.netapp.v1.Volume result) { : hybridReplicationParametersBuilder_.build(); to_bitField0_ |= 0x00000040; } + if (((from_bitField1_ & 0x00000040) != 0)) { + result.throughputMibps_ = throughputMibps_; + } + if (((from_bitField1_ & 0x00000080) != 0)) { + result.hotTierSizeUsedGib_ = hotTierSizeUsedGib_; + } result.bitField0_ |= to_bitField0_; } @@ -3541,6 +3611,12 @@ public Builder mergeFrom(com.google.cloud.netapp.v1.Volume other) { if (other.hasHybridReplicationParameters()) { mergeHybridReplicationParameters(other.getHybridReplicationParameters()); } + if (other.getThroughputMibps() != 0D) { + setThroughputMibps(other.getThroughputMibps()); + } + if (other.getHotTierSizeUsedGib() != 0L) { + setHotTierSizeUsedGib(other.getHotTierSizeUsedGib()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -3849,6 +3925,18 @@ public Builder mergeFrom( bitField1_ |= 0x00000020; break; } // case 322 + case 329: + { + throughputMibps_ = input.readDouble(); + bitField1_ |= 0x00000040; + break; + } // case 329 + case 352: + { + hotTierSizeUsedGib_ = input.readInt64(); + bitField1_ |= 0x00000080; + break; + } // case 352 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -8803,7 +8891,8 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * *
    -     * Output only. Size of the volume cold tier data in GiB.
    +     * Output only. Size of the volume cold tier data rounded down to the nearest
    +     * GiB.
          * 
    * * int64 cold_tier_size_gib = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -8819,7 +8908,8 @@ public long getColdTierSizeGib() { * * *
    -     * Output only. Size of the volume cold tier data in GiB.
    +     * Output only. Size of the volume cold tier data rounded down to the nearest
    +     * GiB.
          * 
    * * int64 cold_tier_size_gib = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -8839,7 +8929,8 @@ public Builder setColdTierSizeGib(long value) { * * *
    -     * Output only. Size of the volume cold tier data in GiB.
    +     * Output only. Size of the volume cold tier data rounded down to the nearest
    +     * GiB.
          * 
    * * int64 cold_tier_size_gib = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -9071,6 +9162,121 @@ public Builder clearHybridReplicationParameters() { return hybridReplicationParametersBuilder_; } + private double throughputMibps_; + + /** + * + * + *
    +     * Optional. Throughput of the volume (in MiB/s)
    +     * 
    + * + * double throughput_mibps = 41 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The throughputMibps. + */ + @java.lang.Override + public double getThroughputMibps() { + return throughputMibps_; + } + + /** + * + * + *
    +     * Optional. Throughput of the volume (in MiB/s)
    +     * 
    + * + * double throughput_mibps = 41 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The throughputMibps to set. + * @return This builder for chaining. + */ + public Builder setThroughputMibps(double value) { + + throughputMibps_ = value; + bitField1_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Throughput of the volume (in MiB/s)
    +     * 
    + * + * double throughput_mibps = 41 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearThroughputMibps() { + bitField1_ = (bitField1_ & ~0x00000040); + throughputMibps_ = 0D; + onChanged(); + return this; + } + + private long hotTierSizeUsedGib_; + + /** + * + * + *
    +     * Output only. Total hot tier data rounded down to the nearest GiB used by
    +     * the Volume. This field is only used for flex Service Level
    +     * 
    + * + * int64 hot_tier_size_used_gib = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The hotTierSizeUsedGib. + */ + @java.lang.Override + public long getHotTierSizeUsedGib() { + return hotTierSizeUsedGib_; + } + + /** + * + * + *
    +     * Output only. Total hot tier data rounded down to the nearest GiB used by
    +     * the Volume. This field is only used for flex Service Level
    +     * 
    + * + * int64 hot_tier_size_used_gib = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The hotTierSizeUsedGib to set. + * @return This builder for chaining. + */ + public Builder setHotTierSizeUsedGib(long value) { + + hotTierSizeUsedGib_ = value; + bitField1_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Total hot tier data rounded down to the nearest GiB used by
    +     * the Volume. This field is only used for flex Service Level
    +     * 
    + * + * int64 hot_tier_size_used_gib = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearHotTierSizeUsedGib() { + bitField1_ = (bitField1_ & ~0x00000080); + hotTierSizeUsedGib_ = 0L; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeOrBuilder.java index 5e0cda812bde..e89106b5919d 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeOrBuilder.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeOrBuilder.java @@ -1211,7 +1211,8 @@ java.lang.String getLabelsOrDefault( * * *
    -   * Output only. Size of the volume cold tier data in GiB.
    +   * Output only. Size of the volume cold tier data rounded down to the nearest
    +   * GiB.
        * 
    * * int64 cold_tier_size_gib = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1263,4 +1264,31 @@ java.lang.String getLabelsOrDefault( */ com.google.cloud.netapp.v1.HybridReplicationParametersOrBuilder getHybridReplicationParametersOrBuilder(); + + /** + * + * + *
    +   * Optional. Throughput of the volume (in MiB/s)
    +   * 
    + * + * double throughput_mibps = 41 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The throughputMibps. + */ + double getThroughputMibps(); + + /** + * + * + *
    +   * Output only. Total hot tier data rounded down to the nearest GiB used by
    +   * the Volume. This field is only used for flex Service Level
    +   * 
    + * + * int64 hot_tier_size_used_gib = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The hotTierSizeUsedGib. + */ + long getHotTierSizeUsedGib(); } diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeProto.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeProto.java index cf834b2b8fd6..345d305eea0c 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeProto.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeProto.java @@ -161,7 +161,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023RevertVolumeRequest\0222\n" + "\004name\030\001 \001(\tB$\340A\002\372A\036\n" + "\034netapp.googleapis.com/Volume\022\030\n" - + "\013snapshot_id\030\002 \001(\tB\003\340A\002\"\221\021\n" + + "\013snapshot_id\030\002 \001(\tB\003\340A\002\"\325\021\n" + "\006Volume\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\0228\n" + "\005state\030\002 \001(\0162$.g" @@ -220,7 +220,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004zone\030% \001(\tB\003\340A\003\022\037\n" + "\022cold_tier_size_gib\030\' \001(\003B\003\340A\003\022_\n" + "\035hybrid_replication_parameters\030(" - + " \001(\01323.google.cloud.netapp.v1.HybridReplicationParametersB\003\340A\001\032-\n" + + " \001(\01323.google.cloud.netapp.v1.HybridReplicationParametersB\003\340A\001\022\035\n" + + "\020throughput_mibps\030) \001(\001B\003\340A\001\022#\n" + + "\026hot_tier_size_used_gib\030, \001(\003B\003\340A\003\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\231\001\n" @@ -229,14 +231,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005READY\020\001\022\014\n" + "\010CREATING\020\002\022\014\n" + "\010DELETING\020\003\022\014\n" - + "\010UPDATING\020\004\022\r\n" + + "\010UPDATING\020\004\022\r" + + "\n" + "\tRESTORING\020\005\022\014\n" + "\010DISABLED\020\006\022\t\n" - + "\005ERROR\020\007\022\r\n" + + "\005ERROR\020\007\022\r" + + "\n" + "\tPREPARING\020\010\022\r\n" + "\tREAD_ONLY\020\t:l\352Ai\n" - + "\034netapp.googleapis.com/Volume\0228pro" - + "jects/{project}/locations/{location}/volumes/{volume}*\007volumes2\006volumeB\020\n" + + "\034netapp.googleapis.com/Volume\0228projects/{proje" + + "ct}/locations/{location}/volumes/{volume}*\007volumes2\006volumeB\020\n" + "\016_backup_configB\021\n" + "\017_tiering_policy\"R\n" + "\014ExportPolicy\022B\n" @@ -274,8 +278,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132&.google.cloud.netapp.v1.HourlyScheduleH\001\210\001\001\022B\n" + "\016daily_schedule\030\003" + " \001(\0132%.google.cloud.netapp.v1.DailyScheduleH\002\210\001\001\022D\n" - + "\017weekly_schedule\030\004 \001(\0132&.goo" - + "gle.cloud.netapp.v1.WeeklyScheduleH\003\210\001\001\022F\n" + + "\017weekly_schedule\030\004" + + " \001(\0132&.google.cloud.netapp.v1.WeeklyScheduleH\003\210\001\001\022F\n" + "\020monthly_schedule\030\005" + " \001(\0132\'.google.cloud.netapp.v1.MonthlyScheduleH\004\210\001\001B\n\n" + "\010_enabledB\022\n" @@ -331,17 +335,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030scheduled_backup_enabled\030\003 \001(\010B\003\340A\001H\000\210\001\001\022$\n" + "\022backup_chain_bytes\030\004 \001(\003B\003\340A\003H\001\210\001\001B\033\n" + "\031_scheduled_backup_enabledB\025\n" - + "\023_backup_chain_bytes\"\371\001\n\r" + + "\023_backup_chain_bytes\"\312\002\n\r" + "TieringPolicy\022O\n" - + "\013tier_action\030\001 \001(\01620.google.clou" - + "d.netapp.v1.TieringPolicy.TierActionB\003\340A\001H\000\210\001\001\022(\n" - + "\026cooling_threshold_days\030\002 \001(\005B\003\340A\001H\001\210\001\001\"B\n\n" + + "\013tier_action\030\001" + + " \001(\01620.google.cloud.netapp.v1.TieringPolicy.TierActionB\003\340A\001H\000\210\001\001\022(\n" + + "\026cooling_threshold_days\030\002 \001(\005B\003\340A\001H\001\210\001\001\022.\n" + + "\034hot_tier_bypass_mode_enabled\030\003" + + " \001(\010B\003\340A\001H\002\210\001\001\"B\n\n" + "TierAction\022\033\n" + "\027TIER_ACTION_UNSPECIFIED\020\000\022\013\n" + "\007ENABLED\020\001\022\n\n" + "\006PAUSED\020\002B\016\n" + "\014_tier_actionB\031\n" - + "\027_cooling_threshold_days\"\226\003\n" + + "\027_cooling_threshold_daysB\037\n" + + "\035_hot_tier_bypass_mode_enabled\"\303\006\n" + "\033HybridReplicationParameters\022>\n" + "\013replication\030\001 \001(\tB)\340A\002\372A#\n" + "!netapp.googleapis.com/Replication\022\035\n" @@ -351,11 +358,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021peer_ip_addresses\030\005 \003(\tB\003\340A\002\022\035\n" + "\020cluster_location\030\006 \001(\tB\003\340A\001\022\030\n" + "\013description\030\007 \001(\tB\003\340A\001\022T\n" - + "\006labels\030\010 \003(\0132?.google.cloud.netapp.v1.Hyb" - + "ridReplicationParameters.LabelsEntryB\003\340A\001\032-\n" + + "\006labels\030\010 \003(\013" + + "2?.google.cloud.netapp.v1.HybridReplicationParameters.LabelsEntryB\003\340A\001\022T\n" + + "\024replication_schedule\030\t" + + " \001(\01621.google.cloud.netapp.v1.HybridReplicationScheduleB\003\340A\001\022u\n" + + "\027hybrid_replication_type\030\n" + + " \001(\0162O.google.c" + + "loud.netapp.v1.HybridReplicationParameters.VolumeHybridReplicationTypeB\003\340A\001\022+\n" + + "\036large_volume_constituent_count\030\013 \001(\005B\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001*E\n" + + "\005value\030\002 \001(\t:\0028\001\"\260\001\n" + + "\033VolumeHybridReplicationType\022.\n" + + "*VOLUME_HYBRID_REPLICATION_TYPE_UNSPECIFIED\020\000\022\r\n" + + "\tMIGRATION\020\001\022\032\n" + + "\026CONTINUOUS_REPLICATION\020\002\022\026\n" + + "\022ONPREM_REPLICATION\020\003\022\036\n" + + "\032REVERSE_ONPREM_REPLICATION\020\004*E\n" + "\tProtocols\022\031\n" + "\025PROTOCOLS_UNSPECIFIED\020\000\022\t\n" + "\005NFSV3\020\001\022\t\n" @@ -384,10 +403,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020RestrictedAction\022!\n" + "\035RESTRICTED_ACTION_UNSPECIFIED\020\000\022\n\n" + "\006DELETE\020\001B\255\001\n" - + "\032com.google.cloud.netapp.v1B\013VolumeProtoP\001Z2cloud.google." - + "com/go/netapp/apiv1/netapppb;netapppb\252\002\026" - + "Google.Cloud.NetApp.V1\312\002\026Google\\Cloud\\Ne" - + "tApp\\V1\352\002\031Google::Cloud::NetApp::V1b\006proto3" + + "\032com.google.cloud.netapp.v1B\013VolumeProt" + + "oP\001Z2cloud.google.com/go/netapp/apiv1/ne" + + "tapppb;netapppb\252\002\026Google.Cloud.NetApp.V1" + + "\312\002\026Google\\Cloud\\NetApp\\V1\352\002\031Google::Cloud::NetApp::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -500,6 +519,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Zone", "ColdTierSizeGib", "HybridReplicationParameters", + "ThroughputMibps", + "HotTierSizeUsedGib", }); internal_static_google_cloud_netapp_v1_Volume_LabelsEntry_descriptor = internal_static_google_cloud_netapp_v1_Volume_descriptor.getNestedTypes().get(0); @@ -605,7 +626,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_netapp_v1_TieringPolicy_descriptor, new java.lang.String[] { - "TierAction", "CoolingThresholdDays", + "TierAction", "CoolingThresholdDays", "HotTierBypassModeEnabled", }); internal_static_google_cloud_netapp_v1_HybridReplicationParameters_descriptor = getDescriptor().getMessageTypes().get(19); @@ -621,6 +642,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ClusterLocation", "Description", "Labels", + "ReplicationSchedule", + "HybridReplicationType", + "LargeVolumeConstituentCount", }); internal_static_google_cloud_netapp_v1_HybridReplicationParameters_LabelsEntry_descriptor = internal_static_google_cloud_netapp_v1_HybridReplicationParameters_descriptor diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/backup_vault.proto b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/backup_vault.proto index bf190762240e..603ed38e7bba 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/backup_vault.proto +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/backup_vault.proto @@ -46,22 +46,22 @@ message BackupVault { [(google.api.field_behavior) = REQUIRED]; // Optional. Indicates if the daily backups are immutable. - // Atleast one of daily_backup_immutable, weekly_backup_immutable, + // At least one of daily_backup_immutable, weekly_backup_immutable, // monthly_backup_immutable and manual_backup_immutable must be true. bool daily_backup_immutable = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. Indicates if the weekly backups are immutable. - // Atleast one of daily_backup_immutable, weekly_backup_immutable, + // At least one of daily_backup_immutable, weekly_backup_immutable, // monthly_backup_immutable and manual_backup_immutable must be true. bool weekly_backup_immutable = 3 [(google.api.field_behavior) = OPTIONAL]; // Optional. Indicates if the monthly backups are immutable. - // Atleast one of daily_backup_immutable, weekly_backup_immutable, + // At least one of daily_backup_immutable, weekly_backup_immutable, // monthly_backup_immutable and manual_backup_immutable must be true. bool monthly_backup_immutable = 4 [(google.api.field_behavior) = OPTIONAL]; // Optional. Indicates if the manual backups are immutable. - // Atleast one of daily_backup_immutable, weekly_backup_immutable, + // At least one of daily_backup_immutable, weekly_backup_immutable, // monthly_backup_immutable and manual_backup_immutable must be true. bool manual_backup_immutable = 5 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/common.proto b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/common.proto index aa8f264db1f6..6feac387543f 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/common.proto +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/common.proto @@ -77,6 +77,35 @@ enum DirectoryServiceType { ACTIVE_DIRECTORY = 1; } +// Schedule for Hybrid Replication. +// New enum values may be added in future to support different frequency of +// replication. +enum HybridReplicationSchedule { + // Unspecified HybridReplicationSchedule + HYBRID_REPLICATION_SCHEDULE_UNSPECIFIED = 0; + + // Replication happens once every 10 minutes. + EVERY_10_MINUTES = 1; + + // Replication happens once every hour. + HOURLY = 2; + + // Replication happens once every day. + DAILY = 3; +} + +// QoS (Quality of Service) Types of the storage pool +enum QosType { + // Unspecified QoS Type + QOS_TYPE_UNSPECIFIED = 0; + + // QoS Type is Auto + AUTO = 1; + + // QoS Type is Manual + MANUAL = 2; +} + // Metadata for a given // [google.cloud.location.Location][google.cloud.location.Location]. message LocationMetadata { @@ -87,4 +116,13 @@ message LocationMetadata { // Output only. Supported flex performance in a location. repeated FlexPerformance supported_flex_performance = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Indicates if the location has VCP support. + bool has_vcp = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// UserCommands contains the commands to be executed by the customer. +message UserCommands { + // Output only. List of commands to be executed by the customer. + repeated string commands = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/replication.proto b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/replication.proto index 0dd20bbdba93..506aed5ad7d0 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/replication.proto +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/replication.proto @@ -18,6 +18,7 @@ package google.cloud.netapp.v1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/netapp/v1/common.proto"; import "google/cloud/netapp/v1/volume.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/field_mask.proto"; @@ -97,6 +98,13 @@ message Replication { // Replication is waiting for SVM peering to be established. PENDING_SVM_PEERING = 9; + + // Replication is waiting for Commands to be executed on Onprem ONTAP. + PENDING_REMOTE_RESYNC = 10; + + // Onprem ONTAP is destination and Replication can only be managed from + // Onprem. + EXTERNALLY_MANAGED_REPLICATION = 11; } // New enum values may be added in future to support different replication @@ -153,6 +161,12 @@ message Replication { // Replication is aborted. ABORTED = 6; + + // Replication is being managed from Onprem ONTAP. + EXTERNALLY_MANAGED = 7; + + // Peering is yet to be established. + PENDING_PEERING = 8; } // Hybrid replication type. @@ -165,6 +179,14 @@ message Replication { // Hybrid replication type for continuous replication. CONTINUOUS_REPLICATION = 2; + + // New field for reversible OnPrem replication, to be used for data + // protection. + ONPREM_REPLICATION = 3; + + // Hybrid replication type for incremental Transfer in the reverse direction + // (GCNV is source and Onprem is destination) + REVERSE_ONPREM_REPLICATION = 4; } // Identifier. The resource name of the Replication. @@ -238,36 +260,42 @@ message Replication { // Output only. Type of the hybrid replication. HybridReplicationType hybrid_replication_type = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Copy pastable snapmirror commands to be executed on onprem + // cluster by the customer. + UserCommands hybrid_replication_user_commands = 20 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // HybridPeeringDetails contains details about the hybrid peering. message HybridPeeringDetails { - // Optional. IP address of the subnet. - string subnet_ip = 1 [(google.api.field_behavior) = OPTIONAL]; + // Output only. IP address of the subnet. + string subnet_ip = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Optional. Copy-paste-able commands to be used on user's ONTAP to accept + // Output only. Copy-paste-able commands to be used on user's ONTAP to accept // peering requests. - string command = 2 [(google.api.field_behavior) = OPTIONAL]; + string command = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Optional. Expiration time for the peering command to be executed on user's - // ONTAP. + // Output only. Expiration time for the peering command to be executed on + // user's ONTAP. google.protobuf.Timestamp command_expiry_time = 3 - [(google.api.field_behavior) = OPTIONAL]; + [(google.api.field_behavior) = OUTPUT_ONLY]; - // Optional. Temporary passphrase generated to accept cluster peering command. - string passphrase = 4 [(google.api.field_behavior) = OPTIONAL]; + // Output only. Temporary passphrase generated to accept cluster peering + // command. + string passphrase = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Optional. Name of the user's local source volume to be peered with the + // Output only. Name of the user's local source volume to be peered with the // destination volume. - string peer_volume_name = 5 [(google.api.field_behavior) = OPTIONAL]; + string peer_volume_name = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Optional. Name of the user's local source cluster to be peered with the + // Output only. Name of the user's local source cluster to be peered with the // destination cluster. - string peer_cluster_name = 6 [(google.api.field_behavior) = OPTIONAL]; + string peer_cluster_name = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Optional. Name of the user's local source vserver svm to be peered with the - // destination vserver svm. - string peer_svm_name = 7 [(google.api.field_behavior) = OPTIONAL]; + // Output only. Name of the user's local source vserver svm to be peered with + // the destination vserver svm. + string peer_svm_name = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; } // ListReplications lists replications. diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/storage_pool.proto b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/storage_pool.proto index e0033547cb46..25b84c029e4f 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/storage_pool.proto +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/storage_pool.proto @@ -264,12 +264,41 @@ message StoragePool { // (Hyperdisk) By default set to false bool custom_performance_enabled = 25 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Custom Performance Total Throughput of the pool (in MiB/s) + // Optional. Custom Performance Total Throughput of the pool (in MiBps) int64 total_throughput_mibps = 26 [(google.api.field_behavior) = OPTIONAL]; // Optional. Custom Performance Total IOPS of the pool - // If not provided, it will be calculated based on the total_throughput_mibps + // if not provided, it will be calculated based on the total_throughput_mibps int64 total_iops = 27 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Total hot tier capacity for the Storage Pool. It is applicable + // only to Flex service level. It should be less than the minimum storage pool + // size and cannot be more than the current storage pool size. It cannot be + // decreased once set. + int64 hot_tier_size_gib = 28 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Flag indicating that the hot-tier threshold will be + // auto-increased by 10% of the hot-tier when it hits 100%. Default is true. + // The increment will kick in only if the new size after increment is + // still less than or equal to storage pool size. + optional bool enable_hot_tier_auto_resize = 29 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. QoS (Quality of Service) Type of the storage pool + QosType qos_type = 30 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Available throughput of the storage pool (in MiB/s). + double available_throughput_mibps = 31 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Total cold tier data rounded down to the nearest GiB used by + // the storage pool. + int64 cold_tier_size_used_gib = 33 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Total hot tier data rounded down to the nearest GiB used by + // the storage pool. + int64 hot_tier_size_used_gib = 34 [(google.api.field_behavior) = OUTPUT_ONLY]; } // ValidateDirectoryServiceRequest validates the directory service policy diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/volume.proto b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/volume.proto index c323d3675fd4..3ee02d04b266 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/volume.proto +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/volume.proto @@ -412,12 +412,20 @@ message Volume { // Output only. Specifies the active zone for regional volume. string zone = 37 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Size of the volume cold tier data in GiB. + // Output only. Size of the volume cold tier data rounded down to the nearest + // GiB. int64 cold_tier_size_gib = 39 [(google.api.field_behavior) = OUTPUT_ONLY]; // Optional. The Hybrid Replication parameters for the volume. HybridReplicationParameters hybrid_replication_parameters = 40 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Throughput of the volume (in MiB/s) + double throughput_mibps = 41 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Total hot tier data rounded down to the nearest GiB used by + // the Volume. This field is only used for flex Service Level + int64 hot_tier_size_used_gib = 44 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Defines the export policy for the volume. @@ -647,10 +655,35 @@ message TieringPolicy { // eligible for tiering, can be range from 2-183. Default is 31. optional int32 cooling_threshold_days = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Flag indicating that the hot tier bypass mode is enabled. Default + // is false. This is only applicable to Flex service level. + optional bool hot_tier_bypass_mode_enabled = 3 + [(google.api.field_behavior) = OPTIONAL]; } // The Hybrid Replication parameters for the volume. message HybridReplicationParameters { + // Type of the volume's hybrid replication. + enum VolumeHybridReplicationType { + // Unspecified hybrid replication type. + VOLUME_HYBRID_REPLICATION_TYPE_UNSPECIFIED = 0; + + // Hybrid replication type for migration. + MIGRATION = 1; + + // Hybrid replication type for continuous replication. + CONTINUOUS_REPLICATION = 2; + + // New field for reversible OnPrem replication, to be used for data + // protection. + ONPREM_REPLICATION = 3; + + // New field for reversible OnPrem replication, to be used for data + // protection. + REVERSE_ONPREM_REPLICATION = 4; + } + // Required. Desired name for the replication of this volume. string replication = 1 [ (google.api.field_behavior) = REQUIRED, @@ -684,4 +717,16 @@ message HybridReplicationParameters { // Optional. Labels to be added to the replication as the key value pairs. map labels = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Replication Schedule for the replication created. + HybridReplicationSchedule replication_schedule = 9 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Type of the hybrid replication. + VolumeHybridReplicationType hybrid_replication_type = 10 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Constituent volume count for large volume. + int32 large_volume_constituent_count = 11 + [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-network-management/README.md b/java-network-management/README.md index ea7f2ea3e326..a97d34bd7f68 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.66.0 + 26.67.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.73.0 + 1.74.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-network-management:1.73.0' +implementation 'com.google.cloud:google-cloud-network-management:1.74.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-network-management" % "1.73.0" +libraryDependencies += "com.google.cloud" % "google-cloud-network-management" % "1.74.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.73.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-network-management/1.74.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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 4a4caabf62b6..612b7d5d7e1f 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.66.0 + 26.67.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.75.0 + 0.76.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-network-security:0.75.0' +implementation 'com.google.cloud:google-cloud-network-security:0.76.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-network-security" % "0.75.0" +libraryDependencies += "com.google.cloud" % "google-cloud-network-security" % "0.76.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-network-security.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-network-security/0.75.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-network-security/0.76.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/AddressGroupServiceClient.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/AddressGroupServiceClient.java new file mode 100644 index 000000000000..1c84d6288b08 --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/AddressGroupServiceClient.java @@ -0,0 +1,2723 @@ +/* + * 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.networksecurity.v1; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.stub.AddressGroupServiceStub; +import com.google.cloud.networksecurity.v1.stub.AddressGroupServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.OperationsClient; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: AddressGroup is a resource that manages a collection of IP or Domain Names, + * it can be used in Firewall Policy to represent allow or deny traffic from all the IP or Domain + * Names from the Address Group. + * + *

    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 (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    + *   AddressGroupName name =
    + *       AddressGroupName.ofProjectLocationAddressGroupName(
    + *           "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]");
    + *   AddressGroup response = addressGroupServiceClient.getAddressGroup(name);
    + * }
    + * }
    + * + *

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

    ListAddressGroups

    Lists address groups in a given project and location.

    + *

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

    + *
      + *
    • listAddressGroups(ListAddressGroupsRequest request) + *

    + *

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

    + *
      + *
    • listAddressGroups(LocationName parent) + *

    • listAddressGroups(String parent) + *

    + *

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

    + *
      + *
    • listAddressGroupsPagedCallable() + *

    • listAddressGroupsCallable() + *

    + *

    GetAddressGroup

    Gets details of a single address group.

    + *

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

    + *
      + *
    • getAddressGroup(GetAddressGroupRequest request) + *

    + *

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

    + *
      + *
    • getAddressGroup(AddressGroupName name) + *

    • getAddressGroup(String name) + *

    + *

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

    + *
      + *
    • getAddressGroupCallable() + *

    + *

    CreateAddressGroup

    Creates a new address group in a given project and location.

    + *

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

    + *
      + *
    • createAddressGroupAsync(CreateAddressGroupRequest request) + *

    + *

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

    + *
      + *
    • createAddressGroupAsync(LocationName parent, AddressGroup addressGroup, String addressGroupId) + *

    • createAddressGroupAsync(OrganizationLocationName parent, AddressGroup addressGroup, String addressGroupId) + *

    • createAddressGroupAsync(String parent, AddressGroup addressGroup, String addressGroupId) + *

    + *

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

    + *
      + *
    • createAddressGroupOperationCallable() + *

    • createAddressGroupCallable() + *

    + *

    UpdateAddressGroup

    Updates the parameters of a single address group.

    + *

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

    + *
      + *
    • updateAddressGroupAsync(UpdateAddressGroupRequest request) + *

    + *

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

    + *
      + *
    • updateAddressGroupAsync(AddressGroup addressGroup, FieldMask updateMask) + *

    + *

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

    + *
      + *
    • updateAddressGroupOperationCallable() + *

    • updateAddressGroupCallable() + *

    + *

    AddAddressGroupItems

    Adds items to an address group.

    + *

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

    + *
      + *
    • addAddressGroupItemsAsync(AddAddressGroupItemsRequest request) + *

    + *

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

    + *
      + *
    • addAddressGroupItemsAsync(AddressGroupName addressGroup, List<String> items) + *

    • addAddressGroupItemsAsync(String addressGroup, List<String> items) + *

    + *

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

    + *
      + *
    • addAddressGroupItemsOperationCallable() + *

    • addAddressGroupItemsCallable() + *

    + *

    RemoveAddressGroupItems

    Removes items from an address group.

    + *

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

    + *
      + *
    • removeAddressGroupItemsAsync(RemoveAddressGroupItemsRequest request) + *

    + *

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

    + *
      + *
    • removeAddressGroupItemsAsync(AddressGroupName addressGroup, List<String> items) + *

    • removeAddressGroupItemsAsync(String addressGroup, List<String> items) + *

    + *

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

    + *
      + *
    • removeAddressGroupItemsOperationCallable() + *

    • removeAddressGroupItemsCallable() + *

    + *

    CloneAddressGroupItems

    Clones items from one address group to another.

    + *

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

    + *
      + *
    • cloneAddressGroupItemsAsync(CloneAddressGroupItemsRequest request) + *

    + *

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

    + *
      + *
    • cloneAddressGroupItemsAsync(AddressGroupName addressGroup, AddressGroupName sourceAddressGroup) + *

    • cloneAddressGroupItemsAsync(AddressGroupName addressGroup, String sourceAddressGroup) + *

    • cloneAddressGroupItemsAsync(String addressGroup, AddressGroupName sourceAddressGroup) + *

    • cloneAddressGroupItemsAsync(String addressGroup, String sourceAddressGroup) + *

    + *

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

    + *
      + *
    • cloneAddressGroupItemsOperationCallable() + *

    • cloneAddressGroupItemsCallable() + *

    + *

    DeleteAddressGroup

    Deletes a single address group.

    + *

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

    + *
      + *
    • deleteAddressGroupAsync(DeleteAddressGroupRequest request) + *

    + *

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

    + *
      + *
    • deleteAddressGroupAsync(AddressGroupName name) + *

    • deleteAddressGroupAsync(String name) + *

    + *

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

    + *
      + *
    • deleteAddressGroupOperationCallable() + *

    • deleteAddressGroupCallable() + *

    + *

    ListAddressGroupReferences

    Lists references of an address group.

    + *

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

    + *
      + *
    • listAddressGroupReferences(ListAddressGroupReferencesRequest request) + *

    + *

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

    + *
      + *
    • listAddressGroupReferences(AddressGroupName addressGroup) + *

    • listAddressGroupReferences(String addressGroup) + *

    + *

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

    + *
      + *
    • listAddressGroupReferencesPagedCallable() + *

    • listAddressGroupReferencesCallable() + *

    + *

    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() + *

    + *

    SetIamPolicy

    Sets the access control policy on the specified resource. Replacesany existing policy. + *

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

    + *

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

    + *
      + *
    • setIamPolicy(SetIamPolicyRequest request) + *

    + *

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

    + *
      + *
    • setIamPolicyCallable() + *

    + *

    GetIamPolicy

    Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.

    + *

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

    + *
      + *
    • getIamPolicy(GetIamPolicyRequest request) + *

    + *

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

    + *
      + *
    • getIamPolicyCallable() + *

    + *

    TestIamPermissions

    Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error. + *

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

    + *

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

    + *
      + *
    • testIamPermissions(TestIamPermissionsRequest request) + *

    + *

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

    + *
      + *
    • testIamPermissionsCallable() + *

    + *
    + * + *

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

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

    This class can be customized by passing in a custom instance of AddressGroupServiceSettings 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
    + * AddressGroupServiceSettings addressGroupServiceSettings =
    + *     AddressGroupServiceSettings.newBuilder()
    + *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
    + *         .build();
    + * AddressGroupServiceClient addressGroupServiceClient =
    + *     AddressGroupServiceClient.create(addressGroupServiceSettings);
    + * }
    + * + *

    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
    + * AddressGroupServiceSettings addressGroupServiceSettings =
    + *     AddressGroupServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
    + * AddressGroupServiceClient addressGroupServiceClient =
    + *     AddressGroupServiceClient.create(addressGroupServiceSettings);
    + * }
    + * + *

    Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class AddressGroupServiceClient implements BackgroundResource { + private final AddressGroupServiceSettings settings; + private final AddressGroupServiceStub stub; + private final OperationsClient operationsClient; + + /** Constructs an instance of AddressGroupServiceClient with default settings. */ + public static final AddressGroupServiceClient create() throws IOException { + return create(AddressGroupServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of AddressGroupServiceClient, 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 AddressGroupServiceClient create(AddressGroupServiceSettings settings) + throws IOException { + return new AddressGroupServiceClient(settings); + } + + /** + * Constructs an instance of AddressGroupServiceClient, using the given stub for making calls. + * This is for advanced usage - prefer using create(AddressGroupServiceSettings). + */ + public static final AddressGroupServiceClient create(AddressGroupServiceStub stub) { + return new AddressGroupServiceClient(stub); + } + + /** + * Constructs an instance of AddressGroupServiceClient, 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 AddressGroupServiceClient(AddressGroupServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((AddressGroupServiceStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + protected AddressGroupServiceClient(AddressGroupServiceStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + public final AddressGroupServiceSettings getSettings() { + return settings; + } + + public AddressGroupServiceStub 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 OperationsClient getOperationsClient() { + return operationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists address groups in a given project and location. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    +   *   for (AddressGroup element :
    +   *       addressGroupServiceClient.listAddressGroups(parent).iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + * + * @param parent Required. The project and location from which the AddressGroups should be listed, + * specified in the format `projects/*/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAddressGroupsPagedResponse listAddressGroups(LocationName parent) { + ListAddressGroupsRequest request = + ListAddressGroupsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAddressGroups(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists address groups in a given project and location. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    +   *   for (AddressGroup element :
    +   *       addressGroupServiceClient.listAddressGroups(parent).iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + * + * @param parent Required. The project and location from which the AddressGroups should be listed, + * specified in the format `projects/*/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAddressGroupsPagedResponse listAddressGroups(String parent) { + ListAddressGroupsRequest request = + ListAddressGroupsRequest.newBuilder().setParent(parent).build(); + return listAddressGroups(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists address groups in a given project and location. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    +   *   ListAddressGroupsRequest request =
    +   *       ListAddressGroupsRequest.newBuilder()
    +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .setReturnPartialSuccess(true)
    +   *           .build();
    +   *   for (AddressGroup element :
    +   *       addressGroupServiceClient.listAddressGroups(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 ListAddressGroupsPagedResponse listAddressGroups(ListAddressGroupsRequest request) { + return listAddressGroupsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists address groups in a given project and location. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    +   *   ListAddressGroupsRequest request =
    +   *       ListAddressGroupsRequest.newBuilder()
    +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .setReturnPartialSuccess(true)
    +   *           .build();
    +   *   ApiFuture future =
    +   *       addressGroupServiceClient.listAddressGroupsPagedCallable().futureCall(request);
    +   *   // Do something.
    +   *   for (AddressGroup element : future.get().iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + */ + public final UnaryCallable + listAddressGroupsPagedCallable() { + return stub.listAddressGroupsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists address groups in a given project and location. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    +   *   ListAddressGroupsRequest request =
    +   *       ListAddressGroupsRequest.newBuilder()
    +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .setReturnPartialSuccess(true)
    +   *           .build();
    +   *   while (true) {
    +   *     ListAddressGroupsResponse response =
    +   *         addressGroupServiceClient.listAddressGroupsCallable().call(request);
    +   *     for (AddressGroup element : response.getAddressGroupsList()) {
    +   *       // doThingsWith(element);
    +   *     }
    +   *     String nextPageToken = response.getNextPageToken();
    +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
    +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
    +   *     } else {
    +   *       break;
    +   *     }
    +   *   }
    +   * }
    +   * }
    + */ + public final UnaryCallable + listAddressGroupsCallable() { + return stub.listAddressGroupsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single address group. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    +   *   AddressGroupName name =
    +   *       AddressGroupName.ofProjectLocationAddressGroupName(
    +   *           "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]");
    +   *   AddressGroup response = addressGroupServiceClient.getAddressGroup(name);
    +   * }
    +   * }
    + * + * @param name Required. A name of the AddressGroup to get. Must be in the format + * `projects/*/locations/{location}/addressGroups/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AddressGroup getAddressGroup(AddressGroupName name) { + GetAddressGroupRequest request = + GetAddressGroupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getAddressGroup(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single address group. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    +   *   String name =
    +   *       AddressGroupName.ofProjectLocationAddressGroupName(
    +   *               "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *           .toString();
    +   *   AddressGroup response = addressGroupServiceClient.getAddressGroup(name);
    +   * }
    +   * }
    + * + * @param name Required. A name of the AddressGroup to get. Must be in the format + * `projects/*/locations/{location}/addressGroups/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AddressGroup getAddressGroup(String name) { + GetAddressGroupRequest request = GetAddressGroupRequest.newBuilder().setName(name).build(); + return getAddressGroup(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single address group. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    +   *   GetAddressGroupRequest request =
    +   *       GetAddressGroupRequest.newBuilder()
    +   *           .setName(
    +   *               AddressGroupName.ofProjectLocationAddressGroupName(
    +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *                   .toString())
    +   *           .build();
    +   *   AddressGroup response = addressGroupServiceClient.getAddressGroup(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 AddressGroup getAddressGroup(GetAddressGroupRequest request) { + return getAddressGroupCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single address group. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    +   *   GetAddressGroupRequest request =
    +   *       GetAddressGroupRequest.newBuilder()
    +   *           .setName(
    +   *               AddressGroupName.ofProjectLocationAddressGroupName(
    +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *                   .toString())
    +   *           .build();
    +   *   ApiFuture future =
    +   *       addressGroupServiceClient.getAddressGroupCallable().futureCall(request);
    +   *   // Do something.
    +   *   AddressGroup response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable getAddressGroupCallable() { + return stub.getAddressGroupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new address group in a given project and location. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    +   *   AddressGroup addressGroup = AddressGroup.newBuilder().build();
    +   *   String addressGroupId = "addressGroupId705215846";
    +   *   AddressGroup response =
    +   *       addressGroupServiceClient
    +   *           .createAddressGroupAsync(parent, addressGroup, addressGroupId)
    +   *           .get();
    +   * }
    +   * }
    + * + * @param parent Required. The parent resource of the AddressGroup. Must be in the format + * `projects/*/locations/{location}`. + * @param addressGroup Required. AddressGroup resource to be created. + * @param addressGroupId Required. Short name of the AddressGroup resource to be created. This + * value should be 1-63 characters long, containing only letters, numbers, hyphens, and + * underscores, and should not start with a number. E.g. "authz_policy". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createAddressGroupAsync( + LocationName parent, AddressGroup addressGroup, String addressGroupId) { + CreateAddressGroupRequest request = + CreateAddressGroupRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setAddressGroup(addressGroup) + .setAddressGroupId(addressGroupId) + .build(); + return createAddressGroupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new address group in a given project and location. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    +   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
    +   *   AddressGroup addressGroup = AddressGroup.newBuilder().build();
    +   *   String addressGroupId = "addressGroupId705215846";
    +   *   AddressGroup response =
    +   *       addressGroupServiceClient
    +   *           .createAddressGroupAsync(parent, addressGroup, addressGroupId)
    +   *           .get();
    +   * }
    +   * }
    + * + * @param parent Required. The parent resource of the AddressGroup. Must be in the format + * `projects/*/locations/{location}`. + * @param addressGroup Required. AddressGroup resource to be created. + * @param addressGroupId Required. Short name of the AddressGroup resource to be created. This + * value should be 1-63 characters long, containing only letters, numbers, hyphens, and + * underscores, and should not start with a number. E.g. "authz_policy". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createAddressGroupAsync( + OrganizationLocationName parent, AddressGroup addressGroup, String addressGroupId) { + CreateAddressGroupRequest request = + CreateAddressGroupRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setAddressGroup(addressGroup) + .setAddressGroupId(addressGroupId) + .build(); + return createAddressGroupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new address group in a given project and location. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    +   *   AddressGroup addressGroup = AddressGroup.newBuilder().build();
    +   *   String addressGroupId = "addressGroupId705215846";
    +   *   AddressGroup response =
    +   *       addressGroupServiceClient
    +   *           .createAddressGroupAsync(parent, addressGroup, addressGroupId)
    +   *           .get();
    +   * }
    +   * }
    + * + * @param parent Required. The parent resource of the AddressGroup. Must be in the format + * `projects/*/locations/{location}`. + * @param addressGroup Required. AddressGroup resource to be created. + * @param addressGroupId Required. Short name of the AddressGroup resource to be created. This + * value should be 1-63 characters long, containing only letters, numbers, hyphens, and + * underscores, and should not start with a number. E.g. "authz_policy". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createAddressGroupAsync( + String parent, AddressGroup addressGroup, String addressGroupId) { + CreateAddressGroupRequest request = + CreateAddressGroupRequest.newBuilder() + .setParent(parent) + .setAddressGroup(addressGroup) + .setAddressGroupId(addressGroupId) + .build(); + return createAddressGroupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new address group in a given project and location. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    +   *   CreateAddressGroupRequest request =
    +   *       CreateAddressGroupRequest.newBuilder()
    +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    +   *           .setAddressGroupId("addressGroupId705215846")
    +   *           .setAddressGroup(AddressGroup.newBuilder().build())
    +   *           .setRequestId("requestId693933066")
    +   *           .build();
    +   *   AddressGroup response = addressGroupServiceClient.createAddressGroupAsync(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 createAddressGroupAsync( + CreateAddressGroupRequest request) { + return createAddressGroupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new address group in a given project and location. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    +   *   CreateAddressGroupRequest request =
    +   *       CreateAddressGroupRequest.newBuilder()
    +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    +   *           .setAddressGroupId("addressGroupId705215846")
    +   *           .setAddressGroup(AddressGroup.newBuilder().build())
    +   *           .setRequestId("requestId693933066")
    +   *           .build();
    +   *   OperationFuture future =
    +   *       addressGroupServiceClient.createAddressGroupOperationCallable().futureCall(request);
    +   *   // Do something.
    +   *   AddressGroup response = future.get();
    +   * }
    +   * }
    + */ + public final OperationCallable + createAddressGroupOperationCallable() { + return stub.createAddressGroupOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new address group in a given project and location. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    +   *   CreateAddressGroupRequest request =
    +   *       CreateAddressGroupRequest.newBuilder()
    +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    +   *           .setAddressGroupId("addressGroupId705215846")
    +   *           .setAddressGroup(AddressGroup.newBuilder().build())
    +   *           .setRequestId("requestId693933066")
    +   *           .build();
    +   *   ApiFuture future =
    +   *       addressGroupServiceClient.createAddressGroupCallable().futureCall(request);
    +   *   // Do something.
    +   *   Operation response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable createAddressGroupCallable() { + return stub.createAddressGroupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single address group. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    +   *   AddressGroup addressGroup = AddressGroup.newBuilder().build();
    +   *   FieldMask updateMask = FieldMask.newBuilder().build();
    +   *   AddressGroup response =
    +   *       addressGroupServiceClient.updateAddressGroupAsync(addressGroup, updateMask).get();
    +   * }
    +   * }
    + * + * @param addressGroup Required. Updated AddressGroup resource. + * @param updateMask Optional. Field mask is used to specify the fields to be overwritten in the + * AddressGroup resource by the update. The fields specified in the update_mask are relative + * to the resource, not the full request. A field will be overwritten if it is in the mask. If + * the user does not provide a mask then all fields will be overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateAddressGroupAsync( + AddressGroup addressGroup, FieldMask updateMask) { + UpdateAddressGroupRequest request = + UpdateAddressGroupRequest.newBuilder() + .setAddressGroup(addressGroup) + .setUpdateMask(updateMask) + .build(); + return updateAddressGroupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single address group. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    +   *   UpdateAddressGroupRequest request =
    +   *       UpdateAddressGroupRequest.newBuilder()
    +   *           .setUpdateMask(FieldMask.newBuilder().build())
    +   *           .setAddressGroup(AddressGroup.newBuilder().build())
    +   *           .setRequestId("requestId693933066")
    +   *           .build();
    +   *   AddressGroup response = addressGroupServiceClient.updateAddressGroupAsync(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 updateAddressGroupAsync( + UpdateAddressGroupRequest request) { + return updateAddressGroupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single address group. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    +   *   UpdateAddressGroupRequest request =
    +   *       UpdateAddressGroupRequest.newBuilder()
    +   *           .setUpdateMask(FieldMask.newBuilder().build())
    +   *           .setAddressGroup(AddressGroup.newBuilder().build())
    +   *           .setRequestId("requestId693933066")
    +   *           .build();
    +   *   OperationFuture future =
    +   *       addressGroupServiceClient.updateAddressGroupOperationCallable().futureCall(request);
    +   *   // Do something.
    +   *   AddressGroup response = future.get();
    +   * }
    +   * }
    + */ + public final OperationCallable + updateAddressGroupOperationCallable() { + return stub.updateAddressGroupOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single address group. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    +   *   UpdateAddressGroupRequest request =
    +   *       UpdateAddressGroupRequest.newBuilder()
    +   *           .setUpdateMask(FieldMask.newBuilder().build())
    +   *           .setAddressGroup(AddressGroup.newBuilder().build())
    +   *           .setRequestId("requestId693933066")
    +   *           .build();
    +   *   ApiFuture future =
    +   *       addressGroupServiceClient.updateAddressGroupCallable().futureCall(request);
    +   *   // Do something.
    +   *   Operation response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable updateAddressGroupCallable() { + return stub.updateAddressGroupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Adds items to an address group. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    +   *   AddressGroupName addressGroup =
    +   *       AddressGroupName.ofProjectLocationAddressGroupName(
    +   *           "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]");
    +   *   List items = new ArrayList<>();
    +   *   AddressGroup response =
    +   *       addressGroupServiceClient.addAddressGroupItemsAsync(addressGroup, items).get();
    +   * }
    +   * }
    + * + * @param addressGroup Required. A name of the AddressGroup to add items to. Must be in the format + * `projects|organization/*/locations/{location}/addressGroups/*`. + * @param items Required. List of items to add. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture addAddressGroupItemsAsync( + AddressGroupName addressGroup, List items) { + AddAddressGroupItemsRequest request = + AddAddressGroupItemsRequest.newBuilder() + .setAddressGroup(addressGroup == null ? null : addressGroup.toString()) + .addAllItems(items) + .build(); + return addAddressGroupItemsAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Adds items to an address group. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    +   *   String addressGroup =
    +   *       AddressGroupName.ofProjectLocationAddressGroupName(
    +   *               "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *           .toString();
    +   *   List items = new ArrayList<>();
    +   *   AddressGroup response =
    +   *       addressGroupServiceClient.addAddressGroupItemsAsync(addressGroup, items).get();
    +   * }
    +   * }
    + * + * @param addressGroup Required. A name of the AddressGroup to add items to. Must be in the format + * `projects|organization/*/locations/{location}/addressGroups/*`. + * @param items Required. List of items to add. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture addAddressGroupItemsAsync( + String addressGroup, List items) { + AddAddressGroupItemsRequest request = + AddAddressGroupItemsRequest.newBuilder() + .setAddressGroup(addressGroup) + .addAllItems(items) + .build(); + return addAddressGroupItemsAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Adds items to an address group. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    +   *   AddAddressGroupItemsRequest request =
    +   *       AddAddressGroupItemsRequest.newBuilder()
    +   *           .setAddressGroup(
    +   *               AddressGroupName.ofProjectLocationAddressGroupName(
    +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *                   .toString())
    +   *           .addAllItems(new ArrayList())
    +   *           .setRequestId("requestId693933066")
    +   *           .build();
    +   *   AddressGroup response = addressGroupServiceClient.addAddressGroupItemsAsync(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 addAddressGroupItemsAsync( + AddAddressGroupItemsRequest request) { + return addAddressGroupItemsOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Adds items to an address group. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    +   *   AddAddressGroupItemsRequest request =
    +   *       AddAddressGroupItemsRequest.newBuilder()
    +   *           .setAddressGroup(
    +   *               AddressGroupName.ofProjectLocationAddressGroupName(
    +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *                   .toString())
    +   *           .addAllItems(new ArrayList())
    +   *           .setRequestId("requestId693933066")
    +   *           .build();
    +   *   OperationFuture future =
    +   *       addressGroupServiceClient.addAddressGroupItemsOperationCallable().futureCall(request);
    +   *   // Do something.
    +   *   AddressGroup response = future.get();
    +   * }
    +   * }
    + */ + public final OperationCallable + addAddressGroupItemsOperationCallable() { + return stub.addAddressGroupItemsOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Adds items to an address group. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    +   *   AddAddressGroupItemsRequest request =
    +   *       AddAddressGroupItemsRequest.newBuilder()
    +   *           .setAddressGroup(
    +   *               AddressGroupName.ofProjectLocationAddressGroupName(
    +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *                   .toString())
    +   *           .addAllItems(new ArrayList())
    +   *           .setRequestId("requestId693933066")
    +   *           .build();
    +   *   ApiFuture future =
    +   *       addressGroupServiceClient.addAddressGroupItemsCallable().futureCall(request);
    +   *   // Do something.
    +   *   Operation response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable + addAddressGroupItemsCallable() { + return stub.addAddressGroupItemsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes items from an address group. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    +   *   AddressGroupName addressGroup =
    +   *       AddressGroupName.ofProjectLocationAddressGroupName(
    +   *           "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]");
    +   *   List items = new ArrayList<>();
    +   *   AddressGroup response =
    +   *       addressGroupServiceClient.removeAddressGroupItemsAsync(addressGroup, items).get();
    +   * }
    +   * }
    + * + * @param addressGroup Required. A name of the AddressGroup to remove items from. Must be in the + * format `projects|organization/*/locations/{location}/addressGroups/*`. + * @param items Required. List of items to remove. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture removeAddressGroupItemsAsync( + AddressGroupName addressGroup, List items) { + RemoveAddressGroupItemsRequest request = + RemoveAddressGroupItemsRequest.newBuilder() + .setAddressGroup(addressGroup == null ? null : addressGroup.toString()) + .addAllItems(items) + .build(); + return removeAddressGroupItemsAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes items from an address group. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    +   *   String addressGroup =
    +   *       AddressGroupName.ofProjectLocationAddressGroupName(
    +   *               "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *           .toString();
    +   *   List items = new ArrayList<>();
    +   *   AddressGroup response =
    +   *       addressGroupServiceClient.removeAddressGroupItemsAsync(addressGroup, items).get();
    +   * }
    +   * }
    + * + * @param addressGroup Required. A name of the AddressGroup to remove items from. Must be in the + * format `projects|organization/*/locations/{location}/addressGroups/*`. + * @param items Required. List of items to remove. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture removeAddressGroupItemsAsync( + String addressGroup, List items) { + RemoveAddressGroupItemsRequest request = + RemoveAddressGroupItemsRequest.newBuilder() + .setAddressGroup(addressGroup) + .addAllItems(items) + .build(); + return removeAddressGroupItemsAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes items from an address group. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    +   *   RemoveAddressGroupItemsRequest request =
    +   *       RemoveAddressGroupItemsRequest.newBuilder()
    +   *           .setAddressGroup(
    +   *               AddressGroupName.ofProjectLocationAddressGroupName(
    +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *                   .toString())
    +   *           .addAllItems(new ArrayList())
    +   *           .setRequestId("requestId693933066")
    +   *           .build();
    +   *   AddressGroup response = addressGroupServiceClient.removeAddressGroupItemsAsync(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 removeAddressGroupItemsAsync( + RemoveAddressGroupItemsRequest request) { + return removeAddressGroupItemsOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes items from an address group. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    +   *   RemoveAddressGroupItemsRequest request =
    +   *       RemoveAddressGroupItemsRequest.newBuilder()
    +   *           .setAddressGroup(
    +   *               AddressGroupName.ofProjectLocationAddressGroupName(
    +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *                   .toString())
    +   *           .addAllItems(new ArrayList())
    +   *           .setRequestId("requestId693933066")
    +   *           .build();
    +   *   OperationFuture future =
    +   *       addressGroupServiceClient.removeAddressGroupItemsOperationCallable().futureCall(request);
    +   *   // Do something.
    +   *   AddressGroup response = future.get();
    +   * }
    +   * }
    + */ + public final OperationCallable + removeAddressGroupItemsOperationCallable() { + return stub.removeAddressGroupItemsOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes items from an address group. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    +   *   RemoveAddressGroupItemsRequest request =
    +   *       RemoveAddressGroupItemsRequest.newBuilder()
    +   *           .setAddressGroup(
    +   *               AddressGroupName.ofProjectLocationAddressGroupName(
    +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *                   .toString())
    +   *           .addAllItems(new ArrayList())
    +   *           .setRequestId("requestId693933066")
    +   *           .build();
    +   *   ApiFuture future =
    +   *       addressGroupServiceClient.removeAddressGroupItemsCallable().futureCall(request);
    +   *   // Do something.
    +   *   Operation response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable + removeAddressGroupItemsCallable() { + return stub.removeAddressGroupItemsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Clones items from one address group to another. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    +   *   AddressGroupName addressGroup =
    +   *       AddressGroupName.ofProjectLocationAddressGroupName(
    +   *           "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]");
    +   *   AddressGroupName sourceAddressGroup =
    +   *       AddressGroupName.ofProjectLocationAddressGroupName(
    +   *           "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]");
    +   *   AddressGroup response =
    +   *       addressGroupServiceClient
    +   *           .cloneAddressGroupItemsAsync(addressGroup, sourceAddressGroup)
    +   *           .get();
    +   * }
    +   * }
    + * + * @param addressGroup Required. A name of the AddressGroup to clone items to. Must be in the + * format `projects|organization/*/locations/{location}/addressGroups/*`. + * @param sourceAddressGroup Required. Source address group to clone items from. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture cloneAddressGroupItemsAsync( + AddressGroupName addressGroup, AddressGroupName sourceAddressGroup) { + CloneAddressGroupItemsRequest request = + CloneAddressGroupItemsRequest.newBuilder() + .setAddressGroup(addressGroup == null ? null : addressGroup.toString()) + .setSourceAddressGroup( + sourceAddressGroup == null ? null : sourceAddressGroup.toString()) + .build(); + return cloneAddressGroupItemsAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Clones items from one address group to another. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    +   *   AddressGroupName addressGroup =
    +   *       AddressGroupName.ofProjectLocationAddressGroupName(
    +   *           "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]");
    +   *   String sourceAddressGroup =
    +   *       AddressGroupName.ofProjectLocationAddressGroupName(
    +   *               "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *           .toString();
    +   *   AddressGroup response =
    +   *       addressGroupServiceClient
    +   *           .cloneAddressGroupItemsAsync(addressGroup, sourceAddressGroup)
    +   *           .get();
    +   * }
    +   * }
    + * + * @param addressGroup Required. A name of the AddressGroup to clone items to. Must be in the + * format `projects|organization/*/locations/{location}/addressGroups/*`. + * @param sourceAddressGroup Required. Source address group to clone items from. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture cloneAddressGroupItemsAsync( + AddressGroupName addressGroup, String sourceAddressGroup) { + CloneAddressGroupItemsRequest request = + CloneAddressGroupItemsRequest.newBuilder() + .setAddressGroup(addressGroup == null ? null : addressGroup.toString()) + .setSourceAddressGroup(sourceAddressGroup) + .build(); + return cloneAddressGroupItemsAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Clones items from one address group to another. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    +   *   String addressGroup =
    +   *       AddressGroupName.ofProjectLocationAddressGroupName(
    +   *               "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *           .toString();
    +   *   AddressGroupName sourceAddressGroup =
    +   *       AddressGroupName.ofProjectLocationAddressGroupName(
    +   *           "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]");
    +   *   AddressGroup response =
    +   *       addressGroupServiceClient
    +   *           .cloneAddressGroupItemsAsync(addressGroup, sourceAddressGroup)
    +   *           .get();
    +   * }
    +   * }
    + * + * @param addressGroup Required. A name of the AddressGroup to clone items to. Must be in the + * format `projects|organization/*/locations/{location}/addressGroups/*`. + * @param sourceAddressGroup Required. Source address group to clone items from. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture cloneAddressGroupItemsAsync( + String addressGroup, AddressGroupName sourceAddressGroup) { + CloneAddressGroupItemsRequest request = + CloneAddressGroupItemsRequest.newBuilder() + .setAddressGroup(addressGroup) + .setSourceAddressGroup( + sourceAddressGroup == null ? null : sourceAddressGroup.toString()) + .build(); + return cloneAddressGroupItemsAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Clones items from one address group to another. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    +   *   String addressGroup =
    +   *       AddressGroupName.ofProjectLocationAddressGroupName(
    +   *               "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *           .toString();
    +   *   String sourceAddressGroup =
    +   *       AddressGroupName.ofProjectLocationAddressGroupName(
    +   *               "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *           .toString();
    +   *   AddressGroup response =
    +   *       addressGroupServiceClient
    +   *           .cloneAddressGroupItemsAsync(addressGroup, sourceAddressGroup)
    +   *           .get();
    +   * }
    +   * }
    + * + * @param addressGroup Required. A name of the AddressGroup to clone items to. Must be in the + * format `projects|organization/*/locations/{location}/addressGroups/*`. + * @param sourceAddressGroup Required. Source address group to clone items from. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture cloneAddressGroupItemsAsync( + String addressGroup, String sourceAddressGroup) { + CloneAddressGroupItemsRequest request = + CloneAddressGroupItemsRequest.newBuilder() + .setAddressGroup(addressGroup) + .setSourceAddressGroup(sourceAddressGroup) + .build(); + return cloneAddressGroupItemsAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Clones items from one address group to another. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    +   *   CloneAddressGroupItemsRequest request =
    +   *       CloneAddressGroupItemsRequest.newBuilder()
    +   *           .setAddressGroup(
    +   *               AddressGroupName.ofProjectLocationAddressGroupName(
    +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *                   .toString())
    +   *           .setSourceAddressGroup(
    +   *               AddressGroupName.ofProjectLocationAddressGroupName(
    +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *                   .toString())
    +   *           .setRequestId("requestId693933066")
    +   *           .build();
    +   *   AddressGroup response = addressGroupServiceClient.cloneAddressGroupItemsAsync(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 cloneAddressGroupItemsAsync( + CloneAddressGroupItemsRequest request) { + return cloneAddressGroupItemsOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Clones items from one address group to another. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    +   *   CloneAddressGroupItemsRequest request =
    +   *       CloneAddressGroupItemsRequest.newBuilder()
    +   *           .setAddressGroup(
    +   *               AddressGroupName.ofProjectLocationAddressGroupName(
    +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *                   .toString())
    +   *           .setSourceAddressGroup(
    +   *               AddressGroupName.ofProjectLocationAddressGroupName(
    +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *                   .toString())
    +   *           .setRequestId("requestId693933066")
    +   *           .build();
    +   *   OperationFuture future =
    +   *       addressGroupServiceClient.cloneAddressGroupItemsOperationCallable().futureCall(request);
    +   *   // Do something.
    +   *   AddressGroup response = future.get();
    +   * }
    +   * }
    + */ + public final OperationCallable + cloneAddressGroupItemsOperationCallable() { + return stub.cloneAddressGroupItemsOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Clones items from one address group to another. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    +   *   CloneAddressGroupItemsRequest request =
    +   *       CloneAddressGroupItemsRequest.newBuilder()
    +   *           .setAddressGroup(
    +   *               AddressGroupName.ofProjectLocationAddressGroupName(
    +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *                   .toString())
    +   *           .setSourceAddressGroup(
    +   *               AddressGroupName.ofProjectLocationAddressGroupName(
    +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *                   .toString())
    +   *           .setRequestId("requestId693933066")
    +   *           .build();
    +   *   ApiFuture future =
    +   *       addressGroupServiceClient.cloneAddressGroupItemsCallable().futureCall(request);
    +   *   // Do something.
    +   *   Operation response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable + cloneAddressGroupItemsCallable() { + return stub.cloneAddressGroupItemsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single address group. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    +   *   AddressGroupName name =
    +   *       AddressGroupName.ofProjectLocationAddressGroupName(
    +   *           "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]");
    +   *   addressGroupServiceClient.deleteAddressGroupAsync(name).get();
    +   * }
    +   * }
    + * + * @param name Required. A name of the AddressGroup to delete. Must be in the format + * `projects/*/locations/{location}/addressGroups/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteAddressGroupAsync( + AddressGroupName name) { + DeleteAddressGroupRequest request = + DeleteAddressGroupRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteAddressGroupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single address group. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    +   *   String name =
    +   *       AddressGroupName.ofProjectLocationAddressGroupName(
    +   *               "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *           .toString();
    +   *   addressGroupServiceClient.deleteAddressGroupAsync(name).get();
    +   * }
    +   * }
    + * + * @param name Required. A name of the AddressGroup to delete. Must be in the format + * `projects/*/locations/{location}/addressGroups/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteAddressGroupAsync(String name) { + DeleteAddressGroupRequest request = + DeleteAddressGroupRequest.newBuilder().setName(name).build(); + return deleteAddressGroupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single address group. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    +   *   DeleteAddressGroupRequest request =
    +   *       DeleteAddressGroupRequest.newBuilder()
    +   *           .setName(
    +   *               AddressGroupName.ofProjectLocationAddressGroupName(
    +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *                   .toString())
    +   *           .setRequestId("requestId693933066")
    +   *           .build();
    +   *   addressGroupServiceClient.deleteAddressGroupAsync(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 deleteAddressGroupAsync( + DeleteAddressGroupRequest request) { + return deleteAddressGroupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single address group. + * + *

    Sample code: + * + *

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

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    +   *   DeleteAddressGroupRequest request =
    +   *       DeleteAddressGroupRequest.newBuilder()
    +   *           .setName(
    +   *               AddressGroupName.ofProjectLocationAddressGroupName(
    +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *                   .toString())
    +   *           .setRequestId("requestId693933066")
    +   *           .build();
    +   *   ApiFuture future =
    +   *       addressGroupServiceClient.deleteAddressGroupCallable().futureCall(request);
    +   *   // Do something.
    +   *   future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable deleteAddressGroupCallable() { + return stub.deleteAddressGroupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists references of an address group. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    +   *   AddressGroupName addressGroup =
    +   *       AddressGroupName.ofProjectLocationAddressGroupName(
    +   *           "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]");
    +   *   for (ListAddressGroupReferencesResponse.AddressGroupReference element :
    +   *       addressGroupServiceClient.listAddressGroupReferences(addressGroup).iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + * + * @param addressGroup Required. A name of the AddressGroup to clone items to. Must be in the + * format `projects|organization/*/locations/{location}/addressGroups/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAddressGroupReferencesPagedResponse listAddressGroupReferences( + AddressGroupName addressGroup) { + ListAddressGroupReferencesRequest request = + ListAddressGroupReferencesRequest.newBuilder() + .setAddressGroup(addressGroup == null ? null : addressGroup.toString()) + .build(); + return listAddressGroupReferences(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists references of an address group. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    +   *   String addressGroup =
    +   *       AddressGroupName.ofProjectLocationAddressGroupName(
    +   *               "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *           .toString();
    +   *   for (ListAddressGroupReferencesResponse.AddressGroupReference element :
    +   *       addressGroupServiceClient.listAddressGroupReferences(addressGroup).iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + * + * @param addressGroup Required. A name of the AddressGroup to clone items to. Must be in the + * format `projects|organization/*/locations/{location}/addressGroups/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAddressGroupReferencesPagedResponse listAddressGroupReferences( + String addressGroup) { + ListAddressGroupReferencesRequest request = + ListAddressGroupReferencesRequest.newBuilder().setAddressGroup(addressGroup).build(); + return listAddressGroupReferences(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists references of an address group. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    +   *   ListAddressGroupReferencesRequest request =
    +   *       ListAddressGroupReferencesRequest.newBuilder()
    +   *           .setAddressGroup(
    +   *               AddressGroupName.ofProjectLocationAddressGroupName(
    +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *                   .toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   for (ListAddressGroupReferencesResponse.AddressGroupReference element :
    +   *       addressGroupServiceClient.listAddressGroupReferences(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 ListAddressGroupReferencesPagedResponse listAddressGroupReferences( + ListAddressGroupReferencesRequest request) { + return listAddressGroupReferencesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists references of an address group. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    +   *   ListAddressGroupReferencesRequest request =
    +   *       ListAddressGroupReferencesRequest.newBuilder()
    +   *           .setAddressGroup(
    +   *               AddressGroupName.ofProjectLocationAddressGroupName(
    +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *                   .toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   ApiFuture future =
    +   *       addressGroupServiceClient.listAddressGroupReferencesPagedCallable().futureCall(request);
    +   *   // Do something.
    +   *   for (ListAddressGroupReferencesResponse.AddressGroupReference element :
    +   *       future.get().iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + */ + public final UnaryCallable< + ListAddressGroupReferencesRequest, ListAddressGroupReferencesPagedResponse> + listAddressGroupReferencesPagedCallable() { + return stub.listAddressGroupReferencesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists references of an address group. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    +   *   ListAddressGroupReferencesRequest request =
    +   *       ListAddressGroupReferencesRequest.newBuilder()
    +   *           .setAddressGroup(
    +   *               AddressGroupName.ofProjectLocationAddressGroupName(
    +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *                   .toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   while (true) {
    +   *     ListAddressGroupReferencesResponse response =
    +   *         addressGroupServiceClient.listAddressGroupReferencesCallable().call(request);
    +   *     for (ListAddressGroupReferencesResponse.AddressGroupReference element :
    +   *         response.getAddressGroupReferencesList()) {
    +   *       // doThingsWith(element);
    +   *     }
    +   *     String nextPageToken = response.getNextPageToken();
    +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
    +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
    +   *     } else {
    +   *       break;
    +   *     }
    +   *   }
    +   * }
    +   * }
    + */ + public final UnaryCallable + listAddressGroupReferencesCallable() { + return stub.listAddressGroupReferencesCallable(); + } + + // 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 (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    +   *   ListLocationsRequest request =
    +   *       ListLocationsRequest.newBuilder()
    +   *           .setName("name3373707")
    +   *           .setFilter("filter-1274492040")
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   for (Location element : addressGroupServiceClient.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 (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    +   *   ListLocationsRequest request =
    +   *       ListLocationsRequest.newBuilder()
    +   *           .setName("name3373707")
    +   *           .setFilter("filter-1274492040")
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   ApiFuture future =
    +   *       addressGroupServiceClient.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 (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    +   *   ListLocationsRequest request =
    +   *       ListLocationsRequest.newBuilder()
    +   *           .setName("name3373707")
    +   *           .setFilter("filter-1274492040")
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   while (true) {
    +   *     ListLocationsResponse response =
    +   *         addressGroupServiceClient.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 (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    +   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
    +   *   Location response = addressGroupServiceClient.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 (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    +   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
    +   *   ApiFuture future =
    +   *       addressGroupServiceClient.getLocationCallable().futureCall(request);
    +   *   // Do something.
    +   *   Location response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

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

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    +   *   SetIamPolicyRequest request =
    +   *       SetIamPolicyRequest.newBuilder()
    +   *           .setResource(
    +   *               AddressGroupName.ofProjectLocationAddressGroupName(
    +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *                   .toString())
    +   *           .setPolicy(Policy.newBuilder().build())
    +   *           .setUpdateMask(FieldMask.newBuilder().build())
    +   *           .build();
    +   *   Policy response = addressGroupServiceClient.setIamPolicy(request);
    +   * }
    +   * }
    + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

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

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    +   *   SetIamPolicyRequest request =
    +   *       SetIamPolicyRequest.newBuilder()
    +   *           .setResource(
    +   *               AddressGroupName.ofProjectLocationAddressGroupName(
    +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *                   .toString())
    +   *           .setPolicy(Policy.newBuilder().build())
    +   *           .setUpdateMask(FieldMask.newBuilder().build())
    +   *           .build();
    +   *   ApiFuture future =
    +   *       addressGroupServiceClient.setIamPolicyCallable().futureCall(request);
    +   *   // Do something.
    +   *   Policy response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    +   *   GetIamPolicyRequest request =
    +   *       GetIamPolicyRequest.newBuilder()
    +   *           .setResource(
    +   *               AddressGroupName.ofProjectLocationAddressGroupName(
    +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *                   .toString())
    +   *           .setOptions(GetPolicyOptions.newBuilder().build())
    +   *           .build();
    +   *   Policy response = addressGroupServiceClient.getIamPolicy(request);
    +   * }
    +   * }
    + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    +   *   GetIamPolicyRequest request =
    +   *       GetIamPolicyRequest.newBuilder()
    +   *           .setResource(
    +   *               AddressGroupName.ofProjectLocationAddressGroupName(
    +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *                   .toString())
    +   *           .setOptions(GetPolicyOptions.newBuilder().build())
    +   *           .build();
    +   *   ApiFuture future =
    +   *       addressGroupServiceClient.getIamPolicyCallable().futureCall(request);
    +   *   // Do something.
    +   *   Policy response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

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

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    +   *   TestIamPermissionsRequest request =
    +   *       TestIamPermissionsRequest.newBuilder()
    +   *           .setResource(
    +   *               AddressGroupName.ofProjectLocationAddressGroupName(
    +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *                   .toString())
    +   *           .addAllPermissions(new ArrayList())
    +   *           .build();
    +   *   TestIamPermissionsResponse response = addressGroupServiceClient.testIamPermissions(request);
    +   * }
    +   * }
    + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

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

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    +   *   TestIamPermissionsRequest request =
    +   *       TestIamPermissionsRequest.newBuilder()
    +   *           .setResource(
    +   *               AddressGroupName.ofProjectLocationAddressGroupName(
    +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *                   .toString())
    +   *           .addAllPermissions(new ArrayList())
    +   *           .build();
    +   *   ApiFuture future =
    +   *       addressGroupServiceClient.testIamPermissionsCallable().futureCall(request);
    +   *   // Do something.
    +   *   TestIamPermissionsResponse response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListAddressGroupsPagedResponse + extends AbstractPagedListResponse< + ListAddressGroupsRequest, + ListAddressGroupsResponse, + AddressGroup, + ListAddressGroupsPage, + ListAddressGroupsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListAddressGroupsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListAddressGroupsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListAddressGroupsPagedResponse(ListAddressGroupsPage page) { + super(page, ListAddressGroupsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListAddressGroupsPage + extends AbstractPage< + ListAddressGroupsRequest, + ListAddressGroupsResponse, + AddressGroup, + ListAddressGroupsPage> { + + private ListAddressGroupsPage( + PageContext context, + ListAddressGroupsResponse response) { + super(context, response); + } + + private static ListAddressGroupsPage createEmptyPage() { + return new ListAddressGroupsPage(null, null); + } + + @Override + protected ListAddressGroupsPage createPage( + PageContext context, + ListAddressGroupsResponse response) { + return new ListAddressGroupsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListAddressGroupsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListAddressGroupsRequest, + ListAddressGroupsResponse, + AddressGroup, + ListAddressGroupsPage, + ListAddressGroupsFixedSizeCollection> { + + private ListAddressGroupsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListAddressGroupsFixedSizeCollection createEmptyCollection() { + return new ListAddressGroupsFixedSizeCollection(null, 0); + } + + @Override + protected ListAddressGroupsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListAddressGroupsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListAddressGroupReferencesPagedResponse + extends AbstractPagedListResponse< + ListAddressGroupReferencesRequest, + ListAddressGroupReferencesResponse, + ListAddressGroupReferencesResponse.AddressGroupReference, + ListAddressGroupReferencesPage, + ListAddressGroupReferencesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListAddressGroupReferencesRequest, + ListAddressGroupReferencesResponse, + ListAddressGroupReferencesResponse.AddressGroupReference> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListAddressGroupReferencesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListAddressGroupReferencesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListAddressGroupReferencesPagedResponse(ListAddressGroupReferencesPage page) { + super(page, ListAddressGroupReferencesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListAddressGroupReferencesPage + extends AbstractPage< + ListAddressGroupReferencesRequest, + ListAddressGroupReferencesResponse, + ListAddressGroupReferencesResponse.AddressGroupReference, + ListAddressGroupReferencesPage> { + + private ListAddressGroupReferencesPage( + PageContext< + ListAddressGroupReferencesRequest, + ListAddressGroupReferencesResponse, + ListAddressGroupReferencesResponse.AddressGroupReference> + context, + ListAddressGroupReferencesResponse response) { + super(context, response); + } + + private static ListAddressGroupReferencesPage createEmptyPage() { + return new ListAddressGroupReferencesPage(null, null); + } + + @Override + protected ListAddressGroupReferencesPage createPage( + PageContext< + ListAddressGroupReferencesRequest, + ListAddressGroupReferencesResponse, + ListAddressGroupReferencesResponse.AddressGroupReference> + context, + ListAddressGroupReferencesResponse response) { + return new ListAddressGroupReferencesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListAddressGroupReferencesRequest, + ListAddressGroupReferencesResponse, + ListAddressGroupReferencesResponse.AddressGroupReference> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListAddressGroupReferencesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListAddressGroupReferencesRequest, + ListAddressGroupReferencesResponse, + ListAddressGroupReferencesResponse.AddressGroupReference, + ListAddressGroupReferencesPage, + ListAddressGroupReferencesFixedSizeCollection> { + + private ListAddressGroupReferencesFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListAddressGroupReferencesFixedSizeCollection createEmptyCollection() { + return new ListAddressGroupReferencesFixedSizeCollection(null, 0); + } + + @Override + protected ListAddressGroupReferencesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListAddressGroupReferencesFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/AddressGroupServiceSettings.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/AddressGroupServiceSettings.java new file mode 100644 index 000000000000..2fc574bf0e4a --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/AddressGroupServiceSettings.java @@ -0,0 +1,480 @@ +/* + * 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.networksecurity.v1; + +import static com.google.cloud.networksecurity.v1.AddressGroupServiceClient.ListAddressGroupReferencesPagedResponse; +import static com.google.cloud.networksecurity.v1.AddressGroupServiceClient.ListAddressGroupsPagedResponse; +import static com.google.cloud.networksecurity.v1.AddressGroupServiceClient.ListLocationsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.stub.AddressGroupServiceStubSettings; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link AddressGroupServiceClient}. + * + *

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

      + *
    • The default service address (networksecurity.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 getAddressGroup: + * + *

    {@code
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    + * AddressGroupServiceSettings.Builder addressGroupServiceSettingsBuilder =
    + *     AddressGroupServiceSettings.newBuilder();
    + * addressGroupServiceSettingsBuilder
    + *     .getAddressGroupSettings()
    + *     .setRetrySettings(
    + *         addressGroupServiceSettingsBuilder
    + *             .getAddressGroupSettings()
    + *             .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());
    + * AddressGroupServiceSettings addressGroupServiceSettings =
    + *     addressGroupServiceSettingsBuilder.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 createAddressGroup: + * + *

    {@code
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    + * AddressGroupServiceSettings.Builder addressGroupServiceSettingsBuilder =
    + *     AddressGroupServiceSettings.newBuilder();
    + * TimedRetryAlgorithm timedRetryAlgorithm =
    + *     OperationalTimedPollAlgorithm.create(
    + *         RetrySettings.newBuilder()
    + *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
    + *             .setRetryDelayMultiplier(1.5)
    + *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
    + *             .setTotalTimeoutDuration(Duration.ofHours(24))
    + *             .build());
    + * addressGroupServiceSettingsBuilder
    + *     .createClusterOperationSettings()
    + *     .setPollingAlgorithm(timedRetryAlgorithm)
    + *     .build();
    + * }
    + */ +@Generated("by gapic-generator-java") +public class AddressGroupServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to listAddressGroups. */ + public PagedCallSettings< + ListAddressGroupsRequest, ListAddressGroupsResponse, ListAddressGroupsPagedResponse> + listAddressGroupsSettings() { + return ((AddressGroupServiceStubSettings) getStubSettings()).listAddressGroupsSettings(); + } + + /** Returns the object with the settings used for calls to getAddressGroup. */ + public UnaryCallSettings getAddressGroupSettings() { + return ((AddressGroupServiceStubSettings) getStubSettings()).getAddressGroupSettings(); + } + + /** Returns the object with the settings used for calls to createAddressGroup. */ + public UnaryCallSettings createAddressGroupSettings() { + return ((AddressGroupServiceStubSettings) getStubSettings()).createAddressGroupSettings(); + } + + /** Returns the object with the settings used for calls to createAddressGroup. */ + public OperationCallSettings + createAddressGroupOperationSettings() { + return ((AddressGroupServiceStubSettings) getStubSettings()) + .createAddressGroupOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateAddressGroup. */ + public UnaryCallSettings updateAddressGroupSettings() { + return ((AddressGroupServiceStubSettings) getStubSettings()).updateAddressGroupSettings(); + } + + /** Returns the object with the settings used for calls to updateAddressGroup. */ + public OperationCallSettings + updateAddressGroupOperationSettings() { + return ((AddressGroupServiceStubSettings) getStubSettings()) + .updateAddressGroupOperationSettings(); + } + + /** Returns the object with the settings used for calls to addAddressGroupItems. */ + public UnaryCallSettings addAddressGroupItemsSettings() { + return ((AddressGroupServiceStubSettings) getStubSettings()).addAddressGroupItemsSettings(); + } + + /** Returns the object with the settings used for calls to addAddressGroupItems. */ + public OperationCallSettings + addAddressGroupItemsOperationSettings() { + return ((AddressGroupServiceStubSettings) getStubSettings()) + .addAddressGroupItemsOperationSettings(); + } + + /** Returns the object with the settings used for calls to removeAddressGroupItems. */ + public UnaryCallSettings + removeAddressGroupItemsSettings() { + return ((AddressGroupServiceStubSettings) getStubSettings()).removeAddressGroupItemsSettings(); + } + + /** Returns the object with the settings used for calls to removeAddressGroupItems. */ + public OperationCallSettings + removeAddressGroupItemsOperationSettings() { + return ((AddressGroupServiceStubSettings) getStubSettings()) + .removeAddressGroupItemsOperationSettings(); + } + + /** Returns the object with the settings used for calls to cloneAddressGroupItems. */ + public UnaryCallSettings + cloneAddressGroupItemsSettings() { + return ((AddressGroupServiceStubSettings) getStubSettings()).cloneAddressGroupItemsSettings(); + } + + /** Returns the object with the settings used for calls to cloneAddressGroupItems. */ + public OperationCallSettings + cloneAddressGroupItemsOperationSettings() { + return ((AddressGroupServiceStubSettings) getStubSettings()) + .cloneAddressGroupItemsOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteAddressGroup. */ + public UnaryCallSettings deleteAddressGroupSettings() { + return ((AddressGroupServiceStubSettings) getStubSettings()).deleteAddressGroupSettings(); + } + + /** Returns the object with the settings used for calls to deleteAddressGroup. */ + public OperationCallSettings + deleteAddressGroupOperationSettings() { + return ((AddressGroupServiceStubSettings) getStubSettings()) + .deleteAddressGroupOperationSettings(); + } + + /** Returns the object with the settings used for calls to listAddressGroupReferences. */ + public PagedCallSettings< + ListAddressGroupReferencesRequest, + ListAddressGroupReferencesResponse, + ListAddressGroupReferencesPagedResponse> + listAddressGroupReferencesSettings() { + return ((AddressGroupServiceStubSettings) getStubSettings()) + .listAddressGroupReferencesSettings(); + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return ((AddressGroupServiceStubSettings) getStubSettings()).listLocationsSettings(); + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return ((AddressGroupServiceStubSettings) getStubSettings()).getLocationSettings(); + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return ((AddressGroupServiceStubSettings) getStubSettings()).setIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return ((AddressGroupServiceStubSettings) getStubSettings()).getIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return ((AddressGroupServiceStubSettings) getStubSettings()).testIamPermissionsSettings(); + } + + public static final AddressGroupServiceSettings create(AddressGroupServiceStubSettings stub) + throws IOException { + return new AddressGroupServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return AddressGroupServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return AddressGroupServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return AddressGroupServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return AddressGroupServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return AddressGroupServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return AddressGroupServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return AddressGroupServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected AddressGroupServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for AddressGroupServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(AddressGroupServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(AddressGroupServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(AddressGroupServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(AddressGroupServiceStubSettings.newBuilder()); + } + + public AddressGroupServiceStubSettings.Builder getStubSettingsBuilder() { + return ((AddressGroupServiceStubSettings.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 listAddressGroups. */ + public PagedCallSettings.Builder< + ListAddressGroupsRequest, ListAddressGroupsResponse, ListAddressGroupsPagedResponse> + listAddressGroupsSettings() { + return getStubSettingsBuilder().listAddressGroupsSettings(); + } + + /** Returns the builder for the settings used for calls to getAddressGroup. */ + public UnaryCallSettings.Builder + getAddressGroupSettings() { + return getStubSettingsBuilder().getAddressGroupSettings(); + } + + /** Returns the builder for the settings used for calls to createAddressGroup. */ + public UnaryCallSettings.Builder + createAddressGroupSettings() { + return getStubSettingsBuilder().createAddressGroupSettings(); + } + + /** Returns the builder for the settings used for calls to createAddressGroup. */ + public OperationCallSettings.Builder + createAddressGroupOperationSettings() { + return getStubSettingsBuilder().createAddressGroupOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateAddressGroup. */ + public UnaryCallSettings.Builder + updateAddressGroupSettings() { + return getStubSettingsBuilder().updateAddressGroupSettings(); + } + + /** Returns the builder for the settings used for calls to updateAddressGroup. */ + public OperationCallSettings.Builder + updateAddressGroupOperationSettings() { + return getStubSettingsBuilder().updateAddressGroupOperationSettings(); + } + + /** Returns the builder for the settings used for calls to addAddressGroupItems. */ + public UnaryCallSettings.Builder + addAddressGroupItemsSettings() { + return getStubSettingsBuilder().addAddressGroupItemsSettings(); + } + + /** Returns the builder for the settings used for calls to addAddressGroupItems. */ + public OperationCallSettings.Builder< + AddAddressGroupItemsRequest, AddressGroup, OperationMetadata> + addAddressGroupItemsOperationSettings() { + return getStubSettingsBuilder().addAddressGroupItemsOperationSettings(); + } + + /** Returns the builder for the settings used for calls to removeAddressGroupItems. */ + public UnaryCallSettings.Builder + removeAddressGroupItemsSettings() { + return getStubSettingsBuilder().removeAddressGroupItemsSettings(); + } + + /** Returns the builder for the settings used for calls to removeAddressGroupItems. */ + public OperationCallSettings.Builder< + RemoveAddressGroupItemsRequest, AddressGroup, OperationMetadata> + removeAddressGroupItemsOperationSettings() { + return getStubSettingsBuilder().removeAddressGroupItemsOperationSettings(); + } + + /** Returns the builder for the settings used for calls to cloneAddressGroupItems. */ + public UnaryCallSettings.Builder + cloneAddressGroupItemsSettings() { + return getStubSettingsBuilder().cloneAddressGroupItemsSettings(); + } + + /** Returns the builder for the settings used for calls to cloneAddressGroupItems. */ + public OperationCallSettings.Builder< + CloneAddressGroupItemsRequest, AddressGroup, OperationMetadata> + cloneAddressGroupItemsOperationSettings() { + return getStubSettingsBuilder().cloneAddressGroupItemsOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteAddressGroup. */ + public UnaryCallSettings.Builder + deleteAddressGroupSettings() { + return getStubSettingsBuilder().deleteAddressGroupSettings(); + } + + /** Returns the builder for the settings used for calls to deleteAddressGroup. */ + public OperationCallSettings.Builder + deleteAddressGroupOperationSettings() { + return getStubSettingsBuilder().deleteAddressGroupOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listAddressGroupReferences. */ + public PagedCallSettings.Builder< + ListAddressGroupReferencesRequest, + ListAddressGroupReferencesResponse, + ListAddressGroupReferencesPagedResponse> + listAddressGroupReferencesSettings() { + return getStubSettingsBuilder().listAddressGroupReferencesSettings(); + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return getStubSettingsBuilder().listLocationsSettings(); + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getStubSettingsBuilder().getLocationSettings(); + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return getStubSettingsBuilder().setIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getStubSettingsBuilder().getIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return getStubSettingsBuilder().testIamPermissionsSettings(); + } + + @Override + public AddressGroupServiceSettings build() throws IOException { + return new AddressGroupServiceSettings(this); + } + } +} diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecurityClient.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecurityClient.java index 6a6c03ec1468..208415532a84 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecurityClient.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecurityClient.java @@ -2990,7 +2990,8 @@ public final UnaryCallable getLocationCallable() { * SetIamPolicyRequest request = * SetIamPolicyRequest.newBuilder() * .setResource( - * AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") + * AddressGroupName.ofProjectLocationAddressGroupName( + * "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") * .toString()) * .setPolicy(Policy.newBuilder().build()) * .setUpdateMask(FieldMask.newBuilder().build()) @@ -3024,7 +3025,8 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) { * SetIamPolicyRequest request = * SetIamPolicyRequest.newBuilder() * .setResource( - * AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") + * AddressGroupName.ofProjectLocationAddressGroupName( + * "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") * .toString()) * .setPolicy(Policy.newBuilder().build()) * .setUpdateMask(FieldMask.newBuilder().build()) @@ -3056,7 +3058,8 @@ public final UnaryCallable setIamPolicyCallable() { * GetIamPolicyRequest request = * GetIamPolicyRequest.newBuilder() * .setResource( - * AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") + * AddressGroupName.ofProjectLocationAddressGroupName( + * "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") * .toString()) * .setOptions(GetPolicyOptions.newBuilder().build()) * .build(); @@ -3088,7 +3091,8 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) { * GetIamPolicyRequest request = * GetIamPolicyRequest.newBuilder() * .setResource( - * AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") + * AddressGroupName.ofProjectLocationAddressGroupName( + * "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") * .toString()) * .setOptions(GetPolicyOptions.newBuilder().build()) * .build(); @@ -3123,7 +3127,8 @@ public final UnaryCallable getIamPolicyCallable() { * TestIamPermissionsRequest request = * TestIamPermissionsRequest.newBuilder() * .setResource( - * AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") + * AddressGroupName.ofProjectLocationAddressGroupName( + * "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") * .toString()) * .addAllPermissions(new ArrayList()) * .build(); @@ -3159,7 +3164,8 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq * TestIamPermissionsRequest request = * TestIamPermissionsRequest.newBuilder() * .setResource( - * AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") + * AddressGroupName.ofProjectLocationAddressGroupName( + * "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") * .toString()) * .addAllPermissions(new ArrayList()) * .build(); diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/OrganizationAddressGroupServiceClient.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/OrganizationAddressGroupServiceClient.java new file mode 100644 index 000000000000..b984fee3f0ef --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/OrganizationAddressGroupServiceClient.java @@ -0,0 +1,2829 @@ +/* + * 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.networksecurity.v1; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.stub.OrganizationAddressGroupServiceStub; +import com.google.cloud.networksecurity.v1.stub.OrganizationAddressGroupServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.OperationsClient; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Organization AddressGroup is created under organization. Requests against + * Organization AddressGroup will use project from request credential for + * activation/quota/visibility check. + * + *

    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 (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    + *     OrganizationAddressGroupServiceClient.create()) {
    + *   AddressGroupName name =
    + *       AddressGroupName.ofOrganizationLocationAddressGroupName(
    + *           "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]");
    + *   AddressGroup response = organizationAddressGroupServiceClient.getAddressGroup(name);
    + * }
    + * }
    + * + *

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

    ListAddressGroups

    Lists address groups in a given project and location.

    + *

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

    + *
      + *
    • listAddressGroups(ListAddressGroupsRequest request) + *

    + *

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

    + *
      + *
    • listAddressGroups(LocationName parent) + *

    • listAddressGroups(String parent) + *

    + *

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

    + *
      + *
    • listAddressGroupsPagedCallable() + *

    • listAddressGroupsCallable() + *

    + *

    GetAddressGroup

    Gets details of a single address group.

    + *

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

    + *
      + *
    • getAddressGroup(GetAddressGroupRequest request) + *

    + *

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

    + *
      + *
    • getAddressGroup(AddressGroupName name) + *

    • getAddressGroup(String name) + *

    + *

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

    + *
      + *
    • getAddressGroupCallable() + *

    + *

    CreateAddressGroup

    Creates a new address group in a given project and location.

    + *

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

    + *
      + *
    • createAddressGroupAsync(CreateAddressGroupRequest request) + *

    + *

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

    + *
      + *
    • createAddressGroupAsync(LocationName parent, AddressGroup addressGroup, String addressGroupId) + *

    • createAddressGroupAsync(OrganizationLocationName parent, AddressGroup addressGroup, String addressGroupId) + *

    • createAddressGroupAsync(String parent, AddressGroup addressGroup, String addressGroupId) + *

    + *

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

    + *
      + *
    • createAddressGroupOperationCallable() + *

    • createAddressGroupCallable() + *

    + *

    UpdateAddressGroup

    Updates parameters of an address group.

    + *

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

    + *
      + *
    • updateAddressGroupAsync(UpdateAddressGroupRequest request) + *

    + *

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

    + *
      + *
    • updateAddressGroupAsync(AddressGroup addressGroup, FieldMask updateMask) + *

    + *

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

    + *
      + *
    • updateAddressGroupOperationCallable() + *

    • updateAddressGroupCallable() + *

    + *

    AddAddressGroupItems

    Adds items to an address group.

    + *

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

    + *
      + *
    • addAddressGroupItemsAsync(AddAddressGroupItemsRequest request) + *

    + *

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

    + *
      + *
    • addAddressGroupItemsAsync(AddressGroupName addressGroup, List<String> items) + *

    • addAddressGroupItemsAsync(String addressGroup, List<String> items) + *

    + *

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

    + *
      + *
    • addAddressGroupItemsOperationCallable() + *

    • addAddressGroupItemsCallable() + *

    + *

    RemoveAddressGroupItems

    Removes items from an address group.

    + *

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

    + *
      + *
    • removeAddressGroupItemsAsync(RemoveAddressGroupItemsRequest request) + *

    + *

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

    + *
      + *
    • removeAddressGroupItemsAsync(AddressGroupName addressGroup, List<String> items) + *

    • removeAddressGroupItemsAsync(String addressGroup, List<String> items) + *

    + *

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

    + *
      + *
    • removeAddressGroupItemsOperationCallable() + *

    • removeAddressGroupItemsCallable() + *

    + *

    CloneAddressGroupItems

    Clones items from one address group to another.

    + *

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

    + *
      + *
    • cloneAddressGroupItemsAsync(CloneAddressGroupItemsRequest request) + *

    + *

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

    + *
      + *
    • cloneAddressGroupItemsAsync(AddressGroupName addressGroup, AddressGroupName sourceAddressGroup) + *

    • cloneAddressGroupItemsAsync(AddressGroupName addressGroup, String sourceAddressGroup) + *

    • cloneAddressGroupItemsAsync(String addressGroup, AddressGroupName sourceAddressGroup) + *

    • cloneAddressGroupItemsAsync(String addressGroup, String sourceAddressGroup) + *

    + *

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

    + *
      + *
    • cloneAddressGroupItemsOperationCallable() + *

    • cloneAddressGroupItemsCallable() + *

    + *

    DeleteAddressGroup

    Deletes an address group.

    + *

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

    + *
      + *
    • deleteAddressGroupAsync(DeleteAddressGroupRequest request) + *

    + *

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

    + *
      + *
    • deleteAddressGroupAsync(AddressGroupName name) + *

    • deleteAddressGroupAsync(String name) + *

    + *

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

    + *
      + *
    • deleteAddressGroupOperationCallable() + *

    • deleteAddressGroupCallable() + *

    + *

    ListAddressGroupReferences

    Lists references of an address group.

    + *

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

    + *
      + *
    • listAddressGroupReferences(ListAddressGroupReferencesRequest request) + *

    + *

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

    + *
      + *
    • listAddressGroupReferences(AddressGroupName addressGroup) + *

    • listAddressGroupReferences(String addressGroup) + *

    + *

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

    + *
      + *
    • listAddressGroupReferencesPagedCallable() + *

    • listAddressGroupReferencesCallable() + *

    + *

    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() + *

    + *

    SetIamPolicy

    Sets the access control policy on the specified resource. Replacesany existing policy. + *

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

    + *

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

    + *
      + *
    • setIamPolicy(SetIamPolicyRequest request) + *

    + *

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

    + *
      + *
    • setIamPolicyCallable() + *

    + *

    GetIamPolicy

    Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.

    + *

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

    + *
      + *
    • getIamPolicy(GetIamPolicyRequest request) + *

    + *

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

    + *
      + *
    • getIamPolicyCallable() + *

    + *

    TestIamPermissions

    Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error. + *

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

    + *

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

    + *
      + *
    • testIamPermissions(TestIamPermissionsRequest request) + *

    + *

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

    + *
      + *
    • testIamPermissionsCallable() + *

    + *
    + * + *

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

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

    This class can be customized by passing in a custom instance of + * OrganizationAddressGroupServiceSettings 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
    + * OrganizationAddressGroupServiceSettings organizationAddressGroupServiceSettings =
    + *     OrganizationAddressGroupServiceSettings.newBuilder()
    + *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
    + *         .build();
    + * OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    + *     OrganizationAddressGroupServiceClient.create(organizationAddressGroupServiceSettings);
    + * }
    + * + *

    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
    + * OrganizationAddressGroupServiceSettings organizationAddressGroupServiceSettings =
    + *     OrganizationAddressGroupServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
    + * OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    + *     OrganizationAddressGroupServiceClient.create(organizationAddressGroupServiceSettings);
    + * }
    + * + *

    Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class OrganizationAddressGroupServiceClient implements BackgroundResource { + private final OrganizationAddressGroupServiceSettings settings; + private final OrganizationAddressGroupServiceStub stub; + private final OperationsClient operationsClient; + + /** Constructs an instance of OrganizationAddressGroupServiceClient with default settings. */ + public static final OrganizationAddressGroupServiceClient create() throws IOException { + return create(OrganizationAddressGroupServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of OrganizationAddressGroupServiceClient, 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 OrganizationAddressGroupServiceClient create( + OrganizationAddressGroupServiceSettings settings) throws IOException { + return new OrganizationAddressGroupServiceClient(settings); + } + + /** + * Constructs an instance of OrganizationAddressGroupServiceClient, using the given stub for + * making calls. This is for advanced usage - prefer using + * create(OrganizationAddressGroupServiceSettings). + */ + public static final OrganizationAddressGroupServiceClient create( + OrganizationAddressGroupServiceStub stub) { + return new OrganizationAddressGroupServiceClient(stub); + } + + /** + * Constructs an instance of OrganizationAddressGroupServiceClient, 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 OrganizationAddressGroupServiceClient(OrganizationAddressGroupServiceSettings settings) + throws IOException { + this.settings = settings; + this.stub = + ((OrganizationAddressGroupServiceStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + protected OrganizationAddressGroupServiceClient(OrganizationAddressGroupServiceStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + public final OrganizationAddressGroupServiceSettings getSettings() { + return settings; + } + + public OrganizationAddressGroupServiceStub 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 OperationsClient getOperationsClient() { + return operationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists address groups in a given project and location. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    +   *     OrganizationAddressGroupServiceClient.create()) {
    +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    +   *   for (AddressGroup element :
    +   *       organizationAddressGroupServiceClient.listAddressGroups(parent).iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + * + * @param parent Required. The project and location from which the AddressGroups should be listed, + * specified in the format `projects/*/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAddressGroupsPagedResponse listAddressGroups(LocationName parent) { + ListAddressGroupsRequest request = + ListAddressGroupsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAddressGroups(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists address groups in a given project and location. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    +   *     OrganizationAddressGroupServiceClient.create()) {
    +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    +   *   for (AddressGroup element :
    +   *       organizationAddressGroupServiceClient.listAddressGroups(parent).iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + * + * @param parent Required. The project and location from which the AddressGroups should be listed, + * specified in the format `projects/*/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAddressGroupsPagedResponse listAddressGroups(String parent) { + ListAddressGroupsRequest request = + ListAddressGroupsRequest.newBuilder().setParent(parent).build(); + return listAddressGroups(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists address groups in a given project and location. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    +   *     OrganizationAddressGroupServiceClient.create()) {
    +   *   ListAddressGroupsRequest request =
    +   *       ListAddressGroupsRequest.newBuilder()
    +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .setReturnPartialSuccess(true)
    +   *           .build();
    +   *   for (AddressGroup element :
    +   *       organizationAddressGroupServiceClient.listAddressGroups(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 ListAddressGroupsPagedResponse listAddressGroups(ListAddressGroupsRequest request) { + return listAddressGroupsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists address groups in a given project and location. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    +   *     OrganizationAddressGroupServiceClient.create()) {
    +   *   ListAddressGroupsRequest request =
    +   *       ListAddressGroupsRequest.newBuilder()
    +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .setReturnPartialSuccess(true)
    +   *           .build();
    +   *   ApiFuture future =
    +   *       organizationAddressGroupServiceClient
    +   *           .listAddressGroupsPagedCallable()
    +   *           .futureCall(request);
    +   *   // Do something.
    +   *   for (AddressGroup element : future.get().iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + */ + public final UnaryCallable + listAddressGroupsPagedCallable() { + return stub.listAddressGroupsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists address groups in a given project and location. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    +   *     OrganizationAddressGroupServiceClient.create()) {
    +   *   ListAddressGroupsRequest request =
    +   *       ListAddressGroupsRequest.newBuilder()
    +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .setReturnPartialSuccess(true)
    +   *           .build();
    +   *   while (true) {
    +   *     ListAddressGroupsResponse response =
    +   *         organizationAddressGroupServiceClient.listAddressGroupsCallable().call(request);
    +   *     for (AddressGroup element : response.getAddressGroupsList()) {
    +   *       // doThingsWith(element);
    +   *     }
    +   *     String nextPageToken = response.getNextPageToken();
    +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
    +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
    +   *     } else {
    +   *       break;
    +   *     }
    +   *   }
    +   * }
    +   * }
    + */ + public final UnaryCallable + listAddressGroupsCallable() { + return stub.listAddressGroupsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single address group. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    +   *     OrganizationAddressGroupServiceClient.create()) {
    +   *   AddressGroupName name =
    +   *       AddressGroupName.ofOrganizationLocationAddressGroupName(
    +   *           "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]");
    +   *   AddressGroup response = organizationAddressGroupServiceClient.getAddressGroup(name);
    +   * }
    +   * }
    + * + * @param name Required. A name of the AddressGroup to get. Must be in the format + * `projects/*/locations/{location}/addressGroups/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AddressGroup getAddressGroup(AddressGroupName name) { + GetAddressGroupRequest request = + GetAddressGroupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getAddressGroup(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single address group. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    +   *     OrganizationAddressGroupServiceClient.create()) {
    +   *   String name =
    +   *       AddressGroupName.ofProjectLocationAddressGroupName(
    +   *               "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *           .toString();
    +   *   AddressGroup response = organizationAddressGroupServiceClient.getAddressGroup(name);
    +   * }
    +   * }
    + * + * @param name Required. A name of the AddressGroup to get. Must be in the format + * `projects/*/locations/{location}/addressGroups/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AddressGroup getAddressGroup(String name) { + GetAddressGroupRequest request = GetAddressGroupRequest.newBuilder().setName(name).build(); + return getAddressGroup(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single address group. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    +   *     OrganizationAddressGroupServiceClient.create()) {
    +   *   GetAddressGroupRequest request =
    +   *       GetAddressGroupRequest.newBuilder()
    +   *           .setName(
    +   *               AddressGroupName.ofOrganizationLocationAddressGroupName(
    +   *                       "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *                   .toString())
    +   *           .build();
    +   *   AddressGroup response = organizationAddressGroupServiceClient.getAddressGroup(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 AddressGroup getAddressGroup(GetAddressGroupRequest request) { + return getAddressGroupCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single address group. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    +   *     OrganizationAddressGroupServiceClient.create()) {
    +   *   GetAddressGroupRequest request =
    +   *       GetAddressGroupRequest.newBuilder()
    +   *           .setName(
    +   *               AddressGroupName.ofOrganizationLocationAddressGroupName(
    +   *                       "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *                   .toString())
    +   *           .build();
    +   *   ApiFuture future =
    +   *       organizationAddressGroupServiceClient.getAddressGroupCallable().futureCall(request);
    +   *   // Do something.
    +   *   AddressGroup response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable getAddressGroupCallable() { + return stub.getAddressGroupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new address group in a given project and location. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    +   *     OrganizationAddressGroupServiceClient.create()) {
    +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    +   *   AddressGroup addressGroup = AddressGroup.newBuilder().build();
    +   *   String addressGroupId = "addressGroupId705215846";
    +   *   AddressGroup response =
    +   *       organizationAddressGroupServiceClient
    +   *           .createAddressGroupAsync(parent, addressGroup, addressGroupId)
    +   *           .get();
    +   * }
    +   * }
    + * + * @param parent Required. The parent resource of the AddressGroup. Must be in the format + * `projects/*/locations/{location}`. + * @param addressGroup Required. AddressGroup resource to be created. + * @param addressGroupId Required. Short name of the AddressGroup resource to be created. This + * value should be 1-63 characters long, containing only letters, numbers, hyphens, and + * underscores, and should not start with a number. E.g. "authz_policy". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createAddressGroupAsync( + LocationName parent, AddressGroup addressGroup, String addressGroupId) { + CreateAddressGroupRequest request = + CreateAddressGroupRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setAddressGroup(addressGroup) + .setAddressGroupId(addressGroupId) + .build(); + return createAddressGroupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new address group in a given project and location. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    +   *     OrganizationAddressGroupServiceClient.create()) {
    +   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
    +   *   AddressGroup addressGroup = AddressGroup.newBuilder().build();
    +   *   String addressGroupId = "addressGroupId705215846";
    +   *   AddressGroup response =
    +   *       organizationAddressGroupServiceClient
    +   *           .createAddressGroupAsync(parent, addressGroup, addressGroupId)
    +   *           .get();
    +   * }
    +   * }
    + * + * @param parent Required. The parent resource of the AddressGroup. Must be in the format + * `projects/*/locations/{location}`. + * @param addressGroup Required. AddressGroup resource to be created. + * @param addressGroupId Required. Short name of the AddressGroup resource to be created. This + * value should be 1-63 characters long, containing only letters, numbers, hyphens, and + * underscores, and should not start with a number. E.g. "authz_policy". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createAddressGroupAsync( + OrganizationLocationName parent, AddressGroup addressGroup, String addressGroupId) { + CreateAddressGroupRequest request = + CreateAddressGroupRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setAddressGroup(addressGroup) + .setAddressGroupId(addressGroupId) + .build(); + return createAddressGroupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new address group in a given project and location. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    +   *     OrganizationAddressGroupServiceClient.create()) {
    +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    +   *   AddressGroup addressGroup = AddressGroup.newBuilder().build();
    +   *   String addressGroupId = "addressGroupId705215846";
    +   *   AddressGroup response =
    +   *       organizationAddressGroupServiceClient
    +   *           .createAddressGroupAsync(parent, addressGroup, addressGroupId)
    +   *           .get();
    +   * }
    +   * }
    + * + * @param parent Required. The parent resource of the AddressGroup. Must be in the format + * `projects/*/locations/{location}`. + * @param addressGroup Required. AddressGroup resource to be created. + * @param addressGroupId Required. Short name of the AddressGroup resource to be created. This + * value should be 1-63 characters long, containing only letters, numbers, hyphens, and + * underscores, and should not start with a number. E.g. "authz_policy". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createAddressGroupAsync( + String parent, AddressGroup addressGroup, String addressGroupId) { + CreateAddressGroupRequest request = + CreateAddressGroupRequest.newBuilder() + .setParent(parent) + .setAddressGroup(addressGroup) + .setAddressGroupId(addressGroupId) + .build(); + return createAddressGroupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new address group in a given project and location. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    +   *     OrganizationAddressGroupServiceClient.create()) {
    +   *   CreateAddressGroupRequest request =
    +   *       CreateAddressGroupRequest.newBuilder()
    +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    +   *           .setAddressGroupId("addressGroupId705215846")
    +   *           .setAddressGroup(AddressGroup.newBuilder().build())
    +   *           .setRequestId("requestId693933066")
    +   *           .build();
    +   *   AddressGroup response =
    +   *       organizationAddressGroupServiceClient.createAddressGroupAsync(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 createAddressGroupAsync( + CreateAddressGroupRequest request) { + return createAddressGroupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new address group in a given project and location. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    +   *     OrganizationAddressGroupServiceClient.create()) {
    +   *   CreateAddressGroupRequest request =
    +   *       CreateAddressGroupRequest.newBuilder()
    +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    +   *           .setAddressGroupId("addressGroupId705215846")
    +   *           .setAddressGroup(AddressGroup.newBuilder().build())
    +   *           .setRequestId("requestId693933066")
    +   *           .build();
    +   *   OperationFuture future =
    +   *       organizationAddressGroupServiceClient
    +   *           .createAddressGroupOperationCallable()
    +   *           .futureCall(request);
    +   *   // Do something.
    +   *   AddressGroup response = future.get();
    +   * }
    +   * }
    + */ + public final OperationCallable + createAddressGroupOperationCallable() { + return stub.createAddressGroupOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new address group in a given project and location. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    +   *     OrganizationAddressGroupServiceClient.create()) {
    +   *   CreateAddressGroupRequest request =
    +   *       CreateAddressGroupRequest.newBuilder()
    +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    +   *           .setAddressGroupId("addressGroupId705215846")
    +   *           .setAddressGroup(AddressGroup.newBuilder().build())
    +   *           .setRequestId("requestId693933066")
    +   *           .build();
    +   *   ApiFuture future =
    +   *       organizationAddressGroupServiceClient.createAddressGroupCallable().futureCall(request);
    +   *   // Do something.
    +   *   Operation response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable createAddressGroupCallable() { + return stub.createAddressGroupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates parameters of an address group. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    +   *     OrganizationAddressGroupServiceClient.create()) {
    +   *   AddressGroup addressGroup = AddressGroup.newBuilder().build();
    +   *   FieldMask updateMask = FieldMask.newBuilder().build();
    +   *   AddressGroup response =
    +   *       organizationAddressGroupServiceClient
    +   *           .updateAddressGroupAsync(addressGroup, updateMask)
    +   *           .get();
    +   * }
    +   * }
    + * + * @param addressGroup Required. Updated AddressGroup resource. + * @param updateMask Optional. Field mask is used to specify the fields to be overwritten in the + * AddressGroup resource by the update. The fields specified in the update_mask are relative + * to the resource, not the full request. A field will be overwritten if it is in the mask. If + * the user does not provide a mask then all fields will be overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateAddressGroupAsync( + AddressGroup addressGroup, FieldMask updateMask) { + UpdateAddressGroupRequest request = + UpdateAddressGroupRequest.newBuilder() + .setAddressGroup(addressGroup) + .setUpdateMask(updateMask) + .build(); + return updateAddressGroupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates parameters of an address group. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    +   *     OrganizationAddressGroupServiceClient.create()) {
    +   *   UpdateAddressGroupRequest request =
    +   *       UpdateAddressGroupRequest.newBuilder()
    +   *           .setUpdateMask(FieldMask.newBuilder().build())
    +   *           .setAddressGroup(AddressGroup.newBuilder().build())
    +   *           .setRequestId("requestId693933066")
    +   *           .build();
    +   *   AddressGroup response =
    +   *       organizationAddressGroupServiceClient.updateAddressGroupAsync(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 updateAddressGroupAsync( + UpdateAddressGroupRequest request) { + return updateAddressGroupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates parameters of an address group. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    +   *     OrganizationAddressGroupServiceClient.create()) {
    +   *   UpdateAddressGroupRequest request =
    +   *       UpdateAddressGroupRequest.newBuilder()
    +   *           .setUpdateMask(FieldMask.newBuilder().build())
    +   *           .setAddressGroup(AddressGroup.newBuilder().build())
    +   *           .setRequestId("requestId693933066")
    +   *           .build();
    +   *   OperationFuture future =
    +   *       organizationAddressGroupServiceClient
    +   *           .updateAddressGroupOperationCallable()
    +   *           .futureCall(request);
    +   *   // Do something.
    +   *   AddressGroup response = future.get();
    +   * }
    +   * }
    + */ + public final OperationCallable + updateAddressGroupOperationCallable() { + return stub.updateAddressGroupOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates parameters of an address group. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    +   *     OrganizationAddressGroupServiceClient.create()) {
    +   *   UpdateAddressGroupRequest request =
    +   *       UpdateAddressGroupRequest.newBuilder()
    +   *           .setUpdateMask(FieldMask.newBuilder().build())
    +   *           .setAddressGroup(AddressGroup.newBuilder().build())
    +   *           .setRequestId("requestId693933066")
    +   *           .build();
    +   *   ApiFuture future =
    +   *       organizationAddressGroupServiceClient.updateAddressGroupCallable().futureCall(request);
    +   *   // Do something.
    +   *   Operation response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable updateAddressGroupCallable() { + return stub.updateAddressGroupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Adds items to an address group. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    +   *     OrganizationAddressGroupServiceClient.create()) {
    +   *   AddressGroupName addressGroup =
    +   *       AddressGroupName.ofOrganizationLocationAddressGroupName(
    +   *           "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]");
    +   *   List items = new ArrayList<>();
    +   *   AddressGroup response =
    +   *       organizationAddressGroupServiceClient
    +   *           .addAddressGroupItemsAsync(addressGroup, items)
    +   *           .get();
    +   * }
    +   * }
    + * + * @param addressGroup Required. A name of the AddressGroup to add items to. Must be in the format + * `projects|organization/*/locations/{location}/addressGroups/*`. + * @param items Required. List of items to add. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture addAddressGroupItemsAsync( + AddressGroupName addressGroup, List items) { + AddAddressGroupItemsRequest request = + AddAddressGroupItemsRequest.newBuilder() + .setAddressGroup(addressGroup == null ? null : addressGroup.toString()) + .addAllItems(items) + .build(); + return addAddressGroupItemsAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Adds items to an address group. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    +   *     OrganizationAddressGroupServiceClient.create()) {
    +   *   String addressGroup =
    +   *       AddressGroupName.ofProjectLocationAddressGroupName(
    +   *               "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *           .toString();
    +   *   List items = new ArrayList<>();
    +   *   AddressGroup response =
    +   *       organizationAddressGroupServiceClient
    +   *           .addAddressGroupItemsAsync(addressGroup, items)
    +   *           .get();
    +   * }
    +   * }
    + * + * @param addressGroup Required. A name of the AddressGroup to add items to. Must be in the format + * `projects|organization/*/locations/{location}/addressGroups/*`. + * @param items Required. List of items to add. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture addAddressGroupItemsAsync( + String addressGroup, List items) { + AddAddressGroupItemsRequest request = + AddAddressGroupItemsRequest.newBuilder() + .setAddressGroup(addressGroup) + .addAllItems(items) + .build(); + return addAddressGroupItemsAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Adds items to an address group. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    +   *     OrganizationAddressGroupServiceClient.create()) {
    +   *   AddAddressGroupItemsRequest request =
    +   *       AddAddressGroupItemsRequest.newBuilder()
    +   *           .setAddressGroup(
    +   *               AddressGroupName.ofOrganizationLocationAddressGroupName(
    +   *                       "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *                   .toString())
    +   *           .addAllItems(new ArrayList())
    +   *           .setRequestId("requestId693933066")
    +   *           .build();
    +   *   AddressGroup response =
    +   *       organizationAddressGroupServiceClient.addAddressGroupItemsAsync(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 addAddressGroupItemsAsync( + AddAddressGroupItemsRequest request) { + return addAddressGroupItemsOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Adds items to an address group. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    +   *     OrganizationAddressGroupServiceClient.create()) {
    +   *   AddAddressGroupItemsRequest request =
    +   *       AddAddressGroupItemsRequest.newBuilder()
    +   *           .setAddressGroup(
    +   *               AddressGroupName.ofOrganizationLocationAddressGroupName(
    +   *                       "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *                   .toString())
    +   *           .addAllItems(new ArrayList())
    +   *           .setRequestId("requestId693933066")
    +   *           .build();
    +   *   OperationFuture future =
    +   *       organizationAddressGroupServiceClient
    +   *           .addAddressGroupItemsOperationCallable()
    +   *           .futureCall(request);
    +   *   // Do something.
    +   *   AddressGroup response = future.get();
    +   * }
    +   * }
    + */ + public final OperationCallable + addAddressGroupItemsOperationCallable() { + return stub.addAddressGroupItemsOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Adds items to an address group. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    +   *     OrganizationAddressGroupServiceClient.create()) {
    +   *   AddAddressGroupItemsRequest request =
    +   *       AddAddressGroupItemsRequest.newBuilder()
    +   *           .setAddressGroup(
    +   *               AddressGroupName.ofOrganizationLocationAddressGroupName(
    +   *                       "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *                   .toString())
    +   *           .addAllItems(new ArrayList())
    +   *           .setRequestId("requestId693933066")
    +   *           .build();
    +   *   ApiFuture future =
    +   *       organizationAddressGroupServiceClient.addAddressGroupItemsCallable().futureCall(request);
    +   *   // Do something.
    +   *   Operation response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable + addAddressGroupItemsCallable() { + return stub.addAddressGroupItemsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes items from an address group. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    +   *     OrganizationAddressGroupServiceClient.create()) {
    +   *   AddressGroupName addressGroup =
    +   *       AddressGroupName.ofOrganizationLocationAddressGroupName(
    +   *           "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]");
    +   *   List items = new ArrayList<>();
    +   *   AddressGroup response =
    +   *       organizationAddressGroupServiceClient
    +   *           .removeAddressGroupItemsAsync(addressGroup, items)
    +   *           .get();
    +   * }
    +   * }
    + * + * @param addressGroup Required. A name of the AddressGroup to remove items from. Must be in the + * format `projects|organization/*/locations/{location}/addressGroups/*`. + * @param items Required. List of items to remove. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture removeAddressGroupItemsAsync( + AddressGroupName addressGroup, List items) { + RemoveAddressGroupItemsRequest request = + RemoveAddressGroupItemsRequest.newBuilder() + .setAddressGroup(addressGroup == null ? null : addressGroup.toString()) + .addAllItems(items) + .build(); + return removeAddressGroupItemsAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes items from an address group. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    +   *     OrganizationAddressGroupServiceClient.create()) {
    +   *   String addressGroup =
    +   *       AddressGroupName.ofProjectLocationAddressGroupName(
    +   *               "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *           .toString();
    +   *   List items = new ArrayList<>();
    +   *   AddressGroup response =
    +   *       organizationAddressGroupServiceClient
    +   *           .removeAddressGroupItemsAsync(addressGroup, items)
    +   *           .get();
    +   * }
    +   * }
    + * + * @param addressGroup Required. A name of the AddressGroup to remove items from. Must be in the + * format `projects|organization/*/locations/{location}/addressGroups/*`. + * @param items Required. List of items to remove. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture removeAddressGroupItemsAsync( + String addressGroup, List items) { + RemoveAddressGroupItemsRequest request = + RemoveAddressGroupItemsRequest.newBuilder() + .setAddressGroup(addressGroup) + .addAllItems(items) + .build(); + return removeAddressGroupItemsAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes items from an address group. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    +   *     OrganizationAddressGroupServiceClient.create()) {
    +   *   RemoveAddressGroupItemsRequest request =
    +   *       RemoveAddressGroupItemsRequest.newBuilder()
    +   *           .setAddressGroup(
    +   *               AddressGroupName.ofOrganizationLocationAddressGroupName(
    +   *                       "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *                   .toString())
    +   *           .addAllItems(new ArrayList())
    +   *           .setRequestId("requestId693933066")
    +   *           .build();
    +   *   AddressGroup response =
    +   *       organizationAddressGroupServiceClient.removeAddressGroupItemsAsync(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 removeAddressGroupItemsAsync( + RemoveAddressGroupItemsRequest request) { + return removeAddressGroupItemsOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes items from an address group. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    +   *     OrganizationAddressGroupServiceClient.create()) {
    +   *   RemoveAddressGroupItemsRequest request =
    +   *       RemoveAddressGroupItemsRequest.newBuilder()
    +   *           .setAddressGroup(
    +   *               AddressGroupName.ofOrganizationLocationAddressGroupName(
    +   *                       "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *                   .toString())
    +   *           .addAllItems(new ArrayList())
    +   *           .setRequestId("requestId693933066")
    +   *           .build();
    +   *   OperationFuture future =
    +   *       organizationAddressGroupServiceClient
    +   *           .removeAddressGroupItemsOperationCallable()
    +   *           .futureCall(request);
    +   *   // Do something.
    +   *   AddressGroup response = future.get();
    +   * }
    +   * }
    + */ + public final OperationCallable + removeAddressGroupItemsOperationCallable() { + return stub.removeAddressGroupItemsOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes items from an address group. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    +   *     OrganizationAddressGroupServiceClient.create()) {
    +   *   RemoveAddressGroupItemsRequest request =
    +   *       RemoveAddressGroupItemsRequest.newBuilder()
    +   *           .setAddressGroup(
    +   *               AddressGroupName.ofOrganizationLocationAddressGroupName(
    +   *                       "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *                   .toString())
    +   *           .addAllItems(new ArrayList())
    +   *           .setRequestId("requestId693933066")
    +   *           .build();
    +   *   ApiFuture future =
    +   *       organizationAddressGroupServiceClient
    +   *           .removeAddressGroupItemsCallable()
    +   *           .futureCall(request);
    +   *   // Do something.
    +   *   Operation response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable + removeAddressGroupItemsCallable() { + return stub.removeAddressGroupItemsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Clones items from one address group to another. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    +   *     OrganizationAddressGroupServiceClient.create()) {
    +   *   AddressGroupName addressGroup =
    +   *       AddressGroupName.ofOrganizationLocationAddressGroupName(
    +   *           "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]");
    +   *   AddressGroupName sourceAddressGroup =
    +   *       AddressGroupName.ofOrganizationLocationAddressGroupName(
    +   *           "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]");
    +   *   AddressGroup response =
    +   *       organizationAddressGroupServiceClient
    +   *           .cloneAddressGroupItemsAsync(addressGroup, sourceAddressGroup)
    +   *           .get();
    +   * }
    +   * }
    + * + * @param addressGroup Required. A name of the AddressGroup to clone items to. Must be in the + * format `projects|organization/*/locations/{location}/addressGroups/*`. + * @param sourceAddressGroup Required. Source address group to clone items from. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture cloneAddressGroupItemsAsync( + AddressGroupName addressGroup, AddressGroupName sourceAddressGroup) { + CloneAddressGroupItemsRequest request = + CloneAddressGroupItemsRequest.newBuilder() + .setAddressGroup(addressGroup == null ? null : addressGroup.toString()) + .setSourceAddressGroup( + sourceAddressGroup == null ? null : sourceAddressGroup.toString()) + .build(); + return cloneAddressGroupItemsAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Clones items from one address group to another. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    +   *     OrganizationAddressGroupServiceClient.create()) {
    +   *   AddressGroupName addressGroup =
    +   *       AddressGroupName.ofOrganizationLocationAddressGroupName(
    +   *           "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]");
    +   *   String sourceAddressGroup =
    +   *       AddressGroupName.ofProjectLocationAddressGroupName(
    +   *               "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *           .toString();
    +   *   AddressGroup response =
    +   *       organizationAddressGroupServiceClient
    +   *           .cloneAddressGroupItemsAsync(addressGroup, sourceAddressGroup)
    +   *           .get();
    +   * }
    +   * }
    + * + * @param addressGroup Required. A name of the AddressGroup to clone items to. Must be in the + * format `projects|organization/*/locations/{location}/addressGroups/*`. + * @param sourceAddressGroup Required. Source address group to clone items from. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture cloneAddressGroupItemsAsync( + AddressGroupName addressGroup, String sourceAddressGroup) { + CloneAddressGroupItemsRequest request = + CloneAddressGroupItemsRequest.newBuilder() + .setAddressGroup(addressGroup == null ? null : addressGroup.toString()) + .setSourceAddressGroup(sourceAddressGroup) + .build(); + return cloneAddressGroupItemsAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Clones items from one address group to another. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    +   *     OrganizationAddressGroupServiceClient.create()) {
    +   *   String addressGroup =
    +   *       AddressGroupName.ofProjectLocationAddressGroupName(
    +   *               "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *           .toString();
    +   *   AddressGroupName sourceAddressGroup =
    +   *       AddressGroupName.ofOrganizationLocationAddressGroupName(
    +   *           "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]");
    +   *   AddressGroup response =
    +   *       organizationAddressGroupServiceClient
    +   *           .cloneAddressGroupItemsAsync(addressGroup, sourceAddressGroup)
    +   *           .get();
    +   * }
    +   * }
    + * + * @param addressGroup Required. A name of the AddressGroup to clone items to. Must be in the + * format `projects|organization/*/locations/{location}/addressGroups/*`. + * @param sourceAddressGroup Required. Source address group to clone items from. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture cloneAddressGroupItemsAsync( + String addressGroup, AddressGroupName sourceAddressGroup) { + CloneAddressGroupItemsRequest request = + CloneAddressGroupItemsRequest.newBuilder() + .setAddressGroup(addressGroup) + .setSourceAddressGroup( + sourceAddressGroup == null ? null : sourceAddressGroup.toString()) + .build(); + return cloneAddressGroupItemsAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Clones items from one address group to another. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    +   *     OrganizationAddressGroupServiceClient.create()) {
    +   *   String addressGroup =
    +   *       AddressGroupName.ofProjectLocationAddressGroupName(
    +   *               "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *           .toString();
    +   *   String sourceAddressGroup =
    +   *       AddressGroupName.ofProjectLocationAddressGroupName(
    +   *               "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *           .toString();
    +   *   AddressGroup response =
    +   *       organizationAddressGroupServiceClient
    +   *           .cloneAddressGroupItemsAsync(addressGroup, sourceAddressGroup)
    +   *           .get();
    +   * }
    +   * }
    + * + * @param addressGroup Required. A name of the AddressGroup to clone items to. Must be in the + * format `projects|organization/*/locations/{location}/addressGroups/*`. + * @param sourceAddressGroup Required. Source address group to clone items from. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture cloneAddressGroupItemsAsync( + String addressGroup, String sourceAddressGroup) { + CloneAddressGroupItemsRequest request = + CloneAddressGroupItemsRequest.newBuilder() + .setAddressGroup(addressGroup) + .setSourceAddressGroup(sourceAddressGroup) + .build(); + return cloneAddressGroupItemsAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Clones items from one address group to another. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    +   *     OrganizationAddressGroupServiceClient.create()) {
    +   *   CloneAddressGroupItemsRequest request =
    +   *       CloneAddressGroupItemsRequest.newBuilder()
    +   *           .setAddressGroup(
    +   *               AddressGroupName.ofOrganizationLocationAddressGroupName(
    +   *                       "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *                   .toString())
    +   *           .setSourceAddressGroup(
    +   *               AddressGroupName.ofOrganizationLocationAddressGroupName(
    +   *                       "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *                   .toString())
    +   *           .setRequestId("requestId693933066")
    +   *           .build();
    +   *   AddressGroup response =
    +   *       organizationAddressGroupServiceClient.cloneAddressGroupItemsAsync(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 cloneAddressGroupItemsAsync( + CloneAddressGroupItemsRequest request) { + return cloneAddressGroupItemsOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Clones items from one address group to another. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    +   *     OrganizationAddressGroupServiceClient.create()) {
    +   *   CloneAddressGroupItemsRequest request =
    +   *       CloneAddressGroupItemsRequest.newBuilder()
    +   *           .setAddressGroup(
    +   *               AddressGroupName.ofOrganizationLocationAddressGroupName(
    +   *                       "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *                   .toString())
    +   *           .setSourceAddressGroup(
    +   *               AddressGroupName.ofOrganizationLocationAddressGroupName(
    +   *                       "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *                   .toString())
    +   *           .setRequestId("requestId693933066")
    +   *           .build();
    +   *   OperationFuture future =
    +   *       organizationAddressGroupServiceClient
    +   *           .cloneAddressGroupItemsOperationCallable()
    +   *           .futureCall(request);
    +   *   // Do something.
    +   *   AddressGroup response = future.get();
    +   * }
    +   * }
    + */ + public final OperationCallable + cloneAddressGroupItemsOperationCallable() { + return stub.cloneAddressGroupItemsOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Clones items from one address group to another. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    +   *     OrganizationAddressGroupServiceClient.create()) {
    +   *   CloneAddressGroupItemsRequest request =
    +   *       CloneAddressGroupItemsRequest.newBuilder()
    +   *           .setAddressGroup(
    +   *               AddressGroupName.ofOrganizationLocationAddressGroupName(
    +   *                       "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *                   .toString())
    +   *           .setSourceAddressGroup(
    +   *               AddressGroupName.ofOrganizationLocationAddressGroupName(
    +   *                       "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *                   .toString())
    +   *           .setRequestId("requestId693933066")
    +   *           .build();
    +   *   ApiFuture future =
    +   *       organizationAddressGroupServiceClient
    +   *           .cloneAddressGroupItemsCallable()
    +   *           .futureCall(request);
    +   *   // Do something.
    +   *   Operation response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable + cloneAddressGroupItemsCallable() { + return stub.cloneAddressGroupItemsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an address group. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    +   *     OrganizationAddressGroupServiceClient.create()) {
    +   *   AddressGroupName name =
    +   *       AddressGroupName.ofOrganizationLocationAddressGroupName(
    +   *           "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]");
    +   *   organizationAddressGroupServiceClient.deleteAddressGroupAsync(name).get();
    +   * }
    +   * }
    + * + * @param name Required. A name of the AddressGroup to delete. Must be in the format + * `projects/*/locations/{location}/addressGroups/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteAddressGroupAsync( + AddressGroupName name) { + DeleteAddressGroupRequest request = + DeleteAddressGroupRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteAddressGroupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an address group. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    +   *     OrganizationAddressGroupServiceClient.create()) {
    +   *   String name =
    +   *       AddressGroupName.ofProjectLocationAddressGroupName(
    +   *               "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *           .toString();
    +   *   organizationAddressGroupServiceClient.deleteAddressGroupAsync(name).get();
    +   * }
    +   * }
    + * + * @param name Required. A name of the AddressGroup to delete. Must be in the format + * `projects/*/locations/{location}/addressGroups/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteAddressGroupAsync(String name) { + DeleteAddressGroupRequest request = + DeleteAddressGroupRequest.newBuilder().setName(name).build(); + return deleteAddressGroupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an address group. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    +   *     OrganizationAddressGroupServiceClient.create()) {
    +   *   DeleteAddressGroupRequest request =
    +   *       DeleteAddressGroupRequest.newBuilder()
    +   *           .setName(
    +   *               AddressGroupName.ofOrganizationLocationAddressGroupName(
    +   *                       "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *                   .toString())
    +   *           .setRequestId("requestId693933066")
    +   *           .build();
    +   *   organizationAddressGroupServiceClient.deleteAddressGroupAsync(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 deleteAddressGroupAsync( + DeleteAddressGroupRequest request) { + return deleteAddressGroupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an address group. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    +   *     OrganizationAddressGroupServiceClient.create()) {
    +   *   DeleteAddressGroupRequest request =
    +   *       DeleteAddressGroupRequest.newBuilder()
    +   *           .setName(
    +   *               AddressGroupName.ofOrganizationLocationAddressGroupName(
    +   *                       "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *                   .toString())
    +   *           .setRequestId("requestId693933066")
    +   *           .build();
    +   *   OperationFuture future =
    +   *       organizationAddressGroupServiceClient
    +   *           .deleteAddressGroupOperationCallable()
    +   *           .futureCall(request);
    +   *   // Do something.
    +   *   future.get();
    +   * }
    +   * }
    + */ + public final OperationCallable + deleteAddressGroupOperationCallable() { + return stub.deleteAddressGroupOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an address group. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    +   *     OrganizationAddressGroupServiceClient.create()) {
    +   *   DeleteAddressGroupRequest request =
    +   *       DeleteAddressGroupRequest.newBuilder()
    +   *           .setName(
    +   *               AddressGroupName.ofOrganizationLocationAddressGroupName(
    +   *                       "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *                   .toString())
    +   *           .setRequestId("requestId693933066")
    +   *           .build();
    +   *   ApiFuture future =
    +   *       organizationAddressGroupServiceClient.deleteAddressGroupCallable().futureCall(request);
    +   *   // Do something.
    +   *   future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable deleteAddressGroupCallable() { + return stub.deleteAddressGroupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists references of an address group. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    +   *     OrganizationAddressGroupServiceClient.create()) {
    +   *   AddressGroupName addressGroup =
    +   *       AddressGroupName.ofOrganizationLocationAddressGroupName(
    +   *           "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]");
    +   *   for (ListAddressGroupReferencesResponse.AddressGroupReference element :
    +   *       organizationAddressGroupServiceClient
    +   *           .listAddressGroupReferences(addressGroup)
    +   *           .iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + * + * @param addressGroup Required. A name of the AddressGroup to clone items to. Must be in the + * format `projects|organization/*/locations/{location}/addressGroups/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAddressGroupReferencesPagedResponse listAddressGroupReferences( + AddressGroupName addressGroup) { + ListAddressGroupReferencesRequest request = + ListAddressGroupReferencesRequest.newBuilder() + .setAddressGroup(addressGroup == null ? null : addressGroup.toString()) + .build(); + return listAddressGroupReferences(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists references of an address group. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    +   *     OrganizationAddressGroupServiceClient.create()) {
    +   *   String addressGroup =
    +   *       AddressGroupName.ofProjectLocationAddressGroupName(
    +   *               "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *           .toString();
    +   *   for (ListAddressGroupReferencesResponse.AddressGroupReference element :
    +   *       organizationAddressGroupServiceClient
    +   *           .listAddressGroupReferences(addressGroup)
    +   *           .iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + * + * @param addressGroup Required. A name of the AddressGroup to clone items to. Must be in the + * format `projects|organization/*/locations/{location}/addressGroups/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAddressGroupReferencesPagedResponse listAddressGroupReferences( + String addressGroup) { + ListAddressGroupReferencesRequest request = + ListAddressGroupReferencesRequest.newBuilder().setAddressGroup(addressGroup).build(); + return listAddressGroupReferences(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists references of an address group. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    +   *     OrganizationAddressGroupServiceClient.create()) {
    +   *   ListAddressGroupReferencesRequest request =
    +   *       ListAddressGroupReferencesRequest.newBuilder()
    +   *           .setAddressGroup(
    +   *               AddressGroupName.ofOrganizationLocationAddressGroupName(
    +   *                       "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *                   .toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   for (ListAddressGroupReferencesResponse.AddressGroupReference element :
    +   *       organizationAddressGroupServiceClient.listAddressGroupReferences(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 ListAddressGroupReferencesPagedResponse listAddressGroupReferences( + ListAddressGroupReferencesRequest request) { + return listAddressGroupReferencesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists references of an address group. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    +   *     OrganizationAddressGroupServiceClient.create()) {
    +   *   ListAddressGroupReferencesRequest request =
    +   *       ListAddressGroupReferencesRequest.newBuilder()
    +   *           .setAddressGroup(
    +   *               AddressGroupName.ofOrganizationLocationAddressGroupName(
    +   *                       "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *                   .toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   ApiFuture future =
    +   *       organizationAddressGroupServiceClient
    +   *           .listAddressGroupReferencesPagedCallable()
    +   *           .futureCall(request);
    +   *   // Do something.
    +   *   for (ListAddressGroupReferencesResponse.AddressGroupReference element :
    +   *       future.get().iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + */ + public final UnaryCallable< + ListAddressGroupReferencesRequest, ListAddressGroupReferencesPagedResponse> + listAddressGroupReferencesPagedCallable() { + return stub.listAddressGroupReferencesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists references of an address group. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    +   *     OrganizationAddressGroupServiceClient.create()) {
    +   *   ListAddressGroupReferencesRequest request =
    +   *       ListAddressGroupReferencesRequest.newBuilder()
    +   *           .setAddressGroup(
    +   *               AddressGroupName.ofOrganizationLocationAddressGroupName(
    +   *                       "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *                   .toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   while (true) {
    +   *     ListAddressGroupReferencesResponse response =
    +   *         organizationAddressGroupServiceClient
    +   *             .listAddressGroupReferencesCallable()
    +   *             .call(request);
    +   *     for (ListAddressGroupReferencesResponse.AddressGroupReference element :
    +   *         response.getAddressGroupReferencesList()) {
    +   *       // doThingsWith(element);
    +   *     }
    +   *     String nextPageToken = response.getNextPageToken();
    +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
    +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
    +   *     } else {
    +   *       break;
    +   *     }
    +   *   }
    +   * }
    +   * }
    + */ + public final UnaryCallable + listAddressGroupReferencesCallable() { + return stub.listAddressGroupReferencesCallable(); + } + + // 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 (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    +   *     OrganizationAddressGroupServiceClient.create()) {
    +   *   ListLocationsRequest request =
    +   *       ListLocationsRequest.newBuilder()
    +   *           .setName("name3373707")
    +   *           .setFilter("filter-1274492040")
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   for (Location element :
    +   *       organizationAddressGroupServiceClient.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 (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    +   *     OrganizationAddressGroupServiceClient.create()) {
    +   *   ListLocationsRequest request =
    +   *       ListLocationsRequest.newBuilder()
    +   *           .setName("name3373707")
    +   *           .setFilter("filter-1274492040")
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   ApiFuture future =
    +   *       organizationAddressGroupServiceClient.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 (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    +   *     OrganizationAddressGroupServiceClient.create()) {
    +   *   ListLocationsRequest request =
    +   *       ListLocationsRequest.newBuilder()
    +   *           .setName("name3373707")
    +   *           .setFilter("filter-1274492040")
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   while (true) {
    +   *     ListLocationsResponse response =
    +   *         organizationAddressGroupServiceClient.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 (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    +   *     OrganizationAddressGroupServiceClient.create()) {
    +   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
    +   *   Location response = organizationAddressGroupServiceClient.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 (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    +   *     OrganizationAddressGroupServiceClient.create()) {
    +   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
    +   *   ApiFuture future =
    +   *       organizationAddressGroupServiceClient.getLocationCallable().futureCall(request);
    +   *   // Do something.
    +   *   Location response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

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

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    +   *     OrganizationAddressGroupServiceClient.create()) {
    +   *   SetIamPolicyRequest request =
    +   *       SetIamPolicyRequest.newBuilder()
    +   *           .setResource(
    +   *               AddressGroupName.ofProjectLocationAddressGroupName(
    +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *                   .toString())
    +   *           .setPolicy(Policy.newBuilder().build())
    +   *           .setUpdateMask(FieldMask.newBuilder().build())
    +   *           .build();
    +   *   Policy response = organizationAddressGroupServiceClient.setIamPolicy(request);
    +   * }
    +   * }
    + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

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

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    +   *     OrganizationAddressGroupServiceClient.create()) {
    +   *   SetIamPolicyRequest request =
    +   *       SetIamPolicyRequest.newBuilder()
    +   *           .setResource(
    +   *               AddressGroupName.ofProjectLocationAddressGroupName(
    +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *                   .toString())
    +   *           .setPolicy(Policy.newBuilder().build())
    +   *           .setUpdateMask(FieldMask.newBuilder().build())
    +   *           .build();
    +   *   ApiFuture future =
    +   *       organizationAddressGroupServiceClient.setIamPolicyCallable().futureCall(request);
    +   *   // Do something.
    +   *   Policy response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    +   *     OrganizationAddressGroupServiceClient.create()) {
    +   *   GetIamPolicyRequest request =
    +   *       GetIamPolicyRequest.newBuilder()
    +   *           .setResource(
    +   *               AddressGroupName.ofProjectLocationAddressGroupName(
    +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *                   .toString())
    +   *           .setOptions(GetPolicyOptions.newBuilder().build())
    +   *           .build();
    +   *   Policy response = organizationAddressGroupServiceClient.getIamPolicy(request);
    +   * }
    +   * }
    + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    +   *     OrganizationAddressGroupServiceClient.create()) {
    +   *   GetIamPolicyRequest request =
    +   *       GetIamPolicyRequest.newBuilder()
    +   *           .setResource(
    +   *               AddressGroupName.ofProjectLocationAddressGroupName(
    +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *                   .toString())
    +   *           .setOptions(GetPolicyOptions.newBuilder().build())
    +   *           .build();
    +   *   ApiFuture future =
    +   *       organizationAddressGroupServiceClient.getIamPolicyCallable().futureCall(request);
    +   *   // Do something.
    +   *   Policy response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

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

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    +   *     OrganizationAddressGroupServiceClient.create()) {
    +   *   TestIamPermissionsRequest request =
    +   *       TestIamPermissionsRequest.newBuilder()
    +   *           .setResource(
    +   *               AddressGroupName.ofProjectLocationAddressGroupName(
    +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *                   .toString())
    +   *           .addAllPermissions(new ArrayList())
    +   *           .build();
    +   *   TestIamPermissionsResponse response =
    +   *       organizationAddressGroupServiceClient.testIamPermissions(request);
    +   * }
    +   * }
    + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

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

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    +   *     OrganizationAddressGroupServiceClient.create()) {
    +   *   TestIamPermissionsRequest request =
    +   *       TestIamPermissionsRequest.newBuilder()
    +   *           .setResource(
    +   *               AddressGroupName.ofProjectLocationAddressGroupName(
    +   *                       "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]")
    +   *                   .toString())
    +   *           .addAllPermissions(new ArrayList())
    +   *           .build();
    +   *   ApiFuture future =
    +   *       organizationAddressGroupServiceClient.testIamPermissionsCallable().futureCall(request);
    +   *   // Do something.
    +   *   TestIamPermissionsResponse response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListAddressGroupsPagedResponse + extends AbstractPagedListResponse< + ListAddressGroupsRequest, + ListAddressGroupsResponse, + AddressGroup, + ListAddressGroupsPage, + ListAddressGroupsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListAddressGroupsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListAddressGroupsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListAddressGroupsPagedResponse(ListAddressGroupsPage page) { + super(page, ListAddressGroupsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListAddressGroupsPage + extends AbstractPage< + ListAddressGroupsRequest, + ListAddressGroupsResponse, + AddressGroup, + ListAddressGroupsPage> { + + private ListAddressGroupsPage( + PageContext context, + ListAddressGroupsResponse response) { + super(context, response); + } + + private static ListAddressGroupsPage createEmptyPage() { + return new ListAddressGroupsPage(null, null); + } + + @Override + protected ListAddressGroupsPage createPage( + PageContext context, + ListAddressGroupsResponse response) { + return new ListAddressGroupsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListAddressGroupsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListAddressGroupsRequest, + ListAddressGroupsResponse, + AddressGroup, + ListAddressGroupsPage, + ListAddressGroupsFixedSizeCollection> { + + private ListAddressGroupsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListAddressGroupsFixedSizeCollection createEmptyCollection() { + return new ListAddressGroupsFixedSizeCollection(null, 0); + } + + @Override + protected ListAddressGroupsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListAddressGroupsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListAddressGroupReferencesPagedResponse + extends AbstractPagedListResponse< + ListAddressGroupReferencesRequest, + ListAddressGroupReferencesResponse, + ListAddressGroupReferencesResponse.AddressGroupReference, + ListAddressGroupReferencesPage, + ListAddressGroupReferencesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListAddressGroupReferencesRequest, + ListAddressGroupReferencesResponse, + ListAddressGroupReferencesResponse.AddressGroupReference> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListAddressGroupReferencesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListAddressGroupReferencesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListAddressGroupReferencesPagedResponse(ListAddressGroupReferencesPage page) { + super(page, ListAddressGroupReferencesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListAddressGroupReferencesPage + extends AbstractPage< + ListAddressGroupReferencesRequest, + ListAddressGroupReferencesResponse, + ListAddressGroupReferencesResponse.AddressGroupReference, + ListAddressGroupReferencesPage> { + + private ListAddressGroupReferencesPage( + PageContext< + ListAddressGroupReferencesRequest, + ListAddressGroupReferencesResponse, + ListAddressGroupReferencesResponse.AddressGroupReference> + context, + ListAddressGroupReferencesResponse response) { + super(context, response); + } + + private static ListAddressGroupReferencesPage createEmptyPage() { + return new ListAddressGroupReferencesPage(null, null); + } + + @Override + protected ListAddressGroupReferencesPage createPage( + PageContext< + ListAddressGroupReferencesRequest, + ListAddressGroupReferencesResponse, + ListAddressGroupReferencesResponse.AddressGroupReference> + context, + ListAddressGroupReferencesResponse response) { + return new ListAddressGroupReferencesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListAddressGroupReferencesRequest, + ListAddressGroupReferencesResponse, + ListAddressGroupReferencesResponse.AddressGroupReference> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListAddressGroupReferencesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListAddressGroupReferencesRequest, + ListAddressGroupReferencesResponse, + ListAddressGroupReferencesResponse.AddressGroupReference, + ListAddressGroupReferencesPage, + ListAddressGroupReferencesFixedSizeCollection> { + + private ListAddressGroupReferencesFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListAddressGroupReferencesFixedSizeCollection createEmptyCollection() { + return new ListAddressGroupReferencesFixedSizeCollection(null, 0); + } + + @Override + protected ListAddressGroupReferencesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListAddressGroupReferencesFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/OrganizationAddressGroupServiceSettings.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/OrganizationAddressGroupServiceSettings.java new file mode 100644 index 000000000000..468303dfe17a --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/OrganizationAddressGroupServiceSettings.java @@ -0,0 +1,492 @@ +/* + * 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.networksecurity.v1; + +import static com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient.ListAddressGroupReferencesPagedResponse; +import static com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient.ListAddressGroupsPagedResponse; +import static com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient.ListLocationsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.stub.OrganizationAddressGroupServiceStubSettings; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link OrganizationAddressGroupServiceClient}. + * + *

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

      + *
    • The default service address (networksecurity.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 getAddressGroup: + * + *

    {@code
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    + * OrganizationAddressGroupServiceSettings.Builder organizationAddressGroupServiceSettingsBuilder =
    + *     OrganizationAddressGroupServiceSettings.newBuilder();
    + * organizationAddressGroupServiceSettingsBuilder
    + *     .getAddressGroupSettings()
    + *     .setRetrySettings(
    + *         organizationAddressGroupServiceSettingsBuilder
    + *             .getAddressGroupSettings()
    + *             .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());
    + * OrganizationAddressGroupServiceSettings organizationAddressGroupServiceSettings =
    + *     organizationAddressGroupServiceSettingsBuilder.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 createAddressGroup: + * + *

    {@code
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    + * OrganizationAddressGroupServiceSettings.Builder organizationAddressGroupServiceSettingsBuilder =
    + *     OrganizationAddressGroupServiceSettings.newBuilder();
    + * TimedRetryAlgorithm timedRetryAlgorithm =
    + *     OperationalTimedPollAlgorithm.create(
    + *         RetrySettings.newBuilder()
    + *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
    + *             .setRetryDelayMultiplier(1.5)
    + *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
    + *             .setTotalTimeoutDuration(Duration.ofHours(24))
    + *             .build());
    + * organizationAddressGroupServiceSettingsBuilder
    + *     .createClusterOperationSettings()
    + *     .setPollingAlgorithm(timedRetryAlgorithm)
    + *     .build();
    + * }
    + */ +@Generated("by gapic-generator-java") +public class OrganizationAddressGroupServiceSettings + extends ClientSettings { + + /** Returns the object with the settings used for calls to listAddressGroups. */ + public PagedCallSettings< + ListAddressGroupsRequest, ListAddressGroupsResponse, ListAddressGroupsPagedResponse> + listAddressGroupsSettings() { + return ((OrganizationAddressGroupServiceStubSettings) getStubSettings()) + .listAddressGroupsSettings(); + } + + /** Returns the object with the settings used for calls to getAddressGroup. */ + public UnaryCallSettings getAddressGroupSettings() { + return ((OrganizationAddressGroupServiceStubSettings) getStubSettings()) + .getAddressGroupSettings(); + } + + /** Returns the object with the settings used for calls to createAddressGroup. */ + public UnaryCallSettings createAddressGroupSettings() { + return ((OrganizationAddressGroupServiceStubSettings) getStubSettings()) + .createAddressGroupSettings(); + } + + /** Returns the object with the settings used for calls to createAddressGroup. */ + public OperationCallSettings + createAddressGroupOperationSettings() { + return ((OrganizationAddressGroupServiceStubSettings) getStubSettings()) + .createAddressGroupOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateAddressGroup. */ + public UnaryCallSettings updateAddressGroupSettings() { + return ((OrganizationAddressGroupServiceStubSettings) getStubSettings()) + .updateAddressGroupSettings(); + } + + /** Returns the object with the settings used for calls to updateAddressGroup. */ + public OperationCallSettings + updateAddressGroupOperationSettings() { + return ((OrganizationAddressGroupServiceStubSettings) getStubSettings()) + .updateAddressGroupOperationSettings(); + } + + /** Returns the object with the settings used for calls to addAddressGroupItems. */ + public UnaryCallSettings addAddressGroupItemsSettings() { + return ((OrganizationAddressGroupServiceStubSettings) getStubSettings()) + .addAddressGroupItemsSettings(); + } + + /** Returns the object with the settings used for calls to addAddressGroupItems. */ + public OperationCallSettings + addAddressGroupItemsOperationSettings() { + return ((OrganizationAddressGroupServiceStubSettings) getStubSettings()) + .addAddressGroupItemsOperationSettings(); + } + + /** Returns the object with the settings used for calls to removeAddressGroupItems. */ + public UnaryCallSettings + removeAddressGroupItemsSettings() { + return ((OrganizationAddressGroupServiceStubSettings) getStubSettings()) + .removeAddressGroupItemsSettings(); + } + + /** Returns the object with the settings used for calls to removeAddressGroupItems. */ + public OperationCallSettings + removeAddressGroupItemsOperationSettings() { + return ((OrganizationAddressGroupServiceStubSettings) getStubSettings()) + .removeAddressGroupItemsOperationSettings(); + } + + /** Returns the object with the settings used for calls to cloneAddressGroupItems. */ + public UnaryCallSettings + cloneAddressGroupItemsSettings() { + return ((OrganizationAddressGroupServiceStubSettings) getStubSettings()) + .cloneAddressGroupItemsSettings(); + } + + /** Returns the object with the settings used for calls to cloneAddressGroupItems. */ + public OperationCallSettings + cloneAddressGroupItemsOperationSettings() { + return ((OrganizationAddressGroupServiceStubSettings) getStubSettings()) + .cloneAddressGroupItemsOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteAddressGroup. */ + public UnaryCallSettings deleteAddressGroupSettings() { + return ((OrganizationAddressGroupServiceStubSettings) getStubSettings()) + .deleteAddressGroupSettings(); + } + + /** Returns the object with the settings used for calls to deleteAddressGroup. */ + public OperationCallSettings + deleteAddressGroupOperationSettings() { + return ((OrganizationAddressGroupServiceStubSettings) getStubSettings()) + .deleteAddressGroupOperationSettings(); + } + + /** Returns the object with the settings used for calls to listAddressGroupReferences. */ + public PagedCallSettings< + ListAddressGroupReferencesRequest, + ListAddressGroupReferencesResponse, + ListAddressGroupReferencesPagedResponse> + listAddressGroupReferencesSettings() { + return ((OrganizationAddressGroupServiceStubSettings) getStubSettings()) + .listAddressGroupReferencesSettings(); + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return ((OrganizationAddressGroupServiceStubSettings) getStubSettings()) + .listLocationsSettings(); + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return ((OrganizationAddressGroupServiceStubSettings) getStubSettings()).getLocationSettings(); + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return ((OrganizationAddressGroupServiceStubSettings) getStubSettings()).setIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return ((OrganizationAddressGroupServiceStubSettings) getStubSettings()).getIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return ((OrganizationAddressGroupServiceStubSettings) getStubSettings()) + .testIamPermissionsSettings(); + } + + public static final OrganizationAddressGroupServiceSettings create( + OrganizationAddressGroupServiceStubSettings stub) throws IOException { + return new OrganizationAddressGroupServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return OrganizationAddressGroupServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return OrganizationAddressGroupServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return OrganizationAddressGroupServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return OrganizationAddressGroupServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return OrganizationAddressGroupServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return OrganizationAddressGroupServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return OrganizationAddressGroupServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected OrganizationAddressGroupServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for OrganizationAddressGroupServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(OrganizationAddressGroupServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(OrganizationAddressGroupServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(OrganizationAddressGroupServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(OrganizationAddressGroupServiceStubSettings.newBuilder()); + } + + public OrganizationAddressGroupServiceStubSettings.Builder getStubSettingsBuilder() { + return ((OrganizationAddressGroupServiceStubSettings.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 listAddressGroups. */ + public PagedCallSettings.Builder< + ListAddressGroupsRequest, ListAddressGroupsResponse, ListAddressGroupsPagedResponse> + listAddressGroupsSettings() { + return getStubSettingsBuilder().listAddressGroupsSettings(); + } + + /** Returns the builder for the settings used for calls to getAddressGroup. */ + public UnaryCallSettings.Builder + getAddressGroupSettings() { + return getStubSettingsBuilder().getAddressGroupSettings(); + } + + /** Returns the builder for the settings used for calls to createAddressGroup. */ + public UnaryCallSettings.Builder + createAddressGroupSettings() { + return getStubSettingsBuilder().createAddressGroupSettings(); + } + + /** Returns the builder for the settings used for calls to createAddressGroup. */ + public OperationCallSettings.Builder + createAddressGroupOperationSettings() { + return getStubSettingsBuilder().createAddressGroupOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateAddressGroup. */ + public UnaryCallSettings.Builder + updateAddressGroupSettings() { + return getStubSettingsBuilder().updateAddressGroupSettings(); + } + + /** Returns the builder for the settings used for calls to updateAddressGroup. */ + public OperationCallSettings.Builder + updateAddressGroupOperationSettings() { + return getStubSettingsBuilder().updateAddressGroupOperationSettings(); + } + + /** Returns the builder for the settings used for calls to addAddressGroupItems. */ + public UnaryCallSettings.Builder + addAddressGroupItemsSettings() { + return getStubSettingsBuilder().addAddressGroupItemsSettings(); + } + + /** Returns the builder for the settings used for calls to addAddressGroupItems. */ + public OperationCallSettings.Builder< + AddAddressGroupItemsRequest, AddressGroup, OperationMetadata> + addAddressGroupItemsOperationSettings() { + return getStubSettingsBuilder().addAddressGroupItemsOperationSettings(); + } + + /** Returns the builder for the settings used for calls to removeAddressGroupItems. */ + public UnaryCallSettings.Builder + removeAddressGroupItemsSettings() { + return getStubSettingsBuilder().removeAddressGroupItemsSettings(); + } + + /** Returns the builder for the settings used for calls to removeAddressGroupItems. */ + public OperationCallSettings.Builder< + RemoveAddressGroupItemsRequest, AddressGroup, OperationMetadata> + removeAddressGroupItemsOperationSettings() { + return getStubSettingsBuilder().removeAddressGroupItemsOperationSettings(); + } + + /** Returns the builder for the settings used for calls to cloneAddressGroupItems. */ + public UnaryCallSettings.Builder + cloneAddressGroupItemsSettings() { + return getStubSettingsBuilder().cloneAddressGroupItemsSettings(); + } + + /** Returns the builder for the settings used for calls to cloneAddressGroupItems. */ + public OperationCallSettings.Builder< + CloneAddressGroupItemsRequest, AddressGroup, OperationMetadata> + cloneAddressGroupItemsOperationSettings() { + return getStubSettingsBuilder().cloneAddressGroupItemsOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteAddressGroup. */ + public UnaryCallSettings.Builder + deleteAddressGroupSettings() { + return getStubSettingsBuilder().deleteAddressGroupSettings(); + } + + /** Returns the builder for the settings used for calls to deleteAddressGroup. */ + public OperationCallSettings.Builder + deleteAddressGroupOperationSettings() { + return getStubSettingsBuilder().deleteAddressGroupOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listAddressGroupReferences. */ + public PagedCallSettings.Builder< + ListAddressGroupReferencesRequest, + ListAddressGroupReferencesResponse, + ListAddressGroupReferencesPagedResponse> + listAddressGroupReferencesSettings() { + return getStubSettingsBuilder().listAddressGroupReferencesSettings(); + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return getStubSettingsBuilder().listLocationsSettings(); + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getStubSettingsBuilder().getLocationSettings(); + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return getStubSettingsBuilder().setIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getStubSettingsBuilder().getIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return getStubSettingsBuilder().testIamPermissionsSettings(); + } + + @Override + public OrganizationAddressGroupServiceSettings build() throws IOException { + return new OrganizationAddressGroupServiceSettings(this); + } + } +} diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/gapic_metadata.json b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/gapic_metadata.json index 54920483ad18..6ac9c7d5f81a 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/gapic_metadata.json +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/gapic_metadata.json @@ -5,6 +5,108 @@ "protoPackage": "google.cloud.networksecurity.v1", "libraryPackage": "com.google.cloud.networksecurity.v1", "services": { + "AddressGroupService": { + "clients": { + "grpc": { + "libraryClient": "AddressGroupServiceClient", + "rpcs": { + "AddAddressGroupItems": { + "methods": ["addAddressGroupItemsAsync", "addAddressGroupItemsAsync", "addAddressGroupItemsAsync", "addAddressGroupItemsOperationCallable", "addAddressGroupItemsCallable"] + }, + "CloneAddressGroupItems": { + "methods": ["cloneAddressGroupItemsAsync", "cloneAddressGroupItemsAsync", "cloneAddressGroupItemsAsync", "cloneAddressGroupItemsAsync", "cloneAddressGroupItemsAsync", "cloneAddressGroupItemsOperationCallable", "cloneAddressGroupItemsCallable"] + }, + "CreateAddressGroup": { + "methods": ["createAddressGroupAsync", "createAddressGroupAsync", "createAddressGroupAsync", "createAddressGroupAsync", "createAddressGroupOperationCallable", "createAddressGroupCallable"] + }, + "DeleteAddressGroup": { + "methods": ["deleteAddressGroupAsync", "deleteAddressGroupAsync", "deleteAddressGroupAsync", "deleteAddressGroupOperationCallable", "deleteAddressGroupCallable"] + }, + "GetAddressGroup": { + "methods": ["getAddressGroup", "getAddressGroup", "getAddressGroup", "getAddressGroupCallable"] + }, + "GetIamPolicy": { + "methods": ["getIamPolicy", "getIamPolicyCallable"] + }, + "GetLocation": { + "methods": ["getLocation", "getLocationCallable"] + }, + "ListAddressGroupReferences": { + "methods": ["listAddressGroupReferences", "listAddressGroupReferences", "listAddressGroupReferences", "listAddressGroupReferencesPagedCallable", "listAddressGroupReferencesCallable"] + }, + "ListAddressGroups": { + "methods": ["listAddressGroups", "listAddressGroups", "listAddressGroups", "listAddressGroupsPagedCallable", "listAddressGroupsCallable"] + }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] + }, + "RemoveAddressGroupItems": { + "methods": ["removeAddressGroupItemsAsync", "removeAddressGroupItemsAsync", "removeAddressGroupItemsAsync", "removeAddressGroupItemsOperationCallable", "removeAddressGroupItemsCallable"] + }, + "SetIamPolicy": { + "methods": ["setIamPolicy", "setIamPolicyCallable"] + }, + "TestIamPermissions": { + "methods": ["testIamPermissions", "testIamPermissionsCallable"] + }, + "UpdateAddressGroup": { + "methods": ["updateAddressGroupAsync", "updateAddressGroupAsync", "updateAddressGroupOperationCallable", "updateAddressGroupCallable"] + } + } + } + } + }, + "OrganizationAddressGroupService": { + "clients": { + "grpc": { + "libraryClient": "OrganizationAddressGroupServiceClient", + "rpcs": { + "AddAddressGroupItems": { + "methods": ["addAddressGroupItemsAsync", "addAddressGroupItemsAsync", "addAddressGroupItemsAsync", "addAddressGroupItemsOperationCallable", "addAddressGroupItemsCallable"] + }, + "CloneAddressGroupItems": { + "methods": ["cloneAddressGroupItemsAsync", "cloneAddressGroupItemsAsync", "cloneAddressGroupItemsAsync", "cloneAddressGroupItemsAsync", "cloneAddressGroupItemsAsync", "cloneAddressGroupItemsOperationCallable", "cloneAddressGroupItemsCallable"] + }, + "CreateAddressGroup": { + "methods": ["createAddressGroupAsync", "createAddressGroupAsync", "createAddressGroupAsync", "createAddressGroupAsync", "createAddressGroupOperationCallable", "createAddressGroupCallable"] + }, + "DeleteAddressGroup": { + "methods": ["deleteAddressGroupAsync", "deleteAddressGroupAsync", "deleteAddressGroupAsync", "deleteAddressGroupOperationCallable", "deleteAddressGroupCallable"] + }, + "GetAddressGroup": { + "methods": ["getAddressGroup", "getAddressGroup", "getAddressGroup", "getAddressGroupCallable"] + }, + "GetIamPolicy": { + "methods": ["getIamPolicy", "getIamPolicyCallable"] + }, + "GetLocation": { + "methods": ["getLocation", "getLocationCallable"] + }, + "ListAddressGroupReferences": { + "methods": ["listAddressGroupReferences", "listAddressGroupReferences", "listAddressGroupReferences", "listAddressGroupReferencesPagedCallable", "listAddressGroupReferencesCallable"] + }, + "ListAddressGroups": { + "methods": ["listAddressGroups", "listAddressGroups", "listAddressGroups", "listAddressGroupsPagedCallable", "listAddressGroupsCallable"] + }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] + }, + "RemoveAddressGroupItems": { + "methods": ["removeAddressGroupItemsAsync", "removeAddressGroupItemsAsync", "removeAddressGroupItemsAsync", "removeAddressGroupItemsOperationCallable", "removeAddressGroupItemsCallable"] + }, + "SetIamPolicy": { + "methods": ["setIamPolicy", "setIamPolicyCallable"] + }, + "TestIamPermissions": { + "methods": ["testIamPermissions", "testIamPermissionsCallable"] + }, + "UpdateAddressGroup": { + "methods": ["updateAddressGroupAsync", "updateAddressGroupAsync", "updateAddressGroupOperationCallable", "updateAddressGroupCallable"] + } + } + } + } + }, "NetworkSecurity": { "clients": { "grpc": { diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/package-info.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/package-info.java index aea8be5b20d4..c95e71d6a3ed 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/package-info.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/package-info.java @@ -19,6 +19,51 @@ * *

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

    ======================= AddressGroupServiceClient ======================= + * + *

    Service Description: AddressGroup is a resource that manages a collection of IP or Domain + * Names, it can be used in Firewall Policy to represent allow or deny traffic from all the IP or + * Domain Names from the Address Group. + * + *

    Sample for AddressGroupServiceClient: + * + *

    {@code
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    + * try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) {
    + *   AddressGroupName name =
    + *       AddressGroupName.ofProjectLocationAddressGroupName(
    + *           "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]");
    + *   AddressGroup response = addressGroupServiceClient.getAddressGroup(name);
    + * }
    + * }
    + * + *

    ======================= OrganizationAddressGroupServiceClient ======================= + * + *

    Service Description: Organization AddressGroup is created under organization. Requests against + * Organization AddressGroup will use project from request credential for + * activation/quota/visibility check. + * + *

    Sample for OrganizationAddressGroupServiceClient: + * + *

    {@code
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    + * try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient =
    + *     OrganizationAddressGroupServiceClient.create()) {
    + *   AddressGroupName name =
    + *       AddressGroupName.ofOrganizationLocationAddressGroupName(
    + *           "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]");
    + *   AddressGroup response = organizationAddressGroupServiceClient.getAddressGroup(name);
    + * }
    + * }
    + * *

    ======================= NetworkSecurityClient ======================= * *

    Service Description: Network Security API provides resources to configure authentication and diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/AddressGroupServiceStub.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/AddressGroupServiceStub.java new file mode 100644 index 000000000000..5e5c90380b3f --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/AddressGroupServiceStub.java @@ -0,0 +1,181 @@ +/* + * 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.networksecurity.v1.stub; + +import static com.google.cloud.networksecurity.v1.AddressGroupServiceClient.ListAddressGroupReferencesPagedResponse; +import static com.google.cloud.networksecurity.v1.AddressGroupServiceClient.ListAddressGroupsPagedResponse; +import static com.google.cloud.networksecurity.v1.AddressGroupServiceClient.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.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest; +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest; +import com.google.cloud.networksecurity.v1.CreateAddressGroupRequest; +import com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest; +import com.google.cloud.networksecurity.v1.GetAddressGroupRequest; +import com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest; +import com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse; +import com.google.cloud.networksecurity.v1.ListAddressGroupsRequest; +import com.google.cloud.networksecurity.v1.ListAddressGroupsResponse; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest; +import com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the AddressGroupService service API. + * + *

    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class AddressGroupServiceStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); + } + + public UnaryCallable + listAddressGroupsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listAddressGroupsPagedCallable()"); + } + + public UnaryCallable + listAddressGroupsCallable() { + throw new UnsupportedOperationException("Not implemented: listAddressGroupsCallable()"); + } + + public UnaryCallable getAddressGroupCallable() { + throw new UnsupportedOperationException("Not implemented: getAddressGroupCallable()"); + } + + public OperationCallable + createAddressGroupOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createAddressGroupOperationCallable()"); + } + + public UnaryCallable createAddressGroupCallable() { + throw new UnsupportedOperationException("Not implemented: createAddressGroupCallable()"); + } + + public OperationCallable + updateAddressGroupOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateAddressGroupOperationCallable()"); + } + + public UnaryCallable updateAddressGroupCallable() { + throw new UnsupportedOperationException("Not implemented: updateAddressGroupCallable()"); + } + + public OperationCallable + addAddressGroupItemsOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: addAddressGroupItemsOperationCallable()"); + } + + public UnaryCallable addAddressGroupItemsCallable() { + throw new UnsupportedOperationException("Not implemented: addAddressGroupItemsCallable()"); + } + + public OperationCallable + removeAddressGroupItemsOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: removeAddressGroupItemsOperationCallable()"); + } + + public UnaryCallable + removeAddressGroupItemsCallable() { + throw new UnsupportedOperationException("Not implemented: removeAddressGroupItemsCallable()"); + } + + public OperationCallable + cloneAddressGroupItemsOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: cloneAddressGroupItemsOperationCallable()"); + } + + public UnaryCallable cloneAddressGroupItemsCallable() { + throw new UnsupportedOperationException("Not implemented: cloneAddressGroupItemsCallable()"); + } + + public OperationCallable + deleteAddressGroupOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteAddressGroupOperationCallable()"); + } + + public UnaryCallable deleteAddressGroupCallable() { + throw new UnsupportedOperationException("Not implemented: deleteAddressGroupCallable()"); + } + + public UnaryCallable + listAddressGroupReferencesPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listAddressGroupReferencesPagedCallable()"); + } + + public UnaryCallable + listAddressGroupReferencesCallable() { + throw new UnsupportedOperationException( + "Not implemented: listAddressGroupReferencesCallable()"); + } + + public UnaryCallable + listLocationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); + } + + public UnaryCallable listLocationsCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsCallable()"); + } + + public UnaryCallable getLocationCallable() { + throw new UnsupportedOperationException("Not implemented: getLocationCallable()"); + } + + public UnaryCallable setIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()"); + } + + public UnaryCallable getIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()"); + } + + public UnaryCallable + testIamPermissionsCallable() { + throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/AddressGroupServiceStubSettings.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/AddressGroupServiceStubSettings.java new file mode 100644 index 000000000000..142c63f1de0e --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/AddressGroupServiceStubSettings.java @@ -0,0 +1,1160 @@ +/* + * 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.networksecurity.v1.stub; + +import static com.google.cloud.networksecurity.v1.AddressGroupServiceClient.ListAddressGroupReferencesPagedResponse; +import static com.google.cloud.networksecurity.v1.AddressGroupServiceClient.ListAddressGroupsPagedResponse; +import static com.google.cloud.networksecurity.v1.AddressGroupServiceClient.ListLocationsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.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.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest; +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest; +import com.google.cloud.networksecurity.v1.CreateAddressGroupRequest; +import com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest; +import com.google.cloud.networksecurity.v1.GetAddressGroupRequest; +import com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest; +import com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse; +import com.google.cloud.networksecurity.v1.ListAddressGroupsRequest; +import com.google.cloud.networksecurity.v1.ListAddressGroupsResponse; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest; +import com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.time.Duration; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link AddressGroupServiceStub}. + * + *

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

      + *
    • The default service address (networksecurity.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 getAddressGroup: + * + *

    {@code
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    + * AddressGroupServiceStubSettings.Builder addressGroupServiceSettingsBuilder =
    + *     AddressGroupServiceStubSettings.newBuilder();
    + * addressGroupServiceSettingsBuilder
    + *     .getAddressGroupSettings()
    + *     .setRetrySettings(
    + *         addressGroupServiceSettingsBuilder
    + *             .getAddressGroupSettings()
    + *             .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());
    + * AddressGroupServiceStubSettings addressGroupServiceSettings =
    + *     addressGroupServiceSettingsBuilder.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 createAddressGroup: + * + *

    {@code
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    + * AddressGroupServiceStubSettings.Builder addressGroupServiceSettingsBuilder =
    + *     AddressGroupServiceStubSettings.newBuilder();
    + * TimedRetryAlgorithm timedRetryAlgorithm =
    + *     OperationalTimedPollAlgorithm.create(
    + *         RetrySettings.newBuilder()
    + *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
    + *             .setRetryDelayMultiplier(1.5)
    + *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
    + *             .setTotalTimeoutDuration(Duration.ofHours(24))
    + *             .build());
    + * addressGroupServiceSettingsBuilder
    + *     .createClusterOperationSettings()
    + *     .setPollingAlgorithm(timedRetryAlgorithm)
    + *     .build();
    + * }
    + */ +@Generated("by gapic-generator-java") +public class AddressGroupServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final PagedCallSettings< + ListAddressGroupsRequest, ListAddressGroupsResponse, ListAddressGroupsPagedResponse> + listAddressGroupsSettings; + private final UnaryCallSettings getAddressGroupSettings; + private final UnaryCallSettings createAddressGroupSettings; + private final OperationCallSettings + createAddressGroupOperationSettings; + private final UnaryCallSettings updateAddressGroupSettings; + private final OperationCallSettings + updateAddressGroupOperationSettings; + private final UnaryCallSettings + addAddressGroupItemsSettings; + private final OperationCallSettings + addAddressGroupItemsOperationSettings; + private final UnaryCallSettings + removeAddressGroupItemsSettings; + private final OperationCallSettings< + RemoveAddressGroupItemsRequest, AddressGroup, OperationMetadata> + removeAddressGroupItemsOperationSettings; + private final UnaryCallSettings + cloneAddressGroupItemsSettings; + private final OperationCallSettings< + CloneAddressGroupItemsRequest, AddressGroup, OperationMetadata> + cloneAddressGroupItemsOperationSettings; + private final UnaryCallSettings deleteAddressGroupSettings; + private final OperationCallSettings + deleteAddressGroupOperationSettings; + private final PagedCallSettings< + ListAddressGroupReferencesRequest, + ListAddressGroupReferencesResponse, + ListAddressGroupReferencesPagedResponse> + listAddressGroupReferencesSettings; + private final PagedCallSettings< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings getLocationSettings; + private final UnaryCallSettings setIamPolicySettings; + private final UnaryCallSettings getIamPolicySettings; + private final UnaryCallSettings + testIamPermissionsSettings; + + private static final PagedListDescriptor< + ListAddressGroupsRequest, ListAddressGroupsResponse, AddressGroup> + LIST_ADDRESS_GROUPS_PAGE_STR_DESC = + new PagedListDescriptor< + ListAddressGroupsRequest, ListAddressGroupsResponse, AddressGroup>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListAddressGroupsRequest injectToken( + ListAddressGroupsRequest payload, String token) { + return ListAddressGroupsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListAddressGroupsRequest injectPageSize( + ListAddressGroupsRequest payload, int pageSize) { + return ListAddressGroupsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListAddressGroupsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListAddressGroupsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListAddressGroupsResponse payload) { + return payload.getAddressGroupsList(); + } + }; + + private static final PagedListDescriptor< + ListAddressGroupReferencesRequest, + ListAddressGroupReferencesResponse, + ListAddressGroupReferencesResponse.AddressGroupReference> + LIST_ADDRESS_GROUP_REFERENCES_PAGE_STR_DESC = + new PagedListDescriptor< + ListAddressGroupReferencesRequest, + ListAddressGroupReferencesResponse, + ListAddressGroupReferencesResponse.AddressGroupReference>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListAddressGroupReferencesRequest injectToken( + ListAddressGroupReferencesRequest payload, String token) { + return ListAddressGroupReferencesRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListAddressGroupReferencesRequest injectPageSize( + ListAddressGroupReferencesRequest payload, int pageSize) { + return ListAddressGroupReferencesRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListAddressGroupReferencesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListAddressGroupReferencesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable + extractResources(ListAddressGroupReferencesResponse payload) { + return payload.getAddressGroupReferencesList(); + } + }; + + 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< + ListAddressGroupsRequest, ListAddressGroupsResponse, ListAddressGroupsPagedResponse> + LIST_ADDRESS_GROUPS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListAddressGroupsRequest, + ListAddressGroupsResponse, + ListAddressGroupsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListAddressGroupsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_ADDRESS_GROUPS_PAGE_STR_DESC, request, context); + return ListAddressGroupsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListAddressGroupReferencesRequest, + ListAddressGroupReferencesResponse, + ListAddressGroupReferencesPagedResponse> + LIST_ADDRESS_GROUP_REFERENCES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListAddressGroupReferencesRequest, + ListAddressGroupReferencesResponse, + ListAddressGroupReferencesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListAddressGroupReferencesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListAddressGroupReferencesRequest, + ListAddressGroupReferencesResponse, + ListAddressGroupReferencesResponse.AddressGroupReference> + pageContext = + PageContext.create( + callable, LIST_ADDRESS_GROUP_REFERENCES_PAGE_STR_DESC, request, context); + return ListAddressGroupReferencesPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + LIST_LOCATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLocationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context); + return ListLocationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to listAddressGroups. */ + public PagedCallSettings< + ListAddressGroupsRequest, ListAddressGroupsResponse, ListAddressGroupsPagedResponse> + listAddressGroupsSettings() { + return listAddressGroupsSettings; + } + + /** Returns the object with the settings used for calls to getAddressGroup. */ + public UnaryCallSettings getAddressGroupSettings() { + return getAddressGroupSettings; + } + + /** Returns the object with the settings used for calls to createAddressGroup. */ + public UnaryCallSettings createAddressGroupSettings() { + return createAddressGroupSettings; + } + + /** Returns the object with the settings used for calls to createAddressGroup. */ + public OperationCallSettings + createAddressGroupOperationSettings() { + return createAddressGroupOperationSettings; + } + + /** Returns the object with the settings used for calls to updateAddressGroup. */ + public UnaryCallSettings updateAddressGroupSettings() { + return updateAddressGroupSettings; + } + + /** Returns the object with the settings used for calls to updateAddressGroup. */ + public OperationCallSettings + updateAddressGroupOperationSettings() { + return updateAddressGroupOperationSettings; + } + + /** Returns the object with the settings used for calls to addAddressGroupItems. */ + public UnaryCallSettings addAddressGroupItemsSettings() { + return addAddressGroupItemsSettings; + } + + /** Returns the object with the settings used for calls to addAddressGroupItems. */ + public OperationCallSettings + addAddressGroupItemsOperationSettings() { + return addAddressGroupItemsOperationSettings; + } + + /** Returns the object with the settings used for calls to removeAddressGroupItems. */ + public UnaryCallSettings + removeAddressGroupItemsSettings() { + return removeAddressGroupItemsSettings; + } + + /** Returns the object with the settings used for calls to removeAddressGroupItems. */ + public OperationCallSettings + removeAddressGroupItemsOperationSettings() { + return removeAddressGroupItemsOperationSettings; + } + + /** Returns the object with the settings used for calls to cloneAddressGroupItems. */ + public UnaryCallSettings + cloneAddressGroupItemsSettings() { + return cloneAddressGroupItemsSettings; + } + + /** Returns the object with the settings used for calls to cloneAddressGroupItems. */ + public OperationCallSettings + cloneAddressGroupItemsOperationSettings() { + return cloneAddressGroupItemsOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteAddressGroup. */ + public UnaryCallSettings deleteAddressGroupSettings() { + return deleteAddressGroupSettings; + } + + /** Returns the object with the settings used for calls to deleteAddressGroup. */ + public OperationCallSettings + deleteAddressGroupOperationSettings() { + return deleteAddressGroupOperationSettings; + } + + /** Returns the object with the settings used for calls to listAddressGroupReferences. */ + public PagedCallSettings< + ListAddressGroupReferencesRequest, + ListAddressGroupReferencesResponse, + ListAddressGroupReferencesPagedResponse> + listAddressGroupReferencesSettings() { + return listAddressGroupReferencesSettings; + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return getLocationSettings; + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + public AddressGroupServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcAddressGroupServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "networksecurity"; + } + + /** 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 "networksecurity.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "networksecurity.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(AddressGroupServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected AddressGroupServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + listAddressGroupsSettings = settingsBuilder.listAddressGroupsSettings().build(); + getAddressGroupSettings = settingsBuilder.getAddressGroupSettings().build(); + createAddressGroupSettings = settingsBuilder.createAddressGroupSettings().build(); + createAddressGroupOperationSettings = + settingsBuilder.createAddressGroupOperationSettings().build(); + updateAddressGroupSettings = settingsBuilder.updateAddressGroupSettings().build(); + updateAddressGroupOperationSettings = + settingsBuilder.updateAddressGroupOperationSettings().build(); + addAddressGroupItemsSettings = settingsBuilder.addAddressGroupItemsSettings().build(); + addAddressGroupItemsOperationSettings = + settingsBuilder.addAddressGroupItemsOperationSettings().build(); + removeAddressGroupItemsSettings = settingsBuilder.removeAddressGroupItemsSettings().build(); + removeAddressGroupItemsOperationSettings = + settingsBuilder.removeAddressGroupItemsOperationSettings().build(); + cloneAddressGroupItemsSettings = settingsBuilder.cloneAddressGroupItemsSettings().build(); + cloneAddressGroupItemsOperationSettings = + settingsBuilder.cloneAddressGroupItemsOperationSettings().build(); + deleteAddressGroupSettings = settingsBuilder.deleteAddressGroupSettings().build(); + deleteAddressGroupOperationSettings = + settingsBuilder.deleteAddressGroupOperationSettings().build(); + listAddressGroupReferencesSettings = + settingsBuilder.listAddressGroupReferencesSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); + getLocationSettings = settingsBuilder.getLocationSettings().build(); + setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); + getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); + testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); + } + + /** Builder for AddressGroupServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final PagedCallSettings.Builder< + ListAddressGroupsRequest, ListAddressGroupsResponse, ListAddressGroupsPagedResponse> + listAddressGroupsSettings; + private final UnaryCallSettings.Builder + getAddressGroupSettings; + private final UnaryCallSettings.Builder + createAddressGroupSettings; + private final OperationCallSettings.Builder< + CreateAddressGroupRequest, AddressGroup, OperationMetadata> + createAddressGroupOperationSettings; + private final UnaryCallSettings.Builder + updateAddressGroupSettings; + private final OperationCallSettings.Builder< + UpdateAddressGroupRequest, AddressGroup, OperationMetadata> + updateAddressGroupOperationSettings; + private final UnaryCallSettings.Builder + addAddressGroupItemsSettings; + private final OperationCallSettings.Builder< + AddAddressGroupItemsRequest, AddressGroup, OperationMetadata> + addAddressGroupItemsOperationSettings; + private final UnaryCallSettings.Builder + removeAddressGroupItemsSettings; + private final OperationCallSettings.Builder< + RemoveAddressGroupItemsRequest, AddressGroup, OperationMetadata> + removeAddressGroupItemsOperationSettings; + private final UnaryCallSettings.Builder + cloneAddressGroupItemsSettings; + private final OperationCallSettings.Builder< + CloneAddressGroupItemsRequest, AddressGroup, OperationMetadata> + cloneAddressGroupItemsOperationSettings; + private final UnaryCallSettings.Builder + deleteAddressGroupSettings; + private final OperationCallSettings.Builder + deleteAddressGroupOperationSettings; + private final PagedCallSettings.Builder< + ListAddressGroupReferencesRequest, + ListAddressGroupReferencesResponse, + ListAddressGroupReferencesPagedResponse> + listAddressGroupReferencesSettings; + private final PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings.Builder getLocationSettings; + private final UnaryCallSettings.Builder setIamPolicySettings; + private final UnaryCallSettings.Builder getIamPolicySettings; + private final UnaryCallSettings.Builder + testIamPermissionsSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("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); + + listAddressGroupsSettings = PagedCallSettings.newBuilder(LIST_ADDRESS_GROUPS_PAGE_STR_FACT); + getAddressGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createAddressGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createAddressGroupOperationSettings = OperationCallSettings.newBuilder(); + updateAddressGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateAddressGroupOperationSettings = OperationCallSettings.newBuilder(); + addAddressGroupItemsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + addAddressGroupItemsOperationSettings = OperationCallSettings.newBuilder(); + removeAddressGroupItemsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + removeAddressGroupItemsOperationSettings = OperationCallSettings.newBuilder(); + cloneAddressGroupItemsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + cloneAddressGroupItemsOperationSettings = OperationCallSettings.newBuilder(); + deleteAddressGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteAddressGroupOperationSettings = OperationCallSettings.newBuilder(); + listAddressGroupReferencesSettings = + PagedCallSettings.newBuilder(LIST_ADDRESS_GROUP_REFERENCES_PAGE_STR_FACT); + listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); + getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listAddressGroupsSettings, + getAddressGroupSettings, + createAddressGroupSettings, + updateAddressGroupSettings, + addAddressGroupItemsSettings, + removeAddressGroupItemsSettings, + cloneAddressGroupItemsSettings, + deleteAddressGroupSettings, + listAddressGroupReferencesSettings, + listLocationsSettings, + getLocationSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); + initDefaults(this); + } + + protected Builder(AddressGroupServiceStubSettings settings) { + super(settings); + + listAddressGroupsSettings = settings.listAddressGroupsSettings.toBuilder(); + getAddressGroupSettings = settings.getAddressGroupSettings.toBuilder(); + createAddressGroupSettings = settings.createAddressGroupSettings.toBuilder(); + createAddressGroupOperationSettings = + settings.createAddressGroupOperationSettings.toBuilder(); + updateAddressGroupSettings = settings.updateAddressGroupSettings.toBuilder(); + updateAddressGroupOperationSettings = + settings.updateAddressGroupOperationSettings.toBuilder(); + addAddressGroupItemsSettings = settings.addAddressGroupItemsSettings.toBuilder(); + addAddressGroupItemsOperationSettings = + settings.addAddressGroupItemsOperationSettings.toBuilder(); + removeAddressGroupItemsSettings = settings.removeAddressGroupItemsSettings.toBuilder(); + removeAddressGroupItemsOperationSettings = + settings.removeAddressGroupItemsOperationSettings.toBuilder(); + cloneAddressGroupItemsSettings = settings.cloneAddressGroupItemsSettings.toBuilder(); + cloneAddressGroupItemsOperationSettings = + settings.cloneAddressGroupItemsOperationSettings.toBuilder(); + deleteAddressGroupSettings = settings.deleteAddressGroupSettings.toBuilder(); + deleteAddressGroupOperationSettings = + settings.deleteAddressGroupOperationSettings.toBuilder(); + listAddressGroupReferencesSettings = settings.listAddressGroupReferencesSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); + getLocationSettings = settings.getLocationSettings.toBuilder(); + setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); + getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); + testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listAddressGroupsSettings, + getAddressGroupSettings, + createAddressGroupSettings, + updateAddressGroupSettings, + addAddressGroupItemsSettings, + removeAddressGroupItemsSettings, + cloneAddressGroupItemsSettings, + deleteAddressGroupSettings, + listAddressGroupReferencesSettings, + listLocationsSettings, + getLocationSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .listAddressGroupsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getAddressGroupSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createAddressGroupSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateAddressGroupSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .addAddressGroupItemsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .removeAddressGroupItemsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .cloneAddressGroupItemsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteAddressGroupSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listAddressGroupReferencesSettings() + .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 + .setIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .testIamPermissionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createAddressGroupOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(AddressGroup.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 + .updateAddressGroupOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(AddressGroup.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 + .addAddressGroupItemsOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(AddressGroup.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 + .removeAddressGroupItemsOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(AddressGroup.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 + .cloneAddressGroupItemsOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(AddressGroup.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 + .deleteAddressGroupOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.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 listAddressGroups. */ + public PagedCallSettings.Builder< + ListAddressGroupsRequest, ListAddressGroupsResponse, ListAddressGroupsPagedResponse> + listAddressGroupsSettings() { + return listAddressGroupsSettings; + } + + /** Returns the builder for the settings used for calls to getAddressGroup. */ + public UnaryCallSettings.Builder + getAddressGroupSettings() { + return getAddressGroupSettings; + } + + /** Returns the builder for the settings used for calls to createAddressGroup. */ + public UnaryCallSettings.Builder + createAddressGroupSettings() { + return createAddressGroupSettings; + } + + /** Returns the builder for the settings used for calls to createAddressGroup. */ + public OperationCallSettings.Builder + createAddressGroupOperationSettings() { + return createAddressGroupOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateAddressGroup. */ + public UnaryCallSettings.Builder + updateAddressGroupSettings() { + return updateAddressGroupSettings; + } + + /** Returns the builder for the settings used for calls to updateAddressGroup. */ + public OperationCallSettings.Builder + updateAddressGroupOperationSettings() { + return updateAddressGroupOperationSettings; + } + + /** Returns the builder for the settings used for calls to addAddressGroupItems. */ + public UnaryCallSettings.Builder + addAddressGroupItemsSettings() { + return addAddressGroupItemsSettings; + } + + /** Returns the builder for the settings used for calls to addAddressGroupItems. */ + public OperationCallSettings.Builder< + AddAddressGroupItemsRequest, AddressGroup, OperationMetadata> + addAddressGroupItemsOperationSettings() { + return addAddressGroupItemsOperationSettings; + } + + /** Returns the builder for the settings used for calls to removeAddressGroupItems. */ + public UnaryCallSettings.Builder + removeAddressGroupItemsSettings() { + return removeAddressGroupItemsSettings; + } + + /** Returns the builder for the settings used for calls to removeAddressGroupItems. */ + public OperationCallSettings.Builder< + RemoveAddressGroupItemsRequest, AddressGroup, OperationMetadata> + removeAddressGroupItemsOperationSettings() { + return removeAddressGroupItemsOperationSettings; + } + + /** Returns the builder for the settings used for calls to cloneAddressGroupItems. */ + public UnaryCallSettings.Builder + cloneAddressGroupItemsSettings() { + return cloneAddressGroupItemsSettings; + } + + /** Returns the builder for the settings used for calls to cloneAddressGroupItems. */ + public OperationCallSettings.Builder< + CloneAddressGroupItemsRequest, AddressGroup, OperationMetadata> + cloneAddressGroupItemsOperationSettings() { + return cloneAddressGroupItemsOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteAddressGroup. */ + public UnaryCallSettings.Builder + deleteAddressGroupSettings() { + return deleteAddressGroupSettings; + } + + /** Returns the builder for the settings used for calls to deleteAddressGroup. */ + public OperationCallSettings.Builder + deleteAddressGroupOperationSettings() { + return deleteAddressGroupOperationSettings; + } + + /** Returns the builder for the settings used for calls to listAddressGroupReferences. */ + public PagedCallSettings.Builder< + ListAddressGroupReferencesRequest, + ListAddressGroupReferencesResponse, + ListAddressGroupReferencesPagedResponse> + listAddressGroupReferencesSettings() { + return listAddressGroupReferencesSettings; + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getLocationSettings; + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + @Override + public AddressGroupServiceStubSettings build() throws IOException { + return new AddressGroupServiceStubSettings(this); + } + } +} diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcAddressGroupServiceCallableFactory.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcAddressGroupServiceCallableFactory.java new file mode 100644 index 000000000000..305041de2490 --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcAddressGroupServiceCallableFactory.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.networksecurity.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 AddressGroupService service API. + * + *

    This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcAddressGroupServiceCallableFactory 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-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcAddressGroupServiceStub.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcAddressGroupServiceStub.java new file mode 100644 index 000000000000..d465aa896202 --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcAddressGroupServiceStub.java @@ -0,0 +1,745 @@ +/* + * 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.networksecurity.v1.stub; + +import static com.google.cloud.networksecurity.v1.AddressGroupServiceClient.ListAddressGroupReferencesPagedResponse; +import static com.google.cloud.networksecurity.v1.AddressGroupServiceClient.ListAddressGroupsPagedResponse; +import static com.google.cloud.networksecurity.v1.AddressGroupServiceClient.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.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest; +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest; +import com.google.cloud.networksecurity.v1.CreateAddressGroupRequest; +import com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest; +import com.google.cloud.networksecurity.v1.GetAddressGroupRequest; +import com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest; +import com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse; +import com.google.cloud.networksecurity.v1.ListAddressGroupsRequest; +import com.google.cloud.networksecurity.v1.ListAddressGroupsResponse; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest; +import com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the AddressGroupService service API. + * + *

    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcAddressGroupServiceStub extends AddressGroupServiceStub { + private static final MethodDescriptor + listAddressGroupsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.AddressGroupService/ListAddressGroups") + .setRequestMarshaller( + ProtoUtils.marshaller(ListAddressGroupsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListAddressGroupsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getAddressGroupMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.AddressGroupService/GetAddressGroup") + .setRequestMarshaller( + ProtoUtils.marshaller(GetAddressGroupRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AddressGroup.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createAddressGroupMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.AddressGroupService/CreateAddressGroup") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateAddressGroupRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateAddressGroupMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.AddressGroupService/UpdateAddressGroup") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateAddressGroupRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + addAddressGroupItemsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.AddressGroupService/AddAddressGroupItems") + .setRequestMarshaller( + ProtoUtils.marshaller(AddAddressGroupItemsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + removeAddressGroupItemsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.AddressGroupService/RemoveAddressGroupItems") + .setRequestMarshaller( + ProtoUtils.marshaller(RemoveAddressGroupItemsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + cloneAddressGroupItemsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.AddressGroupService/CloneAddressGroupItems") + .setRequestMarshaller( + ProtoUtils.marshaller(CloneAddressGroupItemsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteAddressGroupMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.AddressGroupService/DeleteAddressGroup") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteAddressGroupRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + ListAddressGroupReferencesRequest, ListAddressGroupReferencesResponse> + listAddressGroupReferencesMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.AddressGroupService/ListAddressGroupReferences") + .setRequestMarshaller( + ProtoUtils.marshaller(ListAddressGroupReferencesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListAddressGroupReferencesResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .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())) + .setSampledToLocalTracing(true) + .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())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor setIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + testIamPermissionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions") + .setRequestMarshaller( + ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final UnaryCallable + listAddressGroupsCallable; + private final UnaryCallable + listAddressGroupsPagedCallable; + private final UnaryCallable getAddressGroupCallable; + private final UnaryCallable createAddressGroupCallable; + private final OperationCallable + createAddressGroupOperationCallable; + private final UnaryCallable updateAddressGroupCallable; + private final OperationCallable + updateAddressGroupOperationCallable; + private final UnaryCallable addAddressGroupItemsCallable; + private final OperationCallable + addAddressGroupItemsOperationCallable; + private final UnaryCallable + removeAddressGroupItemsCallable; + private final OperationCallable + removeAddressGroupItemsOperationCallable; + private final UnaryCallable + cloneAddressGroupItemsCallable; + private final OperationCallable + cloneAddressGroupItemsOperationCallable; + private final UnaryCallable deleteAddressGroupCallable; + private final OperationCallable + deleteAddressGroupOperationCallable; + private final UnaryCallable + listAddressGroupReferencesCallable; + private final UnaryCallable< + ListAddressGroupReferencesRequest, ListAddressGroupReferencesPagedResponse> + listAddressGroupReferencesPagedCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcAddressGroupServiceStub create(AddressGroupServiceStubSettings settings) + throws IOException { + return new GrpcAddressGroupServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcAddressGroupServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcAddressGroupServiceStub( + AddressGroupServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcAddressGroupServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcAddressGroupServiceStub( + AddressGroupServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcAddressGroupServiceStub, 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 GrpcAddressGroupServiceStub( + AddressGroupServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcAddressGroupServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcAddressGroupServiceStub, 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 GrpcAddressGroupServiceStub( + AddressGroupServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings + listAddressGroupsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listAddressGroupsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getAddressGroupTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getAddressGroupMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createAddressGroupTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createAddressGroupMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateAddressGroupTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateAddressGroupMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "address_group.name", String.valueOf(request.getAddressGroup().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings addAddressGroupItemsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(addAddressGroupItemsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("address_group", String.valueOf(request.getAddressGroup())); + return builder.build(); + }) + .build(); + GrpcCallSettings + removeAddressGroupItemsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(removeAddressGroupItemsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("address_group", String.valueOf(request.getAddressGroup())); + return builder.build(); + }) + .build(); + GrpcCallSettings + cloneAddressGroupItemsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(cloneAddressGroupItemsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("address_group", String.valueOf(request.getAddressGroup())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteAddressGroupTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteAddressGroupMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listAddressGroupReferencesTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listAddressGroupReferencesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("address_group", String.valueOf(request.getAddressGroup())); + 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(); + GrpcCallSettings setIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .build(); + GrpcCallSettings getIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .build(); + GrpcCallSettings + testIamPermissionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .build(); + + this.listAddressGroupsCallable = + callableFactory.createUnaryCallable( + listAddressGroupsTransportSettings, + settings.listAddressGroupsSettings(), + clientContext); + this.listAddressGroupsPagedCallable = + callableFactory.createPagedCallable( + listAddressGroupsTransportSettings, + settings.listAddressGroupsSettings(), + clientContext); + this.getAddressGroupCallable = + callableFactory.createUnaryCallable( + getAddressGroupTransportSettings, settings.getAddressGroupSettings(), clientContext); + this.createAddressGroupCallable = + callableFactory.createUnaryCallable( + createAddressGroupTransportSettings, + settings.createAddressGroupSettings(), + clientContext); + this.createAddressGroupOperationCallable = + callableFactory.createOperationCallable( + createAddressGroupTransportSettings, + settings.createAddressGroupOperationSettings(), + clientContext, + operationsStub); + this.updateAddressGroupCallable = + callableFactory.createUnaryCallable( + updateAddressGroupTransportSettings, + settings.updateAddressGroupSettings(), + clientContext); + this.updateAddressGroupOperationCallable = + callableFactory.createOperationCallable( + updateAddressGroupTransportSettings, + settings.updateAddressGroupOperationSettings(), + clientContext, + operationsStub); + this.addAddressGroupItemsCallable = + callableFactory.createUnaryCallable( + addAddressGroupItemsTransportSettings, + settings.addAddressGroupItemsSettings(), + clientContext); + this.addAddressGroupItemsOperationCallable = + callableFactory.createOperationCallable( + addAddressGroupItemsTransportSettings, + settings.addAddressGroupItemsOperationSettings(), + clientContext, + operationsStub); + this.removeAddressGroupItemsCallable = + callableFactory.createUnaryCallable( + removeAddressGroupItemsTransportSettings, + settings.removeAddressGroupItemsSettings(), + clientContext); + this.removeAddressGroupItemsOperationCallable = + callableFactory.createOperationCallable( + removeAddressGroupItemsTransportSettings, + settings.removeAddressGroupItemsOperationSettings(), + clientContext, + operationsStub); + this.cloneAddressGroupItemsCallable = + callableFactory.createUnaryCallable( + cloneAddressGroupItemsTransportSettings, + settings.cloneAddressGroupItemsSettings(), + clientContext); + this.cloneAddressGroupItemsOperationCallable = + callableFactory.createOperationCallable( + cloneAddressGroupItemsTransportSettings, + settings.cloneAddressGroupItemsOperationSettings(), + clientContext, + operationsStub); + this.deleteAddressGroupCallable = + callableFactory.createUnaryCallable( + deleteAddressGroupTransportSettings, + settings.deleteAddressGroupSettings(), + clientContext); + this.deleteAddressGroupOperationCallable = + callableFactory.createOperationCallable( + deleteAddressGroupTransportSettings, + settings.deleteAddressGroupOperationSettings(), + clientContext, + operationsStub); + this.listAddressGroupReferencesCallable = + callableFactory.createUnaryCallable( + listAddressGroupReferencesTransportSettings, + settings.listAddressGroupReferencesSettings(), + clientContext); + this.listAddressGroupReferencesPagedCallable = + callableFactory.createPagedCallable( + listAddressGroupReferencesTransportSettings, + settings.listAddressGroupReferencesSettings(), + clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable + listAddressGroupsCallable() { + return listAddressGroupsCallable; + } + + @Override + public UnaryCallable + listAddressGroupsPagedCallable() { + return listAddressGroupsPagedCallable; + } + + @Override + public UnaryCallable getAddressGroupCallable() { + return getAddressGroupCallable; + } + + @Override + public UnaryCallable createAddressGroupCallable() { + return createAddressGroupCallable; + } + + @Override + public OperationCallable + createAddressGroupOperationCallable() { + return createAddressGroupOperationCallable; + } + + @Override + public UnaryCallable updateAddressGroupCallable() { + return updateAddressGroupCallable; + } + + @Override + public OperationCallable + updateAddressGroupOperationCallable() { + return updateAddressGroupOperationCallable; + } + + @Override + public UnaryCallable addAddressGroupItemsCallable() { + return addAddressGroupItemsCallable; + } + + @Override + public OperationCallable + addAddressGroupItemsOperationCallable() { + return addAddressGroupItemsOperationCallable; + } + + @Override + public UnaryCallable + removeAddressGroupItemsCallable() { + return removeAddressGroupItemsCallable; + } + + @Override + public OperationCallable + removeAddressGroupItemsOperationCallable() { + return removeAddressGroupItemsOperationCallable; + } + + @Override + public UnaryCallable cloneAddressGroupItemsCallable() { + return cloneAddressGroupItemsCallable; + } + + @Override + public OperationCallable + cloneAddressGroupItemsOperationCallable() { + return cloneAddressGroupItemsOperationCallable; + } + + @Override + public UnaryCallable deleteAddressGroupCallable() { + return deleteAddressGroupCallable; + } + + @Override + public OperationCallable + deleteAddressGroupOperationCallable() { + return deleteAddressGroupOperationCallable; + } + + @Override + public UnaryCallable + listAddressGroupReferencesCallable() { + return listAddressGroupReferencesCallable; + } + + @Override + public UnaryCallable + listAddressGroupReferencesPagedCallable() { + return listAddressGroupReferencesPagedCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcOrganizationAddressGroupServiceCallableFactory.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcOrganizationAddressGroupServiceCallableFactory.java new file mode 100644 index 000000000000..2df19a304d29 --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcOrganizationAddressGroupServiceCallableFactory.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.networksecurity.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 OrganizationAddressGroupService service API. + * + *

    This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcOrganizationAddressGroupServiceCallableFactory 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-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcOrganizationAddressGroupServiceStub.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcOrganizationAddressGroupServiceStub.java new file mode 100644 index 000000000000..59724e030ee9 --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/GrpcOrganizationAddressGroupServiceStub.java @@ -0,0 +1,748 @@ +/* + * 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.networksecurity.v1.stub; + +import static com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient.ListAddressGroupReferencesPagedResponse; +import static com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient.ListAddressGroupsPagedResponse; +import static com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient.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.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest; +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest; +import com.google.cloud.networksecurity.v1.CreateAddressGroupRequest; +import com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest; +import com.google.cloud.networksecurity.v1.GetAddressGroupRequest; +import com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest; +import com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse; +import com.google.cloud.networksecurity.v1.ListAddressGroupsRequest; +import com.google.cloud.networksecurity.v1.ListAddressGroupsResponse; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest; +import com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the OrganizationAddressGroupService service API. + * + *

    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcOrganizationAddressGroupServiceStub extends OrganizationAddressGroupServiceStub { + private static final MethodDescriptor + listAddressGroupsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.OrganizationAddressGroupService/ListAddressGroups") + .setRequestMarshaller( + ProtoUtils.marshaller(ListAddressGroupsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListAddressGroupsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getAddressGroupMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.OrganizationAddressGroupService/GetAddressGroup") + .setRequestMarshaller( + ProtoUtils.marshaller(GetAddressGroupRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AddressGroup.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createAddressGroupMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.OrganizationAddressGroupService/CreateAddressGroup") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateAddressGroupRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateAddressGroupMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.OrganizationAddressGroupService/UpdateAddressGroup") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateAddressGroupRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + addAddressGroupItemsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.OrganizationAddressGroupService/AddAddressGroupItems") + .setRequestMarshaller( + ProtoUtils.marshaller(AddAddressGroupItemsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + removeAddressGroupItemsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.OrganizationAddressGroupService/RemoveAddressGroupItems") + .setRequestMarshaller( + ProtoUtils.marshaller(RemoveAddressGroupItemsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + cloneAddressGroupItemsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.OrganizationAddressGroupService/CloneAddressGroupItems") + .setRequestMarshaller( + ProtoUtils.marshaller(CloneAddressGroupItemsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteAddressGroupMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.OrganizationAddressGroupService/DeleteAddressGroup") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteAddressGroupRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + ListAddressGroupReferencesRequest, ListAddressGroupReferencesResponse> + listAddressGroupReferencesMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networksecurity.v1.OrganizationAddressGroupService/ListAddressGroupReferences") + .setRequestMarshaller( + ProtoUtils.marshaller(ListAddressGroupReferencesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListAddressGroupReferencesResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .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())) + .setSampledToLocalTracing(true) + .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())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor setIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + testIamPermissionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions") + .setRequestMarshaller( + ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final UnaryCallable + listAddressGroupsCallable; + private final UnaryCallable + listAddressGroupsPagedCallable; + private final UnaryCallable getAddressGroupCallable; + private final UnaryCallable createAddressGroupCallable; + private final OperationCallable + createAddressGroupOperationCallable; + private final UnaryCallable updateAddressGroupCallable; + private final OperationCallable + updateAddressGroupOperationCallable; + private final UnaryCallable addAddressGroupItemsCallable; + private final OperationCallable + addAddressGroupItemsOperationCallable; + private final UnaryCallable + removeAddressGroupItemsCallable; + private final OperationCallable + removeAddressGroupItemsOperationCallable; + private final UnaryCallable + cloneAddressGroupItemsCallable; + private final OperationCallable + cloneAddressGroupItemsOperationCallable; + private final UnaryCallable deleteAddressGroupCallable; + private final OperationCallable + deleteAddressGroupOperationCallable; + private final UnaryCallable + listAddressGroupReferencesCallable; + private final UnaryCallable< + ListAddressGroupReferencesRequest, ListAddressGroupReferencesPagedResponse> + listAddressGroupReferencesPagedCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcOrganizationAddressGroupServiceStub create( + OrganizationAddressGroupServiceStubSettings settings) throws IOException { + return new GrpcOrganizationAddressGroupServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcOrganizationAddressGroupServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcOrganizationAddressGroupServiceStub( + OrganizationAddressGroupServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcOrganizationAddressGroupServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcOrganizationAddressGroupServiceStub( + OrganizationAddressGroupServiceStubSettings.newBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of GrpcOrganizationAddressGroupServiceStub, 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 GrpcOrganizationAddressGroupServiceStub( + OrganizationAddressGroupServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcOrganizationAddressGroupServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcOrganizationAddressGroupServiceStub, 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 GrpcOrganizationAddressGroupServiceStub( + OrganizationAddressGroupServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings + listAddressGroupsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listAddressGroupsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getAddressGroupTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getAddressGroupMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createAddressGroupTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createAddressGroupMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateAddressGroupTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateAddressGroupMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "address_group.name", String.valueOf(request.getAddressGroup().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings addAddressGroupItemsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(addAddressGroupItemsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("address_group", String.valueOf(request.getAddressGroup())); + return builder.build(); + }) + .build(); + GrpcCallSettings + removeAddressGroupItemsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(removeAddressGroupItemsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("address_group", String.valueOf(request.getAddressGroup())); + return builder.build(); + }) + .build(); + GrpcCallSettings + cloneAddressGroupItemsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(cloneAddressGroupItemsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("address_group", String.valueOf(request.getAddressGroup())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteAddressGroupTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteAddressGroupMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listAddressGroupReferencesTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listAddressGroupReferencesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("address_group", String.valueOf(request.getAddressGroup())); + 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(); + GrpcCallSettings setIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .build(); + GrpcCallSettings getIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .build(); + GrpcCallSettings + testIamPermissionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .build(); + + this.listAddressGroupsCallable = + callableFactory.createUnaryCallable( + listAddressGroupsTransportSettings, + settings.listAddressGroupsSettings(), + clientContext); + this.listAddressGroupsPagedCallable = + callableFactory.createPagedCallable( + listAddressGroupsTransportSettings, + settings.listAddressGroupsSettings(), + clientContext); + this.getAddressGroupCallable = + callableFactory.createUnaryCallable( + getAddressGroupTransportSettings, settings.getAddressGroupSettings(), clientContext); + this.createAddressGroupCallable = + callableFactory.createUnaryCallable( + createAddressGroupTransportSettings, + settings.createAddressGroupSettings(), + clientContext); + this.createAddressGroupOperationCallable = + callableFactory.createOperationCallable( + createAddressGroupTransportSettings, + settings.createAddressGroupOperationSettings(), + clientContext, + operationsStub); + this.updateAddressGroupCallable = + callableFactory.createUnaryCallable( + updateAddressGroupTransportSettings, + settings.updateAddressGroupSettings(), + clientContext); + this.updateAddressGroupOperationCallable = + callableFactory.createOperationCallable( + updateAddressGroupTransportSettings, + settings.updateAddressGroupOperationSettings(), + clientContext, + operationsStub); + this.addAddressGroupItemsCallable = + callableFactory.createUnaryCallable( + addAddressGroupItemsTransportSettings, + settings.addAddressGroupItemsSettings(), + clientContext); + this.addAddressGroupItemsOperationCallable = + callableFactory.createOperationCallable( + addAddressGroupItemsTransportSettings, + settings.addAddressGroupItemsOperationSettings(), + clientContext, + operationsStub); + this.removeAddressGroupItemsCallable = + callableFactory.createUnaryCallable( + removeAddressGroupItemsTransportSettings, + settings.removeAddressGroupItemsSettings(), + clientContext); + this.removeAddressGroupItemsOperationCallable = + callableFactory.createOperationCallable( + removeAddressGroupItemsTransportSettings, + settings.removeAddressGroupItemsOperationSettings(), + clientContext, + operationsStub); + this.cloneAddressGroupItemsCallable = + callableFactory.createUnaryCallable( + cloneAddressGroupItemsTransportSettings, + settings.cloneAddressGroupItemsSettings(), + clientContext); + this.cloneAddressGroupItemsOperationCallable = + callableFactory.createOperationCallable( + cloneAddressGroupItemsTransportSettings, + settings.cloneAddressGroupItemsOperationSettings(), + clientContext, + operationsStub); + this.deleteAddressGroupCallable = + callableFactory.createUnaryCallable( + deleteAddressGroupTransportSettings, + settings.deleteAddressGroupSettings(), + clientContext); + this.deleteAddressGroupOperationCallable = + callableFactory.createOperationCallable( + deleteAddressGroupTransportSettings, + settings.deleteAddressGroupOperationSettings(), + clientContext, + operationsStub); + this.listAddressGroupReferencesCallable = + callableFactory.createUnaryCallable( + listAddressGroupReferencesTransportSettings, + settings.listAddressGroupReferencesSettings(), + clientContext); + this.listAddressGroupReferencesPagedCallable = + callableFactory.createPagedCallable( + listAddressGroupReferencesTransportSettings, + settings.listAddressGroupReferencesSettings(), + clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable + listAddressGroupsCallable() { + return listAddressGroupsCallable; + } + + @Override + public UnaryCallable + listAddressGroupsPagedCallable() { + return listAddressGroupsPagedCallable; + } + + @Override + public UnaryCallable getAddressGroupCallable() { + return getAddressGroupCallable; + } + + @Override + public UnaryCallable createAddressGroupCallable() { + return createAddressGroupCallable; + } + + @Override + public OperationCallable + createAddressGroupOperationCallable() { + return createAddressGroupOperationCallable; + } + + @Override + public UnaryCallable updateAddressGroupCallable() { + return updateAddressGroupCallable; + } + + @Override + public OperationCallable + updateAddressGroupOperationCallable() { + return updateAddressGroupOperationCallable; + } + + @Override + public UnaryCallable addAddressGroupItemsCallable() { + return addAddressGroupItemsCallable; + } + + @Override + public OperationCallable + addAddressGroupItemsOperationCallable() { + return addAddressGroupItemsOperationCallable; + } + + @Override + public UnaryCallable + removeAddressGroupItemsCallable() { + return removeAddressGroupItemsCallable; + } + + @Override + public OperationCallable + removeAddressGroupItemsOperationCallable() { + return removeAddressGroupItemsOperationCallable; + } + + @Override + public UnaryCallable cloneAddressGroupItemsCallable() { + return cloneAddressGroupItemsCallable; + } + + @Override + public OperationCallable + cloneAddressGroupItemsOperationCallable() { + return cloneAddressGroupItemsOperationCallable; + } + + @Override + public UnaryCallable deleteAddressGroupCallable() { + return deleteAddressGroupCallable; + } + + @Override + public OperationCallable + deleteAddressGroupOperationCallable() { + return deleteAddressGroupOperationCallable; + } + + @Override + public UnaryCallable + listAddressGroupReferencesCallable() { + return listAddressGroupReferencesCallable; + } + + @Override + public UnaryCallable + listAddressGroupReferencesPagedCallable() { + return listAddressGroupReferencesPagedCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/OrganizationAddressGroupServiceStub.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/OrganizationAddressGroupServiceStub.java new file mode 100644 index 000000000000..2b3817e2ea57 --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/OrganizationAddressGroupServiceStub.java @@ -0,0 +1,181 @@ +/* + * 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.networksecurity.v1.stub; + +import static com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient.ListAddressGroupReferencesPagedResponse; +import static com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient.ListAddressGroupsPagedResponse; +import static com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient.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.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest; +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest; +import com.google.cloud.networksecurity.v1.CreateAddressGroupRequest; +import com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest; +import com.google.cloud.networksecurity.v1.GetAddressGroupRequest; +import com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest; +import com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse; +import com.google.cloud.networksecurity.v1.ListAddressGroupsRequest; +import com.google.cloud.networksecurity.v1.ListAddressGroupsResponse; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest; +import com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the OrganizationAddressGroupService service API. + * + *

    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class OrganizationAddressGroupServiceStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); + } + + public UnaryCallable + listAddressGroupsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listAddressGroupsPagedCallable()"); + } + + public UnaryCallable + listAddressGroupsCallable() { + throw new UnsupportedOperationException("Not implemented: listAddressGroupsCallable()"); + } + + public UnaryCallable getAddressGroupCallable() { + throw new UnsupportedOperationException("Not implemented: getAddressGroupCallable()"); + } + + public OperationCallable + createAddressGroupOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createAddressGroupOperationCallable()"); + } + + public UnaryCallable createAddressGroupCallable() { + throw new UnsupportedOperationException("Not implemented: createAddressGroupCallable()"); + } + + public OperationCallable + updateAddressGroupOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateAddressGroupOperationCallable()"); + } + + public UnaryCallable updateAddressGroupCallable() { + throw new UnsupportedOperationException("Not implemented: updateAddressGroupCallable()"); + } + + public OperationCallable + addAddressGroupItemsOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: addAddressGroupItemsOperationCallable()"); + } + + public UnaryCallable addAddressGroupItemsCallable() { + throw new UnsupportedOperationException("Not implemented: addAddressGroupItemsCallable()"); + } + + public OperationCallable + removeAddressGroupItemsOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: removeAddressGroupItemsOperationCallable()"); + } + + public UnaryCallable + removeAddressGroupItemsCallable() { + throw new UnsupportedOperationException("Not implemented: removeAddressGroupItemsCallable()"); + } + + public OperationCallable + cloneAddressGroupItemsOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: cloneAddressGroupItemsOperationCallable()"); + } + + public UnaryCallable cloneAddressGroupItemsCallable() { + throw new UnsupportedOperationException("Not implemented: cloneAddressGroupItemsCallable()"); + } + + public OperationCallable + deleteAddressGroupOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteAddressGroupOperationCallable()"); + } + + public UnaryCallable deleteAddressGroupCallable() { + throw new UnsupportedOperationException("Not implemented: deleteAddressGroupCallable()"); + } + + public UnaryCallable + listAddressGroupReferencesPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listAddressGroupReferencesPagedCallable()"); + } + + public UnaryCallable + listAddressGroupReferencesCallable() { + throw new UnsupportedOperationException( + "Not implemented: listAddressGroupReferencesCallable()"); + } + + public UnaryCallable + listLocationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); + } + + public UnaryCallable listLocationsCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsCallable()"); + } + + public UnaryCallable getLocationCallable() { + throw new UnsupportedOperationException("Not implemented: getLocationCallable()"); + } + + public UnaryCallable setIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()"); + } + + public UnaryCallable getIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()"); + } + + public UnaryCallable + testIamPermissionsCallable() { + throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/OrganizationAddressGroupServiceStubSettings.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/OrganizationAddressGroupServiceStubSettings.java new file mode 100644 index 000000000000..97818573d697 --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/OrganizationAddressGroupServiceStubSettings.java @@ -0,0 +1,1165 @@ +/* + * 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.networksecurity.v1.stub; + +import static com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient.ListAddressGroupReferencesPagedResponse; +import static com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient.ListAddressGroupsPagedResponse; +import static com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient.ListLocationsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.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.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest; +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest; +import com.google.cloud.networksecurity.v1.CreateAddressGroupRequest; +import com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest; +import com.google.cloud.networksecurity.v1.GetAddressGroupRequest; +import com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest; +import com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse; +import com.google.cloud.networksecurity.v1.ListAddressGroupsRequest; +import com.google.cloud.networksecurity.v1.ListAddressGroupsResponse; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest; +import com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.time.Duration; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link OrganizationAddressGroupServiceStub}. + * + *

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

      + *
    • The default service address (networksecurity.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 getAddressGroup: + * + *

    {@code
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    + * OrganizationAddressGroupServiceStubSettings.Builder
    + *     organizationAddressGroupServiceSettingsBuilder =
    + *         OrganizationAddressGroupServiceStubSettings.newBuilder();
    + * organizationAddressGroupServiceSettingsBuilder
    + *     .getAddressGroupSettings()
    + *     .setRetrySettings(
    + *         organizationAddressGroupServiceSettingsBuilder
    + *             .getAddressGroupSettings()
    + *             .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());
    + * OrganizationAddressGroupServiceStubSettings organizationAddressGroupServiceSettings =
    + *     organizationAddressGroupServiceSettingsBuilder.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 createAddressGroup: + * + *

    {@code
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    + * OrganizationAddressGroupServiceStubSettings.Builder
    + *     organizationAddressGroupServiceSettingsBuilder =
    + *         OrganizationAddressGroupServiceStubSettings.newBuilder();
    + * TimedRetryAlgorithm timedRetryAlgorithm =
    + *     OperationalTimedPollAlgorithm.create(
    + *         RetrySettings.newBuilder()
    + *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
    + *             .setRetryDelayMultiplier(1.5)
    + *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
    + *             .setTotalTimeoutDuration(Duration.ofHours(24))
    + *             .build());
    + * organizationAddressGroupServiceSettingsBuilder
    + *     .createClusterOperationSettings()
    + *     .setPollingAlgorithm(timedRetryAlgorithm)
    + *     .build();
    + * }
    + */ +@Generated("by gapic-generator-java") +public class OrganizationAddressGroupServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final PagedCallSettings< + ListAddressGroupsRequest, ListAddressGroupsResponse, ListAddressGroupsPagedResponse> + listAddressGroupsSettings; + private final UnaryCallSettings getAddressGroupSettings; + private final UnaryCallSettings createAddressGroupSettings; + private final OperationCallSettings + createAddressGroupOperationSettings; + private final UnaryCallSettings updateAddressGroupSettings; + private final OperationCallSettings + updateAddressGroupOperationSettings; + private final UnaryCallSettings + addAddressGroupItemsSettings; + private final OperationCallSettings + addAddressGroupItemsOperationSettings; + private final UnaryCallSettings + removeAddressGroupItemsSettings; + private final OperationCallSettings< + RemoveAddressGroupItemsRequest, AddressGroup, OperationMetadata> + removeAddressGroupItemsOperationSettings; + private final UnaryCallSettings + cloneAddressGroupItemsSettings; + private final OperationCallSettings< + CloneAddressGroupItemsRequest, AddressGroup, OperationMetadata> + cloneAddressGroupItemsOperationSettings; + private final UnaryCallSettings deleteAddressGroupSettings; + private final OperationCallSettings + deleteAddressGroupOperationSettings; + private final PagedCallSettings< + ListAddressGroupReferencesRequest, + ListAddressGroupReferencesResponse, + ListAddressGroupReferencesPagedResponse> + listAddressGroupReferencesSettings; + private final PagedCallSettings< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings getLocationSettings; + private final UnaryCallSettings setIamPolicySettings; + private final UnaryCallSettings getIamPolicySettings; + private final UnaryCallSettings + testIamPermissionsSettings; + + private static final PagedListDescriptor< + ListAddressGroupsRequest, ListAddressGroupsResponse, AddressGroup> + LIST_ADDRESS_GROUPS_PAGE_STR_DESC = + new PagedListDescriptor< + ListAddressGroupsRequest, ListAddressGroupsResponse, AddressGroup>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListAddressGroupsRequest injectToken( + ListAddressGroupsRequest payload, String token) { + return ListAddressGroupsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListAddressGroupsRequest injectPageSize( + ListAddressGroupsRequest payload, int pageSize) { + return ListAddressGroupsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListAddressGroupsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListAddressGroupsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListAddressGroupsResponse payload) { + return payload.getAddressGroupsList(); + } + }; + + private static final PagedListDescriptor< + ListAddressGroupReferencesRequest, + ListAddressGroupReferencesResponse, + ListAddressGroupReferencesResponse.AddressGroupReference> + LIST_ADDRESS_GROUP_REFERENCES_PAGE_STR_DESC = + new PagedListDescriptor< + ListAddressGroupReferencesRequest, + ListAddressGroupReferencesResponse, + ListAddressGroupReferencesResponse.AddressGroupReference>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListAddressGroupReferencesRequest injectToken( + ListAddressGroupReferencesRequest payload, String token) { + return ListAddressGroupReferencesRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListAddressGroupReferencesRequest injectPageSize( + ListAddressGroupReferencesRequest payload, int pageSize) { + return ListAddressGroupReferencesRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListAddressGroupReferencesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListAddressGroupReferencesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable + extractResources(ListAddressGroupReferencesResponse payload) { + return payload.getAddressGroupReferencesList(); + } + }; + + 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< + ListAddressGroupsRequest, ListAddressGroupsResponse, ListAddressGroupsPagedResponse> + LIST_ADDRESS_GROUPS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListAddressGroupsRequest, + ListAddressGroupsResponse, + ListAddressGroupsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListAddressGroupsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_ADDRESS_GROUPS_PAGE_STR_DESC, request, context); + return ListAddressGroupsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListAddressGroupReferencesRequest, + ListAddressGroupReferencesResponse, + ListAddressGroupReferencesPagedResponse> + LIST_ADDRESS_GROUP_REFERENCES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListAddressGroupReferencesRequest, + ListAddressGroupReferencesResponse, + ListAddressGroupReferencesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListAddressGroupReferencesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListAddressGroupReferencesRequest, + ListAddressGroupReferencesResponse, + ListAddressGroupReferencesResponse.AddressGroupReference> + pageContext = + PageContext.create( + callable, LIST_ADDRESS_GROUP_REFERENCES_PAGE_STR_DESC, request, context); + return ListAddressGroupReferencesPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + LIST_LOCATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLocationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context); + return ListLocationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to listAddressGroups. */ + public PagedCallSettings< + ListAddressGroupsRequest, ListAddressGroupsResponse, ListAddressGroupsPagedResponse> + listAddressGroupsSettings() { + return listAddressGroupsSettings; + } + + /** Returns the object with the settings used for calls to getAddressGroup. */ + public UnaryCallSettings getAddressGroupSettings() { + return getAddressGroupSettings; + } + + /** Returns the object with the settings used for calls to createAddressGroup. */ + public UnaryCallSettings createAddressGroupSettings() { + return createAddressGroupSettings; + } + + /** Returns the object with the settings used for calls to createAddressGroup. */ + public OperationCallSettings + createAddressGroupOperationSettings() { + return createAddressGroupOperationSettings; + } + + /** Returns the object with the settings used for calls to updateAddressGroup. */ + public UnaryCallSettings updateAddressGroupSettings() { + return updateAddressGroupSettings; + } + + /** Returns the object with the settings used for calls to updateAddressGroup. */ + public OperationCallSettings + updateAddressGroupOperationSettings() { + return updateAddressGroupOperationSettings; + } + + /** Returns the object with the settings used for calls to addAddressGroupItems. */ + public UnaryCallSettings addAddressGroupItemsSettings() { + return addAddressGroupItemsSettings; + } + + /** Returns the object with the settings used for calls to addAddressGroupItems. */ + public OperationCallSettings + addAddressGroupItemsOperationSettings() { + return addAddressGroupItemsOperationSettings; + } + + /** Returns the object with the settings used for calls to removeAddressGroupItems. */ + public UnaryCallSettings + removeAddressGroupItemsSettings() { + return removeAddressGroupItemsSettings; + } + + /** Returns the object with the settings used for calls to removeAddressGroupItems. */ + public OperationCallSettings + removeAddressGroupItemsOperationSettings() { + return removeAddressGroupItemsOperationSettings; + } + + /** Returns the object with the settings used for calls to cloneAddressGroupItems. */ + public UnaryCallSettings + cloneAddressGroupItemsSettings() { + return cloneAddressGroupItemsSettings; + } + + /** Returns the object with the settings used for calls to cloneAddressGroupItems. */ + public OperationCallSettings + cloneAddressGroupItemsOperationSettings() { + return cloneAddressGroupItemsOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteAddressGroup. */ + public UnaryCallSettings deleteAddressGroupSettings() { + return deleteAddressGroupSettings; + } + + /** Returns the object with the settings used for calls to deleteAddressGroup. */ + public OperationCallSettings + deleteAddressGroupOperationSettings() { + return deleteAddressGroupOperationSettings; + } + + /** Returns the object with the settings used for calls to listAddressGroupReferences. */ + public PagedCallSettings< + ListAddressGroupReferencesRequest, + ListAddressGroupReferencesResponse, + ListAddressGroupReferencesPagedResponse> + listAddressGroupReferencesSettings() { + return listAddressGroupReferencesSettings; + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return getLocationSettings; + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + public OrganizationAddressGroupServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcOrganizationAddressGroupServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "networksecurity"; + } + + /** 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 "networksecurity.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "networksecurity.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", + GaxProperties.getLibraryVersion(OrganizationAddressGroupServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected OrganizationAddressGroupServiceStubSettings(Builder settingsBuilder) + throws IOException { + super(settingsBuilder); + + listAddressGroupsSettings = settingsBuilder.listAddressGroupsSettings().build(); + getAddressGroupSettings = settingsBuilder.getAddressGroupSettings().build(); + createAddressGroupSettings = settingsBuilder.createAddressGroupSettings().build(); + createAddressGroupOperationSettings = + settingsBuilder.createAddressGroupOperationSettings().build(); + updateAddressGroupSettings = settingsBuilder.updateAddressGroupSettings().build(); + updateAddressGroupOperationSettings = + settingsBuilder.updateAddressGroupOperationSettings().build(); + addAddressGroupItemsSettings = settingsBuilder.addAddressGroupItemsSettings().build(); + addAddressGroupItemsOperationSettings = + settingsBuilder.addAddressGroupItemsOperationSettings().build(); + removeAddressGroupItemsSettings = settingsBuilder.removeAddressGroupItemsSettings().build(); + removeAddressGroupItemsOperationSettings = + settingsBuilder.removeAddressGroupItemsOperationSettings().build(); + cloneAddressGroupItemsSettings = settingsBuilder.cloneAddressGroupItemsSettings().build(); + cloneAddressGroupItemsOperationSettings = + settingsBuilder.cloneAddressGroupItemsOperationSettings().build(); + deleteAddressGroupSettings = settingsBuilder.deleteAddressGroupSettings().build(); + deleteAddressGroupOperationSettings = + settingsBuilder.deleteAddressGroupOperationSettings().build(); + listAddressGroupReferencesSettings = + settingsBuilder.listAddressGroupReferencesSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); + getLocationSettings = settingsBuilder.getLocationSettings().build(); + setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); + getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); + testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); + } + + /** Builder for OrganizationAddressGroupServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final PagedCallSettings.Builder< + ListAddressGroupsRequest, ListAddressGroupsResponse, ListAddressGroupsPagedResponse> + listAddressGroupsSettings; + private final UnaryCallSettings.Builder + getAddressGroupSettings; + private final UnaryCallSettings.Builder + createAddressGroupSettings; + private final OperationCallSettings.Builder< + CreateAddressGroupRequest, AddressGroup, OperationMetadata> + createAddressGroupOperationSettings; + private final UnaryCallSettings.Builder + updateAddressGroupSettings; + private final OperationCallSettings.Builder< + UpdateAddressGroupRequest, AddressGroup, OperationMetadata> + updateAddressGroupOperationSettings; + private final UnaryCallSettings.Builder + addAddressGroupItemsSettings; + private final OperationCallSettings.Builder< + AddAddressGroupItemsRequest, AddressGroup, OperationMetadata> + addAddressGroupItemsOperationSettings; + private final UnaryCallSettings.Builder + removeAddressGroupItemsSettings; + private final OperationCallSettings.Builder< + RemoveAddressGroupItemsRequest, AddressGroup, OperationMetadata> + removeAddressGroupItemsOperationSettings; + private final UnaryCallSettings.Builder + cloneAddressGroupItemsSettings; + private final OperationCallSettings.Builder< + CloneAddressGroupItemsRequest, AddressGroup, OperationMetadata> + cloneAddressGroupItemsOperationSettings; + private final UnaryCallSettings.Builder + deleteAddressGroupSettings; + private final OperationCallSettings.Builder + deleteAddressGroupOperationSettings; + private final PagedCallSettings.Builder< + ListAddressGroupReferencesRequest, + ListAddressGroupReferencesResponse, + ListAddressGroupReferencesPagedResponse> + listAddressGroupReferencesSettings; + private final PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings.Builder getLocationSettings; + private final UnaryCallSettings.Builder setIamPolicySettings; + private final UnaryCallSettings.Builder getIamPolicySettings; + private final UnaryCallSettings.Builder + testIamPermissionsSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("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); + + listAddressGroupsSettings = PagedCallSettings.newBuilder(LIST_ADDRESS_GROUPS_PAGE_STR_FACT); + getAddressGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createAddressGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createAddressGroupOperationSettings = OperationCallSettings.newBuilder(); + updateAddressGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateAddressGroupOperationSettings = OperationCallSettings.newBuilder(); + addAddressGroupItemsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + addAddressGroupItemsOperationSettings = OperationCallSettings.newBuilder(); + removeAddressGroupItemsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + removeAddressGroupItemsOperationSettings = OperationCallSettings.newBuilder(); + cloneAddressGroupItemsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + cloneAddressGroupItemsOperationSettings = OperationCallSettings.newBuilder(); + deleteAddressGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteAddressGroupOperationSettings = OperationCallSettings.newBuilder(); + listAddressGroupReferencesSettings = + PagedCallSettings.newBuilder(LIST_ADDRESS_GROUP_REFERENCES_PAGE_STR_FACT); + listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); + getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listAddressGroupsSettings, + getAddressGroupSettings, + createAddressGroupSettings, + updateAddressGroupSettings, + addAddressGroupItemsSettings, + removeAddressGroupItemsSettings, + cloneAddressGroupItemsSettings, + deleteAddressGroupSettings, + listAddressGroupReferencesSettings, + listLocationsSettings, + getLocationSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); + initDefaults(this); + } + + protected Builder(OrganizationAddressGroupServiceStubSettings settings) { + super(settings); + + listAddressGroupsSettings = settings.listAddressGroupsSettings.toBuilder(); + getAddressGroupSettings = settings.getAddressGroupSettings.toBuilder(); + createAddressGroupSettings = settings.createAddressGroupSettings.toBuilder(); + createAddressGroupOperationSettings = + settings.createAddressGroupOperationSettings.toBuilder(); + updateAddressGroupSettings = settings.updateAddressGroupSettings.toBuilder(); + updateAddressGroupOperationSettings = + settings.updateAddressGroupOperationSettings.toBuilder(); + addAddressGroupItemsSettings = settings.addAddressGroupItemsSettings.toBuilder(); + addAddressGroupItemsOperationSettings = + settings.addAddressGroupItemsOperationSettings.toBuilder(); + removeAddressGroupItemsSettings = settings.removeAddressGroupItemsSettings.toBuilder(); + removeAddressGroupItemsOperationSettings = + settings.removeAddressGroupItemsOperationSettings.toBuilder(); + cloneAddressGroupItemsSettings = settings.cloneAddressGroupItemsSettings.toBuilder(); + cloneAddressGroupItemsOperationSettings = + settings.cloneAddressGroupItemsOperationSettings.toBuilder(); + deleteAddressGroupSettings = settings.deleteAddressGroupSettings.toBuilder(); + deleteAddressGroupOperationSettings = + settings.deleteAddressGroupOperationSettings.toBuilder(); + listAddressGroupReferencesSettings = settings.listAddressGroupReferencesSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); + getLocationSettings = settings.getLocationSettings.toBuilder(); + setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); + getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); + testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listAddressGroupsSettings, + getAddressGroupSettings, + createAddressGroupSettings, + updateAddressGroupSettings, + addAddressGroupItemsSettings, + removeAddressGroupItemsSettings, + cloneAddressGroupItemsSettings, + deleteAddressGroupSettings, + listAddressGroupReferencesSettings, + listLocationsSettings, + getLocationSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .listAddressGroupsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getAddressGroupSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createAddressGroupSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateAddressGroupSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .addAddressGroupItemsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .removeAddressGroupItemsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .cloneAddressGroupItemsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteAddressGroupSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listAddressGroupReferencesSettings() + .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 + .setIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .testIamPermissionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createAddressGroupOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(AddressGroup.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 + .updateAddressGroupOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(AddressGroup.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 + .addAddressGroupItemsOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(AddressGroup.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 + .removeAddressGroupItemsOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(AddressGroup.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 + .cloneAddressGroupItemsOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(AddressGroup.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 + .deleteAddressGroupOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.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 listAddressGroups. */ + public PagedCallSettings.Builder< + ListAddressGroupsRequest, ListAddressGroupsResponse, ListAddressGroupsPagedResponse> + listAddressGroupsSettings() { + return listAddressGroupsSettings; + } + + /** Returns the builder for the settings used for calls to getAddressGroup. */ + public UnaryCallSettings.Builder + getAddressGroupSettings() { + return getAddressGroupSettings; + } + + /** Returns the builder for the settings used for calls to createAddressGroup. */ + public UnaryCallSettings.Builder + createAddressGroupSettings() { + return createAddressGroupSettings; + } + + /** Returns the builder for the settings used for calls to createAddressGroup. */ + public OperationCallSettings.Builder + createAddressGroupOperationSettings() { + return createAddressGroupOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateAddressGroup. */ + public UnaryCallSettings.Builder + updateAddressGroupSettings() { + return updateAddressGroupSettings; + } + + /** Returns the builder for the settings used for calls to updateAddressGroup. */ + public OperationCallSettings.Builder + updateAddressGroupOperationSettings() { + return updateAddressGroupOperationSettings; + } + + /** Returns the builder for the settings used for calls to addAddressGroupItems. */ + public UnaryCallSettings.Builder + addAddressGroupItemsSettings() { + return addAddressGroupItemsSettings; + } + + /** Returns the builder for the settings used for calls to addAddressGroupItems. */ + public OperationCallSettings.Builder< + AddAddressGroupItemsRequest, AddressGroup, OperationMetadata> + addAddressGroupItemsOperationSettings() { + return addAddressGroupItemsOperationSettings; + } + + /** Returns the builder for the settings used for calls to removeAddressGroupItems. */ + public UnaryCallSettings.Builder + removeAddressGroupItemsSettings() { + return removeAddressGroupItemsSettings; + } + + /** Returns the builder for the settings used for calls to removeAddressGroupItems. */ + public OperationCallSettings.Builder< + RemoveAddressGroupItemsRequest, AddressGroup, OperationMetadata> + removeAddressGroupItemsOperationSettings() { + return removeAddressGroupItemsOperationSettings; + } + + /** Returns the builder for the settings used for calls to cloneAddressGroupItems. */ + public UnaryCallSettings.Builder + cloneAddressGroupItemsSettings() { + return cloneAddressGroupItemsSettings; + } + + /** Returns the builder for the settings used for calls to cloneAddressGroupItems. */ + public OperationCallSettings.Builder< + CloneAddressGroupItemsRequest, AddressGroup, OperationMetadata> + cloneAddressGroupItemsOperationSettings() { + return cloneAddressGroupItemsOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteAddressGroup. */ + public UnaryCallSettings.Builder + deleteAddressGroupSettings() { + return deleteAddressGroupSettings; + } + + /** Returns the builder for the settings used for calls to deleteAddressGroup. */ + public OperationCallSettings.Builder + deleteAddressGroupOperationSettings() { + return deleteAddressGroupOperationSettings; + } + + /** Returns the builder for the settings used for calls to listAddressGroupReferences. */ + public PagedCallSettings.Builder< + ListAddressGroupReferencesRequest, + ListAddressGroupReferencesResponse, + ListAddressGroupReferencesPagedResponse> + listAddressGroupReferencesSettings() { + return listAddressGroupReferencesSettings; + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getLocationSettings; + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + @Override + public OrganizationAddressGroupServiceStubSettings build() throws IOException { + return new OrganizationAddressGroupServiceStubSettings(this); + } + } +} diff --git a/java-network-security/google-cloud-network-security/src/main/resources/META-INF/native-image/com.google.cloud.networksecurity.v1/reflect-config.json b/java-network-security/google-cloud-network-security/src/main/resources/META-INF/native-image/com.google.cloud.networksecurity.v1/reflect-config.json index 7d570271f351..2459ce1eb6ca 100644 --- a/java-network-security/google-cloud-network-security/src/main/resources/META-INF/native-image/com.google.cloud.networksecurity.v1/reflect-config.json +++ b/java-network-security/google-cloud-network-security/src/main/resources/META-INF/native-image/com.google.cloud.networksecurity.v1/reflect-config.json @@ -485,6 +485,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.AddressGroup", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.AddressGroup$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.AddressGroup$Purpose", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.AddressGroup$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networksecurity.v1.AuthorizationPolicy", "queryAllDeclaredConstructors": true, @@ -638,6 +692,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.CreateAddressGroupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.CreateAddressGroupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest", "queryAllDeclaredConstructors": true, @@ -692,6 +782,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest", "queryAllDeclaredConstructors": true, @@ -746,6 +854,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networksecurity.v1.GetAddressGroupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.GetAddressGroupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest", "queryAllDeclaredConstructors": true, @@ -818,6 +944,96 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse$AddressGroupReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse$AddressGroupReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListAddressGroupsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListAddressGroupsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListAddressGroupsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.ListAddressGroupsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest", "queryAllDeclaredConstructors": true, @@ -944,6 +1160,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networksecurity.v1.ServerTlsPolicy", "queryAllDeclaredConstructors": true, @@ -980,6 +1214,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest", "queryAllDeclaredConstructors": true, diff --git a/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/AddressGroupServiceClientTest.java b/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/AddressGroupServiceClientTest.java new file mode 100644 index 000000000000..4a6978218774 --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/AddressGroupServiceClientTest.java @@ -0,0 +1,1522 @@ +/* + * 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.networksecurity.v1; + +import static com.google.cloud.networksecurity.v1.AddressGroupServiceClient.ListAddressGroupReferencesPagedResponse; +import static com.google.cloud.networksecurity.v1.AddressGroupServiceClient.ListAddressGroupsPagedResponse; +import static com.google.cloud.networksecurity.v1.AddressGroupServiceClient.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.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.ByteString; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class AddressGroupServiceClientTest { + private static MockAddressGroupService mockAddressGroupService; + private static MockIAMPolicy mockIAMPolicy; + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private AddressGroupServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockAddressGroupService = new MockAddressGroupService(); + mockLocations = new MockLocations(); + mockIAMPolicy = new MockIAMPolicy(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockAddressGroupService, mockLocations, mockIAMPolicy)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + AddressGroupServiceSettings settings = + AddressGroupServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = AddressGroupServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void listAddressGroupsTest() throws Exception { + AddressGroup responsesElement = AddressGroup.newBuilder().build(); + ListAddressGroupsResponse expectedResponse = + ListAddressGroupsResponse.newBuilder() + .setNextPageToken("") + .addAllAddressGroups(Arrays.asList(responsesElement)) + .build(); + mockAddressGroupService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListAddressGroupsPagedResponse pagedListResponse = client.listAddressGroups(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAddressGroupsList().get(0), resources.get(0)); + + List actualRequests = mockAddressGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAddressGroupsRequest actualRequest = ((ListAddressGroupsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAddressGroupsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAddressGroupService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listAddressGroups(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAddressGroupsTest2() throws Exception { + AddressGroup responsesElement = AddressGroup.newBuilder().build(); + ListAddressGroupsResponse expectedResponse = + ListAddressGroupsResponse.newBuilder() + .setNextPageToken("") + .addAllAddressGroups(Arrays.asList(responsesElement)) + .build(); + mockAddressGroupService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListAddressGroupsPagedResponse pagedListResponse = client.listAddressGroups(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAddressGroupsList().get(0), resources.get(0)); + + List actualRequests = mockAddressGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAddressGroupsRequest actualRequest = ((ListAddressGroupsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAddressGroupsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAddressGroupService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listAddressGroups(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAddressGroupTest() throws Exception { + AddressGroup expectedResponse = + AddressGroup.newBuilder() + .setName( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllItems(new ArrayList()) + .setCapacity(-67824454) + .setSelfLink("selfLink1191800166") + .addAllPurpose(new ArrayList()) + .build(); + mockAddressGroupService.addResponse(expectedResponse); + + AddressGroupName name = + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]"); + + AddressGroup actualResponse = client.getAddressGroup(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAddressGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAddressGroupRequest actualRequest = ((GetAddressGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAddressGroupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAddressGroupService.addException(exception); + + try { + AddressGroupName name = + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]"); + client.getAddressGroup(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAddressGroupTest2() throws Exception { + AddressGroup expectedResponse = + AddressGroup.newBuilder() + .setName( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllItems(new ArrayList()) + .setCapacity(-67824454) + .setSelfLink("selfLink1191800166") + .addAllPurpose(new ArrayList()) + .build(); + mockAddressGroupService.addResponse(expectedResponse); + + String name = "name3373707"; + + AddressGroup actualResponse = client.getAddressGroup(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAddressGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAddressGroupRequest actualRequest = ((GetAddressGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAddressGroupExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAddressGroupService.addException(exception); + + try { + String name = "name3373707"; + client.getAddressGroup(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAddressGroupTest() throws Exception { + AddressGroup expectedResponse = + AddressGroup.newBuilder() + .setName( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllItems(new ArrayList()) + .setCapacity(-67824454) + .setSelfLink("selfLink1191800166") + .addAllPurpose(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAddressGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAddressGroupService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AddressGroup addressGroup = AddressGroup.newBuilder().build(); + String addressGroupId = "addressGroupId705215846"; + + AddressGroup actualResponse = + client.createAddressGroupAsync(parent, addressGroup, addressGroupId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAddressGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAddressGroupRequest actualRequest = ((CreateAddressGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(addressGroup, actualRequest.getAddressGroup()); + Assert.assertEquals(addressGroupId, actualRequest.getAddressGroupId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAddressGroupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAddressGroupService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AddressGroup addressGroup = AddressGroup.newBuilder().build(); + String addressGroupId = "addressGroupId705215846"; + client.createAddressGroupAsync(parent, addressGroup, addressGroupId).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 createAddressGroupTest2() throws Exception { + AddressGroup expectedResponse = + AddressGroup.newBuilder() + .setName( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllItems(new ArrayList()) + .setCapacity(-67824454) + .setSelfLink("selfLink1191800166") + .addAllPurpose(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAddressGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAddressGroupService.addResponse(resultOperation); + + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + AddressGroup addressGroup = AddressGroup.newBuilder().build(); + String addressGroupId = "addressGroupId705215846"; + + AddressGroup actualResponse = + client.createAddressGroupAsync(parent, addressGroup, addressGroupId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAddressGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAddressGroupRequest actualRequest = ((CreateAddressGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(addressGroup, actualRequest.getAddressGroup()); + Assert.assertEquals(addressGroupId, actualRequest.getAddressGroupId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAddressGroupExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAddressGroupService.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + AddressGroup addressGroup = AddressGroup.newBuilder().build(); + String addressGroupId = "addressGroupId705215846"; + client.createAddressGroupAsync(parent, addressGroup, addressGroupId).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 createAddressGroupTest3() throws Exception { + AddressGroup expectedResponse = + AddressGroup.newBuilder() + .setName( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllItems(new ArrayList()) + .setCapacity(-67824454) + .setSelfLink("selfLink1191800166") + .addAllPurpose(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAddressGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAddressGroupService.addResponse(resultOperation); + + String parent = "parent-995424086"; + AddressGroup addressGroup = AddressGroup.newBuilder().build(); + String addressGroupId = "addressGroupId705215846"; + + AddressGroup actualResponse = + client.createAddressGroupAsync(parent, addressGroup, addressGroupId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAddressGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAddressGroupRequest actualRequest = ((CreateAddressGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(addressGroup, actualRequest.getAddressGroup()); + Assert.assertEquals(addressGroupId, actualRequest.getAddressGroupId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAddressGroupExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAddressGroupService.addException(exception); + + try { + String parent = "parent-995424086"; + AddressGroup addressGroup = AddressGroup.newBuilder().build(); + String addressGroupId = "addressGroupId705215846"; + client.createAddressGroupAsync(parent, addressGroup, addressGroupId).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 updateAddressGroupTest() throws Exception { + AddressGroup expectedResponse = + AddressGroup.newBuilder() + .setName( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllItems(new ArrayList()) + .setCapacity(-67824454) + .setSelfLink("selfLink1191800166") + .addAllPurpose(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateAddressGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAddressGroupService.addResponse(resultOperation); + + AddressGroup addressGroup = AddressGroup.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + AddressGroup actualResponse = client.updateAddressGroupAsync(addressGroup, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAddressGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateAddressGroupRequest actualRequest = ((UpdateAddressGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(addressGroup, actualRequest.getAddressGroup()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateAddressGroupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAddressGroupService.addException(exception); + + try { + AddressGroup addressGroup = AddressGroup.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateAddressGroupAsync(addressGroup, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void addAddressGroupItemsTest() throws Exception { + AddressGroup expectedResponse = + AddressGroup.newBuilder() + .setName( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllItems(new ArrayList()) + .setCapacity(-67824454) + .setSelfLink("selfLink1191800166") + .addAllPurpose(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("addAddressGroupItemsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAddressGroupService.addResponse(resultOperation); + + AddressGroupName addressGroup = + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]"); + List items = new ArrayList<>(); + + AddressGroup actualResponse = client.addAddressGroupItemsAsync(addressGroup, items).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAddressGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + AddAddressGroupItemsRequest actualRequest = + ((AddAddressGroupItemsRequest) actualRequests.get(0)); + + Assert.assertEquals(addressGroup.toString(), actualRequest.getAddressGroup()); + Assert.assertEquals(items, actualRequest.getItemsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void addAddressGroupItemsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAddressGroupService.addException(exception); + + try { + AddressGroupName addressGroup = + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]"); + List items = new ArrayList<>(); + client.addAddressGroupItemsAsync(addressGroup, items).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 addAddressGroupItemsTest2() throws Exception { + AddressGroup expectedResponse = + AddressGroup.newBuilder() + .setName( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllItems(new ArrayList()) + .setCapacity(-67824454) + .setSelfLink("selfLink1191800166") + .addAllPurpose(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("addAddressGroupItemsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAddressGroupService.addResponse(resultOperation); + + String addressGroup = "addressGroup242074347"; + List items = new ArrayList<>(); + + AddressGroup actualResponse = client.addAddressGroupItemsAsync(addressGroup, items).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAddressGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + AddAddressGroupItemsRequest actualRequest = + ((AddAddressGroupItemsRequest) actualRequests.get(0)); + + Assert.assertEquals(addressGroup, actualRequest.getAddressGroup()); + Assert.assertEquals(items, actualRequest.getItemsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void addAddressGroupItemsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAddressGroupService.addException(exception); + + try { + String addressGroup = "addressGroup242074347"; + List items = new ArrayList<>(); + client.addAddressGroupItemsAsync(addressGroup, items).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 removeAddressGroupItemsTest() throws Exception { + AddressGroup expectedResponse = + AddressGroup.newBuilder() + .setName( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllItems(new ArrayList()) + .setCapacity(-67824454) + .setSelfLink("selfLink1191800166") + .addAllPurpose(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("removeAddressGroupItemsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAddressGroupService.addResponse(resultOperation); + + AddressGroupName addressGroup = + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]"); + List items = new ArrayList<>(); + + AddressGroup actualResponse = client.removeAddressGroupItemsAsync(addressGroup, items).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAddressGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RemoveAddressGroupItemsRequest actualRequest = + ((RemoveAddressGroupItemsRequest) actualRequests.get(0)); + + Assert.assertEquals(addressGroup.toString(), actualRequest.getAddressGroup()); + Assert.assertEquals(items, actualRequest.getItemsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void removeAddressGroupItemsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAddressGroupService.addException(exception); + + try { + AddressGroupName addressGroup = + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]"); + List items = new ArrayList<>(); + client.removeAddressGroupItemsAsync(addressGroup, items).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 removeAddressGroupItemsTest2() throws Exception { + AddressGroup expectedResponse = + AddressGroup.newBuilder() + .setName( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllItems(new ArrayList()) + .setCapacity(-67824454) + .setSelfLink("selfLink1191800166") + .addAllPurpose(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("removeAddressGroupItemsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAddressGroupService.addResponse(resultOperation); + + String addressGroup = "addressGroup242074347"; + List items = new ArrayList<>(); + + AddressGroup actualResponse = client.removeAddressGroupItemsAsync(addressGroup, items).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAddressGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RemoveAddressGroupItemsRequest actualRequest = + ((RemoveAddressGroupItemsRequest) actualRequests.get(0)); + + Assert.assertEquals(addressGroup, actualRequest.getAddressGroup()); + Assert.assertEquals(items, actualRequest.getItemsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void removeAddressGroupItemsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAddressGroupService.addException(exception); + + try { + String addressGroup = "addressGroup242074347"; + List items = new ArrayList<>(); + client.removeAddressGroupItemsAsync(addressGroup, items).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 cloneAddressGroupItemsTest() throws Exception { + AddressGroup expectedResponse = + AddressGroup.newBuilder() + .setName( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllItems(new ArrayList()) + .setCapacity(-67824454) + .setSelfLink("selfLink1191800166") + .addAllPurpose(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("cloneAddressGroupItemsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAddressGroupService.addResponse(resultOperation); + + AddressGroupName addressGroup = + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]"); + AddressGroupName sourceAddressGroup = + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]"); + + AddressGroup actualResponse = + client.cloneAddressGroupItemsAsync(addressGroup, sourceAddressGroup).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAddressGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CloneAddressGroupItemsRequest actualRequest = + ((CloneAddressGroupItemsRequest) actualRequests.get(0)); + + Assert.assertEquals(addressGroup.toString(), actualRequest.getAddressGroup()); + Assert.assertEquals(sourceAddressGroup.toString(), actualRequest.getSourceAddressGroup()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void cloneAddressGroupItemsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAddressGroupService.addException(exception); + + try { + AddressGroupName addressGroup = + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]"); + AddressGroupName sourceAddressGroup = + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]"); + client.cloneAddressGroupItemsAsync(addressGroup, sourceAddressGroup).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 cloneAddressGroupItemsTest2() throws Exception { + AddressGroup expectedResponse = + AddressGroup.newBuilder() + .setName( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllItems(new ArrayList()) + .setCapacity(-67824454) + .setSelfLink("selfLink1191800166") + .addAllPurpose(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("cloneAddressGroupItemsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAddressGroupService.addResponse(resultOperation); + + AddressGroupName addressGroup = + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]"); + String sourceAddressGroup = "sourceAddressGroup-314626394"; + + AddressGroup actualResponse = + client.cloneAddressGroupItemsAsync(addressGroup, sourceAddressGroup).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAddressGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CloneAddressGroupItemsRequest actualRequest = + ((CloneAddressGroupItemsRequest) actualRequests.get(0)); + + Assert.assertEquals(addressGroup.toString(), actualRequest.getAddressGroup()); + Assert.assertEquals(sourceAddressGroup, actualRequest.getSourceAddressGroup()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void cloneAddressGroupItemsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAddressGroupService.addException(exception); + + try { + AddressGroupName addressGroup = + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]"); + String sourceAddressGroup = "sourceAddressGroup-314626394"; + client.cloneAddressGroupItemsAsync(addressGroup, sourceAddressGroup).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 cloneAddressGroupItemsTest3() throws Exception { + AddressGroup expectedResponse = + AddressGroup.newBuilder() + .setName( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllItems(new ArrayList()) + .setCapacity(-67824454) + .setSelfLink("selfLink1191800166") + .addAllPurpose(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("cloneAddressGroupItemsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAddressGroupService.addResponse(resultOperation); + + String addressGroup = "addressGroup242074347"; + AddressGroupName sourceAddressGroup = + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]"); + + AddressGroup actualResponse = + client.cloneAddressGroupItemsAsync(addressGroup, sourceAddressGroup).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAddressGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CloneAddressGroupItemsRequest actualRequest = + ((CloneAddressGroupItemsRequest) actualRequests.get(0)); + + Assert.assertEquals(addressGroup, actualRequest.getAddressGroup()); + Assert.assertEquals(sourceAddressGroup.toString(), actualRequest.getSourceAddressGroup()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void cloneAddressGroupItemsExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAddressGroupService.addException(exception); + + try { + String addressGroup = "addressGroup242074347"; + AddressGroupName sourceAddressGroup = + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]"); + client.cloneAddressGroupItemsAsync(addressGroup, sourceAddressGroup).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 cloneAddressGroupItemsTest4() throws Exception { + AddressGroup expectedResponse = + AddressGroup.newBuilder() + .setName( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllItems(new ArrayList()) + .setCapacity(-67824454) + .setSelfLink("selfLink1191800166") + .addAllPurpose(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("cloneAddressGroupItemsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAddressGroupService.addResponse(resultOperation); + + String addressGroup = "addressGroup242074347"; + String sourceAddressGroup = "sourceAddressGroup-314626394"; + + AddressGroup actualResponse = + client.cloneAddressGroupItemsAsync(addressGroup, sourceAddressGroup).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAddressGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CloneAddressGroupItemsRequest actualRequest = + ((CloneAddressGroupItemsRequest) actualRequests.get(0)); + + Assert.assertEquals(addressGroup, actualRequest.getAddressGroup()); + Assert.assertEquals(sourceAddressGroup, actualRequest.getSourceAddressGroup()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void cloneAddressGroupItemsExceptionTest4() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAddressGroupService.addException(exception); + + try { + String addressGroup = "addressGroup242074347"; + String sourceAddressGroup = "sourceAddressGroup-314626394"; + client.cloneAddressGroupItemsAsync(addressGroup, sourceAddressGroup).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 deleteAddressGroupTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteAddressGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAddressGroupService.addResponse(resultOperation); + + AddressGroupName name = + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]"); + + client.deleteAddressGroupAsync(name).get(); + + List actualRequests = mockAddressGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteAddressGroupRequest actualRequest = ((DeleteAddressGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteAddressGroupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAddressGroupService.addException(exception); + + try { + AddressGroupName name = + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]"); + client.deleteAddressGroupAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteAddressGroupTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteAddressGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAddressGroupService.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteAddressGroupAsync(name).get(); + + List actualRequests = mockAddressGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteAddressGroupRequest actualRequest = ((DeleteAddressGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteAddressGroupExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAddressGroupService.addException(exception); + + try { + String name = "name3373707"; + client.deleteAddressGroupAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listAddressGroupReferencesTest() throws Exception { + ListAddressGroupReferencesResponse.AddressGroupReference responsesElement = + ListAddressGroupReferencesResponse.AddressGroupReference.newBuilder().build(); + ListAddressGroupReferencesResponse expectedResponse = + ListAddressGroupReferencesResponse.newBuilder() + .setNextPageToken("") + .addAllAddressGroupReferences(Arrays.asList(responsesElement)) + .build(); + mockAddressGroupService.addResponse(expectedResponse); + + AddressGroupName addressGroup = + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]"); + + ListAddressGroupReferencesPagedResponse pagedListResponse = + client.listAddressGroupReferences(addressGroup); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAddressGroupReferencesList().get(0), resources.get(0)); + + List actualRequests = mockAddressGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAddressGroupReferencesRequest actualRequest = + ((ListAddressGroupReferencesRequest) actualRequests.get(0)); + + Assert.assertEquals(addressGroup.toString(), actualRequest.getAddressGroup()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAddressGroupReferencesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAddressGroupService.addException(exception); + + try { + AddressGroupName addressGroup = + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]"); + client.listAddressGroupReferences(addressGroup); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAddressGroupReferencesTest2() throws Exception { + ListAddressGroupReferencesResponse.AddressGroupReference responsesElement = + ListAddressGroupReferencesResponse.AddressGroupReference.newBuilder().build(); + ListAddressGroupReferencesResponse expectedResponse = + ListAddressGroupReferencesResponse.newBuilder() + .setNextPageToken("") + .addAllAddressGroupReferences(Arrays.asList(responsesElement)) + .build(); + mockAddressGroupService.addResponse(expectedResponse); + + String addressGroup = "addressGroup242074347"; + + ListAddressGroupReferencesPagedResponse pagedListResponse = + client.listAddressGroupReferences(addressGroup); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAddressGroupReferencesList().get(0), resources.get(0)); + + List actualRequests = mockAddressGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAddressGroupReferencesRequest actualRequest = + ((ListAddressGroupReferencesRequest) actualRequests.get(0)); + + Assert.assertEquals(addressGroup, actualRequest.getAddressGroup()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAddressGroupReferencesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAddressGroupService.addException(exception); + + try { + String addressGroup = "addressGroup242074347"; + client.listAddressGroupReferences(addressGroup); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockLocations.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockLocations.addResponse(expectedResponse); + + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLocationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockIAMPolicy.addResponse(expectedResponse); + + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + + Policy actualResponse = client.setIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy()); + Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + client.setIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockIAMPolicy.addResponse(expectedResponse); + + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + + Policy actualResponse = client.getIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getOptions(), actualRequest.getOptions()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + client.getIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockIAMPolicy.addResponse(expectedResponse); + + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void testIamPermissionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + client.testIamPermissions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-vmmigration/google-cloud-vmmigration/src/test/java/com/google/cloud/vmmigration/v1/MockIAMPolicy.java b/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockAddressGroupService.java similarity index 84% rename from java-vmmigration/google-cloud-vmmigration/src/test/java/com/google/cloud/vmmigration/v1/MockIAMPolicy.java rename to java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockAddressGroupService.java index 792f02f8b612..c477beebe756 100644 --- a/java-vmmigration/google-cloud-vmmigration/src/test/java/com/google/cloud/vmmigration/v1/MockIAMPolicy.java +++ b/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockAddressGroupService.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.google.cloud.vmmigration.v1; +package com.google.cloud.networksecurity.v1; import com.google.api.core.BetaApi; import com.google.api.gax.grpc.testing.MockGrpcService; @@ -25,11 +25,11 @@ @BetaApi @Generated("by gapic-generator-java") -public class MockIAMPolicy implements MockGrpcService { - private final MockIAMPolicyImpl serviceImpl; +public class MockAddressGroupService implements MockGrpcService { + private final MockAddressGroupServiceImpl serviceImpl; - public MockIAMPolicy() { - serviceImpl = new MockIAMPolicyImpl(); + public MockAddressGroupService() { + serviceImpl = new MockAddressGroupServiceImpl(); } @Override diff --git a/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockAddressGroupServiceImpl.java b/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockAddressGroupServiceImpl.java new file mode 100644 index 000000000000..ff0b08be1790 --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockAddressGroupServiceImpl.java @@ -0,0 +1,256 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networksecurity.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.networksecurity.v1.AddressGroupServiceGrpc.AddressGroupServiceImplBase; +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 MockAddressGroupServiceImpl extends AddressGroupServiceImplBase { + private List requests; + private Queue responses; + + public MockAddressGroupServiceImpl() { + 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 listAddressGroups( + ListAddressGroupsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListAddressGroupsResponse) { + requests.add(request); + responseObserver.onNext(((ListAddressGroupsResponse) 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 ListAddressGroups, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListAddressGroupsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getAddressGroup( + GetAddressGroupRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AddressGroup) { + requests.add(request); + responseObserver.onNext(((AddressGroup) 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 GetAddressGroup, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AddressGroup.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createAddressGroup( + CreateAddressGroupRequest 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 CreateAddressGroup, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateAddressGroup( + UpdateAddressGroupRequest 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 UpdateAddressGroup, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void addAddressGroupItems( + AddAddressGroupItemsRequest 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 AddAddressGroupItems, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void removeAddressGroupItems( + RemoveAddressGroupItemsRequest 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 RemoveAddressGroupItems, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void cloneAddressGroupItems( + CloneAddressGroupItemsRequest 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 CloneAddressGroupItems, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteAddressGroup( + DeleteAddressGroupRequest 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 DeleteAddressGroup, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listAddressGroupReferences( + ListAddressGroupReferencesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListAddressGroupReferencesResponse) { + requests.add(request); + responseObserver.onNext(((ListAddressGroupReferencesResponse) 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 ListAddressGroupReferences, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + ListAddressGroupReferencesResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockOrganizationAddressGroupService.java b/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockOrganizationAddressGroupService.java new file mode 100644 index 000000000000..2b45441f7797 --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockOrganizationAddressGroupService.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.networksecurity.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 MockOrganizationAddressGroupService implements MockGrpcService { + private final MockOrganizationAddressGroupServiceImpl serviceImpl; + + public MockOrganizationAddressGroupService() { + serviceImpl = new MockOrganizationAddressGroupServiceImpl(); + } + + @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-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockOrganizationAddressGroupServiceImpl.java b/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockOrganizationAddressGroupServiceImpl.java new file mode 100644 index 000000000000..bd3ddb1113d4 --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/MockOrganizationAddressGroupServiceImpl.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.networksecurity.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceGrpc.OrganizationAddressGroupServiceImplBase; +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 MockOrganizationAddressGroupServiceImpl + extends OrganizationAddressGroupServiceImplBase { + private List requests; + private Queue responses; + + public MockOrganizationAddressGroupServiceImpl() { + 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 listAddressGroups( + ListAddressGroupsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListAddressGroupsResponse) { + requests.add(request); + responseObserver.onNext(((ListAddressGroupsResponse) 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 ListAddressGroups, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListAddressGroupsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getAddressGroup( + GetAddressGroupRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AddressGroup) { + requests.add(request); + responseObserver.onNext(((AddressGroup) 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 GetAddressGroup, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AddressGroup.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createAddressGroup( + CreateAddressGroupRequest 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 CreateAddressGroup, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateAddressGroup( + UpdateAddressGroupRequest 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 UpdateAddressGroup, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void addAddressGroupItems( + AddAddressGroupItemsRequest 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 AddAddressGroupItems, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void removeAddressGroupItems( + RemoveAddressGroupItemsRequest 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 RemoveAddressGroupItems, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void cloneAddressGroupItems( + CloneAddressGroupItemsRequest 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 CloneAddressGroupItems, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteAddressGroup( + DeleteAddressGroupRequest 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 DeleteAddressGroup, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listAddressGroupReferences( + ListAddressGroupReferencesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListAddressGroupReferencesResponse) { + requests.add(request); + responseObserver.onNext(((ListAddressGroupReferencesResponse) 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 ListAddressGroupReferences, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + ListAddressGroupReferencesResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/NetworkSecurityClientTest.java b/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/NetworkSecurityClientTest.java index f67833de27ac..abf440918057 100644 --- a/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/NetworkSecurityClientTest.java +++ b/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/NetworkSecurityClientTest.java @@ -1595,7 +1595,8 @@ public void setIamPolicyTest() throws Exception { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() .setResource( - AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") .toString()) .setPolicy(Policy.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) @@ -1626,7 +1627,8 @@ public void setIamPolicyExceptionTest() throws Exception { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() .setResource( - AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") .toString()) .setPolicy(Policy.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) @@ -1652,7 +1654,8 @@ public void getIamPolicyTest() throws Exception { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() .setResource( - AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") .toString()) .setOptions(GetPolicyOptions.newBuilder().build()) .build(); @@ -1681,7 +1684,8 @@ public void getIamPolicyExceptionTest() throws Exception { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() .setResource( - AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") .toString()) .setOptions(GetPolicyOptions.newBuilder().build()) .build(); @@ -1701,7 +1705,8 @@ public void testIamPermissionsTest() throws Exception { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() .setResource( - AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") .toString()) .addAllPermissions(new ArrayList()) .build(); @@ -1730,7 +1735,8 @@ public void testIamPermissionsExceptionTest() throws Exception { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() .setResource( - AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") .toString()) .addAllPermissions(new ArrayList()) .build(); diff --git a/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/OrganizationAddressGroupServiceClientTest.java b/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/OrganizationAddressGroupServiceClientTest.java new file mode 100644 index 000000000000..1fe49e0b638b --- /dev/null +++ b/java-network-security/google-cloud-network-security/src/test/java/com/google/cloud/networksecurity/v1/OrganizationAddressGroupServiceClientTest.java @@ -0,0 +1,1523 @@ +/* + * 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.networksecurity.v1; + +import static com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient.ListAddressGroupReferencesPagedResponse; +import static com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient.ListAddressGroupsPagedResponse; +import static com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient.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.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.ByteString; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class OrganizationAddressGroupServiceClientTest { + private static MockIAMPolicy mockIAMPolicy; + private static MockLocations mockLocations; + private static MockOrganizationAddressGroupService mockOrganizationAddressGroupService; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private OrganizationAddressGroupServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockOrganizationAddressGroupService = new MockOrganizationAddressGroupService(); + mockLocations = new MockLocations(); + mockIAMPolicy = new MockIAMPolicy(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList( + mockOrganizationAddressGroupService, mockLocations, mockIAMPolicy)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + OrganizationAddressGroupServiceSettings settings = + OrganizationAddressGroupServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = OrganizationAddressGroupServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void listAddressGroupsTest() throws Exception { + AddressGroup responsesElement = AddressGroup.newBuilder().build(); + ListAddressGroupsResponse expectedResponse = + ListAddressGroupsResponse.newBuilder() + .setNextPageToken("") + .addAllAddressGroups(Arrays.asList(responsesElement)) + .build(); + mockOrganizationAddressGroupService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListAddressGroupsPagedResponse pagedListResponse = client.listAddressGroups(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAddressGroupsList().get(0), resources.get(0)); + + List actualRequests = mockOrganizationAddressGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAddressGroupsRequest actualRequest = ((ListAddressGroupsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAddressGroupsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationAddressGroupService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listAddressGroups(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAddressGroupsTest2() throws Exception { + AddressGroup responsesElement = AddressGroup.newBuilder().build(); + ListAddressGroupsResponse expectedResponse = + ListAddressGroupsResponse.newBuilder() + .setNextPageToken("") + .addAllAddressGroups(Arrays.asList(responsesElement)) + .build(); + mockOrganizationAddressGroupService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListAddressGroupsPagedResponse pagedListResponse = client.listAddressGroups(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAddressGroupsList().get(0), resources.get(0)); + + List actualRequests = mockOrganizationAddressGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAddressGroupsRequest actualRequest = ((ListAddressGroupsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAddressGroupsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationAddressGroupService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listAddressGroups(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAddressGroupTest() throws Exception { + AddressGroup expectedResponse = + AddressGroup.newBuilder() + .setName( + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllItems(new ArrayList()) + .setCapacity(-67824454) + .setSelfLink("selfLink1191800166") + .addAllPurpose(new ArrayList()) + .build(); + mockOrganizationAddressGroupService.addResponse(expectedResponse); + + AddressGroupName name = + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]"); + + AddressGroup actualResponse = client.getAddressGroup(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOrganizationAddressGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAddressGroupRequest actualRequest = ((GetAddressGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAddressGroupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationAddressGroupService.addException(exception); + + try { + AddressGroupName name = + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]"); + client.getAddressGroup(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAddressGroupTest2() throws Exception { + AddressGroup expectedResponse = + AddressGroup.newBuilder() + .setName( + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllItems(new ArrayList()) + .setCapacity(-67824454) + .setSelfLink("selfLink1191800166") + .addAllPurpose(new ArrayList()) + .build(); + mockOrganizationAddressGroupService.addResponse(expectedResponse); + + String name = "name3373707"; + + AddressGroup actualResponse = client.getAddressGroup(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOrganizationAddressGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAddressGroupRequest actualRequest = ((GetAddressGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAddressGroupExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationAddressGroupService.addException(exception); + + try { + String name = "name3373707"; + client.getAddressGroup(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAddressGroupTest() throws Exception { + AddressGroup expectedResponse = + AddressGroup.newBuilder() + .setName( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllItems(new ArrayList()) + .setCapacity(-67824454) + .setSelfLink("selfLink1191800166") + .addAllPurpose(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAddressGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOrganizationAddressGroupService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AddressGroup addressGroup = AddressGroup.newBuilder().build(); + String addressGroupId = "addressGroupId705215846"; + + AddressGroup actualResponse = + client.createAddressGroupAsync(parent, addressGroup, addressGroupId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOrganizationAddressGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAddressGroupRequest actualRequest = ((CreateAddressGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(addressGroup, actualRequest.getAddressGroup()); + Assert.assertEquals(addressGroupId, actualRequest.getAddressGroupId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAddressGroupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationAddressGroupService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AddressGroup addressGroup = AddressGroup.newBuilder().build(); + String addressGroupId = "addressGroupId705215846"; + client.createAddressGroupAsync(parent, addressGroup, addressGroupId).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 createAddressGroupTest2() throws Exception { + AddressGroup expectedResponse = + AddressGroup.newBuilder() + .setName( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllItems(new ArrayList()) + .setCapacity(-67824454) + .setSelfLink("selfLink1191800166") + .addAllPurpose(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAddressGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOrganizationAddressGroupService.addResponse(resultOperation); + + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + AddressGroup addressGroup = AddressGroup.newBuilder().build(); + String addressGroupId = "addressGroupId705215846"; + + AddressGroup actualResponse = + client.createAddressGroupAsync(parent, addressGroup, addressGroupId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOrganizationAddressGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAddressGroupRequest actualRequest = ((CreateAddressGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(addressGroup, actualRequest.getAddressGroup()); + Assert.assertEquals(addressGroupId, actualRequest.getAddressGroupId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAddressGroupExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationAddressGroupService.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + AddressGroup addressGroup = AddressGroup.newBuilder().build(); + String addressGroupId = "addressGroupId705215846"; + client.createAddressGroupAsync(parent, addressGroup, addressGroupId).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 createAddressGroupTest3() throws Exception { + AddressGroup expectedResponse = + AddressGroup.newBuilder() + .setName( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllItems(new ArrayList()) + .setCapacity(-67824454) + .setSelfLink("selfLink1191800166") + .addAllPurpose(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAddressGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOrganizationAddressGroupService.addResponse(resultOperation); + + String parent = "parent-995424086"; + AddressGroup addressGroup = AddressGroup.newBuilder().build(); + String addressGroupId = "addressGroupId705215846"; + + AddressGroup actualResponse = + client.createAddressGroupAsync(parent, addressGroup, addressGroupId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOrganizationAddressGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAddressGroupRequest actualRequest = ((CreateAddressGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(addressGroup, actualRequest.getAddressGroup()); + Assert.assertEquals(addressGroupId, actualRequest.getAddressGroupId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAddressGroupExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationAddressGroupService.addException(exception); + + try { + String parent = "parent-995424086"; + AddressGroup addressGroup = AddressGroup.newBuilder().build(); + String addressGroupId = "addressGroupId705215846"; + client.createAddressGroupAsync(parent, addressGroup, addressGroupId).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 updateAddressGroupTest() throws Exception { + AddressGroup expectedResponse = + AddressGroup.newBuilder() + .setName( + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllItems(new ArrayList()) + .setCapacity(-67824454) + .setSelfLink("selfLink1191800166") + .addAllPurpose(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateAddressGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOrganizationAddressGroupService.addResponse(resultOperation); + + AddressGroup addressGroup = AddressGroup.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + AddressGroup actualResponse = client.updateAddressGroupAsync(addressGroup, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOrganizationAddressGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateAddressGroupRequest actualRequest = ((UpdateAddressGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(addressGroup, actualRequest.getAddressGroup()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateAddressGroupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationAddressGroupService.addException(exception); + + try { + AddressGroup addressGroup = AddressGroup.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateAddressGroupAsync(addressGroup, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void addAddressGroupItemsTest() throws Exception { + AddressGroup expectedResponse = + AddressGroup.newBuilder() + .setName( + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllItems(new ArrayList()) + .setCapacity(-67824454) + .setSelfLink("selfLink1191800166") + .addAllPurpose(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("addAddressGroupItemsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOrganizationAddressGroupService.addResponse(resultOperation); + + AddressGroupName addressGroup = + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]"); + List items = new ArrayList<>(); + + AddressGroup actualResponse = client.addAddressGroupItemsAsync(addressGroup, items).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOrganizationAddressGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + AddAddressGroupItemsRequest actualRequest = + ((AddAddressGroupItemsRequest) actualRequests.get(0)); + + Assert.assertEquals(addressGroup.toString(), actualRequest.getAddressGroup()); + Assert.assertEquals(items, actualRequest.getItemsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void addAddressGroupItemsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationAddressGroupService.addException(exception); + + try { + AddressGroupName addressGroup = + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]"); + List items = new ArrayList<>(); + client.addAddressGroupItemsAsync(addressGroup, items).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 addAddressGroupItemsTest2() throws Exception { + AddressGroup expectedResponse = + AddressGroup.newBuilder() + .setName( + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllItems(new ArrayList()) + .setCapacity(-67824454) + .setSelfLink("selfLink1191800166") + .addAllPurpose(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("addAddressGroupItemsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOrganizationAddressGroupService.addResponse(resultOperation); + + String addressGroup = "addressGroup242074347"; + List items = new ArrayList<>(); + + AddressGroup actualResponse = client.addAddressGroupItemsAsync(addressGroup, items).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOrganizationAddressGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + AddAddressGroupItemsRequest actualRequest = + ((AddAddressGroupItemsRequest) actualRequests.get(0)); + + Assert.assertEquals(addressGroup, actualRequest.getAddressGroup()); + Assert.assertEquals(items, actualRequest.getItemsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void addAddressGroupItemsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationAddressGroupService.addException(exception); + + try { + String addressGroup = "addressGroup242074347"; + List items = new ArrayList<>(); + client.addAddressGroupItemsAsync(addressGroup, items).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 removeAddressGroupItemsTest() throws Exception { + AddressGroup expectedResponse = + AddressGroup.newBuilder() + .setName( + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllItems(new ArrayList()) + .setCapacity(-67824454) + .setSelfLink("selfLink1191800166") + .addAllPurpose(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("removeAddressGroupItemsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOrganizationAddressGroupService.addResponse(resultOperation); + + AddressGroupName addressGroup = + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]"); + List items = new ArrayList<>(); + + AddressGroup actualResponse = client.removeAddressGroupItemsAsync(addressGroup, items).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOrganizationAddressGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RemoveAddressGroupItemsRequest actualRequest = + ((RemoveAddressGroupItemsRequest) actualRequests.get(0)); + + Assert.assertEquals(addressGroup.toString(), actualRequest.getAddressGroup()); + Assert.assertEquals(items, actualRequest.getItemsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void removeAddressGroupItemsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationAddressGroupService.addException(exception); + + try { + AddressGroupName addressGroup = + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]"); + List items = new ArrayList<>(); + client.removeAddressGroupItemsAsync(addressGroup, items).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 removeAddressGroupItemsTest2() throws Exception { + AddressGroup expectedResponse = + AddressGroup.newBuilder() + .setName( + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllItems(new ArrayList()) + .setCapacity(-67824454) + .setSelfLink("selfLink1191800166") + .addAllPurpose(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("removeAddressGroupItemsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOrganizationAddressGroupService.addResponse(resultOperation); + + String addressGroup = "addressGroup242074347"; + List items = new ArrayList<>(); + + AddressGroup actualResponse = client.removeAddressGroupItemsAsync(addressGroup, items).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOrganizationAddressGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RemoveAddressGroupItemsRequest actualRequest = + ((RemoveAddressGroupItemsRequest) actualRequests.get(0)); + + Assert.assertEquals(addressGroup, actualRequest.getAddressGroup()); + Assert.assertEquals(items, actualRequest.getItemsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void removeAddressGroupItemsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationAddressGroupService.addException(exception); + + try { + String addressGroup = "addressGroup242074347"; + List items = new ArrayList<>(); + client.removeAddressGroupItemsAsync(addressGroup, items).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 cloneAddressGroupItemsTest() throws Exception { + AddressGroup expectedResponse = + AddressGroup.newBuilder() + .setName( + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllItems(new ArrayList()) + .setCapacity(-67824454) + .setSelfLink("selfLink1191800166") + .addAllPurpose(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("cloneAddressGroupItemsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOrganizationAddressGroupService.addResponse(resultOperation); + + AddressGroupName addressGroup = + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]"); + AddressGroupName sourceAddressGroup = + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]"); + + AddressGroup actualResponse = + client.cloneAddressGroupItemsAsync(addressGroup, sourceAddressGroup).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOrganizationAddressGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CloneAddressGroupItemsRequest actualRequest = + ((CloneAddressGroupItemsRequest) actualRequests.get(0)); + + Assert.assertEquals(addressGroup.toString(), actualRequest.getAddressGroup()); + Assert.assertEquals(sourceAddressGroup.toString(), actualRequest.getSourceAddressGroup()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void cloneAddressGroupItemsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationAddressGroupService.addException(exception); + + try { + AddressGroupName addressGroup = + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]"); + AddressGroupName sourceAddressGroup = + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]"); + client.cloneAddressGroupItemsAsync(addressGroup, sourceAddressGroup).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 cloneAddressGroupItemsTest2() throws Exception { + AddressGroup expectedResponse = + AddressGroup.newBuilder() + .setName( + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllItems(new ArrayList()) + .setCapacity(-67824454) + .setSelfLink("selfLink1191800166") + .addAllPurpose(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("cloneAddressGroupItemsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOrganizationAddressGroupService.addResponse(resultOperation); + + AddressGroupName addressGroup = + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]"); + String sourceAddressGroup = "sourceAddressGroup-314626394"; + + AddressGroup actualResponse = + client.cloneAddressGroupItemsAsync(addressGroup, sourceAddressGroup).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOrganizationAddressGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CloneAddressGroupItemsRequest actualRequest = + ((CloneAddressGroupItemsRequest) actualRequests.get(0)); + + Assert.assertEquals(addressGroup.toString(), actualRequest.getAddressGroup()); + Assert.assertEquals(sourceAddressGroup, actualRequest.getSourceAddressGroup()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void cloneAddressGroupItemsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationAddressGroupService.addException(exception); + + try { + AddressGroupName addressGroup = + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]"); + String sourceAddressGroup = "sourceAddressGroup-314626394"; + client.cloneAddressGroupItemsAsync(addressGroup, sourceAddressGroup).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 cloneAddressGroupItemsTest3() throws Exception { + AddressGroup expectedResponse = + AddressGroup.newBuilder() + .setName( + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllItems(new ArrayList()) + .setCapacity(-67824454) + .setSelfLink("selfLink1191800166") + .addAllPurpose(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("cloneAddressGroupItemsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOrganizationAddressGroupService.addResponse(resultOperation); + + String addressGroup = "addressGroup242074347"; + AddressGroupName sourceAddressGroup = + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]"); + + AddressGroup actualResponse = + client.cloneAddressGroupItemsAsync(addressGroup, sourceAddressGroup).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOrganizationAddressGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CloneAddressGroupItemsRequest actualRequest = + ((CloneAddressGroupItemsRequest) actualRequests.get(0)); + + Assert.assertEquals(addressGroup, actualRequest.getAddressGroup()); + Assert.assertEquals(sourceAddressGroup.toString(), actualRequest.getSourceAddressGroup()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void cloneAddressGroupItemsExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationAddressGroupService.addException(exception); + + try { + String addressGroup = "addressGroup242074347"; + AddressGroupName sourceAddressGroup = + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]"); + client.cloneAddressGroupItemsAsync(addressGroup, sourceAddressGroup).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 cloneAddressGroupItemsTest4() throws Exception { + AddressGroup expectedResponse = + AddressGroup.newBuilder() + .setName( + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllItems(new ArrayList()) + .setCapacity(-67824454) + .setSelfLink("selfLink1191800166") + .addAllPurpose(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("cloneAddressGroupItemsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOrganizationAddressGroupService.addResponse(resultOperation); + + String addressGroup = "addressGroup242074347"; + String sourceAddressGroup = "sourceAddressGroup-314626394"; + + AddressGroup actualResponse = + client.cloneAddressGroupItemsAsync(addressGroup, sourceAddressGroup).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOrganizationAddressGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CloneAddressGroupItemsRequest actualRequest = + ((CloneAddressGroupItemsRequest) actualRequests.get(0)); + + Assert.assertEquals(addressGroup, actualRequest.getAddressGroup()); + Assert.assertEquals(sourceAddressGroup, actualRequest.getSourceAddressGroup()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void cloneAddressGroupItemsExceptionTest4() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationAddressGroupService.addException(exception); + + try { + String addressGroup = "addressGroup242074347"; + String sourceAddressGroup = "sourceAddressGroup-314626394"; + client.cloneAddressGroupItemsAsync(addressGroup, sourceAddressGroup).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 deleteAddressGroupTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteAddressGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOrganizationAddressGroupService.addResponse(resultOperation); + + AddressGroupName name = + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]"); + + client.deleteAddressGroupAsync(name).get(); + + List actualRequests = mockOrganizationAddressGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteAddressGroupRequest actualRequest = ((DeleteAddressGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteAddressGroupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationAddressGroupService.addException(exception); + + try { + AddressGroupName name = + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]"); + client.deleteAddressGroupAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteAddressGroupTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteAddressGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOrganizationAddressGroupService.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteAddressGroupAsync(name).get(); + + List actualRequests = mockOrganizationAddressGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteAddressGroupRequest actualRequest = ((DeleteAddressGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteAddressGroupExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationAddressGroupService.addException(exception); + + try { + String name = "name3373707"; + client.deleteAddressGroupAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listAddressGroupReferencesTest() throws Exception { + ListAddressGroupReferencesResponse.AddressGroupReference responsesElement = + ListAddressGroupReferencesResponse.AddressGroupReference.newBuilder().build(); + ListAddressGroupReferencesResponse expectedResponse = + ListAddressGroupReferencesResponse.newBuilder() + .setNextPageToken("") + .addAllAddressGroupReferences(Arrays.asList(responsesElement)) + .build(); + mockOrganizationAddressGroupService.addResponse(expectedResponse); + + AddressGroupName addressGroup = + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]"); + + ListAddressGroupReferencesPagedResponse pagedListResponse = + client.listAddressGroupReferences(addressGroup); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAddressGroupReferencesList().get(0), resources.get(0)); + + List actualRequests = mockOrganizationAddressGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAddressGroupReferencesRequest actualRequest = + ((ListAddressGroupReferencesRequest) actualRequests.get(0)); + + Assert.assertEquals(addressGroup.toString(), actualRequest.getAddressGroup()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAddressGroupReferencesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationAddressGroupService.addException(exception); + + try { + AddressGroupName addressGroup = + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]"); + client.listAddressGroupReferences(addressGroup); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAddressGroupReferencesTest2() throws Exception { + ListAddressGroupReferencesResponse.AddressGroupReference responsesElement = + ListAddressGroupReferencesResponse.AddressGroupReference.newBuilder().build(); + ListAddressGroupReferencesResponse expectedResponse = + ListAddressGroupReferencesResponse.newBuilder() + .setNextPageToken("") + .addAllAddressGroupReferences(Arrays.asList(responsesElement)) + .build(); + mockOrganizationAddressGroupService.addResponse(expectedResponse); + + String addressGroup = "addressGroup242074347"; + + ListAddressGroupReferencesPagedResponse pagedListResponse = + client.listAddressGroupReferences(addressGroup); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAddressGroupReferencesList().get(0), resources.get(0)); + + List actualRequests = mockOrganizationAddressGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAddressGroupReferencesRequest actualRequest = + ((ListAddressGroupReferencesRequest) actualRequests.get(0)); + + Assert.assertEquals(addressGroup, actualRequest.getAddressGroup()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAddressGroupReferencesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOrganizationAddressGroupService.addException(exception); + + try { + String addressGroup = "addressGroup242074347"; + client.listAddressGroupReferences(addressGroup); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockLocations.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockLocations.addResponse(expectedResponse); + + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLocationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockIAMPolicy.addResponse(expectedResponse); + + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + + Policy actualResponse = client.setIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy()); + Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + client.setIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockIAMPolicy.addResponse(expectedResponse); + + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + + Policy actualResponse = client.getIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getOptions(), actualRequest.getOptions()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + client.getIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockIAMPolicy.addResponse(expectedResponse); + + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void testIamPermissionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + client.testIamPermissions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-network-security/grpc-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AddressGroupServiceGrpc.java b/java-network-security/grpc-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AddressGroupServiceGrpc.java new file mode 100644 index 000000000000..fcf513bcb51d --- /dev/null +++ b/java-network-security/grpc-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AddressGroupServiceGrpc.java @@ -0,0 +1,1516 @@ +/* + * 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.networksecurity.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
    + * AddressGroup is a resource that manages a collection of IP or Domain Names,
    + * it can be used in Firewall Policy to represent allow or deny traffic from
    + * all the IP or Domain Names from the Address Group.
    + * 
    + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/networksecurity/v1/address_group.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class AddressGroupServiceGrpc { + + private AddressGroupServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.networksecurity.v1.AddressGroupService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.ListAddressGroupsRequest, + com.google.cloud.networksecurity.v1.ListAddressGroupsResponse> + getListAddressGroupsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAddressGroups", + requestType = com.google.cloud.networksecurity.v1.ListAddressGroupsRequest.class, + responseType = com.google.cloud.networksecurity.v1.ListAddressGroupsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.ListAddressGroupsRequest, + com.google.cloud.networksecurity.v1.ListAddressGroupsResponse> + getListAddressGroupsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.ListAddressGroupsRequest, + com.google.cloud.networksecurity.v1.ListAddressGroupsResponse> + getListAddressGroupsMethod; + if ((getListAddressGroupsMethod = AddressGroupServiceGrpc.getListAddressGroupsMethod) == null) { + synchronized (AddressGroupServiceGrpc.class) { + if ((getListAddressGroupsMethod = AddressGroupServiceGrpc.getListAddressGroupsMethod) + == null) { + AddressGroupServiceGrpc.getListAddressGroupsMethod = + getListAddressGroupsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAddressGroups")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.ListAddressGroupsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.ListAddressGroupsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AddressGroupServiceMethodDescriptorSupplier("ListAddressGroups")) + .build(); + } + } + } + return getListAddressGroupsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.GetAddressGroupRequest, + com.google.cloud.networksecurity.v1.AddressGroup> + getGetAddressGroupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAddressGroup", + requestType = com.google.cloud.networksecurity.v1.GetAddressGroupRequest.class, + responseType = com.google.cloud.networksecurity.v1.AddressGroup.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.GetAddressGroupRequest, + com.google.cloud.networksecurity.v1.AddressGroup> + getGetAddressGroupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.GetAddressGroupRequest, + com.google.cloud.networksecurity.v1.AddressGroup> + getGetAddressGroupMethod; + if ((getGetAddressGroupMethod = AddressGroupServiceGrpc.getGetAddressGroupMethod) == null) { + synchronized (AddressGroupServiceGrpc.class) { + if ((getGetAddressGroupMethod = AddressGroupServiceGrpc.getGetAddressGroupMethod) == null) { + AddressGroupServiceGrpc.getGetAddressGroupMethod = + getGetAddressGroupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAddressGroup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.GetAddressGroupRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.AddressGroup + .getDefaultInstance())) + .setSchemaDescriptor( + new AddressGroupServiceMethodDescriptorSupplier("GetAddressGroup")) + .build(); + } + } + } + return getGetAddressGroupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.CreateAddressGroupRequest, + com.google.longrunning.Operation> + getCreateAddressGroupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateAddressGroup", + requestType = com.google.cloud.networksecurity.v1.CreateAddressGroupRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.CreateAddressGroupRequest, + com.google.longrunning.Operation> + getCreateAddressGroupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.CreateAddressGroupRequest, + com.google.longrunning.Operation> + getCreateAddressGroupMethod; + if ((getCreateAddressGroupMethod = AddressGroupServiceGrpc.getCreateAddressGroupMethod) + == null) { + synchronized (AddressGroupServiceGrpc.class) { + if ((getCreateAddressGroupMethod = AddressGroupServiceGrpc.getCreateAddressGroupMethod) + == null) { + AddressGroupServiceGrpc.getCreateAddressGroupMethod = + getCreateAddressGroupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAddressGroup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.CreateAddressGroupRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new AddressGroupServiceMethodDescriptorSupplier("CreateAddressGroup")) + .build(); + } + } + } + return getCreateAddressGroupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest, + com.google.longrunning.Operation> + getUpdateAddressGroupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateAddressGroup", + requestType = com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest, + com.google.longrunning.Operation> + getUpdateAddressGroupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest, + com.google.longrunning.Operation> + getUpdateAddressGroupMethod; + if ((getUpdateAddressGroupMethod = AddressGroupServiceGrpc.getUpdateAddressGroupMethod) + == null) { + synchronized (AddressGroupServiceGrpc.class) { + if ((getUpdateAddressGroupMethod = AddressGroupServiceGrpc.getUpdateAddressGroupMethod) + == null) { + AddressGroupServiceGrpc.getUpdateAddressGroupMethod = + getUpdateAddressGroupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAddressGroup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new AddressGroupServiceMethodDescriptorSupplier("UpdateAddressGroup")) + .build(); + } + } + } + return getUpdateAddressGroupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest, + com.google.longrunning.Operation> + getAddAddressGroupItemsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "AddAddressGroupItems", + requestType = com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest, + com.google.longrunning.Operation> + getAddAddressGroupItemsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest, + com.google.longrunning.Operation> + getAddAddressGroupItemsMethod; + if ((getAddAddressGroupItemsMethod = AddressGroupServiceGrpc.getAddAddressGroupItemsMethod) + == null) { + synchronized (AddressGroupServiceGrpc.class) { + if ((getAddAddressGroupItemsMethod = AddressGroupServiceGrpc.getAddAddressGroupItemsMethod) + == null) { + AddressGroupServiceGrpc.getAddAddressGroupItemsMethod = + getAddAddressGroupItemsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "AddAddressGroupItems")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new AddressGroupServiceMethodDescriptorSupplier("AddAddressGroupItems")) + .build(); + } + } + } + return getAddAddressGroupItemsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest, + com.google.longrunning.Operation> + getRemoveAddressGroupItemsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RemoveAddressGroupItems", + requestType = com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest, + com.google.longrunning.Operation> + getRemoveAddressGroupItemsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest, + com.google.longrunning.Operation> + getRemoveAddressGroupItemsMethod; + if ((getRemoveAddressGroupItemsMethod = + AddressGroupServiceGrpc.getRemoveAddressGroupItemsMethod) + == null) { + synchronized (AddressGroupServiceGrpc.class) { + if ((getRemoveAddressGroupItemsMethod = + AddressGroupServiceGrpc.getRemoveAddressGroupItemsMethod) + == null) { + AddressGroupServiceGrpc.getRemoveAddressGroupItemsMethod = + getRemoveAddressGroupItemsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "RemoveAddressGroupItems")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new AddressGroupServiceMethodDescriptorSupplier( + "RemoveAddressGroupItems")) + .build(); + } + } + } + return getRemoveAddressGroupItemsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest, + com.google.longrunning.Operation> + getCloneAddressGroupItemsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CloneAddressGroupItems", + requestType = com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest, + com.google.longrunning.Operation> + getCloneAddressGroupItemsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest, + com.google.longrunning.Operation> + getCloneAddressGroupItemsMethod; + if ((getCloneAddressGroupItemsMethod = AddressGroupServiceGrpc.getCloneAddressGroupItemsMethod) + == null) { + synchronized (AddressGroupServiceGrpc.class) { + if ((getCloneAddressGroupItemsMethod = + AddressGroupServiceGrpc.getCloneAddressGroupItemsMethod) + == null) { + AddressGroupServiceGrpc.getCloneAddressGroupItemsMethod = + getCloneAddressGroupItemsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CloneAddressGroupItems")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new AddressGroupServiceMethodDescriptorSupplier("CloneAddressGroupItems")) + .build(); + } + } + } + return getCloneAddressGroupItemsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest, + com.google.longrunning.Operation> + getDeleteAddressGroupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteAddressGroup", + requestType = com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest, + com.google.longrunning.Operation> + getDeleteAddressGroupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest, + com.google.longrunning.Operation> + getDeleteAddressGroupMethod; + if ((getDeleteAddressGroupMethod = AddressGroupServiceGrpc.getDeleteAddressGroupMethod) + == null) { + synchronized (AddressGroupServiceGrpc.class) { + if ((getDeleteAddressGroupMethod = AddressGroupServiceGrpc.getDeleteAddressGroupMethod) + == null) { + AddressGroupServiceGrpc.getDeleteAddressGroupMethod = + getDeleteAddressGroupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAddressGroup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new AddressGroupServiceMethodDescriptorSupplier("DeleteAddressGroup")) + .build(); + } + } + } + return getDeleteAddressGroupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest, + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse> + getListAddressGroupReferencesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAddressGroupReferences", + requestType = com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest.class, + responseType = com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest, + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse> + getListAddressGroupReferencesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest, + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse> + getListAddressGroupReferencesMethod; + if ((getListAddressGroupReferencesMethod = + AddressGroupServiceGrpc.getListAddressGroupReferencesMethod) + == null) { + synchronized (AddressGroupServiceGrpc.class) { + if ((getListAddressGroupReferencesMethod = + AddressGroupServiceGrpc.getListAddressGroupReferencesMethod) + == null) { + AddressGroupServiceGrpc.getListAddressGroupReferencesMethod = + getListAddressGroupReferencesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListAddressGroupReferences")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AddressGroupServiceMethodDescriptorSupplier( + "ListAddressGroupReferences")) + .build(); + } + } + } + return getListAddressGroupReferencesMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static AddressGroupServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AddressGroupServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AddressGroupServiceStub(channel, callOptions); + } + }; + return AddressGroupServiceStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static AddressGroupServiceBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AddressGroupServiceBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AddressGroupServiceBlockingV2Stub(channel, callOptions); + } + }; + return AddressGroupServiceBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AddressGroupServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AddressGroupServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AddressGroupServiceBlockingStub(channel, callOptions); + } + }; + return AddressGroupServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static AddressGroupServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AddressGroupServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AddressGroupServiceFutureStub(channel, callOptions); + } + }; + return AddressGroupServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
    +   * AddressGroup is a resource that manages a collection of IP or Domain Names,
    +   * it can be used in Firewall Policy to represent allow or deny traffic from
    +   * all the IP or Domain Names from the Address Group.
    +   * 
    + */ + public interface AsyncService { + + /** + * + * + *
    +     * Lists address groups in a given project and location.
    +     * 
    + */ + default void listAddressGroups( + com.google.cloud.networksecurity.v1.ListAddressGroupsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAddressGroupsMethod(), responseObserver); + } + + /** + * + * + *
    +     * Gets details of a single address group.
    +     * 
    + */ + default void getAddressGroup( + com.google.cloud.networksecurity.v1.GetAddressGroupRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAddressGroupMethod(), responseObserver); + } + + /** + * + * + *
    +     * Creates a new address group in a given project and location.
    +     * 
    + */ + default void createAddressGroup( + com.google.cloud.networksecurity.v1.CreateAddressGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateAddressGroupMethod(), responseObserver); + } + + /** + * + * + *
    +     * Updates the parameters of a single address group.
    +     * 
    + */ + default void updateAddressGroup( + com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateAddressGroupMethod(), responseObserver); + } + + /** + * + * + *
    +     * Adds items to an address group.
    +     * 
    + */ + default void addAddressGroupItems( + com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getAddAddressGroupItemsMethod(), responseObserver); + } + + /** + * + * + *
    +     * Removes items from an address group.
    +     * 
    + */ + default void removeAddressGroupItems( + com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRemoveAddressGroupItemsMethod(), responseObserver); + } + + /** + * + * + *
    +     * Clones items from one address group to another.
    +     * 
    + */ + default void cloneAddressGroupItems( + com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCloneAddressGroupItemsMethod(), responseObserver); + } + + /** + * + * + *
    +     * Deletes a single address group.
    +     * 
    + */ + default void deleteAddressGroup( + com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteAddressGroupMethod(), responseObserver); + } + + /** + * + * + *
    +     * Lists references of an address group.
    +     * 
    + */ + default void listAddressGroupReferences( + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAddressGroupReferencesMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service AddressGroupService. + * + *
    +   * AddressGroup is a resource that manages a collection of IP or Domain Names,
    +   * it can be used in Firewall Policy to represent allow or deny traffic from
    +   * all the IP or Domain Names from the Address Group.
    +   * 
    + */ + public abstract static class AddressGroupServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return AddressGroupServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service AddressGroupService. + * + *
    +   * AddressGroup is a resource that manages a collection of IP or Domain Names,
    +   * it can be used in Firewall Policy to represent allow or deny traffic from
    +   * all the IP or Domain Names from the Address Group.
    +   * 
    + */ + public static final class AddressGroupServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private AddressGroupServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AddressGroupServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AddressGroupServiceStub(channel, callOptions); + } + + /** + * + * + *
    +     * Lists address groups in a given project and location.
    +     * 
    + */ + public void listAddressGroups( + com.google.cloud.networksecurity.v1.ListAddressGroupsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAddressGroupsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Gets details of a single address group.
    +     * 
    + */ + public void getAddressGroup( + com.google.cloud.networksecurity.v1.GetAddressGroupRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAddressGroupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Creates a new address group in a given project and location.
    +     * 
    + */ + public void createAddressGroup( + com.google.cloud.networksecurity.v1.CreateAddressGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateAddressGroupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Updates the parameters of a single address group.
    +     * 
    + */ + public void updateAddressGroup( + com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateAddressGroupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Adds items to an address group.
    +     * 
    + */ + public void addAddressGroupItems( + com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getAddAddressGroupItemsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Removes items from an address group.
    +     * 
    + */ + public void removeAddressGroupItems( + com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRemoveAddressGroupItemsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Clones items from one address group to another.
    +     * 
    + */ + public void cloneAddressGroupItems( + com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCloneAddressGroupItemsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Deletes a single address group.
    +     * 
    + */ + public void deleteAddressGroup( + com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteAddressGroupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Lists references of an address group.
    +     * 
    + */ + public void listAddressGroupReferences( + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAddressGroupReferencesMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service AddressGroupService. + * + *
    +   * AddressGroup is a resource that manages a collection of IP or Domain Names,
    +   * it can be used in Firewall Policy to represent allow or deny traffic from
    +   * all the IP or Domain Names from the Address Group.
    +   * 
    + */ + public static final class AddressGroupServiceBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private AddressGroupServiceBlockingV2Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AddressGroupServiceBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AddressGroupServiceBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
    +     * Lists address groups in a given project and location.
    +     * 
    + */ + public com.google.cloud.networksecurity.v1.ListAddressGroupsResponse listAddressGroups( + com.google.cloud.networksecurity.v1.ListAddressGroupsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAddressGroupsMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Gets details of a single address group.
    +     * 
    + */ + public com.google.cloud.networksecurity.v1.AddressGroup getAddressGroup( + com.google.cloud.networksecurity.v1.GetAddressGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAddressGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Creates a new address group in a given project and location.
    +     * 
    + */ + public com.google.longrunning.Operation createAddressGroup( + com.google.cloud.networksecurity.v1.CreateAddressGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateAddressGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Updates the parameters of a single address group.
    +     * 
    + */ + public com.google.longrunning.Operation updateAddressGroup( + com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateAddressGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Adds items to an address group.
    +     * 
    + */ + public com.google.longrunning.Operation addAddressGroupItems( + com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAddAddressGroupItemsMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Removes items from an address group.
    +     * 
    + */ + public com.google.longrunning.Operation removeAddressGroupItems( + com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRemoveAddressGroupItemsMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Clones items from one address group to another.
    +     * 
    + */ + public com.google.longrunning.Operation cloneAddressGroupItems( + com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCloneAddressGroupItemsMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Deletes a single address group.
    +     * 
    + */ + public com.google.longrunning.Operation deleteAddressGroup( + com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteAddressGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Lists references of an address group.
    +     * 
    + */ + public com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + listAddressGroupReferences( + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAddressGroupReferencesMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service AddressGroupService. + * + *
    +   * AddressGroup is a resource that manages a collection of IP or Domain Names,
    +   * it can be used in Firewall Policy to represent allow or deny traffic from
    +   * all the IP or Domain Names from the Address Group.
    +   * 
    + */ + public static final class AddressGroupServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private AddressGroupServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AddressGroupServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AddressGroupServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
    +     * Lists address groups in a given project and location.
    +     * 
    + */ + public com.google.cloud.networksecurity.v1.ListAddressGroupsResponse listAddressGroups( + com.google.cloud.networksecurity.v1.ListAddressGroupsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAddressGroupsMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Gets details of a single address group.
    +     * 
    + */ + public com.google.cloud.networksecurity.v1.AddressGroup getAddressGroup( + com.google.cloud.networksecurity.v1.GetAddressGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAddressGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Creates a new address group in a given project and location.
    +     * 
    + */ + public com.google.longrunning.Operation createAddressGroup( + com.google.cloud.networksecurity.v1.CreateAddressGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateAddressGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Updates the parameters of a single address group.
    +     * 
    + */ + public com.google.longrunning.Operation updateAddressGroup( + com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateAddressGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Adds items to an address group.
    +     * 
    + */ + public com.google.longrunning.Operation addAddressGroupItems( + com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAddAddressGroupItemsMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Removes items from an address group.
    +     * 
    + */ + public com.google.longrunning.Operation removeAddressGroupItems( + com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRemoveAddressGroupItemsMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Clones items from one address group to another.
    +     * 
    + */ + public com.google.longrunning.Operation cloneAddressGroupItems( + com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCloneAddressGroupItemsMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Deletes a single address group.
    +     * 
    + */ + public com.google.longrunning.Operation deleteAddressGroup( + com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteAddressGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Lists references of an address group.
    +     * 
    + */ + public com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + listAddressGroupReferences( + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAddressGroupReferencesMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service AddressGroupService. + * + *
    +   * AddressGroup is a resource that manages a collection of IP or Domain Names,
    +   * it can be used in Firewall Policy to represent allow or deny traffic from
    +   * all the IP or Domain Names from the Address Group.
    +   * 
    + */ + public static final class AddressGroupServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private AddressGroupServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AddressGroupServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AddressGroupServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
    +     * Lists address groups in a given project and location.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networksecurity.v1.ListAddressGroupsResponse> + listAddressGroups(com.google.cloud.networksecurity.v1.ListAddressGroupsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAddressGroupsMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Gets details of a single address group.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networksecurity.v1.AddressGroup> + getAddressGroup(com.google.cloud.networksecurity.v1.GetAddressGroupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAddressGroupMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Creates a new address group in a given project and location.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + createAddressGroup(com.google.cloud.networksecurity.v1.CreateAddressGroupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateAddressGroupMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Updates the parameters of a single address group.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + updateAddressGroup(com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateAddressGroupMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Adds items to an address group.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + addAddressGroupItems( + com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getAddAddressGroupItemsMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Removes items from an address group.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + removeAddressGroupItems( + com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRemoveAddressGroupItemsMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Clones items from one address group to another.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + cloneAddressGroupItems( + com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCloneAddressGroupItemsMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Deletes a single address group.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + deleteAddressGroup(com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteAddressGroupMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Lists references of an address group.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse> + listAddressGroupReferences( + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAddressGroupReferencesMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_ADDRESS_GROUPS = 0; + private static final int METHODID_GET_ADDRESS_GROUP = 1; + private static final int METHODID_CREATE_ADDRESS_GROUP = 2; + private static final int METHODID_UPDATE_ADDRESS_GROUP = 3; + private static final int METHODID_ADD_ADDRESS_GROUP_ITEMS = 4; + private static final int METHODID_REMOVE_ADDRESS_GROUP_ITEMS = 5; + private static final int METHODID_CLONE_ADDRESS_GROUP_ITEMS = 6; + private static final int METHODID_DELETE_ADDRESS_GROUP = 7; + private static final int METHODID_LIST_ADDRESS_GROUP_REFERENCES = 8; + + 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_LIST_ADDRESS_GROUPS: + serviceImpl.listAddressGroups( + (com.google.cloud.networksecurity.v1.ListAddressGroupsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListAddressGroupsResponse>) + responseObserver); + break; + case METHODID_GET_ADDRESS_GROUP: + serviceImpl.getAddressGroup( + (com.google.cloud.networksecurity.v1.GetAddressGroupRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_ADDRESS_GROUP: + serviceImpl.createAddressGroup( + (com.google.cloud.networksecurity.v1.CreateAddressGroupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_ADDRESS_GROUP: + serviceImpl.updateAddressGroup( + (com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_ADD_ADDRESS_GROUP_ITEMS: + serviceImpl.addAddressGroupItems( + (com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_REMOVE_ADDRESS_GROUP_ITEMS: + serviceImpl.removeAddressGroupItems( + (com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CLONE_ADDRESS_GROUP_ITEMS: + serviceImpl.cloneAddressGroupItems( + (com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_ADDRESS_GROUP: + serviceImpl.deleteAddressGroup( + (com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_ADDRESS_GROUP_REFERENCES: + serviceImpl.listAddressGroupReferences( + (com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse>) + 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( + getListAddressGroupsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.ListAddressGroupsRequest, + com.google.cloud.networksecurity.v1.ListAddressGroupsResponse>( + service, METHODID_LIST_ADDRESS_GROUPS))) + .addMethod( + getGetAddressGroupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.GetAddressGroupRequest, + com.google.cloud.networksecurity.v1.AddressGroup>( + service, METHODID_GET_ADDRESS_GROUP))) + .addMethod( + getCreateAddressGroupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.CreateAddressGroupRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_ADDRESS_GROUP))) + .addMethod( + getUpdateAddressGroupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_ADDRESS_GROUP))) + .addMethod( + getAddAddressGroupItemsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest, + com.google.longrunning.Operation>(service, METHODID_ADD_ADDRESS_GROUP_ITEMS))) + .addMethod( + getRemoveAddressGroupItemsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest, + com.google.longrunning.Operation>( + service, METHODID_REMOVE_ADDRESS_GROUP_ITEMS))) + .addMethod( + getCloneAddressGroupItemsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest, + com.google.longrunning.Operation>(service, METHODID_CLONE_ADDRESS_GROUP_ITEMS))) + .addMethod( + getDeleteAddressGroupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_ADDRESS_GROUP))) + .addMethod( + getListAddressGroupReferencesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest, + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse>( + service, METHODID_LIST_ADDRESS_GROUP_REFERENCES))) + .build(); + } + + private abstract static class AddressGroupServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AddressGroupServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.networksecurity.v1.AddressGroupProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("AddressGroupService"); + } + } + + private static final class AddressGroupServiceFileDescriptorSupplier + extends AddressGroupServiceBaseDescriptorSupplier { + AddressGroupServiceFileDescriptorSupplier() {} + } + + private static final class AddressGroupServiceMethodDescriptorSupplier + extends AddressGroupServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + AddressGroupServiceMethodDescriptorSupplier(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 (AddressGroupServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AddressGroupServiceFileDescriptorSupplier()) + .addMethod(getListAddressGroupsMethod()) + .addMethod(getGetAddressGroupMethod()) + .addMethod(getCreateAddressGroupMethod()) + .addMethod(getUpdateAddressGroupMethod()) + .addMethod(getAddAddressGroupItemsMethod()) + .addMethod(getRemoveAddressGroupItemsMethod()) + .addMethod(getCloneAddressGroupItemsMethod()) + .addMethod(getDeleteAddressGroupMethod()) + .addMethod(getListAddressGroupReferencesMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-network-security/grpc-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/OrganizationAddressGroupServiceGrpc.java b/java-network-security/grpc-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/OrganizationAddressGroupServiceGrpc.java new file mode 100644 index 000000000000..23afc1dcddb3 --- /dev/null +++ b/java-network-security/grpc-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/OrganizationAddressGroupServiceGrpc.java @@ -0,0 +1,1545 @@ +/* + * 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.networksecurity.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
    + * Organization AddressGroup is created under organization. Requests against
    + * Organization AddressGroup will use project from request credential for
    + * activation/quota/visibility check.
    + * 
    + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/networksecurity/v1/address_group.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class OrganizationAddressGroupServiceGrpc { + + private OrganizationAddressGroupServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.networksecurity.v1.OrganizationAddressGroupService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.ListAddressGroupsRequest, + com.google.cloud.networksecurity.v1.ListAddressGroupsResponse> + getListAddressGroupsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAddressGroups", + requestType = com.google.cloud.networksecurity.v1.ListAddressGroupsRequest.class, + responseType = com.google.cloud.networksecurity.v1.ListAddressGroupsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.ListAddressGroupsRequest, + com.google.cloud.networksecurity.v1.ListAddressGroupsResponse> + getListAddressGroupsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.ListAddressGroupsRequest, + com.google.cloud.networksecurity.v1.ListAddressGroupsResponse> + getListAddressGroupsMethod; + if ((getListAddressGroupsMethod = + OrganizationAddressGroupServiceGrpc.getListAddressGroupsMethod) + == null) { + synchronized (OrganizationAddressGroupServiceGrpc.class) { + if ((getListAddressGroupsMethod = + OrganizationAddressGroupServiceGrpc.getListAddressGroupsMethod) + == null) { + OrganizationAddressGroupServiceGrpc.getListAddressGroupsMethod = + getListAddressGroupsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAddressGroups")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.ListAddressGroupsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.ListAddressGroupsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new OrganizationAddressGroupServiceMethodDescriptorSupplier( + "ListAddressGroups")) + .build(); + } + } + } + return getListAddressGroupsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.GetAddressGroupRequest, + com.google.cloud.networksecurity.v1.AddressGroup> + getGetAddressGroupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAddressGroup", + requestType = com.google.cloud.networksecurity.v1.GetAddressGroupRequest.class, + responseType = com.google.cloud.networksecurity.v1.AddressGroup.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.GetAddressGroupRequest, + com.google.cloud.networksecurity.v1.AddressGroup> + getGetAddressGroupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.GetAddressGroupRequest, + com.google.cloud.networksecurity.v1.AddressGroup> + getGetAddressGroupMethod; + if ((getGetAddressGroupMethod = OrganizationAddressGroupServiceGrpc.getGetAddressGroupMethod) + == null) { + synchronized (OrganizationAddressGroupServiceGrpc.class) { + if ((getGetAddressGroupMethod = + OrganizationAddressGroupServiceGrpc.getGetAddressGroupMethod) + == null) { + OrganizationAddressGroupServiceGrpc.getGetAddressGroupMethod = + getGetAddressGroupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAddressGroup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.GetAddressGroupRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.AddressGroup + .getDefaultInstance())) + .setSchemaDescriptor( + new OrganizationAddressGroupServiceMethodDescriptorSupplier( + "GetAddressGroup")) + .build(); + } + } + } + return getGetAddressGroupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.CreateAddressGroupRequest, + com.google.longrunning.Operation> + getCreateAddressGroupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateAddressGroup", + requestType = com.google.cloud.networksecurity.v1.CreateAddressGroupRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.CreateAddressGroupRequest, + com.google.longrunning.Operation> + getCreateAddressGroupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.CreateAddressGroupRequest, + com.google.longrunning.Operation> + getCreateAddressGroupMethod; + if ((getCreateAddressGroupMethod = + OrganizationAddressGroupServiceGrpc.getCreateAddressGroupMethod) + == null) { + synchronized (OrganizationAddressGroupServiceGrpc.class) { + if ((getCreateAddressGroupMethod = + OrganizationAddressGroupServiceGrpc.getCreateAddressGroupMethod) + == null) { + OrganizationAddressGroupServiceGrpc.getCreateAddressGroupMethod = + getCreateAddressGroupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAddressGroup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.CreateAddressGroupRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new OrganizationAddressGroupServiceMethodDescriptorSupplier( + "CreateAddressGroup")) + .build(); + } + } + } + return getCreateAddressGroupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest, + com.google.longrunning.Operation> + getUpdateAddressGroupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateAddressGroup", + requestType = com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest, + com.google.longrunning.Operation> + getUpdateAddressGroupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest, + com.google.longrunning.Operation> + getUpdateAddressGroupMethod; + if ((getUpdateAddressGroupMethod = + OrganizationAddressGroupServiceGrpc.getUpdateAddressGroupMethod) + == null) { + synchronized (OrganizationAddressGroupServiceGrpc.class) { + if ((getUpdateAddressGroupMethod = + OrganizationAddressGroupServiceGrpc.getUpdateAddressGroupMethod) + == null) { + OrganizationAddressGroupServiceGrpc.getUpdateAddressGroupMethod = + getUpdateAddressGroupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAddressGroup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new OrganizationAddressGroupServiceMethodDescriptorSupplier( + "UpdateAddressGroup")) + .build(); + } + } + } + return getUpdateAddressGroupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest, + com.google.longrunning.Operation> + getAddAddressGroupItemsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "AddAddressGroupItems", + requestType = com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest, + com.google.longrunning.Operation> + getAddAddressGroupItemsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest, + com.google.longrunning.Operation> + getAddAddressGroupItemsMethod; + if ((getAddAddressGroupItemsMethod = + OrganizationAddressGroupServiceGrpc.getAddAddressGroupItemsMethod) + == null) { + synchronized (OrganizationAddressGroupServiceGrpc.class) { + if ((getAddAddressGroupItemsMethod = + OrganizationAddressGroupServiceGrpc.getAddAddressGroupItemsMethod) + == null) { + OrganizationAddressGroupServiceGrpc.getAddAddressGroupItemsMethod = + getAddAddressGroupItemsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "AddAddressGroupItems")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new OrganizationAddressGroupServiceMethodDescriptorSupplier( + "AddAddressGroupItems")) + .build(); + } + } + } + return getAddAddressGroupItemsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest, + com.google.longrunning.Operation> + getRemoveAddressGroupItemsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RemoveAddressGroupItems", + requestType = com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest, + com.google.longrunning.Operation> + getRemoveAddressGroupItemsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest, + com.google.longrunning.Operation> + getRemoveAddressGroupItemsMethod; + if ((getRemoveAddressGroupItemsMethod = + OrganizationAddressGroupServiceGrpc.getRemoveAddressGroupItemsMethod) + == null) { + synchronized (OrganizationAddressGroupServiceGrpc.class) { + if ((getRemoveAddressGroupItemsMethod = + OrganizationAddressGroupServiceGrpc.getRemoveAddressGroupItemsMethod) + == null) { + OrganizationAddressGroupServiceGrpc.getRemoveAddressGroupItemsMethod = + getRemoveAddressGroupItemsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "RemoveAddressGroupItems")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new OrganizationAddressGroupServiceMethodDescriptorSupplier( + "RemoveAddressGroupItems")) + .build(); + } + } + } + return getRemoveAddressGroupItemsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest, + com.google.longrunning.Operation> + getCloneAddressGroupItemsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CloneAddressGroupItems", + requestType = com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest, + com.google.longrunning.Operation> + getCloneAddressGroupItemsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest, + com.google.longrunning.Operation> + getCloneAddressGroupItemsMethod; + if ((getCloneAddressGroupItemsMethod = + OrganizationAddressGroupServiceGrpc.getCloneAddressGroupItemsMethod) + == null) { + synchronized (OrganizationAddressGroupServiceGrpc.class) { + if ((getCloneAddressGroupItemsMethod = + OrganizationAddressGroupServiceGrpc.getCloneAddressGroupItemsMethod) + == null) { + OrganizationAddressGroupServiceGrpc.getCloneAddressGroupItemsMethod = + getCloneAddressGroupItemsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CloneAddressGroupItems")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new OrganizationAddressGroupServiceMethodDescriptorSupplier( + "CloneAddressGroupItems")) + .build(); + } + } + } + return getCloneAddressGroupItemsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest, + com.google.longrunning.Operation> + getDeleteAddressGroupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteAddressGroup", + requestType = com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest, + com.google.longrunning.Operation> + getDeleteAddressGroupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest, + com.google.longrunning.Operation> + getDeleteAddressGroupMethod; + if ((getDeleteAddressGroupMethod = + OrganizationAddressGroupServiceGrpc.getDeleteAddressGroupMethod) + == null) { + synchronized (OrganizationAddressGroupServiceGrpc.class) { + if ((getDeleteAddressGroupMethod = + OrganizationAddressGroupServiceGrpc.getDeleteAddressGroupMethod) + == null) { + OrganizationAddressGroupServiceGrpc.getDeleteAddressGroupMethod = + getDeleteAddressGroupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAddressGroup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new OrganizationAddressGroupServiceMethodDescriptorSupplier( + "DeleteAddressGroup")) + .build(); + } + } + } + return getDeleteAddressGroupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest, + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse> + getListAddressGroupReferencesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAddressGroupReferences", + requestType = com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest.class, + responseType = com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest, + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse> + getListAddressGroupReferencesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest, + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse> + getListAddressGroupReferencesMethod; + if ((getListAddressGroupReferencesMethod = + OrganizationAddressGroupServiceGrpc.getListAddressGroupReferencesMethod) + == null) { + synchronized (OrganizationAddressGroupServiceGrpc.class) { + if ((getListAddressGroupReferencesMethod = + OrganizationAddressGroupServiceGrpc.getListAddressGroupReferencesMethod) + == null) { + OrganizationAddressGroupServiceGrpc.getListAddressGroupReferencesMethod = + getListAddressGroupReferencesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListAddressGroupReferences")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new OrganizationAddressGroupServiceMethodDescriptorSupplier( + "ListAddressGroupReferences")) + .build(); + } + } + } + return getListAddressGroupReferencesMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static OrganizationAddressGroupServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public OrganizationAddressGroupServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OrganizationAddressGroupServiceStub(channel, callOptions); + } + }; + return OrganizationAddressGroupServiceStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static OrganizationAddressGroupServiceBlockingV2Stub newBlockingV2Stub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public OrganizationAddressGroupServiceBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OrganizationAddressGroupServiceBlockingV2Stub(channel, callOptions); + } + }; + return OrganizationAddressGroupServiceBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static OrganizationAddressGroupServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public OrganizationAddressGroupServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OrganizationAddressGroupServiceBlockingStub(channel, callOptions); + } + }; + return OrganizationAddressGroupServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static OrganizationAddressGroupServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public OrganizationAddressGroupServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OrganizationAddressGroupServiceFutureStub(channel, callOptions); + } + }; + return OrganizationAddressGroupServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
    +   * Organization AddressGroup is created under organization. Requests against
    +   * Organization AddressGroup will use project from request credential for
    +   * activation/quota/visibility check.
    +   * 
    + */ + public interface AsyncService { + + /** + * + * + *
    +     * Lists address groups in a given project and location.
    +     * 
    + */ + default void listAddressGroups( + com.google.cloud.networksecurity.v1.ListAddressGroupsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAddressGroupsMethod(), responseObserver); + } + + /** + * + * + *
    +     * Gets details of a single address group.
    +     * 
    + */ + default void getAddressGroup( + com.google.cloud.networksecurity.v1.GetAddressGroupRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAddressGroupMethod(), responseObserver); + } + + /** + * + * + *
    +     * Creates a new address group in a given project and location.
    +     * 
    + */ + default void createAddressGroup( + com.google.cloud.networksecurity.v1.CreateAddressGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateAddressGroupMethod(), responseObserver); + } + + /** + * + * + *
    +     * Updates parameters of an address group.
    +     * 
    + */ + default void updateAddressGroup( + com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateAddressGroupMethod(), responseObserver); + } + + /** + * + * + *
    +     * Adds items to an address group.
    +     * 
    + */ + default void addAddressGroupItems( + com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getAddAddressGroupItemsMethod(), responseObserver); + } + + /** + * + * + *
    +     * Removes items from an address group.
    +     * 
    + */ + default void removeAddressGroupItems( + com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRemoveAddressGroupItemsMethod(), responseObserver); + } + + /** + * + * + *
    +     * Clones items from one address group to another.
    +     * 
    + */ + default void cloneAddressGroupItems( + com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCloneAddressGroupItemsMethod(), responseObserver); + } + + /** + * + * + *
    +     * Deletes an address group.
    +     * 
    + */ + default void deleteAddressGroup( + com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteAddressGroupMethod(), responseObserver); + } + + /** + * + * + *
    +     * Lists references of an address group.
    +     * 
    + */ + default void listAddressGroupReferences( + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAddressGroupReferencesMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service OrganizationAddressGroupService. + * + *
    +   * Organization AddressGroup is created under organization. Requests against
    +   * Organization AddressGroup will use project from request credential for
    +   * activation/quota/visibility check.
    +   * 
    + */ + public abstract static class OrganizationAddressGroupServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return OrganizationAddressGroupServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service + * OrganizationAddressGroupService. + * + *
    +   * Organization AddressGroup is created under organization. Requests against
    +   * Organization AddressGroup will use project from request credential for
    +   * activation/quota/visibility check.
    +   * 
    + */ + public static final class OrganizationAddressGroupServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private OrganizationAddressGroupServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected OrganizationAddressGroupServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OrganizationAddressGroupServiceStub(channel, callOptions); + } + + /** + * + * + *
    +     * Lists address groups in a given project and location.
    +     * 
    + */ + public void listAddressGroups( + com.google.cloud.networksecurity.v1.ListAddressGroupsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAddressGroupsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Gets details of a single address group.
    +     * 
    + */ + public void getAddressGroup( + com.google.cloud.networksecurity.v1.GetAddressGroupRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAddressGroupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Creates a new address group in a given project and location.
    +     * 
    + */ + public void createAddressGroup( + com.google.cloud.networksecurity.v1.CreateAddressGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateAddressGroupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Updates parameters of an address group.
    +     * 
    + */ + public void updateAddressGroup( + com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateAddressGroupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Adds items to an address group.
    +     * 
    + */ + public void addAddressGroupItems( + com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getAddAddressGroupItemsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Removes items from an address group.
    +     * 
    + */ + public void removeAddressGroupItems( + com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRemoveAddressGroupItemsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Clones items from one address group to another.
    +     * 
    + */ + public void cloneAddressGroupItems( + com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCloneAddressGroupItemsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Deletes an address group.
    +     * 
    + */ + public void deleteAddressGroup( + com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteAddressGroupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Lists references of an address group.
    +     * 
    + */ + public void listAddressGroupReferences( + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAddressGroupReferencesMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service OrganizationAddressGroupService. + * + *
    +   * Organization AddressGroup is created under organization. Requests against
    +   * Organization AddressGroup will use project from request credential for
    +   * activation/quota/visibility check.
    +   * 
    + */ + public static final class OrganizationAddressGroupServiceBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private OrganizationAddressGroupServiceBlockingV2Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected OrganizationAddressGroupServiceBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OrganizationAddressGroupServiceBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
    +     * Lists address groups in a given project and location.
    +     * 
    + */ + public com.google.cloud.networksecurity.v1.ListAddressGroupsResponse listAddressGroups( + com.google.cloud.networksecurity.v1.ListAddressGroupsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAddressGroupsMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Gets details of a single address group.
    +     * 
    + */ + public com.google.cloud.networksecurity.v1.AddressGroup getAddressGroup( + com.google.cloud.networksecurity.v1.GetAddressGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAddressGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Creates a new address group in a given project and location.
    +     * 
    + */ + public com.google.longrunning.Operation createAddressGroup( + com.google.cloud.networksecurity.v1.CreateAddressGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateAddressGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Updates parameters of an address group.
    +     * 
    + */ + public com.google.longrunning.Operation updateAddressGroup( + com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateAddressGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Adds items to an address group.
    +     * 
    + */ + public com.google.longrunning.Operation addAddressGroupItems( + com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAddAddressGroupItemsMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Removes items from an address group.
    +     * 
    + */ + public com.google.longrunning.Operation removeAddressGroupItems( + com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRemoveAddressGroupItemsMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Clones items from one address group to another.
    +     * 
    + */ + public com.google.longrunning.Operation cloneAddressGroupItems( + com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCloneAddressGroupItemsMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Deletes an address group.
    +     * 
    + */ + public com.google.longrunning.Operation deleteAddressGroup( + com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteAddressGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Lists references of an address group.
    +     * 
    + */ + public com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + listAddressGroupReferences( + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAddressGroupReferencesMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service + * OrganizationAddressGroupService. + * + *
    +   * Organization AddressGroup is created under organization. Requests against
    +   * Organization AddressGroup will use project from request credential for
    +   * activation/quota/visibility check.
    +   * 
    + */ + public static final class OrganizationAddressGroupServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private OrganizationAddressGroupServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected OrganizationAddressGroupServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OrganizationAddressGroupServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
    +     * Lists address groups in a given project and location.
    +     * 
    + */ + public com.google.cloud.networksecurity.v1.ListAddressGroupsResponse listAddressGroups( + com.google.cloud.networksecurity.v1.ListAddressGroupsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAddressGroupsMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Gets details of a single address group.
    +     * 
    + */ + public com.google.cloud.networksecurity.v1.AddressGroup getAddressGroup( + com.google.cloud.networksecurity.v1.GetAddressGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAddressGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Creates a new address group in a given project and location.
    +     * 
    + */ + public com.google.longrunning.Operation createAddressGroup( + com.google.cloud.networksecurity.v1.CreateAddressGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateAddressGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Updates parameters of an address group.
    +     * 
    + */ + public com.google.longrunning.Operation updateAddressGroup( + com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateAddressGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Adds items to an address group.
    +     * 
    + */ + public com.google.longrunning.Operation addAddressGroupItems( + com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAddAddressGroupItemsMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Removes items from an address group.
    +     * 
    + */ + public com.google.longrunning.Operation removeAddressGroupItems( + com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRemoveAddressGroupItemsMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Clones items from one address group to another.
    +     * 
    + */ + public com.google.longrunning.Operation cloneAddressGroupItems( + com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCloneAddressGroupItemsMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Deletes an address group.
    +     * 
    + */ + public com.google.longrunning.Operation deleteAddressGroup( + com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteAddressGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Lists references of an address group.
    +     * 
    + */ + public com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + listAddressGroupReferences( + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAddressGroupReferencesMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service + * OrganizationAddressGroupService. + * + *
    +   * Organization AddressGroup is created under organization. Requests against
    +   * Organization AddressGroup will use project from request credential for
    +   * activation/quota/visibility check.
    +   * 
    + */ + public static final class OrganizationAddressGroupServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private OrganizationAddressGroupServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected OrganizationAddressGroupServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OrganizationAddressGroupServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
    +     * Lists address groups in a given project and location.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networksecurity.v1.ListAddressGroupsResponse> + listAddressGroups(com.google.cloud.networksecurity.v1.ListAddressGroupsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAddressGroupsMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Gets details of a single address group.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networksecurity.v1.AddressGroup> + getAddressGroup(com.google.cloud.networksecurity.v1.GetAddressGroupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAddressGroupMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Creates a new address group in a given project and location.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + createAddressGroup(com.google.cloud.networksecurity.v1.CreateAddressGroupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateAddressGroupMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Updates parameters of an address group.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + updateAddressGroup(com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateAddressGroupMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Adds items to an address group.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + addAddressGroupItems( + com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getAddAddressGroupItemsMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Removes items from an address group.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + removeAddressGroupItems( + com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRemoveAddressGroupItemsMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Clones items from one address group to another.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + cloneAddressGroupItems( + com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCloneAddressGroupItemsMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Deletes an address group.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + deleteAddressGroup(com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteAddressGroupMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Lists references of an address group.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse> + listAddressGroupReferences( + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAddressGroupReferencesMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_ADDRESS_GROUPS = 0; + private static final int METHODID_GET_ADDRESS_GROUP = 1; + private static final int METHODID_CREATE_ADDRESS_GROUP = 2; + private static final int METHODID_UPDATE_ADDRESS_GROUP = 3; + private static final int METHODID_ADD_ADDRESS_GROUP_ITEMS = 4; + private static final int METHODID_REMOVE_ADDRESS_GROUP_ITEMS = 5; + private static final int METHODID_CLONE_ADDRESS_GROUP_ITEMS = 6; + private static final int METHODID_DELETE_ADDRESS_GROUP = 7; + private static final int METHODID_LIST_ADDRESS_GROUP_REFERENCES = 8; + + 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_LIST_ADDRESS_GROUPS: + serviceImpl.listAddressGroups( + (com.google.cloud.networksecurity.v1.ListAddressGroupsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListAddressGroupsResponse>) + responseObserver); + break; + case METHODID_GET_ADDRESS_GROUP: + serviceImpl.getAddressGroup( + (com.google.cloud.networksecurity.v1.GetAddressGroupRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_ADDRESS_GROUP: + serviceImpl.createAddressGroup( + (com.google.cloud.networksecurity.v1.CreateAddressGroupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_ADDRESS_GROUP: + serviceImpl.updateAddressGroup( + (com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_ADD_ADDRESS_GROUP_ITEMS: + serviceImpl.addAddressGroupItems( + (com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_REMOVE_ADDRESS_GROUP_ITEMS: + serviceImpl.removeAddressGroupItems( + (com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CLONE_ADDRESS_GROUP_ITEMS: + serviceImpl.cloneAddressGroupItems( + (com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_ADDRESS_GROUP: + serviceImpl.deleteAddressGroup( + (com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_ADDRESS_GROUP_REFERENCES: + serviceImpl.listAddressGroupReferences( + (com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse>) + 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( + getListAddressGroupsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.ListAddressGroupsRequest, + com.google.cloud.networksecurity.v1.ListAddressGroupsResponse>( + service, METHODID_LIST_ADDRESS_GROUPS))) + .addMethod( + getGetAddressGroupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.GetAddressGroupRequest, + com.google.cloud.networksecurity.v1.AddressGroup>( + service, METHODID_GET_ADDRESS_GROUP))) + .addMethod( + getCreateAddressGroupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.CreateAddressGroupRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_ADDRESS_GROUP))) + .addMethod( + getUpdateAddressGroupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_ADDRESS_GROUP))) + .addMethod( + getAddAddressGroupItemsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest, + com.google.longrunning.Operation>(service, METHODID_ADD_ADDRESS_GROUP_ITEMS))) + .addMethod( + getRemoveAddressGroupItemsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest, + com.google.longrunning.Operation>( + service, METHODID_REMOVE_ADDRESS_GROUP_ITEMS))) + .addMethod( + getCloneAddressGroupItemsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest, + com.google.longrunning.Operation>(service, METHODID_CLONE_ADDRESS_GROUP_ITEMS))) + .addMethod( + getDeleteAddressGroupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_ADDRESS_GROUP))) + .addMethod( + getListAddressGroupReferencesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest, + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse>( + service, METHODID_LIST_ADDRESS_GROUP_REFERENCES))) + .build(); + } + + private abstract static class OrganizationAddressGroupServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + OrganizationAddressGroupServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.networksecurity.v1.AddressGroupProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("OrganizationAddressGroupService"); + } + } + + private static final class OrganizationAddressGroupServiceFileDescriptorSupplier + extends OrganizationAddressGroupServiceBaseDescriptorSupplier { + OrganizationAddressGroupServiceFileDescriptorSupplier() {} + } + + private static final class OrganizationAddressGroupServiceMethodDescriptorSupplier + extends OrganizationAddressGroupServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + OrganizationAddressGroupServiceMethodDescriptorSupplier(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 (OrganizationAddressGroupServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor( + new OrganizationAddressGroupServiceFileDescriptorSupplier()) + .addMethod(getListAddressGroupsMethod()) + .addMethod(getGetAddressGroupMethod()) + .addMethod(getCreateAddressGroupMethod()) + .addMethod(getUpdateAddressGroupMethod()) + .addMethod(getAddAddressGroupItemsMethod()) + .addMethod(getRemoveAddressGroupItemsMethod()) + .addMethod(getCloneAddressGroupItemsMethod()) + .addMethod(getDeleteAddressGroupMethod()) + .addMethod(getListAddressGroupReferencesMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AddAddressGroupItemsRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AddAddressGroupItemsRequest.java new file mode 100644 index 000000000000..08ed8ba77e35 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AddAddressGroupItemsRequest.java @@ -0,0 +1,1226 @@ +/* + * 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/networksecurity/v1/address_group.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
    + * Request used by the AddAddressGroupItems method.
    + * 
    + * + * Protobuf type {@code google.cloud.networksecurity.v1.AddAddressGroupItemsRequest} + */ +public final class AddAddressGroupItemsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.AddAddressGroupItemsRequest) + AddAddressGroupItemsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use AddAddressGroupItemsRequest.newBuilder() to construct. + private AddAddressGroupItemsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AddAddressGroupItemsRequest() { + addressGroup_ = ""; + items_ = com.google.protobuf.LazyStringArrayList.emptyList(); + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AddAddressGroupItemsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_AddAddressGroupItemsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_AddAddressGroupItemsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest.class, + com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest.Builder.class); + } + + public static final int ADDRESS_GROUP_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object addressGroup_ = ""; + + /** + * + * + *
    +   * Required. A name of the AddressGroup to add items to. Must be in the format
    +   * `projects|organization/*/locations/{location}/addressGroups/*`.
    +   * 
    + * + * + * string address_group = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The addressGroup. + */ + @java.lang.Override + public java.lang.String getAddressGroup() { + java.lang.Object ref = addressGroup_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + addressGroup_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. A name of the AddressGroup to add items to. Must be in the format
    +   * `projects|organization/*/locations/{location}/addressGroups/*`.
    +   * 
    + * + * + * string address_group = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for addressGroup. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAddressGroupBytes() { + java.lang.Object ref = addressGroup_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + addressGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ITEMS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList items_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
    +   * Required. List of items to add.
    +   * 
    + * + * repeated string items = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the items. + */ + public com.google.protobuf.ProtocolStringList getItemsList() { + return items_; + } + + /** + * + * + *
    +   * Required. List of items to add.
    +   * 
    + * + * repeated string items = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of items. + */ + public int getItemsCount() { + return items_.size(); + } + + /** + * + * + *
    +   * Required. List of items to add.
    +   * 
    + * + * repeated string items = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The items at the given index. + */ + public java.lang.String getItems(int index) { + return items_.get(index); + } + + /** + * + * + *
    +   * Required. List of items to add.
    +   * 
    + * + * repeated string items = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the items at the given index. + */ + public com.google.protobuf.ByteString getItemsBytes(int index) { + return items_.getByteString(index); + } + + 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 will know to
    +   * ignore the request if it has already been completed. The server will
    +   * guarantee that for at least 60 minutes since the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and
    +   * the request times out. If you make the request again with the same request
    +   * ID, the server can check if original operation with the same request ID
    +   * was received, and if so, will ignore the second request. This prevents
    +   * clients from accidentally creating duplicate commitments.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID is
    +   * not supported (00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. An optional request ID to identify requests. Specify a unique
    +   * request ID so that if you must retry your request, the server will know to
    +   * ignore the request if it has already been completed. The server will
    +   * guarantee that for at least 60 minutes since the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and
    +   * the request times out. If you make the request again with the same request
    +   * ID, the server can check if original operation with the same request ID
    +   * was received, and if so, will ignore the second request. This prevents
    +   * clients from accidentally creating duplicate commitments.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID is
    +   * not supported (00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(addressGroup_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, addressGroup_); + } + for (int i = 0; i < items_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, items_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(addressGroup_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, addressGroup_); + } + { + int dataSize = 0; + for (int i = 0; i < items_.size(); i++) { + dataSize += computeStringSizeNoTag(items_.getRaw(i)); + } + size += dataSize; + size += 1 * getItemsList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest other = + (com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest) obj; + + if (!getAddressGroup().equals(other.getAddressGroup())) return false; + if (!getItemsList().equals(other.getItemsList())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ADDRESS_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getAddressGroup().hashCode(); + if (getItemsCount() > 0) { + hash = (37 * hash) + ITEMS_FIELD_NUMBER; + hash = (53 * hash) + getItemsList().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest 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.networksecurity.v1.AddAddressGroupItemsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest parseFrom( + 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.networksecurity.v1.AddAddressGroupItemsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest 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.networksecurity.v1.AddAddressGroupItemsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest 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.networksecurity.v1.AddAddressGroupItemsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest 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.networksecurity.v1.AddAddressGroupItemsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request used by the AddAddressGroupItems method.
    +   * 
    + * + * Protobuf type {@code google.cloud.networksecurity.v1.AddAddressGroupItemsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.AddAddressGroupItemsRequest) + com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_AddAddressGroupItemsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_AddAddressGroupItemsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest.class, + com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + addressGroup_ = ""; + items_ = com.google.protobuf.LazyStringArrayList.emptyList(); + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_AddAddressGroupItemsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest build() { + com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest buildPartial() { + com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest result = + new com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.addressGroup_ = addressGroup_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + items_.makeImmutable(); + result.items_ = items_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + } + + @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.networksecurity.v1.AddAddressGroupItemsRequest) { + return mergeFrom((com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest other) { + if (other + == com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest.getDefaultInstance()) + return this; + if (!other.getAddressGroup().isEmpty()) { + addressGroup_ = other.addressGroup_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.items_.isEmpty()) { + if (items_.isEmpty()) { + items_ = other.items_; + bitField0_ |= 0x00000002; + } else { + ensureItemsIsMutable(); + items_.addAll(other.items_); + } + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + addressGroup_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureItemsIsMutable(); + items_.add(s); + break; + } // case 18 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object addressGroup_ = ""; + + /** + * + * + *
    +     * Required. A name of the AddressGroup to add items to. Must be in the format
    +     * `projects|organization/*/locations/{location}/addressGroups/*`.
    +     * 
    + * + * + * string address_group = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The addressGroup. + */ + public java.lang.String getAddressGroup() { + java.lang.Object ref = addressGroup_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + addressGroup_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. A name of the AddressGroup to add items to. Must be in the format
    +     * `projects|organization/*/locations/{location}/addressGroups/*`.
    +     * 
    + * + * + * string address_group = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for addressGroup. + */ + public com.google.protobuf.ByteString getAddressGroupBytes() { + java.lang.Object ref = addressGroup_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + addressGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. A name of the AddressGroup to add items to. Must be in the format
    +     * `projects|organization/*/locations/{location}/addressGroups/*`.
    +     * 
    + * + * + * string address_group = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The addressGroup to set. + * @return This builder for chaining. + */ + public Builder setAddressGroup(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + addressGroup_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. A name of the AddressGroup to add items to. Must be in the format
    +     * `projects|organization/*/locations/{location}/addressGroups/*`.
    +     * 
    + * + * + * string address_group = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAddressGroup() { + addressGroup_ = getDefaultInstance().getAddressGroup(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. A name of the AddressGroup to add items to. Must be in the format
    +     * `projects|organization/*/locations/{location}/addressGroups/*`.
    +     * 
    + * + * + * string address_group = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for addressGroup to set. + * @return This builder for chaining. + */ + public Builder setAddressGroupBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + addressGroup_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList items_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureItemsIsMutable() { + if (!items_.isModifiable()) { + items_ = new com.google.protobuf.LazyStringArrayList(items_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
    +     * Required. List of items to add.
    +     * 
    + * + * repeated string items = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the items. + */ + public com.google.protobuf.ProtocolStringList getItemsList() { + items_.makeImmutable(); + return items_; + } + + /** + * + * + *
    +     * Required. List of items to add.
    +     * 
    + * + * repeated string items = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of items. + */ + public int getItemsCount() { + return items_.size(); + } + + /** + * + * + *
    +     * Required. List of items to add.
    +     * 
    + * + * repeated string items = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The items at the given index. + */ + public java.lang.String getItems(int index) { + return items_.get(index); + } + + /** + * + * + *
    +     * Required. List of items to add.
    +     * 
    + * + * repeated string items = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the items at the given index. + */ + public com.google.protobuf.ByteString getItemsBytes(int index) { + return items_.getByteString(index); + } + + /** + * + * + *
    +     * Required. List of items to add.
    +     * 
    + * + * repeated string items = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index to set the value at. + * @param value The items to set. + * @return This builder for chaining. + */ + public Builder setItems(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. List of items to add.
    +     * 
    + * + * repeated string items = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The items to add. + * @return This builder for chaining. + */ + public Builder addItems(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. List of items to add.
    +     * 
    + * + * repeated string items = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param values The items to add. + * @return This builder for chaining. + */ + public Builder addAllItems(java.lang.Iterable values) { + ensureItemsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, items_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. List of items to add.
    +     * 
    + * + * repeated string items = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearItems() { + items_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. List of items to add.
    +     * 
    + * + * repeated string items = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes of the items to add. + * @return This builder for chaining. + */ + public Builder addItemsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureItemsIsMutable(); + items_.add(value); + bitField0_ |= 0x00000002; + 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 will know to
    +     * ignore the request if it has already been completed. The server will
    +     * guarantee that for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, will ignore the second request. This prevents
    +     * clients from accidentally creating duplicate commitments.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID is
    +     * not supported (00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. An optional request ID to identify requests. Specify a unique
    +     * request ID so that if you must retry your request, the server will know to
    +     * ignore the request if it has already been completed. The server will
    +     * guarantee that for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, will ignore the second request. This prevents
    +     * clients from accidentally creating duplicate commitments.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID is
    +     * not supported (00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. An optional request ID to identify requests. Specify a unique
    +     * request ID so that if you must retry your request, the server will know to
    +     * ignore the request if it has already been completed. The server will
    +     * guarantee that for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, will ignore the second request. This prevents
    +     * clients from accidentally creating duplicate commitments.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID is
    +     * not supported (00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + 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 will know to
    +     * ignore the request if it has already been completed. The server will
    +     * guarantee that for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, will ignore the second request. This prevents
    +     * clients from accidentally creating duplicate commitments.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID is
    +     * not supported (00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 will know to
    +     * ignore the request if it has already been completed. The server will
    +     * guarantee that for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, will ignore the second request. This prevents
    +     * clients from accidentally creating duplicate commitments.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID is
    +     * not supported (00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + 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.networksecurity.v1.AddAddressGroupItemsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.AddAddressGroupItemsRequest) + private static final com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest(); + } + + public static com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AddAddressGroupItemsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.networksecurity.v1.AddAddressGroupItemsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AddAddressGroupItemsRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AddAddressGroupItemsRequestOrBuilder.java new file mode 100644 index 000000000000..404234815d94 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AddAddressGroupItemsRequestOrBuilder.java @@ -0,0 +1,162 @@ +/* + * 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/networksecurity/v1/address_group.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networksecurity.v1; + +public interface AddAddressGroupItemsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.AddAddressGroupItemsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. A name of the AddressGroup to add items to. Must be in the format
    +   * `projects|organization/*/locations/{location}/addressGroups/*`.
    +   * 
    + * + * + * string address_group = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The addressGroup. + */ + java.lang.String getAddressGroup(); + + /** + * + * + *
    +   * Required. A name of the AddressGroup to add items to. Must be in the format
    +   * `projects|organization/*/locations/{location}/addressGroups/*`.
    +   * 
    + * + * + * string address_group = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for addressGroup. + */ + com.google.protobuf.ByteString getAddressGroupBytes(); + + /** + * + * + *
    +   * Required. List of items to add.
    +   * 
    + * + * repeated string items = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the items. + */ + java.util.List getItemsList(); + + /** + * + * + *
    +   * Required. List of items to add.
    +   * 
    + * + * repeated string items = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of items. + */ + int getItemsCount(); + + /** + * + * + *
    +   * Required. List of items to add.
    +   * 
    + * + * repeated string items = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The items at the given index. + */ + java.lang.String getItems(int index); + + /** + * + * + *
    +   * Required. List of items to add.
    +   * 
    + * + * repeated string items = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the items at the given index. + */ + com.google.protobuf.ByteString getItemsBytes(int index); + + /** + * + * + *
    +   * Optional. An optional request ID to identify requests. Specify a unique
    +   * request ID so that if you must retry your request, the server will know to
    +   * ignore the request if it has already been completed. The server will
    +   * guarantee that for at least 60 minutes since the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and
    +   * the request times out. If you make the request again with the same request
    +   * ID, the server can check if original operation with the same request ID
    +   * was received, and if so, will ignore the second request. This prevents
    +   * clients from accidentally creating duplicate commitments.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID is
    +   * not supported (00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 will know to
    +   * ignore the request if it has already been completed. The server will
    +   * guarantee that for at least 60 minutes since the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and
    +   * the request times out. If you make the request again with the same request
    +   * ID, the server can check if original operation with the same request ID
    +   * was received, and if so, will ignore the second request. This prevents
    +   * clients from accidentally creating duplicate commitments.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID is
    +   * not supported (00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AddressGroup.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AddressGroup.java new file mode 100644 index 000000000000..29805605819e --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AddressGroup.java @@ -0,0 +1,3307 @@ +/* + * 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/networksecurity/v1/address_group.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
    + * AddressGroup is a resource that specifies how a collection of IP/DNS used
    + * in Firewall Policy.
    + * 
    + * + * Protobuf type {@code google.cloud.networksecurity.v1.AddressGroup} + */ +public final class AddressGroup extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.AddressGroup) + AddressGroupOrBuilder { + private static final long serialVersionUID = 0L; + + // Use AddressGroup.newBuilder() to construct. + private AddressGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AddressGroup() { + name_ = ""; + description_ = ""; + type_ = 0; + items_ = com.google.protobuf.LazyStringArrayList.emptyList(); + selfLink_ = ""; + purpose_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AddressGroup(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_AddressGroup_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 5: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_AddressGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.AddressGroup.class, + com.google.cloud.networksecurity.v1.AddressGroup.Builder.class); + } + + /** + * + * + *
    +   * Possible type of the Address Group.
    +   * 
    + * + * Protobuf enum {@code google.cloud.networksecurity.v1.AddressGroup.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Default value.
    +     * 
    + * + * TYPE_UNSPECIFIED = 0; + */ + TYPE_UNSPECIFIED(0), + /** + * + * + *
    +     * IP v4 ranges.
    +     * 
    + * + * IPV4 = 1; + */ + IPV4(1), + /** + * + * + *
    +     * IP v6 ranges.
    +     * 
    + * + * IPV6 = 2; + */ + IPV6(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * Default value.
    +     * 
    + * + * TYPE_UNSPECIFIED = 0; + */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +     * IP v4 ranges.
    +     * 
    + * + * IPV4 = 1; + */ + public static final int IPV4_VALUE = 1; + + /** + * + * + *
    +     * IP v6 ranges.
    +     * 
    + * + * IPV6 = 2; + */ + public static final int IPV6_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 Type valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Type forNumber(int value) { + switch (value) { + case 0: + return TYPE_UNSPECIFIED; + case 1: + return IPV4; + case 2: + return IPV6; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AddressGroup.getDescriptor().getEnumTypes().get(0); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networksecurity.v1.AddressGroup.Type) + } + + /** + * + * + *
    +   * Purpose of the Address Group.
    +   * 
    + * + * Protobuf enum {@code google.cloud.networksecurity.v1.AddressGroup.Purpose} + */ + public enum Purpose implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Default value. Should never happen.
    +     * 
    + * + * PURPOSE_UNSPECIFIED = 0; + */ + PURPOSE_UNSPECIFIED(0), + /** + * + * + *
    +     * Address Group is distributed to VMC, and is usable in Firewall Policies
    +     * and other systems that rely on VMC.
    +     * 
    + * + * DEFAULT = 1; + */ + DEFAULT(1), + /** + * + * + *
    +     * Address Group is usable in Cloud Armor.
    +     * 
    + * + * CLOUD_ARMOR = 2; + */ + CLOUD_ARMOR(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * Default value. Should never happen.
    +     * 
    + * + * PURPOSE_UNSPECIFIED = 0; + */ + public static final int PURPOSE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +     * Address Group is distributed to VMC, and is usable in Firewall Policies
    +     * and other systems that rely on VMC.
    +     * 
    + * + * DEFAULT = 1; + */ + public static final int DEFAULT_VALUE = 1; + + /** + * + * + *
    +     * Address Group is usable in Cloud Armor.
    +     * 
    + * + * CLOUD_ARMOR = 2; + */ + public static final int CLOUD_ARMOR_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 Purpose 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 Purpose forNumber(int value) { + switch (value) { + case 0: + return PURPOSE_UNSPECIFIED; + case 1: + return DEFAULT; + case 2: + return CLOUD_ARMOR; + 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 Purpose findValueByNumber(int number) { + return Purpose.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.networksecurity.v1.AddressGroup.getDescriptor().getEnumTypes().get(1); + } + + private static final Purpose[] VALUES = values(); + + public static Purpose 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 Purpose(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networksecurity.v1.AddressGroup.Purpose) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Required. Name of the AddressGroup resource. It matches pattern
    +   * `projects/*/locations/{location}/addressGroups/<address_group>`.
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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. Name of the AddressGroup resource. It matches pattern
    +   * `projects/*/locations/{location}/addressGroups/<address_group>`.
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 DESCRIPTION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
    +   * Optional. Free-text description of the resource.
    +   * 
    + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. Free-text description of the resource.
    +   * 
    + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
    +   * Output only. The timestamp when the resource was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Output only. The timestamp when the resource was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
    +   * Output only. The timestamp when the resource was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
    +   * Output only. The timestamp when the resource was updated.
    +   * 
    + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +   * Output only. The timestamp when the resource was updated.
    +   * 
    + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
    +   * Output only. The timestamp when the resource was updated.
    +   * 
    + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int LABELS_FIELD_NUMBER = 5; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_AddressGroup_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
    +   * Optional. Set of label tags associated with the AddressGroup resource.
    +   * 
    + * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
    +   * Optional. Set of label tags associated with the AddressGroup resource.
    +   * 
    + * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
    +   * Optional. Set of label tags associated with the AddressGroup resource.
    +   * 
    + * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
    +   * Optional. Set of label tags associated with the AddressGroup resource.
    +   * 
    + * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int TYPE_FIELD_NUMBER = 6; + private int type_ = 0; + + /** + * + * + *
    +   * Required. The type of the Address Group. Possible values are "IPv4" or
    +   * "IPV6".
    +   * 
    + * + * + * .google.cloud.networksecurity.v1.AddressGroup.Type type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
    +   * Required. The type of the Address Group. Possible values are "IPv4" or
    +   * "IPV6".
    +   * 
    + * + * + * .google.cloud.networksecurity.v1.AddressGroup.Type type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AddressGroup.Type getType() { + com.google.cloud.networksecurity.v1.AddressGroup.Type result = + com.google.cloud.networksecurity.v1.AddressGroup.Type.forNumber(type_); + return result == null + ? com.google.cloud.networksecurity.v1.AddressGroup.Type.UNRECOGNIZED + : result; + } + + public static final int ITEMS_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList items_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
    +   * Optional. List of items.
    +   * 
    + * + * repeated string items = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the items. + */ + public com.google.protobuf.ProtocolStringList getItemsList() { + return items_; + } + + /** + * + * + *
    +   * Optional. List of items.
    +   * 
    + * + * repeated string items = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of items. + */ + public int getItemsCount() { + return items_.size(); + } + + /** + * + * + *
    +   * Optional. List of items.
    +   * 
    + * + * repeated string items = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The items at the given index. + */ + public java.lang.String getItems(int index) { + return items_.get(index); + } + + /** + * + * + *
    +   * Optional. List of items.
    +   * 
    + * + * repeated string items = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the items at the given index. + */ + public com.google.protobuf.ByteString getItemsBytes(int index) { + return items_.getByteString(index); + } + + public static final int CAPACITY_FIELD_NUMBER = 8; + private int capacity_ = 0; + + /** + * + * + *
    +   * Required. Capacity of the Address Group
    +   * 
    + * + * int32 capacity = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The capacity. + */ + @java.lang.Override + public int getCapacity() { + return capacity_; + } + + public static final int SELF_LINK_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object selfLink_ = ""; + + /** + * + * + *
    +   * Output only. Server-defined fully-qualified URL for this resource.
    +   * 
    + * + * string self_link = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The selfLink. + */ + @java.lang.Override + public java.lang.String getSelfLink() { + java.lang.Object ref = selfLink_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + selfLink_ = s; + return s; + } + } + + /** + * + * + *
    +   * Output only. Server-defined fully-qualified URL for this resource.
    +   * 
    + * + * string self_link = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for selfLink. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSelfLinkBytes() { + java.lang.Object ref = selfLink_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + selfLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PURPOSE_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private java.util.List purpose_; + + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.networksecurity.v1.AddressGroup.Purpose> + purpose_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.networksecurity.v1.AddressGroup.Purpose>() { + public com.google.cloud.networksecurity.v1.AddressGroup.Purpose convert( + java.lang.Integer from) { + com.google.cloud.networksecurity.v1.AddressGroup.Purpose result = + com.google.cloud.networksecurity.v1.AddressGroup.Purpose.forNumber(from); + return result == null + ? com.google.cloud.networksecurity.v1.AddressGroup.Purpose.UNRECOGNIZED + : result; + } + }; + + /** + * + * + *
    +   * Optional. List of supported purposes of the Address Group.
    +   * 
    + * + * + * repeated .google.cloud.networksecurity.v1.AddressGroup.Purpose purpose = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the purpose. + */ + @java.lang.Override + public java.util.List getPurposeList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.networksecurity.v1.AddressGroup.Purpose>( + purpose_, purpose_converter_); + } + + /** + * + * + *
    +   * Optional. List of supported purposes of the Address Group.
    +   * 
    + * + * + * repeated .google.cloud.networksecurity.v1.AddressGroup.Purpose purpose = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of purpose. + */ + @java.lang.Override + public int getPurposeCount() { + return purpose_.size(); + } + + /** + * + * + *
    +   * Optional. List of supported purposes of the Address Group.
    +   * 
    + * + * + * repeated .google.cloud.networksecurity.v1.AddressGroup.Purpose purpose = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The purpose at the given index. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AddressGroup.Purpose getPurpose(int index) { + return purpose_converter_.convert(purpose_.get(index)); + } + + /** + * + * + *
    +   * Optional. List of supported purposes of the Address Group.
    +   * 
    + * + * + * repeated .google.cloud.networksecurity.v1.AddressGroup.Purpose purpose = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for purpose. + */ + @java.lang.Override + public java.util.List getPurposeValueList() { + return purpose_; + } + + /** + * + * + *
    +   * Optional. List of supported purposes of the Address Group.
    +   * 
    + * + * + * repeated .google.cloud.networksecurity.v1.AddressGroup.Purpose purpose = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of purpose at the given index. + */ + @java.lang.Override + public int getPurposeValue(int index) { + return purpose_.get(index); + } + + private int purposeMemoizedSerializedSize; + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getUpdateTime()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 5); + if (type_ + != com.google.cloud.networksecurity.v1.AddressGroup.Type.TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(6, type_); + } + for (int i = 0; i < items_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, items_.getRaw(i)); + } + if (capacity_ != 0) { + output.writeInt32(8, capacity_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfLink_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, selfLink_); + } + if (getPurposeList().size() > 0) { + output.writeUInt32NoTag(82); + output.writeUInt32NoTag(purposeMemoizedSerializedSize); + } + for (int i = 0; i < purpose_.size(); i++) { + output.writeEnumNoTag(purpose_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, labels__); + } + if (type_ + != com.google.cloud.networksecurity.v1.AddressGroup.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, type_); + } + { + int dataSize = 0; + for (int i = 0; i < items_.size(); i++) { + dataSize += computeStringSizeNoTag(items_.getRaw(i)); + } + size += dataSize; + size += 1 * getItemsList().size(); + } + if (capacity_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, capacity_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfLink_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, selfLink_); + } + { + int dataSize = 0; + for (int i = 0; i < purpose_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(purpose_.get(i)); + } + size += dataSize; + if (!getPurposeList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + purposeMemoizedSerializedSize = dataSize; + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.networksecurity.v1.AddressGroup)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.AddressGroup other = + (com.google.cloud.networksecurity.v1.AddressGroup) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (type_ != other.type_) return false; + if (!getItemsList().equals(other.getItemsList())) return false; + if (getCapacity() != other.getCapacity()) return false; + if (!getSelfLink().equals(other.getSelfLink())) return false; + if (!purpose_.equals(other.purpose_)) 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) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + if (getItemsCount() > 0) { + hash = (37 * hash) + ITEMS_FIELD_NUMBER; + hash = (53 * hash) + getItemsList().hashCode(); + } + hash = (37 * hash) + CAPACITY_FIELD_NUMBER; + hash = (53 * hash) + getCapacity(); + hash = (37 * hash) + SELF_LINK_FIELD_NUMBER; + hash = (53 * hash) + getSelfLink().hashCode(); + if (getPurposeCount() > 0) { + hash = (37 * hash) + PURPOSE_FIELD_NUMBER; + hash = (53 * hash) + purpose_.hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.AddressGroup parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AddressGroup 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.networksecurity.v1.AddressGroup parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AddressGroup parseFrom( + 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.networksecurity.v1.AddressGroup parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.AddressGroup parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.AddressGroup parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AddressGroup 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.networksecurity.v1.AddressGroup parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AddressGroup 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.networksecurity.v1.AddressGroup parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.AddressGroup 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.networksecurity.v1.AddressGroup prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
    +   * AddressGroup is a resource that specifies how a collection of IP/DNS used
    +   * in Firewall Policy.
    +   * 
    + * + * Protobuf type {@code google.cloud.networksecurity.v1.AddressGroup} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.AddressGroup) + com.google.cloud.networksecurity.v1.AddressGroupOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_AddressGroup_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 5: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 5: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_AddressGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.AddressGroup.class, + com.google.cloud.networksecurity.v1.AddressGroup.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.AddressGroup.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + description_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + type_ = 0; + items_ = com.google.protobuf.LazyStringArrayList.emptyList(); + capacity_ = 0; + selfLink_ = ""; + purpose_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_AddressGroup_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AddressGroup getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.AddressGroup.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AddressGroup build() { + com.google.cloud.networksecurity.v1.AddressGroup result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.AddressGroup buildPartial() { + com.google.cloud.networksecurity.v1.AddressGroup result = + new com.google.cloud.networksecurity.v1.AddressGroup(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networksecurity.v1.AddressGroup result) { + if (((bitField0_ & 0x00000200) != 0)) { + purpose_ = java.util.Collections.unmodifiableList(purpose_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.purpose_ = purpose_; + } + + private void buildPartial0(com.google.cloud.networksecurity.v1.AddressGroup result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + items_.makeImmutable(); + result.items_ = items_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.capacity_ = capacity_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.selfLink_ = selfLink_; + } + 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.networksecurity.v1.AddressGroup) { + return mergeFrom((com.google.cloud.networksecurity.v1.AddressGroup) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networksecurity.v1.AddressGroup other) { + if (other == com.google.cloud.networksecurity.v1.AddressGroup.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000010; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.items_.isEmpty()) { + if (items_.isEmpty()) { + items_ = other.items_; + bitField0_ |= 0x00000040; + } else { + ensureItemsIsMutable(); + items_.addAll(other.items_); + } + onChanged(); + } + if (other.getCapacity() != 0) { + setCapacity(other.getCapacity()); + } + if (!other.getSelfLink().isEmpty()) { + selfLink_ = other.selfLink_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (!other.purpose_.isEmpty()) { + if (purpose_.isEmpty()) { + purpose_ = other.purpose_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensurePurposeIsMutable(); + purpose_.addAll(other.purpose_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureItemsIsMutable(); + items_.add(s); + break; + } // case 58 + case 64: + { + capacity_ = input.readInt32(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 74: + { + selfLink_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 80: + { + int tmpRaw = input.readEnum(); + ensurePurposeIsMutable(); + purpose_.add(tmpRaw); + break; + } // case 80 + case 82: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensurePurposeIsMutable(); + purpose_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 82 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
    +     * Required. Name of the AddressGroup resource. It matches pattern
    +     * `projects/*/locations/{location}/addressGroups/<address_group>`.
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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. Name of the AddressGroup resource. It matches pattern
    +     * `projects/*/locations/{location}/addressGroups/<address_group>`.
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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. Name of the AddressGroup resource. It matches pattern
    +     * `projects/*/locations/{location}/addressGroups/<address_group>`.
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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. Name of the AddressGroup resource. It matches pattern
    +     * `projects/*/locations/{location}/addressGroups/<address_group>`.
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Name of the AddressGroup resource. It matches pattern
    +     * `projects/*/locations/{location}/addressGroups/<address_group>`.
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 description_ = ""; + + /** + * + * + *
    +     * Optional. Free-text description of the resource.
    +     * 
    + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. Free-text description of the resource.
    +     * 
    + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. Free-text description of the resource.
    +     * 
    + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Free-text description of the resource.
    +     * 
    + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Free-text description of the resource.
    +     * 
    + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
    +     * Output only. The timestamp when the resource was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +     * Output only. The timestamp when the resource was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Output only. The timestamp when the resource was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The timestamp when the resource was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The timestamp when the resource was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Output only. The timestamp when the resource was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The timestamp when the resource was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Output only. The timestamp when the resource was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
    +     * Output only. The timestamp when the resource was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
    +     * Output only. The timestamp when the resource was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
    +     * Output only. The timestamp when the resource was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Output only. The timestamp when the resource was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The timestamp when the resource was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The timestamp when the resource was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Output only. The timestamp when the resource was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The timestamp when the resource was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Output only. The timestamp when the resource was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
    +     * Output only. The timestamp when the resource was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000010; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
    +     * Optional. Set of label tags associated with the AddressGroup resource.
    +     * 
    + * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
    +     * Optional. Set of label tags associated with the AddressGroup resource.
    +     * 
    + * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
    +     * Optional. Set of label tags associated with the AddressGroup resource.
    +     * 
    + * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
    +     * Optional. Set of label tags associated with the AddressGroup resource.
    +     * 
    + * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000010); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
    +     * Optional. Set of label tags associated with the AddressGroup resource.
    +     * 
    + * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000010; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
    +     * Optional. Set of label tags associated with the AddressGroup resource.
    +     * 
    + * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000010; + return this; + } + + /** + * + * + *
    +     * Optional. Set of label tags associated with the AddressGroup resource.
    +     * 
    + * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000010; + return this; + } + + private int type_ = 0; + + /** + * + * + *
    +     * Required. The type of the Address Group. Possible values are "IPv4" or
    +     * "IPV6".
    +     * 
    + * + * + * .google.cloud.networksecurity.v1.AddressGroup.Type type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
    +     * Required. The type of the Address Group. Possible values are "IPv4" or
    +     * "IPV6".
    +     * 
    + * + * + * .google.cloud.networksecurity.v1.AddressGroup.Type type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + type_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The type of the Address Group. Possible values are "IPv4" or
    +     * "IPV6".
    +     * 
    + * + * + * .google.cloud.networksecurity.v1.AddressGroup.Type type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AddressGroup.Type getType() { + com.google.cloud.networksecurity.v1.AddressGroup.Type result = + com.google.cloud.networksecurity.v1.AddressGroup.Type.forNumber(type_); + return result == null + ? com.google.cloud.networksecurity.v1.AddressGroup.Type.UNRECOGNIZED + : result; + } + + /** + * + * + *
    +     * Required. The type of the Address Group. Possible values are "IPv4" or
    +     * "IPV6".
    +     * 
    + * + * + * .google.cloud.networksecurity.v1.AddressGroup.Type type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.cloud.networksecurity.v1.AddressGroup.Type value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + type_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The type of the Address Group. Possible values are "IPv4" or
    +     * "IPV6".
    +     * 
    + * + * + * .google.cloud.networksecurity.v1.AddressGroup.Type type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000020); + type_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList items_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureItemsIsMutable() { + if (!items_.isModifiable()) { + items_ = new com.google.protobuf.LazyStringArrayList(items_); + } + bitField0_ |= 0x00000040; + } + + /** + * + * + *
    +     * Optional. List of items.
    +     * 
    + * + * repeated string items = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the items. + */ + public com.google.protobuf.ProtocolStringList getItemsList() { + items_.makeImmutable(); + return items_; + } + + /** + * + * + *
    +     * Optional. List of items.
    +     * 
    + * + * repeated string items = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of items. + */ + public int getItemsCount() { + return items_.size(); + } + + /** + * + * + *
    +     * Optional. List of items.
    +     * 
    + * + * repeated string items = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The items at the given index. + */ + public java.lang.String getItems(int index) { + return items_.get(index); + } + + /** + * + * + *
    +     * Optional. List of items.
    +     * 
    + * + * repeated string items = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the items at the given index. + */ + public com.google.protobuf.ByteString getItemsBytes(int index) { + return items_.getByteString(index); + } + + /** + * + * + *
    +     * Optional. List of items.
    +     * 
    + * + * repeated string items = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The items to set. + * @return This builder for chaining. + */ + public Builder setItems(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.set(index, value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. List of items.
    +     * 
    + * + * repeated string items = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The items to add. + * @return This builder for chaining. + */ + public Builder addItems(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. List of items.
    +     * 
    + * + * repeated string items = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The items to add. + * @return This builder for chaining. + */ + public Builder addAllItems(java.lang.Iterable values) { + ensureItemsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, items_); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. List of items.
    +     * 
    + * + * repeated string items = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearItems() { + items_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + ; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. List of items.
    +     * 
    + * + * repeated string items = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the items to add. + * @return This builder for chaining. + */ + public Builder addItemsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureItemsIsMutable(); + items_.add(value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private int capacity_; + + /** + * + * + *
    +     * Required. Capacity of the Address Group
    +     * 
    + * + * int32 capacity = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The capacity. + */ + @java.lang.Override + public int getCapacity() { + return capacity_; + } + + /** + * + * + *
    +     * Required. Capacity of the Address Group
    +     * 
    + * + * int32 capacity = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The capacity to set. + * @return This builder for chaining. + */ + public Builder setCapacity(int value) { + + capacity_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Capacity of the Address Group
    +     * 
    + * + * int32 capacity = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearCapacity() { + bitField0_ = (bitField0_ & ~0x00000080); + capacity_ = 0; + onChanged(); + return this; + } + + private java.lang.Object selfLink_ = ""; + + /** + * + * + *
    +     * Output only. Server-defined fully-qualified URL for this resource.
    +     * 
    + * + * string self_link = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The selfLink. + */ + public java.lang.String getSelfLink() { + java.lang.Object ref = selfLink_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + selfLink_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Output only. Server-defined fully-qualified URL for this resource.
    +     * 
    + * + * string self_link = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for selfLink. + */ + public com.google.protobuf.ByteString getSelfLinkBytes() { + java.lang.Object ref = selfLink_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + selfLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Output only. Server-defined fully-qualified URL for this resource.
    +     * 
    + * + * string self_link = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The selfLink to set. + * @return This builder for chaining. + */ + public Builder setSelfLink(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + selfLink_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Server-defined fully-qualified URL for this resource.
    +     * 
    + * + * string self_link = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSelfLink() { + selfLink_ = getDefaultInstance().getSelfLink(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Server-defined fully-qualified URL for this resource.
    +     * 
    + * + * string self_link = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for selfLink to set. + * @return This builder for chaining. + */ + public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + selfLink_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private java.util.List purpose_ = java.util.Collections.emptyList(); + + private void ensurePurposeIsMutable() { + if (!((bitField0_ & 0x00000200) != 0)) { + purpose_ = new java.util.ArrayList(purpose_); + bitField0_ |= 0x00000200; + } + } + + /** + * + * + *
    +     * Optional. List of supported purposes of the Address Group.
    +     * 
    + * + * + * repeated .google.cloud.networksecurity.v1.AddressGroup.Purpose purpose = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the purpose. + */ + public java.util.List + getPurposeList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.networksecurity.v1.AddressGroup.Purpose>( + purpose_, purpose_converter_); + } + + /** + * + * + *
    +     * Optional. List of supported purposes of the Address Group.
    +     * 
    + * + * + * repeated .google.cloud.networksecurity.v1.AddressGroup.Purpose purpose = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of purpose. + */ + public int getPurposeCount() { + return purpose_.size(); + } + + /** + * + * + *
    +     * Optional. List of supported purposes of the Address Group.
    +     * 
    + * + * + * repeated .google.cloud.networksecurity.v1.AddressGroup.Purpose purpose = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The purpose at the given index. + */ + public com.google.cloud.networksecurity.v1.AddressGroup.Purpose getPurpose(int index) { + return purpose_converter_.convert(purpose_.get(index)); + } + + /** + * + * + *
    +     * Optional. List of supported purposes of the Address Group.
    +     * 
    + * + * + * repeated .google.cloud.networksecurity.v1.AddressGroup.Purpose purpose = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The purpose to set. + * @return This builder for chaining. + */ + public Builder setPurpose( + int index, com.google.cloud.networksecurity.v1.AddressGroup.Purpose value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePurposeIsMutable(); + purpose_.set(index, value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. List of supported purposes of the Address Group.
    +     * 
    + * + * + * repeated .google.cloud.networksecurity.v1.AddressGroup.Purpose purpose = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The purpose to add. + * @return This builder for chaining. + */ + public Builder addPurpose(com.google.cloud.networksecurity.v1.AddressGroup.Purpose value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePurposeIsMutable(); + purpose_.add(value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. List of supported purposes of the Address Group.
    +     * 
    + * + * + * repeated .google.cloud.networksecurity.v1.AddressGroup.Purpose purpose = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The purpose to add. + * @return This builder for chaining. + */ + public Builder addAllPurpose( + java.lang.Iterable + values) { + ensurePurposeIsMutable(); + for (com.google.cloud.networksecurity.v1.AddressGroup.Purpose value : values) { + purpose_.add(value.getNumber()); + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. List of supported purposes of the Address Group.
    +     * 
    + * + * + * repeated .google.cloud.networksecurity.v1.AddressGroup.Purpose purpose = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearPurpose() { + purpose_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. List of supported purposes of the Address Group.
    +     * 
    + * + * + * repeated .google.cloud.networksecurity.v1.AddressGroup.Purpose purpose = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for purpose. + */ + public java.util.List getPurposeValueList() { + return java.util.Collections.unmodifiableList(purpose_); + } + + /** + * + * + *
    +     * Optional. List of supported purposes of the Address Group.
    +     * 
    + * + * + * repeated .google.cloud.networksecurity.v1.AddressGroup.Purpose purpose = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of purpose at the given index. + */ + public int getPurposeValue(int index) { + return purpose_.get(index); + } + + /** + * + * + *
    +     * Optional. List of supported purposes of the Address Group.
    +     * 
    + * + * + * repeated .google.cloud.networksecurity.v1.AddressGroup.Purpose purpose = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for purpose to set. + * @return This builder for chaining. + */ + public Builder setPurposeValue(int index, int value) { + ensurePurposeIsMutable(); + purpose_.set(index, value); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. List of supported purposes of the Address Group.
    +     * 
    + * + * + * repeated .google.cloud.networksecurity.v1.AddressGroup.Purpose purpose = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for purpose to add. + * @return This builder for chaining. + */ + public Builder addPurposeValue(int value) { + ensurePurposeIsMutable(); + purpose_.add(value); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. List of supported purposes of the Address Group.
    +     * 
    + * + * + * repeated .google.cloud.networksecurity.v1.AddressGroup.Purpose purpose = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The enum numeric values on the wire for purpose to add. + * @return This builder for chaining. + */ + public Builder addAllPurposeValue(java.lang.Iterable values) { + ensurePurposeIsMutable(); + for (int value : values) { + purpose_.add(value); + } + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.AddressGroup) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.AddressGroup) + private static final com.google.cloud.networksecurity.v1.AddressGroup DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.AddressGroup(); + } + + public static com.google.cloud.networksecurity.v1.AddressGroup getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AddressGroup parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.networksecurity.v1.AddressGroup getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AddressGroupName.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AddressGroupName.java new file mode 100644 index 000000000000..02fe17fe4e3e --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AddressGroupName.java @@ -0,0 +1,356 @@ +/* + * 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.networksecurity.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.pathtemplate.ValidationException; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class AddressGroupName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_ADDRESS_GROUP = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/addressGroups/{address_group}"); + private static final PathTemplate ORGANIZATION_LOCATION_ADDRESS_GROUP = + PathTemplate.createWithoutUrlEncoding( + "organizations/{organization}/locations/{location}/addressGroups/{address_group}"); + private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; + private final String project; + private final String location; + private final String addressGroup; + private final String organization; + + @Deprecated + protected AddressGroupName() { + project = null; + location = null; + addressGroup = null; + organization = null; + } + + private AddressGroupName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + addressGroup = Preconditions.checkNotNull(builder.getAddressGroup()); + organization = null; + pathTemplate = PROJECT_LOCATION_ADDRESS_GROUP; + } + + private AddressGroupName(OrganizationLocationAddressGroupBuilder builder) { + organization = Preconditions.checkNotNull(builder.getOrganization()); + location = Preconditions.checkNotNull(builder.getLocation()); + addressGroup = Preconditions.checkNotNull(builder.getAddressGroup()); + project = null; + pathTemplate = ORGANIZATION_LOCATION_ADDRESS_GROUP; + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAddressGroup() { + return addressGroup; + } + + public String getOrganization() { + return organization; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public static Builder newProjectLocationAddressGroupBuilder() { + return new Builder(); + } + + public static OrganizationLocationAddressGroupBuilder + newOrganizationLocationAddressGroupBuilder() { + return new OrganizationLocationAddressGroupBuilder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static AddressGroupName of(String project, String location, String addressGroup) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAddressGroup(addressGroup) + .build(); + } + + public static AddressGroupName ofProjectLocationAddressGroupName( + String project, String location, String addressGroup) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAddressGroup(addressGroup) + .build(); + } + + public static AddressGroupName ofOrganizationLocationAddressGroupName( + String organization, String location, String addressGroup) { + return newOrganizationLocationAddressGroupBuilder() + .setOrganization(organization) + .setLocation(location) + .setAddressGroup(addressGroup) + .build(); + } + + public static String format(String project, String location, String addressGroup) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAddressGroup(addressGroup) + .build() + .toString(); + } + + public static String formatProjectLocationAddressGroupName( + String project, String location, String addressGroup) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAddressGroup(addressGroup) + .build() + .toString(); + } + + public static String formatOrganizationLocationAddressGroupName( + String organization, String location, String addressGroup) { + return newOrganizationLocationAddressGroupBuilder() + .setOrganization(organization) + .setLocation(location) + .setAddressGroup(addressGroup) + .build() + .toString(); + } + + public static AddressGroupName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + if (PROJECT_LOCATION_ADDRESS_GROUP.matches(formattedString)) { + Map matchMap = PROJECT_LOCATION_ADDRESS_GROUP.match(formattedString); + return ofProjectLocationAddressGroupName( + matchMap.get("project"), matchMap.get("location"), matchMap.get("address_group")); + } else if (ORGANIZATION_LOCATION_ADDRESS_GROUP.matches(formattedString)) { + Map matchMap = ORGANIZATION_LOCATION_ADDRESS_GROUP.match(formattedString); + return ofOrganizationLocationAddressGroupName( + matchMap.get("organization"), matchMap.get("location"), matchMap.get("address_group")); + } + throw new ValidationException("AddressGroupName.parse: formattedString not in valid format"); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (AddressGroupName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_ADDRESS_GROUP.matches(formattedString) + || ORGANIZATION_LOCATION_ADDRESS_GROUP.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (addressGroup != null) { + fieldMapBuilder.put("address_group", addressGroup); + } + if (organization != null) { + fieldMapBuilder.put("organization", organization); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + AddressGroupName that = ((AddressGroupName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.addressGroup, that.addressGroup) + && Objects.equals(this.organization, that.organization); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(addressGroup); + h *= 1000003; + h ^= Objects.hashCode(organization); + return h; + } + + /** Builder for projects/{project}/locations/{location}/addressGroups/{address_group}. */ + public static class Builder { + private String project; + private String location; + private String addressGroup; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAddressGroup() { + return addressGroup; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setAddressGroup(String addressGroup) { + this.addressGroup = addressGroup; + return this; + } + + private Builder(AddressGroupName addressGroupName) { + Preconditions.checkArgument( + Objects.equals(addressGroupName.pathTemplate, PROJECT_LOCATION_ADDRESS_GROUP), + "toBuilder is only supported when AddressGroupName has the pattern of" + + " projects/{project}/locations/{location}/addressGroups/{address_group}"); + this.project = addressGroupName.project; + this.location = addressGroupName.location; + this.addressGroup = addressGroupName.addressGroup; + } + + public AddressGroupName build() { + return new AddressGroupName(this); + } + } + + /** + * Builder for organizations/{organization}/locations/{location}/addressGroups/{address_group}. + */ + public static class OrganizationLocationAddressGroupBuilder { + private String organization; + private String location; + private String addressGroup; + + protected OrganizationLocationAddressGroupBuilder() {} + + public String getOrganization() { + return organization; + } + + public String getLocation() { + return location; + } + + public String getAddressGroup() { + return addressGroup; + } + + public OrganizationLocationAddressGroupBuilder setOrganization(String organization) { + this.organization = organization; + return this; + } + + public OrganizationLocationAddressGroupBuilder setLocation(String location) { + this.location = location; + return this; + } + + public OrganizationLocationAddressGroupBuilder setAddressGroup(String addressGroup) { + this.addressGroup = addressGroup; + return this; + } + + public AddressGroupName build() { + return new AddressGroupName(this); + } + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AddressGroupOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AddressGroupOrBuilder.java new file mode 100644 index 000000000000..412b3639cbad --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AddressGroupOrBuilder.java @@ -0,0 +1,425 @@ +/* + * 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/networksecurity/v1/address_group.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networksecurity.v1; + +public interface AddressGroupOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.AddressGroup) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. Name of the AddressGroup resource. It matches pattern
    +   * `projects/*/locations/{location}/addressGroups/<address_group>`.
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Required. Name of the AddressGroup resource. It matches pattern
    +   * `projects/*/locations/{location}/addressGroups/<address_group>`.
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Optional. Free-text description of the resource.
    +   * 
    + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
    +   * Optional. Free-text description of the resource.
    +   * 
    + * + * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
    +   * Output only. The timestamp when the resource was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
    +   * Output only. The timestamp when the resource was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
    +   * Output only. The timestamp when the resource was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
    +   * Output only. The timestamp when the resource was updated.
    +   * 
    + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
    +   * Output only. The timestamp when the resource was updated.
    +   * 
    + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
    +   * Output only. The timestamp when the resource was updated.
    +   * 
    + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
    +   * Optional. Set of label tags associated with the AddressGroup resource.
    +   * 
    + * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + + /** + * + * + *
    +   * Optional. Set of label tags associated with the AddressGroup resource.
    +   * 
    + * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + + /** + * + * + *
    +   * Optional. Set of label tags associated with the AddressGroup resource.
    +   * 
    + * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
    +   * Optional. Set of label tags associated with the AddressGroup resource.
    +   * 
    + * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
    +   * Optional. Set of label tags associated with the AddressGroup resource.
    +   * 
    + * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
    +   * Required. The type of the Address Group. Possible values are "IPv4" or
    +   * "IPV6".
    +   * 
    + * + * + * .google.cloud.networksecurity.v1.AddressGroup.Type type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + + /** + * + * + *
    +   * Required. The type of the Address Group. Possible values are "IPv4" or
    +   * "IPV6".
    +   * 
    + * + * + * .google.cloud.networksecurity.v1.AddressGroup.Type type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The type. + */ + com.google.cloud.networksecurity.v1.AddressGroup.Type getType(); + + /** + * + * + *
    +   * Optional. List of items.
    +   * 
    + * + * repeated string items = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the items. + */ + java.util.List getItemsList(); + + /** + * + * + *
    +   * Optional. List of items.
    +   * 
    + * + * repeated string items = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of items. + */ + int getItemsCount(); + + /** + * + * + *
    +   * Optional. List of items.
    +   * 
    + * + * repeated string items = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The items at the given index. + */ + java.lang.String getItems(int index); + + /** + * + * + *
    +   * Optional. List of items.
    +   * 
    + * + * repeated string items = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the items at the given index. + */ + com.google.protobuf.ByteString getItemsBytes(int index); + + /** + * + * + *
    +   * Required. Capacity of the Address Group
    +   * 
    + * + * int32 capacity = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The capacity. + */ + int getCapacity(); + + /** + * + * + *
    +   * Output only. Server-defined fully-qualified URL for this resource.
    +   * 
    + * + * string self_link = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The selfLink. + */ + java.lang.String getSelfLink(); + + /** + * + * + *
    +   * Output only. Server-defined fully-qualified URL for this resource.
    +   * 
    + * + * string self_link = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for selfLink. + */ + com.google.protobuf.ByteString getSelfLinkBytes(); + + /** + * + * + *
    +   * Optional. List of supported purposes of the Address Group.
    +   * 
    + * + * + * repeated .google.cloud.networksecurity.v1.AddressGroup.Purpose purpose = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the purpose. + */ + java.util.List getPurposeList(); + + /** + * + * + *
    +   * Optional. List of supported purposes of the Address Group.
    +   * 
    + * + * + * repeated .google.cloud.networksecurity.v1.AddressGroup.Purpose purpose = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of purpose. + */ + int getPurposeCount(); + + /** + * + * + *
    +   * Optional. List of supported purposes of the Address Group.
    +   * 
    + * + * + * repeated .google.cloud.networksecurity.v1.AddressGroup.Purpose purpose = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The purpose at the given index. + */ + com.google.cloud.networksecurity.v1.AddressGroup.Purpose getPurpose(int index); + + /** + * + * + *
    +   * Optional. List of supported purposes of the Address Group.
    +   * 
    + * + * + * repeated .google.cloud.networksecurity.v1.AddressGroup.Purpose purpose = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for purpose. + */ + java.util.List getPurposeValueList(); + + /** + * + * + *
    +   * Optional. List of supported purposes of the Address Group.
    +   * 
    + * + * + * repeated .google.cloud.networksecurity.v1.AddressGroup.Purpose purpose = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of purpose at the given index. + */ + int getPurposeValue(int index); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AddressGroupProto.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AddressGroupProto.java new file mode 100644 index 000000000000..346592d22e3c --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AddressGroupProto.java @@ -0,0 +1,460 @@ +/* + * 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/networksecurity/v1/address_group.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networksecurity.v1; + +public final class AddressGroupProto { + private AddressGroupProto() {} + + 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_networksecurity_v1_AddressGroup_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_AddressGroup_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_AddressGroup_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_AddressGroup_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_ListAddressGroupsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_ListAddressGroupsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_ListAddressGroupsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_ListAddressGroupsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_GetAddressGroupRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_GetAddressGroupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_CreateAddressGroupRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_CreateAddressGroupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_UpdateAddressGroupRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_UpdateAddressGroupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_DeleteAddressGroupRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_DeleteAddressGroupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_AddAddressGroupItemsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_AddAddressGroupItemsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_RemoveAddressGroupItemsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_RemoveAddressGroupItemsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_CloneAddressGroupItemsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_CloneAddressGroupItemsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_ListAddressGroupReferencesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_ListAddressGroupReferencesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_ListAddressGroupReferencesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_ListAddressGroupReferencesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networksecurity_v1_ListAddressGroupReferencesResponse_AddressGroupReference_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networksecurity_v1_ListAddressGroupReferencesResponse_AddressGroupReference_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" + + "3google/cloud/networksecurity/v1/address_group.proto\022\037google.cloud.networksecur" + + "ity.v1\032\034google/api/annotations.proto\032\027go" + + "ogle/api/client.proto\032\037google/api/field_" + + "behavior.proto\032\031google/api/resource.proto\032#google/longrunning/operations.proto\032" + + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\275\006\n" + + "\014AddressGroup\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\002\022\030\n" + + "\013description\030\002 \001(\tB\003\340A\001\0224\n" + + "\013create_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022N\n" + + "\006labels\030\005" + + " \003(\01329.google.cloud.networksecurity.v1.AddressGroup.LabelsEntryB\003\340A\001\022E\n" + + "\004type\030\006" + + " \001(\01622.google.cloud.networksecurity.v1.AddressGroup.TypeB\003\340A\002\022\022\n" + + "\005items\030\007 \003(\tB\003\340A\001\022\025\n" + + "\010capacity\030\010 \001(\005B\003\340A\002\022\026\n" + + "\tself_link\030\t \001(\tB\003\340A\003\022K\n" + + "\007purpose\030\n" + + " \003(\01625.google.cloud.networksecurity.v1.AddressGroup.PurposeB\003\340A\001\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r" + + "\n" + + "\005value\030\002 \001(\t:\0028\001\"0\n" + + "\004Type\022\024\n" + + "\020TYPE_UNSPECIFIED\020\000\022\010\n" + + "\004IPV4\020\001\022\010\n" + + "\004IPV6\020\002\"@\n" + + "\007Purpose\022\027\n" + + "\023PURPOSE_UNSPECIFIED\020\000\022\013\n" + + "\007DEFAULT\020\001\022\017\n" + + "\013CLOUD_ARMOR\020\002:\311\001\352A\305\001\n" + + "+networksecurity.googleapis.com/AddressGroup\022Eprojects/{pro" + + "ject}/locations/{location}/addressGroups/{address_group}\022Oorganizations/{organiz" + + "ation}/locations/{location}/addressGroups/{address_group}\"\241\001\n" + + "\030ListAddressGroupsRequest\0229\n" + + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + + "!locations.googleapis.com/Location\022\021\n" + + "\tpage_size\030\002 \001(\005\022\022\n\n" + + "page_token\030\003 \001(\t\022#\n" + + "\026return_partial_success\030\004 \001(\010B\003\340A\001\"\220\001\n" + + "\031ListAddressGroupsResponse\022E\n" + + "\016address_groups\030\001 \003(\0132-.go" + + "ogle.cloud.networksecurity.v1.AddressGroup\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\023\n" + + "\013unreachable\030\003 \003(\t\"[\n" + + "\026GetAddressGroupRequest\022A\n" + + "\004name\030\001 \001(\tB3\340A\002\372A-\n" + + "+networksecurity.googleapis.com/AddressGroup\"\343\001\n" + + "\031CreateAddressGroupRequest\022C\n" + + "\006parent\030\001 \001(\tB3\340A\002\372A-\022+net" + + "worksecurity.googleapis.com/AddressGroup\022\035\n" + + "\020address_group_id\030\002 \001(\tB\003\340A\002\022I\n\r" + + "address_group\030\003" + + " \001(\0132-.google.cloud.networksecurity.v1.AddressGroupB\003\340A\002\022\027\n\n" + + "request_id\030\004 \001(\tB\003\340A\001\"\265\001\n" + + "\031UpdateAddressGroupRequest\0224\n" + + "\013update_mask\030\001" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022I\n\r" + + "address_group\030\002 \001(\0132-" + + ".google.cloud.networksecurity.v1.AddressGroupB\003\340A\002\022\027\n\n" + + "request_id\030\003 \001(\tB\003\340A\001\"w\n" + + "\031DeleteAddressGroupRequest\022A\n" + + "\004name\030\001 \001(\tB3\340A\002\372A-\n" + + "+networksecurity.googleapis.com/AddressGroup\022\027\n\n" + + "request_id\030\002 \001(\tB\003\340A\001\"\226\001\n" + + "\033AddAddressGroupItemsRequest\022J\n\r" + + "address_group\030\001 \001(\tB3\340A\002\372A-\n" + + "+networksecurity.googleapis.com/AddressGroup\022\022\n" + + "\005items\030\002 \003(\tB\003\340A\002\022\027\n\n" + + "request_id\030\003 \001(\tB\003\340A\001\"\231\001\n" + + "\036RemoveAddressGroupItemsRequest\022J\n\r" + + "address_group\030\001 \001(\tB3\340A\002\372A-\n" + + "+networksecurity.googleapis.com/AddressGroup\022\022\n" + + "\005items\030\002 \003(\tB\003\340A\002\022\027\n\n" + + "request_id\030\003 \001(\tB\003\340A\001\"\327\001\n" + + "\035CloneAddressGroupItemsRequest\022J\n\r" + + "address_group\030\001 \001(\tB3\340A\002\372A-\n" + + "+networksecurity.googleapis.com/AddressGroup\022Q\n" + + "\024source_address_group\030\002 \001(\tB3\340A\002\372A-\n" + + "+networksecurity.googleapis.com/AddressGroup\022\027\n\n" + + "request_id\030\003 \001(\tB\003\340A\001\"\226\001\n" + + "!ListAddressGroupReferencesRequest\022J\n\r" + + "address_group\030\001 \001(\tB3\340A\002\372A-\n" + + "+networksecurity.googleapis.com/AddressGroup\022\021\n" + + "\tpage_size\030\002 \001(\005\022\022\n\n" + + "page_token\030\003 \001(\t\"\234\002\n" + + "\"ListAddressGroupReferencesResponse\022{\n" + + "\030address_group_references\030\001 \003(\0132Y.google.c" + + "loud.networksecurity.v1.ListAddressGroup" + + "ReferencesResponse.AddressGroupReference\022\027\n" + + "\017next_page_token\030\002 \001(\t\032`\n" + + "\025AddressGroupReference\022\027\n" + + "\017firewall_policy\030\001 \001(\t\022\027\n" + + "\017security_policy\030\004 \001(\t\022\025\n\r" + + "rule_priority\030\002 \001(\0052\332\023\n" + + "\023AddressGroupService\022\316\001\n" + + "\021ListAddressGroups\0229.google.cloud.networksecurity" + + ".v1.ListAddressGroupsRequest\032:.google.cloud.networksecurity.v1.ListAddressGroups" + + "Response\"B\332A\006parent\202\323\344\223\0023\0221/v1/{parent=projects/*/locations/*}/addressGroups\022\273\001\n" + + "\017GetAddressGroup\0227.google.cloud.networks" + + "ecurity.v1.GetAddressGroupRequest\032-.google.cloud.networksecurity.v1.AddressGroup" + + "\"@\332A\004name\202\323\344\223\0023\0221/v1/{name=projects/*/locations/*/addressGroups/*}\022\246\002\n" + + "\022CreateAddressGroup\022:.google.cloud.networksecurity" + + ".v1.CreateAddressGroupRequest\032\035.google.longrunning.Operation\"\264\001\312AA\n" + + "\014AddressGroup\0221google.cloud.networksecurity.v1.Operat" + + "ionMetadata\332A%parent,address_group,addre" + + "ss_group_id\202\323\344\223\002B\"1/v1/{parent=projects/*/locations/*}/addressGroups:\r" + + "address_group\022\250\002\n" + + "\022UpdateAddressGroup\022:.google.cloud.networksecurity.v1.UpdateAddressGroupR" + + "equest\032\035.google.longrunning.Operation\"\266\001\312AA\n" + + "\014AddressGroup\0221google.cloud.networks" + + "ecurity.v1.OperationMetadata\332A\031address_g" + + "roup,update_mask\202\323\344\223\002P2?/v1/{address_gro" + + "up.name=projects/*/locations/*/addressGroups/*}:\r" + + "address_group\022\236\002\n" + + "\024AddAddressGroupItems\022<.google.cloud.networksecurity.v" + + "1.AddAddressGroupItemsRequest\032\035.google.longrunning.Operation\"\250\001\312AA\n" + + "\014AddressGroup\0221google.cloud.networksecurity.v1.Operat" + + "ionMetadata\332A\023address_group,items\202\323\344\223\002H\"" + + "C/v1/{address_group=projects/*/locations/*/addressGroups/*}:addItems:\001*\022\247\002\n" + + "\027RemoveAddressGroupItems\022?.google.cloud.netwo" + + "rksecurity.v1.RemoveAddressGroupItemsReq" + + "uest\032\035.google.longrunning.Operation\"\253\001\312AA\n" + + "\014AddressGroup\0221google.cloud.networksec" + + "urity.v1.OperationMetadata\332A\023address_gro" + + "up,items\202\323\344\223\002K\"F/v1/{address_group=proje" + + "cts/*/locations/*/addressGroups/*}:removeItems:\001*\022\263\002\n" + + "\026CloneAddressGroupItems\022>.google.cloud.networksecurity.v1.CloneAddr" + + "essGroupItemsRequest\032\035.google.longrunning.Operation\"\271\001\312AA\n" + + "\014AddressGroup\0221google.cloud.networksecurity.v1.OperationMetada" + + "ta\332A\"address_group,source_address_group\202" + + "\323\344\223\002J\"E/v1/{address_group=projects/*/loc" + + "ations/*/addressGroups/*}:cloneItems:\001*\022\377\001\n" + + "\022DeleteAddressGroup\022:.google.cloud.ne" + + "tworksecurity.v1.DeleteAddressGroupRequest\032\035.google.longrunning.Operation\"\215\001\312AJ\n" + + "\025google.protobuf.Empty\0221google.cloud.net" + + "worksecurity.v1.OperationMetadata\332A\004name" + + "\202\323\344\223\0023*1/v1/{name=projects/*/locations/*/addressGroups/*}\022\210\002\n" + + "\032ListAddressGroupReferences\022B.google.cloud.networksecurity." + + "v1.ListAddressGroupReferencesRequest\032C.g" + + "oogle.cloud.networksecurity.v1.ListAddressGroupReferencesResponse\"a\332A\r" + + "address_group\202\323\344\223\002K\022I/v1/{address_group=projects/*" + + "/locations/*/addressGroups/*}:listRefere" + + "nces\032R\312A\036networksecurity.googleapis.com\322" + + "A.https://www.googleapis.com/auth/cloud-platform2\223\024\n" + + "\037OrganizationAddressGroupService\022\323\001\n" + + "\021ListAddressGroups\0229.google.cloud.networksecurity.v1.ListAddressGroupsRe" + + "quest\032:.google.cloud.networksecurity.v1." + + "ListAddressGroupsResponse\"G\332A\006parent\202\323\344\223" + + "\0028\0226/v1/{parent=organizations/*/locations/*}/addressGroups\022\300\001\n" + + "\017GetAddressGroup\0227.google.cloud.networksecurity.v1.GetAddr" + + "essGroupRequest\032-.google.cloud.networkse" + + "curity.v1.AddressGroup\"E\332A\004name\202\323\344\223\0028\0226/" + + "v1/{name=organizations/*/locations/*/addressGroups/*}\022\253\002\n" + + "\022CreateAddressGroup\022:.google.cloud.networksecurity.v1.CreateAdd" + + "ressGroupRequest\032\035.google.longrunning.Operation\"\271\001\312AA\n" + + "\014AddressGroup\0221google.cloud.networksecurity.v1.OperationMetadata\332A" + + "%parent,address_group,address_group_id\202\323" + + "\344\223\002G\"6/v1/{parent=organizations/*/locations/*}/addressGroups:\r" + + "address_group\022\255\002\n" + + "\022UpdateAddressGroup\022:.google.cloud.networ" + + "ksecurity.v1.UpdateAddressGroupRequest\032\035.google.longrunning.Operation\"\273\001\312AA\n" + + "\014AddressGroup\0221google.cloud.networksecurity." + + "v1.OperationMetadata\332A\031address_group,upd" + + "ate_mask\202\323\344\223\002U2D/v1/{address_group.name=" + + "organizations/*/locations/*/addressGroups/*}:\r" + + "address_group\022\243\002\n" + + "\024AddAddressGroupItems\022<.google.cloud.networksecurity.v1.A" + + "ddAddressGroupItemsRequest\032\035.google.longrunning.Operation\"\255\001\312AA\n" + + "\014AddressGroup\0221google.cloud.networksecurity.v1.Operation" + + "Metadata\332A\023address_group,items\202\323\344\223\002M\"H/v" + + "1/{address_group=organizations/*/locations/*/addressGroups/*}:addItems:\001*\022\254\002\n" + + "\027RemoveAddressGroupItems\022?.google.cloud.net" + + "worksecurity.v1.RemoveAddressGroupItemsR" + + "equest\032\035.google.longrunning.Operation\"\260\001\312AA\n" + + "\014AddressGroup\0221google.cloud.networks" + + "ecurity.v1.OperationMetadata\332A\023address_g" + + "roup,items\202\323\344\223\002P\"K/v1/{address_group=org" + + "anizations/*/locations/*/addressGroups/*}:removeItems:\001*\022\270\002\n" + + "\026CloneAddressGroupItems\022>.google.cloud.networksecurity.v1.Cl" + + "oneAddressGroupItemsRequest\032\035.google.longrunning.Operation\"\276\001\312AA\n" + + "\014AddressGroup\0221google.cloud.networksecurity.v1.Operatio" + + "nMetadata\332A\"address_group,source_address" + + "_group\202\323\344\223\002O\"J/v1/{address_group=organiz" + + "ations/*/locations/*/addressGroups/*}:cloneItems:\001*\022\204\002\n" + + "\022DeleteAddressGroup\022:.google.cloud.networksecurity.v1.DeleteAddre" + + "ssGroupRequest\032\035.google.longrunning.Operation\"\222\001\312AJ\n" + + "\025google.protobuf.Empty\0221google.cloud.networksecurity.v1.OperationMet" + + "adata\332A\004name\202\323\344\223\0028*6/v1/{name=organizations/*/locations/*/addressGroups/*}\022\215\002\n" + + "\032ListAddressGroupReferences\022B.google.cloud" + + ".networksecurity.v1.ListAddressGroupReferencesRequest\032C.google.cloud.networksecu" + + "rity.v1.ListAddressGroupReferencesResponse\"f\332A\r" + + "address_group\202\323\344\223\002P\022N/v1/{address" + + "_group=organizations/*/locations/*/addre" + + "ssGroups/*}:listReferences\032R\312A\036networkse" + + "curity.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\335\002\n" + + "#com.google.cloud.networksecurity.v1B\021AddressG" + + "roupProtoP\001ZMcloud.google.com/go/networksecurity/apiv1/networksecuritypb;network" + + "securitypb\252\002\037Google.Cloud.NetworkSecurit" + + "y.V1\312\002\037Google\\Cloud\\NetworkSecurity\\V1\352\002\"Google::Cloud::NetworkSecurity::V1\352Ah\n" + + "3networksecurity.googleapis.com/OrganizationLocation\0221organizations/{organization" + + "}/locations/{location}b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_networksecurity_v1_AddressGroup_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_networksecurity_v1_AddressGroup_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_AddressGroup_descriptor, + new java.lang.String[] { + "Name", + "Description", + "CreateTime", + "UpdateTime", + "Labels", + "Type", + "Items", + "Capacity", + "SelfLink", + "Purpose", + }); + internal_static_google_cloud_networksecurity_v1_AddressGroup_LabelsEntry_descriptor = + internal_static_google_cloud_networksecurity_v1_AddressGroup_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_networksecurity_v1_AddressGroup_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_AddressGroup_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_networksecurity_v1_ListAddressGroupsRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_networksecurity_v1_ListAddressGroupsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_ListAddressGroupsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "ReturnPartialSuccess", + }); + internal_static_google_cloud_networksecurity_v1_ListAddressGroupsResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_networksecurity_v1_ListAddressGroupsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_ListAddressGroupsResponse_descriptor, + new java.lang.String[] { + "AddressGroups", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_networksecurity_v1_GetAddressGroupRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_networksecurity_v1_GetAddressGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_GetAddressGroupRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_networksecurity_v1_CreateAddressGroupRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_networksecurity_v1_CreateAddressGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_CreateAddressGroupRequest_descriptor, + new java.lang.String[] { + "Parent", "AddressGroupId", "AddressGroup", "RequestId", + }); + internal_static_google_cloud_networksecurity_v1_UpdateAddressGroupRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_networksecurity_v1_UpdateAddressGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_UpdateAddressGroupRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "AddressGroup", "RequestId", + }); + internal_static_google_cloud_networksecurity_v1_DeleteAddressGroupRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_networksecurity_v1_DeleteAddressGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_DeleteAddressGroupRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_networksecurity_v1_AddAddressGroupItemsRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_networksecurity_v1_AddAddressGroupItemsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_AddAddressGroupItemsRequest_descriptor, + new java.lang.String[] { + "AddressGroup", "Items", "RequestId", + }); + internal_static_google_cloud_networksecurity_v1_RemoveAddressGroupItemsRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_networksecurity_v1_RemoveAddressGroupItemsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_RemoveAddressGroupItemsRequest_descriptor, + new java.lang.String[] { + "AddressGroup", "Items", "RequestId", + }); + internal_static_google_cloud_networksecurity_v1_CloneAddressGroupItemsRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_networksecurity_v1_CloneAddressGroupItemsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_CloneAddressGroupItemsRequest_descriptor, + new java.lang.String[] { + "AddressGroup", "SourceAddressGroup", "RequestId", + }); + internal_static_google_cloud_networksecurity_v1_ListAddressGroupReferencesRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_networksecurity_v1_ListAddressGroupReferencesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_ListAddressGroupReferencesRequest_descriptor, + new java.lang.String[] { + "AddressGroup", "PageSize", "PageToken", + }); + internal_static_google_cloud_networksecurity_v1_ListAddressGroupReferencesResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_networksecurity_v1_ListAddressGroupReferencesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_ListAddressGroupReferencesResponse_descriptor, + new java.lang.String[] { + "AddressGroupReferences", "NextPageToken", + }); + internal_static_google_cloud_networksecurity_v1_ListAddressGroupReferencesResponse_AddressGroupReference_descriptor = + internal_static_google_cloud_networksecurity_v1_ListAddressGroupReferencesResponse_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_networksecurity_v1_ListAddressGroupReferencesResponse_AddressGroupReference_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networksecurity_v1_ListAddressGroupReferencesResponse_AddressGroupReference_descriptor, + new java.lang.String[] { + "FirewallPolicy", "SecurityPolicy", "RulePriority", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CloneAddressGroupItemsRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CloneAddressGroupItemsRequest.java new file mode 100644 index 000000000000..52d453cadeff --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CloneAddressGroupItemsRequest.java @@ -0,0 +1,1141 @@ +/* + * 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/networksecurity/v1/address_group.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
    + * Request used by the CloneAddressGroupItems method.
    + * 
    + * + * Protobuf type {@code google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest} + */ +public final class CloneAddressGroupItemsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest) + CloneAddressGroupItemsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CloneAddressGroupItemsRequest.newBuilder() to construct. + private CloneAddressGroupItemsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CloneAddressGroupItemsRequest() { + addressGroup_ = ""; + sourceAddressGroup_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CloneAddressGroupItemsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_CloneAddressGroupItemsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_CloneAddressGroupItemsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest.class, + com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest.Builder.class); + } + + public static final int ADDRESS_GROUP_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object addressGroup_ = ""; + + /** + * + * + *
    +   * Required. A name of the AddressGroup to clone items to. Must be in the
    +   * format `projects|organization/*/locations/{location}/addressGroups/*`.
    +   * 
    + * + * + * string address_group = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The addressGroup. + */ + @java.lang.Override + public java.lang.String getAddressGroup() { + java.lang.Object ref = addressGroup_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + addressGroup_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. A name of the AddressGroup to clone items to. Must be in the
    +   * format `projects|organization/*/locations/{location}/addressGroups/*`.
    +   * 
    + * + * + * string address_group = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for addressGroup. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAddressGroupBytes() { + java.lang.Object ref = addressGroup_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + addressGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCE_ADDRESS_GROUP_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object sourceAddressGroup_ = ""; + + /** + * + * + *
    +   * Required. Source address group to clone items from.
    +   * 
    + * + * + * string source_address_group = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The sourceAddressGroup. + */ + @java.lang.Override + public java.lang.String getSourceAddressGroup() { + java.lang.Object ref = sourceAddressGroup_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceAddressGroup_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. Source address group to clone items from.
    +   * 
    + * + * + * string source_address_group = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for sourceAddressGroup. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceAddressGroupBytes() { + java.lang.Object ref = sourceAddressGroup_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceAddressGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 will know to
    +   * ignore the request if it has already been completed. The server will
    +   * guarantee that for at least 60 minutes since the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and
    +   * the request times out. If you make the request again with the same request
    +   * ID, the server can check if original operation with the same request ID
    +   * was received, and if so, will ignore the second request. This prevents
    +   * clients from accidentally creating duplicate commitments.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID is
    +   * not supported (00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. An optional request ID to identify requests. Specify a unique
    +   * request ID so that if you must retry your request, the server will know to
    +   * ignore the request if it has already been completed. The server will
    +   * guarantee that for at least 60 minutes since the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and
    +   * the request times out. If you make the request again with the same request
    +   * ID, the server can check if original operation with the same request ID
    +   * was received, and if so, will ignore the second request. This prevents
    +   * clients from accidentally creating duplicate commitments.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID is
    +   * not supported (00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(addressGroup_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, addressGroup_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceAddressGroup_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sourceAddressGroup_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(addressGroup_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, addressGroup_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceAddressGroup_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sourceAddressGroup_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest other = + (com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest) obj; + + if (!getAddressGroup().equals(other.getAddressGroup())) return false; + if (!getSourceAddressGroup().equals(other.getSourceAddressGroup())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ADDRESS_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getAddressGroup().hashCode(); + hash = (37 * hash) + SOURCE_ADDRESS_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getSourceAddressGroup().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest 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.networksecurity.v1.CloneAddressGroupItemsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest parseFrom( + 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.networksecurity.v1.CloneAddressGroupItemsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest 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.networksecurity.v1.CloneAddressGroupItemsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest + 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.networksecurity.v1.CloneAddressGroupItemsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest 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.networksecurity.v1.CloneAddressGroupItemsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request used by the CloneAddressGroupItems method.
    +   * 
    + * + * Protobuf type {@code google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest) + com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_CloneAddressGroupItemsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_CloneAddressGroupItemsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest.class, + com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + addressGroup_ = ""; + sourceAddressGroup_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_CloneAddressGroupItemsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest build() { + com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest buildPartial() { + com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest result = + new com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.addressGroup_ = addressGroup_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sourceAddressGroup_ = sourceAddressGroup_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + } + + @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.networksecurity.v1.CloneAddressGroupItemsRequest) { + return mergeFrom((com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest other) { + if (other + == com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest.getDefaultInstance()) + return this; + if (!other.getAddressGroup().isEmpty()) { + addressGroup_ = other.addressGroup_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getSourceAddressGroup().isEmpty()) { + sourceAddressGroup_ = other.sourceAddressGroup_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + addressGroup_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + sourceAddressGroup_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object addressGroup_ = ""; + + /** + * + * + *
    +     * Required. A name of the AddressGroup to clone items to. Must be in the
    +     * format `projects|organization/*/locations/{location}/addressGroups/*`.
    +     * 
    + * + * + * string address_group = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The addressGroup. + */ + public java.lang.String getAddressGroup() { + java.lang.Object ref = addressGroup_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + addressGroup_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. A name of the AddressGroup to clone items to. Must be in the
    +     * format `projects|organization/*/locations/{location}/addressGroups/*`.
    +     * 
    + * + * + * string address_group = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for addressGroup. + */ + public com.google.protobuf.ByteString getAddressGroupBytes() { + java.lang.Object ref = addressGroup_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + addressGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. A name of the AddressGroup to clone items to. Must be in the
    +     * format `projects|organization/*/locations/{location}/addressGroups/*`.
    +     * 
    + * + * + * string address_group = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The addressGroup to set. + * @return This builder for chaining. + */ + public Builder setAddressGroup(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + addressGroup_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. A name of the AddressGroup to clone items to. Must be in the
    +     * format `projects|organization/*/locations/{location}/addressGroups/*`.
    +     * 
    + * + * + * string address_group = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAddressGroup() { + addressGroup_ = getDefaultInstance().getAddressGroup(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. A name of the AddressGroup to clone items to. Must be in the
    +     * format `projects|organization/*/locations/{location}/addressGroups/*`.
    +     * 
    + * + * + * string address_group = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for addressGroup to set. + * @return This builder for chaining. + */ + public Builder setAddressGroupBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + addressGroup_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object sourceAddressGroup_ = ""; + + /** + * + * + *
    +     * Required. Source address group to clone items from.
    +     * 
    + * + * + * string source_address_group = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The sourceAddressGroup. + */ + public java.lang.String getSourceAddressGroup() { + java.lang.Object ref = sourceAddressGroup_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceAddressGroup_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. Source address group to clone items from.
    +     * 
    + * + * + * string source_address_group = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for sourceAddressGroup. + */ + public com.google.protobuf.ByteString getSourceAddressGroupBytes() { + java.lang.Object ref = sourceAddressGroup_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceAddressGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. Source address group to clone items from.
    +     * 
    + * + * + * string source_address_group = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The sourceAddressGroup to set. + * @return This builder for chaining. + */ + public Builder setSourceAddressGroup(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceAddressGroup_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Source address group to clone items from.
    +     * 
    + * + * + * string source_address_group = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearSourceAddressGroup() { + sourceAddressGroup_ = getDefaultInstance().getSourceAddressGroup(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Source address group to clone items from.
    +     * 
    + * + * + * string source_address_group = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for sourceAddressGroup to set. + * @return This builder for chaining. + */ + public Builder setSourceAddressGroupBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceAddressGroup_ = value; + bitField0_ |= 0x00000002; + 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 will know to
    +     * ignore the request if it has already been completed. The server will
    +     * guarantee that for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, will ignore the second request. This prevents
    +     * clients from accidentally creating duplicate commitments.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID is
    +     * not supported (00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. An optional request ID to identify requests. Specify a unique
    +     * request ID so that if you must retry your request, the server will know to
    +     * ignore the request if it has already been completed. The server will
    +     * guarantee that for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, will ignore the second request. This prevents
    +     * clients from accidentally creating duplicate commitments.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID is
    +     * not supported (00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. An optional request ID to identify requests. Specify a unique
    +     * request ID so that if you must retry your request, the server will know to
    +     * ignore the request if it has already been completed. The server will
    +     * guarantee that for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, will ignore the second request. This prevents
    +     * clients from accidentally creating duplicate commitments.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID is
    +     * not supported (00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + 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 will know to
    +     * ignore the request if it has already been completed. The server will
    +     * guarantee that for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, will ignore the second request. This prevents
    +     * clients from accidentally creating duplicate commitments.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID is
    +     * not supported (00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 will know to
    +     * ignore the request if it has already been completed. The server will
    +     * guarantee that for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, will ignore the second request. This prevents
    +     * clients from accidentally creating duplicate commitments.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID is
    +     * not supported (00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + 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.networksecurity.v1.CloneAddressGroupItemsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest) + private static final com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest(); + } + + public static com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloneAddressGroupItemsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.networksecurity.v1.CloneAddressGroupItemsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CloneAddressGroupItemsRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CloneAddressGroupItemsRequestOrBuilder.java new file mode 100644 index 000000000000..434cab31646f --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CloneAddressGroupItemsRequestOrBuilder.java @@ -0,0 +1,138 @@ +/* + * 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/networksecurity/v1/address_group.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networksecurity.v1; + +public interface CloneAddressGroupItemsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. A name of the AddressGroup to clone items to. Must be in the
    +   * format `projects|organization/*/locations/{location}/addressGroups/*`.
    +   * 
    + * + * + * string address_group = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The addressGroup. + */ + java.lang.String getAddressGroup(); + + /** + * + * + *
    +   * Required. A name of the AddressGroup to clone items to. Must be in the
    +   * format `projects|organization/*/locations/{location}/addressGroups/*`.
    +   * 
    + * + * + * string address_group = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for addressGroup. + */ + com.google.protobuf.ByteString getAddressGroupBytes(); + + /** + * + * + *
    +   * Required. Source address group to clone items from.
    +   * 
    + * + * + * string source_address_group = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The sourceAddressGroup. + */ + java.lang.String getSourceAddressGroup(); + + /** + * + * + *
    +   * Required. Source address group to clone items from.
    +   * 
    + * + * + * string source_address_group = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for sourceAddressGroup. + */ + com.google.protobuf.ByteString getSourceAddressGroupBytes(); + + /** + * + * + *
    +   * Optional. An optional request ID to identify requests. Specify a unique
    +   * request ID so that if you must retry your request, the server will know to
    +   * ignore the request if it has already been completed. The server will
    +   * guarantee that for at least 60 minutes since the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and
    +   * the request times out. If you make the request again with the same request
    +   * ID, the server can check if original operation with the same request ID
    +   * was received, and if so, will ignore the second request. This prevents
    +   * clients from accidentally creating duplicate commitments.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID is
    +   * not supported (00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 will know to
    +   * ignore the request if it has already been completed. The server will
    +   * guarantee that for at least 60 minutes since the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and
    +   * the request times out. If you make the request again with the same request
    +   * ID, the server can check if original operation with the same request ID
    +   * was received, and if so, will ignore the second request. This prevents
    +   * clients from accidentally creating duplicate commitments.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID is
    +   * not supported (00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateAddressGroupRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateAddressGroupRequest.java new file mode 100644 index 000000000000..2139be5e0a31 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateAddressGroupRequest.java @@ -0,0 +1,1461 @@ +/* + * 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/networksecurity/v1/address_group.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
    + * Request used by the CreateAddressGroup method.
    + * 
    + * + * Protobuf type {@code google.cloud.networksecurity.v1.CreateAddressGroupRequest} + */ +public final class CreateAddressGroupRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.CreateAddressGroupRequest) + CreateAddressGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CreateAddressGroupRequest.newBuilder() to construct. + private CreateAddressGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateAddressGroupRequest() { + parent_ = ""; + addressGroupId_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateAddressGroupRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_CreateAddressGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_CreateAddressGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.CreateAddressGroupRequest.class, + com.google.cloud.networksecurity.v1.CreateAddressGroupRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
    +   * Required. The parent resource of the AddressGroup. Must be in the
    +   * format `projects/*/locations/{location}`.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. The parent resource of the AddressGroup. Must be in the
    +   * format `projects/*/locations/{location}`.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADDRESS_GROUP_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object addressGroupId_ = ""; + + /** + * + * + *
    +   * Required. Short name of the AddressGroup resource to be created.
    +   * This value should be 1-63 characters long, containing only
    +   * letters, numbers, hyphens, and underscores, and should not start
    +   * with a number. E.g. "authz_policy".
    +   * 
    + * + * string address_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The addressGroupId. + */ + @java.lang.Override + public java.lang.String getAddressGroupId() { + java.lang.Object ref = addressGroupId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + addressGroupId_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. Short name of the AddressGroup resource to be created.
    +   * This value should be 1-63 characters long, containing only
    +   * letters, numbers, hyphens, and underscores, and should not start
    +   * with a number. E.g. "authz_policy".
    +   * 
    + * + * string address_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for addressGroupId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAddressGroupIdBytes() { + java.lang.Object ref = addressGroupId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + addressGroupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADDRESS_GROUP_FIELD_NUMBER = 3; + private com.google.cloud.networksecurity.v1.AddressGroup addressGroup_; + + /** + * + * + *
    +   * Required. AddressGroup resource to be created.
    +   * 
    + * + * + * .google.cloud.networksecurity.v1.AddressGroup address_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the addressGroup field is set. + */ + @java.lang.Override + public boolean hasAddressGroup() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Required. AddressGroup resource to be created.
    +   * 
    + * + * + * .google.cloud.networksecurity.v1.AddressGroup address_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The addressGroup. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AddressGroup getAddressGroup() { + return addressGroup_ == null + ? com.google.cloud.networksecurity.v1.AddressGroup.getDefaultInstance() + : addressGroup_; + } + + /** + * + * + *
    +   * Required. AddressGroup resource to be created.
    +   * 
    + * + * + * .google.cloud.networksecurity.v1.AddressGroup address_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AddressGroupOrBuilder getAddressGroupOrBuilder() { + return addressGroup_ == null + ? com.google.cloud.networksecurity.v1.AddressGroup.getDefaultInstance() + : addressGroup_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @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 will know to
    +   * ignore the request if it has already been completed. The server will
    +   * guarantee that for at least 60 minutes since the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and
    +   * the request times out. If you make the request again with the same request
    +   * ID, the server can check if original operation with the same request ID
    +   * was received, and if so, will ignore the second request. This prevents
    +   * clients from accidentally creating duplicate commitments.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID is
    +   * not supported (00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. An optional request ID to identify requests. Specify a unique
    +   * request ID so that if you must retry your request, the server will know to
    +   * ignore the request if it has already been completed. The server will
    +   * guarantee that for at least 60 minutes since the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and
    +   * the request times out. If you make the request again with the same request
    +   * ID, the server can check if original operation with the same request ID
    +   * was received, and if so, will ignore the second request. This prevents
    +   * clients from accidentally creating duplicate commitments.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID is
    +   * not supported (00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(addressGroupId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, addressGroupId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getAddressGroup()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(addressGroupId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, addressGroupId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAddressGroup()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.networksecurity.v1.CreateAddressGroupRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.CreateAddressGroupRequest other = + (com.google.cloud.networksecurity.v1.CreateAddressGroupRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getAddressGroupId().equals(other.getAddressGroupId())) return false; + if (hasAddressGroup() != other.hasAddressGroup()) return false; + if (hasAddressGroup()) { + if (!getAddressGroup().equals(other.getAddressGroup())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + ADDRESS_GROUP_ID_FIELD_NUMBER; + hash = (53 * hash) + getAddressGroupId().hashCode(); + if (hasAddressGroup()) { + hash = (37 * hash) + ADDRESS_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getAddressGroup().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.CreateAddressGroupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateAddressGroupRequest 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.networksecurity.v1.CreateAddressGroupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateAddressGroupRequest parseFrom( + 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.networksecurity.v1.CreateAddressGroupRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.CreateAddressGroupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.CreateAddressGroupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateAddressGroupRequest 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.networksecurity.v1.CreateAddressGroupRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateAddressGroupRequest 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.networksecurity.v1.CreateAddressGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.CreateAddressGroupRequest 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.networksecurity.v1.CreateAddressGroupRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request used by the CreateAddressGroup method.
    +   * 
    + * + * Protobuf type {@code google.cloud.networksecurity.v1.CreateAddressGroupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.CreateAddressGroupRequest) + com.google.cloud.networksecurity.v1.CreateAddressGroupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_CreateAddressGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_CreateAddressGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.CreateAddressGroupRequest.class, + com.google.cloud.networksecurity.v1.CreateAddressGroupRequest.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.CreateAddressGroupRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getAddressGroupFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + addressGroupId_ = ""; + addressGroup_ = null; + if (addressGroupBuilder_ != null) { + addressGroupBuilder_.dispose(); + addressGroupBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_CreateAddressGroupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateAddressGroupRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.CreateAddressGroupRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateAddressGroupRequest build() { + com.google.cloud.networksecurity.v1.CreateAddressGroupRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.CreateAddressGroupRequest buildPartial() { + com.google.cloud.networksecurity.v1.CreateAddressGroupRequest result = + new com.google.cloud.networksecurity.v1.CreateAddressGroupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.CreateAddressGroupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.addressGroupId_ = addressGroupId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.addressGroup_ = + addressGroupBuilder_ == null ? addressGroup_ : addressGroupBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.CreateAddressGroupRequest) { + return mergeFrom((com.google.cloud.networksecurity.v1.CreateAddressGroupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networksecurity.v1.CreateAddressGroupRequest other) { + if (other + == com.google.cloud.networksecurity.v1.CreateAddressGroupRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAddressGroupId().isEmpty()) { + addressGroupId_ = other.addressGroupId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasAddressGroup()) { + mergeAddressGroup(other.getAddressGroup()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + addressGroupId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getAddressGroupFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
    +     * Required. The parent resource of the AddressGroup. Must be in the
    +     * format `projects/*/locations/{location}`.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. The parent resource of the AddressGroup. Must be in the
    +     * format `projects/*/locations/{location}`.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. The parent resource of the AddressGroup. Must be in the
    +     * format `projects/*/locations/{location}`.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The parent resource of the AddressGroup. Must be in the
    +     * format `projects/*/locations/{location}`.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The parent resource of the AddressGroup. Must be in the
    +     * format `projects/*/locations/{location}`.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object addressGroupId_ = ""; + + /** + * + * + *
    +     * Required. Short name of the AddressGroup resource to be created.
    +     * This value should be 1-63 characters long, containing only
    +     * letters, numbers, hyphens, and underscores, and should not start
    +     * with a number. E.g. "authz_policy".
    +     * 
    + * + * string address_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The addressGroupId. + */ + public java.lang.String getAddressGroupId() { + java.lang.Object ref = addressGroupId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + addressGroupId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. Short name of the AddressGroup resource to be created.
    +     * This value should be 1-63 characters long, containing only
    +     * letters, numbers, hyphens, and underscores, and should not start
    +     * with a number. E.g. "authz_policy".
    +     * 
    + * + * string address_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for addressGroupId. + */ + public com.google.protobuf.ByteString getAddressGroupIdBytes() { + java.lang.Object ref = addressGroupId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + addressGroupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. Short name of the AddressGroup resource to be created.
    +     * This value should be 1-63 characters long, containing only
    +     * letters, numbers, hyphens, and underscores, and should not start
    +     * with a number. E.g. "authz_policy".
    +     * 
    + * + * string address_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The addressGroupId to set. + * @return This builder for chaining. + */ + public Builder setAddressGroupId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + addressGroupId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Short name of the AddressGroup resource to be created.
    +     * This value should be 1-63 characters long, containing only
    +     * letters, numbers, hyphens, and underscores, and should not start
    +     * with a number. E.g. "authz_policy".
    +     * 
    + * + * string address_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearAddressGroupId() { + addressGroupId_ = getDefaultInstance().getAddressGroupId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Short name of the AddressGroup resource to be created.
    +     * This value should be 1-63 characters long, containing only
    +     * letters, numbers, hyphens, and underscores, and should not start
    +     * with a number. E.g. "authz_policy".
    +     * 
    + * + * string address_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for addressGroupId to set. + * @return This builder for chaining. + */ + public Builder setAddressGroupIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + addressGroupId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.networksecurity.v1.AddressGroup addressGroup_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networksecurity.v1.AddressGroup, + com.google.cloud.networksecurity.v1.AddressGroup.Builder, + com.google.cloud.networksecurity.v1.AddressGroupOrBuilder> + addressGroupBuilder_; + + /** + * + * + *
    +     * Required. AddressGroup resource to be created.
    +     * 
    + * + * + * .google.cloud.networksecurity.v1.AddressGroup address_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the addressGroup field is set. + */ + public boolean hasAddressGroup() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +     * Required. AddressGroup resource to be created.
    +     * 
    + * + * + * .google.cloud.networksecurity.v1.AddressGroup address_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The addressGroup. + */ + public com.google.cloud.networksecurity.v1.AddressGroup getAddressGroup() { + if (addressGroupBuilder_ == null) { + return addressGroup_ == null + ? com.google.cloud.networksecurity.v1.AddressGroup.getDefaultInstance() + : addressGroup_; + } else { + return addressGroupBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Required. AddressGroup resource to be created.
    +     * 
    + * + * + * .google.cloud.networksecurity.v1.AddressGroup address_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAddressGroup(com.google.cloud.networksecurity.v1.AddressGroup value) { + if (addressGroupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + addressGroup_ = value; + } else { + addressGroupBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. AddressGroup resource to be created.
    +     * 
    + * + * + * .google.cloud.networksecurity.v1.AddressGroup address_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAddressGroup( + com.google.cloud.networksecurity.v1.AddressGroup.Builder builderForValue) { + if (addressGroupBuilder_ == null) { + addressGroup_ = builderForValue.build(); + } else { + addressGroupBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. AddressGroup resource to be created.
    +     * 
    + * + * + * .google.cloud.networksecurity.v1.AddressGroup address_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAddressGroup(com.google.cloud.networksecurity.v1.AddressGroup value) { + if (addressGroupBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && addressGroup_ != null + && addressGroup_ + != com.google.cloud.networksecurity.v1.AddressGroup.getDefaultInstance()) { + getAddressGroupBuilder().mergeFrom(value); + } else { + addressGroup_ = value; + } + } else { + addressGroupBuilder_.mergeFrom(value); + } + if (addressGroup_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Required. AddressGroup resource to be created.
    +     * 
    + * + * + * .google.cloud.networksecurity.v1.AddressGroup address_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAddressGroup() { + bitField0_ = (bitField0_ & ~0x00000004); + addressGroup_ = null; + if (addressGroupBuilder_ != null) { + addressGroupBuilder_.dispose(); + addressGroupBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. AddressGroup resource to be created.
    +     * 
    + * + * + * .google.cloud.networksecurity.v1.AddressGroup address_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.AddressGroup.Builder getAddressGroupBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getAddressGroupFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Required. AddressGroup resource to be created.
    +     * 
    + * + * + * .google.cloud.networksecurity.v1.AddressGroup address_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.AddressGroupOrBuilder getAddressGroupOrBuilder() { + if (addressGroupBuilder_ != null) { + return addressGroupBuilder_.getMessageOrBuilder(); + } else { + return addressGroup_ == null + ? com.google.cloud.networksecurity.v1.AddressGroup.getDefaultInstance() + : addressGroup_; + } + } + + /** + * + * + *
    +     * Required. AddressGroup resource to be created.
    +     * 
    + * + * + * .google.cloud.networksecurity.v1.AddressGroup address_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networksecurity.v1.AddressGroup, + com.google.cloud.networksecurity.v1.AddressGroup.Builder, + com.google.cloud.networksecurity.v1.AddressGroupOrBuilder> + getAddressGroupFieldBuilder() { + if (addressGroupBuilder_ == null) { + addressGroupBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networksecurity.v1.AddressGroup, + com.google.cloud.networksecurity.v1.AddressGroup.Builder, + com.google.cloud.networksecurity.v1.AddressGroupOrBuilder>( + getAddressGroup(), getParentForChildren(), isClean()); + addressGroup_ = null; + } + return addressGroupBuilder_; + } + + 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 will know to
    +     * ignore the request if it has already been completed. The server will
    +     * guarantee that for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, will ignore the second request. This prevents
    +     * clients from accidentally creating duplicate commitments.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID is
    +     * not supported (00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. An optional request ID to identify requests. Specify a unique
    +     * request ID so that if you must retry your request, the server will know to
    +     * ignore the request if it has already been completed. The server will
    +     * guarantee that for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, will ignore the second request. This prevents
    +     * clients from accidentally creating duplicate commitments.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID is
    +     * not supported (00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. An optional request ID to identify requests. Specify a unique
    +     * request ID so that if you must retry your request, the server will know to
    +     * ignore the request if it has already been completed. The server will
    +     * guarantee that for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, will ignore the second request. This prevents
    +     * clients from accidentally creating duplicate commitments.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID is
    +     * not supported (00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. An optional request ID to identify requests. Specify a unique
    +     * request ID so that if you must retry your request, the server will know to
    +     * ignore the request if it has already been completed. The server will
    +     * guarantee that for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, will ignore the second request. This prevents
    +     * clients from accidentally creating duplicate commitments.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID is
    +     * not supported (00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. An optional request ID to identify requests. Specify a unique
    +     * request ID so that if you must retry your request, the server will know to
    +     * ignore the request if it has already been completed. The server will
    +     * guarantee that for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, will ignore the second request. This prevents
    +     * clients from accidentally creating duplicate commitments.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID is
    +     * not supported (00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.CreateAddressGroupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.CreateAddressGroupRequest) + private static final com.google.cloud.networksecurity.v1.CreateAddressGroupRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.CreateAddressGroupRequest(); + } + + public static com.google.cloud.networksecurity.v1.CreateAddressGroupRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAddressGroupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.networksecurity.v1.CreateAddressGroupRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateAddressGroupRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateAddressGroupRequestOrBuilder.java new file mode 100644 index 000000000000..1a33b8ca836b --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/CreateAddressGroupRequestOrBuilder.java @@ -0,0 +1,183 @@ +/* + * 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/networksecurity/v1/address_group.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networksecurity.v1; + +public interface CreateAddressGroupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.CreateAddressGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The parent resource of the AddressGroup. Must be in the
    +   * format `projects/*/locations/{location}`.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. The parent resource of the AddressGroup. Must be in the
    +   * format `projects/*/locations/{location}`.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Required. Short name of the AddressGroup resource to be created.
    +   * This value should be 1-63 characters long, containing only
    +   * letters, numbers, hyphens, and underscores, and should not start
    +   * with a number. E.g. "authz_policy".
    +   * 
    + * + * string address_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The addressGroupId. + */ + java.lang.String getAddressGroupId(); + + /** + * + * + *
    +   * Required. Short name of the AddressGroup resource to be created.
    +   * This value should be 1-63 characters long, containing only
    +   * letters, numbers, hyphens, and underscores, and should not start
    +   * with a number. E.g. "authz_policy".
    +   * 
    + * + * string address_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for addressGroupId. + */ + com.google.protobuf.ByteString getAddressGroupIdBytes(); + + /** + * + * + *
    +   * Required. AddressGroup resource to be created.
    +   * 
    + * + * + * .google.cloud.networksecurity.v1.AddressGroup address_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the addressGroup field is set. + */ + boolean hasAddressGroup(); + + /** + * + * + *
    +   * Required. AddressGroup resource to be created.
    +   * 
    + * + * + * .google.cloud.networksecurity.v1.AddressGroup address_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The addressGroup. + */ + com.google.cloud.networksecurity.v1.AddressGroup getAddressGroup(); + + /** + * + * + *
    +   * Required. AddressGroup resource to be created.
    +   * 
    + * + * + * .google.cloud.networksecurity.v1.AddressGroup address_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networksecurity.v1.AddressGroupOrBuilder getAddressGroupOrBuilder(); + + /** + * + * + *
    +   * Optional. An optional request ID to identify requests. Specify a unique
    +   * request ID so that if you must retry your request, the server will know to
    +   * ignore the request if it has already been completed. The server will
    +   * guarantee that for at least 60 minutes since the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and
    +   * the request times out. If you make the request again with the same request
    +   * ID, the server can check if original operation with the same request ID
    +   * was received, and if so, will ignore the second request. This prevents
    +   * clients from accidentally creating duplicate commitments.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID is
    +   * not supported (00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
    +   * Optional. An optional request ID to identify requests. Specify a unique
    +   * request ID so that if you must retry your request, the server will know to
    +   * ignore the request if it has already been completed. The server will
    +   * guarantee that for at least 60 minutes since the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and
    +   * the request times out. If you make the request again with the same request
    +   * ID, the server can check if original operation with the same request ID
    +   * was received, and if so, will ignore the second request. This prevents
    +   * clients from accidentally creating duplicate commitments.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID is
    +   * not supported (00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteAddressGroupRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteAddressGroupRequest.java new file mode 100644 index 000000000000..c42753173204 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteAddressGroupRequest.java @@ -0,0 +1,933 @@ +/* + * 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/networksecurity/v1/address_group.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
    + * Request used by the DeleteAddressGroup method.
    + * 
    + * + * Protobuf type {@code google.cloud.networksecurity.v1.DeleteAddressGroupRequest} + */ +public final class DeleteAddressGroupRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.DeleteAddressGroupRequest) + DeleteAddressGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DeleteAddressGroupRequest.newBuilder() to construct. + private DeleteAddressGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteAddressGroupRequest() { + name_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteAddressGroupRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_DeleteAddressGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_DeleteAddressGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest.class, + com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Required. A name of the AddressGroup to delete. Must be in the format
    +   * `projects/*/locations/{location}/addressGroups/*`.
    +   * 
    + * + * + * 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. A name of the AddressGroup to delete. Must be in the format
    +   * `projects/*/locations/{location}/addressGroups/*`.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 2; + + @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 will know to
    +   * ignore the request if it has already been completed. The server will
    +   * guarantee that for at least 60 minutes since the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and
    +   * the request times out. If you make the request again with the same request
    +   * ID, the server can check if original operation with the same request ID
    +   * was received, and if so, will ignore the second request. This prevents
    +   * clients from accidentally creating duplicate commitments.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID is
    +   * not supported (00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. An optional request ID to identify requests. Specify a unique
    +   * request ID so that if you must retry your request, the server will know to
    +   * ignore the request if it has already been completed. The server will
    +   * guarantee that for at least 60 minutes since the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and
    +   * the request times out. If you make the request again with the same request
    +   * ID, the server can check if original operation with the same request ID
    +   * was received, and if so, will ignore the second request. This prevents
    +   * clients from accidentally creating duplicate commitments.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID is
    +   * not supported (00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest other = + (com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest 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.networksecurity.v1.DeleteAddressGroupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest parseFrom( + 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.networksecurity.v1.DeleteAddressGroupRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest 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.networksecurity.v1.DeleteAddressGroupRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest 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.networksecurity.v1.DeleteAddressGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest 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.networksecurity.v1.DeleteAddressGroupRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request used by the DeleteAddressGroup method.
    +   * 
    + * + * Protobuf type {@code google.cloud.networksecurity.v1.DeleteAddressGroupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.DeleteAddressGroupRequest) + com.google.cloud.networksecurity.v1.DeleteAddressGroupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_DeleteAddressGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_DeleteAddressGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest.class, + com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_DeleteAddressGroupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest build() { + com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest buildPartial() { + com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest result = + new com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + } + + @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.networksecurity.v1.DeleteAddressGroupRequest) { + return mergeFrom((com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest other) { + if (other + == com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
    +     * Required. A name of the AddressGroup to delete. Must be in the format
    +     * `projects/*/locations/{location}/addressGroups/*`.
    +     * 
    + * + * + * 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. A name of the AddressGroup to delete. Must be in the format
    +     * `projects/*/locations/{location}/addressGroups/*`.
    +     * 
    + * + * + * 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. A name of the AddressGroup to delete. Must be in the format
    +     * `projects/*/locations/{location}/addressGroups/*`.
    +     * 
    + * + * + * 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. A name of the AddressGroup to delete. Must be in the format
    +     * `projects/*/locations/{location}/addressGroups/*`.
    +     * 
    + * + * + * 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. A name of the AddressGroup to delete. Must be in the format
    +     * `projects/*/locations/{location}/addressGroups/*`.
    +     * 
    + * + * + * 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 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 will know to
    +     * ignore the request if it has already been completed. The server will
    +     * guarantee that for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, will ignore the second request. This prevents
    +     * clients from accidentally creating duplicate commitments.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID is
    +     * not supported (00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. An optional request ID to identify requests. Specify a unique
    +     * request ID so that if you must retry your request, the server will know to
    +     * ignore the request if it has already been completed. The server will
    +     * guarantee that for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, will ignore the second request. This prevents
    +     * clients from accidentally creating duplicate commitments.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID is
    +     * not supported (00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. An optional request ID to identify requests. Specify a unique
    +     * request ID so that if you must retry your request, the server will know to
    +     * ignore the request if it has already been completed. The server will
    +     * guarantee that for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, will ignore the second request. This prevents
    +     * clients from accidentally creating duplicate commitments.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID is
    +     * not supported (00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000002; + 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 will know to
    +     * ignore the request if it has already been completed. The server will
    +     * guarantee that for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, will ignore the second request. This prevents
    +     * clients from accidentally creating duplicate commitments.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID is
    +     * not supported (00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + 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 will know to
    +     * ignore the request if it has already been completed. The server will
    +     * guarantee that for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, will ignore the second request. This prevents
    +     * clients from accidentally creating duplicate commitments.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID is
    +     * not supported (00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.DeleteAddressGroupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.DeleteAddressGroupRequest) + private static final com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest(); + } + + public static com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteAddressGroupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.networksecurity.v1.DeleteAddressGroupRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteAddressGroupRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteAddressGroupRequestOrBuilder.java new file mode 100644 index 000000000000..3d38bd5c09b2 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DeleteAddressGroupRequestOrBuilder.java @@ -0,0 +1,108 @@ +/* + * 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/networksecurity/v1/address_group.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networksecurity.v1; + +public interface DeleteAddressGroupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.DeleteAddressGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. A name of the AddressGroup to delete. Must be in the format
    +   * `projects/*/locations/{location}/addressGroups/*`.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Required. A name of the AddressGroup to delete. Must be in the format
    +   * `projects/*/locations/{location}/addressGroups/*`.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Optional. An optional request ID to identify requests. Specify a unique
    +   * request ID so that if you must retry your request, the server will know to
    +   * ignore the request if it has already been completed. The server will
    +   * guarantee that for at least 60 minutes since the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and
    +   * the request times out. If you make the request again with the same request
    +   * ID, the server can check if original operation with the same request ID
    +   * was received, and if so, will ignore the second request. This prevents
    +   * clients from accidentally creating duplicate commitments.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID is
    +   * not supported (00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 will know to
    +   * ignore the request if it has already been completed. The server will
    +   * guarantee that for at least 60 minutes since the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and
    +   * the request times out. If you make the request again with the same request
    +   * ID, the server can check if original operation with the same request ID
    +   * was received, and if so, will ignore the second request. This prevents
    +   * clients from accidentally creating duplicate commitments.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID is
    +   * not supported (00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetAddressGroupRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetAddressGroupRequest.java new file mode 100644 index 000000000000..5fcb51e0416f --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetAddressGroupRequest.java @@ -0,0 +1,656 @@ +/* + * 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/networksecurity/v1/address_group.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
    + * Request used by the GetAddressGroup method.
    + * 
    + * + * Protobuf type {@code google.cloud.networksecurity.v1.GetAddressGroupRequest} + */ +public final class GetAddressGroupRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.GetAddressGroupRequest) + GetAddressGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetAddressGroupRequest.newBuilder() to construct. + private GetAddressGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetAddressGroupRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetAddressGroupRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_GetAddressGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_GetAddressGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.GetAddressGroupRequest.class, + com.google.cloud.networksecurity.v1.GetAddressGroupRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Required. A name of the AddressGroup to get. Must be in the format
    +   * `projects/*/locations/{location}/addressGroups/*`.
    +   * 
    + * + * + * 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. A name of the AddressGroup to get. Must be in the format
    +   * `projects/*/locations/{location}/addressGroups/*`.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.networksecurity.v1.GetAddressGroupRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.GetAddressGroupRequest other = + (com.google.cloud.networksecurity.v1.GetAddressGroupRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.GetAddressGroupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetAddressGroupRequest 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.networksecurity.v1.GetAddressGroupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetAddressGroupRequest parseFrom( + 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.networksecurity.v1.GetAddressGroupRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.GetAddressGroupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.GetAddressGroupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetAddressGroupRequest 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.networksecurity.v1.GetAddressGroupRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetAddressGroupRequest 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.networksecurity.v1.GetAddressGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.GetAddressGroupRequest 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.networksecurity.v1.GetAddressGroupRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request used by the GetAddressGroup method.
    +   * 
    + * + * Protobuf type {@code google.cloud.networksecurity.v1.GetAddressGroupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.GetAddressGroupRequest) + com.google.cloud.networksecurity.v1.GetAddressGroupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_GetAddressGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_GetAddressGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.GetAddressGroupRequest.class, + com.google.cloud.networksecurity.v1.GetAddressGroupRequest.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.GetAddressGroupRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_GetAddressGroupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetAddressGroupRequest getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.GetAddressGroupRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetAddressGroupRequest build() { + com.google.cloud.networksecurity.v1.GetAddressGroupRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.GetAddressGroupRequest buildPartial() { + com.google.cloud.networksecurity.v1.GetAddressGroupRequest result = + new com.google.cloud.networksecurity.v1.GetAddressGroupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.networksecurity.v1.GetAddressGroupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.GetAddressGroupRequest) { + return mergeFrom((com.google.cloud.networksecurity.v1.GetAddressGroupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networksecurity.v1.GetAddressGroupRequest other) { + if (other == com.google.cloud.networksecurity.v1.GetAddressGroupRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
    +     * Required. A name of the AddressGroup to get. Must be in the format
    +     * `projects/*/locations/{location}/addressGroups/*`.
    +     * 
    + * + * + * 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. A name of the AddressGroup to get. Must be in the format
    +     * `projects/*/locations/{location}/addressGroups/*`.
    +     * 
    + * + * + * 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. A name of the AddressGroup to get. Must be in the format
    +     * `projects/*/locations/{location}/addressGroups/*`.
    +     * 
    + * + * + * 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. A name of the AddressGroup to get. Must be in the format
    +     * `projects/*/locations/{location}/addressGroups/*`.
    +     * 
    + * + * + * 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. A name of the AddressGroup to get. Must be in the format
    +     * `projects/*/locations/{location}/addressGroups/*`.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.GetAddressGroupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.GetAddressGroupRequest) + private static final com.google.cloud.networksecurity.v1.GetAddressGroupRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.GetAddressGroupRequest(); + } + + public static com.google.cloud.networksecurity.v1.GetAddressGroupRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAddressGroupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.networksecurity.v1.GetAddressGroupRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetAddressGroupRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetAddressGroupRequestOrBuilder.java new file mode 100644 index 000000000000..f05180f1fa35 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GetAddressGroupRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * 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/networksecurity/v1/address_group.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networksecurity.v1; + +public interface GetAddressGroupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.GetAddressGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. A name of the AddressGroup to get. Must be in the format
    +   * `projects/*/locations/{location}/addressGroups/*`.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Required. A name of the AddressGroup to get. Must be in the format
    +   * `projects/*/locations/{location}/addressGroups/*`.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAddressGroupReferencesRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAddressGroupReferencesRequest.java new file mode 100644 index 000000000000..8f869e581fe1 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAddressGroupReferencesRequest.java @@ -0,0 +1,977 @@ +/* + * 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/networksecurity/v1/address_group.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
    + * Request used by the ListAddressGroupReferences method.
    + * 
    + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest} + */ +public final class ListAddressGroupReferencesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest) + ListAddressGroupReferencesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListAddressGroupReferencesRequest.newBuilder() to construct. + private ListAddressGroupReferencesRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListAddressGroupReferencesRequest() { + addressGroup_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListAddressGroupReferencesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_ListAddressGroupReferencesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_ListAddressGroupReferencesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest.class, + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest.Builder.class); + } + + public static final int ADDRESS_GROUP_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object addressGroup_ = ""; + + /** + * + * + *
    +   * Required. A name of the AddressGroup to clone items to. Must be in the
    +   * format `projects|organization/*/locations/{location}/addressGroups/*`.
    +   * 
    + * + * + * string address_group = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The addressGroup. + */ + @java.lang.Override + public java.lang.String getAddressGroup() { + java.lang.Object ref = addressGroup_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + addressGroup_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. A name of the AddressGroup to clone items to. Must be in the
    +   * format `projects|organization/*/locations/{location}/addressGroups/*`.
    +   * 
    + * + * + * string address_group = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for addressGroup. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAddressGroupBytes() { + java.lang.Object ref = addressGroup_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + addressGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
    +   * The maximum number of references to return.  If unspecified, server
    +   * will pick an appropriate default. Server may return fewer items than
    +   * requested. A caller should only rely on response's
    +   * [next_page_token][google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.next_page_token]
    +   * to determine if there are more AddressGroupUsers left to be queried.
    +   * 
    + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
    +   * The next_page_token value returned from a previous List request,
    +   * if any.
    +   * 
    + * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
    +   * The next_page_token value returned from a previous List request,
    +   * if any.
    +   * 
    + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(addressGroup_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, addressGroup_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(addressGroup_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, addressGroup_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest other = + (com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest) obj; + + if (!getAddressGroup().equals(other.getAddressGroup())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ADDRESS_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getAddressGroup().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest 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.networksecurity.v1.ListAddressGroupReferencesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest parseFrom( + 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.networksecurity.v1.ListAddressGroupReferencesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest 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.networksecurity.v1.ListAddressGroupReferencesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest + 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.networksecurity.v1.ListAddressGroupReferencesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest 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.networksecurity.v1.ListAddressGroupReferencesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request used by the ListAddressGroupReferences method.
    +   * 
    + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest) + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_ListAddressGroupReferencesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_ListAddressGroupReferencesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest.class, + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + addressGroup_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_ListAddressGroupReferencesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest build() { + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest buildPartial() { + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest result = + new com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.addressGroup_ = addressGroup_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest other) { + if (other + == com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest + .getDefaultInstance()) return this; + if (!other.getAddressGroup().isEmpty()) { + addressGroup_ = other.addressGroup_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + addressGroup_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object addressGroup_ = ""; + + /** + * + * + *
    +     * Required. A name of the AddressGroup to clone items to. Must be in the
    +     * format `projects|organization/*/locations/{location}/addressGroups/*`.
    +     * 
    + * + * + * string address_group = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The addressGroup. + */ + public java.lang.String getAddressGroup() { + java.lang.Object ref = addressGroup_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + addressGroup_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. A name of the AddressGroup to clone items to. Must be in the
    +     * format `projects|organization/*/locations/{location}/addressGroups/*`.
    +     * 
    + * + * + * string address_group = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for addressGroup. + */ + public com.google.protobuf.ByteString getAddressGroupBytes() { + java.lang.Object ref = addressGroup_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + addressGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. A name of the AddressGroup to clone items to. Must be in the
    +     * format `projects|organization/*/locations/{location}/addressGroups/*`.
    +     * 
    + * + * + * string address_group = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The addressGroup to set. + * @return This builder for chaining. + */ + public Builder setAddressGroup(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + addressGroup_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. A name of the AddressGroup to clone items to. Must be in the
    +     * format `projects|organization/*/locations/{location}/addressGroups/*`.
    +     * 
    + * + * + * string address_group = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAddressGroup() { + addressGroup_ = getDefaultInstance().getAddressGroup(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. A name of the AddressGroup to clone items to. Must be in the
    +     * format `projects|organization/*/locations/{location}/addressGroups/*`.
    +     * 
    + * + * + * string address_group = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for addressGroup to set. + * @return This builder for chaining. + */ + public Builder setAddressGroupBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + addressGroup_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
    +     * The maximum number of references to return.  If unspecified, server
    +     * will pick an appropriate default. Server may return fewer items than
    +     * requested. A caller should only rely on response's
    +     * [next_page_token][google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.next_page_token]
    +     * to determine if there are more AddressGroupUsers left to be queried.
    +     * 
    + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
    +     * The maximum number of references to return.  If unspecified, server
    +     * will pick an appropriate default. Server may return fewer items than
    +     * requested. A caller should only rely on response's
    +     * [next_page_token][google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.next_page_token]
    +     * to determine if there are more AddressGroupUsers left to be queried.
    +     * 
    + * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * The maximum number of references to return.  If unspecified, server
    +     * will pick an appropriate default. Server may return fewer items than
    +     * requested. A caller should only rely on response's
    +     * [next_page_token][google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.next_page_token]
    +     * to determine if there are more AddressGroupUsers left to be queried.
    +     * 
    + * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
    +     * The next_page_token value returned from a previous List request,
    +     * if any.
    +     * 
    + * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * The next_page_token value returned from a previous List request,
    +     * if any.
    +     * 
    + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * The next_page_token value returned from a previous List request,
    +     * if any.
    +     * 
    + * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * The next_page_token value returned from a previous List request,
    +     * if any.
    +     * 
    + * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
    +     * The next_page_token value returned from a previous List request,
    +     * if any.
    +     * 
    + * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + 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.networksecurity.v1.ListAddressGroupReferencesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest) + private static final com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest(); + } + + public static com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAddressGroupReferencesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.networksecurity.v1.ListAddressGroupReferencesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAddressGroupReferencesRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAddressGroupReferencesRequestOrBuilder.java new file mode 100644 index 000000000000..d1883d38db69 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAddressGroupReferencesRequestOrBuilder.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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networksecurity/v1/address_group.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networksecurity.v1; + +public interface ListAddressGroupReferencesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. A name of the AddressGroup to clone items to. Must be in the
    +   * format `projects|organization/*/locations/{location}/addressGroups/*`.
    +   * 
    + * + * + * string address_group = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The addressGroup. + */ + java.lang.String getAddressGroup(); + + /** + * + * + *
    +   * Required. A name of the AddressGroup to clone items to. Must be in the
    +   * format `projects|organization/*/locations/{location}/addressGroups/*`.
    +   * 
    + * + * + * string address_group = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for addressGroup. + */ + com.google.protobuf.ByteString getAddressGroupBytes(); + + /** + * + * + *
    +   * The maximum number of references to return.  If unspecified, server
    +   * will pick an appropriate default. Server may return fewer items than
    +   * requested. A caller should only rely on response's
    +   * [next_page_token][google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.next_page_token]
    +   * to determine if there are more AddressGroupUsers left to be queried.
    +   * 
    + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
    +   * The next_page_token value returned from a previous List request,
    +   * if any.
    +   * 
    + * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
    +   * The next_page_token value returned from a previous List request,
    +   * if any.
    +   * 
    + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAddressGroupReferencesResponse.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAddressGroupReferencesResponse.java new file mode 100644 index 000000000000..7174d39f682f --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAddressGroupReferencesResponse.java @@ -0,0 +1,2346 @@ +/* + * 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/networksecurity/v1/address_group.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
    + * Response of the ListAddressGroupReferences method.
    + * 
    + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse} + */ +public final class ListAddressGroupReferencesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse) + ListAddressGroupReferencesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListAddressGroupReferencesResponse.newBuilder() to construct. + private ListAddressGroupReferencesResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListAddressGroupReferencesResponse() { + addressGroupReferences_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListAddressGroupReferencesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_ListAddressGroupReferencesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_ListAddressGroupReferencesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.class, + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.Builder.class); + } + + public interface AddressGroupReferenceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.AddressGroupReference) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * FirewallPolicy that is using the Address Group.
    +     * 
    + * + * string firewall_policy = 1; + * + * @return The firewallPolicy. + */ + java.lang.String getFirewallPolicy(); + + /** + * + * + *
    +     * FirewallPolicy that is using the Address Group.
    +     * 
    + * + * string firewall_policy = 1; + * + * @return The bytes for firewallPolicy. + */ + com.google.protobuf.ByteString getFirewallPolicyBytes(); + + /** + * + * + *
    +     * Cloud Armor SecurityPolicy that is using the Address Group.
    +     * 
    + * + * string security_policy = 4; + * + * @return The securityPolicy. + */ + java.lang.String getSecurityPolicy(); + + /** + * + * + *
    +     * Cloud Armor SecurityPolicy that is using the Address Group.
    +     * 
    + * + * string security_policy = 4; + * + * @return The bytes for securityPolicy. + */ + com.google.protobuf.ByteString getSecurityPolicyBytes(); + + /** + * + * + *
    +     * Rule priority of the FirewallPolicy that is using the Address Group.
    +     * 
    + * + * int32 rule_priority = 2; + * + * @return The rulePriority. + */ + int getRulePriority(); + } + + /** + * + * + *
    +   * The Reference of AddressGroup.
    +   * 
    + * + * Protobuf type {@code + * google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.AddressGroupReference} + */ + public static final class AddressGroupReference extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.AddressGroupReference) + AddressGroupReferenceOrBuilder { + private static final long serialVersionUID = 0L; + + // Use AddressGroupReference.newBuilder() to construct. + private AddressGroupReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AddressGroupReference() { + firewallPolicy_ = ""; + securityPolicy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AddressGroupReference(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_ListAddressGroupReferencesResponse_AddressGroupReference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_ListAddressGroupReferencesResponse_AddressGroupReference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReference.class, + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReference.Builder.class); + } + + public static final int FIREWALL_POLICY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object firewallPolicy_ = ""; + + /** + * + * + *
    +     * FirewallPolicy that is using the Address Group.
    +     * 
    + * + * string firewall_policy = 1; + * + * @return The firewallPolicy. + */ + @java.lang.Override + public java.lang.String getFirewallPolicy() { + java.lang.Object ref = firewallPolicy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + firewallPolicy_ = s; + return s; + } + } + + /** + * + * + *
    +     * FirewallPolicy that is using the Address Group.
    +     * 
    + * + * string firewall_policy = 1; + * + * @return The bytes for firewallPolicy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFirewallPolicyBytes() { + java.lang.Object ref = firewallPolicy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + firewallPolicy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SECURITY_POLICY_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object securityPolicy_ = ""; + + /** + * + * + *
    +     * Cloud Armor SecurityPolicy that is using the Address Group.
    +     * 
    + * + * string security_policy = 4; + * + * @return The securityPolicy. + */ + @java.lang.Override + public java.lang.String getSecurityPolicy() { + java.lang.Object ref = securityPolicy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + securityPolicy_ = s; + return s; + } + } + + /** + * + * + *
    +     * Cloud Armor SecurityPolicy that is using the Address Group.
    +     * 
    + * + * string security_policy = 4; + * + * @return The bytes for securityPolicy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSecurityPolicyBytes() { + java.lang.Object ref = securityPolicy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + securityPolicy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RULE_PRIORITY_FIELD_NUMBER = 2; + private int rulePriority_ = 0; + + /** + * + * + *
    +     * Rule priority of the FirewallPolicy that is using the Address Group.
    +     * 
    + * + * int32 rule_priority = 2; + * + * @return The rulePriority. + */ + @java.lang.Override + public int getRulePriority() { + return rulePriority_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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(firewallPolicy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, firewallPolicy_); + } + if (rulePriority_ != 0) { + output.writeInt32(2, rulePriority_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(securityPolicy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, securityPolicy_); + } + 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(firewallPolicy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, firewallPolicy_); + } + if (rulePriority_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, rulePriority_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(securityPolicy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, securityPolicy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReference)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.AddressGroupReference + other = + (com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReference) + obj; + + if (!getFirewallPolicy().equals(other.getFirewallPolicy())) return false; + if (!getSecurityPolicy().equals(other.getSecurityPolicy())) return false; + if (getRulePriority() != other.getRulePriority()) 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) + FIREWALL_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getFirewallPolicy().hashCode(); + hash = (37 * hash) + SECURITY_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getSecurityPolicy().hashCode(); + hash = (37 * hash) + RULE_PRIORITY_FIELD_NUMBER; + hash = (53 * hash) + getRulePriority(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReference + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReference + 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.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReference + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReference + parseFrom( + 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.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReference + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReference + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReference + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReference + 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.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReference + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReference + 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.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReference + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReference + 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.networksecurity.v1.ListAddressGroupReferencesResponse.AddressGroupReference + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 Reference of AddressGroup.
    +     * 
    + * + * Protobuf type {@code + * google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.AddressGroupReference} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.AddressGroupReference) + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReferenceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_ListAddressGroupReferencesResponse_AddressGroupReference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_ListAddressGroupReferencesResponse_AddressGroupReference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReference.class, + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReference.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.AddressGroupReference.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + firewallPolicy_ = ""; + securityPolicy_ = ""; + rulePriority_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_ListAddressGroupReferencesResponse_AddressGroupReference_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReference + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReference.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReference + build() { + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.AddressGroupReference + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReference + buildPartial() { + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.AddressGroupReference + result = + new com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReference(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReference + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.firewallPolicy_ = firewallPolicy_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.securityPolicy_ = securityPolicy_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.rulePriority_ = rulePriority_; + } + } + + @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.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReference) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReference) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReference + other) { + if (other + == com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReference.getDefaultInstance()) return this; + if (!other.getFirewallPolicy().isEmpty()) { + firewallPolicy_ = other.firewallPolicy_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getSecurityPolicy().isEmpty()) { + securityPolicy_ = other.securityPolicy_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getRulePriority() != 0) { + setRulePriority(other.getRulePriority()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + firewallPolicy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + rulePriority_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 16 + case 34: + { + securityPolicy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + 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 firewallPolicy_ = ""; + + /** + * + * + *
    +       * FirewallPolicy that is using the Address Group.
    +       * 
    + * + * string firewall_policy = 1; + * + * @return The firewallPolicy. + */ + public java.lang.String getFirewallPolicy() { + java.lang.Object ref = firewallPolicy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + firewallPolicy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +       * FirewallPolicy that is using the Address Group.
    +       * 
    + * + * string firewall_policy = 1; + * + * @return The bytes for firewallPolicy. + */ + public com.google.protobuf.ByteString getFirewallPolicyBytes() { + java.lang.Object ref = firewallPolicy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + firewallPolicy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +       * FirewallPolicy that is using the Address Group.
    +       * 
    + * + * string firewall_policy = 1; + * + * @param value The firewallPolicy to set. + * @return This builder for chaining. + */ + public Builder setFirewallPolicy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + firewallPolicy_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +       * FirewallPolicy that is using the Address Group.
    +       * 
    + * + * string firewall_policy = 1; + * + * @return This builder for chaining. + */ + public Builder clearFirewallPolicy() { + firewallPolicy_ = getDefaultInstance().getFirewallPolicy(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +       * FirewallPolicy that is using the Address Group.
    +       * 
    + * + * string firewall_policy = 1; + * + * @param value The bytes for firewallPolicy to set. + * @return This builder for chaining. + */ + public Builder setFirewallPolicyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + firewallPolicy_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object securityPolicy_ = ""; + + /** + * + * + *
    +       * Cloud Armor SecurityPolicy that is using the Address Group.
    +       * 
    + * + * string security_policy = 4; + * + * @return The securityPolicy. + */ + public java.lang.String getSecurityPolicy() { + java.lang.Object ref = securityPolicy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + securityPolicy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +       * Cloud Armor SecurityPolicy that is using the Address Group.
    +       * 
    + * + * string security_policy = 4; + * + * @return The bytes for securityPolicy. + */ + public com.google.protobuf.ByteString getSecurityPolicyBytes() { + java.lang.Object ref = securityPolicy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + securityPolicy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +       * Cloud Armor SecurityPolicy that is using the Address Group.
    +       * 
    + * + * string security_policy = 4; + * + * @param value The securityPolicy to set. + * @return This builder for chaining. + */ + public Builder setSecurityPolicy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + securityPolicy_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Cloud Armor SecurityPolicy that is using the Address Group.
    +       * 
    + * + * string security_policy = 4; + * + * @return This builder for chaining. + */ + public Builder clearSecurityPolicy() { + securityPolicy_ = getDefaultInstance().getSecurityPolicy(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +       * Cloud Armor SecurityPolicy that is using the Address Group.
    +       * 
    + * + * string security_policy = 4; + * + * @param value The bytes for securityPolicy to set. + * @return This builder for chaining. + */ + public Builder setSecurityPolicyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + securityPolicy_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int rulePriority_; + + /** + * + * + *
    +       * Rule priority of the FirewallPolicy that is using the Address Group.
    +       * 
    + * + * int32 rule_priority = 2; + * + * @return The rulePriority. + */ + @java.lang.Override + public int getRulePriority() { + return rulePriority_; + } + + /** + * + * + *
    +       * Rule priority of the FirewallPolicy that is using the Address Group.
    +       * 
    + * + * int32 rule_priority = 2; + * + * @param value The rulePriority to set. + * @return This builder for chaining. + */ + public Builder setRulePriority(int value) { + + rulePriority_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Rule priority of the FirewallPolicy that is using the Address Group.
    +       * 
    + * + * int32 rule_priority = 2; + * + * @return This builder for chaining. + */ + public Builder clearRulePriority() { + bitField0_ = (bitField0_ & ~0x00000004); + rulePriority_ = 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.networksecurity.v1.ListAddressGroupReferencesResponse.AddressGroupReference) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.AddressGroupReference) + private static final com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReference + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReference(); + } + + public static com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReference + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AddressGroupReference parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReference + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int ADDRESS_GROUP_REFERENCES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReference> + addressGroupReferences_; + + /** + * + * + *
    +   * A list of references that matches the specified filter in the request.
    +   * 
    + * + * + * repeated .google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.AddressGroupReference address_group_references = 1; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReference> + getAddressGroupReferencesList() { + return addressGroupReferences_; + } + + /** + * + * + *
    +   * A list of references that matches the specified filter in the request.
    +   * 
    + * + * + * repeated .google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.AddressGroupReference address_group_references = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReferenceOrBuilder> + getAddressGroupReferencesOrBuilderList() { + return addressGroupReferences_; + } + + /** + * + * + *
    +   * A list of references that matches the specified filter in the request.
    +   * 
    + * + * + * repeated .google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.AddressGroupReference address_group_references = 1; + * + */ + @java.lang.Override + public int getAddressGroupReferencesCount() { + return addressGroupReferences_.size(); + } + + /** + * + * + *
    +   * A list of references that matches the specified filter in the request.
    +   * 
    + * + * + * repeated .google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.AddressGroupReference address_group_references = 1; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReference + getAddressGroupReferences(int index) { + return addressGroupReferences_.get(index); + } + + /** + * + * + *
    +   * A list of references that matches the specified filter in the request.
    +   * 
    + * + * + * repeated .google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.AddressGroupReference address_group_references = 1; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReferenceOrBuilder + getAddressGroupReferencesOrBuilder(int index) { + return addressGroupReferences_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +   * If there might be more results than those appearing in this response, then
    +   * `next_page_token` is included. To get the next set of results, call this
    +   * method again using the value of `next_page_token` as `page_token`.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
    +   * If there might be more results than those appearing in this response, then
    +   * `next_page_token` is included. To get the next set of results, call this
    +   * method again using the value of `next_page_token` as `page_token`.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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 < addressGroupReferences_.size(); i++) { + output.writeMessage(1, addressGroupReferences_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < addressGroupReferences_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, addressGroupReferences_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse other = + (com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse) obj; + + if (!getAddressGroupReferencesList().equals(other.getAddressGroupReferencesList())) + return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAddressGroupReferencesCount() > 0) { + hash = (37 * hash) + ADDRESS_GROUP_REFERENCES_FIELD_NUMBER; + hash = (53 * hash) + getAddressGroupReferencesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse 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.networksecurity.v1.ListAddressGroupReferencesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse parseFrom( + 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.networksecurity.v1.ListAddressGroupReferencesResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse 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.networksecurity.v1.ListAddressGroupReferencesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + 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.networksecurity.v1.ListAddressGroupReferencesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse 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.networksecurity.v1.ListAddressGroupReferencesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 the ListAddressGroupReferences method.
    +   * 
    + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse) + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_ListAddressGroupReferencesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_ListAddressGroupReferencesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.class, + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (addressGroupReferencesBuilder_ == null) { + addressGroupReferences_ = java.util.Collections.emptyList(); + } else { + addressGroupReferences_ = null; + addressGroupReferencesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_ListAddressGroupReferencesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse build() { + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse buildPartial() { + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse result = + new com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse result) { + if (addressGroupReferencesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + addressGroupReferences_ = java.util.Collections.unmodifiableList(addressGroupReferences_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.addressGroupReferences_ = addressGroupReferences_; + } else { + result.addressGroupReferences_ = addressGroupReferencesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse other) { + if (other + == com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .getDefaultInstance()) return this; + if (addressGroupReferencesBuilder_ == null) { + if (!other.addressGroupReferences_.isEmpty()) { + if (addressGroupReferences_.isEmpty()) { + addressGroupReferences_ = other.addressGroupReferences_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAddressGroupReferencesIsMutable(); + addressGroupReferences_.addAll(other.addressGroupReferences_); + } + onChanged(); + } + } else { + if (!other.addressGroupReferences_.isEmpty()) { + if (addressGroupReferencesBuilder_.isEmpty()) { + addressGroupReferencesBuilder_.dispose(); + addressGroupReferencesBuilder_ = null; + addressGroupReferences_ = other.addressGroupReferences_; + bitField0_ = (bitField0_ & ~0x00000001); + addressGroupReferencesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAddressGroupReferencesFieldBuilder() + : null; + } else { + addressGroupReferencesBuilder_.addAllMessages(other.addressGroupReferences_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReference + m = + input.readMessage( + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReference.parser(), + extensionRegistry); + if (addressGroupReferencesBuilder_ == null) { + ensureAddressGroupReferencesIsMutable(); + addressGroupReferences_.add(m); + } else { + addressGroupReferencesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List< + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReference> + addressGroupReferences_ = java.util.Collections.emptyList(); + + private void ensureAddressGroupReferencesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + addressGroupReferences_ = + new java.util.ArrayList< + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReference>(addressGroupReferences_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReference, + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReference.Builder, + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReferenceOrBuilder> + addressGroupReferencesBuilder_; + + /** + * + * + *
    +     * A list of references that matches the specified filter in the request.
    +     * 
    + * + * + * repeated .google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.AddressGroupReference address_group_references = 1; + * + */ + public java.util.List< + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReference> + getAddressGroupReferencesList() { + if (addressGroupReferencesBuilder_ == null) { + return java.util.Collections.unmodifiableList(addressGroupReferences_); + } else { + return addressGroupReferencesBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * A list of references that matches the specified filter in the request.
    +     * 
    + * + * + * repeated .google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.AddressGroupReference address_group_references = 1; + * + */ + public int getAddressGroupReferencesCount() { + if (addressGroupReferencesBuilder_ == null) { + return addressGroupReferences_.size(); + } else { + return addressGroupReferencesBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * A list of references that matches the specified filter in the request.
    +     * 
    + * + * + * repeated .google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.AddressGroupReference address_group_references = 1; + * + */ + public com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReference + getAddressGroupReferences(int index) { + if (addressGroupReferencesBuilder_ == null) { + return addressGroupReferences_.get(index); + } else { + return addressGroupReferencesBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * A list of references that matches the specified filter in the request.
    +     * 
    + * + * + * repeated .google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.AddressGroupReference address_group_references = 1; + * + */ + public Builder setAddressGroupReferences( + int index, + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.AddressGroupReference + value) { + if (addressGroupReferencesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddressGroupReferencesIsMutable(); + addressGroupReferences_.set(index, value); + onChanged(); + } else { + addressGroupReferencesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * A list of references that matches the specified filter in the request.
    +     * 
    + * + * + * repeated .google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.AddressGroupReference address_group_references = 1; + * + */ + public Builder setAddressGroupReferences( + int index, + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.AddressGroupReference + .Builder + builderForValue) { + if (addressGroupReferencesBuilder_ == null) { + ensureAddressGroupReferencesIsMutable(); + addressGroupReferences_.set(index, builderForValue.build()); + onChanged(); + } else { + addressGroupReferencesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * A list of references that matches the specified filter in the request.
    +     * 
    + * + * + * repeated .google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.AddressGroupReference address_group_references = 1; + * + */ + public Builder addAddressGroupReferences( + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.AddressGroupReference + value) { + if (addressGroupReferencesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddressGroupReferencesIsMutable(); + addressGroupReferences_.add(value); + onChanged(); + } else { + addressGroupReferencesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * A list of references that matches the specified filter in the request.
    +     * 
    + * + * + * repeated .google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.AddressGroupReference address_group_references = 1; + * + */ + public Builder addAddressGroupReferences( + int index, + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.AddressGroupReference + value) { + if (addressGroupReferencesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddressGroupReferencesIsMutable(); + addressGroupReferences_.add(index, value); + onChanged(); + } else { + addressGroupReferencesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * A list of references that matches the specified filter in the request.
    +     * 
    + * + * + * repeated .google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.AddressGroupReference address_group_references = 1; + * + */ + public Builder addAddressGroupReferences( + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.AddressGroupReference + .Builder + builderForValue) { + if (addressGroupReferencesBuilder_ == null) { + ensureAddressGroupReferencesIsMutable(); + addressGroupReferences_.add(builderForValue.build()); + onChanged(); + } else { + addressGroupReferencesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * A list of references that matches the specified filter in the request.
    +     * 
    + * + * + * repeated .google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.AddressGroupReference address_group_references = 1; + * + */ + public Builder addAddressGroupReferences( + int index, + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.AddressGroupReference + .Builder + builderForValue) { + if (addressGroupReferencesBuilder_ == null) { + ensureAddressGroupReferencesIsMutable(); + addressGroupReferences_.add(index, builderForValue.build()); + onChanged(); + } else { + addressGroupReferencesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * A list of references that matches the specified filter in the request.
    +     * 
    + * + * + * repeated .google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.AddressGroupReference address_group_references = 1; + * + */ + public Builder addAllAddressGroupReferences( + java.lang.Iterable< + ? extends + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReference> + values) { + if (addressGroupReferencesBuilder_ == null) { + ensureAddressGroupReferencesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, addressGroupReferences_); + onChanged(); + } else { + addressGroupReferencesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * A list of references that matches the specified filter in the request.
    +     * 
    + * + * + * repeated .google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.AddressGroupReference address_group_references = 1; + * + */ + public Builder clearAddressGroupReferences() { + if (addressGroupReferencesBuilder_ == null) { + addressGroupReferences_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + addressGroupReferencesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * A list of references that matches the specified filter in the request.
    +     * 
    + * + * + * repeated .google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.AddressGroupReference address_group_references = 1; + * + */ + public Builder removeAddressGroupReferences(int index) { + if (addressGroupReferencesBuilder_ == null) { + ensureAddressGroupReferencesIsMutable(); + addressGroupReferences_.remove(index); + onChanged(); + } else { + addressGroupReferencesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * A list of references that matches the specified filter in the request.
    +     * 
    + * + * + * repeated .google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.AddressGroupReference address_group_references = 1; + * + */ + public com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReference.Builder + getAddressGroupReferencesBuilder(int index) { + return getAddressGroupReferencesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * A list of references that matches the specified filter in the request.
    +     * 
    + * + * + * repeated .google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.AddressGroupReference address_group_references = 1; + * + */ + public com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReferenceOrBuilder + getAddressGroupReferencesOrBuilder(int index) { + if (addressGroupReferencesBuilder_ == null) { + return addressGroupReferences_.get(index); + } else { + return addressGroupReferencesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * A list of references that matches the specified filter in the request.
    +     * 
    + * + * + * repeated .google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.AddressGroupReference address_group_references = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReferenceOrBuilder> + getAddressGroupReferencesOrBuilderList() { + if (addressGroupReferencesBuilder_ != null) { + return addressGroupReferencesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(addressGroupReferences_); + } + } + + /** + * + * + *
    +     * A list of references that matches the specified filter in the request.
    +     * 
    + * + * + * repeated .google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.AddressGroupReference address_group_references = 1; + * + */ + public com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReference.Builder + addAddressGroupReferencesBuilder() { + return getAddressGroupReferencesFieldBuilder() + .addBuilder( + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReference.getDefaultInstance()); + } + + /** + * + * + *
    +     * A list of references that matches the specified filter in the request.
    +     * 
    + * + * + * repeated .google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.AddressGroupReference address_group_references = 1; + * + */ + public com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReference.Builder + addAddressGroupReferencesBuilder(int index) { + return getAddressGroupReferencesFieldBuilder() + .addBuilder( + index, + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReference.getDefaultInstance()); + } + + /** + * + * + *
    +     * A list of references that matches the specified filter in the request.
    +     * 
    + * + * + * repeated .google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.AddressGroupReference address_group_references = 1; + * + */ + public java.util.List< + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReference.Builder> + getAddressGroupReferencesBuilderList() { + return getAddressGroupReferencesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReference, + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReference.Builder, + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReferenceOrBuilder> + getAddressGroupReferencesFieldBuilder() { + if (addressGroupReferencesBuilder_ == null) { + addressGroupReferencesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReference, + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReference.Builder, + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReferenceOrBuilder>( + addressGroupReferences_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + addressGroupReferences_ = null; + } + return addressGroupReferencesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +     * If there might be more results than those appearing in this response, then
    +     * `next_page_token` is included. To get the next set of results, call this
    +     * method again using the value of `next_page_token` as `page_token`.
    +     * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * If there might be more results than those appearing in this response, then
    +     * `next_page_token` is included. To get the next set of results, call this
    +     * method again using the value of `next_page_token` as `page_token`.
    +     * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * If there might be more results than those appearing in this response, then
    +     * `next_page_token` is included. To get the next set of results, call this
    +     * method again using the value of `next_page_token` as `page_token`.
    +     * 
    + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * If there might be more results than those appearing in this response, then
    +     * `next_page_token` is included. To get the next set of results, call this
    +     * method again using the value of `next_page_token` as `page_token`.
    +     * 
    + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * If there might be more results than those appearing in this response, then
    +     * `next_page_token` is included. To get the next set of results, call this
    +     * method again using the value of `next_page_token` as `page_token`.
    +     * 
    + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @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.networksecurity.v1.ListAddressGroupReferencesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse) + private static final com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse(); + } + + public static com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAddressGroupReferencesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.networksecurity.v1.ListAddressGroupReferencesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAddressGroupReferencesResponseOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAddressGroupReferencesResponseOrBuilder.java new file mode 100644 index 000000000000..845c77ca936e --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAddressGroupReferencesResponseOrBuilder.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/cloud/networksecurity/v1/address_group.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networksecurity.v1; + +public interface ListAddressGroupReferencesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * A list of references that matches the specified filter in the request.
    +   * 
    + * + * + * repeated .google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.AddressGroupReference address_group_references = 1; + * + */ + java.util.List< + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReference> + getAddressGroupReferencesList(); + + /** + * + * + *
    +   * A list of references that matches the specified filter in the request.
    +   * 
    + * + * + * repeated .google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.AddressGroupReference address_group_references = 1; + * + */ + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.AddressGroupReference + getAddressGroupReferences(int index); + + /** + * + * + *
    +   * A list of references that matches the specified filter in the request.
    +   * 
    + * + * + * repeated .google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.AddressGroupReference address_group_references = 1; + * + */ + int getAddressGroupReferencesCount(); + + /** + * + * + *
    +   * A list of references that matches the specified filter in the request.
    +   * 
    + * + * + * repeated .google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.AddressGroupReference address_group_references = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReferenceOrBuilder> + getAddressGroupReferencesOrBuilderList(); + + /** + * + * + *
    +   * A list of references that matches the specified filter in the request.
    +   * 
    + * + * + * repeated .google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.AddressGroupReference address_group_references = 1; + * + */ + com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse + .AddressGroupReferenceOrBuilder + getAddressGroupReferencesOrBuilder(int index); + + /** + * + * + *
    +   * If there might be more results than those appearing in this response, then
    +   * `next_page_token` is included. To get the next set of results, call this
    +   * method again using the value of `next_page_token` as `page_token`.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
    +   * If there might be more results than those appearing in this response, then
    +   * `next_page_token` is included. To get the next set of results, call this
    +   * method again using the value of `next_page_token` as `page_token`.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAddressGroupsRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAddressGroupsRequest.java new file mode 100644 index 000000000000..0f7ce68afaa7 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAddressGroupsRequest.java @@ -0,0 +1,1075 @@ +/* + * 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/networksecurity/v1/address_group.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
    + * Request used with the ListAddressGroups method.
    + * 
    + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListAddressGroupsRequest} + */ +public final class ListAddressGroupsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.ListAddressGroupsRequest) + ListAddressGroupsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListAddressGroupsRequest.newBuilder() to construct. + private ListAddressGroupsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListAddressGroupsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListAddressGroupsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_ListAddressGroupsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_ListAddressGroupsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListAddressGroupsRequest.class, + com.google.cloud.networksecurity.v1.ListAddressGroupsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
    +   * Required. The project and location from which the AddressGroups
    +   * should be listed, specified in the format
    +   * `projects/*/locations/{location}`.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. The project and location from which the AddressGroups
    +   * should be listed, specified in the format
    +   * `projects/*/locations/{location}`.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
    +   * Maximum number of AddressGroups to return per call.
    +   * 
    + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
    +   * The value returned by the last
    +   * `ListAddressGroupsResponse` Indicates that this is a
    +   * continuation of a prior `ListAddressGroups` call, and
    +   * that the system should return the next page of data.
    +   * 
    + * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
    +   * The value returned by the last
    +   * `ListAddressGroupsResponse` Indicates that this is a
    +   * continuation of a prior `ListAddressGroups` call, and
    +   * that the system should return the next page of data.
    +   * 
    + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RETURN_PARTIAL_SUCCESS_FIELD_NUMBER = 4; + private boolean returnPartialSuccess_ = false; + + /** + * + * + *
    +   * Optional. If true, allow partial responses for multi-regional Aggregated
    +   * List requests.
    +   * 
    + * + * bool return_partial_success = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The returnPartialSuccess. + */ + @java.lang.Override + public boolean getReturnPartialSuccess() { + return returnPartialSuccess_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (returnPartialSuccess_ != false) { + output.writeBool(4, returnPartialSuccess_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (returnPartialSuccess_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, returnPartialSuccess_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.networksecurity.v1.ListAddressGroupsRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.ListAddressGroupsRequest other = + (com.google.cloud.networksecurity.v1.ListAddressGroupsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getReturnPartialSuccess() != other.getReturnPartialSuccess()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + RETURN_PARTIAL_SUCCESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReturnPartialSuccess()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.ListAddressGroupsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListAddressGroupsRequest 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.networksecurity.v1.ListAddressGroupsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListAddressGroupsRequest parseFrom( + 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.networksecurity.v1.ListAddressGroupsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListAddressGroupsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListAddressGroupsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListAddressGroupsRequest 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.networksecurity.v1.ListAddressGroupsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListAddressGroupsRequest 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.networksecurity.v1.ListAddressGroupsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListAddressGroupsRequest 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.networksecurity.v1.ListAddressGroupsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request used with the ListAddressGroups method.
    +   * 
    + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListAddressGroupsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.ListAddressGroupsRequest) + com.google.cloud.networksecurity.v1.ListAddressGroupsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_ListAddressGroupsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_ListAddressGroupsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListAddressGroupsRequest.class, + com.google.cloud.networksecurity.v1.ListAddressGroupsRequest.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.ListAddressGroupsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + returnPartialSuccess_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_ListAddressGroupsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListAddressGroupsRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.ListAddressGroupsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListAddressGroupsRequest build() { + com.google.cloud.networksecurity.v1.ListAddressGroupsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListAddressGroupsRequest buildPartial() { + com.google.cloud.networksecurity.v1.ListAddressGroupsRequest result = + new com.google.cloud.networksecurity.v1.ListAddressGroupsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.ListAddressGroupsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.returnPartialSuccess_ = returnPartialSuccess_; + } + } + + @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.networksecurity.v1.ListAddressGroupsRequest) { + return mergeFrom((com.google.cloud.networksecurity.v1.ListAddressGroupsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networksecurity.v1.ListAddressGroupsRequest other) { + if (other + == com.google.cloud.networksecurity.v1.ListAddressGroupsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.getReturnPartialSuccess() != false) { + setReturnPartialSuccess(other.getReturnPartialSuccess()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + returnPartialSuccess_ = 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 java.lang.Object parent_ = ""; + + /** + * + * + *
    +     * Required. The project and location from which the AddressGroups
    +     * should be listed, specified in the format
    +     * `projects/*/locations/{location}`.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. The project and location from which the AddressGroups
    +     * should be listed, specified in the format
    +     * `projects/*/locations/{location}`.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. The project and location from which the AddressGroups
    +     * should be listed, specified in the format
    +     * `projects/*/locations/{location}`.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The project and location from which the AddressGroups
    +     * should be listed, specified in the format
    +     * `projects/*/locations/{location}`.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The project and location from which the AddressGroups
    +     * should be listed, specified in the format
    +     * `projects/*/locations/{location}`.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
    +     * Maximum number of AddressGroups to return per call.
    +     * 
    + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
    +     * Maximum number of AddressGroups to return per call.
    +     * 
    + * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Maximum number of AddressGroups to return per call.
    +     * 
    + * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
    +     * The value returned by the last
    +     * `ListAddressGroupsResponse` Indicates that this is a
    +     * continuation of a prior `ListAddressGroups` call, and
    +     * that the system should return the next page of data.
    +     * 
    + * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * The value returned by the last
    +     * `ListAddressGroupsResponse` Indicates that this is a
    +     * continuation of a prior `ListAddressGroups` call, and
    +     * that the system should return the next page of data.
    +     * 
    + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * The value returned by the last
    +     * `ListAddressGroupsResponse` Indicates that this is a
    +     * continuation of a prior `ListAddressGroups` call, and
    +     * that the system should return the next page of data.
    +     * 
    + * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * The value returned by the last
    +     * `ListAddressGroupsResponse` Indicates that this is a
    +     * continuation of a prior `ListAddressGroups` call, and
    +     * that the system should return the next page of data.
    +     * 
    + * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
    +     * The value returned by the last
    +     * `ListAddressGroupsResponse` Indicates that this is a
    +     * continuation of a prior `ListAddressGroups` call, and
    +     * that the system should return the next page of data.
    +     * 
    + * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private boolean returnPartialSuccess_; + + /** + * + * + *
    +     * Optional. If true, allow partial responses for multi-regional Aggregated
    +     * List requests.
    +     * 
    + * + * bool return_partial_success = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The returnPartialSuccess. + */ + @java.lang.Override + public boolean getReturnPartialSuccess() { + return returnPartialSuccess_; + } + + /** + * + * + *
    +     * Optional. If true, allow partial responses for multi-regional Aggregated
    +     * List requests.
    +     * 
    + * + * bool return_partial_success = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The returnPartialSuccess to set. + * @return This builder for chaining. + */ + public Builder setReturnPartialSuccess(boolean value) { + + returnPartialSuccess_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. If true, allow partial responses for multi-regional Aggregated
    +     * List requests.
    +     * 
    + * + * bool return_partial_success = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearReturnPartialSuccess() { + bitField0_ = (bitField0_ & ~0x00000008); + returnPartialSuccess_ = 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.networksecurity.v1.ListAddressGroupsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.ListAddressGroupsRequest) + private static final com.google.cloud.networksecurity.v1.ListAddressGroupsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.ListAddressGroupsRequest(); + } + + public static com.google.cloud.networksecurity.v1.ListAddressGroupsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAddressGroupsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.networksecurity.v1.ListAddressGroupsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAddressGroupsRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAddressGroupsRequestOrBuilder.java new file mode 100644 index 000000000000..1ef27a520334 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAddressGroupsRequestOrBuilder.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/networksecurity/v1/address_group.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networksecurity.v1; + +public interface ListAddressGroupsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.ListAddressGroupsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The project and location from which the AddressGroups
    +   * should be listed, specified in the format
    +   * `projects/*/locations/{location}`.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. The project and location from which the AddressGroups
    +   * should be listed, specified in the format
    +   * `projects/*/locations/{location}`.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Maximum number of AddressGroups to return per call.
    +   * 
    + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
    +   * The value returned by the last
    +   * `ListAddressGroupsResponse` Indicates that this is a
    +   * continuation of a prior `ListAddressGroups` call, and
    +   * that the system should return the next page of data.
    +   * 
    + * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
    +   * The value returned by the last
    +   * `ListAddressGroupsResponse` Indicates that this is a
    +   * continuation of a prior `ListAddressGroups` call, and
    +   * that the system should return the next page of data.
    +   * 
    + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
    +   * Optional. If true, allow partial responses for multi-regional Aggregated
    +   * List requests.
    +   * 
    + * + * bool return_partial_success = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The returnPartialSuccess. + */ + boolean getReturnPartialSuccess(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAddressGroupsResponse.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAddressGroupsResponse.java new file mode 100644 index 000000000000..d992ecffbd58 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAddressGroupsResponse.java @@ -0,0 +1,1471 @@ +/* + * 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/networksecurity/v1/address_group.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
    + * Response returned by the ListAddressGroups method.
    + * 
    + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListAddressGroupsResponse} + */ +public final class ListAddressGroupsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.ListAddressGroupsResponse) + ListAddressGroupsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListAddressGroupsResponse.newBuilder() to construct. + private ListAddressGroupsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListAddressGroupsResponse() { + addressGroups_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListAddressGroupsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_ListAddressGroupsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_ListAddressGroupsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListAddressGroupsResponse.class, + com.google.cloud.networksecurity.v1.ListAddressGroupsResponse.Builder.class); + } + + public static final int ADDRESS_GROUPS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List addressGroups_; + + /** + * + * + *
    +   * List of AddressGroups resources.
    +   * 
    + * + * repeated .google.cloud.networksecurity.v1.AddressGroup address_groups = 1; + */ + @java.lang.Override + public java.util.List getAddressGroupsList() { + return addressGroups_; + } + + /** + * + * + *
    +   * List of AddressGroups resources.
    +   * 
    + * + * repeated .google.cloud.networksecurity.v1.AddressGroup address_groups = 1; + */ + @java.lang.Override + public java.util.List + getAddressGroupsOrBuilderList() { + return addressGroups_; + } + + /** + * + * + *
    +   * List of AddressGroups resources.
    +   * 
    + * + * repeated .google.cloud.networksecurity.v1.AddressGroup address_groups = 1; + */ + @java.lang.Override + public int getAddressGroupsCount() { + return addressGroups_.size(); + } + + /** + * + * + *
    +   * List of AddressGroups resources.
    +   * 
    + * + * repeated .google.cloud.networksecurity.v1.AddressGroup address_groups = 1; + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AddressGroup getAddressGroups(int index) { + return addressGroups_.get(index); + } + + /** + * + * + *
    +   * List of AddressGroups resources.
    +   * 
    + * + * repeated .google.cloud.networksecurity.v1.AddressGroup address_groups = 1; + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AddressGroupOrBuilder getAddressGroupsOrBuilder( + int index) { + return addressGroups_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +   * If there might be more results than those appearing in this response, then
    +   * `next_page_token` is included. To get the next set of results, call this
    +   * method again using the value of `next_page_token` as `page_token`.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
    +   * If there might be more results than those appearing in this response, then
    +   * `next_page_token` is included. To get the next set of results, call this
    +   * method again using the value of `next_page_token` as `page_token`.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < addressGroups_.size(); i++) { + output.writeMessage(1, addressGroups_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < addressGroups_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, addressGroups_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.networksecurity.v1.ListAddressGroupsResponse)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.ListAddressGroupsResponse other = + (com.google.cloud.networksecurity.v1.ListAddressGroupsResponse) obj; + + if (!getAddressGroupsList().equals(other.getAddressGroupsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAddressGroupsCount() > 0) { + hash = (37 * hash) + ADDRESS_GROUPS_FIELD_NUMBER; + hash = (53 * hash) + getAddressGroupsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.ListAddressGroupsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListAddressGroupsResponse 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.networksecurity.v1.ListAddressGroupsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListAddressGroupsResponse parseFrom( + 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.networksecurity.v1.ListAddressGroupsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.ListAddressGroupsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.ListAddressGroupsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListAddressGroupsResponse 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.networksecurity.v1.ListAddressGroupsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListAddressGroupsResponse 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.networksecurity.v1.ListAddressGroupsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.ListAddressGroupsResponse 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.networksecurity.v1.ListAddressGroupsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 returned by the ListAddressGroups method.
    +   * 
    + * + * Protobuf type {@code google.cloud.networksecurity.v1.ListAddressGroupsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.ListAddressGroupsResponse) + com.google.cloud.networksecurity.v1.ListAddressGroupsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_ListAddressGroupsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_ListAddressGroupsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.ListAddressGroupsResponse.class, + com.google.cloud.networksecurity.v1.ListAddressGroupsResponse.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.ListAddressGroupsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (addressGroupsBuilder_ == null) { + addressGroups_ = java.util.Collections.emptyList(); + } else { + addressGroups_ = null; + addressGroupsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_ListAddressGroupsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListAddressGroupsResponse + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.ListAddressGroupsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListAddressGroupsResponse build() { + com.google.cloud.networksecurity.v1.ListAddressGroupsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.ListAddressGroupsResponse buildPartial() { + com.google.cloud.networksecurity.v1.ListAddressGroupsResponse result = + new com.google.cloud.networksecurity.v1.ListAddressGroupsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networksecurity.v1.ListAddressGroupsResponse result) { + if (addressGroupsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + addressGroups_ = java.util.Collections.unmodifiableList(addressGroups_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.addressGroups_ = addressGroups_; + } else { + result.addressGroups_ = addressGroupsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.ListAddressGroupsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.ListAddressGroupsResponse) { + return mergeFrom((com.google.cloud.networksecurity.v1.ListAddressGroupsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networksecurity.v1.ListAddressGroupsResponse other) { + if (other + == com.google.cloud.networksecurity.v1.ListAddressGroupsResponse.getDefaultInstance()) + return this; + if (addressGroupsBuilder_ == null) { + if (!other.addressGroups_.isEmpty()) { + if (addressGroups_.isEmpty()) { + addressGroups_ = other.addressGroups_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAddressGroupsIsMutable(); + addressGroups_.addAll(other.addressGroups_); + } + onChanged(); + } + } else { + if (!other.addressGroups_.isEmpty()) { + if (addressGroupsBuilder_.isEmpty()) { + addressGroupsBuilder_.dispose(); + addressGroupsBuilder_ = null; + addressGroups_ = other.addressGroups_; + bitField0_ = (bitField0_ & ~0x00000001); + addressGroupsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAddressGroupsFieldBuilder() + : null; + } else { + addressGroupsBuilder_.addAllMessages(other.addressGroups_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.networksecurity.v1.AddressGroup m = + input.readMessage( + com.google.cloud.networksecurity.v1.AddressGroup.parser(), + extensionRegistry); + if (addressGroupsBuilder_ == null) { + ensureAddressGroupsIsMutable(); + addressGroups_.add(m); + } else { + addressGroupsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List addressGroups_ = + java.util.Collections.emptyList(); + + private void ensureAddressGroupsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + addressGroups_ = + new java.util.ArrayList( + addressGroups_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networksecurity.v1.AddressGroup, + com.google.cloud.networksecurity.v1.AddressGroup.Builder, + com.google.cloud.networksecurity.v1.AddressGroupOrBuilder> + addressGroupsBuilder_; + + /** + * + * + *
    +     * List of AddressGroups resources.
    +     * 
    + * + * repeated .google.cloud.networksecurity.v1.AddressGroup address_groups = 1; + */ + public java.util.List getAddressGroupsList() { + if (addressGroupsBuilder_ == null) { + return java.util.Collections.unmodifiableList(addressGroups_); + } else { + return addressGroupsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * List of AddressGroups resources.
    +     * 
    + * + * repeated .google.cloud.networksecurity.v1.AddressGroup address_groups = 1; + */ + public int getAddressGroupsCount() { + if (addressGroupsBuilder_ == null) { + return addressGroups_.size(); + } else { + return addressGroupsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * List of AddressGroups resources.
    +     * 
    + * + * repeated .google.cloud.networksecurity.v1.AddressGroup address_groups = 1; + */ + public com.google.cloud.networksecurity.v1.AddressGroup getAddressGroups(int index) { + if (addressGroupsBuilder_ == null) { + return addressGroups_.get(index); + } else { + return addressGroupsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * List of AddressGroups resources.
    +     * 
    + * + * repeated .google.cloud.networksecurity.v1.AddressGroup address_groups = 1; + */ + public Builder setAddressGroups( + int index, com.google.cloud.networksecurity.v1.AddressGroup value) { + if (addressGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddressGroupsIsMutable(); + addressGroups_.set(index, value); + onChanged(); + } else { + addressGroupsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * List of AddressGroups resources.
    +     * 
    + * + * repeated .google.cloud.networksecurity.v1.AddressGroup address_groups = 1; + */ + public Builder setAddressGroups( + int index, com.google.cloud.networksecurity.v1.AddressGroup.Builder builderForValue) { + if (addressGroupsBuilder_ == null) { + ensureAddressGroupsIsMutable(); + addressGroups_.set(index, builderForValue.build()); + onChanged(); + } else { + addressGroupsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * List of AddressGroups resources.
    +     * 
    + * + * repeated .google.cloud.networksecurity.v1.AddressGroup address_groups = 1; + */ + public Builder addAddressGroups(com.google.cloud.networksecurity.v1.AddressGroup value) { + if (addressGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddressGroupsIsMutable(); + addressGroups_.add(value); + onChanged(); + } else { + addressGroupsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * List of AddressGroups resources.
    +     * 
    + * + * repeated .google.cloud.networksecurity.v1.AddressGroup address_groups = 1; + */ + public Builder addAddressGroups( + int index, com.google.cloud.networksecurity.v1.AddressGroup value) { + if (addressGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddressGroupsIsMutable(); + addressGroups_.add(index, value); + onChanged(); + } else { + addressGroupsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * List of AddressGroups resources.
    +     * 
    + * + * repeated .google.cloud.networksecurity.v1.AddressGroup address_groups = 1; + */ + public Builder addAddressGroups( + com.google.cloud.networksecurity.v1.AddressGroup.Builder builderForValue) { + if (addressGroupsBuilder_ == null) { + ensureAddressGroupsIsMutable(); + addressGroups_.add(builderForValue.build()); + onChanged(); + } else { + addressGroupsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * List of AddressGroups resources.
    +     * 
    + * + * repeated .google.cloud.networksecurity.v1.AddressGroup address_groups = 1; + */ + public Builder addAddressGroups( + int index, com.google.cloud.networksecurity.v1.AddressGroup.Builder builderForValue) { + if (addressGroupsBuilder_ == null) { + ensureAddressGroupsIsMutable(); + addressGroups_.add(index, builderForValue.build()); + onChanged(); + } else { + addressGroupsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * List of AddressGroups resources.
    +     * 
    + * + * repeated .google.cloud.networksecurity.v1.AddressGroup address_groups = 1; + */ + public Builder addAllAddressGroups( + java.lang.Iterable values) { + if (addressGroupsBuilder_ == null) { + ensureAddressGroupsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, addressGroups_); + onChanged(); + } else { + addressGroupsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * List of AddressGroups resources.
    +     * 
    + * + * repeated .google.cloud.networksecurity.v1.AddressGroup address_groups = 1; + */ + public Builder clearAddressGroups() { + if (addressGroupsBuilder_ == null) { + addressGroups_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + addressGroupsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * List of AddressGroups resources.
    +     * 
    + * + * repeated .google.cloud.networksecurity.v1.AddressGroup address_groups = 1; + */ + public Builder removeAddressGroups(int index) { + if (addressGroupsBuilder_ == null) { + ensureAddressGroupsIsMutable(); + addressGroups_.remove(index); + onChanged(); + } else { + addressGroupsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * List of AddressGroups resources.
    +     * 
    + * + * repeated .google.cloud.networksecurity.v1.AddressGroup address_groups = 1; + */ + public com.google.cloud.networksecurity.v1.AddressGroup.Builder getAddressGroupsBuilder( + int index) { + return getAddressGroupsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * List of AddressGroups resources.
    +     * 
    + * + * repeated .google.cloud.networksecurity.v1.AddressGroup address_groups = 1; + */ + public com.google.cloud.networksecurity.v1.AddressGroupOrBuilder getAddressGroupsOrBuilder( + int index) { + if (addressGroupsBuilder_ == null) { + return addressGroups_.get(index); + } else { + return addressGroupsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * List of AddressGroups resources.
    +     * 
    + * + * repeated .google.cloud.networksecurity.v1.AddressGroup address_groups = 1; + */ + public java.util.List + getAddressGroupsOrBuilderList() { + if (addressGroupsBuilder_ != null) { + return addressGroupsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(addressGroups_); + } + } + + /** + * + * + *
    +     * List of AddressGroups resources.
    +     * 
    + * + * repeated .google.cloud.networksecurity.v1.AddressGroup address_groups = 1; + */ + public com.google.cloud.networksecurity.v1.AddressGroup.Builder addAddressGroupsBuilder() { + return getAddressGroupsFieldBuilder() + .addBuilder(com.google.cloud.networksecurity.v1.AddressGroup.getDefaultInstance()); + } + + /** + * + * + *
    +     * List of AddressGroups resources.
    +     * 
    + * + * repeated .google.cloud.networksecurity.v1.AddressGroup address_groups = 1; + */ + public com.google.cloud.networksecurity.v1.AddressGroup.Builder addAddressGroupsBuilder( + int index) { + return getAddressGroupsFieldBuilder() + .addBuilder(index, com.google.cloud.networksecurity.v1.AddressGroup.getDefaultInstance()); + } + + /** + * + * + *
    +     * List of AddressGroups resources.
    +     * 
    + * + * repeated .google.cloud.networksecurity.v1.AddressGroup address_groups = 1; + */ + public java.util.List + getAddressGroupsBuilderList() { + return getAddressGroupsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networksecurity.v1.AddressGroup, + com.google.cloud.networksecurity.v1.AddressGroup.Builder, + com.google.cloud.networksecurity.v1.AddressGroupOrBuilder> + getAddressGroupsFieldBuilder() { + if (addressGroupsBuilder_ == null) { + addressGroupsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networksecurity.v1.AddressGroup, + com.google.cloud.networksecurity.v1.AddressGroup.Builder, + com.google.cloud.networksecurity.v1.AddressGroupOrBuilder>( + addressGroups_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + addressGroups_ = null; + } + return addressGroupsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +     * If there might be more results than those appearing in this response, then
    +     * `next_page_token` is included. To get the next set of results, call this
    +     * method again using the value of `next_page_token` as `page_token`.
    +     * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * If there might be more results than those appearing in this response, then
    +     * `next_page_token` is included. To get the next set of results, call this
    +     * method again using the value of `next_page_token` as `page_token`.
    +     * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * If there might be more results than those appearing in this response, then
    +     * `next_page_token` is included. To get the next set of results, call this
    +     * method again using the value of `next_page_token` as `page_token`.
    +     * 
    + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * If there might be more results than those appearing in this response, then
    +     * `next_page_token` is included. To get the next set of results, call this
    +     * method again using the value of `next_page_token` as `page_token`.
    +     * 
    + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * If there might be more results than those appearing in this response, then
    +     * `next_page_token` is included. To get the next set of results, call this
    +     * method again using the value of `next_page_token` as `page_token`.
    +     * 
    + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networksecurity.v1.ListAddressGroupsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.ListAddressGroupsResponse) + private static final com.google.cloud.networksecurity.v1.ListAddressGroupsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.ListAddressGroupsResponse(); + } + + public static com.google.cloud.networksecurity.v1.ListAddressGroupsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAddressGroupsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.networksecurity.v1.ListAddressGroupsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAddressGroupsResponseOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAddressGroupsResponseOrBuilder.java new file mode 100644 index 000000000000..835a74608120 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ListAddressGroupsResponseOrBuilder.java @@ -0,0 +1,166 @@ +/* + * 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/networksecurity/v1/address_group.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networksecurity.v1; + +public interface ListAddressGroupsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.ListAddressGroupsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * List of AddressGroups resources.
    +   * 
    + * + * repeated .google.cloud.networksecurity.v1.AddressGroup address_groups = 1; + */ + java.util.List getAddressGroupsList(); + + /** + * + * + *
    +   * List of AddressGroups resources.
    +   * 
    + * + * repeated .google.cloud.networksecurity.v1.AddressGroup address_groups = 1; + */ + com.google.cloud.networksecurity.v1.AddressGroup getAddressGroups(int index); + + /** + * + * + *
    +   * List of AddressGroups resources.
    +   * 
    + * + * repeated .google.cloud.networksecurity.v1.AddressGroup address_groups = 1; + */ + int getAddressGroupsCount(); + + /** + * + * + *
    +   * List of AddressGroups resources.
    +   * 
    + * + * repeated .google.cloud.networksecurity.v1.AddressGroup address_groups = 1; + */ + java.util.List + getAddressGroupsOrBuilderList(); + + /** + * + * + *
    +   * List of AddressGroups resources.
    +   * 
    + * + * repeated .google.cloud.networksecurity.v1.AddressGroup address_groups = 1; + */ + com.google.cloud.networksecurity.v1.AddressGroupOrBuilder getAddressGroupsOrBuilder(int index); + + /** + * + * + *
    +   * If there might be more results than those appearing in this response, then
    +   * `next_page_token` is included. To get the next set of results, call this
    +   * method again using the value of `next_page_token` as `page_token`.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
    +   * If there might be more results than those appearing in this response, then
    +   * `next_page_token` is included. To get the next set of results, call this
    +   * method again using the value of `next_page_token` as `page_token`.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/OrganizationLocationName.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/OrganizationLocationName.java new file mode 100644 index 000000000000..7c2d157ac502 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/OrganizationLocationName.java @@ -0,0 +1,192 @@ +/* + * 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.networksecurity.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class OrganizationLocationName implements ResourceName { + private static final PathTemplate ORGANIZATION_LOCATION = + PathTemplate.createWithoutUrlEncoding("organizations/{organization}/locations/{location}"); + private volatile Map fieldValuesMap; + private final String organization; + private final String location; + + @Deprecated + protected OrganizationLocationName() { + organization = null; + location = null; + } + + private OrganizationLocationName(Builder builder) { + organization = Preconditions.checkNotNull(builder.getOrganization()); + location = Preconditions.checkNotNull(builder.getLocation()); + } + + public String getOrganization() { + return organization; + } + + public String getLocation() { + return location; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static OrganizationLocationName of(String organization, String location) { + return newBuilder().setOrganization(organization).setLocation(location).build(); + } + + public static String format(String organization, String location) { + return newBuilder().setOrganization(organization).setLocation(location).build().toString(); + } + + public static OrganizationLocationName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + ORGANIZATION_LOCATION.validatedMatch( + formattedString, "OrganizationLocationName.parse: formattedString not in valid format"); + return of(matchMap.get("organization"), matchMap.get("location")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (OrganizationLocationName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return ORGANIZATION_LOCATION.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (organization != null) { + fieldMapBuilder.put("organization", organization); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return ORGANIZATION_LOCATION.instantiate("organization", organization, "location", location); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + OrganizationLocationName that = ((OrganizationLocationName) o); + return Objects.equals(this.organization, that.organization) + && Objects.equals(this.location, that.location); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(organization); + h *= 1000003; + h ^= Objects.hashCode(location); + return h; + } + + /** Builder for organizations/{organization}/locations/{location}. */ + public static class Builder { + private String organization; + private String location; + + protected Builder() {} + + public String getOrganization() { + return organization; + } + + public String getLocation() { + return location; + } + + public Builder setOrganization(String organization) { + this.organization = organization; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + private Builder(OrganizationLocationName organizationLocationName) { + this.organization = organizationLocationName.organization; + this.location = organizationLocationName.location; + } + + public OrganizationLocationName build() { + return new OrganizationLocationName(this); + } + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/RemoveAddressGroupItemsRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/RemoveAddressGroupItemsRequest.java new file mode 100644 index 000000000000..9d1416185eb4 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/RemoveAddressGroupItemsRequest.java @@ -0,0 +1,1231 @@ +/* + * 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/networksecurity/v1/address_group.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
    + * Request used by the RemoveAddressGroupItems method.
    + * 
    + * + * Protobuf type {@code google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest} + */ +public final class RemoveAddressGroupItemsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest) + RemoveAddressGroupItemsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use RemoveAddressGroupItemsRequest.newBuilder() to construct. + private RemoveAddressGroupItemsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RemoveAddressGroupItemsRequest() { + addressGroup_ = ""; + items_ = com.google.protobuf.LazyStringArrayList.emptyList(); + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RemoveAddressGroupItemsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_RemoveAddressGroupItemsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_RemoveAddressGroupItemsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest.class, + com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest.Builder.class); + } + + public static final int ADDRESS_GROUP_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object addressGroup_ = ""; + + /** + * + * + *
    +   * Required. A name of the AddressGroup to remove items from. Must be in the
    +   * format `projects|organization/*/locations/{location}/addressGroups/*`.
    +   * 
    + * + * + * string address_group = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The addressGroup. + */ + @java.lang.Override + public java.lang.String getAddressGroup() { + java.lang.Object ref = addressGroup_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + addressGroup_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. A name of the AddressGroup to remove items from. Must be in the
    +   * format `projects|organization/*/locations/{location}/addressGroups/*`.
    +   * 
    + * + * + * string address_group = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for addressGroup. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAddressGroupBytes() { + java.lang.Object ref = addressGroup_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + addressGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ITEMS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList items_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
    +   * Required. List of items to remove.
    +   * 
    + * + * repeated string items = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the items. + */ + public com.google.protobuf.ProtocolStringList getItemsList() { + return items_; + } + + /** + * + * + *
    +   * Required. List of items to remove.
    +   * 
    + * + * repeated string items = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of items. + */ + public int getItemsCount() { + return items_.size(); + } + + /** + * + * + *
    +   * Required. List of items to remove.
    +   * 
    + * + * repeated string items = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The items at the given index. + */ + public java.lang.String getItems(int index) { + return items_.get(index); + } + + /** + * + * + *
    +   * Required. List of items to remove.
    +   * 
    + * + * repeated string items = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the items at the given index. + */ + public com.google.protobuf.ByteString getItemsBytes(int index) { + return items_.getByteString(index); + } + + 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 will know to
    +   * ignore the request if it has already been completed. The server will
    +   * guarantee that for at least 60 minutes since the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and
    +   * the request times out. If you make the request again with the same request
    +   * ID, the server can check if original operation with the same request ID
    +   * was received, and if so, will ignore the second request. This prevents
    +   * clients from accidentally creating duplicate commitments.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID is
    +   * not supported (00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. An optional request ID to identify requests. Specify a unique
    +   * request ID so that if you must retry your request, the server will know to
    +   * ignore the request if it has already been completed. The server will
    +   * guarantee that for at least 60 minutes since the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and
    +   * the request times out. If you make the request again with the same request
    +   * ID, the server can check if original operation with the same request ID
    +   * was received, and if so, will ignore the second request. This prevents
    +   * clients from accidentally creating duplicate commitments.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID is
    +   * not supported (00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(addressGroup_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, addressGroup_); + } + for (int i = 0; i < items_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, items_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(addressGroup_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, addressGroup_); + } + { + int dataSize = 0; + for (int i = 0; i < items_.size(); i++) { + dataSize += computeStringSizeNoTag(items_.getRaw(i)); + } + size += dataSize; + size += 1 * getItemsList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest other = + (com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest) obj; + + if (!getAddressGroup().equals(other.getAddressGroup())) return false; + if (!getItemsList().equals(other.getItemsList())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ADDRESS_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getAddressGroup().hashCode(); + if (getItemsCount() > 0) { + hash = (37 * hash) + ITEMS_FIELD_NUMBER; + hash = (53 * hash) + getItemsList().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest 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.networksecurity.v1.RemoveAddressGroupItemsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest parseFrom( + 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.networksecurity.v1.RemoveAddressGroupItemsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest 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.networksecurity.v1.RemoveAddressGroupItemsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest + 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.networksecurity.v1.RemoveAddressGroupItemsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest 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.networksecurity.v1.RemoveAddressGroupItemsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request used by the RemoveAddressGroupItems method.
    +   * 
    + * + * Protobuf type {@code google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest) + com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_RemoveAddressGroupItemsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_RemoveAddressGroupItemsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest.class, + com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest.Builder.class); + } + + // Construct using + // com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + addressGroup_ = ""; + items_ = com.google.protobuf.LazyStringArrayList.emptyList(); + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_RemoveAddressGroupItemsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest build() { + com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest buildPartial() { + com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest result = + new com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.addressGroup_ = addressGroup_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + items_.makeImmutable(); + result.items_ = items_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + } + + @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.networksecurity.v1.RemoveAddressGroupItemsRequest) { + return mergeFrom( + (com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest other) { + if (other + == com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest + .getDefaultInstance()) return this; + if (!other.getAddressGroup().isEmpty()) { + addressGroup_ = other.addressGroup_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.items_.isEmpty()) { + if (items_.isEmpty()) { + items_ = other.items_; + bitField0_ |= 0x00000002; + } else { + ensureItemsIsMutable(); + items_.addAll(other.items_); + } + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + addressGroup_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureItemsIsMutable(); + items_.add(s); + break; + } // case 18 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object addressGroup_ = ""; + + /** + * + * + *
    +     * Required. A name of the AddressGroup to remove items from. Must be in the
    +     * format `projects|organization/*/locations/{location}/addressGroups/*`.
    +     * 
    + * + * + * string address_group = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The addressGroup. + */ + public java.lang.String getAddressGroup() { + java.lang.Object ref = addressGroup_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + addressGroup_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. A name of the AddressGroup to remove items from. Must be in the
    +     * format `projects|organization/*/locations/{location}/addressGroups/*`.
    +     * 
    + * + * + * string address_group = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for addressGroup. + */ + public com.google.protobuf.ByteString getAddressGroupBytes() { + java.lang.Object ref = addressGroup_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + addressGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. A name of the AddressGroup to remove items from. Must be in the
    +     * format `projects|organization/*/locations/{location}/addressGroups/*`.
    +     * 
    + * + * + * string address_group = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The addressGroup to set. + * @return This builder for chaining. + */ + public Builder setAddressGroup(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + addressGroup_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. A name of the AddressGroup to remove items from. Must be in the
    +     * format `projects|organization/*/locations/{location}/addressGroups/*`.
    +     * 
    + * + * + * string address_group = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAddressGroup() { + addressGroup_ = getDefaultInstance().getAddressGroup(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. A name of the AddressGroup to remove items from. Must be in the
    +     * format `projects|organization/*/locations/{location}/addressGroups/*`.
    +     * 
    + * + * + * string address_group = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for addressGroup to set. + * @return This builder for chaining. + */ + public Builder setAddressGroupBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + addressGroup_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList items_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureItemsIsMutable() { + if (!items_.isModifiable()) { + items_ = new com.google.protobuf.LazyStringArrayList(items_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
    +     * Required. List of items to remove.
    +     * 
    + * + * repeated string items = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the items. + */ + public com.google.protobuf.ProtocolStringList getItemsList() { + items_.makeImmutable(); + return items_; + } + + /** + * + * + *
    +     * Required. List of items to remove.
    +     * 
    + * + * repeated string items = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of items. + */ + public int getItemsCount() { + return items_.size(); + } + + /** + * + * + *
    +     * Required. List of items to remove.
    +     * 
    + * + * repeated string items = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The items at the given index. + */ + public java.lang.String getItems(int index) { + return items_.get(index); + } + + /** + * + * + *
    +     * Required. List of items to remove.
    +     * 
    + * + * repeated string items = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the items at the given index. + */ + public com.google.protobuf.ByteString getItemsBytes(int index) { + return items_.getByteString(index); + } + + /** + * + * + *
    +     * Required. List of items to remove.
    +     * 
    + * + * repeated string items = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index to set the value at. + * @param value The items to set. + * @return This builder for chaining. + */ + public Builder setItems(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. List of items to remove.
    +     * 
    + * + * repeated string items = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The items to add. + * @return This builder for chaining. + */ + public Builder addItems(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. List of items to remove.
    +     * 
    + * + * repeated string items = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param values The items to add. + * @return This builder for chaining. + */ + public Builder addAllItems(java.lang.Iterable values) { + ensureItemsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, items_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. List of items to remove.
    +     * 
    + * + * repeated string items = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearItems() { + items_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. List of items to remove.
    +     * 
    + * + * repeated string items = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes of the items to add. + * @return This builder for chaining. + */ + public Builder addItemsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureItemsIsMutable(); + items_.add(value); + bitField0_ |= 0x00000002; + 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 will know to
    +     * ignore the request if it has already been completed. The server will
    +     * guarantee that for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, will ignore the second request. This prevents
    +     * clients from accidentally creating duplicate commitments.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID is
    +     * not supported (00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. An optional request ID to identify requests. Specify a unique
    +     * request ID so that if you must retry your request, the server will know to
    +     * ignore the request if it has already been completed. The server will
    +     * guarantee that for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, will ignore the second request. This prevents
    +     * clients from accidentally creating duplicate commitments.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID is
    +     * not supported (00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. An optional request ID to identify requests. Specify a unique
    +     * request ID so that if you must retry your request, the server will know to
    +     * ignore the request if it has already been completed. The server will
    +     * guarantee that for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, will ignore the second request. This prevents
    +     * clients from accidentally creating duplicate commitments.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID is
    +     * not supported (00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + 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 will know to
    +     * ignore the request if it has already been completed. The server will
    +     * guarantee that for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, will ignore the second request. This prevents
    +     * clients from accidentally creating duplicate commitments.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID is
    +     * not supported (00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 will know to
    +     * ignore the request if it has already been completed. The server will
    +     * guarantee that for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, will ignore the second request. This prevents
    +     * clients from accidentally creating duplicate commitments.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID is
    +     * not supported (00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + 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.networksecurity.v1.RemoveAddressGroupItemsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest) + private static final com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest(); + } + + public static com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RemoveAddressGroupItemsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.networksecurity.v1.RemoveAddressGroupItemsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/RemoveAddressGroupItemsRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/RemoveAddressGroupItemsRequestOrBuilder.java new file mode 100644 index 000000000000..d08d4045abe6 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/RemoveAddressGroupItemsRequestOrBuilder.java @@ -0,0 +1,162 @@ +/* + * 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/networksecurity/v1/address_group.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networksecurity.v1; + +public interface RemoveAddressGroupItemsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. A name of the AddressGroup to remove items from. Must be in the
    +   * format `projects|organization/*/locations/{location}/addressGroups/*`.
    +   * 
    + * + * + * string address_group = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The addressGroup. + */ + java.lang.String getAddressGroup(); + + /** + * + * + *
    +   * Required. A name of the AddressGroup to remove items from. Must be in the
    +   * format `projects|organization/*/locations/{location}/addressGroups/*`.
    +   * 
    + * + * + * string address_group = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for addressGroup. + */ + com.google.protobuf.ByteString getAddressGroupBytes(); + + /** + * + * + *
    +   * Required. List of items to remove.
    +   * 
    + * + * repeated string items = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the items. + */ + java.util.List getItemsList(); + + /** + * + * + *
    +   * Required. List of items to remove.
    +   * 
    + * + * repeated string items = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of items. + */ + int getItemsCount(); + + /** + * + * + *
    +   * Required. List of items to remove.
    +   * 
    + * + * repeated string items = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The items at the given index. + */ + java.lang.String getItems(int index); + + /** + * + * + *
    +   * Required. List of items to remove.
    +   * 
    + * + * repeated string items = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the items at the given index. + */ + com.google.protobuf.ByteString getItemsBytes(int index); + + /** + * + * + *
    +   * Optional. An optional request ID to identify requests. Specify a unique
    +   * request ID so that if you must retry your request, the server will know to
    +   * ignore the request if it has already been completed. The server will
    +   * guarantee that for at least 60 minutes since the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and
    +   * the request times out. If you make the request again with the same request
    +   * ID, the server can check if original operation with the same request ID
    +   * was received, and if so, will ignore the second request. This prevents
    +   * clients from accidentally creating duplicate commitments.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID is
    +   * not supported (00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 will know to
    +   * ignore the request if it has already been completed. The server will
    +   * guarantee that for at least 60 minutes since the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and
    +   * the request times out. If you make the request again with the same request
    +   * ID, the server can check if original operation with the same request ID
    +   * was received, and if so, will ignore the second request. This prevents
    +   * clients from accidentally creating duplicate commitments.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID is
    +   * not supported (00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateAddressGroupRequest.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateAddressGroupRequest.java new file mode 100644 index 000000000000..f76642ce8011 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateAddressGroupRequest.java @@ -0,0 +1,1377 @@ +/* + * 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/networksecurity/v1/address_group.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networksecurity.v1; + +/** + * + * + *
    + * Request used by the UpdateAddressGroup method.
    + * 
    + * + * Protobuf type {@code google.cloud.networksecurity.v1.UpdateAddressGroupRequest} + */ +public final class UpdateAddressGroupRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networksecurity.v1.UpdateAddressGroupRequest) + UpdateAddressGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UpdateAddressGroupRequest.newBuilder() to construct. + private UpdateAddressGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateAddressGroupRequest() { + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateAddressGroupRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_UpdateAddressGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_UpdateAddressGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest.class, + com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest.Builder.class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
    +   * Optional. Field mask is used to specify the fields to be overwritten in the
    +   * AddressGroup resource by the update.
    +   * The fields specified in the update_mask are relative to the resource, not
    +   * the full request. A field will be overwritten if it is in the mask. If the
    +   * user does not provide a mask then all fields will be overwritten.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Optional. Field mask is used to specify the fields to be overwritten in the
    +   * AddressGroup resource by the update.
    +   * The fields specified in the update_mask are relative to the resource, not
    +   * the full request. A field will be overwritten if it is in the mask. If the
    +   * user does not provide a mask then all fields will be overwritten.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
    +   * Optional. Field mask is used to specify the fields to be overwritten in the
    +   * AddressGroup resource by the update.
    +   * The fields specified in the update_mask are relative to the resource, not
    +   * the full request. A field will be overwritten if it is in the mask. If the
    +   * user does not provide a mask then all fields will be overwritten.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int ADDRESS_GROUP_FIELD_NUMBER = 2; + private com.google.cloud.networksecurity.v1.AddressGroup addressGroup_; + + /** + * + * + *
    +   * Required. Updated AddressGroup resource.
    +   * 
    + * + * + * .google.cloud.networksecurity.v1.AddressGroup address_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the addressGroup field is set. + */ + @java.lang.Override + public boolean hasAddressGroup() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +   * Required. Updated AddressGroup resource.
    +   * 
    + * + * + * .google.cloud.networksecurity.v1.AddressGroup address_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The addressGroup. + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AddressGroup getAddressGroup() { + return addressGroup_ == null + ? com.google.cloud.networksecurity.v1.AddressGroup.getDefaultInstance() + : addressGroup_; + } + + /** + * + * + *
    +   * Required. Updated AddressGroup resource.
    +   * 
    + * + * + * .google.cloud.networksecurity.v1.AddressGroup address_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networksecurity.v1.AddressGroupOrBuilder getAddressGroupOrBuilder() { + return addressGroup_ == null + ? com.google.cloud.networksecurity.v1.AddressGroup.getDefaultInstance() + : addressGroup_; + } + + 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 will know to
    +   * ignore the request if it has already been completed. The server will
    +   * guarantee that for at least 60 minutes since the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and
    +   * the request times out. If you make the request again with the same request
    +   * ID, the server can check if original operation with the same request ID
    +   * was received, and if so, will ignore the second request. This prevents
    +   * clients from accidentally creating duplicate commitments.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID is
    +   * not supported (00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. An optional request ID to identify requests. Specify a unique
    +   * request ID so that if you must retry your request, the server will know to
    +   * ignore the request if it has already been completed. The server will
    +   * guarantee that for at least 60 minutes since the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and
    +   * the request times out. If you make the request again with the same request
    +   * ID, the server can check if original operation with the same request ID
    +   * was received, and if so, will ignore the second request. This prevents
    +   * clients from accidentally creating duplicate commitments.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID is
    +   * not supported (00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getAddressGroup()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAddressGroup()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest)) { + return super.equals(obj); + } + com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest other = + (com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasAddressGroup() != other.hasAddressGroup()) return false; + if (hasAddressGroup()) { + if (!getAddressGroup().equals(other.getAddressGroup())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasAddressGroup()) { + hash = (37 * hash) + ADDRESS_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getAddressGroup().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest 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.networksecurity.v1.UpdateAddressGroupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest parseFrom( + 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.networksecurity.v1.UpdateAddressGroupRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest 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.networksecurity.v1.UpdateAddressGroupRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest 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.networksecurity.v1.UpdateAddressGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest 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.networksecurity.v1.UpdateAddressGroupRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request used by the UpdateAddressGroup method.
    +   * 
    + * + * Protobuf type {@code google.cloud.networksecurity.v1.UpdateAddressGroupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networksecurity.v1.UpdateAddressGroupRequest) + com.google.cloud.networksecurity.v1.UpdateAddressGroupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_UpdateAddressGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_UpdateAddressGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest.class, + com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest.Builder.class); + } + + // Construct using com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getUpdateMaskFieldBuilder(); + getAddressGroupFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + addressGroup_ = null; + if (addressGroupBuilder_ != null) { + addressGroupBuilder_.dispose(); + addressGroupBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networksecurity.v1.AddressGroupProto + .internal_static_google_cloud_networksecurity_v1_UpdateAddressGroupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest + getDefaultInstanceForType() { + return com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest build() { + com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest buildPartial() { + com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest result = + new com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.addressGroup_ = + addressGroupBuilder_ == null ? addressGroup_ : addressGroupBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest) { + return mergeFrom((com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest other) { + if (other + == com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest.getDefaultInstance()) + return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasAddressGroup()) { + mergeAddressGroup(other.getAddressGroup()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getAddressGroupFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = 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 com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
    +     * Optional. Field mask is used to specify the fields to be overwritten in the
    +     * AddressGroup resource by the update.
    +     * The fields specified in the update_mask are relative to the resource, not
    +     * the full request. A field will be overwritten if it is in the mask. If the
    +     * user does not provide a mask then all fields will be overwritten.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +     * Optional. Field mask is used to specify the fields to be overwritten in the
    +     * AddressGroup resource by the update.
    +     * The fields specified in the update_mask are relative to the resource, not
    +     * the full request. A field will be overwritten if it is in the mask. If the
    +     * user does not provide a mask then all fields will be overwritten.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Optional. Field mask is used to specify the fields to be overwritten in the
    +     * AddressGroup resource by the update.
    +     * The fields specified in the update_mask are relative to the resource, not
    +     * the full request. A field will be overwritten if it is in the mask. If the
    +     * user does not provide a mask then all fields will be overwritten.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Field mask is used to specify the fields to be overwritten in the
    +     * AddressGroup resource by the update.
    +     * The fields specified in the update_mask are relative to the resource, not
    +     * the full request. A field will be overwritten if it is in the mask. If the
    +     * user does not provide a mask then all fields will be overwritten.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Field mask is used to specify the fields to be overwritten in the
    +     * AddressGroup resource by the update.
    +     * The fields specified in the update_mask are relative to the resource, not
    +     * the full request. A field will be overwritten if it is in the mask. If the
    +     * user does not provide a mask then all fields will be overwritten.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Optional. Field mask is used to specify the fields to be overwritten in the
    +     * AddressGroup resource by the update.
    +     * The fields specified in the update_mask are relative to the resource, not
    +     * the full request. A field will be overwritten if it is in the mask. If the
    +     * user does not provide a mask then all fields will be overwritten.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Field mask is used to specify the fields to be overwritten in the
    +     * AddressGroup resource by the update.
    +     * The fields specified in the update_mask are relative to the resource, not
    +     * the full request. A field will be overwritten if it is in the mask. If the
    +     * user does not provide a mask then all fields will be overwritten.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. Field mask is used to specify the fields to be overwritten in the
    +     * AddressGroup resource by the update.
    +     * The fields specified in the update_mask are relative to the resource, not
    +     * the full request. A field will be overwritten if it is in the mask. If the
    +     * user does not provide a mask then all fields will be overwritten.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
    +     * Optional. Field mask is used to specify the fields to be overwritten in the
    +     * AddressGroup resource by the update.
    +     * The fields specified in the update_mask are relative to the resource, not
    +     * the full request. A field will be overwritten if it is in the mask. If the
    +     * user does not provide a mask then all fields will be overwritten.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.networksecurity.v1.AddressGroup addressGroup_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networksecurity.v1.AddressGroup, + com.google.cloud.networksecurity.v1.AddressGroup.Builder, + com.google.cloud.networksecurity.v1.AddressGroupOrBuilder> + addressGroupBuilder_; + + /** + * + * + *
    +     * Required. Updated AddressGroup resource.
    +     * 
    + * + * + * .google.cloud.networksecurity.v1.AddressGroup address_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the addressGroup field is set. + */ + public boolean hasAddressGroup() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Required. Updated AddressGroup resource.
    +     * 
    + * + * + * .google.cloud.networksecurity.v1.AddressGroup address_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The addressGroup. + */ + public com.google.cloud.networksecurity.v1.AddressGroup getAddressGroup() { + if (addressGroupBuilder_ == null) { + return addressGroup_ == null + ? com.google.cloud.networksecurity.v1.AddressGroup.getDefaultInstance() + : addressGroup_; + } else { + return addressGroupBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Required. Updated AddressGroup resource.
    +     * 
    + * + * + * .google.cloud.networksecurity.v1.AddressGroup address_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAddressGroup(com.google.cloud.networksecurity.v1.AddressGroup value) { + if (addressGroupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + addressGroup_ = value; + } else { + addressGroupBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Updated AddressGroup resource.
    +     * 
    + * + * + * .google.cloud.networksecurity.v1.AddressGroup address_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAddressGroup( + com.google.cloud.networksecurity.v1.AddressGroup.Builder builderForValue) { + if (addressGroupBuilder_ == null) { + addressGroup_ = builderForValue.build(); + } else { + addressGroupBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Updated AddressGroup resource.
    +     * 
    + * + * + * .google.cloud.networksecurity.v1.AddressGroup address_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAddressGroup(com.google.cloud.networksecurity.v1.AddressGroup value) { + if (addressGroupBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && addressGroup_ != null + && addressGroup_ + != com.google.cloud.networksecurity.v1.AddressGroup.getDefaultInstance()) { + getAddressGroupBuilder().mergeFrom(value); + } else { + addressGroup_ = value; + } + } else { + addressGroupBuilder_.mergeFrom(value); + } + if (addressGroup_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Required. Updated AddressGroup resource.
    +     * 
    + * + * + * .google.cloud.networksecurity.v1.AddressGroup address_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAddressGroup() { + bitField0_ = (bitField0_ & ~0x00000002); + addressGroup_ = null; + if (addressGroupBuilder_ != null) { + addressGroupBuilder_.dispose(); + addressGroupBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Updated AddressGroup resource.
    +     * 
    + * + * + * .google.cloud.networksecurity.v1.AddressGroup address_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.AddressGroup.Builder getAddressGroupBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getAddressGroupFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Required. Updated AddressGroup resource.
    +     * 
    + * + * + * .google.cloud.networksecurity.v1.AddressGroup address_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networksecurity.v1.AddressGroupOrBuilder getAddressGroupOrBuilder() { + if (addressGroupBuilder_ != null) { + return addressGroupBuilder_.getMessageOrBuilder(); + } else { + return addressGroup_ == null + ? com.google.cloud.networksecurity.v1.AddressGroup.getDefaultInstance() + : addressGroup_; + } + } + + /** + * + * + *
    +     * Required. Updated AddressGroup resource.
    +     * 
    + * + * + * .google.cloud.networksecurity.v1.AddressGroup address_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networksecurity.v1.AddressGroup, + com.google.cloud.networksecurity.v1.AddressGroup.Builder, + com.google.cloud.networksecurity.v1.AddressGroupOrBuilder> + getAddressGroupFieldBuilder() { + if (addressGroupBuilder_ == null) { + addressGroupBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networksecurity.v1.AddressGroup, + com.google.cloud.networksecurity.v1.AddressGroup.Builder, + com.google.cloud.networksecurity.v1.AddressGroupOrBuilder>( + getAddressGroup(), getParentForChildren(), isClean()); + addressGroup_ = null; + } + return addressGroupBuilder_; + } + + 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 will know to
    +     * ignore the request if it has already been completed. The server will
    +     * guarantee that for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, will ignore the second request. This prevents
    +     * clients from accidentally creating duplicate commitments.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID is
    +     * not supported (00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. An optional request ID to identify requests. Specify a unique
    +     * request ID so that if you must retry your request, the server will know to
    +     * ignore the request if it has already been completed. The server will
    +     * guarantee that for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, will ignore the second request. This prevents
    +     * clients from accidentally creating duplicate commitments.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID is
    +     * not supported (00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. An optional request ID to identify requests. Specify a unique
    +     * request ID so that if you must retry your request, the server will know to
    +     * ignore the request if it has already been completed. The server will
    +     * guarantee that for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, will ignore the second request. This prevents
    +     * clients from accidentally creating duplicate commitments.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID is
    +     * not supported (00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + 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 will know to
    +     * ignore the request if it has already been completed. The server will
    +     * guarantee that for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, will ignore the second request. This prevents
    +     * clients from accidentally creating duplicate commitments.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID is
    +     * not supported (00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 will know to
    +     * ignore the request if it has already been completed. The server will
    +     * guarantee that for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, will ignore the second request. This prevents
    +     * clients from accidentally creating duplicate commitments.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID is
    +     * not supported (00000000-0000-0000-0000-000000000000).
    +     * 
    + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + 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.networksecurity.v1.UpdateAddressGroupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networksecurity.v1.UpdateAddressGroupRequest) + private static final com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest(); + } + + public static com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateAddressGroupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.networksecurity.v1.UpdateAddressGroupRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateAddressGroupRequestOrBuilder.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateAddressGroupRequestOrBuilder.java new file mode 100644 index 000000000000..f5537adb230c --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UpdateAddressGroupRequestOrBuilder.java @@ -0,0 +1,171 @@ +/* + * 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/networksecurity/v1/address_group.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networksecurity.v1; + +public interface UpdateAddressGroupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networksecurity.v1.UpdateAddressGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Optional. Field mask is used to specify the fields to be overwritten in the
    +   * AddressGroup resource by the update.
    +   * The fields specified in the update_mask are relative to the resource, not
    +   * the full request. A field will be overwritten if it is in the mask. If the
    +   * user does not provide a mask then all fields will be overwritten.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
    +   * Optional. Field mask is used to specify the fields to be overwritten in the
    +   * AddressGroup resource by the update.
    +   * The fields specified in the update_mask are relative to the resource, not
    +   * the full request. A field will be overwritten if it is in the mask. If the
    +   * user does not provide a mask then all fields will be overwritten.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
    +   * Optional. Field mask is used to specify the fields to be overwritten in the
    +   * AddressGroup resource by the update.
    +   * The fields specified in the update_mask are relative to the resource, not
    +   * the full request. A field will be overwritten if it is in the mask. If the
    +   * user does not provide a mask then all fields will be overwritten.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
    +   * Required. Updated AddressGroup resource.
    +   * 
    + * + * + * .google.cloud.networksecurity.v1.AddressGroup address_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the addressGroup field is set. + */ + boolean hasAddressGroup(); + + /** + * + * + *
    +   * Required. Updated AddressGroup resource.
    +   * 
    + * + * + * .google.cloud.networksecurity.v1.AddressGroup address_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The addressGroup. + */ + com.google.cloud.networksecurity.v1.AddressGroup getAddressGroup(); + + /** + * + * + *
    +   * Required. Updated AddressGroup resource.
    +   * 
    + * + * + * .google.cloud.networksecurity.v1.AddressGroup address_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networksecurity.v1.AddressGroupOrBuilder getAddressGroupOrBuilder(); + + /** + * + * + *
    +   * Optional. An optional request ID to identify requests. Specify a unique
    +   * request ID so that if you must retry your request, the server will know to
    +   * ignore the request if it has already been completed. The server will
    +   * guarantee that for at least 60 minutes since the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and
    +   * the request times out. If you make the request again with the same request
    +   * ID, the server can check if original operation with the same request ID
    +   * was received, and if so, will ignore the second request. This prevents
    +   * clients from accidentally creating duplicate commitments.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID is
    +   * not supported (00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 will know to
    +   * ignore the request if it has already been completed. The server will
    +   * guarantee that for at least 60 minutes since the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and
    +   * the request times out. If you make the request again with the same request
    +   * ID, the server can check if original operation with the same request ID
    +   * was received, and if so, will ignore the second request. This prevents
    +   * clients from accidentally creating duplicate commitments.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID is
    +   * not supported (00000000-0000-0000-0000-000000000000).
    +   * 
    + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/address_group.proto b/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/address_group.proto new file mode 100644 index 000000000000..7a6d35508a77 --- /dev/null +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/proto/google/cloud/networksecurity/v1/address_group.proto @@ -0,0 +1,629 @@ +// 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.networksecurity.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.NetworkSecurity.V1"; +option go_package = "cloud.google.com/go/networksecurity/apiv1/networksecuritypb;networksecuritypb"; +option java_multiple_files = true; +option java_outer_classname = "AddressGroupProto"; +option java_package = "com.google.cloud.networksecurity.v1"; +option php_namespace = "Google\\Cloud\\NetworkSecurity\\V1"; +option ruby_package = "Google::Cloud::NetworkSecurity::V1"; +option (google.api.resource_definition) = { + type: "networksecurity.googleapis.com/OrganizationLocation" + pattern: "organizations/{organization}/locations/{location}" +}; + +// AddressGroup is a resource that manages a collection of IP or Domain Names, +// it can be used in Firewall Policy to represent allow or deny traffic from +// all the IP or Domain Names from the Address Group. +service AddressGroupService { + option (google.api.default_host) = "networksecurity.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Lists address groups in a given project and location. + rpc ListAddressGroups(ListAddressGroupsRequest) + returns (ListAddressGroupsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/addressGroups" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single address group. + rpc GetAddressGroup(GetAddressGroupRequest) returns (AddressGroup) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/addressGroups/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new address group in a given project and location. + rpc CreateAddressGroup(CreateAddressGroupRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/addressGroups" + body: "address_group" + }; + option (google.api.method_signature) = + "parent,address_group,address_group_id"; + option (google.longrunning.operation_info) = { + response_type: "AddressGroup" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Updates the parameters of a single address group. + rpc UpdateAddressGroup(UpdateAddressGroupRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{address_group.name=projects/*/locations/*/addressGroups/*}" + body: "address_group" + }; + option (google.api.method_signature) = "address_group,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "AddressGroup" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Adds items to an address group. + rpc AddAddressGroupItems(AddAddressGroupItemsRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{address_group=projects/*/locations/*/addressGroups/*}:addItems" + body: "*" + }; + option (google.api.method_signature) = "address_group,items"; + option (google.longrunning.operation_info) = { + response_type: "AddressGroup" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Removes items from an address group. + rpc RemoveAddressGroupItems(RemoveAddressGroupItemsRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{address_group=projects/*/locations/*/addressGroups/*}:removeItems" + body: "*" + }; + option (google.api.method_signature) = "address_group,items"; + option (google.longrunning.operation_info) = { + response_type: "AddressGroup" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Clones items from one address group to another. + rpc CloneAddressGroupItems(CloneAddressGroupItemsRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{address_group=projects/*/locations/*/addressGroups/*}:cloneItems" + body: "*" + }; + option (google.api.method_signature) = "address_group,source_address_group"; + option (google.longrunning.operation_info) = { + response_type: "AddressGroup" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Deletes a single address group. + rpc DeleteAddressGroup(DeleteAddressGroupRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/addressGroups/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Lists references of an address group. + rpc ListAddressGroupReferences(ListAddressGroupReferencesRequest) + returns (ListAddressGroupReferencesResponse) { + option (google.api.http) = { + get: "/v1/{address_group=projects/*/locations/*/addressGroups/*}:listReferences" + }; + option (google.api.method_signature) = "address_group"; + } +} + +// Organization AddressGroup is created under organization. Requests against +// Organization AddressGroup will use project from request credential for +// activation/quota/visibility check. +service OrganizationAddressGroupService { + option (google.api.default_host) = "networksecurity.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Lists address groups in a given project and location. + rpc ListAddressGroups(ListAddressGroupsRequest) + returns (ListAddressGroupsResponse) { + option (google.api.http) = { + get: "/v1/{parent=organizations/*/locations/*}/addressGroups" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single address group. + rpc GetAddressGroup(GetAddressGroupRequest) returns (AddressGroup) { + option (google.api.http) = { + get: "/v1/{name=organizations/*/locations/*/addressGroups/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new address group in a given project and location. + rpc CreateAddressGroup(CreateAddressGroupRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=organizations/*/locations/*}/addressGroups" + body: "address_group" + }; + option (google.api.method_signature) = + "parent,address_group,address_group_id"; + option (google.longrunning.operation_info) = { + response_type: "AddressGroup" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Updates parameters of an address group. + rpc UpdateAddressGroup(UpdateAddressGroupRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{address_group.name=organizations/*/locations/*/addressGroups/*}" + body: "address_group" + }; + option (google.api.method_signature) = "address_group,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "AddressGroup" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Adds items to an address group. + rpc AddAddressGroupItems(AddAddressGroupItemsRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{address_group=organizations/*/locations/*/addressGroups/*}:addItems" + body: "*" + }; + option (google.api.method_signature) = "address_group,items"; + option (google.longrunning.operation_info) = { + response_type: "AddressGroup" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Removes items from an address group. + rpc RemoveAddressGroupItems(RemoveAddressGroupItemsRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{address_group=organizations/*/locations/*/addressGroups/*}:removeItems" + body: "*" + }; + option (google.api.method_signature) = "address_group,items"; + option (google.longrunning.operation_info) = { + response_type: "AddressGroup" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Clones items from one address group to another. + rpc CloneAddressGroupItems(CloneAddressGroupItemsRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{address_group=organizations/*/locations/*/addressGroups/*}:cloneItems" + body: "*" + }; + option (google.api.method_signature) = "address_group,source_address_group"; + option (google.longrunning.operation_info) = { + response_type: "AddressGroup" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Deletes an address group. + rpc DeleteAddressGroup(DeleteAddressGroupRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=organizations/*/locations/*/addressGroups/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "google.cloud.networksecurity.v1.OperationMetadata" + }; + } + + // Lists references of an address group. + rpc ListAddressGroupReferences(ListAddressGroupReferencesRequest) + returns (ListAddressGroupReferencesResponse) { + option (google.api.http) = { + get: "/v1/{address_group=organizations/*/locations/*/addressGroups/*}:listReferences" + }; + option (google.api.method_signature) = "address_group"; + } +} + +// AddressGroup is a resource that specifies how a collection of IP/DNS used +// in Firewall Policy. +message AddressGroup { + option (google.api.resource) = { + type: "networksecurity.googleapis.com/AddressGroup" + pattern: "projects/{project}/locations/{location}/addressGroups/{address_group}" + pattern: "organizations/{organization}/locations/{location}/addressGroups/{address_group}" + }; + + // Possible type of the Address Group. + enum Type { + // Default value. + TYPE_UNSPECIFIED = 0; + + // IP v4 ranges. + IPV4 = 1; + + // IP v6 ranges. + IPV6 = 2; + } + + // Purpose of the Address Group. + enum Purpose { + // Default value. Should never happen. + PURPOSE_UNSPECIFIED = 0; + + // Address Group is distributed to VMC, and is usable in Firewall Policies + // and other systems that rely on VMC. + DEFAULT = 1; + + // Address Group is usable in Cloud Armor. + CLOUD_ARMOR = 2; + } + + // Required. Name of the AddressGroup resource. It matches pattern + // `projects/*/locations/{location}/addressGroups/`. + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Free-text description of the resource. + string description = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The timestamp when the resource was created. + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp when the resource was updated. + google.protobuf.Timestamp update_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Set of label tags associated with the AddressGroup resource. + map labels = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The type of the Address Group. Possible values are "IPv4" or + // "IPV6". + Type type = 6 [(google.api.field_behavior) = REQUIRED]; + + // Optional. List of items. + repeated string items = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Capacity of the Address Group + int32 capacity = 8 [(google.api.field_behavior) = REQUIRED]; + + // Output only. Server-defined fully-qualified URL for this resource. + string self_link = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. List of supported purposes of the Address Group. + repeated Purpose purpose = 10 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request used with the ListAddressGroups method. +message ListAddressGroupsRequest { + // Required. The project and location from which the AddressGroups + // should be listed, specified in the format + // `projects/*/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Maximum number of AddressGroups to return per call. + int32 page_size = 2; + + // The value returned by the last + // `ListAddressGroupsResponse` Indicates that this is a + // continuation of a prior `ListAddressGroups` call, and + // that the system should return the next page of data. + string page_token = 3; + + // Optional. If true, allow partial responses for multi-regional Aggregated + // List requests. + bool return_partial_success = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response returned by the ListAddressGroups method. +message ListAddressGroupsResponse { + // List of AddressGroups resources. + repeated AddressGroup address_groups = 1; + + // If there might be more results than those appearing in this response, then + // `next_page_token` is included. To get the next set of results, call this + // method again using the value of `next_page_token` as `page_token`. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// Request used by the GetAddressGroup method. +message GetAddressGroupRequest { + // Required. A name of the AddressGroup to get. Must be in the format + // `projects/*/locations/{location}/addressGroups/*`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/AddressGroup" + } + ]; +} + +// Request used by the CreateAddressGroup method. +message CreateAddressGroupRequest { + // Required. The parent resource of the AddressGroup. Must be in the + // format `projects/*/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "networksecurity.googleapis.com/AddressGroup" + } + ]; + + // Required. Short name of the AddressGroup resource to be created. + // This value should be 1-63 characters long, containing only + // letters, numbers, hyphens, and underscores, and should not start + // with a number. E.g. "authz_policy". + string address_group_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. AddressGroup resource to be created. + AddressGroup address_group = 3 [(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 will know to + // ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request used by the UpdateAddressGroup method. +message UpdateAddressGroupRequest { + // Optional. Field mask is used to specify the fields to be overwritten in the + // AddressGroup resource by the update. + // The fields specified in the update_mask are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. If the + // user does not provide a mask then all fields will be overwritten. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. Updated AddressGroup resource. + AddressGroup address_group = 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 will know to + // ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request used by the DeleteAddressGroup method. +message DeleteAddressGroupRequest { + // Required. A name of the AddressGroup to delete. Must be in the format + // `projects/*/locations/{location}/addressGroups/*`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/AddressGroup" + } + ]; + + // Optional. An optional request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server will know to + // ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request used by the AddAddressGroupItems method. +message AddAddressGroupItemsRequest { + // Required. A name of the AddressGroup to add items to. Must be in the format + // `projects|organization/*/locations/{location}/addressGroups/*`. + string address_group = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/AddressGroup" + } + ]; + + // Required. List of items to add. + repeated string items = 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 will know to + // ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request used by the RemoveAddressGroupItems method. +message RemoveAddressGroupItemsRequest { + // Required. A name of the AddressGroup to remove items from. Must be in the + // format `projects|organization/*/locations/{location}/addressGroups/*`. + string address_group = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/AddressGroup" + } + ]; + + // Required. List of items to remove. + repeated string items = 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 will know to + // ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request used by the CloneAddressGroupItems method. +message CloneAddressGroupItemsRequest { + // Required. A name of the AddressGroup to clone items to. Must be in the + // format `projects|organization/*/locations/{location}/addressGroups/*`. + string address_group = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/AddressGroup" + } + ]; + + // Required. Source address group to clone items from. + string source_address_group = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/AddressGroup" + } + ]; + + // Optional. An optional request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server will know to + // ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request used by the ListAddressGroupReferences method. +message ListAddressGroupReferencesRequest { + // Required. A name of the AddressGroup to clone items to. Must be in the + // format `projects|organization/*/locations/{location}/addressGroups/*`. + string address_group = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networksecurity.googleapis.com/AddressGroup" + } + ]; + + // The maximum number of references to return. If unspecified, server + // will pick an appropriate default. Server may return fewer items than + // requested. A caller should only rely on response's + // [next_page_token][google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse.next_page_token] + // to determine if there are more AddressGroupUsers left to be queried. + int32 page_size = 2; + + // The next_page_token value returned from a previous List request, + // if any. + string page_token = 3; +} + +// Response of the ListAddressGroupReferences method. +message ListAddressGroupReferencesResponse { + // The Reference of AddressGroup. + message AddressGroupReference { + // FirewallPolicy that is using the Address Group. + string firewall_policy = 1; + + // Cloud Armor SecurityPolicy that is using the Address Group. + string security_policy = 4; + + // Rule priority of the FirewallPolicy that is using the Address Group. + int32 rule_priority = 2; + } + + // A list of references that matches the specified filter in the request. + repeated AddressGroupReference address_group_references = 1; + + // If there might be more results than those appearing in this response, then + // `next_page_token` is included. To get the next set of results, call this + // method again using the value of `next_page_token` as `page_token`. + string next_page_token = 2; +} diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/addaddressgroupitems/AsyncAddAddressGroupItems.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/addaddressgroupitems/AsyncAddAddressGroupItems.java new file mode 100644 index 000000000000..4a32904e7c65 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/addaddressgroupitems/AsyncAddAddressGroupItems.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_AddAddressGroupItems_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; +import com.google.longrunning.Operation; +import java.util.ArrayList; + +public class AsyncAddAddressGroupItems { + + public static void main(String[] args) throws Exception { + asyncAddAddressGroupItems(); + } + + public static void asyncAddAddressGroupItems() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) { + AddAddressGroupItemsRequest request = + AddAddressGroupItemsRequest.newBuilder() + .setAddressGroup( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .addAllItems(new ArrayList()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + addressGroupServiceClient.addAddressGroupItemsCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networksecurity_v1_generated_AddressGroupService_AddAddressGroupItems_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/addaddressgroupitems/AsyncAddAddressGroupItemsLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/addaddressgroupitems/AsyncAddAddressGroupItemsLRO.java new file mode 100644 index 000000000000..a76086919fe6 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/addaddressgroupitems/AsyncAddAddressGroupItemsLRO.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_AddAddressGroupItems_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest; +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import java.util.ArrayList; + +public class AsyncAddAddressGroupItemsLRO { + + public static void main(String[] args) throws Exception { + asyncAddAddressGroupItemsLRO(); + } + + public static void asyncAddAddressGroupItemsLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) { + AddAddressGroupItemsRequest request = + AddAddressGroupItemsRequest.newBuilder() + .setAddressGroup( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .addAllItems(new ArrayList()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + addressGroupServiceClient.addAddressGroupItemsOperationCallable().futureCall(request); + // Do something. + AddressGroup response = future.get(); + } + } +} +// [END networksecurity_v1_generated_AddressGroupService_AddAddressGroupItems_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/addaddressgroupitems/SyncAddAddressGroupItems.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/addaddressgroupitems/SyncAddAddressGroupItems.java new file mode 100644 index 000000000000..18c52ba2a6ce --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/addaddressgroupitems/SyncAddAddressGroupItems.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_AddAddressGroupItems_sync] +import com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest; +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; +import java.util.ArrayList; + +public class SyncAddAddressGroupItems { + + public static void main(String[] args) throws Exception { + syncAddAddressGroupItems(); + } + + public static void syncAddAddressGroupItems() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) { + AddAddressGroupItemsRequest request = + AddAddressGroupItemsRequest.newBuilder() + .setAddressGroup( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .addAllItems(new ArrayList()) + .setRequestId("requestId693933066") + .build(); + AddressGroup response = addressGroupServiceClient.addAddressGroupItemsAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_AddressGroupService_AddAddressGroupItems_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/addaddressgroupitems/SyncAddAddressGroupItemsAddressgroupnameListstring.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/addaddressgroupitems/SyncAddAddressGroupItemsAddressgroupnameListstring.java new file mode 100644 index 000000000000..b183e0e14bae --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/addaddressgroupitems/SyncAddAddressGroupItemsAddressgroupnameListstring.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_AddAddressGroupItems_AddressgroupnameListstring_sync] +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; +import java.util.ArrayList; +import java.util.List; + +public class SyncAddAddressGroupItemsAddressgroupnameListstring { + + public static void main(String[] args) throws Exception { + syncAddAddressGroupItemsAddressgroupnameListstring(); + } + + public static void syncAddAddressGroupItemsAddressgroupnameListstring() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) { + AddressGroupName addressGroup = + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]"); + List items = new ArrayList<>(); + AddressGroup response = + addressGroupServiceClient.addAddressGroupItemsAsync(addressGroup, items).get(); + } + } +} +// [END networksecurity_v1_generated_AddressGroupService_AddAddressGroupItems_AddressgroupnameListstring_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/addaddressgroupitems/SyncAddAddressGroupItemsStringListstring.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/addaddressgroupitems/SyncAddAddressGroupItemsStringListstring.java new file mode 100644 index 000000000000..a48f8eb33e0b --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/addaddressgroupitems/SyncAddAddressGroupItemsStringListstring.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_AddAddressGroupItems_StringListstring_sync] +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; +import java.util.ArrayList; +import java.util.List; + +public class SyncAddAddressGroupItemsStringListstring { + + public static void main(String[] args) throws Exception { + syncAddAddressGroupItemsStringListstring(); + } + + public static void syncAddAddressGroupItemsStringListstring() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) { + String addressGroup = + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString(); + List items = new ArrayList<>(); + AddressGroup response = + addressGroupServiceClient.addAddressGroupItemsAsync(addressGroup, items).get(); + } + } +} +// [END networksecurity_v1_generated_AddressGroupService_AddAddressGroupItems_StringListstring_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/cloneaddressgroupitems/AsyncCloneAddressGroupItems.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/cloneaddressgroupitems/AsyncCloneAddressGroupItems.java new file mode 100644 index 000000000000..8c6f622a40ef --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/cloneaddressgroupitems/AsyncCloneAddressGroupItems.java @@ -0,0 +1,58 @@ +/* + * 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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_CloneAddressGroupItems_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; +import com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest; +import com.google.longrunning.Operation; + +public class AsyncCloneAddressGroupItems { + + public static void main(String[] args) throws Exception { + asyncCloneAddressGroupItems(); + } + + public static void asyncCloneAddressGroupItems() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) { + CloneAddressGroupItemsRequest request = + CloneAddressGroupItemsRequest.newBuilder() + .setAddressGroup( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setSourceAddressGroup( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + addressGroupServiceClient.cloneAddressGroupItemsCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networksecurity_v1_generated_AddressGroupService_CloneAddressGroupItems_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/cloneaddressgroupitems/AsyncCloneAddressGroupItemsLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/cloneaddressgroupitems/AsyncCloneAddressGroupItemsLRO.java new file mode 100644 index 000000000000..a7d11784d6e6 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/cloneaddressgroupitems/AsyncCloneAddressGroupItemsLRO.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_CloneAddressGroupItems_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; +import com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest; +import com.google.cloud.networksecurity.v1.OperationMetadata; + +public class AsyncCloneAddressGroupItemsLRO { + + public static void main(String[] args) throws Exception { + asyncCloneAddressGroupItemsLRO(); + } + + public static void asyncCloneAddressGroupItemsLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) { + CloneAddressGroupItemsRequest request = + CloneAddressGroupItemsRequest.newBuilder() + .setAddressGroup( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setSourceAddressGroup( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + addressGroupServiceClient.cloneAddressGroupItemsOperationCallable().futureCall(request); + // Do something. + AddressGroup response = future.get(); + } + } +} +// [END networksecurity_v1_generated_AddressGroupService_CloneAddressGroupItems_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/cloneaddressgroupitems/SyncCloneAddressGroupItems.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/cloneaddressgroupitems/SyncCloneAddressGroupItems.java new file mode 100644 index 000000000000..e7f2d8438699 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/cloneaddressgroupitems/SyncCloneAddressGroupItems.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_CloneAddressGroupItems_sync] +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; +import com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest; + +public class SyncCloneAddressGroupItems { + + public static void main(String[] args) throws Exception { + syncCloneAddressGroupItems(); + } + + public static void syncCloneAddressGroupItems() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) { + CloneAddressGroupItemsRequest request = + CloneAddressGroupItemsRequest.newBuilder() + .setAddressGroup( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setSourceAddressGroup( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setRequestId("requestId693933066") + .build(); + AddressGroup response = addressGroupServiceClient.cloneAddressGroupItemsAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_AddressGroupService_CloneAddressGroupItems_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/cloneaddressgroupitems/SyncCloneAddressGroupItemsAddressgroupnameAddressgroupname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/cloneaddressgroupitems/SyncCloneAddressGroupItemsAddressgroupnameAddressgroupname.java new file mode 100644 index 000000000000..55bf1c5a7555 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/cloneaddressgroupitems/SyncCloneAddressGroupItemsAddressgroupnameAddressgroupname.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_CloneAddressGroupItems_AddressgroupnameAddressgroupname_sync] +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; + +public class SyncCloneAddressGroupItemsAddressgroupnameAddressgroupname { + + public static void main(String[] args) throws Exception { + syncCloneAddressGroupItemsAddressgroupnameAddressgroupname(); + } + + public static void syncCloneAddressGroupItemsAddressgroupnameAddressgroupname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) { + AddressGroupName addressGroup = + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]"); + AddressGroupName sourceAddressGroup = + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]"); + AddressGroup response = + addressGroupServiceClient + .cloneAddressGroupItemsAsync(addressGroup, sourceAddressGroup) + .get(); + } + } +} +// [END networksecurity_v1_generated_AddressGroupService_CloneAddressGroupItems_AddressgroupnameAddressgroupname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/cloneaddressgroupitems/SyncCloneAddressGroupItemsAddressgroupnameString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/cloneaddressgroupitems/SyncCloneAddressGroupItemsAddressgroupnameString.java new file mode 100644 index 000000000000..4b801db63c04 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/cloneaddressgroupitems/SyncCloneAddressGroupItemsAddressgroupnameString.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_CloneAddressGroupItems_AddressgroupnameString_sync] +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; + +public class SyncCloneAddressGroupItemsAddressgroupnameString { + + public static void main(String[] args) throws Exception { + syncCloneAddressGroupItemsAddressgroupnameString(); + } + + public static void syncCloneAddressGroupItemsAddressgroupnameString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) { + AddressGroupName addressGroup = + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]"); + String sourceAddressGroup = + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString(); + AddressGroup response = + addressGroupServiceClient + .cloneAddressGroupItemsAsync(addressGroup, sourceAddressGroup) + .get(); + } + } +} +// [END networksecurity_v1_generated_AddressGroupService_CloneAddressGroupItems_AddressgroupnameString_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/cloneaddressgroupitems/SyncCloneAddressGroupItemsStringAddressgroupname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/cloneaddressgroupitems/SyncCloneAddressGroupItemsStringAddressgroupname.java new file mode 100644 index 000000000000..68e5bd653065 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/cloneaddressgroupitems/SyncCloneAddressGroupItemsStringAddressgroupname.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_CloneAddressGroupItems_StringAddressgroupname_sync] +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; + +public class SyncCloneAddressGroupItemsStringAddressgroupname { + + public static void main(String[] args) throws Exception { + syncCloneAddressGroupItemsStringAddressgroupname(); + } + + public static void syncCloneAddressGroupItemsStringAddressgroupname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) { + String addressGroup = + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString(); + AddressGroupName sourceAddressGroup = + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]"); + AddressGroup response = + addressGroupServiceClient + .cloneAddressGroupItemsAsync(addressGroup, sourceAddressGroup) + .get(); + } + } +} +// [END networksecurity_v1_generated_AddressGroupService_CloneAddressGroupItems_StringAddressgroupname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/cloneaddressgroupitems/SyncCloneAddressGroupItemsStringString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/cloneaddressgroupitems/SyncCloneAddressGroupItemsStringString.java new file mode 100644 index 000000000000..0bef3e223158 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/cloneaddressgroupitems/SyncCloneAddressGroupItemsStringString.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_CloneAddressGroupItems_StringString_sync] +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; + +public class SyncCloneAddressGroupItemsStringString { + + public static void main(String[] args) throws Exception { + syncCloneAddressGroupItemsStringString(); + } + + public static void syncCloneAddressGroupItemsStringString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) { + String addressGroup = + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString(); + String sourceAddressGroup = + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString(); + AddressGroup response = + addressGroupServiceClient + .cloneAddressGroupItemsAsync(addressGroup, sourceAddressGroup) + .get(); + } + } +} +// [END networksecurity_v1_generated_AddressGroupService_CloneAddressGroupItems_StringString_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/create/SyncCreateSetCredentialsProvider.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..b7e575634f7e --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; +import com.google.cloud.networksecurity.v1.AddressGroupServiceSettings; +import com.google.cloud.networksecurity.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 + AddressGroupServiceSettings addressGroupServiceSettings = + AddressGroupServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + AddressGroupServiceClient addressGroupServiceClient = + AddressGroupServiceClient.create(addressGroupServiceSettings); + } +} +// [END networksecurity_v1_generated_AddressGroupService_Create_SetCredentialsProvider_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/create/SyncCreateSetEndpoint.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..12195ec2b304 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_Create_SetEndpoint_sync] +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; +import com.google.cloud.networksecurity.v1.AddressGroupServiceSettings; +import com.google.cloud.networksecurity.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 + AddressGroupServiceSettings addressGroupServiceSettings = + AddressGroupServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + AddressGroupServiceClient addressGroupServiceClient = + AddressGroupServiceClient.create(addressGroupServiceSettings); + } +} +// [END networksecurity_v1_generated_AddressGroupService_Create_SetEndpoint_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/createaddressgroup/AsyncCreateAddressGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/createaddressgroup/AsyncCreateAddressGroup.java new file mode 100644 index 000000000000..8ddc23610a4a --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/createaddressgroup/AsyncCreateAddressGroup.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_CreateAddressGroup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; +import com.google.cloud.networksecurity.v1.CreateAddressGroupRequest; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.longrunning.Operation; + +public class AsyncCreateAddressGroup { + + public static void main(String[] args) throws Exception { + asyncCreateAddressGroup(); + } + + public static void asyncCreateAddressGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) { + CreateAddressGroupRequest request = + CreateAddressGroupRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setAddressGroupId("addressGroupId705215846") + .setAddressGroup(AddressGroup.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + addressGroupServiceClient.createAddressGroupCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networksecurity_v1_generated_AddressGroupService_CreateAddressGroup_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/createaddressgroup/AsyncCreateAddressGroupLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/createaddressgroup/AsyncCreateAddressGroupLRO.java new file mode 100644 index 000000000000..405c306b00cd --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/createaddressgroup/AsyncCreateAddressGroupLRO.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_CreateAddressGroup_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; +import com.google.cloud.networksecurity.v1.CreateAddressGroupRequest; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.OperationMetadata; + +public class AsyncCreateAddressGroupLRO { + + public static void main(String[] args) throws Exception { + asyncCreateAddressGroupLRO(); + } + + public static void asyncCreateAddressGroupLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) { + CreateAddressGroupRequest request = + CreateAddressGroupRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setAddressGroupId("addressGroupId705215846") + .setAddressGroup(AddressGroup.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + addressGroupServiceClient.createAddressGroupOperationCallable().futureCall(request); + // Do something. + AddressGroup response = future.get(); + } + } +} +// [END networksecurity_v1_generated_AddressGroupService_CreateAddressGroup_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/createaddressgroup/SyncCreateAddressGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/createaddressgroup/SyncCreateAddressGroup.java new file mode 100644 index 000000000000..9a18057174ca --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/createaddressgroup/SyncCreateAddressGroup.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_CreateAddressGroup_sync] +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; +import com.google.cloud.networksecurity.v1.CreateAddressGroupRequest; +import com.google.cloud.networksecurity.v1.LocationName; + +public class SyncCreateAddressGroup { + + public static void main(String[] args) throws Exception { + syncCreateAddressGroup(); + } + + public static void syncCreateAddressGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) { + CreateAddressGroupRequest request = + CreateAddressGroupRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setAddressGroupId("addressGroupId705215846") + .setAddressGroup(AddressGroup.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + AddressGroup response = addressGroupServiceClient.createAddressGroupAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_AddressGroupService_CreateAddressGroup_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/createaddressgroup/SyncCreateAddressGroupLocationnameAddressgroupString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/createaddressgroup/SyncCreateAddressGroupLocationnameAddressgroupString.java new file mode 100644 index 000000000000..b0a6ca128b55 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/createaddressgroup/SyncCreateAddressGroupLocationnameAddressgroupString.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_CreateAddressGroup_LocationnameAddressgroupString_sync] +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; +import com.google.cloud.networksecurity.v1.LocationName; + +public class SyncCreateAddressGroupLocationnameAddressgroupString { + + public static void main(String[] args) throws Exception { + syncCreateAddressGroupLocationnameAddressgroupString(); + } + + public static void syncCreateAddressGroupLocationnameAddressgroupString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AddressGroup addressGroup = AddressGroup.newBuilder().build(); + String addressGroupId = "addressGroupId705215846"; + AddressGroup response = + addressGroupServiceClient + .createAddressGroupAsync(parent, addressGroup, addressGroupId) + .get(); + } + } +} +// [END networksecurity_v1_generated_AddressGroupService_CreateAddressGroup_LocationnameAddressgroupString_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/createaddressgroup/SyncCreateAddressGroupOrganizationlocationnameAddressgroupString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/createaddressgroup/SyncCreateAddressGroupOrganizationlocationnameAddressgroupString.java new file mode 100644 index 000000000000..054fa7ee0f79 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/createaddressgroup/SyncCreateAddressGroupOrganizationlocationnameAddressgroupString.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_CreateAddressGroup_OrganizationlocationnameAddressgroupString_sync] +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; +import com.google.cloud.networksecurity.v1.OrganizationLocationName; + +public class SyncCreateAddressGroupOrganizationlocationnameAddressgroupString { + + public static void main(String[] args) throws Exception { + syncCreateAddressGroupOrganizationlocationnameAddressgroupString(); + } + + public static void syncCreateAddressGroupOrganizationlocationnameAddressgroupString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + AddressGroup addressGroup = AddressGroup.newBuilder().build(); + String addressGroupId = "addressGroupId705215846"; + AddressGroup response = + addressGroupServiceClient + .createAddressGroupAsync(parent, addressGroup, addressGroupId) + .get(); + } + } +} +// [END networksecurity_v1_generated_AddressGroupService_CreateAddressGroup_OrganizationlocationnameAddressgroupString_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/createaddressgroup/SyncCreateAddressGroupStringAddressgroupString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/createaddressgroup/SyncCreateAddressGroupStringAddressgroupString.java new file mode 100644 index 000000000000..5b757e7c4849 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/createaddressgroup/SyncCreateAddressGroupStringAddressgroupString.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_CreateAddressGroup_StringAddressgroupString_sync] +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; +import com.google.cloud.networksecurity.v1.LocationName; + +public class SyncCreateAddressGroupStringAddressgroupString { + + public static void main(String[] args) throws Exception { + syncCreateAddressGroupStringAddressgroupString(); + } + + public static void syncCreateAddressGroupStringAddressgroupString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + AddressGroup addressGroup = AddressGroup.newBuilder().build(); + String addressGroupId = "addressGroupId705215846"; + AddressGroup response = + addressGroupServiceClient + .createAddressGroupAsync(parent, addressGroup, addressGroupId) + .get(); + } + } +} +// [END networksecurity_v1_generated_AddressGroupService_CreateAddressGroup_StringAddressgroupString_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/deleteaddressgroup/AsyncDeleteAddressGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/deleteaddressgroup/AsyncDeleteAddressGroup.java new file mode 100644 index 000000000000..5572d93a34ef --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/deleteaddressgroup/AsyncDeleteAddressGroup.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_DeleteAddressGroup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; +import com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest; +import com.google.longrunning.Operation; + +public class AsyncDeleteAddressGroup { + + public static void main(String[] args) throws Exception { + asyncDeleteAddressGroup(); + } + + public static void asyncDeleteAddressGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) { + DeleteAddressGroupRequest request = + DeleteAddressGroupRequest.newBuilder() + .setName( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + addressGroupServiceClient.deleteAddressGroupCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networksecurity_v1_generated_AddressGroupService_DeleteAddressGroup_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/deleteaddressgroup/AsyncDeleteAddressGroupLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/deleteaddressgroup/AsyncDeleteAddressGroupLRO.java new file mode 100644 index 000000000000..c548e8005622 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/deleteaddressgroup/AsyncDeleteAddressGroupLRO.java @@ -0,0 +1,55 @@ +/* + * 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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_DeleteAddressGroup_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; +import com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteAddressGroupLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteAddressGroupLRO(); + } + + public static void asyncDeleteAddressGroupLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) { + DeleteAddressGroupRequest request = + DeleteAddressGroupRequest.newBuilder() + .setName( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + addressGroupServiceClient.deleteAddressGroupOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networksecurity_v1_generated_AddressGroupService_DeleteAddressGroup_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/deleteaddressgroup/SyncDeleteAddressGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/deleteaddressgroup/SyncDeleteAddressGroup.java new file mode 100644 index 000000000000..89feb385c7ef --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/deleteaddressgroup/SyncDeleteAddressGroup.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_DeleteAddressGroup_sync] +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; +import com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest; +import com.google.protobuf.Empty; + +public class SyncDeleteAddressGroup { + + public static void main(String[] args) throws Exception { + syncDeleteAddressGroup(); + } + + public static void syncDeleteAddressGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) { + DeleteAddressGroupRequest request = + DeleteAddressGroupRequest.newBuilder() + .setName( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setRequestId("requestId693933066") + .build(); + addressGroupServiceClient.deleteAddressGroupAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_AddressGroupService_DeleteAddressGroup_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/deleteaddressgroup/SyncDeleteAddressGroupAddressgroupname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/deleteaddressgroup/SyncDeleteAddressGroupAddressgroupname.java new file mode 100644 index 000000000000..bb10a79bb2e4 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/deleteaddressgroup/SyncDeleteAddressGroupAddressgroupname.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_DeleteAddressGroup_Addressgroupname_sync] +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteAddressGroupAddressgroupname { + + public static void main(String[] args) throws Exception { + syncDeleteAddressGroupAddressgroupname(); + } + + public static void syncDeleteAddressGroupAddressgroupname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) { + AddressGroupName name = + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]"); + addressGroupServiceClient.deleteAddressGroupAsync(name).get(); + } + } +} +// [END networksecurity_v1_generated_AddressGroupService_DeleteAddressGroup_Addressgroupname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/deleteaddressgroup/SyncDeleteAddressGroupString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/deleteaddressgroup/SyncDeleteAddressGroupString.java new file mode 100644 index 000000000000..8137333ee86f --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/deleteaddressgroup/SyncDeleteAddressGroupString.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_DeleteAddressGroup_String_sync] +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteAddressGroupString { + + public static void main(String[] args) throws Exception { + syncDeleteAddressGroupString(); + } + + public static void syncDeleteAddressGroupString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) { + String name = + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString(); + addressGroupServiceClient.deleteAddressGroupAsync(name).get(); + } + } +} +// [END networksecurity_v1_generated_AddressGroupService_DeleteAddressGroup_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/getaddressgroup/AsyncGetAddressGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/getaddressgroup/AsyncGetAddressGroup.java new file mode 100644 index 000000000000..e250f170d799 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/getaddressgroup/AsyncGetAddressGroup.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_GetAddressGroup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; +import com.google.cloud.networksecurity.v1.GetAddressGroupRequest; + +public class AsyncGetAddressGroup { + + public static void main(String[] args) throws Exception { + asyncGetAddressGroup(); + } + + public static void asyncGetAddressGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) { + GetAddressGroupRequest request = + GetAddressGroupRequest.newBuilder() + .setName( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .build(); + ApiFuture future = + addressGroupServiceClient.getAddressGroupCallable().futureCall(request); + // Do something. + AddressGroup response = future.get(); + } + } +} +// [END networksecurity_v1_generated_AddressGroupService_GetAddressGroup_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/getaddressgroup/SyncGetAddressGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/getaddressgroup/SyncGetAddressGroup.java new file mode 100644 index 000000000000..91cbac411715 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/getaddressgroup/SyncGetAddressGroup.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_GetAddressGroup_sync] +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; +import com.google.cloud.networksecurity.v1.GetAddressGroupRequest; + +public class SyncGetAddressGroup { + + public static void main(String[] args) throws Exception { + syncGetAddressGroup(); + } + + public static void syncGetAddressGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) { + GetAddressGroupRequest request = + GetAddressGroupRequest.newBuilder() + .setName( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .build(); + AddressGroup response = addressGroupServiceClient.getAddressGroup(request); + } + } +} +// [END networksecurity_v1_generated_AddressGroupService_GetAddressGroup_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/getaddressgroup/SyncGetAddressGroupAddressgroupname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/getaddressgroup/SyncGetAddressGroupAddressgroupname.java new file mode 100644 index 000000000000..e54bc4cc779d --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/getaddressgroup/SyncGetAddressGroupAddressgroupname.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_GetAddressGroup_Addressgroupname_sync] +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; + +public class SyncGetAddressGroupAddressgroupname { + + public static void main(String[] args) throws Exception { + syncGetAddressGroupAddressgroupname(); + } + + public static void syncGetAddressGroupAddressgroupname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) { + AddressGroupName name = + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]"); + AddressGroup response = addressGroupServiceClient.getAddressGroup(name); + } + } +} +// [END networksecurity_v1_generated_AddressGroupService_GetAddressGroup_Addressgroupname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/getaddressgroup/SyncGetAddressGroupString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/getaddressgroup/SyncGetAddressGroupString.java new file mode 100644 index 000000000000..fc0b538c5155 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/getaddressgroup/SyncGetAddressGroupString.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_GetAddressGroup_String_sync] +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; + +public class SyncGetAddressGroupString { + + public static void main(String[] args) throws Exception { + syncGetAddressGroupString(); + } + + public static void syncGetAddressGroupString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) { + String name = + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString(); + AddressGroup response = addressGroupServiceClient.getAddressGroup(name); + } + } +} +// [END networksecurity_v1_generated_AddressGroupService_GetAddressGroup_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/getiampolicy/AsyncGetIamPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/getiampolicy/AsyncGetIamPolicy.java new file mode 100644 index 000000000000..160bfe58dd8c --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/getiampolicy/AsyncGetIamPolicy.java @@ -0,0 +1,55 @@ +/* + * 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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_GetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class AsyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncGetIamPolicy(); + } + + public static void asyncGetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + ApiFuture future = + addressGroupServiceClient.getIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END networksecurity_v1_generated_AddressGroupService_GetIamPolicy_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/getiampolicy/SyncGetIamPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/getiampolicy/SyncGetIamPolicy.java new file mode 100644 index 000000000000..90b1c5e28f79 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/getiampolicy/SyncGetIamPolicy.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_GetIamPolicy_sync] +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class SyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + syncGetIamPolicy(); + } + + public static void syncGetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + Policy response = addressGroupServiceClient.getIamPolicy(request); + } + } +} +// [END networksecurity_v1_generated_AddressGroupService_GetIamPolicy_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/getlocation/AsyncGetLocation.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/getlocation/AsyncGetLocation.java new file mode 100644 index 000000000000..b32d5e4a4e47 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/getlocation/AsyncGetLocation.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_GetLocation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; + +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 (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = + addressGroupServiceClient.getLocationCallable().futureCall(request); + // Do something. + Location response = future.get(); + } + } +} +// [END networksecurity_v1_generated_AddressGroupService_GetLocation_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/getlocation/SyncGetLocation.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/getlocation/SyncGetLocation.java new file mode 100644 index 000000000000..a79d155981b0 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_GetLocation_sync] +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; + +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 (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + Location response = addressGroupServiceClient.getLocation(request); + } + } +} +// [END networksecurity_v1_generated_AddressGroupService_GetLocation_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/listaddressgroupreferences/AsyncListAddressGroupReferences.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/listaddressgroupreferences/AsyncListAddressGroupReferences.java new file mode 100644 index 000000000000..18acc7f651b3 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/listaddressgroupreferences/AsyncListAddressGroupReferences.java @@ -0,0 +1,58 @@ +/* + * 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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_ListAddressGroupReferences_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; +import com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest; +import com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse; + +public class AsyncListAddressGroupReferences { + + public static void main(String[] args) throws Exception { + asyncListAddressGroupReferences(); + } + + public static void asyncListAddressGroupReferences() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) { + ListAddressGroupReferencesRequest request = + ListAddressGroupReferencesRequest.newBuilder() + .setAddressGroup( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + addressGroupServiceClient.listAddressGroupReferencesPagedCallable().futureCall(request); + // Do something. + for (ListAddressGroupReferencesResponse.AddressGroupReference element : + future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_AddressGroupService_ListAddressGroupReferences_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/listaddressgroupreferences/AsyncListAddressGroupReferencesPaged.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/listaddressgroupreferences/AsyncListAddressGroupReferencesPaged.java new file mode 100644 index 000000000000..c799e9bb402b --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/listaddressgroupreferences/AsyncListAddressGroupReferencesPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_ListAddressGroupReferences_Paged_async] +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; +import com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest; +import com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse; +import com.google.common.base.Strings; + +public class AsyncListAddressGroupReferencesPaged { + + public static void main(String[] args) throws Exception { + asyncListAddressGroupReferencesPaged(); + } + + public static void asyncListAddressGroupReferencesPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) { + ListAddressGroupReferencesRequest request = + ListAddressGroupReferencesRequest.newBuilder() + .setAddressGroup( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListAddressGroupReferencesResponse response = + addressGroupServiceClient.listAddressGroupReferencesCallable().call(request); + for (ListAddressGroupReferencesResponse.AddressGroupReference element : + response.getAddressGroupReferencesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END networksecurity_v1_generated_AddressGroupService_ListAddressGroupReferences_Paged_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/listaddressgroupreferences/SyncListAddressGroupReferences.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/listaddressgroupreferences/SyncListAddressGroupReferences.java new file mode 100644 index 000000000000..09fcaf642281 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/listaddressgroupreferences/SyncListAddressGroupReferences.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_ListAddressGroupReferences_sync] +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; +import com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest; +import com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse; + +public class SyncListAddressGroupReferences { + + public static void main(String[] args) throws Exception { + syncListAddressGroupReferences(); + } + + public static void syncListAddressGroupReferences() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) { + ListAddressGroupReferencesRequest request = + ListAddressGroupReferencesRequest.newBuilder() + .setAddressGroup( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (ListAddressGroupReferencesResponse.AddressGroupReference element : + addressGroupServiceClient.listAddressGroupReferences(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_AddressGroupService_ListAddressGroupReferences_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/listaddressgroupreferences/SyncListAddressGroupReferencesAddressgroupname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/listaddressgroupreferences/SyncListAddressGroupReferencesAddressgroupname.java new file mode 100644 index 000000000000..65988784c6d9 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/listaddressgroupreferences/SyncListAddressGroupReferencesAddressgroupname.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_ListAddressGroupReferences_Addressgroupname_sync] +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; +import com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse; + +public class SyncListAddressGroupReferencesAddressgroupname { + + public static void main(String[] args) throws Exception { + syncListAddressGroupReferencesAddressgroupname(); + } + + public static void syncListAddressGroupReferencesAddressgroupname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) { + AddressGroupName addressGroup = + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]"); + for (ListAddressGroupReferencesResponse.AddressGroupReference element : + addressGroupServiceClient.listAddressGroupReferences(addressGroup).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_AddressGroupService_ListAddressGroupReferences_Addressgroupname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/listaddressgroupreferences/SyncListAddressGroupReferencesString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/listaddressgroupreferences/SyncListAddressGroupReferencesString.java new file mode 100644 index 000000000000..522ef5532c47 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/listaddressgroupreferences/SyncListAddressGroupReferencesString.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_ListAddressGroupReferences_String_sync] +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; +import com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse; + +public class SyncListAddressGroupReferencesString { + + public static void main(String[] args) throws Exception { + syncListAddressGroupReferencesString(); + } + + public static void syncListAddressGroupReferencesString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) { + String addressGroup = + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString(); + for (ListAddressGroupReferencesResponse.AddressGroupReference element : + addressGroupServiceClient.listAddressGroupReferences(addressGroup).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_AddressGroupService_ListAddressGroupReferences_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/listaddressgroups/AsyncListAddressGroups.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/listaddressgroups/AsyncListAddressGroups.java new file mode 100644 index 000000000000..10cf50c98c50 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/listaddressgroups/AsyncListAddressGroups.java @@ -0,0 +1,55 @@ +/* + * 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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_ListAddressGroups_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; +import com.google.cloud.networksecurity.v1.ListAddressGroupsRequest; +import com.google.cloud.networksecurity.v1.LocationName; + +public class AsyncListAddressGroups { + + public static void main(String[] args) throws Exception { + asyncListAddressGroups(); + } + + public static void asyncListAddressGroups() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) { + ListAddressGroupsRequest request = + ListAddressGroupsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setReturnPartialSuccess(true) + .build(); + ApiFuture future = + addressGroupServiceClient.listAddressGroupsPagedCallable().futureCall(request); + // Do something. + for (AddressGroup element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_AddressGroupService_ListAddressGroups_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/listaddressgroups/AsyncListAddressGroupsPaged.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/listaddressgroups/AsyncListAddressGroupsPaged.java new file mode 100644 index 000000000000..cb917cd2d385 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/listaddressgroups/AsyncListAddressGroupsPaged.java @@ -0,0 +1,63 @@ +/* + * 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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_ListAddressGroups_Paged_async] +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; +import com.google.cloud.networksecurity.v1.ListAddressGroupsRequest; +import com.google.cloud.networksecurity.v1.ListAddressGroupsResponse; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.common.base.Strings; + +public class AsyncListAddressGroupsPaged { + + public static void main(String[] args) throws Exception { + asyncListAddressGroupsPaged(); + } + + public static void asyncListAddressGroupsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) { + ListAddressGroupsRequest request = + ListAddressGroupsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setReturnPartialSuccess(true) + .build(); + while (true) { + ListAddressGroupsResponse response = + addressGroupServiceClient.listAddressGroupsCallable().call(request); + for (AddressGroup element : response.getAddressGroupsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END networksecurity_v1_generated_AddressGroupService_ListAddressGroups_Paged_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/listaddressgroups/SyncListAddressGroups.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/listaddressgroups/SyncListAddressGroups.java new file mode 100644 index 000000000000..526fab115612 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/listaddressgroups/SyncListAddressGroups.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_ListAddressGroups_sync] +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; +import com.google.cloud.networksecurity.v1.ListAddressGroupsRequest; +import com.google.cloud.networksecurity.v1.LocationName; + +public class SyncListAddressGroups { + + public static void main(String[] args) throws Exception { + syncListAddressGroups(); + } + + public static void syncListAddressGroups() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) { + ListAddressGroupsRequest request = + ListAddressGroupsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setReturnPartialSuccess(true) + .build(); + for (AddressGroup element : + addressGroupServiceClient.listAddressGroups(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_AddressGroupService_ListAddressGroups_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/listaddressgroups/SyncListAddressGroupsLocationname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/listaddressgroups/SyncListAddressGroupsLocationname.java new file mode 100644 index 000000000000..19464a93ece9 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/listaddressgroups/SyncListAddressGroupsLocationname.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_ListAddressGroups_Locationname_sync] +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; +import com.google.cloud.networksecurity.v1.LocationName; + +public class SyncListAddressGroupsLocationname { + + public static void main(String[] args) throws Exception { + syncListAddressGroupsLocationname(); + } + + public static void syncListAddressGroupsLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (AddressGroup element : + addressGroupServiceClient.listAddressGroups(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_AddressGroupService_ListAddressGroups_Locationname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/listaddressgroups/SyncListAddressGroupsString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/listaddressgroups/SyncListAddressGroupsString.java new file mode 100644 index 000000000000..914060e161cd --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/listaddressgroups/SyncListAddressGroupsString.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_ListAddressGroups_String_sync] +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; +import com.google.cloud.networksecurity.v1.LocationName; + +public class SyncListAddressGroupsString { + + public static void main(String[] args) throws Exception { + syncListAddressGroupsString(); + } + + public static void syncListAddressGroupsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (AddressGroup element : + addressGroupServiceClient.listAddressGroups(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_AddressGroupService_ListAddressGroups_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/listlocations/AsyncListLocations.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/listlocations/AsyncListLocations.java new file mode 100644 index 000000000000..b7cf41cd356a --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_ListLocations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; + +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 (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + addressGroupServiceClient.listLocationsPagedCallable().futureCall(request); + // Do something. + for (Location element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_AddressGroupService_ListLocations_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/listlocations/AsyncListLocationsPaged.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/listlocations/AsyncListLocationsPaged.java new file mode 100644 index 000000000000..a2edd4e36b06 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_ListLocations_Paged_async] +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; +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 (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLocationsResponse response = + addressGroupServiceClient.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 networksecurity_v1_generated_AddressGroupService_ListLocations_Paged_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/listlocations/SyncListLocations.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/listlocations/SyncListLocations.java new file mode 100644 index 000000000000..857807f05ed1 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_ListLocations_sync] +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; + +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 (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Location element : addressGroupServiceClient.listLocations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_AddressGroupService_ListLocations_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/removeaddressgroupitems/AsyncRemoveAddressGroupItems.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/removeaddressgroupitems/AsyncRemoveAddressGroupItems.java new file mode 100644 index 000000000000..72c5a2858cfe --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/removeaddressgroupitems/AsyncRemoveAddressGroupItems.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_RemoveAddressGroupItems_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; +import com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest; +import com.google.longrunning.Operation; +import java.util.ArrayList; + +public class AsyncRemoveAddressGroupItems { + + public static void main(String[] args) throws Exception { + asyncRemoveAddressGroupItems(); + } + + public static void asyncRemoveAddressGroupItems() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) { + RemoveAddressGroupItemsRequest request = + RemoveAddressGroupItemsRequest.newBuilder() + .setAddressGroup( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .addAllItems(new ArrayList()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + addressGroupServiceClient.removeAddressGroupItemsCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networksecurity_v1_generated_AddressGroupService_RemoveAddressGroupItems_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/removeaddressgroupitems/AsyncRemoveAddressGroupItemsLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/removeaddressgroupitems/AsyncRemoveAddressGroupItemsLRO.java new file mode 100644 index 000000000000..d146983e439c --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/removeaddressgroupitems/AsyncRemoveAddressGroupItemsLRO.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_RemoveAddressGroupItems_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest; +import java.util.ArrayList; + +public class AsyncRemoveAddressGroupItemsLRO { + + public static void main(String[] args) throws Exception { + asyncRemoveAddressGroupItemsLRO(); + } + + public static void asyncRemoveAddressGroupItemsLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) { + RemoveAddressGroupItemsRequest request = + RemoveAddressGroupItemsRequest.newBuilder() + .setAddressGroup( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .addAllItems(new ArrayList()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + addressGroupServiceClient.removeAddressGroupItemsOperationCallable().futureCall(request); + // Do something. + AddressGroup response = future.get(); + } + } +} +// [END networksecurity_v1_generated_AddressGroupService_RemoveAddressGroupItems_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/removeaddressgroupitems/SyncRemoveAddressGroupItems.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/removeaddressgroupitems/SyncRemoveAddressGroupItems.java new file mode 100644 index 000000000000..0e27185ed46b --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/removeaddressgroupitems/SyncRemoveAddressGroupItems.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_RemoveAddressGroupItems_sync] +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; +import com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest; +import java.util.ArrayList; + +public class SyncRemoveAddressGroupItems { + + public static void main(String[] args) throws Exception { + syncRemoveAddressGroupItems(); + } + + public static void syncRemoveAddressGroupItems() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) { + RemoveAddressGroupItemsRequest request = + RemoveAddressGroupItemsRequest.newBuilder() + .setAddressGroup( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .addAllItems(new ArrayList()) + .setRequestId("requestId693933066") + .build(); + AddressGroup response = addressGroupServiceClient.removeAddressGroupItemsAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_AddressGroupService_RemoveAddressGroupItems_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/removeaddressgroupitems/SyncRemoveAddressGroupItemsAddressgroupnameListstring.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/removeaddressgroupitems/SyncRemoveAddressGroupItemsAddressgroupnameListstring.java new file mode 100644 index 000000000000..137072cd0969 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/removeaddressgroupitems/SyncRemoveAddressGroupItemsAddressgroupnameListstring.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_RemoveAddressGroupItems_AddressgroupnameListstring_sync] +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; +import java.util.ArrayList; +import java.util.List; + +public class SyncRemoveAddressGroupItemsAddressgroupnameListstring { + + public static void main(String[] args) throws Exception { + syncRemoveAddressGroupItemsAddressgroupnameListstring(); + } + + public static void syncRemoveAddressGroupItemsAddressgroupnameListstring() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) { + AddressGroupName addressGroup = + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]"); + List items = new ArrayList<>(); + AddressGroup response = + addressGroupServiceClient.removeAddressGroupItemsAsync(addressGroup, items).get(); + } + } +} +// [END networksecurity_v1_generated_AddressGroupService_RemoveAddressGroupItems_AddressgroupnameListstring_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/removeaddressgroupitems/SyncRemoveAddressGroupItemsStringListstring.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/removeaddressgroupitems/SyncRemoveAddressGroupItemsStringListstring.java new file mode 100644 index 000000000000..55934686733f --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/removeaddressgroupitems/SyncRemoveAddressGroupItemsStringListstring.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_RemoveAddressGroupItems_StringListstring_sync] +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; +import java.util.ArrayList; +import java.util.List; + +public class SyncRemoveAddressGroupItemsStringListstring { + + public static void main(String[] args) throws Exception { + syncRemoveAddressGroupItemsStringListstring(); + } + + public static void syncRemoveAddressGroupItemsStringListstring() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) { + String addressGroup = + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString(); + List items = new ArrayList<>(); + AddressGroup response = + addressGroupServiceClient.removeAddressGroupItemsAsync(addressGroup, items).get(); + } + } +} +// [END networksecurity_v1_generated_AddressGroupService_RemoveAddressGroupItems_StringListstring_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/setiampolicy/AsyncSetIamPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/setiampolicy/AsyncSetIamPolicy.java new file mode 100644 index 000000000000..3ca92345d408 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/setiampolicy/AsyncSetIamPolicy.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_SetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class AsyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncSetIamPolicy(); + } + + public static void asyncSetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + addressGroupServiceClient.setIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END networksecurity_v1_generated_AddressGroupService_SetIamPolicy_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/setiampolicy/SyncSetIamPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/setiampolicy/SyncSetIamPolicy.java new file mode 100644 index 000000000000..36a9c02fda47 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/setiampolicy/SyncSetIamPolicy.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_SetIamPolicy_sync] +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class SyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicy(); + } + + public static void syncSetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Policy response = addressGroupServiceClient.setIamPolicy(request); + } + } +} +// [END networksecurity_v1_generated_AddressGroupService_SetIamPolicy_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/testiampermissions/AsyncTestIamPermissions.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/testiampermissions/AsyncTestIamPermissions.java new file mode 100644 index 000000000000..e49f4e894524 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/testiampermissions/AsyncTestIamPermissions.java @@ -0,0 +1,55 @@ +/* + * 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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_TestIamPermissions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class AsyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + asyncTestIamPermissions(); + } + + public static void asyncTestIamPermissions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + ApiFuture future = + addressGroupServiceClient.testIamPermissionsCallable().futureCall(request); + // Do something. + TestIamPermissionsResponse response = future.get(); + } + } +} +// [END networksecurity_v1_generated_AddressGroupService_TestIamPermissions_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/testiampermissions/SyncTestIamPermissions.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/testiampermissions/SyncTestIamPermissions.java new file mode 100644 index 000000000000..94e887c88461 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/testiampermissions/SyncTestIamPermissions.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_TestIamPermissions_sync] +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class SyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + syncTestIamPermissions(); + } + + public static void syncTestIamPermissions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + TestIamPermissionsResponse response = addressGroupServiceClient.testIamPermissions(request); + } + } +} +// [END networksecurity_v1_generated_AddressGroupService_TestIamPermissions_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/updateaddressgroup/AsyncUpdateAddressGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/updateaddressgroup/AsyncUpdateAddressGroup.java new file mode 100644 index 000000000000..f84867b6ffa7 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/updateaddressgroup/AsyncUpdateAddressGroup.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_UpdateAddressGroup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; +import com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateAddressGroup { + + public static void main(String[] args) throws Exception { + asyncUpdateAddressGroup(); + } + + public static void asyncUpdateAddressGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) { + UpdateAddressGroupRequest request = + UpdateAddressGroupRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setAddressGroup(AddressGroup.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + addressGroupServiceClient.updateAddressGroupCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networksecurity_v1_generated_AddressGroupService_UpdateAddressGroup_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/updateaddressgroup/AsyncUpdateAddressGroupLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/updateaddressgroup/AsyncUpdateAddressGroupLRO.java new file mode 100644 index 000000000000..39cc3ba5ac97 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/updateaddressgroup/AsyncUpdateAddressGroupLRO.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_UpdateAddressGroup_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateAddressGroupLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateAddressGroupLRO(); + } + + public static void asyncUpdateAddressGroupLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) { + UpdateAddressGroupRequest request = + UpdateAddressGroupRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setAddressGroup(AddressGroup.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + addressGroupServiceClient.updateAddressGroupOperationCallable().futureCall(request); + // Do something. + AddressGroup response = future.get(); + } + } +} +// [END networksecurity_v1_generated_AddressGroupService_UpdateAddressGroup_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/updateaddressgroup/SyncUpdateAddressGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/updateaddressgroup/SyncUpdateAddressGroup.java new file mode 100644 index 000000000000..64bf5bfbfa94 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/updateaddressgroup/SyncUpdateAddressGroup.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_UpdateAddressGroup_sync] +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; +import com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateAddressGroup { + + public static void main(String[] args) throws Exception { + syncUpdateAddressGroup(); + } + + public static void syncUpdateAddressGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) { + UpdateAddressGroupRequest request = + UpdateAddressGroupRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setAddressGroup(AddressGroup.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + AddressGroup response = addressGroupServiceClient.updateAddressGroupAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_AddressGroupService_UpdateAddressGroup_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/updateaddressgroup/SyncUpdateAddressGroupAddressgroupFieldmask.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/updateaddressgroup/SyncUpdateAddressGroupAddressgroupFieldmask.java new file mode 100644 index 000000000000..96033cd84700 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservice/updateaddressgroup/SyncUpdateAddressGroupAddressgroupFieldmask.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupService_UpdateAddressGroup_AddressgroupFieldmask_sync] +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.AddressGroupServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateAddressGroupAddressgroupFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateAddressGroupAddressgroupFieldmask(); + } + + public static void syncUpdateAddressGroupAddressgroupFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AddressGroupServiceClient addressGroupServiceClient = AddressGroupServiceClient.create()) { + AddressGroup addressGroup = AddressGroup.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + AddressGroup response = + addressGroupServiceClient.updateAddressGroupAsync(addressGroup, updateMask).get(); + } + } +} +// [END networksecurity_v1_generated_AddressGroupService_UpdateAddressGroup_AddressgroupFieldmask_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservicesettings/createaddressgroup/SyncCreateAddressGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservicesettings/createaddressgroup/SyncCreateAddressGroup.java new file mode 100644 index 000000000000..36f604a2d41a --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservicesettings/createaddressgroup/SyncCreateAddressGroup.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupServiceSettings_CreateAddressGroup_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.networksecurity.v1.AddressGroupServiceSettings; +import java.time.Duration; + +public class SyncCreateAddressGroup { + + public static void main(String[] args) throws Exception { + syncCreateAddressGroup(); + } + + public static void syncCreateAddressGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AddressGroupServiceSettings.Builder addressGroupServiceSettingsBuilder = + AddressGroupServiceSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + addressGroupServiceSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END networksecurity_v1_generated_AddressGroupServiceSettings_CreateAddressGroup_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservicesettings/getaddressgroup/SyncGetAddressGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservicesettings/getaddressgroup/SyncGetAddressGroup.java new file mode 100644 index 000000000000..77772d1767fe --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/addressgroupservicesettings/getaddressgroup/SyncGetAddressGroup.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_AddressGroupServiceSettings_GetAddressGroup_sync] +import com.google.cloud.networksecurity.v1.AddressGroupServiceSettings; +import java.time.Duration; + +public class SyncGetAddressGroup { + + public static void main(String[] args) throws Exception { + syncGetAddressGroup(); + } + + public static void syncGetAddressGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AddressGroupServiceSettings.Builder addressGroupServiceSettingsBuilder = + AddressGroupServiceSettings.newBuilder(); + addressGroupServiceSettingsBuilder + .getAddressGroupSettings() + .setRetrySettings( + addressGroupServiceSettingsBuilder + .getAddressGroupSettings() + .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()); + AddressGroupServiceSettings addressGroupServiceSettings = + addressGroupServiceSettingsBuilder.build(); + } +} +// [END networksecurity_v1_generated_AddressGroupServiceSettings_GetAddressGroup_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/getiampolicy/AsyncGetIamPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/getiampolicy/AsyncGetIamPolicy.java index 1c3131288a3c..9032b5264f2f 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/getiampolicy/AsyncGetIamPolicy.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/getiampolicy/AsyncGetIamPolicy.java @@ -18,7 +18,7 @@ // [START networksecurity_v1_generated_NetworkSecurity_GetIamPolicy_async] import com.google.api.core.ApiFuture; -import com.google.cloud.networksecurity.v1.AuthorizationPolicyName; +import com.google.cloud.networksecurity.v1.AddressGroupName; import com.google.cloud.networksecurity.v1.NetworkSecurityClient; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.GetPolicyOptions; @@ -40,7 +40,8 @@ public static void asyncGetIamPolicy() throws Exception { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() .setResource( - AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") .toString()) .setOptions(GetPolicyOptions.newBuilder().build()) .build(); diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/getiampolicy/SyncGetIamPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/getiampolicy/SyncGetIamPolicy.java index 9152993e4f29..569847b22bf9 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/getiampolicy/SyncGetIamPolicy.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/getiampolicy/SyncGetIamPolicy.java @@ -17,7 +17,7 @@ package com.google.cloud.networksecurity.v1.samples; // [START networksecurity_v1_generated_NetworkSecurity_GetIamPolicy_sync] -import com.google.cloud.networksecurity.v1.AuthorizationPolicyName; +import com.google.cloud.networksecurity.v1.AddressGroupName; import com.google.cloud.networksecurity.v1.NetworkSecurityClient; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.GetPolicyOptions; @@ -39,7 +39,8 @@ public static void syncGetIamPolicy() throws Exception { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() .setResource( - AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") .toString()) .setOptions(GetPolicyOptions.newBuilder().build()) .build(); diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/setiampolicy/AsyncSetIamPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/setiampolicy/AsyncSetIamPolicy.java index f6ba949ed071..d089e297b37e 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/setiampolicy/AsyncSetIamPolicy.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/setiampolicy/AsyncSetIamPolicy.java @@ -18,7 +18,7 @@ // [START networksecurity_v1_generated_NetworkSecurity_SetIamPolicy_async] import com.google.api.core.ApiFuture; -import com.google.cloud.networksecurity.v1.AuthorizationPolicyName; +import com.google.cloud.networksecurity.v1.AddressGroupName; import com.google.cloud.networksecurity.v1.NetworkSecurityClient; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; @@ -40,7 +40,8 @@ public static void asyncSetIamPolicy() throws Exception { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() .setResource( - AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") .toString()) .setPolicy(Policy.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/setiampolicy/SyncSetIamPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/setiampolicy/SyncSetIamPolicy.java index ed50427262dd..01eab219be37 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/setiampolicy/SyncSetIamPolicy.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/setiampolicy/SyncSetIamPolicy.java @@ -17,7 +17,7 @@ package com.google.cloud.networksecurity.v1.samples; // [START networksecurity_v1_generated_NetworkSecurity_SetIamPolicy_sync] -import com.google.cloud.networksecurity.v1.AuthorizationPolicyName; +import com.google.cloud.networksecurity.v1.AddressGroupName; import com.google.cloud.networksecurity.v1.NetworkSecurityClient; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; @@ -39,7 +39,8 @@ public static void syncSetIamPolicy() throws Exception { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() .setResource( - AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") .toString()) .setPolicy(Policy.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/testiampermissions/AsyncTestIamPermissions.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/testiampermissions/AsyncTestIamPermissions.java index ad33da1d452f..a77190b0383f 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/testiampermissions/AsyncTestIamPermissions.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/testiampermissions/AsyncTestIamPermissions.java @@ -18,7 +18,7 @@ // [START networksecurity_v1_generated_NetworkSecurity_TestIamPermissions_async] import com.google.api.core.ApiFuture; -import com.google.cloud.networksecurity.v1.AuthorizationPolicyName; +import com.google.cloud.networksecurity.v1.AddressGroupName; import com.google.cloud.networksecurity.v1.NetworkSecurityClient; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; @@ -40,7 +40,8 @@ public static void asyncTestIamPermissions() throws Exception { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() .setResource( - AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") .toString()) .addAllPermissions(new ArrayList()) .build(); diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/testiampermissions/SyncTestIamPermissions.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/testiampermissions/SyncTestIamPermissions.java index 9f72d38675ed..bfce1ff1fc44 100644 --- a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/testiampermissions/SyncTestIamPermissions.java +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/networksecurity/testiampermissions/SyncTestIamPermissions.java @@ -17,7 +17,7 @@ package com.google.cloud.networksecurity.v1.samples; // [START networksecurity_v1_generated_NetworkSecurity_TestIamPermissions_sync] -import com.google.cloud.networksecurity.v1.AuthorizationPolicyName; +import com.google.cloud.networksecurity.v1.AddressGroupName; import com.google.cloud.networksecurity.v1.NetworkSecurityClient; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; @@ -39,7 +39,8 @@ public static void syncTestIamPermissions() throws Exception { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() .setResource( - AuthorizationPolicyName.of("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]") + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") .toString()) .addAllPermissions(new ArrayList()) .build(); diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/addaddressgroupitems/AsyncAddAddressGroupItems.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/addaddressgroupitems/AsyncAddAddressGroupItems.java new file mode 100644 index 000000000000..68ef6b93bef6 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/addaddressgroupitems/AsyncAddAddressGroupItems.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_AddAddressGroupItems_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; +import com.google.longrunning.Operation; +import java.util.ArrayList; + +public class AsyncAddAddressGroupItems { + + public static void main(String[] args) throws Exception { + asyncAddAddressGroupItems(); + } + + public static void asyncAddAddressGroupItems() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create()) { + AddAddressGroupItemsRequest request = + AddAddressGroupItemsRequest.newBuilder() + .setAddressGroup( + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .addAllItems(new ArrayList()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + organizationAddressGroupServiceClient.addAddressGroupItemsCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_AddAddressGroupItems_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/addaddressgroupitems/AsyncAddAddressGroupItemsLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/addaddressgroupitems/AsyncAddAddressGroupItemsLRO.java new file mode 100644 index 000000000000..ea9f6a1f60c5 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/addaddressgroupitems/AsyncAddAddressGroupItemsLRO.java @@ -0,0 +1,60 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_AddAddressGroupItems_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest; +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; +import java.util.ArrayList; + +public class AsyncAddAddressGroupItemsLRO { + + public static void main(String[] args) throws Exception { + asyncAddAddressGroupItemsLRO(); + } + + public static void asyncAddAddressGroupItemsLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create()) { + AddAddressGroupItemsRequest request = + AddAddressGroupItemsRequest.newBuilder() + .setAddressGroup( + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .addAllItems(new ArrayList()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + organizationAddressGroupServiceClient + .addAddressGroupItemsOperationCallable() + .futureCall(request); + // Do something. + AddressGroup response = future.get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_AddAddressGroupItems_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/addaddressgroupitems/SyncAddAddressGroupItems.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/addaddressgroupitems/SyncAddAddressGroupItems.java new file mode 100644 index 000000000000..d4f6ad14fdb1 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/addaddressgroupitems/SyncAddAddressGroupItems.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_AddAddressGroupItems_sync] +import com.google.cloud.networksecurity.v1.AddAddressGroupItemsRequest; +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; +import java.util.ArrayList; + +public class SyncAddAddressGroupItems { + + public static void main(String[] args) throws Exception { + syncAddAddressGroupItems(); + } + + public static void syncAddAddressGroupItems() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create()) { + AddAddressGroupItemsRequest request = + AddAddressGroupItemsRequest.newBuilder() + .setAddressGroup( + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .addAllItems(new ArrayList()) + .setRequestId("requestId693933066") + .build(); + AddressGroup response = + organizationAddressGroupServiceClient.addAddressGroupItemsAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_AddAddressGroupItems_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/addaddressgroupitems/SyncAddAddressGroupItemsAddressgroupnameListstring.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/addaddressgroupitems/SyncAddAddressGroupItemsAddressgroupnameListstring.java new file mode 100644 index 000000000000..698bca5af8fb --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/addaddressgroupitems/SyncAddAddressGroupItemsAddressgroupnameListstring.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_AddAddressGroupItems_AddressgroupnameListstring_sync] +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; +import java.util.ArrayList; +import java.util.List; + +public class SyncAddAddressGroupItemsAddressgroupnameListstring { + + public static void main(String[] args) throws Exception { + syncAddAddressGroupItemsAddressgroupnameListstring(); + } + + public static void syncAddAddressGroupItemsAddressgroupnameListstring() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create()) { + AddressGroupName addressGroup = + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]"); + List items = new ArrayList<>(); + AddressGroup response = + organizationAddressGroupServiceClient + .addAddressGroupItemsAsync(addressGroup, items) + .get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_AddAddressGroupItems_AddressgroupnameListstring_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/addaddressgroupitems/SyncAddAddressGroupItemsStringListstring.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/addaddressgroupitems/SyncAddAddressGroupItemsStringListstring.java new file mode 100644 index 000000000000..98df6d0067cf --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/addaddressgroupitems/SyncAddAddressGroupItemsStringListstring.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_AddAddressGroupItems_StringListstring_sync] +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; +import java.util.ArrayList; +import java.util.List; + +public class SyncAddAddressGroupItemsStringListstring { + + public static void main(String[] args) throws Exception { + syncAddAddressGroupItemsStringListstring(); + } + + public static void syncAddAddressGroupItemsStringListstring() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create()) { + String addressGroup = + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString(); + List items = new ArrayList<>(); + AddressGroup response = + organizationAddressGroupServiceClient + .addAddressGroupItemsAsync(addressGroup, items) + .get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_AddAddressGroupItems_StringListstring_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/cloneaddressgroupitems/AsyncCloneAddressGroupItems.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/cloneaddressgroupitems/AsyncCloneAddressGroupItems.java new file mode 100644 index 000000000000..59100f645f73 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/cloneaddressgroupitems/AsyncCloneAddressGroupItems.java @@ -0,0 +1,61 @@ +/* + * 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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_CloneAddressGroupItems_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; +import com.google.longrunning.Operation; + +public class AsyncCloneAddressGroupItems { + + public static void main(String[] args) throws Exception { + asyncCloneAddressGroupItems(); + } + + public static void asyncCloneAddressGroupItems() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create()) { + CloneAddressGroupItemsRequest request = + CloneAddressGroupItemsRequest.newBuilder() + .setAddressGroup( + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setSourceAddressGroup( + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + organizationAddressGroupServiceClient + .cloneAddressGroupItemsCallable() + .futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_CloneAddressGroupItems_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/cloneaddressgroupitems/AsyncCloneAddressGroupItemsLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/cloneaddressgroupitems/AsyncCloneAddressGroupItemsLRO.java new file mode 100644 index 000000000000..9513b0979ccf --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/cloneaddressgroupitems/AsyncCloneAddressGroupItemsLRO.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_CloneAddressGroupItems_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; + +public class AsyncCloneAddressGroupItemsLRO { + + public static void main(String[] args) throws Exception { + asyncCloneAddressGroupItemsLRO(); + } + + public static void asyncCloneAddressGroupItemsLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create()) { + CloneAddressGroupItemsRequest request = + CloneAddressGroupItemsRequest.newBuilder() + .setAddressGroup( + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setSourceAddressGroup( + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + organizationAddressGroupServiceClient + .cloneAddressGroupItemsOperationCallable() + .futureCall(request); + // Do something. + AddressGroup response = future.get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_CloneAddressGroupItems_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/cloneaddressgroupitems/SyncCloneAddressGroupItems.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/cloneaddressgroupitems/SyncCloneAddressGroupItems.java new file mode 100644 index 000000000000..4ddb802de23c --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/cloneaddressgroupitems/SyncCloneAddressGroupItems.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_CloneAddressGroupItems_sync] +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.CloneAddressGroupItemsRequest; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; + +public class SyncCloneAddressGroupItems { + + public static void main(String[] args) throws Exception { + syncCloneAddressGroupItems(); + } + + public static void syncCloneAddressGroupItems() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create()) { + CloneAddressGroupItemsRequest request = + CloneAddressGroupItemsRequest.newBuilder() + .setAddressGroup( + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setSourceAddressGroup( + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setRequestId("requestId693933066") + .build(); + AddressGroup response = + organizationAddressGroupServiceClient.cloneAddressGroupItemsAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_CloneAddressGroupItems_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/cloneaddressgroupitems/SyncCloneAddressGroupItemsAddressgroupnameAddressgroupname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/cloneaddressgroupitems/SyncCloneAddressGroupItemsAddressgroupnameAddressgroupname.java new file mode 100644 index 000000000000..11ccc5e36c70 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/cloneaddressgroupitems/SyncCloneAddressGroupItemsAddressgroupnameAddressgroupname.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_CloneAddressGroupItems_AddressgroupnameAddressgroupname_sync] +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; + +public class SyncCloneAddressGroupItemsAddressgroupnameAddressgroupname { + + public static void main(String[] args) throws Exception { + syncCloneAddressGroupItemsAddressgroupnameAddressgroupname(); + } + + public static void syncCloneAddressGroupItemsAddressgroupnameAddressgroupname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create()) { + AddressGroupName addressGroup = + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]"); + AddressGroupName sourceAddressGroup = + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]"); + AddressGroup response = + organizationAddressGroupServiceClient + .cloneAddressGroupItemsAsync(addressGroup, sourceAddressGroup) + .get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_CloneAddressGroupItems_AddressgroupnameAddressgroupname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/cloneaddressgroupitems/SyncCloneAddressGroupItemsAddressgroupnameString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/cloneaddressgroupitems/SyncCloneAddressGroupItemsAddressgroupnameString.java new file mode 100644 index 000000000000..ca94d660b2f1 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/cloneaddressgroupitems/SyncCloneAddressGroupItemsAddressgroupnameString.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_CloneAddressGroupItems_AddressgroupnameString_sync] +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; + +public class SyncCloneAddressGroupItemsAddressgroupnameString { + + public static void main(String[] args) throws Exception { + syncCloneAddressGroupItemsAddressgroupnameString(); + } + + public static void syncCloneAddressGroupItemsAddressgroupnameString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create()) { + AddressGroupName addressGroup = + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]"); + String sourceAddressGroup = + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString(); + AddressGroup response = + organizationAddressGroupServiceClient + .cloneAddressGroupItemsAsync(addressGroup, sourceAddressGroup) + .get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_CloneAddressGroupItems_AddressgroupnameString_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/cloneaddressgroupitems/SyncCloneAddressGroupItemsStringAddressgroupname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/cloneaddressgroupitems/SyncCloneAddressGroupItemsStringAddressgroupname.java new file mode 100644 index 000000000000..ea86dc167d17 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/cloneaddressgroupitems/SyncCloneAddressGroupItemsStringAddressgroupname.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_CloneAddressGroupItems_StringAddressgroupname_sync] +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; + +public class SyncCloneAddressGroupItemsStringAddressgroupname { + + public static void main(String[] args) throws Exception { + syncCloneAddressGroupItemsStringAddressgroupname(); + } + + public static void syncCloneAddressGroupItemsStringAddressgroupname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create()) { + String addressGroup = + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString(); + AddressGroupName sourceAddressGroup = + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]"); + AddressGroup response = + organizationAddressGroupServiceClient + .cloneAddressGroupItemsAsync(addressGroup, sourceAddressGroup) + .get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_CloneAddressGroupItems_StringAddressgroupname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/cloneaddressgroupitems/SyncCloneAddressGroupItemsStringString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/cloneaddressgroupitems/SyncCloneAddressGroupItemsStringString.java new file mode 100644 index 000000000000..9e6f21bea978 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/cloneaddressgroupitems/SyncCloneAddressGroupItemsStringString.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_CloneAddressGroupItems_StringString_sync] +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; + +public class SyncCloneAddressGroupItemsStringString { + + public static void main(String[] args) throws Exception { + syncCloneAddressGroupItemsStringString(); + } + + public static void syncCloneAddressGroupItemsStringString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create()) { + String addressGroup = + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString(); + String sourceAddressGroup = + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString(); + AddressGroup response = + organizationAddressGroupServiceClient + .cloneAddressGroupItemsAsync(addressGroup, sourceAddressGroup) + .get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_CloneAddressGroupItems_StringString_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/create/SyncCreateSetCredentialsProvider.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..0837ec9dcc76 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceSettings; +import com.google.cloud.networksecurity.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 + OrganizationAddressGroupServiceSettings organizationAddressGroupServiceSettings = + OrganizationAddressGroupServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create(organizationAddressGroupServiceSettings); + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_Create_SetCredentialsProvider_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/create/SyncCreateSetEndpoint.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..38f1cdfa4267 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_Create_SetEndpoint_sync] +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceSettings; +import com.google.cloud.networksecurity.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 + OrganizationAddressGroupServiceSettings organizationAddressGroupServiceSettings = + OrganizationAddressGroupServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create(organizationAddressGroupServiceSettings); + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_Create_SetEndpoint_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/createaddressgroup/AsyncCreateAddressGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/createaddressgroup/AsyncCreateAddressGroup.java new file mode 100644 index 000000000000..8ee5badf342c --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/createaddressgroup/AsyncCreateAddressGroup.java @@ -0,0 +1,55 @@ +/* + * 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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_CreateAddressGroup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.CreateAddressGroupRequest; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; +import com.google.longrunning.Operation; + +public class AsyncCreateAddressGroup { + + public static void main(String[] args) throws Exception { + asyncCreateAddressGroup(); + } + + public static void asyncCreateAddressGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create()) { + CreateAddressGroupRequest request = + CreateAddressGroupRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setAddressGroupId("addressGroupId705215846") + .setAddressGroup(AddressGroup.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + organizationAddressGroupServiceClient.createAddressGroupCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_CreateAddressGroup_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/createaddressgroup/AsyncCreateAddressGroupLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/createaddressgroup/AsyncCreateAddressGroupLRO.java new file mode 100644 index 000000000000..df073c14059f --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/createaddressgroup/AsyncCreateAddressGroupLRO.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_CreateAddressGroup_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.CreateAddressGroupRequest; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; + +public class AsyncCreateAddressGroupLRO { + + public static void main(String[] args) throws Exception { + asyncCreateAddressGroupLRO(); + } + + public static void asyncCreateAddressGroupLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create()) { + CreateAddressGroupRequest request = + CreateAddressGroupRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setAddressGroupId("addressGroupId705215846") + .setAddressGroup(AddressGroup.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + organizationAddressGroupServiceClient + .createAddressGroupOperationCallable() + .futureCall(request); + // Do something. + AddressGroup response = future.get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_CreateAddressGroup_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/createaddressgroup/SyncCreateAddressGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/createaddressgroup/SyncCreateAddressGroup.java new file mode 100644 index 000000000000..38d34c8825e8 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/createaddressgroup/SyncCreateAddressGroup.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_CreateAddressGroup_sync] +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.CreateAddressGroupRequest; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; + +public class SyncCreateAddressGroup { + + public static void main(String[] args) throws Exception { + syncCreateAddressGroup(); + } + + public static void syncCreateAddressGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create()) { + CreateAddressGroupRequest request = + CreateAddressGroupRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setAddressGroupId("addressGroupId705215846") + .setAddressGroup(AddressGroup.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + AddressGroup response = + organizationAddressGroupServiceClient.createAddressGroupAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_CreateAddressGroup_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/createaddressgroup/SyncCreateAddressGroupLocationnameAddressgroupString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/createaddressgroup/SyncCreateAddressGroupLocationnameAddressgroupString.java new file mode 100644 index 000000000000..9b2f06bb36ea --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/createaddressgroup/SyncCreateAddressGroupLocationnameAddressgroupString.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_CreateAddressGroup_LocationnameAddressgroupString_sync] +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; + +public class SyncCreateAddressGroupLocationnameAddressgroupString { + + public static void main(String[] args) throws Exception { + syncCreateAddressGroupLocationnameAddressgroupString(); + } + + public static void syncCreateAddressGroupLocationnameAddressgroupString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AddressGroup addressGroup = AddressGroup.newBuilder().build(); + String addressGroupId = "addressGroupId705215846"; + AddressGroup response = + organizationAddressGroupServiceClient + .createAddressGroupAsync(parent, addressGroup, addressGroupId) + .get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_CreateAddressGroup_LocationnameAddressgroupString_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/createaddressgroup/SyncCreateAddressGroupOrganizationlocationnameAddressgroupString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/createaddressgroup/SyncCreateAddressGroupOrganizationlocationnameAddressgroupString.java new file mode 100644 index 000000000000..fe7e72bc2cb1 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/createaddressgroup/SyncCreateAddressGroupOrganizationlocationnameAddressgroupString.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_CreateAddressGroup_OrganizationlocationnameAddressgroupString_sync] +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; +import com.google.cloud.networksecurity.v1.OrganizationLocationName; + +public class SyncCreateAddressGroupOrganizationlocationnameAddressgroupString { + + public static void main(String[] args) throws Exception { + syncCreateAddressGroupOrganizationlocationnameAddressgroupString(); + } + + public static void syncCreateAddressGroupOrganizationlocationnameAddressgroupString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create()) { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + AddressGroup addressGroup = AddressGroup.newBuilder().build(); + String addressGroupId = "addressGroupId705215846"; + AddressGroup response = + organizationAddressGroupServiceClient + .createAddressGroupAsync(parent, addressGroup, addressGroupId) + .get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_CreateAddressGroup_OrganizationlocationnameAddressgroupString_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/createaddressgroup/SyncCreateAddressGroupStringAddressgroupString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/createaddressgroup/SyncCreateAddressGroupStringAddressgroupString.java new file mode 100644 index 000000000000..240e9d5f8d61 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/createaddressgroup/SyncCreateAddressGroupStringAddressgroupString.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_CreateAddressGroup_StringAddressgroupString_sync] +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; + +public class SyncCreateAddressGroupStringAddressgroupString { + + public static void main(String[] args) throws Exception { + syncCreateAddressGroupStringAddressgroupString(); + } + + public static void syncCreateAddressGroupStringAddressgroupString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + AddressGroup addressGroup = AddressGroup.newBuilder().build(); + String addressGroupId = "addressGroupId705215846"; + AddressGroup response = + organizationAddressGroupServiceClient + .createAddressGroupAsync(parent, addressGroup, addressGroupId) + .get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_CreateAddressGroup_StringAddressgroupString_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/deleteaddressgroup/AsyncDeleteAddressGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/deleteaddressgroup/AsyncDeleteAddressGroup.java new file mode 100644 index 000000000000..1d9f3c8d6ef8 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/deleteaddressgroup/AsyncDeleteAddressGroup.java @@ -0,0 +1,55 @@ +/* + * 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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_DeleteAddressGroup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteAddressGroup { + + public static void main(String[] args) throws Exception { + asyncDeleteAddressGroup(); + } + + public static void asyncDeleteAddressGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create()) { + DeleteAddressGroupRequest request = + DeleteAddressGroupRequest.newBuilder() + .setName( + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + organizationAddressGroupServiceClient.deleteAddressGroupCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_DeleteAddressGroup_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/deleteaddressgroup/AsyncDeleteAddressGroupLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/deleteaddressgroup/AsyncDeleteAddressGroupLRO.java new file mode 100644 index 000000000000..f822a8bcb961 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/deleteaddressgroup/AsyncDeleteAddressGroupLRO.java @@ -0,0 +1,58 @@ +/* + * 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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_DeleteAddressGroup_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteAddressGroupLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteAddressGroupLRO(); + } + + public static void asyncDeleteAddressGroupLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create()) { + DeleteAddressGroupRequest request = + DeleteAddressGroupRequest.newBuilder() + .setName( + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + organizationAddressGroupServiceClient + .deleteAddressGroupOperationCallable() + .futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_DeleteAddressGroup_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/deleteaddressgroup/SyncDeleteAddressGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/deleteaddressgroup/SyncDeleteAddressGroup.java new file mode 100644 index 000000000000..dfdae7ecbb9b --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/deleteaddressgroup/SyncDeleteAddressGroup.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_DeleteAddressGroup_sync] +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.DeleteAddressGroupRequest; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteAddressGroup { + + public static void main(String[] args) throws Exception { + syncDeleteAddressGroup(); + } + + public static void syncDeleteAddressGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create()) { + DeleteAddressGroupRequest request = + DeleteAddressGroupRequest.newBuilder() + .setName( + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setRequestId("requestId693933066") + .build(); + organizationAddressGroupServiceClient.deleteAddressGroupAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_DeleteAddressGroup_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/deleteaddressgroup/SyncDeleteAddressGroupAddressgroupname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/deleteaddressgroup/SyncDeleteAddressGroupAddressgroupname.java new file mode 100644 index 000000000000..c095ebb67482 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/deleteaddressgroup/SyncDeleteAddressGroupAddressgroupname.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_DeleteAddressGroup_Addressgroupname_sync] +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteAddressGroupAddressgroupname { + + public static void main(String[] args) throws Exception { + syncDeleteAddressGroupAddressgroupname(); + } + + public static void syncDeleteAddressGroupAddressgroupname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create()) { + AddressGroupName name = + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]"); + organizationAddressGroupServiceClient.deleteAddressGroupAsync(name).get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_DeleteAddressGroup_Addressgroupname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/deleteaddressgroup/SyncDeleteAddressGroupString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/deleteaddressgroup/SyncDeleteAddressGroupString.java new file mode 100644 index 000000000000..74fe73f3d4b2 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/deleteaddressgroup/SyncDeleteAddressGroupString.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_DeleteAddressGroup_String_sync] +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteAddressGroupString { + + public static void main(String[] args) throws Exception { + syncDeleteAddressGroupString(); + } + + public static void syncDeleteAddressGroupString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create()) { + String name = + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString(); + organizationAddressGroupServiceClient.deleteAddressGroupAsync(name).get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_DeleteAddressGroup_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/getaddressgroup/AsyncGetAddressGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/getaddressgroup/AsyncGetAddressGroup.java new file mode 100644 index 000000000000..0b06cc6c20d6 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/getaddressgroup/AsyncGetAddressGroup.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_GetAddressGroup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.GetAddressGroupRequest; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; + +public class AsyncGetAddressGroup { + + public static void main(String[] args) throws Exception { + asyncGetAddressGroup(); + } + + public static void asyncGetAddressGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create()) { + GetAddressGroupRequest request = + GetAddressGroupRequest.newBuilder() + .setName( + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .build(); + ApiFuture future = + organizationAddressGroupServiceClient.getAddressGroupCallable().futureCall(request); + // Do something. + AddressGroup response = future.get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_GetAddressGroup_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/getaddressgroup/SyncGetAddressGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/getaddressgroup/SyncGetAddressGroup.java new file mode 100644 index 000000000000..88181e5192bf --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/getaddressgroup/SyncGetAddressGroup.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_GetAddressGroup_sync] +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.GetAddressGroupRequest; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; + +public class SyncGetAddressGroup { + + public static void main(String[] args) throws Exception { + syncGetAddressGroup(); + } + + public static void syncGetAddressGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create()) { + GetAddressGroupRequest request = + GetAddressGroupRequest.newBuilder() + .setName( + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .build(); + AddressGroup response = organizationAddressGroupServiceClient.getAddressGroup(request); + } + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_GetAddressGroup_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/getaddressgroup/SyncGetAddressGroupAddressgroupname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/getaddressgroup/SyncGetAddressGroupAddressgroupname.java new file mode 100644 index 000000000000..205f7bd00c25 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/getaddressgroup/SyncGetAddressGroupAddressgroupname.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_GetAddressGroup_Addressgroupname_sync] +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; + +public class SyncGetAddressGroupAddressgroupname { + + public static void main(String[] args) throws Exception { + syncGetAddressGroupAddressgroupname(); + } + + public static void syncGetAddressGroupAddressgroupname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create()) { + AddressGroupName name = + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]"); + AddressGroup response = organizationAddressGroupServiceClient.getAddressGroup(name); + } + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_GetAddressGroup_Addressgroupname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/getaddressgroup/SyncGetAddressGroupString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/getaddressgroup/SyncGetAddressGroupString.java new file mode 100644 index 000000000000..7350766e182b --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/getaddressgroup/SyncGetAddressGroupString.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_GetAddressGroup_String_sync] +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; + +public class SyncGetAddressGroupString { + + public static void main(String[] args) throws Exception { + syncGetAddressGroupString(); + } + + public static void syncGetAddressGroupString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create()) { + String name = + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString(); + AddressGroup response = organizationAddressGroupServiceClient.getAddressGroup(name); + } + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_GetAddressGroup_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/getiampolicy/AsyncGetIamPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/getiampolicy/AsyncGetIamPolicy.java new file mode 100644 index 000000000000..990e5b61f90e --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/getiampolicy/AsyncGetIamPolicy.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_GetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class AsyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncGetIamPolicy(); + } + + public static void asyncGetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + ApiFuture future = + organizationAddressGroupServiceClient.getIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_GetIamPolicy_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/getiampolicy/SyncGetIamPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/getiampolicy/SyncGetIamPolicy.java new file mode 100644 index 000000000000..14e73dd6bb09 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/getiampolicy/SyncGetIamPolicy.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_GetIamPolicy_sync] +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class SyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + syncGetIamPolicy(); + } + + public static void syncGetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + Policy response = organizationAddressGroupServiceClient.getIamPolicy(request); + } + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_GetIamPolicy_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/getlocation/AsyncGetLocation.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/getlocation/AsyncGetLocation.java new file mode 100644 index 000000000000..953fa54c1992 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/getlocation/AsyncGetLocation.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_GetLocation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; + +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 (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = + organizationAddressGroupServiceClient.getLocationCallable().futureCall(request); + // Do something. + Location response = future.get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_GetLocation_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/getlocation/SyncGetLocation.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/getlocation/SyncGetLocation.java new file mode 100644 index 000000000000..1913b770a472 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/getlocation/SyncGetLocation.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_GetLocation_sync] +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; + +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 (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + Location response = organizationAddressGroupServiceClient.getLocation(request); + } + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_GetLocation_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/listaddressgroupreferences/AsyncListAddressGroupReferences.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/listaddressgroupreferences/AsyncListAddressGroupReferences.java new file mode 100644 index 000000000000..79596dcce0e5 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/listaddressgroupreferences/AsyncListAddressGroupReferences.java @@ -0,0 +1,61 @@ +/* + * 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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_ListAddressGroupReferences_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest; +import com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; + +public class AsyncListAddressGroupReferences { + + public static void main(String[] args) throws Exception { + asyncListAddressGroupReferences(); + } + + public static void asyncListAddressGroupReferences() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create()) { + ListAddressGroupReferencesRequest request = + ListAddressGroupReferencesRequest.newBuilder() + .setAddressGroup( + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + organizationAddressGroupServiceClient + .listAddressGroupReferencesPagedCallable() + .futureCall(request); + // Do something. + for (ListAddressGroupReferencesResponse.AddressGroupReference element : + future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_ListAddressGroupReferences_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/listaddressgroupreferences/AsyncListAddressGroupReferencesPaged.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/listaddressgroupreferences/AsyncListAddressGroupReferencesPaged.java new file mode 100644 index 000000000000..4614fcab8134 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/listaddressgroupreferences/AsyncListAddressGroupReferencesPaged.java @@ -0,0 +1,68 @@ +/* + * 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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_ListAddressGroupReferences_Paged_async] +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest; +import com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; +import com.google.common.base.Strings; + +public class AsyncListAddressGroupReferencesPaged { + + public static void main(String[] args) throws Exception { + asyncListAddressGroupReferencesPaged(); + } + + public static void asyncListAddressGroupReferencesPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create()) { + ListAddressGroupReferencesRequest request = + ListAddressGroupReferencesRequest.newBuilder() + .setAddressGroup( + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListAddressGroupReferencesResponse response = + organizationAddressGroupServiceClient + .listAddressGroupReferencesCallable() + .call(request); + for (ListAddressGroupReferencesResponse.AddressGroupReference element : + response.getAddressGroupReferencesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_ListAddressGroupReferences_Paged_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/listaddressgroupreferences/SyncListAddressGroupReferences.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/listaddressgroupreferences/SyncListAddressGroupReferences.java new file mode 100644 index 000000000000..ee9906c1c622 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/listaddressgroupreferences/SyncListAddressGroupReferences.java @@ -0,0 +1,55 @@ +/* + * 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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_ListAddressGroupReferences_sync] +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.ListAddressGroupReferencesRequest; +import com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; + +public class SyncListAddressGroupReferences { + + public static void main(String[] args) throws Exception { + syncListAddressGroupReferences(); + } + + public static void syncListAddressGroupReferences() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create()) { + ListAddressGroupReferencesRequest request = + ListAddressGroupReferencesRequest.newBuilder() + .setAddressGroup( + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (ListAddressGroupReferencesResponse.AddressGroupReference element : + organizationAddressGroupServiceClient.listAddressGroupReferences(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_ListAddressGroupReferences_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/listaddressgroupreferences/SyncListAddressGroupReferencesAddressgroupname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/listaddressgroupreferences/SyncListAddressGroupReferencesAddressgroupname.java new file mode 100644 index 000000000000..2f3fdc684272 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/listaddressgroupreferences/SyncListAddressGroupReferencesAddressgroupname.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_ListAddressGroupReferences_Addressgroupname_sync] +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; + +public class SyncListAddressGroupReferencesAddressgroupname { + + public static void main(String[] args) throws Exception { + syncListAddressGroupReferencesAddressgroupname(); + } + + public static void syncListAddressGroupReferencesAddressgroupname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create()) { + AddressGroupName addressGroup = + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]"); + for (ListAddressGroupReferencesResponse.AddressGroupReference element : + organizationAddressGroupServiceClient + .listAddressGroupReferences(addressGroup) + .iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_ListAddressGroupReferences_Addressgroupname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/listaddressgroupreferences/SyncListAddressGroupReferencesString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/listaddressgroupreferences/SyncListAddressGroupReferencesString.java new file mode 100644 index 000000000000..9a3b7463b658 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/listaddressgroupreferences/SyncListAddressGroupReferencesString.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_ListAddressGroupReferences_String_sync] +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; + +public class SyncListAddressGroupReferencesString { + + public static void main(String[] args) throws Exception { + syncListAddressGroupReferencesString(); + } + + public static void syncListAddressGroupReferencesString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create()) { + String addressGroup = + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString(); + for (ListAddressGroupReferencesResponse.AddressGroupReference element : + organizationAddressGroupServiceClient + .listAddressGroupReferences(addressGroup) + .iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_ListAddressGroupReferences_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/listaddressgroups/AsyncListAddressGroups.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/listaddressgroups/AsyncListAddressGroups.java new file mode 100644 index 000000000000..0fbac378e7a8 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/listaddressgroups/AsyncListAddressGroups.java @@ -0,0 +1,58 @@ +/* + * 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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_ListAddressGroups_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.ListAddressGroupsRequest; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; + +public class AsyncListAddressGroups { + + public static void main(String[] args) throws Exception { + asyncListAddressGroups(); + } + + public static void asyncListAddressGroups() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create()) { + ListAddressGroupsRequest request = + ListAddressGroupsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setReturnPartialSuccess(true) + .build(); + ApiFuture future = + organizationAddressGroupServiceClient + .listAddressGroupsPagedCallable() + .futureCall(request); + // Do something. + for (AddressGroup element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_ListAddressGroups_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/listaddressgroups/AsyncListAddressGroupsPaged.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/listaddressgroups/AsyncListAddressGroupsPaged.java new file mode 100644 index 000000000000..f6490acc4e69 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/listaddressgroups/AsyncListAddressGroupsPaged.java @@ -0,0 +1,64 @@ +/* + * 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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_ListAddressGroups_Paged_async] +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.ListAddressGroupsRequest; +import com.google.cloud.networksecurity.v1.ListAddressGroupsResponse; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; +import com.google.common.base.Strings; + +public class AsyncListAddressGroupsPaged { + + public static void main(String[] args) throws Exception { + asyncListAddressGroupsPaged(); + } + + public static void asyncListAddressGroupsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create()) { + ListAddressGroupsRequest request = + ListAddressGroupsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setReturnPartialSuccess(true) + .build(); + while (true) { + ListAddressGroupsResponse response = + organizationAddressGroupServiceClient.listAddressGroupsCallable().call(request); + for (AddressGroup element : response.getAddressGroupsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_ListAddressGroups_Paged_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/listaddressgroups/SyncListAddressGroups.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/listaddressgroups/SyncListAddressGroups.java new file mode 100644 index 000000000000..7d33380302f4 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/listaddressgroups/SyncListAddressGroups.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_ListAddressGroups_sync] +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.ListAddressGroupsRequest; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; + +public class SyncListAddressGroups { + + public static void main(String[] args) throws Exception { + syncListAddressGroups(); + } + + public static void syncListAddressGroups() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create()) { + ListAddressGroupsRequest request = + ListAddressGroupsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setReturnPartialSuccess(true) + .build(); + for (AddressGroup element : + organizationAddressGroupServiceClient.listAddressGroups(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_ListAddressGroups_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/listaddressgroups/SyncListAddressGroupsLocationname.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/listaddressgroups/SyncListAddressGroupsLocationname.java new file mode 100644 index 000000000000..786fe404950e --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/listaddressgroups/SyncListAddressGroupsLocationname.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_ListAddressGroups_Locationname_sync] +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; + +public class SyncListAddressGroupsLocationname { + + public static void main(String[] args) throws Exception { + syncListAddressGroupsLocationname(); + } + + public static void syncListAddressGroupsLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (AddressGroup element : + organizationAddressGroupServiceClient.listAddressGroups(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_ListAddressGroups_Locationname_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/listaddressgroups/SyncListAddressGroupsString.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/listaddressgroups/SyncListAddressGroupsString.java new file mode 100644 index 000000000000..3a488498b390 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/listaddressgroups/SyncListAddressGroupsString.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_ListAddressGroups_String_sync] +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.LocationName; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; + +public class SyncListAddressGroupsString { + + public static void main(String[] args) throws Exception { + syncListAddressGroupsString(); + } + + public static void syncListAddressGroupsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (AddressGroup element : + organizationAddressGroupServiceClient.listAddressGroups(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_ListAddressGroups_String_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/listlocations/AsyncListLocations.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/listlocations/AsyncListLocations.java new file mode 100644 index 000000000000..24f482984b9b --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/listlocations/AsyncListLocations.java @@ -0,0 +1,55 @@ +/* + * 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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_ListLocations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; + +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 (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + organizationAddressGroupServiceClient.listLocationsPagedCallable().futureCall(request); + // Do something. + for (Location element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_ListLocations_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/listlocations/AsyncListLocationsPaged.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/listlocations/AsyncListLocationsPaged.java new file mode 100644 index 000000000000..04ae741ffe66 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/listlocations/AsyncListLocationsPaged.java @@ -0,0 +1,63 @@ +/* + * 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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_ListLocations_Paged_async] +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; +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 (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLocationsResponse response = + organizationAddressGroupServiceClient.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 networksecurity_v1_generated_OrganizationAddressGroupService_ListLocations_Paged_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/listlocations/SyncListLocations.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/listlocations/SyncListLocations.java new file mode 100644 index 000000000000..8bf12ef061d3 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/listlocations/SyncListLocations.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_ListLocations_sync] +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; + +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 (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Location element : + organizationAddressGroupServiceClient.listLocations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_ListLocations_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/removeaddressgroupitems/AsyncRemoveAddressGroupItems.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/removeaddressgroupitems/AsyncRemoveAddressGroupItems.java new file mode 100644 index 000000000000..39527de573fe --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/removeaddressgroupitems/AsyncRemoveAddressGroupItems.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_RemoveAddressGroupItems_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; +import com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest; +import com.google.longrunning.Operation; +import java.util.ArrayList; + +public class AsyncRemoveAddressGroupItems { + + public static void main(String[] args) throws Exception { + asyncRemoveAddressGroupItems(); + } + + public static void asyncRemoveAddressGroupItems() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create()) { + RemoveAddressGroupItemsRequest request = + RemoveAddressGroupItemsRequest.newBuilder() + .setAddressGroup( + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .addAllItems(new ArrayList()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + organizationAddressGroupServiceClient + .removeAddressGroupItemsCallable() + .futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_RemoveAddressGroupItems_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/removeaddressgroupitems/AsyncRemoveAddressGroupItemsLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/removeaddressgroupitems/AsyncRemoveAddressGroupItemsLRO.java new file mode 100644 index 000000000000..393e89c8e441 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/removeaddressgroupitems/AsyncRemoveAddressGroupItemsLRO.java @@ -0,0 +1,60 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_RemoveAddressGroupItems_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; +import com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest; +import java.util.ArrayList; + +public class AsyncRemoveAddressGroupItemsLRO { + + public static void main(String[] args) throws Exception { + asyncRemoveAddressGroupItemsLRO(); + } + + public static void asyncRemoveAddressGroupItemsLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create()) { + RemoveAddressGroupItemsRequest request = + RemoveAddressGroupItemsRequest.newBuilder() + .setAddressGroup( + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .addAllItems(new ArrayList()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + organizationAddressGroupServiceClient + .removeAddressGroupItemsOperationCallable() + .futureCall(request); + // Do something. + AddressGroup response = future.get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_RemoveAddressGroupItems_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/removeaddressgroupitems/SyncRemoveAddressGroupItems.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/removeaddressgroupitems/SyncRemoveAddressGroupItems.java new file mode 100644 index 000000000000..12805dea674e --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/removeaddressgroupitems/SyncRemoveAddressGroupItems.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_RemoveAddressGroupItems_sync] +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; +import com.google.cloud.networksecurity.v1.RemoveAddressGroupItemsRequest; +import java.util.ArrayList; + +public class SyncRemoveAddressGroupItems { + + public static void main(String[] args) throws Exception { + syncRemoveAddressGroupItems(); + } + + public static void syncRemoveAddressGroupItems() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create()) { + RemoveAddressGroupItemsRequest request = + RemoveAddressGroupItemsRequest.newBuilder() + .setAddressGroup( + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .addAllItems(new ArrayList()) + .setRequestId("requestId693933066") + .build(); + AddressGroup response = + organizationAddressGroupServiceClient.removeAddressGroupItemsAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_RemoveAddressGroupItems_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/removeaddressgroupitems/SyncRemoveAddressGroupItemsAddressgroupnameListstring.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/removeaddressgroupitems/SyncRemoveAddressGroupItemsAddressgroupnameListstring.java new file mode 100644 index 000000000000..8af3cac075df --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/removeaddressgroupitems/SyncRemoveAddressGroupItemsAddressgroupnameListstring.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_RemoveAddressGroupItems_AddressgroupnameListstring_sync] +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; +import java.util.ArrayList; +import java.util.List; + +public class SyncRemoveAddressGroupItemsAddressgroupnameListstring { + + public static void main(String[] args) throws Exception { + syncRemoveAddressGroupItemsAddressgroupnameListstring(); + } + + public static void syncRemoveAddressGroupItemsAddressgroupnameListstring() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create()) { + AddressGroupName addressGroup = + AddressGroupName.ofOrganizationLocationAddressGroupName( + "[ORGANIZATION]", "[LOCATION]", "[ADDRESS_GROUP]"); + List items = new ArrayList<>(); + AddressGroup response = + organizationAddressGroupServiceClient + .removeAddressGroupItemsAsync(addressGroup, items) + .get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_RemoveAddressGroupItems_AddressgroupnameListstring_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/removeaddressgroupitems/SyncRemoveAddressGroupItemsStringListstring.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/removeaddressgroupitems/SyncRemoveAddressGroupItemsStringListstring.java new file mode 100644 index 000000000000..5e4ad21fc12a --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/removeaddressgroupitems/SyncRemoveAddressGroupItemsStringListstring.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_RemoveAddressGroupItems_StringListstring_sync] +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; +import java.util.ArrayList; +import java.util.List; + +public class SyncRemoveAddressGroupItemsStringListstring { + + public static void main(String[] args) throws Exception { + syncRemoveAddressGroupItemsStringListstring(); + } + + public static void syncRemoveAddressGroupItemsStringListstring() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create()) { + String addressGroup = + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString(); + List items = new ArrayList<>(); + AddressGroup response = + organizationAddressGroupServiceClient + .removeAddressGroupItemsAsync(addressGroup, items) + .get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_RemoveAddressGroupItems_StringListstring_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/setiampolicy/AsyncSetIamPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/setiampolicy/AsyncSetIamPolicy.java new file mode 100644 index 000000000000..1642017b0e82 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/setiampolicy/AsyncSetIamPolicy.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_SetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class AsyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncSetIamPolicy(); + } + + public static void asyncSetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + organizationAddressGroupServiceClient.setIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_SetIamPolicy_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/setiampolicy/SyncSetIamPolicy.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/setiampolicy/SyncSetIamPolicy.java new file mode 100644 index 000000000000..b89b8990d64e --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/setiampolicy/SyncSetIamPolicy.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_SetIamPolicy_sync] +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class SyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicy(); + } + + public static void syncSetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Policy response = organizationAddressGroupServiceClient.setIamPolicy(request); + } + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_SetIamPolicy_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/testiampermissions/AsyncTestIamPermissions.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/testiampermissions/AsyncTestIamPermissions.java new file mode 100644 index 000000000000..f11e732409a2 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/testiampermissions/AsyncTestIamPermissions.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_TestIamPermissions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class AsyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + asyncTestIamPermissions(); + } + + public static void asyncTestIamPermissions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + ApiFuture future = + organizationAddressGroupServiceClient.testIamPermissionsCallable().futureCall(request); + // Do something. + TestIamPermissionsResponse response = future.get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_TestIamPermissions_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/testiampermissions/SyncTestIamPermissions.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/testiampermissions/SyncTestIamPermissions.java new file mode 100644 index 000000000000..63005ced9628 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/testiampermissions/SyncTestIamPermissions.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_TestIamPermissions_sync] +import com.google.cloud.networksecurity.v1.AddressGroupName; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class SyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + syncTestIamPermissions(); + } + + public static void syncTestIamPermissions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + AddressGroupName.ofProjectLocationAddressGroupName( + "[PROJECT]", "[LOCATION]", "[ADDRESS_GROUP]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + TestIamPermissionsResponse response = + organizationAddressGroupServiceClient.testIamPermissions(request); + } + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_TestIamPermissions_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/updateaddressgroup/AsyncUpdateAddressGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/updateaddressgroup/AsyncUpdateAddressGroup.java new file mode 100644 index 000000000000..fe716719b4a1 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/updateaddressgroup/AsyncUpdateAddressGroup.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_UpdateAddressGroup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; +import com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateAddressGroup { + + public static void main(String[] args) throws Exception { + asyncUpdateAddressGroup(); + } + + public static void asyncUpdateAddressGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create()) { + UpdateAddressGroupRequest request = + UpdateAddressGroupRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setAddressGroup(AddressGroup.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + organizationAddressGroupServiceClient.updateAddressGroupCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_UpdateAddressGroup_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/updateaddressgroup/AsyncUpdateAddressGroupLRO.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/updateaddressgroup/AsyncUpdateAddressGroupLRO.java new file mode 100644 index 000000000000..b99f7504d79e --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/updateaddressgroup/AsyncUpdateAddressGroupLRO.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_UpdateAddressGroup_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.OperationMetadata; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; +import com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateAddressGroupLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateAddressGroupLRO(); + } + + public static void asyncUpdateAddressGroupLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create()) { + UpdateAddressGroupRequest request = + UpdateAddressGroupRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setAddressGroup(AddressGroup.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + organizationAddressGroupServiceClient + .updateAddressGroupOperationCallable() + .futureCall(request); + // Do something. + AddressGroup response = future.get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_UpdateAddressGroup_LRO_async] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/updateaddressgroup/SyncUpdateAddressGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/updateaddressgroup/SyncUpdateAddressGroup.java new file mode 100644 index 000000000000..f5d76676f4c8 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/updateaddressgroup/SyncUpdateAddressGroup.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_UpdateAddressGroup_sync] +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; +import com.google.cloud.networksecurity.v1.UpdateAddressGroupRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateAddressGroup { + + public static void main(String[] args) throws Exception { + syncUpdateAddressGroup(); + } + + public static void syncUpdateAddressGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create()) { + UpdateAddressGroupRequest request = + UpdateAddressGroupRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setAddressGroup(AddressGroup.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + AddressGroup response = + organizationAddressGroupServiceClient.updateAddressGroupAsync(request).get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_UpdateAddressGroup_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/updateaddressgroup/SyncUpdateAddressGroupAddressgroupFieldmask.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/updateaddressgroup/SyncUpdateAddressGroupAddressgroupFieldmask.java new file mode 100644 index 000000000000..046708b33c47 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservice/updateaddressgroup/SyncUpdateAddressGroupAddressgroupFieldmask.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupService_UpdateAddressGroup_AddressgroupFieldmask_sync] +import com.google.cloud.networksecurity.v1.AddressGroup; +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateAddressGroupAddressgroupFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateAddressGroupAddressgroupFieldmask(); + } + + public static void syncUpdateAddressGroupAddressgroupFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OrganizationAddressGroupServiceClient organizationAddressGroupServiceClient = + OrganizationAddressGroupServiceClient.create()) { + AddressGroup addressGroup = AddressGroup.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + AddressGroup response = + organizationAddressGroupServiceClient + .updateAddressGroupAsync(addressGroup, updateMask) + .get(); + } + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupService_UpdateAddressGroup_AddressgroupFieldmask_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservicesettings/createaddressgroup/SyncCreateAddressGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservicesettings/createaddressgroup/SyncCreateAddressGroup.java new file mode 100644 index 000000000000..5f0880472f16 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservicesettings/createaddressgroup/SyncCreateAddressGroup.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupServiceSettings_CreateAddressGroup_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.networksecurity.v1.OrganizationAddressGroupServiceSettings; +import java.time.Duration; + +public class SyncCreateAddressGroup { + + public static void main(String[] args) throws Exception { + syncCreateAddressGroup(); + } + + public static void syncCreateAddressGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + OrganizationAddressGroupServiceSettings.Builder organizationAddressGroupServiceSettingsBuilder = + OrganizationAddressGroupServiceSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + organizationAddressGroupServiceSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupServiceSettings_CreateAddressGroup_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservicesettings/getaddressgroup/SyncGetAddressGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservicesettings/getaddressgroup/SyncGetAddressGroup.java new file mode 100644 index 000000000000..7e1bebcc46f3 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/organizationaddressgroupservicesettings/getaddressgroup/SyncGetAddressGroup.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.networksecurity.v1.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupServiceSettings_GetAddressGroup_sync] +import com.google.cloud.networksecurity.v1.OrganizationAddressGroupServiceSettings; +import java.time.Duration; + +public class SyncGetAddressGroup { + + public static void main(String[] args) throws Exception { + syncGetAddressGroup(); + } + + public static void syncGetAddressGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + OrganizationAddressGroupServiceSettings.Builder organizationAddressGroupServiceSettingsBuilder = + OrganizationAddressGroupServiceSettings.newBuilder(); + organizationAddressGroupServiceSettingsBuilder + .getAddressGroupSettings() + .setRetrySettings( + organizationAddressGroupServiceSettingsBuilder + .getAddressGroupSettings() + .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()); + OrganizationAddressGroupServiceSettings organizationAddressGroupServiceSettings = + organizationAddressGroupServiceSettingsBuilder.build(); + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupServiceSettings_GetAddressGroup_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/stub/addressgroupservicestubsettings/createaddressgroup/SyncCreateAddressGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/stub/addressgroupservicestubsettings/createaddressgroup/SyncCreateAddressGroup.java new file mode 100644 index 000000000000..f12b223eccf6 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/stub/addressgroupservicestubsettings/createaddressgroup/SyncCreateAddressGroup.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.networksecurity.v1.stub.samples; + +// [START networksecurity_v1_generated_AddressGroupServiceStubSettings_CreateAddressGroup_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.networksecurity.v1.stub.AddressGroupServiceStubSettings; +import java.time.Duration; + +public class SyncCreateAddressGroup { + + public static void main(String[] args) throws Exception { + syncCreateAddressGroup(); + } + + public static void syncCreateAddressGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AddressGroupServiceStubSettings.Builder addressGroupServiceSettingsBuilder = + AddressGroupServiceStubSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + addressGroupServiceSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END networksecurity_v1_generated_AddressGroupServiceStubSettings_CreateAddressGroup_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/stub/addressgroupservicestubsettings/getaddressgroup/SyncGetAddressGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/stub/addressgroupservicestubsettings/getaddressgroup/SyncGetAddressGroup.java new file mode 100644 index 000000000000..4d0d1e6f89c1 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/stub/addressgroupservicestubsettings/getaddressgroup/SyncGetAddressGroup.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.networksecurity.v1.stub.samples; + +// [START networksecurity_v1_generated_AddressGroupServiceStubSettings_GetAddressGroup_sync] +import com.google.cloud.networksecurity.v1.stub.AddressGroupServiceStubSettings; +import java.time.Duration; + +public class SyncGetAddressGroup { + + public static void main(String[] args) throws Exception { + syncGetAddressGroup(); + } + + public static void syncGetAddressGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AddressGroupServiceStubSettings.Builder addressGroupServiceSettingsBuilder = + AddressGroupServiceStubSettings.newBuilder(); + addressGroupServiceSettingsBuilder + .getAddressGroupSettings() + .setRetrySettings( + addressGroupServiceSettingsBuilder + .getAddressGroupSettings() + .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()); + AddressGroupServiceStubSettings addressGroupServiceSettings = + addressGroupServiceSettingsBuilder.build(); + } +} +// [END networksecurity_v1_generated_AddressGroupServiceStubSettings_GetAddressGroup_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/stub/organizationaddressgroupservicestubsettings/createaddressgroup/SyncCreateAddressGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/stub/organizationaddressgroupservicestubsettings/createaddressgroup/SyncCreateAddressGroup.java new file mode 100644 index 000000000000..91c1ed911cf7 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/stub/organizationaddressgroupservicestubsettings/createaddressgroup/SyncCreateAddressGroup.java @@ -0,0 +1,55 @@ +/* + * 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.networksecurity.v1.stub.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupServiceStubSettings_CreateAddressGroup_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.networksecurity.v1.stub.OrganizationAddressGroupServiceStubSettings; +import java.time.Duration; + +public class SyncCreateAddressGroup { + + public static void main(String[] args) throws Exception { + syncCreateAddressGroup(); + } + + public static void syncCreateAddressGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + OrganizationAddressGroupServiceStubSettings.Builder + organizationAddressGroupServiceSettingsBuilder = + OrganizationAddressGroupServiceStubSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + organizationAddressGroupServiceSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupServiceStubSettings_CreateAddressGroup_sync] diff --git a/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/stub/organizationaddressgroupservicestubsettings/getaddressgroup/SyncGetAddressGroup.java b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/stub/organizationaddressgroupservicestubsettings/getaddressgroup/SyncGetAddressGroup.java new file mode 100644 index 000000000000..d1cf19be25b3 --- /dev/null +++ b/java-network-security/samples/snippets/generated/com/google/cloud/networksecurity/v1/stub/organizationaddressgroupservicestubsettings/getaddressgroup/SyncGetAddressGroup.java @@ -0,0 +1,58 @@ +/* + * 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.networksecurity.v1.stub.samples; + +// [START networksecurity_v1_generated_OrganizationAddressGroupServiceStubSettings_GetAddressGroup_sync] +import com.google.cloud.networksecurity.v1.stub.OrganizationAddressGroupServiceStubSettings; +import java.time.Duration; + +public class SyncGetAddressGroup { + + public static void main(String[] args) throws Exception { + syncGetAddressGroup(); + } + + public static void syncGetAddressGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + OrganizationAddressGroupServiceStubSettings.Builder + organizationAddressGroupServiceSettingsBuilder = + OrganizationAddressGroupServiceStubSettings.newBuilder(); + organizationAddressGroupServiceSettingsBuilder + .getAddressGroupSettings() + .setRetrySettings( + organizationAddressGroupServiceSettingsBuilder + .getAddressGroupSettings() + .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()); + OrganizationAddressGroupServiceStubSettings organizationAddressGroupServiceSettings = + organizationAddressGroupServiceSettingsBuilder.build(); + } +} +// [END networksecurity_v1_generated_OrganizationAddressGroupServiceStubSettings_GetAddressGroup_sync] diff --git a/java-networkconnectivity/README.md b/java-networkconnectivity/README.md index 549e8fdc461b..ccaeaccf6b2c 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.66.0 + 26.67.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.71.0 + 1.72.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-networkconnectivity:1.71.0' +implementation 'com.google.cloud:google-cloud-networkconnectivity:1.72.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-networkconnectivity" % "1.71.0" +libraryDependencies += "com.google.cloud" % "google-cloud-networkconnectivity" % "1.72.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-networkconnectivity.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-networkconnectivity/1.71.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-networkconnectivity/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-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/DataTransferServiceClient.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/DataTransferServiceClient.java new file mode 100644 index 000000000000..09bc81142bac --- /dev/null +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/DataTransferServiceClient.java @@ -0,0 +1,3176 @@ +/* + * 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.networkconnectivity.v1; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networkconnectivity.v1.stub.DataTransferServiceStub; +import com.google.cloud.networkconnectivity.v1.stub.DataTransferServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.OperationsClient; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: DataTransferService is the service for the Data Transfer API. + * + *

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

    {@code
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    + * try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    + *   MulticloudDataTransferConfigName name =
    + *       MulticloudDataTransferConfigName.of(
    + *           "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]");
    + *   MulticloudDataTransferConfig response =
    + *       dataTransferServiceClient.getMulticloudDataTransferConfig(name);
    + * }
    + * }
    + * + *

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

    ListMulticloudDataTransferConfigs

    Lists the `MulticloudDataTransferConfig` resources in a specified project and location.

    + *

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

    + *
      + *
    • listMulticloudDataTransferConfigs(ListMulticloudDataTransferConfigsRequest request) + *

    + *

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

    + *
      + *
    • listMulticloudDataTransferConfigs(LocationName parent) + *

    • listMulticloudDataTransferConfigs(String parent) + *

    + *

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

    + *
      + *
    • listMulticloudDataTransferConfigsPagedCallable() + *

    • listMulticloudDataTransferConfigsCallable() + *

    + *

    GetMulticloudDataTransferConfig

    Gets the details of a `MulticloudDataTransferConfig` resource.

    + *

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

    + *
      + *
    • getMulticloudDataTransferConfig(GetMulticloudDataTransferConfigRequest request) + *

    + *

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

    + *
      + *
    • getMulticloudDataTransferConfig(MulticloudDataTransferConfigName name) + *

    • getMulticloudDataTransferConfig(String name) + *

    + *

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

    + *
      + *
    • getMulticloudDataTransferConfigCallable() + *

    + *

    CreateMulticloudDataTransferConfig

    Creates a `MulticloudDataTransferConfig` resource in a specified project and location.

    + *

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

    + *
      + *
    • createMulticloudDataTransferConfigAsync(CreateMulticloudDataTransferConfigRequest request) + *

    + *

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

    + *
      + *
    • createMulticloudDataTransferConfigAsync(LocationName parent, MulticloudDataTransferConfig multicloudDataTransferConfig, String multicloudDataTransferConfigId) + *

    • createMulticloudDataTransferConfigAsync(String parent, MulticloudDataTransferConfig multicloudDataTransferConfig, String multicloudDataTransferConfigId) + *

    + *

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

    + *
      + *
    • createMulticloudDataTransferConfigOperationCallable() + *

    • createMulticloudDataTransferConfigCallable() + *

    + *

    UpdateMulticloudDataTransferConfig

    Updates a `MulticloudDataTransferConfig` resource in a specified project and location.

    + *

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

    + *
      + *
    • updateMulticloudDataTransferConfigAsync(UpdateMulticloudDataTransferConfigRequest request) + *

    + *

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

    + *
      + *
    • updateMulticloudDataTransferConfigAsync(MulticloudDataTransferConfig multicloudDataTransferConfig, FieldMask updateMask) + *

    + *

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

    + *
      + *
    • updateMulticloudDataTransferConfigOperationCallable() + *

    • updateMulticloudDataTransferConfigCallable() + *

    + *

    DeleteMulticloudDataTransferConfig

    Deletes a `MulticloudDataTransferConfig` resource.

    + *

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

    + *
      + *
    • deleteMulticloudDataTransferConfigAsync(DeleteMulticloudDataTransferConfigRequest request) + *

    + *

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

    + *
      + *
    • deleteMulticloudDataTransferConfigAsync(MulticloudDataTransferConfigName name) + *

    • deleteMulticloudDataTransferConfigAsync(String name) + *

    + *

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

    + *
      + *
    • deleteMulticloudDataTransferConfigOperationCallable() + *

    • deleteMulticloudDataTransferConfigCallable() + *

    + *

    ListDestinations

    Lists the `Destination` resources in a specified project and location.

    + *

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

    + *
      + *
    • listDestinations(ListDestinationsRequest request) + *

    + *

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

    + *
      + *
    • listDestinations(MulticloudDataTransferConfigName parent) + *

    • listDestinations(String parent) + *

    + *

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

    + *
      + *
    • listDestinationsPagedCallable() + *

    • listDestinationsCallable() + *

    + *

    GetDestination

    Gets the details of a `Destination` resource.

    + *

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

    + *
      + *
    • getDestination(GetDestinationRequest request) + *

    + *

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

    + *
      + *
    • getDestination(DestinationName name) + *

    • getDestination(String name) + *

    + *

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

    + *
      + *
    • getDestinationCallable() + *

    + *

    CreateDestination

    Creates a `Destination` resource in a specified project and location.

    + *

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

    + *
      + *
    • createDestinationAsync(CreateDestinationRequest request) + *

    + *

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

    + *
      + *
    • createDestinationAsync(MulticloudDataTransferConfigName parent, Destination destination, String destinationId) + *

    • createDestinationAsync(String parent, Destination destination, String destinationId) + *

    + *

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

    + *
      + *
    • createDestinationOperationCallable() + *

    • createDestinationCallable() + *

    + *

    UpdateDestination

    Updates a `Destination` resource in a specified project and location.

    + *

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

    + *
      + *
    • updateDestinationAsync(UpdateDestinationRequest request) + *

    + *

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

    + *
      + *
    • updateDestinationAsync(Destination destination, FieldMask updateMask) + *

    + *

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

    + *
      + *
    • updateDestinationOperationCallable() + *

    • updateDestinationCallable() + *

    + *

    DeleteDestination

    Deletes a `Destination` resource.

    + *

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

    + *
      + *
    • deleteDestinationAsync(DeleteDestinationRequest request) + *

    + *

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

    + *
      + *
    • deleteDestinationAsync(DestinationName name) + *

    • deleteDestinationAsync(String name) + *

    + *

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

    + *
      + *
    • deleteDestinationOperationCallable() + *

    • deleteDestinationCallable() + *

    + *

    GetMulticloudDataTransferSupportedService

    Gets the details of a service that is supported for Data Transfer Essentials.

    + *

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

    + *
      + *
    • getMulticloudDataTransferSupportedService(GetMulticloudDataTransferSupportedServiceRequest request) + *

    + *

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

    + *
      + *
    • getMulticloudDataTransferSupportedService(MulticloudDataTransferSupportedServiceName name) + *

    • getMulticloudDataTransferSupportedService(String name) + *

    + *

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

    + *
      + *
    • getMulticloudDataTransferSupportedServiceCallable() + *

    + *

    ListMulticloudDataTransferSupportedServices

    Lists the services in the project for a region that are supported for Data Transfer Essentials.

    + *

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

    + *
      + *
    • listMulticloudDataTransferSupportedServices(ListMulticloudDataTransferSupportedServicesRequest request) + *

    + *

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

    + *
      + *
    • listMulticloudDataTransferSupportedServices(LocationName parent) + *

    • listMulticloudDataTransferSupportedServices(String parent) + *

    + *

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

    + *
      + *
    • listMulticloudDataTransferSupportedServicesPagedCallable() + *

    • listMulticloudDataTransferSupportedServicesCallable() + *

    + *

    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() + *

    + *

    SetIamPolicy

    Sets the access control policy on the specified resource. Replacesany existing policy. + *

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

    + *

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

    + *
      + *
    • setIamPolicy(SetIamPolicyRequest request) + *

    + *

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

    + *
      + *
    • setIamPolicyCallable() + *

    + *

    GetIamPolicy

    Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.

    + *

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

    + *
      + *
    • getIamPolicy(GetIamPolicyRequest request) + *

    + *

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

    + *
      + *
    • getIamPolicyCallable() + *

    + *

    TestIamPermissions

    Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error. + *

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

    + *

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

    + *
      + *
    • testIamPermissions(TestIamPermissionsRequest request) + *

    + *

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

    + *
      + *
    • testIamPermissionsCallable() + *

    + *
    + * + *

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

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

    This class can be customized by passing in a custom instance of DataTransferServiceSettings 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
    + * DataTransferServiceSettings dataTransferServiceSettings =
    + *     DataTransferServiceSettings.newBuilder()
    + *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
    + *         .build();
    + * DataTransferServiceClient dataTransferServiceClient =
    + *     DataTransferServiceClient.create(dataTransferServiceSettings);
    + * }
    + * + *

    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
    + * DataTransferServiceSettings dataTransferServiceSettings =
    + *     DataTransferServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
    + * DataTransferServiceClient dataTransferServiceClient =
    + *     DataTransferServiceClient.create(dataTransferServiceSettings);
    + * }
    + * + *

    Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class DataTransferServiceClient implements BackgroundResource { + private final DataTransferServiceSettings settings; + private final DataTransferServiceStub stub; + private final OperationsClient operationsClient; + + /** Constructs an instance of DataTransferServiceClient with default settings. */ + public static final DataTransferServiceClient create() throws IOException { + return create(DataTransferServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of DataTransferServiceClient, 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 DataTransferServiceClient create(DataTransferServiceSettings settings) + throws IOException { + return new DataTransferServiceClient(settings); + } + + /** + * Constructs an instance of DataTransferServiceClient, using the given stub for making calls. + * This is for advanced usage - prefer using create(DataTransferServiceSettings). + */ + public static final DataTransferServiceClient create(DataTransferServiceStub stub) { + return new DataTransferServiceClient(stub); + } + + /** + * Constructs an instance of DataTransferServiceClient, 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 DataTransferServiceClient(DataTransferServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((DataTransferServiceStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + protected DataTransferServiceClient(DataTransferServiceStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + public final DataTransferServiceSettings getSettings() { + return settings; + } + + public DataTransferServiceStub 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 OperationsClient getOperationsClient() { + return operationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the `MulticloudDataTransferConfig` resources in a specified project and location. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    +   *   for (MulticloudDataTransferConfig element :
    +   *       dataTransferServiceClient.listMulticloudDataTransferConfigs(parent).iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + * + * @param parent Required. The name of the parent resource. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListMulticloudDataTransferConfigsPagedResponse listMulticloudDataTransferConfigs( + LocationName parent) { + ListMulticloudDataTransferConfigsRequest request = + ListMulticloudDataTransferConfigsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listMulticloudDataTransferConfigs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the `MulticloudDataTransferConfig` resources in a specified project and location. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    +   *   for (MulticloudDataTransferConfig element :
    +   *       dataTransferServiceClient.listMulticloudDataTransferConfigs(parent).iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + * + * @param parent Required. The name of the parent resource. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListMulticloudDataTransferConfigsPagedResponse listMulticloudDataTransferConfigs( + String parent) { + ListMulticloudDataTransferConfigsRequest request = + ListMulticloudDataTransferConfigsRequest.newBuilder().setParent(parent).build(); + return listMulticloudDataTransferConfigs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the `MulticloudDataTransferConfig` resources in a specified project and location. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   ListMulticloudDataTransferConfigsRequest request =
    +   *       ListMulticloudDataTransferConfigsRequest.newBuilder()
    +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .setFilter("filter-1274492040")
    +   *           .setOrderBy("orderBy-1207110587")
    +   *           .setReturnPartialSuccess(true)
    +   *           .build();
    +   *   for (MulticloudDataTransferConfig element :
    +   *       dataTransferServiceClient.listMulticloudDataTransferConfigs(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 ListMulticloudDataTransferConfigsPagedResponse listMulticloudDataTransferConfigs( + ListMulticloudDataTransferConfigsRequest request) { + return listMulticloudDataTransferConfigsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the `MulticloudDataTransferConfig` resources in a specified project and location. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   ListMulticloudDataTransferConfigsRequest request =
    +   *       ListMulticloudDataTransferConfigsRequest.newBuilder()
    +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .setFilter("filter-1274492040")
    +   *           .setOrderBy("orderBy-1207110587")
    +   *           .setReturnPartialSuccess(true)
    +   *           .build();
    +   *   ApiFuture future =
    +   *       dataTransferServiceClient
    +   *           .listMulticloudDataTransferConfigsPagedCallable()
    +   *           .futureCall(request);
    +   *   // Do something.
    +   *   for (MulticloudDataTransferConfig element : future.get().iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + */ + public final UnaryCallable< + ListMulticloudDataTransferConfigsRequest, ListMulticloudDataTransferConfigsPagedResponse> + listMulticloudDataTransferConfigsPagedCallable() { + return stub.listMulticloudDataTransferConfigsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the `MulticloudDataTransferConfig` resources in a specified project and location. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   ListMulticloudDataTransferConfigsRequest request =
    +   *       ListMulticloudDataTransferConfigsRequest.newBuilder()
    +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .setFilter("filter-1274492040")
    +   *           .setOrderBy("orderBy-1207110587")
    +   *           .setReturnPartialSuccess(true)
    +   *           .build();
    +   *   while (true) {
    +   *     ListMulticloudDataTransferConfigsResponse response =
    +   *         dataTransferServiceClient.listMulticloudDataTransferConfigsCallable().call(request);
    +   *     for (MulticloudDataTransferConfig element :
    +   *         response.getMulticloudDataTransferConfigsList()) {
    +   *       // doThingsWith(element);
    +   *     }
    +   *     String nextPageToken = response.getNextPageToken();
    +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
    +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
    +   *     } else {
    +   *       break;
    +   *     }
    +   *   }
    +   * }
    +   * }
    + */ + public final UnaryCallable< + ListMulticloudDataTransferConfigsRequest, ListMulticloudDataTransferConfigsResponse> + listMulticloudDataTransferConfigsCallable() { + return stub.listMulticloudDataTransferConfigsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a `MulticloudDataTransferConfig` 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 (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   MulticloudDataTransferConfigName name =
    +   *       MulticloudDataTransferConfigName.of(
    +   *           "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]");
    +   *   MulticloudDataTransferConfig response =
    +   *       dataTransferServiceClient.getMulticloudDataTransferConfig(name);
    +   * }
    +   * }
    + * + * @param name Required. The name of the `MulticloudDataTransferConfig` resource to get. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MulticloudDataTransferConfig getMulticloudDataTransferConfig( + MulticloudDataTransferConfigName name) { + GetMulticloudDataTransferConfigRequest request = + GetMulticloudDataTransferConfigRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getMulticloudDataTransferConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a `MulticloudDataTransferConfig` 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 (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   String name =
    +   *       MulticloudDataTransferConfigName.of(
    +   *               "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]")
    +   *           .toString();
    +   *   MulticloudDataTransferConfig response =
    +   *       dataTransferServiceClient.getMulticloudDataTransferConfig(name);
    +   * }
    +   * }
    + * + * @param name Required. The name of the `MulticloudDataTransferConfig` resource to get. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MulticloudDataTransferConfig getMulticloudDataTransferConfig(String name) { + GetMulticloudDataTransferConfigRequest request = + GetMulticloudDataTransferConfigRequest.newBuilder().setName(name).build(); + return getMulticloudDataTransferConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a `MulticloudDataTransferConfig` 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 (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   GetMulticloudDataTransferConfigRequest request =
    +   *       GetMulticloudDataTransferConfigRequest.newBuilder()
    +   *           .setName(
    +   *               MulticloudDataTransferConfigName.of(
    +   *                       "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]")
    +   *                   .toString())
    +   *           .build();
    +   *   MulticloudDataTransferConfig response =
    +   *       dataTransferServiceClient.getMulticloudDataTransferConfig(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 MulticloudDataTransferConfig getMulticloudDataTransferConfig( + GetMulticloudDataTransferConfigRequest request) { + return getMulticloudDataTransferConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a `MulticloudDataTransferConfig` 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 (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   GetMulticloudDataTransferConfigRequest request =
    +   *       GetMulticloudDataTransferConfigRequest.newBuilder()
    +   *           .setName(
    +   *               MulticloudDataTransferConfigName.of(
    +   *                       "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]")
    +   *                   .toString())
    +   *           .build();
    +   *   ApiFuture future =
    +   *       dataTransferServiceClient.getMulticloudDataTransferConfigCallable().futureCall(request);
    +   *   // Do something.
    +   *   MulticloudDataTransferConfig response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable + getMulticloudDataTransferConfigCallable() { + return stub.getMulticloudDataTransferConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a `MulticloudDataTransferConfig` resource in a specified project and location. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    +   *   MulticloudDataTransferConfig multicloudDataTransferConfig =
    +   *       MulticloudDataTransferConfig.newBuilder().build();
    +   *   String multicloudDataTransferConfigId = "multicloudDataTransferConfigId-1067608178";
    +   *   MulticloudDataTransferConfig response =
    +   *       dataTransferServiceClient
    +   *           .createMulticloudDataTransferConfigAsync(
    +   *               parent, multicloudDataTransferConfig, multicloudDataTransferConfigId)
    +   *           .get();
    +   * }
    +   * }
    + * + * @param parent Required. The name of the parent resource. + * @param multicloudDataTransferConfig Required. The `MulticloudDataTransferConfig` resource to + * create. + * @param multicloudDataTransferConfigId Required. The ID to use for the + * `MulticloudDataTransferConfig` resource, which becomes the final component of the + * `MulticloudDataTransferConfig` resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createMulticloudDataTransferConfigAsync( + LocationName parent, + MulticloudDataTransferConfig multicloudDataTransferConfig, + String multicloudDataTransferConfigId) { + CreateMulticloudDataTransferConfigRequest request = + CreateMulticloudDataTransferConfigRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setMulticloudDataTransferConfig(multicloudDataTransferConfig) + .setMulticloudDataTransferConfigId(multicloudDataTransferConfigId) + .build(); + return createMulticloudDataTransferConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a `MulticloudDataTransferConfig` resource in a specified project and location. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    +   *   MulticloudDataTransferConfig multicloudDataTransferConfig =
    +   *       MulticloudDataTransferConfig.newBuilder().build();
    +   *   String multicloudDataTransferConfigId = "multicloudDataTransferConfigId-1067608178";
    +   *   MulticloudDataTransferConfig response =
    +   *       dataTransferServiceClient
    +   *           .createMulticloudDataTransferConfigAsync(
    +   *               parent, multicloudDataTransferConfig, multicloudDataTransferConfigId)
    +   *           .get();
    +   * }
    +   * }
    + * + * @param parent Required. The name of the parent resource. + * @param multicloudDataTransferConfig Required. The `MulticloudDataTransferConfig` resource to + * create. + * @param multicloudDataTransferConfigId Required. The ID to use for the + * `MulticloudDataTransferConfig` resource, which becomes the final component of the + * `MulticloudDataTransferConfig` resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createMulticloudDataTransferConfigAsync( + String parent, + MulticloudDataTransferConfig multicloudDataTransferConfig, + String multicloudDataTransferConfigId) { + CreateMulticloudDataTransferConfigRequest request = + CreateMulticloudDataTransferConfigRequest.newBuilder() + .setParent(parent) + .setMulticloudDataTransferConfig(multicloudDataTransferConfig) + .setMulticloudDataTransferConfigId(multicloudDataTransferConfigId) + .build(); + return createMulticloudDataTransferConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a `MulticloudDataTransferConfig` resource in a specified project and location. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   CreateMulticloudDataTransferConfigRequest request =
    +   *       CreateMulticloudDataTransferConfigRequest.newBuilder()
    +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    +   *           .setMulticloudDataTransferConfigId("multicloudDataTransferConfigId-1067608178")
    +   *           .setMulticloudDataTransferConfig(MulticloudDataTransferConfig.newBuilder().build())
    +   *           .setRequestId("requestId693933066")
    +   *           .build();
    +   *   MulticloudDataTransferConfig response =
    +   *       dataTransferServiceClient.createMulticloudDataTransferConfigAsync(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 + createMulticloudDataTransferConfigAsync(CreateMulticloudDataTransferConfigRequest request) { + return createMulticloudDataTransferConfigOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a `MulticloudDataTransferConfig` resource in a specified project and location. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   CreateMulticloudDataTransferConfigRequest request =
    +   *       CreateMulticloudDataTransferConfigRequest.newBuilder()
    +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    +   *           .setMulticloudDataTransferConfigId("multicloudDataTransferConfigId-1067608178")
    +   *           .setMulticloudDataTransferConfig(MulticloudDataTransferConfig.newBuilder().build())
    +   *           .setRequestId("requestId693933066")
    +   *           .build();
    +   *   OperationFuture future =
    +   *       dataTransferServiceClient
    +   *           .createMulticloudDataTransferConfigOperationCallable()
    +   *           .futureCall(request);
    +   *   // Do something.
    +   *   MulticloudDataTransferConfig response = future.get();
    +   * }
    +   * }
    + */ + public final OperationCallable< + CreateMulticloudDataTransferConfigRequest, + MulticloudDataTransferConfig, + OperationMetadata> + createMulticloudDataTransferConfigOperationCallable() { + return stub.createMulticloudDataTransferConfigOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a `MulticloudDataTransferConfig` resource in a specified project and location. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   CreateMulticloudDataTransferConfigRequest request =
    +   *       CreateMulticloudDataTransferConfigRequest.newBuilder()
    +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    +   *           .setMulticloudDataTransferConfigId("multicloudDataTransferConfigId-1067608178")
    +   *           .setMulticloudDataTransferConfig(MulticloudDataTransferConfig.newBuilder().build())
    +   *           .setRequestId("requestId693933066")
    +   *           .build();
    +   *   ApiFuture future =
    +   *       dataTransferServiceClient
    +   *           .createMulticloudDataTransferConfigCallable()
    +   *           .futureCall(request);
    +   *   // Do something.
    +   *   Operation response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable + createMulticloudDataTransferConfigCallable() { + return stub.createMulticloudDataTransferConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a `MulticloudDataTransferConfig` resource in a specified project and location. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   MulticloudDataTransferConfig multicloudDataTransferConfig =
    +   *       MulticloudDataTransferConfig.newBuilder().build();
    +   *   FieldMask updateMask = FieldMask.newBuilder().build();
    +   *   MulticloudDataTransferConfig response =
    +   *       dataTransferServiceClient
    +   *           .updateMulticloudDataTransferConfigAsync(multicloudDataTransferConfig, updateMask)
    +   *           .get();
    +   * }
    +   * }
    + * + * @param multicloudDataTransferConfig Required. The `MulticloudDataTransferConfig` resource to + * update. + * @param updateMask Optional. `FieldMask` is used to specify the fields in the + * `MulticloudDataTransferConfig` resource to be overwritten by the update. The fields + * specified in `update_mask` are relative to the resource, not the full request. A field is + * overwritten if it is in the mask. If you don't specify a mask, all fields are overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + updateMulticloudDataTransferConfigAsync( + MulticloudDataTransferConfig multicloudDataTransferConfig, FieldMask updateMask) { + UpdateMulticloudDataTransferConfigRequest request = + UpdateMulticloudDataTransferConfigRequest.newBuilder() + .setMulticloudDataTransferConfig(multicloudDataTransferConfig) + .setUpdateMask(updateMask) + .build(); + return updateMulticloudDataTransferConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a `MulticloudDataTransferConfig` resource in a specified project and location. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   UpdateMulticloudDataTransferConfigRequest request =
    +   *       UpdateMulticloudDataTransferConfigRequest.newBuilder()
    +   *           .setUpdateMask(FieldMask.newBuilder().build())
    +   *           .setMulticloudDataTransferConfig(MulticloudDataTransferConfig.newBuilder().build())
    +   *           .setRequestId("requestId693933066")
    +   *           .build();
    +   *   MulticloudDataTransferConfig response =
    +   *       dataTransferServiceClient.updateMulticloudDataTransferConfigAsync(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 + updateMulticloudDataTransferConfigAsync(UpdateMulticloudDataTransferConfigRequest request) { + return updateMulticloudDataTransferConfigOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a `MulticloudDataTransferConfig` resource in a specified project and location. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   UpdateMulticloudDataTransferConfigRequest request =
    +   *       UpdateMulticloudDataTransferConfigRequest.newBuilder()
    +   *           .setUpdateMask(FieldMask.newBuilder().build())
    +   *           .setMulticloudDataTransferConfig(MulticloudDataTransferConfig.newBuilder().build())
    +   *           .setRequestId("requestId693933066")
    +   *           .build();
    +   *   OperationFuture future =
    +   *       dataTransferServiceClient
    +   *           .updateMulticloudDataTransferConfigOperationCallable()
    +   *           .futureCall(request);
    +   *   // Do something.
    +   *   MulticloudDataTransferConfig response = future.get();
    +   * }
    +   * }
    + */ + public final OperationCallable< + UpdateMulticloudDataTransferConfigRequest, + MulticloudDataTransferConfig, + OperationMetadata> + updateMulticloudDataTransferConfigOperationCallable() { + return stub.updateMulticloudDataTransferConfigOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a `MulticloudDataTransferConfig` resource in a specified project and location. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   UpdateMulticloudDataTransferConfigRequest request =
    +   *       UpdateMulticloudDataTransferConfigRequest.newBuilder()
    +   *           .setUpdateMask(FieldMask.newBuilder().build())
    +   *           .setMulticloudDataTransferConfig(MulticloudDataTransferConfig.newBuilder().build())
    +   *           .setRequestId("requestId693933066")
    +   *           .build();
    +   *   ApiFuture future =
    +   *       dataTransferServiceClient
    +   *           .updateMulticloudDataTransferConfigCallable()
    +   *           .futureCall(request);
    +   *   // Do something.
    +   *   Operation response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable + updateMulticloudDataTransferConfigCallable() { + return stub.updateMulticloudDataTransferConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a `MulticloudDataTransferConfig` 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 (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   MulticloudDataTransferConfigName name =
    +   *       MulticloudDataTransferConfigName.of(
    +   *           "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]");
    +   *   dataTransferServiceClient.deleteMulticloudDataTransferConfigAsync(name).get();
    +   * }
    +   * }
    + * + * @param name Required. The name of the `MulticloudDataTransferConfig` resource to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteMulticloudDataTransferConfigAsync( + MulticloudDataTransferConfigName name) { + DeleteMulticloudDataTransferConfigRequest request = + DeleteMulticloudDataTransferConfigRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteMulticloudDataTransferConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a `MulticloudDataTransferConfig` 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 (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   String name =
    +   *       MulticloudDataTransferConfigName.of(
    +   *               "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]")
    +   *           .toString();
    +   *   dataTransferServiceClient.deleteMulticloudDataTransferConfigAsync(name).get();
    +   * }
    +   * }
    + * + * @param name Required. The name of the `MulticloudDataTransferConfig` resource to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteMulticloudDataTransferConfigAsync( + String name) { + DeleteMulticloudDataTransferConfigRequest request = + DeleteMulticloudDataTransferConfigRequest.newBuilder().setName(name).build(); + return deleteMulticloudDataTransferConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a `MulticloudDataTransferConfig` 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 (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   DeleteMulticloudDataTransferConfigRequest request =
    +   *       DeleteMulticloudDataTransferConfigRequest.newBuilder()
    +   *           .setName(
    +   *               MulticloudDataTransferConfigName.of(
    +   *                       "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]")
    +   *                   .toString())
    +   *           .setRequestId("requestId693933066")
    +   *           .setEtag("etag3123477")
    +   *           .build();
    +   *   dataTransferServiceClient.deleteMulticloudDataTransferConfigAsync(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 deleteMulticloudDataTransferConfigAsync( + DeleteMulticloudDataTransferConfigRequest request) { + return deleteMulticloudDataTransferConfigOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a `MulticloudDataTransferConfig` 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 (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   DeleteMulticloudDataTransferConfigRequest request =
    +   *       DeleteMulticloudDataTransferConfigRequest.newBuilder()
    +   *           .setName(
    +   *               MulticloudDataTransferConfigName.of(
    +   *                       "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]")
    +   *                   .toString())
    +   *           .setRequestId("requestId693933066")
    +   *           .setEtag("etag3123477")
    +   *           .build();
    +   *   OperationFuture future =
    +   *       dataTransferServiceClient
    +   *           .deleteMulticloudDataTransferConfigOperationCallable()
    +   *           .futureCall(request);
    +   *   // Do something.
    +   *   future.get();
    +   * }
    +   * }
    + */ + public final OperationCallable< + DeleteMulticloudDataTransferConfigRequest, Empty, OperationMetadata> + deleteMulticloudDataTransferConfigOperationCallable() { + return stub.deleteMulticloudDataTransferConfigOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a `MulticloudDataTransferConfig` 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 (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   DeleteMulticloudDataTransferConfigRequest request =
    +   *       DeleteMulticloudDataTransferConfigRequest.newBuilder()
    +   *           .setName(
    +   *               MulticloudDataTransferConfigName.of(
    +   *                       "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]")
    +   *                   .toString())
    +   *           .setRequestId("requestId693933066")
    +   *           .setEtag("etag3123477")
    +   *           .build();
    +   *   ApiFuture future =
    +   *       dataTransferServiceClient
    +   *           .deleteMulticloudDataTransferConfigCallable()
    +   *           .futureCall(request);
    +   *   // Do something.
    +   *   future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable + deleteMulticloudDataTransferConfigCallable() { + return stub.deleteMulticloudDataTransferConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the `Destination` resources in a specified project and location. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   MulticloudDataTransferConfigName parent =
    +   *       MulticloudDataTransferConfigName.of(
    +   *           "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]");
    +   *   for (Destination element : dataTransferServiceClient.listDestinations(parent).iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + * + * @param parent Required. The name of the parent resource. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDestinationsPagedResponse listDestinations( + MulticloudDataTransferConfigName parent) { + ListDestinationsRequest request = + ListDestinationsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listDestinations(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the `Destination` resources in a specified project and location. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   String parent =
    +   *       MulticloudDataTransferConfigName.of(
    +   *               "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]")
    +   *           .toString();
    +   *   for (Destination element : dataTransferServiceClient.listDestinations(parent).iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + * + * @param parent Required. The name of the parent resource. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDestinationsPagedResponse listDestinations(String parent) { + ListDestinationsRequest request = + ListDestinationsRequest.newBuilder().setParent(parent).build(); + return listDestinations(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the `Destination` resources in a specified project and location. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   ListDestinationsRequest request =
    +   *       ListDestinationsRequest.newBuilder()
    +   *           .setParent(
    +   *               MulticloudDataTransferConfigName.of(
    +   *                       "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]")
    +   *                   .toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .setFilter("filter-1274492040")
    +   *           .setOrderBy("orderBy-1207110587")
    +   *           .setReturnPartialSuccess(true)
    +   *           .build();
    +   *   for (Destination element : dataTransferServiceClient.listDestinations(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 ListDestinationsPagedResponse listDestinations(ListDestinationsRequest request) { + return listDestinationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the `Destination` resources in a specified project and location. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   ListDestinationsRequest request =
    +   *       ListDestinationsRequest.newBuilder()
    +   *           .setParent(
    +   *               MulticloudDataTransferConfigName.of(
    +   *                       "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]")
    +   *                   .toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .setFilter("filter-1274492040")
    +   *           .setOrderBy("orderBy-1207110587")
    +   *           .setReturnPartialSuccess(true)
    +   *           .build();
    +   *   ApiFuture future =
    +   *       dataTransferServiceClient.listDestinationsPagedCallable().futureCall(request);
    +   *   // Do something.
    +   *   for (Destination element : future.get().iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + */ + public final UnaryCallable + listDestinationsPagedCallable() { + return stub.listDestinationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the `Destination` resources in a specified project and location. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   ListDestinationsRequest request =
    +   *       ListDestinationsRequest.newBuilder()
    +   *           .setParent(
    +   *               MulticloudDataTransferConfigName.of(
    +   *                       "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]")
    +   *                   .toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .setFilter("filter-1274492040")
    +   *           .setOrderBy("orderBy-1207110587")
    +   *           .setReturnPartialSuccess(true)
    +   *           .build();
    +   *   while (true) {
    +   *     ListDestinationsResponse response =
    +   *         dataTransferServiceClient.listDestinationsCallable().call(request);
    +   *     for (Destination element : response.getDestinationsList()) {
    +   *       // doThingsWith(element);
    +   *     }
    +   *     String nextPageToken = response.getNextPageToken();
    +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
    +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
    +   *     } else {
    +   *       break;
    +   *     }
    +   *   }
    +   * }
    +   * }
    + */ + public final UnaryCallable + listDestinationsCallable() { + return stub.listDestinationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a `Destination` 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 (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   DestinationName name =
    +   *       DestinationName.of(
    +   *           "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]", "[DESTINATION]");
    +   *   Destination response = dataTransferServiceClient.getDestination(name);
    +   * }
    +   * }
    + * + * @param name Required. The name of the `Destination` resource to get. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Destination getDestination(DestinationName name) { + GetDestinationRequest request = + GetDestinationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getDestination(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a `Destination` 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 (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   String name =
    +   *       DestinationName.of(
    +   *               "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]", "[DESTINATION]")
    +   *           .toString();
    +   *   Destination response = dataTransferServiceClient.getDestination(name);
    +   * }
    +   * }
    + * + * @param name Required. The name of the `Destination` resource to get. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Destination getDestination(String name) { + GetDestinationRequest request = GetDestinationRequest.newBuilder().setName(name).build(); + return getDestination(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a `Destination` 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 (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   GetDestinationRequest request =
    +   *       GetDestinationRequest.newBuilder()
    +   *           .setName(
    +   *               DestinationName.of(
    +   *                       "[PROJECT]",
    +   *                       "[LOCATION]",
    +   *                       "[MULTICLOUD_DATA_TRANSFER_CONFIG]",
    +   *                       "[DESTINATION]")
    +   *                   .toString())
    +   *           .build();
    +   *   Destination response = dataTransferServiceClient.getDestination(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 Destination getDestination(GetDestinationRequest request) { + return getDestinationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a `Destination` 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 (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   GetDestinationRequest request =
    +   *       GetDestinationRequest.newBuilder()
    +   *           .setName(
    +   *               DestinationName.of(
    +   *                       "[PROJECT]",
    +   *                       "[LOCATION]",
    +   *                       "[MULTICLOUD_DATA_TRANSFER_CONFIG]",
    +   *                       "[DESTINATION]")
    +   *                   .toString())
    +   *           .build();
    +   *   ApiFuture future =
    +   *       dataTransferServiceClient.getDestinationCallable().futureCall(request);
    +   *   // Do something.
    +   *   Destination response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable getDestinationCallable() { + return stub.getDestinationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a `Destination` resource in a specified project and location. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   MulticloudDataTransferConfigName parent =
    +   *       MulticloudDataTransferConfigName.of(
    +   *           "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]");
    +   *   Destination destination = Destination.newBuilder().build();
    +   *   String destinationId = "destinationId306545097";
    +   *   Destination response =
    +   *       dataTransferServiceClient
    +   *           .createDestinationAsync(parent, destination, destinationId)
    +   *           .get();
    +   * }
    +   * }
    + * + * @param parent Required. The name of the parent resource. + * @param destination Required. The `Destination` resource to create. + * @param destinationId Required. The ID to use for the `Destination` resource, which becomes the + * final component of the `Destination` resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createDestinationAsync( + MulticloudDataTransferConfigName parent, Destination destination, String destinationId) { + CreateDestinationRequest request = + CreateDestinationRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setDestination(destination) + .setDestinationId(destinationId) + .build(); + return createDestinationAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a `Destination` resource in a specified project and location. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   String parent =
    +   *       MulticloudDataTransferConfigName.of(
    +   *               "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]")
    +   *           .toString();
    +   *   Destination destination = Destination.newBuilder().build();
    +   *   String destinationId = "destinationId306545097";
    +   *   Destination response =
    +   *       dataTransferServiceClient
    +   *           .createDestinationAsync(parent, destination, destinationId)
    +   *           .get();
    +   * }
    +   * }
    + * + * @param parent Required. The name of the parent resource. + * @param destination Required. The `Destination` resource to create. + * @param destinationId Required. The ID to use for the `Destination` resource, which becomes the + * final component of the `Destination` resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createDestinationAsync( + String parent, Destination destination, String destinationId) { + CreateDestinationRequest request = + CreateDestinationRequest.newBuilder() + .setParent(parent) + .setDestination(destination) + .setDestinationId(destinationId) + .build(); + return createDestinationAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a `Destination` resource in a specified project and location. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   CreateDestinationRequest request =
    +   *       CreateDestinationRequest.newBuilder()
    +   *           .setParent(
    +   *               MulticloudDataTransferConfigName.of(
    +   *                       "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]")
    +   *                   .toString())
    +   *           .setDestinationId("destinationId306545097")
    +   *           .setDestination(Destination.newBuilder().build())
    +   *           .setRequestId("requestId693933066")
    +   *           .build();
    +   *   Destination response = dataTransferServiceClient.createDestinationAsync(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 createDestinationAsync( + CreateDestinationRequest request) { + return createDestinationOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a `Destination` resource in a specified project and location. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   CreateDestinationRequest request =
    +   *       CreateDestinationRequest.newBuilder()
    +   *           .setParent(
    +   *               MulticloudDataTransferConfigName.of(
    +   *                       "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]")
    +   *                   .toString())
    +   *           .setDestinationId("destinationId306545097")
    +   *           .setDestination(Destination.newBuilder().build())
    +   *           .setRequestId("requestId693933066")
    +   *           .build();
    +   *   OperationFuture future =
    +   *       dataTransferServiceClient.createDestinationOperationCallable().futureCall(request);
    +   *   // Do something.
    +   *   Destination response = future.get();
    +   * }
    +   * }
    + */ + public final OperationCallable + createDestinationOperationCallable() { + return stub.createDestinationOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a `Destination` resource in a specified project and location. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   CreateDestinationRequest request =
    +   *       CreateDestinationRequest.newBuilder()
    +   *           .setParent(
    +   *               MulticloudDataTransferConfigName.of(
    +   *                       "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]")
    +   *                   .toString())
    +   *           .setDestinationId("destinationId306545097")
    +   *           .setDestination(Destination.newBuilder().build())
    +   *           .setRequestId("requestId693933066")
    +   *           .build();
    +   *   ApiFuture future =
    +   *       dataTransferServiceClient.createDestinationCallable().futureCall(request);
    +   *   // Do something.
    +   *   Operation response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable createDestinationCallable() { + return stub.createDestinationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a `Destination` resource in a specified project and location. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   Destination destination = Destination.newBuilder().build();
    +   *   FieldMask updateMask = FieldMask.newBuilder().build();
    +   *   Destination response =
    +   *       dataTransferServiceClient.updateDestinationAsync(destination, updateMask).get();
    +   * }
    +   * }
    + * + * @param destination Required. The `Destination` resource to update. + * @param updateMask Optional. `FieldMask is used to specify the fields to be overwritten in the + * `Destination` resource by the update. The fields specified in `update_mask` are relative to + * the resource, not the full request. A field is overwritten if it is in the mask. If you + * don't specify a mask, all fields are overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateDestinationAsync( + Destination destination, FieldMask updateMask) { + UpdateDestinationRequest request = + UpdateDestinationRequest.newBuilder() + .setDestination(destination) + .setUpdateMask(updateMask) + .build(); + return updateDestinationAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a `Destination` resource in a specified project and location. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   UpdateDestinationRequest request =
    +   *       UpdateDestinationRequest.newBuilder()
    +   *           .setUpdateMask(FieldMask.newBuilder().build())
    +   *           .setDestination(Destination.newBuilder().build())
    +   *           .setRequestId("requestId693933066")
    +   *           .build();
    +   *   Destination response = dataTransferServiceClient.updateDestinationAsync(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 updateDestinationAsync( + UpdateDestinationRequest request) { + return updateDestinationOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a `Destination` resource in a specified project and location. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   UpdateDestinationRequest request =
    +   *       UpdateDestinationRequest.newBuilder()
    +   *           .setUpdateMask(FieldMask.newBuilder().build())
    +   *           .setDestination(Destination.newBuilder().build())
    +   *           .setRequestId("requestId693933066")
    +   *           .build();
    +   *   OperationFuture future =
    +   *       dataTransferServiceClient.updateDestinationOperationCallable().futureCall(request);
    +   *   // Do something.
    +   *   Destination response = future.get();
    +   * }
    +   * }
    + */ + public final OperationCallable + updateDestinationOperationCallable() { + return stub.updateDestinationOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a `Destination` resource in a specified project and location. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   UpdateDestinationRequest request =
    +   *       UpdateDestinationRequest.newBuilder()
    +   *           .setUpdateMask(FieldMask.newBuilder().build())
    +   *           .setDestination(Destination.newBuilder().build())
    +   *           .setRequestId("requestId693933066")
    +   *           .build();
    +   *   ApiFuture future =
    +   *       dataTransferServiceClient.updateDestinationCallable().futureCall(request);
    +   *   // Do something.
    +   *   Operation response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable updateDestinationCallable() { + return stub.updateDestinationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a `Destination` 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 (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   DestinationName name =
    +   *       DestinationName.of(
    +   *           "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]", "[DESTINATION]");
    +   *   dataTransferServiceClient.deleteDestinationAsync(name).get();
    +   * }
    +   * }
    + * + * @param name Required. The name of the `Destination` resource to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteDestinationAsync( + DestinationName name) { + DeleteDestinationRequest request = + DeleteDestinationRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteDestinationAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a `Destination` 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 (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   String name =
    +   *       DestinationName.of(
    +   *               "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]", "[DESTINATION]")
    +   *           .toString();
    +   *   dataTransferServiceClient.deleteDestinationAsync(name).get();
    +   * }
    +   * }
    + * + * @param name Required. The name of the `Destination` resource to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteDestinationAsync(String name) { + DeleteDestinationRequest request = DeleteDestinationRequest.newBuilder().setName(name).build(); + return deleteDestinationAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a `Destination` 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 (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   DeleteDestinationRequest request =
    +   *       DeleteDestinationRequest.newBuilder()
    +   *           .setName(
    +   *               DestinationName.of(
    +   *                       "[PROJECT]",
    +   *                       "[LOCATION]",
    +   *                       "[MULTICLOUD_DATA_TRANSFER_CONFIG]",
    +   *                       "[DESTINATION]")
    +   *                   .toString())
    +   *           .setRequestId("requestId693933066")
    +   *           .setEtag("etag3123477")
    +   *           .build();
    +   *   dataTransferServiceClient.deleteDestinationAsync(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 deleteDestinationAsync( + DeleteDestinationRequest request) { + return deleteDestinationOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a `Destination` 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 (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   DeleteDestinationRequest request =
    +   *       DeleteDestinationRequest.newBuilder()
    +   *           .setName(
    +   *               DestinationName.of(
    +   *                       "[PROJECT]",
    +   *                       "[LOCATION]",
    +   *                       "[MULTICLOUD_DATA_TRANSFER_CONFIG]",
    +   *                       "[DESTINATION]")
    +   *                   .toString())
    +   *           .setRequestId("requestId693933066")
    +   *           .setEtag("etag3123477")
    +   *           .build();
    +   *   OperationFuture future =
    +   *       dataTransferServiceClient.deleteDestinationOperationCallable().futureCall(request);
    +   *   // Do something.
    +   *   future.get();
    +   * }
    +   * }
    + */ + public final OperationCallable + deleteDestinationOperationCallable() { + return stub.deleteDestinationOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a `Destination` 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 (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   DeleteDestinationRequest request =
    +   *       DeleteDestinationRequest.newBuilder()
    +   *           .setName(
    +   *               DestinationName.of(
    +   *                       "[PROJECT]",
    +   *                       "[LOCATION]",
    +   *                       "[MULTICLOUD_DATA_TRANSFER_CONFIG]",
    +   *                       "[DESTINATION]")
    +   *                   .toString())
    +   *           .setRequestId("requestId693933066")
    +   *           .setEtag("etag3123477")
    +   *           .build();
    +   *   ApiFuture future =
    +   *       dataTransferServiceClient.deleteDestinationCallable().futureCall(request);
    +   *   // Do something.
    +   *   future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable deleteDestinationCallable() { + return stub.deleteDestinationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a service that is supported for Data Transfer Essentials. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   MulticloudDataTransferSupportedServiceName name =
    +   *       MulticloudDataTransferSupportedServiceName.of(
    +   *           "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_SUPPORTED_SERVICE]");
    +   *   MulticloudDataTransferSupportedService response =
    +   *       dataTransferServiceClient.getMulticloudDataTransferSupportedService(name);
    +   * }
    +   * }
    + * + * @param name Required. The name of the service. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MulticloudDataTransferSupportedService getMulticloudDataTransferSupportedService( + MulticloudDataTransferSupportedServiceName name) { + GetMulticloudDataTransferSupportedServiceRequest request = + GetMulticloudDataTransferSupportedServiceRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getMulticloudDataTransferSupportedService(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a service that is supported for Data Transfer Essentials. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   String name =
    +   *       MulticloudDataTransferSupportedServiceName.of(
    +   *               "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_SUPPORTED_SERVICE]")
    +   *           .toString();
    +   *   MulticloudDataTransferSupportedService response =
    +   *       dataTransferServiceClient.getMulticloudDataTransferSupportedService(name);
    +   * }
    +   * }
    + * + * @param name Required. The name of the service. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MulticloudDataTransferSupportedService getMulticloudDataTransferSupportedService( + String name) { + GetMulticloudDataTransferSupportedServiceRequest request = + GetMulticloudDataTransferSupportedServiceRequest.newBuilder().setName(name).build(); + return getMulticloudDataTransferSupportedService(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a service that is supported for Data Transfer Essentials. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   GetMulticloudDataTransferSupportedServiceRequest request =
    +   *       GetMulticloudDataTransferSupportedServiceRequest.newBuilder()
    +   *           .setName(
    +   *               MulticloudDataTransferSupportedServiceName.of(
    +   *                       "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_SUPPORTED_SERVICE]")
    +   *                   .toString())
    +   *           .build();
    +   *   MulticloudDataTransferSupportedService response =
    +   *       dataTransferServiceClient.getMulticloudDataTransferSupportedService(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 MulticloudDataTransferSupportedService getMulticloudDataTransferSupportedService( + GetMulticloudDataTransferSupportedServiceRequest request) { + return getMulticloudDataTransferSupportedServiceCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a service that is supported for Data Transfer Essentials. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   GetMulticloudDataTransferSupportedServiceRequest request =
    +   *       GetMulticloudDataTransferSupportedServiceRequest.newBuilder()
    +   *           .setName(
    +   *               MulticloudDataTransferSupportedServiceName.of(
    +   *                       "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_SUPPORTED_SERVICE]")
    +   *                   .toString())
    +   *           .build();
    +   *   ApiFuture future =
    +   *       dataTransferServiceClient
    +   *           .getMulticloudDataTransferSupportedServiceCallable()
    +   *           .futureCall(request);
    +   *   // Do something.
    +   *   MulticloudDataTransferSupportedService response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable< + GetMulticloudDataTransferSupportedServiceRequest, MulticloudDataTransferSupportedService> + getMulticloudDataTransferSupportedServiceCallable() { + return stub.getMulticloudDataTransferSupportedServiceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the services in the project for a region that are supported for Data Transfer Essentials. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    +   *   for (MulticloudDataTransferSupportedService element :
    +   *       dataTransferServiceClient
    +   *           .listMulticloudDataTransferSupportedServices(parent)
    +   *           .iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + * + * @param parent Required. The name of the parent resource. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListMulticloudDataTransferSupportedServicesPagedResponse + listMulticloudDataTransferSupportedServices(LocationName parent) { + ListMulticloudDataTransferSupportedServicesRequest request = + ListMulticloudDataTransferSupportedServicesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listMulticloudDataTransferSupportedServices(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the services in the project for a region that are supported for Data Transfer Essentials. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    +   *   for (MulticloudDataTransferSupportedService element :
    +   *       dataTransferServiceClient
    +   *           .listMulticloudDataTransferSupportedServices(parent)
    +   *           .iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + * + * @param parent Required. The name of the parent resource. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListMulticloudDataTransferSupportedServicesPagedResponse + listMulticloudDataTransferSupportedServices(String parent) { + ListMulticloudDataTransferSupportedServicesRequest request = + ListMulticloudDataTransferSupportedServicesRequest.newBuilder().setParent(parent).build(); + return listMulticloudDataTransferSupportedServices(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the services in the project for a region that are supported for Data Transfer Essentials. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   ListMulticloudDataTransferSupportedServicesRequest request =
    +   *       ListMulticloudDataTransferSupportedServicesRequest.newBuilder()
    +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   for (MulticloudDataTransferSupportedService element :
    +   *       dataTransferServiceClient
    +   *           .listMulticloudDataTransferSupportedServices(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 ListMulticloudDataTransferSupportedServicesPagedResponse + listMulticloudDataTransferSupportedServices( + ListMulticloudDataTransferSupportedServicesRequest request) { + return listMulticloudDataTransferSupportedServicesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the services in the project for a region that are supported for Data Transfer Essentials. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   ListMulticloudDataTransferSupportedServicesRequest request =
    +   *       ListMulticloudDataTransferSupportedServicesRequest.newBuilder()
    +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   ApiFuture future =
    +   *       dataTransferServiceClient
    +   *           .listMulticloudDataTransferSupportedServicesPagedCallable()
    +   *           .futureCall(request);
    +   *   // Do something.
    +   *   for (MulticloudDataTransferSupportedService element : future.get().iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + */ + public final UnaryCallable< + ListMulticloudDataTransferSupportedServicesRequest, + ListMulticloudDataTransferSupportedServicesPagedResponse> + listMulticloudDataTransferSupportedServicesPagedCallable() { + return stub.listMulticloudDataTransferSupportedServicesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the services in the project for a region that are supported for Data Transfer Essentials. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   ListMulticloudDataTransferSupportedServicesRequest request =
    +   *       ListMulticloudDataTransferSupportedServicesRequest.newBuilder()
    +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   while (true) {
    +   *     ListMulticloudDataTransferSupportedServicesResponse response =
    +   *         dataTransferServiceClient
    +   *             .listMulticloudDataTransferSupportedServicesCallable()
    +   *             .call(request);
    +   *     for (MulticloudDataTransferSupportedService element :
    +   *         response.getMulticloudDataTransferSupportedServicesList()) {
    +   *       // doThingsWith(element);
    +   *     }
    +   *     String nextPageToken = response.getNextPageToken();
    +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
    +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
    +   *     } else {
    +   *       break;
    +   *     }
    +   *   }
    +   * }
    +   * }
    + */ + public final UnaryCallable< + ListMulticloudDataTransferSupportedServicesRequest, + ListMulticloudDataTransferSupportedServicesResponse> + listMulticloudDataTransferSupportedServicesCallable() { + return stub.listMulticloudDataTransferSupportedServicesCallable(); + } + + // 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 (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   ListLocationsRequest request =
    +   *       ListLocationsRequest.newBuilder()
    +   *           .setName("name3373707")
    +   *           .setFilter("filter-1274492040")
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   for (Location element : dataTransferServiceClient.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 (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   ListLocationsRequest request =
    +   *       ListLocationsRequest.newBuilder()
    +   *           .setName("name3373707")
    +   *           .setFilter("filter-1274492040")
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   ApiFuture future =
    +   *       dataTransferServiceClient.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 (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   ListLocationsRequest request =
    +   *       ListLocationsRequest.newBuilder()
    +   *           .setName("name3373707")
    +   *           .setFilter("filter-1274492040")
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   while (true) {
    +   *     ListLocationsResponse response =
    +   *         dataTransferServiceClient.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 (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
    +   *   Location response = dataTransferServiceClient.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 (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
    +   *   ApiFuture future =
    +   *       dataTransferServiceClient.getLocationCallable().futureCall(request);
    +   *   // Do something.
    +   *   Location response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

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

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   SetIamPolicyRequest request =
    +   *       SetIamPolicyRequest.newBuilder()
    +   *           .setResource(GroupName.of("[PROJECT]", "[HUB]", "[GROUP]").toString())
    +   *           .setPolicy(Policy.newBuilder().build())
    +   *           .setUpdateMask(FieldMask.newBuilder().build())
    +   *           .build();
    +   *   Policy response = dataTransferServiceClient.setIamPolicy(request);
    +   * }
    +   * }
    + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

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

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   SetIamPolicyRequest request =
    +   *       SetIamPolicyRequest.newBuilder()
    +   *           .setResource(GroupName.of("[PROJECT]", "[HUB]", "[GROUP]").toString())
    +   *           .setPolicy(Policy.newBuilder().build())
    +   *           .setUpdateMask(FieldMask.newBuilder().build())
    +   *           .build();
    +   *   ApiFuture future =
    +   *       dataTransferServiceClient.setIamPolicyCallable().futureCall(request);
    +   *   // Do something.
    +   *   Policy response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   GetIamPolicyRequest request =
    +   *       GetIamPolicyRequest.newBuilder()
    +   *           .setResource(GroupName.of("[PROJECT]", "[HUB]", "[GROUP]").toString())
    +   *           .setOptions(GetPolicyOptions.newBuilder().build())
    +   *           .build();
    +   *   Policy response = dataTransferServiceClient.getIamPolicy(request);
    +   * }
    +   * }
    + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   GetIamPolicyRequest request =
    +   *       GetIamPolicyRequest.newBuilder()
    +   *           .setResource(GroupName.of("[PROJECT]", "[HUB]", "[GROUP]").toString())
    +   *           .setOptions(GetPolicyOptions.newBuilder().build())
    +   *           .build();
    +   *   ApiFuture future =
    +   *       dataTransferServiceClient.getIamPolicyCallable().futureCall(request);
    +   *   // Do something.
    +   *   Policy response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

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

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   TestIamPermissionsRequest request =
    +   *       TestIamPermissionsRequest.newBuilder()
    +   *           .setResource(GroupName.of("[PROJECT]", "[HUB]", "[GROUP]").toString())
    +   *           .addAllPermissions(new ArrayList())
    +   *           .build();
    +   *   TestIamPermissionsResponse response = dataTransferServiceClient.testIamPermissions(request);
    +   * }
    +   * }
    + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

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

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    +   *   TestIamPermissionsRequest request =
    +   *       TestIamPermissionsRequest.newBuilder()
    +   *           .setResource(GroupName.of("[PROJECT]", "[HUB]", "[GROUP]").toString())
    +   *           .addAllPermissions(new ArrayList())
    +   *           .build();
    +   *   ApiFuture future =
    +   *       dataTransferServiceClient.testIamPermissionsCallable().futureCall(request);
    +   *   // Do something.
    +   *   TestIamPermissionsResponse response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListMulticloudDataTransferConfigsPagedResponse + extends AbstractPagedListResponse< + ListMulticloudDataTransferConfigsRequest, + ListMulticloudDataTransferConfigsResponse, + MulticloudDataTransferConfig, + ListMulticloudDataTransferConfigsPage, + ListMulticloudDataTransferConfigsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListMulticloudDataTransferConfigsRequest, + ListMulticloudDataTransferConfigsResponse, + MulticloudDataTransferConfig> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListMulticloudDataTransferConfigsPage.createEmptyPage() + .createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListMulticloudDataTransferConfigsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListMulticloudDataTransferConfigsPagedResponse( + ListMulticloudDataTransferConfigsPage page) { + super(page, ListMulticloudDataTransferConfigsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListMulticloudDataTransferConfigsPage + extends AbstractPage< + ListMulticloudDataTransferConfigsRequest, + ListMulticloudDataTransferConfigsResponse, + MulticloudDataTransferConfig, + ListMulticloudDataTransferConfigsPage> { + + private ListMulticloudDataTransferConfigsPage( + PageContext< + ListMulticloudDataTransferConfigsRequest, + ListMulticloudDataTransferConfigsResponse, + MulticloudDataTransferConfig> + context, + ListMulticloudDataTransferConfigsResponse response) { + super(context, response); + } + + private static ListMulticloudDataTransferConfigsPage createEmptyPage() { + return new ListMulticloudDataTransferConfigsPage(null, null); + } + + @Override + protected ListMulticloudDataTransferConfigsPage createPage( + PageContext< + ListMulticloudDataTransferConfigsRequest, + ListMulticloudDataTransferConfigsResponse, + MulticloudDataTransferConfig> + context, + ListMulticloudDataTransferConfigsResponse response) { + return new ListMulticloudDataTransferConfigsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListMulticloudDataTransferConfigsRequest, + ListMulticloudDataTransferConfigsResponse, + MulticloudDataTransferConfig> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListMulticloudDataTransferConfigsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListMulticloudDataTransferConfigsRequest, + ListMulticloudDataTransferConfigsResponse, + MulticloudDataTransferConfig, + ListMulticloudDataTransferConfigsPage, + ListMulticloudDataTransferConfigsFixedSizeCollection> { + + private ListMulticloudDataTransferConfigsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListMulticloudDataTransferConfigsFixedSizeCollection createEmptyCollection() { + return new ListMulticloudDataTransferConfigsFixedSizeCollection(null, 0); + } + + @Override + protected ListMulticloudDataTransferConfigsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListMulticloudDataTransferConfigsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListDestinationsPagedResponse + extends AbstractPagedListResponse< + ListDestinationsRequest, + ListDestinationsResponse, + Destination, + ListDestinationsPage, + ListDestinationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListDestinationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListDestinationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListDestinationsPagedResponse(ListDestinationsPage page) { + super(page, ListDestinationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListDestinationsPage + extends AbstractPage< + ListDestinationsRequest, ListDestinationsResponse, Destination, ListDestinationsPage> { + + private ListDestinationsPage( + PageContext context, + ListDestinationsResponse response) { + super(context, response); + } + + private static ListDestinationsPage createEmptyPage() { + return new ListDestinationsPage(null, null); + } + + @Override + protected ListDestinationsPage createPage( + PageContext context, + ListDestinationsResponse response) { + return new ListDestinationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListDestinationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListDestinationsRequest, + ListDestinationsResponse, + Destination, + ListDestinationsPage, + ListDestinationsFixedSizeCollection> { + + private ListDestinationsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListDestinationsFixedSizeCollection createEmptyCollection() { + return new ListDestinationsFixedSizeCollection(null, 0); + } + + @Override + protected ListDestinationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListDestinationsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListMulticloudDataTransferSupportedServicesPagedResponse + extends AbstractPagedListResponse< + ListMulticloudDataTransferSupportedServicesRequest, + ListMulticloudDataTransferSupportedServicesResponse, + MulticloudDataTransferSupportedService, + ListMulticloudDataTransferSupportedServicesPage, + ListMulticloudDataTransferSupportedServicesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListMulticloudDataTransferSupportedServicesRequest, + ListMulticloudDataTransferSupportedServicesResponse, + MulticloudDataTransferSupportedService> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListMulticloudDataTransferSupportedServicesPage.createEmptyPage() + .createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListMulticloudDataTransferSupportedServicesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListMulticloudDataTransferSupportedServicesPagedResponse( + ListMulticloudDataTransferSupportedServicesPage page) { + super( + page, + ListMulticloudDataTransferSupportedServicesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListMulticloudDataTransferSupportedServicesPage + extends AbstractPage< + ListMulticloudDataTransferSupportedServicesRequest, + ListMulticloudDataTransferSupportedServicesResponse, + MulticloudDataTransferSupportedService, + ListMulticloudDataTransferSupportedServicesPage> { + + private ListMulticloudDataTransferSupportedServicesPage( + PageContext< + ListMulticloudDataTransferSupportedServicesRequest, + ListMulticloudDataTransferSupportedServicesResponse, + MulticloudDataTransferSupportedService> + context, + ListMulticloudDataTransferSupportedServicesResponse response) { + super(context, response); + } + + private static ListMulticloudDataTransferSupportedServicesPage createEmptyPage() { + return new ListMulticloudDataTransferSupportedServicesPage(null, null); + } + + @Override + protected ListMulticloudDataTransferSupportedServicesPage createPage( + PageContext< + ListMulticloudDataTransferSupportedServicesRequest, + ListMulticloudDataTransferSupportedServicesResponse, + MulticloudDataTransferSupportedService> + context, + ListMulticloudDataTransferSupportedServicesResponse response) { + return new ListMulticloudDataTransferSupportedServicesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListMulticloudDataTransferSupportedServicesRequest, + ListMulticloudDataTransferSupportedServicesResponse, + MulticloudDataTransferSupportedService> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListMulticloudDataTransferSupportedServicesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListMulticloudDataTransferSupportedServicesRequest, + ListMulticloudDataTransferSupportedServicesResponse, + MulticloudDataTransferSupportedService, + ListMulticloudDataTransferSupportedServicesPage, + ListMulticloudDataTransferSupportedServicesFixedSizeCollection> { + + private ListMulticloudDataTransferSupportedServicesFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListMulticloudDataTransferSupportedServicesFixedSizeCollection + createEmptyCollection() { + return new ListMulticloudDataTransferSupportedServicesFixedSizeCollection(null, 0); + } + + @Override + protected ListMulticloudDataTransferSupportedServicesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListMulticloudDataTransferSupportedServicesFixedSizeCollection( + pages, collectionSize); + } + } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/DataTransferServiceSettings.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/DataTransferServiceSettings.java new file mode 100644 index 000000000000..06a0d61cde29 --- /dev/null +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/DataTransferServiceSettings.java @@ -0,0 +1,567 @@ +/* + * 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.networkconnectivity.v1; + +import static com.google.cloud.networkconnectivity.v1.DataTransferServiceClient.ListDestinationsPagedResponse; +import static com.google.cloud.networkconnectivity.v1.DataTransferServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.networkconnectivity.v1.DataTransferServiceClient.ListMulticloudDataTransferConfigsPagedResponse; +import static com.google.cloud.networkconnectivity.v1.DataTransferServiceClient.ListMulticloudDataTransferSupportedServicesPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networkconnectivity.v1.stub.DataTransferServiceStubSettings; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link DataTransferServiceClient}. + * + *

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

      + *
    • The default service address (networkconnectivity.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 getMulticloudDataTransferConfig: + * + *

    {@code
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    + * DataTransferServiceSettings.Builder dataTransferServiceSettingsBuilder =
    + *     DataTransferServiceSettings.newBuilder();
    + * dataTransferServiceSettingsBuilder
    + *     .getMulticloudDataTransferConfigSettings()
    + *     .setRetrySettings(
    + *         dataTransferServiceSettingsBuilder
    + *             .getMulticloudDataTransferConfigSettings()
    + *             .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());
    + * DataTransferServiceSettings dataTransferServiceSettings =
    + *     dataTransferServiceSettingsBuilder.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 createMulticloudDataTransferConfig: + * + *

    {@code
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    + * DataTransferServiceSettings.Builder dataTransferServiceSettingsBuilder =
    + *     DataTransferServiceSettings.newBuilder();
    + * TimedRetryAlgorithm timedRetryAlgorithm =
    + *     OperationalTimedPollAlgorithm.create(
    + *         RetrySettings.newBuilder()
    + *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
    + *             .setRetryDelayMultiplier(1.5)
    + *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
    + *             .setTotalTimeoutDuration(Duration.ofHours(24))
    + *             .build());
    + * dataTransferServiceSettingsBuilder
    + *     .createClusterOperationSettings()
    + *     .setPollingAlgorithm(timedRetryAlgorithm)
    + *     .build();
    + * }
    + */ +@Generated("by gapic-generator-java") +public class DataTransferServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to listMulticloudDataTransferConfigs. */ + public PagedCallSettings< + ListMulticloudDataTransferConfigsRequest, + ListMulticloudDataTransferConfigsResponse, + ListMulticloudDataTransferConfigsPagedResponse> + listMulticloudDataTransferConfigsSettings() { + return ((DataTransferServiceStubSettings) getStubSettings()) + .listMulticloudDataTransferConfigsSettings(); + } + + /** Returns the object with the settings used for calls to getMulticloudDataTransferConfig. */ + public UnaryCallSettings + getMulticloudDataTransferConfigSettings() { + return ((DataTransferServiceStubSettings) getStubSettings()) + .getMulticloudDataTransferConfigSettings(); + } + + /** Returns the object with the settings used for calls to createMulticloudDataTransferConfig. */ + public UnaryCallSettings + createMulticloudDataTransferConfigSettings() { + return ((DataTransferServiceStubSettings) getStubSettings()) + .createMulticloudDataTransferConfigSettings(); + } + + /** Returns the object with the settings used for calls to createMulticloudDataTransferConfig. */ + public OperationCallSettings< + CreateMulticloudDataTransferConfigRequest, + MulticloudDataTransferConfig, + OperationMetadata> + createMulticloudDataTransferConfigOperationSettings() { + return ((DataTransferServiceStubSettings) getStubSettings()) + .createMulticloudDataTransferConfigOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateMulticloudDataTransferConfig. */ + public UnaryCallSettings + updateMulticloudDataTransferConfigSettings() { + return ((DataTransferServiceStubSettings) getStubSettings()) + .updateMulticloudDataTransferConfigSettings(); + } + + /** Returns the object with the settings used for calls to updateMulticloudDataTransferConfig. */ + public OperationCallSettings< + UpdateMulticloudDataTransferConfigRequest, + MulticloudDataTransferConfig, + OperationMetadata> + updateMulticloudDataTransferConfigOperationSettings() { + return ((DataTransferServiceStubSettings) getStubSettings()) + .updateMulticloudDataTransferConfigOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteMulticloudDataTransferConfig. */ + public UnaryCallSettings + deleteMulticloudDataTransferConfigSettings() { + return ((DataTransferServiceStubSettings) getStubSettings()) + .deleteMulticloudDataTransferConfigSettings(); + } + + /** Returns the object with the settings used for calls to deleteMulticloudDataTransferConfig. */ + public OperationCallSettings + deleteMulticloudDataTransferConfigOperationSettings() { + return ((DataTransferServiceStubSettings) getStubSettings()) + .deleteMulticloudDataTransferConfigOperationSettings(); + } + + /** Returns the object with the settings used for calls to listDestinations. */ + public PagedCallSettings< + ListDestinationsRequest, ListDestinationsResponse, ListDestinationsPagedResponse> + listDestinationsSettings() { + return ((DataTransferServiceStubSettings) getStubSettings()).listDestinationsSettings(); + } + + /** Returns the object with the settings used for calls to getDestination. */ + public UnaryCallSettings getDestinationSettings() { + return ((DataTransferServiceStubSettings) getStubSettings()).getDestinationSettings(); + } + + /** Returns the object with the settings used for calls to createDestination. */ + public UnaryCallSettings createDestinationSettings() { + return ((DataTransferServiceStubSettings) getStubSettings()).createDestinationSettings(); + } + + /** Returns the object with the settings used for calls to createDestination. */ + public OperationCallSettings + createDestinationOperationSettings() { + return ((DataTransferServiceStubSettings) getStubSettings()) + .createDestinationOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateDestination. */ + public UnaryCallSettings updateDestinationSettings() { + return ((DataTransferServiceStubSettings) getStubSettings()).updateDestinationSettings(); + } + + /** Returns the object with the settings used for calls to updateDestination. */ + public OperationCallSettings + updateDestinationOperationSettings() { + return ((DataTransferServiceStubSettings) getStubSettings()) + .updateDestinationOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteDestination. */ + public UnaryCallSettings deleteDestinationSettings() { + return ((DataTransferServiceStubSettings) getStubSettings()).deleteDestinationSettings(); + } + + /** Returns the object with the settings used for calls to deleteDestination. */ + public OperationCallSettings + deleteDestinationOperationSettings() { + return ((DataTransferServiceStubSettings) getStubSettings()) + .deleteDestinationOperationSettings(); + } + + /** + * Returns the object with the settings used for calls to + * getMulticloudDataTransferSupportedService. + */ + public UnaryCallSettings< + GetMulticloudDataTransferSupportedServiceRequest, MulticloudDataTransferSupportedService> + getMulticloudDataTransferSupportedServiceSettings() { + return ((DataTransferServiceStubSettings) getStubSettings()) + .getMulticloudDataTransferSupportedServiceSettings(); + } + + /** + * Returns the object with the settings used for calls to + * listMulticloudDataTransferSupportedServices. + */ + public PagedCallSettings< + ListMulticloudDataTransferSupportedServicesRequest, + ListMulticloudDataTransferSupportedServicesResponse, + ListMulticloudDataTransferSupportedServicesPagedResponse> + listMulticloudDataTransferSupportedServicesSettings() { + return ((DataTransferServiceStubSettings) getStubSettings()) + .listMulticloudDataTransferSupportedServicesSettings(); + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return ((DataTransferServiceStubSettings) getStubSettings()).listLocationsSettings(); + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return ((DataTransferServiceStubSettings) getStubSettings()).getLocationSettings(); + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return ((DataTransferServiceStubSettings) getStubSettings()).setIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return ((DataTransferServiceStubSettings) getStubSettings()).getIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return ((DataTransferServiceStubSettings) getStubSettings()).testIamPermissionsSettings(); + } + + public static final DataTransferServiceSettings create(DataTransferServiceStubSettings stub) + throws IOException { + return new DataTransferServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return DataTransferServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return DataTransferServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DataTransferServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return DataTransferServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return DataTransferServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return DataTransferServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return DataTransferServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected DataTransferServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for DataTransferServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(DataTransferServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(DataTransferServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(DataTransferServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(DataTransferServiceStubSettings.newBuilder()); + } + + public DataTransferServiceStubSettings.Builder getStubSettingsBuilder() { + return ((DataTransferServiceStubSettings.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 listMulticloudDataTransferConfigs. */ + public PagedCallSettings.Builder< + ListMulticloudDataTransferConfigsRequest, + ListMulticloudDataTransferConfigsResponse, + ListMulticloudDataTransferConfigsPagedResponse> + listMulticloudDataTransferConfigsSettings() { + return getStubSettingsBuilder().listMulticloudDataTransferConfigsSettings(); + } + + /** Returns the builder for the settings used for calls to getMulticloudDataTransferConfig. */ + public UnaryCallSettings.Builder< + GetMulticloudDataTransferConfigRequest, MulticloudDataTransferConfig> + getMulticloudDataTransferConfigSettings() { + return getStubSettingsBuilder().getMulticloudDataTransferConfigSettings(); + } + + /** + * Returns the builder for the settings used for calls to createMulticloudDataTransferConfig. + */ + public UnaryCallSettings.Builder + createMulticloudDataTransferConfigSettings() { + return getStubSettingsBuilder().createMulticloudDataTransferConfigSettings(); + } + + /** + * Returns the builder for the settings used for calls to createMulticloudDataTransferConfig. + */ + public OperationCallSettings.Builder< + CreateMulticloudDataTransferConfigRequest, + MulticloudDataTransferConfig, + OperationMetadata> + createMulticloudDataTransferConfigOperationSettings() { + return getStubSettingsBuilder().createMulticloudDataTransferConfigOperationSettings(); + } + + /** + * Returns the builder for the settings used for calls to updateMulticloudDataTransferConfig. + */ + public UnaryCallSettings.Builder + updateMulticloudDataTransferConfigSettings() { + return getStubSettingsBuilder().updateMulticloudDataTransferConfigSettings(); + } + + /** + * Returns the builder for the settings used for calls to updateMulticloudDataTransferConfig. + */ + public OperationCallSettings.Builder< + UpdateMulticloudDataTransferConfigRequest, + MulticloudDataTransferConfig, + OperationMetadata> + updateMulticloudDataTransferConfigOperationSettings() { + return getStubSettingsBuilder().updateMulticloudDataTransferConfigOperationSettings(); + } + + /** + * Returns the builder for the settings used for calls to deleteMulticloudDataTransferConfig. + */ + public UnaryCallSettings.Builder + deleteMulticloudDataTransferConfigSettings() { + return getStubSettingsBuilder().deleteMulticloudDataTransferConfigSettings(); + } + + /** + * Returns the builder for the settings used for calls to deleteMulticloudDataTransferConfig. + */ + public OperationCallSettings.Builder< + DeleteMulticloudDataTransferConfigRequest, Empty, OperationMetadata> + deleteMulticloudDataTransferConfigOperationSettings() { + return getStubSettingsBuilder().deleteMulticloudDataTransferConfigOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listDestinations. */ + public PagedCallSettings.Builder< + ListDestinationsRequest, ListDestinationsResponse, ListDestinationsPagedResponse> + listDestinationsSettings() { + return getStubSettingsBuilder().listDestinationsSettings(); + } + + /** Returns the builder for the settings used for calls to getDestination. */ + public UnaryCallSettings.Builder getDestinationSettings() { + return getStubSettingsBuilder().getDestinationSettings(); + } + + /** Returns the builder for the settings used for calls to createDestination. */ + public UnaryCallSettings.Builder + createDestinationSettings() { + return getStubSettingsBuilder().createDestinationSettings(); + } + + /** Returns the builder for the settings used for calls to createDestination. */ + public OperationCallSettings.Builder + createDestinationOperationSettings() { + return getStubSettingsBuilder().createDestinationOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateDestination. */ + public UnaryCallSettings.Builder + updateDestinationSettings() { + return getStubSettingsBuilder().updateDestinationSettings(); + } + + /** Returns the builder for the settings used for calls to updateDestination. */ + public OperationCallSettings.Builder + updateDestinationOperationSettings() { + return getStubSettingsBuilder().updateDestinationOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteDestination. */ + public UnaryCallSettings.Builder + deleteDestinationSettings() { + return getStubSettingsBuilder().deleteDestinationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteDestination. */ + public OperationCallSettings.Builder + deleteDestinationOperationSettings() { + return getStubSettingsBuilder().deleteDestinationOperationSettings(); + } + + /** + * Returns the builder for the settings used for calls to + * getMulticloudDataTransferSupportedService. + */ + public UnaryCallSettings.Builder< + GetMulticloudDataTransferSupportedServiceRequest, + MulticloudDataTransferSupportedService> + getMulticloudDataTransferSupportedServiceSettings() { + return getStubSettingsBuilder().getMulticloudDataTransferSupportedServiceSettings(); + } + + /** + * Returns the builder for the settings used for calls to + * listMulticloudDataTransferSupportedServices. + */ + public PagedCallSettings.Builder< + ListMulticloudDataTransferSupportedServicesRequest, + ListMulticloudDataTransferSupportedServicesResponse, + ListMulticloudDataTransferSupportedServicesPagedResponse> + listMulticloudDataTransferSupportedServicesSettings() { + return getStubSettingsBuilder().listMulticloudDataTransferSupportedServicesSettings(); + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return getStubSettingsBuilder().listLocationsSettings(); + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getStubSettingsBuilder().getLocationSettings(); + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return getStubSettingsBuilder().setIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getStubSettingsBuilder().getIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return getStubSettingsBuilder().testIamPermissionsSettings(); + } + + @Override + public DataTransferServiceSettings build() throws IOException { + return new DataTransferServiceSettings(this); + } + } +} diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/gapic_metadata.json b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/gapic_metadata.json index 63aec8b6bb1c..c6ab18262922 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/gapic_metadata.json +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/gapic_metadata.json @@ -83,6 +83,66 @@ } } }, + "DataTransferService": { + "clients": { + "grpc": { + "libraryClient": "DataTransferServiceClient", + "rpcs": { + "CreateDestination": { + "methods": ["createDestinationAsync", "createDestinationAsync", "createDestinationAsync", "createDestinationOperationCallable", "createDestinationCallable"] + }, + "CreateMulticloudDataTransferConfig": { + "methods": ["createMulticloudDataTransferConfigAsync", "createMulticloudDataTransferConfigAsync", "createMulticloudDataTransferConfigAsync", "createMulticloudDataTransferConfigOperationCallable", "createMulticloudDataTransferConfigCallable"] + }, + "DeleteDestination": { + "methods": ["deleteDestinationAsync", "deleteDestinationAsync", "deleteDestinationAsync", "deleteDestinationOperationCallable", "deleteDestinationCallable"] + }, + "DeleteMulticloudDataTransferConfig": { + "methods": ["deleteMulticloudDataTransferConfigAsync", "deleteMulticloudDataTransferConfigAsync", "deleteMulticloudDataTransferConfigAsync", "deleteMulticloudDataTransferConfigOperationCallable", "deleteMulticloudDataTransferConfigCallable"] + }, + "GetDestination": { + "methods": ["getDestination", "getDestination", "getDestination", "getDestinationCallable"] + }, + "GetIamPolicy": { + "methods": ["getIamPolicy", "getIamPolicyCallable"] + }, + "GetLocation": { + "methods": ["getLocation", "getLocationCallable"] + }, + "GetMulticloudDataTransferConfig": { + "methods": ["getMulticloudDataTransferConfig", "getMulticloudDataTransferConfig", "getMulticloudDataTransferConfig", "getMulticloudDataTransferConfigCallable"] + }, + "GetMulticloudDataTransferSupportedService": { + "methods": ["getMulticloudDataTransferSupportedService", "getMulticloudDataTransferSupportedService", "getMulticloudDataTransferSupportedService", "getMulticloudDataTransferSupportedServiceCallable"] + }, + "ListDestinations": { + "methods": ["listDestinations", "listDestinations", "listDestinations", "listDestinationsPagedCallable", "listDestinationsCallable"] + }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] + }, + "ListMulticloudDataTransferConfigs": { + "methods": ["listMulticloudDataTransferConfigs", "listMulticloudDataTransferConfigs", "listMulticloudDataTransferConfigs", "listMulticloudDataTransferConfigsPagedCallable", "listMulticloudDataTransferConfigsCallable"] + }, + "ListMulticloudDataTransferSupportedServices": { + "methods": ["listMulticloudDataTransferSupportedServices", "listMulticloudDataTransferSupportedServices", "listMulticloudDataTransferSupportedServices", "listMulticloudDataTransferSupportedServicesPagedCallable", "listMulticloudDataTransferSupportedServicesCallable"] + }, + "SetIamPolicy": { + "methods": ["setIamPolicy", "setIamPolicyCallable"] + }, + "TestIamPermissions": { + "methods": ["testIamPermissions", "testIamPermissionsCallable"] + }, + "UpdateDestination": { + "methods": ["updateDestinationAsync", "updateDestinationAsync", "updateDestinationOperationCallable", "updateDestinationCallable"] + }, + "UpdateMulticloudDataTransferConfig": { + "methods": ["updateMulticloudDataTransferConfigAsync", "updateMulticloudDataTransferConfigAsync", "updateMulticloudDataTransferConfigOperationCallable", "updateMulticloudDataTransferConfigCallable"] + } + } + } + } + }, "HubService": { "clients": { "grpc": { diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/package-info.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/package-info.java index b2446d34c786..959a0eb6d27a 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/package-info.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/package-info.java @@ -40,6 +40,27 @@ * } * } * + *

    ======================= DataTransferServiceClient ======================= + * + *

    Service Description: DataTransferService is the service for the Data Transfer API. + * + *

    Sample for DataTransferServiceClient: + * + *

    {@code
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    + * try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) {
    + *   MulticloudDataTransferConfigName name =
    + *       MulticloudDataTransferConfigName.of(
    + *           "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]");
    + *   MulticloudDataTransferConfig response =
    + *       dataTransferServiceClient.getMulticloudDataTransferConfig(name);
    + * }
    + * }
    + * *

    ======================= HubServiceClient ======================= * *

    Service Description: Network Connectivity Center is a hub-and-spoke abstraction for network diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/DataTransferServiceStub.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/DataTransferServiceStub.java new file mode 100644 index 000000000000..ec8e92eb1f32 --- /dev/null +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/DataTransferServiceStub.java @@ -0,0 +1,230 @@ +/* + * 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.networkconnectivity.v1.stub; + +import static com.google.cloud.networkconnectivity.v1.DataTransferServiceClient.ListDestinationsPagedResponse; +import static com.google.cloud.networkconnectivity.v1.DataTransferServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.networkconnectivity.v1.DataTransferServiceClient.ListMulticloudDataTransferConfigsPagedResponse; +import static com.google.cloud.networkconnectivity.v1.DataTransferServiceClient.ListMulticloudDataTransferSupportedServicesPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networkconnectivity.v1.CreateDestinationRequest; +import com.google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest; +import com.google.cloud.networkconnectivity.v1.DeleteDestinationRequest; +import com.google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest; +import com.google.cloud.networkconnectivity.v1.Destination; +import com.google.cloud.networkconnectivity.v1.GetDestinationRequest; +import com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest; +import com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferSupportedServiceRequest; +import com.google.cloud.networkconnectivity.v1.ListDestinationsRequest; +import com.google.cloud.networkconnectivity.v1.ListDestinationsResponse; +import com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest; +import com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse; +import com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferSupportedServicesRequest; +import com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferSupportedServicesResponse; +import com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig; +import com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService; +import com.google.cloud.networkconnectivity.v1.OperationMetadata; +import com.google.cloud.networkconnectivity.v1.UpdateDestinationRequest; +import com.google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the DataTransferService service API. + * + *

    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class DataTransferServiceStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); + } + + public UnaryCallable< + ListMulticloudDataTransferConfigsRequest, ListMulticloudDataTransferConfigsPagedResponse> + listMulticloudDataTransferConfigsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listMulticloudDataTransferConfigsPagedCallable()"); + } + + public UnaryCallable< + ListMulticloudDataTransferConfigsRequest, ListMulticloudDataTransferConfigsResponse> + listMulticloudDataTransferConfigsCallable() { + throw new UnsupportedOperationException( + "Not implemented: listMulticloudDataTransferConfigsCallable()"); + } + + public UnaryCallable + getMulticloudDataTransferConfigCallable() { + throw new UnsupportedOperationException( + "Not implemented: getMulticloudDataTransferConfigCallable()"); + } + + public OperationCallable< + CreateMulticloudDataTransferConfigRequest, + MulticloudDataTransferConfig, + OperationMetadata> + createMulticloudDataTransferConfigOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createMulticloudDataTransferConfigOperationCallable()"); + } + + public UnaryCallable + createMulticloudDataTransferConfigCallable() { + throw new UnsupportedOperationException( + "Not implemented: createMulticloudDataTransferConfigCallable()"); + } + + public OperationCallable< + UpdateMulticloudDataTransferConfigRequest, + MulticloudDataTransferConfig, + OperationMetadata> + updateMulticloudDataTransferConfigOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateMulticloudDataTransferConfigOperationCallable()"); + } + + public UnaryCallable + updateMulticloudDataTransferConfigCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateMulticloudDataTransferConfigCallable()"); + } + + public OperationCallable + deleteMulticloudDataTransferConfigOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteMulticloudDataTransferConfigOperationCallable()"); + } + + public UnaryCallable + deleteMulticloudDataTransferConfigCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteMulticloudDataTransferConfigCallable()"); + } + + public UnaryCallable + listDestinationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listDestinationsPagedCallable()"); + } + + public UnaryCallable + listDestinationsCallable() { + throw new UnsupportedOperationException("Not implemented: listDestinationsCallable()"); + } + + public UnaryCallable getDestinationCallable() { + throw new UnsupportedOperationException("Not implemented: getDestinationCallable()"); + } + + public OperationCallable + createDestinationOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createDestinationOperationCallable()"); + } + + public UnaryCallable createDestinationCallable() { + throw new UnsupportedOperationException("Not implemented: createDestinationCallable()"); + } + + public OperationCallable + updateDestinationOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateDestinationOperationCallable()"); + } + + public UnaryCallable updateDestinationCallable() { + throw new UnsupportedOperationException("Not implemented: updateDestinationCallable()"); + } + + public OperationCallable + deleteDestinationOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteDestinationOperationCallable()"); + } + + public UnaryCallable deleteDestinationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteDestinationCallable()"); + } + + public UnaryCallable< + GetMulticloudDataTransferSupportedServiceRequest, MulticloudDataTransferSupportedService> + getMulticloudDataTransferSupportedServiceCallable() { + throw new UnsupportedOperationException( + "Not implemented: getMulticloudDataTransferSupportedServiceCallable()"); + } + + public UnaryCallable< + ListMulticloudDataTransferSupportedServicesRequest, + ListMulticloudDataTransferSupportedServicesPagedResponse> + listMulticloudDataTransferSupportedServicesPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listMulticloudDataTransferSupportedServicesPagedCallable()"); + } + + public UnaryCallable< + ListMulticloudDataTransferSupportedServicesRequest, + ListMulticloudDataTransferSupportedServicesResponse> + listMulticloudDataTransferSupportedServicesCallable() { + throw new UnsupportedOperationException( + "Not implemented: listMulticloudDataTransferSupportedServicesCallable()"); + } + + public UnaryCallable + listLocationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); + } + + public UnaryCallable listLocationsCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsCallable()"); + } + + public UnaryCallable getLocationCallable() { + throw new UnsupportedOperationException("Not implemented: getLocationCallable()"); + } + + public UnaryCallable setIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()"); + } + + public UnaryCallable getIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()"); + } + + public UnaryCallable + testIamPermissionsCallable() { + throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/DataTransferServiceStubSettings.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/DataTransferServiceStubSettings.java new file mode 100644 index 000000000000..d1dea9d908e5 --- /dev/null +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/DataTransferServiceStubSettings.java @@ -0,0 +1,1434 @@ +/* + * 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.networkconnectivity.v1.stub; + +import static com.google.cloud.networkconnectivity.v1.DataTransferServiceClient.ListDestinationsPagedResponse; +import static com.google.cloud.networkconnectivity.v1.DataTransferServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.networkconnectivity.v1.DataTransferServiceClient.ListMulticloudDataTransferConfigsPagedResponse; +import static com.google.cloud.networkconnectivity.v1.DataTransferServiceClient.ListMulticloudDataTransferSupportedServicesPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.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.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networkconnectivity.v1.CreateDestinationRequest; +import com.google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest; +import com.google.cloud.networkconnectivity.v1.DeleteDestinationRequest; +import com.google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest; +import com.google.cloud.networkconnectivity.v1.Destination; +import com.google.cloud.networkconnectivity.v1.GetDestinationRequest; +import com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest; +import com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferSupportedServiceRequest; +import com.google.cloud.networkconnectivity.v1.ListDestinationsRequest; +import com.google.cloud.networkconnectivity.v1.ListDestinationsResponse; +import com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest; +import com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse; +import com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferSupportedServicesRequest; +import com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferSupportedServicesResponse; +import com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig; +import com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService; +import com.google.cloud.networkconnectivity.v1.OperationMetadata; +import com.google.cloud.networkconnectivity.v1.UpdateDestinationRequest; +import com.google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.time.Duration; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link DataTransferServiceStub}. + * + *

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

      + *
    • The default service address (networkconnectivity.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 getMulticloudDataTransferConfig: + * + *

    {@code
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    + * DataTransferServiceStubSettings.Builder dataTransferServiceSettingsBuilder =
    + *     DataTransferServiceStubSettings.newBuilder();
    + * dataTransferServiceSettingsBuilder
    + *     .getMulticloudDataTransferConfigSettings()
    + *     .setRetrySettings(
    + *         dataTransferServiceSettingsBuilder
    + *             .getMulticloudDataTransferConfigSettings()
    + *             .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());
    + * DataTransferServiceStubSettings dataTransferServiceSettings =
    + *     dataTransferServiceSettingsBuilder.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 createMulticloudDataTransferConfig: + * + *

    {@code
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    + * DataTransferServiceStubSettings.Builder dataTransferServiceSettingsBuilder =
    + *     DataTransferServiceStubSettings.newBuilder();
    + * TimedRetryAlgorithm timedRetryAlgorithm =
    + *     OperationalTimedPollAlgorithm.create(
    + *         RetrySettings.newBuilder()
    + *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
    + *             .setRetryDelayMultiplier(1.5)
    + *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
    + *             .setTotalTimeoutDuration(Duration.ofHours(24))
    + *             .build());
    + * dataTransferServiceSettingsBuilder
    + *     .createClusterOperationSettings()
    + *     .setPollingAlgorithm(timedRetryAlgorithm)
    + *     .build();
    + * }
    + */ +@Generated("by gapic-generator-java") +public class DataTransferServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final PagedCallSettings< + ListMulticloudDataTransferConfigsRequest, + ListMulticloudDataTransferConfigsResponse, + ListMulticloudDataTransferConfigsPagedResponse> + listMulticloudDataTransferConfigsSettings; + private final UnaryCallSettings< + GetMulticloudDataTransferConfigRequest, MulticloudDataTransferConfig> + getMulticloudDataTransferConfigSettings; + private final UnaryCallSettings + createMulticloudDataTransferConfigSettings; + private final OperationCallSettings< + CreateMulticloudDataTransferConfigRequest, + MulticloudDataTransferConfig, + OperationMetadata> + createMulticloudDataTransferConfigOperationSettings; + private final UnaryCallSettings + updateMulticloudDataTransferConfigSettings; + private final OperationCallSettings< + UpdateMulticloudDataTransferConfigRequest, + MulticloudDataTransferConfig, + OperationMetadata> + updateMulticloudDataTransferConfigOperationSettings; + private final UnaryCallSettings + deleteMulticloudDataTransferConfigSettings; + private final OperationCallSettings< + DeleteMulticloudDataTransferConfigRequest, Empty, OperationMetadata> + deleteMulticloudDataTransferConfigOperationSettings; + private final PagedCallSettings< + ListDestinationsRequest, ListDestinationsResponse, ListDestinationsPagedResponse> + listDestinationsSettings; + private final UnaryCallSettings getDestinationSettings; + private final UnaryCallSettings createDestinationSettings; + private final OperationCallSettings + createDestinationOperationSettings; + private final UnaryCallSettings updateDestinationSettings; + private final OperationCallSettings + updateDestinationOperationSettings; + private final UnaryCallSettings deleteDestinationSettings; + private final OperationCallSettings + deleteDestinationOperationSettings; + private final UnaryCallSettings< + GetMulticloudDataTransferSupportedServiceRequest, MulticloudDataTransferSupportedService> + getMulticloudDataTransferSupportedServiceSettings; + private final PagedCallSettings< + ListMulticloudDataTransferSupportedServicesRequest, + ListMulticloudDataTransferSupportedServicesResponse, + ListMulticloudDataTransferSupportedServicesPagedResponse> + listMulticloudDataTransferSupportedServicesSettings; + private final PagedCallSettings< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings getLocationSettings; + private final UnaryCallSettings setIamPolicySettings; + private final UnaryCallSettings getIamPolicySettings; + private final UnaryCallSettings + testIamPermissionsSettings; + + private static final PagedListDescriptor< + ListMulticloudDataTransferConfigsRequest, + ListMulticloudDataTransferConfigsResponse, + MulticloudDataTransferConfig> + LIST_MULTICLOUD_DATA_TRANSFER_CONFIGS_PAGE_STR_DESC = + new PagedListDescriptor< + ListMulticloudDataTransferConfigsRequest, + ListMulticloudDataTransferConfigsResponse, + MulticloudDataTransferConfig>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListMulticloudDataTransferConfigsRequest injectToken( + ListMulticloudDataTransferConfigsRequest payload, String token) { + return ListMulticloudDataTransferConfigsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListMulticloudDataTransferConfigsRequest injectPageSize( + ListMulticloudDataTransferConfigsRequest payload, int pageSize) { + return ListMulticloudDataTransferConfigsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListMulticloudDataTransferConfigsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListMulticloudDataTransferConfigsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListMulticloudDataTransferConfigsResponse payload) { + return payload.getMulticloudDataTransferConfigsList(); + } + }; + + private static final PagedListDescriptor< + ListDestinationsRequest, ListDestinationsResponse, Destination> + LIST_DESTINATIONS_PAGE_STR_DESC = + new PagedListDescriptor< + ListDestinationsRequest, ListDestinationsResponse, Destination>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListDestinationsRequest injectToken( + ListDestinationsRequest payload, String token) { + return ListDestinationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListDestinationsRequest injectPageSize( + ListDestinationsRequest payload, int pageSize) { + return ListDestinationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListDestinationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListDestinationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListDestinationsResponse payload) { + return payload.getDestinationsList(); + } + }; + + private static final PagedListDescriptor< + ListMulticloudDataTransferSupportedServicesRequest, + ListMulticloudDataTransferSupportedServicesResponse, + MulticloudDataTransferSupportedService> + LIST_MULTICLOUD_DATA_TRANSFER_SUPPORTED_SERVICES_PAGE_STR_DESC = + new PagedListDescriptor< + ListMulticloudDataTransferSupportedServicesRequest, + ListMulticloudDataTransferSupportedServicesResponse, + MulticloudDataTransferSupportedService>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListMulticloudDataTransferSupportedServicesRequest injectToken( + ListMulticloudDataTransferSupportedServicesRequest payload, String token) { + return ListMulticloudDataTransferSupportedServicesRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListMulticloudDataTransferSupportedServicesRequest injectPageSize( + ListMulticloudDataTransferSupportedServicesRequest payload, int pageSize) { + return ListMulticloudDataTransferSupportedServicesRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize( + ListMulticloudDataTransferSupportedServicesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken( + ListMulticloudDataTransferSupportedServicesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListMulticloudDataTransferSupportedServicesResponse payload) { + return payload.getMulticloudDataTransferSupportedServicesList(); + } + }; + + 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< + ListMulticloudDataTransferConfigsRequest, + ListMulticloudDataTransferConfigsResponse, + ListMulticloudDataTransferConfigsPagedResponse> + LIST_MULTICLOUD_DATA_TRANSFER_CONFIGS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListMulticloudDataTransferConfigsRequest, + ListMulticloudDataTransferConfigsResponse, + ListMulticloudDataTransferConfigsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable< + ListMulticloudDataTransferConfigsRequest, + ListMulticloudDataTransferConfigsResponse> + callable, + ListMulticloudDataTransferConfigsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListMulticloudDataTransferConfigsRequest, + ListMulticloudDataTransferConfigsResponse, + MulticloudDataTransferConfig> + pageContext = + PageContext.create( + callable, + LIST_MULTICLOUD_DATA_TRANSFER_CONFIGS_PAGE_STR_DESC, + request, + context); + return ListMulticloudDataTransferConfigsPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListDestinationsRequest, ListDestinationsResponse, ListDestinationsPagedResponse> + LIST_DESTINATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListDestinationsRequest, ListDestinationsResponse, ListDestinationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListDestinationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_DESTINATIONS_PAGE_STR_DESC, request, context); + return ListDestinationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListMulticloudDataTransferSupportedServicesRequest, + ListMulticloudDataTransferSupportedServicesResponse, + ListMulticloudDataTransferSupportedServicesPagedResponse> + LIST_MULTICLOUD_DATA_TRANSFER_SUPPORTED_SERVICES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListMulticloudDataTransferSupportedServicesRequest, + ListMulticloudDataTransferSupportedServicesResponse, + ListMulticloudDataTransferSupportedServicesPagedResponse>() { + @Override + public ApiFuture + getFuturePagedResponse( + UnaryCallable< + ListMulticloudDataTransferSupportedServicesRequest, + ListMulticloudDataTransferSupportedServicesResponse> + callable, + ListMulticloudDataTransferSupportedServicesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListMulticloudDataTransferSupportedServicesRequest, + ListMulticloudDataTransferSupportedServicesResponse, + MulticloudDataTransferSupportedService> + pageContext = + PageContext.create( + callable, + LIST_MULTICLOUD_DATA_TRANSFER_SUPPORTED_SERVICES_PAGE_STR_DESC, + request, + context); + return ListMulticloudDataTransferSupportedServicesPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + LIST_LOCATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLocationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context); + return ListLocationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to listMulticloudDataTransferConfigs. */ + public PagedCallSettings< + ListMulticloudDataTransferConfigsRequest, + ListMulticloudDataTransferConfigsResponse, + ListMulticloudDataTransferConfigsPagedResponse> + listMulticloudDataTransferConfigsSettings() { + return listMulticloudDataTransferConfigsSettings; + } + + /** Returns the object with the settings used for calls to getMulticloudDataTransferConfig. */ + public UnaryCallSettings + getMulticloudDataTransferConfigSettings() { + return getMulticloudDataTransferConfigSettings; + } + + /** Returns the object with the settings used for calls to createMulticloudDataTransferConfig. */ + public UnaryCallSettings + createMulticloudDataTransferConfigSettings() { + return createMulticloudDataTransferConfigSettings; + } + + /** Returns the object with the settings used for calls to createMulticloudDataTransferConfig. */ + public OperationCallSettings< + CreateMulticloudDataTransferConfigRequest, + MulticloudDataTransferConfig, + OperationMetadata> + createMulticloudDataTransferConfigOperationSettings() { + return createMulticloudDataTransferConfigOperationSettings; + } + + /** Returns the object with the settings used for calls to updateMulticloudDataTransferConfig. */ + public UnaryCallSettings + updateMulticloudDataTransferConfigSettings() { + return updateMulticloudDataTransferConfigSettings; + } + + /** Returns the object with the settings used for calls to updateMulticloudDataTransferConfig. */ + public OperationCallSettings< + UpdateMulticloudDataTransferConfigRequest, + MulticloudDataTransferConfig, + OperationMetadata> + updateMulticloudDataTransferConfigOperationSettings() { + return updateMulticloudDataTransferConfigOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteMulticloudDataTransferConfig. */ + public UnaryCallSettings + deleteMulticloudDataTransferConfigSettings() { + return deleteMulticloudDataTransferConfigSettings; + } + + /** Returns the object with the settings used for calls to deleteMulticloudDataTransferConfig. */ + public OperationCallSettings + deleteMulticloudDataTransferConfigOperationSettings() { + return deleteMulticloudDataTransferConfigOperationSettings; + } + + /** Returns the object with the settings used for calls to listDestinations. */ + public PagedCallSettings< + ListDestinationsRequest, ListDestinationsResponse, ListDestinationsPagedResponse> + listDestinationsSettings() { + return listDestinationsSettings; + } + + /** Returns the object with the settings used for calls to getDestination. */ + public UnaryCallSettings getDestinationSettings() { + return getDestinationSettings; + } + + /** Returns the object with the settings used for calls to createDestination. */ + public UnaryCallSettings createDestinationSettings() { + return createDestinationSettings; + } + + /** Returns the object with the settings used for calls to createDestination. */ + public OperationCallSettings + createDestinationOperationSettings() { + return createDestinationOperationSettings; + } + + /** Returns the object with the settings used for calls to updateDestination. */ + public UnaryCallSettings updateDestinationSettings() { + return updateDestinationSettings; + } + + /** Returns the object with the settings used for calls to updateDestination. */ + public OperationCallSettings + updateDestinationOperationSettings() { + return updateDestinationOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteDestination. */ + public UnaryCallSettings deleteDestinationSettings() { + return deleteDestinationSettings; + } + + /** Returns the object with the settings used for calls to deleteDestination. */ + public OperationCallSettings + deleteDestinationOperationSettings() { + return deleteDestinationOperationSettings; + } + + /** + * Returns the object with the settings used for calls to + * getMulticloudDataTransferSupportedService. + */ + public UnaryCallSettings< + GetMulticloudDataTransferSupportedServiceRequest, MulticloudDataTransferSupportedService> + getMulticloudDataTransferSupportedServiceSettings() { + return getMulticloudDataTransferSupportedServiceSettings; + } + + /** + * Returns the object with the settings used for calls to + * listMulticloudDataTransferSupportedServices. + */ + public PagedCallSettings< + ListMulticloudDataTransferSupportedServicesRequest, + ListMulticloudDataTransferSupportedServicesResponse, + ListMulticloudDataTransferSupportedServicesPagedResponse> + listMulticloudDataTransferSupportedServicesSettings() { + return listMulticloudDataTransferSupportedServicesSettings; + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return getLocationSettings; + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + public DataTransferServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcDataTransferServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "networkconnectivity"; + } + + /** 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 "networkconnectivity.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "networkconnectivity.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(DataTransferServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected DataTransferServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + listMulticloudDataTransferConfigsSettings = + settingsBuilder.listMulticloudDataTransferConfigsSettings().build(); + getMulticloudDataTransferConfigSettings = + settingsBuilder.getMulticloudDataTransferConfigSettings().build(); + createMulticloudDataTransferConfigSettings = + settingsBuilder.createMulticloudDataTransferConfigSettings().build(); + createMulticloudDataTransferConfigOperationSettings = + settingsBuilder.createMulticloudDataTransferConfigOperationSettings().build(); + updateMulticloudDataTransferConfigSettings = + settingsBuilder.updateMulticloudDataTransferConfigSettings().build(); + updateMulticloudDataTransferConfigOperationSettings = + settingsBuilder.updateMulticloudDataTransferConfigOperationSettings().build(); + deleteMulticloudDataTransferConfigSettings = + settingsBuilder.deleteMulticloudDataTransferConfigSettings().build(); + deleteMulticloudDataTransferConfigOperationSettings = + settingsBuilder.deleteMulticloudDataTransferConfigOperationSettings().build(); + listDestinationsSettings = settingsBuilder.listDestinationsSettings().build(); + getDestinationSettings = settingsBuilder.getDestinationSettings().build(); + createDestinationSettings = settingsBuilder.createDestinationSettings().build(); + createDestinationOperationSettings = + settingsBuilder.createDestinationOperationSettings().build(); + updateDestinationSettings = settingsBuilder.updateDestinationSettings().build(); + updateDestinationOperationSettings = + settingsBuilder.updateDestinationOperationSettings().build(); + deleteDestinationSettings = settingsBuilder.deleteDestinationSettings().build(); + deleteDestinationOperationSettings = + settingsBuilder.deleteDestinationOperationSettings().build(); + getMulticloudDataTransferSupportedServiceSettings = + settingsBuilder.getMulticloudDataTransferSupportedServiceSettings().build(); + listMulticloudDataTransferSupportedServicesSettings = + settingsBuilder.listMulticloudDataTransferSupportedServicesSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); + getLocationSettings = settingsBuilder.getLocationSettings().build(); + setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); + getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); + testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); + } + + /** Builder for DataTransferServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final PagedCallSettings.Builder< + ListMulticloudDataTransferConfigsRequest, + ListMulticloudDataTransferConfigsResponse, + ListMulticloudDataTransferConfigsPagedResponse> + listMulticloudDataTransferConfigsSettings; + private final UnaryCallSettings.Builder< + GetMulticloudDataTransferConfigRequest, MulticloudDataTransferConfig> + getMulticloudDataTransferConfigSettings; + private final UnaryCallSettings.Builder + createMulticloudDataTransferConfigSettings; + private final OperationCallSettings.Builder< + CreateMulticloudDataTransferConfigRequest, + MulticloudDataTransferConfig, + OperationMetadata> + createMulticloudDataTransferConfigOperationSettings; + private final UnaryCallSettings.Builder + updateMulticloudDataTransferConfigSettings; + private final OperationCallSettings.Builder< + UpdateMulticloudDataTransferConfigRequest, + MulticloudDataTransferConfig, + OperationMetadata> + updateMulticloudDataTransferConfigOperationSettings; + private final UnaryCallSettings.Builder + deleteMulticloudDataTransferConfigSettings; + private final OperationCallSettings.Builder< + DeleteMulticloudDataTransferConfigRequest, Empty, OperationMetadata> + deleteMulticloudDataTransferConfigOperationSettings; + private final PagedCallSettings.Builder< + ListDestinationsRequest, ListDestinationsResponse, ListDestinationsPagedResponse> + listDestinationsSettings; + private final UnaryCallSettings.Builder + getDestinationSettings; + private final UnaryCallSettings.Builder + createDestinationSettings; + private final OperationCallSettings.Builder< + CreateDestinationRequest, Destination, OperationMetadata> + createDestinationOperationSettings; + private final UnaryCallSettings.Builder + updateDestinationSettings; + private final OperationCallSettings.Builder< + UpdateDestinationRequest, Destination, OperationMetadata> + updateDestinationOperationSettings; + private final UnaryCallSettings.Builder + deleteDestinationSettings; + private final OperationCallSettings.Builder + deleteDestinationOperationSettings; + private final UnaryCallSettings.Builder< + GetMulticloudDataTransferSupportedServiceRequest, + MulticloudDataTransferSupportedService> + getMulticloudDataTransferSupportedServiceSettings; + private final PagedCallSettings.Builder< + ListMulticloudDataTransferSupportedServicesRequest, + ListMulticloudDataTransferSupportedServicesResponse, + ListMulticloudDataTransferSupportedServicesPagedResponse> + listMulticloudDataTransferSupportedServicesSettings; + private final PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings.Builder getLocationSettings; + private final UnaryCallSettings.Builder setIamPolicySettings; + private final UnaryCallSettings.Builder getIamPolicySettings; + private final UnaryCallSettings.Builder + testIamPermissionsSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put( + "retry_policy_0_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setTotalTimeoutDuration(Duration.ofMillis(60000L)) + .build(); + definitions.put("no_retry_1_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelayDuration(Duration.ofMillis(10000L)) + .setInitialRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setTotalTimeoutDuration(Duration.ofMillis(60000L)) + .build(); + definitions.put("retry_policy_0_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + listMulticloudDataTransferConfigsSettings = + PagedCallSettings.newBuilder(LIST_MULTICLOUD_DATA_TRANSFER_CONFIGS_PAGE_STR_FACT); + getMulticloudDataTransferConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createMulticloudDataTransferConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createMulticloudDataTransferConfigOperationSettings = OperationCallSettings.newBuilder(); + updateMulticloudDataTransferConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateMulticloudDataTransferConfigOperationSettings = OperationCallSettings.newBuilder(); + deleteMulticloudDataTransferConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteMulticloudDataTransferConfigOperationSettings = OperationCallSettings.newBuilder(); + listDestinationsSettings = PagedCallSettings.newBuilder(LIST_DESTINATIONS_PAGE_STR_FACT); + getDestinationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createDestinationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createDestinationOperationSettings = OperationCallSettings.newBuilder(); + updateDestinationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateDestinationOperationSettings = OperationCallSettings.newBuilder(); + deleteDestinationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteDestinationOperationSettings = OperationCallSettings.newBuilder(); + getMulticloudDataTransferSupportedServiceSettings = + UnaryCallSettings.newUnaryCallSettingsBuilder(); + listMulticloudDataTransferSupportedServicesSettings = + PagedCallSettings.newBuilder( + LIST_MULTICLOUD_DATA_TRANSFER_SUPPORTED_SERVICES_PAGE_STR_FACT); + listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); + getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listMulticloudDataTransferConfigsSettings, + getMulticloudDataTransferConfigSettings, + createMulticloudDataTransferConfigSettings, + updateMulticloudDataTransferConfigSettings, + deleteMulticloudDataTransferConfigSettings, + listDestinationsSettings, + getDestinationSettings, + createDestinationSettings, + updateDestinationSettings, + deleteDestinationSettings, + getMulticloudDataTransferSupportedServiceSettings, + listMulticloudDataTransferSupportedServicesSettings, + listLocationsSettings, + getLocationSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); + initDefaults(this); + } + + protected Builder(DataTransferServiceStubSettings settings) { + super(settings); + + listMulticloudDataTransferConfigsSettings = + settings.listMulticloudDataTransferConfigsSettings.toBuilder(); + getMulticloudDataTransferConfigSettings = + settings.getMulticloudDataTransferConfigSettings.toBuilder(); + createMulticloudDataTransferConfigSettings = + settings.createMulticloudDataTransferConfigSettings.toBuilder(); + createMulticloudDataTransferConfigOperationSettings = + settings.createMulticloudDataTransferConfigOperationSettings.toBuilder(); + updateMulticloudDataTransferConfigSettings = + settings.updateMulticloudDataTransferConfigSettings.toBuilder(); + updateMulticloudDataTransferConfigOperationSettings = + settings.updateMulticloudDataTransferConfigOperationSettings.toBuilder(); + deleteMulticloudDataTransferConfigSettings = + settings.deleteMulticloudDataTransferConfigSettings.toBuilder(); + deleteMulticloudDataTransferConfigOperationSettings = + settings.deleteMulticloudDataTransferConfigOperationSettings.toBuilder(); + listDestinationsSettings = settings.listDestinationsSettings.toBuilder(); + getDestinationSettings = settings.getDestinationSettings.toBuilder(); + createDestinationSettings = settings.createDestinationSettings.toBuilder(); + createDestinationOperationSettings = settings.createDestinationOperationSettings.toBuilder(); + updateDestinationSettings = settings.updateDestinationSettings.toBuilder(); + updateDestinationOperationSettings = settings.updateDestinationOperationSettings.toBuilder(); + deleteDestinationSettings = settings.deleteDestinationSettings.toBuilder(); + deleteDestinationOperationSettings = settings.deleteDestinationOperationSettings.toBuilder(); + getMulticloudDataTransferSupportedServiceSettings = + settings.getMulticloudDataTransferSupportedServiceSettings.toBuilder(); + listMulticloudDataTransferSupportedServicesSettings = + settings.listMulticloudDataTransferSupportedServicesSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); + getLocationSettings = settings.getLocationSettings.toBuilder(); + setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); + getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); + testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listMulticloudDataTransferConfigsSettings, + getMulticloudDataTransferConfigSettings, + createMulticloudDataTransferConfigSettings, + updateMulticloudDataTransferConfigSettings, + deleteMulticloudDataTransferConfigSettings, + listDestinationsSettings, + getDestinationSettings, + createDestinationSettings, + updateDestinationSettings, + deleteDestinationSettings, + getMulticloudDataTransferSupportedServiceSettings, + listMulticloudDataTransferSupportedServicesSettings, + listLocationsSettings, + getLocationSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .listMulticloudDataTransferConfigsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .getMulticloudDataTransferConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .createMulticloudDataTransferConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .updateMulticloudDataTransferConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .deleteMulticloudDataTransferConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .listDestinationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .getDestinationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .createDestinationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .updateDestinationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .deleteDestinationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .getMulticloudDataTransferSupportedServiceSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .listMulticloudDataTransferSupportedServicesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .listLocationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getLocationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .setIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .testIamPermissionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createMulticloudDataTransferConfigOperationSettings() + .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( + MulticloudDataTransferConfig.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 + .updateMulticloudDataTransferConfigOperationSettings() + .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( + MulticloudDataTransferConfig.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 + .deleteMulticloudDataTransferConfigOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .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 + .createDestinationOperationSettings() + .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(Destination.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 + .updateDestinationOperationSettings() + .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(Destination.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 + .deleteDestinationOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .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 listMulticloudDataTransferConfigs. */ + public PagedCallSettings.Builder< + ListMulticloudDataTransferConfigsRequest, + ListMulticloudDataTransferConfigsResponse, + ListMulticloudDataTransferConfigsPagedResponse> + listMulticloudDataTransferConfigsSettings() { + return listMulticloudDataTransferConfigsSettings; + } + + /** Returns the builder for the settings used for calls to getMulticloudDataTransferConfig. */ + public UnaryCallSettings.Builder< + GetMulticloudDataTransferConfigRequest, MulticloudDataTransferConfig> + getMulticloudDataTransferConfigSettings() { + return getMulticloudDataTransferConfigSettings; + } + + /** + * Returns the builder for the settings used for calls to createMulticloudDataTransferConfig. + */ + public UnaryCallSettings.Builder + createMulticloudDataTransferConfigSettings() { + return createMulticloudDataTransferConfigSettings; + } + + /** + * Returns the builder for the settings used for calls to createMulticloudDataTransferConfig. + */ + public OperationCallSettings.Builder< + CreateMulticloudDataTransferConfigRequest, + MulticloudDataTransferConfig, + OperationMetadata> + createMulticloudDataTransferConfigOperationSettings() { + return createMulticloudDataTransferConfigOperationSettings; + } + + /** + * Returns the builder for the settings used for calls to updateMulticloudDataTransferConfig. + */ + public UnaryCallSettings.Builder + updateMulticloudDataTransferConfigSettings() { + return updateMulticloudDataTransferConfigSettings; + } + + /** + * Returns the builder for the settings used for calls to updateMulticloudDataTransferConfig. + */ + public OperationCallSettings.Builder< + UpdateMulticloudDataTransferConfigRequest, + MulticloudDataTransferConfig, + OperationMetadata> + updateMulticloudDataTransferConfigOperationSettings() { + return updateMulticloudDataTransferConfigOperationSettings; + } + + /** + * Returns the builder for the settings used for calls to deleteMulticloudDataTransferConfig. + */ + public UnaryCallSettings.Builder + deleteMulticloudDataTransferConfigSettings() { + return deleteMulticloudDataTransferConfigSettings; + } + + /** + * Returns the builder for the settings used for calls to deleteMulticloudDataTransferConfig. + */ + public OperationCallSettings.Builder< + DeleteMulticloudDataTransferConfigRequest, Empty, OperationMetadata> + deleteMulticloudDataTransferConfigOperationSettings() { + return deleteMulticloudDataTransferConfigOperationSettings; + } + + /** Returns the builder for the settings used for calls to listDestinations. */ + public PagedCallSettings.Builder< + ListDestinationsRequest, ListDestinationsResponse, ListDestinationsPagedResponse> + listDestinationsSettings() { + return listDestinationsSettings; + } + + /** Returns the builder for the settings used for calls to getDestination. */ + public UnaryCallSettings.Builder getDestinationSettings() { + return getDestinationSettings; + } + + /** Returns the builder for the settings used for calls to createDestination. */ + public UnaryCallSettings.Builder + createDestinationSettings() { + return createDestinationSettings; + } + + /** Returns the builder for the settings used for calls to createDestination. */ + public OperationCallSettings.Builder + createDestinationOperationSettings() { + return createDestinationOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateDestination. */ + public UnaryCallSettings.Builder + updateDestinationSettings() { + return updateDestinationSettings; + } + + /** Returns the builder for the settings used for calls to updateDestination. */ + public OperationCallSettings.Builder + updateDestinationOperationSettings() { + return updateDestinationOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteDestination. */ + public UnaryCallSettings.Builder + deleteDestinationSettings() { + return deleteDestinationSettings; + } + + /** Returns the builder for the settings used for calls to deleteDestination. */ + public OperationCallSettings.Builder + deleteDestinationOperationSettings() { + return deleteDestinationOperationSettings; + } + + /** + * Returns the builder for the settings used for calls to + * getMulticloudDataTransferSupportedService. + */ + public UnaryCallSettings.Builder< + GetMulticloudDataTransferSupportedServiceRequest, + MulticloudDataTransferSupportedService> + getMulticloudDataTransferSupportedServiceSettings() { + return getMulticloudDataTransferSupportedServiceSettings; + } + + /** + * Returns the builder for the settings used for calls to + * listMulticloudDataTransferSupportedServices. + */ + public PagedCallSettings.Builder< + ListMulticloudDataTransferSupportedServicesRequest, + ListMulticloudDataTransferSupportedServicesResponse, + ListMulticloudDataTransferSupportedServicesPagedResponse> + listMulticloudDataTransferSupportedServicesSettings() { + return listMulticloudDataTransferSupportedServicesSettings; + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getLocationSettings; + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + @Override + public DataTransferServiceStubSettings build() throws IOException { + return new DataTransferServiceStubSettings(this); + } + } +} diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcDataTransferServiceCallableFactory.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcDataTransferServiceCallableFactory.java new file mode 100644 index 000000000000..12c797741812 --- /dev/null +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcDataTransferServiceCallableFactory.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.networkconnectivity.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 DataTransferService service API. + * + *

    This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcDataTransferServiceCallableFactory 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-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcDataTransferServiceStub.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcDataTransferServiceStub.java new file mode 100644 index 000000000000..4c7e94b1695e --- /dev/null +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcDataTransferServiceStub.java @@ -0,0 +1,940 @@ +/* + * 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.networkconnectivity.v1.stub; + +import static com.google.cloud.networkconnectivity.v1.DataTransferServiceClient.ListDestinationsPagedResponse; +import static com.google.cloud.networkconnectivity.v1.DataTransferServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.networkconnectivity.v1.DataTransferServiceClient.ListMulticloudDataTransferConfigsPagedResponse; +import static com.google.cloud.networkconnectivity.v1.DataTransferServiceClient.ListMulticloudDataTransferSupportedServicesPagedResponse; + +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.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networkconnectivity.v1.CreateDestinationRequest; +import com.google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest; +import com.google.cloud.networkconnectivity.v1.DeleteDestinationRequest; +import com.google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest; +import com.google.cloud.networkconnectivity.v1.Destination; +import com.google.cloud.networkconnectivity.v1.GetDestinationRequest; +import com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest; +import com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferSupportedServiceRequest; +import com.google.cloud.networkconnectivity.v1.ListDestinationsRequest; +import com.google.cloud.networkconnectivity.v1.ListDestinationsResponse; +import com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest; +import com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse; +import com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferSupportedServicesRequest; +import com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferSupportedServicesResponse; +import com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig; +import com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService; +import com.google.cloud.networkconnectivity.v1.OperationMetadata; +import com.google.cloud.networkconnectivity.v1.UpdateDestinationRequest; +import com.google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the DataTransferService service API. + * + *

    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcDataTransferServiceStub extends DataTransferServiceStub { + private static final MethodDescriptor< + ListMulticloudDataTransferConfigsRequest, ListMulticloudDataTransferConfigsResponse> + listMulticloudDataTransferConfigsMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networkconnectivity.v1.DataTransferService/ListMulticloudDataTransferConfigs") + .setRequestMarshaller( + ProtoUtils.marshaller( + ListMulticloudDataTransferConfigsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + ListMulticloudDataTransferConfigsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + GetMulticloudDataTransferConfigRequest, MulticloudDataTransferConfig> + getMulticloudDataTransferConfigMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networkconnectivity.v1.DataTransferService/GetMulticloudDataTransferConfig") + .setRequestMarshaller( + ProtoUtils.marshaller( + GetMulticloudDataTransferConfigRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(MulticloudDataTransferConfig.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createMulticloudDataTransferConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networkconnectivity.v1.DataTransferService/CreateMulticloudDataTransferConfig") + .setRequestMarshaller( + ProtoUtils.marshaller( + CreateMulticloudDataTransferConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateMulticloudDataTransferConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networkconnectivity.v1.DataTransferService/UpdateMulticloudDataTransferConfig") + .setRequestMarshaller( + ProtoUtils.marshaller( + UpdateMulticloudDataTransferConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteMulticloudDataTransferConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networkconnectivity.v1.DataTransferService/DeleteMulticloudDataTransferConfig") + .setRequestMarshaller( + ProtoUtils.marshaller( + DeleteMulticloudDataTransferConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listDestinationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networkconnectivity.v1.DataTransferService/ListDestinations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListDestinationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListDestinationsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getDestinationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networkconnectivity.v1.DataTransferService/GetDestination") + .setRequestMarshaller( + ProtoUtils.marshaller(GetDestinationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Destination.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createDestinationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networkconnectivity.v1.DataTransferService/CreateDestination") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateDestinationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateDestinationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networkconnectivity.v1.DataTransferService/UpdateDestination") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateDestinationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteDestinationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networkconnectivity.v1.DataTransferService/DeleteDestination") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteDestinationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + GetMulticloudDataTransferSupportedServiceRequest, MulticloudDataTransferSupportedService> + getMulticloudDataTransferSupportedServiceMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networkconnectivity.v1.DataTransferService/GetMulticloudDataTransferSupportedService") + .setRequestMarshaller( + ProtoUtils.marshaller( + GetMulticloudDataTransferSupportedServiceRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + MulticloudDataTransferSupportedService.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + ListMulticloudDataTransferSupportedServicesRequest, + ListMulticloudDataTransferSupportedServicesResponse> + listMulticloudDataTransferSupportedServicesMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networkconnectivity.v1.DataTransferService/ListMulticloudDataTransferSupportedServices") + .setRequestMarshaller( + ProtoUtils.marshaller( + ListMulticloudDataTransferSupportedServicesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + ListMulticloudDataTransferSupportedServicesResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .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())) + .setSampledToLocalTracing(true) + .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())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor setIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + testIamPermissionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions") + .setRequestMarshaller( + ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final UnaryCallable< + ListMulticloudDataTransferConfigsRequest, ListMulticloudDataTransferConfigsResponse> + listMulticloudDataTransferConfigsCallable; + private final UnaryCallable< + ListMulticloudDataTransferConfigsRequest, ListMulticloudDataTransferConfigsPagedResponse> + listMulticloudDataTransferConfigsPagedCallable; + private final UnaryCallable + getMulticloudDataTransferConfigCallable; + private final UnaryCallable + createMulticloudDataTransferConfigCallable; + private final OperationCallable< + CreateMulticloudDataTransferConfigRequest, + MulticloudDataTransferConfig, + OperationMetadata> + createMulticloudDataTransferConfigOperationCallable; + private final UnaryCallable + updateMulticloudDataTransferConfigCallable; + private final OperationCallable< + UpdateMulticloudDataTransferConfigRequest, + MulticloudDataTransferConfig, + OperationMetadata> + updateMulticloudDataTransferConfigOperationCallable; + private final UnaryCallable + deleteMulticloudDataTransferConfigCallable; + private final OperationCallable< + DeleteMulticloudDataTransferConfigRequest, Empty, OperationMetadata> + deleteMulticloudDataTransferConfigOperationCallable; + private final UnaryCallable + listDestinationsCallable; + private final UnaryCallable + listDestinationsPagedCallable; + private final UnaryCallable getDestinationCallable; + private final UnaryCallable createDestinationCallable; + private final OperationCallable + createDestinationOperationCallable; + private final UnaryCallable updateDestinationCallable; + private final OperationCallable + updateDestinationOperationCallable; + private final UnaryCallable deleteDestinationCallable; + private final OperationCallable + deleteDestinationOperationCallable; + private final UnaryCallable< + GetMulticloudDataTransferSupportedServiceRequest, MulticloudDataTransferSupportedService> + getMulticloudDataTransferSupportedServiceCallable; + private final UnaryCallable< + ListMulticloudDataTransferSupportedServicesRequest, + ListMulticloudDataTransferSupportedServicesResponse> + listMulticloudDataTransferSupportedServicesCallable; + private final UnaryCallable< + ListMulticloudDataTransferSupportedServicesRequest, + ListMulticloudDataTransferSupportedServicesPagedResponse> + listMulticloudDataTransferSupportedServicesPagedCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcDataTransferServiceStub create(DataTransferServiceStubSettings settings) + throws IOException { + return new GrpcDataTransferServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcDataTransferServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcDataTransferServiceStub( + DataTransferServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcDataTransferServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcDataTransferServiceStub( + DataTransferServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcDataTransferServiceStub, 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 GrpcDataTransferServiceStub( + DataTransferServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcDataTransferServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcDataTransferServiceStub, 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 GrpcDataTransferServiceStub( + DataTransferServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings< + ListMulticloudDataTransferConfigsRequest, ListMulticloudDataTransferConfigsResponse> + listMulticloudDataTransferConfigsTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(listMulticloudDataTransferConfigsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getMulticloudDataTransferConfigTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(getMulticloudDataTransferConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + createMulticloudDataTransferConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createMulticloudDataTransferConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + updateMulticloudDataTransferConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateMulticloudDataTransferConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "multicloud_data_transfer_config.name", + String.valueOf(request.getMulticloudDataTransferConfig().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + deleteMulticloudDataTransferConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteMulticloudDataTransferConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listDestinationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listDestinationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getDestinationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getDestinationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createDestinationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createDestinationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateDestinationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateDestinationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "destination.name", String.valueOf(request.getDestination().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteDestinationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteDestinationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings< + GetMulticloudDataTransferSupportedServiceRequest, + MulticloudDataTransferSupportedService> + getMulticloudDataTransferSupportedServiceTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(getMulticloudDataTransferSupportedServiceMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings< + ListMulticloudDataTransferSupportedServicesRequest, + ListMulticloudDataTransferSupportedServicesResponse> + listMulticloudDataTransferSupportedServicesTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(listMulticloudDataTransferSupportedServicesMethodDescriptor) + .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(); + GrpcCallSettings setIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .build(); + GrpcCallSettings getIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .build(); + GrpcCallSettings + testIamPermissionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .build(); + + this.listMulticloudDataTransferConfigsCallable = + callableFactory.createUnaryCallable( + listMulticloudDataTransferConfigsTransportSettings, + settings.listMulticloudDataTransferConfigsSettings(), + clientContext); + this.listMulticloudDataTransferConfigsPagedCallable = + callableFactory.createPagedCallable( + listMulticloudDataTransferConfigsTransportSettings, + settings.listMulticloudDataTransferConfigsSettings(), + clientContext); + this.getMulticloudDataTransferConfigCallable = + callableFactory.createUnaryCallable( + getMulticloudDataTransferConfigTransportSettings, + settings.getMulticloudDataTransferConfigSettings(), + clientContext); + this.createMulticloudDataTransferConfigCallable = + callableFactory.createUnaryCallable( + createMulticloudDataTransferConfigTransportSettings, + settings.createMulticloudDataTransferConfigSettings(), + clientContext); + this.createMulticloudDataTransferConfigOperationCallable = + callableFactory.createOperationCallable( + createMulticloudDataTransferConfigTransportSettings, + settings.createMulticloudDataTransferConfigOperationSettings(), + clientContext, + operationsStub); + this.updateMulticloudDataTransferConfigCallable = + callableFactory.createUnaryCallable( + updateMulticloudDataTransferConfigTransportSettings, + settings.updateMulticloudDataTransferConfigSettings(), + clientContext); + this.updateMulticloudDataTransferConfigOperationCallable = + callableFactory.createOperationCallable( + updateMulticloudDataTransferConfigTransportSettings, + settings.updateMulticloudDataTransferConfigOperationSettings(), + clientContext, + operationsStub); + this.deleteMulticloudDataTransferConfigCallable = + callableFactory.createUnaryCallable( + deleteMulticloudDataTransferConfigTransportSettings, + settings.deleteMulticloudDataTransferConfigSettings(), + clientContext); + this.deleteMulticloudDataTransferConfigOperationCallable = + callableFactory.createOperationCallable( + deleteMulticloudDataTransferConfigTransportSettings, + settings.deleteMulticloudDataTransferConfigOperationSettings(), + clientContext, + operationsStub); + this.listDestinationsCallable = + callableFactory.createUnaryCallable( + listDestinationsTransportSettings, settings.listDestinationsSettings(), clientContext); + this.listDestinationsPagedCallable = + callableFactory.createPagedCallable( + listDestinationsTransportSettings, settings.listDestinationsSettings(), clientContext); + this.getDestinationCallable = + callableFactory.createUnaryCallable( + getDestinationTransportSettings, settings.getDestinationSettings(), clientContext); + this.createDestinationCallable = + callableFactory.createUnaryCallable( + createDestinationTransportSettings, + settings.createDestinationSettings(), + clientContext); + this.createDestinationOperationCallable = + callableFactory.createOperationCallable( + createDestinationTransportSettings, + settings.createDestinationOperationSettings(), + clientContext, + operationsStub); + this.updateDestinationCallable = + callableFactory.createUnaryCallable( + updateDestinationTransportSettings, + settings.updateDestinationSettings(), + clientContext); + this.updateDestinationOperationCallable = + callableFactory.createOperationCallable( + updateDestinationTransportSettings, + settings.updateDestinationOperationSettings(), + clientContext, + operationsStub); + this.deleteDestinationCallable = + callableFactory.createUnaryCallable( + deleteDestinationTransportSettings, + settings.deleteDestinationSettings(), + clientContext); + this.deleteDestinationOperationCallable = + callableFactory.createOperationCallable( + deleteDestinationTransportSettings, + settings.deleteDestinationOperationSettings(), + clientContext, + operationsStub); + this.getMulticloudDataTransferSupportedServiceCallable = + callableFactory.createUnaryCallable( + getMulticloudDataTransferSupportedServiceTransportSettings, + settings.getMulticloudDataTransferSupportedServiceSettings(), + clientContext); + this.listMulticloudDataTransferSupportedServicesCallable = + callableFactory.createUnaryCallable( + listMulticloudDataTransferSupportedServicesTransportSettings, + settings.listMulticloudDataTransferSupportedServicesSettings(), + clientContext); + this.listMulticloudDataTransferSupportedServicesPagedCallable = + callableFactory.createPagedCallable( + listMulticloudDataTransferSupportedServicesTransportSettings, + settings.listMulticloudDataTransferSupportedServicesSettings(), + clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable< + ListMulticloudDataTransferConfigsRequest, ListMulticloudDataTransferConfigsResponse> + listMulticloudDataTransferConfigsCallable() { + return listMulticloudDataTransferConfigsCallable; + } + + @Override + public UnaryCallable< + ListMulticloudDataTransferConfigsRequest, ListMulticloudDataTransferConfigsPagedResponse> + listMulticloudDataTransferConfigsPagedCallable() { + return listMulticloudDataTransferConfigsPagedCallable; + } + + @Override + public UnaryCallable + getMulticloudDataTransferConfigCallable() { + return getMulticloudDataTransferConfigCallable; + } + + @Override + public UnaryCallable + createMulticloudDataTransferConfigCallable() { + return createMulticloudDataTransferConfigCallable; + } + + @Override + public OperationCallable< + CreateMulticloudDataTransferConfigRequest, + MulticloudDataTransferConfig, + OperationMetadata> + createMulticloudDataTransferConfigOperationCallable() { + return createMulticloudDataTransferConfigOperationCallable; + } + + @Override + public UnaryCallable + updateMulticloudDataTransferConfigCallable() { + return updateMulticloudDataTransferConfigCallable; + } + + @Override + public OperationCallable< + UpdateMulticloudDataTransferConfigRequest, + MulticloudDataTransferConfig, + OperationMetadata> + updateMulticloudDataTransferConfigOperationCallable() { + return updateMulticloudDataTransferConfigOperationCallable; + } + + @Override + public UnaryCallable + deleteMulticloudDataTransferConfigCallable() { + return deleteMulticloudDataTransferConfigCallable; + } + + @Override + public OperationCallable + deleteMulticloudDataTransferConfigOperationCallable() { + return deleteMulticloudDataTransferConfigOperationCallable; + } + + @Override + public UnaryCallable + listDestinationsCallable() { + return listDestinationsCallable; + } + + @Override + public UnaryCallable + listDestinationsPagedCallable() { + return listDestinationsPagedCallable; + } + + @Override + public UnaryCallable getDestinationCallable() { + return getDestinationCallable; + } + + @Override + public UnaryCallable createDestinationCallable() { + return createDestinationCallable; + } + + @Override + public OperationCallable + createDestinationOperationCallable() { + return createDestinationOperationCallable; + } + + @Override + public UnaryCallable updateDestinationCallable() { + return updateDestinationCallable; + } + + @Override + public OperationCallable + updateDestinationOperationCallable() { + return updateDestinationOperationCallable; + } + + @Override + public UnaryCallable deleteDestinationCallable() { + return deleteDestinationCallable; + } + + @Override + public OperationCallable + deleteDestinationOperationCallable() { + return deleteDestinationOperationCallable; + } + + @Override + public UnaryCallable< + GetMulticloudDataTransferSupportedServiceRequest, MulticloudDataTransferSupportedService> + getMulticloudDataTransferSupportedServiceCallable() { + return getMulticloudDataTransferSupportedServiceCallable; + } + + @Override + public UnaryCallable< + ListMulticloudDataTransferSupportedServicesRequest, + ListMulticloudDataTransferSupportedServicesResponse> + listMulticloudDataTransferSupportedServicesCallable() { + return listMulticloudDataTransferSupportedServicesCallable; + } + + @Override + public UnaryCallable< + ListMulticloudDataTransferSupportedServicesRequest, + ListMulticloudDataTransferSupportedServicesPagedResponse> + listMulticloudDataTransferSupportedServicesPagedCallable() { + return listMulticloudDataTransferSupportedServicesPagedCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/resources/META-INF/native-image/com.google.cloud.networkconnectivity.v1/reflect-config.json b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/resources/META-INF/native-image/com.google.cloud.networkconnectivity.v1/reflect-config.json index ebdbf2f74afe..7bfaaf4c1f1c 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/resources/META-INF/native-image/com.google.cloud.networkconnectivity.v1/reflect-config.json +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/resources/META-INF/native-image/com.google.cloud.networkconnectivity.v1/reflect-config.json @@ -629,6 +629,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkconnectivity.v1.CreateDestinationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.CreateDestinationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkconnectivity.v1.CreateHubRequest", "queryAllDeclaredConstructors": true, @@ -665,6 +683,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest", "queryAllDeclaredConstructors": true, @@ -755,6 +791,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkconnectivity.v1.DeleteDestinationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.DeleteDestinationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkconnectivity.v1.DeleteHubRequest", "queryAllDeclaredConstructors": true, @@ -791,6 +845,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest", "queryAllDeclaredConstructors": true, @@ -899,6 +971,69 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkconnectivity.v1.Destination", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.Destination$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.Destination$DestinationEndpoint", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.Destination$DestinationEndpoint$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.Destination$DestinationEndpoint$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.GetDestinationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.GetDestinationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkconnectivity.v1.GetGroupRequest", "queryAllDeclaredConstructors": true, @@ -953,6 +1088,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferSupportedServiceRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferSupportedServiceRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest", "queryAllDeclaredConstructors": true, @@ -1349,6 +1520,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkconnectivity.v1.ListDestinationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.ListDestinationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.ListDestinationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.ListDestinationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkconnectivity.v1.ListGroupsRequest", "queryAllDeclaredConstructors": true, @@ -1502,6 +1709,78 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferSupportedServicesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferSupportedServicesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferSupportedServicesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferSupportedServicesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest", "queryAllDeclaredConstructors": true, @@ -1817,6 +2096,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkconnectivity.v1.NextHopInterconnectAttachment", "queryAllDeclaredConstructors": true, @@ -2276,6 +2591,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkconnectivity.v1.ServiceConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.ServiceConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.ServiceConfig$EligibilityCriteria", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkconnectivity.v1.ServiceConnectionMap", "queryAllDeclaredConstructors": true, @@ -2591,6 +2933,69 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkconnectivity.v1.StateTimeline", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.StateTimeline$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.StateTimeline$StateMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.StateTimeline$StateMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.StateTimeline$StateMetadata$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.UpdateDestinationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.UpdateDestinationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkconnectivity.v1.UpdateGroupRequest", "queryAllDeclaredConstructors": true, @@ -2645,6 +3050,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkconnectivity.v1.UpdateServiceClassRequest", "queryAllDeclaredConstructors": true, diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/DataTransferServiceClientTest.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/DataTransferServiceClientTest.java new file mode 100644 index 000000000000..7055971178a3 --- /dev/null +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/DataTransferServiceClientTest.java @@ -0,0 +1,1559 @@ +/* + * 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.networkconnectivity.v1; + +import static com.google.cloud.networkconnectivity.v1.DataTransferServiceClient.ListDestinationsPagedResponse; +import static com.google.cloud.networkconnectivity.v1.DataTransferServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.networkconnectivity.v1.DataTransferServiceClient.ListMulticloudDataTransferConfigsPagedResponse; +import static com.google.cloud.networkconnectivity.v1.DataTransferServiceClient.ListMulticloudDataTransferSupportedServicesPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.ByteString; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class DataTransferServiceClientTest { + private static MockDataTransferService mockDataTransferService; + private static MockIAMPolicy mockIAMPolicy; + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private DataTransferServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockDataTransferService = new MockDataTransferService(); + mockLocations = new MockLocations(); + mockIAMPolicy = new MockIAMPolicy(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockDataTransferService, mockLocations, mockIAMPolicy)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + DataTransferServiceSettings settings = + DataTransferServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = DataTransferServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void listMulticloudDataTransferConfigsTest() throws Exception { + MulticloudDataTransferConfig responsesElement = + MulticloudDataTransferConfig.newBuilder().build(); + ListMulticloudDataTransferConfigsResponse expectedResponse = + ListMulticloudDataTransferConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllMulticloudDataTransferConfigs(Arrays.asList(responsesElement)) + .build(); + mockDataTransferService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListMulticloudDataTransferConfigsPagedResponse pagedListResponse = + client.listMulticloudDataTransferConfigs(parent); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getMulticloudDataTransferConfigsList().get(0), resources.get(0)); + + List actualRequests = mockDataTransferService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListMulticloudDataTransferConfigsRequest actualRequest = + ((ListMulticloudDataTransferConfigsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listMulticloudDataTransferConfigsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataTransferService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listMulticloudDataTransferConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMulticloudDataTransferConfigsTest2() throws Exception { + MulticloudDataTransferConfig responsesElement = + MulticloudDataTransferConfig.newBuilder().build(); + ListMulticloudDataTransferConfigsResponse expectedResponse = + ListMulticloudDataTransferConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllMulticloudDataTransferConfigs(Arrays.asList(responsesElement)) + .build(); + mockDataTransferService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListMulticloudDataTransferConfigsPagedResponse pagedListResponse = + client.listMulticloudDataTransferConfigs(parent); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getMulticloudDataTransferConfigsList().get(0), resources.get(0)); + + List actualRequests = mockDataTransferService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListMulticloudDataTransferConfigsRequest actualRequest = + ((ListMulticloudDataTransferConfigsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listMulticloudDataTransferConfigsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataTransferService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listMulticloudDataTransferConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMulticloudDataTransferConfigTest() throws Exception { + MulticloudDataTransferConfig expectedResponse = + MulticloudDataTransferConfig.newBuilder() + .setName( + MulticloudDataTransferConfigName.of( + "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .setDescription("description-1724546052") + .setDestinationsCount(-1276771723) + .setDestinationsActiveCount(-331520400) + .putAllServices(new HashMap()) + .setUid("uid115792") + .build(); + mockDataTransferService.addResponse(expectedResponse); + + MulticloudDataTransferConfigName name = + MulticloudDataTransferConfigName.of( + "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]"); + + MulticloudDataTransferConfig actualResponse = client.getMulticloudDataTransferConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataTransferService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetMulticloudDataTransferConfigRequest actualRequest = + ((GetMulticloudDataTransferConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getMulticloudDataTransferConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataTransferService.addException(exception); + + try { + MulticloudDataTransferConfigName name = + MulticloudDataTransferConfigName.of( + "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]"); + client.getMulticloudDataTransferConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMulticloudDataTransferConfigTest2() throws Exception { + MulticloudDataTransferConfig expectedResponse = + MulticloudDataTransferConfig.newBuilder() + .setName( + MulticloudDataTransferConfigName.of( + "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .setDescription("description-1724546052") + .setDestinationsCount(-1276771723) + .setDestinationsActiveCount(-331520400) + .putAllServices(new HashMap()) + .setUid("uid115792") + .build(); + mockDataTransferService.addResponse(expectedResponse); + + String name = "name3373707"; + + MulticloudDataTransferConfig actualResponse = client.getMulticloudDataTransferConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataTransferService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetMulticloudDataTransferConfigRequest actualRequest = + ((GetMulticloudDataTransferConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getMulticloudDataTransferConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataTransferService.addException(exception); + + try { + String name = "name3373707"; + client.getMulticloudDataTransferConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createMulticloudDataTransferConfigTest() throws Exception { + MulticloudDataTransferConfig expectedResponse = + MulticloudDataTransferConfig.newBuilder() + .setName( + MulticloudDataTransferConfigName.of( + "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .setDescription("description-1724546052") + .setDestinationsCount(-1276771723) + .setDestinationsActiveCount(-331520400) + .putAllServices(new HashMap()) + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createMulticloudDataTransferConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataTransferService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + MulticloudDataTransferConfig multicloudDataTransferConfig = + MulticloudDataTransferConfig.newBuilder().build(); + String multicloudDataTransferConfigId = "multicloudDataTransferConfigId-1067608178"; + + MulticloudDataTransferConfig actualResponse = + client + .createMulticloudDataTransferConfigAsync( + parent, multicloudDataTransferConfig, multicloudDataTransferConfigId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataTransferService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateMulticloudDataTransferConfigRequest actualRequest = + ((CreateMulticloudDataTransferConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals( + multicloudDataTransferConfig, actualRequest.getMulticloudDataTransferConfig()); + Assert.assertEquals( + multicloudDataTransferConfigId, actualRequest.getMulticloudDataTransferConfigId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createMulticloudDataTransferConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataTransferService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + MulticloudDataTransferConfig multicloudDataTransferConfig = + MulticloudDataTransferConfig.newBuilder().build(); + String multicloudDataTransferConfigId = "multicloudDataTransferConfigId-1067608178"; + client + .createMulticloudDataTransferConfigAsync( + parent, multicloudDataTransferConfig, multicloudDataTransferConfigId) + .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 createMulticloudDataTransferConfigTest2() throws Exception { + MulticloudDataTransferConfig expectedResponse = + MulticloudDataTransferConfig.newBuilder() + .setName( + MulticloudDataTransferConfigName.of( + "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .setDescription("description-1724546052") + .setDestinationsCount(-1276771723) + .setDestinationsActiveCount(-331520400) + .putAllServices(new HashMap()) + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createMulticloudDataTransferConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataTransferService.addResponse(resultOperation); + + String parent = "parent-995424086"; + MulticloudDataTransferConfig multicloudDataTransferConfig = + MulticloudDataTransferConfig.newBuilder().build(); + String multicloudDataTransferConfigId = "multicloudDataTransferConfigId-1067608178"; + + MulticloudDataTransferConfig actualResponse = + client + .createMulticloudDataTransferConfigAsync( + parent, multicloudDataTransferConfig, multicloudDataTransferConfigId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataTransferService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateMulticloudDataTransferConfigRequest actualRequest = + ((CreateMulticloudDataTransferConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals( + multicloudDataTransferConfig, actualRequest.getMulticloudDataTransferConfig()); + Assert.assertEquals( + multicloudDataTransferConfigId, actualRequest.getMulticloudDataTransferConfigId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createMulticloudDataTransferConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataTransferService.addException(exception); + + try { + String parent = "parent-995424086"; + MulticloudDataTransferConfig multicloudDataTransferConfig = + MulticloudDataTransferConfig.newBuilder().build(); + String multicloudDataTransferConfigId = "multicloudDataTransferConfigId-1067608178"; + client + .createMulticloudDataTransferConfigAsync( + parent, multicloudDataTransferConfig, multicloudDataTransferConfigId) + .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 updateMulticloudDataTransferConfigTest() throws Exception { + MulticloudDataTransferConfig expectedResponse = + MulticloudDataTransferConfig.newBuilder() + .setName( + MulticloudDataTransferConfigName.of( + "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .setDescription("description-1724546052") + .setDestinationsCount(-1276771723) + .setDestinationsActiveCount(-331520400) + .putAllServices(new HashMap()) + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateMulticloudDataTransferConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataTransferService.addResponse(resultOperation); + + MulticloudDataTransferConfig multicloudDataTransferConfig = + MulticloudDataTransferConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + MulticloudDataTransferConfig actualResponse = + client + .updateMulticloudDataTransferConfigAsync(multicloudDataTransferConfig, updateMask) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataTransferService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateMulticloudDataTransferConfigRequest actualRequest = + ((UpdateMulticloudDataTransferConfigRequest) actualRequests.get(0)); + + Assert.assertEquals( + multicloudDataTransferConfig, actualRequest.getMulticloudDataTransferConfig()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateMulticloudDataTransferConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataTransferService.addException(exception); + + try { + MulticloudDataTransferConfig multicloudDataTransferConfig = + MulticloudDataTransferConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client + .updateMulticloudDataTransferConfigAsync(multicloudDataTransferConfig, updateMask) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteMulticloudDataTransferConfigTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteMulticloudDataTransferConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataTransferService.addResponse(resultOperation); + + MulticloudDataTransferConfigName name = + MulticloudDataTransferConfigName.of( + "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]"); + + client.deleteMulticloudDataTransferConfigAsync(name).get(); + + List actualRequests = mockDataTransferService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteMulticloudDataTransferConfigRequest actualRequest = + ((DeleteMulticloudDataTransferConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteMulticloudDataTransferConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataTransferService.addException(exception); + + try { + MulticloudDataTransferConfigName name = + MulticloudDataTransferConfigName.of( + "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]"); + client.deleteMulticloudDataTransferConfigAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteMulticloudDataTransferConfigTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteMulticloudDataTransferConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataTransferService.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteMulticloudDataTransferConfigAsync(name).get(); + + List actualRequests = mockDataTransferService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteMulticloudDataTransferConfigRequest actualRequest = + ((DeleteMulticloudDataTransferConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteMulticloudDataTransferConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataTransferService.addException(exception); + + try { + String name = "name3373707"; + client.deleteMulticloudDataTransferConfigAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listDestinationsTest() throws Exception { + Destination responsesElement = Destination.newBuilder().build(); + ListDestinationsResponse expectedResponse = + ListDestinationsResponse.newBuilder() + .setNextPageToken("") + .addAllDestinations(Arrays.asList(responsesElement)) + .build(); + mockDataTransferService.addResponse(expectedResponse); + + MulticloudDataTransferConfigName parent = + MulticloudDataTransferConfigName.of( + "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]"); + + ListDestinationsPagedResponse pagedListResponse = client.listDestinations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDestinationsList().get(0), resources.get(0)); + + List actualRequests = mockDataTransferService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDestinationsRequest actualRequest = ((ListDestinationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDestinationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataTransferService.addException(exception); + + try { + MulticloudDataTransferConfigName parent = + MulticloudDataTransferConfigName.of( + "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]"); + client.listDestinations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDestinationsTest2() throws Exception { + Destination responsesElement = Destination.newBuilder().build(); + ListDestinationsResponse expectedResponse = + ListDestinationsResponse.newBuilder() + .setNextPageToken("") + .addAllDestinations(Arrays.asList(responsesElement)) + .build(); + mockDataTransferService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListDestinationsPagedResponse pagedListResponse = client.listDestinations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDestinationsList().get(0), resources.get(0)); + + List actualRequests = mockDataTransferService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDestinationsRequest actualRequest = ((ListDestinationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDestinationsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataTransferService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listDestinations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDestinationTest() throws Exception { + Destination expectedResponse = + Destination.newBuilder() + .setName( + DestinationName.of( + "[PROJECT]", + "[LOCATION]", + "[MULTICLOUD_DATA_TRANSFER_CONFIG]", + "[DESTINATION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .setDescription("description-1724546052") + .setIpPrefix("ipPrefix1326379673") + .addAllEndpoints(new ArrayList()) + .setStateTimeline(StateTimeline.newBuilder().build()) + .setUid("uid115792") + .build(); + mockDataTransferService.addResponse(expectedResponse); + + DestinationName name = + DestinationName.of( + "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]", "[DESTINATION]"); + + Destination actualResponse = client.getDestination(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataTransferService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDestinationRequest actualRequest = ((GetDestinationRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDestinationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataTransferService.addException(exception); + + try { + DestinationName name = + DestinationName.of( + "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]", "[DESTINATION]"); + client.getDestination(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDestinationTest2() throws Exception { + Destination expectedResponse = + Destination.newBuilder() + .setName( + DestinationName.of( + "[PROJECT]", + "[LOCATION]", + "[MULTICLOUD_DATA_TRANSFER_CONFIG]", + "[DESTINATION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .setDescription("description-1724546052") + .setIpPrefix("ipPrefix1326379673") + .addAllEndpoints(new ArrayList()) + .setStateTimeline(StateTimeline.newBuilder().build()) + .setUid("uid115792") + .build(); + mockDataTransferService.addResponse(expectedResponse); + + String name = "name3373707"; + + Destination actualResponse = client.getDestination(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataTransferService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDestinationRequest actualRequest = ((GetDestinationRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDestinationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataTransferService.addException(exception); + + try { + String name = "name3373707"; + client.getDestination(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createDestinationTest() throws Exception { + Destination expectedResponse = + Destination.newBuilder() + .setName( + DestinationName.of( + "[PROJECT]", + "[LOCATION]", + "[MULTICLOUD_DATA_TRANSFER_CONFIG]", + "[DESTINATION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .setDescription("description-1724546052") + .setIpPrefix("ipPrefix1326379673") + .addAllEndpoints(new ArrayList()) + .setStateTimeline(StateTimeline.newBuilder().build()) + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createDestinationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataTransferService.addResponse(resultOperation); + + MulticloudDataTransferConfigName parent = + MulticloudDataTransferConfigName.of( + "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]"); + Destination destination = Destination.newBuilder().build(); + String destinationId = "destinationId306545097"; + + Destination actualResponse = + client.createDestinationAsync(parent, destination, destinationId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataTransferService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateDestinationRequest actualRequest = ((CreateDestinationRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(destination, actualRequest.getDestination()); + Assert.assertEquals(destinationId, actualRequest.getDestinationId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createDestinationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataTransferService.addException(exception); + + try { + MulticloudDataTransferConfigName parent = + MulticloudDataTransferConfigName.of( + "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]"); + Destination destination = Destination.newBuilder().build(); + String destinationId = "destinationId306545097"; + client.createDestinationAsync(parent, destination, destinationId).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 createDestinationTest2() throws Exception { + Destination expectedResponse = + Destination.newBuilder() + .setName( + DestinationName.of( + "[PROJECT]", + "[LOCATION]", + "[MULTICLOUD_DATA_TRANSFER_CONFIG]", + "[DESTINATION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .setDescription("description-1724546052") + .setIpPrefix("ipPrefix1326379673") + .addAllEndpoints(new ArrayList()) + .setStateTimeline(StateTimeline.newBuilder().build()) + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createDestinationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataTransferService.addResponse(resultOperation); + + String parent = "parent-995424086"; + Destination destination = Destination.newBuilder().build(); + String destinationId = "destinationId306545097"; + + Destination actualResponse = + client.createDestinationAsync(parent, destination, destinationId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataTransferService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateDestinationRequest actualRequest = ((CreateDestinationRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(destination, actualRequest.getDestination()); + Assert.assertEquals(destinationId, actualRequest.getDestinationId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createDestinationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataTransferService.addException(exception); + + try { + String parent = "parent-995424086"; + Destination destination = Destination.newBuilder().build(); + String destinationId = "destinationId306545097"; + client.createDestinationAsync(parent, destination, destinationId).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 updateDestinationTest() throws Exception { + Destination expectedResponse = + Destination.newBuilder() + .setName( + DestinationName.of( + "[PROJECT]", + "[LOCATION]", + "[MULTICLOUD_DATA_TRANSFER_CONFIG]", + "[DESTINATION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .setDescription("description-1724546052") + .setIpPrefix("ipPrefix1326379673") + .addAllEndpoints(new ArrayList()) + .setStateTimeline(StateTimeline.newBuilder().build()) + .setUid("uid115792") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateDestinationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataTransferService.addResponse(resultOperation); + + Destination destination = Destination.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Destination actualResponse = client.updateDestinationAsync(destination, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataTransferService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateDestinationRequest actualRequest = ((UpdateDestinationRequest) actualRequests.get(0)); + + Assert.assertEquals(destination, actualRequest.getDestination()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateDestinationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataTransferService.addException(exception); + + try { + Destination destination = Destination.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateDestinationAsync(destination, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteDestinationTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteDestinationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataTransferService.addResponse(resultOperation); + + DestinationName name = + DestinationName.of( + "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]", "[DESTINATION]"); + + client.deleteDestinationAsync(name).get(); + + List actualRequests = mockDataTransferService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteDestinationRequest actualRequest = ((DeleteDestinationRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteDestinationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataTransferService.addException(exception); + + try { + DestinationName name = + DestinationName.of( + "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]", "[DESTINATION]"); + client.deleteDestinationAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteDestinationTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteDestinationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataTransferService.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteDestinationAsync(name).get(); + + List actualRequests = mockDataTransferService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteDestinationRequest actualRequest = ((DeleteDestinationRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteDestinationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataTransferService.addException(exception); + + try { + String name = "name3373707"; + client.deleteDestinationAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void getMulticloudDataTransferSupportedServiceTest() throws Exception { + MulticloudDataTransferSupportedService expectedResponse = + MulticloudDataTransferSupportedService.newBuilder() + .setName( + MulticloudDataTransferSupportedServiceName.of( + "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_SUPPORTED_SERVICE]") + .toString()) + .addAllServiceConfigs(new ArrayList()) + .build(); + mockDataTransferService.addResponse(expectedResponse); + + MulticloudDataTransferSupportedServiceName name = + MulticloudDataTransferSupportedServiceName.of( + "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_SUPPORTED_SERVICE]"); + + MulticloudDataTransferSupportedService actualResponse = + client.getMulticloudDataTransferSupportedService(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataTransferService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetMulticloudDataTransferSupportedServiceRequest actualRequest = + ((GetMulticloudDataTransferSupportedServiceRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getMulticloudDataTransferSupportedServiceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataTransferService.addException(exception); + + try { + MulticloudDataTransferSupportedServiceName name = + MulticloudDataTransferSupportedServiceName.of( + "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_SUPPORTED_SERVICE]"); + client.getMulticloudDataTransferSupportedService(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMulticloudDataTransferSupportedServiceTest2() throws Exception { + MulticloudDataTransferSupportedService expectedResponse = + MulticloudDataTransferSupportedService.newBuilder() + .setName( + MulticloudDataTransferSupportedServiceName.of( + "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_SUPPORTED_SERVICE]") + .toString()) + .addAllServiceConfigs(new ArrayList()) + .build(); + mockDataTransferService.addResponse(expectedResponse); + + String name = "name3373707"; + + MulticloudDataTransferSupportedService actualResponse = + client.getMulticloudDataTransferSupportedService(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataTransferService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetMulticloudDataTransferSupportedServiceRequest actualRequest = + ((GetMulticloudDataTransferSupportedServiceRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getMulticloudDataTransferSupportedServiceExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataTransferService.addException(exception); + + try { + String name = "name3373707"; + client.getMulticloudDataTransferSupportedService(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMulticloudDataTransferSupportedServicesTest() throws Exception { + MulticloudDataTransferSupportedService responsesElement = + MulticloudDataTransferSupportedService.newBuilder().build(); + ListMulticloudDataTransferSupportedServicesResponse expectedResponse = + ListMulticloudDataTransferSupportedServicesResponse.newBuilder() + .setNextPageToken("") + .addAllMulticloudDataTransferSupportedServices(Arrays.asList(responsesElement)) + .build(); + mockDataTransferService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListMulticloudDataTransferSupportedServicesPagedResponse pagedListResponse = + client.listMulticloudDataTransferSupportedServices(parent); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getMulticloudDataTransferSupportedServicesList().get(0), resources.get(0)); + + List actualRequests = mockDataTransferService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListMulticloudDataTransferSupportedServicesRequest actualRequest = + ((ListMulticloudDataTransferSupportedServicesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listMulticloudDataTransferSupportedServicesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataTransferService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listMulticloudDataTransferSupportedServices(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMulticloudDataTransferSupportedServicesTest2() throws Exception { + MulticloudDataTransferSupportedService responsesElement = + MulticloudDataTransferSupportedService.newBuilder().build(); + ListMulticloudDataTransferSupportedServicesResponse expectedResponse = + ListMulticloudDataTransferSupportedServicesResponse.newBuilder() + .setNextPageToken("") + .addAllMulticloudDataTransferSupportedServices(Arrays.asList(responsesElement)) + .build(); + mockDataTransferService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListMulticloudDataTransferSupportedServicesPagedResponse pagedListResponse = + client.listMulticloudDataTransferSupportedServices(parent); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getMulticloudDataTransferSupportedServicesList().get(0), resources.get(0)); + + List actualRequests = mockDataTransferService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListMulticloudDataTransferSupportedServicesRequest actualRequest = + ((ListMulticloudDataTransferSupportedServicesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listMulticloudDataTransferSupportedServicesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataTransferService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listMulticloudDataTransferSupportedServices(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockLocations.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockLocations.addResponse(expectedResponse); + + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLocationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockIAMPolicy.addResponse(expectedResponse); + + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(GroupName.of("[PROJECT]", "[HUB]", "[GROUP]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + + Policy actualResponse = client.setIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy()); + Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(GroupName.of("[PROJECT]", "[HUB]", "[GROUP]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + client.setIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockIAMPolicy.addResponse(expectedResponse); + + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(GroupName.of("[PROJECT]", "[HUB]", "[GROUP]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + + Policy actualResponse = client.getIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getOptions(), actualRequest.getOptions()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(GroupName.of("[PROJECT]", "[HUB]", "[GROUP]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + client.getIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockIAMPolicy.addResponse(expectedResponse); + + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(GroupName.of("[PROJECT]", "[HUB]", "[GROUP]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void testIamPermissionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(GroupName.of("[PROJECT]", "[HUB]", "[GROUP]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + client.testIamPermissions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-vmmigration/google-cloud-vmmigration/src/test/java/com/google/cloud/vmmigration/v1/MockIAMPolicyImpl.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockDataTransferService.java similarity index 59% rename from java-vmmigration/google-cloud-vmmigration/src/test/java/com/google/cloud/vmmigration/v1/MockIAMPolicyImpl.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockDataTransferService.java index 0683338efcf7..ca3890b60979 100644 --- a/java-vmmigration/google-cloud-vmmigration/src/test/java/com/google/cloud/vmmigration/v1/MockIAMPolicyImpl.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockDataTransferService.java @@ -14,46 +14,46 @@ * limitations under the License. */ -package com.google.cloud.vmmigration.v1; +package com.google.cloud.networkconnectivity.v1; import com.google.api.core.BetaApi; -import com.google.iam.v1.IAMPolicyGrpc.IAMPolicyImplBase; +import com.google.api.gax.grpc.testing.MockGrpcService; import com.google.protobuf.AbstractMessage; -import java.util.ArrayList; -import java.util.LinkedList; +import io.grpc.ServerServiceDefinition; import java.util.List; -import java.util.Queue; import javax.annotation.Generated; @BetaApi @Generated("by gapic-generator-java") -public class MockIAMPolicyImpl extends IAMPolicyImplBase { - private List requests; - private Queue responses; +public class MockDataTransferService implements MockGrpcService { + private final MockDataTransferServiceImpl serviceImpl; - public MockIAMPolicyImpl() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); + public MockDataTransferService() { + serviceImpl = new MockDataTransferServiceImpl(); } + @Override public List getRequests() { - return requests; + return serviceImpl.getRequests(); } + @Override public void addResponse(AbstractMessage response) { - responses.add(response); + serviceImpl.addResponse(response); } - public void setResponses(List responses) { - this.responses = new LinkedList(responses); + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); } - public void addException(Exception exception) { - responses.add(exception); + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); } + @Override public void reset() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); + serviceImpl.reset(); } } diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockDataTransferServiceImpl.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockDataTransferServiceImpl.java new file mode 100644 index 000000000000..cc74dee37fa5 --- /dev/null +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockDataTransferServiceImpl.java @@ -0,0 +1,327 @@ +/* + * 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.networkconnectivity.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.networkconnectivity.v1.DataTransferServiceGrpc.DataTransferServiceImplBase; +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 MockDataTransferServiceImpl extends DataTransferServiceImplBase { + private List requests; + private Queue responses; + + public MockDataTransferServiceImpl() { + 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 listMulticloudDataTransferConfigs( + ListMulticloudDataTransferConfigsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListMulticloudDataTransferConfigsResponse) { + requests.add(request); + responseObserver.onNext(((ListMulticloudDataTransferConfigsResponse) 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 ListMulticloudDataTransferConfigs," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListMulticloudDataTransferConfigsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getMulticloudDataTransferConfig( + GetMulticloudDataTransferConfigRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof MulticloudDataTransferConfig) { + requests.add(request); + responseObserver.onNext(((MulticloudDataTransferConfig) 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 GetMulticloudDataTransferConfig," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + MulticloudDataTransferConfig.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createMulticloudDataTransferConfig( + CreateMulticloudDataTransferConfigRequest 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 CreateMulticloudDataTransferConfig," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateMulticloudDataTransferConfig( + UpdateMulticloudDataTransferConfigRequest 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 UpdateMulticloudDataTransferConfig," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteMulticloudDataTransferConfig( + DeleteMulticloudDataTransferConfigRequest 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 DeleteMulticloudDataTransferConfig," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listDestinations( + ListDestinationsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListDestinationsResponse) { + requests.add(request); + responseObserver.onNext(((ListDestinationsResponse) 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 ListDestinations, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListDestinationsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getDestination( + GetDestinationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Destination) { + requests.add(request); + responseObserver.onNext(((Destination) 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 GetDestination, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Destination.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createDestination( + CreateDestinationRequest 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 CreateDestination, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateDestination( + UpdateDestinationRequest 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 UpdateDestination, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteDestination( + DeleteDestinationRequest 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 DeleteDestination, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getMulticloudDataTransferSupportedService( + GetMulticloudDataTransferSupportedServiceRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof MulticloudDataTransferSupportedService) { + requests.add(request); + responseObserver.onNext(((MulticloudDataTransferSupportedService) 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" + + " GetMulticloudDataTransferSupportedService, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + MulticloudDataTransferSupportedService.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listMulticloudDataTransferSupportedServices( + ListMulticloudDataTransferSupportedServicesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListMulticloudDataTransferSupportedServicesResponse) { + requests.add(request); + responseObserver.onNext(((ListMulticloudDataTransferSupportedServicesResponse) 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" + + " ListMulticloudDataTransferSupportedServices, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListMulticloudDataTransferSupportedServicesResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DataTransferServiceGrpc.java b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DataTransferServiceGrpc.java new file mode 100644 index 000000000000..d5afa78a8ee7 --- /dev/null +++ b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DataTransferServiceGrpc.java @@ -0,0 +1,2082 @@ +/* + * 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.networkconnectivity.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
    + * DataTransferService is the service for the Data Transfer API.
    + * 
    + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/networkconnectivity/v1/data_transfer.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class DataTransferServiceGrpc { + + private DataTransferServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.networkconnectivity.v1.DataTransferService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest, + com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse> + getListMulticloudDataTransferConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListMulticloudDataTransferConfigs", + requestType = + com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest.class, + responseType = + com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest, + com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse> + getListMulticloudDataTransferConfigsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest, + com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse> + getListMulticloudDataTransferConfigsMethod; + if ((getListMulticloudDataTransferConfigsMethod = + DataTransferServiceGrpc.getListMulticloudDataTransferConfigsMethod) + == null) { + synchronized (DataTransferServiceGrpc.class) { + if ((getListMulticloudDataTransferConfigsMethod = + DataTransferServiceGrpc.getListMulticloudDataTransferConfigsMethod) + == null) { + DataTransferServiceGrpc.getListMulticloudDataTransferConfigsMethod = + getListMulticloudDataTransferConfigsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListMulticloudDataTransferConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferConfigsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferConfigsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new DataTransferServiceMethodDescriptorSupplier( + "ListMulticloudDataTransferConfigs")) + .build(); + } + } + } + return getListMulticloudDataTransferConfigsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest, + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig> + getGetMulticloudDataTransferConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetMulticloudDataTransferConfig", + requestType = + com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest.class, + responseType = com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest, + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig> + getGetMulticloudDataTransferConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest, + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig> + getGetMulticloudDataTransferConfigMethod; + if ((getGetMulticloudDataTransferConfigMethod = + DataTransferServiceGrpc.getGetMulticloudDataTransferConfigMethod) + == null) { + synchronized (DataTransferServiceGrpc.class) { + if ((getGetMulticloudDataTransferConfigMethod = + DataTransferServiceGrpc.getGetMulticloudDataTransferConfigMethod) + == null) { + DataTransferServiceGrpc.getGetMulticloudDataTransferConfigMethod = + getGetMulticloudDataTransferConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetMulticloudDataTransferConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1 + .GetMulticloudDataTransferConfigRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new DataTransferServiceMethodDescriptorSupplier( + "GetMulticloudDataTransferConfig")) + .build(); + } + } + } + return getGetMulticloudDataTransferConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest, + com.google.longrunning.Operation> + getCreateMulticloudDataTransferConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateMulticloudDataTransferConfig", + requestType = + com.google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest, + com.google.longrunning.Operation> + getCreateMulticloudDataTransferConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest, + com.google.longrunning.Operation> + getCreateMulticloudDataTransferConfigMethod; + if ((getCreateMulticloudDataTransferConfigMethod = + DataTransferServiceGrpc.getCreateMulticloudDataTransferConfigMethod) + == null) { + synchronized (DataTransferServiceGrpc.class) { + if ((getCreateMulticloudDataTransferConfigMethod = + DataTransferServiceGrpc.getCreateMulticloudDataTransferConfigMethod) + == null) { + DataTransferServiceGrpc.getCreateMulticloudDataTransferConfigMethod = + getCreateMulticloudDataTransferConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "CreateMulticloudDataTransferConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1 + .CreateMulticloudDataTransferConfigRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DataTransferServiceMethodDescriptorSupplier( + "CreateMulticloudDataTransferConfig")) + .build(); + } + } + } + return getCreateMulticloudDataTransferConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest, + com.google.longrunning.Operation> + getUpdateMulticloudDataTransferConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateMulticloudDataTransferConfig", + requestType = + com.google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest, + com.google.longrunning.Operation> + getUpdateMulticloudDataTransferConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest, + com.google.longrunning.Operation> + getUpdateMulticloudDataTransferConfigMethod; + if ((getUpdateMulticloudDataTransferConfigMethod = + DataTransferServiceGrpc.getUpdateMulticloudDataTransferConfigMethod) + == null) { + synchronized (DataTransferServiceGrpc.class) { + if ((getUpdateMulticloudDataTransferConfigMethod = + DataTransferServiceGrpc.getUpdateMulticloudDataTransferConfigMethod) + == null) { + DataTransferServiceGrpc.getUpdateMulticloudDataTransferConfigMethod = + getUpdateMulticloudDataTransferConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "UpdateMulticloudDataTransferConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1 + .UpdateMulticloudDataTransferConfigRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DataTransferServiceMethodDescriptorSupplier( + "UpdateMulticloudDataTransferConfig")) + .build(); + } + } + } + return getUpdateMulticloudDataTransferConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest, + com.google.longrunning.Operation> + getDeleteMulticloudDataTransferConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteMulticloudDataTransferConfig", + requestType = + com.google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest, + com.google.longrunning.Operation> + getDeleteMulticloudDataTransferConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest, + com.google.longrunning.Operation> + getDeleteMulticloudDataTransferConfigMethod; + if ((getDeleteMulticloudDataTransferConfigMethod = + DataTransferServiceGrpc.getDeleteMulticloudDataTransferConfigMethod) + == null) { + synchronized (DataTransferServiceGrpc.class) { + if ((getDeleteMulticloudDataTransferConfigMethod = + DataTransferServiceGrpc.getDeleteMulticloudDataTransferConfigMethod) + == null) { + DataTransferServiceGrpc.getDeleteMulticloudDataTransferConfigMethod = + getDeleteMulticloudDataTransferConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "DeleteMulticloudDataTransferConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1 + .DeleteMulticloudDataTransferConfigRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DataTransferServiceMethodDescriptorSupplier( + "DeleteMulticloudDataTransferConfig")) + .build(); + } + } + } + return getDeleteMulticloudDataTransferConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.ListDestinationsRequest, + com.google.cloud.networkconnectivity.v1.ListDestinationsResponse> + getListDestinationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListDestinations", + requestType = com.google.cloud.networkconnectivity.v1.ListDestinationsRequest.class, + responseType = com.google.cloud.networkconnectivity.v1.ListDestinationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.ListDestinationsRequest, + com.google.cloud.networkconnectivity.v1.ListDestinationsResponse> + getListDestinationsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.ListDestinationsRequest, + com.google.cloud.networkconnectivity.v1.ListDestinationsResponse> + getListDestinationsMethod; + if ((getListDestinationsMethod = DataTransferServiceGrpc.getListDestinationsMethod) == null) { + synchronized (DataTransferServiceGrpc.class) { + if ((getListDestinationsMethod = DataTransferServiceGrpc.getListDestinationsMethod) + == null) { + DataTransferServiceGrpc.getListDestinationsMethod = + getListDestinationsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDestinations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.ListDestinationsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.ListDestinationsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DataTransferServiceMethodDescriptorSupplier("ListDestinations")) + .build(); + } + } + } + return getListDestinationsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.GetDestinationRequest, + com.google.cloud.networkconnectivity.v1.Destination> + getGetDestinationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDestination", + requestType = com.google.cloud.networkconnectivity.v1.GetDestinationRequest.class, + responseType = com.google.cloud.networkconnectivity.v1.Destination.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.GetDestinationRequest, + com.google.cloud.networkconnectivity.v1.Destination> + getGetDestinationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.GetDestinationRequest, + com.google.cloud.networkconnectivity.v1.Destination> + getGetDestinationMethod; + if ((getGetDestinationMethod = DataTransferServiceGrpc.getGetDestinationMethod) == null) { + synchronized (DataTransferServiceGrpc.class) { + if ((getGetDestinationMethod = DataTransferServiceGrpc.getGetDestinationMethod) == null) { + DataTransferServiceGrpc.getGetDestinationMethod = + getGetDestinationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDestination")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.GetDestinationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.Destination + .getDefaultInstance())) + .setSchemaDescriptor( + new DataTransferServiceMethodDescriptorSupplier("GetDestination")) + .build(); + } + } + } + return getGetDestinationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.CreateDestinationRequest, + com.google.longrunning.Operation> + getCreateDestinationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateDestination", + requestType = com.google.cloud.networkconnectivity.v1.CreateDestinationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.CreateDestinationRequest, + com.google.longrunning.Operation> + getCreateDestinationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.CreateDestinationRequest, + com.google.longrunning.Operation> + getCreateDestinationMethod; + if ((getCreateDestinationMethod = DataTransferServiceGrpc.getCreateDestinationMethod) == null) { + synchronized (DataTransferServiceGrpc.class) { + if ((getCreateDestinationMethod = DataTransferServiceGrpc.getCreateDestinationMethod) + == null) { + DataTransferServiceGrpc.getCreateDestinationMethod = + getCreateDestinationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDestination")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.CreateDestinationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DataTransferServiceMethodDescriptorSupplier("CreateDestination")) + .build(); + } + } + } + return getCreateDestinationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.UpdateDestinationRequest, + com.google.longrunning.Operation> + getUpdateDestinationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateDestination", + requestType = com.google.cloud.networkconnectivity.v1.UpdateDestinationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.UpdateDestinationRequest, + com.google.longrunning.Operation> + getUpdateDestinationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.UpdateDestinationRequest, + com.google.longrunning.Operation> + getUpdateDestinationMethod; + if ((getUpdateDestinationMethod = DataTransferServiceGrpc.getUpdateDestinationMethod) == null) { + synchronized (DataTransferServiceGrpc.class) { + if ((getUpdateDestinationMethod = DataTransferServiceGrpc.getUpdateDestinationMethod) + == null) { + DataTransferServiceGrpc.getUpdateDestinationMethod = + getUpdateDestinationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateDestination")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.UpdateDestinationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DataTransferServiceMethodDescriptorSupplier("UpdateDestination")) + .build(); + } + } + } + return getUpdateDestinationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.DeleteDestinationRequest, + com.google.longrunning.Operation> + getDeleteDestinationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteDestination", + requestType = com.google.cloud.networkconnectivity.v1.DeleteDestinationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.DeleteDestinationRequest, + com.google.longrunning.Operation> + getDeleteDestinationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.DeleteDestinationRequest, + com.google.longrunning.Operation> + getDeleteDestinationMethod; + if ((getDeleteDestinationMethod = DataTransferServiceGrpc.getDeleteDestinationMethod) == null) { + synchronized (DataTransferServiceGrpc.class) { + if ((getDeleteDestinationMethod = DataTransferServiceGrpc.getDeleteDestinationMethod) + == null) { + DataTransferServiceGrpc.getDeleteDestinationMethod = + getDeleteDestinationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteDestination")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.DeleteDestinationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DataTransferServiceMethodDescriptorSupplier("DeleteDestination")) + .build(); + } + } + } + return getDeleteDestinationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferSupportedServiceRequest, + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService> + getGetMulticloudDataTransferSupportedServiceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetMulticloudDataTransferSupportedService", + requestType = + com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferSupportedServiceRequest + .class, + responseType = + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferSupportedServiceRequest, + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService> + getGetMulticloudDataTransferSupportedServiceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1 + .GetMulticloudDataTransferSupportedServiceRequest, + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService> + getGetMulticloudDataTransferSupportedServiceMethod; + if ((getGetMulticloudDataTransferSupportedServiceMethod = + DataTransferServiceGrpc.getGetMulticloudDataTransferSupportedServiceMethod) + == null) { + synchronized (DataTransferServiceGrpc.class) { + if ((getGetMulticloudDataTransferSupportedServiceMethod = + DataTransferServiceGrpc.getGetMulticloudDataTransferSupportedServiceMethod) + == null) { + DataTransferServiceGrpc.getGetMulticloudDataTransferSupportedServiceMethod = + getGetMulticloudDataTransferSupportedServiceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "GetMulticloudDataTransferSupportedService")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1 + .GetMulticloudDataTransferSupportedServiceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1 + .MulticloudDataTransferSupportedService.getDefaultInstance())) + .setSchemaDescriptor( + new DataTransferServiceMethodDescriptorSupplier( + "GetMulticloudDataTransferSupportedService")) + .build(); + } + } + } + return getGetMulticloudDataTransferSupportedServiceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesRequest, + com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesResponse> + getListMulticloudDataTransferSupportedServicesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListMulticloudDataTransferSupportedServices", + requestType = + com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferSupportedServicesRequest + .class, + responseType = + com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesRequest, + com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesResponse> + getListMulticloudDataTransferSupportedServicesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesRequest, + com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesResponse> + getListMulticloudDataTransferSupportedServicesMethod; + if ((getListMulticloudDataTransferSupportedServicesMethod = + DataTransferServiceGrpc.getListMulticloudDataTransferSupportedServicesMethod) + == null) { + synchronized (DataTransferServiceGrpc.class) { + if ((getListMulticloudDataTransferSupportedServicesMethod = + DataTransferServiceGrpc.getListMulticloudDataTransferSupportedServicesMethod) + == null) { + DataTransferServiceGrpc.getListMulticloudDataTransferSupportedServicesMethod = + getListMulticloudDataTransferSupportedServicesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "ListMulticloudDataTransferSupportedServices")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DataTransferServiceMethodDescriptorSupplier( + "ListMulticloudDataTransferSupportedServices")) + .build(); + } + } + } + return getListMulticloudDataTransferSupportedServicesMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static DataTransferServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DataTransferServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataTransferServiceStub(channel, callOptions); + } + }; + return DataTransferServiceStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static DataTransferServiceBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DataTransferServiceBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataTransferServiceBlockingV2Stub(channel, callOptions); + } + }; + return DataTransferServiceBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static DataTransferServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DataTransferServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataTransferServiceBlockingStub(channel, callOptions); + } + }; + return DataTransferServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static DataTransferServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DataTransferServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataTransferServiceFutureStub(channel, callOptions); + } + }; + return DataTransferServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
    +   * DataTransferService is the service for the Data Transfer API.
    +   * 
    + */ + public interface AsyncService { + + /** + * + * + *
    +     * Lists the `MulticloudDataTransferConfig` resources in a specified project
    +     * and location.
    +     * 
    + */ + default void listMulticloudDataTransferConfigs( + com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListMulticloudDataTransferConfigsMethod(), responseObserver); + } + + /** + * + * + *
    +     * Gets the details of a `MulticloudDataTransferConfig` resource.
    +     * 
    + */ + default void getMulticloudDataTransferConfig( + com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetMulticloudDataTransferConfigMethod(), responseObserver); + } + + /** + * + * + *
    +     * Creates a `MulticloudDataTransferConfig` resource in a specified project
    +     * and location.
    +     * 
    + */ + default void createMulticloudDataTransferConfig( + com.google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateMulticloudDataTransferConfigMethod(), responseObserver); + } + + /** + * + * + *
    +     * Updates a `MulticloudDataTransferConfig` resource in a specified project
    +     * and location.
    +     * 
    + */ + default void updateMulticloudDataTransferConfig( + com.google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateMulticloudDataTransferConfigMethod(), responseObserver); + } + + /** + * + * + *
    +     * Deletes a `MulticloudDataTransferConfig` resource.
    +     * 
    + */ + default void deleteMulticloudDataTransferConfig( + com.google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteMulticloudDataTransferConfigMethod(), responseObserver); + } + + /** + * + * + *
    +     * Lists the `Destination` resources in a specified project and location.
    +     * 
    + */ + default void listDestinations( + com.google.cloud.networkconnectivity.v1.ListDestinationsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networkconnectivity.v1.ListDestinationsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDestinationsMethod(), responseObserver); + } + + /** + * + * + *
    +     * Gets the details of a `Destination` resource.
    +     * 
    + */ + default void getDestination( + com.google.cloud.networkconnectivity.v1.GetDestinationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDestinationMethod(), responseObserver); + } + + /** + * + * + *
    +     * Creates a `Destination` resource in a specified project and location.
    +     * 
    + */ + default void createDestination( + com.google.cloud.networkconnectivity.v1.CreateDestinationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateDestinationMethod(), responseObserver); + } + + /** + * + * + *
    +     * Updates a `Destination` resource in a specified project and location.
    +     * 
    + */ + default void updateDestination( + com.google.cloud.networkconnectivity.v1.UpdateDestinationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateDestinationMethod(), responseObserver); + } + + /** + * + * + *
    +     * Deletes a `Destination` resource.
    +     * 
    + */ + default void deleteDestination( + com.google.cloud.networkconnectivity.v1.DeleteDestinationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteDestinationMethod(), responseObserver); + } + + /** + * + * + *
    +     * Gets the details of a service that is supported for Data Transfer
    +     * Essentials.
    +     * 
    + */ + default void getMulticloudDataTransferSupportedService( + com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferSupportedServiceRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetMulticloudDataTransferSupportedServiceMethod(), responseObserver); + } + + /** + * + * + *
    +     * Lists the services in the project for a region that are supported for
    +     * Data Transfer Essentials.
    +     * 
    + */ + default void listMulticloudDataTransferSupportedServices( + com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferSupportedServicesRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListMulticloudDataTransferSupportedServicesMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service DataTransferService. + * + *
    +   * DataTransferService is the service for the Data Transfer API.
    +   * 
    + */ + public abstract static class DataTransferServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return DataTransferServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service DataTransferService. + * + *
    +   * DataTransferService is the service for the Data Transfer API.
    +   * 
    + */ + public static final class DataTransferServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private DataTransferServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DataTransferServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataTransferServiceStub(channel, callOptions); + } + + /** + * + * + *
    +     * Lists the `MulticloudDataTransferConfig` resources in a specified project
    +     * and location.
    +     * 
    + */ + public void listMulticloudDataTransferConfigs( + com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListMulticloudDataTransferConfigsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Gets the details of a `MulticloudDataTransferConfig` resource.
    +     * 
    + */ + public void getMulticloudDataTransferConfig( + com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetMulticloudDataTransferConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Creates a `MulticloudDataTransferConfig` resource in a specified project
    +     * and location.
    +     * 
    + */ + public void createMulticloudDataTransferConfig( + com.google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateMulticloudDataTransferConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Updates a `MulticloudDataTransferConfig` resource in a specified project
    +     * and location.
    +     * 
    + */ + public void updateMulticloudDataTransferConfig( + com.google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateMulticloudDataTransferConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Deletes a `MulticloudDataTransferConfig` resource.
    +     * 
    + */ + public void deleteMulticloudDataTransferConfig( + com.google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteMulticloudDataTransferConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Lists the `Destination` resources in a specified project and location.
    +     * 
    + */ + public void listDestinations( + com.google.cloud.networkconnectivity.v1.ListDestinationsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networkconnectivity.v1.ListDestinationsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDestinationsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Gets the details of a `Destination` resource.
    +     * 
    + */ + public void getDestination( + com.google.cloud.networkconnectivity.v1.GetDestinationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDestinationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Creates a `Destination` resource in a specified project and location.
    +     * 
    + */ + public void createDestination( + com.google.cloud.networkconnectivity.v1.CreateDestinationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateDestinationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Updates a `Destination` resource in a specified project and location.
    +     * 
    + */ + public void updateDestination( + com.google.cloud.networkconnectivity.v1.UpdateDestinationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateDestinationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Deletes a `Destination` resource.
    +     * 
    + */ + public void deleteDestination( + com.google.cloud.networkconnectivity.v1.DeleteDestinationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteDestinationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Gets the details of a service that is supported for Data Transfer
    +     * Essentials.
    +     * 
    + */ + public void getMulticloudDataTransferSupportedService( + com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferSupportedServiceRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel() + .newCall(getGetMulticloudDataTransferSupportedServiceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Lists the services in the project for a region that are supported for
    +     * Data Transfer Essentials.
    +     * 
    + */ + public void listMulticloudDataTransferSupportedServices( + com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferSupportedServicesRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel() + .newCall(getListMulticloudDataTransferSupportedServicesMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service DataTransferService. + * + *
    +   * DataTransferService is the service for the Data Transfer API.
    +   * 
    + */ + public static final class DataTransferServiceBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private DataTransferServiceBlockingV2Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DataTransferServiceBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataTransferServiceBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
    +     * Lists the `MulticloudDataTransferConfig` resources in a specified project
    +     * and location.
    +     * 
    + */ + public com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse + listMulticloudDataTransferConfigs( + com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListMulticloudDataTransferConfigsMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Gets the details of a `MulticloudDataTransferConfig` resource.
    +     * 
    + */ + public com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig + getMulticloudDataTransferConfig( + com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetMulticloudDataTransferConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Creates a `MulticloudDataTransferConfig` resource in a specified project
    +     * and location.
    +     * 
    + */ + public com.google.longrunning.Operation createMulticloudDataTransferConfig( + com.google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateMulticloudDataTransferConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Updates a `MulticloudDataTransferConfig` resource in a specified project
    +     * and location.
    +     * 
    + */ + public com.google.longrunning.Operation updateMulticloudDataTransferConfig( + com.google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateMulticloudDataTransferConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Deletes a `MulticloudDataTransferConfig` resource.
    +     * 
    + */ + public com.google.longrunning.Operation deleteMulticloudDataTransferConfig( + com.google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteMulticloudDataTransferConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Lists the `Destination` resources in a specified project and location.
    +     * 
    + */ + public com.google.cloud.networkconnectivity.v1.ListDestinationsResponse listDestinations( + com.google.cloud.networkconnectivity.v1.ListDestinationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDestinationsMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Gets the details of a `Destination` resource.
    +     * 
    + */ + public com.google.cloud.networkconnectivity.v1.Destination getDestination( + com.google.cloud.networkconnectivity.v1.GetDestinationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDestinationMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Creates a `Destination` resource in a specified project and location.
    +     * 
    + */ + public com.google.longrunning.Operation createDestination( + com.google.cloud.networkconnectivity.v1.CreateDestinationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateDestinationMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Updates a `Destination` resource in a specified project and location.
    +     * 
    + */ + public com.google.longrunning.Operation updateDestination( + com.google.cloud.networkconnectivity.v1.UpdateDestinationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateDestinationMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Deletes a `Destination` resource.
    +     * 
    + */ + public com.google.longrunning.Operation deleteDestination( + com.google.cloud.networkconnectivity.v1.DeleteDestinationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteDestinationMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Gets the details of a service that is supported for Data Transfer
    +     * Essentials.
    +     * 
    + */ + public com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService + getMulticloudDataTransferSupportedService( + com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferSupportedServiceRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getGetMulticloudDataTransferSupportedServiceMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
    +     * Lists the services in the project for a region that are supported for
    +     * Data Transfer Essentials.
    +     * 
    + */ + public com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesResponse + listMulticloudDataTransferSupportedServices( + com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getListMulticloudDataTransferSupportedServicesMethod(), + getCallOptions(), + request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service DataTransferService. + * + *
    +   * DataTransferService is the service for the Data Transfer API.
    +   * 
    + */ + public static final class DataTransferServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private DataTransferServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DataTransferServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataTransferServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
    +     * Lists the `MulticloudDataTransferConfig` resources in a specified project
    +     * and location.
    +     * 
    + */ + public com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse + listMulticloudDataTransferConfigs( + com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListMulticloudDataTransferConfigsMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Gets the details of a `MulticloudDataTransferConfig` resource.
    +     * 
    + */ + public com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig + getMulticloudDataTransferConfig( + com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetMulticloudDataTransferConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Creates a `MulticloudDataTransferConfig` resource in a specified project
    +     * and location.
    +     * 
    + */ + public com.google.longrunning.Operation createMulticloudDataTransferConfig( + com.google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateMulticloudDataTransferConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Updates a `MulticloudDataTransferConfig` resource in a specified project
    +     * and location.
    +     * 
    + */ + public com.google.longrunning.Operation updateMulticloudDataTransferConfig( + com.google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateMulticloudDataTransferConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Deletes a `MulticloudDataTransferConfig` resource.
    +     * 
    + */ + public com.google.longrunning.Operation deleteMulticloudDataTransferConfig( + com.google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteMulticloudDataTransferConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Lists the `Destination` resources in a specified project and location.
    +     * 
    + */ + public com.google.cloud.networkconnectivity.v1.ListDestinationsResponse listDestinations( + com.google.cloud.networkconnectivity.v1.ListDestinationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDestinationsMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Gets the details of a `Destination` resource.
    +     * 
    + */ + public com.google.cloud.networkconnectivity.v1.Destination getDestination( + com.google.cloud.networkconnectivity.v1.GetDestinationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDestinationMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Creates a `Destination` resource in a specified project and location.
    +     * 
    + */ + public com.google.longrunning.Operation createDestination( + com.google.cloud.networkconnectivity.v1.CreateDestinationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateDestinationMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Updates a `Destination` resource in a specified project and location.
    +     * 
    + */ + public com.google.longrunning.Operation updateDestination( + com.google.cloud.networkconnectivity.v1.UpdateDestinationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateDestinationMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Deletes a `Destination` resource.
    +     * 
    + */ + public com.google.longrunning.Operation deleteDestination( + com.google.cloud.networkconnectivity.v1.DeleteDestinationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteDestinationMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Gets the details of a service that is supported for Data Transfer
    +     * Essentials.
    +     * 
    + */ + public com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService + getMulticloudDataTransferSupportedService( + com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferSupportedServiceRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getGetMulticloudDataTransferSupportedServiceMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
    +     * Lists the services in the project for a region that are supported for
    +     * Data Transfer Essentials.
    +     * 
    + */ + public com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesResponse + listMulticloudDataTransferSupportedServices( + com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getListMulticloudDataTransferSupportedServicesMethod(), + getCallOptions(), + request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service DataTransferService. + * + *
    +   * DataTransferService is the service for the Data Transfer API.
    +   * 
    + */ + public static final class DataTransferServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private DataTransferServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DataTransferServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataTransferServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
    +     * Lists the `MulticloudDataTransferConfig` resources in a specified project
    +     * and location.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse> + listMulticloudDataTransferConfigs( + com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListMulticloudDataTransferConfigsMethod(), getCallOptions()), + request); + } + + /** + * + * + *
    +     * Gets the details of a `MulticloudDataTransferConfig` resource.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig> + getMulticloudDataTransferConfig( + com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetMulticloudDataTransferConfigMethod(), getCallOptions()), + request); + } + + /** + * + * + *
    +     * Creates a `MulticloudDataTransferConfig` resource in a specified project
    +     * and location.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + createMulticloudDataTransferConfig( + com.google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateMulticloudDataTransferConfigMethod(), getCallOptions()), + request); + } + + /** + * + * + *
    +     * Updates a `MulticloudDataTransferConfig` resource in a specified project
    +     * and location.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + updateMulticloudDataTransferConfig( + com.google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateMulticloudDataTransferConfigMethod(), getCallOptions()), + request); + } + + /** + * + * + *
    +     * Deletes a `MulticloudDataTransferConfig` resource.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + deleteMulticloudDataTransferConfig( + com.google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteMulticloudDataTransferConfigMethod(), getCallOptions()), + request); + } + + /** + * + * + *
    +     * Lists the `Destination` resources in a specified project and location.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networkconnectivity.v1.ListDestinationsResponse> + listDestinations(com.google.cloud.networkconnectivity.v1.ListDestinationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDestinationsMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Gets the details of a `Destination` resource.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networkconnectivity.v1.Destination> + getDestination(com.google.cloud.networkconnectivity.v1.GetDestinationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDestinationMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Creates a `Destination` resource in a specified project and location.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + createDestination( + com.google.cloud.networkconnectivity.v1.CreateDestinationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateDestinationMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Updates a `Destination` resource in a specified project and location.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + updateDestination( + com.google.cloud.networkconnectivity.v1.UpdateDestinationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateDestinationMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Deletes a `Destination` resource.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + deleteDestination( + com.google.cloud.networkconnectivity.v1.DeleteDestinationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteDestinationMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Gets the details of a service that is supported for Data Transfer
    +     * Essentials.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService> + getMulticloudDataTransferSupportedService( + com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferSupportedServiceRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel() + .newCall(getGetMulticloudDataTransferSupportedServiceMethod(), getCallOptions()), + request); + } + + /** + * + * + *
    +     * Lists the services in the project for a region that are supported for
    +     * Data Transfer Essentials.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesResponse> + listMulticloudDataTransferSupportedServices( + com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel() + .newCall(getListMulticloudDataTransferSupportedServicesMethod(), getCallOptions()), + request); + } + } + + private static final int METHODID_LIST_MULTICLOUD_DATA_TRANSFER_CONFIGS = 0; + private static final int METHODID_GET_MULTICLOUD_DATA_TRANSFER_CONFIG = 1; + private static final int METHODID_CREATE_MULTICLOUD_DATA_TRANSFER_CONFIG = 2; + private static final int METHODID_UPDATE_MULTICLOUD_DATA_TRANSFER_CONFIG = 3; + private static final int METHODID_DELETE_MULTICLOUD_DATA_TRANSFER_CONFIG = 4; + private static final int METHODID_LIST_DESTINATIONS = 5; + private static final int METHODID_GET_DESTINATION = 6; + private static final int METHODID_CREATE_DESTINATION = 7; + private static final int METHODID_UPDATE_DESTINATION = 8; + private static final int METHODID_DELETE_DESTINATION = 9; + private static final int METHODID_GET_MULTICLOUD_DATA_TRANSFER_SUPPORTED_SERVICE = 10; + private static final int METHODID_LIST_MULTICLOUD_DATA_TRANSFER_SUPPORTED_SERVICES = 11; + + 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_LIST_MULTICLOUD_DATA_TRANSFER_CONFIGS: + serviceImpl.listMulticloudDataTransferConfigs( + (com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferConfigsResponse>) + responseObserver); + break; + case METHODID_GET_MULTICLOUD_DATA_TRANSFER_CONFIG: + serviceImpl.getMulticloudDataTransferConfig( + (com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig>) + responseObserver); + break; + case METHODID_CREATE_MULTICLOUD_DATA_TRANSFER_CONFIG: + serviceImpl.createMulticloudDataTransferConfig( + (com.google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest) + request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_MULTICLOUD_DATA_TRANSFER_CONFIG: + serviceImpl.updateMulticloudDataTransferConfig( + (com.google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest) + request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_MULTICLOUD_DATA_TRANSFER_CONFIG: + serviceImpl.deleteMulticloudDataTransferConfig( + (com.google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest) + request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_DESTINATIONS: + serviceImpl.listDestinations( + (com.google.cloud.networkconnectivity.v1.ListDestinationsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networkconnectivity.v1.ListDestinationsResponse>) + responseObserver); + break; + case METHODID_GET_DESTINATION: + serviceImpl.getDestination( + (com.google.cloud.networkconnectivity.v1.GetDestinationRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_DESTINATION: + serviceImpl.createDestination( + (com.google.cloud.networkconnectivity.v1.CreateDestinationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_DESTINATION: + serviceImpl.updateDestination( + (com.google.cloud.networkconnectivity.v1.UpdateDestinationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_DESTINATION: + serviceImpl.deleteDestination( + (com.google.cloud.networkconnectivity.v1.DeleteDestinationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_MULTICLOUD_DATA_TRANSFER_SUPPORTED_SERVICE: + serviceImpl.getMulticloudDataTransferSupportedService( + (com.google.cloud.networkconnectivity.v1 + .GetMulticloudDataTransferSupportedServiceRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networkconnectivity.v1 + .MulticloudDataTransferSupportedService>) + responseObserver); + break; + case METHODID_LIST_MULTICLOUD_DATA_TRANSFER_SUPPORTED_SERVICES: + serviceImpl.listMulticloudDataTransferSupportedServices( + (com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesResponse>) + 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( + getListMulticloudDataTransferConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferConfigsRequest, + com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferConfigsResponse>( + service, METHODID_LIST_MULTICLOUD_DATA_TRANSFER_CONFIGS))) + .addMethod( + getGetMulticloudDataTransferConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest, + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig>( + service, METHODID_GET_MULTICLOUD_DATA_TRANSFER_CONFIG))) + .addMethod( + getCreateMulticloudDataTransferConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1 + .CreateMulticloudDataTransferConfigRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_MULTICLOUD_DATA_TRANSFER_CONFIG))) + .addMethod( + getUpdateMulticloudDataTransferConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1 + .UpdateMulticloudDataTransferConfigRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_MULTICLOUD_DATA_TRANSFER_CONFIG))) + .addMethod( + getDeleteMulticloudDataTransferConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1 + .DeleteMulticloudDataTransferConfigRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_MULTICLOUD_DATA_TRANSFER_CONFIG))) + .addMethod( + getListDestinationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.ListDestinationsRequest, + com.google.cloud.networkconnectivity.v1.ListDestinationsResponse>( + service, METHODID_LIST_DESTINATIONS))) + .addMethod( + getGetDestinationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.GetDestinationRequest, + com.google.cloud.networkconnectivity.v1.Destination>( + service, METHODID_GET_DESTINATION))) + .addMethod( + getCreateDestinationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.CreateDestinationRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_DESTINATION))) + .addMethod( + getUpdateDestinationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.UpdateDestinationRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_DESTINATION))) + .addMethod( + getDeleteDestinationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.DeleteDestinationRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_DESTINATION))) + .addMethod( + getGetMulticloudDataTransferSupportedServiceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1 + .GetMulticloudDataTransferSupportedServiceRequest, + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService>( + service, METHODID_GET_MULTICLOUD_DATA_TRANSFER_SUPPORTED_SERVICE))) + .addMethod( + getListMulticloudDataTransferSupportedServicesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesRequest, + com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesResponse>( + service, METHODID_LIST_MULTICLOUD_DATA_TRANSFER_SUPPORTED_SERVICES))) + .build(); + } + + private abstract static class DataTransferServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + DataTransferServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("DataTransferService"); + } + } + + private static final class DataTransferServiceFileDescriptorSupplier + extends DataTransferServiceBaseDescriptorSupplier { + DataTransferServiceFileDescriptorSupplier() {} + } + + private static final class DataTransferServiceMethodDescriptorSupplier + extends DataTransferServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + DataTransferServiceMethodDescriptorSupplier(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 (DataTransferServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new DataTransferServiceFileDescriptorSupplier()) + .addMethod(getListMulticloudDataTransferConfigsMethod()) + .addMethod(getGetMulticloudDataTransferConfigMethod()) + .addMethod(getCreateMulticloudDataTransferConfigMethod()) + .addMethod(getUpdateMulticloudDataTransferConfigMethod()) + .addMethod(getDeleteMulticloudDataTransferConfigMethod()) + .addMethod(getListDestinationsMethod()) + .addMethod(getGetDestinationMethod()) + .addMethod(getCreateDestinationMethod()) + .addMethod(getUpdateDestinationMethod()) + .addMethod(getDeleteDestinationMethod()) + .addMethod(getGetMulticloudDataTransferSupportedServiceMethod()) + .addMethod(getListMulticloudDataTransferSupportedServicesMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateDestinationRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateDestinationRequest.java new file mode 100644 index 000000000000..a338b1c59c4b --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateDestinationRequest.java @@ -0,0 +1,1464 @@ +/* + * 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/networkconnectivity/v1/data_transfer.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkconnectivity.v1; + +/** + * + * + *
    + * Request message to create a `Destination` resource.
    + * 
    + * + * Protobuf type {@code google.cloud.networkconnectivity.v1.CreateDestinationRequest} + */ +public final class CreateDestinationRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.CreateDestinationRequest) + CreateDestinationRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CreateDestinationRequest.newBuilder() to construct. + private CreateDestinationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateDestinationRequest() { + parent_ = ""; + destinationId_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateDestinationRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_CreateDestinationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_CreateDestinationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.CreateDestinationRequest.class, + com.google.cloud.networkconnectivity.v1.CreateDestinationRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
    +   * Required. The name of the parent resource.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. The name of the parent resource.
    +   * 
    + * + * + * 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 DESTINATION_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object destinationId_ = ""; + + /** + * + * + *
    +   * Required. The ID to use for the `Destination` resource, which becomes the
    +   * final component of the `Destination` resource name.
    +   * 
    + * + * string destination_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The destinationId. + */ + @java.lang.Override + public java.lang.String getDestinationId() { + java.lang.Object ref = destinationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destinationId_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. The ID to use for the `Destination` resource, which becomes the
    +   * final component of the `Destination` resource name.
    +   * 
    + * + * string destination_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for destinationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDestinationIdBytes() { + java.lang.Object ref = destinationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destinationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESTINATION_FIELD_NUMBER = 3; + private com.google.cloud.networkconnectivity.v1.Destination destination_; + + /** + * + * + *
    +   * Required. The `Destination` resource to create.
    +   * 
    + * + * + * .google.cloud.networkconnectivity.v1.Destination destination = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the destination field is set. + */ + @java.lang.Override + public boolean hasDestination() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Required. The `Destination` resource to create.
    +   * 
    + * + * + * .google.cloud.networkconnectivity.v1.Destination destination = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The destination. + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.Destination getDestination() { + return destination_ == null + ? com.google.cloud.networkconnectivity.v1.Destination.getDefaultInstance() + : destination_; + } + + /** + * + * + *
    +   * Required. The `Destination` resource to create.
    +   * 
    + * + * + * .google.cloud.networkconnectivity.v1.Destination destination = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.DestinationOrBuilder getDestinationOrBuilder() { + return destination_ == null + ? com.google.cloud.networkconnectivity.v1.Destination.getDefaultInstance() + : destination_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
    +   * Optional. A request ID to identify requests. Specify a unique request ID
    +   * so that if you must retry your request, the server can ignore
    +   * the request if it has already been completed. The server waits
    +   * for at least 60 minutes since the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and
    +   * the request times out. If you make the request again with the same request
    +   * ID, the server can check if original operation with the same request ID
    +   * was received, and if so, can ignore the second request. This prevents
    +   * clients from accidentally creating duplicate `Destination`
    +   * resources.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID
    +   * (00000000-0000-0000-0000-000000000000) isn't supported.
    +   * 
    + * + * + * string request_id = 4 [(.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. A request ID to identify requests. Specify a unique request ID
    +   * so that if you must retry your request, the server can ignore
    +   * the request if it has already been completed. The server waits
    +   * for at least 60 minutes since the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and
    +   * the request times out. If you make the request again with the same request
    +   * ID, the server can check if original operation with the same request ID
    +   * was received, and if so, can ignore the second request. This prevents
    +   * clients from accidentally creating duplicate `Destination`
    +   * resources.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID
    +   * (00000000-0000-0000-0000-000000000000) isn't supported.
    +   * 
    + * + * + * string request_id = 4 [(.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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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(destinationId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, destinationId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getDestination()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, destinationId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDestination()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.networkconnectivity.v1.CreateDestinationRequest)) { + return super.equals(obj); + } + com.google.cloud.networkconnectivity.v1.CreateDestinationRequest other = + (com.google.cloud.networkconnectivity.v1.CreateDestinationRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getDestinationId().equals(other.getDestinationId())) return false; + if (hasDestination() != other.hasDestination()) return false; + if (hasDestination()) { + if (!getDestination().equals(other.getDestination())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + DESTINATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getDestinationId().hashCode(); + if (hasDestination()) { + hash = (37 * hash) + DESTINATION_FIELD_NUMBER; + hash = (53 * hash) + getDestination().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkconnectivity.v1.CreateDestinationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.CreateDestinationRequest 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.networkconnectivity.v1.CreateDestinationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.CreateDestinationRequest parseFrom( + 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.networkconnectivity.v1.CreateDestinationRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.CreateDestinationRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkconnectivity.v1.CreateDestinationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.CreateDestinationRequest 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.networkconnectivity.v1.CreateDestinationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.CreateDestinationRequest 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.networkconnectivity.v1.CreateDestinationRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.CreateDestinationRequest 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.networkconnectivity.v1.CreateDestinationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request message to create a `Destination` resource.
    +   * 
    + * + * Protobuf type {@code google.cloud.networkconnectivity.v1.CreateDestinationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.CreateDestinationRequest) + com.google.cloud.networkconnectivity.v1.CreateDestinationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_CreateDestinationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_CreateDestinationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.CreateDestinationRequest.class, + com.google.cloud.networkconnectivity.v1.CreateDestinationRequest.Builder.class); + } + + // Construct using com.google.cloud.networkconnectivity.v1.CreateDestinationRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDestinationFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + destinationId_ = ""; + destination_ = null; + if (destinationBuilder_ != null) { + destinationBuilder_.dispose(); + destinationBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_CreateDestinationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.CreateDestinationRequest + getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.CreateDestinationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.CreateDestinationRequest build() { + com.google.cloud.networkconnectivity.v1.CreateDestinationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.CreateDestinationRequest buildPartial() { + com.google.cloud.networkconnectivity.v1.CreateDestinationRequest result = + new com.google.cloud.networkconnectivity.v1.CreateDestinationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkconnectivity.v1.CreateDestinationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.destinationId_ = destinationId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.destination_ = + destinationBuilder_ == null ? destination_ : destinationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkconnectivity.v1.CreateDestinationRequest) { + return mergeFrom((com.google.cloud.networkconnectivity.v1.CreateDestinationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkconnectivity.v1.CreateDestinationRequest other) { + if (other + == com.google.cloud.networkconnectivity.v1.CreateDestinationRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDestinationId().isEmpty()) { + destinationId_ = other.destinationId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasDestination()) { + mergeDestination(other.getDestination()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + destinationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getDestinationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
    +     * Required. The name of the parent resource.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. The name of the parent resource.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. The name of the parent resource.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The name of the parent resource.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The name of the parent resource.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object destinationId_ = ""; + + /** + * + * + *
    +     * Required. The ID to use for the `Destination` resource, which becomes the
    +     * final component of the `Destination` resource name.
    +     * 
    + * + * string destination_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The destinationId. + */ + public java.lang.String getDestinationId() { + java.lang.Object ref = destinationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destinationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. The ID to use for the `Destination` resource, which becomes the
    +     * final component of the `Destination` resource name.
    +     * 
    + * + * string destination_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for destinationId. + */ + public com.google.protobuf.ByteString getDestinationIdBytes() { + java.lang.Object ref = destinationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destinationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. The ID to use for the `Destination` resource, which becomes the
    +     * final component of the `Destination` resource name.
    +     * 
    + * + * string destination_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The destinationId to set. + * @return This builder for chaining. + */ + public Builder setDestinationId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + destinationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The ID to use for the `Destination` resource, which becomes the
    +     * final component of the `Destination` resource name.
    +     * 
    + * + * string destination_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDestinationId() { + destinationId_ = getDefaultInstance().getDestinationId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The ID to use for the `Destination` resource, which becomes the
    +     * final component of the `Destination` resource name.
    +     * 
    + * + * string destination_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for destinationId to set. + * @return This builder for chaining. + */ + public Builder setDestinationIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + destinationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.networkconnectivity.v1.Destination destination_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.Destination, + com.google.cloud.networkconnectivity.v1.Destination.Builder, + com.google.cloud.networkconnectivity.v1.DestinationOrBuilder> + destinationBuilder_; + + /** + * + * + *
    +     * Required. The `Destination` resource to create.
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.Destination destination = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the destination field is set. + */ + public boolean hasDestination() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +     * Required. The `Destination` resource to create.
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.Destination destination = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The destination. + */ + public com.google.cloud.networkconnectivity.v1.Destination getDestination() { + if (destinationBuilder_ == null) { + return destination_ == null + ? com.google.cloud.networkconnectivity.v1.Destination.getDefaultInstance() + : destination_; + } else { + return destinationBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Required. The `Destination` resource to create.
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.Destination destination = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDestination(com.google.cloud.networkconnectivity.v1.Destination value) { + if (destinationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + destination_ = value; + } else { + destinationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The `Destination` resource to create.
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.Destination destination = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDestination( + com.google.cloud.networkconnectivity.v1.Destination.Builder builderForValue) { + if (destinationBuilder_ == null) { + destination_ = builderForValue.build(); + } else { + destinationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The `Destination` resource to create.
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.Destination destination = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDestination(com.google.cloud.networkconnectivity.v1.Destination value) { + if (destinationBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && destination_ != null + && destination_ + != com.google.cloud.networkconnectivity.v1.Destination.getDefaultInstance()) { + getDestinationBuilder().mergeFrom(value); + } else { + destination_ = value; + } + } else { + destinationBuilder_.mergeFrom(value); + } + if (destination_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Destination` resource to create.
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.Destination destination = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDestination() { + bitField0_ = (bitField0_ & ~0x00000004); + destination_ = null; + if (destinationBuilder_ != null) { + destinationBuilder_.dispose(); + destinationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The `Destination` resource to create.
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.Destination destination = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networkconnectivity.v1.Destination.Builder getDestinationBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getDestinationFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Required. The `Destination` resource to create.
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.Destination destination = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networkconnectivity.v1.DestinationOrBuilder getDestinationOrBuilder() { + if (destinationBuilder_ != null) { + return destinationBuilder_.getMessageOrBuilder(); + } else { + return destination_ == null + ? com.google.cloud.networkconnectivity.v1.Destination.getDefaultInstance() + : destination_; + } + } + + /** + * + * + *
    +     * Required. The `Destination` resource to create.
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.Destination destination = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.Destination, + com.google.cloud.networkconnectivity.v1.Destination.Builder, + com.google.cloud.networkconnectivity.v1.DestinationOrBuilder> + getDestinationFieldBuilder() { + if (destinationBuilder_ == null) { + destinationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.Destination, + com.google.cloud.networkconnectivity.v1.Destination.Builder, + com.google.cloud.networkconnectivity.v1.DestinationOrBuilder>( + getDestination(), getParentForChildren(), isClean()); + destination_ = null; + } + return destinationBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
    +     * Optional. A request ID to identify requests. Specify a unique request ID
    +     * so that if you must retry your request, the server can ignore
    +     * the request if it has already been completed. The server waits
    +     * for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, can ignore the second request. This prevents
    +     * clients from accidentally creating duplicate `Destination`
    +     * resources.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID
    +     * (00000000-0000-0000-0000-000000000000) isn't supported.
    +     * 
    + * + * + * string request_id = 4 [(.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. A request ID to identify requests. Specify a unique request ID
    +     * so that if you must retry your request, the server can ignore
    +     * the request if it has already been completed. The server waits
    +     * for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, can ignore the second request. This prevents
    +     * clients from accidentally creating duplicate `Destination`
    +     * resources.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID
    +     * (00000000-0000-0000-0000-000000000000) isn't supported.
    +     * 
    + * + * + * string request_id = 4 [(.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. A request ID to identify requests. Specify a unique request ID
    +     * so that if you must retry your request, the server can ignore
    +     * the request if it has already been completed. The server waits
    +     * for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, can ignore the second request. This prevents
    +     * clients from accidentally creating duplicate `Destination`
    +     * resources.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID
    +     * (00000000-0000-0000-0000-000000000000) isn't supported.
    +     * 
    + * + * + * string request_id = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A request ID to identify requests. Specify a unique request ID
    +     * so that if you must retry your request, the server can ignore
    +     * the request if it has already been completed. The server waits
    +     * for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, can ignore the second request. This prevents
    +     * clients from accidentally creating duplicate `Destination`
    +     * resources.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID
    +     * (00000000-0000-0000-0000-000000000000) isn't supported.
    +     * 
    + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A request ID to identify requests. Specify a unique request ID
    +     * so that if you must retry your request, the server can ignore
    +     * the request if it has already been completed. The server waits
    +     * for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, can ignore the second request. This prevents
    +     * clients from accidentally creating duplicate `Destination`
    +     * resources.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID
    +     * (00000000-0000-0000-0000-000000000000) isn't supported.
    +     * 
    + * + * + * string request_id = 4 [(.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_ |= 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.networkconnectivity.v1.CreateDestinationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.CreateDestinationRequest) + private static final com.google.cloud.networkconnectivity.v1.CreateDestinationRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.CreateDestinationRequest(); + } + + public static com.google.cloud.networkconnectivity.v1.CreateDestinationRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateDestinationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.networkconnectivity.v1.CreateDestinationRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateDestinationRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateDestinationRequestOrBuilder.java new file mode 100644 index 000000000000..4952a526561e --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateDestinationRequestOrBuilder.java @@ -0,0 +1,183 @@ +/* + * 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/networkconnectivity/v1/data_transfer.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkconnectivity.v1; + +public interface CreateDestinationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.CreateDestinationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The name of the parent resource.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. The name of the parent resource.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Required. The ID to use for the `Destination` resource, which becomes the
    +   * final component of the `Destination` resource name.
    +   * 
    + * + * string destination_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The destinationId. + */ + java.lang.String getDestinationId(); + + /** + * + * + *
    +   * Required. The ID to use for the `Destination` resource, which becomes the
    +   * final component of the `Destination` resource name.
    +   * 
    + * + * string destination_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for destinationId. + */ + com.google.protobuf.ByteString getDestinationIdBytes(); + + /** + * + * + *
    +   * Required. The `Destination` resource to create.
    +   * 
    + * + * + * .google.cloud.networkconnectivity.v1.Destination destination = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the destination field is set. + */ + boolean hasDestination(); + + /** + * + * + *
    +   * Required. The `Destination` resource to create.
    +   * 
    + * + * + * .google.cloud.networkconnectivity.v1.Destination destination = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The destination. + */ + com.google.cloud.networkconnectivity.v1.Destination getDestination(); + + /** + * + * + *
    +   * Required. The `Destination` resource to create.
    +   * 
    + * + * + * .google.cloud.networkconnectivity.v1.Destination destination = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networkconnectivity.v1.DestinationOrBuilder getDestinationOrBuilder(); + + /** + * + * + *
    +   * Optional. A request ID to identify requests. Specify a unique request ID
    +   * so that if you must retry your request, the server can ignore
    +   * the request if it has already been completed. The server waits
    +   * for at least 60 minutes since the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and
    +   * the request times out. If you make the request again with the same request
    +   * ID, the server can check if original operation with the same request ID
    +   * was received, and if so, can ignore the second request. This prevents
    +   * clients from accidentally creating duplicate `Destination`
    +   * resources.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID
    +   * (00000000-0000-0000-0000-000000000000) isn't supported.
    +   * 
    + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
    +   * Optional. A request ID to identify requests. Specify a unique request ID
    +   * so that if you must retry your request, the server can ignore
    +   * the request if it has already been completed. The server waits
    +   * for at least 60 minutes since the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and
    +   * the request times out. If you make the request again with the same request
    +   * ID, the server can check if original operation with the same request ID
    +   * was received, and if so, can ignore the second request. This prevents
    +   * clients from accidentally creating duplicate `Destination`
    +   * resources.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID
    +   * (00000000-0000-0000-0000-000000000000) isn't supported.
    +   * 
    + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateMulticloudDataTransferConfigRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateMulticloudDataTransferConfigRequest.java new file mode 100644 index 000000000000..08c27202784b --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateMulticloudDataTransferConfigRequest.java @@ -0,0 +1,1535 @@ +/* + * 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/networkconnectivity/v1/data_transfer.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkconnectivity.v1; + +/** + * + * + *
    + * Request message to create a `MulticloudDataTransferConfig` resource.
    + * 
    + * + * Protobuf type {@code + * google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest} + */ +public final class CreateMulticloudDataTransferConfigRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest) + CreateMulticloudDataTransferConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CreateMulticloudDataTransferConfigRequest.newBuilder() to construct. + private CreateMulticloudDataTransferConfigRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateMulticloudDataTransferConfigRequest() { + parent_ = ""; + multicloudDataTransferConfigId_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateMulticloudDataTransferConfigRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_CreateMulticloudDataTransferConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_CreateMulticloudDataTransferConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest.class, + com.google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest + .Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
    +   * Required. The name of the parent resource.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. The name of the parent resource.
    +   * 
    + * + * + * 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 MULTICLOUD_DATA_TRANSFER_CONFIG_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object multicloudDataTransferConfigId_ = ""; + + /** + * + * + *
    +   * Required. The ID to use for the `MulticloudDataTransferConfig` resource,
    +   * which becomes the final component of the `MulticloudDataTransferConfig`
    +   * resource name.
    +   * 
    + * + * string multicloud_data_transfer_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The multicloudDataTransferConfigId. + */ + @java.lang.Override + public java.lang.String getMulticloudDataTransferConfigId() { + java.lang.Object ref = multicloudDataTransferConfigId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + multicloudDataTransferConfigId_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. The ID to use for the `MulticloudDataTransferConfig` resource,
    +   * which becomes the final component of the `MulticloudDataTransferConfig`
    +   * resource name.
    +   * 
    + * + * string multicloud_data_transfer_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for multicloudDataTransferConfigId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMulticloudDataTransferConfigIdBytes() { + java.lang.Object ref = multicloudDataTransferConfigId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + multicloudDataTransferConfigId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MULTICLOUD_DATA_TRANSFER_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig + multicloudDataTransferConfig_; + + /** + * + * + *
    +   * Required. The `MulticloudDataTransferConfig` resource to create.
    +   * 
    + * + * + * .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the multicloudDataTransferConfig field is set. + */ + @java.lang.Override + public boolean hasMulticloudDataTransferConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Required. The `MulticloudDataTransferConfig` resource to create.
    +   * 
    + * + * + * .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The multicloudDataTransferConfig. + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig + getMulticloudDataTransferConfig() { + return multicloudDataTransferConfig_ == null + ? com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig.getDefaultInstance() + : multicloudDataTransferConfig_; + } + + /** + * + * + *
    +   * Required. The `MulticloudDataTransferConfig` resource to create.
    +   * 
    + * + * + * .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfigOrBuilder + getMulticloudDataTransferConfigOrBuilder() { + return multicloudDataTransferConfig_ == null + ? com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig.getDefaultInstance() + : multicloudDataTransferConfig_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
    +   * Optional. A request ID to identify requests. Specify a unique request ID
    +   * so that if you must retry your request, the server can ignore
    +   * the request if it has already been completed. The server waits
    +   * for at least 60 minutes since the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and
    +   * the request times out. If you make the request again with the same request
    +   * ID, the server can check if original operation with the same request ID
    +   * was received, and if so, can ignore the second request. This prevents
    +   * clients from accidentally creating duplicate `MulticloudDataTransferConfig`
    +   * resources.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID
    +   * (00000000-0000-0000-0000-000000000000) isn't supported.
    +   * 
    + * + * + * string request_id = 4 [(.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. A request ID to identify requests. Specify a unique request ID
    +   * so that if you must retry your request, the server can ignore
    +   * the request if it has already been completed. The server waits
    +   * for at least 60 minutes since the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and
    +   * the request times out. If you make the request again with the same request
    +   * ID, the server can check if original operation with the same request ID
    +   * was received, and if so, can ignore the second request. This prevents
    +   * clients from accidentally creating duplicate `MulticloudDataTransferConfig`
    +   * resources.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID
    +   * (00000000-0000-0000-0000-000000000000) isn't supported.
    +   * 
    + * + * + * string request_id = 4 [(.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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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(multicloudDataTransferConfigId_)) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 2, multicloudDataTransferConfigId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getMulticloudDataTransferConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(multicloudDataTransferConfigId_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 2, multicloudDataTransferConfigId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, getMulticloudDataTransferConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest other = + (com.google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getMulticloudDataTransferConfigId().equals(other.getMulticloudDataTransferConfigId())) + return false; + if (hasMulticloudDataTransferConfig() != other.hasMulticloudDataTransferConfig()) return false; + if (hasMulticloudDataTransferConfig()) { + if (!getMulticloudDataTransferConfig().equals(other.getMulticloudDataTransferConfig())) + return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + MULTICLOUD_DATA_TRANSFER_CONFIG_ID_FIELD_NUMBER; + hash = (53 * hash) + getMulticloudDataTransferConfigId().hashCode(); + if (hasMulticloudDataTransferConfig()) { + hash = (37 * hash) + MULTICLOUD_DATA_TRANSFER_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getMulticloudDataTransferConfig().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest + 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.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest + parseFrom( + 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.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest + 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.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest + 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.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest + 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.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request message to create a `MulticloudDataTransferConfig` resource.
    +   * 
    + * + * Protobuf type {@code + * google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest) + com.google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_CreateMulticloudDataTransferConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_CreateMulticloudDataTransferConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest + .class, + com.google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest + .Builder.class); + } + + // Construct using + // com.google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMulticloudDataTransferConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + multicloudDataTransferConfigId_ = ""; + multicloudDataTransferConfig_ = null; + if (multicloudDataTransferConfigBuilder_ != null) { + multicloudDataTransferConfigBuilder_.dispose(); + multicloudDataTransferConfigBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_CreateMulticloudDataTransferConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest + build() { + com.google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest + buildPartial() { + com.google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest result = + new com.google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.multicloudDataTransferConfigId_ = multicloudDataTransferConfigId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.multicloudDataTransferConfig_ = + multicloudDataTransferConfigBuilder_ == null + ? multicloudDataTransferConfig_ + : multicloudDataTransferConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest) { + return mergeFrom( + (com.google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest other) { + if (other + == com.google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getMulticloudDataTransferConfigId().isEmpty()) { + multicloudDataTransferConfigId_ = other.multicloudDataTransferConfigId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasMulticloudDataTransferConfig()) { + mergeMulticloudDataTransferConfig(other.getMulticloudDataTransferConfig()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + multicloudDataTransferConfigId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getMulticloudDataTransferConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
    +     * Required. The name of the parent resource.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. The name of the parent resource.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. The name of the parent resource.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The name of the parent resource.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The name of the parent resource.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object multicloudDataTransferConfigId_ = ""; + + /** + * + * + *
    +     * Required. The ID to use for the `MulticloudDataTransferConfig` resource,
    +     * which becomes the final component of the `MulticloudDataTransferConfig`
    +     * resource name.
    +     * 
    + * + * + * string multicloud_data_transfer_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The multicloudDataTransferConfigId. + */ + public java.lang.String getMulticloudDataTransferConfigId() { + java.lang.Object ref = multicloudDataTransferConfigId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + multicloudDataTransferConfigId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. The ID to use for the `MulticloudDataTransferConfig` resource,
    +     * which becomes the final component of the `MulticloudDataTransferConfig`
    +     * resource name.
    +     * 
    + * + * + * string multicloud_data_transfer_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for multicloudDataTransferConfigId. + */ + public com.google.protobuf.ByteString getMulticloudDataTransferConfigIdBytes() { + java.lang.Object ref = multicloudDataTransferConfigId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + multicloudDataTransferConfigId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. The ID to use for the `MulticloudDataTransferConfig` resource,
    +     * which becomes the final component of the `MulticloudDataTransferConfig`
    +     * resource name.
    +     * 
    + * + * + * string multicloud_data_transfer_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The multicloudDataTransferConfigId to set. + * @return This builder for chaining. + */ + public Builder setMulticloudDataTransferConfigId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + multicloudDataTransferConfigId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The ID to use for the `MulticloudDataTransferConfig` resource,
    +     * which becomes the final component of the `MulticloudDataTransferConfig`
    +     * resource name.
    +     * 
    + * + * + * string multicloud_data_transfer_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearMulticloudDataTransferConfigId() { + multicloudDataTransferConfigId_ = getDefaultInstance().getMulticloudDataTransferConfigId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The ID to use for the `MulticloudDataTransferConfig` resource,
    +     * which becomes the final component of the `MulticloudDataTransferConfig`
    +     * resource name.
    +     * 
    + * + * + * string multicloud_data_transfer_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for multicloudDataTransferConfigId to set. + * @return This builder for chaining. + */ + public Builder setMulticloudDataTransferConfigIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + multicloudDataTransferConfigId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig + multicloudDataTransferConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig, + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig.Builder, + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfigOrBuilder> + multicloudDataTransferConfigBuilder_; + + /** + * + * + *
    +     * Required. The `MulticloudDataTransferConfig` resource to create.
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the multicloudDataTransferConfig field is set. + */ + public boolean hasMulticloudDataTransferConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +     * Required. The `MulticloudDataTransferConfig` resource to create.
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The multicloudDataTransferConfig. + */ + public com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig + getMulticloudDataTransferConfig() { + if (multicloudDataTransferConfigBuilder_ == null) { + return multicloudDataTransferConfig_ == null + ? com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig + .getDefaultInstance() + : multicloudDataTransferConfig_; + } else { + return multicloudDataTransferConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Required. The `MulticloudDataTransferConfig` resource to create.
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMulticloudDataTransferConfig( + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig value) { + if (multicloudDataTransferConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + multicloudDataTransferConfig_ = value; + } else { + multicloudDataTransferConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The `MulticloudDataTransferConfig` resource to create.
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMulticloudDataTransferConfig( + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig.Builder + builderForValue) { + if (multicloudDataTransferConfigBuilder_ == null) { + multicloudDataTransferConfig_ = builderForValue.build(); + } else { + multicloudDataTransferConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The `MulticloudDataTransferConfig` resource to create.
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeMulticloudDataTransferConfig( + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig value) { + if (multicloudDataTransferConfigBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && multicloudDataTransferConfig_ != null + && multicloudDataTransferConfig_ + != com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig + .getDefaultInstance()) { + getMulticloudDataTransferConfigBuilder().mergeFrom(value); + } else { + multicloudDataTransferConfig_ = value; + } + } else { + multicloudDataTransferConfigBuilder_.mergeFrom(value); + } + if (multicloudDataTransferConfig_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Required. The `MulticloudDataTransferConfig` resource to create.
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearMulticloudDataTransferConfig() { + bitField0_ = (bitField0_ & ~0x00000004); + multicloudDataTransferConfig_ = null; + if (multicloudDataTransferConfigBuilder_ != null) { + multicloudDataTransferConfigBuilder_.dispose(); + multicloudDataTransferConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The `MulticloudDataTransferConfig` resource to create.
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig.Builder + getMulticloudDataTransferConfigBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getMulticloudDataTransferConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Required. The `MulticloudDataTransferConfig` resource to create.
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfigOrBuilder + getMulticloudDataTransferConfigOrBuilder() { + if (multicloudDataTransferConfigBuilder_ != null) { + return multicloudDataTransferConfigBuilder_.getMessageOrBuilder(); + } else { + return multicloudDataTransferConfig_ == null + ? com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig + .getDefaultInstance() + : multicloudDataTransferConfig_; + } + } + + /** + * + * + *
    +     * Required. The `MulticloudDataTransferConfig` resource to create.
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig, + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig.Builder, + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfigOrBuilder> + getMulticloudDataTransferConfigFieldBuilder() { + if (multicloudDataTransferConfigBuilder_ == null) { + multicloudDataTransferConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig, + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig.Builder, + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfigOrBuilder>( + getMulticloudDataTransferConfig(), getParentForChildren(), isClean()); + multicloudDataTransferConfig_ = null; + } + return multicloudDataTransferConfigBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
    +     * Optional. A request ID to identify requests. Specify a unique request ID
    +     * so that if you must retry your request, the server can ignore
    +     * the request if it has already been completed. The server waits
    +     * for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, can ignore the second request. This prevents
    +     * clients from accidentally creating duplicate `MulticloudDataTransferConfig`
    +     * resources.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID
    +     * (00000000-0000-0000-0000-000000000000) isn't supported.
    +     * 
    + * + * + * string request_id = 4 [(.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. A request ID to identify requests. Specify a unique request ID
    +     * so that if you must retry your request, the server can ignore
    +     * the request if it has already been completed. The server waits
    +     * for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, can ignore the second request. This prevents
    +     * clients from accidentally creating duplicate `MulticloudDataTransferConfig`
    +     * resources.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID
    +     * (00000000-0000-0000-0000-000000000000) isn't supported.
    +     * 
    + * + * + * string request_id = 4 [(.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. A request ID to identify requests. Specify a unique request ID
    +     * so that if you must retry your request, the server can ignore
    +     * the request if it has already been completed. The server waits
    +     * for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, can ignore the second request. This prevents
    +     * clients from accidentally creating duplicate `MulticloudDataTransferConfig`
    +     * resources.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID
    +     * (00000000-0000-0000-0000-000000000000) isn't supported.
    +     * 
    + * + * + * string request_id = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A request ID to identify requests. Specify a unique request ID
    +     * so that if you must retry your request, the server can ignore
    +     * the request if it has already been completed. The server waits
    +     * for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, can ignore the second request. This prevents
    +     * clients from accidentally creating duplicate `MulticloudDataTransferConfig`
    +     * resources.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID
    +     * (00000000-0000-0000-0000-000000000000) isn't supported.
    +     * 
    + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A request ID to identify requests. Specify a unique request ID
    +     * so that if you must retry your request, the server can ignore
    +     * the request if it has already been completed. The server waits
    +     * for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, can ignore the second request. This prevents
    +     * clients from accidentally creating duplicate `MulticloudDataTransferConfig`
    +     * resources.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID
    +     * (00000000-0000-0000-0000-000000000000) isn't supported.
    +     * 
    + * + * + * string request_id = 4 [(.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_ |= 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.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest) + private static final com.google.cloud.networkconnectivity.v1 + .CreateMulticloudDataTransferConfigRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest(); + } + + public static com.google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateMulticloudDataTransferConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateMulticloudDataTransferConfigRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateMulticloudDataTransferConfigRequestOrBuilder.java new file mode 100644 index 000000000000..6a9e242d4746 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateMulticloudDataTransferConfigRequestOrBuilder.java @@ -0,0 +1,189 @@ +/* + * 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/networkconnectivity/v1/data_transfer.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkconnectivity.v1; + +public interface CreateMulticloudDataTransferConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The name of the parent resource.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. The name of the parent resource.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Required. The ID to use for the `MulticloudDataTransferConfig` resource,
    +   * which becomes the final component of the `MulticloudDataTransferConfig`
    +   * resource name.
    +   * 
    + * + * string multicloud_data_transfer_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The multicloudDataTransferConfigId. + */ + java.lang.String getMulticloudDataTransferConfigId(); + + /** + * + * + *
    +   * Required. The ID to use for the `MulticloudDataTransferConfig` resource,
    +   * which becomes the final component of the `MulticloudDataTransferConfig`
    +   * resource name.
    +   * 
    + * + * string multicloud_data_transfer_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for multicloudDataTransferConfigId. + */ + com.google.protobuf.ByteString getMulticloudDataTransferConfigIdBytes(); + + /** + * + * + *
    +   * Required. The `MulticloudDataTransferConfig` resource to create.
    +   * 
    + * + * + * .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the multicloudDataTransferConfig field is set. + */ + boolean hasMulticloudDataTransferConfig(); + + /** + * + * + *
    +   * Required. The `MulticloudDataTransferConfig` resource to create.
    +   * 
    + * + * + * .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The multicloudDataTransferConfig. + */ + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig + getMulticloudDataTransferConfig(); + + /** + * + * + *
    +   * Required. The `MulticloudDataTransferConfig` resource to create.
    +   * 
    + * + * + * .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfigOrBuilder + getMulticloudDataTransferConfigOrBuilder(); + + /** + * + * + *
    +   * Optional. A request ID to identify requests. Specify a unique request ID
    +   * so that if you must retry your request, the server can ignore
    +   * the request if it has already been completed. The server waits
    +   * for at least 60 minutes since the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and
    +   * the request times out. If you make the request again with the same request
    +   * ID, the server can check if original operation with the same request ID
    +   * was received, and if so, can ignore the second request. This prevents
    +   * clients from accidentally creating duplicate `MulticloudDataTransferConfig`
    +   * resources.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID
    +   * (00000000-0000-0000-0000-000000000000) isn't supported.
    +   * 
    + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
    +   * Optional. A request ID to identify requests. Specify a unique request ID
    +   * so that if you must retry your request, the server can ignore
    +   * the request if it has already been completed. The server waits
    +   * for at least 60 minutes since the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and
    +   * the request times out. If you make the request again with the same request
    +   * ID, the server can check if original operation with the same request ID
    +   * was received, and if so, can ignore the second request. This prevents
    +   * clients from accidentally creating duplicate `MulticloudDataTransferConfig`
    +   * resources.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID
    +   * (00000000-0000-0000-0000-000000000000) isn't supported.
    +   * 
    + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DataTransferProto.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DataTransferProto.java new file mode 100644 index 000000000000..18c025d97007 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DataTransferProto.java @@ -0,0 +1,661 @@ +/* + * 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/networkconnectivity/v1/data_transfer.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkconnectivity.v1; + +public final class DataTransferProto { + private DataTransferProto() {} + + 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_networkconnectivity_v1_MulticloudDataTransferConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_MulticloudDataTransferConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_MulticloudDataTransferConfig_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_MulticloudDataTransferConfig_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_MulticloudDataTransferConfig_ServicesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_MulticloudDataTransferConfig_ServicesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_ListMulticloudDataTransferConfigsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_ListMulticloudDataTransferConfigsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_ListMulticloudDataTransferConfigsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_ListMulticloudDataTransferConfigsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_GetMulticloudDataTransferConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_GetMulticloudDataTransferConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_CreateMulticloudDataTransferConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_CreateMulticloudDataTransferConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_UpdateMulticloudDataTransferConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_UpdateMulticloudDataTransferConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_DeleteMulticloudDataTransferConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_DeleteMulticloudDataTransferConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_Destination_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_Destination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_Destination_DestinationEndpoint_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_Destination_DestinationEndpoint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_Destination_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_Destination_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_ListDestinationsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_ListDestinationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_ListDestinationsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_ListDestinationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_GetDestinationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_GetDestinationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_CreateDestinationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_CreateDestinationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_UpdateDestinationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_UpdateDestinationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_DeleteDestinationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_DeleteDestinationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_StateTimeline_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_StateTimeline_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_StateTimeline_StateMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_StateTimeline_StateMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_MulticloudDataTransferSupportedService_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_MulticloudDataTransferSupportedService_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_ServiceConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_ServiceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_GetMulticloudDataTransferSupportedServiceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_GetMulticloudDataTransferSupportedServiceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_ListMulticloudDataTransferSupportedServicesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_ListMulticloudDataTransferSupportedServicesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_ListMulticloudDataTransferSupportedServicesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_ListMulticloudDataTransferSupportedServicesResponse_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" + + "7google/cloud/networkconnectivity/v1/data_transfer.proto\022#google.cloud.networkc" + + "onnectivity.v1\032\034google/api/annotations.p" + + "roto\032\027google/api/client.proto\032\037google/ap" + + "i/field_behavior.proto\032\033google/api/field" + + "_info.proto\032\031google/api/resource.proto\0320" + + "google/cloud/networkconnectivity/v1/comm" + + "on.proto\032#google/longrunning/operations.proto\032\033google/protobuf/empty.proto\032" + + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\366\006\n" + + "\034MulticloudDataTransferConfig\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\0224\n" + + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022b\n" + + "\006labels\030\004 \003(\0132M.google.cloud.networkconnectivity.v1.Mult" + + "icloudDataTransferConfig.LabelsEntryB\003\340A\001\022\014\n" + + "\004etag\030\005 \001(\t\022\030\n" + + "\013description\030\006 \001(\tB\003\340A\001\022\037\n" + + "\022destinations_count\030\007 \001(\005B\003\340A\003\022&\n" + + "\031destinations_active_count\030\010 \001(\005B\003\340A\003\022f\n" + + "\010services\030\t \003(\0132O.google.cloud.networkconne" + + "ctivity.v1.MulticloudDataTransferConfig.ServicesEntryB\003\340A\001\022\030\n" + + "\003uid\030\n" + + " \001(\tB\013\340A\003\342\214\317\327\010\002\010\001\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\032c\n\r" + + "ServicesEntry\022\013\n" + + "\003key\030\001 \001(\t\022A\n" + + "\005value\030\002" + + " \001(\01322.google.cloud.networkconnectivity.v1.StateTimeline:\0028\001:\353\001\352A\347\001\n" + + "?networkconnectivity.googleapis.com/MulticloudDataTransferConfig\022gprojects/{proj" + + "ect}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_transfe" + + "r_config}*\035multicloudDataTransferConfigs2\034multicloudDataTransferConfig\"\347\001\n" + + "(ListMulticloudDataTransferConfigsRequest\0229\n" + + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + + "!locations.googleapis.com/Location\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\022#\n" + + "\026return_partial_success\030\006 \001(\010B\003\340A\001\"\306\001\n" + + ")ListMulticloudDataTransferConfigsResponse\022k\n" + + " multicloud_data_transfer_configs\030\001 \003(\0132A.googl" + + "e.cloud.networkconnectivity.v1.MulticloudDataTransferConfig\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\023\n" + + "\013unreachable\030\003 \003(\t\"\177\n" + + "&GetMulticloudDataTransferConfigRequest\022U\n" + + "\004name\030\001 \001(\tBG\340A\002\372AA\n" + + "?networkconnectivity.googleapis.com/MulticloudDataTransferConfig\"\251\002\n" + + ")CreateMulticloudDataTransferConfigRequest\0229\n" + + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + + "!locations.googleapis.com/Location\022/\n" + + "\"multicloud_data_transfer_config_id\030\002 \001(\tB\003\340A\002\022o\n" + + "\037multicloud_data_transfer_config\030\003 \001(\0132A.google.c" + + "loud.networkconnectivity.v1.MulticloudDataTransferConfigB\003\340A\002\022\037\n\n" + + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\363\001\n" + + ")UpdateMulticloudDataTransferConfigRequest\0224\n" + + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022o\n" + + "\037multicloud_data_transfer_config\030\002 \001(\0132A.go" + + "ogle.cloud.networkconnectivity.v1.MulticloudDataTransferConfigB\003\340A\002\022\037\n\n" + + "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\266\001\n" + + ")DeleteMulticloudDataTransferConfigRequest\022U\n" + + "\004name\030\001 \001(\tBG\340A\002\372AA\n" + + "?networkconnectivity.googleapis.com/MulticloudDataTransferConfig\022\037\n\n" + + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\022\021\n" + + "\004etag\030\003 \001(\tB\003\340A\001\"\376\007\n" + + "\013Destination\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\0224\n" + + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022Q\n" + + "\006labels\030\004" + + " \003(\0132<.google.cloud.networkconnectivity.v1.Destination.LabelsEntryB\003\340A\001\022\014\n" + + "\004etag\030\005 \001(\t\022\030\n" + + "\013description\030\006 \001(\tB\003\340A\001\022\031\n" + + "\tip_prefix\030\007 \001(\tB\006\340A\002\340A\005\022_\n" + + "\tendpoints\030\010 \003(\0132D." + + "google.cloud.networkconnectivity.v1.Destination.DestinationEndpointB\006\340A\006\340A\002\022O\n" + + "\016state_timeline\030\t" + + " \001(\01322.google.cloud.networkconnectivity.v1.StateTimelineB\003\340A\003\022\030\n" + + "\003uid\030\n" + + " \001(\tB\013\340A\003\342\214\317\327\010\002\010\001\032\207\002\n" + + "\023DestinationEndpoint\022\020\n" + + "\003asn\030\001 \001(\003B\003\340A\002\022\020\n" + + "\003csp\030\002 \001(\tB\003\340A\002\022^\n" + + "\005state\030\003 \001(\0162J.google.cloud.network" + + "connectivity.v1.Destination.DestinationEndpoint.StateB\003\340A\003\0224\n" + + "\013update_time\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\"6\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\t\n" + + "\005VALID\020\001\022\013\n" + + "\007INVALID\020\002\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001:\324\001\352A\320\001\n" + + ".networkconnectivity.googleapis.com/Destination\022\202\001project" + + "s/{project}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_" + + "transfer_config}/destinations/{destination}*\014destinations2\013destination\"\364\001\n" + + "\027ListDestinationsRequest\022W\n" + + "\006parent\030\001 \001(\tBG\340A\002\372AA\n" + + "?networkconnectivity.googleapis.com/MulticloudDataTransferConfig\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\022#\n" + + "\026return_partial_success\030\006 \001(\010B\003\340A\001\"\220\001\n" + + "\030ListDestinationsResponse\022F\n" + + "\014destinations\030\001" + + " \003(\01320.google.cloud.networkconnectivity.v1.Destination\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\023\n" + + "\013unreachable\030\003 \003(\t\"]\n" + + "\025GetDestinationRequest\022D\n" + + "\004name\030\001 \001(\tB6\340A\002\372A0\n" + + ".networkconnectivity.googleapis.com/Destination\"\375\001\n" + + "\030CreateDestinationRequest\022W\n" + + "\006parent\030\001 \001(\tBG\340A\002\372AA\n" + + "?networkconnectivity.googleapis.com/MulticloudDataTransferConfig\022\033\n" + + "\016destination_id\030\002 \001(\tB\003\340A\002\022J\n" + + "\013destination\030\003" + + " \001(\01320.google.cloud.networkconnectivity.v1.DestinationB\003\340A\002\022\037\n\n" + + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\275\001\n" + + "\030UpdateDestinationRequest\0224\n" + + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022J\n" + + "\013destination\030\002 \001(\0132" + + "0.google.cloud.networkconnectivity.v1.DestinationB\003\340A\002\022\037\n\n" + + "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\224\001\n" + + "\030DeleteDestinationRequest\022D\n" + + "\004name\030\001 \001(\tB6\340A\002\372A0\n" + + ".networkconnectivity.googleapis.com/Destination\022\037\n\n" + + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\022\021\n" + + "\004etag\030\003 \001(\tB\003\340A\001\"\362\002\n\r" + + "StateTimeline\022U\n" + + "\006states\030\001 \003(\0132@.googl" + + "e.cloud.networkconnectivity.v1.StateTimeline.StateMetadataB\003\340A\003\032\211\002\n\r" + + "StateMetadata\022Z\n" + + "\005state\030\001 \001(\0162F.google.cloud.networkc" + + "onnectivity.v1.StateTimeline.StateMetadata.StateB\003\340A\003\0227\n" + + "\016effective_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\"c\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n" + + "\006ADDING\020\001\022\n\n" + + "\006ACTIVE\020\002\022\014\n" + + "\010DELETING\020\003\022\016\n\n" + + "SUSPENDING\020\004\022\r\n" + + "\tSUSPENDED\020\005\"\256\003\n" + + "&MulticloudDataTransferSupportedService\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022P\n" + + "\017service_configs\030\002 \003(\01322.google.cloud.networ" + + "kconnectivity.v1.ServiceConfigB\003\340A\003:\236\002\352A\232\002\n" + + "Inetworkconnectivity.googleapis.com/MulticloudDataTransferSupportedService\022|p" + + "rojects/{project}/locations/{location}/multicloudDataTransferSupportedServices/{" + + "multicloud_data_transfer_supported_service}*\'multicloudDataTransferSupportedServ" + + "ices2&multicloudDataTransferSupportedService\"\357\002\n\r" + + "ServiceConfig\022i\n" + + "\024eligibility_criteria\030\001 \001(\0162F.google.cloud.networkconne" + + "ctivity.v1.ServiceConfig.EligibilityCriteriaB\003\340A\003\0229\n" + + "\020support_end_time\030\002" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\"\267\001\n" + + "\023EligibilityCriteria\022$\n" + + " ELIGIBILITY_CRITERIA_UNSPECIFIED\020\000\022%\n" + + "!NETWORK_SERVICE_TIER_PREMIUM_ONLY\020\001\022&\n" + + "\"NETWORK_SERVICE_TIER_STANDARD_ONLY\020\002\022+\n" + + "\'REQUEST_ENDPOINT_REGIONAL_ENDPOINT_ONLY\020\003\"\223\001\n" + + "0GetMulticloudDataTransferSupportedServiceRequest\022_\n" + + "\004name\030\001 \001(\tBQ\340A\002\372AK\n" + + "Inetworkconnectivity.googleapis.com/MulticloudDataTransferSupportedService\"\240\001\n" + + "2ListMulticloudDataTransferSupportedServicesRequest\0229\n" + + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + + "!locations.googleapis.com/Location\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\"\321\001\n" + + "3ListMulticloudDataTransferSupportedServicesResponse\022\200\001\n" + + "+multicloud_data_transfer_supported_services\030\001 \003(\0132K." + + "google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService\022\027\n" + + "\017next_page_token\030\002 \001(\t2\273\034\n" + + "\023DataTransferService\022\226\002\n" + + "!ListMulticloudDataTransferConfigs\022M.google.cloud.networkconnectivity.v1." + + "ListMulticloudDataTransferConfigsRequest\032N.google.cloud.networkconnectivity.v1.L" + + "istMulticloudDataTransferConfigsResponse" + + "\"R\332A\006parent\202\323\344\223\002C\022A/v1/{parent=projects/" + + "*/locations/*}/multicloudDataTransferConfigs\022\203\002\n" + + "\037GetMulticloudDataTransferConfig\022K.google.cloud.networkconnectivity.v1.G" + + "etMulticloudDataTransferConfigRequest\032A.google.cloud.networkconnectivity.v1.Mult" + + "icloudDataTransferConfig\"P\332A\004name\202\323\344\223\002C\022" + + "A/v1/{name=projects/*/locations/*/multicloudDataTransferConfigs/*}\022\200\003\n" + + "\"CreateMulticloudDataTransferConfig\022N.google.cloud" + + ".networkconnectivity.v1.CreateMulticloud" + + "DataTransferConfigRequest\032\035.google.longrunning.Operation\"\352\001\312A1\n" + + "\034MulticloudDataTransferConfig\022\021OperationMetadata\332AIparent" + + ",multicloud_data_transfer_config,multicl" + + "oud_data_transfer_config_id\202\323\344\223\002d\"A/v1/{" + + "parent=projects/*/locations/*}/multiclou" + + "dDataTransferConfigs:\037multicloud_data_transfer_config\022\203\003\n" + + "\"UpdateMulticloudDataTransferConfig\022N.google.cloud.networkconne" + + "ctivity.v1.UpdateMulticloudDataTransferC" + + "onfigRequest\032\035.google.longrunning.Operation\"\355\001\312A1\n" + + "\034MulticloudDataTransferConfig\022\021OperationMetadata\332A+multicloud_data_tra" + + "nsfer_config,update_mask\202\323\344\223\002\204\0012a/v1/{mu" + + "lticloud_data_transfer_config.name=projects/*/locations/*/multicloudDataTransfer" + + "Configs/*}:\037multicloud_data_transfer_config\022\222\002\n" + + "\"DeleteMulticloudDataTransferConfig\022N.google.cloud.networkconnectivity.v1" + + ".DeleteMulticloudDataTransferConfigRequest\032\035.google.longrunning.Operation\"}\312A*\n" + + "\025google.protobuf.Empty\022\021OperationMetadata" + + "\332A\004name\202\323\344\223\002C*A/v1/{name=projects/*/loca" + + "tions/*/multicloudDataTransferConfigs/*}\022\362\001\n" + + "\020ListDestinations\022<.google.cloud.networkconnectivity.v1.ListDestinationsRequ" + + "est\032=.google.cloud.networkconnectivity.v" + + "1.ListDestinationsResponse\"a\332A\006parent\202\323\344" + + "\223\002R\022P/v1/{parent=projects/*/locations/*/" + + "multicloudDataTransferConfigs/*}/destinations\022\337\001\n" + + "\016GetDestination\022:.google.cloud.networkconnectivity.v1.GetDestinationReq" + + "uest\0320.google.cloud.networkconnectivity." + + "v1.Destination\"_\332A\004name\202\323\344\223\002R\022P/v1/{name" + + "=projects/*/locations/*/multicloudDataTransferConfigs/*/destinations/*}\022\240\002\n" + + "\021CreateDestination\022=.google.cloud.networkconn" + + "ectivity.v1.CreateDestinationRequest\032\035.google.longrunning.Operation\"\254\001\312A" + + " \n" + + "\013Destination\022\021OperationMetadata\332A!parent,desti" + + "nation,destination_id\202\323\344\223\002_\"P/v1/{parent" + + "=projects/*/locations/*/multicloudDataTr" + + "ansferConfigs/*}/destinations:\013destination\022\242\002\n" + + "\021UpdateDestination\022=.google.cloud.networkconnectivity.v1.UpdateDestination" + + "Request\032\035.google.longrunning.Operation\"\256\001\312A \n" + + "\013Destination\022\021OperationMetadata\332A\027d" + + "estination,update_mask\202\323\344\223\002k2\\/v1/{desti" + + "nation.name=projects/*/locations/*/multi" + + "cloudDataTransferConfigs/*/destinations/*}:\013destination\022\200\002\n" + + "\021DeleteDestination\022=.google.cloud.networkconnectivity.v1.Dele" + + "teDestinationRequest\032\035.google.longrunning.Operation\"\214\001\312A*\n" + + "\025google.protobuf.Empty" + + "\022\021OperationMetadata\332A\004name\202\323\344\223\002R*P/v1/{n" + + "ame=projects/*/locations/*/multicloudDataTransferConfigs/*/destinations/*}\022\253\002\n" + + ")GetMulticloudDataTransferSupportedService\022U.google.cloud.networkconnectivity.v1.G" + + "etMulticloudDataTransferSupportedServiceRequest\032K.google.cloud.networkconnectivi" + + "ty.v1.MulticloudDataTransferSupportedSer" + + "vice\"Z\332A\004name\202\323\344\223\002M\022K/v1/{name=projects/" + + "*/locations/*/multicloudDataTransferSupportedServices/*}\022\276\002\n" + + "+ListMulticloudDataTransferSupportedServices\022W.google.cloud." + + "networkconnectivity.v1.ListMulticloudDataTransferSupportedServicesRequest\032X.goog" + + "le.cloud.networkconnectivity.v1.ListMulticloudDataTransferSupportedServicesRespo" + + "nse\"\\\332A\006parent\202\323\344\223\002M\022K/v1/{parent=projec" + + "ts/*/locations/*}/multicloudDataTransfer" + + "SupportedServices\032V\312A\"networkconnectivit" + + "y.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\216\002\n" + + "\'com.google.cloud.networkconnectivity.v1B\021DataTrans" + + "ferProtoP\001ZYcloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb;" + + "networkconnectivitypb\252\002#Google.Cloud.Net" + + "workConnectivity.V1\312\002#Google\\Cloud\\Netwo" + + "rkConnectivity\\V1\352\002&Google::Cloud::NetworkConnectivity::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.FieldInfoProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.networkconnectivity.v1.CommonProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_networkconnectivity_v1_MulticloudDataTransferConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_networkconnectivity_v1_MulticloudDataTransferConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1_MulticloudDataTransferConfig_descriptor, + new java.lang.String[] { + "Name", + "CreateTime", + "UpdateTime", + "Labels", + "Etag", + "Description", + "DestinationsCount", + "DestinationsActiveCount", + "Services", + "Uid", + }); + internal_static_google_cloud_networkconnectivity_v1_MulticloudDataTransferConfig_LabelsEntry_descriptor = + internal_static_google_cloud_networkconnectivity_v1_MulticloudDataTransferConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_networkconnectivity_v1_MulticloudDataTransferConfig_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1_MulticloudDataTransferConfig_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_networkconnectivity_v1_MulticloudDataTransferConfig_ServicesEntry_descriptor = + internal_static_google_cloud_networkconnectivity_v1_MulticloudDataTransferConfig_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_networkconnectivity_v1_MulticloudDataTransferConfig_ServicesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1_MulticloudDataTransferConfig_ServicesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_networkconnectivity_v1_ListMulticloudDataTransferConfigsRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_networkconnectivity_v1_ListMulticloudDataTransferConfigsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1_ListMulticloudDataTransferConfigsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", "ReturnPartialSuccess", + }); + internal_static_google_cloud_networkconnectivity_v1_ListMulticloudDataTransferConfigsResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_networkconnectivity_v1_ListMulticloudDataTransferConfigsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1_ListMulticloudDataTransferConfigsResponse_descriptor, + new java.lang.String[] { + "MulticloudDataTransferConfigs", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_networkconnectivity_v1_GetMulticloudDataTransferConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_networkconnectivity_v1_GetMulticloudDataTransferConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1_GetMulticloudDataTransferConfigRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_networkconnectivity_v1_CreateMulticloudDataTransferConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_networkconnectivity_v1_CreateMulticloudDataTransferConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1_CreateMulticloudDataTransferConfigRequest_descriptor, + new java.lang.String[] { + "Parent", + "MulticloudDataTransferConfigId", + "MulticloudDataTransferConfig", + "RequestId", + }); + internal_static_google_cloud_networkconnectivity_v1_UpdateMulticloudDataTransferConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_networkconnectivity_v1_UpdateMulticloudDataTransferConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1_UpdateMulticloudDataTransferConfigRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "MulticloudDataTransferConfig", "RequestId", + }); + internal_static_google_cloud_networkconnectivity_v1_DeleteMulticloudDataTransferConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_networkconnectivity_v1_DeleteMulticloudDataTransferConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1_DeleteMulticloudDataTransferConfigRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", "Etag", + }); + internal_static_google_cloud_networkconnectivity_v1_Destination_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_networkconnectivity_v1_Destination_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1_Destination_descriptor, + new java.lang.String[] { + "Name", + "CreateTime", + "UpdateTime", + "Labels", + "Etag", + "Description", + "IpPrefix", + "Endpoints", + "StateTimeline", + "Uid", + }); + internal_static_google_cloud_networkconnectivity_v1_Destination_DestinationEndpoint_descriptor = + internal_static_google_cloud_networkconnectivity_v1_Destination_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_networkconnectivity_v1_Destination_DestinationEndpoint_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1_Destination_DestinationEndpoint_descriptor, + new java.lang.String[] { + "Asn", "Csp", "State", "UpdateTime", + }); + internal_static_google_cloud_networkconnectivity_v1_Destination_LabelsEntry_descriptor = + internal_static_google_cloud_networkconnectivity_v1_Destination_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_networkconnectivity_v1_Destination_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1_Destination_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_networkconnectivity_v1_ListDestinationsRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_networkconnectivity_v1_ListDestinationsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1_ListDestinationsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", "ReturnPartialSuccess", + }); + internal_static_google_cloud_networkconnectivity_v1_ListDestinationsResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_networkconnectivity_v1_ListDestinationsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1_ListDestinationsResponse_descriptor, + new java.lang.String[] { + "Destinations", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_networkconnectivity_v1_GetDestinationRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_networkconnectivity_v1_GetDestinationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1_GetDestinationRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_networkconnectivity_v1_CreateDestinationRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_networkconnectivity_v1_CreateDestinationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1_CreateDestinationRequest_descriptor, + new java.lang.String[] { + "Parent", "DestinationId", "Destination", "RequestId", + }); + internal_static_google_cloud_networkconnectivity_v1_UpdateDestinationRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_networkconnectivity_v1_UpdateDestinationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1_UpdateDestinationRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "Destination", "RequestId", + }); + internal_static_google_cloud_networkconnectivity_v1_DeleteDestinationRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_networkconnectivity_v1_DeleteDestinationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1_DeleteDestinationRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", "Etag", + }); + internal_static_google_cloud_networkconnectivity_v1_StateTimeline_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_networkconnectivity_v1_StateTimeline_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1_StateTimeline_descriptor, + new java.lang.String[] { + "States", + }); + internal_static_google_cloud_networkconnectivity_v1_StateTimeline_StateMetadata_descriptor = + internal_static_google_cloud_networkconnectivity_v1_StateTimeline_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_networkconnectivity_v1_StateTimeline_StateMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1_StateTimeline_StateMetadata_descriptor, + new java.lang.String[] { + "State", "EffectiveTime", + }); + internal_static_google_cloud_networkconnectivity_v1_MulticloudDataTransferSupportedService_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_networkconnectivity_v1_MulticloudDataTransferSupportedService_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1_MulticloudDataTransferSupportedService_descriptor, + new java.lang.String[] { + "Name", "ServiceConfigs", + }); + internal_static_google_cloud_networkconnectivity_v1_ServiceConfig_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_networkconnectivity_v1_ServiceConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1_ServiceConfig_descriptor, + new java.lang.String[] { + "EligibilityCriteria", "SupportEndTime", + }); + internal_static_google_cloud_networkconnectivity_v1_GetMulticloudDataTransferSupportedServiceRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_networkconnectivity_v1_GetMulticloudDataTransferSupportedServiceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1_GetMulticloudDataTransferSupportedServiceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_networkconnectivity_v1_ListMulticloudDataTransferSupportedServicesRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_networkconnectivity_v1_ListMulticloudDataTransferSupportedServicesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1_ListMulticloudDataTransferSupportedServicesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_networkconnectivity_v1_ListMulticloudDataTransferSupportedServicesResponse_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_networkconnectivity_v1_ListMulticloudDataTransferSupportedServicesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1_ListMulticloudDataTransferSupportedServicesResponse_descriptor, + new java.lang.String[] { + "MulticloudDataTransferSupportedServices", "NextPageToken", + }); + 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.FieldInfoProto.fieldInfo); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.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.FieldInfoProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.networkconnectivity.v1.CommonProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteDestinationRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteDestinationRequest.java new file mode 100644 index 000000000000..5bee7393bf04 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteDestinationRequest.java @@ -0,0 +1,1139 @@ +/* + * 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/networkconnectivity/v1/data_transfer.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkconnectivity.v1; + +/** + * + * + *
    + * Request message to delete a `Destination` resource.
    + * 
    + * + * Protobuf type {@code google.cloud.networkconnectivity.v1.DeleteDestinationRequest} + */ +public final class DeleteDestinationRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.DeleteDestinationRequest) + DeleteDestinationRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DeleteDestinationRequest.newBuilder() to construct. + private DeleteDestinationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteDestinationRequest() { + name_ = ""; + requestId_ = ""; + etag_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteDestinationRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_DeleteDestinationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_DeleteDestinationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.DeleteDestinationRequest.class, + com.google.cloud.networkconnectivity.v1.DeleteDestinationRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Required. The name of the `Destination` resource to delete.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. The name of the `Destination` resource to delete.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
    +   * Optional. A request ID to identify requests. Specify a unique request ID
    +   * so that if you must retry your request, the server can ignore
    +   * the request if it has already been completed. The server waits
    +   * for at least 60 minutes since the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and
    +   * the request times out. If you make the request again with the same request
    +   * ID, the server can check if original operation with the same request ID
    +   * was received, and if so, can ignore the second request.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID
    +   * (00000000-0000-0000-0000-000000000000) isn't supported.
    +   * 
    + * + * + * string request_id = 2 [(.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. A request ID to identify requests. Specify a unique request ID
    +   * so that if you must retry your request, the server can ignore
    +   * the request if it has already been completed. The server waits
    +   * for at least 60 minutes since the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and
    +   * the request times out. If you make the request again with the same request
    +   * ID, the server can check if original operation with the same request ID
    +   * was received, and if so, can ignore the second request.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID
    +   * (00000000-0000-0000-0000-000000000000) isn't supported.
    +   * 
    + * + * + * string request_id = 2 [(.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 ETAG_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
    +   * Optional. The etag is computed by the server, and might be sent with update
    +   * and delete requests so that the client has an up-to-date value before
    +   * proceeding.
    +   * 
    + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. The etag is computed by the server, and might be sent with update
    +   * and delete requests so that the client has an up-to-date value before
    +   * proceeding.
    +   * 
    + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, etag_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.networkconnectivity.v1.DeleteDestinationRequest)) { + return super.equals(obj); + } + com.google.cloud.networkconnectivity.v1.DeleteDestinationRequest other = + (com.google.cloud.networkconnectivity.v1.DeleteDestinationRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkconnectivity.v1.DeleteDestinationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.DeleteDestinationRequest 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.networkconnectivity.v1.DeleteDestinationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.DeleteDestinationRequest parseFrom( + 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.networkconnectivity.v1.DeleteDestinationRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.DeleteDestinationRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkconnectivity.v1.DeleteDestinationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.DeleteDestinationRequest 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.networkconnectivity.v1.DeleteDestinationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.DeleteDestinationRequest 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.networkconnectivity.v1.DeleteDestinationRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.DeleteDestinationRequest 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.networkconnectivity.v1.DeleteDestinationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request message to delete a `Destination` resource.
    +   * 
    + * + * Protobuf type {@code google.cloud.networkconnectivity.v1.DeleteDestinationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.DeleteDestinationRequest) + com.google.cloud.networkconnectivity.v1.DeleteDestinationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_DeleteDestinationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_DeleteDestinationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.DeleteDestinationRequest.class, + com.google.cloud.networkconnectivity.v1.DeleteDestinationRequest.Builder.class); + } + + // Construct using com.google.cloud.networkconnectivity.v1.DeleteDestinationRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + etag_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_DeleteDestinationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.DeleteDestinationRequest + getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.DeleteDestinationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.DeleteDestinationRequest build() { + com.google.cloud.networkconnectivity.v1.DeleteDestinationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.DeleteDestinationRequest buildPartial() { + com.google.cloud.networkconnectivity.v1.DeleteDestinationRequest result = + new com.google.cloud.networkconnectivity.v1.DeleteDestinationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkconnectivity.v1.DeleteDestinationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + if (((from_bitField0_ & 0x00000004) != 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.networkconnectivity.v1.DeleteDestinationRequest) { + return mergeFrom((com.google.cloud.networkconnectivity.v1.DeleteDestinationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkconnectivity.v1.DeleteDestinationRequest other) { + if (other + == com.google.cloud.networkconnectivity.v1.DeleteDestinationRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
    +     * Required. The name of the `Destination` resource to delete.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. The name of the `Destination` resource to delete.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. The name of the `Destination` resource to delete.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The name of the `Destination` resource to delete.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The name of the `Destination` resource to delete.
    +     * 
    + * + * + * 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 java.lang.Object requestId_ = ""; + + /** + * + * + *
    +     * Optional. A request ID to identify requests. Specify a unique request ID
    +     * so that if you must retry your request, the server can ignore
    +     * the request if it has already been completed. The server waits
    +     * for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, can ignore the second request.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID
    +     * (00000000-0000-0000-0000-000000000000) isn't supported.
    +     * 
    + * + * + * string request_id = 2 [(.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. A request ID to identify requests. Specify a unique request ID
    +     * so that if you must retry your request, the server can ignore
    +     * the request if it has already been completed. The server waits
    +     * for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, can ignore the second request.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID
    +     * (00000000-0000-0000-0000-000000000000) isn't supported.
    +     * 
    + * + * + * string request_id = 2 [(.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. A request ID to identify requests. Specify a unique request ID
    +     * so that if you must retry your request, the server can ignore
    +     * the request if it has already been completed. The server waits
    +     * for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, can ignore the second request.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID
    +     * (00000000-0000-0000-0000-000000000000) isn't supported.
    +     * 
    + * + * + * string request_id = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A request ID to identify requests. Specify a unique request ID
    +     * so that if you must retry your request, the server can ignore
    +     * the request if it has already been completed. The server waits
    +     * for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, can ignore the second request.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID
    +     * (00000000-0000-0000-0000-000000000000) isn't supported.
    +     * 
    + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A request ID to identify requests. Specify a unique request ID
    +     * so that if you must retry your request, the server can ignore
    +     * the request if it has already been completed. The server waits
    +     * for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, can ignore the second request.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID
    +     * (00000000-0000-0000-0000-000000000000) isn't supported.
    +     * 
    + * + * + * string request_id = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
    +     * Optional. The etag is computed by the server, and might be sent with update
    +     * and delete requests so that the client has an up-to-date value before
    +     * proceeding.
    +     * 
    + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. The etag is computed by the server, and might be sent with update
    +     * and delete requests so that the client has an up-to-date value before
    +     * proceeding.
    +     * 
    + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. The etag is computed by the server, and might be sent with update
    +     * and delete requests so that the client has an up-to-date value before
    +     * proceeding.
    +     * 
    + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The etag is computed by the server, and might be sent with update
    +     * and delete requests so that the client has an up-to-date value before
    +     * proceeding.
    +     * 
    + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The etag is computed by the server, and might be sent with update
    +     * and delete requests so that the client has an up-to-date value before
    +     * proceeding.
    +     * 
    + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + 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.networkconnectivity.v1.DeleteDestinationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.DeleteDestinationRequest) + private static final com.google.cloud.networkconnectivity.v1.DeleteDestinationRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.DeleteDestinationRequest(); + } + + public static com.google.cloud.networkconnectivity.v1.DeleteDestinationRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteDestinationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.networkconnectivity.v1.DeleteDestinationRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteDestinationRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteDestinationRequestOrBuilder.java new file mode 100644 index 000000000000..d3392db8466f --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteDestinationRequestOrBuilder.java @@ -0,0 +1,138 @@ +/* + * 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/networkconnectivity/v1/data_transfer.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkconnectivity.v1; + +public interface DeleteDestinationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.DeleteDestinationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The name of the `Destination` resource to delete.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Required. The name of the `Destination` resource to delete.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Optional. A request ID to identify requests. Specify a unique request ID
    +   * so that if you must retry your request, the server can ignore
    +   * the request if it has already been completed. The server waits
    +   * for at least 60 minutes since the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and
    +   * the request times out. If you make the request again with the same request
    +   * ID, the server can check if original operation with the same request ID
    +   * was received, and if so, can ignore the second request.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID
    +   * (00000000-0000-0000-0000-000000000000) isn't supported.
    +   * 
    + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
    +   * Optional. A request ID to identify requests. Specify a unique request ID
    +   * so that if you must retry your request, the server can ignore
    +   * the request if it has already been completed. The server waits
    +   * for at least 60 minutes since the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and
    +   * the request times out. If you make the request again with the same request
    +   * ID, the server can check if original operation with the same request ID
    +   * was received, and if so, can ignore the second request.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID
    +   * (00000000-0000-0000-0000-000000000000) isn't supported.
    +   * 
    + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
    +   * Optional. The etag is computed by the server, and might be sent with update
    +   * and delete requests so that the client has an up-to-date value before
    +   * proceeding.
    +   * 
    + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
    +   * Optional. The etag is computed by the server, and might be sent with update
    +   * and delete requests so that the client has an up-to-date value before
    +   * proceeding.
    +   * 
    + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteMulticloudDataTransferConfigRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteMulticloudDataTransferConfigRequest.java new file mode 100644 index 000000000000..5652a7ee6859 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteMulticloudDataTransferConfigRequest.java @@ -0,0 +1,1189 @@ +/* + * 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/networkconnectivity/v1/data_transfer.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkconnectivity.v1; + +/** + * + * + *
    + * Request message to delete a `MulticloudDataTransferConfig` resource.
    + * 
    + * + * Protobuf type {@code + * google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest} + */ +public final class DeleteMulticloudDataTransferConfigRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest) + DeleteMulticloudDataTransferConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DeleteMulticloudDataTransferConfigRequest.newBuilder() to construct. + private DeleteMulticloudDataTransferConfigRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteMulticloudDataTransferConfigRequest() { + name_ = ""; + requestId_ = ""; + etag_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteMulticloudDataTransferConfigRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_DeleteMulticloudDataTransferConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_DeleteMulticloudDataTransferConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest.class, + com.google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest + .Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Required. The name of the `MulticloudDataTransferConfig` resource to
    +   * delete.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. The name of the `MulticloudDataTransferConfig` resource to
    +   * delete.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
    +   * Optional. A request ID to identify requests. Specify a unique request ID
    +   * so that if you must retry your request, the server can ignore
    +   * the request if it has already been completed. The server waits
    +   * for at least 60 minutes since the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and
    +   * the request times out. If you make the request again with the same request
    +   * ID, the server can check if original operation with the same request ID
    +   * was received, and if so, can ignore the second request. This prevents
    +   * clients from accidentally creating duplicate `MulticloudDataTransferConfig`
    +   * resources.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID
    +   * (00000000-0000-0000-0000-000000000000) isn't supported.
    +   * 
    + * + * + * string request_id = 2 [(.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. A request ID to identify requests. Specify a unique request ID
    +   * so that if you must retry your request, the server can ignore
    +   * the request if it has already been completed. The server waits
    +   * for at least 60 minutes since the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and
    +   * the request times out. If you make the request again with the same request
    +   * ID, the server can check if original operation with the same request ID
    +   * was received, and if so, can ignore the second request. This prevents
    +   * clients from accidentally creating duplicate `MulticloudDataTransferConfig`
    +   * resources.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID
    +   * (00000000-0000-0000-0000-000000000000) isn't supported.
    +   * 
    + * + * + * string request_id = 2 [(.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 ETAG_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
    +   * Optional. The etag is computed by the server, and might be sent with update
    +   * and delete requests so that the client has an up-to-date value before
    +   * proceeding.
    +   * 
    + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. The etag is computed by the server, and might be sent with update
    +   * and delete requests so that the client has an up-to-date value before
    +   * proceeding.
    +   * 
    + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, etag_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest other = + (com.google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest + 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.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest + parseFrom( + 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.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest + 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.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest + 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.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest + 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.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request message to delete a `MulticloudDataTransferConfig` resource.
    +   * 
    + * + * Protobuf type {@code + * google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest) + com.google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_DeleteMulticloudDataTransferConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_DeleteMulticloudDataTransferConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest + .class, + com.google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest + .Builder.class); + } + + // Construct using + // com.google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + etag_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_DeleteMulticloudDataTransferConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest + build() { + com.google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest + buildPartial() { + com.google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest result = + new com.google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + if (((from_bitField0_ & 0x00000004) != 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.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest) { + return mergeFrom( + (com.google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest other) { + if (other + == com.google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
    +     * Required. The name of the `MulticloudDataTransferConfig` resource to
    +     * delete.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. The name of the `MulticloudDataTransferConfig` resource to
    +     * delete.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. The name of the `MulticloudDataTransferConfig` resource to
    +     * delete.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The name of the `MulticloudDataTransferConfig` resource to
    +     * delete.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The name of the `MulticloudDataTransferConfig` resource to
    +     * delete.
    +     * 
    + * + * + * 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 java.lang.Object requestId_ = ""; + + /** + * + * + *
    +     * Optional. A request ID to identify requests. Specify a unique request ID
    +     * so that if you must retry your request, the server can ignore
    +     * the request if it has already been completed. The server waits
    +     * for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, can ignore the second request. This prevents
    +     * clients from accidentally creating duplicate `MulticloudDataTransferConfig`
    +     * resources.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID
    +     * (00000000-0000-0000-0000-000000000000) isn't supported.
    +     * 
    + * + * + * string request_id = 2 [(.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. A request ID to identify requests. Specify a unique request ID
    +     * so that if you must retry your request, the server can ignore
    +     * the request if it has already been completed. The server waits
    +     * for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, can ignore the second request. This prevents
    +     * clients from accidentally creating duplicate `MulticloudDataTransferConfig`
    +     * resources.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID
    +     * (00000000-0000-0000-0000-000000000000) isn't supported.
    +     * 
    + * + * + * string request_id = 2 [(.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. A request ID to identify requests. Specify a unique request ID
    +     * so that if you must retry your request, the server can ignore
    +     * the request if it has already been completed. The server waits
    +     * for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, can ignore the second request. This prevents
    +     * clients from accidentally creating duplicate `MulticloudDataTransferConfig`
    +     * resources.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID
    +     * (00000000-0000-0000-0000-000000000000) isn't supported.
    +     * 
    + * + * + * string request_id = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A request ID to identify requests. Specify a unique request ID
    +     * so that if you must retry your request, the server can ignore
    +     * the request if it has already been completed. The server waits
    +     * for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, can ignore the second request. This prevents
    +     * clients from accidentally creating duplicate `MulticloudDataTransferConfig`
    +     * resources.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID
    +     * (00000000-0000-0000-0000-000000000000) isn't supported.
    +     * 
    + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A request ID to identify requests. Specify a unique request ID
    +     * so that if you must retry your request, the server can ignore
    +     * the request if it has already been completed. The server waits
    +     * for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, can ignore the second request. This prevents
    +     * clients from accidentally creating duplicate `MulticloudDataTransferConfig`
    +     * resources.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID
    +     * (00000000-0000-0000-0000-000000000000) isn't supported.
    +     * 
    + * + * + * string request_id = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
    +     * Optional. The etag is computed by the server, and might be sent with update
    +     * and delete requests so that the client has an up-to-date value before
    +     * proceeding.
    +     * 
    + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. The etag is computed by the server, and might be sent with update
    +     * and delete requests so that the client has an up-to-date value before
    +     * proceeding.
    +     * 
    + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. The etag is computed by the server, and might be sent with update
    +     * and delete requests so that the client has an up-to-date value before
    +     * proceeding.
    +     * 
    + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The etag is computed by the server, and might be sent with update
    +     * and delete requests so that the client has an up-to-date value before
    +     * proceeding.
    +     * 
    + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The etag is computed by the server, and might be sent with update
    +     * and delete requests so that the client has an up-to-date value before
    +     * proceeding.
    +     * 
    + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + 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.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest) + private static final com.google.cloud.networkconnectivity.v1 + .DeleteMulticloudDataTransferConfigRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest(); + } + + public static com.google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteMulticloudDataTransferConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteMulticloudDataTransferConfigRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteMulticloudDataTransferConfigRequestOrBuilder.java new file mode 100644 index 000000000000..be95f24179c4 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteMulticloudDataTransferConfigRequestOrBuilder.java @@ -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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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/networkconnectivity/v1/data_transfer.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkconnectivity.v1; + +public interface DeleteMulticloudDataTransferConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The name of the `MulticloudDataTransferConfig` resource to
    +   * delete.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Required. The name of the `MulticloudDataTransferConfig` resource to
    +   * delete.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Optional. A request ID to identify requests. Specify a unique request ID
    +   * so that if you must retry your request, the server can ignore
    +   * the request if it has already been completed. The server waits
    +   * for at least 60 minutes since the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and
    +   * the request times out. If you make the request again with the same request
    +   * ID, the server can check if original operation with the same request ID
    +   * was received, and if so, can ignore the second request. This prevents
    +   * clients from accidentally creating duplicate `MulticloudDataTransferConfig`
    +   * resources.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID
    +   * (00000000-0000-0000-0000-000000000000) isn't supported.
    +   * 
    + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
    +   * Optional. A request ID to identify requests. Specify a unique request ID
    +   * so that if you must retry your request, the server can ignore
    +   * the request if it has already been completed. The server waits
    +   * for at least 60 minutes since the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and
    +   * the request times out. If you make the request again with the same request
    +   * ID, the server can check if original operation with the same request ID
    +   * was received, and if so, can ignore the second request. This prevents
    +   * clients from accidentally creating duplicate `MulticloudDataTransferConfig`
    +   * resources.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID
    +   * (00000000-0000-0000-0000-000000000000) isn't supported.
    +   * 
    + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
    +   * Optional. The etag is computed by the server, and might be sent with update
    +   * and delete requests so that the client has an up-to-date value before
    +   * proceeding.
    +   * 
    + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
    +   * Optional. The etag is computed by the server, and might be sent with update
    +   * and delete requests so that the client has an up-to-date value before
    +   * proceeding.
    +   * 
    + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Destination.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Destination.java new file mode 100644 index 000000000000..3d59463018e9 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Destination.java @@ -0,0 +1,5093 @@ +/* + * 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/networkconnectivity/v1/data_transfer.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkconnectivity.v1; + +/** + * + * + *
    + * The `Destination` resource. It specifies the IP prefix and the associated
    + * autonomous system numbers (ASN) that you want to include in a
    + * `MulticloudDataTransferConfig` resource.
    + * 
    + * + * Protobuf type {@code google.cloud.networkconnectivity.v1.Destination} + */ +public final class Destination extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.Destination) + DestinationOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Destination.newBuilder() to construct. + private Destination(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Destination() { + name_ = ""; + etag_ = ""; + description_ = ""; + ipPrefix_ = ""; + endpoints_ = java.util.Collections.emptyList(); + uid_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Destination(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_Destination_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_Destination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.Destination.class, + com.google.cloud.networkconnectivity.v1.Destination.Builder.class); + } + + public interface DestinationEndpointOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * Required. The ASN of the remote IP prefix.
    +     * 
    + * + * int64 asn = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The asn. + */ + long getAsn(); + + /** + * + * + *
    +     * Required. The CSP of the remote IP prefix.
    +     * 
    + * + * string csp = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The csp. + */ + java.lang.String getCsp(); + + /** + * + * + *
    +     * Required. The CSP of the remote IP prefix.
    +     * 
    + * + * string csp = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for csp. + */ + com.google.protobuf.ByteString getCspBytes(); + + /** + * + * + *
    +     * Output only. The state of the `DestinationEndpoint` resource.
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
    +     * Output only. The state of the `DestinationEndpoint` resource.
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint.State getState(); + + /** + * + * + *
    +     * Output only. Time when the `DestinationEndpoint` resource was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
    +     * Output only. Time when the `DestinationEndpoint` resource was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
    +     * Output only. Time when the `DestinationEndpoint` resource was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + } + + /** + * + * + *
    +   * The metadata for a `DestinationEndpoint` resource.
    +   * 
    + * + * Protobuf type {@code google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint} + */ + public static final class DestinationEndpoint extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint) + DestinationEndpointOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DestinationEndpoint.newBuilder() to construct. + private DestinationEndpoint(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DestinationEndpoint() { + csp_ = ""; + state_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DestinationEndpoint(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_Destination_DestinationEndpoint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_Destination_DestinationEndpoint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint.class, + com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint.Builder + .class); + } + + /** + * + * + *
    +     * The state of the `DestinationEndpoint` resource.
    +     * 
    + * + * Protobuf enum {@code + * google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +       * An invalid state, which is the default case.
    +       * 
    + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
    +       * The `DestinationEndpoint` resource is valid.
    +       * 
    + * + * VALID = 1; + */ + VALID(1), + /** + * + * + *
    +       * The `DestinationEndpoint` resource is invalid.
    +       * 
    + * + * INVALID = 2; + */ + INVALID(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +       * An invalid state, which is the default case.
    +       * 
    + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +       * The `DestinationEndpoint` resource is valid.
    +       * 
    + * + * VALID = 1; + */ + public static final int VALID_VALUE = 1; + + /** + * + * + *
    +       * The `DestinationEndpoint` resource is invalid.
    +       * 
    + * + * INVALID = 2; + */ + public static final int INVALID_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return VALID; + case 2: + return INVALID; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint.State) + } + + private int bitField0_; + public static final int ASN_FIELD_NUMBER = 1; + private long asn_ = 0L; + + /** + * + * + *
    +     * Required. The ASN of the remote IP prefix.
    +     * 
    + * + * int64 asn = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The asn. + */ + @java.lang.Override + public long getAsn() { + return asn_; + } + + public static final int CSP_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object csp_ = ""; + + /** + * + * + *
    +     * Required. The CSP of the remote IP prefix.
    +     * 
    + * + * string csp = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The csp. + */ + @java.lang.Override + public java.lang.String getCsp() { + java.lang.Object ref = csp_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + csp_ = s; + return s; + } + } + + /** + * + * + *
    +     * Required. The CSP of the remote IP prefix.
    +     * 
    + * + * string csp = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for csp. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCspBytes() { + java.lang.Object ref = csp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + csp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 3; + private int state_ = 0; + + /** + * + * + *
    +     * Output only. The state of the `DestinationEndpoint` resource.
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
    +     * Output only. The state of the `DestinationEndpoint` resource.
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint.State + getState() { + com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint.State result = + com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint.State.forNumber( + state_); + return result == null + ? com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint.State + .UNRECOGNIZED + : result; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
    +     * Output only. Time when the `DestinationEndpoint` resource was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +     * Output only. Time when the `DestinationEndpoint` resource was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
    +     * Output only. Time when the `DestinationEndpoint` resource was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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 (asn_ != 0L) { + output.writeInt64(1, asn_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(csp_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, csp_); + } + if (state_ + != com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint.State + .STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, state_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getUpdateTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (asn_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, asn_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(csp_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, csp_); + } + if (state_ + != com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint.State + .STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.networkconnectivity.v1.Destination.DestinationEndpoint)) { + return super.equals(obj); + } + com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint other = + (com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint) obj; + + if (getAsn() != other.getAsn()) return false; + if (!getCsp().equals(other.getCsp())) return false; + if (state_ != other.state_) return false; + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) 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) + ASN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAsn()); + hash = (37 * hash) + CSP_FIELD_NUMBER; + hash = (53 * hash) + getCsp().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint 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.networkconnectivity.v1.Destination.DestinationEndpoint parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint parseFrom( + 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.networkconnectivity.v1.Destination.DestinationEndpoint parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint 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.networkconnectivity.v1.Destination.DestinationEndpoint + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint + 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.networkconnectivity.v1.Destination.DestinationEndpoint parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint 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.networkconnectivity.v1.Destination.DestinationEndpoint prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 metadata for a `DestinationEndpoint` resource.
    +     * 
    + * + * Protobuf type {@code google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint) + com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpointOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_Destination_DestinationEndpoint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_Destination_DestinationEndpoint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint.class, + com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint.Builder + .class); + } + + // Construct using + // com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + asn_ = 0L; + csp_ = ""; + state_ = 0; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_Destination_DestinationEndpoint_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint + getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint build() { + com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint + buildPartial() { + com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint result = + new com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.asn_ = asn_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.csp_ = csp_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.state_ = state_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.updateTime_ = + updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.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.networkconnectivity.v1.Destination.DestinationEndpoint) { + return mergeFrom( + (com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint other) { + if (other + == com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint + .getDefaultInstance()) return this; + if (other.getAsn() != 0L) { + setAsn(other.getAsn()); + } + if (!other.getCsp().isEmpty()) { + csp_ = other.csp_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + asn_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + csp_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + input.readMessage(getUpdateTimeFieldBuilder().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; + } + + private int bitField0_; + + private long asn_; + + /** + * + * + *
    +       * Required. The ASN of the remote IP prefix.
    +       * 
    + * + * int64 asn = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The asn. + */ + @java.lang.Override + public long getAsn() { + return asn_; + } + + /** + * + * + *
    +       * Required. The ASN of the remote IP prefix.
    +       * 
    + * + * int64 asn = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The asn to set. + * @return This builder for chaining. + */ + public Builder setAsn(long value) { + + asn_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Required. The ASN of the remote IP prefix.
    +       * 
    + * + * int64 asn = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearAsn() { + bitField0_ = (bitField0_ & ~0x00000001); + asn_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object csp_ = ""; + + /** + * + * + *
    +       * Required. The CSP of the remote IP prefix.
    +       * 
    + * + * string csp = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The csp. + */ + public java.lang.String getCsp() { + java.lang.Object ref = csp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + csp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +       * Required. The CSP of the remote IP prefix.
    +       * 
    + * + * string csp = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for csp. + */ + public com.google.protobuf.ByteString getCspBytes() { + java.lang.Object ref = csp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + csp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +       * Required. The CSP of the remote IP prefix.
    +       * 
    + * + * string csp = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The csp to set. + * @return This builder for chaining. + */ + public Builder setCsp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + csp_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Required. The CSP of the remote IP prefix.
    +       * 
    + * + * string csp = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearCsp() { + csp_ = getDefaultInstance().getCsp(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +       * Required. The CSP of the remote IP prefix.
    +       * 
    + * + * string csp = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for csp to set. + * @return This builder for chaining. + */ + public Builder setCspBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + csp_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
    +       * Output only. The state of the `DestinationEndpoint` resource.
    +       * 
    + * + * + * .google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
    +       * Output only. The state of the `DestinationEndpoint` resource.
    +       * 
    + * + * + * .google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Output only. The state of the `DestinationEndpoint` resource.
    +       * 
    + * + * + * .google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint.State + getState() { + com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint.State result = + com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint.State.forNumber( + state_); + return result == null + ? com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint.State + .UNRECOGNIZED + : result; + } + + /** + * + * + *
    +       * Output only. The state of the `DestinationEndpoint` resource.
    +       * 
    + * + * + * .google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState( + com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +       * Output only. The state of the `DestinationEndpoint` resource.
    +       * 
    + * + * + * .google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000004); + state_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
    +       * Output only. Time when the `DestinationEndpoint` resource was updated.
    +       * 
    + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
    +       * Output only. Time when the `DestinationEndpoint` resource was updated.
    +       * 
    + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
    +       * Output only. Time when the `DestinationEndpoint` resource was updated.
    +       * 
    + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Output only. Time when the `DestinationEndpoint` resource was updated.
    +       * 
    + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Output only. Time when the `DestinationEndpoint` resource was updated.
    +       * 
    + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
    +       * Output only. Time when the `DestinationEndpoint` resource was updated.
    +       * 
    + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +       * Output only. Time when the `DestinationEndpoint` resource was updated.
    +       * 
    + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +       * Output only. Time when the `DestinationEndpoint` resource was updated.
    +       * 
    + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
    +       * Output only. Time when the `DestinationEndpoint` resource was updated.
    +       * 
    + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + @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.networkconnectivity.v1.Destination.DestinationEndpoint) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint) + private static final com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint(); + } + + public static com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DestinationEndpoint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.networkconnectivity.v1.Destination.DestinationEndpoint + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Identifier. The name of the `Destination` resource.
    +   * Format:
    +   * `projects/{project}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_transfer_config}/destinations/{destination}`.
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
    +   * Identifier. The name of the `Destination` resource.
    +   * Format:
    +   * `projects/{project}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_transfer_config}/destinations/{destination}`.
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
    +   * Output only. Time when the `Destination` resource was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Output only. Time when the `Destination` resource was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
    +   * Output only. Time when the `Destination` resource was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
    +   * Output only. Time when the `Destination` resource was updated.
    +   * 
    + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +   * Output only. Time when the `Destination` resource was updated.
    +   * 
    + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
    +   * Output only. Time when the `Destination` resource was updated.
    +   * 
    + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int LABELS_FIELD_NUMBER = 4; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_Destination_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
    +   * Optional. User-defined labels.
    +   * 
    + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
    +   * Optional. User-defined labels.
    +   * 
    + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
    +   * Optional. User-defined labels.
    +   * 
    + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
    +   * Optional. User-defined labels.
    +   * 
    + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int ETAG_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
    +   * The etag is computed by the server, and might be sent with update and
    +   * delete requests so that the client has an up-to-date value before
    +   * proceeding.
    +   * 
    + * + * string etag = 5; + * + * @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; + } + } + + /** + * + * + *
    +   * The etag is computed by the server, and might be sent with update and
    +   * delete requests so that the client has an up-to-date value before
    +   * proceeding.
    +   * 
    + * + * string etag = 5; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
    +   * Optional. A description of this resource.
    +   * 
    + * + * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. A description of this resource.
    +   * 
    + * + * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IP_PREFIX_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object ipPrefix_ = ""; + + /** + * + * + *
    +   * Required. Immutable. The IP prefix that represents your workload on another
    +   * CSP.
    +   * 
    + * + * + * string ip_prefix = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The ipPrefix. + */ + @java.lang.Override + public java.lang.String getIpPrefix() { + java.lang.Object ref = ipPrefix_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ipPrefix_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. Immutable. The IP prefix that represents your workload on another
    +   * CSP.
    +   * 
    + * + * + * string ip_prefix = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for ipPrefix. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIpPrefixBytes() { + java.lang.Object ref = ipPrefix_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ipPrefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENDPOINTS_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private java.util.List + endpoints_; + + /** + * + * + *
    +   * Required. Unordered list. The list of `DestinationEndpoint` resources
    +   * configured for the IP prefix.
    +   * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint endpoints = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getEndpointsList() { + return endpoints_; + } + + /** + * + * + *
    +   * Required. Unordered list. The list of `DestinationEndpoint` resources
    +   * configured for the IP prefix.
    +   * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint endpoints = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpointOrBuilder> + getEndpointsOrBuilderList() { + return endpoints_; + } + + /** + * + * + *
    +   * Required. Unordered list. The list of `DestinationEndpoint` resources
    +   * configured for the IP prefix.
    +   * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint endpoints = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getEndpointsCount() { + return endpoints_.size(); + } + + /** + * + * + *
    +   * Required. Unordered list. The list of `DestinationEndpoint` resources
    +   * configured for the IP prefix.
    +   * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint endpoints = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint getEndpoints( + int index) { + return endpoints_.get(index); + } + + /** + * + * + *
    +   * Required. Unordered list. The list of `DestinationEndpoint` resources
    +   * configured for the IP prefix.
    +   * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint endpoints = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpointOrBuilder + getEndpointsOrBuilder(int index) { + return endpoints_.get(index); + } + + public static final int STATE_TIMELINE_FIELD_NUMBER = 9; + private com.google.cloud.networkconnectivity.v1.StateTimeline stateTimeline_; + + /** + * + * + *
    +   * Output only. The timeline of the expected `Destination` states or the
    +   * current rest state. If a state change is expected, the value is `ADDING`,
    +   * `DELETING` or `SUSPENDING`, depending on the action specified.
    +   *
    +   * Example:
    +   * "state_timeline": {
    +   *   "states": [
    +   *     {
    +   *       // The time when the `Destination` resource will be activated.
    +   *       "effectiveTime": "2024-12-01T08:00:00Z",
    +   *       "state": "ADDING"
    +   *     },
    +   *     {
    +   *       // The time when the `Destination` resource will be suspended.
    +   *       "effectiveTime": "2024-12-01T20:00:00Z",
    +   *       "state": "SUSPENDING"
    +   *     }
    +   *   ]
    +   * }
    +   * 
    + * + * + * .google.cloud.networkconnectivity.v1.StateTimeline state_timeline = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the stateTimeline field is set. + */ + @java.lang.Override + public boolean hasStateTimeline() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +   * Output only. The timeline of the expected `Destination` states or the
    +   * current rest state. If a state change is expected, the value is `ADDING`,
    +   * `DELETING` or `SUSPENDING`, depending on the action specified.
    +   *
    +   * Example:
    +   * "state_timeline": {
    +   *   "states": [
    +   *     {
    +   *       // The time when the `Destination` resource will be activated.
    +   *       "effectiveTime": "2024-12-01T08:00:00Z",
    +   *       "state": "ADDING"
    +   *     },
    +   *     {
    +   *       // The time when the `Destination` resource will be suspended.
    +   *       "effectiveTime": "2024-12-01T20:00:00Z",
    +   *       "state": "SUSPENDING"
    +   *     }
    +   *   ]
    +   * }
    +   * 
    + * + * + * .google.cloud.networkconnectivity.v1.StateTimeline state_timeline = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The stateTimeline. + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.StateTimeline getStateTimeline() { + return stateTimeline_ == null + ? com.google.cloud.networkconnectivity.v1.StateTimeline.getDefaultInstance() + : stateTimeline_; + } + + /** + * + * + *
    +   * Output only. The timeline of the expected `Destination` states or the
    +   * current rest state. If a state change is expected, the value is `ADDING`,
    +   * `DELETING` or `SUSPENDING`, depending on the action specified.
    +   *
    +   * Example:
    +   * "state_timeline": {
    +   *   "states": [
    +   *     {
    +   *       // The time when the `Destination` resource will be activated.
    +   *       "effectiveTime": "2024-12-01T08:00:00Z",
    +   *       "state": "ADDING"
    +   *     },
    +   *     {
    +   *       // The time when the `Destination` resource will be suspended.
    +   *       "effectiveTime": "2024-12-01T20:00:00Z",
    +   *       "state": "SUSPENDING"
    +   *     }
    +   *   ]
    +   * }
    +   * 
    + * + * + * .google.cloud.networkconnectivity.v1.StateTimeline state_timeline = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.StateTimelineOrBuilder + getStateTimelineOrBuilder() { + return stateTimeline_ == null + ? com.google.cloud.networkconnectivity.v1.StateTimeline.getDefaultInstance() + : stateTimeline_; + } + + public static final int UID_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private volatile java.lang.Object uid_ = ""; + + /** + * + * + *
    +   * Output only. The Google-generated unique ID for the `Destination` resource.
    +   * This value is unique across all `Destination` resources.
    +   * If a resource is deleted and another with the same name is
    +   * created, the new resource is assigned a different and unique ID.
    +   * 
    + * + * + * string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The uid. + */ + @java.lang.Override + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } + } + + /** + * + * + *
    +   * Output only. The Google-generated unique ID for the `Destination` resource.
    +   * This value is unique across all `Destination` resources.
    +   * If a resource is deleted and another with the same name is
    +   * created, the new resource is assigned a different and unique ID.
    +   * 
    + * + * + * string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for uid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getUpdateTime()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, etag_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, description_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipPrefix_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, ipPrefix_); + } + for (int i = 0; i < endpoints_.size(); i++) { + output.writeMessage(8, endpoints_.get(i)); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(9, getStateTimeline()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, uid_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, etag_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, description_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipPrefix_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, ipPrefix_); + } + for (int i = 0; i < endpoints_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, endpoints_.get(i)); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getStateTimeline()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, uid_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.networkconnectivity.v1.Destination)) { + return super.equals(obj); + } + com.google.cloud.networkconnectivity.v1.Destination other = + (com.google.cloud.networkconnectivity.v1.Destination) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getIpPrefix().equals(other.getIpPrefix())) return false; + if (!getEndpointsList().equals(other.getEndpointsList())) return false; + if (hasStateTimeline() != other.hasStateTimeline()) return false; + if (hasStateTimeline()) { + if (!getStateTimeline().equals(other.getStateTimeline())) return false; + } + if (!getUid().equals(other.getUid())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + IP_PREFIX_FIELD_NUMBER; + hash = (53 * hash) + getIpPrefix().hashCode(); + if (getEndpointsCount() > 0) { + hash = (37 * hash) + ENDPOINTS_FIELD_NUMBER; + hash = (53 * hash) + getEndpointsList().hashCode(); + } + if (hasStateTimeline()) { + hash = (37 * hash) + STATE_TIMELINE_FIELD_NUMBER; + hash = (53 * hash) + getStateTimeline().hashCode(); + } + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkconnectivity.v1.Destination parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.Destination 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.networkconnectivity.v1.Destination parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.Destination parseFrom( + 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.networkconnectivity.v1.Destination parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.Destination parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkconnectivity.v1.Destination parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.Destination 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.networkconnectivity.v1.Destination parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.Destination 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.networkconnectivity.v1.Destination parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.Destination 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.networkconnectivity.v1.Destination prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 `Destination` resource. It specifies the IP prefix and the associated
    +   * autonomous system numbers (ASN) that you want to include in a
    +   * `MulticloudDataTransferConfig` resource.
    +   * 
    + * + * Protobuf type {@code google.cloud.networkconnectivity.v1.Destination} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.Destination) + com.google.cloud.networkconnectivity.v1.DestinationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_Destination_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_Destination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.Destination.class, + com.google.cloud.networkconnectivity.v1.Destination.Builder.class); + } + + // Construct using com.google.cloud.networkconnectivity.v1.Destination.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + getEndpointsFieldBuilder(); + getStateTimelineFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + etag_ = ""; + description_ = ""; + ipPrefix_ = ""; + if (endpointsBuilder_ == null) { + endpoints_ = java.util.Collections.emptyList(); + } else { + endpoints_ = null; + endpointsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); + stateTimeline_ = null; + if (stateTimelineBuilder_ != null) { + stateTimelineBuilder_.dispose(); + stateTimelineBuilder_ = null; + } + uid_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_Destination_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.Destination getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.Destination.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.Destination build() { + com.google.cloud.networkconnectivity.v1.Destination result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.Destination buildPartial() { + com.google.cloud.networkconnectivity.v1.Destination result = + new com.google.cloud.networkconnectivity.v1.Destination(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networkconnectivity.v1.Destination result) { + if (endpointsBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0)) { + endpoints_ = java.util.Collections.unmodifiableList(endpoints_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.endpoints_ = endpoints_; + } else { + result.endpoints_ = endpointsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.networkconnectivity.v1.Destination result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.ipPrefix_ = ipPrefix_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.stateTimeline_ = + stateTimelineBuilder_ == null ? stateTimeline_ : stateTimelineBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.uid_ = uid_; + } + 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.networkconnectivity.v1.Destination) { + return mergeFrom((com.google.cloud.networkconnectivity.v1.Destination) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.Destination other) { + if (other == com.google.cloud.networkconnectivity.v1.Destination.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000008; + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getIpPrefix().isEmpty()) { + ipPrefix_ = other.ipPrefix_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (endpointsBuilder_ == null) { + if (!other.endpoints_.isEmpty()) { + if (endpoints_.isEmpty()) { + endpoints_ = other.endpoints_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureEndpointsIsMutable(); + endpoints_.addAll(other.endpoints_); + } + onChanged(); + } + } else { + if (!other.endpoints_.isEmpty()) { + if (endpointsBuilder_.isEmpty()) { + endpointsBuilder_.dispose(); + endpointsBuilder_ = null; + endpoints_ = other.endpoints_; + bitField0_ = (bitField0_ & ~0x00000080); + endpointsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEndpointsFieldBuilder() + : null; + } else { + endpointsBuilder_.addAllMessages(other.endpoints_); + } + } + } + if (other.hasStateTimeline()) { + mergeStateTimeline(other.getStateTimeline()); + } + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + bitField0_ |= 0x00000200; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + ipPrefix_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint m = + input.readMessage( + com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint + .parser(), + extensionRegistry); + if (endpointsBuilder_ == null) { + ensureEndpointsIsMutable(); + endpoints_.add(m); + } else { + endpointsBuilder_.addMessage(m); + } + break; + } // case 66 + case 74: + { + input.readMessage(getStateTimelineFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: + { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 82 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
    +     * Identifier. The name of the `Destination` resource.
    +     * Format:
    +     * `projects/{project}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_transfer_config}/destinations/{destination}`.
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Identifier. The name of the `Destination` resource.
    +     * Format:
    +     * `projects/{project}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_transfer_config}/destinations/{destination}`.
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Identifier. The name of the `Destination` resource.
    +     * Format:
    +     * `projects/{project}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_transfer_config}/destinations/{destination}`.
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Identifier. The name of the `Destination` resource.
    +     * Format:
    +     * `projects/{project}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_transfer_config}/destinations/{destination}`.
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Identifier. The name of the `Destination` resource.
    +     * Format:
    +     * `projects/{project}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_transfer_config}/destinations/{destination}`.
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
    +     * Output only. Time when the `Destination` resource was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Output only. Time when the `Destination` resource was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Output only. Time when the `Destination` resource was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Time when the `Destination` resource was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Time when the `Destination` resource was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Output only. Time when the `Destination` resource was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Time when the `Destination` resource was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Output only. Time when the `Destination` resource was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
    +     * Output only. Time when the `Destination` resource was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
    +     * Output only. Time when the `Destination` resource was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +     * Output only. Time when the `Destination` resource was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Output only. Time when the `Destination` resource was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Time when the `Destination` resource was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Time when the `Destination` resource was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Output only. Time when the `Destination` resource was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Time when the `Destination` resource was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Output only. Time when the `Destination` resource was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
    +     * Output only. Time when the `Destination` resource was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000008; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
    +     * Optional. User-defined labels.
    +     * 
    + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
    +     * Optional. User-defined labels.
    +     * 
    + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
    +     * Optional. User-defined labels.
    +     * 
    + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
    +     * Optional. User-defined labels.
    +     * 
    + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
    +     * Optional. User-defined labels.
    +     * 
    + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000008; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
    +     * Optional. User-defined labels.
    +     * 
    + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000008; + return this; + } + + /** + * + * + *
    +     * Optional. User-defined labels.
    +     * 
    + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000008; + return this; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
    +     * The etag is computed by the server, and might be sent with update and
    +     * delete requests so that the client has an up-to-date value before
    +     * proceeding.
    +     * 
    + * + * string etag = 5; + * + * @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; + } + } + + /** + * + * + *
    +     * The etag is computed by the server, and might be sent with update and
    +     * delete requests so that the client has an up-to-date value before
    +     * proceeding.
    +     * 
    + * + * string etag = 5; + * + * @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; + } + } + + /** + * + * + *
    +     * The etag is computed by the server, and might be sent with update and
    +     * delete requests so that the client has an up-to-date value before
    +     * proceeding.
    +     * 
    + * + * string etag = 5; + * + * @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; + } + + /** + * + * + *
    +     * The etag is computed by the server, and might be sent with update and
    +     * delete requests so that the client has an up-to-date value before
    +     * proceeding.
    +     * 
    + * + * string etag = 5; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
    +     * The etag is computed by the server, and might be sent with update and
    +     * delete requests so that the client has an up-to-date value before
    +     * proceeding.
    +     * 
    + * + * string etag = 5; + * + * @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; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
    +     * Optional. A description of this resource.
    +     * 
    + * + * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. A description of this resource.
    +     * 
    + * + * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. A description of this resource.
    +     * 
    + * + * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A description of this resource.
    +     * 
    + * + * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A description of this resource.
    +     * 
    + * + * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object ipPrefix_ = ""; + + /** + * + * + *
    +     * Required. Immutable. The IP prefix that represents your workload on another
    +     * CSP.
    +     * 
    + * + * + * string ip_prefix = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The ipPrefix. + */ + public java.lang.String getIpPrefix() { + java.lang.Object ref = ipPrefix_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ipPrefix_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. Immutable. The IP prefix that represents your workload on another
    +     * CSP.
    +     * 
    + * + * + * string ip_prefix = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for ipPrefix. + */ + public com.google.protobuf.ByteString getIpPrefixBytes() { + java.lang.Object ref = ipPrefix_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ipPrefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. Immutable. The IP prefix that represents your workload on another
    +     * CSP.
    +     * 
    + * + * + * string ip_prefix = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The ipPrefix to set. + * @return This builder for chaining. + */ + public Builder setIpPrefix(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ipPrefix_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Immutable. The IP prefix that represents your workload on another
    +     * CSP.
    +     * 
    + * + * + * string ip_prefix = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearIpPrefix() { + ipPrefix_ = getDefaultInstance().getIpPrefix(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Immutable. The IP prefix that represents your workload on another
    +     * CSP.
    +     * 
    + * + * + * string ip_prefix = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The bytes for ipPrefix to set. + * @return This builder for chaining. + */ + public Builder setIpPrefixBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ipPrefix_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.util.List + endpoints_ = java.util.Collections.emptyList(); + + private void ensureEndpointsIsMutable() { + if (!((bitField0_ & 0x00000080) != 0)) { + endpoints_ = + new java.util.ArrayList< + com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint>( + endpoints_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint, + com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint.Builder, + com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpointOrBuilder> + endpointsBuilder_; + + /** + * + * + *
    +     * Required. Unordered list. The list of `DestinationEndpoint` resources
    +     * configured for the IP prefix.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint endpoints = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getEndpointsList() { + if (endpointsBuilder_ == null) { + return java.util.Collections.unmodifiableList(endpoints_); + } else { + return endpointsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * Required. Unordered list. The list of `DestinationEndpoint` resources
    +     * configured for the IP prefix.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint endpoints = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED]; + * + */ + public int getEndpointsCount() { + if (endpointsBuilder_ == null) { + return endpoints_.size(); + } else { + return endpointsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * Required. Unordered list. The list of `DestinationEndpoint` resources
    +     * configured for the IP prefix.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint endpoints = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint getEndpoints( + int index) { + if (endpointsBuilder_ == null) { + return endpoints_.get(index); + } else { + return endpointsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * Required. Unordered list. The list of `DestinationEndpoint` resources
    +     * configured for the IP prefix.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint endpoints = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setEndpoints( + int index, com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint value) { + if (endpointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEndpointsIsMutable(); + endpoints_.set(index, value); + onChanged(); + } else { + endpointsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Required. Unordered list. The list of `DestinationEndpoint` resources
    +     * configured for the IP prefix.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint endpoints = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setEndpoints( + int index, + com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint.Builder + builderForValue) { + if (endpointsBuilder_ == null) { + ensureEndpointsIsMutable(); + endpoints_.set(index, builderForValue.build()); + onChanged(); + } else { + endpointsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Required. Unordered list. The list of `DestinationEndpoint` resources
    +     * configured for the IP prefix.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint endpoints = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addEndpoints( + com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint value) { + if (endpointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEndpointsIsMutable(); + endpoints_.add(value); + onChanged(); + } else { + endpointsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * Required. Unordered list. The list of `DestinationEndpoint` resources
    +     * configured for the IP prefix.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint endpoints = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addEndpoints( + int index, com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint value) { + if (endpointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEndpointsIsMutable(); + endpoints_.add(index, value); + onChanged(); + } else { + endpointsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Required. Unordered list. The list of `DestinationEndpoint` resources
    +     * configured for the IP prefix.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint endpoints = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addEndpoints( + com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint.Builder + builderForValue) { + if (endpointsBuilder_ == null) { + ensureEndpointsIsMutable(); + endpoints_.add(builderForValue.build()); + onChanged(); + } else { + endpointsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Required. Unordered list. The list of `DestinationEndpoint` resources
    +     * configured for the IP prefix.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint endpoints = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addEndpoints( + int index, + com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint.Builder + builderForValue) { + if (endpointsBuilder_ == null) { + ensureEndpointsIsMutable(); + endpoints_.add(index, builderForValue.build()); + onChanged(); + } else { + endpointsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Required. Unordered list. The list of `DestinationEndpoint` resources
    +     * configured for the IP prefix.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint endpoints = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllEndpoints( + java.lang.Iterable< + ? extends com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint> + values) { + if (endpointsBuilder_ == null) { + ensureEndpointsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, endpoints_); + onChanged(); + } else { + endpointsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * Required. Unordered list. The list of `DestinationEndpoint` resources
    +     * configured for the IP prefix.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint endpoints = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearEndpoints() { + if (endpointsBuilder_ == null) { + endpoints_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + endpointsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Required. Unordered list. The list of `DestinationEndpoint` resources
    +     * configured for the IP prefix.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint endpoints = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeEndpoints(int index) { + if (endpointsBuilder_ == null) { + ensureEndpointsIsMutable(); + endpoints_.remove(index); + onChanged(); + } else { + endpointsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * Required. Unordered list. The list of `DestinationEndpoint` resources
    +     * configured for the IP prefix.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint endpoints = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint.Builder + getEndpointsBuilder(int index) { + return getEndpointsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * Required. Unordered list. The list of `DestinationEndpoint` resources
    +     * configured for the IP prefix.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint endpoints = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpointOrBuilder + getEndpointsOrBuilder(int index) { + if (endpointsBuilder_ == null) { + return endpoints_.get(index); + } else { + return endpointsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * Required. Unordered list. The list of `DestinationEndpoint` resources
    +     * configured for the IP prefix.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint endpoints = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends + com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpointOrBuilder> + getEndpointsOrBuilderList() { + if (endpointsBuilder_ != null) { + return endpointsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(endpoints_); + } + } + + /** + * + * + *
    +     * Required. Unordered list. The list of `DestinationEndpoint` resources
    +     * configured for the IP prefix.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint endpoints = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint.Builder + addEndpointsBuilder() { + return getEndpointsFieldBuilder() + .addBuilder( + com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint + .getDefaultInstance()); + } + + /** + * + * + *
    +     * Required. Unordered list. The list of `DestinationEndpoint` resources
    +     * configured for the IP prefix.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint endpoints = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint.Builder + addEndpointsBuilder(int index) { + return getEndpointsFieldBuilder() + .addBuilder( + index, + com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint + .getDefaultInstance()); + } + + /** + * + * + *
    +     * Required. Unordered list. The list of `DestinationEndpoint` resources
    +     * configured for the IP prefix.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint endpoints = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint.Builder> + getEndpointsBuilderList() { + return getEndpointsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint, + com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint.Builder, + com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpointOrBuilder> + getEndpointsFieldBuilder() { + if (endpointsBuilder_ == null) { + endpointsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint, + com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint.Builder, + com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpointOrBuilder>( + endpoints_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); + endpoints_ = null; + } + return endpointsBuilder_; + } + + private com.google.cloud.networkconnectivity.v1.StateTimeline stateTimeline_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.StateTimeline, + com.google.cloud.networkconnectivity.v1.StateTimeline.Builder, + com.google.cloud.networkconnectivity.v1.StateTimelineOrBuilder> + stateTimelineBuilder_; + + /** + * + * + *
    +     * Output only. The timeline of the expected `Destination` states or the
    +     * current rest state. If a state change is expected, the value is `ADDING`,
    +     * `DELETING` or `SUSPENDING`, depending on the action specified.
    +     *
    +     * Example:
    +     * "state_timeline": {
    +     *   "states": [
    +     *     {
    +     *       // The time when the `Destination` resource will be activated.
    +     *       "effectiveTime": "2024-12-01T08:00:00Z",
    +     *       "state": "ADDING"
    +     *     },
    +     *     {
    +     *       // The time when the `Destination` resource will be suspended.
    +     *       "effectiveTime": "2024-12-01T20:00:00Z",
    +     *       "state": "SUSPENDING"
    +     *     }
    +     *   ]
    +     * }
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.StateTimeline state_timeline = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the stateTimeline field is set. + */ + public boolean hasStateTimeline() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
    +     * Output only. The timeline of the expected `Destination` states or the
    +     * current rest state. If a state change is expected, the value is `ADDING`,
    +     * `DELETING` or `SUSPENDING`, depending on the action specified.
    +     *
    +     * Example:
    +     * "state_timeline": {
    +     *   "states": [
    +     *     {
    +     *       // The time when the `Destination` resource will be activated.
    +     *       "effectiveTime": "2024-12-01T08:00:00Z",
    +     *       "state": "ADDING"
    +     *     },
    +     *     {
    +     *       // The time when the `Destination` resource will be suspended.
    +     *       "effectiveTime": "2024-12-01T20:00:00Z",
    +     *       "state": "SUSPENDING"
    +     *     }
    +     *   ]
    +     * }
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.StateTimeline state_timeline = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The stateTimeline. + */ + public com.google.cloud.networkconnectivity.v1.StateTimeline getStateTimeline() { + if (stateTimelineBuilder_ == null) { + return stateTimeline_ == null + ? com.google.cloud.networkconnectivity.v1.StateTimeline.getDefaultInstance() + : stateTimeline_; + } else { + return stateTimelineBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Output only. The timeline of the expected `Destination` states or the
    +     * current rest state. If a state change is expected, the value is `ADDING`,
    +     * `DELETING` or `SUSPENDING`, depending on the action specified.
    +     *
    +     * Example:
    +     * "state_timeline": {
    +     *   "states": [
    +     *     {
    +     *       // The time when the `Destination` resource will be activated.
    +     *       "effectiveTime": "2024-12-01T08:00:00Z",
    +     *       "state": "ADDING"
    +     *     },
    +     *     {
    +     *       // The time when the `Destination` resource will be suspended.
    +     *       "effectiveTime": "2024-12-01T20:00:00Z",
    +     *       "state": "SUSPENDING"
    +     *     }
    +     *   ]
    +     * }
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.StateTimeline state_timeline = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStateTimeline(com.google.cloud.networkconnectivity.v1.StateTimeline value) { + if (stateTimelineBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stateTimeline_ = value; + } else { + stateTimelineBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The timeline of the expected `Destination` states or the
    +     * current rest state. If a state change is expected, the value is `ADDING`,
    +     * `DELETING` or `SUSPENDING`, depending on the action specified.
    +     *
    +     * Example:
    +     * "state_timeline": {
    +     *   "states": [
    +     *     {
    +     *       // The time when the `Destination` resource will be activated.
    +     *       "effectiveTime": "2024-12-01T08:00:00Z",
    +     *       "state": "ADDING"
    +     *     },
    +     *     {
    +     *       // The time when the `Destination` resource will be suspended.
    +     *       "effectiveTime": "2024-12-01T20:00:00Z",
    +     *       "state": "SUSPENDING"
    +     *     }
    +     *   ]
    +     * }
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.StateTimeline state_timeline = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStateTimeline( + com.google.cloud.networkconnectivity.v1.StateTimeline.Builder builderForValue) { + if (stateTimelineBuilder_ == null) { + stateTimeline_ = builderForValue.build(); + } else { + stateTimelineBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The timeline of the expected `Destination` states or the
    +     * current rest state. If a state change is expected, the value is `ADDING`,
    +     * `DELETING` or `SUSPENDING`, depending on the action specified.
    +     *
    +     * Example:
    +     * "state_timeline": {
    +     *   "states": [
    +     *     {
    +     *       // The time when the `Destination` resource will be activated.
    +     *       "effectiveTime": "2024-12-01T08:00:00Z",
    +     *       "state": "ADDING"
    +     *     },
    +     *     {
    +     *       // The time when the `Destination` resource will be suspended.
    +     *       "effectiveTime": "2024-12-01T20:00:00Z",
    +     *       "state": "SUSPENDING"
    +     *     }
    +     *   ]
    +     * }
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.StateTimeline state_timeline = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeStateTimeline(com.google.cloud.networkconnectivity.v1.StateTimeline value) { + if (stateTimelineBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && stateTimeline_ != null + && stateTimeline_ + != com.google.cloud.networkconnectivity.v1.StateTimeline.getDefaultInstance()) { + getStateTimelineBuilder().mergeFrom(value); + } else { + stateTimeline_ = value; + } + } else { + stateTimelineBuilder_.mergeFrom(value); + } + if (stateTimeline_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Output only. The timeline of the expected `Destination` states or the
    +     * current rest state. If a state change is expected, the value is `ADDING`,
    +     * `DELETING` or `SUSPENDING`, depending on the action specified.
    +     *
    +     * Example:
    +     * "state_timeline": {
    +     *   "states": [
    +     *     {
    +     *       // The time when the `Destination` resource will be activated.
    +     *       "effectiveTime": "2024-12-01T08:00:00Z",
    +     *       "state": "ADDING"
    +     *     },
    +     *     {
    +     *       // The time when the `Destination` resource will be suspended.
    +     *       "effectiveTime": "2024-12-01T20:00:00Z",
    +     *       "state": "SUSPENDING"
    +     *     }
    +     *   ]
    +     * }
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.StateTimeline state_timeline = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearStateTimeline() { + bitField0_ = (bitField0_ & ~0x00000100); + stateTimeline_ = null; + if (stateTimelineBuilder_ != null) { + stateTimelineBuilder_.dispose(); + stateTimelineBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The timeline of the expected `Destination` states or the
    +     * current rest state. If a state change is expected, the value is `ADDING`,
    +     * `DELETING` or `SUSPENDING`, depending on the action specified.
    +     *
    +     * Example:
    +     * "state_timeline": {
    +     *   "states": [
    +     *     {
    +     *       // The time when the `Destination` resource will be activated.
    +     *       "effectiveTime": "2024-12-01T08:00:00Z",
    +     *       "state": "ADDING"
    +     *     },
    +     *     {
    +     *       // The time when the `Destination` resource will be suspended.
    +     *       "effectiveTime": "2024-12-01T20:00:00Z",
    +     *       "state": "SUSPENDING"
    +     *     }
    +     *   ]
    +     * }
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.StateTimeline state_timeline = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networkconnectivity.v1.StateTimeline.Builder getStateTimelineBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return getStateTimelineFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Output only. The timeline of the expected `Destination` states or the
    +     * current rest state. If a state change is expected, the value is `ADDING`,
    +     * `DELETING` or `SUSPENDING`, depending on the action specified.
    +     *
    +     * Example:
    +     * "state_timeline": {
    +     *   "states": [
    +     *     {
    +     *       // The time when the `Destination` resource will be activated.
    +     *       "effectiveTime": "2024-12-01T08:00:00Z",
    +     *       "state": "ADDING"
    +     *     },
    +     *     {
    +     *       // The time when the `Destination` resource will be suspended.
    +     *       "effectiveTime": "2024-12-01T20:00:00Z",
    +     *       "state": "SUSPENDING"
    +     *     }
    +     *   ]
    +     * }
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.StateTimeline state_timeline = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networkconnectivity.v1.StateTimelineOrBuilder + getStateTimelineOrBuilder() { + if (stateTimelineBuilder_ != null) { + return stateTimelineBuilder_.getMessageOrBuilder(); + } else { + return stateTimeline_ == null + ? com.google.cloud.networkconnectivity.v1.StateTimeline.getDefaultInstance() + : stateTimeline_; + } + } + + /** + * + * + *
    +     * Output only. The timeline of the expected `Destination` states or the
    +     * current rest state. If a state change is expected, the value is `ADDING`,
    +     * `DELETING` or `SUSPENDING`, depending on the action specified.
    +     *
    +     * Example:
    +     * "state_timeline": {
    +     *   "states": [
    +     *     {
    +     *       // The time when the `Destination` resource will be activated.
    +     *       "effectiveTime": "2024-12-01T08:00:00Z",
    +     *       "state": "ADDING"
    +     *     },
    +     *     {
    +     *       // The time when the `Destination` resource will be suspended.
    +     *       "effectiveTime": "2024-12-01T20:00:00Z",
    +     *       "state": "SUSPENDING"
    +     *     }
    +     *   ]
    +     * }
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.StateTimeline state_timeline = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.StateTimeline, + com.google.cloud.networkconnectivity.v1.StateTimeline.Builder, + com.google.cloud.networkconnectivity.v1.StateTimelineOrBuilder> + getStateTimelineFieldBuilder() { + if (stateTimelineBuilder_ == null) { + stateTimelineBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.StateTimeline, + com.google.cloud.networkconnectivity.v1.StateTimeline.Builder, + com.google.cloud.networkconnectivity.v1.StateTimelineOrBuilder>( + getStateTimeline(), getParentForChildren(), isClean()); + stateTimeline_ = null; + } + return stateTimelineBuilder_; + } + + private java.lang.Object uid_ = ""; + + /** + * + * + *
    +     * Output only. The Google-generated unique ID for the `Destination` resource.
    +     * This value is unique across all `Destination` resources.
    +     * If a resource is deleted and another with the same name is
    +     * created, the new resource is assigned a different and unique ID.
    +     * 
    + * + * + * string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The uid. + */ + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Output only. The Google-generated unique ID for the `Destination` resource.
    +     * This value is unique across all `Destination` resources.
    +     * If a resource is deleted and another with the same name is
    +     * created, the new resource is assigned a different and unique ID.
    +     * 
    + * + * + * string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for uid. + */ + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Output only. The Google-generated unique ID for the `Destination` resource.
    +     * This value is unique across all `Destination` resources.
    +     * If a resource is deleted and another with the same name is
    +     * created, the new resource is assigned a different and unique ID.
    +     * 
    + * + * + * string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uid_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The Google-generated unique ID for the `Destination` resource.
    +     * This value is unique across all `Destination` resources.
    +     * If a resource is deleted and another with the same name is
    +     * created, the new resource is assigned a different and unique ID.
    +     * 
    + * + * + * string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearUid() { + uid_ = getDefaultInstance().getUid(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The Google-generated unique ID for the `Destination` resource.
    +     * This value is unique across all `Destination` resources.
    +     * If a resource is deleted and another with the same name is
    +     * created, the new resource is assigned a different and unique ID.
    +     * 
    + * + * + * string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for uid to set. + * @return This builder for chaining. + */ + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uid_ = value; + bitField0_ |= 0x00000200; + 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.networkconnectivity.v1.Destination) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.Destination) + private static final com.google.cloud.networkconnectivity.v1.Destination DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.Destination(); + } + + public static com.google.cloud.networkconnectivity.v1.Destination getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Destination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.networkconnectivity.v1.Destination getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DestinationName.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DestinationName.java new file mode 100644 index 000000000000..d52b2a0cec07 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DestinationName.java @@ -0,0 +1,270 @@ +/* + * 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.networkconnectivity.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class DestinationName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_MULTICLOUD_DATA_TRANSFER_CONFIG_DESTINATION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_transfer_config}/destinations/{destination}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String multicloudDataTransferConfig; + private final String destination; + + @Deprecated + protected DestinationName() { + project = null; + location = null; + multicloudDataTransferConfig = null; + destination = null; + } + + private DestinationName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + multicloudDataTransferConfig = + Preconditions.checkNotNull(builder.getMulticloudDataTransferConfig()); + destination = Preconditions.checkNotNull(builder.getDestination()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getMulticloudDataTransferConfig() { + return multicloudDataTransferConfig; + } + + public String getDestination() { + return destination; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static DestinationName of( + String project, String location, String multicloudDataTransferConfig, String destination) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setMulticloudDataTransferConfig(multicloudDataTransferConfig) + .setDestination(destination) + .build(); + } + + public static String format( + String project, String location, String multicloudDataTransferConfig, String destination) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setMulticloudDataTransferConfig(multicloudDataTransferConfig) + .setDestination(destination) + .build() + .toString(); + } + + public static DestinationName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_MULTICLOUD_DATA_TRANSFER_CONFIG_DESTINATION.validatedMatch( + formattedString, "DestinationName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("multicloud_data_transfer_config"), + matchMap.get("destination")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (DestinationName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_MULTICLOUD_DATA_TRANSFER_CONFIG_DESTINATION.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (multicloudDataTransferConfig != null) { + fieldMapBuilder.put("multicloud_data_transfer_config", multicloudDataTransferConfig); + } + if (destination != null) { + fieldMapBuilder.put("destination", destination); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_MULTICLOUD_DATA_TRANSFER_CONFIG_DESTINATION.instantiate( + "project", + project, + "location", + location, + "multicloud_data_transfer_config", + multicloudDataTransferConfig, + "destination", + destination); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + DestinationName that = ((DestinationName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.multicloudDataTransferConfig, that.multicloudDataTransferConfig) + && Objects.equals(this.destination, that.destination); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(multicloudDataTransferConfig); + h *= 1000003; + h ^= Objects.hashCode(destination); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_transfer_config}/destinations/{destination}. + */ + public static class Builder { + private String project; + private String location; + private String multicloudDataTransferConfig; + private String destination; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getMulticloudDataTransferConfig() { + return multicloudDataTransferConfig; + } + + public String getDestination() { + return destination; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setMulticloudDataTransferConfig(String multicloudDataTransferConfig) { + this.multicloudDataTransferConfig = multicloudDataTransferConfig; + return this; + } + + public Builder setDestination(String destination) { + this.destination = destination; + return this; + } + + private Builder(DestinationName destinationName) { + this.project = destinationName.project; + this.location = destinationName.location; + this.multicloudDataTransferConfig = destinationName.multicloudDataTransferConfig; + this.destination = destinationName.destination; + } + + public DestinationName build() { + return new DestinationName(this); + } + } +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DestinationOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DestinationOrBuilder.java new file mode 100644 index 000000000000..26b652f5b0a8 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DestinationOrBuilder.java @@ -0,0 +1,495 @@ +/* + * 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/networkconnectivity/v1/data_transfer.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkconnectivity.v1; + +public interface DestinationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.Destination) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Identifier. The name of the `Destination` resource.
    +   * Format:
    +   * `projects/{project}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_transfer_config}/destinations/{destination}`.
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Identifier. The name of the `Destination` resource.
    +   * Format:
    +   * `projects/{project}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_transfer_config}/destinations/{destination}`.
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Output only. Time when the `Destination` resource was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
    +   * Output only. Time when the `Destination` resource was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
    +   * Output only. Time when the `Destination` resource was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
    +   * Output only. Time when the `Destination` resource was updated.
    +   * 
    + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
    +   * Output only. Time when the `Destination` resource was updated.
    +   * 
    + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
    +   * Output only. Time when the `Destination` resource was updated.
    +   * 
    + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
    +   * Optional. User-defined labels.
    +   * 
    + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + + /** + * + * + *
    +   * Optional. User-defined labels.
    +   * 
    + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + + /** + * + * + *
    +   * Optional. User-defined labels.
    +   * 
    + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
    +   * Optional. User-defined labels.
    +   * 
    + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
    +   * Optional. User-defined labels.
    +   * 
    + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
    +   * The etag is computed by the server, and might be sent with update and
    +   * delete requests so that the client has an up-to-date value before
    +   * proceeding.
    +   * 
    + * + * string etag = 5; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
    +   * The etag is computed by the server, and might be sent with update and
    +   * delete requests so that the client has an up-to-date value before
    +   * proceeding.
    +   * 
    + * + * string etag = 5; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
    +   * Optional. A description of this resource.
    +   * 
    + * + * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
    +   * Optional. A description of this resource.
    +   * 
    + * + * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
    +   * Required. Immutable. The IP prefix that represents your workload on another
    +   * CSP.
    +   * 
    + * + * + * string ip_prefix = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The ipPrefix. + */ + java.lang.String getIpPrefix(); + + /** + * + * + *
    +   * Required. Immutable. The IP prefix that represents your workload on another
    +   * CSP.
    +   * 
    + * + * + * string ip_prefix = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for ipPrefix. + */ + com.google.protobuf.ByteString getIpPrefixBytes(); + + /** + * + * + *
    +   * Required. Unordered list. The list of `DestinationEndpoint` resources
    +   * configured for the IP prefix.
    +   * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint endpoints = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getEndpointsList(); + + /** + * + * + *
    +   * Required. Unordered list. The list of `DestinationEndpoint` resources
    +   * configured for the IP prefix.
    +   * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint endpoints = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint getEndpoints(int index); + + /** + * + * + *
    +   * Required. Unordered list. The list of `DestinationEndpoint` resources
    +   * configured for the IP prefix.
    +   * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint endpoints = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED]; + * + */ + int getEndpointsCount(); + + /** + * + * + *
    +   * Required. Unordered list. The list of `DestinationEndpoint` resources
    +   * configured for the IP prefix.
    +   * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint endpoints = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List< + ? extends + com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpointOrBuilder> + getEndpointsOrBuilderList(); + + /** + * + * + *
    +   * Required. Unordered list. The list of `DestinationEndpoint` resources
    +   * configured for the IP prefix.
    +   * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint endpoints = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networkconnectivity.v1.Destination.DestinationEndpointOrBuilder + getEndpointsOrBuilder(int index); + + /** + * + * + *
    +   * Output only. The timeline of the expected `Destination` states or the
    +   * current rest state. If a state change is expected, the value is `ADDING`,
    +   * `DELETING` or `SUSPENDING`, depending on the action specified.
    +   *
    +   * Example:
    +   * "state_timeline": {
    +   *   "states": [
    +   *     {
    +   *       // The time when the `Destination` resource will be activated.
    +   *       "effectiveTime": "2024-12-01T08:00:00Z",
    +   *       "state": "ADDING"
    +   *     },
    +   *     {
    +   *       // The time when the `Destination` resource will be suspended.
    +   *       "effectiveTime": "2024-12-01T20:00:00Z",
    +   *       "state": "SUSPENDING"
    +   *     }
    +   *   ]
    +   * }
    +   * 
    + * + * + * .google.cloud.networkconnectivity.v1.StateTimeline state_timeline = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the stateTimeline field is set. + */ + boolean hasStateTimeline(); + + /** + * + * + *
    +   * Output only. The timeline of the expected `Destination` states or the
    +   * current rest state. If a state change is expected, the value is `ADDING`,
    +   * `DELETING` or `SUSPENDING`, depending on the action specified.
    +   *
    +   * Example:
    +   * "state_timeline": {
    +   *   "states": [
    +   *     {
    +   *       // The time when the `Destination` resource will be activated.
    +   *       "effectiveTime": "2024-12-01T08:00:00Z",
    +   *       "state": "ADDING"
    +   *     },
    +   *     {
    +   *       // The time when the `Destination` resource will be suspended.
    +   *       "effectiveTime": "2024-12-01T20:00:00Z",
    +   *       "state": "SUSPENDING"
    +   *     }
    +   *   ]
    +   * }
    +   * 
    + * + * + * .google.cloud.networkconnectivity.v1.StateTimeline state_timeline = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The stateTimeline. + */ + com.google.cloud.networkconnectivity.v1.StateTimeline getStateTimeline(); + + /** + * + * + *
    +   * Output only. The timeline of the expected `Destination` states or the
    +   * current rest state. If a state change is expected, the value is `ADDING`,
    +   * `DELETING` or `SUSPENDING`, depending on the action specified.
    +   *
    +   * Example:
    +   * "state_timeline": {
    +   *   "states": [
    +   *     {
    +   *       // The time when the `Destination` resource will be activated.
    +   *       "effectiveTime": "2024-12-01T08:00:00Z",
    +   *       "state": "ADDING"
    +   *     },
    +   *     {
    +   *       // The time when the `Destination` resource will be suspended.
    +   *       "effectiveTime": "2024-12-01T20:00:00Z",
    +   *       "state": "SUSPENDING"
    +   *     }
    +   *   ]
    +   * }
    +   * 
    + * + * + * .google.cloud.networkconnectivity.v1.StateTimeline state_timeline = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.networkconnectivity.v1.StateTimelineOrBuilder getStateTimelineOrBuilder(); + + /** + * + * + *
    +   * Output only. The Google-generated unique ID for the `Destination` resource.
    +   * This value is unique across all `Destination` resources.
    +   * If a resource is deleted and another with the same name is
    +   * created, the new resource is assigned a different and unique ID.
    +   * 
    + * + * + * string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The uid. + */ + java.lang.String getUid(); + + /** + * + * + *
    +   * Output only. The Google-generated unique ID for the `Destination` resource.
    +   * This value is unique across all `Destination` resources.
    +   * If a resource is deleted and another with the same name is
    +   * created, the new resource is assigned a different and unique ID.
    +   * 
    + * + * + * string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for uid. + */ + com.google.protobuf.ByteString getUidBytes(); +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetDestinationRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetDestinationRequest.java new file mode 100644 index 000000000000..7496fb638de7 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetDestinationRequest.java @@ -0,0 +1,653 @@ +/* + * 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/networkconnectivity/v1/data_transfer.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkconnectivity.v1; + +/** + * + * + *
    + * Request message to get the details of a `Destination` resource.
    + * 
    + * + * Protobuf type {@code google.cloud.networkconnectivity.v1.GetDestinationRequest} + */ +public final class GetDestinationRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.GetDestinationRequest) + GetDestinationRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetDestinationRequest.newBuilder() to construct. + private GetDestinationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetDestinationRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetDestinationRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_GetDestinationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_GetDestinationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.GetDestinationRequest.class, + com.google.cloud.networkconnectivity.v1.GetDestinationRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Required. The name of the `Destination` resource to get.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. The name of the `Destination` resource to get.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.networkconnectivity.v1.GetDestinationRequest)) { + return super.equals(obj); + } + com.google.cloud.networkconnectivity.v1.GetDestinationRequest other = + (com.google.cloud.networkconnectivity.v1.GetDestinationRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkconnectivity.v1.GetDestinationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.GetDestinationRequest 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.networkconnectivity.v1.GetDestinationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.GetDestinationRequest parseFrom( + 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.networkconnectivity.v1.GetDestinationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.GetDestinationRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkconnectivity.v1.GetDestinationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.GetDestinationRequest 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.networkconnectivity.v1.GetDestinationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.GetDestinationRequest 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.networkconnectivity.v1.GetDestinationRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.GetDestinationRequest 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.networkconnectivity.v1.GetDestinationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request message to get the details of a `Destination` resource.
    +   * 
    + * + * Protobuf type {@code google.cloud.networkconnectivity.v1.GetDestinationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.GetDestinationRequest) + com.google.cloud.networkconnectivity.v1.GetDestinationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_GetDestinationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_GetDestinationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.GetDestinationRequest.class, + com.google.cloud.networkconnectivity.v1.GetDestinationRequest.Builder.class); + } + + // Construct using com.google.cloud.networkconnectivity.v1.GetDestinationRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_GetDestinationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.GetDestinationRequest + getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.GetDestinationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.GetDestinationRequest build() { + com.google.cloud.networkconnectivity.v1.GetDestinationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.GetDestinationRequest buildPartial() { + com.google.cloud.networkconnectivity.v1.GetDestinationRequest result = + new com.google.cloud.networkconnectivity.v1.GetDestinationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkconnectivity.v1.GetDestinationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkconnectivity.v1.GetDestinationRequest) { + return mergeFrom((com.google.cloud.networkconnectivity.v1.GetDestinationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.GetDestinationRequest other) { + if (other + == com.google.cloud.networkconnectivity.v1.GetDestinationRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
    +     * Required. The name of the `Destination` resource to get.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. The name of the `Destination` resource to get.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. The name of the `Destination` resource to get.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The name of the `Destination` resource to get.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The name of the `Destination` resource to get.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.GetDestinationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.GetDestinationRequest) + private static final com.google.cloud.networkconnectivity.v1.GetDestinationRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.GetDestinationRequest(); + } + + public static com.google.cloud.networkconnectivity.v1.GetDestinationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDestinationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.networkconnectivity.v1.GetDestinationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetDestinationRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetDestinationRequestOrBuilder.java new file mode 100644 index 000000000000..1959b323d56c --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetDestinationRequestOrBuilder.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/networkconnectivity/v1/data_transfer.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkconnectivity.v1; + +public interface GetDestinationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.GetDestinationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The name of the `Destination` resource to get.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Required. The name of the `Destination` resource to get.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetMulticloudDataTransferConfigRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetMulticloudDataTransferConfigRequest.java new file mode 100644 index 000000000000..174bad809f98 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetMulticloudDataTransferConfigRequest.java @@ -0,0 +1,680 @@ +/* + * 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/networkconnectivity/v1/data_transfer.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkconnectivity.v1; + +/** + * + * + *
    + * Request message to get the details of a `MulticloudDataTransferConfig`
    + * resource.
    + * 
    + * + * Protobuf type {@code google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest} + */ +public final class GetMulticloudDataTransferConfigRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest) + GetMulticloudDataTransferConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetMulticloudDataTransferConfigRequest.newBuilder() to construct. + private GetMulticloudDataTransferConfigRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetMulticloudDataTransferConfigRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetMulticloudDataTransferConfigRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_GetMulticloudDataTransferConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_GetMulticloudDataTransferConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest.class, + com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Required. The name of the `MulticloudDataTransferConfig` resource to get.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. The name of the `MulticloudDataTransferConfig` resource to get.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest other = + (com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest + 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.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest + parseFrom( + 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.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest + 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.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest + 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.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest + 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.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request message to get the details of a `MulticloudDataTransferConfig`
    +   * resource.
    +   * 
    + * + * Protobuf type {@code + * google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest) + com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_GetMulticloudDataTransferConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_GetMulticloudDataTransferConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest.class, + com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_GetMulticloudDataTransferConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest build() { + com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest + buildPartial() { + com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest result = + new com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest) { + return mergeFrom( + (com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest other) { + if (other + == com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
    +     * Required. The name of the `MulticloudDataTransferConfig` resource to get.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. The name of the `MulticloudDataTransferConfig` resource to get.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. The name of the `MulticloudDataTransferConfig` resource to get.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The name of the `MulticloudDataTransferConfig` resource to get.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The name of the `MulticloudDataTransferConfig` resource to get.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest) + private static final com.google.cloud.networkconnectivity.v1 + .GetMulticloudDataTransferConfigRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest(); + } + + public static com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetMulticloudDataTransferConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetMulticloudDataTransferConfigRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetMulticloudDataTransferConfigRequestOrBuilder.java new file mode 100644 index 000000000000..7cb5dc6e6636 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetMulticloudDataTransferConfigRequestOrBuilder.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/networkconnectivity/v1/data_transfer.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkconnectivity.v1; + +public interface GetMulticloudDataTransferConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The name of the `MulticloudDataTransferConfig` resource to get.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Required. The name of the `MulticloudDataTransferConfig` resource to get.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetMulticloudDataTransferSupportedServiceRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetMulticloudDataTransferSupportedServiceRequest.java new file mode 100644 index 000000000000..612a8b7b83d3 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetMulticloudDataTransferSupportedServiceRequest.java @@ -0,0 +1,713 @@ +/* + * 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/networkconnectivity/v1/data_transfer.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkconnectivity.v1; + +/** + * + * + *
    + * Request message to check if a service in your project in a region is
    + * eligible for Data Transfer Essentials configuration.
    + * 
    + * + * Protobuf type {@code + * google.cloud.networkconnectivity.v1.GetMulticloudDataTransferSupportedServiceRequest} + */ +public final class GetMulticloudDataTransferSupportedServiceRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.GetMulticloudDataTransferSupportedServiceRequest) + GetMulticloudDataTransferSupportedServiceRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetMulticloudDataTransferSupportedServiceRequest.newBuilder() to construct. + private GetMulticloudDataTransferSupportedServiceRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetMulticloudDataTransferSupportedServiceRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetMulticloudDataTransferSupportedServiceRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_GetMulticloudDataTransferSupportedServiceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_GetMulticloudDataTransferSupportedServiceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferSupportedServiceRequest + .class, + com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferSupportedServiceRequest + .Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Required. The name of the service.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. The name of the service.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferSupportedServiceRequest)) { + return super.equals(obj); + } + com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferSupportedServiceRequest other = + (com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferSupportedServiceRequest) + obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkconnectivity.v1 + .GetMulticloudDataTransferSupportedServiceRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1 + .GetMulticloudDataTransferSupportedServiceRequest + 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.networkconnectivity.v1 + .GetMulticloudDataTransferSupportedServiceRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1 + .GetMulticloudDataTransferSupportedServiceRequest + parseFrom( + 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.networkconnectivity.v1 + .GetMulticloudDataTransferSupportedServiceRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1 + .GetMulticloudDataTransferSupportedServiceRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkconnectivity.v1 + .GetMulticloudDataTransferSupportedServiceRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1 + .GetMulticloudDataTransferSupportedServiceRequest + 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.networkconnectivity.v1 + .GetMulticloudDataTransferSupportedServiceRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1 + .GetMulticloudDataTransferSupportedServiceRequest + 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.networkconnectivity.v1 + .GetMulticloudDataTransferSupportedServiceRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1 + .GetMulticloudDataTransferSupportedServiceRequest + 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.networkconnectivity.v1.GetMulticloudDataTransferSupportedServiceRequest + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request message to check if a service in your project in a region is
    +   * eligible for Data Transfer Essentials configuration.
    +   * 
    + * + * Protobuf type {@code + * google.cloud.networkconnectivity.v1.GetMulticloudDataTransferSupportedServiceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.GetMulticloudDataTransferSupportedServiceRequest) + com.google.cloud.networkconnectivity.v1 + .GetMulticloudDataTransferSupportedServiceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_GetMulticloudDataTransferSupportedServiceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_GetMulticloudDataTransferSupportedServiceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1 + .GetMulticloudDataTransferSupportedServiceRequest.class, + com.google.cloud.networkconnectivity.v1 + .GetMulticloudDataTransferSupportedServiceRequest.Builder.class); + } + + // Construct using + // com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferSupportedServiceRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_GetMulticloudDataTransferSupportedServiceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferSupportedServiceRequest + getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1 + .GetMulticloudDataTransferSupportedServiceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferSupportedServiceRequest + build() { + com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferSupportedServiceRequest + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferSupportedServiceRequest + buildPartial() { + com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferSupportedServiceRequest + result = + new com.google.cloud.networkconnectivity.v1 + .GetMulticloudDataTransferSupportedServiceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferSupportedServiceRequest + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.networkconnectivity.v1 + .GetMulticloudDataTransferSupportedServiceRequest) { + return mergeFrom( + (com.google.cloud.networkconnectivity.v1 + .GetMulticloudDataTransferSupportedServiceRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferSupportedServiceRequest + other) { + if (other + == com.google.cloud.networkconnectivity.v1 + .GetMulticloudDataTransferSupportedServiceRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
    +     * Required. The name of the service.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. The name of the service.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. The name of the service.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The name of the service.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The name of the service.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.GetMulticloudDataTransferSupportedServiceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.GetMulticloudDataTransferSupportedServiceRequest) + private static final com.google.cloud.networkconnectivity.v1 + .GetMulticloudDataTransferSupportedServiceRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networkconnectivity.v1 + .GetMulticloudDataTransferSupportedServiceRequest(); + } + + public static com.google.cloud.networkconnectivity.v1 + .GetMulticloudDataTransferSupportedServiceRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser< + GetMulticloudDataTransferSupportedServiceRequest>() { + @java.lang.Override + public GetMulticloudDataTransferSupportedServiceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.networkconnectivity.v1.GetMulticloudDataTransferSupportedServiceRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetMulticloudDataTransferSupportedServiceRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetMulticloudDataTransferSupportedServiceRequestOrBuilder.java new file mode 100644 index 000000000000..ee80dd114425 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetMulticloudDataTransferSupportedServiceRequestOrBuilder.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/networkconnectivity/v1/data_transfer.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkconnectivity.v1; + +public interface GetMulticloudDataTransferSupportedServiceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.GetMulticloudDataTransferSupportedServiceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The name of the service.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Required. The name of the service.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListDestinationsRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListDestinationsRequest.java new file mode 100644 index 000000000000..8038746fb373 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListDestinationsRequest.java @@ -0,0 +1,1421 @@ +/* + * 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/networkconnectivity/v1/data_transfer.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkconnectivity.v1; + +/** + * + * + *
    + * Request message to list `Destination` resources.
    + * 
    + * + * Protobuf type {@code google.cloud.networkconnectivity.v1.ListDestinationsRequest} + */ +public final class ListDestinationsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.ListDestinationsRequest) + ListDestinationsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListDestinationsRequest.newBuilder() to construct. + private ListDestinationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDestinationsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDestinationsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_ListDestinationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_ListDestinationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.ListDestinationsRequest.class, + com.google.cloud.networkconnectivity.v1.ListDestinationsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
    +   * Required. The name of the parent resource.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. The name of the parent resource.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
    +   * Optional. The maximum number of results listed per page.
    +   * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
    +   * Optional. The page token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. The page token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
    +   * Optional. An expression that filters the results listed in the response.
    +   * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. An expression that filters the results listed in the response.
    +   * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
    +   * Optional. The sort order of the results.
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. The sort order of the results.
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RETURN_PARTIAL_SUCCESS_FIELD_NUMBER = 6; + private boolean returnPartialSuccess_ = false; + + /** + * + * + *
    +   * Optional. If `true`, allow partial responses for multi-regional aggregated
    +   * list requests.
    +   * 
    + * + * bool return_partial_success = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The returnPartialSuccess. + */ + @java.lang.Override + public boolean getReturnPartialSuccess() { + return returnPartialSuccess_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + if (returnPartialSuccess_ != false) { + output.writeBool(6, returnPartialSuccess_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + if (returnPartialSuccess_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, returnPartialSuccess_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.networkconnectivity.v1.ListDestinationsRequest)) { + return super.equals(obj); + } + com.google.cloud.networkconnectivity.v1.ListDestinationsRequest other = + (com.google.cloud.networkconnectivity.v1.ListDestinationsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (getReturnPartialSuccess() != other.getReturnPartialSuccess()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + RETURN_PARTIAL_SUCCESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReturnPartialSuccess()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkconnectivity.v1.ListDestinationsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.ListDestinationsRequest 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.networkconnectivity.v1.ListDestinationsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.ListDestinationsRequest parseFrom( + 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.networkconnectivity.v1.ListDestinationsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.ListDestinationsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkconnectivity.v1.ListDestinationsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.ListDestinationsRequest 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.networkconnectivity.v1.ListDestinationsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.ListDestinationsRequest 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.networkconnectivity.v1.ListDestinationsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.ListDestinationsRequest 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.networkconnectivity.v1.ListDestinationsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request message to list `Destination` resources.
    +   * 
    + * + * Protobuf type {@code google.cloud.networkconnectivity.v1.ListDestinationsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.ListDestinationsRequest) + com.google.cloud.networkconnectivity.v1.ListDestinationsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_ListDestinationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_ListDestinationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.ListDestinationsRequest.class, + com.google.cloud.networkconnectivity.v1.ListDestinationsRequest.Builder.class); + } + + // Construct using com.google.cloud.networkconnectivity.v1.ListDestinationsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + returnPartialSuccess_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_ListDestinationsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.ListDestinationsRequest + getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.ListDestinationsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.ListDestinationsRequest build() { + com.google.cloud.networkconnectivity.v1.ListDestinationsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.ListDestinationsRequest buildPartial() { + com.google.cloud.networkconnectivity.v1.ListDestinationsRequest result = + new com.google.cloud.networkconnectivity.v1.ListDestinationsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkconnectivity.v1.ListDestinationsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.returnPartialSuccess_ = returnPartialSuccess_; + } + } + + @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.networkconnectivity.v1.ListDestinationsRequest) { + return mergeFrom((com.google.cloud.networkconnectivity.v1.ListDestinationsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkconnectivity.v1.ListDestinationsRequest other) { + if (other + == com.google.cloud.networkconnectivity.v1.ListDestinationsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getReturnPartialSuccess() != false) { + setReturnPartialSuccess(other.getReturnPartialSuccess()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + returnPartialSuccess_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
    +     * Required. The name of the parent resource.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. The name of the parent resource.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. The name of the parent resource.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The name of the parent resource.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The name of the parent resource.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
    +     * Optional. The maximum number of results listed per page.
    +     * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
    +     * Optional. The maximum number of results listed per page.
    +     * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The maximum number of results listed per page.
    +     * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
    +     * Optional. The page token.
    +     * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. The page token.
    +     * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. The page token.
    +     * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The page token.
    +     * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The page token.
    +     * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
    +     * Optional. An expression that filters the results listed in the response.
    +     * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. An expression that filters the results listed in the response.
    +     * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. An expression that filters the results listed in the response.
    +     * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. An expression that filters the results listed in the response.
    +     * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. An expression that filters the results listed in the response.
    +     * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
    +     * Optional. The sort order of the results.
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. The sort order of the results.
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. The sort order of the results.
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The sort order of the results.
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The sort order of the results.
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private boolean returnPartialSuccess_; + + /** + * + * + *
    +     * Optional. If `true`, allow partial responses for multi-regional aggregated
    +     * list requests.
    +     * 
    + * + * bool return_partial_success = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The returnPartialSuccess. + */ + @java.lang.Override + public boolean getReturnPartialSuccess() { + return returnPartialSuccess_; + } + + /** + * + * + *
    +     * Optional. If `true`, allow partial responses for multi-regional aggregated
    +     * list requests.
    +     * 
    + * + * bool return_partial_success = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The returnPartialSuccess to set. + * @return This builder for chaining. + */ + public Builder setReturnPartialSuccess(boolean value) { + + returnPartialSuccess_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. If `true`, allow partial responses for multi-regional aggregated
    +     * list requests.
    +     * 
    + * + * bool return_partial_success = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearReturnPartialSuccess() { + bitField0_ = (bitField0_ & ~0x00000020); + returnPartialSuccess_ = 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.networkconnectivity.v1.ListDestinationsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.ListDestinationsRequest) + private static final com.google.cloud.networkconnectivity.v1.ListDestinationsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.ListDestinationsRequest(); + } + + public static com.google.cloud.networkconnectivity.v1.ListDestinationsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDestinationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.networkconnectivity.v1.ListDestinationsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListDestinationsRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListDestinationsRequestOrBuilder.java new file mode 100644 index 000000000000..5de54ed8754f --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListDestinationsRequestOrBuilder.java @@ -0,0 +1,161 @@ +/* + * 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/networkconnectivity/v1/data_transfer.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkconnectivity.v1; + +public interface ListDestinationsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.ListDestinationsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The name of the parent resource.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. The name of the parent resource.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Optional. The maximum number of results listed per page.
    +   * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
    +   * Optional. The page token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
    +   * Optional. The page token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
    +   * Optional. An expression that filters the results listed in the response.
    +   * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
    +   * Optional. An expression that filters the results listed in the response.
    +   * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
    +   * Optional. The sort order of the results.
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
    +   * Optional. The sort order of the results.
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
    +   * Optional. If `true`, allow partial responses for multi-regional aggregated
    +   * list requests.
    +   * 
    + * + * bool return_partial_success = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The returnPartialSuccess. + */ + boolean getReturnPartialSuccess(); +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListDestinationsResponse.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListDestinationsResponse.java new file mode 100644 index 000000000000..3a18fef3a415 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListDestinationsResponse.java @@ -0,0 +1,1459 @@ +/* + * 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/networkconnectivity/v1/data_transfer.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkconnectivity.v1; + +/** + * + * + *
    + * Response message to list `Destination` resources.
    + * 
    + * + * Protobuf type {@code google.cloud.networkconnectivity.v1.ListDestinationsResponse} + */ +public final class ListDestinationsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.ListDestinationsResponse) + ListDestinationsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListDestinationsResponse.newBuilder() to construct. + private ListDestinationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDestinationsResponse() { + destinations_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDestinationsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_ListDestinationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_ListDestinationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.ListDestinationsResponse.class, + com.google.cloud.networkconnectivity.v1.ListDestinationsResponse.Builder.class); + } + + public static final int DESTINATIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List destinations_; + + /** + * + * + *
    +   * The list of `Destination` resources to be listed.
    +   * 
    + * + * repeated .google.cloud.networkconnectivity.v1.Destination destinations = 1; + */ + @java.lang.Override + public java.util.List getDestinationsList() { + return destinations_; + } + + /** + * + * + *
    +   * The list of `Destination` resources to be listed.
    +   * 
    + * + * repeated .google.cloud.networkconnectivity.v1.Destination destinations = 1; + */ + @java.lang.Override + public java.util.List + getDestinationsOrBuilderList() { + return destinations_; + } + + /** + * + * + *
    +   * The list of `Destination` resources to be listed.
    +   * 
    + * + * repeated .google.cloud.networkconnectivity.v1.Destination destinations = 1; + */ + @java.lang.Override + public int getDestinationsCount() { + return destinations_.size(); + } + + /** + * + * + *
    +   * The list of `Destination` resources to be listed.
    +   * 
    + * + * repeated .google.cloud.networkconnectivity.v1.Destination destinations = 1; + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.Destination getDestinations(int index) { + return destinations_.get(index); + } + + /** + * + * + *
    +   * The list of `Destination` resources to be listed.
    +   * 
    + * + * repeated .google.cloud.networkconnectivity.v1.Destination destinations = 1; + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.DestinationOrBuilder getDestinationsOrBuilder( + int index) { + return destinations_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +   * The next page token.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
    +   * The next page token.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < destinations_.size(); i++) { + output.writeMessage(1, destinations_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < destinations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, destinations_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.networkconnectivity.v1.ListDestinationsResponse)) { + return super.equals(obj); + } + com.google.cloud.networkconnectivity.v1.ListDestinationsResponse other = + (com.google.cloud.networkconnectivity.v1.ListDestinationsResponse) obj; + + if (!getDestinationsList().equals(other.getDestinationsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDestinationsCount() > 0) { + hash = (37 * hash) + DESTINATIONS_FIELD_NUMBER; + hash = (53 * hash) + getDestinationsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkconnectivity.v1.ListDestinationsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.ListDestinationsResponse 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.networkconnectivity.v1.ListDestinationsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.ListDestinationsResponse parseFrom( + 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.networkconnectivity.v1.ListDestinationsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.ListDestinationsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkconnectivity.v1.ListDestinationsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.ListDestinationsResponse 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.networkconnectivity.v1.ListDestinationsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.ListDestinationsResponse 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.networkconnectivity.v1.ListDestinationsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.ListDestinationsResponse 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.networkconnectivity.v1.ListDestinationsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Response message to list `Destination` resources.
    +   * 
    + * + * Protobuf type {@code google.cloud.networkconnectivity.v1.ListDestinationsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.ListDestinationsResponse) + com.google.cloud.networkconnectivity.v1.ListDestinationsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_ListDestinationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_ListDestinationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.ListDestinationsResponse.class, + com.google.cloud.networkconnectivity.v1.ListDestinationsResponse.Builder.class); + } + + // Construct using com.google.cloud.networkconnectivity.v1.ListDestinationsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (destinationsBuilder_ == null) { + destinations_ = java.util.Collections.emptyList(); + } else { + destinations_ = null; + destinationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_ListDestinationsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.ListDestinationsResponse + getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.ListDestinationsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.ListDestinationsResponse build() { + com.google.cloud.networkconnectivity.v1.ListDestinationsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.ListDestinationsResponse buildPartial() { + com.google.cloud.networkconnectivity.v1.ListDestinationsResponse result = + new com.google.cloud.networkconnectivity.v1.ListDestinationsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networkconnectivity.v1.ListDestinationsResponse result) { + if (destinationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + destinations_ = java.util.Collections.unmodifiableList(destinations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.destinations_ = destinations_; + } else { + result.destinations_ = destinationsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.networkconnectivity.v1.ListDestinationsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkconnectivity.v1.ListDestinationsResponse) { + return mergeFrom((com.google.cloud.networkconnectivity.v1.ListDestinationsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkconnectivity.v1.ListDestinationsResponse other) { + if (other + == com.google.cloud.networkconnectivity.v1.ListDestinationsResponse.getDefaultInstance()) + return this; + if (destinationsBuilder_ == null) { + if (!other.destinations_.isEmpty()) { + if (destinations_.isEmpty()) { + destinations_ = other.destinations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDestinationsIsMutable(); + destinations_.addAll(other.destinations_); + } + onChanged(); + } + } else { + if (!other.destinations_.isEmpty()) { + if (destinationsBuilder_.isEmpty()) { + destinationsBuilder_.dispose(); + destinationsBuilder_ = null; + destinations_ = other.destinations_; + bitField0_ = (bitField0_ & ~0x00000001); + destinationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDestinationsFieldBuilder() + : null; + } else { + destinationsBuilder_.addAllMessages(other.destinations_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.networkconnectivity.v1.Destination m = + input.readMessage( + com.google.cloud.networkconnectivity.v1.Destination.parser(), + extensionRegistry); + if (destinationsBuilder_ == null) { + ensureDestinationsIsMutable(); + destinations_.add(m); + } else { + destinationsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List destinations_ = + java.util.Collections.emptyList(); + + private void ensureDestinationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + destinations_ = + new java.util.ArrayList( + destinations_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.Destination, + com.google.cloud.networkconnectivity.v1.Destination.Builder, + com.google.cloud.networkconnectivity.v1.DestinationOrBuilder> + destinationsBuilder_; + + /** + * + * + *
    +     * The list of `Destination` resources to be listed.
    +     * 
    + * + * repeated .google.cloud.networkconnectivity.v1.Destination destinations = 1; + */ + public java.util.List + getDestinationsList() { + if (destinationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(destinations_); + } else { + return destinationsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * The list of `Destination` resources to be listed.
    +     * 
    + * + * repeated .google.cloud.networkconnectivity.v1.Destination destinations = 1; + */ + public int getDestinationsCount() { + if (destinationsBuilder_ == null) { + return destinations_.size(); + } else { + return destinationsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * The list of `Destination` resources to be listed.
    +     * 
    + * + * repeated .google.cloud.networkconnectivity.v1.Destination destinations = 1; + */ + public com.google.cloud.networkconnectivity.v1.Destination getDestinations(int index) { + if (destinationsBuilder_ == null) { + return destinations_.get(index); + } else { + return destinationsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * The list of `Destination` resources to be listed.
    +     * 
    + * + * repeated .google.cloud.networkconnectivity.v1.Destination destinations = 1; + */ + public Builder setDestinations( + int index, com.google.cloud.networkconnectivity.v1.Destination value) { + if (destinationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDestinationsIsMutable(); + destinations_.set(index, value); + onChanged(); + } else { + destinationsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The list of `Destination` resources to be listed.
    +     * 
    + * + * repeated .google.cloud.networkconnectivity.v1.Destination destinations = 1; + */ + public Builder setDestinations( + int index, com.google.cloud.networkconnectivity.v1.Destination.Builder builderForValue) { + if (destinationsBuilder_ == null) { + ensureDestinationsIsMutable(); + destinations_.set(index, builderForValue.build()); + onChanged(); + } else { + destinationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The list of `Destination` resources to be listed.
    +     * 
    + * + * repeated .google.cloud.networkconnectivity.v1.Destination destinations = 1; + */ + public Builder addDestinations(com.google.cloud.networkconnectivity.v1.Destination value) { + if (destinationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDestinationsIsMutable(); + destinations_.add(value); + onChanged(); + } else { + destinationsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * The list of `Destination` resources to be listed.
    +     * 
    + * + * repeated .google.cloud.networkconnectivity.v1.Destination destinations = 1; + */ + public Builder addDestinations( + int index, com.google.cloud.networkconnectivity.v1.Destination value) { + if (destinationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDestinationsIsMutable(); + destinations_.add(index, value); + onChanged(); + } else { + destinationsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The list of `Destination` resources to be listed.
    +     * 
    + * + * repeated .google.cloud.networkconnectivity.v1.Destination destinations = 1; + */ + public Builder addDestinations( + com.google.cloud.networkconnectivity.v1.Destination.Builder builderForValue) { + if (destinationsBuilder_ == null) { + ensureDestinationsIsMutable(); + destinations_.add(builderForValue.build()); + onChanged(); + } else { + destinationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The list of `Destination` resources to be listed.
    +     * 
    + * + * repeated .google.cloud.networkconnectivity.v1.Destination destinations = 1; + */ + public Builder addDestinations( + int index, com.google.cloud.networkconnectivity.v1.Destination.Builder builderForValue) { + if (destinationsBuilder_ == null) { + ensureDestinationsIsMutable(); + destinations_.add(index, builderForValue.build()); + onChanged(); + } else { + destinationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The list of `Destination` resources to be listed.
    +     * 
    + * + * repeated .google.cloud.networkconnectivity.v1.Destination destinations = 1; + */ + public Builder addAllDestinations( + java.lang.Iterable values) { + if (destinationsBuilder_ == null) { + ensureDestinationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, destinations_); + onChanged(); + } else { + destinationsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * The list of `Destination` resources to be listed.
    +     * 
    + * + * repeated .google.cloud.networkconnectivity.v1.Destination destinations = 1; + */ + public Builder clearDestinations() { + if (destinationsBuilder_ == null) { + destinations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + destinationsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * The list of `Destination` resources to be listed.
    +     * 
    + * + * repeated .google.cloud.networkconnectivity.v1.Destination destinations = 1; + */ + public Builder removeDestinations(int index) { + if (destinationsBuilder_ == null) { + ensureDestinationsIsMutable(); + destinations_.remove(index); + onChanged(); + } else { + destinationsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * The list of `Destination` resources to be listed.
    +     * 
    + * + * repeated .google.cloud.networkconnectivity.v1.Destination destinations = 1; + */ + public com.google.cloud.networkconnectivity.v1.Destination.Builder getDestinationsBuilder( + int index) { + return getDestinationsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * The list of `Destination` resources to be listed.
    +     * 
    + * + * repeated .google.cloud.networkconnectivity.v1.Destination destinations = 1; + */ + public com.google.cloud.networkconnectivity.v1.DestinationOrBuilder getDestinationsOrBuilder( + int index) { + if (destinationsBuilder_ == null) { + return destinations_.get(index); + } else { + return destinationsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * The list of `Destination` resources to be listed.
    +     * 
    + * + * repeated .google.cloud.networkconnectivity.v1.Destination destinations = 1; + */ + public java.util.List + getDestinationsOrBuilderList() { + if (destinationsBuilder_ != null) { + return destinationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(destinations_); + } + } + + /** + * + * + *
    +     * The list of `Destination` resources to be listed.
    +     * 
    + * + * repeated .google.cloud.networkconnectivity.v1.Destination destinations = 1; + */ + public com.google.cloud.networkconnectivity.v1.Destination.Builder addDestinationsBuilder() { + return getDestinationsFieldBuilder() + .addBuilder(com.google.cloud.networkconnectivity.v1.Destination.getDefaultInstance()); + } + + /** + * + * + *
    +     * The list of `Destination` resources to be listed.
    +     * 
    + * + * repeated .google.cloud.networkconnectivity.v1.Destination destinations = 1; + */ + public com.google.cloud.networkconnectivity.v1.Destination.Builder addDestinationsBuilder( + int index) { + return getDestinationsFieldBuilder() + .addBuilder( + index, com.google.cloud.networkconnectivity.v1.Destination.getDefaultInstance()); + } + + /** + * + * + *
    +     * The list of `Destination` resources to be listed.
    +     * 
    + * + * repeated .google.cloud.networkconnectivity.v1.Destination destinations = 1; + */ + public java.util.List + getDestinationsBuilderList() { + return getDestinationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.Destination, + com.google.cloud.networkconnectivity.v1.Destination.Builder, + com.google.cloud.networkconnectivity.v1.DestinationOrBuilder> + getDestinationsFieldBuilder() { + if (destinationsBuilder_ == null) { + destinationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.Destination, + com.google.cloud.networkconnectivity.v1.Destination.Builder, + com.google.cloud.networkconnectivity.v1.DestinationOrBuilder>( + destinations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + destinations_ = null; + } + return destinationsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +     * The next page token.
    +     * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * The next page token.
    +     * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * The next page token.
    +     * 
    + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * The next page token.
    +     * 
    + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * The next page token.
    +     * 
    + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.ListDestinationsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.ListDestinationsResponse) + private static final com.google.cloud.networkconnectivity.v1.ListDestinationsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.ListDestinationsResponse(); + } + + public static com.google.cloud.networkconnectivity.v1.ListDestinationsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDestinationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.networkconnectivity.v1.ListDestinationsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListDestinationsResponseOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListDestinationsResponseOrBuilder.java new file mode 100644 index 000000000000..c03eab858bd8 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListDestinationsResponseOrBuilder.java @@ -0,0 +1,162 @@ +/* + * 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/networkconnectivity/v1/data_transfer.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkconnectivity.v1; + +public interface ListDestinationsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.ListDestinationsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The list of `Destination` resources to be listed.
    +   * 
    + * + * repeated .google.cloud.networkconnectivity.v1.Destination destinations = 1; + */ + java.util.List getDestinationsList(); + + /** + * + * + *
    +   * The list of `Destination` resources to be listed.
    +   * 
    + * + * repeated .google.cloud.networkconnectivity.v1.Destination destinations = 1; + */ + com.google.cloud.networkconnectivity.v1.Destination getDestinations(int index); + + /** + * + * + *
    +   * The list of `Destination` resources to be listed.
    +   * 
    + * + * repeated .google.cloud.networkconnectivity.v1.Destination destinations = 1; + */ + int getDestinationsCount(); + + /** + * + * + *
    +   * The list of `Destination` resources to be listed.
    +   * 
    + * + * repeated .google.cloud.networkconnectivity.v1.Destination destinations = 1; + */ + java.util.List + getDestinationsOrBuilderList(); + + /** + * + * + *
    +   * The list of `Destination` resources to be listed.
    +   * 
    + * + * repeated .google.cloud.networkconnectivity.v1.Destination destinations = 1; + */ + com.google.cloud.networkconnectivity.v1.DestinationOrBuilder getDestinationsOrBuilder(int index); + + /** + * + * + *
    +   * The next page token.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
    +   * The next page token.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListMulticloudDataTransferConfigsRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListMulticloudDataTransferConfigsRequest.java new file mode 100644 index 000000000000..061917e2c72f --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListMulticloudDataTransferConfigsRequest.java @@ -0,0 +1,1448 @@ +/* + * 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/networkconnectivity/v1/data_transfer.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkconnectivity.v1; + +/** + * + * + *
    + * Request message to list `MulticloudDataTransferConfig` resources.
    + * 
    + * + * Protobuf type {@code + * google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest} + */ +public final class ListMulticloudDataTransferConfigsRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest) + ListMulticloudDataTransferConfigsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListMulticloudDataTransferConfigsRequest.newBuilder() to construct. + private ListMulticloudDataTransferConfigsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListMulticloudDataTransferConfigsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListMulticloudDataTransferConfigsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_ListMulticloudDataTransferConfigsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_ListMulticloudDataTransferConfigsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest.class, + com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest.Builder + .class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
    +   * Required. The name of the parent resource.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. The name of the parent resource.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
    +   * Optional. The maximum number of results listed per page.
    +   * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
    +   * Optional. The page token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. The page token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
    +   * Optional. An expression that filters the results listed in the response.
    +   * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. An expression that filters the results listed in the response.
    +   * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
    +   * Optional. The sort order of the results.
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. The sort order of the results.
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RETURN_PARTIAL_SUCCESS_FIELD_NUMBER = 6; + private boolean returnPartialSuccess_ = false; + + /** + * + * + *
    +   * Optional. If `true`, allows partial responses for multi-regional aggregated
    +   * list requests.
    +   * 
    + * + * bool return_partial_success = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The returnPartialSuccess. + */ + @java.lang.Override + public boolean getReturnPartialSuccess() { + return returnPartialSuccess_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + if (returnPartialSuccess_ != false) { + output.writeBool(6, returnPartialSuccess_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + if (returnPartialSuccess_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, returnPartialSuccess_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest)) { + return super.equals(obj); + } + com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest other = + (com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (getReturnPartialSuccess() != other.getReturnPartialSuccess()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + RETURN_PARTIAL_SUCCESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReturnPartialSuccess()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest + 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.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest + parseFrom( + 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.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest + 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.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest + 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.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest + 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.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request message to list `MulticloudDataTransferConfig` resources.
    +   * 
    + * + * Protobuf type {@code + * google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest) + com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_ListMulticloudDataTransferConfigsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_ListMulticloudDataTransferConfigsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest + .class, + com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest + .Builder.class); + } + + // Construct using + // com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + returnPartialSuccess_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_ListMulticloudDataTransferConfigsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest + getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest + build() { + com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest + buildPartial() { + com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest result = + new com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.returnPartialSuccess_ = returnPartialSuccess_; + } + } + + @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.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest) { + return mergeFrom( + (com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest other) { + if (other + == com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getReturnPartialSuccess() != false) { + setReturnPartialSuccess(other.getReturnPartialSuccess()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + returnPartialSuccess_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
    +     * Required. The name of the parent resource.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. The name of the parent resource.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. The name of the parent resource.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The name of the parent resource.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The name of the parent resource.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
    +     * Optional. The maximum number of results listed per page.
    +     * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
    +     * Optional. The maximum number of results listed per page.
    +     * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The maximum number of results listed per page.
    +     * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
    +     * Optional. The page token.
    +     * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. The page token.
    +     * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. The page token.
    +     * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The page token.
    +     * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The page token.
    +     * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
    +     * Optional. An expression that filters the results listed in the response.
    +     * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. An expression that filters the results listed in the response.
    +     * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. An expression that filters the results listed in the response.
    +     * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. An expression that filters the results listed in the response.
    +     * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. An expression that filters the results listed in the response.
    +     * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
    +     * Optional. The sort order of the results.
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. The sort order of the results.
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. The sort order of the results.
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The sort order of the results.
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The sort order of the results.
    +     * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private boolean returnPartialSuccess_; + + /** + * + * + *
    +     * Optional. If `true`, allows partial responses for multi-regional aggregated
    +     * list requests.
    +     * 
    + * + * bool return_partial_success = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The returnPartialSuccess. + */ + @java.lang.Override + public boolean getReturnPartialSuccess() { + return returnPartialSuccess_; + } + + /** + * + * + *
    +     * Optional. If `true`, allows partial responses for multi-regional aggregated
    +     * list requests.
    +     * 
    + * + * bool return_partial_success = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The returnPartialSuccess to set. + * @return This builder for chaining. + */ + public Builder setReturnPartialSuccess(boolean value) { + + returnPartialSuccess_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. If `true`, allows partial responses for multi-regional aggregated
    +     * list requests.
    +     * 
    + * + * bool return_partial_success = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearReturnPartialSuccess() { + bitField0_ = (bitField0_ & ~0x00000020); + returnPartialSuccess_ = 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.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest) + private static final com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferConfigsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest(); + } + + public static com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMulticloudDataTransferConfigsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListMulticloudDataTransferConfigsRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListMulticloudDataTransferConfigsRequestOrBuilder.java new file mode 100644 index 000000000000..01af1d43b151 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListMulticloudDataTransferConfigsRequestOrBuilder.java @@ -0,0 +1,161 @@ +/* + * 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/networkconnectivity/v1/data_transfer.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkconnectivity.v1; + +public interface ListMulticloudDataTransferConfigsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The name of the parent resource.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. The name of the parent resource.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Optional. The maximum number of results listed per page.
    +   * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
    +   * Optional. The page token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
    +   * Optional. The page token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
    +   * Optional. An expression that filters the results listed in the response.
    +   * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
    +   * Optional. An expression that filters the results listed in the response.
    +   * 
    + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
    +   * Optional. The sort order of the results.
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
    +   * Optional. The sort order of the results.
    +   * 
    + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
    +   * Optional. If `true`, allows partial responses for multi-regional aggregated
    +   * list requests.
    +   * 
    + * + * bool return_partial_success = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The returnPartialSuccess. + */ + boolean getReturnPartialSuccess(); +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListMulticloudDataTransferConfigsResponse.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListMulticloudDataTransferConfigsResponse.java new file mode 100644 index 000000000000..f155440a99d6 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListMulticloudDataTransferConfigsResponse.java @@ -0,0 +1,1565 @@ +/* + * 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/networkconnectivity/v1/data_transfer.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkconnectivity.v1; + +/** + * + * + *
    + * Response message to list `MulticloudDataTransferConfig` resources.
    + * 
    + * + * Protobuf type {@code + * google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse} + */ +public final class ListMulticloudDataTransferConfigsResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse) + ListMulticloudDataTransferConfigsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListMulticloudDataTransferConfigsResponse.newBuilder() to construct. + private ListMulticloudDataTransferConfigsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListMulticloudDataTransferConfigsResponse() { + multicloudDataTransferConfigs_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListMulticloudDataTransferConfigsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_ListMulticloudDataTransferConfigsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_ListMulticloudDataTransferConfigsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse.class, + com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse + .Builder.class); + } + + public static final int MULTICLOUD_DATA_TRANSFER_CONFIGS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + multicloudDataTransferConfigs_; + + /** + * + * + *
    +   * The list of `MulticloudDataTransferConfig` resources to be listed.
    +   * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_configs = 1; + * + */ + @java.lang.Override + public java.util.List + getMulticloudDataTransferConfigsList() { + return multicloudDataTransferConfigs_; + } + + /** + * + * + *
    +   * The list of `MulticloudDataTransferConfig` resources to be listed.
    +   * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_configs = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfigOrBuilder> + getMulticloudDataTransferConfigsOrBuilderList() { + return multicloudDataTransferConfigs_; + } + + /** + * + * + *
    +   * The list of `MulticloudDataTransferConfig` resources to be listed.
    +   * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_configs = 1; + * + */ + @java.lang.Override + public int getMulticloudDataTransferConfigsCount() { + return multicloudDataTransferConfigs_.size(); + } + + /** + * + * + *
    +   * The list of `MulticloudDataTransferConfig` resources to be listed.
    +   * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_configs = 1; + * + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig + getMulticloudDataTransferConfigs(int index) { + return multicloudDataTransferConfigs_.get(index); + } + + /** + * + * + *
    +   * The list of `MulticloudDataTransferConfig` resources to be listed.
    +   * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_configs = 1; + * + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfigOrBuilder + getMulticloudDataTransferConfigsOrBuilder(int index) { + return multicloudDataTransferConfigs_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +   * The next page token.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
    +   * The next page token.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < multicloudDataTransferConfigs_.size(); i++) { + output.writeMessage(1, multicloudDataTransferConfigs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < multicloudDataTransferConfigs_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, multicloudDataTransferConfigs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse)) { + return super.equals(obj); + } + com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse other = + (com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse) obj; + + if (!getMulticloudDataTransferConfigsList() + .equals(other.getMulticloudDataTransferConfigsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getMulticloudDataTransferConfigsCount() > 0) { + hash = (37 * hash) + MULTICLOUD_DATA_TRANSFER_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getMulticloudDataTransferConfigsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse + 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.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse + parseFrom( + 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.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse + 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.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse + 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.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse + 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.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Response message to list `MulticloudDataTransferConfig` resources.
    +   * 
    + * + * Protobuf type {@code + * google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse) + com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_ListMulticloudDataTransferConfigsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_ListMulticloudDataTransferConfigsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse + .class, + com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse + .Builder.class); + } + + // Construct using + // com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (multicloudDataTransferConfigsBuilder_ == null) { + multicloudDataTransferConfigs_ = java.util.Collections.emptyList(); + } else { + multicloudDataTransferConfigs_ = null; + multicloudDataTransferConfigsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_ListMulticloudDataTransferConfigsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse + getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse + build() { + com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse + buildPartial() { + com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse result = + new com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse result) { + if (multicloudDataTransferConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + multicloudDataTransferConfigs_ = + java.util.Collections.unmodifiableList(multicloudDataTransferConfigs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.multicloudDataTransferConfigs_ = multicloudDataTransferConfigs_; + } else { + result.multicloudDataTransferConfigs_ = multicloudDataTransferConfigsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse) { + return mergeFrom( + (com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse other) { + if (other + == com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse + .getDefaultInstance()) return this; + if (multicloudDataTransferConfigsBuilder_ == null) { + if (!other.multicloudDataTransferConfigs_.isEmpty()) { + if (multicloudDataTransferConfigs_.isEmpty()) { + multicloudDataTransferConfigs_ = other.multicloudDataTransferConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMulticloudDataTransferConfigsIsMutable(); + multicloudDataTransferConfigs_.addAll(other.multicloudDataTransferConfigs_); + } + onChanged(); + } + } else { + if (!other.multicloudDataTransferConfigs_.isEmpty()) { + if (multicloudDataTransferConfigsBuilder_.isEmpty()) { + multicloudDataTransferConfigsBuilder_.dispose(); + multicloudDataTransferConfigsBuilder_ = null; + multicloudDataTransferConfigs_ = other.multicloudDataTransferConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + multicloudDataTransferConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMulticloudDataTransferConfigsFieldBuilder() + : null; + } else { + multicloudDataTransferConfigsBuilder_.addAllMessages( + other.multicloudDataTransferConfigs_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig m = + input.readMessage( + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig + .parser(), + extensionRegistry); + if (multicloudDataTransferConfigsBuilder_ == null) { + ensureMulticloudDataTransferConfigsIsMutable(); + multicloudDataTransferConfigs_.add(m); + } else { + multicloudDataTransferConfigsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + multicloudDataTransferConfigs_ = java.util.Collections.emptyList(); + + private void ensureMulticloudDataTransferConfigsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + multicloudDataTransferConfigs_ = + new java.util.ArrayList< + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig>( + multicloudDataTransferConfigs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig, + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig.Builder, + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfigOrBuilder> + multicloudDataTransferConfigsBuilder_; + + /** + * + * + *
    +     * The list of `MulticloudDataTransferConfig` resources to be listed.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_configs = 1; + * + */ + public java.util.List + getMulticloudDataTransferConfigsList() { + if (multicloudDataTransferConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(multicloudDataTransferConfigs_); + } else { + return multicloudDataTransferConfigsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * The list of `MulticloudDataTransferConfig` resources to be listed.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_configs = 1; + * + */ + public int getMulticloudDataTransferConfigsCount() { + if (multicloudDataTransferConfigsBuilder_ == null) { + return multicloudDataTransferConfigs_.size(); + } else { + return multicloudDataTransferConfigsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * The list of `MulticloudDataTransferConfig` resources to be listed.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_configs = 1; + * + */ + public com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig + getMulticloudDataTransferConfigs(int index) { + if (multicloudDataTransferConfigsBuilder_ == null) { + return multicloudDataTransferConfigs_.get(index); + } else { + return multicloudDataTransferConfigsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * The list of `MulticloudDataTransferConfig` resources to be listed.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_configs = 1; + * + */ + public Builder setMulticloudDataTransferConfigs( + int index, com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig value) { + if (multicloudDataTransferConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMulticloudDataTransferConfigsIsMutable(); + multicloudDataTransferConfigs_.set(index, value); + onChanged(); + } else { + multicloudDataTransferConfigsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The list of `MulticloudDataTransferConfig` resources to be listed.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_configs = 1; + * + */ + public Builder setMulticloudDataTransferConfigs( + int index, + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig.Builder + builderForValue) { + if (multicloudDataTransferConfigsBuilder_ == null) { + ensureMulticloudDataTransferConfigsIsMutable(); + multicloudDataTransferConfigs_.set(index, builderForValue.build()); + onChanged(); + } else { + multicloudDataTransferConfigsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The list of `MulticloudDataTransferConfig` resources to be listed.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_configs = 1; + * + */ + public Builder addMulticloudDataTransferConfigs( + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig value) { + if (multicloudDataTransferConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMulticloudDataTransferConfigsIsMutable(); + multicloudDataTransferConfigs_.add(value); + onChanged(); + } else { + multicloudDataTransferConfigsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * The list of `MulticloudDataTransferConfig` resources to be listed.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_configs = 1; + * + */ + public Builder addMulticloudDataTransferConfigs( + int index, com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig value) { + if (multicloudDataTransferConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMulticloudDataTransferConfigsIsMutable(); + multicloudDataTransferConfigs_.add(index, value); + onChanged(); + } else { + multicloudDataTransferConfigsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The list of `MulticloudDataTransferConfig` resources to be listed.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_configs = 1; + * + */ + public Builder addMulticloudDataTransferConfigs( + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig.Builder + builderForValue) { + if (multicloudDataTransferConfigsBuilder_ == null) { + ensureMulticloudDataTransferConfigsIsMutable(); + multicloudDataTransferConfigs_.add(builderForValue.build()); + onChanged(); + } else { + multicloudDataTransferConfigsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The list of `MulticloudDataTransferConfig` resources to be listed.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_configs = 1; + * + */ + public Builder addMulticloudDataTransferConfigs( + int index, + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig.Builder + builderForValue) { + if (multicloudDataTransferConfigsBuilder_ == null) { + ensureMulticloudDataTransferConfigsIsMutable(); + multicloudDataTransferConfigs_.add(index, builderForValue.build()); + onChanged(); + } else { + multicloudDataTransferConfigsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The list of `MulticloudDataTransferConfig` resources to be listed.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_configs = 1; + * + */ + public Builder addAllMulticloudDataTransferConfigs( + java.lang.Iterable< + ? extends com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig> + values) { + if (multicloudDataTransferConfigsBuilder_ == null) { + ensureMulticloudDataTransferConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, multicloudDataTransferConfigs_); + onChanged(); + } else { + multicloudDataTransferConfigsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * The list of `MulticloudDataTransferConfig` resources to be listed.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_configs = 1; + * + */ + public Builder clearMulticloudDataTransferConfigs() { + if (multicloudDataTransferConfigsBuilder_ == null) { + multicloudDataTransferConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + multicloudDataTransferConfigsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * The list of `MulticloudDataTransferConfig` resources to be listed.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_configs = 1; + * + */ + public Builder removeMulticloudDataTransferConfigs(int index) { + if (multicloudDataTransferConfigsBuilder_ == null) { + ensureMulticloudDataTransferConfigsIsMutable(); + multicloudDataTransferConfigs_.remove(index); + onChanged(); + } else { + multicloudDataTransferConfigsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * The list of `MulticloudDataTransferConfig` resources to be listed.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_configs = 1; + * + */ + public com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig.Builder + getMulticloudDataTransferConfigsBuilder(int index) { + return getMulticloudDataTransferConfigsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * The list of `MulticloudDataTransferConfig` resources to be listed.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_configs = 1; + * + */ + public com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfigOrBuilder + getMulticloudDataTransferConfigsOrBuilder(int index) { + if (multicloudDataTransferConfigsBuilder_ == null) { + return multicloudDataTransferConfigs_.get(index); + } else { + return multicloudDataTransferConfigsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * The list of `MulticloudDataTransferConfig` resources to be listed.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_configs = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfigOrBuilder> + getMulticloudDataTransferConfigsOrBuilderList() { + if (multicloudDataTransferConfigsBuilder_ != null) { + return multicloudDataTransferConfigsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(multicloudDataTransferConfigs_); + } + } + + /** + * + * + *
    +     * The list of `MulticloudDataTransferConfig` resources to be listed.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_configs = 1; + * + */ + public com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig.Builder + addMulticloudDataTransferConfigsBuilder() { + return getMulticloudDataTransferConfigsFieldBuilder() + .addBuilder( + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig + .getDefaultInstance()); + } + + /** + * + * + *
    +     * The list of `MulticloudDataTransferConfig` resources to be listed.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_configs = 1; + * + */ + public com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig.Builder + addMulticloudDataTransferConfigsBuilder(int index) { + return getMulticloudDataTransferConfigsFieldBuilder() + .addBuilder( + index, + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig + .getDefaultInstance()); + } + + /** + * + * + *
    +     * The list of `MulticloudDataTransferConfig` resources to be listed.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_configs = 1; + * + */ + public java.util.List< + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig.Builder> + getMulticloudDataTransferConfigsBuilderList() { + return getMulticloudDataTransferConfigsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig, + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig.Builder, + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfigOrBuilder> + getMulticloudDataTransferConfigsFieldBuilder() { + if (multicloudDataTransferConfigsBuilder_ == null) { + multicloudDataTransferConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig, + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig.Builder, + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfigOrBuilder>( + multicloudDataTransferConfigs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + multicloudDataTransferConfigs_ = null; + } + return multicloudDataTransferConfigsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +     * The next page token.
    +     * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * The next page token.
    +     * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * The next page token.
    +     * 
    + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * The next page token.
    +     * 
    + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * The next page token.
    +     * 
    + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse) + private static final com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferConfigsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse(); + } + + public static com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMulticloudDataTransferConfigsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListMulticloudDataTransferConfigsResponseOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListMulticloudDataTransferConfigsResponseOrBuilder.java new file mode 100644 index 000000000000..86a7d2fb247e --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListMulticloudDataTransferConfigsResponseOrBuilder.java @@ -0,0 +1,176 @@ +/* + * 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/networkconnectivity/v1/data_transfer.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkconnectivity.v1; + +public interface ListMulticloudDataTransferConfigsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The list of `MulticloudDataTransferConfig` resources to be listed.
    +   * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_configs = 1; + * + */ + java.util.List + getMulticloudDataTransferConfigsList(); + + /** + * + * + *
    +   * The list of `MulticloudDataTransferConfig` resources to be listed.
    +   * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_configs = 1; + * + */ + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig + getMulticloudDataTransferConfigs(int index); + + /** + * + * + *
    +   * The list of `MulticloudDataTransferConfig` resources to be listed.
    +   * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_configs = 1; + * + */ + int getMulticloudDataTransferConfigsCount(); + + /** + * + * + *
    +   * The list of `MulticloudDataTransferConfig` resources to be listed.
    +   * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_configs = 1; + * + */ + java.util.List< + ? extends com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfigOrBuilder> + getMulticloudDataTransferConfigsOrBuilderList(); + + /** + * + * + *
    +   * The list of `MulticloudDataTransferConfig` resources to be listed.
    +   * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_configs = 1; + * + */ + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfigOrBuilder + getMulticloudDataTransferConfigsOrBuilder(int index); + + /** + * + * + *
    +   * The next page token.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
    +   * The next page token.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListMulticloudDataTransferSupportedServicesRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListMulticloudDataTransferSupportedServicesRequest.java new file mode 100644 index 000000000000..88a3cc9c58dd --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListMulticloudDataTransferSupportedServicesRequest.java @@ -0,0 +1,1006 @@ +/* + * 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/networkconnectivity/v1/data_transfer.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkconnectivity.v1; + +/** + * + * + *
    + * Request message to list the services in your project that are eligible for
    + * Data Transfer Essentials configuration.
    + * 
    + * + * Protobuf type {@code + * google.cloud.networkconnectivity.v1.ListMulticloudDataTransferSupportedServicesRequest} + */ +public final class ListMulticloudDataTransferSupportedServicesRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.ListMulticloudDataTransferSupportedServicesRequest) + ListMulticloudDataTransferSupportedServicesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListMulticloudDataTransferSupportedServicesRequest.newBuilder() to construct. + private ListMulticloudDataTransferSupportedServicesRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListMulticloudDataTransferSupportedServicesRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListMulticloudDataTransferSupportedServicesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_ListMulticloudDataTransferSupportedServicesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_ListMulticloudDataTransferSupportedServicesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesRequest.class, + com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
    +   * Required. The name of the parent resource.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. The name of the parent resource.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
    +   * Optional. The maximum number of results listed per page.
    +   * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
    +   * Optional. The page token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. The page token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesRequest)) { + return super.equals(obj); + } + com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferSupportedServicesRequest + other = + (com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesRequest) + obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesRequest + 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.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesRequest + parseFrom( + 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.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesRequest + 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.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesRequest + 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.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesRequest + 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.networkconnectivity.v1.ListMulticloudDataTransferSupportedServicesRequest + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request message to list the services in your project that are eligible for
    +   * Data Transfer Essentials configuration.
    +   * 
    + * + * Protobuf type {@code + * google.cloud.networkconnectivity.v1.ListMulticloudDataTransferSupportedServicesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.ListMulticloudDataTransferSupportedServicesRequest) + com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_ListMulticloudDataTransferSupportedServicesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_ListMulticloudDataTransferSupportedServicesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesRequest.class, + com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesRequest.Builder.class); + } + + // Construct using + // com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferSupportedServicesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_ListMulticloudDataTransferSupportedServicesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesRequest + getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesRequest + build() { + com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferSupportedServicesRequest + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesRequest + buildPartial() { + com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferSupportedServicesRequest + result = + new com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferSupportedServicesRequest + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesRequest) { + return mergeFrom( + (com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferSupportedServicesRequest + other) { + if (other + == com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
    +     * Required. The name of the parent resource.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. The name of the parent resource.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. The name of the parent resource.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The name of the parent resource.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The name of the parent resource.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
    +     * Optional. The maximum number of results listed per page.
    +     * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
    +     * Optional. The maximum number of results listed per page.
    +     * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The maximum number of results listed per page.
    +     * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
    +     * Optional. The page token.
    +     * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. The page token.
    +     * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. The page token.
    +     * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The page token.
    +     * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The page token.
    +     * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.ListMulticloudDataTransferSupportedServicesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.ListMulticloudDataTransferSupportedServicesRequest) + private static final com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesRequest(); + } + + public static com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser< + ListMulticloudDataTransferSupportedServicesRequest> + PARSER = + new com.google.protobuf.AbstractParser< + ListMulticloudDataTransferSupportedServicesRequest>() { + @java.lang.Override + public ListMulticloudDataTransferSupportedServicesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.networkconnectivity.v1.ListMulticloudDataTransferSupportedServicesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListMulticloudDataTransferSupportedServicesRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListMulticloudDataTransferSupportedServicesRequestOrBuilder.java new file mode 100644 index 000000000000..fe3adeb81ef6 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListMulticloudDataTransferSupportedServicesRequestOrBuilder.java @@ -0,0 +1,95 @@ +/* + * 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/networkconnectivity/v1/data_transfer.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkconnectivity.v1; + +public interface ListMulticloudDataTransferSupportedServicesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.ListMulticloudDataTransferSupportedServicesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The name of the parent resource.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. The name of the parent resource.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Optional. The maximum number of results listed per page.
    +   * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
    +   * Optional. The page token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
    +   * Optional. The page token.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListMulticloudDataTransferSupportedServicesResponse.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListMulticloudDataTransferSupportedServicesResponse.java new file mode 100644 index 000000000000..b9c6271795a1 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListMulticloudDataTransferSupportedServicesResponse.java @@ -0,0 +1,1329 @@ +/* + * 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/networkconnectivity/v1/data_transfer.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkconnectivity.v1; + +/** + * + * + *
    + * Response message to list the services in your project in regions that are
    + * eligible for Data Transfer Essentials configuration.
    + * 
    + * + * Protobuf type {@code + * google.cloud.networkconnectivity.v1.ListMulticloudDataTransferSupportedServicesResponse} + */ +public final class ListMulticloudDataTransferSupportedServicesResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.ListMulticloudDataTransferSupportedServicesResponse) + ListMulticloudDataTransferSupportedServicesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListMulticloudDataTransferSupportedServicesResponse.newBuilder() to construct. + private ListMulticloudDataTransferSupportedServicesResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListMulticloudDataTransferSupportedServicesResponse() { + multicloudDataTransferSupportedServices_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListMulticloudDataTransferSupportedServicesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_ListMulticloudDataTransferSupportedServicesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_ListMulticloudDataTransferSupportedServicesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesResponse.class, + com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesResponse.Builder.class); + } + + public static final int MULTICLOUD_DATA_TRANSFER_SUPPORTED_SERVICES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService> + multicloudDataTransferSupportedServices_; + + /** + * + * + *
    +   * The list of supported services.
    +   * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService multicloud_data_transfer_supported_services = 1; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService> + getMulticloudDataTransferSupportedServicesList() { + return multicloudDataTransferSupportedServices_; + } + + /** + * + * + *
    +   * The list of supported services.
    +   * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService multicloud_data_transfer_supported_services = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.networkconnectivity.v1 + .MulticloudDataTransferSupportedServiceOrBuilder> + getMulticloudDataTransferSupportedServicesOrBuilderList() { + return multicloudDataTransferSupportedServices_; + } + + /** + * + * + *
    +   * The list of supported services.
    +   * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService multicloud_data_transfer_supported_services = 1; + * + */ + @java.lang.Override + public int getMulticloudDataTransferSupportedServicesCount() { + return multicloudDataTransferSupportedServices_.size(); + } + + /** + * + * + *
    +   * The list of supported services.
    +   * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService multicloud_data_transfer_supported_services = 1; + * + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService + getMulticloudDataTransferSupportedServices(int index) { + return multicloudDataTransferSupportedServices_.get(index); + } + + /** + * + * + *
    +   * The list of supported services.
    +   * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService multicloud_data_transfer_supported_services = 1; + * + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedServiceOrBuilder + getMulticloudDataTransferSupportedServicesOrBuilder(int index) { + return multicloudDataTransferSupportedServices_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +   * The next page token.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
    +   * The next page token.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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 < multicloudDataTransferSupportedServices_.size(); i++) { + output.writeMessage(1, multicloudDataTransferSupportedServices_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < multicloudDataTransferSupportedServices_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, multicloudDataTransferSupportedServices_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesResponse)) { + return super.equals(obj); + } + com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferSupportedServicesResponse + other = + (com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesResponse) + obj; + + if (!getMulticloudDataTransferSupportedServicesList() + .equals(other.getMulticloudDataTransferSupportedServicesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getMulticloudDataTransferSupportedServicesCount() > 0) { + hash = (37 * hash) + MULTICLOUD_DATA_TRANSFER_SUPPORTED_SERVICES_FIELD_NUMBER; + hash = (53 * hash) + getMulticloudDataTransferSupportedServicesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesResponse + 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.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesResponse + parseFrom( + 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.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesResponse + 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.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesResponse + 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.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesResponse + 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.networkconnectivity.v1.ListMulticloudDataTransferSupportedServicesResponse + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Response message to list the services in your project in regions that are
    +   * eligible for Data Transfer Essentials configuration.
    +   * 
    + * + * Protobuf type {@code + * google.cloud.networkconnectivity.v1.ListMulticloudDataTransferSupportedServicesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.ListMulticloudDataTransferSupportedServicesResponse) + com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_ListMulticloudDataTransferSupportedServicesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_ListMulticloudDataTransferSupportedServicesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesResponse.class, + com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesResponse.Builder.class); + } + + // Construct using + // com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferSupportedServicesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (multicloudDataTransferSupportedServicesBuilder_ == null) { + multicloudDataTransferSupportedServices_ = java.util.Collections.emptyList(); + } else { + multicloudDataTransferSupportedServices_ = null; + multicloudDataTransferSupportedServicesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_ListMulticloudDataTransferSupportedServicesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesResponse + getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesResponse + build() { + com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferSupportedServicesResponse + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesResponse + buildPartial() { + com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferSupportedServicesResponse + result = + new com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferSupportedServicesResponse + result) { + if (multicloudDataTransferSupportedServicesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + multicloudDataTransferSupportedServices_ = + java.util.Collections.unmodifiableList(multicloudDataTransferSupportedServices_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.multicloudDataTransferSupportedServices_ = multicloudDataTransferSupportedServices_; + } else { + result.multicloudDataTransferSupportedServices_ = + multicloudDataTransferSupportedServicesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferSupportedServicesResponse + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesResponse) { + return mergeFrom( + (com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesResponse) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferSupportedServicesResponse + other) { + if (other + == com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesResponse.getDefaultInstance()) + return this; + if (multicloudDataTransferSupportedServicesBuilder_ == null) { + if (!other.multicloudDataTransferSupportedServices_.isEmpty()) { + if (multicloudDataTransferSupportedServices_.isEmpty()) { + multicloudDataTransferSupportedServices_ = + other.multicloudDataTransferSupportedServices_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMulticloudDataTransferSupportedServicesIsMutable(); + multicloudDataTransferSupportedServices_.addAll( + other.multicloudDataTransferSupportedServices_); + } + onChanged(); + } + } else { + if (!other.multicloudDataTransferSupportedServices_.isEmpty()) { + if (multicloudDataTransferSupportedServicesBuilder_.isEmpty()) { + multicloudDataTransferSupportedServicesBuilder_.dispose(); + multicloudDataTransferSupportedServicesBuilder_ = null; + multicloudDataTransferSupportedServices_ = + other.multicloudDataTransferSupportedServices_; + bitField0_ = (bitField0_ & ~0x00000001); + multicloudDataTransferSupportedServicesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMulticloudDataTransferSupportedServicesFieldBuilder() + : null; + } else { + multicloudDataTransferSupportedServicesBuilder_.addAllMessages( + other.multicloudDataTransferSupportedServices_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService m = + input.readMessage( + com.google.cloud.networkconnectivity.v1 + .MulticloudDataTransferSupportedService.parser(), + extensionRegistry); + if (multicloudDataTransferSupportedServicesBuilder_ == null) { + ensureMulticloudDataTransferSupportedServicesIsMutable(); + multicloudDataTransferSupportedServices_.add(m); + } else { + multicloudDataTransferSupportedServicesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List< + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService> + multicloudDataTransferSupportedServices_ = java.util.Collections.emptyList(); + + private void ensureMulticloudDataTransferSupportedServicesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + multicloudDataTransferSupportedServices_ = + new java.util.ArrayList< + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService>( + multicloudDataTransferSupportedServices_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService, + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService.Builder, + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedServiceOrBuilder> + multicloudDataTransferSupportedServicesBuilder_; + + /** + * + * + *
    +     * The list of supported services.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService multicloud_data_transfer_supported_services = 1; + * + */ + public java.util.List< + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService> + getMulticloudDataTransferSupportedServicesList() { + if (multicloudDataTransferSupportedServicesBuilder_ == null) { + return java.util.Collections.unmodifiableList(multicloudDataTransferSupportedServices_); + } else { + return multicloudDataTransferSupportedServicesBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * The list of supported services.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService multicloud_data_transfer_supported_services = 1; + * + */ + public int getMulticloudDataTransferSupportedServicesCount() { + if (multicloudDataTransferSupportedServicesBuilder_ == null) { + return multicloudDataTransferSupportedServices_.size(); + } else { + return multicloudDataTransferSupportedServicesBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * The list of supported services.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService multicloud_data_transfer_supported_services = 1; + * + */ + public com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService + getMulticloudDataTransferSupportedServices(int index) { + if (multicloudDataTransferSupportedServicesBuilder_ == null) { + return multicloudDataTransferSupportedServices_.get(index); + } else { + return multicloudDataTransferSupportedServicesBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * The list of supported services.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService multicloud_data_transfer_supported_services = 1; + * + */ + public Builder setMulticloudDataTransferSupportedServices( + int index, + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService value) { + if (multicloudDataTransferSupportedServicesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMulticloudDataTransferSupportedServicesIsMutable(); + multicloudDataTransferSupportedServices_.set(index, value); + onChanged(); + } else { + multicloudDataTransferSupportedServicesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The list of supported services.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService multicloud_data_transfer_supported_services = 1; + * + */ + public Builder setMulticloudDataTransferSupportedServices( + int index, + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService.Builder + builderForValue) { + if (multicloudDataTransferSupportedServicesBuilder_ == null) { + ensureMulticloudDataTransferSupportedServicesIsMutable(); + multicloudDataTransferSupportedServices_.set(index, builderForValue.build()); + onChanged(); + } else { + multicloudDataTransferSupportedServicesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The list of supported services.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService multicloud_data_transfer_supported_services = 1; + * + */ + public Builder addMulticloudDataTransferSupportedServices( + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService value) { + if (multicloudDataTransferSupportedServicesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMulticloudDataTransferSupportedServicesIsMutable(); + multicloudDataTransferSupportedServices_.add(value); + onChanged(); + } else { + multicloudDataTransferSupportedServicesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * The list of supported services.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService multicloud_data_transfer_supported_services = 1; + * + */ + public Builder addMulticloudDataTransferSupportedServices( + int index, + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService value) { + if (multicloudDataTransferSupportedServicesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMulticloudDataTransferSupportedServicesIsMutable(); + multicloudDataTransferSupportedServices_.add(index, value); + onChanged(); + } else { + multicloudDataTransferSupportedServicesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The list of supported services.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService multicloud_data_transfer_supported_services = 1; + * + */ + public Builder addMulticloudDataTransferSupportedServices( + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService.Builder + builderForValue) { + if (multicloudDataTransferSupportedServicesBuilder_ == null) { + ensureMulticloudDataTransferSupportedServicesIsMutable(); + multicloudDataTransferSupportedServices_.add(builderForValue.build()); + onChanged(); + } else { + multicloudDataTransferSupportedServicesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The list of supported services.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService multicloud_data_transfer_supported_services = 1; + * + */ + public Builder addMulticloudDataTransferSupportedServices( + int index, + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService.Builder + builderForValue) { + if (multicloudDataTransferSupportedServicesBuilder_ == null) { + ensureMulticloudDataTransferSupportedServicesIsMutable(); + multicloudDataTransferSupportedServices_.add(index, builderForValue.build()); + onChanged(); + } else { + multicloudDataTransferSupportedServicesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The list of supported services.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService multicloud_data_transfer_supported_services = 1; + * + */ + public Builder addAllMulticloudDataTransferSupportedServices( + java.lang.Iterable< + ? extends + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService> + values) { + if (multicloudDataTransferSupportedServicesBuilder_ == null) { + ensureMulticloudDataTransferSupportedServicesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, multicloudDataTransferSupportedServices_); + onChanged(); + } else { + multicloudDataTransferSupportedServicesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * The list of supported services.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService multicloud_data_transfer_supported_services = 1; + * + */ + public Builder clearMulticloudDataTransferSupportedServices() { + if (multicloudDataTransferSupportedServicesBuilder_ == null) { + multicloudDataTransferSupportedServices_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + multicloudDataTransferSupportedServicesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * The list of supported services.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService multicloud_data_transfer_supported_services = 1; + * + */ + public Builder removeMulticloudDataTransferSupportedServices(int index) { + if (multicloudDataTransferSupportedServicesBuilder_ == null) { + ensureMulticloudDataTransferSupportedServicesIsMutable(); + multicloudDataTransferSupportedServices_.remove(index); + onChanged(); + } else { + multicloudDataTransferSupportedServicesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * The list of supported services.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService multicloud_data_transfer_supported_services = 1; + * + */ + public com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService.Builder + getMulticloudDataTransferSupportedServicesBuilder(int index) { + return getMulticloudDataTransferSupportedServicesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * The list of supported services.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService multicloud_data_transfer_supported_services = 1; + * + */ + public com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedServiceOrBuilder + getMulticloudDataTransferSupportedServicesOrBuilder(int index) { + if (multicloudDataTransferSupportedServicesBuilder_ == null) { + return multicloudDataTransferSupportedServices_.get(index); + } else { + return multicloudDataTransferSupportedServicesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * The list of supported services.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService multicloud_data_transfer_supported_services = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.networkconnectivity.v1 + .MulticloudDataTransferSupportedServiceOrBuilder> + getMulticloudDataTransferSupportedServicesOrBuilderList() { + if (multicloudDataTransferSupportedServicesBuilder_ != null) { + return multicloudDataTransferSupportedServicesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(multicloudDataTransferSupportedServices_); + } + } + + /** + * + * + *
    +     * The list of supported services.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService multicloud_data_transfer_supported_services = 1; + * + */ + public com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService.Builder + addMulticloudDataTransferSupportedServicesBuilder() { + return getMulticloudDataTransferSupportedServicesFieldBuilder() + .addBuilder( + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService + .getDefaultInstance()); + } + + /** + * + * + *
    +     * The list of supported services.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService multicloud_data_transfer_supported_services = 1; + * + */ + public com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService.Builder + addMulticloudDataTransferSupportedServicesBuilder(int index) { + return getMulticloudDataTransferSupportedServicesFieldBuilder() + .addBuilder( + index, + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService + .getDefaultInstance()); + } + + /** + * + * + *
    +     * The list of supported services.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService multicloud_data_transfer_supported_services = 1; + * + */ + public java.util.List< + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService.Builder> + getMulticloudDataTransferSupportedServicesBuilderList() { + return getMulticloudDataTransferSupportedServicesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService, + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService.Builder, + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedServiceOrBuilder> + getMulticloudDataTransferSupportedServicesFieldBuilder() { + if (multicloudDataTransferSupportedServicesBuilder_ == null) { + multicloudDataTransferSupportedServicesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService, + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService + .Builder, + com.google.cloud.networkconnectivity.v1 + .MulticloudDataTransferSupportedServiceOrBuilder>( + multicloudDataTransferSupportedServices_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + multicloudDataTransferSupportedServices_ = null; + } + return multicloudDataTransferSupportedServicesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +     * The next page token.
    +     * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * The next page token.
    +     * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * The next page token.
    +     * 
    + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * The next page token.
    +     * 
    + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * The next page token.
    +     * 
    + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @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.networkconnectivity.v1.ListMulticloudDataTransferSupportedServicesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.ListMulticloudDataTransferSupportedServicesResponse) + private static final com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesResponse(); + } + + public static com.google.cloud.networkconnectivity.v1 + .ListMulticloudDataTransferSupportedServicesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser< + ListMulticloudDataTransferSupportedServicesResponse> + PARSER = + new com.google.protobuf.AbstractParser< + ListMulticloudDataTransferSupportedServicesResponse>() { + @java.lang.Override + public ListMulticloudDataTransferSupportedServicesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.networkconnectivity.v1.ListMulticloudDataTransferSupportedServicesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListMulticloudDataTransferSupportedServicesResponseOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListMulticloudDataTransferSupportedServicesResponseOrBuilder.java new file mode 100644 index 000000000000..c3c29de1edf5 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListMulticloudDataTransferSupportedServicesResponseOrBuilder.java @@ -0,0 +1,124 @@ +/* + * 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/networkconnectivity/v1/data_transfer.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkconnectivity.v1; + +public interface ListMulticloudDataTransferSupportedServicesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.ListMulticloudDataTransferSupportedServicesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The list of supported services.
    +   * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService multicloud_data_transfer_supported_services = 1; + * + */ + java.util.List + getMulticloudDataTransferSupportedServicesList(); + + /** + * + * + *
    +   * The list of supported services.
    +   * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService multicloud_data_transfer_supported_services = 1; + * + */ + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService + getMulticloudDataTransferSupportedServices(int index); + + /** + * + * + *
    +   * The list of supported services.
    +   * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService multicloud_data_transfer_supported_services = 1; + * + */ + int getMulticloudDataTransferSupportedServicesCount(); + + /** + * + * + *
    +   * The list of supported services.
    +   * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService multicloud_data_transfer_supported_services = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.networkconnectivity.v1 + .MulticloudDataTransferSupportedServiceOrBuilder> + getMulticloudDataTransferSupportedServicesOrBuilderList(); + + /** + * + * + *
    +   * The list of supported services.
    +   * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService multicloud_data_transfer_supported_services = 1; + * + */ + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedServiceOrBuilder + getMulticloudDataTransferSupportedServicesOrBuilder(int index); + + /** + * + * + *
    +   * The next page token.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
    +   * The next page token.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/MulticloudDataTransferConfig.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/MulticloudDataTransferConfig.java new file mode 100644 index 000000000000..a137ff41df45 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/MulticloudDataTransferConfig.java @@ -0,0 +1,3175 @@ +/* + * 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/networkconnectivity/v1/data_transfer.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkconnectivity.v1; + +/** + * + * + *
    + * The `MulticloudDataTransferConfig` resource. It lists the services that you
    + * configure for Data Transfer Essentials billing and metering.
    + * 
    + * + * Protobuf type {@code google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig} + */ +public final class MulticloudDataTransferConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig) + MulticloudDataTransferConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use MulticloudDataTransferConfig.newBuilder() to construct. + private MulticloudDataTransferConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MulticloudDataTransferConfig() { + name_ = ""; + etag_ = ""; + description_ = ""; + uid_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MulticloudDataTransferConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_MulticloudDataTransferConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + case 9: + return internalGetServices(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_MulticloudDataTransferConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig.class, + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Identifier. The name of the `MulticloudDataTransferConfig` resource.
    +   * Format:
    +   * `projects/{project}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_transfer_config}`.
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
    +   * Identifier. The name of the `MulticloudDataTransferConfig` resource.
    +   * Format:
    +   * `projects/{project}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_transfer_config}`.
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
    +   * Output only. Time when the `MulticloudDataTransferConfig` resource was
    +   * created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Output only. Time when the `MulticloudDataTransferConfig` resource was
    +   * created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
    +   * Output only. Time when the `MulticloudDataTransferConfig` resource was
    +   * created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
    +   * Output only. Time when the `MulticloudDataTransferConfig` resource was
    +   * updated.
    +   * 
    + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +   * Output only. Time when the `MulticloudDataTransferConfig` resource was
    +   * updated.
    +   * 
    + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
    +   * Output only. Time when the `MulticloudDataTransferConfig` resource was
    +   * updated.
    +   * 
    + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int LABELS_FIELD_NUMBER = 4; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_MulticloudDataTransferConfig_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
    +   * Optional. User-defined labels.
    +   * 
    + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
    +   * Optional. User-defined labels.
    +   * 
    + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
    +   * Optional. User-defined labels.
    +   * 
    + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
    +   * Optional. User-defined labels.
    +   * 
    + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int ETAG_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
    +   * The etag is computed by the server, and might be sent with update and
    +   * delete requests so that the client has an up-to-date value before
    +   * proceeding.
    +   * 
    + * + * string etag = 5; + * + * @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; + } + } + + /** + * + * + *
    +   * The etag is computed by the server, and might be sent with update and
    +   * delete requests so that the client has an up-to-date value before
    +   * proceeding.
    +   * 
    + * + * string etag = 5; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
    +   * Optional. A description of this resource.
    +   * 
    + * + * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. A description of this resource.
    +   * 
    + * + * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESTINATIONS_COUNT_FIELD_NUMBER = 7; + private int destinationsCount_ = 0; + + /** + * + * + *
    +   * Output only. The number of `Destination` resources configured for the
    +   * `MulticloudDataTransferConfig` resource.
    +   * 
    + * + * int32 destinations_count = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The destinationsCount. + */ + @java.lang.Override + public int getDestinationsCount() { + return destinationsCount_; + } + + public static final int DESTINATIONS_ACTIVE_COUNT_FIELD_NUMBER = 8; + private int destinationsActiveCount_ = 0; + + /** + * + * + *
    +   * Output only. The number of `Destination` resources in use with the
    +   * `MulticloudDataTransferConfig` resource.
    +   * 
    + * + * int32 destinations_active_count = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The destinationsActiveCount. + */ + @java.lang.Override + public int getDestinationsActiveCount() { + return destinationsActiveCount_; + } + + public static final int SERVICES_FIELD_NUMBER = 9; + + private static final class ServicesDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.networkconnectivity.v1.StateTimeline> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_MulticloudDataTransferConfig_ServicesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.networkconnectivity.v1.StateTimeline.getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.networkconnectivity.v1.StateTimeline> + services_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.networkconnectivity.v1.StateTimeline> + internalGetServices() { + if (services_ == null) { + return com.google.protobuf.MapField.emptyMapField(ServicesDefaultEntryHolder.defaultEntry); + } + return services_; + } + + public int getServicesCount() { + return internalGetServices().getMap().size(); + } + + /** + * + * + *
    +   * Optional. Maps services to their current or planned states. Service names
    +   * are keys, and the associated values describe the state of the service. If a
    +   * state change is expected, the value is either `ADDING` or `DELETING`,
    +   * depending on the actions taken.
    +   *
    +   * Sample output:
    +   * "services": {
    +   *   "big-query": {
    +   *     "states": [
    +   *       {
    +   *         "effectiveTime": "2024-12-12T08:00:00Z"
    +   *         "state": "ADDING",
    +   *       },
    +   *     ]
    +   *   },
    +   *   "cloud-storage": {
    +   *     "states": [
    +   *       {
    +   *         "state": "ACTIVE",
    +   *       }
    +   *     ]
    +   *   }
    +   * }
    +   * 
    + * + * + * map<string, .google.cloud.networkconnectivity.v1.StateTimeline> services = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsServices(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetServices().getMap().containsKey(key); + } + + /** Use {@link #getServicesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getServices() { + return getServicesMap(); + } + + /** + * + * + *
    +   * Optional. Maps services to their current or planned states. Service names
    +   * are keys, and the associated values describe the state of the service. If a
    +   * state change is expected, the value is either `ADDING` or `DELETING`,
    +   * depending on the actions taken.
    +   *
    +   * Sample output:
    +   * "services": {
    +   *   "big-query": {
    +   *     "states": [
    +   *       {
    +   *         "effectiveTime": "2024-12-12T08:00:00Z"
    +   *         "state": "ADDING",
    +   *       },
    +   *     ]
    +   *   },
    +   *   "cloud-storage": {
    +   *     "states": [
    +   *       {
    +   *         "state": "ACTIVE",
    +   *       }
    +   *     ]
    +   *   }
    +   * }
    +   * 
    + * + * + * map<string, .google.cloud.networkconnectivity.v1.StateTimeline> services = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map + getServicesMap() { + return internalGetServices().getMap(); + } + + /** + * + * + *
    +   * Optional. Maps services to their current or planned states. Service names
    +   * are keys, and the associated values describe the state of the service. If a
    +   * state change is expected, the value is either `ADDING` or `DELETING`,
    +   * depending on the actions taken.
    +   *
    +   * Sample output:
    +   * "services": {
    +   *   "big-query": {
    +   *     "states": [
    +   *       {
    +   *         "effectiveTime": "2024-12-12T08:00:00Z"
    +   *         "state": "ADDING",
    +   *       },
    +   *     ]
    +   *   },
    +   *   "cloud-storage": {
    +   *     "states": [
    +   *       {
    +   *         "state": "ACTIVE",
    +   *       }
    +   *     ]
    +   *   }
    +   * }
    +   * 
    + * + * + * map<string, .google.cloud.networkconnectivity.v1.StateTimeline> services = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.networkconnectivity.v1.StateTimeline getServicesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.networkconnectivity.v1.StateTimeline defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetServices().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
    +   * Optional. Maps services to their current or planned states. Service names
    +   * are keys, and the associated values describe the state of the service. If a
    +   * state change is expected, the value is either `ADDING` or `DELETING`,
    +   * depending on the actions taken.
    +   *
    +   * Sample output:
    +   * "services": {
    +   *   "big-query": {
    +   *     "states": [
    +   *       {
    +   *         "effectiveTime": "2024-12-12T08:00:00Z"
    +   *         "state": "ADDING",
    +   *       },
    +   *     ]
    +   *   },
    +   *   "cloud-storage": {
    +   *     "states": [
    +   *       {
    +   *         "state": "ACTIVE",
    +   *       }
    +   *     ]
    +   *   }
    +   * }
    +   * 
    + * + * + * map<string, .google.cloud.networkconnectivity.v1.StateTimeline> services = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.StateTimeline getServicesOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetServices().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int UID_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private volatile java.lang.Object uid_ = ""; + + /** + * + * + *
    +   * Output only. The Google-generated unique ID for the
    +   * `MulticloudDataTransferConfig` resource. This value is unique across all
    +   * `MulticloudDataTransferConfig` resources. If a resource is deleted and
    +   * another with the same name is created, the new resource is assigned a
    +   * different and unique ID.
    +   * 
    + * + * + * string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The uid. + */ + @java.lang.Override + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } + } + + /** + * + * + *
    +   * Output only. The Google-generated unique ID for the
    +   * `MulticloudDataTransferConfig` resource. This value is unique across all
    +   * `MulticloudDataTransferConfig` resources. If a resource is deleted and
    +   * another with the same name is created, the new resource is assigned a
    +   * different and unique ID.
    +   * 
    + * + * + * string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for uid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getUpdateTime()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, etag_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, description_); + } + if (destinationsCount_ != 0) { + output.writeInt32(7, destinationsCount_); + } + if (destinationsActiveCount_ != 0) { + output.writeInt32(8, destinationsActiveCount_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetServices(), ServicesDefaultEntryHolder.defaultEntry, 9); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, uid_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, etag_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, description_); + } + if (destinationsCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, destinationsCount_); + } + if (destinationsActiveCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, destinationsActiveCount_); + } + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.networkconnectivity.v1.StateTimeline> + entry : internalGetServices().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.networkconnectivity.v1.StateTimeline> + services__ = + ServicesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, services__); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, uid_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig)) { + return super.equals(obj); + } + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig other = + (com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (getDestinationsCount() != other.getDestinationsCount()) return false; + if (getDestinationsActiveCount() != other.getDestinationsActiveCount()) return false; + if (!internalGetServices().equals(other.internalGetServices())) return false; + if (!getUid().equals(other.getUid())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + DESTINATIONS_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getDestinationsCount(); + hash = (37 * hash) + DESTINATIONS_ACTIVE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getDestinationsActiveCount(); + if (!internalGetServices().getMap().isEmpty()) { + hash = (37 * hash) + SERVICES_FIELD_NUMBER; + hash = (53 * hash) + internalGetServices().hashCode(); + } + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig 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.networkconnectivity.v1.MulticloudDataTransferConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig parseFrom( + 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.networkconnectivity.v1.MulticloudDataTransferConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig 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.networkconnectivity.v1.MulticloudDataTransferConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig + 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.networkconnectivity.v1.MulticloudDataTransferConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig 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.networkconnectivity.v1.MulticloudDataTransferConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 `MulticloudDataTransferConfig` resource. It lists the services that you
    +   * configure for Data Transfer Essentials billing and metering.
    +   * 
    + * + * Protobuf type {@code google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig) + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_MulticloudDataTransferConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + case 9: + return internalGetServices(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetMutableLabels(); + case 9: + return internalGetMutableServices(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_MulticloudDataTransferConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig.class, + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig.Builder.class); + } + + // Construct using + // com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + etag_ = ""; + description_ = ""; + destinationsCount_ = 0; + destinationsActiveCount_ = 0; + internalGetMutableServices().clear(); + uid_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_MulticloudDataTransferConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig + getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig build() { + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig buildPartial() { + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig result = + new com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.destinationsCount_ = destinationsCount_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.destinationsActiveCount_ = destinationsActiveCount_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.services_ = internalGetServices().build(ServicesDefaultEntryHolder.defaultEntry); + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.uid_ = uid_; + } + 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.networkconnectivity.v1.MulticloudDataTransferConfig) { + return mergeFrom( + (com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig other) { + if (other + == com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000008; + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.getDestinationsCount() != 0) { + setDestinationsCount(other.getDestinationsCount()); + } + if (other.getDestinationsActiveCount() != 0) { + setDestinationsActiveCount(other.getDestinationsActiveCount()); + } + internalGetMutableServices().mergeFrom(other.internalGetServices()); + bitField0_ |= 0x00000100; + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + bitField0_ |= 0x00000200; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 56: + { + destinationsCount_ = input.readInt32(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: + { + destinationsActiveCount_ = input.readInt32(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 74: + { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.networkconnectivity.v1.StateTimeline> + services__ = + input.readMessage( + ServicesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableServices() + .ensureBuilderMap() + .put(services__.getKey(), services__.getValue()); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: + { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 82 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
    +     * Identifier. The name of the `MulticloudDataTransferConfig` resource.
    +     * Format:
    +     * `projects/{project}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_transfer_config}`.
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Identifier. The name of the `MulticloudDataTransferConfig` resource.
    +     * Format:
    +     * `projects/{project}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_transfer_config}`.
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Identifier. The name of the `MulticloudDataTransferConfig` resource.
    +     * Format:
    +     * `projects/{project}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_transfer_config}`.
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Identifier. The name of the `MulticloudDataTransferConfig` resource.
    +     * Format:
    +     * `projects/{project}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_transfer_config}`.
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Identifier. The name of the `MulticloudDataTransferConfig` resource.
    +     * Format:
    +     * `projects/{project}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_transfer_config}`.
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
    +     * Output only. Time when the `MulticloudDataTransferConfig` resource was
    +     * created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Output only. Time when the `MulticloudDataTransferConfig` resource was
    +     * created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Output only. Time when the `MulticloudDataTransferConfig` resource was
    +     * created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Time when the `MulticloudDataTransferConfig` resource was
    +     * created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Time when the `MulticloudDataTransferConfig` resource was
    +     * created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Output only. Time when the `MulticloudDataTransferConfig` resource was
    +     * created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Time when the `MulticloudDataTransferConfig` resource was
    +     * created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Output only. Time when the `MulticloudDataTransferConfig` resource was
    +     * created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
    +     * Output only. Time when the `MulticloudDataTransferConfig` resource was
    +     * created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
    +     * Output only. Time when the `MulticloudDataTransferConfig` resource was
    +     * updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +     * Output only. Time when the `MulticloudDataTransferConfig` resource was
    +     * updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Output only. Time when the `MulticloudDataTransferConfig` resource was
    +     * updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Time when the `MulticloudDataTransferConfig` resource was
    +     * updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Time when the `MulticloudDataTransferConfig` resource was
    +     * updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Output only. Time when the `MulticloudDataTransferConfig` resource was
    +     * updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Time when the `MulticloudDataTransferConfig` resource was
    +     * updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Output only. Time when the `MulticloudDataTransferConfig` resource was
    +     * updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
    +     * Output only. Time when the `MulticloudDataTransferConfig` resource was
    +     * updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000008; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
    +     * Optional. User-defined labels.
    +     * 
    + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
    +     * Optional. User-defined labels.
    +     * 
    + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
    +     * Optional. User-defined labels.
    +     * 
    + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
    +     * Optional. User-defined labels.
    +     * 
    + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
    +     * Optional. User-defined labels.
    +     * 
    + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000008; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
    +     * Optional. User-defined labels.
    +     * 
    + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000008; + return this; + } + + /** + * + * + *
    +     * Optional. User-defined labels.
    +     * 
    + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000008; + return this; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
    +     * The etag is computed by the server, and might be sent with update and
    +     * delete requests so that the client has an up-to-date value before
    +     * proceeding.
    +     * 
    + * + * string etag = 5; + * + * @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; + } + } + + /** + * + * + *
    +     * The etag is computed by the server, and might be sent with update and
    +     * delete requests so that the client has an up-to-date value before
    +     * proceeding.
    +     * 
    + * + * string etag = 5; + * + * @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; + } + } + + /** + * + * + *
    +     * The etag is computed by the server, and might be sent with update and
    +     * delete requests so that the client has an up-to-date value before
    +     * proceeding.
    +     * 
    + * + * string etag = 5; + * + * @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; + } + + /** + * + * + *
    +     * The etag is computed by the server, and might be sent with update and
    +     * delete requests so that the client has an up-to-date value before
    +     * proceeding.
    +     * 
    + * + * string etag = 5; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
    +     * The etag is computed by the server, and might be sent with update and
    +     * delete requests so that the client has an up-to-date value before
    +     * proceeding.
    +     * 
    + * + * string etag = 5; + * + * @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; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
    +     * Optional. A description of this resource.
    +     * 
    + * + * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. A description of this resource.
    +     * 
    + * + * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. A description of this resource.
    +     * 
    + * + * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A description of this resource.
    +     * 
    + * + * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A description of this resource.
    +     * 
    + * + * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private int destinationsCount_; + + /** + * + * + *
    +     * Output only. The number of `Destination` resources configured for the
    +     * `MulticloudDataTransferConfig` resource.
    +     * 
    + * + * int32 destinations_count = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The destinationsCount. + */ + @java.lang.Override + public int getDestinationsCount() { + return destinationsCount_; + } + + /** + * + * + *
    +     * Output only. The number of `Destination` resources configured for the
    +     * `MulticloudDataTransferConfig` resource.
    +     * 
    + * + * int32 destinations_count = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The destinationsCount to set. + * @return This builder for chaining. + */ + public Builder setDestinationsCount(int value) { + + destinationsCount_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The number of `Destination` resources configured for the
    +     * `MulticloudDataTransferConfig` resource.
    +     * 
    + * + * int32 destinations_count = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDestinationsCount() { + bitField0_ = (bitField0_ & ~0x00000040); + destinationsCount_ = 0; + onChanged(); + return this; + } + + private int destinationsActiveCount_; + + /** + * + * + *
    +     * Output only. The number of `Destination` resources in use with the
    +     * `MulticloudDataTransferConfig` resource.
    +     * 
    + * + * int32 destinations_active_count = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The destinationsActiveCount. + */ + @java.lang.Override + public int getDestinationsActiveCount() { + return destinationsActiveCount_; + } + + /** + * + * + *
    +     * Output only. The number of `Destination` resources in use with the
    +     * `MulticloudDataTransferConfig` resource.
    +     * 
    + * + * int32 destinations_active_count = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The destinationsActiveCount to set. + * @return This builder for chaining. + */ + public Builder setDestinationsActiveCount(int value) { + + destinationsActiveCount_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The number of `Destination` resources in use with the
    +     * `MulticloudDataTransferConfig` resource.
    +     * 
    + * + * int32 destinations_active_count = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearDestinationsActiveCount() { + bitField0_ = (bitField0_ & ~0x00000080); + destinationsActiveCount_ = 0; + onChanged(); + return this; + } + + private static final class ServicesConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.networkconnectivity.v1.StateTimelineOrBuilder, + com.google.cloud.networkconnectivity.v1.StateTimeline> { + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.StateTimeline build( + com.google.cloud.networkconnectivity.v1.StateTimelineOrBuilder val) { + if (val instanceof com.google.cloud.networkconnectivity.v1.StateTimeline) { + return (com.google.cloud.networkconnectivity.v1.StateTimeline) val; + } + return ((com.google.cloud.networkconnectivity.v1.StateTimeline.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.networkconnectivity.v1.StateTimeline> + defaultEntry() { + return ServicesDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final ServicesConverter servicesConverter = new ServicesConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.networkconnectivity.v1.StateTimelineOrBuilder, + com.google.cloud.networkconnectivity.v1.StateTimeline, + com.google.cloud.networkconnectivity.v1.StateTimeline.Builder> + services_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.networkconnectivity.v1.StateTimelineOrBuilder, + com.google.cloud.networkconnectivity.v1.StateTimeline, + com.google.cloud.networkconnectivity.v1.StateTimeline.Builder> + internalGetServices() { + if (services_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(servicesConverter); + } + return services_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.networkconnectivity.v1.StateTimelineOrBuilder, + com.google.cloud.networkconnectivity.v1.StateTimeline, + com.google.cloud.networkconnectivity.v1.StateTimeline.Builder> + internalGetMutableServices() { + if (services_ == null) { + services_ = new com.google.protobuf.MapFieldBuilder<>(servicesConverter); + } + bitField0_ |= 0x00000100; + onChanged(); + return services_; + } + + public int getServicesCount() { + return internalGetServices().ensureBuilderMap().size(); + } + + /** + * + * + *
    +     * Optional. Maps services to their current or planned states. Service names
    +     * are keys, and the associated values describe the state of the service. If a
    +     * state change is expected, the value is either `ADDING` or `DELETING`,
    +     * depending on the actions taken.
    +     *
    +     * Sample output:
    +     * "services": {
    +     *   "big-query": {
    +     *     "states": [
    +     *       {
    +     *         "effectiveTime": "2024-12-12T08:00:00Z"
    +     *         "state": "ADDING",
    +     *       },
    +     *     ]
    +     *   },
    +     *   "cloud-storage": {
    +     *     "states": [
    +     *       {
    +     *         "state": "ACTIVE",
    +     *       }
    +     *     ]
    +     *   }
    +     * }
    +     * 
    + * + * + * map<string, .google.cloud.networkconnectivity.v1.StateTimeline> services = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsServices(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetServices().ensureBuilderMap().containsKey(key); + } + + /** Use {@link #getServicesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getServices() { + return getServicesMap(); + } + + /** + * + * + *
    +     * Optional. Maps services to their current or planned states. Service names
    +     * are keys, and the associated values describe the state of the service. If a
    +     * state change is expected, the value is either `ADDING` or `DELETING`,
    +     * depending on the actions taken.
    +     *
    +     * Sample output:
    +     * "services": {
    +     *   "big-query": {
    +     *     "states": [
    +     *       {
    +     *         "effectiveTime": "2024-12-12T08:00:00Z"
    +     *         "state": "ADDING",
    +     *       },
    +     *     ]
    +     *   },
    +     *   "cloud-storage": {
    +     *     "states": [
    +     *       {
    +     *         "state": "ACTIVE",
    +     *       }
    +     *     ]
    +     *   }
    +     * }
    +     * 
    + * + * + * map<string, .google.cloud.networkconnectivity.v1.StateTimeline> services = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map + getServicesMap() { + return internalGetServices().getImmutableMap(); + } + + /** + * + * + *
    +     * Optional. Maps services to their current or planned states. Service names
    +     * are keys, and the associated values describe the state of the service. If a
    +     * state change is expected, the value is either `ADDING` or `DELETING`,
    +     * depending on the actions taken.
    +     *
    +     * Sample output:
    +     * "services": {
    +     *   "big-query": {
    +     *     "states": [
    +     *       {
    +     *         "effectiveTime": "2024-12-12T08:00:00Z"
    +     *         "state": "ADDING",
    +     *       },
    +     *     ]
    +     *   },
    +     *   "cloud-storage": {
    +     *     "states": [
    +     *       {
    +     *         "state": "ACTIVE",
    +     *       }
    +     *     ]
    +     *   }
    +     * }
    +     * 
    + * + * + * map<string, .google.cloud.networkconnectivity.v1.StateTimeline> services = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.networkconnectivity.v1.StateTimeline + getServicesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.networkconnectivity.v1.StateTimeline defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, com.google.cloud.networkconnectivity.v1.StateTimelineOrBuilder> + map = internalGetMutableServices().ensureBuilderMap(); + return map.containsKey(key) ? servicesConverter.build(map.get(key)) : defaultValue; + } + + /** + * + * + *
    +     * Optional. Maps services to their current or planned states. Service names
    +     * are keys, and the associated values describe the state of the service. If a
    +     * state change is expected, the value is either `ADDING` or `DELETING`,
    +     * depending on the actions taken.
    +     *
    +     * Sample output:
    +     * "services": {
    +     *   "big-query": {
    +     *     "states": [
    +     *       {
    +     *         "effectiveTime": "2024-12-12T08:00:00Z"
    +     *         "state": "ADDING",
    +     *       },
    +     *     ]
    +     *   },
    +     *   "cloud-storage": {
    +     *     "states": [
    +     *       {
    +     *         "state": "ACTIVE",
    +     *       }
    +     *     ]
    +     *   }
    +     * }
    +     * 
    + * + * + * map<string, .google.cloud.networkconnectivity.v1.StateTimeline> services = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.StateTimeline getServicesOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, com.google.cloud.networkconnectivity.v1.StateTimelineOrBuilder> + map = internalGetMutableServices().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return servicesConverter.build(map.get(key)); + } + + public Builder clearServices() { + bitField0_ = (bitField0_ & ~0x00000100); + internalGetMutableServices().clear(); + return this; + } + + /** + * + * + *
    +     * Optional. Maps services to their current or planned states. Service names
    +     * are keys, and the associated values describe the state of the service. If a
    +     * state change is expected, the value is either `ADDING` or `DELETING`,
    +     * depending on the actions taken.
    +     *
    +     * Sample output:
    +     * "services": {
    +     *   "big-query": {
    +     *     "states": [
    +     *       {
    +     *         "effectiveTime": "2024-12-12T08:00:00Z"
    +     *         "state": "ADDING",
    +     *       },
    +     *     ]
    +     *   },
    +     *   "cloud-storage": {
    +     *     "states": [
    +     *       {
    +     *         "state": "ACTIVE",
    +     *       }
    +     *     ]
    +     *   }
    +     * }
    +     * 
    + * + * + * map<string, .google.cloud.networkconnectivity.v1.StateTimeline> services = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeServices(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableServices().ensureBuilderMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableServices() { + bitField0_ |= 0x00000100; + return internalGetMutableServices().ensureMessageMap(); + } + + /** + * + * + *
    +     * Optional. Maps services to their current or planned states. Service names
    +     * are keys, and the associated values describe the state of the service. If a
    +     * state change is expected, the value is either `ADDING` or `DELETING`,
    +     * depending on the actions taken.
    +     *
    +     * Sample output:
    +     * "services": {
    +     *   "big-query": {
    +     *     "states": [
    +     *       {
    +     *         "effectiveTime": "2024-12-12T08:00:00Z"
    +     *         "state": "ADDING",
    +     *       },
    +     *     ]
    +     *   },
    +     *   "cloud-storage": {
    +     *     "states": [
    +     *       {
    +     *         "state": "ACTIVE",
    +     *       }
    +     *     ]
    +     *   }
    +     * }
    +     * 
    + * + * + * map<string, .google.cloud.networkconnectivity.v1.StateTimeline> services = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putServices( + java.lang.String key, com.google.cloud.networkconnectivity.v1.StateTimeline value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableServices().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000100; + return this; + } + + /** + * + * + *
    +     * Optional. Maps services to their current or planned states. Service names
    +     * are keys, and the associated values describe the state of the service. If a
    +     * state change is expected, the value is either `ADDING` or `DELETING`,
    +     * depending on the actions taken.
    +     *
    +     * Sample output:
    +     * "services": {
    +     *   "big-query": {
    +     *     "states": [
    +     *       {
    +     *         "effectiveTime": "2024-12-12T08:00:00Z"
    +     *         "state": "ADDING",
    +     *       },
    +     *     ]
    +     *   },
    +     *   "cloud-storage": {
    +     *     "states": [
    +     *       {
    +     *         "state": "ACTIVE",
    +     *       }
    +     *     ]
    +     *   }
    +     * }
    +     * 
    + * + * + * map<string, .google.cloud.networkconnectivity.v1.StateTimeline> services = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllServices( + java.util.Map + values) { + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.networkconnectivity.v1.StateTimeline> + e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableServices().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000100; + return this; + } + + /** + * + * + *
    +     * Optional. Maps services to their current or planned states. Service names
    +     * are keys, and the associated values describe the state of the service. If a
    +     * state change is expected, the value is either `ADDING` or `DELETING`,
    +     * depending on the actions taken.
    +     *
    +     * Sample output:
    +     * "services": {
    +     *   "big-query": {
    +     *     "states": [
    +     *       {
    +     *         "effectiveTime": "2024-12-12T08:00:00Z"
    +     *         "state": "ADDING",
    +     *       },
    +     *     ]
    +     *   },
    +     *   "cloud-storage": {
    +     *     "states": [
    +     *       {
    +     *         "state": "ACTIVE",
    +     *       }
    +     *     ]
    +     *   }
    +     * }
    +     * 
    + * + * + * map<string, .google.cloud.networkconnectivity.v1.StateTimeline> services = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networkconnectivity.v1.StateTimeline.Builder putServicesBuilderIfAbsent( + java.lang.String key) { + java.util.Map< + java.lang.String, com.google.cloud.networkconnectivity.v1.StateTimelineOrBuilder> + builderMap = internalGetMutableServices().ensureBuilderMap(); + com.google.cloud.networkconnectivity.v1.StateTimelineOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = com.google.cloud.networkconnectivity.v1.StateTimeline.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.google.cloud.networkconnectivity.v1.StateTimeline) { + entry = ((com.google.cloud.networkconnectivity.v1.StateTimeline) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.google.cloud.networkconnectivity.v1.StateTimeline.Builder) entry; + } + + private java.lang.Object uid_ = ""; + + /** + * + * + *
    +     * Output only. The Google-generated unique ID for the
    +     * `MulticloudDataTransferConfig` resource. This value is unique across all
    +     * `MulticloudDataTransferConfig` resources. If a resource is deleted and
    +     * another with the same name is created, the new resource is assigned a
    +     * different and unique ID.
    +     * 
    + * + * + * string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The uid. + */ + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Output only. The Google-generated unique ID for the
    +     * `MulticloudDataTransferConfig` resource. This value is unique across all
    +     * `MulticloudDataTransferConfig` resources. If a resource is deleted and
    +     * another with the same name is created, the new resource is assigned a
    +     * different and unique ID.
    +     * 
    + * + * + * string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for uid. + */ + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Output only. The Google-generated unique ID for the
    +     * `MulticloudDataTransferConfig` resource. This value is unique across all
    +     * `MulticloudDataTransferConfig` resources. If a resource is deleted and
    +     * another with the same name is created, the new resource is assigned a
    +     * different and unique ID.
    +     * 
    + * + * + * string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uid_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The Google-generated unique ID for the
    +     * `MulticloudDataTransferConfig` resource. This value is unique across all
    +     * `MulticloudDataTransferConfig` resources. If a resource is deleted and
    +     * another with the same name is created, the new resource is assigned a
    +     * different and unique ID.
    +     * 
    + * + * + * string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearUid() { + uid_ = getDefaultInstance().getUid(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The Google-generated unique ID for the
    +     * `MulticloudDataTransferConfig` resource. This value is unique across all
    +     * `MulticloudDataTransferConfig` resources. If a resource is deleted and
    +     * another with the same name is created, the new resource is assigned a
    +     * different and unique ID.
    +     * 
    + * + * + * string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for uid to set. + * @return This builder for chaining. + */ + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uid_ = value; + bitField0_ |= 0x00000200; + 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.networkconnectivity.v1.MulticloudDataTransferConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig) + private static final com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig(); + } + + public static com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MulticloudDataTransferConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.networkconnectivity.v1.MulticloudDataTransferConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/MulticloudDataTransferConfigName.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/MulticloudDataTransferConfigName.java new file mode 100644 index 000000000000..f69a651896c6 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/MulticloudDataTransferConfigName.java @@ -0,0 +1,243 @@ +/* + * 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.networkconnectivity.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class MulticloudDataTransferConfigName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_MULTICLOUD_DATA_TRANSFER_CONFIG = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_transfer_config}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String multicloudDataTransferConfig; + + @Deprecated + protected MulticloudDataTransferConfigName() { + project = null; + location = null; + multicloudDataTransferConfig = null; + } + + private MulticloudDataTransferConfigName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + multicloudDataTransferConfig = + Preconditions.checkNotNull(builder.getMulticloudDataTransferConfig()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getMulticloudDataTransferConfig() { + return multicloudDataTransferConfig; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static MulticloudDataTransferConfigName of( + String project, String location, String multicloudDataTransferConfig) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setMulticloudDataTransferConfig(multicloudDataTransferConfig) + .build(); + } + + public static String format( + String project, String location, String multicloudDataTransferConfig) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setMulticloudDataTransferConfig(multicloudDataTransferConfig) + .build() + .toString(); + } + + public static MulticloudDataTransferConfigName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_MULTICLOUD_DATA_TRANSFER_CONFIG.validatedMatch( + formattedString, + "MulticloudDataTransferConfigName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("multicloud_data_transfer_config")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (MulticloudDataTransferConfigName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_MULTICLOUD_DATA_TRANSFER_CONFIG.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (multicloudDataTransferConfig != null) { + fieldMapBuilder.put("multicloud_data_transfer_config", multicloudDataTransferConfig); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_MULTICLOUD_DATA_TRANSFER_CONFIG.instantiate( + "project", + project, + "location", + location, + "multicloud_data_transfer_config", + multicloudDataTransferConfig); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + MulticloudDataTransferConfigName that = ((MulticloudDataTransferConfigName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.multicloudDataTransferConfig, that.multicloudDataTransferConfig); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(multicloudDataTransferConfig); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_transfer_config}. + */ + public static class Builder { + private String project; + private String location; + private String multicloudDataTransferConfig; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getMulticloudDataTransferConfig() { + return multicloudDataTransferConfig; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setMulticloudDataTransferConfig(String multicloudDataTransferConfig) { + this.multicloudDataTransferConfig = multicloudDataTransferConfig; + return this; + } + + private Builder(MulticloudDataTransferConfigName multicloudDataTransferConfigName) { + this.project = multicloudDataTransferConfigName.project; + this.location = multicloudDataTransferConfigName.location; + this.multicloudDataTransferConfig = + multicloudDataTransferConfigName.multicloudDataTransferConfig; + } + + public MulticloudDataTransferConfigName build() { + return new MulticloudDataTransferConfigName(this); + } + } +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/MulticloudDataTransferConfigOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/MulticloudDataTransferConfigOrBuilder.java new file mode 100644 index 000000000000..d97a33f35863 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/MulticloudDataTransferConfigOrBuilder.java @@ -0,0 +1,512 @@ +/* + * 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/networkconnectivity/v1/data_transfer.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkconnectivity.v1; + +public interface MulticloudDataTransferConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Identifier. The name of the `MulticloudDataTransferConfig` resource.
    +   * Format:
    +   * `projects/{project}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_transfer_config}`.
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Identifier. The name of the `MulticloudDataTransferConfig` resource.
    +   * Format:
    +   * `projects/{project}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_transfer_config}`.
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Output only. Time when the `MulticloudDataTransferConfig` resource was
    +   * created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
    +   * Output only. Time when the `MulticloudDataTransferConfig` resource was
    +   * created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
    +   * Output only. Time when the `MulticloudDataTransferConfig` resource was
    +   * created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
    +   * Output only. Time when the `MulticloudDataTransferConfig` resource was
    +   * updated.
    +   * 
    + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
    +   * Output only. Time when the `MulticloudDataTransferConfig` resource was
    +   * updated.
    +   * 
    + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
    +   * Output only. Time when the `MulticloudDataTransferConfig` resource was
    +   * updated.
    +   * 
    + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
    +   * Optional. User-defined labels.
    +   * 
    + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + + /** + * + * + *
    +   * Optional. User-defined labels.
    +   * 
    + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + + /** + * + * + *
    +   * Optional. User-defined labels.
    +   * 
    + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
    +   * Optional. User-defined labels.
    +   * 
    + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
    +   * Optional. User-defined labels.
    +   * 
    + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
    +   * The etag is computed by the server, and might be sent with update and
    +   * delete requests so that the client has an up-to-date value before
    +   * proceeding.
    +   * 
    + * + * string etag = 5; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
    +   * The etag is computed by the server, and might be sent with update and
    +   * delete requests so that the client has an up-to-date value before
    +   * proceeding.
    +   * 
    + * + * string etag = 5; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
    +   * Optional. A description of this resource.
    +   * 
    + * + * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
    +   * Optional. A description of this resource.
    +   * 
    + * + * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
    +   * Output only. The number of `Destination` resources configured for the
    +   * `MulticloudDataTransferConfig` resource.
    +   * 
    + * + * int32 destinations_count = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The destinationsCount. + */ + int getDestinationsCount(); + + /** + * + * + *
    +   * Output only. The number of `Destination` resources in use with the
    +   * `MulticloudDataTransferConfig` resource.
    +   * 
    + * + * int32 destinations_active_count = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The destinationsActiveCount. + */ + int getDestinationsActiveCount(); + + /** + * + * + *
    +   * Optional. Maps services to their current or planned states. Service names
    +   * are keys, and the associated values describe the state of the service. If a
    +   * state change is expected, the value is either `ADDING` or `DELETING`,
    +   * depending on the actions taken.
    +   *
    +   * Sample output:
    +   * "services": {
    +   *   "big-query": {
    +   *     "states": [
    +   *       {
    +   *         "effectiveTime": "2024-12-12T08:00:00Z"
    +   *         "state": "ADDING",
    +   *       },
    +   *     ]
    +   *   },
    +   *   "cloud-storage": {
    +   *     "states": [
    +   *       {
    +   *         "state": "ACTIVE",
    +   *       }
    +   *     ]
    +   *   }
    +   * }
    +   * 
    + * + * + * map<string, .google.cloud.networkconnectivity.v1.StateTimeline> services = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getServicesCount(); + + /** + * + * + *
    +   * Optional. Maps services to their current or planned states. Service names
    +   * are keys, and the associated values describe the state of the service. If a
    +   * state change is expected, the value is either `ADDING` or `DELETING`,
    +   * depending on the actions taken.
    +   *
    +   * Sample output:
    +   * "services": {
    +   *   "big-query": {
    +   *     "states": [
    +   *       {
    +   *         "effectiveTime": "2024-12-12T08:00:00Z"
    +   *         "state": "ADDING",
    +   *       },
    +   *     ]
    +   *   },
    +   *   "cloud-storage": {
    +   *     "states": [
    +   *       {
    +   *         "state": "ACTIVE",
    +   *       }
    +   *     ]
    +   *   }
    +   * }
    +   * 
    + * + * + * map<string, .google.cloud.networkconnectivity.v1.StateTimeline> services = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsServices(java.lang.String key); + + /** Use {@link #getServicesMap()} instead. */ + @java.lang.Deprecated + java.util.Map + getServices(); + + /** + * + * + *
    +   * Optional. Maps services to their current or planned states. Service names
    +   * are keys, and the associated values describe the state of the service. If a
    +   * state change is expected, the value is either `ADDING` or `DELETING`,
    +   * depending on the actions taken.
    +   *
    +   * Sample output:
    +   * "services": {
    +   *   "big-query": {
    +   *     "states": [
    +   *       {
    +   *         "effectiveTime": "2024-12-12T08:00:00Z"
    +   *         "state": "ADDING",
    +   *       },
    +   *     ]
    +   *   },
    +   *   "cloud-storage": {
    +   *     "states": [
    +   *       {
    +   *         "state": "ACTIVE",
    +   *       }
    +   *     ]
    +   *   }
    +   * }
    +   * 
    + * + * + * map<string, .google.cloud.networkconnectivity.v1.StateTimeline> services = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map + getServicesMap(); + + /** + * + * + *
    +   * Optional. Maps services to their current or planned states. Service names
    +   * are keys, and the associated values describe the state of the service. If a
    +   * state change is expected, the value is either `ADDING` or `DELETING`,
    +   * depending on the actions taken.
    +   *
    +   * Sample output:
    +   * "services": {
    +   *   "big-query": {
    +   *     "states": [
    +   *       {
    +   *         "effectiveTime": "2024-12-12T08:00:00Z"
    +   *         "state": "ADDING",
    +   *       },
    +   *     ]
    +   *   },
    +   *   "cloud-storage": {
    +   *     "states": [
    +   *       {
    +   *         "state": "ACTIVE",
    +   *       }
    +   *     ]
    +   *   }
    +   * }
    +   * 
    + * + * + * map<string, .google.cloud.networkconnectivity.v1.StateTimeline> services = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + com.google.cloud.networkconnectivity.v1.StateTimeline getServicesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.networkconnectivity.v1.StateTimeline defaultValue); + + /** + * + * + *
    +   * Optional. Maps services to their current or planned states. Service names
    +   * are keys, and the associated values describe the state of the service. If a
    +   * state change is expected, the value is either `ADDING` or `DELETING`,
    +   * depending on the actions taken.
    +   *
    +   * Sample output:
    +   * "services": {
    +   *   "big-query": {
    +   *     "states": [
    +   *       {
    +   *         "effectiveTime": "2024-12-12T08:00:00Z"
    +   *         "state": "ADDING",
    +   *       },
    +   *     ]
    +   *   },
    +   *   "cloud-storage": {
    +   *     "states": [
    +   *       {
    +   *         "state": "ACTIVE",
    +   *       }
    +   *     ]
    +   *   }
    +   * }
    +   * 
    + * + * + * map<string, .google.cloud.networkconnectivity.v1.StateTimeline> services = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networkconnectivity.v1.StateTimeline getServicesOrThrow(java.lang.String key); + + /** + * + * + *
    +   * Output only. The Google-generated unique ID for the
    +   * `MulticloudDataTransferConfig` resource. This value is unique across all
    +   * `MulticloudDataTransferConfig` resources. If a resource is deleted and
    +   * another with the same name is created, the new resource is assigned a
    +   * different and unique ID.
    +   * 
    + * + * + * string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The uid. + */ + java.lang.String getUid(); + + /** + * + * + *
    +   * Output only. The Google-generated unique ID for the
    +   * `MulticloudDataTransferConfig` resource. This value is unique across all
    +   * `MulticloudDataTransferConfig` resources. If a resource is deleted and
    +   * another with the same name is created, the new resource is assigned a
    +   * different and unique ID.
    +   * 
    + * + * + * string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for uid. + */ + com.google.protobuf.ByteString getUidBytes(); +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/MulticloudDataTransferSupportedService.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/MulticloudDataTransferSupportedService.java new file mode 100644 index 000000000000..b3a080483849 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/MulticloudDataTransferSupportedService.java @@ -0,0 +1,1268 @@ +/* + * 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/networkconnectivity/v1/data_transfer.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkconnectivity.v1; + +/** + * + * + *
    + * A service in your project in a region that is eligible for Data Transfer
    + * Essentials configuration.
    + * 
    + * + * Protobuf type {@code google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService} + */ +public final class MulticloudDataTransferSupportedService + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService) + MulticloudDataTransferSupportedServiceOrBuilder { + private static final long serialVersionUID = 0L; + + // Use MulticloudDataTransferSupportedService.newBuilder() to construct. + private MulticloudDataTransferSupportedService( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MulticloudDataTransferSupportedService() { + name_ = ""; + serviceConfigs_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MulticloudDataTransferSupportedService(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_MulticloudDataTransferSupportedService_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_MulticloudDataTransferSupportedService_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService.class, + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Identifier. The name of the service.
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
    +   * Identifier. The name of the service.
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICE_CONFIGS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List serviceConfigs_; + + /** + * + * + *
    +   * Output only. The network service tier or regional endpoint supported for
    +   * the service.
    +   * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.ServiceConfig service_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getServiceConfigsList() { + return serviceConfigs_; + } + + /** + * + * + *
    +   * Output only. The network service tier or regional endpoint supported for
    +   * the service.
    +   * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.ServiceConfig service_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getServiceConfigsOrBuilderList() { + return serviceConfigs_; + } + + /** + * + * + *
    +   * Output only. The network service tier or regional endpoint supported for
    +   * the service.
    +   * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.ServiceConfig service_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getServiceConfigsCount() { + return serviceConfigs_.size(); + } + + /** + * + * + *
    +   * Output only. The network service tier or regional endpoint supported for
    +   * the service.
    +   * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.ServiceConfig service_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.ServiceConfig getServiceConfigs(int index) { + return serviceConfigs_.get(index); + } + + /** + * + * + *
    +   * Output only. The network service tier or regional endpoint supported for
    +   * the service.
    +   * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.ServiceConfig service_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.ServiceConfigOrBuilder getServiceConfigsOrBuilder( + int index) { + return serviceConfigs_.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_); + } + for (int i = 0; i < serviceConfigs_.size(); i++) { + output.writeMessage(2, serviceConfigs_.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_); + } + for (int i = 0; i < serviceConfigs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, serviceConfigs_.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.networkconnectivity.v1.MulticloudDataTransferSupportedService)) { + return super.equals(obj); + } + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService other = + (com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService) obj; + + if (!getName().equals(other.getName())) return false; + if (!getServiceConfigsList().equals(other.getServiceConfigsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (getServiceConfigsCount() > 0) { + hash = (37 * hash) + SERVICE_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getServiceConfigsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService + 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.networkconnectivity.v1.MulticloudDataTransferSupportedService + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService + parseFrom( + 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.networkconnectivity.v1.MulticloudDataTransferSupportedService + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService + 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.networkconnectivity.v1.MulticloudDataTransferSupportedService + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService + 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.networkconnectivity.v1.MulticloudDataTransferSupportedService + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService + 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.networkconnectivity.v1.MulticloudDataTransferSupportedService prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 service in your project in a region that is eligible for Data Transfer
    +   * Essentials configuration.
    +   * 
    + * + * Protobuf type {@code + * google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService) + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedServiceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_MulticloudDataTransferSupportedService_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_MulticloudDataTransferSupportedService_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService.class, + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService.Builder + .class); + } + + // Construct using + // com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + if (serviceConfigsBuilder_ == null) { + serviceConfigs_ = java.util.Collections.emptyList(); + } else { + serviceConfigs_ = null; + serviceConfigsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_MulticloudDataTransferSupportedService_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService + getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService build() { + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService + buildPartial() { + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService result = + new com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService result) { + if (serviceConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + serviceConfigs_ = java.util.Collections.unmodifiableList(serviceConfigs_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.serviceConfigs_ = serviceConfigs_; + } else { + result.serviceConfigs_ = serviceConfigsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService) { + return mergeFrom( + (com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService other) { + if (other + == com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (serviceConfigsBuilder_ == null) { + if (!other.serviceConfigs_.isEmpty()) { + if (serviceConfigs_.isEmpty()) { + serviceConfigs_ = other.serviceConfigs_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureServiceConfigsIsMutable(); + serviceConfigs_.addAll(other.serviceConfigs_); + } + onChanged(); + } + } else { + if (!other.serviceConfigs_.isEmpty()) { + if (serviceConfigsBuilder_.isEmpty()) { + serviceConfigsBuilder_.dispose(); + serviceConfigsBuilder_ = null; + serviceConfigs_ = other.serviceConfigs_; + bitField0_ = (bitField0_ & ~0x00000002); + serviceConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getServiceConfigsFieldBuilder() + : null; + } else { + serviceConfigsBuilder_.addAllMessages(other.serviceConfigs_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + com.google.cloud.networkconnectivity.v1.ServiceConfig m = + input.readMessage( + com.google.cloud.networkconnectivity.v1.ServiceConfig.parser(), + extensionRegistry); + if (serviceConfigsBuilder_ == null) { + ensureServiceConfigsIsMutable(); + serviceConfigs_.add(m); + } else { + serviceConfigsBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
    +     * Identifier. The name of the service.
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Identifier. The name of the service.
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Identifier. The name of the service.
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Identifier. The name of the service.
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Identifier. The name of the service.
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List serviceConfigs_ = + java.util.Collections.emptyList(); + + private void ensureServiceConfigsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + serviceConfigs_ = + new java.util.ArrayList( + serviceConfigs_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.ServiceConfig, + com.google.cloud.networkconnectivity.v1.ServiceConfig.Builder, + com.google.cloud.networkconnectivity.v1.ServiceConfigOrBuilder> + serviceConfigsBuilder_; + + /** + * + * + *
    +     * Output only. The network service tier or regional endpoint supported for
    +     * the service.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.ServiceConfig service_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getServiceConfigsList() { + if (serviceConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(serviceConfigs_); + } else { + return serviceConfigsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * Output only. The network service tier or regional endpoint supported for
    +     * the service.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.ServiceConfig service_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getServiceConfigsCount() { + if (serviceConfigsBuilder_ == null) { + return serviceConfigs_.size(); + } else { + return serviceConfigsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * Output only. The network service tier or regional endpoint supported for
    +     * the service.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.ServiceConfig service_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networkconnectivity.v1.ServiceConfig getServiceConfigs(int index) { + if (serviceConfigsBuilder_ == null) { + return serviceConfigs_.get(index); + } else { + return serviceConfigsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * Output only. The network service tier or regional endpoint supported for
    +     * the service.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.ServiceConfig service_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setServiceConfigs( + int index, com.google.cloud.networkconnectivity.v1.ServiceConfig value) { + if (serviceConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureServiceConfigsIsMutable(); + serviceConfigs_.set(index, value); + onChanged(); + } else { + serviceConfigsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Output only. The network service tier or regional endpoint supported for
    +     * the service.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.ServiceConfig service_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setServiceConfigs( + int index, com.google.cloud.networkconnectivity.v1.ServiceConfig.Builder builderForValue) { + if (serviceConfigsBuilder_ == null) { + ensureServiceConfigsIsMutable(); + serviceConfigs_.set(index, builderForValue.build()); + onChanged(); + } else { + serviceConfigsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Output only. The network service tier or regional endpoint supported for
    +     * the service.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.ServiceConfig service_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addServiceConfigs(com.google.cloud.networkconnectivity.v1.ServiceConfig value) { + if (serviceConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureServiceConfigsIsMutable(); + serviceConfigs_.add(value); + onChanged(); + } else { + serviceConfigsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * Output only. The network service tier or regional endpoint supported for
    +     * the service.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.ServiceConfig service_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addServiceConfigs( + int index, com.google.cloud.networkconnectivity.v1.ServiceConfig value) { + if (serviceConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureServiceConfigsIsMutable(); + serviceConfigs_.add(index, value); + onChanged(); + } else { + serviceConfigsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Output only. The network service tier or regional endpoint supported for
    +     * the service.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.ServiceConfig service_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addServiceConfigs( + com.google.cloud.networkconnectivity.v1.ServiceConfig.Builder builderForValue) { + if (serviceConfigsBuilder_ == null) { + ensureServiceConfigsIsMutable(); + serviceConfigs_.add(builderForValue.build()); + onChanged(); + } else { + serviceConfigsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Output only. The network service tier or regional endpoint supported for
    +     * the service.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.ServiceConfig service_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addServiceConfigs( + int index, com.google.cloud.networkconnectivity.v1.ServiceConfig.Builder builderForValue) { + if (serviceConfigsBuilder_ == null) { + ensureServiceConfigsIsMutable(); + serviceConfigs_.add(index, builderForValue.build()); + onChanged(); + } else { + serviceConfigsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Output only. The network service tier or regional endpoint supported for
    +     * the service.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.ServiceConfig service_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllServiceConfigs( + java.lang.Iterable + values) { + if (serviceConfigsBuilder_ == null) { + ensureServiceConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, serviceConfigs_); + onChanged(); + } else { + serviceConfigsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * Output only. The network service tier or regional endpoint supported for
    +     * the service.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.ServiceConfig service_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearServiceConfigs() { + if (serviceConfigsBuilder_ == null) { + serviceConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + serviceConfigsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Output only. The network service tier or regional endpoint supported for
    +     * the service.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.ServiceConfig service_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeServiceConfigs(int index) { + if (serviceConfigsBuilder_ == null) { + ensureServiceConfigsIsMutable(); + serviceConfigs_.remove(index); + onChanged(); + } else { + serviceConfigsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * Output only. The network service tier or regional endpoint supported for
    +     * the service.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.ServiceConfig service_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networkconnectivity.v1.ServiceConfig.Builder getServiceConfigsBuilder( + int index) { + return getServiceConfigsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * Output only. The network service tier or regional endpoint supported for
    +     * the service.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.ServiceConfig service_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networkconnectivity.v1.ServiceConfigOrBuilder + getServiceConfigsOrBuilder(int index) { + if (serviceConfigsBuilder_ == null) { + return serviceConfigs_.get(index); + } else { + return serviceConfigsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * Output only. The network service tier or regional endpoint supported for
    +     * the service.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.ServiceConfig service_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getServiceConfigsOrBuilderList() { + if (serviceConfigsBuilder_ != null) { + return serviceConfigsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(serviceConfigs_); + } + } + + /** + * + * + *
    +     * Output only. The network service tier or regional endpoint supported for
    +     * the service.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.ServiceConfig service_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networkconnectivity.v1.ServiceConfig.Builder + addServiceConfigsBuilder() { + return getServiceConfigsFieldBuilder() + .addBuilder(com.google.cloud.networkconnectivity.v1.ServiceConfig.getDefaultInstance()); + } + + /** + * + * + *
    +     * Output only. The network service tier or regional endpoint supported for
    +     * the service.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.ServiceConfig service_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networkconnectivity.v1.ServiceConfig.Builder addServiceConfigsBuilder( + int index) { + return getServiceConfigsFieldBuilder() + .addBuilder( + index, com.google.cloud.networkconnectivity.v1.ServiceConfig.getDefaultInstance()); + } + + /** + * + * + *
    +     * Output only. The network service tier or regional endpoint supported for
    +     * the service.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.ServiceConfig service_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getServiceConfigsBuilderList() { + return getServiceConfigsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.ServiceConfig, + com.google.cloud.networkconnectivity.v1.ServiceConfig.Builder, + com.google.cloud.networkconnectivity.v1.ServiceConfigOrBuilder> + getServiceConfigsFieldBuilder() { + if (serviceConfigsBuilder_ == null) { + serviceConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.ServiceConfig, + com.google.cloud.networkconnectivity.v1.ServiceConfig.Builder, + com.google.cloud.networkconnectivity.v1.ServiceConfigOrBuilder>( + serviceConfigs_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + serviceConfigs_ = null; + } + return serviceConfigsBuilder_; + } + + @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.networkconnectivity.v1.MulticloudDataTransferSupportedService) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService) + private static final com.google.cloud.networkconnectivity.v1 + .MulticloudDataTransferSupportedService + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService(); + } + + public static com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MulticloudDataTransferSupportedService parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.networkconnectivity.v1.MulticloudDataTransferSupportedService + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/MulticloudDataTransferSupportedServiceName.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/MulticloudDataTransferSupportedServiceName.java new file mode 100644 index 000000000000..ccc5f2a7ad1e --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/MulticloudDataTransferSupportedServiceName.java @@ -0,0 +1,253 @@ +/* + * 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.networkconnectivity.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class MulticloudDataTransferSupportedServiceName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_MULTICLOUD_DATA_TRANSFER_SUPPORTED_SERVICE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/multicloudDataTransferSupportedServices/{multicloud_data_transfer_supported_service}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String multicloudDataTransferSupportedService; + + @Deprecated + protected MulticloudDataTransferSupportedServiceName() { + project = null; + location = null; + multicloudDataTransferSupportedService = null; + } + + private MulticloudDataTransferSupportedServiceName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + multicloudDataTransferSupportedService = + Preconditions.checkNotNull(builder.getMulticloudDataTransferSupportedService()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getMulticloudDataTransferSupportedService() { + return multicloudDataTransferSupportedService; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static MulticloudDataTransferSupportedServiceName of( + String project, String location, String multicloudDataTransferSupportedService) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setMulticloudDataTransferSupportedService(multicloudDataTransferSupportedService) + .build(); + } + + public static String format( + String project, String location, String multicloudDataTransferSupportedService) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setMulticloudDataTransferSupportedService(multicloudDataTransferSupportedService) + .build() + .toString(); + } + + public static MulticloudDataTransferSupportedServiceName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_MULTICLOUD_DATA_TRANSFER_SUPPORTED_SERVICE.validatedMatch( + formattedString, + "MulticloudDataTransferSupportedServiceName.parse: formattedString not in valid" + + " format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("multicloud_data_transfer_supported_service")); + } + + public static List parseList( + List formattedStrings) { + List list = + new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (MulticloudDataTransferSupportedServiceName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_MULTICLOUD_DATA_TRANSFER_SUPPORTED_SERVICE.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (multicloudDataTransferSupportedService != null) { + fieldMapBuilder.put( + "multicloud_data_transfer_supported_service", + multicloudDataTransferSupportedService); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_MULTICLOUD_DATA_TRANSFER_SUPPORTED_SERVICE.instantiate( + "project", + project, + "location", + location, + "multicloud_data_transfer_supported_service", + multicloudDataTransferSupportedService); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + MulticloudDataTransferSupportedServiceName that = + ((MulticloudDataTransferSupportedServiceName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals( + this.multicloudDataTransferSupportedService, + that.multicloudDataTransferSupportedService); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(multicloudDataTransferSupportedService); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/multicloudDataTransferSupportedServices/{multicloud_data_transfer_supported_service}. + */ + public static class Builder { + private String project; + private String location; + private String multicloudDataTransferSupportedService; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getMulticloudDataTransferSupportedService() { + return multicloudDataTransferSupportedService; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setMulticloudDataTransferSupportedService( + String multicloudDataTransferSupportedService) { + this.multicloudDataTransferSupportedService = multicloudDataTransferSupportedService; + return this; + } + + private Builder( + MulticloudDataTransferSupportedServiceName multicloudDataTransferSupportedServiceName) { + this.project = multicloudDataTransferSupportedServiceName.project; + this.location = multicloudDataTransferSupportedServiceName.location; + this.multicloudDataTransferSupportedService = + multicloudDataTransferSupportedServiceName.multicloudDataTransferSupportedService; + } + + public MulticloudDataTransferSupportedServiceName build() { + return new MulticloudDataTransferSupportedServiceName(this); + } + } +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/MulticloudDataTransferSupportedServiceOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/MulticloudDataTransferSupportedServiceOrBuilder.java new file mode 100644 index 000000000000..a730cbbb9ced --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/MulticloudDataTransferSupportedServiceOrBuilder.java @@ -0,0 +1,124 @@ +/* + * 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/networkconnectivity/v1/data_transfer.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkconnectivity.v1; + +public interface MulticloudDataTransferSupportedServiceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Identifier. The name of the service.
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Identifier. The name of the service.
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Output only. The network service tier or regional endpoint supported for
    +   * the service.
    +   * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.ServiceConfig service_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getServiceConfigsList(); + + /** + * + * + *
    +   * Output only. The network service tier or regional endpoint supported for
    +   * the service.
    +   * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.ServiceConfig service_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.networkconnectivity.v1.ServiceConfig getServiceConfigs(int index); + + /** + * + * + *
    +   * Output only. The network service tier or regional endpoint supported for
    +   * the service.
    +   * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.ServiceConfig service_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getServiceConfigsCount(); + + /** + * + * + *
    +   * Output only. The network service tier or regional endpoint supported for
    +   * the service.
    +   * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.ServiceConfig service_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getServiceConfigsOrBuilderList(); + + /** + * + * + *
    +   * Output only. The network service tier or regional endpoint supported for
    +   * the service.
    +   * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.ServiceConfig service_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.networkconnectivity.v1.ServiceConfigOrBuilder getServiceConfigsOrBuilder( + int index); +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ServiceConfig.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ServiceConfig.java new file mode 100644 index 000000000000..a5f2319b3f3b --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ServiceConfig.java @@ -0,0 +1,1153 @@ +/* + * 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/networkconnectivity/v1/data_transfer.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkconnectivity.v1; + +/** + * + * + *
    + * Specifies eligibility information for the service.
    + * 
    + * + * Protobuf type {@code google.cloud.networkconnectivity.v1.ServiceConfig} + */ +public final class ServiceConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.ServiceConfig) + ServiceConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ServiceConfig.newBuilder() to construct. + private ServiceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ServiceConfig() { + eligibilityCriteria_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ServiceConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_ServiceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_ServiceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.ServiceConfig.class, + com.google.cloud.networkconnectivity.v1.ServiceConfig.Builder.class); + } + + /** + * + * + *
    +   * The eligibility information for the service.
    +   * 
    + * + * Protobuf enum {@code google.cloud.networkconnectivity.v1.ServiceConfig.EligibilityCriteria} + */ + public enum EligibilityCriteria implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * The service is not eligible for Data Transfer Essentials configuration.
    +     * This is the default case.
    +     * 
    + * + * ELIGIBILITY_CRITERIA_UNSPECIFIED = 0; + */ + ELIGIBILITY_CRITERIA_UNSPECIFIED(0), + /** + * + * + *
    +     * The service is eligible for Data Transfer Essentials configuration only
    +     * for Premium Tier.
    +     * 
    + * + * NETWORK_SERVICE_TIER_PREMIUM_ONLY = 1; + */ + NETWORK_SERVICE_TIER_PREMIUM_ONLY(1), + /** + * + * + *
    +     * The service is eligible for Data Transfer Essentials configuration only
    +     * for Standard Tier.
    +     * 
    + * + * NETWORK_SERVICE_TIER_STANDARD_ONLY = 2; + */ + NETWORK_SERVICE_TIER_STANDARD_ONLY(2), + /** + * + * + *
    +     * The service is eligible for Data Transfer Essentials configuration only
    +     * for the regional endpoint.
    +     * 
    + * + * REQUEST_ENDPOINT_REGIONAL_ENDPOINT_ONLY = 3; + */ + REQUEST_ENDPOINT_REGIONAL_ENDPOINT_ONLY(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * The service is not eligible for Data Transfer Essentials configuration.
    +     * This is the default case.
    +     * 
    + * + * ELIGIBILITY_CRITERIA_UNSPECIFIED = 0; + */ + public static final int ELIGIBILITY_CRITERIA_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +     * The service is eligible for Data Transfer Essentials configuration only
    +     * for Premium Tier.
    +     * 
    + * + * NETWORK_SERVICE_TIER_PREMIUM_ONLY = 1; + */ + public static final int NETWORK_SERVICE_TIER_PREMIUM_ONLY_VALUE = 1; + + /** + * + * + *
    +     * The service is eligible for Data Transfer Essentials configuration only
    +     * for Standard Tier.
    +     * 
    + * + * NETWORK_SERVICE_TIER_STANDARD_ONLY = 2; + */ + public static final int NETWORK_SERVICE_TIER_STANDARD_ONLY_VALUE = 2; + + /** + * + * + *
    +     * The service is eligible for Data Transfer Essentials configuration only
    +     * for the regional endpoint.
    +     * 
    + * + * REQUEST_ENDPOINT_REGIONAL_ENDPOINT_ONLY = 3; + */ + public static final int REQUEST_ENDPOINT_REGIONAL_ENDPOINT_ONLY_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 EligibilityCriteria 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 EligibilityCriteria forNumber(int value) { + switch (value) { + case 0: + return ELIGIBILITY_CRITERIA_UNSPECIFIED; + case 1: + return NETWORK_SERVICE_TIER_PREMIUM_ONLY; + case 2: + return NETWORK_SERVICE_TIER_STANDARD_ONLY; + case 3: + return REQUEST_ENDPOINT_REGIONAL_ENDPOINT_ONLY; + 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 EligibilityCriteria findValueByNumber(int number) { + return EligibilityCriteria.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.networkconnectivity.v1.ServiceConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final EligibilityCriteria[] VALUES = values(); + + public static EligibilityCriteria 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 EligibilityCriteria(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networkconnectivity.v1.ServiceConfig.EligibilityCriteria) + } + + private int bitField0_; + public static final int ELIGIBILITY_CRITERIA_FIELD_NUMBER = 1; + private int eligibilityCriteria_ = 0; + + /** + * + * + *
    +   * Output only. The eligibility criteria for the service.
    +   * 
    + * + * + * .google.cloud.networkconnectivity.v1.ServiceConfig.EligibilityCriteria eligibility_criteria = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for eligibilityCriteria. + */ + @java.lang.Override + public int getEligibilityCriteriaValue() { + return eligibilityCriteria_; + } + + /** + * + * + *
    +   * Output only. The eligibility criteria for the service.
    +   * 
    + * + * + * .google.cloud.networkconnectivity.v1.ServiceConfig.EligibilityCriteria eligibility_criteria = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The eligibilityCriteria. + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.ServiceConfig.EligibilityCriteria + getEligibilityCriteria() { + com.google.cloud.networkconnectivity.v1.ServiceConfig.EligibilityCriteria result = + com.google.cloud.networkconnectivity.v1.ServiceConfig.EligibilityCriteria.forNumber( + eligibilityCriteria_); + return result == null + ? com.google.cloud.networkconnectivity.v1.ServiceConfig.EligibilityCriteria.UNRECOGNIZED + : result; + } + + public static final int SUPPORT_END_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp supportEndTime_; + + /** + * + * + *
    +   * Output only. The end time for eligibility criteria support. If not
    +   * specified, no planned end time is set.
    +   * 
    + * + * + * .google.protobuf.Timestamp support_end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the supportEndTime field is set. + */ + @java.lang.Override + public boolean hasSupportEndTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Output only. The end time for eligibility criteria support. If not
    +   * specified, no planned end time is set.
    +   * 
    + * + * + * .google.protobuf.Timestamp support_end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The supportEndTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getSupportEndTime() { + return supportEndTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : supportEndTime_; + } + + /** + * + * + *
    +   * Output only. The end time for eligibility criteria support. If not
    +   * specified, no planned end time is set.
    +   * 
    + * + * + * .google.protobuf.Timestamp support_end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getSupportEndTimeOrBuilder() { + return supportEndTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : supportEndTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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 (eligibilityCriteria_ + != com.google.cloud.networkconnectivity.v1.ServiceConfig.EligibilityCriteria + .ELIGIBILITY_CRITERIA_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, eligibilityCriteria_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getSupportEndTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (eligibilityCriteria_ + != com.google.cloud.networkconnectivity.v1.ServiceConfig.EligibilityCriteria + .ELIGIBILITY_CRITERIA_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, eligibilityCriteria_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSupportEndTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.networkconnectivity.v1.ServiceConfig)) { + return super.equals(obj); + } + com.google.cloud.networkconnectivity.v1.ServiceConfig other = + (com.google.cloud.networkconnectivity.v1.ServiceConfig) obj; + + if (eligibilityCriteria_ != other.eligibilityCriteria_) return false; + if (hasSupportEndTime() != other.hasSupportEndTime()) return false; + if (hasSupportEndTime()) { + if (!getSupportEndTime().equals(other.getSupportEndTime())) 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) + ELIGIBILITY_CRITERIA_FIELD_NUMBER; + hash = (53 * hash) + eligibilityCriteria_; + if (hasSupportEndTime()) { + hash = (37 * hash) + SUPPORT_END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getSupportEndTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkconnectivity.v1.ServiceConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.ServiceConfig 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.networkconnectivity.v1.ServiceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.ServiceConfig parseFrom( + 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.networkconnectivity.v1.ServiceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.ServiceConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkconnectivity.v1.ServiceConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.ServiceConfig 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.networkconnectivity.v1.ServiceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.ServiceConfig 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.networkconnectivity.v1.ServiceConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.ServiceConfig 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.networkconnectivity.v1.ServiceConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 eligibility information for the service.
    +   * 
    + * + * Protobuf type {@code google.cloud.networkconnectivity.v1.ServiceConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.ServiceConfig) + com.google.cloud.networkconnectivity.v1.ServiceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_ServiceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_ServiceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.ServiceConfig.class, + com.google.cloud.networkconnectivity.v1.ServiceConfig.Builder.class); + } + + // Construct using com.google.cloud.networkconnectivity.v1.ServiceConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSupportEndTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + eligibilityCriteria_ = 0; + supportEndTime_ = null; + if (supportEndTimeBuilder_ != null) { + supportEndTimeBuilder_.dispose(); + supportEndTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_ServiceConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.ServiceConfig getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.ServiceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.ServiceConfig build() { + com.google.cloud.networkconnectivity.v1.ServiceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.ServiceConfig buildPartial() { + com.google.cloud.networkconnectivity.v1.ServiceConfig result = + new com.google.cloud.networkconnectivity.v1.ServiceConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.networkconnectivity.v1.ServiceConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.eligibilityCriteria_ = eligibilityCriteria_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.supportEndTime_ = + supportEndTimeBuilder_ == null ? supportEndTime_ : supportEndTimeBuilder_.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.networkconnectivity.v1.ServiceConfig) { + return mergeFrom((com.google.cloud.networkconnectivity.v1.ServiceConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.ServiceConfig other) { + if (other == com.google.cloud.networkconnectivity.v1.ServiceConfig.getDefaultInstance()) + return this; + if (other.eligibilityCriteria_ != 0) { + setEligibilityCriteriaValue(other.getEligibilityCriteriaValue()); + } + if (other.hasSupportEndTime()) { + mergeSupportEndTime(other.getSupportEndTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + eligibilityCriteria_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage(getSupportEndTimeFieldBuilder().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 int eligibilityCriteria_ = 0; + + /** + * + * + *
    +     * Output only. The eligibility criteria for the service.
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.ServiceConfig.EligibilityCriteria eligibility_criteria = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for eligibilityCriteria. + */ + @java.lang.Override + public int getEligibilityCriteriaValue() { + return eligibilityCriteria_; + } + + /** + * + * + *
    +     * Output only. The eligibility criteria for the service.
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.ServiceConfig.EligibilityCriteria eligibility_criteria = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for eligibilityCriteria to set. + * @return This builder for chaining. + */ + public Builder setEligibilityCriteriaValue(int value) { + eligibilityCriteria_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The eligibility criteria for the service.
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.ServiceConfig.EligibilityCriteria eligibility_criteria = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The eligibilityCriteria. + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.ServiceConfig.EligibilityCriteria + getEligibilityCriteria() { + com.google.cloud.networkconnectivity.v1.ServiceConfig.EligibilityCriteria result = + com.google.cloud.networkconnectivity.v1.ServiceConfig.EligibilityCriteria.forNumber( + eligibilityCriteria_); + return result == null + ? com.google.cloud.networkconnectivity.v1.ServiceConfig.EligibilityCriteria.UNRECOGNIZED + : result; + } + + /** + * + * + *
    +     * Output only. The eligibility criteria for the service.
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.ServiceConfig.EligibilityCriteria eligibility_criteria = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The eligibilityCriteria to set. + * @return This builder for chaining. + */ + public Builder setEligibilityCriteria( + com.google.cloud.networkconnectivity.v1.ServiceConfig.EligibilityCriteria value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + eligibilityCriteria_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The eligibility criteria for the service.
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.ServiceConfig.EligibilityCriteria eligibility_criteria = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearEligibilityCriteria() { + bitField0_ = (bitField0_ & ~0x00000001); + eligibilityCriteria_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp supportEndTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + supportEndTimeBuilder_; + + /** + * + * + *
    +     * Output only. The end time for eligibility criteria support. If not
    +     * specified, no planned end time is set.
    +     * 
    + * + * + * .google.protobuf.Timestamp support_end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the supportEndTime field is set. + */ + public boolean hasSupportEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Output only. The end time for eligibility criteria support. If not
    +     * specified, no planned end time is set.
    +     * 
    + * + * + * .google.protobuf.Timestamp support_end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The supportEndTime. + */ + public com.google.protobuf.Timestamp getSupportEndTime() { + if (supportEndTimeBuilder_ == null) { + return supportEndTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : supportEndTime_; + } else { + return supportEndTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Output only. The end time for eligibility criteria support. If not
    +     * specified, no planned end time is set.
    +     * 
    + * + * + * .google.protobuf.Timestamp support_end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSupportEndTime(com.google.protobuf.Timestamp value) { + if (supportEndTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + supportEndTime_ = value; + } else { + supportEndTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The end time for eligibility criteria support. If not
    +     * specified, no planned end time is set.
    +     * 
    + * + * + * .google.protobuf.Timestamp support_end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSupportEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (supportEndTimeBuilder_ == null) { + supportEndTime_ = builderForValue.build(); + } else { + supportEndTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The end time for eligibility criteria support. If not
    +     * specified, no planned end time is set.
    +     * 
    + * + * + * .google.protobuf.Timestamp support_end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeSupportEndTime(com.google.protobuf.Timestamp value) { + if (supportEndTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && supportEndTime_ != null + && supportEndTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getSupportEndTimeBuilder().mergeFrom(value); + } else { + supportEndTime_ = value; + } + } else { + supportEndTimeBuilder_.mergeFrom(value); + } + if (supportEndTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Output only. The end time for eligibility criteria support. If not
    +     * specified, no planned end time is set.
    +     * 
    + * + * + * .google.protobuf.Timestamp support_end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearSupportEndTime() { + bitField0_ = (bitField0_ & ~0x00000002); + supportEndTime_ = null; + if (supportEndTimeBuilder_ != null) { + supportEndTimeBuilder_.dispose(); + supportEndTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The end time for eligibility criteria support. If not
    +     * specified, no planned end time is set.
    +     * 
    + * + * + * .google.protobuf.Timestamp support_end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getSupportEndTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getSupportEndTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Output only. The end time for eligibility criteria support. If not
    +     * specified, no planned end time is set.
    +     * 
    + * + * + * .google.protobuf.Timestamp support_end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getSupportEndTimeOrBuilder() { + if (supportEndTimeBuilder_ != null) { + return supportEndTimeBuilder_.getMessageOrBuilder(); + } else { + return supportEndTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : supportEndTime_; + } + } + + /** + * + * + *
    +     * Output only. The end time for eligibility criteria support. If not
    +     * specified, no planned end time is set.
    +     * 
    + * + * + * .google.protobuf.Timestamp support_end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getSupportEndTimeFieldBuilder() { + if (supportEndTimeBuilder_ == null) { + supportEndTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getSupportEndTime(), getParentForChildren(), isClean()); + supportEndTime_ = null; + } + return supportEndTimeBuilder_; + } + + @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.networkconnectivity.v1.ServiceConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.ServiceConfig) + private static final com.google.cloud.networkconnectivity.v1.ServiceConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.ServiceConfig(); + } + + public static com.google.cloud.networkconnectivity.v1.ServiceConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServiceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.networkconnectivity.v1.ServiceConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ServiceConfigOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ServiceConfigOrBuilder.java new file mode 100644 index 000000000000..88a480265b63 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ServiceConfigOrBuilder.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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkconnectivity/v1/data_transfer.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkconnectivity.v1; + +public interface ServiceConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.ServiceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Output only. The eligibility criteria for the service.
    +   * 
    + * + * + * .google.cloud.networkconnectivity.v1.ServiceConfig.EligibilityCriteria eligibility_criteria = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for eligibilityCriteria. + */ + int getEligibilityCriteriaValue(); + + /** + * + * + *
    +   * Output only. The eligibility criteria for the service.
    +   * 
    + * + * + * .google.cloud.networkconnectivity.v1.ServiceConfig.EligibilityCriteria eligibility_criteria = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The eligibilityCriteria. + */ + com.google.cloud.networkconnectivity.v1.ServiceConfig.EligibilityCriteria + getEligibilityCriteria(); + + /** + * + * + *
    +   * Output only. The end time for eligibility criteria support. If not
    +   * specified, no planned end time is set.
    +   * 
    + * + * + * .google.protobuf.Timestamp support_end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the supportEndTime field is set. + */ + boolean hasSupportEndTime(); + + /** + * + * + *
    +   * Output only. The end time for eligibility criteria support. If not
    +   * specified, no planned end time is set.
    +   * 
    + * + * + * .google.protobuf.Timestamp support_end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The supportEndTime. + */ + com.google.protobuf.Timestamp getSupportEndTime(); + + /** + * + * + *
    +   * Output only. The end time for eligibility criteria support. If not
    +   * specified, no planned end time is set.
    +   * 
    + * + * + * .google.protobuf.Timestamp support_end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getSupportEndTimeOrBuilder(); +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/StateTimeline.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/StateTimeline.java new file mode 100644 index 000000000000..bff06bc25713 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/StateTimeline.java @@ -0,0 +1,2349 @@ +/* + * 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/networkconnectivity/v1/data_transfer.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkconnectivity.v1; + +/** + * + * + *
    + * The timeline of the pending states for a resource.
    + * 
    + * + * Protobuf type {@code google.cloud.networkconnectivity.v1.StateTimeline} + */ +public final class StateTimeline extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.StateTimeline) + StateTimelineOrBuilder { + private static final long serialVersionUID = 0L; + + // Use StateTimeline.newBuilder() to construct. + private StateTimeline(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StateTimeline() { + states_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StateTimeline(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_StateTimeline_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_StateTimeline_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.StateTimeline.class, + com.google.cloud.networkconnectivity.v1.StateTimeline.Builder.class); + } + + public interface StateMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * Output only. The state of the resource.
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
    +     * Output only. The state of the resource.
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata.State getState(); + + /** + * + * + *
    +     * Output only. Accompanies only the transient states, which include
    +     * `ADDING`, `DELETING`, and `SUSPENDING`, to denote the time until which
    +     * the transient state of the resource will be effective. For instance, if
    +     * the state is `ADDING`, this field shows the time when the resource state
    +     * transitions to `ACTIVE`.
    +     * 
    + * + * + * .google.protobuf.Timestamp effective_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the effectiveTime field is set. + */ + boolean hasEffectiveTime(); + + /** + * + * + *
    +     * Output only. Accompanies only the transient states, which include
    +     * `ADDING`, `DELETING`, and `SUSPENDING`, to denote the time until which
    +     * the transient state of the resource will be effective. For instance, if
    +     * the state is `ADDING`, this field shows the time when the resource state
    +     * transitions to `ACTIVE`.
    +     * 
    + * + * + * .google.protobuf.Timestamp effective_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The effectiveTime. + */ + com.google.protobuf.Timestamp getEffectiveTime(); + + /** + * + * + *
    +     * Output only. Accompanies only the transient states, which include
    +     * `ADDING`, `DELETING`, and `SUSPENDING`, to denote the time until which
    +     * the transient state of the resource will be effective. For instance, if
    +     * the state is `ADDING`, this field shows the time when the resource state
    +     * transitions to `ACTIVE`.
    +     * 
    + * + * + * .google.protobuf.Timestamp effective_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getEffectiveTimeOrBuilder(); + } + + /** + * + * + *
    +   * The state and activation time details of the resource state.
    +   * 
    + * + * Protobuf type {@code google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata} + */ + public static final class StateMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata) + StateMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + // Use StateMetadata.newBuilder() to construct. + private StateMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StateMetadata() { + state_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StateMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_StateTimeline_StateMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_StateTimeline_StateMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata.class, + com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata.Builder.class); + } + + /** + * + * + *
    +     * The state of the resource.
    +     * 
    + * + * Protobuf enum {@code google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +       * An invalid state, which is the default case.
    +       * 
    + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
    +       * The resource is being added.
    +       * 
    + * + * ADDING = 1; + */ + ADDING(1), + /** + * + * + *
    +       * The resource is in use.
    +       * 
    + * + * ACTIVE = 2; + */ + ACTIVE(2), + /** + * + * + *
    +       * The resource is being deleted.
    +       * 
    + * + * DELETING = 3; + */ + DELETING(3), + /** + * + * + *
    +       * The resource is being suspended.
    +       * 
    + * + * SUSPENDING = 4; + */ + SUSPENDING(4), + /** + * + * + *
    +       * The resource is suspended and not in use.
    +       * 
    + * + * SUSPENDED = 5; + */ + SUSPENDED(5), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +       * An invalid state, which is the default case.
    +       * 
    + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +       * The resource is being added.
    +       * 
    + * + * ADDING = 1; + */ + public static final int ADDING_VALUE = 1; + + /** + * + * + *
    +       * The resource is in use.
    +       * 
    + * + * ACTIVE = 2; + */ + public static final int ACTIVE_VALUE = 2; + + /** + * + * + *
    +       * The resource is being deleted.
    +       * 
    + * + * DELETING = 3; + */ + public static final int DELETING_VALUE = 3; + + /** + * + * + *
    +       * The resource is being suspended.
    +       * 
    + * + * SUSPENDING = 4; + */ + public static final int SUSPENDING_VALUE = 4; + + /** + * + * + *
    +       * The resource is suspended and not in use.
    +       * 
    + * + * SUSPENDED = 5; + */ + public static final int SUSPENDED_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ADDING; + case 2: + return ACTIVE; + case 3: + return DELETING; + case 4: + return SUSPENDING; + case 5: + return SUSPENDED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata.State) + } + + private int bitField0_; + public static final int STATE_FIELD_NUMBER = 1; + private int state_ = 0; + + /** + * + * + *
    +     * Output only. The state of the resource.
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
    +     * Output only. The state of the resource.
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata.State getState() { + com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata.State result = + com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata.State.forNumber( + state_); + return result == null + ? com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata.State.UNRECOGNIZED + : result; + } + + public static final int EFFECTIVE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp effectiveTime_; + + /** + * + * + *
    +     * Output only. Accompanies only the transient states, which include
    +     * `ADDING`, `DELETING`, and `SUSPENDING`, to denote the time until which
    +     * the transient state of the resource will be effective. For instance, if
    +     * the state is `ADDING`, this field shows the time when the resource state
    +     * transitions to `ACTIVE`.
    +     * 
    + * + * + * .google.protobuf.Timestamp effective_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the effectiveTime field is set. + */ + @java.lang.Override + public boolean hasEffectiveTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +     * Output only. Accompanies only the transient states, which include
    +     * `ADDING`, `DELETING`, and `SUSPENDING`, to denote the time until which
    +     * the transient state of the resource will be effective. For instance, if
    +     * the state is `ADDING`, this field shows the time when the resource state
    +     * transitions to `ACTIVE`.
    +     * 
    + * + * + * .google.protobuf.Timestamp effective_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The effectiveTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEffectiveTime() { + return effectiveTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : effectiveTime_; + } + + /** + * + * + *
    +     * Output only. Accompanies only the transient states, which include
    +     * `ADDING`, `DELETING`, and `SUSPENDING`, to denote the time until which
    +     * the transient state of the resource will be effective. For instance, if
    +     * the state is `ADDING`, this field shows the time when the resource state
    +     * transitions to `ACTIVE`.
    +     * 
    + * + * + * .google.protobuf.Timestamp effective_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEffectiveTimeOrBuilder() { + return effectiveTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : effectiveTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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.networkconnectivity.v1.StateTimeline.StateMetadata.State + .STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, state_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getEffectiveTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (state_ + != com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata.State + .STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEffectiveTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.networkconnectivity.v1.StateTimeline.StateMetadata)) { + return super.equals(obj); + } + com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata other = + (com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata) obj; + + if (state_ != other.state_) return false; + if (hasEffectiveTime() != other.hasEffectiveTime()) return false; + if (hasEffectiveTime()) { + if (!getEffectiveTime().equals(other.getEffectiveTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (hasEffectiveTime()) { + hash = (37 * hash) + EFFECTIVE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEffectiveTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata 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.networkconnectivity.v1.StateTimeline.StateMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata parseFrom( + 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.networkconnectivity.v1.StateTimeline.StateMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata 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.networkconnectivity.v1.StateTimeline.StateMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata + 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.networkconnectivity.v1.StateTimeline.StateMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata 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.networkconnectivity.v1.StateTimeline.StateMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 state and activation time details of the resource state.
    +     * 
    + * + * Protobuf type {@code google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata) + com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_StateTimeline_StateMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_StateTimeline_StateMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata.class, + com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata.Builder.class); + } + + // Construct using + // com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getEffectiveTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + state_ = 0; + effectiveTime_ = null; + if (effectiveTimeBuilder_ != null) { + effectiveTimeBuilder_.dispose(); + effectiveTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_StateTimeline_StateMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata + getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata build() { + com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata buildPartial() { + com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata result = + new com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.state_ = state_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.effectiveTime_ = + effectiveTimeBuilder_ == null ? effectiveTime_ : effectiveTimeBuilder_.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.networkconnectivity.v1.StateTimeline.StateMetadata) { + return mergeFrom( + (com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata other) { + if (other + == com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata + .getDefaultInstance()) return this; + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.hasEffectiveTime()) { + mergeEffectiveTime(other.getEffectiveTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage(getEffectiveTimeFieldBuilder().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 int state_ = 0; + + /** + * + * + *
    +       * Output only. The state of the resource.
    +       * 
    + * + * + * .google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
    +       * Output only. The state of the resource.
    +       * 
    + * + * + * .google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Output only. The state of the resource.
    +       * 
    + * + * + * .google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata.State getState() { + com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata.State result = + com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata.State.forNumber( + state_); + return result == null + ? com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
    +       * Output only. The state of the resource.
    +       * 
    + * + * + * .google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState( + com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +       * Output only. The state of the resource.
    +       * 
    + * + * + * .google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000001); + state_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp effectiveTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + effectiveTimeBuilder_; + + /** + * + * + *
    +       * Output only. Accompanies only the transient states, which include
    +       * `ADDING`, `DELETING`, and `SUSPENDING`, to denote the time until which
    +       * the transient state of the resource will be effective. For instance, if
    +       * the state is `ADDING`, this field shows the time when the resource state
    +       * transitions to `ACTIVE`.
    +       * 
    + * + * + * .google.protobuf.Timestamp effective_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the effectiveTime field is set. + */ + public boolean hasEffectiveTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +       * Output only. Accompanies only the transient states, which include
    +       * `ADDING`, `DELETING`, and `SUSPENDING`, to denote the time until which
    +       * the transient state of the resource will be effective. For instance, if
    +       * the state is `ADDING`, this field shows the time when the resource state
    +       * transitions to `ACTIVE`.
    +       * 
    + * + * + * .google.protobuf.Timestamp effective_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The effectiveTime. + */ + public com.google.protobuf.Timestamp getEffectiveTime() { + if (effectiveTimeBuilder_ == null) { + return effectiveTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : effectiveTime_; + } else { + return effectiveTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
    +       * Output only. Accompanies only the transient states, which include
    +       * `ADDING`, `DELETING`, and `SUSPENDING`, to denote the time until which
    +       * the transient state of the resource will be effective. For instance, if
    +       * the state is `ADDING`, this field shows the time when the resource state
    +       * transitions to `ACTIVE`.
    +       * 
    + * + * + * .google.protobuf.Timestamp effective_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEffectiveTime(com.google.protobuf.Timestamp value) { + if (effectiveTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + effectiveTime_ = value; + } else { + effectiveTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Output only. Accompanies only the transient states, which include
    +       * `ADDING`, `DELETING`, and `SUSPENDING`, to denote the time until which
    +       * the transient state of the resource will be effective. For instance, if
    +       * the state is `ADDING`, this field shows the time when the resource state
    +       * transitions to `ACTIVE`.
    +       * 
    + * + * + * .google.protobuf.Timestamp effective_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEffectiveTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (effectiveTimeBuilder_ == null) { + effectiveTime_ = builderForValue.build(); + } else { + effectiveTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Output only. Accompanies only the transient states, which include
    +       * `ADDING`, `DELETING`, and `SUSPENDING`, to denote the time until which
    +       * the transient state of the resource will be effective. For instance, if
    +       * the state is `ADDING`, this field shows the time when the resource state
    +       * transitions to `ACTIVE`.
    +       * 
    + * + * + * .google.protobuf.Timestamp effective_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEffectiveTime(com.google.protobuf.Timestamp value) { + if (effectiveTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && effectiveTime_ != null + && effectiveTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEffectiveTimeBuilder().mergeFrom(value); + } else { + effectiveTime_ = value; + } + } else { + effectiveTimeBuilder_.mergeFrom(value); + } + if (effectiveTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
    +       * Output only. Accompanies only the transient states, which include
    +       * `ADDING`, `DELETING`, and `SUSPENDING`, to denote the time until which
    +       * the transient state of the resource will be effective. For instance, if
    +       * the state is `ADDING`, this field shows the time when the resource state
    +       * transitions to `ACTIVE`.
    +       * 
    + * + * + * .google.protobuf.Timestamp effective_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEffectiveTime() { + bitField0_ = (bitField0_ & ~0x00000002); + effectiveTime_ = null; + if (effectiveTimeBuilder_ != null) { + effectiveTimeBuilder_.dispose(); + effectiveTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +       * Output only. Accompanies only the transient states, which include
    +       * `ADDING`, `DELETING`, and `SUSPENDING`, to denote the time until which
    +       * the transient state of the resource will be effective. For instance, if
    +       * the state is `ADDING`, this field shows the time when the resource state
    +       * transitions to `ACTIVE`.
    +       * 
    + * + * + * .google.protobuf.Timestamp effective_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getEffectiveTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getEffectiveTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +       * Output only. Accompanies only the transient states, which include
    +       * `ADDING`, `DELETING`, and `SUSPENDING`, to denote the time until which
    +       * the transient state of the resource will be effective. For instance, if
    +       * the state is `ADDING`, this field shows the time when the resource state
    +       * transitions to `ACTIVE`.
    +       * 
    + * + * + * .google.protobuf.Timestamp effective_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEffectiveTimeOrBuilder() { + if (effectiveTimeBuilder_ != null) { + return effectiveTimeBuilder_.getMessageOrBuilder(); + } else { + return effectiveTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : effectiveTime_; + } + } + + /** + * + * + *
    +       * Output only. Accompanies only the transient states, which include
    +       * `ADDING`, `DELETING`, and `SUSPENDING`, to denote the time until which
    +       * the transient state of the resource will be effective. For instance, if
    +       * the state is `ADDING`, this field shows the time when the resource state
    +       * transitions to `ACTIVE`.
    +       * 
    + * + * + * .google.protobuf.Timestamp effective_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEffectiveTimeFieldBuilder() { + if (effectiveTimeBuilder_ == null) { + effectiveTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEffectiveTime(), getParentForChildren(), isClean()); + effectiveTime_ = null; + } + return effectiveTimeBuilder_; + } + + @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.networkconnectivity.v1.StateTimeline.StateMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata) + private static final com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata(); + } + + public static com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StateMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.networkconnectivity.v1.StateTimeline.StateMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int STATES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + states_; + + /** + * + * + *
    +   * Output only. The state and activation time details of the resource state.
    +   * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getStatesList() { + return states_; + } + + /** + * + * + *
    +   * Output only. The state and activation time details of the resource state.
    +   * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadataOrBuilder> + getStatesOrBuilderList() { + return states_; + } + + /** + * + * + *
    +   * Output only. The state and activation time details of the resource state.
    +   * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getStatesCount() { + return states_.size(); + } + + /** + * + * + *
    +   * Output only. The state and activation time details of the resource state.
    +   * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata getStates(int index) { + return states_.get(index); + } + + /** + * + * + *
    +   * Output only. The state and activation time details of the resource state.
    +   * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadataOrBuilder + getStatesOrBuilder(int index) { + return states_.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 < states_.size(); i++) { + output.writeMessage(1, states_.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 < states_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, states_.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.networkconnectivity.v1.StateTimeline)) { + return super.equals(obj); + } + com.google.cloud.networkconnectivity.v1.StateTimeline other = + (com.google.cloud.networkconnectivity.v1.StateTimeline) obj; + + if (!getStatesList().equals(other.getStatesList())) 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 (getStatesCount() > 0) { + hash = (37 * hash) + STATES_FIELD_NUMBER; + hash = (53 * hash) + getStatesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkconnectivity.v1.StateTimeline parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.StateTimeline 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.networkconnectivity.v1.StateTimeline parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.StateTimeline parseFrom( + 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.networkconnectivity.v1.StateTimeline parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.StateTimeline parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkconnectivity.v1.StateTimeline parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.StateTimeline 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.networkconnectivity.v1.StateTimeline parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.StateTimeline 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.networkconnectivity.v1.StateTimeline parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.StateTimeline 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.networkconnectivity.v1.StateTimeline prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 timeline of the pending states for a resource.
    +   * 
    + * + * Protobuf type {@code google.cloud.networkconnectivity.v1.StateTimeline} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.StateTimeline) + com.google.cloud.networkconnectivity.v1.StateTimelineOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_StateTimeline_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_StateTimeline_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.StateTimeline.class, + com.google.cloud.networkconnectivity.v1.StateTimeline.Builder.class); + } + + // Construct using com.google.cloud.networkconnectivity.v1.StateTimeline.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (statesBuilder_ == null) { + states_ = java.util.Collections.emptyList(); + } else { + states_ = null; + statesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_StateTimeline_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.StateTimeline getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.StateTimeline.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.StateTimeline build() { + com.google.cloud.networkconnectivity.v1.StateTimeline result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.StateTimeline buildPartial() { + com.google.cloud.networkconnectivity.v1.StateTimeline result = + new com.google.cloud.networkconnectivity.v1.StateTimeline(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networkconnectivity.v1.StateTimeline result) { + if (statesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + states_ = java.util.Collections.unmodifiableList(states_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.states_ = states_; + } else { + result.states_ = statesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.networkconnectivity.v1.StateTimeline result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkconnectivity.v1.StateTimeline) { + return mergeFrom((com.google.cloud.networkconnectivity.v1.StateTimeline) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.StateTimeline other) { + if (other == com.google.cloud.networkconnectivity.v1.StateTimeline.getDefaultInstance()) + return this; + if (statesBuilder_ == null) { + if (!other.states_.isEmpty()) { + if (states_.isEmpty()) { + states_ = other.states_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureStatesIsMutable(); + states_.addAll(other.states_); + } + onChanged(); + } + } else { + if (!other.states_.isEmpty()) { + if (statesBuilder_.isEmpty()) { + statesBuilder_.dispose(); + statesBuilder_ = null; + states_ = other.states_; + bitField0_ = (bitField0_ & ~0x00000001); + statesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getStatesFieldBuilder() + : null; + } else { + statesBuilder_.addAllMessages(other.states_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata m = + input.readMessage( + com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata + .parser(), + extensionRegistry); + if (statesBuilder_ == null) { + ensureStatesIsMutable(); + states_.add(m); + } else { + statesBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + states_ = java.util.Collections.emptyList(); + + private void ensureStatesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + states_ = + new java.util.ArrayList< + com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata>(states_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata, + com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata.Builder, + com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadataOrBuilder> + statesBuilder_; + + /** + * + * + *
    +     * Output only. The state and activation time details of the resource state.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getStatesList() { + if (statesBuilder_ == null) { + return java.util.Collections.unmodifiableList(states_); + } else { + return statesBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * Output only. The state and activation time details of the resource state.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getStatesCount() { + if (statesBuilder_ == null) { + return states_.size(); + } else { + return statesBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * Output only. The state and activation time details of the resource state.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata getStates( + int index) { + if (statesBuilder_ == null) { + return states_.get(index); + } else { + return statesBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * Output only. The state and activation time details of the resource state.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStates( + int index, com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata value) { + if (statesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStatesIsMutable(); + states_.set(index, value); + onChanged(); + } else { + statesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Output only. The state and activation time details of the resource state.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStates( + int index, + com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata.Builder + builderForValue) { + if (statesBuilder_ == null) { + ensureStatesIsMutable(); + states_.set(index, builderForValue.build()); + onChanged(); + } else { + statesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Output only. The state and activation time details of the resource state.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addStates( + com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata value) { + if (statesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStatesIsMutable(); + states_.add(value); + onChanged(); + } else { + statesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * Output only. The state and activation time details of the resource state.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addStates( + int index, com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata value) { + if (statesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStatesIsMutable(); + states_.add(index, value); + onChanged(); + } else { + statesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Output only. The state and activation time details of the resource state.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addStates( + com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata.Builder + builderForValue) { + if (statesBuilder_ == null) { + ensureStatesIsMutable(); + states_.add(builderForValue.build()); + onChanged(); + } else { + statesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Output only. The state and activation time details of the resource state.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addStates( + int index, + com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata.Builder + builderForValue) { + if (statesBuilder_ == null) { + ensureStatesIsMutable(); + states_.add(index, builderForValue.build()); + onChanged(); + } else { + statesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Output only. The state and activation time details of the resource state.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllStates( + java.lang.Iterable< + ? extends com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata> + values) { + if (statesBuilder_ == null) { + ensureStatesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, states_); + onChanged(); + } else { + statesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * Output only. The state and activation time details of the resource state.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearStates() { + if (statesBuilder_ == null) { + states_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + statesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Output only. The state and activation time details of the resource state.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeStates(int index) { + if (statesBuilder_ == null) { + ensureStatesIsMutable(); + states_.remove(index); + onChanged(); + } else { + statesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * Output only. The state and activation time details of the resource state.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata.Builder + getStatesBuilder(int index) { + return getStatesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * Output only. The state and activation time details of the resource state.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadataOrBuilder + getStatesOrBuilder(int index) { + if (statesBuilder_ == null) { + return states_.get(index); + } else { + return statesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * Output only. The state and activation time details of the resource state.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadataOrBuilder> + getStatesOrBuilderList() { + if (statesBuilder_ != null) { + return statesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(states_); + } + } + + /** + * + * + *
    +     * Output only. The state and activation time details of the resource state.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata.Builder + addStatesBuilder() { + return getStatesFieldBuilder() + .addBuilder( + com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata + .getDefaultInstance()); + } + + /** + * + * + *
    +     * Output only. The state and activation time details of the resource state.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata.Builder + addStatesBuilder(int index) { + return getStatesFieldBuilder() + .addBuilder( + index, + com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata + .getDefaultInstance()); + } + + /** + * + * + *
    +     * Output only. The state and activation time details of the resource state.
    +     * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata.Builder> + getStatesBuilderList() { + return getStatesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata, + com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata.Builder, + com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadataOrBuilder> + getStatesFieldBuilder() { + if (statesBuilder_ == null) { + statesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata, + com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata.Builder, + com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadataOrBuilder>( + states_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + states_ = null; + } + return statesBuilder_; + } + + @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.networkconnectivity.v1.StateTimeline) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.StateTimeline) + private static final com.google.cloud.networkconnectivity.v1.StateTimeline DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.StateTimeline(); + } + + public static com.google.cloud.networkconnectivity.v1.StateTimeline getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StateTimeline parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.networkconnectivity.v1.StateTimeline getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/StateTimelineOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/StateTimelineOrBuilder.java new file mode 100644 index 000000000000..ab22e2462cd9 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/StateTimelineOrBuilder.java @@ -0,0 +1,95 @@ +/* + * 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/networkconnectivity/v1/data_transfer.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkconnectivity.v1; + +public interface StateTimelineOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.StateTimeline) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Output only. The state and activation time details of the resource state.
    +   * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getStatesList(); + + /** + * + * + *
    +   * Output only. The state and activation time details of the resource state.
    +   * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata getStates(int index); + + /** + * + * + *
    +   * Output only. The state and activation time details of the resource state.
    +   * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getStatesCount(); + + /** + * + * + *
    +   * Output only. The state and activation time details of the resource state.
    +   * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadataOrBuilder> + getStatesOrBuilderList(); + + /** + * + * + *
    +   * Output only. The state and activation time details of the resource state.
    +   * 
    + * + * + * repeated .google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata states = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadataOrBuilder getStatesOrBuilder( + int index); +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateDestinationRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateDestinationRequest.java new file mode 100644 index 000000000000..b117f320d9aa --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateDestinationRequest.java @@ -0,0 +1,1387 @@ +/* + * 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/networkconnectivity/v1/data_transfer.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkconnectivity.v1; + +/** + * + * + *
    + * Request message to update a `Destination` resource.
    + * 
    + * + * Protobuf type {@code google.cloud.networkconnectivity.v1.UpdateDestinationRequest} + */ +public final class UpdateDestinationRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.UpdateDestinationRequest) + UpdateDestinationRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UpdateDestinationRequest.newBuilder() to construct. + private UpdateDestinationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateDestinationRequest() { + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateDestinationRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_UpdateDestinationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_UpdateDestinationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.UpdateDestinationRequest.class, + com.google.cloud.networkconnectivity.v1.UpdateDestinationRequest.Builder.class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
    +   * Optional. `FieldMask is used to specify the fields to be overwritten in the
    +   * `Destination` resource by the update.
    +   * The fields specified in `update_mask` are relative to the resource, not
    +   * the full request. A field is overwritten if it is in the mask. If you
    +   * don't specify a mask, all fields are overwritten.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Optional. `FieldMask is used to specify the fields to be overwritten in the
    +   * `Destination` resource by the update.
    +   * The fields specified in `update_mask` are relative to the resource, not
    +   * the full request. A field is overwritten if it is in the mask. If you
    +   * don't specify a mask, all fields are overwritten.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
    +   * Optional. `FieldMask is used to specify the fields to be overwritten in the
    +   * `Destination` resource by the update.
    +   * The fields specified in `update_mask` are relative to the resource, not
    +   * the full request. A field is overwritten if it is in the mask. If you
    +   * don't specify a mask, all fields are overwritten.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int DESTINATION_FIELD_NUMBER = 2; + private com.google.cloud.networkconnectivity.v1.Destination destination_; + + /** + * + * + *
    +   * Required. The `Destination` resource to update.
    +   * 
    + * + * + * .google.cloud.networkconnectivity.v1.Destination destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the destination field is set. + */ + @java.lang.Override + public boolean hasDestination() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +   * Required. The `Destination` resource to update.
    +   * 
    + * + * + * .google.cloud.networkconnectivity.v1.Destination destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The destination. + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.Destination getDestination() { + return destination_ == null + ? com.google.cloud.networkconnectivity.v1.Destination.getDefaultInstance() + : destination_; + } + + /** + * + * + *
    +   * Required. The `Destination` resource to update.
    +   * 
    + * + * + * .google.cloud.networkconnectivity.v1.Destination destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.DestinationOrBuilder getDestinationOrBuilder() { + return destination_ == null + ? com.google.cloud.networkconnectivity.v1.Destination.getDefaultInstance() + : destination_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
    +   * Optional. A request ID to identify requests. Specify a unique request ID
    +   * so that if you must retry your request, the server can ignore
    +   * the request if it has already been completed. The server waits
    +   * for at least 60 minutes since the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and
    +   * the request times out. If you make the request again with the same request
    +   * ID, the server can check if original operation with the same request ID
    +   * was received, and if so, can ignore the second request.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID
    +   * (00000000-0000-0000-0000-000000000000) isn't supported.
    +   * 
    + * + * + * 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. A request ID to identify requests. Specify a unique request ID
    +   * so that if you must retry your request, the server can ignore
    +   * the request if it has already been completed. The server waits
    +   * for at least 60 minutes since the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and
    +   * the request times out. If you make the request again with the same request
    +   * ID, the server can check if original operation with the same request ID
    +   * was received, and if so, can ignore the second request.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID
    +   * (00000000-0000-0000-0000-000000000000) isn't supported.
    +   * 
    + * + * + * 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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getDestination()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDestination()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.networkconnectivity.v1.UpdateDestinationRequest)) { + return super.equals(obj); + } + com.google.cloud.networkconnectivity.v1.UpdateDestinationRequest other = + (com.google.cloud.networkconnectivity.v1.UpdateDestinationRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasDestination() != other.hasDestination()) return false; + if (hasDestination()) { + if (!getDestination().equals(other.getDestination())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasDestination()) { + hash = (37 * hash) + DESTINATION_FIELD_NUMBER; + hash = (53 * hash) + getDestination().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkconnectivity.v1.UpdateDestinationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.UpdateDestinationRequest 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.networkconnectivity.v1.UpdateDestinationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.UpdateDestinationRequest parseFrom( + 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.networkconnectivity.v1.UpdateDestinationRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.UpdateDestinationRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkconnectivity.v1.UpdateDestinationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.UpdateDestinationRequest 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.networkconnectivity.v1.UpdateDestinationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.UpdateDestinationRequest 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.networkconnectivity.v1.UpdateDestinationRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.UpdateDestinationRequest 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.networkconnectivity.v1.UpdateDestinationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request message to update a `Destination` resource.
    +   * 
    + * + * Protobuf type {@code google.cloud.networkconnectivity.v1.UpdateDestinationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.UpdateDestinationRequest) + com.google.cloud.networkconnectivity.v1.UpdateDestinationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_UpdateDestinationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_UpdateDestinationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.UpdateDestinationRequest.class, + com.google.cloud.networkconnectivity.v1.UpdateDestinationRequest.Builder.class); + } + + // Construct using com.google.cloud.networkconnectivity.v1.UpdateDestinationRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getUpdateMaskFieldBuilder(); + getDestinationFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + destination_ = null; + if (destinationBuilder_ != null) { + destinationBuilder_.dispose(); + destinationBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_UpdateDestinationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.UpdateDestinationRequest + getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.UpdateDestinationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.UpdateDestinationRequest build() { + com.google.cloud.networkconnectivity.v1.UpdateDestinationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.UpdateDestinationRequest buildPartial() { + com.google.cloud.networkconnectivity.v1.UpdateDestinationRequest result = + new com.google.cloud.networkconnectivity.v1.UpdateDestinationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkconnectivity.v1.UpdateDestinationRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.destination_ = + destinationBuilder_ == null ? destination_ : destinationBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkconnectivity.v1.UpdateDestinationRequest) { + return mergeFrom((com.google.cloud.networkconnectivity.v1.UpdateDestinationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkconnectivity.v1.UpdateDestinationRequest other) { + if (other + == com.google.cloud.networkconnectivity.v1.UpdateDestinationRequest.getDefaultInstance()) + return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasDestination()) { + mergeDestination(other.getDestination()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getDestinationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = 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 com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
    +     * Optional. `FieldMask is used to specify the fields to be overwritten in the
    +     * `Destination` resource by the update.
    +     * The fields specified in `update_mask` are relative to the resource, not
    +     * the full request. A field is overwritten if it is in the mask. If you
    +     * don't specify a mask, all fields are overwritten.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +     * Optional. `FieldMask is used to specify the fields to be overwritten in the
    +     * `Destination` resource by the update.
    +     * The fields specified in `update_mask` are relative to the resource, not
    +     * the full request. A field is overwritten if it is in the mask. If you
    +     * don't specify a mask, all fields are overwritten.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Optional. `FieldMask is used to specify the fields to be overwritten in the
    +     * `Destination` resource by the update.
    +     * The fields specified in `update_mask` are relative to the resource, not
    +     * the full request. A field is overwritten if it is in the mask. If you
    +     * don't specify a mask, all fields are overwritten.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. `FieldMask is used to specify the fields to be overwritten in the
    +     * `Destination` resource by the update.
    +     * The fields specified in `update_mask` are relative to the resource, not
    +     * the full request. A field is overwritten if it is in the mask. If you
    +     * don't specify a mask, all fields are overwritten.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. `FieldMask is used to specify the fields to be overwritten in the
    +     * `Destination` resource by the update.
    +     * The fields specified in `update_mask` are relative to the resource, not
    +     * the full request. A field is overwritten if it is in the mask. If you
    +     * don't specify a mask, all fields are overwritten.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Optional. `FieldMask is used to specify the fields to be overwritten in the
    +     * `Destination` resource by the update.
    +     * The fields specified in `update_mask` are relative to the resource, not
    +     * the full request. A field is overwritten if it is in the mask. If you
    +     * don't specify a mask, all fields are overwritten.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. `FieldMask is used to specify the fields to be overwritten in the
    +     * `Destination` resource by the update.
    +     * The fields specified in `update_mask` are relative to the resource, not
    +     * the full request. A field is overwritten if it is in the mask. If you
    +     * don't specify a mask, all fields are overwritten.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. `FieldMask is used to specify the fields to be overwritten in the
    +     * `Destination` resource by the update.
    +     * The fields specified in `update_mask` are relative to the resource, not
    +     * the full request. A field is overwritten if it is in the mask. If you
    +     * don't specify a mask, all fields are overwritten.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
    +     * Optional. `FieldMask is used to specify the fields to be overwritten in the
    +     * `Destination` resource by the update.
    +     * The fields specified in `update_mask` are relative to the resource, not
    +     * the full request. A field is overwritten if it is in the mask. If you
    +     * don't specify a mask, all fields are overwritten.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.networkconnectivity.v1.Destination destination_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.Destination, + com.google.cloud.networkconnectivity.v1.Destination.Builder, + com.google.cloud.networkconnectivity.v1.DestinationOrBuilder> + destinationBuilder_; + + /** + * + * + *
    +     * Required. The `Destination` resource to update.
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.Destination destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the destination field is set. + */ + public boolean hasDestination() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Required. The `Destination` resource to update.
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.Destination destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The destination. + */ + public com.google.cloud.networkconnectivity.v1.Destination getDestination() { + if (destinationBuilder_ == null) { + return destination_ == null + ? com.google.cloud.networkconnectivity.v1.Destination.getDefaultInstance() + : destination_; + } else { + return destinationBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Required. The `Destination` resource to update.
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.Destination destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDestination(com.google.cloud.networkconnectivity.v1.Destination value) { + if (destinationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + destination_ = value; + } else { + destinationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The `Destination` resource to update.
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.Destination destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDestination( + com.google.cloud.networkconnectivity.v1.Destination.Builder builderForValue) { + if (destinationBuilder_ == null) { + destination_ = builderForValue.build(); + } else { + destinationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The `Destination` resource to update.
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.Destination destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDestination(com.google.cloud.networkconnectivity.v1.Destination value) { + if (destinationBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && destination_ != null + && destination_ + != com.google.cloud.networkconnectivity.v1.Destination.getDefaultInstance()) { + getDestinationBuilder().mergeFrom(value); + } else { + destination_ = value; + } + } else { + destinationBuilder_.mergeFrom(value); + } + if (destination_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Required. The `Destination` resource to update.
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.Destination destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDestination() { + bitField0_ = (bitField0_ & ~0x00000002); + destination_ = null; + if (destinationBuilder_ != null) { + destinationBuilder_.dispose(); + destinationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The `Destination` resource to update.
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.Destination destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networkconnectivity.v1.Destination.Builder getDestinationBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getDestinationFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Required. The `Destination` resource to update.
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.Destination destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networkconnectivity.v1.DestinationOrBuilder getDestinationOrBuilder() { + if (destinationBuilder_ != null) { + return destinationBuilder_.getMessageOrBuilder(); + } else { + return destination_ == null + ? com.google.cloud.networkconnectivity.v1.Destination.getDefaultInstance() + : destination_; + } + } + + /** + * + * + *
    +     * Required. The `Destination` resource to update.
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.Destination destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.Destination, + com.google.cloud.networkconnectivity.v1.Destination.Builder, + com.google.cloud.networkconnectivity.v1.DestinationOrBuilder> + getDestinationFieldBuilder() { + if (destinationBuilder_ == null) { + destinationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.Destination, + com.google.cloud.networkconnectivity.v1.Destination.Builder, + com.google.cloud.networkconnectivity.v1.DestinationOrBuilder>( + getDestination(), getParentForChildren(), isClean()); + destination_ = null; + } + return destinationBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
    +     * Optional. A request ID to identify requests. Specify a unique request ID
    +     * so that if you must retry your request, the server can ignore
    +     * the request if it has already been completed. The server waits
    +     * for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, can ignore the second request.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID
    +     * (00000000-0000-0000-0000-000000000000) isn't supported.
    +     * 
    + * + * + * 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. A request ID to identify requests. Specify a unique request ID
    +     * so that if you must retry your request, the server can ignore
    +     * the request if it has already been completed. The server waits
    +     * for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, can ignore the second request.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID
    +     * (00000000-0000-0000-0000-000000000000) isn't supported.
    +     * 
    + * + * + * 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. A request ID to identify requests. Specify a unique request ID
    +     * so that if you must retry your request, the server can ignore
    +     * the request if it has already been completed. The server waits
    +     * for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, can ignore the second request.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID
    +     * (00000000-0000-0000-0000-000000000000) isn't supported.
    +     * 
    + * + * + * 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. A request ID to identify requests. Specify a unique request ID
    +     * so that if you must retry your request, the server can ignore
    +     * the request if it has already been completed. The server waits
    +     * for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, can ignore the second request.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID
    +     * (00000000-0000-0000-0000-000000000000) isn't supported.
    +     * 
    + * + * + * 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. A request ID to identify requests. Specify a unique request ID
    +     * so that if you must retry your request, the server can ignore
    +     * the request if it has already been completed. The server waits
    +     * for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, can ignore the second request.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID
    +     * (00000000-0000-0000-0000-000000000000) isn't supported.
    +     * 
    + * + * + * 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; + } + + @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.networkconnectivity.v1.UpdateDestinationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.UpdateDestinationRequest) + private static final com.google.cloud.networkconnectivity.v1.UpdateDestinationRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.UpdateDestinationRequest(); + } + + public static com.google.cloud.networkconnectivity.v1.UpdateDestinationRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateDestinationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.networkconnectivity.v1.UpdateDestinationRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateDestinationRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateDestinationRequestOrBuilder.java new file mode 100644 index 000000000000..5438a4130f33 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateDestinationRequestOrBuilder.java @@ -0,0 +1,173 @@ +/* + * 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/networkconnectivity/v1/data_transfer.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkconnectivity.v1; + +public interface UpdateDestinationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.UpdateDestinationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Optional. `FieldMask is used to specify the fields to be overwritten in the
    +   * `Destination` resource by the update.
    +   * The fields specified in `update_mask` are relative to the resource, not
    +   * the full request. A field is overwritten if it is in the mask. If you
    +   * don't specify a mask, all fields are overwritten.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
    +   * Optional. `FieldMask is used to specify the fields to be overwritten in the
    +   * `Destination` resource by the update.
    +   * The fields specified in `update_mask` are relative to the resource, not
    +   * the full request. A field is overwritten if it is in the mask. If you
    +   * don't specify a mask, all fields are overwritten.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
    +   * Optional. `FieldMask is used to specify the fields to be overwritten in the
    +   * `Destination` resource by the update.
    +   * The fields specified in `update_mask` are relative to the resource, not
    +   * the full request. A field is overwritten if it is in the mask. If you
    +   * don't specify a mask, all fields are overwritten.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
    +   * Required. The `Destination` resource to update.
    +   * 
    + * + * + * .google.cloud.networkconnectivity.v1.Destination destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the destination field is set. + */ + boolean hasDestination(); + + /** + * + * + *
    +   * Required. The `Destination` resource to update.
    +   * 
    + * + * + * .google.cloud.networkconnectivity.v1.Destination destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The destination. + */ + com.google.cloud.networkconnectivity.v1.Destination getDestination(); + + /** + * + * + *
    +   * Required. The `Destination` resource to update.
    +   * 
    + * + * + * .google.cloud.networkconnectivity.v1.Destination destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networkconnectivity.v1.DestinationOrBuilder getDestinationOrBuilder(); + + /** + * + * + *
    +   * Optional. A request ID to identify requests. Specify a unique request ID
    +   * so that if you must retry your request, the server can ignore
    +   * the request if it has already been completed. The server waits
    +   * for at least 60 minutes since the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and
    +   * the request times out. If you make the request again with the same request
    +   * ID, the server can check if original operation with the same request ID
    +   * was received, and if so, can ignore the second request.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID
    +   * (00000000-0000-0000-0000-000000000000) isn't supported.
    +   * 
    + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
    +   * Optional. A request ID to identify requests. Specify a unique request ID
    +   * so that if you must retry your request, the server can ignore
    +   * the request if it has already been completed. The server waits
    +   * for at least 60 minutes since the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and
    +   * the request times out. If you make the request again with the same request
    +   * ID, the server can check if original operation with the same request ID
    +   * was received, and if so, can ignore the second request.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID
    +   * (00000000-0000-0000-0000-000000000000) isn't supported.
    +   * 
    + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateMulticloudDataTransferConfigRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateMulticloudDataTransferConfigRequest.java new file mode 100644 index 000000000000..a5e25e7ee50c --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateMulticloudDataTransferConfigRequest.java @@ -0,0 +1,1449 @@ +/* + * 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/networkconnectivity/v1/data_transfer.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkconnectivity.v1; + +/** + * + * + *
    + * Request message to update a `MulticloudDataTransferConfig` resource.
    + * 
    + * + * Protobuf type {@code + * google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest} + */ +public final class UpdateMulticloudDataTransferConfigRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest) + UpdateMulticloudDataTransferConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UpdateMulticloudDataTransferConfigRequest.newBuilder() to construct. + private UpdateMulticloudDataTransferConfigRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateMulticloudDataTransferConfigRequest() { + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateMulticloudDataTransferConfigRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_UpdateMulticloudDataTransferConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_UpdateMulticloudDataTransferConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest.class, + com.google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest + .Builder.class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
    +   * Optional. `FieldMask` is used to specify the fields in the
    +   * `MulticloudDataTransferConfig` resource to be overwritten by the update.
    +   * The fields specified in `update_mask` are relative to the resource, not
    +   * the full request. A field is overwritten if it is in the mask. If you
    +   * don't specify a mask, all fields are overwritten.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Optional. `FieldMask` is used to specify the fields in the
    +   * `MulticloudDataTransferConfig` resource to be overwritten by the update.
    +   * The fields specified in `update_mask` are relative to the resource, not
    +   * the full request. A field is overwritten if it is in the mask. If you
    +   * don't specify a mask, all fields are overwritten.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
    +   * Optional. `FieldMask` is used to specify the fields in the
    +   * `MulticloudDataTransferConfig` resource to be overwritten by the update.
    +   * The fields specified in `update_mask` are relative to the resource, not
    +   * the full request. A field is overwritten if it is in the mask. If you
    +   * don't specify a mask, all fields are overwritten.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int MULTICLOUD_DATA_TRANSFER_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig + multicloudDataTransferConfig_; + + /** + * + * + *
    +   * Required. The `MulticloudDataTransferConfig` resource to update.
    +   * 
    + * + * + * .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the multicloudDataTransferConfig field is set. + */ + @java.lang.Override + public boolean hasMulticloudDataTransferConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +   * Required. The `MulticloudDataTransferConfig` resource to update.
    +   * 
    + * + * + * .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The multicloudDataTransferConfig. + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig + getMulticloudDataTransferConfig() { + return multicloudDataTransferConfig_ == null + ? com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig.getDefaultInstance() + : multicloudDataTransferConfig_; + } + + /** + * + * + *
    +   * Required. The `MulticloudDataTransferConfig` resource to update.
    +   * 
    + * + * + * .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfigOrBuilder + getMulticloudDataTransferConfigOrBuilder() { + return multicloudDataTransferConfig_ == null + ? com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig.getDefaultInstance() + : multicloudDataTransferConfig_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
    +   * Optional. A request ID to identify requests. Specify a unique request ID
    +   * so that if you must retry your request, the server can ignore
    +   * the request if it has already been completed. The server waits
    +   * for at least 60 minutes since the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and
    +   * the request times out. If you make the request again with the same request
    +   * ID, the server can check if original operation with the same request ID
    +   * was received, and if so, can ignore the second request. This prevents
    +   * clients from accidentally creating duplicate `MulticloudDataTransferConfig`
    +   * resources.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID
    +   * (00000000-0000-0000-0000-000000000000) isn't supported.
    +   * 
    + * + * + * 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. A request ID to identify requests. Specify a unique request ID
    +   * so that if you must retry your request, the server can ignore
    +   * the request if it has already been completed. The server waits
    +   * for at least 60 minutes since the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and
    +   * the request times out. If you make the request again with the same request
    +   * ID, the server can check if original operation with the same request ID
    +   * was received, and if so, can ignore the second request. This prevents
    +   * clients from accidentally creating duplicate `MulticloudDataTransferConfig`
    +   * resources.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID
    +   * (00000000-0000-0000-0000-000000000000) isn't supported.
    +   * 
    + * + * + * 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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getMulticloudDataTransferConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getMulticloudDataTransferConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest other = + (com.google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasMulticloudDataTransferConfig() != other.hasMulticloudDataTransferConfig()) return false; + if (hasMulticloudDataTransferConfig()) { + if (!getMulticloudDataTransferConfig().equals(other.getMulticloudDataTransferConfig())) + return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasMulticloudDataTransferConfig()) { + hash = (37 * hash) + MULTICLOUD_DATA_TRANSFER_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getMulticloudDataTransferConfig().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest + 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.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest + parseFrom( + 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.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest + 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.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest + 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.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest + 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.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request message to update a `MulticloudDataTransferConfig` resource.
    +   * 
    + * + * Protobuf type {@code + * google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest) + com.google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_UpdateMulticloudDataTransferConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_UpdateMulticloudDataTransferConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest + .class, + com.google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest + .Builder.class); + } + + // Construct using + // com.google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getUpdateMaskFieldBuilder(); + getMulticloudDataTransferConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + multicloudDataTransferConfig_ = null; + if (multicloudDataTransferConfigBuilder_ != null) { + multicloudDataTransferConfigBuilder_.dispose(); + multicloudDataTransferConfigBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.DataTransferProto + .internal_static_google_cloud_networkconnectivity_v1_UpdateMulticloudDataTransferConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest + build() { + com.google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest + buildPartial() { + com.google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest result = + new com.google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.multicloudDataTransferConfig_ = + multicloudDataTransferConfigBuilder_ == null + ? multicloudDataTransferConfig_ + : multicloudDataTransferConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest) { + return mergeFrom( + (com.google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest other) { + if (other + == com.google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest + .getDefaultInstance()) return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasMulticloudDataTransferConfig()) { + mergeMulticloudDataTransferConfig(other.getMulticloudDataTransferConfig()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getMulticloudDataTransferConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = 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 com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
    +     * Optional. `FieldMask` is used to specify the fields in the
    +     * `MulticloudDataTransferConfig` resource to be overwritten by the update.
    +     * The fields specified in `update_mask` are relative to the resource, not
    +     * the full request. A field is overwritten if it is in the mask. If you
    +     * don't specify a mask, all fields are overwritten.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +     * Optional. `FieldMask` is used to specify the fields in the
    +     * `MulticloudDataTransferConfig` resource to be overwritten by the update.
    +     * The fields specified in `update_mask` are relative to the resource, not
    +     * the full request. A field is overwritten if it is in the mask. If you
    +     * don't specify a mask, all fields are overwritten.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Optional. `FieldMask` is used to specify the fields in the
    +     * `MulticloudDataTransferConfig` resource to be overwritten by the update.
    +     * The fields specified in `update_mask` are relative to the resource, not
    +     * the full request. A field is overwritten if it is in the mask. If you
    +     * don't specify a mask, all fields are overwritten.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. `FieldMask` is used to specify the fields in the
    +     * `MulticloudDataTransferConfig` resource to be overwritten by the update.
    +     * The fields specified in `update_mask` are relative to the resource, not
    +     * the full request. A field is overwritten if it is in the mask. If you
    +     * don't specify a mask, all fields are overwritten.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. `FieldMask` is used to specify the fields in the
    +     * `MulticloudDataTransferConfig` resource to be overwritten by the update.
    +     * The fields specified in `update_mask` are relative to the resource, not
    +     * the full request. A field is overwritten if it is in the mask. If you
    +     * don't specify a mask, all fields are overwritten.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Optional. `FieldMask` is used to specify the fields in the
    +     * `MulticloudDataTransferConfig` resource to be overwritten by the update.
    +     * The fields specified in `update_mask` are relative to the resource, not
    +     * the full request. A field is overwritten if it is in the mask. If you
    +     * don't specify a mask, all fields are overwritten.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. `FieldMask` is used to specify the fields in the
    +     * `MulticloudDataTransferConfig` resource to be overwritten by the update.
    +     * The fields specified in `update_mask` are relative to the resource, not
    +     * the full request. A field is overwritten if it is in the mask. If you
    +     * don't specify a mask, all fields are overwritten.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. `FieldMask` is used to specify the fields in the
    +     * `MulticloudDataTransferConfig` resource to be overwritten by the update.
    +     * The fields specified in `update_mask` are relative to the resource, not
    +     * the full request. A field is overwritten if it is in the mask. If you
    +     * don't specify a mask, all fields are overwritten.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
    +     * Optional. `FieldMask` is used to specify the fields in the
    +     * `MulticloudDataTransferConfig` resource to be overwritten by the update.
    +     * The fields specified in `update_mask` are relative to the resource, not
    +     * the full request. A field is overwritten if it is in the mask. If you
    +     * don't specify a mask, all fields are overwritten.
    +     * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig + multicloudDataTransferConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig, + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig.Builder, + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfigOrBuilder> + multicloudDataTransferConfigBuilder_; + + /** + * + * + *
    +     * Required. The `MulticloudDataTransferConfig` resource to update.
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the multicloudDataTransferConfig field is set. + */ + public boolean hasMulticloudDataTransferConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * Required. The `MulticloudDataTransferConfig` resource to update.
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The multicloudDataTransferConfig. + */ + public com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig + getMulticloudDataTransferConfig() { + if (multicloudDataTransferConfigBuilder_ == null) { + return multicloudDataTransferConfig_ == null + ? com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig + .getDefaultInstance() + : multicloudDataTransferConfig_; + } else { + return multicloudDataTransferConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Required. The `MulticloudDataTransferConfig` resource to update.
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMulticloudDataTransferConfig( + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig value) { + if (multicloudDataTransferConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + multicloudDataTransferConfig_ = value; + } else { + multicloudDataTransferConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The `MulticloudDataTransferConfig` resource to update.
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMulticloudDataTransferConfig( + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig.Builder + builderForValue) { + if (multicloudDataTransferConfigBuilder_ == null) { + multicloudDataTransferConfig_ = builderForValue.build(); + } else { + multicloudDataTransferConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The `MulticloudDataTransferConfig` resource to update.
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeMulticloudDataTransferConfig( + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig value) { + if (multicloudDataTransferConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && multicloudDataTransferConfig_ != null + && multicloudDataTransferConfig_ + != com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig + .getDefaultInstance()) { + getMulticloudDataTransferConfigBuilder().mergeFrom(value); + } else { + multicloudDataTransferConfig_ = value; + } + } else { + multicloudDataTransferConfigBuilder_.mergeFrom(value); + } + if (multicloudDataTransferConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Required. The `MulticloudDataTransferConfig` resource to update.
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearMulticloudDataTransferConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + multicloudDataTransferConfig_ = null; + if (multicloudDataTransferConfigBuilder_ != null) { + multicloudDataTransferConfigBuilder_.dispose(); + multicloudDataTransferConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The `MulticloudDataTransferConfig` resource to update.
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig.Builder + getMulticloudDataTransferConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getMulticloudDataTransferConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Required. The `MulticloudDataTransferConfig` resource to update.
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfigOrBuilder + getMulticloudDataTransferConfigOrBuilder() { + if (multicloudDataTransferConfigBuilder_ != null) { + return multicloudDataTransferConfigBuilder_.getMessageOrBuilder(); + } else { + return multicloudDataTransferConfig_ == null + ? com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig + .getDefaultInstance() + : multicloudDataTransferConfig_; + } + } + + /** + * + * + *
    +     * Required. The `MulticloudDataTransferConfig` resource to update.
    +     * 
    + * + * + * .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig, + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig.Builder, + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfigOrBuilder> + getMulticloudDataTransferConfigFieldBuilder() { + if (multicloudDataTransferConfigBuilder_ == null) { + multicloudDataTransferConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig, + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig.Builder, + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfigOrBuilder>( + getMulticloudDataTransferConfig(), getParentForChildren(), isClean()); + multicloudDataTransferConfig_ = null; + } + return multicloudDataTransferConfigBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
    +     * Optional. A request ID to identify requests. Specify a unique request ID
    +     * so that if you must retry your request, the server can ignore
    +     * the request if it has already been completed. The server waits
    +     * for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, can ignore the second request. This prevents
    +     * clients from accidentally creating duplicate `MulticloudDataTransferConfig`
    +     * resources.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID
    +     * (00000000-0000-0000-0000-000000000000) isn't supported.
    +     * 
    + * + * + * 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. A request ID to identify requests. Specify a unique request ID
    +     * so that if you must retry your request, the server can ignore
    +     * the request if it has already been completed. The server waits
    +     * for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, can ignore the second request. This prevents
    +     * clients from accidentally creating duplicate `MulticloudDataTransferConfig`
    +     * resources.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID
    +     * (00000000-0000-0000-0000-000000000000) isn't supported.
    +     * 
    + * + * + * 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. A request ID to identify requests. Specify a unique request ID
    +     * so that if you must retry your request, the server can ignore
    +     * the request if it has already been completed. The server waits
    +     * for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, can ignore the second request. This prevents
    +     * clients from accidentally creating duplicate `MulticloudDataTransferConfig`
    +     * resources.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID
    +     * (00000000-0000-0000-0000-000000000000) isn't supported.
    +     * 
    + * + * + * 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. A request ID to identify requests. Specify a unique request ID
    +     * so that if you must retry your request, the server can ignore
    +     * the request if it has already been completed. The server waits
    +     * for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, can ignore the second request. This prevents
    +     * clients from accidentally creating duplicate `MulticloudDataTransferConfig`
    +     * resources.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID
    +     * (00000000-0000-0000-0000-000000000000) isn't supported.
    +     * 
    + * + * + * 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. A request ID to identify requests. Specify a unique request ID
    +     * so that if you must retry your request, the server can ignore
    +     * the request if it has already been completed. The server waits
    +     * for at least 60 minutes since the first request.
    +     *
    +     * For example, consider a situation where you make an initial request and
    +     * the request times out. If you make the request again with the same request
    +     * ID, the server can check if original operation with the same request ID
    +     * was received, and if so, can ignore the second request. This prevents
    +     * clients from accidentally creating duplicate `MulticloudDataTransferConfig`
    +     * resources.
    +     *
    +     * The request ID must be a valid UUID with the exception that zero UUID
    +     * (00000000-0000-0000-0000-000000000000) isn't supported.
    +     * 
    + * + * + * 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; + } + + @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.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest) + private static final com.google.cloud.networkconnectivity.v1 + .UpdateMulticloudDataTransferConfigRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest(); + } + + public static com.google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateMulticloudDataTransferConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateMulticloudDataTransferConfigRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateMulticloudDataTransferConfigRequestOrBuilder.java new file mode 100644 index 000000000000..a8016be1664b --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateMulticloudDataTransferConfigRequestOrBuilder.java @@ -0,0 +1,179 @@ +/* + * 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/networkconnectivity/v1/data_transfer.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.networkconnectivity.v1; + +public interface UpdateMulticloudDataTransferConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Optional. `FieldMask` is used to specify the fields in the
    +   * `MulticloudDataTransferConfig` resource to be overwritten by the update.
    +   * The fields specified in `update_mask` are relative to the resource, not
    +   * the full request. A field is overwritten if it is in the mask. If you
    +   * don't specify a mask, all fields are overwritten.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
    +   * Optional. `FieldMask` is used to specify the fields in the
    +   * `MulticloudDataTransferConfig` resource to be overwritten by the update.
    +   * The fields specified in `update_mask` are relative to the resource, not
    +   * the full request. A field is overwritten if it is in the mask. If you
    +   * don't specify a mask, all fields are overwritten.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
    +   * Optional. `FieldMask` is used to specify the fields in the
    +   * `MulticloudDataTransferConfig` resource to be overwritten by the update.
    +   * The fields specified in `update_mask` are relative to the resource, not
    +   * the full request. A field is overwritten if it is in the mask. If you
    +   * don't specify a mask, all fields are overwritten.
    +   * 
    + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
    +   * Required. The `MulticloudDataTransferConfig` resource to update.
    +   * 
    + * + * + * .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the multicloudDataTransferConfig field is set. + */ + boolean hasMulticloudDataTransferConfig(); + + /** + * + * + *
    +   * Required. The `MulticloudDataTransferConfig` resource to update.
    +   * 
    + * + * + * .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The multicloudDataTransferConfig. + */ + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig + getMulticloudDataTransferConfig(); + + /** + * + * + *
    +   * Required. The `MulticloudDataTransferConfig` resource to update.
    +   * 
    + * + * + * .google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig multicloud_data_transfer_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfigOrBuilder + getMulticloudDataTransferConfigOrBuilder(); + + /** + * + * + *
    +   * Optional. A request ID to identify requests. Specify a unique request ID
    +   * so that if you must retry your request, the server can ignore
    +   * the request if it has already been completed. The server waits
    +   * for at least 60 minutes since the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and
    +   * the request times out. If you make the request again with the same request
    +   * ID, the server can check if original operation with the same request ID
    +   * was received, and if so, can ignore the second request. This prevents
    +   * clients from accidentally creating duplicate `MulticloudDataTransferConfig`
    +   * resources.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID
    +   * (00000000-0000-0000-0000-000000000000) isn't supported.
    +   * 
    + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
    +   * Optional. A request ID to identify requests. Specify a unique request ID
    +   * so that if you must retry your request, the server can ignore
    +   * the request if it has already been completed. The server waits
    +   * for at least 60 minutes since the first request.
    +   *
    +   * For example, consider a situation where you make an initial request and
    +   * the request times out. If you make the request again with the same request
    +   * ID, the server can check if original operation with the same request ID
    +   * was received, and if so, can ignore the second request. This prevents
    +   * clients from accidentally creating duplicate `MulticloudDataTransferConfig`
    +   * resources.
    +   *
    +   * The request ID must be a valid UUID with the exception that zero UUID
    +   * (00000000-0000-0000-0000-000000000000) isn't supported.
    +   * 
    + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/data_transfer.proto b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/data_transfer.proto new file mode 100644 index 000000000000..129032a96feb --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/data_transfer.proto @@ -0,0 +1,825 @@ +// 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.networkconnectivity.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/field_info.proto"; +import "google/api/resource.proto"; +import "google/cloud/networkconnectivity/v1/common.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.NetworkConnectivity.V1"; +option go_package = "cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb;networkconnectivitypb"; +option java_multiple_files = true; +option java_outer_classname = "DataTransferProto"; +option java_package = "com.google.cloud.networkconnectivity.v1"; +option php_namespace = "Google\\Cloud\\NetworkConnectivity\\V1"; +option ruby_package = "Google::Cloud::NetworkConnectivity::V1"; + +// DataTransferService is the service for the Data Transfer API. +service DataTransferService { + option (google.api.default_host) = "networkconnectivity.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Lists the `MulticloudDataTransferConfig` resources in a specified project + // and location. + rpc ListMulticloudDataTransferConfigs( + ListMulticloudDataTransferConfigsRequest) + returns (ListMulticloudDataTransferConfigsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/multicloudDataTransferConfigs" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets the details of a `MulticloudDataTransferConfig` resource. + rpc GetMulticloudDataTransferConfig(GetMulticloudDataTransferConfigRequest) + returns (MulticloudDataTransferConfig) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/multicloudDataTransferConfigs/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a `MulticloudDataTransferConfig` resource in a specified project + // and location. + rpc CreateMulticloudDataTransferConfig( + CreateMulticloudDataTransferConfigRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/multicloudDataTransferConfigs" + body: "multicloud_data_transfer_config" + }; + option (google.api.method_signature) = + "parent,multicloud_data_transfer_config,multicloud_data_transfer_config_id"; + option (google.longrunning.operation_info) = { + response_type: "MulticloudDataTransferConfig" + metadata_type: "OperationMetadata" + }; + } + + // Updates a `MulticloudDataTransferConfig` resource in a specified project + // and location. + rpc UpdateMulticloudDataTransferConfig( + UpdateMulticloudDataTransferConfigRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{multicloud_data_transfer_config.name=projects/*/locations/*/multicloudDataTransferConfigs/*}" + body: "multicloud_data_transfer_config" + }; + option (google.api.method_signature) = + "multicloud_data_transfer_config,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "MulticloudDataTransferConfig" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a `MulticloudDataTransferConfig` resource. + rpc DeleteMulticloudDataTransferConfig( + DeleteMulticloudDataTransferConfigRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/multicloudDataTransferConfigs/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Lists the `Destination` resources in a specified project and location. + rpc ListDestinations(ListDestinationsRequest) + returns (ListDestinationsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/multicloudDataTransferConfigs/*}/destinations" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets the details of a `Destination` resource. + rpc GetDestination(GetDestinationRequest) returns (Destination) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/multicloudDataTransferConfigs/*/destinations/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a `Destination` resource in a specified project and location. + rpc CreateDestination(CreateDestinationRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/multicloudDataTransferConfigs/*}/destinations" + body: "destination" + }; + option (google.api.method_signature) = "parent,destination,destination_id"; + option (google.longrunning.operation_info) = { + response_type: "Destination" + metadata_type: "OperationMetadata" + }; + } + + // Updates a `Destination` resource in a specified project and location. + rpc UpdateDestination(UpdateDestinationRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{destination.name=projects/*/locations/*/multicloudDataTransferConfigs/*/destinations/*}" + body: "destination" + }; + option (google.api.method_signature) = "destination,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "Destination" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a `Destination` resource. + rpc DeleteDestination(DeleteDestinationRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/multicloudDataTransferConfigs/*/destinations/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Gets the details of a service that is supported for Data Transfer + // Essentials. + rpc GetMulticloudDataTransferSupportedService( + GetMulticloudDataTransferSupportedServiceRequest) + returns (MulticloudDataTransferSupportedService) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/multicloudDataTransferSupportedServices/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists the services in the project for a region that are supported for + // Data Transfer Essentials. + rpc ListMulticloudDataTransferSupportedServices( + ListMulticloudDataTransferSupportedServicesRequest) + returns (ListMulticloudDataTransferSupportedServicesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/multicloudDataTransferSupportedServices" + }; + option (google.api.method_signature) = "parent"; + } +} + +// The `MulticloudDataTransferConfig` resource. It lists the services that you +// configure for Data Transfer Essentials billing and metering. +message MulticloudDataTransferConfig { + option (google.api.resource) = { + type: "networkconnectivity.googleapis.com/MulticloudDataTransferConfig" + pattern: "projects/{project}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_transfer_config}" + plural: "multicloudDataTransferConfigs" + singular: "multicloudDataTransferConfig" + }; + + // Identifier. The name of the `MulticloudDataTransferConfig` resource. + // Format: + // `projects/{project}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_transfer_config}`. + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. Time when the `MulticloudDataTransferConfig` resource was + // created. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the `MulticloudDataTransferConfig` resource was + // updated. + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. User-defined labels. + map labels = 4 [(google.api.field_behavior) = OPTIONAL]; + + // The etag is computed by the server, and might be sent with update and + // delete requests so that the client has an up-to-date value before + // proceeding. + string etag = 5; + + // Optional. A description of this resource. + string description = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The number of `Destination` resources configured for the + // `MulticloudDataTransferConfig` resource. + int32 destinations_count = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The number of `Destination` resources in use with the + // `MulticloudDataTransferConfig` resource. + int32 destinations_active_count = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Maps services to their current or planned states. Service names + // are keys, and the associated values describe the state of the service. If a + // state change is expected, the value is either `ADDING` or `DELETING`, + // depending on the actions taken. + // + // Sample output: + // "services": { + // "big-query": { + // "states": [ + // { + // "effectiveTime": "2024-12-12T08:00:00Z" + // "state": "ADDING", + // }, + // ] + // }, + // "cloud-storage": { + // "states": [ + // { + // "state": "ACTIVE", + // } + // ] + // } + // } + map services = 9 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The Google-generated unique ID for the + // `MulticloudDataTransferConfig` resource. This value is unique across all + // `MulticloudDataTransferConfig` resources. If a resource is deleted and + // another with the same name is created, the new resource is assigned a + // different and unique ID. + string uid = 10 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OUTPUT_ONLY + ]; +} + +// Request message to list `MulticloudDataTransferConfig` resources. +message ListMulticloudDataTransferConfigsRequest { + // Required. The name of the parent resource. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Optional. The maximum number of results listed per page. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. An expression that filters the results listed in the response. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The sort order of the results. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If `true`, allows partial responses for multi-regional aggregated + // list requests. + bool return_partial_success = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message to list `MulticloudDataTransferConfig` resources. +message ListMulticloudDataTransferConfigsResponse { + // The list of `MulticloudDataTransferConfig` resources to be listed. + repeated MulticloudDataTransferConfig multicloud_data_transfer_configs = 1; + + // The next page token. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// Request message to get the details of a `MulticloudDataTransferConfig` +// resource. +message GetMulticloudDataTransferConfigRequest { + // Required. The name of the `MulticloudDataTransferConfig` resource to get. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networkconnectivity.googleapis.com/MulticloudDataTransferConfig" + } + ]; +} + +// Request message to create a `MulticloudDataTransferConfig` resource. +message CreateMulticloudDataTransferConfigRequest { + // Required. The name of the parent resource. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. The ID to use for the `MulticloudDataTransferConfig` resource, + // which becomes the final component of the `MulticloudDataTransferConfig` + // resource name. + string multicloud_data_transfer_config_id = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The `MulticloudDataTransferConfig` resource to create. + MulticloudDataTransferConfig multicloud_data_transfer_config = 3 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. A request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server can ignore + // the request if it has already been completed. The server waits + // for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, can ignore the second request. This prevents + // clients from accidentally creating duplicate `MulticloudDataTransferConfig` + // resources. + // + // The request ID must be a valid UUID with the exception that zero UUID + // (00000000-0000-0000-0000-000000000000) isn't supported. + string request_id = 4 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Request message to update a `MulticloudDataTransferConfig` resource. +message UpdateMulticloudDataTransferConfigRequest { + // Optional. `FieldMask` is used to specify the fields in the + // `MulticloudDataTransferConfig` resource to be overwritten by the update. + // The fields specified in `update_mask` are relative to the resource, not + // the full request. A field is overwritten if it is in the mask. If you + // don't specify a mask, all fields are overwritten. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. The `MulticloudDataTransferConfig` resource to update. + MulticloudDataTransferConfig multicloud_data_transfer_config = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. A request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server can ignore + // the request if it has already been completed. The server waits + // for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, can ignore the second request. This prevents + // clients from accidentally creating duplicate `MulticloudDataTransferConfig` + // resources. + // + // The request ID must be a valid UUID with the exception that zero UUID + // (00000000-0000-0000-0000-000000000000) isn't supported. + string request_id = 3 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Request message to delete a `MulticloudDataTransferConfig` resource. +message DeleteMulticloudDataTransferConfigRequest { + // Required. The name of the `MulticloudDataTransferConfig` resource to + // delete. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networkconnectivity.googleapis.com/MulticloudDataTransferConfig" + } + ]; + + // Optional. A request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server can ignore + // the request if it has already been completed. The server waits + // for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, can ignore the second request. This prevents + // clients from accidentally creating duplicate `MulticloudDataTransferConfig` + // resources. + // + // The request ID must be a valid UUID with the exception that zero UUID + // (00000000-0000-0000-0000-000000000000) isn't supported. + string request_id = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; + + // Optional. The etag is computed by the server, and might be sent with update + // and delete requests so that the client has an up-to-date value before + // proceeding. + string etag = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// The `Destination` resource. It specifies the IP prefix and the associated +// autonomous system numbers (ASN) that you want to include in a +// `MulticloudDataTransferConfig` resource. +message Destination { + option (google.api.resource) = { + type: "networkconnectivity.googleapis.com/Destination" + pattern: "projects/{project}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_transfer_config}/destinations/{destination}" + plural: "destinations" + singular: "destination" + }; + + // The metadata for a `DestinationEndpoint` resource. + message DestinationEndpoint { + // The state of the `DestinationEndpoint` resource. + enum State { + // An invalid state, which is the default case. + STATE_UNSPECIFIED = 0; + + // The `DestinationEndpoint` resource is valid. + VALID = 1; + + // The `DestinationEndpoint` resource is invalid. + INVALID = 2; + } + + // Required. The ASN of the remote IP prefix. + int64 asn = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The CSP of the remote IP prefix. + string csp = 2 [(google.api.field_behavior) = REQUIRED]; + + // Output only. The state of the `DestinationEndpoint` resource. + State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the `DestinationEndpoint` resource was updated. + google.protobuf.Timestamp update_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Identifier. The name of the `Destination` resource. + // Format: + // `projects/{project}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_transfer_config}/destinations/{destination}`. + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. Time when the `Destination` resource was created. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the `Destination` resource was updated. + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. User-defined labels. + map labels = 4 [(google.api.field_behavior) = OPTIONAL]; + + // The etag is computed by the server, and might be sent with update and + // delete requests so that the client has an up-to-date value before + // proceeding. + string etag = 5; + + // Optional. A description of this resource. + string description = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Immutable. The IP prefix that represents your workload on another + // CSP. + string ip_prefix = 7 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Required. Unordered list. The list of `DestinationEndpoint` resources + // configured for the IP prefix. + repeated DestinationEndpoint endpoints = 8 [ + (google.api.field_behavior) = UNORDERED_LIST, + (google.api.field_behavior) = REQUIRED + ]; + + // Output only. The timeline of the expected `Destination` states or the + // current rest state. If a state change is expected, the value is `ADDING`, + // `DELETING` or `SUSPENDING`, depending on the action specified. + // + // Example: + // "state_timeline": { + // "states": [ + // { + // // The time when the `Destination` resource will be activated. + // "effectiveTime": "2024-12-01T08:00:00Z", + // "state": "ADDING" + // }, + // { + // // The time when the `Destination` resource will be suspended. + // "effectiveTime": "2024-12-01T20:00:00Z", + // "state": "SUSPENDING" + // } + // ] + // } + StateTimeline state_timeline = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The Google-generated unique ID for the `Destination` resource. + // This value is unique across all `Destination` resources. + // If a resource is deleted and another with the same name is + // created, the new resource is assigned a different and unique ID. + string uid = 10 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OUTPUT_ONLY + ]; +} + +// Request message to list `Destination` resources. +message ListDestinationsRequest { + // Required. The name of the parent resource. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networkconnectivity.googleapis.com/MulticloudDataTransferConfig" + } + ]; + + // Optional. The maximum number of results listed per page. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. An expression that filters the results listed in the response. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The sort order of the results. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If `true`, allow partial responses for multi-regional aggregated + // list requests. + bool return_partial_success = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message to list `Destination` resources. +message ListDestinationsResponse { + // The list of `Destination` resources to be listed. + repeated Destination destinations = 1; + + // The next page token. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// Request message to get the details of a `Destination` resource. +message GetDestinationRequest { + // Required. The name of the `Destination` resource to get. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networkconnectivity.googleapis.com/Destination" + } + ]; +} + +// Request message to create a `Destination` resource. +message CreateDestinationRequest { + // Required. The name of the parent resource. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networkconnectivity.googleapis.com/MulticloudDataTransferConfig" + } + ]; + + // Required. The ID to use for the `Destination` resource, which becomes the + // final component of the `Destination` resource name. + string destination_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The `Destination` resource to create. + Destination destination = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. A request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server can ignore + // the request if it has already been completed. The server waits + // for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, can ignore the second request. This prevents + // clients from accidentally creating duplicate `Destination` + // resources. + // + // The request ID must be a valid UUID with the exception that zero UUID + // (00000000-0000-0000-0000-000000000000) isn't supported. + string request_id = 4 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Request message to update a `Destination` resource. +message UpdateDestinationRequest { + // Optional. `FieldMask is used to specify the fields to be overwritten in the + // `Destination` resource by the update. + // The fields specified in `update_mask` are relative to the resource, not + // the full request. A field is overwritten if it is in the mask. If you + // don't specify a mask, all fields are overwritten. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. The `Destination` resource to update. + Destination destination = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. A request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server can ignore + // the request if it has already been completed. The server waits + // for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, can ignore the second request. + // + // The request ID must be a valid UUID with the exception that zero UUID + // (00000000-0000-0000-0000-000000000000) isn't supported. + string request_id = 3 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Request message to delete a `Destination` resource. +message DeleteDestinationRequest { + // Required. The name of the `Destination` resource to delete. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networkconnectivity.googleapis.com/Destination" + } + ]; + + // Optional. A request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server can ignore + // the request if it has already been completed. The server waits + // for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, can ignore the second request. + // + // The request ID must be a valid UUID with the exception that zero UUID + // (00000000-0000-0000-0000-000000000000) isn't supported. + string request_id = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; + + // Optional. The etag is computed by the server, and might be sent with update + // and delete requests so that the client has an up-to-date value before + // proceeding. + string etag = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// The timeline of the pending states for a resource. +message StateTimeline { + // The state and activation time details of the resource state. + message StateMetadata { + // The state of the resource. + enum State { + // An invalid state, which is the default case. + STATE_UNSPECIFIED = 0; + + // The resource is being added. + ADDING = 1; + + // The resource is in use. + ACTIVE = 2; + + // The resource is being deleted. + DELETING = 3; + + // The resource is being suspended. + SUSPENDING = 4; + + // The resource is suspended and not in use. + SUSPENDED = 5; + } + + // Output only. The state of the resource. + State state = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Accompanies only the transient states, which include + // `ADDING`, `DELETING`, and `SUSPENDING`, to denote the time until which + // the transient state of the resource will be effective. For instance, if + // the state is `ADDING`, this field shows the time when the resource state + // transitions to `ACTIVE`. + google.protobuf.Timestamp effective_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Output only. The state and activation time details of the resource state. + repeated StateMetadata states = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// A service in your project in a region that is eligible for Data Transfer +// Essentials configuration. +message MulticloudDataTransferSupportedService { + option (google.api.resource) = { + type: "networkconnectivity.googleapis.com/MulticloudDataTransferSupportedService" + pattern: "projects/{project}/locations/{location}/multicloudDataTransferSupportedServices/{multicloud_data_transfer_supported_service}" + plural: "multicloudDataTransferSupportedServices" + singular: "multicloudDataTransferSupportedService" + }; + + // Identifier. The name of the service. + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. The network service tier or regional endpoint supported for + // the service. + repeated ServiceConfig service_configs = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Specifies eligibility information for the service. +message ServiceConfig { + // The eligibility information for the service. + enum EligibilityCriteria { + // The service is not eligible for Data Transfer Essentials configuration. + // This is the default case. + ELIGIBILITY_CRITERIA_UNSPECIFIED = 0; + + // The service is eligible for Data Transfer Essentials configuration only + // for Premium Tier. + NETWORK_SERVICE_TIER_PREMIUM_ONLY = 1; + + // The service is eligible for Data Transfer Essentials configuration only + // for Standard Tier. + NETWORK_SERVICE_TIER_STANDARD_ONLY = 2; + + // The service is eligible for Data Transfer Essentials configuration only + // for the regional endpoint. + REQUEST_ENDPOINT_REGIONAL_ENDPOINT_ONLY = 3; + } + + // Output only. The eligibility criteria for the service. + EligibilityCriteria eligibility_criteria = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The end time for eligibility criteria support. If not + // specified, no planned end time is set. + google.protobuf.Timestamp support_end_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Request message to check if a service in your project in a region is +// eligible for Data Transfer Essentials configuration. +message GetMulticloudDataTransferSupportedServiceRequest { + // Required. The name of the service. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networkconnectivity.googleapis.com/MulticloudDataTransferSupportedService" + } + ]; +} + +// Request message to list the services in your project that are eligible for +// Data Transfer Essentials configuration. +message ListMulticloudDataTransferSupportedServicesRequest { + // Required. The name of the parent resource. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Optional. The maximum number of results listed per page. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message to list the services in your project in regions that are +// eligible for Data Transfer Essentials configuration. +message ListMulticloudDataTransferSupportedServicesResponse { + // The list of supported services. + repeated MulticloudDataTransferSupportedService + multicloud_data_transfer_supported_services = 1; + + // The next page token. + string next_page_token = 2; +} diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/create/SyncCreateSetCredentialsProvider.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..7748e2d44230 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.DataTransferServiceSettings; +import com.google.cloud.networkconnectivity.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 + DataTransferServiceSettings dataTransferServiceSettings = + DataTransferServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + DataTransferServiceClient dataTransferServiceClient = + DataTransferServiceClient.create(dataTransferServiceSettings); + } +} +// [END networkconnectivity_v1_generated_DataTransferService_Create_SetCredentialsProvider_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/create/SyncCreateSetEndpoint.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..86f01f5ee14f --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_Create_SetEndpoint_sync] +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.DataTransferServiceSettings; +import com.google.cloud.networkconnectivity.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 + DataTransferServiceSettings dataTransferServiceSettings = + DataTransferServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + DataTransferServiceClient dataTransferServiceClient = + DataTransferServiceClient.create(dataTransferServiceSettings); + } +} +// [END networkconnectivity_v1_generated_DataTransferService_Create_SetEndpoint_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/createdestination/AsyncCreateDestination.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/createdestination/AsyncCreateDestination.java new file mode 100644 index 000000000000..bf3515b9301f --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/createdestination/AsyncCreateDestination.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_CreateDestination_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkconnectivity.v1.CreateDestinationRequest; +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.Destination; +import com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfigName; +import com.google.longrunning.Operation; + +public class AsyncCreateDestination { + + public static void main(String[] args) throws Exception { + asyncCreateDestination(); + } + + public static void asyncCreateDestination() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + CreateDestinationRequest request = + CreateDestinationRequest.newBuilder() + .setParent( + MulticloudDataTransferConfigName.of( + "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]") + .toString()) + .setDestinationId("destinationId306545097") + .setDestination(Destination.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + dataTransferServiceClient.createDestinationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_CreateDestination_async] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/createdestination/AsyncCreateDestinationLRO.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/createdestination/AsyncCreateDestinationLRO.java new file mode 100644 index 000000000000..6278c5d1d56d --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/createdestination/AsyncCreateDestinationLRO.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_CreateDestination_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networkconnectivity.v1.CreateDestinationRequest; +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.Destination; +import com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfigName; +import com.google.cloud.networkconnectivity.v1.OperationMetadata; + +public class AsyncCreateDestinationLRO { + + public static void main(String[] args) throws Exception { + asyncCreateDestinationLRO(); + } + + public static void asyncCreateDestinationLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + CreateDestinationRequest request = + CreateDestinationRequest.newBuilder() + .setParent( + MulticloudDataTransferConfigName.of( + "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]") + .toString()) + .setDestinationId("destinationId306545097") + .setDestination(Destination.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + dataTransferServiceClient.createDestinationOperationCallable().futureCall(request); + // Do something. + Destination response = future.get(); + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_CreateDestination_LRO_async] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/createdestination/SyncCreateDestination.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/createdestination/SyncCreateDestination.java new file mode 100644 index 000000000000..757298a062d7 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/createdestination/SyncCreateDestination.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_CreateDestination_sync] +import com.google.cloud.networkconnectivity.v1.CreateDestinationRequest; +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.Destination; +import com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfigName; + +public class SyncCreateDestination { + + public static void main(String[] args) throws Exception { + syncCreateDestination(); + } + + public static void syncCreateDestination() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + CreateDestinationRequest request = + CreateDestinationRequest.newBuilder() + .setParent( + MulticloudDataTransferConfigName.of( + "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]") + .toString()) + .setDestinationId("destinationId306545097") + .setDestination(Destination.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + Destination response = dataTransferServiceClient.createDestinationAsync(request).get(); + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_CreateDestination_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/createdestination/SyncCreateDestinationMulticlouddatatransferconfignameDestinationString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/createdestination/SyncCreateDestinationMulticlouddatatransferconfignameDestinationString.java new file mode 100644 index 000000000000..88f4ac9b1563 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/createdestination/SyncCreateDestinationMulticlouddatatransferconfignameDestinationString.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_CreateDestination_MulticlouddatatransferconfignameDestinationString_sync] +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.Destination; +import com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfigName; + +public class SyncCreateDestinationMulticlouddatatransferconfignameDestinationString { + + public static void main(String[] args) throws Exception { + syncCreateDestinationMulticlouddatatransferconfignameDestinationString(); + } + + public static void syncCreateDestinationMulticlouddatatransferconfignameDestinationString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + MulticloudDataTransferConfigName parent = + MulticloudDataTransferConfigName.of( + "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]"); + Destination destination = Destination.newBuilder().build(); + String destinationId = "destinationId306545097"; + Destination response = + dataTransferServiceClient + .createDestinationAsync(parent, destination, destinationId) + .get(); + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_CreateDestination_MulticlouddatatransferconfignameDestinationString_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/createdestination/SyncCreateDestinationStringDestinationString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/createdestination/SyncCreateDestinationStringDestinationString.java new file mode 100644 index 000000000000..4cbac16e4d4b --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/createdestination/SyncCreateDestinationStringDestinationString.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_CreateDestination_StringDestinationString_sync] +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.Destination; +import com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfigName; + +public class SyncCreateDestinationStringDestinationString { + + public static void main(String[] args) throws Exception { + syncCreateDestinationStringDestinationString(); + } + + public static void syncCreateDestinationStringDestinationString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + String parent = + MulticloudDataTransferConfigName.of( + "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]") + .toString(); + Destination destination = Destination.newBuilder().build(); + String destinationId = "destinationId306545097"; + Destination response = + dataTransferServiceClient + .createDestinationAsync(parent, destination, destinationId) + .get(); + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_CreateDestination_StringDestinationString_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/createmulticlouddatatransferconfig/AsyncCreateMulticloudDataTransferConfig.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/createmulticlouddatatransferconfig/AsyncCreateMulticloudDataTransferConfig.java new file mode 100644 index 000000000000..90c748f488f4 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/createmulticlouddatatransferconfig/AsyncCreateMulticloudDataTransferConfig.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_CreateMulticloudDataTransferConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest; +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.LocationName; +import com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig; +import com.google.longrunning.Operation; + +public class AsyncCreateMulticloudDataTransferConfig { + + public static void main(String[] args) throws Exception { + asyncCreateMulticloudDataTransferConfig(); + } + + public static void asyncCreateMulticloudDataTransferConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + CreateMulticloudDataTransferConfigRequest request = + CreateMulticloudDataTransferConfigRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setMulticloudDataTransferConfigId("multicloudDataTransferConfigId-1067608178") + .setMulticloudDataTransferConfig(MulticloudDataTransferConfig.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + dataTransferServiceClient + .createMulticloudDataTransferConfigCallable() + .futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_CreateMulticloudDataTransferConfig_async] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/createmulticlouddatatransferconfig/AsyncCreateMulticloudDataTransferConfigLRO.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/createmulticlouddatatransferconfig/AsyncCreateMulticloudDataTransferConfigLRO.java new file mode 100644 index 000000000000..128093c71b55 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/createmulticlouddatatransferconfig/AsyncCreateMulticloudDataTransferConfigLRO.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_CreateMulticloudDataTransferConfig_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest; +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.LocationName; +import com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig; +import com.google.cloud.networkconnectivity.v1.OperationMetadata; + +public class AsyncCreateMulticloudDataTransferConfigLRO { + + public static void main(String[] args) throws Exception { + asyncCreateMulticloudDataTransferConfigLRO(); + } + + public static void asyncCreateMulticloudDataTransferConfigLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + CreateMulticloudDataTransferConfigRequest request = + CreateMulticloudDataTransferConfigRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setMulticloudDataTransferConfigId("multicloudDataTransferConfigId-1067608178") + .setMulticloudDataTransferConfig(MulticloudDataTransferConfig.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + dataTransferServiceClient + .createMulticloudDataTransferConfigOperationCallable() + .futureCall(request); + // Do something. + MulticloudDataTransferConfig response = future.get(); + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_CreateMulticloudDataTransferConfig_LRO_async] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/createmulticlouddatatransferconfig/SyncCreateMulticloudDataTransferConfig.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/createmulticlouddatatransferconfig/SyncCreateMulticloudDataTransferConfig.java new file mode 100644 index 000000000000..11b3d010b1b3 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/createmulticlouddatatransferconfig/SyncCreateMulticloudDataTransferConfig.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_CreateMulticloudDataTransferConfig_sync] +import com.google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest; +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.LocationName; +import com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig; + +public class SyncCreateMulticloudDataTransferConfig { + + public static void main(String[] args) throws Exception { + syncCreateMulticloudDataTransferConfig(); + } + + public static void syncCreateMulticloudDataTransferConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + CreateMulticloudDataTransferConfigRequest request = + CreateMulticloudDataTransferConfigRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setMulticloudDataTransferConfigId("multicloudDataTransferConfigId-1067608178") + .setMulticloudDataTransferConfig(MulticloudDataTransferConfig.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + MulticloudDataTransferConfig response = + dataTransferServiceClient.createMulticloudDataTransferConfigAsync(request).get(); + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_CreateMulticloudDataTransferConfig_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/createmulticlouddatatransferconfig/SyncCreateMulticloudDataTransferConfigLocationnameMulticlouddatatransferconfigString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/createmulticlouddatatransferconfig/SyncCreateMulticloudDataTransferConfigLocationnameMulticlouddatatransferconfigString.java new file mode 100644 index 000000000000..b0b39a4d74d6 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/createmulticlouddatatransferconfig/SyncCreateMulticloudDataTransferConfigLocationnameMulticlouddatatransferconfigString.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_CreateMulticloudDataTransferConfig_LocationnameMulticlouddatatransferconfigString_sync] +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.LocationName; +import com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig; + +public class SyncCreateMulticloudDataTransferConfigLocationnameMulticlouddatatransferconfigString { + + public static void main(String[] args) throws Exception { + syncCreateMulticloudDataTransferConfigLocationnameMulticlouddatatransferconfigString(); + } + + public static void + syncCreateMulticloudDataTransferConfigLocationnameMulticlouddatatransferconfigString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + MulticloudDataTransferConfig multicloudDataTransferConfig = + MulticloudDataTransferConfig.newBuilder().build(); + String multicloudDataTransferConfigId = "multicloudDataTransferConfigId-1067608178"; + MulticloudDataTransferConfig response = + dataTransferServiceClient + .createMulticloudDataTransferConfigAsync( + parent, multicloudDataTransferConfig, multicloudDataTransferConfigId) + .get(); + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_CreateMulticloudDataTransferConfig_LocationnameMulticlouddatatransferconfigString_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/createmulticlouddatatransferconfig/SyncCreateMulticloudDataTransferConfigStringMulticlouddatatransferconfigString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/createmulticlouddatatransferconfig/SyncCreateMulticloudDataTransferConfigStringMulticlouddatatransferconfigString.java new file mode 100644 index 000000000000..8e99705f8461 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/createmulticlouddatatransferconfig/SyncCreateMulticloudDataTransferConfigStringMulticlouddatatransferconfigString.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_CreateMulticloudDataTransferConfig_StringMulticlouddatatransferconfigString_sync] +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.LocationName; +import com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig; + +public class SyncCreateMulticloudDataTransferConfigStringMulticlouddatatransferconfigString { + + public static void main(String[] args) throws Exception { + syncCreateMulticloudDataTransferConfigStringMulticlouddatatransferconfigString(); + } + + public static void + syncCreateMulticloudDataTransferConfigStringMulticlouddatatransferconfigString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + MulticloudDataTransferConfig multicloudDataTransferConfig = + MulticloudDataTransferConfig.newBuilder().build(); + String multicloudDataTransferConfigId = "multicloudDataTransferConfigId-1067608178"; + MulticloudDataTransferConfig response = + dataTransferServiceClient + .createMulticloudDataTransferConfigAsync( + parent, multicloudDataTransferConfig, multicloudDataTransferConfigId) + .get(); + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_CreateMulticloudDataTransferConfig_StringMulticlouddatatransferconfigString_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/deletedestination/AsyncDeleteDestination.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/deletedestination/AsyncDeleteDestination.java new file mode 100644 index 000000000000..e49966a613ba --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/deletedestination/AsyncDeleteDestination.java @@ -0,0 +1,58 @@ +/* + * 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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_DeleteDestination_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.DeleteDestinationRequest; +import com.google.cloud.networkconnectivity.v1.DestinationName; +import com.google.longrunning.Operation; + +public class AsyncDeleteDestination { + + public static void main(String[] args) throws Exception { + asyncDeleteDestination(); + } + + public static void asyncDeleteDestination() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + DeleteDestinationRequest request = + DeleteDestinationRequest.newBuilder() + .setName( + DestinationName.of( + "[PROJECT]", + "[LOCATION]", + "[MULTICLOUD_DATA_TRANSFER_CONFIG]", + "[DESTINATION]") + .toString()) + .setRequestId("requestId693933066") + .setEtag("etag3123477") + .build(); + ApiFuture future = + dataTransferServiceClient.deleteDestinationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_DeleteDestination_async] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/deletedestination/AsyncDeleteDestinationLRO.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/deletedestination/AsyncDeleteDestinationLRO.java new file mode 100644 index 000000000000..25b16e522316 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/deletedestination/AsyncDeleteDestinationLRO.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_DeleteDestination_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.DeleteDestinationRequest; +import com.google.cloud.networkconnectivity.v1.DestinationName; +import com.google.cloud.networkconnectivity.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteDestinationLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteDestinationLRO(); + } + + public static void asyncDeleteDestinationLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + DeleteDestinationRequest request = + DeleteDestinationRequest.newBuilder() + .setName( + DestinationName.of( + "[PROJECT]", + "[LOCATION]", + "[MULTICLOUD_DATA_TRANSFER_CONFIG]", + "[DESTINATION]") + .toString()) + .setRequestId("requestId693933066") + .setEtag("etag3123477") + .build(); + OperationFuture future = + dataTransferServiceClient.deleteDestinationOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_DeleteDestination_LRO_async] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/deletedestination/SyncDeleteDestination.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/deletedestination/SyncDeleteDestination.java new file mode 100644 index 000000000000..0cf8bc66113f --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/deletedestination/SyncDeleteDestination.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_DeleteDestination_sync] +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.DeleteDestinationRequest; +import com.google.cloud.networkconnectivity.v1.DestinationName; +import com.google.protobuf.Empty; + +public class SyncDeleteDestination { + + public static void main(String[] args) throws Exception { + syncDeleteDestination(); + } + + public static void syncDeleteDestination() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + DeleteDestinationRequest request = + DeleteDestinationRequest.newBuilder() + .setName( + DestinationName.of( + "[PROJECT]", + "[LOCATION]", + "[MULTICLOUD_DATA_TRANSFER_CONFIG]", + "[DESTINATION]") + .toString()) + .setRequestId("requestId693933066") + .setEtag("etag3123477") + .build(); + dataTransferServiceClient.deleteDestinationAsync(request).get(); + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_DeleteDestination_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/deletedestination/SyncDeleteDestinationDestinationname.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/deletedestination/SyncDeleteDestinationDestinationname.java new file mode 100644 index 000000000000..94e6caa9807d --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/deletedestination/SyncDeleteDestinationDestinationname.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_DeleteDestination_Destinationname_sync] +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.DestinationName; +import com.google.protobuf.Empty; + +public class SyncDeleteDestinationDestinationname { + + public static void main(String[] args) throws Exception { + syncDeleteDestinationDestinationname(); + } + + public static void syncDeleteDestinationDestinationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + DestinationName name = + DestinationName.of( + "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]", "[DESTINATION]"); + dataTransferServiceClient.deleteDestinationAsync(name).get(); + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_DeleteDestination_Destinationname_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/deletedestination/SyncDeleteDestinationString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/deletedestination/SyncDeleteDestinationString.java new file mode 100644 index 000000000000..5ce2f7c12804 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/deletedestination/SyncDeleteDestinationString.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_DeleteDestination_String_sync] +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.DestinationName; +import com.google.protobuf.Empty; + +public class SyncDeleteDestinationString { + + public static void main(String[] args) throws Exception { + syncDeleteDestinationString(); + } + + public static void syncDeleteDestinationString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + String name = + DestinationName.of( + "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]", "[DESTINATION]") + .toString(); + dataTransferServiceClient.deleteDestinationAsync(name).get(); + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_DeleteDestination_String_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/deletemulticlouddatatransferconfig/AsyncDeleteMulticloudDataTransferConfig.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/deletemulticlouddatatransferconfig/AsyncDeleteMulticloudDataTransferConfig.java new file mode 100644 index 000000000000..432d31926848 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/deletemulticlouddatatransferconfig/AsyncDeleteMulticloudDataTransferConfig.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_DeleteMulticloudDataTransferConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest; +import com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfigName; +import com.google.longrunning.Operation; + +public class AsyncDeleteMulticloudDataTransferConfig { + + public static void main(String[] args) throws Exception { + asyncDeleteMulticloudDataTransferConfig(); + } + + public static void asyncDeleteMulticloudDataTransferConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + DeleteMulticloudDataTransferConfigRequest request = + DeleteMulticloudDataTransferConfigRequest.newBuilder() + .setName( + MulticloudDataTransferConfigName.of( + "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]") + .toString()) + .setRequestId("requestId693933066") + .setEtag("etag3123477") + .build(); + ApiFuture future = + dataTransferServiceClient + .deleteMulticloudDataTransferConfigCallable() + .futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_DeleteMulticloudDataTransferConfig_async] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/deletemulticlouddatatransferconfig/AsyncDeleteMulticloudDataTransferConfigLRO.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/deletemulticlouddatatransferconfig/AsyncDeleteMulticloudDataTransferConfigLRO.java new file mode 100644 index 000000000000..165bf76450a1 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/deletemulticlouddatatransferconfig/AsyncDeleteMulticloudDataTransferConfigLRO.java @@ -0,0 +1,58 @@ +/* + * 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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_DeleteMulticloudDataTransferConfig_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest; +import com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfigName; +import com.google.cloud.networkconnectivity.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteMulticloudDataTransferConfigLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteMulticloudDataTransferConfigLRO(); + } + + public static void asyncDeleteMulticloudDataTransferConfigLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + DeleteMulticloudDataTransferConfigRequest request = + DeleteMulticloudDataTransferConfigRequest.newBuilder() + .setName( + MulticloudDataTransferConfigName.of( + "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]") + .toString()) + .setRequestId("requestId693933066") + .setEtag("etag3123477") + .build(); + OperationFuture future = + dataTransferServiceClient + .deleteMulticloudDataTransferConfigOperationCallable() + .futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_DeleteMulticloudDataTransferConfig_LRO_async] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/deletemulticlouddatatransferconfig/SyncDeleteMulticloudDataTransferConfig.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/deletemulticlouddatatransferconfig/SyncDeleteMulticloudDataTransferConfig.java new file mode 100644 index 000000000000..2db3f7fe1c4f --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/deletemulticlouddatatransferconfig/SyncDeleteMulticloudDataTransferConfig.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_DeleteMulticloudDataTransferConfig_sync] +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest; +import com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfigName; +import com.google.protobuf.Empty; + +public class SyncDeleteMulticloudDataTransferConfig { + + public static void main(String[] args) throws Exception { + syncDeleteMulticloudDataTransferConfig(); + } + + public static void syncDeleteMulticloudDataTransferConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + DeleteMulticloudDataTransferConfigRequest request = + DeleteMulticloudDataTransferConfigRequest.newBuilder() + .setName( + MulticloudDataTransferConfigName.of( + "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]") + .toString()) + .setRequestId("requestId693933066") + .setEtag("etag3123477") + .build(); + dataTransferServiceClient.deleteMulticloudDataTransferConfigAsync(request).get(); + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_DeleteMulticloudDataTransferConfig_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/deletemulticlouddatatransferconfig/SyncDeleteMulticloudDataTransferConfigMulticlouddatatransferconfigname.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/deletemulticlouddatatransferconfig/SyncDeleteMulticloudDataTransferConfigMulticlouddatatransferconfigname.java new file mode 100644 index 000000000000..e467873fe954 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/deletemulticlouddatatransferconfig/SyncDeleteMulticloudDataTransferConfigMulticlouddatatransferconfigname.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_DeleteMulticloudDataTransferConfig_Multiclouddatatransferconfigname_sync] +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfigName; +import com.google.protobuf.Empty; + +public class SyncDeleteMulticloudDataTransferConfigMulticlouddatatransferconfigname { + + public static void main(String[] args) throws Exception { + syncDeleteMulticloudDataTransferConfigMulticlouddatatransferconfigname(); + } + + public static void syncDeleteMulticloudDataTransferConfigMulticlouddatatransferconfigname() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + MulticloudDataTransferConfigName name = + MulticloudDataTransferConfigName.of( + "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]"); + dataTransferServiceClient.deleteMulticloudDataTransferConfigAsync(name).get(); + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_DeleteMulticloudDataTransferConfig_Multiclouddatatransferconfigname_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/deletemulticlouddatatransferconfig/SyncDeleteMulticloudDataTransferConfigString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/deletemulticlouddatatransferconfig/SyncDeleteMulticloudDataTransferConfigString.java new file mode 100644 index 000000000000..c224f240148e --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/deletemulticlouddatatransferconfig/SyncDeleteMulticloudDataTransferConfigString.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_DeleteMulticloudDataTransferConfig_String_sync] +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfigName; +import com.google.protobuf.Empty; + +public class SyncDeleteMulticloudDataTransferConfigString { + + public static void main(String[] args) throws Exception { + syncDeleteMulticloudDataTransferConfigString(); + } + + public static void syncDeleteMulticloudDataTransferConfigString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + String name = + MulticloudDataTransferConfigName.of( + "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]") + .toString(); + dataTransferServiceClient.deleteMulticloudDataTransferConfigAsync(name).get(); + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_DeleteMulticloudDataTransferConfig_String_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/getdestination/AsyncGetDestination.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/getdestination/AsyncGetDestination.java new file mode 100644 index 000000000000..882791b1ece2 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/getdestination/AsyncGetDestination.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_GetDestination_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.Destination; +import com.google.cloud.networkconnectivity.v1.DestinationName; +import com.google.cloud.networkconnectivity.v1.GetDestinationRequest; + +public class AsyncGetDestination { + + public static void main(String[] args) throws Exception { + asyncGetDestination(); + } + + public static void asyncGetDestination() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + GetDestinationRequest request = + GetDestinationRequest.newBuilder() + .setName( + DestinationName.of( + "[PROJECT]", + "[LOCATION]", + "[MULTICLOUD_DATA_TRANSFER_CONFIG]", + "[DESTINATION]") + .toString()) + .build(); + ApiFuture future = + dataTransferServiceClient.getDestinationCallable().futureCall(request); + // Do something. + Destination response = future.get(); + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_GetDestination_async] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/getdestination/SyncGetDestination.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/getdestination/SyncGetDestination.java new file mode 100644 index 000000000000..f637a9beec02 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/getdestination/SyncGetDestination.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_GetDestination_sync] +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.Destination; +import com.google.cloud.networkconnectivity.v1.DestinationName; +import com.google.cloud.networkconnectivity.v1.GetDestinationRequest; + +public class SyncGetDestination { + + public static void main(String[] args) throws Exception { + syncGetDestination(); + } + + public static void syncGetDestination() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + GetDestinationRequest request = + GetDestinationRequest.newBuilder() + .setName( + DestinationName.of( + "[PROJECT]", + "[LOCATION]", + "[MULTICLOUD_DATA_TRANSFER_CONFIG]", + "[DESTINATION]") + .toString()) + .build(); + Destination response = dataTransferServiceClient.getDestination(request); + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_GetDestination_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/getdestination/SyncGetDestinationDestinationname.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/getdestination/SyncGetDestinationDestinationname.java new file mode 100644 index 000000000000..74e4c908cf13 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/getdestination/SyncGetDestinationDestinationname.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_GetDestination_Destinationname_sync] +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.Destination; +import com.google.cloud.networkconnectivity.v1.DestinationName; + +public class SyncGetDestinationDestinationname { + + public static void main(String[] args) throws Exception { + syncGetDestinationDestinationname(); + } + + public static void syncGetDestinationDestinationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + DestinationName name = + DestinationName.of( + "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]", "[DESTINATION]"); + Destination response = dataTransferServiceClient.getDestination(name); + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_GetDestination_Destinationname_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/getdestination/SyncGetDestinationString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/getdestination/SyncGetDestinationString.java new file mode 100644 index 000000000000..9f579a82884d --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/getdestination/SyncGetDestinationString.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_GetDestination_String_sync] +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.Destination; +import com.google.cloud.networkconnectivity.v1.DestinationName; + +public class SyncGetDestinationString { + + public static void main(String[] args) throws Exception { + syncGetDestinationString(); + } + + public static void syncGetDestinationString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + String name = + DestinationName.of( + "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]", "[DESTINATION]") + .toString(); + Destination response = dataTransferServiceClient.getDestination(name); + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_GetDestination_String_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/getiampolicy/AsyncGetIamPolicy.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/getiampolicy/AsyncGetIamPolicy.java new file mode 100644 index 000000000000..3e95b736c9d8 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/getiampolicy/AsyncGetIamPolicy.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_GetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.GroupName; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class AsyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncGetIamPolicy(); + } + + public static void asyncGetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(GroupName.of("[PROJECT]", "[HUB]", "[GROUP]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + ApiFuture future = + dataTransferServiceClient.getIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_GetIamPolicy_async] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/getiampolicy/SyncGetIamPolicy.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/getiampolicy/SyncGetIamPolicy.java new file mode 100644 index 000000000000..b183c1f8348d --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/getiampolicy/SyncGetIamPolicy.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_GetIamPolicy_sync] +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.GroupName; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class SyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + syncGetIamPolicy(); + } + + public static void syncGetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(GroupName.of("[PROJECT]", "[HUB]", "[GROUP]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + Policy response = dataTransferServiceClient.getIamPolicy(request); + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_GetIamPolicy_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/getlocation/AsyncGetLocation.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/getlocation/AsyncGetLocation.java new file mode 100644 index 000000000000..4afb5a57e074 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/getlocation/AsyncGetLocation.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_GetLocation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; + +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 (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = + dataTransferServiceClient.getLocationCallable().futureCall(request); + // Do something. + Location response = future.get(); + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_GetLocation_async] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/getlocation/SyncGetLocation.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/getlocation/SyncGetLocation.java new file mode 100644 index 000000000000..92fbebfc34f1 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_GetLocation_sync] +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; + +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 (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + Location response = dataTransferServiceClient.getLocation(request); + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_GetLocation_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/getmulticlouddatatransferconfig/AsyncGetMulticloudDataTransferConfig.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/getmulticlouddatatransferconfig/AsyncGetMulticloudDataTransferConfig.java new file mode 100644 index 000000000000..a21c48b5fd44 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/getmulticlouddatatransferconfig/AsyncGetMulticloudDataTransferConfig.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_GetMulticloudDataTransferConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest; +import com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig; +import com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfigName; + +public class AsyncGetMulticloudDataTransferConfig { + + public static void main(String[] args) throws Exception { + asyncGetMulticloudDataTransferConfig(); + } + + public static void asyncGetMulticloudDataTransferConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + GetMulticloudDataTransferConfigRequest request = + GetMulticloudDataTransferConfigRequest.newBuilder() + .setName( + MulticloudDataTransferConfigName.of( + "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]") + .toString()) + .build(); + ApiFuture future = + dataTransferServiceClient.getMulticloudDataTransferConfigCallable().futureCall(request); + // Do something. + MulticloudDataTransferConfig response = future.get(); + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_GetMulticloudDataTransferConfig_async] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/getmulticlouddatatransferconfig/SyncGetMulticloudDataTransferConfig.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/getmulticlouddatatransferconfig/SyncGetMulticloudDataTransferConfig.java new file mode 100644 index 000000000000..024704abaddf --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/getmulticlouddatatransferconfig/SyncGetMulticloudDataTransferConfig.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_GetMulticloudDataTransferConfig_sync] +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest; +import com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig; +import com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfigName; + +public class SyncGetMulticloudDataTransferConfig { + + public static void main(String[] args) throws Exception { + syncGetMulticloudDataTransferConfig(); + } + + public static void syncGetMulticloudDataTransferConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + GetMulticloudDataTransferConfigRequest request = + GetMulticloudDataTransferConfigRequest.newBuilder() + .setName( + MulticloudDataTransferConfigName.of( + "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]") + .toString()) + .build(); + MulticloudDataTransferConfig response = + dataTransferServiceClient.getMulticloudDataTransferConfig(request); + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_GetMulticloudDataTransferConfig_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/getmulticlouddatatransferconfig/SyncGetMulticloudDataTransferConfigMulticlouddatatransferconfigname.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/getmulticlouddatatransferconfig/SyncGetMulticloudDataTransferConfigMulticlouddatatransferconfigname.java new file mode 100644 index 000000000000..5e88f124887c --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/getmulticlouddatatransferconfig/SyncGetMulticloudDataTransferConfigMulticlouddatatransferconfigname.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_GetMulticloudDataTransferConfig_Multiclouddatatransferconfigname_sync] +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig; +import com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfigName; + +public class SyncGetMulticloudDataTransferConfigMulticlouddatatransferconfigname { + + public static void main(String[] args) throws Exception { + syncGetMulticloudDataTransferConfigMulticlouddatatransferconfigname(); + } + + public static void syncGetMulticloudDataTransferConfigMulticlouddatatransferconfigname() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + MulticloudDataTransferConfigName name = + MulticloudDataTransferConfigName.of( + "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]"); + MulticloudDataTransferConfig response = + dataTransferServiceClient.getMulticloudDataTransferConfig(name); + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_GetMulticloudDataTransferConfig_Multiclouddatatransferconfigname_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/getmulticlouddatatransferconfig/SyncGetMulticloudDataTransferConfigString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/getmulticlouddatatransferconfig/SyncGetMulticloudDataTransferConfigString.java new file mode 100644 index 000000000000..57d965e46f30 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/getmulticlouddatatransferconfig/SyncGetMulticloudDataTransferConfigString.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_GetMulticloudDataTransferConfig_String_sync] +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig; +import com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfigName; + +public class SyncGetMulticloudDataTransferConfigString { + + public static void main(String[] args) throws Exception { + syncGetMulticloudDataTransferConfigString(); + } + + public static void syncGetMulticloudDataTransferConfigString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + String name = + MulticloudDataTransferConfigName.of( + "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]") + .toString(); + MulticloudDataTransferConfig response = + dataTransferServiceClient.getMulticloudDataTransferConfig(name); + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_GetMulticloudDataTransferConfig_String_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/getmulticlouddatatransfersupportedservice/AsyncGetMulticloudDataTransferSupportedService.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/getmulticlouddatatransfersupportedservice/AsyncGetMulticloudDataTransferSupportedService.java new file mode 100644 index 000000000000..3c83345f6c46 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/getmulticlouddatatransfersupportedservice/AsyncGetMulticloudDataTransferSupportedService.java @@ -0,0 +1,55 @@ +/* + * 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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_GetMulticloudDataTransferSupportedService_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferSupportedServiceRequest; +import com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService; +import com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedServiceName; + +public class AsyncGetMulticloudDataTransferSupportedService { + + public static void main(String[] args) throws Exception { + asyncGetMulticloudDataTransferSupportedService(); + } + + public static void asyncGetMulticloudDataTransferSupportedService() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + GetMulticloudDataTransferSupportedServiceRequest request = + GetMulticloudDataTransferSupportedServiceRequest.newBuilder() + .setName( + MulticloudDataTransferSupportedServiceName.of( + "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_SUPPORTED_SERVICE]") + .toString()) + .build(); + ApiFuture future = + dataTransferServiceClient + .getMulticloudDataTransferSupportedServiceCallable() + .futureCall(request); + // Do something. + MulticloudDataTransferSupportedService response = future.get(); + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_GetMulticloudDataTransferSupportedService_async] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/getmulticlouddatatransfersupportedservice/SyncGetMulticloudDataTransferSupportedService.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/getmulticlouddatatransfersupportedservice/SyncGetMulticloudDataTransferSupportedService.java new file mode 100644 index 000000000000..c98dd06cd772 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/getmulticlouddatatransfersupportedservice/SyncGetMulticloudDataTransferSupportedService.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_GetMulticloudDataTransferSupportedService_sync] +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferSupportedServiceRequest; +import com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService; +import com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedServiceName; + +public class SyncGetMulticloudDataTransferSupportedService { + + public static void main(String[] args) throws Exception { + syncGetMulticloudDataTransferSupportedService(); + } + + public static void syncGetMulticloudDataTransferSupportedService() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + GetMulticloudDataTransferSupportedServiceRequest request = + GetMulticloudDataTransferSupportedServiceRequest.newBuilder() + .setName( + MulticloudDataTransferSupportedServiceName.of( + "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_SUPPORTED_SERVICE]") + .toString()) + .build(); + MulticloudDataTransferSupportedService response = + dataTransferServiceClient.getMulticloudDataTransferSupportedService(request); + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_GetMulticloudDataTransferSupportedService_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/getmulticlouddatatransfersupportedservice/SyncGetMulticloudDataTransferSupportedServiceMulticlouddatatransfersupportedservicename.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/getmulticlouddatatransfersupportedservice/SyncGetMulticloudDataTransferSupportedServiceMulticlouddatatransfersupportedservicename.java new file mode 100644 index 000000000000..874eb081c37f --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/getmulticlouddatatransfersupportedservice/SyncGetMulticloudDataTransferSupportedServiceMulticlouddatatransfersupportedservicename.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_GetMulticloudDataTransferSupportedService_Multiclouddatatransfersupportedservicename_sync] +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService; +import com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedServiceName; + +public +class SyncGetMulticloudDataTransferSupportedServiceMulticlouddatatransfersupportedservicename { + + public static void main(String[] args) throws Exception { + syncGetMulticloudDataTransferSupportedServiceMulticlouddatatransfersupportedservicename(); + } + + public static void + syncGetMulticloudDataTransferSupportedServiceMulticlouddatatransfersupportedservicename() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + MulticloudDataTransferSupportedServiceName name = + MulticloudDataTransferSupportedServiceName.of( + "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_SUPPORTED_SERVICE]"); + MulticloudDataTransferSupportedService response = + dataTransferServiceClient.getMulticloudDataTransferSupportedService(name); + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_GetMulticloudDataTransferSupportedService_Multiclouddatatransfersupportedservicename_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/getmulticlouddatatransfersupportedservice/SyncGetMulticloudDataTransferSupportedServiceString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/getmulticlouddatatransfersupportedservice/SyncGetMulticloudDataTransferSupportedServiceString.java new file mode 100644 index 000000000000..2bc08d2e1003 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/getmulticlouddatatransfersupportedservice/SyncGetMulticloudDataTransferSupportedServiceString.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_GetMulticloudDataTransferSupportedService_String_sync] +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService; +import com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedServiceName; + +public class SyncGetMulticloudDataTransferSupportedServiceString { + + public static void main(String[] args) throws Exception { + syncGetMulticloudDataTransferSupportedServiceString(); + } + + public static void syncGetMulticloudDataTransferSupportedServiceString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + String name = + MulticloudDataTransferSupportedServiceName.of( + "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_SUPPORTED_SERVICE]") + .toString(); + MulticloudDataTransferSupportedService response = + dataTransferServiceClient.getMulticloudDataTransferSupportedService(name); + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_GetMulticloudDataTransferSupportedService_String_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/listdestinations/AsyncListDestinations.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/listdestinations/AsyncListDestinations.java new file mode 100644 index 000000000000..72fb13e55d34 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/listdestinations/AsyncListDestinations.java @@ -0,0 +1,60 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_ListDestinations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.Destination; +import com.google.cloud.networkconnectivity.v1.ListDestinationsRequest; +import com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfigName; + +public class AsyncListDestinations { + + public static void main(String[] args) throws Exception { + asyncListDestinations(); + } + + public static void asyncListDestinations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + ListDestinationsRequest request = + ListDestinationsRequest.newBuilder() + .setParent( + MulticloudDataTransferConfigName.of( + "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setReturnPartialSuccess(true) + .build(); + ApiFuture future = + dataTransferServiceClient.listDestinationsPagedCallable().futureCall(request); + // Do something. + for (Destination element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_ListDestinations_async] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/listdestinations/AsyncListDestinationsPaged.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/listdestinations/AsyncListDestinationsPaged.java new file mode 100644 index 000000000000..bc7829521236 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/listdestinations/AsyncListDestinationsPaged.java @@ -0,0 +1,68 @@ +/* + * 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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_ListDestinations_Paged_async] +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.Destination; +import com.google.cloud.networkconnectivity.v1.ListDestinationsRequest; +import com.google.cloud.networkconnectivity.v1.ListDestinationsResponse; +import com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfigName; +import com.google.common.base.Strings; + +public class AsyncListDestinationsPaged { + + public static void main(String[] args) throws Exception { + asyncListDestinationsPaged(); + } + + public static void asyncListDestinationsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + ListDestinationsRequest request = + ListDestinationsRequest.newBuilder() + .setParent( + MulticloudDataTransferConfigName.of( + "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setReturnPartialSuccess(true) + .build(); + while (true) { + ListDestinationsResponse response = + dataTransferServiceClient.listDestinationsCallable().call(request); + for (Destination element : response.getDestinationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_ListDestinations_Paged_async] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/listdestinations/SyncListDestinations.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/listdestinations/SyncListDestinations.java new file mode 100644 index 000000000000..2ef23bdd75a3 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/listdestinations/SyncListDestinations.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_ListDestinations_sync] +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.Destination; +import com.google.cloud.networkconnectivity.v1.ListDestinationsRequest; +import com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfigName; + +public class SyncListDestinations { + + public static void main(String[] args) throws Exception { + syncListDestinations(); + } + + public static void syncListDestinations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + ListDestinationsRequest request = + ListDestinationsRequest.newBuilder() + .setParent( + MulticloudDataTransferConfigName.of( + "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setReturnPartialSuccess(true) + .build(); + for (Destination element : dataTransferServiceClient.listDestinations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_ListDestinations_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/listdestinations/SyncListDestinationsMulticlouddatatransferconfigname.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/listdestinations/SyncListDestinationsMulticlouddatatransferconfigname.java new file mode 100644 index 000000000000..127f62a0b0ad --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/listdestinations/SyncListDestinationsMulticlouddatatransferconfigname.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_ListDestinations_Multiclouddatatransferconfigname_sync] +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.Destination; +import com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfigName; + +public class SyncListDestinationsMulticlouddatatransferconfigname { + + public static void main(String[] args) throws Exception { + syncListDestinationsMulticlouddatatransferconfigname(); + } + + public static void syncListDestinationsMulticlouddatatransferconfigname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + MulticloudDataTransferConfigName parent = + MulticloudDataTransferConfigName.of( + "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]"); + for (Destination element : dataTransferServiceClient.listDestinations(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_ListDestinations_Multiclouddatatransferconfigname_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/listdestinations/SyncListDestinationsString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/listdestinations/SyncListDestinationsString.java new file mode 100644 index 000000000000..3011684563c4 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/listdestinations/SyncListDestinationsString.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_ListDestinations_String_sync] +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.Destination; +import com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfigName; + +public class SyncListDestinationsString { + + public static void main(String[] args) throws Exception { + syncListDestinationsString(); + } + + public static void syncListDestinationsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + String parent = + MulticloudDataTransferConfigName.of( + "[PROJECT]", "[LOCATION]", "[MULTICLOUD_DATA_TRANSFER_CONFIG]") + .toString(); + for (Destination element : dataTransferServiceClient.listDestinations(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_ListDestinations_String_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/listlocations/AsyncListLocations.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/listlocations/AsyncListLocations.java new file mode 100644 index 000000000000..c5e402fa0d78 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_ListLocations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; + +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 (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + dataTransferServiceClient.listLocationsPagedCallable().futureCall(request); + // Do something. + for (Location element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_ListLocations_async] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/listlocations/AsyncListLocationsPaged.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/listlocations/AsyncListLocationsPaged.java new file mode 100644 index 000000000000..bc9b0e555606 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_ListLocations_Paged_async] +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +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 (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLocationsResponse response = + dataTransferServiceClient.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 networkconnectivity_v1_generated_DataTransferService_ListLocations_Paged_async] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/listlocations/SyncListLocations.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/listlocations/SyncListLocations.java new file mode 100644 index 000000000000..a8230cd67899 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_ListLocations_sync] +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; + +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 (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Location element : dataTransferServiceClient.listLocations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_ListLocations_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/listmulticlouddatatransferconfigs/AsyncListMulticloudDataTransferConfigs.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/listmulticlouddatatransferconfigs/AsyncListMulticloudDataTransferConfigs.java new file mode 100644 index 000000000000..351ad03c288f --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/listmulticlouddatatransferconfigs/AsyncListMulticloudDataTransferConfigs.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_ListMulticloudDataTransferConfigs_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest; +import com.google.cloud.networkconnectivity.v1.LocationName; +import com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig; + +public class AsyncListMulticloudDataTransferConfigs { + + public static void main(String[] args) throws Exception { + asyncListMulticloudDataTransferConfigs(); + } + + public static void asyncListMulticloudDataTransferConfigs() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + ListMulticloudDataTransferConfigsRequest request = + ListMulticloudDataTransferConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setReturnPartialSuccess(true) + .build(); + ApiFuture future = + dataTransferServiceClient + .listMulticloudDataTransferConfigsPagedCallable() + .futureCall(request); + // Do something. + for (MulticloudDataTransferConfig element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_ListMulticloudDataTransferConfigs_async] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/listmulticlouddatatransferconfigs/AsyncListMulticloudDataTransferConfigsPaged.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/listmulticlouddatatransferconfigs/AsyncListMulticloudDataTransferConfigsPaged.java new file mode 100644 index 000000000000..41ba4f97f775 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/listmulticlouddatatransferconfigs/AsyncListMulticloudDataTransferConfigsPaged.java @@ -0,0 +1,66 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_ListMulticloudDataTransferConfigs_Paged_async] +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest; +import com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse; +import com.google.cloud.networkconnectivity.v1.LocationName; +import com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig; +import com.google.common.base.Strings; + +public class AsyncListMulticloudDataTransferConfigsPaged { + + public static void main(String[] args) throws Exception { + asyncListMulticloudDataTransferConfigsPaged(); + } + + public static void asyncListMulticloudDataTransferConfigsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + ListMulticloudDataTransferConfigsRequest request = + ListMulticloudDataTransferConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setReturnPartialSuccess(true) + .build(); + while (true) { + ListMulticloudDataTransferConfigsResponse response = + dataTransferServiceClient.listMulticloudDataTransferConfigsCallable().call(request); + for (MulticloudDataTransferConfig element : + response.getMulticloudDataTransferConfigsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_ListMulticloudDataTransferConfigs_Paged_async] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/listmulticlouddatatransferconfigs/SyncListMulticloudDataTransferConfigs.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/listmulticlouddatatransferconfigs/SyncListMulticloudDataTransferConfigs.java new file mode 100644 index 000000000000..da0439bcb694 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/listmulticlouddatatransferconfigs/SyncListMulticloudDataTransferConfigs.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_ListMulticloudDataTransferConfigs_sync] +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest; +import com.google.cloud.networkconnectivity.v1.LocationName; +import com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig; + +public class SyncListMulticloudDataTransferConfigs { + + public static void main(String[] args) throws Exception { + syncListMulticloudDataTransferConfigs(); + } + + public static void syncListMulticloudDataTransferConfigs() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + ListMulticloudDataTransferConfigsRequest request = + ListMulticloudDataTransferConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setReturnPartialSuccess(true) + .build(); + for (MulticloudDataTransferConfig element : + dataTransferServiceClient.listMulticloudDataTransferConfigs(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_ListMulticloudDataTransferConfigs_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/listmulticlouddatatransferconfigs/SyncListMulticloudDataTransferConfigsLocationname.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/listmulticlouddatatransferconfigs/SyncListMulticloudDataTransferConfigsLocationname.java new file mode 100644 index 000000000000..d6fba9344af6 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/listmulticlouddatatransferconfigs/SyncListMulticloudDataTransferConfigsLocationname.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_ListMulticloudDataTransferConfigs_Locationname_sync] +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.LocationName; +import com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig; + +public class SyncListMulticloudDataTransferConfigsLocationname { + + public static void main(String[] args) throws Exception { + syncListMulticloudDataTransferConfigsLocationname(); + } + + public static void syncListMulticloudDataTransferConfigsLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (MulticloudDataTransferConfig element : + dataTransferServiceClient.listMulticloudDataTransferConfigs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_ListMulticloudDataTransferConfigs_Locationname_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/listmulticlouddatatransferconfigs/SyncListMulticloudDataTransferConfigsString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/listmulticlouddatatransferconfigs/SyncListMulticloudDataTransferConfigsString.java new file mode 100644 index 000000000000..8c9017c55811 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/listmulticlouddatatransferconfigs/SyncListMulticloudDataTransferConfigsString.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_ListMulticloudDataTransferConfigs_String_sync] +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.LocationName; +import com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig; + +public class SyncListMulticloudDataTransferConfigsString { + + public static void main(String[] args) throws Exception { + syncListMulticloudDataTransferConfigsString(); + } + + public static void syncListMulticloudDataTransferConfigsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (MulticloudDataTransferConfig element : + dataTransferServiceClient.listMulticloudDataTransferConfigs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_ListMulticloudDataTransferConfigs_String_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/listmulticlouddatatransfersupportedservices/AsyncListMulticloudDataTransferSupportedServices.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/listmulticlouddatatransfersupportedservices/AsyncListMulticloudDataTransferSupportedServices.java new file mode 100644 index 000000000000..7d0a9b7da864 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/listmulticlouddatatransfersupportedservices/AsyncListMulticloudDataTransferSupportedServices.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_ListMulticloudDataTransferSupportedServices_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferSupportedServicesRequest; +import com.google.cloud.networkconnectivity.v1.LocationName; +import com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService; + +public class AsyncListMulticloudDataTransferSupportedServices { + + public static void main(String[] args) throws Exception { + asyncListMulticloudDataTransferSupportedServices(); + } + + public static void asyncListMulticloudDataTransferSupportedServices() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + ListMulticloudDataTransferSupportedServicesRequest request = + ListMulticloudDataTransferSupportedServicesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + dataTransferServiceClient + .listMulticloudDataTransferSupportedServicesPagedCallable() + .futureCall(request); + // Do something. + for (MulticloudDataTransferSupportedService element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_ListMulticloudDataTransferSupportedServices_async] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/listmulticlouddatatransfersupportedservices/AsyncListMulticloudDataTransferSupportedServicesPaged.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/listmulticlouddatatransfersupportedservices/AsyncListMulticloudDataTransferSupportedServicesPaged.java new file mode 100644 index 000000000000..fc6101f255f6 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/listmulticlouddatatransfersupportedservices/AsyncListMulticloudDataTransferSupportedServicesPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_ListMulticloudDataTransferSupportedServices_Paged_async] +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferSupportedServicesRequest; +import com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferSupportedServicesResponse; +import com.google.cloud.networkconnectivity.v1.LocationName; +import com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService; +import com.google.common.base.Strings; + +public class AsyncListMulticloudDataTransferSupportedServicesPaged { + + public static void main(String[] args) throws Exception { + asyncListMulticloudDataTransferSupportedServicesPaged(); + } + + public static void asyncListMulticloudDataTransferSupportedServicesPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + ListMulticloudDataTransferSupportedServicesRequest request = + ListMulticloudDataTransferSupportedServicesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListMulticloudDataTransferSupportedServicesResponse response = + dataTransferServiceClient + .listMulticloudDataTransferSupportedServicesCallable() + .call(request); + for (MulticloudDataTransferSupportedService element : + response.getMulticloudDataTransferSupportedServicesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_ListMulticloudDataTransferSupportedServices_Paged_async] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/listmulticlouddatatransfersupportedservices/SyncListMulticloudDataTransferSupportedServices.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/listmulticlouddatatransfersupportedservices/SyncListMulticloudDataTransferSupportedServices.java new file mode 100644 index 000000000000..14c056805235 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/listmulticlouddatatransfersupportedservices/SyncListMulticloudDataTransferSupportedServices.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_ListMulticloudDataTransferSupportedServices_sync] +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferSupportedServicesRequest; +import com.google.cloud.networkconnectivity.v1.LocationName; +import com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService; + +public class SyncListMulticloudDataTransferSupportedServices { + + public static void main(String[] args) throws Exception { + syncListMulticloudDataTransferSupportedServices(); + } + + public static void syncListMulticloudDataTransferSupportedServices() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + ListMulticloudDataTransferSupportedServicesRequest request = + ListMulticloudDataTransferSupportedServicesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (MulticloudDataTransferSupportedService element : + dataTransferServiceClient + .listMulticloudDataTransferSupportedServices(request) + .iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_ListMulticloudDataTransferSupportedServices_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/listmulticlouddatatransfersupportedservices/SyncListMulticloudDataTransferSupportedServicesLocationname.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/listmulticlouddatatransfersupportedservices/SyncListMulticloudDataTransferSupportedServicesLocationname.java new file mode 100644 index 000000000000..7bf39b22fd86 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/listmulticlouddatatransfersupportedservices/SyncListMulticloudDataTransferSupportedServicesLocationname.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_ListMulticloudDataTransferSupportedServices_Locationname_sync] +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.LocationName; +import com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService; + +public class SyncListMulticloudDataTransferSupportedServicesLocationname { + + public static void main(String[] args) throws Exception { + syncListMulticloudDataTransferSupportedServicesLocationname(); + } + + public static void syncListMulticloudDataTransferSupportedServicesLocationname() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (MulticloudDataTransferSupportedService element : + dataTransferServiceClient + .listMulticloudDataTransferSupportedServices(parent) + .iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_ListMulticloudDataTransferSupportedServices_Locationname_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/listmulticlouddatatransfersupportedservices/SyncListMulticloudDataTransferSupportedServicesString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/listmulticlouddatatransfersupportedservices/SyncListMulticloudDataTransferSupportedServicesString.java new file mode 100644 index 000000000000..9c9fabf422e0 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/listmulticlouddatatransfersupportedservices/SyncListMulticloudDataTransferSupportedServicesString.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_ListMulticloudDataTransferSupportedServices_String_sync] +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.LocationName; +import com.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService; + +public class SyncListMulticloudDataTransferSupportedServicesString { + + public static void main(String[] args) throws Exception { + syncListMulticloudDataTransferSupportedServicesString(); + } + + public static void syncListMulticloudDataTransferSupportedServicesString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (MulticloudDataTransferSupportedService element : + dataTransferServiceClient + .listMulticloudDataTransferSupportedServices(parent) + .iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_ListMulticloudDataTransferSupportedServices_String_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/setiampolicy/AsyncSetIamPolicy.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/setiampolicy/AsyncSetIamPolicy.java new file mode 100644 index 000000000000..111d9e23f0ac --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/setiampolicy/AsyncSetIamPolicy.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_SetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.GroupName; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class AsyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncSetIamPolicy(); + } + + public static void asyncSetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(GroupName.of("[PROJECT]", "[HUB]", "[GROUP]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + dataTransferServiceClient.setIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_SetIamPolicy_async] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/setiampolicy/SyncSetIamPolicy.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/setiampolicy/SyncSetIamPolicy.java new file mode 100644 index 000000000000..aad93c59016d --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/setiampolicy/SyncSetIamPolicy.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_SetIamPolicy_sync] +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.GroupName; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class SyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicy(); + } + + public static void syncSetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(GroupName.of("[PROJECT]", "[HUB]", "[GROUP]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Policy response = dataTransferServiceClient.setIamPolicy(request); + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_SetIamPolicy_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/testiampermissions/AsyncTestIamPermissions.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/testiampermissions/AsyncTestIamPermissions.java new file mode 100644 index 000000000000..5646a433e4d2 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/testiampermissions/AsyncTestIamPermissions.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_TestIamPermissions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.GroupName; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class AsyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + asyncTestIamPermissions(); + } + + public static void asyncTestIamPermissions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(GroupName.of("[PROJECT]", "[HUB]", "[GROUP]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + ApiFuture future = + dataTransferServiceClient.testIamPermissionsCallable().futureCall(request); + // Do something. + TestIamPermissionsResponse response = future.get(); + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_TestIamPermissions_async] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/testiampermissions/SyncTestIamPermissions.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/testiampermissions/SyncTestIamPermissions.java new file mode 100644 index 000000000000..ce1c7a40f6a6 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/testiampermissions/SyncTestIamPermissions.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_TestIamPermissions_sync] +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.GroupName; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class SyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + syncTestIamPermissions(); + } + + public static void syncTestIamPermissions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(GroupName.of("[PROJECT]", "[HUB]", "[GROUP]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + TestIamPermissionsResponse response = dataTransferServiceClient.testIamPermissions(request); + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_TestIamPermissions_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/updatedestination/AsyncUpdateDestination.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/updatedestination/AsyncUpdateDestination.java new file mode 100644 index 000000000000..fedb8494e724 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/updatedestination/AsyncUpdateDestination.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_UpdateDestination_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.Destination; +import com.google.cloud.networkconnectivity.v1.UpdateDestinationRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateDestination { + + public static void main(String[] args) throws Exception { + asyncUpdateDestination(); + } + + public static void asyncUpdateDestination() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + UpdateDestinationRequest request = + UpdateDestinationRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setDestination(Destination.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + dataTransferServiceClient.updateDestinationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_UpdateDestination_async] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/updatedestination/AsyncUpdateDestinationLRO.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/updatedestination/AsyncUpdateDestinationLRO.java new file mode 100644 index 000000000000..b44565caf8e6 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/updatedestination/AsyncUpdateDestinationLRO.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_UpdateDestination_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.Destination; +import com.google.cloud.networkconnectivity.v1.OperationMetadata; +import com.google.cloud.networkconnectivity.v1.UpdateDestinationRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateDestinationLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateDestinationLRO(); + } + + public static void asyncUpdateDestinationLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + UpdateDestinationRequest request = + UpdateDestinationRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setDestination(Destination.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + dataTransferServiceClient.updateDestinationOperationCallable().futureCall(request); + // Do something. + Destination response = future.get(); + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_UpdateDestination_LRO_async] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/updatedestination/SyncUpdateDestination.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/updatedestination/SyncUpdateDestination.java new file mode 100644 index 000000000000..6854ef327544 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/updatedestination/SyncUpdateDestination.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_UpdateDestination_sync] +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.Destination; +import com.google.cloud.networkconnectivity.v1.UpdateDestinationRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateDestination { + + public static void main(String[] args) throws Exception { + syncUpdateDestination(); + } + + public static void syncUpdateDestination() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + UpdateDestinationRequest request = + UpdateDestinationRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setDestination(Destination.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + Destination response = dataTransferServiceClient.updateDestinationAsync(request).get(); + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_UpdateDestination_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/updatedestination/SyncUpdateDestinationDestinationFieldmask.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/updatedestination/SyncUpdateDestinationDestinationFieldmask.java new file mode 100644 index 000000000000..eed776bab77a --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/updatedestination/SyncUpdateDestinationDestinationFieldmask.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_UpdateDestination_DestinationFieldmask_sync] +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.Destination; +import com.google.protobuf.FieldMask; + +public class SyncUpdateDestinationDestinationFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateDestinationDestinationFieldmask(); + } + + public static void syncUpdateDestinationDestinationFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + Destination destination = Destination.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Destination response = + dataTransferServiceClient.updateDestinationAsync(destination, updateMask).get(); + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_UpdateDestination_DestinationFieldmask_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/updatemulticlouddatatransferconfig/AsyncUpdateMulticloudDataTransferConfig.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/updatemulticlouddatatransferconfig/AsyncUpdateMulticloudDataTransferConfig.java new file mode 100644 index 000000000000..cd62e55c2472 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/updatemulticlouddatatransferconfig/AsyncUpdateMulticloudDataTransferConfig.java @@ -0,0 +1,55 @@ +/* + * 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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_UpdateMulticloudDataTransferConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig; +import com.google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateMulticloudDataTransferConfig { + + public static void main(String[] args) throws Exception { + asyncUpdateMulticloudDataTransferConfig(); + } + + public static void asyncUpdateMulticloudDataTransferConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + UpdateMulticloudDataTransferConfigRequest request = + UpdateMulticloudDataTransferConfigRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setMulticloudDataTransferConfig(MulticloudDataTransferConfig.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + dataTransferServiceClient + .updateMulticloudDataTransferConfigCallable() + .futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_UpdateMulticloudDataTransferConfig_async] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/updatemulticlouddatatransferconfig/AsyncUpdateMulticloudDataTransferConfigLRO.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/updatemulticlouddatatransferconfig/AsyncUpdateMulticloudDataTransferConfigLRO.java new file mode 100644 index 000000000000..61b156b10d1b --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/updatemulticlouddatatransferconfig/AsyncUpdateMulticloudDataTransferConfigLRO.java @@ -0,0 +1,55 @@ +/* + * 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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_UpdateMulticloudDataTransferConfig_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig; +import com.google.cloud.networkconnectivity.v1.OperationMetadata; +import com.google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateMulticloudDataTransferConfigLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateMulticloudDataTransferConfigLRO(); + } + + public static void asyncUpdateMulticloudDataTransferConfigLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + UpdateMulticloudDataTransferConfigRequest request = + UpdateMulticloudDataTransferConfigRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setMulticloudDataTransferConfig(MulticloudDataTransferConfig.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + dataTransferServiceClient + .updateMulticloudDataTransferConfigOperationCallable() + .futureCall(request); + // Do something. + MulticloudDataTransferConfig response = future.get(); + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_UpdateMulticloudDataTransferConfig_LRO_async] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/updatemulticlouddatatransferconfig/SyncUpdateMulticloudDataTransferConfig.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/updatemulticlouddatatransferconfig/SyncUpdateMulticloudDataTransferConfig.java new file mode 100644 index 000000000000..4f63a276a589 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/updatemulticlouddatatransferconfig/SyncUpdateMulticloudDataTransferConfig.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_UpdateMulticloudDataTransferConfig_sync] +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig; +import com.google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateMulticloudDataTransferConfig { + + public static void main(String[] args) throws Exception { + syncUpdateMulticloudDataTransferConfig(); + } + + public static void syncUpdateMulticloudDataTransferConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + UpdateMulticloudDataTransferConfigRequest request = + UpdateMulticloudDataTransferConfigRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setMulticloudDataTransferConfig(MulticloudDataTransferConfig.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + MulticloudDataTransferConfig response = + dataTransferServiceClient.updateMulticloudDataTransferConfigAsync(request).get(); + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_UpdateMulticloudDataTransferConfig_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/updatemulticlouddatatransferconfig/SyncUpdateMulticloudDataTransferConfigMulticlouddatatransferconfigFieldmask.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/updatemulticlouddatatransferconfig/SyncUpdateMulticloudDataTransferConfigMulticlouddatatransferconfigFieldmask.java new file mode 100644 index 000000000000..5afdb63b0469 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservice/updatemulticlouddatatransferconfig/SyncUpdateMulticloudDataTransferConfigMulticlouddatatransferconfigFieldmask.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferService_UpdateMulticloudDataTransferConfig_MulticlouddatatransferconfigFieldmask_sync] +import com.google.cloud.networkconnectivity.v1.DataTransferServiceClient; +import com.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig; +import com.google.protobuf.FieldMask; + +public class SyncUpdateMulticloudDataTransferConfigMulticlouddatatransferconfigFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateMulticloudDataTransferConfigMulticlouddatatransferconfigFieldmask(); + } + + public static void syncUpdateMulticloudDataTransferConfigMulticlouddatatransferconfigFieldmask() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataTransferServiceClient dataTransferServiceClient = DataTransferServiceClient.create()) { + MulticloudDataTransferConfig multicloudDataTransferConfig = + MulticloudDataTransferConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + MulticloudDataTransferConfig response = + dataTransferServiceClient + .updateMulticloudDataTransferConfigAsync(multicloudDataTransferConfig, updateMask) + .get(); + } + } +} +// [END networkconnectivity_v1_generated_DataTransferService_UpdateMulticloudDataTransferConfig_MulticlouddatatransferconfigFieldmask_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservicesettings/createmulticlouddatatransferconfig/SyncCreateMulticloudDataTransferConfig.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservicesettings/createmulticlouddatatransferconfig/SyncCreateMulticloudDataTransferConfig.java new file mode 100644 index 000000000000..277adc67342c --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservicesettings/createmulticlouddatatransferconfig/SyncCreateMulticloudDataTransferConfig.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferServiceSettings_CreateMulticloudDataTransferConfig_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.networkconnectivity.v1.DataTransferServiceSettings; +import java.time.Duration; + +public class SyncCreateMulticloudDataTransferConfig { + + public static void main(String[] args) throws Exception { + syncCreateMulticloudDataTransferConfig(); + } + + public static void syncCreateMulticloudDataTransferConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DataTransferServiceSettings.Builder dataTransferServiceSettingsBuilder = + DataTransferServiceSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + dataTransferServiceSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END networkconnectivity_v1_generated_DataTransferServiceSettings_CreateMulticloudDataTransferConfig_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservicesettings/getmulticlouddatatransferconfig/SyncGetMulticloudDataTransferConfig.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservicesettings/getmulticlouddatatransferconfig/SyncGetMulticloudDataTransferConfig.java new file mode 100644 index 000000000000..784fbb5e2083 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/datatransferservicesettings/getmulticlouddatatransferconfig/SyncGetMulticloudDataTransferConfig.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_DataTransferServiceSettings_GetMulticloudDataTransferConfig_sync] +import com.google.cloud.networkconnectivity.v1.DataTransferServiceSettings; +import java.time.Duration; + +public class SyncGetMulticloudDataTransferConfig { + + public static void main(String[] args) throws Exception { + syncGetMulticloudDataTransferConfig(); + } + + public static void syncGetMulticloudDataTransferConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DataTransferServiceSettings.Builder dataTransferServiceSettingsBuilder = + DataTransferServiceSettings.newBuilder(); + dataTransferServiceSettingsBuilder + .getMulticloudDataTransferConfigSettings() + .setRetrySettings( + dataTransferServiceSettingsBuilder + .getMulticloudDataTransferConfigSettings() + .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()); + DataTransferServiceSettings dataTransferServiceSettings = + dataTransferServiceSettingsBuilder.build(); + } +} +// [END networkconnectivity_v1_generated_DataTransferServiceSettings_GetMulticloudDataTransferConfig_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/stub/datatransferservicestubsettings/createmulticlouddatatransferconfig/SyncCreateMulticloudDataTransferConfig.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/stub/datatransferservicestubsettings/createmulticlouddatatransferconfig/SyncCreateMulticloudDataTransferConfig.java new file mode 100644 index 000000000000..2e408675026d --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/stub/datatransferservicestubsettings/createmulticlouddatatransferconfig/SyncCreateMulticloudDataTransferConfig.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.networkconnectivity.v1.stub.samples; + +// [START networkconnectivity_v1_generated_DataTransferServiceStubSettings_CreateMulticloudDataTransferConfig_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.networkconnectivity.v1.stub.DataTransferServiceStubSettings; +import java.time.Duration; + +public class SyncCreateMulticloudDataTransferConfig { + + public static void main(String[] args) throws Exception { + syncCreateMulticloudDataTransferConfig(); + } + + public static void syncCreateMulticloudDataTransferConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DataTransferServiceStubSettings.Builder dataTransferServiceSettingsBuilder = + DataTransferServiceStubSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + dataTransferServiceSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END networkconnectivity_v1_generated_DataTransferServiceStubSettings_CreateMulticloudDataTransferConfig_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/stub/datatransferservicestubsettings/getmulticlouddatatransferconfig/SyncGetMulticloudDataTransferConfig.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/stub/datatransferservicestubsettings/getmulticlouddatatransferconfig/SyncGetMulticloudDataTransferConfig.java new file mode 100644 index 000000000000..2ddcb516ac59 --- /dev/null +++ b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/stub/datatransferservicestubsettings/getmulticlouddatatransferconfig/SyncGetMulticloudDataTransferConfig.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.networkconnectivity.v1.stub.samples; + +// [START networkconnectivity_v1_generated_DataTransferServiceStubSettings_GetMulticloudDataTransferConfig_sync] +import com.google.cloud.networkconnectivity.v1.stub.DataTransferServiceStubSettings; +import java.time.Duration; + +public class SyncGetMulticloudDataTransferConfig { + + public static void main(String[] args) throws Exception { + syncGetMulticloudDataTransferConfig(); + } + + public static void syncGetMulticloudDataTransferConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DataTransferServiceStubSettings.Builder dataTransferServiceSettingsBuilder = + DataTransferServiceStubSettings.newBuilder(); + dataTransferServiceSettingsBuilder + .getMulticloudDataTransferConfigSettings() + .setRetrySettings( + dataTransferServiceSettingsBuilder + .getMulticloudDataTransferConfigSettings() + .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()); + DataTransferServiceStubSettings dataTransferServiceSettings = + dataTransferServiceSettingsBuilder.build(); + } +} +// [END networkconnectivity_v1_generated_DataTransferServiceStubSettings_GetMulticloudDataTransferConfig_sync] diff --git a/java-networkservices/README.md b/java-networkservices/README.md index 343beedca9b4..3986b6474b80 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.66.0 + 26.67.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.28.0 + 0.29.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-networkservices:0.28.0' +implementation 'com.google.cloud:google-cloud-networkservices:0.29.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-networkservices" % "0.28.0" +libraryDependencies += "com.google.cloud" % "google-cloud-networkservices" % "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-networkservices.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-networkservices/0.28.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-networkservices/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-notebooks/README.md b/java-notebooks/README.md index b495e125c9eb..38a26fea5d9d 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.66.0 + 26.67.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.70.0 + 1.71.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-notebooks:1.70.0' +implementation 'com.google.cloud:google-cloud-notebooks:1.71.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-notebooks" % "1.70.0" +libraryDependencies += "com.google.cloud" % "google-cloud-notebooks" % "1.71.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.70.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-notebooks/1.71.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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 d361f83f2fe0..6d1bb362aec8 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.66.0 + 26.67.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.70.0 + 1.71.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-optimization:1.70.0' +implementation 'com.google.cloud:google-cloud-optimization:1.71.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-optimization" % "1.70.0" +libraryDependencies += "com.google.cloud" % "google-cloud-optimization" % "1.71.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.70.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-optimization/1.71.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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 a0c3fa8f896c..d5574bf76186 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.66.0 + 26.67.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.21.0 + 0.22.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-oracledatabase:0.21.0' +implementation 'com.google.cloud:google-cloud-oracledatabase:0.22.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-oracledatabase" % "0.21.0" +libraryDependencies += "com.google.cloud" % "google-cloud-oracledatabase" % "0.22.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.21.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-oracledatabase/0.22.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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 4a8dfc09c56f..be70ee7a48b7 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.66.0 + 26.67.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.72.0 + 1.73.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-orchestration-airflow:1.72.0' +implementation 'com.google.cloud:google-cloud-orchestration-airflow:1.73.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-orchestration-airflow" % "1.72.0" +libraryDependencies += "com.google.cloud" % "google-cloud-orchestration-airflow" % "1.73.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.72.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-orchestration-airflow/1.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-orgpolicy/README.md b/java-orgpolicy/README.md index 6982f8a230e2..f0ecd9ea00bf 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.66.0 + 26.67.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.72.0 + 2.73.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-orgpolicy:2.72.0' +implementation 'com.google.cloud:google-cloud-orgpolicy:2.73.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-orgpolicy" % "2.72.0" +libraryDependencies += "com.google.cloud" % "google-cloud-orgpolicy" % "2.73.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.72.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-orgpolicy/2.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-os-config/README.md b/java-os-config/README.md index c41edc5230bc..5fab3fcfb346 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.66.0 + 26.67.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.74.0 + 2.75.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-os-config:2.74.0' +implementation 'com.google.cloud:google-cloud-os-config:2.75.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-os-config" % "2.74.0" +libraryDependencies += "com.google.cloud" % "google-cloud-os-config" % "2.75.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.74.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-os-config/2.75.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-os-login/README.md b/java-os-login/README.md index 14c5696e27c8..aa6d9c7ceffa 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.66.0 + 26.67.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.71.0 + 2.72.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-os-login:2.71.0' +implementation 'com.google.cloud:google-cloud-os-login:2.72.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-os-login" % "2.71.0" +libraryDependencies += "com.google.cloud" % "google-cloud-os-login" % "2.72.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-os-login.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-os-login/2.71.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-os-login/2.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-parallelstore/README.md b/java-parallelstore/README.md index 572873492db5..7cef9a3a81da 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.66.0 + 26.67.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.35.0 + 0.36.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-parallelstore:0.35.0' +implementation 'com.google.cloud:google-cloud-parallelstore:0.36.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-parallelstore" % "0.35.0" +libraryDependencies += "com.google.cloud" % "google-cloud-parallelstore" % "0.36.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.35.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-parallelstore/0.36.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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 82a0114e6534..774142983f4b 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.66.0 + 26.67.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.16.0 + 0.17.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-parametermanager:0.16.0' +implementation 'com.google.cloud:google-cloud-parametermanager:0.17.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-parametermanager" % "0.16.0" +libraryDependencies += "com.google.cloud" % "google-cloud-parametermanager" % "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-parametermanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-parametermanager/0.16.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-parametermanager/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-phishingprotection/README.md b/java-phishingprotection/README.md index 906c96b34512..6ed1ffc4b8fb 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.66.0 + 26.67.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.103.0 + 0.104.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-phishingprotection:0.103.0' +implementation 'com.google.cloud:google-cloud-phishingprotection:0.104.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-phishingprotection" % "0.103.0" +libraryDependencies += "com.google.cloud" % "google-cloud-phishingprotection" % "0.104.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.103.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-phishingprotection/0.104.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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 b9204ca2ebdf..6bdeb0ee12f7 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.66.0 + 26.67.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.71.0 + 1.72.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-policy-troubleshooter:1.71.0' +implementation 'com.google.cloud:google-cloud-policy-troubleshooter:1.72.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-policy-troubleshooter" % "1.71.0" +libraryDependencies += "com.google.cloud" % "google-cloud-policy-troubleshooter" % "1.72.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-policy-troubleshooter.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-policy-troubleshooter/1.71.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-policy-troubleshooter/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-policysimulator/README.md b/java-policysimulator/README.md index fcc5137c3ceb..da5e24c3520b 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.66.0 + 26.67.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.51.0 + 0.52.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-policysimulator:0.51.0' +implementation 'com.google.cloud:google-cloud-policysimulator:0.52.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-policysimulator" % "0.51.0" +libraryDependencies += "com.google.cloud" % "google-cloud-policysimulator" % "0.52.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.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-policysimulator/0.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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 f04a3fbcf8b1..82fe25e3258c 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.66.0 + 26.67.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.74.0 + 0.75.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-private-catalog:0.74.0' +implementation 'com.google.cloud:google-cloud-private-catalog:0.75.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-private-catalog" % "0.74.0" +libraryDependencies += "com.google.cloud" % "google-cloud-private-catalog" % "0.75.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-private-catalog.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-private-catalog/0.74.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-private-catalog/0.75.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-privilegedaccessmanager/README.md b/java-privilegedaccessmanager/README.md index 712a11a34f4e..d26f2c0e55cb 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.66.0 + 26.67.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.26.0 + 0.27.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-privilegedaccessmanager:0.26.0' +implementation 'com.google.cloud:google-cloud-privilegedaccessmanager:0.27.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-privilegedaccessmanager" % "0.26.0" +libraryDependencies += "com.google.cloud" % "google-cloud-privilegedaccessmanager" % "0.27.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.26.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-privilegedaccessmanager/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-profiler/README.md b/java-profiler/README.md index d22542da4c78..1271f4626d32 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.66.0 + 26.67.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.72.0 + 2.73.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-profiler:2.72.0' +implementation 'com.google.cloud:google-cloud-profiler:2.73.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-profiler" % "2.72.0" +libraryDependencies += "com.google.cloud" % "google-cloud-profiler" % "2.73.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.72.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-profiler/2.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-publicca/README.md b/java-publicca/README.md index 918d3446cfd7..287604bb4aff 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.66.0 + 26.67.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.69.0 + 0.70.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-publicca:0.69.0' +implementation 'com.google.cloud:google-cloud-publicca:0.70.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-publicca" % "0.69.0" +libraryDependencies += "com.google.cloud" % "google-cloud-publicca" % "0.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-publicca.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-publicca/0.69.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-publicca/0.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-publicca/grpc-google-cloud-publicca-v1beta1/src/main/java/com/google/cloud/security/publicca/v1beta1/PublicCertificateAuthorityServiceGrpc.java b/java-publicca/grpc-google-cloud-publicca-v1beta1/src/main/java/com/google/cloud/security/publicca/v1beta1/PublicCertificateAuthorityServiceGrpc.java index a1b8b334e6f3..7f47ae8dad6c 100644 --- a/java-publicca/grpc-google-cloud-publicca-v1beta1/src/main/java/com/google/cloud/security/publicca/v1beta1/PublicCertificateAuthorityServiceGrpc.java +++ b/java-publicca/grpc-google-cloud-publicca-v1beta1/src/main/java/com/google/cloud/security/publicca/v1beta1/PublicCertificateAuthorityServiceGrpc.java @@ -164,7 +164,9 @@ public interface AsyncService { * * *
    -     * Creates a new [ExternalAccountKey][google.cloud.security.publicca.v1beta1.ExternalAccountKey] bound to the project.
    +     * Creates a new
    +     * [ExternalAccountKey][google.cloud.security.publicca.v1beta1.ExternalAccountKey]
    +     * bound to the project.
          * 
    */ default void createExternalAccountKey( @@ -221,7 +223,9 @@ protected PublicCertificateAuthorityServiceStub build( * * *
    -     * Creates a new [ExternalAccountKey][google.cloud.security.publicca.v1beta1.ExternalAccountKey] bound to the project.
    +     * Creates a new
    +     * [ExternalAccountKey][google.cloud.security.publicca.v1beta1.ExternalAccountKey]
    +     * bound to the project.
          * 
    */ public void createExternalAccountKey( @@ -262,7 +266,9 @@ protected PublicCertificateAuthorityServiceBlockingV2Stub build( * * *
    -     * Creates a new [ExternalAccountKey][google.cloud.security.publicca.v1beta1.ExternalAccountKey] bound to the project.
    +     * Creates a new
    +     * [ExternalAccountKey][google.cloud.security.publicca.v1beta1.ExternalAccountKey]
    +     * bound to the project.
          * 
    */ public com.google.cloud.security.publicca.v1beta1.ExternalAccountKey createExternalAccountKey( @@ -299,7 +305,9 @@ protected PublicCertificateAuthorityServiceBlockingStub build( * * *
    -     * Creates a new [ExternalAccountKey][google.cloud.security.publicca.v1beta1.ExternalAccountKey] bound to the project.
    +     * Creates a new
    +     * [ExternalAccountKey][google.cloud.security.publicca.v1beta1.ExternalAccountKey]
    +     * bound to the project.
          * 
    */ public com.google.cloud.security.publicca.v1beta1.ExternalAccountKey createExternalAccountKey( @@ -336,7 +344,9 @@ protected PublicCertificateAuthorityServiceFutureStub build( * * *
    -     * Creates a new [ExternalAccountKey][google.cloud.security.publicca.v1beta1.ExternalAccountKey] bound to the project.
    +     * Creates a new
    +     * [ExternalAccountKey][google.cloud.security.publicca.v1beta1.ExternalAccountKey]
    +     * bound to the project.
          * 
    */ public com.google.common.util.concurrent.ListenableFuture< diff --git a/java-publicca/proto-google-cloud-publicca-v1beta1/src/main/java/com/google/cloud/security/publicca/v1beta1/CreateExternalAccountKeyRequest.java b/java-publicca/proto-google-cloud-publicca-v1beta1/src/main/java/com/google/cloud/security/publicca/v1beta1/CreateExternalAccountKeyRequest.java index 2290a77f3374..b3fbd03433b6 100644 --- a/java-publicca/proto-google-cloud-publicca-v1beta1/src/main/java/com/google/cloud/security/publicca/v1beta1/CreateExternalAccountKeyRequest.java +++ b/java-publicca/proto-google-cloud-publicca-v1beta1/src/main/java/com/google/cloud/security/publicca/v1beta1/CreateExternalAccountKeyRequest.java @@ -23,7 +23,9 @@ * * *
    - * Creates a new [ExternalAccountKey][google.cloud.security.publicca.v1beta1.ExternalAccountKey] in a given project.
    + * Creates a new
    + * [ExternalAccountKey][google.cloud.security.publicca.v1beta1.ExternalAccountKey]
    + * in a given project.
      * 
    * * Protobuf type {@code google.cloud.security.publicca.v1beta1.CreateExternalAccountKeyRequest} @@ -76,9 +78,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * Required. The parent resource where this external_account_key will be created.
    -   * Format: projects/[project_id]/locations/[location].
    -   * At present only the "global" location is supported.
    +   * Required. The parent resource where this external_account_key will be
    +   * created. Format: projects/[project_id]/locations/[location]. At present
    +   * only the "global" location is supported.
        * 
    * * @@ -104,9 +106,9 @@ public java.lang.String getParent() { * * *
    -   * Required. The parent resource where this external_account_key will be created.
    -   * Format: projects/[project_id]/locations/[location].
    -   * At present only the "global" location is supported.
    +   * Required. The parent resource where this external_account_key will be
    +   * created. Format: projects/[project_id]/locations/[location]. At present
    +   * only the "global" location is supported.
        * 
    * * @@ -135,9 +137,9 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
    -   * Required. The external account key to create. This field only exists to future-proof
    -   * the API. At present, all fields in ExternalAccountKey are output only and
    -   * all values are ignored. For the purpose of the
    +   * Required. The external account key to create. This field only exists to
    +   * future-proof the API. At present, all fields in ExternalAccountKey are
    +   * output only and all values are ignored. For the purpose of the
        * CreateExternalAccountKeyRequest, set it to a default/empty value.
        * 
    * @@ -156,9 +158,9 @@ public boolean hasExternalAccountKey() { * * *
    -   * Required. The external account key to create. This field only exists to future-proof
    -   * the API. At present, all fields in ExternalAccountKey are output only and
    -   * all values are ignored. For the purpose of the
    +   * Required. The external account key to create. This field only exists to
    +   * future-proof the API. At present, all fields in ExternalAccountKey are
    +   * output only and all values are ignored. For the purpose of the
        * CreateExternalAccountKeyRequest, set it to a default/empty value.
        * 
    * @@ -179,9 +181,9 @@ public com.google.cloud.security.publicca.v1beta1.ExternalAccountKey getExternal * * *
    -   * Required. The external account key to create. This field only exists to future-proof
    -   * the API. At present, all fields in ExternalAccountKey are output only and
    -   * all values are ignored. For the purpose of the
    +   * Required. The external account key to create. This field only exists to
    +   * future-proof the API. At present, all fields in ExternalAccountKey are
    +   * output only and all values are ignored. For the purpose of the
        * CreateExternalAccountKeyRequest, set it to a default/empty value.
        * 
    * @@ -383,7 +385,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
    -   * Creates a new [ExternalAccountKey][google.cloud.security.publicca.v1beta1.ExternalAccountKey] in a given project.
    +   * Creates a new
    +   * [ExternalAccountKey][google.cloud.security.publicca.v1beta1.ExternalAccountKey]
    +   * in a given project.
        * 
    * * Protobuf type {@code google.cloud.security.publicca.v1beta1.CreateExternalAccountKeyRequest} @@ -612,9 +616,9 @@ public Builder mergeFrom( * * *
    -     * Required. The parent resource where this external_account_key will be created.
    -     * Format: projects/[project_id]/locations/[location].
    -     * At present only the "global" location is supported.
    +     * Required. The parent resource where this external_account_key will be
    +     * created. Format: projects/[project_id]/locations/[location]. At present
    +     * only the "global" location is supported.
          * 
    * * @@ -639,9 +643,9 @@ public java.lang.String getParent() { * * *
    -     * Required. The parent resource where this external_account_key will be created.
    -     * Format: projects/[project_id]/locations/[location].
    -     * At present only the "global" location is supported.
    +     * Required. The parent resource where this external_account_key will be
    +     * created. Format: projects/[project_id]/locations/[location]. At present
    +     * only the "global" location is supported.
          * 
    * * @@ -666,9 +670,9 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
    -     * Required. The parent resource where this external_account_key will be created.
    -     * Format: projects/[project_id]/locations/[location].
    -     * At present only the "global" location is supported.
    +     * Required. The parent resource where this external_account_key will be
    +     * created. Format: projects/[project_id]/locations/[location]. At present
    +     * only the "global" location is supported.
          * 
    * * @@ -692,9 +696,9 @@ public Builder setParent(java.lang.String value) { * * *
    -     * Required. The parent resource where this external_account_key will be created.
    -     * Format: projects/[project_id]/locations/[location].
    -     * At present only the "global" location is supported.
    +     * Required. The parent resource where this external_account_key will be
    +     * created. Format: projects/[project_id]/locations/[location]. At present
    +     * only the "global" location is supported.
          * 
    * * @@ -714,9 +718,9 @@ public Builder clearParent() { * * *
    -     * Required. The parent resource where this external_account_key will be created.
    -     * Format: projects/[project_id]/locations/[location].
    -     * At present only the "global" location is supported.
    +     * Required. The parent resource where this external_account_key will be
    +     * created. Format: projects/[project_id]/locations/[location]. At present
    +     * only the "global" location is supported.
          * 
    * * @@ -748,9 +752,9 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
    -     * Required. The external account key to create. This field only exists to future-proof
    -     * the API. At present, all fields in ExternalAccountKey are output only and
    -     * all values are ignored. For the purpose of the
    +     * Required. The external account key to create. This field only exists to
    +     * future-proof the API. At present, all fields in ExternalAccountKey are
    +     * output only and all values are ignored. For the purpose of the
          * CreateExternalAccountKeyRequest, set it to a default/empty value.
          * 
    * @@ -768,9 +772,9 @@ public boolean hasExternalAccountKey() { * * *
    -     * Required. The external account key to create. This field only exists to future-proof
    -     * the API. At present, all fields in ExternalAccountKey are output only and
    -     * all values are ignored. For the purpose of the
    +     * Required. The external account key to create. This field only exists to
    +     * future-proof the API. At present, all fields in ExternalAccountKey are
    +     * output only and all values are ignored. For the purpose of the
          * CreateExternalAccountKeyRequest, set it to a default/empty value.
          * 
    * @@ -794,9 +798,9 @@ public com.google.cloud.security.publicca.v1beta1.ExternalAccountKey getExternal * * *
    -     * Required. The external account key to create. This field only exists to future-proof
    -     * the API. At present, all fields in ExternalAccountKey are output only and
    -     * all values are ignored. For the purpose of the
    +     * Required. The external account key to create. This field only exists to
    +     * future-proof the API. At present, all fields in ExternalAccountKey are
    +     * output only and all values are ignored. For the purpose of the
          * CreateExternalAccountKeyRequest, set it to a default/empty value.
          * 
    * @@ -823,9 +827,9 @@ public Builder setExternalAccountKey( * * *
    -     * Required. The external account key to create. This field only exists to future-proof
    -     * the API. At present, all fields in ExternalAccountKey are output only and
    -     * all values are ignored. For the purpose of the
    +     * Required. The external account key to create. This field only exists to
    +     * future-proof the API. At present, all fields in ExternalAccountKey are
    +     * output only and all values are ignored. For the purpose of the
          * CreateExternalAccountKeyRequest, set it to a default/empty value.
          * 
    * @@ -849,9 +853,9 @@ public Builder setExternalAccountKey( * * *
    -     * Required. The external account key to create. This field only exists to future-proof
    -     * the API. At present, all fields in ExternalAccountKey are output only and
    -     * all values are ignored. For the purpose of the
    +     * Required. The external account key to create. This field only exists to
    +     * future-proof the API. At present, all fields in ExternalAccountKey are
    +     * output only and all values are ignored. For the purpose of the
          * CreateExternalAccountKeyRequest, set it to a default/empty value.
          * 
    * @@ -885,9 +889,9 @@ public Builder mergeExternalAccountKey( * * *
    -     * Required. The external account key to create. This field only exists to future-proof
    -     * the API. At present, all fields in ExternalAccountKey are output only and
    -     * all values are ignored. For the purpose of the
    +     * Required. The external account key to create. This field only exists to
    +     * future-proof the API. At present, all fields in ExternalAccountKey are
    +     * output only and all values are ignored. For the purpose of the
          * CreateExternalAccountKeyRequest, set it to a default/empty value.
          * 
    * @@ -910,9 +914,9 @@ public Builder clearExternalAccountKey() { * * *
    -     * Required. The external account key to create. This field only exists to future-proof
    -     * the API. At present, all fields in ExternalAccountKey are output only and
    -     * all values are ignored. For the purpose of the
    +     * Required. The external account key to create. This field only exists to
    +     * future-proof the API. At present, all fields in ExternalAccountKey are
    +     * output only and all values are ignored. For the purpose of the
          * CreateExternalAccountKeyRequest, set it to a default/empty value.
          * 
    * @@ -931,9 +935,9 @@ public Builder clearExternalAccountKey() { * * *
    -     * Required. The external account key to create. This field only exists to future-proof
    -     * the API. At present, all fields in ExternalAccountKey are output only and
    -     * all values are ignored. For the purpose of the
    +     * Required. The external account key to create. This field only exists to
    +     * future-proof the API. At present, all fields in ExternalAccountKey are
    +     * output only and all values are ignored. For the purpose of the
          * CreateExternalAccountKeyRequest, set it to a default/empty value.
          * 
    * @@ -956,9 +960,9 @@ public Builder clearExternalAccountKey() { * * *
    -     * Required. The external account key to create. This field only exists to future-proof
    -     * the API. At present, all fields in ExternalAccountKey are output only and
    -     * all values are ignored. For the purpose of the
    +     * Required. The external account key to create. This field only exists to
    +     * future-proof the API. At present, all fields in ExternalAccountKey are
    +     * output only and all values are ignored. For the purpose of the
          * CreateExternalAccountKeyRequest, set it to a default/empty value.
          * 
    * diff --git a/java-publicca/proto-google-cloud-publicca-v1beta1/src/main/java/com/google/cloud/security/publicca/v1beta1/CreateExternalAccountKeyRequestOrBuilder.java b/java-publicca/proto-google-cloud-publicca-v1beta1/src/main/java/com/google/cloud/security/publicca/v1beta1/CreateExternalAccountKeyRequestOrBuilder.java index 8512bcb5c12c..572bc2f24422 100644 --- a/java-publicca/proto-google-cloud-publicca-v1beta1/src/main/java/com/google/cloud/security/publicca/v1beta1/CreateExternalAccountKeyRequestOrBuilder.java +++ b/java-publicca/proto-google-cloud-publicca-v1beta1/src/main/java/com/google/cloud/security/publicca/v1beta1/CreateExternalAccountKeyRequestOrBuilder.java @@ -28,9 +28,9 @@ public interface CreateExternalAccountKeyRequestOrBuilder * * *
    -   * Required. The parent resource where this external_account_key will be created.
    -   * Format: projects/[project_id]/locations/[location].
    -   * At present only the "global" location is supported.
    +   * Required. The parent resource where this external_account_key will be
    +   * created. Format: projects/[project_id]/locations/[location]. At present
    +   * only the "global" location is supported.
        * 
    * * @@ -45,9 +45,9 @@ public interface CreateExternalAccountKeyRequestOrBuilder * * *
    -   * Required. The parent resource where this external_account_key will be created.
    -   * Format: projects/[project_id]/locations/[location].
    -   * At present only the "global" location is supported.
    +   * Required. The parent resource where this external_account_key will be
    +   * created. Format: projects/[project_id]/locations/[location]. At present
    +   * only the "global" location is supported.
        * 
    * * @@ -62,9 +62,9 @@ public interface CreateExternalAccountKeyRequestOrBuilder * * *
    -   * Required. The external account key to create. This field only exists to future-proof
    -   * the API. At present, all fields in ExternalAccountKey are output only and
    -   * all values are ignored. For the purpose of the
    +   * Required. The external account key to create. This field only exists to
    +   * future-proof the API. At present, all fields in ExternalAccountKey are
    +   * output only and all values are ignored. For the purpose of the
        * CreateExternalAccountKeyRequest, set it to a default/empty value.
        * 
    * @@ -80,9 +80,9 @@ public interface CreateExternalAccountKeyRequestOrBuilder * * *
    -   * Required. The external account key to create. This field only exists to future-proof
    -   * the API. At present, all fields in ExternalAccountKey are output only and
    -   * all values are ignored. For the purpose of the
    +   * Required. The external account key to create. This field only exists to
    +   * future-proof the API. At present, all fields in ExternalAccountKey are
    +   * output only and all values are ignored. For the purpose of the
        * CreateExternalAccountKeyRequest, set it to a default/empty value.
        * 
    * @@ -98,9 +98,9 @@ public interface CreateExternalAccountKeyRequestOrBuilder * * *
    -   * Required. The external account key to create. This field only exists to future-proof
    -   * the API. At present, all fields in ExternalAccountKey are output only and
    -   * all values are ignored. For the purpose of the
    +   * Required. The external account key to create. This field only exists to
    +   * future-proof the API. At present, all fields in ExternalAccountKey are
    +   * output only and all values are ignored. For the purpose of the
        * CreateExternalAccountKeyRequest, set it to a default/empty value.
        * 
    * diff --git a/java-publicca/proto-google-cloud-publicca-v1beta1/src/main/java/com/google/cloud/security/publicca/v1beta1/ResourcesProto.java b/java-publicca/proto-google-cloud-publicca-v1beta1/src/main/java/com/google/cloud/security/publicca/v1beta1/ResourcesProto.java index d040c2e11928..8c4bbe58d086 100644 --- a/java-publicca/proto-google-cloud-publicca-v1beta1/src/main/java/com/google/cloud/security/publicca/v1beta1/ResourcesProto.java +++ b/java-publicca/proto-google-cloud-publicca-v1beta1/src/main/java/com/google/cloud/security/publicca/v1beta1/ResourcesProto.java @@ -50,14 +50,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "B\003\340A\003:\204\001\352A\200\001\n*publicca.googleapis.com/Ex" + "ternalAccountKey\022Rprojects/{project}/loc" + "ations/{location}/externalAccountKeys/{e" - + "xternal_account_key}B\210\002\n*com.google.clou" + + "xternal_account_key}B\205\002\n*com.google.clou" + "d.security.publicca.v1beta1B\016ResourcesPr" + "otoP\001ZFcloud.google.com/go/security/publ" - + "icca/apiv1beta1/publiccapb;publiccapb\370\001\001" - + "\252\002&Google.Cloud.Security.PublicCA.V1Beta" - + "1\312\002&Google\\Cloud\\Security\\PublicCA\\V1bet" - + "a1\352\002*Google::Cloud::Security::PublicCA::" - + "V1beta1b\006proto3" + + "icca/apiv1beta1/publiccapb;publiccapb\252\002&" + + "Google.Cloud.Security.PublicCA.V1Beta1\312\002" + + "&Google\\Cloud\\Security\\PublicCA\\V1beta1\352" + + "\002*Google::Cloud::Security::PublicCA::V1b" + + "eta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-publicca/proto-google-cloud-publicca-v1beta1/src/main/java/com/google/cloud/security/publicca/v1beta1/ServiceProto.java b/java-publicca/proto-google-cloud-publicca-v1beta1/src/main/java/com/google/cloud/security/publicca/v1beta1/ServiceProto.java index 2c12264ca759..53b2e9b0a696 100644 --- a/java-publicca/proto-google-cloud-publicca-v1beta1/src/main/java/com/google/cloud/security/publicca/v1beta1/ServiceProto.java +++ b/java-publicca/proto-google-cloud-publicca-v1beta1/src/main/java/com/google/cloud/security/publicca/v1beta1/ServiceProto.java @@ -62,14 +62,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "=projects/*/locations/*}/externalAccount" + "Keys:\024external_account_key\032K\312A\027publicca." + "googleapis.com\322A.https://www.googleapis." - + "com/auth/cloud-platformB\206\002\n*com.google.c" + + "com/auth/cloud-platformB\203\002\n*com.google.c" + "loud.security.publicca.v1beta1B\014ServiceP" + "rotoP\001ZFcloud.google.com/go/security/pub" - + "licca/apiv1beta1/publiccapb;publiccapb\370\001" - + "\001\252\002&Google.Cloud.Security.PublicCA.V1Bet" - + "a1\312\002&Google\\Cloud\\Security\\PublicCA\\V1be" - + "ta1\352\002*Google::Cloud::Security::PublicCA:" - + ":V1beta1b\006proto3" + + "licca/apiv1beta1/publiccapb;publiccapb\252\002" + + "&Google.Cloud.Security.PublicCA.V1Beta1\312" + + "\002&Google\\Cloud\\Security\\PublicCA\\V1beta1" + + "\352\002*Google::Cloud::Security::PublicCA::V1" + + "beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-publicca/proto-google-cloud-publicca-v1beta1/src/main/proto/google/cloud/security/publicca/v1beta1/resources.proto b/java-publicca/proto-google-cloud-publicca-v1beta1/src/main/proto/google/cloud/security/publicca/v1beta1/resources.proto index 7cdd9527fc0d..ce3e245f22d3 100644 --- a/java-publicca/proto-google-cloud-publicca-v1beta1/src/main/proto/google/cloud/security/publicca/v1beta1/resources.proto +++ b/java-publicca/proto-google-cloud-publicca-v1beta1/src/main/proto/google/cloud/security/publicca/v1beta1/resources.proto @@ -19,7 +19,6 @@ package google.cloud.security.publicca.v1beta1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Security.PublicCA.V1Beta1"; option go_package = "cloud.google.com/go/security/publicca/apiv1beta1/publiccapb;publiccapb"; option java_multiple_files = true; diff --git a/java-publicca/proto-google-cloud-publicca-v1beta1/src/main/proto/google/cloud/security/publicca/v1beta1/service.proto b/java-publicca/proto-google-cloud-publicca-v1beta1/src/main/proto/google/cloud/security/publicca/v1beta1/service.proto index 0ffbb912f04b..617c806c20a3 100644 --- a/java-publicca/proto-google-cloud-publicca-v1beta1/src/main/proto/google/cloud/security/publicca/v1beta1/service.proto +++ b/java-publicca/proto-google-cloud-publicca-v1beta1/src/main/proto/google/cloud/security/publicca/v1beta1/service.proto @@ -22,7 +22,6 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/security/publicca/v1beta1/resources.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Security.PublicCA.V1Beta1"; option go_package = "cloud.google.com/go/security/publicca/apiv1beta1/publiccapb;publiccapb"; option java_multiple_files = true; @@ -36,10 +35,14 @@ option ruby_package = "Google::Cloud::Security::PublicCA::V1beta1"; // the public certificate authority service. service PublicCertificateAuthorityService { option (google.api.default_host) = "publicca.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; - // Creates a new [ExternalAccountKey][google.cloud.security.publicca.v1beta1.ExternalAccountKey] bound to the project. - rpc CreateExternalAccountKey(CreateExternalAccountKeyRequest) returns (ExternalAccountKey) { + // Creates a new + // [ExternalAccountKey][google.cloud.security.publicca.v1beta1.ExternalAccountKey] + // bound to the project. + rpc CreateExternalAccountKey(CreateExternalAccountKeyRequest) + returns (ExternalAccountKey) { option (google.api.http) = { post: "/v1beta1/{parent=projects/*/locations/*}/externalAccountKeys" body: "external_account_key" @@ -48,11 +51,13 @@ service PublicCertificateAuthorityService { } } -// Creates a new [ExternalAccountKey][google.cloud.security.publicca.v1beta1.ExternalAccountKey] in a given project. +// Creates a new +// [ExternalAccountKey][google.cloud.security.publicca.v1beta1.ExternalAccountKey] +// in a given project. message CreateExternalAccountKeyRequest { - // Required. The parent resource where this external_account_key will be created. - // Format: projects/[project_id]/locations/[location]. - // At present only the "global" location is supported. + // Required. The parent resource where this external_account_key will be + // created. Format: projects/[project_id]/locations/[location]. At present + // only the "global" location is supported. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -60,9 +65,10 @@ message CreateExternalAccountKeyRequest { } ]; - // Required. The external account key to create. This field only exists to future-proof - // the API. At present, all fields in ExternalAccountKey are output only and - // all values are ignored. For the purpose of the + // Required. The external account key to create. This field only exists to + // future-proof the API. At present, all fields in ExternalAccountKey are + // output only and all values are ignored. For the purpose of the // CreateExternalAccountKeyRequest, set it to a default/empty value. - ExternalAccountKey external_account_key = 2 [(google.api.field_behavior) = REQUIRED]; + ExternalAccountKey external_account_key = 2 + [(google.api.field_behavior) = REQUIRED]; } diff --git a/java-rapidmigrationassessment/README.md b/java-rapidmigrationassessment/README.md index 2e74d9a7a90d..3804dcbaa9fe 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.66.0 + 26.67.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.55.0 + 0.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-rapidmigrationassessment:0.55.0' +implementation 'com.google.cloud:google-cloud-rapidmigrationassessment:0.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-rapidmigrationassessment" % "0.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-rapidmigrationassessment" % "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-rapidmigrationassessment.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-rapidmigrationassessment/0.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-rapidmigrationassessment/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-recaptchaenterprise/README.md b/java-recaptchaenterprise/README.md index 0aeb855b7cd7..f100e0130300 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.66.0 + 26.67.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.69.0 + 3.70.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-recaptchaenterprise:3.69.0' +implementation 'com.google.cloud:google-cloud-recaptchaenterprise:3.70.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-recaptchaenterprise" % "3.69.0" +libraryDependencies += "com.google.cloud" % "google-cloud-recaptchaenterprise" % "3.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-recaptchaenterprise.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recaptchaenterprise/3.69.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recaptchaenterprise/3.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-recommendations-ai/README.md b/java-recommendations-ai/README.md index 65218ea40195..c1b29c4b6d00 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.66.0 + 26.67.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.79.0 + 0.80.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-recommendations-ai:0.79.0' +implementation 'com.google.cloud:google-cloud-recommendations-ai:0.80.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-recommendations-ai" % "0.79.0" +libraryDependencies += "com.google.cloud" % "google-cloud-recommendations-ai" % "0.80.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.79.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recommendations-ai/0.80.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-recommender/README.md b/java-recommender/README.md index 8ff0204f6468..ce33b4ad0381 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.66.0 + 26.67.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.74.0 + 2.75.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-recommender:2.74.0' +implementation 'com.google.cloud:google-cloud-recommender:2.75.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-recommender" % "2.74.0" +libraryDependencies += "com.google.cloud" % "google-cloud-recommender" % "2.75.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.74.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recommender/2.75.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-redis-cluster/README.md b/java-redis-cluster/README.md index f4aec480dfcf..88583f59b366 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.66.0 + 26.67.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.44.0 + 0.45.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-redis-cluster:0.44.0' +implementation 'com.google.cloud:google-cloud-redis-cluster:0.45.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-redis-cluster" % "0.44.0" +libraryDependencies += "com.google.cloud" % "google-cloud-redis-cluster" % "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-redis-cluster.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-redis-cluster/0.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-redis-cluster/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-redis/README.md b/java-redis/README.md index e37627847127..4fda11a92cdf 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.66.0 + 26.67.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.75.0 + 2.76.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-redis:2.75.0' +implementation 'com.google.cloud:google-cloud-redis:2.76.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-redis" % "2.75.0" +libraryDependencies += "com.google.cloud" % "google-cloud-redis" % "2.76.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-redis.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-redis/2.75.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-redis/2.76.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-resourcemanager/README.md b/java-resourcemanager/README.md index be4d5ceac074..01a4c52ca394 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.66.0 + 26.67.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.74.0 + 1.75.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-resourcemanager:1.74.0' +implementation 'com.google.cloud:google-cloud-resourcemanager:1.75.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-resourcemanager" % "1.74.0" +libraryDependencies += "com.google.cloud" % "google-cloud-resourcemanager" % "1.75.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.74.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-resourcemanager/1.75.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-retail/README.md b/java-retail/README.md index da898775472e..ed0385336e25 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.66.0 + 26.67.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.74.0 + 2.75.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-retail:2.74.0' +implementation 'com.google.cloud:google-cloud-retail:2.75.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-retail" % "2.74.0" +libraryDependencies += "com.google.cloud" % "google-cloud-retail" % "2.75.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.74.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-retail/2.75.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ConversationalSearchServiceClient.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ConversationalSearchServiceClient.java new file mode 100644 index 000000000000..ed9aca78f51c --- /dev/null +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ConversationalSearchServiceClient.java @@ -0,0 +1,276 @@ +/* + * 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.retail.v2; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.cloud.retail.v2.stub.ConversationalSearchServiceStub; +import com.google.cloud.retail.v2.stub.ConversationalSearchServiceStubSettings; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service for retail conversational search. + * + *

    This feature is only available for users who have Retail Conversational Search enabled. Enable + * Retail Conversational Search on Cloud Console before using this feature. + * + *

    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 (ConversationalSearchServiceClient conversationalSearchServiceClient =
    + *     ConversationalSearchServiceClient.create()) {
    + *   ConversationalSearchRequest request =
    + *       ConversationalSearchRequest.newBuilder()
    + *           .setPlacement("placement1792938725")
    + *           .setBranch(
    + *               BranchName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[BRANCH]").toString())
    + *           .setQuery("query107944136")
    + *           .addAllPageCategories(new ArrayList())
    + *           .setConversationId("conversationId-1676095234")
    + *           .setSearchParams(ConversationalSearchRequest.SearchParams.newBuilder().build())
    + *           .setVisitorId("visitorId1880545833")
    + *           .setUserInfo(UserInfo.newBuilder().build())
    + *           .setConversationalFilteringSpec(
    + *               ConversationalSearchRequest.ConversationalFilteringSpec.newBuilder().build())
    + *           .putAllUserLabels(new HashMap())
    + *           .addAllSafetySettings(new ArrayList())
    + *           .build();
    + *   ServerStream stream =
    + *       conversationalSearchServiceClient.conversationalSearchCallable().call(request);
    + *   for (ConversationalSearchResponse response : stream) {
    + *     // Do something when a response is received.
    + *   }
    + * }
    + * }
    + * + *

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

    ConversationalSearch

    Performs a conversational search. + *

    This feature is only available for users who have Conversational Search enabled.

    + *

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

    + *
      + *
    • conversationalSearchCallable() + *

    + *
    + * + *

    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 + * ConversationalSearchServiceSettings 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
    + * ConversationalSearchServiceSettings conversationalSearchServiceSettings =
    + *     ConversationalSearchServiceSettings.newBuilder()
    + *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
    + *         .build();
    + * ConversationalSearchServiceClient conversationalSearchServiceClient =
    + *     ConversationalSearchServiceClient.create(conversationalSearchServiceSettings);
    + * }
    + * + *

    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
    + * ConversationalSearchServiceSettings conversationalSearchServiceSettings =
    + *     ConversationalSearchServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
    + * ConversationalSearchServiceClient conversationalSearchServiceClient =
    + *     ConversationalSearchServiceClient.create(conversationalSearchServiceSettings);
    + * }
    + * + *

    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
    + * ConversationalSearchServiceSettings conversationalSearchServiceSettings =
    + *     ConversationalSearchServiceSettings.newHttpJsonBuilder().build();
    + * ConversationalSearchServiceClient conversationalSearchServiceClient =
    + *     ConversationalSearchServiceClient.create(conversationalSearchServiceSettings);
    + * }
    + * + *

    Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class ConversationalSearchServiceClient implements BackgroundResource { + private final ConversationalSearchServiceSettings settings; + private final ConversationalSearchServiceStub stub; + + /** Constructs an instance of ConversationalSearchServiceClient with default settings. */ + public static final ConversationalSearchServiceClient create() throws IOException { + return create(ConversationalSearchServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of ConversationalSearchServiceClient, 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 ConversationalSearchServiceClient create( + ConversationalSearchServiceSettings settings) throws IOException { + return new ConversationalSearchServiceClient(settings); + } + + /** + * Constructs an instance of ConversationalSearchServiceClient, using the given stub for making + * calls. This is for advanced usage - prefer using create(ConversationalSearchServiceSettings). + */ + public static final ConversationalSearchServiceClient create( + ConversationalSearchServiceStub stub) { + return new ConversationalSearchServiceClient(stub); + } + + /** + * Constructs an instance of ConversationalSearchServiceClient, 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 ConversationalSearchServiceClient(ConversationalSearchServiceSettings settings) + throws IOException { + this.settings = settings; + this.stub = ((ConversationalSearchServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected ConversationalSearchServiceClient(ConversationalSearchServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final ConversationalSearchServiceSettings getSettings() { + return settings; + } + + public ConversationalSearchServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Performs a conversational search. + * + *

    This feature is only available for users who have Conversational Search enabled. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (ConversationalSearchServiceClient conversationalSearchServiceClient =
    +   *     ConversationalSearchServiceClient.create()) {
    +   *   ConversationalSearchRequest request =
    +   *       ConversationalSearchRequest.newBuilder()
    +   *           .setPlacement("placement1792938725")
    +   *           .setBranch(
    +   *               BranchName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[BRANCH]").toString())
    +   *           .setQuery("query107944136")
    +   *           .addAllPageCategories(new ArrayList())
    +   *           .setConversationId("conversationId-1676095234")
    +   *           .setSearchParams(ConversationalSearchRequest.SearchParams.newBuilder().build())
    +   *           .setVisitorId("visitorId1880545833")
    +   *           .setUserInfo(UserInfo.newBuilder().build())
    +   *           .setConversationalFilteringSpec(
    +   *               ConversationalSearchRequest.ConversationalFilteringSpec.newBuilder().build())
    +   *           .putAllUserLabels(new HashMap())
    +   *           .addAllSafetySettings(new ArrayList())
    +   *           .build();
    +   *   ServerStream stream =
    +   *       conversationalSearchServiceClient.conversationalSearchCallable().call(request);
    +   *   for (ConversationalSearchResponse response : stream) {
    +   *     // Do something when a response is received.
    +   *   }
    +   * }
    +   * }
    + */ + public final ServerStreamingCallable + conversationalSearchCallable() { + return stub.conversationalSearchCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } +} diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ConversationalSearchServiceSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ConversationalSearchServiceSettings.java new file mode 100644 index 000000000000..429f509b3594 --- /dev/null +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ConversationalSearchServiceSettings.java @@ -0,0 +1,223 @@ +/* + * 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.retail.v2; + +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.ServerStreamingCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.retail.v2.stub.ConversationalSearchServiceStubSettings; +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 ConversationalSearchServiceClient}. + * + *

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

      + *
    • The default service address (retail.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 conversationalSearch: + * + *

    {@code
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    + * ConversationalSearchServiceSettings.Builder conversationalSearchServiceSettingsBuilder =
    + *     ConversationalSearchServiceSettings.newBuilder();
    + * conversationalSearchServiceSettingsBuilder
    + *     .conversationalSearchSettings()
    + *     .setRetrySettings(
    + *         conversationalSearchServiceSettingsBuilder
    + *             .conversationalSearchSettings()
    + *             .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());
    + * ConversationalSearchServiceSettings conversationalSearchServiceSettings =
    + *     conversationalSearchServiceSettingsBuilder.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. + */ +@Generated("by gapic-generator-java") +public class ConversationalSearchServiceSettings + extends ClientSettings { + + /** Returns the object with the settings used for calls to conversationalSearch. */ + public ServerStreamingCallSettings + conversationalSearchSettings() { + return ((ConversationalSearchServiceStubSettings) getStubSettings()) + .conversationalSearchSettings(); + } + + public static final ConversationalSearchServiceSettings create( + ConversationalSearchServiceStubSettings stub) throws IOException { + return new ConversationalSearchServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return ConversationalSearchServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return ConversationalSearchServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return ConversationalSearchServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return ConversationalSearchServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return ConversationalSearchServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return ConversationalSearchServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return ConversationalSearchServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ConversationalSearchServiceStubSettings.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 ConversationalSearchServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for ConversationalSearchServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(ConversationalSearchServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(ConversationalSearchServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(ConversationalSearchServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(ConversationalSearchServiceStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(ConversationalSearchServiceStubSettings.newHttpJsonBuilder()); + } + + public ConversationalSearchServiceStubSettings.Builder getStubSettingsBuilder() { + return ((ConversationalSearchServiceStubSettings.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 conversationalSearch. */ + public ServerStreamingCallSettings.Builder< + ConversationalSearchRequest, ConversationalSearchResponse> + conversationalSearchSettings() { + return getStubSettingsBuilder().conversationalSearchSettings(); + } + + @Override + public ConversationalSearchServiceSettings build() throws IOException { + return new ConversationalSearchServiceSettings(this); + } + } +} diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/gapic_metadata.json b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/gapic_metadata.json index a65d14d3c792..88e8d39d854d 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/gapic_metadata.json +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/gapic_metadata.json @@ -98,6 +98,18 @@ } } }, + "ConversationalSearchService": { + "clients": { + "grpc": { + "libraryClient": "ConversationalSearchServiceClient", + "rpcs": { + "ConversationalSearch": { + "methods": ["conversationalSearchCallable"] + } + } + } + } + }, "GenerativeQuestionService": { "clients": { "grpc": { diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/package-info.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/package-info.java index ca0ff7f1eddc..3d249dfb3741 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/package-info.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/package-info.java @@ -115,6 +115,47 @@ * } * } * + *

    ======================= ConversationalSearchServiceClient ======================= + * + *

    Service Description: Service for retail conversational search. + * + *

    This feature is only available for users who have Retail Conversational Search enabled. Enable + * Retail Conversational Search on Cloud Console before using this feature. + * + *

    Sample for ConversationalSearchServiceClient: + * + *

    {@code
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    + * try (ConversationalSearchServiceClient conversationalSearchServiceClient =
    + *     ConversationalSearchServiceClient.create()) {
    + *   ConversationalSearchRequest request =
    + *       ConversationalSearchRequest.newBuilder()
    + *           .setPlacement("placement1792938725")
    + *           .setBranch(
    + *               BranchName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[BRANCH]").toString())
    + *           .setQuery("query107944136")
    + *           .addAllPageCategories(new ArrayList())
    + *           .setConversationId("conversationId-1676095234")
    + *           .setSearchParams(ConversationalSearchRequest.SearchParams.newBuilder().build())
    + *           .setVisitorId("visitorId1880545833")
    + *           .setUserInfo(UserInfo.newBuilder().build())
    + *           .setConversationalFilteringSpec(
    + *               ConversationalSearchRequest.ConversationalFilteringSpec.newBuilder().build())
    + *           .putAllUserLabels(new HashMap())
    + *           .addAllSafetySettings(new ArrayList())
    + *           .build();
    + *   ServerStream stream =
    + *       conversationalSearchServiceClient.conversationalSearchCallable().call(request);
    + *   for (ConversationalSearchResponse response : stream) {
    + *     // Do something when a response is received.
    + *   }
    + * }
    + * }
    + * *

    ======================= GenerativeQuestionServiceClient ======================= * *

    Service Description: Service for managing LLM generated questions in search serving. diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ConversationalSearchServiceStub.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ConversationalSearchServiceStub.java new file mode 100644 index 000000000000..1f29ac3aa29e --- /dev/null +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ConversationalSearchServiceStub.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.retail.v2.stub; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.cloud.retail.v2.ConversationalSearchRequest; +import com.google.cloud.retail.v2.ConversationalSearchResponse; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the ConversationalSearchService service API. + * + *

    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class ConversationalSearchServiceStub implements BackgroundResource { + + public ServerStreamingCallable + conversationalSearchCallable() { + throw new UnsupportedOperationException("Not implemented: conversationalSearchCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ConversationalSearchServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ConversationalSearchServiceStubSettings.java new file mode 100644 index 000000000000..0c500975297b --- /dev/null +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ConversationalSearchServiceStubSettings.java @@ -0,0 +1,339 @@ +/* + * 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.retail.v2.stub; + +import com.google.api.core.ApiFunction; +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.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.retail.v2.ConversationalSearchRequest; +import com.google.cloud.retail.v2.ConversationalSearchResponse; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link ConversationalSearchServiceStub}. + * + *

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

      + *
    • The default service address (retail.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 conversationalSearch: + * + *

    {@code
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    + * ConversationalSearchServiceStubSettings.Builder conversationalSearchServiceSettingsBuilder =
    + *     ConversationalSearchServiceStubSettings.newBuilder();
    + * conversationalSearchServiceSettingsBuilder
    + *     .conversationalSearchSettings()
    + *     .setRetrySettings(
    + *         conversationalSearchServiceSettingsBuilder
    + *             .conversationalSearchSettings()
    + *             .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());
    + * ConversationalSearchServiceStubSettings conversationalSearchServiceSettings =
    + *     conversationalSearchServiceSettingsBuilder.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. + */ +@Generated("by gapic-generator-java") +public class ConversationalSearchServiceStubSettings + 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 ServerStreamingCallSettings< + ConversationalSearchRequest, ConversationalSearchResponse> + conversationalSearchSettings; + + /** Returns the object with the settings used for calls to conversationalSearch. */ + public ServerStreamingCallSettings + conversationalSearchSettings() { + return conversationalSearchSettings; + } + + public ConversationalSearchServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcConversationalSearchServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonConversationalSearchServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "retail"; + } + + /** 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 "retail.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "retail.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(ConversationalSearchServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(ConversationalSearchServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ConversationalSearchServiceStubSettings.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 ConversationalSearchServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + conversationalSearchSettings = settingsBuilder.conversationalSearchSettings().build(); + } + + /** Builder for ConversationalSearchServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final ServerStreamingCallSettings.Builder< + ConversationalSearchRequest, ConversationalSearchResponse> + conversationalSearchSettings; + 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); + + conversationalSearchSettings = ServerStreamingCallSettings.newBuilder(); + + unaryMethodSettingsBuilders = ImmutableList.>of(); + initDefaults(this); + } + + protected Builder(ConversationalSearchServiceStubSettings settings) { + super(settings); + + conversationalSearchSettings = settings.conversationalSearchSettings.toBuilder(); + + unaryMethodSettingsBuilders = ImmutableList.>of(); + } + + 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 + .conversationalSearchSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + 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 conversationalSearch. */ + public ServerStreamingCallSettings.Builder< + ConversationalSearchRequest, ConversationalSearchResponse> + conversationalSearchSettings() { + return conversationalSearchSettings; + } + + @Override + public ConversationalSearchServiceStubSettings build() throws IOException { + return new ConversationalSearchServiceStubSettings(this); + } + } +} diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/GrpcConversationalSearchServiceCallableFactory.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/GrpcConversationalSearchServiceCallableFactory.java new file mode 100644 index 000000000000..064c3d0ce298 --- /dev/null +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/GrpcConversationalSearchServiceCallableFactory.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.retail.v2.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 ConversationalSearchService service API. + * + *

    This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcConversationalSearchServiceCallableFactory 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-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/GrpcConversationalSearchServiceStub.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/GrpcConversationalSearchServiceStub.java new file mode 100644 index 000000000000..8c2c961c8138 --- /dev/null +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/GrpcConversationalSearchServiceStub.java @@ -0,0 +1,173 @@ +/* + * 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.retail.v2.stub; + +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.RequestParamsBuilder; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.cloud.retail.v2.ConversationalSearchRequest; +import com.google.cloud.retail.v2.ConversationalSearchResponse; +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 ConversationalSearchService service API. + * + *

    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcConversationalSearchServiceStub extends ConversationalSearchServiceStub { + private static final MethodDescriptor + conversationalSearchMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.SERVER_STREAMING) + .setFullMethodName( + "google.cloud.retail.v2.ConversationalSearchService/ConversationalSearch") + .setRequestMarshaller( + ProtoUtils.marshaller(ConversationalSearchRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ConversationalSearchResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final ServerStreamingCallable + conversationalSearchCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcConversationalSearchServiceStub create( + ConversationalSearchServiceStubSettings settings) throws IOException { + return new GrpcConversationalSearchServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcConversationalSearchServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcConversationalSearchServiceStub( + ConversationalSearchServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcConversationalSearchServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcConversationalSearchServiceStub( + ConversationalSearchServiceStubSettings.newBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of GrpcConversationalSearchServiceStub, 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 GrpcConversationalSearchServiceStub( + ConversationalSearchServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcConversationalSearchServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcConversationalSearchServiceStub, 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 GrpcConversationalSearchServiceStub( + ConversationalSearchServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings + conversationalSearchTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(conversationalSearchMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("placement", String.valueOf(request.getPlacement())); + return builder.build(); + }) + .build(); + + this.conversationalSearchCallable = + callableFactory.createServerStreamingCallable( + conversationalSearchTransportSettings, + settings.conversationalSearchSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public ServerStreamingCallable + conversationalSearchCallable() { + return conversationalSearchCallable; + } + + @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-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/HttpJsonConversationalSearchServiceCallableFactory.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/HttpJsonConversationalSearchServiceCallableFactory.java new file mode 100644 index 000000000000..e4b5c77146ca --- /dev/null +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/HttpJsonConversationalSearchServiceCallableFactory.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.retail.v2.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 ConversationalSearchService service API. + * + *

    This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonConversationalSearchServiceCallableFactory + 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-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/HttpJsonConversationalSearchServiceStub.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/HttpJsonConversationalSearchServiceStub.java new file mode 100644 index 000000000000..22234e916c3f --- /dev/null +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/HttpJsonConversationalSearchServiceStub.java @@ -0,0 +1,214 @@ +/* + * 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.retail.v2.stub; + +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.cloud.retail.v2.ConversationalSearchRequest; +import com.google.cloud.retail.v2.ConversationalSearchResponse; +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 ConversationalSearchService service API. + * + *

    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonConversationalSearchServiceStub extends ConversationalSearchServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor< + ConversationalSearchRequest, ConversationalSearchResponse> + conversationalSearchMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.retail.v2.ConversationalSearchService/ConversationalSearch") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.SERVER_STREAMING) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{placement=projects/*/locations/*/catalogs/*/placements/*}:conversationalSearch", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "placement", request.getPlacement()); + return fields; + }) + .setAdditionalPaths( + "/v2/{placement=projects/*/locations/*/catalogs/*/servingConfigs/*}:conversationalSearch") + .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().clearPlacement().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ConversationalSearchResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final ServerStreamingCallable + conversationalSearchCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonConversationalSearchServiceStub create( + ConversationalSearchServiceStubSettings settings) throws IOException { + return new HttpJsonConversationalSearchServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonConversationalSearchServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonConversationalSearchServiceStub( + ConversationalSearchServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonConversationalSearchServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonConversationalSearchServiceStub( + ConversationalSearchServiceStubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonConversationalSearchServiceStub, 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 HttpJsonConversationalSearchServiceStub( + ConversationalSearchServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonConversationalSearchServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonConversationalSearchServiceStub, 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 HttpJsonConversationalSearchServiceStub( + ConversationalSearchServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings + conversationalSearchTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(conversationalSearchMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("placement", String.valueOf(request.getPlacement())); + return builder.build(); + }) + .build(); + + this.conversationalSearchCallable = + callableFactory.createServerStreamingCallable( + conversationalSearchTransportSettings, + settings.conversationalSearchSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(conversationalSearchMethodDescriptor); + return methodDescriptors; + } + + @Override + public ServerStreamingCallable + conversationalSearchCallable() { + return conversationalSearchCallable; + } + + @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-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ConversationalSearchServiceClient.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ConversationalSearchServiceClient.java new file mode 100644 index 000000000000..13593845a4c5 --- /dev/null +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ConversationalSearchServiceClient.java @@ -0,0 +1,278 @@ +/* + * 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.retail.v2beta; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.cloud.retail.v2beta.stub.ConversationalSearchServiceStub; +import com.google.cloud.retail.v2beta.stub.ConversationalSearchServiceStubSettings; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service for retail conversational search. + * + *

    This feature is only available for users who have Retail Conversational Search enabled. Enable + * Retail Conversational Search on Cloud Console before using this feature. + * + *

    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 (ConversationalSearchServiceClient conversationalSearchServiceClient =
    + *     ConversationalSearchServiceClient.create()) {
    + *   ConversationalSearchRequest request =
    + *       ConversationalSearchRequest.newBuilder()
    + *           .setPlacement("placement1792938725")
    + *           .setBranch(
    + *               BranchName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[BRANCH]").toString())
    + *           .setQuery("query107944136")
    + *           .addAllPageCategories(new ArrayList())
    + *           .setConversationId("conversationId-1676095234")
    + *           .setSearchParams(ConversationalSearchRequest.SearchParams.newBuilder().build())
    + *           .setVisitorId("visitorId1880545833")
    + *           .setUserInfo(UserInfo.newBuilder().build())
    + *           .setConversationalFilteringSpec(
    + *               ConversationalSearchRequest.ConversationalFilteringSpec.newBuilder().build())
    + *           .putAllUserLabels(new HashMap())
    + *           .addAllSafetySettings(new ArrayList())
    + *           .build();
    + *   ServerStream stream =
    + *       conversationalSearchServiceClient.conversationalSearchCallable().call(request);
    + *   for (ConversationalSearchResponse response : stream) {
    + *     // Do something when a response is received.
    + *   }
    + * }
    + * }
    + * + *

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

    ConversationalSearch

    Performs a conversational search. + *

    This feature is only available for users who have Conversational Search enabled.

    + *

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

    + *
      + *
    • conversationalSearchCallable() + *

    + *
    + * + *

    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 + * ConversationalSearchServiceSettings 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
    + * ConversationalSearchServiceSettings conversationalSearchServiceSettings =
    + *     ConversationalSearchServiceSettings.newBuilder()
    + *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
    + *         .build();
    + * ConversationalSearchServiceClient conversationalSearchServiceClient =
    + *     ConversationalSearchServiceClient.create(conversationalSearchServiceSettings);
    + * }
    + * + *

    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
    + * ConversationalSearchServiceSettings conversationalSearchServiceSettings =
    + *     ConversationalSearchServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
    + * ConversationalSearchServiceClient conversationalSearchServiceClient =
    + *     ConversationalSearchServiceClient.create(conversationalSearchServiceSettings);
    + * }
    + * + *

    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
    + * ConversationalSearchServiceSettings conversationalSearchServiceSettings =
    + *     ConversationalSearchServiceSettings.newHttpJsonBuilder().build();
    + * ConversationalSearchServiceClient conversationalSearchServiceClient =
    + *     ConversationalSearchServiceClient.create(conversationalSearchServiceSettings);
    + * }
    + * + *

    Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class ConversationalSearchServiceClient implements BackgroundResource { + private final ConversationalSearchServiceSettings settings; + private final ConversationalSearchServiceStub stub; + + /** Constructs an instance of ConversationalSearchServiceClient with default settings. */ + public static final ConversationalSearchServiceClient create() throws IOException { + return create(ConversationalSearchServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of ConversationalSearchServiceClient, 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 ConversationalSearchServiceClient create( + ConversationalSearchServiceSettings settings) throws IOException { + return new ConversationalSearchServiceClient(settings); + } + + /** + * Constructs an instance of ConversationalSearchServiceClient, using the given stub for making + * calls. This is for advanced usage - prefer using create(ConversationalSearchServiceSettings). + */ + public static final ConversationalSearchServiceClient create( + ConversationalSearchServiceStub stub) { + return new ConversationalSearchServiceClient(stub); + } + + /** + * Constructs an instance of ConversationalSearchServiceClient, 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 ConversationalSearchServiceClient(ConversationalSearchServiceSettings settings) + throws IOException { + this.settings = settings; + this.stub = ((ConversationalSearchServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected ConversationalSearchServiceClient(ConversationalSearchServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final ConversationalSearchServiceSettings getSettings() { + return settings; + } + + public ConversationalSearchServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Performs a conversational search. + * + *

    This feature is only available for users who have Conversational Search enabled. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (ConversationalSearchServiceClient conversationalSearchServiceClient =
    +   *     ConversationalSearchServiceClient.create()) {
    +   *   ConversationalSearchRequest request =
    +   *       ConversationalSearchRequest.newBuilder()
    +   *           .setPlacement("placement1792938725")
    +   *           .setBranch(
    +   *               BranchName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[BRANCH]").toString())
    +   *           .setQuery("query107944136")
    +   *           .addAllPageCategories(new ArrayList())
    +   *           .setConversationId("conversationId-1676095234")
    +   *           .setSearchParams(ConversationalSearchRequest.SearchParams.newBuilder().build())
    +   *           .setVisitorId("visitorId1880545833")
    +   *           .setUserInfo(UserInfo.newBuilder().build())
    +   *           .setConversationalFilteringSpec(
    +   *               ConversationalSearchRequest.ConversationalFilteringSpec.newBuilder().build())
    +   *           .putAllUserLabels(new HashMap())
    +   *           .addAllSafetySettings(new ArrayList())
    +   *           .build();
    +   *   ServerStream stream =
    +   *       conversationalSearchServiceClient.conversationalSearchCallable().call(request);
    +   *   for (ConversationalSearchResponse response : stream) {
    +   *     // Do something when a response is received.
    +   *   }
    +   * }
    +   * }
    + */ + public final ServerStreamingCallable + conversationalSearchCallable() { + return stub.conversationalSearchCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } +} diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ConversationalSearchServiceSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ConversationalSearchServiceSettings.java new file mode 100644 index 000000000000..1d4427bac8f1 --- /dev/null +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ConversationalSearchServiceSettings.java @@ -0,0 +1,224 @@ +/* + * 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.retail.v2beta; + +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.ServerStreamingCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.retail.v2beta.stub.ConversationalSearchServiceStubSettings; +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 ConversationalSearchServiceClient}. + * + *

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

      + *
    • The default service address (retail.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 conversationalSearch: + * + *

    {@code
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    + * ConversationalSearchServiceSettings.Builder conversationalSearchServiceSettingsBuilder =
    + *     ConversationalSearchServiceSettings.newBuilder();
    + * conversationalSearchServiceSettingsBuilder
    + *     .conversationalSearchSettings()
    + *     .setRetrySettings(
    + *         conversationalSearchServiceSettingsBuilder
    + *             .conversationalSearchSettings()
    + *             .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());
    + * ConversationalSearchServiceSettings conversationalSearchServiceSettings =
    + *     conversationalSearchServiceSettingsBuilder.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. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class ConversationalSearchServiceSettings + extends ClientSettings { + + /** Returns the object with the settings used for calls to conversationalSearch. */ + public ServerStreamingCallSettings + conversationalSearchSettings() { + return ((ConversationalSearchServiceStubSettings) getStubSettings()) + .conversationalSearchSettings(); + } + + public static final ConversationalSearchServiceSettings create( + ConversationalSearchServiceStubSettings stub) throws IOException { + return new ConversationalSearchServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return ConversationalSearchServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return ConversationalSearchServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return ConversationalSearchServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return ConversationalSearchServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return ConversationalSearchServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return ConversationalSearchServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return ConversationalSearchServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ConversationalSearchServiceStubSettings.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 ConversationalSearchServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for ConversationalSearchServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(ConversationalSearchServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(ConversationalSearchServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(ConversationalSearchServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(ConversationalSearchServiceStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(ConversationalSearchServiceStubSettings.newHttpJsonBuilder()); + } + + public ConversationalSearchServiceStubSettings.Builder getStubSettingsBuilder() { + return ((ConversationalSearchServiceStubSettings.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 conversationalSearch. */ + public ServerStreamingCallSettings.Builder< + ConversationalSearchRequest, ConversationalSearchResponse> + conversationalSearchSettings() { + return getStubSettingsBuilder().conversationalSearchSettings(); + } + + @Override + public ConversationalSearchServiceSettings build() throws IOException { + return new ConversationalSearchServiceSettings(this); + } + } +} diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/gapic_metadata.json b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/gapic_metadata.json index 6d888ab8fdc4..ee1aaca6d519 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/gapic_metadata.json +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/gapic_metadata.json @@ -101,6 +101,18 @@ } } }, + "ConversationalSearchService": { + "clients": { + "grpc": { + "libraryClient": "ConversationalSearchServiceClient", + "rpcs": { + "ConversationalSearch": { + "methods": ["conversationalSearchCallable"] + } + } + } + } + }, "GenerativeQuestionService": { "clients": { "grpc": { diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/package-info.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/package-info.java index beb6280cd5ad..c600e133af51 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/package-info.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/package-info.java @@ -115,6 +115,47 @@ * } * } * + *

    ======================= ConversationalSearchServiceClient ======================= + * + *

    Service Description: Service for retail conversational search. + * + *

    This feature is only available for users who have Retail Conversational Search enabled. Enable + * Retail Conversational Search on Cloud Console before using this feature. + * + *

    Sample for ConversationalSearchServiceClient: + * + *

    {@code
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    + * try (ConversationalSearchServiceClient conversationalSearchServiceClient =
    + *     ConversationalSearchServiceClient.create()) {
    + *   ConversationalSearchRequest request =
    + *       ConversationalSearchRequest.newBuilder()
    + *           .setPlacement("placement1792938725")
    + *           .setBranch(
    + *               BranchName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[BRANCH]").toString())
    + *           .setQuery("query107944136")
    + *           .addAllPageCategories(new ArrayList())
    + *           .setConversationId("conversationId-1676095234")
    + *           .setSearchParams(ConversationalSearchRequest.SearchParams.newBuilder().build())
    + *           .setVisitorId("visitorId1880545833")
    + *           .setUserInfo(UserInfo.newBuilder().build())
    + *           .setConversationalFilteringSpec(
    + *               ConversationalSearchRequest.ConversationalFilteringSpec.newBuilder().build())
    + *           .putAllUserLabels(new HashMap())
    + *           .addAllSafetySettings(new ArrayList())
    + *           .build();
    + *   ServerStream stream =
    + *       conversationalSearchServiceClient.conversationalSearchCallable().call(request);
    + *   for (ConversationalSearchResponse response : stream) {
    + *     // Do something when a response is received.
    + *   }
    + * }
    + * }
    + * *

    ======================= GenerativeQuestionServiceClient ======================= * *

    Service Description: Service for managing LLM generated questions in search serving. diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ConversationalSearchServiceStub.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ConversationalSearchServiceStub.java new file mode 100644 index 000000000000..551c292484e7 --- /dev/null +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ConversationalSearchServiceStub.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.retail.v2beta.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.cloud.retail.v2beta.ConversationalSearchRequest; +import com.google.cloud.retail.v2beta.ConversationalSearchResponse; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the ConversationalSearchService service API. + * + *

    This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class ConversationalSearchServiceStub implements BackgroundResource { + + public ServerStreamingCallable + conversationalSearchCallable() { + throw new UnsupportedOperationException("Not implemented: conversationalSearchCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ConversationalSearchServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ConversationalSearchServiceStubSettings.java new file mode 100644 index 000000000000..26f8c9e23c3c --- /dev/null +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ConversationalSearchServiceStubSettings.java @@ -0,0 +1,340 @@ +/* + * 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.retail.v2beta.stub; + +import com.google.api.core.ApiFunction; +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.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.retail.v2beta.ConversationalSearchRequest; +import com.google.cloud.retail.v2beta.ConversationalSearchResponse; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link ConversationalSearchServiceStub}. + * + *

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

      + *
    • The default service address (retail.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 conversationalSearch: + * + *

    {@code
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    + * ConversationalSearchServiceStubSettings.Builder conversationalSearchServiceSettingsBuilder =
    + *     ConversationalSearchServiceStubSettings.newBuilder();
    + * conversationalSearchServiceSettingsBuilder
    + *     .conversationalSearchSettings()
    + *     .setRetrySettings(
    + *         conversationalSearchServiceSettingsBuilder
    + *             .conversationalSearchSettings()
    + *             .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());
    + * ConversationalSearchServiceStubSettings conversationalSearchServiceSettings =
    + *     conversationalSearchServiceSettingsBuilder.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. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class ConversationalSearchServiceStubSettings + 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 ServerStreamingCallSettings< + ConversationalSearchRequest, ConversationalSearchResponse> + conversationalSearchSettings; + + /** Returns the object with the settings used for calls to conversationalSearch. */ + public ServerStreamingCallSettings + conversationalSearchSettings() { + return conversationalSearchSettings; + } + + public ConversationalSearchServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcConversationalSearchServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonConversationalSearchServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "retail"; + } + + /** 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 "retail.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "retail.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(ConversationalSearchServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(ConversationalSearchServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ConversationalSearchServiceStubSettings.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 ConversationalSearchServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + conversationalSearchSettings = settingsBuilder.conversationalSearchSettings().build(); + } + + /** Builder for ConversationalSearchServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final ServerStreamingCallSettings.Builder< + ConversationalSearchRequest, ConversationalSearchResponse> + conversationalSearchSettings; + 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); + + conversationalSearchSettings = ServerStreamingCallSettings.newBuilder(); + + unaryMethodSettingsBuilders = ImmutableList.>of(); + initDefaults(this); + } + + protected Builder(ConversationalSearchServiceStubSettings settings) { + super(settings); + + conversationalSearchSettings = settings.conversationalSearchSettings.toBuilder(); + + unaryMethodSettingsBuilders = ImmutableList.>of(); + } + + 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 + .conversationalSearchSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + 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 conversationalSearch. */ + public ServerStreamingCallSettings.Builder< + ConversationalSearchRequest, ConversationalSearchResponse> + conversationalSearchSettings() { + return conversationalSearchSettings; + } + + @Override + public ConversationalSearchServiceStubSettings build() throws IOException { + return new ConversationalSearchServiceStubSettings(this); + } + } +} diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/GrpcConversationalSearchServiceCallableFactory.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/GrpcConversationalSearchServiceCallableFactory.java new file mode 100644 index 000000000000..aa7ba98be98c --- /dev/null +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/GrpcConversationalSearchServiceCallableFactory.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.retail.v2beta.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 ConversationalSearchService service API. + * + *

    This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcConversationalSearchServiceCallableFactory 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-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/GrpcConversationalSearchServiceStub.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/GrpcConversationalSearchServiceStub.java new file mode 100644 index 000000000000..ab6add92412d --- /dev/null +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/GrpcConversationalSearchServiceStub.java @@ -0,0 +1,175 @@ +/* + * 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.retail.v2beta.stub; + +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.RequestParamsBuilder; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.cloud.retail.v2beta.ConversationalSearchRequest; +import com.google.cloud.retail.v2beta.ConversationalSearchResponse; +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 ConversationalSearchService service API. + * + *

    This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcConversationalSearchServiceStub extends ConversationalSearchServiceStub { + private static final MethodDescriptor + conversationalSearchMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.SERVER_STREAMING) + .setFullMethodName( + "google.cloud.retail.v2beta.ConversationalSearchService/ConversationalSearch") + .setRequestMarshaller( + ProtoUtils.marshaller(ConversationalSearchRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ConversationalSearchResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final ServerStreamingCallable + conversationalSearchCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcConversationalSearchServiceStub create( + ConversationalSearchServiceStubSettings settings) throws IOException { + return new GrpcConversationalSearchServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcConversationalSearchServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcConversationalSearchServiceStub( + ConversationalSearchServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcConversationalSearchServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcConversationalSearchServiceStub( + ConversationalSearchServiceStubSettings.newBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of GrpcConversationalSearchServiceStub, 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 GrpcConversationalSearchServiceStub( + ConversationalSearchServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcConversationalSearchServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcConversationalSearchServiceStub, 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 GrpcConversationalSearchServiceStub( + ConversationalSearchServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings + conversationalSearchTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(conversationalSearchMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("placement", String.valueOf(request.getPlacement())); + return builder.build(); + }) + .build(); + + this.conversationalSearchCallable = + callableFactory.createServerStreamingCallable( + conversationalSearchTransportSettings, + settings.conversationalSearchSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public ServerStreamingCallable + conversationalSearchCallable() { + return conversationalSearchCallable; + } + + @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-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/HttpJsonConversationalSearchServiceCallableFactory.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/HttpJsonConversationalSearchServiceCallableFactory.java new file mode 100644 index 000000000000..a9964e889b40 --- /dev/null +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/HttpJsonConversationalSearchServiceCallableFactory.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.retail.v2beta.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 ConversationalSearchService service API. + * + *

    This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonConversationalSearchServiceCallableFactory + 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-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/HttpJsonConversationalSearchServiceStub.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/HttpJsonConversationalSearchServiceStub.java new file mode 100644 index 000000000000..59a982953ea2 --- /dev/null +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/HttpJsonConversationalSearchServiceStub.java @@ -0,0 +1,216 @@ +/* + * 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.retail.v2beta.stub; + +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.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.cloud.retail.v2beta.ConversationalSearchRequest; +import com.google.cloud.retail.v2beta.ConversationalSearchResponse; +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 ConversationalSearchService service API. + * + *

    This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonConversationalSearchServiceStub extends ConversationalSearchServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor< + ConversationalSearchRequest, ConversationalSearchResponse> + conversationalSearchMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.retail.v2beta.ConversationalSearchService/ConversationalSearch") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.SERVER_STREAMING) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta/{placement=projects/*/locations/*/catalogs/*/placements/*}:conversationalSearch", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "placement", request.getPlacement()); + return fields; + }) + .setAdditionalPaths( + "/v2beta/{placement=projects/*/locations/*/catalogs/*/servingConfigs/*}:conversationalSearch") + .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().clearPlacement().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ConversationalSearchResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final ServerStreamingCallable + conversationalSearchCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonConversationalSearchServiceStub create( + ConversationalSearchServiceStubSettings settings) throws IOException { + return new HttpJsonConversationalSearchServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonConversationalSearchServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonConversationalSearchServiceStub( + ConversationalSearchServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonConversationalSearchServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonConversationalSearchServiceStub( + ConversationalSearchServiceStubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonConversationalSearchServiceStub, 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 HttpJsonConversationalSearchServiceStub( + ConversationalSearchServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonConversationalSearchServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonConversationalSearchServiceStub, 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 HttpJsonConversationalSearchServiceStub( + ConversationalSearchServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings + conversationalSearchTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(conversationalSearchMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("placement", String.valueOf(request.getPlacement())); + return builder.build(); + }) + .build(); + + this.conversationalSearchCallable = + callableFactory.createServerStreamingCallable( + conversationalSearchTransportSettings, + settings.conversationalSearchSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(conversationalSearchMethodDescriptor); + return methodDescriptors; + } + + @Override + public ServerStreamingCallable + conversationalSearchCallable() { + return conversationalSearchCallable; + } + + @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-retail/google-cloud-retail/src/main/resources/META-INF/native-image/com.google.cloud.retail.v2/reflect-config.json b/java-retail/google-cloud-retail/src/main/resources/META-INF/native-image/com.google.cloud.retail.v2/reflect-config.json index 3b83d382d7c9..3c1202b229f2 100644 --- a/java-retail/google-cloud-retail/src/main/resources/META-INF/native-image/com.google.cloud.retail.v2/reflect-config.json +++ b/java-retail/google-cloud-retail/src/main/resources/META-INF/native-image/com.google.cloud.retail.v2/reflect-config.json @@ -1196,6 +1196,222 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.retail.v2.ConversationalSearchRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2.ConversationalSearchRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2.ConversationalSearchRequest$ConversationalFilteringSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2.ConversationalSearchRequest$ConversationalFilteringSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2.ConversationalSearchRequest$ConversationalFilteringSpec$Mode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2.ConversationalSearchRequest$SearchParams", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2.ConversationalSearchRequest$SearchParams$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2.ConversationalSearchRequest$UserAnswer", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2.ConversationalSearchRequest$UserAnswer$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2.ConversationalSearchRequest$UserAnswer$SelectedAnswer", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2.ConversationalSearchRequest$UserAnswer$SelectedAnswer$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2.ConversationalSearchResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2.ConversationalSearchResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2.ConversationalSearchResponse$ConversationalFilteringResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2.ConversationalSearchResponse$ConversationalFilteringResult$AdditionalFilter", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2.ConversationalSearchResponse$ConversationalFilteringResult$AdditionalFilter$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2.ConversationalSearchResponse$ConversationalFilteringResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2.ConversationalSearchResponse$FollowupQuestion", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2.ConversationalSearchResponse$FollowupQuestion$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2.ConversationalSearchResponse$FollowupQuestion$SuggestedAnswer", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2.ConversationalSearchResponse$FollowupQuestion$SuggestedAnswer$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2.ConversationalSearchResponse$RefinedSearch", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2.ConversationalSearchResponse$RefinedSearch$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2.ConversationalSearchResponse$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.retail.v2.CreateControlRequest", "queryAllDeclaredConstructors": true, @@ -1754,6 +1970,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.retail.v2.HarmCategory", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.retail.v2.Image", "queryAllDeclaredConstructors": true, @@ -3302,6 +3527,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.retail.v2.SafetySetting", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2.SafetySetting$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2.SafetySetting$HarmBlockMethod", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2.SafetySetting$HarmBlockThreshold", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.retail.v2.SearchRequest", "queryAllDeclaredConstructors": true, diff --git a/java-retail/google-cloud-retail/src/main/resources/META-INF/native-image/com.google.cloud.retail.v2beta/reflect-config.json b/java-retail/google-cloud-retail/src/main/resources/META-INF/native-image/com.google.cloud.retail.v2beta/reflect-config.json index 37bf372edada..d779958bb682 100644 --- a/java-retail/google-cloud-retail/src/main/resources/META-INF/native-image/com.google.cloud.retail.v2beta/reflect-config.json +++ b/java-retail/google-cloud-retail/src/main/resources/META-INF/native-image/com.google.cloud.retail.v2beta/reflect-config.json @@ -1295,6 +1295,222 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.retail.v2beta.ConversationalSearchRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2beta.ConversationalSearchRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2beta.ConversationalSearchRequest$ConversationalFilteringSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2beta.ConversationalSearchRequest$ConversationalFilteringSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2beta.ConversationalSearchRequest$ConversationalFilteringSpec$Mode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2beta.ConversationalSearchRequest$SearchParams", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2beta.ConversationalSearchRequest$SearchParams$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2beta.ConversationalSearchRequest$UserAnswer", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2beta.ConversationalSearchRequest$UserAnswer$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2beta.ConversationalSearchRequest$UserAnswer$SelectedAnswer", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2beta.ConversationalSearchRequest$UserAnswer$SelectedAnswer$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2beta.ConversationalSearchResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2beta.ConversationalSearchResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2beta.ConversationalSearchResponse$ConversationalFilteringResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2beta.ConversationalSearchResponse$ConversationalFilteringResult$AdditionalFilter", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2beta.ConversationalSearchResponse$ConversationalFilteringResult$AdditionalFilter$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2beta.ConversationalSearchResponse$ConversationalFilteringResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2beta.ConversationalSearchResponse$FollowupQuestion", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2beta.ConversationalSearchResponse$FollowupQuestion$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2beta.ConversationalSearchResponse$FollowupQuestion$SuggestedAnswer", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2beta.ConversationalSearchResponse$FollowupQuestion$SuggestedAnswer$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2beta.ConversationalSearchResponse$RefinedSearch", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2beta.ConversationalSearchResponse$RefinedSearch$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2beta.ConversationalSearchResponse$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.retail.v2beta.CreateControlRequest", "queryAllDeclaredConstructors": true, @@ -1925,6 +2141,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.retail.v2beta.HarmCategory", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.retail.v2beta.Image", "queryAllDeclaredConstructors": true, @@ -3527,6 +3752,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.retail.v2beta.SafetySetting", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2beta.SafetySetting$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2beta.SafetySetting$HarmBlockMethod", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2beta.SafetySetting$HarmBlockThreshold", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.retail.v2beta.SearchRequest", "queryAllDeclaredConstructors": true, diff --git a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/ConversationalSearchServiceClientHttpJsonTest.java b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/ConversationalSearchServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..2b1c0315059b --- /dev/null +++ b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/ConversationalSearchServiceClientHttpJsonTest.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.retail.v2; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.retail.v2.stub.HttpJsonConversationalSearchServiceStub; +import java.io.IOException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class ConversationalSearchServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static ConversationalSearchServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonConversationalSearchServiceStub.getMethodDescriptors(), + ConversationalSearchServiceSettings.getDefaultEndpoint()); + ConversationalSearchServiceSettings settings = + ConversationalSearchServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + ConversationalSearchServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = ConversationalSearchServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void conversationalSearchTest() throws Exception {} + + @Test + public void conversationalSearchExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + } +} diff --git a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/ConversationalSearchServiceClientTest.java b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/ConversationalSearchServiceClientTest.java new file mode 100644 index 000000000000..87e7049b8413 --- /dev/null +++ b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/ConversationalSearchServiceClientTest.java @@ -0,0 +1,159 @@ +/* + * 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.retail.v2; + +import com.google.api.gax.core.NoCredentialsProvider; +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.grpc.testing.MockStreamObserver; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StatusCode; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class ConversationalSearchServiceClientTest { + private static MockConversationalSearchService mockConversationalSearchService; + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private ConversationalSearchServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockConversationalSearchService = new MockConversationalSearchService(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockConversationalSearchService, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + ConversationalSearchServiceSettings settings = + ConversationalSearchServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = ConversationalSearchServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void conversationalSearchTest() throws Exception { + ConversationalSearchResponse expectedResponse = + ConversationalSearchResponse.newBuilder() + .addAllUserQueryTypes(new ArrayList()) + .setConversationalTextResponse("conversationalTextResponse-641076324") + .setFollowupQuestion(ConversationalSearchResponse.FollowupQuestion.newBuilder().build()) + .setConversationId("conversationId-1676095234") + .addAllRefinedSearch(new ArrayList()) + .setConversationalFilteringResult( + ConversationalSearchResponse.ConversationalFilteringResult.newBuilder().build()) + .build(); + mockConversationalSearchService.addResponse(expectedResponse); + ConversationalSearchRequest request = + ConversationalSearchRequest.newBuilder() + .setPlacement("placement1792938725") + .setBranch(BranchName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[BRANCH]").toString()) + .setQuery("query107944136") + .addAllPageCategories(new ArrayList()) + .setConversationId("conversationId-1676095234") + .setSearchParams(ConversationalSearchRequest.SearchParams.newBuilder().build()) + .setVisitorId("visitorId1880545833") + .setUserInfo(UserInfo.newBuilder().build()) + .setConversationalFilteringSpec( + ConversationalSearchRequest.ConversationalFilteringSpec.newBuilder().build()) + .putAllUserLabels(new HashMap()) + .addAllSafetySettings(new ArrayList()) + .build(); + + MockStreamObserver responseObserver = new MockStreamObserver<>(); + + ServerStreamingCallable callable = + client.conversationalSearchCallable(); + callable.serverStreamingCall(request, responseObserver); + + List actualResponses = responseObserver.future().get(); + Assert.assertEquals(1, actualResponses.size()); + Assert.assertEquals(expectedResponse, actualResponses.get(0)); + } + + @Test + public void conversationalSearchExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConversationalSearchService.addException(exception); + ConversationalSearchRequest request = + ConversationalSearchRequest.newBuilder() + .setPlacement("placement1792938725") + .setBranch(BranchName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[BRANCH]").toString()) + .setQuery("query107944136") + .addAllPageCategories(new ArrayList()) + .setConversationId("conversationId-1676095234") + .setSearchParams(ConversationalSearchRequest.SearchParams.newBuilder().build()) + .setVisitorId("visitorId1880545833") + .setUserInfo(UserInfo.newBuilder().build()) + .setConversationalFilteringSpec( + ConversationalSearchRequest.ConversationalFilteringSpec.newBuilder().build()) + .putAllUserLabels(new HashMap()) + .addAllSafetySettings(new ArrayList()) + .build(); + + MockStreamObserver responseObserver = new MockStreamObserver<>(); + + ServerStreamingCallable callable = + client.conversationalSearchCallable(); + callable.serverStreamingCall(request, responseObserver); + + try { + List actualResponses = responseObserver.future().get(); + Assert.fail("No exception thrown"); + } catch (ExecutionException e) { + Assert.assertTrue(e.getCause() instanceof InvalidArgumentException); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } +} diff --git a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/MockConversationalSearchService.java b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/MockConversationalSearchService.java new file mode 100644 index 000000000000..b1b1b198e21a --- /dev/null +++ b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/MockConversationalSearchService.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.retail.v2; + +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 MockConversationalSearchService implements MockGrpcService { + private final MockConversationalSearchServiceImpl serviceImpl; + + public MockConversationalSearchService() { + serviceImpl = new MockConversationalSearchServiceImpl(); + } + + @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-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/MockConversationalSearchServiceImpl.java b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/MockConversationalSearchServiceImpl.java new file mode 100644 index 000000000000..360ef28da902 --- /dev/null +++ b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/MockConversationalSearchServiceImpl.java @@ -0,0 +1,83 @@ +/* + * 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.retail.v2; + +import com.google.api.core.BetaApi; +import com.google.cloud.retail.v2.ConversationalSearchServiceGrpc.ConversationalSearchServiceImplBase; +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 MockConversationalSearchServiceImpl extends ConversationalSearchServiceImplBase { + private List requests; + private Queue responses; + + public MockConversationalSearchServiceImpl() { + 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 conversationalSearch( + ConversationalSearchRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ConversationalSearchResponse) { + requests.add(request); + responseObserver.onNext(((ConversationalSearchResponse) 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 ConversationalSearch, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + ConversationalSearchResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2beta/ConversationalSearchServiceClientHttpJsonTest.java b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2beta/ConversationalSearchServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..ebb9c1c78aab --- /dev/null +++ b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2beta/ConversationalSearchServiceClientHttpJsonTest.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.retail.v2beta; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.retail.v2beta.stub.HttpJsonConversationalSearchServiceStub; +import java.io.IOException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class ConversationalSearchServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static ConversationalSearchServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonConversationalSearchServiceStub.getMethodDescriptors(), + ConversationalSearchServiceSettings.getDefaultEndpoint()); + ConversationalSearchServiceSettings settings = + ConversationalSearchServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + ConversationalSearchServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = ConversationalSearchServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void conversationalSearchTest() throws Exception {} + + @Test + public void conversationalSearchExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + } +} diff --git a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2beta/ConversationalSearchServiceClientTest.java b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2beta/ConversationalSearchServiceClientTest.java new file mode 100644 index 000000000000..59c6bdde65da --- /dev/null +++ b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2beta/ConversationalSearchServiceClientTest.java @@ -0,0 +1,159 @@ +/* + * 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.retail.v2beta; + +import com.google.api.gax.core.NoCredentialsProvider; +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.grpc.testing.MockStreamObserver; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StatusCode; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class ConversationalSearchServiceClientTest { + private static MockConversationalSearchService mockConversationalSearchService; + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private ConversationalSearchServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockConversationalSearchService = new MockConversationalSearchService(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockConversationalSearchService, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + ConversationalSearchServiceSettings settings = + ConversationalSearchServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = ConversationalSearchServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void conversationalSearchTest() throws Exception { + ConversationalSearchResponse expectedResponse = + ConversationalSearchResponse.newBuilder() + .addAllUserQueryTypes(new ArrayList()) + .setConversationalTextResponse("conversationalTextResponse-641076324") + .setFollowupQuestion(ConversationalSearchResponse.FollowupQuestion.newBuilder().build()) + .setConversationId("conversationId-1676095234") + .addAllRefinedSearch(new ArrayList()) + .setConversationalFilteringResult( + ConversationalSearchResponse.ConversationalFilteringResult.newBuilder().build()) + .build(); + mockConversationalSearchService.addResponse(expectedResponse); + ConversationalSearchRequest request = + ConversationalSearchRequest.newBuilder() + .setPlacement("placement1792938725") + .setBranch(BranchName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[BRANCH]").toString()) + .setQuery("query107944136") + .addAllPageCategories(new ArrayList()) + .setConversationId("conversationId-1676095234") + .setSearchParams(ConversationalSearchRequest.SearchParams.newBuilder().build()) + .setVisitorId("visitorId1880545833") + .setUserInfo(UserInfo.newBuilder().build()) + .setConversationalFilteringSpec( + ConversationalSearchRequest.ConversationalFilteringSpec.newBuilder().build()) + .putAllUserLabels(new HashMap()) + .addAllSafetySettings(new ArrayList()) + .build(); + + MockStreamObserver responseObserver = new MockStreamObserver<>(); + + ServerStreamingCallable callable = + client.conversationalSearchCallable(); + callable.serverStreamingCall(request, responseObserver); + + List actualResponses = responseObserver.future().get(); + Assert.assertEquals(1, actualResponses.size()); + Assert.assertEquals(expectedResponse, actualResponses.get(0)); + } + + @Test + public void conversationalSearchExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConversationalSearchService.addException(exception); + ConversationalSearchRequest request = + ConversationalSearchRequest.newBuilder() + .setPlacement("placement1792938725") + .setBranch(BranchName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[BRANCH]").toString()) + .setQuery("query107944136") + .addAllPageCategories(new ArrayList()) + .setConversationId("conversationId-1676095234") + .setSearchParams(ConversationalSearchRequest.SearchParams.newBuilder().build()) + .setVisitorId("visitorId1880545833") + .setUserInfo(UserInfo.newBuilder().build()) + .setConversationalFilteringSpec( + ConversationalSearchRequest.ConversationalFilteringSpec.newBuilder().build()) + .putAllUserLabels(new HashMap()) + .addAllSafetySettings(new ArrayList()) + .build(); + + MockStreamObserver responseObserver = new MockStreamObserver<>(); + + ServerStreamingCallable callable = + client.conversationalSearchCallable(); + callable.serverStreamingCall(request, responseObserver); + + try { + List actualResponses = responseObserver.future().get(); + Assert.fail("No exception thrown"); + } catch (ExecutionException e) { + Assert.assertTrue(e.getCause() instanceof InvalidArgumentException); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } +} diff --git a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2beta/MockConversationalSearchService.java b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2beta/MockConversationalSearchService.java new file mode 100644 index 000000000000..58d48fb3a393 --- /dev/null +++ b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2beta/MockConversationalSearchService.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.retail.v2beta; + +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 MockConversationalSearchService implements MockGrpcService { + private final MockConversationalSearchServiceImpl serviceImpl; + + public MockConversationalSearchService() { + serviceImpl = new MockConversationalSearchServiceImpl(); + } + + @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-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2beta/MockConversationalSearchServiceImpl.java b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2beta/MockConversationalSearchServiceImpl.java new file mode 100644 index 000000000000..88e7ec0aa2fa --- /dev/null +++ b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2beta/MockConversationalSearchServiceImpl.java @@ -0,0 +1,83 @@ +/* + * 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.retail.v2beta; + +import com.google.api.core.BetaApi; +import com.google.cloud.retail.v2beta.ConversationalSearchServiceGrpc.ConversationalSearchServiceImplBase; +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 MockConversationalSearchServiceImpl extends ConversationalSearchServiceImplBase { + private List requests; + private Queue responses; + + public MockConversationalSearchServiceImpl() { + 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 conversationalSearch( + ConversationalSearchRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ConversationalSearchResponse) { + requests.add(request); + responseObserver.onNext(((ConversationalSearchResponse) 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 ConversationalSearch, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + ConversationalSearchResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ConversationalSearchServiceGrpc.java b/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ConversationalSearchServiceGrpc.java new file mode 100644 index 000000000000..cbfc3407616a --- /dev/null +++ b/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ConversationalSearchServiceGrpc.java @@ -0,0 +1,456 @@ +/* + * 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.retail.v2; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
    + * Service for retail conversational search.
    + * This feature is only available for users who have Retail Conversational
    + * Search enabled. Enable Retail Conversational Search on Cloud Console
    + * before using this feature.
    + * 
    + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/retail/v2/conversational_search_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class ConversationalSearchServiceGrpc { + + private ConversationalSearchServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.retail.v2.ConversationalSearchService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.retail.v2.ConversationalSearchRequest, + com.google.cloud.retail.v2.ConversationalSearchResponse> + getConversationalSearchMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ConversationalSearch", + requestType = com.google.cloud.retail.v2.ConversationalSearchRequest.class, + responseType = com.google.cloud.retail.v2.ConversationalSearchResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) + public static io.grpc.MethodDescriptor< + com.google.cloud.retail.v2.ConversationalSearchRequest, + com.google.cloud.retail.v2.ConversationalSearchResponse> + getConversationalSearchMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.retail.v2.ConversationalSearchRequest, + com.google.cloud.retail.v2.ConversationalSearchResponse> + getConversationalSearchMethod; + if ((getConversationalSearchMethod = + ConversationalSearchServiceGrpc.getConversationalSearchMethod) + == null) { + synchronized (ConversationalSearchServiceGrpc.class) { + if ((getConversationalSearchMethod = + ConversationalSearchServiceGrpc.getConversationalSearchMethod) + == null) { + ConversationalSearchServiceGrpc.getConversationalSearchMethod = + getConversationalSearchMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ConversationalSearch")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.retail.v2.ConversationalSearchRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.retail.v2.ConversationalSearchResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new ConversationalSearchServiceMethodDescriptorSupplier( + "ConversationalSearch")) + .build(); + } + } + } + return getConversationalSearchMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static ConversationalSearchServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConversationalSearchServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConversationalSearchServiceStub(channel, callOptions); + } + }; + return ConversationalSearchServiceStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static ConversationalSearchServiceBlockingV2Stub newBlockingV2Stub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConversationalSearchServiceBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConversationalSearchServiceBlockingV2Stub(channel, callOptions); + } + }; + return ConversationalSearchServiceBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ConversationalSearchServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConversationalSearchServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConversationalSearchServiceBlockingStub(channel, callOptions); + } + }; + return ConversationalSearchServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static ConversationalSearchServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConversationalSearchServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConversationalSearchServiceFutureStub(channel, callOptions); + } + }; + return ConversationalSearchServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
    +   * Service for retail conversational search.
    +   * This feature is only available for users who have Retail Conversational
    +   * Search enabled. Enable Retail Conversational Search on Cloud Console
    +   * before using this feature.
    +   * 
    + */ + public interface AsyncService { + + /** + * + * + *
    +     * Performs a conversational search.
    +     * This feature is only available for users who have Conversational Search
    +     * enabled.
    +     * 
    + */ + default void conversationalSearch( + com.google.cloud.retail.v2.ConversationalSearchRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getConversationalSearchMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service ConversationalSearchService. + * + *
    +   * Service for retail conversational search.
    +   * This feature is only available for users who have Retail Conversational
    +   * Search enabled. Enable Retail Conversational Search on Cloud Console
    +   * before using this feature.
    +   * 
    + */ + public abstract static class ConversationalSearchServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return ConversationalSearchServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service ConversationalSearchService. + * + *
    +   * Service for retail conversational search.
    +   * This feature is only available for users who have Retail Conversational
    +   * Search enabled. Enable Retail Conversational Search on Cloud Console
    +   * before using this feature.
    +   * 
    + */ + public static final class ConversationalSearchServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private ConversationalSearchServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConversationalSearchServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConversationalSearchServiceStub(channel, callOptions); + } + + /** + * + * + *
    +     * Performs a conversational search.
    +     * This feature is only available for users who have Conversational Search
    +     * enabled.
    +     * 
    + */ + public void conversationalSearch( + com.google.cloud.retail.v2.ConversationalSearchRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncServerStreamingCall( + getChannel().newCall(getConversationalSearchMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service ConversationalSearchService. + * + *
    +   * Service for retail conversational search.
    +   * This feature is only available for users who have Retail Conversational
    +   * Search enabled. Enable Retail Conversational Search on Cloud Console
    +   * before using this feature.
    +   * 
    + */ + public static final class ConversationalSearchServiceBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private ConversationalSearchServiceBlockingV2Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConversationalSearchServiceBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConversationalSearchServiceBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
    +     * Performs a conversational search.
    +     * This feature is only available for users who have Conversational Search
    +     * enabled.
    +     * 
    + */ + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") + public io.grpc.stub.BlockingClientCall< + ?, com.google.cloud.retail.v2.ConversationalSearchResponse> + conversationalSearch(com.google.cloud.retail.v2.ConversationalSearchRequest request) { + return io.grpc.stub.ClientCalls.blockingV2ServerStreamingCall( + getChannel(), getConversationalSearchMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service + * ConversationalSearchService. + * + *
    +   * Service for retail conversational search.
    +   * This feature is only available for users who have Retail Conversational
    +   * Search enabled. Enable Retail Conversational Search on Cloud Console
    +   * before using this feature.
    +   * 
    + */ + public static final class ConversationalSearchServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private ConversationalSearchServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConversationalSearchServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConversationalSearchServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
    +     * Performs a conversational search.
    +     * This feature is only available for users who have Conversational Search
    +     * enabled.
    +     * 
    + */ + public java.util.Iterator + conversationalSearch(com.google.cloud.retail.v2.ConversationalSearchRequest request) { + return io.grpc.stub.ClientCalls.blockingServerStreamingCall( + getChannel(), getConversationalSearchMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service + * ConversationalSearchService. + * + *
    +   * Service for retail conversational search.
    +   * This feature is only available for users who have Retail Conversational
    +   * Search enabled. Enable Retail Conversational Search on Cloud Console
    +   * before using this feature.
    +   * 
    + */ + public static final class ConversationalSearchServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private ConversationalSearchServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConversationalSearchServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConversationalSearchServiceFutureStub(channel, callOptions); + } + } + + private static final int METHODID_CONVERSATIONAL_SEARCH = 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_CONVERSATIONAL_SEARCH: + serviceImpl.conversationalSearch( + (com.google.cloud.retail.v2.ConversationalSearchRequest) 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( + getConversationalSearchMethod(), + io.grpc.stub.ServerCalls.asyncServerStreamingCall( + new MethodHandlers< + com.google.cloud.retail.v2.ConversationalSearchRequest, + com.google.cloud.retail.v2.ConversationalSearchResponse>( + service, METHODID_CONVERSATIONAL_SEARCH))) + .build(); + } + + private abstract static class ConversationalSearchServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ConversationalSearchServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.retail.v2.ConversationalSearchServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("ConversationalSearchService"); + } + } + + private static final class ConversationalSearchServiceFileDescriptorSupplier + extends ConversationalSearchServiceBaseDescriptorSupplier { + ConversationalSearchServiceFileDescriptorSupplier() {} + } + + private static final class ConversationalSearchServiceMethodDescriptorSupplier + extends ConversationalSearchServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + ConversationalSearchServiceMethodDescriptorSupplier(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 (ConversationalSearchServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ConversationalSearchServiceFileDescriptorSupplier()) + .addMethod(getConversationalSearchMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ConversationalSearchServiceGrpc.java b/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ConversationalSearchServiceGrpc.java new file mode 100644 index 000000000000..c271d43872dd --- /dev/null +++ b/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ConversationalSearchServiceGrpc.java @@ -0,0 +1,457 @@ +/* + * 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.retail.v2beta; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
    + * Service for retail conversational search.
    + * This feature is only available for users who have Retail Conversational
    + * Search enabled. Enable Retail Conversational Search on Cloud Console
    + * before using this feature.
    + * 
    + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/retail/v2beta/conversational_search_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class ConversationalSearchServiceGrpc { + + private ConversationalSearchServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.retail.v2beta.ConversationalSearchService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.retail.v2beta.ConversationalSearchRequest, + com.google.cloud.retail.v2beta.ConversationalSearchResponse> + getConversationalSearchMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ConversationalSearch", + requestType = com.google.cloud.retail.v2beta.ConversationalSearchRequest.class, + responseType = com.google.cloud.retail.v2beta.ConversationalSearchResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) + public static io.grpc.MethodDescriptor< + com.google.cloud.retail.v2beta.ConversationalSearchRequest, + com.google.cloud.retail.v2beta.ConversationalSearchResponse> + getConversationalSearchMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.retail.v2beta.ConversationalSearchRequest, + com.google.cloud.retail.v2beta.ConversationalSearchResponse> + getConversationalSearchMethod; + if ((getConversationalSearchMethod = + ConversationalSearchServiceGrpc.getConversationalSearchMethod) + == null) { + synchronized (ConversationalSearchServiceGrpc.class) { + if ((getConversationalSearchMethod = + ConversationalSearchServiceGrpc.getConversationalSearchMethod) + == null) { + ConversationalSearchServiceGrpc.getConversationalSearchMethod = + getConversationalSearchMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ConversationalSearch")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.retail.v2beta.ConversationalSearchRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.retail.v2beta.ConversationalSearchResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new ConversationalSearchServiceMethodDescriptorSupplier( + "ConversationalSearch")) + .build(); + } + } + } + return getConversationalSearchMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static ConversationalSearchServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConversationalSearchServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConversationalSearchServiceStub(channel, callOptions); + } + }; + return ConversationalSearchServiceStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static ConversationalSearchServiceBlockingV2Stub newBlockingV2Stub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConversationalSearchServiceBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConversationalSearchServiceBlockingV2Stub(channel, callOptions); + } + }; + return ConversationalSearchServiceBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ConversationalSearchServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConversationalSearchServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConversationalSearchServiceBlockingStub(channel, callOptions); + } + }; + return ConversationalSearchServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static ConversationalSearchServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConversationalSearchServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConversationalSearchServiceFutureStub(channel, callOptions); + } + }; + return ConversationalSearchServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
    +   * Service for retail conversational search.
    +   * This feature is only available for users who have Retail Conversational
    +   * Search enabled. Enable Retail Conversational Search on Cloud Console
    +   * before using this feature.
    +   * 
    + */ + public interface AsyncService { + + /** + * + * + *
    +     * Performs a conversational search.
    +     * This feature is only available for users who have Conversational Search
    +     * enabled.
    +     * 
    + */ + default void conversationalSearch( + com.google.cloud.retail.v2beta.ConversationalSearchRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getConversationalSearchMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service ConversationalSearchService. + * + *
    +   * Service for retail conversational search.
    +   * This feature is only available for users who have Retail Conversational
    +   * Search enabled. Enable Retail Conversational Search on Cloud Console
    +   * before using this feature.
    +   * 
    + */ + public abstract static class ConversationalSearchServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return ConversationalSearchServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service ConversationalSearchService. + * + *
    +   * Service for retail conversational search.
    +   * This feature is only available for users who have Retail Conversational
    +   * Search enabled. Enable Retail Conversational Search on Cloud Console
    +   * before using this feature.
    +   * 
    + */ + public static final class ConversationalSearchServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private ConversationalSearchServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConversationalSearchServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConversationalSearchServiceStub(channel, callOptions); + } + + /** + * + * + *
    +     * Performs a conversational search.
    +     * This feature is only available for users who have Conversational Search
    +     * enabled.
    +     * 
    + */ + public void conversationalSearch( + com.google.cloud.retail.v2beta.ConversationalSearchRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncServerStreamingCall( + getChannel().newCall(getConversationalSearchMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service ConversationalSearchService. + * + *
    +   * Service for retail conversational search.
    +   * This feature is only available for users who have Retail Conversational
    +   * Search enabled. Enable Retail Conversational Search on Cloud Console
    +   * before using this feature.
    +   * 
    + */ + public static final class ConversationalSearchServiceBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private ConversationalSearchServiceBlockingV2Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConversationalSearchServiceBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConversationalSearchServiceBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
    +     * Performs a conversational search.
    +     * This feature is only available for users who have Conversational Search
    +     * enabled.
    +     * 
    + */ + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") + public io.grpc.stub.BlockingClientCall< + ?, com.google.cloud.retail.v2beta.ConversationalSearchResponse> + conversationalSearch(com.google.cloud.retail.v2beta.ConversationalSearchRequest request) { + return io.grpc.stub.ClientCalls.blockingV2ServerStreamingCall( + getChannel(), getConversationalSearchMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service + * ConversationalSearchService. + * + *
    +   * Service for retail conversational search.
    +   * This feature is only available for users who have Retail Conversational
    +   * Search enabled. Enable Retail Conversational Search on Cloud Console
    +   * before using this feature.
    +   * 
    + */ + public static final class ConversationalSearchServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private ConversationalSearchServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConversationalSearchServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConversationalSearchServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
    +     * Performs a conversational search.
    +     * This feature is only available for users who have Conversational Search
    +     * enabled.
    +     * 
    + */ + public java.util.Iterator + conversationalSearch(com.google.cloud.retail.v2beta.ConversationalSearchRequest request) { + return io.grpc.stub.ClientCalls.blockingServerStreamingCall( + getChannel(), getConversationalSearchMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service + * ConversationalSearchService. + * + *
    +   * Service for retail conversational search.
    +   * This feature is only available for users who have Retail Conversational
    +   * Search enabled. Enable Retail Conversational Search on Cloud Console
    +   * before using this feature.
    +   * 
    + */ + public static final class ConversationalSearchServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private ConversationalSearchServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConversationalSearchServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConversationalSearchServiceFutureStub(channel, callOptions); + } + } + + private static final int METHODID_CONVERSATIONAL_SEARCH = 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_CONVERSATIONAL_SEARCH: + serviceImpl.conversationalSearch( + (com.google.cloud.retail.v2beta.ConversationalSearchRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.retail.v2beta.ConversationalSearchResponse>) + 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( + getConversationalSearchMethod(), + io.grpc.stub.ServerCalls.asyncServerStreamingCall( + new MethodHandlers< + com.google.cloud.retail.v2beta.ConversationalSearchRequest, + com.google.cloud.retail.v2beta.ConversationalSearchResponse>( + service, METHODID_CONVERSATIONAL_SEARCH))) + .build(); + } + + private abstract static class ConversationalSearchServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ConversationalSearchServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.retail.v2beta.ConversationalSearchServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("ConversationalSearchService"); + } + } + + private static final class ConversationalSearchServiceFileDescriptorSupplier + extends ConversationalSearchServiceBaseDescriptorSupplier { + ConversationalSearchServiceFileDescriptorSupplier() {} + } + + private static final class ConversationalSearchServiceMethodDescriptorSupplier + extends ConversationalSearchServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + ConversationalSearchServiceMethodDescriptorSupplier(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 (ConversationalSearchServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ConversationalSearchServiceFileDescriptorSupplier()) + .addMethod(getConversationalSearchMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ConversationalSearchRequest.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ConversationalSearchRequest.java new file mode 100644 index 000000000000..b641ea81f1c2 --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ConversationalSearchRequest.java @@ -0,0 +1,9297 @@ +/* + * 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/retail/v2/conversational_search_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.retail.v2; + +/** + * + * + *
    + * Request message for
    + * [ConversationalSearchService.ConversationalSearch][google.cloud.retail.v2.ConversationalSearchService.ConversationalSearch]
    + * method.
    + * 
    + * + * Protobuf type {@code google.cloud.retail.v2.ConversationalSearchRequest} + */ +public final class ConversationalSearchRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2.ConversationalSearchRequest) + ConversationalSearchRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ConversationalSearchRequest.newBuilder() to construct. + private ConversationalSearchRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ConversationalSearchRequest() { + placement_ = ""; + branch_ = ""; + query_ = ""; + pageCategories_ = com.google.protobuf.LazyStringArrayList.emptyList(); + conversationId_ = ""; + visitorId_ = ""; + safetySettings_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ConversationalSearchRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2_ConversationalSearchRequest_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 12: + return internalGetUserLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2_ConversationalSearchRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2.ConversationalSearchRequest.class, + com.google.cloud.retail.v2.ConversationalSearchRequest.Builder.class); + } + + public interface SearchParamsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2.ConversationalSearchRequest.SearchParams) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * Optional. The filter string to restrict search results.
    +     *
    +     * The syntax of the filter string is the same as
    +     * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter].
    +     * 
    + * + * string filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
    +     * Optional. The filter string to restrict search results.
    +     *
    +     * The syntax of the filter string is the same as
    +     * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter].
    +     * 
    + * + * string filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
    +     * Optional. The canonical filter string to restrict search results.
    +     *
    +     * The syntax of the canonical filter string is the same as
    +     * [SearchRequest.canonical_filter][google.cloud.retail.v2.SearchRequest.canonical_filter].
    +     * 
    + * + * string canonical_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The canonicalFilter. + */ + java.lang.String getCanonicalFilter(); + + /** + * + * + *
    +     * Optional. The canonical filter string to restrict search results.
    +     *
    +     * The syntax of the canonical filter string is the same as
    +     * [SearchRequest.canonical_filter][google.cloud.retail.v2.SearchRequest.canonical_filter].
    +     * 
    + * + * string canonical_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for canonicalFilter. + */ + com.google.protobuf.ByteString getCanonicalFilterBytes(); + + /** + * + * + *
    +     * Optional. The sort string to specify the sorting of search results.
    +     *
    +     * The syntax of the sort string is the same as
    +     * [SearchRequest.sort][].
    +     * 
    + * + * string sort_by = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sortBy. + */ + java.lang.String getSortBy(); + + /** + * + * + *
    +     * Optional. The sort string to specify the sorting of search results.
    +     *
    +     * The syntax of the sort string is the same as
    +     * [SearchRequest.sort][].
    +     * 
    + * + * string sort_by = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sortBy. + */ + com.google.protobuf.ByteString getSortByBytes(); + + /** + * + * + *
    +     * Optional. The boost spec to specify the boosting of search results.
    +     *
    +     * The syntax of the boost spec is the same as
    +     * [SearchRequest.boost_spec][google.cloud.retail.v2.SearchRequest.boost_spec].
    +     * 
    + * + * + * .google.cloud.retail.v2.SearchRequest.BoostSpec boost_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the boostSpec field is set. + */ + boolean hasBoostSpec(); + + /** + * + * + *
    +     * Optional. The boost spec to specify the boosting of search results.
    +     *
    +     * The syntax of the boost spec is the same as
    +     * [SearchRequest.boost_spec][google.cloud.retail.v2.SearchRequest.boost_spec].
    +     * 
    + * + * + * .google.cloud.retail.v2.SearchRequest.BoostSpec boost_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The boostSpec. + */ + com.google.cloud.retail.v2.SearchRequest.BoostSpec getBoostSpec(); + + /** + * + * + *
    +     * Optional. The boost spec to specify the boosting of search results.
    +     *
    +     * The syntax of the boost spec is the same as
    +     * [SearchRequest.boost_spec][google.cloud.retail.v2.SearchRequest.boost_spec].
    +     * 
    + * + * + * .google.cloud.retail.v2.SearchRequest.BoostSpec boost_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.retail.v2.SearchRequest.BoostSpecOrBuilder getBoostSpecOrBuilder(); + } + + /** + * + * + *
    +   * Search parameters.
    +   * 
    + * + * Protobuf type {@code google.cloud.retail.v2.ConversationalSearchRequest.SearchParams} + */ + public static final class SearchParams extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2.ConversationalSearchRequest.SearchParams) + SearchParamsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use SearchParams.newBuilder() to construct. + private SearchParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SearchParams() { + filter_ = ""; + canonicalFilter_ = ""; + sortBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SearchParams(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2_ConversationalSearchRequest_SearchParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2_ConversationalSearchRequest_SearchParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2.ConversationalSearchRequest.SearchParams.class, + com.google.cloud.retail.v2.ConversationalSearchRequest.SearchParams.Builder.class); + } + + private int bitField0_; + public static final int FILTER_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
    +     * Optional. The filter string to restrict search results.
    +     *
    +     * The syntax of the filter string is the same as
    +     * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter].
    +     * 
    + * + * string filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + + /** + * + * + *
    +     * Optional. The filter string to restrict search results.
    +     *
    +     * The syntax of the filter string is the same as
    +     * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter].
    +     * 
    + * + * string filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CANONICAL_FILTER_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object canonicalFilter_ = ""; + + /** + * + * + *
    +     * Optional. The canonical filter string to restrict search results.
    +     *
    +     * The syntax of the canonical filter string is the same as
    +     * [SearchRequest.canonical_filter][google.cloud.retail.v2.SearchRequest.canonical_filter].
    +     * 
    + * + * string canonical_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The canonicalFilter. + */ + @java.lang.Override + public java.lang.String getCanonicalFilter() { + java.lang.Object ref = canonicalFilter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + canonicalFilter_ = s; + return s; + } + } + + /** + * + * + *
    +     * Optional. The canonical filter string to restrict search results.
    +     *
    +     * The syntax of the canonical filter string is the same as
    +     * [SearchRequest.canonical_filter][google.cloud.retail.v2.SearchRequest.canonical_filter].
    +     * 
    + * + * string canonical_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for canonicalFilter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCanonicalFilterBytes() { + java.lang.Object ref = canonicalFilter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + canonicalFilter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SORT_BY_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object sortBy_ = ""; + + /** + * + * + *
    +     * Optional. The sort string to specify the sorting of search results.
    +     *
    +     * The syntax of the sort string is the same as
    +     * [SearchRequest.sort][].
    +     * 
    + * + * string sort_by = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sortBy. + */ + @java.lang.Override + public java.lang.String getSortBy() { + java.lang.Object ref = sortBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sortBy_ = s; + return s; + } + } + + /** + * + * + *
    +     * Optional. The sort string to specify the sorting of search results.
    +     *
    +     * The syntax of the sort string is the same as
    +     * [SearchRequest.sort][].
    +     * 
    + * + * string sort_by = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sortBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSortByBytes() { + java.lang.Object ref = sortBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sortBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BOOST_SPEC_FIELD_NUMBER = 4; + private com.google.cloud.retail.v2.SearchRequest.BoostSpec boostSpec_; + + /** + * + * + *
    +     * Optional. The boost spec to specify the boosting of search results.
    +     *
    +     * The syntax of the boost spec is the same as
    +     * [SearchRequest.boost_spec][google.cloud.retail.v2.SearchRequest.boost_spec].
    +     * 
    + * + * + * .google.cloud.retail.v2.SearchRequest.BoostSpec boost_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the boostSpec field is set. + */ + @java.lang.Override + public boolean hasBoostSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +     * Optional. The boost spec to specify the boosting of search results.
    +     *
    +     * The syntax of the boost spec is the same as
    +     * [SearchRequest.boost_spec][google.cloud.retail.v2.SearchRequest.boost_spec].
    +     * 
    + * + * + * .google.cloud.retail.v2.SearchRequest.BoostSpec boost_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The boostSpec. + */ + @java.lang.Override + public com.google.cloud.retail.v2.SearchRequest.BoostSpec getBoostSpec() { + return boostSpec_ == null + ? com.google.cloud.retail.v2.SearchRequest.BoostSpec.getDefaultInstance() + : boostSpec_; + } + + /** + * + * + *
    +     * Optional. The boost spec to specify the boosting of search results.
    +     *
    +     * The syntax of the boost spec is the same as
    +     * [SearchRequest.boost_spec][google.cloud.retail.v2.SearchRequest.boost_spec].
    +     * 
    + * + * + * .google.cloud.retail.v2.SearchRequest.BoostSpec boost_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2.SearchRequest.BoostSpecOrBuilder getBoostSpecOrBuilder() { + return boostSpec_ == null + ? com.google.cloud.retail.v2.SearchRequest.BoostSpec.getDefaultInstance() + : boostSpec_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(canonicalFilter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, canonicalFilter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sortBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sortBy_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getBoostSpec()); + } + 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(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(canonicalFilter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, canonicalFilter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sortBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sortBy_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getBoostSpec()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.retail.v2.ConversationalSearchRequest.SearchParams)) { + return super.equals(obj); + } + com.google.cloud.retail.v2.ConversationalSearchRequest.SearchParams other = + (com.google.cloud.retail.v2.ConversationalSearchRequest.SearchParams) obj; + + if (!getFilter().equals(other.getFilter())) return false; + if (!getCanonicalFilter().equals(other.getCanonicalFilter())) return false; + if (!getSortBy().equals(other.getSortBy())) return false; + if (hasBoostSpec() != other.hasBoostSpec()) return false; + if (hasBoostSpec()) { + if (!getBoostSpec().equals(other.getBoostSpec())) 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) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + CANONICAL_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getCanonicalFilter().hashCode(); + hash = (37 * hash) + SORT_BY_FIELD_NUMBER; + hash = (53 * hash) + getSortBy().hashCode(); + if (hasBoostSpec()) { + hash = (37 * hash) + BOOST_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getBoostSpec().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2.ConversationalSearchRequest.SearchParams parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.ConversationalSearchRequest.SearchParams 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.retail.v2.ConversationalSearchRequest.SearchParams parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.ConversationalSearchRequest.SearchParams parseFrom( + 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.retail.v2.ConversationalSearchRequest.SearchParams parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.ConversationalSearchRequest.SearchParams parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2.ConversationalSearchRequest.SearchParams parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.ConversationalSearchRequest.SearchParams 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.retail.v2.ConversationalSearchRequest.SearchParams + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.ConversationalSearchRequest.SearchParams + 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.retail.v2.ConversationalSearchRequest.SearchParams parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.ConversationalSearchRequest.SearchParams 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.retail.v2.ConversationalSearchRequest.SearchParams prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
    +     * Search parameters.
    +     * 
    + * + * Protobuf type {@code google.cloud.retail.v2.ConversationalSearchRequest.SearchParams} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2.ConversationalSearchRequest.SearchParams) + com.google.cloud.retail.v2.ConversationalSearchRequest.SearchParamsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2_ConversationalSearchRequest_SearchParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2_ConversationalSearchRequest_SearchParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2.ConversationalSearchRequest.SearchParams.class, + com.google.cloud.retail.v2.ConversationalSearchRequest.SearchParams.Builder.class); + } + + // Construct using + // com.google.cloud.retail.v2.ConversationalSearchRequest.SearchParams.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getBoostSpecFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + filter_ = ""; + canonicalFilter_ = ""; + sortBy_ = ""; + boostSpec_ = null; + if (boostSpecBuilder_ != null) { + boostSpecBuilder_.dispose(); + boostSpecBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2_ConversationalSearchRequest_SearchParams_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchRequest.SearchParams + getDefaultInstanceForType() { + return com.google.cloud.retail.v2.ConversationalSearchRequest.SearchParams + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchRequest.SearchParams build() { + com.google.cloud.retail.v2.ConversationalSearchRequest.SearchParams result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchRequest.SearchParams buildPartial() { + com.google.cloud.retail.v2.ConversationalSearchRequest.SearchParams result = + new com.google.cloud.retail.v2.ConversationalSearchRequest.SearchParams(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.retail.v2.ConversationalSearchRequest.SearchParams result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.canonicalFilter_ = canonicalFilter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.sortBy_ = sortBy_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.boostSpec_ = boostSpecBuilder_ == null ? boostSpec_ : boostSpecBuilder_.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.retail.v2.ConversationalSearchRequest.SearchParams) { + return mergeFrom( + (com.google.cloud.retail.v2.ConversationalSearchRequest.SearchParams) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.retail.v2.ConversationalSearchRequest.SearchParams other) { + if (other + == com.google.cloud.retail.v2.ConversationalSearchRequest.SearchParams + .getDefaultInstance()) return this; + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getCanonicalFilter().isEmpty()) { + canonicalFilter_ = other.canonicalFilter_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getSortBy().isEmpty()) { + sortBy_ = other.sortBy_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasBoostSpec()) { + mergeBoostSpec(other.getBoostSpec()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + canonicalFilter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + sortBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getBoostSpecFieldBuilder().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; + } + + private int bitField0_; + + private java.lang.Object filter_ = ""; + + /** + * + * + *
    +       * Optional. The filter string to restrict search results.
    +       *
    +       * The syntax of the filter string is the same as
    +       * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter].
    +       * 
    + * + * string filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +       * Optional. The filter string to restrict search results.
    +       *
    +       * The syntax of the filter string is the same as
    +       * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter].
    +       * 
    + * + * string filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +       * Optional. The filter string to restrict search results.
    +       *
    +       * The syntax of the filter string is the same as
    +       * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter].
    +       * 
    + * + * string filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. The filter string to restrict search results.
    +       *
    +       * The syntax of the filter string is the same as
    +       * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter].
    +       * 
    + * + * string filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. The filter string to restrict search results.
    +       *
    +       * The syntax of the filter string is the same as
    +       * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter].
    +       * 
    + * + * string filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object canonicalFilter_ = ""; + + /** + * + * + *
    +       * Optional. The canonical filter string to restrict search results.
    +       *
    +       * The syntax of the canonical filter string is the same as
    +       * [SearchRequest.canonical_filter][google.cloud.retail.v2.SearchRequest.canonical_filter].
    +       * 
    + * + * string canonical_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The canonicalFilter. + */ + public java.lang.String getCanonicalFilter() { + java.lang.Object ref = canonicalFilter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + canonicalFilter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +       * Optional. The canonical filter string to restrict search results.
    +       *
    +       * The syntax of the canonical filter string is the same as
    +       * [SearchRequest.canonical_filter][google.cloud.retail.v2.SearchRequest.canonical_filter].
    +       * 
    + * + * string canonical_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for canonicalFilter. + */ + public com.google.protobuf.ByteString getCanonicalFilterBytes() { + java.lang.Object ref = canonicalFilter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + canonicalFilter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +       * Optional. The canonical filter string to restrict search results.
    +       *
    +       * The syntax of the canonical filter string is the same as
    +       * [SearchRequest.canonical_filter][google.cloud.retail.v2.SearchRequest.canonical_filter].
    +       * 
    + * + * string canonical_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The canonicalFilter to set. + * @return This builder for chaining. + */ + public Builder setCanonicalFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + canonicalFilter_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. The canonical filter string to restrict search results.
    +       *
    +       * The syntax of the canonical filter string is the same as
    +       * [SearchRequest.canonical_filter][google.cloud.retail.v2.SearchRequest.canonical_filter].
    +       * 
    + * + * string canonical_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCanonicalFilter() { + canonicalFilter_ = getDefaultInstance().getCanonicalFilter(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. The canonical filter string to restrict search results.
    +       *
    +       * The syntax of the canonical filter string is the same as
    +       * [SearchRequest.canonical_filter][google.cloud.retail.v2.SearchRequest.canonical_filter].
    +       * 
    + * + * string canonical_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for canonicalFilter to set. + * @return This builder for chaining. + */ + public Builder setCanonicalFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + canonicalFilter_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object sortBy_ = ""; + + /** + * + * + *
    +       * Optional. The sort string to specify the sorting of search results.
    +       *
    +       * The syntax of the sort string is the same as
    +       * [SearchRequest.sort][].
    +       * 
    + * + * string sort_by = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sortBy. + */ + public java.lang.String getSortBy() { + java.lang.Object ref = sortBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sortBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +       * Optional. The sort string to specify the sorting of search results.
    +       *
    +       * The syntax of the sort string is the same as
    +       * [SearchRequest.sort][].
    +       * 
    + * + * string sort_by = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sortBy. + */ + public com.google.protobuf.ByteString getSortByBytes() { + java.lang.Object ref = sortBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sortBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +       * Optional. The sort string to specify the sorting of search results.
    +       *
    +       * The syntax of the sort string is the same as
    +       * [SearchRequest.sort][].
    +       * 
    + * + * string sort_by = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The sortBy to set. + * @return This builder for chaining. + */ + public Builder setSortBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sortBy_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. The sort string to specify the sorting of search results.
    +       *
    +       * The syntax of the sort string is the same as
    +       * [SearchRequest.sort][].
    +       * 
    + * + * string sort_by = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSortBy() { + sortBy_ = getDefaultInstance().getSortBy(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. The sort string to specify the sorting of search results.
    +       *
    +       * The syntax of the sort string is the same as
    +       * [SearchRequest.sort][].
    +       * 
    + * + * string sort_by = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for sortBy to set. + * @return This builder for chaining. + */ + public Builder setSortByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sortBy_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.cloud.retail.v2.SearchRequest.BoostSpec boostSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.SearchRequest.BoostSpec, + com.google.cloud.retail.v2.SearchRequest.BoostSpec.Builder, + com.google.cloud.retail.v2.SearchRequest.BoostSpecOrBuilder> + boostSpecBuilder_; + + /** + * + * + *
    +       * Optional. The boost spec to specify the boosting of search results.
    +       *
    +       * The syntax of the boost spec is the same as
    +       * [SearchRequest.boost_spec][google.cloud.retail.v2.SearchRequest.boost_spec].
    +       * 
    + * + * + * .google.cloud.retail.v2.SearchRequest.BoostSpec boost_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the boostSpec field is set. + */ + public boolean hasBoostSpec() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
    +       * Optional. The boost spec to specify the boosting of search results.
    +       *
    +       * The syntax of the boost spec is the same as
    +       * [SearchRequest.boost_spec][google.cloud.retail.v2.SearchRequest.boost_spec].
    +       * 
    + * + * + * .google.cloud.retail.v2.SearchRequest.BoostSpec boost_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The boostSpec. + */ + public com.google.cloud.retail.v2.SearchRequest.BoostSpec getBoostSpec() { + if (boostSpecBuilder_ == null) { + return boostSpec_ == null + ? com.google.cloud.retail.v2.SearchRequest.BoostSpec.getDefaultInstance() + : boostSpec_; + } else { + return boostSpecBuilder_.getMessage(); + } + } + + /** + * + * + *
    +       * Optional. The boost spec to specify the boosting of search results.
    +       *
    +       * The syntax of the boost spec is the same as
    +       * [SearchRequest.boost_spec][google.cloud.retail.v2.SearchRequest.boost_spec].
    +       * 
    + * + * + * .google.cloud.retail.v2.SearchRequest.BoostSpec boost_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBoostSpec(com.google.cloud.retail.v2.SearchRequest.BoostSpec value) { + if (boostSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + boostSpec_ = value; + } else { + boostSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. The boost spec to specify the boosting of search results.
    +       *
    +       * The syntax of the boost spec is the same as
    +       * [SearchRequest.boost_spec][google.cloud.retail.v2.SearchRequest.boost_spec].
    +       * 
    + * + * + * .google.cloud.retail.v2.SearchRequest.BoostSpec boost_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBoostSpec( + com.google.cloud.retail.v2.SearchRequest.BoostSpec.Builder builderForValue) { + if (boostSpecBuilder_ == null) { + boostSpec_ = builderForValue.build(); + } else { + boostSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. The boost spec to specify the boosting of search results.
    +       *
    +       * The syntax of the boost spec is the same as
    +       * [SearchRequest.boost_spec][google.cloud.retail.v2.SearchRequest.boost_spec].
    +       * 
    + * + * + * .google.cloud.retail.v2.SearchRequest.BoostSpec boost_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeBoostSpec(com.google.cloud.retail.v2.SearchRequest.BoostSpec value) { + if (boostSpecBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && boostSpec_ != null + && boostSpec_ + != com.google.cloud.retail.v2.SearchRequest.BoostSpec.getDefaultInstance()) { + getBoostSpecBuilder().mergeFrom(value); + } else { + boostSpec_ = value; + } + } else { + boostSpecBuilder_.mergeFrom(value); + } + if (boostSpec_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
    +       * Optional. The boost spec to specify the boosting of search results.
    +       *
    +       * The syntax of the boost spec is the same as
    +       * [SearchRequest.boost_spec][google.cloud.retail.v2.SearchRequest.boost_spec].
    +       * 
    + * + * + * .google.cloud.retail.v2.SearchRequest.BoostSpec boost_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearBoostSpec() { + bitField0_ = (bitField0_ & ~0x00000008); + boostSpec_ = null; + if (boostSpecBuilder_ != null) { + boostSpecBuilder_.dispose(); + boostSpecBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. The boost spec to specify the boosting of search results.
    +       *
    +       * The syntax of the boost spec is the same as
    +       * [SearchRequest.boost_spec][google.cloud.retail.v2.SearchRequest.boost_spec].
    +       * 
    + * + * + * .google.cloud.retail.v2.SearchRequest.BoostSpec boost_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.retail.v2.SearchRequest.BoostSpec.Builder getBoostSpecBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getBoostSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +       * Optional. The boost spec to specify the boosting of search results.
    +       *
    +       * The syntax of the boost spec is the same as
    +       * [SearchRequest.boost_spec][google.cloud.retail.v2.SearchRequest.boost_spec].
    +       * 
    + * + * + * .google.cloud.retail.v2.SearchRequest.BoostSpec boost_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.retail.v2.SearchRequest.BoostSpecOrBuilder getBoostSpecOrBuilder() { + if (boostSpecBuilder_ != null) { + return boostSpecBuilder_.getMessageOrBuilder(); + } else { + return boostSpec_ == null + ? com.google.cloud.retail.v2.SearchRequest.BoostSpec.getDefaultInstance() + : boostSpec_; + } + } + + /** + * + * + *
    +       * Optional. The boost spec to specify the boosting of search results.
    +       *
    +       * The syntax of the boost spec is the same as
    +       * [SearchRequest.boost_spec][google.cloud.retail.v2.SearchRequest.boost_spec].
    +       * 
    + * + * + * .google.cloud.retail.v2.SearchRequest.BoostSpec boost_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.SearchRequest.BoostSpec, + com.google.cloud.retail.v2.SearchRequest.BoostSpec.Builder, + com.google.cloud.retail.v2.SearchRequest.BoostSpecOrBuilder> + getBoostSpecFieldBuilder() { + if (boostSpecBuilder_ == null) { + boostSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.SearchRequest.BoostSpec, + com.google.cloud.retail.v2.SearchRequest.BoostSpec.Builder, + com.google.cloud.retail.v2.SearchRequest.BoostSpecOrBuilder>( + getBoostSpec(), getParentForChildren(), isClean()); + boostSpec_ = null; + } + return boostSpecBuilder_; + } + + @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.retail.v2.ConversationalSearchRequest.SearchParams) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2.ConversationalSearchRequest.SearchParams) + private static final com.google.cloud.retail.v2.ConversationalSearchRequest.SearchParams + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.retail.v2.ConversationalSearchRequest.SearchParams(); + } + + public static com.google.cloud.retail.v2.ConversationalSearchRequest.SearchParams + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.retail.v2.ConversationalSearchRequest.SearchParams + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface UserAnswerOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * This field specifies the incremental input text from the user during
    +     * the conversational search.
    +     * 
    + * + * string text_answer = 1; + * + * @return Whether the textAnswer field is set. + */ + boolean hasTextAnswer(); + + /** + * + * + *
    +     * This field specifies the incremental input text from the user during
    +     * the conversational search.
    +     * 
    + * + * string text_answer = 1; + * + * @return The textAnswer. + */ + java.lang.String getTextAnswer(); + + /** + * + * + *
    +     * This field specifies the incremental input text from the user during
    +     * the conversational search.
    +     * 
    + * + * string text_answer = 1; + * + * @return The bytes for textAnswer. + */ + com.google.protobuf.ByteString getTextAnswerBytes(); + + /** + * + * + *
    +     * Optional. This field specifies the selected answer during the
    +     * conversational search. This should be a subset of
    +     * [ConversationalSearchResponse.followup_question.suggested_answers][].
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer selected_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the selectedAnswer field is set. + */ + boolean hasSelectedAnswer(); + + /** + * + * + *
    +     * Optional. This field specifies the selected answer during the
    +     * conversational search. This should be a subset of
    +     * [ConversationalSearchResponse.followup_question.suggested_answers][].
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer selected_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The selectedAnswer. + */ + com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer + getSelectedAnswer(); + + /** + * + * + *
    +     * Optional. This field specifies the selected answer during the
    +     * conversational search. This should be a subset of
    +     * [ConversationalSearchResponse.followup_question.suggested_answers][].
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer selected_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswerOrBuilder + getSelectedAnswerOrBuilder(); + + com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.TypeCase getTypeCase(); + } + + /** + * + * + *
    +   * This field specifies the current user answer during the conversational
    +   * filtering search. This can be either user selected from suggested answers
    +   * or user input plain text.
    +   * 
    + * + * Protobuf type {@code google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer} + */ + public static final class UserAnswer extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer) + UserAnswerOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UserAnswer.newBuilder() to construct. + private UserAnswer(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UserAnswer() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UserAnswer(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2_ConversationalSearchRequest_UserAnswer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2_ConversationalSearchRequest_UserAnswer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.class, + com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.Builder.class); + } + + public interface SelectedAnswerOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +       * Optional. This field specifies the selected answer which is a attribute
    +       * key-value.
    +       * 
    + * + * + * .google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the productAttributeValue field is set. + */ + boolean hasProductAttributeValue(); + + /** + * + * + *
    +       * Optional. This field specifies the selected answer which is a attribute
    +       * key-value.
    +       * 
    + * + * + * .google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The productAttributeValue. + */ + com.google.cloud.retail.v2.ProductAttributeValue getProductAttributeValue(); + + /** + * + * + *
    +       * Optional. This field specifies the selected answer which is a attribute
    +       * key-value.
    +       * 
    + * + * + * .google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.retail.v2.ProductAttributeValueOrBuilder getProductAttributeValueOrBuilder(); + } + + /** + * + * + *
    +     * This field specifies the selected answers during the conversational
    +     * search.
    +     * 
    + * + * Protobuf type {@code + * google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer} + */ + public static final class SelectedAnswer extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer) + SelectedAnswerOrBuilder { + private static final long serialVersionUID = 0L; + + // Use SelectedAnswer.newBuilder() to construct. + private SelectedAnswer(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SelectedAnswer() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SelectedAnswer(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2_ConversationalSearchRequest_UserAnswer_SelectedAnswer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2_ConversationalSearchRequest_UserAnswer_SelectedAnswer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer + .class, + com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer + .Builder.class); + } + + private int bitField0_; + public static final int PRODUCT_ATTRIBUTE_VALUE_FIELD_NUMBER = 1; + private com.google.cloud.retail.v2.ProductAttributeValue productAttributeValue_; + + /** + * + * + *
    +       * Optional. This field specifies the selected answer which is a attribute
    +       * key-value.
    +       * 
    + * + * + * .google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the productAttributeValue field is set. + */ + @java.lang.Override + public boolean hasProductAttributeValue() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +       * Optional. This field specifies the selected answer which is a attribute
    +       * key-value.
    +       * 
    + * + * + * .google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The productAttributeValue. + */ + @java.lang.Override + public com.google.cloud.retail.v2.ProductAttributeValue getProductAttributeValue() { + return productAttributeValue_ == null + ? com.google.cloud.retail.v2.ProductAttributeValue.getDefaultInstance() + : productAttributeValue_; + } + + /** + * + * + *
    +       * Optional. This field specifies the selected answer which is a attribute
    +       * key-value.
    +       * 
    + * + * + * .google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2.ProductAttributeValueOrBuilder + getProductAttributeValueOrBuilder() { + return productAttributeValue_ == null + ? com.google.cloud.retail.v2.ProductAttributeValue.getDefaultInstance() + : productAttributeValue_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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, getProductAttributeValue()); + } + 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, getProductAttributeValue()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer)) { + return super.equals(obj); + } + com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer other = + (com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer) obj; + + if (hasProductAttributeValue() != other.hasProductAttributeValue()) return false; + if (hasProductAttributeValue()) { + if (!getProductAttributeValue().equals(other.getProductAttributeValue())) 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 (hasProductAttributeValue()) { + hash = (37 * hash) + PRODUCT_ATTRIBUTE_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getProductAttributeValue().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer + 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.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer + parseFrom( + 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.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer + 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.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer + 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.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer + 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.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
    +       * This field specifies the selected answers during the conversational
    +       * search.
    +       * 
    + * + * Protobuf type {@code + * google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer) + com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer + .SelectedAnswerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2_ConversationalSearchRequest_UserAnswer_SelectedAnswer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2_ConversationalSearchRequest_UserAnswer_SelectedAnswer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer + .class, + com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer + .Builder.class); + } + + // Construct using + // com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getProductAttributeValueFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + productAttributeValue_ = null; + if (productAttributeValueBuilder_ != null) { + productAttributeValueBuilder_.dispose(); + productAttributeValueBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2_ConversationalSearchRequest_UserAnswer_SelectedAnswer_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer + getDefaultInstanceForType() { + return com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer + build() { + com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer + buildPartial() { + com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer result = + new com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.productAttributeValue_ = + productAttributeValueBuilder_ == null + ? productAttributeValue_ + : productAttributeValueBuilder_.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.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer) { + return mergeFrom( + (com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer + other) { + if (other + == com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer + .getDefaultInstance()) return this; + if (other.hasProductAttributeValue()) { + mergeProductAttributeValue(other.getProductAttributeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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( + getProductAttributeValueFieldBuilder().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.retail.v2.ProductAttributeValue productAttributeValue_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.ProductAttributeValue, + com.google.cloud.retail.v2.ProductAttributeValue.Builder, + com.google.cloud.retail.v2.ProductAttributeValueOrBuilder> + productAttributeValueBuilder_; + + /** + * + * + *
    +         * Optional. This field specifies the selected answer which is a attribute
    +         * key-value.
    +         * 
    + * + * + * .google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the productAttributeValue field is set. + */ + public boolean hasProductAttributeValue() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +         * Optional. This field specifies the selected answer which is a attribute
    +         * key-value.
    +         * 
    + * + * + * .google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The productAttributeValue. + */ + public com.google.cloud.retail.v2.ProductAttributeValue getProductAttributeValue() { + if (productAttributeValueBuilder_ == null) { + return productAttributeValue_ == null + ? com.google.cloud.retail.v2.ProductAttributeValue.getDefaultInstance() + : productAttributeValue_; + } else { + return productAttributeValueBuilder_.getMessage(); + } + } + + /** + * + * + *
    +         * Optional. This field specifies the selected answer which is a attribute
    +         * key-value.
    +         * 
    + * + * + * .google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setProductAttributeValue( + com.google.cloud.retail.v2.ProductAttributeValue value) { + if (productAttributeValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + productAttributeValue_ = value; + } else { + productAttributeValueBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +         * Optional. This field specifies the selected answer which is a attribute
    +         * key-value.
    +         * 
    + * + * + * .google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setProductAttributeValue( + com.google.cloud.retail.v2.ProductAttributeValue.Builder builderForValue) { + if (productAttributeValueBuilder_ == null) { + productAttributeValue_ = builderForValue.build(); + } else { + productAttributeValueBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +         * Optional. This field specifies the selected answer which is a attribute
    +         * key-value.
    +         * 
    + * + * + * .google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeProductAttributeValue( + com.google.cloud.retail.v2.ProductAttributeValue value) { + if (productAttributeValueBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && productAttributeValue_ != null + && productAttributeValue_ + != com.google.cloud.retail.v2.ProductAttributeValue.getDefaultInstance()) { + getProductAttributeValueBuilder().mergeFrom(value); + } else { + productAttributeValue_ = value; + } + } else { + productAttributeValueBuilder_.mergeFrom(value); + } + if (productAttributeValue_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
    +         * Optional. This field specifies the selected answer which is a attribute
    +         * key-value.
    +         * 
    + * + * + * .google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearProductAttributeValue() { + bitField0_ = (bitField0_ & ~0x00000001); + productAttributeValue_ = null; + if (productAttributeValueBuilder_ != null) { + productAttributeValueBuilder_.dispose(); + productAttributeValueBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +         * Optional. This field specifies the selected answer which is a attribute
    +         * key-value.
    +         * 
    + * + * + * .google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.retail.v2.ProductAttributeValue.Builder + getProductAttributeValueBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getProductAttributeValueFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +         * Optional. This field specifies the selected answer which is a attribute
    +         * key-value.
    +         * 
    + * + * + * .google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.retail.v2.ProductAttributeValueOrBuilder + getProductAttributeValueOrBuilder() { + if (productAttributeValueBuilder_ != null) { + return productAttributeValueBuilder_.getMessageOrBuilder(); + } else { + return productAttributeValue_ == null + ? com.google.cloud.retail.v2.ProductAttributeValue.getDefaultInstance() + : productAttributeValue_; + } + } + + /** + * + * + *
    +         * Optional. This field specifies the selected answer which is a attribute
    +         * key-value.
    +         * 
    + * + * + * .google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.ProductAttributeValue, + com.google.cloud.retail.v2.ProductAttributeValue.Builder, + com.google.cloud.retail.v2.ProductAttributeValueOrBuilder> + getProductAttributeValueFieldBuilder() { + if (productAttributeValueBuilder_ == null) { + productAttributeValueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.ProductAttributeValue, + com.google.cloud.retail.v2.ProductAttributeValue.Builder, + com.google.cloud.retail.v2.ProductAttributeValueOrBuilder>( + getProductAttributeValue(), getParentForChildren(), isClean()); + productAttributeValue_ = null; + } + return productAttributeValueBuilder_; + } + + @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.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer) + private static final com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer + .SelectedAnswer + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer(); + } + + public static com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SelectedAnswer parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int typeCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object type_; + + public enum TypeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TEXT_ANSWER(1), + SELECTED_ANSWER(2), + TYPE_NOT_SET(0); + private final int value; + + private TypeCase(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 TypeCase valueOf(int value) { + return forNumber(value); + } + + public static TypeCase forNumber(int value) { + switch (value) { + case 1: + return TEXT_ANSWER; + case 2: + return SELECTED_ANSWER; + case 0: + return TYPE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public TypeCase getTypeCase() { + return TypeCase.forNumber(typeCase_); + } + + public static final int TEXT_ANSWER_FIELD_NUMBER = 1; + + /** + * + * + *
    +     * This field specifies the incremental input text from the user during
    +     * the conversational search.
    +     * 
    + * + * string text_answer = 1; + * + * @return Whether the textAnswer field is set. + */ + public boolean hasTextAnswer() { + return typeCase_ == 1; + } + + /** + * + * + *
    +     * This field specifies the incremental input text from the user during
    +     * the conversational search.
    +     * 
    + * + * string text_answer = 1; + * + * @return The textAnswer. + */ + public java.lang.String getTextAnswer() { + java.lang.Object ref = ""; + if (typeCase_ == 1) { + ref = type_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (typeCase_ == 1) { + type_ = s; + } + return s; + } + } + + /** + * + * + *
    +     * This field specifies the incremental input text from the user during
    +     * the conversational search.
    +     * 
    + * + * string text_answer = 1; + * + * @return The bytes for textAnswer. + */ + public com.google.protobuf.ByteString getTextAnswerBytes() { + java.lang.Object ref = ""; + if (typeCase_ == 1) { + ref = type_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (typeCase_ == 1) { + type_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SELECTED_ANSWER_FIELD_NUMBER = 2; + + /** + * + * + *
    +     * Optional. This field specifies the selected answer during the
    +     * conversational search. This should be a subset of
    +     * [ConversationalSearchResponse.followup_question.suggested_answers][].
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer selected_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the selectedAnswer field is set. + */ + @java.lang.Override + public boolean hasSelectedAnswer() { + return typeCase_ == 2; + } + + /** + * + * + *
    +     * Optional. This field specifies the selected answer during the
    +     * conversational search. This should be a subset of
    +     * [ConversationalSearchResponse.followup_question.suggested_answers][].
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer selected_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The selectedAnswer. + */ + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer + getSelectedAnswer() { + if (typeCase_ == 2) { + return (com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer) + type_; + } + return com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer + .getDefaultInstance(); + } + + /** + * + * + *
    +     * Optional. This field specifies the selected answer during the
    +     * conversational search. This should be a subset of
    +     * [ConversationalSearchResponse.followup_question.suggested_answers][].
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer selected_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswerOrBuilder + getSelectedAnswerOrBuilder() { + if (typeCase_ == 2) { + return (com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer) + type_; + } + return com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer + .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 (typeCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); + } + if (typeCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer) + type_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (typeCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); + } + if (typeCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer) + type_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.retail.v2.ConversationalSearchRequest.UserAnswer)) { + return super.equals(obj); + } + com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer other = + (com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer) obj; + + if (!getTypeCase().equals(other.getTypeCase())) return false; + switch (typeCase_) { + case 1: + if (!getTextAnswer().equals(other.getTextAnswer())) return false; + break; + case 2: + if (!getSelectedAnswer().equals(other.getSelectedAnswer())) 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 (typeCase_) { + case 1: + hash = (37 * hash) + TEXT_ANSWER_FIELD_NUMBER; + hash = (53 * hash) + getTextAnswer().hashCode(); + break; + case 2: + hash = (37 * hash) + SELECTED_ANSWER_FIELD_NUMBER; + hash = (53 * hash) + getSelectedAnswer().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer 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.retail.v2.ConversationalSearchRequest.UserAnswer parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer parseFrom( + 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.retail.v2.ConversationalSearchRequest.UserAnswer parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer 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.retail.v2.ConversationalSearchRequest.UserAnswer + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer + 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.retail.v2.ConversationalSearchRequest.UserAnswer parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer 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.retail.v2.ConversationalSearchRequest.UserAnswer prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
    +     * This field specifies the current user answer during the conversational
    +     * filtering search. This can be either user selected from suggested answers
    +     * or user input plain text.
    +     * 
    + * + * Protobuf type {@code google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer) + com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2_ConversationalSearchRequest_UserAnswer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2_ConversationalSearchRequest_UserAnswer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.class, + com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.Builder.class); + } + + // Construct using + // com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (selectedAnswerBuilder_ != null) { + selectedAnswerBuilder_.clear(); + } + typeCase_ = 0; + type_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2_ConversationalSearchRequest_UserAnswer_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer + getDefaultInstanceForType() { + return com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer build() { + com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer buildPartial() { + com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer result = + new com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer result) { + result.typeCase_ = typeCase_; + result.type_ = this.type_; + if (typeCase_ == 2 && selectedAnswerBuilder_ != null) { + result.type_ = selectedAnswerBuilder_.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.retail.v2.ConversationalSearchRequest.UserAnswer) { + return mergeFrom( + (com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer other) { + if (other + == com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer + .getDefaultInstance()) return this; + switch (other.getTypeCase()) { + case TEXT_ANSWER: + { + typeCase_ = 1; + type_ = other.type_; + onChanged(); + break; + } + case SELECTED_ANSWER: + { + mergeSelectedAnswer(other.getSelectedAnswer()); + break; + } + case TYPE_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: + { + java.lang.String s = input.readStringRequireUtf8(); + typeCase_ = 1; + type_ = s; + break; + } // case 10 + case 18: + { + input.readMessage( + getSelectedAnswerFieldBuilder().getBuilder(), extensionRegistry); + typeCase_ = 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 typeCase_ = 0; + private java.lang.Object type_; + + public TypeCase getTypeCase() { + return TypeCase.forNumber(typeCase_); + } + + public Builder clearType() { + typeCase_ = 0; + type_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
    +       * This field specifies the incremental input text from the user during
    +       * the conversational search.
    +       * 
    + * + * string text_answer = 1; + * + * @return Whether the textAnswer field is set. + */ + @java.lang.Override + public boolean hasTextAnswer() { + return typeCase_ == 1; + } + + /** + * + * + *
    +       * This field specifies the incremental input text from the user during
    +       * the conversational search.
    +       * 
    + * + * string text_answer = 1; + * + * @return The textAnswer. + */ + @java.lang.Override + public java.lang.String getTextAnswer() { + java.lang.Object ref = ""; + if (typeCase_ == 1) { + ref = type_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (typeCase_ == 1) { + type_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +       * This field specifies the incremental input text from the user during
    +       * the conversational search.
    +       * 
    + * + * string text_answer = 1; + * + * @return The bytes for textAnswer. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTextAnswerBytes() { + java.lang.Object ref = ""; + if (typeCase_ == 1) { + ref = type_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (typeCase_ == 1) { + type_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +       * This field specifies the incremental input text from the user during
    +       * the conversational search.
    +       * 
    + * + * string text_answer = 1; + * + * @param value The textAnswer to set. + * @return This builder for chaining. + */ + public Builder setTextAnswer(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + typeCase_ = 1; + type_ = value; + onChanged(); + return this; + } + + /** + * + * + *
    +       * This field specifies the incremental input text from the user during
    +       * the conversational search.
    +       * 
    + * + * string text_answer = 1; + * + * @return This builder for chaining. + */ + public Builder clearTextAnswer() { + if (typeCase_ == 1) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
    +       * This field specifies the incremental input text from the user during
    +       * the conversational search.
    +       * 
    + * + * string text_answer = 1; + * + * @param value The bytes for textAnswer to set. + * @return This builder for chaining. + */ + public Builder setTextAnswerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + typeCase_ = 1; + type_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer, + com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer + .Builder, + com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer + .SelectedAnswerOrBuilder> + selectedAnswerBuilder_; + + /** + * + * + *
    +       * Optional. This field specifies the selected answer during the
    +       * conversational search. This should be a subset of
    +       * [ConversationalSearchResponse.followup_question.suggested_answers][].
    +       * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer selected_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the selectedAnswer field is set. + */ + @java.lang.Override + public boolean hasSelectedAnswer() { + return typeCase_ == 2; + } + + /** + * + * + *
    +       * Optional. This field specifies the selected answer during the
    +       * conversational search. This should be a subset of
    +       * [ConversationalSearchResponse.followup_question.suggested_answers][].
    +       * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer selected_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The selectedAnswer. + */ + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer + getSelectedAnswer() { + if (selectedAnswerBuilder_ == null) { + if (typeCase_ == 2) { + return (com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer + .SelectedAnswer) + type_; + } + return com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer + .getDefaultInstance(); + } else { + if (typeCase_ == 2) { + return selectedAnswerBuilder_.getMessage(); + } + return com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer + .getDefaultInstance(); + } + } + + /** + * + * + *
    +       * Optional. This field specifies the selected answer during the
    +       * conversational search. This should be a subset of
    +       * [ConversationalSearchResponse.followup_question.suggested_answers][].
    +       * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer selected_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSelectedAnswer( + com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer value) { + if (selectedAnswerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + selectedAnswerBuilder_.setMessage(value); + } + typeCase_ = 2; + return this; + } + + /** + * + * + *
    +       * Optional. This field specifies the selected answer during the
    +       * conversational search. This should be a subset of
    +       * [ConversationalSearchResponse.followup_question.suggested_answers][].
    +       * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer selected_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSelectedAnswer( + com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer.Builder + builderForValue) { + if (selectedAnswerBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + selectedAnswerBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 2; + return this; + } + + /** + * + * + *
    +       * Optional. This field specifies the selected answer during the
    +       * conversational search. This should be a subset of
    +       * [ConversationalSearchResponse.followup_question.suggested_answers][].
    +       * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer selected_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSelectedAnswer( + com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer value) { + if (selectedAnswerBuilder_ == null) { + if (typeCase_ == 2 + && type_ + != com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer + .SelectedAnswer.getDefaultInstance()) { + type_ = + com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer + .newBuilder( + (com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer + .SelectedAnswer) + type_) + .mergeFrom(value) + .buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 2) { + selectedAnswerBuilder_.mergeFrom(value); + } else { + selectedAnswerBuilder_.setMessage(value); + } + } + typeCase_ = 2; + return this; + } + + /** + * + * + *
    +       * Optional. This field specifies the selected answer during the
    +       * conversational search. This should be a subset of
    +       * [ConversationalSearchResponse.followup_question.suggested_answers][].
    +       * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer selected_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSelectedAnswer() { + if (selectedAnswerBuilder_ == null) { + if (typeCase_ == 2) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 2) { + typeCase_ = 0; + type_ = null; + } + selectedAnswerBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +       * Optional. This field specifies the selected answer during the
    +       * conversational search. This should be a subset of
    +       * [ConversationalSearchResponse.followup_question.suggested_answers][].
    +       * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer selected_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer + .Builder + getSelectedAnswerBuilder() { + return getSelectedAnswerFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +       * Optional. This field specifies the selected answer during the
    +       * conversational search. This should be a subset of
    +       * [ConversationalSearchResponse.followup_question.suggested_answers][].
    +       * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer selected_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer + .SelectedAnswerOrBuilder + getSelectedAnswerOrBuilder() { + if ((typeCase_ == 2) && (selectedAnswerBuilder_ != null)) { + return selectedAnswerBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 2) { + return (com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer + .SelectedAnswer) + type_; + } + return com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer + .getDefaultInstance(); + } + } + + /** + * + * + *
    +       * Optional. This field specifies the selected answer during the
    +       * conversational search. This should be a subset of
    +       * [ConversationalSearchResponse.followup_question.suggested_answers][].
    +       * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer selected_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer, + com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer + .Builder, + com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer + .SelectedAnswerOrBuilder> + getSelectedAnswerFieldBuilder() { + if (selectedAnswerBuilder_ == null) { + if (!(typeCase_ == 2)) { + type_ = + com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer + .getDefaultInstance(); + } + selectedAnswerBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer, + com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer + .Builder, + com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer + .SelectedAnswerOrBuilder>( + (com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer) + type_, + getParentForChildren(), + isClean()); + type_ = null; + } + typeCase_ = 2; + onChanged(); + return selectedAnswerBuilder_; + } + + @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.retail.v2.ConversationalSearchRequest.UserAnswer) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer) + private static final com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer(); + } + + public static com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserAnswer parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.retail.v2.ConversationalSearchRequest.UserAnswer + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ConversationalFilteringSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * Optional. This field is deprecated. Please use
    +     * [ConversationalFilteringSpec.conversational_filtering_mode][google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec.conversational_filtering_mode]
    +     * instead.
    +     * 
    + * + * + * bool enable_conversational_filtering = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec.enable_conversational_filtering + * is deprecated. See google/cloud/retail/v2/conversational_search_service.proto;l=145 + * @return The enableConversationalFiltering. + */ + @java.lang.Deprecated + boolean getEnableConversationalFiltering(); + + /** + * + * + *
    +     * Optional. This field specifies the current user answer during the
    +     * conversational filtering search. It can be either user selected from
    +     * suggested answers or user input plain text.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer user_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the userAnswer field is set. + */ + boolean hasUserAnswer(); + + /** + * + * + *
    +     * Optional. This field specifies the current user answer during the
    +     * conversational filtering search. It can be either user selected from
    +     * suggested answers or user input plain text.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer user_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The userAnswer. + */ + com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer getUserAnswer(); + + /** + * + * + *
    +     * Optional. This field specifies the current user answer during the
    +     * conversational filtering search. It can be either user selected from
    +     * suggested answers or user input plain text.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer user_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswerOrBuilder + getUserAnswerOrBuilder(); + + /** + * + * + *
    +     * Optional. Mode to control Conversational Filtering.
    +     * Defaults to
    +     * [Mode.DISABLED][google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec.Mode.DISABLED]
    +     * if it's unset.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec.Mode conversational_filtering_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for conversationalFilteringMode. + */ + int getConversationalFilteringModeValue(); + + /** + * + * + *
    +     * Optional. Mode to control Conversational Filtering.
    +     * Defaults to
    +     * [Mode.DISABLED][google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec.Mode.DISABLED]
    +     * if it's unset.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec.Mode conversational_filtering_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The conversationalFilteringMode. + */ + com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec.Mode + getConversationalFilteringMode(); + } + + /** + * + * + *
    +   * This field specifies all conversational filtering related parameters
    +   * addition to conversational retail search.
    +   * 
    + * + * Protobuf type {@code + * google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec} + */ + public static final class ConversationalFilteringSpec + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec) + ConversationalFilteringSpecOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ConversationalFilteringSpec.newBuilder() to construct. + private ConversationalFilteringSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ConversationalFilteringSpec() { + conversationalFilteringMode_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ConversationalFilteringSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2_ConversationalSearchRequest_ConversationalFilteringSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2_ConversationalSearchRequest_ConversationalFilteringSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec + .class, + com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec + .Builder.class); + } + + /** + * + * + *
    +     * Enum to control Conversational Filtering mode.
    +     * A single conversation session including multiple turns supports modes for
    +     * Conversational Search OR Conversational Filtering without
    +     * Conversational Search, but not both.
    +     * 
    + * + * Protobuf enum {@code + * google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec.Mode} + */ + public enum Mode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +       * Default value.
    +       * 
    + * + * MODE_UNSPECIFIED = 0; + */ + MODE_UNSPECIFIED(0), + /** + * + * + *
    +       * Disables Conversational Filtering when using Conversational Search.
    +       * 
    + * + * DISABLED = 1; + */ + DISABLED(1), + /** + * + * + *
    +       * Enables Conversational Filtering when using Conversational Search.
    +       * 
    + * + * ENABLED = 2; + */ + ENABLED(2), + /** + * + * + *
    +       * Enables Conversational Filtering without Conversational Search.
    +       * 
    + * + * CONVERSATIONAL_FILTER_ONLY = 3; + */ + CONVERSATIONAL_FILTER_ONLY(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +       * Default value.
    +       * 
    + * + * MODE_UNSPECIFIED = 0; + */ + public static final int MODE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +       * Disables Conversational Filtering when using Conversational Search.
    +       * 
    + * + * DISABLED = 1; + */ + public static final int DISABLED_VALUE = 1; + + /** + * + * + *
    +       * Enables Conversational Filtering when using Conversational Search.
    +       * 
    + * + * ENABLED = 2; + */ + public static final int ENABLED_VALUE = 2; + + /** + * + * + *
    +       * Enables Conversational Filtering without Conversational Search.
    +       * 
    + * + * CONVERSATIONAL_FILTER_ONLY = 3; + */ + public static final int CONVERSATIONAL_FILTER_ONLY_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 Mode 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 Mode forNumber(int value) { + switch (value) { + case 0: + return MODE_UNSPECIFIED; + case 1: + return DISABLED; + case 2: + return ENABLED; + case 3: + return CONVERSATIONAL_FILTER_ONLY; + 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 Mode findValueByNumber(int number) { + return Mode.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.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Mode[] VALUES = values(); + + public static Mode 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 Mode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec.Mode) + } + + private int bitField0_; + public static final int ENABLE_CONVERSATIONAL_FILTERING_FIELD_NUMBER = 1; + private boolean enableConversationalFiltering_ = false; + + /** + * + * + *
    +     * Optional. This field is deprecated. Please use
    +     * [ConversationalFilteringSpec.conversational_filtering_mode][google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec.conversational_filtering_mode]
    +     * instead.
    +     * 
    + * + * + * bool enable_conversational_filtering = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec.enable_conversational_filtering + * is deprecated. See google/cloud/retail/v2/conversational_search_service.proto;l=145 + * @return The enableConversationalFiltering. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean getEnableConversationalFiltering() { + return enableConversationalFiltering_; + } + + public static final int USER_ANSWER_FIELD_NUMBER = 2; + private com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer userAnswer_; + + /** + * + * + *
    +     * Optional. This field specifies the current user answer during the
    +     * conversational filtering search. It can be either user selected from
    +     * suggested answers or user input plain text.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer user_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the userAnswer field is set. + */ + @java.lang.Override + public boolean hasUserAnswer() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +     * Optional. This field specifies the current user answer during the
    +     * conversational filtering search. It can be either user selected from
    +     * suggested answers or user input plain text.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer user_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The userAnswer. + */ + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer getUserAnswer() { + return userAnswer_ == null + ? com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.getDefaultInstance() + : userAnswer_; + } + + /** + * + * + *
    +     * Optional. This field specifies the current user answer during the
    +     * conversational filtering search. It can be either user selected from
    +     * suggested answers or user input plain text.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer user_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswerOrBuilder + getUserAnswerOrBuilder() { + return userAnswer_ == null + ? com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.getDefaultInstance() + : userAnswer_; + } + + public static final int CONVERSATIONAL_FILTERING_MODE_FIELD_NUMBER = 4; + private int conversationalFilteringMode_ = 0; + + /** + * + * + *
    +     * Optional. Mode to control Conversational Filtering.
    +     * Defaults to
    +     * [Mode.DISABLED][google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec.Mode.DISABLED]
    +     * if it's unset.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec.Mode conversational_filtering_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for conversationalFilteringMode. + */ + @java.lang.Override + public int getConversationalFilteringModeValue() { + return conversationalFilteringMode_; + } + + /** + * + * + *
    +     * Optional. Mode to control Conversational Filtering.
    +     * Defaults to
    +     * [Mode.DISABLED][google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec.Mode.DISABLED]
    +     * if it's unset.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec.Mode conversational_filtering_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The conversationalFilteringMode. + */ + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec.Mode + getConversationalFilteringMode() { + com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec.Mode + result = + com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec + .Mode.forNumber(conversationalFilteringMode_); + return result == null + ? com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec.Mode + .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 (enableConversationalFiltering_ != false) { + output.writeBool(1, enableConversationalFiltering_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getUserAnswer()); + } + if (conversationalFilteringMode_ + != com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec.Mode + .MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, conversationalFilteringMode_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enableConversationalFiltering_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 1, enableConversationalFiltering_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUserAnswer()); + } + if (conversationalFilteringMode_ + != com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec.Mode + .MODE_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(4, conversationalFilteringMode_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec)) { + return super.equals(obj); + } + com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec other = + (com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec) obj; + + if (getEnableConversationalFiltering() != other.getEnableConversationalFiltering()) + return false; + if (hasUserAnswer() != other.hasUserAnswer()) return false; + if (hasUserAnswer()) { + if (!getUserAnswer().equals(other.getUserAnswer())) return false; + } + if (conversationalFilteringMode_ != other.conversationalFilteringMode_) 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) + ENABLE_CONVERSATIONAL_FILTERING_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getEnableConversationalFiltering()); + if (hasUserAnswer()) { + hash = (37 * hash) + USER_ANSWER_FIELD_NUMBER; + hash = (53 * hash) + getUserAnswer().hashCode(); + } + hash = (37 * hash) + CONVERSATIONAL_FILTERING_MODE_FIELD_NUMBER; + hash = (53 * hash) + conversationalFilteringMode_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec + 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.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec + parseFrom( + 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.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec + 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.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec + 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.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec + 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.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
    +     * This field specifies all conversational filtering related parameters
    +     * addition to conversational retail search.
    +     * 
    + * + * Protobuf type {@code + * google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec) + com.google.cloud.retail.v2.ConversationalSearchRequest + .ConversationalFilteringSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2_ConversationalSearchRequest_ConversationalFilteringSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2_ConversationalSearchRequest_ConversationalFilteringSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec + .class, + com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec + .Builder.class); + } + + // Construct using + // com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getUserAnswerFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enableConversationalFiltering_ = false; + userAnswer_ = null; + if (userAnswerBuilder_ != null) { + userAnswerBuilder_.dispose(); + userAnswerBuilder_ = null; + } + conversationalFilteringMode_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2_ConversationalSearchRequest_ConversationalFilteringSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec + getDefaultInstanceForType() { + return com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec + build() { + com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec + buildPartial() { + com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec result = + new com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enableConversationalFiltering_ = enableConversationalFiltering_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.userAnswer_ = + userAnswerBuilder_ == null ? userAnswer_ : userAnswerBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.conversationalFilteringMode_ = conversationalFilteringMode_; + } + 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.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec) { + return mergeFrom( + (com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec + other) { + if (other + == com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec + .getDefaultInstance()) return this; + if (other.getEnableConversationalFiltering() != false) { + setEnableConversationalFiltering(other.getEnableConversationalFiltering()); + } + if (other.hasUserAnswer()) { + mergeUserAnswer(other.getUserAnswer()); + } + if (other.conversationalFilteringMode_ != 0) { + setConversationalFilteringModeValue(other.getConversationalFilteringModeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + enableConversationalFiltering_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage(getUserAnswerFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 32: + { + conversationalFilteringMode_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean enableConversationalFiltering_; + + /** + * + * + *
    +       * Optional. This field is deprecated. Please use
    +       * [ConversationalFilteringSpec.conversational_filtering_mode][google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec.conversational_filtering_mode]
    +       * instead.
    +       * 
    + * + * + * bool enable_conversational_filtering = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec.enable_conversational_filtering + * is deprecated. See google/cloud/retail/v2/conversational_search_service.proto;l=145 + * @return The enableConversationalFiltering. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean getEnableConversationalFiltering() { + return enableConversationalFiltering_; + } + + /** + * + * + *
    +       * Optional. This field is deprecated. Please use
    +       * [ConversationalFilteringSpec.conversational_filtering_mode][google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec.conversational_filtering_mode]
    +       * instead.
    +       * 
    + * + * + * bool enable_conversational_filtering = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec.enable_conversational_filtering + * is deprecated. See google/cloud/retail/v2/conversational_search_service.proto;l=145 + * @param value The enableConversationalFiltering to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setEnableConversationalFiltering(boolean value) { + + enableConversationalFiltering_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. This field is deprecated. Please use
    +       * [ConversationalFilteringSpec.conversational_filtering_mode][google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec.conversational_filtering_mode]
    +       * instead.
    +       * 
    + * + * + * bool enable_conversational_filtering = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec.enable_conversational_filtering + * is deprecated. See google/cloud/retail/v2/conversational_search_service.proto;l=145 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearEnableConversationalFiltering() { + bitField0_ = (bitField0_ & ~0x00000001); + enableConversationalFiltering_ = false; + onChanged(); + return this; + } + + private com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer userAnswer_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer, + com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.Builder, + com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswerOrBuilder> + userAnswerBuilder_; + + /** + * + * + *
    +       * Optional. This field specifies the current user answer during the
    +       * conversational filtering search. It can be either user selected from
    +       * suggested answers or user input plain text.
    +       * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer user_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the userAnswer field is set. + */ + public boolean hasUserAnswer() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +       * Optional. This field specifies the current user answer during the
    +       * conversational filtering search. It can be either user selected from
    +       * suggested answers or user input plain text.
    +       * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer user_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The userAnswer. + */ + public com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer getUserAnswer() { + if (userAnswerBuilder_ == null) { + return userAnswer_ == null + ? com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer + .getDefaultInstance() + : userAnswer_; + } else { + return userAnswerBuilder_.getMessage(); + } + } + + /** + * + * + *
    +       * Optional. This field specifies the current user answer during the
    +       * conversational filtering search. It can be either user selected from
    +       * suggested answers or user input plain text.
    +       * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer user_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUserAnswer( + com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer value) { + if (userAnswerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + userAnswer_ = value; + } else { + userAnswerBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. This field specifies the current user answer during the
    +       * conversational filtering search. It can be either user selected from
    +       * suggested answers or user input plain text.
    +       * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer user_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUserAnswer( + com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.Builder + builderForValue) { + if (userAnswerBuilder_ == null) { + userAnswer_ = builderForValue.build(); + } else { + userAnswerBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. This field specifies the current user answer during the
    +       * conversational filtering search. It can be either user selected from
    +       * suggested answers or user input plain text.
    +       * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer user_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUserAnswer( + com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer value) { + if (userAnswerBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && userAnswer_ != null + && userAnswer_ + != com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer + .getDefaultInstance()) { + getUserAnswerBuilder().mergeFrom(value); + } else { + userAnswer_ = value; + } + } else { + userAnswerBuilder_.mergeFrom(value); + } + if (userAnswer_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
    +       * Optional. This field specifies the current user answer during the
    +       * conversational filtering search. It can be either user selected from
    +       * suggested answers or user input plain text.
    +       * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer user_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUserAnswer() { + bitField0_ = (bitField0_ & ~0x00000002); + userAnswer_ = null; + if (userAnswerBuilder_ != null) { + userAnswerBuilder_.dispose(); + userAnswerBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. This field specifies the current user answer during the
    +       * conversational filtering search. It can be either user selected from
    +       * suggested answers or user input plain text.
    +       * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer user_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.Builder + getUserAnswerBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUserAnswerFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +       * Optional. This field specifies the current user answer during the
    +       * conversational filtering search. It can be either user selected from
    +       * suggested answers or user input plain text.
    +       * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer user_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswerOrBuilder + getUserAnswerOrBuilder() { + if (userAnswerBuilder_ != null) { + return userAnswerBuilder_.getMessageOrBuilder(); + } else { + return userAnswer_ == null + ? com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer + .getDefaultInstance() + : userAnswer_; + } + } + + /** + * + * + *
    +       * Optional. This field specifies the current user answer during the
    +       * conversational filtering search. It can be either user selected from
    +       * suggested answers or user input plain text.
    +       * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer user_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer, + com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.Builder, + com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswerOrBuilder> + getUserAnswerFieldBuilder() { + if (userAnswerBuilder_ == null) { + userAnswerBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer, + com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.Builder, + com.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswerOrBuilder>( + getUserAnswer(), getParentForChildren(), isClean()); + userAnswer_ = null; + } + return userAnswerBuilder_; + } + + private int conversationalFilteringMode_ = 0; + + /** + * + * + *
    +       * Optional. Mode to control Conversational Filtering.
    +       * Defaults to
    +       * [Mode.DISABLED][google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec.Mode.DISABLED]
    +       * if it's unset.
    +       * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec.Mode conversational_filtering_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for conversationalFilteringMode. + */ + @java.lang.Override + public int getConversationalFilteringModeValue() { + return conversationalFilteringMode_; + } + + /** + * + * + *
    +       * Optional. Mode to control Conversational Filtering.
    +       * Defaults to
    +       * [Mode.DISABLED][google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec.Mode.DISABLED]
    +       * if it's unset.
    +       * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec.Mode conversational_filtering_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for conversationalFilteringMode to set. + * @return This builder for chaining. + */ + public Builder setConversationalFilteringModeValue(int value) { + conversationalFilteringMode_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. Mode to control Conversational Filtering.
    +       * Defaults to
    +       * [Mode.DISABLED][google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec.Mode.DISABLED]
    +       * if it's unset.
    +       * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec.Mode conversational_filtering_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The conversationalFilteringMode. + */ + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec.Mode + getConversationalFilteringMode() { + com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec.Mode + result = + com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec + .Mode.forNumber(conversationalFilteringMode_); + return result == null + ? com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec + .Mode.UNRECOGNIZED + : result; + } + + /** + * + * + *
    +       * Optional. Mode to control Conversational Filtering.
    +       * Defaults to
    +       * [Mode.DISABLED][google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec.Mode.DISABLED]
    +       * if it's unset.
    +       * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec.Mode conversational_filtering_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The conversationalFilteringMode to set. + * @return This builder for chaining. + */ + public Builder setConversationalFilteringMode( + com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec.Mode + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + conversationalFilteringMode_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. Mode to control Conversational Filtering.
    +       * Defaults to
    +       * [Mode.DISABLED][google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec.Mode.DISABLED]
    +       * if it's unset.
    +       * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec.Mode conversational_filtering_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearConversationalFilteringMode() { + bitField0_ = (bitField0_ & ~0x00000004); + conversationalFilteringMode_ = 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.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec) + private static final com.google.cloud.retail.v2.ConversationalSearchRequest + .ConversationalFilteringSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec(); + } + + public static com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConversationalFilteringSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int PLACEMENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object placement_ = ""; + + /** + * + * + *
    +   * Required. The resource name of the search engine placement, such as
    +   * `projects/*/locations/global/catalogs/default_catalog/placements/default_search`
    +   * or
    +   * `projects/*/locations/global/catalogs/default_catalog/servingConfigs/default_serving_config`
    +   * This field is used to identify the serving config name and the set
    +   * of models that will be used to make the search.
    +   * 
    + * + * string placement = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The placement. + */ + @java.lang.Override + public java.lang.String getPlacement() { + java.lang.Object ref = placement_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + placement_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. The resource name of the search engine placement, such as
    +   * `projects/*/locations/global/catalogs/default_catalog/placements/default_search`
    +   * or
    +   * `projects/*/locations/global/catalogs/default_catalog/servingConfigs/default_serving_config`
    +   * This field is used to identify the serving config name and the set
    +   * of models that will be used to make the search.
    +   * 
    + * + * string placement = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for placement. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPlacementBytes() { + java.lang.Object ref = placement_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + placement_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BRANCH_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object branch_ = ""; + + /** + * + * + *
    +   * Required. The branch resource name, such as
    +   * `projects/*/locations/global/catalogs/default_catalog/branches/0`.
    +   *
    +   * Use "default_branch" as the branch ID or leave this field empty, to search
    +   * products under the default branch.
    +   * 
    + * + * + * string branch = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The branch. + */ + @java.lang.Override + public java.lang.String getBranch() { + java.lang.Object ref = branch_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + branch_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. The branch resource name, such as
    +   * `projects/*/locations/global/catalogs/default_catalog/branches/0`.
    +   *
    +   * Use "default_branch" as the branch ID or leave this field empty, to search
    +   * products under the default branch.
    +   * 
    + * + * + * string branch = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for branch. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBranchBytes() { + java.lang.Object ref = branch_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + branch_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int QUERY_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object query_ = ""; + + /** + * + * + *
    +   * Optional. Raw search query to be searched for.
    +   *
    +   * If this field is empty, the request is considered a category browsing
    +   * request.
    +   * 
    + * + * string query = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The query. + */ + @java.lang.Override + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. Raw search query to be searched for.
    +   *
    +   * If this field is empty, the request is considered a category browsing
    +   * request.
    +   * 
    + * + * string query = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for query. + */ + @java.lang.Override + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_CATEGORIES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList pageCategories_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
    +   * Optional. The categories associated with a category page. Must be set for
    +   * category navigation queries to achieve good search quality. The format
    +   * should be the same as
    +   * [UserEvent.page_categories][google.cloud.retail.v2.UserEvent.page_categories];
    +   *
    +   * To represent full path of category, use '>' sign to separate different
    +   * hierarchies. If '>' is part of the category name, replace it with
    +   * other character(s).
    +   *
    +   * Category pages include special pages such as sales or promotions. For
    +   * instance, a special sale page may have the category hierarchy:
    +   * "pageCategories" : ["Sales > 2017 Black Friday Deals"].
    +   * 
    + * + * repeated string page_categories = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the pageCategories. + */ + public com.google.protobuf.ProtocolStringList getPageCategoriesList() { + return pageCategories_; + } + + /** + * + * + *
    +   * Optional. The categories associated with a category page. Must be set for
    +   * category navigation queries to achieve good search quality. The format
    +   * should be the same as
    +   * [UserEvent.page_categories][google.cloud.retail.v2.UserEvent.page_categories];
    +   *
    +   * To represent full path of category, use '>' sign to separate different
    +   * hierarchies. If '>' is part of the category name, replace it with
    +   * other character(s).
    +   *
    +   * Category pages include special pages such as sales or promotions. For
    +   * instance, a special sale page may have the category hierarchy:
    +   * "pageCategories" : ["Sales > 2017 Black Friday Deals"].
    +   * 
    + * + * repeated string page_categories = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of pageCategories. + */ + public int getPageCategoriesCount() { + return pageCategories_.size(); + } + + /** + * + * + *
    +   * Optional. The categories associated with a category page. Must be set for
    +   * category navigation queries to achieve good search quality. The format
    +   * should be the same as
    +   * [UserEvent.page_categories][google.cloud.retail.v2.UserEvent.page_categories];
    +   *
    +   * To represent full path of category, use '>' sign to separate different
    +   * hierarchies. If '>' is part of the category name, replace it with
    +   * other character(s).
    +   *
    +   * Category pages include special pages such as sales or promotions. For
    +   * instance, a special sale page may have the category hierarchy:
    +   * "pageCategories" : ["Sales > 2017 Black Friday Deals"].
    +   * 
    + * + * repeated string page_categories = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The pageCategories at the given index. + */ + public java.lang.String getPageCategories(int index) { + return pageCategories_.get(index); + } + + /** + * + * + *
    +   * Optional. The categories associated with a category page. Must be set for
    +   * category navigation queries to achieve good search quality. The format
    +   * should be the same as
    +   * [UserEvent.page_categories][google.cloud.retail.v2.UserEvent.page_categories];
    +   *
    +   * To represent full path of category, use '>' sign to separate different
    +   * hierarchies. If '>' is part of the category name, replace it with
    +   * other character(s).
    +   *
    +   * Category pages include special pages such as sales or promotions. For
    +   * instance, a special sale page may have the category hierarchy:
    +   * "pageCategories" : ["Sales > 2017 Black Friday Deals"].
    +   * 
    + * + * repeated string page_categories = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the pageCategories at the given index. + */ + public com.google.protobuf.ByteString getPageCategoriesBytes(int index) { + return pageCategories_.getByteString(index); + } + + public static final int CONVERSATION_ID_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object conversationId_ = ""; + + /** + * + * + *
    +   * Optional. This field specifies the conversation id, which maintains the
    +   * state of the conversation between client side and server side. Use the
    +   * value from the previous
    +   * [ConversationalSearchResponse.conversation_id][google.cloud.retail.v2.ConversationalSearchResponse.conversation_id].
    +   * For the initial request, this should be empty.
    +   * 
    + * + * string conversation_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The conversationId. + */ + @java.lang.Override + public java.lang.String getConversationId() { + java.lang.Object ref = conversationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + conversationId_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. This field specifies the conversation id, which maintains the
    +   * state of the conversation between client side and server side. Use the
    +   * value from the previous
    +   * [ConversationalSearchResponse.conversation_id][google.cloud.retail.v2.ConversationalSearchResponse.conversation_id].
    +   * For the initial request, this should be empty.
    +   * 
    + * + * string conversation_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for conversationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConversationIdBytes() { + java.lang.Object ref = conversationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + conversationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SEARCH_PARAMS_FIELD_NUMBER = 6; + private com.google.cloud.retail.v2.ConversationalSearchRequest.SearchParams searchParams_; + + /** + * + * + *
    +   * Optional. Search parameters.
    +   * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.SearchParams search_params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the searchParams field is set. + */ + @java.lang.Override + public boolean hasSearchParams() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Optional. Search parameters.
    +   * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.SearchParams search_params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The searchParams. + */ + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchRequest.SearchParams getSearchParams() { + return searchParams_ == null + ? com.google.cloud.retail.v2.ConversationalSearchRequest.SearchParams.getDefaultInstance() + : searchParams_; + } + + /** + * + * + *
    +   * Optional. Search parameters.
    +   * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.SearchParams search_params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchRequest.SearchParamsOrBuilder + getSearchParamsOrBuilder() { + return searchParams_ == null + ? com.google.cloud.retail.v2.ConversationalSearchRequest.SearchParams.getDefaultInstance() + : searchParams_; + } + + public static final int VISITOR_ID_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object visitorId_ = ""; + + /** + * + * + *
    +   * Required. A unique identifier for tracking visitors. For example, this
    +   * could be implemented with an HTTP cookie, which should be able to uniquely
    +   * identify a visitor on a single device. This unique identifier should not
    +   * change if the visitor logs in or out of the website.
    +   *
    +   * This should be the same identifier as
    +   * [UserEvent.visitor_id][google.cloud.retail.v2.UserEvent.visitor_id].
    +   *
    +   * The field must be a UTF-8 encoded string with a length limit of 128
    +   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
    +   * 
    + * + * string visitor_id = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The visitorId. + */ + @java.lang.Override + public java.lang.String getVisitorId() { + java.lang.Object ref = visitorId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + visitorId_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. A unique identifier for tracking visitors. For example, this
    +   * could be implemented with an HTTP cookie, which should be able to uniquely
    +   * identify a visitor on a single device. This unique identifier should not
    +   * change if the visitor logs in or out of the website.
    +   *
    +   * This should be the same identifier as
    +   * [UserEvent.visitor_id][google.cloud.retail.v2.UserEvent.visitor_id].
    +   *
    +   * The field must be a UTF-8 encoded string with a length limit of 128
    +   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
    +   * 
    + * + * string visitor_id = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for visitorId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVisitorIdBytes() { + java.lang.Object ref = visitorId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + visitorId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USER_INFO_FIELD_NUMBER = 7; + private com.google.cloud.retail.v2.UserInfo userInfo_; + + /** + * + * + *
    +   * Optional. User information.
    +   * 
    + * + * .google.cloud.retail.v2.UserInfo user_info = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the userInfo field is set. + */ + @java.lang.Override + public boolean hasUserInfo() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +   * Optional. User information.
    +   * 
    + * + * .google.cloud.retail.v2.UserInfo user_info = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The userInfo. + */ + @java.lang.Override + public com.google.cloud.retail.v2.UserInfo getUserInfo() { + return userInfo_ == null ? com.google.cloud.retail.v2.UserInfo.getDefaultInstance() : userInfo_; + } + + /** + * + * + *
    +   * Optional. User information.
    +   * 
    + * + * .google.cloud.retail.v2.UserInfo user_info = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2.UserInfoOrBuilder getUserInfoOrBuilder() { + return userInfo_ == null ? com.google.cloud.retail.v2.UserInfo.getDefaultInstance() : userInfo_; + } + + public static final int CONVERSATIONAL_FILTERING_SPEC_FIELD_NUMBER = 8; + private com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec + conversationalFilteringSpec_; + + /** + * + * + *
    +   * Optional. This field specifies all conversational filtering related
    +   * parameters.
    +   * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec conversational_filtering_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the conversationalFilteringSpec field is set. + */ + @java.lang.Override + public boolean hasConversationalFilteringSpec() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +   * Optional. This field specifies all conversational filtering related
    +   * parameters.
    +   * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec conversational_filtering_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The conversationalFilteringSpec. + */ + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec + getConversationalFilteringSpec() { + return conversationalFilteringSpec_ == null + ? com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec + .getDefaultInstance() + : conversationalFilteringSpec_; + } + + /** + * + * + *
    +   * Optional. This field specifies all conversational filtering related
    +   * parameters.
    +   * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec conversational_filtering_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpecOrBuilder + getConversationalFilteringSpecOrBuilder() { + return conversationalFilteringSpec_ == null + ? com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec + .getDefaultInstance() + : conversationalFilteringSpec_; + } + + public static final int USER_LABELS_FIELD_NUMBER = 12; + + private static final class UserLabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.retail.v2.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2_ConversationalSearchRequest_UserLabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField userLabels_; + + private com.google.protobuf.MapField internalGetUserLabels() { + if (userLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField(UserLabelsDefaultEntryHolder.defaultEntry); + } + return userLabels_; + } + + public int getUserLabelsCount() { + return internalGetUserLabels().getMap().size(); + } + + /** + * + * + *
    +   * Optional. The user labels applied to a resource must meet the following
    +   * requirements:
    +   *
    +   * * Each resource can have multiple labels, up to a maximum of 64.
    +   * * Each label must be a key-value pair.
    +   * * Keys have a minimum length of 1 character and a maximum length of 63
    +   *   characters and cannot be empty. Values can be empty and have a maximum
    +   *   length of 63 characters.
    +   * * Keys and values can contain only lowercase letters, numeric characters,
    +   *   underscores, and dashes. All characters must use UTF-8 encoding, and
    +   *   international characters are allowed.
    +   * * The key portion of a label must be unique. However, you can use the same
    +   *   key with multiple resources.
    +   * * Keys must start with a lowercase letter or international character.
    +   *
    +   * See [Google Cloud
    +   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
    +   * for more details.
    +   * 
    + * + * map<string, string> user_labels = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsUserLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetUserLabels().getMap().containsKey(key); + } + + /** Use {@link #getUserLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getUserLabels() { + return getUserLabelsMap(); + } + + /** + * + * + *
    +   * Optional. The user labels applied to a resource must meet the following
    +   * requirements:
    +   *
    +   * * Each resource can have multiple labels, up to a maximum of 64.
    +   * * Each label must be a key-value pair.
    +   * * Keys have a minimum length of 1 character and a maximum length of 63
    +   *   characters and cannot be empty. Values can be empty and have a maximum
    +   *   length of 63 characters.
    +   * * Keys and values can contain only lowercase letters, numeric characters,
    +   *   underscores, and dashes. All characters must use UTF-8 encoding, and
    +   *   international characters are allowed.
    +   * * The key portion of a label must be unique. However, you can use the same
    +   *   key with multiple resources.
    +   * * Keys must start with a lowercase letter or international character.
    +   *
    +   * See [Google Cloud
    +   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
    +   * for more details.
    +   * 
    + * + * map<string, string> user_labels = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getUserLabelsMap() { + return internalGetUserLabels().getMap(); + } + + /** + * + * + *
    +   * Optional. The user labels applied to a resource must meet the following
    +   * requirements:
    +   *
    +   * * Each resource can have multiple labels, up to a maximum of 64.
    +   * * Each label must be a key-value pair.
    +   * * Keys have a minimum length of 1 character and a maximum length of 63
    +   *   characters and cannot be empty. Values can be empty and have a maximum
    +   *   length of 63 characters.
    +   * * Keys and values can contain only lowercase letters, numeric characters,
    +   *   underscores, and dashes. All characters must use UTF-8 encoding, and
    +   *   international characters are allowed.
    +   * * The key portion of a label must be unique. However, you can use the same
    +   *   key with multiple resources.
    +   * * Keys must start with a lowercase letter or international character.
    +   *
    +   * See [Google Cloud
    +   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
    +   * for more details.
    +   * 
    + * + * map<string, string> user_labels = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getUserLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetUserLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
    +   * Optional. The user labels applied to a resource must meet the following
    +   * requirements:
    +   *
    +   * * Each resource can have multiple labels, up to a maximum of 64.
    +   * * Each label must be a key-value pair.
    +   * * Keys have a minimum length of 1 character and a maximum length of 63
    +   *   characters and cannot be empty. Values can be empty and have a maximum
    +   *   length of 63 characters.
    +   * * Keys and values can contain only lowercase letters, numeric characters,
    +   *   underscores, and dashes. All characters must use UTF-8 encoding, and
    +   *   international characters are allowed.
    +   * * The key portion of a label must be unique. However, you can use the same
    +   *   key with multiple resources.
    +   * * Keys must start with a lowercase letter or international character.
    +   *
    +   * See [Google Cloud
    +   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
    +   * for more details.
    +   * 
    + * + * map<string, string> user_labels = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getUserLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetUserLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int SAFETY_SETTINGS_FIELD_NUMBER = 14; + + @SuppressWarnings("serial") + private java.util.List safetySettings_; + + /** + * + * + *
    +   * Optional. The safety settings to be applied to the generated content.
    +   * 
    + * + * + * repeated .google.cloud.retail.v2.SafetySetting safety_settings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getSafetySettingsList() { + return safetySettings_; + } + + /** + * + * + *
    +   * Optional. The safety settings to be applied to the generated content.
    +   * 
    + * + * + * repeated .google.cloud.retail.v2.SafetySetting safety_settings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getSafetySettingsOrBuilderList() { + return safetySettings_; + } + + /** + * + * + *
    +   * Optional. The safety settings to be applied to the generated content.
    +   * 
    + * + * + * repeated .google.cloud.retail.v2.SafetySetting safety_settings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getSafetySettingsCount() { + return safetySettings_.size(); + } + + /** + * + * + *
    +   * Optional. The safety settings to be applied to the generated content.
    +   * 
    + * + * + * repeated .google.cloud.retail.v2.SafetySetting safety_settings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2.SafetySetting getSafetySettings(int index) { + return safetySettings_.get(index); + } + + /** + * + * + *
    +   * Optional. The safety settings to be applied to the generated content.
    +   * 
    + * + * + * repeated .google.cloud.retail.v2.SafetySetting safety_settings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2.SafetySettingOrBuilder getSafetySettingsOrBuilder(int index) { + return safetySettings_.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(placement_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, placement_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(branch_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, branch_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, query_); + } + for (int i = 0; i < pageCategories_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageCategories_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(conversationId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, conversationId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(6, getSearchParams()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(7, getUserInfo()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(8, getConversationalFilteringSpec()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(visitorId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, visitorId_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetUserLabels(), UserLabelsDefaultEntryHolder.defaultEntry, 12); + for (int i = 0; i < safetySettings_.size(); i++) { + output.writeMessage(14, safetySettings_.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(placement_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, placement_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(branch_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, branch_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, query_); + } + { + int dataSize = 0; + for (int i = 0; i < pageCategories_.size(); i++) { + dataSize += computeStringSizeNoTag(pageCategories_.getRaw(i)); + } + size += dataSize; + size += 1 * getPageCategoriesList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(conversationId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, conversationId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getSearchParams()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUserInfo()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, getConversationalFilteringSpec()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(visitorId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, visitorId_); + } + for (java.util.Map.Entry entry : + internalGetUserLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry userLabels__ = + UserLabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, userLabels__); + } + for (int i = 0; i < safetySettings_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, safetySettings_.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.retail.v2.ConversationalSearchRequest)) { + return super.equals(obj); + } + com.google.cloud.retail.v2.ConversationalSearchRequest other = + (com.google.cloud.retail.v2.ConversationalSearchRequest) obj; + + if (!getPlacement().equals(other.getPlacement())) return false; + if (!getBranch().equals(other.getBranch())) return false; + if (!getQuery().equals(other.getQuery())) return false; + if (!getPageCategoriesList().equals(other.getPageCategoriesList())) return false; + if (!getConversationId().equals(other.getConversationId())) return false; + if (hasSearchParams() != other.hasSearchParams()) return false; + if (hasSearchParams()) { + if (!getSearchParams().equals(other.getSearchParams())) return false; + } + if (!getVisitorId().equals(other.getVisitorId())) return false; + if (hasUserInfo() != other.hasUserInfo()) return false; + if (hasUserInfo()) { + if (!getUserInfo().equals(other.getUserInfo())) return false; + } + if (hasConversationalFilteringSpec() != other.hasConversationalFilteringSpec()) return false; + if (hasConversationalFilteringSpec()) { + if (!getConversationalFilteringSpec().equals(other.getConversationalFilteringSpec())) + return false; + } + if (!internalGetUserLabels().equals(other.internalGetUserLabels())) return false; + if (!getSafetySettingsList().equals(other.getSafetySettingsList())) 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) + PLACEMENT_FIELD_NUMBER; + hash = (53 * hash) + getPlacement().hashCode(); + hash = (37 * hash) + BRANCH_FIELD_NUMBER; + hash = (53 * hash) + getBranch().hashCode(); + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + if (getPageCategoriesCount() > 0) { + hash = (37 * hash) + PAGE_CATEGORIES_FIELD_NUMBER; + hash = (53 * hash) + getPageCategoriesList().hashCode(); + } + hash = (37 * hash) + CONVERSATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getConversationId().hashCode(); + if (hasSearchParams()) { + hash = (37 * hash) + SEARCH_PARAMS_FIELD_NUMBER; + hash = (53 * hash) + getSearchParams().hashCode(); + } + hash = (37 * hash) + VISITOR_ID_FIELD_NUMBER; + hash = (53 * hash) + getVisitorId().hashCode(); + if (hasUserInfo()) { + hash = (37 * hash) + USER_INFO_FIELD_NUMBER; + hash = (53 * hash) + getUserInfo().hashCode(); + } + if (hasConversationalFilteringSpec()) { + hash = (37 * hash) + CONVERSATIONAL_FILTERING_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getConversationalFilteringSpec().hashCode(); + } + if (!internalGetUserLabels().getMap().isEmpty()) { + hash = (37 * hash) + USER_LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetUserLabels().hashCode(); + } + if (getSafetySettingsCount() > 0) { + hash = (37 * hash) + SAFETY_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getSafetySettingsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2.ConversationalSearchRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.ConversationalSearchRequest 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.retail.v2.ConversationalSearchRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.ConversationalSearchRequest parseFrom( + 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.retail.v2.ConversationalSearchRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.ConversationalSearchRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2.ConversationalSearchRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.ConversationalSearchRequest 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.retail.v2.ConversationalSearchRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.ConversationalSearchRequest 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.retail.v2.ConversationalSearchRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.ConversationalSearchRequest 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.retail.v2.ConversationalSearchRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request message for
    +   * [ConversationalSearchService.ConversationalSearch][google.cloud.retail.v2.ConversationalSearchService.ConversationalSearch]
    +   * method.
    +   * 
    + * + * Protobuf type {@code google.cloud.retail.v2.ConversationalSearchRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2.ConversationalSearchRequest) + com.google.cloud.retail.v2.ConversationalSearchRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2_ConversationalSearchRequest_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 12: + return internalGetUserLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 12: + return internalGetMutableUserLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2_ConversationalSearchRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2.ConversationalSearchRequest.class, + com.google.cloud.retail.v2.ConversationalSearchRequest.Builder.class); + } + + // Construct using com.google.cloud.retail.v2.ConversationalSearchRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSearchParamsFieldBuilder(); + getUserInfoFieldBuilder(); + getConversationalFilteringSpecFieldBuilder(); + getSafetySettingsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + placement_ = ""; + branch_ = ""; + query_ = ""; + pageCategories_ = com.google.protobuf.LazyStringArrayList.emptyList(); + conversationId_ = ""; + searchParams_ = null; + if (searchParamsBuilder_ != null) { + searchParamsBuilder_.dispose(); + searchParamsBuilder_ = null; + } + visitorId_ = ""; + userInfo_ = null; + if (userInfoBuilder_ != null) { + userInfoBuilder_.dispose(); + userInfoBuilder_ = null; + } + conversationalFilteringSpec_ = null; + if (conversationalFilteringSpecBuilder_ != null) { + conversationalFilteringSpecBuilder_.dispose(); + conversationalFilteringSpecBuilder_ = null; + } + internalGetMutableUserLabels().clear(); + if (safetySettingsBuilder_ == null) { + safetySettings_ = java.util.Collections.emptyList(); + } else { + safetySettings_ = null; + safetySettingsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000400); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2_ConversationalSearchRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchRequest getDefaultInstanceForType() { + return com.google.cloud.retail.v2.ConversationalSearchRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchRequest build() { + com.google.cloud.retail.v2.ConversationalSearchRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchRequest buildPartial() { + com.google.cloud.retail.v2.ConversationalSearchRequest result = + new com.google.cloud.retail.v2.ConversationalSearchRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.retail.v2.ConversationalSearchRequest result) { + if (safetySettingsBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0)) { + safetySettings_ = java.util.Collections.unmodifiableList(safetySettings_); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.safetySettings_ = safetySettings_; + } else { + result.safetySettings_ = safetySettingsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.retail.v2.ConversationalSearchRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.placement_ = placement_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.branch_ = branch_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.query_ = query_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + pageCategories_.makeImmutable(); + result.pageCategories_ = pageCategories_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.conversationId_ = conversationId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.searchParams_ = + searchParamsBuilder_ == null ? searchParams_ : searchParamsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.visitorId_ = visitorId_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.userInfo_ = userInfoBuilder_ == null ? userInfo_ : userInfoBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.conversationalFilteringSpec_ = + conversationalFilteringSpecBuilder_ == null + ? conversationalFilteringSpec_ + : conversationalFilteringSpecBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.userLabels_ = internalGetUserLabels(); + result.userLabels_.makeImmutable(); + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.retail.v2.ConversationalSearchRequest) { + return mergeFrom((com.google.cloud.retail.v2.ConversationalSearchRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.retail.v2.ConversationalSearchRequest other) { + if (other == com.google.cloud.retail.v2.ConversationalSearchRequest.getDefaultInstance()) + return this; + if (!other.getPlacement().isEmpty()) { + placement_ = other.placement_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getBranch().isEmpty()) { + branch_ = other.branch_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getQuery().isEmpty()) { + query_ = other.query_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.pageCategories_.isEmpty()) { + if (pageCategories_.isEmpty()) { + pageCategories_ = other.pageCategories_; + bitField0_ |= 0x00000008; + } else { + ensurePageCategoriesIsMutable(); + pageCategories_.addAll(other.pageCategories_); + } + onChanged(); + } + if (!other.getConversationId().isEmpty()) { + conversationId_ = other.conversationId_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasSearchParams()) { + mergeSearchParams(other.getSearchParams()); + } + if (!other.getVisitorId().isEmpty()) { + visitorId_ = other.visitorId_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.hasUserInfo()) { + mergeUserInfo(other.getUserInfo()); + } + if (other.hasConversationalFilteringSpec()) { + mergeConversationalFilteringSpec(other.getConversationalFilteringSpec()); + } + internalGetMutableUserLabels().mergeFrom(other.internalGetUserLabels()); + bitField0_ |= 0x00000200; + if (safetySettingsBuilder_ == null) { + if (!other.safetySettings_.isEmpty()) { + if (safetySettings_.isEmpty()) { + safetySettings_ = other.safetySettings_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensureSafetySettingsIsMutable(); + safetySettings_.addAll(other.safetySettings_); + } + onChanged(); + } + } else { + if (!other.safetySettings_.isEmpty()) { + if (safetySettingsBuilder_.isEmpty()) { + safetySettingsBuilder_.dispose(); + safetySettingsBuilder_ = null; + safetySettings_ = other.safetySettings_; + bitField0_ = (bitField0_ & ~0x00000400); + safetySettingsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSafetySettingsFieldBuilder() + : null; + } else { + safetySettingsBuilder_.addAllMessages(other.safetySettings_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + placement_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + branch_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + query_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePageCategoriesIsMutable(); + pageCategories_.add(s); + break; + } // case 34 + case 42: + { + conversationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage(getSearchParamsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage(getUserInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 58 + case 66: + { + input.readMessage( + getConversationalFilteringSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 66 + case 74: + { + visitorId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 74 + case 98: + { + com.google.protobuf.MapEntry userLabels__ = + input.readMessage( + UserLabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableUserLabels() + .getMutableMap() + .put(userLabels__.getKey(), userLabels__.getValue()); + bitField0_ |= 0x00000200; + break; + } // case 98 + case 114: + { + com.google.cloud.retail.v2.SafetySetting m = + input.readMessage( + com.google.cloud.retail.v2.SafetySetting.parser(), extensionRegistry); + if (safetySettingsBuilder_ == null) { + ensureSafetySettingsIsMutable(); + safetySettings_.add(m); + } else { + safetySettingsBuilder_.addMessage(m); + } + break; + } // case 114 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object placement_ = ""; + + /** + * + * + *
    +     * Required. The resource name of the search engine placement, such as
    +     * `projects/*/locations/global/catalogs/default_catalog/placements/default_search`
    +     * or
    +     * `projects/*/locations/global/catalogs/default_catalog/servingConfigs/default_serving_config`
    +     * This field is used to identify the serving config name and the set
    +     * of models that will be used to make the search.
    +     * 
    + * + * string placement = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The placement. + */ + public java.lang.String getPlacement() { + java.lang.Object ref = placement_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + placement_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. The resource name of the search engine placement, such as
    +     * `projects/*/locations/global/catalogs/default_catalog/placements/default_search`
    +     * or
    +     * `projects/*/locations/global/catalogs/default_catalog/servingConfigs/default_serving_config`
    +     * This field is used to identify the serving config name and the set
    +     * of models that will be used to make the search.
    +     * 
    + * + * string placement = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for placement. + */ + public com.google.protobuf.ByteString getPlacementBytes() { + java.lang.Object ref = placement_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + placement_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. The resource name of the search engine placement, such as
    +     * `projects/*/locations/global/catalogs/default_catalog/placements/default_search`
    +     * or
    +     * `projects/*/locations/global/catalogs/default_catalog/servingConfigs/default_serving_config`
    +     * This field is used to identify the serving config name and the set
    +     * of models that will be used to make the search.
    +     * 
    + * + * string placement = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The placement to set. + * @return This builder for chaining. + */ + public Builder setPlacement(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + placement_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The resource name of the search engine placement, such as
    +     * `projects/*/locations/global/catalogs/default_catalog/placements/default_search`
    +     * or
    +     * `projects/*/locations/global/catalogs/default_catalog/servingConfigs/default_serving_config`
    +     * This field is used to identify the serving config name and the set
    +     * of models that will be used to make the search.
    +     * 
    + * + * string placement = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPlacement() { + placement_ = getDefaultInstance().getPlacement(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The resource name of the search engine placement, such as
    +     * `projects/*/locations/global/catalogs/default_catalog/placements/default_search`
    +     * or
    +     * `projects/*/locations/global/catalogs/default_catalog/servingConfigs/default_serving_config`
    +     * This field is used to identify the serving config name and the set
    +     * of models that will be used to make the search.
    +     * 
    + * + * string placement = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for placement to set. + * @return This builder for chaining. + */ + public Builder setPlacementBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + placement_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object branch_ = ""; + + /** + * + * + *
    +     * Required. The branch resource name, such as
    +     * `projects/*/locations/global/catalogs/default_catalog/branches/0`.
    +     *
    +     * Use "default_branch" as the branch ID or leave this field empty, to search
    +     * products under the default branch.
    +     * 
    + * + * + * string branch = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The branch. + */ + public java.lang.String getBranch() { + java.lang.Object ref = branch_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + branch_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. The branch resource name, such as
    +     * `projects/*/locations/global/catalogs/default_catalog/branches/0`.
    +     *
    +     * Use "default_branch" as the branch ID or leave this field empty, to search
    +     * products under the default branch.
    +     * 
    + * + * + * string branch = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for branch. + */ + public com.google.protobuf.ByteString getBranchBytes() { + java.lang.Object ref = branch_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + branch_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. The branch resource name, such as
    +     * `projects/*/locations/global/catalogs/default_catalog/branches/0`.
    +     *
    +     * Use "default_branch" as the branch ID or leave this field empty, to search
    +     * products under the default branch.
    +     * 
    + * + * + * string branch = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The branch to set. + * @return This builder for chaining. + */ + public Builder setBranch(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + branch_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The branch resource name, such as
    +     * `projects/*/locations/global/catalogs/default_catalog/branches/0`.
    +     *
    +     * Use "default_branch" as the branch ID or leave this field empty, to search
    +     * products under the default branch.
    +     * 
    + * + * + * string branch = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearBranch() { + branch_ = getDefaultInstance().getBranch(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The branch resource name, such as
    +     * `projects/*/locations/global/catalogs/default_catalog/branches/0`.
    +     *
    +     * Use "default_branch" as the branch ID or leave this field empty, to search
    +     * products under the default branch.
    +     * 
    + * + * + * string branch = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for branch to set. + * @return This builder for chaining. + */ + public Builder setBranchBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + branch_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object query_ = ""; + + /** + * + * + *
    +     * Optional. Raw search query to be searched for.
    +     *
    +     * If this field is empty, the request is considered a category browsing
    +     * request.
    +     * 
    + * + * string query = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The query. + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. Raw search query to be searched for.
    +     *
    +     * If this field is empty, the request is considered a category browsing
    +     * request.
    +     * 
    + * + * string query = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for query. + */ + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. Raw search query to be searched for.
    +     *
    +     * If this field is empty, the request is considered a category browsing
    +     * request.
    +     * 
    + * + * string query = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The query to set. + * @return This builder for chaining. + */ + public Builder setQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + query_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Raw search query to be searched for.
    +     *
    +     * If this field is empty, the request is considered a category browsing
    +     * request.
    +     * 
    + * + * string query = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearQuery() { + query_ = getDefaultInstance().getQuery(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Raw search query to be searched for.
    +     *
    +     * If this field is empty, the request is considered a category browsing
    +     * request.
    +     * 
    + * + * string query = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for query to set. + * @return This builder for chaining. + */ + public Builder setQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + query_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList pageCategories_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensurePageCategoriesIsMutable() { + if (!pageCategories_.isModifiable()) { + pageCategories_ = new com.google.protobuf.LazyStringArrayList(pageCategories_); + } + bitField0_ |= 0x00000008; + } + + /** + * + * + *
    +     * Optional. The categories associated with a category page. Must be set for
    +     * category navigation queries to achieve good search quality. The format
    +     * should be the same as
    +     * [UserEvent.page_categories][google.cloud.retail.v2.UserEvent.page_categories];
    +     *
    +     * To represent full path of category, use '>' sign to separate different
    +     * hierarchies. If '>' is part of the category name, replace it with
    +     * other character(s).
    +     *
    +     * Category pages include special pages such as sales or promotions. For
    +     * instance, a special sale page may have the category hierarchy:
    +     * "pageCategories" : ["Sales > 2017 Black Friday Deals"].
    +     * 
    + * + * repeated string page_categories = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the pageCategories. + */ + public com.google.protobuf.ProtocolStringList getPageCategoriesList() { + pageCategories_.makeImmutable(); + return pageCategories_; + } + + /** + * + * + *
    +     * Optional. The categories associated with a category page. Must be set for
    +     * category navigation queries to achieve good search quality. The format
    +     * should be the same as
    +     * [UserEvent.page_categories][google.cloud.retail.v2.UserEvent.page_categories];
    +     *
    +     * To represent full path of category, use '>' sign to separate different
    +     * hierarchies. If '>' is part of the category name, replace it with
    +     * other character(s).
    +     *
    +     * Category pages include special pages such as sales or promotions. For
    +     * instance, a special sale page may have the category hierarchy:
    +     * "pageCategories" : ["Sales > 2017 Black Friday Deals"].
    +     * 
    + * + * repeated string page_categories = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of pageCategories. + */ + public int getPageCategoriesCount() { + return pageCategories_.size(); + } + + /** + * + * + *
    +     * Optional. The categories associated with a category page. Must be set for
    +     * category navigation queries to achieve good search quality. The format
    +     * should be the same as
    +     * [UserEvent.page_categories][google.cloud.retail.v2.UserEvent.page_categories];
    +     *
    +     * To represent full path of category, use '>' sign to separate different
    +     * hierarchies. If '>' is part of the category name, replace it with
    +     * other character(s).
    +     *
    +     * Category pages include special pages such as sales or promotions. For
    +     * instance, a special sale page may have the category hierarchy:
    +     * "pageCategories" : ["Sales > 2017 Black Friday Deals"].
    +     * 
    + * + * repeated string page_categories = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The pageCategories at the given index. + */ + public java.lang.String getPageCategories(int index) { + return pageCategories_.get(index); + } + + /** + * + * + *
    +     * Optional. The categories associated with a category page. Must be set for
    +     * category navigation queries to achieve good search quality. The format
    +     * should be the same as
    +     * [UserEvent.page_categories][google.cloud.retail.v2.UserEvent.page_categories];
    +     *
    +     * To represent full path of category, use '>' sign to separate different
    +     * hierarchies. If '>' is part of the category name, replace it with
    +     * other character(s).
    +     *
    +     * Category pages include special pages such as sales or promotions. For
    +     * instance, a special sale page may have the category hierarchy:
    +     * "pageCategories" : ["Sales > 2017 Black Friday Deals"].
    +     * 
    + * + * repeated string page_categories = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the pageCategories at the given index. + */ + public com.google.protobuf.ByteString getPageCategoriesBytes(int index) { + return pageCategories_.getByteString(index); + } + + /** + * + * + *
    +     * Optional. The categories associated with a category page. Must be set for
    +     * category navigation queries to achieve good search quality. The format
    +     * should be the same as
    +     * [UserEvent.page_categories][google.cloud.retail.v2.UserEvent.page_categories];
    +     *
    +     * To represent full path of category, use '>' sign to separate different
    +     * hierarchies. If '>' is part of the category name, replace it with
    +     * other character(s).
    +     *
    +     * Category pages include special pages such as sales or promotions. For
    +     * instance, a special sale page may have the category hierarchy:
    +     * "pageCategories" : ["Sales > 2017 Black Friday Deals"].
    +     * 
    + * + * repeated string page_categories = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The pageCategories to set. + * @return This builder for chaining. + */ + public Builder setPageCategories(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePageCategoriesIsMutable(); + pageCategories_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The categories associated with a category page. Must be set for
    +     * category navigation queries to achieve good search quality. The format
    +     * should be the same as
    +     * [UserEvent.page_categories][google.cloud.retail.v2.UserEvent.page_categories];
    +     *
    +     * To represent full path of category, use '>' sign to separate different
    +     * hierarchies. If '>' is part of the category name, replace it with
    +     * other character(s).
    +     *
    +     * Category pages include special pages such as sales or promotions. For
    +     * instance, a special sale page may have the category hierarchy:
    +     * "pageCategories" : ["Sales > 2017 Black Friday Deals"].
    +     * 
    + * + * repeated string page_categories = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageCategories to add. + * @return This builder for chaining. + */ + public Builder addPageCategories(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePageCategoriesIsMutable(); + pageCategories_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The categories associated with a category page. Must be set for
    +     * category navigation queries to achieve good search quality. The format
    +     * should be the same as
    +     * [UserEvent.page_categories][google.cloud.retail.v2.UserEvent.page_categories];
    +     *
    +     * To represent full path of category, use '>' sign to separate different
    +     * hierarchies. If '>' is part of the category name, replace it with
    +     * other character(s).
    +     *
    +     * Category pages include special pages such as sales or promotions. For
    +     * instance, a special sale page may have the category hierarchy:
    +     * "pageCategories" : ["Sales > 2017 Black Friday Deals"].
    +     * 
    + * + * repeated string page_categories = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The pageCategories to add. + * @return This builder for chaining. + */ + public Builder addAllPageCategories(java.lang.Iterable values) { + ensurePageCategoriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pageCategories_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The categories associated with a category page. Must be set for
    +     * category navigation queries to achieve good search quality. The format
    +     * should be the same as
    +     * [UserEvent.page_categories][google.cloud.retail.v2.UserEvent.page_categories];
    +     *
    +     * To represent full path of category, use '>' sign to separate different
    +     * hierarchies. If '>' is part of the category name, replace it with
    +     * other character(s).
    +     *
    +     * Category pages include special pages such as sales or promotions. For
    +     * instance, a special sale page may have the category hierarchy:
    +     * "pageCategories" : ["Sales > 2017 Black Friday Deals"].
    +     * 
    + * + * repeated string page_categories = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageCategories() { + pageCategories_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The categories associated with a category page. Must be set for
    +     * category navigation queries to achieve good search quality. The format
    +     * should be the same as
    +     * [UserEvent.page_categories][google.cloud.retail.v2.UserEvent.page_categories];
    +     *
    +     * To represent full path of category, use '>' sign to separate different
    +     * hierarchies. If '>' is part of the category name, replace it with
    +     * other character(s).
    +     *
    +     * Category pages include special pages such as sales or promotions. For
    +     * instance, a special sale page may have the category hierarchy:
    +     * "pageCategories" : ["Sales > 2017 Black Friday Deals"].
    +     * 
    + * + * repeated string page_categories = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the pageCategories to add. + * @return This builder for chaining. + */ + public Builder addPageCategoriesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePageCategoriesIsMutable(); + pageCategories_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object conversationId_ = ""; + + /** + * + * + *
    +     * Optional. This field specifies the conversation id, which maintains the
    +     * state of the conversation between client side and server side. Use the
    +     * value from the previous
    +     * [ConversationalSearchResponse.conversation_id][google.cloud.retail.v2.ConversationalSearchResponse.conversation_id].
    +     * For the initial request, this should be empty.
    +     * 
    + * + * string conversation_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The conversationId. + */ + public java.lang.String getConversationId() { + java.lang.Object ref = conversationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + conversationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. This field specifies the conversation id, which maintains the
    +     * state of the conversation between client side and server side. Use the
    +     * value from the previous
    +     * [ConversationalSearchResponse.conversation_id][google.cloud.retail.v2.ConversationalSearchResponse.conversation_id].
    +     * For the initial request, this should be empty.
    +     * 
    + * + * string conversation_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for conversationId. + */ + public com.google.protobuf.ByteString getConversationIdBytes() { + java.lang.Object ref = conversationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + conversationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. This field specifies the conversation id, which maintains the
    +     * state of the conversation between client side and server side. Use the
    +     * value from the previous
    +     * [ConversationalSearchResponse.conversation_id][google.cloud.retail.v2.ConversationalSearchResponse.conversation_id].
    +     * For the initial request, this should be empty.
    +     * 
    + * + * string conversation_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The conversationId to set. + * @return This builder for chaining. + */ + public Builder setConversationId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + conversationId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. This field specifies the conversation id, which maintains the
    +     * state of the conversation between client side and server side. Use the
    +     * value from the previous
    +     * [ConversationalSearchResponse.conversation_id][google.cloud.retail.v2.ConversationalSearchResponse.conversation_id].
    +     * For the initial request, this should be empty.
    +     * 
    + * + * string conversation_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearConversationId() { + conversationId_ = getDefaultInstance().getConversationId(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. This field specifies the conversation id, which maintains the
    +     * state of the conversation between client side and server side. Use the
    +     * value from the previous
    +     * [ConversationalSearchResponse.conversation_id][google.cloud.retail.v2.ConversationalSearchResponse.conversation_id].
    +     * For the initial request, this should be empty.
    +     * 
    + * + * string conversation_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for conversationId to set. + * @return This builder for chaining. + */ + public Builder setConversationIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + conversationId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.cloud.retail.v2.ConversationalSearchRequest.SearchParams searchParams_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.ConversationalSearchRequest.SearchParams, + com.google.cloud.retail.v2.ConversationalSearchRequest.SearchParams.Builder, + com.google.cloud.retail.v2.ConversationalSearchRequest.SearchParamsOrBuilder> + searchParamsBuilder_; + + /** + * + * + *
    +     * Optional. Search parameters.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.SearchParams search_params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the searchParams field is set. + */ + public boolean hasSearchParams() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
    +     * Optional. Search parameters.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.SearchParams search_params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The searchParams. + */ + public com.google.cloud.retail.v2.ConversationalSearchRequest.SearchParams getSearchParams() { + if (searchParamsBuilder_ == null) { + return searchParams_ == null + ? com.google.cloud.retail.v2.ConversationalSearchRequest.SearchParams + .getDefaultInstance() + : searchParams_; + } else { + return searchParamsBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Optional. Search parameters.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.SearchParams search_params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSearchParams( + com.google.cloud.retail.v2.ConversationalSearchRequest.SearchParams value) { + if (searchParamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + searchParams_ = value; + } else { + searchParamsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Search parameters.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.SearchParams search_params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSearchParams( + com.google.cloud.retail.v2.ConversationalSearchRequest.SearchParams.Builder + builderForValue) { + if (searchParamsBuilder_ == null) { + searchParams_ = builderForValue.build(); + } else { + searchParamsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Search parameters.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.SearchParams search_params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSearchParams( + com.google.cloud.retail.v2.ConversationalSearchRequest.SearchParams value) { + if (searchParamsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && searchParams_ != null + && searchParams_ + != com.google.cloud.retail.v2.ConversationalSearchRequest.SearchParams + .getDefaultInstance()) { + getSearchParamsBuilder().mergeFrom(value); + } else { + searchParams_ = value; + } + } else { + searchParamsBuilder_.mergeFrom(value); + } + if (searchParams_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Optional. Search parameters.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.SearchParams search_params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSearchParams() { + bitField0_ = (bitField0_ & ~0x00000020); + searchParams_ = null; + if (searchParamsBuilder_ != null) { + searchParamsBuilder_.dispose(); + searchParamsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Search parameters.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.SearchParams search_params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.retail.v2.ConversationalSearchRequest.SearchParams.Builder + getSearchParamsBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getSearchParamsFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. Search parameters.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.SearchParams search_params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.retail.v2.ConversationalSearchRequest.SearchParamsOrBuilder + getSearchParamsOrBuilder() { + if (searchParamsBuilder_ != null) { + return searchParamsBuilder_.getMessageOrBuilder(); + } else { + return searchParams_ == null + ? com.google.cloud.retail.v2.ConversationalSearchRequest.SearchParams + .getDefaultInstance() + : searchParams_; + } + } + + /** + * + * + *
    +     * Optional. Search parameters.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.SearchParams search_params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.ConversationalSearchRequest.SearchParams, + com.google.cloud.retail.v2.ConversationalSearchRequest.SearchParams.Builder, + com.google.cloud.retail.v2.ConversationalSearchRequest.SearchParamsOrBuilder> + getSearchParamsFieldBuilder() { + if (searchParamsBuilder_ == null) { + searchParamsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.ConversationalSearchRequest.SearchParams, + com.google.cloud.retail.v2.ConversationalSearchRequest.SearchParams.Builder, + com.google.cloud.retail.v2.ConversationalSearchRequest.SearchParamsOrBuilder>( + getSearchParams(), getParentForChildren(), isClean()); + searchParams_ = null; + } + return searchParamsBuilder_; + } + + private java.lang.Object visitorId_ = ""; + + /** + * + * + *
    +     * Required. A unique identifier for tracking visitors. For example, this
    +     * could be implemented with an HTTP cookie, which should be able to uniquely
    +     * identify a visitor on a single device. This unique identifier should not
    +     * change if the visitor logs in or out of the website.
    +     *
    +     * This should be the same identifier as
    +     * [UserEvent.visitor_id][google.cloud.retail.v2.UserEvent.visitor_id].
    +     *
    +     * The field must be a UTF-8 encoded string with a length limit of 128
    +     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
    +     * 
    + * + * string visitor_id = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The visitorId. + */ + public java.lang.String getVisitorId() { + java.lang.Object ref = visitorId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + visitorId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. A unique identifier for tracking visitors. For example, this
    +     * could be implemented with an HTTP cookie, which should be able to uniquely
    +     * identify a visitor on a single device. This unique identifier should not
    +     * change if the visitor logs in or out of the website.
    +     *
    +     * This should be the same identifier as
    +     * [UserEvent.visitor_id][google.cloud.retail.v2.UserEvent.visitor_id].
    +     *
    +     * The field must be a UTF-8 encoded string with a length limit of 128
    +     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
    +     * 
    + * + * string visitor_id = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for visitorId. + */ + public com.google.protobuf.ByteString getVisitorIdBytes() { + java.lang.Object ref = visitorId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + visitorId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. A unique identifier for tracking visitors. For example, this
    +     * could be implemented with an HTTP cookie, which should be able to uniquely
    +     * identify a visitor on a single device. This unique identifier should not
    +     * change if the visitor logs in or out of the website.
    +     *
    +     * This should be the same identifier as
    +     * [UserEvent.visitor_id][google.cloud.retail.v2.UserEvent.visitor_id].
    +     *
    +     * The field must be a UTF-8 encoded string with a length limit of 128
    +     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
    +     * 
    + * + * string visitor_id = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The visitorId to set. + * @return This builder for chaining. + */ + public Builder setVisitorId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + visitorId_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. A unique identifier for tracking visitors. For example, this
    +     * could be implemented with an HTTP cookie, which should be able to uniquely
    +     * identify a visitor on a single device. This unique identifier should not
    +     * change if the visitor logs in or out of the website.
    +     *
    +     * This should be the same identifier as
    +     * [UserEvent.visitor_id][google.cloud.retail.v2.UserEvent.visitor_id].
    +     *
    +     * The field must be a UTF-8 encoded string with a length limit of 128
    +     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
    +     * 
    + * + * string visitor_id = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearVisitorId() { + visitorId_ = getDefaultInstance().getVisitorId(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. A unique identifier for tracking visitors. For example, this
    +     * could be implemented with an HTTP cookie, which should be able to uniquely
    +     * identify a visitor on a single device. This unique identifier should not
    +     * change if the visitor logs in or out of the website.
    +     *
    +     * This should be the same identifier as
    +     * [UserEvent.visitor_id][google.cloud.retail.v2.UserEvent.visitor_id].
    +     *
    +     * The field must be a UTF-8 encoded string with a length limit of 128
    +     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
    +     * 
    + * + * string visitor_id = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for visitorId to set. + * @return This builder for chaining. + */ + public Builder setVisitorIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + visitorId_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private com.google.cloud.retail.v2.UserInfo userInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.UserInfo, + com.google.cloud.retail.v2.UserInfo.Builder, + com.google.cloud.retail.v2.UserInfoOrBuilder> + userInfoBuilder_; + + /** + * + * + *
    +     * Optional. User information.
    +     * 
    + * + * + * .google.cloud.retail.v2.UserInfo user_info = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the userInfo field is set. + */ + public boolean hasUserInfo() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
    +     * Optional. User information.
    +     * 
    + * + * + * .google.cloud.retail.v2.UserInfo user_info = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The userInfo. + */ + public com.google.cloud.retail.v2.UserInfo getUserInfo() { + if (userInfoBuilder_ == null) { + return userInfo_ == null + ? com.google.cloud.retail.v2.UserInfo.getDefaultInstance() + : userInfo_; + } else { + return userInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Optional. User information.
    +     * 
    + * + * + * .google.cloud.retail.v2.UserInfo user_info = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUserInfo(com.google.cloud.retail.v2.UserInfo value) { + if (userInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + userInfo_ = value; + } else { + userInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. User information.
    +     * 
    + * + * + * .google.cloud.retail.v2.UserInfo user_info = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUserInfo(com.google.cloud.retail.v2.UserInfo.Builder builderForValue) { + if (userInfoBuilder_ == null) { + userInfo_ = builderForValue.build(); + } else { + userInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. User information.
    +     * 
    + * + * + * .google.cloud.retail.v2.UserInfo user_info = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUserInfo(com.google.cloud.retail.v2.UserInfo value) { + if (userInfoBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && userInfo_ != null + && userInfo_ != com.google.cloud.retail.v2.UserInfo.getDefaultInstance()) { + getUserInfoBuilder().mergeFrom(value); + } else { + userInfo_ = value; + } + } else { + userInfoBuilder_.mergeFrom(value); + } + if (userInfo_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Optional. User information.
    +     * 
    + * + * + * .google.cloud.retail.v2.UserInfo user_info = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUserInfo() { + bitField0_ = (bitField0_ & ~0x00000080); + userInfo_ = null; + if (userInfoBuilder_ != null) { + userInfoBuilder_.dispose(); + userInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. User information.
    +     * 
    + * + * + * .google.cloud.retail.v2.UserInfo user_info = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.retail.v2.UserInfo.Builder getUserInfoBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getUserInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. User information.
    +     * 
    + * + * + * .google.cloud.retail.v2.UserInfo user_info = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.retail.v2.UserInfoOrBuilder getUserInfoOrBuilder() { + if (userInfoBuilder_ != null) { + return userInfoBuilder_.getMessageOrBuilder(); + } else { + return userInfo_ == null + ? com.google.cloud.retail.v2.UserInfo.getDefaultInstance() + : userInfo_; + } + } + + /** + * + * + *
    +     * Optional. User information.
    +     * 
    + * + * + * .google.cloud.retail.v2.UserInfo user_info = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.UserInfo, + com.google.cloud.retail.v2.UserInfo.Builder, + com.google.cloud.retail.v2.UserInfoOrBuilder> + getUserInfoFieldBuilder() { + if (userInfoBuilder_ == null) { + userInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.UserInfo, + com.google.cloud.retail.v2.UserInfo.Builder, + com.google.cloud.retail.v2.UserInfoOrBuilder>( + getUserInfo(), getParentForChildren(), isClean()); + userInfo_ = null; + } + return userInfoBuilder_; + } + + private com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec + conversationalFilteringSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec, + com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec + .Builder, + com.google.cloud.retail.v2.ConversationalSearchRequest + .ConversationalFilteringSpecOrBuilder> + conversationalFilteringSpecBuilder_; + + /** + * + * + *
    +     * Optional. This field specifies all conversational filtering related
    +     * parameters.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec conversational_filtering_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the conversationalFilteringSpec field is set. + */ + public boolean hasConversationalFilteringSpec() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
    +     * Optional. This field specifies all conversational filtering related
    +     * parameters.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec conversational_filtering_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The conversationalFilteringSpec. + */ + public com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec + getConversationalFilteringSpec() { + if (conversationalFilteringSpecBuilder_ == null) { + return conversationalFilteringSpec_ == null + ? com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec + .getDefaultInstance() + : conversationalFilteringSpec_; + } else { + return conversationalFilteringSpecBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Optional. This field specifies all conversational filtering related
    +     * parameters.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec conversational_filtering_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setConversationalFilteringSpec( + com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec value) { + if (conversationalFilteringSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + conversationalFilteringSpec_ = value; + } else { + conversationalFilteringSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. This field specifies all conversational filtering related
    +     * parameters.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec conversational_filtering_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setConversationalFilteringSpec( + com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec.Builder + builderForValue) { + if (conversationalFilteringSpecBuilder_ == null) { + conversationalFilteringSpec_ = builderForValue.build(); + } else { + conversationalFilteringSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. This field specifies all conversational filtering related
    +     * parameters.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec conversational_filtering_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeConversationalFilteringSpec( + com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec value) { + if (conversationalFilteringSpecBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && conversationalFilteringSpec_ != null + && conversationalFilteringSpec_ + != com.google.cloud.retail.v2.ConversationalSearchRequest + .ConversationalFilteringSpec.getDefaultInstance()) { + getConversationalFilteringSpecBuilder().mergeFrom(value); + } else { + conversationalFilteringSpec_ = value; + } + } else { + conversationalFilteringSpecBuilder_.mergeFrom(value); + } + if (conversationalFilteringSpec_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Optional. This field specifies all conversational filtering related
    +     * parameters.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec conversational_filtering_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearConversationalFilteringSpec() { + bitField0_ = (bitField0_ & ~0x00000100); + conversationalFilteringSpec_ = null; + if (conversationalFilteringSpecBuilder_ != null) { + conversationalFilteringSpecBuilder_.dispose(); + conversationalFilteringSpecBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. This field specifies all conversational filtering related
    +     * parameters.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec conversational_filtering_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec + .Builder + getConversationalFilteringSpecBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return getConversationalFilteringSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. This field specifies all conversational filtering related
    +     * parameters.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec conversational_filtering_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.retail.v2.ConversationalSearchRequest + .ConversationalFilteringSpecOrBuilder + getConversationalFilteringSpecOrBuilder() { + if (conversationalFilteringSpecBuilder_ != null) { + return conversationalFilteringSpecBuilder_.getMessageOrBuilder(); + } else { + return conversationalFilteringSpec_ == null + ? com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec + .getDefaultInstance() + : conversationalFilteringSpec_; + } + } + + /** + * + * + *
    +     * Optional. This field specifies all conversational filtering related
    +     * parameters.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec conversational_filtering_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec, + com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec + .Builder, + com.google.cloud.retail.v2.ConversationalSearchRequest + .ConversationalFilteringSpecOrBuilder> + getConversationalFilteringSpecFieldBuilder() { + if (conversationalFilteringSpecBuilder_ == null) { + conversationalFilteringSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec, + com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec + .Builder, + com.google.cloud.retail.v2.ConversationalSearchRequest + .ConversationalFilteringSpecOrBuilder>( + getConversationalFilteringSpec(), getParentForChildren(), isClean()); + conversationalFilteringSpec_ = null; + } + return conversationalFilteringSpecBuilder_; + } + + private com.google.protobuf.MapField userLabels_; + + private com.google.protobuf.MapField + internalGetUserLabels() { + if (userLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + UserLabelsDefaultEntryHolder.defaultEntry); + } + return userLabels_; + } + + private com.google.protobuf.MapField + internalGetMutableUserLabels() { + if (userLabels_ == null) { + userLabels_ = + com.google.protobuf.MapField.newMapField(UserLabelsDefaultEntryHolder.defaultEntry); + } + if (!userLabels_.isMutable()) { + userLabels_ = userLabels_.copy(); + } + bitField0_ |= 0x00000200; + onChanged(); + return userLabels_; + } + + public int getUserLabelsCount() { + return internalGetUserLabels().getMap().size(); + } + + /** + * + * + *
    +     * Optional. The user labels applied to a resource must meet the following
    +     * requirements:
    +     *
    +     * * Each resource can have multiple labels, up to a maximum of 64.
    +     * * Each label must be a key-value pair.
    +     * * Keys have a minimum length of 1 character and a maximum length of 63
    +     *   characters and cannot be empty. Values can be empty and have a maximum
    +     *   length of 63 characters.
    +     * * Keys and values can contain only lowercase letters, numeric characters,
    +     *   underscores, and dashes. All characters must use UTF-8 encoding, and
    +     *   international characters are allowed.
    +     * * The key portion of a label must be unique. However, you can use the same
    +     *   key with multiple resources.
    +     * * Keys must start with a lowercase letter or international character.
    +     *
    +     * See [Google Cloud
    +     * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
    +     * for more details.
    +     * 
    + * + * map<string, string> user_labels = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsUserLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetUserLabels().getMap().containsKey(key); + } + + /** Use {@link #getUserLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getUserLabels() { + return getUserLabelsMap(); + } + + /** + * + * + *
    +     * Optional. The user labels applied to a resource must meet the following
    +     * requirements:
    +     *
    +     * * Each resource can have multiple labels, up to a maximum of 64.
    +     * * Each label must be a key-value pair.
    +     * * Keys have a minimum length of 1 character and a maximum length of 63
    +     *   characters and cannot be empty. Values can be empty and have a maximum
    +     *   length of 63 characters.
    +     * * Keys and values can contain only lowercase letters, numeric characters,
    +     *   underscores, and dashes. All characters must use UTF-8 encoding, and
    +     *   international characters are allowed.
    +     * * The key portion of a label must be unique. However, you can use the same
    +     *   key with multiple resources.
    +     * * Keys must start with a lowercase letter or international character.
    +     *
    +     * See [Google Cloud
    +     * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
    +     * for more details.
    +     * 
    + * + * map<string, string> user_labels = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getUserLabelsMap() { + return internalGetUserLabels().getMap(); + } + + /** + * + * + *
    +     * Optional. The user labels applied to a resource must meet the following
    +     * requirements:
    +     *
    +     * * Each resource can have multiple labels, up to a maximum of 64.
    +     * * Each label must be a key-value pair.
    +     * * Keys have a minimum length of 1 character and a maximum length of 63
    +     *   characters and cannot be empty. Values can be empty and have a maximum
    +     *   length of 63 characters.
    +     * * Keys and values can contain only lowercase letters, numeric characters,
    +     *   underscores, and dashes. All characters must use UTF-8 encoding, and
    +     *   international characters are allowed.
    +     * * The key portion of a label must be unique. However, you can use the same
    +     *   key with multiple resources.
    +     * * Keys must start with a lowercase letter or international character.
    +     *
    +     * See [Google Cloud
    +     * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
    +     * for more details.
    +     * 
    + * + * map<string, string> user_labels = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getUserLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetUserLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
    +     * Optional. The user labels applied to a resource must meet the following
    +     * requirements:
    +     *
    +     * * Each resource can have multiple labels, up to a maximum of 64.
    +     * * Each label must be a key-value pair.
    +     * * Keys have a minimum length of 1 character and a maximum length of 63
    +     *   characters and cannot be empty. Values can be empty and have a maximum
    +     *   length of 63 characters.
    +     * * Keys and values can contain only lowercase letters, numeric characters,
    +     *   underscores, and dashes. All characters must use UTF-8 encoding, and
    +     *   international characters are allowed.
    +     * * The key portion of a label must be unique. However, you can use the same
    +     *   key with multiple resources.
    +     * * Keys must start with a lowercase letter or international character.
    +     *
    +     * See [Google Cloud
    +     * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
    +     * for more details.
    +     * 
    + * + * map<string, string> user_labels = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getUserLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetUserLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearUserLabels() { + bitField0_ = (bitField0_ & ~0x00000200); + internalGetMutableUserLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
    +     * Optional. The user labels applied to a resource must meet the following
    +     * requirements:
    +     *
    +     * * Each resource can have multiple labels, up to a maximum of 64.
    +     * * Each label must be a key-value pair.
    +     * * Keys have a minimum length of 1 character and a maximum length of 63
    +     *   characters and cannot be empty. Values can be empty and have a maximum
    +     *   length of 63 characters.
    +     * * Keys and values can contain only lowercase letters, numeric characters,
    +     *   underscores, and dashes. All characters must use UTF-8 encoding, and
    +     *   international characters are allowed.
    +     * * The key portion of a label must be unique. However, you can use the same
    +     *   key with multiple resources.
    +     * * Keys must start with a lowercase letter or international character.
    +     *
    +     * See [Google Cloud
    +     * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
    +     * for more details.
    +     * 
    + * + * map<string, string> user_labels = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeUserLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableUserLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableUserLabels() { + bitField0_ |= 0x00000200; + return internalGetMutableUserLabels().getMutableMap(); + } + + /** + * + * + *
    +     * Optional. The user labels applied to a resource must meet the following
    +     * requirements:
    +     *
    +     * * Each resource can have multiple labels, up to a maximum of 64.
    +     * * Each label must be a key-value pair.
    +     * * Keys have a minimum length of 1 character and a maximum length of 63
    +     *   characters and cannot be empty. Values can be empty and have a maximum
    +     *   length of 63 characters.
    +     * * Keys and values can contain only lowercase letters, numeric characters,
    +     *   underscores, and dashes. All characters must use UTF-8 encoding, and
    +     *   international characters are allowed.
    +     * * The key portion of a label must be unique. However, you can use the same
    +     *   key with multiple resources.
    +     * * Keys must start with a lowercase letter or international character.
    +     *
    +     * See [Google Cloud
    +     * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
    +     * for more details.
    +     * 
    + * + * map<string, string> user_labels = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putUserLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableUserLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000200; + return this; + } + + /** + * + * + *
    +     * Optional. The user labels applied to a resource must meet the following
    +     * requirements:
    +     *
    +     * * Each resource can have multiple labels, up to a maximum of 64.
    +     * * Each label must be a key-value pair.
    +     * * Keys have a minimum length of 1 character and a maximum length of 63
    +     *   characters and cannot be empty. Values can be empty and have a maximum
    +     *   length of 63 characters.
    +     * * Keys and values can contain only lowercase letters, numeric characters,
    +     *   underscores, and dashes. All characters must use UTF-8 encoding, and
    +     *   international characters are allowed.
    +     * * The key portion of a label must be unique. However, you can use the same
    +     *   key with multiple resources.
    +     * * Keys must start with a lowercase letter or international character.
    +     *
    +     * See [Google Cloud
    +     * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
    +     * for more details.
    +     * 
    + * + * map<string, string> user_labels = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllUserLabels(java.util.Map values) { + internalGetMutableUserLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000200; + return this; + } + + private java.util.List safetySettings_ = + java.util.Collections.emptyList(); + + private void ensureSafetySettingsIsMutable() { + if (!((bitField0_ & 0x00000400) != 0)) { + safetySettings_ = + new java.util.ArrayList(safetySettings_); + bitField0_ |= 0x00000400; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2.SafetySetting, + com.google.cloud.retail.v2.SafetySetting.Builder, + com.google.cloud.retail.v2.SafetySettingOrBuilder> + safetySettingsBuilder_; + + /** + * + * + *
    +     * Optional. The safety settings to be applied to the generated content.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2.SafetySetting safety_settings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getSafetySettingsList() { + if (safetySettingsBuilder_ == null) { + return java.util.Collections.unmodifiableList(safetySettings_); + } else { + return safetySettingsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * Optional. The safety settings to be applied to the generated content.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2.SafetySetting safety_settings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getSafetySettingsCount() { + if (safetySettingsBuilder_ == null) { + return safetySettings_.size(); + } else { + return safetySettingsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * Optional. The safety settings to be applied to the generated content.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2.SafetySetting safety_settings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.retail.v2.SafetySetting getSafetySettings(int index) { + if (safetySettingsBuilder_ == null) { + return safetySettings_.get(index); + } else { + return safetySettingsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * Optional. The safety settings to be applied to the generated content.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2.SafetySetting safety_settings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSafetySettings(int index, com.google.cloud.retail.v2.SafetySetting value) { + if (safetySettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSafetySettingsIsMutable(); + safetySettings_.set(index, value); + onChanged(); + } else { + safetySettingsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Optional. The safety settings to be applied to the generated content.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2.SafetySetting safety_settings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSafetySettings( + int index, com.google.cloud.retail.v2.SafetySetting.Builder builderForValue) { + if (safetySettingsBuilder_ == null) { + ensureSafetySettingsIsMutable(); + safetySettings_.set(index, builderForValue.build()); + onChanged(); + } else { + safetySettingsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Optional. The safety settings to be applied to the generated content.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2.SafetySetting safety_settings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSafetySettings(com.google.cloud.retail.v2.SafetySetting value) { + if (safetySettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSafetySettingsIsMutable(); + safetySettings_.add(value); + onChanged(); + } else { + safetySettingsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * Optional. The safety settings to be applied to the generated content.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2.SafetySetting safety_settings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSafetySettings(int index, com.google.cloud.retail.v2.SafetySetting value) { + if (safetySettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSafetySettingsIsMutable(); + safetySettings_.add(index, value); + onChanged(); + } else { + safetySettingsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Optional. The safety settings to be applied to the generated content.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2.SafetySetting safety_settings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSafetySettings( + com.google.cloud.retail.v2.SafetySetting.Builder builderForValue) { + if (safetySettingsBuilder_ == null) { + ensureSafetySettingsIsMutable(); + safetySettings_.add(builderForValue.build()); + onChanged(); + } else { + safetySettingsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Optional. The safety settings to be applied to the generated content.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2.SafetySetting safety_settings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSafetySettings( + int index, com.google.cloud.retail.v2.SafetySetting.Builder builderForValue) { + if (safetySettingsBuilder_ == null) { + ensureSafetySettingsIsMutable(); + safetySettings_.add(index, builderForValue.build()); + onChanged(); + } else { + safetySettingsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Optional. The safety settings to be applied to the generated content.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2.SafetySetting safety_settings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllSafetySettings( + java.lang.Iterable values) { + if (safetySettingsBuilder_ == null) { + ensureSafetySettingsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, safetySettings_); + onChanged(); + } else { + safetySettingsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * Optional. The safety settings to be applied to the generated content.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2.SafetySetting safety_settings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSafetySettings() { + if (safetySettingsBuilder_ == null) { + safetySettings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + } else { + safetySettingsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Optional. The safety settings to be applied to the generated content.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2.SafetySetting safety_settings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeSafetySettings(int index) { + if (safetySettingsBuilder_ == null) { + ensureSafetySettingsIsMutable(); + safetySettings_.remove(index); + onChanged(); + } else { + safetySettingsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * Optional. The safety settings to be applied to the generated content.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2.SafetySetting safety_settings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.retail.v2.SafetySetting.Builder getSafetySettingsBuilder(int index) { + return getSafetySettingsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * Optional. The safety settings to be applied to the generated content.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2.SafetySetting safety_settings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.retail.v2.SafetySettingOrBuilder getSafetySettingsOrBuilder(int index) { + if (safetySettingsBuilder_ == null) { + return safetySettings_.get(index); + } else { + return safetySettingsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * Optional. The safety settings to be applied to the generated content.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2.SafetySetting safety_settings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getSafetySettingsOrBuilderList() { + if (safetySettingsBuilder_ != null) { + return safetySettingsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(safetySettings_); + } + } + + /** + * + * + *
    +     * Optional. The safety settings to be applied to the generated content.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2.SafetySetting safety_settings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.retail.v2.SafetySetting.Builder addSafetySettingsBuilder() { + return getSafetySettingsFieldBuilder() + .addBuilder(com.google.cloud.retail.v2.SafetySetting.getDefaultInstance()); + } + + /** + * + * + *
    +     * Optional. The safety settings to be applied to the generated content.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2.SafetySetting safety_settings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.retail.v2.SafetySetting.Builder addSafetySettingsBuilder(int index) { + return getSafetySettingsFieldBuilder() + .addBuilder(index, com.google.cloud.retail.v2.SafetySetting.getDefaultInstance()); + } + + /** + * + * + *
    +     * Optional. The safety settings to be applied to the generated content.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2.SafetySetting safety_settings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getSafetySettingsBuilderList() { + return getSafetySettingsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2.SafetySetting, + com.google.cloud.retail.v2.SafetySetting.Builder, + com.google.cloud.retail.v2.SafetySettingOrBuilder> + getSafetySettingsFieldBuilder() { + if (safetySettingsBuilder_ == null) { + safetySettingsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2.SafetySetting, + com.google.cloud.retail.v2.SafetySetting.Builder, + com.google.cloud.retail.v2.SafetySettingOrBuilder>( + safetySettings_, + ((bitField0_ & 0x00000400) != 0), + getParentForChildren(), + isClean()); + safetySettings_ = null; + } + return safetySettingsBuilder_; + } + + @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.retail.v2.ConversationalSearchRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2.ConversationalSearchRequest) + private static final com.google.cloud.retail.v2.ConversationalSearchRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.retail.v2.ConversationalSearchRequest(); + } + + public static com.google.cloud.retail.v2.ConversationalSearchRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConversationalSearchRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.retail.v2.ConversationalSearchRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ConversationalSearchRequestOrBuilder.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ConversationalSearchRequestOrBuilder.java new file mode 100644 index 000000000000..786e400a6aa8 --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ConversationalSearchRequestOrBuilder.java @@ -0,0 +1,659 @@ +/* + * 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/retail/v2/conversational_search_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.retail.v2; + +public interface ConversationalSearchRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2.ConversationalSearchRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The resource name of the search engine placement, such as
    +   * `projects/*/locations/global/catalogs/default_catalog/placements/default_search`
    +   * or
    +   * `projects/*/locations/global/catalogs/default_catalog/servingConfigs/default_serving_config`
    +   * This field is used to identify the serving config name and the set
    +   * of models that will be used to make the search.
    +   * 
    + * + * string placement = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The placement. + */ + java.lang.String getPlacement(); + + /** + * + * + *
    +   * Required. The resource name of the search engine placement, such as
    +   * `projects/*/locations/global/catalogs/default_catalog/placements/default_search`
    +   * or
    +   * `projects/*/locations/global/catalogs/default_catalog/servingConfigs/default_serving_config`
    +   * This field is used to identify the serving config name and the set
    +   * of models that will be used to make the search.
    +   * 
    + * + * string placement = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for placement. + */ + com.google.protobuf.ByteString getPlacementBytes(); + + /** + * + * + *
    +   * Required. The branch resource name, such as
    +   * `projects/*/locations/global/catalogs/default_catalog/branches/0`.
    +   *
    +   * Use "default_branch" as the branch ID or leave this field empty, to search
    +   * products under the default branch.
    +   * 
    + * + * + * string branch = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The branch. + */ + java.lang.String getBranch(); + + /** + * + * + *
    +   * Required. The branch resource name, such as
    +   * `projects/*/locations/global/catalogs/default_catalog/branches/0`.
    +   *
    +   * Use "default_branch" as the branch ID or leave this field empty, to search
    +   * products under the default branch.
    +   * 
    + * + * + * string branch = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for branch. + */ + com.google.protobuf.ByteString getBranchBytes(); + + /** + * + * + *
    +   * Optional. Raw search query to be searched for.
    +   *
    +   * If this field is empty, the request is considered a category browsing
    +   * request.
    +   * 
    + * + * string query = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The query. + */ + java.lang.String getQuery(); + + /** + * + * + *
    +   * Optional. Raw search query to be searched for.
    +   *
    +   * If this field is empty, the request is considered a category browsing
    +   * request.
    +   * 
    + * + * string query = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for query. + */ + com.google.protobuf.ByteString getQueryBytes(); + + /** + * + * + *
    +   * Optional. The categories associated with a category page. Must be set for
    +   * category navigation queries to achieve good search quality. The format
    +   * should be the same as
    +   * [UserEvent.page_categories][google.cloud.retail.v2.UserEvent.page_categories];
    +   *
    +   * To represent full path of category, use '>' sign to separate different
    +   * hierarchies. If '>' is part of the category name, replace it with
    +   * other character(s).
    +   *
    +   * Category pages include special pages such as sales or promotions. For
    +   * instance, a special sale page may have the category hierarchy:
    +   * "pageCategories" : ["Sales > 2017 Black Friday Deals"].
    +   * 
    + * + * repeated string page_categories = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the pageCategories. + */ + java.util.List getPageCategoriesList(); + + /** + * + * + *
    +   * Optional. The categories associated with a category page. Must be set for
    +   * category navigation queries to achieve good search quality. The format
    +   * should be the same as
    +   * [UserEvent.page_categories][google.cloud.retail.v2.UserEvent.page_categories];
    +   *
    +   * To represent full path of category, use '>' sign to separate different
    +   * hierarchies. If '>' is part of the category name, replace it with
    +   * other character(s).
    +   *
    +   * Category pages include special pages such as sales or promotions. For
    +   * instance, a special sale page may have the category hierarchy:
    +   * "pageCategories" : ["Sales > 2017 Black Friday Deals"].
    +   * 
    + * + * repeated string page_categories = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of pageCategories. + */ + int getPageCategoriesCount(); + + /** + * + * + *
    +   * Optional. The categories associated with a category page. Must be set for
    +   * category navigation queries to achieve good search quality. The format
    +   * should be the same as
    +   * [UserEvent.page_categories][google.cloud.retail.v2.UserEvent.page_categories];
    +   *
    +   * To represent full path of category, use '>' sign to separate different
    +   * hierarchies. If '>' is part of the category name, replace it with
    +   * other character(s).
    +   *
    +   * Category pages include special pages such as sales or promotions. For
    +   * instance, a special sale page may have the category hierarchy:
    +   * "pageCategories" : ["Sales > 2017 Black Friday Deals"].
    +   * 
    + * + * repeated string page_categories = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The pageCategories at the given index. + */ + java.lang.String getPageCategories(int index); + + /** + * + * + *
    +   * Optional. The categories associated with a category page. Must be set for
    +   * category navigation queries to achieve good search quality. The format
    +   * should be the same as
    +   * [UserEvent.page_categories][google.cloud.retail.v2.UserEvent.page_categories];
    +   *
    +   * To represent full path of category, use '>' sign to separate different
    +   * hierarchies. If '>' is part of the category name, replace it with
    +   * other character(s).
    +   *
    +   * Category pages include special pages such as sales or promotions. For
    +   * instance, a special sale page may have the category hierarchy:
    +   * "pageCategories" : ["Sales > 2017 Black Friday Deals"].
    +   * 
    + * + * repeated string page_categories = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the pageCategories at the given index. + */ + com.google.protobuf.ByteString getPageCategoriesBytes(int index); + + /** + * + * + *
    +   * Optional. This field specifies the conversation id, which maintains the
    +   * state of the conversation between client side and server side. Use the
    +   * value from the previous
    +   * [ConversationalSearchResponse.conversation_id][google.cloud.retail.v2.ConversationalSearchResponse.conversation_id].
    +   * For the initial request, this should be empty.
    +   * 
    + * + * string conversation_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The conversationId. + */ + java.lang.String getConversationId(); + + /** + * + * + *
    +   * Optional. This field specifies the conversation id, which maintains the
    +   * state of the conversation between client side and server side. Use the
    +   * value from the previous
    +   * [ConversationalSearchResponse.conversation_id][google.cloud.retail.v2.ConversationalSearchResponse.conversation_id].
    +   * For the initial request, this should be empty.
    +   * 
    + * + * string conversation_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for conversationId. + */ + com.google.protobuf.ByteString getConversationIdBytes(); + + /** + * + * + *
    +   * Optional. Search parameters.
    +   * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.SearchParams search_params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the searchParams field is set. + */ + boolean hasSearchParams(); + + /** + * + * + *
    +   * Optional. Search parameters.
    +   * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.SearchParams search_params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The searchParams. + */ + com.google.cloud.retail.v2.ConversationalSearchRequest.SearchParams getSearchParams(); + + /** + * + * + *
    +   * Optional. Search parameters.
    +   * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.SearchParams search_params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.retail.v2.ConversationalSearchRequest.SearchParamsOrBuilder + getSearchParamsOrBuilder(); + + /** + * + * + *
    +   * Required. A unique identifier for tracking visitors. For example, this
    +   * could be implemented with an HTTP cookie, which should be able to uniquely
    +   * identify a visitor on a single device. This unique identifier should not
    +   * change if the visitor logs in or out of the website.
    +   *
    +   * This should be the same identifier as
    +   * [UserEvent.visitor_id][google.cloud.retail.v2.UserEvent.visitor_id].
    +   *
    +   * The field must be a UTF-8 encoded string with a length limit of 128
    +   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
    +   * 
    + * + * string visitor_id = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The visitorId. + */ + java.lang.String getVisitorId(); + + /** + * + * + *
    +   * Required. A unique identifier for tracking visitors. For example, this
    +   * could be implemented with an HTTP cookie, which should be able to uniquely
    +   * identify a visitor on a single device. This unique identifier should not
    +   * change if the visitor logs in or out of the website.
    +   *
    +   * This should be the same identifier as
    +   * [UserEvent.visitor_id][google.cloud.retail.v2.UserEvent.visitor_id].
    +   *
    +   * The field must be a UTF-8 encoded string with a length limit of 128
    +   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
    +   * 
    + * + * string visitor_id = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for visitorId. + */ + com.google.protobuf.ByteString getVisitorIdBytes(); + + /** + * + * + *
    +   * Optional. User information.
    +   * 
    + * + * .google.cloud.retail.v2.UserInfo user_info = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the userInfo field is set. + */ + boolean hasUserInfo(); + + /** + * + * + *
    +   * Optional. User information.
    +   * 
    + * + * .google.cloud.retail.v2.UserInfo user_info = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The userInfo. + */ + com.google.cloud.retail.v2.UserInfo getUserInfo(); + + /** + * + * + *
    +   * Optional. User information.
    +   * 
    + * + * .google.cloud.retail.v2.UserInfo user_info = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.retail.v2.UserInfoOrBuilder getUserInfoOrBuilder(); + + /** + * + * + *
    +   * Optional. This field specifies all conversational filtering related
    +   * parameters.
    +   * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec conversational_filtering_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the conversationalFilteringSpec field is set. + */ + boolean hasConversationalFilteringSpec(); + + /** + * + * + *
    +   * Optional. This field specifies all conversational filtering related
    +   * parameters.
    +   * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec conversational_filtering_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The conversationalFilteringSpec. + */ + com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec + getConversationalFilteringSpec(); + + /** + * + * + *
    +   * Optional. This field specifies all conversational filtering related
    +   * parameters.
    +   * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec conversational_filtering_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpecOrBuilder + getConversationalFilteringSpecOrBuilder(); + + /** + * + * + *
    +   * Optional. The user labels applied to a resource must meet the following
    +   * requirements:
    +   *
    +   * * Each resource can have multiple labels, up to a maximum of 64.
    +   * * Each label must be a key-value pair.
    +   * * Keys have a minimum length of 1 character and a maximum length of 63
    +   *   characters and cannot be empty. Values can be empty and have a maximum
    +   *   length of 63 characters.
    +   * * Keys and values can contain only lowercase letters, numeric characters,
    +   *   underscores, and dashes. All characters must use UTF-8 encoding, and
    +   *   international characters are allowed.
    +   * * The key portion of a label must be unique. However, you can use the same
    +   *   key with multiple resources.
    +   * * Keys must start with a lowercase letter or international character.
    +   *
    +   * See [Google Cloud
    +   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
    +   * for more details.
    +   * 
    + * + * map<string, string> user_labels = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getUserLabelsCount(); + + /** + * + * + *
    +   * Optional. The user labels applied to a resource must meet the following
    +   * requirements:
    +   *
    +   * * Each resource can have multiple labels, up to a maximum of 64.
    +   * * Each label must be a key-value pair.
    +   * * Keys have a minimum length of 1 character and a maximum length of 63
    +   *   characters and cannot be empty. Values can be empty and have a maximum
    +   *   length of 63 characters.
    +   * * Keys and values can contain only lowercase letters, numeric characters,
    +   *   underscores, and dashes. All characters must use UTF-8 encoding, and
    +   *   international characters are allowed.
    +   * * The key portion of a label must be unique. However, you can use the same
    +   *   key with multiple resources.
    +   * * Keys must start with a lowercase letter or international character.
    +   *
    +   * See [Google Cloud
    +   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
    +   * for more details.
    +   * 
    + * + * map<string, string> user_labels = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsUserLabels(java.lang.String key); + + /** Use {@link #getUserLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getUserLabels(); + + /** + * + * + *
    +   * Optional. The user labels applied to a resource must meet the following
    +   * requirements:
    +   *
    +   * * Each resource can have multiple labels, up to a maximum of 64.
    +   * * Each label must be a key-value pair.
    +   * * Keys have a minimum length of 1 character and a maximum length of 63
    +   *   characters and cannot be empty. Values can be empty and have a maximum
    +   *   length of 63 characters.
    +   * * Keys and values can contain only lowercase letters, numeric characters,
    +   *   underscores, and dashes. All characters must use UTF-8 encoding, and
    +   *   international characters are allowed.
    +   * * The key portion of a label must be unique. However, you can use the same
    +   *   key with multiple resources.
    +   * * Keys must start with a lowercase letter or international character.
    +   *
    +   * See [Google Cloud
    +   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
    +   * for more details.
    +   * 
    + * + * map<string, string> user_labels = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getUserLabelsMap(); + + /** + * + * + *
    +   * Optional. The user labels applied to a resource must meet the following
    +   * requirements:
    +   *
    +   * * Each resource can have multiple labels, up to a maximum of 64.
    +   * * Each label must be a key-value pair.
    +   * * Keys have a minimum length of 1 character and a maximum length of 63
    +   *   characters and cannot be empty. Values can be empty and have a maximum
    +   *   length of 63 characters.
    +   * * Keys and values can contain only lowercase letters, numeric characters,
    +   *   underscores, and dashes. All characters must use UTF-8 encoding, and
    +   *   international characters are allowed.
    +   * * The key portion of a label must be unique. However, you can use the same
    +   *   key with multiple resources.
    +   * * Keys must start with a lowercase letter or international character.
    +   *
    +   * See [Google Cloud
    +   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
    +   * for more details.
    +   * 
    + * + * map<string, string> user_labels = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getUserLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
    +   * Optional. The user labels applied to a resource must meet the following
    +   * requirements:
    +   *
    +   * * Each resource can have multiple labels, up to a maximum of 64.
    +   * * Each label must be a key-value pair.
    +   * * Keys have a minimum length of 1 character and a maximum length of 63
    +   *   characters and cannot be empty. Values can be empty and have a maximum
    +   *   length of 63 characters.
    +   * * Keys and values can contain only lowercase letters, numeric characters,
    +   *   underscores, and dashes. All characters must use UTF-8 encoding, and
    +   *   international characters are allowed.
    +   * * The key portion of a label must be unique. However, you can use the same
    +   *   key with multiple resources.
    +   * * Keys must start with a lowercase letter or international character.
    +   *
    +   * See [Google Cloud
    +   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
    +   * for more details.
    +   * 
    + * + * map<string, string> user_labels = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getUserLabelsOrThrow(java.lang.String key); + + /** + * + * + *
    +   * Optional. The safety settings to be applied to the generated content.
    +   * 
    + * + * + * repeated .google.cloud.retail.v2.SafetySetting safety_settings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getSafetySettingsList(); + + /** + * + * + *
    +   * Optional. The safety settings to be applied to the generated content.
    +   * 
    + * + * + * repeated .google.cloud.retail.v2.SafetySetting safety_settings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.retail.v2.SafetySetting getSafetySettings(int index); + + /** + * + * + *
    +   * Optional. The safety settings to be applied to the generated content.
    +   * 
    + * + * + * repeated .google.cloud.retail.v2.SafetySetting safety_settings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getSafetySettingsCount(); + + /** + * + * + *
    +   * Optional. The safety settings to be applied to the generated content.
    +   * 
    + * + * + * repeated .google.cloud.retail.v2.SafetySetting safety_settings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getSafetySettingsOrBuilderList(); + + /** + * + * + *
    +   * Optional. The safety settings to be applied to the generated content.
    +   * 
    + * + * + * repeated .google.cloud.retail.v2.SafetySetting safety_settings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.retail.v2.SafetySettingOrBuilder getSafetySettingsOrBuilder(int index); +} diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ConversationalSearchResponse.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ConversationalSearchResponse.java new file mode 100644 index 000000000000..bd6e81f2ef4e --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ConversationalSearchResponse.java @@ -0,0 +1,8117 @@ +/* + * 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/retail/v2/conversational_search_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.retail.v2; + +/** + * + * + *
    + * Response message for
    + * [ConversationalSearchService.ConversationalSearch][google.cloud.retail.v2.ConversationalSearchService.ConversationalSearch]
    + * method.
    + * 
    + * + * Protobuf type {@code google.cloud.retail.v2.ConversationalSearchResponse} + */ +public final class ConversationalSearchResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2.ConversationalSearchResponse) + ConversationalSearchResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ConversationalSearchResponse.newBuilder() to construct. + private ConversationalSearchResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ConversationalSearchResponse() { + userQueryTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + conversationalTextResponse_ = ""; + conversationId_ = ""; + refinedSearch_ = java.util.Collections.emptyList(); + state_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ConversationalSearchResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2_ConversationalSearchResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2_ConversationalSearchResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2.ConversationalSearchResponse.class, + com.google.cloud.retail.v2.ConversationalSearchResponse.Builder.class); + } + + /** + * + * + *
    +   * The state of the response generation.
    +   * 
    + * + * Protobuf enum {@code google.cloud.retail.v2.ConversationalSearchResponse.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Unknown.
    +     * 
    + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
    +     * Response generation is being streamed.
    +     * 
    + * + * STREAMING = 1; + */ + STREAMING(1), + /** + * + * + *
    +     * Response generation has succeeded.
    +     * 
    + * + * SUCCEEDED = 2; + */ + SUCCEEDED(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * Unknown.
    +     * 
    + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +     * Response generation is being streamed.
    +     * 
    + * + * STREAMING = 1; + */ + public static final int STREAMING_VALUE = 1; + + /** + * + * + *
    +     * Response generation has succeeded.
    +     * 
    + * + * SUCCEEDED = 2; + */ + public static final int SUCCEEDED_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return STREAMING; + case 2: + return SUCCEEDED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.retail.v2.ConversationalSearchResponse.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.retail.v2.ConversationalSearchResponse.State) + } + + public interface FollowupQuestionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * The conversational followup question generated for Intent refinement.
    +     * 
    + * + * string followup_question = 1; + * + * @return The followupQuestion. + */ + java.lang.String getFollowupQuestion(); + + /** + * + * + *
    +     * The conversational followup question generated for Intent refinement.
    +     * 
    + * + * string followup_question = 1; + * + * @return The bytes for followupQuestion. + */ + com.google.protobuf.ByteString getFollowupQuestionBytes(); + + /** + * + * + *
    +     * The answer options provided to client for the follow-up question.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer suggested_answers = 2; + * + */ + java.util.List< + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer> + getSuggestedAnswersList(); + + /** + * + * + *
    +     * The answer options provided to client for the follow-up question.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer suggested_answers = 2; + * + */ + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer + getSuggestedAnswers(int index); + + /** + * + * + *
    +     * The answer options provided to client for the follow-up question.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer suggested_answers = 2; + * + */ + int getSuggestedAnswersCount(); + + /** + * + * + *
    +     * The answer options provided to client for the follow-up question.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer suggested_answers = 2; + * + */ + java.util.List< + ? extends + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswerOrBuilder> + getSuggestedAnswersOrBuilderList(); + + /** + * + * + *
    +     * The answer options provided to client for the follow-up question.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer suggested_answers = 2; + * + */ + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswerOrBuilder + getSuggestedAnswersOrBuilder(int index); + } + + /** + * + * + *
    +   * The conversational followup question generated for Intent refinement.
    +   * 
    + * + * Protobuf type {@code google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion} + */ + public static final class FollowupQuestion extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion) + FollowupQuestionOrBuilder { + private static final long serialVersionUID = 0L; + + // Use FollowupQuestion.newBuilder() to construct. + private FollowupQuestion(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FollowupQuestion() { + followupQuestion_ = ""; + suggestedAnswers_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FollowupQuestion(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2_ConversationalSearchResponse_FollowupQuestion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2_ConversationalSearchResponse_FollowupQuestion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.class, + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.Builder + .class); + } + + public interface SuggestedAnswerOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +       * Product attribute value, including an attribute key and an
    +       * attribute value. Other types can be added here in the future.
    +       * 
    + * + * .google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1; + * + * @return Whether the productAttributeValue field is set. + */ + boolean hasProductAttributeValue(); + + /** + * + * + *
    +       * Product attribute value, including an attribute key and an
    +       * attribute value. Other types can be added here in the future.
    +       * 
    + * + * .google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1; + * + * @return The productAttributeValue. + */ + com.google.cloud.retail.v2.ProductAttributeValue getProductAttributeValue(); + + /** + * + * + *
    +       * Product attribute value, including an attribute key and an
    +       * attribute value. Other types can be added here in the future.
    +       * 
    + * + * .google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1; + */ + com.google.cloud.retail.v2.ProductAttributeValueOrBuilder getProductAttributeValueOrBuilder(); + } + + /** + * + * + *
    +     * Suggested answers to the follow-up question.
    +     * If it's numerical attribute, only ProductAttributeInterval will be set.
    +     * If it's textual attribute, only productAttributeValue will be set.
    +     * 
    + * + * Protobuf type {@code + * google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer} + */ + public static final class SuggestedAnswer extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer) + SuggestedAnswerOrBuilder { + private static final long serialVersionUID = 0L; + + // Use SuggestedAnswer.newBuilder() to construct. + private SuggestedAnswer(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SuggestedAnswer() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SuggestedAnswer(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2_ConversationalSearchResponse_FollowupQuestion_SuggestedAnswer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2_ConversationalSearchResponse_FollowupQuestion_SuggestedAnswer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer.class, + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer.Builder.class); + } + + private int bitField0_; + public static final int PRODUCT_ATTRIBUTE_VALUE_FIELD_NUMBER = 1; + private com.google.cloud.retail.v2.ProductAttributeValue productAttributeValue_; + + /** + * + * + *
    +       * Product attribute value, including an attribute key and an
    +       * attribute value. Other types can be added here in the future.
    +       * 
    + * + * .google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1; + * + * @return Whether the productAttributeValue field is set. + */ + @java.lang.Override + public boolean hasProductAttributeValue() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +       * Product attribute value, including an attribute key and an
    +       * attribute value. Other types can be added here in the future.
    +       * 
    + * + * .google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1; + * + * @return The productAttributeValue. + */ + @java.lang.Override + public com.google.cloud.retail.v2.ProductAttributeValue getProductAttributeValue() { + return productAttributeValue_ == null + ? com.google.cloud.retail.v2.ProductAttributeValue.getDefaultInstance() + : productAttributeValue_; + } + + /** + * + * + *
    +       * Product attribute value, including an attribute key and an
    +       * attribute value. Other types can be added here in the future.
    +       * 
    + * + * .google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1; + */ + @java.lang.Override + public com.google.cloud.retail.v2.ProductAttributeValueOrBuilder + getProductAttributeValueOrBuilder() { + return productAttributeValue_ == null + ? com.google.cloud.retail.v2.ProductAttributeValue.getDefaultInstance() + : productAttributeValue_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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, getProductAttributeValue()); + } + 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, getProductAttributeValue()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer)) { + return super.equals(obj); + } + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer + other = + (com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer) + obj; + + if (hasProductAttributeValue() != other.hasProductAttributeValue()) return false; + if (hasProductAttributeValue()) { + if (!getProductAttributeValue().equals(other.getProductAttributeValue())) 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 (hasProductAttributeValue()) { + hash = (37 * hash) + PRODUCT_ATTRIBUTE_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getProductAttributeValue().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer + 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.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer + parseFrom( + 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.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer + 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.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer + 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.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer + 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.retail.v2.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
    +       * Suggested answers to the follow-up question.
    +       * If it's numerical attribute, only ProductAttributeInterval will be set.
    +       * If it's textual attribute, only productAttributeValue will be set.
    +       * 
    + * + * Protobuf type {@code + * google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer) + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2_ConversationalSearchResponse_FollowupQuestion_SuggestedAnswer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2_ConversationalSearchResponse_FollowupQuestion_SuggestedAnswer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer.class, + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer.Builder.class); + } + + // Construct using + // com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getProductAttributeValueFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + productAttributeValue_ = null; + if (productAttributeValueBuilder_ != null) { + productAttributeValueBuilder_.dispose(); + productAttributeValueBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2_ConversationalSearchResponse_FollowupQuestion_SuggestedAnswer_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer + getDefaultInstanceForType() { + return com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer + build() { + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer + buildPartial() { + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer + result = + new com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.productAttributeValue_ = + productAttributeValueBuilder_ == null + ? productAttributeValue_ + : productAttributeValueBuilder_.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.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer) { + return mergeFrom( + (com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer + other) { + if (other + == com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer.getDefaultInstance()) return this; + if (other.hasProductAttributeValue()) { + mergeProductAttributeValue(other.getProductAttributeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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( + getProductAttributeValueFieldBuilder().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.retail.v2.ProductAttributeValue productAttributeValue_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.ProductAttributeValue, + com.google.cloud.retail.v2.ProductAttributeValue.Builder, + com.google.cloud.retail.v2.ProductAttributeValueOrBuilder> + productAttributeValueBuilder_; + + /** + * + * + *
    +         * Product attribute value, including an attribute key and an
    +         * attribute value. Other types can be added here in the future.
    +         * 
    + * + * .google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1; + * + * @return Whether the productAttributeValue field is set. + */ + public boolean hasProductAttributeValue() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +         * Product attribute value, including an attribute key and an
    +         * attribute value. Other types can be added here in the future.
    +         * 
    + * + * .google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1; + * + * @return The productAttributeValue. + */ + public com.google.cloud.retail.v2.ProductAttributeValue getProductAttributeValue() { + if (productAttributeValueBuilder_ == null) { + return productAttributeValue_ == null + ? com.google.cloud.retail.v2.ProductAttributeValue.getDefaultInstance() + : productAttributeValue_; + } else { + return productAttributeValueBuilder_.getMessage(); + } + } + + /** + * + * + *
    +         * Product attribute value, including an attribute key and an
    +         * attribute value. Other types can be added here in the future.
    +         * 
    + * + * .google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1; + */ + public Builder setProductAttributeValue( + com.google.cloud.retail.v2.ProductAttributeValue value) { + if (productAttributeValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + productAttributeValue_ = value; + } else { + productAttributeValueBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +         * Product attribute value, including an attribute key and an
    +         * attribute value. Other types can be added here in the future.
    +         * 
    + * + * .google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1; + */ + public Builder setProductAttributeValue( + com.google.cloud.retail.v2.ProductAttributeValue.Builder builderForValue) { + if (productAttributeValueBuilder_ == null) { + productAttributeValue_ = builderForValue.build(); + } else { + productAttributeValueBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +         * Product attribute value, including an attribute key and an
    +         * attribute value. Other types can be added here in the future.
    +         * 
    + * + * .google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1; + */ + public Builder mergeProductAttributeValue( + com.google.cloud.retail.v2.ProductAttributeValue value) { + if (productAttributeValueBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && productAttributeValue_ != null + && productAttributeValue_ + != com.google.cloud.retail.v2.ProductAttributeValue.getDefaultInstance()) { + getProductAttributeValueBuilder().mergeFrom(value); + } else { + productAttributeValue_ = value; + } + } else { + productAttributeValueBuilder_.mergeFrom(value); + } + if (productAttributeValue_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
    +         * Product attribute value, including an attribute key and an
    +         * attribute value. Other types can be added here in the future.
    +         * 
    + * + * .google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1; + */ + public Builder clearProductAttributeValue() { + bitField0_ = (bitField0_ & ~0x00000001); + productAttributeValue_ = null; + if (productAttributeValueBuilder_ != null) { + productAttributeValueBuilder_.dispose(); + productAttributeValueBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +         * Product attribute value, including an attribute key and an
    +         * attribute value. Other types can be added here in the future.
    +         * 
    + * + * .google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1; + */ + public com.google.cloud.retail.v2.ProductAttributeValue.Builder + getProductAttributeValueBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getProductAttributeValueFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +         * Product attribute value, including an attribute key and an
    +         * attribute value. Other types can be added here in the future.
    +         * 
    + * + * .google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1; + */ + public com.google.cloud.retail.v2.ProductAttributeValueOrBuilder + getProductAttributeValueOrBuilder() { + if (productAttributeValueBuilder_ != null) { + return productAttributeValueBuilder_.getMessageOrBuilder(); + } else { + return productAttributeValue_ == null + ? com.google.cloud.retail.v2.ProductAttributeValue.getDefaultInstance() + : productAttributeValue_; + } + } + + /** + * + * + *
    +         * Product attribute value, including an attribute key and an
    +         * attribute value. Other types can be added here in the future.
    +         * 
    + * + * .google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.ProductAttributeValue, + com.google.cloud.retail.v2.ProductAttributeValue.Builder, + com.google.cloud.retail.v2.ProductAttributeValueOrBuilder> + getProductAttributeValueFieldBuilder() { + if (productAttributeValueBuilder_ == null) { + productAttributeValueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.ProductAttributeValue, + com.google.cloud.retail.v2.ProductAttributeValue.Builder, + com.google.cloud.retail.v2.ProductAttributeValueOrBuilder>( + getProductAttributeValue(), getParentForChildren(), isClean()); + productAttributeValue_ = null; + } + return productAttributeValueBuilder_; + } + + @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.retail.v2.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer) + private static final com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer(); + } + + public static com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SuggestedAnswer parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int FOLLOWUP_QUESTION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object followupQuestion_ = ""; + + /** + * + * + *
    +     * The conversational followup question generated for Intent refinement.
    +     * 
    + * + * string followup_question = 1; + * + * @return The followupQuestion. + */ + @java.lang.Override + public java.lang.String getFollowupQuestion() { + java.lang.Object ref = followupQuestion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + followupQuestion_ = s; + return s; + } + } + + /** + * + * + *
    +     * The conversational followup question generated for Intent refinement.
    +     * 
    + * + * string followup_question = 1; + * + * @return The bytes for followupQuestion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFollowupQuestionBytes() { + java.lang.Object ref = followupQuestion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + followupQuestion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUGGESTED_ANSWERS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer> + suggestedAnswers_; + + /** + * + * + *
    +     * The answer options provided to client for the follow-up question.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer suggested_answers = 2; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer> + getSuggestedAnswersList() { + return suggestedAnswers_; + } + + /** + * + * + *
    +     * The answer options provided to client for the follow-up question.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer suggested_answers = 2; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswerOrBuilder> + getSuggestedAnswersOrBuilderList() { + return suggestedAnswers_; + } + + /** + * + * + *
    +     * The answer options provided to client for the follow-up question.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer suggested_answers = 2; + * + */ + @java.lang.Override + public int getSuggestedAnswersCount() { + return suggestedAnswers_.size(); + } + + /** + * + * + *
    +     * The answer options provided to client for the follow-up question.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer suggested_answers = 2; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer + getSuggestedAnswers(int index) { + return suggestedAnswers_.get(index); + } + + /** + * + * + *
    +     * The answer options provided to client for the follow-up question.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer suggested_answers = 2; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswerOrBuilder + getSuggestedAnswersOrBuilder(int index) { + return suggestedAnswers_.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(followupQuestion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, followupQuestion_); + } + for (int i = 0; i < suggestedAnswers_.size(); i++) { + output.writeMessage(2, suggestedAnswers_.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(followupQuestion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, followupQuestion_); + } + for (int i = 0; i < suggestedAnswers_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, suggestedAnswers_.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.retail.v2.ConversationalSearchResponse.FollowupQuestion)) { + return super.equals(obj); + } + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion other = + (com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion) obj; + + if (!getFollowupQuestion().equals(other.getFollowupQuestion())) return false; + if (!getSuggestedAnswersList().equals(other.getSuggestedAnswersList())) 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) + FOLLOWUP_QUESTION_FIELD_NUMBER; + hash = (53 * hash) + getFollowupQuestion().hashCode(); + if (getSuggestedAnswersCount() > 0) { + hash = (37 * hash) + SUGGESTED_ANSWERS_FIELD_NUMBER; + hash = (53 * hash) + getSuggestedAnswersList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + 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.retail.v2.ConversationalSearchResponse.FollowupQuestion + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + parseFrom( + 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.retail.v2.ConversationalSearchResponse.FollowupQuestion + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + 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.retail.v2.ConversationalSearchResponse.FollowupQuestion + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + 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.retail.v2.ConversationalSearchResponse.FollowupQuestion + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + 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.retail.v2.ConversationalSearchResponse.FollowupQuestion prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 conversational followup question generated for Intent refinement.
    +     * 
    + * + * Protobuf type {@code google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion) + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2_ConversationalSearchResponse_FollowupQuestion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2_ConversationalSearchResponse_FollowupQuestion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.class, + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.Builder + .class); + } + + // Construct using + // com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + followupQuestion_ = ""; + if (suggestedAnswersBuilder_ == null) { + suggestedAnswers_ = java.util.Collections.emptyList(); + } else { + suggestedAnswers_ = null; + suggestedAnswersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2_ConversationalSearchResponse_FollowupQuestion_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + getDefaultInstanceForType() { + return com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion build() { + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + buildPartial() { + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion result = + new com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion result) { + if (suggestedAnswersBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + suggestedAnswers_ = java.util.Collections.unmodifiableList(suggestedAnswers_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.suggestedAnswers_ = suggestedAnswers_; + } else { + result.suggestedAnswers_ = suggestedAnswersBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.followupQuestion_ = followupQuestion_; + } + } + + @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.retail.v2.ConversationalSearchResponse.FollowupQuestion) { + return mergeFrom( + (com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion other) { + if (other + == com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .getDefaultInstance()) return this; + if (!other.getFollowupQuestion().isEmpty()) { + followupQuestion_ = other.followupQuestion_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (suggestedAnswersBuilder_ == null) { + if (!other.suggestedAnswers_.isEmpty()) { + if (suggestedAnswers_.isEmpty()) { + suggestedAnswers_ = other.suggestedAnswers_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureSuggestedAnswersIsMutable(); + suggestedAnswers_.addAll(other.suggestedAnswers_); + } + onChanged(); + } + } else { + if (!other.suggestedAnswers_.isEmpty()) { + if (suggestedAnswersBuilder_.isEmpty()) { + suggestedAnswersBuilder_.dispose(); + suggestedAnswersBuilder_ = null; + suggestedAnswers_ = other.suggestedAnswers_; + bitField0_ = (bitField0_ & ~0x00000002); + suggestedAnswersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSuggestedAnswersFieldBuilder() + : null; + } else { + suggestedAnswersBuilder_.addAllMessages(other.suggestedAnswers_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + followupQuestion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer + m = + input.readMessage( + com.google.cloud.retail.v2.ConversationalSearchResponse + .FollowupQuestion.SuggestedAnswer.parser(), + extensionRegistry); + if (suggestedAnswersBuilder_ == null) { + ensureSuggestedAnswersIsMutable(); + suggestedAnswers_.add(m); + } else { + suggestedAnswersBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object followupQuestion_ = ""; + + /** + * + * + *
    +       * The conversational followup question generated for Intent refinement.
    +       * 
    + * + * string followup_question = 1; + * + * @return The followupQuestion. + */ + public java.lang.String getFollowupQuestion() { + java.lang.Object ref = followupQuestion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + followupQuestion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +       * The conversational followup question generated for Intent refinement.
    +       * 
    + * + * string followup_question = 1; + * + * @return The bytes for followupQuestion. + */ + public com.google.protobuf.ByteString getFollowupQuestionBytes() { + java.lang.Object ref = followupQuestion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + followupQuestion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +       * The conversational followup question generated for Intent refinement.
    +       * 
    + * + * string followup_question = 1; + * + * @param value The followupQuestion to set. + * @return This builder for chaining. + */ + public Builder setFollowupQuestion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + followupQuestion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +       * The conversational followup question generated for Intent refinement.
    +       * 
    + * + * string followup_question = 1; + * + * @return This builder for chaining. + */ + public Builder clearFollowupQuestion() { + followupQuestion_ = getDefaultInstance().getFollowupQuestion(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +       * The conversational followup question generated for Intent refinement.
    +       * 
    + * + * string followup_question = 1; + * + * @param value The bytes for followupQuestion to set. + * @return This builder for chaining. + */ + public Builder setFollowupQuestionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + followupQuestion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List< + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer> + suggestedAnswers_ = java.util.Collections.emptyList(); + + private void ensureSuggestedAnswersIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + suggestedAnswers_ = + new java.util.ArrayList< + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer>(suggestedAnswers_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer, + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer.Builder, + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswerOrBuilder> + suggestedAnswersBuilder_; + + /** + * + * + *
    +       * The answer options provided to client for the follow-up question.
    +       * 
    + * + * + * repeated .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer suggested_answers = 2; + * + */ + public java.util.List< + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer> + getSuggestedAnswersList() { + if (suggestedAnswersBuilder_ == null) { + return java.util.Collections.unmodifiableList(suggestedAnswers_); + } else { + return suggestedAnswersBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +       * The answer options provided to client for the follow-up question.
    +       * 
    + * + * + * repeated .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer suggested_answers = 2; + * + */ + public int getSuggestedAnswersCount() { + if (suggestedAnswersBuilder_ == null) { + return suggestedAnswers_.size(); + } else { + return suggestedAnswersBuilder_.getCount(); + } + } + + /** + * + * + *
    +       * The answer options provided to client for the follow-up question.
    +       * 
    + * + * + * repeated .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer suggested_answers = 2; + * + */ + public com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer + getSuggestedAnswers(int index) { + if (suggestedAnswersBuilder_ == null) { + return suggestedAnswers_.get(index); + } else { + return suggestedAnswersBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +       * The answer options provided to client for the follow-up question.
    +       * 
    + * + * + * repeated .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer suggested_answers = 2; + * + */ + public Builder setSuggestedAnswers( + int index, + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer + value) { + if (suggestedAnswersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSuggestedAnswersIsMutable(); + suggestedAnswers_.set(index, value); + onChanged(); + } else { + suggestedAnswersBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +       * The answer options provided to client for the follow-up question.
    +       * 
    + * + * + * repeated .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer suggested_answers = 2; + * + */ + public Builder setSuggestedAnswers( + int index, + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer + .Builder + builderForValue) { + if (suggestedAnswersBuilder_ == null) { + ensureSuggestedAnswersIsMutable(); + suggestedAnswers_.set(index, builderForValue.build()); + onChanged(); + } else { + suggestedAnswersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +       * The answer options provided to client for the follow-up question.
    +       * 
    + * + * + * repeated .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer suggested_answers = 2; + * + */ + public Builder addSuggestedAnswers( + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer + value) { + if (suggestedAnswersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSuggestedAnswersIsMutable(); + suggestedAnswers_.add(value); + onChanged(); + } else { + suggestedAnswersBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +       * The answer options provided to client for the follow-up question.
    +       * 
    + * + * + * repeated .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer suggested_answers = 2; + * + */ + public Builder addSuggestedAnswers( + int index, + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer + value) { + if (suggestedAnswersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSuggestedAnswersIsMutable(); + suggestedAnswers_.add(index, value); + onChanged(); + } else { + suggestedAnswersBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +       * The answer options provided to client for the follow-up question.
    +       * 
    + * + * + * repeated .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer suggested_answers = 2; + * + */ + public Builder addSuggestedAnswers( + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer + .Builder + builderForValue) { + if (suggestedAnswersBuilder_ == null) { + ensureSuggestedAnswersIsMutable(); + suggestedAnswers_.add(builderForValue.build()); + onChanged(); + } else { + suggestedAnswersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +       * The answer options provided to client for the follow-up question.
    +       * 
    + * + * + * repeated .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer suggested_answers = 2; + * + */ + public Builder addSuggestedAnswers( + int index, + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer + .Builder + builderForValue) { + if (suggestedAnswersBuilder_ == null) { + ensureSuggestedAnswersIsMutable(); + suggestedAnswers_.add(index, builderForValue.build()); + onChanged(); + } else { + suggestedAnswersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +       * The answer options provided to client for the follow-up question.
    +       * 
    + * + * + * repeated .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer suggested_answers = 2; + * + */ + public Builder addAllSuggestedAnswers( + java.lang.Iterable< + ? extends + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer> + values) { + if (suggestedAnswersBuilder_ == null) { + ensureSuggestedAnswersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, suggestedAnswers_); + onChanged(); + } else { + suggestedAnswersBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +       * The answer options provided to client for the follow-up question.
    +       * 
    + * + * + * repeated .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer suggested_answers = 2; + * + */ + public Builder clearSuggestedAnswers() { + if (suggestedAnswersBuilder_ == null) { + suggestedAnswers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + suggestedAnswersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +       * The answer options provided to client for the follow-up question.
    +       * 
    + * + * + * repeated .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer suggested_answers = 2; + * + */ + public Builder removeSuggestedAnswers(int index) { + if (suggestedAnswersBuilder_ == null) { + ensureSuggestedAnswersIsMutable(); + suggestedAnswers_.remove(index); + onChanged(); + } else { + suggestedAnswersBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +       * The answer options provided to client for the follow-up question.
    +       * 
    + * + * + * repeated .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer suggested_answers = 2; + * + */ + public com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer.Builder + getSuggestedAnswersBuilder(int index) { + return getSuggestedAnswersFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +       * The answer options provided to client for the follow-up question.
    +       * 
    + * + * + * repeated .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer suggested_answers = 2; + * + */ + public com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswerOrBuilder + getSuggestedAnswersOrBuilder(int index) { + if (suggestedAnswersBuilder_ == null) { + return suggestedAnswers_.get(index); + } else { + return suggestedAnswersBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +       * The answer options provided to client for the follow-up question.
    +       * 
    + * + * + * repeated .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer suggested_answers = 2; + * + */ + public java.util.List< + ? extends + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswerOrBuilder> + getSuggestedAnswersOrBuilderList() { + if (suggestedAnswersBuilder_ != null) { + return suggestedAnswersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(suggestedAnswers_); + } + } + + /** + * + * + *
    +       * The answer options provided to client for the follow-up question.
    +       * 
    + * + * + * repeated .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer suggested_answers = 2; + * + */ + public com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer.Builder + addSuggestedAnswersBuilder() { + return getSuggestedAnswersFieldBuilder() + .addBuilder( + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer.getDefaultInstance()); + } + + /** + * + * + *
    +       * The answer options provided to client for the follow-up question.
    +       * 
    + * + * + * repeated .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer suggested_answers = 2; + * + */ + public com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer.Builder + addSuggestedAnswersBuilder(int index) { + return getSuggestedAnswersFieldBuilder() + .addBuilder( + index, + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer.getDefaultInstance()); + } + + /** + * + * + *
    +       * The answer options provided to client for the follow-up question.
    +       * 
    + * + * + * repeated .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer suggested_answers = 2; + * + */ + public java.util.List< + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer.Builder> + getSuggestedAnswersBuilderList() { + return getSuggestedAnswersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer, + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer.Builder, + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswerOrBuilder> + getSuggestedAnswersFieldBuilder() { + if (suggestedAnswersBuilder_ == null) { + suggestedAnswersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer, + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer.Builder, + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswerOrBuilder>( + suggestedAnswers_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + suggestedAnswers_ = null; + } + return suggestedAnswersBuilder_; + } + + @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.retail.v2.ConversationalSearchResponse.FollowupQuestion) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion) + private static final com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion(); + } + + public static com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FollowupQuestion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.retail.v2.ConversationalSearchResponse.FollowupQuestion + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface RefinedSearchOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * The query to be used for search.
    +     * 
    + * + * string query = 1; + * + * @return The query. + */ + java.lang.String getQuery(); + + /** + * + * + *
    +     * The query to be used for search.
    +     * 
    + * + * string query = 1; + * + * @return The bytes for query. + */ + com.google.protobuf.ByteString getQueryBytes(); + } + + /** + * + * + *
    +   * The proposed refined search for intent-refinement/bundled shopping
    +   * conversation. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +   * refined_query from search response will be populated here.
    +   * 
    + * + * Protobuf type {@code google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch} + */ + public static final class RefinedSearch extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch) + RefinedSearchOrBuilder { + private static final long serialVersionUID = 0L; + + // Use RefinedSearch.newBuilder() to construct. + private RefinedSearch(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RefinedSearch() { + query_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RefinedSearch(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2_ConversationalSearchResponse_RefinedSearch_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2_ConversationalSearchResponse_RefinedSearch_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch.class, + com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch.Builder.class); + } + + public static final int QUERY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object query_ = ""; + + /** + * + * + *
    +     * The query to be used for search.
    +     * 
    + * + * string query = 1; + * + * @return The query. + */ + @java.lang.Override + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } + } + + /** + * + * + *
    +     * The query to be used for search.
    +     * 
    + * + * string query = 1; + * + * @return The bytes for query. + */ + @java.lang.Override + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = 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(query_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); + } + 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(query_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.retail.v2.ConversationalSearchResponse.RefinedSearch)) { + return super.equals(obj); + } + com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch other = + (com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch) obj; + + if (!getQuery().equals(other.getQuery())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch 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.retail.v2.ConversationalSearchResponse.RefinedSearch parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch parseFrom( + 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.retail.v2.ConversationalSearchResponse.RefinedSearch parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch 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.retail.v2.ConversationalSearchResponse.RefinedSearch + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch + 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.retail.v2.ConversationalSearchResponse.RefinedSearch parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch 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.retail.v2.ConversationalSearchResponse.RefinedSearch prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 proposed refined search for intent-refinement/bundled shopping
    +     * conversation. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +     * refined_query from search response will be populated here.
    +     * 
    + * + * Protobuf type {@code google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch) + com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearchOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2_ConversationalSearchResponse_RefinedSearch_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2_ConversationalSearchResponse_RefinedSearch_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch.class, + com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch.Builder + .class); + } + + // Construct using + // com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + query_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2_ConversationalSearchResponse_RefinedSearch_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch + getDefaultInstanceForType() { + return com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch build() { + com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch buildPartial() { + com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch result = + new com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.query_ = query_; + } + } + + @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.retail.v2.ConversationalSearchResponse.RefinedSearch) { + return mergeFrom( + (com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch other) { + if (other + == com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch + .getDefaultInstance()) return this; + if (!other.getQuery().isEmpty()) { + query_ = other.query_; + 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: + { + query_ = 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 query_ = ""; + + /** + * + * + *
    +       * The query to be used for search.
    +       * 
    + * + * string query = 1; + * + * @return The query. + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +       * The query to be used for search.
    +       * 
    + * + * string query = 1; + * + * @return The bytes for query. + */ + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +       * The query to be used for search.
    +       * 
    + * + * string query = 1; + * + * @param value The query to set. + * @return This builder for chaining. + */ + public Builder setQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + query_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +       * The query to be used for search.
    +       * 
    + * + * string query = 1; + * + * @return This builder for chaining. + */ + public Builder clearQuery() { + query_ = getDefaultInstance().getQuery(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +       * The query to be used for search.
    +       * 
    + * + * string query = 1; + * + * @param value The bytes for query to set. + * @return This builder for chaining. + */ + public Builder setQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + query_ = 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.retail.v2.ConversationalSearchResponse.RefinedSearch) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch) + private static final com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch(); + } + + public static com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RefinedSearch parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.retail.v2.ConversationalSearchResponse.RefinedSearch + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ConversationalFilteringResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * The conversational filtering question.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion followup_question = 1; + * + * + * @return Whether the followupQuestion field is set. + */ + boolean hasFollowupQuestion(); + + /** + * + * + *
    +     * The conversational filtering question.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion followup_question = 1; + * + * + * @return The followupQuestion. + */ + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion getFollowupQuestion(); + + /** + * + * + *
    +     * The conversational filtering question.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion followup_question = 1; + * + */ + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestionOrBuilder + getFollowupQuestionOrBuilder(); + + /** + * + * + *
    +     * This is the incremental additional filters implied from the current
    +     * user answer. User should add the suggested addition filters to the
    +     * previous [ConversationalSearchRequest.search_params.filter][] and
    +     * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter],  and
    +     * use the merged filter in the follow up requests.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult.AdditionalFilter additional_filter = 2; + * + * + * @return Whether the additionalFilter field is set. + */ + boolean hasAdditionalFilter(); + + /** + * + * + *
    +     * This is the incremental additional filters implied from the current
    +     * user answer. User should add the suggested addition filters to the
    +     * previous [ConversationalSearchRequest.search_params.filter][] and
    +     * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter],  and
    +     * use the merged filter in the follow up requests.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult.AdditionalFilter additional_filter = 2; + * + * + * @return The additionalFilter. + */ + com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + .AdditionalFilter + getAdditionalFilter(); + + /** + * + * + *
    +     * This is the incremental additional filters implied from the current
    +     * user answer. User should add the suggested addition filters to the
    +     * previous [ConversationalSearchRequest.search_params.filter][] and
    +     * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter],  and
    +     * use the merged filter in the follow up requests.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult.AdditionalFilter additional_filter = 2; + * + */ + com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + .AdditionalFilterOrBuilder + getAdditionalFilterOrBuilder(); + } + + /** + * + * + *
    +   * This field specifies all related information that is needed on client
    +   * side for UI rendering of conversational filtering search.
    +   * 
    + * + * Protobuf type {@code + * google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult} + */ + public static final class ConversationalFilteringResult + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult) + ConversationalFilteringResultOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ConversationalFilteringResult.newBuilder() to construct. + private ConversationalFilteringResult( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ConversationalFilteringResult() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ConversationalFilteringResult(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2_ConversationalSearchResponse_ConversationalFilteringResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2_ConversationalSearchResponse_ConversationalFilteringResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + .class, + com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + .Builder.class); + } + + public interface AdditionalFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult.AdditionalFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +       * Product attribute value, including an attribute key and an
    +       * attribute value. Other types can be added here in the future.
    +       * 
    + * + * .google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1; + * + * @return Whether the productAttributeValue field is set. + */ + boolean hasProductAttributeValue(); + + /** + * + * + *
    +       * Product attribute value, including an attribute key and an
    +       * attribute value. Other types can be added here in the future.
    +       * 
    + * + * .google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1; + * + * @return The productAttributeValue. + */ + com.google.cloud.retail.v2.ProductAttributeValue getProductAttributeValue(); + + /** + * + * + *
    +       * Product attribute value, including an attribute key and an
    +       * attribute value. Other types can be added here in the future.
    +       * 
    + * + * .google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1; + */ + com.google.cloud.retail.v2.ProductAttributeValueOrBuilder getProductAttributeValueOrBuilder(); + } + + /** + * + * + *
    +     * Additional filter that client side need to apply.
    +     * 
    + * + * Protobuf type {@code + * google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult.AdditionalFilter} + */ + public static final class AdditionalFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult.AdditionalFilter) + AdditionalFilterOrBuilder { + private static final long serialVersionUID = 0L; + + // Use AdditionalFilter.newBuilder() to construct. + private AdditionalFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AdditionalFilter() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AdditionalFilter(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2_ConversationalSearchResponse_ConversationalFilteringResult_AdditionalFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2_ConversationalSearchResponse_ConversationalFilteringResult_AdditionalFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter.class, + com.google.cloud.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter.Builder.class); + } + + private int bitField0_; + public static final int PRODUCT_ATTRIBUTE_VALUE_FIELD_NUMBER = 1; + private com.google.cloud.retail.v2.ProductAttributeValue productAttributeValue_; + + /** + * + * + *
    +       * Product attribute value, including an attribute key and an
    +       * attribute value. Other types can be added here in the future.
    +       * 
    + * + * .google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1; + * + * @return Whether the productAttributeValue field is set. + */ + @java.lang.Override + public boolean hasProductAttributeValue() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +       * Product attribute value, including an attribute key and an
    +       * attribute value. Other types can be added here in the future.
    +       * 
    + * + * .google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1; + * + * @return The productAttributeValue. + */ + @java.lang.Override + public com.google.cloud.retail.v2.ProductAttributeValue getProductAttributeValue() { + return productAttributeValue_ == null + ? com.google.cloud.retail.v2.ProductAttributeValue.getDefaultInstance() + : productAttributeValue_; + } + + /** + * + * + *
    +       * Product attribute value, including an attribute key and an
    +       * attribute value. Other types can be added here in the future.
    +       * 
    + * + * .google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1; + */ + @java.lang.Override + public com.google.cloud.retail.v2.ProductAttributeValueOrBuilder + getProductAttributeValueOrBuilder() { + return productAttributeValue_ == null + ? com.google.cloud.retail.v2.ProductAttributeValue.getDefaultInstance() + : productAttributeValue_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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, getProductAttributeValue()); + } + 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, getProductAttributeValue()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + .AdditionalFilter)) { + return super.equals(obj); + } + com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + .AdditionalFilter + other = + (com.google.cloud.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter) + obj; + + if (hasProductAttributeValue() != other.hasProductAttributeValue()) return false; + if (hasProductAttributeValue()) { + if (!getProductAttributeValue().equals(other.getProductAttributeValue())) 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 (hasProductAttributeValue()) { + hash = (37 * hash) + PRODUCT_ATTRIBUTE_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getProductAttributeValue().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter + 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.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter + parseFrom( + 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.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter + 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.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter + 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.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter + 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.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + .AdditionalFilter + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
    +       * Additional filter that client side need to apply.
    +       * 
    + * + * Protobuf type {@code + * google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult.AdditionalFilter} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult.AdditionalFilter) + com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + .AdditionalFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2_ConversationalSearchResponse_ConversationalFilteringResult_AdditionalFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2_ConversationalSearchResponse_ConversationalFilteringResult_AdditionalFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter.class, + com.google.cloud.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter.Builder.class); + } + + // Construct using + // com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult.AdditionalFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getProductAttributeValueFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + productAttributeValue_ = null; + if (productAttributeValueBuilder_ != null) { + productAttributeValueBuilder_.dispose(); + productAttributeValueBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2_ConversationalSearchResponse_ConversationalFilteringResult_AdditionalFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + .AdditionalFilter + getDefaultInstanceForType() { + return com.google.cloud.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + .AdditionalFilter + build() { + com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + .AdditionalFilter + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + .AdditionalFilter + buildPartial() { + com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + .AdditionalFilter + result = + new com.google.cloud.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + .AdditionalFilter + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.productAttributeValue_ = + productAttributeValueBuilder_ == null + ? productAttributeValue_ + : productAttributeValueBuilder_.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.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + .AdditionalFilter) { + return mergeFrom( + (com.google.cloud.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + .AdditionalFilter + other) { + if (other + == com.google.cloud.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter.getDefaultInstance()) return this; + if (other.hasProductAttributeValue()) { + mergeProductAttributeValue(other.getProductAttributeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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( + getProductAttributeValueFieldBuilder().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.retail.v2.ProductAttributeValue productAttributeValue_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.ProductAttributeValue, + com.google.cloud.retail.v2.ProductAttributeValue.Builder, + com.google.cloud.retail.v2.ProductAttributeValueOrBuilder> + productAttributeValueBuilder_; + + /** + * + * + *
    +         * Product attribute value, including an attribute key and an
    +         * attribute value. Other types can be added here in the future.
    +         * 
    + * + * .google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1; + * + * @return Whether the productAttributeValue field is set. + */ + public boolean hasProductAttributeValue() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +         * Product attribute value, including an attribute key and an
    +         * attribute value. Other types can be added here in the future.
    +         * 
    + * + * .google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1; + * + * @return The productAttributeValue. + */ + public com.google.cloud.retail.v2.ProductAttributeValue getProductAttributeValue() { + if (productAttributeValueBuilder_ == null) { + return productAttributeValue_ == null + ? com.google.cloud.retail.v2.ProductAttributeValue.getDefaultInstance() + : productAttributeValue_; + } else { + return productAttributeValueBuilder_.getMessage(); + } + } + + /** + * + * + *
    +         * Product attribute value, including an attribute key and an
    +         * attribute value. Other types can be added here in the future.
    +         * 
    + * + * .google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1; + */ + public Builder setProductAttributeValue( + com.google.cloud.retail.v2.ProductAttributeValue value) { + if (productAttributeValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + productAttributeValue_ = value; + } else { + productAttributeValueBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +         * Product attribute value, including an attribute key and an
    +         * attribute value. Other types can be added here in the future.
    +         * 
    + * + * .google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1; + */ + public Builder setProductAttributeValue( + com.google.cloud.retail.v2.ProductAttributeValue.Builder builderForValue) { + if (productAttributeValueBuilder_ == null) { + productAttributeValue_ = builderForValue.build(); + } else { + productAttributeValueBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +         * Product attribute value, including an attribute key and an
    +         * attribute value. Other types can be added here in the future.
    +         * 
    + * + * .google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1; + */ + public Builder mergeProductAttributeValue( + com.google.cloud.retail.v2.ProductAttributeValue value) { + if (productAttributeValueBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && productAttributeValue_ != null + && productAttributeValue_ + != com.google.cloud.retail.v2.ProductAttributeValue.getDefaultInstance()) { + getProductAttributeValueBuilder().mergeFrom(value); + } else { + productAttributeValue_ = value; + } + } else { + productAttributeValueBuilder_.mergeFrom(value); + } + if (productAttributeValue_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
    +         * Product attribute value, including an attribute key and an
    +         * attribute value. Other types can be added here in the future.
    +         * 
    + * + * .google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1; + */ + public Builder clearProductAttributeValue() { + bitField0_ = (bitField0_ & ~0x00000001); + productAttributeValue_ = null; + if (productAttributeValueBuilder_ != null) { + productAttributeValueBuilder_.dispose(); + productAttributeValueBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +         * Product attribute value, including an attribute key and an
    +         * attribute value. Other types can be added here in the future.
    +         * 
    + * + * .google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1; + */ + public com.google.cloud.retail.v2.ProductAttributeValue.Builder + getProductAttributeValueBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getProductAttributeValueFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +         * Product attribute value, including an attribute key and an
    +         * attribute value. Other types can be added here in the future.
    +         * 
    + * + * .google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1; + */ + public com.google.cloud.retail.v2.ProductAttributeValueOrBuilder + getProductAttributeValueOrBuilder() { + if (productAttributeValueBuilder_ != null) { + return productAttributeValueBuilder_.getMessageOrBuilder(); + } else { + return productAttributeValue_ == null + ? com.google.cloud.retail.v2.ProductAttributeValue.getDefaultInstance() + : productAttributeValue_; + } + } + + /** + * + * + *
    +         * Product attribute value, including an attribute key and an
    +         * attribute value. Other types can be added here in the future.
    +         * 
    + * + * .google.cloud.retail.v2.ProductAttributeValue product_attribute_value = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.ProductAttributeValue, + com.google.cloud.retail.v2.ProductAttributeValue.Builder, + com.google.cloud.retail.v2.ProductAttributeValueOrBuilder> + getProductAttributeValueFieldBuilder() { + if (productAttributeValueBuilder_ == null) { + productAttributeValueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.ProductAttributeValue, + com.google.cloud.retail.v2.ProductAttributeValue.Builder, + com.google.cloud.retail.v2.ProductAttributeValueOrBuilder>( + getProductAttributeValue(), getParentForChildren(), isClean()); + productAttributeValue_ = null; + } + return productAttributeValueBuilder_; + } + + @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.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult.AdditionalFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult.AdditionalFilter) + private static final com.google.cloud.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter(); + } + + public static com.google.cloud.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdditionalFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + .AdditionalFilter + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int FOLLOWUP_QUESTION_FIELD_NUMBER = 1; + private com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + followupQuestion_; + + /** + * + * + *
    +     * The conversational filtering question.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion followup_question = 1; + * + * + * @return Whether the followupQuestion field is set. + */ + @java.lang.Override + public boolean hasFollowupQuestion() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +     * The conversational filtering question.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion followup_question = 1; + * + * + * @return The followupQuestion. + */ + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + getFollowupQuestion() { + return followupQuestion_ == null + ? com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .getDefaultInstance() + : followupQuestion_; + } + + /** + * + * + *
    +     * The conversational filtering question.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion followup_question = 1; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestionOrBuilder + getFollowupQuestionOrBuilder() { + return followupQuestion_ == null + ? com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .getDefaultInstance() + : followupQuestion_; + } + + public static final int ADDITIONAL_FILTER_FIELD_NUMBER = 2; + private com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + .AdditionalFilter + additionalFilter_; + + /** + * + * + *
    +     * This is the incremental additional filters implied from the current
    +     * user answer. User should add the suggested addition filters to the
    +     * previous [ConversationalSearchRequest.search_params.filter][] and
    +     * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter],  and
    +     * use the merged filter in the follow up requests.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult.AdditionalFilter additional_filter = 2; + * + * + * @return Whether the additionalFilter field is set. + */ + @java.lang.Override + public boolean hasAdditionalFilter() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * This is the incremental additional filters implied from the current
    +     * user answer. User should add the suggested addition filters to the
    +     * previous [ConversationalSearchRequest.search_params.filter][] and
    +     * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter],  and
    +     * use the merged filter in the follow up requests.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult.AdditionalFilter additional_filter = 2; + * + * + * @return The additionalFilter. + */ + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + .AdditionalFilter + getAdditionalFilter() { + return additionalFilter_ == null + ? com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + .AdditionalFilter.getDefaultInstance() + : additionalFilter_; + } + + /** + * + * + *
    +     * This is the incremental additional filters implied from the current
    +     * user answer. User should add the suggested addition filters to the
    +     * previous [ConversationalSearchRequest.search_params.filter][] and
    +     * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter],  and
    +     * use the merged filter in the follow up requests.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult.AdditionalFilter additional_filter = 2; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + .AdditionalFilterOrBuilder + getAdditionalFilterOrBuilder() { + return additionalFilter_ == null + ? com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + .AdditionalFilter.getDefaultInstance() + : additionalFilter_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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, getFollowupQuestion()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getAdditionalFilter()); + } + 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, getFollowupQuestion()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAdditionalFilter()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult)) { + return super.equals(obj); + } + com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult other = + (com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult) + obj; + + if (hasFollowupQuestion() != other.hasFollowupQuestion()) return false; + if (hasFollowupQuestion()) { + if (!getFollowupQuestion().equals(other.getFollowupQuestion())) return false; + } + if (hasAdditionalFilter() != other.hasAdditionalFilter()) return false; + if (hasAdditionalFilter()) { + if (!getAdditionalFilter().equals(other.getAdditionalFilter())) 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 (hasFollowupQuestion()) { + hash = (37 * hash) + FOLLOWUP_QUESTION_FIELD_NUMBER; + hash = (53 * hash) + getFollowupQuestion().hashCode(); + } + if (hasAdditionalFilter()) { + hash = (37 * hash) + ADDITIONAL_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalFilter().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResult + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResult + 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.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResult + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResult + parseFrom( + 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.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResult + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResult + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResult + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResult + 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.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResult + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResult + 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.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResult + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResult + 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.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
    +     * This field specifies all related information that is needed on client
    +     * side for UI rendering of conversational filtering search.
    +     * 
    + * + * Protobuf type {@code + * google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult) + com.google.cloud.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2_ConversationalSearchResponse_ConversationalFilteringResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2_ConversationalSearchResponse_ConversationalFilteringResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResult.class, + com.google.cloud.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResult.Builder.class); + } + + // Construct using + // com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getFollowupQuestionFieldBuilder(); + getAdditionalFilterFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + followupQuestion_ = null; + if (followupQuestionBuilder_ != null) { + followupQuestionBuilder_.dispose(); + followupQuestionBuilder_ = null; + } + additionalFilter_ = null; + if (additionalFilterBuilder_ != null) { + additionalFilterBuilder_.dispose(); + additionalFilterBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2_ConversationalSearchResponse_ConversationalFilteringResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + getDefaultInstanceForType() { + return com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + build() { + com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + buildPartial() { + com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + result = + new com.google.cloud.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResult(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.followupQuestion_ = + followupQuestionBuilder_ == null + ? followupQuestion_ + : followupQuestionBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.additionalFilter_ = + additionalFilterBuilder_ == null + ? additionalFilter_ + : additionalFilterBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult) { + return mergeFrom( + (com.google.cloud.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResult) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + other) { + if (other + == com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + .getDefaultInstance()) return this; + if (other.hasFollowupQuestion()) { + mergeFollowupQuestion(other.getFollowupQuestion()); + } + if (other.hasAdditionalFilter()) { + mergeAdditionalFilter(other.getAdditionalFilter()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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( + getFollowupQuestionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getAdditionalFilterFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + followupQuestion_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion, + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.Builder, + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestionOrBuilder> + followupQuestionBuilder_; + + /** + * + * + *
    +       * The conversational filtering question.
    +       * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion followup_question = 1; + * + * + * @return Whether the followupQuestion field is set. + */ + public boolean hasFollowupQuestion() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +       * The conversational filtering question.
    +       * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion followup_question = 1; + * + * + * @return The followupQuestion. + */ + public com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + getFollowupQuestion() { + if (followupQuestionBuilder_ == null) { + return followupQuestion_ == null + ? com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .getDefaultInstance() + : followupQuestion_; + } else { + return followupQuestionBuilder_.getMessage(); + } + } + + /** + * + * + *
    +       * The conversational filtering question.
    +       * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion followup_question = 1; + * + */ + public Builder setFollowupQuestion( + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion value) { + if (followupQuestionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + followupQuestion_ = value; + } else { + followupQuestionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +       * The conversational filtering question.
    +       * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion followup_question = 1; + * + */ + public Builder setFollowupQuestion( + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.Builder + builderForValue) { + if (followupQuestionBuilder_ == null) { + followupQuestion_ = builderForValue.build(); + } else { + followupQuestionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +       * The conversational filtering question.
    +       * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion followup_question = 1; + * + */ + public Builder mergeFollowupQuestion( + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion value) { + if (followupQuestionBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && followupQuestion_ != null + && followupQuestion_ + != com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .getDefaultInstance()) { + getFollowupQuestionBuilder().mergeFrom(value); + } else { + followupQuestion_ = value; + } + } else { + followupQuestionBuilder_.mergeFrom(value); + } + if (followupQuestion_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
    +       * The conversational filtering question.
    +       * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion followup_question = 1; + * + */ + public Builder clearFollowupQuestion() { + bitField0_ = (bitField0_ & ~0x00000001); + followupQuestion_ = null; + if (followupQuestionBuilder_ != null) { + followupQuestionBuilder_.dispose(); + followupQuestionBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +       * The conversational filtering question.
    +       * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion followup_question = 1; + * + */ + public com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.Builder + getFollowupQuestionBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getFollowupQuestionFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +       * The conversational filtering question.
    +       * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion followup_question = 1; + * + */ + public com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestionOrBuilder + getFollowupQuestionOrBuilder() { + if (followupQuestionBuilder_ != null) { + return followupQuestionBuilder_.getMessageOrBuilder(); + } else { + return followupQuestion_ == null + ? com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .getDefaultInstance() + : followupQuestion_; + } + } + + /** + * + * + *
    +       * The conversational filtering question.
    +       * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion followup_question = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion, + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.Builder, + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestionOrBuilder> + getFollowupQuestionFieldBuilder() { + if (followupQuestionBuilder_ == null) { + followupQuestionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion, + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.Builder, + com.google.cloud.retail.v2.ConversationalSearchResponse + .FollowupQuestionOrBuilder>( + getFollowupQuestion(), getParentForChildren(), isClean()); + followupQuestion_ = null; + } + return followupQuestionBuilder_; + } + + private com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + .AdditionalFilter + additionalFilter_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + .AdditionalFilter, + com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + .AdditionalFilter.Builder, + com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + .AdditionalFilterOrBuilder> + additionalFilterBuilder_; + + /** + * + * + *
    +       * This is the incremental additional filters implied from the current
    +       * user answer. User should add the suggested addition filters to the
    +       * previous [ConversationalSearchRequest.search_params.filter][] and
    +       * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter],  and
    +       * use the merged filter in the follow up requests.
    +       * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult.AdditionalFilter additional_filter = 2; + * + * + * @return Whether the additionalFilter field is set. + */ + public boolean hasAdditionalFilter() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +       * This is the incremental additional filters implied from the current
    +       * user answer. User should add the suggested addition filters to the
    +       * previous [ConversationalSearchRequest.search_params.filter][] and
    +       * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter],  and
    +       * use the merged filter in the follow up requests.
    +       * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult.AdditionalFilter additional_filter = 2; + * + * + * @return The additionalFilter. + */ + public com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + .AdditionalFilter + getAdditionalFilter() { + if (additionalFilterBuilder_ == null) { + return additionalFilter_ == null + ? com.google.cloud.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter.getDefaultInstance() + : additionalFilter_; + } else { + return additionalFilterBuilder_.getMessage(); + } + } + + /** + * + * + *
    +       * This is the incremental additional filters implied from the current
    +       * user answer. User should add the suggested addition filters to the
    +       * previous [ConversationalSearchRequest.search_params.filter][] and
    +       * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter],  and
    +       * use the merged filter in the follow up requests.
    +       * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult.AdditionalFilter additional_filter = 2; + * + */ + public Builder setAdditionalFilter( + com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + .AdditionalFilter + value) { + if (additionalFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + additionalFilter_ = value; + } else { + additionalFilterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +       * This is the incremental additional filters implied from the current
    +       * user answer. User should add the suggested addition filters to the
    +       * previous [ConversationalSearchRequest.search_params.filter][] and
    +       * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter],  and
    +       * use the merged filter in the follow up requests.
    +       * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult.AdditionalFilter additional_filter = 2; + * + */ + public Builder setAdditionalFilter( + com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + .AdditionalFilter.Builder + builderForValue) { + if (additionalFilterBuilder_ == null) { + additionalFilter_ = builderForValue.build(); + } else { + additionalFilterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +       * This is the incremental additional filters implied from the current
    +       * user answer. User should add the suggested addition filters to the
    +       * previous [ConversationalSearchRequest.search_params.filter][] and
    +       * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter],  and
    +       * use the merged filter in the follow up requests.
    +       * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult.AdditionalFilter additional_filter = 2; + * + */ + public Builder mergeAdditionalFilter( + com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + .AdditionalFilter + value) { + if (additionalFilterBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && additionalFilter_ != null + && additionalFilter_ + != com.google.cloud.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter.getDefaultInstance()) { + getAdditionalFilterBuilder().mergeFrom(value); + } else { + additionalFilter_ = value; + } + } else { + additionalFilterBuilder_.mergeFrom(value); + } + if (additionalFilter_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
    +       * This is the incremental additional filters implied from the current
    +       * user answer. User should add the suggested addition filters to the
    +       * previous [ConversationalSearchRequest.search_params.filter][] and
    +       * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter],  and
    +       * use the merged filter in the follow up requests.
    +       * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult.AdditionalFilter additional_filter = 2; + * + */ + public Builder clearAdditionalFilter() { + bitField0_ = (bitField0_ & ~0x00000002); + additionalFilter_ = null; + if (additionalFilterBuilder_ != null) { + additionalFilterBuilder_.dispose(); + additionalFilterBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +       * This is the incremental additional filters implied from the current
    +       * user answer. User should add the suggested addition filters to the
    +       * previous [ConversationalSearchRequest.search_params.filter][] and
    +       * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter],  and
    +       * use the merged filter in the follow up requests.
    +       * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult.AdditionalFilter additional_filter = 2; + * + */ + public com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + .AdditionalFilter.Builder + getAdditionalFilterBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getAdditionalFilterFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +       * This is the incremental additional filters implied from the current
    +       * user answer. User should add the suggested addition filters to the
    +       * previous [ConversationalSearchRequest.search_params.filter][] and
    +       * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter],  and
    +       * use the merged filter in the follow up requests.
    +       * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult.AdditionalFilter additional_filter = 2; + * + */ + public com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + .AdditionalFilterOrBuilder + getAdditionalFilterOrBuilder() { + if (additionalFilterBuilder_ != null) { + return additionalFilterBuilder_.getMessageOrBuilder(); + } else { + return additionalFilter_ == null + ? com.google.cloud.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter.getDefaultInstance() + : additionalFilter_; + } + } + + /** + * + * + *
    +       * This is the incremental additional filters implied from the current
    +       * user answer. User should add the suggested addition filters to the
    +       * previous [ConversationalSearchRequest.search_params.filter][] and
    +       * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter],  and
    +       * use the merged filter in the follow up requests.
    +       * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult.AdditionalFilter additional_filter = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + .AdditionalFilter, + com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + .AdditionalFilter.Builder, + com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + .AdditionalFilterOrBuilder> + getAdditionalFilterFieldBuilder() { + if (additionalFilterBuilder_ == null) { + additionalFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter, + com.google.cloud.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter.Builder, + com.google.cloud.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilterOrBuilder>( + getAdditionalFilter(), getParentForChildren(), isClean()); + additionalFilter_ = null; + } + return additionalFilterBuilder_; + } + + @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.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult) + private static final com.google.cloud.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResult + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResult(); + } + + public static com.google.cloud.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResult + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConversationalFilteringResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int USER_QUERY_TYPES_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList userQueryTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
    +   * The types Retail classifies the search query as.
    +   *
    +   * Supported values are:
    +   *
    +   * - "ORDER_SUPPORT"
    +   * - "SIMPLE_PRODUCT_SEARCH"
    +   * - "INTENT_REFINEMENT"
    +   * - "PRODUCT_DETAILS"
    +   * - "PRODUCT_COMPARISON"
    +   * - "DEALS_AND_COUPONS"
    +   * - "STORE_RELEVANT"
    +   * - "BLOCKLISTED"
    +   * - "BEST_PRODUCT"
    +   * - "RETAIL_SUPPORT"
    +   * - "DISABLED"
    +   * 
    + * + * repeated string user_query_types = 10; + * + * @return A list containing the userQueryTypes. + */ + public com.google.protobuf.ProtocolStringList getUserQueryTypesList() { + return userQueryTypes_; + } + + /** + * + * + *
    +   * The types Retail classifies the search query as.
    +   *
    +   * Supported values are:
    +   *
    +   * - "ORDER_SUPPORT"
    +   * - "SIMPLE_PRODUCT_SEARCH"
    +   * - "INTENT_REFINEMENT"
    +   * - "PRODUCT_DETAILS"
    +   * - "PRODUCT_COMPARISON"
    +   * - "DEALS_AND_COUPONS"
    +   * - "STORE_RELEVANT"
    +   * - "BLOCKLISTED"
    +   * - "BEST_PRODUCT"
    +   * - "RETAIL_SUPPORT"
    +   * - "DISABLED"
    +   * 
    + * + * repeated string user_query_types = 10; + * + * @return The count of userQueryTypes. + */ + public int getUserQueryTypesCount() { + return userQueryTypes_.size(); + } + + /** + * + * + *
    +   * The types Retail classifies the search query as.
    +   *
    +   * Supported values are:
    +   *
    +   * - "ORDER_SUPPORT"
    +   * - "SIMPLE_PRODUCT_SEARCH"
    +   * - "INTENT_REFINEMENT"
    +   * - "PRODUCT_DETAILS"
    +   * - "PRODUCT_COMPARISON"
    +   * - "DEALS_AND_COUPONS"
    +   * - "STORE_RELEVANT"
    +   * - "BLOCKLISTED"
    +   * - "BEST_PRODUCT"
    +   * - "RETAIL_SUPPORT"
    +   * - "DISABLED"
    +   * 
    + * + * repeated string user_query_types = 10; + * + * @param index The index of the element to return. + * @return The userQueryTypes at the given index. + */ + public java.lang.String getUserQueryTypes(int index) { + return userQueryTypes_.get(index); + } + + /** + * + * + *
    +   * The types Retail classifies the search query as.
    +   *
    +   * Supported values are:
    +   *
    +   * - "ORDER_SUPPORT"
    +   * - "SIMPLE_PRODUCT_SEARCH"
    +   * - "INTENT_REFINEMENT"
    +   * - "PRODUCT_DETAILS"
    +   * - "PRODUCT_COMPARISON"
    +   * - "DEALS_AND_COUPONS"
    +   * - "STORE_RELEVANT"
    +   * - "BLOCKLISTED"
    +   * - "BEST_PRODUCT"
    +   * - "RETAIL_SUPPORT"
    +   * - "DISABLED"
    +   * 
    + * + * repeated string user_query_types = 10; + * + * @param index The index of the value to return. + * @return The bytes of the userQueryTypes at the given index. + */ + public com.google.protobuf.ByteString getUserQueryTypesBytes(int index) { + return userQueryTypes_.getByteString(index); + } + + public static final int CONVERSATIONAL_TEXT_RESPONSE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object conversationalTextResponse_ = ""; + + /** + * + * + *
    +   * The conversational answer-based text response generated by the Server.
    +   * 
    + * + * string conversational_text_response = 2; + * + * @return The conversationalTextResponse. + */ + @java.lang.Override + public java.lang.String getConversationalTextResponse() { + java.lang.Object ref = conversationalTextResponse_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + conversationalTextResponse_ = s; + return s; + } + } + + /** + * + * + *
    +   * The conversational answer-based text response generated by the Server.
    +   * 
    + * + * string conversational_text_response = 2; + * + * @return The bytes for conversationalTextResponse. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConversationalTextResponseBytes() { + java.lang.Object ref = conversationalTextResponse_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + conversationalTextResponse_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FOLLOWUP_QUESTION_FIELD_NUMBER = 3; + private com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + followupQuestion_; + + /** + * + * + *
    +   * The conversational followup question generated for Intent refinement.
    +   * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion followup_question = 3; + * + * + * @return Whether the followupQuestion field is set. + */ + @java.lang.Override + public boolean hasFollowupQuestion() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * The conversational followup question generated for Intent refinement.
    +   * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion followup_question = 3; + * + * + * @return The followupQuestion. + */ + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + getFollowupQuestion() { + return followupQuestion_ == null + ? com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .getDefaultInstance() + : followupQuestion_; + } + + /** + * + * + *
    +   * The conversational followup question generated for Intent refinement.
    +   * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion followup_question = 3; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestionOrBuilder + getFollowupQuestionOrBuilder() { + return followupQuestion_ == null + ? com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .getDefaultInstance() + : followupQuestion_; + } + + public static final int CONVERSATION_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object conversationId_ = ""; + + /** + * + * + *
    +   * Conversation UUID. This field will be stored in client side storage to
    +   * maintain the conversation session with server and will be used for next
    +   * search request's
    +   * [ConversationalSearchRequest.conversation_id][google.cloud.retail.v2.ConversationalSearchRequest.conversation_id]
    +   * to restore conversation state in server.
    +   * 
    + * + * string conversation_id = 4; + * + * @return The conversationId. + */ + @java.lang.Override + public java.lang.String getConversationId() { + java.lang.Object ref = conversationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + conversationId_ = s; + return s; + } + } + + /** + * + * + *
    +   * Conversation UUID. This field will be stored in client side storage to
    +   * maintain the conversation session with server and will be used for next
    +   * search request's
    +   * [ConversationalSearchRequest.conversation_id][google.cloud.retail.v2.ConversationalSearchRequest.conversation_id]
    +   * to restore conversation state in server.
    +   * 
    + * + * string conversation_id = 4; + * + * @return The bytes for conversationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConversationIdBytes() { + java.lang.Object ref = conversationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + conversationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REFINED_SEARCH_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private java.util.List + refinedSearch_; + + /** + * + * + *
    +   * The proposed refined search queries. They can be used to fetch the relevant
    +   * search results. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +   * refined_query from search response will be populated here.
    +   * 
    + * + * + * repeated .google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch refined_search = 6; + * + */ + @java.lang.Override + public java.util.List + getRefinedSearchList() { + return refinedSearch_; + } + + /** + * + * + *
    +   * The proposed refined search queries. They can be used to fetch the relevant
    +   * search results. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +   * refined_query from search response will be populated here.
    +   * 
    + * + * + * repeated .google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch refined_search = 6; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearchOrBuilder> + getRefinedSearchOrBuilderList() { + return refinedSearch_; + } + + /** + * + * + *
    +   * The proposed refined search queries. They can be used to fetch the relevant
    +   * search results. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +   * refined_query from search response will be populated here.
    +   * 
    + * + * + * repeated .google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch refined_search = 6; + * + */ + @java.lang.Override + public int getRefinedSearchCount() { + return refinedSearch_.size(); + } + + /** + * + * + *
    +   * The proposed refined search queries. They can be used to fetch the relevant
    +   * search results. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +   * refined_query from search response will be populated here.
    +   * 
    + * + * + * repeated .google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch refined_search = 6; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch getRefinedSearch( + int index) { + return refinedSearch_.get(index); + } + + /** + * + * + *
    +   * The proposed refined search queries. They can be used to fetch the relevant
    +   * search results. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +   * refined_query from search response will be populated here.
    +   * 
    + * + * + * repeated .google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch refined_search = 6; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearchOrBuilder + getRefinedSearchOrBuilder(int index) { + return refinedSearch_.get(index); + } + + public static final int CONVERSATIONAL_FILTERING_RESULT_FIELD_NUMBER = 7; + private com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + conversationalFilteringResult_; + + /** + * + * + *
    +   * This field specifies all related information that is needed on client
    +   * side for UI rendering of conversational filtering search.
    +   * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult conversational_filtering_result = 7; + * + * + * @return Whether the conversationalFilteringResult field is set. + */ + @java.lang.Override + public boolean hasConversationalFilteringResult() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +   * This field specifies all related information that is needed on client
    +   * side for UI rendering of conversational filtering search.
    +   * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult conversational_filtering_result = 7; + * + * + * @return The conversationalFilteringResult. + */ + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + getConversationalFilteringResult() { + return conversationalFilteringResult_ == null + ? com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + .getDefaultInstance() + : conversationalFilteringResult_; + } + + /** + * + * + *
    +   * This field specifies all related information that is needed on client
    +   * side for UI rendering of conversational filtering search.
    +   * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult conversational_filtering_result = 7; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResultOrBuilder + getConversationalFilteringResultOrBuilder() { + return conversationalFilteringResult_ == null + ? com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + .getDefaultInstance() + : conversationalFilteringResult_; + } + + public static final int STATE_FIELD_NUMBER = 9; + private int state_ = 0; + + /** + * + * + *
    +   * Output only. The state of the response generation.
    +   * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
    +   * Output only. The state of the response generation.
    +   * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchResponse.State getState() { + com.google.cloud.retail.v2.ConversationalSearchResponse.State result = + com.google.cloud.retail.v2.ConversationalSearchResponse.State.forNumber(state_); + return result == null + ? com.google.cloud.retail.v2.ConversationalSearchResponse.State.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(conversationalTextResponse_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, conversationalTextResponse_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getFollowupQuestion()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(conversationId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, conversationId_); + } + for (int i = 0; i < refinedSearch_.size(); i++) { + output.writeMessage(6, refinedSearch_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(7, getConversationalFilteringResult()); + } + if (state_ + != com.google.cloud.retail.v2.ConversationalSearchResponse.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(9, state_); + } + for (int i = 0; i < userQueryTypes_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, userQueryTypes_.getRaw(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(conversationalTextResponse_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(2, conversationalTextResponse_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getFollowupQuestion()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(conversationId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, conversationId_); + } + for (int i = 0; i < refinedSearch_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, refinedSearch_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, getConversationalFilteringResult()); + } + if (state_ + != com.google.cloud.retail.v2.ConversationalSearchResponse.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, state_); + } + { + int dataSize = 0; + for (int i = 0; i < userQueryTypes_.size(); i++) { + dataSize += computeStringSizeNoTag(userQueryTypes_.getRaw(i)); + } + size += dataSize; + size += 1 * getUserQueryTypesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.retail.v2.ConversationalSearchResponse)) { + return super.equals(obj); + } + com.google.cloud.retail.v2.ConversationalSearchResponse other = + (com.google.cloud.retail.v2.ConversationalSearchResponse) obj; + + if (!getUserQueryTypesList().equals(other.getUserQueryTypesList())) return false; + if (!getConversationalTextResponse().equals(other.getConversationalTextResponse())) + return false; + if (hasFollowupQuestion() != other.hasFollowupQuestion()) return false; + if (hasFollowupQuestion()) { + if (!getFollowupQuestion().equals(other.getFollowupQuestion())) return false; + } + if (!getConversationId().equals(other.getConversationId())) return false; + if (!getRefinedSearchList().equals(other.getRefinedSearchList())) return false; + if (hasConversationalFilteringResult() != other.hasConversationalFilteringResult()) + return false; + if (hasConversationalFilteringResult()) { + if (!getConversationalFilteringResult().equals(other.getConversationalFilteringResult())) + return false; + } + if (state_ != other.state_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getUserQueryTypesCount() > 0) { + hash = (37 * hash) + USER_QUERY_TYPES_FIELD_NUMBER; + hash = (53 * hash) + getUserQueryTypesList().hashCode(); + } + hash = (37 * hash) + CONVERSATIONAL_TEXT_RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getConversationalTextResponse().hashCode(); + if (hasFollowupQuestion()) { + hash = (37 * hash) + FOLLOWUP_QUESTION_FIELD_NUMBER; + hash = (53 * hash) + getFollowupQuestion().hashCode(); + } + hash = (37 * hash) + CONVERSATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getConversationId().hashCode(); + if (getRefinedSearchCount() > 0) { + hash = (37 * hash) + REFINED_SEARCH_FIELD_NUMBER; + hash = (53 * hash) + getRefinedSearchList().hashCode(); + } + if (hasConversationalFilteringResult()) { + hash = (37 * hash) + CONVERSATIONAL_FILTERING_RESULT_FIELD_NUMBER; + hash = (53 * hash) + getConversationalFilteringResult().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2.ConversationalSearchResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.ConversationalSearchResponse 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.retail.v2.ConversationalSearchResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.ConversationalSearchResponse parseFrom( + 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.retail.v2.ConversationalSearchResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.ConversationalSearchResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2.ConversationalSearchResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.ConversationalSearchResponse 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.retail.v2.ConversationalSearchResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.ConversationalSearchResponse 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.retail.v2.ConversationalSearchResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.ConversationalSearchResponse 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.retail.v2.ConversationalSearchResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Response message for
    +   * [ConversationalSearchService.ConversationalSearch][google.cloud.retail.v2.ConversationalSearchService.ConversationalSearch]
    +   * method.
    +   * 
    + * + * Protobuf type {@code google.cloud.retail.v2.ConversationalSearchResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2.ConversationalSearchResponse) + com.google.cloud.retail.v2.ConversationalSearchResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2_ConversationalSearchResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2_ConversationalSearchResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2.ConversationalSearchResponse.class, + com.google.cloud.retail.v2.ConversationalSearchResponse.Builder.class); + } + + // Construct using com.google.cloud.retail.v2.ConversationalSearchResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getFollowupQuestionFieldBuilder(); + getRefinedSearchFieldBuilder(); + getConversationalFilteringResultFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + userQueryTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + conversationalTextResponse_ = ""; + followupQuestion_ = null; + if (followupQuestionBuilder_ != null) { + followupQuestionBuilder_.dispose(); + followupQuestionBuilder_ = null; + } + conversationId_ = ""; + if (refinedSearchBuilder_ == null) { + refinedSearch_ = java.util.Collections.emptyList(); + } else { + refinedSearch_ = null; + refinedSearchBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + conversationalFilteringResult_ = null; + if (conversationalFilteringResultBuilder_ != null) { + conversationalFilteringResultBuilder_.dispose(); + conversationalFilteringResultBuilder_ = null; + } + state_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2_ConversationalSearchResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchResponse getDefaultInstanceForType() { + return com.google.cloud.retail.v2.ConversationalSearchResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchResponse build() { + com.google.cloud.retail.v2.ConversationalSearchResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchResponse buildPartial() { + com.google.cloud.retail.v2.ConversationalSearchResponse result = + new com.google.cloud.retail.v2.ConversationalSearchResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.retail.v2.ConversationalSearchResponse result) { + if (refinedSearchBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + refinedSearch_ = java.util.Collections.unmodifiableList(refinedSearch_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.refinedSearch_ = refinedSearch_; + } else { + result.refinedSearch_ = refinedSearchBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.retail.v2.ConversationalSearchResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + userQueryTypes_.makeImmutable(); + result.userQueryTypes_ = userQueryTypes_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.conversationalTextResponse_ = conversationalTextResponse_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.followupQuestion_ = + followupQuestionBuilder_ == null ? followupQuestion_ : followupQuestionBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.conversationId_ = conversationId_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.conversationalFilteringResult_ = + conversationalFilteringResultBuilder_ == null + ? conversationalFilteringResult_ + : conversationalFilteringResultBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.state_ = state_; + } + 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.retail.v2.ConversationalSearchResponse) { + return mergeFrom((com.google.cloud.retail.v2.ConversationalSearchResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.retail.v2.ConversationalSearchResponse other) { + if (other == com.google.cloud.retail.v2.ConversationalSearchResponse.getDefaultInstance()) + return this; + if (!other.userQueryTypes_.isEmpty()) { + if (userQueryTypes_.isEmpty()) { + userQueryTypes_ = other.userQueryTypes_; + bitField0_ |= 0x00000001; + } else { + ensureUserQueryTypesIsMutable(); + userQueryTypes_.addAll(other.userQueryTypes_); + } + onChanged(); + } + if (!other.getConversationalTextResponse().isEmpty()) { + conversationalTextResponse_ = other.conversationalTextResponse_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasFollowupQuestion()) { + mergeFollowupQuestion(other.getFollowupQuestion()); + } + if (!other.getConversationId().isEmpty()) { + conversationId_ = other.conversationId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (refinedSearchBuilder_ == null) { + if (!other.refinedSearch_.isEmpty()) { + if (refinedSearch_.isEmpty()) { + refinedSearch_ = other.refinedSearch_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureRefinedSearchIsMutable(); + refinedSearch_.addAll(other.refinedSearch_); + } + onChanged(); + } + } else { + if (!other.refinedSearch_.isEmpty()) { + if (refinedSearchBuilder_.isEmpty()) { + refinedSearchBuilder_.dispose(); + refinedSearchBuilder_ = null; + refinedSearch_ = other.refinedSearch_; + bitField0_ = (bitField0_ & ~0x00000010); + refinedSearchBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRefinedSearchFieldBuilder() + : null; + } else { + refinedSearchBuilder_.addAllMessages(other.refinedSearch_); + } + } + } + if (other.hasConversationalFilteringResult()) { + mergeConversationalFilteringResult(other.getConversationalFilteringResult()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + conversationalTextResponse_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getFollowupQuestionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + conversationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 50: + { + com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch m = + input.readMessage( + com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch + .parser(), + extensionRegistry); + if (refinedSearchBuilder_ == null) { + ensureRefinedSearchIsMutable(); + refinedSearch_.add(m); + } else { + refinedSearchBuilder_.addMessage(m); + } + break; + } // case 50 + case 58: + { + input.readMessage( + getConversationalFilteringResultFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 72: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 72 + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUserQueryTypesIsMutable(); + userQueryTypes_.add(s); + break; + } // case 82 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList userQueryTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUserQueryTypesIsMutable() { + if (!userQueryTypes_.isModifiable()) { + userQueryTypes_ = new com.google.protobuf.LazyStringArrayList(userQueryTypes_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
    +     * The types Retail classifies the search query as.
    +     *
    +     * Supported values are:
    +     *
    +     * - "ORDER_SUPPORT"
    +     * - "SIMPLE_PRODUCT_SEARCH"
    +     * - "INTENT_REFINEMENT"
    +     * - "PRODUCT_DETAILS"
    +     * - "PRODUCT_COMPARISON"
    +     * - "DEALS_AND_COUPONS"
    +     * - "STORE_RELEVANT"
    +     * - "BLOCKLISTED"
    +     * - "BEST_PRODUCT"
    +     * - "RETAIL_SUPPORT"
    +     * - "DISABLED"
    +     * 
    + * + * repeated string user_query_types = 10; + * + * @return A list containing the userQueryTypes. + */ + public com.google.protobuf.ProtocolStringList getUserQueryTypesList() { + userQueryTypes_.makeImmutable(); + return userQueryTypes_; + } + + /** + * + * + *
    +     * The types Retail classifies the search query as.
    +     *
    +     * Supported values are:
    +     *
    +     * - "ORDER_SUPPORT"
    +     * - "SIMPLE_PRODUCT_SEARCH"
    +     * - "INTENT_REFINEMENT"
    +     * - "PRODUCT_DETAILS"
    +     * - "PRODUCT_COMPARISON"
    +     * - "DEALS_AND_COUPONS"
    +     * - "STORE_RELEVANT"
    +     * - "BLOCKLISTED"
    +     * - "BEST_PRODUCT"
    +     * - "RETAIL_SUPPORT"
    +     * - "DISABLED"
    +     * 
    + * + * repeated string user_query_types = 10; + * + * @return The count of userQueryTypes. + */ + public int getUserQueryTypesCount() { + return userQueryTypes_.size(); + } + + /** + * + * + *
    +     * The types Retail classifies the search query as.
    +     *
    +     * Supported values are:
    +     *
    +     * - "ORDER_SUPPORT"
    +     * - "SIMPLE_PRODUCT_SEARCH"
    +     * - "INTENT_REFINEMENT"
    +     * - "PRODUCT_DETAILS"
    +     * - "PRODUCT_COMPARISON"
    +     * - "DEALS_AND_COUPONS"
    +     * - "STORE_RELEVANT"
    +     * - "BLOCKLISTED"
    +     * - "BEST_PRODUCT"
    +     * - "RETAIL_SUPPORT"
    +     * - "DISABLED"
    +     * 
    + * + * repeated string user_query_types = 10; + * + * @param index The index of the element to return. + * @return The userQueryTypes at the given index. + */ + public java.lang.String getUserQueryTypes(int index) { + return userQueryTypes_.get(index); + } + + /** + * + * + *
    +     * The types Retail classifies the search query as.
    +     *
    +     * Supported values are:
    +     *
    +     * - "ORDER_SUPPORT"
    +     * - "SIMPLE_PRODUCT_SEARCH"
    +     * - "INTENT_REFINEMENT"
    +     * - "PRODUCT_DETAILS"
    +     * - "PRODUCT_COMPARISON"
    +     * - "DEALS_AND_COUPONS"
    +     * - "STORE_RELEVANT"
    +     * - "BLOCKLISTED"
    +     * - "BEST_PRODUCT"
    +     * - "RETAIL_SUPPORT"
    +     * - "DISABLED"
    +     * 
    + * + * repeated string user_query_types = 10; + * + * @param index The index of the value to return. + * @return The bytes of the userQueryTypes at the given index. + */ + public com.google.protobuf.ByteString getUserQueryTypesBytes(int index) { + return userQueryTypes_.getByteString(index); + } + + /** + * + * + *
    +     * The types Retail classifies the search query as.
    +     *
    +     * Supported values are:
    +     *
    +     * - "ORDER_SUPPORT"
    +     * - "SIMPLE_PRODUCT_SEARCH"
    +     * - "INTENT_REFINEMENT"
    +     * - "PRODUCT_DETAILS"
    +     * - "PRODUCT_COMPARISON"
    +     * - "DEALS_AND_COUPONS"
    +     * - "STORE_RELEVANT"
    +     * - "BLOCKLISTED"
    +     * - "BEST_PRODUCT"
    +     * - "RETAIL_SUPPORT"
    +     * - "DISABLED"
    +     * 
    + * + * repeated string user_query_types = 10; + * + * @param index The index to set the value at. + * @param value The userQueryTypes to set. + * @return This builder for chaining. + */ + public Builder setUserQueryTypes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUserQueryTypesIsMutable(); + userQueryTypes_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * The types Retail classifies the search query as.
    +     *
    +     * Supported values are:
    +     *
    +     * - "ORDER_SUPPORT"
    +     * - "SIMPLE_PRODUCT_SEARCH"
    +     * - "INTENT_REFINEMENT"
    +     * - "PRODUCT_DETAILS"
    +     * - "PRODUCT_COMPARISON"
    +     * - "DEALS_AND_COUPONS"
    +     * - "STORE_RELEVANT"
    +     * - "BLOCKLISTED"
    +     * - "BEST_PRODUCT"
    +     * - "RETAIL_SUPPORT"
    +     * - "DISABLED"
    +     * 
    + * + * repeated string user_query_types = 10; + * + * @param value The userQueryTypes to add. + * @return This builder for chaining. + */ + public Builder addUserQueryTypes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUserQueryTypesIsMutable(); + userQueryTypes_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * The types Retail classifies the search query as.
    +     *
    +     * Supported values are:
    +     *
    +     * - "ORDER_SUPPORT"
    +     * - "SIMPLE_PRODUCT_SEARCH"
    +     * - "INTENT_REFINEMENT"
    +     * - "PRODUCT_DETAILS"
    +     * - "PRODUCT_COMPARISON"
    +     * - "DEALS_AND_COUPONS"
    +     * - "STORE_RELEVANT"
    +     * - "BLOCKLISTED"
    +     * - "BEST_PRODUCT"
    +     * - "RETAIL_SUPPORT"
    +     * - "DISABLED"
    +     * 
    + * + * repeated string user_query_types = 10; + * + * @param values The userQueryTypes to add. + * @return This builder for chaining. + */ + public Builder addAllUserQueryTypes(java.lang.Iterable values) { + ensureUserQueryTypesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, userQueryTypes_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * The types Retail classifies the search query as.
    +     *
    +     * Supported values are:
    +     *
    +     * - "ORDER_SUPPORT"
    +     * - "SIMPLE_PRODUCT_SEARCH"
    +     * - "INTENT_REFINEMENT"
    +     * - "PRODUCT_DETAILS"
    +     * - "PRODUCT_COMPARISON"
    +     * - "DEALS_AND_COUPONS"
    +     * - "STORE_RELEVANT"
    +     * - "BLOCKLISTED"
    +     * - "BEST_PRODUCT"
    +     * - "RETAIL_SUPPORT"
    +     * - "DISABLED"
    +     * 
    + * + * repeated string user_query_types = 10; + * + * @return This builder for chaining. + */ + public Builder clearUserQueryTypes() { + userQueryTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
    +     * The types Retail classifies the search query as.
    +     *
    +     * Supported values are:
    +     *
    +     * - "ORDER_SUPPORT"
    +     * - "SIMPLE_PRODUCT_SEARCH"
    +     * - "INTENT_REFINEMENT"
    +     * - "PRODUCT_DETAILS"
    +     * - "PRODUCT_COMPARISON"
    +     * - "DEALS_AND_COUPONS"
    +     * - "STORE_RELEVANT"
    +     * - "BLOCKLISTED"
    +     * - "BEST_PRODUCT"
    +     * - "RETAIL_SUPPORT"
    +     * - "DISABLED"
    +     * 
    + * + * repeated string user_query_types = 10; + * + * @param value The bytes of the userQueryTypes to add. + * @return This builder for chaining. + */ + public Builder addUserQueryTypesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUserQueryTypesIsMutable(); + userQueryTypes_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object conversationalTextResponse_ = ""; + + /** + * + * + *
    +     * The conversational answer-based text response generated by the Server.
    +     * 
    + * + * string conversational_text_response = 2; + * + * @return The conversationalTextResponse. + */ + public java.lang.String getConversationalTextResponse() { + java.lang.Object ref = conversationalTextResponse_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + conversationalTextResponse_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * The conversational answer-based text response generated by the Server.
    +     * 
    + * + * string conversational_text_response = 2; + * + * @return The bytes for conversationalTextResponse. + */ + public com.google.protobuf.ByteString getConversationalTextResponseBytes() { + java.lang.Object ref = conversationalTextResponse_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + conversationalTextResponse_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * The conversational answer-based text response generated by the Server.
    +     * 
    + * + * string conversational_text_response = 2; + * + * @param value The conversationalTextResponse to set. + * @return This builder for chaining. + */ + public Builder setConversationalTextResponse(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + conversationalTextResponse_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * The conversational answer-based text response generated by the Server.
    +     * 
    + * + * string conversational_text_response = 2; + * + * @return This builder for chaining. + */ + public Builder clearConversationalTextResponse() { + conversationalTextResponse_ = getDefaultInstance().getConversationalTextResponse(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * The conversational answer-based text response generated by the Server.
    +     * 
    + * + * string conversational_text_response = 2; + * + * @param value The bytes for conversationalTextResponse to set. + * @return This builder for chaining. + */ + public Builder setConversationalTextResponseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + conversationalTextResponse_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + followupQuestion_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion, + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.Builder, + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestionOrBuilder> + followupQuestionBuilder_; + + /** + * + * + *
    +     * The conversational followup question generated for Intent refinement.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion followup_question = 3; + * + * + * @return Whether the followupQuestion field is set. + */ + public boolean hasFollowupQuestion() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +     * The conversational followup question generated for Intent refinement.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion followup_question = 3; + * + * + * @return The followupQuestion. + */ + public com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + getFollowupQuestion() { + if (followupQuestionBuilder_ == null) { + return followupQuestion_ == null + ? com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .getDefaultInstance() + : followupQuestion_; + } else { + return followupQuestionBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * The conversational followup question generated for Intent refinement.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion followup_question = 3; + * + */ + public Builder setFollowupQuestion( + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion value) { + if (followupQuestionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + followupQuestion_ = value; + } else { + followupQuestionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * The conversational followup question generated for Intent refinement.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion followup_question = 3; + * + */ + public Builder setFollowupQuestion( + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.Builder + builderForValue) { + if (followupQuestionBuilder_ == null) { + followupQuestion_ = builderForValue.build(); + } else { + followupQuestionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * The conversational followup question generated for Intent refinement.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion followup_question = 3; + * + */ + public Builder mergeFollowupQuestion( + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion value) { + if (followupQuestionBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && followupQuestion_ != null + && followupQuestion_ + != com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .getDefaultInstance()) { + getFollowupQuestionBuilder().mergeFrom(value); + } else { + followupQuestion_ = value; + } + } else { + followupQuestionBuilder_.mergeFrom(value); + } + if (followupQuestion_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * The conversational followup question generated for Intent refinement.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion followup_question = 3; + * + */ + public Builder clearFollowupQuestion() { + bitField0_ = (bitField0_ & ~0x00000004); + followupQuestion_ = null; + if (followupQuestionBuilder_ != null) { + followupQuestionBuilder_.dispose(); + followupQuestionBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * The conversational followup question generated for Intent refinement.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion followup_question = 3; + * + */ + public com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.Builder + getFollowupQuestionBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getFollowupQuestionFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * The conversational followup question generated for Intent refinement.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion followup_question = 3; + * + */ + public com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestionOrBuilder + getFollowupQuestionOrBuilder() { + if (followupQuestionBuilder_ != null) { + return followupQuestionBuilder_.getMessageOrBuilder(); + } else { + return followupQuestion_ == null + ? com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion + .getDefaultInstance() + : followupQuestion_; + } + } + + /** + * + * + *
    +     * The conversational followup question generated for Intent refinement.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion followup_question = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion, + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.Builder, + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestionOrBuilder> + getFollowupQuestionFieldBuilder() { + if (followupQuestionBuilder_ == null) { + followupQuestionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion, + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.Builder, + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestionOrBuilder>( + getFollowupQuestion(), getParentForChildren(), isClean()); + followupQuestion_ = null; + } + return followupQuestionBuilder_; + } + + private java.lang.Object conversationId_ = ""; + + /** + * + * + *
    +     * Conversation UUID. This field will be stored in client side storage to
    +     * maintain the conversation session with server and will be used for next
    +     * search request's
    +     * [ConversationalSearchRequest.conversation_id][google.cloud.retail.v2.ConversationalSearchRequest.conversation_id]
    +     * to restore conversation state in server.
    +     * 
    + * + * string conversation_id = 4; + * + * @return The conversationId. + */ + public java.lang.String getConversationId() { + java.lang.Object ref = conversationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + conversationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Conversation UUID. This field will be stored in client side storage to
    +     * maintain the conversation session with server and will be used for next
    +     * search request's
    +     * [ConversationalSearchRequest.conversation_id][google.cloud.retail.v2.ConversationalSearchRequest.conversation_id]
    +     * to restore conversation state in server.
    +     * 
    + * + * string conversation_id = 4; + * + * @return The bytes for conversationId. + */ + public com.google.protobuf.ByteString getConversationIdBytes() { + java.lang.Object ref = conversationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + conversationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Conversation UUID. This field will be stored in client side storage to
    +     * maintain the conversation session with server and will be used for next
    +     * search request's
    +     * [ConversationalSearchRequest.conversation_id][google.cloud.retail.v2.ConversationalSearchRequest.conversation_id]
    +     * to restore conversation state in server.
    +     * 
    + * + * string conversation_id = 4; + * + * @param value The conversationId to set. + * @return This builder for chaining. + */ + public Builder setConversationId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + conversationId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Conversation UUID. This field will be stored in client side storage to
    +     * maintain the conversation session with server and will be used for next
    +     * search request's
    +     * [ConversationalSearchRequest.conversation_id][google.cloud.retail.v2.ConversationalSearchRequest.conversation_id]
    +     * to restore conversation state in server.
    +     * 
    + * + * string conversation_id = 4; + * + * @return This builder for chaining. + */ + public Builder clearConversationId() { + conversationId_ = getDefaultInstance().getConversationId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Conversation UUID. This field will be stored in client side storage to
    +     * maintain the conversation session with server and will be used for next
    +     * search request's
    +     * [ConversationalSearchRequest.conversation_id][google.cloud.retail.v2.ConversationalSearchRequest.conversation_id]
    +     * to restore conversation state in server.
    +     * 
    + * + * string conversation_id = 4; + * + * @param value The bytes for conversationId to set. + * @return This builder for chaining. + */ + public Builder setConversationIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + conversationId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.util.List + refinedSearch_ = java.util.Collections.emptyList(); + + private void ensureRefinedSearchIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + refinedSearch_ = + new java.util.ArrayList< + com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch>( + refinedSearch_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch, + com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch.Builder, + com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearchOrBuilder> + refinedSearchBuilder_; + + /** + * + * + *
    +     * The proposed refined search queries. They can be used to fetch the relevant
    +     * search results. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +     * refined_query from search response will be populated here.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch refined_search = 6; + * + */ + public java.util.List + getRefinedSearchList() { + if (refinedSearchBuilder_ == null) { + return java.util.Collections.unmodifiableList(refinedSearch_); + } else { + return refinedSearchBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * The proposed refined search queries. They can be used to fetch the relevant
    +     * search results. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +     * refined_query from search response will be populated here.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch refined_search = 6; + * + */ + public int getRefinedSearchCount() { + if (refinedSearchBuilder_ == null) { + return refinedSearch_.size(); + } else { + return refinedSearchBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * The proposed refined search queries. They can be used to fetch the relevant
    +     * search results. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +     * refined_query from search response will be populated here.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch refined_search = 6; + * + */ + public com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch getRefinedSearch( + int index) { + if (refinedSearchBuilder_ == null) { + return refinedSearch_.get(index); + } else { + return refinedSearchBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * The proposed refined search queries. They can be used to fetch the relevant
    +     * search results. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +     * refined_query from search response will be populated here.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch refined_search = 6; + * + */ + public Builder setRefinedSearch( + int index, com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch value) { + if (refinedSearchBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRefinedSearchIsMutable(); + refinedSearch_.set(index, value); + onChanged(); + } else { + refinedSearchBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The proposed refined search queries. They can be used to fetch the relevant
    +     * search results. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +     * refined_query from search response will be populated here.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch refined_search = 6; + * + */ + public Builder setRefinedSearch( + int index, + com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch.Builder + builderForValue) { + if (refinedSearchBuilder_ == null) { + ensureRefinedSearchIsMutable(); + refinedSearch_.set(index, builderForValue.build()); + onChanged(); + } else { + refinedSearchBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The proposed refined search queries. They can be used to fetch the relevant
    +     * search results. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +     * refined_query from search response will be populated here.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch refined_search = 6; + * + */ + public Builder addRefinedSearch( + com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch value) { + if (refinedSearchBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRefinedSearchIsMutable(); + refinedSearch_.add(value); + onChanged(); + } else { + refinedSearchBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * The proposed refined search queries. They can be used to fetch the relevant
    +     * search results. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +     * refined_query from search response will be populated here.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch refined_search = 6; + * + */ + public Builder addRefinedSearch( + int index, com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch value) { + if (refinedSearchBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRefinedSearchIsMutable(); + refinedSearch_.add(index, value); + onChanged(); + } else { + refinedSearchBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The proposed refined search queries. They can be used to fetch the relevant
    +     * search results. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +     * refined_query from search response will be populated here.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch refined_search = 6; + * + */ + public Builder addRefinedSearch( + com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch.Builder + builderForValue) { + if (refinedSearchBuilder_ == null) { + ensureRefinedSearchIsMutable(); + refinedSearch_.add(builderForValue.build()); + onChanged(); + } else { + refinedSearchBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The proposed refined search queries. They can be used to fetch the relevant
    +     * search results. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +     * refined_query from search response will be populated here.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch refined_search = 6; + * + */ + public Builder addRefinedSearch( + int index, + com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch.Builder + builderForValue) { + if (refinedSearchBuilder_ == null) { + ensureRefinedSearchIsMutable(); + refinedSearch_.add(index, builderForValue.build()); + onChanged(); + } else { + refinedSearchBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The proposed refined search queries. They can be used to fetch the relevant
    +     * search results. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +     * refined_query from search response will be populated here.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch refined_search = 6; + * + */ + public Builder addAllRefinedSearch( + java.lang.Iterable< + ? extends com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch> + values) { + if (refinedSearchBuilder_ == null) { + ensureRefinedSearchIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, refinedSearch_); + onChanged(); + } else { + refinedSearchBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * The proposed refined search queries. They can be used to fetch the relevant
    +     * search results. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +     * refined_query from search response will be populated here.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch refined_search = 6; + * + */ + public Builder clearRefinedSearch() { + if (refinedSearchBuilder_ == null) { + refinedSearch_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + refinedSearchBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * The proposed refined search queries. They can be used to fetch the relevant
    +     * search results. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +     * refined_query from search response will be populated here.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch refined_search = 6; + * + */ + public Builder removeRefinedSearch(int index) { + if (refinedSearchBuilder_ == null) { + ensureRefinedSearchIsMutable(); + refinedSearch_.remove(index); + onChanged(); + } else { + refinedSearchBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * The proposed refined search queries. They can be used to fetch the relevant
    +     * search results. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +     * refined_query from search response will be populated here.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch refined_search = 6; + * + */ + public com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch.Builder + getRefinedSearchBuilder(int index) { + return getRefinedSearchFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * The proposed refined search queries. They can be used to fetch the relevant
    +     * search results. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +     * refined_query from search response will be populated here.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch refined_search = 6; + * + */ + public com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearchOrBuilder + getRefinedSearchOrBuilder(int index) { + if (refinedSearchBuilder_ == null) { + return refinedSearch_.get(index); + } else { + return refinedSearchBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * The proposed refined search queries. They can be used to fetch the relevant
    +     * search results. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +     * refined_query from search response will be populated here.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch refined_search = 6; + * + */ + public java.util.List< + ? extends + com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearchOrBuilder> + getRefinedSearchOrBuilderList() { + if (refinedSearchBuilder_ != null) { + return refinedSearchBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(refinedSearch_); + } + } + + /** + * + * + *
    +     * The proposed refined search queries. They can be used to fetch the relevant
    +     * search results. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +     * refined_query from search response will be populated here.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch refined_search = 6; + * + */ + public com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch.Builder + addRefinedSearchBuilder() { + return getRefinedSearchFieldBuilder() + .addBuilder( + com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch + .getDefaultInstance()); + } + + /** + * + * + *
    +     * The proposed refined search queries. They can be used to fetch the relevant
    +     * search results. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +     * refined_query from search response will be populated here.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch refined_search = 6; + * + */ + public com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch.Builder + addRefinedSearchBuilder(int index) { + return getRefinedSearchFieldBuilder() + .addBuilder( + index, + com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch + .getDefaultInstance()); + } + + /** + * + * + *
    +     * The proposed refined search queries. They can be used to fetch the relevant
    +     * search results. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +     * refined_query from search response will be populated here.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch refined_search = 6; + * + */ + public java.util.List< + com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch.Builder> + getRefinedSearchBuilderList() { + return getRefinedSearchFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch, + com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch.Builder, + com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearchOrBuilder> + getRefinedSearchFieldBuilder() { + if (refinedSearchBuilder_ == null) { + refinedSearchBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch, + com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch.Builder, + com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearchOrBuilder>( + refinedSearch_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + refinedSearch_ = null; + } + return refinedSearchBuilder_; + } + + private com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + conversationalFilteringResult_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult, + com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + .Builder, + com.google.cloud.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResultOrBuilder> + conversationalFilteringResultBuilder_; + + /** + * + * + *
    +     * This field specifies all related information that is needed on client
    +     * side for UI rendering of conversational filtering search.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult conversational_filtering_result = 7; + * + * + * @return Whether the conversationalFilteringResult field is set. + */ + public boolean hasConversationalFilteringResult() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
    +     * This field specifies all related information that is needed on client
    +     * side for UI rendering of conversational filtering search.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult conversational_filtering_result = 7; + * + * + * @return The conversationalFilteringResult. + */ + public com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + getConversationalFilteringResult() { + if (conversationalFilteringResultBuilder_ == null) { + return conversationalFilteringResult_ == null + ? com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + .getDefaultInstance() + : conversationalFilteringResult_; + } else { + return conversationalFilteringResultBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * This field specifies all related information that is needed on client
    +     * side for UI rendering of conversational filtering search.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult conversational_filtering_result = 7; + * + */ + public Builder setConversationalFilteringResult( + com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + value) { + if (conversationalFilteringResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + conversationalFilteringResult_ = value; + } else { + conversationalFilteringResultBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * This field specifies all related information that is needed on client
    +     * side for UI rendering of conversational filtering search.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult conversational_filtering_result = 7; + * + */ + public Builder setConversationalFilteringResult( + com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + .Builder + builderForValue) { + if (conversationalFilteringResultBuilder_ == null) { + conversationalFilteringResult_ = builderForValue.build(); + } else { + conversationalFilteringResultBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * This field specifies all related information that is needed on client
    +     * side for UI rendering of conversational filtering search.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult conversational_filtering_result = 7; + * + */ + public Builder mergeConversationalFilteringResult( + com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + value) { + if (conversationalFilteringResultBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && conversationalFilteringResult_ != null + && conversationalFilteringResult_ + != com.google.cloud.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResult.getDefaultInstance()) { + getConversationalFilteringResultBuilder().mergeFrom(value); + } else { + conversationalFilteringResult_ = value; + } + } else { + conversationalFilteringResultBuilder_.mergeFrom(value); + } + if (conversationalFilteringResult_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * This field specifies all related information that is needed on client
    +     * side for UI rendering of conversational filtering search.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult conversational_filtering_result = 7; + * + */ + public Builder clearConversationalFilteringResult() { + bitField0_ = (bitField0_ & ~0x00000020); + conversationalFilteringResult_ = null; + if (conversationalFilteringResultBuilder_ != null) { + conversationalFilteringResultBuilder_.dispose(); + conversationalFilteringResultBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * This field specifies all related information that is needed on client
    +     * side for UI rendering of conversational filtering search.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult conversational_filtering_result = 7; + * + */ + public com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + .Builder + getConversationalFilteringResultBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getConversationalFilteringResultFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * This field specifies all related information that is needed on client
    +     * side for UI rendering of conversational filtering search.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult conversational_filtering_result = 7; + * + */ + public com.google.cloud.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResultOrBuilder + getConversationalFilteringResultOrBuilder() { + if (conversationalFilteringResultBuilder_ != null) { + return conversationalFilteringResultBuilder_.getMessageOrBuilder(); + } else { + return conversationalFilteringResult_ == null + ? com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + .getDefaultInstance() + : conversationalFilteringResult_; + } + } + + /** + * + * + *
    +     * This field specifies all related information that is needed on client
    +     * side for UI rendering of conversational filtering search.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult conversational_filtering_result = 7; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult, + com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + .Builder, + com.google.cloud.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResultOrBuilder> + getConversationalFilteringResultFieldBuilder() { + if (conversationalFilteringResultBuilder_ == null) { + conversationalFilteringResultBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResult, + com.google.cloud.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResult.Builder, + com.google.cloud.retail.v2.ConversationalSearchResponse + .ConversationalFilteringResultOrBuilder>( + getConversationalFilteringResult(), getParentForChildren(), isClean()); + conversationalFilteringResult_ = null; + } + return conversationalFilteringResultBuilder_; + } + + private int state_ = 0; + + /** + * + * + *
    +     * Output only. The state of the response generation.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
    +     * Output only. The state of the response generation.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.State state = 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. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The state of the response generation.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.retail.v2.ConversationalSearchResponse.State getState() { + com.google.cloud.retail.v2.ConversationalSearchResponse.State result = + com.google.cloud.retail.v2.ConversationalSearchResponse.State.forNumber(state_); + return result == null + ? com.google.cloud.retail.v2.ConversationalSearchResponse.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
    +     * Output only. The state of the response generation.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.retail.v2.ConversationalSearchResponse.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The state of the response generation.
    +     * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000040); + 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.retail.v2.ConversationalSearchResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2.ConversationalSearchResponse) + private static final com.google.cloud.retail.v2.ConversationalSearchResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.retail.v2.ConversationalSearchResponse(); + } + + public static com.google.cloud.retail.v2.ConversationalSearchResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConversationalSearchResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.retail.v2.ConversationalSearchResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ConversationalSearchResponseOrBuilder.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ConversationalSearchResponseOrBuilder.java new file mode 100644 index 000000000000..420e2a238805 --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ConversationalSearchResponseOrBuilder.java @@ -0,0 +1,397 @@ +/* + * 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/retail/v2/conversational_search_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.retail.v2; + +public interface ConversationalSearchResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2.ConversationalSearchResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The types Retail classifies the search query as.
    +   *
    +   * Supported values are:
    +   *
    +   * - "ORDER_SUPPORT"
    +   * - "SIMPLE_PRODUCT_SEARCH"
    +   * - "INTENT_REFINEMENT"
    +   * - "PRODUCT_DETAILS"
    +   * - "PRODUCT_COMPARISON"
    +   * - "DEALS_AND_COUPONS"
    +   * - "STORE_RELEVANT"
    +   * - "BLOCKLISTED"
    +   * - "BEST_PRODUCT"
    +   * - "RETAIL_SUPPORT"
    +   * - "DISABLED"
    +   * 
    + * + * repeated string user_query_types = 10; + * + * @return A list containing the userQueryTypes. + */ + java.util.List getUserQueryTypesList(); + + /** + * + * + *
    +   * The types Retail classifies the search query as.
    +   *
    +   * Supported values are:
    +   *
    +   * - "ORDER_SUPPORT"
    +   * - "SIMPLE_PRODUCT_SEARCH"
    +   * - "INTENT_REFINEMENT"
    +   * - "PRODUCT_DETAILS"
    +   * - "PRODUCT_COMPARISON"
    +   * - "DEALS_AND_COUPONS"
    +   * - "STORE_RELEVANT"
    +   * - "BLOCKLISTED"
    +   * - "BEST_PRODUCT"
    +   * - "RETAIL_SUPPORT"
    +   * - "DISABLED"
    +   * 
    + * + * repeated string user_query_types = 10; + * + * @return The count of userQueryTypes. + */ + int getUserQueryTypesCount(); + + /** + * + * + *
    +   * The types Retail classifies the search query as.
    +   *
    +   * Supported values are:
    +   *
    +   * - "ORDER_SUPPORT"
    +   * - "SIMPLE_PRODUCT_SEARCH"
    +   * - "INTENT_REFINEMENT"
    +   * - "PRODUCT_DETAILS"
    +   * - "PRODUCT_COMPARISON"
    +   * - "DEALS_AND_COUPONS"
    +   * - "STORE_RELEVANT"
    +   * - "BLOCKLISTED"
    +   * - "BEST_PRODUCT"
    +   * - "RETAIL_SUPPORT"
    +   * - "DISABLED"
    +   * 
    + * + * repeated string user_query_types = 10; + * + * @param index The index of the element to return. + * @return The userQueryTypes at the given index. + */ + java.lang.String getUserQueryTypes(int index); + + /** + * + * + *
    +   * The types Retail classifies the search query as.
    +   *
    +   * Supported values are:
    +   *
    +   * - "ORDER_SUPPORT"
    +   * - "SIMPLE_PRODUCT_SEARCH"
    +   * - "INTENT_REFINEMENT"
    +   * - "PRODUCT_DETAILS"
    +   * - "PRODUCT_COMPARISON"
    +   * - "DEALS_AND_COUPONS"
    +   * - "STORE_RELEVANT"
    +   * - "BLOCKLISTED"
    +   * - "BEST_PRODUCT"
    +   * - "RETAIL_SUPPORT"
    +   * - "DISABLED"
    +   * 
    + * + * repeated string user_query_types = 10; + * + * @param index The index of the value to return. + * @return The bytes of the userQueryTypes at the given index. + */ + com.google.protobuf.ByteString getUserQueryTypesBytes(int index); + + /** + * + * + *
    +   * The conversational answer-based text response generated by the Server.
    +   * 
    + * + * string conversational_text_response = 2; + * + * @return The conversationalTextResponse. + */ + java.lang.String getConversationalTextResponse(); + + /** + * + * + *
    +   * The conversational answer-based text response generated by the Server.
    +   * 
    + * + * string conversational_text_response = 2; + * + * @return The bytes for conversationalTextResponse. + */ + com.google.protobuf.ByteString getConversationalTextResponseBytes(); + + /** + * + * + *
    +   * The conversational followup question generated for Intent refinement.
    +   * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion followup_question = 3; + * + * + * @return Whether the followupQuestion field is set. + */ + boolean hasFollowupQuestion(); + + /** + * + * + *
    +   * The conversational followup question generated for Intent refinement.
    +   * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion followup_question = 3; + * + * + * @return The followupQuestion. + */ + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion getFollowupQuestion(); + + /** + * + * + *
    +   * The conversational followup question generated for Intent refinement.
    +   * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion followup_question = 3; + * + */ + com.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestionOrBuilder + getFollowupQuestionOrBuilder(); + + /** + * + * + *
    +   * Conversation UUID. This field will be stored in client side storage to
    +   * maintain the conversation session with server and will be used for next
    +   * search request's
    +   * [ConversationalSearchRequest.conversation_id][google.cloud.retail.v2.ConversationalSearchRequest.conversation_id]
    +   * to restore conversation state in server.
    +   * 
    + * + * string conversation_id = 4; + * + * @return The conversationId. + */ + java.lang.String getConversationId(); + + /** + * + * + *
    +   * Conversation UUID. This field will be stored in client side storage to
    +   * maintain the conversation session with server and will be used for next
    +   * search request's
    +   * [ConversationalSearchRequest.conversation_id][google.cloud.retail.v2.ConversationalSearchRequest.conversation_id]
    +   * to restore conversation state in server.
    +   * 
    + * + * string conversation_id = 4; + * + * @return The bytes for conversationId. + */ + com.google.protobuf.ByteString getConversationIdBytes(); + + /** + * + * + *
    +   * The proposed refined search queries. They can be used to fetch the relevant
    +   * search results. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +   * refined_query from search response will be populated here.
    +   * 
    + * + * + * repeated .google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch refined_search = 6; + * + */ + java.util.List + getRefinedSearchList(); + + /** + * + * + *
    +   * The proposed refined search queries. They can be used to fetch the relevant
    +   * search results. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +   * refined_query from search response will be populated here.
    +   * 
    + * + * + * repeated .google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch refined_search = 6; + * + */ + com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch getRefinedSearch(int index); + + /** + * + * + *
    +   * The proposed refined search queries. They can be used to fetch the relevant
    +   * search results. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +   * refined_query from search response will be populated here.
    +   * 
    + * + * + * repeated .google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch refined_search = 6; + * + */ + int getRefinedSearchCount(); + + /** + * + * + *
    +   * The proposed refined search queries. They can be used to fetch the relevant
    +   * search results. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +   * refined_query from search response will be populated here.
    +   * 
    + * + * + * repeated .google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch refined_search = 6; + * + */ + java.util.List< + ? extends com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearchOrBuilder> + getRefinedSearchOrBuilderList(); + + /** + * + * + *
    +   * The proposed refined search queries. They can be used to fetch the relevant
    +   * search results. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +   * refined_query from search response will be populated here.
    +   * 
    + * + * + * repeated .google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch refined_search = 6; + * + */ + com.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearchOrBuilder + getRefinedSearchOrBuilder(int index); + + /** + * + * + *
    +   * This field specifies all related information that is needed on client
    +   * side for UI rendering of conversational filtering search.
    +   * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult conversational_filtering_result = 7; + * + * + * @return Whether the conversationalFilteringResult field is set. + */ + boolean hasConversationalFilteringResult(); + + /** + * + * + *
    +   * This field specifies all related information that is needed on client
    +   * side for UI rendering of conversational filtering search.
    +   * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult conversational_filtering_result = 7; + * + * + * @return The conversationalFilteringResult. + */ + com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult + getConversationalFilteringResult(); + + /** + * + * + *
    +   * This field specifies all related information that is needed on client
    +   * side for UI rendering of conversational filtering search.
    +   * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult conversational_filtering_result = 7; + * + */ + com.google.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResultOrBuilder + getConversationalFilteringResultOrBuilder(); + + /** + * + * + *
    +   * Output only. The state of the response generation.
    +   * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
    +   * Output only. The state of the response generation.
    +   * 
    + * + * + * .google.cloud.retail.v2.ConversationalSearchResponse.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.retail.v2.ConversationalSearchResponse.State getState(); +} diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ConversationalSearchServiceProto.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ConversationalSearchServiceProto.java new file mode 100644 index 000000000000..f877fb2dd968 --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ConversationalSearchServiceProto.java @@ -0,0 +1,353 @@ +/* + * 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/retail/v2/conversational_search_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.retail.v2; + +public final class ConversationalSearchServiceProto { + private ConversationalSearchServiceProto() {} + + 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_retail_v2_ConversationalSearchRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2_ConversationalSearchRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2_ConversationalSearchRequest_SearchParams_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2_ConversationalSearchRequest_SearchParams_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2_ConversationalSearchRequest_UserAnswer_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2_ConversationalSearchRequest_UserAnswer_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2_ConversationalSearchRequest_UserAnswer_SelectedAnswer_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2_ConversationalSearchRequest_UserAnswer_SelectedAnswer_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2_ConversationalSearchRequest_ConversationalFilteringSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2_ConversationalSearchRequest_ConversationalFilteringSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2_ConversationalSearchRequest_UserLabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2_ConversationalSearchRequest_UserLabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2_ConversationalSearchResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2_ConversationalSearchResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2_ConversationalSearchResponse_FollowupQuestion_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2_ConversationalSearchResponse_FollowupQuestion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2_ConversationalSearchResponse_FollowupQuestion_SuggestedAnswer_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2_ConversationalSearchResponse_FollowupQuestion_SuggestedAnswer_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2_ConversationalSearchResponse_RefinedSearch_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2_ConversationalSearchResponse_RefinedSearch_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2_ConversationalSearchResponse_ConversationalFilteringResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2_ConversationalSearchResponse_ConversationalFilteringResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2_ConversationalSearchResponse_ConversationalFilteringResult_AdditionalFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2_ConversationalSearchResponse_ConversationalFilteringResult_AdditionalFilter_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/retail/v2/conversational_search_service.proto\022\026google.cloud.retai" + + "l.v2\032\034google/api/annotations.proto\032\027goog" + + "le/api/client.proto\032\037google/api/field_be" + + "havior.proto\032\031google/api/resource.proto\032" + + "#google/cloud/retail/v2/common.proto\032#google/cloud/retail/v2/safety.proto\032+googl" + + "e/cloud/retail/v2/search_service.proto\"\357\013\n" + + "\033ConversationalSearchRequest\022\026\n" + + "\tplacement\030\001 \001(\tB\003\340A\002\0224\n" + + "\006branch\030\002 \001(\tB$\340A\002\372A\036\n" + + "\034retail.googleapis.com/Branch\022\022\n" + + "\005query\030\003 \001(\tB\003\340A\001\022\034\n" + + "\017page_categories\030\004 \003(\tB\003\340A\001\022\034\n" + + "\017conversation_id\030\005 \001(\tB\003\340A\001\022\\\n\r" + + "search_params\030\006 \001(\0132@.google.cloud.retail.v2.Con" + + "versationalSearchRequest.SearchParamsB\003\340A\001\022\027\n\n" + + "visitor_id\030\t \001(\tB\003\340A\002\0228\n" + + "\tuser_info\030\007 \001(\0132 .google.cloud.retail.v2.UserInfoB\003\340A\001\022{\n" + + "\035conversational_filtering_spec\030\010" + + " \001(\0132O.google.cloud.retail.v2.Conversati" + + "onalSearchRequest.ConversationalFilteringSpecB\003\340A\001\022]\n" + + "\013user_labels\030\014 \003(\0132C.google" + + ".cloud.retail.v2.ConversationalSearchRequest.UserLabelsEntryB\003\340A\001\022C\n" + + "\017safety_settings\030\016" + + " \003(\0132%.google.cloud.retail.v2.SafetySettingB\003\340A\001\032\242\001\n" + + "\014SearchParams\022\023\n" + + "\006filter\030\001 \001(\tB\003\340A\001\022\035\n" + + "\020canonical_filter\030\002 \001(\tB\003\340A\001\022\024\n" + + "\007sort_by\030\003 \001(\tB\003\340A\001\022H\n\n" + + "boost_spec\030\004" + + " \001(\0132/.google.cloud.retail.v2.SearchRequest.BoostSpecB\003\340A\001\032\201\002\n\n" + + "UserAnswer\022\025\n" + + "\013text_answer\030\001 \001(\tH\000\022m\n" + + "\017selected_answer\030\002 \001(\0132M.google.cloud.retail.v2.Conversation" + + "alSearchRequest.UserAnswer.SelectedAnswerB\003\340A\001H\000\032e\n" + + "\016SelectedAnswer\022S\n" + + "\027product_attribute_value\030\001" + + " \001(\0132-.google.cloud.retail.v2.ProductAttributeValueB\003\340A\001B\006\n" + + "\004type\032\203\003\n" + + "\033ConversationalFilteringSpec\022.\n" + + "\037enable_conversational_filtering\030\001 \001(\010B\005\030\001\340A\001\022X\n" + + "\013user_answer\030\002 \001(\0132>.google.cloud.reta" + + "il.v2.ConversationalSearchRequest.UserAnswerB\003\340A\001\022\200\001\n" + + "\035conversational_filtering_mode\030\004 \001(\0162T.google.cloud.retail.v2.Conve" + + "rsationalSearchRequest.ConversationalFilteringSpec.ModeB\003\340A\001\"W\n" + + "\004Mode\022\024\n" + + "\020MODE_UNSPECIFIED\020\000\022\014\n" + + "\010DISABLED\020\001\022\013\n" + + "\007ENABLED\020\002\022\036\n" + + "\032CONVERSATIONAL_FILTER_ONLY\020\003\0321\n" + + "\017UserLabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"\315\t\n" + + "\034ConversationalSearchResponse\022\030\n" + + "\020user_query_types\030\n" + + " \003(\t\022$\n" + + "\034conversational_text_response\030\002 \001(\t\022`\n" + + "\021followup_question\030\003" + + " \001(\0132E.google.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion\022\027\n" + + "\017conversation_id\030\004 \001(\t\022Z\n" + + "\016refined_search\030\006" + + " \003(\0132B.google.cloud.retail.v2.ConversationalSearchResponse.RefinedSearch\022{\n" + + "\037conversational_filtering_result\030\007 \001(\0132R.goog" + + "le.cloud.retail.v2.ConversationalSearchResponse.ConversationalFilteringResult\022N\n" + + "\005state\030\t \001(\0162:.google.cloud.retail.v2.Co" + + "nversationalSearchResponse.StateB\003\340A\003\032\202\002\n" + + "\020FollowupQuestion\022\031\n" + + "\021followup_question\030\001 \001(\t\022p\n" + + "\021suggested_answers\030\002 \003(\0132U.googl" + + "e.cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer\032a\n" + + "\017SuggestedAnswer\022N\n" + + "\027product_attribute_value\030\001" + + " \001(\0132-.google.cloud.retail.v2.ProductAttributeValue\032\036\n\r" + + "RefinedSearch\022\r\n" + + "\005query\030\001 \001(\t\032\345\002\n" + + "\035ConversationalFilteringResult\022`\n" + + "\021followup_question\030\001 \001(\0132E.google" + + ".cloud.retail.v2.ConversationalSearchResponse.FollowupQuestion\022~\n" + + "\021additional_filter\030\002 \001(\0132c.google.cloud.retail.v2.Conve" + + "rsationalSearchResponse.ConversationalFilteringResult.AdditionalFilter\032b\n" + + "\020AdditionalFilter\022N\n" + + "\027product_attribute_value\030\001 " + + "\001(\0132-.google.cloud.retail.v2.ProductAttributeValue\"<\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\r\n" + + "\tSTREAMING\020\001\022\r\n" + + "\tSUCCEEDED\020\0022\256\003\n" + + "\033ConversationalSearchService\022\303\002\n" + + "\024ConversationalSearch\0223.google.cloud.retail.v2.Conve" + + "rsationalSearchRequest\0324.google.cloud.re" + + "tail.v2.ConversationalSearchResponse\"\275\001\202" + + "\323\344\223\002\266\001\"S/v2/{placement=projects/*/locati" + + "ons/*/catalogs/*/placements/*}:conversationalSearch:\001*Z\\\"W/v2/{placement=project" + + "s/*/locations/*/catalogs/*/servingConfig" + + "s/*}:conversationalSearch:\001*0\001\032I\312A\025retai" + + "l.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\313\001\n" + + "\032com.google.cloud.retail.v2B ConversationalSearchSe" + + "rviceProtoP\001Z2cloud.google.com/go/retail" + + "/apiv2/retailpb;retailpb\242\002\006RETAIL\252\002\026Goog" + + "le.Cloud.Retail.V2\312\002\026Google\\Cloud\\Retail" + + "\\V2\352\002\031Google::Cloud::Retail::V2b\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.retail.v2.CommonProto.getDescriptor(), + com.google.cloud.retail.v2.SafetyProto.getDescriptor(), + com.google.cloud.retail.v2.SearchServiceProto.getDescriptor(), + }); + internal_static_google_cloud_retail_v2_ConversationalSearchRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_retail_v2_ConversationalSearchRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2_ConversationalSearchRequest_descriptor, + new java.lang.String[] { + "Placement", + "Branch", + "Query", + "PageCategories", + "ConversationId", + "SearchParams", + "VisitorId", + "UserInfo", + "ConversationalFilteringSpec", + "UserLabels", + "SafetySettings", + }); + internal_static_google_cloud_retail_v2_ConversationalSearchRequest_SearchParams_descriptor = + internal_static_google_cloud_retail_v2_ConversationalSearchRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_retail_v2_ConversationalSearchRequest_SearchParams_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2_ConversationalSearchRequest_SearchParams_descriptor, + new java.lang.String[] { + "Filter", "CanonicalFilter", "SortBy", "BoostSpec", + }); + internal_static_google_cloud_retail_v2_ConversationalSearchRequest_UserAnswer_descriptor = + internal_static_google_cloud_retail_v2_ConversationalSearchRequest_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_retail_v2_ConversationalSearchRequest_UserAnswer_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2_ConversationalSearchRequest_UserAnswer_descriptor, + new java.lang.String[] { + "TextAnswer", "SelectedAnswer", "Type", + }); + internal_static_google_cloud_retail_v2_ConversationalSearchRequest_UserAnswer_SelectedAnswer_descriptor = + internal_static_google_cloud_retail_v2_ConversationalSearchRequest_UserAnswer_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_retail_v2_ConversationalSearchRequest_UserAnswer_SelectedAnswer_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2_ConversationalSearchRequest_UserAnswer_SelectedAnswer_descriptor, + new java.lang.String[] { + "ProductAttributeValue", + }); + internal_static_google_cloud_retail_v2_ConversationalSearchRequest_ConversationalFilteringSpec_descriptor = + internal_static_google_cloud_retail_v2_ConversationalSearchRequest_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_retail_v2_ConversationalSearchRequest_ConversationalFilteringSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2_ConversationalSearchRequest_ConversationalFilteringSpec_descriptor, + new java.lang.String[] { + "EnableConversationalFiltering", "UserAnswer", "ConversationalFilteringMode", + }); + internal_static_google_cloud_retail_v2_ConversationalSearchRequest_UserLabelsEntry_descriptor = + internal_static_google_cloud_retail_v2_ConversationalSearchRequest_descriptor + .getNestedTypes() + .get(3); + internal_static_google_cloud_retail_v2_ConversationalSearchRequest_UserLabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2_ConversationalSearchRequest_UserLabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_retail_v2_ConversationalSearchResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_retail_v2_ConversationalSearchResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2_ConversationalSearchResponse_descriptor, + new java.lang.String[] { + "UserQueryTypes", + "ConversationalTextResponse", + "FollowupQuestion", + "ConversationId", + "RefinedSearch", + "ConversationalFilteringResult", + "State", + }); + internal_static_google_cloud_retail_v2_ConversationalSearchResponse_FollowupQuestion_descriptor = + internal_static_google_cloud_retail_v2_ConversationalSearchResponse_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_retail_v2_ConversationalSearchResponse_FollowupQuestion_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2_ConversationalSearchResponse_FollowupQuestion_descriptor, + new java.lang.String[] { + "FollowupQuestion", "SuggestedAnswers", + }); + internal_static_google_cloud_retail_v2_ConversationalSearchResponse_FollowupQuestion_SuggestedAnswer_descriptor = + internal_static_google_cloud_retail_v2_ConversationalSearchResponse_FollowupQuestion_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_retail_v2_ConversationalSearchResponse_FollowupQuestion_SuggestedAnswer_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2_ConversationalSearchResponse_FollowupQuestion_SuggestedAnswer_descriptor, + new java.lang.String[] { + "ProductAttributeValue", + }); + internal_static_google_cloud_retail_v2_ConversationalSearchResponse_RefinedSearch_descriptor = + internal_static_google_cloud_retail_v2_ConversationalSearchResponse_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_retail_v2_ConversationalSearchResponse_RefinedSearch_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2_ConversationalSearchResponse_RefinedSearch_descriptor, + new java.lang.String[] { + "Query", + }); + internal_static_google_cloud_retail_v2_ConversationalSearchResponse_ConversationalFilteringResult_descriptor = + internal_static_google_cloud_retail_v2_ConversationalSearchResponse_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_retail_v2_ConversationalSearchResponse_ConversationalFilteringResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2_ConversationalSearchResponse_ConversationalFilteringResult_descriptor, + new java.lang.String[] { + "FollowupQuestion", "AdditionalFilter", + }); + internal_static_google_cloud_retail_v2_ConversationalSearchResponse_ConversationalFilteringResult_AdditionalFilter_descriptor = + internal_static_google_cloud_retail_v2_ConversationalSearchResponse_ConversationalFilteringResult_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_retail_v2_ConversationalSearchResponse_ConversationalFilteringResult_AdditionalFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2_ConversationalSearchResponse_ConversationalFilteringResult_AdditionalFilter_descriptor, + new java.lang.String[] { + "ProductAttributeValue", + }); + 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.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + 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.retail.v2.CommonProto.getDescriptor(); + com.google.cloud.retail.v2.SafetyProto.getDescriptor(); + com.google.cloud.retail.v2.SearchServiceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/HarmCategory.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/HarmCategory.java new file mode 100644 index 000000000000..8dd01ee1f9c7 --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/HarmCategory.java @@ -0,0 +1,248 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/retail/v2/safety.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.retail.v2; + +/** + * + * + *
    + * Harm categories that will block the content.
    + * 
    + * + * Protobuf enum {@code google.cloud.retail.v2.HarmCategory} + */ +public enum HarmCategory implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +   * The harm category is unspecified.
    +   * 
    + * + * HARM_CATEGORY_UNSPECIFIED = 0; + */ + HARM_CATEGORY_UNSPECIFIED(0), + /** + * + * + *
    +   * The harm category is hate speech.
    +   * 
    + * + * HARM_CATEGORY_HATE_SPEECH = 1; + */ + HARM_CATEGORY_HATE_SPEECH(1), + /** + * + * + *
    +   * The harm category is dangerous content.
    +   * 
    + * + * HARM_CATEGORY_DANGEROUS_CONTENT = 2; + */ + HARM_CATEGORY_DANGEROUS_CONTENT(2), + /** + * + * + *
    +   * The harm category is harassment.
    +   * 
    + * + * HARM_CATEGORY_HARASSMENT = 3; + */ + HARM_CATEGORY_HARASSMENT(3), + /** + * + * + *
    +   * The harm category is sexually explicit content.
    +   * 
    + * + * HARM_CATEGORY_SEXUALLY_EXPLICIT = 4; + */ + HARM_CATEGORY_SEXUALLY_EXPLICIT(4), + /** + * + * + *
    +   * The harm category is civic integrity.
    +   * 
    + * + * HARM_CATEGORY_CIVIC_INTEGRITY = 5; + */ + HARM_CATEGORY_CIVIC_INTEGRITY(5), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +   * The harm category is unspecified.
    +   * 
    + * + * HARM_CATEGORY_UNSPECIFIED = 0; + */ + public static final int HARM_CATEGORY_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +   * The harm category is hate speech.
    +   * 
    + * + * HARM_CATEGORY_HATE_SPEECH = 1; + */ + public static final int HARM_CATEGORY_HATE_SPEECH_VALUE = 1; + + /** + * + * + *
    +   * The harm category is dangerous content.
    +   * 
    + * + * HARM_CATEGORY_DANGEROUS_CONTENT = 2; + */ + public static final int HARM_CATEGORY_DANGEROUS_CONTENT_VALUE = 2; + + /** + * + * + *
    +   * The harm category is harassment.
    +   * 
    + * + * HARM_CATEGORY_HARASSMENT = 3; + */ + public static final int HARM_CATEGORY_HARASSMENT_VALUE = 3; + + /** + * + * + *
    +   * The harm category is sexually explicit content.
    +   * 
    + * + * HARM_CATEGORY_SEXUALLY_EXPLICIT = 4; + */ + public static final int HARM_CATEGORY_SEXUALLY_EXPLICIT_VALUE = 4; + + /** + * + * + *
    +   * The harm category is civic integrity.
    +   * 
    + * + * HARM_CATEGORY_CIVIC_INTEGRITY = 5; + */ + public static final int HARM_CATEGORY_CIVIC_INTEGRITY_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static HarmCategory 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 HarmCategory forNumber(int value) { + switch (value) { + case 0: + return HARM_CATEGORY_UNSPECIFIED; + case 1: + return HARM_CATEGORY_HATE_SPEECH; + case 2: + return HARM_CATEGORY_DANGEROUS_CONTENT; + case 3: + return HARM_CATEGORY_HARASSMENT; + case 4: + return HARM_CATEGORY_SEXUALLY_EXPLICIT; + case 5: + return HARM_CATEGORY_CIVIC_INTEGRITY; + 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 HarmCategory findValueByNumber(int number) { + return HarmCategory.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.retail.v2.SafetyProto.getDescriptor().getEnumTypes().get(0); + } + + private static final HarmCategory[] VALUES = values(); + + public static HarmCategory 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 HarmCategory(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.retail.v2.HarmCategory) +} diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/SafetyProto.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/SafetyProto.java new file mode 100644 index 000000000000..ba7611900897 --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/SafetyProto.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/retail/v2/safety.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.retail.v2; + +public final class SafetyProto { + private SafetyProto() {} + + 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_retail_v2_SafetySetting_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2_SafetySetting_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/retail/v2/safety.proto\022\026g" + + "oogle.cloud.retail.v2\032\037google/api/field_" + + "behavior.proto\"\325\003\n\rSafetySetting\0226\n\010cate" + + "gory\030\001 \001(\0162$.google.cloud.retail.v2.Harm" + + "Category\022K\n\tthreshold\030\002 \001(\01628.google.clo" + + "ud.retail.v2.SafetySetting.HarmBlockThre" + + "shold\022J\n\006method\030\003 \001(\01625.google.cloud.ret" + + "ail.v2.SafetySetting.HarmBlockMethodB\003\340A" + + "\001\"\235\001\n\022HarmBlockThreshold\022$\n HARM_BLOCK_T" + + "HRESHOLD_UNSPECIFIED\020\000\022\027\n\023BLOCK_LOW_AND_" + + "ABOVE\020\001\022\032\n\026BLOCK_MEDIUM_AND_ABOVE\020\002\022\023\n\017B" + + "LOCK_ONLY_HIGH\020\003\022\016\n\nBLOCK_NONE\020\004\022\007\n\003OFF\020" + + "\005\"S\n\017HarmBlockMethod\022!\n\035HARM_BLOCK_METHO" + + "D_UNSPECIFIED\020\000\022\014\n\010SEVERITY\020\001\022\017\n\013PROBABI" + + "LITY\020\002*\327\001\n\014HarmCategory\022\035\n\031HARM_CATEGORY" + + "_UNSPECIFIED\020\000\022\035\n\031HARM_CATEGORY_HATE_SPE" + + "ECH\020\001\022#\n\037HARM_CATEGORY_DANGEROUS_CONTENT" + + "\020\002\022\034\n\030HARM_CATEGORY_HARASSMENT\020\003\022#\n\037HARM" + + "_CATEGORY_SEXUALLY_EXPLICIT\020\004\022!\n\035HARM_CA" + + "TEGORY_CIVIC_INTEGRITY\020\005B\266\001\n\032com.google." + + "cloud.retail.v2B\013SafetyProtoP\001Z2cloud.go" + + "ogle.com/go/retail/apiv2/retailpb;retail" + + "pb\242\002\006RETAIL\252\002\026Google.Cloud.Retail.V2\312\002\026G" + + "oogle\\Cloud\\Retail\\V2\352\002\031Google::Cloud::R" + + "etail::V2b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + }); + internal_static_google_cloud_retail_v2_SafetySetting_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_retail_v2_SafetySetting_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2_SafetySetting_descriptor, + new java.lang.String[] { + "Category", "Threshold", "Method", + }); + 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-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/SafetySetting.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/SafetySetting.java new file mode 100644 index 000000000000..25a0b32827e9 --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/SafetySetting.java @@ -0,0 +1,1341 @@ +/* + * 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/retail/v2/safety.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.retail.v2; + +/** + * + * + *
    + * Safety settings.
    + * 
    + * + * Protobuf type {@code google.cloud.retail.v2.SafetySetting} + */ +public final class SafetySetting extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2.SafetySetting) + SafetySettingOrBuilder { + private static final long serialVersionUID = 0L; + + // Use SafetySetting.newBuilder() to construct. + private SafetySetting(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SafetySetting() { + category_ = 0; + threshold_ = 0; + method_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SafetySetting(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2.SafetyProto + .internal_static_google_cloud_retail_v2_SafetySetting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2.SafetyProto + .internal_static_google_cloud_retail_v2_SafetySetting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2.SafetySetting.class, + com.google.cloud.retail.v2.SafetySetting.Builder.class); + } + + /** + * + * + *
    +   * Probability based thresholds levels for blocking.
    +   * 
    + * + * Protobuf enum {@code google.cloud.retail.v2.SafetySetting.HarmBlockThreshold} + */ + public enum HarmBlockThreshold implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Unspecified harm block threshold.
    +     * 
    + * + * HARM_BLOCK_THRESHOLD_UNSPECIFIED = 0; + */ + HARM_BLOCK_THRESHOLD_UNSPECIFIED(0), + /** + * + * + *
    +     * Block low threshold and above (i.e. block more).
    +     * 
    + * + * BLOCK_LOW_AND_ABOVE = 1; + */ + BLOCK_LOW_AND_ABOVE(1), + /** + * + * + *
    +     * Block medium threshold and above.
    +     * 
    + * + * BLOCK_MEDIUM_AND_ABOVE = 2; + */ + BLOCK_MEDIUM_AND_ABOVE(2), + /** + * + * + *
    +     * Block only high threshold (i.e. block less).
    +     * 
    + * + * BLOCK_ONLY_HIGH = 3; + */ + BLOCK_ONLY_HIGH(3), + /** + * + * + *
    +     * Block none.
    +     * 
    + * + * BLOCK_NONE = 4; + */ + BLOCK_NONE(4), + /** + * + * + *
    +     * Turn off the safety filter.
    +     * 
    + * + * OFF = 5; + */ + OFF(5), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * Unspecified harm block threshold.
    +     * 
    + * + * HARM_BLOCK_THRESHOLD_UNSPECIFIED = 0; + */ + public static final int HARM_BLOCK_THRESHOLD_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +     * Block low threshold and above (i.e. block more).
    +     * 
    + * + * BLOCK_LOW_AND_ABOVE = 1; + */ + public static final int BLOCK_LOW_AND_ABOVE_VALUE = 1; + + /** + * + * + *
    +     * Block medium threshold and above.
    +     * 
    + * + * BLOCK_MEDIUM_AND_ABOVE = 2; + */ + public static final int BLOCK_MEDIUM_AND_ABOVE_VALUE = 2; + + /** + * + * + *
    +     * Block only high threshold (i.e. block less).
    +     * 
    + * + * BLOCK_ONLY_HIGH = 3; + */ + public static final int BLOCK_ONLY_HIGH_VALUE = 3; + + /** + * + * + *
    +     * Block none.
    +     * 
    + * + * BLOCK_NONE = 4; + */ + public static final int BLOCK_NONE_VALUE = 4; + + /** + * + * + *
    +     * Turn off the safety filter.
    +     * 
    + * + * OFF = 5; + */ + public static final int OFF_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static HarmBlockThreshold 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 HarmBlockThreshold forNumber(int value) { + switch (value) { + case 0: + return HARM_BLOCK_THRESHOLD_UNSPECIFIED; + case 1: + return BLOCK_LOW_AND_ABOVE; + case 2: + return BLOCK_MEDIUM_AND_ABOVE; + case 3: + return BLOCK_ONLY_HIGH; + case 4: + return BLOCK_NONE; + case 5: + return OFF; + 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 HarmBlockThreshold findValueByNumber(int number) { + return HarmBlockThreshold.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.retail.v2.SafetySetting.getDescriptor().getEnumTypes().get(0); + } + + private static final HarmBlockThreshold[] VALUES = values(); + + public static HarmBlockThreshold 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 HarmBlockThreshold(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.retail.v2.SafetySetting.HarmBlockThreshold) + } + + /** + * + * + *
    +   * Probability vs severity.
    +   * 
    + * + * Protobuf enum {@code google.cloud.retail.v2.SafetySetting.HarmBlockMethod} + */ + public enum HarmBlockMethod implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * The harm block method is unspecified.
    +     * 
    + * + * HARM_BLOCK_METHOD_UNSPECIFIED = 0; + */ + HARM_BLOCK_METHOD_UNSPECIFIED(0), + /** + * + * + *
    +     * The harm block method uses both probability and severity scores.
    +     * 
    + * + * SEVERITY = 1; + */ + SEVERITY(1), + /** + * + * + *
    +     * The harm block method uses the probability score.
    +     * 
    + * + * PROBABILITY = 2; + */ + PROBABILITY(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * The harm block method is unspecified.
    +     * 
    + * + * HARM_BLOCK_METHOD_UNSPECIFIED = 0; + */ + public static final int HARM_BLOCK_METHOD_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +     * The harm block method uses both probability and severity scores.
    +     * 
    + * + * SEVERITY = 1; + */ + public static final int SEVERITY_VALUE = 1; + + /** + * + * + *
    +     * The harm block method uses the probability score.
    +     * 
    + * + * PROBABILITY = 2; + */ + public static final int PROBABILITY_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 HarmBlockMethod 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 HarmBlockMethod forNumber(int value) { + switch (value) { + case 0: + return HARM_BLOCK_METHOD_UNSPECIFIED; + case 1: + return SEVERITY; + case 2: + return PROBABILITY; + 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 HarmBlockMethod findValueByNumber(int number) { + return HarmBlockMethod.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.retail.v2.SafetySetting.getDescriptor().getEnumTypes().get(1); + } + + private static final HarmBlockMethod[] VALUES = values(); + + public static HarmBlockMethod 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 HarmBlockMethod(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.retail.v2.SafetySetting.HarmBlockMethod) + } + + public static final int CATEGORY_FIELD_NUMBER = 1; + private int category_ = 0; + + /** + * + * + *
    +   * Harm category.
    +   * 
    + * + * .google.cloud.retail.v2.HarmCategory category = 1; + * + * @return The enum numeric value on the wire for category. + */ + @java.lang.Override + public int getCategoryValue() { + return category_; + } + + /** + * + * + *
    +   * Harm category.
    +   * 
    + * + * .google.cloud.retail.v2.HarmCategory category = 1; + * + * @return The category. + */ + @java.lang.Override + public com.google.cloud.retail.v2.HarmCategory getCategory() { + com.google.cloud.retail.v2.HarmCategory result = + com.google.cloud.retail.v2.HarmCategory.forNumber(category_); + return result == null ? com.google.cloud.retail.v2.HarmCategory.UNRECOGNIZED : result; + } + + public static final int THRESHOLD_FIELD_NUMBER = 2; + private int threshold_ = 0; + + /** + * + * + *
    +   * The harm block threshold.
    +   * 
    + * + * .google.cloud.retail.v2.SafetySetting.HarmBlockThreshold threshold = 2; + * + * @return The enum numeric value on the wire for threshold. + */ + @java.lang.Override + public int getThresholdValue() { + return threshold_; + } + + /** + * + * + *
    +   * The harm block threshold.
    +   * 
    + * + * .google.cloud.retail.v2.SafetySetting.HarmBlockThreshold threshold = 2; + * + * @return The threshold. + */ + @java.lang.Override + public com.google.cloud.retail.v2.SafetySetting.HarmBlockThreshold getThreshold() { + com.google.cloud.retail.v2.SafetySetting.HarmBlockThreshold result = + com.google.cloud.retail.v2.SafetySetting.HarmBlockThreshold.forNumber(threshold_); + return result == null + ? com.google.cloud.retail.v2.SafetySetting.HarmBlockThreshold.UNRECOGNIZED + : result; + } + + public static final int METHOD_FIELD_NUMBER = 3; + private int method_ = 0; + + /** + * + * + *
    +   * Optional. Specify if the threshold is used for probability or severity
    +   * score. If not specified, the threshold is used for probability score.
    +   * 
    + * + * + * .google.cloud.retail.v2.SafetySetting.HarmBlockMethod method = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for method. + */ + @java.lang.Override + public int getMethodValue() { + return method_; + } + + /** + * + * + *
    +   * Optional. Specify if the threshold is used for probability or severity
    +   * score. If not specified, the threshold is used for probability score.
    +   * 
    + * + * + * .google.cloud.retail.v2.SafetySetting.HarmBlockMethod method = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The method. + */ + @java.lang.Override + public com.google.cloud.retail.v2.SafetySetting.HarmBlockMethod getMethod() { + com.google.cloud.retail.v2.SafetySetting.HarmBlockMethod result = + com.google.cloud.retail.v2.SafetySetting.HarmBlockMethod.forNumber(method_); + return result == null + ? com.google.cloud.retail.v2.SafetySetting.HarmBlockMethod.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 (category_ + != com.google.cloud.retail.v2.HarmCategory.HARM_CATEGORY_UNSPECIFIED.getNumber()) { + output.writeEnum(1, category_); + } + if (threshold_ + != com.google.cloud.retail.v2.SafetySetting.HarmBlockThreshold + .HARM_BLOCK_THRESHOLD_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, threshold_); + } + if (method_ + != com.google.cloud.retail.v2.SafetySetting.HarmBlockMethod.HARM_BLOCK_METHOD_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, method_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (category_ + != com.google.cloud.retail.v2.HarmCategory.HARM_CATEGORY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, category_); + } + if (threshold_ + != com.google.cloud.retail.v2.SafetySetting.HarmBlockThreshold + .HARM_BLOCK_THRESHOLD_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, threshold_); + } + if (method_ + != com.google.cloud.retail.v2.SafetySetting.HarmBlockMethod.HARM_BLOCK_METHOD_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, method_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.retail.v2.SafetySetting)) { + return super.equals(obj); + } + com.google.cloud.retail.v2.SafetySetting other = (com.google.cloud.retail.v2.SafetySetting) obj; + + if (category_ != other.category_) return false; + if (threshold_ != other.threshold_) return false; + if (method_ != other.method_) 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) + CATEGORY_FIELD_NUMBER; + hash = (53 * hash) + category_; + hash = (37 * hash) + THRESHOLD_FIELD_NUMBER; + hash = (53 * hash) + threshold_; + hash = (37 * hash) + METHOD_FIELD_NUMBER; + hash = (53 * hash) + method_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2.SafetySetting parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.SafetySetting 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.retail.v2.SafetySetting parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.SafetySetting parseFrom( + 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.retail.v2.SafetySetting parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.SafetySetting parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2.SafetySetting parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.SafetySetting 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.retail.v2.SafetySetting parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.SafetySetting 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.retail.v2.SafetySetting parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.SafetySetting 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.retail.v2.SafetySetting prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
    +   * Safety settings.
    +   * 
    + * + * Protobuf type {@code google.cloud.retail.v2.SafetySetting} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2.SafetySetting) + com.google.cloud.retail.v2.SafetySettingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2.SafetyProto + .internal_static_google_cloud_retail_v2_SafetySetting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2.SafetyProto + .internal_static_google_cloud_retail_v2_SafetySetting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2.SafetySetting.class, + com.google.cloud.retail.v2.SafetySetting.Builder.class); + } + + // Construct using com.google.cloud.retail.v2.SafetySetting.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + category_ = 0; + threshold_ = 0; + method_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2.SafetyProto + .internal_static_google_cloud_retail_v2_SafetySetting_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2.SafetySetting getDefaultInstanceForType() { + return com.google.cloud.retail.v2.SafetySetting.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2.SafetySetting build() { + com.google.cloud.retail.v2.SafetySetting result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2.SafetySetting buildPartial() { + com.google.cloud.retail.v2.SafetySetting result = + new com.google.cloud.retail.v2.SafetySetting(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.retail.v2.SafetySetting result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.category_ = category_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.threshold_ = threshold_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.method_ = method_; + } + } + + @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.retail.v2.SafetySetting) { + return mergeFrom((com.google.cloud.retail.v2.SafetySetting) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.retail.v2.SafetySetting other) { + if (other == com.google.cloud.retail.v2.SafetySetting.getDefaultInstance()) return this; + if (other.category_ != 0) { + setCategoryValue(other.getCategoryValue()); + } + if (other.threshold_ != 0) { + setThresholdValue(other.getThresholdValue()); + } + if (other.method_ != 0) { + setMethodValue(other.getMethodValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + category_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + threshold_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + method_ = 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 int category_ = 0; + + /** + * + * + *
    +     * Harm category.
    +     * 
    + * + * .google.cloud.retail.v2.HarmCategory category = 1; + * + * @return The enum numeric value on the wire for category. + */ + @java.lang.Override + public int getCategoryValue() { + return category_; + } + + /** + * + * + *
    +     * Harm category.
    +     * 
    + * + * .google.cloud.retail.v2.HarmCategory category = 1; + * + * @param value The enum numeric value on the wire for category to set. + * @return This builder for chaining. + */ + public Builder setCategoryValue(int value) { + category_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Harm category.
    +     * 
    + * + * .google.cloud.retail.v2.HarmCategory category = 1; + * + * @return The category. + */ + @java.lang.Override + public com.google.cloud.retail.v2.HarmCategory getCategory() { + com.google.cloud.retail.v2.HarmCategory result = + com.google.cloud.retail.v2.HarmCategory.forNumber(category_); + return result == null ? com.google.cloud.retail.v2.HarmCategory.UNRECOGNIZED : result; + } + + /** + * + * + *
    +     * Harm category.
    +     * 
    + * + * .google.cloud.retail.v2.HarmCategory category = 1; + * + * @param value The category to set. + * @return This builder for chaining. + */ + public Builder setCategory(com.google.cloud.retail.v2.HarmCategory value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + category_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Harm category.
    +     * 
    + * + * .google.cloud.retail.v2.HarmCategory category = 1; + * + * @return This builder for chaining. + */ + public Builder clearCategory() { + bitField0_ = (bitField0_ & ~0x00000001); + category_ = 0; + onChanged(); + return this; + } + + private int threshold_ = 0; + + /** + * + * + *
    +     * The harm block threshold.
    +     * 
    + * + * .google.cloud.retail.v2.SafetySetting.HarmBlockThreshold threshold = 2; + * + * @return The enum numeric value on the wire for threshold. + */ + @java.lang.Override + public int getThresholdValue() { + return threshold_; + } + + /** + * + * + *
    +     * The harm block threshold.
    +     * 
    + * + * .google.cloud.retail.v2.SafetySetting.HarmBlockThreshold threshold = 2; + * + * @param value The enum numeric value on the wire for threshold to set. + * @return This builder for chaining. + */ + public Builder setThresholdValue(int value) { + threshold_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * The harm block threshold.
    +     * 
    + * + * .google.cloud.retail.v2.SafetySetting.HarmBlockThreshold threshold = 2; + * + * @return The threshold. + */ + @java.lang.Override + public com.google.cloud.retail.v2.SafetySetting.HarmBlockThreshold getThreshold() { + com.google.cloud.retail.v2.SafetySetting.HarmBlockThreshold result = + com.google.cloud.retail.v2.SafetySetting.HarmBlockThreshold.forNumber(threshold_); + return result == null + ? com.google.cloud.retail.v2.SafetySetting.HarmBlockThreshold.UNRECOGNIZED + : result; + } + + /** + * + * + *
    +     * The harm block threshold.
    +     * 
    + * + * .google.cloud.retail.v2.SafetySetting.HarmBlockThreshold threshold = 2; + * + * @param value The threshold to set. + * @return This builder for chaining. + */ + public Builder setThreshold(com.google.cloud.retail.v2.SafetySetting.HarmBlockThreshold value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + threshold_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +     * The harm block threshold.
    +     * 
    + * + * .google.cloud.retail.v2.SafetySetting.HarmBlockThreshold threshold = 2; + * + * @return This builder for chaining. + */ + public Builder clearThreshold() { + bitField0_ = (bitField0_ & ~0x00000002); + threshold_ = 0; + onChanged(); + return this; + } + + private int method_ = 0; + + /** + * + * + *
    +     * Optional. Specify if the threshold is used for probability or severity
    +     * score. If not specified, the threshold is used for probability score.
    +     * 
    + * + * + * .google.cloud.retail.v2.SafetySetting.HarmBlockMethod method = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for method. + */ + @java.lang.Override + public int getMethodValue() { + return method_; + } + + /** + * + * + *
    +     * Optional. Specify if the threshold is used for probability or severity
    +     * score. If not specified, the threshold is used for probability score.
    +     * 
    + * + * + * .google.cloud.retail.v2.SafetySetting.HarmBlockMethod method = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for method to set. + * @return This builder for chaining. + */ + public Builder setMethodValue(int value) { + method_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Specify if the threshold is used for probability or severity
    +     * score. If not specified, the threshold is used for probability score.
    +     * 
    + * + * + * .google.cloud.retail.v2.SafetySetting.HarmBlockMethod method = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The method. + */ + @java.lang.Override + public com.google.cloud.retail.v2.SafetySetting.HarmBlockMethod getMethod() { + com.google.cloud.retail.v2.SafetySetting.HarmBlockMethod result = + com.google.cloud.retail.v2.SafetySetting.HarmBlockMethod.forNumber(method_); + return result == null + ? com.google.cloud.retail.v2.SafetySetting.HarmBlockMethod.UNRECOGNIZED + : result; + } + + /** + * + * + *
    +     * Optional. Specify if the threshold is used for probability or severity
    +     * score. If not specified, the threshold is used for probability score.
    +     * 
    + * + * + * .google.cloud.retail.v2.SafetySetting.HarmBlockMethod method = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The method to set. + * @return This builder for chaining. + */ + public Builder setMethod(com.google.cloud.retail.v2.SafetySetting.HarmBlockMethod value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + method_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Specify if the threshold is used for probability or severity
    +     * score. If not specified, the threshold is used for probability score.
    +     * 
    + * + * + * .google.cloud.retail.v2.SafetySetting.HarmBlockMethod method = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearMethod() { + bitField0_ = (bitField0_ & ~0x00000004); + method_ = 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.retail.v2.SafetySetting) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2.SafetySetting) + private static final com.google.cloud.retail.v2.SafetySetting DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.retail.v2.SafetySetting(); + } + + public static com.google.cloud.retail.v2.SafetySetting getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SafetySetting parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.retail.v2.SafetySetting getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/SafetySettingOrBuilder.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/SafetySettingOrBuilder.java new file mode 100644 index 000000000000..aa37b511e4c1 --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/SafetySettingOrBuilder.java @@ -0,0 +1,110 @@ +/* + * 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/retail/v2/safety.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.retail.v2; + +public interface SafetySettingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2.SafetySetting) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Harm category.
    +   * 
    + * + * .google.cloud.retail.v2.HarmCategory category = 1; + * + * @return The enum numeric value on the wire for category. + */ + int getCategoryValue(); + + /** + * + * + *
    +   * Harm category.
    +   * 
    + * + * .google.cloud.retail.v2.HarmCategory category = 1; + * + * @return The category. + */ + com.google.cloud.retail.v2.HarmCategory getCategory(); + + /** + * + * + *
    +   * The harm block threshold.
    +   * 
    + * + * .google.cloud.retail.v2.SafetySetting.HarmBlockThreshold threshold = 2; + * + * @return The enum numeric value on the wire for threshold. + */ + int getThresholdValue(); + + /** + * + * + *
    +   * The harm block threshold.
    +   * 
    + * + * .google.cloud.retail.v2.SafetySetting.HarmBlockThreshold threshold = 2; + * + * @return The threshold. + */ + com.google.cloud.retail.v2.SafetySetting.HarmBlockThreshold getThreshold(); + + /** + * + * + *
    +   * Optional. Specify if the threshold is used for probability or severity
    +   * score. If not specified, the threshold is used for probability score.
    +   * 
    + * + * + * .google.cloud.retail.v2.SafetySetting.HarmBlockMethod method = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for method. + */ + int getMethodValue(); + + /** + * + * + *
    +   * Optional. Specify if the threshold is used for probability or severity
    +   * score. If not specified, the threshold is used for probability score.
    +   * 
    + * + * + * .google.cloud.retail.v2.SafetySetting.HarmBlockMethod method = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The method. + */ + com.google.cloud.retail.v2.SafetySetting.HarmBlockMethod getMethod(); +} diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/conversational_search_service.proto b/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/conversational_search_service.proto new file mode 100644 index 000000000000..77fafd3dbaf6 --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/conversational_search_service.proto @@ -0,0 +1,359 @@ +// 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.retail.v2; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/retail/v2/common.proto"; +import "google/cloud/retail/v2/safety.proto"; +import "google/cloud/retail/v2/search_service.proto"; + +option csharp_namespace = "Google.Cloud.Retail.V2"; +option go_package = "cloud.google.com/go/retail/apiv2/retailpb;retailpb"; +option java_multiple_files = true; +option java_outer_classname = "ConversationalSearchServiceProto"; +option java_package = "com.google.cloud.retail.v2"; +option objc_class_prefix = "RETAIL"; +option php_namespace = "Google\\Cloud\\Retail\\V2"; +option ruby_package = "Google::Cloud::Retail::V2"; + +// Service for retail conversational search. +// +// This feature is only available for users who have Retail Conversational +// Search enabled. Enable Retail Conversational Search on Cloud Console +// before using this feature. +service ConversationalSearchService { + option (google.api.default_host) = "retail.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Performs a conversational search. + // + // This feature is only available for users who have Conversational Search + // enabled. + rpc ConversationalSearch(ConversationalSearchRequest) + returns (stream ConversationalSearchResponse) { + option (google.api.http) = { + post: "/v2/{placement=projects/*/locations/*/catalogs/*/placements/*}:conversationalSearch" + body: "*" + additional_bindings { + post: "/v2/{placement=projects/*/locations/*/catalogs/*/servingConfigs/*}:conversationalSearch" + body: "*" + } + }; + } +} + +// Request message for +// [ConversationalSearchService.ConversationalSearch][google.cloud.retail.v2.ConversationalSearchService.ConversationalSearch] +// method. +message ConversationalSearchRequest { + // Search parameters. + message SearchParams { + // Optional. The filter string to restrict search results. + // + // The syntax of the filter string is the same as + // [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter]. + string filter = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The canonical filter string to restrict search results. + // + // The syntax of the canonical filter string is the same as + // [SearchRequest.canonical_filter][google.cloud.retail.v2.SearchRequest.canonical_filter]. + string canonical_filter = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The sort string to specify the sorting of search results. + // + // The syntax of the sort string is the same as + // [SearchRequest.sort][]. + string sort_by = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The boost spec to specify the boosting of search results. + // + // The syntax of the boost spec is the same as + // [SearchRequest.boost_spec][google.cloud.retail.v2.SearchRequest.boost_spec]. + SearchRequest.BoostSpec boost_spec = 4 + [(google.api.field_behavior) = OPTIONAL]; + } + + // This field specifies the current user answer during the conversational + // filtering search. This can be either user selected from suggested answers + // or user input plain text. + message UserAnswer { + // This field specifies the selected answers during the conversational + // search. + message SelectedAnswer { + // Optional. This field specifies the selected answer which is a attribute + // key-value. + ProductAttributeValue product_attribute_value = 1 + [(google.api.field_behavior) = OPTIONAL]; + } + + // This field specifies the type of user answer. + oneof type { + // This field specifies the incremental input text from the user during + // the conversational search. + string text_answer = 1; + + // Optional. This field specifies the selected answer during the + // conversational search. This should be a subset of + // [ConversationalSearchResponse.followup_question.suggested_answers][]. + SelectedAnswer selected_answer = 2 + [(google.api.field_behavior) = OPTIONAL]; + } + } + + // This field specifies all conversational filtering related parameters + // addition to conversational retail search. + message ConversationalFilteringSpec { + // Enum to control Conversational Filtering mode. + // A single conversation session including multiple turns supports modes for + // Conversational Search OR Conversational Filtering without + // Conversational Search, but not both. + enum Mode { + // Default value. + MODE_UNSPECIFIED = 0; + + // Disables Conversational Filtering when using Conversational Search. + DISABLED = 1; + + // Enables Conversational Filtering when using Conversational Search. + ENABLED = 2; + + // Enables Conversational Filtering without Conversational Search. + CONVERSATIONAL_FILTER_ONLY = 3; + } + + // Optional. This field is deprecated. Please use + // [ConversationalFilteringSpec.conversational_filtering_mode][google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec.conversational_filtering_mode] + // instead. + bool enable_conversational_filtering = 1 + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; + + // Optional. This field specifies the current user answer during the + // conversational filtering search. It can be either user selected from + // suggested answers or user input plain text. + UserAnswer user_answer = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Mode to control Conversational Filtering. + // Defaults to + // [Mode.DISABLED][google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec.Mode.DISABLED] + // if it's unset. + Mode conversational_filtering_mode = 4 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Required. The resource name of the search engine placement, such as + // `projects/*/locations/global/catalogs/default_catalog/placements/default_search` + // or + // `projects/*/locations/global/catalogs/default_catalog/servingConfigs/default_serving_config` + // This field is used to identify the serving config name and the set + // of models that will be used to make the search. + string placement = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The branch resource name, such as + // `projects/*/locations/global/catalogs/default_catalog/branches/0`. + // + // Use "default_branch" as the branch ID or leave this field empty, to search + // products under the default branch. + string branch = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "retail.googleapis.com/Branch" } + ]; + + // Optional. Raw search query to be searched for. + // + // If this field is empty, the request is considered a category browsing + // request. + string query = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The categories associated with a category page. Must be set for + // category navigation queries to achieve good search quality. The format + // should be the same as + // [UserEvent.page_categories][google.cloud.retail.v2.UserEvent.page_categories]; + // + // To represent full path of category, use '>' sign to separate different + // hierarchies. If '>' is part of the category name, replace it with + // other character(s). + // + // Category pages include special pages such as sales or promotions. For + // instance, a special sale page may have the category hierarchy: + // "pageCategories" : ["Sales > 2017 Black Friday Deals"]. + repeated string page_categories = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. This field specifies the conversation id, which maintains the + // state of the conversation between client side and server side. Use the + // value from the previous + // [ConversationalSearchResponse.conversation_id][google.cloud.retail.v2.ConversationalSearchResponse.conversation_id]. + // For the initial request, this should be empty. + string conversation_id = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Search parameters. + SearchParams search_params = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Required. A unique identifier for tracking visitors. For example, this + // could be implemented with an HTTP cookie, which should be able to uniquely + // identify a visitor on a single device. This unique identifier should not + // change if the visitor logs in or out of the website. + // + // This should be the same identifier as + // [UserEvent.visitor_id][google.cloud.retail.v2.UserEvent.visitor_id]. + // + // The field must be a UTF-8 encoded string with a length limit of 128 + // characters. Otherwise, an INVALID_ARGUMENT error is returned. + string visitor_id = 9 [(google.api.field_behavior) = REQUIRED]; + + // Optional. User information. + UserInfo user_info = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. This field specifies all conversational filtering related + // parameters. + ConversationalFilteringSpec conversational_filtering_spec = 8 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The user labels applied to a resource must meet the following + // requirements: + // + // * Each resource can have multiple labels, up to a maximum of 64. + // * Each label must be a key-value pair. + // * Keys have a minimum length of 1 character and a maximum length of 63 + // characters and cannot be empty. Values can be empty and have a maximum + // length of 63 characters. + // * Keys and values can contain only lowercase letters, numeric characters, + // underscores, and dashes. All characters must use UTF-8 encoding, and + // international characters are allowed. + // * The key portion of a label must be unique. However, you can use the same + // key with multiple resources. + // * Keys must start with a lowercase letter or international character. + // + // See [Google Cloud + // Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) + // for more details. + map user_labels = 12 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The safety settings to be applied to the generated content. + repeated SafetySetting safety_settings = 14 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for +// [ConversationalSearchService.ConversationalSearch][google.cloud.retail.v2.ConversationalSearchService.ConversationalSearch] +// method. +message ConversationalSearchResponse { + // The conversational followup question generated for Intent refinement. + message FollowupQuestion { + // Suggested answers to the follow-up question. + // If it's numerical attribute, only ProductAttributeInterval will be set. + // If it's textual attribute, only productAttributeValue will be set. + message SuggestedAnswer { + // Product attribute value, including an attribute key and an + // attribute value. Other types can be added here in the future. + ProductAttributeValue product_attribute_value = 1; + } + + // The conversational followup question generated for Intent refinement. + string followup_question = 1; + + // The answer options provided to client for the follow-up question. + repeated SuggestedAnswer suggested_answers = 2; + } + + // The proposed refined search for intent-refinement/bundled shopping + // conversation. When using CONVERSATIONAL_FILTER_ONLY mode, the + // refined_query from search response will be populated here. + message RefinedSearch { + // The query to be used for search. + string query = 1; + } + + // This field specifies all related information that is needed on client + // side for UI rendering of conversational filtering search. + message ConversationalFilteringResult { + // Additional filter that client side need to apply. + message AdditionalFilter { + // Product attribute value, including an attribute key and an + // attribute value. Other types can be added here in the future. + ProductAttributeValue product_attribute_value = 1; + } + + // The conversational filtering question. + FollowupQuestion followup_question = 1; + + // This is the incremental additional filters implied from the current + // user answer. User should add the suggested addition filters to the + // previous [ConversationalSearchRequest.search_params.filter][] and + // [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter], and + // use the merged filter in the follow up requests. + AdditionalFilter additional_filter = 2; + } + + // The state of the response generation. + enum State { + // Unknown. + STATE_UNSPECIFIED = 0; + + // Response generation is being streamed. + STREAMING = 1; + + // Response generation has succeeded. + SUCCEEDED = 2; + } + + // The types Retail classifies the search query as. + // + // Supported values are: + // + // - "ORDER_SUPPORT" + // - "SIMPLE_PRODUCT_SEARCH" + // - "INTENT_REFINEMENT" + // - "PRODUCT_DETAILS" + // - "PRODUCT_COMPARISON" + // - "DEALS_AND_COUPONS" + // - "STORE_RELEVANT" + // - "BLOCKLISTED" + // - "BEST_PRODUCT" + // - "RETAIL_SUPPORT" + // - "DISABLED" + repeated string user_query_types = 10; + + // The conversational answer-based text response generated by the Server. + string conversational_text_response = 2; + + // The conversational followup question generated for Intent refinement. + FollowupQuestion followup_question = 3; + + // Conversation UUID. This field will be stored in client side storage to + // maintain the conversation session with server and will be used for next + // search request's + // [ConversationalSearchRequest.conversation_id][google.cloud.retail.v2.ConversationalSearchRequest.conversation_id] + // to restore conversation state in server. + string conversation_id = 4; + + // The proposed refined search queries. They can be used to fetch the relevant + // search results. When using CONVERSATIONAL_FILTER_ONLY mode, the + // refined_query from search response will be populated here. + repeated RefinedSearch refined_search = 6; + + // This field specifies all related information that is needed on client + // side for UI rendering of conversational filtering search. + ConversationalFilteringResult conversational_filtering_result = 7; + + // Output only. The state of the response generation. + State state = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/safety.proto b/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/safety.proto new file mode 100644 index 000000000000..4a7063e5439e --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/safety.proto @@ -0,0 +1,95 @@ +// 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.retail.v2; + +import "google/api/field_behavior.proto"; + +option csharp_namespace = "Google.Cloud.Retail.V2"; +option go_package = "cloud.google.com/go/retail/apiv2/retailpb;retailpb"; +option java_multiple_files = true; +option java_outer_classname = "SafetyProto"; +option java_package = "com.google.cloud.retail.v2"; +option objc_class_prefix = "RETAIL"; +option php_namespace = "Google\\Cloud\\Retail\\V2"; +option ruby_package = "Google::Cloud::Retail::V2"; + +// Harm categories that will block the content. +enum HarmCategory { + // The harm category is unspecified. + HARM_CATEGORY_UNSPECIFIED = 0; + + // The harm category is hate speech. + HARM_CATEGORY_HATE_SPEECH = 1; + + // The harm category is dangerous content. + HARM_CATEGORY_DANGEROUS_CONTENT = 2; + + // The harm category is harassment. + HARM_CATEGORY_HARASSMENT = 3; + + // The harm category is sexually explicit content. + HARM_CATEGORY_SEXUALLY_EXPLICIT = 4; + + // The harm category is civic integrity. + HARM_CATEGORY_CIVIC_INTEGRITY = 5; +} + +// Safety settings. +message SafetySetting { + // Probability based thresholds levels for blocking. + enum HarmBlockThreshold { + // Unspecified harm block threshold. + HARM_BLOCK_THRESHOLD_UNSPECIFIED = 0; + + // Block low threshold and above (i.e. block more). + BLOCK_LOW_AND_ABOVE = 1; + + // Block medium threshold and above. + BLOCK_MEDIUM_AND_ABOVE = 2; + + // Block only high threshold (i.e. block less). + BLOCK_ONLY_HIGH = 3; + + // Block none. + BLOCK_NONE = 4; + + // Turn off the safety filter. + OFF = 5; + } + + // Probability vs severity. + enum HarmBlockMethod { + // The harm block method is unspecified. + HARM_BLOCK_METHOD_UNSPECIFIED = 0; + + // The harm block method uses both probability and severity scores. + SEVERITY = 1; + + // The harm block method uses the probability score. + PROBABILITY = 2; + } + + // Harm category. + HarmCategory category = 1; + + // The harm block threshold. + HarmBlockThreshold threshold = 2; + + // Optional. Specify if the threshold is used for probability or severity + // score. If not specified, the threshold is used for probability score. + HarmBlockMethod method = 3 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ConversationalSearchRequest.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ConversationalSearchRequest.java index 6866169bb78d..3fc97dc1932e 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ConversationalSearchRequest.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ConversationalSearchRequest.java @@ -3874,7 +3874,7 @@ public interface ConversationalFilteringSpecOrBuilder * * @deprecated * google.cloud.retail.v2alpha.ConversationalSearchRequest.ConversationalFilteringSpec.enable_conversational_filtering - * is deprecated. See google/cloud/retail/v2alpha/conversational_search_service.proto;l=142 + * is deprecated. See google/cloud/retail/v2alpha/conversational_search_service.proto;l=145 * @return The enableConversationalFiltering. */ @java.lang.Deprecated @@ -4023,6 +4023,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
          * Enum to control Conversational Filtering mode.
    +     * A single conversation session including multiple turns supports modes for
    +     * Conversational Search OR Conversational Filtering without
    +     * Conversational Search, but not both.
          * 
    * * Protobuf enum {@code @@ -4043,7 +4046,7 @@ public enum Mode implements com.google.protobuf.ProtocolMessageEnum { * * *
    -       * Disable Conversational Filtering.
    +       * Disables Conversational Filtering when using Conversational Search.
            * 
    * * DISABLED = 1; @@ -4053,7 +4056,7 @@ public enum Mode implements com.google.protobuf.ProtocolMessageEnum { * * *
    -       * Enabled Conversational Filtering with default Conversational Search.
    +       * Enables Conversational Filtering when using Conversational Search.
            * 
    * * ENABLED = 2; @@ -4063,7 +4066,7 @@ public enum Mode implements com.google.protobuf.ProtocolMessageEnum { * * *
    -       * Enabled Conversational Filtering without default Conversational Search.
    +       * Enables Conversational Filtering without Conversational Search.
            * 
    * * CONVERSATIONAL_FILTER_ONLY = 3; @@ -4087,7 +4090,7 @@ public enum Mode implements com.google.protobuf.ProtocolMessageEnum { * * *
    -       * Disable Conversational Filtering.
    +       * Disables Conversational Filtering when using Conversational Search.
            * 
    * * DISABLED = 1; @@ -4098,7 +4101,7 @@ public enum Mode implements com.google.protobuf.ProtocolMessageEnum { * * *
    -       * Enabled Conversational Filtering with default Conversational Search.
    +       * Enables Conversational Filtering when using Conversational Search.
            * 
    * * ENABLED = 2; @@ -4109,7 +4112,7 @@ public enum Mode implements com.google.protobuf.ProtocolMessageEnum { * * *
    -       * Enabled Conversational Filtering without default Conversational Search.
    +       * Enables Conversational Filtering without Conversational Search.
            * 
    * * CONVERSATIONAL_FILTER_ONLY = 3; @@ -4223,7 +4226,7 @@ private Mode(int value) { * * @deprecated * google.cloud.retail.v2alpha.ConversationalSearchRequest.ConversationalFilteringSpec.enable_conversational_filtering - * is deprecated. See google/cloud/retail/v2alpha/conversational_search_service.proto;l=142 + * is deprecated. See google/cloud/retail/v2alpha/conversational_search_service.proto;l=145 * @return The enableConversationalFiltering. */ @java.lang.Override @@ -4845,7 +4848,7 @@ public Builder mergeFrom( * @deprecated * google.cloud.retail.v2alpha.ConversationalSearchRequest.ConversationalFilteringSpec.enable_conversational_filtering * is deprecated. See - * google/cloud/retail/v2alpha/conversational_search_service.proto;l=142 + * google/cloud/retail/v2alpha/conversational_search_service.proto;l=145 * @return The enableConversationalFiltering. */ @java.lang.Override @@ -4870,7 +4873,7 @@ public boolean getEnableConversationalFiltering() { * @deprecated * google.cloud.retail.v2alpha.ConversationalSearchRequest.ConversationalFilteringSpec.enable_conversational_filtering * is deprecated. See - * google/cloud/retail/v2alpha/conversational_search_service.proto;l=142 + * google/cloud/retail/v2alpha/conversational_search_service.proto;l=145 * @param value The enableConversationalFiltering to set. * @return This builder for chaining. */ @@ -4899,7 +4902,7 @@ public Builder setEnableConversationalFiltering(boolean value) { * @deprecated * google.cloud.retail.v2alpha.ConversationalSearchRequest.ConversationalFilteringSpec.enable_conversational_filtering * is deprecated. See - * google/cloud/retail/v2alpha/conversational_search_service.proto;l=142 + * google/cloud/retail/v2alpha/conversational_search_service.proto;l=145 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ConversationalSearchResponse.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ConversationalSearchResponse.java index 0f4481a210d4..49b87e0b414f 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ConversationalSearchResponse.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ConversationalSearchResponse.java @@ -5428,9 +5428,6 @@ public com.google.protobuf.Parser getParserForTyp * * Supported values are: * - * - "ADVERSARIAL" - * - "CHITCHAT" - * - "JAILBREAK" * - "ORDER_SUPPORT" * - "SIMPLE_PRODUCT_SEARCH" * - "INTENT_REFINEMENT" @@ -5462,9 +5459,6 @@ public com.google.protobuf.ProtocolStringList getUserQueryTypesList() { * * Supported values are: * - * - "ADVERSARIAL" - * - "CHITCHAT" - * - "JAILBREAK" * - "ORDER_SUPPORT" * - "SIMPLE_PRODUCT_SEARCH" * - "INTENT_REFINEMENT" @@ -5496,9 +5490,6 @@ public int getUserQueryTypesCount() { * * Supported values are: * - * - "ADVERSARIAL" - * - "CHITCHAT" - * - "JAILBREAK" * - "ORDER_SUPPORT" * - "SIMPLE_PRODUCT_SEARCH" * - "INTENT_REFINEMENT" @@ -5531,9 +5522,6 @@ public java.lang.String getUserQueryTypes(int index) { * * Supported values are: * - * - "ADVERSARIAL" - * - "CHITCHAT" - * - "JAILBREAK" * - "ORDER_SUPPORT" * - "SIMPLE_PRODUCT_SEARCH" * - "INTENT_REFINEMENT" @@ -6567,9 +6555,6 @@ private void ensureUserQueryTypesIsMutable() { * * Supported values are: * - * - "ADVERSARIAL" - * - "CHITCHAT" - * - "JAILBREAK" * - "ORDER_SUPPORT" * - "SIMPLE_PRODUCT_SEARCH" * - "INTENT_REFINEMENT" @@ -6602,9 +6587,6 @@ public com.google.protobuf.ProtocolStringList getUserQueryTypesList() { * * Supported values are: * - * - "ADVERSARIAL" - * - "CHITCHAT" - * - "JAILBREAK" * - "ORDER_SUPPORT" * - "SIMPLE_PRODUCT_SEARCH" * - "INTENT_REFINEMENT" @@ -6636,9 +6618,6 @@ public int getUserQueryTypesCount() { * * Supported values are: * - * - "ADVERSARIAL" - * - "CHITCHAT" - * - "JAILBREAK" * - "ORDER_SUPPORT" * - "SIMPLE_PRODUCT_SEARCH" * - "INTENT_REFINEMENT" @@ -6671,9 +6650,6 @@ public java.lang.String getUserQueryTypes(int index) { * * Supported values are: * - * - "ADVERSARIAL" - * - "CHITCHAT" - * - "JAILBREAK" * - "ORDER_SUPPORT" * - "SIMPLE_PRODUCT_SEARCH" * - "INTENT_REFINEMENT" @@ -6706,9 +6682,6 @@ public com.google.protobuf.ByteString getUserQueryTypesBytes(int index) { * * Supported values are: * - * - "ADVERSARIAL" - * - "CHITCHAT" - * - "JAILBREAK" * - "ORDER_SUPPORT" * - "SIMPLE_PRODUCT_SEARCH" * - "INTENT_REFINEMENT" @@ -6749,9 +6722,6 @@ public Builder setUserQueryTypes(int index, java.lang.String value) { * * Supported values are: * - * - "ADVERSARIAL" - * - "CHITCHAT" - * - "JAILBREAK" * - "ORDER_SUPPORT" * - "SIMPLE_PRODUCT_SEARCH" * - "INTENT_REFINEMENT" @@ -6791,9 +6761,6 @@ public Builder addUserQueryTypes(java.lang.String value) { * * Supported values are: * - * - "ADVERSARIAL" - * - "CHITCHAT" - * - "JAILBREAK" * - "ORDER_SUPPORT" * - "SIMPLE_PRODUCT_SEARCH" * - "INTENT_REFINEMENT" @@ -6830,9 +6797,6 @@ public Builder addAllUserQueryTypes(java.lang.Iterable values) * * Supported values are: * - * - "ADVERSARIAL" - * - "CHITCHAT" - * - "JAILBREAK" * - "ORDER_SUPPORT" * - "SIMPLE_PRODUCT_SEARCH" * - "INTENT_REFINEMENT" @@ -6868,9 +6832,6 @@ public Builder clearUserQueryTypes() { * * Supported values are: * - * - "ADVERSARIAL" - * - "CHITCHAT" - * - "JAILBREAK" * - "ORDER_SUPPORT" * - "SIMPLE_PRODUCT_SEARCH" * - "INTENT_REFINEMENT" diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ConversationalSearchResponseOrBuilder.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ConversationalSearchResponseOrBuilder.java index 2f8edea680d3..f73427e2d4bb 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ConversationalSearchResponseOrBuilder.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ConversationalSearchResponseOrBuilder.java @@ -32,9 +32,6 @@ public interface ConversationalSearchResponseOrBuilder * * Supported values are: * - * - "ADVERSARIAL" - * - "CHITCHAT" - * - "JAILBREAK" * - "ORDER_SUPPORT" * - "SIMPLE_PRODUCT_SEARCH" * - "INTENT_REFINEMENT" @@ -64,9 +61,6 @@ public interface ConversationalSearchResponseOrBuilder * * Supported values are: * - * - "ADVERSARIAL" - * - "CHITCHAT" - * - "JAILBREAK" * - "ORDER_SUPPORT" * - "SIMPLE_PRODUCT_SEARCH" * - "INTENT_REFINEMENT" @@ -96,9 +90,6 @@ public interface ConversationalSearchResponseOrBuilder * * Supported values are: * - * - "ADVERSARIAL" - * - "CHITCHAT" - * - "JAILBREAK" * - "ORDER_SUPPORT" * - "SIMPLE_PRODUCT_SEARCH" * - "INTENT_REFINEMENT" @@ -129,9 +120,6 @@ public interface ConversationalSearchResponseOrBuilder * * Supported values are: * - * - "ADVERSARIAL" - * - "CHITCHAT" - * - "JAILBREAK" * - "ORDER_SUPPORT" * - "SIMPLE_PRODUCT_SEARCH" * - "INTENT_REFINEMENT" diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/conversational_search_service.proto b/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/conversational_search_service.proto index f06c14145370..0d5959687e4e 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/conversational_search_service.proto +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/conversational_search_service.proto @@ -123,17 +123,20 @@ message ConversationalSearchRequest { // addition to conversational retail search. message ConversationalFilteringSpec { // Enum to control Conversational Filtering mode. + // A single conversation session including multiple turns supports modes for + // Conversational Search OR Conversational Filtering without + // Conversational Search, but not both. enum Mode { // Default value. MODE_UNSPECIFIED = 0; - // Disable Conversational Filtering. + // Disables Conversational Filtering when using Conversational Search. DISABLED = 1; - // Enabled Conversational Filtering with default Conversational Search. + // Enables Conversational Filtering when using Conversational Search. ENABLED = 2; - // Enabled Conversational Filtering without default Conversational Search. + // Enables Conversational Filtering without Conversational Search. CONVERSATIONAL_FILTER_ONLY = 3; } @@ -316,9 +319,6 @@ message ConversationalSearchResponse { // // Supported values are: // - // - "ADVERSARIAL" - // - "CHITCHAT" - // - "JAILBREAK" // - "ORDER_SUPPORT" // - "SIMPLE_PRODUCT_SEARCH" // - "INTENT_REFINEMENT" diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ConversationalSearchRequest.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ConversationalSearchRequest.java new file mode 100644 index 000000000000..b3b631b0d9c0 --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ConversationalSearchRequest.java @@ -0,0 +1,9381 @@ +/* + * 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/retail/v2beta/conversational_search_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.retail.v2beta; + +/** + * + * + *
    + * Request message for
    + * [ConversationalSearchService.ConversationalSearch][google.cloud.retail.v2beta.ConversationalSearchService.ConversationalSearch]
    + * method.
    + * 
    + * + * Protobuf type {@code google.cloud.retail.v2beta.ConversationalSearchRequest} + */ +public final class ConversationalSearchRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2beta.ConversationalSearchRequest) + ConversationalSearchRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ConversationalSearchRequest.newBuilder() to construct. + private ConversationalSearchRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ConversationalSearchRequest() { + placement_ = ""; + branch_ = ""; + query_ = ""; + pageCategories_ = com.google.protobuf.LazyStringArrayList.emptyList(); + conversationId_ = ""; + visitorId_ = ""; + safetySettings_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ConversationalSearchRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2beta.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 12: + return internalGetUserLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2beta.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2beta.ConversationalSearchRequest.class, + com.google.cloud.retail.v2beta.ConversationalSearchRequest.Builder.class); + } + + public interface SearchParamsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * Optional. The filter string to restrict search results.
    +     *
    +     * The syntax of the filter string is the same as
    +     * [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter].
    +     * 
    + * + * string filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
    +     * Optional. The filter string to restrict search results.
    +     *
    +     * The syntax of the filter string is the same as
    +     * [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter].
    +     * 
    + * + * string filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
    +     * Optional. The canonical filter string to restrict search results.
    +     *
    +     * The syntax of the canonical filter string is the same as
    +     * [SearchRequest.canonical_filter][google.cloud.retail.v2beta.SearchRequest.canonical_filter].
    +     * 
    + * + * string canonical_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The canonicalFilter. + */ + java.lang.String getCanonicalFilter(); + + /** + * + * + *
    +     * Optional. The canonical filter string to restrict search results.
    +     *
    +     * The syntax of the canonical filter string is the same as
    +     * [SearchRequest.canonical_filter][google.cloud.retail.v2beta.SearchRequest.canonical_filter].
    +     * 
    + * + * string canonical_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for canonicalFilter. + */ + com.google.protobuf.ByteString getCanonicalFilterBytes(); + + /** + * + * + *
    +     * Optional. The sort string to specify the sorting of search results.
    +     *
    +     * The syntax of the sort string is the same as
    +     * [SearchRequest.sort][].
    +     * 
    + * + * string sort_by = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sortBy. + */ + java.lang.String getSortBy(); + + /** + * + * + *
    +     * Optional. The sort string to specify the sorting of search results.
    +     *
    +     * The syntax of the sort string is the same as
    +     * [SearchRequest.sort][].
    +     * 
    + * + * string sort_by = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sortBy. + */ + com.google.protobuf.ByteString getSortByBytes(); + + /** + * + * + *
    +     * Optional. The boost spec to specify the boosting of search results.
    +     *
    +     * The syntax of the boost spec is the same as
    +     * [SearchRequest.boost_spec][google.cloud.retail.v2beta.SearchRequest.boost_spec].
    +     * 
    + * + * + * .google.cloud.retail.v2beta.SearchRequest.BoostSpec boost_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the boostSpec field is set. + */ + boolean hasBoostSpec(); + + /** + * + * + *
    +     * Optional. The boost spec to specify the boosting of search results.
    +     *
    +     * The syntax of the boost spec is the same as
    +     * [SearchRequest.boost_spec][google.cloud.retail.v2beta.SearchRequest.boost_spec].
    +     * 
    + * + * + * .google.cloud.retail.v2beta.SearchRequest.BoostSpec boost_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The boostSpec. + */ + com.google.cloud.retail.v2beta.SearchRequest.BoostSpec getBoostSpec(); + + /** + * + * + *
    +     * Optional. The boost spec to specify the boosting of search results.
    +     *
    +     * The syntax of the boost spec is the same as
    +     * [SearchRequest.boost_spec][google.cloud.retail.v2beta.SearchRequest.boost_spec].
    +     * 
    + * + * + * .google.cloud.retail.v2beta.SearchRequest.BoostSpec boost_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.retail.v2beta.SearchRequest.BoostSpecOrBuilder getBoostSpecOrBuilder(); + } + + /** + * + * + *
    +   * Search parameters.
    +   * 
    + * + * Protobuf type {@code google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams} + */ + public static final class SearchParams extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams) + SearchParamsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use SearchParams.newBuilder() to construct. + private SearchParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SearchParams() { + filter_ = ""; + canonicalFilter_ = ""; + sortBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SearchParams(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2beta.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_SearchParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2beta.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_SearchParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams.class, + com.google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams.Builder + .class); + } + + private int bitField0_; + public static final int FILTER_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
    +     * Optional. The filter string to restrict search results.
    +     *
    +     * The syntax of the filter string is the same as
    +     * [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter].
    +     * 
    + * + * string filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + + /** + * + * + *
    +     * Optional. The filter string to restrict search results.
    +     *
    +     * The syntax of the filter string is the same as
    +     * [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter].
    +     * 
    + * + * string filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CANONICAL_FILTER_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object canonicalFilter_ = ""; + + /** + * + * + *
    +     * Optional. The canonical filter string to restrict search results.
    +     *
    +     * The syntax of the canonical filter string is the same as
    +     * [SearchRequest.canonical_filter][google.cloud.retail.v2beta.SearchRequest.canonical_filter].
    +     * 
    + * + * string canonical_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The canonicalFilter. + */ + @java.lang.Override + public java.lang.String getCanonicalFilter() { + java.lang.Object ref = canonicalFilter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + canonicalFilter_ = s; + return s; + } + } + + /** + * + * + *
    +     * Optional. The canonical filter string to restrict search results.
    +     *
    +     * The syntax of the canonical filter string is the same as
    +     * [SearchRequest.canonical_filter][google.cloud.retail.v2beta.SearchRequest.canonical_filter].
    +     * 
    + * + * string canonical_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for canonicalFilter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCanonicalFilterBytes() { + java.lang.Object ref = canonicalFilter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + canonicalFilter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SORT_BY_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object sortBy_ = ""; + + /** + * + * + *
    +     * Optional. The sort string to specify the sorting of search results.
    +     *
    +     * The syntax of the sort string is the same as
    +     * [SearchRequest.sort][].
    +     * 
    + * + * string sort_by = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sortBy. + */ + @java.lang.Override + public java.lang.String getSortBy() { + java.lang.Object ref = sortBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sortBy_ = s; + return s; + } + } + + /** + * + * + *
    +     * Optional. The sort string to specify the sorting of search results.
    +     *
    +     * The syntax of the sort string is the same as
    +     * [SearchRequest.sort][].
    +     * 
    + * + * string sort_by = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sortBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSortByBytes() { + java.lang.Object ref = sortBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sortBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BOOST_SPEC_FIELD_NUMBER = 4; + private com.google.cloud.retail.v2beta.SearchRequest.BoostSpec boostSpec_; + + /** + * + * + *
    +     * Optional. The boost spec to specify the boosting of search results.
    +     *
    +     * The syntax of the boost spec is the same as
    +     * [SearchRequest.boost_spec][google.cloud.retail.v2beta.SearchRequest.boost_spec].
    +     * 
    + * + * + * .google.cloud.retail.v2beta.SearchRequest.BoostSpec boost_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the boostSpec field is set. + */ + @java.lang.Override + public boolean hasBoostSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +     * Optional. The boost spec to specify the boosting of search results.
    +     *
    +     * The syntax of the boost spec is the same as
    +     * [SearchRequest.boost_spec][google.cloud.retail.v2beta.SearchRequest.boost_spec].
    +     * 
    + * + * + * .google.cloud.retail.v2beta.SearchRequest.BoostSpec boost_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The boostSpec. + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.SearchRequest.BoostSpec getBoostSpec() { + return boostSpec_ == null + ? com.google.cloud.retail.v2beta.SearchRequest.BoostSpec.getDefaultInstance() + : boostSpec_; + } + + /** + * + * + *
    +     * Optional. The boost spec to specify the boosting of search results.
    +     *
    +     * The syntax of the boost spec is the same as
    +     * [SearchRequest.boost_spec][google.cloud.retail.v2beta.SearchRequest.boost_spec].
    +     * 
    + * + * + * .google.cloud.retail.v2beta.SearchRequest.BoostSpec boost_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.SearchRequest.BoostSpecOrBuilder getBoostSpecOrBuilder() { + return boostSpec_ == null + ? com.google.cloud.retail.v2beta.SearchRequest.BoostSpec.getDefaultInstance() + : boostSpec_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(canonicalFilter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, canonicalFilter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sortBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sortBy_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getBoostSpec()); + } + 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(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(canonicalFilter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, canonicalFilter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sortBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sortBy_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getBoostSpec()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.retail.v2beta.ConversationalSearchRequest.SearchParams)) { + return super.equals(obj); + } + com.google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams other = + (com.google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams) obj; + + if (!getFilter().equals(other.getFilter())) return false; + if (!getCanonicalFilter().equals(other.getCanonicalFilter())) return false; + if (!getSortBy().equals(other.getSortBy())) return false; + if (hasBoostSpec() != other.hasBoostSpec()) return false; + if (hasBoostSpec()) { + if (!getBoostSpec().equals(other.getBoostSpec())) 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) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + CANONICAL_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getCanonicalFilter().hashCode(); + hash = (37 * hash) + SORT_BY_FIELD_NUMBER; + hash = (53 * hash) + getSortBy().hashCode(); + if (hasBoostSpec()) { + hash = (37 * hash) + BOOST_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getBoostSpec().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams 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.retail.v2beta.ConversationalSearchRequest.SearchParams parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams parseFrom( + 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.retail.v2beta.ConversationalSearchRequest.SearchParams parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams 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.retail.v2beta.ConversationalSearchRequest.SearchParams + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams + 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.retail.v2beta.ConversationalSearchRequest.SearchParams parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams 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.retail.v2beta.ConversationalSearchRequest.SearchParams prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
    +     * Search parameters.
    +     * 
    + * + * Protobuf type {@code google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams) + com.google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParamsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2beta.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_SearchParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2beta.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_SearchParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams.class, + com.google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams.Builder + .class); + } + + // Construct using + // com.google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getBoostSpecFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + filter_ = ""; + canonicalFilter_ = ""; + sortBy_ = ""; + boostSpec_ = null; + if (boostSpecBuilder_ != null) { + boostSpecBuilder_.dispose(); + boostSpecBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2beta.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_SearchParams_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams + getDefaultInstanceForType() { + return com.google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams build() { + com.google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams + buildPartial() { + com.google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams result = + new com.google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.canonicalFilter_ = canonicalFilter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.sortBy_ = sortBy_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.boostSpec_ = boostSpecBuilder_ == null ? boostSpec_ : boostSpecBuilder_.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.retail.v2beta.ConversationalSearchRequest.SearchParams) { + return mergeFrom( + (com.google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams other) { + if (other + == com.google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams + .getDefaultInstance()) return this; + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getCanonicalFilter().isEmpty()) { + canonicalFilter_ = other.canonicalFilter_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getSortBy().isEmpty()) { + sortBy_ = other.sortBy_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasBoostSpec()) { + mergeBoostSpec(other.getBoostSpec()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + canonicalFilter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + sortBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getBoostSpecFieldBuilder().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; + } + + private int bitField0_; + + private java.lang.Object filter_ = ""; + + /** + * + * + *
    +       * Optional. The filter string to restrict search results.
    +       *
    +       * The syntax of the filter string is the same as
    +       * [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter].
    +       * 
    + * + * string filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +       * Optional. The filter string to restrict search results.
    +       *
    +       * The syntax of the filter string is the same as
    +       * [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter].
    +       * 
    + * + * string filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +       * Optional. The filter string to restrict search results.
    +       *
    +       * The syntax of the filter string is the same as
    +       * [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter].
    +       * 
    + * + * string filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. The filter string to restrict search results.
    +       *
    +       * The syntax of the filter string is the same as
    +       * [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter].
    +       * 
    + * + * string filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. The filter string to restrict search results.
    +       *
    +       * The syntax of the filter string is the same as
    +       * [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter].
    +       * 
    + * + * string filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object canonicalFilter_ = ""; + + /** + * + * + *
    +       * Optional. The canonical filter string to restrict search results.
    +       *
    +       * The syntax of the canonical filter string is the same as
    +       * [SearchRequest.canonical_filter][google.cloud.retail.v2beta.SearchRequest.canonical_filter].
    +       * 
    + * + * string canonical_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The canonicalFilter. + */ + public java.lang.String getCanonicalFilter() { + java.lang.Object ref = canonicalFilter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + canonicalFilter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +       * Optional. The canonical filter string to restrict search results.
    +       *
    +       * The syntax of the canonical filter string is the same as
    +       * [SearchRequest.canonical_filter][google.cloud.retail.v2beta.SearchRequest.canonical_filter].
    +       * 
    + * + * string canonical_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for canonicalFilter. + */ + public com.google.protobuf.ByteString getCanonicalFilterBytes() { + java.lang.Object ref = canonicalFilter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + canonicalFilter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +       * Optional. The canonical filter string to restrict search results.
    +       *
    +       * The syntax of the canonical filter string is the same as
    +       * [SearchRequest.canonical_filter][google.cloud.retail.v2beta.SearchRequest.canonical_filter].
    +       * 
    + * + * string canonical_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The canonicalFilter to set. + * @return This builder for chaining. + */ + public Builder setCanonicalFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + canonicalFilter_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. The canonical filter string to restrict search results.
    +       *
    +       * The syntax of the canonical filter string is the same as
    +       * [SearchRequest.canonical_filter][google.cloud.retail.v2beta.SearchRequest.canonical_filter].
    +       * 
    + * + * string canonical_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCanonicalFilter() { + canonicalFilter_ = getDefaultInstance().getCanonicalFilter(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. The canonical filter string to restrict search results.
    +       *
    +       * The syntax of the canonical filter string is the same as
    +       * [SearchRequest.canonical_filter][google.cloud.retail.v2beta.SearchRequest.canonical_filter].
    +       * 
    + * + * string canonical_filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for canonicalFilter to set. + * @return This builder for chaining. + */ + public Builder setCanonicalFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + canonicalFilter_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object sortBy_ = ""; + + /** + * + * + *
    +       * Optional. The sort string to specify the sorting of search results.
    +       *
    +       * The syntax of the sort string is the same as
    +       * [SearchRequest.sort][].
    +       * 
    + * + * string sort_by = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sortBy. + */ + public java.lang.String getSortBy() { + java.lang.Object ref = sortBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sortBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +       * Optional. The sort string to specify the sorting of search results.
    +       *
    +       * The syntax of the sort string is the same as
    +       * [SearchRequest.sort][].
    +       * 
    + * + * string sort_by = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sortBy. + */ + public com.google.protobuf.ByteString getSortByBytes() { + java.lang.Object ref = sortBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sortBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +       * Optional. The sort string to specify the sorting of search results.
    +       *
    +       * The syntax of the sort string is the same as
    +       * [SearchRequest.sort][].
    +       * 
    + * + * string sort_by = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The sortBy to set. + * @return This builder for chaining. + */ + public Builder setSortBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sortBy_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. The sort string to specify the sorting of search results.
    +       *
    +       * The syntax of the sort string is the same as
    +       * [SearchRequest.sort][].
    +       * 
    + * + * string sort_by = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSortBy() { + sortBy_ = getDefaultInstance().getSortBy(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. The sort string to specify the sorting of search results.
    +       *
    +       * The syntax of the sort string is the same as
    +       * [SearchRequest.sort][].
    +       * 
    + * + * string sort_by = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for sortBy to set. + * @return This builder for chaining. + */ + public Builder setSortByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sortBy_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.cloud.retail.v2beta.SearchRequest.BoostSpec boostSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.SearchRequest.BoostSpec, + com.google.cloud.retail.v2beta.SearchRequest.BoostSpec.Builder, + com.google.cloud.retail.v2beta.SearchRequest.BoostSpecOrBuilder> + boostSpecBuilder_; + + /** + * + * + *
    +       * Optional. The boost spec to specify the boosting of search results.
    +       *
    +       * The syntax of the boost spec is the same as
    +       * [SearchRequest.boost_spec][google.cloud.retail.v2beta.SearchRequest.boost_spec].
    +       * 
    + * + * + * .google.cloud.retail.v2beta.SearchRequest.BoostSpec boost_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the boostSpec field is set. + */ + public boolean hasBoostSpec() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
    +       * Optional. The boost spec to specify the boosting of search results.
    +       *
    +       * The syntax of the boost spec is the same as
    +       * [SearchRequest.boost_spec][google.cloud.retail.v2beta.SearchRequest.boost_spec].
    +       * 
    + * + * + * .google.cloud.retail.v2beta.SearchRequest.BoostSpec boost_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The boostSpec. + */ + public com.google.cloud.retail.v2beta.SearchRequest.BoostSpec getBoostSpec() { + if (boostSpecBuilder_ == null) { + return boostSpec_ == null + ? com.google.cloud.retail.v2beta.SearchRequest.BoostSpec.getDefaultInstance() + : boostSpec_; + } else { + return boostSpecBuilder_.getMessage(); + } + } + + /** + * + * + *
    +       * Optional. The boost spec to specify the boosting of search results.
    +       *
    +       * The syntax of the boost spec is the same as
    +       * [SearchRequest.boost_spec][google.cloud.retail.v2beta.SearchRequest.boost_spec].
    +       * 
    + * + * + * .google.cloud.retail.v2beta.SearchRequest.BoostSpec boost_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBoostSpec(com.google.cloud.retail.v2beta.SearchRequest.BoostSpec value) { + if (boostSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + boostSpec_ = value; + } else { + boostSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. The boost spec to specify the boosting of search results.
    +       *
    +       * The syntax of the boost spec is the same as
    +       * [SearchRequest.boost_spec][google.cloud.retail.v2beta.SearchRequest.boost_spec].
    +       * 
    + * + * + * .google.cloud.retail.v2beta.SearchRequest.BoostSpec boost_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBoostSpec( + com.google.cloud.retail.v2beta.SearchRequest.BoostSpec.Builder builderForValue) { + if (boostSpecBuilder_ == null) { + boostSpec_ = builderForValue.build(); + } else { + boostSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. The boost spec to specify the boosting of search results.
    +       *
    +       * The syntax of the boost spec is the same as
    +       * [SearchRequest.boost_spec][google.cloud.retail.v2beta.SearchRequest.boost_spec].
    +       * 
    + * + * + * .google.cloud.retail.v2beta.SearchRequest.BoostSpec boost_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeBoostSpec(com.google.cloud.retail.v2beta.SearchRequest.BoostSpec value) { + if (boostSpecBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && boostSpec_ != null + && boostSpec_ + != com.google.cloud.retail.v2beta.SearchRequest.BoostSpec.getDefaultInstance()) { + getBoostSpecBuilder().mergeFrom(value); + } else { + boostSpec_ = value; + } + } else { + boostSpecBuilder_.mergeFrom(value); + } + if (boostSpec_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
    +       * Optional. The boost spec to specify the boosting of search results.
    +       *
    +       * The syntax of the boost spec is the same as
    +       * [SearchRequest.boost_spec][google.cloud.retail.v2beta.SearchRequest.boost_spec].
    +       * 
    + * + * + * .google.cloud.retail.v2beta.SearchRequest.BoostSpec boost_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearBoostSpec() { + bitField0_ = (bitField0_ & ~0x00000008); + boostSpec_ = null; + if (boostSpecBuilder_ != null) { + boostSpecBuilder_.dispose(); + boostSpecBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. The boost spec to specify the boosting of search results.
    +       *
    +       * The syntax of the boost spec is the same as
    +       * [SearchRequest.boost_spec][google.cloud.retail.v2beta.SearchRequest.boost_spec].
    +       * 
    + * + * + * .google.cloud.retail.v2beta.SearchRequest.BoostSpec boost_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.retail.v2beta.SearchRequest.BoostSpec.Builder getBoostSpecBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getBoostSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +       * Optional. The boost spec to specify the boosting of search results.
    +       *
    +       * The syntax of the boost spec is the same as
    +       * [SearchRequest.boost_spec][google.cloud.retail.v2beta.SearchRequest.boost_spec].
    +       * 
    + * + * + * .google.cloud.retail.v2beta.SearchRequest.BoostSpec boost_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.retail.v2beta.SearchRequest.BoostSpecOrBuilder + getBoostSpecOrBuilder() { + if (boostSpecBuilder_ != null) { + return boostSpecBuilder_.getMessageOrBuilder(); + } else { + return boostSpec_ == null + ? com.google.cloud.retail.v2beta.SearchRequest.BoostSpec.getDefaultInstance() + : boostSpec_; + } + } + + /** + * + * + *
    +       * Optional. The boost spec to specify the boosting of search results.
    +       *
    +       * The syntax of the boost spec is the same as
    +       * [SearchRequest.boost_spec][google.cloud.retail.v2beta.SearchRequest.boost_spec].
    +       * 
    + * + * + * .google.cloud.retail.v2beta.SearchRequest.BoostSpec boost_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.SearchRequest.BoostSpec, + com.google.cloud.retail.v2beta.SearchRequest.BoostSpec.Builder, + com.google.cloud.retail.v2beta.SearchRequest.BoostSpecOrBuilder> + getBoostSpecFieldBuilder() { + if (boostSpecBuilder_ == null) { + boostSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.SearchRequest.BoostSpec, + com.google.cloud.retail.v2beta.SearchRequest.BoostSpec.Builder, + com.google.cloud.retail.v2beta.SearchRequest.BoostSpecOrBuilder>( + getBoostSpec(), getParentForChildren(), isClean()); + boostSpec_ = null; + } + return boostSpecBuilder_; + } + + @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.retail.v2beta.ConversationalSearchRequest.SearchParams) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams) + private static final com.google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams(); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.retail.v2beta.ConversationalSearchRequest.SearchParams + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface UserAnswerOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * This field specifies the incremental input text from the user during
    +     * the conversational search.
    +     * 
    + * + * string text_answer = 1; + * + * @return Whether the textAnswer field is set. + */ + boolean hasTextAnswer(); + + /** + * + * + *
    +     * This field specifies the incremental input text from the user during
    +     * the conversational search.
    +     * 
    + * + * string text_answer = 1; + * + * @return The textAnswer. + */ + java.lang.String getTextAnswer(); + + /** + * + * + *
    +     * This field specifies the incremental input text from the user during
    +     * the conversational search.
    +     * 
    + * + * string text_answer = 1; + * + * @return The bytes for textAnswer. + */ + com.google.protobuf.ByteString getTextAnswerBytes(); + + /** + * + * + *
    +     * Optional. This field specifies the selected answer during the
    +     * conversational search. This should be a subset of
    +     * [ConversationalSearchResponse.followup_question.suggested_answers][].
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.SelectedAnswer selected_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the selectedAnswer field is set. + */ + boolean hasSelectedAnswer(); + + /** + * + * + *
    +     * Optional. This field specifies the selected answer during the
    +     * conversational search. This should be a subset of
    +     * [ConversationalSearchResponse.followup_question.suggested_answers][].
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.SelectedAnswer selected_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The selectedAnswer. + */ + com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.SelectedAnswer + getSelectedAnswer(); + + /** + * + * + *
    +     * Optional. This field specifies the selected answer during the
    +     * conversational search. This should be a subset of
    +     * [ConversationalSearchResponse.followup_question.suggested_answers][].
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.SelectedAnswer selected_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.SelectedAnswerOrBuilder + getSelectedAnswerOrBuilder(); + + com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.TypeCase getTypeCase(); + } + + /** + * + * + *
    +   * This field specifies the current user answer during the conversational
    +   * filtering search. This can be either user selected from suggested answers
    +   * or user input plain text.
    +   * 
    + * + * Protobuf type {@code google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer} + */ + public static final class UserAnswer extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer) + UserAnswerOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UserAnswer.newBuilder() to construct. + private UserAnswer(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UserAnswer() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UserAnswer(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2beta.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_UserAnswer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2beta.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_UserAnswer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.class, + com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.Builder.class); + } + + public interface SelectedAnswerOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.SelectedAnswer) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +       * Optional. This field specifies the selected answer which is a attribute
    +       * key-value.
    +       * 
    + * + * + * .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the productAttributeValue field is set. + */ + boolean hasProductAttributeValue(); + + /** + * + * + *
    +       * Optional. This field specifies the selected answer which is a attribute
    +       * key-value.
    +       * 
    + * + * + * .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The productAttributeValue. + */ + com.google.cloud.retail.v2beta.ProductAttributeValue getProductAttributeValue(); + + /** + * + * + *
    +       * Optional. This field specifies the selected answer which is a attribute
    +       * key-value.
    +       * 
    + * + * + * .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.retail.v2beta.ProductAttributeValueOrBuilder + getProductAttributeValueOrBuilder(); + } + + /** + * + * + *
    +     * This field specifies the selected answers during the conversational
    +     * search.
    +     * 
    + * + * Protobuf type {@code + * google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.SelectedAnswer} + */ + public static final class SelectedAnswer extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.SelectedAnswer) + SelectedAnswerOrBuilder { + private static final long serialVersionUID = 0L; + + // Use SelectedAnswer.newBuilder() to construct. + private SelectedAnswer(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SelectedAnswer() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SelectedAnswer(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2beta.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_UserAnswer_SelectedAnswer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2beta.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_UserAnswer_SelectedAnswer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.SelectedAnswer + .class, + com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.SelectedAnswer + .Builder.class); + } + + private int bitField0_; + public static final int PRODUCT_ATTRIBUTE_VALUE_FIELD_NUMBER = 1; + private com.google.cloud.retail.v2beta.ProductAttributeValue productAttributeValue_; + + /** + * + * + *
    +       * Optional. This field specifies the selected answer which is a attribute
    +       * key-value.
    +       * 
    + * + * + * .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the productAttributeValue field is set. + */ + @java.lang.Override + public boolean hasProductAttributeValue() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +       * Optional. This field specifies the selected answer which is a attribute
    +       * key-value.
    +       * 
    + * + * + * .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The productAttributeValue. + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.ProductAttributeValue getProductAttributeValue() { + return productAttributeValue_ == null + ? com.google.cloud.retail.v2beta.ProductAttributeValue.getDefaultInstance() + : productAttributeValue_; + } + + /** + * + * + *
    +       * Optional. This field specifies the selected answer which is a attribute
    +       * key-value.
    +       * 
    + * + * + * .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.ProductAttributeValueOrBuilder + getProductAttributeValueOrBuilder() { + return productAttributeValue_ == null + ? com.google.cloud.retail.v2beta.ProductAttributeValue.getDefaultInstance() + : productAttributeValue_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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, getProductAttributeValue()); + } + 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, getProductAttributeValue()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.retail.v2beta.ConversationalSearchRequest.UserAnswer.SelectedAnswer)) { + return super.equals(obj); + } + com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.SelectedAnswer other = + (com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.SelectedAnswer) + obj; + + if (hasProductAttributeValue() != other.hasProductAttributeValue()) return false; + if (hasProductAttributeValue()) { + if (!getProductAttributeValue().equals(other.getProductAttributeValue())) 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 (hasProductAttributeValue()) { + hash = (37 * hash) + PRODUCT_ATTRIBUTE_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getProductAttributeValue().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer + .SelectedAnswer + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer + .SelectedAnswer + 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.retail.v2beta.ConversationalSearchRequest.UserAnswer + .SelectedAnswer + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer + .SelectedAnswer + parseFrom( + 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.retail.v2beta.ConversationalSearchRequest.UserAnswer + .SelectedAnswer + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer + .SelectedAnswer + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer + .SelectedAnswer + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer + .SelectedAnswer + 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.retail.v2beta.ConversationalSearchRequest.UserAnswer + .SelectedAnswer + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer + .SelectedAnswer + 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.retail.v2beta.ConversationalSearchRequest.UserAnswer + .SelectedAnswer + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer + .SelectedAnswer + 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.retail.v2beta.ConversationalSearchRequest.UserAnswer.SelectedAnswer + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
    +       * This field specifies the selected answers during the conversational
    +       * search.
    +       * 
    + * + * Protobuf type {@code + * google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.SelectedAnswer} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.SelectedAnswer) + com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer + .SelectedAnswerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2beta.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_UserAnswer_SelectedAnswer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2beta.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_UserAnswer_SelectedAnswer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer + .SelectedAnswer.class, + com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer + .SelectedAnswer.Builder.class); + } + + // Construct using + // com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.SelectedAnswer.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getProductAttributeValueFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + productAttributeValue_ = null; + if (productAttributeValueBuilder_ != null) { + productAttributeValueBuilder_.dispose(); + productAttributeValueBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2beta.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_UserAnswer_SelectedAnswer_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.SelectedAnswer + getDefaultInstanceForType() { + return com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer + .SelectedAnswer.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.SelectedAnswer + build() { + com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.SelectedAnswer + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.SelectedAnswer + buildPartial() { + com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.SelectedAnswer + result = + new com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer + .SelectedAnswer(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.SelectedAnswer + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.productAttributeValue_ = + productAttributeValueBuilder_ == null + ? productAttributeValue_ + : productAttributeValueBuilder_.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.retail.v2beta.ConversationalSearchRequest.UserAnswer + .SelectedAnswer) { + return mergeFrom( + (com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer + .SelectedAnswer) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.SelectedAnswer + other) { + if (other + == com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer + .SelectedAnswer.getDefaultInstance()) return this; + if (other.hasProductAttributeValue()) { + mergeProductAttributeValue(other.getProductAttributeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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( + getProductAttributeValueFieldBuilder().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.retail.v2beta.ProductAttributeValue productAttributeValue_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.ProductAttributeValue, + com.google.cloud.retail.v2beta.ProductAttributeValue.Builder, + com.google.cloud.retail.v2beta.ProductAttributeValueOrBuilder> + productAttributeValueBuilder_; + + /** + * + * + *
    +         * Optional. This field specifies the selected answer which is a attribute
    +         * key-value.
    +         * 
    + * + * + * .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the productAttributeValue field is set. + */ + public boolean hasProductAttributeValue() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +         * Optional. This field specifies the selected answer which is a attribute
    +         * key-value.
    +         * 
    + * + * + * .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The productAttributeValue. + */ + public com.google.cloud.retail.v2beta.ProductAttributeValue getProductAttributeValue() { + if (productAttributeValueBuilder_ == null) { + return productAttributeValue_ == null + ? com.google.cloud.retail.v2beta.ProductAttributeValue.getDefaultInstance() + : productAttributeValue_; + } else { + return productAttributeValueBuilder_.getMessage(); + } + } + + /** + * + * + *
    +         * Optional. This field specifies the selected answer which is a attribute
    +         * key-value.
    +         * 
    + * + * + * .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setProductAttributeValue( + com.google.cloud.retail.v2beta.ProductAttributeValue value) { + if (productAttributeValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + productAttributeValue_ = value; + } else { + productAttributeValueBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +         * Optional. This field specifies the selected answer which is a attribute
    +         * key-value.
    +         * 
    + * + * + * .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setProductAttributeValue( + com.google.cloud.retail.v2beta.ProductAttributeValue.Builder builderForValue) { + if (productAttributeValueBuilder_ == null) { + productAttributeValue_ = builderForValue.build(); + } else { + productAttributeValueBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +         * Optional. This field specifies the selected answer which is a attribute
    +         * key-value.
    +         * 
    + * + * + * .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeProductAttributeValue( + com.google.cloud.retail.v2beta.ProductAttributeValue value) { + if (productAttributeValueBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && productAttributeValue_ != null + && productAttributeValue_ + != com.google.cloud.retail.v2beta.ProductAttributeValue.getDefaultInstance()) { + getProductAttributeValueBuilder().mergeFrom(value); + } else { + productAttributeValue_ = value; + } + } else { + productAttributeValueBuilder_.mergeFrom(value); + } + if (productAttributeValue_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
    +         * Optional. This field specifies the selected answer which is a attribute
    +         * key-value.
    +         * 
    + * + * + * .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearProductAttributeValue() { + bitField0_ = (bitField0_ & ~0x00000001); + productAttributeValue_ = null; + if (productAttributeValueBuilder_ != null) { + productAttributeValueBuilder_.dispose(); + productAttributeValueBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +         * Optional. This field specifies the selected answer which is a attribute
    +         * key-value.
    +         * 
    + * + * + * .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.retail.v2beta.ProductAttributeValue.Builder + getProductAttributeValueBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getProductAttributeValueFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +         * Optional. This field specifies the selected answer which is a attribute
    +         * key-value.
    +         * 
    + * + * + * .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.retail.v2beta.ProductAttributeValueOrBuilder + getProductAttributeValueOrBuilder() { + if (productAttributeValueBuilder_ != null) { + return productAttributeValueBuilder_.getMessageOrBuilder(); + } else { + return productAttributeValue_ == null + ? com.google.cloud.retail.v2beta.ProductAttributeValue.getDefaultInstance() + : productAttributeValue_; + } + } + + /** + * + * + *
    +         * Optional. This field specifies the selected answer which is a attribute
    +         * key-value.
    +         * 
    + * + * + * .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.ProductAttributeValue, + com.google.cloud.retail.v2beta.ProductAttributeValue.Builder, + com.google.cloud.retail.v2beta.ProductAttributeValueOrBuilder> + getProductAttributeValueFieldBuilder() { + if (productAttributeValueBuilder_ == null) { + productAttributeValueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.ProductAttributeValue, + com.google.cloud.retail.v2beta.ProductAttributeValue.Builder, + com.google.cloud.retail.v2beta.ProductAttributeValueOrBuilder>( + getProductAttributeValue(), getParentForChildren(), isClean()); + productAttributeValue_ = null; + } + return productAttributeValueBuilder_; + } + + @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.retail.v2beta.ConversationalSearchRequest.UserAnswer.SelectedAnswer) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.SelectedAnswer) + private static final com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer + .SelectedAnswer + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer + .SelectedAnswer(); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer + .SelectedAnswer + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SelectedAnswer parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.retail.v2beta.ConversationalSearchRequest.UserAnswer.SelectedAnswer + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int typeCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object type_; + + public enum TypeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TEXT_ANSWER(1), + SELECTED_ANSWER(2), + TYPE_NOT_SET(0); + private final int value; + + private TypeCase(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 TypeCase valueOf(int value) { + return forNumber(value); + } + + public static TypeCase forNumber(int value) { + switch (value) { + case 1: + return TEXT_ANSWER; + case 2: + return SELECTED_ANSWER; + case 0: + return TYPE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public TypeCase getTypeCase() { + return TypeCase.forNumber(typeCase_); + } + + public static final int TEXT_ANSWER_FIELD_NUMBER = 1; + + /** + * + * + *
    +     * This field specifies the incremental input text from the user during
    +     * the conversational search.
    +     * 
    + * + * string text_answer = 1; + * + * @return Whether the textAnswer field is set. + */ + public boolean hasTextAnswer() { + return typeCase_ == 1; + } + + /** + * + * + *
    +     * This field specifies the incremental input text from the user during
    +     * the conversational search.
    +     * 
    + * + * string text_answer = 1; + * + * @return The textAnswer. + */ + public java.lang.String getTextAnswer() { + java.lang.Object ref = ""; + if (typeCase_ == 1) { + ref = type_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (typeCase_ == 1) { + type_ = s; + } + return s; + } + } + + /** + * + * + *
    +     * This field specifies the incremental input text from the user during
    +     * the conversational search.
    +     * 
    + * + * string text_answer = 1; + * + * @return The bytes for textAnswer. + */ + public com.google.protobuf.ByteString getTextAnswerBytes() { + java.lang.Object ref = ""; + if (typeCase_ == 1) { + ref = type_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (typeCase_ == 1) { + type_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SELECTED_ANSWER_FIELD_NUMBER = 2; + + /** + * + * + *
    +     * Optional. This field specifies the selected answer during the
    +     * conversational search. This should be a subset of
    +     * [ConversationalSearchResponse.followup_question.suggested_answers][].
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.SelectedAnswer selected_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the selectedAnswer field is set. + */ + @java.lang.Override + public boolean hasSelectedAnswer() { + return typeCase_ == 2; + } + + /** + * + * + *
    +     * Optional. This field specifies the selected answer during the
    +     * conversational search. This should be a subset of
    +     * [ConversationalSearchResponse.followup_question.suggested_answers][].
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.SelectedAnswer selected_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The selectedAnswer. + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.SelectedAnswer + getSelectedAnswer() { + if (typeCase_ == 2) { + return (com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer + .SelectedAnswer) + type_; + } + return com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.SelectedAnswer + .getDefaultInstance(); + } + + /** + * + * + *
    +     * Optional. This field specifies the selected answer during the
    +     * conversational search. This should be a subset of
    +     * [ConversationalSearchResponse.followup_question.suggested_answers][].
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.SelectedAnswer selected_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer + .SelectedAnswerOrBuilder + getSelectedAnswerOrBuilder() { + if (typeCase_ == 2) { + return (com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer + .SelectedAnswer) + type_; + } + return com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.SelectedAnswer + .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 (typeCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); + } + if (typeCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.SelectedAnswer) + type_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (typeCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); + } + if (typeCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer + .SelectedAnswer) + type_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.retail.v2beta.ConversationalSearchRequest.UserAnswer)) { + return super.equals(obj); + } + com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer other = + (com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer) obj; + + if (!getTypeCase().equals(other.getTypeCase())) return false; + switch (typeCase_) { + case 1: + if (!getTextAnswer().equals(other.getTextAnswer())) return false; + break; + case 2: + if (!getSelectedAnswer().equals(other.getSelectedAnswer())) 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 (typeCase_) { + case 1: + hash = (37 * hash) + TEXT_ANSWER_FIELD_NUMBER; + hash = (53 * hash) + getTextAnswer().hashCode(); + break; + case 2: + hash = (37 * hash) + SELECTED_ANSWER_FIELD_NUMBER; + hash = (53 * hash) + getSelectedAnswer().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer 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.retail.v2beta.ConversationalSearchRequest.UserAnswer parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer parseFrom( + 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.retail.v2beta.ConversationalSearchRequest.UserAnswer parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer 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.retail.v2beta.ConversationalSearchRequest.UserAnswer + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer + 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.retail.v2beta.ConversationalSearchRequest.UserAnswer parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer 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.retail.v2beta.ConversationalSearchRequest.UserAnswer prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
    +     * This field specifies the current user answer during the conversational
    +     * filtering search. This can be either user selected from suggested answers
    +     * or user input plain text.
    +     * 
    + * + * Protobuf type {@code google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer) + com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2beta.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_UserAnswer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2beta.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_UserAnswer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.class, + com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.Builder + .class); + } + + // Construct using + // com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (selectedAnswerBuilder_ != null) { + selectedAnswerBuilder_.clear(); + } + typeCase_ = 0; + type_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2beta.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_UserAnswer_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer + getDefaultInstanceForType() { + return com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer build() { + com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer buildPartial() { + com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer result = + new com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer result) { + result.typeCase_ = typeCase_; + result.type_ = this.type_; + if (typeCase_ == 2 && selectedAnswerBuilder_ != null) { + result.type_ = selectedAnswerBuilder_.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.retail.v2beta.ConversationalSearchRequest.UserAnswer) { + return mergeFrom( + (com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer other) { + if (other + == com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer + .getDefaultInstance()) return this; + switch (other.getTypeCase()) { + case TEXT_ANSWER: + { + typeCase_ = 1; + type_ = other.type_; + onChanged(); + break; + } + case SELECTED_ANSWER: + { + mergeSelectedAnswer(other.getSelectedAnswer()); + break; + } + case TYPE_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: + { + java.lang.String s = input.readStringRequireUtf8(); + typeCase_ = 1; + type_ = s; + break; + } // case 10 + case 18: + { + input.readMessage( + getSelectedAnswerFieldBuilder().getBuilder(), extensionRegistry); + typeCase_ = 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 typeCase_ = 0; + private java.lang.Object type_; + + public TypeCase getTypeCase() { + return TypeCase.forNumber(typeCase_); + } + + public Builder clearType() { + typeCase_ = 0; + type_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
    +       * This field specifies the incremental input text from the user during
    +       * the conversational search.
    +       * 
    + * + * string text_answer = 1; + * + * @return Whether the textAnswer field is set. + */ + @java.lang.Override + public boolean hasTextAnswer() { + return typeCase_ == 1; + } + + /** + * + * + *
    +       * This field specifies the incremental input text from the user during
    +       * the conversational search.
    +       * 
    + * + * string text_answer = 1; + * + * @return The textAnswer. + */ + @java.lang.Override + public java.lang.String getTextAnswer() { + java.lang.Object ref = ""; + if (typeCase_ == 1) { + ref = type_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (typeCase_ == 1) { + type_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +       * This field specifies the incremental input text from the user during
    +       * the conversational search.
    +       * 
    + * + * string text_answer = 1; + * + * @return The bytes for textAnswer. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTextAnswerBytes() { + java.lang.Object ref = ""; + if (typeCase_ == 1) { + ref = type_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (typeCase_ == 1) { + type_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +       * This field specifies the incremental input text from the user during
    +       * the conversational search.
    +       * 
    + * + * string text_answer = 1; + * + * @param value The textAnswer to set. + * @return This builder for chaining. + */ + public Builder setTextAnswer(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + typeCase_ = 1; + type_ = value; + onChanged(); + return this; + } + + /** + * + * + *
    +       * This field specifies the incremental input text from the user during
    +       * the conversational search.
    +       * 
    + * + * string text_answer = 1; + * + * @return This builder for chaining. + */ + public Builder clearTextAnswer() { + if (typeCase_ == 1) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
    +       * This field specifies the incremental input text from the user during
    +       * the conversational search.
    +       * 
    + * + * string text_answer = 1; + * + * @param value The bytes for textAnswer to set. + * @return This builder for chaining. + */ + public Builder setTextAnswerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + typeCase_ = 1; + type_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.SelectedAnswer, + com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.SelectedAnswer + .Builder, + com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer + .SelectedAnswerOrBuilder> + selectedAnswerBuilder_; + + /** + * + * + *
    +       * Optional. This field specifies the selected answer during the
    +       * conversational search. This should be a subset of
    +       * [ConversationalSearchResponse.followup_question.suggested_answers][].
    +       * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.SelectedAnswer selected_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the selectedAnswer field is set. + */ + @java.lang.Override + public boolean hasSelectedAnswer() { + return typeCase_ == 2; + } + + /** + * + * + *
    +       * Optional. This field specifies the selected answer during the
    +       * conversational search. This should be a subset of
    +       * [ConversationalSearchResponse.followup_question.suggested_answers][].
    +       * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.SelectedAnswer selected_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The selectedAnswer. + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.SelectedAnswer + getSelectedAnswer() { + if (selectedAnswerBuilder_ == null) { + if (typeCase_ == 2) { + return (com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer + .SelectedAnswer) + type_; + } + return com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer + .SelectedAnswer.getDefaultInstance(); + } else { + if (typeCase_ == 2) { + return selectedAnswerBuilder_.getMessage(); + } + return com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer + .SelectedAnswer.getDefaultInstance(); + } + } + + /** + * + * + *
    +       * Optional. This field specifies the selected answer during the
    +       * conversational search. This should be a subset of
    +       * [ConversationalSearchResponse.followup_question.suggested_answers][].
    +       * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.SelectedAnswer selected_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSelectedAnswer( + com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.SelectedAnswer + value) { + if (selectedAnswerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + selectedAnswerBuilder_.setMessage(value); + } + typeCase_ = 2; + return this; + } + + /** + * + * + *
    +       * Optional. This field specifies the selected answer during the
    +       * conversational search. This should be a subset of
    +       * [ConversationalSearchResponse.followup_question.suggested_answers][].
    +       * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.SelectedAnswer selected_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSelectedAnswer( + com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.SelectedAnswer + .Builder + builderForValue) { + if (selectedAnswerBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + selectedAnswerBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 2; + return this; + } + + /** + * + * + *
    +       * Optional. This field specifies the selected answer during the
    +       * conversational search. This should be a subset of
    +       * [ConversationalSearchResponse.followup_question.suggested_answers][].
    +       * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.SelectedAnswer selected_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSelectedAnswer( + com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.SelectedAnswer + value) { + if (selectedAnswerBuilder_ == null) { + if (typeCase_ == 2 + && type_ + != com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer + .SelectedAnswer.getDefaultInstance()) { + type_ = + com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.SelectedAnswer + .newBuilder( + (com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer + .SelectedAnswer) + type_) + .mergeFrom(value) + .buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 2) { + selectedAnswerBuilder_.mergeFrom(value); + } else { + selectedAnswerBuilder_.setMessage(value); + } + } + typeCase_ = 2; + return this; + } + + /** + * + * + *
    +       * Optional. This field specifies the selected answer during the
    +       * conversational search. This should be a subset of
    +       * [ConversationalSearchResponse.followup_question.suggested_answers][].
    +       * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.SelectedAnswer selected_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSelectedAnswer() { + if (selectedAnswerBuilder_ == null) { + if (typeCase_ == 2) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 2) { + typeCase_ = 0; + type_ = null; + } + selectedAnswerBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +       * Optional. This field specifies the selected answer during the
    +       * conversational search. This should be a subset of
    +       * [ConversationalSearchResponse.followup_question.suggested_answers][].
    +       * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.SelectedAnswer selected_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.SelectedAnswer + .Builder + getSelectedAnswerBuilder() { + return getSelectedAnswerFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +       * Optional. This field specifies the selected answer during the
    +       * conversational search. This should be a subset of
    +       * [ConversationalSearchResponse.followup_question.suggested_answers][].
    +       * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.SelectedAnswer selected_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer + .SelectedAnswerOrBuilder + getSelectedAnswerOrBuilder() { + if ((typeCase_ == 2) && (selectedAnswerBuilder_ != null)) { + return selectedAnswerBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 2) { + return (com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer + .SelectedAnswer) + type_; + } + return com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer + .SelectedAnswer.getDefaultInstance(); + } + } + + /** + * + * + *
    +       * Optional. This field specifies the selected answer during the
    +       * conversational search. This should be a subset of
    +       * [ConversationalSearchResponse.followup_question.suggested_answers][].
    +       * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.SelectedAnswer selected_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.SelectedAnswer, + com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.SelectedAnswer + .Builder, + com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer + .SelectedAnswerOrBuilder> + getSelectedAnswerFieldBuilder() { + if (selectedAnswerBuilder_ == null) { + if (!(typeCase_ == 2)) { + type_ = + com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.SelectedAnswer + .getDefaultInstance(); + } + selectedAnswerBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer + .SelectedAnswer, + com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer + .SelectedAnswer.Builder, + com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer + .SelectedAnswerOrBuilder>( + (com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer + .SelectedAnswer) + type_, + getParentForChildren(), + isClean()); + type_ = null; + } + typeCase_ = 2; + onChanged(); + return selectedAnswerBuilder_; + } + + @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.retail.v2beta.ConversationalSearchRequest.UserAnswer) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer) + private static final com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer(); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserAnswer parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.retail.v2beta.ConversationalSearchRequest.UserAnswer + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ConversationalFilteringSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * Optional. This field is deprecated. Please use
    +     * [ConversationalFilteringSpec.conversational_filtering_mode][google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec.conversational_filtering_mode]
    +     * instead.
    +     * 
    + * + * + * bool enable_conversational_filtering = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec.enable_conversational_filtering + * is deprecated. See google/cloud/retail/v2beta/conversational_search_service.proto;l=145 + * @return The enableConversationalFiltering. + */ + @java.lang.Deprecated + boolean getEnableConversationalFiltering(); + + /** + * + * + *
    +     * Optional. This field specifies the current user answer during the
    +     * conversational filtering search. It can be either user selected from
    +     * suggested answers or user input plain text.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer user_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the userAnswer field is set. + */ + boolean hasUserAnswer(); + + /** + * + * + *
    +     * Optional. This field specifies the current user answer during the
    +     * conversational filtering search. It can be either user selected from
    +     * suggested answers or user input plain text.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer user_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The userAnswer. + */ + com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer getUserAnswer(); + + /** + * + * + *
    +     * Optional. This field specifies the current user answer during the
    +     * conversational filtering search. It can be either user selected from
    +     * suggested answers or user input plain text.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer user_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswerOrBuilder + getUserAnswerOrBuilder(); + + /** + * + * + *
    +     * Optional. Mode to control Conversational Filtering.
    +     * Defaults to
    +     * [Mode.DISABLED][google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec.Mode.DISABLED]
    +     * if it's unset.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec.Mode conversational_filtering_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for conversationalFilteringMode. + */ + int getConversationalFilteringModeValue(); + + /** + * + * + *
    +     * Optional. Mode to control Conversational Filtering.
    +     * Defaults to
    +     * [Mode.DISABLED][google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec.Mode.DISABLED]
    +     * if it's unset.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec.Mode conversational_filtering_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The conversationalFilteringMode. + */ + com.google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec.Mode + getConversationalFilteringMode(); + } + + /** + * + * + *
    +   * This field specifies all conversational filtering related parameters
    +   * addition to conversational retail search.
    +   * 
    + * + * Protobuf type {@code + * google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec} + */ + public static final class ConversationalFilteringSpec + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec) + ConversationalFilteringSpecOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ConversationalFilteringSpec.newBuilder() to construct. + private ConversationalFilteringSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ConversationalFilteringSpec() { + conversationalFilteringMode_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ConversationalFilteringSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2beta.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_ConversationalFilteringSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2beta.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_ConversationalFilteringSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec + .class, + com.google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec + .Builder.class); + } + + /** + * + * + *
    +     * Enum to control Conversational Filtering mode.
    +     * A single conversation session including multiple turns supports modes for
    +     * Conversational Search OR Conversational Filtering without
    +     * Conversational Search, but not both.
    +     * 
    + * + * Protobuf enum {@code + * google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec.Mode} + */ + public enum Mode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +       * Default value.
    +       * 
    + * + * MODE_UNSPECIFIED = 0; + */ + MODE_UNSPECIFIED(0), + /** + * + * + *
    +       * Disables Conversational Filtering when using Conversational Search.
    +       * 
    + * + * DISABLED = 1; + */ + DISABLED(1), + /** + * + * + *
    +       * Enables Conversational Filtering when using Conversational Search.
    +       * 
    + * + * ENABLED = 2; + */ + ENABLED(2), + /** + * + * + *
    +       * Enables Conversational Filtering without Conversational Search.
    +       * 
    + * + * CONVERSATIONAL_FILTER_ONLY = 3; + */ + CONVERSATIONAL_FILTER_ONLY(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +       * Default value.
    +       * 
    + * + * MODE_UNSPECIFIED = 0; + */ + public static final int MODE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +       * Disables Conversational Filtering when using Conversational Search.
    +       * 
    + * + * DISABLED = 1; + */ + public static final int DISABLED_VALUE = 1; + + /** + * + * + *
    +       * Enables Conversational Filtering when using Conversational Search.
    +       * 
    + * + * ENABLED = 2; + */ + public static final int ENABLED_VALUE = 2; + + /** + * + * + *
    +       * Enables Conversational Filtering without Conversational Search.
    +       * 
    + * + * CONVERSATIONAL_FILTER_ONLY = 3; + */ + public static final int CONVERSATIONAL_FILTER_ONLY_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 Mode 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 Mode forNumber(int value) { + switch (value) { + case 0: + return MODE_UNSPECIFIED; + case 1: + return DISABLED; + case 2: + return ENABLED; + case 3: + return CONVERSATIONAL_FILTER_ONLY; + 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 Mode findValueByNumber(int number) { + return Mode.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.retail.v2beta.ConversationalSearchRequest + .ConversationalFilteringSpec.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Mode[] VALUES = values(); + + public static Mode 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 Mode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec.Mode) + } + + private int bitField0_; + public static final int ENABLE_CONVERSATIONAL_FILTERING_FIELD_NUMBER = 1; + private boolean enableConversationalFiltering_ = false; + + /** + * + * + *
    +     * Optional. This field is deprecated. Please use
    +     * [ConversationalFilteringSpec.conversational_filtering_mode][google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec.conversational_filtering_mode]
    +     * instead.
    +     * 
    + * + * + * bool enable_conversational_filtering = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec.enable_conversational_filtering + * is deprecated. See google/cloud/retail/v2beta/conversational_search_service.proto;l=145 + * @return The enableConversationalFiltering. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean getEnableConversationalFiltering() { + return enableConversationalFiltering_; + } + + public static final int USER_ANSWER_FIELD_NUMBER = 2; + private com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer userAnswer_; + + /** + * + * + *
    +     * Optional. This field specifies the current user answer during the
    +     * conversational filtering search. It can be either user selected from
    +     * suggested answers or user input plain text.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer user_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the userAnswer field is set. + */ + @java.lang.Override + public boolean hasUserAnswer() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +     * Optional. This field specifies the current user answer during the
    +     * conversational filtering search. It can be either user selected from
    +     * suggested answers or user input plain text.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer user_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The userAnswer. + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer getUserAnswer() { + return userAnswer_ == null + ? com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer + .getDefaultInstance() + : userAnswer_; + } + + /** + * + * + *
    +     * Optional. This field specifies the current user answer during the
    +     * conversational filtering search. It can be either user selected from
    +     * suggested answers or user input plain text.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer user_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswerOrBuilder + getUserAnswerOrBuilder() { + return userAnswer_ == null + ? com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer + .getDefaultInstance() + : userAnswer_; + } + + public static final int CONVERSATIONAL_FILTERING_MODE_FIELD_NUMBER = 4; + private int conversationalFilteringMode_ = 0; + + /** + * + * + *
    +     * Optional. Mode to control Conversational Filtering.
    +     * Defaults to
    +     * [Mode.DISABLED][google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec.Mode.DISABLED]
    +     * if it's unset.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec.Mode conversational_filtering_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for conversationalFilteringMode. + */ + @java.lang.Override + public int getConversationalFilteringModeValue() { + return conversationalFilteringMode_; + } + + /** + * + * + *
    +     * Optional. Mode to control Conversational Filtering.
    +     * Defaults to
    +     * [Mode.DISABLED][google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec.Mode.DISABLED]
    +     * if it's unset.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec.Mode conversational_filtering_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The conversationalFilteringMode. + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec + .Mode + getConversationalFilteringMode() { + com.google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec.Mode + result = + com.google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec + .Mode.forNumber(conversationalFilteringMode_); + return result == null + ? com.google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec + .Mode.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 (enableConversationalFiltering_ != false) { + output.writeBool(1, enableConversationalFiltering_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getUserAnswer()); + } + if (conversationalFilteringMode_ + != com.google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec + .Mode.MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, conversationalFilteringMode_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enableConversationalFiltering_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 1, enableConversationalFiltering_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUserAnswer()); + } + if (conversationalFilteringMode_ + != com.google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec + .Mode.MODE_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(4, conversationalFilteringMode_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec)) { + return super.equals(obj); + } + com.google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec other = + (com.google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec) + obj; + + if (getEnableConversationalFiltering() != other.getEnableConversationalFiltering()) + return false; + if (hasUserAnswer() != other.hasUserAnswer()) return false; + if (hasUserAnswer()) { + if (!getUserAnswer().equals(other.getUserAnswer())) return false; + } + if (conversationalFilteringMode_ != other.conversationalFilteringMode_) 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) + ENABLE_CONVERSATIONAL_FILTERING_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getEnableConversationalFiltering()); + if (hasUserAnswer()) { + hash = (37 * hash) + USER_ANSWER_FIELD_NUMBER; + hash = (53 * hash) + getUserAnswer().hashCode(); + } + hash = (37 * hash) + CONVERSATIONAL_FILTERING_MODE_FIELD_NUMBER; + hash = (53 * hash) + conversationalFilteringMode_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchRequest + .ConversationalFilteringSpec + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchRequest + .ConversationalFilteringSpec + 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.retail.v2beta.ConversationalSearchRequest + .ConversationalFilteringSpec + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchRequest + .ConversationalFilteringSpec + parseFrom( + 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.retail.v2beta.ConversationalSearchRequest + .ConversationalFilteringSpec + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchRequest + .ConversationalFilteringSpec + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchRequest + .ConversationalFilteringSpec + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchRequest + .ConversationalFilteringSpec + 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.retail.v2beta.ConversationalSearchRequest + .ConversationalFilteringSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchRequest + .ConversationalFilteringSpec + 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.retail.v2beta.ConversationalSearchRequest + .ConversationalFilteringSpec + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchRequest + .ConversationalFilteringSpec + 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.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
    +     * This field specifies all conversational filtering related parameters
    +     * addition to conversational retail search.
    +     * 
    + * + * Protobuf type {@code + * google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec) + com.google.cloud.retail.v2beta.ConversationalSearchRequest + .ConversationalFilteringSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2beta.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_ConversationalFilteringSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2beta.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_ConversationalFilteringSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2beta.ConversationalSearchRequest + .ConversationalFilteringSpec.class, + com.google.cloud.retail.v2beta.ConversationalSearchRequest + .ConversationalFilteringSpec.Builder.class); + } + + // Construct using + // com.google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getUserAnswerFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enableConversationalFiltering_ = false; + userAnswer_ = null; + if (userAnswerBuilder_ != null) { + userAnswerBuilder_.dispose(); + userAnswerBuilder_ = null; + } + conversationalFilteringMode_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2beta.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_ConversationalFilteringSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec + getDefaultInstanceForType() { + return com.google.cloud.retail.v2beta.ConversationalSearchRequest + .ConversationalFilteringSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec + build() { + com.google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec + buildPartial() { + com.google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec + result = + new com.google.cloud.retail.v2beta.ConversationalSearchRequest + .ConversationalFilteringSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enableConversationalFiltering_ = enableConversationalFiltering_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.userAnswer_ = + userAnswerBuilder_ == null ? userAnswer_ : userAnswerBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.conversationalFilteringMode_ = conversationalFilteringMode_; + } + 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.retail.v2beta.ConversationalSearchRequest + .ConversationalFilteringSpec) { + return mergeFrom( + (com.google.cloud.retail.v2beta.ConversationalSearchRequest + .ConversationalFilteringSpec) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec + other) { + if (other + == com.google.cloud.retail.v2beta.ConversationalSearchRequest + .ConversationalFilteringSpec.getDefaultInstance()) return this; + if (other.getEnableConversationalFiltering() != false) { + setEnableConversationalFiltering(other.getEnableConversationalFiltering()); + } + if (other.hasUserAnswer()) { + mergeUserAnswer(other.getUserAnswer()); + } + if (other.conversationalFilteringMode_ != 0) { + setConversationalFilteringModeValue(other.getConversationalFilteringModeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + enableConversationalFiltering_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage(getUserAnswerFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 32: + { + conversationalFilteringMode_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean enableConversationalFiltering_; + + /** + * + * + *
    +       * Optional. This field is deprecated. Please use
    +       * [ConversationalFilteringSpec.conversational_filtering_mode][google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec.conversational_filtering_mode]
    +       * instead.
    +       * 
    + * + * + * bool enable_conversational_filtering = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec.enable_conversational_filtering + * is deprecated. See google/cloud/retail/v2beta/conversational_search_service.proto;l=145 + * @return The enableConversationalFiltering. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean getEnableConversationalFiltering() { + return enableConversationalFiltering_; + } + + /** + * + * + *
    +       * Optional. This field is deprecated. Please use
    +       * [ConversationalFilteringSpec.conversational_filtering_mode][google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec.conversational_filtering_mode]
    +       * instead.
    +       * 
    + * + * + * bool enable_conversational_filtering = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec.enable_conversational_filtering + * is deprecated. See google/cloud/retail/v2beta/conversational_search_service.proto;l=145 + * @param value The enableConversationalFiltering to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setEnableConversationalFiltering(boolean value) { + + enableConversationalFiltering_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. This field is deprecated. Please use
    +       * [ConversationalFilteringSpec.conversational_filtering_mode][google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec.conversational_filtering_mode]
    +       * instead.
    +       * 
    + * + * + * bool enable_conversational_filtering = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec.enable_conversational_filtering + * is deprecated. See google/cloud/retail/v2beta/conversational_search_service.proto;l=145 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearEnableConversationalFiltering() { + bitField0_ = (bitField0_ & ~0x00000001); + enableConversationalFiltering_ = false; + onChanged(); + return this; + } + + private com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer userAnswer_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer, + com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.Builder, + com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswerOrBuilder> + userAnswerBuilder_; + + /** + * + * + *
    +       * Optional. This field specifies the current user answer during the
    +       * conversational filtering search. It can be either user selected from
    +       * suggested answers or user input plain text.
    +       * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer user_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the userAnswer field is set. + */ + public boolean hasUserAnswer() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +       * Optional. This field specifies the current user answer during the
    +       * conversational filtering search. It can be either user selected from
    +       * suggested answers or user input plain text.
    +       * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer user_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The userAnswer. + */ + public com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer getUserAnswer() { + if (userAnswerBuilder_ == null) { + return userAnswer_ == null + ? com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer + .getDefaultInstance() + : userAnswer_; + } else { + return userAnswerBuilder_.getMessage(); + } + } + + /** + * + * + *
    +       * Optional. This field specifies the current user answer during the
    +       * conversational filtering search. It can be either user selected from
    +       * suggested answers or user input plain text.
    +       * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer user_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUserAnswer( + com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer value) { + if (userAnswerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + userAnswer_ = value; + } else { + userAnswerBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. This field specifies the current user answer during the
    +       * conversational filtering search. It can be either user selected from
    +       * suggested answers or user input plain text.
    +       * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer user_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUserAnswer( + com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.Builder + builderForValue) { + if (userAnswerBuilder_ == null) { + userAnswer_ = builderForValue.build(); + } else { + userAnswerBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. This field specifies the current user answer during the
    +       * conversational filtering search. It can be either user selected from
    +       * suggested answers or user input plain text.
    +       * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer user_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUserAnswer( + com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer value) { + if (userAnswerBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && userAnswer_ != null + && userAnswer_ + != com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer + .getDefaultInstance()) { + getUserAnswerBuilder().mergeFrom(value); + } else { + userAnswer_ = value; + } + } else { + userAnswerBuilder_.mergeFrom(value); + } + if (userAnswer_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
    +       * Optional. This field specifies the current user answer during the
    +       * conversational filtering search. It can be either user selected from
    +       * suggested answers or user input plain text.
    +       * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer user_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUserAnswer() { + bitField0_ = (bitField0_ & ~0x00000002); + userAnswer_ = null; + if (userAnswerBuilder_ != null) { + userAnswerBuilder_.dispose(); + userAnswerBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. This field specifies the current user answer during the
    +       * conversational filtering search. It can be either user selected from
    +       * suggested answers or user input plain text.
    +       * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer user_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.Builder + getUserAnswerBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUserAnswerFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +       * Optional. This field specifies the current user answer during the
    +       * conversational filtering search. It can be either user selected from
    +       * suggested answers or user input plain text.
    +       * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer user_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswerOrBuilder + getUserAnswerOrBuilder() { + if (userAnswerBuilder_ != null) { + return userAnswerBuilder_.getMessageOrBuilder(); + } else { + return userAnswer_ == null + ? com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer + .getDefaultInstance() + : userAnswer_; + } + } + + /** + * + * + *
    +       * Optional. This field specifies the current user answer during the
    +       * conversational filtering search. It can be either user selected from
    +       * suggested answers or user input plain text.
    +       * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer user_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer, + com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.Builder, + com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswerOrBuilder> + getUserAnswerFieldBuilder() { + if (userAnswerBuilder_ == null) { + userAnswerBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer, + com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswer.Builder, + com.google.cloud.retail.v2beta.ConversationalSearchRequest.UserAnswerOrBuilder>( + getUserAnswer(), getParentForChildren(), isClean()); + userAnswer_ = null; + } + return userAnswerBuilder_; + } + + private int conversationalFilteringMode_ = 0; + + /** + * + * + *
    +       * Optional. Mode to control Conversational Filtering.
    +       * Defaults to
    +       * [Mode.DISABLED][google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec.Mode.DISABLED]
    +       * if it's unset.
    +       * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec.Mode conversational_filtering_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for conversationalFilteringMode. + */ + @java.lang.Override + public int getConversationalFilteringModeValue() { + return conversationalFilteringMode_; + } + + /** + * + * + *
    +       * Optional. Mode to control Conversational Filtering.
    +       * Defaults to
    +       * [Mode.DISABLED][google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec.Mode.DISABLED]
    +       * if it's unset.
    +       * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec.Mode conversational_filtering_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for conversationalFilteringMode to set. + * @return This builder for chaining. + */ + public Builder setConversationalFilteringModeValue(int value) { + conversationalFilteringMode_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. Mode to control Conversational Filtering.
    +       * Defaults to
    +       * [Mode.DISABLED][google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec.Mode.DISABLED]
    +       * if it's unset.
    +       * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec.Mode conversational_filtering_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The conversationalFilteringMode. + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec + .Mode + getConversationalFilteringMode() { + com.google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec.Mode + result = + com.google.cloud.retail.v2beta.ConversationalSearchRequest + .ConversationalFilteringSpec.Mode.forNumber(conversationalFilteringMode_); + return result == null + ? com.google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec + .Mode.UNRECOGNIZED + : result; + } + + /** + * + * + *
    +       * Optional. Mode to control Conversational Filtering.
    +       * Defaults to
    +       * [Mode.DISABLED][google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec.Mode.DISABLED]
    +       * if it's unset.
    +       * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec.Mode conversational_filtering_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The conversationalFilteringMode to set. + * @return This builder for chaining. + */ + public Builder setConversationalFilteringMode( + com.google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec + .Mode + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + conversationalFilteringMode_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. Mode to control Conversational Filtering.
    +       * Defaults to
    +       * [Mode.DISABLED][google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec.Mode.DISABLED]
    +       * if it's unset.
    +       * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec.Mode conversational_filtering_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearConversationalFilteringMode() { + bitField0_ = (bitField0_ & ~0x00000004); + conversationalFilteringMode_ = 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.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec) + private static final com.google.cloud.retail.v2beta.ConversationalSearchRequest + .ConversationalFilteringSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.retail.v2beta.ConversationalSearchRequest + .ConversationalFilteringSpec(); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchRequest + .ConversationalFilteringSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConversationalFilteringSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int PLACEMENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object placement_ = ""; + + /** + * + * + *
    +   * Required. The resource name of the search engine placement, such as
    +   * `projects/*/locations/global/catalogs/default_catalog/placements/default_search`
    +   * or
    +   * `projects/*/locations/global/catalogs/default_catalog/servingConfigs/default_serving_config`
    +   * This field is used to identify the serving config name and the set
    +   * of models that will be used to make the search.
    +   * 
    + * + * string placement = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The placement. + */ + @java.lang.Override + public java.lang.String getPlacement() { + java.lang.Object ref = placement_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + placement_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. The resource name of the search engine placement, such as
    +   * `projects/*/locations/global/catalogs/default_catalog/placements/default_search`
    +   * or
    +   * `projects/*/locations/global/catalogs/default_catalog/servingConfigs/default_serving_config`
    +   * This field is used to identify the serving config name and the set
    +   * of models that will be used to make the search.
    +   * 
    + * + * string placement = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for placement. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPlacementBytes() { + java.lang.Object ref = placement_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + placement_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BRANCH_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object branch_ = ""; + + /** + * + * + *
    +   * Required. The branch resource name, such as
    +   * `projects/*/locations/global/catalogs/default_catalog/branches/0`.
    +   *
    +   * Use "default_branch" as the branch ID or leave this field empty, to search
    +   * products under the default branch.
    +   * 
    + * + * + * string branch = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The branch. + */ + @java.lang.Override + public java.lang.String getBranch() { + java.lang.Object ref = branch_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + branch_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. The branch resource name, such as
    +   * `projects/*/locations/global/catalogs/default_catalog/branches/0`.
    +   *
    +   * Use "default_branch" as the branch ID or leave this field empty, to search
    +   * products under the default branch.
    +   * 
    + * + * + * string branch = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for branch. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBranchBytes() { + java.lang.Object ref = branch_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + branch_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int QUERY_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object query_ = ""; + + /** + * + * + *
    +   * Optional. Raw search query to be searched for.
    +   *
    +   * If this field is empty, the request is considered a category browsing
    +   * request.
    +   * 
    + * + * string query = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The query. + */ + @java.lang.Override + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. Raw search query to be searched for.
    +   *
    +   * If this field is empty, the request is considered a category browsing
    +   * request.
    +   * 
    + * + * string query = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for query. + */ + @java.lang.Override + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_CATEGORIES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList pageCategories_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
    +   * Optional. The categories associated with a category page. Must be set for
    +   * category navigation queries to achieve good search quality. The format
    +   * should be the same as
    +   * [UserEvent.page_categories][google.cloud.retail.v2beta.UserEvent.page_categories];
    +   *
    +   * To represent full path of category, use '>' sign to separate different
    +   * hierarchies. If '>' is part of the category name, replace it with
    +   * other character(s).
    +   *
    +   * Category pages include special pages such as sales or promotions. For
    +   * instance, a special sale page may have the category hierarchy:
    +   * "pageCategories" : ["Sales > 2017 Black Friday Deals"].
    +   * 
    + * + * repeated string page_categories = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the pageCategories. + */ + public com.google.protobuf.ProtocolStringList getPageCategoriesList() { + return pageCategories_; + } + + /** + * + * + *
    +   * Optional. The categories associated with a category page. Must be set for
    +   * category navigation queries to achieve good search quality. The format
    +   * should be the same as
    +   * [UserEvent.page_categories][google.cloud.retail.v2beta.UserEvent.page_categories];
    +   *
    +   * To represent full path of category, use '>' sign to separate different
    +   * hierarchies. If '>' is part of the category name, replace it with
    +   * other character(s).
    +   *
    +   * Category pages include special pages such as sales or promotions. For
    +   * instance, a special sale page may have the category hierarchy:
    +   * "pageCategories" : ["Sales > 2017 Black Friday Deals"].
    +   * 
    + * + * repeated string page_categories = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of pageCategories. + */ + public int getPageCategoriesCount() { + return pageCategories_.size(); + } + + /** + * + * + *
    +   * Optional. The categories associated with a category page. Must be set for
    +   * category navigation queries to achieve good search quality. The format
    +   * should be the same as
    +   * [UserEvent.page_categories][google.cloud.retail.v2beta.UserEvent.page_categories];
    +   *
    +   * To represent full path of category, use '>' sign to separate different
    +   * hierarchies. If '>' is part of the category name, replace it with
    +   * other character(s).
    +   *
    +   * Category pages include special pages such as sales or promotions. For
    +   * instance, a special sale page may have the category hierarchy:
    +   * "pageCategories" : ["Sales > 2017 Black Friday Deals"].
    +   * 
    + * + * repeated string page_categories = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The pageCategories at the given index. + */ + public java.lang.String getPageCategories(int index) { + return pageCategories_.get(index); + } + + /** + * + * + *
    +   * Optional. The categories associated with a category page. Must be set for
    +   * category navigation queries to achieve good search quality. The format
    +   * should be the same as
    +   * [UserEvent.page_categories][google.cloud.retail.v2beta.UserEvent.page_categories];
    +   *
    +   * To represent full path of category, use '>' sign to separate different
    +   * hierarchies. If '>' is part of the category name, replace it with
    +   * other character(s).
    +   *
    +   * Category pages include special pages such as sales or promotions. For
    +   * instance, a special sale page may have the category hierarchy:
    +   * "pageCategories" : ["Sales > 2017 Black Friday Deals"].
    +   * 
    + * + * repeated string page_categories = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the pageCategories at the given index. + */ + public com.google.protobuf.ByteString getPageCategoriesBytes(int index) { + return pageCategories_.getByteString(index); + } + + public static final int CONVERSATION_ID_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object conversationId_ = ""; + + /** + * + * + *
    +   * Optional. This field specifies the conversation id, which maintains the
    +   * state of the conversation between client side and server side. Use the
    +   * value from the previous
    +   * [ConversationalSearchResponse.conversation_id][google.cloud.retail.v2beta.ConversationalSearchResponse.conversation_id].
    +   * For the initial request, this should be empty.
    +   * 
    + * + * string conversation_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The conversationId. + */ + @java.lang.Override + public java.lang.String getConversationId() { + java.lang.Object ref = conversationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + conversationId_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. This field specifies the conversation id, which maintains the
    +   * state of the conversation between client side and server side. Use the
    +   * value from the previous
    +   * [ConversationalSearchResponse.conversation_id][google.cloud.retail.v2beta.ConversationalSearchResponse.conversation_id].
    +   * For the initial request, this should be empty.
    +   * 
    + * + * string conversation_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for conversationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConversationIdBytes() { + java.lang.Object ref = conversationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + conversationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SEARCH_PARAMS_FIELD_NUMBER = 6; + private com.google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams searchParams_; + + /** + * + * + *
    +   * Optional. Search parameters.
    +   * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams search_params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the searchParams field is set. + */ + @java.lang.Override + public boolean hasSearchParams() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * Optional. Search parameters.
    +   * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams search_params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The searchParams. + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams getSearchParams() { + return searchParams_ == null + ? com.google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams + .getDefaultInstance() + : searchParams_; + } + + /** + * + * + *
    +   * Optional. Search parameters.
    +   * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams search_params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParamsOrBuilder + getSearchParamsOrBuilder() { + return searchParams_ == null + ? com.google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams + .getDefaultInstance() + : searchParams_; + } + + public static final int VISITOR_ID_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object visitorId_ = ""; + + /** + * + * + *
    +   * Required. A unique identifier for tracking visitors. For example, this
    +   * could be implemented with an HTTP cookie, which should be able to uniquely
    +   * identify a visitor on a single device. This unique identifier should not
    +   * change if the visitor logs in or out of the website.
    +   *
    +   * This should be the same identifier as
    +   * [UserEvent.visitor_id][google.cloud.retail.v2beta.UserEvent.visitor_id].
    +   *
    +   * The field must be a UTF-8 encoded string with a length limit of 128
    +   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
    +   * 
    + * + * string visitor_id = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The visitorId. + */ + @java.lang.Override + public java.lang.String getVisitorId() { + java.lang.Object ref = visitorId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + visitorId_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. A unique identifier for tracking visitors. For example, this
    +   * could be implemented with an HTTP cookie, which should be able to uniquely
    +   * identify a visitor on a single device. This unique identifier should not
    +   * change if the visitor logs in or out of the website.
    +   *
    +   * This should be the same identifier as
    +   * [UserEvent.visitor_id][google.cloud.retail.v2beta.UserEvent.visitor_id].
    +   *
    +   * The field must be a UTF-8 encoded string with a length limit of 128
    +   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
    +   * 
    + * + * string visitor_id = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for visitorId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVisitorIdBytes() { + java.lang.Object ref = visitorId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + visitorId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USER_INFO_FIELD_NUMBER = 7; + private com.google.cloud.retail.v2beta.UserInfo userInfo_; + + /** + * + * + *
    +   * Optional. User information.
    +   * 
    + * + * + * .google.cloud.retail.v2beta.UserInfo user_info = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the userInfo field is set. + */ + @java.lang.Override + public boolean hasUserInfo() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +   * Optional. User information.
    +   * 
    + * + * + * .google.cloud.retail.v2beta.UserInfo user_info = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The userInfo. + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.UserInfo getUserInfo() { + return userInfo_ == null + ? com.google.cloud.retail.v2beta.UserInfo.getDefaultInstance() + : userInfo_; + } + + /** + * + * + *
    +   * Optional. User information.
    +   * 
    + * + * + * .google.cloud.retail.v2beta.UserInfo user_info = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.UserInfoOrBuilder getUserInfoOrBuilder() { + return userInfo_ == null + ? com.google.cloud.retail.v2beta.UserInfo.getDefaultInstance() + : userInfo_; + } + + public static final int CONVERSATIONAL_FILTERING_SPEC_FIELD_NUMBER = 8; + private com.google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec + conversationalFilteringSpec_; + + /** + * + * + *
    +   * Optional. This field specifies all conversational filtering related
    +   * parameters.
    +   * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec conversational_filtering_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the conversationalFilteringSpec field is set. + */ + @java.lang.Override + public boolean hasConversationalFilteringSpec() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +   * Optional. This field specifies all conversational filtering related
    +   * parameters.
    +   * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec conversational_filtering_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The conversationalFilteringSpec. + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec + getConversationalFilteringSpec() { + return conversationalFilteringSpec_ == null + ? com.google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec + .getDefaultInstance() + : conversationalFilteringSpec_; + } + + /** + * + * + *
    +   * Optional. This field specifies all conversational filtering related
    +   * parameters.
    +   * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec conversational_filtering_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchRequest + .ConversationalFilteringSpecOrBuilder + getConversationalFilteringSpecOrBuilder() { + return conversationalFilteringSpec_ == null + ? com.google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec + .getDefaultInstance() + : conversationalFilteringSpec_; + } + + public static final int USER_LABELS_FIELD_NUMBER = 12; + + private static final class UserLabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.retail.v2beta.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_UserLabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField userLabels_; + + private com.google.protobuf.MapField internalGetUserLabels() { + if (userLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField(UserLabelsDefaultEntryHolder.defaultEntry); + } + return userLabels_; + } + + public int getUserLabelsCount() { + return internalGetUserLabels().getMap().size(); + } + + /** + * + * + *
    +   * Optional. The user labels applied to a resource must meet the following
    +   * requirements:
    +   *
    +   * * Each resource can have multiple labels, up to a maximum of 64.
    +   * * Each label must be a key-value pair.
    +   * * Keys have a minimum length of 1 character and a maximum length of 63
    +   *   characters and cannot be empty. Values can be empty and have a maximum
    +   *   length of 63 characters.
    +   * * Keys and values can contain only lowercase letters, numeric characters,
    +   *   underscores, and dashes. All characters must use UTF-8 encoding, and
    +   *   international characters are allowed.
    +   * * The key portion of a label must be unique. However, you can use the same
    +   *   key with multiple resources.
    +   * * Keys must start with a lowercase letter or international character.
    +   *
    +   * See [Google Cloud
    +   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
    +   * for more details.
    +   * 
    + * + * map<string, string> user_labels = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsUserLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetUserLabels().getMap().containsKey(key); + } + + /** Use {@link #getUserLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getUserLabels() { + return getUserLabelsMap(); + } + + /** + * + * + *
    +   * Optional. The user labels applied to a resource must meet the following
    +   * requirements:
    +   *
    +   * * Each resource can have multiple labels, up to a maximum of 64.
    +   * * Each label must be a key-value pair.
    +   * * Keys have a minimum length of 1 character and a maximum length of 63
    +   *   characters and cannot be empty. Values can be empty and have a maximum
    +   *   length of 63 characters.
    +   * * Keys and values can contain only lowercase letters, numeric characters,
    +   *   underscores, and dashes. All characters must use UTF-8 encoding, and
    +   *   international characters are allowed.
    +   * * The key portion of a label must be unique. However, you can use the same
    +   *   key with multiple resources.
    +   * * Keys must start with a lowercase letter or international character.
    +   *
    +   * See [Google Cloud
    +   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
    +   * for more details.
    +   * 
    + * + * map<string, string> user_labels = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getUserLabelsMap() { + return internalGetUserLabels().getMap(); + } + + /** + * + * + *
    +   * Optional. The user labels applied to a resource must meet the following
    +   * requirements:
    +   *
    +   * * Each resource can have multiple labels, up to a maximum of 64.
    +   * * Each label must be a key-value pair.
    +   * * Keys have a minimum length of 1 character and a maximum length of 63
    +   *   characters and cannot be empty. Values can be empty and have a maximum
    +   *   length of 63 characters.
    +   * * Keys and values can contain only lowercase letters, numeric characters,
    +   *   underscores, and dashes. All characters must use UTF-8 encoding, and
    +   *   international characters are allowed.
    +   * * The key portion of a label must be unique. However, you can use the same
    +   *   key with multiple resources.
    +   * * Keys must start with a lowercase letter or international character.
    +   *
    +   * See [Google Cloud
    +   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
    +   * for more details.
    +   * 
    + * + * map<string, string> user_labels = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getUserLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetUserLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
    +   * Optional. The user labels applied to a resource must meet the following
    +   * requirements:
    +   *
    +   * * Each resource can have multiple labels, up to a maximum of 64.
    +   * * Each label must be a key-value pair.
    +   * * Keys have a minimum length of 1 character and a maximum length of 63
    +   *   characters and cannot be empty. Values can be empty and have a maximum
    +   *   length of 63 characters.
    +   * * Keys and values can contain only lowercase letters, numeric characters,
    +   *   underscores, and dashes. All characters must use UTF-8 encoding, and
    +   *   international characters are allowed.
    +   * * The key portion of a label must be unique. However, you can use the same
    +   *   key with multiple resources.
    +   * * Keys must start with a lowercase letter or international character.
    +   *
    +   * See [Google Cloud
    +   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
    +   * for more details.
    +   * 
    + * + * map<string, string> user_labels = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getUserLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetUserLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int SAFETY_SETTINGS_FIELD_NUMBER = 14; + + @SuppressWarnings("serial") + private java.util.List safetySettings_; + + /** + * + * + *
    +   * Optional. The safety settings to be applied to the generated content.
    +   * 
    + * + * + * repeated .google.cloud.retail.v2beta.SafetySetting safety_settings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getSafetySettingsList() { + return safetySettings_; + } + + /** + * + * + *
    +   * Optional. The safety settings to be applied to the generated content.
    +   * 
    + * + * + * repeated .google.cloud.retail.v2beta.SafetySetting safety_settings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getSafetySettingsOrBuilderList() { + return safetySettings_; + } + + /** + * + * + *
    +   * Optional. The safety settings to be applied to the generated content.
    +   * 
    + * + * + * repeated .google.cloud.retail.v2beta.SafetySetting safety_settings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getSafetySettingsCount() { + return safetySettings_.size(); + } + + /** + * + * + *
    +   * Optional. The safety settings to be applied to the generated content.
    +   * 
    + * + * + * repeated .google.cloud.retail.v2beta.SafetySetting safety_settings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.SafetySetting getSafetySettings(int index) { + return safetySettings_.get(index); + } + + /** + * + * + *
    +   * Optional. The safety settings to be applied to the generated content.
    +   * 
    + * + * + * repeated .google.cloud.retail.v2beta.SafetySetting safety_settings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.SafetySettingOrBuilder getSafetySettingsOrBuilder( + int index) { + return safetySettings_.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(placement_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, placement_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(branch_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, branch_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, query_); + } + for (int i = 0; i < pageCategories_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageCategories_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(conversationId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, conversationId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(6, getSearchParams()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(7, getUserInfo()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(8, getConversationalFilteringSpec()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(visitorId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, visitorId_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetUserLabels(), UserLabelsDefaultEntryHolder.defaultEntry, 12); + for (int i = 0; i < safetySettings_.size(); i++) { + output.writeMessage(14, safetySettings_.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(placement_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, placement_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(branch_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, branch_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, query_); + } + { + int dataSize = 0; + for (int i = 0; i < pageCategories_.size(); i++) { + dataSize += computeStringSizeNoTag(pageCategories_.getRaw(i)); + } + size += dataSize; + size += 1 * getPageCategoriesList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(conversationId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, conversationId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getSearchParams()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUserInfo()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, getConversationalFilteringSpec()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(visitorId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, visitorId_); + } + for (java.util.Map.Entry entry : + internalGetUserLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry userLabels__ = + UserLabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, userLabels__); + } + for (int i = 0; i < safetySettings_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, safetySettings_.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.retail.v2beta.ConversationalSearchRequest)) { + return super.equals(obj); + } + com.google.cloud.retail.v2beta.ConversationalSearchRequest other = + (com.google.cloud.retail.v2beta.ConversationalSearchRequest) obj; + + if (!getPlacement().equals(other.getPlacement())) return false; + if (!getBranch().equals(other.getBranch())) return false; + if (!getQuery().equals(other.getQuery())) return false; + if (!getPageCategoriesList().equals(other.getPageCategoriesList())) return false; + if (!getConversationId().equals(other.getConversationId())) return false; + if (hasSearchParams() != other.hasSearchParams()) return false; + if (hasSearchParams()) { + if (!getSearchParams().equals(other.getSearchParams())) return false; + } + if (!getVisitorId().equals(other.getVisitorId())) return false; + if (hasUserInfo() != other.hasUserInfo()) return false; + if (hasUserInfo()) { + if (!getUserInfo().equals(other.getUserInfo())) return false; + } + if (hasConversationalFilteringSpec() != other.hasConversationalFilteringSpec()) return false; + if (hasConversationalFilteringSpec()) { + if (!getConversationalFilteringSpec().equals(other.getConversationalFilteringSpec())) + return false; + } + if (!internalGetUserLabels().equals(other.internalGetUserLabels())) return false; + if (!getSafetySettingsList().equals(other.getSafetySettingsList())) 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) + PLACEMENT_FIELD_NUMBER; + hash = (53 * hash) + getPlacement().hashCode(); + hash = (37 * hash) + BRANCH_FIELD_NUMBER; + hash = (53 * hash) + getBranch().hashCode(); + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + if (getPageCategoriesCount() > 0) { + hash = (37 * hash) + PAGE_CATEGORIES_FIELD_NUMBER; + hash = (53 * hash) + getPageCategoriesList().hashCode(); + } + hash = (37 * hash) + CONVERSATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getConversationId().hashCode(); + if (hasSearchParams()) { + hash = (37 * hash) + SEARCH_PARAMS_FIELD_NUMBER; + hash = (53 * hash) + getSearchParams().hashCode(); + } + hash = (37 * hash) + VISITOR_ID_FIELD_NUMBER; + hash = (53 * hash) + getVisitorId().hashCode(); + if (hasUserInfo()) { + hash = (37 * hash) + USER_INFO_FIELD_NUMBER; + hash = (53 * hash) + getUserInfo().hashCode(); + } + if (hasConversationalFilteringSpec()) { + hash = (37 * hash) + CONVERSATIONAL_FILTERING_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getConversationalFilteringSpec().hashCode(); + } + if (!internalGetUserLabels().getMap().isEmpty()) { + hash = (37 * hash) + USER_LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetUserLabels().hashCode(); + } + if (getSafetySettingsCount() > 0) { + hash = (37 * hash) + SAFETY_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getSafetySettingsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchRequest 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.retail.v2beta.ConversationalSearchRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchRequest parseFrom( + 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.retail.v2beta.ConversationalSearchRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchRequest 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.retail.v2beta.ConversationalSearchRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchRequest 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.retail.v2beta.ConversationalSearchRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchRequest 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.retail.v2beta.ConversationalSearchRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request message for
    +   * [ConversationalSearchService.ConversationalSearch][google.cloud.retail.v2beta.ConversationalSearchService.ConversationalSearch]
    +   * method.
    +   * 
    + * + * Protobuf type {@code google.cloud.retail.v2beta.ConversationalSearchRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2beta.ConversationalSearchRequest) + com.google.cloud.retail.v2beta.ConversationalSearchRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2beta.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 12: + return internalGetUserLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 12: + return internalGetMutableUserLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2beta.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2beta.ConversationalSearchRequest.class, + com.google.cloud.retail.v2beta.ConversationalSearchRequest.Builder.class); + } + + // Construct using com.google.cloud.retail.v2beta.ConversationalSearchRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSearchParamsFieldBuilder(); + getUserInfoFieldBuilder(); + getConversationalFilteringSpecFieldBuilder(); + getSafetySettingsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + placement_ = ""; + branch_ = ""; + query_ = ""; + pageCategories_ = com.google.protobuf.LazyStringArrayList.emptyList(); + conversationId_ = ""; + searchParams_ = null; + if (searchParamsBuilder_ != null) { + searchParamsBuilder_.dispose(); + searchParamsBuilder_ = null; + } + visitorId_ = ""; + userInfo_ = null; + if (userInfoBuilder_ != null) { + userInfoBuilder_.dispose(); + userInfoBuilder_ = null; + } + conversationalFilteringSpec_ = null; + if (conversationalFilteringSpecBuilder_ != null) { + conversationalFilteringSpecBuilder_.dispose(); + conversationalFilteringSpecBuilder_ = null; + } + internalGetMutableUserLabels().clear(); + if (safetySettingsBuilder_ == null) { + safetySettings_ = java.util.Collections.emptyList(); + } else { + safetySettings_ = null; + safetySettingsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000400); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2beta.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchRequest getDefaultInstanceForType() { + return com.google.cloud.retail.v2beta.ConversationalSearchRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchRequest build() { + com.google.cloud.retail.v2beta.ConversationalSearchRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchRequest buildPartial() { + com.google.cloud.retail.v2beta.ConversationalSearchRequest result = + new com.google.cloud.retail.v2beta.ConversationalSearchRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.retail.v2beta.ConversationalSearchRequest result) { + if (safetySettingsBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0)) { + safetySettings_ = java.util.Collections.unmodifiableList(safetySettings_); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.safetySettings_ = safetySettings_; + } else { + result.safetySettings_ = safetySettingsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.retail.v2beta.ConversationalSearchRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.placement_ = placement_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.branch_ = branch_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.query_ = query_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + pageCategories_.makeImmutable(); + result.pageCategories_ = pageCategories_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.conversationId_ = conversationId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.searchParams_ = + searchParamsBuilder_ == null ? searchParams_ : searchParamsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.visitorId_ = visitorId_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.userInfo_ = userInfoBuilder_ == null ? userInfo_ : userInfoBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.conversationalFilteringSpec_ = + conversationalFilteringSpecBuilder_ == null + ? conversationalFilteringSpec_ + : conversationalFilteringSpecBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.userLabels_ = internalGetUserLabels(); + result.userLabels_.makeImmutable(); + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.retail.v2beta.ConversationalSearchRequest) { + return mergeFrom((com.google.cloud.retail.v2beta.ConversationalSearchRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.retail.v2beta.ConversationalSearchRequest other) { + if (other == com.google.cloud.retail.v2beta.ConversationalSearchRequest.getDefaultInstance()) + return this; + if (!other.getPlacement().isEmpty()) { + placement_ = other.placement_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getBranch().isEmpty()) { + branch_ = other.branch_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getQuery().isEmpty()) { + query_ = other.query_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.pageCategories_.isEmpty()) { + if (pageCategories_.isEmpty()) { + pageCategories_ = other.pageCategories_; + bitField0_ |= 0x00000008; + } else { + ensurePageCategoriesIsMutable(); + pageCategories_.addAll(other.pageCategories_); + } + onChanged(); + } + if (!other.getConversationId().isEmpty()) { + conversationId_ = other.conversationId_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasSearchParams()) { + mergeSearchParams(other.getSearchParams()); + } + if (!other.getVisitorId().isEmpty()) { + visitorId_ = other.visitorId_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.hasUserInfo()) { + mergeUserInfo(other.getUserInfo()); + } + if (other.hasConversationalFilteringSpec()) { + mergeConversationalFilteringSpec(other.getConversationalFilteringSpec()); + } + internalGetMutableUserLabels().mergeFrom(other.internalGetUserLabels()); + bitField0_ |= 0x00000200; + if (safetySettingsBuilder_ == null) { + if (!other.safetySettings_.isEmpty()) { + if (safetySettings_.isEmpty()) { + safetySettings_ = other.safetySettings_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensureSafetySettingsIsMutable(); + safetySettings_.addAll(other.safetySettings_); + } + onChanged(); + } + } else { + if (!other.safetySettings_.isEmpty()) { + if (safetySettingsBuilder_.isEmpty()) { + safetySettingsBuilder_.dispose(); + safetySettingsBuilder_ = null; + safetySettings_ = other.safetySettings_; + bitField0_ = (bitField0_ & ~0x00000400); + safetySettingsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSafetySettingsFieldBuilder() + : null; + } else { + safetySettingsBuilder_.addAllMessages(other.safetySettings_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + placement_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + branch_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + query_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePageCategoriesIsMutable(); + pageCategories_.add(s); + break; + } // case 34 + case 42: + { + conversationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage(getSearchParamsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage(getUserInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 58 + case 66: + { + input.readMessage( + getConversationalFilteringSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 66 + case 74: + { + visitorId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 74 + case 98: + { + com.google.protobuf.MapEntry userLabels__ = + input.readMessage( + UserLabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableUserLabels() + .getMutableMap() + .put(userLabels__.getKey(), userLabels__.getValue()); + bitField0_ |= 0x00000200; + break; + } // case 98 + case 114: + { + com.google.cloud.retail.v2beta.SafetySetting m = + input.readMessage( + com.google.cloud.retail.v2beta.SafetySetting.parser(), extensionRegistry); + if (safetySettingsBuilder_ == null) { + ensureSafetySettingsIsMutable(); + safetySettings_.add(m); + } else { + safetySettingsBuilder_.addMessage(m); + } + break; + } // case 114 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object placement_ = ""; + + /** + * + * + *
    +     * Required. The resource name of the search engine placement, such as
    +     * `projects/*/locations/global/catalogs/default_catalog/placements/default_search`
    +     * or
    +     * `projects/*/locations/global/catalogs/default_catalog/servingConfigs/default_serving_config`
    +     * This field is used to identify the serving config name and the set
    +     * of models that will be used to make the search.
    +     * 
    + * + * string placement = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The placement. + */ + public java.lang.String getPlacement() { + java.lang.Object ref = placement_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + placement_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. The resource name of the search engine placement, such as
    +     * `projects/*/locations/global/catalogs/default_catalog/placements/default_search`
    +     * or
    +     * `projects/*/locations/global/catalogs/default_catalog/servingConfigs/default_serving_config`
    +     * This field is used to identify the serving config name and the set
    +     * of models that will be used to make the search.
    +     * 
    + * + * string placement = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for placement. + */ + public com.google.protobuf.ByteString getPlacementBytes() { + java.lang.Object ref = placement_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + placement_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. The resource name of the search engine placement, such as
    +     * `projects/*/locations/global/catalogs/default_catalog/placements/default_search`
    +     * or
    +     * `projects/*/locations/global/catalogs/default_catalog/servingConfigs/default_serving_config`
    +     * This field is used to identify the serving config name and the set
    +     * of models that will be used to make the search.
    +     * 
    + * + * string placement = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The placement to set. + * @return This builder for chaining. + */ + public Builder setPlacement(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + placement_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The resource name of the search engine placement, such as
    +     * `projects/*/locations/global/catalogs/default_catalog/placements/default_search`
    +     * or
    +     * `projects/*/locations/global/catalogs/default_catalog/servingConfigs/default_serving_config`
    +     * This field is used to identify the serving config name and the set
    +     * of models that will be used to make the search.
    +     * 
    + * + * string placement = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPlacement() { + placement_ = getDefaultInstance().getPlacement(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The resource name of the search engine placement, such as
    +     * `projects/*/locations/global/catalogs/default_catalog/placements/default_search`
    +     * or
    +     * `projects/*/locations/global/catalogs/default_catalog/servingConfigs/default_serving_config`
    +     * This field is used to identify the serving config name and the set
    +     * of models that will be used to make the search.
    +     * 
    + * + * string placement = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for placement to set. + * @return This builder for chaining. + */ + public Builder setPlacementBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + placement_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object branch_ = ""; + + /** + * + * + *
    +     * Required. The branch resource name, such as
    +     * `projects/*/locations/global/catalogs/default_catalog/branches/0`.
    +     *
    +     * Use "default_branch" as the branch ID or leave this field empty, to search
    +     * products under the default branch.
    +     * 
    + * + * + * string branch = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The branch. + */ + public java.lang.String getBranch() { + java.lang.Object ref = branch_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + branch_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. The branch resource name, such as
    +     * `projects/*/locations/global/catalogs/default_catalog/branches/0`.
    +     *
    +     * Use "default_branch" as the branch ID or leave this field empty, to search
    +     * products under the default branch.
    +     * 
    + * + * + * string branch = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for branch. + */ + public com.google.protobuf.ByteString getBranchBytes() { + java.lang.Object ref = branch_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + branch_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. The branch resource name, such as
    +     * `projects/*/locations/global/catalogs/default_catalog/branches/0`.
    +     *
    +     * Use "default_branch" as the branch ID or leave this field empty, to search
    +     * products under the default branch.
    +     * 
    + * + * + * string branch = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The branch to set. + * @return This builder for chaining. + */ + public Builder setBranch(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + branch_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The branch resource name, such as
    +     * `projects/*/locations/global/catalogs/default_catalog/branches/0`.
    +     *
    +     * Use "default_branch" as the branch ID or leave this field empty, to search
    +     * products under the default branch.
    +     * 
    + * + * + * string branch = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearBranch() { + branch_ = getDefaultInstance().getBranch(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The branch resource name, such as
    +     * `projects/*/locations/global/catalogs/default_catalog/branches/0`.
    +     *
    +     * Use "default_branch" as the branch ID or leave this field empty, to search
    +     * products under the default branch.
    +     * 
    + * + * + * string branch = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for branch to set. + * @return This builder for chaining. + */ + public Builder setBranchBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + branch_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object query_ = ""; + + /** + * + * + *
    +     * Optional. Raw search query to be searched for.
    +     *
    +     * If this field is empty, the request is considered a category browsing
    +     * request.
    +     * 
    + * + * string query = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The query. + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. Raw search query to be searched for.
    +     *
    +     * If this field is empty, the request is considered a category browsing
    +     * request.
    +     * 
    + * + * string query = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for query. + */ + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. Raw search query to be searched for.
    +     *
    +     * If this field is empty, the request is considered a category browsing
    +     * request.
    +     * 
    + * + * string query = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The query to set. + * @return This builder for chaining. + */ + public Builder setQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + query_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Raw search query to be searched for.
    +     *
    +     * If this field is empty, the request is considered a category browsing
    +     * request.
    +     * 
    + * + * string query = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearQuery() { + query_ = getDefaultInstance().getQuery(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Raw search query to be searched for.
    +     *
    +     * If this field is empty, the request is considered a category browsing
    +     * request.
    +     * 
    + * + * string query = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for query to set. + * @return This builder for chaining. + */ + public Builder setQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + query_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList pageCategories_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensurePageCategoriesIsMutable() { + if (!pageCategories_.isModifiable()) { + pageCategories_ = new com.google.protobuf.LazyStringArrayList(pageCategories_); + } + bitField0_ |= 0x00000008; + } + + /** + * + * + *
    +     * Optional. The categories associated with a category page. Must be set for
    +     * category navigation queries to achieve good search quality. The format
    +     * should be the same as
    +     * [UserEvent.page_categories][google.cloud.retail.v2beta.UserEvent.page_categories];
    +     *
    +     * To represent full path of category, use '>' sign to separate different
    +     * hierarchies. If '>' is part of the category name, replace it with
    +     * other character(s).
    +     *
    +     * Category pages include special pages such as sales or promotions. For
    +     * instance, a special sale page may have the category hierarchy:
    +     * "pageCategories" : ["Sales > 2017 Black Friday Deals"].
    +     * 
    + * + * repeated string page_categories = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the pageCategories. + */ + public com.google.protobuf.ProtocolStringList getPageCategoriesList() { + pageCategories_.makeImmutable(); + return pageCategories_; + } + + /** + * + * + *
    +     * Optional. The categories associated with a category page. Must be set for
    +     * category navigation queries to achieve good search quality. The format
    +     * should be the same as
    +     * [UserEvent.page_categories][google.cloud.retail.v2beta.UserEvent.page_categories];
    +     *
    +     * To represent full path of category, use '>' sign to separate different
    +     * hierarchies. If '>' is part of the category name, replace it with
    +     * other character(s).
    +     *
    +     * Category pages include special pages such as sales or promotions. For
    +     * instance, a special sale page may have the category hierarchy:
    +     * "pageCategories" : ["Sales > 2017 Black Friday Deals"].
    +     * 
    + * + * repeated string page_categories = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of pageCategories. + */ + public int getPageCategoriesCount() { + return pageCategories_.size(); + } + + /** + * + * + *
    +     * Optional. The categories associated with a category page. Must be set for
    +     * category navigation queries to achieve good search quality. The format
    +     * should be the same as
    +     * [UserEvent.page_categories][google.cloud.retail.v2beta.UserEvent.page_categories];
    +     *
    +     * To represent full path of category, use '>' sign to separate different
    +     * hierarchies. If '>' is part of the category name, replace it with
    +     * other character(s).
    +     *
    +     * Category pages include special pages such as sales or promotions. For
    +     * instance, a special sale page may have the category hierarchy:
    +     * "pageCategories" : ["Sales > 2017 Black Friday Deals"].
    +     * 
    + * + * repeated string page_categories = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The pageCategories at the given index. + */ + public java.lang.String getPageCategories(int index) { + return pageCategories_.get(index); + } + + /** + * + * + *
    +     * Optional. The categories associated with a category page. Must be set for
    +     * category navigation queries to achieve good search quality. The format
    +     * should be the same as
    +     * [UserEvent.page_categories][google.cloud.retail.v2beta.UserEvent.page_categories];
    +     *
    +     * To represent full path of category, use '>' sign to separate different
    +     * hierarchies. If '>' is part of the category name, replace it with
    +     * other character(s).
    +     *
    +     * Category pages include special pages such as sales or promotions. For
    +     * instance, a special sale page may have the category hierarchy:
    +     * "pageCategories" : ["Sales > 2017 Black Friday Deals"].
    +     * 
    + * + * repeated string page_categories = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the pageCategories at the given index. + */ + public com.google.protobuf.ByteString getPageCategoriesBytes(int index) { + return pageCategories_.getByteString(index); + } + + /** + * + * + *
    +     * Optional. The categories associated with a category page. Must be set for
    +     * category navigation queries to achieve good search quality. The format
    +     * should be the same as
    +     * [UserEvent.page_categories][google.cloud.retail.v2beta.UserEvent.page_categories];
    +     *
    +     * To represent full path of category, use '>' sign to separate different
    +     * hierarchies. If '>' is part of the category name, replace it with
    +     * other character(s).
    +     *
    +     * Category pages include special pages such as sales or promotions. For
    +     * instance, a special sale page may have the category hierarchy:
    +     * "pageCategories" : ["Sales > 2017 Black Friday Deals"].
    +     * 
    + * + * repeated string page_categories = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The pageCategories to set. + * @return This builder for chaining. + */ + public Builder setPageCategories(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePageCategoriesIsMutable(); + pageCategories_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The categories associated with a category page. Must be set for
    +     * category navigation queries to achieve good search quality. The format
    +     * should be the same as
    +     * [UserEvent.page_categories][google.cloud.retail.v2beta.UserEvent.page_categories];
    +     *
    +     * To represent full path of category, use '>' sign to separate different
    +     * hierarchies. If '>' is part of the category name, replace it with
    +     * other character(s).
    +     *
    +     * Category pages include special pages such as sales or promotions. For
    +     * instance, a special sale page may have the category hierarchy:
    +     * "pageCategories" : ["Sales > 2017 Black Friday Deals"].
    +     * 
    + * + * repeated string page_categories = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageCategories to add. + * @return This builder for chaining. + */ + public Builder addPageCategories(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePageCategoriesIsMutable(); + pageCategories_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The categories associated with a category page. Must be set for
    +     * category navigation queries to achieve good search quality. The format
    +     * should be the same as
    +     * [UserEvent.page_categories][google.cloud.retail.v2beta.UserEvent.page_categories];
    +     *
    +     * To represent full path of category, use '>' sign to separate different
    +     * hierarchies. If '>' is part of the category name, replace it with
    +     * other character(s).
    +     *
    +     * Category pages include special pages such as sales or promotions. For
    +     * instance, a special sale page may have the category hierarchy:
    +     * "pageCategories" : ["Sales > 2017 Black Friday Deals"].
    +     * 
    + * + * repeated string page_categories = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The pageCategories to add. + * @return This builder for chaining. + */ + public Builder addAllPageCategories(java.lang.Iterable values) { + ensurePageCategoriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pageCategories_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The categories associated with a category page. Must be set for
    +     * category navigation queries to achieve good search quality. The format
    +     * should be the same as
    +     * [UserEvent.page_categories][google.cloud.retail.v2beta.UserEvent.page_categories];
    +     *
    +     * To represent full path of category, use '>' sign to separate different
    +     * hierarchies. If '>' is part of the category name, replace it with
    +     * other character(s).
    +     *
    +     * Category pages include special pages such as sales or promotions. For
    +     * instance, a special sale page may have the category hierarchy:
    +     * "pageCategories" : ["Sales > 2017 Black Friday Deals"].
    +     * 
    + * + * repeated string page_categories = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageCategories() { + pageCategories_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The categories associated with a category page. Must be set for
    +     * category navigation queries to achieve good search quality. The format
    +     * should be the same as
    +     * [UserEvent.page_categories][google.cloud.retail.v2beta.UserEvent.page_categories];
    +     *
    +     * To represent full path of category, use '>' sign to separate different
    +     * hierarchies. If '>' is part of the category name, replace it with
    +     * other character(s).
    +     *
    +     * Category pages include special pages such as sales or promotions. For
    +     * instance, a special sale page may have the category hierarchy:
    +     * "pageCategories" : ["Sales > 2017 Black Friday Deals"].
    +     * 
    + * + * repeated string page_categories = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the pageCategories to add. + * @return This builder for chaining. + */ + public Builder addPageCategoriesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePageCategoriesIsMutable(); + pageCategories_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object conversationId_ = ""; + + /** + * + * + *
    +     * Optional. This field specifies the conversation id, which maintains the
    +     * state of the conversation between client side and server side. Use the
    +     * value from the previous
    +     * [ConversationalSearchResponse.conversation_id][google.cloud.retail.v2beta.ConversationalSearchResponse.conversation_id].
    +     * For the initial request, this should be empty.
    +     * 
    + * + * string conversation_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The conversationId. + */ + public java.lang.String getConversationId() { + java.lang.Object ref = conversationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + conversationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. This field specifies the conversation id, which maintains the
    +     * state of the conversation between client side and server side. Use the
    +     * value from the previous
    +     * [ConversationalSearchResponse.conversation_id][google.cloud.retail.v2beta.ConversationalSearchResponse.conversation_id].
    +     * For the initial request, this should be empty.
    +     * 
    + * + * string conversation_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for conversationId. + */ + public com.google.protobuf.ByteString getConversationIdBytes() { + java.lang.Object ref = conversationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + conversationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. This field specifies the conversation id, which maintains the
    +     * state of the conversation between client side and server side. Use the
    +     * value from the previous
    +     * [ConversationalSearchResponse.conversation_id][google.cloud.retail.v2beta.ConversationalSearchResponse.conversation_id].
    +     * For the initial request, this should be empty.
    +     * 
    + * + * string conversation_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The conversationId to set. + * @return This builder for chaining. + */ + public Builder setConversationId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + conversationId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. This field specifies the conversation id, which maintains the
    +     * state of the conversation between client side and server side. Use the
    +     * value from the previous
    +     * [ConversationalSearchResponse.conversation_id][google.cloud.retail.v2beta.ConversationalSearchResponse.conversation_id].
    +     * For the initial request, this should be empty.
    +     * 
    + * + * string conversation_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearConversationId() { + conversationId_ = getDefaultInstance().getConversationId(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. This field specifies the conversation id, which maintains the
    +     * state of the conversation between client side and server side. Use the
    +     * value from the previous
    +     * [ConversationalSearchResponse.conversation_id][google.cloud.retail.v2beta.ConversationalSearchResponse.conversation_id].
    +     * For the initial request, this should be empty.
    +     * 
    + * + * string conversation_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for conversationId to set. + * @return This builder for chaining. + */ + public Builder setConversationIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + conversationId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams searchParams_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams, + com.google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams.Builder, + com.google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParamsOrBuilder> + searchParamsBuilder_; + + /** + * + * + *
    +     * Optional. Search parameters.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams search_params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the searchParams field is set. + */ + public boolean hasSearchParams() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
    +     * Optional. Search parameters.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams search_params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The searchParams. + */ + public com.google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams + getSearchParams() { + if (searchParamsBuilder_ == null) { + return searchParams_ == null + ? com.google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams + .getDefaultInstance() + : searchParams_; + } else { + return searchParamsBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Optional. Search parameters.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams search_params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSearchParams( + com.google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams value) { + if (searchParamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + searchParams_ = value; + } else { + searchParamsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Search parameters.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams search_params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSearchParams( + com.google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams.Builder + builderForValue) { + if (searchParamsBuilder_ == null) { + searchParams_ = builderForValue.build(); + } else { + searchParamsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Search parameters.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams search_params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSearchParams( + com.google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams value) { + if (searchParamsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && searchParams_ != null + && searchParams_ + != com.google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams + .getDefaultInstance()) { + getSearchParamsBuilder().mergeFrom(value); + } else { + searchParams_ = value; + } + } else { + searchParamsBuilder_.mergeFrom(value); + } + if (searchParams_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Optional. Search parameters.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams search_params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSearchParams() { + bitField0_ = (bitField0_ & ~0x00000020); + searchParams_ = null; + if (searchParamsBuilder_ != null) { + searchParamsBuilder_.dispose(); + searchParamsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Search parameters.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams search_params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams.Builder + getSearchParamsBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getSearchParamsFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. Search parameters.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams search_params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParamsOrBuilder + getSearchParamsOrBuilder() { + if (searchParamsBuilder_ != null) { + return searchParamsBuilder_.getMessageOrBuilder(); + } else { + return searchParams_ == null + ? com.google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams + .getDefaultInstance() + : searchParams_; + } + } + + /** + * + * + *
    +     * Optional. Search parameters.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams search_params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams, + com.google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams.Builder, + com.google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParamsOrBuilder> + getSearchParamsFieldBuilder() { + if (searchParamsBuilder_ == null) { + searchParamsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams, + com.google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams.Builder, + com.google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParamsOrBuilder>( + getSearchParams(), getParentForChildren(), isClean()); + searchParams_ = null; + } + return searchParamsBuilder_; + } + + private java.lang.Object visitorId_ = ""; + + /** + * + * + *
    +     * Required. A unique identifier for tracking visitors. For example, this
    +     * could be implemented with an HTTP cookie, which should be able to uniquely
    +     * identify a visitor on a single device. This unique identifier should not
    +     * change if the visitor logs in or out of the website.
    +     *
    +     * This should be the same identifier as
    +     * [UserEvent.visitor_id][google.cloud.retail.v2beta.UserEvent.visitor_id].
    +     *
    +     * The field must be a UTF-8 encoded string with a length limit of 128
    +     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
    +     * 
    + * + * string visitor_id = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The visitorId. + */ + public java.lang.String getVisitorId() { + java.lang.Object ref = visitorId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + visitorId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. A unique identifier for tracking visitors. For example, this
    +     * could be implemented with an HTTP cookie, which should be able to uniquely
    +     * identify a visitor on a single device. This unique identifier should not
    +     * change if the visitor logs in or out of the website.
    +     *
    +     * This should be the same identifier as
    +     * [UserEvent.visitor_id][google.cloud.retail.v2beta.UserEvent.visitor_id].
    +     *
    +     * The field must be a UTF-8 encoded string with a length limit of 128
    +     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
    +     * 
    + * + * string visitor_id = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for visitorId. + */ + public com.google.protobuf.ByteString getVisitorIdBytes() { + java.lang.Object ref = visitorId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + visitorId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. A unique identifier for tracking visitors. For example, this
    +     * could be implemented with an HTTP cookie, which should be able to uniquely
    +     * identify a visitor on a single device. This unique identifier should not
    +     * change if the visitor logs in or out of the website.
    +     *
    +     * This should be the same identifier as
    +     * [UserEvent.visitor_id][google.cloud.retail.v2beta.UserEvent.visitor_id].
    +     *
    +     * The field must be a UTF-8 encoded string with a length limit of 128
    +     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
    +     * 
    + * + * string visitor_id = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The visitorId to set. + * @return This builder for chaining. + */ + public Builder setVisitorId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + visitorId_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. A unique identifier for tracking visitors. For example, this
    +     * could be implemented with an HTTP cookie, which should be able to uniquely
    +     * identify a visitor on a single device. This unique identifier should not
    +     * change if the visitor logs in or out of the website.
    +     *
    +     * This should be the same identifier as
    +     * [UserEvent.visitor_id][google.cloud.retail.v2beta.UserEvent.visitor_id].
    +     *
    +     * The field must be a UTF-8 encoded string with a length limit of 128
    +     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
    +     * 
    + * + * string visitor_id = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearVisitorId() { + visitorId_ = getDefaultInstance().getVisitorId(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. A unique identifier for tracking visitors. For example, this
    +     * could be implemented with an HTTP cookie, which should be able to uniquely
    +     * identify a visitor on a single device. This unique identifier should not
    +     * change if the visitor logs in or out of the website.
    +     *
    +     * This should be the same identifier as
    +     * [UserEvent.visitor_id][google.cloud.retail.v2beta.UserEvent.visitor_id].
    +     *
    +     * The field must be a UTF-8 encoded string with a length limit of 128
    +     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
    +     * 
    + * + * string visitor_id = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for visitorId to set. + * @return This builder for chaining. + */ + public Builder setVisitorIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + visitorId_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private com.google.cloud.retail.v2beta.UserInfo userInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.UserInfo, + com.google.cloud.retail.v2beta.UserInfo.Builder, + com.google.cloud.retail.v2beta.UserInfoOrBuilder> + userInfoBuilder_; + + /** + * + * + *
    +     * Optional. User information.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.UserInfo user_info = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the userInfo field is set. + */ + public boolean hasUserInfo() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
    +     * Optional. User information.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.UserInfo user_info = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The userInfo. + */ + public com.google.cloud.retail.v2beta.UserInfo getUserInfo() { + if (userInfoBuilder_ == null) { + return userInfo_ == null + ? com.google.cloud.retail.v2beta.UserInfo.getDefaultInstance() + : userInfo_; + } else { + return userInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Optional. User information.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.UserInfo user_info = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUserInfo(com.google.cloud.retail.v2beta.UserInfo value) { + if (userInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + userInfo_ = value; + } else { + userInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. User information.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.UserInfo user_info = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUserInfo(com.google.cloud.retail.v2beta.UserInfo.Builder builderForValue) { + if (userInfoBuilder_ == null) { + userInfo_ = builderForValue.build(); + } else { + userInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. User information.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.UserInfo user_info = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUserInfo(com.google.cloud.retail.v2beta.UserInfo value) { + if (userInfoBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && userInfo_ != null + && userInfo_ != com.google.cloud.retail.v2beta.UserInfo.getDefaultInstance()) { + getUserInfoBuilder().mergeFrom(value); + } else { + userInfo_ = value; + } + } else { + userInfoBuilder_.mergeFrom(value); + } + if (userInfo_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Optional. User information.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.UserInfo user_info = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUserInfo() { + bitField0_ = (bitField0_ & ~0x00000080); + userInfo_ = null; + if (userInfoBuilder_ != null) { + userInfoBuilder_.dispose(); + userInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. User information.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.UserInfo user_info = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.retail.v2beta.UserInfo.Builder getUserInfoBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getUserInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. User information.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.UserInfo user_info = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.retail.v2beta.UserInfoOrBuilder getUserInfoOrBuilder() { + if (userInfoBuilder_ != null) { + return userInfoBuilder_.getMessageOrBuilder(); + } else { + return userInfo_ == null + ? com.google.cloud.retail.v2beta.UserInfo.getDefaultInstance() + : userInfo_; + } + } + + /** + * + * + *
    +     * Optional. User information.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.UserInfo user_info = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.UserInfo, + com.google.cloud.retail.v2beta.UserInfo.Builder, + com.google.cloud.retail.v2beta.UserInfoOrBuilder> + getUserInfoFieldBuilder() { + if (userInfoBuilder_ == null) { + userInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.UserInfo, + com.google.cloud.retail.v2beta.UserInfo.Builder, + com.google.cloud.retail.v2beta.UserInfoOrBuilder>( + getUserInfo(), getParentForChildren(), isClean()); + userInfo_ = null; + } + return userInfoBuilder_; + } + + private com.google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec + conversationalFilteringSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec, + com.google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec + .Builder, + com.google.cloud.retail.v2beta.ConversationalSearchRequest + .ConversationalFilteringSpecOrBuilder> + conversationalFilteringSpecBuilder_; + + /** + * + * + *
    +     * Optional. This field specifies all conversational filtering related
    +     * parameters.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec conversational_filtering_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the conversationalFilteringSpec field is set. + */ + public boolean hasConversationalFilteringSpec() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
    +     * Optional. This field specifies all conversational filtering related
    +     * parameters.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec conversational_filtering_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The conversationalFilteringSpec. + */ + public com.google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec + getConversationalFilteringSpec() { + if (conversationalFilteringSpecBuilder_ == null) { + return conversationalFilteringSpec_ == null + ? com.google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec + .getDefaultInstance() + : conversationalFilteringSpec_; + } else { + return conversationalFilteringSpecBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Optional. This field specifies all conversational filtering related
    +     * parameters.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec conversational_filtering_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setConversationalFilteringSpec( + com.google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec + value) { + if (conversationalFilteringSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + conversationalFilteringSpec_ = value; + } else { + conversationalFilteringSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. This field specifies all conversational filtering related
    +     * parameters.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec conversational_filtering_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setConversationalFilteringSpec( + com.google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec + .Builder + builderForValue) { + if (conversationalFilteringSpecBuilder_ == null) { + conversationalFilteringSpec_ = builderForValue.build(); + } else { + conversationalFilteringSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. This field specifies all conversational filtering related
    +     * parameters.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec conversational_filtering_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeConversationalFilteringSpec( + com.google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec + value) { + if (conversationalFilteringSpecBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && conversationalFilteringSpec_ != null + && conversationalFilteringSpec_ + != com.google.cloud.retail.v2beta.ConversationalSearchRequest + .ConversationalFilteringSpec.getDefaultInstance()) { + getConversationalFilteringSpecBuilder().mergeFrom(value); + } else { + conversationalFilteringSpec_ = value; + } + } else { + conversationalFilteringSpecBuilder_.mergeFrom(value); + } + if (conversationalFilteringSpec_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Optional. This field specifies all conversational filtering related
    +     * parameters.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec conversational_filtering_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearConversationalFilteringSpec() { + bitField0_ = (bitField0_ & ~0x00000100); + conversationalFilteringSpec_ = null; + if (conversationalFilteringSpecBuilder_ != null) { + conversationalFilteringSpecBuilder_.dispose(); + conversationalFilteringSpecBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. This field specifies all conversational filtering related
    +     * parameters.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec conversational_filtering_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec + .Builder + getConversationalFilteringSpecBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return getConversationalFilteringSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. This field specifies all conversational filtering related
    +     * parameters.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec conversational_filtering_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.retail.v2beta.ConversationalSearchRequest + .ConversationalFilteringSpecOrBuilder + getConversationalFilteringSpecOrBuilder() { + if (conversationalFilteringSpecBuilder_ != null) { + return conversationalFilteringSpecBuilder_.getMessageOrBuilder(); + } else { + return conversationalFilteringSpec_ == null + ? com.google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec + .getDefaultInstance() + : conversationalFilteringSpec_; + } + } + + /** + * + * + *
    +     * Optional. This field specifies all conversational filtering related
    +     * parameters.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec conversational_filtering_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec, + com.google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec + .Builder, + com.google.cloud.retail.v2beta.ConversationalSearchRequest + .ConversationalFilteringSpecOrBuilder> + getConversationalFilteringSpecFieldBuilder() { + if (conversationalFilteringSpecBuilder_ == null) { + conversationalFilteringSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.ConversationalSearchRequest + .ConversationalFilteringSpec, + com.google.cloud.retail.v2beta.ConversationalSearchRequest + .ConversationalFilteringSpec.Builder, + com.google.cloud.retail.v2beta.ConversationalSearchRequest + .ConversationalFilteringSpecOrBuilder>( + getConversationalFilteringSpec(), getParentForChildren(), isClean()); + conversationalFilteringSpec_ = null; + } + return conversationalFilteringSpecBuilder_; + } + + private com.google.protobuf.MapField userLabels_; + + private com.google.protobuf.MapField + internalGetUserLabels() { + if (userLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + UserLabelsDefaultEntryHolder.defaultEntry); + } + return userLabels_; + } + + private com.google.protobuf.MapField + internalGetMutableUserLabels() { + if (userLabels_ == null) { + userLabels_ = + com.google.protobuf.MapField.newMapField(UserLabelsDefaultEntryHolder.defaultEntry); + } + if (!userLabels_.isMutable()) { + userLabels_ = userLabels_.copy(); + } + bitField0_ |= 0x00000200; + onChanged(); + return userLabels_; + } + + public int getUserLabelsCount() { + return internalGetUserLabels().getMap().size(); + } + + /** + * + * + *
    +     * Optional. The user labels applied to a resource must meet the following
    +     * requirements:
    +     *
    +     * * Each resource can have multiple labels, up to a maximum of 64.
    +     * * Each label must be a key-value pair.
    +     * * Keys have a minimum length of 1 character and a maximum length of 63
    +     *   characters and cannot be empty. Values can be empty and have a maximum
    +     *   length of 63 characters.
    +     * * Keys and values can contain only lowercase letters, numeric characters,
    +     *   underscores, and dashes. All characters must use UTF-8 encoding, and
    +     *   international characters are allowed.
    +     * * The key portion of a label must be unique. However, you can use the same
    +     *   key with multiple resources.
    +     * * Keys must start with a lowercase letter or international character.
    +     *
    +     * See [Google Cloud
    +     * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
    +     * for more details.
    +     * 
    + * + * map<string, string> user_labels = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsUserLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetUserLabels().getMap().containsKey(key); + } + + /** Use {@link #getUserLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getUserLabels() { + return getUserLabelsMap(); + } + + /** + * + * + *
    +     * Optional. The user labels applied to a resource must meet the following
    +     * requirements:
    +     *
    +     * * Each resource can have multiple labels, up to a maximum of 64.
    +     * * Each label must be a key-value pair.
    +     * * Keys have a minimum length of 1 character and a maximum length of 63
    +     *   characters and cannot be empty. Values can be empty and have a maximum
    +     *   length of 63 characters.
    +     * * Keys and values can contain only lowercase letters, numeric characters,
    +     *   underscores, and dashes. All characters must use UTF-8 encoding, and
    +     *   international characters are allowed.
    +     * * The key portion of a label must be unique. However, you can use the same
    +     *   key with multiple resources.
    +     * * Keys must start with a lowercase letter or international character.
    +     *
    +     * See [Google Cloud
    +     * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
    +     * for more details.
    +     * 
    + * + * map<string, string> user_labels = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getUserLabelsMap() { + return internalGetUserLabels().getMap(); + } + + /** + * + * + *
    +     * Optional. The user labels applied to a resource must meet the following
    +     * requirements:
    +     *
    +     * * Each resource can have multiple labels, up to a maximum of 64.
    +     * * Each label must be a key-value pair.
    +     * * Keys have a minimum length of 1 character and a maximum length of 63
    +     *   characters and cannot be empty. Values can be empty and have a maximum
    +     *   length of 63 characters.
    +     * * Keys and values can contain only lowercase letters, numeric characters,
    +     *   underscores, and dashes. All characters must use UTF-8 encoding, and
    +     *   international characters are allowed.
    +     * * The key portion of a label must be unique. However, you can use the same
    +     *   key with multiple resources.
    +     * * Keys must start with a lowercase letter or international character.
    +     *
    +     * See [Google Cloud
    +     * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
    +     * for more details.
    +     * 
    + * + * map<string, string> user_labels = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getUserLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetUserLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
    +     * Optional. The user labels applied to a resource must meet the following
    +     * requirements:
    +     *
    +     * * Each resource can have multiple labels, up to a maximum of 64.
    +     * * Each label must be a key-value pair.
    +     * * Keys have a minimum length of 1 character and a maximum length of 63
    +     *   characters and cannot be empty. Values can be empty and have a maximum
    +     *   length of 63 characters.
    +     * * Keys and values can contain only lowercase letters, numeric characters,
    +     *   underscores, and dashes. All characters must use UTF-8 encoding, and
    +     *   international characters are allowed.
    +     * * The key portion of a label must be unique. However, you can use the same
    +     *   key with multiple resources.
    +     * * Keys must start with a lowercase letter or international character.
    +     *
    +     * See [Google Cloud
    +     * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
    +     * for more details.
    +     * 
    + * + * map<string, string> user_labels = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getUserLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetUserLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearUserLabels() { + bitField0_ = (bitField0_ & ~0x00000200); + internalGetMutableUserLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
    +     * Optional. The user labels applied to a resource must meet the following
    +     * requirements:
    +     *
    +     * * Each resource can have multiple labels, up to a maximum of 64.
    +     * * Each label must be a key-value pair.
    +     * * Keys have a minimum length of 1 character and a maximum length of 63
    +     *   characters and cannot be empty. Values can be empty and have a maximum
    +     *   length of 63 characters.
    +     * * Keys and values can contain only lowercase letters, numeric characters,
    +     *   underscores, and dashes. All characters must use UTF-8 encoding, and
    +     *   international characters are allowed.
    +     * * The key portion of a label must be unique. However, you can use the same
    +     *   key with multiple resources.
    +     * * Keys must start with a lowercase letter or international character.
    +     *
    +     * See [Google Cloud
    +     * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
    +     * for more details.
    +     * 
    + * + * map<string, string> user_labels = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeUserLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableUserLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableUserLabels() { + bitField0_ |= 0x00000200; + return internalGetMutableUserLabels().getMutableMap(); + } + + /** + * + * + *
    +     * Optional. The user labels applied to a resource must meet the following
    +     * requirements:
    +     *
    +     * * Each resource can have multiple labels, up to a maximum of 64.
    +     * * Each label must be a key-value pair.
    +     * * Keys have a minimum length of 1 character and a maximum length of 63
    +     *   characters and cannot be empty. Values can be empty and have a maximum
    +     *   length of 63 characters.
    +     * * Keys and values can contain only lowercase letters, numeric characters,
    +     *   underscores, and dashes. All characters must use UTF-8 encoding, and
    +     *   international characters are allowed.
    +     * * The key portion of a label must be unique. However, you can use the same
    +     *   key with multiple resources.
    +     * * Keys must start with a lowercase letter or international character.
    +     *
    +     * See [Google Cloud
    +     * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
    +     * for more details.
    +     * 
    + * + * map<string, string> user_labels = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putUserLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableUserLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000200; + return this; + } + + /** + * + * + *
    +     * Optional. The user labels applied to a resource must meet the following
    +     * requirements:
    +     *
    +     * * Each resource can have multiple labels, up to a maximum of 64.
    +     * * Each label must be a key-value pair.
    +     * * Keys have a minimum length of 1 character and a maximum length of 63
    +     *   characters and cannot be empty. Values can be empty and have a maximum
    +     *   length of 63 characters.
    +     * * Keys and values can contain only lowercase letters, numeric characters,
    +     *   underscores, and dashes. All characters must use UTF-8 encoding, and
    +     *   international characters are allowed.
    +     * * The key portion of a label must be unique. However, you can use the same
    +     *   key with multiple resources.
    +     * * Keys must start with a lowercase letter or international character.
    +     *
    +     * See [Google Cloud
    +     * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
    +     * for more details.
    +     * 
    + * + * map<string, string> user_labels = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllUserLabels(java.util.Map values) { + internalGetMutableUserLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000200; + return this; + } + + private java.util.List safetySettings_ = + java.util.Collections.emptyList(); + + private void ensureSafetySettingsIsMutable() { + if (!((bitField0_ & 0x00000400) != 0)) { + safetySettings_ = + new java.util.ArrayList(safetySettings_); + bitField0_ |= 0x00000400; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2beta.SafetySetting, + com.google.cloud.retail.v2beta.SafetySetting.Builder, + com.google.cloud.retail.v2beta.SafetySettingOrBuilder> + safetySettingsBuilder_; + + /** + * + * + *
    +     * Optional. The safety settings to be applied to the generated content.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2beta.SafetySetting safety_settings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getSafetySettingsList() { + if (safetySettingsBuilder_ == null) { + return java.util.Collections.unmodifiableList(safetySettings_); + } else { + return safetySettingsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * Optional. The safety settings to be applied to the generated content.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2beta.SafetySetting safety_settings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getSafetySettingsCount() { + if (safetySettingsBuilder_ == null) { + return safetySettings_.size(); + } else { + return safetySettingsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * Optional. The safety settings to be applied to the generated content.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2beta.SafetySetting safety_settings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.retail.v2beta.SafetySetting getSafetySettings(int index) { + if (safetySettingsBuilder_ == null) { + return safetySettings_.get(index); + } else { + return safetySettingsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * Optional. The safety settings to be applied to the generated content.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2beta.SafetySetting safety_settings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSafetySettings( + int index, com.google.cloud.retail.v2beta.SafetySetting value) { + if (safetySettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSafetySettingsIsMutable(); + safetySettings_.set(index, value); + onChanged(); + } else { + safetySettingsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Optional. The safety settings to be applied to the generated content.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2beta.SafetySetting safety_settings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSafetySettings( + int index, com.google.cloud.retail.v2beta.SafetySetting.Builder builderForValue) { + if (safetySettingsBuilder_ == null) { + ensureSafetySettingsIsMutable(); + safetySettings_.set(index, builderForValue.build()); + onChanged(); + } else { + safetySettingsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Optional. The safety settings to be applied to the generated content.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2beta.SafetySetting safety_settings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSafetySettings(com.google.cloud.retail.v2beta.SafetySetting value) { + if (safetySettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSafetySettingsIsMutable(); + safetySettings_.add(value); + onChanged(); + } else { + safetySettingsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * Optional. The safety settings to be applied to the generated content.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2beta.SafetySetting safety_settings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSafetySettings( + int index, com.google.cloud.retail.v2beta.SafetySetting value) { + if (safetySettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSafetySettingsIsMutable(); + safetySettings_.add(index, value); + onChanged(); + } else { + safetySettingsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Optional. The safety settings to be applied to the generated content.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2beta.SafetySetting safety_settings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSafetySettings( + com.google.cloud.retail.v2beta.SafetySetting.Builder builderForValue) { + if (safetySettingsBuilder_ == null) { + ensureSafetySettingsIsMutable(); + safetySettings_.add(builderForValue.build()); + onChanged(); + } else { + safetySettingsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Optional. The safety settings to be applied to the generated content.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2beta.SafetySetting safety_settings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSafetySettings( + int index, com.google.cloud.retail.v2beta.SafetySetting.Builder builderForValue) { + if (safetySettingsBuilder_ == null) { + ensureSafetySettingsIsMutable(); + safetySettings_.add(index, builderForValue.build()); + onChanged(); + } else { + safetySettingsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Optional. The safety settings to be applied to the generated content.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2beta.SafetySetting safety_settings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllSafetySettings( + java.lang.Iterable values) { + if (safetySettingsBuilder_ == null) { + ensureSafetySettingsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, safetySettings_); + onChanged(); + } else { + safetySettingsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * Optional. The safety settings to be applied to the generated content.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2beta.SafetySetting safety_settings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSafetySettings() { + if (safetySettingsBuilder_ == null) { + safetySettings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + } else { + safetySettingsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Optional. The safety settings to be applied to the generated content.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2beta.SafetySetting safety_settings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeSafetySettings(int index) { + if (safetySettingsBuilder_ == null) { + ensureSafetySettingsIsMutable(); + safetySettings_.remove(index); + onChanged(); + } else { + safetySettingsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * Optional. The safety settings to be applied to the generated content.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2beta.SafetySetting safety_settings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.retail.v2beta.SafetySetting.Builder getSafetySettingsBuilder( + int index) { + return getSafetySettingsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * Optional. The safety settings to be applied to the generated content.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2beta.SafetySetting safety_settings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.retail.v2beta.SafetySettingOrBuilder getSafetySettingsOrBuilder( + int index) { + if (safetySettingsBuilder_ == null) { + return safetySettings_.get(index); + } else { + return safetySettingsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * Optional. The safety settings to be applied to the generated content.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2beta.SafetySetting safety_settings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getSafetySettingsOrBuilderList() { + if (safetySettingsBuilder_ != null) { + return safetySettingsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(safetySettings_); + } + } + + /** + * + * + *
    +     * Optional. The safety settings to be applied to the generated content.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2beta.SafetySetting safety_settings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.retail.v2beta.SafetySetting.Builder addSafetySettingsBuilder() { + return getSafetySettingsFieldBuilder() + .addBuilder(com.google.cloud.retail.v2beta.SafetySetting.getDefaultInstance()); + } + + /** + * + * + *
    +     * Optional. The safety settings to be applied to the generated content.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2beta.SafetySetting safety_settings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.retail.v2beta.SafetySetting.Builder addSafetySettingsBuilder( + int index) { + return getSafetySettingsFieldBuilder() + .addBuilder(index, com.google.cloud.retail.v2beta.SafetySetting.getDefaultInstance()); + } + + /** + * + * + *
    +     * Optional. The safety settings to be applied to the generated content.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2beta.SafetySetting safety_settings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getSafetySettingsBuilderList() { + return getSafetySettingsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2beta.SafetySetting, + com.google.cloud.retail.v2beta.SafetySetting.Builder, + com.google.cloud.retail.v2beta.SafetySettingOrBuilder> + getSafetySettingsFieldBuilder() { + if (safetySettingsBuilder_ == null) { + safetySettingsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2beta.SafetySetting, + com.google.cloud.retail.v2beta.SafetySetting.Builder, + com.google.cloud.retail.v2beta.SafetySettingOrBuilder>( + safetySettings_, + ((bitField0_ & 0x00000400) != 0), + getParentForChildren(), + isClean()); + safetySettings_ = null; + } + return safetySettingsBuilder_; + } + + @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.retail.v2beta.ConversationalSearchRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2beta.ConversationalSearchRequest) + private static final com.google.cloud.retail.v2beta.ConversationalSearchRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.retail.v2beta.ConversationalSearchRequest(); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConversationalSearchRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.retail.v2beta.ConversationalSearchRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ConversationalSearchRequestOrBuilder.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ConversationalSearchRequestOrBuilder.java new file mode 100644 index 000000000000..19bc84d57aad --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ConversationalSearchRequestOrBuilder.java @@ -0,0 +1,662 @@ +/* + * 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/retail/v2beta/conversational_search_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.retail.v2beta; + +public interface ConversationalSearchRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2beta.ConversationalSearchRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The resource name of the search engine placement, such as
    +   * `projects/*/locations/global/catalogs/default_catalog/placements/default_search`
    +   * or
    +   * `projects/*/locations/global/catalogs/default_catalog/servingConfigs/default_serving_config`
    +   * This field is used to identify the serving config name and the set
    +   * of models that will be used to make the search.
    +   * 
    + * + * string placement = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The placement. + */ + java.lang.String getPlacement(); + + /** + * + * + *
    +   * Required. The resource name of the search engine placement, such as
    +   * `projects/*/locations/global/catalogs/default_catalog/placements/default_search`
    +   * or
    +   * `projects/*/locations/global/catalogs/default_catalog/servingConfigs/default_serving_config`
    +   * This field is used to identify the serving config name and the set
    +   * of models that will be used to make the search.
    +   * 
    + * + * string placement = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for placement. + */ + com.google.protobuf.ByteString getPlacementBytes(); + + /** + * + * + *
    +   * Required. The branch resource name, such as
    +   * `projects/*/locations/global/catalogs/default_catalog/branches/0`.
    +   *
    +   * Use "default_branch" as the branch ID or leave this field empty, to search
    +   * products under the default branch.
    +   * 
    + * + * + * string branch = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The branch. + */ + java.lang.String getBranch(); + + /** + * + * + *
    +   * Required. The branch resource name, such as
    +   * `projects/*/locations/global/catalogs/default_catalog/branches/0`.
    +   *
    +   * Use "default_branch" as the branch ID or leave this field empty, to search
    +   * products under the default branch.
    +   * 
    + * + * + * string branch = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for branch. + */ + com.google.protobuf.ByteString getBranchBytes(); + + /** + * + * + *
    +   * Optional. Raw search query to be searched for.
    +   *
    +   * If this field is empty, the request is considered a category browsing
    +   * request.
    +   * 
    + * + * string query = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The query. + */ + java.lang.String getQuery(); + + /** + * + * + *
    +   * Optional. Raw search query to be searched for.
    +   *
    +   * If this field is empty, the request is considered a category browsing
    +   * request.
    +   * 
    + * + * string query = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for query. + */ + com.google.protobuf.ByteString getQueryBytes(); + + /** + * + * + *
    +   * Optional. The categories associated with a category page. Must be set for
    +   * category navigation queries to achieve good search quality. The format
    +   * should be the same as
    +   * [UserEvent.page_categories][google.cloud.retail.v2beta.UserEvent.page_categories];
    +   *
    +   * To represent full path of category, use '>' sign to separate different
    +   * hierarchies. If '>' is part of the category name, replace it with
    +   * other character(s).
    +   *
    +   * Category pages include special pages such as sales or promotions. For
    +   * instance, a special sale page may have the category hierarchy:
    +   * "pageCategories" : ["Sales > 2017 Black Friday Deals"].
    +   * 
    + * + * repeated string page_categories = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the pageCategories. + */ + java.util.List getPageCategoriesList(); + + /** + * + * + *
    +   * Optional. The categories associated with a category page. Must be set for
    +   * category navigation queries to achieve good search quality. The format
    +   * should be the same as
    +   * [UserEvent.page_categories][google.cloud.retail.v2beta.UserEvent.page_categories];
    +   *
    +   * To represent full path of category, use '>' sign to separate different
    +   * hierarchies. If '>' is part of the category name, replace it with
    +   * other character(s).
    +   *
    +   * Category pages include special pages such as sales or promotions. For
    +   * instance, a special sale page may have the category hierarchy:
    +   * "pageCategories" : ["Sales > 2017 Black Friday Deals"].
    +   * 
    + * + * repeated string page_categories = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of pageCategories. + */ + int getPageCategoriesCount(); + + /** + * + * + *
    +   * Optional. The categories associated with a category page. Must be set for
    +   * category navigation queries to achieve good search quality. The format
    +   * should be the same as
    +   * [UserEvent.page_categories][google.cloud.retail.v2beta.UserEvent.page_categories];
    +   *
    +   * To represent full path of category, use '>' sign to separate different
    +   * hierarchies. If '>' is part of the category name, replace it with
    +   * other character(s).
    +   *
    +   * Category pages include special pages such as sales or promotions. For
    +   * instance, a special sale page may have the category hierarchy:
    +   * "pageCategories" : ["Sales > 2017 Black Friday Deals"].
    +   * 
    + * + * repeated string page_categories = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The pageCategories at the given index. + */ + java.lang.String getPageCategories(int index); + + /** + * + * + *
    +   * Optional. The categories associated with a category page. Must be set for
    +   * category navigation queries to achieve good search quality. The format
    +   * should be the same as
    +   * [UserEvent.page_categories][google.cloud.retail.v2beta.UserEvent.page_categories];
    +   *
    +   * To represent full path of category, use '>' sign to separate different
    +   * hierarchies. If '>' is part of the category name, replace it with
    +   * other character(s).
    +   *
    +   * Category pages include special pages such as sales or promotions. For
    +   * instance, a special sale page may have the category hierarchy:
    +   * "pageCategories" : ["Sales > 2017 Black Friday Deals"].
    +   * 
    + * + * repeated string page_categories = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the pageCategories at the given index. + */ + com.google.protobuf.ByteString getPageCategoriesBytes(int index); + + /** + * + * + *
    +   * Optional. This field specifies the conversation id, which maintains the
    +   * state of the conversation between client side and server side. Use the
    +   * value from the previous
    +   * [ConversationalSearchResponse.conversation_id][google.cloud.retail.v2beta.ConversationalSearchResponse.conversation_id].
    +   * For the initial request, this should be empty.
    +   * 
    + * + * string conversation_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The conversationId. + */ + java.lang.String getConversationId(); + + /** + * + * + *
    +   * Optional. This field specifies the conversation id, which maintains the
    +   * state of the conversation between client side and server side. Use the
    +   * value from the previous
    +   * [ConversationalSearchResponse.conversation_id][google.cloud.retail.v2beta.ConversationalSearchResponse.conversation_id].
    +   * For the initial request, this should be empty.
    +   * 
    + * + * string conversation_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for conversationId. + */ + com.google.protobuf.ByteString getConversationIdBytes(); + + /** + * + * + *
    +   * Optional. Search parameters.
    +   * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams search_params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the searchParams field is set. + */ + boolean hasSearchParams(); + + /** + * + * + *
    +   * Optional. Search parameters.
    +   * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams search_params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The searchParams. + */ + com.google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams getSearchParams(); + + /** + * + * + *
    +   * Optional. Search parameters.
    +   * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams search_params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParamsOrBuilder + getSearchParamsOrBuilder(); + + /** + * + * + *
    +   * Required. A unique identifier for tracking visitors. For example, this
    +   * could be implemented with an HTTP cookie, which should be able to uniquely
    +   * identify a visitor on a single device. This unique identifier should not
    +   * change if the visitor logs in or out of the website.
    +   *
    +   * This should be the same identifier as
    +   * [UserEvent.visitor_id][google.cloud.retail.v2beta.UserEvent.visitor_id].
    +   *
    +   * The field must be a UTF-8 encoded string with a length limit of 128
    +   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
    +   * 
    + * + * string visitor_id = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The visitorId. + */ + java.lang.String getVisitorId(); + + /** + * + * + *
    +   * Required. A unique identifier for tracking visitors. For example, this
    +   * could be implemented with an HTTP cookie, which should be able to uniquely
    +   * identify a visitor on a single device. This unique identifier should not
    +   * change if the visitor logs in or out of the website.
    +   *
    +   * This should be the same identifier as
    +   * [UserEvent.visitor_id][google.cloud.retail.v2beta.UserEvent.visitor_id].
    +   *
    +   * The field must be a UTF-8 encoded string with a length limit of 128
    +   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
    +   * 
    + * + * string visitor_id = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for visitorId. + */ + com.google.protobuf.ByteString getVisitorIdBytes(); + + /** + * + * + *
    +   * Optional. User information.
    +   * 
    + * + * + * .google.cloud.retail.v2beta.UserInfo user_info = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the userInfo field is set. + */ + boolean hasUserInfo(); + + /** + * + * + *
    +   * Optional. User information.
    +   * 
    + * + * + * .google.cloud.retail.v2beta.UserInfo user_info = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The userInfo. + */ + com.google.cloud.retail.v2beta.UserInfo getUserInfo(); + + /** + * + * + *
    +   * Optional. User information.
    +   * 
    + * + * + * .google.cloud.retail.v2beta.UserInfo user_info = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.retail.v2beta.UserInfoOrBuilder getUserInfoOrBuilder(); + + /** + * + * + *
    +   * Optional. This field specifies all conversational filtering related
    +   * parameters.
    +   * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec conversational_filtering_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the conversationalFilteringSpec field is set. + */ + boolean hasConversationalFilteringSpec(); + + /** + * + * + *
    +   * Optional. This field specifies all conversational filtering related
    +   * parameters.
    +   * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec conversational_filtering_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The conversationalFilteringSpec. + */ + com.google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec + getConversationalFilteringSpec(); + + /** + * + * + *
    +   * Optional. This field specifies all conversational filtering related
    +   * parameters.
    +   * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec conversational_filtering_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpecOrBuilder + getConversationalFilteringSpecOrBuilder(); + + /** + * + * + *
    +   * Optional. The user labels applied to a resource must meet the following
    +   * requirements:
    +   *
    +   * * Each resource can have multiple labels, up to a maximum of 64.
    +   * * Each label must be a key-value pair.
    +   * * Keys have a minimum length of 1 character and a maximum length of 63
    +   *   characters and cannot be empty. Values can be empty and have a maximum
    +   *   length of 63 characters.
    +   * * Keys and values can contain only lowercase letters, numeric characters,
    +   *   underscores, and dashes. All characters must use UTF-8 encoding, and
    +   *   international characters are allowed.
    +   * * The key portion of a label must be unique. However, you can use the same
    +   *   key with multiple resources.
    +   * * Keys must start with a lowercase letter or international character.
    +   *
    +   * See [Google Cloud
    +   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
    +   * for more details.
    +   * 
    + * + * map<string, string> user_labels = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getUserLabelsCount(); + + /** + * + * + *
    +   * Optional. The user labels applied to a resource must meet the following
    +   * requirements:
    +   *
    +   * * Each resource can have multiple labels, up to a maximum of 64.
    +   * * Each label must be a key-value pair.
    +   * * Keys have a minimum length of 1 character and a maximum length of 63
    +   *   characters and cannot be empty. Values can be empty and have a maximum
    +   *   length of 63 characters.
    +   * * Keys and values can contain only lowercase letters, numeric characters,
    +   *   underscores, and dashes. All characters must use UTF-8 encoding, and
    +   *   international characters are allowed.
    +   * * The key portion of a label must be unique. However, you can use the same
    +   *   key with multiple resources.
    +   * * Keys must start with a lowercase letter or international character.
    +   *
    +   * See [Google Cloud
    +   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
    +   * for more details.
    +   * 
    + * + * map<string, string> user_labels = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsUserLabels(java.lang.String key); + + /** Use {@link #getUserLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getUserLabels(); + + /** + * + * + *
    +   * Optional. The user labels applied to a resource must meet the following
    +   * requirements:
    +   *
    +   * * Each resource can have multiple labels, up to a maximum of 64.
    +   * * Each label must be a key-value pair.
    +   * * Keys have a minimum length of 1 character and a maximum length of 63
    +   *   characters and cannot be empty. Values can be empty and have a maximum
    +   *   length of 63 characters.
    +   * * Keys and values can contain only lowercase letters, numeric characters,
    +   *   underscores, and dashes. All characters must use UTF-8 encoding, and
    +   *   international characters are allowed.
    +   * * The key portion of a label must be unique. However, you can use the same
    +   *   key with multiple resources.
    +   * * Keys must start with a lowercase letter or international character.
    +   *
    +   * See [Google Cloud
    +   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
    +   * for more details.
    +   * 
    + * + * map<string, string> user_labels = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getUserLabelsMap(); + + /** + * + * + *
    +   * Optional. The user labels applied to a resource must meet the following
    +   * requirements:
    +   *
    +   * * Each resource can have multiple labels, up to a maximum of 64.
    +   * * Each label must be a key-value pair.
    +   * * Keys have a minimum length of 1 character and a maximum length of 63
    +   *   characters and cannot be empty. Values can be empty and have a maximum
    +   *   length of 63 characters.
    +   * * Keys and values can contain only lowercase letters, numeric characters,
    +   *   underscores, and dashes. All characters must use UTF-8 encoding, and
    +   *   international characters are allowed.
    +   * * The key portion of a label must be unique. However, you can use the same
    +   *   key with multiple resources.
    +   * * Keys must start with a lowercase letter or international character.
    +   *
    +   * See [Google Cloud
    +   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
    +   * for more details.
    +   * 
    + * + * map<string, string> user_labels = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getUserLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
    +   * Optional. The user labels applied to a resource must meet the following
    +   * requirements:
    +   *
    +   * * Each resource can have multiple labels, up to a maximum of 64.
    +   * * Each label must be a key-value pair.
    +   * * Keys have a minimum length of 1 character and a maximum length of 63
    +   *   characters and cannot be empty. Values can be empty and have a maximum
    +   *   length of 63 characters.
    +   * * Keys and values can contain only lowercase letters, numeric characters,
    +   *   underscores, and dashes. All characters must use UTF-8 encoding, and
    +   *   international characters are allowed.
    +   * * The key portion of a label must be unique. However, you can use the same
    +   *   key with multiple resources.
    +   * * Keys must start with a lowercase letter or international character.
    +   *
    +   * See [Google Cloud
    +   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
    +   * for more details.
    +   * 
    + * + * map<string, string> user_labels = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getUserLabelsOrThrow(java.lang.String key); + + /** + * + * + *
    +   * Optional. The safety settings to be applied to the generated content.
    +   * 
    + * + * + * repeated .google.cloud.retail.v2beta.SafetySetting safety_settings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getSafetySettingsList(); + + /** + * + * + *
    +   * Optional. The safety settings to be applied to the generated content.
    +   * 
    + * + * + * repeated .google.cloud.retail.v2beta.SafetySetting safety_settings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.retail.v2beta.SafetySetting getSafetySettings(int index); + + /** + * + * + *
    +   * Optional. The safety settings to be applied to the generated content.
    +   * 
    + * + * + * repeated .google.cloud.retail.v2beta.SafetySetting safety_settings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getSafetySettingsCount(); + + /** + * + * + *
    +   * Optional. The safety settings to be applied to the generated content.
    +   * 
    + * + * + * repeated .google.cloud.retail.v2beta.SafetySetting safety_settings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getSafetySettingsOrBuilderList(); + + /** + * + * + *
    +   * Optional. The safety settings to be applied to the generated content.
    +   * 
    + * + * + * repeated .google.cloud.retail.v2beta.SafetySetting safety_settings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.retail.v2beta.SafetySettingOrBuilder getSafetySettingsOrBuilder(int index); +} diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ConversationalSearchResponse.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ConversationalSearchResponse.java new file mode 100644 index 000000000000..aeba100bf1b2 --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ConversationalSearchResponse.java @@ -0,0 +1,8177 @@ +/* + * 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/retail/v2beta/conversational_search_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.retail.v2beta; + +/** + * + * + *
    + * Response message for
    + * [ConversationalSearchService.ConversationalSearch][google.cloud.retail.v2beta.ConversationalSearchService.ConversationalSearch]
    + * method.
    + * 
    + * + * Protobuf type {@code google.cloud.retail.v2beta.ConversationalSearchResponse} + */ +public final class ConversationalSearchResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2beta.ConversationalSearchResponse) + ConversationalSearchResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ConversationalSearchResponse.newBuilder() to construct. + private ConversationalSearchResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ConversationalSearchResponse() { + userQueryTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + conversationalTextResponse_ = ""; + conversationId_ = ""; + refinedSearch_ = java.util.Collections.emptyList(); + state_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ConversationalSearchResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2beta.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2beta.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2beta.ConversationalSearchResponse.class, + com.google.cloud.retail.v2beta.ConversationalSearchResponse.Builder.class); + } + + /** + * + * + *
    +   * The state of the response generation.
    +   * 
    + * + * Protobuf enum {@code google.cloud.retail.v2beta.ConversationalSearchResponse.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Unknown.
    +     * 
    + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
    +     * Response generation is being streamed.
    +     * 
    + * + * STREAMING = 1; + */ + STREAMING(1), + /** + * + * + *
    +     * Response generation has succeeded.
    +     * 
    + * + * SUCCEEDED = 2; + */ + SUCCEEDED(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * Unknown.
    +     * 
    + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +     * Response generation is being streamed.
    +     * 
    + * + * STREAMING = 1; + */ + public static final int STREAMING_VALUE = 1; + + /** + * + * + *
    +     * Response generation has succeeded.
    +     * 
    + * + * SUCCEEDED = 2; + */ + public static final int SUCCEEDED_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return STREAMING; + case 2: + return SUCCEEDED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.retail.v2beta.ConversationalSearchResponse.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.retail.v2beta.ConversationalSearchResponse.State) + } + + public interface FollowupQuestionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * The conversational followup question generated for Intent refinement.
    +     * 
    + * + * string followup_question = 1; + * + * @return The followupQuestion. + */ + java.lang.String getFollowupQuestion(); + + /** + * + * + *
    +     * The conversational followup question generated for Intent refinement.
    +     * 
    + * + * string followup_question = 1; + * + * @return The bytes for followupQuestion. + */ + com.google.protobuf.ByteString getFollowupQuestionBytes(); + + /** + * + * + *
    +     * The answer options provided to client for the follow-up question.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer suggested_answers = 2; + * + */ + java.util.List< + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer> + getSuggestedAnswersList(); + + /** + * + * + *
    +     * The answer options provided to client for the follow-up question.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer suggested_answers = 2; + * + */ + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer + getSuggestedAnswers(int index); + + /** + * + * + *
    +     * The answer options provided to client for the follow-up question.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer suggested_answers = 2; + * + */ + int getSuggestedAnswersCount(); + + /** + * + * + *
    +     * The answer options provided to client for the follow-up question.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer suggested_answers = 2; + * + */ + java.util.List< + ? extends + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswerOrBuilder> + getSuggestedAnswersOrBuilderList(); + + /** + * + * + *
    +     * The answer options provided to client for the follow-up question.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer suggested_answers = 2; + * + */ + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswerOrBuilder + getSuggestedAnswersOrBuilder(int index); + } + + /** + * + * + *
    +   * The conversational followup question generated for Intent refinement.
    +   * 
    + * + * Protobuf type {@code google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion} + */ + public static final class FollowupQuestion extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion) + FollowupQuestionOrBuilder { + private static final long serialVersionUID = 0L; + + // Use FollowupQuestion.newBuilder() to construct. + private FollowupQuestion(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FollowupQuestion() { + followupQuestion_ = ""; + suggestedAnswers_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FollowupQuestion(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2beta.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_FollowupQuestion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2beta.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_FollowupQuestion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion.class, + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion.Builder + .class); + } + + public interface SuggestedAnswerOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +       * Product attribute value, including an attribute key and an
    +       * attribute value. Other types can be added here in the future.
    +       * 
    + * + * .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_value = 1; + * + * @return Whether the productAttributeValue field is set. + */ + boolean hasProductAttributeValue(); + + /** + * + * + *
    +       * Product attribute value, including an attribute key and an
    +       * attribute value. Other types can be added here in the future.
    +       * 
    + * + * .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_value = 1; + * + * @return The productAttributeValue. + */ + com.google.cloud.retail.v2beta.ProductAttributeValue getProductAttributeValue(); + + /** + * + * + *
    +       * Product attribute value, including an attribute key and an
    +       * attribute value. Other types can be added here in the future.
    +       * 
    + * + * .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_value = 1; + */ + com.google.cloud.retail.v2beta.ProductAttributeValueOrBuilder + getProductAttributeValueOrBuilder(); + } + + /** + * + * + *
    +     * Suggested answers to the follow-up question.
    +     * If it's numerical attribute, only ProductAttributeInterval will be set.
    +     * If it's textual attribute, only productAttributeValue will be set.
    +     * 
    + * + * Protobuf type {@code + * google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer} + */ + public static final class SuggestedAnswer extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer) + SuggestedAnswerOrBuilder { + private static final long serialVersionUID = 0L; + + // Use SuggestedAnswer.newBuilder() to construct. + private SuggestedAnswer(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SuggestedAnswer() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SuggestedAnswer(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2beta.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_FollowupQuestion_SuggestedAnswer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2beta.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_FollowupQuestion_SuggestedAnswer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer.class, + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer.Builder.class); + } + + private int bitField0_; + public static final int PRODUCT_ATTRIBUTE_VALUE_FIELD_NUMBER = 1; + private com.google.cloud.retail.v2beta.ProductAttributeValue productAttributeValue_; + + /** + * + * + *
    +       * Product attribute value, including an attribute key and an
    +       * attribute value. Other types can be added here in the future.
    +       * 
    + * + * .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_value = 1; + * + * @return Whether the productAttributeValue field is set. + */ + @java.lang.Override + public boolean hasProductAttributeValue() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +       * Product attribute value, including an attribute key and an
    +       * attribute value. Other types can be added here in the future.
    +       * 
    + * + * .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_value = 1; + * + * @return The productAttributeValue. + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.ProductAttributeValue getProductAttributeValue() { + return productAttributeValue_ == null + ? com.google.cloud.retail.v2beta.ProductAttributeValue.getDefaultInstance() + : productAttributeValue_; + } + + /** + * + * + *
    +       * Product attribute value, including an attribute key and an
    +       * attribute value. Other types can be added here in the future.
    +       * 
    + * + * .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_value = 1; + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.ProductAttributeValueOrBuilder + getProductAttributeValueOrBuilder() { + return productAttributeValue_ == null + ? com.google.cloud.retail.v2beta.ProductAttributeValue.getDefaultInstance() + : productAttributeValue_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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, getProductAttributeValue()); + } + 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, getProductAttributeValue()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer)) { + return super.equals(obj); + } + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer + other = + (com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer) + obj; + + if (hasProductAttributeValue() != other.hasProductAttributeValue()) return false; + if (hasProductAttributeValue()) { + if (!getProductAttributeValue().equals(other.getProductAttributeValue())) 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 (hasProductAttributeValue()) { + hash = (37 * hash) + PRODUCT_ATTRIBUTE_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getProductAttributeValue().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer + 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.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer + parseFrom( + 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.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer + 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.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer + 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.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer + 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.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
    +       * Suggested answers to the follow-up question.
    +       * If it's numerical attribute, only ProductAttributeInterval will be set.
    +       * If it's textual attribute, only productAttributeValue will be set.
    +       * 
    + * + * Protobuf type {@code + * google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer) + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2beta.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_FollowupQuestion_SuggestedAnswer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2beta.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_FollowupQuestion_SuggestedAnswer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer.class, + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer.Builder.class); + } + + // Construct using + // com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getProductAttributeValueFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + productAttributeValue_ = null; + if (productAttributeValueBuilder_ != null) { + productAttributeValueBuilder_.dispose(); + productAttributeValueBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2beta.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_FollowupQuestion_SuggestedAnswer_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer + getDefaultInstanceForType() { + return com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer + build() { + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer + buildPartial() { + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer + result = + new com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.productAttributeValue_ = + productAttributeValueBuilder_ == null + ? productAttributeValue_ + : productAttributeValueBuilder_.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.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer) { + return mergeFrom( + (com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer + other) { + if (other + == com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer.getDefaultInstance()) return this; + if (other.hasProductAttributeValue()) { + mergeProductAttributeValue(other.getProductAttributeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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( + getProductAttributeValueFieldBuilder().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.retail.v2beta.ProductAttributeValue productAttributeValue_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.ProductAttributeValue, + com.google.cloud.retail.v2beta.ProductAttributeValue.Builder, + com.google.cloud.retail.v2beta.ProductAttributeValueOrBuilder> + productAttributeValueBuilder_; + + /** + * + * + *
    +         * Product attribute value, including an attribute key and an
    +         * attribute value. Other types can be added here in the future.
    +         * 
    + * + * .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_value = 1; + * + * + * @return Whether the productAttributeValue field is set. + */ + public boolean hasProductAttributeValue() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +         * Product attribute value, including an attribute key and an
    +         * attribute value. Other types can be added here in the future.
    +         * 
    + * + * .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_value = 1; + * + * + * @return The productAttributeValue. + */ + public com.google.cloud.retail.v2beta.ProductAttributeValue getProductAttributeValue() { + if (productAttributeValueBuilder_ == null) { + return productAttributeValue_ == null + ? com.google.cloud.retail.v2beta.ProductAttributeValue.getDefaultInstance() + : productAttributeValue_; + } else { + return productAttributeValueBuilder_.getMessage(); + } + } + + /** + * + * + *
    +         * Product attribute value, including an attribute key and an
    +         * attribute value. Other types can be added here in the future.
    +         * 
    + * + * .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_value = 1; + * + */ + public Builder setProductAttributeValue( + com.google.cloud.retail.v2beta.ProductAttributeValue value) { + if (productAttributeValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + productAttributeValue_ = value; + } else { + productAttributeValueBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +         * Product attribute value, including an attribute key and an
    +         * attribute value. Other types can be added here in the future.
    +         * 
    + * + * .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_value = 1; + * + */ + public Builder setProductAttributeValue( + com.google.cloud.retail.v2beta.ProductAttributeValue.Builder builderForValue) { + if (productAttributeValueBuilder_ == null) { + productAttributeValue_ = builderForValue.build(); + } else { + productAttributeValueBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +         * Product attribute value, including an attribute key and an
    +         * attribute value. Other types can be added here in the future.
    +         * 
    + * + * .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_value = 1; + * + */ + public Builder mergeProductAttributeValue( + com.google.cloud.retail.v2beta.ProductAttributeValue value) { + if (productAttributeValueBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && productAttributeValue_ != null + && productAttributeValue_ + != com.google.cloud.retail.v2beta.ProductAttributeValue.getDefaultInstance()) { + getProductAttributeValueBuilder().mergeFrom(value); + } else { + productAttributeValue_ = value; + } + } else { + productAttributeValueBuilder_.mergeFrom(value); + } + if (productAttributeValue_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
    +         * Product attribute value, including an attribute key and an
    +         * attribute value. Other types can be added here in the future.
    +         * 
    + * + * .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_value = 1; + * + */ + public Builder clearProductAttributeValue() { + bitField0_ = (bitField0_ & ~0x00000001); + productAttributeValue_ = null; + if (productAttributeValueBuilder_ != null) { + productAttributeValueBuilder_.dispose(); + productAttributeValueBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +         * Product attribute value, including an attribute key and an
    +         * attribute value. Other types can be added here in the future.
    +         * 
    + * + * .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_value = 1; + * + */ + public com.google.cloud.retail.v2beta.ProductAttributeValue.Builder + getProductAttributeValueBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getProductAttributeValueFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +         * Product attribute value, including an attribute key and an
    +         * attribute value. Other types can be added here in the future.
    +         * 
    + * + * .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_value = 1; + * + */ + public com.google.cloud.retail.v2beta.ProductAttributeValueOrBuilder + getProductAttributeValueOrBuilder() { + if (productAttributeValueBuilder_ != null) { + return productAttributeValueBuilder_.getMessageOrBuilder(); + } else { + return productAttributeValue_ == null + ? com.google.cloud.retail.v2beta.ProductAttributeValue.getDefaultInstance() + : productAttributeValue_; + } + } + + /** + * + * + *
    +         * Product attribute value, including an attribute key and an
    +         * attribute value. Other types can be added here in the future.
    +         * 
    + * + * .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_value = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.ProductAttributeValue, + com.google.cloud.retail.v2beta.ProductAttributeValue.Builder, + com.google.cloud.retail.v2beta.ProductAttributeValueOrBuilder> + getProductAttributeValueFieldBuilder() { + if (productAttributeValueBuilder_ == null) { + productAttributeValueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.ProductAttributeValue, + com.google.cloud.retail.v2beta.ProductAttributeValue.Builder, + com.google.cloud.retail.v2beta.ProductAttributeValueOrBuilder>( + getProductAttributeValue(), getParentForChildren(), isClean()); + productAttributeValue_ = null; + } + return productAttributeValueBuilder_; + } + + @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.retail.v2beta.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer) + private static final com.google.cloud.retail.v2beta.ConversationalSearchResponse + .FollowupQuestion.SuggestedAnswer + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer(); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SuggestedAnswer parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int FOLLOWUP_QUESTION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object followupQuestion_ = ""; + + /** + * + * + *
    +     * The conversational followup question generated for Intent refinement.
    +     * 
    + * + * string followup_question = 1; + * + * @return The followupQuestion. + */ + @java.lang.Override + public java.lang.String getFollowupQuestion() { + java.lang.Object ref = followupQuestion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + followupQuestion_ = s; + return s; + } + } + + /** + * + * + *
    +     * The conversational followup question generated for Intent refinement.
    +     * 
    + * + * string followup_question = 1; + * + * @return The bytes for followupQuestion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFollowupQuestionBytes() { + java.lang.Object ref = followupQuestion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + followupQuestion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUGGESTED_ANSWERS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer> + suggestedAnswers_; + + /** + * + * + *
    +     * The answer options provided to client for the follow-up question.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer suggested_answers = 2; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer> + getSuggestedAnswersList() { + return suggestedAnswers_; + } + + /** + * + * + *
    +     * The answer options provided to client for the follow-up question.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer suggested_answers = 2; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswerOrBuilder> + getSuggestedAnswersOrBuilderList() { + return suggestedAnswers_; + } + + /** + * + * + *
    +     * The answer options provided to client for the follow-up question.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer suggested_answers = 2; + * + */ + @java.lang.Override + public int getSuggestedAnswersCount() { + return suggestedAnswers_.size(); + } + + /** + * + * + *
    +     * The answer options provided to client for the follow-up question.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer suggested_answers = 2; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer + getSuggestedAnswers(int index) { + return suggestedAnswers_.get(index); + } + + /** + * + * + *
    +     * The answer options provided to client for the follow-up question.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer suggested_answers = 2; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswerOrBuilder + getSuggestedAnswersOrBuilder(int index) { + return suggestedAnswers_.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(followupQuestion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, followupQuestion_); + } + for (int i = 0; i < suggestedAnswers_.size(); i++) { + output.writeMessage(2, suggestedAnswers_.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(followupQuestion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, followupQuestion_); + } + for (int i = 0; i < suggestedAnswers_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, suggestedAnswers_.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.retail.v2beta.ConversationalSearchResponse.FollowupQuestion)) { + return super.equals(obj); + } + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion other = + (com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion) obj; + + if (!getFollowupQuestion().equals(other.getFollowupQuestion())) return false; + if (!getSuggestedAnswersList().equals(other.getSuggestedAnswersList())) 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) + FOLLOWUP_QUESTION_FIELD_NUMBER; + hash = (53 * hash) + getFollowupQuestion().hashCode(); + if (getSuggestedAnswersCount() > 0) { + hash = (37 * hash) + SUGGESTED_ANSWERS_FIELD_NUMBER; + hash = (53 * hash) + getSuggestedAnswersList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + 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.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + parseFrom( + 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.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + 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.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + 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.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + 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.retail.v2beta.ConversationalSearchResponse.FollowupQuestion prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 conversational followup question generated for Intent refinement.
    +     * 
    + * + * Protobuf type {@code + * google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion) + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2beta.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_FollowupQuestion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2beta.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_FollowupQuestion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion.class, + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion.Builder + .class); + } + + // Construct using + // com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + followupQuestion_ = ""; + if (suggestedAnswersBuilder_ == null) { + suggestedAnswers_ = java.util.Collections.emptyList(); + } else { + suggestedAnswers_ = null; + suggestedAnswersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2beta.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_FollowupQuestion_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + getDefaultInstanceForType() { + return com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion build() { + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + buildPartial() { + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion result = + new com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion result) { + if (suggestedAnswersBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + suggestedAnswers_ = java.util.Collections.unmodifiableList(suggestedAnswers_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.suggestedAnswers_ = suggestedAnswers_; + } else { + result.suggestedAnswers_ = suggestedAnswersBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.followupQuestion_ = followupQuestion_; + } + } + + @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.retail.v2beta.ConversationalSearchResponse.FollowupQuestion) { + return mergeFrom( + (com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion other) { + if (other + == com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .getDefaultInstance()) return this; + if (!other.getFollowupQuestion().isEmpty()) { + followupQuestion_ = other.followupQuestion_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (suggestedAnswersBuilder_ == null) { + if (!other.suggestedAnswers_.isEmpty()) { + if (suggestedAnswers_.isEmpty()) { + suggestedAnswers_ = other.suggestedAnswers_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureSuggestedAnswersIsMutable(); + suggestedAnswers_.addAll(other.suggestedAnswers_); + } + onChanged(); + } + } else { + if (!other.suggestedAnswers_.isEmpty()) { + if (suggestedAnswersBuilder_.isEmpty()) { + suggestedAnswersBuilder_.dispose(); + suggestedAnswersBuilder_ = null; + suggestedAnswers_ = other.suggestedAnswers_; + bitField0_ = (bitField0_ & ~0x00000002); + suggestedAnswersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSuggestedAnswersFieldBuilder() + : null; + } else { + suggestedAnswersBuilder_.addAllMessages(other.suggestedAnswers_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + followupQuestion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer + m = + input.readMessage( + com.google.cloud.retail.v2beta.ConversationalSearchResponse + .FollowupQuestion.SuggestedAnswer.parser(), + extensionRegistry); + if (suggestedAnswersBuilder_ == null) { + ensureSuggestedAnswersIsMutable(); + suggestedAnswers_.add(m); + } else { + suggestedAnswersBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object followupQuestion_ = ""; + + /** + * + * + *
    +       * The conversational followup question generated for Intent refinement.
    +       * 
    + * + * string followup_question = 1; + * + * @return The followupQuestion. + */ + public java.lang.String getFollowupQuestion() { + java.lang.Object ref = followupQuestion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + followupQuestion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +       * The conversational followup question generated for Intent refinement.
    +       * 
    + * + * string followup_question = 1; + * + * @return The bytes for followupQuestion. + */ + public com.google.protobuf.ByteString getFollowupQuestionBytes() { + java.lang.Object ref = followupQuestion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + followupQuestion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +       * The conversational followup question generated for Intent refinement.
    +       * 
    + * + * string followup_question = 1; + * + * @param value The followupQuestion to set. + * @return This builder for chaining. + */ + public Builder setFollowupQuestion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + followupQuestion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +       * The conversational followup question generated for Intent refinement.
    +       * 
    + * + * string followup_question = 1; + * + * @return This builder for chaining. + */ + public Builder clearFollowupQuestion() { + followupQuestion_ = getDefaultInstance().getFollowupQuestion(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +       * The conversational followup question generated for Intent refinement.
    +       * 
    + * + * string followup_question = 1; + * + * @param value The bytes for followupQuestion to set. + * @return This builder for chaining. + */ + public Builder setFollowupQuestionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + followupQuestion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List< + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer> + suggestedAnswers_ = java.util.Collections.emptyList(); + + private void ensureSuggestedAnswersIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + suggestedAnswers_ = + new java.util.ArrayList< + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer>(suggestedAnswers_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer, + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer.Builder, + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswerOrBuilder> + suggestedAnswersBuilder_; + + /** + * + * + *
    +       * The answer options provided to client for the follow-up question.
    +       * 
    + * + * + * repeated .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer suggested_answers = 2; + * + */ + public java.util.List< + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer> + getSuggestedAnswersList() { + if (suggestedAnswersBuilder_ == null) { + return java.util.Collections.unmodifiableList(suggestedAnswers_); + } else { + return suggestedAnswersBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +       * The answer options provided to client for the follow-up question.
    +       * 
    + * + * + * repeated .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer suggested_answers = 2; + * + */ + public int getSuggestedAnswersCount() { + if (suggestedAnswersBuilder_ == null) { + return suggestedAnswers_.size(); + } else { + return suggestedAnswersBuilder_.getCount(); + } + } + + /** + * + * + *
    +       * The answer options provided to client for the follow-up question.
    +       * 
    + * + * + * repeated .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer suggested_answers = 2; + * + */ + public com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer + getSuggestedAnswers(int index) { + if (suggestedAnswersBuilder_ == null) { + return suggestedAnswers_.get(index); + } else { + return suggestedAnswersBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +       * The answer options provided to client for the follow-up question.
    +       * 
    + * + * + * repeated .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer suggested_answers = 2; + * + */ + public Builder setSuggestedAnswers( + int index, + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer + value) { + if (suggestedAnswersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSuggestedAnswersIsMutable(); + suggestedAnswers_.set(index, value); + onChanged(); + } else { + suggestedAnswersBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +       * The answer options provided to client for the follow-up question.
    +       * 
    + * + * + * repeated .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer suggested_answers = 2; + * + */ + public Builder setSuggestedAnswers( + int index, + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer.Builder + builderForValue) { + if (suggestedAnswersBuilder_ == null) { + ensureSuggestedAnswersIsMutable(); + suggestedAnswers_.set(index, builderForValue.build()); + onChanged(); + } else { + suggestedAnswersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +       * The answer options provided to client for the follow-up question.
    +       * 
    + * + * + * repeated .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer suggested_answers = 2; + * + */ + public Builder addSuggestedAnswers( + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer + value) { + if (suggestedAnswersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSuggestedAnswersIsMutable(); + suggestedAnswers_.add(value); + onChanged(); + } else { + suggestedAnswersBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +       * The answer options provided to client for the follow-up question.
    +       * 
    + * + * + * repeated .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer suggested_answers = 2; + * + */ + public Builder addSuggestedAnswers( + int index, + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer + value) { + if (suggestedAnswersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSuggestedAnswersIsMutable(); + suggestedAnswers_.add(index, value); + onChanged(); + } else { + suggestedAnswersBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +       * The answer options provided to client for the follow-up question.
    +       * 
    + * + * + * repeated .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer suggested_answers = 2; + * + */ + public Builder addSuggestedAnswers( + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer.Builder + builderForValue) { + if (suggestedAnswersBuilder_ == null) { + ensureSuggestedAnswersIsMutable(); + suggestedAnswers_.add(builderForValue.build()); + onChanged(); + } else { + suggestedAnswersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +       * The answer options provided to client for the follow-up question.
    +       * 
    + * + * + * repeated .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer suggested_answers = 2; + * + */ + public Builder addSuggestedAnswers( + int index, + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer.Builder + builderForValue) { + if (suggestedAnswersBuilder_ == null) { + ensureSuggestedAnswersIsMutable(); + suggestedAnswers_.add(index, builderForValue.build()); + onChanged(); + } else { + suggestedAnswersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +       * The answer options provided to client for the follow-up question.
    +       * 
    + * + * + * repeated .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer suggested_answers = 2; + * + */ + public Builder addAllSuggestedAnswers( + java.lang.Iterable< + ? extends + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer> + values) { + if (suggestedAnswersBuilder_ == null) { + ensureSuggestedAnswersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, suggestedAnswers_); + onChanged(); + } else { + suggestedAnswersBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +       * The answer options provided to client for the follow-up question.
    +       * 
    + * + * + * repeated .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer suggested_answers = 2; + * + */ + public Builder clearSuggestedAnswers() { + if (suggestedAnswersBuilder_ == null) { + suggestedAnswers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + suggestedAnswersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +       * The answer options provided to client for the follow-up question.
    +       * 
    + * + * + * repeated .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer suggested_answers = 2; + * + */ + public Builder removeSuggestedAnswers(int index) { + if (suggestedAnswersBuilder_ == null) { + ensureSuggestedAnswersIsMutable(); + suggestedAnswers_.remove(index); + onChanged(); + } else { + suggestedAnswersBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +       * The answer options provided to client for the follow-up question.
    +       * 
    + * + * + * repeated .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer suggested_answers = 2; + * + */ + public com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer.Builder + getSuggestedAnswersBuilder(int index) { + return getSuggestedAnswersFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +       * The answer options provided to client for the follow-up question.
    +       * 
    + * + * + * repeated .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer suggested_answers = 2; + * + */ + public com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswerOrBuilder + getSuggestedAnswersOrBuilder(int index) { + if (suggestedAnswersBuilder_ == null) { + return suggestedAnswers_.get(index); + } else { + return suggestedAnswersBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +       * The answer options provided to client for the follow-up question.
    +       * 
    + * + * + * repeated .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer suggested_answers = 2; + * + */ + public java.util.List< + ? extends + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswerOrBuilder> + getSuggestedAnswersOrBuilderList() { + if (suggestedAnswersBuilder_ != null) { + return suggestedAnswersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(suggestedAnswers_); + } + } + + /** + * + * + *
    +       * The answer options provided to client for the follow-up question.
    +       * 
    + * + * + * repeated .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer suggested_answers = 2; + * + */ + public com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer.Builder + addSuggestedAnswersBuilder() { + return getSuggestedAnswersFieldBuilder() + .addBuilder( + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer.getDefaultInstance()); + } + + /** + * + * + *
    +       * The answer options provided to client for the follow-up question.
    +       * 
    + * + * + * repeated .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer suggested_answers = 2; + * + */ + public com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer.Builder + addSuggestedAnswersBuilder(int index) { + return getSuggestedAnswersFieldBuilder() + .addBuilder( + index, + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer.getDefaultInstance()); + } + + /** + * + * + *
    +       * The answer options provided to client for the follow-up question.
    +       * 
    + * + * + * repeated .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion.SuggestedAnswer suggested_answers = 2; + * + */ + public java.util.List< + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer.Builder> + getSuggestedAnswersBuilderList() { + return getSuggestedAnswersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer, + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer.Builder, + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswerOrBuilder> + getSuggestedAnswersFieldBuilder() { + if (suggestedAnswersBuilder_ == null) { + suggestedAnswersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer, + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswer.Builder, + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .SuggestedAnswerOrBuilder>( + suggestedAnswers_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + suggestedAnswers_ = null; + } + return suggestedAnswersBuilder_; + } + + @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.retail.v2beta.ConversationalSearchResponse.FollowupQuestion) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion) + private static final com.google.cloud.retail.v2beta.ConversationalSearchResponse + .FollowupQuestion + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion(); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FollowupQuestion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface RefinedSearchOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * The query to be used for search.
    +     * 
    + * + * string query = 1; + * + * @return The query. + */ + java.lang.String getQuery(); + + /** + * + * + *
    +     * The query to be used for search.
    +     * 
    + * + * string query = 1; + * + * @return The bytes for query. + */ + com.google.protobuf.ByteString getQueryBytes(); + } + + /** + * + * + *
    +   * The proposed refined search for intent-refinement/bundled shopping
    +   * conversation. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +   * refined_query from search response will be populated here.
    +   * 
    + * + * Protobuf type {@code google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch} + */ + public static final class RefinedSearch extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch) + RefinedSearchOrBuilder { + private static final long serialVersionUID = 0L; + + // Use RefinedSearch.newBuilder() to construct. + private RefinedSearch(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RefinedSearch() { + query_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RefinedSearch(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2beta.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_RefinedSearch_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2beta.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_RefinedSearch_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch.class, + com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch.Builder + .class); + } + + public static final int QUERY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object query_ = ""; + + /** + * + * + *
    +     * The query to be used for search.
    +     * 
    + * + * string query = 1; + * + * @return The query. + */ + @java.lang.Override + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } + } + + /** + * + * + *
    +     * The query to be used for search.
    +     * 
    + * + * string query = 1; + * + * @return The bytes for query. + */ + @java.lang.Override + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = 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(query_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); + } + 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(query_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.retail.v2beta.ConversationalSearchResponse.RefinedSearch)) { + return super.equals(obj); + } + com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch other = + (com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch) obj; + + if (!getQuery().equals(other.getQuery())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch + 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.retail.v2beta.ConversationalSearchResponse.RefinedSearch + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch + parseFrom( + 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.retail.v2beta.ConversationalSearchResponse.RefinedSearch + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch + 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.retail.v2beta.ConversationalSearchResponse.RefinedSearch + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch + 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.retail.v2beta.ConversationalSearchResponse.RefinedSearch + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch + 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.retail.v2beta.ConversationalSearchResponse.RefinedSearch prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 proposed refined search for intent-refinement/bundled shopping
    +     * conversation. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +     * refined_query from search response will be populated here.
    +     * 
    + * + * Protobuf type {@code google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch) + com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearchOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2beta.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_RefinedSearch_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2beta.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_RefinedSearch_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch.class, + com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch.Builder + .class); + } + + // Construct using + // com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + query_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2beta.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_RefinedSearch_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch + getDefaultInstanceForType() { + return com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch build() { + com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch + buildPartial() { + com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch result = + new com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.query_ = query_; + } + } + + @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.retail.v2beta.ConversationalSearchResponse.RefinedSearch) { + return mergeFrom( + (com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch other) { + if (other + == com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch + .getDefaultInstance()) return this; + if (!other.getQuery().isEmpty()) { + query_ = other.query_; + 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: + { + query_ = 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 query_ = ""; + + /** + * + * + *
    +       * The query to be used for search.
    +       * 
    + * + * string query = 1; + * + * @return The query. + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +       * The query to be used for search.
    +       * 
    + * + * string query = 1; + * + * @return The bytes for query. + */ + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +       * The query to be used for search.
    +       * 
    + * + * string query = 1; + * + * @param value The query to set. + * @return This builder for chaining. + */ + public Builder setQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + query_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +       * The query to be used for search.
    +       * 
    + * + * string query = 1; + * + * @return This builder for chaining. + */ + public Builder clearQuery() { + query_ = getDefaultInstance().getQuery(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +       * The query to be used for search.
    +       * 
    + * + * string query = 1; + * + * @param value The bytes for query to set. + * @return This builder for chaining. + */ + public Builder setQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + query_ = 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.retail.v2beta.ConversationalSearchResponse.RefinedSearch) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch) + private static final com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch(); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RefinedSearch parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.retail.v2beta.ConversationalSearchResponse.RefinedSearch + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ConversationalFilteringResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * The conversational filtering question.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion followup_question = 1; + * + * + * @return Whether the followupQuestion field is set. + */ + boolean hasFollowupQuestion(); + + /** + * + * + *
    +     * The conversational filtering question.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion followup_question = 1; + * + * + * @return The followupQuestion. + */ + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + getFollowupQuestion(); + + /** + * + * + *
    +     * The conversational filtering question.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion followup_question = 1; + * + */ + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestionOrBuilder + getFollowupQuestionOrBuilder(); + + /** + * + * + *
    +     * This is the incremental additional filters implied from the current
    +     * user answer. User should add the suggested addition filters to the
    +     * previous [ConversationalSearchRequest.search_params.filter][] and
    +     * [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter],
    +     * and use the merged filter in the follow up requests.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult.AdditionalFilter additional_filter = 2; + * + * + * @return Whether the additionalFilter field is set. + */ + boolean hasAdditionalFilter(); + + /** + * + * + *
    +     * This is the incremental additional filters implied from the current
    +     * user answer. User should add the suggested addition filters to the
    +     * previous [ConversationalSearchRequest.search_params.filter][] and
    +     * [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter],
    +     * and use the merged filter in the follow up requests.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult.AdditionalFilter additional_filter = 2; + * + * + * @return The additionalFilter. + */ + com.google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult + .AdditionalFilter + getAdditionalFilter(); + + /** + * + * + *
    +     * This is the incremental additional filters implied from the current
    +     * user answer. User should add the suggested addition filters to the
    +     * previous [ConversationalSearchRequest.search_params.filter][] and
    +     * [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter],
    +     * and use the merged filter in the follow up requests.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult.AdditionalFilter additional_filter = 2; + * + */ + com.google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult + .AdditionalFilterOrBuilder + getAdditionalFilterOrBuilder(); + } + + /** + * + * + *
    +   * This field specifies all related information that is needed on client
    +   * side for UI rendering of conversational filtering search.
    +   * 
    + * + * Protobuf type {@code + * google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult} + */ + public static final class ConversationalFilteringResult + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult) + ConversationalFilteringResultOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ConversationalFilteringResult.newBuilder() to construct. + private ConversationalFilteringResult( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ConversationalFilteringResult() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ConversationalFilteringResult(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2beta.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_ConversationalFilteringResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2beta.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_ConversationalFilteringResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.class, + com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.Builder.class); + } + + public interface AdditionalFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult.AdditionalFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +       * Product attribute value, including an attribute key and an
    +       * attribute value. Other types can be added here in the future.
    +       * 
    + * + * .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_value = 1; + * + * @return Whether the productAttributeValue field is set. + */ + boolean hasProductAttributeValue(); + + /** + * + * + *
    +       * Product attribute value, including an attribute key and an
    +       * attribute value. Other types can be added here in the future.
    +       * 
    + * + * .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_value = 1; + * + * @return The productAttributeValue. + */ + com.google.cloud.retail.v2beta.ProductAttributeValue getProductAttributeValue(); + + /** + * + * + *
    +       * Product attribute value, including an attribute key and an
    +       * attribute value. Other types can be added here in the future.
    +       * 
    + * + * .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_value = 1; + */ + com.google.cloud.retail.v2beta.ProductAttributeValueOrBuilder + getProductAttributeValueOrBuilder(); + } + + /** + * + * + *
    +     * Additional filter that client side need to apply.
    +     * 
    + * + * Protobuf type {@code + * google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult.AdditionalFilter} + */ + public static final class AdditionalFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult.AdditionalFilter) + AdditionalFilterOrBuilder { + private static final long serialVersionUID = 0L; + + // Use AdditionalFilter.newBuilder() to construct. + private AdditionalFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AdditionalFilter() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AdditionalFilter(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2beta.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_ConversationalFilteringResult_AdditionalFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2beta.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_ConversationalFilteringResult_AdditionalFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter.class, + com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter.Builder.class); + } + + private int bitField0_; + public static final int PRODUCT_ATTRIBUTE_VALUE_FIELD_NUMBER = 1; + private com.google.cloud.retail.v2beta.ProductAttributeValue productAttributeValue_; + + /** + * + * + *
    +       * Product attribute value, including an attribute key and an
    +       * attribute value. Other types can be added here in the future.
    +       * 
    + * + * .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_value = 1; + * + * @return Whether the productAttributeValue field is set. + */ + @java.lang.Override + public boolean hasProductAttributeValue() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +       * Product attribute value, including an attribute key and an
    +       * attribute value. Other types can be added here in the future.
    +       * 
    + * + * .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_value = 1; + * + * @return The productAttributeValue. + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.ProductAttributeValue getProductAttributeValue() { + return productAttributeValue_ == null + ? com.google.cloud.retail.v2beta.ProductAttributeValue.getDefaultInstance() + : productAttributeValue_; + } + + /** + * + * + *
    +       * Product attribute value, including an attribute key and an
    +       * attribute value. Other types can be added here in the future.
    +       * 
    + * + * .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_value = 1; + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.ProductAttributeValueOrBuilder + getProductAttributeValueOrBuilder() { + return productAttributeValue_ == null + ? com.google.cloud.retail.v2beta.ProductAttributeValue.getDefaultInstance() + : productAttributeValue_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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, getProductAttributeValue()); + } + 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, getProductAttributeValue()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter)) { + return super.equals(obj); + } + com.google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult + .AdditionalFilter + other = + (com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter) + obj; + + if (hasProductAttributeValue() != other.hasProductAttributeValue()) return false; + if (hasProductAttributeValue()) { + if (!getProductAttributeValue().equals(other.getProductAttributeValue())) 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 (hasProductAttributeValue()) { + hash = (37 * hash) + PRODUCT_ATTRIBUTE_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getProductAttributeValue().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter + 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.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter + parseFrom( + 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.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter + 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.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter + 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.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter + 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.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult + .AdditionalFilter + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
    +       * Additional filter that client side need to apply.
    +       * 
    + * + * Protobuf type {@code + * google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult.AdditionalFilter} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult.AdditionalFilter) + com.google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult + .AdditionalFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2beta.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_ConversationalFilteringResult_AdditionalFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2beta.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_ConversationalFilteringResult_AdditionalFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter.class, + com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter.Builder.class); + } + + // Construct using + // com.google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult.AdditionalFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getProductAttributeValueFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + productAttributeValue_ = null; + if (productAttributeValueBuilder_ != null) { + productAttributeValueBuilder_.dispose(); + productAttributeValueBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2beta.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_ConversationalFilteringResult_AdditionalFilter_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter + getDefaultInstanceForType() { + return com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter + build() { + com.google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult + .AdditionalFilter + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter + buildPartial() { + com.google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult + .AdditionalFilter + result = + new com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.productAttributeValue_ = + productAttributeValueBuilder_ == null + ? productAttributeValue_ + : productAttributeValueBuilder_.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.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter) { + return mergeFrom( + (com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter + other) { + if (other + == com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter.getDefaultInstance()) return this; + if (other.hasProductAttributeValue()) { + mergeProductAttributeValue(other.getProductAttributeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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( + getProductAttributeValueFieldBuilder().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.retail.v2beta.ProductAttributeValue productAttributeValue_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.ProductAttributeValue, + com.google.cloud.retail.v2beta.ProductAttributeValue.Builder, + com.google.cloud.retail.v2beta.ProductAttributeValueOrBuilder> + productAttributeValueBuilder_; + + /** + * + * + *
    +         * Product attribute value, including an attribute key and an
    +         * attribute value. Other types can be added here in the future.
    +         * 
    + * + * .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_value = 1; + * + * + * @return Whether the productAttributeValue field is set. + */ + public boolean hasProductAttributeValue() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +         * Product attribute value, including an attribute key and an
    +         * attribute value. Other types can be added here in the future.
    +         * 
    + * + * .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_value = 1; + * + * + * @return The productAttributeValue. + */ + public com.google.cloud.retail.v2beta.ProductAttributeValue getProductAttributeValue() { + if (productAttributeValueBuilder_ == null) { + return productAttributeValue_ == null + ? com.google.cloud.retail.v2beta.ProductAttributeValue.getDefaultInstance() + : productAttributeValue_; + } else { + return productAttributeValueBuilder_.getMessage(); + } + } + + /** + * + * + *
    +         * Product attribute value, including an attribute key and an
    +         * attribute value. Other types can be added here in the future.
    +         * 
    + * + * .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_value = 1; + * + */ + public Builder setProductAttributeValue( + com.google.cloud.retail.v2beta.ProductAttributeValue value) { + if (productAttributeValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + productAttributeValue_ = value; + } else { + productAttributeValueBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +         * Product attribute value, including an attribute key and an
    +         * attribute value. Other types can be added here in the future.
    +         * 
    + * + * .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_value = 1; + * + */ + public Builder setProductAttributeValue( + com.google.cloud.retail.v2beta.ProductAttributeValue.Builder builderForValue) { + if (productAttributeValueBuilder_ == null) { + productAttributeValue_ = builderForValue.build(); + } else { + productAttributeValueBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +         * Product attribute value, including an attribute key and an
    +         * attribute value. Other types can be added here in the future.
    +         * 
    + * + * .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_value = 1; + * + */ + public Builder mergeProductAttributeValue( + com.google.cloud.retail.v2beta.ProductAttributeValue value) { + if (productAttributeValueBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && productAttributeValue_ != null + && productAttributeValue_ + != com.google.cloud.retail.v2beta.ProductAttributeValue.getDefaultInstance()) { + getProductAttributeValueBuilder().mergeFrom(value); + } else { + productAttributeValue_ = value; + } + } else { + productAttributeValueBuilder_.mergeFrom(value); + } + if (productAttributeValue_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
    +         * Product attribute value, including an attribute key and an
    +         * attribute value. Other types can be added here in the future.
    +         * 
    + * + * .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_value = 1; + * + */ + public Builder clearProductAttributeValue() { + bitField0_ = (bitField0_ & ~0x00000001); + productAttributeValue_ = null; + if (productAttributeValueBuilder_ != null) { + productAttributeValueBuilder_.dispose(); + productAttributeValueBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +         * Product attribute value, including an attribute key and an
    +         * attribute value. Other types can be added here in the future.
    +         * 
    + * + * .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_value = 1; + * + */ + public com.google.cloud.retail.v2beta.ProductAttributeValue.Builder + getProductAttributeValueBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getProductAttributeValueFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +         * Product attribute value, including an attribute key and an
    +         * attribute value. Other types can be added here in the future.
    +         * 
    + * + * .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_value = 1; + * + */ + public com.google.cloud.retail.v2beta.ProductAttributeValueOrBuilder + getProductAttributeValueOrBuilder() { + if (productAttributeValueBuilder_ != null) { + return productAttributeValueBuilder_.getMessageOrBuilder(); + } else { + return productAttributeValue_ == null + ? com.google.cloud.retail.v2beta.ProductAttributeValue.getDefaultInstance() + : productAttributeValue_; + } + } + + /** + * + * + *
    +         * Product attribute value, including an attribute key and an
    +         * attribute value. Other types can be added here in the future.
    +         * 
    + * + * .google.cloud.retail.v2beta.ProductAttributeValue product_attribute_value = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.ProductAttributeValue, + com.google.cloud.retail.v2beta.ProductAttributeValue.Builder, + com.google.cloud.retail.v2beta.ProductAttributeValueOrBuilder> + getProductAttributeValueFieldBuilder() { + if (productAttributeValueBuilder_ == null) { + productAttributeValueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.ProductAttributeValue, + com.google.cloud.retail.v2beta.ProductAttributeValue.Builder, + com.google.cloud.retail.v2beta.ProductAttributeValueOrBuilder>( + getProductAttributeValue(), getParentForChildren(), isClean()); + productAttributeValue_ = null; + } + return productAttributeValueBuilder_; + } + + @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.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult.AdditionalFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult.AdditionalFilter) + private static final com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter(); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdditionalFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int FOLLOWUP_QUESTION_FIELD_NUMBER = 1; + private com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + followupQuestion_; + + /** + * + * + *
    +     * The conversational filtering question.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion followup_question = 1; + * + * + * @return Whether the followupQuestion field is set. + */ + @java.lang.Override + public boolean hasFollowupQuestion() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +     * The conversational filtering question.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion followup_question = 1; + * + * + * @return The followupQuestion. + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + getFollowupQuestion() { + return followupQuestion_ == null + ? com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .getDefaultInstance() + : followupQuestion_; + } + + /** + * + * + *
    +     * The conversational filtering question.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion followup_question = 1; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestionOrBuilder + getFollowupQuestionOrBuilder() { + return followupQuestion_ == null + ? com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .getDefaultInstance() + : followupQuestion_; + } + + public static final int ADDITIONAL_FILTER_FIELD_NUMBER = 2; + private com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter + additionalFilter_; + + /** + * + * + *
    +     * This is the incremental additional filters implied from the current
    +     * user answer. User should add the suggested addition filters to the
    +     * previous [ConversationalSearchRequest.search_params.filter][] and
    +     * [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter],
    +     * and use the merged filter in the follow up requests.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult.AdditionalFilter additional_filter = 2; + * + * + * @return Whether the additionalFilter field is set. + */ + @java.lang.Override + public boolean hasAdditionalFilter() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +     * This is the incremental additional filters implied from the current
    +     * user answer. User should add the suggested addition filters to the
    +     * previous [ConversationalSearchRequest.search_params.filter][] and
    +     * [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter],
    +     * and use the merged filter in the follow up requests.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult.AdditionalFilter additional_filter = 2; + * + * + * @return The additionalFilter. + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult + .AdditionalFilter + getAdditionalFilter() { + return additionalFilter_ == null + ? com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter.getDefaultInstance() + : additionalFilter_; + } + + /** + * + * + *
    +     * This is the incremental additional filters implied from the current
    +     * user answer. User should add the suggested addition filters to the
    +     * previous [ConversationalSearchRequest.search_params.filter][] and
    +     * [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter],
    +     * and use the merged filter in the follow up requests.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult.AdditionalFilter additional_filter = 2; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult + .AdditionalFilterOrBuilder + getAdditionalFilterOrBuilder() { + return additionalFilter_ == null + ? com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter.getDefaultInstance() + : additionalFilter_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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, getFollowupQuestion()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getAdditionalFilter()); + } + 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, getFollowupQuestion()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAdditionalFilter()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult)) { + return super.equals(obj); + } + com.google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult + other = + (com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult) + obj; + + if (hasFollowupQuestion() != other.hasFollowupQuestion()) return false; + if (hasFollowupQuestion()) { + if (!getFollowupQuestion().equals(other.getFollowupQuestion())) return false; + } + if (hasAdditionalFilter() != other.hasAdditionalFilter()) return false; + if (hasAdditionalFilter()) { + if (!getAdditionalFilter().equals(other.getAdditionalFilter())) 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 (hasFollowupQuestion()) { + hash = (37 * hash) + FOLLOWUP_QUESTION_FIELD_NUMBER; + hash = (53 * hash) + getFollowupQuestion().hashCode(); + } + if (hasAdditionalFilter()) { + hash = (37 * hash) + ADDITIONAL_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalFilter().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult + 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.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult + parseFrom( + 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.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult + 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.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult + 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.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult + 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.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
    +     * This field specifies all related information that is needed on client
    +     * side for UI rendering of conversational filtering search.
    +     * 
    + * + * Protobuf type {@code + * google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult) + com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2beta.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_ConversationalFilteringResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2beta.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_ConversationalFilteringResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.class, + com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.Builder.class); + } + + // Construct using + // com.google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getFollowupQuestionFieldBuilder(); + getAdditionalFilterFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + followupQuestion_ = null; + if (followupQuestionBuilder_ != null) { + followupQuestionBuilder_.dispose(); + followupQuestionBuilder_ = null; + } + additionalFilter_ = null; + if (additionalFilterBuilder_ != null) { + additionalFilterBuilder_.dispose(); + additionalFilterBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2beta.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_ConversationalFilteringResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult + getDefaultInstanceForType() { + return com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult + build() { + com.google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult + buildPartial() { + com.google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult + result = + new com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.followupQuestion_ = + followupQuestionBuilder_ == null + ? followupQuestion_ + : followupQuestionBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.additionalFilter_ = + additionalFilterBuilder_ == null + ? additionalFilter_ + : additionalFilterBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult) { + return mergeFrom( + (com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult + other) { + if (other + == com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.getDefaultInstance()) return this; + if (other.hasFollowupQuestion()) { + mergeFollowupQuestion(other.getFollowupQuestion()); + } + if (other.hasAdditionalFilter()) { + mergeAdditionalFilter(other.getAdditionalFilter()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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( + getFollowupQuestionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getAdditionalFilterFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + followupQuestion_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion, + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion.Builder, + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestionOrBuilder> + followupQuestionBuilder_; + + /** + * + * + *
    +       * The conversational filtering question.
    +       * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion followup_question = 1; + * + * + * @return Whether the followupQuestion field is set. + */ + public boolean hasFollowupQuestion() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +       * The conversational filtering question.
    +       * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion followup_question = 1; + * + * + * @return The followupQuestion. + */ + public com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + getFollowupQuestion() { + if (followupQuestionBuilder_ == null) { + return followupQuestion_ == null + ? com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .getDefaultInstance() + : followupQuestion_; + } else { + return followupQuestionBuilder_.getMessage(); + } + } + + /** + * + * + *
    +       * The conversational filtering question.
    +       * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion followup_question = 1; + * + */ + public Builder setFollowupQuestion( + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion value) { + if (followupQuestionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + followupQuestion_ = value; + } else { + followupQuestionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +       * The conversational filtering question.
    +       * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion followup_question = 1; + * + */ + public Builder setFollowupQuestion( + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion.Builder + builderForValue) { + if (followupQuestionBuilder_ == null) { + followupQuestion_ = builderForValue.build(); + } else { + followupQuestionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +       * The conversational filtering question.
    +       * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion followup_question = 1; + * + */ + public Builder mergeFollowupQuestion( + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion value) { + if (followupQuestionBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && followupQuestion_ != null + && followupQuestion_ + != com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .getDefaultInstance()) { + getFollowupQuestionBuilder().mergeFrom(value); + } else { + followupQuestion_ = value; + } + } else { + followupQuestionBuilder_.mergeFrom(value); + } + if (followupQuestion_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
    +       * The conversational filtering question.
    +       * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion followup_question = 1; + * + */ + public Builder clearFollowupQuestion() { + bitField0_ = (bitField0_ & ~0x00000001); + followupQuestion_ = null; + if (followupQuestionBuilder_ != null) { + followupQuestionBuilder_.dispose(); + followupQuestionBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +       * The conversational filtering question.
    +       * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion followup_question = 1; + * + */ + public com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion.Builder + getFollowupQuestionBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getFollowupQuestionFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +       * The conversational filtering question.
    +       * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion followup_question = 1; + * + */ + public com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestionOrBuilder + getFollowupQuestionOrBuilder() { + if (followupQuestionBuilder_ != null) { + return followupQuestionBuilder_.getMessageOrBuilder(); + } else { + return followupQuestion_ == null + ? com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .getDefaultInstance() + : followupQuestion_; + } + } + + /** + * + * + *
    +       * The conversational filtering question.
    +       * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion followup_question = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion, + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion.Builder, + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestionOrBuilder> + getFollowupQuestionFieldBuilder() { + if (followupQuestionBuilder_ == null) { + followupQuestionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion, + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .Builder, + com.google.cloud.retail.v2beta.ConversationalSearchResponse + .FollowupQuestionOrBuilder>( + getFollowupQuestion(), getParentForChildren(), isClean()); + followupQuestion_ = null; + } + return followupQuestionBuilder_; + } + + private com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter + additionalFilter_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter, + com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter.Builder, + com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilterOrBuilder> + additionalFilterBuilder_; + + /** + * + * + *
    +       * This is the incremental additional filters implied from the current
    +       * user answer. User should add the suggested addition filters to the
    +       * previous [ConversationalSearchRequest.search_params.filter][] and
    +       * [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter],
    +       * and use the merged filter in the follow up requests.
    +       * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult.AdditionalFilter additional_filter = 2; + * + * + * @return Whether the additionalFilter field is set. + */ + public boolean hasAdditionalFilter() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +       * This is the incremental additional filters implied from the current
    +       * user answer. User should add the suggested addition filters to the
    +       * previous [ConversationalSearchRequest.search_params.filter][] and
    +       * [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter],
    +       * and use the merged filter in the follow up requests.
    +       * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult.AdditionalFilter additional_filter = 2; + * + * + * @return The additionalFilter. + */ + public com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter + getAdditionalFilter() { + if (additionalFilterBuilder_ == null) { + return additionalFilter_ == null + ? com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter.getDefaultInstance() + : additionalFilter_; + } else { + return additionalFilterBuilder_.getMessage(); + } + } + + /** + * + * + *
    +       * This is the incremental additional filters implied from the current
    +       * user answer. User should add the suggested addition filters to the
    +       * previous [ConversationalSearchRequest.search_params.filter][] and
    +       * [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter],
    +       * and use the merged filter in the follow up requests.
    +       * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult.AdditionalFilter additional_filter = 2; + * + */ + public Builder setAdditionalFilter( + com.google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult + .AdditionalFilter + value) { + if (additionalFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + additionalFilter_ = value; + } else { + additionalFilterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +       * This is the incremental additional filters implied from the current
    +       * user answer. User should add the suggested addition filters to the
    +       * previous [ConversationalSearchRequest.search_params.filter][] and
    +       * [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter],
    +       * and use the merged filter in the follow up requests.
    +       * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult.AdditionalFilter additional_filter = 2; + * + */ + public Builder setAdditionalFilter( + com.google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult + .AdditionalFilter.Builder + builderForValue) { + if (additionalFilterBuilder_ == null) { + additionalFilter_ = builderForValue.build(); + } else { + additionalFilterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +       * This is the incremental additional filters implied from the current
    +       * user answer. User should add the suggested addition filters to the
    +       * previous [ConversationalSearchRequest.search_params.filter][] and
    +       * [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter],
    +       * and use the merged filter in the follow up requests.
    +       * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult.AdditionalFilter additional_filter = 2; + * + */ + public Builder mergeAdditionalFilter( + com.google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult + .AdditionalFilter + value) { + if (additionalFilterBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && additionalFilter_ != null + && additionalFilter_ + != com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter.getDefaultInstance()) { + getAdditionalFilterBuilder().mergeFrom(value); + } else { + additionalFilter_ = value; + } + } else { + additionalFilterBuilder_.mergeFrom(value); + } + if (additionalFilter_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
    +       * This is the incremental additional filters implied from the current
    +       * user answer. User should add the suggested addition filters to the
    +       * previous [ConversationalSearchRequest.search_params.filter][] and
    +       * [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter],
    +       * and use the merged filter in the follow up requests.
    +       * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult.AdditionalFilter additional_filter = 2; + * + */ + public Builder clearAdditionalFilter() { + bitField0_ = (bitField0_ & ~0x00000002); + additionalFilter_ = null; + if (additionalFilterBuilder_ != null) { + additionalFilterBuilder_.dispose(); + additionalFilterBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +       * This is the incremental additional filters implied from the current
    +       * user answer. User should add the suggested addition filters to the
    +       * previous [ConversationalSearchRequest.search_params.filter][] and
    +       * [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter],
    +       * and use the merged filter in the follow up requests.
    +       * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult.AdditionalFilter additional_filter = 2; + * + */ + public com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter.Builder + getAdditionalFilterBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getAdditionalFilterFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +       * This is the incremental additional filters implied from the current
    +       * user answer. User should add the suggested addition filters to the
    +       * previous [ConversationalSearchRequest.search_params.filter][] and
    +       * [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter],
    +       * and use the merged filter in the follow up requests.
    +       * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult.AdditionalFilter additional_filter = 2; + * + */ + public com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilterOrBuilder + getAdditionalFilterOrBuilder() { + if (additionalFilterBuilder_ != null) { + return additionalFilterBuilder_.getMessageOrBuilder(); + } else { + return additionalFilter_ == null + ? com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter.getDefaultInstance() + : additionalFilter_; + } + } + + /** + * + * + *
    +       * This is the incremental additional filters implied from the current
    +       * user answer. User should add the suggested addition filters to the
    +       * previous [ConversationalSearchRequest.search_params.filter][] and
    +       * [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter],
    +       * and use the merged filter in the follow up requests.
    +       * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult.AdditionalFilter additional_filter = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter, + com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter.Builder, + com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilterOrBuilder> + getAdditionalFilterFieldBuilder() { + if (additionalFilterBuilder_ == null) { + additionalFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter, + com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilter.Builder, + com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.AdditionalFilterOrBuilder>( + getAdditionalFilter(), getParentForChildren(), isClean()); + additionalFilter_ = null; + } + return additionalFilterBuilder_; + } + + @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.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult) + private static final com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult(); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConversationalFilteringResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int USER_QUERY_TYPES_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList userQueryTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
    +   * The types Retail classifies the search query as.
    +   *
    +   * Supported values are:
    +   *
    +   * - "ORDER_SUPPORT"
    +   * - "SIMPLE_PRODUCT_SEARCH"
    +   * - "INTENT_REFINEMENT"
    +   * - "PRODUCT_DETAILS"
    +   * - "PRODUCT_COMPARISON"
    +   * - "DEALS_AND_COUPONS"
    +   * - "STORE_RELEVANT"
    +   * - "BLOCKLISTED"
    +   * - "BEST_PRODUCT"
    +   * - "RETAIL_SUPPORT"
    +   * - "DISABLED"
    +   * 
    + * + * repeated string user_query_types = 10; + * + * @return A list containing the userQueryTypes. + */ + public com.google.protobuf.ProtocolStringList getUserQueryTypesList() { + return userQueryTypes_; + } + + /** + * + * + *
    +   * The types Retail classifies the search query as.
    +   *
    +   * Supported values are:
    +   *
    +   * - "ORDER_SUPPORT"
    +   * - "SIMPLE_PRODUCT_SEARCH"
    +   * - "INTENT_REFINEMENT"
    +   * - "PRODUCT_DETAILS"
    +   * - "PRODUCT_COMPARISON"
    +   * - "DEALS_AND_COUPONS"
    +   * - "STORE_RELEVANT"
    +   * - "BLOCKLISTED"
    +   * - "BEST_PRODUCT"
    +   * - "RETAIL_SUPPORT"
    +   * - "DISABLED"
    +   * 
    + * + * repeated string user_query_types = 10; + * + * @return The count of userQueryTypes. + */ + public int getUserQueryTypesCount() { + return userQueryTypes_.size(); + } + + /** + * + * + *
    +   * The types Retail classifies the search query as.
    +   *
    +   * Supported values are:
    +   *
    +   * - "ORDER_SUPPORT"
    +   * - "SIMPLE_PRODUCT_SEARCH"
    +   * - "INTENT_REFINEMENT"
    +   * - "PRODUCT_DETAILS"
    +   * - "PRODUCT_COMPARISON"
    +   * - "DEALS_AND_COUPONS"
    +   * - "STORE_RELEVANT"
    +   * - "BLOCKLISTED"
    +   * - "BEST_PRODUCT"
    +   * - "RETAIL_SUPPORT"
    +   * - "DISABLED"
    +   * 
    + * + * repeated string user_query_types = 10; + * + * @param index The index of the element to return. + * @return The userQueryTypes at the given index. + */ + public java.lang.String getUserQueryTypes(int index) { + return userQueryTypes_.get(index); + } + + /** + * + * + *
    +   * The types Retail classifies the search query as.
    +   *
    +   * Supported values are:
    +   *
    +   * - "ORDER_SUPPORT"
    +   * - "SIMPLE_PRODUCT_SEARCH"
    +   * - "INTENT_REFINEMENT"
    +   * - "PRODUCT_DETAILS"
    +   * - "PRODUCT_COMPARISON"
    +   * - "DEALS_AND_COUPONS"
    +   * - "STORE_RELEVANT"
    +   * - "BLOCKLISTED"
    +   * - "BEST_PRODUCT"
    +   * - "RETAIL_SUPPORT"
    +   * - "DISABLED"
    +   * 
    + * + * repeated string user_query_types = 10; + * + * @param index The index of the value to return. + * @return The bytes of the userQueryTypes at the given index. + */ + public com.google.protobuf.ByteString getUserQueryTypesBytes(int index) { + return userQueryTypes_.getByteString(index); + } + + public static final int CONVERSATIONAL_TEXT_RESPONSE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object conversationalTextResponse_ = ""; + + /** + * + * + *
    +   * The conversational answer-based text response generated by the Server.
    +   * 
    + * + * string conversational_text_response = 2; + * + * @return The conversationalTextResponse. + */ + @java.lang.Override + public java.lang.String getConversationalTextResponse() { + java.lang.Object ref = conversationalTextResponse_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + conversationalTextResponse_ = s; + return s; + } + } + + /** + * + * + *
    +   * The conversational answer-based text response generated by the Server.
    +   * 
    + * + * string conversational_text_response = 2; + * + * @return The bytes for conversationalTextResponse. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConversationalTextResponseBytes() { + java.lang.Object ref = conversationalTextResponse_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + conversationalTextResponse_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FOLLOWUP_QUESTION_FIELD_NUMBER = 3; + private com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + followupQuestion_; + + /** + * + * + *
    +   * The conversational followup question generated for Intent refinement.
    +   * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion followup_question = 3; + * + * + * @return Whether the followupQuestion field is set. + */ + @java.lang.Override + public boolean hasFollowupQuestion() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * The conversational followup question generated for Intent refinement.
    +   * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion followup_question = 3; + * + * + * @return The followupQuestion. + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + getFollowupQuestion() { + return followupQuestion_ == null + ? com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .getDefaultInstance() + : followupQuestion_; + } + + /** + * + * + *
    +   * The conversational followup question generated for Intent refinement.
    +   * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion followup_question = 3; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestionOrBuilder + getFollowupQuestionOrBuilder() { + return followupQuestion_ == null + ? com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .getDefaultInstance() + : followupQuestion_; + } + + public static final int CONVERSATION_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object conversationId_ = ""; + + /** + * + * + *
    +   * Conversation UUID. This field will be stored in client side storage to
    +   * maintain the conversation session with server and will be used for next
    +   * search request's
    +   * [ConversationalSearchRequest.conversation_id][google.cloud.retail.v2beta.ConversationalSearchRequest.conversation_id]
    +   * to restore conversation state in server.
    +   * 
    + * + * string conversation_id = 4; + * + * @return The conversationId. + */ + @java.lang.Override + public java.lang.String getConversationId() { + java.lang.Object ref = conversationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + conversationId_ = s; + return s; + } + } + + /** + * + * + *
    +   * Conversation UUID. This field will be stored in client side storage to
    +   * maintain the conversation session with server and will be used for next
    +   * search request's
    +   * [ConversationalSearchRequest.conversation_id][google.cloud.retail.v2beta.ConversationalSearchRequest.conversation_id]
    +   * to restore conversation state in server.
    +   * 
    + * + * string conversation_id = 4; + * + * @return The bytes for conversationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConversationIdBytes() { + java.lang.Object ref = conversationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + conversationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REFINED_SEARCH_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private java.util.List + refinedSearch_; + + /** + * + * + *
    +   * The proposed refined search queries. They can be used to fetch the relevant
    +   * search results. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +   * refined_query from search response will be populated here.
    +   * 
    + * + * + * repeated .google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch refined_search = 6; + * + */ + @java.lang.Override + public java.util.List + getRefinedSearchList() { + return refinedSearch_; + } + + /** + * + * + *
    +   * The proposed refined search queries. They can be used to fetch the relevant
    +   * search results. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +   * refined_query from search response will be populated here.
    +   * 
    + * + * + * repeated .google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch refined_search = 6; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearchOrBuilder> + getRefinedSearchOrBuilderList() { + return refinedSearch_; + } + + /** + * + * + *
    +   * The proposed refined search queries. They can be used to fetch the relevant
    +   * search results. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +   * refined_query from search response will be populated here.
    +   * 
    + * + * + * repeated .google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch refined_search = 6; + * + */ + @java.lang.Override + public int getRefinedSearchCount() { + return refinedSearch_.size(); + } + + /** + * + * + *
    +   * The proposed refined search queries. They can be used to fetch the relevant
    +   * search results. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +   * refined_query from search response will be populated here.
    +   * 
    + * + * + * repeated .google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch refined_search = 6; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch getRefinedSearch( + int index) { + return refinedSearch_.get(index); + } + + /** + * + * + *
    +   * The proposed refined search queries. They can be used to fetch the relevant
    +   * search results. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +   * refined_query from search response will be populated here.
    +   * 
    + * + * + * repeated .google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch refined_search = 6; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearchOrBuilder + getRefinedSearchOrBuilder(int index) { + return refinedSearch_.get(index); + } + + public static final int CONVERSATIONAL_FILTERING_RESULT_FIELD_NUMBER = 7; + private com.google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult + conversationalFilteringResult_; + + /** + * + * + *
    +   * This field specifies all related information that is needed on client
    +   * side for UI rendering of conversational filtering search.
    +   * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult conversational_filtering_result = 7; + * + * + * @return Whether the conversationalFilteringResult field is set. + */ + @java.lang.Override + public boolean hasConversationalFilteringResult() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
    +   * This field specifies all related information that is needed on client
    +   * side for UI rendering of conversational filtering search.
    +   * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult conversational_filtering_result = 7; + * + * + * @return The conversationalFilteringResult. + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult + getConversationalFilteringResult() { + return conversationalFilteringResult_ == null + ? com.google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult + .getDefaultInstance() + : conversationalFilteringResult_; + } + + /** + * + * + *
    +   * This field specifies all related information that is needed on client
    +   * side for UI rendering of conversational filtering search.
    +   * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult conversational_filtering_result = 7; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResultOrBuilder + getConversationalFilteringResultOrBuilder() { + return conversationalFilteringResult_ == null + ? com.google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult + .getDefaultInstance() + : conversationalFilteringResult_; + } + + public static final int STATE_FIELD_NUMBER = 9; + private int state_ = 0; + + /** + * + * + *
    +   * Output only. The state of the response generation.
    +   * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
    +   * Output only. The state of the response generation.
    +   * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchResponse.State getState() { + com.google.cloud.retail.v2beta.ConversationalSearchResponse.State result = + com.google.cloud.retail.v2beta.ConversationalSearchResponse.State.forNumber(state_); + return result == null + ? com.google.cloud.retail.v2beta.ConversationalSearchResponse.State.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(conversationalTextResponse_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, conversationalTextResponse_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getFollowupQuestion()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(conversationId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, conversationId_); + } + for (int i = 0; i < refinedSearch_.size(); i++) { + output.writeMessage(6, refinedSearch_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(7, getConversationalFilteringResult()); + } + if (state_ + != com.google.cloud.retail.v2beta.ConversationalSearchResponse.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(9, state_); + } + for (int i = 0; i < userQueryTypes_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, userQueryTypes_.getRaw(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(conversationalTextResponse_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(2, conversationalTextResponse_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getFollowupQuestion()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(conversationId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, conversationId_); + } + for (int i = 0; i < refinedSearch_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, refinedSearch_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, getConversationalFilteringResult()); + } + if (state_ + != com.google.cloud.retail.v2beta.ConversationalSearchResponse.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, state_); + } + { + int dataSize = 0; + for (int i = 0; i < userQueryTypes_.size(); i++) { + dataSize += computeStringSizeNoTag(userQueryTypes_.getRaw(i)); + } + size += dataSize; + size += 1 * getUserQueryTypesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.retail.v2beta.ConversationalSearchResponse)) { + return super.equals(obj); + } + com.google.cloud.retail.v2beta.ConversationalSearchResponse other = + (com.google.cloud.retail.v2beta.ConversationalSearchResponse) obj; + + if (!getUserQueryTypesList().equals(other.getUserQueryTypesList())) return false; + if (!getConversationalTextResponse().equals(other.getConversationalTextResponse())) + return false; + if (hasFollowupQuestion() != other.hasFollowupQuestion()) return false; + if (hasFollowupQuestion()) { + if (!getFollowupQuestion().equals(other.getFollowupQuestion())) return false; + } + if (!getConversationId().equals(other.getConversationId())) return false; + if (!getRefinedSearchList().equals(other.getRefinedSearchList())) return false; + if (hasConversationalFilteringResult() != other.hasConversationalFilteringResult()) + return false; + if (hasConversationalFilteringResult()) { + if (!getConversationalFilteringResult().equals(other.getConversationalFilteringResult())) + return false; + } + if (state_ != other.state_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getUserQueryTypesCount() > 0) { + hash = (37 * hash) + USER_QUERY_TYPES_FIELD_NUMBER; + hash = (53 * hash) + getUserQueryTypesList().hashCode(); + } + hash = (37 * hash) + CONVERSATIONAL_TEXT_RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getConversationalTextResponse().hashCode(); + if (hasFollowupQuestion()) { + hash = (37 * hash) + FOLLOWUP_QUESTION_FIELD_NUMBER; + hash = (53 * hash) + getFollowupQuestion().hashCode(); + } + hash = (37 * hash) + CONVERSATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getConversationId().hashCode(); + if (getRefinedSearchCount() > 0) { + hash = (37 * hash) + REFINED_SEARCH_FIELD_NUMBER; + hash = (53 * hash) + getRefinedSearchList().hashCode(); + } + if (hasConversationalFilteringResult()) { + hash = (37 * hash) + CONVERSATIONAL_FILTERING_RESULT_FIELD_NUMBER; + hash = (53 * hash) + getConversationalFilteringResult().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchResponse 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.retail.v2beta.ConversationalSearchResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchResponse parseFrom( + 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.retail.v2beta.ConversationalSearchResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchResponse 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.retail.v2beta.ConversationalSearchResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchResponse 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.retail.v2beta.ConversationalSearchResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchResponse 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.retail.v2beta.ConversationalSearchResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Response message for
    +   * [ConversationalSearchService.ConversationalSearch][google.cloud.retail.v2beta.ConversationalSearchService.ConversationalSearch]
    +   * method.
    +   * 
    + * + * Protobuf type {@code google.cloud.retail.v2beta.ConversationalSearchResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2beta.ConversationalSearchResponse) + com.google.cloud.retail.v2beta.ConversationalSearchResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2beta.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2beta.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2beta.ConversationalSearchResponse.class, + com.google.cloud.retail.v2beta.ConversationalSearchResponse.Builder.class); + } + + // Construct using com.google.cloud.retail.v2beta.ConversationalSearchResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getFollowupQuestionFieldBuilder(); + getRefinedSearchFieldBuilder(); + getConversationalFilteringResultFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + userQueryTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + conversationalTextResponse_ = ""; + followupQuestion_ = null; + if (followupQuestionBuilder_ != null) { + followupQuestionBuilder_.dispose(); + followupQuestionBuilder_ = null; + } + conversationId_ = ""; + if (refinedSearchBuilder_ == null) { + refinedSearch_ = java.util.Collections.emptyList(); + } else { + refinedSearch_ = null; + refinedSearchBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + conversationalFilteringResult_ = null; + if (conversationalFilteringResultBuilder_ != null) { + conversationalFilteringResultBuilder_.dispose(); + conversationalFilteringResultBuilder_ = null; + } + state_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2beta.ConversationalSearchServiceProto + .internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchResponse getDefaultInstanceForType() { + return com.google.cloud.retail.v2beta.ConversationalSearchResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchResponse build() { + com.google.cloud.retail.v2beta.ConversationalSearchResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchResponse buildPartial() { + com.google.cloud.retail.v2beta.ConversationalSearchResponse result = + new com.google.cloud.retail.v2beta.ConversationalSearchResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.retail.v2beta.ConversationalSearchResponse result) { + if (refinedSearchBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + refinedSearch_ = java.util.Collections.unmodifiableList(refinedSearch_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.refinedSearch_ = refinedSearch_; + } else { + result.refinedSearch_ = refinedSearchBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.retail.v2beta.ConversationalSearchResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + userQueryTypes_.makeImmutable(); + result.userQueryTypes_ = userQueryTypes_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.conversationalTextResponse_ = conversationalTextResponse_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.followupQuestion_ = + followupQuestionBuilder_ == null ? followupQuestion_ : followupQuestionBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.conversationId_ = conversationId_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.conversationalFilteringResult_ = + conversationalFilteringResultBuilder_ == null + ? conversationalFilteringResult_ + : conversationalFilteringResultBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.state_ = state_; + } + 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.retail.v2beta.ConversationalSearchResponse) { + return mergeFrom((com.google.cloud.retail.v2beta.ConversationalSearchResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.retail.v2beta.ConversationalSearchResponse other) { + if (other == com.google.cloud.retail.v2beta.ConversationalSearchResponse.getDefaultInstance()) + return this; + if (!other.userQueryTypes_.isEmpty()) { + if (userQueryTypes_.isEmpty()) { + userQueryTypes_ = other.userQueryTypes_; + bitField0_ |= 0x00000001; + } else { + ensureUserQueryTypesIsMutable(); + userQueryTypes_.addAll(other.userQueryTypes_); + } + onChanged(); + } + if (!other.getConversationalTextResponse().isEmpty()) { + conversationalTextResponse_ = other.conversationalTextResponse_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasFollowupQuestion()) { + mergeFollowupQuestion(other.getFollowupQuestion()); + } + if (!other.getConversationId().isEmpty()) { + conversationId_ = other.conversationId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (refinedSearchBuilder_ == null) { + if (!other.refinedSearch_.isEmpty()) { + if (refinedSearch_.isEmpty()) { + refinedSearch_ = other.refinedSearch_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureRefinedSearchIsMutable(); + refinedSearch_.addAll(other.refinedSearch_); + } + onChanged(); + } + } else { + if (!other.refinedSearch_.isEmpty()) { + if (refinedSearchBuilder_.isEmpty()) { + refinedSearchBuilder_.dispose(); + refinedSearchBuilder_ = null; + refinedSearch_ = other.refinedSearch_; + bitField0_ = (bitField0_ & ~0x00000010); + refinedSearchBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRefinedSearchFieldBuilder() + : null; + } else { + refinedSearchBuilder_.addAllMessages(other.refinedSearch_); + } + } + } + if (other.hasConversationalFilteringResult()) { + mergeConversationalFilteringResult(other.getConversationalFilteringResult()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + conversationalTextResponse_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getFollowupQuestionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + conversationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 50: + { + com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch m = + input.readMessage( + com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch + .parser(), + extensionRegistry); + if (refinedSearchBuilder_ == null) { + ensureRefinedSearchIsMutable(); + refinedSearch_.add(m); + } else { + refinedSearchBuilder_.addMessage(m); + } + break; + } // case 50 + case 58: + { + input.readMessage( + getConversationalFilteringResultFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 72: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 72 + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUserQueryTypesIsMutable(); + userQueryTypes_.add(s); + break; + } // case 82 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList userQueryTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUserQueryTypesIsMutable() { + if (!userQueryTypes_.isModifiable()) { + userQueryTypes_ = new com.google.protobuf.LazyStringArrayList(userQueryTypes_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
    +     * The types Retail classifies the search query as.
    +     *
    +     * Supported values are:
    +     *
    +     * - "ORDER_SUPPORT"
    +     * - "SIMPLE_PRODUCT_SEARCH"
    +     * - "INTENT_REFINEMENT"
    +     * - "PRODUCT_DETAILS"
    +     * - "PRODUCT_COMPARISON"
    +     * - "DEALS_AND_COUPONS"
    +     * - "STORE_RELEVANT"
    +     * - "BLOCKLISTED"
    +     * - "BEST_PRODUCT"
    +     * - "RETAIL_SUPPORT"
    +     * - "DISABLED"
    +     * 
    + * + * repeated string user_query_types = 10; + * + * @return A list containing the userQueryTypes. + */ + public com.google.protobuf.ProtocolStringList getUserQueryTypesList() { + userQueryTypes_.makeImmutable(); + return userQueryTypes_; + } + + /** + * + * + *
    +     * The types Retail classifies the search query as.
    +     *
    +     * Supported values are:
    +     *
    +     * - "ORDER_SUPPORT"
    +     * - "SIMPLE_PRODUCT_SEARCH"
    +     * - "INTENT_REFINEMENT"
    +     * - "PRODUCT_DETAILS"
    +     * - "PRODUCT_COMPARISON"
    +     * - "DEALS_AND_COUPONS"
    +     * - "STORE_RELEVANT"
    +     * - "BLOCKLISTED"
    +     * - "BEST_PRODUCT"
    +     * - "RETAIL_SUPPORT"
    +     * - "DISABLED"
    +     * 
    + * + * repeated string user_query_types = 10; + * + * @return The count of userQueryTypes. + */ + public int getUserQueryTypesCount() { + return userQueryTypes_.size(); + } + + /** + * + * + *
    +     * The types Retail classifies the search query as.
    +     *
    +     * Supported values are:
    +     *
    +     * - "ORDER_SUPPORT"
    +     * - "SIMPLE_PRODUCT_SEARCH"
    +     * - "INTENT_REFINEMENT"
    +     * - "PRODUCT_DETAILS"
    +     * - "PRODUCT_COMPARISON"
    +     * - "DEALS_AND_COUPONS"
    +     * - "STORE_RELEVANT"
    +     * - "BLOCKLISTED"
    +     * - "BEST_PRODUCT"
    +     * - "RETAIL_SUPPORT"
    +     * - "DISABLED"
    +     * 
    + * + * repeated string user_query_types = 10; + * + * @param index The index of the element to return. + * @return The userQueryTypes at the given index. + */ + public java.lang.String getUserQueryTypes(int index) { + return userQueryTypes_.get(index); + } + + /** + * + * + *
    +     * The types Retail classifies the search query as.
    +     *
    +     * Supported values are:
    +     *
    +     * - "ORDER_SUPPORT"
    +     * - "SIMPLE_PRODUCT_SEARCH"
    +     * - "INTENT_REFINEMENT"
    +     * - "PRODUCT_DETAILS"
    +     * - "PRODUCT_COMPARISON"
    +     * - "DEALS_AND_COUPONS"
    +     * - "STORE_RELEVANT"
    +     * - "BLOCKLISTED"
    +     * - "BEST_PRODUCT"
    +     * - "RETAIL_SUPPORT"
    +     * - "DISABLED"
    +     * 
    + * + * repeated string user_query_types = 10; + * + * @param index The index of the value to return. + * @return The bytes of the userQueryTypes at the given index. + */ + public com.google.protobuf.ByteString getUserQueryTypesBytes(int index) { + return userQueryTypes_.getByteString(index); + } + + /** + * + * + *
    +     * The types Retail classifies the search query as.
    +     *
    +     * Supported values are:
    +     *
    +     * - "ORDER_SUPPORT"
    +     * - "SIMPLE_PRODUCT_SEARCH"
    +     * - "INTENT_REFINEMENT"
    +     * - "PRODUCT_DETAILS"
    +     * - "PRODUCT_COMPARISON"
    +     * - "DEALS_AND_COUPONS"
    +     * - "STORE_RELEVANT"
    +     * - "BLOCKLISTED"
    +     * - "BEST_PRODUCT"
    +     * - "RETAIL_SUPPORT"
    +     * - "DISABLED"
    +     * 
    + * + * repeated string user_query_types = 10; + * + * @param index The index to set the value at. + * @param value The userQueryTypes to set. + * @return This builder for chaining. + */ + public Builder setUserQueryTypes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUserQueryTypesIsMutable(); + userQueryTypes_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * The types Retail classifies the search query as.
    +     *
    +     * Supported values are:
    +     *
    +     * - "ORDER_SUPPORT"
    +     * - "SIMPLE_PRODUCT_SEARCH"
    +     * - "INTENT_REFINEMENT"
    +     * - "PRODUCT_DETAILS"
    +     * - "PRODUCT_COMPARISON"
    +     * - "DEALS_AND_COUPONS"
    +     * - "STORE_RELEVANT"
    +     * - "BLOCKLISTED"
    +     * - "BEST_PRODUCT"
    +     * - "RETAIL_SUPPORT"
    +     * - "DISABLED"
    +     * 
    + * + * repeated string user_query_types = 10; + * + * @param value The userQueryTypes to add. + * @return This builder for chaining. + */ + public Builder addUserQueryTypes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUserQueryTypesIsMutable(); + userQueryTypes_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * The types Retail classifies the search query as.
    +     *
    +     * Supported values are:
    +     *
    +     * - "ORDER_SUPPORT"
    +     * - "SIMPLE_PRODUCT_SEARCH"
    +     * - "INTENT_REFINEMENT"
    +     * - "PRODUCT_DETAILS"
    +     * - "PRODUCT_COMPARISON"
    +     * - "DEALS_AND_COUPONS"
    +     * - "STORE_RELEVANT"
    +     * - "BLOCKLISTED"
    +     * - "BEST_PRODUCT"
    +     * - "RETAIL_SUPPORT"
    +     * - "DISABLED"
    +     * 
    + * + * repeated string user_query_types = 10; + * + * @param values The userQueryTypes to add. + * @return This builder for chaining. + */ + public Builder addAllUserQueryTypes(java.lang.Iterable values) { + ensureUserQueryTypesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, userQueryTypes_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * The types Retail classifies the search query as.
    +     *
    +     * Supported values are:
    +     *
    +     * - "ORDER_SUPPORT"
    +     * - "SIMPLE_PRODUCT_SEARCH"
    +     * - "INTENT_REFINEMENT"
    +     * - "PRODUCT_DETAILS"
    +     * - "PRODUCT_COMPARISON"
    +     * - "DEALS_AND_COUPONS"
    +     * - "STORE_RELEVANT"
    +     * - "BLOCKLISTED"
    +     * - "BEST_PRODUCT"
    +     * - "RETAIL_SUPPORT"
    +     * - "DISABLED"
    +     * 
    + * + * repeated string user_query_types = 10; + * + * @return This builder for chaining. + */ + public Builder clearUserQueryTypes() { + userQueryTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
    +     * The types Retail classifies the search query as.
    +     *
    +     * Supported values are:
    +     *
    +     * - "ORDER_SUPPORT"
    +     * - "SIMPLE_PRODUCT_SEARCH"
    +     * - "INTENT_REFINEMENT"
    +     * - "PRODUCT_DETAILS"
    +     * - "PRODUCT_COMPARISON"
    +     * - "DEALS_AND_COUPONS"
    +     * - "STORE_RELEVANT"
    +     * - "BLOCKLISTED"
    +     * - "BEST_PRODUCT"
    +     * - "RETAIL_SUPPORT"
    +     * - "DISABLED"
    +     * 
    + * + * repeated string user_query_types = 10; + * + * @param value The bytes of the userQueryTypes to add. + * @return This builder for chaining. + */ + public Builder addUserQueryTypesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUserQueryTypesIsMutable(); + userQueryTypes_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object conversationalTextResponse_ = ""; + + /** + * + * + *
    +     * The conversational answer-based text response generated by the Server.
    +     * 
    + * + * string conversational_text_response = 2; + * + * @return The conversationalTextResponse. + */ + public java.lang.String getConversationalTextResponse() { + java.lang.Object ref = conversationalTextResponse_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + conversationalTextResponse_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * The conversational answer-based text response generated by the Server.
    +     * 
    + * + * string conversational_text_response = 2; + * + * @return The bytes for conversationalTextResponse. + */ + public com.google.protobuf.ByteString getConversationalTextResponseBytes() { + java.lang.Object ref = conversationalTextResponse_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + conversationalTextResponse_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * The conversational answer-based text response generated by the Server.
    +     * 
    + * + * string conversational_text_response = 2; + * + * @param value The conversationalTextResponse to set. + * @return This builder for chaining. + */ + public Builder setConversationalTextResponse(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + conversationalTextResponse_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * The conversational answer-based text response generated by the Server.
    +     * 
    + * + * string conversational_text_response = 2; + * + * @return This builder for chaining. + */ + public Builder clearConversationalTextResponse() { + conversationalTextResponse_ = getDefaultInstance().getConversationalTextResponse(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * The conversational answer-based text response generated by the Server.
    +     * 
    + * + * string conversational_text_response = 2; + * + * @param value The bytes for conversationalTextResponse to set. + * @return This builder for chaining. + */ + public Builder setConversationalTextResponseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + conversationalTextResponse_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + followupQuestion_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion, + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion.Builder, + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestionOrBuilder> + followupQuestionBuilder_; + + /** + * + * + *
    +     * The conversational followup question generated for Intent refinement.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion followup_question = 3; + * + * + * @return Whether the followupQuestion field is set. + */ + public boolean hasFollowupQuestion() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +     * The conversational followup question generated for Intent refinement.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion followup_question = 3; + * + * + * @return The followupQuestion. + */ + public com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + getFollowupQuestion() { + if (followupQuestionBuilder_ == null) { + return followupQuestion_ == null + ? com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .getDefaultInstance() + : followupQuestion_; + } else { + return followupQuestionBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * The conversational followup question generated for Intent refinement.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion followup_question = 3; + * + */ + public Builder setFollowupQuestion( + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion value) { + if (followupQuestionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + followupQuestion_ = value; + } else { + followupQuestionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * The conversational followup question generated for Intent refinement.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion followup_question = 3; + * + */ + public Builder setFollowupQuestion( + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion.Builder + builderForValue) { + if (followupQuestionBuilder_ == null) { + followupQuestion_ = builderForValue.build(); + } else { + followupQuestionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * The conversational followup question generated for Intent refinement.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion followup_question = 3; + * + */ + public Builder mergeFollowupQuestion( + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion value) { + if (followupQuestionBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && followupQuestion_ != null + && followupQuestion_ + != com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .getDefaultInstance()) { + getFollowupQuestionBuilder().mergeFrom(value); + } else { + followupQuestion_ = value; + } + } else { + followupQuestionBuilder_.mergeFrom(value); + } + if (followupQuestion_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * The conversational followup question generated for Intent refinement.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion followup_question = 3; + * + */ + public Builder clearFollowupQuestion() { + bitField0_ = (bitField0_ & ~0x00000004); + followupQuestion_ = null; + if (followupQuestionBuilder_ != null) { + followupQuestionBuilder_.dispose(); + followupQuestionBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * The conversational followup question generated for Intent refinement.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion followup_question = 3; + * + */ + public com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion.Builder + getFollowupQuestionBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getFollowupQuestionFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * The conversational followup question generated for Intent refinement.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion followup_question = 3; + * + */ + public com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestionOrBuilder + getFollowupQuestionOrBuilder() { + if (followupQuestionBuilder_ != null) { + return followupQuestionBuilder_.getMessageOrBuilder(); + } else { + return followupQuestion_ == null + ? com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .getDefaultInstance() + : followupQuestion_; + } + } + + /** + * + * + *
    +     * The conversational followup question generated for Intent refinement.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion followup_question = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion, + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion.Builder, + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestionOrBuilder> + getFollowupQuestionFieldBuilder() { + if (followupQuestionBuilder_ == null) { + followupQuestionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion, + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + .Builder, + com.google.cloud.retail.v2beta.ConversationalSearchResponse + .FollowupQuestionOrBuilder>( + getFollowupQuestion(), getParentForChildren(), isClean()); + followupQuestion_ = null; + } + return followupQuestionBuilder_; + } + + private java.lang.Object conversationId_ = ""; + + /** + * + * + *
    +     * Conversation UUID. This field will be stored in client side storage to
    +     * maintain the conversation session with server and will be used for next
    +     * search request's
    +     * [ConversationalSearchRequest.conversation_id][google.cloud.retail.v2beta.ConversationalSearchRequest.conversation_id]
    +     * to restore conversation state in server.
    +     * 
    + * + * string conversation_id = 4; + * + * @return The conversationId. + */ + public java.lang.String getConversationId() { + java.lang.Object ref = conversationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + conversationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Conversation UUID. This field will be stored in client side storage to
    +     * maintain the conversation session with server and will be used for next
    +     * search request's
    +     * [ConversationalSearchRequest.conversation_id][google.cloud.retail.v2beta.ConversationalSearchRequest.conversation_id]
    +     * to restore conversation state in server.
    +     * 
    + * + * string conversation_id = 4; + * + * @return The bytes for conversationId. + */ + public com.google.protobuf.ByteString getConversationIdBytes() { + java.lang.Object ref = conversationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + conversationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Conversation UUID. This field will be stored in client side storage to
    +     * maintain the conversation session with server and will be used for next
    +     * search request's
    +     * [ConversationalSearchRequest.conversation_id][google.cloud.retail.v2beta.ConversationalSearchRequest.conversation_id]
    +     * to restore conversation state in server.
    +     * 
    + * + * string conversation_id = 4; + * + * @param value The conversationId to set. + * @return This builder for chaining. + */ + public Builder setConversationId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + conversationId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Conversation UUID. This field will be stored in client side storage to
    +     * maintain the conversation session with server and will be used for next
    +     * search request's
    +     * [ConversationalSearchRequest.conversation_id][google.cloud.retail.v2beta.ConversationalSearchRequest.conversation_id]
    +     * to restore conversation state in server.
    +     * 
    + * + * string conversation_id = 4; + * + * @return This builder for chaining. + */ + public Builder clearConversationId() { + conversationId_ = getDefaultInstance().getConversationId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Conversation UUID. This field will be stored in client side storage to
    +     * maintain the conversation session with server and will be used for next
    +     * search request's
    +     * [ConversationalSearchRequest.conversation_id][google.cloud.retail.v2beta.ConversationalSearchRequest.conversation_id]
    +     * to restore conversation state in server.
    +     * 
    + * + * string conversation_id = 4; + * + * @param value The bytes for conversationId to set. + * @return This builder for chaining. + */ + public Builder setConversationIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + conversationId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.util.List< + com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch> + refinedSearch_ = java.util.Collections.emptyList(); + + private void ensureRefinedSearchIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + refinedSearch_ = + new java.util.ArrayList< + com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch>( + refinedSearch_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch, + com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch.Builder, + com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearchOrBuilder> + refinedSearchBuilder_; + + /** + * + * + *
    +     * The proposed refined search queries. They can be used to fetch the relevant
    +     * search results. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +     * refined_query from search response will be populated here.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch refined_search = 6; + * + */ + public java.util.List + getRefinedSearchList() { + if (refinedSearchBuilder_ == null) { + return java.util.Collections.unmodifiableList(refinedSearch_); + } else { + return refinedSearchBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * The proposed refined search queries. They can be used to fetch the relevant
    +     * search results. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +     * refined_query from search response will be populated here.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch refined_search = 6; + * + */ + public int getRefinedSearchCount() { + if (refinedSearchBuilder_ == null) { + return refinedSearch_.size(); + } else { + return refinedSearchBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * The proposed refined search queries. They can be used to fetch the relevant
    +     * search results. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +     * refined_query from search response will be populated here.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch refined_search = 6; + * + */ + public com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch + getRefinedSearch(int index) { + if (refinedSearchBuilder_ == null) { + return refinedSearch_.get(index); + } else { + return refinedSearchBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * The proposed refined search queries. They can be used to fetch the relevant
    +     * search results. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +     * refined_query from search response will be populated here.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch refined_search = 6; + * + */ + public Builder setRefinedSearch( + int index, + com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch value) { + if (refinedSearchBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRefinedSearchIsMutable(); + refinedSearch_.set(index, value); + onChanged(); + } else { + refinedSearchBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The proposed refined search queries. They can be used to fetch the relevant
    +     * search results. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +     * refined_query from search response will be populated here.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch refined_search = 6; + * + */ + public Builder setRefinedSearch( + int index, + com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch.Builder + builderForValue) { + if (refinedSearchBuilder_ == null) { + ensureRefinedSearchIsMutable(); + refinedSearch_.set(index, builderForValue.build()); + onChanged(); + } else { + refinedSearchBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The proposed refined search queries. They can be used to fetch the relevant
    +     * search results. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +     * refined_query from search response will be populated here.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch refined_search = 6; + * + */ + public Builder addRefinedSearch( + com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch value) { + if (refinedSearchBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRefinedSearchIsMutable(); + refinedSearch_.add(value); + onChanged(); + } else { + refinedSearchBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * The proposed refined search queries. They can be used to fetch the relevant
    +     * search results. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +     * refined_query from search response will be populated here.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch refined_search = 6; + * + */ + public Builder addRefinedSearch( + int index, + com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch value) { + if (refinedSearchBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRefinedSearchIsMutable(); + refinedSearch_.add(index, value); + onChanged(); + } else { + refinedSearchBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The proposed refined search queries. They can be used to fetch the relevant
    +     * search results. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +     * refined_query from search response will be populated here.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch refined_search = 6; + * + */ + public Builder addRefinedSearch( + com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch.Builder + builderForValue) { + if (refinedSearchBuilder_ == null) { + ensureRefinedSearchIsMutable(); + refinedSearch_.add(builderForValue.build()); + onChanged(); + } else { + refinedSearchBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The proposed refined search queries. They can be used to fetch the relevant
    +     * search results. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +     * refined_query from search response will be populated here.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch refined_search = 6; + * + */ + public Builder addRefinedSearch( + int index, + com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch.Builder + builderForValue) { + if (refinedSearchBuilder_ == null) { + ensureRefinedSearchIsMutable(); + refinedSearch_.add(index, builderForValue.build()); + onChanged(); + } else { + refinedSearchBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The proposed refined search queries. They can be used to fetch the relevant
    +     * search results. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +     * refined_query from search response will be populated here.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch refined_search = 6; + * + */ + public Builder addAllRefinedSearch( + java.lang.Iterable< + ? extends com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch> + values) { + if (refinedSearchBuilder_ == null) { + ensureRefinedSearchIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, refinedSearch_); + onChanged(); + } else { + refinedSearchBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * The proposed refined search queries. They can be used to fetch the relevant
    +     * search results. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +     * refined_query from search response will be populated here.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch refined_search = 6; + * + */ + public Builder clearRefinedSearch() { + if (refinedSearchBuilder_ == null) { + refinedSearch_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + refinedSearchBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * The proposed refined search queries. They can be used to fetch the relevant
    +     * search results. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +     * refined_query from search response will be populated here.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch refined_search = 6; + * + */ + public Builder removeRefinedSearch(int index) { + if (refinedSearchBuilder_ == null) { + ensureRefinedSearchIsMutable(); + refinedSearch_.remove(index); + onChanged(); + } else { + refinedSearchBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * The proposed refined search queries. They can be used to fetch the relevant
    +     * search results. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +     * refined_query from search response will be populated here.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch refined_search = 6; + * + */ + public com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch.Builder + getRefinedSearchBuilder(int index) { + return getRefinedSearchFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * The proposed refined search queries. They can be used to fetch the relevant
    +     * search results. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +     * refined_query from search response will be populated here.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch refined_search = 6; + * + */ + public com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearchOrBuilder + getRefinedSearchOrBuilder(int index) { + if (refinedSearchBuilder_ == null) { + return refinedSearch_.get(index); + } else { + return refinedSearchBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * The proposed refined search queries. They can be used to fetch the relevant
    +     * search results. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +     * refined_query from search response will be populated here.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch refined_search = 6; + * + */ + public java.util.List< + ? extends + com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearchOrBuilder> + getRefinedSearchOrBuilderList() { + if (refinedSearchBuilder_ != null) { + return refinedSearchBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(refinedSearch_); + } + } + + /** + * + * + *
    +     * The proposed refined search queries. They can be used to fetch the relevant
    +     * search results. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +     * refined_query from search response will be populated here.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch refined_search = 6; + * + */ + public com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch.Builder + addRefinedSearchBuilder() { + return getRefinedSearchFieldBuilder() + .addBuilder( + com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch + .getDefaultInstance()); + } + + /** + * + * + *
    +     * The proposed refined search queries. They can be used to fetch the relevant
    +     * search results. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +     * refined_query from search response will be populated here.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch refined_search = 6; + * + */ + public com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch.Builder + addRefinedSearchBuilder(int index) { + return getRefinedSearchFieldBuilder() + .addBuilder( + index, + com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch + .getDefaultInstance()); + } + + /** + * + * + *
    +     * The proposed refined search queries. They can be used to fetch the relevant
    +     * search results. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +     * refined_query from search response will be populated here.
    +     * 
    + * + * + * repeated .google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch refined_search = 6; + * + */ + public java.util.List< + com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch.Builder> + getRefinedSearchBuilderList() { + return getRefinedSearchFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch, + com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch.Builder, + com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearchOrBuilder> + getRefinedSearchFieldBuilder() { + if (refinedSearchBuilder_ == null) { + refinedSearchBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch, + com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch.Builder, + com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearchOrBuilder>( + refinedSearch_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + refinedSearch_ = null; + } + return refinedSearchBuilder_; + } + + private com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult + conversationalFilteringResult_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult, + com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.Builder, + com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResultOrBuilder> + conversationalFilteringResultBuilder_; + + /** + * + * + *
    +     * This field specifies all related information that is needed on client
    +     * side for UI rendering of conversational filtering search.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult conversational_filtering_result = 7; + * + * + * @return Whether the conversationalFilteringResult field is set. + */ + public boolean hasConversationalFilteringResult() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
    +     * This field specifies all related information that is needed on client
    +     * side for UI rendering of conversational filtering search.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult conversational_filtering_result = 7; + * + * + * @return The conversationalFilteringResult. + */ + public com.google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult + getConversationalFilteringResult() { + if (conversationalFilteringResultBuilder_ == null) { + return conversationalFilteringResult_ == null + ? com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.getDefaultInstance() + : conversationalFilteringResult_; + } else { + return conversationalFilteringResultBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * This field specifies all related information that is needed on client
    +     * side for UI rendering of conversational filtering search.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult conversational_filtering_result = 7; + * + */ + public Builder setConversationalFilteringResult( + com.google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult + value) { + if (conversationalFilteringResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + conversationalFilteringResult_ = value; + } else { + conversationalFilteringResultBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * This field specifies all related information that is needed on client
    +     * side for UI rendering of conversational filtering search.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult conversational_filtering_result = 7; + * + */ + public Builder setConversationalFilteringResult( + com.google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult + .Builder + builderForValue) { + if (conversationalFilteringResultBuilder_ == null) { + conversationalFilteringResult_ = builderForValue.build(); + } else { + conversationalFilteringResultBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * This field specifies all related information that is needed on client
    +     * side for UI rendering of conversational filtering search.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult conversational_filtering_result = 7; + * + */ + public Builder mergeConversationalFilteringResult( + com.google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult + value) { + if (conversationalFilteringResultBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && conversationalFilteringResult_ != null + && conversationalFilteringResult_ + != com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.getDefaultInstance()) { + getConversationalFilteringResultBuilder().mergeFrom(value); + } else { + conversationalFilteringResult_ = value; + } + } else { + conversationalFilteringResultBuilder_.mergeFrom(value); + } + if (conversationalFilteringResult_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * This field specifies all related information that is needed on client
    +     * side for UI rendering of conversational filtering search.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult conversational_filtering_result = 7; + * + */ + public Builder clearConversationalFilteringResult() { + bitField0_ = (bitField0_ & ~0x00000020); + conversationalFilteringResult_ = null; + if (conversationalFilteringResultBuilder_ != null) { + conversationalFilteringResultBuilder_.dispose(); + conversationalFilteringResultBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * This field specifies all related information that is needed on client
    +     * side for UI rendering of conversational filtering search.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult conversational_filtering_result = 7; + * + */ + public com.google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult + .Builder + getConversationalFilteringResultBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getConversationalFilteringResultFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * This field specifies all related information that is needed on client
    +     * side for UI rendering of conversational filtering search.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult conversational_filtering_result = 7; + * + */ + public com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResultOrBuilder + getConversationalFilteringResultOrBuilder() { + if (conversationalFilteringResultBuilder_ != null) { + return conversationalFilteringResultBuilder_.getMessageOrBuilder(); + } else { + return conversationalFilteringResult_ == null + ? com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.getDefaultInstance() + : conversationalFilteringResult_; + } + } + + /** + * + * + *
    +     * This field specifies all related information that is needed on client
    +     * side for UI rendering of conversational filtering search.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult conversational_filtering_result = 7; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult, + com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.Builder, + com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResultOrBuilder> + getConversationalFilteringResultFieldBuilder() { + if (conversationalFilteringResultBuilder_ == null) { + conversationalFilteringResultBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult, + com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResult.Builder, + com.google.cloud.retail.v2beta.ConversationalSearchResponse + .ConversationalFilteringResultOrBuilder>( + getConversationalFilteringResult(), getParentForChildren(), isClean()); + conversationalFilteringResult_ = null; + } + return conversationalFilteringResultBuilder_; + } + + private int state_ = 0; + + /** + * + * + *
    +     * Output only. The state of the response generation.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
    +     * Output only. The state of the response generation.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.State state = 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. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The state of the response generation.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.ConversationalSearchResponse.State getState() { + com.google.cloud.retail.v2beta.ConversationalSearchResponse.State result = + com.google.cloud.retail.v2beta.ConversationalSearchResponse.State.forNumber(state_); + return result == null + ? com.google.cloud.retail.v2beta.ConversationalSearchResponse.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
    +     * Output only. The state of the response generation.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState( + com.google.cloud.retail.v2beta.ConversationalSearchResponse.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The state of the response generation.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000040); + 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.retail.v2beta.ConversationalSearchResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2beta.ConversationalSearchResponse) + private static final com.google.cloud.retail.v2beta.ConversationalSearchResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.retail.v2beta.ConversationalSearchResponse(); + } + + public static com.google.cloud.retail.v2beta.ConversationalSearchResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConversationalSearchResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.retail.v2beta.ConversationalSearchResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ConversationalSearchResponseOrBuilder.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ConversationalSearchResponseOrBuilder.java new file mode 100644 index 000000000000..e2e6b516d31a --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ConversationalSearchResponseOrBuilder.java @@ -0,0 +1,400 @@ +/* + * 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/retail/v2beta/conversational_search_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.retail.v2beta; + +public interface ConversationalSearchResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2beta.ConversationalSearchResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The types Retail classifies the search query as.
    +   *
    +   * Supported values are:
    +   *
    +   * - "ORDER_SUPPORT"
    +   * - "SIMPLE_PRODUCT_SEARCH"
    +   * - "INTENT_REFINEMENT"
    +   * - "PRODUCT_DETAILS"
    +   * - "PRODUCT_COMPARISON"
    +   * - "DEALS_AND_COUPONS"
    +   * - "STORE_RELEVANT"
    +   * - "BLOCKLISTED"
    +   * - "BEST_PRODUCT"
    +   * - "RETAIL_SUPPORT"
    +   * - "DISABLED"
    +   * 
    + * + * repeated string user_query_types = 10; + * + * @return A list containing the userQueryTypes. + */ + java.util.List getUserQueryTypesList(); + + /** + * + * + *
    +   * The types Retail classifies the search query as.
    +   *
    +   * Supported values are:
    +   *
    +   * - "ORDER_SUPPORT"
    +   * - "SIMPLE_PRODUCT_SEARCH"
    +   * - "INTENT_REFINEMENT"
    +   * - "PRODUCT_DETAILS"
    +   * - "PRODUCT_COMPARISON"
    +   * - "DEALS_AND_COUPONS"
    +   * - "STORE_RELEVANT"
    +   * - "BLOCKLISTED"
    +   * - "BEST_PRODUCT"
    +   * - "RETAIL_SUPPORT"
    +   * - "DISABLED"
    +   * 
    + * + * repeated string user_query_types = 10; + * + * @return The count of userQueryTypes. + */ + int getUserQueryTypesCount(); + + /** + * + * + *
    +   * The types Retail classifies the search query as.
    +   *
    +   * Supported values are:
    +   *
    +   * - "ORDER_SUPPORT"
    +   * - "SIMPLE_PRODUCT_SEARCH"
    +   * - "INTENT_REFINEMENT"
    +   * - "PRODUCT_DETAILS"
    +   * - "PRODUCT_COMPARISON"
    +   * - "DEALS_AND_COUPONS"
    +   * - "STORE_RELEVANT"
    +   * - "BLOCKLISTED"
    +   * - "BEST_PRODUCT"
    +   * - "RETAIL_SUPPORT"
    +   * - "DISABLED"
    +   * 
    + * + * repeated string user_query_types = 10; + * + * @param index The index of the element to return. + * @return The userQueryTypes at the given index. + */ + java.lang.String getUserQueryTypes(int index); + + /** + * + * + *
    +   * The types Retail classifies the search query as.
    +   *
    +   * Supported values are:
    +   *
    +   * - "ORDER_SUPPORT"
    +   * - "SIMPLE_PRODUCT_SEARCH"
    +   * - "INTENT_REFINEMENT"
    +   * - "PRODUCT_DETAILS"
    +   * - "PRODUCT_COMPARISON"
    +   * - "DEALS_AND_COUPONS"
    +   * - "STORE_RELEVANT"
    +   * - "BLOCKLISTED"
    +   * - "BEST_PRODUCT"
    +   * - "RETAIL_SUPPORT"
    +   * - "DISABLED"
    +   * 
    + * + * repeated string user_query_types = 10; + * + * @param index The index of the value to return. + * @return The bytes of the userQueryTypes at the given index. + */ + com.google.protobuf.ByteString getUserQueryTypesBytes(int index); + + /** + * + * + *
    +   * The conversational answer-based text response generated by the Server.
    +   * 
    + * + * string conversational_text_response = 2; + * + * @return The conversationalTextResponse. + */ + java.lang.String getConversationalTextResponse(); + + /** + * + * + *
    +   * The conversational answer-based text response generated by the Server.
    +   * 
    + * + * string conversational_text_response = 2; + * + * @return The bytes for conversationalTextResponse. + */ + com.google.protobuf.ByteString getConversationalTextResponseBytes(); + + /** + * + * + *
    +   * The conversational followup question generated for Intent refinement.
    +   * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion followup_question = 3; + * + * + * @return Whether the followupQuestion field is set. + */ + boolean hasFollowupQuestion(); + + /** + * + * + *
    +   * The conversational followup question generated for Intent refinement.
    +   * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion followup_question = 3; + * + * + * @return The followupQuestion. + */ + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion + getFollowupQuestion(); + + /** + * + * + *
    +   * The conversational followup question generated for Intent refinement.
    +   * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestion followup_question = 3; + * + */ + com.google.cloud.retail.v2beta.ConversationalSearchResponse.FollowupQuestionOrBuilder + getFollowupQuestionOrBuilder(); + + /** + * + * + *
    +   * Conversation UUID. This field will be stored in client side storage to
    +   * maintain the conversation session with server and will be used for next
    +   * search request's
    +   * [ConversationalSearchRequest.conversation_id][google.cloud.retail.v2beta.ConversationalSearchRequest.conversation_id]
    +   * to restore conversation state in server.
    +   * 
    + * + * string conversation_id = 4; + * + * @return The conversationId. + */ + java.lang.String getConversationId(); + + /** + * + * + *
    +   * Conversation UUID. This field will be stored in client side storage to
    +   * maintain the conversation session with server and will be used for next
    +   * search request's
    +   * [ConversationalSearchRequest.conversation_id][google.cloud.retail.v2beta.ConversationalSearchRequest.conversation_id]
    +   * to restore conversation state in server.
    +   * 
    + * + * string conversation_id = 4; + * + * @return The bytes for conversationId. + */ + com.google.protobuf.ByteString getConversationIdBytes(); + + /** + * + * + *
    +   * The proposed refined search queries. They can be used to fetch the relevant
    +   * search results. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +   * refined_query from search response will be populated here.
    +   * 
    + * + * + * repeated .google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch refined_search = 6; + * + */ + java.util.List + getRefinedSearchList(); + + /** + * + * + *
    +   * The proposed refined search queries. They can be used to fetch the relevant
    +   * search results. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +   * refined_query from search response will be populated here.
    +   * 
    + * + * + * repeated .google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch refined_search = 6; + * + */ + com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch getRefinedSearch( + int index); + + /** + * + * + *
    +   * The proposed refined search queries. They can be used to fetch the relevant
    +   * search results. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +   * refined_query from search response will be populated here.
    +   * 
    + * + * + * repeated .google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch refined_search = 6; + * + */ + int getRefinedSearchCount(); + + /** + * + * + *
    +   * The proposed refined search queries. They can be used to fetch the relevant
    +   * search results. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +   * refined_query from search response will be populated here.
    +   * 
    + * + * + * repeated .google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch refined_search = 6; + * + */ + java.util.List< + ? extends + com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearchOrBuilder> + getRefinedSearchOrBuilderList(); + + /** + * + * + *
    +   * The proposed refined search queries. They can be used to fetch the relevant
    +   * search results. When using CONVERSATIONAL_FILTER_ONLY mode, the
    +   * refined_query from search response will be populated here.
    +   * 
    + * + * + * repeated .google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearch refined_search = 6; + * + */ + com.google.cloud.retail.v2beta.ConversationalSearchResponse.RefinedSearchOrBuilder + getRefinedSearchOrBuilder(int index); + + /** + * + * + *
    +   * This field specifies all related information that is needed on client
    +   * side for UI rendering of conversational filtering search.
    +   * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult conversational_filtering_result = 7; + * + * + * @return Whether the conversationalFilteringResult field is set. + */ + boolean hasConversationalFilteringResult(); + + /** + * + * + *
    +   * This field specifies all related information that is needed on client
    +   * side for UI rendering of conversational filtering search.
    +   * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult conversational_filtering_result = 7; + * + * + * @return The conversationalFilteringResult. + */ + com.google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult + getConversationalFilteringResult(); + + /** + * + * + *
    +   * This field specifies all related information that is needed on client
    +   * side for UI rendering of conversational filtering search.
    +   * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResult conversational_filtering_result = 7; + * + */ + com.google.cloud.retail.v2beta.ConversationalSearchResponse.ConversationalFilteringResultOrBuilder + getConversationalFilteringResultOrBuilder(); + + /** + * + * + *
    +   * Output only. The state of the response generation.
    +   * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
    +   * Output only. The state of the response generation.
    +   * 
    + * + * + * .google.cloud.retail.v2beta.ConversationalSearchResponse.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.retail.v2beta.ConversationalSearchResponse.State getState(); +} diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ConversationalSearchServiceProto.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ConversationalSearchServiceProto.java new file mode 100644 index 000000000000..3130779300a7 --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ConversationalSearchServiceProto.java @@ -0,0 +1,349 @@ +/* + * 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/retail/v2beta/conversational_search_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.retail.v2beta; + +public final class ConversationalSearchServiceProto { + private ConversationalSearchServiceProto() {} + + 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_retail_v2beta_ConversationalSearchRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_SearchParams_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_SearchParams_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_UserAnswer_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_UserAnswer_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_UserAnswer_SelectedAnswer_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_UserAnswer_SelectedAnswer_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_ConversationalFilteringSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_ConversationalFilteringSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_UserLabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_UserLabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_FollowupQuestion_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_FollowupQuestion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_FollowupQuestion_SuggestedAnswer_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_FollowupQuestion_SuggestedAnswer_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_RefinedSearch_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_RefinedSearch_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_ConversationalFilteringResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_ConversationalFilteringResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_ConversationalFilteringResult_AdditionalFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_ConversationalFilteringResult_AdditionalFilter_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/retail/v2beta/conversatio" + + "nal_search_service.proto\022\032google.cloud.r" + + "etail.v2beta\032\034google/api/annotations.pro" + + "to\032\027google/api/client.proto\032\037google/api/" + + "field_behavior.proto\032\031google/api/resourc" + + "e.proto\032\'google/cloud/retail/v2beta/comm" + + "on.proto\032\'google/cloud/retail/v2beta/saf" + + "ety.proto\032/google/cloud/retail/v2beta/se" + + "arch_service.proto\"\227\014\n\033ConversationalSea" + + "rchRequest\022\026\n\tplacement\030\001 \001(\tB\003\340A\002\0224\n\006br" + + "anch\030\002 \001(\tB$\340A\002\372A\036\n\034retail.googleapis.co" + + "m/Branch\022\022\n\005query\030\003 \001(\tB\003\340A\001\022\034\n\017page_cat" + + "egories\030\004 \003(\tB\003\340A\001\022\034\n\017conversation_id\030\005 " + + "\001(\tB\003\340A\001\022`\n\rsearch_params\030\006 \001(\0132D.google" + + ".cloud.retail.v2beta.ConversationalSearc" + + "hRequest.SearchParamsB\003\340A\001\022\027\n\nvisitor_id" + + "\030\t \001(\tB\003\340A\002\022<\n\tuser_info\030\007 \001(\0132$.google." + + "cloud.retail.v2beta.UserInfoB\003\340A\001\022\177\n\035con" + + "versational_filtering_spec\030\010 \001(\0132S.googl" + + "e.cloud.retail.v2beta.ConversationalSear" + + "chRequest.ConversationalFilteringSpecB\003\340" + + "A\001\022a\n\013user_labels\030\014 \003(\0132G.google.cloud.r" + + "etail.v2beta.ConversationalSearchRequest" + + ".UserLabelsEntryB\003\340A\001\022G\n\017safety_settings" + + "\030\016 \003(\0132).google.cloud.retail.v2beta.Safe" + + "tySettingB\003\340A\001\032\246\001\n\014SearchParams\022\023\n\006filte" + + "r\030\001 \001(\tB\003\340A\001\022\035\n\020canonical_filter\030\002 \001(\tB\003" + + "\340A\001\022\024\n\007sort_by\030\003 \001(\tB\003\340A\001\022L\n\nboost_spec\030" + + "\004 \001(\01323.google.cloud.retail.v2beta.Searc" + + "hRequest.BoostSpecB\003\340A\001\032\211\002\n\nUserAnswer\022\025" + + "\n\013text_answer\030\001 \001(\tH\000\022q\n\017selected_answer" + + "\030\002 \001(\0132Q.google.cloud.retail.v2beta.Conv" + + "ersationalSearchRequest.UserAnswer.Selec" + + "tedAnswerB\003\340A\001H\000\032i\n\016SelectedAnswer\022W\n\027pr" + + "oduct_attribute_value\030\001 \001(\01321.google.clo" + + "ud.retail.v2beta.ProductAttributeValueB\003" + + "\340A\001B\006\n\004type\032\213\003\n\033ConversationalFilteringS" + + "pec\022.\n\037enable_conversational_filtering\030\001" + + " \001(\010B\005\030\001\340A\001\022\\\n\013user_answer\030\002 \001(\0132B.googl" + + "e.cloud.retail.v2beta.ConversationalSear" + + "chRequest.UserAnswerB\003\340A\001\022\204\001\n\035conversati" + + "onal_filtering_mode\030\004 \001(\0162X.google.cloud" + + ".retail.v2beta.ConversationalSearchReque" + + "st.ConversationalFilteringSpec.ModeB\003\340A\001" + + "\"W\n\004Mode\022\024\n\020MODE_UNSPECIFIED\020\000\022\014\n\010DISABL" + + "ED\020\001\022\013\n\007ENABLED\020\002\022\036\n\032CONVERSATIONAL_FILT" + + "ER_ONLY\020\003\0321\n\017UserLabelsEntry\022\013\n\003key\030\001 \001(" + + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\362\t\n\034ConversationalS" + + "earchResponse\022\030\n\020user_query_types\030\n \003(\t\022" + + "$\n\034conversational_text_response\030\002 \001(\t\022d\n" + + "\021followup_question\030\003 \001(\0132I.google.cloud." + + "retail.v2beta.ConversationalSearchRespon" + + "se.FollowupQuestion\022\027\n\017conversation_id\030\004" + + " \001(\t\022^\n\016refined_search\030\006 \003(\0132F.google.cl" + + "oud.retail.v2beta.ConversationalSearchRe" + + "sponse.RefinedSearch\022\177\n\037conversational_f" + + "iltering_result\030\007 \001(\0132V.google.cloud.ret" + + "ail.v2beta.ConversationalSearchResponse." + + "ConversationalFilteringResult\022R\n\005state\030\t" + + " \001(\0162>.google.cloud.retail.v2beta.Conver" + + "sationalSearchResponse.StateB\003\340A\003\032\212\002\n\020Fo" + + "llowupQuestion\022\031\n\021followup_question\030\001 \001(" + + "\t\022t\n\021suggested_answers\030\002 \003(\0132Y.google.cl" + + "oud.retail.v2beta.ConversationalSearchRe" + + "sponse.FollowupQuestion.SuggestedAnswer\032" + + "e\n\017SuggestedAnswer\022R\n\027product_attribute_" + + "value\030\001 \001(\01321.google.cloud.retail.v2beta" + + ".ProductAttributeValue\032\036\n\rRefinedSearch\022" + + "\r\n\005query\030\001 \001(\t\032\362\002\n\035ConversationalFilteri" + + "ngResult\022d\n\021followup_question\030\001 \001(\0132I.go" + + "ogle.cloud.retail.v2beta.ConversationalS" + + "earchResponse.FollowupQuestion\022\202\001\n\021addit" + + "ional_filter\030\002 \001(\0132g.google.cloud.retail" + + ".v2beta.ConversationalSearchResponse.Con" + + "versationalFilteringResult.AdditionalFil" + + "ter\032f\n\020AdditionalFilter\022R\n\027product_attri" + + "bute_value\030\001 \001(\01321.google.cloud.retail.v" + + "2beta.ProductAttributeValue\"<\n\005State\022\025\n\021" + + "STATE_UNSPECIFIED\020\000\022\r\n\tSTREAMING\020\001\022\r\n\tSU" + + "CCEEDED\020\0022\276\003\n\033ConversationalSearchServic" + + "e\022\323\002\n\024ConversationalSearch\0227.google.clou" + + "d.retail.v2beta.ConversationalSearchRequ" + + "est\0328.google.cloud.retail.v2beta.Convers" + + "ationalSearchResponse\"\305\001\202\323\344\223\002\276\001\"W/v2beta" + + "/{placement=projects/*/locations/*/catal" + + "ogs/*/placements/*}:conversationalSearch" + + ":\001*Z`\"[/v2beta/{placement=projects/*/loc" + + "ations/*/catalogs/*/servingConfigs/*}:co" + + "nversationalSearch:\001*0\001\032I\312A\025retail.googl" + + "eapis.com\322A.https://www.googleapis.com/a" + + "uth/cloud-platformB\337\001\n\036com.google.cloud." + + "retail.v2betaB ConversationalSearchServi" + + "ceProtoP\001Z6cloud.google.com/go/retail/ap" + + "iv2beta/retailpb;retailpb\242\002\006RETAIL\252\002\032Goo" + + "gle.Cloud.Retail.V2Beta\312\002\032Google\\Cloud\\R" + + "etail\\V2beta\352\002\035Google::Cloud::Retail::V2" + + "betab\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.retail.v2beta.CommonProto.getDescriptor(), + com.google.cloud.retail.v2beta.SafetyProto.getDescriptor(), + com.google.cloud.retail.v2beta.SearchServiceProto.getDescriptor(), + }); + internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_descriptor, + new java.lang.String[] { + "Placement", + "Branch", + "Query", + "PageCategories", + "ConversationId", + "SearchParams", + "VisitorId", + "UserInfo", + "ConversationalFilteringSpec", + "UserLabels", + "SafetySettings", + }); + internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_SearchParams_descriptor = + internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_SearchParams_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_SearchParams_descriptor, + new java.lang.String[] { + "Filter", "CanonicalFilter", "SortBy", "BoostSpec", + }); + internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_UserAnswer_descriptor = + internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_UserAnswer_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_UserAnswer_descriptor, + new java.lang.String[] { + "TextAnswer", "SelectedAnswer", "Type", + }); + internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_UserAnswer_SelectedAnswer_descriptor = + internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_UserAnswer_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_UserAnswer_SelectedAnswer_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_UserAnswer_SelectedAnswer_descriptor, + new java.lang.String[] { + "ProductAttributeValue", + }); + internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_ConversationalFilteringSpec_descriptor = + internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_ConversationalFilteringSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_ConversationalFilteringSpec_descriptor, + new java.lang.String[] { + "EnableConversationalFiltering", "UserAnswer", "ConversationalFilteringMode", + }); + internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_UserLabelsEntry_descriptor = + internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_descriptor + .getNestedTypes() + .get(3); + internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_UserLabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2beta_ConversationalSearchRequest_UserLabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_descriptor, + new java.lang.String[] { + "UserQueryTypes", + "ConversationalTextResponse", + "FollowupQuestion", + "ConversationId", + "RefinedSearch", + "ConversationalFilteringResult", + "State", + }); + internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_FollowupQuestion_descriptor = + internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_FollowupQuestion_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_FollowupQuestion_descriptor, + new java.lang.String[] { + "FollowupQuestion", "SuggestedAnswers", + }); + internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_FollowupQuestion_SuggestedAnswer_descriptor = + internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_FollowupQuestion_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_FollowupQuestion_SuggestedAnswer_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_FollowupQuestion_SuggestedAnswer_descriptor, + new java.lang.String[] { + "ProductAttributeValue", + }); + internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_RefinedSearch_descriptor = + internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_RefinedSearch_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_RefinedSearch_descriptor, + new java.lang.String[] { + "Query", + }); + internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_ConversationalFilteringResult_descriptor = + internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_ConversationalFilteringResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_ConversationalFilteringResult_descriptor, + new java.lang.String[] { + "FollowupQuestion", "AdditionalFilter", + }); + internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_ConversationalFilteringResult_AdditionalFilter_descriptor = + internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_ConversationalFilteringResult_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_ConversationalFilteringResult_AdditionalFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2beta_ConversationalSearchResponse_ConversationalFilteringResult_AdditionalFilter_descriptor, + new java.lang.String[] { + "ProductAttributeValue", + }); + 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.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + 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.retail.v2beta.CommonProto.getDescriptor(); + com.google.cloud.retail.v2beta.SafetyProto.getDescriptor(); + com.google.cloud.retail.v2beta.SearchServiceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/HarmCategory.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/HarmCategory.java new file mode 100644 index 000000000000..73d9354777eb --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/HarmCategory.java @@ -0,0 +1,248 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/retail/v2beta/safety.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.retail.v2beta; + +/** + * + * + *
    + * Harm categories that will block the content.
    + * 
    + * + * Protobuf enum {@code google.cloud.retail.v2beta.HarmCategory} + */ +public enum HarmCategory implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +   * The harm category is unspecified.
    +   * 
    + * + * HARM_CATEGORY_UNSPECIFIED = 0; + */ + HARM_CATEGORY_UNSPECIFIED(0), + /** + * + * + *
    +   * The harm category is hate speech.
    +   * 
    + * + * HARM_CATEGORY_HATE_SPEECH = 1; + */ + HARM_CATEGORY_HATE_SPEECH(1), + /** + * + * + *
    +   * The harm category is dangerous content.
    +   * 
    + * + * HARM_CATEGORY_DANGEROUS_CONTENT = 2; + */ + HARM_CATEGORY_DANGEROUS_CONTENT(2), + /** + * + * + *
    +   * The harm category is harassment.
    +   * 
    + * + * HARM_CATEGORY_HARASSMENT = 3; + */ + HARM_CATEGORY_HARASSMENT(3), + /** + * + * + *
    +   * The harm category is sexually explicit content.
    +   * 
    + * + * HARM_CATEGORY_SEXUALLY_EXPLICIT = 4; + */ + HARM_CATEGORY_SEXUALLY_EXPLICIT(4), + /** + * + * + *
    +   * The harm category is civic integrity.
    +   * 
    + * + * HARM_CATEGORY_CIVIC_INTEGRITY = 5; + */ + HARM_CATEGORY_CIVIC_INTEGRITY(5), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +   * The harm category is unspecified.
    +   * 
    + * + * HARM_CATEGORY_UNSPECIFIED = 0; + */ + public static final int HARM_CATEGORY_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +   * The harm category is hate speech.
    +   * 
    + * + * HARM_CATEGORY_HATE_SPEECH = 1; + */ + public static final int HARM_CATEGORY_HATE_SPEECH_VALUE = 1; + + /** + * + * + *
    +   * The harm category is dangerous content.
    +   * 
    + * + * HARM_CATEGORY_DANGEROUS_CONTENT = 2; + */ + public static final int HARM_CATEGORY_DANGEROUS_CONTENT_VALUE = 2; + + /** + * + * + *
    +   * The harm category is harassment.
    +   * 
    + * + * HARM_CATEGORY_HARASSMENT = 3; + */ + public static final int HARM_CATEGORY_HARASSMENT_VALUE = 3; + + /** + * + * + *
    +   * The harm category is sexually explicit content.
    +   * 
    + * + * HARM_CATEGORY_SEXUALLY_EXPLICIT = 4; + */ + public static final int HARM_CATEGORY_SEXUALLY_EXPLICIT_VALUE = 4; + + /** + * + * + *
    +   * The harm category is civic integrity.
    +   * 
    + * + * HARM_CATEGORY_CIVIC_INTEGRITY = 5; + */ + public static final int HARM_CATEGORY_CIVIC_INTEGRITY_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static HarmCategory 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 HarmCategory forNumber(int value) { + switch (value) { + case 0: + return HARM_CATEGORY_UNSPECIFIED; + case 1: + return HARM_CATEGORY_HATE_SPEECH; + case 2: + return HARM_CATEGORY_DANGEROUS_CONTENT; + case 3: + return HARM_CATEGORY_HARASSMENT; + case 4: + return HARM_CATEGORY_SEXUALLY_EXPLICIT; + case 5: + return HARM_CATEGORY_CIVIC_INTEGRITY; + 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 HarmCategory findValueByNumber(int number) { + return HarmCategory.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.retail.v2beta.SafetyProto.getDescriptor().getEnumTypes().get(0); + } + + private static final HarmCategory[] VALUES = values(); + + public static HarmCategory 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 HarmCategory(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.retail.v2beta.HarmCategory) +} diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/SafetyProto.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/SafetyProto.java new file mode 100644 index 000000000000..ac8126d430b3 --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/SafetyProto.java @@ -0,0 +1,94 @@ +/* + * 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/retail/v2beta/safety.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.retail.v2beta; + +public final class SafetyProto { + private SafetyProto() {} + + 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_retail_v2beta_SafetySetting_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2beta_SafetySetting_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/retail/v2beta/safety.prot" + + "o\022\032google.cloud.retail.v2beta\032\037google/ap" + + "i/field_behavior.proto\"\341\003\n\rSafetySetting" + + "\022:\n\010category\030\001 \001(\0162(.google.cloud.retail" + + ".v2beta.HarmCategory\022O\n\tthreshold\030\002 \001(\0162" + + "<.google.cloud.retail.v2beta.SafetySetti" + + "ng.HarmBlockThreshold\022N\n\006method\030\003 \001(\01629." + + "google.cloud.retail.v2beta.SafetySetting" + + ".HarmBlockMethodB\003\340A\001\"\235\001\n\022HarmBlockThres" + + "hold\022$\n HARM_BLOCK_THRESHOLD_UNSPECIFIED" + + "\020\000\022\027\n\023BLOCK_LOW_AND_ABOVE\020\001\022\032\n\026BLOCK_MED" + + "IUM_AND_ABOVE\020\002\022\023\n\017BLOCK_ONLY_HIGH\020\003\022\016\n\n" + + "BLOCK_NONE\020\004\022\007\n\003OFF\020\005\"S\n\017HarmBlockMethod" + + "\022!\n\035HARM_BLOCK_METHOD_UNSPECIFIED\020\000\022\014\n\010S" + + "EVERITY\020\001\022\017\n\013PROBABILITY\020\002*\327\001\n\014HarmCateg" + + "ory\022\035\n\031HARM_CATEGORY_UNSPECIFIED\020\000\022\035\n\031HA" + + "RM_CATEGORY_HATE_SPEECH\020\001\022#\n\037HARM_CATEGO" + + "RY_DANGEROUS_CONTENT\020\002\022\034\n\030HARM_CATEGORY_" + + "HARASSMENT\020\003\022#\n\037HARM_CATEGORY_SEXUALLY_E" + + "XPLICIT\020\004\022!\n\035HARM_CATEGORY_CIVIC_INTEGRI" + + "TY\020\005B\312\001\n\036com.google.cloud.retail.v2betaB" + + "\013SafetyProtoP\001Z6cloud.google.com/go/reta" + + "il/apiv2beta/retailpb;retailpb\242\002\006RETAIL\252" + + "\002\032Google.Cloud.Retail.V2Beta\312\002\032Google\\Cl" + + "oud\\Retail\\V2beta\352\002\035Google::Cloud::Retai" + + "l::V2betab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + }); + internal_static_google_cloud_retail_v2beta_SafetySetting_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_retail_v2beta_SafetySetting_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2beta_SafetySetting_descriptor, + new java.lang.String[] { + "Category", "Threshold", "Method", + }); + 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-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/SafetySetting.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/SafetySetting.java new file mode 100644 index 000000000000..de13060bd0af --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/SafetySetting.java @@ -0,0 +1,1345 @@ +/* + * 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/retail/v2beta/safety.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.retail.v2beta; + +/** + * + * + *
    + * Safety settings.
    + * 
    + * + * Protobuf type {@code google.cloud.retail.v2beta.SafetySetting} + */ +public final class SafetySetting extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2beta.SafetySetting) + SafetySettingOrBuilder { + private static final long serialVersionUID = 0L; + + // Use SafetySetting.newBuilder() to construct. + private SafetySetting(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SafetySetting() { + category_ = 0; + threshold_ = 0; + method_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SafetySetting(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2beta.SafetyProto + .internal_static_google_cloud_retail_v2beta_SafetySetting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2beta.SafetyProto + .internal_static_google_cloud_retail_v2beta_SafetySetting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2beta.SafetySetting.class, + com.google.cloud.retail.v2beta.SafetySetting.Builder.class); + } + + /** + * + * + *
    +   * Probability based thresholds levels for blocking.
    +   * 
    + * + * Protobuf enum {@code google.cloud.retail.v2beta.SafetySetting.HarmBlockThreshold} + */ + public enum HarmBlockThreshold implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Unspecified harm block threshold.
    +     * 
    + * + * HARM_BLOCK_THRESHOLD_UNSPECIFIED = 0; + */ + HARM_BLOCK_THRESHOLD_UNSPECIFIED(0), + /** + * + * + *
    +     * Block low threshold and above (i.e. block more).
    +     * 
    + * + * BLOCK_LOW_AND_ABOVE = 1; + */ + BLOCK_LOW_AND_ABOVE(1), + /** + * + * + *
    +     * Block medium threshold and above.
    +     * 
    + * + * BLOCK_MEDIUM_AND_ABOVE = 2; + */ + BLOCK_MEDIUM_AND_ABOVE(2), + /** + * + * + *
    +     * Block only high threshold (i.e. block less).
    +     * 
    + * + * BLOCK_ONLY_HIGH = 3; + */ + BLOCK_ONLY_HIGH(3), + /** + * + * + *
    +     * Block none.
    +     * 
    + * + * BLOCK_NONE = 4; + */ + BLOCK_NONE(4), + /** + * + * + *
    +     * Turn off the safety filter.
    +     * 
    + * + * OFF = 5; + */ + OFF(5), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * Unspecified harm block threshold.
    +     * 
    + * + * HARM_BLOCK_THRESHOLD_UNSPECIFIED = 0; + */ + public static final int HARM_BLOCK_THRESHOLD_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +     * Block low threshold and above (i.e. block more).
    +     * 
    + * + * BLOCK_LOW_AND_ABOVE = 1; + */ + public static final int BLOCK_LOW_AND_ABOVE_VALUE = 1; + + /** + * + * + *
    +     * Block medium threshold and above.
    +     * 
    + * + * BLOCK_MEDIUM_AND_ABOVE = 2; + */ + public static final int BLOCK_MEDIUM_AND_ABOVE_VALUE = 2; + + /** + * + * + *
    +     * Block only high threshold (i.e. block less).
    +     * 
    + * + * BLOCK_ONLY_HIGH = 3; + */ + public static final int BLOCK_ONLY_HIGH_VALUE = 3; + + /** + * + * + *
    +     * Block none.
    +     * 
    + * + * BLOCK_NONE = 4; + */ + public static final int BLOCK_NONE_VALUE = 4; + + /** + * + * + *
    +     * Turn off the safety filter.
    +     * 
    + * + * OFF = 5; + */ + public static final int OFF_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static HarmBlockThreshold 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 HarmBlockThreshold forNumber(int value) { + switch (value) { + case 0: + return HARM_BLOCK_THRESHOLD_UNSPECIFIED; + case 1: + return BLOCK_LOW_AND_ABOVE; + case 2: + return BLOCK_MEDIUM_AND_ABOVE; + case 3: + return BLOCK_ONLY_HIGH; + case 4: + return BLOCK_NONE; + case 5: + return OFF; + 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 HarmBlockThreshold findValueByNumber(int number) { + return HarmBlockThreshold.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.retail.v2beta.SafetySetting.getDescriptor().getEnumTypes().get(0); + } + + private static final HarmBlockThreshold[] VALUES = values(); + + public static HarmBlockThreshold 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 HarmBlockThreshold(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.retail.v2beta.SafetySetting.HarmBlockThreshold) + } + + /** + * + * + *
    +   * Probability vs severity.
    +   * 
    + * + * Protobuf enum {@code google.cloud.retail.v2beta.SafetySetting.HarmBlockMethod} + */ + public enum HarmBlockMethod implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * The harm block method is unspecified.
    +     * 
    + * + * HARM_BLOCK_METHOD_UNSPECIFIED = 0; + */ + HARM_BLOCK_METHOD_UNSPECIFIED(0), + /** + * + * + *
    +     * The harm block method uses both probability and severity scores.
    +     * 
    + * + * SEVERITY = 1; + */ + SEVERITY(1), + /** + * + * + *
    +     * The harm block method uses the probability score.
    +     * 
    + * + * PROBABILITY = 2; + */ + PROBABILITY(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * The harm block method is unspecified.
    +     * 
    + * + * HARM_BLOCK_METHOD_UNSPECIFIED = 0; + */ + public static final int HARM_BLOCK_METHOD_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +     * The harm block method uses both probability and severity scores.
    +     * 
    + * + * SEVERITY = 1; + */ + public static final int SEVERITY_VALUE = 1; + + /** + * + * + *
    +     * The harm block method uses the probability score.
    +     * 
    + * + * PROBABILITY = 2; + */ + public static final int PROBABILITY_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 HarmBlockMethod 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 HarmBlockMethod forNumber(int value) { + switch (value) { + case 0: + return HARM_BLOCK_METHOD_UNSPECIFIED; + case 1: + return SEVERITY; + case 2: + return PROBABILITY; + 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 HarmBlockMethod findValueByNumber(int number) { + return HarmBlockMethod.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.retail.v2beta.SafetySetting.getDescriptor().getEnumTypes().get(1); + } + + private static final HarmBlockMethod[] VALUES = values(); + + public static HarmBlockMethod 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 HarmBlockMethod(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.retail.v2beta.SafetySetting.HarmBlockMethod) + } + + public static final int CATEGORY_FIELD_NUMBER = 1; + private int category_ = 0; + + /** + * + * + *
    +   * Harm category.
    +   * 
    + * + * .google.cloud.retail.v2beta.HarmCategory category = 1; + * + * @return The enum numeric value on the wire for category. + */ + @java.lang.Override + public int getCategoryValue() { + return category_; + } + + /** + * + * + *
    +   * Harm category.
    +   * 
    + * + * .google.cloud.retail.v2beta.HarmCategory category = 1; + * + * @return The category. + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.HarmCategory getCategory() { + com.google.cloud.retail.v2beta.HarmCategory result = + com.google.cloud.retail.v2beta.HarmCategory.forNumber(category_); + return result == null ? com.google.cloud.retail.v2beta.HarmCategory.UNRECOGNIZED : result; + } + + public static final int THRESHOLD_FIELD_NUMBER = 2; + private int threshold_ = 0; + + /** + * + * + *
    +   * The harm block threshold.
    +   * 
    + * + * .google.cloud.retail.v2beta.SafetySetting.HarmBlockThreshold threshold = 2; + * + * @return The enum numeric value on the wire for threshold. + */ + @java.lang.Override + public int getThresholdValue() { + return threshold_; + } + + /** + * + * + *
    +   * The harm block threshold.
    +   * 
    + * + * .google.cloud.retail.v2beta.SafetySetting.HarmBlockThreshold threshold = 2; + * + * @return The threshold. + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.SafetySetting.HarmBlockThreshold getThreshold() { + com.google.cloud.retail.v2beta.SafetySetting.HarmBlockThreshold result = + com.google.cloud.retail.v2beta.SafetySetting.HarmBlockThreshold.forNumber(threshold_); + return result == null + ? com.google.cloud.retail.v2beta.SafetySetting.HarmBlockThreshold.UNRECOGNIZED + : result; + } + + public static final int METHOD_FIELD_NUMBER = 3; + private int method_ = 0; + + /** + * + * + *
    +   * Optional. Specify if the threshold is used for probability or severity
    +   * score. If not specified, the threshold is used for probability score.
    +   * 
    + * + * + * .google.cloud.retail.v2beta.SafetySetting.HarmBlockMethod method = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for method. + */ + @java.lang.Override + public int getMethodValue() { + return method_; + } + + /** + * + * + *
    +   * Optional. Specify if the threshold is used for probability or severity
    +   * score. If not specified, the threshold is used for probability score.
    +   * 
    + * + * + * .google.cloud.retail.v2beta.SafetySetting.HarmBlockMethod method = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The method. + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.SafetySetting.HarmBlockMethod getMethod() { + com.google.cloud.retail.v2beta.SafetySetting.HarmBlockMethod result = + com.google.cloud.retail.v2beta.SafetySetting.HarmBlockMethod.forNumber(method_); + return result == null + ? com.google.cloud.retail.v2beta.SafetySetting.HarmBlockMethod.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 (category_ + != com.google.cloud.retail.v2beta.HarmCategory.HARM_CATEGORY_UNSPECIFIED.getNumber()) { + output.writeEnum(1, category_); + } + if (threshold_ + != com.google.cloud.retail.v2beta.SafetySetting.HarmBlockThreshold + .HARM_BLOCK_THRESHOLD_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, threshold_); + } + if (method_ + != com.google.cloud.retail.v2beta.SafetySetting.HarmBlockMethod + .HARM_BLOCK_METHOD_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, method_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (category_ + != com.google.cloud.retail.v2beta.HarmCategory.HARM_CATEGORY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, category_); + } + if (threshold_ + != com.google.cloud.retail.v2beta.SafetySetting.HarmBlockThreshold + .HARM_BLOCK_THRESHOLD_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, threshold_); + } + if (method_ + != com.google.cloud.retail.v2beta.SafetySetting.HarmBlockMethod + .HARM_BLOCK_METHOD_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, method_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.retail.v2beta.SafetySetting)) { + return super.equals(obj); + } + com.google.cloud.retail.v2beta.SafetySetting other = + (com.google.cloud.retail.v2beta.SafetySetting) obj; + + if (category_ != other.category_) return false; + if (threshold_ != other.threshold_) return false; + if (method_ != other.method_) 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) + CATEGORY_FIELD_NUMBER; + hash = (53 * hash) + category_; + hash = (37 * hash) + THRESHOLD_FIELD_NUMBER; + hash = (53 * hash) + threshold_; + hash = (37 * hash) + METHOD_FIELD_NUMBER; + hash = (53 * hash) + method_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2beta.SafetySetting parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.SafetySetting 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.retail.v2beta.SafetySetting parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.SafetySetting parseFrom( + 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.retail.v2beta.SafetySetting parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.SafetySetting parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.SafetySetting parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.SafetySetting 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.retail.v2beta.SafetySetting parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.SafetySetting 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.retail.v2beta.SafetySetting parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.SafetySetting 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.retail.v2beta.SafetySetting prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
    +   * Safety settings.
    +   * 
    + * + * Protobuf type {@code google.cloud.retail.v2beta.SafetySetting} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2beta.SafetySetting) + com.google.cloud.retail.v2beta.SafetySettingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2beta.SafetyProto + .internal_static_google_cloud_retail_v2beta_SafetySetting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2beta.SafetyProto + .internal_static_google_cloud_retail_v2beta_SafetySetting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2beta.SafetySetting.class, + com.google.cloud.retail.v2beta.SafetySetting.Builder.class); + } + + // Construct using com.google.cloud.retail.v2beta.SafetySetting.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + category_ = 0; + threshold_ = 0; + method_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2beta.SafetyProto + .internal_static_google_cloud_retail_v2beta_SafetySetting_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.SafetySetting getDefaultInstanceForType() { + return com.google.cloud.retail.v2beta.SafetySetting.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.SafetySetting build() { + com.google.cloud.retail.v2beta.SafetySetting result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.SafetySetting buildPartial() { + com.google.cloud.retail.v2beta.SafetySetting result = + new com.google.cloud.retail.v2beta.SafetySetting(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.retail.v2beta.SafetySetting result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.category_ = category_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.threshold_ = threshold_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.method_ = method_; + } + } + + @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.retail.v2beta.SafetySetting) { + return mergeFrom((com.google.cloud.retail.v2beta.SafetySetting) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.retail.v2beta.SafetySetting other) { + if (other == com.google.cloud.retail.v2beta.SafetySetting.getDefaultInstance()) return this; + if (other.category_ != 0) { + setCategoryValue(other.getCategoryValue()); + } + if (other.threshold_ != 0) { + setThresholdValue(other.getThresholdValue()); + } + if (other.method_ != 0) { + setMethodValue(other.getMethodValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + category_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + threshold_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + method_ = 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 int category_ = 0; + + /** + * + * + *
    +     * Harm category.
    +     * 
    + * + * .google.cloud.retail.v2beta.HarmCategory category = 1; + * + * @return The enum numeric value on the wire for category. + */ + @java.lang.Override + public int getCategoryValue() { + return category_; + } + + /** + * + * + *
    +     * Harm category.
    +     * 
    + * + * .google.cloud.retail.v2beta.HarmCategory category = 1; + * + * @param value The enum numeric value on the wire for category to set. + * @return This builder for chaining. + */ + public Builder setCategoryValue(int value) { + category_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Harm category.
    +     * 
    + * + * .google.cloud.retail.v2beta.HarmCategory category = 1; + * + * @return The category. + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.HarmCategory getCategory() { + com.google.cloud.retail.v2beta.HarmCategory result = + com.google.cloud.retail.v2beta.HarmCategory.forNumber(category_); + return result == null ? com.google.cloud.retail.v2beta.HarmCategory.UNRECOGNIZED : result; + } + + /** + * + * + *
    +     * Harm category.
    +     * 
    + * + * .google.cloud.retail.v2beta.HarmCategory category = 1; + * + * @param value The category to set. + * @return This builder for chaining. + */ + public Builder setCategory(com.google.cloud.retail.v2beta.HarmCategory value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + category_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Harm category.
    +     * 
    + * + * .google.cloud.retail.v2beta.HarmCategory category = 1; + * + * @return This builder for chaining. + */ + public Builder clearCategory() { + bitField0_ = (bitField0_ & ~0x00000001); + category_ = 0; + onChanged(); + return this; + } + + private int threshold_ = 0; + + /** + * + * + *
    +     * The harm block threshold.
    +     * 
    + * + * .google.cloud.retail.v2beta.SafetySetting.HarmBlockThreshold threshold = 2; + * + * @return The enum numeric value on the wire for threshold. + */ + @java.lang.Override + public int getThresholdValue() { + return threshold_; + } + + /** + * + * + *
    +     * The harm block threshold.
    +     * 
    + * + * .google.cloud.retail.v2beta.SafetySetting.HarmBlockThreshold threshold = 2; + * + * @param value The enum numeric value on the wire for threshold to set. + * @return This builder for chaining. + */ + public Builder setThresholdValue(int value) { + threshold_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * The harm block threshold.
    +     * 
    + * + * .google.cloud.retail.v2beta.SafetySetting.HarmBlockThreshold threshold = 2; + * + * @return The threshold. + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.SafetySetting.HarmBlockThreshold getThreshold() { + com.google.cloud.retail.v2beta.SafetySetting.HarmBlockThreshold result = + com.google.cloud.retail.v2beta.SafetySetting.HarmBlockThreshold.forNumber(threshold_); + return result == null + ? com.google.cloud.retail.v2beta.SafetySetting.HarmBlockThreshold.UNRECOGNIZED + : result; + } + + /** + * + * + *
    +     * The harm block threshold.
    +     * 
    + * + * .google.cloud.retail.v2beta.SafetySetting.HarmBlockThreshold threshold = 2; + * + * @param value The threshold to set. + * @return This builder for chaining. + */ + public Builder setThreshold( + com.google.cloud.retail.v2beta.SafetySetting.HarmBlockThreshold value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + threshold_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +     * The harm block threshold.
    +     * 
    + * + * .google.cloud.retail.v2beta.SafetySetting.HarmBlockThreshold threshold = 2; + * + * @return This builder for chaining. + */ + public Builder clearThreshold() { + bitField0_ = (bitField0_ & ~0x00000002); + threshold_ = 0; + onChanged(); + return this; + } + + private int method_ = 0; + + /** + * + * + *
    +     * Optional. Specify if the threshold is used for probability or severity
    +     * score. If not specified, the threshold is used for probability score.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.SafetySetting.HarmBlockMethod method = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for method. + */ + @java.lang.Override + public int getMethodValue() { + return method_; + } + + /** + * + * + *
    +     * Optional. Specify if the threshold is used for probability or severity
    +     * score. If not specified, the threshold is used for probability score.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.SafetySetting.HarmBlockMethod method = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for method to set. + * @return This builder for chaining. + */ + public Builder setMethodValue(int value) { + method_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Specify if the threshold is used for probability or severity
    +     * score. If not specified, the threshold is used for probability score.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.SafetySetting.HarmBlockMethod method = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The method. + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.SafetySetting.HarmBlockMethod getMethod() { + com.google.cloud.retail.v2beta.SafetySetting.HarmBlockMethod result = + com.google.cloud.retail.v2beta.SafetySetting.HarmBlockMethod.forNumber(method_); + return result == null + ? com.google.cloud.retail.v2beta.SafetySetting.HarmBlockMethod.UNRECOGNIZED + : result; + } + + /** + * + * + *
    +     * Optional. Specify if the threshold is used for probability or severity
    +     * score. If not specified, the threshold is used for probability score.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.SafetySetting.HarmBlockMethod method = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The method to set. + * @return This builder for chaining. + */ + public Builder setMethod(com.google.cloud.retail.v2beta.SafetySetting.HarmBlockMethod value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + method_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Specify if the threshold is used for probability or severity
    +     * score. If not specified, the threshold is used for probability score.
    +     * 
    + * + * + * .google.cloud.retail.v2beta.SafetySetting.HarmBlockMethod method = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearMethod() { + bitField0_ = (bitField0_ & ~0x00000004); + method_ = 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.retail.v2beta.SafetySetting) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2beta.SafetySetting) + private static final com.google.cloud.retail.v2beta.SafetySetting DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.retail.v2beta.SafetySetting(); + } + + public static com.google.cloud.retail.v2beta.SafetySetting getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SafetySetting parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.retail.v2beta.SafetySetting getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/SafetySettingOrBuilder.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/SafetySettingOrBuilder.java new file mode 100644 index 000000000000..f180c5c3ecfe --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/SafetySettingOrBuilder.java @@ -0,0 +1,110 @@ +/* + * 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/retail/v2beta/safety.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.retail.v2beta; + +public interface SafetySettingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2beta.SafetySetting) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Harm category.
    +   * 
    + * + * .google.cloud.retail.v2beta.HarmCategory category = 1; + * + * @return The enum numeric value on the wire for category. + */ + int getCategoryValue(); + + /** + * + * + *
    +   * Harm category.
    +   * 
    + * + * .google.cloud.retail.v2beta.HarmCategory category = 1; + * + * @return The category. + */ + com.google.cloud.retail.v2beta.HarmCategory getCategory(); + + /** + * + * + *
    +   * The harm block threshold.
    +   * 
    + * + * .google.cloud.retail.v2beta.SafetySetting.HarmBlockThreshold threshold = 2; + * + * @return The enum numeric value on the wire for threshold. + */ + int getThresholdValue(); + + /** + * + * + *
    +   * The harm block threshold.
    +   * 
    + * + * .google.cloud.retail.v2beta.SafetySetting.HarmBlockThreshold threshold = 2; + * + * @return The threshold. + */ + com.google.cloud.retail.v2beta.SafetySetting.HarmBlockThreshold getThreshold(); + + /** + * + * + *
    +   * Optional. Specify if the threshold is used for probability or severity
    +   * score. If not specified, the threshold is used for probability score.
    +   * 
    + * + * + * .google.cloud.retail.v2beta.SafetySetting.HarmBlockMethod method = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for method. + */ + int getMethodValue(); + + /** + * + * + *
    +   * Optional. Specify if the threshold is used for probability or severity
    +   * score. If not specified, the threshold is used for probability score.
    +   * 
    + * + * + * .google.cloud.retail.v2beta.SafetySetting.HarmBlockMethod method = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The method. + */ + com.google.cloud.retail.v2beta.SafetySetting.HarmBlockMethod getMethod(); +} diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/proto/google/cloud/retail/v2beta/conversational_search_service.proto b/java-retail/proto-google-cloud-retail-v2beta/src/main/proto/google/cloud/retail/v2beta/conversational_search_service.proto new file mode 100644 index 000000000000..28bc1d63fae7 --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/proto/google/cloud/retail/v2beta/conversational_search_service.proto @@ -0,0 +1,359 @@ +// 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.retail.v2beta; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/retail/v2beta/common.proto"; +import "google/cloud/retail/v2beta/safety.proto"; +import "google/cloud/retail/v2beta/search_service.proto"; + +option csharp_namespace = "Google.Cloud.Retail.V2Beta"; +option go_package = "cloud.google.com/go/retail/apiv2beta/retailpb;retailpb"; +option java_multiple_files = true; +option java_outer_classname = "ConversationalSearchServiceProto"; +option java_package = "com.google.cloud.retail.v2beta"; +option objc_class_prefix = "RETAIL"; +option php_namespace = "Google\\Cloud\\Retail\\V2beta"; +option ruby_package = "Google::Cloud::Retail::V2beta"; + +// Service for retail conversational search. +// +// This feature is only available for users who have Retail Conversational +// Search enabled. Enable Retail Conversational Search on Cloud Console +// before using this feature. +service ConversationalSearchService { + option (google.api.default_host) = "retail.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Performs a conversational search. + // + // This feature is only available for users who have Conversational Search + // enabled. + rpc ConversationalSearch(ConversationalSearchRequest) + returns (stream ConversationalSearchResponse) { + option (google.api.http) = { + post: "/v2beta/{placement=projects/*/locations/*/catalogs/*/placements/*}:conversationalSearch" + body: "*" + additional_bindings { + post: "/v2beta/{placement=projects/*/locations/*/catalogs/*/servingConfigs/*}:conversationalSearch" + body: "*" + } + }; + } +} + +// Request message for +// [ConversationalSearchService.ConversationalSearch][google.cloud.retail.v2beta.ConversationalSearchService.ConversationalSearch] +// method. +message ConversationalSearchRequest { + // Search parameters. + message SearchParams { + // Optional. The filter string to restrict search results. + // + // The syntax of the filter string is the same as + // [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter]. + string filter = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The canonical filter string to restrict search results. + // + // The syntax of the canonical filter string is the same as + // [SearchRequest.canonical_filter][google.cloud.retail.v2beta.SearchRequest.canonical_filter]. + string canonical_filter = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The sort string to specify the sorting of search results. + // + // The syntax of the sort string is the same as + // [SearchRequest.sort][]. + string sort_by = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The boost spec to specify the boosting of search results. + // + // The syntax of the boost spec is the same as + // [SearchRequest.boost_spec][google.cloud.retail.v2beta.SearchRequest.boost_spec]. + SearchRequest.BoostSpec boost_spec = 4 + [(google.api.field_behavior) = OPTIONAL]; + } + + // This field specifies the current user answer during the conversational + // filtering search. This can be either user selected from suggested answers + // or user input plain text. + message UserAnswer { + // This field specifies the selected answers during the conversational + // search. + message SelectedAnswer { + // Optional. This field specifies the selected answer which is a attribute + // key-value. + ProductAttributeValue product_attribute_value = 1 + [(google.api.field_behavior) = OPTIONAL]; + } + + // This field specifies the type of user answer. + oneof type { + // This field specifies the incremental input text from the user during + // the conversational search. + string text_answer = 1; + + // Optional. This field specifies the selected answer during the + // conversational search. This should be a subset of + // [ConversationalSearchResponse.followup_question.suggested_answers][]. + SelectedAnswer selected_answer = 2 + [(google.api.field_behavior) = OPTIONAL]; + } + } + + // This field specifies all conversational filtering related parameters + // addition to conversational retail search. + message ConversationalFilteringSpec { + // Enum to control Conversational Filtering mode. + // A single conversation session including multiple turns supports modes for + // Conversational Search OR Conversational Filtering without + // Conversational Search, but not both. + enum Mode { + // Default value. + MODE_UNSPECIFIED = 0; + + // Disables Conversational Filtering when using Conversational Search. + DISABLED = 1; + + // Enables Conversational Filtering when using Conversational Search. + ENABLED = 2; + + // Enables Conversational Filtering without Conversational Search. + CONVERSATIONAL_FILTER_ONLY = 3; + } + + // Optional. This field is deprecated. Please use + // [ConversationalFilteringSpec.conversational_filtering_mode][google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec.conversational_filtering_mode] + // instead. + bool enable_conversational_filtering = 1 + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; + + // Optional. This field specifies the current user answer during the + // conversational filtering search. It can be either user selected from + // suggested answers or user input plain text. + UserAnswer user_answer = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Mode to control Conversational Filtering. + // Defaults to + // [Mode.DISABLED][google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec.Mode.DISABLED] + // if it's unset. + Mode conversational_filtering_mode = 4 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Required. The resource name of the search engine placement, such as + // `projects/*/locations/global/catalogs/default_catalog/placements/default_search` + // or + // `projects/*/locations/global/catalogs/default_catalog/servingConfigs/default_serving_config` + // This field is used to identify the serving config name and the set + // of models that will be used to make the search. + string placement = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The branch resource name, such as + // `projects/*/locations/global/catalogs/default_catalog/branches/0`. + // + // Use "default_branch" as the branch ID or leave this field empty, to search + // products under the default branch. + string branch = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "retail.googleapis.com/Branch" } + ]; + + // Optional. Raw search query to be searched for. + // + // If this field is empty, the request is considered a category browsing + // request. + string query = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The categories associated with a category page. Must be set for + // category navigation queries to achieve good search quality. The format + // should be the same as + // [UserEvent.page_categories][google.cloud.retail.v2beta.UserEvent.page_categories]; + // + // To represent full path of category, use '>' sign to separate different + // hierarchies. If '>' is part of the category name, replace it with + // other character(s). + // + // Category pages include special pages such as sales or promotions. For + // instance, a special sale page may have the category hierarchy: + // "pageCategories" : ["Sales > 2017 Black Friday Deals"]. + repeated string page_categories = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. This field specifies the conversation id, which maintains the + // state of the conversation between client side and server side. Use the + // value from the previous + // [ConversationalSearchResponse.conversation_id][google.cloud.retail.v2beta.ConversationalSearchResponse.conversation_id]. + // For the initial request, this should be empty. + string conversation_id = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Search parameters. + SearchParams search_params = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Required. A unique identifier for tracking visitors. For example, this + // could be implemented with an HTTP cookie, which should be able to uniquely + // identify a visitor on a single device. This unique identifier should not + // change if the visitor logs in or out of the website. + // + // This should be the same identifier as + // [UserEvent.visitor_id][google.cloud.retail.v2beta.UserEvent.visitor_id]. + // + // The field must be a UTF-8 encoded string with a length limit of 128 + // characters. Otherwise, an INVALID_ARGUMENT error is returned. + string visitor_id = 9 [(google.api.field_behavior) = REQUIRED]; + + // Optional. User information. + UserInfo user_info = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. This field specifies all conversational filtering related + // parameters. + ConversationalFilteringSpec conversational_filtering_spec = 8 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The user labels applied to a resource must meet the following + // requirements: + // + // * Each resource can have multiple labels, up to a maximum of 64. + // * Each label must be a key-value pair. + // * Keys have a minimum length of 1 character and a maximum length of 63 + // characters and cannot be empty. Values can be empty and have a maximum + // length of 63 characters. + // * Keys and values can contain only lowercase letters, numeric characters, + // underscores, and dashes. All characters must use UTF-8 encoding, and + // international characters are allowed. + // * The key portion of a label must be unique. However, you can use the same + // key with multiple resources. + // * Keys must start with a lowercase letter or international character. + // + // See [Google Cloud + // Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) + // for more details. + map user_labels = 12 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The safety settings to be applied to the generated content. + repeated SafetySetting safety_settings = 14 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for +// [ConversationalSearchService.ConversationalSearch][google.cloud.retail.v2beta.ConversationalSearchService.ConversationalSearch] +// method. +message ConversationalSearchResponse { + // The conversational followup question generated for Intent refinement. + message FollowupQuestion { + // Suggested answers to the follow-up question. + // If it's numerical attribute, only ProductAttributeInterval will be set. + // If it's textual attribute, only productAttributeValue will be set. + message SuggestedAnswer { + // Product attribute value, including an attribute key and an + // attribute value. Other types can be added here in the future. + ProductAttributeValue product_attribute_value = 1; + } + + // The conversational followup question generated for Intent refinement. + string followup_question = 1; + + // The answer options provided to client for the follow-up question. + repeated SuggestedAnswer suggested_answers = 2; + } + + // The proposed refined search for intent-refinement/bundled shopping + // conversation. When using CONVERSATIONAL_FILTER_ONLY mode, the + // refined_query from search response will be populated here. + message RefinedSearch { + // The query to be used for search. + string query = 1; + } + + // This field specifies all related information that is needed on client + // side for UI rendering of conversational filtering search. + message ConversationalFilteringResult { + // Additional filter that client side need to apply. + message AdditionalFilter { + // Product attribute value, including an attribute key and an + // attribute value. Other types can be added here in the future. + ProductAttributeValue product_attribute_value = 1; + } + + // The conversational filtering question. + FollowupQuestion followup_question = 1; + + // This is the incremental additional filters implied from the current + // user answer. User should add the suggested addition filters to the + // previous [ConversationalSearchRequest.search_params.filter][] and + // [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter], + // and use the merged filter in the follow up requests. + AdditionalFilter additional_filter = 2; + } + + // The state of the response generation. + enum State { + // Unknown. + STATE_UNSPECIFIED = 0; + + // Response generation is being streamed. + STREAMING = 1; + + // Response generation has succeeded. + SUCCEEDED = 2; + } + + // The types Retail classifies the search query as. + // + // Supported values are: + // + // - "ORDER_SUPPORT" + // - "SIMPLE_PRODUCT_SEARCH" + // - "INTENT_REFINEMENT" + // - "PRODUCT_DETAILS" + // - "PRODUCT_COMPARISON" + // - "DEALS_AND_COUPONS" + // - "STORE_RELEVANT" + // - "BLOCKLISTED" + // - "BEST_PRODUCT" + // - "RETAIL_SUPPORT" + // - "DISABLED" + repeated string user_query_types = 10; + + // The conversational answer-based text response generated by the Server. + string conversational_text_response = 2; + + // The conversational followup question generated for Intent refinement. + FollowupQuestion followup_question = 3; + + // Conversation UUID. This field will be stored in client side storage to + // maintain the conversation session with server and will be used for next + // search request's + // [ConversationalSearchRequest.conversation_id][google.cloud.retail.v2beta.ConversationalSearchRequest.conversation_id] + // to restore conversation state in server. + string conversation_id = 4; + + // The proposed refined search queries. They can be used to fetch the relevant + // search results. When using CONVERSATIONAL_FILTER_ONLY mode, the + // refined_query from search response will be populated here. + repeated RefinedSearch refined_search = 6; + + // This field specifies all related information that is needed on client + // side for UI rendering of conversational filtering search. + ConversationalFilteringResult conversational_filtering_result = 7; + + // Output only. The state of the response generation. + State state = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/proto/google/cloud/retail/v2beta/safety.proto b/java-retail/proto-google-cloud-retail-v2beta/src/main/proto/google/cloud/retail/v2beta/safety.proto new file mode 100644 index 000000000000..e9de0bcd4f98 --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/proto/google/cloud/retail/v2beta/safety.proto @@ -0,0 +1,95 @@ +// 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.retail.v2beta; + +import "google/api/field_behavior.proto"; + +option csharp_namespace = "Google.Cloud.Retail.V2Beta"; +option go_package = "cloud.google.com/go/retail/apiv2beta/retailpb;retailpb"; +option java_multiple_files = true; +option java_outer_classname = "SafetyProto"; +option java_package = "com.google.cloud.retail.v2beta"; +option objc_class_prefix = "RETAIL"; +option php_namespace = "Google\\Cloud\\Retail\\V2beta"; +option ruby_package = "Google::Cloud::Retail::V2beta"; + +// Harm categories that will block the content. +enum HarmCategory { + // The harm category is unspecified. + HARM_CATEGORY_UNSPECIFIED = 0; + + // The harm category is hate speech. + HARM_CATEGORY_HATE_SPEECH = 1; + + // The harm category is dangerous content. + HARM_CATEGORY_DANGEROUS_CONTENT = 2; + + // The harm category is harassment. + HARM_CATEGORY_HARASSMENT = 3; + + // The harm category is sexually explicit content. + HARM_CATEGORY_SEXUALLY_EXPLICIT = 4; + + // The harm category is civic integrity. + HARM_CATEGORY_CIVIC_INTEGRITY = 5; +} + +// Safety settings. +message SafetySetting { + // Probability based thresholds levels for blocking. + enum HarmBlockThreshold { + // Unspecified harm block threshold. + HARM_BLOCK_THRESHOLD_UNSPECIFIED = 0; + + // Block low threshold and above (i.e. block more). + BLOCK_LOW_AND_ABOVE = 1; + + // Block medium threshold and above. + BLOCK_MEDIUM_AND_ABOVE = 2; + + // Block only high threshold (i.e. block less). + BLOCK_ONLY_HIGH = 3; + + // Block none. + BLOCK_NONE = 4; + + // Turn off the safety filter. + OFF = 5; + } + + // Probability vs severity. + enum HarmBlockMethod { + // The harm block method is unspecified. + HARM_BLOCK_METHOD_UNSPECIFIED = 0; + + // The harm block method uses both probability and severity scores. + SEVERITY = 1; + + // The harm block method uses the probability score. + PROBABILITY = 2; + } + + // Harm category. + HarmCategory category = 1; + + // The harm block threshold. + HarmBlockThreshold threshold = 2; + + // Optional. Specify if the threshold is used for probability or severity + // score. If not specified, the threshold is used for probability score. + HarmBlockMethod method = 3 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/conversationalsearchservice/conversationalsearch/AsyncConversationalSearch.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/conversationalsearchservice/conversationalsearch/AsyncConversationalSearch.java new file mode 100644 index 000000000000..e7241b1fb6a3 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/conversationalsearchservice/conversationalsearch/AsyncConversationalSearch.java @@ -0,0 +1,68 @@ +/* + * 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.retail.v2.samples; + +// [START retail_v2_generated_ConversationalSearchService_ConversationalSearch_async] +import com.google.api.gax.rpc.ServerStream; +import com.google.cloud.retail.v2.BranchName; +import com.google.cloud.retail.v2.ConversationalSearchRequest; +import com.google.cloud.retail.v2.ConversationalSearchResponse; +import com.google.cloud.retail.v2.ConversationalSearchServiceClient; +import com.google.cloud.retail.v2.SafetySetting; +import com.google.cloud.retail.v2.UserInfo; +import java.util.ArrayList; +import java.util.HashMap; + +public class AsyncConversationalSearch { + + public static void main(String[] args) throws Exception { + asyncConversationalSearch(); + } + + public static void asyncConversationalSearch() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConversationalSearchServiceClient conversationalSearchServiceClient = + ConversationalSearchServiceClient.create()) { + ConversationalSearchRequest request = + ConversationalSearchRequest.newBuilder() + .setPlacement("placement1792938725") + .setBranch( + BranchName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[BRANCH]").toString()) + .setQuery("query107944136") + .addAllPageCategories(new ArrayList()) + .setConversationId("conversationId-1676095234") + .setSearchParams(ConversationalSearchRequest.SearchParams.newBuilder().build()) + .setVisitorId("visitorId1880545833") + .setUserInfo(UserInfo.newBuilder().build()) + .setConversationalFilteringSpec( + ConversationalSearchRequest.ConversationalFilteringSpec.newBuilder().build()) + .putAllUserLabels(new HashMap()) + .addAllSafetySettings(new ArrayList()) + .build(); + ServerStream stream = + conversationalSearchServiceClient.conversationalSearchCallable().call(request); + for (ConversationalSearchResponse response : stream) { + // Do something when a response is received. + } + } + } +} +// [END retail_v2_generated_ConversationalSearchService_ConversationalSearch_async] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/conversationalsearchservice/create/SyncCreateSetCredentialsProvider.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/conversationalsearchservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..3721b23fb183 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/conversationalsearchservice/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.retail.v2.samples; + +// [START retail_v2_generated_ConversationalSearchService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.retail.v2.ConversationalSearchServiceClient; +import com.google.cloud.retail.v2.ConversationalSearchServiceSettings; +import com.google.cloud.retail.v2.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 + ConversationalSearchServiceSettings conversationalSearchServiceSettings = + ConversationalSearchServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + ConversationalSearchServiceClient conversationalSearchServiceClient = + ConversationalSearchServiceClient.create(conversationalSearchServiceSettings); + } +} +// [END retail_v2_generated_ConversationalSearchService_Create_SetCredentialsProvider_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/conversationalsearchservice/create/SyncCreateSetEndpoint.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/conversationalsearchservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..8f16dbb16076 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/conversationalsearchservice/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.retail.v2.samples; + +// [START retail_v2_generated_ConversationalSearchService_Create_SetEndpoint_sync] +import com.google.cloud.retail.v2.ConversationalSearchServiceClient; +import com.google.cloud.retail.v2.ConversationalSearchServiceSettings; +import com.google.cloud.retail.v2.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 + ConversationalSearchServiceSettings conversationalSearchServiceSettings = + ConversationalSearchServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + ConversationalSearchServiceClient conversationalSearchServiceClient = + ConversationalSearchServiceClient.create(conversationalSearchServiceSettings); + } +} +// [END retail_v2_generated_ConversationalSearchService_Create_SetEndpoint_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/conversationalsearchservice/create/SyncCreateUseHttpJsonTransport.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/conversationalsearchservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..765f1e464d8b --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/conversationalsearchservice/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.retail.v2.samples; + +// [START retail_v2_generated_ConversationalSearchService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.retail.v2.ConversationalSearchServiceClient; +import com.google.cloud.retail.v2.ConversationalSearchServiceSettings; + +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 + ConversationalSearchServiceSettings conversationalSearchServiceSettings = + ConversationalSearchServiceSettings.newHttpJsonBuilder().build(); + ConversationalSearchServiceClient conversationalSearchServiceClient = + ConversationalSearchServiceClient.create(conversationalSearchServiceSettings); + } +} +// [END retail_v2_generated_ConversationalSearchService_Create_UseHttpJsonTransport_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/conversationalsearchservicesettings/conversationalsearch/SyncConversationalSearch.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/conversationalsearchservicesettings/conversationalsearch/SyncConversationalSearch.java new file mode 100644 index 000000000000..5d57742f77a4 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/conversationalsearchservicesettings/conversationalsearch/SyncConversationalSearch.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.retail.v2.samples; + +// [START retail_v2_generated_ConversationalSearchServiceSettings_ConversationalSearch_sync] +import com.google.cloud.retail.v2.ConversationalSearchServiceSettings; +import java.time.Duration; + +public class SyncConversationalSearch { + + public static void main(String[] args) throws Exception { + syncConversationalSearch(); + } + + public static void syncConversationalSearch() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ConversationalSearchServiceSettings.Builder conversationalSearchServiceSettingsBuilder = + ConversationalSearchServiceSettings.newBuilder(); + conversationalSearchServiceSettingsBuilder + .conversationalSearchSettings() + .setRetrySettings( + conversationalSearchServiceSettingsBuilder + .conversationalSearchSettings() + .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()); + ConversationalSearchServiceSettings conversationalSearchServiceSettings = + conversationalSearchServiceSettingsBuilder.build(); + } +} +// [END retail_v2_generated_ConversationalSearchServiceSettings_ConversationalSearch_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/stub/conversationalsearchservicestubsettings/conversationalsearch/SyncConversationalSearch.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/stub/conversationalsearchservicestubsettings/conversationalsearch/SyncConversationalSearch.java new file mode 100644 index 000000000000..4bfd8d7b9d0b --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/stub/conversationalsearchservicestubsettings/conversationalsearch/SyncConversationalSearch.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.retail.v2.stub.samples; + +// [START retail_v2_generated_ConversationalSearchServiceStubSettings_ConversationalSearch_sync] +import com.google.cloud.retail.v2.stub.ConversationalSearchServiceStubSettings; +import java.time.Duration; + +public class SyncConversationalSearch { + + public static void main(String[] args) throws Exception { + syncConversationalSearch(); + } + + public static void syncConversationalSearch() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ConversationalSearchServiceStubSettings.Builder conversationalSearchServiceSettingsBuilder = + ConversationalSearchServiceStubSettings.newBuilder(); + conversationalSearchServiceSettingsBuilder + .conversationalSearchSettings() + .setRetrySettings( + conversationalSearchServiceSettingsBuilder + .conversationalSearchSettings() + .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()); + ConversationalSearchServiceStubSettings conversationalSearchServiceSettings = + conversationalSearchServiceSettingsBuilder.build(); + } +} +// [END retail_v2_generated_ConversationalSearchServiceStubSettings_ConversationalSearch_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/conversationalsearchservice/conversationalsearch/AsyncConversationalSearch.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/conversationalsearchservice/conversationalsearch/AsyncConversationalSearch.java new file mode 100644 index 000000000000..be395900640c --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/conversationalsearchservice/conversationalsearch/AsyncConversationalSearch.java @@ -0,0 +1,68 @@ +/* + * 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.retail.v2beta.samples; + +// [START retail_v2beta_generated_ConversationalSearchService_ConversationalSearch_async] +import com.google.api.gax.rpc.ServerStream; +import com.google.cloud.retail.v2beta.BranchName; +import com.google.cloud.retail.v2beta.ConversationalSearchRequest; +import com.google.cloud.retail.v2beta.ConversationalSearchResponse; +import com.google.cloud.retail.v2beta.ConversationalSearchServiceClient; +import com.google.cloud.retail.v2beta.SafetySetting; +import com.google.cloud.retail.v2beta.UserInfo; +import java.util.ArrayList; +import java.util.HashMap; + +public class AsyncConversationalSearch { + + public static void main(String[] args) throws Exception { + asyncConversationalSearch(); + } + + public static void asyncConversationalSearch() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConversationalSearchServiceClient conversationalSearchServiceClient = + ConversationalSearchServiceClient.create()) { + ConversationalSearchRequest request = + ConversationalSearchRequest.newBuilder() + .setPlacement("placement1792938725") + .setBranch( + BranchName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[BRANCH]").toString()) + .setQuery("query107944136") + .addAllPageCategories(new ArrayList()) + .setConversationId("conversationId-1676095234") + .setSearchParams(ConversationalSearchRequest.SearchParams.newBuilder().build()) + .setVisitorId("visitorId1880545833") + .setUserInfo(UserInfo.newBuilder().build()) + .setConversationalFilteringSpec( + ConversationalSearchRequest.ConversationalFilteringSpec.newBuilder().build()) + .putAllUserLabels(new HashMap()) + .addAllSafetySettings(new ArrayList()) + .build(); + ServerStream stream = + conversationalSearchServiceClient.conversationalSearchCallable().call(request); + for (ConversationalSearchResponse response : stream) { + // Do something when a response is received. + } + } + } +} +// [END retail_v2beta_generated_ConversationalSearchService_ConversationalSearch_async] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/conversationalsearchservice/create/SyncCreateSetCredentialsProvider.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/conversationalsearchservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..845194f04c14 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/conversationalsearchservice/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.retail.v2beta.samples; + +// [START retail_v2beta_generated_ConversationalSearchService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.retail.v2beta.ConversationalSearchServiceClient; +import com.google.cloud.retail.v2beta.ConversationalSearchServiceSettings; +import com.google.cloud.retail.v2beta.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 + ConversationalSearchServiceSettings conversationalSearchServiceSettings = + ConversationalSearchServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + ConversationalSearchServiceClient conversationalSearchServiceClient = + ConversationalSearchServiceClient.create(conversationalSearchServiceSettings); + } +} +// [END retail_v2beta_generated_ConversationalSearchService_Create_SetCredentialsProvider_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/conversationalsearchservice/create/SyncCreateSetEndpoint.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/conversationalsearchservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..8948898e6cda --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/conversationalsearchservice/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.retail.v2beta.samples; + +// [START retail_v2beta_generated_ConversationalSearchService_Create_SetEndpoint_sync] +import com.google.cloud.retail.v2beta.ConversationalSearchServiceClient; +import com.google.cloud.retail.v2beta.ConversationalSearchServiceSettings; +import com.google.cloud.retail.v2beta.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 + ConversationalSearchServiceSettings conversationalSearchServiceSettings = + ConversationalSearchServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + ConversationalSearchServiceClient conversationalSearchServiceClient = + ConversationalSearchServiceClient.create(conversationalSearchServiceSettings); + } +} +// [END retail_v2beta_generated_ConversationalSearchService_Create_SetEndpoint_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/conversationalsearchservice/create/SyncCreateUseHttpJsonTransport.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/conversationalsearchservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..b8a3eadc726e --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/conversationalsearchservice/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.retail.v2beta.samples; + +// [START retail_v2beta_generated_ConversationalSearchService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.retail.v2beta.ConversationalSearchServiceClient; +import com.google.cloud.retail.v2beta.ConversationalSearchServiceSettings; + +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 + ConversationalSearchServiceSettings conversationalSearchServiceSettings = + ConversationalSearchServiceSettings.newHttpJsonBuilder().build(); + ConversationalSearchServiceClient conversationalSearchServiceClient = + ConversationalSearchServiceClient.create(conversationalSearchServiceSettings); + } +} +// [END retail_v2beta_generated_ConversationalSearchService_Create_UseHttpJsonTransport_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/conversationalsearchservicesettings/conversationalsearch/SyncConversationalSearch.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/conversationalsearchservicesettings/conversationalsearch/SyncConversationalSearch.java new file mode 100644 index 000000000000..ca9508df739a --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/conversationalsearchservicesettings/conversationalsearch/SyncConversationalSearch.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.retail.v2beta.samples; + +// [START retail_v2beta_generated_ConversationalSearchServiceSettings_ConversationalSearch_sync] +import com.google.cloud.retail.v2beta.ConversationalSearchServiceSettings; +import java.time.Duration; + +public class SyncConversationalSearch { + + public static void main(String[] args) throws Exception { + syncConversationalSearch(); + } + + public static void syncConversationalSearch() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ConversationalSearchServiceSettings.Builder conversationalSearchServiceSettingsBuilder = + ConversationalSearchServiceSettings.newBuilder(); + conversationalSearchServiceSettingsBuilder + .conversationalSearchSettings() + .setRetrySettings( + conversationalSearchServiceSettingsBuilder + .conversationalSearchSettings() + .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()); + ConversationalSearchServiceSettings conversationalSearchServiceSettings = + conversationalSearchServiceSettingsBuilder.build(); + } +} +// [END retail_v2beta_generated_ConversationalSearchServiceSettings_ConversationalSearch_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/stub/conversationalsearchservicestubsettings/conversationalsearch/SyncConversationalSearch.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/stub/conversationalsearchservicestubsettings/conversationalsearch/SyncConversationalSearch.java new file mode 100644 index 000000000000..72bbbd0f306b --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/stub/conversationalsearchservicestubsettings/conversationalsearch/SyncConversationalSearch.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.retail.v2beta.stub.samples; + +// [START retail_v2beta_generated_ConversationalSearchServiceStubSettings_ConversationalSearch_sync] +import com.google.cloud.retail.v2beta.stub.ConversationalSearchServiceStubSettings; +import java.time.Duration; + +public class SyncConversationalSearch { + + public static void main(String[] args) throws Exception { + syncConversationalSearch(); + } + + public static void syncConversationalSearch() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ConversationalSearchServiceStubSettings.Builder conversationalSearchServiceSettingsBuilder = + ConversationalSearchServiceStubSettings.newBuilder(); + conversationalSearchServiceSettingsBuilder + .conversationalSearchSettings() + .setRetrySettings( + conversationalSearchServiceSettingsBuilder + .conversationalSearchSettings() + .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()); + ConversationalSearchServiceStubSettings conversationalSearchServiceSettings = + conversationalSearchServiceSettingsBuilder.build(); + } +} +// [END retail_v2beta_generated_ConversationalSearchServiceStubSettings_ConversationalSearch_sync] diff --git a/java-run/README.md b/java-run/README.md index d734fbdc87de..73e505763200 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.66.0 + 26.67.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.72.0 + 0.73.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-run:0.72.0' +implementation 'com.google.cloud:google-cloud-run:0.73.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-run" % "0.72.0" +libraryDependencies += "com.google.cloud" % "google-cloud-run" % "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-run.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-run/0.72.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-run/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-saasservicemgmt/README.md b/java-saasservicemgmt/README.md index d2543848506a..e79bfa0e9f62 100644 --- a/java-saasservicemgmt/README.md +++ b/java-saasservicemgmt/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.66.0 + 26.67.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-saasservicemgmt - 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-saasservicemgmt:0.2.0' +implementation 'com.google.cloud:google-cloud-saasservicemgmt:0.3.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-saasservicemgmt" % "0.2.0" +libraryDependencies += "com.google.cloud" % "google-cloud-saasservicemgmt" % "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-saasservicemgmt.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-saasservicemgmt/0.2.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-saasservicemgmt/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-scheduler/README.md b/java-scheduler/README.md index 1082f939ffcf..869a0b18c919 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.66.0 + 26.67.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.72.0 + 2.73.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-scheduler:2.72.0' +implementation 'com.google.cloud:google-cloud-scheduler:2.73.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-scheduler" % "2.72.0" +libraryDependencies += "com.google.cloud" % "google-cloud-scheduler" % "2.73.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.72.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-scheduler/2.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-secretmanager/README.md b/java-secretmanager/README.md index 5f6b3d8bdd4d..a524aa0754ca 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.66.0 + 26.67.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.72.0 + 2.73.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-secretmanager:2.72.0' +implementation 'com.google.cloud:google-cloud-secretmanager:2.73.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-secretmanager" % "2.72.0" +libraryDependencies += "com.google.cloud" % "google-cloud-secretmanager" % "2.73.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.72.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-secretmanager/2.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-securesourcemanager/README.md b/java-securesourcemanager/README.md index 6bfea2c1fadb..9c17c45c5205 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.66.0 + 26.67.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.42.0 + 0.43.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securesourcemanager:0.42.0' +implementation 'com.google.cloud:google-cloud-securesourcemanager:0.43.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securesourcemanager" % "0.42.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securesourcemanager" % "0.43.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.42.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securesourcemanager/0.43.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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 4e24a493816c..0b264085b228 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.66.0 + 26.67.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.74.0 + 2.75.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-security-private-ca:2.74.0' +implementation 'com.google.cloud:google-cloud-security-private-ca:2.75.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-security-private-ca" % "2.74.0" +libraryDependencies += "com.google.cloud" % "google-cloud-security-private-ca" % "2.75.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.74.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-security-private-ca/2.75.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-securitycenter-settings/README.md b/java-securitycenter-settings/README.md index edff8916d1e0..9d98abd076e8 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.66.0 + 26.67.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.75.0 + 0.76.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securitycenter-settings:0.75.0' +implementation 'com.google.cloud:google-cloud-securitycenter-settings:0.76.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter-settings" % "0.75.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter-settings" % "0.76.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-securitycenter-settings.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycenter-settings/0.75.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycenter-settings/0.76.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-securitycenter/README.md b/java-securitycenter/README.md index 6ac574072d1a..427f568bf939 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.66.0 + 26.67.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.80.0 + 2.81.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securitycenter:2.80.0' +implementation 'com.google.cloud:google-cloud-securitycenter:2.81.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter" % "2.80.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter" % "2.81.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-securitycenter.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycenter/2.80.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycenter/2.81.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-securitycentermanagement/README.md b/java-securitycentermanagement/README.md index 7d09c42f0b06..54918eb62e6e 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.66.0 + 26.67.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.40.0 + 0.41.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securitycentermanagement:0.40.0' +implementation 'com.google.cloud:google-cloud-securitycentermanagement:0.41.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securitycentermanagement" % "0.40.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securitycentermanagement" % "0.41.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.40.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycentermanagement/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-securityposture/README.md b/java-securityposture/README.md index d0bc2487ccee..6ca5214c8e13 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.66.0 + 26.67.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.37.0 + 0.38.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securityposture:0.37.0' +implementation 'com.google.cloud:google-cloud-securityposture:0.38.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securityposture" % "0.37.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securityposture" % "0.38.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.37.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securityposture/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-service-control/README.md b/java-service-control/README.md index 1f91ab829d36..cbbeb8660e07 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.66.0 + 26.67.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.72.0 + 1.73.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-service-control:1.72.0' +implementation 'com.google.cloud:google-cloud-service-control:1.73.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-service-control" % "1.72.0" +libraryDependencies += "com.google.cloud" % "google-cloud-service-control" % "1.73.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.72.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-control/1.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-service-management/README.md b/java-service-management/README.md index 41250444ba93..e1b2040b937f 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.66.0 + 26.67.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.70.0 + 3.71.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-service-management:3.70.0' +implementation 'com.google.cloud:google-cloud-service-management:3.71.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-service-management" % "3.70.0" +libraryDependencies += "com.google.cloud" % "google-cloud-service-management" % "3.71.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.70.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-management/3.71.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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 380f2097e5d6..bbd493d552c5 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.66.0 + 26.67.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.72.0 + 2.73.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-service-usage:2.72.0' +implementation 'com.google.cloud:google-cloud-service-usage:2.73.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-service-usage" % "2.72.0" +libraryDependencies += "com.google.cloud" % "google-cloud-service-usage" % "2.73.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.72.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-usage/2.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-servicedirectory/README.md b/java-servicedirectory/README.md index 916e4e8412d1..c49a395879b2 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.66.0 + 26.67.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.73.0 + 2.74.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-servicedirectory:2.73.0' +implementation 'com.google.cloud:google-cloud-servicedirectory:2.74.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-servicedirectory" % "2.73.0" +libraryDependencies += "com.google.cloud" % "google-cloud-servicedirectory" % "2.74.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.73.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-servicedirectory/2.74.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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 ffdf9207831d..c4fe0caaf142 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.66.0 + 26.67.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.39.0 + 0.40.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-servicehealth:0.39.0' +implementation 'com.google.cloud:google-cloud-servicehealth:0.40.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-servicehealth" % "0.39.0" +libraryDependencies += "com.google.cloud" % "google-cloud-servicehealth" % "0.40.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.39.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-servicehealth/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-shell/README.md b/java-shell/README.md index 4bdebb7d3980..6d2293c0c187 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.66.0 + 26.67.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.71.0 + 2.72.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-shell:2.71.0' +implementation 'com.google.cloud:google-cloud-shell:2.72.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-shell" % "2.71.0" +libraryDependencies += "com.google.cloud" % "google-cloud-shell" % "2.72.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-shell.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-shell/2.71.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-shell/2.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-shopping-css/README.md b/java-shopping-css/README.md index 758d3e8893d5..f29c3fcb31ee 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.66.0 + 26.67.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.40.0 + 0.41.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-css:0.40.0' +implementation 'com.google.shopping:google-shopping-css:0.41.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-css" % "0.40.0" +libraryDependencies += "com.google.shopping" % "google-shopping-css" % "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.shopping/google-shopping-css.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-css/0.40.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-css/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-shopping-merchant-accounts/README.md b/java-shopping-merchant-accounts/README.md index ad0d9f5805a5..0a9cea20ee21 100644 --- a/java-shopping-merchant-accounts/README.md +++ b/java-shopping-merchant-accounts/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.66.0 + 26.67.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-accounts - 1.0.0 + 1.1.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-accounts:1.0.0' +implementation 'com.google.shopping:google-shopping-merchant-accounts:1.1.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-accounts" % "1.0.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-accounts" % "1.1.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.shopping/google-shopping-merchant-accounts.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-accounts/1.0.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-accounts/1.1.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/RegionsServiceClient.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/RegionsServiceClient.java index 9562fdec7fb8..6bd825e597e6 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/RegionsServiceClient.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/RegionsServiceClient.java @@ -106,6 +106,20 @@ * * * + *

    BatchCreateRegions + *

    Creates one or more regions in your Merchant Center account. Executing this method requires admin access. + * + *

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

    + *
      + *
    • batchCreateRegions(BatchCreateRegionsRequest request) + *

    + *

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

    + *
      + *
    • batchCreateRegionsCallable() + *

    + * + * + * *

    UpdateRegion *

    Updates a region definition in your Merchant Center account. Executing this method requires admin access. * @@ -124,6 +138,20 @@ * * * + *

    BatchUpdateRegions + *

    Updates one or more regions in your Merchant Center account. Executing this method requires admin access. + * + *

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

    + *
      + *
    • batchUpdateRegions(BatchUpdateRegionsRequest request) + *

    + *

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

    + *
      + *
    • batchUpdateRegionsCallable() + *

    + * + * + * *

    DeleteRegion *

    Deletes a region definition from your Merchant Center account. Executing this method requires admin access. * @@ -143,6 +171,20 @@ * * * + *

    BatchDeleteRegions + *

    Deletes multiple regions by name from your Merchant Center account. Executing this method requires admin access. + * + *

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

    + *
      + *
    • batchDeleteRegions(BatchDeleteRegionsRequest request) + *

    + *

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

    + *
      + *
    • batchDeleteRegionsCallable() + *

    + * + * + * *

    ListRegions *

    Lists the regions in your Merchant Center account. * @@ -512,6 +554,67 @@ public final UnaryCallable createRegionCallable() { return stub.createRegionCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates one or more regions in your Merchant Center account. Executing this method requires + * admin access. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (RegionsServiceClient regionsServiceClient = RegionsServiceClient.create()) {
    +   *   BatchCreateRegionsRequest request =
    +   *       BatchCreateRegionsRequest.newBuilder()
    +   *           .setParent(AccountName.of("[ACCOUNT]").toString())
    +   *           .addAllRequests(new ArrayList())
    +   *           .build();
    +   *   BatchCreateRegionsResponse response = regionsServiceClient.batchCreateRegions(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 BatchCreateRegionsResponse batchCreateRegions(BatchCreateRegionsRequest request) { + return batchCreateRegionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates one or more regions in your Merchant Center account. Executing this method requires + * admin access. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (RegionsServiceClient regionsServiceClient = RegionsServiceClient.create()) {
    +   *   BatchCreateRegionsRequest request =
    +   *       BatchCreateRegionsRequest.newBuilder()
    +   *           .setParent(AccountName.of("[ACCOUNT]").toString())
    +   *           .addAllRequests(new ArrayList())
    +   *           .build();
    +   *   ApiFuture future =
    +   *       regionsServiceClient.batchCreateRegionsCallable().futureCall(request);
    +   *   // Do something.
    +   *   BatchCreateRegionsResponse response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable + batchCreateRegionsCallable() { + return stub.batchCreateRegionsCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates a region definition in your Merchant Center account. Executing this method requires @@ -602,6 +705,67 @@ public final UnaryCallable updateRegionCallable() { return stub.updateRegionCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates one or more regions in your Merchant Center account. Executing this method requires + * admin access. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (RegionsServiceClient regionsServiceClient = RegionsServiceClient.create()) {
    +   *   BatchUpdateRegionsRequest request =
    +   *       BatchUpdateRegionsRequest.newBuilder()
    +   *           .setParent(AccountName.of("[ACCOUNT]").toString())
    +   *           .addAllRequests(new ArrayList())
    +   *           .build();
    +   *   BatchUpdateRegionsResponse response = regionsServiceClient.batchUpdateRegions(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 BatchUpdateRegionsResponse batchUpdateRegions(BatchUpdateRegionsRequest request) { + return batchUpdateRegionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates one or more regions in your Merchant Center account. Executing this method requires + * admin access. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (RegionsServiceClient regionsServiceClient = RegionsServiceClient.create()) {
    +   *   BatchUpdateRegionsRequest request =
    +   *       BatchUpdateRegionsRequest.newBuilder()
    +   *           .setParent(AccountName.of("[ACCOUNT]").toString())
    +   *           .addAllRequests(new ArrayList())
    +   *           .build();
    +   *   ApiFuture future =
    +   *       regionsServiceClient.batchUpdateRegionsCallable().futureCall(request);
    +   *   // Do something.
    +   *   BatchUpdateRegionsResponse response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable + batchUpdateRegionsCallable() { + return stub.batchUpdateRegionsCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a region definition from your Merchant Center account. Executing this method requires @@ -716,6 +880,66 @@ public final UnaryCallable deleteRegionCallable() { return stub.deleteRegionCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes multiple regions by name from your Merchant Center account. Executing this method + * requires admin access. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (RegionsServiceClient regionsServiceClient = RegionsServiceClient.create()) {
    +   *   BatchDeleteRegionsRequest request =
    +   *       BatchDeleteRegionsRequest.newBuilder()
    +   *           .setParent(AccountName.of("[ACCOUNT]").toString())
    +   *           .addAllRequests(new ArrayList())
    +   *           .build();
    +   *   regionsServiceClient.batchDeleteRegions(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 void batchDeleteRegions(BatchDeleteRegionsRequest request) { + batchDeleteRegionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes multiple regions by name from your Merchant Center account. Executing this method + * requires admin access. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (RegionsServiceClient regionsServiceClient = RegionsServiceClient.create()) {
    +   *   BatchDeleteRegionsRequest request =
    +   *       BatchDeleteRegionsRequest.newBuilder()
    +   *           .setParent(AccountName.of("[ACCOUNT]").toString())
    +   *           .addAllRequests(new ArrayList())
    +   *           .build();
    +   *   ApiFuture future =
    +   *       regionsServiceClient.batchDeleteRegionsCallable().futureCall(request);
    +   *   // Do something.
    +   *   future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable batchDeleteRegionsCallable() { + return stub.batchDeleteRegionsCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists the regions in your Merchant Center account. diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/RegionsServiceSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/RegionsServiceSettings.java index 301340b86871..a978fc3d4eb9 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/RegionsServiceSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/RegionsServiceSettings.java @@ -99,16 +99,33 @@ public UnaryCallSettings createRegionSettings() { return ((RegionsServiceStubSettings) getStubSettings()).createRegionSettings(); } + /** Returns the object with the settings used for calls to batchCreateRegions. */ + public UnaryCallSettings + batchCreateRegionsSettings() { + return ((RegionsServiceStubSettings) getStubSettings()).batchCreateRegionsSettings(); + } + /** Returns the object with the settings used for calls to updateRegion. */ public UnaryCallSettings updateRegionSettings() { return ((RegionsServiceStubSettings) getStubSettings()).updateRegionSettings(); } + /** Returns the object with the settings used for calls to batchUpdateRegions. */ + public UnaryCallSettings + batchUpdateRegionsSettings() { + return ((RegionsServiceStubSettings) getStubSettings()).batchUpdateRegionsSettings(); + } + /** Returns the object with the settings used for calls to deleteRegion. */ public UnaryCallSettings deleteRegionSettings() { return ((RegionsServiceStubSettings) getStubSettings()).deleteRegionSettings(); } + /** Returns the object with the settings used for calls to batchDeleteRegions. */ + public UnaryCallSettings batchDeleteRegionsSettings() { + return ((RegionsServiceStubSettings) getStubSettings()).batchDeleteRegionsSettings(); + } + /** Returns the object with the settings used for calls to listRegions. */ public PagedCallSettings listRegionsSettings() { @@ -237,16 +254,34 @@ public UnaryCallSettings.Builder createRegionSettin return getStubSettingsBuilder().createRegionSettings(); } + /** Returns the builder for the settings used for calls to batchCreateRegions. */ + public UnaryCallSettings.Builder + batchCreateRegionsSettings() { + return getStubSettingsBuilder().batchCreateRegionsSettings(); + } + /** Returns the builder for the settings used for calls to updateRegion. */ public UnaryCallSettings.Builder updateRegionSettings() { return getStubSettingsBuilder().updateRegionSettings(); } + /** Returns the builder for the settings used for calls to batchUpdateRegions. */ + public UnaryCallSettings.Builder + batchUpdateRegionsSettings() { + return getStubSettingsBuilder().batchUpdateRegionsSettings(); + } + /** Returns the builder for the settings used for calls to deleteRegion. */ public UnaryCallSettings.Builder deleteRegionSettings() { return getStubSettingsBuilder().deleteRegionSettings(); } + /** Returns the builder for the settings used for calls to batchDeleteRegions. */ + public UnaryCallSettings.Builder + batchDeleteRegionsSettings() { + return getStubSettingsBuilder().batchDeleteRegionsSettings(); + } + /** Returns the builder for the settings used for calls to listRegions. */ public PagedCallSettings.Builder< ListRegionsRequest, ListRegionsResponse, ListRegionsPagedResponse> diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/gapic_metadata.json b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/gapic_metadata.json index b287efb47b18..11f5860d3d06 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/gapic_metadata.json +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/gapic_metadata.json @@ -322,6 +322,15 @@ "grpc": { "libraryClient": "RegionsServiceClient", "rpcs": { + "BatchCreateRegions": { + "methods": ["batchCreateRegions", "batchCreateRegionsCallable"] + }, + "BatchDeleteRegions": { + "methods": ["batchDeleteRegions", "batchDeleteRegionsCallable"] + }, + "BatchUpdateRegions": { + "methods": ["batchUpdateRegions", "batchUpdateRegionsCallable"] + }, "CreateRegion": { "methods": ["createRegion", "createRegion", "createRegion", "createRegionCallable"] }, diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/GrpcRegionsServiceStub.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/GrpcRegionsServiceStub.java index c48b3e18c5db..3f1f936578bf 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/GrpcRegionsServiceStub.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/GrpcRegionsServiceStub.java @@ -27,6 +27,11 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.longrunning.stub.GrpcOperationsStub; import com.google.protobuf.Empty; +import com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest; +import com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse; +import com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest; +import com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest; +import com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse; import com.google.shopping.merchant.accounts.v1.CreateRegionRequest; import com.google.shopping.merchant.accounts.v1.DeleteRegionRequest; import com.google.shopping.merchant.accounts.v1.GetRegionRequest; @@ -66,6 +71,19 @@ public class GrpcRegionsServiceStub extends RegionsServiceStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + batchCreateRegionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.shopping.merchant.accounts.v1.RegionsService/BatchCreateRegions") + .setRequestMarshaller( + ProtoUtils.marshaller(BatchCreateRegionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(BatchCreateRegionsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor updateRegionMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) @@ -75,6 +93,19 @@ public class GrpcRegionsServiceStub extends RegionsServiceStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + batchUpdateRegionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.shopping.merchant.accounts.v1.RegionsService/BatchUpdateRegions") + .setRequestMarshaller( + ProtoUtils.marshaller(BatchUpdateRegionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(BatchUpdateRegionsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor deleteRegionMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) @@ -84,6 +115,18 @@ public class GrpcRegionsServiceStub extends RegionsServiceStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + batchDeleteRegionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.shopping.merchant.accounts.v1.RegionsService/BatchDeleteRegions") + .setRequestMarshaller( + ProtoUtils.marshaller(BatchDeleteRegionsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor listRegionsMethodDescriptor = MethodDescriptor.newBuilder() @@ -97,8 +140,13 @@ public class GrpcRegionsServiceStub extends RegionsServiceStub { private final UnaryCallable getRegionCallable; private final UnaryCallable createRegionCallable; + private final UnaryCallable + batchCreateRegionsCallable; private final UnaryCallable updateRegionCallable; + private final UnaryCallable + batchUpdateRegionsCallable; private final UnaryCallable deleteRegionCallable; + private final UnaryCallable batchDeleteRegionsCallable; private final UnaryCallable listRegionsCallable; private final UnaryCallable listRegionsPagedCallable; @@ -167,6 +215,17 @@ protected GrpcRegionsServiceStub( return builder.build(); }) .build(); + GrpcCallSettings + batchCreateRegionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(batchCreateRegionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); GrpcCallSettings updateRegionTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateRegionMethodDescriptor) @@ -177,6 +236,17 @@ protected GrpcRegionsServiceStub( return builder.build(); }) .build(); + GrpcCallSettings + batchUpdateRegionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(batchUpdateRegionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); GrpcCallSettings deleteRegionTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteRegionMethodDescriptor) @@ -187,6 +257,16 @@ protected GrpcRegionsServiceStub( return builder.build(); }) .build(); + GrpcCallSettings batchDeleteRegionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(batchDeleteRegionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); GrpcCallSettings listRegionsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listRegionsMethodDescriptor) @@ -204,12 +284,27 @@ protected GrpcRegionsServiceStub( this.createRegionCallable = callableFactory.createUnaryCallable( createRegionTransportSettings, settings.createRegionSettings(), clientContext); + this.batchCreateRegionsCallable = + callableFactory.createUnaryCallable( + batchCreateRegionsTransportSettings, + settings.batchCreateRegionsSettings(), + clientContext); this.updateRegionCallable = callableFactory.createUnaryCallable( updateRegionTransportSettings, settings.updateRegionSettings(), clientContext); + this.batchUpdateRegionsCallable = + callableFactory.createUnaryCallable( + batchUpdateRegionsTransportSettings, + settings.batchUpdateRegionsSettings(), + clientContext); this.deleteRegionCallable = callableFactory.createUnaryCallable( deleteRegionTransportSettings, settings.deleteRegionSettings(), clientContext); + this.batchDeleteRegionsCallable = + callableFactory.createUnaryCallable( + batchDeleteRegionsTransportSettings, + settings.batchDeleteRegionsSettings(), + clientContext); this.listRegionsCallable = callableFactory.createUnaryCallable( listRegionsTransportSettings, settings.listRegionsSettings(), clientContext); @@ -235,16 +330,33 @@ public UnaryCallable createRegionCallable() { return createRegionCallable; } + @Override + public UnaryCallable + batchCreateRegionsCallable() { + return batchCreateRegionsCallable; + } + @Override public UnaryCallable updateRegionCallable() { return updateRegionCallable; } + @Override + public UnaryCallable + batchUpdateRegionsCallable() { + return batchUpdateRegionsCallable; + } + @Override public UnaryCallable deleteRegionCallable() { return deleteRegionCallable; } + @Override + public UnaryCallable batchDeleteRegionsCallable() { + return batchDeleteRegionsCallable; + } + @Override public UnaryCallable listRegionsCallable() { return listRegionsCallable; diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/HttpJsonRegionsServiceStub.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/HttpJsonRegionsServiceStub.java index d773b30ba552..07ad0ada4d36 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/HttpJsonRegionsServiceStub.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/HttpJsonRegionsServiceStub.java @@ -32,6 +32,11 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.protobuf.Empty; import com.google.protobuf.TypeRegistry; +import com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest; +import com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse; +import com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest; +import com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest; +import com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse; import com.google.shopping.merchant.accounts.v1.CreateRegionRequest; import com.google.shopping.merchant.accounts.v1.DeleteRegionRequest; import com.google.shopping.merchant.accounts.v1.GetRegionRequest; @@ -128,6 +133,44 @@ public class HttpJsonRegionsServiceStub extends RegionsServiceStub { .build()) .build(); + private static final ApiMethodDescriptor + batchCreateRegionsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.shopping.merchant.accounts.v1.RegionsService/BatchCreateRegions") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/accounts/v1/{parent=accounts/*}/regions:batchCreate", + 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(BatchCreateRegionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor updateRegionMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -167,6 +210,44 @@ public class HttpJsonRegionsServiceStub extends RegionsServiceStub { .build()) .build(); + private static final ApiMethodDescriptor + batchUpdateRegionsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.shopping.merchant.accounts.v1.RegionsService/BatchUpdateRegions") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/accounts/v1/{parent=accounts/*}/regions:batchUpdate", + 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(BatchUpdateRegionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor deleteRegionMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -201,6 +282,44 @@ public class HttpJsonRegionsServiceStub extends RegionsServiceStub { .build()) .build(); + private static final ApiMethodDescriptor + batchDeleteRegionsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.shopping.merchant.accounts.v1.RegionsService/BatchDeleteRegions") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/accounts/v1/{parent=accounts/*}/regions:batchDelete", + 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(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor listRegionsMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -239,8 +358,13 @@ public class HttpJsonRegionsServiceStub extends RegionsServiceStub { private final UnaryCallable getRegionCallable; private final UnaryCallable createRegionCallable; + private final UnaryCallable + batchCreateRegionsCallable; private final UnaryCallable updateRegionCallable; + private final UnaryCallable + batchUpdateRegionsCallable; private final UnaryCallable deleteRegionCallable; + private final UnaryCallable batchDeleteRegionsCallable; private final UnaryCallable listRegionsCallable; private final UnaryCallable listRegionsPagedCallable; @@ -309,6 +433,18 @@ protected HttpJsonRegionsServiceStub( return builder.build(); }) .build(); + HttpJsonCallSettings + batchCreateRegionsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(batchCreateRegionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); HttpJsonCallSettings updateRegionTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(updateRegionMethodDescriptor) @@ -320,6 +456,18 @@ protected HttpJsonRegionsServiceStub( return builder.build(); }) .build(); + HttpJsonCallSettings + batchUpdateRegionsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(batchUpdateRegionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); HttpJsonCallSettings deleteRegionTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(deleteRegionMethodDescriptor) @@ -331,6 +479,17 @@ protected HttpJsonRegionsServiceStub( return builder.build(); }) .build(); + HttpJsonCallSettings batchDeleteRegionsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(batchDeleteRegionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); HttpJsonCallSettings listRegionsTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(listRegionsMethodDescriptor) @@ -349,12 +508,27 @@ protected HttpJsonRegionsServiceStub( this.createRegionCallable = callableFactory.createUnaryCallable( createRegionTransportSettings, settings.createRegionSettings(), clientContext); + this.batchCreateRegionsCallable = + callableFactory.createUnaryCallable( + batchCreateRegionsTransportSettings, + settings.batchCreateRegionsSettings(), + clientContext); this.updateRegionCallable = callableFactory.createUnaryCallable( updateRegionTransportSettings, settings.updateRegionSettings(), clientContext); + this.batchUpdateRegionsCallable = + callableFactory.createUnaryCallable( + batchUpdateRegionsTransportSettings, + settings.batchUpdateRegionsSettings(), + clientContext); this.deleteRegionCallable = callableFactory.createUnaryCallable( deleteRegionTransportSettings, settings.deleteRegionSettings(), clientContext); + this.batchDeleteRegionsCallable = + callableFactory.createUnaryCallable( + batchDeleteRegionsTransportSettings, + settings.batchDeleteRegionsSettings(), + clientContext); this.listRegionsCallable = callableFactory.createUnaryCallable( listRegionsTransportSettings, settings.listRegionsSettings(), clientContext); @@ -371,8 +545,11 @@ public static List getMethodDescriptors() { List methodDescriptors = new ArrayList<>(); methodDescriptors.add(getRegionMethodDescriptor); methodDescriptors.add(createRegionMethodDescriptor); + methodDescriptors.add(batchCreateRegionsMethodDescriptor); methodDescriptors.add(updateRegionMethodDescriptor); + methodDescriptors.add(batchUpdateRegionsMethodDescriptor); methodDescriptors.add(deleteRegionMethodDescriptor); + methodDescriptors.add(batchDeleteRegionsMethodDescriptor); methodDescriptors.add(listRegionsMethodDescriptor); return methodDescriptors; } @@ -387,16 +564,33 @@ public UnaryCallable createRegionCallable() { return createRegionCallable; } + @Override + public UnaryCallable + batchCreateRegionsCallable() { + return batchCreateRegionsCallable; + } + @Override public UnaryCallable updateRegionCallable() { return updateRegionCallable; } + @Override + public UnaryCallable + batchUpdateRegionsCallable() { + return batchUpdateRegionsCallable; + } + @Override public UnaryCallable deleteRegionCallable() { return deleteRegionCallable; } + @Override + public UnaryCallable batchDeleteRegionsCallable() { + return batchDeleteRegionsCallable; + } + @Override public UnaryCallable listRegionsCallable() { return listRegionsCallable; diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/RegionsServiceStub.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/RegionsServiceStub.java index 806878c42337..1e0257aecb3c 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/RegionsServiceStub.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/RegionsServiceStub.java @@ -21,6 +21,11 @@ import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.UnaryCallable; import com.google.protobuf.Empty; +import com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest; +import com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse; +import com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest; +import com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest; +import com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse; import com.google.shopping.merchant.accounts.v1.CreateRegionRequest; import com.google.shopping.merchant.accounts.v1.DeleteRegionRequest; import com.google.shopping.merchant.accounts.v1.GetRegionRequest; @@ -47,14 +52,28 @@ public UnaryCallable createRegionCallable() { throw new UnsupportedOperationException("Not implemented: createRegionCallable()"); } + public UnaryCallable + batchCreateRegionsCallable() { + throw new UnsupportedOperationException("Not implemented: batchCreateRegionsCallable()"); + } + public UnaryCallable updateRegionCallable() { throw new UnsupportedOperationException("Not implemented: updateRegionCallable()"); } + public UnaryCallable + batchUpdateRegionsCallable() { + throw new UnsupportedOperationException("Not implemented: batchUpdateRegionsCallable()"); + } + public UnaryCallable deleteRegionCallable() { throw new UnsupportedOperationException("Not implemented: deleteRegionCallable()"); } + public UnaryCallable batchDeleteRegionsCallable() { + throw new UnsupportedOperationException("Not implemented: batchDeleteRegionsCallable()"); + } + public UnaryCallable listRegionsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listRegionsPagedCallable()"); } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/RegionsServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/RegionsServiceStubSettings.java index c21be361c590..25fc32ebeeb9 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/RegionsServiceStubSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/RegionsServiceStubSettings.java @@ -49,6 +49,11 @@ import com.google.common.collect.ImmutableSet; import com.google.common.collect.Lists; import com.google.protobuf.Empty; +import com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest; +import com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse; +import com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest; +import com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest; +import com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse; import com.google.shopping.merchant.accounts.v1.CreateRegionRequest; import com.google.shopping.merchant.accounts.v1.DeleteRegionRequest; import com.google.shopping.merchant.accounts.v1.GetRegionRequest; @@ -119,8 +124,13 @@ public class RegionsServiceStubSettings extends StubSettings getRegionSettings; private final UnaryCallSettings createRegionSettings; + private final UnaryCallSettings + batchCreateRegionsSettings; private final UnaryCallSettings updateRegionSettings; + private final UnaryCallSettings + batchUpdateRegionsSettings; private final UnaryCallSettings deleteRegionSettings; + private final UnaryCallSettings batchDeleteRegionsSettings; private final PagedCallSettings listRegionsSettings; @@ -185,16 +195,33 @@ public UnaryCallSettings createRegionSettings() { return createRegionSettings; } + /** Returns the object with the settings used for calls to batchCreateRegions. */ + public UnaryCallSettings + batchCreateRegionsSettings() { + return batchCreateRegionsSettings; + } + /** Returns the object with the settings used for calls to updateRegion. */ public UnaryCallSettings updateRegionSettings() { return updateRegionSettings; } + /** Returns the object with the settings used for calls to batchUpdateRegions. */ + public UnaryCallSettings + batchUpdateRegionsSettings() { + return batchUpdateRegionsSettings; + } + /** Returns the object with the settings used for calls to deleteRegion. */ public UnaryCallSettings deleteRegionSettings() { return deleteRegionSettings; } + /** Returns the object with the settings used for calls to batchDeleteRegions. */ + public UnaryCallSettings batchDeleteRegionsSettings() { + return batchDeleteRegionsSettings; + } + /** Returns the object with the settings used for calls to listRegions. */ public PagedCallSettings listRegionsSettings() { @@ -314,8 +341,11 @@ protected RegionsServiceStubSettings(Builder settingsBuilder) throws IOException getRegionSettings = settingsBuilder.getRegionSettings().build(); createRegionSettings = settingsBuilder.createRegionSettings().build(); + batchCreateRegionsSettings = settingsBuilder.batchCreateRegionsSettings().build(); updateRegionSettings = settingsBuilder.updateRegionSettings().build(); + batchUpdateRegionsSettings = settingsBuilder.batchUpdateRegionsSettings().build(); deleteRegionSettings = settingsBuilder.deleteRegionSettings().build(); + batchDeleteRegionsSettings = settingsBuilder.batchDeleteRegionsSettings().build(); listRegionsSettings = settingsBuilder.listRegionsSettings().build(); } @@ -324,8 +354,14 @@ public static class Builder extends StubSettings.Builder> unaryMethodSettingsBuilders; private final UnaryCallSettings.Builder getRegionSettings; private final UnaryCallSettings.Builder createRegionSettings; + private final UnaryCallSettings.Builder + batchCreateRegionsSettings; private final UnaryCallSettings.Builder updateRegionSettings; + private final UnaryCallSettings.Builder + batchUpdateRegionsSettings; private final UnaryCallSettings.Builder deleteRegionSettings; + private final UnaryCallSettings.Builder + batchDeleteRegionsSettings; private final PagedCallSettings.Builder< ListRegionsRequest, ListRegionsResponse, ListRegionsPagedResponse> listRegionsSettings; @@ -369,16 +405,22 @@ protected Builder(ClientContext clientContext) { getRegionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createRegionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchCreateRegionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateRegionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchUpdateRegionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteRegionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchDeleteRegionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listRegionsSettings = PagedCallSettings.newBuilder(LIST_REGIONS_PAGE_STR_FACT); unaryMethodSettingsBuilders = ImmutableList.>of( getRegionSettings, createRegionSettings, + batchCreateRegionsSettings, updateRegionSettings, + batchUpdateRegionsSettings, deleteRegionSettings, + batchDeleteRegionsSettings, listRegionsSettings); initDefaults(this); } @@ -388,16 +430,22 @@ protected Builder(RegionsServiceStubSettings settings) { getRegionSettings = settings.getRegionSettings.toBuilder(); createRegionSettings = settings.createRegionSettings.toBuilder(); + batchCreateRegionsSettings = settings.batchCreateRegionsSettings.toBuilder(); updateRegionSettings = settings.updateRegionSettings.toBuilder(); + batchUpdateRegionsSettings = settings.batchUpdateRegionsSettings.toBuilder(); deleteRegionSettings = settings.deleteRegionSettings.toBuilder(); + batchDeleteRegionsSettings = settings.batchDeleteRegionsSettings.toBuilder(); listRegionsSettings = settings.listRegionsSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( getRegionSettings, createRegionSettings, + batchCreateRegionsSettings, updateRegionSettings, + batchUpdateRegionsSettings, deleteRegionSettings, + batchDeleteRegionsSettings, listRegionsSettings); } @@ -436,16 +484,31 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder + .batchCreateRegionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .updateRegionSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder + .batchUpdateRegionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .deleteRegionSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder + .batchDeleteRegionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .listRegionsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) @@ -479,16 +542,34 @@ public UnaryCallSettings.Builder createRegionSettin return createRegionSettings; } + /** Returns the builder for the settings used for calls to batchCreateRegions. */ + public UnaryCallSettings.Builder + batchCreateRegionsSettings() { + return batchCreateRegionsSettings; + } + /** Returns the builder for the settings used for calls to updateRegion. */ public UnaryCallSettings.Builder updateRegionSettings() { return updateRegionSettings; } + /** Returns the builder for the settings used for calls to batchUpdateRegions. */ + public UnaryCallSettings.Builder + batchUpdateRegionsSettings() { + return batchUpdateRegionsSettings; + } + /** Returns the builder for the settings used for calls to deleteRegion. */ public UnaryCallSettings.Builder deleteRegionSettings() { return deleteRegionSettings; } + /** Returns the builder for the settings used for calls to batchDeleteRegions. */ + public UnaryCallSettings.Builder + batchDeleteRegionsSettings() { + return batchDeleteRegionsSettings; + } + /** Returns the builder for the settings used for calls to listRegions. */ public PagedCallSettings.Builder< ListRegionsRequest, ListRegionsResponse, ListRegionsPagedResponse> diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/resources/META-INF/native-image/com.google.shopping.merchant.accounts.v1/reflect-config.json b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/resources/META-INF/native-image/com.google.shopping.merchant.accounts.v1/reflect-config.json index 053db7d22124..ae261280d171 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/resources/META-INF/native-image/com.google.shopping.merchant.accounts.v1/reflect-config.json +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/resources/META-INF/native-image/com.google.shopping.merchant.accounts.v1/reflect-config.json @@ -1763,6 +1763,96 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.shopping.merchant.accounts.v1.BusinessDayConfig", "queryAllDeclaredConstructors": true, diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/test/java/com/google/shopping/merchant/accounts/v1/MockRegionsServiceImpl.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/test/java/com/google/shopping/merchant/accounts/v1/MockRegionsServiceImpl.java index ac7b0ea83754..408468c33402 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/test/java/com/google/shopping/merchant/accounts/v1/MockRegionsServiceImpl.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/test/java/com/google/shopping/merchant/accounts/v1/MockRegionsServiceImpl.java @@ -99,6 +99,28 @@ public void createRegion(CreateRegionRequest request, StreamObserver res } } + @Override + public void batchCreateRegions( + BatchCreateRegionsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof BatchCreateRegionsResponse) { + requests.add(request); + responseObserver.onNext(((BatchCreateRegionsResponse) 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 BatchCreateRegions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + BatchCreateRegionsResponse.class.getName(), + Exception.class.getName()))); + } + } + @Override public void updateRegion(UpdateRegionRequest request, StreamObserver responseObserver) { Object response = responses.poll(); @@ -119,6 +141,28 @@ public void updateRegion(UpdateRegionRequest request, StreamObserver res } } + @Override + public void batchUpdateRegions( + BatchUpdateRegionsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof BatchUpdateRegionsResponse) { + requests.add(request); + responseObserver.onNext(((BatchUpdateRegionsResponse) 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 BatchUpdateRegions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + BatchUpdateRegionsResponse.class.getName(), + Exception.class.getName()))); + } + } + @Override public void deleteRegion(DeleteRegionRequest request, StreamObserver responseObserver) { Object response = responses.poll(); @@ -139,6 +183,27 @@ public void deleteRegion(DeleteRegionRequest request, StreamObserver resp } } + @Override + public void batchDeleteRegions( + BatchDeleteRegionsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) 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 BatchDeleteRegions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + @Override public void listRegions( ListRegionsRequest request, StreamObserver responseObserver) { diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/test/java/com/google/shopping/merchant/accounts/v1/RegionsServiceClientHttpJsonTest.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/test/java/com/google/shopping/merchant/accounts/v1/RegionsServiceClientHttpJsonTest.java index cde7fece869d..06030865dd05 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/test/java/com/google/shopping/merchant/accounts/v1/RegionsServiceClientHttpJsonTest.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/test/java/com/google/shopping/merchant/accounts/v1/RegionsServiceClientHttpJsonTest.java @@ -33,6 +33,7 @@ import com.google.protobuf.FieldMask; import com.google.shopping.merchant.accounts.v1.stub.HttpJsonRegionsServiceStub; import java.io.IOException; +import java.util.ArrayList; import java.util.Arrays; import java.util.List; import javax.annotation.Generated; @@ -282,6 +283,56 @@ public void createRegionExceptionTest2() throws Exception { } } + @Test + public void batchCreateRegionsTest() throws Exception { + BatchCreateRegionsResponse expectedResponse = + BatchCreateRegionsResponse.newBuilder().addAllRegions(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + BatchCreateRegionsRequest request = + BatchCreateRegionsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllRequests(new ArrayList()) + .build(); + + BatchCreateRegionsResponse actualResponse = client.batchCreateRegions(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 batchCreateRegionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BatchCreateRegionsRequest request = + BatchCreateRegionsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllRequests(new ArrayList()) + .build(); + client.batchCreateRegions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void updateRegionTest() throws Exception { Region expectedResponse = @@ -349,6 +400,56 @@ public void updateRegionExceptionTest() throws Exception { } } + @Test + public void batchUpdateRegionsTest() throws Exception { + BatchUpdateRegionsResponse expectedResponse = + BatchUpdateRegionsResponse.newBuilder().addAllRegions(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + BatchUpdateRegionsRequest request = + BatchUpdateRegionsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllRequests(new ArrayList()) + .build(); + + BatchUpdateRegionsResponse actualResponse = client.batchUpdateRegions(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 batchUpdateRegionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BatchUpdateRegionsRequest request = + BatchUpdateRegionsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllRequests(new ArrayList()) + .build(); + client.batchUpdateRegions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void deleteRegionTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); @@ -429,6 +530,54 @@ public void deleteRegionExceptionTest2() throws Exception { } } + @Test + public void batchDeleteRegionsTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + BatchDeleteRegionsRequest request = + BatchDeleteRegionsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllRequests(new ArrayList()) + .build(); + + client.batchDeleteRegions(request); + + 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 batchDeleteRegionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BatchDeleteRegionsRequest request = + BatchDeleteRegionsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllRequests(new ArrayList()) + .build(); + client.batchDeleteRegions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listRegionsTest() throws Exception { Region responsesElement = Region.newBuilder().build(); diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/test/java/com/google/shopping/merchant/accounts/v1/RegionsServiceClientTest.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/test/java/com/google/shopping/merchant/accounts/v1/RegionsServiceClientTest.java index 9f495cb3d53c..96defb41e984 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/test/java/com/google/shopping/merchant/accounts/v1/RegionsServiceClientTest.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/test/java/com/google/shopping/merchant/accounts/v1/RegionsServiceClientTest.java @@ -32,6 +32,7 @@ import com.google.protobuf.FieldMask; import io.grpc.StatusRuntimeException; import java.io.IOException; +import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.UUID; @@ -265,6 +266,51 @@ public void createRegionExceptionTest2() throws Exception { } } + @Test + public void batchCreateRegionsTest() throws Exception { + BatchCreateRegionsResponse expectedResponse = + BatchCreateRegionsResponse.newBuilder().addAllRegions(new ArrayList()).build(); + mockRegionsService.addResponse(expectedResponse); + + BatchCreateRegionsRequest request = + BatchCreateRegionsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllRequests(new ArrayList()) + .build(); + + BatchCreateRegionsResponse actualResponse = client.batchCreateRegions(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockRegionsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BatchCreateRegionsRequest actualRequest = ((BatchCreateRegionsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getRequestsList(), actualRequest.getRequestsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void batchCreateRegionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockRegionsService.addException(exception); + + try { + BatchCreateRegionsRequest request = + BatchCreateRegionsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllRequests(new ArrayList()) + .build(); + client.batchCreateRegions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void updateRegionTest() throws Exception { Region expectedResponse = @@ -311,6 +357,51 @@ public void updateRegionExceptionTest() throws Exception { } } + @Test + public void batchUpdateRegionsTest() throws Exception { + BatchUpdateRegionsResponse expectedResponse = + BatchUpdateRegionsResponse.newBuilder().addAllRegions(new ArrayList()).build(); + mockRegionsService.addResponse(expectedResponse); + + BatchUpdateRegionsRequest request = + BatchUpdateRegionsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllRequests(new ArrayList()) + .build(); + + BatchUpdateRegionsResponse actualResponse = client.batchUpdateRegions(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockRegionsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BatchUpdateRegionsRequest actualRequest = ((BatchUpdateRegionsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getRequestsList(), actualRequest.getRequestsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void batchUpdateRegionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockRegionsService.addException(exception); + + try { + BatchUpdateRegionsRequest request = + BatchUpdateRegionsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllRequests(new ArrayList()) + .build(); + client.batchUpdateRegions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void deleteRegionTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); @@ -379,6 +470,49 @@ public void deleteRegionExceptionTest2() throws Exception { } } + @Test + public void batchDeleteRegionsTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockRegionsService.addResponse(expectedResponse); + + BatchDeleteRegionsRequest request = + BatchDeleteRegionsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllRequests(new ArrayList()) + .build(); + + client.batchDeleteRegions(request); + + List actualRequests = mockRegionsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BatchDeleteRegionsRequest actualRequest = ((BatchDeleteRegionsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getRequestsList(), actualRequest.getRequestsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void batchDeleteRegionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockRegionsService.addException(exception); + + try { + BatchDeleteRegionsRequest request = + BatchDeleteRegionsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllRequests(new ArrayList()) + .build(); + client.batchDeleteRegions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listRegionsTest() throws Exception { Region responsesElement = Region.newBuilder().build(); diff --git a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/RegionsServiceGrpc.java b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/RegionsServiceGrpc.java index 21c7d71885be..e6baa2a1a496 100644 --- a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/RegionsServiceGrpc.java +++ b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/RegionsServiceGrpc.java @@ -129,6 +129,54 @@ private RegionsServiceGrpc() {} return getCreateRegionMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest, + com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse> + getBatchCreateRegionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BatchCreateRegions", + requestType = com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest.class, + responseType = com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest, + com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse> + getBatchCreateRegionsMethod() { + io.grpc.MethodDescriptor< + com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest, + com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse> + getBatchCreateRegionsMethod; + if ((getBatchCreateRegionsMethod = RegionsServiceGrpc.getBatchCreateRegionsMethod) == null) { + synchronized (RegionsServiceGrpc.class) { + if ((getBatchCreateRegionsMethod = RegionsServiceGrpc.getBatchCreateRegionsMethod) + == null) { + RegionsServiceGrpc.getBatchCreateRegionsMethod = + getBatchCreateRegionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchCreateRegions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new RegionsServiceMethodDescriptorSupplier("BatchCreateRegions")) + .build(); + } + } + } + return getBatchCreateRegionsMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.shopping.merchant.accounts.v1.UpdateRegionRequest, com.google.shopping.merchant.accounts.v1.Region> @@ -175,6 +223,54 @@ private RegionsServiceGrpc() {} return getUpdateRegionMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest, + com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse> + getBatchUpdateRegionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BatchUpdateRegions", + requestType = com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest.class, + responseType = com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest, + com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse> + getBatchUpdateRegionsMethod() { + io.grpc.MethodDescriptor< + com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest, + com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse> + getBatchUpdateRegionsMethod; + if ((getBatchUpdateRegionsMethod = RegionsServiceGrpc.getBatchUpdateRegionsMethod) == null) { + synchronized (RegionsServiceGrpc.class) { + if ((getBatchUpdateRegionsMethod = RegionsServiceGrpc.getBatchUpdateRegionsMethod) + == null) { + RegionsServiceGrpc.getBatchUpdateRegionsMethod = + getBatchUpdateRegionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchUpdateRegions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new RegionsServiceMethodDescriptorSupplier("BatchUpdateRegions")) + .build(); + } + } + } + return getBatchUpdateRegionsMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.shopping.merchant.accounts.v1.DeleteRegionRequest, com.google.protobuf.Empty> getDeleteRegionMethod; @@ -218,6 +314,53 @@ private RegionsServiceGrpc() {} return getDeleteRegionMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest, + com.google.protobuf.Empty> + getBatchDeleteRegionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BatchDeleteRegions", + requestType = com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest, + com.google.protobuf.Empty> + getBatchDeleteRegionsMethod() { + io.grpc.MethodDescriptor< + com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest, + com.google.protobuf.Empty> + getBatchDeleteRegionsMethod; + if ((getBatchDeleteRegionsMethod = RegionsServiceGrpc.getBatchDeleteRegionsMethod) == null) { + synchronized (RegionsServiceGrpc.class) { + if ((getBatchDeleteRegionsMethod = RegionsServiceGrpc.getBatchDeleteRegionsMethod) + == null) { + RegionsServiceGrpc.getBatchDeleteRegionsMethod = + getBatchDeleteRegionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchDeleteRegions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new RegionsServiceMethodDescriptorSupplier("BatchDeleteRegions")) + .build(); + } + } + } + return getBatchDeleteRegionsMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.shopping.merchant.accounts.v1.ListRegionsRequest, com.google.shopping.merchant.accounts.v1.ListRegionsResponse> @@ -360,6 +503,23 @@ default void createRegion( getCreateRegionMethod(), responseObserver); } + /** + * + * + *
    +     * Creates one or more regions in your Merchant Center account.
    +     * Executing this method requires admin access.
    +     * 
    + */ + default void batchCreateRegions( + com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest request, + io.grpc.stub.StreamObserver< + com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchCreateRegionsMethod(), responseObserver); + } + /** * * @@ -376,6 +536,23 @@ default void updateRegion( getUpdateRegionMethod(), responseObserver); } + /** + * + * + *
    +     * Updates one or more regions in your Merchant Center account.
    +     * Executing this method requires admin access.
    +     * 
    + */ + default void batchUpdateRegions( + com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest request, + io.grpc.stub.StreamObserver< + com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchUpdateRegionsMethod(), responseObserver); + } + /** * * @@ -391,6 +568,21 @@ default void deleteRegion( getDeleteRegionMethod(), responseObserver); } + /** + * + * + *
    +     * Deletes multiple regions by name from your Merchant Center account.
    +     * Executing this method requires admin access.
    +     * 
    + */ + default void batchDeleteRegions( + com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchDeleteRegionsMethod(), responseObserver); + } + /** * * @@ -478,6 +670,25 @@ public void createRegion( responseObserver); } + /** + * + * + *
    +     * Creates one or more regions in your Merchant Center account.
    +     * Executing this method requires admin access.
    +     * 
    + */ + public void batchCreateRegions( + com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest request, + io.grpc.stub.StreamObserver< + com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchCreateRegionsMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -496,6 +707,25 @@ public void updateRegion( responseObserver); } + /** + * + * + *
    +     * Updates one or more regions in your Merchant Center account.
    +     * Executing this method requires admin access.
    +     * 
    + */ + public void batchUpdateRegions( + com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest request, + io.grpc.stub.StreamObserver< + com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchUpdateRegionsMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -513,6 +743,23 @@ public void deleteRegion( responseObserver); } + /** + * + * + *
    +     * Deletes multiple regions by name from your Merchant Center account.
    +     * Executing this method requires admin access.
    +     * 
    + */ + public void batchDeleteRegions( + com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchDeleteRegionsMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -579,6 +826,20 @@ public com.google.shopping.merchant.accounts.v1.Region createRegion( getChannel(), getCreateRegionMethod(), getCallOptions(), request); } + /** + * + * + *
    +     * Creates one or more regions in your Merchant Center account.
    +     * Executing this method requires admin access.
    +     * 
    + */ + public com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse batchCreateRegions( + com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchCreateRegionsMethod(), getCallOptions(), request); + } + /** * * @@ -593,6 +854,20 @@ public com.google.shopping.merchant.accounts.v1.Region updateRegion( getChannel(), getUpdateRegionMethod(), getCallOptions(), request); } + /** + * + * + *
    +     * Updates one or more regions in your Merchant Center account.
    +     * Executing this method requires admin access.
    +     * 
    + */ + public com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse batchUpdateRegions( + com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchUpdateRegionsMethod(), getCallOptions(), request); + } + /** * * @@ -607,6 +882,20 @@ public com.google.protobuf.Empty deleteRegion( getChannel(), getDeleteRegionMethod(), getCallOptions(), request); } + /** + * + * + *
    +     * Deletes multiple regions by name from your Merchant Center account.
    +     * Executing this method requires admin access.
    +     * 
    + */ + public com.google.protobuf.Empty batchDeleteRegions( + com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchDeleteRegionsMethod(), getCallOptions(), request); + } + /** * * @@ -669,6 +958,20 @@ public com.google.shopping.merchant.accounts.v1.Region createRegion( getChannel(), getCreateRegionMethod(), getCallOptions(), request); } + /** + * + * + *
    +     * Creates one or more regions in your Merchant Center account.
    +     * Executing this method requires admin access.
    +     * 
    + */ + public com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse batchCreateRegions( + com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchCreateRegionsMethod(), getCallOptions(), request); + } + /** * * @@ -683,6 +986,20 @@ public com.google.shopping.merchant.accounts.v1.Region updateRegion( getChannel(), getUpdateRegionMethod(), getCallOptions(), request); } + /** + * + * + *
    +     * Updates one or more regions in your Merchant Center account.
    +     * Executing this method requires admin access.
    +     * 
    + */ + public com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse batchUpdateRegions( + com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchUpdateRegionsMethod(), getCallOptions(), request); + } + /** * * @@ -697,6 +1014,20 @@ public com.google.protobuf.Empty deleteRegion( getChannel(), getDeleteRegionMethod(), getCallOptions(), request); } + /** + * + * + *
    +     * Deletes multiple regions by name from your Merchant Center account.
    +     * Executing this method requires admin access.
    +     * 
    + */ + public com.google.protobuf.Empty batchDeleteRegions( + com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchDeleteRegionsMethod(), getCallOptions(), request); + } + /** * * @@ -761,6 +1092,22 @@ protected RegionsServiceFutureStub build( getChannel().newCall(getCreateRegionMethod(), getCallOptions()), request); } + /** + * + * + *
    +     * Creates one or more regions in your Merchant Center account.
    +     * Executing this method requires admin access.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse> + batchCreateRegions( + com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchCreateRegionsMethod(), getCallOptions()), request); + } + /** * * @@ -776,6 +1123,22 @@ protected RegionsServiceFutureStub build( getChannel().newCall(getUpdateRegionMethod(), getCallOptions()), request); } + /** + * + * + *
    +     * Updates one or more regions in your Merchant Center account.
    +     * Executing this method requires admin access.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse> + batchUpdateRegions( + com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchUpdateRegionsMethod(), getCallOptions()), request); + } + /** * * @@ -790,6 +1153,21 @@ protected RegionsServiceFutureStub build( getChannel().newCall(getDeleteRegionMethod(), getCallOptions()), request); } + /** + * + * + *
    +     * Deletes multiple regions by name from your Merchant Center account.
    +     * Executing this method requires admin access.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + batchDeleteRegions( + com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchDeleteRegionsMethod(), getCallOptions()), request); + } + /** * * @@ -807,9 +1185,12 @@ protected RegionsServiceFutureStub build( private static final int METHODID_GET_REGION = 0; private static final int METHODID_CREATE_REGION = 1; - private static final int METHODID_UPDATE_REGION = 2; - private static final int METHODID_DELETE_REGION = 3; - private static final int METHODID_LIST_REGIONS = 4; + private static final int METHODID_BATCH_CREATE_REGIONS = 2; + private static final int METHODID_UPDATE_REGION = 3; + private static final int METHODID_BATCH_UPDATE_REGIONS = 4; + private static final int METHODID_DELETE_REGION = 5; + private static final int METHODID_BATCH_DELETE_REGIONS = 6; + private static final int METHODID_LIST_REGIONS = 7; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -840,17 +1221,36 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_BATCH_CREATE_REGIONS: + serviceImpl.batchCreateRegions( + (com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse>) + responseObserver); + break; case METHODID_UPDATE_REGION: serviceImpl.updateRegion( (com.google.shopping.merchant.accounts.v1.UpdateRegionRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_BATCH_UPDATE_REGIONS: + serviceImpl.batchUpdateRegions( + (com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse>) + responseObserver); + break; case METHODID_DELETE_REGION: serviceImpl.deleteRegion( (com.google.shopping.merchant.accounts.v1.DeleteRegionRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_BATCH_DELETE_REGIONS: + serviceImpl.batchDeleteRegions( + (com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_LIST_REGIONS: serviceImpl.listRegions( (com.google.shopping.merchant.accounts.v1.ListRegionsRequest) request, @@ -889,6 +1289,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.shopping.merchant.accounts.v1.CreateRegionRequest, com.google.shopping.merchant.accounts.v1.Region>( service, METHODID_CREATE_REGION))) + .addMethod( + getBatchCreateRegionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest, + com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse>( + service, METHODID_BATCH_CREATE_REGIONS))) .addMethod( getUpdateRegionMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -896,12 +1303,25 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.shopping.merchant.accounts.v1.UpdateRegionRequest, com.google.shopping.merchant.accounts.v1.Region>( service, METHODID_UPDATE_REGION))) + .addMethod( + getBatchUpdateRegionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest, + com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse>( + service, METHODID_BATCH_UPDATE_REGIONS))) .addMethod( getDeleteRegionMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.shopping.merchant.accounts.v1.DeleteRegionRequest, com.google.protobuf.Empty>(service, METHODID_DELETE_REGION))) + .addMethod( + getBatchDeleteRegionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest, + com.google.protobuf.Empty>(service, METHODID_BATCH_DELETE_REGIONS))) .addMethod( getListRegionsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -962,8 +1382,11 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .setSchemaDescriptor(new RegionsServiceFileDescriptorSupplier()) .addMethod(getGetRegionMethod()) .addMethod(getCreateRegionMethod()) + .addMethod(getBatchCreateRegionsMethod()) .addMethod(getUpdateRegionMethod()) + .addMethod(getBatchUpdateRegionsMethod()) .addMethod(getDeleteRegionMethod()) + .addMethod(getBatchDeleteRegionsMethod()) .addMethod(getListRegionsMethod()) .build(); } diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/BatchCreateRegionsRequest.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/BatchCreateRegionsRequest.java new file mode 100644 index 000000000000..6e0f179cbaa7 --- /dev/null +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/BatchCreateRegionsRequest.java @@ -0,0 +1,1272 @@ +/* + * 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/shopping/merchant/accounts/v1/regions.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.accounts.v1; + +/** + * + * + *
    + * Request message for the `BatchCreateRegions` method.
    + * 
    + * + * Protobuf type {@code google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest} + */ +public final class BatchCreateRegionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest) + BatchCreateRegionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchCreateRegionsRequest.newBuilder() to construct. + private BatchCreateRegionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchCreateRegionsRequest() { + parent_ = ""; + requests_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchCreateRegionsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.accounts.v1.RegionsProto + .internal_static_google_shopping_merchant_accounts_v1_BatchCreateRegionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.accounts.v1.RegionsProto + .internal_static_google_shopping_merchant_accounts_v1_BatchCreateRegionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest.class, + com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
    +   * Required. The account to create one or more regions for.
    +   * Format: `accounts/{account}`
    +   * 
    + * + * + * 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 account to create one or more regions for.
    +   * Format: `accounts/{account}`
    +   * 
    + * + * + * 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 REQUESTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List requests_; + + /** + * + * + *
    +   * Required. The region(s) to create.
    +   * The maximum number of regions that can be created in a batch is 100.
    +   * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.CreateRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getRequestsList() { + return requests_; + } + + /** + * + * + *
    +   * Required. The region(s) to create.
    +   * The maximum number of regions that can be created in a batch is 100.
    +   * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.CreateRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.shopping.merchant.accounts.v1.CreateRegionRequestOrBuilder> + getRequestsOrBuilderList() { + return requests_; + } + + /** + * + * + *
    +   * Required. The region(s) to create.
    +   * The maximum number of regions that can be created in a batch is 100.
    +   * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.CreateRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getRequestsCount() { + return requests_.size(); + } + + /** + * + * + *
    +   * Required. The region(s) to create.
    +   * The maximum number of regions that can be created in a batch is 100.
    +   * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.CreateRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.shopping.merchant.accounts.v1.CreateRegionRequest getRequests(int index) { + return requests_.get(index); + } + + /** + * + * + *
    +   * Required. The region(s) to create.
    +   * The maximum number of regions that can be created in a batch is 100.
    +   * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.CreateRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.shopping.merchant.accounts.v1.CreateRegionRequestOrBuilder getRequestsOrBuilder( + int index) { + return requests_.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(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + for (int i = 0; i < requests_.size(); i++) { + output.writeMessage(2, requests_.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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + for (int i = 0; i < requests_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, requests_.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.shopping.merchant.accounts.v1.BatchCreateRegionsRequest)) { + return super.equals(obj); + } + com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest other = + (com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getRequestsList().equals(other.getRequestsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (getRequestsCount() > 0) { + hash = (37 * hash) + REQUESTS_FIELD_NUMBER; + hash = (53 * hash) + getRequestsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request message for the `BatchCreateRegions` method.
    +   * 
    + * + * Protobuf type {@code google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest) + com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.accounts.v1.RegionsProto + .internal_static_google_shopping_merchant_accounts_v1_BatchCreateRegionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.accounts.v1.RegionsProto + .internal_static_google_shopping_merchant_accounts_v1_BatchCreateRegionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest.class, + com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest.Builder.class); + } + + // Construct using + // com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + } else { + requests_ = null; + requestsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.accounts.v1.RegionsProto + .internal_static_google_shopping_merchant_accounts_v1_BatchCreateRegionsRequest_descriptor; + } + + @java.lang.Override + public com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest + getDefaultInstanceForType() { + return com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest build() { + com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest buildPartial() { + com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest result = + new com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest result) { + if (requestsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + requests_ = java.util.Collections.unmodifiableList(requests_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.requests_ = requests_; + } else { + result.requests_ = requestsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest) { + return mergeFrom( + (com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest other) { + if (other + == com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (requestsBuilder_ == null) { + if (!other.requests_.isEmpty()) { + if (requests_.isEmpty()) { + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRequestsIsMutable(); + requests_.addAll(other.requests_); + } + onChanged(); + } + } else { + if (!other.requests_.isEmpty()) { + if (requestsBuilder_.isEmpty()) { + requestsBuilder_.dispose(); + requestsBuilder_ = null; + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + requestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRequestsFieldBuilder() + : null; + } else { + requestsBuilder_.addAllMessages(other.requests_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.shopping.merchant.accounts.v1.CreateRegionRequest m = + input.readMessage( + com.google.shopping.merchant.accounts.v1.CreateRegionRequest.parser(), + extensionRegistry); + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(m); + } else { + requestsBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
    +     * Required. The account to create one or more regions for.
    +     * Format: `accounts/{account}`
    +     * 
    + * + * + * 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 account to create one or more regions for.
    +     * Format: `accounts/{account}`
    +     * 
    + * + * + * 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 account to create one or more regions for.
    +     * Format: `accounts/{account}`
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The account to create one or more regions for.
    +     * Format: `accounts/{account}`
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The account to create one or more regions for.
    +     * Format: `accounts/{account}`
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List requests_ = + java.util.Collections.emptyList(); + + private void ensureRequestsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + requests_ = + new java.util.ArrayList( + requests_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.shopping.merchant.accounts.v1.CreateRegionRequest, + com.google.shopping.merchant.accounts.v1.CreateRegionRequest.Builder, + com.google.shopping.merchant.accounts.v1.CreateRegionRequestOrBuilder> + requestsBuilder_; + + /** + * + * + *
    +     * Required. The region(s) to create.
    +     * The maximum number of regions that can be created in a batch is 100.
    +     * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.CreateRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRequestsList() { + if (requestsBuilder_ == null) { + return java.util.Collections.unmodifiableList(requests_); + } else { + return requestsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * Required. The region(s) to create.
    +     * The maximum number of regions that can be created in a batch is 100.
    +     * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.CreateRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getRequestsCount() { + if (requestsBuilder_ == null) { + return requests_.size(); + } else { + return requestsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * Required. The region(s) to create.
    +     * The maximum number of regions that can be created in a batch is 100.
    +     * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.CreateRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.shopping.merchant.accounts.v1.CreateRegionRequest getRequests(int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * Required. The region(s) to create.
    +     * The maximum number of regions that can be created in a batch is 100.
    +     * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.CreateRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequests( + int index, com.google.shopping.merchant.accounts.v1.CreateRegionRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.set(index, value); + onChanged(); + } else { + requestsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Required. The region(s) to create.
    +     * The maximum number of regions that can be created in a batch is 100.
    +     * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.CreateRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequests( + int index, + com.google.shopping.merchant.accounts.v1.CreateRegionRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.set(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Required. The region(s) to create.
    +     * The maximum number of regions that can be created in a batch is 100.
    +     * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.CreateRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests(com.google.shopping.merchant.accounts.v1.CreateRegionRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(value); + onChanged(); + } else { + requestsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * Required. The region(s) to create.
    +     * The maximum number of regions that can be created in a batch is 100.
    +     * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.CreateRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + int index, com.google.shopping.merchant.accounts.v1.CreateRegionRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(index, value); + onChanged(); + } else { + requestsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Required. The region(s) to create.
    +     * The maximum number of regions that can be created in a batch is 100.
    +     * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.CreateRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + com.google.shopping.merchant.accounts.v1.CreateRegionRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Required. The region(s) to create.
    +     * The maximum number of regions that can be created in a batch is 100.
    +     * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.CreateRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + int index, + com.google.shopping.merchant.accounts.v1.CreateRegionRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Required. The region(s) to create.
    +     * The maximum number of regions that can be created in a batch is 100.
    +     * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.CreateRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllRequests( + java.lang.Iterable + values) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); + onChanged(); + } else { + requestsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * Required. The region(s) to create.
    +     * The maximum number of regions that can be created in a batch is 100.
    +     * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.CreateRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRequests() { + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + requestsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Required. The region(s) to create.
    +     * The maximum number of regions that can be created in a batch is 100.
    +     * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.CreateRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeRequests(int index) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.remove(index); + onChanged(); + } else { + requestsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * Required. The region(s) to create.
    +     * The maximum number of regions that can be created in a batch is 100.
    +     * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.CreateRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.shopping.merchant.accounts.v1.CreateRegionRequest.Builder getRequestsBuilder( + int index) { + return getRequestsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * Required. The region(s) to create.
    +     * The maximum number of regions that can be created in a batch is 100.
    +     * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.CreateRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.shopping.merchant.accounts.v1.CreateRegionRequestOrBuilder + getRequestsOrBuilder(int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * Required. The region(s) to create.
    +     * The maximum number of regions that can be created in a batch is 100.
    +     * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.CreateRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends com.google.shopping.merchant.accounts.v1.CreateRegionRequestOrBuilder> + getRequestsOrBuilderList() { + if (requestsBuilder_ != null) { + return requestsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(requests_); + } + } + + /** + * + * + *
    +     * Required. The region(s) to create.
    +     * The maximum number of regions that can be created in a batch is 100.
    +     * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.CreateRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.shopping.merchant.accounts.v1.CreateRegionRequest.Builder + addRequestsBuilder() { + return getRequestsFieldBuilder() + .addBuilder( + com.google.shopping.merchant.accounts.v1.CreateRegionRequest.getDefaultInstance()); + } + + /** + * + * + *
    +     * Required. The region(s) to create.
    +     * The maximum number of regions that can be created in a batch is 100.
    +     * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.CreateRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.shopping.merchant.accounts.v1.CreateRegionRequest.Builder addRequestsBuilder( + int index) { + return getRequestsFieldBuilder() + .addBuilder( + index, + com.google.shopping.merchant.accounts.v1.CreateRegionRequest.getDefaultInstance()); + } + + /** + * + * + *
    +     * Required. The region(s) to create.
    +     * The maximum number of regions that can be created in a batch is 100.
    +     * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.CreateRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRequestsBuilderList() { + return getRequestsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.shopping.merchant.accounts.v1.CreateRegionRequest, + com.google.shopping.merchant.accounts.v1.CreateRegionRequest.Builder, + com.google.shopping.merchant.accounts.v1.CreateRegionRequestOrBuilder> + getRequestsFieldBuilder() { + if (requestsBuilder_ == null) { + requestsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.shopping.merchant.accounts.v1.CreateRegionRequest, + com.google.shopping.merchant.accounts.v1.CreateRegionRequest.Builder, + com.google.shopping.merchant.accounts.v1.CreateRegionRequestOrBuilder>( + requests_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + requests_ = null; + } + return requestsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest) + private static final com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest(); + } + + public static com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchCreateRegionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/BatchCreateRegionsRequestOrBuilder.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/BatchCreateRegionsRequestOrBuilder.java new file mode 100644 index 000000000000..8fb1b2de3fcf --- /dev/null +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/BatchCreateRegionsRequestOrBuilder.java @@ -0,0 +1,130 @@ +/* + * 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/shopping/merchant/accounts/v1/regions.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.accounts.v1; + +public interface BatchCreateRegionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The account to create one or more regions for.
    +   * Format: `accounts/{account}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. The account to create one or more regions for.
    +   * Format: `accounts/{account}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Required. The region(s) to create.
    +   * The maximum number of regions that can be created in a batch is 100.
    +   * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.CreateRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getRequestsList(); + + /** + * + * + *
    +   * Required. The region(s) to create.
    +   * The maximum number of regions that can be created in a batch is 100.
    +   * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.CreateRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.shopping.merchant.accounts.v1.CreateRegionRequest getRequests(int index); + + /** + * + * + *
    +   * Required. The region(s) to create.
    +   * The maximum number of regions that can be created in a batch is 100.
    +   * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.CreateRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getRequestsCount(); + + /** + * + * + *
    +   * Required. The region(s) to create.
    +   * The maximum number of regions that can be created in a batch is 100.
    +   * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.CreateRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getRequestsOrBuilderList(); + + /** + * + * + *
    +   * Required. The region(s) to create.
    +   * The maximum number of regions that can be created in a batch is 100.
    +   * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.CreateRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.shopping.merchant.accounts.v1.CreateRegionRequestOrBuilder getRequestsOrBuilder( + int index); +} diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/BatchCreateRegionsResponse.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/BatchCreateRegionsResponse.java new file mode 100644 index 000000000000..b2ebcd3ffb6d --- /dev/null +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/BatchCreateRegionsResponse.java @@ -0,0 +1,975 @@ +/* + * 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/shopping/merchant/accounts/v1/regions.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.accounts.v1; + +/** + * + * + *
    + * Response message for the `BatchCreateRegions` method.
    + * 
    + * + * Protobuf type {@code google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse} + */ +public final class BatchCreateRegionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse) + BatchCreateRegionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchCreateRegionsResponse.newBuilder() to construct. + private BatchCreateRegionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchCreateRegionsResponse() { + regions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchCreateRegionsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.accounts.v1.RegionsProto + .internal_static_google_shopping_merchant_accounts_v1_BatchCreateRegionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.accounts.v1.RegionsProto + .internal_static_google_shopping_merchant_accounts_v1_BatchCreateRegionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse.class, + com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse.Builder.class); + } + + public static final int REGIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List regions_; + + /** + * + * + *
    +   * The created region(s).
    +   * 
    + * + * repeated .google.shopping.merchant.accounts.v1.Region regions = 1; + */ + @java.lang.Override + public java.util.List getRegionsList() { + return regions_; + } + + /** + * + * + *
    +   * The created region(s).
    +   * 
    + * + * repeated .google.shopping.merchant.accounts.v1.Region regions = 1; + */ + @java.lang.Override + public java.util.List + getRegionsOrBuilderList() { + return regions_; + } + + /** + * + * + *
    +   * The created region(s).
    +   * 
    + * + * repeated .google.shopping.merchant.accounts.v1.Region regions = 1; + */ + @java.lang.Override + public int getRegionsCount() { + return regions_.size(); + } + + /** + * + * + *
    +   * The created region(s).
    +   * 
    + * + * repeated .google.shopping.merchant.accounts.v1.Region regions = 1; + */ + @java.lang.Override + public com.google.shopping.merchant.accounts.v1.Region getRegions(int index) { + return regions_.get(index); + } + + /** + * + * + *
    +   * The created region(s).
    +   * 
    + * + * repeated .google.shopping.merchant.accounts.v1.Region regions = 1; + */ + @java.lang.Override + public com.google.shopping.merchant.accounts.v1.RegionOrBuilder getRegionsOrBuilder(int index) { + return regions_.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 < regions_.size(); i++) { + output.writeMessage(1, regions_.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 < regions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, regions_.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.shopping.merchant.accounts.v1.BatchCreateRegionsResponse)) { + return super.equals(obj); + } + com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse other = + (com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse) obj; + + if (!getRegionsList().equals(other.getRegionsList())) 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 (getRegionsCount() > 0) { + hash = (37 * hash) + REGIONS_FIELD_NUMBER; + hash = (53 * hash) + getRegionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Response message for the `BatchCreateRegions` method.
    +   * 
    + * + * Protobuf type {@code google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse) + com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.accounts.v1.RegionsProto + .internal_static_google_shopping_merchant_accounts_v1_BatchCreateRegionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.accounts.v1.RegionsProto + .internal_static_google_shopping_merchant_accounts_v1_BatchCreateRegionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse.class, + com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse.Builder.class); + } + + // Construct using + // com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (regionsBuilder_ == null) { + regions_ = java.util.Collections.emptyList(); + } else { + regions_ = null; + regionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.accounts.v1.RegionsProto + .internal_static_google_shopping_merchant_accounts_v1_BatchCreateRegionsResponse_descriptor; + } + + @java.lang.Override + public com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse + getDefaultInstanceForType() { + return com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse build() { + com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse buildPartial() { + com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse result = + new com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse result) { + if (regionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + regions_ = java.util.Collections.unmodifiableList(regions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.regions_ = regions_; + } else { + result.regions_ = regionsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse 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.shopping.merchant.accounts.v1.BatchCreateRegionsResponse) { + return mergeFrom( + (com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse other) { + if (other + == com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse + .getDefaultInstance()) return this; + if (regionsBuilder_ == null) { + if (!other.regions_.isEmpty()) { + if (regions_.isEmpty()) { + regions_ = other.regions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRegionsIsMutable(); + regions_.addAll(other.regions_); + } + onChanged(); + } + } else { + if (!other.regions_.isEmpty()) { + if (regionsBuilder_.isEmpty()) { + regionsBuilder_.dispose(); + regionsBuilder_ = null; + regions_ = other.regions_; + bitField0_ = (bitField0_ & ~0x00000001); + regionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRegionsFieldBuilder() + : null; + } else { + regionsBuilder_.addAllMessages(other.regions_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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.shopping.merchant.accounts.v1.Region m = + input.readMessage( + com.google.shopping.merchant.accounts.v1.Region.parser(), + extensionRegistry); + if (regionsBuilder_ == null) { + ensureRegionsIsMutable(); + regions_.add(m); + } else { + regionsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List regions_ = + java.util.Collections.emptyList(); + + private void ensureRegionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + regions_ = + new java.util.ArrayList(regions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.shopping.merchant.accounts.v1.Region, + com.google.shopping.merchant.accounts.v1.Region.Builder, + com.google.shopping.merchant.accounts.v1.RegionOrBuilder> + regionsBuilder_; + + /** + * + * + *
    +     * The created region(s).
    +     * 
    + * + * repeated .google.shopping.merchant.accounts.v1.Region regions = 1; + */ + public java.util.List getRegionsList() { + if (regionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(regions_); + } else { + return regionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * The created region(s).
    +     * 
    + * + * repeated .google.shopping.merchant.accounts.v1.Region regions = 1; + */ + public int getRegionsCount() { + if (regionsBuilder_ == null) { + return regions_.size(); + } else { + return regionsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * The created region(s).
    +     * 
    + * + * repeated .google.shopping.merchant.accounts.v1.Region regions = 1; + */ + public com.google.shopping.merchant.accounts.v1.Region getRegions(int index) { + if (regionsBuilder_ == null) { + return regions_.get(index); + } else { + return regionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * The created region(s).
    +     * 
    + * + * repeated .google.shopping.merchant.accounts.v1.Region regions = 1; + */ + public Builder setRegions(int index, com.google.shopping.merchant.accounts.v1.Region value) { + if (regionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRegionsIsMutable(); + regions_.set(index, value); + onChanged(); + } else { + regionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The created region(s).
    +     * 
    + * + * repeated .google.shopping.merchant.accounts.v1.Region regions = 1; + */ + public Builder setRegions( + int index, com.google.shopping.merchant.accounts.v1.Region.Builder builderForValue) { + if (regionsBuilder_ == null) { + ensureRegionsIsMutable(); + regions_.set(index, builderForValue.build()); + onChanged(); + } else { + regionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The created region(s).
    +     * 
    + * + * repeated .google.shopping.merchant.accounts.v1.Region regions = 1; + */ + public Builder addRegions(com.google.shopping.merchant.accounts.v1.Region value) { + if (regionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRegionsIsMutable(); + regions_.add(value); + onChanged(); + } else { + regionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * The created region(s).
    +     * 
    + * + * repeated .google.shopping.merchant.accounts.v1.Region regions = 1; + */ + public Builder addRegions(int index, com.google.shopping.merchant.accounts.v1.Region value) { + if (regionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRegionsIsMutable(); + regions_.add(index, value); + onChanged(); + } else { + regionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The created region(s).
    +     * 
    + * + * repeated .google.shopping.merchant.accounts.v1.Region regions = 1; + */ + public Builder addRegions( + com.google.shopping.merchant.accounts.v1.Region.Builder builderForValue) { + if (regionsBuilder_ == null) { + ensureRegionsIsMutable(); + regions_.add(builderForValue.build()); + onChanged(); + } else { + regionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The created region(s).
    +     * 
    + * + * repeated .google.shopping.merchant.accounts.v1.Region regions = 1; + */ + public Builder addRegions( + int index, com.google.shopping.merchant.accounts.v1.Region.Builder builderForValue) { + if (regionsBuilder_ == null) { + ensureRegionsIsMutable(); + regions_.add(index, builderForValue.build()); + onChanged(); + } else { + regionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The created region(s).
    +     * 
    + * + * repeated .google.shopping.merchant.accounts.v1.Region regions = 1; + */ + public Builder addAllRegions( + java.lang.Iterable values) { + if (regionsBuilder_ == null) { + ensureRegionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, regions_); + onChanged(); + } else { + regionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * The created region(s).
    +     * 
    + * + * repeated .google.shopping.merchant.accounts.v1.Region regions = 1; + */ + public Builder clearRegions() { + if (regionsBuilder_ == null) { + regions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + regionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * The created region(s).
    +     * 
    + * + * repeated .google.shopping.merchant.accounts.v1.Region regions = 1; + */ + public Builder removeRegions(int index) { + if (regionsBuilder_ == null) { + ensureRegionsIsMutable(); + regions_.remove(index); + onChanged(); + } else { + regionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * The created region(s).
    +     * 
    + * + * repeated .google.shopping.merchant.accounts.v1.Region regions = 1; + */ + public com.google.shopping.merchant.accounts.v1.Region.Builder getRegionsBuilder(int index) { + return getRegionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * The created region(s).
    +     * 
    + * + * repeated .google.shopping.merchant.accounts.v1.Region regions = 1; + */ + public com.google.shopping.merchant.accounts.v1.RegionOrBuilder getRegionsOrBuilder(int index) { + if (regionsBuilder_ == null) { + return regions_.get(index); + } else { + return regionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * The created region(s).
    +     * 
    + * + * repeated .google.shopping.merchant.accounts.v1.Region regions = 1; + */ + public java.util.List + getRegionsOrBuilderList() { + if (regionsBuilder_ != null) { + return regionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(regions_); + } + } + + /** + * + * + *
    +     * The created region(s).
    +     * 
    + * + * repeated .google.shopping.merchant.accounts.v1.Region regions = 1; + */ + public com.google.shopping.merchant.accounts.v1.Region.Builder addRegionsBuilder() { + return getRegionsFieldBuilder() + .addBuilder(com.google.shopping.merchant.accounts.v1.Region.getDefaultInstance()); + } + + /** + * + * + *
    +     * The created region(s).
    +     * 
    + * + * repeated .google.shopping.merchant.accounts.v1.Region regions = 1; + */ + public com.google.shopping.merchant.accounts.v1.Region.Builder addRegionsBuilder(int index) { + return getRegionsFieldBuilder() + .addBuilder(index, com.google.shopping.merchant.accounts.v1.Region.getDefaultInstance()); + } + + /** + * + * + *
    +     * The created region(s).
    +     * 
    + * + * repeated .google.shopping.merchant.accounts.v1.Region regions = 1; + */ + public java.util.List + getRegionsBuilderList() { + return getRegionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.shopping.merchant.accounts.v1.Region, + com.google.shopping.merchant.accounts.v1.Region.Builder, + com.google.shopping.merchant.accounts.v1.RegionOrBuilder> + getRegionsFieldBuilder() { + if (regionsBuilder_ == null) { + regionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.shopping.merchant.accounts.v1.Region, + com.google.shopping.merchant.accounts.v1.Region.Builder, + com.google.shopping.merchant.accounts.v1.RegionOrBuilder>( + regions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + regions_ = null; + } + return regionsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse) + private static final com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse(); + } + + public static com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchCreateRegionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/BatchCreateRegionsResponseOrBuilder.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/BatchCreateRegionsResponseOrBuilder.java new file mode 100644 index 000000000000..8eec4cdd520c --- /dev/null +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/BatchCreateRegionsResponseOrBuilder.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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/accounts/v1/regions.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.accounts.v1; + +public interface BatchCreateRegionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The created region(s).
    +   * 
    + * + * repeated .google.shopping.merchant.accounts.v1.Region regions = 1; + */ + java.util.List getRegionsList(); + + /** + * + * + *
    +   * The created region(s).
    +   * 
    + * + * repeated .google.shopping.merchant.accounts.v1.Region regions = 1; + */ + com.google.shopping.merchant.accounts.v1.Region getRegions(int index); + + /** + * + * + *
    +   * The created region(s).
    +   * 
    + * + * repeated .google.shopping.merchant.accounts.v1.Region regions = 1; + */ + int getRegionsCount(); + + /** + * + * + *
    +   * The created region(s).
    +   * 
    + * + * repeated .google.shopping.merchant.accounts.v1.Region regions = 1; + */ + java.util.List + getRegionsOrBuilderList(); + + /** + * + * + *
    +   * The created region(s).
    +   * 
    + * + * repeated .google.shopping.merchant.accounts.v1.Region regions = 1; + */ + com.google.shopping.merchant.accounts.v1.RegionOrBuilder getRegionsOrBuilder(int index); +} diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/BatchDeleteRegionsRequest.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/BatchDeleteRegionsRequest.java new file mode 100644 index 000000000000..071a2531ff94 --- /dev/null +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/BatchDeleteRegionsRequest.java @@ -0,0 +1,1272 @@ +/* + * 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/shopping/merchant/accounts/v1/regions.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.accounts.v1; + +/** + * + * + *
    + * Request message for the `BatchDeleteRegions` method.
    + * 
    + * + * Protobuf type {@code google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest} + */ +public final class BatchDeleteRegionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest) + BatchDeleteRegionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchDeleteRegionsRequest.newBuilder() to construct. + private BatchDeleteRegionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchDeleteRegionsRequest() { + parent_ = ""; + requests_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchDeleteRegionsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.accounts.v1.RegionsProto + .internal_static_google_shopping_merchant_accounts_v1_BatchDeleteRegionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.accounts.v1.RegionsProto + .internal_static_google_shopping_merchant_accounts_v1_BatchDeleteRegionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest.class, + com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
    +   * Required. The account to delete one or more regions from.
    +   * Format: `accounts/{account}`
    +   * 
    + * + * + * 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 account to delete one or more regions from.
    +   * Format: `accounts/{account}`
    +   * 
    + * + * + * 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 REQUESTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List requests_; + + /** + * + * + *
    +   * Required. The names of the regions to delete.
    +   * A maximum of 100 regions can be deleted in a batch.
    +   * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.DeleteRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getRequestsList() { + return requests_; + } + + /** + * + * + *
    +   * Required. The names of the regions to delete.
    +   * A maximum of 100 regions can be deleted in a batch.
    +   * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.DeleteRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.shopping.merchant.accounts.v1.DeleteRegionRequestOrBuilder> + getRequestsOrBuilderList() { + return requests_; + } + + /** + * + * + *
    +   * Required. The names of the regions to delete.
    +   * A maximum of 100 regions can be deleted in a batch.
    +   * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.DeleteRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getRequestsCount() { + return requests_.size(); + } + + /** + * + * + *
    +   * Required. The names of the regions to delete.
    +   * A maximum of 100 regions can be deleted in a batch.
    +   * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.DeleteRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.shopping.merchant.accounts.v1.DeleteRegionRequest getRequests(int index) { + return requests_.get(index); + } + + /** + * + * + *
    +   * Required. The names of the regions to delete.
    +   * A maximum of 100 regions can be deleted in a batch.
    +   * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.DeleteRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.shopping.merchant.accounts.v1.DeleteRegionRequestOrBuilder getRequestsOrBuilder( + int index) { + return requests_.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(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + for (int i = 0; i < requests_.size(); i++) { + output.writeMessage(2, requests_.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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + for (int i = 0; i < requests_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, requests_.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.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest)) { + return super.equals(obj); + } + com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest other = + (com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getRequestsList().equals(other.getRequestsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (getRequestsCount() > 0) { + hash = (37 * hash) + REQUESTS_FIELD_NUMBER; + hash = (53 * hash) + getRequestsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request message for the `BatchDeleteRegions` method.
    +   * 
    + * + * Protobuf type {@code google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest) + com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.accounts.v1.RegionsProto + .internal_static_google_shopping_merchant_accounts_v1_BatchDeleteRegionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.accounts.v1.RegionsProto + .internal_static_google_shopping_merchant_accounts_v1_BatchDeleteRegionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest.class, + com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest.Builder.class); + } + + // Construct using + // com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + } else { + requests_ = null; + requestsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.accounts.v1.RegionsProto + .internal_static_google_shopping_merchant_accounts_v1_BatchDeleteRegionsRequest_descriptor; + } + + @java.lang.Override + public com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest + getDefaultInstanceForType() { + return com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest build() { + com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest buildPartial() { + com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest result = + new com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest result) { + if (requestsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + requests_ = java.util.Collections.unmodifiableList(requests_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.requests_ = requests_; + } else { + result.requests_ = requestsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest) { + return mergeFrom( + (com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest other) { + if (other + == com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (requestsBuilder_ == null) { + if (!other.requests_.isEmpty()) { + if (requests_.isEmpty()) { + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRequestsIsMutable(); + requests_.addAll(other.requests_); + } + onChanged(); + } + } else { + if (!other.requests_.isEmpty()) { + if (requestsBuilder_.isEmpty()) { + requestsBuilder_.dispose(); + requestsBuilder_ = null; + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + requestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRequestsFieldBuilder() + : null; + } else { + requestsBuilder_.addAllMessages(other.requests_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.shopping.merchant.accounts.v1.DeleteRegionRequest m = + input.readMessage( + com.google.shopping.merchant.accounts.v1.DeleteRegionRequest.parser(), + extensionRegistry); + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(m); + } else { + requestsBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
    +     * Required. The account to delete one or more regions from.
    +     * Format: `accounts/{account}`
    +     * 
    + * + * + * 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 account to delete one or more regions from.
    +     * Format: `accounts/{account}`
    +     * 
    + * + * + * 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 account to delete one or more regions from.
    +     * Format: `accounts/{account}`
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The account to delete one or more regions from.
    +     * Format: `accounts/{account}`
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The account to delete one or more regions from.
    +     * Format: `accounts/{account}`
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List requests_ = + java.util.Collections.emptyList(); + + private void ensureRequestsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + requests_ = + new java.util.ArrayList( + requests_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.shopping.merchant.accounts.v1.DeleteRegionRequest, + com.google.shopping.merchant.accounts.v1.DeleteRegionRequest.Builder, + com.google.shopping.merchant.accounts.v1.DeleteRegionRequestOrBuilder> + requestsBuilder_; + + /** + * + * + *
    +     * Required. The names of the regions to delete.
    +     * A maximum of 100 regions can be deleted in a batch.
    +     * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.DeleteRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRequestsList() { + if (requestsBuilder_ == null) { + return java.util.Collections.unmodifiableList(requests_); + } else { + return requestsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * Required. The names of the regions to delete.
    +     * A maximum of 100 regions can be deleted in a batch.
    +     * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.DeleteRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getRequestsCount() { + if (requestsBuilder_ == null) { + return requests_.size(); + } else { + return requestsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * Required. The names of the regions to delete.
    +     * A maximum of 100 regions can be deleted in a batch.
    +     * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.DeleteRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.shopping.merchant.accounts.v1.DeleteRegionRequest getRequests(int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * Required. The names of the regions to delete.
    +     * A maximum of 100 regions can be deleted in a batch.
    +     * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.DeleteRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequests( + int index, com.google.shopping.merchant.accounts.v1.DeleteRegionRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.set(index, value); + onChanged(); + } else { + requestsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Required. The names of the regions to delete.
    +     * A maximum of 100 regions can be deleted in a batch.
    +     * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.DeleteRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequests( + int index, + com.google.shopping.merchant.accounts.v1.DeleteRegionRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.set(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Required. The names of the regions to delete.
    +     * A maximum of 100 regions can be deleted in a batch.
    +     * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.DeleteRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests(com.google.shopping.merchant.accounts.v1.DeleteRegionRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(value); + onChanged(); + } else { + requestsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * Required. The names of the regions to delete.
    +     * A maximum of 100 regions can be deleted in a batch.
    +     * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.DeleteRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + int index, com.google.shopping.merchant.accounts.v1.DeleteRegionRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(index, value); + onChanged(); + } else { + requestsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Required. The names of the regions to delete.
    +     * A maximum of 100 regions can be deleted in a batch.
    +     * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.DeleteRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + com.google.shopping.merchant.accounts.v1.DeleteRegionRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Required. The names of the regions to delete.
    +     * A maximum of 100 regions can be deleted in a batch.
    +     * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.DeleteRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + int index, + com.google.shopping.merchant.accounts.v1.DeleteRegionRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Required. The names of the regions to delete.
    +     * A maximum of 100 regions can be deleted in a batch.
    +     * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.DeleteRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllRequests( + java.lang.Iterable + values) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); + onChanged(); + } else { + requestsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * Required. The names of the regions to delete.
    +     * A maximum of 100 regions can be deleted in a batch.
    +     * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.DeleteRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRequests() { + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + requestsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Required. The names of the regions to delete.
    +     * A maximum of 100 regions can be deleted in a batch.
    +     * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.DeleteRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeRequests(int index) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.remove(index); + onChanged(); + } else { + requestsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * Required. The names of the regions to delete.
    +     * A maximum of 100 regions can be deleted in a batch.
    +     * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.DeleteRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.shopping.merchant.accounts.v1.DeleteRegionRequest.Builder getRequestsBuilder( + int index) { + return getRequestsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * Required. The names of the regions to delete.
    +     * A maximum of 100 regions can be deleted in a batch.
    +     * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.DeleteRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.shopping.merchant.accounts.v1.DeleteRegionRequestOrBuilder + getRequestsOrBuilder(int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * Required. The names of the regions to delete.
    +     * A maximum of 100 regions can be deleted in a batch.
    +     * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.DeleteRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends com.google.shopping.merchant.accounts.v1.DeleteRegionRequestOrBuilder> + getRequestsOrBuilderList() { + if (requestsBuilder_ != null) { + return requestsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(requests_); + } + } + + /** + * + * + *
    +     * Required. The names of the regions to delete.
    +     * A maximum of 100 regions can be deleted in a batch.
    +     * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.DeleteRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.shopping.merchant.accounts.v1.DeleteRegionRequest.Builder + addRequestsBuilder() { + return getRequestsFieldBuilder() + .addBuilder( + com.google.shopping.merchant.accounts.v1.DeleteRegionRequest.getDefaultInstance()); + } + + /** + * + * + *
    +     * Required. The names of the regions to delete.
    +     * A maximum of 100 regions can be deleted in a batch.
    +     * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.DeleteRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.shopping.merchant.accounts.v1.DeleteRegionRequest.Builder addRequestsBuilder( + int index) { + return getRequestsFieldBuilder() + .addBuilder( + index, + com.google.shopping.merchant.accounts.v1.DeleteRegionRequest.getDefaultInstance()); + } + + /** + * + * + *
    +     * Required. The names of the regions to delete.
    +     * A maximum of 100 regions can be deleted in a batch.
    +     * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.DeleteRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRequestsBuilderList() { + return getRequestsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.shopping.merchant.accounts.v1.DeleteRegionRequest, + com.google.shopping.merchant.accounts.v1.DeleteRegionRequest.Builder, + com.google.shopping.merchant.accounts.v1.DeleteRegionRequestOrBuilder> + getRequestsFieldBuilder() { + if (requestsBuilder_ == null) { + requestsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.shopping.merchant.accounts.v1.DeleteRegionRequest, + com.google.shopping.merchant.accounts.v1.DeleteRegionRequest.Builder, + com.google.shopping.merchant.accounts.v1.DeleteRegionRequestOrBuilder>( + requests_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + requests_ = null; + } + return requestsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest) + private static final com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest(); + } + + public static com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchDeleteRegionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/BatchDeleteRegionsRequestOrBuilder.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/BatchDeleteRegionsRequestOrBuilder.java new file mode 100644 index 000000000000..33a293dda6fb --- /dev/null +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/BatchDeleteRegionsRequestOrBuilder.java @@ -0,0 +1,130 @@ +/* + * 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/shopping/merchant/accounts/v1/regions.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.accounts.v1; + +public interface BatchDeleteRegionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The account to delete one or more regions from.
    +   * Format: `accounts/{account}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. The account to delete one or more regions from.
    +   * Format: `accounts/{account}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Required. The names of the regions to delete.
    +   * A maximum of 100 regions can be deleted in a batch.
    +   * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.DeleteRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getRequestsList(); + + /** + * + * + *
    +   * Required. The names of the regions to delete.
    +   * A maximum of 100 regions can be deleted in a batch.
    +   * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.DeleteRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.shopping.merchant.accounts.v1.DeleteRegionRequest getRequests(int index); + + /** + * + * + *
    +   * Required. The names of the regions to delete.
    +   * A maximum of 100 regions can be deleted in a batch.
    +   * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.DeleteRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getRequestsCount(); + + /** + * + * + *
    +   * Required. The names of the regions to delete.
    +   * A maximum of 100 regions can be deleted in a batch.
    +   * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.DeleteRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getRequestsOrBuilderList(); + + /** + * + * + *
    +   * Required. The names of the regions to delete.
    +   * A maximum of 100 regions can be deleted in a batch.
    +   * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.DeleteRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.shopping.merchant.accounts.v1.DeleteRegionRequestOrBuilder getRequestsOrBuilder( + int index); +} diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/BatchUpdateRegionsRequest.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/BatchUpdateRegionsRequest.java new file mode 100644 index 000000000000..4ac51f89bf98 --- /dev/null +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/BatchUpdateRegionsRequest.java @@ -0,0 +1,1272 @@ +/* + * 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/shopping/merchant/accounts/v1/regions.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.accounts.v1; + +/** + * + * + *
    + * Request message for the `BatchUpdateRegions` method.
    + * 
    + * + * Protobuf type {@code google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest} + */ +public final class BatchUpdateRegionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest) + BatchUpdateRegionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchUpdateRegionsRequest.newBuilder() to construct. + private BatchUpdateRegionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchUpdateRegionsRequest() { + parent_ = ""; + requests_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchUpdateRegionsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.accounts.v1.RegionsProto + .internal_static_google_shopping_merchant_accounts_v1_BatchUpdateRegionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.accounts.v1.RegionsProto + .internal_static_google_shopping_merchant_accounts_v1_BatchUpdateRegionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest.class, + com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
    +   * Required. The account to update one or more regions for.
    +   * Format: `accounts/{account}`
    +   * 
    + * + * + * 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 account to update one or more regions for.
    +   * Format: `accounts/{account}`
    +   * 
    + * + * + * 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 REQUESTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List requests_; + + /** + * + * + *
    +   * Required. The region(s) to update.
    +   * The maximum number of regions that can be updated in a batch is 100.
    +   * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.UpdateRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getRequestsList() { + return requests_; + } + + /** + * + * + *
    +   * Required. The region(s) to update.
    +   * The maximum number of regions that can be updated in a batch is 100.
    +   * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.UpdateRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.shopping.merchant.accounts.v1.UpdateRegionRequestOrBuilder> + getRequestsOrBuilderList() { + return requests_; + } + + /** + * + * + *
    +   * Required. The region(s) to update.
    +   * The maximum number of regions that can be updated in a batch is 100.
    +   * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.UpdateRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getRequestsCount() { + return requests_.size(); + } + + /** + * + * + *
    +   * Required. The region(s) to update.
    +   * The maximum number of regions that can be updated in a batch is 100.
    +   * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.UpdateRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.shopping.merchant.accounts.v1.UpdateRegionRequest getRequests(int index) { + return requests_.get(index); + } + + /** + * + * + *
    +   * Required. The region(s) to update.
    +   * The maximum number of regions that can be updated in a batch is 100.
    +   * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.UpdateRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.shopping.merchant.accounts.v1.UpdateRegionRequestOrBuilder getRequestsOrBuilder( + int index) { + return requests_.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(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + for (int i = 0; i < requests_.size(); i++) { + output.writeMessage(2, requests_.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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + for (int i = 0; i < requests_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, requests_.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.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest)) { + return super.equals(obj); + } + com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest other = + (com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getRequestsList().equals(other.getRequestsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (getRequestsCount() > 0) { + hash = (37 * hash) + REQUESTS_FIELD_NUMBER; + hash = (53 * hash) + getRequestsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request message for the `BatchUpdateRegions` method.
    +   * 
    + * + * Protobuf type {@code google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest) + com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.accounts.v1.RegionsProto + .internal_static_google_shopping_merchant_accounts_v1_BatchUpdateRegionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.accounts.v1.RegionsProto + .internal_static_google_shopping_merchant_accounts_v1_BatchUpdateRegionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest.class, + com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest.Builder.class); + } + + // Construct using + // com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + } else { + requests_ = null; + requestsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.accounts.v1.RegionsProto + .internal_static_google_shopping_merchant_accounts_v1_BatchUpdateRegionsRequest_descriptor; + } + + @java.lang.Override + public com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest + getDefaultInstanceForType() { + return com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest build() { + com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest buildPartial() { + com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest result = + new com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest result) { + if (requestsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + requests_ = java.util.Collections.unmodifiableList(requests_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.requests_ = requests_; + } else { + result.requests_ = requestsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest) { + return mergeFrom( + (com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest other) { + if (other + == com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (requestsBuilder_ == null) { + if (!other.requests_.isEmpty()) { + if (requests_.isEmpty()) { + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRequestsIsMutable(); + requests_.addAll(other.requests_); + } + onChanged(); + } + } else { + if (!other.requests_.isEmpty()) { + if (requestsBuilder_.isEmpty()) { + requestsBuilder_.dispose(); + requestsBuilder_ = null; + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + requestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRequestsFieldBuilder() + : null; + } else { + requestsBuilder_.addAllMessages(other.requests_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.shopping.merchant.accounts.v1.UpdateRegionRequest m = + input.readMessage( + com.google.shopping.merchant.accounts.v1.UpdateRegionRequest.parser(), + extensionRegistry); + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(m); + } else { + requestsBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
    +     * Required. The account to update one or more regions for.
    +     * Format: `accounts/{account}`
    +     * 
    + * + * + * 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 account to update one or more regions for.
    +     * Format: `accounts/{account}`
    +     * 
    + * + * + * 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 account to update one or more regions for.
    +     * Format: `accounts/{account}`
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The account to update one or more regions for.
    +     * Format: `accounts/{account}`
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The account to update one or more regions for.
    +     * Format: `accounts/{account}`
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List requests_ = + java.util.Collections.emptyList(); + + private void ensureRequestsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + requests_ = + new java.util.ArrayList( + requests_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.shopping.merchant.accounts.v1.UpdateRegionRequest, + com.google.shopping.merchant.accounts.v1.UpdateRegionRequest.Builder, + com.google.shopping.merchant.accounts.v1.UpdateRegionRequestOrBuilder> + requestsBuilder_; + + /** + * + * + *
    +     * Required. The region(s) to update.
    +     * The maximum number of regions that can be updated in a batch is 100.
    +     * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.UpdateRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRequestsList() { + if (requestsBuilder_ == null) { + return java.util.Collections.unmodifiableList(requests_); + } else { + return requestsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * Required. The region(s) to update.
    +     * The maximum number of regions that can be updated in a batch is 100.
    +     * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.UpdateRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getRequestsCount() { + if (requestsBuilder_ == null) { + return requests_.size(); + } else { + return requestsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * Required. The region(s) to update.
    +     * The maximum number of regions that can be updated in a batch is 100.
    +     * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.UpdateRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.shopping.merchant.accounts.v1.UpdateRegionRequest getRequests(int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * Required. The region(s) to update.
    +     * The maximum number of regions that can be updated in a batch is 100.
    +     * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.UpdateRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequests( + int index, com.google.shopping.merchant.accounts.v1.UpdateRegionRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.set(index, value); + onChanged(); + } else { + requestsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Required. The region(s) to update.
    +     * The maximum number of regions that can be updated in a batch is 100.
    +     * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.UpdateRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequests( + int index, + com.google.shopping.merchant.accounts.v1.UpdateRegionRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.set(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Required. The region(s) to update.
    +     * The maximum number of regions that can be updated in a batch is 100.
    +     * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.UpdateRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests(com.google.shopping.merchant.accounts.v1.UpdateRegionRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(value); + onChanged(); + } else { + requestsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * Required. The region(s) to update.
    +     * The maximum number of regions that can be updated in a batch is 100.
    +     * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.UpdateRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + int index, com.google.shopping.merchant.accounts.v1.UpdateRegionRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(index, value); + onChanged(); + } else { + requestsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * Required. The region(s) to update.
    +     * The maximum number of regions that can be updated in a batch is 100.
    +     * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.UpdateRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + com.google.shopping.merchant.accounts.v1.UpdateRegionRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Required. The region(s) to update.
    +     * The maximum number of regions that can be updated in a batch is 100.
    +     * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.UpdateRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + int index, + com.google.shopping.merchant.accounts.v1.UpdateRegionRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * Required. The region(s) to update.
    +     * The maximum number of regions that can be updated in a batch is 100.
    +     * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.UpdateRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllRequests( + java.lang.Iterable + values) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); + onChanged(); + } else { + requestsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * Required. The region(s) to update.
    +     * The maximum number of regions that can be updated in a batch is 100.
    +     * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.UpdateRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRequests() { + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + requestsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Required. The region(s) to update.
    +     * The maximum number of regions that can be updated in a batch is 100.
    +     * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.UpdateRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeRequests(int index) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.remove(index); + onChanged(); + } else { + requestsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * Required. The region(s) to update.
    +     * The maximum number of regions that can be updated in a batch is 100.
    +     * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.UpdateRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.shopping.merchant.accounts.v1.UpdateRegionRequest.Builder getRequestsBuilder( + int index) { + return getRequestsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * Required. The region(s) to update.
    +     * The maximum number of regions that can be updated in a batch is 100.
    +     * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.UpdateRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.shopping.merchant.accounts.v1.UpdateRegionRequestOrBuilder + getRequestsOrBuilder(int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * Required. The region(s) to update.
    +     * The maximum number of regions that can be updated in a batch is 100.
    +     * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.UpdateRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends com.google.shopping.merchant.accounts.v1.UpdateRegionRequestOrBuilder> + getRequestsOrBuilderList() { + if (requestsBuilder_ != null) { + return requestsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(requests_); + } + } + + /** + * + * + *
    +     * Required. The region(s) to update.
    +     * The maximum number of regions that can be updated in a batch is 100.
    +     * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.UpdateRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.shopping.merchant.accounts.v1.UpdateRegionRequest.Builder + addRequestsBuilder() { + return getRequestsFieldBuilder() + .addBuilder( + com.google.shopping.merchant.accounts.v1.UpdateRegionRequest.getDefaultInstance()); + } + + /** + * + * + *
    +     * Required. The region(s) to update.
    +     * The maximum number of regions that can be updated in a batch is 100.
    +     * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.UpdateRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.shopping.merchant.accounts.v1.UpdateRegionRequest.Builder addRequestsBuilder( + int index) { + return getRequestsFieldBuilder() + .addBuilder( + index, + com.google.shopping.merchant.accounts.v1.UpdateRegionRequest.getDefaultInstance()); + } + + /** + * + * + *
    +     * Required. The region(s) to update.
    +     * The maximum number of regions that can be updated in a batch is 100.
    +     * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.UpdateRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRequestsBuilderList() { + return getRequestsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.shopping.merchant.accounts.v1.UpdateRegionRequest, + com.google.shopping.merchant.accounts.v1.UpdateRegionRequest.Builder, + com.google.shopping.merchant.accounts.v1.UpdateRegionRequestOrBuilder> + getRequestsFieldBuilder() { + if (requestsBuilder_ == null) { + requestsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.shopping.merchant.accounts.v1.UpdateRegionRequest, + com.google.shopping.merchant.accounts.v1.UpdateRegionRequest.Builder, + com.google.shopping.merchant.accounts.v1.UpdateRegionRequestOrBuilder>( + requests_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + requests_ = null; + } + return requestsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest) + private static final com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest(); + } + + public static com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchUpdateRegionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/BatchUpdateRegionsRequestOrBuilder.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/BatchUpdateRegionsRequestOrBuilder.java new file mode 100644 index 000000000000..09d61da47aa1 --- /dev/null +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/BatchUpdateRegionsRequestOrBuilder.java @@ -0,0 +1,130 @@ +/* + * 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/shopping/merchant/accounts/v1/regions.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.accounts.v1; + +public interface BatchUpdateRegionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The account to update one or more regions for.
    +   * Format: `accounts/{account}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
    +   * Required. The account to update one or more regions for.
    +   * Format: `accounts/{account}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Required. The region(s) to update.
    +   * The maximum number of regions that can be updated in a batch is 100.
    +   * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.UpdateRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getRequestsList(); + + /** + * + * + *
    +   * Required. The region(s) to update.
    +   * The maximum number of regions that can be updated in a batch is 100.
    +   * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.UpdateRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.shopping.merchant.accounts.v1.UpdateRegionRequest getRequests(int index); + + /** + * + * + *
    +   * Required. The region(s) to update.
    +   * The maximum number of regions that can be updated in a batch is 100.
    +   * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.UpdateRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getRequestsCount(); + + /** + * + * + *
    +   * Required. The region(s) to update.
    +   * The maximum number of regions that can be updated in a batch is 100.
    +   * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.UpdateRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getRequestsOrBuilderList(); + + /** + * + * + *
    +   * Required. The region(s) to update.
    +   * The maximum number of regions that can be updated in a batch is 100.
    +   * 
    + * + * + * repeated .google.shopping.merchant.accounts.v1.UpdateRegionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.shopping.merchant.accounts.v1.UpdateRegionRequestOrBuilder getRequestsOrBuilder( + int index); +} diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/BatchUpdateRegionsResponse.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/BatchUpdateRegionsResponse.java new file mode 100644 index 000000000000..fda727438151 --- /dev/null +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/BatchUpdateRegionsResponse.java @@ -0,0 +1,975 @@ +/* + * 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/shopping/merchant/accounts/v1/regions.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.accounts.v1; + +/** + * + * + *
    + * Response message for the `BatchUpdateRegions` method.
    + * 
    + * + * Protobuf type {@code google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse} + */ +public final class BatchUpdateRegionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse) + BatchUpdateRegionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchUpdateRegionsResponse.newBuilder() to construct. + private BatchUpdateRegionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchUpdateRegionsResponse() { + regions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchUpdateRegionsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.accounts.v1.RegionsProto + .internal_static_google_shopping_merchant_accounts_v1_BatchUpdateRegionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.accounts.v1.RegionsProto + .internal_static_google_shopping_merchant_accounts_v1_BatchUpdateRegionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse.class, + com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse.Builder.class); + } + + public static final int REGIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List regions_; + + /** + * + * + *
    +   * The updated region(s).
    +   * 
    + * + * repeated .google.shopping.merchant.accounts.v1.Region regions = 1; + */ + @java.lang.Override + public java.util.List getRegionsList() { + return regions_; + } + + /** + * + * + *
    +   * The updated region(s).
    +   * 
    + * + * repeated .google.shopping.merchant.accounts.v1.Region regions = 1; + */ + @java.lang.Override + public java.util.List + getRegionsOrBuilderList() { + return regions_; + } + + /** + * + * + *
    +   * The updated region(s).
    +   * 
    + * + * repeated .google.shopping.merchant.accounts.v1.Region regions = 1; + */ + @java.lang.Override + public int getRegionsCount() { + return regions_.size(); + } + + /** + * + * + *
    +   * The updated region(s).
    +   * 
    + * + * repeated .google.shopping.merchant.accounts.v1.Region regions = 1; + */ + @java.lang.Override + public com.google.shopping.merchant.accounts.v1.Region getRegions(int index) { + return regions_.get(index); + } + + /** + * + * + *
    +   * The updated region(s).
    +   * 
    + * + * repeated .google.shopping.merchant.accounts.v1.Region regions = 1; + */ + @java.lang.Override + public com.google.shopping.merchant.accounts.v1.RegionOrBuilder getRegionsOrBuilder(int index) { + return regions_.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 < regions_.size(); i++) { + output.writeMessage(1, regions_.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 < regions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, regions_.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.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse)) { + return super.equals(obj); + } + com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse other = + (com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse) obj; + + if (!getRegionsList().equals(other.getRegionsList())) 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 (getRegionsCount() > 0) { + hash = (37 * hash) + REGIONS_FIELD_NUMBER; + hash = (53 * hash) + getRegionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Response message for the `BatchUpdateRegions` method.
    +   * 
    + * + * Protobuf type {@code google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse) + com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.accounts.v1.RegionsProto + .internal_static_google_shopping_merchant_accounts_v1_BatchUpdateRegionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.accounts.v1.RegionsProto + .internal_static_google_shopping_merchant_accounts_v1_BatchUpdateRegionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse.class, + com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse.Builder.class); + } + + // Construct using + // com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (regionsBuilder_ == null) { + regions_ = java.util.Collections.emptyList(); + } else { + regions_ = null; + regionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.accounts.v1.RegionsProto + .internal_static_google_shopping_merchant_accounts_v1_BatchUpdateRegionsResponse_descriptor; + } + + @java.lang.Override + public com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse + getDefaultInstanceForType() { + return com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse build() { + com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse buildPartial() { + com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse result = + new com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse result) { + if (regionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + regions_ = java.util.Collections.unmodifiableList(regions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.regions_ = regions_; + } else { + result.regions_ = regionsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse 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.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse) { + return mergeFrom( + (com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse other) { + if (other + == com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse + .getDefaultInstance()) return this; + if (regionsBuilder_ == null) { + if (!other.regions_.isEmpty()) { + if (regions_.isEmpty()) { + regions_ = other.regions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRegionsIsMutable(); + regions_.addAll(other.regions_); + } + onChanged(); + } + } else { + if (!other.regions_.isEmpty()) { + if (regionsBuilder_.isEmpty()) { + regionsBuilder_.dispose(); + regionsBuilder_ = null; + regions_ = other.regions_; + bitField0_ = (bitField0_ & ~0x00000001); + regionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRegionsFieldBuilder() + : null; + } else { + regionsBuilder_.addAllMessages(other.regions_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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.shopping.merchant.accounts.v1.Region m = + input.readMessage( + com.google.shopping.merchant.accounts.v1.Region.parser(), + extensionRegistry); + if (regionsBuilder_ == null) { + ensureRegionsIsMutable(); + regions_.add(m); + } else { + regionsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List regions_ = + java.util.Collections.emptyList(); + + private void ensureRegionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + regions_ = + new java.util.ArrayList(regions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.shopping.merchant.accounts.v1.Region, + com.google.shopping.merchant.accounts.v1.Region.Builder, + com.google.shopping.merchant.accounts.v1.RegionOrBuilder> + regionsBuilder_; + + /** + * + * + *
    +     * The updated region(s).
    +     * 
    + * + * repeated .google.shopping.merchant.accounts.v1.Region regions = 1; + */ + public java.util.List getRegionsList() { + if (regionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(regions_); + } else { + return regionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * The updated region(s).
    +     * 
    + * + * repeated .google.shopping.merchant.accounts.v1.Region regions = 1; + */ + public int getRegionsCount() { + if (regionsBuilder_ == null) { + return regions_.size(); + } else { + return regionsBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * The updated region(s).
    +     * 
    + * + * repeated .google.shopping.merchant.accounts.v1.Region regions = 1; + */ + public com.google.shopping.merchant.accounts.v1.Region getRegions(int index) { + if (regionsBuilder_ == null) { + return regions_.get(index); + } else { + return regionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * The updated region(s).
    +     * 
    + * + * repeated .google.shopping.merchant.accounts.v1.Region regions = 1; + */ + public Builder setRegions(int index, com.google.shopping.merchant.accounts.v1.Region value) { + if (regionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRegionsIsMutable(); + regions_.set(index, value); + onChanged(); + } else { + regionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The updated region(s).
    +     * 
    + * + * repeated .google.shopping.merchant.accounts.v1.Region regions = 1; + */ + public Builder setRegions( + int index, com.google.shopping.merchant.accounts.v1.Region.Builder builderForValue) { + if (regionsBuilder_ == null) { + ensureRegionsIsMutable(); + regions_.set(index, builderForValue.build()); + onChanged(); + } else { + regionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The updated region(s).
    +     * 
    + * + * repeated .google.shopping.merchant.accounts.v1.Region regions = 1; + */ + public Builder addRegions(com.google.shopping.merchant.accounts.v1.Region value) { + if (regionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRegionsIsMutable(); + regions_.add(value); + onChanged(); + } else { + regionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * The updated region(s).
    +     * 
    + * + * repeated .google.shopping.merchant.accounts.v1.Region regions = 1; + */ + public Builder addRegions(int index, com.google.shopping.merchant.accounts.v1.Region value) { + if (regionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRegionsIsMutable(); + regions_.add(index, value); + onChanged(); + } else { + regionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * The updated region(s).
    +     * 
    + * + * repeated .google.shopping.merchant.accounts.v1.Region regions = 1; + */ + public Builder addRegions( + com.google.shopping.merchant.accounts.v1.Region.Builder builderForValue) { + if (regionsBuilder_ == null) { + ensureRegionsIsMutable(); + regions_.add(builderForValue.build()); + onChanged(); + } else { + regionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The updated region(s).
    +     * 
    + * + * repeated .google.shopping.merchant.accounts.v1.Region regions = 1; + */ + public Builder addRegions( + int index, com.google.shopping.merchant.accounts.v1.Region.Builder builderForValue) { + if (regionsBuilder_ == null) { + ensureRegionsIsMutable(); + regions_.add(index, builderForValue.build()); + onChanged(); + } else { + regionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * The updated region(s).
    +     * 
    + * + * repeated .google.shopping.merchant.accounts.v1.Region regions = 1; + */ + public Builder addAllRegions( + java.lang.Iterable values) { + if (regionsBuilder_ == null) { + ensureRegionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, regions_); + onChanged(); + } else { + regionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * The updated region(s).
    +     * 
    + * + * repeated .google.shopping.merchant.accounts.v1.Region regions = 1; + */ + public Builder clearRegions() { + if (regionsBuilder_ == null) { + regions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + regionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * The updated region(s).
    +     * 
    + * + * repeated .google.shopping.merchant.accounts.v1.Region regions = 1; + */ + public Builder removeRegions(int index) { + if (regionsBuilder_ == null) { + ensureRegionsIsMutable(); + regions_.remove(index); + onChanged(); + } else { + regionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * The updated region(s).
    +     * 
    + * + * repeated .google.shopping.merchant.accounts.v1.Region regions = 1; + */ + public com.google.shopping.merchant.accounts.v1.Region.Builder getRegionsBuilder(int index) { + return getRegionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * The updated region(s).
    +     * 
    + * + * repeated .google.shopping.merchant.accounts.v1.Region regions = 1; + */ + public com.google.shopping.merchant.accounts.v1.RegionOrBuilder getRegionsOrBuilder(int index) { + if (regionsBuilder_ == null) { + return regions_.get(index); + } else { + return regionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * The updated region(s).
    +     * 
    + * + * repeated .google.shopping.merchant.accounts.v1.Region regions = 1; + */ + public java.util.List + getRegionsOrBuilderList() { + if (regionsBuilder_ != null) { + return regionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(regions_); + } + } + + /** + * + * + *
    +     * The updated region(s).
    +     * 
    + * + * repeated .google.shopping.merchant.accounts.v1.Region regions = 1; + */ + public com.google.shopping.merchant.accounts.v1.Region.Builder addRegionsBuilder() { + return getRegionsFieldBuilder() + .addBuilder(com.google.shopping.merchant.accounts.v1.Region.getDefaultInstance()); + } + + /** + * + * + *
    +     * The updated region(s).
    +     * 
    + * + * repeated .google.shopping.merchant.accounts.v1.Region regions = 1; + */ + public com.google.shopping.merchant.accounts.v1.Region.Builder addRegionsBuilder(int index) { + return getRegionsFieldBuilder() + .addBuilder(index, com.google.shopping.merchant.accounts.v1.Region.getDefaultInstance()); + } + + /** + * + * + *
    +     * The updated region(s).
    +     * 
    + * + * repeated .google.shopping.merchant.accounts.v1.Region regions = 1; + */ + public java.util.List + getRegionsBuilderList() { + return getRegionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.shopping.merchant.accounts.v1.Region, + com.google.shopping.merchant.accounts.v1.Region.Builder, + com.google.shopping.merchant.accounts.v1.RegionOrBuilder> + getRegionsFieldBuilder() { + if (regionsBuilder_ == null) { + regionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.shopping.merchant.accounts.v1.Region, + com.google.shopping.merchant.accounts.v1.Region.Builder, + com.google.shopping.merchant.accounts.v1.RegionOrBuilder>( + regions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + regions_ = null; + } + return regionsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse) + private static final com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse(); + } + + public static com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchUpdateRegionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/BatchUpdateRegionsResponseOrBuilder.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/BatchUpdateRegionsResponseOrBuilder.java new file mode 100644 index 000000000000..ec7c1dd2d94f --- /dev/null +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/BatchUpdateRegionsResponseOrBuilder.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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/accounts/v1/regions.proto + +// Protobuf Java Version: 3.25.8 +package com.google.shopping.merchant.accounts.v1; + +public interface BatchUpdateRegionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The updated region(s).
    +   * 
    + * + * repeated .google.shopping.merchant.accounts.v1.Region regions = 1; + */ + java.util.List getRegionsList(); + + /** + * + * + *
    +   * The updated region(s).
    +   * 
    + * + * repeated .google.shopping.merchant.accounts.v1.Region regions = 1; + */ + com.google.shopping.merchant.accounts.v1.Region getRegions(int index); + + /** + * + * + *
    +   * The updated region(s).
    +   * 
    + * + * repeated .google.shopping.merchant.accounts.v1.Region regions = 1; + */ + int getRegionsCount(); + + /** + * + * + *
    +   * The updated region(s).
    +   * 
    + * + * repeated .google.shopping.merchant.accounts.v1.Region regions = 1; + */ + java.util.List + getRegionsOrBuilderList(); + + /** + * + * + *
    +   * The updated region(s).
    +   * 
    + * + * repeated .google.shopping.merchant.accounts.v1.Region regions = 1; + */ + com.google.shopping.merchant.accounts.v1.RegionOrBuilder getRegionsOrBuilder(int index); +} diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/RegionsProto.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/RegionsProto.java index ab2c165a7073..c265d834360c 100644 --- a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/RegionsProto.java +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/RegionsProto.java @@ -36,14 +36,34 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_shopping_merchant_accounts_v1_CreateRegionRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_shopping_merchant_accounts_v1_CreateRegionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_accounts_v1_BatchCreateRegionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_accounts_v1_BatchCreateRegionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_accounts_v1_BatchCreateRegionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_accounts_v1_BatchCreateRegionsResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_shopping_merchant_accounts_v1_UpdateRegionRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_shopping_merchant_accounts_v1_UpdateRegionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_accounts_v1_BatchUpdateRegionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_accounts_v1_BatchUpdateRegionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_accounts_v1_BatchUpdateRegionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_accounts_v1_BatchUpdateRegionsResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_shopping_merchant_accounts_v1_DeleteRegionRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_shopping_merchant_accounts_v1_DeleteRegionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_accounts_v1_BatchDeleteRegionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_accounts_v1_BatchDeleteRegionsRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_shopping_merchant_accounts_v1_ListRegionsRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -91,14 +111,35 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\"merchantapi.googleapis.com/Account\022\026\n" + "\tregion_id\030\002 \001(\tB\003\340A\002\022A\n" + "\006region\030\003" - + " \001(\0132,.google.shopping.merchant.accounts.v1.RegionB\003\340A\002\"\216\001\n" + + " \001(\0132,.google.shopping.merchant.accounts.v1.RegionB\003\340A\002\"\251\001\n" + + "\031BatchCreateRegionsRequest\022:\n" + + "\006parent\030\001 \001(\tB*\340A\002\372A$\n" + + "\"merchantapi.googleapis.com/Account\022P\n" + + "\010requests\030\002 \003(\01329.google.shopping.m" + + "erchant.accounts.v1.CreateRegionRequestB\003\340A\002\"[\n" + + "\032BatchCreateRegionsResponse\022=\n" + + "\007regions\030\001" + + " \003(\0132,.google.shopping.merchant.accounts.v1.Region\"\216\001\n" + "\023UpdateRegionRequest\022A\n" - + "\006region\030\001 \001(\0132,.googl" - + "e.shopping.merchant.accounts.v1.RegionB\003\340A\002\0224\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"N\n" + + "\006region\030\001" + + " \001(\0132,.google.shopping.merchant.accounts.v1.RegionB\003\340A\002\0224\n" + + "\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"\251\001\n" + + "\031BatchUpdateRegionsRequest\022:\n" + + "\006parent\030\001 \001(\tB*\340A\002\372A$\n" + + "\"merchantapi.googleapis.com/Account\022P\n" + + "\010requests\030\002 \003(\01329.google." + + "shopping.merchant.accounts.v1.UpdateRegionRequestB\003\340A\002\"[\n" + + "\032BatchUpdateRegionsResponse\022=\n" + + "\007regions\030\001 \003(\0132,.google.shopping.merchant.accounts.v1.Region\"N\n" + "\023DeleteRegionRequest\0227\n" + "\004name\030\001 \001(\tB)\340A\002\372A#\n" - + "!merchantapi.googleapis.com/Region\"\201\001\n" + + "!merchantapi.googleapis.com/Region\"\251\001\n" + + "\031BatchDeleteRegionsRequest\022:\n" + + "\006parent\030\001 \001(\tB*\340A\002\372A$\n" + + "\"merchantapi.googleapis.com/Account\022P\n" + + "\010requests\030\002 \003(\01329.google.shopping.mercha" + + "nt.accounts.v1.DeleteRegionRequestB\003\340A\002\"\201\001\n" + "\022ListRegionsRequest\022:\n" + "\006parent\030\001 \001(\tB*\340A\002\372A$\n" + "\"merchantapi.googleapis.com/Account\022\026\n" @@ -110,51 +151,62 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006Region\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\036\n" + "\014display_name\030\002 \001(\tB\003\340A\001H\000\210\001\001\022Z\n" - + "\020postal_code_area\030\003 \001(\0132;.google.sh" - + "opping.merchant.accounts.v1.Region.PostalCodeAreaB\003\340A\001\022W\n" - + "\016geotarget_area\030\004 \001(\0132:" - + ".google.shopping.merchant.accounts.v1.Region.GeoTargetAreaB\003\340A\001\022D\n" + + "\020postal_code_area\030\003" + + " \001(\0132;.google.shopping.merchant.accounts.v1.Region.PostalCodeAreaB\003\340A\001\022W\n" + + "\016geotarget_area\030\004 \001(\0132:.google.shopping.m" + + "erchant.accounts.v1.Region.GeoTargetAreaB\003\340A\001\022D\n" + "\033regional_inventory_eligible\030\005" + " \001(\0132\032.google.protobuf.BoolValueB\003\340A\003\022:\n" + "\021shipping_eligible\030\006" + " \001(\0132\032.google.protobuf.BoolValueB\003\340A\003\032\313\001\n" + "\016PostalCodeArea\022\030\n" + "\013region_code\030\001 \001(\tB\003\340A\002\022f\n" - + "\014postal_codes\030\002 \003(\0132K.google.shopping.m" - + "erchant.accounts.v1.Region.PostalCodeArea.PostalCodeRangeB\003\340A\002\0327\n" + + "\014postal_codes\030\002 \003(\0132K.google.shopping.merchant.accounts.v" + + "1.Region.PostalCodeArea.PostalCodeRangeB\003\340A\002\0327\n" + "\017PostalCodeRange\022\022\n" + "\005begin\030\001 \001(\tB\003\340A\002\022\020\n" + "\003end\030\002 \001(\tB\003\340A\001\0324\n\r" + "GeoTargetArea\022#\n" + "\026geotarget_criteria_ids\030\001 \003(\003B\003\340A\002:\\\352AY\n" - + "!merchantapi.googleap" - + "is.com/Region\022#accounts/{account}/regions/{region}*\007regions2\006regionB\017\n\r" - + "_display_name2\201\010\n" + + "!merchantapi.googleapis.com/Region\022#acc" + + "ounts/{account}/regions/{region}*\007regions2\006regionB\017\n\r" + + "_display_name2\350\014\n" + "\016RegionsService\022\252\001\n" - + "\tGetRegion\0226.google.shopping.merchant.accounts.v1.Get" - + "RegionRequest\032,.google.shopping.merchant" - + ".accounts.v1.Region\"7\332A\004name\202\323\344\223\002*\022(/accounts/v1/{name=accounts/*/regions/*}\022\313\001\n" - + "\014CreateRegion\0229.google.shopping.merchant" - + ".accounts.v1.CreateRegionRequest\032,.google.shopping.merchant.accounts.v1.Region\"R" - + "\332A\027parent,region,region_id\202\323\344\223\0022\"(/accou" - + "nts/v1/{parent=accounts/*}/regions:\006region\022\315\001\n" - + "\014UpdateRegion\0229.google.shopping.merchant.accounts.v1.UpdateRegionRequest\032," - + ".google.shopping.merchant.accounts.v1.Re" - + "gion\"T\332A\022region,update_mask\202\323\344\223\00292//acco" - + "unts/v1/{region.name=accounts/*/regions/*}:\006region\022\232\001\n" - + "\014DeleteRegion\0229.google.shopping.merchant.accounts.v1.DeleteRegionR" - + "equest\032\026.google.protobuf.Empty\"7\332A\004name\202" - + "\323\344\223\002**(/accounts/v1/{name=accounts/*/regions/*}\022\275\001\n" - + "\013ListRegions\0228.google.shopping.merchant.accounts.v1.ListRegionsReques" - + "t\0329.google.shopping.merchant.accounts.v1" - + ".ListRegionsResponse\"9\332A\006parent\202\323\344\223\002*\022(/" - + "accounts/v1/{parent=accounts/*}/regions\032" - + "G\312A\032merchantapi.googleapis.com\322A\'https://www.googleapis.com/auth/contentB\377\001\n" - + "(com.google.shopping.merchant.accounts.v1B\014R" - + "egionsProtoP\001ZJcloud.google.com/go/shopping/merchant/accounts/apiv1/accountspb;a" - + "ccountspb\252\002$Google.Shopping.Merchant.Acc" - + "ounts.V1\312\002$Google\\Shopping\\Merchant\\Acco" - + "unts\\V1\352\002(Google::Shopping::Merchant::Accounts::V1b\006proto3" + + "\tGetRegion\0226.google.shopping.merchant.accounts.v1.GetRegionRequest\032,.go" + + "ogle.shopping.merchant.accounts.v1.Regio" + + "n\"7\332A\004name\202\323\344\223\002*\022(/accounts/v1/{name=accounts/*/regions/*}\022\313\001\n" + + "\014CreateRegion\0229.google.shopping.merchant.accounts.v1.Creat" + + "eRegionRequest\032,.google.shopping.merchan" + + "t.accounts.v1.Region\"R\332A\027parent,region,r" + + "egion_id\202\323\344\223\0022\"(/accounts/v1/{parent=accounts/*}/regions:\006region\022\330\001\n" + + "\022BatchCreateRegions\022?.google.shopping.merchant.accou" + + "nts.v1.BatchCreateRegionsRequest\032@.google.shopping.merchant.accounts.v1.BatchCre" + + "ateRegionsResponse\"?\202\323\344\223\0029\"4/accounts/v1" + + "/{parent=accounts/*}/regions:batchCreate:\001*\022\315\001\n" + + "\014UpdateRegion\0229.google.shopping.merchant.accounts.v1.UpdateRegionRequest\032" + + ",.google.shopping.merchant.accounts.v1.R" + + "egion\"T\332A\022region,update_mask\202\323\344\223\00292//acc" + + "ounts/v1/{region.name=accounts/*/regions/*}:\006region\022\330\001\n" + + "\022BatchUpdateRegions\022?.google.shopping.merchant.accounts.v1.BatchU" + + "pdateRegionsRequest\032@.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRes" + + "ponse\"?\202\323\344\223\0029\"4/accounts/v1/{parent=accounts/*}/regions:batchUpdate:\001*\022\232\001\n" + + "\014DeleteRegion\0229.google.shopping.merchant.accou" + + "nts.v1.DeleteRegionRequest\032\026.google.prot" + + "obuf.Empty\"7\332A\004name\202\323\344\223\002**(/accounts/v1/{name=accounts/*/regions/*}\022\256\001\n" + + "\022BatchDeleteRegions\022?.google.shopping.merchant.ac" + + "counts.v1.BatchDeleteRegionsRequest\032\026.go" + + "ogle.protobuf.Empty\"?\202\323\344\223\0029\"4/accounts/v" + + "1/{parent=accounts/*}/regions:batchDelete:\001*\022\275\001\n" + + "\013ListRegions\0228.google.shopping.merchant.accounts.v1.ListRegionsRequest\0329" + + ".google.shopping.merchant.accounts.v1.Li" + + "stRegionsResponse\"9\332A\006parent\202\323\344\223\002*\022(/acc" + + "ounts/v1/{parent=accounts/*}/regions\032G\312A" + + "\032merchantapi.googleapis.com\322A\'https://www.googleapis.com/auth/contentB\377\001\n" + + "(com.google.shopping.merchant.accounts.v1B\014Regi" + + "onsProtoP\001ZJcloud.google.com/go/shopping/merchant/accounts/apiv1/accountspb;acco" + + "untspb\252\002$Google.Shopping.Merchant.Accoun" + + "ts.V1\312\002$Google\\Shopping\\Merchant\\Account" + + "s\\V1\352\002(Google::Shopping::Merchant::Accounts::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -184,24 +236,64 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Parent", "RegionId", "Region", }); - internal_static_google_shopping_merchant_accounts_v1_UpdateRegionRequest_descriptor = + internal_static_google_shopping_merchant_accounts_v1_BatchCreateRegionsRequest_descriptor = getDescriptor().getMessageTypes().get(2); + internal_static_google_shopping_merchant_accounts_v1_BatchCreateRegionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_accounts_v1_BatchCreateRegionsRequest_descriptor, + new java.lang.String[] { + "Parent", "Requests", + }); + internal_static_google_shopping_merchant_accounts_v1_BatchCreateRegionsResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_shopping_merchant_accounts_v1_BatchCreateRegionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_accounts_v1_BatchCreateRegionsResponse_descriptor, + new java.lang.String[] { + "Regions", + }); + internal_static_google_shopping_merchant_accounts_v1_UpdateRegionRequest_descriptor = + getDescriptor().getMessageTypes().get(4); internal_static_google_shopping_merchant_accounts_v1_UpdateRegionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_shopping_merchant_accounts_v1_UpdateRegionRequest_descriptor, new java.lang.String[] { "Region", "UpdateMask", }); + internal_static_google_shopping_merchant_accounts_v1_BatchUpdateRegionsRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_shopping_merchant_accounts_v1_BatchUpdateRegionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_accounts_v1_BatchUpdateRegionsRequest_descriptor, + new java.lang.String[] { + "Parent", "Requests", + }); + internal_static_google_shopping_merchant_accounts_v1_BatchUpdateRegionsResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_shopping_merchant_accounts_v1_BatchUpdateRegionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_accounts_v1_BatchUpdateRegionsResponse_descriptor, + new java.lang.String[] { + "Regions", + }); internal_static_google_shopping_merchant_accounts_v1_DeleteRegionRequest_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(7); internal_static_google_shopping_merchant_accounts_v1_DeleteRegionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_shopping_merchant_accounts_v1_DeleteRegionRequest_descriptor, new java.lang.String[] { "Name", }); + internal_static_google_shopping_merchant_accounts_v1_BatchDeleteRegionsRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_shopping_merchant_accounts_v1_BatchDeleteRegionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_accounts_v1_BatchDeleteRegionsRequest_descriptor, + new java.lang.String[] { + "Parent", "Requests", + }); internal_static_google_shopping_merchant_accounts_v1_ListRegionsRequest_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(9); internal_static_google_shopping_merchant_accounts_v1_ListRegionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_shopping_merchant_accounts_v1_ListRegionsRequest_descriptor, @@ -209,7 +301,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_shopping_merchant_accounts_v1_ListRegionsResponse_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(10); internal_static_google_shopping_merchant_accounts_v1_ListRegionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_shopping_merchant_accounts_v1_ListRegionsResponse_descriptor, @@ -217,7 +309,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Regions", "NextPageToken", }); internal_static_google_shopping_merchant_accounts_v1_Region_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(11); internal_static_google_shopping_merchant_accounts_v1_Region_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_shopping_merchant_accounts_v1_Region_descriptor, diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/proto/google/shopping/merchant/accounts/v1/regions.proto b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/proto/google/shopping/merchant/accounts/v1/regions.proto index f6fad0fb4b04..a5303caaa309 100644 --- a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/proto/google/shopping/merchant/accounts/v1/regions.proto +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/proto/google/shopping/merchant/accounts/v1/regions.proto @@ -59,6 +59,16 @@ service RegionsService { option (google.api.method_signature) = "parent,region,region_id"; } + // Creates one or more regions in your Merchant Center account. + // Executing this method requires admin access. + rpc BatchCreateRegions(BatchCreateRegionsRequest) + returns (BatchCreateRegionsResponse) { + option (google.api.http) = { + post: "/accounts/v1/{parent=accounts/*}/regions:batchCreate" + body: "*" + }; + } + // Updates a region definition in your Merchant Center account. // Executing this method requires admin access. rpc UpdateRegion(UpdateRegionRequest) returns (Region) { @@ -69,6 +79,16 @@ service RegionsService { option (google.api.method_signature) = "region,update_mask"; } + // Updates one or more regions in your Merchant Center account. + // Executing this method requires admin access. + rpc BatchUpdateRegions(BatchUpdateRegionsRequest) + returns (BatchUpdateRegionsResponse) { + option (google.api.http) = { + post: "/accounts/v1/{parent=accounts/*}/regions:batchUpdate" + body: "*" + }; + } + // Deletes a region definition from your Merchant Center account. Executing // this method requires admin access. rpc DeleteRegion(DeleteRegionRequest) returns (google.protobuf.Empty) { @@ -78,6 +98,16 @@ service RegionsService { option (google.api.method_signature) = "name"; } + // Deletes multiple regions by name from your Merchant Center account. + // Executing this method requires admin access. + rpc BatchDeleteRegions(BatchDeleteRegionsRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/accounts/v1/{parent=accounts/*}/regions:batchDelete" + body: "*" + }; + } + // Lists the regions in your Merchant Center account. rpc ListRegions(ListRegionsRequest) returns (ListRegionsResponse) { option (google.api.http) = { @@ -118,6 +148,29 @@ message CreateRegionRequest { Region region = 3 [(google.api.field_behavior) = REQUIRED]; } +// Request message for the `BatchCreateRegions` method. +message BatchCreateRegionsRequest { + // Required. The account to create one or more regions for. + // Format: `accounts/{account}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "merchantapi.googleapis.com/Account" + } + ]; + + // Required. The region(s) to create. + // The maximum number of regions that can be created in a batch is 100. + repeated CreateRegionRequest requests = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Response message for the `BatchCreateRegions` method. +message BatchCreateRegionsResponse { + // The created region(s). + repeated Region regions = 1; +} + // Request message for the `UpdateRegion` method. message UpdateRegionRequest { // Required. The updated region. @@ -130,6 +183,29 @@ message UpdateRegionRequest { [(google.api.field_behavior) = OPTIONAL]; } +// Request message for the `BatchUpdateRegions` method. +message BatchUpdateRegionsRequest { + // Required. The account to update one or more regions for. + // Format: `accounts/{account}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "merchantapi.googleapis.com/Account" + } + ]; + + // Required. The region(s) to update. + // The maximum number of regions that can be updated in a batch is 100. + repeated UpdateRegionRequest requests = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Response message for the `BatchUpdateRegions` method. +message BatchUpdateRegionsResponse { + // The updated region(s). + repeated Region regions = 1; +} + // Request message for the `DeleteRegion` method. message DeleteRegionRequest { // Required. The name of the region to delete. @@ -142,6 +218,23 @@ message DeleteRegionRequest { ]; } +// Request message for the `BatchDeleteRegions` method. +message BatchDeleteRegionsRequest { + // Required. The account to delete one or more regions from. + // Format: `accounts/{account}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "merchantapi.googleapis.com/Account" + } + ]; + + // Required. The names of the regions to delete. + // A maximum of 100 regions can be deleted in a batch. + repeated DeleteRegionRequest requests = 2 + [(google.api.field_behavior) = REQUIRED]; +} + // Request message for the `ListRegions` method. message ListRegionsRequest { // Required. The account to list regions for. diff --git a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1/regionsservice/batchcreateregions/AsyncBatchCreateRegions.java b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1/regionsservice/batchcreateregions/AsyncBatchCreateRegions.java new file mode 100644 index 000000000000..43405c0cc90f --- /dev/null +++ b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1/regionsservice/batchcreateregions/AsyncBatchCreateRegions.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.shopping.merchant.accounts.v1.samples; + +// [START merchantapi_v1_generated_RegionsService_BatchCreateRegions_async] +import com.google.api.core.ApiFuture; +import com.google.shopping.merchant.accounts.v1.AccountName; +import com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest; +import com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse; +import com.google.shopping.merchant.accounts.v1.CreateRegionRequest; +import com.google.shopping.merchant.accounts.v1.RegionsServiceClient; +import java.util.ArrayList; + +public class AsyncBatchCreateRegions { + + public static void main(String[] args) throws Exception { + asyncBatchCreateRegions(); + } + + public static void asyncBatchCreateRegions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (RegionsServiceClient regionsServiceClient = RegionsServiceClient.create()) { + BatchCreateRegionsRequest request = + BatchCreateRegionsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllRequests(new ArrayList()) + .build(); + ApiFuture future = + regionsServiceClient.batchCreateRegionsCallable().futureCall(request); + // Do something. + BatchCreateRegionsResponse response = future.get(); + } + } +} +// [END merchantapi_v1_generated_RegionsService_BatchCreateRegions_async] diff --git a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1/regionsservice/batchcreateregions/SyncBatchCreateRegions.java b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1/regionsservice/batchcreateregions/SyncBatchCreateRegions.java new file mode 100644 index 000000000000..e140a2fbc212 --- /dev/null +++ b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1/regionsservice/batchcreateregions/SyncBatchCreateRegions.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.shopping.merchant.accounts.v1.samples; + +// [START merchantapi_v1_generated_RegionsService_BatchCreateRegions_sync] +import com.google.shopping.merchant.accounts.v1.AccountName; +import com.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest; +import com.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse; +import com.google.shopping.merchant.accounts.v1.CreateRegionRequest; +import com.google.shopping.merchant.accounts.v1.RegionsServiceClient; +import java.util.ArrayList; + +public class SyncBatchCreateRegions { + + public static void main(String[] args) throws Exception { + syncBatchCreateRegions(); + } + + public static void syncBatchCreateRegions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (RegionsServiceClient regionsServiceClient = RegionsServiceClient.create()) { + BatchCreateRegionsRequest request = + BatchCreateRegionsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllRequests(new ArrayList()) + .build(); + BatchCreateRegionsResponse response = regionsServiceClient.batchCreateRegions(request); + } + } +} +// [END merchantapi_v1_generated_RegionsService_BatchCreateRegions_sync] diff --git a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1/regionsservice/batchdeleteregions/AsyncBatchDeleteRegions.java b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1/regionsservice/batchdeleteregions/AsyncBatchDeleteRegions.java new file mode 100644 index 000000000000..9f99515d8842 --- /dev/null +++ b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1/regionsservice/batchdeleteregions/AsyncBatchDeleteRegions.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.shopping.merchant.accounts.v1.samples; + +// [START merchantapi_v1_generated_RegionsService_BatchDeleteRegions_async] +import com.google.api.core.ApiFuture; +import com.google.protobuf.Empty; +import com.google.shopping.merchant.accounts.v1.AccountName; +import com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest; +import com.google.shopping.merchant.accounts.v1.DeleteRegionRequest; +import com.google.shopping.merchant.accounts.v1.RegionsServiceClient; +import java.util.ArrayList; + +public class AsyncBatchDeleteRegions { + + public static void main(String[] args) throws Exception { + asyncBatchDeleteRegions(); + } + + public static void asyncBatchDeleteRegions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (RegionsServiceClient regionsServiceClient = RegionsServiceClient.create()) { + BatchDeleteRegionsRequest request = + BatchDeleteRegionsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllRequests(new ArrayList()) + .build(); + ApiFuture future = + regionsServiceClient.batchDeleteRegionsCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END merchantapi_v1_generated_RegionsService_BatchDeleteRegions_async] diff --git a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1/regionsservice/batchdeleteregions/SyncBatchDeleteRegions.java b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1/regionsservice/batchdeleteregions/SyncBatchDeleteRegions.java new file mode 100644 index 000000000000..2c78ec580d7c --- /dev/null +++ b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1/regionsservice/batchdeleteregions/SyncBatchDeleteRegions.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.shopping.merchant.accounts.v1.samples; + +// [START merchantapi_v1_generated_RegionsService_BatchDeleteRegions_sync] +import com.google.protobuf.Empty; +import com.google.shopping.merchant.accounts.v1.AccountName; +import com.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest; +import com.google.shopping.merchant.accounts.v1.DeleteRegionRequest; +import com.google.shopping.merchant.accounts.v1.RegionsServiceClient; +import java.util.ArrayList; + +public class SyncBatchDeleteRegions { + + public static void main(String[] args) throws Exception { + syncBatchDeleteRegions(); + } + + public static void syncBatchDeleteRegions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (RegionsServiceClient regionsServiceClient = RegionsServiceClient.create()) { + BatchDeleteRegionsRequest request = + BatchDeleteRegionsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllRequests(new ArrayList()) + .build(); + regionsServiceClient.batchDeleteRegions(request); + } + } +} +// [END merchantapi_v1_generated_RegionsService_BatchDeleteRegions_sync] diff --git a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1/regionsservice/batchupdateregions/AsyncBatchUpdateRegions.java b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1/regionsservice/batchupdateregions/AsyncBatchUpdateRegions.java new file mode 100644 index 000000000000..845af83b0524 --- /dev/null +++ b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1/regionsservice/batchupdateregions/AsyncBatchUpdateRegions.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.shopping.merchant.accounts.v1.samples; + +// [START merchantapi_v1_generated_RegionsService_BatchUpdateRegions_async] +import com.google.api.core.ApiFuture; +import com.google.shopping.merchant.accounts.v1.AccountName; +import com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest; +import com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse; +import com.google.shopping.merchant.accounts.v1.RegionsServiceClient; +import com.google.shopping.merchant.accounts.v1.UpdateRegionRequest; +import java.util.ArrayList; + +public class AsyncBatchUpdateRegions { + + public static void main(String[] args) throws Exception { + asyncBatchUpdateRegions(); + } + + public static void asyncBatchUpdateRegions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (RegionsServiceClient regionsServiceClient = RegionsServiceClient.create()) { + BatchUpdateRegionsRequest request = + BatchUpdateRegionsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllRequests(new ArrayList()) + .build(); + ApiFuture future = + regionsServiceClient.batchUpdateRegionsCallable().futureCall(request); + // Do something. + BatchUpdateRegionsResponse response = future.get(); + } + } +} +// [END merchantapi_v1_generated_RegionsService_BatchUpdateRegions_async] diff --git a/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1/regionsservice/batchupdateregions/SyncBatchUpdateRegions.java b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1/regionsservice/batchupdateregions/SyncBatchUpdateRegions.java new file mode 100644 index 000000000000..88fe2de69d95 --- /dev/null +++ b/java-shopping-merchant-accounts/samples/snippets/generated/com/google/shopping/merchant/accounts/v1/regionsservice/batchupdateregions/SyncBatchUpdateRegions.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.shopping.merchant.accounts.v1.samples; + +// [START merchantapi_v1_generated_RegionsService_BatchUpdateRegions_sync] +import com.google.shopping.merchant.accounts.v1.AccountName; +import com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest; +import com.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse; +import com.google.shopping.merchant.accounts.v1.RegionsServiceClient; +import com.google.shopping.merchant.accounts.v1.UpdateRegionRequest; +import java.util.ArrayList; + +public class SyncBatchUpdateRegions { + + public static void main(String[] args) throws Exception { + syncBatchUpdateRegions(); + } + + public static void syncBatchUpdateRegions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (RegionsServiceClient regionsServiceClient = RegionsServiceClient.create()) { + BatchUpdateRegionsRequest request = + BatchUpdateRegionsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllRequests(new ArrayList()) + .build(); + BatchUpdateRegionsResponse response = regionsServiceClient.batchUpdateRegions(request); + } + } +} +// [END merchantapi_v1_generated_RegionsService_BatchUpdateRegions_sync] diff --git a/java-shopping-merchant-conversions/README.md b/java-shopping-merchant-conversions/README.md index b66f8b17a8d3..1681d503d058 100644 --- a/java-shopping-merchant-conversions/README.md +++ b/java-shopping-merchant-conversions/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.66.0 + 26.67.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-conversions - 1.0.0 + 1.1.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-conversions:1.0.0' +implementation 'com.google.shopping:google-shopping-merchant-conversions:1.1.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-conversions" % "1.0.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-conversions" % "1.1.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.shopping/google-shopping-merchant-conversions.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-conversions/1.0.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-conversions/1.1.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-datasources/README.md b/java-shopping-merchant-datasources/README.md index 902533e327ec..1b75938a4122 100644 --- a/java-shopping-merchant-datasources/README.md +++ b/java-shopping-merchant-datasources/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.66.0 + 26.67.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-datasources - 1.0.0 + 1.1.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-datasources:1.0.0' +implementation 'com.google.shopping:google-shopping-merchant-datasources:1.1.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-datasources" % "1.0.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-datasources" % "1.1.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.shopping/google-shopping-merchant-datasources.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-datasources/1.0.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-datasources/1.1.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-inventories/README.md b/java-shopping-merchant-inventories/README.md index 769817366aa7..a3b68dedd00b 100644 --- a/java-shopping-merchant-inventories/README.md +++ b/java-shopping-merchant-inventories/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.66.0 + 26.67.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-inventories - 1.0.0 + 1.1.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-inventories:1.0.0' +implementation 'com.google.shopping:google-shopping-merchant-inventories:1.1.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-inventories" % "1.0.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-inventories" % "1.1.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.shopping/google-shopping-merchant-inventories.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-inventories/1.0.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-inventories/1.1.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-lfp/README.md b/java-shopping-merchant-lfp/README.md index 61dc35741bee..8f613bd73f7c 100644 --- a/java-shopping-merchant-lfp/README.md +++ b/java-shopping-merchant-lfp/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.66.0 + 26.67.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-lfp - 1.0.0 + 1.1.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-lfp:1.0.0' +implementation 'com.google.shopping:google-shopping-merchant-lfp:1.1.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-lfp" % "1.0.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-lfp" % "1.1.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.shopping/google-shopping-merchant-lfp.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-lfp/1.0.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-lfp/1.1.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-notifications/README.md b/java-shopping-merchant-notifications/README.md index 77749507b639..a4a600a4a2f0 100644 --- a/java-shopping-merchant-notifications/README.md +++ b/java-shopping-merchant-notifications/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.66.0 + 26.67.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-notifications - 1.0.0 + 1.1.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-notifications:1.0.0' +implementation 'com.google.shopping:google-shopping-merchant-notifications:1.1.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-notifications" % "1.0.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-notifications" % "1.1.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.shopping/google-shopping-merchant-notifications.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-notifications/1.0.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-notifications/1.1.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-product-studio/README.md b/java-shopping-merchant-product-studio/README.md index 02499f2aaa6d..ade2e23b747b 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.66.0 + 26.67.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.12.0 + 0.13.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-productstudio:0.12.0' +implementation 'com.google.shopping:google-shopping-merchant-productstudio:0.13.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-productstudio" % "0.12.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-productstudio" % "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.shopping/google-shopping-merchant-productstudio.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-productstudio/0.12.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-productstudio/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-shopping-merchant-products/README.md b/java-shopping-merchant-products/README.md index d059bb115010..0ecc7cf95e9d 100644 --- a/java-shopping-merchant-products/README.md +++ b/java-shopping-merchant-products/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.66.0 + 26.67.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-products - 1.0.0 + 1.1.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-products:1.0.0' +implementation 'com.google.shopping:google-shopping-merchant-products:1.1.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-products" % "1.0.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-products" % "1.1.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.shopping/google-shopping-merchant-products.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-products/1.0.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-products/1.1.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-promotions/README.md b/java-shopping-merchant-promotions/README.md index 48e195d98b1a..d87a83e8ca20 100644 --- a/java-shopping-merchant-promotions/README.md +++ b/java-shopping-merchant-promotions/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.66.0 + 26.67.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-promotions - 1.0.0 + 1.1.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-promotions:1.0.0' +implementation 'com.google.shopping:google-shopping-merchant-promotions:1.1.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-promotions" % "1.0.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-promotions" % "1.1.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.shopping/google-shopping-merchant-promotions.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-promotions/1.0.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-promotions/1.1.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-quota/README.md b/java-shopping-merchant-quota/README.md index a6e748c517b6..519d20beea85 100644 --- a/java-shopping-merchant-quota/README.md +++ b/java-shopping-merchant-quota/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.66.0 + 26.67.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-quota - 1.0.0 + 1.1.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-quota:1.0.0' +implementation 'com.google.shopping:google-shopping-merchant-quota:1.1.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-quota" % "1.0.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-quota" % "1.1.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.shopping/google-shopping-merchant-quota.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-quota/1.0.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-quota/1.1.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-reports/README.md b/java-shopping-merchant-reports/README.md index 1cf9d0c703f0..f156c2914b3a 100644 --- a/java-shopping-merchant-reports/README.md +++ b/java-shopping-merchant-reports/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.66.0 + 26.67.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-reports - 1.0.0 + 1.1.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-reports:1.0.0' +implementation 'com.google.shopping:google-shopping-merchant-reports:1.1.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-reports" % "1.0.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-reports" % "1.1.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.shopping/google-shopping-merchant-reports.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-reports/1.0.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-reports/1.1.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-reviews/README.md b/java-shopping-merchant-reviews/README.md index fc71c453851f..86f357cbcdc3 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.66.0 + 26.67.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.18.0 + 0.19.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-reviews:0.18.0' +implementation 'com.google.shopping:google-shopping-merchant-reviews:0.19.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-reviews" % "0.18.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-reviews" % "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.shopping/google-shopping-merchant-reviews.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-reviews/0.18.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-reviews/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-spanneradapter/README.md b/java-spanneradapter/README.md index be726741b316..aaeba35fa8a2 100644 --- a/java-spanneradapter/README.md +++ b/java-spanneradapter/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.66.0 + 26.67.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-spanneradapter - 0.8.0 + 0.9.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-spanneradapter:0.8.0' +implementation 'com.google.cloud:google-cloud-spanneradapter:0.9.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-spanneradapter" % "0.8.0" +libraryDependencies += "com.google.cloud" % "google-cloud-spanneradapter" % "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.cloud/google-cloud-spanneradapter.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-spanneradapter/0.8.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-spanneradapter/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-speech/README.md b/java-speech/README.md index d0f67f090834..3427b1b3266f 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.66.0 + 26.67.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.67.0 + 4.68.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-speech:4.67.0' +implementation 'com.google.cloud:google-cloud-speech:4.68.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-speech" % "4.67.0" +libraryDependencies += "com.google.cloud" % "google-cloud-speech" % "4.68.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.67.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-speech/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-storage-transfer/README.md b/java-storage-transfer/README.md index a117729af2ed..501bb5463563 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.66.0 + 26.67.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.72.0 + 1.73.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-storage-transfer:1.72.0' +implementation 'com.google.cloud:google-cloud-storage-transfer:1.73.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-storage-transfer" % "1.72.0" +libraryDependencies += "com.google.cloud" % "google-cloud-storage-transfer" % "1.73.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.72.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storage-transfer/1.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-storagebatchoperations/README.md b/java-storagebatchoperations/README.md index f3424c1c0c29..7ab2bebad7d6 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.66.0 + 26.67.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.12.0 + 0.13.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-storagebatchoperations:0.12.0' +implementation 'com.google.cloud:google-cloud-storagebatchoperations:0.13.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-storagebatchoperations" % "0.12.0" +libraryDependencies += "com.google.cloud" % "google-cloud-storagebatchoperations" % "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.cloud/google-cloud-storagebatchoperations.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storagebatchoperations/0.12.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storagebatchoperations/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-storageinsights/README.md b/java-storageinsights/README.md index f4047672cd69..b92eba734e38 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.66.0 + 26.67.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.57.0 + 0.58.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-storageinsights:0.57.0' +implementation 'com.google.cloud:google-cloud-storageinsights:0.58.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-storageinsights" % "0.57.0" +libraryDependencies += "com.google.cloud" % "google-cloud-storageinsights" % "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-storageinsights.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storageinsights/0.57.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storageinsights/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-talent/README.md b/java-talent/README.md index 95e1521d2e34..e5738935a3f2 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.66.0 + 26.67.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.73.0 + 2.74.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-talent:2.73.0' +implementation 'com.google.cloud:google-cloud-talent:2.74.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-talent" % "2.73.0" +libraryDependencies += "com.google.cloud" % "google-cloud-talent" % "2.74.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.73.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-talent/2.74.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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 a70339a75fa5..a7c53417230e 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.66.0 + 26.67.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.72.0 + 2.73.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-tasks:2.72.0' +implementation 'com.google.cloud:google-cloud-tasks:2.73.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.72.0" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.73.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.72.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-tasks/2.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-telcoautomation/README.md b/java-telcoautomation/README.md index 19921c31a3ca..633eee6bc269 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.66.0 + 26.67.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.42.0 + 0.43.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-telcoautomation:0.42.0' +implementation 'com.google.cloud:google-cloud-telcoautomation:0.43.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-telcoautomation" % "0.42.0" +libraryDependencies += "com.google.cloud" % "google-cloud-telcoautomation" % "0.43.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.42.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-telcoautomation/0.43.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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 272308a7a603..54b1c0a10659 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.66.0 + 26.67.0 pom import diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioEncoding.java b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioEncoding.java index 762719a61f74..6db0adffa0c0 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioEncoding.java +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioEncoding.java @@ -34,7 +34,8 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { * * *
    -   * Not specified. Will return result
    +   * Not specified. Only used by GenerateVoiceCloningKey. Otherwise, will return
    +   * result
        * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT].
        * 
    * @@ -109,6 +110,16 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { * PCM = 7; */ PCM(7), + /** + * + * + *
    +   * M4A audio.
    +   * 
    + * + * M4A = 8; + */ + M4A(8), UNRECOGNIZED(-1), ; @@ -116,7 +127,8 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { * * *
    -   * Not specified. Will return result
    +   * Not specified. Only used by GenerateVoiceCloningKey. Otherwise, will return
    +   * result
        * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT].
        * 
    * @@ -198,6 +210,17 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PCM_VALUE = 7; + /** + * + * + *
    +   * M4A audio.
    +   * 
    + * + * M4A = 8; + */ + public static final int M4A_VALUE = 8; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -236,6 +259,8 @@ public static AudioEncoding forNumber(int value) { return ALAW; case 7: return PCM; + case 8: + return M4A; default: return null; } diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/CustomVoiceParams.java b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/CustomVoiceParams.java index 061de52eb6a1..a2491bc378dc 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/CustomVoiceParams.java +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/CustomVoiceParams.java @@ -305,7 +305,7 @@ public com.google.protobuf.ByteString getModelBytes() { * * * @deprecated google.cloud.texttospeech.v1.CustomVoiceParams.reported_usage is deprecated. See - * google/cloud/texttospeech/v1/cloud_tts.proto;l=412 + * google/cloud/texttospeech/v1/cloud_tts.proto;l=426 * @return The enum numeric value on the wire for reportedUsage. */ @java.lang.Override @@ -326,7 +326,7 @@ public int getReportedUsageValue() { * * * @deprecated google.cloud.texttospeech.v1.CustomVoiceParams.reported_usage is deprecated. See - * google/cloud/texttospeech/v1/cloud_tts.proto;l=412 + * google/cloud/texttospeech/v1/cloud_tts.proto;l=426 * @return The reportedUsage. */ @java.lang.Override @@ -845,7 +845,7 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.cloud.texttospeech.v1.CustomVoiceParams.reported_usage is deprecated. See - * google/cloud/texttospeech/v1/cloud_tts.proto;l=412 + * google/cloud/texttospeech/v1/cloud_tts.proto;l=426 * @return The enum numeric value on the wire for reportedUsage. */ @java.lang.Override @@ -866,7 +866,7 @@ public int getReportedUsageValue() { * * * @deprecated google.cloud.texttospeech.v1.CustomVoiceParams.reported_usage is deprecated. See - * google/cloud/texttospeech/v1/cloud_tts.proto;l=412 + * google/cloud/texttospeech/v1/cloud_tts.proto;l=426 * @param value The enum numeric value on the wire for reportedUsage to set. * @return This builder for chaining. */ @@ -890,7 +890,7 @@ public Builder setReportedUsageValue(int value) { * * * @deprecated google.cloud.texttospeech.v1.CustomVoiceParams.reported_usage is deprecated. See - * google/cloud/texttospeech/v1/cloud_tts.proto;l=412 + * google/cloud/texttospeech/v1/cloud_tts.proto;l=426 * @return The reportedUsage. */ @java.lang.Override @@ -916,7 +916,7 @@ public com.google.cloud.texttospeech.v1.CustomVoiceParams.ReportedUsage getRepor * * * @deprecated google.cloud.texttospeech.v1.CustomVoiceParams.reported_usage is deprecated. See - * google/cloud/texttospeech/v1/cloud_tts.proto;l=412 + * google/cloud/texttospeech/v1/cloud_tts.proto;l=426 * @param value The reportedUsage to set. * @return This builder for chaining. */ @@ -944,7 +944,7 @@ public Builder setReportedUsage( * * * @deprecated google.cloud.texttospeech.v1.CustomVoiceParams.reported_usage is deprecated. See - * google/cloud/texttospeech/v1/cloud_tts.proto;l=412 + * google/cloud/texttospeech/v1/cloud_tts.proto;l=426 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/CustomVoiceParamsOrBuilder.java b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/CustomVoiceParamsOrBuilder.java index 9d4329bb45af..d9b3eb41f8b5 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/CustomVoiceParamsOrBuilder.java +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/CustomVoiceParamsOrBuilder.java @@ -66,7 +66,7 @@ public interface CustomVoiceParamsOrBuilder * * * @deprecated google.cloud.texttospeech.v1.CustomVoiceParams.reported_usage is deprecated. See - * google/cloud/texttospeech/v1/cloud_tts.proto;l=412 + * google/cloud/texttospeech/v1/cloud_tts.proto;l=426 * @return The enum numeric value on the wire for reportedUsage. */ @java.lang.Deprecated @@ -84,7 +84,7 @@ public interface CustomVoiceParamsOrBuilder * * * @deprecated google.cloud.texttospeech.v1.CustomVoiceParams.reported_usage is deprecated. See - * google/cloud/texttospeech/v1/cloud_tts.proto;l=412 + * google/cloud/texttospeech/v1/cloud_tts.proto;l=426 * @return The reportedUsage. */ @java.lang.Deprecated diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/StreamingSynthesisInput.java b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/StreamingSynthesisInput.java index 0c49865b09db..efd7d75dd1cd 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/StreamingSynthesisInput.java +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/StreamingSynthesisInput.java @@ -39,7 +39,9 @@ private StreamingSynthesisInput(com.google.protobuf.GeneratedMessageV3.Builder + * This is system instruction supported only for controllable voice models. + * + * + * optional string prompt = 6; + * + * @return Whether the prompt field is set. + */ + @java.lang.Override + public boolean hasPrompt() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * This is system instruction supported only for controllable voice models.
    +   * 
    + * + * optional string prompt = 6; + * + * @return The prompt. + */ + @java.lang.Override + public java.lang.String getPrompt() { + java.lang.Object ref = prompt_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + prompt_ = s; + return s; + } + } + + /** + * + * + *
    +   * This is system instruction supported only for controllable voice models.
    +   * 
    + * + * optional string prompt = 6; + * + * @return The bytes for prompt. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPromptBytes() { + java.lang.Object ref = prompt_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + prompt_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -287,6 +359,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (inputSourceCase_ == 5) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, inputSource_); } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, prompt_); + } getUnknownFields().writeTo(output); } @@ -302,6 +377,9 @@ public int getSerializedSize() { if (inputSourceCase_ == 5) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, inputSource_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, prompt_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -318,6 +396,10 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.texttospeech.v1.StreamingSynthesisInput other = (com.google.cloud.texttospeech.v1.StreamingSynthesisInput) obj; + if (hasPrompt() != other.hasPrompt()) return false; + if (hasPrompt()) { + if (!getPrompt().equals(other.getPrompt())) return false; + } if (!getInputSourceCase().equals(other.getInputSourceCase())) return false; switch (inputSourceCase_) { case 1: @@ -340,6 +422,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPrompt()) { + hash = (37 * hash) + PROMPT_FIELD_NUMBER; + hash = (53 * hash) + getPrompt().hashCode(); + } switch (inputSourceCase_) { case 1: hash = (37 * hash) + TEXT_FIELD_NUMBER; @@ -493,6 +579,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; + prompt_ = ""; inputSourceCase_ = 0; inputSource_ = null; return this; @@ -532,6 +619,12 @@ public com.google.cloud.texttospeech.v1.StreamingSynthesisInput buildPartial() { private void buildPartial0(com.google.cloud.texttospeech.v1.StreamingSynthesisInput result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.prompt_ = prompt_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs( @@ -586,6 +679,11 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.texttospeech.v1.StreamingSynthesisInput other) { if (other == com.google.cloud.texttospeech.v1.StreamingSynthesisInput.getDefaultInstance()) return this; + if (other.hasPrompt()) { + prompt_ = other.prompt_; + bitField0_ |= 0x00000004; + onChanged(); + } switch (other.getInputSourceCase()) { case TEXT: { @@ -646,6 +744,12 @@ public Builder mergeFrom( inputSource_ = s; break; } // case 42 + case 50: + { + prompt_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -975,6 +1079,132 @@ public Builder setMarkupBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object prompt_ = ""; + + /** + * + * + *
    +     * This is system instruction supported only for controllable voice models.
    +     * 
    + * + * optional string prompt = 6; + * + * @return Whether the prompt field is set. + */ + public boolean hasPrompt() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +     * This is system instruction supported only for controllable voice models.
    +     * 
    + * + * optional string prompt = 6; + * + * @return The prompt. + */ + public java.lang.String getPrompt() { + java.lang.Object ref = prompt_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + prompt_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * This is system instruction supported only for controllable voice models.
    +     * 
    + * + * optional string prompt = 6; + * + * @return The bytes for prompt. + */ + public com.google.protobuf.ByteString getPromptBytes() { + java.lang.Object ref = prompt_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + prompt_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * This is system instruction supported only for controllable voice models.
    +     * 
    + * + * optional string prompt = 6; + * + * @param value The prompt to set. + * @return This builder for chaining. + */ + public Builder setPrompt(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + prompt_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * This is system instruction supported only for controllable voice models.
    +     * 
    + * + * optional string prompt = 6; + * + * @return This builder for chaining. + */ + public Builder clearPrompt() { + prompt_ = getDefaultInstance().getPrompt(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
    +     * This is system instruction supported only for controllable voice models.
    +     * 
    + * + * optional string prompt = 6; + * + * @param value The bytes for prompt to set. + * @return This builder for chaining. + */ + public Builder setPromptBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + prompt_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/StreamingSynthesisInputOrBuilder.java b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/StreamingSynthesisInputOrBuilder.java index 72259964694e..53b75f1461d3 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/StreamingSynthesisInputOrBuilder.java +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/StreamingSynthesisInputOrBuilder.java @@ -111,5 +111,44 @@ public interface StreamingSynthesisInputOrBuilder */ com.google.protobuf.ByteString getMarkupBytes(); + /** + * + * + *
    +   * This is system instruction supported only for controllable voice models.
    +   * 
    + * + * optional string prompt = 6; + * + * @return Whether the prompt field is set. + */ + boolean hasPrompt(); + + /** + * + * + *
    +   * This is system instruction supported only for controllable voice models.
    +   * 
    + * + * optional string prompt = 6; + * + * @return The prompt. + */ + java.lang.String getPrompt(); + + /** + * + * + *
    +   * This is system instruction supported only for controllable voice models.
    +   * 
    + * + * optional string prompt = 6; + * + * @return The bytes for prompt. + */ + com.google.protobuf.ByteString getPromptBytes(); + com.google.cloud.texttospeech.v1.StreamingSynthesisInput.InputSourceCase getInputSourceCase(); } diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesisInput.java b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesisInput.java index b204d5c7890e..3cf3b6d39f22 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesisInput.java +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesisInput.java @@ -42,7 +42,9 @@ private SynthesisInput(com.google.protobuf.GeneratedMessageV3.Builder builder super(builder); } - private SynthesisInput() {} + private SynthesisInput() { + prompt_ = ""; + } @java.lang.Override @SuppressWarnings({"unused"}) @@ -414,6 +416,84 @@ public com.google.cloud.texttospeech.v1.MultiSpeakerMarkup getMultiSpeakerMarkup return com.google.cloud.texttospeech.v1.MultiSpeakerMarkup.getDefaultInstance(); } + public static final int PROMPT_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object prompt_ = ""; + + /** + * + * + *
    +   * This system instruction is supported only for controllable/promptable voice
    +   * models. If this system instruction is used, we pass the unedited text to
    +   * Gemini-TTS. Otherwise, a default system instruction is used. AI Studio
    +   * calls this system instruction, Style Instructions.
    +   * 
    + * + * optional string prompt = 6; + * + * @return Whether the prompt field is set. + */ + @java.lang.Override + public boolean hasPrompt() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * This system instruction is supported only for controllable/promptable voice
    +   * models. If this system instruction is used, we pass the unedited text to
    +   * Gemini-TTS. Otherwise, a default system instruction is used. AI Studio
    +   * calls this system instruction, Style Instructions.
    +   * 
    + * + * optional string prompt = 6; + * + * @return The prompt. + */ + @java.lang.Override + public java.lang.String getPrompt() { + java.lang.Object ref = prompt_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + prompt_ = s; + return s; + } + } + + /** + * + * + *
    +   * This system instruction is supported only for controllable/promptable voice
    +   * models. If this system instruction is used, we pass the unedited text to
    +   * Gemini-TTS. Otherwise, a default system instruction is used. AI Studio
    +   * calls this system instruction, Style Instructions.
    +   * 
    + * + * optional string prompt = 6; + * + * @return The bytes for prompt. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPromptBytes() { + java.lang.Object ref = prompt_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + prompt_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int CUSTOM_PRONUNCIATIONS_FIELD_NUMBER = 3; private com.google.cloud.texttospeech.v1.CustomPronunciations customPronunciations_; @@ -441,7 +521,7 @@ public com.google.cloud.texttospeech.v1.MultiSpeakerMarkup getMultiSpeakerMarkup */ @java.lang.Override public boolean hasCustomPronunciations() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** @@ -521,7 +601,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (inputSourceCase_ == 2) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, inputSource_); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getCustomPronunciations()); } if (inputSourceCase_ == 4) { @@ -530,6 +610,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (inputSourceCase_ == 5) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, inputSource_); } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, prompt_); + } getUnknownFields().writeTo(output); } @@ -545,7 +628,7 @@ public int getSerializedSize() { if (inputSourceCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, inputSource_); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCustomPronunciations()); } @@ -557,6 +640,9 @@ public int getSerializedSize() { if (inputSourceCase_ == 5) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, inputSource_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, prompt_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -573,6 +659,10 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.texttospeech.v1.SynthesisInput other = (com.google.cloud.texttospeech.v1.SynthesisInput) obj; + if (hasPrompt() != other.hasPrompt()) return false; + if (hasPrompt()) { + if (!getPrompt().equals(other.getPrompt())) return false; + } if (hasCustomPronunciations() != other.hasCustomPronunciations()) return false; if (hasCustomPronunciations()) { if (!getCustomPronunciations().equals(other.getCustomPronunciations())) return false; @@ -605,6 +695,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPrompt()) { + hash = (37 * hash) + PROMPT_FIELD_NUMBER; + hash = (53 * hash) + getPrompt().hashCode(); + } if (hasCustomPronunciations()) { hash = (37 * hash) + CUSTOM_PRONUNCIATIONS_FIELD_NUMBER; hash = (53 * hash) + getCustomPronunciations().hashCode(); @@ -784,6 +878,7 @@ public Builder clear() { if (multiSpeakerMarkupBuilder_ != null) { multiSpeakerMarkupBuilder_.clear(); } + prompt_ = ""; customPronunciations_ = null; if (customPronunciationsBuilder_ != null) { customPronunciationsBuilder_.dispose(); @@ -830,11 +925,15 @@ private void buildPartial0(com.google.cloud.texttospeech.v1.SynthesisInput resul int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000010) != 0)) { + result.prompt_ = prompt_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { result.customPronunciations_ = customPronunciationsBuilder_ == null ? customPronunciations_ : customPronunciationsBuilder_.build(); - to_bitField0_ |= 0x00000001; + to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @@ -893,6 +992,11 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.texttospeech.v1.SynthesisInput other) { if (other == com.google.cloud.texttospeech.v1.SynthesisInput.getDefaultInstance()) return this; + if (other.hasPrompt()) { + prompt_ = other.prompt_; + bitField0_ |= 0x00000010; + onChanged(); + } if (other.hasCustomPronunciations()) { mergeCustomPronunciations(other.getCustomPronunciations()); } @@ -972,7 +1076,7 @@ public Builder mergeFrom( { input.readMessage( getCustomPronunciationsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 26 case 34: @@ -989,6 +1093,12 @@ public Builder mergeFrom( inputSource_ = s; break; } // case 42 + case 50: + { + prompt_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1701,6 +1811,150 @@ public Builder clearMultiSpeakerMarkup() { return multiSpeakerMarkupBuilder_; } + private java.lang.Object prompt_ = ""; + + /** + * + * + *
    +     * This system instruction is supported only for controllable/promptable voice
    +     * models. If this system instruction is used, we pass the unedited text to
    +     * Gemini-TTS. Otherwise, a default system instruction is used. AI Studio
    +     * calls this system instruction, Style Instructions.
    +     * 
    + * + * optional string prompt = 6; + * + * @return Whether the prompt field is set. + */ + public boolean hasPrompt() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
    +     * This system instruction is supported only for controllable/promptable voice
    +     * models. If this system instruction is used, we pass the unedited text to
    +     * Gemini-TTS. Otherwise, a default system instruction is used. AI Studio
    +     * calls this system instruction, Style Instructions.
    +     * 
    + * + * optional string prompt = 6; + * + * @return The prompt. + */ + public java.lang.String getPrompt() { + java.lang.Object ref = prompt_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + prompt_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * This system instruction is supported only for controllable/promptable voice
    +     * models. If this system instruction is used, we pass the unedited text to
    +     * Gemini-TTS. Otherwise, a default system instruction is used. AI Studio
    +     * calls this system instruction, Style Instructions.
    +     * 
    + * + * optional string prompt = 6; + * + * @return The bytes for prompt. + */ + public com.google.protobuf.ByteString getPromptBytes() { + java.lang.Object ref = prompt_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + prompt_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * This system instruction is supported only for controllable/promptable voice
    +     * models. If this system instruction is used, we pass the unedited text to
    +     * Gemini-TTS. Otherwise, a default system instruction is used. AI Studio
    +     * calls this system instruction, Style Instructions.
    +     * 
    + * + * optional string prompt = 6; + * + * @param value The prompt to set. + * @return This builder for chaining. + */ + public Builder setPrompt(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + prompt_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +     * This system instruction is supported only for controllable/promptable voice
    +     * models. If this system instruction is used, we pass the unedited text to
    +     * Gemini-TTS. Otherwise, a default system instruction is used. AI Studio
    +     * calls this system instruction, Style Instructions.
    +     * 
    + * + * optional string prompt = 6; + * + * @return This builder for chaining. + */ + public Builder clearPrompt() { + prompt_ = getDefaultInstance().getPrompt(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
    +     * This system instruction is supported only for controllable/promptable voice
    +     * models. If this system instruction is used, we pass the unedited text to
    +     * Gemini-TTS. Otherwise, a default system instruction is used. AI Studio
    +     * calls this system instruction, Style Instructions.
    +     * 
    + * + * optional string prompt = 6; + * + * @param value The bytes for prompt to set. + * @return This builder for chaining. + */ + public Builder setPromptBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + prompt_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + private com.google.cloud.texttospeech.v1.CustomPronunciations customPronunciations_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.texttospeech.v1.CustomPronunciations, @@ -1731,7 +1985,7 @@ public Builder clearMultiSpeakerMarkup() { * @return Whether the customPronunciations field is set. */ public boolean hasCustomPronunciations() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** @@ -1796,7 +2050,7 @@ public Builder setCustomPronunciations( } else { customPronunciationsBuilder_.setMessage(value); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1828,7 +2082,7 @@ public Builder setCustomPronunciations( } else { customPronunciationsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1856,7 +2110,7 @@ public Builder setCustomPronunciations( public Builder mergeCustomPronunciations( com.google.cloud.texttospeech.v1.CustomPronunciations value) { if (customPronunciationsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) + if (((bitField0_ & 0x00000020) != 0) && customPronunciations_ != null && customPronunciations_ != com.google.cloud.texttospeech.v1.CustomPronunciations.getDefaultInstance()) { @@ -1868,7 +2122,7 @@ public Builder mergeCustomPronunciations( customPronunciationsBuilder_.mergeFrom(value); } if (customPronunciations_ != null) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); } return this; @@ -1895,7 +2149,7 @@ public Builder mergeCustomPronunciations( * */ public Builder clearCustomPronunciations() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); customPronunciations_ = null; if (customPronunciationsBuilder_ != null) { customPronunciationsBuilder_.dispose(); @@ -1927,7 +2181,7 @@ public Builder clearCustomPronunciations() { */ public com.google.cloud.texttospeech.v1.CustomPronunciations.Builder getCustomPronunciationsBuilder() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return getCustomPronunciationsFieldBuilder().getBuilder(); } diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesisInputOrBuilder.java b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesisInputOrBuilder.java index 9a070e8ab4f6..751ab4ab6310 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesisInputOrBuilder.java +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesisInputOrBuilder.java @@ -196,6 +196,54 @@ public interface SynthesisInputOrBuilder */ com.google.cloud.texttospeech.v1.MultiSpeakerMarkupOrBuilder getMultiSpeakerMarkupOrBuilder(); + /** + * + * + *
    +   * This system instruction is supported only for controllable/promptable voice
    +   * models. If this system instruction is used, we pass the unedited text to
    +   * Gemini-TTS. Otherwise, a default system instruction is used. AI Studio
    +   * calls this system instruction, Style Instructions.
    +   * 
    + * + * optional string prompt = 6; + * + * @return Whether the prompt field is set. + */ + boolean hasPrompt(); + + /** + * + * + *
    +   * This system instruction is supported only for controllable/promptable voice
    +   * models. If this system instruction is used, we pass the unedited text to
    +   * Gemini-TTS. Otherwise, a default system instruction is used. AI Studio
    +   * calls this system instruction, Style Instructions.
    +   * 
    + * + * optional string prompt = 6; + * + * @return The prompt. + */ + java.lang.String getPrompt(); + + /** + * + * + *
    +   * This system instruction is supported only for controllable/promptable voice
    +   * models. If this system instruction is used, we pass the unedited text to
    +   * Gemini-TTS. Otherwise, a default system instruction is used. AI Studio
    +   * calls this system instruction, Style Instructions.
    +   * 
    + * + * optional string prompt = 6; + * + * @return The bytes for prompt. + */ + com.google.protobuf.ByteString getPromptBytes(); + /** * * diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechProto.java b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechProto.java index 2e88d8a95abf..025d9ede83e5 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechProto.java +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechProto.java @@ -168,25 +168,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\01325.google.cloud.texttospeech.v1.MultiSpeakerMarkup.TurnB\003\340A\002\032/\n" + "\004Turn\022\024\n" + "\007speaker\030\001 \001(\tB\003\340A\002\022\021\n" - + "\004text\030\002 \001(\tB\003\340A\002\"\374\001\n" + + "\004text\030\002 \001(\tB\003\340A\002\"\234\002\n" + "\016SynthesisInput\022\016\n" + "\004text\030\001 \001(\tH\000\022\020\n" + "\006markup\030\005 \001(\tH\000\022\016\n" + "\004ssml\030\002 \001(\tH\000\022P\n" + "\024multi_speaker_markup\030\004" - + " \001(\01320.google.cloud.texttospeech.v1.MultiSpeakerMarkupH\000\022V\n" - + "\025custom_pronunciations\030\003" - + " \001(\01322.google.cloud.texttospeech.v1.CustomPronunciationsB\003\340A\001B\016\n" - + "\014input_source\"\225\002\n" + + " \001(\01320.google.cloud.texttospeech.v1.MultiSpeakerMarkupH\000\022\023\n" + + "\006prompt\030\006 \001(\tH\001\210\001\001\022V\n" + + "\025custom_pronunciations\030\003 \001(\01322.g" + + "oogle.cloud.texttospeech.v1.CustomPronunciationsB\003\340A\001B\016\n" + + "\014input_sourceB\t\n" + + "\007_prompt\"\256\002\n" + "\024VoiceSelectionParams\022\032\n\r" + "language_code\030\001 \001(\tB\003\340A\002\022\014\n" + "\004name\030\002 \001(\t\022B\n" + "\013ssml_gender\030\003" + " \001(\0162-.google.cloud.texttospeech.v1.SsmlVoiceGender\022E\n" - + "\014custom_voice\030\004" - + " \001(\0132/.google.cloud.texttospeech.v1.CustomVoiceParams\022H\n" - + "\013voice_clone\030\005 \001(\0132..go" - + "ogle.cloud.texttospeech.v1.VoiceCloneParamsB\003\340A\001\"\361\001\n" + + "\014custom_voice\030\004 \001(\0132/." + + "google.cloud.texttospeech.v1.CustomVoiceParams\022H\n" + + "\013voice_clone\030\005 \001(\0132..google.clo" + + "ud.texttospeech.v1.VoiceCloneParamsB\003\340A\001\022\027\n\n" + + "model_name\030\006 \001(\tB\003\340A\001\"\361\001\n" + "\013AudioConfig\022H\n" + "\016audio_encoding\030\001" + " \001(\0162+.google.cloud.texttospeech.v1.AudioEncodingB\003\340A\002\022\035\n\r" @@ -198,8 +201,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021CustomVoiceParams\0222\n" + "\005model\030\001 \001(\tB#\340A\002\372A\035\n" + "\033automl.googleapis.com/Model\022\\\n" - + "\016reported_usage\030\003 \001(\0162=.google." - + "cloud.texttospeech.v1.CustomVoiceParams.ReportedUsageB\005\030\001\340A\001\"J\n\r" + + "\016reported_usage\030\003" + + " \001(\0162=.google.cloud.texttospeech.v1.CustomVoiceParams.ReportedUsageB\005\030\001\340A\001\"J\n" + + "\r" + "ReportedUsage\022\036\n" + "\032REPORTED_USAGE_UNSPECIFIED\020\000\022\014\n" + "\010REALTIME\020\001\022\013\n" @@ -214,30 +218,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021sample_rate_hertz\030\002 \001(\005B\003\340A\001\022\035\n\r" + "speaking_rate\030\003 \001(\001B\006\340A\004\340A\001\"\224\002\n" + "\031StreamingSynthesizeConfig\022F\n" - + "\005voice\030\001" - + " \001(\01322.google.cloud.texttospeech.v1.VoiceSelectionParamsB\003\340A\002\022W\n" - + "\026streaming_audio_config\030\004" - + " \001(\01322.google.cloud.texttospeech.v1.StreamingAudioConfigB\003\340A\001\022V\n" - + "\025custom_pronunciations\030\005 \001(\01322.google.cloud.t" - + "exttospeech.v1.CustomPronunciationsB\003\340A\001\"K\n" + + "\005voice\030\001 \001(\01322.google.cloud.t" + + "exttospeech.v1.VoiceSelectionParamsB\003\340A\002\022W\n" + + "\026streaming_audio_config\030\004 \001(\01322.googl" + + "e.cloud.texttospeech.v1.StreamingAudioConfigB\003\340A\001\022V\n" + + "\025custom_pronunciations\030\005 \001(\013" + + "22.google.cloud.texttospeech.v1.CustomPronunciationsB\003\340A\001\"k\n" + "\027StreamingSynthesisInput\022\016\n" + "\004text\030\001 \001(\tH\000\022\020\n" - + "\006markup\030\005 \001(\tH\000B\016\n" - + "\014input_source\"\316\001\n" + + "\006markup\030\005 \001(\tH\000\022\023\n" + + "\006prompt\030\006 \001(\tH\001\210\001\001B\016\n" + + "\014input_sourceB\t\n" + + "\007_prompt\"\316\001\n" + "\032StreamingSynthesizeRequest\022S\n" - + "\020streaming_config\030\001" - + " \001(\01327.google.cloud.texttospeech.v1.StreamingSynthesizeConfigH\000\022F\n" + + "\020streaming_config\030\001 \001(\01327.google.cloud.t" + + "exttospeech.v1.StreamingSynthesizeConfigH\000\022F\n" + "\005input\030\002" + " \001(\01325.google.cloud.texttospeech.v1.StreamingSynthesisInputH\000B\023\n" + "\021streaming_request\"4\n" - + "\033StreamingSynthesizeResponse\022\025\n" - + "\r" + + "\033StreamingSynthesizeResponse\022\025\n\r" + "audio_content\030\001 \001(\014*W\n" + "\017SsmlVoiceGender\022!\n" + "\035SSML_VOICE_GENDER_UNSPECIFIED\020\000\022\010\n" + "\004MALE\020\001\022\n\n" + "\006FEMALE\020\002\022\013\n" - + "\007NEUTRAL\020\003*r\n\r" + + "\007NEUTRAL\020\003*{\n\r" + "AudioEncoding\022\036\n" + "\032AUDIO_ENCODING_UNSPECIFIED\020\000\022\014\n" + "\010LINEAR16\020\001\022\007\n" @@ -245,26 +250,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010OGG_OPUS\020\003\022\t\n" + "\005MULAW\020\005\022\010\n" + "\004ALAW\020\006\022\007\n" - + "\003PCM\020\0072\307\004\n" + + "\003PCM\020\007\022\007\n" + + "\003M4A\020\0102\307\004\n" + "\014TextToSpeech\022\223\001\n\n" - + "ListVoices\022/.google.cloud.texttospeech.v1.ListVoicesRequest\0320.google.clou" - + "d.texttospeech.v1.ListVoicesResponse\"\"\332A\r" + + "ListVoices\022/.google.cloud.texttospeech.v1.ListVoicesReq" + + "uest\0320.google.cloud.texttospeech.v1.ListVoicesResponse\"\"\332A\r" + "language_code\202\323\344\223\002\014\022\n" + "/v1/voices\022\274\001\n" - + "\020SynthesizeSpeech\0225.google.cloud.texttospeec" - + "h.v1.SynthesizeSpeechRequest\0326.google.cloud.texttospeech.v1.SynthesizeSpeechResp" - + "onse\"9\332A\030input,voice,audio_config\202\323\344\223\002\030\"\023/v1/text:synthesize:\001*\022\220\001\n" - + "\023StreamingSynthesize\0228.google.cloud.texttospeech.v1.S" - + "treamingSynthesizeRequest\0329.google.cloud.texttospeech.v1.StreamingSynthesizeResp" - + "onse\"\000(\0010\001\032O\312A\033texttospeech.googleapis.c" - + "om\322A.https://www.googleapis.com/auth/cloud-platformB\274\002\n" - + " com.google.cloud.texttospeech.v1B\021TextToSpeechProtoP\001ZDcloud.goo" - + "gle.com/go/texttospeech/apiv1/texttospee" - + "chpb;texttospeechpb\242\002\004CTTS\252\002\034Google.Clou" - + "d.TextToSpeech.V1\312\002\034Google\\Cloud\\TextToS" - + "peech\\V1\352\002\037Google::Cloud::TextToSpeech::V1\352AU\n" - + "\033automl.googleapis.com/Model\0226projects/{project}/locations/{location}/mode" - + "ls/{model}b\006proto3" + + "\020SynthesizeSpeech\0225.google.cloud.texttospeech.v1.SynthesizeSpeechR" + + "equest\0326.google.cloud.texttospeech.v1.Sy" + + "nthesizeSpeechResponse\"9\332A\030input,voice,a" + + "udio_config\202\323\344\223\002\030\"\023/v1/text:synthesize:\001*\022\220\001\n" + + "\023StreamingSynthesize\0228.google.cloud.texttospeech.v1.StreamingSynthesizeRequ" + + "est\0329.google.cloud.texttospeech.v1.Strea" + + "mingSynthesizeResponse\"\000(\0010\001\032O\312A\033texttos" + + "peech.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\274\002\n" + + " com.google.cloud.texttospeech.v1B\021TextToSpeech" + + "ProtoP\001ZDcloud.google.com/go/texttospeec" + + "h/apiv1/texttospeechpb;texttospeechpb\242\002\004" + + "CTTS\252\002\034Google.Cloud.TextToSpeech.V1\312\002\034Go" + + "ogle\\Cloud\\TextToSpeech\\V1\352\002\037Google::Cloud::TextToSpeech::V1\352AU\n" + + "\033automl.googleapis.com/Model\0226projects/{project}/locatio" + + "ns/{location}/models/{model}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -355,7 +362,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_texttospeech_v1_SynthesisInput_descriptor, new java.lang.String[] { - "Text", "Markup", "Ssml", "MultiSpeakerMarkup", "CustomPronunciations", "InputSource", + "Text", + "Markup", + "Ssml", + "MultiSpeakerMarkup", + "Prompt", + "CustomPronunciations", + "InputSource", }); internal_static_google_cloud_texttospeech_v1_VoiceSelectionParams_descriptor = getDescriptor().getMessageTypes().get(9); @@ -363,7 +376,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_texttospeech_v1_VoiceSelectionParams_descriptor, new java.lang.String[] { - "LanguageCode", "Name", "SsmlGender", "CustomVoice", "VoiceClone", + "LanguageCode", "Name", "SsmlGender", "CustomVoice", "VoiceClone", "ModelName", }); internal_static_google_cloud_texttospeech_v1_AudioConfig_descriptor = getDescriptor().getMessageTypes().get(10); @@ -424,7 +437,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_texttospeech_v1_StreamingSynthesisInput_descriptor, new java.lang.String[] { - "Text", "Markup", "InputSource", + "Text", "Markup", "Prompt", "InputSource", }); internal_static_google_cloud_texttospeech_v1_StreamingSynthesizeRequest_descriptor = getDescriptor().getMessageTypes().get(17); diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceSelectionParams.java b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceSelectionParams.java index 7b21d1d93a96..50f98f06b212 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceSelectionParams.java +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceSelectionParams.java @@ -43,6 +43,7 @@ private VoiceSelectionParams() { languageCode_ = ""; name_ = ""; ssmlGender_ = 0; + modelName_ = ""; } @java.lang.Override @@ -366,6 +367,61 @@ public com.google.cloud.texttospeech.v1.VoiceCloneParamsOrBuilder getVoiceCloneO : voiceClone_; } + public static final int MODEL_NAME_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object modelName_ = ""; + + /** + * + * + *
    +   * Optional. The name of the model. If set, the service will choose the model
    +   * matching the specified configuration.
    +   * 
    + * + * string model_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The modelName. + */ + @java.lang.Override + public java.lang.String getModelName() { + java.lang.Object ref = modelName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelName_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. The name of the model. If set, the service will choose the model
    +   * matching the specified configuration.
    +   * 
    + * + * string model_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for modelName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getModelNameBytes() { + java.lang.Object ref = modelName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -397,6 +453,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(5, getVoiceClone()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, modelName_); + } getUnknownFields().writeTo(output); } @@ -423,6 +482,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getVoiceClone()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, modelName_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -450,6 +512,7 @@ public boolean equals(final java.lang.Object obj) { if (hasVoiceClone()) { if (!getVoiceClone().equals(other.getVoiceClone())) return false; } + if (!getModelName().equals(other.getModelName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -475,6 +538,8 @@ public int hashCode() { hash = (37 * hash) + VOICE_CLONE_FIELD_NUMBER; hash = (53 * hash) + getVoiceClone().hashCode(); } + hash = (37 * hash) + MODEL_NAME_FIELD_NUMBER; + hash = (53 * hash) + getModelName().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -639,6 +704,7 @@ public Builder clear() { voiceCloneBuilder_.dispose(); voiceCloneBuilder_ = null; } + modelName_ = ""; return this; } @@ -694,6 +760,9 @@ private void buildPartial0(com.google.cloud.texttospeech.v1.VoiceSelectionParams result.voiceClone_ = voiceCloneBuilder_ == null ? voiceClone_ : voiceCloneBuilder_.build(); to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.modelName_ = modelName_; + } result.bitField0_ |= to_bitField0_; } @@ -762,6 +831,11 @@ public Builder mergeFrom(com.google.cloud.texttospeech.v1.VoiceSelectionParams o if (other.hasVoiceClone()) { mergeVoiceClone(other.getVoiceClone()); } + if (!other.getModelName().isEmpty()) { + modelName_ = other.modelName_; + bitField0_ |= 0x00000020; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -818,6 +892,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 42 + case 50: + { + modelName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1682,6 +1762,122 @@ public com.google.cloud.texttospeech.v1.VoiceCloneParamsOrBuilder getVoiceCloneO return voiceCloneBuilder_; } + private java.lang.Object modelName_ = ""; + + /** + * + * + *
    +     * Optional. The name of the model. If set, the service will choose the model
    +     * matching the specified configuration.
    +     * 
    + * + * string model_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The modelName. + */ + public java.lang.String getModelName() { + java.lang.Object ref = modelName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. The name of the model. If set, the service will choose the model
    +     * matching the specified configuration.
    +     * 
    + * + * string model_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for modelName. + */ + public com.google.protobuf.ByteString getModelNameBytes() { + java.lang.Object ref = modelName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. The name of the model. If set, the service will choose the model
    +     * matching the specified configuration.
    +     * 
    + * + * string model_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The modelName to set. + * @return This builder for chaining. + */ + public Builder setModelName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + modelName_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The name of the model. If set, the service will choose the model
    +     * matching the specified configuration.
    +     * 
    + * + * string model_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearModelName() { + modelName_ = getDefaultInstance().getModelName(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The name of the model. If set, the service will choose the model
    +     * matching the specified configuration.
    +     * 
    + * + * string model_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for modelName to set. + * @return This builder for chaining. + */ + public Builder setModelNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + modelName_ = 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-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceSelectionParamsOrBuilder.java b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceSelectionParamsOrBuilder.java index 8fbd49a17b9d..587b1ad9c7d6 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceSelectionParamsOrBuilder.java +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceSelectionParamsOrBuilder.java @@ -225,4 +225,32 @@ public interface VoiceSelectionParamsOrBuilder * */ com.google.cloud.texttospeech.v1.VoiceCloneParamsOrBuilder getVoiceCloneOrBuilder(); + + /** + * + * + *
    +   * Optional. The name of the model. If set, the service will choose the model
    +   * matching the specified configuration.
    +   * 
    + * + * string model_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The modelName. + */ + java.lang.String getModelName(); + + /** + * + * + *
    +   * Optional. The name of the model. If set, the service will choose the model
    +   * matching the specified configuration.
    +   * 
    + * + * string model_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for modelName. + */ + com.google.protobuf.ByteString getModelNameBytes(); } diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/proto/google/cloud/texttospeech/v1/cloud_tts.proto b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/proto/google/cloud/texttospeech/v1/cloud_tts.proto index cb6528d4e0b6..6d22489b848c 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/proto/google/cloud/texttospeech/v1/cloud_tts.proto +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/proto/google/cloud/texttospeech/v1/cloud_tts.proto @@ -88,7 +88,8 @@ enum SsmlVoiceGender { // Configuration to set up audio encoder. The encoding determines the output // audio format that we'd like. enum AudioEncoding { - // Not specified. Will return result + // Not specified. Only used by GenerateVoiceCloningKey. Otherwise, will return + // result // [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. AUDIO_ENCODING_UNSPECIFIED = 0; @@ -117,6 +118,9 @@ enum AudioEncoding { // Note that as opposed to LINEAR16, audio won't be wrapped in a WAV (or // any other) header. PCM = 7; + + // M4A audio. + M4A = 8; } // The top-level message sent by the client for the `ListVoices` method. @@ -277,6 +281,12 @@ message SynthesisInput { MultiSpeakerMarkup multi_speaker_markup = 4; } + // This system instruction is supported only for controllable/promptable voice + // models. If this system instruction is used, we pass the unedited text to + // Gemini-TTS. Otherwise, a default system instruction is used. AI Studio + // calls this system instruction, Style Instructions. + optional string prompt = 6; + // Optional. The pronunciation customizations are applied to the input. If // this is set, the input is synthesized using the given pronunciation // customizations. @@ -327,6 +337,10 @@ message VoiceSelectionParams { // [VoiceCloneParams.voice_clone_key] is set, the service chooses the voice // clone matching the specified configuration. VoiceCloneParams voice_clone = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The name of the model. If set, the service will choose the model + // matching the specified configuration. + string model_name = 6 [(google.api.field_behavior) = OPTIONAL]; } // Description of audio data to be synthesized. @@ -485,6 +499,9 @@ message StreamingSynthesisInput { // other voices. string markup = 5; } + + // This is system instruction supported only for controllable voice models. + optional string prompt = 6; } // Request message for the `StreamingSynthesize` method. Multiple diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomVoiceParams.java b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomVoiceParams.java index 54ee242cb3c3..f17ec626bd2d 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomVoiceParams.java +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomVoiceParams.java @@ -305,7 +305,7 @@ public com.google.protobuf.ByteString getModelBytes() { * * * @deprecated google.cloud.texttospeech.v1beta1.CustomVoiceParams.reported_usage is deprecated. - * See google/cloud/texttospeech/v1beta1/cloud_tts.proto;l=435 + * See google/cloud/texttospeech/v1beta1/cloud_tts.proto;l=441 * @return The enum numeric value on the wire for reportedUsage. */ @java.lang.Override @@ -326,7 +326,7 @@ public int getReportedUsageValue() { * * * @deprecated google.cloud.texttospeech.v1beta1.CustomVoiceParams.reported_usage is deprecated. - * See google/cloud/texttospeech/v1beta1/cloud_tts.proto;l=435 + * See google/cloud/texttospeech/v1beta1/cloud_tts.proto;l=441 * @return The reportedUsage. */ @java.lang.Override @@ -847,7 +847,7 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.cloud.texttospeech.v1beta1.CustomVoiceParams.reported_usage is deprecated. - * See google/cloud/texttospeech/v1beta1/cloud_tts.proto;l=435 + * See google/cloud/texttospeech/v1beta1/cloud_tts.proto;l=441 * @return The enum numeric value on the wire for reportedUsage. */ @java.lang.Override @@ -868,7 +868,7 @@ public int getReportedUsageValue() { * * * @deprecated google.cloud.texttospeech.v1beta1.CustomVoiceParams.reported_usage is deprecated. - * See google/cloud/texttospeech/v1beta1/cloud_tts.proto;l=435 + * See google/cloud/texttospeech/v1beta1/cloud_tts.proto;l=441 * @param value The enum numeric value on the wire for reportedUsage to set. * @return This builder for chaining. */ @@ -892,7 +892,7 @@ public Builder setReportedUsageValue(int value) { * * * @deprecated google.cloud.texttospeech.v1beta1.CustomVoiceParams.reported_usage is deprecated. - * See google/cloud/texttospeech/v1beta1/cloud_tts.proto;l=435 + * See google/cloud/texttospeech/v1beta1/cloud_tts.proto;l=441 * @return The reportedUsage. */ @java.lang.Override @@ -919,7 +919,7 @@ public Builder setReportedUsageValue(int value) { * * * @deprecated google.cloud.texttospeech.v1beta1.CustomVoiceParams.reported_usage is deprecated. - * See google/cloud/texttospeech/v1beta1/cloud_tts.proto;l=435 + * See google/cloud/texttospeech/v1beta1/cloud_tts.proto;l=441 * @param value The reportedUsage to set. * @return This builder for chaining. */ @@ -947,7 +947,7 @@ public Builder setReportedUsage( * * * @deprecated google.cloud.texttospeech.v1beta1.CustomVoiceParams.reported_usage is deprecated. - * See google/cloud/texttospeech/v1beta1/cloud_tts.proto;l=435 + * See google/cloud/texttospeech/v1beta1/cloud_tts.proto;l=441 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomVoiceParamsOrBuilder.java b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomVoiceParamsOrBuilder.java index 37c84e2e78fb..bca0a5addc71 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomVoiceParamsOrBuilder.java +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomVoiceParamsOrBuilder.java @@ -66,7 +66,7 @@ public interface CustomVoiceParamsOrBuilder * * * @deprecated google.cloud.texttospeech.v1beta1.CustomVoiceParams.reported_usage is deprecated. - * See google/cloud/texttospeech/v1beta1/cloud_tts.proto;l=435 + * See google/cloud/texttospeech/v1beta1/cloud_tts.proto;l=441 * @return The enum numeric value on the wire for reportedUsage. */ @java.lang.Deprecated @@ -84,7 +84,7 @@ public interface CustomVoiceParamsOrBuilder * * * @deprecated google.cloud.texttospeech.v1beta1.CustomVoiceParams.reported_usage is deprecated. - * See google/cloud/texttospeech/v1beta1/cloud_tts.proto;l=435 + * See google/cloud/texttospeech/v1beta1/cloud_tts.proto;l=441 * @return The reportedUsage. */ @java.lang.Deprecated diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesisInput.java b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesisInput.java index 372e7933134f..491b0448653d 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesisInput.java +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesisInput.java @@ -42,7 +42,9 @@ private SynthesisInput(com.google.protobuf.GeneratedMessageV3.Builder builder super(builder); } - private SynthesisInput() {} + private SynthesisInput() { + prompt_ = ""; + } @java.lang.Override @SuppressWarnings({"unused"}) @@ -414,6 +416,84 @@ public com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup getMultiSpeakerM return com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.getDefaultInstance(); } + public static final int PROMPT_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object prompt_ = ""; + + /** + * + * + *
    +   * This system instruction is supported only for controllable/promptable voice
    +   * models. If this system instruction is used, we pass the unedited text to
    +   * Gemini-TTS. Otherwise, a default system instruction is used. AI Studio
    +   * calls this system instruction, Style Instructions.
    +   * 
    + * + * optional string prompt = 6; + * + * @return Whether the prompt field is set. + */ + @java.lang.Override + public boolean hasPrompt() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +   * This system instruction is supported only for controllable/promptable voice
    +   * models. If this system instruction is used, we pass the unedited text to
    +   * Gemini-TTS. Otherwise, a default system instruction is used. AI Studio
    +   * calls this system instruction, Style Instructions.
    +   * 
    + * + * optional string prompt = 6; + * + * @return The prompt. + */ + @java.lang.Override + public java.lang.String getPrompt() { + java.lang.Object ref = prompt_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + prompt_ = s; + return s; + } + } + + /** + * + * + *
    +   * This system instruction is supported only for controllable/promptable voice
    +   * models. If this system instruction is used, we pass the unedited text to
    +   * Gemini-TTS. Otherwise, a default system instruction is used. AI Studio
    +   * calls this system instruction, Style Instructions.
    +   * 
    + * + * optional string prompt = 6; + * + * @return The bytes for prompt. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPromptBytes() { + java.lang.Object ref = prompt_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + prompt_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int CUSTOM_PRONUNCIATIONS_FIELD_NUMBER = 3; private com.google.cloud.texttospeech.v1beta1.CustomPronunciations customPronunciations_; @@ -441,7 +521,7 @@ public com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup getMultiSpeakerM */ @java.lang.Override public boolean hasCustomPronunciations() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** @@ -521,7 +601,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (inputSourceCase_ == 2) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, inputSource_); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getCustomPronunciations()); } if (inputSourceCase_ == 4) { @@ -531,6 +611,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (inputSourceCase_ == 5) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, inputSource_); } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, prompt_); + } getUnknownFields().writeTo(output); } @@ -546,7 +629,7 @@ public int getSerializedSize() { if (inputSourceCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, inputSource_); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCustomPronunciations()); } @@ -558,6 +641,9 @@ public int getSerializedSize() { if (inputSourceCase_ == 5) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, inputSource_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, prompt_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -574,6 +660,10 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.texttospeech.v1beta1.SynthesisInput other = (com.google.cloud.texttospeech.v1beta1.SynthesisInput) obj; + if (hasPrompt() != other.hasPrompt()) return false; + if (hasPrompt()) { + if (!getPrompt().equals(other.getPrompt())) return false; + } if (hasCustomPronunciations() != other.hasCustomPronunciations()) return false; if (hasCustomPronunciations()) { if (!getCustomPronunciations().equals(other.getCustomPronunciations())) return false; @@ -606,6 +696,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPrompt()) { + hash = (37 * hash) + PROMPT_FIELD_NUMBER; + hash = (53 * hash) + getPrompt().hashCode(); + } if (hasCustomPronunciations()) { hash = (37 * hash) + CUSTOM_PRONUNCIATIONS_FIELD_NUMBER; hash = (53 * hash) + getCustomPronunciations().hashCode(); @@ -785,6 +879,7 @@ public Builder clear() { if (multiSpeakerMarkupBuilder_ != null) { multiSpeakerMarkupBuilder_.clear(); } + prompt_ = ""; customPronunciations_ = null; if (customPronunciationsBuilder_ != null) { customPronunciationsBuilder_.dispose(); @@ -831,11 +926,15 @@ private void buildPartial0(com.google.cloud.texttospeech.v1beta1.SynthesisInput int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000010) != 0)) { + result.prompt_ = prompt_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { result.customPronunciations_ = customPronunciationsBuilder_ == null ? customPronunciations_ : customPronunciationsBuilder_.build(); - to_bitField0_ |= 0x00000001; + to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @@ -894,6 +993,11 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.texttospeech.v1beta1.SynthesisInput other) { if (other == com.google.cloud.texttospeech.v1beta1.SynthesisInput.getDefaultInstance()) return this; + if (other.hasPrompt()) { + prompt_ = other.prompt_; + bitField0_ |= 0x00000010; + onChanged(); + } if (other.hasCustomPronunciations()) { mergeCustomPronunciations(other.getCustomPronunciations()); } @@ -973,7 +1077,7 @@ public Builder mergeFrom( { input.readMessage( getCustomPronunciationsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 26 case 34: @@ -990,6 +1094,12 @@ public Builder mergeFrom( inputSource_ = s; break; } // case 42 + case 50: + { + prompt_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1703,6 +1813,150 @@ public Builder clearMultiSpeakerMarkup() { return multiSpeakerMarkupBuilder_; } + private java.lang.Object prompt_ = ""; + + /** + * + * + *
    +     * This system instruction is supported only for controllable/promptable voice
    +     * models. If this system instruction is used, we pass the unedited text to
    +     * Gemini-TTS. Otherwise, a default system instruction is used. AI Studio
    +     * calls this system instruction, Style Instructions.
    +     * 
    + * + * optional string prompt = 6; + * + * @return Whether the prompt field is set. + */ + public boolean hasPrompt() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
    +     * This system instruction is supported only for controllable/promptable voice
    +     * models. If this system instruction is used, we pass the unedited text to
    +     * Gemini-TTS. Otherwise, a default system instruction is used. AI Studio
    +     * calls this system instruction, Style Instructions.
    +     * 
    + * + * optional string prompt = 6; + * + * @return The prompt. + */ + public java.lang.String getPrompt() { + java.lang.Object ref = prompt_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + prompt_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * This system instruction is supported only for controllable/promptable voice
    +     * models. If this system instruction is used, we pass the unedited text to
    +     * Gemini-TTS. Otherwise, a default system instruction is used. AI Studio
    +     * calls this system instruction, Style Instructions.
    +     * 
    + * + * optional string prompt = 6; + * + * @return The bytes for prompt. + */ + public com.google.protobuf.ByteString getPromptBytes() { + java.lang.Object ref = prompt_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + prompt_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * This system instruction is supported only for controllable/promptable voice
    +     * models. If this system instruction is used, we pass the unedited text to
    +     * Gemini-TTS. Otherwise, a default system instruction is used. AI Studio
    +     * calls this system instruction, Style Instructions.
    +     * 
    + * + * optional string prompt = 6; + * + * @param value The prompt to set. + * @return This builder for chaining. + */ + public Builder setPrompt(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + prompt_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +     * This system instruction is supported only for controllable/promptable voice
    +     * models. If this system instruction is used, we pass the unedited text to
    +     * Gemini-TTS. Otherwise, a default system instruction is used. AI Studio
    +     * calls this system instruction, Style Instructions.
    +     * 
    + * + * optional string prompt = 6; + * + * @return This builder for chaining. + */ + public Builder clearPrompt() { + prompt_ = getDefaultInstance().getPrompt(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
    +     * This system instruction is supported only for controllable/promptable voice
    +     * models. If this system instruction is used, we pass the unedited text to
    +     * Gemini-TTS. Otherwise, a default system instruction is used. AI Studio
    +     * calls this system instruction, Style Instructions.
    +     * 
    + * + * optional string prompt = 6; + * + * @param value The bytes for prompt to set. + * @return This builder for chaining. + */ + public Builder setPromptBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + prompt_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + private com.google.cloud.texttospeech.v1beta1.CustomPronunciations customPronunciations_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.texttospeech.v1beta1.CustomPronunciations, @@ -1733,7 +1987,7 @@ public Builder clearMultiSpeakerMarkup() { * @return Whether the customPronunciations field is set. */ public boolean hasCustomPronunciations() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** @@ -1798,7 +2052,7 @@ public Builder setCustomPronunciations( } else { customPronunciationsBuilder_.setMessage(value); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1830,7 +2084,7 @@ public Builder setCustomPronunciations( } else { customPronunciationsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1858,7 +2112,7 @@ public Builder setCustomPronunciations( public Builder mergeCustomPronunciations( com.google.cloud.texttospeech.v1beta1.CustomPronunciations value) { if (customPronunciationsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) + if (((bitField0_ & 0x00000020) != 0) && customPronunciations_ != null && customPronunciations_ != com.google.cloud.texttospeech.v1beta1.CustomPronunciations @@ -1871,7 +2125,7 @@ public Builder mergeCustomPronunciations( customPronunciationsBuilder_.mergeFrom(value); } if (customPronunciations_ != null) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); } return this; @@ -1898,7 +2152,7 @@ public Builder mergeCustomPronunciations( * */ public Builder clearCustomPronunciations() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); customPronunciations_ = null; if (customPronunciationsBuilder_ != null) { customPronunciationsBuilder_.dispose(); @@ -1930,7 +2184,7 @@ public Builder clearCustomPronunciations() { */ public com.google.cloud.texttospeech.v1beta1.CustomPronunciations.Builder getCustomPronunciationsBuilder() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return getCustomPronunciationsFieldBuilder().getBuilder(); } diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesisInputOrBuilder.java b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesisInputOrBuilder.java index 8e6a92c92b3e..133b2f8eb7ca 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesisInputOrBuilder.java +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesisInputOrBuilder.java @@ -197,6 +197,54 @@ public interface SynthesisInputOrBuilder com.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkupOrBuilder getMultiSpeakerMarkupOrBuilder(); + /** + * + * + *
    +   * This system instruction is supported only for controllable/promptable voice
    +   * models. If this system instruction is used, we pass the unedited text to
    +   * Gemini-TTS. Otherwise, a default system instruction is used. AI Studio
    +   * calls this system instruction, Style Instructions.
    +   * 
    + * + * optional string prompt = 6; + * + * @return Whether the prompt field is set. + */ + boolean hasPrompt(); + + /** + * + * + *
    +   * This system instruction is supported only for controllable/promptable voice
    +   * models. If this system instruction is used, we pass the unedited text to
    +   * Gemini-TTS. Otherwise, a default system instruction is used. AI Studio
    +   * calls this system instruction, Style Instructions.
    +   * 
    + * + * optional string prompt = 6; + * + * @return The prompt. + */ + java.lang.String getPrompt(); + + /** + * + * + *
    +   * This system instruction is supported only for controllable/promptable voice
    +   * models. If this system instruction is used, we pass the unedited text to
    +   * Gemini-TTS. Otherwise, a default system instruction is used. AI Studio
    +   * calls this system instruction, Style Instructions.
    +   * 
    + * + * optional string prompt = 6; + * + * @return The bytes for prompt. + */ + com.google.protobuf.ByteString getPromptBytes(); + /** * * diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechProto.java b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechProto.java index 212f06d36ed1..6d27d21eecbe 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechProto.java +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechProto.java @@ -177,29 +177,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "xttospeech.v1beta1.MultiSpeakerMarkup.TurnB\003\340A\002\032/\n" + "\004Turn\022\024\n" + "\007speaker\030\001 \001(\tB\003\340A\002\022\021\n" - + "\004text\030\002 \001(\tB\003\340A\002\"\206\002\n" + + "\004text\030\002 \001(\tB\003\340A\002\"\246\002\n" + "\016SynthesisInput\022\016\n" + "\004text\030\001 \001(\tH\000\022\020\n" + "\006markup\030\005 \001(\tH\000\022\016\n" + "\004ssml\030\002 \001(\tH\000\022U\n" + "\024multi_speaker_markup\030\004 \001(\01325.go" - + "ogle.cloud.texttospeech.v1beta1.MultiSpeakerMarkupH\000\022[\n" - + "\025custom_pronunciations\030\003 " - + "\001(\01327.google.cloud.texttospeech.v1beta1.CustomPronunciationsB\003\340A\001B\016\n" - + "\014input_source\"\275\002\n" + + "ogle.cloud.texttospeech.v1beta1.MultiSpeakerMarkupH\000\022\023\n" + + "\006prompt\030\006 \001(\tH\001\210\001\001\022[\n" + + "\025custom_pronunciations\030\003 \001(\01327.google.cloud." + + "texttospeech.v1beta1.CustomPronunciationsB\003\340A\001B\016\n" + + "\014input_sourceB\t\n" + + "\007_prompt\"\275\002\n" + "\024VoiceSelectionParams\022\032\n\r" + "language_code\030\001 \001(\tB\003\340A\002\022\014\n" + "\004name\030\002 \001(\t\022G\n" - + "\013ssml_gender\030\003" - + " \001(\01622.google.cloud.texttospeech.v1beta1.SsmlVoiceGender\022J\n" - + "\014custom_voice\030\004 " - + "\001(\01324.google.cloud.texttospeech.v1beta1.CustomVoiceParams\022M\n" - + "\013voice_clone\030\005 \001(\01323" - + ".google.cloud.texttospeech.v1beta1.VoiceCloneParamsB\003\340A\001\022\027\n\n" + + "\013ssml_gender\030\003 \001(" + + "\01622.google.cloud.texttospeech.v1beta1.SsmlVoiceGender\022J\n" + + "\014custom_voice\030\004 \001(\01324.go" + + "ogle.cloud.texttospeech.v1beta1.CustomVoiceParams\022M\n" + + "\013voice_clone\030\005 \001(\01323.google." + + "cloud.texttospeech.v1beta1.VoiceCloneParamsB\003\340A\001\022\027\n\n" + "model_name\030\006 \001(\tB\003\340A\001\"\366\001\n" + "\013AudioConfig\022M\n" - + "\016audio_encoding\030\001 \001(" - + "\01620.google.cloud.texttospeech.v1beta1.AudioEncodingB\003\340A\002\022\035\n\r" + + "\016audio_encoding\030\001 \001(\01620.goog" + + "le.cloud.texttospeech.v1beta1.AudioEncodingB\003\340A\002\022\035\n\r" + "speaking_rate\030\002 \001(\001B\006\340A\004\340A\001\022\025\n" + "\005pitch\030\003 \001(\001B\006\340A\004\340A\001\022\036\n" + "\016volume_gain_db\030\004 \001(\001B\006\340A\004\340A\001\022\036\n" @@ -208,8 +210,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021CustomVoiceParams\0222\n" + "\005model\030\001 \001(\tB#\340A\002\372A\035\n" + "\033automl.googleapis.com/Model\022a\n" - + "\016reported_usage\030\003 \001(\0162B.google.cl" - + "oud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsageB\005\030\001\340A\001\"J\n\r" + + "\016reported_usage\030\003 \001(\0162B.google.cloud.text" + + "tospeech.v1beta1.CustomVoiceParams.ReportedUsageB\005\030\001\340A\001\"J\n\r" + "ReportedUsage\022\036\n" + "\032REPORTED_USAGE_UNSPECIFIED\020\000\022\014\n" + "\010REALTIME\020\001\022\013\n" @@ -219,23 +221,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030SynthesizeSpeechResponse\022\025\n\r" + "audio_content\030\001 \001(\014\022@\n\n" + "timepoints\030\002 \003(\0132,.google.cloud.texttospeech.v1beta1.Timepoint\022D\n" - + "\014audio_config\030\004" - + " \001(\0132..google.cloud.texttospeech.v1beta1.AudioConfig\"4\n" + + "\014audio_config\030\004 " + + "\001(\0132..google.cloud.texttospeech.v1beta1.AudioConfig\"4\n" + "\tTimepoint\022\021\n" + "\tmark_name\030\004 \001(\t\022\024\n" + "\014time_seconds\030\003 \001(\001\"\244\001\n" + "\024StreamingAudioConfig\022M\n" - + "\016audio_encoding\030\001 \001" - + "(\01620.google.cloud.texttospeech.v1beta1.AudioEncodingB\003\340A\002\022\036\n" + + "\016audio_encoding\030\001 \001(\01620.goo" + + "gle.cloud.texttospeech.v1beta1.AudioEncodingB\003\340A\002\022\036\n" + "\021sample_rate_hertz\030\002 \001(\005B\003\340A\001\022\035\n\r" + "speaking_rate\030\003 \001(\001B\006\340A\004\340A\001\"\243\002\n" + "\031StreamingSynthesizeConfig\022K\n" - + "\005voice\030\001" - + " \001(\01327.google.cloud.texttospeech.v1beta1.VoiceSelectionParamsB\003\340A\002\022\\\n" - + "\026streaming_audio_config\030\004 \001(\01327.google.cloud.textt" - + "ospeech.v1beta1.StreamingAudioConfigB\003\340A\001\022[\n" - + "\025custom_pronunciations\030\005 \001(\01327.googl" - + "e.cloud.texttospeech.v1beta1.CustomPronunciationsB\003\340A\001\"k\n" + + "\005voice\030\001 \001(\01327." + + "google.cloud.texttospeech.v1beta1.VoiceSelectionParamsB\003\340A\002\022\\\n" + + "\026streaming_audio_config\030\004" + + " \001(\01327.google.cloud.texttospeech.v1beta1.StreamingAudioConfigB\003\340A\001\022[\n" + + "\025custom_pronunciations\030\005 \001(\01327.google.cloud." + + "texttospeech.v1beta1.CustomPronunciationsB\003\340A\001\"k\n" + "\027StreamingSynthesisInput\022\016\n" + "\004text\030\001 \001(\tH\000\022\020\n" + "\006markup\030\005 \001(\tH\000\022\023\n" @@ -243,10 +245,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014input_sourceB\t\n" + "\007_prompt\"\330\001\n" + "\032StreamingSynthesizeRequest\022X\n" - + "\020streaming_config\030\001 \001(\0132<.google.cloud.text" - + "tospeech.v1beta1.StreamingSynthesizeConfigH\000\022K\n" - + "\005input\030\002 \001(\0132:.google.cloud.textt" - + "ospeech.v1beta1.StreamingSynthesisInputH\000B\023\n" + + "\020streaming_config\030\001" + + " \001(\0132<.google.cloud.texttospeech.v1beta1.StreamingSynthesizeConfigH\000\022K\n" + + "\005input\030\002" + + " \001(\0132:.google.cloud.texttospeech.v1beta1.StreamingSynthesisInputH\000B\023\n" + "\021streaming_request\"4\n" + "\033StreamingSynthesizeResponse\022\025\n\r" + "audio_content\030\001 \001(\014*W\n" @@ -266,24 +268,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003PCM\020\007\022\007\n" + "\003M4A\020\0102\357\004\n" + "\014TextToSpeech\022\242\001\n\n" - + "ListVoices\0224.google.cloud.texttospeech.v1beta1.ListVoicesRequest\0325.goo" - + "gle.cloud.texttospeech.v1beta1.ListVoicesResponse\"\'\332A\r" + + "ListVoices\0224.google.cloud.texttospeech.v1beta1.ListVoicesRequest\0325.google.clou" + + "d.texttospeech.v1beta1.ListVoicesResponse\"\'\332A\r" + "language_code\202\323\344\223\002\021\022\017/v1beta1/voices\022\313\001\n" - + "\020SynthesizeSpeech\022:.google.cloud.texttospeech.v1beta1.SynthesizeSp" - + "eechRequest\032;.google.cloud.texttospeech." - + "v1beta1.SynthesizeSpeechResponse\">\332A\030inp" - + "ut,voice,audio_config\202\323\344\223\002\035\"\030/v1beta1/text:synthesize:\001*\022\232\001\n" - + "\023StreamingSynthesize\022=.google.cloud.texttospeech.v1beta1.Str" - + "eamingSynthesizeRequest\032>.google.cloud.texttospeech.v1beta1.StreamingSynthesizeR" - + "esponse\"\000(\0010\001\032O\312A\033texttospeech.googleapi" - + "s.com\322A.https://www.googleapis.com/auth/cloud-platformB\325\002\n" - + "%com.google.cloud.texttospeech.v1beta1B\021TextToSpeechProtoP\001ZIc" - + "loud.google.com/go/texttospeech/apiv1bet" - + "a1/texttospeechpb;texttospeechpb\242\002\004CTTS\252" - + "\002!Google.Cloud.TextToSpeech.V1Beta1\312\002!Go" - + "ogle\\Cloud\\TextToSpeech\\V1beta1\352\002$Google::Cloud::TextToSpeech::V1beta1\352AU\n" - + "\033automl.googleapis.com/Model\0226projects/{projec" - + "t}/locations/{location}/models/{model}b\006proto3" + + "\020SynthesizeSpeech\022:.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequ" + + "est\032;.google.cloud.texttospeech.v1beta1." + + "SynthesizeSpeechResponse\">\332A\030input,voice" + + ",audio_config\202\323\344\223\002\035\"\030/v1beta1/text:synthesize:\001*\022\232\001\n" + + "\023StreamingSynthesize\022=.google.cloud.texttospeech.v1beta1.StreamingSy" + + "nthesizeRequest\032>.google.cloud.texttospeech.v1beta1.StreamingSynthesizeResponse\"" + + "\000(\0010\001\032O\312A\033texttospeech.googleapis.com\322A." + + "https://www.googleapis.com/auth/cloud-platformB\325\002\n" + + "%com.google.cloud.texttospeech.v1beta1B\021TextToSpeechProtoP\001ZIcloud.goo" + + "gle.com/go/texttospeech/apiv1beta1/textt" + + "ospeechpb;texttospeechpb\242\002\004CTTS\252\002!Google" + + ".Cloud.TextToSpeech.V1Beta1\312\002!Google\\Clo" + + "ud\\TextToSpeech\\V1beta1\352\002$Google::Cloud::TextToSpeech::V1beta1\352AU\n" + + "\033automl.googleapis.com/Model\0226projects/{project}/locat" + + "ions/{location}/models/{model}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -374,7 +376,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_texttospeech_v1beta1_SynthesisInput_descriptor, new java.lang.String[] { - "Text", "Markup", "Ssml", "MultiSpeakerMarkup", "CustomPronunciations", "InputSource", + "Text", + "Markup", + "Ssml", + "MultiSpeakerMarkup", + "Prompt", + "CustomPronunciations", + "InputSource", }); internal_static_google_cloud_texttospeech_v1beta1_VoiceSelectionParams_descriptor = getDescriptor().getMessageTypes().get(9); diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/proto/google/cloud/texttospeech/v1beta1/cloud_tts.proto b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/proto/google/cloud/texttospeech/v1beta1/cloud_tts.proto index 204a159d94ac..d7be79fa4993 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/proto/google/cloud/texttospeech/v1beta1/cloud_tts.proto +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/proto/google/cloud/texttospeech/v1beta1/cloud_tts.proto @@ -296,6 +296,12 @@ message SynthesisInput { MultiSpeakerMarkup multi_speaker_markup = 4; } + // This system instruction is supported only for controllable/promptable voice + // models. If this system instruction is used, we pass the unedited text to + // Gemini-TTS. Otherwise, a default system instruction is used. AI Studio + // calls this system instruction, Style Instructions. + optional string prompt = 6; + // Optional. The pronunciation customizations are applied to the input. If // this is set, the input is synthesized using the given pronunciation // customizations. diff --git a/java-tpu/README.md b/java-tpu/README.md index 93ce815be87f..a45b1a7b2b46 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.66.0 + 26.67.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.73.0 + 2.74.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-tpu:2.73.0' +implementation 'com.google.cloud:google-cloud-tpu:2.74.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tpu" % "2.73.0" +libraryDependencies += "com.google.cloud" % "google-cloud-tpu" % "2.74.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.73.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-tpu/2.74.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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 542893778cea..eaf1bc6c3910 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.66.0 + 26.67.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.72.0 + 2.73.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-trace:2.72.0' +implementation 'com.google.cloud:google-cloud-trace:2.73.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-trace" % "2.72.0" +libraryDependencies += "com.google.cloud" % "google-cloud-trace" % "2.73.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.72.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-trace/2.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-translate/README.md b/java-translate/README.md index cfb088adb935..ef46d92b4622 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.66.0 + 26.67.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.72.0 + 2.73.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-translate:2.72.0' +implementation 'com.google.cloud:google-cloud-translate:2.73.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-translate" % "2.72.0" +libraryDependencies += "com.google.cloud" % "google-cloud-translate" % "2.73.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.72.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-translate/2.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-valkey/README.md b/java-valkey/README.md index 0fe02025f395..cdd44052a2f5 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.66.0 + 26.67.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.18.0 + 0.19.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-valkey:0.18.0' +implementation 'com.google.cloud:google-cloud-valkey:0.19.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-valkey" % "0.18.0" +libraryDependencies += "com.google.cloud" % "google-cloud-valkey" % "0.19.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.18.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-valkey/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-video-intelligence/README.md b/java-video-intelligence/README.md index 137824efac12..9b551d0e03ee 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.66.0 + 26.67.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.71.0 + 2.72.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-video-intelligence:2.71.0' +implementation 'com.google.cloud:google-cloud-video-intelligence:2.72.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-video-intelligence" % "2.71.0" +libraryDependencies += "com.google.cloud" % "google-cloud-video-intelligence" % "2.72.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-video-intelligence.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-intelligence/2.71.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-intelligence/2.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-video-live-stream/README.md b/java-video-live-stream/README.md index 9129159f6063..b668a0ba9427 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.66.0 + 26.67.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.74.0 + 0.75.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-live-stream:0.74.0' +implementation 'com.google.cloud:google-cloud-live-stream:0.75.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-live-stream" % "0.74.0" +libraryDependencies += "com.google.cloud" % "google-cloud-live-stream" % "0.75.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-live-stream.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-live-stream/0.74.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-live-stream/0.75.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-video-stitcher/README.md b/java-video-stitcher/README.md index a7879e005172..4accefa5fc68 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.66.0 + 26.67.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.72.0 + 0.73.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-video-stitcher:0.72.0' +implementation 'com.google.cloud:google-cloud-video-stitcher:0.73.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-video-stitcher" % "0.72.0" +libraryDependencies += "com.google.cloud" % "google-cloud-video-stitcher" % "0.73.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.72.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-stitcher/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-video-transcoder/README.md b/java-video-transcoder/README.md index e32b5c82ddd1..4091e347dbe5 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.66.0 + 26.67.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.71.0 + 1.72.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-video-transcoder:1.71.0' +implementation 'com.google.cloud:google-cloud-video-transcoder:1.72.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-video-transcoder" % "1.71.0" +libraryDependencies += "com.google.cloud" % "google-cloud-video-transcoder" % "1.72.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-video-transcoder.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-transcoder/1.71.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-transcoder/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-vision/README.md b/java-vision/README.md index 7c260f0b97c0..705e86c73635 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.66.0 + 26.67.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.70.0 + 3.71.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vision:3.70.0' +implementation 'com.google.cloud:google-cloud-vision:3.71.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vision" % "3.70.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vision" % "3.71.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.70.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vision/3.71.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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 6cb053519cde..6c4c315e8fad 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.66.0 + 26.67.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.29.0 + 0.30.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-visionai:0.29.0' +implementation 'com.google.cloud:google-cloud-visionai:0.30.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-visionai" % "0.29.0" +libraryDependencies += "com.google.cloud" % "google-cloud-visionai" % "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.cloud/google-cloud-visionai.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-visionai/0.29.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-visionai/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-vmmigration/README.md b/java-vmmigration/README.md index 568421ade94a..2fdb63dbd141 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.66.0 + 26.67.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.72.0 + 1.73.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vmmigration:1.72.0' +implementation 'com.google.cloud:google-cloud-vmmigration:1.73.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vmmigration" % "1.72.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vmmigration" % "1.73.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.72.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vmmigration/1.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-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/VmMigrationClient.java b/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/VmMigrationClient.java index 836383a615fb..628c9e92e1b5 100644 --- a/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/VmMigrationClient.java +++ b/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/VmMigrationClient.java @@ -190,6 +190,26 @@ * * * + *

    FetchStorageInventory + *

    List remote source's inventory of storage resources. The remote source is another cloud vendor (e.g. AWS, Azure). The inventory describes the list of existing storage resources in that source. Note that this operation lists the resources on the remote source, as opposed to listing the MigratingVms resources in the vmmigration service. + * + *

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

    + *
      + *
    • fetchStorageInventory(FetchStorageInventoryRequest request) + *

    + *

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

    + *
      + *
    • fetchStorageInventory(SourceName source, FetchStorageInventoryRequest.StorageType type) + *

    • fetchStorageInventory(String source, FetchStorageInventoryRequest.StorageType type) + *

    + *

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

    + *
      + *
    • fetchStorageInventoryPagedCallable() + *

    • fetchStorageInventoryCallable() + *

    + * + * + * *

    ListUtilizationReports *

    Lists Utilization Reports of the given Source. * @@ -531,6 +551,21 @@ * * * + *

    ExtendMigration + *

    Extend the migrating VM time to live. + * + *

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

    + *
      + *
    • extendMigrationAsync(ExtendMigrationRequest request) + *

    + *

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

    + *
      + *
    • extendMigrationOperationCallable() + *

    • extendMigrationCallable() + *

    + * + * + * *

    CreateCloneJob *

    Initiates a Clone of a specific migrating VM. * @@ -572,7 +607,7 @@ * * *

    ListCloneJobs - *

    Lists CloneJobs of a given migrating VM. + *

    Lists the CloneJobs of a migrating VM. Only 25 most recent CloneJobs are listed. * *

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

    *
      @@ -651,7 +686,7 @@ * * *

      ListCutoverJobs - *

      Lists CutoverJobs of a given migrating VM. + *

      Lists the CutoverJobs of a migrating VM. Only 25 most recent CutoverJobs are listed. * *

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

      *
        @@ -969,6 +1004,277 @@ * * * + *

        ListImageImports + *

        Lists ImageImports in a given project. + * + *

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

        + *
          + *
        • listImageImports(ListImageImportsRequest request) + *

        + *

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

        + *
          + *
        • listImageImports(LocationName parent) + *

        • listImageImports(String parent) + *

        + *

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

        + *
          + *
        • listImageImportsPagedCallable() + *

        • listImageImportsCallable() + *

        + * + * + * + *

        GetImageImport + *

        Gets details of a single ImageImport. + * + *

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

        + *
          + *
        • getImageImport(GetImageImportRequest request) + *

        + *

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

        + *
          + *
        • getImageImport(ImageImportName name) + *

        • getImageImport(String name) + *

        + *

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

        + *
          + *
        • getImageImportCallable() + *

        + * + * + * + *

        CreateImageImport + *

        Creates a new ImageImport in a given project. + * + *

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

        + *
          + *
        • createImageImportAsync(CreateImageImportRequest request) + *

        + *

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

        + *
          + *
        • createImageImportAsync(LocationName parent, ImageImport imageImport, String imageImportId) + *

        • createImageImportAsync(String parent, ImageImport imageImport, String imageImportId) + *

        + *

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

        + *
          + *
        • createImageImportOperationCallable() + *

        • createImageImportCallable() + *

        + * + * + * + *

        DeleteImageImport + *

        Deletes a single ImageImport. + * + *

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

        + *
          + *
        • deleteImageImportAsync(DeleteImageImportRequest request) + *

        + *

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

        + *
          + *
        • deleteImageImportAsync(ImageImportName name) + *

        • deleteImageImportAsync(String name) + *

        + *

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

        + *
          + *
        • deleteImageImportOperationCallable() + *

        • deleteImageImportCallable() + *

        + * + * + * + *

        ListImageImportJobs + *

        Lists ImageImportJobs in a given project. + * + *

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

        + *
          + *
        • listImageImportJobs(ListImageImportJobsRequest request) + *

        + *

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

        + *
          + *
        • listImageImportJobs(ImageImportName parent) + *

        • listImageImportJobs(String parent) + *

        + *

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

        + *
          + *
        • listImageImportJobsPagedCallable() + *

        • listImageImportJobsCallable() + *

        + * + * + * + *

        GetImageImportJob + *

        Gets details of a single ImageImportJob. + * + *

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

        + *
          + *
        • getImageImportJob(GetImageImportJobRequest request) + *

        + *

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

        + *
          + *
        • getImageImportJob(ImageImportJobName name) + *

        • getImageImportJob(String name) + *

        + *

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

        + *
          + *
        • getImageImportJobCallable() + *

        + * + * + * + *

        CancelImageImportJob + *

        Initiates the cancellation of a running clone job. + * + *

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

        + *
          + *
        • cancelImageImportJobAsync(CancelImageImportJobRequest request) + *

        + *

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

        + *
          + *
        • cancelImageImportJobAsync(ImageImportJobName name) + *

        • cancelImageImportJobAsync(String name) + *

        + *

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

        + *
          + *
        • cancelImageImportJobOperationCallable() + *

        • cancelImageImportJobCallable() + *

        + * + * + * + *

        CreateDiskMigrationJob + *

        Creates a new disk migration job in a given Source. + * + *

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

        + *
          + *
        • createDiskMigrationJobAsync(CreateDiskMigrationJobRequest request) + *

        + *

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

        + *
          + *
        • createDiskMigrationJobAsync(SourceName parent, DiskMigrationJob diskMigrationJob, String diskMigrationJobId) + *

        • createDiskMigrationJobAsync(String parent, DiskMigrationJob diskMigrationJob, String diskMigrationJobId) + *

        + *

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

        + *
          + *
        • createDiskMigrationJobOperationCallable() + *

        • createDiskMigrationJobCallable() + *

        + * + * + * + *

        ListDiskMigrationJobs + *

        Lists DiskMigrationJobs in a given Source. + * + *

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

        + *
          + *
        • listDiskMigrationJobs(ListDiskMigrationJobsRequest request) + *

        + *

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

        + *
          + *
        • listDiskMigrationJobs(SourceName parent) + *

        • listDiskMigrationJobs(String parent) + *

        + *

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

        + *
          + *
        • listDiskMigrationJobsPagedCallable() + *

        • listDiskMigrationJobsCallable() + *

        + * + * + * + *

        GetDiskMigrationJob + *

        Gets details of a single DiskMigrationJob. + * + *

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

        + *
          + *
        • getDiskMigrationJob(GetDiskMigrationJobRequest request) + *

        + *

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

        + *
          + *
        • getDiskMigrationJob(DiskMigrationJobName name) + *

        • getDiskMigrationJob(String name) + *

        + *

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

        + *
          + *
        • getDiskMigrationJobCallable() + *

        + * + * + * + *

        UpdateDiskMigrationJob + *

        Updates the parameters of a single DiskMigrationJob. + * + *

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

        + *
          + *
        • updateDiskMigrationJobAsync(UpdateDiskMigrationJobRequest request) + *

        + *

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

        + *
          + *
        • updateDiskMigrationJobAsync(DiskMigrationJob diskMigrationJob, FieldMask updateMask) + *

        + *

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

        + *
          + *
        • updateDiskMigrationJobOperationCallable() + *

        • updateDiskMigrationJobCallable() + *

        + * + * + * + *

        DeleteDiskMigrationJob + *

        Deletes a single DiskMigrationJob. + * + *

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

        + *
          + *
        • deleteDiskMigrationJobAsync(DeleteDiskMigrationJobRequest request) + *

        + *

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

        + *
          + *
        • deleteDiskMigrationJobAsync(DiskMigrationJobName name) + *

        • deleteDiskMigrationJobAsync(String name) + *

        + *

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

        + *
          + *
        • deleteDiskMigrationJobOperationCallable() + *

        • deleteDiskMigrationJobCallable() + *

        + * + * + * + *

        RunDiskMigrationJob + *

        Runs the disk migration job. + * + *

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

        + *
          + *
        • runDiskMigrationJobAsync(RunDiskMigrationJobRequest request) + *

        + *

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

        + *
          + *
        • runDiskMigrationJobAsync(DiskMigrationJobName name) + *

        • runDiskMigrationJobAsync(String name) + *

        + *

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

        + *
          + *
        • runDiskMigrationJobOperationCallable() + *

        • runDiskMigrationJobCallable() + *

        + * + * + * + *

        CancelDiskMigrationJob + *

        Cancels the disk migration job. + * + *

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

        + *
          + *
        • cancelDiskMigrationJobAsync(CancelDiskMigrationJobRequest request) + *

        + *

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

        + *
          + *
        • cancelDiskMigrationJobOperationCallable() + *

        • cancelDiskMigrationJobCallable() + *

        + * + * + * *

        ListLocations *

        Lists information about the supported locations for this service. * @@ -1959,7 +2265,10 @@ public final FetchInventoryResponse fetchInventory(FetchInventoryRequest request // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Utilization Reports of the given Source. + * List remote source's inventory of storage resources. The remote source is another cloud vendor + * (e.g. AWS, Azure). The inventory describes the list of existing storage resources in that + * source. Note that this operation lists the resources on the remote source, as opposed to + * listing the MigratingVms resources in the vmmigration service. * *

        Sample code: * @@ -1970,28 +2279,36 @@ public final FetchInventoryResponse fetchInventory(FetchInventoryRequest request * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { - * SourceName parent = SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]"); - * for (UtilizationReport element : - * vmMigrationClient.listUtilizationReports(parent).iterateAll()) { + * SourceName source = SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]"); + * FetchStorageInventoryRequest.StorageType type = + * FetchStorageInventoryRequest.StorageType.forNumber(0); + * for (SourceStorageResource element : + * vmMigrationClient.fetchStorageInventory(source, type).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param parent Required. The Utilization Reports parent. + * @param source Required. The name of the Source. + * @param type Required. The type of the storage inventory to fetch. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListUtilizationReportsPagedResponse listUtilizationReports(SourceName parent) { - ListUtilizationReportsRequest request = - ListUtilizationReportsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) + public final FetchStorageInventoryPagedResponse fetchStorageInventory( + SourceName source, FetchStorageInventoryRequest.StorageType type) { + FetchStorageInventoryRequest request = + FetchStorageInventoryRequest.newBuilder() + .setSource(source == null ? null : source.toString()) + .setType(type) .build(); - return listUtilizationReports(request); + return fetchStorageInventory(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Utilization Reports of the given Source. + * List remote source's inventory of storage resources. The remote source is another cloud vendor + * (e.g. AWS, Azure). The inventory describes the list of existing storage resources in that + * source. Note that this operation lists the resources on the remote source, as opposed to + * listing the MigratingVms resources in the vmmigration service. * *

        Sample code: * @@ -2002,26 +2319,33 @@ public final ListUtilizationReportsPagedResponse listUtilizationReports(SourceNa * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { - * String parent = SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]").toString(); - * for (UtilizationReport element : - * vmMigrationClient.listUtilizationReports(parent).iterateAll()) { + * String source = SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]").toString(); + * FetchStorageInventoryRequest.StorageType type = + * FetchStorageInventoryRequest.StorageType.forNumber(0); + * for (SourceStorageResource element : + * vmMigrationClient.fetchStorageInventory(source, type).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param parent Required. The Utilization Reports parent. + * @param source Required. The name of the Source. + * @param type Required. The type of the storage inventory to fetch. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListUtilizationReportsPagedResponse listUtilizationReports(String parent) { - ListUtilizationReportsRequest request = - ListUtilizationReportsRequest.newBuilder().setParent(parent).build(); - return listUtilizationReports(request); + public final FetchStorageInventoryPagedResponse fetchStorageInventory( + String source, FetchStorageInventoryRequest.StorageType type) { + FetchStorageInventoryRequest request = + FetchStorageInventoryRequest.newBuilder().setSource(source).setType(type).build(); + return fetchStorageInventory(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Utilization Reports of the given Source. + * List remote source's inventory of storage resources. The remote source is another cloud vendor + * (e.g. AWS, Azure). The inventory describes the list of existing storage resources in that + * source. Note that this operation lists the resources on the remote source, as opposed to + * listing the MigratingVms resources in the vmmigration service. * *

        Sample code: * @@ -2032,17 +2356,15 @@ public final ListUtilizationReportsPagedResponse listUtilizationReports(String p * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { - * ListUtilizationReportsRequest request = - * ListUtilizationReportsRequest.newBuilder() - * .setParent(SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]").toString()) - * .setView(UtilizationReportView.forNumber(0)) + * FetchStorageInventoryRequest request = + * FetchStorageInventoryRequest.newBuilder() + * .setSource(SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]").toString()) + * .setForceRefresh(true) * .setPageSize(883849137) * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") - * .setOrderBy("orderBy-1207110587") * .build(); - * for (UtilizationReport element : - * vmMigrationClient.listUtilizationReports(request).iterateAll()) { + * for (SourceStorageResource element : + * vmMigrationClient.fetchStorageInventory(request).iterateAll()) { * // doThingsWith(element); * } * } @@ -2051,14 +2373,17 @@ public final ListUtilizationReportsPagedResponse listUtilizationReports(String p * @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 ListUtilizationReportsPagedResponse listUtilizationReports( - ListUtilizationReportsRequest request) { - return listUtilizationReportsPagedCallable().call(request); + public final FetchStorageInventoryPagedResponse fetchStorageInventory( + FetchStorageInventoryRequest request) { + return fetchStorageInventoryPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Utilization Reports of the given Source. + * List remote source's inventory of storage resources. The remote source is another cloud vendor + * (e.g. AWS, Azure). The inventory describes the list of existing storage resources in that + * source. Note that this operation lists the resources on the remote source, as opposed to + * listing the MigratingVms resources in the vmmigration service. * *

        Sample code: * @@ -2069,27 +2394,204 @@ public final ListUtilizationReportsPagedResponse listUtilizationReports( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { - * ListUtilizationReportsRequest request = - * ListUtilizationReportsRequest.newBuilder() - * .setParent(SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]").toString()) - * .setView(UtilizationReportView.forNumber(0)) + * FetchStorageInventoryRequest request = + * FetchStorageInventoryRequest.newBuilder() + * .setSource(SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]").toString()) + * .setForceRefresh(true) * .setPageSize(883849137) * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") - * .setOrderBy("orderBy-1207110587") * .build(); - * ApiFuture future = - * vmMigrationClient.listUtilizationReportsPagedCallable().futureCall(request); + * ApiFuture future = + * vmMigrationClient.fetchStorageInventoryPagedCallable().futureCall(request); * // Do something. - * for (UtilizationReport element : future.get().iterateAll()) { + * for (SourceStorageResource element : future.get().iterateAll()) { * // doThingsWith(element); * } * } * } */ - public final UnaryCallable - listUtilizationReportsPagedCallable() { - return stub.listUtilizationReportsPagedCallable(); + public final UnaryCallable + fetchStorageInventoryPagedCallable() { + return stub.fetchStorageInventoryPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List remote source's inventory of storage resources. The remote source is another cloud vendor + * (e.g. AWS, Azure). The inventory describes the list of existing storage resources in that + * source. Note that this operation lists the resources on the remote source, as opposed to + * listing the MigratingVms resources in the vmmigration 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 (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   FetchStorageInventoryRequest request =
        +   *       FetchStorageInventoryRequest.newBuilder()
        +   *           .setSource(SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]").toString())
        +   *           .setForceRefresh(true)
        +   *           .setPageSize(883849137)
        +   *           .setPageToken("pageToken873572522")
        +   *           .build();
        +   *   while (true) {
        +   *     FetchStorageInventoryResponse response =
        +   *         vmMigrationClient.fetchStorageInventoryCallable().call(request);
        +   *     for (SourceStorageResource element : response.getResourcesList()) {
        +   *       // doThingsWith(element);
        +   *     }
        +   *     String nextPageToken = response.getNextPageToken();
        +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
        +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
        +   *     } else {
        +   *       break;
        +   *     }
        +   *   }
        +   * }
        +   * }
        + */ + public final UnaryCallable + fetchStorageInventoryCallable() { + return stub.fetchStorageInventoryCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Utilization Reports of the given Source. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   SourceName parent = SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]");
        +   *   for (UtilizationReport element :
        +   *       vmMigrationClient.listUtilizationReports(parent).iterateAll()) {
        +   *     // doThingsWith(element);
        +   *   }
        +   * }
        +   * }
        + * + * @param parent Required. The Utilization Reports parent. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListUtilizationReportsPagedResponse listUtilizationReports(SourceName parent) { + ListUtilizationReportsRequest request = + ListUtilizationReportsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listUtilizationReports(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Utilization Reports of the given Source. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   String parent = SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]").toString();
        +   *   for (UtilizationReport element :
        +   *       vmMigrationClient.listUtilizationReports(parent).iterateAll()) {
        +   *     // doThingsWith(element);
        +   *   }
        +   * }
        +   * }
        + * + * @param parent Required. The Utilization Reports parent. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListUtilizationReportsPagedResponse listUtilizationReports(String parent) { + ListUtilizationReportsRequest request = + ListUtilizationReportsRequest.newBuilder().setParent(parent).build(); + return listUtilizationReports(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Utilization Reports of the given Source. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   ListUtilizationReportsRequest request =
        +   *       ListUtilizationReportsRequest.newBuilder()
        +   *           .setParent(SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]").toString())
        +   *           .setView(UtilizationReportView.forNumber(0))
        +   *           .setPageSize(883849137)
        +   *           .setPageToken("pageToken873572522")
        +   *           .setFilter("filter-1274492040")
        +   *           .setOrderBy("orderBy-1207110587")
        +   *           .build();
        +   *   for (UtilizationReport element :
        +   *       vmMigrationClient.listUtilizationReports(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 ListUtilizationReportsPagedResponse listUtilizationReports( + ListUtilizationReportsRequest request) { + return listUtilizationReportsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Utilization Reports of the given Source. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   ListUtilizationReportsRequest request =
        +   *       ListUtilizationReportsRequest.newBuilder()
        +   *           .setParent(SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]").toString())
        +   *           .setView(UtilizationReportView.forNumber(0))
        +   *           .setPageSize(883849137)
        +   *           .setPageToken("pageToken873572522")
        +   *           .setFilter("filter-1274492040")
        +   *           .setOrderBy("orderBy-1207110587")
        +   *           .build();
        +   *   ApiFuture future =
        +   *       vmMigrationClient.listUtilizationReportsPagedCallable().futureCall(request);
        +   *   // Do something.
        +   *   for (UtilizationReport element : future.get().iterateAll()) {
        +   *     // doThingsWith(element);
        +   *   }
        +   * }
        +   * }
        + */ + public final UnaryCallable + listUtilizationReportsPagedCallable() { + return stub.listUtilizationReportsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. @@ -4592,6 +5094,97 @@ public final UnaryCallable finalizeMigratio return stub.finalizeMigrationCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Extend the migrating VM time to live. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   ExtendMigrationRequest request =
        +   *       ExtendMigrationRequest.newBuilder()
        +   *           .setMigratingVm(
        +   *               MigratingVmName.of("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]")
        +   *                   .toString())
        +   *           .build();
        +   *   ExtendMigrationResponse response = vmMigrationClient.extendMigrationAsync(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 extendMigrationAsync( + ExtendMigrationRequest request) { + return extendMigrationOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Extend the migrating VM time to live. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   ExtendMigrationRequest request =
        +   *       ExtendMigrationRequest.newBuilder()
        +   *           .setMigratingVm(
        +   *               MigratingVmName.of("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]")
        +   *                   .toString())
        +   *           .build();
        +   *   OperationFuture future =
        +   *       vmMigrationClient.extendMigrationOperationCallable().futureCall(request);
        +   *   // Do something.
        +   *   ExtendMigrationResponse response = future.get();
        +   * }
        +   * }
        + */ + public final OperationCallable + extendMigrationOperationCallable() { + return stub.extendMigrationOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Extend the migrating VM time to live. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   ExtendMigrationRequest request =
        +   *       ExtendMigrationRequest.newBuilder()
        +   *           .setMigratingVm(
        +   *               MigratingVmName.of("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]")
        +   *                   .toString())
        +   *           .build();
        +   *   ApiFuture future = vmMigrationClient.extendMigrationCallable().futureCall(request);
        +   *   // Do something.
        +   *   Operation response = future.get();
        +   * }
        +   * }
        + */ + public final UnaryCallable extendMigrationCallable() { + return stub.extendMigrationCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Initiates a Clone of a specific migrating VM. @@ -4920,7 +5513,7 @@ public final UnaryCallable cancelCloneJobCalla // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists CloneJobs of a given migrating VM. + * Lists the CloneJobs of a migrating VM. Only 25 most recent CloneJobs are listed. * *

        Sample code: * @@ -4952,7 +5545,7 @@ public final ListCloneJobsPagedResponse listCloneJobs(MigratingVmName parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists CloneJobs of a given migrating VM. + * Lists the CloneJobs of a migrating VM. Only 25 most recent CloneJobs are listed. * *

        Sample code: * @@ -4981,7 +5574,7 @@ public final ListCloneJobsPagedResponse listCloneJobs(String parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists CloneJobs of a given migrating VM. + * Lists the CloneJobs of a migrating VM. Only 25 most recent CloneJobs are listed. * *

        Sample code: * @@ -5017,7 +5610,7 @@ public final ListCloneJobsPagedResponse listCloneJobs(ListCloneJobsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists CloneJobs of a given migrating VM. + * Lists the CloneJobs of a migrating VM. Only 25 most recent CloneJobs are listed. * *

        Sample code: * @@ -5054,7 +5647,7 @@ public final ListCloneJobsPagedResponse listCloneJobs(ListCloneJobsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists CloneJobs of a given migrating VM. + * Lists the CloneJobs of a migrating VM. Only 25 most recent CloneJobs are listed. * *

        Sample code: * @@ -5551,7 +6144,7 @@ public final UnaryCallable cancelCutoverJobC // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists CutoverJobs of a given migrating VM. + * Lists the CutoverJobs of a migrating VM. Only 25 most recent CutoverJobs are listed. * *

        Sample code: * @@ -5583,7 +6176,7 @@ public final ListCutoverJobsPagedResponse listCutoverJobs(MigratingVmName parent // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists CutoverJobs of a given migrating VM. + * Lists the CutoverJobs of a migrating VM. Only 25 most recent CutoverJobs are listed. * *

        Sample code: * @@ -5612,7 +6205,7 @@ public final ListCutoverJobsPagedResponse listCutoverJobs(String parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists CutoverJobs of a given migrating VM. + * Lists the CutoverJobs of a migrating VM. Only 25 most recent CutoverJobs are listed. * *

        Sample code: * @@ -5648,7 +6241,7 @@ public final ListCutoverJobsPagedResponse listCutoverJobs(ListCutoverJobsRequest // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists CutoverJobs of a given migrating VM. + * Lists the CutoverJobs of a migrating VM. Only 25 most recent CutoverJobs are listed. * *

        Sample code: * @@ -5685,7 +6278,7 @@ public final ListCutoverJobsPagedResponse listCutoverJobs(ListCutoverJobsRequest // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists CutoverJobs of a given migrating VM. + * Lists the CutoverJobs of a migrating VM. Only 25 most recent CutoverJobs are listed. * *

        Sample code: * @@ -7977,7 +8570,7 @@ public final ReplicationCycle getReplicationCycle(GetReplicationCycleRequest req // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists ImageImports in a given project. * *

        Sample code: * @@ -7988,29 +8581,27 @@ public final ReplicationCycle getReplicationCycle(GetReplicationCycleRequest req * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { - * ListLocationsRequest request = - * ListLocationsRequest.newBuilder() - * .setName("name3373707") - * .setFilter("filter-1274492040") - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .build(); - * for (Location element : vmMigrationClient.listLocations(request).iterateAll()) { + * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + * for (ImageImport element : vmMigrationClient.listImageImports(parent).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. The parent, which owns this collection of targets. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { - return listLocationsPagedCallable().call(request); + public final ListImageImportsPagedResponse listImageImports(LocationName parent) { + ListImageImportsRequest request = + ListImageImportsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listImageImports(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists ImageImports in a given project. * *

        Sample code: * @@ -8021,9 +8612,2068 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { - * ListLocationsRequest request = - * ListLocationsRequest.newBuilder() - * .setName("name3373707") + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + * for (ImageImport element : vmMigrationClient.listImageImports(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * } + * + * @param parent Required. The parent, which owns this collection of targets. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListImageImportsPagedResponse listImageImports(String parent) { + ListImageImportsRequest request = + ListImageImportsRequest.newBuilder().setParent(parent).build(); + return listImageImports(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists ImageImports in a given project. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   ListImageImportsRequest request =
        +   *       ListImageImportsRequest.newBuilder()
        +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
        +   *           .setPageSize(883849137)
        +   *           .setPageToken("pageToken873572522")
        +   *           .setFilter("filter-1274492040")
        +   *           .setOrderBy("orderBy-1207110587")
        +   *           .build();
        +   *   for (ImageImport element : vmMigrationClient.listImageImports(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 ListImageImportsPagedResponse listImageImports(ListImageImportsRequest request) { + return listImageImportsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists ImageImports in a given project. + * + *

        Sample code: + * + *

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

        Sample code: + * + *

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

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   ImageImportName name = ImageImportName.of("[PROJECT]", "[LOCATION]", "[JOB]");
        +   *   ImageImport response = vmMigrationClient.getImageImport(name);
        +   * }
        +   * }
        + * + * @param name Required. The ImageImport name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ImageImport getImageImport(ImageImportName name) { + GetImageImportRequest request = + GetImageImportRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getImageImport(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single ImageImport. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   String name = ImageImportName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString();
        +   *   ImageImport response = vmMigrationClient.getImageImport(name);
        +   * }
        +   * }
        + * + * @param name Required. The ImageImport name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ImageImport getImageImport(String name) { + GetImageImportRequest request = GetImageImportRequest.newBuilder().setName(name).build(); + return getImageImport(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single ImageImport. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   GetImageImportRequest request =
        +   *       GetImageImportRequest.newBuilder()
        +   *           .setName(ImageImportName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString())
        +   *           .build();
        +   *   ImageImport response = vmMigrationClient.getImageImport(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 ImageImport getImageImport(GetImageImportRequest request) { + return getImageImportCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single ImageImport. + * + *

        Sample code: + * + *

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

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
        +   *   ImageImport imageImport = ImageImport.newBuilder().build();
        +   *   String imageImportId = "imageImportId943893019";
        +   *   ImageImport response =
        +   *       vmMigrationClient.createImageImportAsync(parent, imageImport, imageImportId).get();
        +   * }
        +   * }
        + * + * @param parent Required. The ImageImport's parent. + * @param imageImport Required. The create request body. + * @param imageImportId Required. The image import identifier. This value maximum length is 63 + * characters, and valid characters are /[a-z][0-9]-/. It must start with an english letter + * and must not end with a hyphen. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createImageImportAsync( + LocationName parent, ImageImport imageImport, String imageImportId) { + CreateImageImportRequest request = + CreateImageImportRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setImageImport(imageImport) + .setImageImportId(imageImportId) + .build(); + return createImageImportAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new ImageImport in a given project. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
        +   *   ImageImport imageImport = ImageImport.newBuilder().build();
        +   *   String imageImportId = "imageImportId943893019";
        +   *   ImageImport response =
        +   *       vmMigrationClient.createImageImportAsync(parent, imageImport, imageImportId).get();
        +   * }
        +   * }
        + * + * @param parent Required. The ImageImport's parent. + * @param imageImport Required. The create request body. + * @param imageImportId Required. The image import identifier. This value maximum length is 63 + * characters, and valid characters are /[a-z][0-9]-/. It must start with an english letter + * and must not end with a hyphen. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createImageImportAsync( + String parent, ImageImport imageImport, String imageImportId) { + CreateImageImportRequest request = + CreateImageImportRequest.newBuilder() + .setParent(parent) + .setImageImport(imageImport) + .setImageImportId(imageImportId) + .build(); + return createImageImportAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new ImageImport in a given project. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   CreateImageImportRequest request =
        +   *       CreateImageImportRequest.newBuilder()
        +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
        +   *           .setImageImportId("imageImportId943893019")
        +   *           .setImageImport(ImageImport.newBuilder().build())
        +   *           .setRequestId("requestId693933066")
        +   *           .build();
        +   *   ImageImport response = vmMigrationClient.createImageImportAsync(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 createImageImportAsync( + CreateImageImportRequest request) { + return createImageImportOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new ImageImport in a given project. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   CreateImageImportRequest request =
        +   *       CreateImageImportRequest.newBuilder()
        +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
        +   *           .setImageImportId("imageImportId943893019")
        +   *           .setImageImport(ImageImport.newBuilder().build())
        +   *           .setRequestId("requestId693933066")
        +   *           .build();
        +   *   OperationFuture future =
        +   *       vmMigrationClient.createImageImportOperationCallable().futureCall(request);
        +   *   // Do something.
        +   *   ImageImport response = future.get();
        +   * }
        +   * }
        + */ + public final OperationCallable + createImageImportOperationCallable() { + return stub.createImageImportOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new ImageImport in a given project. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   CreateImageImportRequest request =
        +   *       CreateImageImportRequest.newBuilder()
        +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
        +   *           .setImageImportId("imageImportId943893019")
        +   *           .setImageImport(ImageImport.newBuilder().build())
        +   *           .setRequestId("requestId693933066")
        +   *           .build();
        +   *   ApiFuture future =
        +   *       vmMigrationClient.createImageImportCallable().futureCall(request);
        +   *   // Do something.
        +   *   Operation response = future.get();
        +   * }
        +   * }
        + */ + public final UnaryCallable createImageImportCallable() { + return stub.createImageImportCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single ImageImport. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   ImageImportName name = ImageImportName.of("[PROJECT]", "[LOCATION]", "[JOB]");
        +   *   vmMigrationClient.deleteImageImportAsync(name).get();
        +   * }
        +   * }
        + * + * @param name Required. The ImageImport name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteImageImportAsync( + ImageImportName name) { + DeleteImageImportRequest request = + DeleteImageImportRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteImageImportAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single ImageImport. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   String name = ImageImportName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString();
        +   *   vmMigrationClient.deleteImageImportAsync(name).get();
        +   * }
        +   * }
        + * + * @param name Required. The ImageImport name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteImageImportAsync(String name) { + DeleteImageImportRequest request = DeleteImageImportRequest.newBuilder().setName(name).build(); + return deleteImageImportAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single ImageImport. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   DeleteImageImportRequest request =
        +   *       DeleteImageImportRequest.newBuilder()
        +   *           .setName(ImageImportName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString())
        +   *           .setRequestId("requestId693933066")
        +   *           .build();
        +   *   vmMigrationClient.deleteImageImportAsync(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 deleteImageImportAsync( + DeleteImageImportRequest request) { + return deleteImageImportOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single ImageImport. + * + *

        Sample code: + * + *

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

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   DeleteImageImportRequest request =
        +   *       DeleteImageImportRequest.newBuilder()
        +   *           .setName(ImageImportName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString())
        +   *           .setRequestId("requestId693933066")
        +   *           .build();
        +   *   ApiFuture future =
        +   *       vmMigrationClient.deleteImageImportCallable().futureCall(request);
        +   *   // Do something.
        +   *   future.get();
        +   * }
        +   * }
        + */ + public final UnaryCallable deleteImageImportCallable() { + return stub.deleteImageImportCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists ImageImportJobs in a given project. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   ImageImportName parent = ImageImportName.of("[PROJECT]", "[LOCATION]", "[JOB]");
        +   *   for (ImageImportJob element : vmMigrationClient.listImageImportJobs(parent).iterateAll()) {
        +   *     // doThingsWith(element);
        +   *   }
        +   * }
        +   * }
        + * + * @param parent Required. The parent, which owns this collection of targets. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListImageImportJobsPagedResponse listImageImportJobs(ImageImportName parent) { + ListImageImportJobsRequest request = + ListImageImportJobsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listImageImportJobs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists ImageImportJobs in a given project. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   String parent = ImageImportName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString();
        +   *   for (ImageImportJob element : vmMigrationClient.listImageImportJobs(parent).iterateAll()) {
        +   *     // doThingsWith(element);
        +   *   }
        +   * }
        +   * }
        + * + * @param parent Required. The parent, which owns this collection of targets. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListImageImportJobsPagedResponse listImageImportJobs(String parent) { + ListImageImportJobsRequest request = + ListImageImportJobsRequest.newBuilder().setParent(parent).build(); + return listImageImportJobs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists ImageImportJobs in a given project. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   ListImageImportJobsRequest request =
        +   *       ListImageImportJobsRequest.newBuilder()
        +   *           .setParent(ImageImportName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString())
        +   *           .setPageSize(883849137)
        +   *           .setPageToken("pageToken873572522")
        +   *           .setFilter("filter-1274492040")
        +   *           .setOrderBy("orderBy-1207110587")
        +   *           .build();
        +   *   for (ImageImportJob element : vmMigrationClient.listImageImportJobs(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 ListImageImportJobsPagedResponse listImageImportJobs( + ListImageImportJobsRequest request) { + return listImageImportJobsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists ImageImportJobs in a given project. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   ListImageImportJobsRequest request =
        +   *       ListImageImportJobsRequest.newBuilder()
        +   *           .setParent(ImageImportName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString())
        +   *           .setPageSize(883849137)
        +   *           .setPageToken("pageToken873572522")
        +   *           .setFilter("filter-1274492040")
        +   *           .setOrderBy("orderBy-1207110587")
        +   *           .build();
        +   *   ApiFuture future =
        +   *       vmMigrationClient.listImageImportJobsPagedCallable().futureCall(request);
        +   *   // Do something.
        +   *   for (ImageImportJob element : future.get().iterateAll()) {
        +   *     // doThingsWith(element);
        +   *   }
        +   * }
        +   * }
        + */ + public final UnaryCallable + listImageImportJobsPagedCallable() { + return stub.listImageImportJobsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists ImageImportJobs in a given project. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   ListImageImportJobsRequest request =
        +   *       ListImageImportJobsRequest.newBuilder()
        +   *           .setParent(ImageImportName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString())
        +   *           .setPageSize(883849137)
        +   *           .setPageToken("pageToken873572522")
        +   *           .setFilter("filter-1274492040")
        +   *           .setOrderBy("orderBy-1207110587")
        +   *           .build();
        +   *   while (true) {
        +   *     ListImageImportJobsResponse response =
        +   *         vmMigrationClient.listImageImportJobsCallable().call(request);
        +   *     for (ImageImportJob element : response.getImageImportJobsList()) {
        +   *       // doThingsWith(element);
        +   *     }
        +   *     String nextPageToken = response.getNextPageToken();
        +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
        +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
        +   *     } else {
        +   *       break;
        +   *     }
        +   *   }
        +   * }
        +   * }
        + */ + public final UnaryCallable + listImageImportJobsCallable() { + return stub.listImageImportJobsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single ImageImportJob. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   ImageImportJobName name =
        +   *       ImageImportJobName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[RESULT]");
        +   *   ImageImportJob response = vmMigrationClient.getImageImportJob(name);
        +   * }
        +   * }
        + * + * @param name Required. The ImageImportJob name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ImageImportJob getImageImportJob(ImageImportJobName name) { + GetImageImportJobRequest request = + GetImageImportJobRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getImageImportJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single ImageImportJob. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   String name =
        +   *       ImageImportJobName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[RESULT]").toString();
        +   *   ImageImportJob response = vmMigrationClient.getImageImportJob(name);
        +   * }
        +   * }
        + * + * @param name Required. The ImageImportJob name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ImageImportJob getImageImportJob(String name) { + GetImageImportJobRequest request = GetImageImportJobRequest.newBuilder().setName(name).build(); + return getImageImportJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single ImageImportJob. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   GetImageImportJobRequest request =
        +   *       GetImageImportJobRequest.newBuilder()
        +   *           .setName(
        +   *               ImageImportJobName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[RESULT]").toString())
        +   *           .build();
        +   *   ImageImportJob response = vmMigrationClient.getImageImportJob(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 ImageImportJob getImageImportJob(GetImageImportJobRequest request) { + return getImageImportJobCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single ImageImportJob. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   GetImageImportJobRequest request =
        +   *       GetImageImportJobRequest.newBuilder()
        +   *           .setName(
        +   *               ImageImportJobName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[RESULT]").toString())
        +   *           .build();
        +   *   ApiFuture future =
        +   *       vmMigrationClient.getImageImportJobCallable().futureCall(request);
        +   *   // Do something.
        +   *   ImageImportJob response = future.get();
        +   * }
        +   * }
        + */ + public final UnaryCallable getImageImportJobCallable() { + return stub.getImageImportJobCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Initiates the cancellation of a running clone job. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   ImageImportJobName name =
        +   *       ImageImportJobName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[RESULT]");
        +   *   CancelImageImportJobResponse response =
        +   *       vmMigrationClient.cancelImageImportJobAsync(name).get();
        +   * }
        +   * }
        + * + * @param name Required. The image import job id. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + cancelImageImportJobAsync(ImageImportJobName name) { + CancelImageImportJobRequest request = + CancelImageImportJobRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return cancelImageImportJobAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Initiates the cancellation of a running clone job. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   String name =
        +   *       ImageImportJobName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[RESULT]").toString();
        +   *   CancelImageImportJobResponse response =
        +   *       vmMigrationClient.cancelImageImportJobAsync(name).get();
        +   * }
        +   * }
        + * + * @param name Required. The image import job id. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + cancelImageImportJobAsync(String name) { + CancelImageImportJobRequest request = + CancelImageImportJobRequest.newBuilder().setName(name).build(); + return cancelImageImportJobAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Initiates the cancellation of a running clone job. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   CancelImageImportJobRequest request =
        +   *       CancelImageImportJobRequest.newBuilder()
        +   *           .setName(
        +   *               ImageImportJobName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[RESULT]").toString())
        +   *           .build();
        +   *   CancelImageImportJobResponse response =
        +   *       vmMigrationClient.cancelImageImportJobAsync(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 + cancelImageImportJobAsync(CancelImageImportJobRequest request) { + return cancelImageImportJobOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Initiates the cancellation of a running clone job. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   CancelImageImportJobRequest request =
        +   *       CancelImageImportJobRequest.newBuilder()
        +   *           .setName(
        +   *               ImageImportJobName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[RESULT]").toString())
        +   *           .build();
        +   *   OperationFuture future =
        +   *       vmMigrationClient.cancelImageImportJobOperationCallable().futureCall(request);
        +   *   // Do something.
        +   *   CancelImageImportJobResponse response = future.get();
        +   * }
        +   * }
        + */ + public final OperationCallable< + CancelImageImportJobRequest, CancelImageImportJobResponse, OperationMetadata> + cancelImageImportJobOperationCallable() { + return stub.cancelImageImportJobOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Initiates the cancellation of a running clone job. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   CancelImageImportJobRequest request =
        +   *       CancelImageImportJobRequest.newBuilder()
        +   *           .setName(
        +   *               ImageImportJobName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[RESULT]").toString())
        +   *           .build();
        +   *   ApiFuture future =
        +   *       vmMigrationClient.cancelImageImportJobCallable().futureCall(request);
        +   *   // Do something.
        +   *   Operation response = future.get();
        +   * }
        +   * }
        + */ + public final UnaryCallable + cancelImageImportJobCallable() { + return stub.cancelImageImportJobCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new disk migration job in a given Source. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   SourceName parent = SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]");
        +   *   DiskMigrationJob diskMigrationJob = DiskMigrationJob.newBuilder().build();
        +   *   String diskMigrationJobId = "diskMigrationJobId-173409913";
        +   *   DiskMigrationJob response =
        +   *       vmMigrationClient
        +   *           .createDiskMigrationJobAsync(parent, diskMigrationJob, diskMigrationJobId)
        +   *           .get();
        +   * }
        +   * }
        + * + * @param parent Required. The DiskMigrationJob's parent. + * @param diskMigrationJob Required. The create request body. + * @param diskMigrationJobId Required. The DiskMigrationJob identifier. The maximum length of this + * value is 63 characters. Valid characters are lower case Latin letters, digits and hyphen. + * It must start with a Latin letter and must not end with a hyphen. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createDiskMigrationJobAsync( + SourceName parent, DiskMigrationJob diskMigrationJob, String diskMigrationJobId) { + CreateDiskMigrationJobRequest request = + CreateDiskMigrationJobRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setDiskMigrationJob(diskMigrationJob) + .setDiskMigrationJobId(diskMigrationJobId) + .build(); + return createDiskMigrationJobAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new disk migration job in a given Source. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   String parent = SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]").toString();
        +   *   DiskMigrationJob diskMigrationJob = DiskMigrationJob.newBuilder().build();
        +   *   String diskMigrationJobId = "diskMigrationJobId-173409913";
        +   *   DiskMigrationJob response =
        +   *       vmMigrationClient
        +   *           .createDiskMigrationJobAsync(parent, diskMigrationJob, diskMigrationJobId)
        +   *           .get();
        +   * }
        +   * }
        + * + * @param parent Required. The DiskMigrationJob's parent. + * @param diskMigrationJob Required. The create request body. + * @param diskMigrationJobId Required. The DiskMigrationJob identifier. The maximum length of this + * value is 63 characters. Valid characters are lower case Latin letters, digits and hyphen. + * It must start with a Latin letter and must not end with a hyphen. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createDiskMigrationJobAsync( + String parent, DiskMigrationJob diskMigrationJob, String diskMigrationJobId) { + CreateDiskMigrationJobRequest request = + CreateDiskMigrationJobRequest.newBuilder() + .setParent(parent) + .setDiskMigrationJob(diskMigrationJob) + .setDiskMigrationJobId(diskMigrationJobId) + .build(); + return createDiskMigrationJobAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new disk migration job in a given Source. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   CreateDiskMigrationJobRequest request =
        +   *       CreateDiskMigrationJobRequest.newBuilder()
        +   *           .setParent(SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]").toString())
        +   *           .setDiskMigrationJobId("diskMigrationJobId-173409913")
        +   *           .setDiskMigrationJob(DiskMigrationJob.newBuilder().build())
        +   *           .setRequestId("requestId693933066")
        +   *           .build();
        +   *   DiskMigrationJob response = vmMigrationClient.createDiskMigrationJobAsync(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 createDiskMigrationJobAsync( + CreateDiskMigrationJobRequest request) { + return createDiskMigrationJobOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new disk migration job in a given Source. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   CreateDiskMigrationJobRequest request =
        +   *       CreateDiskMigrationJobRequest.newBuilder()
        +   *           .setParent(SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]").toString())
        +   *           .setDiskMigrationJobId("diskMigrationJobId-173409913")
        +   *           .setDiskMigrationJob(DiskMigrationJob.newBuilder().build())
        +   *           .setRequestId("requestId693933066")
        +   *           .build();
        +   *   OperationFuture future =
        +   *       vmMigrationClient.createDiskMigrationJobOperationCallable().futureCall(request);
        +   *   // Do something.
        +   *   DiskMigrationJob response = future.get();
        +   * }
        +   * }
        + */ + public final OperationCallable + createDiskMigrationJobOperationCallable() { + return stub.createDiskMigrationJobOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new disk migration job in a given Source. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   CreateDiskMigrationJobRequest request =
        +   *       CreateDiskMigrationJobRequest.newBuilder()
        +   *           .setParent(SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]").toString())
        +   *           .setDiskMigrationJobId("diskMigrationJobId-173409913")
        +   *           .setDiskMigrationJob(DiskMigrationJob.newBuilder().build())
        +   *           .setRequestId("requestId693933066")
        +   *           .build();
        +   *   ApiFuture future =
        +   *       vmMigrationClient.createDiskMigrationJobCallable().futureCall(request);
        +   *   // Do something.
        +   *   Operation response = future.get();
        +   * }
        +   * }
        + */ + public final UnaryCallable + createDiskMigrationJobCallable() { + return stub.createDiskMigrationJobCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists DiskMigrationJobs in a given Source. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   SourceName parent = SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]");
        +   *   for (DiskMigrationJob element :
        +   *       vmMigrationClient.listDiskMigrationJobs(parent).iterateAll()) {
        +   *     // doThingsWith(element);
        +   *   }
        +   * }
        +   * }
        + * + * @param parent Required. The parent, which owns this collection of DiskMigrationJobs. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDiskMigrationJobsPagedResponse listDiskMigrationJobs(SourceName parent) { + ListDiskMigrationJobsRequest request = + ListDiskMigrationJobsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listDiskMigrationJobs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists DiskMigrationJobs in a given Source. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   String parent = SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]").toString();
        +   *   for (DiskMigrationJob element :
        +   *       vmMigrationClient.listDiskMigrationJobs(parent).iterateAll()) {
        +   *     // doThingsWith(element);
        +   *   }
        +   * }
        +   * }
        + * + * @param parent Required. The parent, which owns this collection of DiskMigrationJobs. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDiskMigrationJobsPagedResponse listDiskMigrationJobs(String parent) { + ListDiskMigrationJobsRequest request = + ListDiskMigrationJobsRequest.newBuilder().setParent(parent).build(); + return listDiskMigrationJobs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists DiskMigrationJobs in a given Source. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   ListDiskMigrationJobsRequest request =
        +   *       ListDiskMigrationJobsRequest.newBuilder()
        +   *           .setParent(SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]").toString())
        +   *           .setPageSize(883849137)
        +   *           .setPageToken("pageToken873572522")
        +   *           .setFilter("filter-1274492040")
        +   *           .setOrderBy("orderBy-1207110587")
        +   *           .build();
        +   *   for (DiskMigrationJob element :
        +   *       vmMigrationClient.listDiskMigrationJobs(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 ListDiskMigrationJobsPagedResponse listDiskMigrationJobs( + ListDiskMigrationJobsRequest request) { + return listDiskMigrationJobsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists DiskMigrationJobs in a given Source. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   ListDiskMigrationJobsRequest request =
        +   *       ListDiskMigrationJobsRequest.newBuilder()
        +   *           .setParent(SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]").toString())
        +   *           .setPageSize(883849137)
        +   *           .setPageToken("pageToken873572522")
        +   *           .setFilter("filter-1274492040")
        +   *           .setOrderBy("orderBy-1207110587")
        +   *           .build();
        +   *   ApiFuture future =
        +   *       vmMigrationClient.listDiskMigrationJobsPagedCallable().futureCall(request);
        +   *   // Do something.
        +   *   for (DiskMigrationJob element : future.get().iterateAll()) {
        +   *     // doThingsWith(element);
        +   *   }
        +   * }
        +   * }
        + */ + public final UnaryCallable + listDiskMigrationJobsPagedCallable() { + return stub.listDiskMigrationJobsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists DiskMigrationJobs in a given Source. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   ListDiskMigrationJobsRequest request =
        +   *       ListDiskMigrationJobsRequest.newBuilder()
        +   *           .setParent(SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]").toString())
        +   *           .setPageSize(883849137)
        +   *           .setPageToken("pageToken873572522")
        +   *           .setFilter("filter-1274492040")
        +   *           .setOrderBy("orderBy-1207110587")
        +   *           .build();
        +   *   while (true) {
        +   *     ListDiskMigrationJobsResponse response =
        +   *         vmMigrationClient.listDiskMigrationJobsCallable().call(request);
        +   *     for (DiskMigrationJob element : response.getDiskMigrationJobsList()) {
        +   *       // doThingsWith(element);
        +   *     }
        +   *     String nextPageToken = response.getNextPageToken();
        +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
        +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
        +   *     } else {
        +   *       break;
        +   *     }
        +   *   }
        +   * }
        +   * }
        + */ + public final UnaryCallable + listDiskMigrationJobsCallable() { + return stub.listDiskMigrationJobsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single DiskMigrationJob. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   DiskMigrationJobName name =
        +   *       DiskMigrationJobName.of("[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]");
        +   *   DiskMigrationJob response = vmMigrationClient.getDiskMigrationJob(name);
        +   * }
        +   * }
        + * + * @param name Required. The name of the DiskMigrationJob. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DiskMigrationJob getDiskMigrationJob(DiskMigrationJobName name) { + GetDiskMigrationJobRequest request = + GetDiskMigrationJobRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getDiskMigrationJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single DiskMigrationJob. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   String name =
        +   *       DiskMigrationJobName.of("[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]")
        +   *           .toString();
        +   *   DiskMigrationJob response = vmMigrationClient.getDiskMigrationJob(name);
        +   * }
        +   * }
        + * + * @param name Required. The name of the DiskMigrationJob. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DiskMigrationJob getDiskMigrationJob(String name) { + GetDiskMigrationJobRequest request = + GetDiskMigrationJobRequest.newBuilder().setName(name).build(); + return getDiskMigrationJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single DiskMigrationJob. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   GetDiskMigrationJobRequest request =
        +   *       GetDiskMigrationJobRequest.newBuilder()
        +   *           .setName(
        +   *               DiskMigrationJobName.of(
        +   *                       "[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]")
        +   *                   .toString())
        +   *           .build();
        +   *   DiskMigrationJob response = vmMigrationClient.getDiskMigrationJob(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 DiskMigrationJob getDiskMigrationJob(GetDiskMigrationJobRequest request) { + return getDiskMigrationJobCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single DiskMigrationJob. + * + *

        Sample code: + * + *

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

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   DiskMigrationJob diskMigrationJob = DiskMigrationJob.newBuilder().build();
        +   *   FieldMask updateMask = FieldMask.newBuilder().build();
        +   *   DiskMigrationJob response =
        +   *       vmMigrationClient.updateDiskMigrationJobAsync(diskMigrationJob, updateMask).get();
        +   * }
        +   * }
        + * + * @param diskMigrationJob Required. The update request body. + * @param updateMask Optional. Field mask is used to specify the fields to be overwritten in the + * DiskMigrationJob resource by the update. The fields specified in the update_mask are + * relative to the resource, not the full request. A field will be overwritten if it is in the + * mask. If the user does not provide a mask, then a mask equivalent to all fields that are + * populated (have a non-empty value), will be implied. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateDiskMigrationJobAsync( + DiskMigrationJob diskMigrationJob, FieldMask updateMask) { + UpdateDiskMigrationJobRequest request = + UpdateDiskMigrationJobRequest.newBuilder() + .setDiskMigrationJob(diskMigrationJob) + .setUpdateMask(updateMask) + .build(); + return updateDiskMigrationJobAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single DiskMigrationJob. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   UpdateDiskMigrationJobRequest request =
        +   *       UpdateDiskMigrationJobRequest.newBuilder()
        +   *           .setUpdateMask(FieldMask.newBuilder().build())
        +   *           .setDiskMigrationJob(DiskMigrationJob.newBuilder().build())
        +   *           .setRequestId("requestId693933066")
        +   *           .build();
        +   *   DiskMigrationJob response = vmMigrationClient.updateDiskMigrationJobAsync(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 updateDiskMigrationJobAsync( + UpdateDiskMigrationJobRequest request) { + return updateDiskMigrationJobOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single DiskMigrationJob. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   UpdateDiskMigrationJobRequest request =
        +   *       UpdateDiskMigrationJobRequest.newBuilder()
        +   *           .setUpdateMask(FieldMask.newBuilder().build())
        +   *           .setDiskMigrationJob(DiskMigrationJob.newBuilder().build())
        +   *           .setRequestId("requestId693933066")
        +   *           .build();
        +   *   OperationFuture future =
        +   *       vmMigrationClient.updateDiskMigrationJobOperationCallable().futureCall(request);
        +   *   // Do something.
        +   *   DiskMigrationJob response = future.get();
        +   * }
        +   * }
        + */ + public final OperationCallable + updateDiskMigrationJobOperationCallable() { + return stub.updateDiskMigrationJobOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single DiskMigrationJob. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   UpdateDiskMigrationJobRequest request =
        +   *       UpdateDiskMigrationJobRequest.newBuilder()
        +   *           .setUpdateMask(FieldMask.newBuilder().build())
        +   *           .setDiskMigrationJob(DiskMigrationJob.newBuilder().build())
        +   *           .setRequestId("requestId693933066")
        +   *           .build();
        +   *   ApiFuture future =
        +   *       vmMigrationClient.updateDiskMigrationJobCallable().futureCall(request);
        +   *   // Do something.
        +   *   Operation response = future.get();
        +   * }
        +   * }
        + */ + public final UnaryCallable + updateDiskMigrationJobCallable() { + return stub.updateDiskMigrationJobCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single DiskMigrationJob. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   DiskMigrationJobName name =
        +   *       DiskMigrationJobName.of("[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]");
        +   *   vmMigrationClient.deleteDiskMigrationJobAsync(name).get();
        +   * }
        +   * }
        + * + * @param name Required. The name of the DiskMigrationJob. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteDiskMigrationJobAsync( + DiskMigrationJobName name) { + DeleteDiskMigrationJobRequest request = + DeleteDiskMigrationJobRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteDiskMigrationJobAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single DiskMigrationJob. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   String name =
        +   *       DiskMigrationJobName.of("[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]")
        +   *           .toString();
        +   *   vmMigrationClient.deleteDiskMigrationJobAsync(name).get();
        +   * }
        +   * }
        + * + * @param name Required. The name of the DiskMigrationJob. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteDiskMigrationJobAsync(String name) { + DeleteDiskMigrationJobRequest request = + DeleteDiskMigrationJobRequest.newBuilder().setName(name).build(); + return deleteDiskMigrationJobAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single DiskMigrationJob. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   DeleteDiskMigrationJobRequest request =
        +   *       DeleteDiskMigrationJobRequest.newBuilder()
        +   *           .setName(
        +   *               DiskMigrationJobName.of(
        +   *                       "[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]")
        +   *                   .toString())
        +   *           .build();
        +   *   vmMigrationClient.deleteDiskMigrationJobAsync(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 deleteDiskMigrationJobAsync( + DeleteDiskMigrationJobRequest request) { + return deleteDiskMigrationJobOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single DiskMigrationJob. + * + *

        Sample code: + * + *

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

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   DeleteDiskMigrationJobRequest request =
        +   *       DeleteDiskMigrationJobRequest.newBuilder()
        +   *           .setName(
        +   *               DiskMigrationJobName.of(
        +   *                       "[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]")
        +   *                   .toString())
        +   *           .build();
        +   *   ApiFuture future =
        +   *       vmMigrationClient.deleteDiskMigrationJobCallable().futureCall(request);
        +   *   // Do something.
        +   *   future.get();
        +   * }
        +   * }
        + */ + public final UnaryCallable + deleteDiskMigrationJobCallable() { + return stub.deleteDiskMigrationJobCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Runs the disk migration job. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   DiskMigrationJobName name =
        +   *       DiskMigrationJobName.of("[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]");
        +   *   RunDiskMigrationJobResponse response = vmMigrationClient.runDiskMigrationJobAsync(name).get();
        +   * }
        +   * }
        + * + * @param name Required. The name of the DiskMigrationJob. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + runDiskMigrationJobAsync(DiskMigrationJobName name) { + RunDiskMigrationJobRequest request = + RunDiskMigrationJobRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return runDiskMigrationJobAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Runs the disk migration job. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   String name =
        +   *       DiskMigrationJobName.of("[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]")
        +   *           .toString();
        +   *   RunDiskMigrationJobResponse response = vmMigrationClient.runDiskMigrationJobAsync(name).get();
        +   * }
        +   * }
        + * + * @param name Required. The name of the DiskMigrationJob. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + runDiskMigrationJobAsync(String name) { + RunDiskMigrationJobRequest request = + RunDiskMigrationJobRequest.newBuilder().setName(name).build(); + return runDiskMigrationJobAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Runs the disk migration job. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   RunDiskMigrationJobRequest request =
        +   *       RunDiskMigrationJobRequest.newBuilder()
        +   *           .setName(
        +   *               DiskMigrationJobName.of(
        +   *                       "[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]")
        +   *                   .toString())
        +   *           .build();
        +   *   RunDiskMigrationJobResponse response =
        +   *       vmMigrationClient.runDiskMigrationJobAsync(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 + runDiskMigrationJobAsync(RunDiskMigrationJobRequest request) { + return runDiskMigrationJobOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Runs the disk migration job. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   RunDiskMigrationJobRequest request =
        +   *       RunDiskMigrationJobRequest.newBuilder()
        +   *           .setName(
        +   *               DiskMigrationJobName.of(
        +   *                       "[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]")
        +   *                   .toString())
        +   *           .build();
        +   *   OperationFuture future =
        +   *       vmMigrationClient.runDiskMigrationJobOperationCallable().futureCall(request);
        +   *   // Do something.
        +   *   RunDiskMigrationJobResponse response = future.get();
        +   * }
        +   * }
        + */ + public final OperationCallable< + RunDiskMigrationJobRequest, RunDiskMigrationJobResponse, OperationMetadata> + runDiskMigrationJobOperationCallable() { + return stub.runDiskMigrationJobOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Runs the disk migration job. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   RunDiskMigrationJobRequest request =
        +   *       RunDiskMigrationJobRequest.newBuilder()
        +   *           .setName(
        +   *               DiskMigrationJobName.of(
        +   *                       "[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]")
        +   *                   .toString())
        +   *           .build();
        +   *   ApiFuture future =
        +   *       vmMigrationClient.runDiskMigrationJobCallable().futureCall(request);
        +   *   // Do something.
        +   *   Operation response = future.get();
        +   * }
        +   * }
        + */ + public final UnaryCallable runDiskMigrationJobCallable() { + return stub.runDiskMigrationJobCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Cancels the disk migration job. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   CancelDiskMigrationJobRequest request =
        +   *       CancelDiskMigrationJobRequest.newBuilder()
        +   *           .setName(
        +   *               DiskMigrationJobName.of(
        +   *                       "[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]")
        +   *                   .toString())
        +   *           .build();
        +   *   CancelDiskMigrationJobResponse response =
        +   *       vmMigrationClient.cancelDiskMigrationJobAsync(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 + cancelDiskMigrationJobAsync(CancelDiskMigrationJobRequest request) { + return cancelDiskMigrationJobOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Cancels the disk migration job. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   CancelDiskMigrationJobRequest request =
        +   *       CancelDiskMigrationJobRequest.newBuilder()
        +   *           .setName(
        +   *               DiskMigrationJobName.of(
        +   *                       "[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]")
        +   *                   .toString())
        +   *           .build();
        +   *   OperationFuture future =
        +   *       vmMigrationClient.cancelDiskMigrationJobOperationCallable().futureCall(request);
        +   *   // Do something.
        +   *   CancelDiskMigrationJobResponse response = future.get();
        +   * }
        +   * }
        + */ + public final OperationCallable< + CancelDiskMigrationJobRequest, CancelDiskMigrationJobResponse, OperationMetadata> + cancelDiskMigrationJobOperationCallable() { + return stub.cancelDiskMigrationJobOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Cancels the disk migration job. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   CancelDiskMigrationJobRequest request =
        +   *       CancelDiskMigrationJobRequest.newBuilder()
        +   *           .setName(
        +   *               DiskMigrationJobName.of(
        +   *                       "[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]")
        +   *                   .toString())
        +   *           .build();
        +   *   ApiFuture future =
        +   *       vmMigrationClient.cancelDiskMigrationJobCallable().futureCall(request);
        +   *   // Do something.
        +   *   Operation response = future.get();
        +   * }
        +   * }
        + */ + public final UnaryCallable + cancelDiskMigrationJobCallable() { + return stub.cancelDiskMigrationJobCallable(); + } + + // 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 (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   ListLocationsRequest request =
        +   *       ListLocationsRequest.newBuilder()
        +   *           .setName("name3373707")
        +   *           .setFilter("filter-1274492040")
        +   *           .setPageSize(883849137)
        +   *           .setPageToken("pageToken873572522")
        +   *           .build();
        +   *   for (Location element : vmMigrationClient.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 (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) {
        +   *   ListLocationsRequest request =
        +   *       ListLocationsRequest.newBuilder()
        +   *           .setName("name3373707")
            *           .setFilter("filter-1274492040")
            *           .setPageSize(883849137)
            *           .setPageToken("pageToken873572522")
        @@ -8233,6 +10883,94 @@ protected ListSourcesFixedSizeCollection createCollection(
             }
           }
         
        +  public static class FetchStorageInventoryPagedResponse
        +      extends AbstractPagedListResponse<
        +          FetchStorageInventoryRequest,
        +          FetchStorageInventoryResponse,
        +          SourceStorageResource,
        +          FetchStorageInventoryPage,
        +          FetchStorageInventoryFixedSizeCollection> {
        +
        +    public static ApiFuture createAsync(
        +        PageContext<
        +                FetchStorageInventoryRequest, FetchStorageInventoryResponse, SourceStorageResource>
        +            context,
        +        ApiFuture futureResponse) {
        +      ApiFuture futurePage =
        +          FetchStorageInventoryPage.createEmptyPage().createPageAsync(context, futureResponse);
        +      return ApiFutures.transform(
        +          futurePage,
        +          input -> new FetchStorageInventoryPagedResponse(input),
        +          MoreExecutors.directExecutor());
        +    }
        +
        +    private FetchStorageInventoryPagedResponse(FetchStorageInventoryPage page) {
        +      super(page, FetchStorageInventoryFixedSizeCollection.createEmptyCollection());
        +    }
        +  }
        +
        +  public static class FetchStorageInventoryPage
        +      extends AbstractPage<
        +          FetchStorageInventoryRequest,
        +          FetchStorageInventoryResponse,
        +          SourceStorageResource,
        +          FetchStorageInventoryPage> {
        +
        +    private FetchStorageInventoryPage(
        +        PageContext<
        +                FetchStorageInventoryRequest, FetchStorageInventoryResponse, SourceStorageResource>
        +            context,
        +        FetchStorageInventoryResponse response) {
        +      super(context, response);
        +    }
        +
        +    private static FetchStorageInventoryPage createEmptyPage() {
        +      return new FetchStorageInventoryPage(null, null);
        +    }
        +
        +    @Override
        +    protected FetchStorageInventoryPage createPage(
        +        PageContext<
        +                FetchStorageInventoryRequest, FetchStorageInventoryResponse, SourceStorageResource>
        +            context,
        +        FetchStorageInventoryResponse response) {
        +      return new FetchStorageInventoryPage(context, response);
        +    }
        +
        +    @Override
        +    public ApiFuture createPageAsync(
        +        PageContext<
        +                FetchStorageInventoryRequest, FetchStorageInventoryResponse, SourceStorageResource>
        +            context,
        +        ApiFuture futureResponse) {
        +      return super.createPageAsync(context, futureResponse);
        +    }
        +  }
        +
        +  public static class FetchStorageInventoryFixedSizeCollection
        +      extends AbstractFixedSizeCollection<
        +          FetchStorageInventoryRequest,
        +          FetchStorageInventoryResponse,
        +          SourceStorageResource,
        +          FetchStorageInventoryPage,
        +          FetchStorageInventoryFixedSizeCollection> {
        +
        +    private FetchStorageInventoryFixedSizeCollection(
        +        List pages, int collectionSize) {
        +      super(pages, collectionSize);
        +    }
        +
        +    private static FetchStorageInventoryFixedSizeCollection createEmptyCollection() {
        +      return new FetchStorageInventoryFixedSizeCollection(null, 0);
        +    }
        +
        +    @Override
        +    protected FetchStorageInventoryFixedSizeCollection createCollection(
        +        List pages, int collectionSize) {
        +      return new FetchStorageInventoryFixedSizeCollection(pages, collectionSize);
        +    }
        +  }
        +
           public static class ListUtilizationReportsPagedResponse
               extends AbstractPagedListResponse<
                   ListUtilizationReportsRequest,
        @@ -8884,6 +11622,251 @@ protected ListReplicationCyclesFixedSizeCollection createCollection(
             }
           }
         
        +  public static class ListImageImportsPagedResponse
        +      extends AbstractPagedListResponse<
        +          ListImageImportsRequest,
        +          ListImageImportsResponse,
        +          ImageImport,
        +          ListImageImportsPage,
        +          ListImageImportsFixedSizeCollection> {
        +
        +    public static ApiFuture createAsync(
        +        PageContext context,
        +        ApiFuture futureResponse) {
        +      ApiFuture futurePage =
        +          ListImageImportsPage.createEmptyPage().createPageAsync(context, futureResponse);
        +      return ApiFutures.transform(
        +          futurePage,
        +          input -> new ListImageImportsPagedResponse(input),
        +          MoreExecutors.directExecutor());
        +    }
        +
        +    private ListImageImportsPagedResponse(ListImageImportsPage page) {
        +      super(page, ListImageImportsFixedSizeCollection.createEmptyCollection());
        +    }
        +  }
        +
        +  public static class ListImageImportsPage
        +      extends AbstractPage<
        +          ListImageImportsRequest, ListImageImportsResponse, ImageImport, ListImageImportsPage> {
        +
        +    private ListImageImportsPage(
        +        PageContext context,
        +        ListImageImportsResponse response) {
        +      super(context, response);
        +    }
        +
        +    private static ListImageImportsPage createEmptyPage() {
        +      return new ListImageImportsPage(null, null);
        +    }
        +
        +    @Override
        +    protected ListImageImportsPage createPage(
        +        PageContext context,
        +        ListImageImportsResponse response) {
        +      return new ListImageImportsPage(context, response);
        +    }
        +
        +    @Override
        +    public ApiFuture createPageAsync(
        +        PageContext context,
        +        ApiFuture futureResponse) {
        +      return super.createPageAsync(context, futureResponse);
        +    }
        +  }
        +
        +  public static class ListImageImportsFixedSizeCollection
        +      extends AbstractFixedSizeCollection<
        +          ListImageImportsRequest,
        +          ListImageImportsResponse,
        +          ImageImport,
        +          ListImageImportsPage,
        +          ListImageImportsFixedSizeCollection> {
        +
        +    private ListImageImportsFixedSizeCollection(
        +        List pages, int collectionSize) {
        +      super(pages, collectionSize);
        +    }
        +
        +    private static ListImageImportsFixedSizeCollection createEmptyCollection() {
        +      return new ListImageImportsFixedSizeCollection(null, 0);
        +    }
        +
        +    @Override
        +    protected ListImageImportsFixedSizeCollection createCollection(
        +        List pages, int collectionSize) {
        +      return new ListImageImportsFixedSizeCollection(pages, collectionSize);
        +    }
        +  }
        +
        +  public static class ListImageImportJobsPagedResponse
        +      extends AbstractPagedListResponse<
        +          ListImageImportJobsRequest,
        +          ListImageImportJobsResponse,
        +          ImageImportJob,
        +          ListImageImportJobsPage,
        +          ListImageImportJobsFixedSizeCollection> {
        +
        +    public static ApiFuture createAsync(
        +        PageContext
        +            context,
        +        ApiFuture futureResponse) {
        +      ApiFuture futurePage =
        +          ListImageImportJobsPage.createEmptyPage().createPageAsync(context, futureResponse);
        +      return ApiFutures.transform(
        +          futurePage,
        +          input -> new ListImageImportJobsPagedResponse(input),
        +          MoreExecutors.directExecutor());
        +    }
        +
        +    private ListImageImportJobsPagedResponse(ListImageImportJobsPage page) {
        +      super(page, ListImageImportJobsFixedSizeCollection.createEmptyCollection());
        +    }
        +  }
        +
        +  public static class ListImageImportJobsPage
        +      extends AbstractPage<
        +          ListImageImportJobsRequest,
        +          ListImageImportJobsResponse,
        +          ImageImportJob,
        +          ListImageImportJobsPage> {
        +
        +    private ListImageImportJobsPage(
        +        PageContext
        +            context,
        +        ListImageImportJobsResponse response) {
        +      super(context, response);
        +    }
        +
        +    private static ListImageImportJobsPage createEmptyPage() {
        +      return new ListImageImportJobsPage(null, null);
        +    }
        +
        +    @Override
        +    protected ListImageImportJobsPage createPage(
        +        PageContext
        +            context,
        +        ListImageImportJobsResponse response) {
        +      return new ListImageImportJobsPage(context, response);
        +    }
        +
        +    @Override
        +    public ApiFuture createPageAsync(
        +        PageContext
        +            context,
        +        ApiFuture futureResponse) {
        +      return super.createPageAsync(context, futureResponse);
        +    }
        +  }
        +
        +  public static class ListImageImportJobsFixedSizeCollection
        +      extends AbstractFixedSizeCollection<
        +          ListImageImportJobsRequest,
        +          ListImageImportJobsResponse,
        +          ImageImportJob,
        +          ListImageImportJobsPage,
        +          ListImageImportJobsFixedSizeCollection> {
        +
        +    private ListImageImportJobsFixedSizeCollection(
        +        List pages, int collectionSize) {
        +      super(pages, collectionSize);
        +    }
        +
        +    private static ListImageImportJobsFixedSizeCollection createEmptyCollection() {
        +      return new ListImageImportJobsFixedSizeCollection(null, 0);
        +    }
        +
        +    @Override
        +    protected ListImageImportJobsFixedSizeCollection createCollection(
        +        List pages, int collectionSize) {
        +      return new ListImageImportJobsFixedSizeCollection(pages, collectionSize);
        +    }
        +  }
        +
        +  public static class ListDiskMigrationJobsPagedResponse
        +      extends AbstractPagedListResponse<
        +          ListDiskMigrationJobsRequest,
        +          ListDiskMigrationJobsResponse,
        +          DiskMigrationJob,
        +          ListDiskMigrationJobsPage,
        +          ListDiskMigrationJobsFixedSizeCollection> {
        +
        +    public static ApiFuture createAsync(
        +        PageContext
        +            context,
        +        ApiFuture futureResponse) {
        +      ApiFuture futurePage =
        +          ListDiskMigrationJobsPage.createEmptyPage().createPageAsync(context, futureResponse);
        +      return ApiFutures.transform(
        +          futurePage,
        +          input -> new ListDiskMigrationJobsPagedResponse(input),
        +          MoreExecutors.directExecutor());
        +    }
        +
        +    private ListDiskMigrationJobsPagedResponse(ListDiskMigrationJobsPage page) {
        +      super(page, ListDiskMigrationJobsFixedSizeCollection.createEmptyCollection());
        +    }
        +  }
        +
        +  public static class ListDiskMigrationJobsPage
        +      extends AbstractPage<
        +          ListDiskMigrationJobsRequest,
        +          ListDiskMigrationJobsResponse,
        +          DiskMigrationJob,
        +          ListDiskMigrationJobsPage> {
        +
        +    private ListDiskMigrationJobsPage(
        +        PageContext
        +            context,
        +        ListDiskMigrationJobsResponse response) {
        +      super(context, response);
        +    }
        +
        +    private static ListDiskMigrationJobsPage createEmptyPage() {
        +      return new ListDiskMigrationJobsPage(null, null);
        +    }
        +
        +    @Override
        +    protected ListDiskMigrationJobsPage createPage(
        +        PageContext
        +            context,
        +        ListDiskMigrationJobsResponse response) {
        +      return new ListDiskMigrationJobsPage(context, response);
        +    }
        +
        +    @Override
        +    public ApiFuture createPageAsync(
        +        PageContext
        +            context,
        +        ApiFuture futureResponse) {
        +      return super.createPageAsync(context, futureResponse);
        +    }
        +  }
        +
        +  public static class ListDiskMigrationJobsFixedSizeCollection
        +      extends AbstractFixedSizeCollection<
        +          ListDiskMigrationJobsRequest,
        +          ListDiskMigrationJobsResponse,
        +          DiskMigrationJob,
        +          ListDiskMigrationJobsPage,
        +          ListDiskMigrationJobsFixedSizeCollection> {
        +
        +    private ListDiskMigrationJobsFixedSizeCollection(
        +        List pages, int collectionSize) {
        +      super(pages, collectionSize);
        +    }
        +
        +    private static ListDiskMigrationJobsFixedSizeCollection createEmptyCollection() {
        +      return new ListDiskMigrationJobsFixedSizeCollection(null, 0);
        +    }
        +
        +    @Override
        +    protected ListDiskMigrationJobsFixedSizeCollection createCollection(
        +        List pages, int collectionSize) {
        +      return new ListDiskMigrationJobsFixedSizeCollection(pages, collectionSize);
        +    }
        +  }
        +
           public static class ListLocationsPagedResponse
               extends AbstractPagedListResponse<
                   ListLocationsRequest,
        diff --git a/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/VmMigrationSettings.java b/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/VmMigrationSettings.java
        index 8ee5445f94d2..409ff6f90e09 100644
        --- a/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/VmMigrationSettings.java
        +++ b/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/VmMigrationSettings.java
        @@ -16,10 +16,14 @@
         
         package com.google.cloud.vmmigration.v1;
         
        +import static com.google.cloud.vmmigration.v1.VmMigrationClient.FetchStorageInventoryPagedResponse;
         import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListCloneJobsPagedResponse;
         import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListCutoverJobsPagedResponse;
         import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListDatacenterConnectorsPagedResponse;
        +import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListDiskMigrationJobsPagedResponse;
         import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListGroupsPagedResponse;
        +import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListImageImportJobsPagedResponse;
        +import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListImageImportsPagedResponse;
         import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListLocationsPagedResponse;
         import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListMigratingVmsPagedResponse;
         import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListReplicationCyclesPagedResponse;
        @@ -177,6 +181,15 @@ public UnaryCallSettings fetchInv
             return ((VmMigrationStubSettings) getStubSettings()).fetchInventorySettings();
           }
         
        +  /** Returns the object with the settings used for calls to fetchStorageInventory. */
        +  public PagedCallSettings<
        +          FetchStorageInventoryRequest,
        +          FetchStorageInventoryResponse,
        +          FetchStorageInventoryPagedResponse>
        +      fetchStorageInventorySettings() {
        +    return ((VmMigrationStubSettings) getStubSettings()).fetchStorageInventorySettings();
        +  }
        +
           /** Returns the object with the settings used for calls to listUtilizationReports. */
           public PagedCallSettings<
                   ListUtilizationReportsRequest,
        @@ -359,6 +372,17 @@ public UnaryCallSettings finalizeMigrationS
             return ((VmMigrationStubSettings) getStubSettings()).finalizeMigrationOperationSettings();
           }
         
        +  /** Returns the object with the settings used for calls to extendMigration. */
        +  public UnaryCallSettings extendMigrationSettings() {
        +    return ((VmMigrationStubSettings) getStubSettings()).extendMigrationSettings();
        +  }
        +
        +  /** Returns the object with the settings used for calls to extendMigration. */
        +  public OperationCallSettings
        +      extendMigrationOperationSettings() {
        +    return ((VmMigrationStubSettings) getStubSettings()).extendMigrationOperationSettings();
        +  }
        +
           /** Returns the object with the settings used for calls to createCloneJob. */
           public UnaryCallSettings createCloneJobSettings() {
             return ((VmMigrationStubSettings) getStubSettings()).createCloneJobSettings();
        @@ -554,6 +578,140 @@ public UnaryCallSettings deleteTargetProj
             return ((VmMigrationStubSettings) getStubSettings()).getReplicationCycleSettings();
           }
         
        +  /** Returns the object with the settings used for calls to listImageImports. */
        +  public PagedCallSettings<
        +          ListImageImportsRequest, ListImageImportsResponse, ListImageImportsPagedResponse>
        +      listImageImportsSettings() {
        +    return ((VmMigrationStubSettings) getStubSettings()).listImageImportsSettings();
        +  }
        +
        +  /** Returns the object with the settings used for calls to getImageImport. */
        +  public UnaryCallSettings getImageImportSettings() {
        +    return ((VmMigrationStubSettings) getStubSettings()).getImageImportSettings();
        +  }
        +
        +  /** Returns the object with the settings used for calls to createImageImport. */
        +  public UnaryCallSettings createImageImportSettings() {
        +    return ((VmMigrationStubSettings) getStubSettings()).createImageImportSettings();
        +  }
        +
        +  /** Returns the object with the settings used for calls to createImageImport. */
        +  public OperationCallSettings
        +      createImageImportOperationSettings() {
        +    return ((VmMigrationStubSettings) getStubSettings()).createImageImportOperationSettings();
        +  }
        +
        +  /** Returns the object with the settings used for calls to deleteImageImport. */
        +  public UnaryCallSettings deleteImageImportSettings() {
        +    return ((VmMigrationStubSettings) getStubSettings()).deleteImageImportSettings();
        +  }
        +
        +  /** Returns the object with the settings used for calls to deleteImageImport. */
        +  public OperationCallSettings
        +      deleteImageImportOperationSettings() {
        +    return ((VmMigrationStubSettings) getStubSettings()).deleteImageImportOperationSettings();
        +  }
        +
        +  /** Returns the object with the settings used for calls to listImageImportJobs. */
        +  public PagedCallSettings<
        +          ListImageImportJobsRequest, ListImageImportJobsResponse, ListImageImportJobsPagedResponse>
        +      listImageImportJobsSettings() {
        +    return ((VmMigrationStubSettings) getStubSettings()).listImageImportJobsSettings();
        +  }
        +
        +  /** Returns the object with the settings used for calls to getImageImportJob. */
        +  public UnaryCallSettings getImageImportJobSettings() {
        +    return ((VmMigrationStubSettings) getStubSettings()).getImageImportJobSettings();
        +  }
        +
        +  /** Returns the object with the settings used for calls to cancelImageImportJob. */
        +  public UnaryCallSettings cancelImageImportJobSettings() {
        +    return ((VmMigrationStubSettings) getStubSettings()).cancelImageImportJobSettings();
        +  }
        +
        +  /** Returns the object with the settings used for calls to cancelImageImportJob. */
        +  public OperationCallSettings<
        +          CancelImageImportJobRequest, CancelImageImportJobResponse, OperationMetadata>
        +      cancelImageImportJobOperationSettings() {
        +    return ((VmMigrationStubSettings) getStubSettings()).cancelImageImportJobOperationSettings();
        +  }
        +
        +  /** Returns the object with the settings used for calls to createDiskMigrationJob. */
        +  public UnaryCallSettings
        +      createDiskMigrationJobSettings() {
        +    return ((VmMigrationStubSettings) getStubSettings()).createDiskMigrationJobSettings();
        +  }
        +
        +  /** Returns the object with the settings used for calls to createDiskMigrationJob. */
        +  public OperationCallSettings
        +      createDiskMigrationJobOperationSettings() {
        +    return ((VmMigrationStubSettings) getStubSettings()).createDiskMigrationJobOperationSettings();
        +  }
        +
        +  /** Returns the object with the settings used for calls to listDiskMigrationJobs. */
        +  public PagedCallSettings<
        +          ListDiskMigrationJobsRequest,
        +          ListDiskMigrationJobsResponse,
        +          ListDiskMigrationJobsPagedResponse>
        +      listDiskMigrationJobsSettings() {
        +    return ((VmMigrationStubSettings) getStubSettings()).listDiskMigrationJobsSettings();
        +  }
        +
        +  /** Returns the object with the settings used for calls to getDiskMigrationJob. */
        +  public UnaryCallSettings
        +      getDiskMigrationJobSettings() {
        +    return ((VmMigrationStubSettings) getStubSettings()).getDiskMigrationJobSettings();
        +  }
        +
        +  /** Returns the object with the settings used for calls to updateDiskMigrationJob. */
        +  public UnaryCallSettings
        +      updateDiskMigrationJobSettings() {
        +    return ((VmMigrationStubSettings) getStubSettings()).updateDiskMigrationJobSettings();
        +  }
        +
        +  /** Returns the object with the settings used for calls to updateDiskMigrationJob. */
        +  public OperationCallSettings
        +      updateDiskMigrationJobOperationSettings() {
        +    return ((VmMigrationStubSettings) getStubSettings()).updateDiskMigrationJobOperationSettings();
        +  }
        +
        +  /** Returns the object with the settings used for calls to deleteDiskMigrationJob. */
        +  public UnaryCallSettings
        +      deleteDiskMigrationJobSettings() {
        +    return ((VmMigrationStubSettings) getStubSettings()).deleteDiskMigrationJobSettings();
        +  }
        +
        +  /** Returns the object with the settings used for calls to deleteDiskMigrationJob. */
        +  public OperationCallSettings
        +      deleteDiskMigrationJobOperationSettings() {
        +    return ((VmMigrationStubSettings) getStubSettings()).deleteDiskMigrationJobOperationSettings();
        +  }
        +
        +  /** Returns the object with the settings used for calls to runDiskMigrationJob. */
        +  public UnaryCallSettings runDiskMigrationJobSettings() {
        +    return ((VmMigrationStubSettings) getStubSettings()).runDiskMigrationJobSettings();
        +  }
        +
        +  /** Returns the object with the settings used for calls to runDiskMigrationJob. */
        +  public OperationCallSettings<
        +          RunDiskMigrationJobRequest, RunDiskMigrationJobResponse, OperationMetadata>
        +      runDiskMigrationJobOperationSettings() {
        +    return ((VmMigrationStubSettings) getStubSettings()).runDiskMigrationJobOperationSettings();
        +  }
        +
        +  /** Returns the object with the settings used for calls to cancelDiskMigrationJob. */
        +  public UnaryCallSettings
        +      cancelDiskMigrationJobSettings() {
        +    return ((VmMigrationStubSettings) getStubSettings()).cancelDiskMigrationJobSettings();
        +  }
        +
        +  /** Returns the object with the settings used for calls to cancelDiskMigrationJob. */
        +  public OperationCallSettings<
        +          CancelDiskMigrationJobRequest, CancelDiskMigrationJobResponse, OperationMetadata>
        +      cancelDiskMigrationJobOperationSettings() {
        +    return ((VmMigrationStubSettings) getStubSettings()).cancelDiskMigrationJobOperationSettings();
        +  }
        +
           /** Returns the object with the settings used for calls to listLocations. */
           public PagedCallSettings
               listLocationsSettings() {
        @@ -727,6 +885,15 @@ public UnaryCallSettings.Builder deleteSourceSet
               return getStubSettingsBuilder().fetchInventorySettings();
             }
         
        +    /** Returns the builder for the settings used for calls to fetchStorageInventory. */
        +    public PagedCallSettings.Builder<
        +            FetchStorageInventoryRequest,
        +            FetchStorageInventoryResponse,
        +            FetchStorageInventoryPagedResponse>
        +        fetchStorageInventorySettings() {
        +      return getStubSettingsBuilder().fetchStorageInventorySettings();
        +    }
        +
             /** Returns the builder for the settings used for calls to listUtilizationReports. */
             public PagedCallSettings.Builder<
                     ListUtilizationReportsRequest,
        @@ -917,6 +1084,18 @@ public UnaryCallSettings.Builder pauseMigratio
               return getStubSettingsBuilder().finalizeMigrationOperationSettings();
             }
         
        +    /** Returns the builder for the settings used for calls to extendMigration. */
        +    public UnaryCallSettings.Builder extendMigrationSettings() {
        +      return getStubSettingsBuilder().extendMigrationSettings();
        +    }
        +
        +    /** Returns the builder for the settings used for calls to extendMigration. */
        +    public OperationCallSettings.Builder<
        +            ExtendMigrationRequest, ExtendMigrationResponse, OperationMetadata>
        +        extendMigrationOperationSettings() {
        +      return getStubSettingsBuilder().extendMigrationOperationSettings();
        +    }
        +
             /** Returns the builder for the settings used for calls to createCloneJob. */
             public UnaryCallSettings.Builder createCloneJobSettings() {
               return getStubSettingsBuilder().createCloneJobSettings();
        @@ -1125,6 +1304,149 @@ public UnaryCallSettings.Builder deleteGroupSetti
               return getStubSettingsBuilder().getReplicationCycleSettings();
             }
         
        +    /** Returns the builder for the settings used for calls to listImageImports. */
        +    public PagedCallSettings.Builder<
        +            ListImageImportsRequest, ListImageImportsResponse, ListImageImportsPagedResponse>
        +        listImageImportsSettings() {
        +      return getStubSettingsBuilder().listImageImportsSettings();
        +    }
        +
        +    /** Returns the builder for the settings used for calls to getImageImport. */
        +    public UnaryCallSettings.Builder getImageImportSettings() {
        +      return getStubSettingsBuilder().getImageImportSettings();
        +    }
        +
        +    /** Returns the builder for the settings used for calls to createImageImport. */
        +    public UnaryCallSettings.Builder
        +        createImageImportSettings() {
        +      return getStubSettingsBuilder().createImageImportSettings();
        +    }
        +
        +    /** Returns the builder for the settings used for calls to createImageImport. */
        +    public OperationCallSettings.Builder
        +        createImageImportOperationSettings() {
        +      return getStubSettingsBuilder().createImageImportOperationSettings();
        +    }
        +
        +    /** Returns the builder for the settings used for calls to deleteImageImport. */
        +    public UnaryCallSettings.Builder
        +        deleteImageImportSettings() {
        +      return getStubSettingsBuilder().deleteImageImportSettings();
        +    }
        +
        +    /** Returns the builder for the settings used for calls to deleteImageImport. */
        +    public OperationCallSettings.Builder
        +        deleteImageImportOperationSettings() {
        +      return getStubSettingsBuilder().deleteImageImportOperationSettings();
        +    }
        +
        +    /** Returns the builder for the settings used for calls to listImageImportJobs. */
        +    public PagedCallSettings.Builder<
        +            ListImageImportJobsRequest,
        +            ListImageImportJobsResponse,
        +            ListImageImportJobsPagedResponse>
        +        listImageImportJobsSettings() {
        +      return getStubSettingsBuilder().listImageImportJobsSettings();
        +    }
        +
        +    /** Returns the builder for the settings used for calls to getImageImportJob. */
        +    public UnaryCallSettings.Builder
        +        getImageImportJobSettings() {
        +      return getStubSettingsBuilder().getImageImportJobSettings();
        +    }
        +
        +    /** Returns the builder for the settings used for calls to cancelImageImportJob. */
        +    public UnaryCallSettings.Builder
        +        cancelImageImportJobSettings() {
        +      return getStubSettingsBuilder().cancelImageImportJobSettings();
        +    }
        +
        +    /** Returns the builder for the settings used for calls to cancelImageImportJob. */
        +    public OperationCallSettings.Builder<
        +            CancelImageImportJobRequest, CancelImageImportJobResponse, OperationMetadata>
        +        cancelImageImportJobOperationSettings() {
        +      return getStubSettingsBuilder().cancelImageImportJobOperationSettings();
        +    }
        +
        +    /** Returns the builder for the settings used for calls to createDiskMigrationJob. */
        +    public UnaryCallSettings.Builder
        +        createDiskMigrationJobSettings() {
        +      return getStubSettingsBuilder().createDiskMigrationJobSettings();
        +    }
        +
        +    /** Returns the builder for the settings used for calls to createDiskMigrationJob. */
        +    public OperationCallSettings.Builder<
        +            CreateDiskMigrationJobRequest, DiskMigrationJob, OperationMetadata>
        +        createDiskMigrationJobOperationSettings() {
        +      return getStubSettingsBuilder().createDiskMigrationJobOperationSettings();
        +    }
        +
        +    /** Returns the builder for the settings used for calls to listDiskMigrationJobs. */
        +    public PagedCallSettings.Builder<
        +            ListDiskMigrationJobsRequest,
        +            ListDiskMigrationJobsResponse,
        +            ListDiskMigrationJobsPagedResponse>
        +        listDiskMigrationJobsSettings() {
        +      return getStubSettingsBuilder().listDiskMigrationJobsSettings();
        +    }
        +
        +    /** Returns the builder for the settings used for calls to getDiskMigrationJob. */
        +    public UnaryCallSettings.Builder
        +        getDiskMigrationJobSettings() {
        +      return getStubSettingsBuilder().getDiskMigrationJobSettings();
        +    }
        +
        +    /** Returns the builder for the settings used for calls to updateDiskMigrationJob. */
        +    public UnaryCallSettings.Builder
        +        updateDiskMigrationJobSettings() {
        +      return getStubSettingsBuilder().updateDiskMigrationJobSettings();
        +    }
        +
        +    /** Returns the builder for the settings used for calls to updateDiskMigrationJob. */
        +    public OperationCallSettings.Builder<
        +            UpdateDiskMigrationJobRequest, DiskMigrationJob, OperationMetadata>
        +        updateDiskMigrationJobOperationSettings() {
        +      return getStubSettingsBuilder().updateDiskMigrationJobOperationSettings();
        +    }
        +
        +    /** Returns the builder for the settings used for calls to deleteDiskMigrationJob. */
        +    public UnaryCallSettings.Builder
        +        deleteDiskMigrationJobSettings() {
        +      return getStubSettingsBuilder().deleteDiskMigrationJobSettings();
        +    }
        +
        +    /** Returns the builder for the settings used for calls to deleteDiskMigrationJob. */
        +    public OperationCallSettings.Builder
        +        deleteDiskMigrationJobOperationSettings() {
        +      return getStubSettingsBuilder().deleteDiskMigrationJobOperationSettings();
        +    }
        +
        +    /** Returns the builder for the settings used for calls to runDiskMigrationJob. */
        +    public UnaryCallSettings.Builder
        +        runDiskMigrationJobSettings() {
        +      return getStubSettingsBuilder().runDiskMigrationJobSettings();
        +    }
        +
        +    /** Returns the builder for the settings used for calls to runDiskMigrationJob. */
        +    public OperationCallSettings.Builder<
        +            RunDiskMigrationJobRequest, RunDiskMigrationJobResponse, OperationMetadata>
        +        runDiskMigrationJobOperationSettings() {
        +      return getStubSettingsBuilder().runDiskMigrationJobOperationSettings();
        +    }
        +
        +    /** Returns the builder for the settings used for calls to cancelDiskMigrationJob. */
        +    public UnaryCallSettings.Builder
        +        cancelDiskMigrationJobSettings() {
        +      return getStubSettingsBuilder().cancelDiskMigrationJobSettings();
        +    }
        +
        +    /** Returns the builder for the settings used for calls to cancelDiskMigrationJob. */
        +    public OperationCallSettings.Builder<
        +            CancelDiskMigrationJobRequest, CancelDiskMigrationJobResponse, OperationMetadata>
        +        cancelDiskMigrationJobOperationSettings() {
        +      return getStubSettingsBuilder().cancelDiskMigrationJobOperationSettings();
        +    }
        +
             /** Returns the builder for the settings used for calls to listLocations. */
             public PagedCallSettings.Builder<
                     ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
        diff --git a/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/gapic_metadata.json b/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/gapic_metadata.json
        index 5e79f2da8259..90036414b2c1 100644
        --- a/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/gapic_metadata.json
        +++ b/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/gapic_metadata.json
        @@ -19,6 +19,12 @@
                     "CancelCutoverJob": {
                       "methods": ["cancelCutoverJobAsync", "cancelCutoverJobAsync", "cancelCutoverJobAsync", "cancelCutoverJobOperationCallable", "cancelCutoverJobCallable"]
                     },
        +            "CancelDiskMigrationJob": {
        +              "methods": ["cancelDiskMigrationJobAsync", "cancelDiskMigrationJobOperationCallable", "cancelDiskMigrationJobCallable"]
        +            },
        +            "CancelImageImportJob": {
        +              "methods": ["cancelImageImportJobAsync", "cancelImageImportJobAsync", "cancelImageImportJobAsync", "cancelImageImportJobOperationCallable", "cancelImageImportJobCallable"]
        +            },
                     "CreateCloneJob": {
                       "methods": ["createCloneJobAsync", "createCloneJobAsync", "createCloneJobAsync", "createCloneJobOperationCallable", "createCloneJobCallable"]
                     },
        @@ -28,9 +34,15 @@
                     "CreateDatacenterConnector": {
                       "methods": ["createDatacenterConnectorAsync", "createDatacenterConnectorAsync", "createDatacenterConnectorAsync", "createDatacenterConnectorOperationCallable", "createDatacenterConnectorCallable"]
                     },
        +            "CreateDiskMigrationJob": {
        +              "methods": ["createDiskMigrationJobAsync", "createDiskMigrationJobAsync", "createDiskMigrationJobAsync", "createDiskMigrationJobOperationCallable", "createDiskMigrationJobCallable"]
        +            },
                     "CreateGroup": {
                       "methods": ["createGroupAsync", "createGroupAsync", "createGroupAsync", "createGroupOperationCallable", "createGroupCallable"]
                     },
        +            "CreateImageImport": {
        +              "methods": ["createImageImportAsync", "createImageImportAsync", "createImageImportAsync", "createImageImportOperationCallable", "createImageImportCallable"]
        +            },
                     "CreateMigratingVm": {
                       "methods": ["createMigratingVmAsync", "createMigratingVmAsync", "createMigratingVmAsync", "createMigratingVmOperationCallable", "createMigratingVmCallable"]
                     },
        @@ -46,9 +58,15 @@
                     "DeleteDatacenterConnector": {
                       "methods": ["deleteDatacenterConnectorAsync", "deleteDatacenterConnectorAsync", "deleteDatacenterConnectorAsync", "deleteDatacenterConnectorOperationCallable", "deleteDatacenterConnectorCallable"]
                     },
        +            "DeleteDiskMigrationJob": {
        +              "methods": ["deleteDiskMigrationJobAsync", "deleteDiskMigrationJobAsync", "deleteDiskMigrationJobAsync", "deleteDiskMigrationJobOperationCallable", "deleteDiskMigrationJobCallable"]
        +            },
                     "DeleteGroup": {
                       "methods": ["deleteGroupAsync", "deleteGroupAsync", "deleteGroupAsync", "deleteGroupOperationCallable", "deleteGroupCallable"]
                     },
        +            "DeleteImageImport": {
        +              "methods": ["deleteImageImportAsync", "deleteImageImportAsync", "deleteImageImportAsync", "deleteImageImportOperationCallable", "deleteImageImportCallable"]
        +            },
                     "DeleteMigratingVm": {
                       "methods": ["deleteMigratingVmAsync", "deleteMigratingVmAsync", "deleteMigratingVmAsync", "deleteMigratingVmOperationCallable", "deleteMigratingVmCallable"]
                     },
        @@ -61,9 +79,15 @@
                     "DeleteUtilizationReport": {
                       "methods": ["deleteUtilizationReportAsync", "deleteUtilizationReportAsync", "deleteUtilizationReportAsync", "deleteUtilizationReportOperationCallable", "deleteUtilizationReportCallable"]
                     },
        +            "ExtendMigration": {
        +              "methods": ["extendMigrationAsync", "extendMigrationOperationCallable", "extendMigrationCallable"]
        +            },
                     "FetchInventory": {
                       "methods": ["fetchInventory", "fetchInventory", "fetchInventory", "fetchInventoryCallable"]
                     },
        +            "FetchStorageInventory": {
        +              "methods": ["fetchStorageInventory", "fetchStorageInventory", "fetchStorageInventory", "fetchStorageInventoryPagedCallable", "fetchStorageInventoryCallable"]
        +            },
                     "FinalizeMigration": {
                       "methods": ["finalizeMigrationAsync", "finalizeMigrationAsync", "finalizeMigrationAsync", "finalizeMigrationOperationCallable", "finalizeMigrationCallable"]
                     },
        @@ -76,9 +100,18 @@
                     "GetDatacenterConnector": {
                       "methods": ["getDatacenterConnector", "getDatacenterConnector", "getDatacenterConnector", "getDatacenterConnectorCallable"]
                     },
        +            "GetDiskMigrationJob": {
        +              "methods": ["getDiskMigrationJob", "getDiskMigrationJob", "getDiskMigrationJob", "getDiskMigrationJobCallable"]
        +            },
                     "GetGroup": {
                       "methods": ["getGroup", "getGroup", "getGroup", "getGroupCallable"]
                     },
        +            "GetImageImport": {
        +              "methods": ["getImageImport", "getImageImport", "getImageImport", "getImageImportCallable"]
        +            },
        +            "GetImageImportJob": {
        +              "methods": ["getImageImportJob", "getImageImportJob", "getImageImportJob", "getImageImportJobCallable"]
        +            },
                     "GetLocation": {
                       "methods": ["getLocation", "getLocationCallable"]
                     },
        @@ -106,9 +139,18 @@
                     "ListDatacenterConnectors": {
                       "methods": ["listDatacenterConnectors", "listDatacenterConnectors", "listDatacenterConnectors", "listDatacenterConnectorsPagedCallable", "listDatacenterConnectorsCallable"]
                     },
        +            "ListDiskMigrationJobs": {
        +              "methods": ["listDiskMigrationJobs", "listDiskMigrationJobs", "listDiskMigrationJobs", "listDiskMigrationJobsPagedCallable", "listDiskMigrationJobsCallable"]
        +            },
                     "ListGroups": {
                       "methods": ["listGroups", "listGroups", "listGroups", "listGroupsPagedCallable", "listGroupsCallable"]
                     },
        +            "ListImageImportJobs": {
        +              "methods": ["listImageImportJobs", "listImageImportJobs", "listImageImportJobs", "listImageImportJobsPagedCallable", "listImageImportJobsCallable"]
        +            },
        +            "ListImageImports": {
        +              "methods": ["listImageImports", "listImageImports", "listImageImports", "listImageImportsPagedCallable", "listImageImportsCallable"]
        +            },
                     "ListLocations": {
                       "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"]
                     },
        @@ -136,9 +178,15 @@
                     "ResumeMigration": {
                       "methods": ["resumeMigrationAsync", "resumeMigrationOperationCallable", "resumeMigrationCallable"]
                     },
        +            "RunDiskMigrationJob": {
        +              "methods": ["runDiskMigrationJobAsync", "runDiskMigrationJobAsync", "runDiskMigrationJobAsync", "runDiskMigrationJobOperationCallable", "runDiskMigrationJobCallable"]
        +            },
                     "StartMigration": {
                       "methods": ["startMigrationAsync", "startMigrationAsync", "startMigrationAsync", "startMigrationOperationCallable", "startMigrationCallable"]
                     },
        +            "UpdateDiskMigrationJob": {
        +              "methods": ["updateDiskMigrationJobAsync", "updateDiskMigrationJobAsync", "updateDiskMigrationJobOperationCallable", "updateDiskMigrationJobCallable"]
        +            },
                     "UpdateGroup": {
                       "methods": ["updateGroupAsync", "updateGroupAsync", "updateGroupOperationCallable", "updateGroupCallable"]
                     },
        diff --git a/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/stub/GrpcVmMigrationStub.java b/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/stub/GrpcVmMigrationStub.java
        index 569f8a2a64e9..0f4115433291 100644
        --- a/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/stub/GrpcVmMigrationStub.java
        +++ b/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/stub/GrpcVmMigrationStub.java
        @@ -16,10 +16,14 @@
         
         package com.google.cloud.vmmigration.v1.stub;
         
        +import static com.google.cloud.vmmigration.v1.VmMigrationClient.FetchStorageInventoryPagedResponse;
         import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListCloneJobsPagedResponse;
         import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListCutoverJobsPagedResponse;
         import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListDatacenterConnectorsPagedResponse;
        +import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListDiskMigrationJobsPagedResponse;
         import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListGroupsPagedResponse;
        +import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListImageImportJobsPagedResponse;
        +import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListImageImportsPagedResponse;
         import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListLocationsPagedResponse;
         import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListMigratingVmsPagedResponse;
         import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListReplicationCyclesPagedResponse;
        @@ -45,11 +49,17 @@
         import com.google.cloud.vmmigration.v1.CancelCloneJobResponse;
         import com.google.cloud.vmmigration.v1.CancelCutoverJobRequest;
         import com.google.cloud.vmmigration.v1.CancelCutoverJobResponse;
        +import com.google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest;
        +import com.google.cloud.vmmigration.v1.CancelDiskMigrationJobResponse;
        +import com.google.cloud.vmmigration.v1.CancelImageImportJobRequest;
        +import com.google.cloud.vmmigration.v1.CancelImageImportJobResponse;
         import com.google.cloud.vmmigration.v1.CloneJob;
         import com.google.cloud.vmmigration.v1.CreateCloneJobRequest;
         import com.google.cloud.vmmigration.v1.CreateCutoverJobRequest;
         import com.google.cloud.vmmigration.v1.CreateDatacenterConnectorRequest;
        +import com.google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest;
         import com.google.cloud.vmmigration.v1.CreateGroupRequest;
        +import com.google.cloud.vmmigration.v1.CreateImageImportRequest;
         import com.google.cloud.vmmigration.v1.CreateMigratingVmRequest;
         import com.google.cloud.vmmigration.v1.CreateSourceRequest;
         import com.google.cloud.vmmigration.v1.CreateTargetProjectRequest;
        @@ -57,33 +67,51 @@
         import com.google.cloud.vmmigration.v1.CutoverJob;
         import com.google.cloud.vmmigration.v1.DatacenterConnector;
         import com.google.cloud.vmmigration.v1.DeleteDatacenterConnectorRequest;
        +import com.google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest;
         import com.google.cloud.vmmigration.v1.DeleteGroupRequest;
        +import com.google.cloud.vmmigration.v1.DeleteImageImportRequest;
         import com.google.cloud.vmmigration.v1.DeleteMigratingVmRequest;
         import com.google.cloud.vmmigration.v1.DeleteSourceRequest;
         import com.google.cloud.vmmigration.v1.DeleteTargetProjectRequest;
         import com.google.cloud.vmmigration.v1.DeleteUtilizationReportRequest;
        +import com.google.cloud.vmmigration.v1.DiskMigrationJob;
        +import com.google.cloud.vmmigration.v1.ExtendMigrationRequest;
        +import com.google.cloud.vmmigration.v1.ExtendMigrationResponse;
         import com.google.cloud.vmmigration.v1.FetchInventoryRequest;
         import com.google.cloud.vmmigration.v1.FetchInventoryResponse;
        +import com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest;
        +import com.google.cloud.vmmigration.v1.FetchStorageInventoryResponse;
         import com.google.cloud.vmmigration.v1.FinalizeMigrationRequest;
         import com.google.cloud.vmmigration.v1.FinalizeMigrationResponse;
         import com.google.cloud.vmmigration.v1.GetCloneJobRequest;
         import com.google.cloud.vmmigration.v1.GetCutoverJobRequest;
         import com.google.cloud.vmmigration.v1.GetDatacenterConnectorRequest;
        +import com.google.cloud.vmmigration.v1.GetDiskMigrationJobRequest;
         import com.google.cloud.vmmigration.v1.GetGroupRequest;
        +import com.google.cloud.vmmigration.v1.GetImageImportJobRequest;
        +import com.google.cloud.vmmigration.v1.GetImageImportRequest;
         import com.google.cloud.vmmigration.v1.GetMigratingVmRequest;
         import com.google.cloud.vmmigration.v1.GetReplicationCycleRequest;
         import com.google.cloud.vmmigration.v1.GetSourceRequest;
         import com.google.cloud.vmmigration.v1.GetTargetProjectRequest;
         import com.google.cloud.vmmigration.v1.GetUtilizationReportRequest;
         import com.google.cloud.vmmigration.v1.Group;
        +import com.google.cloud.vmmigration.v1.ImageImport;
        +import com.google.cloud.vmmigration.v1.ImageImportJob;
         import com.google.cloud.vmmigration.v1.ListCloneJobsRequest;
         import com.google.cloud.vmmigration.v1.ListCloneJobsResponse;
         import com.google.cloud.vmmigration.v1.ListCutoverJobsRequest;
         import com.google.cloud.vmmigration.v1.ListCutoverJobsResponse;
         import com.google.cloud.vmmigration.v1.ListDatacenterConnectorsRequest;
         import com.google.cloud.vmmigration.v1.ListDatacenterConnectorsResponse;
        +import com.google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest;
        +import com.google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse;
         import com.google.cloud.vmmigration.v1.ListGroupsRequest;
         import com.google.cloud.vmmigration.v1.ListGroupsResponse;
        +import com.google.cloud.vmmigration.v1.ListImageImportJobsRequest;
        +import com.google.cloud.vmmigration.v1.ListImageImportJobsResponse;
        +import com.google.cloud.vmmigration.v1.ListImageImportsRequest;
        +import com.google.cloud.vmmigration.v1.ListImageImportsResponse;
         import com.google.cloud.vmmigration.v1.ListMigratingVmsRequest;
         import com.google.cloud.vmmigration.v1.ListMigratingVmsResponse;
         import com.google.cloud.vmmigration.v1.ListReplicationCyclesRequest;
        @@ -103,10 +131,13 @@
         import com.google.cloud.vmmigration.v1.ReplicationCycle;
         import com.google.cloud.vmmigration.v1.ResumeMigrationRequest;
         import com.google.cloud.vmmigration.v1.ResumeMigrationResponse;
        +import com.google.cloud.vmmigration.v1.RunDiskMigrationJobRequest;
        +import com.google.cloud.vmmigration.v1.RunDiskMigrationJobResponse;
         import com.google.cloud.vmmigration.v1.Source;
         import com.google.cloud.vmmigration.v1.StartMigrationRequest;
         import com.google.cloud.vmmigration.v1.StartMigrationResponse;
         import com.google.cloud.vmmigration.v1.TargetProject;
        +import com.google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest;
         import com.google.cloud.vmmigration.v1.UpdateGroupRequest;
         import com.google.cloud.vmmigration.v1.UpdateMigratingVmRequest;
         import com.google.cloud.vmmigration.v1.UpdateSourceRequest;
        @@ -193,6 +224,18 @@ public class GrpcVmMigrationStub extends VmMigrationStub {
                       .setSampledToLocalTracing(true)
                       .build();
         
        +  private static final MethodDescriptor
        +      fetchStorageInventoryMethodDescriptor =
        +          MethodDescriptor.newBuilder()
        +              .setType(MethodDescriptor.MethodType.UNARY)
        +              .setFullMethodName("google.cloud.vmmigration.v1.VmMigration/FetchStorageInventory")
        +              .setRequestMarshaller(
        +                  ProtoUtils.marshaller(FetchStorageInventoryRequest.getDefaultInstance()))
        +              .setResponseMarshaller(
        +                  ProtoUtils.marshaller(FetchStorageInventoryResponse.getDefaultInstance()))
        +              .setSampledToLocalTracing(true)
        +              .build();
        +
           private static final MethodDescriptor<
                   ListUtilizationReportsRequest, ListUtilizationReportsResponse>
               listUtilizationReportsMethodDescriptor =
        @@ -401,6 +444,17 @@ public class GrpcVmMigrationStub extends VmMigrationStub {
                       .setSampledToLocalTracing(true)
                       .build();
         
        +  private static final MethodDescriptor
        +      extendMigrationMethodDescriptor =
        +          MethodDescriptor.newBuilder()
        +              .setType(MethodDescriptor.MethodType.UNARY)
        +              .setFullMethodName("google.cloud.vmmigration.v1.VmMigration/ExtendMigration")
        +              .setRequestMarshaller(
        +                  ProtoUtils.marshaller(ExtendMigrationRequest.getDefaultInstance()))
        +              .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
        +              .setSampledToLocalTracing(true)
        +              .build();
        +
           private static final MethodDescriptor
               createCloneJobMethodDescriptor =
                   MethodDescriptor.newBuilder()
        @@ -636,6 +690,163 @@ public class GrpcVmMigrationStub extends VmMigrationStub {
                       .setSampledToLocalTracing(true)
                       .build();
         
        +  private static final MethodDescriptor
        +      listImageImportsMethodDescriptor =
        +          MethodDescriptor.newBuilder()
        +              .setType(MethodDescriptor.MethodType.UNARY)
        +              .setFullMethodName("google.cloud.vmmigration.v1.VmMigration/ListImageImports")
        +              .setRequestMarshaller(
        +                  ProtoUtils.marshaller(ListImageImportsRequest.getDefaultInstance()))
        +              .setResponseMarshaller(
        +                  ProtoUtils.marshaller(ListImageImportsResponse.getDefaultInstance()))
        +              .setSampledToLocalTracing(true)
        +              .build();
        +
        +  private static final MethodDescriptor
        +      getImageImportMethodDescriptor =
        +          MethodDescriptor.newBuilder()
        +              .setType(MethodDescriptor.MethodType.UNARY)
        +              .setFullMethodName("google.cloud.vmmigration.v1.VmMigration/GetImageImport")
        +              .setRequestMarshaller(
        +                  ProtoUtils.marshaller(GetImageImportRequest.getDefaultInstance()))
        +              .setResponseMarshaller(ProtoUtils.marshaller(ImageImport.getDefaultInstance()))
        +              .setSampledToLocalTracing(true)
        +              .build();
        +
        +  private static final MethodDescriptor
        +      createImageImportMethodDescriptor =
        +          MethodDescriptor.newBuilder()
        +              .setType(MethodDescriptor.MethodType.UNARY)
        +              .setFullMethodName("google.cloud.vmmigration.v1.VmMigration/CreateImageImport")
        +              .setRequestMarshaller(
        +                  ProtoUtils.marshaller(CreateImageImportRequest.getDefaultInstance()))
        +              .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
        +              .setSampledToLocalTracing(true)
        +              .build();
        +
        +  private static final MethodDescriptor
        +      deleteImageImportMethodDescriptor =
        +          MethodDescriptor.newBuilder()
        +              .setType(MethodDescriptor.MethodType.UNARY)
        +              .setFullMethodName("google.cloud.vmmigration.v1.VmMigration/DeleteImageImport")
        +              .setRequestMarshaller(
        +                  ProtoUtils.marshaller(DeleteImageImportRequest.getDefaultInstance()))
        +              .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
        +              .setSampledToLocalTracing(true)
        +              .build();
        +
        +  private static final MethodDescriptor
        +      listImageImportJobsMethodDescriptor =
        +          MethodDescriptor.newBuilder()
        +              .setType(MethodDescriptor.MethodType.UNARY)
        +              .setFullMethodName("google.cloud.vmmigration.v1.VmMigration/ListImageImportJobs")
        +              .setRequestMarshaller(
        +                  ProtoUtils.marshaller(ListImageImportJobsRequest.getDefaultInstance()))
        +              .setResponseMarshaller(
        +                  ProtoUtils.marshaller(ListImageImportJobsResponse.getDefaultInstance()))
        +              .setSampledToLocalTracing(true)
        +              .build();
        +
        +  private static final MethodDescriptor
        +      getImageImportJobMethodDescriptor =
        +          MethodDescriptor.newBuilder()
        +              .setType(MethodDescriptor.MethodType.UNARY)
        +              .setFullMethodName("google.cloud.vmmigration.v1.VmMigration/GetImageImportJob")
        +              .setRequestMarshaller(
        +                  ProtoUtils.marshaller(GetImageImportJobRequest.getDefaultInstance()))
        +              .setResponseMarshaller(ProtoUtils.marshaller(ImageImportJob.getDefaultInstance()))
        +              .setSampledToLocalTracing(true)
        +              .build();
        +
        +  private static final MethodDescriptor
        +      cancelImageImportJobMethodDescriptor =
        +          MethodDescriptor.newBuilder()
        +              .setType(MethodDescriptor.MethodType.UNARY)
        +              .setFullMethodName("google.cloud.vmmigration.v1.VmMigration/CancelImageImportJob")
        +              .setRequestMarshaller(
        +                  ProtoUtils.marshaller(CancelImageImportJobRequest.getDefaultInstance()))
        +              .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
        +              .setSampledToLocalTracing(true)
        +              .build();
        +
        +  private static final MethodDescriptor
        +      createDiskMigrationJobMethodDescriptor =
        +          MethodDescriptor.newBuilder()
        +              .setType(MethodDescriptor.MethodType.UNARY)
        +              .setFullMethodName("google.cloud.vmmigration.v1.VmMigration/CreateDiskMigrationJob")
        +              .setRequestMarshaller(
        +                  ProtoUtils.marshaller(CreateDiskMigrationJobRequest.getDefaultInstance()))
        +              .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
        +              .setSampledToLocalTracing(true)
        +              .build();
        +
        +  private static final MethodDescriptor
        +      listDiskMigrationJobsMethodDescriptor =
        +          MethodDescriptor.newBuilder()
        +              .setType(MethodDescriptor.MethodType.UNARY)
        +              .setFullMethodName("google.cloud.vmmigration.v1.VmMigration/ListDiskMigrationJobs")
        +              .setRequestMarshaller(
        +                  ProtoUtils.marshaller(ListDiskMigrationJobsRequest.getDefaultInstance()))
        +              .setResponseMarshaller(
        +                  ProtoUtils.marshaller(ListDiskMigrationJobsResponse.getDefaultInstance()))
        +              .setSampledToLocalTracing(true)
        +              .build();
        +
        +  private static final MethodDescriptor
        +      getDiskMigrationJobMethodDescriptor =
        +          MethodDescriptor.newBuilder()
        +              .setType(MethodDescriptor.MethodType.UNARY)
        +              .setFullMethodName("google.cloud.vmmigration.v1.VmMigration/GetDiskMigrationJob")
        +              .setRequestMarshaller(
        +                  ProtoUtils.marshaller(GetDiskMigrationJobRequest.getDefaultInstance()))
        +              .setResponseMarshaller(ProtoUtils.marshaller(DiskMigrationJob.getDefaultInstance()))
        +              .setSampledToLocalTracing(true)
        +              .build();
        +
        +  private static final MethodDescriptor
        +      updateDiskMigrationJobMethodDescriptor =
        +          MethodDescriptor.newBuilder()
        +              .setType(MethodDescriptor.MethodType.UNARY)
        +              .setFullMethodName("google.cloud.vmmigration.v1.VmMigration/UpdateDiskMigrationJob")
        +              .setRequestMarshaller(
        +                  ProtoUtils.marshaller(UpdateDiskMigrationJobRequest.getDefaultInstance()))
        +              .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
        +              .setSampledToLocalTracing(true)
        +              .build();
        +
        +  private static final MethodDescriptor
        +      deleteDiskMigrationJobMethodDescriptor =
        +          MethodDescriptor.newBuilder()
        +              .setType(MethodDescriptor.MethodType.UNARY)
        +              .setFullMethodName("google.cloud.vmmigration.v1.VmMigration/DeleteDiskMigrationJob")
        +              .setRequestMarshaller(
        +                  ProtoUtils.marshaller(DeleteDiskMigrationJobRequest.getDefaultInstance()))
        +              .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
        +              .setSampledToLocalTracing(true)
        +              .build();
        +
        +  private static final MethodDescriptor
        +      runDiskMigrationJobMethodDescriptor =
        +          MethodDescriptor.newBuilder()
        +              .setType(MethodDescriptor.MethodType.UNARY)
        +              .setFullMethodName("google.cloud.vmmigration.v1.VmMigration/RunDiskMigrationJob")
        +              .setRequestMarshaller(
        +                  ProtoUtils.marshaller(RunDiskMigrationJobRequest.getDefaultInstance()))
        +              .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
        +              .setSampledToLocalTracing(true)
        +              .build();
        +
        +  private static final MethodDescriptor
        +      cancelDiskMigrationJobMethodDescriptor =
        +          MethodDescriptor.newBuilder()
        +              .setType(MethodDescriptor.MethodType.UNARY)
        +              .setFullMethodName("google.cloud.vmmigration.v1.VmMigration/CancelDiskMigrationJob")
        +              .setRequestMarshaller(
        +                  ProtoUtils.marshaller(CancelDiskMigrationJobRequest.getDefaultInstance()))
        +              .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
        +              .setSampledToLocalTracing(true)
        +              .build();
        +
           private static final MethodDescriptor
               listLocationsMethodDescriptor =
                   MethodDescriptor.newBuilder()
        @@ -671,6 +882,10 @@ public class GrpcVmMigrationStub extends VmMigrationStub {
           private final OperationCallable
               deleteSourceOperationCallable;
           private final UnaryCallable fetchInventoryCallable;
        +  private final UnaryCallable
        +      fetchStorageInventoryCallable;
        +  private final UnaryCallable
        +      fetchStorageInventoryPagedCallable;
           private final UnaryCallable
               listUtilizationReportsCallable;
           private final UnaryCallable
        @@ -734,6 +949,10 @@ public class GrpcVmMigrationStub extends VmMigrationStub {
           private final OperationCallable<
                   FinalizeMigrationRequest, FinalizeMigrationResponse, OperationMetadata>
               finalizeMigrationOperationCallable;
        +  private final UnaryCallable extendMigrationCallable;
        +  private final OperationCallable<
        +          ExtendMigrationRequest, ExtendMigrationResponse, OperationMetadata>
        +      extendMigrationOperationCallable;
           private final UnaryCallable createCloneJobCallable;
           private final OperationCallable
               createCloneJobOperationCallable;
        @@ -796,6 +1015,55 @@ public class GrpcVmMigrationStub extends VmMigrationStub {
               listReplicationCyclesPagedCallable;
           private final UnaryCallable
               getReplicationCycleCallable;
        +  private final UnaryCallable
        +      listImageImportsCallable;
        +  private final UnaryCallable
        +      listImageImportsPagedCallable;
        +  private final UnaryCallable getImageImportCallable;
        +  private final UnaryCallable createImageImportCallable;
        +  private final OperationCallable
        +      createImageImportOperationCallable;
        +  private final UnaryCallable deleteImageImportCallable;
        +  private final OperationCallable
        +      deleteImageImportOperationCallable;
        +  private final UnaryCallable
        +      listImageImportJobsCallable;
        +  private final UnaryCallable
        +      listImageImportJobsPagedCallable;
        +  private final UnaryCallable getImageImportJobCallable;
        +  private final UnaryCallable cancelImageImportJobCallable;
        +  private final OperationCallable<
        +          CancelImageImportJobRequest, CancelImageImportJobResponse, OperationMetadata>
        +      cancelImageImportJobOperationCallable;
        +  private final UnaryCallable
        +      createDiskMigrationJobCallable;
        +  private final OperationCallable<
        +          CreateDiskMigrationJobRequest, DiskMigrationJob, OperationMetadata>
        +      createDiskMigrationJobOperationCallable;
        +  private final UnaryCallable
        +      listDiskMigrationJobsCallable;
        +  private final UnaryCallable
        +      listDiskMigrationJobsPagedCallable;
        +  private final UnaryCallable
        +      getDiskMigrationJobCallable;
        +  private final UnaryCallable
        +      updateDiskMigrationJobCallable;
        +  private final OperationCallable<
        +          UpdateDiskMigrationJobRequest, DiskMigrationJob, OperationMetadata>
        +      updateDiskMigrationJobOperationCallable;
        +  private final UnaryCallable
        +      deleteDiskMigrationJobCallable;
        +  private final OperationCallable
        +      deleteDiskMigrationJobOperationCallable;
        +  private final UnaryCallable runDiskMigrationJobCallable;
        +  private final OperationCallable<
        +          RunDiskMigrationJobRequest, RunDiskMigrationJobResponse, OperationMetadata>
        +      runDiskMigrationJobOperationCallable;
        +  private final UnaryCallable
        +      cancelDiskMigrationJobCallable;
        +  private final OperationCallable<
        +          CancelDiskMigrationJobRequest, CancelDiskMigrationJobResponse, OperationMetadata>
        +      cancelDiskMigrationJobOperationCallable;
           private final UnaryCallable listLocationsCallable;
           private final UnaryCallable
               listLocationsPagedCallable;
        @@ -904,6 +1172,18 @@ protected GrpcVmMigrationStub(
                               return builder.build();
                             })
                         .build();
        +    GrpcCallSettings
        +        fetchStorageInventoryTransportSettings =
        +            GrpcCallSettings
        +                .newBuilder()
        +                .setMethodDescriptor(fetchStorageInventoryMethodDescriptor)
        +                .setParamsExtractor(
        +                    request -> {
        +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
        +                      builder.add("source", String.valueOf(request.getSource()));
        +                      return builder.build();
        +                    })
        +                .build();
             GrpcCallSettings
                 listUtilizationReportsTransportSettings =
                     GrpcCallSettings
        @@ -1097,6 +1377,16 @@ protected GrpcVmMigrationStub(
                           return builder.build();
                         })
                     .build();
        +    GrpcCallSettings extendMigrationTransportSettings =
        +        GrpcCallSettings.newBuilder()
        +            .setMethodDescriptor(extendMigrationMethodDescriptor)
        +            .setParamsExtractor(
        +                request -> {
        +                  RequestParamsBuilder builder = RequestParamsBuilder.create();
        +                  builder.add("migrating_vm", String.valueOf(request.getMigratingVm()));
        +                  return builder.build();
        +                })
        +            .build();
             GrpcCallSettings createCloneJobTransportSettings =
                 GrpcCallSettings.newBuilder()
                     .setMethodDescriptor(createCloneJobMethodDescriptor)
        @@ -1323,6 +1613,157 @@ protected GrpcVmMigrationStub(
                               return builder.build();
                             })
                         .build();
        +    GrpcCallSettings
        +        listImageImportsTransportSettings =
        +            GrpcCallSettings.newBuilder()
        +                .setMethodDescriptor(listImageImportsMethodDescriptor)
        +                .setParamsExtractor(
        +                    request -> {
        +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
        +                      builder.add("parent", String.valueOf(request.getParent()));
        +                      return builder.build();
        +                    })
        +                .build();
        +    GrpcCallSettings getImageImportTransportSettings =
        +        GrpcCallSettings.newBuilder()
        +            .setMethodDescriptor(getImageImportMethodDescriptor)
        +            .setParamsExtractor(
        +                request -> {
        +                  RequestParamsBuilder builder = RequestParamsBuilder.create();
        +                  builder.add("name", String.valueOf(request.getName()));
        +                  return builder.build();
        +                })
        +            .build();
        +    GrpcCallSettings createImageImportTransportSettings =
        +        GrpcCallSettings.newBuilder()
        +            .setMethodDescriptor(createImageImportMethodDescriptor)
        +            .setParamsExtractor(
        +                request -> {
        +                  RequestParamsBuilder builder = RequestParamsBuilder.create();
        +                  builder.add("parent", String.valueOf(request.getParent()));
        +                  return builder.build();
        +                })
        +            .build();
        +    GrpcCallSettings deleteImageImportTransportSettings =
        +        GrpcCallSettings.newBuilder()
        +            .setMethodDescriptor(deleteImageImportMethodDescriptor)
        +            .setParamsExtractor(
        +                request -> {
        +                  RequestParamsBuilder builder = RequestParamsBuilder.create();
        +                  builder.add("name", String.valueOf(request.getName()));
        +                  return builder.build();
        +                })
        +            .build();
        +    GrpcCallSettings
        +        listImageImportJobsTransportSettings =
        +            GrpcCallSettings.newBuilder()
        +                .setMethodDescriptor(listImageImportJobsMethodDescriptor)
        +                .setParamsExtractor(
        +                    request -> {
        +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
        +                      builder.add("parent", String.valueOf(request.getParent()));
        +                      return builder.build();
        +                    })
        +                .build();
        +    GrpcCallSettings getImageImportJobTransportSettings =
        +        GrpcCallSettings.newBuilder()
        +            .setMethodDescriptor(getImageImportJobMethodDescriptor)
        +            .setParamsExtractor(
        +                request -> {
        +                  RequestParamsBuilder builder = RequestParamsBuilder.create();
        +                  builder.add("name", String.valueOf(request.getName()));
        +                  return builder.build();
        +                })
        +            .build();
        +    GrpcCallSettings cancelImageImportJobTransportSettings =
        +        GrpcCallSettings.newBuilder()
        +            .setMethodDescriptor(cancelImageImportJobMethodDescriptor)
        +            .setParamsExtractor(
        +                request -> {
        +                  RequestParamsBuilder builder = RequestParamsBuilder.create();
        +                  builder.add("name", String.valueOf(request.getName()));
        +                  return builder.build();
        +                })
        +            .build();
        +    GrpcCallSettings
        +        createDiskMigrationJobTransportSettings =
        +            GrpcCallSettings.newBuilder()
        +                .setMethodDescriptor(createDiskMigrationJobMethodDescriptor)
        +                .setParamsExtractor(
        +                    request -> {
        +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
        +                      builder.add("parent", String.valueOf(request.getParent()));
        +                      return builder.build();
        +                    })
        +                .build();
        +    GrpcCallSettings
        +        listDiskMigrationJobsTransportSettings =
        +            GrpcCallSettings
        +                .newBuilder()
        +                .setMethodDescriptor(listDiskMigrationJobsMethodDescriptor)
        +                .setParamsExtractor(
        +                    request -> {
        +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
        +                      builder.add("parent", String.valueOf(request.getParent()));
        +                      return builder.build();
        +                    })
        +                .build();
        +    GrpcCallSettings
        +        getDiskMigrationJobTransportSettings =
        +            GrpcCallSettings.newBuilder()
        +                .setMethodDescriptor(getDiskMigrationJobMethodDescriptor)
        +                .setParamsExtractor(
        +                    request -> {
        +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
        +                      builder.add("name", String.valueOf(request.getName()));
        +                      return builder.build();
        +                    })
        +                .build();
        +    GrpcCallSettings
        +        updateDiskMigrationJobTransportSettings =
        +            GrpcCallSettings.newBuilder()
        +                .setMethodDescriptor(updateDiskMigrationJobMethodDescriptor)
        +                .setParamsExtractor(
        +                    request -> {
        +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
        +                      builder.add(
        +                          "disk_migration_job.name",
        +                          String.valueOf(request.getDiskMigrationJob().getName()));
        +                      return builder.build();
        +                    })
        +                .build();
        +    GrpcCallSettings
        +        deleteDiskMigrationJobTransportSettings =
        +            GrpcCallSettings.newBuilder()
        +                .setMethodDescriptor(deleteDiskMigrationJobMethodDescriptor)
        +                .setParamsExtractor(
        +                    request -> {
        +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
        +                      builder.add("name", String.valueOf(request.getName()));
        +                      return builder.build();
        +                    })
        +                .build();
        +    GrpcCallSettings runDiskMigrationJobTransportSettings =
        +        GrpcCallSettings.newBuilder()
        +            .setMethodDescriptor(runDiskMigrationJobMethodDescriptor)
        +            .setParamsExtractor(
        +                request -> {
        +                  RequestParamsBuilder builder = RequestParamsBuilder.create();
        +                  builder.add("name", String.valueOf(request.getName()));
        +                  return builder.build();
        +                })
        +            .build();
        +    GrpcCallSettings
        +        cancelDiskMigrationJobTransportSettings =
        +            GrpcCallSettings.newBuilder()
        +                .setMethodDescriptor(cancelDiskMigrationJobMethodDescriptor)
        +                .setParamsExtractor(
        +                    request -> {
        +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
        +                      builder.add("name", String.valueOf(request.getName()));
        +                      return builder.build();
        +                    })
        +                .build();
             GrpcCallSettings listLocationsTransportSettings =
                 GrpcCallSettings.newBuilder()
                     .setMethodDescriptor(listLocationsMethodDescriptor)
        @@ -1383,6 +1824,16 @@ protected GrpcVmMigrationStub(
             this.fetchInventoryCallable =
                 callableFactory.createUnaryCallable(
                     fetchInventoryTransportSettings, settings.fetchInventorySettings(), clientContext);
        +    this.fetchStorageInventoryCallable =
        +        callableFactory.createUnaryCallable(
        +            fetchStorageInventoryTransportSettings,
        +            settings.fetchStorageInventorySettings(),
        +            clientContext);
        +    this.fetchStorageInventoryPagedCallable =
        +        callableFactory.createPagedCallable(
        +            fetchStorageInventoryTransportSettings,
        +            settings.fetchStorageInventorySettings(),
        +            clientContext);
             this.listUtilizationReportsCallable =
                 callableFactory.createUnaryCallable(
                     listUtilizationReportsTransportSettings,
        @@ -1546,6 +1997,15 @@ protected GrpcVmMigrationStub(
                     settings.finalizeMigrationOperationSettings(),
                     clientContext,
                     operationsStub);
        +    this.extendMigrationCallable =
        +        callableFactory.createUnaryCallable(
        +            extendMigrationTransportSettings, settings.extendMigrationSettings(), clientContext);
        +    this.extendMigrationOperationCallable =
        +        callableFactory.createOperationCallable(
        +            extendMigrationTransportSettings,
        +            settings.extendMigrationOperationSettings(),
        +            clientContext,
        +            operationsStub);
             this.createCloneJobCallable =
                 callableFactory.createUnaryCallable(
                     createCloneJobTransportSettings, settings.createCloneJobSettings(), clientContext);
        @@ -1719,6 +2179,133 @@ protected GrpcVmMigrationStub(
                     getReplicationCycleTransportSettings,
                     settings.getReplicationCycleSettings(),
                     clientContext);
        +    this.listImageImportsCallable =
        +        callableFactory.createUnaryCallable(
        +            listImageImportsTransportSettings, settings.listImageImportsSettings(), clientContext);
        +    this.listImageImportsPagedCallable =
        +        callableFactory.createPagedCallable(
        +            listImageImportsTransportSettings, settings.listImageImportsSettings(), clientContext);
        +    this.getImageImportCallable =
        +        callableFactory.createUnaryCallable(
        +            getImageImportTransportSettings, settings.getImageImportSettings(), clientContext);
        +    this.createImageImportCallable =
        +        callableFactory.createUnaryCallable(
        +            createImageImportTransportSettings,
        +            settings.createImageImportSettings(),
        +            clientContext);
        +    this.createImageImportOperationCallable =
        +        callableFactory.createOperationCallable(
        +            createImageImportTransportSettings,
        +            settings.createImageImportOperationSettings(),
        +            clientContext,
        +            operationsStub);
        +    this.deleteImageImportCallable =
        +        callableFactory.createUnaryCallable(
        +            deleteImageImportTransportSettings,
        +            settings.deleteImageImportSettings(),
        +            clientContext);
        +    this.deleteImageImportOperationCallable =
        +        callableFactory.createOperationCallable(
        +            deleteImageImportTransportSettings,
        +            settings.deleteImageImportOperationSettings(),
        +            clientContext,
        +            operationsStub);
        +    this.listImageImportJobsCallable =
        +        callableFactory.createUnaryCallable(
        +            listImageImportJobsTransportSettings,
        +            settings.listImageImportJobsSettings(),
        +            clientContext);
        +    this.listImageImportJobsPagedCallable =
        +        callableFactory.createPagedCallable(
        +            listImageImportJobsTransportSettings,
        +            settings.listImageImportJobsSettings(),
        +            clientContext);
        +    this.getImageImportJobCallable =
        +        callableFactory.createUnaryCallable(
        +            getImageImportJobTransportSettings,
        +            settings.getImageImportJobSettings(),
        +            clientContext);
        +    this.cancelImageImportJobCallable =
        +        callableFactory.createUnaryCallable(
        +            cancelImageImportJobTransportSettings,
        +            settings.cancelImageImportJobSettings(),
        +            clientContext);
        +    this.cancelImageImportJobOperationCallable =
        +        callableFactory.createOperationCallable(
        +            cancelImageImportJobTransportSettings,
        +            settings.cancelImageImportJobOperationSettings(),
        +            clientContext,
        +            operationsStub);
        +    this.createDiskMigrationJobCallable =
        +        callableFactory.createUnaryCallable(
        +            createDiskMigrationJobTransportSettings,
        +            settings.createDiskMigrationJobSettings(),
        +            clientContext);
        +    this.createDiskMigrationJobOperationCallable =
        +        callableFactory.createOperationCallable(
        +            createDiskMigrationJobTransportSettings,
        +            settings.createDiskMigrationJobOperationSettings(),
        +            clientContext,
        +            operationsStub);
        +    this.listDiskMigrationJobsCallable =
        +        callableFactory.createUnaryCallable(
        +            listDiskMigrationJobsTransportSettings,
        +            settings.listDiskMigrationJobsSettings(),
        +            clientContext);
        +    this.listDiskMigrationJobsPagedCallable =
        +        callableFactory.createPagedCallable(
        +            listDiskMigrationJobsTransportSettings,
        +            settings.listDiskMigrationJobsSettings(),
        +            clientContext);
        +    this.getDiskMigrationJobCallable =
        +        callableFactory.createUnaryCallable(
        +            getDiskMigrationJobTransportSettings,
        +            settings.getDiskMigrationJobSettings(),
        +            clientContext);
        +    this.updateDiskMigrationJobCallable =
        +        callableFactory.createUnaryCallable(
        +            updateDiskMigrationJobTransportSettings,
        +            settings.updateDiskMigrationJobSettings(),
        +            clientContext);
        +    this.updateDiskMigrationJobOperationCallable =
        +        callableFactory.createOperationCallable(
        +            updateDiskMigrationJobTransportSettings,
        +            settings.updateDiskMigrationJobOperationSettings(),
        +            clientContext,
        +            operationsStub);
        +    this.deleteDiskMigrationJobCallable =
        +        callableFactory.createUnaryCallable(
        +            deleteDiskMigrationJobTransportSettings,
        +            settings.deleteDiskMigrationJobSettings(),
        +            clientContext);
        +    this.deleteDiskMigrationJobOperationCallable =
        +        callableFactory.createOperationCallable(
        +            deleteDiskMigrationJobTransportSettings,
        +            settings.deleteDiskMigrationJobOperationSettings(),
        +            clientContext,
        +            operationsStub);
        +    this.runDiskMigrationJobCallable =
        +        callableFactory.createUnaryCallable(
        +            runDiskMigrationJobTransportSettings,
        +            settings.runDiskMigrationJobSettings(),
        +            clientContext);
        +    this.runDiskMigrationJobOperationCallable =
        +        callableFactory.createOperationCallable(
        +            runDiskMigrationJobTransportSettings,
        +            settings.runDiskMigrationJobOperationSettings(),
        +            clientContext,
        +            operationsStub);
        +    this.cancelDiskMigrationJobCallable =
        +        callableFactory.createUnaryCallable(
        +            cancelDiskMigrationJobTransportSettings,
        +            settings.cancelDiskMigrationJobSettings(),
        +            clientContext);
        +    this.cancelDiskMigrationJobOperationCallable =
        +        callableFactory.createOperationCallable(
        +            cancelDiskMigrationJobTransportSettings,
        +            settings.cancelDiskMigrationJobOperationSettings(),
        +            clientContext,
        +            operationsStub);
             this.listLocationsCallable =
                 callableFactory.createUnaryCallable(
                     listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
        @@ -1790,6 +2377,18 @@ public UnaryCallable fetchInvento
             return fetchInventoryCallable;
           }
         
        +  @Override
        +  public UnaryCallable
        +      fetchStorageInventoryCallable() {
        +    return fetchStorageInventoryCallable;
        +  }
        +
        +  @Override
        +  public UnaryCallable
        +      fetchStorageInventoryPagedCallable() {
        +    return fetchStorageInventoryPagedCallable;
        +  }
        +
           @Override
           public UnaryCallable
               listUtilizationReportsCallable() {
        @@ -1979,6 +2578,17 @@ public UnaryCallable finalizeMigrationCalla
             return finalizeMigrationOperationCallable;
           }
         
        +  @Override
        +  public UnaryCallable extendMigrationCallable() {
        +    return extendMigrationCallable;
        +  }
        +
        +  @Override
        +  public OperationCallable
        +      extendMigrationOperationCallable() {
        +    return extendMigrationOperationCallable;
        +  }
        +
           @Override
           public UnaryCallable createCloneJobCallable() {
             return createCloneJobCallable;
        @@ -2193,6 +2803,148 @@ public UnaryCallable getReplicatio
             return getReplicationCycleCallable;
           }
         
        +  @Override
        +  public UnaryCallable
        +      listImageImportsCallable() {
        +    return listImageImportsCallable;
        +  }
        +
        +  @Override
        +  public UnaryCallable
        +      listImageImportsPagedCallable() {
        +    return listImageImportsPagedCallable;
        +  }
        +
        +  @Override
        +  public UnaryCallable getImageImportCallable() {
        +    return getImageImportCallable;
        +  }
        +
        +  @Override
        +  public UnaryCallable createImageImportCallable() {
        +    return createImageImportCallable;
        +  }
        +
        +  @Override
        +  public OperationCallable
        +      createImageImportOperationCallable() {
        +    return createImageImportOperationCallable;
        +  }
        +
        +  @Override
        +  public UnaryCallable deleteImageImportCallable() {
        +    return deleteImageImportCallable;
        +  }
        +
        +  @Override
        +  public OperationCallable
        +      deleteImageImportOperationCallable() {
        +    return deleteImageImportOperationCallable;
        +  }
        +
        +  @Override
        +  public UnaryCallable
        +      listImageImportJobsCallable() {
        +    return listImageImportJobsCallable;
        +  }
        +
        +  @Override
        +  public UnaryCallable
        +      listImageImportJobsPagedCallable() {
        +    return listImageImportJobsPagedCallable;
        +  }
        +
        +  @Override
        +  public UnaryCallable getImageImportJobCallable() {
        +    return getImageImportJobCallable;
        +  }
        +
        +  @Override
        +  public UnaryCallable cancelImageImportJobCallable() {
        +    return cancelImageImportJobCallable;
        +  }
        +
        +  @Override
        +  public OperationCallable<
        +          CancelImageImportJobRequest, CancelImageImportJobResponse, OperationMetadata>
        +      cancelImageImportJobOperationCallable() {
        +    return cancelImageImportJobOperationCallable;
        +  }
        +
        +  @Override
        +  public UnaryCallable createDiskMigrationJobCallable() {
        +    return createDiskMigrationJobCallable;
        +  }
        +
        +  @Override
        +  public OperationCallable
        +      createDiskMigrationJobOperationCallable() {
        +    return createDiskMigrationJobOperationCallable;
        +  }
        +
        +  @Override
        +  public UnaryCallable
        +      listDiskMigrationJobsCallable() {
        +    return listDiskMigrationJobsCallable;
        +  }
        +
        +  @Override
        +  public UnaryCallable
        +      listDiskMigrationJobsPagedCallable() {
        +    return listDiskMigrationJobsPagedCallable;
        +  }
        +
        +  @Override
        +  public UnaryCallable getDiskMigrationJobCallable() {
        +    return getDiskMigrationJobCallable;
        +  }
        +
        +  @Override
        +  public UnaryCallable updateDiskMigrationJobCallable() {
        +    return updateDiskMigrationJobCallable;
        +  }
        +
        +  @Override
        +  public OperationCallable
        +      updateDiskMigrationJobOperationCallable() {
        +    return updateDiskMigrationJobOperationCallable;
        +  }
        +
        +  @Override
        +  public UnaryCallable deleteDiskMigrationJobCallable() {
        +    return deleteDiskMigrationJobCallable;
        +  }
        +
        +  @Override
        +  public OperationCallable
        +      deleteDiskMigrationJobOperationCallable() {
        +    return deleteDiskMigrationJobOperationCallable;
        +  }
        +
        +  @Override
        +  public UnaryCallable runDiskMigrationJobCallable() {
        +    return runDiskMigrationJobCallable;
        +  }
        +
        +  @Override
        +  public OperationCallable<
        +          RunDiskMigrationJobRequest, RunDiskMigrationJobResponse, OperationMetadata>
        +      runDiskMigrationJobOperationCallable() {
        +    return runDiskMigrationJobOperationCallable;
        +  }
        +
        +  @Override
        +  public UnaryCallable cancelDiskMigrationJobCallable() {
        +    return cancelDiskMigrationJobCallable;
        +  }
        +
        +  @Override
        +  public OperationCallable<
        +          CancelDiskMigrationJobRequest, CancelDiskMigrationJobResponse, OperationMetadata>
        +      cancelDiskMigrationJobOperationCallable() {
        +    return cancelDiskMigrationJobOperationCallable;
        +  }
        +
           @Override
           public UnaryCallable listLocationsCallable() {
             return listLocationsCallable;
        diff --git a/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/stub/HttpJsonVmMigrationStub.java b/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/stub/HttpJsonVmMigrationStub.java
        index 969bfc4f7d45..fc0c7f554c58 100644
        --- a/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/stub/HttpJsonVmMigrationStub.java
        +++ b/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/stub/HttpJsonVmMigrationStub.java
        @@ -16,10 +16,14 @@
         
         package com.google.cloud.vmmigration.v1.stub;
         
        +import static com.google.cloud.vmmigration.v1.VmMigrationClient.FetchStorageInventoryPagedResponse;
         import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListCloneJobsPagedResponse;
         import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListCutoverJobsPagedResponse;
         import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListDatacenterConnectorsPagedResponse;
        +import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListDiskMigrationJobsPagedResponse;
         import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListGroupsPagedResponse;
        +import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListImageImportJobsPagedResponse;
        +import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListImageImportsPagedResponse;
         import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListLocationsPagedResponse;
         import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListMigratingVmsPagedResponse;
         import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListReplicationCyclesPagedResponse;
        @@ -53,11 +57,17 @@
         import com.google.cloud.vmmigration.v1.CancelCloneJobResponse;
         import com.google.cloud.vmmigration.v1.CancelCutoverJobRequest;
         import com.google.cloud.vmmigration.v1.CancelCutoverJobResponse;
        +import com.google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest;
        +import com.google.cloud.vmmigration.v1.CancelDiskMigrationJobResponse;
        +import com.google.cloud.vmmigration.v1.CancelImageImportJobRequest;
        +import com.google.cloud.vmmigration.v1.CancelImageImportJobResponse;
         import com.google.cloud.vmmigration.v1.CloneJob;
         import com.google.cloud.vmmigration.v1.CreateCloneJobRequest;
         import com.google.cloud.vmmigration.v1.CreateCutoverJobRequest;
         import com.google.cloud.vmmigration.v1.CreateDatacenterConnectorRequest;
        +import com.google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest;
         import com.google.cloud.vmmigration.v1.CreateGroupRequest;
        +import com.google.cloud.vmmigration.v1.CreateImageImportRequest;
         import com.google.cloud.vmmigration.v1.CreateMigratingVmRequest;
         import com.google.cloud.vmmigration.v1.CreateSourceRequest;
         import com.google.cloud.vmmigration.v1.CreateTargetProjectRequest;
        @@ -65,33 +75,51 @@
         import com.google.cloud.vmmigration.v1.CutoverJob;
         import com.google.cloud.vmmigration.v1.DatacenterConnector;
         import com.google.cloud.vmmigration.v1.DeleteDatacenterConnectorRequest;
        +import com.google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest;
         import com.google.cloud.vmmigration.v1.DeleteGroupRequest;
        +import com.google.cloud.vmmigration.v1.DeleteImageImportRequest;
         import com.google.cloud.vmmigration.v1.DeleteMigratingVmRequest;
         import com.google.cloud.vmmigration.v1.DeleteSourceRequest;
         import com.google.cloud.vmmigration.v1.DeleteTargetProjectRequest;
         import com.google.cloud.vmmigration.v1.DeleteUtilizationReportRequest;
        +import com.google.cloud.vmmigration.v1.DiskMigrationJob;
        +import com.google.cloud.vmmigration.v1.ExtendMigrationRequest;
        +import com.google.cloud.vmmigration.v1.ExtendMigrationResponse;
         import com.google.cloud.vmmigration.v1.FetchInventoryRequest;
         import com.google.cloud.vmmigration.v1.FetchInventoryResponse;
        +import com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest;
        +import com.google.cloud.vmmigration.v1.FetchStorageInventoryResponse;
         import com.google.cloud.vmmigration.v1.FinalizeMigrationRequest;
         import com.google.cloud.vmmigration.v1.FinalizeMigrationResponse;
         import com.google.cloud.vmmigration.v1.GetCloneJobRequest;
         import com.google.cloud.vmmigration.v1.GetCutoverJobRequest;
         import com.google.cloud.vmmigration.v1.GetDatacenterConnectorRequest;
        +import com.google.cloud.vmmigration.v1.GetDiskMigrationJobRequest;
         import com.google.cloud.vmmigration.v1.GetGroupRequest;
        +import com.google.cloud.vmmigration.v1.GetImageImportJobRequest;
        +import com.google.cloud.vmmigration.v1.GetImageImportRequest;
         import com.google.cloud.vmmigration.v1.GetMigratingVmRequest;
         import com.google.cloud.vmmigration.v1.GetReplicationCycleRequest;
         import com.google.cloud.vmmigration.v1.GetSourceRequest;
         import com.google.cloud.vmmigration.v1.GetTargetProjectRequest;
         import com.google.cloud.vmmigration.v1.GetUtilizationReportRequest;
         import com.google.cloud.vmmigration.v1.Group;
        +import com.google.cloud.vmmigration.v1.ImageImport;
        +import com.google.cloud.vmmigration.v1.ImageImportJob;
         import com.google.cloud.vmmigration.v1.ListCloneJobsRequest;
         import com.google.cloud.vmmigration.v1.ListCloneJobsResponse;
         import com.google.cloud.vmmigration.v1.ListCutoverJobsRequest;
         import com.google.cloud.vmmigration.v1.ListCutoverJobsResponse;
         import com.google.cloud.vmmigration.v1.ListDatacenterConnectorsRequest;
         import com.google.cloud.vmmigration.v1.ListDatacenterConnectorsResponse;
        +import com.google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest;
        +import com.google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse;
         import com.google.cloud.vmmigration.v1.ListGroupsRequest;
         import com.google.cloud.vmmigration.v1.ListGroupsResponse;
        +import com.google.cloud.vmmigration.v1.ListImageImportJobsRequest;
        +import com.google.cloud.vmmigration.v1.ListImageImportJobsResponse;
        +import com.google.cloud.vmmigration.v1.ListImageImportsRequest;
        +import com.google.cloud.vmmigration.v1.ListImageImportsResponse;
         import com.google.cloud.vmmigration.v1.ListMigratingVmsRequest;
         import com.google.cloud.vmmigration.v1.ListMigratingVmsResponse;
         import com.google.cloud.vmmigration.v1.ListReplicationCyclesRequest;
        @@ -111,10 +139,13 @@
         import com.google.cloud.vmmigration.v1.ReplicationCycle;
         import com.google.cloud.vmmigration.v1.ResumeMigrationRequest;
         import com.google.cloud.vmmigration.v1.ResumeMigrationResponse;
        +import com.google.cloud.vmmigration.v1.RunDiskMigrationJobRequest;
        +import com.google.cloud.vmmigration.v1.RunDiskMigrationJobResponse;
         import com.google.cloud.vmmigration.v1.Source;
         import com.google.cloud.vmmigration.v1.StartMigrationRequest;
         import com.google.cloud.vmmigration.v1.StartMigrationResponse;
         import com.google.cloud.vmmigration.v1.TargetProject;
        +import com.google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest;
         import com.google.cloud.vmmigration.v1.UpdateGroupRequest;
         import com.google.cloud.vmmigration.v1.UpdateMigratingVmRequest;
         import com.google.cloud.vmmigration.v1.UpdateSourceRequest;
        @@ -144,21 +175,27 @@
         public class HttpJsonVmMigrationStub extends VmMigrationStub {
           private static final TypeRegistry typeRegistry =
               TypeRegistry.newBuilder()
        +          .add(DiskMigrationJob.getDescriptor())
                   .add(DatacenterConnector.getDescriptor())
                   .add(MigratingVm.getDescriptor())
        -          .add(ResumeMigrationResponse.getDescriptor())
        -          .add(UtilizationReport.getDescriptor())
        -          .add(CutoverJob.getDescriptor())
        -          .add(CancelCloneJobResponse.getDescriptor())
        -          .add(FinalizeMigrationResponse.getDescriptor())
        -          .add(RemoveGroupMigrationResponse.getDescriptor())
                   .add(Empty.getDescriptor())
                   .add(TargetProject.getDescriptor())
                   .add(OperationMetadata.getDescriptor())
                   .add(CancelCutoverJobResponse.getDescriptor())
                   .add(Source.getDescriptor())
        +          .add(ExtendMigrationResponse.getDescriptor())
                   .add(CloneJob.getDescriptor())
                   .add(AddGroupMigrationResponse.getDescriptor())
        +          .add(CancelDiskMigrationJobResponse.getDescriptor())
        +          .add(ResumeMigrationResponse.getDescriptor())
        +          .add(UtilizationReport.getDescriptor())
        +          .add(CutoverJob.getDescriptor())
        +          .add(ImageImport.getDescriptor())
        +          .add(CancelCloneJobResponse.getDescriptor())
        +          .add(FinalizeMigrationResponse.getDescriptor())
        +          .add(RemoveGroupMigrationResponse.getDescriptor())
        +          .add(CancelImageImportJobResponse.getDescriptor())
        +          .add(RunDiskMigrationJobResponse.getDescriptor())
                   .add(Group.getDescriptor())
                   .add(StartMigrationResponse.getDescriptor())
                   .add(UpgradeApplianceResponse.getDescriptor())
        @@ -395,6 +432,47 @@ public class HttpJsonVmMigrationStub extends VmMigrationStub {
                               .build())
                       .build();
         
        +  private static final ApiMethodDescriptor<
        +          FetchStorageInventoryRequest, FetchStorageInventoryResponse>
        +      fetchStorageInventoryMethodDescriptor =
        +          ApiMethodDescriptor
        +              .newBuilder()
        +              .setFullMethodName("google.cloud.vmmigration.v1.VmMigration/FetchStorageInventory")
        +              .setHttpMethod("GET")
        +              .setType(ApiMethodDescriptor.MethodType.UNARY)
        +              .setRequestFormatter(
        +                  ProtoMessageRequestFormatter.newBuilder()
        +                      .setPath(
        +                          "/v1/{source=projects/*/locations/*/sources/*}:fetchStorageInventory",
        +                          request -> {
        +                            Map fields = new HashMap<>();
        +                            ProtoRestSerializer serializer =
        +                                ProtoRestSerializer.create();
        +                            serializer.putPathParam(fields, "source", request.getSource());
        +                            return fields;
        +                          })
        +                      .setQueryParamsExtractor(
        +                          request -> {
        +                            Map> fields = new HashMap<>();
        +                            ProtoRestSerializer serializer =
        +                                ProtoRestSerializer.create();
        +                            serializer.putQueryParam(
        +                                fields, "forceRefresh", request.getForceRefresh());
        +                            serializer.putQueryParam(fields, "pageSize", request.getPageSize());
        +                            serializer.putQueryParam(fields, "pageToken", request.getPageToken());
        +                            serializer.putQueryParam(fields, "type", request.getTypeValue());
        +                            serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
        +                            return fields;
        +                          })
        +                      .setRequestBodyExtractor(request -> null)
        +                      .build())
        +              .setResponseParser(
        +                  ProtoMessageResponseParser.newBuilder()
        +                      .setDefaultInstance(FetchStorageInventoryResponse.getDefaultInstance())
        +                      .setDefaultTypeRegistry(typeRegistry)
        +                      .build())
        +              .build();
        +
           private static final ApiMethodDescriptor<
                   ListUtilizationReportsRequest, ListUtilizationReportsResponse>
               listUtilizationReportsMethodDescriptor =
        @@ -1124,6 +1202,48 @@ public class HttpJsonVmMigrationStub extends VmMigrationStub {
                               HttpJsonOperationSnapshot.create(response))
                       .build();
         
        +  private static final ApiMethodDescriptor
        +      extendMigrationMethodDescriptor =
        +          ApiMethodDescriptor.newBuilder()
        +              .setFullMethodName("google.cloud.vmmigration.v1.VmMigration/ExtendMigration")
        +              .setHttpMethod("POST")
        +              .setType(ApiMethodDescriptor.MethodType.UNARY)
        +              .setRequestFormatter(
        +                  ProtoMessageRequestFormatter.newBuilder()
        +                      .setPath(
        +                          "/v1/{migratingVm=projects/*/locations/*/sources/*/migratingVms/*}:extendMigration",
        +                          request -> {
        +                            Map fields = new HashMap<>();
        +                            ProtoRestSerializer serializer =
        +                                ProtoRestSerializer.create();
        +                            serializer.putPathParam(
        +                                fields, "migratingVm", request.getMigratingVm());
        +                            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().clearMigratingVm().build(), true))
        +                      .build())
        +              .setResponseParser(
        +                  ProtoMessageResponseParser.newBuilder()
        +                      .setDefaultInstance(Operation.getDefaultInstance())
        +                      .setDefaultTypeRegistry(typeRegistry)
        +                      .build())
        +              .setOperationSnapshotFactory(
        +                  (ExtendMigrationRequest request, Operation response) ->
        +                      HttpJsonOperationSnapshot.create(response))
        +              .build();
        +
           private static final ApiMethodDescriptor
               createCloneJobMethodDescriptor =
                   ApiMethodDescriptor.newBuilder()
        @@ -1977,19 +2097,57 @@ public class HttpJsonVmMigrationStub extends VmMigrationStub {
                               .build())
                       .build();
         
        -  private static final ApiMethodDescriptor
        -      listLocationsMethodDescriptor =
        -          ApiMethodDescriptor.newBuilder()
        -              .setFullMethodName("google.cloud.location.Locations/ListLocations")
        +  private static final ApiMethodDescriptor
        +      listImageImportsMethodDescriptor =
        +          ApiMethodDescriptor.newBuilder()
        +              .setFullMethodName("google.cloud.vmmigration.v1.VmMigration/ListImageImports")
                       .setHttpMethod("GET")
                       .setType(ApiMethodDescriptor.MethodType.UNARY)
                       .setRequestFormatter(
        -                  ProtoMessageRequestFormatter.newBuilder()
        +                  ProtoMessageRequestFormatter.newBuilder()
                               .setPath(
        -                          "/v1/{name=projects/*}/locations",
        +                          "/v1/{parent=projects/*/locations/*}/imageImports",
                                   request -> {
                                     Map fields = new HashMap<>();
        -                            ProtoRestSerializer serializer =
        +                            ProtoRestSerializer serializer =
        +                                ProtoRestSerializer.create();
        +                            serializer.putPathParam(fields, "parent", request.getParent());
        +                            return fields;
        +                          })
        +                      .setQueryParamsExtractor(
        +                          request -> {
        +                            Map> fields = new HashMap<>();
        +                            ProtoRestSerializer serializer =
        +                                ProtoRestSerializer.create();
        +                            serializer.putQueryParam(fields, "filter", request.getFilter());
        +                            serializer.putQueryParam(fields, "orderBy", request.getOrderBy());
        +                            serializer.putQueryParam(fields, "pageSize", request.getPageSize());
        +                            serializer.putQueryParam(fields, "pageToken", request.getPageToken());
        +                            serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
        +                            return fields;
        +                          })
        +                      .setRequestBodyExtractor(request -> null)
        +                      .build())
        +              .setResponseParser(
        +                  ProtoMessageResponseParser.newBuilder()
        +                      .setDefaultInstance(ListImageImportsResponse.getDefaultInstance())
        +                      .setDefaultTypeRegistry(typeRegistry)
        +                      .build())
        +              .build();
        +
        +  private static final ApiMethodDescriptor
        +      getImageImportMethodDescriptor =
        +          ApiMethodDescriptor.newBuilder()
        +              .setFullMethodName("google.cloud.vmmigration.v1.VmMigration/GetImageImport")
        +              .setHttpMethod("GET")
        +              .setType(ApiMethodDescriptor.MethodType.UNARY)
        +              .setRequestFormatter(
        +                  ProtoMessageRequestFormatter.newBuilder()
        +                      .setPath(
        +                          "/v1/{name=projects/*/locations/*/imageImports/*}",
        +                          request -> {
        +                            Map fields = new HashMap<>();
        +                            ProtoRestSerializer serializer =
                                         ProtoRestSerializer.create();
                                     serializer.putPathParam(fields, "name", request.getName());
                                     return fields;
        @@ -1997,7 +2155,7 @@ public class HttpJsonVmMigrationStub extends VmMigrationStub {
                               .setQueryParamsExtractor(
                                   request -> {
                                     Map> fields = new HashMap<>();
        -                            ProtoRestSerializer serializer =
        +                            ProtoRestSerializer serializer =
                                         ProtoRestSerializer.create();
                                     serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
                                     return fields;
        @@ -2005,25 +2163,144 @@ public class HttpJsonVmMigrationStub extends VmMigrationStub {
                               .setRequestBodyExtractor(request -> null)
                               .build())
                       .setResponseParser(
        -                  ProtoMessageResponseParser.newBuilder()
        -                      .setDefaultInstance(ListLocationsResponse.getDefaultInstance())
        +                  ProtoMessageResponseParser.newBuilder()
        +                      .setDefaultInstance(ImageImport.getDefaultInstance())
                               .setDefaultTypeRegistry(typeRegistry)
                               .build())
                       .build();
         
        -  private static final ApiMethodDescriptor
        -      getLocationMethodDescriptor =
        -          ApiMethodDescriptor.newBuilder()
        -              .setFullMethodName("google.cloud.location.Locations/GetLocation")
        +  private static final ApiMethodDescriptor
        +      createImageImportMethodDescriptor =
        +          ApiMethodDescriptor.newBuilder()
        +              .setFullMethodName("google.cloud.vmmigration.v1.VmMigration/CreateImageImport")
        +              .setHttpMethod("POST")
        +              .setType(ApiMethodDescriptor.MethodType.UNARY)
        +              .setRequestFormatter(
        +                  ProtoMessageRequestFormatter.newBuilder()
        +                      .setPath(
        +                          "/v1/{parent=projects/*/locations/*}/imageImports",
        +                          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, "imageImportId", request.getImageImportId());
        +                            serializer.putQueryParam(fields, "requestId", request.getRequestId());
        +                            serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
        +                            return fields;
        +                          })
        +                      .setRequestBodyExtractor(
        +                          request ->
        +                              ProtoRestSerializer.create()
        +                                  .toBody("imageImport", request.getImageImport(), true))
        +                      .build())
        +              .setResponseParser(
        +                  ProtoMessageResponseParser.newBuilder()
        +                      .setDefaultInstance(Operation.getDefaultInstance())
        +                      .setDefaultTypeRegistry(typeRegistry)
        +                      .build())
        +              .setOperationSnapshotFactory(
        +                  (CreateImageImportRequest request, Operation response) ->
        +                      HttpJsonOperationSnapshot.create(response))
        +              .build();
        +
        +  private static final ApiMethodDescriptor
        +      deleteImageImportMethodDescriptor =
        +          ApiMethodDescriptor.newBuilder()
        +              .setFullMethodName("google.cloud.vmmigration.v1.VmMigration/DeleteImageImport")
        +              .setHttpMethod("DELETE")
        +              .setType(ApiMethodDescriptor.MethodType.UNARY)
        +              .setRequestFormatter(
        +                  ProtoMessageRequestFormatter.newBuilder()
        +                      .setPath(
        +                          "/v1/{name=projects/*/locations/*/imageImports/*}",
        +                          request -> {
        +                            Map fields = new HashMap<>();
        +                            ProtoRestSerializer serializer =
        +                                ProtoRestSerializer.create();
        +                            serializer.putPathParam(fields, "name", request.getName());
        +                            return fields;
        +                          })
        +                      .setQueryParamsExtractor(
        +                          request -> {
        +                            Map> fields = new HashMap<>();
        +                            ProtoRestSerializer serializer =
        +                                ProtoRestSerializer.create();
        +                            serializer.putQueryParam(fields, "requestId", request.getRequestId());
        +                            serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
        +                            return fields;
        +                          })
        +                      .setRequestBodyExtractor(request -> null)
        +                      .build())
        +              .setResponseParser(
        +                  ProtoMessageResponseParser.newBuilder()
        +                      .setDefaultInstance(Operation.getDefaultInstance())
        +                      .setDefaultTypeRegistry(typeRegistry)
        +                      .build())
        +              .setOperationSnapshotFactory(
        +                  (DeleteImageImportRequest request, Operation response) ->
        +                      HttpJsonOperationSnapshot.create(response))
        +              .build();
        +
        +  private static final ApiMethodDescriptor
        +      listImageImportJobsMethodDescriptor =
        +          ApiMethodDescriptor.newBuilder()
        +              .setFullMethodName("google.cloud.vmmigration.v1.VmMigration/ListImageImportJobs")
                       .setHttpMethod("GET")
                       .setType(ApiMethodDescriptor.MethodType.UNARY)
                       .setRequestFormatter(
        -                  ProtoMessageRequestFormatter.newBuilder()
        +                  ProtoMessageRequestFormatter.newBuilder()
                               .setPath(
        -                          "/v1/{name=projects/*/locations/*}",
        +                          "/v1/{parent=projects/*/locations/*/imageImports/*}/imageImportJobs",
                                   request -> {
                                     Map fields = new HashMap<>();
        -                            ProtoRestSerializer serializer =
        +                            ProtoRestSerializer serializer =
        +                                ProtoRestSerializer.create();
        +                            serializer.putPathParam(fields, "parent", request.getParent());
        +                            return fields;
        +                          })
        +                      .setQueryParamsExtractor(
        +                          request -> {
        +                            Map> fields = new HashMap<>();
        +                            ProtoRestSerializer serializer =
        +                                ProtoRestSerializer.create();
        +                            serializer.putQueryParam(fields, "filter", request.getFilter());
        +                            serializer.putQueryParam(fields, "orderBy", request.getOrderBy());
        +                            serializer.putQueryParam(fields, "pageSize", request.getPageSize());
        +                            serializer.putQueryParam(fields, "pageToken", request.getPageToken());
        +                            serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
        +                            return fields;
        +                          })
        +                      .setRequestBodyExtractor(request -> null)
        +                      .build())
        +              .setResponseParser(
        +                  ProtoMessageResponseParser.newBuilder()
        +                      .setDefaultInstance(ListImageImportJobsResponse.getDefaultInstance())
        +                      .setDefaultTypeRegistry(typeRegistry)
        +                      .build())
        +              .build();
        +
        +  private static final ApiMethodDescriptor
        +      getImageImportJobMethodDescriptor =
        +          ApiMethodDescriptor.newBuilder()
        +              .setFullMethodName("google.cloud.vmmigration.v1.VmMigration/GetImageImportJob")
        +              .setHttpMethod("GET")
        +              .setType(ApiMethodDescriptor.MethodType.UNARY)
        +              .setRequestFormatter(
        +                  ProtoMessageRequestFormatter.newBuilder()
        +                      .setPath(
        +                          "/v1/{name=projects/*/locations/*/imageImports/*/imageImportJobs/*}",
        +                          request -> {
        +                            Map fields = new HashMap<>();
        +                            ProtoRestSerializer serializer =
                                         ProtoRestSerializer.create();
                                     serializer.putPathParam(fields, "name", request.getName());
                                     return fields;
        @@ -2031,7 +2308,7 @@ public class HttpJsonVmMigrationStub extends VmMigrationStub {
                               .setQueryParamsExtractor(
                                   request -> {
                                     Map> fields = new HashMap<>();
        -                            ProtoRestSerializer serializer =
        +                            ProtoRestSerializer serializer =
                                         ProtoRestSerializer.create();
                                     serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
                                     return fields;
        @@ -2039,56 +2316,447 @@ public class HttpJsonVmMigrationStub extends VmMigrationStub {
                               .setRequestBodyExtractor(request -> null)
                               .build())
                       .setResponseParser(
        -                  ProtoMessageResponseParser.newBuilder()
        -                      .setDefaultInstance(Location.getDefaultInstance())
        +                  ProtoMessageResponseParser.newBuilder()
        +                      .setDefaultInstance(ImageImportJob.getDefaultInstance())
                               .setDefaultTypeRegistry(typeRegistry)
                               .build())
                       .build();
         
        -  private final UnaryCallable listSourcesCallable;
        -  private final UnaryCallable
        -      listSourcesPagedCallable;
        -  private final UnaryCallable getSourceCallable;
        -  private final UnaryCallable createSourceCallable;
        -  private final OperationCallable
        -      createSourceOperationCallable;
        -  private final UnaryCallable updateSourceCallable;
        -  private final OperationCallable
        -      updateSourceOperationCallable;
        -  private final UnaryCallable deleteSourceCallable;
        -  private final OperationCallable
        -      deleteSourceOperationCallable;
        -  private final UnaryCallable fetchInventoryCallable;
        -  private final UnaryCallable
        -      listUtilizationReportsCallable;
        -  private final UnaryCallable
        -      listUtilizationReportsPagedCallable;
        -  private final UnaryCallable
        -      getUtilizationReportCallable;
        -  private final UnaryCallable
        -      createUtilizationReportCallable;
        -  private final OperationCallable<
        -          CreateUtilizationReportRequest, UtilizationReport, OperationMetadata>
        -      createUtilizationReportOperationCallable;
        -  private final UnaryCallable
        -      deleteUtilizationReportCallable;
        -  private final OperationCallable
        -      deleteUtilizationReportOperationCallable;
        -  private final UnaryCallable
        -      listDatacenterConnectorsCallable;
        -  private final UnaryCallable<
        -          ListDatacenterConnectorsRequest, ListDatacenterConnectorsPagedResponse>
        -      listDatacenterConnectorsPagedCallable;
        -  private final UnaryCallable
        -      getDatacenterConnectorCallable;
        -  private final UnaryCallable
        -      createDatacenterConnectorCallable;
        -  private final OperationCallable<
        -          CreateDatacenterConnectorRequest, DatacenterConnector, OperationMetadata>
        -      createDatacenterConnectorOperationCallable;
        -  private final UnaryCallable
        -      deleteDatacenterConnectorCallable;
        -  private final OperationCallable
        +  private static final ApiMethodDescriptor
        +      cancelImageImportJobMethodDescriptor =
        +          ApiMethodDescriptor.newBuilder()
        +              .setFullMethodName("google.cloud.vmmigration.v1.VmMigration/CancelImageImportJob")
        +              .setHttpMethod("POST")
        +              .setType(ApiMethodDescriptor.MethodType.UNARY)
        +              .setRequestFormatter(
        +                  ProtoMessageRequestFormatter.newBuilder()
        +                      .setPath(
        +                          "/v1/{name=projects/*/locations/*/imageImports/*/imageImportJobs/*}:cancel",
        +                          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(
        +                  (CancelImageImportJobRequest request, Operation response) ->
        +                      HttpJsonOperationSnapshot.create(response))
        +              .build();
        +
        +  private static final ApiMethodDescriptor
        +      createDiskMigrationJobMethodDescriptor =
        +          ApiMethodDescriptor.newBuilder()
        +              .setFullMethodName("google.cloud.vmmigration.v1.VmMigration/CreateDiskMigrationJob")
        +              .setHttpMethod("POST")
        +              .setType(ApiMethodDescriptor.MethodType.UNARY)
        +              .setRequestFormatter(
        +                  ProtoMessageRequestFormatter.newBuilder()
        +                      .setPath(
        +                          "/v1/{parent=projects/*/locations/*/sources/*}/diskMigrationJobs",
        +                          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, "diskMigrationJobId", request.getDiskMigrationJobId());
        +                            serializer.putQueryParam(fields, "requestId", request.getRequestId());
        +                            serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
        +                            return fields;
        +                          })
        +                      .setRequestBodyExtractor(
        +                          request ->
        +                              ProtoRestSerializer.create()
        +                                  .toBody("diskMigrationJob", request.getDiskMigrationJob(), true))
        +                      .build())
        +              .setResponseParser(
        +                  ProtoMessageResponseParser.newBuilder()
        +                      .setDefaultInstance(Operation.getDefaultInstance())
        +                      .setDefaultTypeRegistry(typeRegistry)
        +                      .build())
        +              .setOperationSnapshotFactory(
        +                  (CreateDiskMigrationJobRequest request, Operation response) ->
        +                      HttpJsonOperationSnapshot.create(response))
        +              .build();
        +
        +  private static final ApiMethodDescriptor<
        +          ListDiskMigrationJobsRequest, ListDiskMigrationJobsResponse>
        +      listDiskMigrationJobsMethodDescriptor =
        +          ApiMethodDescriptor
        +              .newBuilder()
        +              .setFullMethodName("google.cloud.vmmigration.v1.VmMigration/ListDiskMigrationJobs")
        +              .setHttpMethod("GET")
        +              .setType(ApiMethodDescriptor.MethodType.UNARY)
        +              .setRequestFormatter(
        +                  ProtoMessageRequestFormatter.newBuilder()
        +                      .setPath(
        +                          "/v1/{parent=projects/*/locations/*/sources/*}/diskMigrationJobs",
        +                          request -> {
        +                            Map fields = new HashMap<>();
        +                            ProtoRestSerializer serializer =
        +                                ProtoRestSerializer.create();
        +                            serializer.putPathParam(fields, "parent", request.getParent());
        +                            return fields;
        +                          })
        +                      .setQueryParamsExtractor(
        +                          request -> {
        +                            Map> fields = new HashMap<>();
        +                            ProtoRestSerializer serializer =
        +                                ProtoRestSerializer.create();
        +                            serializer.putQueryParam(fields, "filter", request.getFilter());
        +                            serializer.putQueryParam(fields, "orderBy", request.getOrderBy());
        +                            serializer.putQueryParam(fields, "pageSize", request.getPageSize());
        +                            serializer.putQueryParam(fields, "pageToken", request.getPageToken());
        +                            serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
        +                            return fields;
        +                          })
        +                      .setRequestBodyExtractor(request -> null)
        +                      .build())
        +              .setResponseParser(
        +                  ProtoMessageResponseParser.newBuilder()
        +                      .setDefaultInstance(ListDiskMigrationJobsResponse.getDefaultInstance())
        +                      .setDefaultTypeRegistry(typeRegistry)
        +                      .build())
        +              .build();
        +
        +  private static final ApiMethodDescriptor
        +      getDiskMigrationJobMethodDescriptor =
        +          ApiMethodDescriptor.newBuilder()
        +              .setFullMethodName("google.cloud.vmmigration.v1.VmMigration/GetDiskMigrationJob")
        +              .setHttpMethod("GET")
        +              .setType(ApiMethodDescriptor.MethodType.UNARY)
        +              .setRequestFormatter(
        +                  ProtoMessageRequestFormatter.newBuilder()
        +                      .setPath(
        +                          "/v1/{name=projects/*/locations/*/sources/*/diskMigrationJobs/*}",
        +                          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(DiskMigrationJob.getDefaultInstance())
        +                      .setDefaultTypeRegistry(typeRegistry)
        +                      .build())
        +              .build();
        +
        +  private static final ApiMethodDescriptor
        +      updateDiskMigrationJobMethodDescriptor =
        +          ApiMethodDescriptor.newBuilder()
        +              .setFullMethodName("google.cloud.vmmigration.v1.VmMigration/UpdateDiskMigrationJob")
        +              .setHttpMethod("PATCH")
        +              .setType(ApiMethodDescriptor.MethodType.UNARY)
        +              .setRequestFormatter(
        +                  ProtoMessageRequestFormatter.newBuilder()
        +                      .setPath(
        +                          "/v1/{diskMigrationJob.name=projects/*/locations/*/sources/*/diskMigrationJobs/*}",
        +                          request -> {
        +                            Map fields = new HashMap<>();
        +                            ProtoRestSerializer serializer =
        +                                ProtoRestSerializer.create();
        +                            serializer.putPathParam(
        +                                fields,
        +                                "diskMigrationJob.name",
        +                                request.getDiskMigrationJob().getName());
        +                            return fields;
        +                          })
        +                      .setQueryParamsExtractor(
        +                          request -> {
        +                            Map> fields = new HashMap<>();
        +                            ProtoRestSerializer serializer =
        +                                ProtoRestSerializer.create();
        +                            serializer.putQueryParam(fields, "requestId", request.getRequestId());
        +                            serializer.putQueryParam(fields, "updateMask", request.getUpdateMask());
        +                            serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
        +                            return fields;
        +                          })
        +                      .setRequestBodyExtractor(
        +                          request ->
        +                              ProtoRestSerializer.create()
        +                                  .toBody("diskMigrationJob", request.getDiskMigrationJob(), true))
        +                      .build())
        +              .setResponseParser(
        +                  ProtoMessageResponseParser.newBuilder()
        +                      .setDefaultInstance(Operation.getDefaultInstance())
        +                      .setDefaultTypeRegistry(typeRegistry)
        +                      .build())
        +              .setOperationSnapshotFactory(
        +                  (UpdateDiskMigrationJobRequest request, Operation response) ->
        +                      HttpJsonOperationSnapshot.create(response))
        +              .build();
        +
        +  private static final ApiMethodDescriptor
        +      deleteDiskMigrationJobMethodDescriptor =
        +          ApiMethodDescriptor.newBuilder()
        +              .setFullMethodName("google.cloud.vmmigration.v1.VmMigration/DeleteDiskMigrationJob")
        +              .setHttpMethod("DELETE")
        +              .setType(ApiMethodDescriptor.MethodType.UNARY)
        +              .setRequestFormatter(
        +                  ProtoMessageRequestFormatter.newBuilder()
        +                      .setPath(
        +                          "/v1/{name=projects/*/locations/*/sources/*/diskMigrationJobs/*}",
        +                          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(Operation.getDefaultInstance())
        +                      .setDefaultTypeRegistry(typeRegistry)
        +                      .build())
        +              .setOperationSnapshotFactory(
        +                  (DeleteDiskMigrationJobRequest request, Operation response) ->
        +                      HttpJsonOperationSnapshot.create(response))
        +              .build();
        +
        +  private static final ApiMethodDescriptor
        +      runDiskMigrationJobMethodDescriptor =
        +          ApiMethodDescriptor.newBuilder()
        +              .setFullMethodName("google.cloud.vmmigration.v1.VmMigration/RunDiskMigrationJob")
        +              .setHttpMethod("POST")
        +              .setType(ApiMethodDescriptor.MethodType.UNARY)
        +              .setRequestFormatter(
        +                  ProtoMessageRequestFormatter.newBuilder()
        +                      .setPath(
        +                          "/v1/{name=projects/*/locations/*/sources/*/diskMigrationJobs/*}:run",
        +                          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(
        +                  (RunDiskMigrationJobRequest request, Operation response) ->
        +                      HttpJsonOperationSnapshot.create(response))
        +              .build();
        +
        +  private static final ApiMethodDescriptor
        +      cancelDiskMigrationJobMethodDescriptor =
        +          ApiMethodDescriptor.newBuilder()
        +              .setFullMethodName("google.cloud.vmmigration.v1.VmMigration/CancelDiskMigrationJob")
        +              .setHttpMethod("POST")
        +              .setType(ApiMethodDescriptor.MethodType.UNARY)
        +              .setRequestFormatter(
        +                  ProtoMessageRequestFormatter.newBuilder()
        +                      .setPath(
        +                          "/v1/{name=projects/*/locations/*/sources/*/diskMigrationJobs/*}:cancel",
        +                          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(
        +                  (CancelDiskMigrationJobRequest 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 listSourcesCallable;
        +  private final UnaryCallable
        +      listSourcesPagedCallable;
        +  private final UnaryCallable getSourceCallable;
        +  private final UnaryCallable createSourceCallable;
        +  private final OperationCallable
        +      createSourceOperationCallable;
        +  private final UnaryCallable updateSourceCallable;
        +  private final OperationCallable
        +      updateSourceOperationCallable;
        +  private final UnaryCallable deleteSourceCallable;
        +  private final OperationCallable
        +      deleteSourceOperationCallable;
        +  private final UnaryCallable fetchInventoryCallable;
        +  private final UnaryCallable
        +      fetchStorageInventoryCallable;
        +  private final UnaryCallable
        +      fetchStorageInventoryPagedCallable;
        +  private final UnaryCallable
        +      listUtilizationReportsCallable;
        +  private final UnaryCallable
        +      listUtilizationReportsPagedCallable;
        +  private final UnaryCallable
        +      getUtilizationReportCallable;
        +  private final UnaryCallable
        +      createUtilizationReportCallable;
        +  private final OperationCallable<
        +          CreateUtilizationReportRequest, UtilizationReport, OperationMetadata>
        +      createUtilizationReportOperationCallable;
        +  private final UnaryCallable
        +      deleteUtilizationReportCallable;
        +  private final OperationCallable
        +      deleteUtilizationReportOperationCallable;
        +  private final UnaryCallable
        +      listDatacenterConnectorsCallable;
        +  private final UnaryCallable<
        +          ListDatacenterConnectorsRequest, ListDatacenterConnectorsPagedResponse>
        +      listDatacenterConnectorsPagedCallable;
        +  private final UnaryCallable
        +      getDatacenterConnectorCallable;
        +  private final UnaryCallable
        +      createDatacenterConnectorCallable;
        +  private final OperationCallable<
        +          CreateDatacenterConnectorRequest, DatacenterConnector, OperationMetadata>
        +      createDatacenterConnectorOperationCallable;
        +  private final UnaryCallable
        +      deleteDatacenterConnectorCallable;
        +  private final OperationCallable
               deleteDatacenterConnectorOperationCallable;
           private final UnaryCallable upgradeApplianceCallable;
           private final OperationCallable<
        @@ -2122,6 +2790,10 @@ public class HttpJsonVmMigrationStub extends VmMigrationStub {
           private final OperationCallable<
                   FinalizeMigrationRequest, FinalizeMigrationResponse, OperationMetadata>
               finalizeMigrationOperationCallable;
        +  private final UnaryCallable extendMigrationCallable;
        +  private final OperationCallable<
        +          ExtendMigrationRequest, ExtendMigrationResponse, OperationMetadata>
        +      extendMigrationOperationCallable;
           private final UnaryCallable createCloneJobCallable;
           private final OperationCallable
               createCloneJobOperationCallable;
        @@ -2184,6 +2856,55 @@ public class HttpJsonVmMigrationStub extends VmMigrationStub {
               listReplicationCyclesPagedCallable;
           private final UnaryCallable
               getReplicationCycleCallable;
        +  private final UnaryCallable
        +      listImageImportsCallable;
        +  private final UnaryCallable
        +      listImageImportsPagedCallable;
        +  private final UnaryCallable getImageImportCallable;
        +  private final UnaryCallable createImageImportCallable;
        +  private final OperationCallable
        +      createImageImportOperationCallable;
        +  private final UnaryCallable deleteImageImportCallable;
        +  private final OperationCallable
        +      deleteImageImportOperationCallable;
        +  private final UnaryCallable
        +      listImageImportJobsCallable;
        +  private final UnaryCallable
        +      listImageImportJobsPagedCallable;
        +  private final UnaryCallable getImageImportJobCallable;
        +  private final UnaryCallable cancelImageImportJobCallable;
        +  private final OperationCallable<
        +          CancelImageImportJobRequest, CancelImageImportJobResponse, OperationMetadata>
        +      cancelImageImportJobOperationCallable;
        +  private final UnaryCallable
        +      createDiskMigrationJobCallable;
        +  private final OperationCallable<
        +          CreateDiskMigrationJobRequest, DiskMigrationJob, OperationMetadata>
        +      createDiskMigrationJobOperationCallable;
        +  private final UnaryCallable
        +      listDiskMigrationJobsCallable;
        +  private final UnaryCallable
        +      listDiskMigrationJobsPagedCallable;
        +  private final UnaryCallable
        +      getDiskMigrationJobCallable;
        +  private final UnaryCallable
        +      updateDiskMigrationJobCallable;
        +  private final OperationCallable<
        +          UpdateDiskMigrationJobRequest, DiskMigrationJob, OperationMetadata>
        +      updateDiskMigrationJobOperationCallable;
        +  private final UnaryCallable
        +      deleteDiskMigrationJobCallable;
        +  private final OperationCallable
        +      deleteDiskMigrationJobOperationCallable;
        +  private final UnaryCallable runDiskMigrationJobCallable;
        +  private final OperationCallable<
        +          RunDiskMigrationJobRequest, RunDiskMigrationJobResponse, OperationMetadata>
        +      runDiskMigrationJobOperationCallable;
        +  private final UnaryCallable
        +      cancelDiskMigrationJobCallable;
        +  private final OperationCallable<
        +          CancelDiskMigrationJobRequest, CancelDiskMigrationJobResponse, OperationMetadata>
        +      cancelDiskMigrationJobOperationCallable;
           private final UnaryCallable listLocationsCallable;
           private final UnaryCallable
               listLocationsPagedCallable;
        @@ -2326,6 +3047,19 @@ protected HttpJsonVmMigrationStub(
                               return builder.build();
                             })
                         .build();
        +    HttpJsonCallSettings
        +        fetchStorageInventoryTransportSettings =
        +            HttpJsonCallSettings
        +                .newBuilder()
        +                .setMethodDescriptor(fetchStorageInventoryMethodDescriptor)
        +                .setTypeRegistry(typeRegistry)
        +                .setParamsExtractor(
        +                    request -> {
        +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
        +                      builder.add("source", String.valueOf(request.getSource()));
        +                      return builder.build();
        +                    })
        +                .build();
             HttpJsonCallSettings
                 listUtilizationReportsTransportSettings =
                     HttpJsonCallSettings
        @@ -2537,6 +3271,17 @@ protected HttpJsonVmMigrationStub(
                           return builder.build();
                         })
                     .build();
        +    HttpJsonCallSettings extendMigrationTransportSettings =
        +        HttpJsonCallSettings.newBuilder()
        +            .setMethodDescriptor(extendMigrationMethodDescriptor)
        +            .setTypeRegistry(typeRegistry)
        +            .setParamsExtractor(
        +                request -> {
        +                  RequestParamsBuilder builder = RequestParamsBuilder.create();
        +                  builder.add("migrating_vm", String.valueOf(request.getMigratingVm()));
        +                  return builder.build();
        +                })
        +            .build();
             HttpJsonCallSettings createCloneJobTransportSettings =
                 HttpJsonCallSettings.newBuilder()
                     .setMethodDescriptor(createCloneJobMethodDescriptor)
        @@ -2649,9 +3394,174 @@ protected HttpJsonVmMigrationStub(
                           return builder.build();
                         })
                     .build();
        -    HttpJsonCallSettings createGroupTransportSettings =
        -        HttpJsonCallSettings.newBuilder()
        -            .setMethodDescriptor(createGroupMethodDescriptor)
        +    HttpJsonCallSettings createGroupTransportSettings =
        +        HttpJsonCallSettings.newBuilder()
        +            .setMethodDescriptor(createGroupMethodDescriptor)
        +            .setTypeRegistry(typeRegistry)
        +            .setParamsExtractor(
        +                request -> {
        +                  RequestParamsBuilder builder = RequestParamsBuilder.create();
        +                  builder.add("parent", String.valueOf(request.getParent()));
        +                  return builder.build();
        +                })
        +            .build();
        +    HttpJsonCallSettings updateGroupTransportSettings =
        +        HttpJsonCallSettings.newBuilder()
        +            .setMethodDescriptor(updateGroupMethodDescriptor)
        +            .setTypeRegistry(typeRegistry)
        +            .setParamsExtractor(
        +                request -> {
        +                  RequestParamsBuilder builder = RequestParamsBuilder.create();
        +                  builder.add("group.name", String.valueOf(request.getGroup().getName()));
        +                  return builder.build();
        +                })
        +            .build();
        +    HttpJsonCallSettings deleteGroupTransportSettings =
        +        HttpJsonCallSettings.newBuilder()
        +            .setMethodDescriptor(deleteGroupMethodDescriptor)
        +            .setTypeRegistry(typeRegistry)
        +            .setParamsExtractor(
        +                request -> {
        +                  RequestParamsBuilder builder = RequestParamsBuilder.create();
        +                  builder.add("name", String.valueOf(request.getName()));
        +                  return builder.build();
        +                })
        +            .build();
        +    HttpJsonCallSettings addGroupMigrationTransportSettings =
        +        HttpJsonCallSettings.newBuilder()
        +            .setMethodDescriptor(addGroupMigrationMethodDescriptor)
        +            .setTypeRegistry(typeRegistry)
        +            .setParamsExtractor(
        +                request -> {
        +                  RequestParamsBuilder builder = RequestParamsBuilder.create();
        +                  builder.add("group", String.valueOf(request.getGroup()));
        +                  return builder.build();
        +                })
        +            .build();
        +    HttpJsonCallSettings
        +        removeGroupMigrationTransportSettings =
        +            HttpJsonCallSettings.newBuilder()
        +                .setMethodDescriptor(removeGroupMigrationMethodDescriptor)
        +                .setTypeRegistry(typeRegistry)
        +                .setParamsExtractor(
        +                    request -> {
        +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
        +                      builder.add("group", String.valueOf(request.getGroup()));
        +                      return builder.build();
        +                    })
        +                .build();
        +    HttpJsonCallSettings
        +        listTargetProjectsTransportSettings =
        +            HttpJsonCallSettings.newBuilder()
        +                .setMethodDescriptor(listTargetProjectsMethodDescriptor)
        +                .setTypeRegistry(typeRegistry)
        +                .setParamsExtractor(
        +                    request -> {
        +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
        +                      builder.add("parent", String.valueOf(request.getParent()));
        +                      return builder.build();
        +                    })
        +                .build();
        +    HttpJsonCallSettings getTargetProjectTransportSettings =
        +        HttpJsonCallSettings.newBuilder()
        +            .setMethodDescriptor(getTargetProjectMethodDescriptor)
        +            .setTypeRegistry(typeRegistry)
        +            .setParamsExtractor(
        +                request -> {
        +                  RequestParamsBuilder builder = RequestParamsBuilder.create();
        +                  builder.add("name", String.valueOf(request.getName()));
        +                  return builder.build();
        +                })
        +            .build();
        +    HttpJsonCallSettings
        +        createTargetProjectTransportSettings =
        +            HttpJsonCallSettings.newBuilder()
        +                .setMethodDescriptor(createTargetProjectMethodDescriptor)
        +                .setTypeRegistry(typeRegistry)
        +                .setParamsExtractor(
        +                    request -> {
        +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
        +                      builder.add("parent", String.valueOf(request.getParent()));
        +                      return builder.build();
        +                    })
        +                .build();
        +    HttpJsonCallSettings
        +        updateTargetProjectTransportSettings =
        +            HttpJsonCallSettings.newBuilder()
        +                .setMethodDescriptor(updateTargetProjectMethodDescriptor)
        +                .setTypeRegistry(typeRegistry)
        +                .setParamsExtractor(
        +                    request -> {
        +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
        +                      builder.add(
        +                          "target_project.name",
        +                          String.valueOf(request.getTargetProject().getName()));
        +                      return builder.build();
        +                    })
        +                .build();
        +    HttpJsonCallSettings
        +        deleteTargetProjectTransportSettings =
        +            HttpJsonCallSettings.newBuilder()
        +                .setMethodDescriptor(deleteTargetProjectMethodDescriptor)
        +                .setTypeRegistry(typeRegistry)
        +                .setParamsExtractor(
        +                    request -> {
        +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
        +                      builder.add("name", String.valueOf(request.getName()));
        +                      return builder.build();
        +                    })
        +                .build();
        +    HttpJsonCallSettings
        +        listReplicationCyclesTransportSettings =
        +            HttpJsonCallSettings
        +                .newBuilder()
        +                .setMethodDescriptor(listReplicationCyclesMethodDescriptor)
        +                .setTypeRegistry(typeRegistry)
        +                .setParamsExtractor(
        +                    request -> {
        +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
        +                      builder.add("parent", String.valueOf(request.getParent()));
        +                      return builder.build();
        +                    })
        +                .build();
        +    HttpJsonCallSettings
        +        getReplicationCycleTransportSettings =
        +            HttpJsonCallSettings.newBuilder()
        +                .setMethodDescriptor(getReplicationCycleMethodDescriptor)
        +                .setTypeRegistry(typeRegistry)
        +                .setParamsExtractor(
        +                    request -> {
        +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
        +                      builder.add("name", String.valueOf(request.getName()));
        +                      return builder.build();
        +                    })
        +                .build();
        +    HttpJsonCallSettings
        +        listImageImportsTransportSettings =
        +            HttpJsonCallSettings.newBuilder()
        +                .setMethodDescriptor(listImageImportsMethodDescriptor)
        +                .setTypeRegistry(typeRegistry)
        +                .setParamsExtractor(
        +                    request -> {
        +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
        +                      builder.add("parent", String.valueOf(request.getParent()));
        +                      return builder.build();
        +                    })
        +                .build();
        +    HttpJsonCallSettings getImageImportTransportSettings =
        +        HttpJsonCallSettings.newBuilder()
        +            .setMethodDescriptor(getImageImportMethodDescriptor)
        +            .setTypeRegistry(typeRegistry)
        +            .setParamsExtractor(
        +                request -> {
        +                  RequestParamsBuilder builder = RequestParamsBuilder.create();
        +                  builder.add("name", String.valueOf(request.getName()));
        +                  return builder.build();
        +                })
        +            .build();
        +    HttpJsonCallSettings createImageImportTransportSettings =
        +        HttpJsonCallSettings.newBuilder()
        +            .setMethodDescriptor(createImageImportMethodDescriptor)
                     .setTypeRegistry(typeRegistry)
                     .setParamsExtractor(
                         request -> {
        @@ -2660,20 +3570,9 @@ protected HttpJsonVmMigrationStub(
                           return builder.build();
                         })
                     .build();
        -    HttpJsonCallSettings updateGroupTransportSettings =
        -        HttpJsonCallSettings.newBuilder()
        -            .setMethodDescriptor(updateGroupMethodDescriptor)
        -            .setTypeRegistry(typeRegistry)
        -            .setParamsExtractor(
        -                request -> {
        -                  RequestParamsBuilder builder = RequestParamsBuilder.create();
        -                  builder.add("group.name", String.valueOf(request.getGroup().getName()));
        -                  return builder.build();
        -                })
        -            .build();
        -    HttpJsonCallSettings deleteGroupTransportSettings =
        -        HttpJsonCallSettings.newBuilder()
        -            .setMethodDescriptor(deleteGroupMethodDescriptor)
        +    HttpJsonCallSettings deleteImageImportTransportSettings =
        +        HttpJsonCallSettings.newBuilder()
        +            .setMethodDescriptor(deleteImageImportMethodDescriptor)
                     .setTypeRegistry(typeRegistry)
                     .setParamsExtractor(
                         request -> {
        @@ -2682,33 +3581,47 @@ protected HttpJsonVmMigrationStub(
                           return builder.build();
                         })
                     .build();
        -    HttpJsonCallSettings addGroupMigrationTransportSettings =
        -        HttpJsonCallSettings.newBuilder()
        -            .setMethodDescriptor(addGroupMigrationMethodDescriptor)
        -            .setTypeRegistry(typeRegistry)
        -            .setParamsExtractor(
        -                request -> {
        -                  RequestParamsBuilder builder = RequestParamsBuilder.create();
        -                  builder.add("group", String.valueOf(request.getGroup()));
        -                  return builder.build();
        -                })
        -            .build();
        -    HttpJsonCallSettings
        -        removeGroupMigrationTransportSettings =
        -            HttpJsonCallSettings.newBuilder()
        -                .setMethodDescriptor(removeGroupMigrationMethodDescriptor)
        +    HttpJsonCallSettings
        +        listImageImportJobsTransportSettings =
        +            HttpJsonCallSettings
        +                .newBuilder()
        +                .setMethodDescriptor(listImageImportJobsMethodDescriptor)
                         .setTypeRegistry(typeRegistry)
                         .setParamsExtractor(
                             request -> {
                               RequestParamsBuilder builder = RequestParamsBuilder.create();
        -                      builder.add("group", String.valueOf(request.getGroup()));
        +                      builder.add("parent", String.valueOf(request.getParent()));
                               return builder.build();
                             })
                         .build();
        -    HttpJsonCallSettings
        -        listTargetProjectsTransportSettings =
        -            HttpJsonCallSettings.newBuilder()
        -                .setMethodDescriptor(listTargetProjectsMethodDescriptor)
        +    HttpJsonCallSettings
        +        getImageImportJobTransportSettings =
        +            HttpJsonCallSettings.newBuilder()
        +                .setMethodDescriptor(getImageImportJobMethodDescriptor)
        +                .setTypeRegistry(typeRegistry)
        +                .setParamsExtractor(
        +                    request -> {
        +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
        +                      builder.add("name", String.valueOf(request.getName()));
        +                      return builder.build();
        +                    })
        +                .build();
        +    HttpJsonCallSettings
        +        cancelImageImportJobTransportSettings =
        +            HttpJsonCallSettings.newBuilder()
        +                .setMethodDescriptor(cancelImageImportJobMethodDescriptor)
        +                .setTypeRegistry(typeRegistry)
        +                .setParamsExtractor(
        +                    request -> {
        +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
        +                      builder.add("name", String.valueOf(request.getName()));
        +                      return builder.build();
        +                    })
        +                .build();
        +    HttpJsonCallSettings
        +        createDiskMigrationJobTransportSettings =
        +            HttpJsonCallSettings.newBuilder()
        +                .setMethodDescriptor(createDiskMigrationJobMethodDescriptor)
                         .setTypeRegistry(typeRegistry)
                         .setParamsExtractor(
                             request -> {
        @@ -2717,21 +3630,11 @@ protected HttpJsonVmMigrationStub(
                               return builder.build();
                             })
                         .build();
        -    HttpJsonCallSettings getTargetProjectTransportSettings =
        -        HttpJsonCallSettings.newBuilder()
        -            .setMethodDescriptor(getTargetProjectMethodDescriptor)
        -            .setTypeRegistry(typeRegistry)
        -            .setParamsExtractor(
        -                request -> {
        -                  RequestParamsBuilder builder = RequestParamsBuilder.create();
        -                  builder.add("name", String.valueOf(request.getName()));
        -                  return builder.build();
        -                })
        -            .build();
        -    HttpJsonCallSettings
        -        createTargetProjectTransportSettings =
        -            HttpJsonCallSettings.newBuilder()
        -                .setMethodDescriptor(createTargetProjectMethodDescriptor)
        +    HttpJsonCallSettings
        +        listDiskMigrationJobsTransportSettings =
        +            HttpJsonCallSettings
        +                .newBuilder()
        +                .setMethodDescriptor(listDiskMigrationJobsMethodDescriptor)
                         .setTypeRegistry(typeRegistry)
                         .setParamsExtractor(
                             request -> {
        @@ -2740,24 +3643,36 @@ protected HttpJsonVmMigrationStub(
                               return builder.build();
                             })
                         .build();
        -    HttpJsonCallSettings
        -        updateTargetProjectTransportSettings =
        -            HttpJsonCallSettings.newBuilder()
        -                .setMethodDescriptor(updateTargetProjectMethodDescriptor)
        +    HttpJsonCallSettings
        +        getDiskMigrationJobTransportSettings =
        +            HttpJsonCallSettings.newBuilder()
        +                .setMethodDescriptor(getDiskMigrationJobMethodDescriptor)
        +                .setTypeRegistry(typeRegistry)
        +                .setParamsExtractor(
        +                    request -> {
        +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
        +                      builder.add("name", String.valueOf(request.getName()));
        +                      return builder.build();
        +                    })
        +                .build();
        +    HttpJsonCallSettings
        +        updateDiskMigrationJobTransportSettings =
        +            HttpJsonCallSettings.newBuilder()
        +                .setMethodDescriptor(updateDiskMigrationJobMethodDescriptor)
                         .setTypeRegistry(typeRegistry)
                         .setParamsExtractor(
                             request -> {
                               RequestParamsBuilder builder = RequestParamsBuilder.create();
                               builder.add(
        -                          "target_project.name",
        -                          String.valueOf(request.getTargetProject().getName()));
        +                          "disk_migration_job.name",
        +                          String.valueOf(request.getDiskMigrationJob().getName()));
                               return builder.build();
                             })
                         .build();
        -    HttpJsonCallSettings
        -        deleteTargetProjectTransportSettings =
        -            HttpJsonCallSettings.newBuilder()
        -                .setMethodDescriptor(deleteTargetProjectMethodDescriptor)
        +    HttpJsonCallSettings
        +        deleteDiskMigrationJobTransportSettings =
        +            HttpJsonCallSettings.newBuilder()
        +                .setMethodDescriptor(deleteDiskMigrationJobMethodDescriptor)
                         .setTypeRegistry(typeRegistry)
                         .setParamsExtractor(
                             request -> {
        @@ -2766,23 +3681,22 @@ protected HttpJsonVmMigrationStub(
                               return builder.build();
                             })
                         .build();
        -    HttpJsonCallSettings
        -        listReplicationCyclesTransportSettings =
        -            HttpJsonCallSettings
        -                .newBuilder()
        -                .setMethodDescriptor(listReplicationCyclesMethodDescriptor)
        +    HttpJsonCallSettings
        +        runDiskMigrationJobTransportSettings =
        +            HttpJsonCallSettings.newBuilder()
        +                .setMethodDescriptor(runDiskMigrationJobMethodDescriptor)
                         .setTypeRegistry(typeRegistry)
                         .setParamsExtractor(
                             request -> {
                               RequestParamsBuilder builder = RequestParamsBuilder.create();
        -                      builder.add("parent", String.valueOf(request.getParent()));
        +                      builder.add("name", String.valueOf(request.getName()));
                               return builder.build();
                             })
                         .build();
        -    HttpJsonCallSettings
        -        getReplicationCycleTransportSettings =
        -            HttpJsonCallSettings.newBuilder()
        -                .setMethodDescriptor(getReplicationCycleMethodDescriptor)
        +    HttpJsonCallSettings
        +        cancelDiskMigrationJobTransportSettings =
        +            HttpJsonCallSettings.newBuilder()
        +                .setMethodDescriptor(cancelDiskMigrationJobMethodDescriptor)
                         .setTypeRegistry(typeRegistry)
                         .setParamsExtractor(
                             request -> {
        @@ -2854,6 +3768,16 @@ protected HttpJsonVmMigrationStub(
             this.fetchInventoryCallable =
                 callableFactory.createUnaryCallable(
                     fetchInventoryTransportSettings, settings.fetchInventorySettings(), clientContext);
        +    this.fetchStorageInventoryCallable =
        +        callableFactory.createUnaryCallable(
        +            fetchStorageInventoryTransportSettings,
        +            settings.fetchStorageInventorySettings(),
        +            clientContext);
        +    this.fetchStorageInventoryPagedCallable =
        +        callableFactory.createPagedCallable(
        +            fetchStorageInventoryTransportSettings,
        +            settings.fetchStorageInventorySettings(),
        +            clientContext);
             this.listUtilizationReportsCallable =
                 callableFactory.createUnaryCallable(
                     listUtilizationReportsTransportSettings,
        @@ -3017,6 +3941,15 @@ protected HttpJsonVmMigrationStub(
                     settings.finalizeMigrationOperationSettings(),
                     clientContext,
                     httpJsonOperationsStub);
        +    this.extendMigrationCallable =
        +        callableFactory.createUnaryCallable(
        +            extendMigrationTransportSettings, settings.extendMigrationSettings(), clientContext);
        +    this.extendMigrationOperationCallable =
        +        callableFactory.createOperationCallable(
        +            extendMigrationTransportSettings,
        +            settings.extendMigrationOperationSettings(),
        +            clientContext,
        +            httpJsonOperationsStub);
             this.createCloneJobCallable =
                 callableFactory.createUnaryCallable(
                     createCloneJobTransportSettings, settings.createCloneJobSettings(), clientContext);
        @@ -3190,6 +4123,133 @@ protected HttpJsonVmMigrationStub(
                     getReplicationCycleTransportSettings,
                     settings.getReplicationCycleSettings(),
                     clientContext);
        +    this.listImageImportsCallable =
        +        callableFactory.createUnaryCallable(
        +            listImageImportsTransportSettings, settings.listImageImportsSettings(), clientContext);
        +    this.listImageImportsPagedCallable =
        +        callableFactory.createPagedCallable(
        +            listImageImportsTransportSettings, settings.listImageImportsSettings(), clientContext);
        +    this.getImageImportCallable =
        +        callableFactory.createUnaryCallable(
        +            getImageImportTransportSettings, settings.getImageImportSettings(), clientContext);
        +    this.createImageImportCallable =
        +        callableFactory.createUnaryCallable(
        +            createImageImportTransportSettings,
        +            settings.createImageImportSettings(),
        +            clientContext);
        +    this.createImageImportOperationCallable =
        +        callableFactory.createOperationCallable(
        +            createImageImportTransportSettings,
        +            settings.createImageImportOperationSettings(),
        +            clientContext,
        +            httpJsonOperationsStub);
        +    this.deleteImageImportCallable =
        +        callableFactory.createUnaryCallable(
        +            deleteImageImportTransportSettings,
        +            settings.deleteImageImportSettings(),
        +            clientContext);
        +    this.deleteImageImportOperationCallable =
        +        callableFactory.createOperationCallable(
        +            deleteImageImportTransportSettings,
        +            settings.deleteImageImportOperationSettings(),
        +            clientContext,
        +            httpJsonOperationsStub);
        +    this.listImageImportJobsCallable =
        +        callableFactory.createUnaryCallable(
        +            listImageImportJobsTransportSettings,
        +            settings.listImageImportJobsSettings(),
        +            clientContext);
        +    this.listImageImportJobsPagedCallable =
        +        callableFactory.createPagedCallable(
        +            listImageImportJobsTransportSettings,
        +            settings.listImageImportJobsSettings(),
        +            clientContext);
        +    this.getImageImportJobCallable =
        +        callableFactory.createUnaryCallable(
        +            getImageImportJobTransportSettings,
        +            settings.getImageImportJobSettings(),
        +            clientContext);
        +    this.cancelImageImportJobCallable =
        +        callableFactory.createUnaryCallable(
        +            cancelImageImportJobTransportSettings,
        +            settings.cancelImageImportJobSettings(),
        +            clientContext);
        +    this.cancelImageImportJobOperationCallable =
        +        callableFactory.createOperationCallable(
        +            cancelImageImportJobTransportSettings,
        +            settings.cancelImageImportJobOperationSettings(),
        +            clientContext,
        +            httpJsonOperationsStub);
        +    this.createDiskMigrationJobCallable =
        +        callableFactory.createUnaryCallable(
        +            createDiskMigrationJobTransportSettings,
        +            settings.createDiskMigrationJobSettings(),
        +            clientContext);
        +    this.createDiskMigrationJobOperationCallable =
        +        callableFactory.createOperationCallable(
        +            createDiskMigrationJobTransportSettings,
        +            settings.createDiskMigrationJobOperationSettings(),
        +            clientContext,
        +            httpJsonOperationsStub);
        +    this.listDiskMigrationJobsCallable =
        +        callableFactory.createUnaryCallable(
        +            listDiskMigrationJobsTransportSettings,
        +            settings.listDiskMigrationJobsSettings(),
        +            clientContext);
        +    this.listDiskMigrationJobsPagedCallable =
        +        callableFactory.createPagedCallable(
        +            listDiskMigrationJobsTransportSettings,
        +            settings.listDiskMigrationJobsSettings(),
        +            clientContext);
        +    this.getDiskMigrationJobCallable =
        +        callableFactory.createUnaryCallable(
        +            getDiskMigrationJobTransportSettings,
        +            settings.getDiskMigrationJobSettings(),
        +            clientContext);
        +    this.updateDiskMigrationJobCallable =
        +        callableFactory.createUnaryCallable(
        +            updateDiskMigrationJobTransportSettings,
        +            settings.updateDiskMigrationJobSettings(),
        +            clientContext);
        +    this.updateDiskMigrationJobOperationCallable =
        +        callableFactory.createOperationCallable(
        +            updateDiskMigrationJobTransportSettings,
        +            settings.updateDiskMigrationJobOperationSettings(),
        +            clientContext,
        +            httpJsonOperationsStub);
        +    this.deleteDiskMigrationJobCallable =
        +        callableFactory.createUnaryCallable(
        +            deleteDiskMigrationJobTransportSettings,
        +            settings.deleteDiskMigrationJobSettings(),
        +            clientContext);
        +    this.deleteDiskMigrationJobOperationCallable =
        +        callableFactory.createOperationCallable(
        +            deleteDiskMigrationJobTransportSettings,
        +            settings.deleteDiskMigrationJobOperationSettings(),
        +            clientContext,
        +            httpJsonOperationsStub);
        +    this.runDiskMigrationJobCallable =
        +        callableFactory.createUnaryCallable(
        +            runDiskMigrationJobTransportSettings,
        +            settings.runDiskMigrationJobSettings(),
        +            clientContext);
        +    this.runDiskMigrationJobOperationCallable =
        +        callableFactory.createOperationCallable(
        +            runDiskMigrationJobTransportSettings,
        +            settings.runDiskMigrationJobOperationSettings(),
        +            clientContext,
        +            httpJsonOperationsStub);
        +    this.cancelDiskMigrationJobCallable =
        +        callableFactory.createUnaryCallable(
        +            cancelDiskMigrationJobTransportSettings,
        +            settings.cancelDiskMigrationJobSettings(),
        +            clientContext);
        +    this.cancelDiskMigrationJobOperationCallable =
        +        callableFactory.createOperationCallable(
        +            cancelDiskMigrationJobTransportSettings,
        +            settings.cancelDiskMigrationJobOperationSettings(),
        +            clientContext,
        +            httpJsonOperationsStub);
             this.listLocationsCallable =
                 callableFactory.createUnaryCallable(
                     listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
        @@ -3213,6 +4273,7 @@ public static List getMethodDescriptors() {
             methodDescriptors.add(updateSourceMethodDescriptor);
             methodDescriptors.add(deleteSourceMethodDescriptor);
             methodDescriptors.add(fetchInventoryMethodDescriptor);
        +    methodDescriptors.add(fetchStorageInventoryMethodDescriptor);
             methodDescriptors.add(listUtilizationReportsMethodDescriptor);
             methodDescriptors.add(getUtilizationReportMethodDescriptor);
             methodDescriptors.add(createUtilizationReportMethodDescriptor);
        @@ -3231,6 +4292,7 @@ public static List getMethodDescriptors() {
             methodDescriptors.add(resumeMigrationMethodDescriptor);
             methodDescriptors.add(pauseMigrationMethodDescriptor);
             methodDescriptors.add(finalizeMigrationMethodDescriptor);
        +    methodDescriptors.add(extendMigrationMethodDescriptor);
             methodDescriptors.add(createCloneJobMethodDescriptor);
             methodDescriptors.add(cancelCloneJobMethodDescriptor);
             methodDescriptors.add(listCloneJobsMethodDescriptor);
        @@ -3253,6 +4315,20 @@ public static List getMethodDescriptors() {
             methodDescriptors.add(deleteTargetProjectMethodDescriptor);
             methodDescriptors.add(listReplicationCyclesMethodDescriptor);
             methodDescriptors.add(getReplicationCycleMethodDescriptor);
        +    methodDescriptors.add(listImageImportsMethodDescriptor);
        +    methodDescriptors.add(getImageImportMethodDescriptor);
        +    methodDescriptors.add(createImageImportMethodDescriptor);
        +    methodDescriptors.add(deleteImageImportMethodDescriptor);
        +    methodDescriptors.add(listImageImportJobsMethodDescriptor);
        +    methodDescriptors.add(getImageImportJobMethodDescriptor);
        +    methodDescriptors.add(cancelImageImportJobMethodDescriptor);
        +    methodDescriptors.add(createDiskMigrationJobMethodDescriptor);
        +    methodDescriptors.add(listDiskMigrationJobsMethodDescriptor);
        +    methodDescriptors.add(getDiskMigrationJobMethodDescriptor);
        +    methodDescriptors.add(updateDiskMigrationJobMethodDescriptor);
        +    methodDescriptors.add(deleteDiskMigrationJobMethodDescriptor);
        +    methodDescriptors.add(runDiskMigrationJobMethodDescriptor);
        +    methodDescriptors.add(cancelDiskMigrationJobMethodDescriptor);
             methodDescriptors.add(listLocationsMethodDescriptor);
             methodDescriptors.add(getLocationMethodDescriptor);
             return methodDescriptors;
        @@ -3315,6 +4391,18 @@ public UnaryCallable fetchInvento
             return fetchInventoryCallable;
           }
         
        +  @Override
        +  public UnaryCallable
        +      fetchStorageInventoryCallable() {
        +    return fetchStorageInventoryCallable;
        +  }
        +
        +  @Override
        +  public UnaryCallable
        +      fetchStorageInventoryPagedCallable() {
        +    return fetchStorageInventoryPagedCallable;
        +  }
        +
           @Override
           public UnaryCallable
               listUtilizationReportsCallable() {
        @@ -3504,6 +4592,17 @@ public UnaryCallable finalizeMigrationCalla
             return finalizeMigrationOperationCallable;
           }
         
        +  @Override
        +  public UnaryCallable extendMigrationCallable() {
        +    return extendMigrationCallable;
        +  }
        +
        +  @Override
        +  public OperationCallable
        +      extendMigrationOperationCallable() {
        +    return extendMigrationOperationCallable;
        +  }
        +
           @Override
           public UnaryCallable createCloneJobCallable() {
             return createCloneJobCallable;
        @@ -3718,6 +4817,148 @@ public UnaryCallable getReplicatio
             return getReplicationCycleCallable;
           }
         
        +  @Override
        +  public UnaryCallable
        +      listImageImportsCallable() {
        +    return listImageImportsCallable;
        +  }
        +
        +  @Override
        +  public UnaryCallable
        +      listImageImportsPagedCallable() {
        +    return listImageImportsPagedCallable;
        +  }
        +
        +  @Override
        +  public UnaryCallable getImageImportCallable() {
        +    return getImageImportCallable;
        +  }
        +
        +  @Override
        +  public UnaryCallable createImageImportCallable() {
        +    return createImageImportCallable;
        +  }
        +
        +  @Override
        +  public OperationCallable
        +      createImageImportOperationCallable() {
        +    return createImageImportOperationCallable;
        +  }
        +
        +  @Override
        +  public UnaryCallable deleteImageImportCallable() {
        +    return deleteImageImportCallable;
        +  }
        +
        +  @Override
        +  public OperationCallable
        +      deleteImageImportOperationCallable() {
        +    return deleteImageImportOperationCallable;
        +  }
        +
        +  @Override
        +  public UnaryCallable
        +      listImageImportJobsCallable() {
        +    return listImageImportJobsCallable;
        +  }
        +
        +  @Override
        +  public UnaryCallable
        +      listImageImportJobsPagedCallable() {
        +    return listImageImportJobsPagedCallable;
        +  }
        +
        +  @Override
        +  public UnaryCallable getImageImportJobCallable() {
        +    return getImageImportJobCallable;
        +  }
        +
        +  @Override
        +  public UnaryCallable cancelImageImportJobCallable() {
        +    return cancelImageImportJobCallable;
        +  }
        +
        +  @Override
        +  public OperationCallable<
        +          CancelImageImportJobRequest, CancelImageImportJobResponse, OperationMetadata>
        +      cancelImageImportJobOperationCallable() {
        +    return cancelImageImportJobOperationCallable;
        +  }
        +
        +  @Override
        +  public UnaryCallable createDiskMigrationJobCallable() {
        +    return createDiskMigrationJobCallable;
        +  }
        +
        +  @Override
        +  public OperationCallable
        +      createDiskMigrationJobOperationCallable() {
        +    return createDiskMigrationJobOperationCallable;
        +  }
        +
        +  @Override
        +  public UnaryCallable
        +      listDiskMigrationJobsCallable() {
        +    return listDiskMigrationJobsCallable;
        +  }
        +
        +  @Override
        +  public UnaryCallable
        +      listDiskMigrationJobsPagedCallable() {
        +    return listDiskMigrationJobsPagedCallable;
        +  }
        +
        +  @Override
        +  public UnaryCallable getDiskMigrationJobCallable() {
        +    return getDiskMigrationJobCallable;
        +  }
        +
        +  @Override
        +  public UnaryCallable updateDiskMigrationJobCallable() {
        +    return updateDiskMigrationJobCallable;
        +  }
        +
        +  @Override
        +  public OperationCallable
        +      updateDiskMigrationJobOperationCallable() {
        +    return updateDiskMigrationJobOperationCallable;
        +  }
        +
        +  @Override
        +  public UnaryCallable deleteDiskMigrationJobCallable() {
        +    return deleteDiskMigrationJobCallable;
        +  }
        +
        +  @Override
        +  public OperationCallable
        +      deleteDiskMigrationJobOperationCallable() {
        +    return deleteDiskMigrationJobOperationCallable;
        +  }
        +
        +  @Override
        +  public UnaryCallable runDiskMigrationJobCallable() {
        +    return runDiskMigrationJobCallable;
        +  }
        +
        +  @Override
        +  public OperationCallable<
        +          RunDiskMigrationJobRequest, RunDiskMigrationJobResponse, OperationMetadata>
        +      runDiskMigrationJobOperationCallable() {
        +    return runDiskMigrationJobOperationCallable;
        +  }
        +
        +  @Override
        +  public UnaryCallable cancelDiskMigrationJobCallable() {
        +    return cancelDiskMigrationJobCallable;
        +  }
        +
        +  @Override
        +  public OperationCallable<
        +          CancelDiskMigrationJobRequest, CancelDiskMigrationJobResponse, OperationMetadata>
        +      cancelDiskMigrationJobOperationCallable() {
        +    return cancelDiskMigrationJobOperationCallable;
        +  }
        +
           @Override
           public UnaryCallable listLocationsCallable() {
             return listLocationsCallable;
        diff --git a/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/stub/VmMigrationStub.java b/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/stub/VmMigrationStub.java
        index e3b7c6e02f3b..79d7d7dde1c0 100644
        --- a/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/stub/VmMigrationStub.java
        +++ b/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/stub/VmMigrationStub.java
        @@ -16,10 +16,14 @@
         
         package com.google.cloud.vmmigration.v1.stub;
         
        +import static com.google.cloud.vmmigration.v1.VmMigrationClient.FetchStorageInventoryPagedResponse;
         import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListCloneJobsPagedResponse;
         import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListCutoverJobsPagedResponse;
         import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListDatacenterConnectorsPagedResponse;
        +import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListDiskMigrationJobsPagedResponse;
         import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListGroupsPagedResponse;
        +import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListImageImportJobsPagedResponse;
        +import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListImageImportsPagedResponse;
         import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListLocationsPagedResponse;
         import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListMigratingVmsPagedResponse;
         import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListReplicationCyclesPagedResponse;
        @@ -40,11 +44,17 @@
         import com.google.cloud.vmmigration.v1.CancelCloneJobResponse;
         import com.google.cloud.vmmigration.v1.CancelCutoverJobRequest;
         import com.google.cloud.vmmigration.v1.CancelCutoverJobResponse;
        +import com.google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest;
        +import com.google.cloud.vmmigration.v1.CancelDiskMigrationJobResponse;
        +import com.google.cloud.vmmigration.v1.CancelImageImportJobRequest;
        +import com.google.cloud.vmmigration.v1.CancelImageImportJobResponse;
         import com.google.cloud.vmmigration.v1.CloneJob;
         import com.google.cloud.vmmigration.v1.CreateCloneJobRequest;
         import com.google.cloud.vmmigration.v1.CreateCutoverJobRequest;
         import com.google.cloud.vmmigration.v1.CreateDatacenterConnectorRequest;
        +import com.google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest;
         import com.google.cloud.vmmigration.v1.CreateGroupRequest;
        +import com.google.cloud.vmmigration.v1.CreateImageImportRequest;
         import com.google.cloud.vmmigration.v1.CreateMigratingVmRequest;
         import com.google.cloud.vmmigration.v1.CreateSourceRequest;
         import com.google.cloud.vmmigration.v1.CreateTargetProjectRequest;
        @@ -52,33 +62,51 @@
         import com.google.cloud.vmmigration.v1.CutoverJob;
         import com.google.cloud.vmmigration.v1.DatacenterConnector;
         import com.google.cloud.vmmigration.v1.DeleteDatacenterConnectorRequest;
        +import com.google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest;
         import com.google.cloud.vmmigration.v1.DeleteGroupRequest;
        +import com.google.cloud.vmmigration.v1.DeleteImageImportRequest;
         import com.google.cloud.vmmigration.v1.DeleteMigratingVmRequest;
         import com.google.cloud.vmmigration.v1.DeleteSourceRequest;
         import com.google.cloud.vmmigration.v1.DeleteTargetProjectRequest;
         import com.google.cloud.vmmigration.v1.DeleteUtilizationReportRequest;
        +import com.google.cloud.vmmigration.v1.DiskMigrationJob;
        +import com.google.cloud.vmmigration.v1.ExtendMigrationRequest;
        +import com.google.cloud.vmmigration.v1.ExtendMigrationResponse;
         import com.google.cloud.vmmigration.v1.FetchInventoryRequest;
         import com.google.cloud.vmmigration.v1.FetchInventoryResponse;
        +import com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest;
        +import com.google.cloud.vmmigration.v1.FetchStorageInventoryResponse;
         import com.google.cloud.vmmigration.v1.FinalizeMigrationRequest;
         import com.google.cloud.vmmigration.v1.FinalizeMigrationResponse;
         import com.google.cloud.vmmigration.v1.GetCloneJobRequest;
         import com.google.cloud.vmmigration.v1.GetCutoverJobRequest;
         import com.google.cloud.vmmigration.v1.GetDatacenterConnectorRequest;
        +import com.google.cloud.vmmigration.v1.GetDiskMigrationJobRequest;
         import com.google.cloud.vmmigration.v1.GetGroupRequest;
        +import com.google.cloud.vmmigration.v1.GetImageImportJobRequest;
        +import com.google.cloud.vmmigration.v1.GetImageImportRequest;
         import com.google.cloud.vmmigration.v1.GetMigratingVmRequest;
         import com.google.cloud.vmmigration.v1.GetReplicationCycleRequest;
         import com.google.cloud.vmmigration.v1.GetSourceRequest;
         import com.google.cloud.vmmigration.v1.GetTargetProjectRequest;
         import com.google.cloud.vmmigration.v1.GetUtilizationReportRequest;
         import com.google.cloud.vmmigration.v1.Group;
        +import com.google.cloud.vmmigration.v1.ImageImport;
        +import com.google.cloud.vmmigration.v1.ImageImportJob;
         import com.google.cloud.vmmigration.v1.ListCloneJobsRequest;
         import com.google.cloud.vmmigration.v1.ListCloneJobsResponse;
         import com.google.cloud.vmmigration.v1.ListCutoverJobsRequest;
         import com.google.cloud.vmmigration.v1.ListCutoverJobsResponse;
         import com.google.cloud.vmmigration.v1.ListDatacenterConnectorsRequest;
         import com.google.cloud.vmmigration.v1.ListDatacenterConnectorsResponse;
        +import com.google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest;
        +import com.google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse;
         import com.google.cloud.vmmigration.v1.ListGroupsRequest;
         import com.google.cloud.vmmigration.v1.ListGroupsResponse;
        +import com.google.cloud.vmmigration.v1.ListImageImportJobsRequest;
        +import com.google.cloud.vmmigration.v1.ListImageImportJobsResponse;
        +import com.google.cloud.vmmigration.v1.ListImageImportsRequest;
        +import com.google.cloud.vmmigration.v1.ListImageImportsResponse;
         import com.google.cloud.vmmigration.v1.ListMigratingVmsRequest;
         import com.google.cloud.vmmigration.v1.ListMigratingVmsResponse;
         import com.google.cloud.vmmigration.v1.ListReplicationCyclesRequest;
        @@ -98,10 +126,13 @@
         import com.google.cloud.vmmigration.v1.ReplicationCycle;
         import com.google.cloud.vmmigration.v1.ResumeMigrationRequest;
         import com.google.cloud.vmmigration.v1.ResumeMigrationResponse;
        +import com.google.cloud.vmmigration.v1.RunDiskMigrationJobRequest;
        +import com.google.cloud.vmmigration.v1.RunDiskMigrationJobResponse;
         import com.google.cloud.vmmigration.v1.Source;
         import com.google.cloud.vmmigration.v1.StartMigrationRequest;
         import com.google.cloud.vmmigration.v1.StartMigrationResponse;
         import com.google.cloud.vmmigration.v1.TargetProject;
        +import com.google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest;
         import com.google.cloud.vmmigration.v1.UpdateGroupRequest;
         import com.google.cloud.vmmigration.v1.UpdateMigratingVmRequest;
         import com.google.cloud.vmmigration.v1.UpdateSourceRequest;
        @@ -174,6 +205,17 @@ public UnaryCallable fetchInvento
             throw new UnsupportedOperationException("Not implemented: fetchInventoryCallable()");
           }
         
        +  public UnaryCallable
        +      fetchStorageInventoryPagedCallable() {
        +    throw new UnsupportedOperationException(
        +        "Not implemented: fetchStorageInventoryPagedCallable()");
        +  }
        +
        +  public UnaryCallable
        +      fetchStorageInventoryCallable() {
        +    throw new UnsupportedOperationException("Not implemented: fetchStorageInventoryCallable()");
        +  }
        +
           public UnaryCallable
               listUtilizationReportsPagedCallable() {
             throw new UnsupportedOperationException(
        @@ -340,6 +382,15 @@ public UnaryCallable finalizeMigrationCalla
             throw new UnsupportedOperationException("Not implemented: finalizeMigrationCallable()");
           }
         
        +  public OperationCallable
        +      extendMigrationOperationCallable() {
        +    throw new UnsupportedOperationException("Not implemented: extendMigrationOperationCallable()");
        +  }
        +
        +  public UnaryCallable extendMigrationCallable() {
        +    throw new UnsupportedOperationException("Not implemented: extendMigrationCallable()");
        +  }
        +
           public OperationCallable
               createCloneJobOperationCallable() {
             throw new UnsupportedOperationException("Not implemented: createCloneJobOperationCallable()");
        @@ -521,6 +572,132 @@ public UnaryCallable getReplicatio
             throw new UnsupportedOperationException("Not implemented: getReplicationCycleCallable()");
           }
         
        +  public UnaryCallable
        +      listImageImportsPagedCallable() {
        +    throw new UnsupportedOperationException("Not implemented: listImageImportsPagedCallable()");
        +  }
        +
        +  public UnaryCallable
        +      listImageImportsCallable() {
        +    throw new UnsupportedOperationException("Not implemented: listImageImportsCallable()");
        +  }
        +
        +  public UnaryCallable getImageImportCallable() {
        +    throw new UnsupportedOperationException("Not implemented: getImageImportCallable()");
        +  }
        +
        +  public OperationCallable
        +      createImageImportOperationCallable() {
        +    throw new UnsupportedOperationException(
        +        "Not implemented: createImageImportOperationCallable()");
        +  }
        +
        +  public UnaryCallable createImageImportCallable() {
        +    throw new UnsupportedOperationException("Not implemented: createImageImportCallable()");
        +  }
        +
        +  public OperationCallable
        +      deleteImageImportOperationCallable() {
        +    throw new UnsupportedOperationException(
        +        "Not implemented: deleteImageImportOperationCallable()");
        +  }
        +
        +  public UnaryCallable deleteImageImportCallable() {
        +    throw new UnsupportedOperationException("Not implemented: deleteImageImportCallable()");
        +  }
        +
        +  public UnaryCallable
        +      listImageImportJobsPagedCallable() {
        +    throw new UnsupportedOperationException("Not implemented: listImageImportJobsPagedCallable()");
        +  }
        +
        +  public UnaryCallable
        +      listImageImportJobsCallable() {
        +    throw new UnsupportedOperationException("Not implemented: listImageImportJobsCallable()");
        +  }
        +
        +  public UnaryCallable getImageImportJobCallable() {
        +    throw new UnsupportedOperationException("Not implemented: getImageImportJobCallable()");
        +  }
        +
        +  public OperationCallable<
        +          CancelImageImportJobRequest, CancelImageImportJobResponse, OperationMetadata>
        +      cancelImageImportJobOperationCallable() {
        +    throw new UnsupportedOperationException(
        +        "Not implemented: cancelImageImportJobOperationCallable()");
        +  }
        +
        +  public UnaryCallable cancelImageImportJobCallable() {
        +    throw new UnsupportedOperationException("Not implemented: cancelImageImportJobCallable()");
        +  }
        +
        +  public OperationCallable
        +      createDiskMigrationJobOperationCallable() {
        +    throw new UnsupportedOperationException(
        +        "Not implemented: createDiskMigrationJobOperationCallable()");
        +  }
        +
        +  public UnaryCallable createDiskMigrationJobCallable() {
        +    throw new UnsupportedOperationException("Not implemented: createDiskMigrationJobCallable()");
        +  }
        +
        +  public UnaryCallable
        +      listDiskMigrationJobsPagedCallable() {
        +    throw new UnsupportedOperationException(
        +        "Not implemented: listDiskMigrationJobsPagedCallable()");
        +  }
        +
        +  public UnaryCallable
        +      listDiskMigrationJobsCallable() {
        +    throw new UnsupportedOperationException("Not implemented: listDiskMigrationJobsCallable()");
        +  }
        +
        +  public UnaryCallable getDiskMigrationJobCallable() {
        +    throw new UnsupportedOperationException("Not implemented: getDiskMigrationJobCallable()");
        +  }
        +
        +  public OperationCallable
        +      updateDiskMigrationJobOperationCallable() {
        +    throw new UnsupportedOperationException(
        +        "Not implemented: updateDiskMigrationJobOperationCallable()");
        +  }
        +
        +  public UnaryCallable updateDiskMigrationJobCallable() {
        +    throw new UnsupportedOperationException("Not implemented: updateDiskMigrationJobCallable()");
        +  }
        +
        +  public OperationCallable
        +      deleteDiskMigrationJobOperationCallable() {
        +    throw new UnsupportedOperationException(
        +        "Not implemented: deleteDiskMigrationJobOperationCallable()");
        +  }
        +
        +  public UnaryCallable deleteDiskMigrationJobCallable() {
        +    throw new UnsupportedOperationException("Not implemented: deleteDiskMigrationJobCallable()");
        +  }
        +
        +  public OperationCallable<
        +          RunDiskMigrationJobRequest, RunDiskMigrationJobResponse, OperationMetadata>
        +      runDiskMigrationJobOperationCallable() {
        +    throw new UnsupportedOperationException(
        +        "Not implemented: runDiskMigrationJobOperationCallable()");
        +  }
        +
        +  public UnaryCallable runDiskMigrationJobCallable() {
        +    throw new UnsupportedOperationException("Not implemented: runDiskMigrationJobCallable()");
        +  }
        +
        +  public OperationCallable<
        +          CancelDiskMigrationJobRequest, CancelDiskMigrationJobResponse, OperationMetadata>
        +      cancelDiskMigrationJobOperationCallable() {
        +    throw new UnsupportedOperationException(
        +        "Not implemented: cancelDiskMigrationJobOperationCallable()");
        +  }
        +
        +  public UnaryCallable cancelDiskMigrationJobCallable() {
        +    throw new UnsupportedOperationException("Not implemented: cancelDiskMigrationJobCallable()");
        +  }
        +
           public UnaryCallable
               listLocationsPagedCallable() {
             throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
        diff --git a/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/stub/VmMigrationStubSettings.java b/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/stub/VmMigrationStubSettings.java
        index 3df400f20628..5e0d080d4e1c 100644
        --- a/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/stub/VmMigrationStubSettings.java
        +++ b/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/stub/VmMigrationStubSettings.java
        @@ -16,10 +16,14 @@
         
         package com.google.cloud.vmmigration.v1.stub;
         
        +import static com.google.cloud.vmmigration.v1.VmMigrationClient.FetchStorageInventoryPagedResponse;
         import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListCloneJobsPagedResponse;
         import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListCutoverJobsPagedResponse;
         import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListDatacenterConnectorsPagedResponse;
        +import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListDiskMigrationJobsPagedResponse;
         import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListGroupsPagedResponse;
        +import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListImageImportJobsPagedResponse;
        +import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListImageImportsPagedResponse;
         import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListLocationsPagedResponse;
         import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListMigratingVmsPagedResponse;
         import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListReplicationCyclesPagedResponse;
        @@ -67,11 +71,17 @@
         import com.google.cloud.vmmigration.v1.CancelCloneJobResponse;
         import com.google.cloud.vmmigration.v1.CancelCutoverJobRequest;
         import com.google.cloud.vmmigration.v1.CancelCutoverJobResponse;
        +import com.google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest;
        +import com.google.cloud.vmmigration.v1.CancelDiskMigrationJobResponse;
        +import com.google.cloud.vmmigration.v1.CancelImageImportJobRequest;
        +import com.google.cloud.vmmigration.v1.CancelImageImportJobResponse;
         import com.google.cloud.vmmigration.v1.CloneJob;
         import com.google.cloud.vmmigration.v1.CreateCloneJobRequest;
         import com.google.cloud.vmmigration.v1.CreateCutoverJobRequest;
         import com.google.cloud.vmmigration.v1.CreateDatacenterConnectorRequest;
        +import com.google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest;
         import com.google.cloud.vmmigration.v1.CreateGroupRequest;
        +import com.google.cloud.vmmigration.v1.CreateImageImportRequest;
         import com.google.cloud.vmmigration.v1.CreateMigratingVmRequest;
         import com.google.cloud.vmmigration.v1.CreateSourceRequest;
         import com.google.cloud.vmmigration.v1.CreateTargetProjectRequest;
        @@ -79,33 +89,51 @@
         import com.google.cloud.vmmigration.v1.CutoverJob;
         import com.google.cloud.vmmigration.v1.DatacenterConnector;
         import com.google.cloud.vmmigration.v1.DeleteDatacenterConnectorRequest;
        +import com.google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest;
         import com.google.cloud.vmmigration.v1.DeleteGroupRequest;
        +import com.google.cloud.vmmigration.v1.DeleteImageImportRequest;
         import com.google.cloud.vmmigration.v1.DeleteMigratingVmRequest;
         import com.google.cloud.vmmigration.v1.DeleteSourceRequest;
         import com.google.cloud.vmmigration.v1.DeleteTargetProjectRequest;
         import com.google.cloud.vmmigration.v1.DeleteUtilizationReportRequest;
        +import com.google.cloud.vmmigration.v1.DiskMigrationJob;
        +import com.google.cloud.vmmigration.v1.ExtendMigrationRequest;
        +import com.google.cloud.vmmigration.v1.ExtendMigrationResponse;
         import com.google.cloud.vmmigration.v1.FetchInventoryRequest;
         import com.google.cloud.vmmigration.v1.FetchInventoryResponse;
        +import com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest;
        +import com.google.cloud.vmmigration.v1.FetchStorageInventoryResponse;
         import com.google.cloud.vmmigration.v1.FinalizeMigrationRequest;
         import com.google.cloud.vmmigration.v1.FinalizeMigrationResponse;
         import com.google.cloud.vmmigration.v1.GetCloneJobRequest;
         import com.google.cloud.vmmigration.v1.GetCutoverJobRequest;
         import com.google.cloud.vmmigration.v1.GetDatacenterConnectorRequest;
        +import com.google.cloud.vmmigration.v1.GetDiskMigrationJobRequest;
         import com.google.cloud.vmmigration.v1.GetGroupRequest;
        +import com.google.cloud.vmmigration.v1.GetImageImportJobRequest;
        +import com.google.cloud.vmmigration.v1.GetImageImportRequest;
         import com.google.cloud.vmmigration.v1.GetMigratingVmRequest;
         import com.google.cloud.vmmigration.v1.GetReplicationCycleRequest;
         import com.google.cloud.vmmigration.v1.GetSourceRequest;
         import com.google.cloud.vmmigration.v1.GetTargetProjectRequest;
         import com.google.cloud.vmmigration.v1.GetUtilizationReportRequest;
         import com.google.cloud.vmmigration.v1.Group;
        +import com.google.cloud.vmmigration.v1.ImageImport;
        +import com.google.cloud.vmmigration.v1.ImageImportJob;
         import com.google.cloud.vmmigration.v1.ListCloneJobsRequest;
         import com.google.cloud.vmmigration.v1.ListCloneJobsResponse;
         import com.google.cloud.vmmigration.v1.ListCutoverJobsRequest;
         import com.google.cloud.vmmigration.v1.ListCutoverJobsResponse;
         import com.google.cloud.vmmigration.v1.ListDatacenterConnectorsRequest;
         import com.google.cloud.vmmigration.v1.ListDatacenterConnectorsResponse;
        +import com.google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest;
        +import com.google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse;
         import com.google.cloud.vmmigration.v1.ListGroupsRequest;
         import com.google.cloud.vmmigration.v1.ListGroupsResponse;
        +import com.google.cloud.vmmigration.v1.ListImageImportJobsRequest;
        +import com.google.cloud.vmmigration.v1.ListImageImportJobsResponse;
        +import com.google.cloud.vmmigration.v1.ListImageImportsRequest;
        +import com.google.cloud.vmmigration.v1.ListImageImportsResponse;
         import com.google.cloud.vmmigration.v1.ListMigratingVmsRequest;
         import com.google.cloud.vmmigration.v1.ListMigratingVmsResponse;
         import com.google.cloud.vmmigration.v1.ListReplicationCyclesRequest;
        @@ -125,10 +153,14 @@
         import com.google.cloud.vmmigration.v1.ReplicationCycle;
         import com.google.cloud.vmmigration.v1.ResumeMigrationRequest;
         import com.google.cloud.vmmigration.v1.ResumeMigrationResponse;
        +import com.google.cloud.vmmigration.v1.RunDiskMigrationJobRequest;
        +import com.google.cloud.vmmigration.v1.RunDiskMigrationJobResponse;
         import com.google.cloud.vmmigration.v1.Source;
        +import com.google.cloud.vmmigration.v1.SourceStorageResource;
         import com.google.cloud.vmmigration.v1.StartMigrationRequest;
         import com.google.cloud.vmmigration.v1.StartMigrationResponse;
         import com.google.cloud.vmmigration.v1.TargetProject;
        +import com.google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest;
         import com.google.cloud.vmmigration.v1.UpdateGroupRequest;
         import com.google.cloud.vmmigration.v1.UpdateMigratingVmRequest;
         import com.google.cloud.vmmigration.v1.UpdateSourceRequest;
        @@ -243,6 +275,11 @@ public class VmMigrationStubSettings extends StubSettings
               fetchInventorySettings;
        +  private final PagedCallSettings<
        +          FetchStorageInventoryRequest,
        +          FetchStorageInventoryResponse,
        +          FetchStorageInventoryPagedResponse>
        +      fetchStorageInventorySettings;
           private final PagedCallSettings<
                   ListUtilizationReportsRequest,
                   ListUtilizationReportsResponse,
        @@ -308,6 +345,10 @@ public class VmMigrationStubSettings extends StubSettings
               finalizeMigrationOperationSettings;
        +  private final UnaryCallSettings extendMigrationSettings;
        +  private final OperationCallSettings<
        +          ExtendMigrationRequest, ExtendMigrationResponse, OperationMetadata>
        +      extendMigrationOperationSettings;
           private final UnaryCallSettings createCloneJobSettings;
           private final OperationCallSettings
               createCloneJobOperationSettings;
        @@ -374,6 +415,57 @@ public class VmMigrationStubSettings extends StubSettings
               getReplicationCycleSettings;
        +  private final PagedCallSettings<
        +          ListImageImportsRequest, ListImageImportsResponse, ListImageImportsPagedResponse>
        +      listImageImportsSettings;
        +  private final UnaryCallSettings getImageImportSettings;
        +  private final UnaryCallSettings createImageImportSettings;
        +  private final OperationCallSettings
        +      createImageImportOperationSettings;
        +  private final UnaryCallSettings deleteImageImportSettings;
        +  private final OperationCallSettings
        +      deleteImageImportOperationSettings;
        +  private final PagedCallSettings<
        +          ListImageImportJobsRequest, ListImageImportJobsResponse, ListImageImportJobsPagedResponse>
        +      listImageImportJobsSettings;
        +  private final UnaryCallSettings
        +      getImageImportJobSettings;
        +  private final UnaryCallSettings
        +      cancelImageImportJobSettings;
        +  private final OperationCallSettings<
        +          CancelImageImportJobRequest, CancelImageImportJobResponse, OperationMetadata>
        +      cancelImageImportJobOperationSettings;
        +  private final UnaryCallSettings
        +      createDiskMigrationJobSettings;
        +  private final OperationCallSettings<
        +          CreateDiskMigrationJobRequest, DiskMigrationJob, OperationMetadata>
        +      createDiskMigrationJobOperationSettings;
        +  private final PagedCallSettings<
        +          ListDiskMigrationJobsRequest,
        +          ListDiskMigrationJobsResponse,
        +          ListDiskMigrationJobsPagedResponse>
        +      listDiskMigrationJobsSettings;
        +  private final UnaryCallSettings
        +      getDiskMigrationJobSettings;
        +  private final UnaryCallSettings
        +      updateDiskMigrationJobSettings;
        +  private final OperationCallSettings<
        +          UpdateDiskMigrationJobRequest, DiskMigrationJob, OperationMetadata>
        +      updateDiskMigrationJobOperationSettings;
        +  private final UnaryCallSettings
        +      deleteDiskMigrationJobSettings;
        +  private final OperationCallSettings
        +      deleteDiskMigrationJobOperationSettings;
        +  private final UnaryCallSettings
        +      runDiskMigrationJobSettings;
        +  private final OperationCallSettings<
        +          RunDiskMigrationJobRequest, RunDiskMigrationJobResponse, OperationMetadata>
        +      runDiskMigrationJobOperationSettings;
        +  private final UnaryCallSettings
        +      cancelDiskMigrationJobSettings;
        +  private final OperationCallSettings<
        +          CancelDiskMigrationJobRequest, CancelDiskMigrationJobResponse, OperationMetadata>
        +      cancelDiskMigrationJobOperationSettings;
           private final PagedCallSettings<
                   ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
               listLocationsSettings;
        @@ -413,6 +505,47 @@ public Iterable extractResources(ListSourcesResponse payload) {
                     }
                   };
         
        +  private static final PagedListDescriptor<
        +          FetchStorageInventoryRequest, FetchStorageInventoryResponse, SourceStorageResource>
        +      FETCH_STORAGE_INVENTORY_PAGE_STR_DESC =
        +          new PagedListDescriptor<
        +              FetchStorageInventoryRequest,
        +              FetchStorageInventoryResponse,
        +              SourceStorageResource>() {
        +            @Override
        +            public String emptyToken() {
        +              return "";
        +            }
        +
        +            @Override
        +            public FetchStorageInventoryRequest injectToken(
        +                FetchStorageInventoryRequest payload, String token) {
        +              return FetchStorageInventoryRequest.newBuilder(payload).setPageToken(token).build();
        +            }
        +
        +            @Override
        +            public FetchStorageInventoryRequest injectPageSize(
        +                FetchStorageInventoryRequest payload, int pageSize) {
        +              return FetchStorageInventoryRequest.newBuilder(payload).setPageSize(pageSize).build();
        +            }
        +
        +            @Override
        +            public Integer extractPageSize(FetchStorageInventoryRequest payload) {
        +              return payload.getPageSize();
        +            }
        +
        +            @Override
        +            public String extractNextToken(FetchStorageInventoryResponse payload) {
        +              return payload.getNextPageToken();
        +            }
        +
        +            @Override
        +            public Iterable extractResources(
        +                FetchStorageInventoryResponse payload) {
        +              return payload.getResourcesList();
        +            }
        +          };
        +
           private static final PagedListDescriptor<
                   ListUtilizationReportsRequest, ListUtilizationReportsResponse, UtilizationReport>
               LIST_UTILIZATION_REPORTS_PAGE_STR_DESC =
        @@ -719,6 +852,121 @@ public Iterable extractResources(
                     }
                   };
         
        +  private static final PagedListDescriptor<
        +          ListImageImportsRequest, ListImageImportsResponse, ImageImport>
        +      LIST_IMAGE_IMPORTS_PAGE_STR_DESC =
        +          new PagedListDescriptor<
        +              ListImageImportsRequest, ListImageImportsResponse, ImageImport>() {
        +            @Override
        +            public String emptyToken() {
        +              return "";
        +            }
        +
        +            @Override
        +            public ListImageImportsRequest injectToken(
        +                ListImageImportsRequest payload, String token) {
        +              return ListImageImportsRequest.newBuilder(payload).setPageToken(token).build();
        +            }
        +
        +            @Override
        +            public ListImageImportsRequest injectPageSize(
        +                ListImageImportsRequest payload, int pageSize) {
        +              return ListImageImportsRequest.newBuilder(payload).setPageSize(pageSize).build();
        +            }
        +
        +            @Override
        +            public Integer extractPageSize(ListImageImportsRequest payload) {
        +              return payload.getPageSize();
        +            }
        +
        +            @Override
        +            public String extractNextToken(ListImageImportsResponse payload) {
        +              return payload.getNextPageToken();
        +            }
        +
        +            @Override
        +            public Iterable extractResources(ListImageImportsResponse payload) {
        +              return payload.getImageImportsList();
        +            }
        +          };
        +
        +  private static final PagedListDescriptor<
        +          ListImageImportJobsRequest, ListImageImportJobsResponse, ImageImportJob>
        +      LIST_IMAGE_IMPORT_JOBS_PAGE_STR_DESC =
        +          new PagedListDescriptor<
        +              ListImageImportJobsRequest, ListImageImportJobsResponse, ImageImportJob>() {
        +            @Override
        +            public String emptyToken() {
        +              return "";
        +            }
        +
        +            @Override
        +            public ListImageImportJobsRequest injectToken(
        +                ListImageImportJobsRequest payload, String token) {
        +              return ListImageImportJobsRequest.newBuilder(payload).setPageToken(token).build();
        +            }
        +
        +            @Override
        +            public ListImageImportJobsRequest injectPageSize(
        +                ListImageImportJobsRequest payload, int pageSize) {
        +              return ListImageImportJobsRequest.newBuilder(payload).setPageSize(pageSize).build();
        +            }
        +
        +            @Override
        +            public Integer extractPageSize(ListImageImportJobsRequest payload) {
        +              return payload.getPageSize();
        +            }
        +
        +            @Override
        +            public String extractNextToken(ListImageImportJobsResponse payload) {
        +              return payload.getNextPageToken();
        +            }
        +
        +            @Override
        +            public Iterable extractResources(ListImageImportJobsResponse payload) {
        +              return payload.getImageImportJobsList();
        +            }
        +          };
        +
        +  private static final PagedListDescriptor<
        +          ListDiskMigrationJobsRequest, ListDiskMigrationJobsResponse, DiskMigrationJob>
        +      LIST_DISK_MIGRATION_JOBS_PAGE_STR_DESC =
        +          new PagedListDescriptor<
        +              ListDiskMigrationJobsRequest, ListDiskMigrationJobsResponse, DiskMigrationJob>() {
        +            @Override
        +            public String emptyToken() {
        +              return "";
        +            }
        +
        +            @Override
        +            public ListDiskMigrationJobsRequest injectToken(
        +                ListDiskMigrationJobsRequest payload, String token) {
        +              return ListDiskMigrationJobsRequest.newBuilder(payload).setPageToken(token).build();
        +            }
        +
        +            @Override
        +            public ListDiskMigrationJobsRequest injectPageSize(
        +                ListDiskMigrationJobsRequest payload, int pageSize) {
        +              return ListDiskMigrationJobsRequest.newBuilder(payload).setPageSize(pageSize).build();
        +            }
        +
        +            @Override
        +            public Integer extractPageSize(ListDiskMigrationJobsRequest payload) {
        +              return payload.getPageSize();
        +            }
        +
        +            @Override
        +            public String extractNextToken(ListDiskMigrationJobsResponse payload) {
        +              return payload.getNextPageToken();
        +            }
        +
        +            @Override
        +            public Iterable extractResources(
        +                ListDiskMigrationJobsResponse payload) {
        +              return payload.getDiskMigrationJobsList();
        +            }
        +          };
        +
           private static final PagedListDescriptor
               LIST_LOCATIONS_PAGE_STR_DESC =
                   new PagedListDescriptor() {
        @@ -770,6 +1018,32 @@ public ApiFuture getFuturePagedResponse(
                     }
                   };
         
        +  private static final PagedListResponseFactory<
        +          FetchStorageInventoryRequest,
        +          FetchStorageInventoryResponse,
        +          FetchStorageInventoryPagedResponse>
        +      FETCH_STORAGE_INVENTORY_PAGE_STR_FACT =
        +          new PagedListResponseFactory<
        +              FetchStorageInventoryRequest,
        +              FetchStorageInventoryResponse,
        +              FetchStorageInventoryPagedResponse>() {
        +            @Override
        +            public ApiFuture getFuturePagedResponse(
        +                UnaryCallable callable,
        +                FetchStorageInventoryRequest request,
        +                ApiCallContext context,
        +                ApiFuture futureResponse) {
        +              PageContext<
        +                      FetchStorageInventoryRequest,
        +                      FetchStorageInventoryResponse,
        +                      SourceStorageResource>
        +                  pageContext =
        +                      PageContext.create(
        +                          callable, FETCH_STORAGE_INVENTORY_PAGE_STR_DESC, request, context);
        +              return FetchStorageInventoryPagedResponse.createAsync(pageContext, futureResponse);
        +            }
        +          };
        +
           private static final PagedListResponseFactory<
                   ListUtilizationReportsRequest,
                   ListUtilizationReportsResponse,
        @@ -939,6 +1213,70 @@ public ApiFuture getFuturePagedResponse(
                     }
                   };
         
        +  private static final PagedListResponseFactory<
        +          ListImageImportsRequest, ListImageImportsResponse, ListImageImportsPagedResponse>
        +      LIST_IMAGE_IMPORTS_PAGE_STR_FACT =
        +          new PagedListResponseFactory<
        +              ListImageImportsRequest, ListImageImportsResponse, ListImageImportsPagedResponse>() {
        +            @Override
        +            public ApiFuture getFuturePagedResponse(
        +                UnaryCallable callable,
        +                ListImageImportsRequest request,
        +                ApiCallContext context,
        +                ApiFuture futureResponse) {
        +              PageContext
        +                  pageContext =
        +                      PageContext.create(
        +                          callable, LIST_IMAGE_IMPORTS_PAGE_STR_DESC, request, context);
        +              return ListImageImportsPagedResponse.createAsync(pageContext, futureResponse);
        +            }
        +          };
        +
        +  private static final PagedListResponseFactory<
        +          ListImageImportJobsRequest, ListImageImportJobsResponse, ListImageImportJobsPagedResponse>
        +      LIST_IMAGE_IMPORT_JOBS_PAGE_STR_FACT =
        +          new PagedListResponseFactory<
        +              ListImageImportJobsRequest,
        +              ListImageImportJobsResponse,
        +              ListImageImportJobsPagedResponse>() {
        +            @Override
        +            public ApiFuture getFuturePagedResponse(
        +                UnaryCallable callable,
        +                ListImageImportJobsRequest request,
        +                ApiCallContext context,
        +                ApiFuture futureResponse) {
        +              PageContext
        +                  pageContext =
        +                      PageContext.create(
        +                          callable, LIST_IMAGE_IMPORT_JOBS_PAGE_STR_DESC, request, context);
        +              return ListImageImportJobsPagedResponse.createAsync(pageContext, futureResponse);
        +            }
        +          };
        +
        +  private static final PagedListResponseFactory<
        +          ListDiskMigrationJobsRequest,
        +          ListDiskMigrationJobsResponse,
        +          ListDiskMigrationJobsPagedResponse>
        +      LIST_DISK_MIGRATION_JOBS_PAGE_STR_FACT =
        +          new PagedListResponseFactory<
        +              ListDiskMigrationJobsRequest,
        +              ListDiskMigrationJobsResponse,
        +              ListDiskMigrationJobsPagedResponse>() {
        +            @Override
        +            public ApiFuture getFuturePagedResponse(
        +                UnaryCallable callable,
        +                ListDiskMigrationJobsRequest request,
        +                ApiCallContext context,
        +                ApiFuture futureResponse) {
        +              PageContext<
        +                      ListDiskMigrationJobsRequest, ListDiskMigrationJobsResponse, DiskMigrationJob>
        +                  pageContext =
        +                      PageContext.create(
        +                          callable, LIST_DISK_MIGRATION_JOBS_PAGE_STR_DESC, request, context);
        +              return ListDiskMigrationJobsPagedResponse.createAsync(pageContext, futureResponse);
        +            }
        +          };
        +
           private static final PagedListResponseFactory<
                   ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
               LIST_LOCATIONS_PAGE_STR_FACT =
        @@ -1005,6 +1343,15 @@ public UnaryCallSettings fetchInv
             return fetchInventorySettings;
           }
         
        +  /** Returns the object with the settings used for calls to fetchStorageInventory. */
        +  public PagedCallSettings<
        +          FetchStorageInventoryRequest,
        +          FetchStorageInventoryResponse,
        +          FetchStorageInventoryPagedResponse>
        +      fetchStorageInventorySettings() {
        +    return fetchStorageInventorySettings;
        +  }
        +
           /** Returns the object with the settings used for calls to listUtilizationReports. */
           public PagedCallSettings<
                   ListUtilizationReportsRequest,
        @@ -1185,6 +1532,17 @@ public UnaryCallSettings finalizeMigrationS
             return finalizeMigrationOperationSettings;
           }
         
        +  /** Returns the object with the settings used for calls to extendMigration. */
        +  public UnaryCallSettings extendMigrationSettings() {
        +    return extendMigrationSettings;
        +  }
        +
        +  /** Returns the object with the settings used for calls to extendMigration. */
        +  public OperationCallSettings
        +      extendMigrationOperationSettings() {
        +    return extendMigrationOperationSettings;
        +  }
        +
           /** Returns the object with the settings used for calls to createCloneJob. */
           public UnaryCallSettings createCloneJobSettings() {
             return createCloneJobSettings;
        @@ -1380,6 +1738,140 @@ public UnaryCallSettings deleteTargetProj
             return getReplicationCycleSettings;
           }
         
        +  /** Returns the object with the settings used for calls to listImageImports. */
        +  public PagedCallSettings<
        +          ListImageImportsRequest, ListImageImportsResponse, ListImageImportsPagedResponse>
        +      listImageImportsSettings() {
        +    return listImageImportsSettings;
        +  }
        +
        +  /** Returns the object with the settings used for calls to getImageImport. */
        +  public UnaryCallSettings getImageImportSettings() {
        +    return getImageImportSettings;
        +  }
        +
        +  /** Returns the object with the settings used for calls to createImageImport. */
        +  public UnaryCallSettings createImageImportSettings() {
        +    return createImageImportSettings;
        +  }
        +
        +  /** Returns the object with the settings used for calls to createImageImport. */
        +  public OperationCallSettings
        +      createImageImportOperationSettings() {
        +    return createImageImportOperationSettings;
        +  }
        +
        +  /** Returns the object with the settings used for calls to deleteImageImport. */
        +  public UnaryCallSettings deleteImageImportSettings() {
        +    return deleteImageImportSettings;
        +  }
        +
        +  /** Returns the object with the settings used for calls to deleteImageImport. */
        +  public OperationCallSettings
        +      deleteImageImportOperationSettings() {
        +    return deleteImageImportOperationSettings;
        +  }
        +
        +  /** Returns the object with the settings used for calls to listImageImportJobs. */
        +  public PagedCallSettings<
        +          ListImageImportJobsRequest, ListImageImportJobsResponse, ListImageImportJobsPagedResponse>
        +      listImageImportJobsSettings() {
        +    return listImageImportJobsSettings;
        +  }
        +
        +  /** Returns the object with the settings used for calls to getImageImportJob. */
        +  public UnaryCallSettings getImageImportJobSettings() {
        +    return getImageImportJobSettings;
        +  }
        +
        +  /** Returns the object with the settings used for calls to cancelImageImportJob. */
        +  public UnaryCallSettings cancelImageImportJobSettings() {
        +    return cancelImageImportJobSettings;
        +  }
        +
        +  /** Returns the object with the settings used for calls to cancelImageImportJob. */
        +  public OperationCallSettings<
        +          CancelImageImportJobRequest, CancelImageImportJobResponse, OperationMetadata>
        +      cancelImageImportJobOperationSettings() {
        +    return cancelImageImportJobOperationSettings;
        +  }
        +
        +  /** Returns the object with the settings used for calls to createDiskMigrationJob. */
        +  public UnaryCallSettings
        +      createDiskMigrationJobSettings() {
        +    return createDiskMigrationJobSettings;
        +  }
        +
        +  /** Returns the object with the settings used for calls to createDiskMigrationJob. */
        +  public OperationCallSettings
        +      createDiskMigrationJobOperationSettings() {
        +    return createDiskMigrationJobOperationSettings;
        +  }
        +
        +  /** Returns the object with the settings used for calls to listDiskMigrationJobs. */
        +  public PagedCallSettings<
        +          ListDiskMigrationJobsRequest,
        +          ListDiskMigrationJobsResponse,
        +          ListDiskMigrationJobsPagedResponse>
        +      listDiskMigrationJobsSettings() {
        +    return listDiskMigrationJobsSettings;
        +  }
        +
        +  /** Returns the object with the settings used for calls to getDiskMigrationJob. */
        +  public UnaryCallSettings
        +      getDiskMigrationJobSettings() {
        +    return getDiskMigrationJobSettings;
        +  }
        +
        +  /** Returns the object with the settings used for calls to updateDiskMigrationJob. */
        +  public UnaryCallSettings
        +      updateDiskMigrationJobSettings() {
        +    return updateDiskMigrationJobSettings;
        +  }
        +
        +  /** Returns the object with the settings used for calls to updateDiskMigrationJob. */
        +  public OperationCallSettings
        +      updateDiskMigrationJobOperationSettings() {
        +    return updateDiskMigrationJobOperationSettings;
        +  }
        +
        +  /** Returns the object with the settings used for calls to deleteDiskMigrationJob. */
        +  public UnaryCallSettings
        +      deleteDiskMigrationJobSettings() {
        +    return deleteDiskMigrationJobSettings;
        +  }
        +
        +  /** Returns the object with the settings used for calls to deleteDiskMigrationJob. */
        +  public OperationCallSettings
        +      deleteDiskMigrationJobOperationSettings() {
        +    return deleteDiskMigrationJobOperationSettings;
        +  }
        +
        +  /** Returns the object with the settings used for calls to runDiskMigrationJob. */
        +  public UnaryCallSettings runDiskMigrationJobSettings() {
        +    return runDiskMigrationJobSettings;
        +  }
        +
        +  /** Returns the object with the settings used for calls to runDiskMigrationJob. */
        +  public OperationCallSettings<
        +          RunDiskMigrationJobRequest, RunDiskMigrationJobResponse, OperationMetadata>
        +      runDiskMigrationJobOperationSettings() {
        +    return runDiskMigrationJobOperationSettings;
        +  }
        +
        +  /** Returns the object with the settings used for calls to cancelDiskMigrationJob. */
        +  public UnaryCallSettings
        +      cancelDiskMigrationJobSettings() {
        +    return cancelDiskMigrationJobSettings;
        +  }
        +
        +  /** Returns the object with the settings used for calls to cancelDiskMigrationJob. */
        +  public OperationCallSettings<
        +          CancelDiskMigrationJobRequest, CancelDiskMigrationJobResponse, OperationMetadata>
        +      cancelDiskMigrationJobOperationSettings() {
        +    return cancelDiskMigrationJobOperationSettings;
        +  }
        +
           /** Returns the object with the settings used for calls to listLocations. */
           public PagedCallSettings
               listLocationsSettings() {
        @@ -1511,6 +2003,7 @@ protected VmMigrationStubSettings(Builder settingsBuilder) throws IOException {
             deleteSourceSettings = settingsBuilder.deleteSourceSettings().build();
             deleteSourceOperationSettings = settingsBuilder.deleteSourceOperationSettings().build();
             fetchInventorySettings = settingsBuilder.fetchInventorySettings().build();
        +    fetchStorageInventorySettings = settingsBuilder.fetchStorageInventorySettings().build();
             listUtilizationReportsSettings = settingsBuilder.listUtilizationReportsSettings().build();
             getUtilizationReportSettings = settingsBuilder.getUtilizationReportSettings().build();
             createUtilizationReportSettings = settingsBuilder.createUtilizationReportSettings().build();
        @@ -1549,6 +2042,8 @@ protected VmMigrationStubSettings(Builder settingsBuilder) throws IOException {
             finalizeMigrationSettings = settingsBuilder.finalizeMigrationSettings().build();
             finalizeMigrationOperationSettings =
                 settingsBuilder.finalizeMigrationOperationSettings().build();
        +    extendMigrationSettings = settingsBuilder.extendMigrationSettings().build();
        +    extendMigrationOperationSettings = settingsBuilder.extendMigrationOperationSettings().build();
             createCloneJobSettings = settingsBuilder.createCloneJobSettings().build();
             createCloneJobOperationSettings = settingsBuilder.createCloneJobOperationSettings().build();
             cancelCloneJobSettings = settingsBuilder.cancelCloneJobSettings().build();
        @@ -1588,6 +2083,36 @@ protected VmMigrationStubSettings(Builder settingsBuilder) throws IOException {
                 settingsBuilder.deleteTargetProjectOperationSettings().build();
             listReplicationCyclesSettings = settingsBuilder.listReplicationCyclesSettings().build();
             getReplicationCycleSettings = settingsBuilder.getReplicationCycleSettings().build();
        +    listImageImportsSettings = settingsBuilder.listImageImportsSettings().build();
        +    getImageImportSettings = settingsBuilder.getImageImportSettings().build();
        +    createImageImportSettings = settingsBuilder.createImageImportSettings().build();
        +    createImageImportOperationSettings =
        +        settingsBuilder.createImageImportOperationSettings().build();
        +    deleteImageImportSettings = settingsBuilder.deleteImageImportSettings().build();
        +    deleteImageImportOperationSettings =
        +        settingsBuilder.deleteImageImportOperationSettings().build();
        +    listImageImportJobsSettings = settingsBuilder.listImageImportJobsSettings().build();
        +    getImageImportJobSettings = settingsBuilder.getImageImportJobSettings().build();
        +    cancelImageImportJobSettings = settingsBuilder.cancelImageImportJobSettings().build();
        +    cancelImageImportJobOperationSettings =
        +        settingsBuilder.cancelImageImportJobOperationSettings().build();
        +    createDiskMigrationJobSettings = settingsBuilder.createDiskMigrationJobSettings().build();
        +    createDiskMigrationJobOperationSettings =
        +        settingsBuilder.createDiskMigrationJobOperationSettings().build();
        +    listDiskMigrationJobsSettings = settingsBuilder.listDiskMigrationJobsSettings().build();
        +    getDiskMigrationJobSettings = settingsBuilder.getDiskMigrationJobSettings().build();
        +    updateDiskMigrationJobSettings = settingsBuilder.updateDiskMigrationJobSettings().build();
        +    updateDiskMigrationJobOperationSettings =
        +        settingsBuilder.updateDiskMigrationJobOperationSettings().build();
        +    deleteDiskMigrationJobSettings = settingsBuilder.deleteDiskMigrationJobSettings().build();
        +    deleteDiskMigrationJobOperationSettings =
        +        settingsBuilder.deleteDiskMigrationJobOperationSettings().build();
        +    runDiskMigrationJobSettings = settingsBuilder.runDiskMigrationJobSettings().build();
        +    runDiskMigrationJobOperationSettings =
        +        settingsBuilder.runDiskMigrationJobOperationSettings().build();
        +    cancelDiskMigrationJobSettings = settingsBuilder.cancelDiskMigrationJobSettings().build();
        +    cancelDiskMigrationJobOperationSettings =
        +        settingsBuilder.cancelDiskMigrationJobOperationSettings().build();
             listLocationsSettings = settingsBuilder.listLocationsSettings().build();
             getLocationSettings = settingsBuilder.getLocationSettings().build();
           }
        @@ -1610,6 +2135,11 @@ public static class Builder extends StubSettings.Builder
                 fetchInventorySettings;
        +    private final PagedCallSettings.Builder<
        +            FetchStorageInventoryRequest,
        +            FetchStorageInventoryResponse,
        +            FetchStorageInventoryPagedResponse>
        +        fetchStorageInventorySettings;
             private final PagedCallSettings.Builder<
                     ListUtilizationReportsRequest,
                     ListUtilizationReportsResponse,
        @@ -1688,6 +2218,11 @@ public static class Builder extends StubSettings.Builder
                 finalizeMigrationOperationSettings;
        +    private final UnaryCallSettings.Builder
        +        extendMigrationSettings;
        +    private final OperationCallSettings.Builder<
        +            ExtendMigrationRequest, ExtendMigrationResponse, OperationMetadata>
        +        extendMigrationOperationSettings;
             private final UnaryCallSettings.Builder
                 createCloneJobSettings;
             private final OperationCallSettings.Builder
        @@ -1765,6 +2300,64 @@ public static class Builder extends StubSettings.Builder
                 getReplicationCycleSettings;
        +    private final PagedCallSettings.Builder<
        +            ListImageImportsRequest, ListImageImportsResponse, ListImageImportsPagedResponse>
        +        listImageImportsSettings;
        +    private final UnaryCallSettings.Builder
        +        getImageImportSettings;
        +    private final UnaryCallSettings.Builder
        +        createImageImportSettings;
        +    private final OperationCallSettings.Builder<
        +            CreateImageImportRequest, ImageImport, OperationMetadata>
        +        createImageImportOperationSettings;
        +    private final UnaryCallSettings.Builder
        +        deleteImageImportSettings;
        +    private final OperationCallSettings.Builder
        +        deleteImageImportOperationSettings;
        +    private final PagedCallSettings.Builder<
        +            ListImageImportJobsRequest,
        +            ListImageImportJobsResponse,
        +            ListImageImportJobsPagedResponse>
        +        listImageImportJobsSettings;
        +    private final UnaryCallSettings.Builder
        +        getImageImportJobSettings;
        +    private final UnaryCallSettings.Builder
        +        cancelImageImportJobSettings;
        +    private final OperationCallSettings.Builder<
        +            CancelImageImportJobRequest, CancelImageImportJobResponse, OperationMetadata>
        +        cancelImageImportJobOperationSettings;
        +    private final UnaryCallSettings.Builder
        +        createDiskMigrationJobSettings;
        +    private final OperationCallSettings.Builder<
        +            CreateDiskMigrationJobRequest, DiskMigrationJob, OperationMetadata>
        +        createDiskMigrationJobOperationSettings;
        +    private final PagedCallSettings.Builder<
        +            ListDiskMigrationJobsRequest,
        +            ListDiskMigrationJobsResponse,
        +            ListDiskMigrationJobsPagedResponse>
        +        listDiskMigrationJobsSettings;
        +    private final UnaryCallSettings.Builder
        +        getDiskMigrationJobSettings;
        +    private final UnaryCallSettings.Builder
        +        updateDiskMigrationJobSettings;
        +    private final OperationCallSettings.Builder<
        +            UpdateDiskMigrationJobRequest, DiskMigrationJob, OperationMetadata>
        +        updateDiskMigrationJobOperationSettings;
        +    private final UnaryCallSettings.Builder
        +        deleteDiskMigrationJobSettings;
        +    private final OperationCallSettings.Builder<
        +            DeleteDiskMigrationJobRequest, Empty, OperationMetadata>
        +        deleteDiskMigrationJobOperationSettings;
        +    private final UnaryCallSettings.Builder
        +        runDiskMigrationJobSettings;
        +    private final OperationCallSettings.Builder<
        +            RunDiskMigrationJobRequest, RunDiskMigrationJobResponse, OperationMetadata>
        +        runDiskMigrationJobOperationSettings;
        +    private final UnaryCallSettings.Builder
        +        cancelDiskMigrationJobSettings;
        +    private final OperationCallSettings.Builder<
        +            CancelDiskMigrationJobRequest, CancelDiskMigrationJobResponse, OperationMetadata>
        +        cancelDiskMigrationJobOperationSettings;
             private final PagedCallSettings.Builder<
                     ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
                 listLocationsSettings;
        @@ -1832,6 +2425,8 @@ protected Builder(ClientContext clientContext) {
               deleteSourceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
               deleteSourceOperationSettings = OperationCallSettings.newBuilder();
               fetchInventorySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
        +      fetchStorageInventorySettings =
        +          PagedCallSettings.newBuilder(FETCH_STORAGE_INVENTORY_PAGE_STR_FACT);
               listUtilizationReportsSettings =
                   PagedCallSettings.newBuilder(LIST_UTILIZATION_REPORTS_PAGE_STR_FACT);
               getUtilizationReportSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
        @@ -1864,6 +2459,8 @@ protected Builder(ClientContext clientContext) {
               pauseMigrationOperationSettings = OperationCallSettings.newBuilder();
               finalizeMigrationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
               finalizeMigrationOperationSettings = OperationCallSettings.newBuilder();
        +      extendMigrationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
        +      extendMigrationOperationSettings = OperationCallSettings.newBuilder();
               createCloneJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
               createCloneJobOperationSettings = OperationCallSettings.newBuilder();
               cancelCloneJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
        @@ -1899,6 +2496,30 @@ protected Builder(ClientContext clientContext) {
               listReplicationCyclesSettings =
                   PagedCallSettings.newBuilder(LIST_REPLICATION_CYCLES_PAGE_STR_FACT);
               getReplicationCycleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
        +      listImageImportsSettings = PagedCallSettings.newBuilder(LIST_IMAGE_IMPORTS_PAGE_STR_FACT);
        +      getImageImportSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
        +      createImageImportSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
        +      createImageImportOperationSettings = OperationCallSettings.newBuilder();
        +      deleteImageImportSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
        +      deleteImageImportOperationSettings = OperationCallSettings.newBuilder();
        +      listImageImportJobsSettings =
        +          PagedCallSettings.newBuilder(LIST_IMAGE_IMPORT_JOBS_PAGE_STR_FACT);
        +      getImageImportJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
        +      cancelImageImportJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
        +      cancelImageImportJobOperationSettings = OperationCallSettings.newBuilder();
        +      createDiskMigrationJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
        +      createDiskMigrationJobOperationSettings = OperationCallSettings.newBuilder();
        +      listDiskMigrationJobsSettings =
        +          PagedCallSettings.newBuilder(LIST_DISK_MIGRATION_JOBS_PAGE_STR_FACT);
        +      getDiskMigrationJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
        +      updateDiskMigrationJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
        +      updateDiskMigrationJobOperationSettings = OperationCallSettings.newBuilder();
        +      deleteDiskMigrationJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
        +      deleteDiskMigrationJobOperationSettings = OperationCallSettings.newBuilder();
        +      runDiskMigrationJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
        +      runDiskMigrationJobOperationSettings = OperationCallSettings.newBuilder();
        +      cancelDiskMigrationJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
        +      cancelDiskMigrationJobOperationSettings = OperationCallSettings.newBuilder();
               listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT);
               getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
         
        @@ -1910,6 +2531,7 @@ protected Builder(ClientContext clientContext) {
                       updateSourceSettings,
                       deleteSourceSettings,
                       fetchInventorySettings,
        +              fetchStorageInventorySettings,
                       listUtilizationReportsSettings,
                       getUtilizationReportSettings,
                       createUtilizationReportSettings,
        @@ -1928,6 +2550,7 @@ protected Builder(ClientContext clientContext) {
                       resumeMigrationSettings,
                       pauseMigrationSettings,
                       finalizeMigrationSettings,
        +              extendMigrationSettings,
                       createCloneJobSettings,
                       cancelCloneJobSettings,
                       listCloneJobsSettings,
        @@ -1950,6 +2573,20 @@ protected Builder(ClientContext clientContext) {
                       deleteTargetProjectSettings,
                       listReplicationCyclesSettings,
                       getReplicationCycleSettings,
        +              listImageImportsSettings,
        +              getImageImportSettings,
        +              createImageImportSettings,
        +              deleteImageImportSettings,
        +              listImageImportJobsSettings,
        +              getImageImportJobSettings,
        +              cancelImageImportJobSettings,
        +              createDiskMigrationJobSettings,
        +              listDiskMigrationJobsSettings,
        +              getDiskMigrationJobSettings,
        +              updateDiskMigrationJobSettings,
        +              deleteDiskMigrationJobSettings,
        +              runDiskMigrationJobSettings,
        +              cancelDiskMigrationJobSettings,
                       listLocationsSettings,
                       getLocationSettings);
               initDefaults(this);
        @@ -1967,6 +2604,7 @@ protected Builder(VmMigrationStubSettings settings) {
               deleteSourceSettings = settings.deleteSourceSettings.toBuilder();
               deleteSourceOperationSettings = settings.deleteSourceOperationSettings.toBuilder();
               fetchInventorySettings = settings.fetchInventorySettings.toBuilder();
        +      fetchStorageInventorySettings = settings.fetchStorageInventorySettings.toBuilder();
               listUtilizationReportsSettings = settings.listUtilizationReportsSettings.toBuilder();
               getUtilizationReportSettings = settings.getUtilizationReportSettings.toBuilder();
               createUtilizationReportSettings = settings.createUtilizationReportSettings.toBuilder();
        @@ -2001,6 +2639,8 @@ protected Builder(VmMigrationStubSettings settings) {
               pauseMigrationOperationSettings = settings.pauseMigrationOperationSettings.toBuilder();
               finalizeMigrationSettings = settings.finalizeMigrationSettings.toBuilder();
               finalizeMigrationOperationSettings = settings.finalizeMigrationOperationSettings.toBuilder();
        +      extendMigrationSettings = settings.extendMigrationSettings.toBuilder();
        +      extendMigrationOperationSettings = settings.extendMigrationOperationSettings.toBuilder();
               createCloneJobSettings = settings.createCloneJobSettings.toBuilder();
               createCloneJobOperationSettings = settings.createCloneJobOperationSettings.toBuilder();
               cancelCloneJobSettings = settings.cancelCloneJobSettings.toBuilder();
        @@ -2039,6 +2679,34 @@ protected Builder(VmMigrationStubSettings settings) {
                   settings.deleteTargetProjectOperationSettings.toBuilder();
               listReplicationCyclesSettings = settings.listReplicationCyclesSettings.toBuilder();
               getReplicationCycleSettings = settings.getReplicationCycleSettings.toBuilder();
        +      listImageImportsSettings = settings.listImageImportsSettings.toBuilder();
        +      getImageImportSettings = settings.getImageImportSettings.toBuilder();
        +      createImageImportSettings = settings.createImageImportSettings.toBuilder();
        +      createImageImportOperationSettings = settings.createImageImportOperationSettings.toBuilder();
        +      deleteImageImportSettings = settings.deleteImageImportSettings.toBuilder();
        +      deleteImageImportOperationSettings = settings.deleteImageImportOperationSettings.toBuilder();
        +      listImageImportJobsSettings = settings.listImageImportJobsSettings.toBuilder();
        +      getImageImportJobSettings = settings.getImageImportJobSettings.toBuilder();
        +      cancelImageImportJobSettings = settings.cancelImageImportJobSettings.toBuilder();
        +      cancelImageImportJobOperationSettings =
        +          settings.cancelImageImportJobOperationSettings.toBuilder();
        +      createDiskMigrationJobSettings = settings.createDiskMigrationJobSettings.toBuilder();
        +      createDiskMigrationJobOperationSettings =
        +          settings.createDiskMigrationJobOperationSettings.toBuilder();
        +      listDiskMigrationJobsSettings = settings.listDiskMigrationJobsSettings.toBuilder();
        +      getDiskMigrationJobSettings = settings.getDiskMigrationJobSettings.toBuilder();
        +      updateDiskMigrationJobSettings = settings.updateDiskMigrationJobSettings.toBuilder();
        +      updateDiskMigrationJobOperationSettings =
        +          settings.updateDiskMigrationJobOperationSettings.toBuilder();
        +      deleteDiskMigrationJobSettings = settings.deleteDiskMigrationJobSettings.toBuilder();
        +      deleteDiskMigrationJobOperationSettings =
        +          settings.deleteDiskMigrationJobOperationSettings.toBuilder();
        +      runDiskMigrationJobSettings = settings.runDiskMigrationJobSettings.toBuilder();
        +      runDiskMigrationJobOperationSettings =
        +          settings.runDiskMigrationJobOperationSettings.toBuilder();
        +      cancelDiskMigrationJobSettings = settings.cancelDiskMigrationJobSettings.toBuilder();
        +      cancelDiskMigrationJobOperationSettings =
        +          settings.cancelDiskMigrationJobOperationSettings.toBuilder();
               listLocationsSettings = settings.listLocationsSettings.toBuilder();
               getLocationSettings = settings.getLocationSettings.toBuilder();
         
        @@ -2050,6 +2718,7 @@ protected Builder(VmMigrationStubSettings settings) {
                       updateSourceSettings,
                       deleteSourceSettings,
                       fetchInventorySettings,
        +              fetchStorageInventorySettings,
                       listUtilizationReportsSettings,
                       getUtilizationReportSettings,
                       createUtilizationReportSettings,
        @@ -2068,6 +2737,7 @@ protected Builder(VmMigrationStubSettings settings) {
                       resumeMigrationSettings,
                       pauseMigrationSettings,
                       finalizeMigrationSettings,
        +              extendMigrationSettings,
                       createCloneJobSettings,
                       cancelCloneJobSettings,
                       listCloneJobsSettings,
        @@ -2090,6 +2760,20 @@ protected Builder(VmMigrationStubSettings settings) {
                       deleteTargetProjectSettings,
                       listReplicationCyclesSettings,
                       getReplicationCycleSettings,
        +              listImageImportsSettings,
        +              getImageImportSettings,
        +              createImageImportSettings,
        +              deleteImageImportSettings,
        +              listImageImportJobsSettings,
        +              getImageImportJobSettings,
        +              cancelImageImportJobSettings,
        +              createDiskMigrationJobSettings,
        +              listDiskMigrationJobsSettings,
        +              getDiskMigrationJobSettings,
        +              updateDiskMigrationJobSettings,
        +              deleteDiskMigrationJobSettings,
        +              runDiskMigrationJobSettings,
        +              cancelDiskMigrationJobSettings,
                       listLocationsSettings,
                       getLocationSettings);
             }
        @@ -2149,6 +2833,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
        +          .fetchStorageInventorySettings()
        +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
        +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));
        +
               builder
                   .listUtilizationReportsSettings()
                   .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
        @@ -2239,6 +2928,11 @@ private static Builder initDefaults(Builder builder) {
                   .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
                   .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));
         
        +      builder
        +          .extendMigrationSettings()
        +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
        +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));
        +
               builder
                   .createCloneJobSettings()
                   .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
        @@ -2350,45 +3044,115 @@ private static Builder initDefaults(Builder builder) {
                   .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));
         
               builder
        -          .listLocationsSettings()
        +          .listImageImportsSettings()
                   .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
                   .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));
         
               builder
        -          .getLocationSettings()
        +          .getImageImportSettings()
                   .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
                   .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));
         
               builder
        -          .createSourceOperationSettings()
        -          .setInitialCallSettings(
        -              UnaryCallSettings
        -                  .newUnaryCallSettingsBuilder()
        -                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes"))
        -                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params"))
        -                  .build())
        -          .setResponseTransformer(
        -              ProtoOperationTransformers.ResponseTransformer.create(Source.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()));
        +          .createImageImportSettings()
        +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
        +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));
         
               builder
        -          .updateSourceOperationSettings()
        -          .setInitialCallSettings(
        -              UnaryCallSettings
        -                  .newUnaryCallSettingsBuilder()
        -                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
        +          .deleteImageImportSettings()
        +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
        +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));
        +
        +      builder
        +          .listImageImportJobsSettings()
        +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
        +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));
        +
        +      builder
        +          .getImageImportJobSettings()
        +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
        +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));
        +
        +      builder
        +          .cancelImageImportJobSettings()
        +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
        +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));
        +
        +      builder
        +          .createDiskMigrationJobSettings()
        +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
        +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));
        +
        +      builder
        +          .listDiskMigrationJobsSettings()
        +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
        +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));
        +
        +      builder
        +          .getDiskMigrationJobSettings()
        +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
        +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));
        +
        +      builder
        +          .updateDiskMigrationJobSettings()
        +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
        +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));
        +
        +      builder
        +          .deleteDiskMigrationJobSettings()
        +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
        +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));
        +
        +      builder
        +          .runDiskMigrationJobSettings()
        +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
        +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));
        +
        +      builder
        +          .cancelDiskMigrationJobSettings()
        +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
        +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));
        +
        +      builder
        +          .listLocationsSettings()
        +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
        +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));
        +
        +      builder
        +          .getLocationSettings()
        +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
        +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));
        +
        +      builder
        +          .createSourceOperationSettings()
        +          .setInitialCallSettings(
        +              UnaryCallSettings
        +                  .newUnaryCallSettingsBuilder()
        +                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes"))
        +                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params"))
        +                  .build())
        +          .setResponseTransformer(
        +              ProtoOperationTransformers.ResponseTransformer.create(Source.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
        +          .updateSourceOperationSettings()
        +          .setInitialCallSettings(
        +              UnaryCallSettings
        +                  .newUnaryCallSettingsBuilder()
        +                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
                           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"))
                           .build())
                   .setResponseTransformer(
        @@ -2722,6 +3486,30 @@ private static Builder initDefaults(Builder builder) {
                               .setTotalTimeoutDuration(Duration.ofMillis(300000L))
                               .build()));
         
        +      builder
        +          .extendMigrationOperationSettings()
        +          .setInitialCallSettings(
        +              UnaryCallSettings
        +                  .newUnaryCallSettingsBuilder()
        +                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
        +                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"))
        +                  .build())
        +          .setResponseTransformer(
        +              ProtoOperationTransformers.ResponseTransformer.create(ExtendMigrationResponse.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
                   .createCloneJobOperationSettings()
                   .setInitialCallSettings(
        @@ -3009,6 +3797,201 @@ private static Builder initDefaults(Builder builder) {
                               .setTotalTimeoutDuration(Duration.ofMillis(300000L))
                               .build()));
         
        +      builder
        +          .createImageImportOperationSettings()
        +          .setInitialCallSettings(
        +              UnaryCallSettings
        +                  .newUnaryCallSettingsBuilder()
        +                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
        +                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"))
        +                  .build())
        +          .setResponseTransformer(
        +              ProtoOperationTransformers.ResponseTransformer.create(ImageImport.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
        +          .deleteImageImportOperationSettings()
        +          .setInitialCallSettings(
        +              UnaryCallSettings
        +                  .newUnaryCallSettingsBuilder()
        +                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
        +                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"))
        +                  .build())
        +          .setResponseTransformer(
        +              ProtoOperationTransformers.ResponseTransformer.create(Empty.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
        +          .cancelImageImportJobOperationSettings()
        +          .setInitialCallSettings(
        +              UnaryCallSettings
        +                  .newUnaryCallSettingsBuilder()
        +                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
        +                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"))
        +                  .build())
        +          .setResponseTransformer(
        +              ProtoOperationTransformers.ResponseTransformer.create(
        +                  CancelImageImportJobResponse.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
        +          .createDiskMigrationJobOperationSettings()
        +          .setInitialCallSettings(
        +              UnaryCallSettings
        +                  .newUnaryCallSettingsBuilder()
        +                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
        +                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"))
        +                  .build())
        +          .setResponseTransformer(
        +              ProtoOperationTransformers.ResponseTransformer.create(DiskMigrationJob.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
        +          .updateDiskMigrationJobOperationSettings()
        +          .setInitialCallSettings(
        +              UnaryCallSettings
        +                  .newUnaryCallSettingsBuilder()
        +                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
        +                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"))
        +                  .build())
        +          .setResponseTransformer(
        +              ProtoOperationTransformers.ResponseTransformer.create(DiskMigrationJob.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
        +          .deleteDiskMigrationJobOperationSettings()
        +          .setInitialCallSettings(
        +              UnaryCallSettings
        +                  .newUnaryCallSettingsBuilder()
        +                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
        +                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"))
        +                  .build())
        +          .setResponseTransformer(
        +              ProtoOperationTransformers.ResponseTransformer.create(Empty.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
        +          .runDiskMigrationJobOperationSettings()
        +          .setInitialCallSettings(
        +              UnaryCallSettings
        +                  .newUnaryCallSettingsBuilder()
        +                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
        +                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"))
        +                  .build())
        +          .setResponseTransformer(
        +              ProtoOperationTransformers.ResponseTransformer.create(
        +                  RunDiskMigrationJobResponse.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
        +          .cancelDiskMigrationJobOperationSettings()
        +          .setInitialCallSettings(
        +              UnaryCallSettings
        +                  .newUnaryCallSettingsBuilder()
        +                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
        +                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"))
        +                  .build())
        +          .setResponseTransformer(
        +              ProtoOperationTransformers.ResponseTransformer.create(
        +                  CancelDiskMigrationJobResponse.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;
             }
         
        @@ -3078,6 +4061,15 @@ public UnaryCallSettings.Builder deleteSourceSet
               return fetchInventorySettings;
             }
         
        +    /** Returns the builder for the settings used for calls to fetchStorageInventory. */
        +    public PagedCallSettings.Builder<
        +            FetchStorageInventoryRequest,
        +            FetchStorageInventoryResponse,
        +            FetchStorageInventoryPagedResponse>
        +        fetchStorageInventorySettings() {
        +      return fetchStorageInventorySettings;
        +    }
        +
             /** Returns the builder for the settings used for calls to listUtilizationReports. */
             public PagedCallSettings.Builder<
                     ListUtilizationReportsRequest,
        @@ -3268,6 +4260,18 @@ public UnaryCallSettings.Builder pauseMigratio
               return finalizeMigrationOperationSettings;
             }
         
        +    /** Returns the builder for the settings used for calls to extendMigration. */
        +    public UnaryCallSettings.Builder extendMigrationSettings() {
        +      return extendMigrationSettings;
        +    }
        +
        +    /** Returns the builder for the settings used for calls to extendMigration. */
        +    public OperationCallSettings.Builder<
        +            ExtendMigrationRequest, ExtendMigrationResponse, OperationMetadata>
        +        extendMigrationOperationSettings() {
        +      return extendMigrationOperationSettings;
        +    }
        +
             /** Returns the builder for the settings used for calls to createCloneJob. */
             public UnaryCallSettings.Builder createCloneJobSettings() {
               return createCloneJobSettings;
        @@ -3476,6 +4480,149 @@ public UnaryCallSettings.Builder deleteGroupSetti
               return getReplicationCycleSettings;
             }
         
        +    /** Returns the builder for the settings used for calls to listImageImports. */
        +    public PagedCallSettings.Builder<
        +            ListImageImportsRequest, ListImageImportsResponse, ListImageImportsPagedResponse>
        +        listImageImportsSettings() {
        +      return listImageImportsSettings;
        +    }
        +
        +    /** Returns the builder for the settings used for calls to getImageImport. */
        +    public UnaryCallSettings.Builder getImageImportSettings() {
        +      return getImageImportSettings;
        +    }
        +
        +    /** Returns the builder for the settings used for calls to createImageImport. */
        +    public UnaryCallSettings.Builder
        +        createImageImportSettings() {
        +      return createImageImportSettings;
        +    }
        +
        +    /** Returns the builder for the settings used for calls to createImageImport. */
        +    public OperationCallSettings.Builder
        +        createImageImportOperationSettings() {
        +      return createImageImportOperationSettings;
        +    }
        +
        +    /** Returns the builder for the settings used for calls to deleteImageImport. */
        +    public UnaryCallSettings.Builder
        +        deleteImageImportSettings() {
        +      return deleteImageImportSettings;
        +    }
        +
        +    /** Returns the builder for the settings used for calls to deleteImageImport. */
        +    public OperationCallSettings.Builder
        +        deleteImageImportOperationSettings() {
        +      return deleteImageImportOperationSettings;
        +    }
        +
        +    /** Returns the builder for the settings used for calls to listImageImportJobs. */
        +    public PagedCallSettings.Builder<
        +            ListImageImportJobsRequest,
        +            ListImageImportJobsResponse,
        +            ListImageImportJobsPagedResponse>
        +        listImageImportJobsSettings() {
        +      return listImageImportJobsSettings;
        +    }
        +
        +    /** Returns the builder for the settings used for calls to getImageImportJob. */
        +    public UnaryCallSettings.Builder
        +        getImageImportJobSettings() {
        +      return getImageImportJobSettings;
        +    }
        +
        +    /** Returns the builder for the settings used for calls to cancelImageImportJob. */
        +    public UnaryCallSettings.Builder
        +        cancelImageImportJobSettings() {
        +      return cancelImageImportJobSettings;
        +    }
        +
        +    /** Returns the builder for the settings used for calls to cancelImageImportJob. */
        +    public OperationCallSettings.Builder<
        +            CancelImageImportJobRequest, CancelImageImportJobResponse, OperationMetadata>
        +        cancelImageImportJobOperationSettings() {
        +      return cancelImageImportJobOperationSettings;
        +    }
        +
        +    /** Returns the builder for the settings used for calls to createDiskMigrationJob. */
        +    public UnaryCallSettings.Builder
        +        createDiskMigrationJobSettings() {
        +      return createDiskMigrationJobSettings;
        +    }
        +
        +    /** Returns the builder for the settings used for calls to createDiskMigrationJob. */
        +    public OperationCallSettings.Builder<
        +            CreateDiskMigrationJobRequest, DiskMigrationJob, OperationMetadata>
        +        createDiskMigrationJobOperationSettings() {
        +      return createDiskMigrationJobOperationSettings;
        +    }
        +
        +    /** Returns the builder for the settings used for calls to listDiskMigrationJobs. */
        +    public PagedCallSettings.Builder<
        +            ListDiskMigrationJobsRequest,
        +            ListDiskMigrationJobsResponse,
        +            ListDiskMigrationJobsPagedResponse>
        +        listDiskMigrationJobsSettings() {
        +      return listDiskMigrationJobsSettings;
        +    }
        +
        +    /** Returns the builder for the settings used for calls to getDiskMigrationJob. */
        +    public UnaryCallSettings.Builder
        +        getDiskMigrationJobSettings() {
        +      return getDiskMigrationJobSettings;
        +    }
        +
        +    /** Returns the builder for the settings used for calls to updateDiskMigrationJob. */
        +    public UnaryCallSettings.Builder
        +        updateDiskMigrationJobSettings() {
        +      return updateDiskMigrationJobSettings;
        +    }
        +
        +    /** Returns the builder for the settings used for calls to updateDiskMigrationJob. */
        +    public OperationCallSettings.Builder<
        +            UpdateDiskMigrationJobRequest, DiskMigrationJob, OperationMetadata>
        +        updateDiskMigrationJobOperationSettings() {
        +      return updateDiskMigrationJobOperationSettings;
        +    }
        +
        +    /** Returns the builder for the settings used for calls to deleteDiskMigrationJob. */
        +    public UnaryCallSettings.Builder
        +        deleteDiskMigrationJobSettings() {
        +      return deleteDiskMigrationJobSettings;
        +    }
        +
        +    /** Returns the builder for the settings used for calls to deleteDiskMigrationJob. */
        +    public OperationCallSettings.Builder
        +        deleteDiskMigrationJobOperationSettings() {
        +      return deleteDiskMigrationJobOperationSettings;
        +    }
        +
        +    /** Returns the builder for the settings used for calls to runDiskMigrationJob. */
        +    public UnaryCallSettings.Builder
        +        runDiskMigrationJobSettings() {
        +      return runDiskMigrationJobSettings;
        +    }
        +
        +    /** Returns the builder for the settings used for calls to runDiskMigrationJob. */
        +    public OperationCallSettings.Builder<
        +            RunDiskMigrationJobRequest, RunDiskMigrationJobResponse, OperationMetadata>
        +        runDiskMigrationJobOperationSettings() {
        +      return runDiskMigrationJobOperationSettings;
        +    }
        +
        +    /** Returns the builder for the settings used for calls to cancelDiskMigrationJob. */
        +    public UnaryCallSettings.Builder
        +        cancelDiskMigrationJobSettings() {
        +      return cancelDiskMigrationJobSettings;
        +    }
        +
        +    /** Returns the builder for the settings used for calls to cancelDiskMigrationJob. */
        +    public OperationCallSettings.Builder<
        +            CancelDiskMigrationJobRequest, CancelDiskMigrationJobResponse, OperationMetadata>
        +        cancelDiskMigrationJobOperationSettings() {
        +      return cancelDiskMigrationJobOperationSettings;
        +    }
        +
             /** Returns the builder for the settings used for calls to listLocations. */
             public PagedCallSettings.Builder<
                     ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
        diff --git a/java-vmmigration/google-cloud-vmmigration/src/main/resources/META-INF/native-image/com.google.cloud.vmmigration.v1/reflect-config.json b/java-vmmigration/google-cloud-vmmigration/src/main/resources/META-INF/native-image/com.google.cloud.vmmigration.v1/reflect-config.json
        index 3cddec522407..3534adeb33e6 100644
        --- a/java-vmmigration/google-cloud-vmmigration/src/main/resources/META-INF/native-image/com.google.cloud.vmmigration.v1/reflect-config.json
        +++ b/java-vmmigration/google-cloud-vmmigration/src/main/resources/META-INF/native-image/com.google.cloud.vmmigration.v1/reflect-config.json
        @@ -116,6 +116,33 @@
             "allDeclaredClasses": true,
             "allPublicClasses": true
           },
        +  {
        +    "name": "com.google.api.FieldInfo",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.api.FieldInfo$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.api.FieldInfo$Format",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
           {
             "name": "com.google.api.GoSettings",
             "queryAllDeclaredConstructors": true,
        @@ -413,6 +440,24 @@
             "allDeclaredClasses": true,
             "allPublicClasses": true
           },
        +  {
        +    "name": "com.google.api.TypeReference",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.api.TypeReference$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
           {
             "name": "com.google.cloud.location.GetLocationRequest",
             "queryAllDeclaredConstructors": true,
        @@ -684,7 +729,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.AwsSourceVmDetails",
        +    "name": "com.google.cloud.vmmigration.v1.AwsSourceDiskDetails",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -693,7 +738,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.AwsSourceVmDetails$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.AwsSourceDiskDetails$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -702,7 +747,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.AwsSourceVmDetails$Firmware",
        +    "name": "com.google.cloud.vmmigration.v1.AwsSourceDiskDetails$Type",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -711,7 +756,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.AwsVmDetails",
        +    "name": "com.google.cloud.vmmigration.v1.AwsSourceVmDetails",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -720,7 +765,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.AwsVmDetails$BootOption",
        +    "name": "com.google.cloud.vmmigration.v1.AwsSourceVmDetails$AwsDiskDetails",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -729,7 +774,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.AwsVmDetails$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.AwsSourceVmDetails$AwsDiskDetails$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -738,7 +783,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.AwsVmDetails$PowerState",
        +    "name": "com.google.cloud.vmmigration.v1.AwsSourceVmDetails$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -747,7 +792,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.AwsVmDetails$VmArchitecture",
        +    "name": "com.google.cloud.vmmigration.v1.AwsSourceVmDetails$Firmware",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -756,7 +801,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.AwsVmDetails$VmVirtualizationType",
        +    "name": "com.google.cloud.vmmigration.v1.AwsVmDetails",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -765,7 +810,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.AwsVmsDetails",
        +    "name": "com.google.cloud.vmmigration.v1.AwsVmDetails$BootOption",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -774,7 +819,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.AwsVmsDetails$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.AwsVmDetails$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -783,7 +828,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.CancelCloneJobRequest",
        +    "name": "com.google.cloud.vmmigration.v1.AwsVmDetails$PowerState",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -792,7 +837,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.CancelCloneJobRequest$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.AwsVmDetails$VmArchitecture",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -801,7 +846,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.CancelCloneJobResponse",
        +    "name": "com.google.cloud.vmmigration.v1.AwsVmDetails$VmVirtualizationType",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -810,7 +855,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.CancelCloneJobResponse$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.AwsVmsDetails",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -819,7 +864,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.CancelCutoverJobRequest",
        +    "name": "com.google.cloud.vmmigration.v1.AwsVmsDetails$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -828,7 +873,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.CancelCutoverJobRequest$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.AzureSourceDetails",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -837,7 +882,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.CancelCutoverJobResponse",
        +    "name": "com.google.cloud.vmmigration.v1.AzureSourceDetails$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -846,7 +891,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.CancelCutoverJobResponse$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.AzureSourceDetails$ClientSecretCredentials",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -855,7 +900,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.CloneJob",
        +    "name": "com.google.cloud.vmmigration.v1.AzureSourceDetails$ClientSecretCredentials$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -864,7 +909,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.CloneJob$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.AzureSourceDetails$State",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -873,7 +918,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.CloneJob$State",
        +    "name": "com.google.cloud.vmmigration.v1.AzureSourceVmDetails",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -882,7 +927,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.CloneStep",
        +    "name": "com.google.cloud.vmmigration.v1.AzureSourceVmDetails$AzureDiskDetails",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -891,7 +936,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.CloneStep$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.AzureSourceVmDetails$AzureDiskDetails$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -900,7 +945,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.ComputeEngineBootOption",
        +    "name": "com.google.cloud.vmmigration.v1.AzureSourceVmDetails$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -909,7 +954,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.ComputeEngineDiskType",
        +    "name": "com.google.cloud.vmmigration.v1.AzureSourceVmDetails$Firmware",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -918,7 +963,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.ComputeEngineLicenseType",
        +    "name": "com.google.cloud.vmmigration.v1.AzureVmDetails",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -927,7 +972,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults",
        +    "name": "com.google.cloud.vmmigration.v1.AzureVmDetails$BootOption",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -936,7 +981,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.AzureVmDetails$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -945,7 +990,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.ComputeEngineTargetDetails",
        +    "name": "com.google.cloud.vmmigration.v1.AzureVmDetails$Disk",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -954,7 +999,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.ComputeEngineTargetDetails$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.AzureVmDetails$Disk$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -963,7 +1008,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.ComputeScheduling",
        +    "name": "com.google.cloud.vmmigration.v1.AzureVmDetails$OSDescription",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -972,7 +1017,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.ComputeScheduling$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.AzureVmDetails$OSDescription$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -981,7 +1026,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.ComputeScheduling$OnHostMaintenance",
        +    "name": "com.google.cloud.vmmigration.v1.AzureVmDetails$OSDisk",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -990,7 +1035,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.ComputeScheduling$RestartType",
        +    "name": "com.google.cloud.vmmigration.v1.AzureVmDetails$OSDisk$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -999,7 +1044,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.CreateCloneJobRequest",
        +    "name": "com.google.cloud.vmmigration.v1.AzureVmDetails$PowerState",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1008,7 +1053,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.CreateCloneJobRequest$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.AzureVmDetails$VmArchitecture",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1017,7 +1062,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.CreateCutoverJobRequest",
        +    "name": "com.google.cloud.vmmigration.v1.AzureVmsDetails",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1026,7 +1071,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.CreateCutoverJobRequest$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.AzureVmsDetails$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1035,7 +1080,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.CreateDatacenterConnectorRequest",
        +    "name": "com.google.cloud.vmmigration.v1.BootConversion",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1044,7 +1089,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.CreateDatacenterConnectorRequest$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.BootDiskDefaults",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1053,7 +1098,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.CreateGroupRequest",
        +    "name": "com.google.cloud.vmmigration.v1.BootDiskDefaults$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1062,7 +1107,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.CreateGroupRequest$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.BootDiskDefaults$DiskImageDefaults",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1071,7 +1116,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.CreateMigratingVmRequest",
        +    "name": "com.google.cloud.vmmigration.v1.BootDiskDefaults$DiskImageDefaults$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1080,7 +1125,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.CreateMigratingVmRequest$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.CancelCloneJobRequest",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1089,7 +1134,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.CreateSourceRequest",
        +    "name": "com.google.cloud.vmmigration.v1.CancelCloneJobRequest$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1098,7 +1143,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.CreateSourceRequest$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.CancelCloneJobResponse",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1107,7 +1152,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.CreateTargetProjectRequest",
        +    "name": "com.google.cloud.vmmigration.v1.CancelCloneJobResponse$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1116,7 +1161,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.CreateTargetProjectRequest$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.CancelCutoverJobRequest",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1125,7 +1170,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.CreateUtilizationReportRequest",
        +    "name": "com.google.cloud.vmmigration.v1.CancelCutoverJobRequest$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1134,7 +1179,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.CreateUtilizationReportRequest$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.CancelCutoverJobResponse",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1143,7 +1188,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.CutoverJob",
        +    "name": "com.google.cloud.vmmigration.v1.CancelCutoverJobResponse$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1152,7 +1197,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.CutoverJob$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1161,7 +1206,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.CutoverJob$State",
        +    "name": "com.google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1170,7 +1215,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.CutoverStep",
        +    "name": "com.google.cloud.vmmigration.v1.CancelDiskMigrationJobResponse",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1179,7 +1224,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.CutoverStep$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.CancelDiskMigrationJobResponse$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1188,7 +1233,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.CycleStep",
        +    "name": "com.google.cloud.vmmigration.v1.CancelImageImportJobRequest",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1197,7 +1242,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.CycleStep$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.CancelImageImportJobRequest$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1206,7 +1251,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.DatacenterConnector",
        +    "name": "com.google.cloud.vmmigration.v1.CancelImageImportJobResponse",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1215,7 +1260,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.DatacenterConnector$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.CancelImageImportJobResponse$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1224,7 +1269,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.DatacenterConnector$State",
        +    "name": "com.google.cloud.vmmigration.v1.CloneJob",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1233,7 +1278,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.DeleteDatacenterConnectorRequest",
        +    "name": "com.google.cloud.vmmigration.v1.CloneJob$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1242,7 +1287,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.DeleteDatacenterConnectorRequest$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.CloneJob$State",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1251,7 +1296,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.DeleteGroupRequest",
        +    "name": "com.google.cloud.vmmigration.v1.CloneStep",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1260,7 +1305,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.DeleteGroupRequest$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.CloneStep$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1269,7 +1314,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.DeleteMigratingVmRequest",
        +    "name": "com.google.cloud.vmmigration.v1.ComputeEngineBootOption",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1278,7 +1323,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.DeleteMigratingVmRequest$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.ComputeEngineDisk",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1287,7 +1332,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.DeleteSourceRequest",
        +    "name": "com.google.cloud.vmmigration.v1.ComputeEngineDisk$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1296,7 +1341,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.DeleteSourceRequest$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.ComputeEngineDiskType",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1305,7 +1350,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.DeleteTargetProjectRequest",
        +    "name": "com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1314,7 +1359,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.DeleteTargetProjectRequest$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1323,7 +1368,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.DeleteUtilizationReportRequest",
        +    "name": "com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1332,7 +1377,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.DeleteUtilizationReportRequest$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1341,7 +1386,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.FetchInventoryRequest",
        +    "name": "com.google.cloud.vmmigration.v1.ComputeEngineLicenseType",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1350,7 +1395,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.FetchInventoryRequest$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.ComputeEngineNetworkTier",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1359,7 +1404,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.FetchInventoryResponse",
        +    "name": "com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1368,7 +1413,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.FetchInventoryResponse$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1377,7 +1422,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.FinalizeMigrationRequest",
        +    "name": "com.google.cloud.vmmigration.v1.ComputeEngineTargetDetails",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1386,7 +1431,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.FinalizeMigrationRequest$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.ComputeEngineTargetDetails$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1395,7 +1440,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.FinalizeMigrationResponse",
        +    "name": "com.google.cloud.vmmigration.v1.ComputeScheduling",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1404,7 +1449,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.FinalizeMigrationResponse$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.ComputeScheduling$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1413,7 +1458,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.GetCloneJobRequest",
        +    "name": "com.google.cloud.vmmigration.v1.ComputeScheduling$OnHostMaintenance",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1422,7 +1467,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.GetCloneJobRequest$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.ComputeScheduling$RestartType",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1431,7 +1476,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.GetCutoverJobRequest",
        +    "name": "com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1440,7 +1485,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.GetCutoverJobRequest$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1449,7 +1494,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.GetDatacenterConnectorRequest",
        +    "name": "com.google.cloud.vmmigration.v1.CreateCloneJobRequest",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1458,7 +1503,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.GetDatacenterConnectorRequest$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.CreateCloneJobRequest$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1467,7 +1512,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.GetGroupRequest",
        +    "name": "com.google.cloud.vmmigration.v1.CreateCutoverJobRequest",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1476,7 +1521,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.GetGroupRequest$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.CreateCutoverJobRequest$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1485,7 +1530,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.GetMigratingVmRequest",
        +    "name": "com.google.cloud.vmmigration.v1.CreateDatacenterConnectorRequest",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1494,7 +1539,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.GetMigratingVmRequest$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.CreateDatacenterConnectorRequest$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1503,7 +1548,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.GetReplicationCycleRequest",
        +    "name": "com.google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1512,7 +1557,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.GetReplicationCycleRequest$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1521,7 +1566,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.GetSourceRequest",
        +    "name": "com.google.cloud.vmmigration.v1.CreateGroupRequest",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1530,7 +1575,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.GetSourceRequest$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.CreateGroupRequest$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1539,7 +1584,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.GetTargetProjectRequest",
        +    "name": "com.google.cloud.vmmigration.v1.CreateImageImportRequest",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1548,7 +1593,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.GetTargetProjectRequest$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.CreateImageImportRequest$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1557,7 +1602,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.GetUtilizationReportRequest",
        +    "name": "com.google.cloud.vmmigration.v1.CreateMigratingVmRequest",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1566,7 +1611,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.GetUtilizationReportRequest$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.CreateMigratingVmRequest$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1575,7 +1620,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.Group",
        +    "name": "com.google.cloud.vmmigration.v1.CreateSourceRequest",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1584,7 +1629,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.Group$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.CreateSourceRequest$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1593,7 +1638,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.InitializingReplicationStep",
        +    "name": "com.google.cloud.vmmigration.v1.CreateTargetProjectRequest",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1602,7 +1647,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.InitializingReplicationStep$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.CreateTargetProjectRequest$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1611,7 +1656,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.InstantiatingMigratedVMStep",
        +    "name": "com.google.cloud.vmmigration.v1.CreateUtilizationReportRequest",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1620,7 +1665,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.InstantiatingMigratedVMStep$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.CreateUtilizationReportRequest$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1629,7 +1674,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.ListCloneJobsRequest",
        +    "name": "com.google.cloud.vmmigration.v1.CreatingImageStep",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1638,7 +1683,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.ListCloneJobsRequest$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.CreatingImageStep$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1647,7 +1692,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.ListCloneJobsResponse",
        +    "name": "com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1656,7 +1701,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.ListCloneJobsResponse$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1665,7 +1710,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.ListCutoverJobsRequest",
        +    "name": "com.google.cloud.vmmigration.v1.CutoverForecast",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1674,7 +1719,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.ListCutoverJobsRequest$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.CutoverForecast$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1683,7 +1728,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.ListCutoverJobsResponse",
        +    "name": "com.google.cloud.vmmigration.v1.CutoverJob",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1692,7 +1737,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.ListCutoverJobsResponse$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.CutoverJob$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1701,7 +1746,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.ListDatacenterConnectorsRequest",
        +    "name": "com.google.cloud.vmmigration.v1.CutoverJob$State",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1710,7 +1755,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.ListDatacenterConnectorsRequest$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.CutoverStep",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1719,7 +1764,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.ListDatacenterConnectorsResponse",
        +    "name": "com.google.cloud.vmmigration.v1.CutoverStep$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1728,7 +1773,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.ListDatacenterConnectorsResponse$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.CycleStep",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1737,7 +1782,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.ListGroupsRequest",
        +    "name": "com.google.cloud.vmmigration.v1.CycleStep$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1746,7 +1791,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.ListGroupsRequest$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.DataDiskImageImport",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1755,7 +1800,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.ListGroupsResponse",
        +    "name": "com.google.cloud.vmmigration.v1.DataDiskImageImport$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1764,7 +1809,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.ListGroupsResponse$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.DatacenterConnector",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1773,7 +1818,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.ListMigratingVmsRequest",
        +    "name": "com.google.cloud.vmmigration.v1.DatacenterConnector$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1782,7 +1827,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.ListMigratingVmsRequest$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.DatacenterConnector$State",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1791,7 +1836,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.ListMigratingVmsResponse",
        +    "name": "com.google.cloud.vmmigration.v1.DeleteDatacenterConnectorRequest",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1800,7 +1845,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.ListMigratingVmsResponse$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.DeleteDatacenterConnectorRequest$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1809,7 +1854,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.ListReplicationCyclesRequest",
        +    "name": "com.google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1818,7 +1863,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.ListReplicationCyclesRequest$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1827,7 +1872,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.ListReplicationCyclesResponse",
        +    "name": "com.google.cloud.vmmigration.v1.DeleteGroupRequest",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1836,7 +1881,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.ListReplicationCyclesResponse$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.DeleteGroupRequest$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1845,7 +1890,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.ListSourcesRequest",
        +    "name": "com.google.cloud.vmmigration.v1.DeleteImageImportRequest",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1854,7 +1899,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.ListSourcesRequest$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.DeleteImageImportRequest$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1863,7 +1908,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.ListSourcesResponse",
        +    "name": "com.google.cloud.vmmigration.v1.DeleteMigratingVmRequest",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1872,7 +1917,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.ListSourcesResponse$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.DeleteMigratingVmRequest$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1881,7 +1926,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.ListTargetProjectsRequest",
        +    "name": "com.google.cloud.vmmigration.v1.DeleteSourceRequest",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1890,7 +1935,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.ListTargetProjectsRequest$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.DeleteSourceRequest$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1899,7 +1944,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.ListTargetProjectsResponse",
        +    "name": "com.google.cloud.vmmigration.v1.DeleteTargetProjectRequest",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1908,7 +1953,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.ListTargetProjectsResponse$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.DeleteTargetProjectRequest$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1917,7 +1962,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.ListUtilizationReportsRequest",
        +    "name": "com.google.cloud.vmmigration.v1.DeleteUtilizationReportRequest",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1926,7 +1971,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.ListUtilizationReportsRequest$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.DeleteUtilizationReportRequest$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1935,7 +1980,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.ListUtilizationReportsResponse",
        +    "name": "com.google.cloud.vmmigration.v1.DiskImageTargetDetails",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1944,7 +1989,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.ListUtilizationReportsResponse$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.DiskImageTargetDetails$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1953,7 +1998,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.MigratingVm",
        +    "name": "com.google.cloud.vmmigration.v1.DiskMigrationJob",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1962,7 +2007,1195 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.MigratingVm$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.DiskMigrationJob$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.DiskMigrationJob$State",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.DiskMigrationStep",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.DiskMigrationStep$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.Encryption",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.Encryption$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ExtendMigrationRequest",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ExtendMigrationRequest$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ExtendMigrationResponse",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ExtendMigrationResponse$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.FetchInventoryRequest",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.FetchInventoryRequest$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.FetchInventoryResponse",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.FetchInventoryResponse$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest$StorageType",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.FetchStorageInventoryResponse",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.FetchStorageInventoryResponse$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.FinalizeMigrationRequest",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.FinalizeMigrationRequest$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.FinalizeMigrationResponse",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.FinalizeMigrationResponse$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.GetCloneJobRequest",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.GetCloneJobRequest$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.GetCutoverJobRequest",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.GetCutoverJobRequest$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.GetDatacenterConnectorRequest",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.GetDatacenterConnectorRequest$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.GetDiskMigrationJobRequest",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.GetDiskMigrationJobRequest$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.GetGroupRequest",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.GetGroupRequest$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.GetImageImportJobRequest",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.GetImageImportJobRequest$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.GetImageImportRequest",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.GetImageImportRequest$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.GetMigratingVmRequest",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.GetMigratingVmRequest$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.GetReplicationCycleRequest",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.GetReplicationCycleRequest$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.GetSourceRequest",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.GetSourceRequest$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.GetTargetProjectRequest",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.GetTargetProjectRequest$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.GetUtilizationReportRequest",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.GetUtilizationReportRequest$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.Group",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.Group$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.Group$MigrationTargetType",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ImageImport",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ImageImport$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ImageImportJob",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ImageImportJob$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ImageImportJob$State",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ImageImportStep",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ImageImportStep$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.InitializingImageImportStep",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.InitializingImageImportStep$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.InitializingReplicationStep",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.InitializingReplicationStep$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.InstantiatingMigratedVMStep",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.InstantiatingMigratedVMStep$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ListCloneJobsRequest",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ListCloneJobsRequest$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ListCloneJobsResponse",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ListCloneJobsResponse$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ListCutoverJobsRequest",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ListCutoverJobsRequest$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ListCutoverJobsResponse",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ListCutoverJobsResponse$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ListDatacenterConnectorsRequest",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ListDatacenterConnectorsRequest$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ListDatacenterConnectorsResponse",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ListDatacenterConnectorsResponse$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ListGroupsRequest",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ListGroupsRequest$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ListGroupsResponse",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ListGroupsResponse$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ListImageImportJobsRequest",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ListImageImportJobsRequest$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ListImageImportJobsResponse",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ListImageImportJobsResponse$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ListImageImportsRequest",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ListImageImportsRequest$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ListImageImportsResponse",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ListImageImportsResponse$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ListMigratingVmsRequest",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ListMigratingVmsRequest$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ListMigratingVmsResponse",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ListMigratingVmsResponse$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ListReplicationCyclesRequest",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ListReplicationCyclesRequest$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ListReplicationCyclesResponse",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ListReplicationCyclesResponse$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ListSourcesRequest",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ListSourcesRequest$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ListSourcesResponse",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ListSourcesResponse$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ListTargetProjectsRequest",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ListTargetProjectsRequest$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ListTargetProjectsResponse",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ListTargetProjectsResponse$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ListUtilizationReportsRequest",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ListUtilizationReportsRequest$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ListUtilizationReportsResponse",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ListUtilizationReportsResponse$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.MachineImageParametersOverrides",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.MachineImageParametersOverrides$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.MachineImageTargetDetails",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.MachineImageTargetDetails$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.MigratingVm",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.MigratingVm$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.MigratingVm$Expiration",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.MigratingVm$Expiration$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1980,7 +3213,70 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.MigratingVmView",
        +    "name": "com.google.cloud.vmmigration.v1.MigratingVmView",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.MigrationError",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.MigrationError$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.MigrationError$ErrorCode",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.MigrationWarning",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.MigrationWarning$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.MigrationWarning$WarningCode",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.NetworkInterface",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1989,7 +3285,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.MigrationError",
        +    "name": "com.google.cloud.vmmigration.v1.NetworkInterface$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -1998,7 +3294,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.MigrationError$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.OperationMetadata",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -2007,7 +3303,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.MigrationError$ErrorCode",
        +    "name": "com.google.cloud.vmmigration.v1.OperationMetadata$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -2016,7 +3312,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.NetworkInterface",
        +    "name": "com.google.cloud.vmmigration.v1.OsCapability",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -2025,7 +3321,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.NetworkInterface$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.PauseMigrationRequest",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -2034,7 +3330,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.OperationMetadata",
        +    "name": "com.google.cloud.vmmigration.v1.PauseMigrationRequest$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -2043,7 +3339,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.OperationMetadata$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.PauseMigrationResponse",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -2052,7 +3348,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.PauseMigrationRequest",
        +    "name": "com.google.cloud.vmmigration.v1.PauseMigrationResponse$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -2061,7 +3357,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.PauseMigrationRequest$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.PersistentDisk",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -2070,7 +3366,7 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.PauseMigrationResponse",
        +    "name": "com.google.cloud.vmmigration.v1.PersistentDisk$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -2079,7 +3375,16 @@
             "allPublicClasses": true
           },
           {
        -    "name": "com.google.cloud.vmmigration.v1.PauseMigrationResponse$Builder",
        +    "name": "com.google.cloud.vmmigration.v1.PersistentDiskDefaults",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.PersistentDiskDefaults$Builder",
             "queryAllDeclaredConstructors": true,
             "queryAllPublicConstructors": true,
             "queryAllDeclaredMethods": true,
        @@ -2123,6 +3428,24 @@
             "allDeclaredClasses": true,
             "allPublicClasses": true
           },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
           {
             "name": "com.google.cloud.vmmigration.v1.RemoveGroupMigrationRequest",
             "queryAllDeclaredConstructors": true,
        @@ -2258,6 +3581,42 @@
             "allDeclaredClasses": true,
             "allPublicClasses": true
           },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.RunDiskMigrationJobRequest",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.RunDiskMigrationJobRequest$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.RunDiskMigrationJobResponse",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.RunDiskMigrationJobResponse$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
           {
             "name": "com.google.cloud.vmmigration.v1.SchedulePolicy",
             "queryAllDeclaredConstructors": true,
        @@ -2303,6 +3662,51 @@
             "allDeclaredClasses": true,
             "allPublicClasses": true
           },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ServiceAccount",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ServiceAccount$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ShieldedInstanceConfig",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ShieldedInstanceConfig$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.ShieldedInstanceConfig$SecureBoot",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
           {
             "name": "com.google.cloud.vmmigration.v1.ShuttingDownSourceVMStep",
             "queryAllDeclaredConstructors": true,
        @@ -2321,6 +3725,24 @@
             "allDeclaredClasses": true,
             "allPublicClasses": true
           },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.SkipOsAdaptation",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.SkipOsAdaptation$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
           {
             "name": "com.google.cloud.vmmigration.v1.Source",
             "queryAllDeclaredConstructors": true,
        @@ -2339,6 +3761,24 @@
             "allDeclaredClasses": true,
             "allPublicClasses": true
           },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.SourceStorageResource",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.SourceStorageResource$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
           {
             "name": "com.google.cloud.vmmigration.v1.StartMigrationRequest",
             "queryAllDeclaredConstructors": true,
        @@ -2393,6 +3833,24 @@
             "allDeclaredClasses": true,
             "allPublicClasses": true
           },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
           {
             "name": "com.google.cloud.vmmigration.v1.UpdateGroupRequest",
             "queryAllDeclaredConstructors": true,
        @@ -2573,6 +4031,51 @@
             "allDeclaredClasses": true,
             "allPublicClasses": true
           },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.VmArchitecture",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.VmAttachmentDetails",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.VmAttachmentDetails$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.VmCapabilities",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.VmCapabilities$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
           {
             "name": "com.google.cloud.vmmigration.v1.VmUtilizationInfo",
             "queryAllDeclaredConstructors": true,
        @@ -2627,6 +4130,51 @@
             "allDeclaredClasses": true,
             "allPublicClasses": true
           },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.VmwareSourceVmDetails",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.VmwareSourceVmDetails$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.VmwareSourceVmDetails$Firmware",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.VmwareSourceVmDetails$VmwareDiskDetails",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.VmwareSourceVmDetails$VmwareDiskDetails$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
           {
             "name": "com.google.cloud.vmmigration.v1.VmwareVmDetails",
             "queryAllDeclaredConstructors": true,
        @@ -2663,6 +4211,15 @@
             "allDeclaredClasses": true,
             "allPublicClasses": true
           },
        +  {
        +    "name": "com.google.cloud.vmmigration.v1.VmwareVmDetails$VmArchitecture",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
           {
             "name": "com.google.cloud.vmmigration.v1.VmwareVmsDetails",
             "queryAllDeclaredConstructors": true,
        diff --git a/java-vmmigration/google-cloud-vmmigration/src/test/java/com/google/cloud/vmmigration/v1/MockVmMigrationImpl.java b/java-vmmigration/google-cloud-vmmigration/src/test/java/com/google/cloud/vmmigration/v1/MockVmMigrationImpl.java
        index a4c9c66ebdff..f24687ae122e 100644
        --- a/java-vmmigration/google-cloud-vmmigration/src/test/java/com/google/cloud/vmmigration/v1/MockVmMigrationImpl.java
        +++ b/java-vmmigration/google-cloud-vmmigration/src/test/java/com/google/cloud/vmmigration/v1/MockVmMigrationImpl.java
        @@ -184,6 +184,29 @@ public void fetchInventory(
             }
           }
         
        +  @Override
        +  public void fetchStorageInventory(
        +      FetchStorageInventoryRequest request,
        +      StreamObserver responseObserver) {
        +    Object response = responses.poll();
        +    if (response instanceof FetchStorageInventoryResponse) {
        +      requests.add(request);
        +      responseObserver.onNext(((FetchStorageInventoryResponse) 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 FetchStorageInventory, expected %s or"
        +                      + " %s",
        +                  response == null ? "null" : response.getClass().getName(),
        +                  FetchStorageInventoryResponse.class.getName(),
        +                  Exception.class.getName())));
        +    }
        +  }
        +
           @Override
           public void listUtilizationReports(
               ListUtilizationReportsRequest request,
        @@ -572,6 +595,27 @@ public void finalizeMigration(
             }
           }
         
        +  @Override
        +  public void extendMigration(
        +      ExtendMigrationRequest 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 ExtendMigration, expected %s or %s",
        +                  response == null ? "null" : response.getClass().getName(),
        +                  Operation.class.getName(),
        +                  Exception.class.getName())));
        +    }
        +  }
        +
           @Override
           public void createCloneJob(
               CreateCloneJobRequest request, StreamObserver responseObserver) {
        @@ -1032,4 +1076,306 @@ public void getReplicationCycle(
                           Exception.class.getName())));
             }
           }
        +
        +  @Override
        +  public void listImageImports(
        +      ListImageImportsRequest request, StreamObserver responseObserver) {
        +    Object response = responses.poll();
        +    if (response instanceof ListImageImportsResponse) {
        +      requests.add(request);
        +      responseObserver.onNext(((ListImageImportsResponse) 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 ListImageImports, expected %s or %s",
        +                  response == null ? "null" : response.getClass().getName(),
        +                  ListImageImportsResponse.class.getName(),
        +                  Exception.class.getName())));
        +    }
        +  }
        +
        +  @Override
        +  public void getImageImport(
        +      GetImageImportRequest request, StreamObserver responseObserver) {
        +    Object response = responses.poll();
        +    if (response instanceof ImageImport) {
        +      requests.add(request);
        +      responseObserver.onNext(((ImageImport) 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 GetImageImport, expected %s or %s",
        +                  response == null ? "null" : response.getClass().getName(),
        +                  ImageImport.class.getName(),
        +                  Exception.class.getName())));
        +    }
        +  }
        +
        +  @Override
        +  public void createImageImport(
        +      CreateImageImportRequest 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 CreateImageImport, expected %s or %s",
        +                  response == null ? "null" : response.getClass().getName(),
        +                  Operation.class.getName(),
        +                  Exception.class.getName())));
        +    }
        +  }
        +
        +  @Override
        +  public void deleteImageImport(
        +      DeleteImageImportRequest 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 DeleteImageImport, expected %s or %s",
        +                  response == null ? "null" : response.getClass().getName(),
        +                  Operation.class.getName(),
        +                  Exception.class.getName())));
        +    }
        +  }
        +
        +  @Override
        +  public void listImageImportJobs(
        +      ListImageImportJobsRequest request,
        +      StreamObserver responseObserver) {
        +    Object response = responses.poll();
        +    if (response instanceof ListImageImportJobsResponse) {
        +      requests.add(request);
        +      responseObserver.onNext(((ListImageImportJobsResponse) 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 ListImageImportJobs, expected %s or %s",
        +                  response == null ? "null" : response.getClass().getName(),
        +                  ListImageImportJobsResponse.class.getName(),
        +                  Exception.class.getName())));
        +    }
        +  }
        +
        +  @Override
        +  public void getImageImportJob(
        +      GetImageImportJobRequest request, StreamObserver responseObserver) {
        +    Object response = responses.poll();
        +    if (response instanceof ImageImportJob) {
        +      requests.add(request);
        +      responseObserver.onNext(((ImageImportJob) 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 GetImageImportJob, expected %s or %s",
        +                  response == null ? "null" : response.getClass().getName(),
        +                  ImageImportJob.class.getName(),
        +                  Exception.class.getName())));
        +    }
        +  }
        +
        +  @Override
        +  public void cancelImageImportJob(
        +      CancelImageImportJobRequest 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 CancelImageImportJob, expected %s or"
        +                      + " %s",
        +                  response == null ? "null" : response.getClass().getName(),
        +                  Operation.class.getName(),
        +                  Exception.class.getName())));
        +    }
        +  }
        +
        +  @Override
        +  public void createDiskMigrationJob(
        +      CreateDiskMigrationJobRequest 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 CreateDiskMigrationJob, expected %s or"
        +                      + " %s",
        +                  response == null ? "null" : response.getClass().getName(),
        +                  Operation.class.getName(),
        +                  Exception.class.getName())));
        +    }
        +  }
        +
        +  @Override
        +  public void listDiskMigrationJobs(
        +      ListDiskMigrationJobsRequest request,
        +      StreamObserver responseObserver) {
        +    Object response = responses.poll();
        +    if (response instanceof ListDiskMigrationJobsResponse) {
        +      requests.add(request);
        +      responseObserver.onNext(((ListDiskMigrationJobsResponse) 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 ListDiskMigrationJobs, expected %s or"
        +                      + " %s",
        +                  response == null ? "null" : response.getClass().getName(),
        +                  ListDiskMigrationJobsResponse.class.getName(),
        +                  Exception.class.getName())));
        +    }
        +  }
        +
        +  @Override
        +  public void getDiskMigrationJob(
        +      GetDiskMigrationJobRequest request, StreamObserver responseObserver) {
        +    Object response = responses.poll();
        +    if (response instanceof DiskMigrationJob) {
        +      requests.add(request);
        +      responseObserver.onNext(((DiskMigrationJob) 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 GetDiskMigrationJob, expected %s or %s",
        +                  response == null ? "null" : response.getClass().getName(),
        +                  DiskMigrationJob.class.getName(),
        +                  Exception.class.getName())));
        +    }
        +  }
        +
        +  @Override
        +  public void updateDiskMigrationJob(
        +      UpdateDiskMigrationJobRequest 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 UpdateDiskMigrationJob, expected %s or"
        +                      + " %s",
        +                  response == null ? "null" : response.getClass().getName(),
        +                  Operation.class.getName(),
        +                  Exception.class.getName())));
        +    }
        +  }
        +
        +  @Override
        +  public void deleteDiskMigrationJob(
        +      DeleteDiskMigrationJobRequest 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 DeleteDiskMigrationJob, expected %s or"
        +                      + " %s",
        +                  response == null ? "null" : response.getClass().getName(),
        +                  Operation.class.getName(),
        +                  Exception.class.getName())));
        +    }
        +  }
        +
        +  @Override
        +  public void runDiskMigrationJob(
        +      RunDiskMigrationJobRequest 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 RunDiskMigrationJob, expected %s or %s",
        +                  response == null ? "null" : response.getClass().getName(),
        +                  Operation.class.getName(),
        +                  Exception.class.getName())));
        +    }
        +  }
        +
        +  @Override
        +  public void cancelDiskMigrationJob(
        +      CancelDiskMigrationJobRequest 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 CancelDiskMigrationJob, expected %s or"
        +                      + " %s",
        +                  response == null ? "null" : response.getClass().getName(),
        +                  Operation.class.getName(),
        +                  Exception.class.getName())));
        +    }
        +  }
         }
        diff --git a/java-vmmigration/google-cloud-vmmigration/src/test/java/com/google/cloud/vmmigration/v1/VmMigrationClientHttpJsonTest.java b/java-vmmigration/google-cloud-vmmigration/src/test/java/com/google/cloud/vmmigration/v1/VmMigrationClientHttpJsonTest.java
        index f217f1178e18..cf9265a6cfda 100644
        --- a/java-vmmigration/google-cloud-vmmigration/src/test/java/com/google/cloud/vmmigration/v1/VmMigrationClientHttpJsonTest.java
        +++ b/java-vmmigration/google-cloud-vmmigration/src/test/java/com/google/cloud/vmmigration/v1/VmMigrationClientHttpJsonTest.java
        @@ -16,10 +16,14 @@
         
         package com.google.cloud.vmmigration.v1;
         
        +import static com.google.cloud.vmmigration.v1.VmMigrationClient.FetchStorageInventoryPagedResponse;
         import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListCloneJobsPagedResponse;
         import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListCutoverJobsPagedResponse;
         import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListDatacenterConnectorsPagedResponse;
        +import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListDiskMigrationJobsPagedResponse;
         import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListGroupsPagedResponse;
        +import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListImageImportJobsPagedResponse;
        +import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListImageImportsPagedResponse;
         import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListLocationsPagedResponse;
         import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListMigratingVmsPagedResponse;
         import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListReplicationCyclesPagedResponse;
        @@ -207,6 +211,7 @@ public void getSourceTest() throws Exception {
                     .setUpdateTime(Timestamp.newBuilder().build())
                     .putAllLabels(new HashMap())
                     .setDescription("description-1724546052")
        +            .setEncryption(Encryption.newBuilder().build())
                     .build();
             mockService.addResponse(expectedResponse);
         
        @@ -255,6 +260,7 @@ public void getSourceTest2() throws Exception {
                     .setUpdateTime(Timestamp.newBuilder().build())
                     .putAllLabels(new HashMap())
                     .setDescription("description-1724546052")
        +            .setEncryption(Encryption.newBuilder().build())
                     .build();
             mockService.addResponse(expectedResponse);
         
        @@ -303,6 +309,7 @@ public void createSourceTest() throws Exception {
                     .setUpdateTime(Timestamp.newBuilder().build())
                     .putAllLabels(new HashMap())
                     .setDescription("description-1724546052")
        +            .setEncryption(Encryption.newBuilder().build())
                     .build();
             Operation resultOperation =
                 Operation.newBuilder()
        @@ -360,6 +367,7 @@ public void createSourceTest2() throws Exception {
                     .setUpdateTime(Timestamp.newBuilder().build())
                     .putAllLabels(new HashMap())
                     .setDescription("description-1724546052")
        +            .setEncryption(Encryption.newBuilder().build())
                     .build();
             Operation resultOperation =
                 Operation.newBuilder()
        @@ -417,6 +425,7 @@ public void updateSourceTest() throws Exception {
                     .setUpdateTime(Timestamp.newBuilder().build())
                     .putAllLabels(new HashMap())
                     .setDescription("description-1724546052")
        +            .setEncryption(Encryption.newBuilder().build())
                     .build();
             Operation resultOperation =
                 Operation.newBuilder()
        @@ -433,6 +442,7 @@ public void updateSourceTest() throws Exception {
                     .setUpdateTime(Timestamp.newBuilder().build())
                     .putAllLabels(new HashMap())
                     .setDescription("description-1724546052")
        +            .setEncryption(Encryption.newBuilder().build())
                     .build();
             FieldMask updateMask = FieldMask.newBuilder().build();
         
        @@ -469,6 +479,7 @@ public void updateSourceExceptionTest() throws Exception {
                       .setUpdateTime(Timestamp.newBuilder().build())
                       .putAllLabels(new HashMap())
                       .setDescription("description-1724546052")
        +              .setEncryption(Encryption.newBuilder().build())
                       .build();
               FieldMask updateMask = FieldMask.newBuilder().build();
               client.updateSourceAsync(source, updateMask).get();
        @@ -651,6 +662,116 @@ public void fetchInventoryExceptionTest2() throws Exception {
             }
           }
         
        +  @Test
        +  public void fetchStorageInventoryTest() throws Exception {
        +    SourceStorageResource responsesElement = SourceStorageResource.newBuilder().build();
        +    FetchStorageInventoryResponse expectedResponse =
        +        FetchStorageInventoryResponse.newBuilder()
        +            .setNextPageToken("")
        +            .addAllResources(Arrays.asList(responsesElement))
        +            .build();
        +    mockService.addResponse(expectedResponse);
        +
        +    SourceName source = SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]");
        +    FetchStorageInventoryRequest.StorageType type =
        +        FetchStorageInventoryRequest.StorageType.forNumber(0);
        +
        +    FetchStorageInventoryPagedResponse pagedListResponse =
        +        client.fetchStorageInventory(source, type);
        +
        +    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
        +
        +    Assert.assertEquals(1, resources.size());
        +    Assert.assertEquals(expectedResponse.getResourcesList().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 fetchStorageInventoryExceptionTest() throws Exception {
        +    ApiException exception =
        +        ApiExceptionFactory.createException(
        +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
        +    mockService.addException(exception);
        +
        +    try {
        +      SourceName source = SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]");
        +      FetchStorageInventoryRequest.StorageType type =
        +          FetchStorageInventoryRequest.StorageType.forNumber(0);
        +      client.fetchStorageInventory(source, type);
        +      Assert.fail("No exception raised");
        +    } catch (InvalidArgumentException e) {
        +      // Expected exception.
        +    }
        +  }
        +
        +  @Test
        +  public void fetchStorageInventoryTest2() throws Exception {
        +    SourceStorageResource responsesElement = SourceStorageResource.newBuilder().build();
        +    FetchStorageInventoryResponse expectedResponse =
        +        FetchStorageInventoryResponse.newBuilder()
        +            .setNextPageToken("")
        +            .addAllResources(Arrays.asList(responsesElement))
        +            .build();
        +    mockService.addResponse(expectedResponse);
        +
        +    String source = "projects/project-3586/locations/location-3586/sources/source-3586";
        +    FetchStorageInventoryRequest.StorageType type =
        +        FetchStorageInventoryRequest.StorageType.forNumber(0);
        +
        +    FetchStorageInventoryPagedResponse pagedListResponse =
        +        client.fetchStorageInventory(source, type);
        +
        +    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
        +
        +    Assert.assertEquals(1, resources.size());
        +    Assert.assertEquals(expectedResponse.getResourcesList().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 fetchStorageInventoryExceptionTest2() throws Exception {
        +    ApiException exception =
        +        ApiExceptionFactory.createException(
        +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
        +    mockService.addException(exception);
        +
        +    try {
        +      String source = "projects/project-3586/locations/location-3586/sources/source-3586";
        +      FetchStorageInventoryRequest.StorageType type =
        +          FetchStorageInventoryRequest.StorageType.forNumber(0);
        +      client.fetchStorageInventory(source, type);
        +      Assert.fail("No exception raised");
        +    } catch (InvalidArgumentException e) {
        +      // Expected exception.
        +    }
        +  }
        +
           @Test
           public void listUtilizationReportsTest() throws Exception {
             UtilizationReport responsesElement = UtilizationReport.newBuilder().build();
        @@ -1627,11 +1748,14 @@ public void createMigratingVmTest() throws Exception {
                     .setLastSync(ReplicationSync.newBuilder().build())
                     .setStateTime(Timestamp.newBuilder().build())
                     .setCurrentSyncInfo(ReplicationCycle.newBuilder().build())
        +            .setLastReplicationCycle(ReplicationCycle.newBuilder().build())
                     .setGroup(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                     .putAllLabels(new HashMap())
                     .addAllRecentCloneJobs(new ArrayList())
                     .setError(Status.newBuilder().build())
                     .addAllRecentCutoverJobs(new ArrayList())
        +            .setCutoverForecast(CutoverForecast.newBuilder().build())
        +            .setExpiration(MigratingVm.Expiration.newBuilder().build())
                     .build();
             Operation resultOperation =
                 Operation.newBuilder()
        @@ -1697,11 +1821,14 @@ public void createMigratingVmTest2() throws Exception {
                     .setLastSync(ReplicationSync.newBuilder().build())
                     .setStateTime(Timestamp.newBuilder().build())
                     .setCurrentSyncInfo(ReplicationCycle.newBuilder().build())
        +            .setLastReplicationCycle(ReplicationCycle.newBuilder().build())
                     .setGroup(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                     .putAllLabels(new HashMap())
                     .addAllRecentCloneJobs(new ArrayList())
                     .setError(Status.newBuilder().build())
                     .addAllRecentCutoverJobs(new ArrayList())
        +            .setCutoverForecast(CutoverForecast.newBuilder().build())
        +            .setExpiration(MigratingVm.Expiration.newBuilder().build())
                     .build();
             Operation resultOperation =
                 Operation.newBuilder()
        @@ -1867,11 +1994,14 @@ public void getMigratingVmTest() throws Exception {
                     .setLastSync(ReplicationSync.newBuilder().build())
                     .setStateTime(Timestamp.newBuilder().build())
                     .setCurrentSyncInfo(ReplicationCycle.newBuilder().build())
        +            .setLastReplicationCycle(ReplicationCycle.newBuilder().build())
                     .setGroup(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                     .putAllLabels(new HashMap())
                     .addAllRecentCloneJobs(new ArrayList())
                     .setError(Status.newBuilder().build())
                     .addAllRecentCutoverJobs(new ArrayList())
        +            .setCutoverForecast(CutoverForecast.newBuilder().build())
        +            .setExpiration(MigratingVm.Expiration.newBuilder().build())
                     .build();
             mockService.addResponse(expectedResponse);
         
        @@ -1929,11 +2059,14 @@ public void getMigratingVmTest2() throws Exception {
                     .setLastSync(ReplicationSync.newBuilder().build())
                     .setStateTime(Timestamp.newBuilder().build())
                     .setCurrentSyncInfo(ReplicationCycle.newBuilder().build())
        +            .setLastReplicationCycle(ReplicationCycle.newBuilder().build())
                     .setGroup(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                     .putAllLabels(new HashMap())
                     .addAllRecentCloneJobs(new ArrayList())
                     .setError(Status.newBuilder().build())
                     .addAllRecentCutoverJobs(new ArrayList())
        +            .setCutoverForecast(CutoverForecast.newBuilder().build())
        +            .setExpiration(MigratingVm.Expiration.newBuilder().build())
                     .build();
             mockService.addResponse(expectedResponse);
         
        @@ -1991,11 +2124,14 @@ public void updateMigratingVmTest() throws Exception {
                     .setLastSync(ReplicationSync.newBuilder().build())
                     .setStateTime(Timestamp.newBuilder().build())
                     .setCurrentSyncInfo(ReplicationCycle.newBuilder().build())
        +            .setLastReplicationCycle(ReplicationCycle.newBuilder().build())
                     .setGroup(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                     .putAllLabels(new HashMap())
                     .addAllRecentCloneJobs(new ArrayList())
                     .setError(Status.newBuilder().build())
                     .addAllRecentCutoverJobs(new ArrayList())
        +            .setCutoverForecast(CutoverForecast.newBuilder().build())
        +            .setExpiration(MigratingVm.Expiration.newBuilder().build())
                     .build();
             Operation resultOperation =
                 Operation.newBuilder()
        @@ -2019,11 +2155,14 @@ public void updateMigratingVmTest() throws Exception {
                     .setLastSync(ReplicationSync.newBuilder().build())
                     .setStateTime(Timestamp.newBuilder().build())
                     .setCurrentSyncInfo(ReplicationCycle.newBuilder().build())
        +            .setLastReplicationCycle(ReplicationCycle.newBuilder().build())
                     .setGroup(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                     .putAllLabels(new HashMap())
                     .addAllRecentCloneJobs(new ArrayList())
                     .setError(Status.newBuilder().build())
                     .addAllRecentCutoverJobs(new ArrayList())
        +            .setCutoverForecast(CutoverForecast.newBuilder().build())
        +            .setExpiration(MigratingVm.Expiration.newBuilder().build())
                     .build();
             FieldMask updateMask = FieldMask.newBuilder().build();
         
        @@ -2067,11 +2206,14 @@ public void updateMigratingVmExceptionTest() throws Exception {
                       .setLastSync(ReplicationSync.newBuilder().build())
                       .setStateTime(Timestamp.newBuilder().build())
                       .setCurrentSyncInfo(ReplicationCycle.newBuilder().build())
        +              .setLastReplicationCycle(ReplicationCycle.newBuilder().build())
                       .setGroup(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                       .putAllLabels(new HashMap())
                       .addAllRecentCloneJobs(new ArrayList())
                       .setError(Status.newBuilder().build())
                       .addAllRecentCutoverJobs(new ArrayList())
        +              .setCutoverForecast(CutoverForecast.newBuilder().build())
        +              .setExpiration(MigratingVm.Expiration.newBuilder().build())
                       .build();
               FieldMask updateMask = FieldMask.newBuilder().build();
               client.updateMigratingVmAsync(migratingVm, updateMask).get();
        @@ -2478,6 +2620,62 @@ public void finalizeMigrationExceptionTest2() throws Exception {
             }
           }
         
        +  @Test
        +  public void extendMigrationTest() throws Exception {
        +    ExtendMigrationResponse expectedResponse = ExtendMigrationResponse.newBuilder().build();
        +    Operation resultOperation =
        +        Operation.newBuilder()
        +            .setName("extendMigrationTest")
        +            .setDone(true)
        +            .setResponse(Any.pack(expectedResponse))
        +            .build();
        +    mockService.addResponse(resultOperation);
        +
        +    ExtendMigrationRequest request =
        +        ExtendMigrationRequest.newBuilder()
        +            .setMigratingVm(
        +                MigratingVmName.of("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]")
        +                    .toString())
        +            .build();
        +
        +    ExtendMigrationResponse actualResponse = client.extendMigrationAsync(request).get();
        +    Assert.assertEquals(expectedResponse, actualResponse);
        +
        +    List actualRequests = mockService.getRequestPaths();
        +    Assert.assertEquals(1, actualRequests.size());
        +
        +    String apiClientHeaderKey =
        +        mockService
        +            .getRequestHeaders()
        +            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
        +            .iterator()
        +            .next();
        +    Assert.assertTrue(
        +        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
        +            .matcher(apiClientHeaderKey)
        +            .matches());
        +  }
        +
        +  @Test
        +  public void extendMigrationExceptionTest() throws Exception {
        +    ApiException exception =
        +        ApiExceptionFactory.createException(
        +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
        +    mockService.addException(exception);
        +
        +    try {
        +      ExtendMigrationRequest request =
        +          ExtendMigrationRequest.newBuilder()
        +              .setMigratingVm(
        +                  MigratingVmName.of("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]")
        +                      .toString())
        +              .build();
        +      client.extendMigrationAsync(request).get();
        +      Assert.fail("No exception raised");
        +    } catch (ExecutionException e) {
        +    }
        +  }
        +
           @Test
           public void createCloneJobTest() throws Exception {
             CloneJob expectedResponse =
        @@ -4610,6 +4808,7 @@ public void getReplicationCycleTest() throws Exception {
                     .setProgressPercent(-2137894861)
                     .addAllSteps(new ArrayList())
                     .setError(Status.newBuilder().build())
        +            .addAllWarnings(new ArrayList())
                     .build();
             mockService.addResponse(expectedResponse);
         
        @@ -4672,6 +4871,7 @@ public void getReplicationCycleTest2() throws Exception {
                     .setProgressPercent(-2137894861)
                     .addAllSteps(new ArrayList())
                     .setError(Status.newBuilder().build())
        +            .addAllWarnings(new ArrayList())
                     .build();
             mockService.addResponse(expectedResponse);
         
        @@ -4713,6 +4913,1370 @@ public void getReplicationCycleExceptionTest2() throws Exception {
             }
           }
         
        +  @Test
        +  public void listImageImportsTest() throws Exception {
        +    ImageImport responsesElement = ImageImport.newBuilder().build();
        +    ListImageImportsResponse expectedResponse =
        +        ListImageImportsResponse.newBuilder()
        +            .setNextPageToken("")
        +            .addAllImageImports(Arrays.asList(responsesElement))
        +            .build();
        +    mockService.addResponse(expectedResponse);
        +
        +    LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
        +
        +    ListImageImportsPagedResponse pagedListResponse = client.listImageImports(parent);
        +
        +    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
        +
        +    Assert.assertEquals(1, resources.size());
        +    Assert.assertEquals(expectedResponse.getImageImportsList().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 listImageImportsExceptionTest() throws Exception {
        +    ApiException exception =
        +        ApiExceptionFactory.createException(
        +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
        +    mockService.addException(exception);
        +
        +    try {
        +      LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
        +      client.listImageImports(parent);
        +      Assert.fail("No exception raised");
        +    } catch (InvalidArgumentException e) {
        +      // Expected exception.
        +    }
        +  }
        +
        +  @Test
        +  public void listImageImportsTest2() throws Exception {
        +    ImageImport responsesElement = ImageImport.newBuilder().build();
        +    ListImageImportsResponse expectedResponse =
        +        ListImageImportsResponse.newBuilder()
        +            .setNextPageToken("")
        +            .addAllImageImports(Arrays.asList(responsesElement))
        +            .build();
        +    mockService.addResponse(expectedResponse);
        +
        +    String parent = "projects/project-5833/locations/location-5833";
        +
        +    ListImageImportsPagedResponse pagedListResponse = client.listImageImports(parent);
        +
        +    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
        +
        +    Assert.assertEquals(1, resources.size());
        +    Assert.assertEquals(expectedResponse.getImageImportsList().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 listImageImportsExceptionTest2() throws Exception {
        +    ApiException exception =
        +        ApiExceptionFactory.createException(
        +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
        +    mockService.addException(exception);
        +
        +    try {
        +      String parent = "projects/project-5833/locations/location-5833";
        +      client.listImageImports(parent);
        +      Assert.fail("No exception raised");
        +    } catch (InvalidArgumentException e) {
        +      // Expected exception.
        +    }
        +  }
        +
        +  @Test
        +  public void getImageImportTest() throws Exception {
        +    ImageImport expectedResponse =
        +        ImageImport.newBuilder()
        +            .setName(ImageImportName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString())
        +            .setCreateTime(Timestamp.newBuilder().build())
        +            .addAllRecentImageImportJobs(new ArrayList())
        +            .setEncryption(Encryption.newBuilder().build())
        +            .build();
        +    mockService.addResponse(expectedResponse);
        +
        +    ImageImportName name = ImageImportName.of("[PROJECT]", "[LOCATION]", "[JOB]");
        +
        +    ImageImport actualResponse = client.getImageImport(name);
        +    Assert.assertEquals(expectedResponse, actualResponse);
        +
        +    List actualRequests = mockService.getRequestPaths();
        +    Assert.assertEquals(1, actualRequests.size());
        +
        +    String apiClientHeaderKey =
        +        mockService
        +            .getRequestHeaders()
        +            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
        +            .iterator()
        +            .next();
        +    Assert.assertTrue(
        +        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
        +            .matcher(apiClientHeaderKey)
        +            .matches());
        +  }
        +
        +  @Test
        +  public void getImageImportExceptionTest() throws Exception {
        +    ApiException exception =
        +        ApiExceptionFactory.createException(
        +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
        +    mockService.addException(exception);
        +
        +    try {
        +      ImageImportName name = ImageImportName.of("[PROJECT]", "[LOCATION]", "[JOB]");
        +      client.getImageImport(name);
        +      Assert.fail("No exception raised");
        +    } catch (InvalidArgumentException e) {
        +      // Expected exception.
        +    }
        +  }
        +
        +  @Test
        +  public void getImageImportTest2() throws Exception {
        +    ImageImport expectedResponse =
        +        ImageImport.newBuilder()
        +            .setName(ImageImportName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString())
        +            .setCreateTime(Timestamp.newBuilder().build())
        +            .addAllRecentImageImportJobs(new ArrayList())
        +            .setEncryption(Encryption.newBuilder().build())
        +            .build();
        +    mockService.addResponse(expectedResponse);
        +
        +    String name = "projects/project-995/locations/location-995/imageImports/imageImport-995";
        +
        +    ImageImport actualResponse = client.getImageImport(name);
        +    Assert.assertEquals(expectedResponse, actualResponse);
        +
        +    List actualRequests = mockService.getRequestPaths();
        +    Assert.assertEquals(1, actualRequests.size());
        +
        +    String apiClientHeaderKey =
        +        mockService
        +            .getRequestHeaders()
        +            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
        +            .iterator()
        +            .next();
        +    Assert.assertTrue(
        +        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
        +            .matcher(apiClientHeaderKey)
        +            .matches());
        +  }
        +
        +  @Test
        +  public void getImageImportExceptionTest2() throws Exception {
        +    ApiException exception =
        +        ApiExceptionFactory.createException(
        +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
        +    mockService.addException(exception);
        +
        +    try {
        +      String name = "projects/project-995/locations/location-995/imageImports/imageImport-995";
        +      client.getImageImport(name);
        +      Assert.fail("No exception raised");
        +    } catch (InvalidArgumentException e) {
        +      // Expected exception.
        +    }
        +  }
        +
        +  @Test
        +  public void createImageImportTest() throws Exception {
        +    ImageImport expectedResponse =
        +        ImageImport.newBuilder()
        +            .setName(ImageImportName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString())
        +            .setCreateTime(Timestamp.newBuilder().build())
        +            .addAllRecentImageImportJobs(new ArrayList())
        +            .setEncryption(Encryption.newBuilder().build())
        +            .build();
        +    Operation resultOperation =
        +        Operation.newBuilder()
        +            .setName("createImageImportTest")
        +            .setDone(true)
        +            .setResponse(Any.pack(expectedResponse))
        +            .build();
        +    mockService.addResponse(resultOperation);
        +
        +    LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
        +    ImageImport imageImport = ImageImport.newBuilder().build();
        +    String imageImportId = "imageImportId943893019";
        +
        +    ImageImport actualResponse =
        +        client.createImageImportAsync(parent, imageImport, imageImportId).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 createImageImportExceptionTest() 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]");
        +      ImageImport imageImport = ImageImport.newBuilder().build();
        +      String imageImportId = "imageImportId943893019";
        +      client.createImageImportAsync(parent, imageImport, imageImportId).get();
        +      Assert.fail("No exception raised");
        +    } catch (ExecutionException e) {
        +    }
        +  }
        +
        +  @Test
        +  public void createImageImportTest2() throws Exception {
        +    ImageImport expectedResponse =
        +        ImageImport.newBuilder()
        +            .setName(ImageImportName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString())
        +            .setCreateTime(Timestamp.newBuilder().build())
        +            .addAllRecentImageImportJobs(new ArrayList())
        +            .setEncryption(Encryption.newBuilder().build())
        +            .build();
        +    Operation resultOperation =
        +        Operation.newBuilder()
        +            .setName("createImageImportTest")
        +            .setDone(true)
        +            .setResponse(Any.pack(expectedResponse))
        +            .build();
        +    mockService.addResponse(resultOperation);
        +
        +    String parent = "projects/project-5833/locations/location-5833";
        +    ImageImport imageImport = ImageImport.newBuilder().build();
        +    String imageImportId = "imageImportId943893019";
        +
        +    ImageImport actualResponse =
        +        client.createImageImportAsync(parent, imageImport, imageImportId).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 createImageImportExceptionTest2() 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";
        +      ImageImport imageImport = ImageImport.newBuilder().build();
        +      String imageImportId = "imageImportId943893019";
        +      client.createImageImportAsync(parent, imageImport, imageImportId).get();
        +      Assert.fail("No exception raised");
        +    } catch (ExecutionException e) {
        +    }
        +  }
        +
        +  @Test
        +  public void deleteImageImportTest() throws Exception {
        +    Empty expectedResponse = Empty.newBuilder().build();
        +    Operation resultOperation =
        +        Operation.newBuilder()
        +            .setName("deleteImageImportTest")
        +            .setDone(true)
        +            .setResponse(Any.pack(expectedResponse))
        +            .build();
        +    mockService.addResponse(resultOperation);
        +
        +    ImageImportName name = ImageImportName.of("[PROJECT]", "[LOCATION]", "[JOB]");
        +
        +    client.deleteImageImportAsync(name).get();
        +
        +    List actualRequests = mockService.getRequestPaths();
        +    Assert.assertEquals(1, actualRequests.size());
        +
        +    String apiClientHeaderKey =
        +        mockService
        +            .getRequestHeaders()
        +            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
        +            .iterator()
        +            .next();
        +    Assert.assertTrue(
        +        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
        +            .matcher(apiClientHeaderKey)
        +            .matches());
        +  }
        +
        +  @Test
        +  public void deleteImageImportExceptionTest() throws Exception {
        +    ApiException exception =
        +        ApiExceptionFactory.createException(
        +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
        +    mockService.addException(exception);
        +
        +    try {
        +      ImageImportName name = ImageImportName.of("[PROJECT]", "[LOCATION]", "[JOB]");
        +      client.deleteImageImportAsync(name).get();
        +      Assert.fail("No exception raised");
        +    } catch (ExecutionException e) {
        +    }
        +  }
        +
        +  @Test
        +  public void deleteImageImportTest2() throws Exception {
        +    Empty expectedResponse = Empty.newBuilder().build();
        +    Operation resultOperation =
        +        Operation.newBuilder()
        +            .setName("deleteImageImportTest")
        +            .setDone(true)
        +            .setResponse(Any.pack(expectedResponse))
        +            .build();
        +    mockService.addResponse(resultOperation);
        +
        +    String name = "projects/project-995/locations/location-995/imageImports/imageImport-995";
        +
        +    client.deleteImageImportAsync(name).get();
        +
        +    List actualRequests = mockService.getRequestPaths();
        +    Assert.assertEquals(1, actualRequests.size());
        +
        +    String apiClientHeaderKey =
        +        mockService
        +            .getRequestHeaders()
        +            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
        +            .iterator()
        +            .next();
        +    Assert.assertTrue(
        +        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
        +            .matcher(apiClientHeaderKey)
        +            .matches());
        +  }
        +
        +  @Test
        +  public void deleteImageImportExceptionTest2() throws Exception {
        +    ApiException exception =
        +        ApiExceptionFactory.createException(
        +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
        +    mockService.addException(exception);
        +
        +    try {
        +      String name = "projects/project-995/locations/location-995/imageImports/imageImport-995";
        +      client.deleteImageImportAsync(name).get();
        +      Assert.fail("No exception raised");
        +    } catch (ExecutionException e) {
        +    }
        +  }
        +
        +  @Test
        +  public void listImageImportJobsTest() throws Exception {
        +    ImageImportJob responsesElement = ImageImportJob.newBuilder().build();
        +    ListImageImportJobsResponse expectedResponse =
        +        ListImageImportJobsResponse.newBuilder()
        +            .setNextPageToken("")
        +            .addAllImageImportJobs(Arrays.asList(responsesElement))
        +            .build();
        +    mockService.addResponse(expectedResponse);
        +
        +    ImageImportName parent = ImageImportName.of("[PROJECT]", "[LOCATION]", "[JOB]");
        +
        +    ListImageImportJobsPagedResponse pagedListResponse = client.listImageImportJobs(parent);
        +
        +    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
        +
        +    Assert.assertEquals(1, resources.size());
        +    Assert.assertEquals(expectedResponse.getImageImportJobsList().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 listImageImportJobsExceptionTest() throws Exception {
        +    ApiException exception =
        +        ApiExceptionFactory.createException(
        +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
        +    mockService.addException(exception);
        +
        +    try {
        +      ImageImportName parent = ImageImportName.of("[PROJECT]", "[LOCATION]", "[JOB]");
        +      client.listImageImportJobs(parent);
        +      Assert.fail("No exception raised");
        +    } catch (InvalidArgumentException e) {
        +      // Expected exception.
        +    }
        +  }
        +
        +  @Test
        +  public void listImageImportJobsTest2() throws Exception {
        +    ImageImportJob responsesElement = ImageImportJob.newBuilder().build();
        +    ListImageImportJobsResponse expectedResponse =
        +        ListImageImportJobsResponse.newBuilder()
        +            .setNextPageToken("")
        +            .addAllImageImportJobs(Arrays.asList(responsesElement))
        +            .build();
        +    mockService.addResponse(expectedResponse);
        +
        +    String parent = "projects/project-476/locations/location-476/imageImports/imageImport-476";
        +
        +    ListImageImportJobsPagedResponse pagedListResponse = client.listImageImportJobs(parent);
        +
        +    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
        +
        +    Assert.assertEquals(1, resources.size());
        +    Assert.assertEquals(expectedResponse.getImageImportJobsList().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 listImageImportJobsExceptionTest2() throws Exception {
        +    ApiException exception =
        +        ApiExceptionFactory.createException(
        +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
        +    mockService.addException(exception);
        +
        +    try {
        +      String parent = "projects/project-476/locations/location-476/imageImports/imageImport-476";
        +      client.listImageImportJobs(parent);
        +      Assert.fail("No exception raised");
        +    } catch (InvalidArgumentException e) {
        +      // Expected exception.
        +    }
        +  }
        +
        +  @Test
        +  public void getImageImportJobTest() throws Exception {
        +    ImageImportJob expectedResponse =
        +        ImageImportJob.newBuilder()
        +            .setName(
        +                ImageImportJobName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[RESULT]").toString())
        +            .addAllCreatedResources(new ArrayList())
        +            .setCreateTime(Timestamp.newBuilder().build())
        +            .setEndTime(Timestamp.newBuilder().build())
        +            .addAllErrors(new ArrayList())
        +            .addAllWarnings(new ArrayList())
        +            .addAllSteps(new ArrayList())
        +            .build();
        +    mockService.addResponse(expectedResponse);
        +
        +    ImageImportJobName name = ImageImportJobName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[RESULT]");
        +
        +    ImageImportJob actualResponse = client.getImageImportJob(name);
        +    Assert.assertEquals(expectedResponse, actualResponse);
        +
        +    List actualRequests = mockService.getRequestPaths();
        +    Assert.assertEquals(1, actualRequests.size());
        +
        +    String apiClientHeaderKey =
        +        mockService
        +            .getRequestHeaders()
        +            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
        +            .iterator()
        +            .next();
        +    Assert.assertTrue(
        +        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
        +            .matcher(apiClientHeaderKey)
        +            .matches());
        +  }
        +
        +  @Test
        +  public void getImageImportJobExceptionTest() throws Exception {
        +    ApiException exception =
        +        ApiExceptionFactory.createException(
        +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
        +    mockService.addException(exception);
        +
        +    try {
        +      ImageImportJobName name =
        +          ImageImportJobName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[RESULT]");
        +      client.getImageImportJob(name);
        +      Assert.fail("No exception raised");
        +    } catch (InvalidArgumentException e) {
        +      // Expected exception.
        +    }
        +  }
        +
        +  @Test
        +  public void getImageImportJobTest2() throws Exception {
        +    ImageImportJob expectedResponse =
        +        ImageImportJob.newBuilder()
        +            .setName(
        +                ImageImportJobName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[RESULT]").toString())
        +            .addAllCreatedResources(new ArrayList())
        +            .setCreateTime(Timestamp.newBuilder().build())
        +            .setEndTime(Timestamp.newBuilder().build())
        +            .addAllErrors(new ArrayList())
        +            .addAllWarnings(new ArrayList())
        +            .addAllSteps(new ArrayList())
        +            .build();
        +    mockService.addResponse(expectedResponse);
        +
        +    String name =
        +        "projects/project-3077/locations/location-3077/imageImports/imageImport-3077/imageImportJobs/imageImportJob-3077";
        +
        +    ImageImportJob actualResponse = client.getImageImportJob(name);
        +    Assert.assertEquals(expectedResponse, actualResponse);
        +
        +    List actualRequests = mockService.getRequestPaths();
        +    Assert.assertEquals(1, actualRequests.size());
        +
        +    String apiClientHeaderKey =
        +        mockService
        +            .getRequestHeaders()
        +            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
        +            .iterator()
        +            .next();
        +    Assert.assertTrue(
        +        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
        +            .matcher(apiClientHeaderKey)
        +            .matches());
        +  }
        +
        +  @Test
        +  public void getImageImportJobExceptionTest2() throws Exception {
        +    ApiException exception =
        +        ApiExceptionFactory.createException(
        +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
        +    mockService.addException(exception);
        +
        +    try {
        +      String name =
        +          "projects/project-3077/locations/location-3077/imageImports/imageImport-3077/imageImportJobs/imageImportJob-3077";
        +      client.getImageImportJob(name);
        +      Assert.fail("No exception raised");
        +    } catch (InvalidArgumentException e) {
        +      // Expected exception.
        +    }
        +  }
        +
        +  @Test
        +  public void cancelImageImportJobTest() throws Exception {
        +    CancelImageImportJobResponse expectedResponse =
        +        CancelImageImportJobResponse.newBuilder().build();
        +    Operation resultOperation =
        +        Operation.newBuilder()
        +            .setName("cancelImageImportJobTest")
        +            .setDone(true)
        +            .setResponse(Any.pack(expectedResponse))
        +            .build();
        +    mockService.addResponse(resultOperation);
        +
        +    ImageImportJobName name = ImageImportJobName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[RESULT]");
        +
        +    CancelImageImportJobResponse actualResponse = client.cancelImageImportJobAsync(name).get();
        +    Assert.assertEquals(expectedResponse, actualResponse);
        +
        +    List actualRequests = mockService.getRequestPaths();
        +    Assert.assertEquals(1, actualRequests.size());
        +
        +    String apiClientHeaderKey =
        +        mockService
        +            .getRequestHeaders()
        +            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
        +            .iterator()
        +            .next();
        +    Assert.assertTrue(
        +        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
        +            .matcher(apiClientHeaderKey)
        +            .matches());
        +  }
        +
        +  @Test
        +  public void cancelImageImportJobExceptionTest() throws Exception {
        +    ApiException exception =
        +        ApiExceptionFactory.createException(
        +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
        +    mockService.addException(exception);
        +
        +    try {
        +      ImageImportJobName name =
        +          ImageImportJobName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[RESULT]");
        +      client.cancelImageImportJobAsync(name).get();
        +      Assert.fail("No exception raised");
        +    } catch (ExecutionException e) {
        +    }
        +  }
        +
        +  @Test
        +  public void cancelImageImportJobTest2() throws Exception {
        +    CancelImageImportJobResponse expectedResponse =
        +        CancelImageImportJobResponse.newBuilder().build();
        +    Operation resultOperation =
        +        Operation.newBuilder()
        +            .setName("cancelImageImportJobTest")
        +            .setDone(true)
        +            .setResponse(Any.pack(expectedResponse))
        +            .build();
        +    mockService.addResponse(resultOperation);
        +
        +    String name =
        +        "projects/project-3077/locations/location-3077/imageImports/imageImport-3077/imageImportJobs/imageImportJob-3077";
        +
        +    CancelImageImportJobResponse actualResponse = client.cancelImageImportJobAsync(name).get();
        +    Assert.assertEquals(expectedResponse, actualResponse);
        +
        +    List actualRequests = mockService.getRequestPaths();
        +    Assert.assertEquals(1, actualRequests.size());
        +
        +    String apiClientHeaderKey =
        +        mockService
        +            .getRequestHeaders()
        +            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
        +            .iterator()
        +            .next();
        +    Assert.assertTrue(
        +        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
        +            .matcher(apiClientHeaderKey)
        +            .matches());
        +  }
        +
        +  @Test
        +  public void cancelImageImportJobExceptionTest2() throws Exception {
        +    ApiException exception =
        +        ApiExceptionFactory.createException(
        +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
        +    mockService.addException(exception);
        +
        +    try {
        +      String name =
        +          "projects/project-3077/locations/location-3077/imageImports/imageImport-3077/imageImportJobs/imageImportJob-3077";
        +      client.cancelImageImportJobAsync(name).get();
        +      Assert.fail("No exception raised");
        +    } catch (ExecutionException e) {
        +    }
        +  }
        +
        +  @Test
        +  public void createDiskMigrationJobTest() throws Exception {
        +    DiskMigrationJob expectedResponse =
        +        DiskMigrationJob.newBuilder()
        +            .setName(
        +                DiskMigrationJobName.of(
        +                        "[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]")
        +                    .toString())
        +            .setTargetDetails(DiskMigrationJobTargetDetails.newBuilder().build())
        +            .setCreateTime(Timestamp.newBuilder().build())
        +            .setUpdateTime(Timestamp.newBuilder().build())
        +            .addAllErrors(new ArrayList())
        +            .addAllSteps(new ArrayList())
        +            .build();
        +    Operation resultOperation =
        +        Operation.newBuilder()
        +            .setName("createDiskMigrationJobTest")
        +            .setDone(true)
        +            .setResponse(Any.pack(expectedResponse))
        +            .build();
        +    mockService.addResponse(resultOperation);
        +
        +    SourceName parent = SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]");
        +    DiskMigrationJob diskMigrationJob = DiskMigrationJob.newBuilder().build();
        +    String diskMigrationJobId = "diskMigrationJobId-173409913";
        +
        +    DiskMigrationJob actualResponse =
        +        client.createDiskMigrationJobAsync(parent, diskMigrationJob, diskMigrationJobId).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 createDiskMigrationJobExceptionTest() throws Exception {
        +    ApiException exception =
        +        ApiExceptionFactory.createException(
        +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
        +    mockService.addException(exception);
        +
        +    try {
        +      SourceName parent = SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]");
        +      DiskMigrationJob diskMigrationJob = DiskMigrationJob.newBuilder().build();
        +      String diskMigrationJobId = "diskMigrationJobId-173409913";
        +      client.createDiskMigrationJobAsync(parent, diskMigrationJob, diskMigrationJobId).get();
        +      Assert.fail("No exception raised");
        +    } catch (ExecutionException e) {
        +    }
        +  }
        +
        +  @Test
        +  public void createDiskMigrationJobTest2() throws Exception {
        +    DiskMigrationJob expectedResponse =
        +        DiskMigrationJob.newBuilder()
        +            .setName(
        +                DiskMigrationJobName.of(
        +                        "[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]")
        +                    .toString())
        +            .setTargetDetails(DiskMigrationJobTargetDetails.newBuilder().build())
        +            .setCreateTime(Timestamp.newBuilder().build())
        +            .setUpdateTime(Timestamp.newBuilder().build())
        +            .addAllErrors(new ArrayList())
        +            .addAllSteps(new ArrayList())
        +            .build();
        +    Operation resultOperation =
        +        Operation.newBuilder()
        +            .setName("createDiskMigrationJobTest")
        +            .setDone(true)
        +            .setResponse(Any.pack(expectedResponse))
        +            .build();
        +    mockService.addResponse(resultOperation);
        +
        +    String parent = "projects/project-8435/locations/location-8435/sources/source-8435";
        +    DiskMigrationJob diskMigrationJob = DiskMigrationJob.newBuilder().build();
        +    String diskMigrationJobId = "diskMigrationJobId-173409913";
        +
        +    DiskMigrationJob actualResponse =
        +        client.createDiskMigrationJobAsync(parent, diskMigrationJob, diskMigrationJobId).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 createDiskMigrationJobExceptionTest2() throws Exception {
        +    ApiException exception =
        +        ApiExceptionFactory.createException(
        +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
        +    mockService.addException(exception);
        +
        +    try {
        +      String parent = "projects/project-8435/locations/location-8435/sources/source-8435";
        +      DiskMigrationJob diskMigrationJob = DiskMigrationJob.newBuilder().build();
        +      String diskMigrationJobId = "diskMigrationJobId-173409913";
        +      client.createDiskMigrationJobAsync(parent, diskMigrationJob, diskMigrationJobId).get();
        +      Assert.fail("No exception raised");
        +    } catch (ExecutionException e) {
        +    }
        +  }
        +
        +  @Test
        +  public void listDiskMigrationJobsTest() throws Exception {
        +    DiskMigrationJob responsesElement = DiskMigrationJob.newBuilder().build();
        +    ListDiskMigrationJobsResponse expectedResponse =
        +        ListDiskMigrationJobsResponse.newBuilder()
        +            .setNextPageToken("")
        +            .addAllDiskMigrationJobs(Arrays.asList(responsesElement))
        +            .build();
        +    mockService.addResponse(expectedResponse);
        +
        +    SourceName parent = SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]");
        +
        +    ListDiskMigrationJobsPagedResponse pagedListResponse = client.listDiskMigrationJobs(parent);
        +
        +    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
        +
        +    Assert.assertEquals(1, resources.size());
        +    Assert.assertEquals(expectedResponse.getDiskMigrationJobsList().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 listDiskMigrationJobsExceptionTest() throws Exception {
        +    ApiException exception =
        +        ApiExceptionFactory.createException(
        +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
        +    mockService.addException(exception);
        +
        +    try {
        +      SourceName parent = SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]");
        +      client.listDiskMigrationJobs(parent);
        +      Assert.fail("No exception raised");
        +    } catch (InvalidArgumentException e) {
        +      // Expected exception.
        +    }
        +  }
        +
        +  @Test
        +  public void listDiskMigrationJobsTest2() throws Exception {
        +    DiskMigrationJob responsesElement = DiskMigrationJob.newBuilder().build();
        +    ListDiskMigrationJobsResponse expectedResponse =
        +        ListDiskMigrationJobsResponse.newBuilder()
        +            .setNextPageToken("")
        +            .addAllDiskMigrationJobs(Arrays.asList(responsesElement))
        +            .build();
        +    mockService.addResponse(expectedResponse);
        +
        +    String parent = "projects/project-8435/locations/location-8435/sources/source-8435";
        +
        +    ListDiskMigrationJobsPagedResponse pagedListResponse = client.listDiskMigrationJobs(parent);
        +
        +    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
        +
        +    Assert.assertEquals(1, resources.size());
        +    Assert.assertEquals(expectedResponse.getDiskMigrationJobsList().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 listDiskMigrationJobsExceptionTest2() throws Exception {
        +    ApiException exception =
        +        ApiExceptionFactory.createException(
        +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
        +    mockService.addException(exception);
        +
        +    try {
        +      String parent = "projects/project-8435/locations/location-8435/sources/source-8435";
        +      client.listDiskMigrationJobs(parent);
        +      Assert.fail("No exception raised");
        +    } catch (InvalidArgumentException e) {
        +      // Expected exception.
        +    }
        +  }
        +
        +  @Test
        +  public void getDiskMigrationJobTest() throws Exception {
        +    DiskMigrationJob expectedResponse =
        +        DiskMigrationJob.newBuilder()
        +            .setName(
        +                DiskMigrationJobName.of(
        +                        "[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]")
        +                    .toString())
        +            .setTargetDetails(DiskMigrationJobTargetDetails.newBuilder().build())
        +            .setCreateTime(Timestamp.newBuilder().build())
        +            .setUpdateTime(Timestamp.newBuilder().build())
        +            .addAllErrors(new ArrayList())
        +            .addAllSteps(new ArrayList())
        +            .build();
        +    mockService.addResponse(expectedResponse);
        +
        +    DiskMigrationJobName name =
        +        DiskMigrationJobName.of("[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]");
        +
        +    DiskMigrationJob actualResponse = client.getDiskMigrationJob(name);
        +    Assert.assertEquals(expectedResponse, actualResponse);
        +
        +    List actualRequests = mockService.getRequestPaths();
        +    Assert.assertEquals(1, actualRequests.size());
        +
        +    String apiClientHeaderKey =
        +        mockService
        +            .getRequestHeaders()
        +            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
        +            .iterator()
        +            .next();
        +    Assert.assertTrue(
        +        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
        +            .matcher(apiClientHeaderKey)
        +            .matches());
        +  }
        +
        +  @Test
        +  public void getDiskMigrationJobExceptionTest() throws Exception {
        +    ApiException exception =
        +        ApiExceptionFactory.createException(
        +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
        +    mockService.addException(exception);
        +
        +    try {
        +      DiskMigrationJobName name =
        +          DiskMigrationJobName.of("[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]");
        +      client.getDiskMigrationJob(name);
        +      Assert.fail("No exception raised");
        +    } catch (InvalidArgumentException e) {
        +      // Expected exception.
        +    }
        +  }
        +
        +  @Test
        +  public void getDiskMigrationJobTest2() throws Exception {
        +    DiskMigrationJob expectedResponse =
        +        DiskMigrationJob.newBuilder()
        +            .setName(
        +                DiskMigrationJobName.of(
        +                        "[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]")
        +                    .toString())
        +            .setTargetDetails(DiskMigrationJobTargetDetails.newBuilder().build())
        +            .setCreateTime(Timestamp.newBuilder().build())
        +            .setUpdateTime(Timestamp.newBuilder().build())
        +            .addAllErrors(new ArrayList())
        +            .addAllSteps(new ArrayList())
        +            .build();
        +    mockService.addResponse(expectedResponse);
        +
        +    String name =
        +        "projects/project-6865/locations/location-6865/sources/source-6865/diskMigrationJobs/diskMigrationJob-6865";
        +
        +    DiskMigrationJob actualResponse = client.getDiskMigrationJob(name);
        +    Assert.assertEquals(expectedResponse, actualResponse);
        +
        +    List actualRequests = mockService.getRequestPaths();
        +    Assert.assertEquals(1, actualRequests.size());
        +
        +    String apiClientHeaderKey =
        +        mockService
        +            .getRequestHeaders()
        +            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
        +            .iterator()
        +            .next();
        +    Assert.assertTrue(
        +        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
        +            .matcher(apiClientHeaderKey)
        +            .matches());
        +  }
        +
        +  @Test
        +  public void getDiskMigrationJobExceptionTest2() throws Exception {
        +    ApiException exception =
        +        ApiExceptionFactory.createException(
        +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
        +    mockService.addException(exception);
        +
        +    try {
        +      String name =
        +          "projects/project-6865/locations/location-6865/sources/source-6865/diskMigrationJobs/diskMigrationJob-6865";
        +      client.getDiskMigrationJob(name);
        +      Assert.fail("No exception raised");
        +    } catch (InvalidArgumentException e) {
        +      // Expected exception.
        +    }
        +  }
        +
        +  @Test
        +  public void updateDiskMigrationJobTest() throws Exception {
        +    DiskMigrationJob expectedResponse =
        +        DiskMigrationJob.newBuilder()
        +            .setName(
        +                DiskMigrationJobName.of(
        +                        "[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]")
        +                    .toString())
        +            .setTargetDetails(DiskMigrationJobTargetDetails.newBuilder().build())
        +            .setCreateTime(Timestamp.newBuilder().build())
        +            .setUpdateTime(Timestamp.newBuilder().build())
        +            .addAllErrors(new ArrayList())
        +            .addAllSteps(new ArrayList())
        +            .build();
        +    Operation resultOperation =
        +        Operation.newBuilder()
        +            .setName("updateDiskMigrationJobTest")
        +            .setDone(true)
        +            .setResponse(Any.pack(expectedResponse))
        +            .build();
        +    mockService.addResponse(resultOperation);
        +
        +    DiskMigrationJob diskMigrationJob =
        +        DiskMigrationJob.newBuilder()
        +            .setName(
        +                DiskMigrationJobName.of(
        +                        "[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]")
        +                    .toString())
        +            .setTargetDetails(DiskMigrationJobTargetDetails.newBuilder().build())
        +            .setCreateTime(Timestamp.newBuilder().build())
        +            .setUpdateTime(Timestamp.newBuilder().build())
        +            .addAllErrors(new ArrayList())
        +            .addAllSteps(new ArrayList())
        +            .build();
        +    FieldMask updateMask = FieldMask.newBuilder().build();
        +
        +    DiskMigrationJob actualResponse =
        +        client.updateDiskMigrationJobAsync(diskMigrationJob, updateMask).get();
        +    Assert.assertEquals(expectedResponse, actualResponse);
        +
        +    List actualRequests = mockService.getRequestPaths();
        +    Assert.assertEquals(1, actualRequests.size());
        +
        +    String apiClientHeaderKey =
        +        mockService
        +            .getRequestHeaders()
        +            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
        +            .iterator()
        +            .next();
        +    Assert.assertTrue(
        +        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
        +            .matcher(apiClientHeaderKey)
        +            .matches());
        +  }
        +
        +  @Test
        +  public void updateDiskMigrationJobExceptionTest() throws Exception {
        +    ApiException exception =
        +        ApiExceptionFactory.createException(
        +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
        +    mockService.addException(exception);
        +
        +    try {
        +      DiskMigrationJob diskMigrationJob =
        +          DiskMigrationJob.newBuilder()
        +              .setName(
        +                  DiskMigrationJobName.of(
        +                          "[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]")
        +                      .toString())
        +              .setTargetDetails(DiskMigrationJobTargetDetails.newBuilder().build())
        +              .setCreateTime(Timestamp.newBuilder().build())
        +              .setUpdateTime(Timestamp.newBuilder().build())
        +              .addAllErrors(new ArrayList())
        +              .addAllSteps(new ArrayList())
        +              .build();
        +      FieldMask updateMask = FieldMask.newBuilder().build();
        +      client.updateDiskMigrationJobAsync(diskMigrationJob, updateMask).get();
        +      Assert.fail("No exception raised");
        +    } catch (ExecutionException e) {
        +    }
        +  }
        +
        +  @Test
        +  public void deleteDiskMigrationJobTest() throws Exception {
        +    Empty expectedResponse = Empty.newBuilder().build();
        +    Operation resultOperation =
        +        Operation.newBuilder()
        +            .setName("deleteDiskMigrationJobTest")
        +            .setDone(true)
        +            .setResponse(Any.pack(expectedResponse))
        +            .build();
        +    mockService.addResponse(resultOperation);
        +
        +    DiskMigrationJobName name =
        +        DiskMigrationJobName.of("[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]");
        +
        +    client.deleteDiskMigrationJobAsync(name).get();
        +
        +    List actualRequests = mockService.getRequestPaths();
        +    Assert.assertEquals(1, actualRequests.size());
        +
        +    String apiClientHeaderKey =
        +        mockService
        +            .getRequestHeaders()
        +            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
        +            .iterator()
        +            .next();
        +    Assert.assertTrue(
        +        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
        +            .matcher(apiClientHeaderKey)
        +            .matches());
        +  }
        +
        +  @Test
        +  public void deleteDiskMigrationJobExceptionTest() throws Exception {
        +    ApiException exception =
        +        ApiExceptionFactory.createException(
        +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
        +    mockService.addException(exception);
        +
        +    try {
        +      DiskMigrationJobName name =
        +          DiskMigrationJobName.of("[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]");
        +      client.deleteDiskMigrationJobAsync(name).get();
        +      Assert.fail("No exception raised");
        +    } catch (ExecutionException e) {
        +    }
        +  }
        +
        +  @Test
        +  public void deleteDiskMigrationJobTest2() throws Exception {
        +    Empty expectedResponse = Empty.newBuilder().build();
        +    Operation resultOperation =
        +        Operation.newBuilder()
        +            .setName("deleteDiskMigrationJobTest")
        +            .setDone(true)
        +            .setResponse(Any.pack(expectedResponse))
        +            .build();
        +    mockService.addResponse(resultOperation);
        +
        +    String name =
        +        "projects/project-6865/locations/location-6865/sources/source-6865/diskMigrationJobs/diskMigrationJob-6865";
        +
        +    client.deleteDiskMigrationJobAsync(name).get();
        +
        +    List actualRequests = mockService.getRequestPaths();
        +    Assert.assertEquals(1, actualRequests.size());
        +
        +    String apiClientHeaderKey =
        +        mockService
        +            .getRequestHeaders()
        +            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
        +            .iterator()
        +            .next();
        +    Assert.assertTrue(
        +        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
        +            .matcher(apiClientHeaderKey)
        +            .matches());
        +  }
        +
        +  @Test
        +  public void deleteDiskMigrationJobExceptionTest2() throws Exception {
        +    ApiException exception =
        +        ApiExceptionFactory.createException(
        +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
        +    mockService.addException(exception);
        +
        +    try {
        +      String name =
        +          "projects/project-6865/locations/location-6865/sources/source-6865/diskMigrationJobs/diskMigrationJob-6865";
        +      client.deleteDiskMigrationJobAsync(name).get();
        +      Assert.fail("No exception raised");
        +    } catch (ExecutionException e) {
        +    }
        +  }
        +
        +  @Test
        +  public void runDiskMigrationJobTest() throws Exception {
        +    RunDiskMigrationJobResponse expectedResponse = RunDiskMigrationJobResponse.newBuilder().build();
        +    Operation resultOperation =
        +        Operation.newBuilder()
        +            .setName("runDiskMigrationJobTest")
        +            .setDone(true)
        +            .setResponse(Any.pack(expectedResponse))
        +            .build();
        +    mockService.addResponse(resultOperation);
        +
        +    DiskMigrationJobName name =
        +        DiskMigrationJobName.of("[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]");
        +
        +    RunDiskMigrationJobResponse actualResponse = client.runDiskMigrationJobAsync(name).get();
        +    Assert.assertEquals(expectedResponse, actualResponse);
        +
        +    List actualRequests = mockService.getRequestPaths();
        +    Assert.assertEquals(1, actualRequests.size());
        +
        +    String apiClientHeaderKey =
        +        mockService
        +            .getRequestHeaders()
        +            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
        +            .iterator()
        +            .next();
        +    Assert.assertTrue(
        +        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
        +            .matcher(apiClientHeaderKey)
        +            .matches());
        +  }
        +
        +  @Test
        +  public void runDiskMigrationJobExceptionTest() throws Exception {
        +    ApiException exception =
        +        ApiExceptionFactory.createException(
        +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
        +    mockService.addException(exception);
        +
        +    try {
        +      DiskMigrationJobName name =
        +          DiskMigrationJobName.of("[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]");
        +      client.runDiskMigrationJobAsync(name).get();
        +      Assert.fail("No exception raised");
        +    } catch (ExecutionException e) {
        +    }
        +  }
        +
        +  @Test
        +  public void runDiskMigrationJobTest2() throws Exception {
        +    RunDiskMigrationJobResponse expectedResponse = RunDiskMigrationJobResponse.newBuilder().build();
        +    Operation resultOperation =
        +        Operation.newBuilder()
        +            .setName("runDiskMigrationJobTest")
        +            .setDone(true)
        +            .setResponse(Any.pack(expectedResponse))
        +            .build();
        +    mockService.addResponse(resultOperation);
        +
        +    String name =
        +        "projects/project-6865/locations/location-6865/sources/source-6865/diskMigrationJobs/diskMigrationJob-6865";
        +
        +    RunDiskMigrationJobResponse actualResponse = client.runDiskMigrationJobAsync(name).get();
        +    Assert.assertEquals(expectedResponse, actualResponse);
        +
        +    List actualRequests = mockService.getRequestPaths();
        +    Assert.assertEquals(1, actualRequests.size());
        +
        +    String apiClientHeaderKey =
        +        mockService
        +            .getRequestHeaders()
        +            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
        +            .iterator()
        +            .next();
        +    Assert.assertTrue(
        +        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
        +            .matcher(apiClientHeaderKey)
        +            .matches());
        +  }
        +
        +  @Test
        +  public void runDiskMigrationJobExceptionTest2() throws Exception {
        +    ApiException exception =
        +        ApiExceptionFactory.createException(
        +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
        +    mockService.addException(exception);
        +
        +    try {
        +      String name =
        +          "projects/project-6865/locations/location-6865/sources/source-6865/diskMigrationJobs/diskMigrationJob-6865";
        +      client.runDiskMigrationJobAsync(name).get();
        +      Assert.fail("No exception raised");
        +    } catch (ExecutionException e) {
        +    }
        +  }
        +
        +  @Test
        +  public void cancelDiskMigrationJobTest() throws Exception {
        +    CancelDiskMigrationJobResponse expectedResponse =
        +        CancelDiskMigrationJobResponse.newBuilder().build();
        +    Operation resultOperation =
        +        Operation.newBuilder()
        +            .setName("cancelDiskMigrationJobTest")
        +            .setDone(true)
        +            .setResponse(Any.pack(expectedResponse))
        +            .build();
        +    mockService.addResponse(resultOperation);
        +
        +    CancelDiskMigrationJobRequest request =
        +        CancelDiskMigrationJobRequest.newBuilder()
        +            .setName(
        +                DiskMigrationJobName.of(
        +                        "[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]")
        +                    .toString())
        +            .build();
        +
        +    CancelDiskMigrationJobResponse actualResponse =
        +        client.cancelDiskMigrationJobAsync(request).get();
        +    Assert.assertEquals(expectedResponse, actualResponse);
        +
        +    List actualRequests = mockService.getRequestPaths();
        +    Assert.assertEquals(1, actualRequests.size());
        +
        +    String apiClientHeaderKey =
        +        mockService
        +            .getRequestHeaders()
        +            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
        +            .iterator()
        +            .next();
        +    Assert.assertTrue(
        +        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
        +            .matcher(apiClientHeaderKey)
        +            .matches());
        +  }
        +
        +  @Test
        +  public void cancelDiskMigrationJobExceptionTest() throws Exception {
        +    ApiException exception =
        +        ApiExceptionFactory.createException(
        +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
        +    mockService.addException(exception);
        +
        +    try {
        +      CancelDiskMigrationJobRequest request =
        +          CancelDiskMigrationJobRequest.newBuilder()
        +              .setName(
        +                  DiskMigrationJobName.of(
        +                          "[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]")
        +                      .toString())
        +              .build();
        +      client.cancelDiskMigrationJobAsync(request).get();
        +      Assert.fail("No exception raised");
        +    } catch (ExecutionException e) {
        +    }
        +  }
        +
           @Test
           public void listLocationsTest() throws Exception {
             Location responsesElement = Location.newBuilder().build();
        diff --git a/java-vmmigration/google-cloud-vmmigration/src/test/java/com/google/cloud/vmmigration/v1/VmMigrationClientTest.java b/java-vmmigration/google-cloud-vmmigration/src/test/java/com/google/cloud/vmmigration/v1/VmMigrationClientTest.java
        index c56eccdba850..db3e5341855f 100644
        --- a/java-vmmigration/google-cloud-vmmigration/src/test/java/com/google/cloud/vmmigration/v1/VmMigrationClientTest.java
        +++ b/java-vmmigration/google-cloud-vmmigration/src/test/java/com/google/cloud/vmmigration/v1/VmMigrationClientTest.java
        @@ -16,10 +16,14 @@
         
         package com.google.cloud.vmmigration.v1;
         
        +import static com.google.cloud.vmmigration.v1.VmMigrationClient.FetchStorageInventoryPagedResponse;
         import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListCloneJobsPagedResponse;
         import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListCutoverJobsPagedResponse;
         import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListDatacenterConnectorsPagedResponse;
        +import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListDiskMigrationJobsPagedResponse;
         import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListGroupsPagedResponse;
        +import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListImageImportJobsPagedResponse;
        +import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListImageImportsPagedResponse;
         import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListLocationsPagedResponse;
         import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListMigratingVmsPagedResponse;
         import static com.google.cloud.vmmigration.v1.VmMigrationClient.ListReplicationCyclesPagedResponse;
        @@ -66,7 +70,6 @@
         
         @Generated("by gapic-generator-java")
         public class VmMigrationClientTest {
        -  private static MockIAMPolicy mockIAMPolicy;
           private static MockLocations mockLocations;
           private static MockServiceHelper mockServiceHelper;
           private static MockVmMigration mockVmMigration;
        @@ -77,11 +80,10 @@ public class VmMigrationClientTest {
           public static void startStaticServer() {
             mockVmMigration = new MockVmMigration();
             mockLocations = new MockLocations();
        -    mockIAMPolicy = new MockIAMPolicy();
             mockServiceHelper =
                 new MockServiceHelper(
                     UUID.randomUUID().toString(),
        -            Arrays.asList(mockVmMigration, mockLocations, mockIAMPolicy));
        +            Arrays.asList(mockVmMigration, mockLocations));
             mockServiceHelper.start();
           }
         
        @@ -204,6 +206,7 @@ public void getSourceTest() throws Exception {
                     .setUpdateTime(Timestamp.newBuilder().build())
                     .putAllLabels(new HashMap())
                     .setDescription("description-1724546052")
        +            .setEncryption(Encryption.newBuilder().build())
                     .build();
             mockVmMigration.addResponse(expectedResponse);
         
        @@ -246,6 +249,7 @@ public void getSourceTest2() throws Exception {
                     .setUpdateTime(Timestamp.newBuilder().build())
                     .putAllLabels(new HashMap())
                     .setDescription("description-1724546052")
        +            .setEncryption(Encryption.newBuilder().build())
                     .build();
             mockVmMigration.addResponse(expectedResponse);
         
        @@ -288,6 +292,7 @@ public void createSourceTest() throws Exception {
                     .setUpdateTime(Timestamp.newBuilder().build())
                     .putAllLabels(new HashMap())
                     .setDescription("description-1724546052")
        +            .setEncryption(Encryption.newBuilder().build())
                     .build();
             Operation resultOperation =
                 Operation.newBuilder()
        @@ -344,6 +349,7 @@ public void createSourceTest2() throws Exception {
                     .setUpdateTime(Timestamp.newBuilder().build())
                     .putAllLabels(new HashMap())
                     .setDescription("description-1724546052")
        +            .setEncryption(Encryption.newBuilder().build())
                     .build();
             Operation resultOperation =
                 Operation.newBuilder()
        @@ -400,6 +406,7 @@ public void updateSourceTest() throws Exception {
                     .setUpdateTime(Timestamp.newBuilder().build())
                     .putAllLabels(new HashMap())
                     .setDescription("description-1724546052")
        +            .setEncryption(Encryption.newBuilder().build())
                     .build();
             Operation resultOperation =
                 Operation.newBuilder()
        @@ -600,6 +607,108 @@ public void fetchInventoryExceptionTest2() throws Exception {
             }
           }
         
        +  @Test
        +  public void fetchStorageInventoryTest() throws Exception {
        +    SourceStorageResource responsesElement = SourceStorageResource.newBuilder().build();
        +    FetchStorageInventoryResponse expectedResponse =
        +        FetchStorageInventoryResponse.newBuilder()
        +            .setNextPageToken("")
        +            .addAllResources(Arrays.asList(responsesElement))
        +            .build();
        +    mockVmMigration.addResponse(expectedResponse);
        +
        +    SourceName source = SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]");
        +    FetchStorageInventoryRequest.StorageType type =
        +        FetchStorageInventoryRequest.StorageType.forNumber(0);
        +
        +    FetchStorageInventoryPagedResponse pagedListResponse =
        +        client.fetchStorageInventory(source, type);
        +
        +    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
        +
        +    Assert.assertEquals(1, resources.size());
        +    Assert.assertEquals(expectedResponse.getResourcesList().get(0), resources.get(0));
        +
        +    List actualRequests = mockVmMigration.getRequests();
        +    Assert.assertEquals(1, actualRequests.size());
        +    FetchStorageInventoryRequest actualRequest =
        +        ((FetchStorageInventoryRequest) actualRequests.get(0));
        +
        +    Assert.assertEquals(source.toString(), actualRequest.getSource());
        +    Assert.assertEquals(type, actualRequest.getType());
        +    Assert.assertTrue(
        +        channelProvider.isHeaderSent(
        +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
        +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
        +  }
        +
        +  @Test
        +  public void fetchStorageInventoryExceptionTest() throws Exception {
        +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
        +    mockVmMigration.addException(exception);
        +
        +    try {
        +      SourceName source = SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]");
        +      FetchStorageInventoryRequest.StorageType type =
        +          FetchStorageInventoryRequest.StorageType.forNumber(0);
        +      client.fetchStorageInventory(source, type);
        +      Assert.fail("No exception raised");
        +    } catch (InvalidArgumentException e) {
        +      // Expected exception.
        +    }
        +  }
        +
        +  @Test
        +  public void fetchStorageInventoryTest2() throws Exception {
        +    SourceStorageResource responsesElement = SourceStorageResource.newBuilder().build();
        +    FetchStorageInventoryResponse expectedResponse =
        +        FetchStorageInventoryResponse.newBuilder()
        +            .setNextPageToken("")
        +            .addAllResources(Arrays.asList(responsesElement))
        +            .build();
        +    mockVmMigration.addResponse(expectedResponse);
        +
        +    String source = "source-896505829";
        +    FetchStorageInventoryRequest.StorageType type =
        +        FetchStorageInventoryRequest.StorageType.forNumber(0);
        +
        +    FetchStorageInventoryPagedResponse pagedListResponse =
        +        client.fetchStorageInventory(source, type);
        +
        +    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
        +
        +    Assert.assertEquals(1, resources.size());
        +    Assert.assertEquals(expectedResponse.getResourcesList().get(0), resources.get(0));
        +
        +    List actualRequests = mockVmMigration.getRequests();
        +    Assert.assertEquals(1, actualRequests.size());
        +    FetchStorageInventoryRequest actualRequest =
        +        ((FetchStorageInventoryRequest) actualRequests.get(0));
        +
        +    Assert.assertEquals(source, actualRequest.getSource());
        +    Assert.assertEquals(type, actualRequest.getType());
        +    Assert.assertTrue(
        +        channelProvider.isHeaderSent(
        +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
        +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
        +  }
        +
        +  @Test
        +  public void fetchStorageInventoryExceptionTest2() throws Exception {
        +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
        +    mockVmMigration.addException(exception);
        +
        +    try {
        +      String source = "source-896505829";
        +      FetchStorageInventoryRequest.StorageType type =
        +          FetchStorageInventoryRequest.StorageType.forNumber(0);
        +      client.fetchStorageInventory(source, type);
        +      Assert.fail("No exception raised");
        +    } catch (InvalidArgumentException e) {
        +      // Expected exception.
        +    }
        +  }
        +
           @Test
           public void listUtilizationReportsTest() throws Exception {
             UtilizationReport responsesElement = UtilizationReport.newBuilder().build();
        @@ -1518,11 +1627,14 @@ public void createMigratingVmTest() throws Exception {
                     .setLastSync(ReplicationSync.newBuilder().build())
                     .setStateTime(Timestamp.newBuilder().build())
                     .setCurrentSyncInfo(ReplicationCycle.newBuilder().build())
        +            .setLastReplicationCycle(ReplicationCycle.newBuilder().build())
                     .setGroup(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                     .putAllLabels(new HashMap())
                     .addAllRecentCloneJobs(new ArrayList())
                     .setError(Status.newBuilder().build())
                     .addAllRecentCutoverJobs(new ArrayList())
        +            .setCutoverForecast(CutoverForecast.newBuilder().build())
        +            .setExpiration(MigratingVm.Expiration.newBuilder().build())
                     .build();
             Operation resultOperation =
                 Operation.newBuilder()
        @@ -1587,11 +1699,14 @@ public void createMigratingVmTest2() throws Exception {
                     .setLastSync(ReplicationSync.newBuilder().build())
                     .setStateTime(Timestamp.newBuilder().build())
                     .setCurrentSyncInfo(ReplicationCycle.newBuilder().build())
        +            .setLastReplicationCycle(ReplicationCycle.newBuilder().build())
                     .setGroup(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                     .putAllLabels(new HashMap())
                     .addAllRecentCloneJobs(new ArrayList())
                     .setError(Status.newBuilder().build())
                     .addAllRecentCutoverJobs(new ArrayList())
        +            .setCutoverForecast(CutoverForecast.newBuilder().build())
        +            .setExpiration(MigratingVm.Expiration.newBuilder().build())
                     .build();
             Operation resultOperation =
                 Operation.newBuilder()
        @@ -1744,11 +1859,14 @@ public void getMigratingVmTest() throws Exception {
                     .setLastSync(ReplicationSync.newBuilder().build())
                     .setStateTime(Timestamp.newBuilder().build())
                     .setCurrentSyncInfo(ReplicationCycle.newBuilder().build())
        +            .setLastReplicationCycle(ReplicationCycle.newBuilder().build())
                     .setGroup(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                     .putAllLabels(new HashMap())
                     .addAllRecentCloneJobs(new ArrayList())
                     .setError(Status.newBuilder().build())
                     .addAllRecentCutoverJobs(new ArrayList())
        +            .setCutoverForecast(CutoverForecast.newBuilder().build())
        +            .setExpiration(MigratingVm.Expiration.newBuilder().build())
                     .build();
             mockVmMigration.addResponse(expectedResponse);
         
        @@ -1800,11 +1918,14 @@ public void getMigratingVmTest2() throws Exception {
                     .setLastSync(ReplicationSync.newBuilder().build())
                     .setStateTime(Timestamp.newBuilder().build())
                     .setCurrentSyncInfo(ReplicationCycle.newBuilder().build())
        +            .setLastReplicationCycle(ReplicationCycle.newBuilder().build())
                     .setGroup(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                     .putAllLabels(new HashMap())
                     .addAllRecentCloneJobs(new ArrayList())
                     .setError(Status.newBuilder().build())
                     .addAllRecentCutoverJobs(new ArrayList())
        +            .setCutoverForecast(CutoverForecast.newBuilder().build())
        +            .setExpiration(MigratingVm.Expiration.newBuilder().build())
                     .build();
             mockVmMigration.addResponse(expectedResponse);
         
        @@ -1854,11 +1975,14 @@ public void updateMigratingVmTest() throws Exception {
                     .setLastSync(ReplicationSync.newBuilder().build())
                     .setStateTime(Timestamp.newBuilder().build())
                     .setCurrentSyncInfo(ReplicationCycle.newBuilder().build())
        +            .setLastReplicationCycle(ReplicationCycle.newBuilder().build())
                     .setGroup(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                     .putAllLabels(new HashMap())
                     .addAllRecentCloneJobs(new ArrayList())
                     .setError(Status.newBuilder().build())
                     .addAllRecentCutoverJobs(new ArrayList())
        +            .setCutoverForecast(CutoverForecast.newBuilder().build())
        +            .setExpiration(MigratingVm.Expiration.newBuilder().build())
                     .build();
             Operation resultOperation =
                 Operation.newBuilder()
        @@ -2271,6 +2395,59 @@ public void finalizeMigrationExceptionTest2() throws Exception {
             }
           }
         
        +  @Test
        +  public void extendMigrationTest() throws Exception {
        +    ExtendMigrationResponse expectedResponse = ExtendMigrationResponse.newBuilder().build();
        +    Operation resultOperation =
        +        Operation.newBuilder()
        +            .setName("extendMigrationTest")
        +            .setDone(true)
        +            .setResponse(Any.pack(expectedResponse))
        +            .build();
        +    mockVmMigration.addResponse(resultOperation);
        +
        +    ExtendMigrationRequest request =
        +        ExtendMigrationRequest.newBuilder()
        +            .setMigratingVm(
        +                MigratingVmName.of("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]")
        +                    .toString())
        +            .build();
        +
        +    ExtendMigrationResponse actualResponse = client.extendMigrationAsync(request).get();
        +    Assert.assertEquals(expectedResponse, actualResponse);
        +
        +    List actualRequests = mockVmMigration.getRequests();
        +    Assert.assertEquals(1, actualRequests.size());
        +    ExtendMigrationRequest actualRequest = ((ExtendMigrationRequest) actualRequests.get(0));
        +
        +    Assert.assertEquals(request.getMigratingVm(), actualRequest.getMigratingVm());
        +    Assert.assertTrue(
        +        channelProvider.isHeaderSent(
        +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
        +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
        +  }
        +
        +  @Test
        +  public void extendMigrationExceptionTest() throws Exception {
        +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
        +    mockVmMigration.addException(exception);
        +
        +    try {
        +      ExtendMigrationRequest request =
        +          ExtendMigrationRequest.newBuilder()
        +              .setMigratingVm(
        +                  MigratingVmName.of("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]")
        +                      .toString())
        +              .build();
        +      client.extendMigrationAsync(request).get();
        +      Assert.fail("No exception raised");
        +    } catch (ExecutionException e) {
        +      Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
        +      InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause());
        +      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
        +    }
        +  }
        +
           @Test
           public void createCloneJobTest() throws Exception {
             CloneJob expectedResponse =
        @@ -4202,6 +4379,7 @@ public void getReplicationCycleTest() throws Exception {
                     .setProgressPercent(-2137894861)
                     .addAllSteps(new ArrayList())
                     .setError(Status.newBuilder().build())
        +            .addAllWarnings(new ArrayList())
                     .build();
             mockVmMigration.addResponse(expectedResponse);
         
        @@ -4258,6 +4436,7 @@ public void getReplicationCycleTest2() throws Exception {
                     .setProgressPercent(-2137894861)
                     .addAllSteps(new ArrayList())
                     .setError(Status.newBuilder().build())
        +            .addAllWarnings(new ArrayList())
                     .build();
             mockVmMigration.addResponse(expectedResponse);
         
        @@ -4291,6 +4470,1243 @@ public void getReplicationCycleExceptionTest2() throws Exception {
             }
           }
         
        +  @Test
        +  public void listImageImportsTest() throws Exception {
        +    ImageImport responsesElement = ImageImport.newBuilder().build();
        +    ListImageImportsResponse expectedResponse =
        +        ListImageImportsResponse.newBuilder()
        +            .setNextPageToken("")
        +            .addAllImageImports(Arrays.asList(responsesElement))
        +            .build();
        +    mockVmMigration.addResponse(expectedResponse);
        +
        +    LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
        +
        +    ListImageImportsPagedResponse pagedListResponse = client.listImageImports(parent);
        +
        +    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
        +
        +    Assert.assertEquals(1, resources.size());
        +    Assert.assertEquals(expectedResponse.getImageImportsList().get(0), resources.get(0));
        +
        +    List actualRequests = mockVmMigration.getRequests();
        +    Assert.assertEquals(1, actualRequests.size());
        +    ListImageImportsRequest actualRequest = ((ListImageImportsRequest) actualRequests.get(0));
        +
        +    Assert.assertEquals(parent.toString(), actualRequest.getParent());
        +    Assert.assertTrue(
        +        channelProvider.isHeaderSent(
        +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
        +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
        +  }
        +
        +  @Test
        +  public void listImageImportsExceptionTest() throws Exception {
        +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
        +    mockVmMigration.addException(exception);
        +
        +    try {
        +      LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
        +      client.listImageImports(parent);
        +      Assert.fail("No exception raised");
        +    } catch (InvalidArgumentException e) {
        +      // Expected exception.
        +    }
        +  }
        +
        +  @Test
        +  public void listImageImportsTest2() throws Exception {
        +    ImageImport responsesElement = ImageImport.newBuilder().build();
        +    ListImageImportsResponse expectedResponse =
        +        ListImageImportsResponse.newBuilder()
        +            .setNextPageToken("")
        +            .addAllImageImports(Arrays.asList(responsesElement))
        +            .build();
        +    mockVmMigration.addResponse(expectedResponse);
        +
        +    String parent = "parent-995424086";
        +
        +    ListImageImportsPagedResponse pagedListResponse = client.listImageImports(parent);
        +
        +    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
        +
        +    Assert.assertEquals(1, resources.size());
        +    Assert.assertEquals(expectedResponse.getImageImportsList().get(0), resources.get(0));
        +
        +    List actualRequests = mockVmMigration.getRequests();
        +    Assert.assertEquals(1, actualRequests.size());
        +    ListImageImportsRequest actualRequest = ((ListImageImportsRequest) actualRequests.get(0));
        +
        +    Assert.assertEquals(parent, actualRequest.getParent());
        +    Assert.assertTrue(
        +        channelProvider.isHeaderSent(
        +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
        +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
        +  }
        +
        +  @Test
        +  public void listImageImportsExceptionTest2() throws Exception {
        +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
        +    mockVmMigration.addException(exception);
        +
        +    try {
        +      String parent = "parent-995424086";
        +      client.listImageImports(parent);
        +      Assert.fail("No exception raised");
        +    } catch (InvalidArgumentException e) {
        +      // Expected exception.
        +    }
        +  }
        +
        +  @Test
        +  public void getImageImportTest() throws Exception {
        +    ImageImport expectedResponse =
        +        ImageImport.newBuilder()
        +            .setName(ImageImportName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString())
        +            .setCreateTime(Timestamp.newBuilder().build())
        +            .addAllRecentImageImportJobs(new ArrayList())
        +            .setEncryption(Encryption.newBuilder().build())
        +            .build();
        +    mockVmMigration.addResponse(expectedResponse);
        +
        +    ImageImportName name = ImageImportName.of("[PROJECT]", "[LOCATION]", "[JOB]");
        +
        +    ImageImport actualResponse = client.getImageImport(name);
        +    Assert.assertEquals(expectedResponse, actualResponse);
        +
        +    List actualRequests = mockVmMigration.getRequests();
        +    Assert.assertEquals(1, actualRequests.size());
        +    GetImageImportRequest actualRequest = ((GetImageImportRequest) actualRequests.get(0));
        +
        +    Assert.assertEquals(name.toString(), actualRequest.getName());
        +    Assert.assertTrue(
        +        channelProvider.isHeaderSent(
        +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
        +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
        +  }
        +
        +  @Test
        +  public void getImageImportExceptionTest() throws Exception {
        +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
        +    mockVmMigration.addException(exception);
        +
        +    try {
        +      ImageImportName name = ImageImportName.of("[PROJECT]", "[LOCATION]", "[JOB]");
        +      client.getImageImport(name);
        +      Assert.fail("No exception raised");
        +    } catch (InvalidArgumentException e) {
        +      // Expected exception.
        +    }
        +  }
        +
        +  @Test
        +  public void getImageImportTest2() throws Exception {
        +    ImageImport expectedResponse =
        +        ImageImport.newBuilder()
        +            .setName(ImageImportName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString())
        +            .setCreateTime(Timestamp.newBuilder().build())
        +            .addAllRecentImageImportJobs(new ArrayList())
        +            .setEncryption(Encryption.newBuilder().build())
        +            .build();
        +    mockVmMigration.addResponse(expectedResponse);
        +
        +    String name = "name3373707";
        +
        +    ImageImport actualResponse = client.getImageImport(name);
        +    Assert.assertEquals(expectedResponse, actualResponse);
        +
        +    List actualRequests = mockVmMigration.getRequests();
        +    Assert.assertEquals(1, actualRequests.size());
        +    GetImageImportRequest actualRequest = ((GetImageImportRequest) actualRequests.get(0));
        +
        +    Assert.assertEquals(name, actualRequest.getName());
        +    Assert.assertTrue(
        +        channelProvider.isHeaderSent(
        +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
        +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
        +  }
        +
        +  @Test
        +  public void getImageImportExceptionTest2() throws Exception {
        +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
        +    mockVmMigration.addException(exception);
        +
        +    try {
        +      String name = "name3373707";
        +      client.getImageImport(name);
        +      Assert.fail("No exception raised");
        +    } catch (InvalidArgumentException e) {
        +      // Expected exception.
        +    }
        +  }
        +
        +  @Test
        +  public void createImageImportTest() throws Exception {
        +    ImageImport expectedResponse =
        +        ImageImport.newBuilder()
        +            .setName(ImageImportName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString())
        +            .setCreateTime(Timestamp.newBuilder().build())
        +            .addAllRecentImageImportJobs(new ArrayList())
        +            .setEncryption(Encryption.newBuilder().build())
        +            .build();
        +    Operation resultOperation =
        +        Operation.newBuilder()
        +            .setName("createImageImportTest")
        +            .setDone(true)
        +            .setResponse(Any.pack(expectedResponse))
        +            .build();
        +    mockVmMigration.addResponse(resultOperation);
        +
        +    LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
        +    ImageImport imageImport = ImageImport.newBuilder().build();
        +    String imageImportId = "imageImportId943893019";
        +
        +    ImageImport actualResponse =
        +        client.createImageImportAsync(parent, imageImport, imageImportId).get();
        +    Assert.assertEquals(expectedResponse, actualResponse);
        +
        +    List actualRequests = mockVmMigration.getRequests();
        +    Assert.assertEquals(1, actualRequests.size());
        +    CreateImageImportRequest actualRequest = ((CreateImageImportRequest) actualRequests.get(0));
        +
        +    Assert.assertEquals(parent.toString(), actualRequest.getParent());
        +    Assert.assertEquals(imageImport, actualRequest.getImageImport());
        +    Assert.assertEquals(imageImportId, actualRequest.getImageImportId());
        +    Assert.assertTrue(
        +        channelProvider.isHeaderSent(
        +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
        +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
        +  }
        +
        +  @Test
        +  public void createImageImportExceptionTest() throws Exception {
        +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
        +    mockVmMigration.addException(exception);
        +
        +    try {
        +      LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
        +      ImageImport imageImport = ImageImport.newBuilder().build();
        +      String imageImportId = "imageImportId943893019";
        +      client.createImageImportAsync(parent, imageImport, imageImportId).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 createImageImportTest2() throws Exception {
        +    ImageImport expectedResponse =
        +        ImageImport.newBuilder()
        +            .setName(ImageImportName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString())
        +            .setCreateTime(Timestamp.newBuilder().build())
        +            .addAllRecentImageImportJobs(new ArrayList())
        +            .setEncryption(Encryption.newBuilder().build())
        +            .build();
        +    Operation resultOperation =
        +        Operation.newBuilder()
        +            .setName("createImageImportTest")
        +            .setDone(true)
        +            .setResponse(Any.pack(expectedResponse))
        +            .build();
        +    mockVmMigration.addResponse(resultOperation);
        +
        +    String parent = "parent-995424086";
        +    ImageImport imageImport = ImageImport.newBuilder().build();
        +    String imageImportId = "imageImportId943893019";
        +
        +    ImageImport actualResponse =
        +        client.createImageImportAsync(parent, imageImport, imageImportId).get();
        +    Assert.assertEquals(expectedResponse, actualResponse);
        +
        +    List actualRequests = mockVmMigration.getRequests();
        +    Assert.assertEquals(1, actualRequests.size());
        +    CreateImageImportRequest actualRequest = ((CreateImageImportRequest) actualRequests.get(0));
        +
        +    Assert.assertEquals(parent, actualRequest.getParent());
        +    Assert.assertEquals(imageImport, actualRequest.getImageImport());
        +    Assert.assertEquals(imageImportId, actualRequest.getImageImportId());
        +    Assert.assertTrue(
        +        channelProvider.isHeaderSent(
        +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
        +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
        +  }
        +
        +  @Test
        +  public void createImageImportExceptionTest2() throws Exception {
        +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
        +    mockVmMigration.addException(exception);
        +
        +    try {
        +      String parent = "parent-995424086";
        +      ImageImport imageImport = ImageImport.newBuilder().build();
        +      String imageImportId = "imageImportId943893019";
        +      client.createImageImportAsync(parent, imageImport, imageImportId).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 deleteImageImportTest() throws Exception {
        +    Empty expectedResponse = Empty.newBuilder().build();
        +    Operation resultOperation =
        +        Operation.newBuilder()
        +            .setName("deleteImageImportTest")
        +            .setDone(true)
        +            .setResponse(Any.pack(expectedResponse))
        +            .build();
        +    mockVmMigration.addResponse(resultOperation);
        +
        +    ImageImportName name = ImageImportName.of("[PROJECT]", "[LOCATION]", "[JOB]");
        +
        +    client.deleteImageImportAsync(name).get();
        +
        +    List actualRequests = mockVmMigration.getRequests();
        +    Assert.assertEquals(1, actualRequests.size());
        +    DeleteImageImportRequest actualRequest = ((DeleteImageImportRequest) actualRequests.get(0));
        +
        +    Assert.assertEquals(name.toString(), actualRequest.getName());
        +    Assert.assertTrue(
        +        channelProvider.isHeaderSent(
        +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
        +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
        +  }
        +
        +  @Test
        +  public void deleteImageImportExceptionTest() throws Exception {
        +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
        +    mockVmMigration.addException(exception);
        +
        +    try {
        +      ImageImportName name = ImageImportName.of("[PROJECT]", "[LOCATION]", "[JOB]");
        +      client.deleteImageImportAsync(name).get();
        +      Assert.fail("No exception raised");
        +    } catch (ExecutionException e) {
        +      Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
        +      InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause());
        +      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
        +    }
        +  }
        +
        +  @Test
        +  public void deleteImageImportTest2() throws Exception {
        +    Empty expectedResponse = Empty.newBuilder().build();
        +    Operation resultOperation =
        +        Operation.newBuilder()
        +            .setName("deleteImageImportTest")
        +            .setDone(true)
        +            .setResponse(Any.pack(expectedResponse))
        +            .build();
        +    mockVmMigration.addResponse(resultOperation);
        +
        +    String name = "name3373707";
        +
        +    client.deleteImageImportAsync(name).get();
        +
        +    List actualRequests = mockVmMigration.getRequests();
        +    Assert.assertEquals(1, actualRequests.size());
        +    DeleteImageImportRequest actualRequest = ((DeleteImageImportRequest) actualRequests.get(0));
        +
        +    Assert.assertEquals(name, actualRequest.getName());
        +    Assert.assertTrue(
        +        channelProvider.isHeaderSent(
        +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
        +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
        +  }
        +
        +  @Test
        +  public void deleteImageImportExceptionTest2() throws Exception {
        +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
        +    mockVmMigration.addException(exception);
        +
        +    try {
        +      String name = "name3373707";
        +      client.deleteImageImportAsync(name).get();
        +      Assert.fail("No exception raised");
        +    } catch (ExecutionException e) {
        +      Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
        +      InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause());
        +      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
        +    }
        +  }
        +
        +  @Test
        +  public void listImageImportJobsTest() throws Exception {
        +    ImageImportJob responsesElement = ImageImportJob.newBuilder().build();
        +    ListImageImportJobsResponse expectedResponse =
        +        ListImageImportJobsResponse.newBuilder()
        +            .setNextPageToken("")
        +            .addAllImageImportJobs(Arrays.asList(responsesElement))
        +            .build();
        +    mockVmMigration.addResponse(expectedResponse);
        +
        +    ImageImportName parent = ImageImportName.of("[PROJECT]", "[LOCATION]", "[JOB]");
        +
        +    ListImageImportJobsPagedResponse pagedListResponse = client.listImageImportJobs(parent);
        +
        +    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
        +
        +    Assert.assertEquals(1, resources.size());
        +    Assert.assertEquals(expectedResponse.getImageImportJobsList().get(0), resources.get(0));
        +
        +    List actualRequests = mockVmMigration.getRequests();
        +    Assert.assertEquals(1, actualRequests.size());
        +    ListImageImportJobsRequest actualRequest = ((ListImageImportJobsRequest) actualRequests.get(0));
        +
        +    Assert.assertEquals(parent.toString(), actualRequest.getParent());
        +    Assert.assertTrue(
        +        channelProvider.isHeaderSent(
        +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
        +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
        +  }
        +
        +  @Test
        +  public void listImageImportJobsExceptionTest() throws Exception {
        +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
        +    mockVmMigration.addException(exception);
        +
        +    try {
        +      ImageImportName parent = ImageImportName.of("[PROJECT]", "[LOCATION]", "[JOB]");
        +      client.listImageImportJobs(parent);
        +      Assert.fail("No exception raised");
        +    } catch (InvalidArgumentException e) {
        +      // Expected exception.
        +    }
        +  }
        +
        +  @Test
        +  public void listImageImportJobsTest2() throws Exception {
        +    ImageImportJob responsesElement = ImageImportJob.newBuilder().build();
        +    ListImageImportJobsResponse expectedResponse =
        +        ListImageImportJobsResponse.newBuilder()
        +            .setNextPageToken("")
        +            .addAllImageImportJobs(Arrays.asList(responsesElement))
        +            .build();
        +    mockVmMigration.addResponse(expectedResponse);
        +
        +    String parent = "parent-995424086";
        +
        +    ListImageImportJobsPagedResponse pagedListResponse = client.listImageImportJobs(parent);
        +
        +    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
        +
        +    Assert.assertEquals(1, resources.size());
        +    Assert.assertEquals(expectedResponse.getImageImportJobsList().get(0), resources.get(0));
        +
        +    List actualRequests = mockVmMigration.getRequests();
        +    Assert.assertEquals(1, actualRequests.size());
        +    ListImageImportJobsRequest actualRequest = ((ListImageImportJobsRequest) actualRequests.get(0));
        +
        +    Assert.assertEquals(parent, actualRequest.getParent());
        +    Assert.assertTrue(
        +        channelProvider.isHeaderSent(
        +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
        +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
        +  }
        +
        +  @Test
        +  public void listImageImportJobsExceptionTest2() throws Exception {
        +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
        +    mockVmMigration.addException(exception);
        +
        +    try {
        +      String parent = "parent-995424086";
        +      client.listImageImportJobs(parent);
        +      Assert.fail("No exception raised");
        +    } catch (InvalidArgumentException e) {
        +      // Expected exception.
        +    }
        +  }
        +
        +  @Test
        +  public void getImageImportJobTest() throws Exception {
        +    ImageImportJob expectedResponse =
        +        ImageImportJob.newBuilder()
        +            .setName(
        +                ImageImportJobName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[RESULT]").toString())
        +            .addAllCreatedResources(new ArrayList())
        +            .setCreateTime(Timestamp.newBuilder().build())
        +            .setEndTime(Timestamp.newBuilder().build())
        +            .addAllErrors(new ArrayList())
        +            .addAllWarnings(new ArrayList())
        +            .addAllSteps(new ArrayList())
        +            .build();
        +    mockVmMigration.addResponse(expectedResponse);
        +
        +    ImageImportJobName name = ImageImportJobName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[RESULT]");
        +
        +    ImageImportJob actualResponse = client.getImageImportJob(name);
        +    Assert.assertEquals(expectedResponse, actualResponse);
        +
        +    List actualRequests = mockVmMigration.getRequests();
        +    Assert.assertEquals(1, actualRequests.size());
        +    GetImageImportJobRequest actualRequest = ((GetImageImportJobRequest) actualRequests.get(0));
        +
        +    Assert.assertEquals(name.toString(), actualRequest.getName());
        +    Assert.assertTrue(
        +        channelProvider.isHeaderSent(
        +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
        +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
        +  }
        +
        +  @Test
        +  public void getImageImportJobExceptionTest() throws Exception {
        +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
        +    mockVmMigration.addException(exception);
        +
        +    try {
        +      ImageImportJobName name =
        +          ImageImportJobName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[RESULT]");
        +      client.getImageImportJob(name);
        +      Assert.fail("No exception raised");
        +    } catch (InvalidArgumentException e) {
        +      // Expected exception.
        +    }
        +  }
        +
        +  @Test
        +  public void getImageImportJobTest2() throws Exception {
        +    ImageImportJob expectedResponse =
        +        ImageImportJob.newBuilder()
        +            .setName(
        +                ImageImportJobName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[RESULT]").toString())
        +            .addAllCreatedResources(new ArrayList())
        +            .setCreateTime(Timestamp.newBuilder().build())
        +            .setEndTime(Timestamp.newBuilder().build())
        +            .addAllErrors(new ArrayList())
        +            .addAllWarnings(new ArrayList())
        +            .addAllSteps(new ArrayList())
        +            .build();
        +    mockVmMigration.addResponse(expectedResponse);
        +
        +    String name = "name3373707";
        +
        +    ImageImportJob actualResponse = client.getImageImportJob(name);
        +    Assert.assertEquals(expectedResponse, actualResponse);
        +
        +    List actualRequests = mockVmMigration.getRequests();
        +    Assert.assertEquals(1, actualRequests.size());
        +    GetImageImportJobRequest actualRequest = ((GetImageImportJobRequest) actualRequests.get(0));
        +
        +    Assert.assertEquals(name, actualRequest.getName());
        +    Assert.assertTrue(
        +        channelProvider.isHeaderSent(
        +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
        +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
        +  }
        +
        +  @Test
        +  public void getImageImportJobExceptionTest2() throws Exception {
        +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
        +    mockVmMigration.addException(exception);
        +
        +    try {
        +      String name = "name3373707";
        +      client.getImageImportJob(name);
        +      Assert.fail("No exception raised");
        +    } catch (InvalidArgumentException e) {
        +      // Expected exception.
        +    }
        +  }
        +
        +  @Test
        +  public void cancelImageImportJobTest() throws Exception {
        +    CancelImageImportJobResponse expectedResponse =
        +        CancelImageImportJobResponse.newBuilder().build();
        +    Operation resultOperation =
        +        Operation.newBuilder()
        +            .setName("cancelImageImportJobTest")
        +            .setDone(true)
        +            .setResponse(Any.pack(expectedResponse))
        +            .build();
        +    mockVmMigration.addResponse(resultOperation);
        +
        +    ImageImportJobName name = ImageImportJobName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[RESULT]");
        +
        +    CancelImageImportJobResponse actualResponse = client.cancelImageImportJobAsync(name).get();
        +    Assert.assertEquals(expectedResponse, actualResponse);
        +
        +    List actualRequests = mockVmMigration.getRequests();
        +    Assert.assertEquals(1, actualRequests.size());
        +    CancelImageImportJobRequest actualRequest =
        +        ((CancelImageImportJobRequest) actualRequests.get(0));
        +
        +    Assert.assertEquals(name.toString(), actualRequest.getName());
        +    Assert.assertTrue(
        +        channelProvider.isHeaderSent(
        +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
        +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
        +  }
        +
        +  @Test
        +  public void cancelImageImportJobExceptionTest() throws Exception {
        +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
        +    mockVmMigration.addException(exception);
        +
        +    try {
        +      ImageImportJobName name =
        +          ImageImportJobName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[RESULT]");
        +      client.cancelImageImportJobAsync(name).get();
        +      Assert.fail("No exception raised");
        +    } catch (ExecutionException e) {
        +      Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
        +      InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause());
        +      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
        +    }
        +  }
        +
        +  @Test
        +  public void cancelImageImportJobTest2() throws Exception {
        +    CancelImageImportJobResponse expectedResponse =
        +        CancelImageImportJobResponse.newBuilder().build();
        +    Operation resultOperation =
        +        Operation.newBuilder()
        +            .setName("cancelImageImportJobTest")
        +            .setDone(true)
        +            .setResponse(Any.pack(expectedResponse))
        +            .build();
        +    mockVmMigration.addResponse(resultOperation);
        +
        +    String name = "name3373707";
        +
        +    CancelImageImportJobResponse actualResponse = client.cancelImageImportJobAsync(name).get();
        +    Assert.assertEquals(expectedResponse, actualResponse);
        +
        +    List actualRequests = mockVmMigration.getRequests();
        +    Assert.assertEquals(1, actualRequests.size());
        +    CancelImageImportJobRequest actualRequest =
        +        ((CancelImageImportJobRequest) actualRequests.get(0));
        +
        +    Assert.assertEquals(name, actualRequest.getName());
        +    Assert.assertTrue(
        +        channelProvider.isHeaderSent(
        +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
        +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
        +  }
        +
        +  @Test
        +  public void cancelImageImportJobExceptionTest2() throws Exception {
        +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
        +    mockVmMigration.addException(exception);
        +
        +    try {
        +      String name = "name3373707";
        +      client.cancelImageImportJobAsync(name).get();
        +      Assert.fail("No exception raised");
        +    } catch (ExecutionException e) {
        +      Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
        +      InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause());
        +      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
        +    }
        +  }
        +
        +  @Test
        +  public void createDiskMigrationJobTest() throws Exception {
        +    DiskMigrationJob expectedResponse =
        +        DiskMigrationJob.newBuilder()
        +            .setName(
        +                DiskMigrationJobName.of(
        +                        "[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]")
        +                    .toString())
        +            .setTargetDetails(DiskMigrationJobTargetDetails.newBuilder().build())
        +            .setCreateTime(Timestamp.newBuilder().build())
        +            .setUpdateTime(Timestamp.newBuilder().build())
        +            .addAllErrors(new ArrayList())
        +            .addAllSteps(new ArrayList())
        +            .build();
        +    Operation resultOperation =
        +        Operation.newBuilder()
        +            .setName("createDiskMigrationJobTest")
        +            .setDone(true)
        +            .setResponse(Any.pack(expectedResponse))
        +            .build();
        +    mockVmMigration.addResponse(resultOperation);
        +
        +    SourceName parent = SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]");
        +    DiskMigrationJob diskMigrationJob = DiskMigrationJob.newBuilder().build();
        +    String diskMigrationJobId = "diskMigrationJobId-173409913";
        +
        +    DiskMigrationJob actualResponse =
        +        client.createDiskMigrationJobAsync(parent, diskMigrationJob, diskMigrationJobId).get();
        +    Assert.assertEquals(expectedResponse, actualResponse);
        +
        +    List actualRequests = mockVmMigration.getRequests();
        +    Assert.assertEquals(1, actualRequests.size());
        +    CreateDiskMigrationJobRequest actualRequest =
        +        ((CreateDiskMigrationJobRequest) actualRequests.get(0));
        +
        +    Assert.assertEquals(parent.toString(), actualRequest.getParent());
        +    Assert.assertEquals(diskMigrationJob, actualRequest.getDiskMigrationJob());
        +    Assert.assertEquals(diskMigrationJobId, actualRequest.getDiskMigrationJobId());
        +    Assert.assertTrue(
        +        channelProvider.isHeaderSent(
        +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
        +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
        +  }
        +
        +  @Test
        +  public void createDiskMigrationJobExceptionTest() throws Exception {
        +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
        +    mockVmMigration.addException(exception);
        +
        +    try {
        +      SourceName parent = SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]");
        +      DiskMigrationJob diskMigrationJob = DiskMigrationJob.newBuilder().build();
        +      String diskMigrationJobId = "diskMigrationJobId-173409913";
        +      client.createDiskMigrationJobAsync(parent, diskMigrationJob, diskMigrationJobId).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 createDiskMigrationJobTest2() throws Exception {
        +    DiskMigrationJob expectedResponse =
        +        DiskMigrationJob.newBuilder()
        +            .setName(
        +                DiskMigrationJobName.of(
        +                        "[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]")
        +                    .toString())
        +            .setTargetDetails(DiskMigrationJobTargetDetails.newBuilder().build())
        +            .setCreateTime(Timestamp.newBuilder().build())
        +            .setUpdateTime(Timestamp.newBuilder().build())
        +            .addAllErrors(new ArrayList())
        +            .addAllSteps(new ArrayList())
        +            .build();
        +    Operation resultOperation =
        +        Operation.newBuilder()
        +            .setName("createDiskMigrationJobTest")
        +            .setDone(true)
        +            .setResponse(Any.pack(expectedResponse))
        +            .build();
        +    mockVmMigration.addResponse(resultOperation);
        +
        +    String parent = "parent-995424086";
        +    DiskMigrationJob diskMigrationJob = DiskMigrationJob.newBuilder().build();
        +    String diskMigrationJobId = "diskMigrationJobId-173409913";
        +
        +    DiskMigrationJob actualResponse =
        +        client.createDiskMigrationJobAsync(parent, diskMigrationJob, diskMigrationJobId).get();
        +    Assert.assertEquals(expectedResponse, actualResponse);
        +
        +    List actualRequests = mockVmMigration.getRequests();
        +    Assert.assertEquals(1, actualRequests.size());
        +    CreateDiskMigrationJobRequest actualRequest =
        +        ((CreateDiskMigrationJobRequest) actualRequests.get(0));
        +
        +    Assert.assertEquals(parent, actualRequest.getParent());
        +    Assert.assertEquals(diskMigrationJob, actualRequest.getDiskMigrationJob());
        +    Assert.assertEquals(diskMigrationJobId, actualRequest.getDiskMigrationJobId());
        +    Assert.assertTrue(
        +        channelProvider.isHeaderSent(
        +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
        +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
        +  }
        +
        +  @Test
        +  public void createDiskMigrationJobExceptionTest2() throws Exception {
        +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
        +    mockVmMigration.addException(exception);
        +
        +    try {
        +      String parent = "parent-995424086";
        +      DiskMigrationJob diskMigrationJob = DiskMigrationJob.newBuilder().build();
        +      String diskMigrationJobId = "diskMigrationJobId-173409913";
        +      client.createDiskMigrationJobAsync(parent, diskMigrationJob, diskMigrationJobId).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 listDiskMigrationJobsTest() throws Exception {
        +    DiskMigrationJob responsesElement = DiskMigrationJob.newBuilder().build();
        +    ListDiskMigrationJobsResponse expectedResponse =
        +        ListDiskMigrationJobsResponse.newBuilder()
        +            .setNextPageToken("")
        +            .addAllDiskMigrationJobs(Arrays.asList(responsesElement))
        +            .build();
        +    mockVmMigration.addResponse(expectedResponse);
        +
        +    SourceName parent = SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]");
        +
        +    ListDiskMigrationJobsPagedResponse pagedListResponse = client.listDiskMigrationJobs(parent);
        +
        +    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
        +
        +    Assert.assertEquals(1, resources.size());
        +    Assert.assertEquals(expectedResponse.getDiskMigrationJobsList().get(0), resources.get(0));
        +
        +    List actualRequests = mockVmMigration.getRequests();
        +    Assert.assertEquals(1, actualRequests.size());
        +    ListDiskMigrationJobsRequest actualRequest =
        +        ((ListDiskMigrationJobsRequest) actualRequests.get(0));
        +
        +    Assert.assertEquals(parent.toString(), actualRequest.getParent());
        +    Assert.assertTrue(
        +        channelProvider.isHeaderSent(
        +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
        +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
        +  }
        +
        +  @Test
        +  public void listDiskMigrationJobsExceptionTest() throws Exception {
        +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
        +    mockVmMigration.addException(exception);
        +
        +    try {
        +      SourceName parent = SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]");
        +      client.listDiskMigrationJobs(parent);
        +      Assert.fail("No exception raised");
        +    } catch (InvalidArgumentException e) {
        +      // Expected exception.
        +    }
        +  }
        +
        +  @Test
        +  public void listDiskMigrationJobsTest2() throws Exception {
        +    DiskMigrationJob responsesElement = DiskMigrationJob.newBuilder().build();
        +    ListDiskMigrationJobsResponse expectedResponse =
        +        ListDiskMigrationJobsResponse.newBuilder()
        +            .setNextPageToken("")
        +            .addAllDiskMigrationJobs(Arrays.asList(responsesElement))
        +            .build();
        +    mockVmMigration.addResponse(expectedResponse);
        +
        +    String parent = "parent-995424086";
        +
        +    ListDiskMigrationJobsPagedResponse pagedListResponse = client.listDiskMigrationJobs(parent);
        +
        +    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
        +
        +    Assert.assertEquals(1, resources.size());
        +    Assert.assertEquals(expectedResponse.getDiskMigrationJobsList().get(0), resources.get(0));
        +
        +    List actualRequests = mockVmMigration.getRequests();
        +    Assert.assertEquals(1, actualRequests.size());
        +    ListDiskMigrationJobsRequest actualRequest =
        +        ((ListDiskMigrationJobsRequest) actualRequests.get(0));
        +
        +    Assert.assertEquals(parent, actualRequest.getParent());
        +    Assert.assertTrue(
        +        channelProvider.isHeaderSent(
        +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
        +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
        +  }
        +
        +  @Test
        +  public void listDiskMigrationJobsExceptionTest2() throws Exception {
        +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
        +    mockVmMigration.addException(exception);
        +
        +    try {
        +      String parent = "parent-995424086";
        +      client.listDiskMigrationJobs(parent);
        +      Assert.fail("No exception raised");
        +    } catch (InvalidArgumentException e) {
        +      // Expected exception.
        +    }
        +  }
        +
        +  @Test
        +  public void getDiskMigrationJobTest() throws Exception {
        +    DiskMigrationJob expectedResponse =
        +        DiskMigrationJob.newBuilder()
        +            .setName(
        +                DiskMigrationJobName.of(
        +                        "[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]")
        +                    .toString())
        +            .setTargetDetails(DiskMigrationJobTargetDetails.newBuilder().build())
        +            .setCreateTime(Timestamp.newBuilder().build())
        +            .setUpdateTime(Timestamp.newBuilder().build())
        +            .addAllErrors(new ArrayList())
        +            .addAllSteps(new ArrayList())
        +            .build();
        +    mockVmMigration.addResponse(expectedResponse);
        +
        +    DiskMigrationJobName name =
        +        DiskMigrationJobName.of("[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]");
        +
        +    DiskMigrationJob actualResponse = client.getDiskMigrationJob(name);
        +    Assert.assertEquals(expectedResponse, actualResponse);
        +
        +    List actualRequests = mockVmMigration.getRequests();
        +    Assert.assertEquals(1, actualRequests.size());
        +    GetDiskMigrationJobRequest actualRequest = ((GetDiskMigrationJobRequest) actualRequests.get(0));
        +
        +    Assert.assertEquals(name.toString(), actualRequest.getName());
        +    Assert.assertTrue(
        +        channelProvider.isHeaderSent(
        +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
        +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
        +  }
        +
        +  @Test
        +  public void getDiskMigrationJobExceptionTest() throws Exception {
        +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
        +    mockVmMigration.addException(exception);
        +
        +    try {
        +      DiskMigrationJobName name =
        +          DiskMigrationJobName.of("[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]");
        +      client.getDiskMigrationJob(name);
        +      Assert.fail("No exception raised");
        +    } catch (InvalidArgumentException e) {
        +      // Expected exception.
        +    }
        +  }
        +
        +  @Test
        +  public void getDiskMigrationJobTest2() throws Exception {
        +    DiskMigrationJob expectedResponse =
        +        DiskMigrationJob.newBuilder()
        +            .setName(
        +                DiskMigrationJobName.of(
        +                        "[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]")
        +                    .toString())
        +            .setTargetDetails(DiskMigrationJobTargetDetails.newBuilder().build())
        +            .setCreateTime(Timestamp.newBuilder().build())
        +            .setUpdateTime(Timestamp.newBuilder().build())
        +            .addAllErrors(new ArrayList())
        +            .addAllSteps(new ArrayList())
        +            .build();
        +    mockVmMigration.addResponse(expectedResponse);
        +
        +    String name = "name3373707";
        +
        +    DiskMigrationJob actualResponse = client.getDiskMigrationJob(name);
        +    Assert.assertEquals(expectedResponse, actualResponse);
        +
        +    List actualRequests = mockVmMigration.getRequests();
        +    Assert.assertEquals(1, actualRequests.size());
        +    GetDiskMigrationJobRequest actualRequest = ((GetDiskMigrationJobRequest) actualRequests.get(0));
        +
        +    Assert.assertEquals(name, actualRequest.getName());
        +    Assert.assertTrue(
        +        channelProvider.isHeaderSent(
        +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
        +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
        +  }
        +
        +  @Test
        +  public void getDiskMigrationJobExceptionTest2() throws Exception {
        +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
        +    mockVmMigration.addException(exception);
        +
        +    try {
        +      String name = "name3373707";
        +      client.getDiskMigrationJob(name);
        +      Assert.fail("No exception raised");
        +    } catch (InvalidArgumentException e) {
        +      // Expected exception.
        +    }
        +  }
        +
        +  @Test
        +  public void updateDiskMigrationJobTest() throws Exception {
        +    DiskMigrationJob expectedResponse =
        +        DiskMigrationJob.newBuilder()
        +            .setName(
        +                DiskMigrationJobName.of(
        +                        "[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]")
        +                    .toString())
        +            .setTargetDetails(DiskMigrationJobTargetDetails.newBuilder().build())
        +            .setCreateTime(Timestamp.newBuilder().build())
        +            .setUpdateTime(Timestamp.newBuilder().build())
        +            .addAllErrors(new ArrayList())
        +            .addAllSteps(new ArrayList())
        +            .build();
        +    Operation resultOperation =
        +        Operation.newBuilder()
        +            .setName("updateDiskMigrationJobTest")
        +            .setDone(true)
        +            .setResponse(Any.pack(expectedResponse))
        +            .build();
        +    mockVmMigration.addResponse(resultOperation);
        +
        +    DiskMigrationJob diskMigrationJob = DiskMigrationJob.newBuilder().build();
        +    FieldMask updateMask = FieldMask.newBuilder().build();
        +
        +    DiskMigrationJob actualResponse =
        +        client.updateDiskMigrationJobAsync(diskMigrationJob, updateMask).get();
        +    Assert.assertEquals(expectedResponse, actualResponse);
        +
        +    List actualRequests = mockVmMigration.getRequests();
        +    Assert.assertEquals(1, actualRequests.size());
        +    UpdateDiskMigrationJobRequest actualRequest =
        +        ((UpdateDiskMigrationJobRequest) actualRequests.get(0));
        +
        +    Assert.assertEquals(diskMigrationJob, actualRequest.getDiskMigrationJob());
        +    Assert.assertEquals(updateMask, actualRequest.getUpdateMask());
        +    Assert.assertTrue(
        +        channelProvider.isHeaderSent(
        +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
        +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
        +  }
        +
        +  @Test
        +  public void updateDiskMigrationJobExceptionTest() throws Exception {
        +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
        +    mockVmMigration.addException(exception);
        +
        +    try {
        +      DiskMigrationJob diskMigrationJob = DiskMigrationJob.newBuilder().build();
        +      FieldMask updateMask = FieldMask.newBuilder().build();
        +      client.updateDiskMigrationJobAsync(diskMigrationJob, updateMask).get();
        +      Assert.fail("No exception raised");
        +    } catch (ExecutionException e) {
        +      Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
        +      InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause());
        +      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
        +    }
        +  }
        +
        +  @Test
        +  public void deleteDiskMigrationJobTest() throws Exception {
        +    Empty expectedResponse = Empty.newBuilder().build();
        +    Operation resultOperation =
        +        Operation.newBuilder()
        +            .setName("deleteDiskMigrationJobTest")
        +            .setDone(true)
        +            .setResponse(Any.pack(expectedResponse))
        +            .build();
        +    mockVmMigration.addResponse(resultOperation);
        +
        +    DiskMigrationJobName name =
        +        DiskMigrationJobName.of("[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]");
        +
        +    client.deleteDiskMigrationJobAsync(name).get();
        +
        +    List actualRequests = mockVmMigration.getRequests();
        +    Assert.assertEquals(1, actualRequests.size());
        +    DeleteDiskMigrationJobRequest actualRequest =
        +        ((DeleteDiskMigrationJobRequest) actualRequests.get(0));
        +
        +    Assert.assertEquals(name.toString(), actualRequest.getName());
        +    Assert.assertTrue(
        +        channelProvider.isHeaderSent(
        +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
        +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
        +  }
        +
        +  @Test
        +  public void deleteDiskMigrationJobExceptionTest() throws Exception {
        +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
        +    mockVmMigration.addException(exception);
        +
        +    try {
        +      DiskMigrationJobName name =
        +          DiskMigrationJobName.of("[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]");
        +      client.deleteDiskMigrationJobAsync(name).get();
        +      Assert.fail("No exception raised");
        +    } catch (ExecutionException e) {
        +      Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
        +      InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause());
        +      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
        +    }
        +  }
        +
        +  @Test
        +  public void deleteDiskMigrationJobTest2() throws Exception {
        +    Empty expectedResponse = Empty.newBuilder().build();
        +    Operation resultOperation =
        +        Operation.newBuilder()
        +            .setName("deleteDiskMigrationJobTest")
        +            .setDone(true)
        +            .setResponse(Any.pack(expectedResponse))
        +            .build();
        +    mockVmMigration.addResponse(resultOperation);
        +
        +    String name = "name3373707";
        +
        +    client.deleteDiskMigrationJobAsync(name).get();
        +
        +    List actualRequests = mockVmMigration.getRequests();
        +    Assert.assertEquals(1, actualRequests.size());
        +    DeleteDiskMigrationJobRequest actualRequest =
        +        ((DeleteDiskMigrationJobRequest) actualRequests.get(0));
        +
        +    Assert.assertEquals(name, actualRequest.getName());
        +    Assert.assertTrue(
        +        channelProvider.isHeaderSent(
        +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
        +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
        +  }
        +
        +  @Test
        +  public void deleteDiskMigrationJobExceptionTest2() throws Exception {
        +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
        +    mockVmMigration.addException(exception);
        +
        +    try {
        +      String name = "name3373707";
        +      client.deleteDiskMigrationJobAsync(name).get();
        +      Assert.fail("No exception raised");
        +    } catch (ExecutionException e) {
        +      Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
        +      InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause());
        +      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
        +    }
        +  }
        +
        +  @Test
        +  public void runDiskMigrationJobTest() throws Exception {
        +    RunDiskMigrationJobResponse expectedResponse = RunDiskMigrationJobResponse.newBuilder().build();
        +    Operation resultOperation =
        +        Operation.newBuilder()
        +            .setName("runDiskMigrationJobTest")
        +            .setDone(true)
        +            .setResponse(Any.pack(expectedResponse))
        +            .build();
        +    mockVmMigration.addResponse(resultOperation);
        +
        +    DiskMigrationJobName name =
        +        DiskMigrationJobName.of("[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]");
        +
        +    RunDiskMigrationJobResponse actualResponse = client.runDiskMigrationJobAsync(name).get();
        +    Assert.assertEquals(expectedResponse, actualResponse);
        +
        +    List actualRequests = mockVmMigration.getRequests();
        +    Assert.assertEquals(1, actualRequests.size());
        +    RunDiskMigrationJobRequest actualRequest = ((RunDiskMigrationJobRequest) actualRequests.get(0));
        +
        +    Assert.assertEquals(name.toString(), actualRequest.getName());
        +    Assert.assertTrue(
        +        channelProvider.isHeaderSent(
        +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
        +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
        +  }
        +
        +  @Test
        +  public void runDiskMigrationJobExceptionTest() throws Exception {
        +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
        +    mockVmMigration.addException(exception);
        +
        +    try {
        +      DiskMigrationJobName name =
        +          DiskMigrationJobName.of("[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]");
        +      client.runDiskMigrationJobAsync(name).get();
        +      Assert.fail("No exception raised");
        +    } catch (ExecutionException e) {
        +      Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
        +      InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause());
        +      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
        +    }
        +  }
        +
        +  @Test
        +  public void runDiskMigrationJobTest2() throws Exception {
        +    RunDiskMigrationJobResponse expectedResponse = RunDiskMigrationJobResponse.newBuilder().build();
        +    Operation resultOperation =
        +        Operation.newBuilder()
        +            .setName("runDiskMigrationJobTest")
        +            .setDone(true)
        +            .setResponse(Any.pack(expectedResponse))
        +            .build();
        +    mockVmMigration.addResponse(resultOperation);
        +
        +    String name = "name3373707";
        +
        +    RunDiskMigrationJobResponse actualResponse = client.runDiskMigrationJobAsync(name).get();
        +    Assert.assertEquals(expectedResponse, actualResponse);
        +
        +    List actualRequests = mockVmMigration.getRequests();
        +    Assert.assertEquals(1, actualRequests.size());
        +    RunDiskMigrationJobRequest actualRequest = ((RunDiskMigrationJobRequest) actualRequests.get(0));
        +
        +    Assert.assertEquals(name, actualRequest.getName());
        +    Assert.assertTrue(
        +        channelProvider.isHeaderSent(
        +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
        +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
        +  }
        +
        +  @Test
        +  public void runDiskMigrationJobExceptionTest2() throws Exception {
        +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
        +    mockVmMigration.addException(exception);
        +
        +    try {
        +      String name = "name3373707";
        +      client.runDiskMigrationJobAsync(name).get();
        +      Assert.fail("No exception raised");
        +    } catch (ExecutionException e) {
        +      Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
        +      InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause());
        +      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
        +    }
        +  }
        +
        +  @Test
        +  public void cancelDiskMigrationJobTest() throws Exception {
        +    CancelDiskMigrationJobResponse expectedResponse =
        +        CancelDiskMigrationJobResponse.newBuilder().build();
        +    Operation resultOperation =
        +        Operation.newBuilder()
        +            .setName("cancelDiskMigrationJobTest")
        +            .setDone(true)
        +            .setResponse(Any.pack(expectedResponse))
        +            .build();
        +    mockVmMigration.addResponse(resultOperation);
        +
        +    CancelDiskMigrationJobRequest request =
        +        CancelDiskMigrationJobRequest.newBuilder()
        +            .setName(
        +                DiskMigrationJobName.of(
        +                        "[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]")
        +                    .toString())
        +            .build();
        +
        +    CancelDiskMigrationJobResponse actualResponse =
        +        client.cancelDiskMigrationJobAsync(request).get();
        +    Assert.assertEquals(expectedResponse, actualResponse);
        +
        +    List actualRequests = mockVmMigration.getRequests();
        +    Assert.assertEquals(1, actualRequests.size());
        +    CancelDiskMigrationJobRequest actualRequest =
        +        ((CancelDiskMigrationJobRequest) actualRequests.get(0));
        +
        +    Assert.assertEquals(request.getName(), actualRequest.getName());
        +    Assert.assertTrue(
        +        channelProvider.isHeaderSent(
        +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
        +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
        +  }
        +
        +  @Test
        +  public void cancelDiskMigrationJobExceptionTest() throws Exception {
        +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
        +    mockVmMigration.addException(exception);
        +
        +    try {
        +      CancelDiskMigrationJobRequest request =
        +          CancelDiskMigrationJobRequest.newBuilder()
        +              .setName(
        +                  DiskMigrationJobName.of(
        +                          "[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]")
        +                      .toString())
        +              .build();
        +      client.cancelDiskMigrationJobAsync(request).get();
        +      Assert.fail("No exception raised");
        +    } catch (ExecutionException e) {
        +      Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
        +      InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause());
        +      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
        +    }
        +  }
        +
           @Test
           public void listLocationsTest() throws Exception {
             Location responsesElement = Location.newBuilder().build();
        diff --git a/java-vmmigration/grpc-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmMigrationGrpc.java b/java-vmmigration/grpc-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmMigrationGrpc.java
        index 3b5fb4a61cef..eb6e3e7d27b8 100644
        --- a/java-vmmigration/grpc-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmMigrationGrpc.java
        +++ b/java-vmmigration/grpc-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmMigrationGrpc.java
        @@ -297,6 +297,55 @@ private VmMigrationGrpc() {}
             return getFetchInventoryMethod;
           }
         
        +  private static volatile io.grpc.MethodDescriptor<
        +          com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest,
        +          com.google.cloud.vmmigration.v1.FetchStorageInventoryResponse>
        +      getFetchStorageInventoryMethod;
        +
        +  @io.grpc.stub.annotations.RpcMethod(
        +      fullMethodName = SERVICE_NAME + '/' + "FetchStorageInventory",
        +      requestType = com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest.class,
        +      responseType = com.google.cloud.vmmigration.v1.FetchStorageInventoryResponse.class,
        +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
        +  public static io.grpc.MethodDescriptor<
        +          com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest,
        +          com.google.cloud.vmmigration.v1.FetchStorageInventoryResponse>
        +      getFetchStorageInventoryMethod() {
        +    io.grpc.MethodDescriptor<
        +            com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest,
        +            com.google.cloud.vmmigration.v1.FetchStorageInventoryResponse>
        +        getFetchStorageInventoryMethod;
        +    if ((getFetchStorageInventoryMethod = VmMigrationGrpc.getFetchStorageInventoryMethod) == null) {
        +      synchronized (VmMigrationGrpc.class) {
        +        if ((getFetchStorageInventoryMethod = VmMigrationGrpc.getFetchStorageInventoryMethod)
        +            == null) {
        +          VmMigrationGrpc.getFetchStorageInventoryMethod =
        +              getFetchStorageInventoryMethod =
        +                  io.grpc.MethodDescriptor
        +                      .
        +                          newBuilder()
        +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
        +                      .setFullMethodName(
        +                          generateFullMethodName(SERVICE_NAME, "FetchStorageInventory"))
        +                      .setSampledToLocalTracing(true)
        +                      .setRequestMarshaller(
        +                          io.grpc.protobuf.ProtoUtils.marshaller(
        +                              com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest
        +                                  .getDefaultInstance()))
        +                      .setResponseMarshaller(
        +                          io.grpc.protobuf.ProtoUtils.marshaller(
        +                              com.google.cloud.vmmigration.v1.FetchStorageInventoryResponse
        +                                  .getDefaultInstance()))
        +                      .setSchemaDescriptor(
        +                          new VmMigrationMethodDescriptorSupplier("FetchStorageInventory"))
        +                      .build();
        +        }
        +      }
        +    }
        +    return getFetchStorageInventoryMethod;
        +  }
        +
           private static volatile io.grpc.MethodDescriptor<
                   com.google.cloud.vmmigration.v1.ListUtilizationReportsRequest,
                   com.google.cloud.vmmigration.v1.ListUtilizationReportsResponse>
        @@ -1145,6 +1194,50 @@ private VmMigrationGrpc() {}
             return getFinalizeMigrationMethod;
           }
         
        +  private static volatile io.grpc.MethodDescriptor<
        +          com.google.cloud.vmmigration.v1.ExtendMigrationRequest, com.google.longrunning.Operation>
        +      getExtendMigrationMethod;
        +
        +  @io.grpc.stub.annotations.RpcMethod(
        +      fullMethodName = SERVICE_NAME + '/' + "ExtendMigration",
        +      requestType = com.google.cloud.vmmigration.v1.ExtendMigrationRequest.class,
        +      responseType = com.google.longrunning.Operation.class,
        +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
        +  public static io.grpc.MethodDescriptor<
        +          com.google.cloud.vmmigration.v1.ExtendMigrationRequest, com.google.longrunning.Operation>
        +      getExtendMigrationMethod() {
        +    io.grpc.MethodDescriptor<
        +            com.google.cloud.vmmigration.v1.ExtendMigrationRequest,
        +            com.google.longrunning.Operation>
        +        getExtendMigrationMethod;
        +    if ((getExtendMigrationMethod = VmMigrationGrpc.getExtendMigrationMethod) == null) {
        +      synchronized (VmMigrationGrpc.class) {
        +        if ((getExtendMigrationMethod = VmMigrationGrpc.getExtendMigrationMethod) == null) {
        +          VmMigrationGrpc.getExtendMigrationMethod =
        +              getExtendMigrationMethod =
        +                  io.grpc.MethodDescriptor
        +                      .
        +                          newBuilder()
        +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
        +                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExtendMigration"))
        +                      .setSampledToLocalTracing(true)
        +                      .setRequestMarshaller(
        +                          io.grpc.protobuf.ProtoUtils.marshaller(
        +                              com.google.cloud.vmmigration.v1.ExtendMigrationRequest
        +                                  .getDefaultInstance()))
        +                      .setResponseMarshaller(
        +                          io.grpc.protobuf.ProtoUtils.marshaller(
        +                              com.google.longrunning.Operation.getDefaultInstance()))
        +                      .setSchemaDescriptor(
        +                          new VmMigrationMethodDescriptorSupplier("ExtendMigration"))
        +                      .build();
        +        }
        +      }
        +    }
        +    return getExtendMigrationMethod;
        +  }
        +
           private static volatile io.grpc.MethodDescriptor<
                   com.google.cloud.vmmigration.v1.CreateCloneJobRequest, com.google.longrunning.Operation>
               getCreateCloneJobMethod;
        @@ -2140,128 +2233,795 @@ private VmMigrationGrpc() {}
             return getGetReplicationCycleMethod;
           }
         
        -  /** Creates a new async stub that supports all call types for the service */
        -  public static VmMigrationStub newStub(io.grpc.Channel channel) {
        -    io.grpc.stub.AbstractStub.StubFactory factory =
        -        new io.grpc.stub.AbstractStub.StubFactory() {
        -          @java.lang.Override
        -          public VmMigrationStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
        -            return new VmMigrationStub(channel, callOptions);
        -          }
        -        };
        -    return VmMigrationStub.newStub(factory, channel);
        -  }
        +  private static volatile io.grpc.MethodDescriptor<
        +          com.google.cloud.vmmigration.v1.ListImageImportsRequest,
        +          com.google.cloud.vmmigration.v1.ListImageImportsResponse>
        +      getListImageImportsMethod;
         
        -  /** Creates a new blocking-style stub that supports all types of calls on the service */
        -  public static VmMigrationBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) {
        -    io.grpc.stub.AbstractStub.StubFactory factory =
        -        new io.grpc.stub.AbstractStub.StubFactory() {
        -          @java.lang.Override
        -          public VmMigrationBlockingV2Stub newStub(
        -              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
        -            return new VmMigrationBlockingV2Stub(channel, callOptions);
        -          }
        -        };
        -    return VmMigrationBlockingV2Stub.newStub(factory, channel);
        +  @io.grpc.stub.annotations.RpcMethod(
        +      fullMethodName = SERVICE_NAME + '/' + "ListImageImports",
        +      requestType = com.google.cloud.vmmigration.v1.ListImageImportsRequest.class,
        +      responseType = com.google.cloud.vmmigration.v1.ListImageImportsResponse.class,
        +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
        +  public static io.grpc.MethodDescriptor<
        +          com.google.cloud.vmmigration.v1.ListImageImportsRequest,
        +          com.google.cloud.vmmigration.v1.ListImageImportsResponse>
        +      getListImageImportsMethod() {
        +    io.grpc.MethodDescriptor<
        +            com.google.cloud.vmmigration.v1.ListImageImportsRequest,
        +            com.google.cloud.vmmigration.v1.ListImageImportsResponse>
        +        getListImageImportsMethod;
        +    if ((getListImageImportsMethod = VmMigrationGrpc.getListImageImportsMethod) == null) {
        +      synchronized (VmMigrationGrpc.class) {
        +        if ((getListImageImportsMethod = VmMigrationGrpc.getListImageImportsMethod) == null) {
        +          VmMigrationGrpc.getListImageImportsMethod =
        +              getListImageImportsMethod =
        +                  io.grpc.MethodDescriptor
        +                      .
        +                          newBuilder()
        +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
        +                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListImageImports"))
        +                      .setSampledToLocalTracing(true)
        +                      .setRequestMarshaller(
        +                          io.grpc.protobuf.ProtoUtils.marshaller(
        +                              com.google.cloud.vmmigration.v1.ListImageImportsRequest
        +                                  .getDefaultInstance()))
        +                      .setResponseMarshaller(
        +                          io.grpc.protobuf.ProtoUtils.marshaller(
        +                              com.google.cloud.vmmigration.v1.ListImageImportsResponse
        +                                  .getDefaultInstance()))
        +                      .setSchemaDescriptor(
        +                          new VmMigrationMethodDescriptorSupplier("ListImageImports"))
        +                      .build();
        +        }
        +      }
        +    }
        +    return getListImageImportsMethod;
           }
         
        -  /**
        -   * Creates a new blocking-style stub that supports unary and streaming output calls on the service
        -   */
        -  public static VmMigrationBlockingStub newBlockingStub(io.grpc.Channel channel) {
        -    io.grpc.stub.AbstractStub.StubFactory factory =
        -        new io.grpc.stub.AbstractStub.StubFactory() {
        -          @java.lang.Override
        -          public VmMigrationBlockingStub newStub(
        -              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
        -            return new VmMigrationBlockingStub(channel, callOptions);
        -          }
        -        };
        -    return VmMigrationBlockingStub.newStub(factory, channel);
        -  }
        +  private static volatile io.grpc.MethodDescriptor<
        +          com.google.cloud.vmmigration.v1.GetImageImportRequest,
        +          com.google.cloud.vmmigration.v1.ImageImport>
        +      getGetImageImportMethod;
         
        -  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
        -  public static VmMigrationFutureStub newFutureStub(io.grpc.Channel channel) {
        -    io.grpc.stub.AbstractStub.StubFactory factory =
        -        new io.grpc.stub.AbstractStub.StubFactory() {
        -          @java.lang.Override
        -          public VmMigrationFutureStub newStub(
        -              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
        -            return new VmMigrationFutureStub(channel, callOptions);
        -          }
        -        };
        -    return VmMigrationFutureStub.newStub(factory, channel);
        +  @io.grpc.stub.annotations.RpcMethod(
        +      fullMethodName = SERVICE_NAME + '/' + "GetImageImport",
        +      requestType = com.google.cloud.vmmigration.v1.GetImageImportRequest.class,
        +      responseType = com.google.cloud.vmmigration.v1.ImageImport.class,
        +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
        +  public static io.grpc.MethodDescriptor<
        +          com.google.cloud.vmmigration.v1.GetImageImportRequest,
        +          com.google.cloud.vmmigration.v1.ImageImport>
        +      getGetImageImportMethod() {
        +    io.grpc.MethodDescriptor<
        +            com.google.cloud.vmmigration.v1.GetImageImportRequest,
        +            com.google.cloud.vmmigration.v1.ImageImport>
        +        getGetImageImportMethod;
        +    if ((getGetImageImportMethod = VmMigrationGrpc.getGetImageImportMethod) == null) {
        +      synchronized (VmMigrationGrpc.class) {
        +        if ((getGetImageImportMethod = VmMigrationGrpc.getGetImageImportMethod) == null) {
        +          VmMigrationGrpc.getGetImageImportMethod =
        +              getGetImageImportMethod =
        +                  io.grpc.MethodDescriptor
        +                      .
        +                          newBuilder()
        +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
        +                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetImageImport"))
        +                      .setSampledToLocalTracing(true)
        +                      .setRequestMarshaller(
        +                          io.grpc.protobuf.ProtoUtils.marshaller(
        +                              com.google.cloud.vmmigration.v1.GetImageImportRequest
        +                                  .getDefaultInstance()))
        +                      .setResponseMarshaller(
        +                          io.grpc.protobuf.ProtoUtils.marshaller(
        +                              com.google.cloud.vmmigration.v1.ImageImport.getDefaultInstance()))
        +                      .setSchemaDescriptor(
        +                          new VmMigrationMethodDescriptorSupplier("GetImageImport"))
        +                      .build();
        +        }
        +      }
        +    }
        +    return getGetImageImportMethod;
           }
         
        -  /**
        -   *
        -   *
        -   * 
        -   * VM Migration Service
        -   * 
        - */ - public interface AsyncService { + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmmigration.v1.CreateImageImportRequest, + com.google.longrunning.Operation> + getCreateImageImportMethod; - /** - * - * - *
        -     * Lists Sources in a given project and location.
        -     * 
        - */ - default void listSources( - com.google.cloud.vmmigration.v1.ListSourcesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListSourcesMethod(), responseObserver); + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateImageImport", + requestType = com.google.cloud.vmmigration.v1.CreateImageImportRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmmigration.v1.CreateImageImportRequest, + com.google.longrunning.Operation> + getCreateImageImportMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmmigration.v1.CreateImageImportRequest, + com.google.longrunning.Operation> + getCreateImageImportMethod; + if ((getCreateImageImportMethod = VmMigrationGrpc.getCreateImageImportMethod) == null) { + synchronized (VmMigrationGrpc.class) { + if ((getCreateImageImportMethod = VmMigrationGrpc.getCreateImageImportMethod) == null) { + VmMigrationGrpc.getCreateImageImportMethod = + getCreateImageImportMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateImageImport")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmmigration.v1.CreateImageImportRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new VmMigrationMethodDescriptorSupplier("CreateImageImport")) + .build(); + } + } } + return getCreateImageImportMethod; + } - /** - * - * - *
        -     * Gets details of a single Source.
        -     * 
        - */ - default void getSource( - com.google.cloud.vmmigration.v1.GetSourceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSourceMethod(), responseObserver); - } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmmigration.v1.DeleteImageImportRequest, + com.google.longrunning.Operation> + getDeleteImageImportMethod; - /** - * - * - *
        -     * Creates a new Source in a given project and location.
        -     * 
        - */ - default void createSource( - com.google.cloud.vmmigration.v1.CreateSourceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateSourceMethod(), responseObserver); + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteImageImport", + requestType = com.google.cloud.vmmigration.v1.DeleteImageImportRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vmmigration.v1.DeleteImageImportRequest, + com.google.longrunning.Operation> + getDeleteImageImportMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vmmigration.v1.DeleteImageImportRequest, + com.google.longrunning.Operation> + getDeleteImageImportMethod; + if ((getDeleteImageImportMethod = VmMigrationGrpc.getDeleteImageImportMethod) == null) { + synchronized (VmMigrationGrpc.class) { + if ((getDeleteImageImportMethod = VmMigrationGrpc.getDeleteImageImportMethod) == null) { + VmMigrationGrpc.getDeleteImageImportMethod = + getDeleteImageImportMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteImageImport")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vmmigration.v1.DeleteImageImportRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new VmMigrationMethodDescriptorSupplier("DeleteImageImport")) + .build(); + } + } } + return getDeleteImageImportMethod; + } - /** - * - * - *
        -     * Updates the parameters of a single Source.
        -     * 
        - */ - default void updateSource( - com.google.cloud.vmmigration.v1.UpdateSourceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateSourceMethod(), responseObserver); - } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vmmigration.v1.ListImageImportJobsRequest, + com.google.cloud.vmmigration.v1.ListImageImportJobsResponse> + getListImageImportJobsMethod; - /** - * - * - *
        +  @io.grpc.stub.annotations.RpcMethod(
        +      fullMethodName = SERVICE_NAME + '/' + "ListImageImportJobs",
        +      requestType = com.google.cloud.vmmigration.v1.ListImageImportJobsRequest.class,
        +      responseType = com.google.cloud.vmmigration.v1.ListImageImportJobsResponse.class,
        +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
        +  public static io.grpc.MethodDescriptor<
        +          com.google.cloud.vmmigration.v1.ListImageImportJobsRequest,
        +          com.google.cloud.vmmigration.v1.ListImageImportJobsResponse>
        +      getListImageImportJobsMethod() {
        +    io.grpc.MethodDescriptor<
        +            com.google.cloud.vmmigration.v1.ListImageImportJobsRequest,
        +            com.google.cloud.vmmigration.v1.ListImageImportJobsResponse>
        +        getListImageImportJobsMethod;
        +    if ((getListImageImportJobsMethod = VmMigrationGrpc.getListImageImportJobsMethod) == null) {
        +      synchronized (VmMigrationGrpc.class) {
        +        if ((getListImageImportJobsMethod = VmMigrationGrpc.getListImageImportJobsMethod) == null) {
        +          VmMigrationGrpc.getListImageImportJobsMethod =
        +              getListImageImportJobsMethod =
        +                  io.grpc.MethodDescriptor
        +                      .
        +                          newBuilder()
        +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
        +                      .setFullMethodName(
        +                          generateFullMethodName(SERVICE_NAME, "ListImageImportJobs"))
        +                      .setSampledToLocalTracing(true)
        +                      .setRequestMarshaller(
        +                          io.grpc.protobuf.ProtoUtils.marshaller(
        +                              com.google.cloud.vmmigration.v1.ListImageImportJobsRequest
        +                                  .getDefaultInstance()))
        +                      .setResponseMarshaller(
        +                          io.grpc.protobuf.ProtoUtils.marshaller(
        +                              com.google.cloud.vmmigration.v1.ListImageImportJobsResponse
        +                                  .getDefaultInstance()))
        +                      .setSchemaDescriptor(
        +                          new VmMigrationMethodDescriptorSupplier("ListImageImportJobs"))
        +                      .build();
        +        }
        +      }
        +    }
        +    return getListImageImportJobsMethod;
        +  }
        +
        +  private static volatile io.grpc.MethodDescriptor<
        +          com.google.cloud.vmmigration.v1.GetImageImportJobRequest,
        +          com.google.cloud.vmmigration.v1.ImageImportJob>
        +      getGetImageImportJobMethod;
        +
        +  @io.grpc.stub.annotations.RpcMethod(
        +      fullMethodName = SERVICE_NAME + '/' + "GetImageImportJob",
        +      requestType = com.google.cloud.vmmigration.v1.GetImageImportJobRequest.class,
        +      responseType = com.google.cloud.vmmigration.v1.ImageImportJob.class,
        +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
        +  public static io.grpc.MethodDescriptor<
        +          com.google.cloud.vmmigration.v1.GetImageImportJobRequest,
        +          com.google.cloud.vmmigration.v1.ImageImportJob>
        +      getGetImageImportJobMethod() {
        +    io.grpc.MethodDescriptor<
        +            com.google.cloud.vmmigration.v1.GetImageImportJobRequest,
        +            com.google.cloud.vmmigration.v1.ImageImportJob>
        +        getGetImageImportJobMethod;
        +    if ((getGetImageImportJobMethod = VmMigrationGrpc.getGetImageImportJobMethod) == null) {
        +      synchronized (VmMigrationGrpc.class) {
        +        if ((getGetImageImportJobMethod = VmMigrationGrpc.getGetImageImportJobMethod) == null) {
        +          VmMigrationGrpc.getGetImageImportJobMethod =
        +              getGetImageImportJobMethod =
        +                  io.grpc.MethodDescriptor
        +                      .
        +                          newBuilder()
        +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
        +                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetImageImportJob"))
        +                      .setSampledToLocalTracing(true)
        +                      .setRequestMarshaller(
        +                          io.grpc.protobuf.ProtoUtils.marshaller(
        +                              com.google.cloud.vmmigration.v1.GetImageImportJobRequest
        +                                  .getDefaultInstance()))
        +                      .setResponseMarshaller(
        +                          io.grpc.protobuf.ProtoUtils.marshaller(
        +                              com.google.cloud.vmmigration.v1.ImageImportJob.getDefaultInstance()))
        +                      .setSchemaDescriptor(
        +                          new VmMigrationMethodDescriptorSupplier("GetImageImportJob"))
        +                      .build();
        +        }
        +      }
        +    }
        +    return getGetImageImportJobMethod;
        +  }
        +
        +  private static volatile io.grpc.MethodDescriptor<
        +          com.google.cloud.vmmigration.v1.CancelImageImportJobRequest,
        +          com.google.longrunning.Operation>
        +      getCancelImageImportJobMethod;
        +
        +  @io.grpc.stub.annotations.RpcMethod(
        +      fullMethodName = SERVICE_NAME + '/' + "CancelImageImportJob",
        +      requestType = com.google.cloud.vmmigration.v1.CancelImageImportJobRequest.class,
        +      responseType = com.google.longrunning.Operation.class,
        +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
        +  public static io.grpc.MethodDescriptor<
        +          com.google.cloud.vmmigration.v1.CancelImageImportJobRequest,
        +          com.google.longrunning.Operation>
        +      getCancelImageImportJobMethod() {
        +    io.grpc.MethodDescriptor<
        +            com.google.cloud.vmmigration.v1.CancelImageImportJobRequest,
        +            com.google.longrunning.Operation>
        +        getCancelImageImportJobMethod;
        +    if ((getCancelImageImportJobMethod = VmMigrationGrpc.getCancelImageImportJobMethod) == null) {
        +      synchronized (VmMigrationGrpc.class) {
        +        if ((getCancelImageImportJobMethod = VmMigrationGrpc.getCancelImageImportJobMethod)
        +            == null) {
        +          VmMigrationGrpc.getCancelImageImportJobMethod =
        +              getCancelImageImportJobMethod =
        +                  io.grpc.MethodDescriptor
        +                      .
        +                          newBuilder()
        +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
        +                      .setFullMethodName(
        +                          generateFullMethodName(SERVICE_NAME, "CancelImageImportJob"))
        +                      .setSampledToLocalTracing(true)
        +                      .setRequestMarshaller(
        +                          io.grpc.protobuf.ProtoUtils.marshaller(
        +                              com.google.cloud.vmmigration.v1.CancelImageImportJobRequest
        +                                  .getDefaultInstance()))
        +                      .setResponseMarshaller(
        +                          io.grpc.protobuf.ProtoUtils.marshaller(
        +                              com.google.longrunning.Operation.getDefaultInstance()))
        +                      .setSchemaDescriptor(
        +                          new VmMigrationMethodDescriptorSupplier("CancelImageImportJob"))
        +                      .build();
        +        }
        +      }
        +    }
        +    return getCancelImageImportJobMethod;
        +  }
        +
        +  private static volatile io.grpc.MethodDescriptor<
        +          com.google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest,
        +          com.google.longrunning.Operation>
        +      getCreateDiskMigrationJobMethod;
        +
        +  @io.grpc.stub.annotations.RpcMethod(
        +      fullMethodName = SERVICE_NAME + '/' + "CreateDiskMigrationJob",
        +      requestType = com.google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest.class,
        +      responseType = com.google.longrunning.Operation.class,
        +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
        +  public static io.grpc.MethodDescriptor<
        +          com.google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest,
        +          com.google.longrunning.Operation>
        +      getCreateDiskMigrationJobMethod() {
        +    io.grpc.MethodDescriptor<
        +            com.google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest,
        +            com.google.longrunning.Operation>
        +        getCreateDiskMigrationJobMethod;
        +    if ((getCreateDiskMigrationJobMethod = VmMigrationGrpc.getCreateDiskMigrationJobMethod)
        +        == null) {
        +      synchronized (VmMigrationGrpc.class) {
        +        if ((getCreateDiskMigrationJobMethod = VmMigrationGrpc.getCreateDiskMigrationJobMethod)
        +            == null) {
        +          VmMigrationGrpc.getCreateDiskMigrationJobMethod =
        +              getCreateDiskMigrationJobMethod =
        +                  io.grpc.MethodDescriptor
        +                      .
        +                          newBuilder()
        +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
        +                      .setFullMethodName(
        +                          generateFullMethodName(SERVICE_NAME, "CreateDiskMigrationJob"))
        +                      .setSampledToLocalTracing(true)
        +                      .setRequestMarshaller(
        +                          io.grpc.protobuf.ProtoUtils.marshaller(
        +                              com.google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest
        +                                  .getDefaultInstance()))
        +                      .setResponseMarshaller(
        +                          io.grpc.protobuf.ProtoUtils.marshaller(
        +                              com.google.longrunning.Operation.getDefaultInstance()))
        +                      .setSchemaDescriptor(
        +                          new VmMigrationMethodDescriptorSupplier("CreateDiskMigrationJob"))
        +                      .build();
        +        }
        +      }
        +    }
        +    return getCreateDiskMigrationJobMethod;
        +  }
        +
        +  private static volatile io.grpc.MethodDescriptor<
        +          com.google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest,
        +          com.google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse>
        +      getListDiskMigrationJobsMethod;
        +
        +  @io.grpc.stub.annotations.RpcMethod(
        +      fullMethodName = SERVICE_NAME + '/' + "ListDiskMigrationJobs",
        +      requestType = com.google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest.class,
        +      responseType = com.google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse.class,
        +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
        +  public static io.grpc.MethodDescriptor<
        +          com.google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest,
        +          com.google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse>
        +      getListDiskMigrationJobsMethod() {
        +    io.grpc.MethodDescriptor<
        +            com.google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest,
        +            com.google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse>
        +        getListDiskMigrationJobsMethod;
        +    if ((getListDiskMigrationJobsMethod = VmMigrationGrpc.getListDiskMigrationJobsMethod) == null) {
        +      synchronized (VmMigrationGrpc.class) {
        +        if ((getListDiskMigrationJobsMethod = VmMigrationGrpc.getListDiskMigrationJobsMethod)
        +            == null) {
        +          VmMigrationGrpc.getListDiskMigrationJobsMethod =
        +              getListDiskMigrationJobsMethod =
        +                  io.grpc.MethodDescriptor
        +                      .
        +                          newBuilder()
        +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
        +                      .setFullMethodName(
        +                          generateFullMethodName(SERVICE_NAME, "ListDiskMigrationJobs"))
        +                      .setSampledToLocalTracing(true)
        +                      .setRequestMarshaller(
        +                          io.grpc.protobuf.ProtoUtils.marshaller(
        +                              com.google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest
        +                                  .getDefaultInstance()))
        +                      .setResponseMarshaller(
        +                          io.grpc.protobuf.ProtoUtils.marshaller(
        +                              com.google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse
        +                                  .getDefaultInstance()))
        +                      .setSchemaDescriptor(
        +                          new VmMigrationMethodDescriptorSupplier("ListDiskMigrationJobs"))
        +                      .build();
        +        }
        +      }
        +    }
        +    return getListDiskMigrationJobsMethod;
        +  }
        +
        +  private static volatile io.grpc.MethodDescriptor<
        +          com.google.cloud.vmmigration.v1.GetDiskMigrationJobRequest,
        +          com.google.cloud.vmmigration.v1.DiskMigrationJob>
        +      getGetDiskMigrationJobMethod;
        +
        +  @io.grpc.stub.annotations.RpcMethod(
        +      fullMethodName = SERVICE_NAME + '/' + "GetDiskMigrationJob",
        +      requestType = com.google.cloud.vmmigration.v1.GetDiskMigrationJobRequest.class,
        +      responseType = com.google.cloud.vmmigration.v1.DiskMigrationJob.class,
        +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
        +  public static io.grpc.MethodDescriptor<
        +          com.google.cloud.vmmigration.v1.GetDiskMigrationJobRequest,
        +          com.google.cloud.vmmigration.v1.DiskMigrationJob>
        +      getGetDiskMigrationJobMethod() {
        +    io.grpc.MethodDescriptor<
        +            com.google.cloud.vmmigration.v1.GetDiskMigrationJobRequest,
        +            com.google.cloud.vmmigration.v1.DiskMigrationJob>
        +        getGetDiskMigrationJobMethod;
        +    if ((getGetDiskMigrationJobMethod = VmMigrationGrpc.getGetDiskMigrationJobMethod) == null) {
        +      synchronized (VmMigrationGrpc.class) {
        +        if ((getGetDiskMigrationJobMethod = VmMigrationGrpc.getGetDiskMigrationJobMethod) == null) {
        +          VmMigrationGrpc.getGetDiskMigrationJobMethod =
        +              getGetDiskMigrationJobMethod =
        +                  io.grpc.MethodDescriptor
        +                      .
        +                          newBuilder()
        +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
        +                      .setFullMethodName(
        +                          generateFullMethodName(SERVICE_NAME, "GetDiskMigrationJob"))
        +                      .setSampledToLocalTracing(true)
        +                      .setRequestMarshaller(
        +                          io.grpc.protobuf.ProtoUtils.marshaller(
        +                              com.google.cloud.vmmigration.v1.GetDiskMigrationJobRequest
        +                                  .getDefaultInstance()))
        +                      .setResponseMarshaller(
        +                          io.grpc.protobuf.ProtoUtils.marshaller(
        +                              com.google.cloud.vmmigration.v1.DiskMigrationJob
        +                                  .getDefaultInstance()))
        +                      .setSchemaDescriptor(
        +                          new VmMigrationMethodDescriptorSupplier("GetDiskMigrationJob"))
        +                      .build();
        +        }
        +      }
        +    }
        +    return getGetDiskMigrationJobMethod;
        +  }
        +
        +  private static volatile io.grpc.MethodDescriptor<
        +          com.google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest,
        +          com.google.longrunning.Operation>
        +      getUpdateDiskMigrationJobMethod;
        +
        +  @io.grpc.stub.annotations.RpcMethod(
        +      fullMethodName = SERVICE_NAME + '/' + "UpdateDiskMigrationJob",
        +      requestType = com.google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest.class,
        +      responseType = com.google.longrunning.Operation.class,
        +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
        +  public static io.grpc.MethodDescriptor<
        +          com.google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest,
        +          com.google.longrunning.Operation>
        +      getUpdateDiskMigrationJobMethod() {
        +    io.grpc.MethodDescriptor<
        +            com.google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest,
        +            com.google.longrunning.Operation>
        +        getUpdateDiskMigrationJobMethod;
        +    if ((getUpdateDiskMigrationJobMethod = VmMigrationGrpc.getUpdateDiskMigrationJobMethod)
        +        == null) {
        +      synchronized (VmMigrationGrpc.class) {
        +        if ((getUpdateDiskMigrationJobMethod = VmMigrationGrpc.getUpdateDiskMigrationJobMethod)
        +            == null) {
        +          VmMigrationGrpc.getUpdateDiskMigrationJobMethod =
        +              getUpdateDiskMigrationJobMethod =
        +                  io.grpc.MethodDescriptor
        +                      .
        +                          newBuilder()
        +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
        +                      .setFullMethodName(
        +                          generateFullMethodName(SERVICE_NAME, "UpdateDiskMigrationJob"))
        +                      .setSampledToLocalTracing(true)
        +                      .setRequestMarshaller(
        +                          io.grpc.protobuf.ProtoUtils.marshaller(
        +                              com.google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest
        +                                  .getDefaultInstance()))
        +                      .setResponseMarshaller(
        +                          io.grpc.protobuf.ProtoUtils.marshaller(
        +                              com.google.longrunning.Operation.getDefaultInstance()))
        +                      .setSchemaDescriptor(
        +                          new VmMigrationMethodDescriptorSupplier("UpdateDiskMigrationJob"))
        +                      .build();
        +        }
        +      }
        +    }
        +    return getUpdateDiskMigrationJobMethod;
        +  }
        +
        +  private static volatile io.grpc.MethodDescriptor<
        +          com.google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest,
        +          com.google.longrunning.Operation>
        +      getDeleteDiskMigrationJobMethod;
        +
        +  @io.grpc.stub.annotations.RpcMethod(
        +      fullMethodName = SERVICE_NAME + '/' + "DeleteDiskMigrationJob",
        +      requestType = com.google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest.class,
        +      responseType = com.google.longrunning.Operation.class,
        +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
        +  public static io.grpc.MethodDescriptor<
        +          com.google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest,
        +          com.google.longrunning.Operation>
        +      getDeleteDiskMigrationJobMethod() {
        +    io.grpc.MethodDescriptor<
        +            com.google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest,
        +            com.google.longrunning.Operation>
        +        getDeleteDiskMigrationJobMethod;
        +    if ((getDeleteDiskMigrationJobMethod = VmMigrationGrpc.getDeleteDiskMigrationJobMethod)
        +        == null) {
        +      synchronized (VmMigrationGrpc.class) {
        +        if ((getDeleteDiskMigrationJobMethod = VmMigrationGrpc.getDeleteDiskMigrationJobMethod)
        +            == null) {
        +          VmMigrationGrpc.getDeleteDiskMigrationJobMethod =
        +              getDeleteDiskMigrationJobMethod =
        +                  io.grpc.MethodDescriptor
        +                      .
        +                          newBuilder()
        +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
        +                      .setFullMethodName(
        +                          generateFullMethodName(SERVICE_NAME, "DeleteDiskMigrationJob"))
        +                      .setSampledToLocalTracing(true)
        +                      .setRequestMarshaller(
        +                          io.grpc.protobuf.ProtoUtils.marshaller(
        +                              com.google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest
        +                                  .getDefaultInstance()))
        +                      .setResponseMarshaller(
        +                          io.grpc.protobuf.ProtoUtils.marshaller(
        +                              com.google.longrunning.Operation.getDefaultInstance()))
        +                      .setSchemaDescriptor(
        +                          new VmMigrationMethodDescriptorSupplier("DeleteDiskMigrationJob"))
        +                      .build();
        +        }
        +      }
        +    }
        +    return getDeleteDiskMigrationJobMethod;
        +  }
        +
        +  private static volatile io.grpc.MethodDescriptor<
        +          com.google.cloud.vmmigration.v1.RunDiskMigrationJobRequest,
        +          com.google.longrunning.Operation>
        +      getRunDiskMigrationJobMethod;
        +
        +  @io.grpc.stub.annotations.RpcMethod(
        +      fullMethodName = SERVICE_NAME + '/' + "RunDiskMigrationJob",
        +      requestType = com.google.cloud.vmmigration.v1.RunDiskMigrationJobRequest.class,
        +      responseType = com.google.longrunning.Operation.class,
        +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
        +  public static io.grpc.MethodDescriptor<
        +          com.google.cloud.vmmigration.v1.RunDiskMigrationJobRequest,
        +          com.google.longrunning.Operation>
        +      getRunDiskMigrationJobMethod() {
        +    io.grpc.MethodDescriptor<
        +            com.google.cloud.vmmigration.v1.RunDiskMigrationJobRequest,
        +            com.google.longrunning.Operation>
        +        getRunDiskMigrationJobMethod;
        +    if ((getRunDiskMigrationJobMethod = VmMigrationGrpc.getRunDiskMigrationJobMethod) == null) {
        +      synchronized (VmMigrationGrpc.class) {
        +        if ((getRunDiskMigrationJobMethod = VmMigrationGrpc.getRunDiskMigrationJobMethod) == null) {
        +          VmMigrationGrpc.getRunDiskMigrationJobMethod =
        +              getRunDiskMigrationJobMethod =
        +                  io.grpc.MethodDescriptor
        +                      .
        +                          newBuilder()
        +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
        +                      .setFullMethodName(
        +                          generateFullMethodName(SERVICE_NAME, "RunDiskMigrationJob"))
        +                      .setSampledToLocalTracing(true)
        +                      .setRequestMarshaller(
        +                          io.grpc.protobuf.ProtoUtils.marshaller(
        +                              com.google.cloud.vmmigration.v1.RunDiskMigrationJobRequest
        +                                  .getDefaultInstance()))
        +                      .setResponseMarshaller(
        +                          io.grpc.protobuf.ProtoUtils.marshaller(
        +                              com.google.longrunning.Operation.getDefaultInstance()))
        +                      .setSchemaDescriptor(
        +                          new VmMigrationMethodDescriptorSupplier("RunDiskMigrationJob"))
        +                      .build();
        +        }
        +      }
        +    }
        +    return getRunDiskMigrationJobMethod;
        +  }
        +
        +  private static volatile io.grpc.MethodDescriptor<
        +          com.google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest,
        +          com.google.longrunning.Operation>
        +      getCancelDiskMigrationJobMethod;
        +
        +  @io.grpc.stub.annotations.RpcMethod(
        +      fullMethodName = SERVICE_NAME + '/' + "CancelDiskMigrationJob",
        +      requestType = com.google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest.class,
        +      responseType = com.google.longrunning.Operation.class,
        +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
        +  public static io.grpc.MethodDescriptor<
        +          com.google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest,
        +          com.google.longrunning.Operation>
        +      getCancelDiskMigrationJobMethod() {
        +    io.grpc.MethodDescriptor<
        +            com.google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest,
        +            com.google.longrunning.Operation>
        +        getCancelDiskMigrationJobMethod;
        +    if ((getCancelDiskMigrationJobMethod = VmMigrationGrpc.getCancelDiskMigrationJobMethod)
        +        == null) {
        +      synchronized (VmMigrationGrpc.class) {
        +        if ((getCancelDiskMigrationJobMethod = VmMigrationGrpc.getCancelDiskMigrationJobMethod)
        +            == null) {
        +          VmMigrationGrpc.getCancelDiskMigrationJobMethod =
        +              getCancelDiskMigrationJobMethod =
        +                  io.grpc.MethodDescriptor
        +                      .
        +                          newBuilder()
        +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
        +                      .setFullMethodName(
        +                          generateFullMethodName(SERVICE_NAME, "CancelDiskMigrationJob"))
        +                      .setSampledToLocalTracing(true)
        +                      .setRequestMarshaller(
        +                          io.grpc.protobuf.ProtoUtils.marshaller(
        +                              com.google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest
        +                                  .getDefaultInstance()))
        +                      .setResponseMarshaller(
        +                          io.grpc.protobuf.ProtoUtils.marshaller(
        +                              com.google.longrunning.Operation.getDefaultInstance()))
        +                      .setSchemaDescriptor(
        +                          new VmMigrationMethodDescriptorSupplier("CancelDiskMigrationJob"))
        +                      .build();
        +        }
        +      }
        +    }
        +    return getCancelDiskMigrationJobMethod;
        +  }
        +
        +  /** Creates a new async stub that supports all call types for the service */
        +  public static VmMigrationStub newStub(io.grpc.Channel channel) {
        +    io.grpc.stub.AbstractStub.StubFactory factory =
        +        new io.grpc.stub.AbstractStub.StubFactory() {
        +          @java.lang.Override
        +          public VmMigrationStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
        +            return new VmMigrationStub(channel, callOptions);
        +          }
        +        };
        +    return VmMigrationStub.newStub(factory, channel);
        +  }
        +
        +  /** Creates a new blocking-style stub that supports all types of calls on the service */
        +  public static VmMigrationBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) {
        +    io.grpc.stub.AbstractStub.StubFactory factory =
        +        new io.grpc.stub.AbstractStub.StubFactory() {
        +          @java.lang.Override
        +          public VmMigrationBlockingV2Stub newStub(
        +              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
        +            return new VmMigrationBlockingV2Stub(channel, callOptions);
        +          }
        +        };
        +    return VmMigrationBlockingV2Stub.newStub(factory, channel);
        +  }
        +
        +  /**
        +   * Creates a new blocking-style stub that supports unary and streaming output calls on the service
        +   */
        +  public static VmMigrationBlockingStub newBlockingStub(io.grpc.Channel channel) {
        +    io.grpc.stub.AbstractStub.StubFactory factory =
        +        new io.grpc.stub.AbstractStub.StubFactory() {
        +          @java.lang.Override
        +          public VmMigrationBlockingStub newStub(
        +              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
        +            return new VmMigrationBlockingStub(channel, callOptions);
        +          }
        +        };
        +    return VmMigrationBlockingStub.newStub(factory, channel);
        +  }
        +
        +  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
        +  public static VmMigrationFutureStub newFutureStub(io.grpc.Channel channel) {
        +    io.grpc.stub.AbstractStub.StubFactory factory =
        +        new io.grpc.stub.AbstractStub.StubFactory() {
        +          @java.lang.Override
        +          public VmMigrationFutureStub newStub(
        +              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
        +            return new VmMigrationFutureStub(channel, callOptions);
        +          }
        +        };
        +    return VmMigrationFutureStub.newStub(factory, channel);
        +  }
        +
        +  /**
        +   *
        +   *
        +   * 
        +   * VM Migration Service
        +   * 
        + */ + public interface AsyncService { + + /** + * + * + *
        +     * Lists Sources in a given project and location.
        +     * 
        + */ + default void listSources( + com.google.cloud.vmmigration.v1.ListSourcesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListSourcesMethod(), responseObserver); + } + + /** + * + * + *
        +     * Gets details of a single Source.
        +     * 
        + */ + default void getSource( + com.google.cloud.vmmigration.v1.GetSourceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSourceMethod(), responseObserver); + } + + /** + * + * + *
        +     * Creates a new Source in a given project and location.
        +     * 
        + */ + default void createSource( + com.google.cloud.vmmigration.v1.CreateSourceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateSourceMethod(), responseObserver); + } + + /** + * + * + *
        +     * Updates the parameters of a single Source.
        +     * 
        + */ + default void updateSource( + com.google.cloud.vmmigration.v1.UpdateSourceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateSourceMethod(), responseObserver); + } + + /** + * + * + *
              * Deletes a single Source.
              * 
        */ @@ -2291,6 +3051,26 @@ default void fetchInventory( getFetchInventoryMethod(), responseObserver); } + /** + * + * + *
        +     * List remote source's inventory of storage resources.
        +     * The remote source is another cloud vendor (e.g. AWS, Azure).
        +     * The inventory describes the list of existing storage resources in that
        +     * source. Note that this operation lists the resources on the remote source,
        +     * as opposed to listing the MigratingVms resources in the vmmigration
        +     * service.
        +     * 
        + */ + default void fetchStorageInventory( + com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getFetchStorageInventoryMethod(), responseObserver); + } + /** * * @@ -2557,6 +3337,20 @@ default void finalizeMigration( getFinalizeMigrationMethod(), responseObserver); } + /** + * + * + *
        +     * Extend the migrating VM time to live.
        +     * 
        + */ + default void extendMigration( + com.google.cloud.vmmigration.v1.ExtendMigrationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getExtendMigrationMethod(), responseObserver); + } + /** * * @@ -2589,7 +3383,8 @@ default void cancelCloneJob( * * *
        -     * Lists CloneJobs of a given migrating VM.
        +     * Lists the CloneJobs of a migrating VM. Only 25 most recent CloneJobs are
        +     * listed.
              * 
        */ default void listCloneJobs( @@ -2648,7 +3443,8 @@ default void cancelCutoverJob( * * *
        -     * Lists CutoverJobs of a given migrating VM.
        +     * Lists the CutoverJobs of a migrating VM. Only 25 most recent CutoverJobs
        +     * are listed.
              * 
        */ default void listCutoverJobs( @@ -2833,53 +3629,254 @@ default void updateTargetProject( com.google.cloud.vmmigration.v1.UpdateTargetProjectRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateTargetProjectMethod(), responseObserver); + getUpdateTargetProjectMethod(), responseObserver); + } + + /** + * + * + *
        +     * Deletes a single TargetProject.
        +     * NOTE: TargetProject is a global resource; hence the only supported value
        +     * for location is `global`.
        +     * 
        + */ + default void deleteTargetProject( + com.google.cloud.vmmigration.v1.DeleteTargetProjectRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteTargetProjectMethod(), responseObserver); + } + + /** + * + * + *
        +     * Lists ReplicationCycles in a given MigratingVM.
        +     * 
        + */ + default void listReplicationCycles( + com.google.cloud.vmmigration.v1.ListReplicationCyclesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListReplicationCyclesMethod(), responseObserver); + } + + /** + * + * + *
        +     * Gets details of a single ReplicationCycle.
        +     * 
        + */ + default void getReplicationCycle( + com.google.cloud.vmmigration.v1.GetReplicationCycleRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetReplicationCycleMethod(), responseObserver); + } + + /** + * + * + *
        +     * Lists ImageImports in a given project.
        +     * 
        + */ + default void listImageImports( + com.google.cloud.vmmigration.v1.ListImageImportsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListImageImportsMethod(), responseObserver); + } + + /** + * + * + *
        +     * Gets details of a single ImageImport.
        +     * 
        + */ + default void getImageImport( + com.google.cloud.vmmigration.v1.GetImageImportRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetImageImportMethod(), responseObserver); + } + + /** + * + * + *
        +     * Creates a new ImageImport in a given project.
        +     * 
        + */ + default void createImageImport( + com.google.cloud.vmmigration.v1.CreateImageImportRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateImageImportMethod(), responseObserver); + } + + /** + * + * + *
        +     * Deletes a single ImageImport.
        +     * 
        + */ + default void deleteImageImport( + com.google.cloud.vmmigration.v1.DeleteImageImportRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteImageImportMethod(), responseObserver); + } + + /** + * + * + *
        +     * Lists ImageImportJobs in a given project.
        +     * 
        + */ + default void listImageImportJobs( + com.google.cloud.vmmigration.v1.ListImageImportJobsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListImageImportJobsMethod(), responseObserver); + } + + /** + * + * + *
        +     * Gets details of a single ImageImportJob.
        +     * 
        + */ + default void getImageImportJob( + com.google.cloud.vmmigration.v1.GetImageImportJobRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetImageImportJobMethod(), responseObserver); + } + + /** + * + * + *
        +     * Initiates the cancellation of a running clone job.
        +     * 
        + */ + default void cancelImageImportJob( + com.google.cloud.vmmigration.v1.CancelImageImportJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCancelImageImportJobMethod(), responseObserver); + } + + /** + * + * + *
        +     * Creates a new disk migration job in a given Source.
        +     * 
        + */ + default void createDiskMigrationJob( + com.google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateDiskMigrationJobMethod(), responseObserver); + } + + /** + * + * + *
        +     * Lists DiskMigrationJobs in a given Source.
        +     * 
        + */ + default void listDiskMigrationJobs( + com.google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDiskMigrationJobsMethod(), responseObserver); + } + + /** + * + * + *
        +     * Gets details of a single DiskMigrationJob.
        +     * 
        + */ + default void getDiskMigrationJob( + com.google.cloud.vmmigration.v1.GetDiskMigrationJobRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDiskMigrationJobMethod(), responseObserver); + } + + /** + * + * + *
        +     * Updates the parameters of a single DiskMigrationJob.
        +     * 
        + */ + default void updateDiskMigrationJob( + com.google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateDiskMigrationJobMethod(), responseObserver); } /** * * *
        -     * Deletes a single TargetProject.
        -     * NOTE: TargetProject is a global resource; hence the only supported value
        -     * for location is `global`.
        +     * Deletes a single DiskMigrationJob.
              * 
        */ - default void deleteTargetProject( - com.google.cloud.vmmigration.v1.DeleteTargetProjectRequest request, + default void deleteDiskMigrationJob( + com.google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteTargetProjectMethod(), responseObserver); + getDeleteDiskMigrationJobMethod(), responseObserver); } /** * * *
        -     * Lists ReplicationCycles in a given MigratingVM.
        +     * Runs the disk migration job.
              * 
        */ - default void listReplicationCycles( - com.google.cloud.vmmigration.v1.ListReplicationCyclesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + default void runDiskMigrationJob( + com.google.cloud.vmmigration.v1.RunDiskMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListReplicationCyclesMethod(), responseObserver); + getRunDiskMigrationJobMethod(), responseObserver); } /** * * *
        -     * Gets details of a single ReplicationCycle.
        +     * Cancels the disk migration job.
              * 
        */ - default void getReplicationCycle( - com.google.cloud.vmmigration.v1.GetReplicationCycleRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + default void cancelDiskMigrationJob( + com.google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetReplicationCycleMethod(), responseObserver); + getCancelDiskMigrationJobMethod(), responseObserver); } } @@ -3017,6 +4014,28 @@ public void fetchInventory( responseObserver); } + /** + * + * + *
        +     * List remote source's inventory of storage resources.
        +     * The remote source is another cloud vendor (e.g. AWS, Azure).
        +     * The inventory describes the list of existing storage resources in that
        +     * source. Note that this operation lists the resources on the remote source,
        +     * as opposed to listing the MigratingVms resources in the vmmigration
        +     * service.
        +     * 
        + */ + public void fetchStorageInventory( + com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getFetchStorageInventoryMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -3319,6 +4338,22 @@ public void finalizeMigration( responseObserver); } + /** + * + * + *
        +     * Extend the migrating VM time to live.
        +     * 
        + */ + public void extendMigration( + com.google.cloud.vmmigration.v1.ExtendMigrationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getExtendMigrationMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -3355,7 +4390,8 @@ public void cancelCloneJob( * * *
        -     * Lists CloneJobs of a given migrating VM.
        +     * Lists the CloneJobs of a migrating VM. Only 25 most recent CloneJobs are
        +     * listed.
              * 
        */ public void listCloneJobs( @@ -3422,7 +4458,8 @@ public void cancelCutoverJob( * * *
        -     * Lists CutoverJobs of a given migrating VM.
        +     * Lists the CutoverJobs of a migrating VM. Only 25 most recent CutoverJobs
        +     * are listed.
              * 
        */ public void listCutoverJobs( @@ -3555,7 +4592,248 @@ public void removeGroupMigration( com.google.cloud.vmmigration.v1.RemoveGroupMigrationRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRemoveGroupMigrationMethod(), getCallOptions()), + getChannel().newCall(getRemoveGroupMigrationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
        +     * Lists TargetProjects in a given project.
        +     * NOTE: TargetProject is a global resource; hence the only supported value
        +     * for location is `global`.
        +     * 
        + */ + public void listTargetProjects( + com.google.cloud.vmmigration.v1.ListTargetProjectsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListTargetProjectsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
        +     * Gets details of a single TargetProject.
        +     * NOTE: TargetProject is a global resource; hence the only supported value
        +     * for location is `global`.
        +     * 
        + */ + public void getTargetProject( + com.google.cloud.vmmigration.v1.GetTargetProjectRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetTargetProjectMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
        +     * Creates a new TargetProject in a given project.
        +     * NOTE: TargetProject is a global resource; hence the only supported value
        +     * for location is `global`.
        +     * 
        + */ + public void createTargetProject( + com.google.cloud.vmmigration.v1.CreateTargetProjectRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateTargetProjectMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
        +     * Updates the parameters of a single TargetProject.
        +     * NOTE: TargetProject is a global resource; hence the only supported value
        +     * for location is `global`.
        +     * 
        + */ + public void updateTargetProject( + com.google.cloud.vmmigration.v1.UpdateTargetProjectRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateTargetProjectMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
        +     * Deletes a single TargetProject.
        +     * NOTE: TargetProject is a global resource; hence the only supported value
        +     * for location is `global`.
        +     * 
        + */ + public void deleteTargetProject( + com.google.cloud.vmmigration.v1.DeleteTargetProjectRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteTargetProjectMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
        +     * Lists ReplicationCycles in a given MigratingVM.
        +     * 
        + */ + public void listReplicationCycles( + com.google.cloud.vmmigration.v1.ListReplicationCyclesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListReplicationCyclesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
        +     * Gets details of a single ReplicationCycle.
        +     * 
        + */ + public void getReplicationCycle( + com.google.cloud.vmmigration.v1.GetReplicationCycleRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetReplicationCycleMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
        +     * Lists ImageImports in a given project.
        +     * 
        + */ + public void listImageImports( + com.google.cloud.vmmigration.v1.ListImageImportsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListImageImportsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
        +     * Gets details of a single ImageImport.
        +     * 
        + */ + public void getImageImport( + com.google.cloud.vmmigration.v1.GetImageImportRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetImageImportMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
        +     * Creates a new ImageImport in a given project.
        +     * 
        + */ + public void createImageImport( + com.google.cloud.vmmigration.v1.CreateImageImportRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateImageImportMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
        +     * Deletes a single ImageImport.
        +     * 
        + */ + public void deleteImageImport( + com.google.cloud.vmmigration.v1.DeleteImageImportRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteImageImportMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
        +     * Lists ImageImportJobs in a given project.
        +     * 
        + */ + public void listImageImportJobs( + com.google.cloud.vmmigration.v1.ListImageImportJobsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListImageImportJobsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
        +     * Gets details of a single ImageImportJob.
        +     * 
        + */ + public void getImageImportJob( + com.google.cloud.vmmigration.v1.GetImageImportJobRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetImageImportJobMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
        +     * Initiates the cancellation of a running clone job.
        +     * 
        + */ + public void cancelImageImportJob( + com.google.cloud.vmmigration.v1.CancelImageImportJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCancelImageImportJobMethod(), getCallOptions()), request, responseObserver); } @@ -3564,17 +4842,14 @@ public void removeGroupMigration( * * *
        -     * Lists TargetProjects in a given project.
        -     * NOTE: TargetProject is a global resource; hence the only supported value
        -     * for location is `global`.
        +     * Creates a new disk migration job in a given Source.
              * 
        */ - public void listTargetProjects( - com.google.cloud.vmmigration.v1.ListTargetProjectsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void createDiskMigrationJob( + com.google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListTargetProjectsMethod(), getCallOptions()), + getChannel().newCall(getCreateDiskMigrationJobMethod(), getCallOptions()), request, responseObserver); } @@ -3583,17 +4858,15 @@ public void listTargetProjects( * * *
        -     * Gets details of a single TargetProject.
        -     * NOTE: TargetProject is a global resource; hence the only supported value
        -     * for location is `global`.
        +     * Lists DiskMigrationJobs in a given Source.
              * 
        */ - public void getTargetProject( - com.google.cloud.vmmigration.v1.GetTargetProjectRequest request, - io.grpc.stub.StreamObserver + public void listDiskMigrationJobs( + com.google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetTargetProjectMethod(), getCallOptions()), + getChannel().newCall(getListDiskMigrationJobsMethod(), getCallOptions()), request, responseObserver); } @@ -3602,16 +4875,15 @@ public void getTargetProject( * * *
        -     * Creates a new TargetProject in a given project.
        -     * NOTE: TargetProject is a global resource; hence the only supported value
        -     * for location is `global`.
        +     * Gets details of a single DiskMigrationJob.
              * 
        */ - public void createTargetProject( - com.google.cloud.vmmigration.v1.CreateTargetProjectRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void getDiskMigrationJob( + com.google.cloud.vmmigration.v1.GetDiskMigrationJobRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateTargetProjectMethod(), getCallOptions()), + getChannel().newCall(getGetDiskMigrationJobMethod(), getCallOptions()), request, responseObserver); } @@ -3620,16 +4892,14 @@ public void createTargetProject( * * *
        -     * Updates the parameters of a single TargetProject.
        -     * NOTE: TargetProject is a global resource; hence the only supported value
        -     * for location is `global`.
        +     * Updates the parameters of a single DiskMigrationJob.
              * 
        */ - public void updateTargetProject( - com.google.cloud.vmmigration.v1.UpdateTargetProjectRequest request, + public void updateDiskMigrationJob( + com.google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateTargetProjectMethod(), getCallOptions()), + getChannel().newCall(getUpdateDiskMigrationJobMethod(), getCallOptions()), request, responseObserver); } @@ -3638,16 +4908,14 @@ public void updateTargetProject( * * *
        -     * Deletes a single TargetProject.
        -     * NOTE: TargetProject is a global resource; hence the only supported value
        -     * for location is `global`.
        +     * Deletes a single DiskMigrationJob.
              * 
        */ - public void deleteTargetProject( - com.google.cloud.vmmigration.v1.DeleteTargetProjectRequest request, + public void deleteDiskMigrationJob( + com.google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteTargetProjectMethod(), getCallOptions()), + getChannel().newCall(getDeleteDiskMigrationJobMethod(), getCallOptions()), request, responseObserver); } @@ -3656,15 +4924,14 @@ public void deleteTargetProject( * * *
        -     * Lists ReplicationCycles in a given MigratingVM.
        +     * Runs the disk migration job.
              * 
        */ - public void listReplicationCycles( - com.google.cloud.vmmigration.v1.ListReplicationCyclesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void runDiskMigrationJob( + com.google.cloud.vmmigration.v1.RunDiskMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListReplicationCyclesMethod(), getCallOptions()), + getChannel().newCall(getRunDiskMigrationJobMethod(), getCallOptions()), request, responseObserver); } @@ -3673,15 +4940,14 @@ public void listReplicationCycles( * * *
        -     * Gets details of a single ReplicationCycle.
        +     * Cancels the disk migration job.
              * 
        */ - public void getReplicationCycle( - com.google.cloud.vmmigration.v1.GetReplicationCycleRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void cancelDiskMigrationJob( + com.google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetReplicationCycleMethod(), getCallOptions()), + getChannel().newCall(getCancelDiskMigrationJobMethod(), getCallOptions()), request, responseObserver); } @@ -3788,6 +5054,24 @@ public com.google.cloud.vmmigration.v1.FetchInventoryResponse fetchInventory( getChannel(), getFetchInventoryMethod(), getCallOptions(), request); } + /** + * + * + *
        +     * List remote source's inventory of storage resources.
        +     * The remote source is another cloud vendor (e.g. AWS, Azure).
        +     * The inventory describes the list of existing storage resources in that
        +     * source. Note that this operation lists the resources on the remote source,
        +     * as opposed to listing the MigratingVms resources in the vmmigration
        +     * service.
        +     * 
        + */ + public com.google.cloud.vmmigration.v1.FetchStorageInventoryResponse fetchStorageInventory( + com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getFetchStorageInventoryMethod(), getCallOptions(), request); + } + /** * * @@ -4031,6 +5315,19 @@ public com.google.longrunning.Operation finalizeMigration( getChannel(), getFinalizeMigrationMethod(), getCallOptions(), request); } + /** + * + * + *
        +     * Extend the migrating VM time to live.
        +     * 
        + */ + public com.google.longrunning.Operation extendMigration( + com.google.cloud.vmmigration.v1.ExtendMigrationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getExtendMigrationMethod(), getCallOptions(), request); + } + /** * * @@ -4061,7 +5358,8 @@ public com.google.longrunning.Operation cancelCloneJob( * * *
        -     * Lists CloneJobs of a given migrating VM.
        +     * Lists the CloneJobs of a migrating VM. Only 25 most recent CloneJobs are
        +     * listed.
              * 
        */ public com.google.cloud.vmmigration.v1.ListCloneJobsResponse listCloneJobs( @@ -4092,241 +5390,424 @@ public com.google.cloud.vmmigration.v1.CloneJob getCloneJob( * and the job is initiated. *
        */ - public com.google.longrunning.Operation createCutoverJob( - com.google.cloud.vmmigration.v1.CreateCutoverJobRequest request) { + public com.google.longrunning.Operation createCutoverJob( + com.google.cloud.vmmigration.v1.CreateCutoverJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateCutoverJobMethod(), getCallOptions(), request); + } + + /** + * + * + *
        +     * Initiates the cancellation of a running cutover job.
        +     * 
        + */ + public com.google.longrunning.Operation cancelCutoverJob( + com.google.cloud.vmmigration.v1.CancelCutoverJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCancelCutoverJobMethod(), getCallOptions(), request); + } + + /** + * + * + *
        +     * Lists the CutoverJobs of a migrating VM. Only 25 most recent CutoverJobs
        +     * are listed.
        +     * 
        + */ + public com.google.cloud.vmmigration.v1.ListCutoverJobsResponse listCutoverJobs( + com.google.cloud.vmmigration.v1.ListCutoverJobsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCutoverJobsMethod(), getCallOptions(), request); + } + + /** + * + * + *
        +     * Gets details of a single CutoverJob.
        +     * 
        + */ + public com.google.cloud.vmmigration.v1.CutoverJob getCutoverJob( + com.google.cloud.vmmigration.v1.GetCutoverJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetCutoverJobMethod(), getCallOptions(), request); + } + + /** + * + * + *
        +     * Lists Groups in a given project and location.
        +     * 
        + */ + public com.google.cloud.vmmigration.v1.ListGroupsResponse listGroups( + com.google.cloud.vmmigration.v1.ListGroupsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListGroupsMethod(), getCallOptions(), request); + } + + /** + * + * + *
        +     * Gets details of a single Group.
        +     * 
        + */ + public com.google.cloud.vmmigration.v1.Group getGroup( + com.google.cloud.vmmigration.v1.GetGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
        +     * Creates a new Group in a given project and location.
        +     * 
        + */ + public com.google.longrunning.Operation createGroup( + com.google.cloud.vmmigration.v1.CreateGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
        +     * Updates the parameters of a single Group.
        +     * 
        + */ + public com.google.longrunning.Operation updateGroup( + com.google.cloud.vmmigration.v1.UpdateGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
        +     * Deletes a single Group.
        +     * 
        + */ + public com.google.longrunning.Operation deleteGroup( + com.google.cloud.vmmigration.v1.DeleteGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
        +     * Adds a MigratingVm to a Group.
        +     * 
        + */ + public com.google.longrunning.Operation addGroupMigration( + com.google.cloud.vmmigration.v1.AddGroupMigrationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAddGroupMigrationMethod(), getCallOptions(), request); + } + + /** + * + * + *
        +     * Removes a MigratingVm from a Group.
        +     * 
        + */ + public com.google.longrunning.Operation removeGroupMigration( + com.google.cloud.vmmigration.v1.RemoveGroupMigrationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRemoveGroupMigrationMethod(), getCallOptions(), request); + } + + /** + * + * + *
        +     * Lists TargetProjects in a given project.
        +     * NOTE: TargetProject is a global resource; hence the only supported value
        +     * for location is `global`.
        +     * 
        + */ + public com.google.cloud.vmmigration.v1.ListTargetProjectsResponse listTargetProjects( + com.google.cloud.vmmigration.v1.ListTargetProjectsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListTargetProjectsMethod(), getCallOptions(), request); + } + + /** + * + * + *
        +     * Gets details of a single TargetProject.
        +     * NOTE: TargetProject is a global resource; hence the only supported value
        +     * for location is `global`.
        +     * 
        + */ + public com.google.cloud.vmmigration.v1.TargetProject getTargetProject( + com.google.cloud.vmmigration.v1.GetTargetProjectRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetTargetProjectMethod(), getCallOptions(), request); + } + + /** + * + * + *
        +     * Creates a new TargetProject in a given project.
        +     * NOTE: TargetProject is a global resource; hence the only supported value
        +     * for location is `global`.
        +     * 
        + */ + public com.google.longrunning.Operation createTargetProject( + com.google.cloud.vmmigration.v1.CreateTargetProjectRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateTargetProjectMethod(), getCallOptions(), request); + } + + /** + * + * + *
        +     * Updates the parameters of a single TargetProject.
        +     * NOTE: TargetProject is a global resource; hence the only supported value
        +     * for location is `global`.
        +     * 
        + */ + public com.google.longrunning.Operation updateTargetProject( + com.google.cloud.vmmigration.v1.UpdateTargetProjectRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateCutoverJobMethod(), getCallOptions(), request); + getChannel(), getUpdateTargetProjectMethod(), getCallOptions(), request); } /** * * *
        -     * Initiates the cancellation of a running cutover job.
        +     * Deletes a single TargetProject.
        +     * NOTE: TargetProject is a global resource; hence the only supported value
        +     * for location is `global`.
              * 
        */ - public com.google.longrunning.Operation cancelCutoverJob( - com.google.cloud.vmmigration.v1.CancelCutoverJobRequest request) { + public com.google.longrunning.Operation deleteTargetProject( + com.google.cloud.vmmigration.v1.DeleteTargetProjectRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCancelCutoverJobMethod(), getCallOptions(), request); + getChannel(), getDeleteTargetProjectMethod(), getCallOptions(), request); } /** * * *
        -     * Lists CutoverJobs of a given migrating VM.
        +     * Lists ReplicationCycles in a given MigratingVM.
              * 
        */ - public com.google.cloud.vmmigration.v1.ListCutoverJobsResponse listCutoverJobs( - com.google.cloud.vmmigration.v1.ListCutoverJobsRequest request) { + public com.google.cloud.vmmigration.v1.ListReplicationCyclesResponse listReplicationCycles( + com.google.cloud.vmmigration.v1.ListReplicationCyclesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListCutoverJobsMethod(), getCallOptions(), request); + getChannel(), getListReplicationCyclesMethod(), getCallOptions(), request); } /** * * *
        -     * Gets details of a single CutoverJob.
        +     * Gets details of a single ReplicationCycle.
              * 
        */ - public com.google.cloud.vmmigration.v1.CutoverJob getCutoverJob( - com.google.cloud.vmmigration.v1.GetCutoverJobRequest request) { + public com.google.cloud.vmmigration.v1.ReplicationCycle getReplicationCycle( + com.google.cloud.vmmigration.v1.GetReplicationCycleRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetCutoverJobMethod(), getCallOptions(), request); + getChannel(), getGetReplicationCycleMethod(), getCallOptions(), request); } /** * * *
        -     * Lists Groups in a given project and location.
        +     * Lists ImageImports in a given project.
              * 
        */ - public com.google.cloud.vmmigration.v1.ListGroupsResponse listGroups( - com.google.cloud.vmmigration.v1.ListGroupsRequest request) { + public com.google.cloud.vmmigration.v1.ListImageImportsResponse listImageImports( + com.google.cloud.vmmigration.v1.ListImageImportsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListGroupsMethod(), getCallOptions(), request); + getChannel(), getListImageImportsMethod(), getCallOptions(), request); } /** * * *
        -     * Gets details of a single Group.
        +     * Gets details of a single ImageImport.
              * 
        */ - public com.google.cloud.vmmigration.v1.Group getGroup( - com.google.cloud.vmmigration.v1.GetGroupRequest request) { + public com.google.cloud.vmmigration.v1.ImageImport getImageImport( + com.google.cloud.vmmigration.v1.GetImageImportRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetGroupMethod(), getCallOptions(), request); + getChannel(), getGetImageImportMethod(), getCallOptions(), request); } /** * * *
        -     * Creates a new Group in a given project and location.
        +     * Creates a new ImageImport in a given project.
              * 
        */ - public com.google.longrunning.Operation createGroup( - com.google.cloud.vmmigration.v1.CreateGroupRequest request) { + public com.google.longrunning.Operation createImageImport( + com.google.cloud.vmmigration.v1.CreateImageImportRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateGroupMethod(), getCallOptions(), request); + getChannel(), getCreateImageImportMethod(), getCallOptions(), request); } /** * * *
        -     * Updates the parameters of a single Group.
        +     * Deletes a single ImageImport.
              * 
        */ - public com.google.longrunning.Operation updateGroup( - com.google.cloud.vmmigration.v1.UpdateGroupRequest request) { + public com.google.longrunning.Operation deleteImageImport( + com.google.cloud.vmmigration.v1.DeleteImageImportRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateGroupMethod(), getCallOptions(), request); + getChannel(), getDeleteImageImportMethod(), getCallOptions(), request); } /** * * *
        -     * Deletes a single Group.
        +     * Lists ImageImportJobs in a given project.
              * 
        */ - public com.google.longrunning.Operation deleteGroup( - com.google.cloud.vmmigration.v1.DeleteGroupRequest request) { + public com.google.cloud.vmmigration.v1.ListImageImportJobsResponse listImageImportJobs( + com.google.cloud.vmmigration.v1.ListImageImportJobsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteGroupMethod(), getCallOptions(), request); + getChannel(), getListImageImportJobsMethod(), getCallOptions(), request); } /** * * *
        -     * Adds a MigratingVm to a Group.
        +     * Gets details of a single ImageImportJob.
              * 
        */ - public com.google.longrunning.Operation addGroupMigration( - com.google.cloud.vmmigration.v1.AddGroupMigrationRequest request) { + public com.google.cloud.vmmigration.v1.ImageImportJob getImageImportJob( + com.google.cloud.vmmigration.v1.GetImageImportJobRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getAddGroupMigrationMethod(), getCallOptions(), request); + getChannel(), getGetImageImportJobMethod(), getCallOptions(), request); } /** * * *
        -     * Removes a MigratingVm from a Group.
        +     * Initiates the cancellation of a running clone job.
              * 
        */ - public com.google.longrunning.Operation removeGroupMigration( - com.google.cloud.vmmigration.v1.RemoveGroupMigrationRequest request) { + public com.google.longrunning.Operation cancelImageImportJob( + com.google.cloud.vmmigration.v1.CancelImageImportJobRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRemoveGroupMigrationMethod(), getCallOptions(), request); + getChannel(), getCancelImageImportJobMethod(), getCallOptions(), request); } /** * * *
        -     * Lists TargetProjects in a given project.
        -     * NOTE: TargetProject is a global resource; hence the only supported value
        -     * for location is `global`.
        +     * Creates a new disk migration job in a given Source.
              * 
        */ - public com.google.cloud.vmmigration.v1.ListTargetProjectsResponse listTargetProjects( - com.google.cloud.vmmigration.v1.ListTargetProjectsRequest request) { + public com.google.longrunning.Operation createDiskMigrationJob( + com.google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListTargetProjectsMethod(), getCallOptions(), request); + getChannel(), getCreateDiskMigrationJobMethod(), getCallOptions(), request); } /** * * *
        -     * Gets details of a single TargetProject.
        -     * NOTE: TargetProject is a global resource; hence the only supported value
        -     * for location is `global`.
        +     * Lists DiskMigrationJobs in a given Source.
              * 
        */ - public com.google.cloud.vmmigration.v1.TargetProject getTargetProject( - com.google.cloud.vmmigration.v1.GetTargetProjectRequest request) { + public com.google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse listDiskMigrationJobs( + com.google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetTargetProjectMethod(), getCallOptions(), request); + getChannel(), getListDiskMigrationJobsMethod(), getCallOptions(), request); } /** * * *
        -     * Creates a new TargetProject in a given project.
        -     * NOTE: TargetProject is a global resource; hence the only supported value
        -     * for location is `global`.
        +     * Gets details of a single DiskMigrationJob.
              * 
        */ - public com.google.longrunning.Operation createTargetProject( - com.google.cloud.vmmigration.v1.CreateTargetProjectRequest request) { + public com.google.cloud.vmmigration.v1.DiskMigrationJob getDiskMigrationJob( + com.google.cloud.vmmigration.v1.GetDiskMigrationJobRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateTargetProjectMethod(), getCallOptions(), request); + getChannel(), getGetDiskMigrationJobMethod(), getCallOptions(), request); } /** * * *
        -     * Updates the parameters of a single TargetProject.
        -     * NOTE: TargetProject is a global resource; hence the only supported value
        -     * for location is `global`.
        +     * Updates the parameters of a single DiskMigrationJob.
              * 
        */ - public com.google.longrunning.Operation updateTargetProject( - com.google.cloud.vmmigration.v1.UpdateTargetProjectRequest request) { + public com.google.longrunning.Operation updateDiskMigrationJob( + com.google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateTargetProjectMethod(), getCallOptions(), request); + getChannel(), getUpdateDiskMigrationJobMethod(), getCallOptions(), request); } /** * * *
        -     * Deletes a single TargetProject.
        -     * NOTE: TargetProject is a global resource; hence the only supported value
        -     * for location is `global`.
        +     * Deletes a single DiskMigrationJob.
              * 
        */ - public com.google.longrunning.Operation deleteTargetProject( - com.google.cloud.vmmigration.v1.DeleteTargetProjectRequest request) { + public com.google.longrunning.Operation deleteDiskMigrationJob( + com.google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteTargetProjectMethod(), getCallOptions(), request); + getChannel(), getDeleteDiskMigrationJobMethod(), getCallOptions(), request); } /** * * *
        -     * Lists ReplicationCycles in a given MigratingVM.
        +     * Runs the disk migration job.
              * 
        */ - public com.google.cloud.vmmigration.v1.ListReplicationCyclesResponse listReplicationCycles( - com.google.cloud.vmmigration.v1.ListReplicationCyclesRequest request) { + public com.google.longrunning.Operation runDiskMigrationJob( + com.google.cloud.vmmigration.v1.RunDiskMigrationJobRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListReplicationCyclesMethod(), getCallOptions(), request); + getChannel(), getRunDiskMigrationJobMethod(), getCallOptions(), request); } /** * * *
        -     * Gets details of a single ReplicationCycle.
        +     * Cancels the disk migration job.
              * 
        */ - public com.google.cloud.vmmigration.v1.ReplicationCycle getReplicationCycle( - com.google.cloud.vmmigration.v1.GetReplicationCycleRequest request) { + public com.google.longrunning.Operation cancelDiskMigrationJob( + com.google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetReplicationCycleMethod(), getCallOptions(), request); + getChannel(), getCancelDiskMigrationJobMethod(), getCallOptions(), request); } } @@ -4431,6 +5912,24 @@ public com.google.cloud.vmmigration.v1.FetchInventoryResponse fetchInventory( getChannel(), getFetchInventoryMethod(), getCallOptions(), request); } + /** + * + * + *
        +     * List remote source's inventory of storage resources.
        +     * The remote source is another cloud vendor (e.g. AWS, Azure).
        +     * The inventory describes the list of existing storage resources in that
        +     * source. Note that this operation lists the resources on the remote source,
        +     * as opposed to listing the MigratingVms resources in the vmmigration
        +     * service.
        +     * 
        + */ + public com.google.cloud.vmmigration.v1.FetchStorageInventoryResponse fetchStorageInventory( + com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getFetchStorageInventoryMethod(), getCallOptions(), request); + } + /** * * @@ -4674,6 +6173,19 @@ public com.google.longrunning.Operation finalizeMigration( getChannel(), getFinalizeMigrationMethod(), getCallOptions(), request); } + /** + * + * + *
        +     * Extend the migrating VM time to live.
        +     * 
        + */ + public com.google.longrunning.Operation extendMigration( + com.google.cloud.vmmigration.v1.ExtendMigrationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getExtendMigrationMethod(), getCallOptions(), request); + } + /** * * @@ -4704,7 +6216,8 @@ public com.google.longrunning.Operation cancelCloneJob( * * *
        -     * Lists CloneJobs of a given migrating VM.
        +     * Lists the CloneJobs of a migrating VM. Only 25 most recent CloneJobs are
        +     * listed.
              * 
        */ public com.google.cloud.vmmigration.v1.ListCloneJobsResponse listCloneJobs( @@ -4758,7 +6271,8 @@ public com.google.longrunning.Operation cancelCutoverJob( * * *
        -     * Lists CutoverJobs of a given migrating VM.
        +     * Lists the CutoverJobs of a migrating VM. Only 25 most recent CutoverJobs
        +     * are listed.
              * 
        */ public com.google.cloud.vmmigration.v1.ListCutoverJobsResponse listCutoverJobs( @@ -4940,36 +6454,218 @@ public com.google.longrunning.Operation updateTargetProject( * for location is `global`. *
        */ - public com.google.longrunning.Operation deleteTargetProject( - com.google.cloud.vmmigration.v1.DeleteTargetProjectRequest request) { + public com.google.longrunning.Operation deleteTargetProject( + com.google.cloud.vmmigration.v1.DeleteTargetProjectRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteTargetProjectMethod(), getCallOptions(), request); + } + + /** + * + * + *
        +     * Lists ReplicationCycles in a given MigratingVM.
        +     * 
        + */ + public com.google.cloud.vmmigration.v1.ListReplicationCyclesResponse listReplicationCycles( + com.google.cloud.vmmigration.v1.ListReplicationCyclesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListReplicationCyclesMethod(), getCallOptions(), request); + } + + /** + * + * + *
        +     * Gets details of a single ReplicationCycle.
        +     * 
        + */ + public com.google.cloud.vmmigration.v1.ReplicationCycle getReplicationCycle( + com.google.cloud.vmmigration.v1.GetReplicationCycleRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetReplicationCycleMethod(), getCallOptions(), request); + } + + /** + * + * + *
        +     * Lists ImageImports in a given project.
        +     * 
        + */ + public com.google.cloud.vmmigration.v1.ListImageImportsResponse listImageImports( + com.google.cloud.vmmigration.v1.ListImageImportsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListImageImportsMethod(), getCallOptions(), request); + } + + /** + * + * + *
        +     * Gets details of a single ImageImport.
        +     * 
        + */ + public com.google.cloud.vmmigration.v1.ImageImport getImageImport( + com.google.cloud.vmmigration.v1.GetImageImportRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetImageImportMethod(), getCallOptions(), request); + } + + /** + * + * + *
        +     * Creates a new ImageImport in a given project.
        +     * 
        + */ + public com.google.longrunning.Operation createImageImport( + com.google.cloud.vmmigration.v1.CreateImageImportRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateImageImportMethod(), getCallOptions(), request); + } + + /** + * + * + *
        +     * Deletes a single ImageImport.
        +     * 
        + */ + public com.google.longrunning.Operation deleteImageImport( + com.google.cloud.vmmigration.v1.DeleteImageImportRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteImageImportMethod(), getCallOptions(), request); + } + + /** + * + * + *
        +     * Lists ImageImportJobs in a given project.
        +     * 
        + */ + public com.google.cloud.vmmigration.v1.ListImageImportJobsResponse listImageImportJobs( + com.google.cloud.vmmigration.v1.ListImageImportJobsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListImageImportJobsMethod(), getCallOptions(), request); + } + + /** + * + * + *
        +     * Gets details of a single ImageImportJob.
        +     * 
        + */ + public com.google.cloud.vmmigration.v1.ImageImportJob getImageImportJob( + com.google.cloud.vmmigration.v1.GetImageImportJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetImageImportJobMethod(), getCallOptions(), request); + } + + /** + * + * + *
        +     * Initiates the cancellation of a running clone job.
        +     * 
        + */ + public com.google.longrunning.Operation cancelImageImportJob( + com.google.cloud.vmmigration.v1.CancelImageImportJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCancelImageImportJobMethod(), getCallOptions(), request); + } + + /** + * + * + *
        +     * Creates a new disk migration job in a given Source.
        +     * 
        + */ + public com.google.longrunning.Operation createDiskMigrationJob( + com.google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateDiskMigrationJobMethod(), getCallOptions(), request); + } + + /** + * + * + *
        +     * Lists DiskMigrationJobs in a given Source.
        +     * 
        + */ + public com.google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse listDiskMigrationJobs( + com.google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDiskMigrationJobsMethod(), getCallOptions(), request); + } + + /** + * + * + *
        +     * Gets details of a single DiskMigrationJob.
        +     * 
        + */ + public com.google.cloud.vmmigration.v1.DiskMigrationJob getDiskMigrationJob( + com.google.cloud.vmmigration.v1.GetDiskMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDiskMigrationJobMethod(), getCallOptions(), request); + } + + /** + * + * + *
        +     * Updates the parameters of a single DiskMigrationJob.
        +     * 
        + */ + public com.google.longrunning.Operation updateDiskMigrationJob( + com.google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateDiskMigrationJobMethod(), getCallOptions(), request); + } + + /** + * + * + *
        +     * Deletes a single DiskMigrationJob.
        +     * 
        + */ + public com.google.longrunning.Operation deleteDiskMigrationJob( + com.google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteTargetProjectMethod(), getCallOptions(), request); + getChannel(), getDeleteDiskMigrationJobMethod(), getCallOptions(), request); } /** * * *
        -     * Lists ReplicationCycles in a given MigratingVM.
        +     * Runs the disk migration job.
              * 
        */ - public com.google.cloud.vmmigration.v1.ListReplicationCyclesResponse listReplicationCycles( - com.google.cloud.vmmigration.v1.ListReplicationCyclesRequest request) { + public com.google.longrunning.Operation runDiskMigrationJob( + com.google.cloud.vmmigration.v1.RunDiskMigrationJobRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListReplicationCyclesMethod(), getCallOptions(), request); + getChannel(), getRunDiskMigrationJobMethod(), getCallOptions(), request); } /** * * *
        -     * Gets details of a single ReplicationCycle.
        +     * Cancels the disk migration job.
              * 
        */ - public com.google.cloud.vmmigration.v1.ReplicationCycle getReplicationCycle( - com.google.cloud.vmmigration.v1.GetReplicationCycleRequest request) { + public com.google.longrunning.Operation cancelDiskMigrationJob( + com.google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetReplicationCycleMethod(), getCallOptions(), request); + getChannel(), getCancelDiskMigrationJobMethod(), getCallOptions(), request); } } @@ -5077,6 +6773,26 @@ protected VmMigrationFutureStub build( getChannel().newCall(getFetchInventoryMethod(), getCallOptions()), request); } + /** + * + * + *
        +     * List remote source's inventory of storage resources.
        +     * The remote source is another cloud vendor (e.g. AWS, Azure).
        +     * The inventory describes the list of existing storage resources in that
        +     * source. Note that this operation lists the resources on the remote source,
        +     * as opposed to listing the MigratingVms resources in the vmmigration
        +     * service.
        +     * 
        + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vmmigration.v1.FetchStorageInventoryResponse> + fetchStorageInventory( + com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getFetchStorageInventoryMethod(), getCallOptions()), request); + } + /** * * @@ -5332,6 +7048,19 @@ protected VmMigrationFutureStub build( getChannel().newCall(getFinalizeMigrationMethod(), getCallOptions()), request); } + /** + * + * + *
        +     * Extend the migrating VM time to live.
        +     * 
        + */ + public com.google.common.util.concurrent.ListenableFuture + extendMigration(com.google.cloud.vmmigration.v1.ExtendMigrationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getExtendMigrationMethod(), getCallOptions()), request); + } + /** * * @@ -5362,7 +7091,8 @@ protected VmMigrationFutureStub build( * * *
        -     * Lists CloneJobs of a given migrating VM.
        +     * Lists the CloneJobs of a migrating VM. Only 25 most recent CloneJobs are
        +     * listed.
              * 
        */ public com.google.common.util.concurrent.ListenableFuture< @@ -5418,7 +7148,8 @@ protected VmMigrationFutureStub build( * * *
        -     * Lists CutoverJobs of a given migrating VM.
        +     * Lists the CutoverJobs of a migrating VM. Only 25 most recent CutoverJobs
        +     * are listed.
              * 
        */ public com.google.common.util.concurrent.ListenableFuture< @@ -5639,6 +7370,199 @@ protected VmMigrationFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetReplicationCycleMethod(), getCallOptions()), request); } + + /** + * + * + *
        +     * Lists ImageImports in a given project.
        +     * 
        + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vmmigration.v1.ListImageImportsResponse> + listImageImports(com.google.cloud.vmmigration.v1.ListImageImportsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListImageImportsMethod(), getCallOptions()), request); + } + + /** + * + * + *
        +     * Gets details of a single ImageImport.
        +     * 
        + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vmmigration.v1.ImageImport> + getImageImport(com.google.cloud.vmmigration.v1.GetImageImportRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetImageImportMethod(), getCallOptions()), request); + } + + /** + * + * + *
        +     * Creates a new ImageImport in a given project.
        +     * 
        + */ + public com.google.common.util.concurrent.ListenableFuture + createImageImport(com.google.cloud.vmmigration.v1.CreateImageImportRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateImageImportMethod(), getCallOptions()), request); + } + + /** + * + * + *
        +     * Deletes a single ImageImport.
        +     * 
        + */ + public com.google.common.util.concurrent.ListenableFuture + deleteImageImport(com.google.cloud.vmmigration.v1.DeleteImageImportRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteImageImportMethod(), getCallOptions()), request); + } + + /** + * + * + *
        +     * Lists ImageImportJobs in a given project.
        +     * 
        + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vmmigration.v1.ListImageImportJobsResponse> + listImageImportJobs(com.google.cloud.vmmigration.v1.ListImageImportJobsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListImageImportJobsMethod(), getCallOptions()), request); + } + + /** + * + * + *
        +     * Gets details of a single ImageImportJob.
        +     * 
        + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vmmigration.v1.ImageImportJob> + getImageImportJob(com.google.cloud.vmmigration.v1.GetImageImportJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetImageImportJobMethod(), getCallOptions()), request); + } + + /** + * + * + *
        +     * Initiates the cancellation of a running clone job.
        +     * 
        + */ + public com.google.common.util.concurrent.ListenableFuture + cancelImageImportJob(com.google.cloud.vmmigration.v1.CancelImageImportJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCancelImageImportJobMethod(), getCallOptions()), request); + } + + /** + * + * + *
        +     * Creates a new disk migration job in a given Source.
        +     * 
        + */ + public com.google.common.util.concurrent.ListenableFuture + createDiskMigrationJob( + com.google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateDiskMigrationJobMethod(), getCallOptions()), request); + } + + /** + * + * + *
        +     * Lists DiskMigrationJobs in a given Source.
        +     * 
        + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse> + listDiskMigrationJobs( + com.google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDiskMigrationJobsMethod(), getCallOptions()), request); + } + + /** + * + * + *
        +     * Gets details of a single DiskMigrationJob.
        +     * 
        + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vmmigration.v1.DiskMigrationJob> + getDiskMigrationJob(com.google.cloud.vmmigration.v1.GetDiskMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDiskMigrationJobMethod(), getCallOptions()), request); + } + + /** + * + * + *
        +     * Updates the parameters of a single DiskMigrationJob.
        +     * 
        + */ + public com.google.common.util.concurrent.ListenableFuture + updateDiskMigrationJob( + com.google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateDiskMigrationJobMethod(), getCallOptions()), request); + } + + /** + * + * + *
        +     * Deletes a single DiskMigrationJob.
        +     * 
        + */ + public com.google.common.util.concurrent.ListenableFuture + deleteDiskMigrationJob( + com.google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteDiskMigrationJobMethod(), getCallOptions()), request); + } + + /** + * + * + *
        +     * Runs the disk migration job.
        +     * 
        + */ + public com.google.common.util.concurrent.ListenableFuture + runDiskMigrationJob(com.google.cloud.vmmigration.v1.RunDiskMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRunDiskMigrationJobMethod(), getCallOptions()), request); + } + + /** + * + * + *
        +     * Cancels the disk migration job.
        +     * 
        + */ + public com.google.common.util.concurrent.ListenableFuture + cancelDiskMigrationJob( + com.google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCancelDiskMigrationJobMethod(), getCallOptions()), request); + } } private static final int METHODID_LIST_SOURCES = 0; @@ -5647,46 +7571,62 @@ protected VmMigrationFutureStub build( private static final int METHODID_UPDATE_SOURCE = 3; private static final int METHODID_DELETE_SOURCE = 4; private static final int METHODID_FETCH_INVENTORY = 5; - private static final int METHODID_LIST_UTILIZATION_REPORTS = 6; - private static final int METHODID_GET_UTILIZATION_REPORT = 7; - private static final int METHODID_CREATE_UTILIZATION_REPORT = 8; - private static final int METHODID_DELETE_UTILIZATION_REPORT = 9; - private static final int METHODID_LIST_DATACENTER_CONNECTORS = 10; - private static final int METHODID_GET_DATACENTER_CONNECTOR = 11; - private static final int METHODID_CREATE_DATACENTER_CONNECTOR = 12; - private static final int METHODID_DELETE_DATACENTER_CONNECTOR = 13; - private static final int METHODID_UPGRADE_APPLIANCE = 14; - private static final int METHODID_CREATE_MIGRATING_VM = 15; - private static final int METHODID_LIST_MIGRATING_VMS = 16; - private static final int METHODID_GET_MIGRATING_VM = 17; - private static final int METHODID_UPDATE_MIGRATING_VM = 18; - private static final int METHODID_DELETE_MIGRATING_VM = 19; - private static final int METHODID_START_MIGRATION = 20; - private static final int METHODID_RESUME_MIGRATION = 21; - private static final int METHODID_PAUSE_MIGRATION = 22; - private static final int METHODID_FINALIZE_MIGRATION = 23; - private static final int METHODID_CREATE_CLONE_JOB = 24; - private static final int METHODID_CANCEL_CLONE_JOB = 25; - private static final int METHODID_LIST_CLONE_JOBS = 26; - private static final int METHODID_GET_CLONE_JOB = 27; - private static final int METHODID_CREATE_CUTOVER_JOB = 28; - private static final int METHODID_CANCEL_CUTOVER_JOB = 29; - private static final int METHODID_LIST_CUTOVER_JOBS = 30; - private static final int METHODID_GET_CUTOVER_JOB = 31; - private static final int METHODID_LIST_GROUPS = 32; - private static final int METHODID_GET_GROUP = 33; - private static final int METHODID_CREATE_GROUP = 34; - private static final int METHODID_UPDATE_GROUP = 35; - private static final int METHODID_DELETE_GROUP = 36; - private static final int METHODID_ADD_GROUP_MIGRATION = 37; - private static final int METHODID_REMOVE_GROUP_MIGRATION = 38; - private static final int METHODID_LIST_TARGET_PROJECTS = 39; - private static final int METHODID_GET_TARGET_PROJECT = 40; - private static final int METHODID_CREATE_TARGET_PROJECT = 41; - private static final int METHODID_UPDATE_TARGET_PROJECT = 42; - private static final int METHODID_DELETE_TARGET_PROJECT = 43; - private static final int METHODID_LIST_REPLICATION_CYCLES = 44; - private static final int METHODID_GET_REPLICATION_CYCLE = 45; + private static final int METHODID_FETCH_STORAGE_INVENTORY = 6; + private static final int METHODID_LIST_UTILIZATION_REPORTS = 7; + private static final int METHODID_GET_UTILIZATION_REPORT = 8; + private static final int METHODID_CREATE_UTILIZATION_REPORT = 9; + private static final int METHODID_DELETE_UTILIZATION_REPORT = 10; + private static final int METHODID_LIST_DATACENTER_CONNECTORS = 11; + private static final int METHODID_GET_DATACENTER_CONNECTOR = 12; + private static final int METHODID_CREATE_DATACENTER_CONNECTOR = 13; + private static final int METHODID_DELETE_DATACENTER_CONNECTOR = 14; + private static final int METHODID_UPGRADE_APPLIANCE = 15; + private static final int METHODID_CREATE_MIGRATING_VM = 16; + private static final int METHODID_LIST_MIGRATING_VMS = 17; + private static final int METHODID_GET_MIGRATING_VM = 18; + private static final int METHODID_UPDATE_MIGRATING_VM = 19; + private static final int METHODID_DELETE_MIGRATING_VM = 20; + private static final int METHODID_START_MIGRATION = 21; + private static final int METHODID_RESUME_MIGRATION = 22; + private static final int METHODID_PAUSE_MIGRATION = 23; + private static final int METHODID_FINALIZE_MIGRATION = 24; + private static final int METHODID_EXTEND_MIGRATION = 25; + private static final int METHODID_CREATE_CLONE_JOB = 26; + private static final int METHODID_CANCEL_CLONE_JOB = 27; + private static final int METHODID_LIST_CLONE_JOBS = 28; + private static final int METHODID_GET_CLONE_JOB = 29; + private static final int METHODID_CREATE_CUTOVER_JOB = 30; + private static final int METHODID_CANCEL_CUTOVER_JOB = 31; + private static final int METHODID_LIST_CUTOVER_JOBS = 32; + private static final int METHODID_GET_CUTOVER_JOB = 33; + private static final int METHODID_LIST_GROUPS = 34; + private static final int METHODID_GET_GROUP = 35; + private static final int METHODID_CREATE_GROUP = 36; + private static final int METHODID_UPDATE_GROUP = 37; + private static final int METHODID_DELETE_GROUP = 38; + private static final int METHODID_ADD_GROUP_MIGRATION = 39; + private static final int METHODID_REMOVE_GROUP_MIGRATION = 40; + private static final int METHODID_LIST_TARGET_PROJECTS = 41; + private static final int METHODID_GET_TARGET_PROJECT = 42; + private static final int METHODID_CREATE_TARGET_PROJECT = 43; + private static final int METHODID_UPDATE_TARGET_PROJECT = 44; + private static final int METHODID_DELETE_TARGET_PROJECT = 45; + private static final int METHODID_LIST_REPLICATION_CYCLES = 46; + private static final int METHODID_GET_REPLICATION_CYCLE = 47; + private static final int METHODID_LIST_IMAGE_IMPORTS = 48; + private static final int METHODID_GET_IMAGE_IMPORT = 49; + private static final int METHODID_CREATE_IMAGE_IMPORT = 50; + private static final int METHODID_DELETE_IMAGE_IMPORT = 51; + private static final int METHODID_LIST_IMAGE_IMPORT_JOBS = 52; + private static final int METHODID_GET_IMAGE_IMPORT_JOB = 53; + private static final int METHODID_CANCEL_IMAGE_IMPORT_JOB = 54; + private static final int METHODID_CREATE_DISK_MIGRATION_JOB = 55; + private static final int METHODID_LIST_DISK_MIGRATION_JOBS = 56; + private static final int METHODID_GET_DISK_MIGRATION_JOB = 57; + private static final int METHODID_UPDATE_DISK_MIGRATION_JOB = 58; + private static final int METHODID_DELETE_DISK_MIGRATION_JOB = 59; + private static final int METHODID_RUN_DISK_MIGRATION_JOB = 60; + private static final int METHODID_CANCEL_DISK_MIGRATION_JOB = 61; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -5738,6 +7678,13 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_FETCH_STORAGE_INVENTORY: + serviceImpl.fetchStorageInventory( + (com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.vmmigration.v1.FetchStorageInventoryResponse>) + responseObserver); + break; case METHODID_LIST_UTILIZATION_REPORTS: serviceImpl.listUtilizationReports( (com.google.cloud.vmmigration.v1.ListUtilizationReportsRequest) request, @@ -5837,6 +7784,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.vmmigration.v1.FinalizeMigrationRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_EXTEND_MIGRATION: + serviceImpl.extendMigration( + (com.google.cloud.vmmigration.v1.ExtendMigrationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_CREATE_CLONE_JOB: serviceImpl.createCloneJob( (com.google.cloud.vmmigration.v1.CreateCloneJobRequest) request, @@ -5959,6 +7911,85 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_LIST_IMAGE_IMPORTS: + serviceImpl.listImageImports( + (com.google.cloud.vmmigration.v1.ListImageImportsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.vmmigration.v1.ListImageImportsResponse>) + responseObserver); + break; + case METHODID_GET_IMAGE_IMPORT: + serviceImpl.getImageImport( + (com.google.cloud.vmmigration.v1.GetImageImportRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_IMAGE_IMPORT: + serviceImpl.createImageImport( + (com.google.cloud.vmmigration.v1.CreateImageImportRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_IMAGE_IMPORT: + serviceImpl.deleteImageImport( + (com.google.cloud.vmmigration.v1.DeleteImageImportRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_IMAGE_IMPORT_JOBS: + serviceImpl.listImageImportJobs( + (com.google.cloud.vmmigration.v1.ListImageImportJobsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.vmmigration.v1.ListImageImportJobsResponse>) + responseObserver); + break; + case METHODID_GET_IMAGE_IMPORT_JOB: + serviceImpl.getImageImportJob( + (com.google.cloud.vmmigration.v1.GetImageImportJobRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CANCEL_IMAGE_IMPORT_JOB: + serviceImpl.cancelImageImportJob( + (com.google.cloud.vmmigration.v1.CancelImageImportJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_DISK_MIGRATION_JOB: + serviceImpl.createDiskMigrationJob( + (com.google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_DISK_MIGRATION_JOBS: + serviceImpl.listDiskMigrationJobs( + (com.google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse>) + responseObserver); + break; + case METHODID_GET_DISK_MIGRATION_JOB: + serviceImpl.getDiskMigrationJob( + (com.google.cloud.vmmigration.v1.GetDiskMigrationJobRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_DISK_MIGRATION_JOB: + serviceImpl.updateDiskMigrationJob( + (com.google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_DISK_MIGRATION_JOB: + serviceImpl.deleteDiskMigrationJob( + (com.google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_RUN_DISK_MIGRATION_JOB: + serviceImpl.runDiskMigrationJob( + (com.google.cloud.vmmigration.v1.RunDiskMigrationJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CANCEL_DISK_MIGRATION_JOB: + serviceImpl.cancelDiskMigrationJob( + (com.google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -6015,6 +8046,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.vmmigration.v1.FetchInventoryRequest, com.google.cloud.vmmigration.v1.FetchInventoryResponse>( service, METHODID_FETCH_INVENTORY))) + .addMethod( + getFetchStorageInventoryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest, + com.google.cloud.vmmigration.v1.FetchStorageInventoryResponse>( + service, METHODID_FETCH_STORAGE_INVENTORY))) .addMethod( getListUtilizationReportsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -6131,6 +8169,12 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.vmmigration.v1.FinalizeMigrationRequest, com.google.longrunning.Operation>(service, METHODID_FINALIZE_MIGRATION))) + .addMethod( + getExtendMigrationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmmigration.v1.ExtendMigrationRequest, + com.google.longrunning.Operation>(service, METHODID_EXTEND_MIGRATION))) .addMethod( getCreateCloneJobMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -6270,6 +8314,96 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.vmmigration.v1.GetReplicationCycleRequest, com.google.cloud.vmmigration.v1.ReplicationCycle>( service, METHODID_GET_REPLICATION_CYCLE))) + .addMethod( + getListImageImportsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmmigration.v1.ListImageImportsRequest, + com.google.cloud.vmmigration.v1.ListImageImportsResponse>( + service, METHODID_LIST_IMAGE_IMPORTS))) + .addMethod( + getGetImageImportMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmmigration.v1.GetImageImportRequest, + com.google.cloud.vmmigration.v1.ImageImport>( + service, METHODID_GET_IMAGE_IMPORT))) + .addMethod( + getCreateImageImportMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmmigration.v1.CreateImageImportRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_IMAGE_IMPORT))) + .addMethod( + getDeleteImageImportMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmmigration.v1.DeleteImageImportRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_IMAGE_IMPORT))) + .addMethod( + getListImageImportJobsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmmigration.v1.ListImageImportJobsRequest, + com.google.cloud.vmmigration.v1.ListImageImportJobsResponse>( + service, METHODID_LIST_IMAGE_IMPORT_JOBS))) + .addMethod( + getGetImageImportJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmmigration.v1.GetImageImportJobRequest, + com.google.cloud.vmmigration.v1.ImageImportJob>( + service, METHODID_GET_IMAGE_IMPORT_JOB))) + .addMethod( + getCancelImageImportJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmmigration.v1.CancelImageImportJobRequest, + com.google.longrunning.Operation>(service, METHODID_CANCEL_IMAGE_IMPORT_JOB))) + .addMethod( + getCreateDiskMigrationJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_DISK_MIGRATION_JOB))) + .addMethod( + getListDiskMigrationJobsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest, + com.google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse>( + service, METHODID_LIST_DISK_MIGRATION_JOBS))) + .addMethod( + getGetDiskMigrationJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmmigration.v1.GetDiskMigrationJobRequest, + com.google.cloud.vmmigration.v1.DiskMigrationJob>( + service, METHODID_GET_DISK_MIGRATION_JOB))) + .addMethod( + getUpdateDiskMigrationJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_DISK_MIGRATION_JOB))) + .addMethod( + getDeleteDiskMigrationJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_DISK_MIGRATION_JOB))) + .addMethod( + getRunDiskMigrationJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmmigration.v1.RunDiskMigrationJobRequest, + com.google.longrunning.Operation>(service, METHODID_RUN_DISK_MIGRATION_JOB))) + .addMethod( + getCancelDiskMigrationJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest, + com.google.longrunning.Operation>(service, METHODID_CANCEL_DISK_MIGRATION_JOB))) .build(); } @@ -6327,6 +8461,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getUpdateSourceMethod()) .addMethod(getDeleteSourceMethod()) .addMethod(getFetchInventoryMethod()) + .addMethod(getFetchStorageInventoryMethod()) .addMethod(getListUtilizationReportsMethod()) .addMethod(getGetUtilizationReportMethod()) .addMethod(getCreateUtilizationReportMethod()) @@ -6345,6 +8480,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getResumeMigrationMethod()) .addMethod(getPauseMigrationMethod()) .addMethod(getFinalizeMigrationMethod()) + .addMethod(getExtendMigrationMethod()) .addMethod(getCreateCloneJobMethod()) .addMethod(getCancelCloneJobMethod()) .addMethod(getListCloneJobsMethod()) @@ -6367,6 +8503,20 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getDeleteTargetProjectMethod()) .addMethod(getListReplicationCyclesMethod()) .addMethod(getGetReplicationCycleMethod()) + .addMethod(getListImageImportsMethod()) + .addMethod(getGetImageImportMethod()) + .addMethod(getCreateImageImportMethod()) + .addMethod(getDeleteImageImportMethod()) + .addMethod(getListImageImportJobsMethod()) + .addMethod(getGetImageImportJobMethod()) + .addMethod(getCancelImageImportJobMethod()) + .addMethod(getCreateDiskMigrationJobMethod()) + .addMethod(getListDiskMigrationJobsMethod()) + .addMethod(getGetDiskMigrationJobMethod()) + .addMethod(getUpdateDiskMigrationJobMethod()) + .addMethod(getDeleteDiskMigrationJobMethod()) + .addMethod(getRunDiskMigrationJobMethod()) + .addMethod(getCancelDiskMigrationJobMethod()) .build(); } } diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AvailableUpdates.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AvailableUpdates.java index 861374b36606..10c6d0810b5f 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AvailableUpdates.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AvailableUpdates.java @@ -23,7 +23,7 @@ * * *
        - * Holds informatiom about the available versions for upgrade.
        + * Holds information about the available versions for upgrade.
          * 
        * * Protobuf type {@code google.cloud.vmmigration.v1.AvailableUpdates} @@ -366,7 +366,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
        -   * Holds informatiom about the available versions for upgrade.
        +   * Holds information about the available versions for upgrade.
            * 
        * * Protobuf type {@code google.cloud.vmmigration.v1.AvailableUpdates} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AwsSourceDetails.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AwsSourceDetails.java index 6196c9c34a67..3ab72e476751 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AwsSourceDetails.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AwsSourceDetails.java @@ -325,6 +325,36 @@ public interface AccessKeyCredentialsOrBuilder * @return The bytes for secretAccessKey. */ com.google.protobuf.ByteString getSecretAccessKeyBytes(); + + /** + * + * + *
        +     * Input only. AWS session token.
        +     * Used only when AWS security token service (STS) is responsible for
        +     * creating the temporary credentials.
        +     * 
        + * + * string session_token = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The sessionToken. + */ + java.lang.String getSessionToken(); + + /** + * + * + *
        +     * Input only. AWS session token.
        +     * Used only when AWS security token service (STS) is responsible for
        +     * creating the temporary credentials.
        +     * 
        + * + * string session_token = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The bytes for sessionToken. + */ + com.google.protobuf.ByteString getSessionTokenBytes(); } /** @@ -350,6 +380,7 @@ private AccessKeyCredentials(com.google.protobuf.GeneratedMessageV3.Builder b private AccessKeyCredentials() { accessKeyId_ = ""; secretAccessKey_ = ""; + sessionToken_ = ""; } @java.lang.Override @@ -479,6 +510,63 @@ public com.google.protobuf.ByteString getSecretAccessKeyBytes() { } } + public static final int SESSION_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object sessionToken_ = ""; + + /** + * + * + *
        +     * Input only. AWS session token.
        +     * Used only when AWS security token service (STS) is responsible for
        +     * creating the temporary credentials.
        +     * 
        + * + * string session_token = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The sessionToken. + */ + @java.lang.Override + public java.lang.String getSessionToken() { + java.lang.Object ref = sessionToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sessionToken_ = s; + return s; + } + } + + /** + * + * + *
        +     * Input only. AWS session token.
        +     * Used only when AWS security token service (STS) is responsible for
        +     * creating the temporary credentials.
        +     * 
        + * + * string session_token = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The bytes for sessionToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSessionTokenBytes() { + java.lang.Object ref = sessionToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sessionToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -499,6 +587,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secretAccessKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, secretAccessKey_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sessionToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sessionToken_); + } getUnknownFields().writeTo(output); } @@ -514,6 +605,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secretAccessKey_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, secretAccessKey_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sessionToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sessionToken_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -532,6 +626,7 @@ public boolean equals(final java.lang.Object obj) { if (!getAccessKeyId().equals(other.getAccessKeyId())) return false; if (!getSecretAccessKey().equals(other.getSecretAccessKey())) return false; + if (!getSessionToken().equals(other.getSessionToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -547,6 +642,8 @@ public int hashCode() { hash = (53 * hash) + getAccessKeyId().hashCode(); hash = (37 * hash) + SECRET_ACCESS_KEY_FIELD_NUMBER; hash = (53 * hash) + getSecretAccessKey().hashCode(); + hash = (37 * hash) + SESSION_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getSessionToken().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -695,6 +792,7 @@ public Builder clear() { bitField0_ = 0; accessKeyId_ = ""; secretAccessKey_ = ""; + sessionToken_ = ""; return this; } @@ -741,6 +839,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000002) != 0)) { result.secretAccessKey_ = secretAccessKey_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.sessionToken_ = sessionToken_; + } } @java.lang.Override @@ -805,6 +906,11 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; onChanged(); } + if (!other.getSessionToken().isEmpty()) { + sessionToken_ = other.sessionToken_; + bitField0_ |= 0x00000004; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -843,6 +949,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 26: + { + sessionToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1084,6 +1196,127 @@ public Builder setSecretAccessKeyBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object sessionToken_ = ""; + + /** + * + * + *
        +       * Input only. AWS session token.
        +       * Used only when AWS security token service (STS) is responsible for
        +       * creating the temporary credentials.
        +       * 
        + * + * string session_token = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The sessionToken. + */ + public java.lang.String getSessionToken() { + java.lang.Object ref = sessionToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sessionToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +       * Input only. AWS session token.
        +       * Used only when AWS security token service (STS) is responsible for
        +       * creating the temporary credentials.
        +       * 
        + * + * string session_token = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The bytes for sessionToken. + */ + public com.google.protobuf.ByteString getSessionTokenBytes() { + java.lang.Object ref = sessionToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sessionToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +       * Input only. AWS session token.
        +       * Used only when AWS security token service (STS) is responsible for
        +       * creating the temporary credentials.
        +       * 
        + * + * string session_token = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @param value The sessionToken to set. + * @return This builder for chaining. + */ + public Builder setSessionToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sessionToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +       * Input only. AWS session token.
        +       * Used only when AWS security token service (STS) is responsible for
        +       * creating the temporary credentials.
        +       * 
        + * + * string session_token = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSessionToken() { + sessionToken_ = getDefaultInstance().getSessionToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
        +       * Input only. AWS session token.
        +       * Used only when AWS security token service (STS) is responsible for
        +       * creating the temporary credentials.
        +       * 
        + * + * string session_token = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @param value The bytes for sessionToken to set. + * @return This builder for chaining. + */ + public Builder setSessionTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sessionToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1161,10 +1394,10 @@ public interface TagOrBuilder * * *
        -     * Key of tag.
        +     * Required. Key of tag.
              * 
        * - * string key = 1; + * string key = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The key. */ @@ -1174,10 +1407,10 @@ public interface TagOrBuilder * * *
        -     * Key of tag.
        +     * Required. Key of tag.
              * 
        * - * string key = 1; + * string key = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for key. */ @@ -1187,10 +1420,10 @@ public interface TagOrBuilder * * *
        -     * Value of tag.
        +     * Required. Value of tag.
              * 
        * - * string value = 2; + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The value. */ @@ -1200,10 +1433,10 @@ public interface TagOrBuilder * * *
        -     * Value of tag.
        +     * Required. Value of tag.
              * 
        * - * string value = 2; + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for value. */ @@ -1265,10 +1498,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
        -     * Key of tag.
        +     * Required. Key of tag.
              * 
        * - * string key = 1; + * string key = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The key. */ @@ -1289,10 +1522,10 @@ public java.lang.String getKey() { * * *
        -     * Key of tag.
        +     * Required. Key of tag.
              * 
        * - * string key = 1; + * string key = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for key. */ @@ -1318,10 +1551,10 @@ public com.google.protobuf.ByteString getKeyBytes() { * * *
        -     * Value of tag.
        +     * Required. Value of tag.
              * 
        * - * string value = 2; + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The value. */ @@ -1342,10 +1575,10 @@ public java.lang.String getValue() { * * *
        -     * Value of tag.
        +     * Required. Value of tag.
              * 
        * - * string value = 2; + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for value. */ @@ -1740,10 +1973,10 @@ public Builder mergeFrom( * * *
        -       * Key of tag.
        +       * Required. Key of tag.
                * 
        * - * string key = 1; + * string key = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The key. */ @@ -1763,10 +1996,10 @@ public java.lang.String getKey() { * * *
        -       * Key of tag.
        +       * Required. Key of tag.
                * 
        * - * string key = 1; + * string key = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for key. */ @@ -1786,10 +2019,10 @@ public com.google.protobuf.ByteString getKeyBytes() { * * *
        -       * Key of tag.
        +       * Required. Key of tag.
                * 
        * - * string key = 1; + * string key = 1 [(.google.api.field_behavior) = REQUIRED]; * * @param value The key to set. * @return This builder for chaining. @@ -1808,10 +2041,10 @@ public Builder setKey(java.lang.String value) { * * *
        -       * Key of tag.
        +       * Required. Key of tag.
                * 
        * - * string key = 1; + * string key = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ @@ -1826,10 +2059,10 @@ public Builder clearKey() { * * *
        -       * Key of tag.
        +       * Required. Key of tag.
                * 
        * - * string key = 1; + * string key = 1 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for key to set. * @return This builder for chaining. @@ -1851,10 +2084,10 @@ public Builder setKeyBytes(com.google.protobuf.ByteString value) { * * *
        -       * Value of tag.
        +       * Required. Value of tag.
                * 
        * - * string value = 2; + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The value. */ @@ -1874,10 +2107,10 @@ public java.lang.String getValue() { * * *
        -       * Value of tag.
        +       * Required. Value of tag.
                * 
        * - * string value = 2; + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for value. */ @@ -1897,10 +2130,10 @@ public com.google.protobuf.ByteString getValueBytes() { * * *
        -       * Value of tag.
        +       * Required. Value of tag.
                * 
        * - * string value = 2; + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; * * @param value The value to set. * @return This builder for chaining. @@ -1919,10 +2152,10 @@ public Builder setValue(java.lang.String value) { * * *
        -       * Value of tag.
        +       * Required. Value of tag.
                * 
        * - * string value = 2; + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ @@ -1937,10 +2170,10 @@ public Builder clearValue() { * * *
        -       * Value of tag.
        +       * Required. Value of tag.
                * 
        * - * string value = 2; + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for value to set. * @return This builder for chaining. diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AwsSourceDiskDetails.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AwsSourceDiskDetails.java new file mode 100644 index 000000000000..a7fb6f192b0b --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AwsSourceDiskDetails.java @@ -0,0 +1,1550 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * Represents the source AWS Disk details.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.AwsSourceDiskDetails} + */ +public final class AwsSourceDiskDetails extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.AwsSourceDiskDetails) + AwsSourceDiskDetailsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use AwsSourceDiskDetails.newBuilder() to construct. + private AwsSourceDiskDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AwsSourceDiskDetails() { + volumeId_ = ""; + diskType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AwsSourceDiskDetails(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AwsSourceDiskDetails_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetTags(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AwsSourceDiskDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.AwsSourceDiskDetails.class, + com.google.cloud.vmmigration.v1.AwsSourceDiskDetails.Builder.class); + } + + /** + * + * + *
        +   * Possible values for disk types.
        +   * 
        + * + * Protobuf enum {@code google.cloud.vmmigration.v1.AwsSourceDiskDetails.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
        +     * Unspecified AWS disk type. Should not be used.
        +     * 
        + * + * TYPE_UNSPECIFIED = 0; + */ + TYPE_UNSPECIFIED(0), + /** + * + * + *
        +     * GP2 disk type.
        +     * 
        + * + * GP2 = 1; + */ + GP2(1), + /** + * + * + *
        +     * GP3 disk type.
        +     * 
        + * + * GP3 = 2; + */ + GP3(2), + /** + * + * + *
        +     * IO1 disk type.
        +     * 
        + * + * IO1 = 3; + */ + IO1(3), + /** + * + * + *
        +     * IO2 disk type.
        +     * 
        + * + * IO2 = 4; + */ + IO2(4), + /** + * + * + *
        +     * ST1 disk type.
        +     * 
        + * + * ST1 = 5; + */ + ST1(5), + /** + * + * + *
        +     * SC1 disk type.
        +     * 
        + * + * SC1 = 6; + */ + SC1(6), + /** + * + * + *
        +     * Standard disk type.
        +     * 
        + * + * STANDARD = 7; + */ + STANDARD(7), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
        +     * Unspecified AWS disk type. Should not be used.
        +     * 
        + * + * TYPE_UNSPECIFIED = 0; + */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
        +     * GP2 disk type.
        +     * 
        + * + * GP2 = 1; + */ + public static final int GP2_VALUE = 1; + + /** + * + * + *
        +     * GP3 disk type.
        +     * 
        + * + * GP3 = 2; + */ + public static final int GP3_VALUE = 2; + + /** + * + * + *
        +     * IO1 disk type.
        +     * 
        + * + * IO1 = 3; + */ + public static final int IO1_VALUE = 3; + + /** + * + * + *
        +     * IO2 disk type.
        +     * 
        + * + * IO2 = 4; + */ + public static final int IO2_VALUE = 4; + + /** + * + * + *
        +     * ST1 disk type.
        +     * 
        + * + * ST1 = 5; + */ + public static final int ST1_VALUE = 5; + + /** + * + * + *
        +     * SC1 disk type.
        +     * 
        + * + * SC1 = 6; + */ + public static final int SC1_VALUE = 6; + + /** + * + * + *
        +     * Standard disk type.
        +     * 
        + * + * STANDARD = 7; + */ + public static final int STANDARD_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 Type valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Type forNumber(int value) { + switch (value) { + case 0: + return TYPE_UNSPECIFIED; + case 1: + return GP2; + case 2: + return GP3; + case 3: + return IO1; + case 4: + return IO2; + case 5: + return ST1; + case 6: + return SC1; + case 7: + return 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 Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.AwsSourceDiskDetails.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.vmmigration.v1.AwsSourceDiskDetails.Type) + } + + public static final int VOLUME_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object volumeId_ = ""; + + /** + * + * + *
        +   * Required. AWS volume ID.
        +   * 
        + * + * string volume_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The volumeId. + */ + @java.lang.Override + public java.lang.String getVolumeId() { + java.lang.Object ref = volumeId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + volumeId_ = s; + return s; + } + } + + /** + * + * + *
        +   * Required. AWS volume ID.
        +   * 
        + * + * string volume_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for volumeId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVolumeIdBytes() { + java.lang.Object ref = volumeId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + volumeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SIZE_GIB_FIELD_NUMBER = 2; + private long sizeGib_ = 0L; + + /** + * + * + *
        +   * Output only. Size in GiB.
        +   * 
        + * + * int64 size_gib = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sizeGib. + */ + @java.lang.Override + public long getSizeGib() { + return sizeGib_; + } + + public static final int DISK_TYPE_FIELD_NUMBER = 3; + private int diskType_ = 0; + + /** + * + * + *
        +   * Optional. Output only. Disk type.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.AwsSourceDiskDetails.Type disk_type = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for diskType. + */ + @java.lang.Override + public int getDiskTypeValue() { + return diskType_; + } + + /** + * + * + *
        +   * Optional. Output only. Disk type.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.AwsSourceDiskDetails.Type disk_type = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The diskType. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.AwsSourceDiskDetails.Type getDiskType() { + com.google.cloud.vmmigration.v1.AwsSourceDiskDetails.Type result = + com.google.cloud.vmmigration.v1.AwsSourceDiskDetails.Type.forNumber(diskType_); + return result == null + ? com.google.cloud.vmmigration.v1.AwsSourceDiskDetails.Type.UNRECOGNIZED + : result; + } + + public static final int TAGS_FIELD_NUMBER = 4; + + private static final class TagsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AwsSourceDiskDetails_TagsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField tags_; + + private com.google.protobuf.MapField internalGetTags() { + if (tags_ == null) { + return com.google.protobuf.MapField.emptyMapField(TagsDefaultEntryHolder.defaultEntry); + } + return tags_; + } + + public int getTagsCount() { + return internalGetTags().getMap().size(); + } + + /** + * + * + *
        +   * Optional. Output only. A map of AWS volume tags.
        +   * 
        + * + * + * map<string, string> tags = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetTags().getMap().containsKey(key); + } + + /** Use {@link #getTagsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getTags() { + return getTagsMap(); + } + + /** + * + * + *
        +   * Optional. Output only. A map of AWS volume tags.
        +   * 
        + * + * + * map<string, string> tags = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map getTagsMap() { + return internalGetTags().getMap(); + } + + /** + * + * + *
        +   * Optional. Output only. A map of AWS volume tags.
        +   * 
        + * + * + * map<string, string> tags = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getTagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTags().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
        +   * Optional. Output only. A map of AWS volume tags.
        +   * 
        + * + * + * map<string, string> tags = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.lang.String getTagsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTags().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(volumeId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, volumeId_); + } + if (sizeGib_ != 0L) { + output.writeInt64(2, sizeGib_); + } + if (diskType_ + != com.google.cloud.vmmigration.v1.AwsSourceDiskDetails.Type.TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(3, diskType_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetTags(), TagsDefaultEntryHolder.defaultEntry, 4); + 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(volumeId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, volumeId_); + } + if (sizeGib_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, sizeGib_); + } + if (diskType_ + != com.google.cloud.vmmigration.v1.AwsSourceDiskDetails.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, diskType_); + } + for (java.util.Map.Entry entry : + internalGetTags().getMap().entrySet()) { + com.google.protobuf.MapEntry tags__ = + TagsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, tags__); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.vmmigration.v1.AwsSourceDiskDetails)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.AwsSourceDiskDetails other = + (com.google.cloud.vmmigration.v1.AwsSourceDiskDetails) obj; + + if (!getVolumeId().equals(other.getVolumeId())) return false; + if (getSizeGib() != other.getSizeGib()) return false; + if (diskType_ != other.diskType_) return false; + if (!internalGetTags().equals(other.internalGetTags())) 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) + VOLUME_ID_FIELD_NUMBER; + hash = (53 * hash) + getVolumeId().hashCode(); + hash = (37 * hash) + SIZE_GIB_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSizeGib()); + hash = (37 * hash) + DISK_TYPE_FIELD_NUMBER; + hash = (53 * hash) + diskType_; + if (!internalGetTags().getMap().isEmpty()) { + hash = (37 * hash) + TAGS_FIELD_NUMBER; + hash = (53 * hash) + internalGetTags().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.AwsSourceDiskDetails parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.AwsSourceDiskDetails 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.vmmigration.v1.AwsSourceDiskDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.AwsSourceDiskDetails parseFrom( + 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.vmmigration.v1.AwsSourceDiskDetails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.AwsSourceDiskDetails parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.AwsSourceDiskDetails parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.AwsSourceDiskDetails 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.vmmigration.v1.AwsSourceDiskDetails parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.AwsSourceDiskDetails 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.vmmigration.v1.AwsSourceDiskDetails parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.AwsSourceDiskDetails 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.vmmigration.v1.AwsSourceDiskDetails prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * Represents the source AWS Disk details.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.AwsSourceDiskDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.AwsSourceDiskDetails) + com.google.cloud.vmmigration.v1.AwsSourceDiskDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AwsSourceDiskDetails_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetTags(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetMutableTags(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AwsSourceDiskDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.AwsSourceDiskDetails.class, + com.google.cloud.vmmigration.v1.AwsSourceDiskDetails.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.AwsSourceDiskDetails.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + volumeId_ = ""; + sizeGib_ = 0L; + diskType_ = 0; + internalGetMutableTags().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AwsSourceDiskDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.AwsSourceDiskDetails getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.AwsSourceDiskDetails.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.AwsSourceDiskDetails build() { + com.google.cloud.vmmigration.v1.AwsSourceDiskDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.AwsSourceDiskDetails buildPartial() { + com.google.cloud.vmmigration.v1.AwsSourceDiskDetails result = + new com.google.cloud.vmmigration.v1.AwsSourceDiskDetails(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vmmigration.v1.AwsSourceDiskDetails result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.volumeId_ = volumeId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sizeGib_ = sizeGib_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.diskType_ = diskType_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.tags_ = internalGetTags(); + result.tags_.makeImmutable(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmmigration.v1.AwsSourceDiskDetails) { + return mergeFrom((com.google.cloud.vmmigration.v1.AwsSourceDiskDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.AwsSourceDiskDetails other) { + if (other == com.google.cloud.vmmigration.v1.AwsSourceDiskDetails.getDefaultInstance()) + return this; + if (!other.getVolumeId().isEmpty()) { + volumeId_ = other.volumeId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getSizeGib() != 0L) { + setSizeGib(other.getSizeGib()); + } + if (other.diskType_ != 0) { + setDiskTypeValue(other.getDiskTypeValue()); + } + internalGetMutableTags().mergeFrom(other.internalGetTags()); + bitField0_ |= 0x00000008; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + volumeId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + sizeGib_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + diskType_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + com.google.protobuf.MapEntry tags__ = + input.readMessage( + TagsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableTags().getMutableMap().put(tags__.getKey(), tags__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object volumeId_ = ""; + + /** + * + * + *
        +     * Required. AWS volume ID.
        +     * 
        + * + * string volume_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The volumeId. + */ + public java.lang.String getVolumeId() { + java.lang.Object ref = volumeId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + volumeId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Required. AWS volume ID.
        +     * 
        + * + * string volume_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for volumeId. + */ + public com.google.protobuf.ByteString getVolumeIdBytes() { + java.lang.Object ref = volumeId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + volumeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Required. AWS volume ID.
        +     * 
        + * + * string volume_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The volumeId to set. + * @return This builder for chaining. + */ + public Builder setVolumeId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + volumeId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. AWS volume ID.
        +     * 
        + * + * string volume_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearVolumeId() { + volumeId_ = getDefaultInstance().getVolumeId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. AWS volume ID.
        +     * 
        + * + * string volume_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for volumeId to set. + * @return This builder for chaining. + */ + public Builder setVolumeIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + volumeId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private long sizeGib_; + + /** + * + * + *
        +     * Output only. Size in GiB.
        +     * 
        + * + * int64 size_gib = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sizeGib. + */ + @java.lang.Override + public long getSizeGib() { + return sizeGib_; + } + + /** + * + * + *
        +     * Output only. Size in GiB.
        +     * 
        + * + * int64 size_gib = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The sizeGib to set. + * @return This builder for chaining. + */ + public Builder setSizeGib(long value) { + + sizeGib_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. Size in GiB.
        +     * 
        + * + * int64 size_gib = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSizeGib() { + bitField0_ = (bitField0_ & ~0x00000002); + sizeGib_ = 0L; + onChanged(); + return this; + } + + private int diskType_ = 0; + + /** + * + * + *
        +     * Optional. Output only. Disk type.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.AwsSourceDiskDetails.Type disk_type = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for diskType. + */ + @java.lang.Override + public int getDiskTypeValue() { + return diskType_; + } + + /** + * + * + *
        +     * Optional. Output only. Disk type.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.AwsSourceDiskDetails.Type disk_type = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for diskType to set. + * @return This builder for chaining. + */ + public Builder setDiskTypeValue(int value) { + diskType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Output only. Disk type.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.AwsSourceDiskDetails.Type disk_type = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The diskType. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.AwsSourceDiskDetails.Type getDiskType() { + com.google.cloud.vmmigration.v1.AwsSourceDiskDetails.Type result = + com.google.cloud.vmmigration.v1.AwsSourceDiskDetails.Type.forNumber(diskType_); + return result == null + ? com.google.cloud.vmmigration.v1.AwsSourceDiskDetails.Type.UNRECOGNIZED + : result; + } + + /** + * + * + *
        +     * Optional. Output only. Disk type.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.AwsSourceDiskDetails.Type disk_type = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The diskType to set. + * @return This builder for chaining. + */ + public Builder setDiskType(com.google.cloud.vmmigration.v1.AwsSourceDiskDetails.Type value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + diskType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Output only. Disk type.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.AwsSourceDiskDetails.Type disk_type = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearDiskType() { + bitField0_ = (bitField0_ & ~0x00000004); + diskType_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.MapField tags_; + + private com.google.protobuf.MapField internalGetTags() { + if (tags_ == null) { + return com.google.protobuf.MapField.emptyMapField(TagsDefaultEntryHolder.defaultEntry); + } + return tags_; + } + + private com.google.protobuf.MapField + internalGetMutableTags() { + if (tags_ == null) { + tags_ = com.google.protobuf.MapField.newMapField(TagsDefaultEntryHolder.defaultEntry); + } + if (!tags_.isMutable()) { + tags_ = tags_.copy(); + } + bitField0_ |= 0x00000008; + onChanged(); + return tags_; + } + + public int getTagsCount() { + return internalGetTags().getMap().size(); + } + + /** + * + * + *
        +     * Optional. Output only. A map of AWS volume tags.
        +     * 
        + * + * + * map<string, string> tags = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetTags().getMap().containsKey(key); + } + + /** Use {@link #getTagsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getTags() { + return getTagsMap(); + } + + /** + * + * + *
        +     * Optional. Output only. A map of AWS volume tags.
        +     * 
        + * + * + * map<string, string> tags = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map getTagsMap() { + return internalGetTags().getMap(); + } + + /** + * + * + *
        +     * Optional. Output only. A map of AWS volume tags.
        +     * 
        + * + * + * map<string, string> tags = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getTagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTags().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
        +     * Optional. Output only. A map of AWS volume tags.
        +     * 
        + * + * + * map<string, string> tags = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.lang.String getTagsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTags().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearTags() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableTags().getMutableMap().clear(); + return this; + } + + /** + * + * + *
        +     * Optional. Output only. A map of AWS volume tags.
        +     * 
        + * + * + * map<string, string> tags = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableTags().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableTags() { + bitField0_ |= 0x00000008; + return internalGetMutableTags().getMutableMap(); + } + + /** + * + * + *
        +     * Optional. Output only. A map of AWS volume tags.
        +     * 
        + * + * + * map<string, string> tags = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putTags(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableTags().getMutableMap().put(key, value); + bitField0_ |= 0x00000008; + return this; + } + + /** + * + * + *
        +     * Optional. Output only. A map of AWS volume tags.
        +     * 
        + * + * + * map<string, string> tags = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putAllTags(java.util.Map values) { + internalGetMutableTags().getMutableMap().putAll(values); + bitField0_ |= 0x00000008; + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmmigration.v1.AwsSourceDiskDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.AwsSourceDiskDetails) + private static final com.google.cloud.vmmigration.v1.AwsSourceDiskDetails DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.AwsSourceDiskDetails(); + } + + public static com.google.cloud.vmmigration.v1.AwsSourceDiskDetails getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AwsSourceDiskDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.AwsSourceDiskDetails getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AwsSourceDiskDetailsOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AwsSourceDiskDetailsOrBuilder.java new file mode 100644 index 000000000000..ad687d0679a0 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AwsSourceDiskDetailsOrBuilder.java @@ -0,0 +1,168 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface AwsSourceDiskDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.AwsSourceDiskDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Required. AWS volume ID.
        +   * 
        + * + * string volume_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The volumeId. + */ + java.lang.String getVolumeId(); + + /** + * + * + *
        +   * Required. AWS volume ID.
        +   * 
        + * + * string volume_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for volumeId. + */ + com.google.protobuf.ByteString getVolumeIdBytes(); + + /** + * + * + *
        +   * Output only. Size in GiB.
        +   * 
        + * + * int64 size_gib = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sizeGib. + */ + long getSizeGib(); + + /** + * + * + *
        +   * Optional. Output only. Disk type.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.AwsSourceDiskDetails.Type disk_type = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for diskType. + */ + int getDiskTypeValue(); + + /** + * + * + *
        +   * Optional. Output only. Disk type.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.AwsSourceDiskDetails.Type disk_type = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The diskType. + */ + com.google.cloud.vmmigration.v1.AwsSourceDiskDetails.Type getDiskType(); + + /** + * + * + *
        +   * Optional. Output only. A map of AWS volume tags.
        +   * 
        + * + * + * map<string, string> tags = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getTagsCount(); + + /** + * + * + *
        +   * Optional. Output only. A map of AWS volume tags.
        +   * 
        + * + * + * map<string, string> tags = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + boolean containsTags(java.lang.String key); + + /** Use {@link #getTagsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getTags(); + + /** + * + * + *
        +   * Optional. Output only. A map of AWS volume tags.
        +   * 
        + * + * + * map<string, string> tags = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.Map getTagsMap(); + + /** + * + * + *
        +   * Optional. Output only. A map of AWS volume tags.
        +   * 
        + * + * + * map<string, string> tags = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + /* nullable */ + java.lang.String getTagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
        +   * Optional. Output only. A map of AWS volume tags.
        +   * 
        + * + * + * map<string, string> tags = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.lang.String getTagsOrThrow(java.lang.String key); +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AwsSourceVmDetails.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AwsSourceVmDetails.java index 17baec9593c5..efc55cbf1af0 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AwsSourceVmDetails.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AwsSourceVmDetails.java @@ -41,6 +41,8 @@ private AwsSourceVmDetails(com.google.protobuf.GeneratedMessageV3.Builder bui private AwsSourceVmDetails() { firmware_ = 0; + disks_ = java.util.Collections.emptyList(); + architecture_ = 0; } @java.lang.Override @@ -225,562 +227,2548 @@ private Firmware(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.vmmigration.v1.AwsSourceVmDetails.Firmware) } - public static final int FIRMWARE_FIELD_NUMBER = 1; - private int firmware_ = 0; + public interface AwsDiskDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails) + com.google.protobuf.MessageOrBuilder { - /** - * - * - *
        -   * The firmware type of the source VM.
        -   * 
        - * - * .google.cloud.vmmigration.v1.AwsSourceVmDetails.Firmware firmware = 1; - * - * @return The enum numeric value on the wire for firmware. - */ - @java.lang.Override - public int getFirmwareValue() { - return firmware_; - } + /** + * + * + *
        +     * Output only. The ordinal number of the disk.
        +     * 
        + * + * int32 disk_number = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The diskNumber. + */ + int getDiskNumber(); - /** - * - * - *
        -   * The firmware type of the source VM.
        -   * 
        - * - * .google.cloud.vmmigration.v1.AwsSourceVmDetails.Firmware firmware = 1; - * - * @return The firmware. - */ - @java.lang.Override - public com.google.cloud.vmmigration.v1.AwsSourceVmDetails.Firmware getFirmware() { - com.google.cloud.vmmigration.v1.AwsSourceVmDetails.Firmware result = - com.google.cloud.vmmigration.v1.AwsSourceVmDetails.Firmware.forNumber(firmware_); - return result == null - ? com.google.cloud.vmmigration.v1.AwsSourceVmDetails.Firmware.UNRECOGNIZED - : result; - } + /** + * + * + *
        +     * Output only. AWS volume ID.
        +     * 
        + * + * string volume_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The volumeId. + */ + java.lang.String getVolumeId(); - public static final int COMMITTED_STORAGE_BYTES_FIELD_NUMBER = 2; - private long committedStorageBytes_ = 0L; + /** + * + * + *
        +     * Output only. AWS volume ID.
        +     * 
        + * + * string volume_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for volumeId. + */ + com.google.protobuf.ByteString getVolumeIdBytes(); + + /** + * + * + *
        +     * Output only. Size in GB.
        +     * 
        + * + * int64 size_gb = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sizeGb. + */ + long getSizeGb(); + } /** * * *
        -   * The total size of the disks being migrated in bytes.
        +   * The details of an AWS instance disk.
            * 
        * - * int64 committed_storage_bytes = 2; - * - * @return The committedStorageBytes. + * Protobuf type {@code google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails} */ - @java.lang.Override - public long getCommittedStorageBytes() { - return committedStorageBytes_; - } + public static final class AwsDiskDetails extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails) + AwsDiskDetailsOrBuilder { + private static final long serialVersionUID = 0L; - private byte memoizedIsInitialized = -1; + // Use AwsDiskDetails.newBuilder() to construct. + private AwsDiskDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private AwsDiskDetails() { + volumeId_ = ""; + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AwsDiskDetails(); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (firmware_ - != com.google.cloud.vmmigration.v1.AwsSourceVmDetails.Firmware.FIRMWARE_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, firmware_); + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AwsSourceVmDetails_AwsDiskDetails_descriptor; } - if (committedStorageBytes_ != 0L) { - output.writeInt64(2, committedStorageBytes_); + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AwsSourceVmDetails_AwsDiskDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails.class, + com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails.Builder.class); } - getUnknownFields().writeTo(output); - } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + public static final int DISK_NUMBER_FIELD_NUMBER = 1; + private int diskNumber_ = 0; - size = 0; - if (firmware_ - != com.google.cloud.vmmigration.v1.AwsSourceVmDetails.Firmware.FIRMWARE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, firmware_); + /** + * + * + *
        +     * Output only. The ordinal number of the disk.
        +     * 
        + * + * int32 disk_number = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The diskNumber. + */ + @java.lang.Override + public int getDiskNumber() { + return diskNumber_; } - if (committedStorageBytes_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, committedStorageBytes_); + + public static final int VOLUME_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object volumeId_ = ""; + + /** + * + * + *
        +     * Output only. AWS volume ID.
        +     * 
        + * + * string volume_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The volumeId. + */ + @java.lang.Override + public java.lang.String getVolumeId() { + java.lang.Object ref = volumeId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + volumeId_ = s; + return s; + } } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + /** + * + * + *
        +     * Output only. AWS volume ID.
        +     * 
        + * + * string volume_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for volumeId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVolumeIdBytes() { + java.lang.Object ref = volumeId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + volumeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - if (!(obj instanceof com.google.cloud.vmmigration.v1.AwsSourceVmDetails)) { - return super.equals(obj); + + public static final int SIZE_GB_FIELD_NUMBER = 3; + private long sizeGb_ = 0L; + + /** + * + * + *
        +     * Output only. Size in GB.
        +     * 
        + * + * int64 size_gb = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sizeGb. + */ + @java.lang.Override + public long getSizeGb() { + return sizeGb_; } - com.google.cloud.vmmigration.v1.AwsSourceVmDetails other = - (com.google.cloud.vmmigration.v1.AwsSourceVmDetails) obj; - if (firmware_ != other.firmware_) return false; - if (getCommittedStorageBytes() != other.getCommittedStorageBytes()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + private byte memoizedIsInitialized = -1; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + FIRMWARE_FIELD_NUMBER; - hash = (53 * hash) + firmware_; - hash = (37 * hash) + COMMITTED_STORAGE_BYTES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCommittedStorageBytes()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - public static com.google.cloud.vmmigration.v1.AwsSourceVmDetails parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (diskNumber_ != 0) { + output.writeInt32(1, diskNumber_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(volumeId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, volumeId_); + } + if (sizeGb_ != 0L) { + output.writeInt64(3, sizeGb_); + } + getUnknownFields().writeTo(output); + } - public static com.google.cloud.vmmigration.v1.AwsSourceVmDetails parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public static com.google.cloud.vmmigration.v1.AwsSourceVmDetails parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + size = 0; + if (diskNumber_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, diskNumber_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(volumeId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, volumeId_); + } + if (sizeGb_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, sizeGb_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - public static com.google.cloud.vmmigration.v1.AwsSourceVmDetails parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails other = + (com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails) obj; - public static com.google.cloud.vmmigration.v1.AwsSourceVmDetails parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + if (getDiskNumber() != other.getDiskNumber()) return false; + if (!getVolumeId().equals(other.getVolumeId())) return false; + if (getSizeGb() != other.getSizeGb()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - public static com.google.cloud.vmmigration.v1.AwsSourceVmDetails parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DISK_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getDiskNumber(); + hash = (37 * hash) + VOLUME_ID_FIELD_NUMBER; + hash = (53 * hash) + getVolumeId().hashCode(); + hash = (37 * hash) + SIZE_GB_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSizeGb()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - public static com.google.cloud.vmmigration.v1.AwsSourceVmDetails parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + public static com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static com.google.cloud.vmmigration.v1.AwsSourceVmDetails 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.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails 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.vmmigration.v1.AwsSourceVmDetails parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } + public static com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static com.google.cloud.vmmigration.v1.AwsSourceVmDetails 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.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails parseFrom( + 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.vmmigration.v1.AwsSourceVmDetails parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + public static com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static com.google.cloud.vmmigration.v1.AwsSourceVmDetails 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 com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + public static com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + public static com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails 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 Builder newBuilder(com.google.cloud.vmmigration.v1.AwsSourceVmDetails prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + public static com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + public static com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } + public static com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - /** - * - * - *
        -   * Represent the source AWS VM details.
        -   * 
        - * - * Protobuf type {@code google.cloud.vmmigration.v1.AwsSourceVmDetails} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.AwsSourceVmDetails) - com.google.cloud.vmmigration.v1.AwsSourceVmDetailsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vmmigration.v1.VmMigrationProto - .internal_static_google_cloud_vmmigration_v1_AwsSourceVmDetails_descriptor; + public static com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails 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.vmmigration.v1.VmMigrationProto - .internal_static_google_cloud_vmmigration_v1_AwsSourceVmDetails_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.vmmigration.v1.AwsSourceVmDetails.class, - com.google.cloud.vmmigration.v1.AwsSourceVmDetails.Builder.class); + public Builder newBuilderForType() { + return newBuilder(); } - // Construct using com.google.cloud.vmmigration.v1.AwsSourceVmDetails.newBuilder() - private Builder() {} + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); + public static Builder newBuilder( + com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - firmware_ = 0; - committedStorageBytes_ = 0L; - return this; + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vmmigration.v1.VmMigrationProto - .internal_static_google_cloud_vmmigration_v1_AwsSourceVmDetails_descriptor; + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +     * The details of an AWS instance disk.
        +     * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails) + com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AwsSourceVmDetails_AwsDiskDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AwsSourceVmDetails_AwsDiskDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails.class, + com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails.Builder.class); + } + + // Construct using + // com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + diskNumber_ = 0; + volumeId_ = ""; + sizeGb_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AwsSourceVmDetails_AwsDiskDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails + getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails build() { + com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails buildPartial() { + com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails result = + new com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.diskNumber_ = diskNumber_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.volumeId_ = volumeId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.sizeGb_ = sizeGb_; + } + } + + @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.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails) { + return mergeFrom( + (com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails other) { + if (other + == com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails + .getDefaultInstance()) return this; + if (other.getDiskNumber() != 0) { + setDiskNumber(other.getDiskNumber()); + } + if (!other.getVolumeId().isEmpty()) { + volumeId_ = other.volumeId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getSizeGb() != 0L) { + setSizeGb(other.getSizeGb()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + diskNumber_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + volumeId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + sizeGb_ = 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 int diskNumber_; + + /** + * + * + *
        +       * Output only. The ordinal number of the disk.
        +       * 
        + * + * int32 disk_number = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The diskNumber. + */ + @java.lang.Override + public int getDiskNumber() { + return diskNumber_; + } + + /** + * + * + *
        +       * Output only. The ordinal number of the disk.
        +       * 
        + * + * int32 disk_number = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The diskNumber to set. + * @return This builder for chaining. + */ + public Builder setDiskNumber(int value) { + + diskNumber_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +       * Output only. The ordinal number of the disk.
        +       * 
        + * + * int32 disk_number = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDiskNumber() { + bitField0_ = (bitField0_ & ~0x00000001); + diskNumber_ = 0; + onChanged(); + return this; + } + + private java.lang.Object volumeId_ = ""; + + /** + * + * + *
        +       * Output only. AWS volume ID.
        +       * 
        + * + * string volume_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The volumeId. + */ + public java.lang.String getVolumeId() { + java.lang.Object ref = volumeId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + volumeId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +       * Output only. AWS volume ID.
        +       * 
        + * + * string volume_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for volumeId. + */ + public com.google.protobuf.ByteString getVolumeIdBytes() { + java.lang.Object ref = volumeId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + volumeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +       * Output only. AWS volume ID.
        +       * 
        + * + * string volume_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The volumeId to set. + * @return This builder for chaining. + */ + public Builder setVolumeId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + volumeId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +       * Output only. AWS volume ID.
        +       * 
        + * + * string volume_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearVolumeId() { + volumeId_ = getDefaultInstance().getVolumeId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
        +       * Output only. AWS volume ID.
        +       * 
        + * + * string volume_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for volumeId to set. + * @return This builder for chaining. + */ + public Builder setVolumeIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + volumeId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private long sizeGb_; + + /** + * + * + *
        +       * Output only. Size in GB.
        +       * 
        + * + * int64 size_gb = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sizeGb. + */ + @java.lang.Override + public long getSizeGb() { + return sizeGb_; + } + + /** + * + * + *
        +       * Output only. Size in GB.
        +       * 
        + * + * int64 size_gb = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The sizeGb to set. + * @return This builder for chaining. + */ + public Builder setSizeGb(long value) { + + sizeGb_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +       * Output only. Size in GB.
        +       * 
        + * + * int64 size_gb = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSizeGb() { + bitField0_ = (bitField0_ & ~0x00000004); + sizeGb_ = 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.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails) + private static final com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails(); + } + + public static com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AwsDiskDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; } @java.lang.Override - public com.google.cloud.vmmigration.v1.AwsSourceVmDetails getDefaultInstanceForType() { - return com.google.cloud.vmmigration.v1.AwsSourceVmDetails.getDefaultInstance(); + public com.google.protobuf.Parser getParserForType() { + return PARSER; } @java.lang.Override - public com.google.cloud.vmmigration.v1.AwsSourceVmDetails build() { - com.google.cloud.vmmigration.v1.AwsSourceVmDetails result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + public com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int FIRMWARE_FIELD_NUMBER = 1; + private int firmware_ = 0; + + /** + * + * + *
        +   * Output only. The firmware type of the source VM.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.AwsSourceVmDetails.Firmware firmware = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for firmware. + */ + @java.lang.Override + public int getFirmwareValue() { + return firmware_; + } + + /** + * + * + *
        +   * Output only. The firmware type of the source VM.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.AwsSourceVmDetails.Firmware firmware = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The firmware. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.AwsSourceVmDetails.Firmware getFirmware() { + com.google.cloud.vmmigration.v1.AwsSourceVmDetails.Firmware result = + com.google.cloud.vmmigration.v1.AwsSourceVmDetails.Firmware.forNumber(firmware_); + return result == null + ? com.google.cloud.vmmigration.v1.AwsSourceVmDetails.Firmware.UNRECOGNIZED + : result; + } + + public static final int COMMITTED_STORAGE_BYTES_FIELD_NUMBER = 2; + private long committedStorageBytes_ = 0L; + + /** + * + * + *
        +   * Output only. The total size of the disks being migrated in bytes.
        +   * 
        + * + * int64 committed_storage_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The committedStorageBytes. + */ + @java.lang.Override + public long getCommittedStorageBytes() { + return committedStorageBytes_; + } + + public static final int DISKS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List disks_; + + /** + * + * + *
        +   * Output only. The disks attached to the source VM.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getDisksList() { + return disks_; + } + + /** + * + * + *
        +   * Output only. The disks attached to the source VM.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetailsOrBuilder> + getDisksOrBuilderList() { + return disks_; + } + + /** + * + * + *
        +   * Output only. The disks attached to the source VM.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getDisksCount() { + return disks_.size(); + } + + /** + * + * + *
        +   * Output only. The disks attached to the source VM.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails getDisks(int index) { + return disks_.get(index); + } + + /** + * + * + *
        +   * Output only. The disks attached to the source VM.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetailsOrBuilder + getDisksOrBuilder(int index) { + return disks_.get(index); + } + + public static final int VM_CAPABILITIES_INFO_FIELD_NUMBER = 5; + private com.google.cloud.vmmigration.v1.VmCapabilities vmCapabilitiesInfo_; + + /** + * + * + *
        +   * Output only. Information about VM capabilities needed for some Compute
        +   * Engine features.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.VmCapabilities vm_capabilities_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the vmCapabilitiesInfo field is set. + */ + @java.lang.Override + public boolean hasVmCapabilitiesInfo() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
        +   * Output only. Information about VM capabilities needed for some Compute
        +   * Engine features.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.VmCapabilities vm_capabilities_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The vmCapabilitiesInfo. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.VmCapabilities getVmCapabilitiesInfo() { + return vmCapabilitiesInfo_ == null + ? com.google.cloud.vmmigration.v1.VmCapabilities.getDefaultInstance() + : vmCapabilitiesInfo_; + } + + /** + * + * + *
        +   * Output only. Information about VM capabilities needed for some Compute
        +   * Engine features.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.VmCapabilities vm_capabilities_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.VmCapabilitiesOrBuilder getVmCapabilitiesInfoOrBuilder() { + return vmCapabilitiesInfo_ == null + ? com.google.cloud.vmmigration.v1.VmCapabilities.getDefaultInstance() + : vmCapabilitiesInfo_; + } + + public static final int ARCHITECTURE_FIELD_NUMBER = 6; + private int architecture_ = 0; + + /** + * + * + *
        +   * Output only. The VM architecture.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.VmArchitecture architecture = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for architecture. + */ + @java.lang.Override + public int getArchitectureValue() { + return architecture_; + } + + /** + * + * + *
        +   * Output only. The VM architecture.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.VmArchitecture architecture = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The architecture. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.VmArchitecture getArchitecture() { + com.google.cloud.vmmigration.v1.VmArchitecture result = + com.google.cloud.vmmigration.v1.VmArchitecture.forNumber(architecture_); + return result == null ? com.google.cloud.vmmigration.v1.VmArchitecture.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 (firmware_ + != com.google.cloud.vmmigration.v1.AwsSourceVmDetails.Firmware.FIRMWARE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, firmware_); + } + if (committedStorageBytes_ != 0L) { + output.writeInt64(2, committedStorageBytes_); + } + for (int i = 0; i < disks_.size(); i++) { + output.writeMessage(3, disks_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getVmCapabilitiesInfo()); + } + if (architecture_ + != com.google.cloud.vmmigration.v1.VmArchitecture.VM_ARCHITECTURE_UNSPECIFIED.getNumber()) { + output.writeEnum(6, architecture_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (firmware_ + != com.google.cloud.vmmigration.v1.AwsSourceVmDetails.Firmware.FIRMWARE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, firmware_); + } + if (committedStorageBytes_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, committedStorageBytes_); + } + for (int i = 0; i < disks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, disks_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getVmCapabilitiesInfo()); + } + if (architecture_ + != com.google.cloud.vmmigration.v1.VmArchitecture.VM_ARCHITECTURE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, architecture_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.vmmigration.v1.AwsSourceVmDetails)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.AwsSourceVmDetails other = + (com.google.cloud.vmmigration.v1.AwsSourceVmDetails) obj; + + if (firmware_ != other.firmware_) return false; + if (getCommittedStorageBytes() != other.getCommittedStorageBytes()) return false; + if (!getDisksList().equals(other.getDisksList())) return false; + if (hasVmCapabilitiesInfo() != other.hasVmCapabilitiesInfo()) return false; + if (hasVmCapabilitiesInfo()) { + if (!getVmCapabilitiesInfo().equals(other.getVmCapabilitiesInfo())) return false; + } + if (architecture_ != other.architecture_) 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) + FIRMWARE_FIELD_NUMBER; + hash = (53 * hash) + firmware_; + hash = (37 * hash) + COMMITTED_STORAGE_BYTES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCommittedStorageBytes()); + if (getDisksCount() > 0) { + hash = (37 * hash) + DISKS_FIELD_NUMBER; + hash = (53 * hash) + getDisksList().hashCode(); + } + if (hasVmCapabilitiesInfo()) { + hash = (37 * hash) + VM_CAPABILITIES_INFO_FIELD_NUMBER; + hash = (53 * hash) + getVmCapabilitiesInfo().hashCode(); + } + hash = (37 * hash) + ARCHITECTURE_FIELD_NUMBER; + hash = (53 * hash) + architecture_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.AwsSourceVmDetails parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.AwsSourceVmDetails 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.vmmigration.v1.AwsSourceVmDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.AwsSourceVmDetails parseFrom( + 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.vmmigration.v1.AwsSourceVmDetails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.AwsSourceVmDetails parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.AwsSourceVmDetails parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.AwsSourceVmDetails 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.vmmigration.v1.AwsSourceVmDetails parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.AwsSourceVmDetails 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.vmmigration.v1.AwsSourceVmDetails parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.AwsSourceVmDetails 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.vmmigration.v1.AwsSourceVmDetails prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
        +   * Represent the source AWS VM details.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.AwsSourceVmDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.AwsSourceVmDetails) + com.google.cloud.vmmigration.v1.AwsSourceVmDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AwsSourceVmDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AwsSourceVmDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.AwsSourceVmDetails.class, + com.google.cloud.vmmigration.v1.AwsSourceVmDetails.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.AwsSourceVmDetails.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDisksFieldBuilder(); + getVmCapabilitiesInfoFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + firmware_ = 0; + committedStorageBytes_ = 0L; + if (disksBuilder_ == null) { + disks_ = java.util.Collections.emptyList(); + } else { + disks_ = null; + disksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + vmCapabilitiesInfo_ = null; + if (vmCapabilitiesInfoBuilder_ != null) { + vmCapabilitiesInfoBuilder_.dispose(); + vmCapabilitiesInfoBuilder_ = null; + } + architecture_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AwsSourceVmDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.AwsSourceVmDetails getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.AwsSourceVmDetails.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.AwsSourceVmDetails build() { + com.google.cloud.vmmigration.v1.AwsSourceVmDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.AwsSourceVmDetails buildPartial() { + com.google.cloud.vmmigration.v1.AwsSourceVmDetails result = + new com.google.cloud.vmmigration.v1.AwsSourceVmDetails(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.vmmigration.v1.AwsSourceVmDetails result) { + if (disksBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + disks_ = java.util.Collections.unmodifiableList(disks_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.disks_ = disks_; + } else { + result.disks_ = disksBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.vmmigration.v1.AwsSourceVmDetails result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.firmware_ = firmware_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.committedStorageBytes_ = committedStorageBytes_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.vmCapabilitiesInfo_ = + vmCapabilitiesInfoBuilder_ == null + ? vmCapabilitiesInfo_ + : vmCapabilitiesInfoBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.architecture_ = architecture_; + } + 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.vmmigration.v1.AwsSourceVmDetails) { + return mergeFrom((com.google.cloud.vmmigration.v1.AwsSourceVmDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.AwsSourceVmDetails other) { + if (other == com.google.cloud.vmmigration.v1.AwsSourceVmDetails.getDefaultInstance()) + return this; + if (other.firmware_ != 0) { + setFirmwareValue(other.getFirmwareValue()); + } + if (other.getCommittedStorageBytes() != 0L) { + setCommittedStorageBytes(other.getCommittedStorageBytes()); + } + if (disksBuilder_ == null) { + if (!other.disks_.isEmpty()) { + if (disks_.isEmpty()) { + disks_ = other.disks_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureDisksIsMutable(); + disks_.addAll(other.disks_); + } + onChanged(); + } + } else { + if (!other.disks_.isEmpty()) { + if (disksBuilder_.isEmpty()) { + disksBuilder_.dispose(); + disksBuilder_ = null; + disks_ = other.disks_; + bitField0_ = (bitField0_ & ~0x00000004); + disksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDisksFieldBuilder() + : null; + } else { + disksBuilder_.addAllMessages(other.disks_); + } + } + } + if (other.hasVmCapabilitiesInfo()) { + mergeVmCapabilitiesInfo(other.getVmCapabilitiesInfo()); + } + if (other.architecture_ != 0) { + setArchitectureValue(other.getArchitectureValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + firmware_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + committedStorageBytes_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails m = + input.readMessage( + com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails.parser(), + extensionRegistry); + if (disksBuilder_ == null) { + ensureDisksIsMutable(); + disks_.add(m); + } else { + disksBuilder_.addMessage(m); + } + break; + } // case 26 + case 42: + { + input.readMessage( + getVmCapabilitiesInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 48: + { + architecture_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was 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 firmware_ = 0; + + /** + * + * + *
        +     * Output only. The firmware type of the source VM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.AwsSourceVmDetails.Firmware firmware = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for firmware. + */ + @java.lang.Override + public int getFirmwareValue() { + return firmware_; + } + + /** + * + * + *
        +     * Output only. The firmware type of the source VM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.AwsSourceVmDetails.Firmware firmware = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for firmware to set. + * @return This builder for chaining. + */ + public Builder setFirmwareValue(int value) { + firmware_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The firmware type of the source VM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.AwsSourceVmDetails.Firmware firmware = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The firmware. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.AwsSourceVmDetails.Firmware getFirmware() { + com.google.cloud.vmmigration.v1.AwsSourceVmDetails.Firmware result = + com.google.cloud.vmmigration.v1.AwsSourceVmDetails.Firmware.forNumber(firmware_); + return result == null + ? com.google.cloud.vmmigration.v1.AwsSourceVmDetails.Firmware.UNRECOGNIZED + : result; + } + + /** + * + * + *
        +     * Output only. The firmware type of the source VM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.AwsSourceVmDetails.Firmware firmware = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The firmware to set. + * @return This builder for chaining. + */ + public Builder setFirmware(com.google.cloud.vmmigration.v1.AwsSourceVmDetails.Firmware value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + firmware_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The firmware type of the source VM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.AwsSourceVmDetails.Firmware firmware = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearFirmware() { + bitField0_ = (bitField0_ & ~0x00000001); + firmware_ = 0; + onChanged(); + return this; + } + + private long committedStorageBytes_; + + /** + * + * + *
        +     * Output only. The total size of the disks being migrated in bytes.
        +     * 
        + * + * int64 committed_storage_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The committedStorageBytes. + */ + @java.lang.Override + public long getCommittedStorageBytes() { + return committedStorageBytes_; + } + + /** + * + * + *
        +     * Output only. The total size of the disks being migrated in bytes.
        +     * 
        + * + * int64 committed_storage_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The committedStorageBytes to set. + * @return This builder for chaining. + */ + public Builder setCommittedStorageBytes(long value) { + + committedStorageBytes_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The total size of the disks being migrated in bytes.
        +     * 
        + * + * int64 committed_storage_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearCommittedStorageBytes() { + bitField0_ = (bitField0_ & ~0x00000002); + committedStorageBytes_ = 0L; + onChanged(); + return this; + } + + private java.util.List + disks_ = java.util.Collections.emptyList(); + + private void ensureDisksIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + disks_ = + new java.util.ArrayList< + com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails>(disks_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails, + com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails.Builder, + com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetailsOrBuilder> + disksBuilder_; + + /** + * + * + *
        +     * Output only. The disks attached to the source VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getDisksList() { + if (disksBuilder_ == null) { + return java.util.Collections.unmodifiableList(disks_); + } else { + return disksBuilder_.getMessageList(); + } + } + + /** + * + * + *
        +     * Output only. The disks attached to the source VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getDisksCount() { + if (disksBuilder_ == null) { + return disks_.size(); + } else { + return disksBuilder_.getCount(); + } + } + + /** + * + * + *
        +     * Output only. The disks attached to the source VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails getDisks(int index) { + if (disksBuilder_ == null) { + return disks_.get(index); + } else { + return disksBuilder_.getMessage(index); + } + } + + /** + * + * + *
        +     * Output only. The disks attached to the source VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDisks( + int index, com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails value) { + if (disksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDisksIsMutable(); + disks_.set(index, value); + onChanged(); + } else { + disksBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * Output only. The disks attached to the source VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDisks( + int index, + com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails.Builder builderForValue) { + if (disksBuilder_ == null) { + ensureDisksIsMutable(); + disks_.set(index, builderForValue.build()); + onChanged(); + } else { + disksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Output only. The disks attached to the source VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDisks( + com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails value) { + if (disksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDisksIsMutable(); + disks_.add(value); + onChanged(); + } else { + disksBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
        +     * Output only. The disks attached to the source VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDisks( + int index, com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails value) { + if (disksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDisksIsMutable(); + disks_.add(index, value); + onChanged(); + } else { + disksBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * Output only. The disks attached to the source VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDisks( + com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails.Builder builderForValue) { + if (disksBuilder_ == null) { + ensureDisksIsMutable(); + disks_.add(builderForValue.build()); + onChanged(); + } else { + disksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Output only. The disks attached to the source VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDisks( + int index, + com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails.Builder builderForValue) { + if (disksBuilder_ == null) { + ensureDisksIsMutable(); + disks_.add(index, builderForValue.build()); + onChanged(); + } else { + disksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Output only. The disks attached to the source VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllDisks( + java.lang.Iterable< + ? extends com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails> + values) { + if (disksBuilder_ == null) { + ensureDisksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, disks_); + onChanged(); + } else { + disksBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
        +     * Output only. The disks attached to the source VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDisks() { + if (disksBuilder_ == null) { + disks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + disksBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Output only. The disks attached to the source VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeDisks(int index) { + if (disksBuilder_ == null) { + ensureDisksIsMutable(); + disks_.remove(index); + onChanged(); + } else { + disksBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
        +     * Output only. The disks attached to the source VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails.Builder + getDisksBuilder(int index) { + return getDisksFieldBuilder().getBuilder(index); } - @java.lang.Override - public com.google.cloud.vmmigration.v1.AwsSourceVmDetails buildPartial() { - com.google.cloud.vmmigration.v1.AwsSourceVmDetails result = - new com.google.cloud.vmmigration.v1.AwsSourceVmDetails(this); - if (bitField0_ != 0) { - buildPartial0(result); + /** + * + * + *
        +     * Output only. The disks attached to the source VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetailsOrBuilder + getDisksOrBuilder(int index) { + if (disksBuilder_ == null) { + return disks_.get(index); + } else { + return disksBuilder_.getMessageOrBuilder(index); } - onBuilt(); - return result; } - private void buildPartial0(com.google.cloud.vmmigration.v1.AwsSourceVmDetails result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.firmware_ = firmware_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.committedStorageBytes_ = committedStorageBytes_; + /** + * + * + *
        +     * Output only. The disks attached to the source VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetailsOrBuilder> + getDisksOrBuilderList() { + if (disksBuilder_ != null) { + return disksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(disks_); } } - @java.lang.Override - public Builder clone() { - return super.clone(); + /** + * + * + *
        +     * Output only. The disks attached to the source VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails.Builder + addDisksBuilder() { + return getDisksFieldBuilder() + .addBuilder( + com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails + .getDefaultInstance()); } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); + /** + * + * + *
        +     * Output only. The disks attached to the source VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails.Builder + addDisksBuilder(int index) { + return getDisksFieldBuilder() + .addBuilder( + index, + com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails + .getDefaultInstance()); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + /** + * + * + *
        +     * Output only. The disks attached to the source VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getDisksBuilderList() { + return getDisksFieldBuilder().getBuilderList(); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails, + com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails.Builder, + com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetailsOrBuilder> + getDisksFieldBuilder() { + if (disksBuilder_ == null) { + disksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails, + com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails.Builder, + com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetailsOrBuilder>( + disks_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + disks_ = null; + } + return disksBuilder_; } - @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 com.google.cloud.vmmigration.v1.VmCapabilities vmCapabilitiesInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.VmCapabilities, + com.google.cloud.vmmigration.v1.VmCapabilities.Builder, + com.google.cloud.vmmigration.v1.VmCapabilitiesOrBuilder> + vmCapabilitiesInfoBuilder_; - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + /** + * + * + *
        +     * Output only. Information about VM capabilities needed for some Compute
        +     * Engine features.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.VmCapabilities vm_capabilities_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the vmCapabilitiesInfo field is set. + */ + public boolean hasVmCapabilitiesInfo() { + return ((bitField0_ & 0x00000008) != 0); } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.vmmigration.v1.AwsSourceVmDetails) { - return mergeFrom((com.google.cloud.vmmigration.v1.AwsSourceVmDetails) other); + /** + * + * + *
        +     * Output only. Information about VM capabilities needed for some Compute
        +     * Engine features.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.VmCapabilities vm_capabilities_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The vmCapabilitiesInfo. + */ + public com.google.cloud.vmmigration.v1.VmCapabilities getVmCapabilitiesInfo() { + if (vmCapabilitiesInfoBuilder_ == null) { + return vmCapabilitiesInfo_ == null + ? com.google.cloud.vmmigration.v1.VmCapabilities.getDefaultInstance() + : vmCapabilitiesInfo_; } else { - super.mergeFrom(other); - return this; + return vmCapabilitiesInfoBuilder_.getMessage(); } } - public Builder mergeFrom(com.google.cloud.vmmigration.v1.AwsSourceVmDetails other) { - if (other == com.google.cloud.vmmigration.v1.AwsSourceVmDetails.getDefaultInstance()) - return this; - if (other.firmware_ != 0) { - setFirmwareValue(other.getFirmwareValue()); - } - if (other.getCommittedStorageBytes() != 0L) { - setCommittedStorageBytes(other.getCommittedStorageBytes()); + /** + * + * + *
        +     * Output only. Information about VM capabilities needed for some Compute
        +     * Engine features.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.VmCapabilities vm_capabilities_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setVmCapabilitiesInfo(com.google.cloud.vmmigration.v1.VmCapabilities value) { + if (vmCapabilitiesInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + vmCapabilitiesInfo_ = value; + } else { + vmCapabilitiesInfoBuilder_.setMessage(value); } - this.mergeUnknownFields(other.getUnknownFields()); + bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final boolean isInitialized() { - return true; + /** + * + * + *
        +     * Output only. Information about VM capabilities needed for some Compute
        +     * Engine features.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.VmCapabilities vm_capabilities_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setVmCapabilitiesInfo( + com.google.cloud.vmmigration.v1.VmCapabilities.Builder builderForValue) { + if (vmCapabilitiesInfoBuilder_ == null) { + vmCapabilitiesInfo_ = builderForValue.build(); + } else { + vmCapabilitiesInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; } - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); + /** + * + * + *
        +     * Output only. Information about VM capabilities needed for some Compute
        +     * Engine features.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.VmCapabilities vm_capabilities_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeVmCapabilitiesInfo(com.google.cloud.vmmigration.v1.VmCapabilities value) { + if (vmCapabilitiesInfoBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && vmCapabilitiesInfo_ != null + && vmCapabilitiesInfo_ + != com.google.cloud.vmmigration.v1.VmCapabilities.getDefaultInstance()) { + getVmCapabilitiesInfoBuilder().mergeFrom(value); + } else { + vmCapabilitiesInfo_ = value; + } + } else { + vmCapabilitiesInfoBuilder_.mergeFrom(value); } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - firmware_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - committedStorageBytes_ = input.readInt64(); - 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 { + if (vmCapabilitiesInfo_ != null) { + bitField0_ |= 0x00000008; onChanged(); - } // finally + } return this; } - private int bitField0_; - - private int firmware_ = 0; - /** * * *
        -     * The firmware type of the source VM.
        +     * Output only. Information about VM capabilities needed for some Compute
        +     * Engine features.
              * 
        * - * .google.cloud.vmmigration.v1.AwsSourceVmDetails.Firmware firmware = 1; - * - * @return The enum numeric value on the wire for firmware. + * + * .google.cloud.vmmigration.v1.VmCapabilities vm_capabilities_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - @java.lang.Override - public int getFirmwareValue() { - return firmware_; + public Builder clearVmCapabilitiesInfo() { + bitField0_ = (bitField0_ & ~0x00000008); + vmCapabilitiesInfo_ = null; + if (vmCapabilitiesInfoBuilder_ != null) { + vmCapabilitiesInfoBuilder_.dispose(); + vmCapabilitiesInfoBuilder_ = null; + } + onChanged(); + return this; } /** * * *
        -     * The firmware type of the source VM.
        +     * Output only. Information about VM capabilities needed for some Compute
        +     * Engine features.
              * 
        * - * .google.cloud.vmmigration.v1.AwsSourceVmDetails.Firmware firmware = 1; - * - * @param value The enum numeric value on the wire for firmware to set. - * @return This builder for chaining. + * + * .google.cloud.vmmigration.v1.VmCapabilities vm_capabilities_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setFirmwareValue(int value) { - firmware_ = value; - bitField0_ |= 0x00000001; + public com.google.cloud.vmmigration.v1.VmCapabilities.Builder getVmCapabilitiesInfoBuilder() { + bitField0_ |= 0x00000008; onChanged(); - return this; + return getVmCapabilitiesInfoFieldBuilder().getBuilder(); } /** * * *
        -     * The firmware type of the source VM.
        +     * Output only. Information about VM capabilities needed for some Compute
        +     * Engine features.
              * 
        * - * .google.cloud.vmmigration.v1.AwsSourceVmDetails.Firmware firmware = 1; + * + * .google.cloud.vmmigration.v1.VmCapabilities vm_capabilities_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.VmCapabilitiesOrBuilder + getVmCapabilitiesInfoOrBuilder() { + if (vmCapabilitiesInfoBuilder_ != null) { + return vmCapabilitiesInfoBuilder_.getMessageOrBuilder(); + } else { + return vmCapabilitiesInfo_ == null + ? com.google.cloud.vmmigration.v1.VmCapabilities.getDefaultInstance() + : vmCapabilitiesInfo_; + } + } + + /** + * * - * @return The firmware. + *
        +     * Output only. Information about VM capabilities needed for some Compute
        +     * Engine features.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.VmCapabilities vm_capabilities_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - @java.lang.Override - public com.google.cloud.vmmigration.v1.AwsSourceVmDetails.Firmware getFirmware() { - com.google.cloud.vmmigration.v1.AwsSourceVmDetails.Firmware result = - com.google.cloud.vmmigration.v1.AwsSourceVmDetails.Firmware.forNumber(firmware_); - return result == null - ? com.google.cloud.vmmigration.v1.AwsSourceVmDetails.Firmware.UNRECOGNIZED - : result; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.VmCapabilities, + com.google.cloud.vmmigration.v1.VmCapabilities.Builder, + com.google.cloud.vmmigration.v1.VmCapabilitiesOrBuilder> + getVmCapabilitiesInfoFieldBuilder() { + if (vmCapabilitiesInfoBuilder_ == null) { + vmCapabilitiesInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.VmCapabilities, + com.google.cloud.vmmigration.v1.VmCapabilities.Builder, + com.google.cloud.vmmigration.v1.VmCapabilitiesOrBuilder>( + getVmCapabilitiesInfo(), getParentForChildren(), isClean()); + vmCapabilitiesInfo_ = null; + } + return vmCapabilitiesInfoBuilder_; } + private int architecture_ = 0; + /** * * *
        -     * The firmware type of the source VM.
        +     * Output only. The VM architecture.
              * 
        * - * .google.cloud.vmmigration.v1.AwsSourceVmDetails.Firmware firmware = 1; + * + * .google.cloud.vmmigration.v1.VmArchitecture architecture = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @param value The firmware to set. - * @return This builder for chaining. + * @return The enum numeric value on the wire for architecture. */ - public Builder setFirmware(com.google.cloud.vmmigration.v1.AwsSourceVmDetails.Firmware value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - firmware_ = value.getNumber(); - onChanged(); - return this; + @java.lang.Override + public int getArchitectureValue() { + return architecture_; } /** * * *
        -     * The firmware type of the source VM.
        +     * Output only. The VM architecture.
              * 
        * - * .google.cloud.vmmigration.v1.AwsSourceVmDetails.Firmware firmware = 1; + * + * .google.cloud.vmmigration.v1.VmArchitecture architecture = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * + * @param value The enum numeric value on the wire for architecture to set. * @return This builder for chaining. */ - public Builder clearFirmware() { - bitField0_ = (bitField0_ & ~0x00000001); - firmware_ = 0; + public Builder setArchitectureValue(int value) { + architecture_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } - private long committedStorageBytes_; - /** * * *
        -     * The total size of the disks being migrated in bytes.
        +     * Output only. The VM architecture.
              * 
        * - * int64 committed_storage_bytes = 2; + * + * .google.cloud.vmmigration.v1.VmArchitecture architecture = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return The committedStorageBytes. + * @return The architecture. */ @java.lang.Override - public long getCommittedStorageBytes() { - return committedStorageBytes_; + public com.google.cloud.vmmigration.v1.VmArchitecture getArchitecture() { + com.google.cloud.vmmigration.v1.VmArchitecture result = + com.google.cloud.vmmigration.v1.VmArchitecture.forNumber(architecture_); + return result == null ? com.google.cloud.vmmigration.v1.VmArchitecture.UNRECOGNIZED : result; } /** * * *
        -     * The total size of the disks being migrated in bytes.
        +     * Output only. The VM architecture.
              * 
        * - * int64 committed_storage_bytes = 2; + * + * .google.cloud.vmmigration.v1.VmArchitecture architecture = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @param value The committedStorageBytes to set. + * @param value The architecture to set. * @return This builder for chaining. */ - public Builder setCommittedStorageBytes(long value) { - - committedStorageBytes_ = value; - bitField0_ |= 0x00000002; + public Builder setArchitecture(com.google.cloud.vmmigration.v1.VmArchitecture value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + architecture_ = value.getNumber(); onChanged(); return this; } @@ -789,16 +2777,18 @@ public Builder setCommittedStorageBytes(long value) { * * *
        -     * The total size of the disks being migrated in bytes.
        +     * Output only. The VM architecture.
              * 
        * - * int64 committed_storage_bytes = 2; + * + * .google.cloud.vmmigration.v1.VmArchitecture architecture = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return This builder for chaining. */ - public Builder clearCommittedStorageBytes() { - bitField0_ = (bitField0_ & ~0x00000002); - committedStorageBytes_ = 0L; + public Builder clearArchitecture() { + bitField0_ = (bitField0_ & ~0x00000010); + architecture_ = 0; onChanged(); return this; } diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AwsSourceVmDetailsOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AwsSourceVmDetailsOrBuilder.java index 75f0ae1e8e4b..b74afe5acffc 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AwsSourceVmDetailsOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AwsSourceVmDetailsOrBuilder.java @@ -28,10 +28,12 @@ public interface AwsSourceVmDetailsOrBuilder * * *
        -   * The firmware type of the source VM.
        +   * Output only. The firmware type of the source VM.
            * 
        * - * .google.cloud.vmmigration.v1.AwsSourceVmDetails.Firmware firmware = 1; + * + * .google.cloud.vmmigration.v1.AwsSourceVmDetails.Firmware firmware = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for firmware. */ @@ -41,10 +43,12 @@ public interface AwsSourceVmDetailsOrBuilder * * *
        -   * The firmware type of the source VM.
        +   * Output only. The firmware type of the source VM.
            * 
        * - * .google.cloud.vmmigration.v1.AwsSourceVmDetails.Firmware firmware = 1; + * + * .google.cloud.vmmigration.v1.AwsSourceVmDetails.Firmware firmware = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The firmware. */ @@ -54,12 +58,156 @@ public interface AwsSourceVmDetailsOrBuilder * * *
        -   * The total size of the disks being migrated in bytes.
        +   * Output only. The total size of the disks being migrated in bytes.
            * 
        * - * int64 committed_storage_bytes = 2; + * int64 committed_storage_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The committedStorageBytes. */ long getCommittedStorageBytes(); + + /** + * + * + *
        +   * Output only. The disks attached to the source VM.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getDisksList(); + + /** + * + * + *
        +   * Output only. The disks attached to the source VM.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails getDisks(int index); + + /** + * + * + *
        +   * Output only. The disks attached to the source VM.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getDisksCount(); + + /** + * + * + *
        +   * Output only. The disks attached to the source VM.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetailsOrBuilder> + getDisksOrBuilderList(); + + /** + * + * + *
        +   * Output only. The disks attached to the source VM.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetailsOrBuilder getDisksOrBuilder( + int index); + + /** + * + * + *
        +   * Output only. Information about VM capabilities needed for some Compute
        +   * Engine features.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.VmCapabilities vm_capabilities_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the vmCapabilitiesInfo field is set. + */ + boolean hasVmCapabilitiesInfo(); + + /** + * + * + *
        +   * Output only. Information about VM capabilities needed for some Compute
        +   * Engine features.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.VmCapabilities vm_capabilities_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The vmCapabilitiesInfo. + */ + com.google.cloud.vmmigration.v1.VmCapabilities getVmCapabilitiesInfo(); + + /** + * + * + *
        +   * Output only. Information about VM capabilities needed for some Compute
        +   * Engine features.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.VmCapabilities vm_capabilities_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.vmmigration.v1.VmCapabilitiesOrBuilder getVmCapabilitiesInfoOrBuilder(); + + /** + * + * + *
        +   * Output only. The VM architecture.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.VmArchitecture architecture = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for architecture. + */ + int getArchitectureValue(); + + /** + * + * + *
        +   * Output only. The VM architecture.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.VmArchitecture architecture = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The architecture. + */ + com.google.cloud.vmmigration.v1.VmArchitecture getArchitecture(); } diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AwsVmDetails.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AwsVmDetails.java index e0426bc5eccc..0bb3a395bdd7 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AwsVmDetails.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AwsVmDetails.java @@ -1083,7 +1083,7 @@ public com.google.cloud.vmmigration.v1.AwsVmDetails.PowerState getPowerState() { * * *
        -   * The number of cpus the VM has.
        +   * The number of CPU cores the VM has.
            * 
        * * int32 cpu_count = 6; @@ -1668,6 +1668,26 @@ public com.google.cloud.vmmigration.v1.AwsVmDetails.VmArchitecture getArchitectu : result; } + public static final int VCPU_COUNT_FIELD_NUMBER = 19; + private int vcpuCount_ = 0; + + /** + * + * + *
        +   * The number of vCPUs the VM has. It is calculated as the
        +   * number of CPU cores * threads per CPU the VM has.
        +   * 
        + * + * int32 vcpu_count = 19; + * + * @return The vcpuCount. + */ + @java.lang.Override + public int getVcpuCount() { + return vcpuCount_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1744,6 +1764,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(18, architecture_); } + if (vcpuCount_ != 0) { + output.writeInt32(19, vcpuCount_); + } getUnknownFields().writeTo(output); } @@ -1823,6 +1846,9 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(18, architecture_); } + if (vcpuCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(19, vcpuCount_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1857,6 +1883,7 @@ public boolean equals(final java.lang.Object obj) { if (!getZone().equals(other.getZone())) return false; if (virtualizationType_ != other.virtualizationType_) return false; if (architecture_ != other.architecture_) return false; + if (getVcpuCount() != other.getVcpuCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1908,6 +1935,8 @@ public int hashCode() { hash = (53 * hash) + virtualizationType_; hash = (37 * hash) + ARCHITECTURE_FIELD_NUMBER; hash = (53 * hash) + architecture_; + hash = (37 * hash) + VCPU_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getVcpuCount(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2094,6 +2123,7 @@ public Builder clear() { zone_ = ""; virtualizationType_ = 0; architecture_ = 0; + vcpuCount_ = 0; return this; } @@ -2195,6 +2225,9 @@ private void buildPartial0(com.google.cloud.vmmigration.v1.AwsVmDetails result) if (((from_bitField0_ & 0x00020000) != 0)) { result.architecture_ = architecture_; } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.vcpuCount_ = vcpuCount_; + } } @java.lang.Override @@ -2335,6 +2368,9 @@ public Builder mergeFrom(com.google.cloud.vmmigration.v1.AwsVmDetails other) { if (other.architecture_ != 0) { setArchitectureValue(other.getArchitectureValue()); } + if (other.getVcpuCount() != 0) { + setVcpuCount(other.getVcpuCount()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2480,6 +2516,12 @@ public Builder mergeFrom( bitField0_ |= 0x00020000; break; } // case 144 + case 152: + { + vcpuCount_ = input.readInt32(); + bitField0_ |= 0x00040000; + break; + } // case 152 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3056,7 +3098,7 @@ public Builder clearPowerState() { * * *
        -     * The number of cpus the VM has.
        +     * The number of CPU cores the VM has.
              * 
        * * int32 cpu_count = 6; @@ -3072,7 +3114,7 @@ public int getCpuCount() { * * *
        -     * The number of cpus the VM has.
        +     * The number of CPU cores the VM has.
              * 
        * * int32 cpu_count = 6; @@ -3092,7 +3134,7 @@ public Builder setCpuCount(int value) { * * *
        -     * The number of cpus the VM has.
        +     * The number of CPU cores the VM has.
              * 
        * * int32 cpu_count = 6; @@ -4573,6 +4615,65 @@ public Builder clearArchitecture() { return this; } + private int vcpuCount_; + + /** + * + * + *
        +     * The number of vCPUs the VM has. It is calculated as the
        +     * number of CPU cores * threads per CPU the VM has.
        +     * 
        + * + * int32 vcpu_count = 19; + * + * @return The vcpuCount. + */ + @java.lang.Override + public int getVcpuCount() { + return vcpuCount_; + } + + /** + * + * + *
        +     * The number of vCPUs the VM has. It is calculated as the
        +     * number of CPU cores * threads per CPU the VM has.
        +     * 
        + * + * int32 vcpu_count = 19; + * + * @param value The vcpuCount to set. + * @return This builder for chaining. + */ + public Builder setVcpuCount(int value) { + + vcpuCount_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + + /** + * + * + *
        +     * The number of vCPUs the VM has. It is calculated as the
        +     * number of CPU cores * threads per CPU the VM has.
        +     * 
        + * + * int32 vcpu_count = 19; + * + * @return This builder for chaining. + */ + public Builder clearVcpuCount() { + bitField0_ = (bitField0_ & ~0x00040000); + vcpuCount_ = 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-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AwsVmDetailsOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AwsVmDetailsOrBuilder.java index e8dcfd1a23db..63fd1d61d611 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AwsVmDetailsOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AwsVmDetailsOrBuilder.java @@ -162,7 +162,7 @@ public interface AwsVmDetailsOrBuilder * * *
        -   * The number of cpus the VM has.
        +   * The number of CPU cores the VM has.
            * 
        * * int32 cpu_count = 6; @@ -512,4 +512,18 @@ java.lang.String getTagsOrDefault( * @return The architecture. */ com.google.cloud.vmmigration.v1.AwsVmDetails.VmArchitecture getArchitecture(); + + /** + * + * + *
        +   * The number of vCPUs the VM has. It is calculated as the
        +   * number of CPU cores * threads per CPU the VM has.
        +   * 
        + * + * int32 vcpu_count = 19; + * + * @return The vcpuCount. + */ + int getVcpuCount(); } diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AzureSourceDetails.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AzureSourceDetails.java new file mode 100644 index 000000000000..2048035ba1b2 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AzureSourceDetails.java @@ -0,0 +1,3638 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * AzureSourceDetails message describes a specific source details for the
        + * Azure source type.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.AzureSourceDetails} + */ +public final class AzureSourceDetails extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.AzureSourceDetails) + AzureSourceDetailsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use AzureSourceDetails.newBuilder() to construct. + private AzureSourceDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AzureSourceDetails() { + subscriptionId_ = ""; + azureLocation_ = ""; + state_ = 0; + resourceGroupId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AzureSourceDetails(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AzureSourceDetails_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 8: + return internalGetMigrationResourcesUserTags(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AzureSourceDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.AzureSourceDetails.class, + com.google.cloud.vmmigration.v1.AzureSourceDetails.Builder.class); + } + + /** + * + * + *
        +   * The possible values of the state.
        +   * 
        + * + * Protobuf enum {@code google.cloud.vmmigration.v1.AzureSourceDetails.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
        +     * The state is unknown. This is used for API compatibility only and is not
        +     * used by the system.
        +     * 
        + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
        +     * The state was not sampled by the health checks yet.
        +     * 
        + * + * PENDING = 1; + */ + PENDING(1), + /** + * + * + *
        +     * The source is available but might not be usable yet due to invalid
        +     * credentials or another reason.
        +     * The error message will contain further details.
        +     * 
        + * + * FAILED = 2; + */ + FAILED(2), + /** + * + * + *
        +     * The source exists and its credentials were verified.
        +     * 
        + * + * ACTIVE = 3; + */ + ACTIVE(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
        +     * The state is unknown. This is used for API compatibility only and is not
        +     * used by the system.
        +     * 
        + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
        +     * The state was not sampled by the health checks yet.
        +     * 
        + * + * PENDING = 1; + */ + public static final int PENDING_VALUE = 1; + + /** + * + * + *
        +     * The source is available but might not be usable yet due to invalid
        +     * credentials or another reason.
        +     * The error message will contain further details.
        +     * 
        + * + * FAILED = 2; + */ + public static final int FAILED_VALUE = 2; + + /** + * + * + *
        +     * The source exists and its credentials were verified.
        +     * 
        + * + * ACTIVE = 3; + */ + public static final int ACTIVE_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return PENDING; + case 2: + return FAILED; + case 3: + return ACTIVE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.AzureSourceDetails.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.vmmigration.v1.AzureSourceDetails.State) + } + + public interface ClientSecretCredentialsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +     * Azure tenant ID.
        +     * 
        + * + * string tenant_id = 1; + * + * @return The tenantId. + */ + java.lang.String getTenantId(); + + /** + * + * + *
        +     * Azure tenant ID.
        +     * 
        + * + * string tenant_id = 1; + * + * @return The bytes for tenantId. + */ + com.google.protobuf.ByteString getTenantIdBytes(); + + /** + * + * + *
        +     * Azure client ID.
        +     * 
        + * + * string client_id = 2; + * + * @return The clientId. + */ + java.lang.String getClientId(); + + /** + * + * + *
        +     * Azure client ID.
        +     * 
        + * + * string client_id = 2; + * + * @return The bytes for clientId. + */ + com.google.protobuf.ByteString getClientIdBytes(); + + /** + * + * + *
        +     * Input only. Azure client secret.
        +     * 
        + * + * string client_secret = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The clientSecret. + */ + java.lang.String getClientSecret(); + + /** + * + * + *
        +     * Input only. Azure client secret.
        +     * 
        + * + * string client_secret = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The bytes for clientSecret. + */ + com.google.protobuf.ByteString getClientSecretBytes(); + } + + /** + * + * + *
        +   * Message describing Azure Credentials using tenant ID, client ID and secret.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials} + */ + public static final class ClientSecretCredentials extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials) + ClientSecretCredentialsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ClientSecretCredentials.newBuilder() to construct. + private ClientSecretCredentials(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ClientSecretCredentials() { + tenantId_ = ""; + clientId_ = ""; + clientSecret_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ClientSecretCredentials(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AzureSourceDetails_ClientSecretCredentials_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AzureSourceDetails_ClientSecretCredentials_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials.class, + com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials.Builder + .class); + } + + public static final int TENANT_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object tenantId_ = ""; + + /** + * + * + *
        +     * Azure tenant ID.
        +     * 
        + * + * string tenant_id = 1; + * + * @return The tenantId. + */ + @java.lang.Override + public java.lang.String getTenantId() { + java.lang.Object ref = tenantId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tenantId_ = s; + return s; + } + } + + /** + * + * + *
        +     * Azure tenant ID.
        +     * 
        + * + * string tenant_id = 1; + * + * @return The bytes for tenantId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTenantIdBytes() { + java.lang.Object ref = tenantId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tenantId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLIENT_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object clientId_ = ""; + + /** + * + * + *
        +     * Azure client ID.
        +     * 
        + * + * string client_id = 2; + * + * @return The clientId. + */ + @java.lang.Override + public java.lang.String getClientId() { + java.lang.Object ref = clientId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientId_ = s; + return s; + } + } + + /** + * + * + *
        +     * Azure client ID.
        +     * 
        + * + * string client_id = 2; + * + * @return The bytes for clientId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClientIdBytes() { + java.lang.Object ref = clientId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLIENT_SECRET_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object clientSecret_ = ""; + + /** + * + * + *
        +     * Input only. Azure client secret.
        +     * 
        + * + * string client_secret = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The clientSecret. + */ + @java.lang.Override + public java.lang.String getClientSecret() { + java.lang.Object ref = clientSecret_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientSecret_ = s; + return s; + } + } + + /** + * + * + *
        +     * Input only. Azure client secret.
        +     * 
        + * + * string client_secret = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The bytes for clientSecret. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClientSecretBytes() { + java.lang.Object ref = clientSecret_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientSecret_ = 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(tenantId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tenantId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clientId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientSecret_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clientSecret_); + } + 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(tenantId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, tenantId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clientId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientSecret_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clientSecret_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials other = + (com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials) obj; + + if (!getTenantId().equals(other.getTenantId())) return false; + if (!getClientId().equals(other.getClientId())) return false; + if (!getClientSecret().equals(other.getClientSecret())) 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) + TENANT_ID_FIELD_NUMBER; + hash = (53 * hash) + getTenantId().hashCode(); + hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getClientId().hashCode(); + hash = (37 * hash) + CLIENT_SECRET_FIELD_NUMBER; + hash = (53 * hash) + getClientSecret().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials + 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.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials + parseFrom( + 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.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials + 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.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials + 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.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials + 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.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +     * Message describing Azure Credentials using tenant ID, client ID and secret.
        +     * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials) + com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentialsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AzureSourceDetails_ClientSecretCredentials_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AzureSourceDetails_ClientSecretCredentials_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials.class, + com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials.Builder + .class); + } + + // Construct using + // com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + tenantId_ = ""; + clientId_ = ""; + clientSecret_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AzureSourceDetails_ClientSecretCredentials_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials + getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials build() { + com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials + buildPartial() { + com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials result = + new com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.tenantId_ = tenantId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.clientId_ = clientId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clientSecret_ = clientSecret_; + } + } + + @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.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials) { + return mergeFrom( + (com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials other) { + if (other + == com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials + .getDefaultInstance()) return this; + if (!other.getTenantId().isEmpty()) { + tenantId_ = other.tenantId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getClientId().isEmpty()) { + clientId_ = other.clientId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClientSecret().isEmpty()) { + clientSecret_ = other.clientSecret_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + tenantId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + clientId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + clientSecret_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object tenantId_ = ""; + + /** + * + * + *
        +       * Azure tenant ID.
        +       * 
        + * + * string tenant_id = 1; + * + * @return The tenantId. + */ + public java.lang.String getTenantId() { + java.lang.Object ref = tenantId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tenantId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +       * Azure tenant ID.
        +       * 
        + * + * string tenant_id = 1; + * + * @return The bytes for tenantId. + */ + public com.google.protobuf.ByteString getTenantIdBytes() { + java.lang.Object ref = tenantId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tenantId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +       * Azure tenant ID.
        +       * 
        + * + * string tenant_id = 1; + * + * @param value The tenantId to set. + * @return This builder for chaining. + */ + public Builder setTenantId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tenantId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +       * Azure tenant ID.
        +       * 
        + * + * string tenant_id = 1; + * + * @return This builder for chaining. + */ + public Builder clearTenantId() { + tenantId_ = getDefaultInstance().getTenantId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
        +       * Azure tenant ID.
        +       * 
        + * + * string tenant_id = 1; + * + * @param value The bytes for tenantId to set. + * @return This builder for chaining. + */ + public Builder setTenantIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tenantId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object clientId_ = ""; + + /** + * + * + *
        +       * Azure client ID.
        +       * 
        + * + * string client_id = 2; + * + * @return The clientId. + */ + public java.lang.String getClientId() { + java.lang.Object ref = clientId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +       * Azure client ID.
        +       * 
        + * + * string client_id = 2; + * + * @return The bytes for clientId. + */ + public com.google.protobuf.ByteString getClientIdBytes() { + java.lang.Object ref = clientId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +       * Azure client ID.
        +       * 
        + * + * string client_id = 2; + * + * @param value The clientId to set. + * @return This builder for chaining. + */ + public Builder setClientId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clientId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +       * Azure client ID.
        +       * 
        + * + * string client_id = 2; + * + * @return This builder for chaining. + */ + public Builder clearClientId() { + clientId_ = getDefaultInstance().getClientId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
        +       * Azure client ID.
        +       * 
        + * + * string client_id = 2; + * + * @param value The bytes for clientId to set. + * @return This builder for chaining. + */ + public Builder setClientIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clientId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object clientSecret_ = ""; + + /** + * + * + *
        +       * Input only. Azure client secret.
        +       * 
        + * + * string client_secret = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The clientSecret. + */ + public java.lang.String getClientSecret() { + java.lang.Object ref = clientSecret_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientSecret_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +       * Input only. Azure client secret.
        +       * 
        + * + * string client_secret = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The bytes for clientSecret. + */ + public com.google.protobuf.ByteString getClientSecretBytes() { + java.lang.Object ref = clientSecret_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientSecret_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +       * Input only. Azure client secret.
        +       * 
        + * + * string client_secret = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @param value The clientSecret to set. + * @return This builder for chaining. + */ + public Builder setClientSecret(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clientSecret_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +       * Input only. Azure client secret.
        +       * 
        + * + * string client_secret = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearClientSecret() { + clientSecret_ = getDefaultInstance().getClientSecret(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
        +       * Input only. Azure client secret.
        +       * 
        + * + * string client_secret = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @param value The bytes for clientSecret to set. + * @return This builder for chaining. + */ + public Builder setClientSecretBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clientSecret_ = 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.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials) + private static final com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials(); + } + + public static com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientSecretCredentials parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int credentialsTypeCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object credentialsType_; + + public enum CredentialsTypeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CLIENT_SECRET_CREDS(9), + CREDENTIALSTYPE_NOT_SET(0); + private final int value; + + private CredentialsTypeCase(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 CredentialsTypeCase valueOf(int value) { + return forNumber(value); + } + + public static CredentialsTypeCase forNumber(int value) { + switch (value) { + case 9: + return CLIENT_SECRET_CREDS; + case 0: + return CREDENTIALSTYPE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public CredentialsTypeCase getCredentialsTypeCase() { + return CredentialsTypeCase.forNumber(credentialsTypeCase_); + } + + public static final int CLIENT_SECRET_CREDS_FIELD_NUMBER = 9; + + /** + * + * + *
        +   * Azure Credentials using tenant ID, client ID and secret.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials client_secret_creds = 9; + * + * + * @return Whether the clientSecretCreds field is set. + */ + @java.lang.Override + public boolean hasClientSecretCreds() { + return credentialsTypeCase_ == 9; + } + + /** + * + * + *
        +   * Azure Credentials using tenant ID, client ID and secret.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials client_secret_creds = 9; + * + * + * @return The clientSecretCreds. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials + getClientSecretCreds() { + if (credentialsTypeCase_ == 9) { + return (com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials) + credentialsType_; + } + return com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials + .getDefaultInstance(); + } + + /** + * + * + *
        +   * Azure Credentials using tenant ID, client ID and secret.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials client_secret_creds = 9; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentialsOrBuilder + getClientSecretCredsOrBuilder() { + if (credentialsTypeCase_ == 9) { + return (com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials) + credentialsType_; + } + return com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials + .getDefaultInstance(); + } + + public static final int SUBSCRIPTION_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object subscriptionId_ = ""; + + /** + * + * + *
        +   * Immutable. Azure subscription ID.
        +   * 
        + * + * string subscription_id = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The subscriptionId. + */ + @java.lang.Override + public java.lang.String getSubscriptionId() { + java.lang.Object ref = subscriptionId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subscriptionId_ = s; + return s; + } + } + + /** + * + * + *
        +   * Immutable. Azure subscription ID.
        +   * 
        + * + * string subscription_id = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for subscriptionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSubscriptionIdBytes() { + java.lang.Object ref = subscriptionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subscriptionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AZURE_LOCATION_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object azureLocation_ = ""; + + /** + * + * + *
        +   * Immutable. The Azure location (region) that the source VMs will be migrated
        +   * from.
        +   * 
        + * + * string azure_location = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The azureLocation. + */ + @java.lang.Override + public java.lang.String getAzureLocation() { + java.lang.Object ref = azureLocation_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + azureLocation_ = s; + return s; + } + } + + /** + * + * + *
        +   * Immutable. The Azure location (region) that the source VMs will be migrated
        +   * from.
        +   * 
        + * + * string azure_location = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for azureLocation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAzureLocationBytes() { + java.lang.Object ref = azureLocation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + azureLocation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 6; + private int state_ = 0; + + /** + * + * + *
        +   * Output only. State of the source as determined by the health check.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.AzureSourceDetails.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
        +   * Output only. State of the source as determined by the health check.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.AzureSourceDetails.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureSourceDetails.State getState() { + com.google.cloud.vmmigration.v1.AzureSourceDetails.State result = + com.google.cloud.vmmigration.v1.AzureSourceDetails.State.forNumber(state_); + return result == null + ? com.google.cloud.vmmigration.v1.AzureSourceDetails.State.UNRECOGNIZED + : result; + } + + public static final int ERROR_FIELD_NUMBER = 7; + private com.google.rpc.Status error_; + + /** + * + * + *
        +   * Output only. Provides details on the state of the Source in case of an
        +   * error.
        +   * 
        + * + * .google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the error field is set. + */ + @java.lang.Override + public boolean hasError() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
        +   * Output only. Provides details on the state of the Source in case of an
        +   * error.
        +   * 
        + * + * .google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The error. + */ + @java.lang.Override + public com.google.rpc.Status getError() { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + + /** + * + * + *
        +   * Output only. Provides details on the state of the Source in case of an
        +   * error.
        +   * 
        + * + * .google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + + public static final int MIGRATION_RESOURCES_USER_TAGS_FIELD_NUMBER = 8; + + private static final class MigrationResourcesUserTagsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AzureSourceDetails_MigrationResourcesUserTagsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField + migrationResourcesUserTags_; + + private com.google.protobuf.MapField + internalGetMigrationResourcesUserTags() { + if (migrationResourcesUserTags_ == null) { + return com.google.protobuf.MapField.emptyMapField( + MigrationResourcesUserTagsDefaultEntryHolder.defaultEntry); + } + return migrationResourcesUserTags_; + } + + public int getMigrationResourcesUserTagsCount() { + return internalGetMigrationResourcesUserTags().getMap().size(); + } + + /** + * + * + *
        +   * User specified tags to add to every M2VM generated resource in Azure.
        +   * These tags will be set in addition to the default tags that are set as part
        +   * of the migration process. The tags must not begin with the reserved prefix
        +   * `m4ce` or `m2vm`.
        +   * 
        + * + * map<string, string> migration_resources_user_tags = 8; + */ + @java.lang.Override + public boolean containsMigrationResourcesUserTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetMigrationResourcesUserTags().getMap().containsKey(key); + } + + /** Use {@link #getMigrationResourcesUserTagsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getMigrationResourcesUserTags() { + return getMigrationResourcesUserTagsMap(); + } + + /** + * + * + *
        +   * User specified tags to add to every M2VM generated resource in Azure.
        +   * These tags will be set in addition to the default tags that are set as part
        +   * of the migration process. The tags must not begin with the reserved prefix
        +   * `m4ce` or `m2vm`.
        +   * 
        + * + * map<string, string> migration_resources_user_tags = 8; + */ + @java.lang.Override + public java.util.Map getMigrationResourcesUserTagsMap() { + return internalGetMigrationResourcesUserTags().getMap(); + } + + /** + * + * + *
        +   * User specified tags to add to every M2VM generated resource in Azure.
        +   * These tags will be set in addition to the default tags that are set as part
        +   * of the migration process. The tags must not begin with the reserved prefix
        +   * `m4ce` or `m2vm`.
        +   * 
        + * + * map<string, string> migration_resources_user_tags = 8; + */ + @java.lang.Override + public /* nullable */ java.lang.String getMigrationResourcesUserTagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetMigrationResourcesUserTags().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
        +   * User specified tags to add to every M2VM generated resource in Azure.
        +   * These tags will be set in addition to the default tags that are set as part
        +   * of the migration process. The tags must not begin with the reserved prefix
        +   * `m4ce` or `m2vm`.
        +   * 
        + * + * map<string, string> migration_resources_user_tags = 8; + */ + @java.lang.Override + public java.lang.String getMigrationResourcesUserTagsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetMigrationResourcesUserTags().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int RESOURCE_GROUP_ID_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private volatile java.lang.Object resourceGroupId_ = ""; + + /** + * + * + *
        +   * Output only. The ID of the Azure resource group that contains all resources
        +   * related to the migration process of this source.
        +   * 
        + * + * string resource_group_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The resourceGroupId. + */ + @java.lang.Override + public java.lang.String getResourceGroupId() { + java.lang.Object ref = resourceGroupId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceGroupId_ = s; + return s; + } + } + + /** + * + * + *
        +   * Output only. The ID of the Azure resource group that contains all resources
        +   * related to the migration process of this source.
        +   * 
        + * + * string resource_group_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for resourceGroupId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceGroupIdBytes() { + java.lang.Object ref = resourceGroupId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceGroupId_ = 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(subscriptionId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscriptionId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(azureLocation_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, azureLocation_); + } + if (state_ + != com.google.cloud.vmmigration.v1.AzureSourceDetails.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(6, state_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(7, getError()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, + internalGetMigrationResourcesUserTags(), + MigrationResourcesUserTagsDefaultEntryHolder.defaultEntry, + 8); + if (credentialsTypeCase_ == 9) { + output.writeMessage( + 9, + (com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials) + credentialsType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceGroupId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, resourceGroupId_); + } + 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(subscriptionId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscriptionId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(azureLocation_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, azureLocation_); + } + if (state_ + != com.google.cloud.vmmigration.v1.AzureSourceDetails.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getError()); + } + for (java.util.Map.Entry entry : + internalGetMigrationResourcesUserTags().getMap().entrySet()) { + com.google.protobuf.MapEntry + migrationResourcesUserTags__ = + MigrationResourcesUserTagsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(8, migrationResourcesUserTags__); + } + if (credentialsTypeCase_ == 9) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, + (com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials) + credentialsType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceGroupId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, resourceGroupId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.vmmigration.v1.AzureSourceDetails)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.AzureSourceDetails other = + (com.google.cloud.vmmigration.v1.AzureSourceDetails) obj; + + if (!getSubscriptionId().equals(other.getSubscriptionId())) return false; + if (!getAzureLocation().equals(other.getAzureLocation())) return false; + if (state_ != other.state_) return false; + if (hasError() != other.hasError()) return false; + if (hasError()) { + if (!getError().equals(other.getError())) return false; + } + if (!internalGetMigrationResourcesUserTags() + .equals(other.internalGetMigrationResourcesUserTags())) return false; + if (!getResourceGroupId().equals(other.getResourceGroupId())) return false; + if (!getCredentialsTypeCase().equals(other.getCredentialsTypeCase())) return false; + switch (credentialsTypeCase_) { + case 9: + if (!getClientSecretCreds().equals(other.getClientSecretCreds())) 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) + SUBSCRIPTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getSubscriptionId().hashCode(); + hash = (37 * hash) + AZURE_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getAzureLocation().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (hasError()) { + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + } + if (!internalGetMigrationResourcesUserTags().getMap().isEmpty()) { + hash = (37 * hash) + MIGRATION_RESOURCES_USER_TAGS_FIELD_NUMBER; + hash = (53 * hash) + internalGetMigrationResourcesUserTags().hashCode(); + } + hash = (37 * hash) + RESOURCE_GROUP_ID_FIELD_NUMBER; + hash = (53 * hash) + getResourceGroupId().hashCode(); + switch (credentialsTypeCase_) { + case 9: + hash = (37 * hash) + CLIENT_SECRET_CREDS_FIELD_NUMBER; + hash = (53 * hash) + getClientSecretCreds().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.AzureSourceDetails parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.AzureSourceDetails 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.vmmigration.v1.AzureSourceDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.AzureSourceDetails parseFrom( + 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.vmmigration.v1.AzureSourceDetails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.AzureSourceDetails parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.AzureSourceDetails parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.AzureSourceDetails 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.vmmigration.v1.AzureSourceDetails parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.AzureSourceDetails 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.vmmigration.v1.AzureSourceDetails parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.AzureSourceDetails 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.vmmigration.v1.AzureSourceDetails prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
        +   * AzureSourceDetails message describes a specific source details for the
        +   * Azure source type.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.AzureSourceDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.AzureSourceDetails) + com.google.cloud.vmmigration.v1.AzureSourceDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AzureSourceDetails_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 8: + return internalGetMigrationResourcesUserTags(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 8: + return internalGetMutableMigrationResourcesUserTags(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AzureSourceDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.AzureSourceDetails.class, + com.google.cloud.vmmigration.v1.AzureSourceDetails.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.AzureSourceDetails.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getErrorFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (clientSecretCredsBuilder_ != null) { + clientSecretCredsBuilder_.clear(); + } + subscriptionId_ = ""; + azureLocation_ = ""; + state_ = 0; + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); + errorBuilder_ = null; + } + internalGetMutableMigrationResourcesUserTags().clear(); + resourceGroupId_ = ""; + credentialsTypeCase_ = 0; + credentialsType_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AzureSourceDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureSourceDetails getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.AzureSourceDetails.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureSourceDetails build() { + com.google.cloud.vmmigration.v1.AzureSourceDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureSourceDetails buildPartial() { + com.google.cloud.vmmigration.v1.AzureSourceDetails result = + new com.google.cloud.vmmigration.v1.AzureSourceDetails(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vmmigration.v1.AzureSourceDetails result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.subscriptionId_ = subscriptionId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.azureLocation_ = azureLocation_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.state_ = state_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.migrationResourcesUserTags_ = internalGetMigrationResourcesUserTags(); + result.migrationResourcesUserTags_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.resourceGroupId_ = resourceGroupId_; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.vmmigration.v1.AzureSourceDetails result) { + result.credentialsTypeCase_ = credentialsTypeCase_; + result.credentialsType_ = this.credentialsType_; + if (credentialsTypeCase_ == 9 && clientSecretCredsBuilder_ != null) { + result.credentialsType_ = clientSecretCredsBuilder_.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.vmmigration.v1.AzureSourceDetails) { + return mergeFrom((com.google.cloud.vmmigration.v1.AzureSourceDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.AzureSourceDetails other) { + if (other == com.google.cloud.vmmigration.v1.AzureSourceDetails.getDefaultInstance()) + return this; + if (!other.getSubscriptionId().isEmpty()) { + subscriptionId_ = other.subscriptionId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getAzureLocation().isEmpty()) { + azureLocation_ = other.azureLocation_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.hasError()) { + mergeError(other.getError()); + } + internalGetMutableMigrationResourcesUserTags() + .mergeFrom(other.internalGetMigrationResourcesUserTags()); + bitField0_ |= 0x00000020; + if (!other.getResourceGroupId().isEmpty()) { + resourceGroupId_ = other.resourceGroupId_; + bitField0_ |= 0x00000040; + onChanged(); + } + switch (other.getCredentialsTypeCase()) { + case CLIENT_SECRET_CREDS: + { + mergeClientSecretCreds(other.getClientSecretCreds()); + break; + } + case CREDENTIALSTYPE_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: + { + subscriptionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 42: + { + azureLocation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 42 + case 48: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 48 + case 58: + { + input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 58 + case 66: + { + com.google.protobuf.MapEntry + migrationResourcesUserTags__ = + input.readMessage( + MigrationResourcesUserTagsDefaultEntryHolder.defaultEntry + .getParserForType(), + extensionRegistry); + internalGetMutableMigrationResourcesUserTags() + .getMutableMap() + .put( + migrationResourcesUserTags__.getKey(), + migrationResourcesUserTags__.getValue()); + bitField0_ |= 0x00000020; + break; + } // case 66 + case 74: + { + input.readMessage( + getClientSecretCredsFieldBuilder().getBuilder(), extensionRegistry); + credentialsTypeCase_ = 9; + break; + } // case 74 + case 82: + { + resourceGroupId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 82 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int credentialsTypeCase_ = 0; + private java.lang.Object credentialsType_; + + public CredentialsTypeCase getCredentialsTypeCase() { + return CredentialsTypeCase.forNumber(credentialsTypeCase_); + } + + public Builder clearCredentialsType() { + credentialsTypeCase_ = 0; + credentialsType_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials, + com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials.Builder, + com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentialsOrBuilder> + clientSecretCredsBuilder_; + + /** + * + * + *
        +     * Azure Credentials using tenant ID, client ID and secret.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials client_secret_creds = 9; + * + * + * @return Whether the clientSecretCreds field is set. + */ + @java.lang.Override + public boolean hasClientSecretCreds() { + return credentialsTypeCase_ == 9; + } + + /** + * + * + *
        +     * Azure Credentials using tenant ID, client ID and secret.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials client_secret_creds = 9; + * + * + * @return The clientSecretCreds. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials + getClientSecretCreds() { + if (clientSecretCredsBuilder_ == null) { + if (credentialsTypeCase_ == 9) { + return (com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials) + credentialsType_; + } + return com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials + .getDefaultInstance(); + } else { + if (credentialsTypeCase_ == 9) { + return clientSecretCredsBuilder_.getMessage(); + } + return com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials + .getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Azure Credentials using tenant ID, client ID and secret.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials client_secret_creds = 9; + * + */ + public Builder setClientSecretCreds( + com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials value) { + if (clientSecretCredsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + credentialsType_ = value; + onChanged(); + } else { + clientSecretCredsBuilder_.setMessage(value); + } + credentialsTypeCase_ = 9; + return this; + } + + /** + * + * + *
        +     * Azure Credentials using tenant ID, client ID and secret.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials client_secret_creds = 9; + * + */ + public Builder setClientSecretCreds( + com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials.Builder + builderForValue) { + if (clientSecretCredsBuilder_ == null) { + credentialsType_ = builderForValue.build(); + onChanged(); + } else { + clientSecretCredsBuilder_.setMessage(builderForValue.build()); + } + credentialsTypeCase_ = 9; + return this; + } + + /** + * + * + *
        +     * Azure Credentials using tenant ID, client ID and secret.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials client_secret_creds = 9; + * + */ + public Builder mergeClientSecretCreds( + com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials value) { + if (clientSecretCredsBuilder_ == null) { + if (credentialsTypeCase_ == 9 + && credentialsType_ + != com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials + .getDefaultInstance()) { + credentialsType_ = + com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials.newBuilder( + (com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials) + credentialsType_) + .mergeFrom(value) + .buildPartial(); + } else { + credentialsType_ = value; + } + onChanged(); + } else { + if (credentialsTypeCase_ == 9) { + clientSecretCredsBuilder_.mergeFrom(value); + } else { + clientSecretCredsBuilder_.setMessage(value); + } + } + credentialsTypeCase_ = 9; + return this; + } + + /** + * + * + *
        +     * Azure Credentials using tenant ID, client ID and secret.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials client_secret_creds = 9; + * + */ + public Builder clearClientSecretCreds() { + if (clientSecretCredsBuilder_ == null) { + if (credentialsTypeCase_ == 9) { + credentialsTypeCase_ = 0; + credentialsType_ = null; + onChanged(); + } + } else { + if (credentialsTypeCase_ == 9) { + credentialsTypeCase_ = 0; + credentialsType_ = null; + } + clientSecretCredsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Azure Credentials using tenant ID, client ID and secret.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials client_secret_creds = 9; + * + */ + public com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials.Builder + getClientSecretCredsBuilder() { + return getClientSecretCredsFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Azure Credentials using tenant ID, client ID and secret.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials client_secret_creds = 9; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentialsOrBuilder + getClientSecretCredsOrBuilder() { + if ((credentialsTypeCase_ == 9) && (clientSecretCredsBuilder_ != null)) { + return clientSecretCredsBuilder_.getMessageOrBuilder(); + } else { + if (credentialsTypeCase_ == 9) { + return (com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials) + credentialsType_; + } + return com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials + .getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Azure Credentials using tenant ID, client ID and secret.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials client_secret_creds = 9; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials, + com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials.Builder, + com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentialsOrBuilder> + getClientSecretCredsFieldBuilder() { + if (clientSecretCredsBuilder_ == null) { + if (!(credentialsTypeCase_ == 9)) { + credentialsType_ = + com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials + .getDefaultInstance(); + } + clientSecretCredsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials, + com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials.Builder, + com.google.cloud.vmmigration.v1.AzureSourceDetails + .ClientSecretCredentialsOrBuilder>( + (com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials) + credentialsType_, + getParentForChildren(), + isClean()); + credentialsType_ = null; + } + credentialsTypeCase_ = 9; + onChanged(); + return clientSecretCredsBuilder_; + } + + private java.lang.Object subscriptionId_ = ""; + + /** + * + * + *
        +     * Immutable. Azure subscription ID.
        +     * 
        + * + * string subscription_id = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The subscriptionId. + */ + public java.lang.String getSubscriptionId() { + java.lang.Object ref = subscriptionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subscriptionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Immutable. Azure subscription ID.
        +     * 
        + * + * string subscription_id = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for subscriptionId. + */ + public com.google.protobuf.ByteString getSubscriptionIdBytes() { + java.lang.Object ref = subscriptionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subscriptionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Immutable. Azure subscription ID.
        +     * 
        + * + * string subscription_id = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The subscriptionId to set. + * @return This builder for chaining. + */ + public Builder setSubscriptionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + subscriptionId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Immutable. Azure subscription ID.
        +     * 
        + * + * string subscription_id = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearSubscriptionId() { + subscriptionId_ = getDefaultInstance().getSubscriptionId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Immutable. Azure subscription ID.
        +     * 
        + * + * string subscription_id = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The bytes for subscriptionId to set. + * @return This builder for chaining. + */ + public Builder setSubscriptionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subscriptionId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object azureLocation_ = ""; + + /** + * + * + *
        +     * Immutable. The Azure location (region) that the source VMs will be migrated
        +     * from.
        +     * 
        + * + * string azure_location = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The azureLocation. + */ + public java.lang.String getAzureLocation() { + java.lang.Object ref = azureLocation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + azureLocation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Immutable. The Azure location (region) that the source VMs will be migrated
        +     * from.
        +     * 
        + * + * string azure_location = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for azureLocation. + */ + public com.google.protobuf.ByteString getAzureLocationBytes() { + java.lang.Object ref = azureLocation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + azureLocation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Immutable. The Azure location (region) that the source VMs will be migrated
        +     * from.
        +     * 
        + * + * string azure_location = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The azureLocation to set. + * @return This builder for chaining. + */ + public Builder setAzureLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + azureLocation_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Immutable. The Azure location (region) that the source VMs will be migrated
        +     * from.
        +     * 
        + * + * string azure_location = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearAzureLocation() { + azureLocation_ = getDefaultInstance().getAzureLocation(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Immutable. The Azure location (region) that the source VMs will be migrated
        +     * from.
        +     * 
        + * + * string azure_location = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The bytes for azureLocation to set. + * @return This builder for chaining. + */ + public Builder setAzureLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + azureLocation_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
        +     * Output only. State of the source as determined by the health check.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.AzureSourceDetails.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
        +     * Output only. State of the source as determined by the health check.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.AzureSourceDetails.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. State of the source as determined by the health check.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.AzureSourceDetails.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureSourceDetails.State getState() { + com.google.cloud.vmmigration.v1.AzureSourceDetails.State result = + com.google.cloud.vmmigration.v1.AzureSourceDetails.State.forNumber(state_); + return result == null + ? com.google.cloud.vmmigration.v1.AzureSourceDetails.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
        +     * Output only. State of the source as determined by the health check.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.AzureSourceDetails.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.vmmigration.v1.AzureSourceDetails.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. State of the source as determined by the health check.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.AzureSourceDetails.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000008); + state_ = 0; + onChanged(); + return this; + } + + private com.google.rpc.Status error_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorBuilder_; + + /** + * + * + *
        +     * Output only. Provides details on the state of the Source in case of an
        +     * error.
        +     * 
        + * + * .google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the error field is set. + */ + public boolean hasError() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
        +     * Output only. Provides details on the state of the Source in case of an
        +     * error.
        +     * 
        + * + * .google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The error. + */ + public com.google.rpc.Status getError() { + if (errorBuilder_ == null) { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } else { + return errorBuilder_.getMessage(); + } + } + + /** + * + * + *
        +     * Output only. Provides details on the state of the Source in case of an
        +     * error.
        +     * 
        + * + * .google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + error_ = value; + } else { + errorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. Provides details on the state of the Source in case of an
        +     * error.
        +     * 
        + * + * .google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setError(com.google.rpc.Status.Builder builderForValue) { + if (errorBuilder_ == null) { + error_ = builderForValue.build(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. Provides details on the state of the Source in case of an
        +     * error.
        +     * 
        + * + * .google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && error_ != null + && error_ != com.google.rpc.Status.getDefaultInstance()) { + getErrorBuilder().mergeFrom(value); + } else { + error_ = value; + } + } else { + errorBuilder_.mergeFrom(value); + } + if (error_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Output only. Provides details on the state of the Source in case of an
        +     * error.
        +     * 
        + * + * .google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearError() { + bitField0_ = (bitField0_ & ~0x00000010); + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); + errorBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. Provides details on the state of the Source in case of an
        +     * error.
        +     * 
        + * + * .google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.rpc.Status.Builder getErrorBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getErrorFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Output only. Provides details on the state of the Source in case of an
        +     * error.
        +     * 
        + * + * .google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + if (errorBuilder_ != null) { + return errorBuilder_.getMessageOrBuilder(); + } else { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + } + + /** + * + * + *
        +     * Output only. Provides details on the state of the Source in case of an
        +     * error.
        +     * 
        + * + * .google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + errorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean()); + error_ = null; + } + return errorBuilder_; + } + + private com.google.protobuf.MapField + migrationResourcesUserTags_; + + private com.google.protobuf.MapField + internalGetMigrationResourcesUserTags() { + if (migrationResourcesUserTags_ == null) { + return com.google.protobuf.MapField.emptyMapField( + MigrationResourcesUserTagsDefaultEntryHolder.defaultEntry); + } + return migrationResourcesUserTags_; + } + + private com.google.protobuf.MapField + internalGetMutableMigrationResourcesUserTags() { + if (migrationResourcesUserTags_ == null) { + migrationResourcesUserTags_ = + com.google.protobuf.MapField.newMapField( + MigrationResourcesUserTagsDefaultEntryHolder.defaultEntry); + } + if (!migrationResourcesUserTags_.isMutable()) { + migrationResourcesUserTags_ = migrationResourcesUserTags_.copy(); + } + bitField0_ |= 0x00000020; + onChanged(); + return migrationResourcesUserTags_; + } + + public int getMigrationResourcesUserTagsCount() { + return internalGetMigrationResourcesUserTags().getMap().size(); + } + + /** + * + * + *
        +     * User specified tags to add to every M2VM generated resource in Azure.
        +     * These tags will be set in addition to the default tags that are set as part
        +     * of the migration process. The tags must not begin with the reserved prefix
        +     * `m4ce` or `m2vm`.
        +     * 
        + * + * map<string, string> migration_resources_user_tags = 8; + */ + @java.lang.Override + public boolean containsMigrationResourcesUserTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetMigrationResourcesUserTags().getMap().containsKey(key); + } + + /** Use {@link #getMigrationResourcesUserTagsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getMigrationResourcesUserTags() { + return getMigrationResourcesUserTagsMap(); + } + + /** + * + * + *
        +     * User specified tags to add to every M2VM generated resource in Azure.
        +     * These tags will be set in addition to the default tags that are set as part
        +     * of the migration process. The tags must not begin with the reserved prefix
        +     * `m4ce` or `m2vm`.
        +     * 
        + * + * map<string, string> migration_resources_user_tags = 8; + */ + @java.lang.Override + public java.util.Map getMigrationResourcesUserTagsMap() { + return internalGetMigrationResourcesUserTags().getMap(); + } + + /** + * + * + *
        +     * User specified tags to add to every M2VM generated resource in Azure.
        +     * These tags will be set in addition to the default tags that are set as part
        +     * of the migration process. The tags must not begin with the reserved prefix
        +     * `m4ce` or `m2vm`.
        +     * 
        + * + * map<string, string> migration_resources_user_tags = 8; + */ + @java.lang.Override + public /* nullable */ java.lang.String getMigrationResourcesUserTagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetMigrationResourcesUserTags().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
        +     * User specified tags to add to every M2VM generated resource in Azure.
        +     * These tags will be set in addition to the default tags that are set as part
        +     * of the migration process. The tags must not begin with the reserved prefix
        +     * `m4ce` or `m2vm`.
        +     * 
        + * + * map<string, string> migration_resources_user_tags = 8; + */ + @java.lang.Override + public java.lang.String getMigrationResourcesUserTagsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetMigrationResourcesUserTags().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearMigrationResourcesUserTags() { + bitField0_ = (bitField0_ & ~0x00000020); + internalGetMutableMigrationResourcesUserTags().getMutableMap().clear(); + return this; + } + + /** + * + * + *
        +     * User specified tags to add to every M2VM generated resource in Azure.
        +     * These tags will be set in addition to the default tags that are set as part
        +     * of the migration process. The tags must not begin with the reserved prefix
        +     * `m4ce` or `m2vm`.
        +     * 
        + * + * map<string, string> migration_resources_user_tags = 8; + */ + public Builder removeMigrationResourcesUserTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableMigrationResourcesUserTags().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableMigrationResourcesUserTags() { + bitField0_ |= 0x00000020; + return internalGetMutableMigrationResourcesUserTags().getMutableMap(); + } + + /** + * + * + *
        +     * User specified tags to add to every M2VM generated resource in Azure.
        +     * These tags will be set in addition to the default tags that are set as part
        +     * of the migration process. The tags must not begin with the reserved prefix
        +     * `m4ce` or `m2vm`.
        +     * 
        + * + * map<string, string> migration_resources_user_tags = 8; + */ + public Builder putMigrationResourcesUserTags(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableMigrationResourcesUserTags().getMutableMap().put(key, value); + bitField0_ |= 0x00000020; + return this; + } + + /** + * + * + *
        +     * User specified tags to add to every M2VM generated resource in Azure.
        +     * These tags will be set in addition to the default tags that are set as part
        +     * of the migration process. The tags must not begin with the reserved prefix
        +     * `m4ce` or `m2vm`.
        +     * 
        + * + * map<string, string> migration_resources_user_tags = 8; + */ + public Builder putAllMigrationResourcesUserTags( + java.util.Map values) { + internalGetMutableMigrationResourcesUserTags().getMutableMap().putAll(values); + bitField0_ |= 0x00000020; + return this; + } + + private java.lang.Object resourceGroupId_ = ""; + + /** + * + * + *
        +     * Output only. The ID of the Azure resource group that contains all resources
        +     * related to the migration process of this source.
        +     * 
        + * + * string resource_group_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The resourceGroupId. + */ + public java.lang.String getResourceGroupId() { + java.lang.Object ref = resourceGroupId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceGroupId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Output only. The ID of the Azure resource group that contains all resources
        +     * related to the migration process of this source.
        +     * 
        + * + * string resource_group_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for resourceGroupId. + */ + public com.google.protobuf.ByteString getResourceGroupIdBytes() { + java.lang.Object ref = resourceGroupId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceGroupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Output only. The ID of the Azure resource group that contains all resources
        +     * related to the migration process of this source.
        +     * 
        + * + * string resource_group_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The resourceGroupId to set. + * @return This builder for chaining. + */ + public Builder setResourceGroupId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resourceGroupId_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The ID of the Azure resource group that contains all resources
        +     * related to the migration process of this source.
        +     * 
        + * + * string resource_group_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearResourceGroupId() { + resourceGroupId_ = getDefaultInstance().getResourceGroupId(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The ID of the Azure resource group that contains all resources
        +     * related to the migration process of this source.
        +     * 
        + * + * string resource_group_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for resourceGroupId to set. + * @return This builder for chaining. + */ + public Builder setResourceGroupIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceGroupId_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmmigration.v1.AzureSourceDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.AzureSourceDetails) + private static final com.google.cloud.vmmigration.v1.AzureSourceDetails DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.AzureSourceDetails(); + } + + public static com.google.cloud.vmmigration.v1.AzureSourceDetails getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AzureSourceDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.AzureSourceDetails getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AzureSourceDetailsOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AzureSourceDetailsOrBuilder.java new file mode 100644 index 000000000000..0c96eaf33167 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AzureSourceDetailsOrBuilder.java @@ -0,0 +1,302 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface AzureSourceDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.AzureSourceDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Azure Credentials using tenant ID, client ID and secret.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials client_secret_creds = 9; + * + * + * @return Whether the clientSecretCreds field is set. + */ + boolean hasClientSecretCreds(); + + /** + * + * + *
        +   * Azure Credentials using tenant ID, client ID and secret.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials client_secret_creds = 9; + * + * + * @return The clientSecretCreds. + */ + com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials getClientSecretCreds(); + + /** + * + * + *
        +   * Azure Credentials using tenant ID, client ID and secret.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentials client_secret_creds = 9; + * + */ + com.google.cloud.vmmigration.v1.AzureSourceDetails.ClientSecretCredentialsOrBuilder + getClientSecretCredsOrBuilder(); + + /** + * + * + *
        +   * Immutable. Azure subscription ID.
        +   * 
        + * + * string subscription_id = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The subscriptionId. + */ + java.lang.String getSubscriptionId(); + + /** + * + * + *
        +   * Immutable. Azure subscription ID.
        +   * 
        + * + * string subscription_id = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for subscriptionId. + */ + com.google.protobuf.ByteString getSubscriptionIdBytes(); + + /** + * + * + *
        +   * Immutable. The Azure location (region) that the source VMs will be migrated
        +   * from.
        +   * 
        + * + * string azure_location = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The azureLocation. + */ + java.lang.String getAzureLocation(); + + /** + * + * + *
        +   * Immutable. The Azure location (region) that the source VMs will be migrated
        +   * from.
        +   * 
        + * + * string azure_location = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for azureLocation. + */ + com.google.protobuf.ByteString getAzureLocationBytes(); + + /** + * + * + *
        +   * Output only. State of the source as determined by the health check.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.AzureSourceDetails.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
        +   * Output only. State of the source as determined by the health check.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.AzureSourceDetails.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.vmmigration.v1.AzureSourceDetails.State getState(); + + /** + * + * + *
        +   * Output only. Provides details on the state of the Source in case of an
        +   * error.
        +   * 
        + * + * .google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the error field is set. + */ + boolean hasError(); + + /** + * + * + *
        +   * Output only. Provides details on the state of the Source in case of an
        +   * error.
        +   * 
        + * + * .google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The error. + */ + com.google.rpc.Status getError(); + + /** + * + * + *
        +   * Output only. Provides details on the state of the Source in case of an
        +   * error.
        +   * 
        + * + * .google.rpc.Status error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.rpc.StatusOrBuilder getErrorOrBuilder(); + + /** + * + * + *
        +   * User specified tags to add to every M2VM generated resource in Azure.
        +   * These tags will be set in addition to the default tags that are set as part
        +   * of the migration process. The tags must not begin with the reserved prefix
        +   * `m4ce` or `m2vm`.
        +   * 
        + * + * map<string, string> migration_resources_user_tags = 8; + */ + int getMigrationResourcesUserTagsCount(); + + /** + * + * + *
        +   * User specified tags to add to every M2VM generated resource in Azure.
        +   * These tags will be set in addition to the default tags that are set as part
        +   * of the migration process. The tags must not begin with the reserved prefix
        +   * `m4ce` or `m2vm`.
        +   * 
        + * + * map<string, string> migration_resources_user_tags = 8; + */ + boolean containsMigrationResourcesUserTags(java.lang.String key); + + /** Use {@link #getMigrationResourcesUserTagsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getMigrationResourcesUserTags(); + + /** + * + * + *
        +   * User specified tags to add to every M2VM generated resource in Azure.
        +   * These tags will be set in addition to the default tags that are set as part
        +   * of the migration process. The tags must not begin with the reserved prefix
        +   * `m4ce` or `m2vm`.
        +   * 
        + * + * map<string, string> migration_resources_user_tags = 8; + */ + java.util.Map getMigrationResourcesUserTagsMap(); + + /** + * + * + *
        +   * User specified tags to add to every M2VM generated resource in Azure.
        +   * These tags will be set in addition to the default tags that are set as part
        +   * of the migration process. The tags must not begin with the reserved prefix
        +   * `m4ce` or `m2vm`.
        +   * 
        + * + * map<string, string> migration_resources_user_tags = 8; + */ + /* nullable */ + java.lang.String getMigrationResourcesUserTagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
        +   * User specified tags to add to every M2VM generated resource in Azure.
        +   * These tags will be set in addition to the default tags that are set as part
        +   * of the migration process. The tags must not begin with the reserved prefix
        +   * `m4ce` or `m2vm`.
        +   * 
        + * + * map<string, string> migration_resources_user_tags = 8; + */ + java.lang.String getMigrationResourcesUserTagsOrThrow(java.lang.String key); + + /** + * + * + *
        +   * Output only. The ID of the Azure resource group that contains all resources
        +   * related to the migration process of this source.
        +   * 
        + * + * string resource_group_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The resourceGroupId. + */ + java.lang.String getResourceGroupId(); + + /** + * + * + *
        +   * Output only. The ID of the Azure resource group that contains all resources
        +   * related to the migration process of this source.
        +   * 
        + * + * string resource_group_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for resourceGroupId. + */ + com.google.protobuf.ByteString getResourceGroupIdBytes(); + + com.google.cloud.vmmigration.v1.AzureSourceDetails.CredentialsTypeCase getCredentialsTypeCase(); +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AzureSourceVmDetails.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AzureSourceVmDetails.java new file mode 100644 index 000000000000..ee7f3dbd477b --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AzureSourceVmDetails.java @@ -0,0 +1,2869 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * Represent the source Azure VM details.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.AzureSourceVmDetails} + */ +public final class AzureSourceVmDetails extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.AzureSourceVmDetails) + AzureSourceVmDetailsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use AzureSourceVmDetails.newBuilder() to construct. + private AzureSourceVmDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AzureSourceVmDetails() { + firmware_ = 0; + disks_ = java.util.Collections.emptyList(); + architecture_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AzureSourceVmDetails(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AzureSourceVmDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AzureSourceVmDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.AzureSourceVmDetails.class, + com.google.cloud.vmmigration.v1.AzureSourceVmDetails.Builder.class); + } + + /** + * + * + *
        +   * Possible values for Azure VM firmware.
        +   * 
        + * + * Protobuf enum {@code google.cloud.vmmigration.v1.AzureSourceVmDetails.Firmware} + */ + public enum Firmware implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
        +     * The firmware is unknown.
        +     * 
        + * + * FIRMWARE_UNSPECIFIED = 0; + */ + FIRMWARE_UNSPECIFIED(0), + /** + * + * + *
        +     * The firmware is EFI.
        +     * 
        + * + * EFI = 1; + */ + EFI(1), + /** + * + * + *
        +     * The firmware is BIOS.
        +     * 
        + * + * BIOS = 2; + */ + BIOS(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
        +     * The firmware is unknown.
        +     * 
        + * + * FIRMWARE_UNSPECIFIED = 0; + */ + public static final int FIRMWARE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
        +     * The firmware is EFI.
        +     * 
        + * + * EFI = 1; + */ + public static final int EFI_VALUE = 1; + + /** + * + * + *
        +     * The firmware is BIOS.
        +     * 
        + * + * BIOS = 2; + */ + public static final int BIOS_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 Firmware 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 Firmware forNumber(int value) { + switch (value) { + case 0: + return FIRMWARE_UNSPECIFIED; + case 1: + return EFI; + case 2: + return BIOS; + 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 Firmware findValueByNumber(int number) { + return Firmware.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.vmmigration.v1.AzureSourceVmDetails.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Firmware[] VALUES = values(); + + public static Firmware 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 Firmware(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.vmmigration.v1.AzureSourceVmDetails.Firmware) + } + + public interface AzureDiskDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +     * Output only. The ordinal number of the disk.
        +     * 
        + * + * int32 disk_number = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The diskNumber. + */ + int getDiskNumber(); + + /** + * + * + *
        +     * Output only. Azure disk ID.
        +     * 
        + * + * string disk_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The diskId. + */ + java.lang.String getDiskId(); + + /** + * + * + *
        +     * Output only. Azure disk ID.
        +     * 
        + * + * string disk_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for diskId. + */ + com.google.protobuf.ByteString getDiskIdBytes(); + + /** + * + * + *
        +     * Output only. Size in GB.
        +     * 
        + * + * int64 size_gb = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sizeGb. + */ + long getSizeGb(); + } + + /** + * + * + *
        +   * The details of an Azure VM disk.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails} + */ + public static final class AzureDiskDetails extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails) + AzureDiskDetailsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use AzureDiskDetails.newBuilder() to construct. + private AzureDiskDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AzureDiskDetails() { + diskId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AzureDiskDetails(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AzureSourceVmDetails_AzureDiskDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AzureSourceVmDetails_AzureDiskDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails.class, + com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails.Builder.class); + } + + public static final int DISK_NUMBER_FIELD_NUMBER = 1; + private int diskNumber_ = 0; + + /** + * + * + *
        +     * Output only. The ordinal number of the disk.
        +     * 
        + * + * int32 disk_number = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The diskNumber. + */ + @java.lang.Override + public int getDiskNumber() { + return diskNumber_; + } + + public static final int DISK_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object diskId_ = ""; + + /** + * + * + *
        +     * Output only. Azure disk ID.
        +     * 
        + * + * string disk_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The diskId. + */ + @java.lang.Override + public java.lang.String getDiskId() { + java.lang.Object ref = diskId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + diskId_ = s; + return s; + } + } + + /** + * + * + *
        +     * Output only. Azure disk ID.
        +     * 
        + * + * string disk_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for diskId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDiskIdBytes() { + java.lang.Object ref = diskId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + diskId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SIZE_GB_FIELD_NUMBER = 3; + private long sizeGb_ = 0L; + + /** + * + * + *
        +     * Output only. Size in GB.
        +     * 
        + * + * int64 size_gb = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sizeGb. + */ + @java.lang.Override + public long getSizeGb() { + return sizeGb_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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 (diskNumber_ != 0) { + output.writeInt32(1, diskNumber_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, diskId_); + } + if (sizeGb_ != 0L) { + output.writeInt64(3, sizeGb_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (diskNumber_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, diskNumber_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, diskId_); + } + if (sizeGb_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, sizeGb_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails other = + (com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails) obj; + + if (getDiskNumber() != other.getDiskNumber()) return false; + if (!getDiskId().equals(other.getDiskId())) return false; + if (getSizeGb() != other.getSizeGb()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DISK_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getDiskNumber(); + hash = (37 * hash) + DISK_ID_FIELD_NUMBER; + hash = (53 * hash) + getDiskId().hashCode(); + hash = (37 * hash) + SIZE_GB_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSizeGb()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails 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.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails parseFrom( + 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.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails 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.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails + 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.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails 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.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 details of an Azure VM disk.
        +     * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails) + com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AzureSourceVmDetails_AzureDiskDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AzureSourceVmDetails_AzureDiskDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails.class, + com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails.Builder + .class); + } + + // Construct using + // com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + diskNumber_ = 0; + diskId_ = ""; + sizeGb_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AzureSourceVmDetails_AzureDiskDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails + getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails build() { + com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails buildPartial() { + com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails result = + new com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.diskNumber_ = diskNumber_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.diskId_ = diskId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.sizeGb_ = sizeGb_; + } + } + + @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.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails) { + return mergeFrom( + (com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails other) { + if (other + == com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails + .getDefaultInstance()) return this; + if (other.getDiskNumber() != 0) { + setDiskNumber(other.getDiskNumber()); + } + if (!other.getDiskId().isEmpty()) { + diskId_ = other.diskId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getSizeGb() != 0L) { + setSizeGb(other.getSizeGb()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + diskNumber_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + diskId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + sizeGb_ = 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 int diskNumber_; + + /** + * + * + *
        +       * Output only. The ordinal number of the disk.
        +       * 
        + * + * int32 disk_number = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The diskNumber. + */ + @java.lang.Override + public int getDiskNumber() { + return diskNumber_; + } + + /** + * + * + *
        +       * Output only. The ordinal number of the disk.
        +       * 
        + * + * int32 disk_number = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The diskNumber to set. + * @return This builder for chaining. + */ + public Builder setDiskNumber(int value) { + + diskNumber_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +       * Output only. The ordinal number of the disk.
        +       * 
        + * + * int32 disk_number = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDiskNumber() { + bitField0_ = (bitField0_ & ~0x00000001); + diskNumber_ = 0; + onChanged(); + return this; + } + + private java.lang.Object diskId_ = ""; + + /** + * + * + *
        +       * Output only. Azure disk ID.
        +       * 
        + * + * string disk_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The diskId. + */ + public java.lang.String getDiskId() { + java.lang.Object ref = diskId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + diskId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +       * Output only. Azure disk ID.
        +       * 
        + * + * string disk_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for diskId. + */ + public com.google.protobuf.ByteString getDiskIdBytes() { + java.lang.Object ref = diskId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + diskId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +       * Output only. Azure disk ID.
        +       * 
        + * + * string disk_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The diskId to set. + * @return This builder for chaining. + */ + public Builder setDiskId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + diskId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +       * Output only. Azure disk ID.
        +       * 
        + * + * string disk_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDiskId() { + diskId_ = getDefaultInstance().getDiskId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
        +       * Output only. Azure disk ID.
        +       * 
        + * + * string disk_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for diskId to set. + * @return This builder for chaining. + */ + public Builder setDiskIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + diskId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private long sizeGb_; + + /** + * + * + *
        +       * Output only. Size in GB.
        +       * 
        + * + * int64 size_gb = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sizeGb. + */ + @java.lang.Override + public long getSizeGb() { + return sizeGb_; + } + + /** + * + * + *
        +       * Output only. Size in GB.
        +       * 
        + * + * int64 size_gb = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The sizeGb to set. + * @return This builder for chaining. + */ + public Builder setSizeGb(long value) { + + sizeGb_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +       * Output only. Size in GB.
        +       * 
        + * + * int64 size_gb = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSizeGb() { + bitField0_ = (bitField0_ & ~0x00000004); + sizeGb_ = 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.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails) + private static final com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails(); + } + + public static com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AzureDiskDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int FIRMWARE_FIELD_NUMBER = 1; + private int firmware_ = 0; + + /** + * + * + *
        +   * Output only. The firmware type of the source VM.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.AzureSourceVmDetails.Firmware firmware = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for firmware. + */ + @java.lang.Override + public int getFirmwareValue() { + return firmware_; + } + + /** + * + * + *
        +   * Output only. The firmware type of the source VM.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.AzureSourceVmDetails.Firmware firmware = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The firmware. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureSourceVmDetails.Firmware getFirmware() { + com.google.cloud.vmmigration.v1.AzureSourceVmDetails.Firmware result = + com.google.cloud.vmmigration.v1.AzureSourceVmDetails.Firmware.forNumber(firmware_); + return result == null + ? com.google.cloud.vmmigration.v1.AzureSourceVmDetails.Firmware.UNRECOGNIZED + : result; + } + + public static final int COMMITTED_STORAGE_BYTES_FIELD_NUMBER = 2; + private long committedStorageBytes_ = 0L; + + /** + * + * + *
        +   * Output only. The total size of the disks being migrated in bytes.
        +   * 
        + * + * int64 committed_storage_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The committedStorageBytes. + */ + @java.lang.Override + public long getCommittedStorageBytes() { + return committedStorageBytes_; + } + + public static final int DISKS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List + disks_; + + /** + * + * + *
        +   * Output only. The disks attached to the source VM.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getDisksList() { + return disks_; + } + + /** + * + * + *
        +   * Output only. The disks attached to the source VM.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetailsOrBuilder> + getDisksOrBuilderList() { + return disks_; + } + + /** + * + * + *
        +   * Output only. The disks attached to the source VM.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getDisksCount() { + return disks_.size(); + } + + /** + * + * + *
        +   * Output only. The disks attached to the source VM.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails getDisks(int index) { + return disks_.get(index); + } + + /** + * + * + *
        +   * Output only. The disks attached to the source VM.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetailsOrBuilder + getDisksOrBuilder(int index) { + return disks_.get(index); + } + + public static final int VM_CAPABILITIES_INFO_FIELD_NUMBER = 5; + private com.google.cloud.vmmigration.v1.VmCapabilities vmCapabilitiesInfo_; + + /** + * + * + *
        +   * Output only. Information about VM capabilities needed for some Compute
        +   * Engine features.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.VmCapabilities vm_capabilities_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the vmCapabilitiesInfo field is set. + */ + @java.lang.Override + public boolean hasVmCapabilitiesInfo() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
        +   * Output only. Information about VM capabilities needed for some Compute
        +   * Engine features.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.VmCapabilities vm_capabilities_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The vmCapabilitiesInfo. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.VmCapabilities getVmCapabilitiesInfo() { + return vmCapabilitiesInfo_ == null + ? com.google.cloud.vmmigration.v1.VmCapabilities.getDefaultInstance() + : vmCapabilitiesInfo_; + } + + /** + * + * + *
        +   * Output only. Information about VM capabilities needed for some Compute
        +   * Engine features.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.VmCapabilities vm_capabilities_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.VmCapabilitiesOrBuilder getVmCapabilitiesInfoOrBuilder() { + return vmCapabilitiesInfo_ == null + ? com.google.cloud.vmmigration.v1.VmCapabilities.getDefaultInstance() + : vmCapabilitiesInfo_; + } + + public static final int ARCHITECTURE_FIELD_NUMBER = 6; + private int architecture_ = 0; + + /** + * + * + *
        +   * Output only. The VM architecture.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.VmArchitecture architecture = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for architecture. + */ + @java.lang.Override + public int getArchitectureValue() { + return architecture_; + } + + /** + * + * + *
        +   * Output only. The VM architecture.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.VmArchitecture architecture = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The architecture. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.VmArchitecture getArchitecture() { + com.google.cloud.vmmigration.v1.VmArchitecture result = + com.google.cloud.vmmigration.v1.VmArchitecture.forNumber(architecture_); + return result == null ? com.google.cloud.vmmigration.v1.VmArchitecture.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 (firmware_ + != com.google.cloud.vmmigration.v1.AzureSourceVmDetails.Firmware.FIRMWARE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, firmware_); + } + if (committedStorageBytes_ != 0L) { + output.writeInt64(2, committedStorageBytes_); + } + for (int i = 0; i < disks_.size(); i++) { + output.writeMessage(3, disks_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getVmCapabilitiesInfo()); + } + if (architecture_ + != com.google.cloud.vmmigration.v1.VmArchitecture.VM_ARCHITECTURE_UNSPECIFIED.getNumber()) { + output.writeEnum(6, architecture_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (firmware_ + != com.google.cloud.vmmigration.v1.AzureSourceVmDetails.Firmware.FIRMWARE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, firmware_); + } + if (committedStorageBytes_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, committedStorageBytes_); + } + for (int i = 0; i < disks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, disks_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getVmCapabilitiesInfo()); + } + if (architecture_ + != com.google.cloud.vmmigration.v1.VmArchitecture.VM_ARCHITECTURE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, architecture_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.vmmigration.v1.AzureSourceVmDetails)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.AzureSourceVmDetails other = + (com.google.cloud.vmmigration.v1.AzureSourceVmDetails) obj; + + if (firmware_ != other.firmware_) return false; + if (getCommittedStorageBytes() != other.getCommittedStorageBytes()) return false; + if (!getDisksList().equals(other.getDisksList())) return false; + if (hasVmCapabilitiesInfo() != other.hasVmCapabilitiesInfo()) return false; + if (hasVmCapabilitiesInfo()) { + if (!getVmCapabilitiesInfo().equals(other.getVmCapabilitiesInfo())) return false; + } + if (architecture_ != other.architecture_) 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) + FIRMWARE_FIELD_NUMBER; + hash = (53 * hash) + firmware_; + hash = (37 * hash) + COMMITTED_STORAGE_BYTES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCommittedStorageBytes()); + if (getDisksCount() > 0) { + hash = (37 * hash) + DISKS_FIELD_NUMBER; + hash = (53 * hash) + getDisksList().hashCode(); + } + if (hasVmCapabilitiesInfo()) { + hash = (37 * hash) + VM_CAPABILITIES_INFO_FIELD_NUMBER; + hash = (53 * hash) + getVmCapabilitiesInfo().hashCode(); + } + hash = (37 * hash) + ARCHITECTURE_FIELD_NUMBER; + hash = (53 * hash) + architecture_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.AzureSourceVmDetails parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.AzureSourceVmDetails 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.vmmigration.v1.AzureSourceVmDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.AzureSourceVmDetails parseFrom( + 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.vmmigration.v1.AzureSourceVmDetails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.AzureSourceVmDetails parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.AzureSourceVmDetails parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.AzureSourceVmDetails 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.vmmigration.v1.AzureSourceVmDetails parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.AzureSourceVmDetails 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.vmmigration.v1.AzureSourceVmDetails parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.AzureSourceVmDetails 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.vmmigration.v1.AzureSourceVmDetails prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
        +   * Represent the source Azure VM details.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.AzureSourceVmDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.AzureSourceVmDetails) + com.google.cloud.vmmigration.v1.AzureSourceVmDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AzureSourceVmDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AzureSourceVmDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.AzureSourceVmDetails.class, + com.google.cloud.vmmigration.v1.AzureSourceVmDetails.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.AzureSourceVmDetails.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDisksFieldBuilder(); + getVmCapabilitiesInfoFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + firmware_ = 0; + committedStorageBytes_ = 0L; + if (disksBuilder_ == null) { + disks_ = java.util.Collections.emptyList(); + } else { + disks_ = null; + disksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + vmCapabilitiesInfo_ = null; + if (vmCapabilitiesInfoBuilder_ != null) { + vmCapabilitiesInfoBuilder_.dispose(); + vmCapabilitiesInfoBuilder_ = null; + } + architecture_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AzureSourceVmDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureSourceVmDetails getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.AzureSourceVmDetails.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureSourceVmDetails build() { + com.google.cloud.vmmigration.v1.AzureSourceVmDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureSourceVmDetails buildPartial() { + com.google.cloud.vmmigration.v1.AzureSourceVmDetails result = + new com.google.cloud.vmmigration.v1.AzureSourceVmDetails(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.vmmigration.v1.AzureSourceVmDetails result) { + if (disksBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + disks_ = java.util.Collections.unmodifiableList(disks_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.disks_ = disks_; + } else { + result.disks_ = disksBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.vmmigration.v1.AzureSourceVmDetails result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.firmware_ = firmware_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.committedStorageBytes_ = committedStorageBytes_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.vmCapabilitiesInfo_ = + vmCapabilitiesInfoBuilder_ == null + ? vmCapabilitiesInfo_ + : vmCapabilitiesInfoBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.architecture_ = architecture_; + } + 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.vmmigration.v1.AzureSourceVmDetails) { + return mergeFrom((com.google.cloud.vmmigration.v1.AzureSourceVmDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.AzureSourceVmDetails other) { + if (other == com.google.cloud.vmmigration.v1.AzureSourceVmDetails.getDefaultInstance()) + return this; + if (other.firmware_ != 0) { + setFirmwareValue(other.getFirmwareValue()); + } + if (other.getCommittedStorageBytes() != 0L) { + setCommittedStorageBytes(other.getCommittedStorageBytes()); + } + if (disksBuilder_ == null) { + if (!other.disks_.isEmpty()) { + if (disks_.isEmpty()) { + disks_ = other.disks_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureDisksIsMutable(); + disks_.addAll(other.disks_); + } + onChanged(); + } + } else { + if (!other.disks_.isEmpty()) { + if (disksBuilder_.isEmpty()) { + disksBuilder_.dispose(); + disksBuilder_ = null; + disks_ = other.disks_; + bitField0_ = (bitField0_ & ~0x00000004); + disksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDisksFieldBuilder() + : null; + } else { + disksBuilder_.addAllMessages(other.disks_); + } + } + } + if (other.hasVmCapabilitiesInfo()) { + mergeVmCapabilitiesInfo(other.getVmCapabilitiesInfo()); + } + if (other.architecture_ != 0) { + setArchitectureValue(other.getArchitectureValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + firmware_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + committedStorageBytes_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails m = + input.readMessage( + com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails + .parser(), + extensionRegistry); + if (disksBuilder_ == null) { + ensureDisksIsMutable(); + disks_.add(m); + } else { + disksBuilder_.addMessage(m); + } + break; + } // case 26 + case 42: + { + input.readMessage( + getVmCapabilitiesInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 48: + { + architecture_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was 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 firmware_ = 0; + + /** + * + * + *
        +     * Output only. The firmware type of the source VM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.AzureSourceVmDetails.Firmware firmware = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for firmware. + */ + @java.lang.Override + public int getFirmwareValue() { + return firmware_; + } + + /** + * + * + *
        +     * Output only. The firmware type of the source VM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.AzureSourceVmDetails.Firmware firmware = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for firmware to set. + * @return This builder for chaining. + */ + public Builder setFirmwareValue(int value) { + firmware_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The firmware type of the source VM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.AzureSourceVmDetails.Firmware firmware = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The firmware. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureSourceVmDetails.Firmware getFirmware() { + com.google.cloud.vmmigration.v1.AzureSourceVmDetails.Firmware result = + com.google.cloud.vmmigration.v1.AzureSourceVmDetails.Firmware.forNumber(firmware_); + return result == null + ? com.google.cloud.vmmigration.v1.AzureSourceVmDetails.Firmware.UNRECOGNIZED + : result; + } + + /** + * + * + *
        +     * Output only. The firmware type of the source VM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.AzureSourceVmDetails.Firmware firmware = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The firmware to set. + * @return This builder for chaining. + */ + public Builder setFirmware( + com.google.cloud.vmmigration.v1.AzureSourceVmDetails.Firmware value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + firmware_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The firmware type of the source VM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.AzureSourceVmDetails.Firmware firmware = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearFirmware() { + bitField0_ = (bitField0_ & ~0x00000001); + firmware_ = 0; + onChanged(); + return this; + } + + private long committedStorageBytes_; + + /** + * + * + *
        +     * Output only. The total size of the disks being migrated in bytes.
        +     * 
        + * + * int64 committed_storage_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The committedStorageBytes. + */ + @java.lang.Override + public long getCommittedStorageBytes() { + return committedStorageBytes_; + } + + /** + * + * + *
        +     * Output only. The total size of the disks being migrated in bytes.
        +     * 
        + * + * int64 committed_storage_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The committedStorageBytes to set. + * @return This builder for chaining. + */ + public Builder setCommittedStorageBytes(long value) { + + committedStorageBytes_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The total size of the disks being migrated in bytes.
        +     * 
        + * + * int64 committed_storage_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearCommittedStorageBytes() { + bitField0_ = (bitField0_ & ~0x00000002); + committedStorageBytes_ = 0L; + onChanged(); + return this; + } + + private java.util.List + disks_ = java.util.Collections.emptyList(); + + private void ensureDisksIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + disks_ = + new java.util.ArrayList< + com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails>(disks_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails, + com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails.Builder, + com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetailsOrBuilder> + disksBuilder_; + + /** + * + * + *
        +     * Output only. The disks attached to the source VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getDisksList() { + if (disksBuilder_ == null) { + return java.util.Collections.unmodifiableList(disks_); + } else { + return disksBuilder_.getMessageList(); + } + } + + /** + * + * + *
        +     * Output only. The disks attached to the source VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getDisksCount() { + if (disksBuilder_ == null) { + return disks_.size(); + } else { + return disksBuilder_.getCount(); + } + } + + /** + * + * + *
        +     * Output only. The disks attached to the source VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails getDisks( + int index) { + if (disksBuilder_ == null) { + return disks_.get(index); + } else { + return disksBuilder_.getMessage(index); + } + } + + /** + * + * + *
        +     * Output only. The disks attached to the source VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDisks( + int index, com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails value) { + if (disksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDisksIsMutable(); + disks_.set(index, value); + onChanged(); + } else { + disksBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * Output only. The disks attached to the source VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDisks( + int index, + com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails.Builder + builderForValue) { + if (disksBuilder_ == null) { + ensureDisksIsMutable(); + disks_.set(index, builderForValue.build()); + onChanged(); + } else { + disksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Output only. The disks attached to the source VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDisks( + com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails value) { + if (disksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDisksIsMutable(); + disks_.add(value); + onChanged(); + } else { + disksBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
        +     * Output only. The disks attached to the source VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDisks( + int index, com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails value) { + if (disksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDisksIsMutable(); + disks_.add(index, value); + onChanged(); + } else { + disksBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * Output only. The disks attached to the source VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDisks( + com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails.Builder + builderForValue) { + if (disksBuilder_ == null) { + ensureDisksIsMutable(); + disks_.add(builderForValue.build()); + onChanged(); + } else { + disksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Output only. The disks attached to the source VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDisks( + int index, + com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails.Builder + builderForValue) { + if (disksBuilder_ == null) { + ensureDisksIsMutable(); + disks_.add(index, builderForValue.build()); + onChanged(); + } else { + disksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Output only. The disks attached to the source VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllDisks( + java.lang.Iterable< + ? extends com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails> + values) { + if (disksBuilder_ == null) { + ensureDisksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, disks_); + onChanged(); + } else { + disksBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
        +     * Output only. The disks attached to the source VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDisks() { + if (disksBuilder_ == null) { + disks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + disksBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Output only. The disks attached to the source VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeDisks(int index) { + if (disksBuilder_ == null) { + ensureDisksIsMutable(); + disks_.remove(index); + onChanged(); + } else { + disksBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
        +     * Output only. The disks attached to the source VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails.Builder + getDisksBuilder(int index) { + return getDisksFieldBuilder().getBuilder(index); + } + + /** + * + * + *
        +     * Output only. The disks attached to the source VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetailsOrBuilder + getDisksOrBuilder(int index) { + if (disksBuilder_ == null) { + return disks_.get(index); + } else { + return disksBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
        +     * Output only. The disks attached to the source VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends + com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetailsOrBuilder> + getDisksOrBuilderList() { + if (disksBuilder_ != null) { + return disksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(disks_); + } + } + + /** + * + * + *
        +     * Output only. The disks attached to the source VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails.Builder + addDisksBuilder() { + return getDisksFieldBuilder() + .addBuilder( + com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails + .getDefaultInstance()); + } + + /** + * + * + *
        +     * Output only. The disks attached to the source VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails.Builder + addDisksBuilder(int index) { + return getDisksFieldBuilder() + .addBuilder( + index, + com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails + .getDefaultInstance()); + } + + /** + * + * + *
        +     * Output only. The disks attached to the source VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails.Builder> + getDisksBuilderList() { + return getDisksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails, + com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails.Builder, + com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetailsOrBuilder> + getDisksFieldBuilder() { + if (disksBuilder_ == null) { + disksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails, + com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails.Builder, + com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetailsOrBuilder>( + disks_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + disks_ = null; + } + return disksBuilder_; + } + + private com.google.cloud.vmmigration.v1.VmCapabilities vmCapabilitiesInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.VmCapabilities, + com.google.cloud.vmmigration.v1.VmCapabilities.Builder, + com.google.cloud.vmmigration.v1.VmCapabilitiesOrBuilder> + vmCapabilitiesInfoBuilder_; + + /** + * + * + *
        +     * Output only. Information about VM capabilities needed for some Compute
        +     * Engine features.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.VmCapabilities vm_capabilities_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the vmCapabilitiesInfo field is set. + */ + public boolean hasVmCapabilitiesInfo() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
        +     * Output only. Information about VM capabilities needed for some Compute
        +     * Engine features.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.VmCapabilities vm_capabilities_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The vmCapabilitiesInfo. + */ + public com.google.cloud.vmmigration.v1.VmCapabilities getVmCapabilitiesInfo() { + if (vmCapabilitiesInfoBuilder_ == null) { + return vmCapabilitiesInfo_ == null + ? com.google.cloud.vmmigration.v1.VmCapabilities.getDefaultInstance() + : vmCapabilitiesInfo_; + } else { + return vmCapabilitiesInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
        +     * Output only. Information about VM capabilities needed for some Compute
        +     * Engine features.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.VmCapabilities vm_capabilities_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setVmCapabilitiesInfo(com.google.cloud.vmmigration.v1.VmCapabilities value) { + if (vmCapabilitiesInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + vmCapabilitiesInfo_ = value; + } else { + vmCapabilitiesInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. Information about VM capabilities needed for some Compute
        +     * Engine features.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.VmCapabilities vm_capabilities_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setVmCapabilitiesInfo( + com.google.cloud.vmmigration.v1.VmCapabilities.Builder builderForValue) { + if (vmCapabilitiesInfoBuilder_ == null) { + vmCapabilitiesInfo_ = builderForValue.build(); + } else { + vmCapabilitiesInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. Information about VM capabilities needed for some Compute
        +     * Engine features.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.VmCapabilities vm_capabilities_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeVmCapabilitiesInfo(com.google.cloud.vmmigration.v1.VmCapabilities value) { + if (vmCapabilitiesInfoBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && vmCapabilitiesInfo_ != null + && vmCapabilitiesInfo_ + != com.google.cloud.vmmigration.v1.VmCapabilities.getDefaultInstance()) { + getVmCapabilitiesInfoBuilder().mergeFrom(value); + } else { + vmCapabilitiesInfo_ = value; + } + } else { + vmCapabilitiesInfoBuilder_.mergeFrom(value); + } + if (vmCapabilitiesInfo_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Output only. Information about VM capabilities needed for some Compute
        +     * Engine features.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.VmCapabilities vm_capabilities_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearVmCapabilitiesInfo() { + bitField0_ = (bitField0_ & ~0x00000008); + vmCapabilitiesInfo_ = null; + if (vmCapabilitiesInfoBuilder_ != null) { + vmCapabilitiesInfoBuilder_.dispose(); + vmCapabilitiesInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. Information about VM capabilities needed for some Compute
        +     * Engine features.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.VmCapabilities vm_capabilities_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.VmCapabilities.Builder getVmCapabilitiesInfoBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getVmCapabilitiesInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Output only. Information about VM capabilities needed for some Compute
        +     * Engine features.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.VmCapabilities vm_capabilities_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.VmCapabilitiesOrBuilder + getVmCapabilitiesInfoOrBuilder() { + if (vmCapabilitiesInfoBuilder_ != null) { + return vmCapabilitiesInfoBuilder_.getMessageOrBuilder(); + } else { + return vmCapabilitiesInfo_ == null + ? com.google.cloud.vmmigration.v1.VmCapabilities.getDefaultInstance() + : vmCapabilitiesInfo_; + } + } + + /** + * + * + *
        +     * Output only. Information about VM capabilities needed for some Compute
        +     * Engine features.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.VmCapabilities vm_capabilities_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.VmCapabilities, + com.google.cloud.vmmigration.v1.VmCapabilities.Builder, + com.google.cloud.vmmigration.v1.VmCapabilitiesOrBuilder> + getVmCapabilitiesInfoFieldBuilder() { + if (vmCapabilitiesInfoBuilder_ == null) { + vmCapabilitiesInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.VmCapabilities, + com.google.cloud.vmmigration.v1.VmCapabilities.Builder, + com.google.cloud.vmmigration.v1.VmCapabilitiesOrBuilder>( + getVmCapabilitiesInfo(), getParentForChildren(), isClean()); + vmCapabilitiesInfo_ = null; + } + return vmCapabilitiesInfoBuilder_; + } + + private int architecture_ = 0; + + /** + * + * + *
        +     * Output only. The VM architecture.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.VmArchitecture architecture = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for architecture. + */ + @java.lang.Override + public int getArchitectureValue() { + return architecture_; + } + + /** + * + * + *
        +     * Output only. The VM architecture.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.VmArchitecture architecture = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for architecture to set. + * @return This builder for chaining. + */ + public Builder setArchitectureValue(int value) { + architecture_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The VM architecture.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.VmArchitecture architecture = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The architecture. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.VmArchitecture getArchitecture() { + com.google.cloud.vmmigration.v1.VmArchitecture result = + com.google.cloud.vmmigration.v1.VmArchitecture.forNumber(architecture_); + return result == null ? com.google.cloud.vmmigration.v1.VmArchitecture.UNRECOGNIZED : result; + } + + /** + * + * + *
        +     * Output only. The VM architecture.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.VmArchitecture architecture = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The architecture to set. + * @return This builder for chaining. + */ + public Builder setArchitecture(com.google.cloud.vmmigration.v1.VmArchitecture value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + architecture_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The VM architecture.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.VmArchitecture architecture = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearArchitecture() { + bitField0_ = (bitField0_ & ~0x00000010); + architecture_ = 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.vmmigration.v1.AzureSourceVmDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.AzureSourceVmDetails) + private static final com.google.cloud.vmmigration.v1.AzureSourceVmDetails DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.AzureSourceVmDetails(); + } + + public static com.google.cloud.vmmigration.v1.AzureSourceVmDetails getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AzureSourceVmDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.AzureSourceVmDetails getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AzureSourceVmDetailsOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AzureSourceVmDetailsOrBuilder.java new file mode 100644 index 000000000000..8b32e3fbe478 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AzureSourceVmDetailsOrBuilder.java @@ -0,0 +1,214 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface AzureSourceVmDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.AzureSourceVmDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Output only. The firmware type of the source VM.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.AzureSourceVmDetails.Firmware firmware = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for firmware. + */ + int getFirmwareValue(); + + /** + * + * + *
        +   * Output only. The firmware type of the source VM.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.AzureSourceVmDetails.Firmware firmware = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The firmware. + */ + com.google.cloud.vmmigration.v1.AzureSourceVmDetails.Firmware getFirmware(); + + /** + * + * + *
        +   * Output only. The total size of the disks being migrated in bytes.
        +   * 
        + * + * int64 committed_storage_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The committedStorageBytes. + */ + long getCommittedStorageBytes(); + + /** + * + * + *
        +   * Output only. The disks attached to the source VM.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getDisksList(); + + /** + * + * + *
        +   * Output only. The disks attached to the source VM.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails getDisks(int index); + + /** + * + * + *
        +   * Output only. The disks attached to the source VM.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getDisksCount(); + + /** + * + * + *
        +   * Output only. The disks attached to the source VM.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetailsOrBuilder> + getDisksOrBuilderList(); + + /** + * + * + *
        +   * Output only. The disks attached to the source VM.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetailsOrBuilder getDisksOrBuilder( + int index); + + /** + * + * + *
        +   * Output only. Information about VM capabilities needed for some Compute
        +   * Engine features.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.VmCapabilities vm_capabilities_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the vmCapabilitiesInfo field is set. + */ + boolean hasVmCapabilitiesInfo(); + + /** + * + * + *
        +   * Output only. Information about VM capabilities needed for some Compute
        +   * Engine features.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.VmCapabilities vm_capabilities_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The vmCapabilitiesInfo. + */ + com.google.cloud.vmmigration.v1.VmCapabilities getVmCapabilitiesInfo(); + + /** + * + * + *
        +   * Output only. Information about VM capabilities needed for some Compute
        +   * Engine features.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.VmCapabilities vm_capabilities_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.vmmigration.v1.VmCapabilitiesOrBuilder getVmCapabilitiesInfoOrBuilder(); + + /** + * + * + *
        +   * Output only. The VM architecture.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.VmArchitecture architecture = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for architecture. + */ + int getArchitectureValue(); + + /** + * + * + *
        +   * Output only. The VM architecture.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.VmArchitecture architecture = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The architecture. + */ + com.google.cloud.vmmigration.v1.VmArchitecture getArchitecture(); +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AzureVmDetails.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AzureVmDetails.java new file mode 100644 index 000000000000..cd961307013e --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AzureVmDetails.java @@ -0,0 +1,7086 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * AzureVmDetails describes a VM in Azure.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.AzureVmDetails} + */ +public final class AzureVmDetails extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.AzureVmDetails) + AzureVmDetailsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use AzureVmDetails.newBuilder() to construct. + private AzureVmDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AzureVmDetails() { + vmId_ = ""; + powerState_ = 0; + vmSize_ = ""; + disks_ = java.util.Collections.emptyList(); + bootOption_ = 0; + computerName_ = ""; + architecture_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AzureVmDetails(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AzureVmDetails_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 12: + return internalGetTags(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AzureVmDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.AzureVmDetails.class, + com.google.cloud.vmmigration.v1.AzureVmDetails.Builder.class); + } + + /** + * + * + *
        +   * Possible values for the power state of the VM.
        +   * 
        + * + * Protobuf enum {@code google.cloud.vmmigration.v1.AzureVmDetails.PowerState} + */ + public enum PowerState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
        +     * Power state is not specified.
        +     * 
        + * + * POWER_STATE_UNSPECIFIED = 0; + */ + POWER_STATE_UNSPECIFIED(0), + /** + * + * + *
        +     * The VM is starting.
        +     * 
        + * + * STARTING = 1; + */ + STARTING(1), + /** + * + * + *
        +     * The VM is running.
        +     * 
        + * + * RUNNING = 2; + */ + RUNNING(2), + /** + * + * + *
        +     * The VM is stopping.
        +     * 
        + * + * STOPPING = 3; + */ + STOPPING(3), + /** + * + * + *
        +     * The VM is stopped.
        +     * 
        + * + * STOPPED = 4; + */ + STOPPED(4), + /** + * + * + *
        +     * The VM is deallocating.
        +     * 
        + * + * DEALLOCATING = 5; + */ + DEALLOCATING(5), + /** + * + * + *
        +     * The VM is deallocated.
        +     * 
        + * + * DEALLOCATED = 6; + */ + DEALLOCATED(6), + /** + * + * + *
        +     * The VM's power state is unknown.
        +     * 
        + * + * UNKNOWN = 7; + */ + UNKNOWN(7), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
        +     * Power state is not specified.
        +     * 
        + * + * POWER_STATE_UNSPECIFIED = 0; + */ + public static final int POWER_STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
        +     * The VM is starting.
        +     * 
        + * + * STARTING = 1; + */ + public static final int STARTING_VALUE = 1; + + /** + * + * + *
        +     * The VM is running.
        +     * 
        + * + * RUNNING = 2; + */ + public static final int RUNNING_VALUE = 2; + + /** + * + * + *
        +     * The VM is stopping.
        +     * 
        + * + * STOPPING = 3; + */ + public static final int STOPPING_VALUE = 3; + + /** + * + * + *
        +     * The VM is stopped.
        +     * 
        + * + * STOPPED = 4; + */ + public static final int STOPPED_VALUE = 4; + + /** + * + * + *
        +     * The VM is deallocating.
        +     * 
        + * + * DEALLOCATING = 5; + */ + public static final int DEALLOCATING_VALUE = 5; + + /** + * + * + *
        +     * The VM is deallocated.
        +     * 
        + * + * DEALLOCATED = 6; + */ + public static final int DEALLOCATED_VALUE = 6; + + /** + * + * + *
        +     * The VM's power state is unknown.
        +     * 
        + * + * UNKNOWN = 7; + */ + public static final int UNKNOWN_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 PowerState 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 PowerState forNumber(int value) { + switch (value) { + case 0: + return POWER_STATE_UNSPECIFIED; + case 1: + return STARTING; + case 2: + return RUNNING; + case 3: + return STOPPING; + case 4: + return STOPPED; + case 5: + return DEALLOCATING; + case 6: + return DEALLOCATED; + case 7: + return UNKNOWN; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PowerState findValueByNumber(int number) { + return PowerState.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.vmmigration.v1.AzureVmDetails.getDescriptor().getEnumTypes().get(0); + } + + private static final PowerState[] VALUES = values(); + + public static PowerState 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 PowerState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.vmmigration.v1.AzureVmDetails.PowerState) + } + + /** + * + * + *
        +   * The possible values for the vm boot option.
        +   * 
        + * + * Protobuf enum {@code google.cloud.vmmigration.v1.AzureVmDetails.BootOption} + */ + public enum BootOption implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
        +     * The boot option is unknown.
        +     * 
        + * + * BOOT_OPTION_UNSPECIFIED = 0; + */ + BOOT_OPTION_UNSPECIFIED(0), + /** + * + * + *
        +     * The boot option is UEFI.
        +     * 
        + * + * EFI = 1; + */ + EFI(1), + /** + * + * + *
        +     * The boot option is BIOS.
        +     * 
        + * + * BIOS = 2; + */ + BIOS(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
        +     * The boot option is unknown.
        +     * 
        + * + * BOOT_OPTION_UNSPECIFIED = 0; + */ + public static final int BOOT_OPTION_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
        +     * The boot option is UEFI.
        +     * 
        + * + * EFI = 1; + */ + public static final int EFI_VALUE = 1; + + /** + * + * + *
        +     * The boot option is BIOS.
        +     * 
        + * + * BIOS = 2; + */ + public static final int BIOS_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 BootOption 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 BootOption forNumber(int value) { + switch (value) { + case 0: + return BOOT_OPTION_UNSPECIFIED; + case 1: + return EFI; + case 2: + return BIOS; + 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 BootOption findValueByNumber(int number) { + return BootOption.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.vmmigration.v1.AzureVmDetails.getDescriptor().getEnumTypes().get(1); + } + + private static final BootOption[] VALUES = values(); + + public static BootOption 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 BootOption(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.vmmigration.v1.AzureVmDetails.BootOption) + } + + /** + * + * + *
        +   * Possible values for the VM architecture.
        +   * 
        + * + * Protobuf enum {@code google.cloud.vmmigration.v1.AzureVmDetails.VmArchitecture} + */ + public enum VmArchitecture implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
        +     * The architecture is unknown.
        +     * 
        + * + * VM_ARCHITECTURE_UNSPECIFIED = 0; + */ + VM_ARCHITECTURE_UNSPECIFIED(0), + /** + * + * + *
        +     * The architecture is one of the x86 architectures.
        +     * 
        + * + * VM_ARCHITECTURE_X86_FAMILY = 1; + */ + VM_ARCHITECTURE_X86_FAMILY(1), + /** + * + * + *
        +     * The architecture is ARM64.
        +     * 
        + * + * VM_ARCHITECTURE_ARM64 = 2; + */ + VM_ARCHITECTURE_ARM64(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
        +     * The architecture is unknown.
        +     * 
        + * + * VM_ARCHITECTURE_UNSPECIFIED = 0; + */ + public static final int VM_ARCHITECTURE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
        +     * The architecture is one of the x86 architectures.
        +     * 
        + * + * VM_ARCHITECTURE_X86_FAMILY = 1; + */ + public static final int VM_ARCHITECTURE_X86_FAMILY_VALUE = 1; + + /** + * + * + *
        +     * The architecture is ARM64.
        +     * 
        + * + * VM_ARCHITECTURE_ARM64 = 2; + */ + public static final int VM_ARCHITECTURE_ARM64_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 VmArchitecture 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 VmArchitecture forNumber(int value) { + switch (value) { + case 0: + return VM_ARCHITECTURE_UNSPECIFIED; + case 1: + return VM_ARCHITECTURE_X86_FAMILY; + case 2: + return VM_ARCHITECTURE_ARM64; + 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 VmArchitecture findValueByNumber(int number) { + return VmArchitecture.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.vmmigration.v1.AzureVmDetails.getDescriptor().getEnumTypes().get(2); + } + + private static final VmArchitecture[] VALUES = values(); + + public static VmArchitecture 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 VmArchitecture(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.vmmigration.v1.AzureVmDetails.VmArchitecture) + } + + public interface OSDiskOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.AzureVmDetails.OSDisk) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +     * The disk's type.
        +     * 
        + * + * string type = 1; + * + * @return The type. + */ + java.lang.String getType(); + + /** + * + * + *
        +     * The disk's type.
        +     * 
        + * + * string type = 1; + * + * @return The bytes for type. + */ + com.google.protobuf.ByteString getTypeBytes(); + + /** + * + * + *
        +     * The disk's full name.
        +     * 
        + * + * string name = 2; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
        +     * The disk's full name.
        +     * 
        + * + * string name = 2; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
        +     * The disk's size in GB.
        +     * 
        + * + * int32 size_gb = 3; + * + * @return The sizeGb. + */ + int getSizeGb(); + } + + /** + * + * + *
        +   * A message describing the OS disk.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.AzureVmDetails.OSDisk} + */ + public static final class OSDisk extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.AzureVmDetails.OSDisk) + OSDiskOrBuilder { + private static final long serialVersionUID = 0L; + + // Use OSDisk.newBuilder() to construct. + private OSDisk(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private OSDisk() { + type_ = ""; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OSDisk(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AzureVmDetails_OSDisk_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AzureVmDetails_OSDisk_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.AzureVmDetails.OSDisk.class, + com.google.cloud.vmmigration.v1.AzureVmDetails.OSDisk.Builder.class); + } + + public static final int TYPE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object type_ = ""; + + /** + * + * + *
        +     * The disk's type.
        +     * 
        + * + * string type = 1; + * + * @return The type. + */ + @java.lang.Override + public java.lang.String getType() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } + } + + /** + * + * + *
        +     * The disk's type.
        +     * 
        + * + * string type = 1; + * + * @return The bytes for type. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
        +     * The disk's full name.
        +     * 
        + * + * string name = 2; + * + * @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 disk's full name.
        +     * 
        + * + * string name = 2; + * + * @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 SIZE_GB_FIELD_NUMBER = 3; + private int sizeGb_ = 0; + + /** + * + * + *
        +     * The disk's size in GB.
        +     * 
        + * + * int32 size_gb = 3; + * + * @return The sizeGb. + */ + @java.lang.Override + public int getSizeGb() { + return sizeGb_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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(type_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); + } + if (sizeGb_ != 0) { + output.writeInt32(3, sizeGb_); + } + 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(type_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); + } + if (sizeGb_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, sizeGb_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.vmmigration.v1.AzureVmDetails.OSDisk)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.AzureVmDetails.OSDisk other = + (com.google.cloud.vmmigration.v1.AzureVmDetails.OSDisk) obj; + + if (!getType().equals(other.getType())) return false; + if (!getName().equals(other.getName())) return false; + if (getSizeGb() != other.getSizeGb()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + SIZE_GB_FIELD_NUMBER; + hash = (53 * hash) + getSizeGb(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.AzureVmDetails.OSDisk parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.AzureVmDetails.OSDisk 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.vmmigration.v1.AzureVmDetails.OSDisk parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.AzureVmDetails.OSDisk parseFrom( + 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.vmmigration.v1.AzureVmDetails.OSDisk parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.AzureVmDetails.OSDisk parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.AzureVmDetails.OSDisk parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.AzureVmDetails.OSDisk 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.vmmigration.v1.AzureVmDetails.OSDisk parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.AzureVmDetails.OSDisk 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.vmmigration.v1.AzureVmDetails.OSDisk parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.AzureVmDetails.OSDisk 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.vmmigration.v1.AzureVmDetails.OSDisk prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 message describing the OS disk.
        +     * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.AzureVmDetails.OSDisk} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.AzureVmDetails.OSDisk) + com.google.cloud.vmmigration.v1.AzureVmDetails.OSDiskOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AzureVmDetails_OSDisk_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AzureVmDetails_OSDisk_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.AzureVmDetails.OSDisk.class, + com.google.cloud.vmmigration.v1.AzureVmDetails.OSDisk.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.AzureVmDetails.OSDisk.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + type_ = ""; + name_ = ""; + sizeGb_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AzureVmDetails_OSDisk_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureVmDetails.OSDisk getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.AzureVmDetails.OSDisk.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureVmDetails.OSDisk build() { + com.google.cloud.vmmigration.v1.AzureVmDetails.OSDisk result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureVmDetails.OSDisk buildPartial() { + com.google.cloud.vmmigration.v1.AzureVmDetails.OSDisk result = + new com.google.cloud.vmmigration.v1.AzureVmDetails.OSDisk(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vmmigration.v1.AzureVmDetails.OSDisk result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.sizeGb_ = sizeGb_; + } + } + + @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.vmmigration.v1.AzureVmDetails.OSDisk) { + return mergeFrom((com.google.cloud.vmmigration.v1.AzureVmDetails.OSDisk) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.AzureVmDetails.OSDisk other) { + if (other == com.google.cloud.vmmigration.v1.AzureVmDetails.OSDisk.getDefaultInstance()) + return this; + if (!other.getType().isEmpty()) { + type_ = other.type_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getSizeGb() != 0) { + setSizeGb(other.getSizeGb()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + type_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + sizeGb_ = input.readInt32(); + 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 type_ = ""; + + /** + * + * + *
        +       * The disk's type.
        +       * 
        + * + * string type = 1; + * + * @return The type. + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +       * The disk's type.
        +       * 
        + * + * string type = 1; + * + * @return The bytes for type. + */ + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +       * The disk's type.
        +       * 
        + * + * string type = 1; + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +       * The disk's type.
        +       * 
        + * + * string type = 1; + * + * @return This builder for chaining. + */ + public Builder clearType() { + type_ = getDefaultInstance().getType(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
        +       * The disk's type.
        +       * 
        + * + * string type = 1; + * + * @param value The bytes for type to set. + * @return This builder for chaining. + */ + public Builder setTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
        +       * The disk's full name.
        +       * 
        + * + * string name = 2; + * + * @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 disk's full name.
        +       * 
        + * + * string name = 2; + * + * @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 disk's full name.
        +       * 
        + * + * string name = 2; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +       * The disk's full name.
        +       * 
        + * + * string name = 2; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
        +       * The disk's full name.
        +       * 
        + * + * string name = 2; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int sizeGb_; + + /** + * + * + *
        +       * The disk's size in GB.
        +       * 
        + * + * int32 size_gb = 3; + * + * @return The sizeGb. + */ + @java.lang.Override + public int getSizeGb() { + return sizeGb_; + } + + /** + * + * + *
        +       * The disk's size in GB.
        +       * 
        + * + * int32 size_gb = 3; + * + * @param value The sizeGb to set. + * @return This builder for chaining. + */ + public Builder setSizeGb(int value) { + + sizeGb_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +       * The disk's size in GB.
        +       * 
        + * + * int32 size_gb = 3; + * + * @return This builder for chaining. + */ + public Builder clearSizeGb() { + bitField0_ = (bitField0_ & ~0x00000004); + sizeGb_ = 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.vmmigration.v1.AzureVmDetails.OSDisk) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.AzureVmDetails.OSDisk) + private static final com.google.cloud.vmmigration.v1.AzureVmDetails.OSDisk DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.AzureVmDetails.OSDisk(); + } + + public static com.google.cloud.vmmigration.v1.AzureVmDetails.OSDisk getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OSDisk parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.AzureVmDetails.OSDisk getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface DiskOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.AzureVmDetails.Disk) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +     * The disk name.
        +     * 
        + * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
        +     * The disk name.
        +     * 
        + * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
        +     * The disk size in GB.
        +     * 
        + * + * int32 size_gb = 2; + * + * @return The sizeGb. + */ + int getSizeGb(); + + /** + * + * + *
        +     * The disk's Logical Unit Number (LUN).
        +     * 
        + * + * int32 lun = 3; + * + * @return The lun. + */ + int getLun(); + } + + /** + * + * + *
        +   * A message describing a data disk.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.AzureVmDetails.Disk} + */ + public static final class Disk extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.AzureVmDetails.Disk) + DiskOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Disk.newBuilder() to construct. + private Disk(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Disk() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Disk(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AzureVmDetails_Disk_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AzureVmDetails_Disk_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.AzureVmDetails.Disk.class, + com.google.cloud.vmmigration.v1.AzureVmDetails.Disk.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
        +     * The disk name.
        +     * 
        + * + * 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; + } + } + + /** + * + * + *
        +     * The disk name.
        +     * 
        + * + * 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 SIZE_GB_FIELD_NUMBER = 2; + private int sizeGb_ = 0; + + /** + * + * + *
        +     * The disk size in GB.
        +     * 
        + * + * int32 size_gb = 2; + * + * @return The sizeGb. + */ + @java.lang.Override + public int getSizeGb() { + return sizeGb_; + } + + public static final int LUN_FIELD_NUMBER = 3; + private int lun_ = 0; + + /** + * + * + *
        +     * The disk's Logical Unit Number (LUN).
        +     * 
        + * + * int32 lun = 3; + * + * @return The lun. + */ + @java.lang.Override + public int getLun() { + return lun_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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 (sizeGb_ != 0) { + output.writeInt32(2, sizeGb_); + } + if (lun_ != 0) { + output.writeInt32(3, lun_); + } + 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 (sizeGb_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, sizeGb_); + } + if (lun_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, lun_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.vmmigration.v1.AzureVmDetails.Disk)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.AzureVmDetails.Disk other = + (com.google.cloud.vmmigration.v1.AzureVmDetails.Disk) obj; + + if (!getName().equals(other.getName())) return false; + if (getSizeGb() != other.getSizeGb()) return false; + if (getLun() != other.getLun()) 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) + SIZE_GB_FIELD_NUMBER; + hash = (53 * hash) + getSizeGb(); + hash = (37 * hash) + LUN_FIELD_NUMBER; + hash = (53 * hash) + getLun(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.AzureVmDetails.Disk parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.AzureVmDetails.Disk 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.vmmigration.v1.AzureVmDetails.Disk parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.AzureVmDetails.Disk parseFrom( + 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.vmmigration.v1.AzureVmDetails.Disk parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.AzureVmDetails.Disk parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.AzureVmDetails.Disk parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.AzureVmDetails.Disk 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.vmmigration.v1.AzureVmDetails.Disk parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.AzureVmDetails.Disk 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.vmmigration.v1.AzureVmDetails.Disk parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.AzureVmDetails.Disk 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.vmmigration.v1.AzureVmDetails.Disk prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 message describing a data disk.
        +     * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.AzureVmDetails.Disk} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.AzureVmDetails.Disk) + com.google.cloud.vmmigration.v1.AzureVmDetails.DiskOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AzureVmDetails_Disk_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AzureVmDetails_Disk_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.AzureVmDetails.Disk.class, + com.google.cloud.vmmigration.v1.AzureVmDetails.Disk.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.AzureVmDetails.Disk.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + sizeGb_ = 0; + lun_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AzureVmDetails_Disk_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureVmDetails.Disk getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.AzureVmDetails.Disk.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureVmDetails.Disk build() { + com.google.cloud.vmmigration.v1.AzureVmDetails.Disk result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureVmDetails.Disk buildPartial() { + com.google.cloud.vmmigration.v1.AzureVmDetails.Disk result = + new com.google.cloud.vmmigration.v1.AzureVmDetails.Disk(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vmmigration.v1.AzureVmDetails.Disk result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sizeGb_ = sizeGb_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.lun_ = lun_; + } + } + + @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.vmmigration.v1.AzureVmDetails.Disk) { + return mergeFrom((com.google.cloud.vmmigration.v1.AzureVmDetails.Disk) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.AzureVmDetails.Disk other) { + if (other == com.google.cloud.vmmigration.v1.AzureVmDetails.Disk.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getSizeGb() != 0) { + setSizeGb(other.getSizeGb()); + } + if (other.getLun() != 0) { + setLun(other.getLun()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + sizeGb_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + lun_ = input.readInt32(); + 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_ = ""; + + /** + * + * + *
        +       * The disk name.
        +       * 
        + * + * 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; + } + } + + /** + * + * + *
        +       * The disk name.
        +       * 
        + * + * 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; + } + } + + /** + * + * + *
        +       * The disk name.
        +       * 
        + * + * 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; + } + + /** + * + * + *
        +       * The disk name.
        +       * 
        + * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
        +       * The disk name.
        +       * 
        + * + * 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 sizeGb_; + + /** + * + * + *
        +       * The disk size in GB.
        +       * 
        + * + * int32 size_gb = 2; + * + * @return The sizeGb. + */ + @java.lang.Override + public int getSizeGb() { + return sizeGb_; + } + + /** + * + * + *
        +       * The disk size in GB.
        +       * 
        + * + * int32 size_gb = 2; + * + * @param value The sizeGb to set. + * @return This builder for chaining. + */ + public Builder setSizeGb(int value) { + + sizeGb_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +       * The disk size in GB.
        +       * 
        + * + * int32 size_gb = 2; + * + * @return This builder for chaining. + */ + public Builder clearSizeGb() { + bitField0_ = (bitField0_ & ~0x00000002); + sizeGb_ = 0; + onChanged(); + return this; + } + + private int lun_; + + /** + * + * + *
        +       * The disk's Logical Unit Number (LUN).
        +       * 
        + * + * int32 lun = 3; + * + * @return The lun. + */ + @java.lang.Override + public int getLun() { + return lun_; + } + + /** + * + * + *
        +       * The disk's Logical Unit Number (LUN).
        +       * 
        + * + * int32 lun = 3; + * + * @param value The lun to set. + * @return This builder for chaining. + */ + public Builder setLun(int value) { + + lun_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +       * The disk's Logical Unit Number (LUN).
        +       * 
        + * + * int32 lun = 3; + * + * @return This builder for chaining. + */ + public Builder clearLun() { + bitField0_ = (bitField0_ & ~0x00000004); + lun_ = 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.vmmigration.v1.AzureVmDetails.Disk) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.AzureVmDetails.Disk) + private static final com.google.cloud.vmmigration.v1.AzureVmDetails.Disk DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.AzureVmDetails.Disk(); + } + + public static com.google.cloud.vmmigration.v1.AzureVmDetails.Disk getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Disk parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.AzureVmDetails.Disk getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface OSDescriptionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.AzureVmDetails.OSDescription) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +     * OS type.
        +     * 
        + * + * string type = 1; + * + * @return The type. + */ + java.lang.String getType(); + + /** + * + * + *
        +     * OS type.
        +     * 
        + * + * string type = 1; + * + * @return The bytes for type. + */ + com.google.protobuf.ByteString getTypeBytes(); + + /** + * + * + *
        +     * OS publisher.
        +     * 
        + * + * string publisher = 2; + * + * @return The publisher. + */ + java.lang.String getPublisher(); + + /** + * + * + *
        +     * OS publisher.
        +     * 
        + * + * string publisher = 2; + * + * @return The bytes for publisher. + */ + com.google.protobuf.ByteString getPublisherBytes(); + + /** + * + * + *
        +     * OS offer.
        +     * 
        + * + * string offer = 3; + * + * @return The offer. + */ + java.lang.String getOffer(); + + /** + * + * + *
        +     * OS offer.
        +     * 
        + * + * string offer = 3; + * + * @return The bytes for offer. + */ + com.google.protobuf.ByteString getOfferBytes(); + + /** + * + * + *
        +     * OS plan.
        +     * 
        + * + * string plan = 4; + * + * @return The plan. + */ + java.lang.String getPlan(); + + /** + * + * + *
        +     * OS plan.
        +     * 
        + * + * string plan = 4; + * + * @return The bytes for plan. + */ + com.google.protobuf.ByteString getPlanBytes(); + } + + /** + * + * + *
        +   * A message describing the VM's OS. Including OS, Publisher, Offer and Plan
        +   * if applicable.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.AzureVmDetails.OSDescription} + */ + public static final class OSDescription extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.AzureVmDetails.OSDescription) + OSDescriptionOrBuilder { + private static final long serialVersionUID = 0L; + + // Use OSDescription.newBuilder() to construct. + private OSDescription(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private OSDescription() { + type_ = ""; + publisher_ = ""; + offer_ = ""; + plan_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OSDescription(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AzureVmDetails_OSDescription_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AzureVmDetails_OSDescription_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.AzureVmDetails.OSDescription.class, + com.google.cloud.vmmigration.v1.AzureVmDetails.OSDescription.Builder.class); + } + + public static final int TYPE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object type_ = ""; + + /** + * + * + *
        +     * OS type.
        +     * 
        + * + * string type = 1; + * + * @return The type. + */ + @java.lang.Override + public java.lang.String getType() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } + } + + /** + * + * + *
        +     * OS type.
        +     * 
        + * + * string type = 1; + * + * @return The bytes for type. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PUBLISHER_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object publisher_ = ""; + + /** + * + * + *
        +     * OS publisher.
        +     * 
        + * + * string publisher = 2; + * + * @return The publisher. + */ + @java.lang.Override + public java.lang.String getPublisher() { + java.lang.Object ref = publisher_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + publisher_ = s; + return s; + } + } + + /** + * + * + *
        +     * OS publisher.
        +     * 
        + * + * string publisher = 2; + * + * @return The bytes for publisher. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPublisherBytes() { + java.lang.Object ref = publisher_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + publisher_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OFFER_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object offer_ = ""; + + /** + * + * + *
        +     * OS offer.
        +     * 
        + * + * string offer = 3; + * + * @return The offer. + */ + @java.lang.Override + public java.lang.String getOffer() { + java.lang.Object ref = offer_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + offer_ = s; + return s; + } + } + + /** + * + * + *
        +     * OS offer.
        +     * 
        + * + * string offer = 3; + * + * @return The bytes for offer. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOfferBytes() { + java.lang.Object ref = offer_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + offer_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PLAN_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object plan_ = ""; + + /** + * + * + *
        +     * OS plan.
        +     * 
        + * + * string plan = 4; + * + * @return The plan. + */ + @java.lang.Override + public java.lang.String getPlan() { + java.lang.Object ref = plan_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + plan_ = s; + return s; + } + } + + /** + * + * + *
        +     * OS plan.
        +     * 
        + * + * string plan = 4; + * + * @return The bytes for plan. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPlanBytes() { + java.lang.Object ref = plan_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + plan_ = 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(type_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publisher_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, publisher_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(offer_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, offer_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(plan_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, plan_); + } + 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(type_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publisher_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, publisher_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(offer_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, offer_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(plan_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, plan_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.vmmigration.v1.AzureVmDetails.OSDescription)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.AzureVmDetails.OSDescription other = + (com.google.cloud.vmmigration.v1.AzureVmDetails.OSDescription) obj; + + if (!getType().equals(other.getType())) return false; + if (!getPublisher().equals(other.getPublisher())) return false; + if (!getOffer().equals(other.getOffer())) return false; + if (!getPlan().equals(other.getPlan())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + hash = (37 * hash) + PUBLISHER_FIELD_NUMBER; + hash = (53 * hash) + getPublisher().hashCode(); + hash = (37 * hash) + OFFER_FIELD_NUMBER; + hash = (53 * hash) + getOffer().hashCode(); + hash = (37 * hash) + PLAN_FIELD_NUMBER; + hash = (53 * hash) + getPlan().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.AzureVmDetails.OSDescription parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.AzureVmDetails.OSDescription 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.vmmigration.v1.AzureVmDetails.OSDescription parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.AzureVmDetails.OSDescription parseFrom( + 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.vmmigration.v1.AzureVmDetails.OSDescription parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.AzureVmDetails.OSDescription parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.AzureVmDetails.OSDescription parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.AzureVmDetails.OSDescription 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.vmmigration.v1.AzureVmDetails.OSDescription parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.AzureVmDetails.OSDescription 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.vmmigration.v1.AzureVmDetails.OSDescription parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.AzureVmDetails.OSDescription 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.vmmigration.v1.AzureVmDetails.OSDescription prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 message describing the VM's OS. Including OS, Publisher, Offer and Plan
        +     * if applicable.
        +     * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.AzureVmDetails.OSDescription} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.AzureVmDetails.OSDescription) + com.google.cloud.vmmigration.v1.AzureVmDetails.OSDescriptionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AzureVmDetails_OSDescription_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AzureVmDetails_OSDescription_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.AzureVmDetails.OSDescription.class, + com.google.cloud.vmmigration.v1.AzureVmDetails.OSDescription.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.AzureVmDetails.OSDescription.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + type_ = ""; + publisher_ = ""; + offer_ = ""; + plan_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AzureVmDetails_OSDescription_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureVmDetails.OSDescription + getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.AzureVmDetails.OSDescription.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureVmDetails.OSDescription build() { + com.google.cloud.vmmigration.v1.AzureVmDetails.OSDescription result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureVmDetails.OSDescription buildPartial() { + com.google.cloud.vmmigration.v1.AzureVmDetails.OSDescription result = + new com.google.cloud.vmmigration.v1.AzureVmDetails.OSDescription(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.vmmigration.v1.AzureVmDetails.OSDescription result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.publisher_ = publisher_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.offer_ = offer_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.plan_ = plan_; + } + } + + @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.vmmigration.v1.AzureVmDetails.OSDescription) { + return mergeFrom((com.google.cloud.vmmigration.v1.AzureVmDetails.OSDescription) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.AzureVmDetails.OSDescription other) { + if (other + == com.google.cloud.vmmigration.v1.AzureVmDetails.OSDescription.getDefaultInstance()) + return this; + if (!other.getType().isEmpty()) { + type_ = other.type_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getPublisher().isEmpty()) { + publisher_ = other.publisher_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getOffer().isEmpty()) { + offer_ = other.offer_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getPlan().isEmpty()) { + plan_ = other.plan_; + 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: + { + type_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + publisher_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + offer_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + plan_ = 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 type_ = ""; + + /** + * + * + *
        +       * OS type.
        +       * 
        + * + * string type = 1; + * + * @return The type. + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +       * OS type.
        +       * 
        + * + * string type = 1; + * + * @return The bytes for type. + */ + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +       * OS type.
        +       * 
        + * + * string type = 1; + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +       * OS type.
        +       * 
        + * + * string type = 1; + * + * @return This builder for chaining. + */ + public Builder clearType() { + type_ = getDefaultInstance().getType(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
        +       * OS type.
        +       * 
        + * + * string type = 1; + * + * @param value The bytes for type to set. + * @return This builder for chaining. + */ + public Builder setTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object publisher_ = ""; + + /** + * + * + *
        +       * OS publisher.
        +       * 
        + * + * string publisher = 2; + * + * @return The publisher. + */ + public java.lang.String getPublisher() { + java.lang.Object ref = publisher_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + publisher_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +       * OS publisher.
        +       * 
        + * + * string publisher = 2; + * + * @return The bytes for publisher. + */ + public com.google.protobuf.ByteString getPublisherBytes() { + java.lang.Object ref = publisher_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + publisher_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +       * OS publisher.
        +       * 
        + * + * string publisher = 2; + * + * @param value The publisher to set. + * @return This builder for chaining. + */ + public Builder setPublisher(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + publisher_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +       * OS publisher.
        +       * 
        + * + * string publisher = 2; + * + * @return This builder for chaining. + */ + public Builder clearPublisher() { + publisher_ = getDefaultInstance().getPublisher(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
        +       * OS publisher.
        +       * 
        + * + * string publisher = 2; + * + * @param value The bytes for publisher to set. + * @return This builder for chaining. + */ + public Builder setPublisherBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + publisher_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object offer_ = ""; + + /** + * + * + *
        +       * OS offer.
        +       * 
        + * + * string offer = 3; + * + * @return The offer. + */ + public java.lang.String getOffer() { + java.lang.Object ref = offer_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + offer_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +       * OS offer.
        +       * 
        + * + * string offer = 3; + * + * @return The bytes for offer. + */ + public com.google.protobuf.ByteString getOfferBytes() { + java.lang.Object ref = offer_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + offer_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +       * OS offer.
        +       * 
        + * + * string offer = 3; + * + * @param value The offer to set. + * @return This builder for chaining. + */ + public Builder setOffer(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + offer_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +       * OS offer.
        +       * 
        + * + * string offer = 3; + * + * @return This builder for chaining. + */ + public Builder clearOffer() { + offer_ = getDefaultInstance().getOffer(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
        +       * OS offer.
        +       * 
        + * + * string offer = 3; + * + * @param value The bytes for offer to set. + * @return This builder for chaining. + */ + public Builder setOfferBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + offer_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object plan_ = ""; + + /** + * + * + *
        +       * OS plan.
        +       * 
        + * + * string plan = 4; + * + * @return The plan. + */ + public java.lang.String getPlan() { + java.lang.Object ref = plan_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + plan_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +       * OS plan.
        +       * 
        + * + * string plan = 4; + * + * @return The bytes for plan. + */ + public com.google.protobuf.ByteString getPlanBytes() { + java.lang.Object ref = plan_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + plan_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +       * OS plan.
        +       * 
        + * + * string plan = 4; + * + * @param value The plan to set. + * @return This builder for chaining. + */ + public Builder setPlan(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + plan_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
        +       * OS plan.
        +       * 
        + * + * string plan = 4; + * + * @return This builder for chaining. + */ + public Builder clearPlan() { + plan_ = getDefaultInstance().getPlan(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
        +       * OS plan.
        +       * 
        + * + * string plan = 4; + * + * @param value The bytes for plan to set. + * @return This builder for chaining. + */ + public Builder setPlanBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + plan_ = 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.vmmigration.v1.AzureVmDetails.OSDescription) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.AzureVmDetails.OSDescription) + private static final com.google.cloud.vmmigration.v1.AzureVmDetails.OSDescription + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.AzureVmDetails.OSDescription(); + } + + public static com.google.cloud.vmmigration.v1.AzureVmDetails.OSDescription + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OSDescription parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.AzureVmDetails.OSDescription + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int VM_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object vmId_ = ""; + + /** + * + * + *
        +   * The VM full path in Azure.
        +   * 
        + * + * string vm_id = 1; + * + * @return The vmId. + */ + @java.lang.Override + public java.lang.String getVmId() { + java.lang.Object ref = vmId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vmId_ = s; + return s; + } + } + + /** + * + * + *
        +   * The VM full path in Azure.
        +   * 
        + * + * string vm_id = 1; + * + * @return The bytes for vmId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVmIdBytes() { + java.lang.Object ref = vmId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vmId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int POWER_STATE_FIELD_NUMBER = 2; + private int powerState_ = 0; + + /** + * + * + *
        +   * The power state of the VM at the moment list was taken.
        +   * 
        + * + * .google.cloud.vmmigration.v1.AzureVmDetails.PowerState power_state = 2; + * + * @return The enum numeric value on the wire for powerState. + */ + @java.lang.Override + public int getPowerStateValue() { + return powerState_; + } + + /** + * + * + *
        +   * The power state of the VM at the moment list was taken.
        +   * 
        + * + * .google.cloud.vmmigration.v1.AzureVmDetails.PowerState power_state = 2; + * + * @return The powerState. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureVmDetails.PowerState getPowerState() { + com.google.cloud.vmmigration.v1.AzureVmDetails.PowerState result = + com.google.cloud.vmmigration.v1.AzureVmDetails.PowerState.forNumber(powerState_); + return result == null + ? com.google.cloud.vmmigration.v1.AzureVmDetails.PowerState.UNRECOGNIZED + : result; + } + + public static final int VM_SIZE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object vmSize_ = ""; + + /** + * + * + *
        +   * VM size as configured in Azure. Determines the VM's hardware spec.
        +   * 
        + * + * string vm_size = 3; + * + * @return The vmSize. + */ + @java.lang.Override + public java.lang.String getVmSize() { + java.lang.Object ref = vmSize_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vmSize_ = s; + return s; + } + } + + /** + * + * + *
        +   * VM size as configured in Azure. Determines the VM's hardware spec.
        +   * 
        + * + * string vm_size = 3; + * + * @return The bytes for vmSize. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVmSizeBytes() { + java.lang.Object ref = vmSize_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vmSize_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CPU_COUNT_FIELD_NUMBER = 4; + private int cpuCount_ = 0; + + /** + * + * + *
        +   * The number of cpus the VM has.
        +   * 
        + * + * int32 cpu_count = 4; + * + * @return The cpuCount. + */ + @java.lang.Override + public int getCpuCount() { + return cpuCount_; + } + + public static final int MEMORY_MB_FIELD_NUMBER = 5; + private int memoryMb_ = 0; + + /** + * + * + *
        +   * The memory size of the VM in MB.
        +   * 
        + * + * int32 memory_mb = 5; + * + * @return The memoryMb. + */ + @java.lang.Override + public int getMemoryMb() { + return memoryMb_; + } + + public static final int DISK_COUNT_FIELD_NUMBER = 6; + private int diskCount_ = 0; + + /** + * + * + *
        +   * The number of disks the VM has, including OS disk.
        +   * 
        + * + * int32 disk_count = 6; + * + * @return The diskCount. + */ + @java.lang.Override + public int getDiskCount() { + return diskCount_; + } + + public static final int COMMITTED_STORAGE_MB_FIELD_NUMBER = 7; + private long committedStorageMb_ = 0L; + + /** + * + * + *
        +   * The total size of the storage allocated to the VM in MB.
        +   * 
        + * + * int64 committed_storage_mb = 7; + * + * @return The committedStorageMb. + */ + @java.lang.Override + public long getCommittedStorageMb() { + return committedStorageMb_; + } + + public static final int OS_DISK_FIELD_NUMBER = 8; + private com.google.cloud.vmmigration.v1.AzureVmDetails.OSDisk osDisk_; + + /** + * + * + *
        +   * Description of the OS disk.
        +   * 
        + * + * .google.cloud.vmmigration.v1.AzureVmDetails.OSDisk os_disk = 8; + * + * @return Whether the osDisk field is set. + */ + @java.lang.Override + public boolean hasOsDisk() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
        +   * Description of the OS disk.
        +   * 
        + * + * .google.cloud.vmmigration.v1.AzureVmDetails.OSDisk os_disk = 8; + * + * @return The osDisk. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureVmDetails.OSDisk getOsDisk() { + return osDisk_ == null + ? com.google.cloud.vmmigration.v1.AzureVmDetails.OSDisk.getDefaultInstance() + : osDisk_; + } + + /** + * + * + *
        +   * Description of the OS disk.
        +   * 
        + * + * .google.cloud.vmmigration.v1.AzureVmDetails.OSDisk os_disk = 8; + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureVmDetails.OSDiskOrBuilder getOsDiskOrBuilder() { + return osDisk_ == null + ? com.google.cloud.vmmigration.v1.AzureVmDetails.OSDisk.getDefaultInstance() + : osDisk_; + } + + public static final int DISKS_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private java.util.List disks_; + + /** + * + * + *
        +   * Description of the data disks.
        +   * 
        + * + * repeated .google.cloud.vmmigration.v1.AzureVmDetails.Disk disks = 9; + */ + @java.lang.Override + public java.util.List getDisksList() { + return disks_; + } + + /** + * + * + *
        +   * Description of the data disks.
        +   * 
        + * + * repeated .google.cloud.vmmigration.v1.AzureVmDetails.Disk disks = 9; + */ + @java.lang.Override + public java.util.List + getDisksOrBuilderList() { + return disks_; + } + + /** + * + * + *
        +   * Description of the data disks.
        +   * 
        + * + * repeated .google.cloud.vmmigration.v1.AzureVmDetails.Disk disks = 9; + */ + @java.lang.Override + public int getDisksCount() { + return disks_.size(); + } + + /** + * + * + *
        +   * Description of the data disks.
        +   * 
        + * + * repeated .google.cloud.vmmigration.v1.AzureVmDetails.Disk disks = 9; + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureVmDetails.Disk getDisks(int index) { + return disks_.get(index); + } + + /** + * + * + *
        +   * Description of the data disks.
        +   * 
        + * + * repeated .google.cloud.vmmigration.v1.AzureVmDetails.Disk disks = 9; + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureVmDetails.DiskOrBuilder getDisksOrBuilder(int index) { + return disks_.get(index); + } + + public static final int OS_DESCRIPTION_FIELD_NUMBER = 10; + private com.google.cloud.vmmigration.v1.AzureVmDetails.OSDescription osDescription_; + + /** + * + * + *
        +   * Description of the OS.
        +   * 
        + * + * .google.cloud.vmmigration.v1.AzureVmDetails.OSDescription os_description = 10; + * + * @return Whether the osDescription field is set. + */ + @java.lang.Override + public boolean hasOsDescription() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
        +   * Description of the OS.
        +   * 
        + * + * .google.cloud.vmmigration.v1.AzureVmDetails.OSDescription os_description = 10; + * + * @return The osDescription. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureVmDetails.OSDescription getOsDescription() { + return osDescription_ == null + ? com.google.cloud.vmmigration.v1.AzureVmDetails.OSDescription.getDefaultInstance() + : osDescription_; + } + + /** + * + * + *
        +   * Description of the OS.
        +   * 
        + * + * .google.cloud.vmmigration.v1.AzureVmDetails.OSDescription os_description = 10; + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureVmDetails.OSDescriptionOrBuilder + getOsDescriptionOrBuilder() { + return osDescription_ == null + ? com.google.cloud.vmmigration.v1.AzureVmDetails.OSDescription.getDefaultInstance() + : osDescription_; + } + + public static final int BOOT_OPTION_FIELD_NUMBER = 11; + private int bootOption_ = 0; + + /** + * + * + *
        +   * The VM Boot Option.
        +   * 
        + * + * .google.cloud.vmmigration.v1.AzureVmDetails.BootOption boot_option = 11; + * + * @return The enum numeric value on the wire for bootOption. + */ + @java.lang.Override + public int getBootOptionValue() { + return bootOption_; + } + + /** + * + * + *
        +   * The VM Boot Option.
        +   * 
        + * + * .google.cloud.vmmigration.v1.AzureVmDetails.BootOption boot_option = 11; + * + * @return The bootOption. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureVmDetails.BootOption getBootOption() { + com.google.cloud.vmmigration.v1.AzureVmDetails.BootOption result = + com.google.cloud.vmmigration.v1.AzureVmDetails.BootOption.forNumber(bootOption_); + return result == null + ? com.google.cloud.vmmigration.v1.AzureVmDetails.BootOption.UNRECOGNIZED + : result; + } + + public static final int TAGS_FIELD_NUMBER = 12; + + private static final class TagsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AzureVmDetails_TagsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField tags_; + + private com.google.protobuf.MapField internalGetTags() { + if (tags_ == null) { + return com.google.protobuf.MapField.emptyMapField(TagsDefaultEntryHolder.defaultEntry); + } + return tags_; + } + + public int getTagsCount() { + return internalGetTags().getMap().size(); + } + + /** + * + * + *
        +   * The tags of the VM.
        +   * 
        + * + * map<string, string> tags = 12; + */ + @java.lang.Override + public boolean containsTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetTags().getMap().containsKey(key); + } + + /** Use {@link #getTagsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getTags() { + return getTagsMap(); + } + + /** + * + * + *
        +   * The tags of the VM.
        +   * 
        + * + * map<string, string> tags = 12; + */ + @java.lang.Override + public java.util.Map getTagsMap() { + return internalGetTags().getMap(); + } + + /** + * + * + *
        +   * The tags of the VM.
        +   * 
        + * + * map<string, string> tags = 12; + */ + @java.lang.Override + public /* nullable */ java.lang.String getTagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTags().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
        +   * The tags of the VM.
        +   * 
        + * + * map<string, string> tags = 12; + */ + @java.lang.Override + public java.lang.String getTagsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTags().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int COMPUTER_NAME_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") + private volatile java.lang.Object computerName_ = ""; + + /** + * + * + *
        +   * The VM's ComputerName.
        +   * 
        + * + * string computer_name = 13; + * + * @return The computerName. + */ + @java.lang.Override + public java.lang.String getComputerName() { + java.lang.Object ref = computerName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + computerName_ = s; + return s; + } + } + + /** + * + * + *
        +   * The VM's ComputerName.
        +   * 
        + * + * string computer_name = 13; + * + * @return The bytes for computerName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getComputerNameBytes() { + java.lang.Object ref = computerName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + computerName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ARCHITECTURE_FIELD_NUMBER = 14; + private int architecture_ = 0; + + /** + * + * + *
        +   * The CPU architecture.
        +   * 
        + * + * .google.cloud.vmmigration.v1.AzureVmDetails.VmArchitecture architecture = 14; + * + * @return The enum numeric value on the wire for architecture. + */ + @java.lang.Override + public int getArchitectureValue() { + return architecture_; + } + + /** + * + * + *
        +   * The CPU architecture.
        +   * 
        + * + * .google.cloud.vmmigration.v1.AzureVmDetails.VmArchitecture architecture = 14; + * + * @return The architecture. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureVmDetails.VmArchitecture getArchitecture() { + com.google.cloud.vmmigration.v1.AzureVmDetails.VmArchitecture result = + com.google.cloud.vmmigration.v1.AzureVmDetails.VmArchitecture.forNumber(architecture_); + return result == null + ? com.google.cloud.vmmigration.v1.AzureVmDetails.VmArchitecture.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(vmId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, vmId_); + } + if (powerState_ + != com.google.cloud.vmmigration.v1.AzureVmDetails.PowerState.POWER_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, powerState_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmSize_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, vmSize_); + } + if (cpuCount_ != 0) { + output.writeInt32(4, cpuCount_); + } + if (memoryMb_ != 0) { + output.writeInt32(5, memoryMb_); + } + if (diskCount_ != 0) { + output.writeInt32(6, diskCount_); + } + if (committedStorageMb_ != 0L) { + output.writeInt64(7, committedStorageMb_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(8, getOsDisk()); + } + for (int i = 0; i < disks_.size(); i++) { + output.writeMessage(9, disks_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(10, getOsDescription()); + } + if (bootOption_ + != com.google.cloud.vmmigration.v1.AzureVmDetails.BootOption.BOOT_OPTION_UNSPECIFIED + .getNumber()) { + output.writeEnum(11, bootOption_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetTags(), TagsDefaultEntryHolder.defaultEntry, 12); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(computerName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, computerName_); + } + if (architecture_ + != com.google.cloud.vmmigration.v1.AzureVmDetails.VmArchitecture.VM_ARCHITECTURE_UNSPECIFIED + .getNumber()) { + output.writeEnum(14, architecture_); + } + 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(vmId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, vmId_); + } + if (powerState_ + != com.google.cloud.vmmigration.v1.AzureVmDetails.PowerState.POWER_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, powerState_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmSize_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, vmSize_); + } + if (cpuCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, cpuCount_); + } + if (memoryMb_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, memoryMb_); + } + if (diskCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, diskCount_); + } + if (committedStorageMb_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, committedStorageMb_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getOsDisk()); + } + for (int i = 0; i < disks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, disks_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getOsDescription()); + } + if (bootOption_ + != com.google.cloud.vmmigration.v1.AzureVmDetails.BootOption.BOOT_OPTION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, bootOption_); + } + for (java.util.Map.Entry entry : + internalGetTags().getMap().entrySet()) { + com.google.protobuf.MapEntry tags__ = + TagsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, tags__); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(computerName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, computerName_); + } + if (architecture_ + != com.google.cloud.vmmigration.v1.AzureVmDetails.VmArchitecture.VM_ARCHITECTURE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(14, architecture_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.vmmigration.v1.AzureVmDetails)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.AzureVmDetails other = + (com.google.cloud.vmmigration.v1.AzureVmDetails) obj; + + if (!getVmId().equals(other.getVmId())) return false; + if (powerState_ != other.powerState_) return false; + if (!getVmSize().equals(other.getVmSize())) return false; + if (getCpuCount() != other.getCpuCount()) return false; + if (getMemoryMb() != other.getMemoryMb()) return false; + if (getDiskCount() != other.getDiskCount()) return false; + if (getCommittedStorageMb() != other.getCommittedStorageMb()) return false; + if (hasOsDisk() != other.hasOsDisk()) return false; + if (hasOsDisk()) { + if (!getOsDisk().equals(other.getOsDisk())) return false; + } + if (!getDisksList().equals(other.getDisksList())) return false; + if (hasOsDescription() != other.hasOsDescription()) return false; + if (hasOsDescription()) { + if (!getOsDescription().equals(other.getOsDescription())) return false; + } + if (bootOption_ != other.bootOption_) return false; + if (!internalGetTags().equals(other.internalGetTags())) return false; + if (!getComputerName().equals(other.getComputerName())) return false; + if (architecture_ != other.architecture_) 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) + VM_ID_FIELD_NUMBER; + hash = (53 * hash) + getVmId().hashCode(); + hash = (37 * hash) + POWER_STATE_FIELD_NUMBER; + hash = (53 * hash) + powerState_; + hash = (37 * hash) + VM_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getVmSize().hashCode(); + hash = (37 * hash) + CPU_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getCpuCount(); + hash = (37 * hash) + MEMORY_MB_FIELD_NUMBER; + hash = (53 * hash) + getMemoryMb(); + hash = (37 * hash) + DISK_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getDiskCount(); + hash = (37 * hash) + COMMITTED_STORAGE_MB_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCommittedStorageMb()); + if (hasOsDisk()) { + hash = (37 * hash) + OS_DISK_FIELD_NUMBER; + hash = (53 * hash) + getOsDisk().hashCode(); + } + if (getDisksCount() > 0) { + hash = (37 * hash) + DISKS_FIELD_NUMBER; + hash = (53 * hash) + getDisksList().hashCode(); + } + if (hasOsDescription()) { + hash = (37 * hash) + OS_DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getOsDescription().hashCode(); + } + hash = (37 * hash) + BOOT_OPTION_FIELD_NUMBER; + hash = (53 * hash) + bootOption_; + if (!internalGetTags().getMap().isEmpty()) { + hash = (37 * hash) + TAGS_FIELD_NUMBER; + hash = (53 * hash) + internalGetTags().hashCode(); + } + hash = (37 * hash) + COMPUTER_NAME_FIELD_NUMBER; + hash = (53 * hash) + getComputerName().hashCode(); + hash = (37 * hash) + ARCHITECTURE_FIELD_NUMBER; + hash = (53 * hash) + architecture_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.AzureVmDetails parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.AzureVmDetails 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.vmmigration.v1.AzureVmDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.AzureVmDetails parseFrom( + 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.vmmigration.v1.AzureVmDetails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.AzureVmDetails parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.AzureVmDetails parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.AzureVmDetails 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.vmmigration.v1.AzureVmDetails parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.AzureVmDetails 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.vmmigration.v1.AzureVmDetails parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.AzureVmDetails 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.vmmigration.v1.AzureVmDetails prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
        +   * AzureVmDetails describes a VM in Azure.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.AzureVmDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.AzureVmDetails) + com.google.cloud.vmmigration.v1.AzureVmDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AzureVmDetails_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 12: + return internalGetTags(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 12: + return internalGetMutableTags(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AzureVmDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.AzureVmDetails.class, + com.google.cloud.vmmigration.v1.AzureVmDetails.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.AzureVmDetails.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getOsDiskFieldBuilder(); + getDisksFieldBuilder(); + getOsDescriptionFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + vmId_ = ""; + powerState_ = 0; + vmSize_ = ""; + cpuCount_ = 0; + memoryMb_ = 0; + diskCount_ = 0; + committedStorageMb_ = 0L; + osDisk_ = null; + if (osDiskBuilder_ != null) { + osDiskBuilder_.dispose(); + osDiskBuilder_ = null; + } + if (disksBuilder_ == null) { + disks_ = java.util.Collections.emptyList(); + } else { + disks_ = null; + disksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000100); + osDescription_ = null; + if (osDescriptionBuilder_ != null) { + osDescriptionBuilder_.dispose(); + osDescriptionBuilder_ = null; + } + bootOption_ = 0; + internalGetMutableTags().clear(); + computerName_ = ""; + architecture_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AzureVmDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureVmDetails getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.AzureVmDetails.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureVmDetails build() { + com.google.cloud.vmmigration.v1.AzureVmDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureVmDetails buildPartial() { + com.google.cloud.vmmigration.v1.AzureVmDetails result = + new com.google.cloud.vmmigration.v1.AzureVmDetails(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.vmmigration.v1.AzureVmDetails result) { + if (disksBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0)) { + disks_ = java.util.Collections.unmodifiableList(disks_); + bitField0_ = (bitField0_ & ~0x00000100); + } + result.disks_ = disks_; + } else { + result.disks_ = disksBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.vmmigration.v1.AzureVmDetails result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.vmId_ = vmId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.powerState_ = powerState_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.vmSize_ = vmSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.cpuCount_ = cpuCount_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.memoryMb_ = memoryMb_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.diskCount_ = diskCount_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.committedStorageMb_ = committedStorageMb_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000080) != 0)) { + result.osDisk_ = osDiskBuilder_ == null ? osDisk_ : osDiskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.osDescription_ = + osDescriptionBuilder_ == null ? osDescription_ : osDescriptionBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.bootOption_ = bootOption_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.tags_ = internalGetTags(); + result.tags_.makeImmutable(); + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.computerName_ = computerName_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.architecture_ = architecture_; + } + 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.vmmigration.v1.AzureVmDetails) { + return mergeFrom((com.google.cloud.vmmigration.v1.AzureVmDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.AzureVmDetails other) { + if (other == com.google.cloud.vmmigration.v1.AzureVmDetails.getDefaultInstance()) return this; + if (!other.getVmId().isEmpty()) { + vmId_ = other.vmId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.powerState_ != 0) { + setPowerStateValue(other.getPowerStateValue()); + } + if (!other.getVmSize().isEmpty()) { + vmSize_ = other.vmSize_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.getCpuCount() != 0) { + setCpuCount(other.getCpuCount()); + } + if (other.getMemoryMb() != 0) { + setMemoryMb(other.getMemoryMb()); + } + if (other.getDiskCount() != 0) { + setDiskCount(other.getDiskCount()); + } + if (other.getCommittedStorageMb() != 0L) { + setCommittedStorageMb(other.getCommittedStorageMb()); + } + if (other.hasOsDisk()) { + mergeOsDisk(other.getOsDisk()); + } + if (disksBuilder_ == null) { + if (!other.disks_.isEmpty()) { + if (disks_.isEmpty()) { + disks_ = other.disks_; + bitField0_ = (bitField0_ & ~0x00000100); + } else { + ensureDisksIsMutable(); + disks_.addAll(other.disks_); + } + onChanged(); + } + } else { + if (!other.disks_.isEmpty()) { + if (disksBuilder_.isEmpty()) { + disksBuilder_.dispose(); + disksBuilder_ = null; + disks_ = other.disks_; + bitField0_ = (bitField0_ & ~0x00000100); + disksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDisksFieldBuilder() + : null; + } else { + disksBuilder_.addAllMessages(other.disks_); + } + } + } + if (other.hasOsDescription()) { + mergeOsDescription(other.getOsDescription()); + } + if (other.bootOption_ != 0) { + setBootOptionValue(other.getBootOptionValue()); + } + internalGetMutableTags().mergeFrom(other.internalGetTags()); + bitField0_ |= 0x00000800; + if (!other.getComputerName().isEmpty()) { + computerName_ = other.computerName_; + bitField0_ |= 0x00001000; + onChanged(); + } + if (other.architecture_ != 0) { + setArchitectureValue(other.getArchitectureValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + vmId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + powerState_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + vmSize_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + cpuCount_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + memoryMb_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + diskCount_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: + { + committedStorageMb_ = input.readInt64(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 66: + { + input.readMessage(getOsDiskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: + { + com.google.cloud.vmmigration.v1.AzureVmDetails.Disk m = + input.readMessage( + com.google.cloud.vmmigration.v1.AzureVmDetails.Disk.parser(), + extensionRegistry); + if (disksBuilder_ == null) { + ensureDisksIsMutable(); + disks_.add(m); + } else { + disksBuilder_.addMessage(m); + } + break; + } // case 74 + case 82: + { + input.readMessage(getOsDescriptionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 88: + { + bootOption_ = input.readEnum(); + bitField0_ |= 0x00000400; + break; + } // case 88 + case 98: + { + com.google.protobuf.MapEntry tags__ = + input.readMessage( + TagsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableTags().getMutableMap().put(tags__.getKey(), tags__.getValue()); + bitField0_ |= 0x00000800; + break; + } // case 98 + case 106: + { + computerName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case 106 + case 112: + { + architecture_ = input.readEnum(); + bitField0_ |= 0x00002000; + 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 bitField0_; + + private java.lang.Object vmId_ = ""; + + /** + * + * + *
        +     * The VM full path in Azure.
        +     * 
        + * + * string vm_id = 1; + * + * @return The vmId. + */ + public java.lang.String getVmId() { + java.lang.Object ref = vmId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vmId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * The VM full path in Azure.
        +     * 
        + * + * string vm_id = 1; + * + * @return The bytes for vmId. + */ + public com.google.protobuf.ByteString getVmIdBytes() { + java.lang.Object ref = vmId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vmId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * The VM full path in Azure.
        +     * 
        + * + * string vm_id = 1; + * + * @param value The vmId to set. + * @return This builder for chaining. + */ + public Builder setVmId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + vmId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +     * The VM full path in Azure.
        +     * 
        + * + * string vm_id = 1; + * + * @return This builder for chaining. + */ + public Builder clearVmId() { + vmId_ = getDefaultInstance().getVmId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
        +     * The VM full path in Azure.
        +     * 
        + * + * string vm_id = 1; + * + * @param value The bytes for vmId to set. + * @return This builder for chaining. + */ + public Builder setVmIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vmId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int powerState_ = 0; + + /** + * + * + *
        +     * The power state of the VM at the moment list was taken.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AzureVmDetails.PowerState power_state = 2; + * + * @return The enum numeric value on the wire for powerState. + */ + @java.lang.Override + public int getPowerStateValue() { + return powerState_; + } + + /** + * + * + *
        +     * The power state of the VM at the moment list was taken.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AzureVmDetails.PowerState power_state = 2; + * + * @param value The enum numeric value on the wire for powerState to set. + * @return This builder for chaining. + */ + public Builder setPowerStateValue(int value) { + powerState_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +     * The power state of the VM at the moment list was taken.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AzureVmDetails.PowerState power_state = 2; + * + * @return The powerState. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureVmDetails.PowerState getPowerState() { + com.google.cloud.vmmigration.v1.AzureVmDetails.PowerState result = + com.google.cloud.vmmigration.v1.AzureVmDetails.PowerState.forNumber(powerState_); + return result == null + ? com.google.cloud.vmmigration.v1.AzureVmDetails.PowerState.UNRECOGNIZED + : result; + } + + /** + * + * + *
        +     * The power state of the VM at the moment list was taken.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AzureVmDetails.PowerState power_state = 2; + * + * @param value The powerState to set. + * @return This builder for chaining. + */ + public Builder setPowerState(com.google.cloud.vmmigration.v1.AzureVmDetails.PowerState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + powerState_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
        +     * The power state of the VM at the moment list was taken.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AzureVmDetails.PowerState power_state = 2; + * + * @return This builder for chaining. + */ + public Builder clearPowerState() { + bitField0_ = (bitField0_ & ~0x00000002); + powerState_ = 0; + onChanged(); + return this; + } + + private java.lang.Object vmSize_ = ""; + + /** + * + * + *
        +     * VM size as configured in Azure. Determines the VM's hardware spec.
        +     * 
        + * + * string vm_size = 3; + * + * @return The vmSize. + */ + public java.lang.String getVmSize() { + java.lang.Object ref = vmSize_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vmSize_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * VM size as configured in Azure. Determines the VM's hardware spec.
        +     * 
        + * + * string vm_size = 3; + * + * @return The bytes for vmSize. + */ + public com.google.protobuf.ByteString getVmSizeBytes() { + java.lang.Object ref = vmSize_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vmSize_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * VM size as configured in Azure. Determines the VM's hardware spec.
        +     * 
        + * + * string vm_size = 3; + * + * @param value The vmSize to set. + * @return This builder for chaining. + */ + public Builder setVmSize(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + vmSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * VM size as configured in Azure. Determines the VM's hardware spec.
        +     * 
        + * + * string vm_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearVmSize() { + vmSize_ = getDefaultInstance().getVmSize(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
        +     * VM size as configured in Azure. Determines the VM's hardware spec.
        +     * 
        + * + * string vm_size = 3; + * + * @param value The bytes for vmSize to set. + * @return This builder for chaining. + */ + public Builder setVmSizeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vmSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int cpuCount_; + + /** + * + * + *
        +     * The number of cpus the VM has.
        +     * 
        + * + * int32 cpu_count = 4; + * + * @return The cpuCount. + */ + @java.lang.Override + public int getCpuCount() { + return cpuCount_; + } + + /** + * + * + *
        +     * The number of cpus the VM has.
        +     * 
        + * + * int32 cpu_count = 4; + * + * @param value The cpuCount to set. + * @return This builder for chaining. + */ + public Builder setCpuCount(int value) { + + cpuCount_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
        +     * The number of cpus the VM has.
        +     * 
        + * + * int32 cpu_count = 4; + * + * @return This builder for chaining. + */ + public Builder clearCpuCount() { + bitField0_ = (bitField0_ & ~0x00000008); + cpuCount_ = 0; + onChanged(); + return this; + } + + private int memoryMb_; + + /** + * + * + *
        +     * The memory size of the VM in MB.
        +     * 
        + * + * int32 memory_mb = 5; + * + * @return The memoryMb. + */ + @java.lang.Override + public int getMemoryMb() { + return memoryMb_; + } + + /** + * + * + *
        +     * The memory size of the VM in MB.
        +     * 
        + * + * int32 memory_mb = 5; + * + * @param value The memoryMb to set. + * @return This builder for chaining. + */ + public Builder setMemoryMb(int value) { + + memoryMb_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
        +     * The memory size of the VM in MB.
        +     * 
        + * + * int32 memory_mb = 5; + * + * @return This builder for chaining. + */ + public Builder clearMemoryMb() { + bitField0_ = (bitField0_ & ~0x00000010); + memoryMb_ = 0; + onChanged(); + return this; + } + + private int diskCount_; + + /** + * + * + *
        +     * The number of disks the VM has, including OS disk.
        +     * 
        + * + * int32 disk_count = 6; + * + * @return The diskCount. + */ + @java.lang.Override + public int getDiskCount() { + return diskCount_; + } + + /** + * + * + *
        +     * The number of disks the VM has, including OS disk.
        +     * 
        + * + * int32 disk_count = 6; + * + * @param value The diskCount to set. + * @return This builder for chaining. + */ + public Builder setDiskCount(int value) { + + diskCount_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
        +     * The number of disks the VM has, including OS disk.
        +     * 
        + * + * int32 disk_count = 6; + * + * @return This builder for chaining. + */ + public Builder clearDiskCount() { + bitField0_ = (bitField0_ & ~0x00000020); + diskCount_ = 0; + onChanged(); + return this; + } + + private long committedStorageMb_; + + /** + * + * + *
        +     * The total size of the storage allocated to the VM in MB.
        +     * 
        + * + * int64 committed_storage_mb = 7; + * + * @return The committedStorageMb. + */ + @java.lang.Override + public long getCommittedStorageMb() { + return committedStorageMb_; + } + + /** + * + * + *
        +     * The total size of the storage allocated to the VM in MB.
        +     * 
        + * + * int64 committed_storage_mb = 7; + * + * @param value The committedStorageMb to set. + * @return This builder for chaining. + */ + public Builder setCommittedStorageMb(long value) { + + committedStorageMb_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
        +     * The total size of the storage allocated to the VM in MB.
        +     * 
        + * + * int64 committed_storage_mb = 7; + * + * @return This builder for chaining. + */ + public Builder clearCommittedStorageMb() { + bitField0_ = (bitField0_ & ~0x00000040); + committedStorageMb_ = 0L; + onChanged(); + return this; + } + + private com.google.cloud.vmmigration.v1.AzureVmDetails.OSDisk osDisk_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.AzureVmDetails.OSDisk, + com.google.cloud.vmmigration.v1.AzureVmDetails.OSDisk.Builder, + com.google.cloud.vmmigration.v1.AzureVmDetails.OSDiskOrBuilder> + osDiskBuilder_; + + /** + * + * + *
        +     * Description of the OS disk.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AzureVmDetails.OSDisk os_disk = 8; + * + * @return Whether the osDisk field is set. + */ + public boolean hasOsDisk() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
        +     * Description of the OS disk.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AzureVmDetails.OSDisk os_disk = 8; + * + * @return The osDisk. + */ + public com.google.cloud.vmmigration.v1.AzureVmDetails.OSDisk getOsDisk() { + if (osDiskBuilder_ == null) { + return osDisk_ == null + ? com.google.cloud.vmmigration.v1.AzureVmDetails.OSDisk.getDefaultInstance() + : osDisk_; + } else { + return osDiskBuilder_.getMessage(); + } + } + + /** + * + * + *
        +     * Description of the OS disk.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AzureVmDetails.OSDisk os_disk = 8; + */ + public Builder setOsDisk(com.google.cloud.vmmigration.v1.AzureVmDetails.OSDisk value) { + if (osDiskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + osDisk_ = value; + } else { + osDiskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Description of the OS disk.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AzureVmDetails.OSDisk os_disk = 8; + */ + public Builder setOsDisk( + com.google.cloud.vmmigration.v1.AzureVmDetails.OSDisk.Builder builderForValue) { + if (osDiskBuilder_ == null) { + osDisk_ = builderForValue.build(); + } else { + osDiskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Description of the OS disk.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AzureVmDetails.OSDisk os_disk = 8; + */ + public Builder mergeOsDisk(com.google.cloud.vmmigration.v1.AzureVmDetails.OSDisk value) { + if (osDiskBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && osDisk_ != null + && osDisk_ + != com.google.cloud.vmmigration.v1.AzureVmDetails.OSDisk.getDefaultInstance()) { + getOsDiskBuilder().mergeFrom(value); + } else { + osDisk_ = value; + } + } else { + osDiskBuilder_.mergeFrom(value); + } + if (osDisk_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Description of the OS disk.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AzureVmDetails.OSDisk os_disk = 8; + */ + public Builder clearOsDisk() { + bitField0_ = (bitField0_ & ~0x00000080); + osDisk_ = null; + if (osDiskBuilder_ != null) { + osDiskBuilder_.dispose(); + osDiskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Description of the OS disk.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AzureVmDetails.OSDisk os_disk = 8; + */ + public com.google.cloud.vmmigration.v1.AzureVmDetails.OSDisk.Builder getOsDiskBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getOsDiskFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Description of the OS disk.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AzureVmDetails.OSDisk os_disk = 8; + */ + public com.google.cloud.vmmigration.v1.AzureVmDetails.OSDiskOrBuilder getOsDiskOrBuilder() { + if (osDiskBuilder_ != null) { + return osDiskBuilder_.getMessageOrBuilder(); + } else { + return osDisk_ == null + ? com.google.cloud.vmmigration.v1.AzureVmDetails.OSDisk.getDefaultInstance() + : osDisk_; + } + } + + /** + * + * + *
        +     * Description of the OS disk.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AzureVmDetails.OSDisk os_disk = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.AzureVmDetails.OSDisk, + com.google.cloud.vmmigration.v1.AzureVmDetails.OSDisk.Builder, + com.google.cloud.vmmigration.v1.AzureVmDetails.OSDiskOrBuilder> + getOsDiskFieldBuilder() { + if (osDiskBuilder_ == null) { + osDiskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.AzureVmDetails.OSDisk, + com.google.cloud.vmmigration.v1.AzureVmDetails.OSDisk.Builder, + com.google.cloud.vmmigration.v1.AzureVmDetails.OSDiskOrBuilder>( + getOsDisk(), getParentForChildren(), isClean()); + osDisk_ = null; + } + return osDiskBuilder_; + } + + private java.util.List disks_ = + java.util.Collections.emptyList(); + + private void ensureDisksIsMutable() { + if (!((bitField0_ & 0x00000100) != 0)) { + disks_ = + new java.util.ArrayList(disks_); + bitField0_ |= 0x00000100; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.AzureVmDetails.Disk, + com.google.cloud.vmmigration.v1.AzureVmDetails.Disk.Builder, + com.google.cloud.vmmigration.v1.AzureVmDetails.DiskOrBuilder> + disksBuilder_; + + /** + * + * + *
        +     * Description of the data disks.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.AzureVmDetails.Disk disks = 9; + */ + public java.util.List getDisksList() { + if (disksBuilder_ == null) { + return java.util.Collections.unmodifiableList(disks_); + } else { + return disksBuilder_.getMessageList(); + } + } + + /** + * + * + *
        +     * Description of the data disks.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.AzureVmDetails.Disk disks = 9; + */ + public int getDisksCount() { + if (disksBuilder_ == null) { + return disks_.size(); + } else { + return disksBuilder_.getCount(); + } + } + + /** + * + * + *
        +     * Description of the data disks.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.AzureVmDetails.Disk disks = 9; + */ + public com.google.cloud.vmmigration.v1.AzureVmDetails.Disk getDisks(int index) { + if (disksBuilder_ == null) { + return disks_.get(index); + } else { + return disksBuilder_.getMessage(index); + } + } + + /** + * + * + *
        +     * Description of the data disks.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.AzureVmDetails.Disk disks = 9; + */ + public Builder setDisks(int index, com.google.cloud.vmmigration.v1.AzureVmDetails.Disk value) { + if (disksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDisksIsMutable(); + disks_.set(index, value); + onChanged(); + } else { + disksBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * Description of the data disks.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.AzureVmDetails.Disk disks = 9; + */ + public Builder setDisks( + int index, com.google.cloud.vmmigration.v1.AzureVmDetails.Disk.Builder builderForValue) { + if (disksBuilder_ == null) { + ensureDisksIsMutable(); + disks_.set(index, builderForValue.build()); + onChanged(); + } else { + disksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Description of the data disks.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.AzureVmDetails.Disk disks = 9; + */ + public Builder addDisks(com.google.cloud.vmmigration.v1.AzureVmDetails.Disk value) { + if (disksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDisksIsMutable(); + disks_.add(value); + onChanged(); + } else { + disksBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
        +     * Description of the data disks.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.AzureVmDetails.Disk disks = 9; + */ + public Builder addDisks(int index, com.google.cloud.vmmigration.v1.AzureVmDetails.Disk value) { + if (disksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDisksIsMutable(); + disks_.add(index, value); + onChanged(); + } else { + disksBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * Description of the data disks.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.AzureVmDetails.Disk disks = 9; + */ + public Builder addDisks( + com.google.cloud.vmmigration.v1.AzureVmDetails.Disk.Builder builderForValue) { + if (disksBuilder_ == null) { + ensureDisksIsMutable(); + disks_.add(builderForValue.build()); + onChanged(); + } else { + disksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Description of the data disks.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.AzureVmDetails.Disk disks = 9; + */ + public Builder addDisks( + int index, com.google.cloud.vmmigration.v1.AzureVmDetails.Disk.Builder builderForValue) { + if (disksBuilder_ == null) { + ensureDisksIsMutable(); + disks_.add(index, builderForValue.build()); + onChanged(); + } else { + disksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Description of the data disks.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.AzureVmDetails.Disk disks = 9; + */ + public Builder addAllDisks( + java.lang.Iterable values) { + if (disksBuilder_ == null) { + ensureDisksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, disks_); + onChanged(); + } else { + disksBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
        +     * Description of the data disks.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.AzureVmDetails.Disk disks = 9; + */ + public Builder clearDisks() { + if (disksBuilder_ == null) { + disks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + } else { + disksBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Description of the data disks.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.AzureVmDetails.Disk disks = 9; + */ + public Builder removeDisks(int index) { + if (disksBuilder_ == null) { + ensureDisksIsMutable(); + disks_.remove(index); + onChanged(); + } else { + disksBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
        +     * Description of the data disks.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.AzureVmDetails.Disk disks = 9; + */ + public com.google.cloud.vmmigration.v1.AzureVmDetails.Disk.Builder getDisksBuilder(int index) { + return getDisksFieldBuilder().getBuilder(index); + } + + /** + * + * + *
        +     * Description of the data disks.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.AzureVmDetails.Disk disks = 9; + */ + public com.google.cloud.vmmigration.v1.AzureVmDetails.DiskOrBuilder getDisksOrBuilder( + int index) { + if (disksBuilder_ == null) { + return disks_.get(index); + } else { + return disksBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
        +     * Description of the data disks.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.AzureVmDetails.Disk disks = 9; + */ + public java.util.List + getDisksOrBuilderList() { + if (disksBuilder_ != null) { + return disksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(disks_); + } + } + + /** + * + * + *
        +     * Description of the data disks.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.AzureVmDetails.Disk disks = 9; + */ + public com.google.cloud.vmmigration.v1.AzureVmDetails.Disk.Builder addDisksBuilder() { + return getDisksFieldBuilder() + .addBuilder(com.google.cloud.vmmigration.v1.AzureVmDetails.Disk.getDefaultInstance()); + } + + /** + * + * + *
        +     * Description of the data disks.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.AzureVmDetails.Disk disks = 9; + */ + public com.google.cloud.vmmigration.v1.AzureVmDetails.Disk.Builder addDisksBuilder(int index) { + return getDisksFieldBuilder() + .addBuilder( + index, com.google.cloud.vmmigration.v1.AzureVmDetails.Disk.getDefaultInstance()); + } + + /** + * + * + *
        +     * Description of the data disks.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.AzureVmDetails.Disk disks = 9; + */ + public java.util.List + getDisksBuilderList() { + return getDisksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.AzureVmDetails.Disk, + com.google.cloud.vmmigration.v1.AzureVmDetails.Disk.Builder, + com.google.cloud.vmmigration.v1.AzureVmDetails.DiskOrBuilder> + getDisksFieldBuilder() { + if (disksBuilder_ == null) { + disksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.AzureVmDetails.Disk, + com.google.cloud.vmmigration.v1.AzureVmDetails.Disk.Builder, + com.google.cloud.vmmigration.v1.AzureVmDetails.DiskOrBuilder>( + disks_, ((bitField0_ & 0x00000100) != 0), getParentForChildren(), isClean()); + disks_ = null; + } + return disksBuilder_; + } + + private com.google.cloud.vmmigration.v1.AzureVmDetails.OSDescription osDescription_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.AzureVmDetails.OSDescription, + com.google.cloud.vmmigration.v1.AzureVmDetails.OSDescription.Builder, + com.google.cloud.vmmigration.v1.AzureVmDetails.OSDescriptionOrBuilder> + osDescriptionBuilder_; + + /** + * + * + *
        +     * Description of the OS.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AzureVmDetails.OSDescription os_description = 10; + * + * @return Whether the osDescription field is set. + */ + public boolean hasOsDescription() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
        +     * Description of the OS.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AzureVmDetails.OSDescription os_description = 10; + * + * @return The osDescription. + */ + public com.google.cloud.vmmigration.v1.AzureVmDetails.OSDescription getOsDescription() { + if (osDescriptionBuilder_ == null) { + return osDescription_ == null + ? com.google.cloud.vmmigration.v1.AzureVmDetails.OSDescription.getDefaultInstance() + : osDescription_; + } else { + return osDescriptionBuilder_.getMessage(); + } + } + + /** + * + * + *
        +     * Description of the OS.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AzureVmDetails.OSDescription os_description = 10; + */ + public Builder setOsDescription( + com.google.cloud.vmmigration.v1.AzureVmDetails.OSDescription value) { + if (osDescriptionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + osDescription_ = value; + } else { + osDescriptionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Description of the OS.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AzureVmDetails.OSDescription os_description = 10; + */ + public Builder setOsDescription( + com.google.cloud.vmmigration.v1.AzureVmDetails.OSDescription.Builder builderForValue) { + if (osDescriptionBuilder_ == null) { + osDescription_ = builderForValue.build(); + } else { + osDescriptionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Description of the OS.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AzureVmDetails.OSDescription os_description = 10; + */ + public Builder mergeOsDescription( + com.google.cloud.vmmigration.v1.AzureVmDetails.OSDescription value) { + if (osDescriptionBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && osDescription_ != null + && osDescription_ + != com.google.cloud.vmmigration.v1.AzureVmDetails.OSDescription + .getDefaultInstance()) { + getOsDescriptionBuilder().mergeFrom(value); + } else { + osDescription_ = value; + } + } else { + osDescriptionBuilder_.mergeFrom(value); + } + if (osDescription_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Description of the OS.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AzureVmDetails.OSDescription os_description = 10; + */ + public Builder clearOsDescription() { + bitField0_ = (bitField0_ & ~0x00000200); + osDescription_ = null; + if (osDescriptionBuilder_ != null) { + osDescriptionBuilder_.dispose(); + osDescriptionBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Description of the OS.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AzureVmDetails.OSDescription os_description = 10; + */ + public com.google.cloud.vmmigration.v1.AzureVmDetails.OSDescription.Builder + getOsDescriptionBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return getOsDescriptionFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Description of the OS.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AzureVmDetails.OSDescription os_description = 10; + */ + public com.google.cloud.vmmigration.v1.AzureVmDetails.OSDescriptionOrBuilder + getOsDescriptionOrBuilder() { + if (osDescriptionBuilder_ != null) { + return osDescriptionBuilder_.getMessageOrBuilder(); + } else { + return osDescription_ == null + ? com.google.cloud.vmmigration.v1.AzureVmDetails.OSDescription.getDefaultInstance() + : osDescription_; + } + } + + /** + * + * + *
        +     * Description of the OS.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AzureVmDetails.OSDescription os_description = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.AzureVmDetails.OSDescription, + com.google.cloud.vmmigration.v1.AzureVmDetails.OSDescription.Builder, + com.google.cloud.vmmigration.v1.AzureVmDetails.OSDescriptionOrBuilder> + getOsDescriptionFieldBuilder() { + if (osDescriptionBuilder_ == null) { + osDescriptionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.AzureVmDetails.OSDescription, + com.google.cloud.vmmigration.v1.AzureVmDetails.OSDescription.Builder, + com.google.cloud.vmmigration.v1.AzureVmDetails.OSDescriptionOrBuilder>( + getOsDescription(), getParentForChildren(), isClean()); + osDescription_ = null; + } + return osDescriptionBuilder_; + } + + private int bootOption_ = 0; + + /** + * + * + *
        +     * The VM Boot Option.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AzureVmDetails.BootOption boot_option = 11; + * + * @return The enum numeric value on the wire for bootOption. + */ + @java.lang.Override + public int getBootOptionValue() { + return bootOption_; + } + + /** + * + * + *
        +     * The VM Boot Option.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AzureVmDetails.BootOption boot_option = 11; + * + * @param value The enum numeric value on the wire for bootOption to set. + * @return This builder for chaining. + */ + public Builder setBootOptionValue(int value) { + bootOption_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
        +     * The VM Boot Option.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AzureVmDetails.BootOption boot_option = 11; + * + * @return The bootOption. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureVmDetails.BootOption getBootOption() { + com.google.cloud.vmmigration.v1.AzureVmDetails.BootOption result = + com.google.cloud.vmmigration.v1.AzureVmDetails.BootOption.forNumber(bootOption_); + return result == null + ? com.google.cloud.vmmigration.v1.AzureVmDetails.BootOption.UNRECOGNIZED + : result; + } + + /** + * + * + *
        +     * The VM Boot Option.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AzureVmDetails.BootOption boot_option = 11; + * + * @param value The bootOption to set. + * @return This builder for chaining. + */ + public Builder setBootOption(com.google.cloud.vmmigration.v1.AzureVmDetails.BootOption value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000400; + bootOption_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
        +     * The VM Boot Option.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AzureVmDetails.BootOption boot_option = 11; + * + * @return This builder for chaining. + */ + public Builder clearBootOption() { + bitField0_ = (bitField0_ & ~0x00000400); + bootOption_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.MapField tags_; + + private com.google.protobuf.MapField internalGetTags() { + if (tags_ == null) { + return com.google.protobuf.MapField.emptyMapField(TagsDefaultEntryHolder.defaultEntry); + } + return tags_; + } + + private com.google.protobuf.MapField + internalGetMutableTags() { + if (tags_ == null) { + tags_ = com.google.protobuf.MapField.newMapField(TagsDefaultEntryHolder.defaultEntry); + } + if (!tags_.isMutable()) { + tags_ = tags_.copy(); + } + bitField0_ |= 0x00000800; + onChanged(); + return tags_; + } + + public int getTagsCount() { + return internalGetTags().getMap().size(); + } + + /** + * + * + *
        +     * The tags of the VM.
        +     * 
        + * + * map<string, string> tags = 12; + */ + @java.lang.Override + public boolean containsTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetTags().getMap().containsKey(key); + } + + /** Use {@link #getTagsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getTags() { + return getTagsMap(); + } + + /** + * + * + *
        +     * The tags of the VM.
        +     * 
        + * + * map<string, string> tags = 12; + */ + @java.lang.Override + public java.util.Map getTagsMap() { + return internalGetTags().getMap(); + } + + /** + * + * + *
        +     * The tags of the VM.
        +     * 
        + * + * map<string, string> tags = 12; + */ + @java.lang.Override + public /* nullable */ java.lang.String getTagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTags().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
        +     * The tags of the VM.
        +     * 
        + * + * map<string, string> tags = 12; + */ + @java.lang.Override + public java.lang.String getTagsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTags().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearTags() { + bitField0_ = (bitField0_ & ~0x00000800); + internalGetMutableTags().getMutableMap().clear(); + return this; + } + + /** + * + * + *
        +     * The tags of the VM.
        +     * 
        + * + * map<string, string> tags = 12; + */ + public Builder removeTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableTags().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableTags() { + bitField0_ |= 0x00000800; + return internalGetMutableTags().getMutableMap(); + } + + /** + * + * + *
        +     * The tags of the VM.
        +     * 
        + * + * map<string, string> tags = 12; + */ + public Builder putTags(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableTags().getMutableMap().put(key, value); + bitField0_ |= 0x00000800; + return this; + } + + /** + * + * + *
        +     * The tags of the VM.
        +     * 
        + * + * map<string, string> tags = 12; + */ + public Builder putAllTags(java.util.Map values) { + internalGetMutableTags().getMutableMap().putAll(values); + bitField0_ |= 0x00000800; + return this; + } + + private java.lang.Object computerName_ = ""; + + /** + * + * + *
        +     * The VM's ComputerName.
        +     * 
        + * + * string computer_name = 13; + * + * @return The computerName. + */ + public java.lang.String getComputerName() { + java.lang.Object ref = computerName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + computerName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * The VM's ComputerName.
        +     * 
        + * + * string computer_name = 13; + * + * @return The bytes for computerName. + */ + public com.google.protobuf.ByteString getComputerNameBytes() { + java.lang.Object ref = computerName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + computerName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * The VM's ComputerName.
        +     * 
        + * + * string computer_name = 13; + * + * @param value The computerName to set. + * @return This builder for chaining. + */ + public Builder setComputerName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + computerName_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
        +     * The VM's ComputerName.
        +     * 
        + * + * string computer_name = 13; + * + * @return This builder for chaining. + */ + public Builder clearComputerName() { + computerName_ = getDefaultInstance().getComputerName(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + return this; + } + + /** + * + * + *
        +     * The VM's ComputerName.
        +     * 
        + * + * string computer_name = 13; + * + * @param value The bytes for computerName to set. + * @return This builder for chaining. + */ + public Builder setComputerNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + computerName_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + private int architecture_ = 0; + + /** + * + * + *
        +     * The CPU architecture.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AzureVmDetails.VmArchitecture architecture = 14; + * + * @return The enum numeric value on the wire for architecture. + */ + @java.lang.Override + public int getArchitectureValue() { + return architecture_; + } + + /** + * + * + *
        +     * The CPU architecture.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AzureVmDetails.VmArchitecture architecture = 14; + * + * @param value The enum numeric value on the wire for architecture to set. + * @return This builder for chaining. + */ + public Builder setArchitectureValue(int value) { + architecture_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
        +     * The CPU architecture.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AzureVmDetails.VmArchitecture architecture = 14; + * + * @return The architecture. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureVmDetails.VmArchitecture getArchitecture() { + com.google.cloud.vmmigration.v1.AzureVmDetails.VmArchitecture result = + com.google.cloud.vmmigration.v1.AzureVmDetails.VmArchitecture.forNumber(architecture_); + return result == null + ? com.google.cloud.vmmigration.v1.AzureVmDetails.VmArchitecture.UNRECOGNIZED + : result; + } + + /** + * + * + *
        +     * The CPU architecture.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AzureVmDetails.VmArchitecture architecture = 14; + * + * @param value The architecture to set. + * @return This builder for chaining. + */ + public Builder setArchitecture( + com.google.cloud.vmmigration.v1.AzureVmDetails.VmArchitecture value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00002000; + architecture_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
        +     * The CPU architecture.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AzureVmDetails.VmArchitecture architecture = 14; + * + * @return This builder for chaining. + */ + public Builder clearArchitecture() { + bitField0_ = (bitField0_ & ~0x00002000); + architecture_ = 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.vmmigration.v1.AzureVmDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.AzureVmDetails) + private static final com.google.cloud.vmmigration.v1.AzureVmDetails DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.AzureVmDetails(); + } + + public static com.google.cloud.vmmigration.v1.AzureVmDetails getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AzureVmDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.AzureVmDetails getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AzureVmDetailsOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AzureVmDetailsOrBuilder.java new file mode 100644 index 000000000000..88630a0acabb --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AzureVmDetailsOrBuilder.java @@ -0,0 +1,427 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface AzureVmDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.AzureVmDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * The VM full path in Azure.
        +   * 
        + * + * string vm_id = 1; + * + * @return The vmId. + */ + java.lang.String getVmId(); + + /** + * + * + *
        +   * The VM full path in Azure.
        +   * 
        + * + * string vm_id = 1; + * + * @return The bytes for vmId. + */ + com.google.protobuf.ByteString getVmIdBytes(); + + /** + * + * + *
        +   * The power state of the VM at the moment list was taken.
        +   * 
        + * + * .google.cloud.vmmigration.v1.AzureVmDetails.PowerState power_state = 2; + * + * @return The enum numeric value on the wire for powerState. + */ + int getPowerStateValue(); + + /** + * + * + *
        +   * The power state of the VM at the moment list was taken.
        +   * 
        + * + * .google.cloud.vmmigration.v1.AzureVmDetails.PowerState power_state = 2; + * + * @return The powerState. + */ + com.google.cloud.vmmigration.v1.AzureVmDetails.PowerState getPowerState(); + + /** + * + * + *
        +   * VM size as configured in Azure. Determines the VM's hardware spec.
        +   * 
        + * + * string vm_size = 3; + * + * @return The vmSize. + */ + java.lang.String getVmSize(); + + /** + * + * + *
        +   * VM size as configured in Azure. Determines the VM's hardware spec.
        +   * 
        + * + * string vm_size = 3; + * + * @return The bytes for vmSize. + */ + com.google.protobuf.ByteString getVmSizeBytes(); + + /** + * + * + *
        +   * The number of cpus the VM has.
        +   * 
        + * + * int32 cpu_count = 4; + * + * @return The cpuCount. + */ + int getCpuCount(); + + /** + * + * + *
        +   * The memory size of the VM in MB.
        +   * 
        + * + * int32 memory_mb = 5; + * + * @return The memoryMb. + */ + int getMemoryMb(); + + /** + * + * + *
        +   * The number of disks the VM has, including OS disk.
        +   * 
        + * + * int32 disk_count = 6; + * + * @return The diskCount. + */ + int getDiskCount(); + + /** + * + * + *
        +   * The total size of the storage allocated to the VM in MB.
        +   * 
        + * + * int64 committed_storage_mb = 7; + * + * @return The committedStorageMb. + */ + long getCommittedStorageMb(); + + /** + * + * + *
        +   * Description of the OS disk.
        +   * 
        + * + * .google.cloud.vmmigration.v1.AzureVmDetails.OSDisk os_disk = 8; + * + * @return Whether the osDisk field is set. + */ + boolean hasOsDisk(); + + /** + * + * + *
        +   * Description of the OS disk.
        +   * 
        + * + * .google.cloud.vmmigration.v1.AzureVmDetails.OSDisk os_disk = 8; + * + * @return The osDisk. + */ + com.google.cloud.vmmigration.v1.AzureVmDetails.OSDisk getOsDisk(); + + /** + * + * + *
        +   * Description of the OS disk.
        +   * 
        + * + * .google.cloud.vmmigration.v1.AzureVmDetails.OSDisk os_disk = 8; + */ + com.google.cloud.vmmigration.v1.AzureVmDetails.OSDiskOrBuilder getOsDiskOrBuilder(); + + /** + * + * + *
        +   * Description of the data disks.
        +   * 
        + * + * repeated .google.cloud.vmmigration.v1.AzureVmDetails.Disk disks = 9; + */ + java.util.List getDisksList(); + + /** + * + * + *
        +   * Description of the data disks.
        +   * 
        + * + * repeated .google.cloud.vmmigration.v1.AzureVmDetails.Disk disks = 9; + */ + com.google.cloud.vmmigration.v1.AzureVmDetails.Disk getDisks(int index); + + /** + * + * + *
        +   * Description of the data disks.
        +   * 
        + * + * repeated .google.cloud.vmmigration.v1.AzureVmDetails.Disk disks = 9; + */ + int getDisksCount(); + + /** + * + * + *
        +   * Description of the data disks.
        +   * 
        + * + * repeated .google.cloud.vmmigration.v1.AzureVmDetails.Disk disks = 9; + */ + java.util.List + getDisksOrBuilderList(); + + /** + * + * + *
        +   * Description of the data disks.
        +   * 
        + * + * repeated .google.cloud.vmmigration.v1.AzureVmDetails.Disk disks = 9; + */ + com.google.cloud.vmmigration.v1.AzureVmDetails.DiskOrBuilder getDisksOrBuilder(int index); + + /** + * + * + *
        +   * Description of the OS.
        +   * 
        + * + * .google.cloud.vmmigration.v1.AzureVmDetails.OSDescription os_description = 10; + * + * @return Whether the osDescription field is set. + */ + boolean hasOsDescription(); + + /** + * + * + *
        +   * Description of the OS.
        +   * 
        + * + * .google.cloud.vmmigration.v1.AzureVmDetails.OSDescription os_description = 10; + * + * @return The osDescription. + */ + com.google.cloud.vmmigration.v1.AzureVmDetails.OSDescription getOsDescription(); + + /** + * + * + *
        +   * Description of the OS.
        +   * 
        + * + * .google.cloud.vmmigration.v1.AzureVmDetails.OSDescription os_description = 10; + */ + com.google.cloud.vmmigration.v1.AzureVmDetails.OSDescriptionOrBuilder getOsDescriptionOrBuilder(); + + /** + * + * + *
        +   * The VM Boot Option.
        +   * 
        + * + * .google.cloud.vmmigration.v1.AzureVmDetails.BootOption boot_option = 11; + * + * @return The enum numeric value on the wire for bootOption. + */ + int getBootOptionValue(); + + /** + * + * + *
        +   * The VM Boot Option.
        +   * 
        + * + * .google.cloud.vmmigration.v1.AzureVmDetails.BootOption boot_option = 11; + * + * @return The bootOption. + */ + com.google.cloud.vmmigration.v1.AzureVmDetails.BootOption getBootOption(); + + /** + * + * + *
        +   * The tags of the VM.
        +   * 
        + * + * map<string, string> tags = 12; + */ + int getTagsCount(); + + /** + * + * + *
        +   * The tags of the VM.
        +   * 
        + * + * map<string, string> tags = 12; + */ + boolean containsTags(java.lang.String key); + + /** Use {@link #getTagsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getTags(); + + /** + * + * + *
        +   * The tags of the VM.
        +   * 
        + * + * map<string, string> tags = 12; + */ + java.util.Map getTagsMap(); + + /** + * + * + *
        +   * The tags of the VM.
        +   * 
        + * + * map<string, string> tags = 12; + */ + /* nullable */ + java.lang.String getTagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
        +   * The tags of the VM.
        +   * 
        + * + * map<string, string> tags = 12; + */ + java.lang.String getTagsOrThrow(java.lang.String key); + + /** + * + * + *
        +   * The VM's ComputerName.
        +   * 
        + * + * string computer_name = 13; + * + * @return The computerName. + */ + java.lang.String getComputerName(); + + /** + * + * + *
        +   * The VM's ComputerName.
        +   * 
        + * + * string computer_name = 13; + * + * @return The bytes for computerName. + */ + com.google.protobuf.ByteString getComputerNameBytes(); + + /** + * + * + *
        +   * The CPU architecture.
        +   * 
        + * + * .google.cloud.vmmigration.v1.AzureVmDetails.VmArchitecture architecture = 14; + * + * @return The enum numeric value on the wire for architecture. + */ + int getArchitectureValue(); + + /** + * + * + *
        +   * The CPU architecture.
        +   * 
        + * + * .google.cloud.vmmigration.v1.AzureVmDetails.VmArchitecture architecture = 14; + * + * @return The architecture. + */ + com.google.cloud.vmmigration.v1.AzureVmDetails.VmArchitecture getArchitecture(); +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AzureVmsDetails.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AzureVmsDetails.java new file mode 100644 index 000000000000..ded605b2c05c --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AzureVmsDetails.java @@ -0,0 +1,962 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * AzureVmsDetails describes VMs in Azure.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.AzureVmsDetails} + */ +public final class AzureVmsDetails extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.AzureVmsDetails) + AzureVmsDetailsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use AzureVmsDetails.newBuilder() to construct. + private AzureVmsDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AzureVmsDetails() { + details_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AzureVmsDetails(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AzureVmsDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AzureVmsDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.AzureVmsDetails.class, + com.google.cloud.vmmigration.v1.AzureVmsDetails.Builder.class); + } + + public static final int DETAILS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List details_; + + /** + * + * + *
        +   * The details of the Azure VMs.
        +   * 
        + * + * repeated .google.cloud.vmmigration.v1.AzureVmDetails details = 1; + */ + @java.lang.Override + public java.util.List getDetailsList() { + return details_; + } + + /** + * + * + *
        +   * The details of the Azure VMs.
        +   * 
        + * + * repeated .google.cloud.vmmigration.v1.AzureVmDetails details = 1; + */ + @java.lang.Override + public java.util.List + getDetailsOrBuilderList() { + return details_; + } + + /** + * + * + *
        +   * The details of the Azure VMs.
        +   * 
        + * + * repeated .google.cloud.vmmigration.v1.AzureVmDetails details = 1; + */ + @java.lang.Override + public int getDetailsCount() { + return details_.size(); + } + + /** + * + * + *
        +   * The details of the Azure VMs.
        +   * 
        + * + * repeated .google.cloud.vmmigration.v1.AzureVmDetails details = 1; + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureVmDetails getDetails(int index) { + return details_.get(index); + } + + /** + * + * + *
        +   * The details of the Azure VMs.
        +   * 
        + * + * repeated .google.cloud.vmmigration.v1.AzureVmDetails details = 1; + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureVmDetailsOrBuilder getDetailsOrBuilder(int index) { + return details_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < details_.size(); i++) { + output.writeMessage(1, details_.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 < details_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, details_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmmigration.v1.AzureVmsDetails)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.AzureVmsDetails other = + (com.google.cloud.vmmigration.v1.AzureVmsDetails) obj; + + if (!getDetailsList().equals(other.getDetailsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDetailsCount() > 0) { + hash = (37 * hash) + DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getDetailsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.AzureVmsDetails parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.AzureVmsDetails 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.vmmigration.v1.AzureVmsDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.AzureVmsDetails parseFrom( + 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.vmmigration.v1.AzureVmsDetails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.AzureVmsDetails parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.AzureVmsDetails parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.AzureVmsDetails 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.vmmigration.v1.AzureVmsDetails parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.AzureVmsDetails 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.vmmigration.v1.AzureVmsDetails parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.AzureVmsDetails 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.vmmigration.v1.AzureVmsDetails prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
        +   * AzureVmsDetails describes VMs in Azure.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.AzureVmsDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.AzureVmsDetails) + com.google.cloud.vmmigration.v1.AzureVmsDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AzureVmsDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AzureVmsDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.AzureVmsDetails.class, + com.google.cloud.vmmigration.v1.AzureVmsDetails.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.AzureVmsDetails.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (detailsBuilder_ == null) { + details_ = java.util.Collections.emptyList(); + } else { + details_ = null; + detailsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_AzureVmsDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureVmsDetails getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.AzureVmsDetails.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureVmsDetails build() { + com.google.cloud.vmmigration.v1.AzureVmsDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureVmsDetails buildPartial() { + com.google.cloud.vmmigration.v1.AzureVmsDetails result = + new com.google.cloud.vmmigration.v1.AzureVmsDetails(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.vmmigration.v1.AzureVmsDetails result) { + if (detailsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + details_ = java.util.Collections.unmodifiableList(details_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.details_ = details_; + } else { + result.details_ = detailsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.vmmigration.v1.AzureVmsDetails result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmmigration.v1.AzureVmsDetails) { + return mergeFrom((com.google.cloud.vmmigration.v1.AzureVmsDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.AzureVmsDetails other) { + if (other == com.google.cloud.vmmigration.v1.AzureVmsDetails.getDefaultInstance()) + return this; + if (detailsBuilder_ == null) { + if (!other.details_.isEmpty()) { + if (details_.isEmpty()) { + details_ = other.details_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDetailsIsMutable(); + details_.addAll(other.details_); + } + onChanged(); + } + } else { + if (!other.details_.isEmpty()) { + if (detailsBuilder_.isEmpty()) { + detailsBuilder_.dispose(); + detailsBuilder_ = null; + details_ = other.details_; + bitField0_ = (bitField0_ & ~0x00000001); + detailsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDetailsFieldBuilder() + : null; + } else { + detailsBuilder_.addAllMessages(other.details_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.vmmigration.v1.AzureVmDetails m = + input.readMessage( + com.google.cloud.vmmigration.v1.AzureVmDetails.parser(), extensionRegistry); + if (detailsBuilder_ == null) { + ensureDetailsIsMutable(); + details_.add(m); + } else { + detailsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List details_ = + java.util.Collections.emptyList(); + + private void ensureDetailsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + details_ = + new java.util.ArrayList(details_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.AzureVmDetails, + com.google.cloud.vmmigration.v1.AzureVmDetails.Builder, + com.google.cloud.vmmigration.v1.AzureVmDetailsOrBuilder> + detailsBuilder_; + + /** + * + * + *
        +     * The details of the Azure VMs.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.AzureVmDetails details = 1; + */ + public java.util.List getDetailsList() { + if (detailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(details_); + } else { + return detailsBuilder_.getMessageList(); + } + } + + /** + * + * + *
        +     * The details of the Azure VMs.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.AzureVmDetails details = 1; + */ + public int getDetailsCount() { + if (detailsBuilder_ == null) { + return details_.size(); + } else { + return detailsBuilder_.getCount(); + } + } + + /** + * + * + *
        +     * The details of the Azure VMs.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.AzureVmDetails details = 1; + */ + public com.google.cloud.vmmigration.v1.AzureVmDetails getDetails(int index) { + if (detailsBuilder_ == null) { + return details_.get(index); + } else { + return detailsBuilder_.getMessage(index); + } + } + + /** + * + * + *
        +     * The details of the Azure VMs.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.AzureVmDetails details = 1; + */ + public Builder setDetails(int index, com.google.cloud.vmmigration.v1.AzureVmDetails value) { + if (detailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDetailsIsMutable(); + details_.set(index, value); + onChanged(); + } else { + detailsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * The details of the Azure VMs.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.AzureVmDetails details = 1; + */ + public Builder setDetails( + int index, com.google.cloud.vmmigration.v1.AzureVmDetails.Builder builderForValue) { + if (detailsBuilder_ == null) { + ensureDetailsIsMutable(); + details_.set(index, builderForValue.build()); + onChanged(); + } else { + detailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * The details of the Azure VMs.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.AzureVmDetails details = 1; + */ + public Builder addDetails(com.google.cloud.vmmigration.v1.AzureVmDetails value) { + if (detailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDetailsIsMutable(); + details_.add(value); + onChanged(); + } else { + detailsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
        +     * The details of the Azure VMs.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.AzureVmDetails details = 1; + */ + public Builder addDetails(int index, com.google.cloud.vmmigration.v1.AzureVmDetails value) { + if (detailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDetailsIsMutable(); + details_.add(index, value); + onChanged(); + } else { + detailsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * The details of the Azure VMs.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.AzureVmDetails details = 1; + */ + public Builder addDetails( + com.google.cloud.vmmigration.v1.AzureVmDetails.Builder builderForValue) { + if (detailsBuilder_ == null) { + ensureDetailsIsMutable(); + details_.add(builderForValue.build()); + onChanged(); + } else { + detailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * The details of the Azure VMs.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.AzureVmDetails details = 1; + */ + public Builder addDetails( + int index, com.google.cloud.vmmigration.v1.AzureVmDetails.Builder builderForValue) { + if (detailsBuilder_ == null) { + ensureDetailsIsMutable(); + details_.add(index, builderForValue.build()); + onChanged(); + } else { + detailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * The details of the Azure VMs.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.AzureVmDetails details = 1; + */ + public Builder addAllDetails( + java.lang.Iterable values) { + if (detailsBuilder_ == null) { + ensureDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, details_); + onChanged(); + } else { + detailsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
        +     * The details of the Azure VMs.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.AzureVmDetails details = 1; + */ + public Builder clearDetails() { + if (detailsBuilder_ == null) { + details_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + detailsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * The details of the Azure VMs.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.AzureVmDetails details = 1; + */ + public Builder removeDetails(int index) { + if (detailsBuilder_ == null) { + ensureDetailsIsMutable(); + details_.remove(index); + onChanged(); + } else { + detailsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
        +     * The details of the Azure VMs.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.AzureVmDetails details = 1; + */ + public com.google.cloud.vmmigration.v1.AzureVmDetails.Builder getDetailsBuilder(int index) { + return getDetailsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
        +     * The details of the Azure VMs.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.AzureVmDetails details = 1; + */ + public com.google.cloud.vmmigration.v1.AzureVmDetailsOrBuilder getDetailsOrBuilder(int index) { + if (detailsBuilder_ == null) { + return details_.get(index); + } else { + return detailsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
        +     * The details of the Azure VMs.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.AzureVmDetails details = 1; + */ + public java.util.List + getDetailsOrBuilderList() { + if (detailsBuilder_ != null) { + return detailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(details_); + } + } + + /** + * + * + *
        +     * The details of the Azure VMs.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.AzureVmDetails details = 1; + */ + public com.google.cloud.vmmigration.v1.AzureVmDetails.Builder addDetailsBuilder() { + return getDetailsFieldBuilder() + .addBuilder(com.google.cloud.vmmigration.v1.AzureVmDetails.getDefaultInstance()); + } + + /** + * + * + *
        +     * The details of the Azure VMs.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.AzureVmDetails details = 1; + */ + public com.google.cloud.vmmigration.v1.AzureVmDetails.Builder addDetailsBuilder(int index) { + return getDetailsFieldBuilder() + .addBuilder(index, com.google.cloud.vmmigration.v1.AzureVmDetails.getDefaultInstance()); + } + + /** + * + * + *
        +     * The details of the Azure VMs.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.AzureVmDetails details = 1; + */ + public java.util.List + getDetailsBuilderList() { + return getDetailsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.AzureVmDetails, + com.google.cloud.vmmigration.v1.AzureVmDetails.Builder, + com.google.cloud.vmmigration.v1.AzureVmDetailsOrBuilder> + getDetailsFieldBuilder() { + if (detailsBuilder_ == null) { + detailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.AzureVmDetails, + com.google.cloud.vmmigration.v1.AzureVmDetails.Builder, + com.google.cloud.vmmigration.v1.AzureVmDetailsOrBuilder>( + details_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + details_ = null; + } + return detailsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmmigration.v1.AzureVmsDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.AzureVmsDetails) + private static final com.google.cloud.vmmigration.v1.AzureVmsDetails DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.AzureVmsDetails(); + } + + public static com.google.cloud.vmmigration.v1.AzureVmsDetails getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AzureVmsDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.AzureVmsDetails getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AzureVmsDetailsOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AzureVmsDetailsOrBuilder.java new file mode 100644 index 000000000000..de58ac1f59e3 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/AzureVmsDetailsOrBuilder.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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface AzureVmsDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.AzureVmsDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * The details of the Azure VMs.
        +   * 
        + * + * repeated .google.cloud.vmmigration.v1.AzureVmDetails details = 1; + */ + java.util.List getDetailsList(); + + /** + * + * + *
        +   * The details of the Azure VMs.
        +   * 
        + * + * repeated .google.cloud.vmmigration.v1.AzureVmDetails details = 1; + */ + com.google.cloud.vmmigration.v1.AzureVmDetails getDetails(int index); + + /** + * + * + *
        +   * The details of the Azure VMs.
        +   * 
        + * + * repeated .google.cloud.vmmigration.v1.AzureVmDetails details = 1; + */ + int getDetailsCount(); + + /** + * + * + *
        +   * The details of the Azure VMs.
        +   * 
        + * + * repeated .google.cloud.vmmigration.v1.AzureVmDetails details = 1; + */ + java.util.List + getDetailsOrBuilderList(); + + /** + * + * + *
        +   * The details of the Azure VMs.
        +   * 
        + * + * repeated .google.cloud.vmmigration.v1.AzureVmDetails details = 1; + */ + com.google.cloud.vmmigration.v1.AzureVmDetailsOrBuilder getDetailsOrBuilder(int index); +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/BootConversion.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/BootConversion.java new file mode 100644 index 000000000000..3cf3efd274b3 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/BootConversion.java @@ -0,0 +1,179 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * Possible boot options conversions.
        + * 
        + * + * Protobuf enum {@code google.cloud.vmmigration.v1.BootConversion} + */ +public enum BootConversion implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
        +   * Unspecified conversion type.
        +   * 
        + * + * BOOT_CONVERSION_UNSPECIFIED = 0; + */ + BOOT_CONVERSION_UNSPECIFIED(0), + /** + * + * + *
        +   * No conversion.
        +   * 
        + * + * NONE = 1; + */ + NONE(1), + /** + * + * + *
        +   * Convert from BIOS to EFI.
        +   * 
        + * + * BIOS_TO_EFI = 2; + */ + BIOS_TO_EFI(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
        +   * Unspecified conversion type.
        +   * 
        + * + * BOOT_CONVERSION_UNSPECIFIED = 0; + */ + public static final int BOOT_CONVERSION_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
        +   * No conversion.
        +   * 
        + * + * NONE = 1; + */ + public static final int NONE_VALUE = 1; + + /** + * + * + *
        +   * Convert from BIOS to EFI.
        +   * 
        + * + * BIOS_TO_EFI = 2; + */ + public static final int BIOS_TO_EFI_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 BootConversion 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 BootConversion forNumber(int value) { + switch (value) { + case 0: + return BOOT_CONVERSION_UNSPECIFIED; + case 1: + return NONE; + case 2: + return BIOS_TO_EFI; + 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 BootConversion findValueByNumber(int number) { + return BootConversion.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.vmmigration.v1.VmMigrationProto.getDescriptor().getEnumTypes().get(4); + } + + private static final BootConversion[] VALUES = values(); + + public static BootConversion 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 BootConversion(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.vmmigration.v1.BootConversion) +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/BootDiskDefaults.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/BootDiskDefaults.java new file mode 100644 index 000000000000..e28505ec08fa --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/BootDiskDefaults.java @@ -0,0 +1,2437 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * BootDiskDefaults hold information about the boot disk of a VM.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.BootDiskDefaults} + */ +public final class BootDiskDefaults extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.BootDiskDefaults) + BootDiskDefaultsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BootDiskDefaults.newBuilder() to construct. + private BootDiskDefaults(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BootDiskDefaults() { + diskName_ = ""; + diskType_ = 0; + deviceName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BootDiskDefaults(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_BootDiskDefaults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_BootDiskDefaults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.BootDiskDefaults.class, + com.google.cloud.vmmigration.v1.BootDiskDefaults.Builder.class); + } + + public interface DiskImageDefaultsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +     * Required. The Image resource used when creating the disk.
        +     * 
        + * + * + * string source_image = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The sourceImage. + */ + java.lang.String getSourceImage(); + + /** + * + * + *
        +     * Required. The Image resource used when creating the disk.
        +     * 
        + * + * + * string source_image = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for sourceImage. + */ + com.google.protobuf.ByteString getSourceImageBytes(); + } + + /** + * + * + *
        +   * Contains details about the image source used to create the disk.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults} + */ + public static final class DiskImageDefaults extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults) + DiskImageDefaultsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DiskImageDefaults.newBuilder() to construct. + private DiskImageDefaults(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DiskImageDefaults() { + sourceImage_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DiskImageDefaults(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_BootDiskDefaults_DiskImageDefaults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_BootDiskDefaults_DiskImageDefaults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults.class, + com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults.Builder.class); + } + + public static final int SOURCE_IMAGE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object sourceImage_ = ""; + + /** + * + * + *
        +     * Required. The Image resource used when creating the disk.
        +     * 
        + * + * + * string source_image = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The sourceImage. + */ + @java.lang.Override + public java.lang.String getSourceImage() { + java.lang.Object ref = sourceImage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceImage_ = s; + return s; + } + } + + /** + * + * + *
        +     * Required. The Image resource used when creating the disk.
        +     * 
        + * + * + * string source_image = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for sourceImage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceImageBytes() { + java.lang.Object ref = sourceImage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceImage_ = 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(sourceImage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourceImage_); + } + 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(sourceImage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sourceImage_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.vmmigration.v1.BootDiskDefaults.DiskImageDefaults)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults other = + (com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults) obj; + + if (!getSourceImage().equals(other.getSourceImage())) 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) + SOURCE_IMAGE_FIELD_NUMBER; + hash = (53 * hash) + getSourceImage().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults 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.vmmigration.v1.BootDiskDefaults.DiskImageDefaults parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults parseFrom( + 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.vmmigration.v1.BootDiskDefaults.DiskImageDefaults parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults 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.vmmigration.v1.BootDiskDefaults.DiskImageDefaults + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults + 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.vmmigration.v1.BootDiskDefaults.DiskImageDefaults parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults 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.vmmigration.v1.BootDiskDefaults.DiskImageDefaults prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
        +     * Contains details about the image source used to create the disk.
        +     * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults) + com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaultsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_BootDiskDefaults_DiskImageDefaults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_BootDiskDefaults_DiskImageDefaults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults.class, + com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults.Builder.class); + } + + // Construct using + // com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sourceImage_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_BootDiskDefaults_DiskImageDefaults_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults + getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults build() { + com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults buildPartial() { + com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults result = + new com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sourceImage_ = sourceImage_; + } + } + + @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.vmmigration.v1.BootDiskDefaults.DiskImageDefaults) { + return mergeFrom( + (com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults other) { + if (other + == com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults + .getDefaultInstance()) return this; + if (!other.getSourceImage().isEmpty()) { + sourceImage_ = other.sourceImage_; + 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: + { + sourceImage_ = 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 sourceImage_ = ""; + + /** + * + * + *
        +       * Required. The Image resource used when creating the disk.
        +       * 
        + * + * + * string source_image = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The sourceImage. + */ + public java.lang.String getSourceImage() { + java.lang.Object ref = sourceImage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceImage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +       * Required. The Image resource used when creating the disk.
        +       * 
        + * + * + * string source_image = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for sourceImage. + */ + public com.google.protobuf.ByteString getSourceImageBytes() { + java.lang.Object ref = sourceImage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceImage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +       * Required. The Image resource used when creating the disk.
        +       * 
        + * + * + * string source_image = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The sourceImage to set. + * @return This builder for chaining. + */ + public Builder setSourceImage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceImage_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +       * Required. The Image resource used when creating the disk.
        +       * 
        + * + * + * string source_image = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearSourceImage() { + sourceImage_ = getDefaultInstance().getSourceImage(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
        +       * Required. The Image resource used when creating the disk.
        +       * 
        + * + * + * string source_image = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for sourceImage to set. + * @return This builder for chaining. + */ + public Builder setSourceImageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceImage_ = 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.vmmigration.v1.BootDiskDefaults.DiskImageDefaults) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults) + private static final com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults(); + } + + public static com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DiskImageDefaults parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.BootDiskDefaults.DiskImageDefaults + 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 { + IMAGE(3), + 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 3: + return IMAGE; + 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 IMAGE_FIELD_NUMBER = 3; + + /** + * + * + *
        +   * The image to use when creating the disk.
        +   * 
        + * + * .google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults image = 3; + * + * @return Whether the image field is set. + */ + @java.lang.Override + public boolean hasImage() { + return sourceCase_ == 3; + } + + /** + * + * + *
        +   * The image to use when creating the disk.
        +   * 
        + * + * .google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults image = 3; + * + * @return The image. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults getImage() { + if (sourceCase_ == 3) { + return (com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults) source_; + } + return com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults.getDefaultInstance(); + } + + /** + * + * + *
        +   * The image to use when creating the disk.
        +   * 
        + * + * .google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults image = 3; + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaultsOrBuilder + getImageOrBuilder() { + if (sourceCase_ == 3) { + return (com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults) source_; + } + return com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults.getDefaultInstance(); + } + + public static final int DISK_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object diskName_ = ""; + + /** + * + * + *
        +   * Optional. The name of the disk.
        +   * 
        + * + * string disk_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The diskName. + */ + @java.lang.Override + public java.lang.String getDiskName() { + java.lang.Object ref = diskName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + diskName_ = s; + return s; + } + } + + /** + * + * + *
        +   * Optional. The name of the disk.
        +   * 
        + * + * string disk_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for diskName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDiskNameBytes() { + java.lang.Object ref = diskName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + diskName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISK_TYPE_FIELD_NUMBER = 2; + private int diskType_ = 0; + + /** + * + * + *
        +   * Optional. The type of disk provisioning to use for the VM.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDiskType disk_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for diskType. + */ + @java.lang.Override + public int getDiskTypeValue() { + return diskType_; + } + + /** + * + * + *
        +   * Optional. The type of disk provisioning to use for the VM.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDiskType disk_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The diskType. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ComputeEngineDiskType getDiskType() { + com.google.cloud.vmmigration.v1.ComputeEngineDiskType result = + com.google.cloud.vmmigration.v1.ComputeEngineDiskType.forNumber(diskType_); + return result == null + ? com.google.cloud.vmmigration.v1.ComputeEngineDiskType.UNRECOGNIZED + : result; + } + + public static final int DEVICE_NAME_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object deviceName_ = ""; + + /** + * + * + *
        +   * Optional. Specifies a unique device name of your choice that is reflected
        +   * into the /dev/disk/by-id/google-* tree of a Linux operating system running
        +   * within the instance. If not specified, the server chooses a default device
        +   * name to apply to this disk, in the form persistent-disk-x, where x is a
        +   * number assigned by Google Compute Engine. This field is only applicable for
        +   * persistent disks.
        +   * 
        + * + * string device_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The deviceName. + */ + @java.lang.Override + public java.lang.String getDeviceName() { + java.lang.Object ref = deviceName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deviceName_ = s; + return s; + } + } + + /** + * + * + *
        +   * Optional. Specifies a unique device name of your choice that is reflected
        +   * into the /dev/disk/by-id/google-* tree of a Linux operating system running
        +   * within the instance. If not specified, the server chooses a default device
        +   * name to apply to this disk, in the form persistent-disk-x, where x is a
        +   * number assigned by Google Compute Engine. This field is only applicable for
        +   * persistent disks.
        +   * 
        + * + * string device_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for deviceName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDeviceNameBytes() { + java.lang.Object ref = deviceName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deviceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENCRYPTION_FIELD_NUMBER = 5; + private com.google.cloud.vmmigration.v1.Encryption encryption_; + + /** + * + * + *
        +   * Optional. The encryption to apply to the boot disk.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the encryption field is set. + */ + @java.lang.Override + public boolean hasEncryption() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
        +   * Optional. The encryption to apply to the boot disk.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The encryption. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.Encryption getEncryption() { + return encryption_ == null + ? com.google.cloud.vmmigration.v1.Encryption.getDefaultInstance() + : encryption_; + } + + /** + * + * + *
        +   * Optional. The encryption to apply to the boot disk.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.EncryptionOrBuilder getEncryptionOrBuilder() { + return encryption_ == null + ? com.google.cloud.vmmigration.v1.Encryption.getDefaultInstance() + : encryption_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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(diskName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, diskName_); + } + if (diskType_ + != com.google.cloud.vmmigration.v1.ComputeEngineDiskType + .COMPUTE_ENGINE_DISK_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, diskType_); + } + if (sourceCase_ == 3) { + output.writeMessage( + 3, (com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults) source_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deviceName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, deviceName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getEncryption()); + } + 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(diskName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, diskName_); + } + if (diskType_ + != com.google.cloud.vmmigration.v1.ComputeEngineDiskType + .COMPUTE_ENGINE_DISK_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, diskType_); + } + if (sourceCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults) source_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deviceName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, deviceName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEncryption()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.vmmigration.v1.BootDiskDefaults)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.BootDiskDefaults other = + (com.google.cloud.vmmigration.v1.BootDiskDefaults) obj; + + if (!getDiskName().equals(other.getDiskName())) return false; + if (diskType_ != other.diskType_) return false; + if (!getDeviceName().equals(other.getDeviceName())) return false; + if (hasEncryption() != other.hasEncryption()) return false; + if (hasEncryption()) { + if (!getEncryption().equals(other.getEncryption())) return false; + } + if (!getSourceCase().equals(other.getSourceCase())) return false; + switch (sourceCase_) { + case 3: + if (!getImage().equals(other.getImage())) 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) + DISK_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDiskName().hashCode(); + hash = (37 * hash) + DISK_TYPE_FIELD_NUMBER; + hash = (53 * hash) + diskType_; + hash = (37 * hash) + DEVICE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDeviceName().hashCode(); + if (hasEncryption()) { + hash = (37 * hash) + ENCRYPTION_FIELD_NUMBER; + hash = (53 * hash) + getEncryption().hashCode(); + } + switch (sourceCase_) { + case 3: + hash = (37 * hash) + IMAGE_FIELD_NUMBER; + hash = (53 * hash) + getImage().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.BootDiskDefaults parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.BootDiskDefaults 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.vmmigration.v1.BootDiskDefaults parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.BootDiskDefaults parseFrom( + 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.vmmigration.v1.BootDiskDefaults parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.BootDiskDefaults parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.BootDiskDefaults parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.BootDiskDefaults 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.vmmigration.v1.BootDiskDefaults parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.BootDiskDefaults 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.vmmigration.v1.BootDiskDefaults parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.BootDiskDefaults 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.vmmigration.v1.BootDiskDefaults prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
        +   * BootDiskDefaults hold information about the boot disk of a VM.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.BootDiskDefaults} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.BootDiskDefaults) + com.google.cloud.vmmigration.v1.BootDiskDefaultsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_BootDiskDefaults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_BootDiskDefaults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.BootDiskDefaults.class, + com.google.cloud.vmmigration.v1.BootDiskDefaults.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.BootDiskDefaults.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getEncryptionFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (imageBuilder_ != null) { + imageBuilder_.clear(); + } + diskName_ = ""; + diskType_ = 0; + deviceName_ = ""; + encryption_ = null; + if (encryptionBuilder_ != null) { + encryptionBuilder_.dispose(); + encryptionBuilder_ = null; + } + sourceCase_ = 0; + source_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_BootDiskDefaults_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.BootDiskDefaults getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.BootDiskDefaults.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.BootDiskDefaults build() { + com.google.cloud.vmmigration.v1.BootDiskDefaults result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.BootDiskDefaults buildPartial() { + com.google.cloud.vmmigration.v1.BootDiskDefaults result = + new com.google.cloud.vmmigration.v1.BootDiskDefaults(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vmmigration.v1.BootDiskDefaults result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.diskName_ = diskName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.diskType_ = diskType_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.deviceName_ = deviceName_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.encryption_ = encryptionBuilder_ == null ? encryption_ : encryptionBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.vmmigration.v1.BootDiskDefaults result) { + result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + if (sourceCase_ == 3 && imageBuilder_ != null) { + result.source_ = imageBuilder_.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.vmmigration.v1.BootDiskDefaults) { + return mergeFrom((com.google.cloud.vmmigration.v1.BootDiskDefaults) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.BootDiskDefaults other) { + if (other == com.google.cloud.vmmigration.v1.BootDiskDefaults.getDefaultInstance()) + return this; + if (!other.getDiskName().isEmpty()) { + diskName_ = other.diskName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.diskType_ != 0) { + setDiskTypeValue(other.getDiskTypeValue()); + } + if (!other.getDeviceName().isEmpty()) { + deviceName_ = other.deviceName_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasEncryption()) { + mergeEncryption(other.getEncryption()); + } + switch (other.getSourceCase()) { + case IMAGE: + { + mergeImage(other.getImage()); + 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: + { + diskName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 16: + { + diskType_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 16 + case 26: + { + input.readMessage(getImageFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 3; + break; + } // case 26 + case 34: + { + deviceName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage(getEncryptionFieldBuilder().getBuilder(), extensionRegistry); + 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 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.vmmigration.v1.BootDiskDefaults.DiskImageDefaults, + com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults.Builder, + com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaultsOrBuilder> + imageBuilder_; + + /** + * + * + *
        +     * The image to use when creating the disk.
        +     * 
        + * + * .google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults image = 3; + * + * @return Whether the image field is set. + */ + @java.lang.Override + public boolean hasImage() { + return sourceCase_ == 3; + } + + /** + * + * + *
        +     * The image to use when creating the disk.
        +     * 
        + * + * .google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults image = 3; + * + * @return The image. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults getImage() { + if (imageBuilder_ == null) { + if (sourceCase_ == 3) { + return (com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults) source_; + } + return com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults + .getDefaultInstance(); + } else { + if (sourceCase_ == 3) { + return imageBuilder_.getMessage(); + } + return com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults + .getDefaultInstance(); + } + } + + /** + * + * + *
        +     * The image to use when creating the disk.
        +     * 
        + * + * .google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults image = 3; + */ + public Builder setImage( + com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults value) { + if (imageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + imageBuilder_.setMessage(value); + } + sourceCase_ = 3; + return this; + } + + /** + * + * + *
        +     * The image to use when creating the disk.
        +     * 
        + * + * .google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults image = 3; + */ + public Builder setImage( + com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults.Builder + builderForValue) { + if (imageBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + imageBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 3; + return this; + } + + /** + * + * + *
        +     * The image to use when creating the disk.
        +     * 
        + * + * .google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults image = 3; + */ + public Builder mergeImage( + com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults value) { + if (imageBuilder_ == null) { + if (sourceCase_ == 3 + && source_ + != com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults + .getDefaultInstance()) { + source_ = + com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults.newBuilder( + (com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 3) { + imageBuilder_.mergeFrom(value); + } else { + imageBuilder_.setMessage(value); + } + } + sourceCase_ = 3; + return this; + } + + /** + * + * + *
        +     * The image to use when creating the disk.
        +     * 
        + * + * .google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults image = 3; + */ + public Builder clearImage() { + if (imageBuilder_ == null) { + if (sourceCase_ == 3) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 3) { + sourceCase_ = 0; + source_ = null; + } + imageBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * The image to use when creating the disk.
        +     * 
        + * + * .google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults image = 3; + */ + public com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults.Builder + getImageBuilder() { + return getImageFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * The image to use when creating the disk.
        +     * 
        + * + * .google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults image = 3; + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaultsOrBuilder + getImageOrBuilder() { + if ((sourceCase_ == 3) && (imageBuilder_ != null)) { + return imageBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 3) { + return (com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults) source_; + } + return com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults + .getDefaultInstance(); + } + } + + /** + * + * + *
        +     * The image to use when creating the disk.
        +     * 
        + * + * .google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults image = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults, + com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults.Builder, + com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaultsOrBuilder> + getImageFieldBuilder() { + if (imageBuilder_ == null) { + if (!(sourceCase_ == 3)) { + source_ = + com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults + .getDefaultInstance(); + } + imageBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults, + com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults.Builder, + com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaultsOrBuilder>( + (com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 3; + onChanged(); + return imageBuilder_; + } + + private java.lang.Object diskName_ = ""; + + /** + * + * + *
        +     * Optional. The name of the disk.
        +     * 
        + * + * string disk_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The diskName. + */ + public java.lang.String getDiskName() { + java.lang.Object ref = diskName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + diskName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Optional. The name of the disk.
        +     * 
        + * + * string disk_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for diskName. + */ + public com.google.protobuf.ByteString getDiskNameBytes() { + java.lang.Object ref = diskName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + diskName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Optional. The name of the disk.
        +     * 
        + * + * string disk_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The diskName to set. + * @return This builder for chaining. + */ + public Builder setDiskName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + diskName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The name of the disk.
        +     * 
        + * + * string disk_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDiskName() { + diskName_ = getDefaultInstance().getDiskName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The name of the disk.
        +     * 
        + * + * string disk_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for diskName to set. + * @return This builder for chaining. + */ + public Builder setDiskNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + diskName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int diskType_ = 0; + + /** + * + * + *
        +     * Optional. The type of disk provisioning to use for the VM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDiskType disk_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for diskType. + */ + @java.lang.Override + public int getDiskTypeValue() { + return diskType_; + } + + /** + * + * + *
        +     * Optional. The type of disk provisioning to use for the VM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDiskType disk_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for diskType to set. + * @return This builder for chaining. + */ + public Builder setDiskTypeValue(int value) { + diskType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The type of disk provisioning to use for the VM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDiskType disk_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The diskType. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ComputeEngineDiskType getDiskType() { + com.google.cloud.vmmigration.v1.ComputeEngineDiskType result = + com.google.cloud.vmmigration.v1.ComputeEngineDiskType.forNumber(diskType_); + return result == null + ? com.google.cloud.vmmigration.v1.ComputeEngineDiskType.UNRECOGNIZED + : result; + } + + /** + * + * + *
        +     * Optional. The type of disk provisioning to use for the VM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDiskType disk_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The diskType to set. + * @return This builder for chaining. + */ + public Builder setDiskType(com.google.cloud.vmmigration.v1.ComputeEngineDiskType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + diskType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The type of disk provisioning to use for the VM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDiskType disk_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearDiskType() { + bitField0_ = (bitField0_ & ~0x00000004); + diskType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object deviceName_ = ""; + + /** + * + * + *
        +     * Optional. Specifies a unique device name of your choice that is reflected
        +     * into the /dev/disk/by-id/google-* tree of a Linux operating system running
        +     * within the instance. If not specified, the server chooses a default device
        +     * name to apply to this disk, in the form persistent-disk-x, where x is a
        +     * number assigned by Google Compute Engine. This field is only applicable for
        +     * persistent disks.
        +     * 
        + * + * string device_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The deviceName. + */ + public java.lang.String getDeviceName() { + java.lang.Object ref = deviceName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deviceName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Optional. Specifies a unique device name of your choice that is reflected
        +     * into the /dev/disk/by-id/google-* tree of a Linux operating system running
        +     * within the instance. If not specified, the server chooses a default device
        +     * name to apply to this disk, in the form persistent-disk-x, where x is a
        +     * number assigned by Google Compute Engine. This field is only applicable for
        +     * persistent disks.
        +     * 
        + * + * string device_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for deviceName. + */ + public com.google.protobuf.ByteString getDeviceNameBytes() { + java.lang.Object ref = deviceName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deviceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Optional. Specifies a unique device name of your choice that is reflected
        +     * into the /dev/disk/by-id/google-* tree of a Linux operating system running
        +     * within the instance. If not specified, the server chooses a default device
        +     * name to apply to this disk, in the form persistent-disk-x, where x is a
        +     * number assigned by Google Compute Engine. This field is only applicable for
        +     * persistent disks.
        +     * 
        + * + * string device_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The deviceName to set. + * @return This builder for chaining. + */ + public Builder setDeviceName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + deviceName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Specifies a unique device name of your choice that is reflected
        +     * into the /dev/disk/by-id/google-* tree of a Linux operating system running
        +     * within the instance. If not specified, the server chooses a default device
        +     * name to apply to this disk, in the form persistent-disk-x, where x is a
        +     * number assigned by Google Compute Engine. This field is only applicable for
        +     * persistent disks.
        +     * 
        + * + * string device_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDeviceName() { + deviceName_ = getDefaultInstance().getDeviceName(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Specifies a unique device name of your choice that is reflected
        +     * into the /dev/disk/by-id/google-* tree of a Linux operating system running
        +     * within the instance. If not specified, the server chooses a default device
        +     * name to apply to this disk, in the form persistent-disk-x, where x is a
        +     * number assigned by Google Compute Engine. This field is only applicable for
        +     * persistent disks.
        +     * 
        + * + * string device_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for deviceName to set. + * @return This builder for chaining. + */ + public Builder setDeviceNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + deviceName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.cloud.vmmigration.v1.Encryption encryption_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.Encryption, + com.google.cloud.vmmigration.v1.Encryption.Builder, + com.google.cloud.vmmigration.v1.EncryptionOrBuilder> + encryptionBuilder_; + + /** + * + * + *
        +     * Optional. The encryption to apply to the boot disk.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the encryption field is set. + */ + public boolean hasEncryption() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
        +     * Optional. The encryption to apply to the boot disk.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The encryption. + */ + public com.google.cloud.vmmigration.v1.Encryption getEncryption() { + if (encryptionBuilder_ == null) { + return encryption_ == null + ? com.google.cloud.vmmigration.v1.Encryption.getDefaultInstance() + : encryption_; + } else { + return encryptionBuilder_.getMessage(); + } + } + + /** + * + * + *
        +     * Optional. The encryption to apply to the boot disk.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEncryption(com.google.cloud.vmmigration.v1.Encryption value) { + if (encryptionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + encryption_ = value; + } else { + encryptionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The encryption to apply to the boot disk.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEncryption( + com.google.cloud.vmmigration.v1.Encryption.Builder builderForValue) { + if (encryptionBuilder_ == null) { + encryption_ = builderForValue.build(); + } else { + encryptionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The encryption to apply to the boot disk.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeEncryption(com.google.cloud.vmmigration.v1.Encryption value) { + if (encryptionBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && encryption_ != null + && encryption_ != com.google.cloud.vmmigration.v1.Encryption.getDefaultInstance()) { + getEncryptionBuilder().mergeFrom(value); + } else { + encryption_ = value; + } + } else { + encryptionBuilder_.mergeFrom(value); + } + if (encryption_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Optional. The encryption to apply to the boot disk.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEncryption() { + bitField0_ = (bitField0_ & ~0x00000010); + encryption_ = null; + if (encryptionBuilder_ != null) { + encryptionBuilder_.dispose(); + encryptionBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The encryption to apply to the boot disk.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vmmigration.v1.Encryption.Builder getEncryptionBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getEncryptionFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Optional. The encryption to apply to the boot disk.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vmmigration.v1.EncryptionOrBuilder getEncryptionOrBuilder() { + if (encryptionBuilder_ != null) { + return encryptionBuilder_.getMessageOrBuilder(); + } else { + return encryption_ == null + ? com.google.cloud.vmmigration.v1.Encryption.getDefaultInstance() + : encryption_; + } + } + + /** + * + * + *
        +     * Optional. The encryption to apply to the boot disk.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.Encryption, + com.google.cloud.vmmigration.v1.Encryption.Builder, + com.google.cloud.vmmigration.v1.EncryptionOrBuilder> + getEncryptionFieldBuilder() { + if (encryptionBuilder_ == null) { + encryptionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.Encryption, + com.google.cloud.vmmigration.v1.Encryption.Builder, + com.google.cloud.vmmigration.v1.EncryptionOrBuilder>( + getEncryption(), getParentForChildren(), isClean()); + encryption_ = null; + } + return encryptionBuilder_; + } + + @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.vmmigration.v1.BootDiskDefaults) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.BootDiskDefaults) + private static final com.google.cloud.vmmigration.v1.BootDiskDefaults DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.BootDiskDefaults(); + } + + public static com.google.cloud.vmmigration.v1.BootDiskDefaults getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BootDiskDefaults parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.BootDiskDefaults getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/BootDiskDefaultsOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/BootDiskDefaultsOrBuilder.java new file mode 100644 index 000000000000..90a6a7431efa --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/BootDiskDefaultsOrBuilder.java @@ -0,0 +1,200 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface BootDiskDefaultsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.BootDiskDefaults) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * The image to use when creating the disk.
        +   * 
        + * + * .google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults image = 3; + * + * @return Whether the image field is set. + */ + boolean hasImage(); + + /** + * + * + *
        +   * The image to use when creating the disk.
        +   * 
        + * + * .google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults image = 3; + * + * @return The image. + */ + com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults getImage(); + + /** + * + * + *
        +   * The image to use when creating the disk.
        +   * 
        + * + * .google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaults image = 3; + */ + com.google.cloud.vmmigration.v1.BootDiskDefaults.DiskImageDefaultsOrBuilder getImageOrBuilder(); + + /** + * + * + *
        +   * Optional. The name of the disk.
        +   * 
        + * + * string disk_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The diskName. + */ + java.lang.String getDiskName(); + + /** + * + * + *
        +   * Optional. The name of the disk.
        +   * 
        + * + * string disk_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for diskName. + */ + com.google.protobuf.ByteString getDiskNameBytes(); + + /** + * + * + *
        +   * Optional. The type of disk provisioning to use for the VM.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDiskType disk_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for diskType. + */ + int getDiskTypeValue(); + + /** + * + * + *
        +   * Optional. The type of disk provisioning to use for the VM.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDiskType disk_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The diskType. + */ + com.google.cloud.vmmigration.v1.ComputeEngineDiskType getDiskType(); + + /** + * + * + *
        +   * Optional. Specifies a unique device name of your choice that is reflected
        +   * into the /dev/disk/by-id/google-* tree of a Linux operating system running
        +   * within the instance. If not specified, the server chooses a default device
        +   * name to apply to this disk, in the form persistent-disk-x, where x is a
        +   * number assigned by Google Compute Engine. This field is only applicable for
        +   * persistent disks.
        +   * 
        + * + * string device_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The deviceName. + */ + java.lang.String getDeviceName(); + + /** + * + * + *
        +   * Optional. Specifies a unique device name of your choice that is reflected
        +   * into the /dev/disk/by-id/google-* tree of a Linux operating system running
        +   * within the instance. If not specified, the server chooses a default device
        +   * name to apply to this disk, in the form persistent-disk-x, where x is a
        +   * number assigned by Google Compute Engine. This field is only applicable for
        +   * persistent disks.
        +   * 
        + * + * string device_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for deviceName. + */ + com.google.protobuf.ByteString getDeviceNameBytes(); + + /** + * + * + *
        +   * Optional. The encryption to apply to the boot disk.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the encryption field is set. + */ + boolean hasEncryption(); + + /** + * + * + *
        +   * Optional. The encryption to apply to the boot disk.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The encryption. + */ + com.google.cloud.vmmigration.v1.Encryption getEncryption(); + + /** + * + * + *
        +   * Optional. The encryption to apply to the boot disk.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.vmmigration.v1.EncryptionOrBuilder getEncryptionOrBuilder(); + + com.google.cloud.vmmigration.v1.BootDiskDefaults.SourceCase getSourceCase(); +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CancelDiskMigrationJobRequest.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CancelDiskMigrationJobRequest.java new file mode 100644 index 000000000000..b617629eaf60 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CancelDiskMigrationJobRequest.java @@ -0,0 +1,653 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * Request message for 'CancelDiskMigrationJob' request.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest} + */ +public final class CancelDiskMigrationJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest) + CancelDiskMigrationJobRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CancelDiskMigrationJobRequest.newBuilder() to construct. + private CancelDiskMigrationJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CancelDiskMigrationJobRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CancelDiskMigrationJobRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_CancelDiskMigrationJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_CancelDiskMigrationJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest.class, + com.google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
        +   * Required. The name of the DiskMigrationJob.
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
        +   * Required. The name of the DiskMigrationJob.
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest other = + (com.google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest 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.vmmigration.v1.CancelDiskMigrationJobRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest parseFrom( + 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.vmmigration.v1.CancelDiskMigrationJobRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest 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.vmmigration.v1.CancelDiskMigrationJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest 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.vmmigration.v1.CancelDiskMigrationJobRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest 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.vmmigration.v1.CancelDiskMigrationJobRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * Request message for 'CancelDiskMigrationJob' request.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest) + com.google.cloud.vmmigration.v1.CancelDiskMigrationJobRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_CancelDiskMigrationJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_CancelDiskMigrationJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest.class, + com.google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_CancelDiskMigrationJobRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest + getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest build() { + com.google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest buildPartial() { + com.google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest result = + new com.google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest) { + return mergeFrom((com.google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest other) { + if (other + == com.google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
        +     * Required. The name of the DiskMigrationJob.
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Required. The name of the DiskMigrationJob.
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Required. The name of the DiskMigrationJob.
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The name of the DiskMigrationJob.
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The name of the DiskMigrationJob.
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest) + private static final com.google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest(); + } + + public static com.google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CancelDiskMigrationJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.CancelDiskMigrationJobRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CancelDiskMigrationJobRequestOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CancelDiskMigrationJobRequestOrBuilder.java new file mode 100644 index 000000000000..1df5dacf80b9 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CancelDiskMigrationJobRequestOrBuilder.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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface CancelDiskMigrationJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Required. The name of the DiskMigrationJob.
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
        +   * Required. The name of the DiskMigrationJob.
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CancelDiskMigrationJobResponse.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CancelDiskMigrationJobResponse.java new file mode 100644 index 000000000000..9a64b2e23c4e --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CancelDiskMigrationJobResponse.java @@ -0,0 +1,441 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * Response message for 'CancelDiskMigrationJob' request.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.CancelDiskMigrationJobResponse} + */ +public final class CancelDiskMigrationJobResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.CancelDiskMigrationJobResponse) + CancelDiskMigrationJobResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CancelDiskMigrationJobResponse.newBuilder() to construct. + private CancelDiskMigrationJobResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CancelDiskMigrationJobResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CancelDiskMigrationJobResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_CancelDiskMigrationJobResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_CancelDiskMigrationJobResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.CancelDiskMigrationJobResponse.class, + com.google.cloud.vmmigration.v1.CancelDiskMigrationJobResponse.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.vmmigration.v1.CancelDiskMigrationJobResponse)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.CancelDiskMigrationJobResponse other = + (com.google.cloud.vmmigration.v1.CancelDiskMigrationJobResponse) 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.vmmigration.v1.CancelDiskMigrationJobResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.CancelDiskMigrationJobResponse 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.vmmigration.v1.CancelDiskMigrationJobResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.CancelDiskMigrationJobResponse parseFrom( + 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.vmmigration.v1.CancelDiskMigrationJobResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.CancelDiskMigrationJobResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.CancelDiskMigrationJobResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.CancelDiskMigrationJobResponse 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.vmmigration.v1.CancelDiskMigrationJobResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.CancelDiskMigrationJobResponse 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.vmmigration.v1.CancelDiskMigrationJobResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.CancelDiskMigrationJobResponse 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.vmmigration.v1.CancelDiskMigrationJobResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * Response message for 'CancelDiskMigrationJob' request.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.CancelDiskMigrationJobResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.CancelDiskMigrationJobResponse) + com.google.cloud.vmmigration.v1.CancelDiskMigrationJobResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_CancelDiskMigrationJobResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_CancelDiskMigrationJobResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.CancelDiskMigrationJobResponse.class, + com.google.cloud.vmmigration.v1.CancelDiskMigrationJobResponse.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.CancelDiskMigrationJobResponse.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.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_CancelDiskMigrationJobResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.CancelDiskMigrationJobResponse + getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.CancelDiskMigrationJobResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.CancelDiskMigrationJobResponse build() { + com.google.cloud.vmmigration.v1.CancelDiskMigrationJobResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.CancelDiskMigrationJobResponse buildPartial() { + com.google.cloud.vmmigration.v1.CancelDiskMigrationJobResponse result = + new com.google.cloud.vmmigration.v1.CancelDiskMigrationJobResponse(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.vmmigration.v1.CancelDiskMigrationJobResponse) { + return mergeFrom((com.google.cloud.vmmigration.v1.CancelDiskMigrationJobResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.CancelDiskMigrationJobResponse other) { + if (other + == com.google.cloud.vmmigration.v1.CancelDiskMigrationJobResponse.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.vmmigration.v1.CancelDiskMigrationJobResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.CancelDiskMigrationJobResponse) + private static final com.google.cloud.vmmigration.v1.CancelDiskMigrationJobResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.CancelDiskMigrationJobResponse(); + } + + public static com.google.cloud.vmmigration.v1.CancelDiskMigrationJobResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CancelDiskMigrationJobResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.CancelDiskMigrationJobResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CancelDiskMigrationJobResponseOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CancelDiskMigrationJobResponseOrBuilder.java new file mode 100644 index 000000000000..13f9d28f9635 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CancelDiskMigrationJobResponseOrBuilder.java @@ -0,0 +1,25 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface CancelDiskMigrationJobResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.CancelDiskMigrationJobResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CancelImageImportJobRequest.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CancelImageImportJobRequest.java new file mode 100644 index 000000000000..9b6d3af2d321 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CancelImageImportJobRequest.java @@ -0,0 +1,649 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * Request message for 'CancelImageImportJob' request.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.CancelImageImportJobRequest} + */ +public final class CancelImageImportJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.CancelImageImportJobRequest) + CancelImageImportJobRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CancelImageImportJobRequest.newBuilder() to construct. + private CancelImageImportJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CancelImageImportJobRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CancelImageImportJobRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_CancelImageImportJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_CancelImageImportJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.CancelImageImportJobRequest.class, + com.google.cloud.vmmigration.v1.CancelImageImportJobRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
        +   * Required. The image import job id.
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
        +   * Required. The image import job id.
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmmigration.v1.CancelImageImportJobRequest)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.CancelImageImportJobRequest other = + (com.google.cloud.vmmigration.v1.CancelImageImportJobRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.CancelImageImportJobRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.CancelImageImportJobRequest 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.vmmigration.v1.CancelImageImportJobRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.CancelImageImportJobRequest parseFrom( + 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.vmmigration.v1.CancelImageImportJobRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.CancelImageImportJobRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.CancelImageImportJobRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.CancelImageImportJobRequest 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.vmmigration.v1.CancelImageImportJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.CancelImageImportJobRequest 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.vmmigration.v1.CancelImageImportJobRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.CancelImageImportJobRequest 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.vmmigration.v1.CancelImageImportJobRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * Request message for 'CancelImageImportJob' request.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.CancelImageImportJobRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.CancelImageImportJobRequest) + com.google.cloud.vmmigration.v1.CancelImageImportJobRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_CancelImageImportJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_CancelImageImportJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.CancelImageImportJobRequest.class, + com.google.cloud.vmmigration.v1.CancelImageImportJobRequest.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.CancelImageImportJobRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_CancelImageImportJobRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.CancelImageImportJobRequest getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.CancelImageImportJobRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.CancelImageImportJobRequest build() { + com.google.cloud.vmmigration.v1.CancelImageImportJobRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.CancelImageImportJobRequest buildPartial() { + com.google.cloud.vmmigration.v1.CancelImageImportJobRequest result = + new com.google.cloud.vmmigration.v1.CancelImageImportJobRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vmmigration.v1.CancelImageImportJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmmigration.v1.CancelImageImportJobRequest) { + return mergeFrom((com.google.cloud.vmmigration.v1.CancelImageImportJobRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.CancelImageImportJobRequest other) { + if (other == com.google.cloud.vmmigration.v1.CancelImageImportJobRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
        +     * Required. The image import job id.
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Required. The image import job id.
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Required. The image import job id.
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The image import job id.
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The image import job id.
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmmigration.v1.CancelImageImportJobRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.CancelImageImportJobRequest) + private static final com.google.cloud.vmmigration.v1.CancelImageImportJobRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.CancelImageImportJobRequest(); + } + + public static com.google.cloud.vmmigration.v1.CancelImageImportJobRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CancelImageImportJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.CancelImageImportJobRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CancelImageImportJobRequestOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CancelImageImportJobRequestOrBuilder.java new file mode 100644 index 000000000000..6ecb62a54d21 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CancelImageImportJobRequestOrBuilder.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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface CancelImageImportJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.CancelImageImportJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Required. The image import job id.
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
        +   * Required. The image import job id.
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CancelImageImportJobResponse.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CancelImageImportJobResponse.java new file mode 100644 index 000000000000..fe56e98face2 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CancelImageImportJobResponse.java @@ -0,0 +1,438 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * Response message for 'CancelImageImportJob' request.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.CancelImageImportJobResponse} + */ +public final class CancelImageImportJobResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.CancelImageImportJobResponse) + CancelImageImportJobResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CancelImageImportJobResponse.newBuilder() to construct. + private CancelImageImportJobResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CancelImageImportJobResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CancelImageImportJobResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_CancelImageImportJobResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_CancelImageImportJobResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.CancelImageImportJobResponse.class, + com.google.cloud.vmmigration.v1.CancelImageImportJobResponse.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.vmmigration.v1.CancelImageImportJobResponse)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.CancelImageImportJobResponse other = + (com.google.cloud.vmmigration.v1.CancelImageImportJobResponse) 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.vmmigration.v1.CancelImageImportJobResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.CancelImageImportJobResponse 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.vmmigration.v1.CancelImageImportJobResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.CancelImageImportJobResponse parseFrom( + 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.vmmigration.v1.CancelImageImportJobResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.CancelImageImportJobResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.CancelImageImportJobResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.CancelImageImportJobResponse 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.vmmigration.v1.CancelImageImportJobResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.CancelImageImportJobResponse 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.vmmigration.v1.CancelImageImportJobResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.CancelImageImportJobResponse 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.vmmigration.v1.CancelImageImportJobResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * Response message for 'CancelImageImportJob' request.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.CancelImageImportJobResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.CancelImageImportJobResponse) + com.google.cloud.vmmigration.v1.CancelImageImportJobResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_CancelImageImportJobResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_CancelImageImportJobResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.CancelImageImportJobResponse.class, + com.google.cloud.vmmigration.v1.CancelImageImportJobResponse.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.CancelImageImportJobResponse.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.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_CancelImageImportJobResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.CancelImageImportJobResponse + getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.CancelImageImportJobResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.CancelImageImportJobResponse build() { + com.google.cloud.vmmigration.v1.CancelImageImportJobResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.CancelImageImportJobResponse buildPartial() { + com.google.cloud.vmmigration.v1.CancelImageImportJobResponse result = + new com.google.cloud.vmmigration.v1.CancelImageImportJobResponse(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.vmmigration.v1.CancelImageImportJobResponse) { + return mergeFrom((com.google.cloud.vmmigration.v1.CancelImageImportJobResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.CancelImageImportJobResponse other) { + if (other + == com.google.cloud.vmmigration.v1.CancelImageImportJobResponse.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.vmmigration.v1.CancelImageImportJobResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.CancelImageImportJobResponse) + private static final com.google.cloud.vmmigration.v1.CancelImageImportJobResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.CancelImageImportJobResponse(); + } + + public static com.google.cloud.vmmigration.v1.CancelImageImportJobResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CancelImageImportJobResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.CancelImageImportJobResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CancelImageImportJobResponseOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CancelImageImportJobResponseOrBuilder.java new file mode 100644 index 000000000000..0ac4cb62c047 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CancelImageImportJobResponseOrBuilder.java @@ -0,0 +1,25 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface CancelImageImportJobResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.CancelImageImportJobResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CloneJob.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CloneJob.java index ba4ebe0cb96e..c910cc3dc8d0 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CloneJob.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CloneJob.java @@ -362,6 +362,7 @@ public enum TargetVmDetailsCase com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { COMPUTE_ENGINE_TARGET_DETAILS(20), + COMPUTE_ENGINE_DISKS_TARGET_DETAILS(25), TARGETVMDETAILS_NOT_SET(0); private final int value; @@ -383,6 +384,8 @@ public static TargetVmDetailsCase forNumber(int value) { switch (value) { case 20: return COMPUTE_ENGINE_TARGET_DETAILS; + case 25: + return COMPUTE_ENGINE_DISKS_TARGET_DETAILS; case 0: return TARGETVMDETAILS_NOT_SET; default: @@ -461,6 +464,68 @@ public boolean hasComputeEngineTargetDetails() { return com.google.cloud.vmmigration.v1.ComputeEngineTargetDetails.getDefaultInstance(); } + public static final int COMPUTE_ENGINE_DISKS_TARGET_DETAILS_FIELD_NUMBER = 25; + + /** + * + * + *
        +   * Output only. Details of the target Persistent Disks in Compute Engine.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails compute_engine_disks_target_details = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the computeEngineDisksTargetDetails field is set. + */ + @java.lang.Override + public boolean hasComputeEngineDisksTargetDetails() { + return targetVmDetailsCase_ == 25; + } + + /** + * + * + *
        +   * Output only. Details of the target Persistent Disks in Compute Engine.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails compute_engine_disks_target_details = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The computeEngineDisksTargetDetails. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails + getComputeEngineDisksTargetDetails() { + if (targetVmDetailsCase_ == 25) { + return (com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails) targetVmDetails_; + } + return com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails.getDefaultInstance(); + } + + /** + * + * + *
        +   * Output only. Details of the target Persistent Disks in Compute Engine.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails compute_engine_disks_target_details = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetailsOrBuilder + getComputeEngineDisksTargetDetailsOrBuilder() { + if (targetVmDetailsCase_ == 25) { + return (com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails) targetVmDetails_; + } + return com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails.getDefaultInstance(); + } + public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; @@ -891,6 +956,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < steps_.size(); i++) { output.writeMessage(23, steps_.get(i)); } + if (targetVmDetailsCase_ == 25) { + output.writeMessage( + 25, (com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails) targetVmDetails_); + } getUnknownFields().writeTo(output); } @@ -926,6 +995,12 @@ public int getSerializedSize() { for (int i = 0; i < steps_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, steps_.get(i)); } + if (targetVmDetailsCase_ == 25) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 25, + (com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails) targetVmDetails_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -966,6 +1041,10 @@ public boolean equals(final java.lang.Object obj) { if (!getComputeEngineTargetDetails().equals(other.getComputeEngineTargetDetails())) return false; break; + case 25: + if (!getComputeEngineDisksTargetDetails() + .equals(other.getComputeEngineDisksTargetDetails())) return false; + break; case 0: default: } @@ -1009,6 +1088,10 @@ public int hashCode() { hash = (37 * hash) + COMPUTE_ENGINE_TARGET_DETAILS_FIELD_NUMBER; hash = (53 * hash) + getComputeEngineTargetDetails().hashCode(); break; + case 25: + hash = (37 * hash) + COMPUTE_ENGINE_DISKS_TARGET_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getComputeEngineDisksTargetDetails().hashCode(); + break; case 0: default: } @@ -1177,6 +1260,9 @@ public Builder clear() { if (computeEngineTargetDetailsBuilder_ != null) { computeEngineTargetDetailsBuilder_.clear(); } + if (computeEngineDisksTargetDetailsBuilder_ != null) { + computeEngineDisksTargetDetailsBuilder_.clear(); + } createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -1205,7 +1291,7 @@ public Builder clear() { steps_ = null; stepsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); targetVmDetailsCase_ = 0; targetVmDetails_ = null; return this; @@ -1246,9 +1332,9 @@ public com.google.cloud.vmmigration.v1.CloneJob buildPartial() { private void buildPartialRepeatedFields(com.google.cloud.vmmigration.v1.CloneJob result) { if (stepsBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { steps_ = java.util.Collections.unmodifiableList(steps_); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); } result.steps_ = steps_; } else { @@ -1259,25 +1345,25 @@ private void buildPartialRepeatedFields(com.google.cloud.vmmigration.v1.CloneJob private void buildPartial0(com.google.cloud.vmmigration.v1.CloneJob 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.name_ = name_; } - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.state_ = state_; } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.stateTime_ = stateTimeBuilder_ == null ? stateTime_ : stateTimeBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); to_bitField0_ |= 0x00000008; } @@ -1290,6 +1376,9 @@ private void buildPartialOneofs(com.google.cloud.vmmigration.v1.CloneJob result) if (targetVmDetailsCase_ == 20 && computeEngineTargetDetailsBuilder_ != null) { result.targetVmDetails_ = computeEngineTargetDetailsBuilder_.build(); } + if (targetVmDetailsCase_ == 25 && computeEngineDisksTargetDetailsBuilder_ != null) { + result.targetVmDetails_ = computeEngineDisksTargetDetailsBuilder_.build(); + } } @java.lang.Override @@ -1345,7 +1434,7 @@ public Builder mergeFrom(com.google.cloud.vmmigration.v1.CloneJob other) { } if (!other.getName().isEmpty()) { name_ = other.name_; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); } if (other.state_ != 0) { @@ -1361,7 +1450,7 @@ public Builder mergeFrom(com.google.cloud.vmmigration.v1.CloneJob other) { if (!other.steps_.isEmpty()) { if (steps_.isEmpty()) { steps_ = other.steps_; - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); } else { ensureStepsIsMutable(); steps_.addAll(other.steps_); @@ -1374,7 +1463,7 @@ public Builder mergeFrom(com.google.cloud.vmmigration.v1.CloneJob other) { stepsBuilder_.dispose(); stepsBuilder_ = null; steps_ = other.steps_; - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); stepsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getStepsFieldBuilder() @@ -1390,6 +1479,11 @@ public Builder mergeFrom(com.google.cloud.vmmigration.v1.CloneJob other) { mergeComputeEngineTargetDetails(other.getComputeEngineTargetDetails()); break; } + case COMPUTE_ENGINE_DISKS_TARGET_DETAILS: + { + mergeComputeEngineDisksTargetDetails(other.getComputeEngineDisksTargetDetails()); + break; + } case TARGETVMDETAILS_NOT_SET: { break; @@ -1424,31 +1518,31 @@ public Builder mergeFrom( case 10: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; break; } // case 10 case 26: { name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 26 case 96: { state_ = input.readEnum(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 96 case 114: { input.readMessage(getStateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 114 case 138: { input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 138 case 162: @@ -1461,7 +1555,7 @@ public Builder mergeFrom( case 178: { input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 178 case 186: @@ -1477,6 +1571,14 @@ public Builder mergeFrom( } break; } // case 186 + case 202: + { + input.readMessage( + getComputeEngineDisksTargetDetailsFieldBuilder().getBuilder(), + extensionRegistry); + targetVmDetailsCase_ = 25; + break; + } // case 202 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1754,6 +1856,251 @@ public Builder clearComputeEngineTargetDetails() { return computeEngineTargetDetailsBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails, + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails.Builder, + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetailsOrBuilder> + computeEngineDisksTargetDetailsBuilder_; + + /** + * + * + *
        +     * Output only. Details of the target Persistent Disks in Compute Engine.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails compute_engine_disks_target_details = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the computeEngineDisksTargetDetails field is set. + */ + @java.lang.Override + public boolean hasComputeEngineDisksTargetDetails() { + return targetVmDetailsCase_ == 25; + } + + /** + * + * + *
        +     * Output only. Details of the target Persistent Disks in Compute Engine.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails compute_engine_disks_target_details = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The computeEngineDisksTargetDetails. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails + getComputeEngineDisksTargetDetails() { + if (computeEngineDisksTargetDetailsBuilder_ == null) { + if (targetVmDetailsCase_ == 25) { + return (com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails) targetVmDetails_; + } + return com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails.getDefaultInstance(); + } else { + if (targetVmDetailsCase_ == 25) { + return computeEngineDisksTargetDetailsBuilder_.getMessage(); + } + return com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Output only. Details of the target Persistent Disks in Compute Engine.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails compute_engine_disks_target_details = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setComputeEngineDisksTargetDetails( + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails value) { + if (computeEngineDisksTargetDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + targetVmDetails_ = value; + onChanged(); + } else { + computeEngineDisksTargetDetailsBuilder_.setMessage(value); + } + targetVmDetailsCase_ = 25; + return this; + } + + /** + * + * + *
        +     * Output only. Details of the target Persistent Disks in Compute Engine.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails compute_engine_disks_target_details = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setComputeEngineDisksTargetDetails( + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails.Builder builderForValue) { + if (computeEngineDisksTargetDetailsBuilder_ == null) { + targetVmDetails_ = builderForValue.build(); + onChanged(); + } else { + computeEngineDisksTargetDetailsBuilder_.setMessage(builderForValue.build()); + } + targetVmDetailsCase_ = 25; + return this; + } + + /** + * + * + *
        +     * Output only. Details of the target Persistent Disks in Compute Engine.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails compute_engine_disks_target_details = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeComputeEngineDisksTargetDetails( + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails value) { + if (computeEngineDisksTargetDetailsBuilder_ == null) { + if (targetVmDetailsCase_ == 25 + && targetVmDetails_ + != com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails + .getDefaultInstance()) { + targetVmDetails_ = + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails.newBuilder( + (com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails) + targetVmDetails_) + .mergeFrom(value) + .buildPartial(); + } else { + targetVmDetails_ = value; + } + onChanged(); + } else { + if (targetVmDetailsCase_ == 25) { + computeEngineDisksTargetDetailsBuilder_.mergeFrom(value); + } else { + computeEngineDisksTargetDetailsBuilder_.setMessage(value); + } + } + targetVmDetailsCase_ = 25; + return this; + } + + /** + * + * + *
        +     * Output only. Details of the target Persistent Disks in Compute Engine.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails compute_engine_disks_target_details = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearComputeEngineDisksTargetDetails() { + if (computeEngineDisksTargetDetailsBuilder_ == null) { + if (targetVmDetailsCase_ == 25) { + targetVmDetailsCase_ = 0; + targetVmDetails_ = null; + onChanged(); + } + } else { + if (targetVmDetailsCase_ == 25) { + targetVmDetailsCase_ = 0; + targetVmDetails_ = null; + } + computeEngineDisksTargetDetailsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Output only. Details of the target Persistent Disks in Compute Engine.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails compute_engine_disks_target_details = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails.Builder + getComputeEngineDisksTargetDetailsBuilder() { + return getComputeEngineDisksTargetDetailsFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Output only. Details of the target Persistent Disks in Compute Engine.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails compute_engine_disks_target_details = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetailsOrBuilder + getComputeEngineDisksTargetDetailsOrBuilder() { + if ((targetVmDetailsCase_ == 25) && (computeEngineDisksTargetDetailsBuilder_ != null)) { + return computeEngineDisksTargetDetailsBuilder_.getMessageOrBuilder(); + } else { + if (targetVmDetailsCase_ == 25) { + return (com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails) targetVmDetails_; + } + return com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Output only. Details of the target Persistent Disks in Compute Engine.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails compute_engine_disks_target_details = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails, + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails.Builder, + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetailsOrBuilder> + getComputeEngineDisksTargetDetailsFieldBuilder() { + if (computeEngineDisksTargetDetailsBuilder_ == null) { + if (!(targetVmDetailsCase_ == 25)) { + targetVmDetails_ = + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails.getDefaultInstance(); + } + computeEngineDisksTargetDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails, + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails.Builder, + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetailsOrBuilder>( + (com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails) targetVmDetails_, + getParentForChildren(), + isClean()); + targetVmDetails_ = null; + } + targetVmDetailsCase_ = 25; + onChanged(); + return computeEngineDisksTargetDetailsBuilder_; + } + private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, @@ -1776,7 +2123,7 @@ public Builder clearComputeEngineTargetDetails() { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** @@ -1824,7 +2171,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1847,7 +2194,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { createTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1866,7 +2213,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); @@ -1877,7 +2224,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); } return this; @@ -1896,7 +2243,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(); @@ -1919,7 +2266,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -1995,7 +2342,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); } /** @@ -2037,7 +2384,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { } else { endTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2058,7 +2405,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) } else { endTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2075,7 +2422,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); @@ -2086,7 +2433,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { endTimeBuilder_.mergeFrom(value); } if (endTime_ != null) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } return this; @@ -2103,7 +2450,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(); @@ -2124,7 +2471,7 @@ public Builder clearEndTime() { * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return getEndTimeFieldBuilder().getBuilder(); } @@ -2239,7 +2586,7 @@ public Builder setName(java.lang.String value) { throw new NullPointerException(); } name_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2257,7 +2604,7 @@ public Builder setName(java.lang.String value) { */ public Builder clearName() { name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -2280,7 +2627,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); name_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2321,7 +2668,7 @@ public int getStateValue() { */ public Builder setStateValue(int value) { state_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2364,7 +2711,7 @@ public Builder setState(com.google.cloud.vmmigration.v1.CloneJob.State value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; state_ = value.getNumber(); onChanged(); return this; @@ -2384,7 +2731,7 @@ public Builder setState(com.google.cloud.vmmigration.v1.CloneJob.State value) { * @return This builder for chaining. */ public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); state_ = 0; onChanged(); return this; @@ -2411,7 +2758,7 @@ public Builder clearState() { * @return Whether the stateTime field is set. */ public boolean hasStateTime() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** @@ -2455,7 +2802,7 @@ public Builder setStateTime(com.google.protobuf.Timestamp value) { } else { stateTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2477,7 +2824,7 @@ public Builder setStateTime(com.google.protobuf.Timestamp.Builder builderForValu } else { stateTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2495,7 +2842,7 @@ public Builder setStateTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStateTime(com.google.protobuf.Timestamp value) { if (stateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) + if (((bitField0_ & 0x00000040) != 0) && stateTime_ != null && stateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStateTimeBuilder().mergeFrom(value); @@ -2506,7 +2853,7 @@ public Builder mergeStateTime(com.google.protobuf.Timestamp value) { stateTimeBuilder_.mergeFrom(value); } if (stateTime_ != null) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } return this; @@ -2524,7 +2871,7 @@ public Builder mergeStateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearStateTime() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); stateTime_ = null; if (stateTimeBuilder_ != null) { stateTimeBuilder_.dispose(); @@ -2546,7 +2893,7 @@ public Builder clearStateTime() { * */ public com.google.protobuf.Timestamp.Builder getStateTimeBuilder() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return getStateTimeFieldBuilder().getBuilder(); } @@ -2616,7 +2963,7 @@ public com.google.protobuf.TimestampOrBuilder getStateTimeOrBuilder() { * @return Whether the error field is set. */ public boolean hasError() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -2658,7 +3005,7 @@ public Builder setError(com.google.rpc.Status value) { } else { errorBuilder_.setMessage(value); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2679,7 +3026,7 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { } else { errorBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2696,7 +3043,7 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { */ public Builder mergeError(com.google.rpc.Status value) { if (errorBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) + if (((bitField0_ & 0x00000080) != 0) && error_ != null && error_ != com.google.rpc.Status.getDefaultInstance()) { getErrorBuilder().mergeFrom(value); @@ -2707,7 +3054,7 @@ public Builder mergeError(com.google.rpc.Status value) { errorBuilder_.mergeFrom(value); } if (error_ != null) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); } return this; @@ -2724,7 +3071,7 @@ public Builder mergeError(com.google.rpc.Status value) { * .google.rpc.Status error = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearError() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); error_ = null; if (errorBuilder_ != null) { errorBuilder_.dispose(); @@ -2745,7 +3092,7 @@ public Builder clearError() { * .google.rpc.Status error = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.Status.Builder getErrorBuilder() { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return getErrorFieldBuilder().getBuilder(); } @@ -2796,9 +3143,9 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { java.util.Collections.emptyList(); private void ensureStepsIsMutable() { - if (!((bitField0_ & 0x00000080) != 0)) { + if (!((bitField0_ & 0x00000100) != 0)) { steps_ = new java.util.ArrayList(steps_); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; } } @@ -3045,7 +3392,7 @@ public Builder addAllSteps( public Builder clearSteps() { if (stepsBuilder_ == null) { steps_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); } else { stepsBuilder_.clear(); @@ -3187,7 +3534,7 @@ public java.util.List getStep com.google.cloud.vmmigration.v1.CloneStep, com.google.cloud.vmmigration.v1.CloneStep.Builder, com.google.cloud.vmmigration.v1.CloneStepOrBuilder>( - steps_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); + steps_, ((bitField0_ & 0x00000100) != 0), getParentForChildren(), isClean()); steps_ = null; } return stepsBuilder_; diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CloneJobOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CloneJobOrBuilder.java index 425d751eac5d..d62340fe51ff 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CloneJobOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CloneJobOrBuilder.java @@ -68,6 +68,51 @@ public interface CloneJobOrBuilder com.google.cloud.vmmigration.v1.ComputeEngineTargetDetailsOrBuilder getComputeEngineTargetDetailsOrBuilder(); + /** + * + * + *
        +   * Output only. Details of the target Persistent Disks in Compute Engine.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails compute_engine_disks_target_details = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the computeEngineDisksTargetDetails field is set. + */ + boolean hasComputeEngineDisksTargetDetails(); + + /** + * + * + *
        +   * Output only. Details of the target Persistent Disks in Compute Engine.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails compute_engine_disks_target_details = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The computeEngineDisksTargetDetails. + */ + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails + getComputeEngineDisksTargetDetails(); + + /** + * + * + *
        +   * Output only. Details of the target Persistent Disks in Compute Engine.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails compute_engine_disks_target_details = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetailsOrBuilder + getComputeEngineDisksTargetDetailsOrBuilder(); + /** * * diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineBootOption.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineBootOption.java index 804ebeccab3c..4ea976a26cb1 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineBootOption.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineBootOption.java @@ -156,7 +156,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.vmmigration.v1.VmMigrationProto.getDescriptor().getEnumTypes().get(4); + return com.google.cloud.vmmigration.v1.VmMigrationProto.getDescriptor().getEnumTypes().get(2); } private static final ComputeEngineBootOption[] VALUES = values(); diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineDisk.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineDisk.java new file mode 100644 index 000000000000..a9be9b5d3042 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineDisk.java @@ -0,0 +1,1386 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * Compute Engine disk target details.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.ComputeEngineDisk} + */ +public final class ComputeEngineDisk extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.ComputeEngineDisk) + ComputeEngineDiskOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ComputeEngineDisk.newBuilder() to construct. + private ComputeEngineDisk(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ComputeEngineDisk() { + diskId_ = ""; + zone_ = ""; + replicaZones_ = com.google.protobuf.LazyStringArrayList.emptyList(); + diskType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ComputeEngineDisk(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ComputeEngineDisk_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ComputeEngineDisk_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.ComputeEngineDisk.class, + com.google.cloud.vmmigration.v1.ComputeEngineDisk.Builder.class); + } + + public static final int DISK_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object diskId_ = ""; + + /** + * + * + *
        +   * Optional. Target Compute Engine Disk ID.
        +   * This is the resource ID segment of the Compute Engine Disk to create.
        +   * In the resource name compute/v1/projects/{project}/zones/{zone}/disks/disk1
        +   * "disk1" is the resource ID for the disk.
        +   * 
        + * + * string disk_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The diskId. + */ + @java.lang.Override + public java.lang.String getDiskId() { + java.lang.Object ref = diskId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + diskId_ = s; + return s; + } + } + + /** + * + * + *
        +   * Optional. Target Compute Engine Disk ID.
        +   * This is the resource ID segment of the Compute Engine Disk to create.
        +   * In the resource name compute/v1/projects/{project}/zones/{zone}/disks/disk1
        +   * "disk1" is the resource ID for the disk.
        +   * 
        + * + * string disk_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for diskId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDiskIdBytes() { + java.lang.Object ref = diskId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + diskId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + + /** + * + * + *
        +   * Required. The Compute Engine zone in which to create the disk. Should be of
        +   * the form: projects/{target-project}/locations/{zone}
        +   * 
        + * + * + * string zone = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The zone. + */ + @java.lang.Override + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + + /** + * + * + *
        +   * Required. The Compute Engine zone in which to create the disk. Should be of
        +   * the form: projects/{target-project}/locations/{zone}
        +   * 
        + * + * + * string zone = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for zone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REPLICA_ZONES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList replicaZones_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
        +   * Optional. Replication zones of the regional disk. Should be of the form:
        +   * projects/{target-project}/locations/{replica-zone}
        +   * Currently only one replica zone is supported.
        +   * 
        + * + * + * repeated string replica_zones = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the replicaZones. + */ + public com.google.protobuf.ProtocolStringList getReplicaZonesList() { + return replicaZones_; + } + + /** + * + * + *
        +   * Optional. Replication zones of the regional disk. Should be of the form:
        +   * projects/{target-project}/locations/{replica-zone}
        +   * Currently only one replica zone is supported.
        +   * 
        + * + * + * repeated string replica_zones = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of replicaZones. + */ + public int getReplicaZonesCount() { + return replicaZones_.size(); + } + + /** + * + * + *
        +   * Optional. Replication zones of the regional disk. Should be of the form:
        +   * projects/{target-project}/locations/{replica-zone}
        +   * Currently only one replica zone is supported.
        +   * 
        + * + * + * repeated string replica_zones = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The replicaZones at the given index. + */ + public java.lang.String getReplicaZones(int index) { + return replicaZones_.get(index); + } + + /** + * + * + *
        +   * Optional. Replication zones of the regional disk. Should be of the form:
        +   * projects/{target-project}/locations/{replica-zone}
        +   * Currently only one replica zone is supported.
        +   * 
        + * + * + * repeated string replica_zones = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the replicaZones at the given index. + */ + public com.google.protobuf.ByteString getReplicaZonesBytes(int index) { + return replicaZones_.getByteString(index); + } + + public static final int DISK_TYPE_FIELD_NUMBER = 4; + private int diskType_ = 0; + + /** + * + * + *
        +   * Required. The disk type to use.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDiskType disk_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for diskType. + */ + @java.lang.Override + public int getDiskTypeValue() { + return diskType_; + } + + /** + * + * + *
        +   * Required. The disk type to use.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDiskType disk_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The diskType. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ComputeEngineDiskType getDiskType() { + com.google.cloud.vmmigration.v1.ComputeEngineDiskType result = + com.google.cloud.vmmigration.v1.ComputeEngineDiskType.forNumber(diskType_); + return result == null + ? com.google.cloud.vmmigration.v1.ComputeEngineDiskType.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(diskId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, diskId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + for (int i = 0; i < replicaZones_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, replicaZones_.getRaw(i)); + } + if (diskType_ + != com.google.cloud.vmmigration.v1.ComputeEngineDiskType + .COMPUTE_ENGINE_DISK_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, diskType_); + } + 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(diskId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, diskId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + { + int dataSize = 0; + for (int i = 0; i < replicaZones_.size(); i++) { + dataSize += computeStringSizeNoTag(replicaZones_.getRaw(i)); + } + size += dataSize; + size += 1 * getReplicaZonesList().size(); + } + if (diskType_ + != com.google.cloud.vmmigration.v1.ComputeEngineDiskType + .COMPUTE_ENGINE_DISK_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, diskType_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.vmmigration.v1.ComputeEngineDisk)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.ComputeEngineDisk other = + (com.google.cloud.vmmigration.v1.ComputeEngineDisk) obj; + + if (!getDiskId().equals(other.getDiskId())) return false; + if (!getZone().equals(other.getZone())) return false; + if (!getReplicaZonesList().equals(other.getReplicaZonesList())) return false; + if (diskType_ != other.diskType_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DISK_ID_FIELD_NUMBER; + hash = (53 * hash) + getDiskId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + if (getReplicaZonesCount() > 0) { + hash = (37 * hash) + REPLICA_ZONES_FIELD_NUMBER; + hash = (53 * hash) + getReplicaZonesList().hashCode(); + } + hash = (37 * hash) + DISK_TYPE_FIELD_NUMBER; + hash = (53 * hash) + diskType_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.ComputeEngineDisk parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.ComputeEngineDisk 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.vmmigration.v1.ComputeEngineDisk parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.ComputeEngineDisk parseFrom( + 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.vmmigration.v1.ComputeEngineDisk parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.ComputeEngineDisk parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.ComputeEngineDisk parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.ComputeEngineDisk 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.vmmigration.v1.ComputeEngineDisk parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.ComputeEngineDisk 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.vmmigration.v1.ComputeEngineDisk parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.ComputeEngineDisk 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.vmmigration.v1.ComputeEngineDisk prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
        +   * Compute Engine disk target details.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.ComputeEngineDisk} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.ComputeEngineDisk) + com.google.cloud.vmmigration.v1.ComputeEngineDiskOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ComputeEngineDisk_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ComputeEngineDisk_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.ComputeEngineDisk.class, + com.google.cloud.vmmigration.v1.ComputeEngineDisk.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.ComputeEngineDisk.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + diskId_ = ""; + zone_ = ""; + replicaZones_ = com.google.protobuf.LazyStringArrayList.emptyList(); + diskType_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ComputeEngineDisk_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.ComputeEngineDisk getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.ComputeEngineDisk.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.ComputeEngineDisk build() { + com.google.cloud.vmmigration.v1.ComputeEngineDisk result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.ComputeEngineDisk buildPartial() { + com.google.cloud.vmmigration.v1.ComputeEngineDisk result = + new com.google.cloud.vmmigration.v1.ComputeEngineDisk(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vmmigration.v1.ComputeEngineDisk result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.diskId_ = diskId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + replicaZones_.makeImmutable(); + result.replicaZones_ = replicaZones_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.diskType_ = diskType_; + } + } + + @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.vmmigration.v1.ComputeEngineDisk) { + return mergeFrom((com.google.cloud.vmmigration.v1.ComputeEngineDisk) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.ComputeEngineDisk other) { + if (other == com.google.cloud.vmmigration.v1.ComputeEngineDisk.getDefaultInstance()) + return this; + if (!other.getDiskId().isEmpty()) { + diskId_ = other.diskId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.replicaZones_.isEmpty()) { + if (replicaZones_.isEmpty()) { + replicaZones_ = other.replicaZones_; + bitField0_ |= 0x00000004; + } else { + ensureReplicaZonesIsMutable(); + replicaZones_.addAll(other.replicaZones_); + } + onChanged(); + } + if (other.diskType_ != 0) { + setDiskTypeValue(other.getDiskTypeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + diskId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureReplicaZonesIsMutable(); + replicaZones_.add(s); + break; + } // case 26 + case 32: + { + diskType_ = 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 diskId_ = ""; + + /** + * + * + *
        +     * Optional. Target Compute Engine Disk ID.
        +     * This is the resource ID segment of the Compute Engine Disk to create.
        +     * In the resource name compute/v1/projects/{project}/zones/{zone}/disks/disk1
        +     * "disk1" is the resource ID for the disk.
        +     * 
        + * + * string disk_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The diskId. + */ + public java.lang.String getDiskId() { + java.lang.Object ref = diskId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + diskId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Optional. Target Compute Engine Disk ID.
        +     * This is the resource ID segment of the Compute Engine Disk to create.
        +     * In the resource name compute/v1/projects/{project}/zones/{zone}/disks/disk1
        +     * "disk1" is the resource ID for the disk.
        +     * 
        + * + * string disk_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for diskId. + */ + public com.google.protobuf.ByteString getDiskIdBytes() { + java.lang.Object ref = diskId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + diskId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Optional. Target Compute Engine Disk ID.
        +     * This is the resource ID segment of the Compute Engine Disk to create.
        +     * In the resource name compute/v1/projects/{project}/zones/{zone}/disks/disk1
        +     * "disk1" is the resource ID for the disk.
        +     * 
        + * + * string disk_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The diskId to set. + * @return This builder for chaining. + */ + public Builder setDiskId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + diskId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Target Compute Engine Disk ID.
        +     * This is the resource ID segment of the Compute Engine Disk to create.
        +     * In the resource name compute/v1/projects/{project}/zones/{zone}/disks/disk1
        +     * "disk1" is the resource ID for the disk.
        +     * 
        + * + * string disk_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDiskId() { + diskId_ = getDefaultInstance().getDiskId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Target Compute Engine Disk ID.
        +     * This is the resource ID segment of the Compute Engine Disk to create.
        +     * In the resource name compute/v1/projects/{project}/zones/{zone}/disks/disk1
        +     * "disk1" is the resource ID for the disk.
        +     * 
        + * + * string disk_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for diskId to set. + * @return This builder for chaining. + */ + public Builder setDiskIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + diskId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + + /** + * + * + *
        +     * Required. The Compute Engine zone in which to create the disk. Should be of
        +     * the form: projects/{target-project}/locations/{zone}
        +     * 
        + * + * + * string zone = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The zone. + */ + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Required. The Compute Engine zone in which to create the disk. Should be of
        +     * the form: projects/{target-project}/locations/{zone}
        +     * 
        + * + * + * string zone = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for zone. + */ + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Required. The Compute Engine zone in which to create the disk. Should be of
        +     * the form: projects/{target-project}/locations/{zone}
        +     * 
        + * + * + * string zone = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The zone to set. + * @return This builder for chaining. + */ + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + zone_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The Compute Engine zone in which to create the disk. Should be of
        +     * the form: projects/{target-project}/locations/{zone}
        +     * 
        + * + * + * string zone = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The Compute Engine zone in which to create the disk. Should be of
        +     * the form: projects/{target-project}/locations/{zone}
        +     * 
        + * + * + * string zone = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + zone_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList replicaZones_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureReplicaZonesIsMutable() { + if (!replicaZones_.isModifiable()) { + replicaZones_ = new com.google.protobuf.LazyStringArrayList(replicaZones_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
        +     * Optional. Replication zones of the regional disk. Should be of the form:
        +     * projects/{target-project}/locations/{replica-zone}
        +     * Currently only one replica zone is supported.
        +     * 
        + * + * + * repeated string replica_zones = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the replicaZones. + */ + public com.google.protobuf.ProtocolStringList getReplicaZonesList() { + replicaZones_.makeImmutable(); + return replicaZones_; + } + + /** + * + * + *
        +     * Optional. Replication zones of the regional disk. Should be of the form:
        +     * projects/{target-project}/locations/{replica-zone}
        +     * Currently only one replica zone is supported.
        +     * 
        + * + * + * repeated string replica_zones = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of replicaZones. + */ + public int getReplicaZonesCount() { + return replicaZones_.size(); + } + + /** + * + * + *
        +     * Optional. Replication zones of the regional disk. Should be of the form:
        +     * projects/{target-project}/locations/{replica-zone}
        +     * Currently only one replica zone is supported.
        +     * 
        + * + * + * repeated string replica_zones = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The replicaZones at the given index. + */ + public java.lang.String getReplicaZones(int index) { + return replicaZones_.get(index); + } + + /** + * + * + *
        +     * Optional. Replication zones of the regional disk. Should be of the form:
        +     * projects/{target-project}/locations/{replica-zone}
        +     * Currently only one replica zone is supported.
        +     * 
        + * + * + * repeated string replica_zones = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the replicaZones at the given index. + */ + public com.google.protobuf.ByteString getReplicaZonesBytes(int index) { + return replicaZones_.getByteString(index); + } + + /** + * + * + *
        +     * Optional. Replication zones of the regional disk. Should be of the form:
        +     * projects/{target-project}/locations/{replica-zone}
        +     * Currently only one replica zone is supported.
        +     * 
        + * + * + * repeated string replica_zones = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The replicaZones to set. + * @return This builder for chaining. + */ + public Builder setReplicaZones(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureReplicaZonesIsMutable(); + replicaZones_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Replication zones of the regional disk. Should be of the form:
        +     * projects/{target-project}/locations/{replica-zone}
        +     * Currently only one replica zone is supported.
        +     * 
        + * + * + * repeated string replica_zones = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The replicaZones to add. + * @return This builder for chaining. + */ + public Builder addReplicaZones(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureReplicaZonesIsMutable(); + replicaZones_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Replication zones of the regional disk. Should be of the form:
        +     * projects/{target-project}/locations/{replica-zone}
        +     * Currently only one replica zone is supported.
        +     * 
        + * + * + * repeated string replica_zones = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param values The replicaZones to add. + * @return This builder for chaining. + */ + public Builder addAllReplicaZones(java.lang.Iterable values) { + ensureReplicaZonesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, replicaZones_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Replication zones of the regional disk. Should be of the form:
        +     * projects/{target-project}/locations/{replica-zone}
        +     * Currently only one replica zone is supported.
        +     * 
        + * + * + * repeated string replica_zones = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearReplicaZones() { + replicaZones_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Replication zones of the regional disk. Should be of the form:
        +     * projects/{target-project}/locations/{replica-zone}
        +     * Currently only one replica zone is supported.
        +     * 
        + * + * + * repeated string replica_zones = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the replicaZones to add. + * @return This builder for chaining. + */ + public Builder addReplicaZonesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureReplicaZonesIsMutable(); + replicaZones_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int diskType_ = 0; + + /** + * + * + *
        +     * Required. The disk type to use.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDiskType disk_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for diskType. + */ + @java.lang.Override + public int getDiskTypeValue() { + return diskType_; + } + + /** + * + * + *
        +     * Required. The disk type to use.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDiskType disk_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for diskType to set. + * @return This builder for chaining. + */ + public Builder setDiskTypeValue(int value) { + diskType_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The disk type to use.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDiskType disk_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The diskType. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ComputeEngineDiskType getDiskType() { + com.google.cloud.vmmigration.v1.ComputeEngineDiskType result = + com.google.cloud.vmmigration.v1.ComputeEngineDiskType.forNumber(diskType_); + return result == null + ? com.google.cloud.vmmigration.v1.ComputeEngineDiskType.UNRECOGNIZED + : result; + } + + /** + * + * + *
        +     * Required. The disk type to use.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDiskType disk_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The diskType to set. + * @return This builder for chaining. + */ + public Builder setDiskType(com.google.cloud.vmmigration.v1.ComputeEngineDiskType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + diskType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The disk type to use.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDiskType disk_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearDiskType() { + bitField0_ = (bitField0_ & ~0x00000008); + diskType_ = 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.vmmigration.v1.ComputeEngineDisk) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.ComputeEngineDisk) + private static final com.google.cloud.vmmigration.v1.ComputeEngineDisk DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.ComputeEngineDisk(); + } + + public static com.google.cloud.vmmigration.v1.ComputeEngineDisk getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ComputeEngineDisk parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.ComputeEngineDisk getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineDiskOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineDiskOrBuilder.java new file mode 100644 index 000000000000..5f9486836e4b --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineDiskOrBuilder.java @@ -0,0 +1,190 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface ComputeEngineDiskOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.ComputeEngineDisk) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Optional. Target Compute Engine Disk ID.
        +   * This is the resource ID segment of the Compute Engine Disk to create.
        +   * In the resource name compute/v1/projects/{project}/zones/{zone}/disks/disk1
        +   * "disk1" is the resource ID for the disk.
        +   * 
        + * + * string disk_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The diskId. + */ + java.lang.String getDiskId(); + + /** + * + * + *
        +   * Optional. Target Compute Engine Disk ID.
        +   * This is the resource ID segment of the Compute Engine Disk to create.
        +   * In the resource name compute/v1/projects/{project}/zones/{zone}/disks/disk1
        +   * "disk1" is the resource ID for the disk.
        +   * 
        + * + * string disk_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for diskId. + */ + com.google.protobuf.ByteString getDiskIdBytes(); + + /** + * + * + *
        +   * Required. The Compute Engine zone in which to create the disk. Should be of
        +   * the form: projects/{target-project}/locations/{zone}
        +   * 
        + * + * + * string zone = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The zone. + */ + java.lang.String getZone(); + + /** + * + * + *
        +   * Required. The Compute Engine zone in which to create the disk. Should be of
        +   * the form: projects/{target-project}/locations/{zone}
        +   * 
        + * + * + * string zone = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for zone. + */ + com.google.protobuf.ByteString getZoneBytes(); + + /** + * + * + *
        +   * Optional. Replication zones of the regional disk. Should be of the form:
        +   * projects/{target-project}/locations/{replica-zone}
        +   * Currently only one replica zone is supported.
        +   * 
        + * + * + * repeated string replica_zones = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the replicaZones. + */ + java.util.List getReplicaZonesList(); + + /** + * + * + *
        +   * Optional. Replication zones of the regional disk. Should be of the form:
        +   * projects/{target-project}/locations/{replica-zone}
        +   * Currently only one replica zone is supported.
        +   * 
        + * + * + * repeated string replica_zones = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of replicaZones. + */ + int getReplicaZonesCount(); + + /** + * + * + *
        +   * Optional. Replication zones of the regional disk. Should be of the form:
        +   * projects/{target-project}/locations/{replica-zone}
        +   * Currently only one replica zone is supported.
        +   * 
        + * + * + * repeated string replica_zones = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The replicaZones at the given index. + */ + java.lang.String getReplicaZones(int index); + + /** + * + * + *
        +   * Optional. Replication zones of the regional disk. Should be of the form:
        +   * projects/{target-project}/locations/{replica-zone}
        +   * Currently only one replica zone is supported.
        +   * 
        + * + * + * repeated string replica_zones = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the replicaZones at the given index. + */ + com.google.protobuf.ByteString getReplicaZonesBytes(int index); + + /** + * + * + *
        +   * Required. The disk type to use.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDiskType disk_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for diskType. + */ + int getDiskTypeValue(); + + /** + * + * + *
        +   * Required. The disk type to use.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDiskType disk_type = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The diskType. + */ + com.google.cloud.vmmigration.v1.ComputeEngineDiskType getDiskType(); +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineDiskType.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineDiskType.java index 9156a5c1c9f4..966f70c023ce 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineDiskType.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineDiskType.java @@ -70,6 +70,16 @@ public enum ComputeEngineDiskType implements com.google.protobuf.ProtocolMessage * COMPUTE_ENGINE_DISK_TYPE_BALANCED = 3; */ COMPUTE_ENGINE_DISK_TYPE_BALANCED(3), + /** + * + * + *
        +   * Hyperdisk balanced disk type.
        +   * 
        + * + * COMPUTE_ENGINE_DISK_TYPE_HYPERDISK_BALANCED = 4; + */ + COMPUTE_ENGINE_DISK_TYPE_HYPERDISK_BALANCED(4), UNRECOGNIZED(-1), ; @@ -118,6 +128,17 @@ public enum ComputeEngineDiskType implements com.google.protobuf.ProtocolMessage */ public static final int COMPUTE_ENGINE_DISK_TYPE_BALANCED_VALUE = 3; + /** + * + * + *
        +   * Hyperdisk balanced disk type.
        +   * 
        + * + * COMPUTE_ENGINE_DISK_TYPE_HYPERDISK_BALANCED = 4; + */ + public static final int COMPUTE_ENGINE_DISK_TYPE_HYPERDISK_BALANCED_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -150,6 +171,8 @@ public static ComputeEngineDiskType forNumber(int value) { return COMPUTE_ENGINE_DISK_TYPE_SSD; case 3: return COMPUTE_ENGINE_DISK_TYPE_BALANCED; + case 4: + return COMPUTE_ENGINE_DISK_TYPE_HYPERDISK_BALANCED; default: return null; } @@ -181,7 +204,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.vmmigration.v1.VmMigrationProto.getDescriptor().getEnumTypes().get(2); + return com.google.cloud.vmmigration.v1.VmMigrationProto.getDescriptor().getEnumTypes().get(0); } private static final ComputeEngineDiskType[] VALUES = values(); diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineDisksTargetDefaults.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineDisksTargetDefaults.java new file mode 100644 index 000000000000..9a18607ce56c --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineDisksTargetDefaults.java @@ -0,0 +1,2252 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * ComputeEngineDisksTargetDefaults is a collection of details for creating
        + * Persistent Disks in a target Compute Engine project.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults} + */ +public final class ComputeEngineDisksTargetDefaults extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults) + ComputeEngineDisksTargetDefaultsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ComputeEngineDisksTargetDefaults.newBuilder() to construct. + private ComputeEngineDisksTargetDefaults( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ComputeEngineDisksTargetDefaults() { + targetProject_ = ""; + disks_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ComputeEngineDisksTargetDefaults(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ComputeEngineDisksTargetDefaults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ComputeEngineDisksTargetDefaults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults.class, + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults.Builder.class); + } + + private int locationCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object location_; + + public enum LocationCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + ZONE(2), + LOCATION_NOT_SET(0); + private final int value; + + private LocationCase(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 LocationCase valueOf(int value) { + return forNumber(value); + } + + public static LocationCase forNumber(int value) { + switch (value) { + case 2: + return ZONE; + case 0: + return LOCATION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public LocationCase getLocationCase() { + return LocationCase.forNumber(locationCase_); + } + + private int vmTargetCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object vmTarget_; + + public enum VmTargetCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + DISKS_TARGET_DEFAULTS(5), + VM_TARGET_DEFAULTS(6), + VMTARGET_NOT_SET(0); + private final int value; + + private VmTargetCase(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 VmTargetCase valueOf(int value) { + return forNumber(value); + } + + public static VmTargetCase forNumber(int value) { + switch (value) { + case 5: + return DISKS_TARGET_DEFAULTS; + case 6: + return VM_TARGET_DEFAULTS; + case 0: + return VMTARGET_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public VmTargetCase getVmTargetCase() { + return VmTargetCase.forNumber(vmTargetCase_); + } + + public static final int ZONE_FIELD_NUMBER = 2; + + /** + * + * + *
        +   * The zone in which to create the Persistent Disks.
        +   * 
        + * + * string zone = 2; + * + * @return Whether the zone field is set. + */ + public boolean hasZone() { + return locationCase_ == 2; + } + + /** + * + * + *
        +   * The zone in which to create the Persistent Disks.
        +   * 
        + * + * string zone = 2; + * + * @return The zone. + */ + public java.lang.String getZone() { + java.lang.Object ref = ""; + if (locationCase_ == 2) { + ref = location_; + } + if (ref instanceof java.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 (locationCase_ == 2) { + location_ = s; + } + return s; + } + } + + /** + * + * + *
        +   * The zone in which to create the Persistent Disks.
        +   * 
        + * + * string zone = 2; + * + * @return The bytes for zone. + */ + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = ""; + if (locationCase_ == 2) { + ref = location_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (locationCase_ == 2) { + location_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISKS_TARGET_DEFAULTS_FIELD_NUMBER = 5; + + /** + * + * + *
        +   * Details of the disk only migration target.
        +   * 
        + * + * .google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults disks_target_defaults = 5; + * + * + * @return Whether the disksTargetDefaults field is set. + */ + @java.lang.Override + public boolean hasDisksTargetDefaults() { + return vmTargetCase_ == 5; + } + + /** + * + * + *
        +   * Details of the disk only migration target.
        +   * 
        + * + * .google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults disks_target_defaults = 5; + * + * + * @return The disksTargetDefaults. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults + getDisksTargetDefaults() { + if (vmTargetCase_ == 5) { + return (com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults) vmTarget_; + } + return com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults.getDefaultInstance(); + } + + /** + * + * + *
        +   * Details of the disk only migration target.
        +   * 
        + * + * .google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults disks_target_defaults = 5; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaultsOrBuilder + getDisksTargetDefaultsOrBuilder() { + if (vmTargetCase_ == 5) { + return (com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults) vmTarget_; + } + return com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults.getDefaultInstance(); + } + + public static final int VM_TARGET_DEFAULTS_FIELD_NUMBER = 6; + + /** + * + * + *
        +   * Details of the VM migration target.
        +   * 
        + * + * .google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults vm_target_defaults = 6; + * + * + * @return Whether the vmTargetDefaults field is set. + */ + @java.lang.Override + public boolean hasVmTargetDefaults() { + return vmTargetCase_ == 6; + } + + /** + * + * + *
        +   * Details of the VM migration target.
        +   * 
        + * + * .google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults vm_target_defaults = 6; + * + * + * @return The vmTargetDefaults. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults getVmTargetDefaults() { + if (vmTargetCase_ == 6) { + return (com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults) vmTarget_; + } + return com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults.getDefaultInstance(); + } + + /** + * + * + *
        +   * Details of the VM migration target.
        +   * 
        + * + * .google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults vm_target_defaults = 6; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaultsOrBuilder + getVmTargetDefaultsOrBuilder() { + if (vmTargetCase_ == 6) { + return (com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults) vmTarget_; + } + return com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults.getDefaultInstance(); + } + + public static final int TARGET_PROJECT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object targetProject_ = ""; + + /** + * + * + *
        +   * The full path of the resource of type TargetProject which represents the
        +   * Compute Engine project in which to create the Persistent Disks.
        +   * 
        + * + * string target_project = 1 [(.google.api.resource_reference) = { ... } + * + * @return The targetProject. + */ + @java.lang.Override + public java.lang.String getTargetProject() { + java.lang.Object ref = targetProject_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetProject_ = s; + return s; + } + } + + /** + * + * + *
        +   * The full path of the resource of type TargetProject which represents the
        +   * Compute Engine project in which to create the Persistent Disks.
        +   * 
        + * + * string target_project = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for targetProject. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetProjectBytes() { + java.lang.Object ref = targetProject_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetProject_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISKS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List disks_; + + /** + * + * + *
        +   * The details of each Persistent Disk to create.
        +   * 
        + * + * repeated .google.cloud.vmmigration.v1.PersistentDiskDefaults disks = 4; + */ + @java.lang.Override + public java.util.List getDisksList() { + return disks_; + } + + /** + * + * + *
        +   * The details of each Persistent Disk to create.
        +   * 
        + * + * repeated .google.cloud.vmmigration.v1.PersistentDiskDefaults disks = 4; + */ + @java.lang.Override + public java.util.List + getDisksOrBuilderList() { + return disks_; + } + + /** + * + * + *
        +   * The details of each Persistent Disk to create.
        +   * 
        + * + * repeated .google.cloud.vmmigration.v1.PersistentDiskDefaults disks = 4; + */ + @java.lang.Override + public int getDisksCount() { + return disks_.size(); + } + + /** + * + * + *
        +   * The details of each Persistent Disk to create.
        +   * 
        + * + * repeated .google.cloud.vmmigration.v1.PersistentDiskDefaults disks = 4; + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.PersistentDiskDefaults getDisks(int index) { + return disks_.get(index); + } + + /** + * + * + *
        +   * The details of each Persistent Disk to create.
        +   * 
        + * + * repeated .google.cloud.vmmigration.v1.PersistentDiskDefaults disks = 4; + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.PersistentDiskDefaultsOrBuilder getDisksOrBuilder( + int index) { + return disks_.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(targetProject_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, targetProject_); + } + if (locationCase_ == 2) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, location_); + } + for (int i = 0; i < disks_.size(); i++) { + output.writeMessage(4, disks_.get(i)); + } + if (vmTargetCase_ == 5) { + output.writeMessage( + 5, (com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults) vmTarget_); + } + if (vmTargetCase_ == 6) { + output.writeMessage( + 6, (com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults) vmTarget_); + } + 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(targetProject_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, targetProject_); + } + if (locationCase_ == 2) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, location_); + } + for (int i = 0; i < disks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, disks_.get(i)); + } + if (vmTargetCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults) vmTarget_); + } + if (vmTargetCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults) vmTarget_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.vmmigration.v1.ComputeEngineDisksTargetDefaults)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults other = + (com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults) obj; + + if (!getTargetProject().equals(other.getTargetProject())) return false; + if (!getDisksList().equals(other.getDisksList())) return false; + if (!getLocationCase().equals(other.getLocationCase())) return false; + switch (locationCase_) { + case 2: + if (!getZone().equals(other.getZone())) return false; + break; + case 0: + default: + } + if (!getVmTargetCase().equals(other.getVmTargetCase())) return false; + switch (vmTargetCase_) { + case 5: + if (!getDisksTargetDefaults().equals(other.getDisksTargetDefaults())) return false; + break; + case 6: + if (!getVmTargetDefaults().equals(other.getVmTargetDefaults())) 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) + TARGET_PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getTargetProject().hashCode(); + if (getDisksCount() > 0) { + hash = (37 * hash) + DISKS_FIELD_NUMBER; + hash = (53 * hash) + getDisksList().hashCode(); + } + switch (locationCase_) { + case 2: + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + break; + case 0: + default: + } + switch (vmTargetCase_) { + case 5: + hash = (37 * hash) + DISKS_TARGET_DEFAULTS_FIELD_NUMBER; + hash = (53 * hash) + getDisksTargetDefaults().hashCode(); + break; + case 6: + hash = (37 * hash) + VM_TARGET_DEFAULTS_FIELD_NUMBER; + hash = (53 * hash) + getVmTargetDefaults().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults 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.vmmigration.v1.ComputeEngineDisksTargetDefaults parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults parseFrom( + 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.vmmigration.v1.ComputeEngineDisksTargetDefaults parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults 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.vmmigration.v1.ComputeEngineDisksTargetDefaults parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults 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.vmmigration.v1.ComputeEngineDisksTargetDefaults parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults 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.vmmigration.v1.ComputeEngineDisksTargetDefaults prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
        +   * ComputeEngineDisksTargetDefaults is a collection of details for creating
        +   * Persistent Disks in a target Compute Engine project.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults) + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaultsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ComputeEngineDisksTargetDefaults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ComputeEngineDisksTargetDefaults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults.class, + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (disksTargetDefaultsBuilder_ != null) { + disksTargetDefaultsBuilder_.clear(); + } + if (vmTargetDefaultsBuilder_ != null) { + vmTargetDefaultsBuilder_.clear(); + } + targetProject_ = ""; + if (disksBuilder_ == null) { + disks_ = java.util.Collections.emptyList(); + } else { + disks_ = null; + disksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + locationCase_ = 0; + location_ = null; + vmTargetCase_ = 0; + vmTarget_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ComputeEngineDisksTargetDefaults_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults + getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults build() { + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults buildPartial() { + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults result = + new com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults result) { + if (disksBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + disks_ = java.util.Collections.unmodifiableList(disks_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.disks_ = disks_; + } else { + result.disks_ = disksBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.targetProject_ = targetProject_; + } + } + + private void buildPartialOneofs( + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults result) { + result.locationCase_ = locationCase_; + result.location_ = this.location_; + result.vmTargetCase_ = vmTargetCase_; + result.vmTarget_ = this.vmTarget_; + if (vmTargetCase_ == 5 && disksTargetDefaultsBuilder_ != null) { + result.vmTarget_ = disksTargetDefaultsBuilder_.build(); + } + if (vmTargetCase_ == 6 && vmTargetDefaultsBuilder_ != null) { + result.vmTarget_ = vmTargetDefaultsBuilder_.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.vmmigration.v1.ComputeEngineDisksTargetDefaults) { + return mergeFrom((com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults other) { + if (other + == com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults.getDefaultInstance()) + return this; + if (!other.getTargetProject().isEmpty()) { + targetProject_ = other.targetProject_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (disksBuilder_ == null) { + if (!other.disks_.isEmpty()) { + if (disks_.isEmpty()) { + disks_ = other.disks_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureDisksIsMutable(); + disks_.addAll(other.disks_); + } + onChanged(); + } + } else { + if (!other.disks_.isEmpty()) { + if (disksBuilder_.isEmpty()) { + disksBuilder_.dispose(); + disksBuilder_ = null; + disks_ = other.disks_; + bitField0_ = (bitField0_ & ~0x00000010); + disksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDisksFieldBuilder() + : null; + } else { + disksBuilder_.addAllMessages(other.disks_); + } + } + } + switch (other.getLocationCase()) { + case ZONE: + { + locationCase_ = 2; + location_ = other.location_; + onChanged(); + break; + } + case LOCATION_NOT_SET: + { + break; + } + } + switch (other.getVmTargetCase()) { + case DISKS_TARGET_DEFAULTS: + { + mergeDisksTargetDefaults(other.getDisksTargetDefaults()); + break; + } + case VM_TARGET_DEFAULTS: + { + mergeVmTargetDefaults(other.getVmTargetDefaults()); + break; + } + case VMTARGET_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: + { + targetProject_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + locationCase_ = 2; + location_ = s; + break; + } // case 18 + case 34: + { + com.google.cloud.vmmigration.v1.PersistentDiskDefaults m = + input.readMessage( + com.google.cloud.vmmigration.v1.PersistentDiskDefaults.parser(), + extensionRegistry); + if (disksBuilder_ == null) { + ensureDisksIsMutable(); + disks_.add(m); + } else { + disksBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: + { + input.readMessage( + getDisksTargetDefaultsFieldBuilder().getBuilder(), extensionRegistry); + vmTargetCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage( + getVmTargetDefaultsFieldBuilder().getBuilder(), extensionRegistry); + vmTargetCase_ = 6; + 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 locationCase_ = 0; + private java.lang.Object location_; + + public LocationCase getLocationCase() { + return LocationCase.forNumber(locationCase_); + } + + public Builder clearLocation() { + locationCase_ = 0; + location_ = null; + onChanged(); + return this; + } + + private int vmTargetCase_ = 0; + private java.lang.Object vmTarget_; + + public VmTargetCase getVmTargetCase() { + return VmTargetCase.forNumber(vmTargetCase_); + } + + public Builder clearVmTarget() { + vmTargetCase_ = 0; + vmTarget_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
        +     * The zone in which to create the Persistent Disks.
        +     * 
        + * + * string zone = 2; + * + * @return Whether the zone field is set. + */ + @java.lang.Override + public boolean hasZone() { + return locationCase_ == 2; + } + + /** + * + * + *
        +     * The zone in which to create the Persistent Disks.
        +     * 
        + * + * string zone = 2; + * + * @return The zone. + */ + @java.lang.Override + public java.lang.String getZone() { + java.lang.Object ref = ""; + if (locationCase_ == 2) { + ref = location_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (locationCase_ == 2) { + location_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * The zone in which to create the Persistent Disks.
        +     * 
        + * + * string zone = 2; + * + * @return The bytes for zone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = ""; + if (locationCase_ == 2) { + ref = location_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (locationCase_ == 2) { + location_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * The zone in which to create the Persistent Disks.
        +     * 
        + * + * string zone = 2; + * + * @param value The zone to set. + * @return This builder for chaining. + */ + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + locationCase_ = 2; + location_ = value; + onChanged(); + return this; + } + + /** + * + * + *
        +     * The zone in which to create the Persistent Disks.
        +     * 
        + * + * string zone = 2; + * + * @return This builder for chaining. + */ + public Builder clearZone() { + if (locationCase_ == 2) { + locationCase_ = 0; + location_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * The zone in which to create the Persistent Disks.
        +     * 
        + * + * string zone = 2; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + locationCase_ = 2; + location_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults, + com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults.Builder, + com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaultsOrBuilder> + disksTargetDefaultsBuilder_; + + /** + * + * + *
        +     * Details of the disk only migration target.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults disks_target_defaults = 5; + * + * + * @return Whether the disksTargetDefaults field is set. + */ + @java.lang.Override + public boolean hasDisksTargetDefaults() { + return vmTargetCase_ == 5; + } + + /** + * + * + *
        +     * Details of the disk only migration target.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults disks_target_defaults = 5; + * + * + * @return The disksTargetDefaults. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults + getDisksTargetDefaults() { + if (disksTargetDefaultsBuilder_ == null) { + if (vmTargetCase_ == 5) { + return (com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults) vmTarget_; + } + return com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults + .getDefaultInstance(); + } else { + if (vmTargetCase_ == 5) { + return disksTargetDefaultsBuilder_.getMessage(); + } + return com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults + .getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Details of the disk only migration target.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults disks_target_defaults = 5; + * + */ + public Builder setDisksTargetDefaults( + com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults value) { + if (disksTargetDefaultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + vmTarget_ = value; + onChanged(); + } else { + disksTargetDefaultsBuilder_.setMessage(value); + } + vmTargetCase_ = 5; + return this; + } + + /** + * + * + *
        +     * Details of the disk only migration target.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults disks_target_defaults = 5; + * + */ + public Builder setDisksTargetDefaults( + com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults.Builder builderForValue) { + if (disksTargetDefaultsBuilder_ == null) { + vmTarget_ = builderForValue.build(); + onChanged(); + } else { + disksTargetDefaultsBuilder_.setMessage(builderForValue.build()); + } + vmTargetCase_ = 5; + return this; + } + + /** + * + * + *
        +     * Details of the disk only migration target.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults disks_target_defaults = 5; + * + */ + public Builder mergeDisksTargetDefaults( + com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults value) { + if (disksTargetDefaultsBuilder_ == null) { + if (vmTargetCase_ == 5 + && vmTarget_ + != com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults + .getDefaultInstance()) { + vmTarget_ = + com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults.newBuilder( + (com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults) vmTarget_) + .mergeFrom(value) + .buildPartial(); + } else { + vmTarget_ = value; + } + onChanged(); + } else { + if (vmTargetCase_ == 5) { + disksTargetDefaultsBuilder_.mergeFrom(value); + } else { + disksTargetDefaultsBuilder_.setMessage(value); + } + } + vmTargetCase_ = 5; + return this; + } + + /** + * + * + *
        +     * Details of the disk only migration target.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults disks_target_defaults = 5; + * + */ + public Builder clearDisksTargetDefaults() { + if (disksTargetDefaultsBuilder_ == null) { + if (vmTargetCase_ == 5) { + vmTargetCase_ = 0; + vmTarget_ = null; + onChanged(); + } + } else { + if (vmTargetCase_ == 5) { + vmTargetCase_ = 0; + vmTarget_ = null; + } + disksTargetDefaultsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Details of the disk only migration target.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults disks_target_defaults = 5; + * + */ + public com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults.Builder + getDisksTargetDefaultsBuilder() { + return getDisksTargetDefaultsFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Details of the disk only migration target.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults disks_target_defaults = 5; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaultsOrBuilder + getDisksTargetDefaultsOrBuilder() { + if ((vmTargetCase_ == 5) && (disksTargetDefaultsBuilder_ != null)) { + return disksTargetDefaultsBuilder_.getMessageOrBuilder(); + } else { + if (vmTargetCase_ == 5) { + return (com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults) vmTarget_; + } + return com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults + .getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Details of the disk only migration target.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults disks_target_defaults = 5; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults, + com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults.Builder, + com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaultsOrBuilder> + getDisksTargetDefaultsFieldBuilder() { + if (disksTargetDefaultsBuilder_ == null) { + if (!(vmTargetCase_ == 5)) { + vmTarget_ = + com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults + .getDefaultInstance(); + } + disksTargetDefaultsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults, + com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults.Builder, + com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaultsOrBuilder>( + (com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults) vmTarget_, + getParentForChildren(), + isClean()); + vmTarget_ = null; + } + vmTargetCase_ = 5; + onChanged(); + return disksTargetDefaultsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults, + com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults.Builder, + com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaultsOrBuilder> + vmTargetDefaultsBuilder_; + + /** + * + * + *
        +     * Details of the VM migration target.
        +     * 
        + * + * .google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults vm_target_defaults = 6; + * + * + * @return Whether the vmTargetDefaults field is set. + */ + @java.lang.Override + public boolean hasVmTargetDefaults() { + return vmTargetCase_ == 6; + } + + /** + * + * + *
        +     * Details of the VM migration target.
        +     * 
        + * + * .google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults vm_target_defaults = 6; + * + * + * @return The vmTargetDefaults. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults getVmTargetDefaults() { + if (vmTargetDefaultsBuilder_ == null) { + if (vmTargetCase_ == 6) { + return (com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults) vmTarget_; + } + return com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults.getDefaultInstance(); + } else { + if (vmTargetCase_ == 6) { + return vmTargetDefaultsBuilder_.getMessage(); + } + return com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Details of the VM migration target.
        +     * 
        + * + * .google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults vm_target_defaults = 6; + * + */ + public Builder setVmTargetDefaults( + com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults value) { + if (vmTargetDefaultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + vmTarget_ = value; + onChanged(); + } else { + vmTargetDefaultsBuilder_.setMessage(value); + } + vmTargetCase_ = 6; + return this; + } + + /** + * + * + *
        +     * Details of the VM migration target.
        +     * 
        + * + * .google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults vm_target_defaults = 6; + * + */ + public Builder setVmTargetDefaults( + com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults.Builder builderForValue) { + if (vmTargetDefaultsBuilder_ == null) { + vmTarget_ = builderForValue.build(); + onChanged(); + } else { + vmTargetDefaultsBuilder_.setMessage(builderForValue.build()); + } + vmTargetCase_ = 6; + return this; + } + + /** + * + * + *
        +     * Details of the VM migration target.
        +     * 
        + * + * .google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults vm_target_defaults = 6; + * + */ + public Builder mergeVmTargetDefaults( + com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults value) { + if (vmTargetDefaultsBuilder_ == null) { + if (vmTargetCase_ == 6 + && vmTarget_ + != com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults + .getDefaultInstance()) { + vmTarget_ = + com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults.newBuilder( + (com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults) vmTarget_) + .mergeFrom(value) + .buildPartial(); + } else { + vmTarget_ = value; + } + onChanged(); + } else { + if (vmTargetCase_ == 6) { + vmTargetDefaultsBuilder_.mergeFrom(value); + } else { + vmTargetDefaultsBuilder_.setMessage(value); + } + } + vmTargetCase_ = 6; + return this; + } + + /** + * + * + *
        +     * Details of the VM migration target.
        +     * 
        + * + * .google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults vm_target_defaults = 6; + * + */ + public Builder clearVmTargetDefaults() { + if (vmTargetDefaultsBuilder_ == null) { + if (vmTargetCase_ == 6) { + vmTargetCase_ = 0; + vmTarget_ = null; + onChanged(); + } + } else { + if (vmTargetCase_ == 6) { + vmTargetCase_ = 0; + vmTarget_ = null; + } + vmTargetDefaultsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Details of the VM migration target.
        +     * 
        + * + * .google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults vm_target_defaults = 6; + * + */ + public com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults.Builder + getVmTargetDefaultsBuilder() { + return getVmTargetDefaultsFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Details of the VM migration target.
        +     * 
        + * + * .google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults vm_target_defaults = 6; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaultsOrBuilder + getVmTargetDefaultsOrBuilder() { + if ((vmTargetCase_ == 6) && (vmTargetDefaultsBuilder_ != null)) { + return vmTargetDefaultsBuilder_.getMessageOrBuilder(); + } else { + if (vmTargetCase_ == 6) { + return (com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults) vmTarget_; + } + return com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Details of the VM migration target.
        +     * 
        + * + * .google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults vm_target_defaults = 6; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults, + com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults.Builder, + com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaultsOrBuilder> + getVmTargetDefaultsFieldBuilder() { + if (vmTargetDefaultsBuilder_ == null) { + if (!(vmTargetCase_ == 6)) { + vmTarget_ = + com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults.getDefaultInstance(); + } + vmTargetDefaultsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults, + com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults.Builder, + com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaultsOrBuilder>( + (com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults) vmTarget_, + getParentForChildren(), + isClean()); + vmTarget_ = null; + } + vmTargetCase_ = 6; + onChanged(); + return vmTargetDefaultsBuilder_; + } + + private java.lang.Object targetProject_ = ""; + + /** + * + * + *
        +     * The full path of the resource of type TargetProject which represents the
        +     * Compute Engine project in which to create the Persistent Disks.
        +     * 
        + * + * string target_project = 1 [(.google.api.resource_reference) = { ... } + * + * @return The targetProject. + */ + public java.lang.String getTargetProject() { + java.lang.Object ref = targetProject_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetProject_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * The full path of the resource of type TargetProject which represents the
        +     * Compute Engine project in which to create the Persistent Disks.
        +     * 
        + * + * string target_project = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for targetProject. + */ + public com.google.protobuf.ByteString getTargetProjectBytes() { + java.lang.Object ref = targetProject_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetProject_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * The full path of the resource of type TargetProject which represents the
        +     * Compute Engine project in which to create the Persistent Disks.
        +     * 
        + * + * string target_project = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The targetProject to set. + * @return This builder for chaining. + */ + public Builder setTargetProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + targetProject_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
        +     * The full path of the resource of type TargetProject which represents the
        +     * Compute Engine project in which to create the Persistent Disks.
        +     * 
        + * + * string target_project = 1 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearTargetProject() { + targetProject_ = getDefaultInstance().getTargetProject(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
        +     * The full path of the resource of type TargetProject which represents the
        +     * Compute Engine project in which to create the Persistent Disks.
        +     * 
        + * + * string target_project = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for targetProject to set. + * @return This builder for chaining. + */ + public Builder setTargetProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetProject_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.util.List disks_ = + java.util.Collections.emptyList(); + + private void ensureDisksIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + disks_ = + new java.util.ArrayList(disks_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.PersistentDiskDefaults, + com.google.cloud.vmmigration.v1.PersistentDiskDefaults.Builder, + com.google.cloud.vmmigration.v1.PersistentDiskDefaultsOrBuilder> + disksBuilder_; + + /** + * + * + *
        +     * The details of each Persistent Disk to create.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.PersistentDiskDefaults disks = 4; + */ + public java.util.List getDisksList() { + if (disksBuilder_ == null) { + return java.util.Collections.unmodifiableList(disks_); + } else { + return disksBuilder_.getMessageList(); + } + } + + /** + * + * + *
        +     * The details of each Persistent Disk to create.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.PersistentDiskDefaults disks = 4; + */ + public int getDisksCount() { + if (disksBuilder_ == null) { + return disks_.size(); + } else { + return disksBuilder_.getCount(); + } + } + + /** + * + * + *
        +     * The details of each Persistent Disk to create.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.PersistentDiskDefaults disks = 4; + */ + public com.google.cloud.vmmigration.v1.PersistentDiskDefaults getDisks(int index) { + if (disksBuilder_ == null) { + return disks_.get(index); + } else { + return disksBuilder_.getMessage(index); + } + } + + /** + * + * + *
        +     * The details of each Persistent Disk to create.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.PersistentDiskDefaults disks = 4; + */ + public Builder setDisks( + int index, com.google.cloud.vmmigration.v1.PersistentDiskDefaults value) { + if (disksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDisksIsMutable(); + disks_.set(index, value); + onChanged(); + } else { + disksBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * The details of each Persistent Disk to create.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.PersistentDiskDefaults disks = 4; + */ + public Builder setDisks( + int index, com.google.cloud.vmmigration.v1.PersistentDiskDefaults.Builder builderForValue) { + if (disksBuilder_ == null) { + ensureDisksIsMutable(); + disks_.set(index, builderForValue.build()); + onChanged(); + } else { + disksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * The details of each Persistent Disk to create.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.PersistentDiskDefaults disks = 4; + */ + public Builder addDisks(com.google.cloud.vmmigration.v1.PersistentDiskDefaults value) { + if (disksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDisksIsMutable(); + disks_.add(value); + onChanged(); + } else { + disksBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
        +     * The details of each Persistent Disk to create.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.PersistentDiskDefaults disks = 4; + */ + public Builder addDisks( + int index, com.google.cloud.vmmigration.v1.PersistentDiskDefaults value) { + if (disksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDisksIsMutable(); + disks_.add(index, value); + onChanged(); + } else { + disksBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * The details of each Persistent Disk to create.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.PersistentDiskDefaults disks = 4; + */ + public Builder addDisks( + com.google.cloud.vmmigration.v1.PersistentDiskDefaults.Builder builderForValue) { + if (disksBuilder_ == null) { + ensureDisksIsMutable(); + disks_.add(builderForValue.build()); + onChanged(); + } else { + disksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * The details of each Persistent Disk to create.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.PersistentDiskDefaults disks = 4; + */ + public Builder addDisks( + int index, com.google.cloud.vmmigration.v1.PersistentDiskDefaults.Builder builderForValue) { + if (disksBuilder_ == null) { + ensureDisksIsMutable(); + disks_.add(index, builderForValue.build()); + onChanged(); + } else { + disksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * The details of each Persistent Disk to create.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.PersistentDiskDefaults disks = 4; + */ + public Builder addAllDisks( + java.lang.Iterable + values) { + if (disksBuilder_ == null) { + ensureDisksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, disks_); + onChanged(); + } else { + disksBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
        +     * The details of each Persistent Disk to create.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.PersistentDiskDefaults disks = 4; + */ + public Builder clearDisks() { + if (disksBuilder_ == null) { + disks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + disksBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * The details of each Persistent Disk to create.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.PersistentDiskDefaults disks = 4; + */ + public Builder removeDisks(int index) { + if (disksBuilder_ == null) { + ensureDisksIsMutable(); + disks_.remove(index); + onChanged(); + } else { + disksBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
        +     * The details of each Persistent Disk to create.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.PersistentDiskDefaults disks = 4; + */ + public com.google.cloud.vmmigration.v1.PersistentDiskDefaults.Builder getDisksBuilder( + int index) { + return getDisksFieldBuilder().getBuilder(index); + } + + /** + * + * + *
        +     * The details of each Persistent Disk to create.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.PersistentDiskDefaults disks = 4; + */ + public com.google.cloud.vmmigration.v1.PersistentDiskDefaultsOrBuilder getDisksOrBuilder( + int index) { + if (disksBuilder_ == null) { + return disks_.get(index); + } else { + return disksBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
        +     * The details of each Persistent Disk to create.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.PersistentDiskDefaults disks = 4; + */ + public java.util.List + getDisksOrBuilderList() { + if (disksBuilder_ != null) { + return disksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(disks_); + } + } + + /** + * + * + *
        +     * The details of each Persistent Disk to create.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.PersistentDiskDefaults disks = 4; + */ + public com.google.cloud.vmmigration.v1.PersistentDiskDefaults.Builder addDisksBuilder() { + return getDisksFieldBuilder() + .addBuilder(com.google.cloud.vmmigration.v1.PersistentDiskDefaults.getDefaultInstance()); + } + + /** + * + * + *
        +     * The details of each Persistent Disk to create.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.PersistentDiskDefaults disks = 4; + */ + public com.google.cloud.vmmigration.v1.PersistentDiskDefaults.Builder addDisksBuilder( + int index) { + return getDisksFieldBuilder() + .addBuilder( + index, com.google.cloud.vmmigration.v1.PersistentDiskDefaults.getDefaultInstance()); + } + + /** + * + * + *
        +     * The details of each Persistent Disk to create.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.PersistentDiskDefaults disks = 4; + */ + public java.util.List + getDisksBuilderList() { + return getDisksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.PersistentDiskDefaults, + com.google.cloud.vmmigration.v1.PersistentDiskDefaults.Builder, + com.google.cloud.vmmigration.v1.PersistentDiskDefaultsOrBuilder> + getDisksFieldBuilder() { + if (disksBuilder_ == null) { + disksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.PersistentDiskDefaults, + com.google.cloud.vmmigration.v1.PersistentDiskDefaults.Builder, + com.google.cloud.vmmigration.v1.PersistentDiskDefaultsOrBuilder>( + disks_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + disks_ = null; + } + return disksBuilder_; + } + + @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.vmmigration.v1.ComputeEngineDisksTargetDefaults) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults) + private static final com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults(); + } + + public static com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ComputeEngineDisksTargetDefaults parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.ComputeEngineDisksTargetDefaults + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineDisksTargetDefaultsOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineDisksTargetDefaultsOrBuilder.java new file mode 100644 index 000000000000..28d66d267df8 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineDisksTargetDefaultsOrBuilder.java @@ -0,0 +1,235 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface ComputeEngineDisksTargetDefaultsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * The zone in which to create the Persistent Disks.
        +   * 
        + * + * string zone = 2; + * + * @return Whether the zone field is set. + */ + boolean hasZone(); + + /** + * + * + *
        +   * The zone in which to create the Persistent Disks.
        +   * 
        + * + * string zone = 2; + * + * @return The zone. + */ + java.lang.String getZone(); + + /** + * + * + *
        +   * The zone in which to create the Persistent Disks.
        +   * 
        + * + * string zone = 2; + * + * @return The bytes for zone. + */ + com.google.protobuf.ByteString getZoneBytes(); + + /** + * + * + *
        +   * Details of the disk only migration target.
        +   * 
        + * + * .google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults disks_target_defaults = 5; + * + * + * @return Whether the disksTargetDefaults field is set. + */ + boolean hasDisksTargetDefaults(); + + /** + * + * + *
        +   * Details of the disk only migration target.
        +   * 
        + * + * .google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults disks_target_defaults = 5; + * + * + * @return The disksTargetDefaults. + */ + com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults getDisksTargetDefaults(); + + /** + * + * + *
        +   * Details of the disk only migration target.
        +   * 
        + * + * .google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults disks_target_defaults = 5; + * + */ + com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaultsOrBuilder + getDisksTargetDefaultsOrBuilder(); + + /** + * + * + *
        +   * Details of the VM migration target.
        +   * 
        + * + * .google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults vm_target_defaults = 6; + * + * + * @return Whether the vmTargetDefaults field is set. + */ + boolean hasVmTargetDefaults(); + + /** + * + * + *
        +   * Details of the VM migration target.
        +   * 
        + * + * .google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults vm_target_defaults = 6; + * + * + * @return The vmTargetDefaults. + */ + com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults getVmTargetDefaults(); + + /** + * + * + *
        +   * Details of the VM migration target.
        +   * 
        + * + * .google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults vm_target_defaults = 6; + * + */ + com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaultsOrBuilder + getVmTargetDefaultsOrBuilder(); + + /** + * + * + *
        +   * The full path of the resource of type TargetProject which represents the
        +   * Compute Engine project in which to create the Persistent Disks.
        +   * 
        + * + * string target_project = 1 [(.google.api.resource_reference) = { ... } + * + * @return The targetProject. + */ + java.lang.String getTargetProject(); + + /** + * + * + *
        +   * The full path of the resource of type TargetProject which represents the
        +   * Compute Engine project in which to create the Persistent Disks.
        +   * 
        + * + * string target_project = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for targetProject. + */ + com.google.protobuf.ByteString getTargetProjectBytes(); + + /** + * + * + *
        +   * The details of each Persistent Disk to create.
        +   * 
        + * + * repeated .google.cloud.vmmigration.v1.PersistentDiskDefaults disks = 4; + */ + java.util.List getDisksList(); + + /** + * + * + *
        +   * The details of each Persistent Disk to create.
        +   * 
        + * + * repeated .google.cloud.vmmigration.v1.PersistentDiskDefaults disks = 4; + */ + com.google.cloud.vmmigration.v1.PersistentDiskDefaults getDisks(int index); + + /** + * + * + *
        +   * The details of each Persistent Disk to create.
        +   * 
        + * + * repeated .google.cloud.vmmigration.v1.PersistentDiskDefaults disks = 4; + */ + int getDisksCount(); + + /** + * + * + *
        +   * The details of each Persistent Disk to create.
        +   * 
        + * + * repeated .google.cloud.vmmigration.v1.PersistentDiskDefaults disks = 4; + */ + java.util.List + getDisksOrBuilderList(); + + /** + * + * + *
        +   * The details of each Persistent Disk to create.
        +   * 
        + * + * repeated .google.cloud.vmmigration.v1.PersistentDiskDefaults disks = 4; + */ + com.google.cloud.vmmigration.v1.PersistentDiskDefaultsOrBuilder getDisksOrBuilder(int index); + + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults.LocationCase getLocationCase(); + + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults.VmTargetCase getVmTargetCase(); +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineDisksTargetDetails.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineDisksTargetDetails.java new file mode 100644 index 000000000000..5de3cbc61720 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineDisksTargetDetails.java @@ -0,0 +1,1712 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * ComputeEngineDisksTargetDetails is a collection of created Persistent Disks
        + * details.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails} + */ +public final class ComputeEngineDisksTargetDetails extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails) + ComputeEngineDisksTargetDetailsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ComputeEngineDisksTargetDetails.newBuilder() to construct. + private ComputeEngineDisksTargetDetails( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ComputeEngineDisksTargetDetails() { + disks_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ComputeEngineDisksTargetDetails(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ComputeEngineDisksTargetDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ComputeEngineDisksTargetDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails.class, + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails.Builder.class); + } + + private int vmTargetCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object vmTarget_; + + public enum VmTargetCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + DISKS_TARGET_DETAILS(5), + VM_TARGET_DETAILS(6), + VMTARGET_NOT_SET(0); + private final int value; + + private VmTargetCase(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 VmTargetCase valueOf(int value) { + return forNumber(value); + } + + public static VmTargetCase forNumber(int value) { + switch (value) { + case 5: + return DISKS_TARGET_DETAILS; + case 6: + return VM_TARGET_DETAILS; + case 0: + return VMTARGET_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public VmTargetCase getVmTargetCase() { + return VmTargetCase.forNumber(vmTargetCase_); + } + + public static final int DISKS_TARGET_DETAILS_FIELD_NUMBER = 5; + + /** + * + * + *
        +   * Details of the disks-only migration target.
        +   * 
        + * + * .google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails disks_target_details = 5; + * + * + * @return Whether the disksTargetDetails field is set. + */ + @java.lang.Override + public boolean hasDisksTargetDetails() { + return vmTargetCase_ == 5; + } + + /** + * + * + *
        +   * Details of the disks-only migration target.
        +   * 
        + * + * .google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails disks_target_details = 5; + * + * + * @return The disksTargetDetails. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails getDisksTargetDetails() { + if (vmTargetCase_ == 5) { + return (com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails) vmTarget_; + } + return com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails.getDefaultInstance(); + } + + /** + * + * + *
        +   * Details of the disks-only migration target.
        +   * 
        + * + * .google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails disks_target_details = 5; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetailsOrBuilder + getDisksTargetDetailsOrBuilder() { + if (vmTargetCase_ == 5) { + return (com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails) vmTarget_; + } + return com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails.getDefaultInstance(); + } + + public static final int VM_TARGET_DETAILS_FIELD_NUMBER = 6; + + /** + * + * + *
        +   * Details for the VM the migrated data disks are attached to.
        +   * 
        + * + * .google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails vm_target_details = 6; + * + * @return Whether the vmTargetDetails field is set. + */ + @java.lang.Override + public boolean hasVmTargetDetails() { + return vmTargetCase_ == 6; + } + + /** + * + * + *
        +   * Details for the VM the migrated data disks are attached to.
        +   * 
        + * + * .google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails vm_target_details = 6; + * + * @return The vmTargetDetails. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails getVmTargetDetails() { + if (vmTargetCase_ == 6) { + return (com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails) vmTarget_; + } + return com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails.getDefaultInstance(); + } + + /** + * + * + *
        +   * Details for the VM the migrated data disks are attached to.
        +   * 
        + * + * .google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails vm_target_details = 6; + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetailsOrBuilder + getVmTargetDetailsOrBuilder() { + if (vmTargetCase_ == 6) { + return (com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails) vmTarget_; + } + return com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails.getDefaultInstance(); + } + + public static final int DISKS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List disks_; + + /** + * + * + *
        +   * The details of each created Persistent Disk.
        +   * 
        + * + * repeated .google.cloud.vmmigration.v1.PersistentDisk disks = 1; + */ + @java.lang.Override + public java.util.List getDisksList() { + return disks_; + } + + /** + * + * + *
        +   * The details of each created Persistent Disk.
        +   * 
        + * + * repeated .google.cloud.vmmigration.v1.PersistentDisk disks = 1; + */ + @java.lang.Override + public java.util.List + getDisksOrBuilderList() { + return disks_; + } + + /** + * + * + *
        +   * The details of each created Persistent Disk.
        +   * 
        + * + * repeated .google.cloud.vmmigration.v1.PersistentDisk disks = 1; + */ + @java.lang.Override + public int getDisksCount() { + return disks_.size(); + } + + /** + * + * + *
        +   * The details of each created Persistent Disk.
        +   * 
        + * + * repeated .google.cloud.vmmigration.v1.PersistentDisk disks = 1; + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.PersistentDisk getDisks(int index) { + return disks_.get(index); + } + + /** + * + * + *
        +   * The details of each created Persistent Disk.
        +   * 
        + * + * repeated .google.cloud.vmmigration.v1.PersistentDisk disks = 1; + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.PersistentDiskOrBuilder getDisksOrBuilder(int index) { + return disks_.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 < disks_.size(); i++) { + output.writeMessage(1, disks_.get(i)); + } + if (vmTargetCase_ == 5) { + output.writeMessage( + 5, (com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails) vmTarget_); + } + if (vmTargetCase_ == 6) { + output.writeMessage( + 6, (com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails) vmTarget_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < disks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, disks_.get(i)); + } + if (vmTargetCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails) vmTarget_); + } + if (vmTargetCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails) vmTarget_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.vmmigration.v1.ComputeEngineDisksTargetDetails)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails other = + (com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails) obj; + + if (!getDisksList().equals(other.getDisksList())) return false; + if (!getVmTargetCase().equals(other.getVmTargetCase())) return false; + switch (vmTargetCase_) { + case 5: + if (!getDisksTargetDetails().equals(other.getDisksTargetDetails())) return false; + break; + case 6: + if (!getVmTargetDetails().equals(other.getVmTargetDetails())) 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(); + if (getDisksCount() > 0) { + hash = (37 * hash) + DISKS_FIELD_NUMBER; + hash = (53 * hash) + getDisksList().hashCode(); + } + switch (vmTargetCase_) { + case 5: + hash = (37 * hash) + DISKS_TARGET_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getDisksTargetDetails().hashCode(); + break; + case 6: + hash = (37 * hash) + VM_TARGET_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getVmTargetDetails().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails 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.vmmigration.v1.ComputeEngineDisksTargetDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails parseFrom( + 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.vmmigration.v1.ComputeEngineDisksTargetDetails parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails 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.vmmigration.v1.ComputeEngineDisksTargetDetails parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails 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.vmmigration.v1.ComputeEngineDisksTargetDetails parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails 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.vmmigration.v1.ComputeEngineDisksTargetDetails prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
        +   * ComputeEngineDisksTargetDetails is a collection of created Persistent Disks
        +   * details.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails) + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ComputeEngineDisksTargetDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ComputeEngineDisksTargetDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails.class, + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (disksTargetDetailsBuilder_ != null) { + disksTargetDetailsBuilder_.clear(); + } + if (vmTargetDetailsBuilder_ != null) { + vmTargetDetailsBuilder_.clear(); + } + if (disksBuilder_ == null) { + disks_ = java.util.Collections.emptyList(); + } else { + disks_ = null; + disksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + vmTargetCase_ = 0; + vmTarget_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ComputeEngineDisksTargetDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails + getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails build() { + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails buildPartial() { + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails result = + new com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails result) { + if (disksBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + disks_ = java.util.Collections.unmodifiableList(disks_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.disks_ = disks_; + } else { + result.disks_ = disksBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails result) { + result.vmTargetCase_ = vmTargetCase_; + result.vmTarget_ = this.vmTarget_; + if (vmTargetCase_ == 5 && disksTargetDetailsBuilder_ != null) { + result.vmTarget_ = disksTargetDetailsBuilder_.build(); + } + if (vmTargetCase_ == 6 && vmTargetDetailsBuilder_ != null) { + result.vmTarget_ = vmTargetDetailsBuilder_.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.vmmigration.v1.ComputeEngineDisksTargetDetails) { + return mergeFrom((com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails other) { + if (other + == com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails.getDefaultInstance()) + return this; + if (disksBuilder_ == null) { + if (!other.disks_.isEmpty()) { + if (disks_.isEmpty()) { + disks_ = other.disks_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureDisksIsMutable(); + disks_.addAll(other.disks_); + } + onChanged(); + } + } else { + if (!other.disks_.isEmpty()) { + if (disksBuilder_.isEmpty()) { + disksBuilder_.dispose(); + disksBuilder_ = null; + disks_ = other.disks_; + bitField0_ = (bitField0_ & ~0x00000004); + disksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDisksFieldBuilder() + : null; + } else { + disksBuilder_.addAllMessages(other.disks_); + } + } + } + switch (other.getVmTargetCase()) { + case DISKS_TARGET_DETAILS: + { + mergeDisksTargetDetails(other.getDisksTargetDetails()); + break; + } + case VM_TARGET_DETAILS: + { + mergeVmTargetDetails(other.getVmTargetDetails()); + break; + } + case VMTARGET_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: + { + com.google.cloud.vmmigration.v1.PersistentDisk m = + input.readMessage( + com.google.cloud.vmmigration.v1.PersistentDisk.parser(), extensionRegistry); + if (disksBuilder_ == null) { + ensureDisksIsMutable(); + disks_.add(m); + } else { + disksBuilder_.addMessage(m); + } + break; + } // case 10 + case 42: + { + input.readMessage( + getDisksTargetDetailsFieldBuilder().getBuilder(), extensionRegistry); + vmTargetCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage(getVmTargetDetailsFieldBuilder().getBuilder(), extensionRegistry); + vmTargetCase_ = 6; + 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 vmTargetCase_ = 0; + private java.lang.Object vmTarget_; + + public VmTargetCase getVmTargetCase() { + return VmTargetCase.forNumber(vmTargetCase_); + } + + public Builder clearVmTarget() { + vmTargetCase_ = 0; + vmTarget_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails, + com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails.Builder, + com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetailsOrBuilder> + disksTargetDetailsBuilder_; + + /** + * + * + *
        +     * Details of the disks-only migration target.
        +     * 
        + * + * .google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails disks_target_details = 5; + * + * + * @return Whether the disksTargetDetails field is set. + */ + @java.lang.Override + public boolean hasDisksTargetDetails() { + return vmTargetCase_ == 5; + } + + /** + * + * + *
        +     * Details of the disks-only migration target.
        +     * 
        + * + * .google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails disks_target_details = 5; + * + * + * @return The disksTargetDetails. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails + getDisksTargetDetails() { + if (disksTargetDetailsBuilder_ == null) { + if (vmTargetCase_ == 5) { + return (com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails) vmTarget_; + } + return com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails + .getDefaultInstance(); + } else { + if (vmTargetCase_ == 5) { + return disksTargetDetailsBuilder_.getMessage(); + } + return com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails + .getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Details of the disks-only migration target.
        +     * 
        + * + * .google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails disks_target_details = 5; + * + */ + public Builder setDisksTargetDetails( + com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails value) { + if (disksTargetDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + vmTarget_ = value; + onChanged(); + } else { + disksTargetDetailsBuilder_.setMessage(value); + } + vmTargetCase_ = 5; + return this; + } + + /** + * + * + *
        +     * Details of the disks-only migration target.
        +     * 
        + * + * .google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails disks_target_details = 5; + * + */ + public Builder setDisksTargetDetails( + com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails.Builder builderForValue) { + if (disksTargetDetailsBuilder_ == null) { + vmTarget_ = builderForValue.build(); + onChanged(); + } else { + disksTargetDetailsBuilder_.setMessage(builderForValue.build()); + } + vmTargetCase_ = 5; + return this; + } + + /** + * + * + *
        +     * Details of the disks-only migration target.
        +     * 
        + * + * .google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails disks_target_details = 5; + * + */ + public Builder mergeDisksTargetDetails( + com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails value) { + if (disksTargetDetailsBuilder_ == null) { + if (vmTargetCase_ == 5 + && vmTarget_ + != com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails + .getDefaultInstance()) { + vmTarget_ = + com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails.newBuilder( + (com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails) vmTarget_) + .mergeFrom(value) + .buildPartial(); + } else { + vmTarget_ = value; + } + onChanged(); + } else { + if (vmTargetCase_ == 5) { + disksTargetDetailsBuilder_.mergeFrom(value); + } else { + disksTargetDetailsBuilder_.setMessage(value); + } + } + vmTargetCase_ = 5; + return this; + } + + /** + * + * + *
        +     * Details of the disks-only migration target.
        +     * 
        + * + * .google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails disks_target_details = 5; + * + */ + public Builder clearDisksTargetDetails() { + if (disksTargetDetailsBuilder_ == null) { + if (vmTargetCase_ == 5) { + vmTargetCase_ = 0; + vmTarget_ = null; + onChanged(); + } + } else { + if (vmTargetCase_ == 5) { + vmTargetCase_ = 0; + vmTarget_ = null; + } + disksTargetDetailsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Details of the disks-only migration target.
        +     * 
        + * + * .google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails disks_target_details = 5; + * + */ + public com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails.Builder + getDisksTargetDetailsBuilder() { + return getDisksTargetDetailsFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Details of the disks-only migration target.
        +     * 
        + * + * .google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails disks_target_details = 5; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetailsOrBuilder + getDisksTargetDetailsOrBuilder() { + if ((vmTargetCase_ == 5) && (disksTargetDetailsBuilder_ != null)) { + return disksTargetDetailsBuilder_.getMessageOrBuilder(); + } else { + if (vmTargetCase_ == 5) { + return (com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails) vmTarget_; + } + return com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails + .getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Details of the disks-only migration target.
        +     * 
        + * + * .google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails disks_target_details = 5; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails, + com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails.Builder, + com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetailsOrBuilder> + getDisksTargetDetailsFieldBuilder() { + if (disksTargetDetailsBuilder_ == null) { + if (!(vmTargetCase_ == 5)) { + vmTarget_ = + com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails.getDefaultInstance(); + } + disksTargetDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails, + com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails.Builder, + com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetailsOrBuilder>( + (com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails) vmTarget_, + getParentForChildren(), + isClean()); + vmTarget_ = null; + } + vmTargetCase_ = 5; + onChanged(); + return disksTargetDetailsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails, + com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails.Builder, + com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetailsOrBuilder> + vmTargetDetailsBuilder_; + + /** + * + * + *
        +     * Details for the VM the migrated data disks are attached to.
        +     * 
        + * + * .google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails vm_target_details = 6; + * + * + * @return Whether the vmTargetDetails field is set. + */ + @java.lang.Override + public boolean hasVmTargetDetails() { + return vmTargetCase_ == 6; + } + + /** + * + * + *
        +     * Details for the VM the migrated data disks are attached to.
        +     * 
        + * + * .google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails vm_target_details = 6; + * + * + * @return The vmTargetDetails. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails getVmTargetDetails() { + if (vmTargetDetailsBuilder_ == null) { + if (vmTargetCase_ == 6) { + return (com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails) vmTarget_; + } + return com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails.getDefaultInstance(); + } else { + if (vmTargetCase_ == 6) { + return vmTargetDetailsBuilder_.getMessage(); + } + return com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Details for the VM the migrated data disks are attached to.
        +     * 
        + * + * .google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails vm_target_details = 6; + * + */ + public Builder setVmTargetDetails( + com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails value) { + if (vmTargetDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + vmTarget_ = value; + onChanged(); + } else { + vmTargetDetailsBuilder_.setMessage(value); + } + vmTargetCase_ = 6; + return this; + } + + /** + * + * + *
        +     * Details for the VM the migrated data disks are attached to.
        +     * 
        + * + * .google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails vm_target_details = 6; + * + */ + public Builder setVmTargetDetails( + com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails.Builder builderForValue) { + if (vmTargetDetailsBuilder_ == null) { + vmTarget_ = builderForValue.build(); + onChanged(); + } else { + vmTargetDetailsBuilder_.setMessage(builderForValue.build()); + } + vmTargetCase_ = 6; + return this; + } + + /** + * + * + *
        +     * Details for the VM the migrated data disks are attached to.
        +     * 
        + * + * .google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails vm_target_details = 6; + * + */ + public Builder mergeVmTargetDetails( + com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails value) { + if (vmTargetDetailsBuilder_ == null) { + if (vmTargetCase_ == 6 + && vmTarget_ + != com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails + .getDefaultInstance()) { + vmTarget_ = + com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails.newBuilder( + (com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails) vmTarget_) + .mergeFrom(value) + .buildPartial(); + } else { + vmTarget_ = value; + } + onChanged(); + } else { + if (vmTargetCase_ == 6) { + vmTargetDetailsBuilder_.mergeFrom(value); + } else { + vmTargetDetailsBuilder_.setMessage(value); + } + } + vmTargetCase_ = 6; + return this; + } + + /** + * + * + *
        +     * Details for the VM the migrated data disks are attached to.
        +     * 
        + * + * .google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails vm_target_details = 6; + * + */ + public Builder clearVmTargetDetails() { + if (vmTargetDetailsBuilder_ == null) { + if (vmTargetCase_ == 6) { + vmTargetCase_ = 0; + vmTarget_ = null; + onChanged(); + } + } else { + if (vmTargetCase_ == 6) { + vmTargetCase_ = 0; + vmTarget_ = null; + } + vmTargetDetailsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Details for the VM the migrated data disks are attached to.
        +     * 
        + * + * .google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails vm_target_details = 6; + * + */ + public com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails.Builder + getVmTargetDetailsBuilder() { + return getVmTargetDetailsFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Details for the VM the migrated data disks are attached to.
        +     * 
        + * + * .google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails vm_target_details = 6; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetailsOrBuilder + getVmTargetDetailsOrBuilder() { + if ((vmTargetCase_ == 6) && (vmTargetDetailsBuilder_ != null)) { + return vmTargetDetailsBuilder_.getMessageOrBuilder(); + } else { + if (vmTargetCase_ == 6) { + return (com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails) vmTarget_; + } + return com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Details for the VM the migrated data disks are attached to.
        +     * 
        + * + * .google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails vm_target_details = 6; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails, + com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails.Builder, + com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetailsOrBuilder> + getVmTargetDetailsFieldBuilder() { + if (vmTargetDetailsBuilder_ == null) { + if (!(vmTargetCase_ == 6)) { + vmTarget_ = + com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails.getDefaultInstance(); + } + vmTargetDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails, + com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails.Builder, + com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetailsOrBuilder>( + (com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails) vmTarget_, + getParentForChildren(), + isClean()); + vmTarget_ = null; + } + vmTargetCase_ = 6; + onChanged(); + return vmTargetDetailsBuilder_; + } + + private java.util.List disks_ = + java.util.Collections.emptyList(); + + private void ensureDisksIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + disks_ = new java.util.ArrayList(disks_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.PersistentDisk, + com.google.cloud.vmmigration.v1.PersistentDisk.Builder, + com.google.cloud.vmmigration.v1.PersistentDiskOrBuilder> + disksBuilder_; + + /** + * + * + *
        +     * The details of each created Persistent Disk.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.PersistentDisk disks = 1; + */ + public java.util.List getDisksList() { + if (disksBuilder_ == null) { + return java.util.Collections.unmodifiableList(disks_); + } else { + return disksBuilder_.getMessageList(); + } + } + + /** + * + * + *
        +     * The details of each created Persistent Disk.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.PersistentDisk disks = 1; + */ + public int getDisksCount() { + if (disksBuilder_ == null) { + return disks_.size(); + } else { + return disksBuilder_.getCount(); + } + } + + /** + * + * + *
        +     * The details of each created Persistent Disk.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.PersistentDisk disks = 1; + */ + public com.google.cloud.vmmigration.v1.PersistentDisk getDisks(int index) { + if (disksBuilder_ == null) { + return disks_.get(index); + } else { + return disksBuilder_.getMessage(index); + } + } + + /** + * + * + *
        +     * The details of each created Persistent Disk.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.PersistentDisk disks = 1; + */ + public Builder setDisks(int index, com.google.cloud.vmmigration.v1.PersistentDisk value) { + if (disksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDisksIsMutable(); + disks_.set(index, value); + onChanged(); + } else { + disksBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * The details of each created Persistent Disk.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.PersistentDisk disks = 1; + */ + public Builder setDisks( + int index, com.google.cloud.vmmigration.v1.PersistentDisk.Builder builderForValue) { + if (disksBuilder_ == null) { + ensureDisksIsMutable(); + disks_.set(index, builderForValue.build()); + onChanged(); + } else { + disksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * The details of each created Persistent Disk.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.PersistentDisk disks = 1; + */ + public Builder addDisks(com.google.cloud.vmmigration.v1.PersistentDisk value) { + if (disksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDisksIsMutable(); + disks_.add(value); + onChanged(); + } else { + disksBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
        +     * The details of each created Persistent Disk.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.PersistentDisk disks = 1; + */ + public Builder addDisks(int index, com.google.cloud.vmmigration.v1.PersistentDisk value) { + if (disksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDisksIsMutable(); + disks_.add(index, value); + onChanged(); + } else { + disksBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * The details of each created Persistent Disk.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.PersistentDisk disks = 1; + */ + public Builder addDisks( + com.google.cloud.vmmigration.v1.PersistentDisk.Builder builderForValue) { + if (disksBuilder_ == null) { + ensureDisksIsMutable(); + disks_.add(builderForValue.build()); + onChanged(); + } else { + disksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * The details of each created Persistent Disk.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.PersistentDisk disks = 1; + */ + public Builder addDisks( + int index, com.google.cloud.vmmigration.v1.PersistentDisk.Builder builderForValue) { + if (disksBuilder_ == null) { + ensureDisksIsMutable(); + disks_.add(index, builderForValue.build()); + onChanged(); + } else { + disksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * The details of each created Persistent Disk.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.PersistentDisk disks = 1; + */ + public Builder addAllDisks( + java.lang.Iterable values) { + if (disksBuilder_ == null) { + ensureDisksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, disks_); + onChanged(); + } else { + disksBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
        +     * The details of each created Persistent Disk.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.PersistentDisk disks = 1; + */ + public Builder clearDisks() { + if (disksBuilder_ == null) { + disks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + disksBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * The details of each created Persistent Disk.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.PersistentDisk disks = 1; + */ + public Builder removeDisks(int index) { + if (disksBuilder_ == null) { + ensureDisksIsMutable(); + disks_.remove(index); + onChanged(); + } else { + disksBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
        +     * The details of each created Persistent Disk.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.PersistentDisk disks = 1; + */ + public com.google.cloud.vmmigration.v1.PersistentDisk.Builder getDisksBuilder(int index) { + return getDisksFieldBuilder().getBuilder(index); + } + + /** + * + * + *
        +     * The details of each created Persistent Disk.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.PersistentDisk disks = 1; + */ + public com.google.cloud.vmmigration.v1.PersistentDiskOrBuilder getDisksOrBuilder(int index) { + if (disksBuilder_ == null) { + return disks_.get(index); + } else { + return disksBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
        +     * The details of each created Persistent Disk.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.PersistentDisk disks = 1; + */ + public java.util.List + getDisksOrBuilderList() { + if (disksBuilder_ != null) { + return disksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(disks_); + } + } + + /** + * + * + *
        +     * The details of each created Persistent Disk.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.PersistentDisk disks = 1; + */ + public com.google.cloud.vmmigration.v1.PersistentDisk.Builder addDisksBuilder() { + return getDisksFieldBuilder() + .addBuilder(com.google.cloud.vmmigration.v1.PersistentDisk.getDefaultInstance()); + } + + /** + * + * + *
        +     * The details of each created Persistent Disk.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.PersistentDisk disks = 1; + */ + public com.google.cloud.vmmigration.v1.PersistentDisk.Builder addDisksBuilder(int index) { + return getDisksFieldBuilder() + .addBuilder(index, com.google.cloud.vmmigration.v1.PersistentDisk.getDefaultInstance()); + } + + /** + * + * + *
        +     * The details of each created Persistent Disk.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.PersistentDisk disks = 1; + */ + public java.util.List + getDisksBuilderList() { + return getDisksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.PersistentDisk, + com.google.cloud.vmmigration.v1.PersistentDisk.Builder, + com.google.cloud.vmmigration.v1.PersistentDiskOrBuilder> + getDisksFieldBuilder() { + if (disksBuilder_ == null) { + disksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.PersistentDisk, + com.google.cloud.vmmigration.v1.PersistentDisk.Builder, + com.google.cloud.vmmigration.v1.PersistentDiskOrBuilder>( + disks_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + disks_ = null; + } + return disksBuilder_; + } + + @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.vmmigration.v1.ComputeEngineDisksTargetDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails) + private static final com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails(); + } + + public static com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ComputeEngineDisksTargetDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.ComputeEngineDisksTargetDetails + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineDisksTargetDetailsOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineDisksTargetDetailsOrBuilder.java new file mode 100644 index 000000000000..5942fff555e2 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineDisksTargetDetailsOrBuilder.java @@ -0,0 +1,163 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface ComputeEngineDisksTargetDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Details of the disks-only migration target.
        +   * 
        + * + * .google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails disks_target_details = 5; + * + * + * @return Whether the disksTargetDetails field is set. + */ + boolean hasDisksTargetDetails(); + + /** + * + * + *
        +   * Details of the disks-only migration target.
        +   * 
        + * + * .google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails disks_target_details = 5; + * + * + * @return The disksTargetDetails. + */ + com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails getDisksTargetDetails(); + + /** + * + * + *
        +   * Details of the disks-only migration target.
        +   * 
        + * + * .google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails disks_target_details = 5; + * + */ + com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetailsOrBuilder + getDisksTargetDetailsOrBuilder(); + + /** + * + * + *
        +   * Details for the VM the migrated data disks are attached to.
        +   * 
        + * + * .google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails vm_target_details = 6; + * + * @return Whether the vmTargetDetails field is set. + */ + boolean hasVmTargetDetails(); + + /** + * + * + *
        +   * Details for the VM the migrated data disks are attached to.
        +   * 
        + * + * .google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails vm_target_details = 6; + * + * @return The vmTargetDetails. + */ + com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails getVmTargetDetails(); + + /** + * + * + *
        +   * Details for the VM the migrated data disks are attached to.
        +   * 
        + * + * .google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails vm_target_details = 6; + */ + com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetailsOrBuilder + getVmTargetDetailsOrBuilder(); + + /** + * + * + *
        +   * The details of each created Persistent Disk.
        +   * 
        + * + * repeated .google.cloud.vmmigration.v1.PersistentDisk disks = 1; + */ + java.util.List getDisksList(); + + /** + * + * + *
        +   * The details of each created Persistent Disk.
        +   * 
        + * + * repeated .google.cloud.vmmigration.v1.PersistentDisk disks = 1; + */ + com.google.cloud.vmmigration.v1.PersistentDisk getDisks(int index); + + /** + * + * + *
        +   * The details of each created Persistent Disk.
        +   * 
        + * + * repeated .google.cloud.vmmigration.v1.PersistentDisk disks = 1; + */ + int getDisksCount(); + + /** + * + * + *
        +   * The details of each created Persistent Disk.
        +   * 
        + * + * repeated .google.cloud.vmmigration.v1.PersistentDisk disks = 1; + */ + java.util.List + getDisksOrBuilderList(); + + /** + * + * + *
        +   * The details of each created Persistent Disk.
        +   * 
        + * + * repeated .google.cloud.vmmigration.v1.PersistentDisk disks = 1; + */ + com.google.cloud.vmmigration.v1.PersistentDiskOrBuilder getDisksOrBuilder(int index); + + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails.VmTargetCase getVmTargetCase(); +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineLicenseType.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineLicenseType.java index 1c1d2cd35d89..1a1ae057beea 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineLicenseType.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineLicenseType.java @@ -156,7 +156,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.vmmigration.v1.VmMigrationProto.getDescriptor().getEnumTypes().get(3); + return com.google.cloud.vmmigration.v1.VmMigrationProto.getDescriptor().getEnumTypes().get(1); } private static final ComputeEngineLicenseType[] VALUES = values(); diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineNetworkTier.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineNetworkTier.java new file mode 100644 index 000000000000..ec02b641837b --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineNetworkTier.java @@ -0,0 +1,183 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * Describes the networking tier used for configuring network access
        + * configuration.
        + * 
        + * + * Protobuf enum {@code google.cloud.vmmigration.v1.ComputeEngineNetworkTier} + */ +public enum ComputeEngineNetworkTier implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
        +   * An unspecified network tier. Will be used as PREMIUM.
        +   * 
        + * + * COMPUTE_ENGINE_NETWORK_TIER_UNSPECIFIED = 0; + */ + COMPUTE_ENGINE_NETWORK_TIER_UNSPECIFIED(0), + /** + * + * + *
        +   * A standard network tier.
        +   * 
        + * + * NETWORK_TIER_STANDARD = 1; + */ + NETWORK_TIER_STANDARD(1), + /** + * + * + *
        +   * A premium network tier.
        +   * 
        + * + * NETWORK_TIER_PREMIUM = 2; + */ + NETWORK_TIER_PREMIUM(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
        +   * An unspecified network tier. Will be used as PREMIUM.
        +   * 
        + * + * COMPUTE_ENGINE_NETWORK_TIER_UNSPECIFIED = 0; + */ + public static final int COMPUTE_ENGINE_NETWORK_TIER_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
        +   * A standard network tier.
        +   * 
        + * + * NETWORK_TIER_STANDARD = 1; + */ + public static final int NETWORK_TIER_STANDARD_VALUE = 1; + + /** + * + * + *
        +   * A premium network tier.
        +   * 
        + * + * NETWORK_TIER_PREMIUM = 2; + */ + public static final int NETWORK_TIER_PREMIUM_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 ComputeEngineNetworkTier 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 ComputeEngineNetworkTier forNumber(int value) { + switch (value) { + case 0: + return COMPUTE_ENGINE_NETWORK_TIER_UNSPECIFIED; + case 1: + return NETWORK_TIER_STANDARD; + case 2: + return NETWORK_TIER_PREMIUM; + 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 ComputeEngineNetworkTier findValueByNumber(int number) { + return ComputeEngineNetworkTier.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.vmmigration.v1.VmMigrationProto.getDescriptor().getEnumTypes().get(8); + } + + private static final ComputeEngineNetworkTier[] VALUES = values(); + + public static ComputeEngineNetworkTier 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 ComputeEngineNetworkTier(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.vmmigration.v1.ComputeEngineNetworkTier) +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineTargetDefaults.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineTargetDefaults.java index 81bb1069e000..eef22908c51b 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineTargetDefaults.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineTargetDefaults.java @@ -54,6 +54,8 @@ private ComputeEngineTargetDefaults() { bootOption_ = 0; additionalLicenses_ = com.google.protobuf.LazyStringArrayList.emptyList(); hostname_ = ""; + bootConversion_ = 0; + diskReplicaZones_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @@ -369,7 +371,7 @@ public com.google.protobuf.ByteString getMachineTypeBytes() { * * *
        -   * A map of network tags to associate with the VM.
        +   * A list of network tags to associate with the VM.
            * 
        * * repeated string network_tags = 6; @@ -384,7 +386,7 @@ public com.google.protobuf.ProtocolStringList getNetworkTagsList() { * * *
        -   * A map of network tags to associate with the VM.
        +   * A list of network tags to associate with the VM.
            * 
        * * repeated string network_tags = 6; @@ -399,7 +401,7 @@ public int getNetworkTagsCount() { * * *
        -   * A map of network tags to associate with the VM.
        +   * A list of network tags to associate with the VM.
            * 
        * * repeated string network_tags = 6; @@ -415,7 +417,7 @@ public java.lang.String getNetworkTags(int index) { * * *
        -   * A map of network tags to associate with the VM.
        +   * A list of network tags to associate with the VM.
            * 
        * * repeated string network_tags = 6; @@ -514,10 +516,10 @@ public com.google.cloud.vmmigration.v1.NetworkInterfaceOrBuilder getNetworkInter * * *
        -   * The service account to associate the VM with.
        +   * Optional. The service account to associate the VM with.
            * 
        * - * string service_account = 8; + * string service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @return The serviceAccount. */ @@ -538,10 +540,10 @@ public java.lang.String getServiceAccount() { * * *
        -   * The service account to associate the VM with.
        +   * Optional. The service account to associate the VM with.
            * 
        * - * string service_account = 8; + * string service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for serviceAccount. */ @@ -864,7 +866,7 @@ public com.google.cloud.vmmigration.v1.ComputeScheduling getComputeScheduling() * *
            * Defines whether the instance has Secure Boot enabled.
        -   * This can be set to true only if the vm boot option is EFI.
        +   * This can be set to true only if the VM boot option is EFI.
            * 
        * * bool secure_boot = 14; @@ -876,6 +878,47 @@ public boolean getSecureBoot() { return secureBoot_; } + public static final int ENABLE_VTPM_FIELD_NUMBER = 21; + private boolean enableVtpm_ = false; + + /** + * + * + *
        +   * Optional. Defines whether the instance has vTPM enabled.
        +   * This can be set to true only if the VM boot option is EFI.
        +   * 
        + * + * bool enable_vtpm = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableVtpm. + */ + @java.lang.Override + public boolean getEnableVtpm() { + return enableVtpm_; + } + + public static final int ENABLE_INTEGRITY_MONITORING_FIELD_NUMBER = 22; + private boolean enableIntegrityMonitoring_ = false; + + /** + * + * + *
        +   * Optional. Defines whether the instance has integrity monitoring enabled.
        +   * This can be set to true only if the VM boot option is EFI, and vTPM is
        +   * enabled.
        +   * 
        + * + * bool enable_integrity_monitoring = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableIntegrityMonitoring. + */ + @java.lang.Override + public boolean getEnableIntegrityMonitoring() { + return enableIntegrityMonitoring_; + } + public static final int BOOT_OPTION_FIELD_NUMBER = 15; private int bootOption_ = 0; @@ -883,7 +926,7 @@ public boolean getSecureBoot() { * * *
        -   * Output only. The VM Boot Option, as set in the source vm.
        +   * Output only. The VM Boot Option, as set in the source VM.
            * 
        * * @@ -901,7 +944,7 @@ public int getBootOptionValue() { * * *
        -   * Output only. The VM Boot Option, as set in the source vm.
        +   * Output only. The VM Boot Option, as set in the source VM.
            * 
        * * @@ -1147,6 +1190,210 @@ public com.google.protobuf.ByteString getHostnameBytes() { } } + public static final int ENCRYPTION_FIELD_NUMBER = 19; + private com.google.cloud.vmmigration.v1.Encryption encryption_; + + /** + * + * + *
        +   * Optional. Immutable. The encryption to apply to the VM disks.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 19 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the encryption field is set. + */ + @java.lang.Override + public boolean hasEncryption() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
        +   * Optional. Immutable. The encryption to apply to the VM disks.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 19 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The encryption. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.Encryption getEncryption() { + return encryption_ == null + ? com.google.cloud.vmmigration.v1.Encryption.getDefaultInstance() + : encryption_; + } + + /** + * + * + *
        +   * Optional. Immutable. The encryption to apply to the VM disks.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 19 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.EncryptionOrBuilder getEncryptionOrBuilder() { + return encryption_ == null + ? com.google.cloud.vmmigration.v1.Encryption.getDefaultInstance() + : encryption_; + } + + public static final int BOOT_CONVERSION_FIELD_NUMBER = 20; + private int bootConversion_ = 0; + + /** + * + * + *
        +   * Optional. By default the virtual machine will keep its existing boot
        +   * option. Setting this property will trigger an internal process which will
        +   * convert the virtual machine from using the existing boot option to another.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.BootConversion boot_conversion = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for bootConversion. + */ + @java.lang.Override + public int getBootConversionValue() { + return bootConversion_; + } + + /** + * + * + *
        +   * Optional. By default the virtual machine will keep its existing boot
        +   * option. Setting this property will trigger an internal process which will
        +   * convert the virtual machine from using the existing boot option to another.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.BootConversion boot_conversion = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bootConversion. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.BootConversion getBootConversion() { + com.google.cloud.vmmigration.v1.BootConversion result = + com.google.cloud.vmmigration.v1.BootConversion.forNumber(bootConversion_); + return result == null ? com.google.cloud.vmmigration.v1.BootConversion.UNRECOGNIZED : result; + } + + public static final int DISK_REPLICA_ZONES_FIELD_NUMBER = 24; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList diskReplicaZones_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
        +   * Optional. Additional replica zones of the target regional disks.
        +   * If this list is not empty a regional disk will be created. The first
        +   * supported zone would be the one stated in the
        +   * [zone][google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.zone] field.
        +   * The rest are taken from this list. Please refer to the [regional disk
        +   * creation
        +   * API](https://cloud.google.com/compute/docs/regions-zones/global-regional-zonal-resources)
        +   * for further details about regional vs zonal disks. If not specified, a
        +   * zonal disk will be created in the same zone the VM is created.
        +   * 
        + * + * repeated string disk_replica_zones = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the diskReplicaZones. + */ + public com.google.protobuf.ProtocolStringList getDiskReplicaZonesList() { + return diskReplicaZones_; + } + + /** + * + * + *
        +   * Optional. Additional replica zones of the target regional disks.
        +   * If this list is not empty a regional disk will be created. The first
        +   * supported zone would be the one stated in the
        +   * [zone][google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.zone] field.
        +   * The rest are taken from this list. Please refer to the [regional disk
        +   * creation
        +   * API](https://cloud.google.com/compute/docs/regions-zones/global-regional-zonal-resources)
        +   * for further details about regional vs zonal disks. If not specified, a
        +   * zonal disk will be created in the same zone the VM is created.
        +   * 
        + * + * repeated string disk_replica_zones = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of diskReplicaZones. + */ + public int getDiskReplicaZonesCount() { + return diskReplicaZones_.size(); + } + + /** + * + * + *
        +   * Optional. Additional replica zones of the target regional disks.
        +   * If this list is not empty a regional disk will be created. The first
        +   * supported zone would be the one stated in the
        +   * [zone][google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.zone] field.
        +   * The rest are taken from this list. Please refer to the [regional disk
        +   * creation
        +   * API](https://cloud.google.com/compute/docs/regions-zones/global-regional-zonal-resources)
        +   * for further details about regional vs zonal disks. If not specified, a
        +   * zonal disk will be created in the same zone the VM is created.
        +   * 
        + * + * repeated string disk_replica_zones = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The diskReplicaZones at the given index. + */ + public java.lang.String getDiskReplicaZones(int index) { + return diskReplicaZones_.get(index); + } + + /** + * + * + *
        +   * Optional. Additional replica zones of the target regional disks.
        +   * If this list is not empty a regional disk will be created. The first
        +   * supported zone would be the one stated in the
        +   * [zone][google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.zone] field.
        +   * The rest are taken from this list. Please refer to the [regional disk
        +   * creation
        +   * API](https://cloud.google.com/compute/docs/regions-zones/global-regional-zonal-resources)
        +   * for further details about regional vs zonal disks. If not specified, a
        +   * zonal disk will be created in the same zone the VM is created.
        +   * 
        + * + * repeated string disk_replica_zones = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the diskReplicaZones at the given index. + */ + public com.google.protobuf.ByteString getDiskReplicaZonesBytes(int index) { + return diskReplicaZones_.getByteString(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1222,6 +1469,22 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 18, hostname_); } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(19, getEncryption()); + } + if (bootConversion_ + != com.google.cloud.vmmigration.v1.BootConversion.BOOT_CONVERSION_UNSPECIFIED.getNumber()) { + output.writeEnum(20, bootConversion_); + } + if (enableVtpm_ != false) { + output.writeBool(21, enableVtpm_); + } + if (enableIntegrityMonitoring_ != false) { + output.writeBool(22, enableIntegrityMonitoring_); + } + for (int i = 0; i < diskReplicaZones_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 24, diskReplicaZones_.getRaw(i)); + } getUnknownFields().writeTo(output); } @@ -1319,6 +1582,27 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, hostname_); } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getEncryption()); + } + if (bootConversion_ + != com.google.cloud.vmmigration.v1.BootConversion.BOOT_CONVERSION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(20, bootConversion_); + } + if (enableVtpm_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(21, enableVtpm_); + } + if (enableIntegrityMonitoring_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(22, enableIntegrityMonitoring_); + } + { + int dataSize = 0; + for (int i = 0; i < diskReplicaZones_.size(); i++) { + dataSize += computeStringSizeNoTag(diskReplicaZones_.getRaw(i)); + } + size += dataSize; + size += 2 * getDiskReplicaZonesList().size(); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1355,10 +1639,18 @@ public boolean equals(final java.lang.Object obj) { if (!getComputeScheduling().equals(other.getComputeScheduling())) return false; } if (getSecureBoot() != other.getSecureBoot()) return false; + if (getEnableVtpm() != other.getEnableVtpm()) return false; + if (getEnableIntegrityMonitoring() != other.getEnableIntegrityMonitoring()) return false; if (bootOption_ != other.bootOption_) return false; if (!internalGetMetadata().equals(other.internalGetMetadata())) return false; if (!getAdditionalLicensesList().equals(other.getAdditionalLicensesList())) return false; if (!getHostname().equals(other.getHostname())) return false; + if (hasEncryption() != other.hasEncryption()) return false; + if (hasEncryption()) { + if (!getEncryption().equals(other.getEncryption())) return false; + } + if (bootConversion_ != other.bootConversion_) return false; + if (!getDiskReplicaZonesList().equals(other.getDiskReplicaZonesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1408,6 +1700,10 @@ public int hashCode() { } hash = (37 * hash) + SECURE_BOOT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSecureBoot()); + hash = (37 * hash) + ENABLE_VTPM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableVtpm()); + hash = (37 * hash) + ENABLE_INTEGRITY_MONITORING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableIntegrityMonitoring()); hash = (37 * hash) + BOOT_OPTION_FIELD_NUMBER; hash = (53 * hash) + bootOption_; if (!internalGetMetadata().getMap().isEmpty()) { @@ -1420,6 +1716,16 @@ public int hashCode() { } hash = (37 * hash) + HOSTNAME_FIELD_NUMBER; hash = (53 * hash) + getHostname().hashCode(); + if (hasEncryption()) { + hash = (37 * hash) + ENCRYPTION_FIELD_NUMBER; + hash = (53 * hash) + getEncryption().hashCode(); + } + hash = (37 * hash) + BOOT_CONVERSION_FIELD_NUMBER; + hash = (53 * hash) + bootConversion_; + if (getDiskReplicaZonesCount() > 0) { + hash = (37 * hash) + DISK_REPLICA_ZONES_FIELD_NUMBER; + hash = (53 * hash) + getDiskReplicaZonesList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1592,6 +1898,7 @@ private void maybeForceBuilderInitialization() { getNetworkInterfacesFieldBuilder(); getAppliedLicenseFieldBuilder(); getComputeSchedulingFieldBuilder(); + getEncryptionFieldBuilder(); } } @@ -1627,10 +1934,19 @@ public Builder clear() { computeSchedulingBuilder_ = null; } secureBoot_ = false; + enableVtpm_ = false; + enableIntegrityMonitoring_ = false; bootOption_ = 0; internalGetMutableMetadata().clear(); additionalLicenses_ = com.google.protobuf.LazyStringArrayList.emptyList(); hostname_ = ""; + encryption_ = null; + if (encryptionBuilder_ != null) { + encryptionBuilder_.dispose(); + encryptionBuilder_ = null; + } + bootConversion_ = 0; + diskReplicaZones_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @@ -1730,19 +2046,36 @@ private void buildPartial0(com.google.cloud.vmmigration.v1.ComputeEngineTargetDe result.secureBoot_ = secureBoot_; } if (((from_bitField0_ & 0x00004000) != 0)) { - result.bootOption_ = bootOption_; + result.enableVtpm_ = enableVtpm_; } if (((from_bitField0_ & 0x00008000) != 0)) { + result.enableIntegrityMonitoring_ = enableIntegrityMonitoring_; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.bootOption_ = bootOption_; + } + if (((from_bitField0_ & 0x00020000) != 0)) { result.metadata_ = internalGetMetadata(); result.metadata_.makeImmutable(); } - if (((from_bitField0_ & 0x00010000) != 0)) { + if (((from_bitField0_ & 0x00040000) != 0)) { additionalLicenses_.makeImmutable(); result.additionalLicenses_ = additionalLicenses_; } - if (((from_bitField0_ & 0x00020000) != 0)) { + if (((from_bitField0_ & 0x00080000) != 0)) { result.hostname_ = hostname_; } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.encryption_ = encryptionBuilder_ == null ? encryption_ : encryptionBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00200000) != 0)) { + result.bootConversion_ = bootConversion_; + } + if (((from_bitField0_ & 0x00400000) != 0)) { + diskReplicaZones_.makeImmutable(); + result.diskReplicaZones_ = diskReplicaZones_; + } result.bitField0_ |= to_bitField0_; } @@ -1876,15 +2209,21 @@ public Builder mergeFrom(com.google.cloud.vmmigration.v1.ComputeEngineTargetDefa if (other.getSecureBoot() != false) { setSecureBoot(other.getSecureBoot()); } + if (other.getEnableVtpm() != false) { + setEnableVtpm(other.getEnableVtpm()); + } + if (other.getEnableIntegrityMonitoring() != false) { + setEnableIntegrityMonitoring(other.getEnableIntegrityMonitoring()); + } if (other.bootOption_ != 0) { setBootOptionValue(other.getBootOptionValue()); } internalGetMutableMetadata().mergeFrom(other.internalGetMetadata()); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00020000; if (!other.additionalLicenses_.isEmpty()) { if (additionalLicenses_.isEmpty()) { additionalLicenses_ = other.additionalLicenses_; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00040000; } else { ensureAdditionalLicensesIsMutable(); additionalLicenses_.addAll(other.additionalLicenses_); @@ -1893,7 +2232,23 @@ public Builder mergeFrom(com.google.cloud.vmmigration.v1.ComputeEngineTargetDefa } if (!other.getHostname().isEmpty()) { hostname_ = other.hostname_; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00080000; + onChanged(); + } + if (other.hasEncryption()) { + mergeEncryption(other.getEncryption()); + } + if (other.bootConversion_ != 0) { + setBootConversionValue(other.getBootConversionValue()); + } + if (!other.diskReplicaZones_.isEmpty()) { + if (diskReplicaZones_.isEmpty()) { + diskReplicaZones_ = other.diskReplicaZones_; + bitField0_ |= 0x00400000; + } else { + ensureDiskReplicaZonesIsMutable(); + diskReplicaZones_.addAll(other.diskReplicaZones_); + } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -2025,7 +2380,7 @@ public Builder mergeFrom( case 120: { bootOption_ = input.readEnum(); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00010000; break; } // case 120 case 130: @@ -2037,7 +2392,7 @@ public Builder mergeFrom( internalGetMutableMetadata() .getMutableMap() .put(metadata__.getKey(), metadata__.getValue()); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00020000; break; } // case 130 case 138: @@ -2050,9 +2405,40 @@ public Builder mergeFrom( case 146: { hostname_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00080000; break; } // case 146 + case 154: + { + input.readMessage(getEncryptionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00100000; + break; + } // case 154 + case 160: + { + bootConversion_ = input.readEnum(); + bitField0_ |= 0x00200000; + break; + } // case 160 + case 168: + { + enableVtpm_ = input.readBool(); + bitField0_ |= 0x00004000; + break; + } // case 168 + case 176: + { + enableIntegrityMonitoring_ = input.readBool(); + bitField0_ |= 0x00008000; + break; + } // case 176 + case 194: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureDiskReplicaZonesIsMutable(); + diskReplicaZones_.add(s); + break; + } // case 194 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2646,7 +3032,7 @@ private void ensureNetworkTagsIsMutable() { * * *
        -     * A map of network tags to associate with the VM.
        +     * A list of network tags to associate with the VM.
              * 
        * * repeated string network_tags = 6; @@ -2662,7 +3048,7 @@ public com.google.protobuf.ProtocolStringList getNetworkTagsList() { * * *
        -     * A map of network tags to associate with the VM.
        +     * A list of network tags to associate with the VM.
              * 
        * * repeated string network_tags = 6; @@ -2677,7 +3063,7 @@ public int getNetworkTagsCount() { * * *
        -     * A map of network tags to associate with the VM.
        +     * A list of network tags to associate with the VM.
              * 
        * * repeated string network_tags = 6; @@ -2693,7 +3079,7 @@ public java.lang.String getNetworkTags(int index) { * * *
        -     * A map of network tags to associate with the VM.
        +     * A list of network tags to associate with the VM.
              * 
        * * repeated string network_tags = 6; @@ -2709,7 +3095,7 @@ public com.google.protobuf.ByteString getNetworkTagsBytes(int index) { * * *
        -     * A map of network tags to associate with the VM.
        +     * A list of network tags to associate with the VM.
              * 
        * * repeated string network_tags = 6; @@ -2733,7 +3119,7 @@ public Builder setNetworkTags(int index, java.lang.String value) { * * *
        -     * A map of network tags to associate with the VM.
        +     * A list of network tags to associate with the VM.
              * 
        * * repeated string network_tags = 6; @@ -2756,7 +3142,7 @@ public Builder addNetworkTags(java.lang.String value) { * * *
        -     * A map of network tags to associate with the VM.
        +     * A list of network tags to associate with the VM.
              * 
        * * repeated string network_tags = 6; @@ -2776,7 +3162,7 @@ public Builder addAllNetworkTags(java.lang.Iterable values) { * * *
        -     * A map of network tags to associate with the VM.
        +     * A list of network tags to associate with the VM.
              * 
        * * repeated string network_tags = 6; @@ -2795,7 +3181,7 @@ public Builder clearNetworkTags() { * * *
        -     * A map of network tags to associate with the VM.
        +     * A list of network tags to associate with the VM.
              * 
        * * repeated string network_tags = 6; @@ -3199,10 +3585,10 @@ public com.google.cloud.vmmigration.v1.NetworkInterface.Builder addNetworkInterf * * *
        -     * The service account to associate the VM with.
        +     * Optional. The service account to associate the VM with.
              * 
        * - * string service_account = 8; + * string service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @return The serviceAccount. */ @@ -3222,10 +3608,10 @@ public java.lang.String getServiceAccount() { * * *
        -     * The service account to associate the VM with.
        +     * Optional. The service account to associate the VM with.
              * 
        * - * string service_account = 8; + * string service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for serviceAccount. */ @@ -3245,10 +3631,10 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { * * *
        -     * The service account to associate the VM with.
        +     * Optional. The service account to associate the VM with.
              * 
        * - * string service_account = 8; + * string service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The serviceAccount to set. * @return This builder for chaining. @@ -3267,10 +3653,10 @@ public Builder setServiceAccount(java.lang.String value) { * * *
        -     * The service account to associate the VM with.
        +     * Optional. The service account to associate the VM with.
              * 
        * - * string service_account = 8; + * string service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -3285,10 +3671,10 @@ public Builder clearServiceAccount() { * * *
        -     * The service account to associate the VM with.
        +     * Optional. The service account to associate the VM with.
              * 
        * - * string service_account = 8; + * string service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for serviceAccount to set. * @return This builder for chaining. @@ -4088,7 +4474,7 @@ public com.google.cloud.vmmigration.v1.ComputeScheduling.Builder getComputeSched * *
              * Defines whether the instance has Secure Boot enabled.
        -     * This can be set to true only if the vm boot option is EFI.
        +     * This can be set to true only if the VM boot option is EFI.
              * 
        * * bool secure_boot = 14; @@ -4105,7 +4491,7 @@ public boolean getSecureBoot() { * *
              * Defines whether the instance has Secure Boot enabled.
        -     * This can be set to true only if the vm boot option is EFI.
        +     * This can be set to true only if the VM boot option is EFI.
              * 
        * * bool secure_boot = 14; @@ -4126,7 +4512,7 @@ public Builder setSecureBoot(boolean value) { * *
              * Defines whether the instance has Secure Boot enabled.
        -     * This can be set to true only if the vm boot option is EFI.
        +     * This can be set to true only if the VM boot option is EFI.
              * 
        * * bool secure_boot = 14; @@ -4140,42 +4526,41 @@ public Builder clearSecureBoot() { return this; } - private int bootOption_ = 0; + private boolean enableVtpm_; /** * * *
        -     * Output only. The VM Boot Option, as set in the source vm.
        +     * Optional. Defines whether the instance has vTPM enabled.
        +     * This can be set to true only if the VM boot option is EFI.
              * 
        * - * - * .google.cloud.vmmigration.v1.ComputeEngineBootOption boot_option = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * bool enable_vtpm = 21 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The enum numeric value on the wire for bootOption. + * @return The enableVtpm. */ @java.lang.Override - public int getBootOptionValue() { - return bootOption_; + public boolean getEnableVtpm() { + return enableVtpm_; } /** * * *
        -     * Output only. The VM Boot Option, as set in the source vm.
        +     * Optional. Defines whether the instance has vTPM enabled.
        +     * This can be set to true only if the VM boot option is EFI.
              * 
        * - * - * .google.cloud.vmmigration.v1.ComputeEngineBootOption boot_option = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * bool enable_vtpm = 21 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The enum numeric value on the wire for bootOption to set. + * @param value The enableVtpm to set. * @return This builder for chaining. */ - public Builder setBootOptionValue(int value) { - bootOption_ = value; + public Builder setEnableVtpm(boolean value) { + + enableVtpm_ = value; bitField0_ |= 0x00004000; onChanged(); return this; @@ -4185,44 +4570,59 @@ public Builder setBootOptionValue(int value) { * * *
        -     * Output only. The VM Boot Option, as set in the source vm.
        +     * Optional. Defines whether the instance has vTPM enabled.
        +     * This can be set to true only if the VM boot option is EFI.
              * 
        * - * - * .google.cloud.vmmigration.v1.ComputeEngineBootOption boot_option = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * bool enable_vtpm = 21 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bootOption. + * @return This builder for chaining. + */ + public Builder clearEnableVtpm() { + bitField0_ = (bitField0_ & ~0x00004000); + enableVtpm_ = false; + onChanged(); + return this; + } + + private boolean enableIntegrityMonitoring_; + + /** + * + * + *
        +     * Optional. Defines whether the instance has integrity monitoring enabled.
        +     * This can be set to true only if the VM boot option is EFI, and vTPM is
        +     * enabled.
        +     * 
        + * + * bool enable_integrity_monitoring = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableIntegrityMonitoring. */ @java.lang.Override - public com.google.cloud.vmmigration.v1.ComputeEngineBootOption getBootOption() { - com.google.cloud.vmmigration.v1.ComputeEngineBootOption result = - com.google.cloud.vmmigration.v1.ComputeEngineBootOption.forNumber(bootOption_); - return result == null - ? com.google.cloud.vmmigration.v1.ComputeEngineBootOption.UNRECOGNIZED - : result; + public boolean getEnableIntegrityMonitoring() { + return enableIntegrityMonitoring_; } /** * * *
        -     * Output only. The VM Boot Option, as set in the source vm.
        +     * Optional. Defines whether the instance has integrity monitoring enabled.
        +     * This can be set to true only if the VM boot option is EFI, and vTPM is
        +     * enabled.
              * 
        * - * - * .google.cloud.vmmigration.v1.ComputeEngineBootOption boot_option = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * bool enable_integrity_monitoring = 22 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The bootOption to set. + * @param value The enableIntegrityMonitoring to set. * @return This builder for chaining. */ - public Builder setBootOption(com.google.cloud.vmmigration.v1.ComputeEngineBootOption value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00004000; - bootOption_ = value.getNumber(); + public Builder setEnableIntegrityMonitoring(boolean value) { + + enableIntegrityMonitoring_ = value; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -4231,28 +4631,135 @@ public Builder setBootOption(com.google.cloud.vmmigration.v1.ComputeEngineBootOp * * *
        -     * Output only. The VM Boot Option, as set in the source vm.
        +     * Optional. Defines whether the instance has integrity monitoring enabled.
        +     * This can be set to true only if the VM boot option is EFI, and vTPM is
        +     * enabled.
              * 
        * - * - * .google.cloud.vmmigration.v1.ComputeEngineBootOption boot_option = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * bool enable_integrity_monitoring = 22 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ - public Builder clearBootOption() { - bitField0_ = (bitField0_ & ~0x00004000); - bootOption_ = 0; + public Builder clearEnableIntegrityMonitoring() { + bitField0_ = (bitField0_ & ~0x00008000); + enableIntegrityMonitoring_ = false; onChanged(); return this; } - private com.google.protobuf.MapField metadata_; + private int bootOption_ = 0; - private com.google.protobuf.MapField internalGetMetadata() { - if (metadata_ == null) { - return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); - } + /** + * + * + *
        +     * Output only. The VM Boot Option, as set in the source VM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineBootOption boot_option = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for bootOption. + */ + @java.lang.Override + public int getBootOptionValue() { + return bootOption_; + } + + /** + * + * + *
        +     * Output only. The VM Boot Option, as set in the source VM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineBootOption boot_option = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for bootOption to set. + * @return This builder for chaining. + */ + public Builder setBootOptionValue(int value) { + bootOption_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The VM Boot Option, as set in the source VM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineBootOption boot_option = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bootOption. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ComputeEngineBootOption getBootOption() { + com.google.cloud.vmmigration.v1.ComputeEngineBootOption result = + com.google.cloud.vmmigration.v1.ComputeEngineBootOption.forNumber(bootOption_); + return result == null + ? com.google.cloud.vmmigration.v1.ComputeEngineBootOption.UNRECOGNIZED + : result; + } + + /** + * + * + *
        +     * Output only. The VM Boot Option, as set in the source VM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineBootOption boot_option = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bootOption to set. + * @return This builder for chaining. + */ + public Builder setBootOption(com.google.cloud.vmmigration.v1.ComputeEngineBootOption value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00010000; + bootOption_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The VM Boot Option, as set in the source VM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineBootOption boot_option = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearBootOption() { + bitField0_ = (bitField0_ & ~0x00010000); + bootOption_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.MapField metadata_; + + private com.google.protobuf.MapField internalGetMetadata() { + if (metadata_ == null) { + return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); + } return metadata_; } @@ -4265,7 +4772,7 @@ private com.google.protobuf.MapField interna if (!metadata_.isMutable()) { metadata_ = metadata_.copy(); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00020000; onChanged(); return metadata_; } @@ -4355,7 +4862,7 @@ public java.lang.String getMetadataOrThrow(java.lang.String key) { } public Builder clearMetadata() { - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00020000); internalGetMutableMetadata().getMutableMap().clear(); return this; } @@ -4380,7 +4887,7 @@ public Builder removeMetadata(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableMetadata() { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00020000; return internalGetMutableMetadata().getMutableMap(); } @@ -4401,7 +4908,7 @@ public Builder putMetadata(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableMetadata().getMutableMap().put(key, value); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00020000; return this; } @@ -4416,7 +4923,7 @@ public Builder putMetadata(java.lang.String key, java.lang.String value) { */ public Builder putAllMetadata(java.util.Map values) { internalGetMutableMetadata().getMutableMap().putAll(values); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00020000; return this; } @@ -4427,7 +4934,7 @@ private void ensureAdditionalLicensesIsMutable() { if (!additionalLicenses_.isModifiable()) { additionalLicenses_ = new com.google.protobuf.LazyStringArrayList(additionalLicenses_); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00040000; } /** @@ -4512,7 +5019,7 @@ public Builder setAdditionalLicenses(int index, java.lang.String value) { } ensureAdditionalLicensesIsMutable(); additionalLicenses_.set(index, value); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -4535,7 +5042,7 @@ public Builder addAdditionalLicenses(java.lang.String value) { } ensureAdditionalLicensesIsMutable(); additionalLicenses_.add(value); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -4555,7 +5062,7 @@ public Builder addAdditionalLicenses(java.lang.String value) { public Builder addAllAdditionalLicenses(java.lang.Iterable values) { ensureAdditionalLicensesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, additionalLicenses_); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -4573,7 +5080,7 @@ public Builder addAllAdditionalLicenses(java.lang.Iterable val */ public Builder clearAdditionalLicenses() { additionalLicenses_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00040000); ; onChanged(); return this; @@ -4598,7 +5105,7 @@ public Builder addAdditionalLicensesBytes(com.google.protobuf.ByteString value) checkByteStringIsUtf8(value); ensureAdditionalLicensesIsMutable(); additionalLicenses_.add(value); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -4668,7 +5175,7 @@ public Builder setHostname(java.lang.String value) { throw new NullPointerException(); } hostname_ = value; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -4686,7 +5193,7 @@ public Builder setHostname(java.lang.String value) { */ public Builder clearHostname() { hostname_ = getDefaultInstance().getHostname(); - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00080000); onChanged(); return this; } @@ -4709,7 +5216,599 @@ public Builder setHostnameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); hostname_ = value; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + + private com.google.cloud.vmmigration.v1.Encryption encryption_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.Encryption, + com.google.cloud.vmmigration.v1.Encryption.Builder, + com.google.cloud.vmmigration.v1.EncryptionOrBuilder> + encryptionBuilder_; + + /** + * + * + *
        +     * Optional. Immutable. The encryption to apply to the VM disks.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 19 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the encryption field is set. + */ + public boolean hasEncryption() { + return ((bitField0_ & 0x00100000) != 0); + } + + /** + * + * + *
        +     * Optional. Immutable. The encryption to apply to the VM disks.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 19 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The encryption. + */ + public com.google.cloud.vmmigration.v1.Encryption getEncryption() { + if (encryptionBuilder_ == null) { + return encryption_ == null + ? com.google.cloud.vmmigration.v1.Encryption.getDefaultInstance() + : encryption_; + } else { + return encryptionBuilder_.getMessage(); + } + } + + /** + * + * + *
        +     * Optional. Immutable. The encryption to apply to the VM disks.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 19 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setEncryption(com.google.cloud.vmmigration.v1.Encryption value) { + if (encryptionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + encryption_ = value; + } else { + encryptionBuilder_.setMessage(value); + } + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Immutable. The encryption to apply to the VM disks.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 19 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setEncryption( + com.google.cloud.vmmigration.v1.Encryption.Builder builderForValue) { + if (encryptionBuilder_ == null) { + encryption_ = builderForValue.build(); + } else { + encryptionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Immutable. The encryption to apply to the VM disks.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 19 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder mergeEncryption(com.google.cloud.vmmigration.v1.Encryption value) { + if (encryptionBuilder_ == null) { + if (((bitField0_ & 0x00100000) != 0) + && encryption_ != null + && encryption_ != com.google.cloud.vmmigration.v1.Encryption.getDefaultInstance()) { + getEncryptionBuilder().mergeFrom(value); + } else { + encryption_ = value; + } + } else { + encryptionBuilder_.mergeFrom(value); + } + if (encryption_ != null) { + bitField0_ |= 0x00100000; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Optional. Immutable. The encryption to apply to the VM disks.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 19 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder clearEncryption() { + bitField0_ = (bitField0_ & ~0x00100000); + encryption_ = null; + if (encryptionBuilder_ != null) { + encryptionBuilder_.dispose(); + encryptionBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Immutable. The encryption to apply to the VM disks.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 19 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.vmmigration.v1.Encryption.Builder getEncryptionBuilder() { + bitField0_ |= 0x00100000; + onChanged(); + return getEncryptionFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Optional. Immutable. The encryption to apply to the VM disks.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 19 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.vmmigration.v1.EncryptionOrBuilder getEncryptionOrBuilder() { + if (encryptionBuilder_ != null) { + return encryptionBuilder_.getMessageOrBuilder(); + } else { + return encryption_ == null + ? com.google.cloud.vmmigration.v1.Encryption.getDefaultInstance() + : encryption_; + } + } + + /** + * + * + *
        +     * Optional. Immutable. The encryption to apply to the VM disks.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 19 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.Encryption, + com.google.cloud.vmmigration.v1.Encryption.Builder, + com.google.cloud.vmmigration.v1.EncryptionOrBuilder> + getEncryptionFieldBuilder() { + if (encryptionBuilder_ == null) { + encryptionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.Encryption, + com.google.cloud.vmmigration.v1.Encryption.Builder, + com.google.cloud.vmmigration.v1.EncryptionOrBuilder>( + getEncryption(), getParentForChildren(), isClean()); + encryption_ = null; + } + return encryptionBuilder_; + } + + private int bootConversion_ = 0; + + /** + * + * + *
        +     * Optional. By default the virtual machine will keep its existing boot
        +     * option. Setting this property will trigger an internal process which will
        +     * convert the virtual machine from using the existing boot option to another.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.BootConversion boot_conversion = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for bootConversion. + */ + @java.lang.Override + public int getBootConversionValue() { + return bootConversion_; + } + + /** + * + * + *
        +     * Optional. By default the virtual machine will keep its existing boot
        +     * option. Setting this property will trigger an internal process which will
        +     * convert the virtual machine from using the existing boot option to another.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.BootConversion boot_conversion = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for bootConversion to set. + * @return This builder for chaining. + */ + public Builder setBootConversionValue(int value) { + bootConversion_ = value; + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. By default the virtual machine will keep its existing boot
        +     * option. Setting this property will trigger an internal process which will
        +     * convert the virtual machine from using the existing boot option to another.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.BootConversion boot_conversion = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bootConversion. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.BootConversion getBootConversion() { + com.google.cloud.vmmigration.v1.BootConversion result = + com.google.cloud.vmmigration.v1.BootConversion.forNumber(bootConversion_); + return result == null ? com.google.cloud.vmmigration.v1.BootConversion.UNRECOGNIZED : result; + } + + /** + * + * + *
        +     * Optional. By default the virtual machine will keep its existing boot
        +     * option. Setting this property will trigger an internal process which will
        +     * convert the virtual machine from using the existing boot option to another.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.BootConversion boot_conversion = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bootConversion to set. + * @return This builder for chaining. + */ + public Builder setBootConversion(com.google.cloud.vmmigration.v1.BootConversion value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00200000; + bootConversion_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. By default the virtual machine will keep its existing boot
        +     * option. Setting this property will trigger an internal process which will
        +     * convert the virtual machine from using the existing boot option to another.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.BootConversion boot_conversion = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearBootConversion() { + bitField0_ = (bitField0_ & ~0x00200000); + bootConversion_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList diskReplicaZones_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureDiskReplicaZonesIsMutable() { + if (!diskReplicaZones_.isModifiable()) { + diskReplicaZones_ = new com.google.protobuf.LazyStringArrayList(diskReplicaZones_); + } + bitField0_ |= 0x00400000; + } + + /** + * + * + *
        +     * Optional. Additional replica zones of the target regional disks.
        +     * If this list is not empty a regional disk will be created. The first
        +     * supported zone would be the one stated in the
        +     * [zone][google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.zone] field.
        +     * The rest are taken from this list. Please refer to the [regional disk
        +     * creation
        +     * API](https://cloud.google.com/compute/docs/regions-zones/global-regional-zonal-resources)
        +     * for further details about regional vs zonal disks. If not specified, a
        +     * zonal disk will be created in the same zone the VM is created.
        +     * 
        + * + * repeated string disk_replica_zones = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the diskReplicaZones. + */ + public com.google.protobuf.ProtocolStringList getDiskReplicaZonesList() { + diskReplicaZones_.makeImmutable(); + return diskReplicaZones_; + } + + /** + * + * + *
        +     * Optional. Additional replica zones of the target regional disks.
        +     * If this list is not empty a regional disk will be created. The first
        +     * supported zone would be the one stated in the
        +     * [zone][google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.zone] field.
        +     * The rest are taken from this list. Please refer to the [regional disk
        +     * creation
        +     * API](https://cloud.google.com/compute/docs/regions-zones/global-regional-zonal-resources)
        +     * for further details about regional vs zonal disks. If not specified, a
        +     * zonal disk will be created in the same zone the VM is created.
        +     * 
        + * + * repeated string disk_replica_zones = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of diskReplicaZones. + */ + public int getDiskReplicaZonesCount() { + return diskReplicaZones_.size(); + } + + /** + * + * + *
        +     * Optional. Additional replica zones of the target regional disks.
        +     * If this list is not empty a regional disk will be created. The first
        +     * supported zone would be the one stated in the
        +     * [zone][google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.zone] field.
        +     * The rest are taken from this list. Please refer to the [regional disk
        +     * creation
        +     * API](https://cloud.google.com/compute/docs/regions-zones/global-regional-zonal-resources)
        +     * for further details about regional vs zonal disks. If not specified, a
        +     * zonal disk will be created in the same zone the VM is created.
        +     * 
        + * + * repeated string disk_replica_zones = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The diskReplicaZones at the given index. + */ + public java.lang.String getDiskReplicaZones(int index) { + return diskReplicaZones_.get(index); + } + + /** + * + * + *
        +     * Optional. Additional replica zones of the target regional disks.
        +     * If this list is not empty a regional disk will be created. The first
        +     * supported zone would be the one stated in the
        +     * [zone][google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.zone] field.
        +     * The rest are taken from this list. Please refer to the [regional disk
        +     * creation
        +     * API](https://cloud.google.com/compute/docs/regions-zones/global-regional-zonal-resources)
        +     * for further details about regional vs zonal disks. If not specified, a
        +     * zonal disk will be created in the same zone the VM is created.
        +     * 
        + * + * repeated string disk_replica_zones = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the diskReplicaZones at the given index. + */ + public com.google.protobuf.ByteString getDiskReplicaZonesBytes(int index) { + return diskReplicaZones_.getByteString(index); + } + + /** + * + * + *
        +     * Optional. Additional replica zones of the target regional disks.
        +     * If this list is not empty a regional disk will be created. The first
        +     * supported zone would be the one stated in the
        +     * [zone][google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.zone] field.
        +     * The rest are taken from this list. Please refer to the [regional disk
        +     * creation
        +     * API](https://cloud.google.com/compute/docs/regions-zones/global-regional-zonal-resources)
        +     * for further details about regional vs zonal disks. If not specified, a
        +     * zonal disk will be created in the same zone the VM is created.
        +     * 
        + * + * repeated string disk_replica_zones = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The diskReplicaZones to set. + * @return This builder for chaining. + */ + public Builder setDiskReplicaZones(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDiskReplicaZonesIsMutable(); + diskReplicaZones_.set(index, value); + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Additional replica zones of the target regional disks.
        +     * If this list is not empty a regional disk will be created. The first
        +     * supported zone would be the one stated in the
        +     * [zone][google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.zone] field.
        +     * The rest are taken from this list. Please refer to the [regional disk
        +     * creation
        +     * API](https://cloud.google.com/compute/docs/regions-zones/global-regional-zonal-resources)
        +     * for further details about regional vs zonal disks. If not specified, a
        +     * zonal disk will be created in the same zone the VM is created.
        +     * 
        + * + * repeated string disk_replica_zones = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The diskReplicaZones to add. + * @return This builder for chaining. + */ + public Builder addDiskReplicaZones(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDiskReplicaZonesIsMutable(); + diskReplicaZones_.add(value); + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Additional replica zones of the target regional disks.
        +     * If this list is not empty a regional disk will be created. The first
        +     * supported zone would be the one stated in the
        +     * [zone][google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.zone] field.
        +     * The rest are taken from this list. Please refer to the [regional disk
        +     * creation
        +     * API](https://cloud.google.com/compute/docs/regions-zones/global-regional-zonal-resources)
        +     * for further details about regional vs zonal disks. If not specified, a
        +     * zonal disk will be created in the same zone the VM is created.
        +     * 
        + * + * repeated string disk_replica_zones = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The diskReplicaZones to add. + * @return This builder for chaining. + */ + public Builder addAllDiskReplicaZones(java.lang.Iterable values) { + ensureDiskReplicaZonesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, diskReplicaZones_); + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Additional replica zones of the target regional disks.
        +     * If this list is not empty a regional disk will be created. The first
        +     * supported zone would be the one stated in the
        +     * [zone][google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.zone] field.
        +     * The rest are taken from this list. Please refer to the [regional disk
        +     * creation
        +     * API](https://cloud.google.com/compute/docs/regions-zones/global-regional-zonal-resources)
        +     * for further details about regional vs zonal disks. If not specified, a
        +     * zonal disk will be created in the same zone the VM is created.
        +     * 
        + * + * repeated string disk_replica_zones = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearDiskReplicaZones() { + diskReplicaZones_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00400000); + ; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Additional replica zones of the target regional disks.
        +     * If this list is not empty a regional disk will be created. The first
        +     * supported zone would be the one stated in the
        +     * [zone][google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.zone] field.
        +     * The rest are taken from this list. Please refer to the [regional disk
        +     * creation
        +     * API](https://cloud.google.com/compute/docs/regions-zones/global-regional-zonal-resources)
        +     * for further details about regional vs zonal disks. If not specified, a
        +     * zonal disk will be created in the same zone the VM is created.
        +     * 
        + * + * repeated string disk_replica_zones = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the diskReplicaZones to add. + * @return This builder for chaining. + */ + public Builder addDiskReplicaZonesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureDiskReplicaZonesIsMutable(); + diskReplicaZones_.add(value); + bitField0_ |= 0x00400000; onChanged(); return this; } diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineTargetDefaultsOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineTargetDefaultsOrBuilder.java index 19ef0117f274..e5b9aa402e9c 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineTargetDefaultsOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineTargetDefaultsOrBuilder.java @@ -160,7 +160,7 @@ public interface ComputeEngineTargetDefaultsOrBuilder * * *
        -   * A map of network tags to associate with the VM.
        +   * A list of network tags to associate with the VM.
            * 
        * * repeated string network_tags = 6; @@ -173,7 +173,7 @@ public interface ComputeEngineTargetDefaultsOrBuilder * * *
        -   * A map of network tags to associate with the VM.
        +   * A list of network tags to associate with the VM.
            * 
        * * repeated string network_tags = 6; @@ -186,7 +186,7 @@ public interface ComputeEngineTargetDefaultsOrBuilder * * *
        -   * A map of network tags to associate with the VM.
        +   * A list of network tags to associate with the VM.
            * 
        * * repeated string network_tags = 6; @@ -200,7 +200,7 @@ public interface ComputeEngineTargetDefaultsOrBuilder * * *
        -   * A map of network tags to associate with the VM.
        +   * A list of network tags to associate with the VM.
            * 
        * * repeated string network_tags = 6; @@ -271,10 +271,10 @@ com.google.cloud.vmmigration.v1.NetworkInterfaceOrBuilder getNetworkInterfacesOr * * *
        -   * The service account to associate the VM with.
        +   * Optional. The service account to associate the VM with.
            * 
        * - * string service_account = 8; + * string service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @return The serviceAccount. */ @@ -284,10 +284,10 @@ com.google.cloud.vmmigration.v1.NetworkInterfaceOrBuilder getNetworkInterfacesOr * * *
        -   * The service account to associate the VM with.
        +   * Optional. The service account to associate the VM with.
            * 
        * - * string service_account = 8; + * string service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for serviceAccount. */ @@ -493,7 +493,7 @@ java.lang.String getLabelsOrDefault( * *
            * Defines whether the instance has Secure Boot enabled.
        -   * This can be set to true only if the vm boot option is EFI.
        +   * This can be set to true only if the VM boot option is EFI.
            * 
        * * bool secure_boot = 14; @@ -506,7 +506,36 @@ java.lang.String getLabelsOrDefault( * * *
        -   * Output only. The VM Boot Option, as set in the source vm.
        +   * Optional. Defines whether the instance has vTPM enabled.
        +   * This can be set to true only if the VM boot option is EFI.
        +   * 
        + * + * bool enable_vtpm = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableVtpm. + */ + boolean getEnableVtpm(); + + /** + * + * + *
        +   * Optional. Defines whether the instance has integrity monitoring enabled.
        +   * This can be set to true only if the VM boot option is EFI, and vTPM is
        +   * enabled.
        +   * 
        + * + * bool enable_integrity_monitoring = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableIntegrityMonitoring. + */ + boolean getEnableIntegrityMonitoring(); + + /** + * + * + *
        +   * Output only. The VM Boot Option, as set in the source VM.
            * 
        * * @@ -521,7 +550,7 @@ java.lang.String getLabelsOrDefault( * * *
        -   * Output only. The VM Boot Option, as set in the source vm.
        +   * Output only. The VM Boot Option, as set in the source VM.
            * 
        * * @@ -674,4 +703,167 @@ java.lang.String getMetadataOrDefault( * @return The bytes for hostname. */ com.google.protobuf.ByteString getHostnameBytes(); + + /** + * + * + *
        +   * Optional. Immutable. The encryption to apply to the VM disks.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 19 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the encryption field is set. + */ + boolean hasEncryption(); + + /** + * + * + *
        +   * Optional. Immutable. The encryption to apply to the VM disks.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 19 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The encryption. + */ + com.google.cloud.vmmigration.v1.Encryption getEncryption(); + + /** + * + * + *
        +   * Optional. Immutable. The encryption to apply to the VM disks.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 19 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + com.google.cloud.vmmigration.v1.EncryptionOrBuilder getEncryptionOrBuilder(); + + /** + * + * + *
        +   * Optional. By default the virtual machine will keep its existing boot
        +   * option. Setting this property will trigger an internal process which will
        +   * convert the virtual machine from using the existing boot option to another.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.BootConversion boot_conversion = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for bootConversion. + */ + int getBootConversionValue(); + + /** + * + * + *
        +   * Optional. By default the virtual machine will keep its existing boot
        +   * option. Setting this property will trigger an internal process which will
        +   * convert the virtual machine from using the existing boot option to another.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.BootConversion boot_conversion = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bootConversion. + */ + com.google.cloud.vmmigration.v1.BootConversion getBootConversion(); + + /** + * + * + *
        +   * Optional. Additional replica zones of the target regional disks.
        +   * If this list is not empty a regional disk will be created. The first
        +   * supported zone would be the one stated in the
        +   * [zone][google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.zone] field.
        +   * The rest are taken from this list. Please refer to the [regional disk
        +   * creation
        +   * API](https://cloud.google.com/compute/docs/regions-zones/global-regional-zonal-resources)
        +   * for further details about regional vs zonal disks. If not specified, a
        +   * zonal disk will be created in the same zone the VM is created.
        +   * 
        + * + * repeated string disk_replica_zones = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the diskReplicaZones. + */ + java.util.List getDiskReplicaZonesList(); + + /** + * + * + *
        +   * Optional. Additional replica zones of the target regional disks.
        +   * If this list is not empty a regional disk will be created. The first
        +   * supported zone would be the one stated in the
        +   * [zone][google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.zone] field.
        +   * The rest are taken from this list. Please refer to the [regional disk
        +   * creation
        +   * API](https://cloud.google.com/compute/docs/regions-zones/global-regional-zonal-resources)
        +   * for further details about regional vs zonal disks. If not specified, a
        +   * zonal disk will be created in the same zone the VM is created.
        +   * 
        + * + * repeated string disk_replica_zones = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of diskReplicaZones. + */ + int getDiskReplicaZonesCount(); + + /** + * + * + *
        +   * Optional. Additional replica zones of the target regional disks.
        +   * If this list is not empty a regional disk will be created. The first
        +   * supported zone would be the one stated in the
        +   * [zone][google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.zone] field.
        +   * The rest are taken from this list. Please refer to the [regional disk
        +   * creation
        +   * API](https://cloud.google.com/compute/docs/regions-zones/global-regional-zonal-resources)
        +   * for further details about regional vs zonal disks. If not specified, a
        +   * zonal disk will be created in the same zone the VM is created.
        +   * 
        + * + * repeated string disk_replica_zones = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The diskReplicaZones at the given index. + */ + java.lang.String getDiskReplicaZones(int index); + + /** + * + * + *
        +   * Optional. Additional replica zones of the target regional disks.
        +   * If this list is not empty a regional disk will be created. The first
        +   * supported zone would be the one stated in the
        +   * [zone][google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.zone] field.
        +   * The rest are taken from this list. Please refer to the [regional disk
        +   * creation
        +   * API](https://cloud.google.com/compute/docs/regions-zones/global-regional-zonal-resources)
        +   * for further details about regional vs zonal disks. If not specified, a
        +   * zonal disk will be created in the same zone the VM is created.
        +   * 
        + * + * repeated string disk_replica_zones = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the diskReplicaZones at the given index. + */ + com.google.protobuf.ByteString getDiskReplicaZonesBytes(int index); } diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineTargetDetails.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineTargetDetails.java index f192c3d64d16..959b0db31ed4 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineTargetDetails.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineTargetDetails.java @@ -54,6 +54,8 @@ private ComputeEngineTargetDetails() { bootOption_ = 0; additionalLicenses_ = com.google.protobuf.LazyStringArrayList.emptyList(); hostname_ = ""; + bootConversion_ = 0; + diskReplicaZones_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @@ -367,7 +369,7 @@ public com.google.protobuf.ByteString getMachineTypeBytes() { * * *
        -   * A map of network tags to associate with the VM.
        +   * A list of network tags to associate with the VM.
            * 
        * * repeated string network_tags = 6; @@ -382,7 +384,7 @@ public com.google.protobuf.ProtocolStringList getNetworkTagsList() { * * *
        -   * A map of network tags to associate with the VM.
        +   * A list of network tags to associate with the VM.
            * 
        * * repeated string network_tags = 6; @@ -397,7 +399,7 @@ public int getNetworkTagsCount() { * * *
        -   * A map of network tags to associate with the VM.
        +   * A list of network tags to associate with the VM.
            * 
        * * repeated string network_tags = 6; @@ -413,7 +415,7 @@ public java.lang.String getNetworkTags(int index) { * * *
        -   * A map of network tags to associate with the VM.
        +   * A list of network tags to associate with the VM.
            * 
        * * repeated string network_tags = 6; @@ -856,7 +858,7 @@ public com.google.cloud.vmmigration.v1.ComputeScheduling getComputeScheduling() * *
            * Defines whether the instance has Secure Boot enabled.
        -   * This can be set to true only if the vm boot option is EFI.
        +   * This can be set to true only if the VM boot option is EFI.
            * 
        * * bool secure_boot = 14; @@ -868,6 +870,44 @@ public boolean getSecureBoot() { return secureBoot_; } + public static final int ENABLE_VTPM_FIELD_NUMBER = 21; + private boolean enableVtpm_ = false; + + /** + * + * + *
        +   * Optional. Defines whether the instance has vTPM enabled.
        +   * 
        + * + * bool enable_vtpm = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableVtpm. + */ + @java.lang.Override + public boolean getEnableVtpm() { + return enableVtpm_; + } + + public static final int ENABLE_INTEGRITY_MONITORING_FIELD_NUMBER = 22; + private boolean enableIntegrityMonitoring_ = false; + + /** + * + * + *
        +   * Optional. Defines whether the instance has integrity monitoring enabled.
        +   * 
        + * + * bool enable_integrity_monitoring = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableIntegrityMonitoring. + */ + @java.lang.Override + public boolean getEnableIntegrityMonitoring() { + return enableIntegrityMonitoring_; + } + public static final int BOOT_OPTION_FIELD_NUMBER = 15; private int bootOption_ = 0; @@ -875,7 +915,7 @@ public boolean getSecureBoot() { * * *
        -   * The VM Boot Option, as set in the source vm.
        +   * The VM Boot Option, as set in the source VM.
            * 
        * * .google.cloud.vmmigration.v1.ComputeEngineBootOption boot_option = 15; @@ -891,7 +931,7 @@ public int getBootOptionValue() { * * *
        -   * The VM Boot Option, as set in the source vm.
        +   * The VM Boot Option, as set in the source VM.
            * 
        * * .google.cloud.vmmigration.v1.ComputeEngineBootOption boot_option = 15; @@ -1135,6 +1175,210 @@ public com.google.protobuf.ByteString getHostnameBytes() { } } + public static final int ENCRYPTION_FIELD_NUMBER = 19; + private com.google.cloud.vmmigration.v1.Encryption encryption_; + + /** + * + * + *
        +   * Optional. The encryption to apply to the VM disks.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the encryption field is set. + */ + @java.lang.Override + public boolean hasEncryption() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
        +   * Optional. The encryption to apply to the VM disks.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The encryption. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.Encryption getEncryption() { + return encryption_ == null + ? com.google.cloud.vmmigration.v1.Encryption.getDefaultInstance() + : encryption_; + } + + /** + * + * + *
        +   * Optional. The encryption to apply to the VM disks.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.EncryptionOrBuilder getEncryptionOrBuilder() { + return encryption_ == null + ? com.google.cloud.vmmigration.v1.Encryption.getDefaultInstance() + : encryption_; + } + + public static final int BOOT_CONVERSION_FIELD_NUMBER = 20; + private int bootConversion_ = 0; + + /** + * + * + *
        +   * Optional. By default the virtual machine will keep its existing boot
        +   * option. Setting this property will trigger an internal process which will
        +   * convert the virtual machine from using the existing boot option to another.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.BootConversion boot_conversion = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for bootConversion. + */ + @java.lang.Override + public int getBootConversionValue() { + return bootConversion_; + } + + /** + * + * + *
        +   * Optional. By default the virtual machine will keep its existing boot
        +   * option. Setting this property will trigger an internal process which will
        +   * convert the virtual machine from using the existing boot option to another.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.BootConversion boot_conversion = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bootConversion. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.BootConversion getBootConversion() { + com.google.cloud.vmmigration.v1.BootConversion result = + com.google.cloud.vmmigration.v1.BootConversion.forNumber(bootConversion_); + return result == null ? com.google.cloud.vmmigration.v1.BootConversion.UNRECOGNIZED : result; + } + + public static final int DISK_REPLICA_ZONES_FIELD_NUMBER = 24; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList diskReplicaZones_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
        +   * Optional. Additional replica zones of the target regional disks.
        +   * If this list is not empty a regional disk will be created. The first
        +   * supported zone would be the one stated in the
        +   * [zone][google.cloud.vmmigration.v1.ComputeEngineTargetDetails.zone] field.
        +   * The rest are taken from this list. Please refer to the [regional disk
        +   * creation
        +   * API](https://cloud.google.com/compute/docs/regions-zones/global-regional-zonal-resources)
        +   * for further details about regional vs zonal disks. If not specified, a
        +   * zonal disk will be created in the same zone the VM is created.
        +   * 
        + * + * repeated string disk_replica_zones = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the diskReplicaZones. + */ + public com.google.protobuf.ProtocolStringList getDiskReplicaZonesList() { + return diskReplicaZones_; + } + + /** + * + * + *
        +   * Optional. Additional replica zones of the target regional disks.
        +   * If this list is not empty a regional disk will be created. The first
        +   * supported zone would be the one stated in the
        +   * [zone][google.cloud.vmmigration.v1.ComputeEngineTargetDetails.zone] field.
        +   * The rest are taken from this list. Please refer to the [regional disk
        +   * creation
        +   * API](https://cloud.google.com/compute/docs/regions-zones/global-regional-zonal-resources)
        +   * for further details about regional vs zonal disks. If not specified, a
        +   * zonal disk will be created in the same zone the VM is created.
        +   * 
        + * + * repeated string disk_replica_zones = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of diskReplicaZones. + */ + public int getDiskReplicaZonesCount() { + return diskReplicaZones_.size(); + } + + /** + * + * + *
        +   * Optional. Additional replica zones of the target regional disks.
        +   * If this list is not empty a regional disk will be created. The first
        +   * supported zone would be the one stated in the
        +   * [zone][google.cloud.vmmigration.v1.ComputeEngineTargetDetails.zone] field.
        +   * The rest are taken from this list. Please refer to the [regional disk
        +   * creation
        +   * API](https://cloud.google.com/compute/docs/regions-zones/global-regional-zonal-resources)
        +   * for further details about regional vs zonal disks. If not specified, a
        +   * zonal disk will be created in the same zone the VM is created.
        +   * 
        + * + * repeated string disk_replica_zones = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The diskReplicaZones at the given index. + */ + public java.lang.String getDiskReplicaZones(int index) { + return diskReplicaZones_.get(index); + } + + /** + * + * + *
        +   * Optional. Additional replica zones of the target regional disks.
        +   * If this list is not empty a regional disk will be created. The first
        +   * supported zone would be the one stated in the
        +   * [zone][google.cloud.vmmigration.v1.ComputeEngineTargetDetails.zone] field.
        +   * The rest are taken from this list. Please refer to the [regional disk
        +   * creation
        +   * API](https://cloud.google.com/compute/docs/regions-zones/global-regional-zonal-resources)
        +   * for further details about regional vs zonal disks. If not specified, a
        +   * zonal disk will be created in the same zone the VM is created.
        +   * 
        + * + * repeated string disk_replica_zones = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the diskReplicaZones at the given index. + */ + public com.google.protobuf.ByteString getDiskReplicaZonesBytes(int index) { + return diskReplicaZones_.getByteString(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1210,6 +1454,22 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 18, hostname_); } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(19, getEncryption()); + } + if (bootConversion_ + != com.google.cloud.vmmigration.v1.BootConversion.BOOT_CONVERSION_UNSPECIFIED.getNumber()) { + output.writeEnum(20, bootConversion_); + } + if (enableVtpm_ != false) { + output.writeBool(21, enableVtpm_); + } + if (enableIntegrityMonitoring_ != false) { + output.writeBool(22, enableIntegrityMonitoring_); + } + for (int i = 0; i < diskReplicaZones_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 24, diskReplicaZones_.getRaw(i)); + } getUnknownFields().writeTo(output); } @@ -1307,6 +1567,27 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, hostname_); } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getEncryption()); + } + if (bootConversion_ + != com.google.cloud.vmmigration.v1.BootConversion.BOOT_CONVERSION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(20, bootConversion_); + } + if (enableVtpm_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(21, enableVtpm_); + } + if (enableIntegrityMonitoring_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(22, enableIntegrityMonitoring_); + } + { + int dataSize = 0; + for (int i = 0; i < diskReplicaZones_.size(); i++) { + dataSize += computeStringSizeNoTag(diskReplicaZones_.getRaw(i)); + } + size += dataSize; + size += 2 * getDiskReplicaZonesList().size(); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1343,10 +1624,18 @@ public boolean equals(final java.lang.Object obj) { if (!getComputeScheduling().equals(other.getComputeScheduling())) return false; } if (getSecureBoot() != other.getSecureBoot()) return false; + if (getEnableVtpm() != other.getEnableVtpm()) return false; + if (getEnableIntegrityMonitoring() != other.getEnableIntegrityMonitoring()) return false; if (bootOption_ != other.bootOption_) return false; if (!internalGetMetadata().equals(other.internalGetMetadata())) return false; if (!getAdditionalLicensesList().equals(other.getAdditionalLicensesList())) return false; if (!getHostname().equals(other.getHostname())) return false; + if (hasEncryption() != other.hasEncryption()) return false; + if (hasEncryption()) { + if (!getEncryption().equals(other.getEncryption())) return false; + } + if (bootConversion_ != other.bootConversion_) return false; + if (!getDiskReplicaZonesList().equals(other.getDiskReplicaZonesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1396,6 +1685,10 @@ public int hashCode() { } hash = (37 * hash) + SECURE_BOOT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSecureBoot()); + hash = (37 * hash) + ENABLE_VTPM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableVtpm()); + hash = (37 * hash) + ENABLE_INTEGRITY_MONITORING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableIntegrityMonitoring()); hash = (37 * hash) + BOOT_OPTION_FIELD_NUMBER; hash = (53 * hash) + bootOption_; if (!internalGetMetadata().getMap().isEmpty()) { @@ -1408,6 +1701,16 @@ public int hashCode() { } hash = (37 * hash) + HOSTNAME_FIELD_NUMBER; hash = (53 * hash) + getHostname().hashCode(); + if (hasEncryption()) { + hash = (37 * hash) + ENCRYPTION_FIELD_NUMBER; + hash = (53 * hash) + getEncryption().hashCode(); + } + hash = (37 * hash) + BOOT_CONVERSION_FIELD_NUMBER; + hash = (53 * hash) + bootConversion_; + if (getDiskReplicaZonesCount() > 0) { + hash = (37 * hash) + DISK_REPLICA_ZONES_FIELD_NUMBER; + hash = (53 * hash) + getDiskReplicaZonesList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1580,6 +1883,7 @@ private void maybeForceBuilderInitialization() { getNetworkInterfacesFieldBuilder(); getAppliedLicenseFieldBuilder(); getComputeSchedulingFieldBuilder(); + getEncryptionFieldBuilder(); } } @@ -1615,10 +1919,19 @@ public Builder clear() { computeSchedulingBuilder_ = null; } secureBoot_ = false; + enableVtpm_ = false; + enableIntegrityMonitoring_ = false; bootOption_ = 0; internalGetMutableMetadata().clear(); additionalLicenses_ = com.google.protobuf.LazyStringArrayList.emptyList(); hostname_ = ""; + encryption_ = null; + if (encryptionBuilder_ != null) { + encryptionBuilder_.dispose(); + encryptionBuilder_ = null; + } + bootConversion_ = 0; + diskReplicaZones_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @@ -1718,19 +2031,36 @@ private void buildPartial0(com.google.cloud.vmmigration.v1.ComputeEngineTargetDe result.secureBoot_ = secureBoot_; } if (((from_bitField0_ & 0x00004000) != 0)) { - result.bootOption_ = bootOption_; + result.enableVtpm_ = enableVtpm_; } if (((from_bitField0_ & 0x00008000) != 0)) { + result.enableIntegrityMonitoring_ = enableIntegrityMonitoring_; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.bootOption_ = bootOption_; + } + if (((from_bitField0_ & 0x00020000) != 0)) { result.metadata_ = internalGetMetadata(); result.metadata_.makeImmutable(); } - if (((from_bitField0_ & 0x00010000) != 0)) { + if (((from_bitField0_ & 0x00040000) != 0)) { additionalLicenses_.makeImmutable(); result.additionalLicenses_ = additionalLicenses_; } - if (((from_bitField0_ & 0x00020000) != 0)) { + if (((from_bitField0_ & 0x00080000) != 0)) { result.hostname_ = hostname_; } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.encryption_ = encryptionBuilder_ == null ? encryption_ : encryptionBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00200000) != 0)) { + result.bootConversion_ = bootConversion_; + } + if (((from_bitField0_ & 0x00400000) != 0)) { + diskReplicaZones_.makeImmutable(); + result.diskReplicaZones_ = diskReplicaZones_; + } result.bitField0_ |= to_bitField0_; } @@ -1864,15 +2194,21 @@ public Builder mergeFrom(com.google.cloud.vmmigration.v1.ComputeEngineTargetDeta if (other.getSecureBoot() != false) { setSecureBoot(other.getSecureBoot()); } + if (other.getEnableVtpm() != false) { + setEnableVtpm(other.getEnableVtpm()); + } + if (other.getEnableIntegrityMonitoring() != false) { + setEnableIntegrityMonitoring(other.getEnableIntegrityMonitoring()); + } if (other.bootOption_ != 0) { setBootOptionValue(other.getBootOptionValue()); } internalGetMutableMetadata().mergeFrom(other.internalGetMetadata()); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00020000; if (!other.additionalLicenses_.isEmpty()) { if (additionalLicenses_.isEmpty()) { additionalLicenses_ = other.additionalLicenses_; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00040000; } else { ensureAdditionalLicensesIsMutable(); additionalLicenses_.addAll(other.additionalLicenses_); @@ -1881,7 +2217,23 @@ public Builder mergeFrom(com.google.cloud.vmmigration.v1.ComputeEngineTargetDeta } if (!other.getHostname().isEmpty()) { hostname_ = other.hostname_; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00080000; + onChanged(); + } + if (other.hasEncryption()) { + mergeEncryption(other.getEncryption()); + } + if (other.bootConversion_ != 0) { + setBootConversionValue(other.getBootConversionValue()); + } + if (!other.diskReplicaZones_.isEmpty()) { + if (diskReplicaZones_.isEmpty()) { + diskReplicaZones_ = other.diskReplicaZones_; + bitField0_ |= 0x00400000; + } else { + ensureDiskReplicaZonesIsMutable(); + diskReplicaZones_.addAll(other.diskReplicaZones_); + } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -2013,7 +2365,7 @@ public Builder mergeFrom( case 120: { bootOption_ = input.readEnum(); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00010000; break; } // case 120 case 130: @@ -2025,7 +2377,7 @@ public Builder mergeFrom( internalGetMutableMetadata() .getMutableMap() .put(metadata__.getKey(), metadata__.getValue()); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00020000; break; } // case 130 case 138: @@ -2038,9 +2390,40 @@ public Builder mergeFrom( case 146: { hostname_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00080000; break; } // case 146 + case 154: + { + input.readMessage(getEncryptionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00100000; + break; + } // case 154 + case 160: + { + bootConversion_ = input.readEnum(); + bitField0_ |= 0x00200000; + break; + } // case 160 + case 168: + { + enableVtpm_ = input.readBool(); + bitField0_ |= 0x00004000; + break; + } // case 168 + case 176: + { + enableIntegrityMonitoring_ = input.readBool(); + bitField0_ |= 0x00008000; + break; + } // case 176 + case 194: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureDiskReplicaZonesIsMutable(); + diskReplicaZones_.add(s); + break; + } // case 194 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2629,7 +3012,7 @@ private void ensureNetworkTagsIsMutable() { * * *
        -     * A map of network tags to associate with the VM.
        +     * A list of network tags to associate with the VM.
              * 
        * * repeated string network_tags = 6; @@ -2645,7 +3028,7 @@ public com.google.protobuf.ProtocolStringList getNetworkTagsList() { * * *
        -     * A map of network tags to associate with the VM.
        +     * A list of network tags to associate with the VM.
              * 
        * * repeated string network_tags = 6; @@ -2660,7 +3043,7 @@ public int getNetworkTagsCount() { * * *
        -     * A map of network tags to associate with the VM.
        +     * A list of network tags to associate with the VM.
              * 
        * * repeated string network_tags = 6; @@ -2676,7 +3059,7 @@ public java.lang.String getNetworkTags(int index) { * * *
        -     * A map of network tags to associate with the VM.
        +     * A list of network tags to associate with the VM.
              * 
        * * repeated string network_tags = 6; @@ -2692,7 +3075,7 @@ public com.google.protobuf.ByteString getNetworkTagsBytes(int index) { * * *
        -     * A map of network tags to associate with the VM.
        +     * A list of network tags to associate with the VM.
              * 
        * * repeated string network_tags = 6; @@ -2716,7 +3099,7 @@ public Builder setNetworkTags(int index, java.lang.String value) { * * *
        -     * A map of network tags to associate with the VM.
        +     * A list of network tags to associate with the VM.
              * 
        * * repeated string network_tags = 6; @@ -2739,7 +3122,7 @@ public Builder addNetworkTags(java.lang.String value) { * * *
        -     * A map of network tags to associate with the VM.
        +     * A list of network tags to associate with the VM.
              * 
        * * repeated string network_tags = 6; @@ -2759,7 +3142,7 @@ public Builder addAllNetworkTags(java.lang.Iterable values) { * * *
        -     * A map of network tags to associate with the VM.
        +     * A list of network tags to associate with the VM.
              * 
        * * repeated string network_tags = 6; @@ -2778,7 +3161,7 @@ public Builder clearNetworkTags() { * * *
        -     * A map of network tags to associate with the VM.
        +     * A list of network tags to associate with the VM.
              * 
        * * repeated string network_tags = 6; @@ -4053,7 +4436,7 @@ public com.google.cloud.vmmigration.v1.ComputeScheduling.Builder getComputeSched * *
              * Defines whether the instance has Secure Boot enabled.
        -     * This can be set to true only if the vm boot option is EFI.
        +     * This can be set to true only if the VM boot option is EFI.
              * 
        * * bool secure_boot = 14; @@ -4070,7 +4453,7 @@ public boolean getSecureBoot() { * *
              * Defines whether the instance has Secure Boot enabled.
        -     * This can be set to true only if the vm boot option is EFI.
        +     * This can be set to true only if the VM boot option is EFI.
              * 
        * * bool secure_boot = 14; @@ -4091,7 +4474,7 @@ public Builder setSecureBoot(boolean value) { * *
              * Defines whether the instance has Secure Boot enabled.
        -     * This can be set to true only if the vm boot option is EFI.
        +     * This can be set to true only if the VM boot option is EFI.
              * 
        * * bool secure_boot = 14; @@ -4105,38 +4488,39 @@ public Builder clearSecureBoot() { return this; } - private int bootOption_ = 0; + private boolean enableVtpm_; /** * * *
        -     * The VM Boot Option, as set in the source vm.
        +     * Optional. Defines whether the instance has vTPM enabled.
              * 
        * - * .google.cloud.vmmigration.v1.ComputeEngineBootOption boot_option = 15; + * bool enable_vtpm = 21 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The enum numeric value on the wire for bootOption. + * @return The enableVtpm. */ @java.lang.Override - public int getBootOptionValue() { - return bootOption_; + public boolean getEnableVtpm() { + return enableVtpm_; } /** * * *
        -     * The VM Boot Option, as set in the source vm.
        +     * Optional. Defines whether the instance has vTPM enabled.
              * 
        * - * .google.cloud.vmmigration.v1.ComputeEngineBootOption boot_option = 15; + * bool enable_vtpm = 21 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The enum numeric value on the wire for bootOption to set. + * @param value The enableVtpm to set. * @return This builder for chaining. */ - public Builder setBootOptionValue(int value) { - bootOption_ = value; + public Builder setEnableVtpm(boolean value) { + + enableVtpm_ = value; bitField0_ |= 0x00004000; onChanged(); return this; @@ -4146,101 +4530,212 @@ public Builder setBootOptionValue(int value) { * * *
        -     * The VM Boot Option, as set in the source vm.
        +     * Optional. Defines whether the instance has vTPM enabled.
              * 
        * - * .google.cloud.vmmigration.v1.ComputeEngineBootOption boot_option = 15; + * bool enable_vtpm = 21 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bootOption. + * @return This builder for chaining. */ - @java.lang.Override - public com.google.cloud.vmmigration.v1.ComputeEngineBootOption getBootOption() { - com.google.cloud.vmmigration.v1.ComputeEngineBootOption result = - com.google.cloud.vmmigration.v1.ComputeEngineBootOption.forNumber(bootOption_); - return result == null - ? com.google.cloud.vmmigration.v1.ComputeEngineBootOption.UNRECOGNIZED - : result; + public Builder clearEnableVtpm() { + bitField0_ = (bitField0_ & ~0x00004000); + enableVtpm_ = false; + onChanged(); + return this; } + private boolean enableIntegrityMonitoring_; + /** * * *
        -     * The VM Boot Option, as set in the source vm.
        +     * Optional. Defines whether the instance has integrity monitoring enabled.
              * 
        * - * .google.cloud.vmmigration.v1.ComputeEngineBootOption boot_option = 15; + * bool enable_integrity_monitoring = 22 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The bootOption to set. - * @return This builder for chaining. + * @return The enableIntegrityMonitoring. */ - public Builder setBootOption(com.google.cloud.vmmigration.v1.ComputeEngineBootOption value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00004000; - bootOption_ = value.getNumber(); - onChanged(); - return this; + @java.lang.Override + public boolean getEnableIntegrityMonitoring() { + return enableIntegrityMonitoring_; } /** * * *
        -     * The VM Boot Option, as set in the source vm.
        +     * Optional. Defines whether the instance has integrity monitoring enabled.
              * 
        * - * .google.cloud.vmmigration.v1.ComputeEngineBootOption boot_option = 15; + * bool enable_integrity_monitoring = 22 [(.google.api.field_behavior) = OPTIONAL]; * + * @param value The enableIntegrityMonitoring to set. * @return This builder for chaining. */ - public Builder clearBootOption() { - bitField0_ = (bitField0_ & ~0x00004000); - bootOption_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.MapField metadata_; - - private com.google.protobuf.MapField internalGetMetadata() { - if (metadata_ == null) { - return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); - } - return metadata_; - } + public Builder setEnableIntegrityMonitoring(boolean value) { - private com.google.protobuf.MapField - internalGetMutableMetadata() { - if (metadata_ == null) { - metadata_ = - com.google.protobuf.MapField.newMapField(MetadataDefaultEntryHolder.defaultEntry); - } - if (!metadata_.isMutable()) { - metadata_ = metadata_.copy(); - } + enableIntegrityMonitoring_ = value; bitField0_ |= 0x00008000; onChanged(); - return metadata_; - } - - public int getMetadataCount() { - return internalGetMetadata().getMap().size(); + return this; } /** * * *
        -     * The metadata key/value pairs to assign to the VM.
        +     * Optional. Defines whether the instance has integrity monitoring enabled.
              * 
        * - * map<string, string> metadata = 16; + * bool enable_integrity_monitoring = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. */ - @java.lang.Override - public boolean containsMetadata(java.lang.String key) { - if (key == null) { + public Builder clearEnableIntegrityMonitoring() { + bitField0_ = (bitField0_ & ~0x00008000); + enableIntegrityMonitoring_ = false; + onChanged(); + return this; + } + + private int bootOption_ = 0; + + /** + * + * + *
        +     * The VM Boot Option, as set in the source VM.
        +     * 
        + * + * .google.cloud.vmmigration.v1.ComputeEngineBootOption boot_option = 15; + * + * @return The enum numeric value on the wire for bootOption. + */ + @java.lang.Override + public int getBootOptionValue() { + return bootOption_; + } + + /** + * + * + *
        +     * The VM Boot Option, as set in the source VM.
        +     * 
        + * + * .google.cloud.vmmigration.v1.ComputeEngineBootOption boot_option = 15; + * + * @param value The enum numeric value on the wire for bootOption to set. + * @return This builder for chaining. + */ + public Builder setBootOptionValue(int value) { + bootOption_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + /** + * + * + *
        +     * The VM Boot Option, as set in the source VM.
        +     * 
        + * + * .google.cloud.vmmigration.v1.ComputeEngineBootOption boot_option = 15; + * + * @return The bootOption. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ComputeEngineBootOption getBootOption() { + com.google.cloud.vmmigration.v1.ComputeEngineBootOption result = + com.google.cloud.vmmigration.v1.ComputeEngineBootOption.forNumber(bootOption_); + return result == null + ? com.google.cloud.vmmigration.v1.ComputeEngineBootOption.UNRECOGNIZED + : result; + } + + /** + * + * + *
        +     * The VM Boot Option, as set in the source VM.
        +     * 
        + * + * .google.cloud.vmmigration.v1.ComputeEngineBootOption boot_option = 15; + * + * @param value The bootOption to set. + * @return This builder for chaining. + */ + public Builder setBootOption(com.google.cloud.vmmigration.v1.ComputeEngineBootOption value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00010000; + bootOption_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
        +     * The VM Boot Option, as set in the source VM.
        +     * 
        + * + * .google.cloud.vmmigration.v1.ComputeEngineBootOption boot_option = 15; + * + * @return This builder for chaining. + */ + public Builder clearBootOption() { + bitField0_ = (bitField0_ & ~0x00010000); + bootOption_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.MapField metadata_; + + private com.google.protobuf.MapField internalGetMetadata() { + if (metadata_ == null) { + return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); + } + return metadata_; + } + + private com.google.protobuf.MapField + internalGetMutableMetadata() { + if (metadata_ == null) { + metadata_ = + com.google.protobuf.MapField.newMapField(MetadataDefaultEntryHolder.defaultEntry); + } + if (!metadata_.isMutable()) { + metadata_ = metadata_.copy(); + } + bitField0_ |= 0x00020000; + onChanged(); + return metadata_; + } + + public int getMetadataCount() { + return internalGetMetadata().getMap().size(); + } + + /** + * + * + *
        +     * The metadata key/value pairs to assign to the VM.
        +     * 
        + * + * map<string, string> metadata = 16; + */ + @java.lang.Override + public boolean containsMetadata(java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetMetadata().getMap().containsKey(key); @@ -4310,7 +4805,7 @@ public java.lang.String getMetadataOrThrow(java.lang.String key) { } public Builder clearMetadata() { - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00020000); internalGetMutableMetadata().getMutableMap().clear(); return this; } @@ -4335,7 +4830,7 @@ public Builder removeMetadata(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableMetadata() { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00020000; return internalGetMutableMetadata().getMutableMap(); } @@ -4356,7 +4851,7 @@ public Builder putMetadata(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableMetadata().getMutableMap().put(key, value); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00020000; return this; } @@ -4371,7 +4866,7 @@ public Builder putMetadata(java.lang.String key, java.lang.String value) { */ public Builder putAllMetadata(java.util.Map values) { internalGetMutableMetadata().getMutableMap().putAll(values); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00020000; return this; } @@ -4382,7 +4877,7 @@ private void ensureAdditionalLicensesIsMutable() { if (!additionalLicenses_.isModifiable()) { additionalLicenses_ = new com.google.protobuf.LazyStringArrayList(additionalLicenses_); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00040000; } /** @@ -4467,7 +4962,7 @@ public Builder setAdditionalLicenses(int index, java.lang.String value) { } ensureAdditionalLicensesIsMutable(); additionalLicenses_.set(index, value); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -4490,7 +4985,7 @@ public Builder addAdditionalLicenses(java.lang.String value) { } ensureAdditionalLicensesIsMutable(); additionalLicenses_.add(value); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -4510,7 +5005,7 @@ public Builder addAdditionalLicenses(java.lang.String value) { public Builder addAllAdditionalLicenses(java.lang.Iterable values) { ensureAdditionalLicensesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, additionalLicenses_); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -4528,7 +5023,7 @@ public Builder addAllAdditionalLicenses(java.lang.Iterable val */ public Builder clearAdditionalLicenses() { additionalLicenses_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00040000); ; onChanged(); return this; @@ -4553,7 +5048,7 @@ public Builder addAdditionalLicensesBytes(com.google.protobuf.ByteString value) checkByteStringIsUtf8(value); ensureAdditionalLicensesIsMutable(); additionalLicenses_.add(value); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -4623,7 +5118,7 @@ public Builder setHostname(java.lang.String value) { throw new NullPointerException(); } hostname_ = value; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -4641,7 +5136,7 @@ public Builder setHostname(java.lang.String value) { */ public Builder clearHostname() { hostname_ = getDefaultInstance().getHostname(); - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00080000); onChanged(); return this; } @@ -4664,7 +5159,599 @@ public Builder setHostnameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); hostname_ = value; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + + private com.google.cloud.vmmigration.v1.Encryption encryption_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.Encryption, + com.google.cloud.vmmigration.v1.Encryption.Builder, + com.google.cloud.vmmigration.v1.EncryptionOrBuilder> + encryptionBuilder_; + + /** + * + * + *
        +     * Optional. The encryption to apply to the VM disks.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the encryption field is set. + */ + public boolean hasEncryption() { + return ((bitField0_ & 0x00100000) != 0); + } + + /** + * + * + *
        +     * Optional. The encryption to apply to the VM disks.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The encryption. + */ + public com.google.cloud.vmmigration.v1.Encryption getEncryption() { + if (encryptionBuilder_ == null) { + return encryption_ == null + ? com.google.cloud.vmmigration.v1.Encryption.getDefaultInstance() + : encryption_; + } else { + return encryptionBuilder_.getMessage(); + } + } + + /** + * + * + *
        +     * Optional. The encryption to apply to the VM disks.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEncryption(com.google.cloud.vmmigration.v1.Encryption value) { + if (encryptionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + encryption_ = value; + } else { + encryptionBuilder_.setMessage(value); + } + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The encryption to apply to the VM disks.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEncryption( + com.google.cloud.vmmigration.v1.Encryption.Builder builderForValue) { + if (encryptionBuilder_ == null) { + encryption_ = builderForValue.build(); + } else { + encryptionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The encryption to apply to the VM disks.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeEncryption(com.google.cloud.vmmigration.v1.Encryption value) { + if (encryptionBuilder_ == null) { + if (((bitField0_ & 0x00100000) != 0) + && encryption_ != null + && encryption_ != com.google.cloud.vmmigration.v1.Encryption.getDefaultInstance()) { + getEncryptionBuilder().mergeFrom(value); + } else { + encryption_ = value; + } + } else { + encryptionBuilder_.mergeFrom(value); + } + if (encryption_ != null) { + bitField0_ |= 0x00100000; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Optional. The encryption to apply to the VM disks.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEncryption() { + bitField0_ = (bitField0_ & ~0x00100000); + encryption_ = null; + if (encryptionBuilder_ != null) { + encryptionBuilder_.dispose(); + encryptionBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The encryption to apply to the VM disks.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vmmigration.v1.Encryption.Builder getEncryptionBuilder() { + bitField0_ |= 0x00100000; + onChanged(); + return getEncryptionFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Optional. The encryption to apply to the VM disks.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vmmigration.v1.EncryptionOrBuilder getEncryptionOrBuilder() { + if (encryptionBuilder_ != null) { + return encryptionBuilder_.getMessageOrBuilder(); + } else { + return encryption_ == null + ? com.google.cloud.vmmigration.v1.Encryption.getDefaultInstance() + : encryption_; + } + } + + /** + * + * + *
        +     * Optional. The encryption to apply to the VM disks.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.Encryption, + com.google.cloud.vmmigration.v1.Encryption.Builder, + com.google.cloud.vmmigration.v1.EncryptionOrBuilder> + getEncryptionFieldBuilder() { + if (encryptionBuilder_ == null) { + encryptionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.Encryption, + com.google.cloud.vmmigration.v1.Encryption.Builder, + com.google.cloud.vmmigration.v1.EncryptionOrBuilder>( + getEncryption(), getParentForChildren(), isClean()); + encryption_ = null; + } + return encryptionBuilder_; + } + + private int bootConversion_ = 0; + + /** + * + * + *
        +     * Optional. By default the virtual machine will keep its existing boot
        +     * option. Setting this property will trigger an internal process which will
        +     * convert the virtual machine from using the existing boot option to another.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.BootConversion boot_conversion = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for bootConversion. + */ + @java.lang.Override + public int getBootConversionValue() { + return bootConversion_; + } + + /** + * + * + *
        +     * Optional. By default the virtual machine will keep its existing boot
        +     * option. Setting this property will trigger an internal process which will
        +     * convert the virtual machine from using the existing boot option to another.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.BootConversion boot_conversion = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for bootConversion to set. + * @return This builder for chaining. + */ + public Builder setBootConversionValue(int value) { + bootConversion_ = value; + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. By default the virtual machine will keep its existing boot
        +     * option. Setting this property will trigger an internal process which will
        +     * convert the virtual machine from using the existing boot option to another.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.BootConversion boot_conversion = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bootConversion. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.BootConversion getBootConversion() { + com.google.cloud.vmmigration.v1.BootConversion result = + com.google.cloud.vmmigration.v1.BootConversion.forNumber(bootConversion_); + return result == null ? com.google.cloud.vmmigration.v1.BootConversion.UNRECOGNIZED : result; + } + + /** + * + * + *
        +     * Optional. By default the virtual machine will keep its existing boot
        +     * option. Setting this property will trigger an internal process which will
        +     * convert the virtual machine from using the existing boot option to another.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.BootConversion boot_conversion = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bootConversion to set. + * @return This builder for chaining. + */ + public Builder setBootConversion(com.google.cloud.vmmigration.v1.BootConversion value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00200000; + bootConversion_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. By default the virtual machine will keep its existing boot
        +     * option. Setting this property will trigger an internal process which will
        +     * convert the virtual machine from using the existing boot option to another.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.BootConversion boot_conversion = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearBootConversion() { + bitField0_ = (bitField0_ & ~0x00200000); + bootConversion_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList diskReplicaZones_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureDiskReplicaZonesIsMutable() { + if (!diskReplicaZones_.isModifiable()) { + diskReplicaZones_ = new com.google.protobuf.LazyStringArrayList(diskReplicaZones_); + } + bitField0_ |= 0x00400000; + } + + /** + * + * + *
        +     * Optional. Additional replica zones of the target regional disks.
        +     * If this list is not empty a regional disk will be created. The first
        +     * supported zone would be the one stated in the
        +     * [zone][google.cloud.vmmigration.v1.ComputeEngineTargetDetails.zone] field.
        +     * The rest are taken from this list. Please refer to the [regional disk
        +     * creation
        +     * API](https://cloud.google.com/compute/docs/regions-zones/global-regional-zonal-resources)
        +     * for further details about regional vs zonal disks. If not specified, a
        +     * zonal disk will be created in the same zone the VM is created.
        +     * 
        + * + * repeated string disk_replica_zones = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the diskReplicaZones. + */ + public com.google.protobuf.ProtocolStringList getDiskReplicaZonesList() { + diskReplicaZones_.makeImmutable(); + return diskReplicaZones_; + } + + /** + * + * + *
        +     * Optional. Additional replica zones of the target regional disks.
        +     * If this list is not empty a regional disk will be created. The first
        +     * supported zone would be the one stated in the
        +     * [zone][google.cloud.vmmigration.v1.ComputeEngineTargetDetails.zone] field.
        +     * The rest are taken from this list. Please refer to the [regional disk
        +     * creation
        +     * API](https://cloud.google.com/compute/docs/regions-zones/global-regional-zonal-resources)
        +     * for further details about regional vs zonal disks. If not specified, a
        +     * zonal disk will be created in the same zone the VM is created.
        +     * 
        + * + * repeated string disk_replica_zones = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of diskReplicaZones. + */ + public int getDiskReplicaZonesCount() { + return diskReplicaZones_.size(); + } + + /** + * + * + *
        +     * Optional. Additional replica zones of the target regional disks.
        +     * If this list is not empty a regional disk will be created. The first
        +     * supported zone would be the one stated in the
        +     * [zone][google.cloud.vmmigration.v1.ComputeEngineTargetDetails.zone] field.
        +     * The rest are taken from this list. Please refer to the [regional disk
        +     * creation
        +     * API](https://cloud.google.com/compute/docs/regions-zones/global-regional-zonal-resources)
        +     * for further details about regional vs zonal disks. If not specified, a
        +     * zonal disk will be created in the same zone the VM is created.
        +     * 
        + * + * repeated string disk_replica_zones = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The diskReplicaZones at the given index. + */ + public java.lang.String getDiskReplicaZones(int index) { + return diskReplicaZones_.get(index); + } + + /** + * + * + *
        +     * Optional. Additional replica zones of the target regional disks.
        +     * If this list is not empty a regional disk will be created. The first
        +     * supported zone would be the one stated in the
        +     * [zone][google.cloud.vmmigration.v1.ComputeEngineTargetDetails.zone] field.
        +     * The rest are taken from this list. Please refer to the [regional disk
        +     * creation
        +     * API](https://cloud.google.com/compute/docs/regions-zones/global-regional-zonal-resources)
        +     * for further details about regional vs zonal disks. If not specified, a
        +     * zonal disk will be created in the same zone the VM is created.
        +     * 
        + * + * repeated string disk_replica_zones = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the diskReplicaZones at the given index. + */ + public com.google.protobuf.ByteString getDiskReplicaZonesBytes(int index) { + return diskReplicaZones_.getByteString(index); + } + + /** + * + * + *
        +     * Optional. Additional replica zones of the target regional disks.
        +     * If this list is not empty a regional disk will be created. The first
        +     * supported zone would be the one stated in the
        +     * [zone][google.cloud.vmmigration.v1.ComputeEngineTargetDetails.zone] field.
        +     * The rest are taken from this list. Please refer to the [regional disk
        +     * creation
        +     * API](https://cloud.google.com/compute/docs/regions-zones/global-regional-zonal-resources)
        +     * for further details about regional vs zonal disks. If not specified, a
        +     * zonal disk will be created in the same zone the VM is created.
        +     * 
        + * + * repeated string disk_replica_zones = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The diskReplicaZones to set. + * @return This builder for chaining. + */ + public Builder setDiskReplicaZones(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDiskReplicaZonesIsMutable(); + diskReplicaZones_.set(index, value); + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Additional replica zones of the target regional disks.
        +     * If this list is not empty a regional disk will be created. The first
        +     * supported zone would be the one stated in the
        +     * [zone][google.cloud.vmmigration.v1.ComputeEngineTargetDetails.zone] field.
        +     * The rest are taken from this list. Please refer to the [regional disk
        +     * creation
        +     * API](https://cloud.google.com/compute/docs/regions-zones/global-regional-zonal-resources)
        +     * for further details about regional vs zonal disks. If not specified, a
        +     * zonal disk will be created in the same zone the VM is created.
        +     * 
        + * + * repeated string disk_replica_zones = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The diskReplicaZones to add. + * @return This builder for chaining. + */ + public Builder addDiskReplicaZones(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDiskReplicaZonesIsMutable(); + diskReplicaZones_.add(value); + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Additional replica zones of the target regional disks.
        +     * If this list is not empty a regional disk will be created. The first
        +     * supported zone would be the one stated in the
        +     * [zone][google.cloud.vmmigration.v1.ComputeEngineTargetDetails.zone] field.
        +     * The rest are taken from this list. Please refer to the [regional disk
        +     * creation
        +     * API](https://cloud.google.com/compute/docs/regions-zones/global-regional-zonal-resources)
        +     * for further details about regional vs zonal disks. If not specified, a
        +     * zonal disk will be created in the same zone the VM is created.
        +     * 
        + * + * repeated string disk_replica_zones = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The diskReplicaZones to add. + * @return This builder for chaining. + */ + public Builder addAllDiskReplicaZones(java.lang.Iterable values) { + ensureDiskReplicaZonesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, diskReplicaZones_); + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Additional replica zones of the target regional disks.
        +     * If this list is not empty a regional disk will be created. The first
        +     * supported zone would be the one stated in the
        +     * [zone][google.cloud.vmmigration.v1.ComputeEngineTargetDetails.zone] field.
        +     * The rest are taken from this list. Please refer to the [regional disk
        +     * creation
        +     * API](https://cloud.google.com/compute/docs/regions-zones/global-regional-zonal-resources)
        +     * for further details about regional vs zonal disks. If not specified, a
        +     * zonal disk will be created in the same zone the VM is created.
        +     * 
        + * + * repeated string disk_replica_zones = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearDiskReplicaZones() { + diskReplicaZones_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00400000); + ; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Additional replica zones of the target regional disks.
        +     * If this list is not empty a regional disk will be created. The first
        +     * supported zone would be the one stated in the
        +     * [zone][google.cloud.vmmigration.v1.ComputeEngineTargetDetails.zone] field.
        +     * The rest are taken from this list. Please refer to the [regional disk
        +     * creation
        +     * API](https://cloud.google.com/compute/docs/regions-zones/global-regional-zonal-resources)
        +     * for further details about regional vs zonal disks. If not specified, a
        +     * zonal disk will be created in the same zone the VM is created.
        +     * 
        + * + * repeated string disk_replica_zones = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the diskReplicaZones to add. + * @return This builder for chaining. + */ + public Builder addDiskReplicaZonesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureDiskReplicaZonesIsMutable(); + diskReplicaZones_.add(value); + bitField0_ |= 0x00400000; onChanged(); return this; } diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineTargetDetailsOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineTargetDetailsOrBuilder.java index 13bcfae6c92d..9c447b14065d 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineTargetDetailsOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeEngineTargetDetailsOrBuilder.java @@ -158,7 +158,7 @@ public interface ComputeEngineTargetDetailsOrBuilder * * *
        -   * A map of network tags to associate with the VM.
        +   * A list of network tags to associate with the VM.
            * 
        * * repeated string network_tags = 6; @@ -171,7 +171,7 @@ public interface ComputeEngineTargetDetailsOrBuilder * * *
        -   * A map of network tags to associate with the VM.
        +   * A list of network tags to associate with the VM.
            * 
        * * repeated string network_tags = 6; @@ -184,7 +184,7 @@ public interface ComputeEngineTargetDetailsOrBuilder * * *
        -   * A map of network tags to associate with the VM.
        +   * A list of network tags to associate with the VM.
            * 
        * * repeated string network_tags = 6; @@ -198,7 +198,7 @@ public interface ComputeEngineTargetDetailsOrBuilder * * *
        -   * A map of network tags to associate with the VM.
        +   * A list of network tags to associate with the VM.
            * 
        * * repeated string network_tags = 6; @@ -485,7 +485,7 @@ java.lang.String getLabelsOrDefault( * *
            * Defines whether the instance has Secure Boot enabled.
        -   * This can be set to true only if the vm boot option is EFI.
        +   * This can be set to true only if the VM boot option is EFI.
            * 
        * * bool secure_boot = 14; @@ -498,7 +498,33 @@ java.lang.String getLabelsOrDefault( * * *
        -   * The VM Boot Option, as set in the source vm.
        +   * Optional. Defines whether the instance has vTPM enabled.
        +   * 
        + * + * bool enable_vtpm = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableVtpm. + */ + boolean getEnableVtpm(); + + /** + * + * + *
        +   * Optional. Defines whether the instance has integrity monitoring enabled.
        +   * 
        + * + * bool enable_integrity_monitoring = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableIntegrityMonitoring. + */ + boolean getEnableIntegrityMonitoring(); + + /** + * + * + *
        +   * The VM Boot Option, as set in the source VM.
            * 
        * * .google.cloud.vmmigration.v1.ComputeEngineBootOption boot_option = 15; @@ -511,7 +537,7 @@ java.lang.String getLabelsOrDefault( * * *
        -   * The VM Boot Option, as set in the source vm.
        +   * The VM Boot Option, as set in the source VM.
            * 
        * * .google.cloud.vmmigration.v1.ComputeEngineBootOption boot_option = 15; @@ -662,4 +688,167 @@ java.lang.String getMetadataOrDefault( * @return The bytes for hostname. */ com.google.protobuf.ByteString getHostnameBytes(); + + /** + * + * + *
        +   * Optional. The encryption to apply to the VM disks.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the encryption field is set. + */ + boolean hasEncryption(); + + /** + * + * + *
        +   * Optional. The encryption to apply to the VM disks.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The encryption. + */ + com.google.cloud.vmmigration.v1.Encryption getEncryption(); + + /** + * + * + *
        +   * Optional. The encryption to apply to the VM disks.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.vmmigration.v1.EncryptionOrBuilder getEncryptionOrBuilder(); + + /** + * + * + *
        +   * Optional. By default the virtual machine will keep its existing boot
        +   * option. Setting this property will trigger an internal process which will
        +   * convert the virtual machine from using the existing boot option to another.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.BootConversion boot_conversion = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for bootConversion. + */ + int getBootConversionValue(); + + /** + * + * + *
        +   * Optional. By default the virtual machine will keep its existing boot
        +   * option. Setting this property will trigger an internal process which will
        +   * convert the virtual machine from using the existing boot option to another.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.BootConversion boot_conversion = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bootConversion. + */ + com.google.cloud.vmmigration.v1.BootConversion getBootConversion(); + + /** + * + * + *
        +   * Optional. Additional replica zones of the target regional disks.
        +   * If this list is not empty a regional disk will be created. The first
        +   * supported zone would be the one stated in the
        +   * [zone][google.cloud.vmmigration.v1.ComputeEngineTargetDetails.zone] field.
        +   * The rest are taken from this list. Please refer to the [regional disk
        +   * creation
        +   * API](https://cloud.google.com/compute/docs/regions-zones/global-regional-zonal-resources)
        +   * for further details about regional vs zonal disks. If not specified, a
        +   * zonal disk will be created in the same zone the VM is created.
        +   * 
        + * + * repeated string disk_replica_zones = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the diskReplicaZones. + */ + java.util.List getDiskReplicaZonesList(); + + /** + * + * + *
        +   * Optional. Additional replica zones of the target regional disks.
        +   * If this list is not empty a regional disk will be created. The first
        +   * supported zone would be the one stated in the
        +   * [zone][google.cloud.vmmigration.v1.ComputeEngineTargetDetails.zone] field.
        +   * The rest are taken from this list. Please refer to the [regional disk
        +   * creation
        +   * API](https://cloud.google.com/compute/docs/regions-zones/global-regional-zonal-resources)
        +   * for further details about regional vs zonal disks. If not specified, a
        +   * zonal disk will be created in the same zone the VM is created.
        +   * 
        + * + * repeated string disk_replica_zones = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of diskReplicaZones. + */ + int getDiskReplicaZonesCount(); + + /** + * + * + *
        +   * Optional. Additional replica zones of the target regional disks.
        +   * If this list is not empty a regional disk will be created. The first
        +   * supported zone would be the one stated in the
        +   * [zone][google.cloud.vmmigration.v1.ComputeEngineTargetDetails.zone] field.
        +   * The rest are taken from this list. Please refer to the [regional disk
        +   * creation
        +   * API](https://cloud.google.com/compute/docs/regions-zones/global-regional-zonal-resources)
        +   * for further details about regional vs zonal disks. If not specified, a
        +   * zonal disk will be created in the same zone the VM is created.
        +   * 
        + * + * repeated string disk_replica_zones = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The diskReplicaZones at the given index. + */ + java.lang.String getDiskReplicaZones(int index); + + /** + * + * + *
        +   * Optional. Additional replica zones of the target regional disks.
        +   * If this list is not empty a regional disk will be created. The first
        +   * supported zone would be the one stated in the
        +   * [zone][google.cloud.vmmigration.v1.ComputeEngineTargetDetails.zone] field.
        +   * The rest are taken from this list. Please refer to the [regional disk
        +   * creation
        +   * API](https://cloud.google.com/compute/docs/regions-zones/global-regional-zonal-resources)
        +   * for further details about regional vs zonal disks. If not specified, a
        +   * zonal disk will be created in the same zone the VM is created.
        +   * 
        + * + * repeated string disk_replica_zones = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the diskReplicaZones at the given index. + */ + com.google.protobuf.ByteString getDiskReplicaZonesBytes(int index); } diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeScheduling.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeScheduling.java index 6242f7292436..b246c140062d 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeScheduling.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeScheduling.java @@ -25,6 +25,8 @@ *
          * Scheduling information for VM on maintenance/restart behaviour and
          * node allocation in sole tenant nodes.
        + * Options for instance behavior when the host machine undergoes
        + * maintenance that may temporarily impact instance performance.
          * 
        * * Protobuf type {@code google.cloud.vmmigration.v1.ComputeScheduling} @@ -792,6 +794,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build *
            * Scheduling information for VM on maintenance/restart behaviour and
            * node allocation in sole tenant nodes.
        +   * Options for instance behavior when the host machine undergoes
        +   * maintenance that may temporarily impact instance performance.
            * 
        * * Protobuf type {@code google.cloud.vmmigration.v1.ComputeScheduling} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CopyingSourceDiskSnapshotStep.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CopyingSourceDiskSnapshotStep.java new file mode 100644 index 000000000000..24c5cc9a7947 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CopyingSourceDiskSnapshotStep.java @@ -0,0 +1,438 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * CopyingSourceDiskSnapshotStep contains specific step details.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep} + */ +public final class CopyingSourceDiskSnapshotStep extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep) + CopyingSourceDiskSnapshotStepOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CopyingSourceDiskSnapshotStep.newBuilder() to construct. + private CopyingSourceDiskSnapshotStep(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CopyingSourceDiskSnapshotStep() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CopyingSourceDiskSnapshotStep(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_CopyingSourceDiskSnapshotStep_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_CopyingSourceDiskSnapshotStep_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep.class, + com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep.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.vmmigration.v1.CopyingSourceDiskSnapshotStep)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep other = + (com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep) 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.vmmigration.v1.CopyingSourceDiskSnapshotStep parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep 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.vmmigration.v1.CopyingSourceDiskSnapshotStep parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep parseFrom( + 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.vmmigration.v1.CopyingSourceDiskSnapshotStep parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep 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.vmmigration.v1.CopyingSourceDiskSnapshotStep parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep 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.vmmigration.v1.CopyingSourceDiskSnapshotStep parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep 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.vmmigration.v1.CopyingSourceDiskSnapshotStep prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
        +   * CopyingSourceDiskSnapshotStep contains specific step details.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep) + com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStepOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_CopyingSourceDiskSnapshotStep_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_CopyingSourceDiskSnapshotStep_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep.class, + com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep.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.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_CopyingSourceDiskSnapshotStep_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep + getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep build() { + com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep buildPartial() { + com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep result = + new com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep(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.vmmigration.v1.CopyingSourceDiskSnapshotStep) { + return mergeFrom((com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep other) { + if (other + == com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep.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.vmmigration.v1.CopyingSourceDiskSnapshotStep) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep) + private static final com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep(); + } + + public static com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CopyingSourceDiskSnapshotStep parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.CopyingSourceDiskSnapshotStep getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CopyingSourceDiskSnapshotStepOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CopyingSourceDiskSnapshotStepOrBuilder.java new file mode 100644 index 000000000000..a8c1e15fc292 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CopyingSourceDiskSnapshotStepOrBuilder.java @@ -0,0 +1,25 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface CopyingSourceDiskSnapshotStepOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateCloneJobRequest.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateCloneJobRequest.java index 2638b5b9c217..87e3c24ecc25 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateCloneJobRequest.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateCloneJobRequest.java @@ -250,8 +250,8 @@ public com.google.cloud.vmmigration.v1.CloneJobOrBuilder getCloneJobOrBuilder() * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -286,8 +286,8 @@ public java.lang.String getRequestId() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1203,8 +1203,8 @@ public com.google.cloud.vmmigration.v1.CloneJobOrBuilder getCloneJobOrBuilder() * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1238,8 +1238,8 @@ public java.lang.String getRequestId() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1273,8 +1273,8 @@ public com.google.protobuf.ByteString getRequestIdBytes() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1307,8 +1307,8 @@ public Builder setRequestId(java.lang.String value) { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1337,8 +1337,8 @@ public Builder clearRequestId() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateCloneJobRequestOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateCloneJobRequestOrBuilder.java index 8ed0f6341732..dfcba9aac242 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateCloneJobRequestOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateCloneJobRequestOrBuilder.java @@ -132,8 +132,8 @@ public interface CreateCloneJobRequestOrBuilder * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -157,8 +157,8 @@ public interface CreateCloneJobRequestOrBuilder * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateCutoverJobRequest.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateCutoverJobRequest.java index a90eddcbb45e..dbcc6c468971 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateCutoverJobRequest.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateCutoverJobRequest.java @@ -250,8 +250,8 @@ public com.google.cloud.vmmigration.v1.CutoverJobOrBuilder getCutoverJobOrBuilde * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -286,8 +286,8 @@ public java.lang.String getRequestId() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1204,8 +1204,8 @@ public com.google.cloud.vmmigration.v1.CutoverJobOrBuilder getCutoverJobOrBuilde * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1239,8 +1239,8 @@ public java.lang.String getRequestId() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1274,8 +1274,8 @@ public com.google.protobuf.ByteString getRequestIdBytes() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1308,8 +1308,8 @@ public Builder setRequestId(java.lang.String value) { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1338,8 +1338,8 @@ public Builder clearRequestId() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateCutoverJobRequestOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateCutoverJobRequestOrBuilder.java index 14f327c12d6a..54443fcd3144 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateCutoverJobRequestOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateCutoverJobRequestOrBuilder.java @@ -132,8 +132,8 @@ public interface CreateCutoverJobRequestOrBuilder * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -157,8 +157,8 @@ public interface CreateCutoverJobRequestOrBuilder * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateDatacenterConnectorRequest.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateDatacenterConnectorRequest.java index 62d28ed9b695..8a8d9a217055 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateDatacenterConnectorRequest.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateDatacenterConnectorRequest.java @@ -258,8 +258,8 @@ public com.google.cloud.vmmigration.v1.DatacenterConnector getDatacenterConnecto * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -294,8 +294,8 @@ public java.lang.String getRequestId() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1240,8 +1240,8 @@ public Builder clearDatacenterConnector() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1275,8 +1275,8 @@ public java.lang.String getRequestId() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1310,8 +1310,8 @@ public com.google.protobuf.ByteString getRequestIdBytes() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1344,8 +1344,8 @@ public Builder setRequestId(java.lang.String value) { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1374,8 +1374,8 @@ public Builder clearRequestId() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateDatacenterConnectorRequestOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateDatacenterConnectorRequestOrBuilder.java index 45d4e41093ec..3e23cd88320e 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateDatacenterConnectorRequestOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateDatacenterConnectorRequestOrBuilder.java @@ -138,8 +138,8 @@ public interface CreateDatacenterConnectorRequestOrBuilder * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -163,8 +163,8 @@ public interface CreateDatacenterConnectorRequestOrBuilder * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateDiskMigrationJobRequest.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateDiskMigrationJobRequest.java new file mode 100644 index 000000000000..e0f62bd762d4 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateDiskMigrationJobRequest.java @@ -0,0 +1,1470 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * Request message for 'CreateDiskMigrationJob' request.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest} + */ +public final class CreateDiskMigrationJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest) + CreateDiskMigrationJobRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CreateDiskMigrationJobRequest.newBuilder() to construct. + private CreateDiskMigrationJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateDiskMigrationJobRequest() { + parent_ = ""; + diskMigrationJobId_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateDiskMigrationJobRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_CreateDiskMigrationJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_CreateDiskMigrationJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest.class, + com.google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
        +   * Required. The DiskMigrationJob's parent.
        +   * 
        + * + * + * 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 DiskMigrationJob's parent.
        +   * 
        + * + * + * 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 DISK_MIGRATION_JOB_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object diskMigrationJobId_ = ""; + + /** + * + * + *
        +   * Required. The DiskMigrationJob identifier.
        +   * The maximum length of this value is 63 characters.
        +   * Valid characters are lower case Latin letters, digits and hyphen.
        +   * It must start with a Latin letter and must not end with a hyphen.
        +   * 
        + * + * string disk_migration_job_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The diskMigrationJobId. + */ + @java.lang.Override + public java.lang.String getDiskMigrationJobId() { + java.lang.Object ref = diskMigrationJobId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + diskMigrationJobId_ = s; + return s; + } + } + + /** + * + * + *
        +   * Required. The DiskMigrationJob identifier.
        +   * The maximum length of this value is 63 characters.
        +   * Valid characters are lower case Latin letters, digits and hyphen.
        +   * It must start with a Latin letter and must not end with a hyphen.
        +   * 
        + * + * string disk_migration_job_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for diskMigrationJobId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDiskMigrationJobIdBytes() { + java.lang.Object ref = diskMigrationJobId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + diskMigrationJobId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISK_MIGRATION_JOB_FIELD_NUMBER = 3; + private com.google.cloud.vmmigration.v1.DiskMigrationJob diskMigrationJob_; + + /** + * + * + *
        +   * Required. The create request body.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the diskMigrationJob field is set. + */ + @java.lang.Override + public boolean hasDiskMigrationJob() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
        +   * Required. The create request body.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The diskMigrationJob. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.DiskMigrationJob getDiskMigrationJob() { + return diskMigrationJob_ == null + ? com.google.cloud.vmmigration.v1.DiskMigrationJob.getDefaultInstance() + : diskMigrationJob_; + } + + /** + * + * + *
        +   * Required. The create request body.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.DiskMigrationJobOrBuilder getDiskMigrationJobOrBuilder() { + return diskMigrationJob_ == null + ? com.google.cloud.vmmigration.v1.DiskMigrationJob.getDefaultInstance() + : diskMigrationJob_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
        +   * Optional. A request ID to identify requests. Specify a unique request ID
        +   * so that if you must retry your request, the server will know to ignore
        +   * the request if it has already been completed. The server will guarantee
        +   * that for at least 60 minutes since the first request.
        +   *
        +   * For example, consider a situation where you make an initial request and
        +   * the request timed out. If you make the request again with the same request
        +   * ID, the server can check if original operation with the same request ID
        +   * was received, and if so, will ignore the second request. This prevents
        +   * clients from accidentally creating duplicate commitments.
        +   *
        +   * The request ID must be a valid UUID with the exception that zero UUID is
        +   * not supported (00000000-0000-0000-0000-000000000000).
        +   * 
        + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.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. A request ID to identify requests. Specify a unique request ID
        +   * so that if you must retry your request, the server will know to ignore
        +   * the request if it has already been completed. The server will guarantee
        +   * that for at least 60 minutes since the first request.
        +   *
        +   * For example, consider a situation where you make an initial request and
        +   * the request timed out. If you make the request again with the same request
        +   * ID, the server can check if original operation with the same request ID
        +   * was received, and if so, will ignore the second request. This prevents
        +   * clients from accidentally creating duplicate commitments.
        +   *
        +   * The request ID must be a valid UUID with the exception that zero UUID is
        +   * not supported (00000000-0000-0000-0000-000000000000).
        +   * 
        + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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(diskMigrationJobId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, diskMigrationJobId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getDiskMigrationJob()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskMigrationJobId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, diskMigrationJobId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDiskMigrationJob()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest other = + (com.google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getDiskMigrationJobId().equals(other.getDiskMigrationJobId())) return false; + if (hasDiskMigrationJob() != other.hasDiskMigrationJob()) return false; + if (hasDiskMigrationJob()) { + if (!getDiskMigrationJob().equals(other.getDiskMigrationJob())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + DISK_MIGRATION_JOB_ID_FIELD_NUMBER; + hash = (53 * hash) + getDiskMigrationJobId().hashCode(); + if (hasDiskMigrationJob()) { + hash = (37 * hash) + DISK_MIGRATION_JOB_FIELD_NUMBER; + hash = (53 * hash) + getDiskMigrationJob().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest 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.vmmigration.v1.CreateDiskMigrationJobRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest parseFrom( + 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.vmmigration.v1.CreateDiskMigrationJobRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest 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.vmmigration.v1.CreateDiskMigrationJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest 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.vmmigration.v1.CreateDiskMigrationJobRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest 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.vmmigration.v1.CreateDiskMigrationJobRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * Request message for 'CreateDiskMigrationJob' request.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest) + com.google.cloud.vmmigration.v1.CreateDiskMigrationJobRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_CreateDiskMigrationJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_CreateDiskMigrationJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest.class, + com.google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDiskMigrationJobFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + diskMigrationJobId_ = ""; + diskMigrationJob_ = null; + if (diskMigrationJobBuilder_ != null) { + diskMigrationJobBuilder_.dispose(); + diskMigrationJobBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_CreateDiskMigrationJobRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest + getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest build() { + com.google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest buildPartial() { + com.google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest result = + new com.google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.diskMigrationJobId_ = diskMigrationJobId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.diskMigrationJob_ = + diskMigrationJobBuilder_ == null ? diskMigrationJob_ : diskMigrationJobBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest) { + return mergeFrom((com.google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest other) { + if (other + == com.google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDiskMigrationJobId().isEmpty()) { + diskMigrationJobId_ = other.diskMigrationJobId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasDiskMigrationJob()) { + mergeDiskMigrationJob(other.getDiskMigrationJob()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + diskMigrationJobId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getDiskMigrationJobFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
        +     * Required. The DiskMigrationJob's parent.
        +     * 
        + * + * + * 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 DiskMigrationJob's parent.
        +     * 
        + * + * + * 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 DiskMigrationJob's parent.
        +     * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The DiskMigrationJob's parent.
        +     * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The DiskMigrationJob's parent.
        +     * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object diskMigrationJobId_ = ""; + + /** + * + * + *
        +     * Required. The DiskMigrationJob identifier.
        +     * The maximum length of this value is 63 characters.
        +     * Valid characters are lower case Latin letters, digits and hyphen.
        +     * It must start with a Latin letter and must not end with a hyphen.
        +     * 
        + * + * string disk_migration_job_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The diskMigrationJobId. + */ + public java.lang.String getDiskMigrationJobId() { + java.lang.Object ref = diskMigrationJobId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + diskMigrationJobId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Required. The DiskMigrationJob identifier.
        +     * The maximum length of this value is 63 characters.
        +     * Valid characters are lower case Latin letters, digits and hyphen.
        +     * It must start with a Latin letter and must not end with a hyphen.
        +     * 
        + * + * string disk_migration_job_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for diskMigrationJobId. + */ + public com.google.protobuf.ByteString getDiskMigrationJobIdBytes() { + java.lang.Object ref = diskMigrationJobId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + diskMigrationJobId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Required. The DiskMigrationJob identifier.
        +     * The maximum length of this value is 63 characters.
        +     * Valid characters are lower case Latin letters, digits and hyphen.
        +     * It must start with a Latin letter and must not end with a hyphen.
        +     * 
        + * + * string disk_migration_job_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The diskMigrationJobId to set. + * @return This builder for chaining. + */ + public Builder setDiskMigrationJobId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + diskMigrationJobId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The DiskMigrationJob identifier.
        +     * The maximum length of this value is 63 characters.
        +     * Valid characters are lower case Latin letters, digits and hyphen.
        +     * It must start with a Latin letter and must not end with a hyphen.
        +     * 
        + * + * string disk_migration_job_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDiskMigrationJobId() { + diskMigrationJobId_ = getDefaultInstance().getDiskMigrationJobId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The DiskMigrationJob identifier.
        +     * The maximum length of this value is 63 characters.
        +     * Valid characters are lower case Latin letters, digits and hyphen.
        +     * It must start with a Latin letter and must not end with a hyphen.
        +     * 
        + * + * string disk_migration_job_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for diskMigrationJobId to set. + * @return This builder for chaining. + */ + public Builder setDiskMigrationJobIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + diskMigrationJobId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.vmmigration.v1.DiskMigrationJob diskMigrationJob_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.DiskMigrationJob, + com.google.cloud.vmmigration.v1.DiskMigrationJob.Builder, + com.google.cloud.vmmigration.v1.DiskMigrationJobOrBuilder> + diskMigrationJobBuilder_; + + /** + * + * + *
        +     * Required. The create request body.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the diskMigrationJob field is set. + */ + public boolean hasDiskMigrationJob() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
        +     * Required. The create request body.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The diskMigrationJob. + */ + public com.google.cloud.vmmigration.v1.DiskMigrationJob getDiskMigrationJob() { + if (diskMigrationJobBuilder_ == null) { + return diskMigrationJob_ == null + ? com.google.cloud.vmmigration.v1.DiskMigrationJob.getDefaultInstance() + : diskMigrationJob_; + } else { + return diskMigrationJobBuilder_.getMessage(); + } + } + + /** + * + * + *
        +     * Required. The create request body.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDiskMigrationJob(com.google.cloud.vmmigration.v1.DiskMigrationJob value) { + if (diskMigrationJobBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + diskMigrationJob_ = value; + } else { + diskMigrationJobBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The create request body.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDiskMigrationJob( + com.google.cloud.vmmigration.v1.DiskMigrationJob.Builder builderForValue) { + if (diskMigrationJobBuilder_ == null) { + diskMigrationJob_ = builderForValue.build(); + } else { + diskMigrationJobBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The create request body.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDiskMigrationJob(com.google.cloud.vmmigration.v1.DiskMigrationJob value) { + if (diskMigrationJobBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && diskMigrationJob_ != null + && diskMigrationJob_ + != com.google.cloud.vmmigration.v1.DiskMigrationJob.getDefaultInstance()) { + getDiskMigrationJobBuilder().mergeFrom(value); + } else { + diskMigrationJob_ = value; + } + } else { + diskMigrationJobBuilder_.mergeFrom(value); + } + if (diskMigrationJob_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Required. The create request body.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDiskMigrationJob() { + bitField0_ = (bitField0_ & ~0x00000004); + diskMigrationJob_ = null; + if (diskMigrationJobBuilder_ != null) { + diskMigrationJobBuilder_.dispose(); + diskMigrationJobBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The create request body.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmmigration.v1.DiskMigrationJob.Builder getDiskMigrationJobBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getDiskMigrationJobFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Required. The create request body.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmmigration.v1.DiskMigrationJobOrBuilder + getDiskMigrationJobOrBuilder() { + if (diskMigrationJobBuilder_ != null) { + return diskMigrationJobBuilder_.getMessageOrBuilder(); + } else { + return diskMigrationJob_ == null + ? com.google.cloud.vmmigration.v1.DiskMigrationJob.getDefaultInstance() + : diskMigrationJob_; + } + } + + /** + * + * + *
        +     * Required. The create request body.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.DiskMigrationJob, + com.google.cloud.vmmigration.v1.DiskMigrationJob.Builder, + com.google.cloud.vmmigration.v1.DiskMigrationJobOrBuilder> + getDiskMigrationJobFieldBuilder() { + if (diskMigrationJobBuilder_ == null) { + diskMigrationJobBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.DiskMigrationJob, + com.google.cloud.vmmigration.v1.DiskMigrationJob.Builder, + com.google.cloud.vmmigration.v1.DiskMigrationJobOrBuilder>( + getDiskMigrationJob(), getParentForChildren(), isClean()); + diskMigrationJob_ = null; + } + return diskMigrationJobBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
        +     * Optional. A request ID to identify requests. Specify a unique request ID
        +     * so that if you must retry your request, the server will know to ignore
        +     * the request if it has already been completed. The server will guarantee
        +     * that for at least 60 minutes since the first request.
        +     *
        +     * For example, consider a situation where you make an initial request and
        +     * the request timed out. If you make the request again with the same request
        +     * ID, the server can check if original operation with the same request ID
        +     * was received, and if so, will ignore the second request. This prevents
        +     * clients from accidentally creating duplicate commitments.
        +     *
        +     * The request ID must be a valid UUID with the exception that zero UUID is
        +     * not supported (00000000-0000-0000-0000-000000000000).
        +     * 
        + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.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. A request ID to identify requests. Specify a unique request ID
        +     * so that if you must retry your request, the server will know to ignore
        +     * the request if it has already been completed. The server will guarantee
        +     * that for at least 60 minutes since the first request.
        +     *
        +     * For example, consider a situation where you make an initial request and
        +     * the request timed out. If you make the request again with the same request
        +     * ID, the server can check if original operation with the same request ID
        +     * was received, and if so, will ignore the second request. This prevents
        +     * clients from accidentally creating duplicate commitments.
        +     *
        +     * The request ID must be a valid UUID with the exception that zero UUID is
        +     * not supported (00000000-0000-0000-0000-000000000000).
        +     * 
        + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.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. A request ID to identify requests. Specify a unique request ID
        +     * so that if you must retry your request, the server will know to ignore
        +     * the request if it has already been completed. The server will guarantee
        +     * that for at least 60 minutes since the first request.
        +     *
        +     * For example, consider a situation where you make an initial request and
        +     * the request timed out. If you make the request again with the same request
        +     * ID, the server can check if original operation with the same request ID
        +     * was received, and if so, will ignore the second request. This prevents
        +     * clients from accidentally creating duplicate commitments.
        +     *
        +     * The request ID must be a valid UUID with the exception that zero UUID is
        +     * not supported (00000000-0000-0000-0000-000000000000).
        +     * 
        + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. A request ID to identify requests. Specify a unique request ID
        +     * so that if you must retry your request, the server will know to ignore
        +     * the request if it has already been completed. The server will guarantee
        +     * that for at least 60 minutes since the first request.
        +     *
        +     * For example, consider a situation where you make an initial request and
        +     * the request timed out. If you make the request again with the same request
        +     * ID, the server can check if original operation with the same request ID
        +     * was received, and if so, will ignore the second request. This prevents
        +     * clients from accidentally creating duplicate commitments.
        +     *
        +     * The request ID must be a valid UUID with the exception that zero UUID is
        +     * not supported (00000000-0000-0000-0000-000000000000).
        +     * 
        + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. A request ID to identify requests. Specify a unique request ID
        +     * so that if you must retry your request, the server will know to ignore
        +     * the request if it has already been completed. The server will guarantee
        +     * that for at least 60 minutes since the first request.
        +     *
        +     * For example, consider a situation where you make an initial request and
        +     * the request timed out. If you make the request again with the same request
        +     * ID, the server can check if original operation with the same request ID
        +     * was received, and if so, will ignore the second request. This prevents
        +     * clients from accidentally creating duplicate commitments.
        +     *
        +     * The request ID must be a valid UUID with the exception that zero UUID is
        +     * not supported (00000000-0000-0000-0000-000000000000).
        +     * 
        + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.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_ |= 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.vmmigration.v1.CreateDiskMigrationJobRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest) + private static final com.google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest(); + } + + public static com.google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateDiskMigrationJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.CreateDiskMigrationJobRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateDiskMigrationJobRequestOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateDiskMigrationJobRequestOrBuilder.java new file mode 100644 index 000000000000..b8928bd1bd22 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateDiskMigrationJobRequestOrBuilder.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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface CreateDiskMigrationJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Required. The DiskMigrationJob's parent.
        +   * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
        +   * Required. The DiskMigrationJob's parent.
        +   * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
        +   * Required. The DiskMigrationJob identifier.
        +   * The maximum length of this value is 63 characters.
        +   * Valid characters are lower case Latin letters, digits and hyphen.
        +   * It must start with a Latin letter and must not end with a hyphen.
        +   * 
        + * + * string disk_migration_job_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The diskMigrationJobId. + */ + java.lang.String getDiskMigrationJobId(); + + /** + * + * + *
        +   * Required. The DiskMigrationJob identifier.
        +   * The maximum length of this value is 63 characters.
        +   * Valid characters are lower case Latin letters, digits and hyphen.
        +   * It must start with a Latin letter and must not end with a hyphen.
        +   * 
        + * + * string disk_migration_job_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for diskMigrationJobId. + */ + com.google.protobuf.ByteString getDiskMigrationJobIdBytes(); + + /** + * + * + *
        +   * Required. The create request body.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the diskMigrationJob field is set. + */ + boolean hasDiskMigrationJob(); + + /** + * + * + *
        +   * Required. The create request body.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The diskMigrationJob. + */ + com.google.cloud.vmmigration.v1.DiskMigrationJob getDiskMigrationJob(); + + /** + * + * + *
        +   * Required. The create request body.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_job = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.vmmigration.v1.DiskMigrationJobOrBuilder getDiskMigrationJobOrBuilder(); + + /** + * + * + *
        +   * Optional. A request ID to identify requests. Specify a unique request ID
        +   * so that if you must retry your request, the server will know to ignore
        +   * the request if it has already been completed. The server will guarantee
        +   * that for at least 60 minutes since the first request.
        +   *
        +   * For example, consider a situation where you make an initial request and
        +   * the request timed out. If you make the request again with the same request
        +   * ID, the server can check if original operation with the same request ID
        +   * was received, and if so, will ignore the second request. This prevents
        +   * clients from accidentally creating duplicate commitments.
        +   *
        +   * The request ID must be a valid UUID with the exception that zero UUID is
        +   * not supported (00000000-0000-0000-0000-000000000000).
        +   * 
        + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
        +   * Optional. A request ID to identify requests. Specify a unique request ID
        +   * so that if you must retry your request, the server will know to ignore
        +   * the request if it has already been completed. The server will guarantee
        +   * that for at least 60 minutes since the first request.
        +   *
        +   * For example, consider a situation where you make an initial request and
        +   * the request timed out. If you make the request again with the same request
        +   * ID, the server can check if original operation with the same request ID
        +   * was received, and if so, will ignore the second request. This prevents
        +   * clients from accidentally creating duplicate commitments.
        +   *
        +   * The request ID must be a valid UUID with the exception that zero UUID is
        +   * not supported (00000000-0000-0000-0000-000000000000).
        +   * 
        + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateGroupRequest.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateGroupRequest.java index 59cf559084d4..a53d4875425e 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateGroupRequest.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateGroupRequest.java @@ -243,8 +243,8 @@ public com.google.cloud.vmmigration.v1.GroupOrBuilder getGroupOrBuilder() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -279,8 +279,8 @@ public java.lang.String getRequestId() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1182,8 +1182,8 @@ public com.google.cloud.vmmigration.v1.GroupOrBuilder getGroupOrBuilder() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1217,8 +1217,8 @@ public java.lang.String getRequestId() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1252,8 +1252,8 @@ public com.google.protobuf.ByteString getRequestIdBytes() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1286,8 +1286,8 @@ public Builder setRequestId(java.lang.String value) { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1316,8 +1316,8 @@ public Builder clearRequestId() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateGroupRequestOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateGroupRequestOrBuilder.java index dadf5854d1a8..f82baaad49bb 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateGroupRequestOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateGroupRequestOrBuilder.java @@ -129,8 +129,8 @@ public interface CreateGroupRequestOrBuilder * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -154,8 +154,8 @@ public interface CreateGroupRequestOrBuilder * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateImageImportRequest.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateImageImportRequest.java new file mode 100644 index 000000000000..40f6a0eaed11 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateImageImportRequest.java @@ -0,0 +1,1449 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * Request message for 'CreateImageImport' request.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.CreateImageImportRequest} + */ +public final class CreateImageImportRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.CreateImageImportRequest) + CreateImageImportRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CreateImageImportRequest.newBuilder() to construct. + private CreateImageImportRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateImageImportRequest() { + parent_ = ""; + imageImportId_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateImageImportRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_CreateImageImportRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_CreateImageImportRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.CreateImageImportRequest.class, + com.google.cloud.vmmigration.v1.CreateImageImportRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
        +   * Required. The ImageImport's parent.
        +   * 
        + * + * + * 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 ImageImport's parent.
        +   * 
        + * + * + * 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 IMAGE_IMPORT_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object imageImportId_ = ""; + + /** + * + * + *
        +   * Required. The image import identifier.
        +   * This value maximum length is 63 characters, and valid characters are
        +   * /[a-z][0-9]-/. It must start with an english letter and must not end with a
        +   * hyphen.
        +   * 
        + * + * string image_import_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The imageImportId. + */ + @java.lang.Override + public java.lang.String getImageImportId() { + java.lang.Object ref = imageImportId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + imageImportId_ = s; + return s; + } + } + + /** + * + * + *
        +   * Required. The image import identifier.
        +   * This value maximum length is 63 characters, and valid characters are
        +   * /[a-z][0-9]-/. It must start with an english letter and must not end with a
        +   * hyphen.
        +   * 
        + * + * string image_import_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for imageImportId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getImageImportIdBytes() { + java.lang.Object ref = imageImportId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + imageImportId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IMAGE_IMPORT_FIELD_NUMBER = 3; + private com.google.cloud.vmmigration.v1.ImageImport imageImport_; + + /** + * + * + *
        +   * Required. The create request body.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ImageImport image_import = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the imageImport field is set. + */ + @java.lang.Override + public boolean hasImageImport() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
        +   * Required. The create request body.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ImageImport image_import = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The imageImport. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ImageImport getImageImport() { + return imageImport_ == null + ? com.google.cloud.vmmigration.v1.ImageImport.getDefaultInstance() + : imageImport_; + } + + /** + * + * + *
        +   * Required. The create request body.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ImageImport image_import = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ImageImportOrBuilder getImageImportOrBuilder() { + return imageImport_ == null + ? com.google.cloud.vmmigration.v1.ImageImport.getDefaultInstance() + : imageImport_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
        +   * Optional. A request ID to identify requests. Specify a unique request ID
        +   * so that if you must retry your request, the server will know to ignore
        +   * the request if it has already been completed. The server will guarantee
        +   * that for at least 60 minutes since the first request.
        +   *
        +   * For example, consider a situation where you make an initial request and
        +   * the request times out. If you make the request again with the same request
        +   * ID, the server can check if original operation with the same request ID
        +   * was received, and if so, will ignore the second request. This prevents
        +   * clients from accidentally creating duplicate commitments.
        +   *
        +   * The request ID must be a valid UUID with the exception that zero UUID is
        +   * not supported (00000000-0000-0000-0000-000000000000).
        +   * 
        + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
        +   * Optional. A request ID to identify requests. Specify a unique request ID
        +   * so that if you must retry your request, the server will know to ignore
        +   * the request if it has already been completed. The server will guarantee
        +   * that for at least 60 minutes since the first request.
        +   *
        +   * For example, consider a situation where you make an initial request and
        +   * the request times out. If you make the request again with the same request
        +   * ID, the server can check if original operation with the same request ID
        +   * was received, and if so, will ignore the second request. This prevents
        +   * clients from accidentally creating duplicate commitments.
        +   *
        +   * The request ID must be a valid UUID with the exception that zero UUID is
        +   * not supported (00000000-0000-0000-0000-000000000000).
        +   * 
        + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageImportId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, imageImportId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getImageImport()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageImportId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, imageImportId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getImageImport()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmmigration.v1.CreateImageImportRequest)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.CreateImageImportRequest other = + (com.google.cloud.vmmigration.v1.CreateImageImportRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getImageImportId().equals(other.getImageImportId())) return false; + if (hasImageImport() != other.hasImageImport()) return false; + if (hasImageImport()) { + if (!getImageImport().equals(other.getImageImport())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + IMAGE_IMPORT_ID_FIELD_NUMBER; + hash = (53 * hash) + getImageImportId().hashCode(); + if (hasImageImport()) { + hash = (37 * hash) + IMAGE_IMPORT_FIELD_NUMBER; + hash = (53 * hash) + getImageImport().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.CreateImageImportRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.CreateImageImportRequest 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.vmmigration.v1.CreateImageImportRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.CreateImageImportRequest parseFrom( + 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.vmmigration.v1.CreateImageImportRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.CreateImageImportRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.CreateImageImportRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.CreateImageImportRequest 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.vmmigration.v1.CreateImageImportRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.CreateImageImportRequest 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.vmmigration.v1.CreateImageImportRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.CreateImageImportRequest 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.vmmigration.v1.CreateImageImportRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * Request message for 'CreateImageImport' request.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.CreateImageImportRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.CreateImageImportRequest) + com.google.cloud.vmmigration.v1.CreateImageImportRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_CreateImageImportRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_CreateImageImportRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.CreateImageImportRequest.class, + com.google.cloud.vmmigration.v1.CreateImageImportRequest.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.CreateImageImportRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getImageImportFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + imageImportId_ = ""; + imageImport_ = null; + if (imageImportBuilder_ != null) { + imageImportBuilder_.dispose(); + imageImportBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_CreateImageImportRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.CreateImageImportRequest getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.CreateImageImportRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.CreateImageImportRequest build() { + com.google.cloud.vmmigration.v1.CreateImageImportRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.CreateImageImportRequest buildPartial() { + com.google.cloud.vmmigration.v1.CreateImageImportRequest result = + new com.google.cloud.vmmigration.v1.CreateImageImportRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vmmigration.v1.CreateImageImportRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.imageImportId_ = imageImportId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.imageImport_ = + imageImportBuilder_ == null ? imageImport_ : imageImportBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmmigration.v1.CreateImageImportRequest) { + return mergeFrom((com.google.cloud.vmmigration.v1.CreateImageImportRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.CreateImageImportRequest other) { + if (other == com.google.cloud.vmmigration.v1.CreateImageImportRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getImageImportId().isEmpty()) { + imageImportId_ = other.imageImportId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasImageImport()) { + mergeImageImport(other.getImageImport()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + imageImportId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getImageImportFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
        +     * Required. The ImageImport's parent.
        +     * 
        + * + * + * 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 ImageImport's parent.
        +     * 
        + * + * + * 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 ImageImport's parent.
        +     * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The ImageImport's parent.
        +     * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The ImageImport's parent.
        +     * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object imageImportId_ = ""; + + /** + * + * + *
        +     * Required. The image import identifier.
        +     * This value maximum length is 63 characters, and valid characters are
        +     * /[a-z][0-9]-/. It must start with an english letter and must not end with a
        +     * hyphen.
        +     * 
        + * + * string image_import_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The imageImportId. + */ + public java.lang.String getImageImportId() { + java.lang.Object ref = imageImportId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + imageImportId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Required. The image import identifier.
        +     * This value maximum length is 63 characters, and valid characters are
        +     * /[a-z][0-9]-/. It must start with an english letter and must not end with a
        +     * hyphen.
        +     * 
        + * + * string image_import_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for imageImportId. + */ + public com.google.protobuf.ByteString getImageImportIdBytes() { + java.lang.Object ref = imageImportId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + imageImportId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Required. The image import identifier.
        +     * This value maximum length is 63 characters, and valid characters are
        +     * /[a-z][0-9]-/. It must start with an english letter and must not end with a
        +     * hyphen.
        +     * 
        + * + * string image_import_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The imageImportId to set. + * @return This builder for chaining. + */ + public Builder setImageImportId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + imageImportId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The image import identifier.
        +     * This value maximum length is 63 characters, and valid characters are
        +     * /[a-z][0-9]-/. It must start with an english letter and must not end with a
        +     * hyphen.
        +     * 
        + * + * string image_import_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearImageImportId() { + imageImportId_ = getDefaultInstance().getImageImportId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The image import identifier.
        +     * This value maximum length is 63 characters, and valid characters are
        +     * /[a-z][0-9]-/. It must start with an english letter and must not end with a
        +     * hyphen.
        +     * 
        + * + * string image_import_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for imageImportId to set. + * @return This builder for chaining. + */ + public Builder setImageImportIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + imageImportId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.vmmigration.v1.ImageImport imageImport_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.ImageImport, + com.google.cloud.vmmigration.v1.ImageImport.Builder, + com.google.cloud.vmmigration.v1.ImageImportOrBuilder> + imageImportBuilder_; + + /** + * + * + *
        +     * Required. The create request body.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ImageImport image_import = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the imageImport field is set. + */ + public boolean hasImageImport() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
        +     * Required. The create request body.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ImageImport image_import = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The imageImport. + */ + public com.google.cloud.vmmigration.v1.ImageImport getImageImport() { + if (imageImportBuilder_ == null) { + return imageImport_ == null + ? com.google.cloud.vmmigration.v1.ImageImport.getDefaultInstance() + : imageImport_; + } else { + return imageImportBuilder_.getMessage(); + } + } + + /** + * + * + *
        +     * Required. The create request body.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ImageImport image_import = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setImageImport(com.google.cloud.vmmigration.v1.ImageImport value) { + if (imageImportBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + imageImport_ = value; + } else { + imageImportBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The create request body.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ImageImport image_import = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setImageImport( + com.google.cloud.vmmigration.v1.ImageImport.Builder builderForValue) { + if (imageImportBuilder_ == null) { + imageImport_ = builderForValue.build(); + } else { + imageImportBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The create request body.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ImageImport image_import = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeImageImport(com.google.cloud.vmmigration.v1.ImageImport value) { + if (imageImportBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && imageImport_ != null + && imageImport_ != com.google.cloud.vmmigration.v1.ImageImport.getDefaultInstance()) { + getImageImportBuilder().mergeFrom(value); + } else { + imageImport_ = value; + } + } else { + imageImportBuilder_.mergeFrom(value); + } + if (imageImport_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Required. The create request body.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ImageImport image_import = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearImageImport() { + bitField0_ = (bitField0_ & ~0x00000004); + imageImport_ = null; + if (imageImportBuilder_ != null) { + imageImportBuilder_.dispose(); + imageImportBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The create request body.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ImageImport image_import = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmmigration.v1.ImageImport.Builder getImageImportBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getImageImportFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Required. The create request body.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ImageImport image_import = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmmigration.v1.ImageImportOrBuilder getImageImportOrBuilder() { + if (imageImportBuilder_ != null) { + return imageImportBuilder_.getMessageOrBuilder(); + } else { + return imageImport_ == null + ? com.google.cloud.vmmigration.v1.ImageImport.getDefaultInstance() + : imageImport_; + } + } + + /** + * + * + *
        +     * Required. The create request body.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ImageImport image_import = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.ImageImport, + com.google.cloud.vmmigration.v1.ImageImport.Builder, + com.google.cloud.vmmigration.v1.ImageImportOrBuilder> + getImageImportFieldBuilder() { + if (imageImportBuilder_ == null) { + imageImportBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.ImageImport, + com.google.cloud.vmmigration.v1.ImageImport.Builder, + com.google.cloud.vmmigration.v1.ImageImportOrBuilder>( + getImageImport(), getParentForChildren(), isClean()); + imageImport_ = null; + } + return imageImportBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
        +     * Optional. A request ID to identify requests. Specify a unique request ID
        +     * so that if you must retry your request, the server will know to ignore
        +     * the request if it has already been completed. The server will guarantee
        +     * that for at least 60 minutes since the first request.
        +     *
        +     * For example, consider a situation where you make an initial request and
        +     * the request times out. If you make the request again with the same request
        +     * ID, the server can check if original operation with the same request ID
        +     * was received, and if so, will ignore the second request. This prevents
        +     * clients from accidentally creating duplicate commitments.
        +     *
        +     * The request ID must be a valid UUID with the exception that zero UUID is
        +     * not supported (00000000-0000-0000-0000-000000000000).
        +     * 
        + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Optional. A request ID to identify requests. Specify a unique request ID
        +     * so that if you must retry your request, the server will know to ignore
        +     * the request if it has already been completed. The server will guarantee
        +     * that for at least 60 minutes since the first request.
        +     *
        +     * For example, consider a situation where you make an initial request and
        +     * the request times out. If you make the request again with the same request
        +     * ID, the server can check if original operation with the same request ID
        +     * was received, and if so, will ignore the second request. This prevents
        +     * clients from accidentally creating duplicate commitments.
        +     *
        +     * The request ID must be a valid UUID with the exception that zero UUID is
        +     * not supported (00000000-0000-0000-0000-000000000000).
        +     * 
        + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Optional. A request ID to identify requests. Specify a unique request ID
        +     * so that if you must retry your request, the server will know to ignore
        +     * the request if it has already been completed. The server will guarantee
        +     * that for at least 60 minutes since the first request.
        +     *
        +     * For example, consider a situation where you make an initial request and
        +     * the request times out. If you make the request again with the same request
        +     * ID, the server can check if original operation with the same request ID
        +     * was received, and if so, will ignore the second request. This prevents
        +     * clients from accidentally creating duplicate commitments.
        +     *
        +     * The request ID must be a valid UUID with the exception that zero UUID is
        +     * not supported (00000000-0000-0000-0000-000000000000).
        +     * 
        + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. A request ID to identify requests. Specify a unique request ID
        +     * so that if you must retry your request, the server will know to ignore
        +     * the request if it has already been completed. The server will guarantee
        +     * that for at least 60 minutes since the first request.
        +     *
        +     * For example, consider a situation where you make an initial request and
        +     * the request times out. If you make the request again with the same request
        +     * ID, the server can check if original operation with the same request ID
        +     * was received, and if so, will ignore the second request. This prevents
        +     * clients from accidentally creating duplicate commitments.
        +     *
        +     * The request ID must be a valid UUID with the exception that zero UUID is
        +     * not supported (00000000-0000-0000-0000-000000000000).
        +     * 
        + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. A request ID to identify requests. Specify a unique request ID
        +     * so that if you must retry your request, the server will know to ignore
        +     * the request if it has already been completed. The server will guarantee
        +     * that for at least 60 minutes since the first request.
        +     *
        +     * For example, consider a situation where you make an initial request and
        +     * the request times out. If you make the request again with the same request
        +     * ID, the server can check if original operation with the same request ID
        +     * was received, and if so, will ignore the second request. This prevents
        +     * clients from accidentally creating duplicate commitments.
        +     *
        +     * The request ID must be a valid UUID with the exception that zero UUID is
        +     * not supported (00000000-0000-0000-0000-000000000000).
        +     * 
        + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmmigration.v1.CreateImageImportRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.CreateImageImportRequest) + private static final com.google.cloud.vmmigration.v1.CreateImageImportRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.CreateImageImportRequest(); + } + + public static com.google.cloud.vmmigration.v1.CreateImageImportRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateImageImportRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.CreateImageImportRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateImageImportRequestOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateImageImportRequestOrBuilder.java new file mode 100644 index 000000000000..8a594b30ea15 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateImageImportRequestOrBuilder.java @@ -0,0 +1,181 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface CreateImageImportRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.CreateImageImportRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Required. The ImageImport's parent.
        +   * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
        +   * Required. The ImageImport's parent.
        +   * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
        +   * Required. The image import identifier.
        +   * This value maximum length is 63 characters, and valid characters are
        +   * /[a-z][0-9]-/. It must start with an english letter and must not end with a
        +   * hyphen.
        +   * 
        + * + * string image_import_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The imageImportId. + */ + java.lang.String getImageImportId(); + + /** + * + * + *
        +   * Required. The image import identifier.
        +   * This value maximum length is 63 characters, and valid characters are
        +   * /[a-z][0-9]-/. It must start with an english letter and must not end with a
        +   * hyphen.
        +   * 
        + * + * string image_import_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for imageImportId. + */ + com.google.protobuf.ByteString getImageImportIdBytes(); + + /** + * + * + *
        +   * Required. The create request body.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ImageImport image_import = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the imageImport field is set. + */ + boolean hasImageImport(); + + /** + * + * + *
        +   * Required. The create request body.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ImageImport image_import = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The imageImport. + */ + com.google.cloud.vmmigration.v1.ImageImport getImageImport(); + + /** + * + * + *
        +   * Required. The create request body.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ImageImport image_import = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.vmmigration.v1.ImageImportOrBuilder getImageImportOrBuilder(); + + /** + * + * + *
        +   * Optional. A request ID to identify requests. Specify a unique request ID
        +   * so that if you must retry your request, the server will know to ignore
        +   * the request if it has already been completed. The server will guarantee
        +   * that for at least 60 minutes since the first request.
        +   *
        +   * For example, consider a situation where you make an initial request and
        +   * the request times out. If you make the request again with the same request
        +   * ID, the server can check if original operation with the same request ID
        +   * was received, and if so, will ignore the second request. This prevents
        +   * clients from accidentally creating duplicate commitments.
        +   *
        +   * The request ID must be a valid UUID with the exception that zero UUID is
        +   * not supported (00000000-0000-0000-0000-000000000000).
        +   * 
        + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
        +   * Optional. A request ID to identify requests. Specify a unique request ID
        +   * so that if you must retry your request, the server will know to ignore
        +   * the request if it has already been completed. The server will guarantee
        +   * that for at least 60 minutes since the first request.
        +   *
        +   * For example, consider a situation where you make an initial request and
        +   * the request times out. If you make the request again with the same request
        +   * ID, the server can check if original operation with the same request ID
        +   * was received, and if so, will ignore the second request. This prevents
        +   * clients from accidentally creating duplicate commitments.
        +   *
        +   * The request ID must be a valid UUID with the exception that zero UUID is
        +   * not supported (00000000-0000-0000-0000-000000000000).
        +   * 
        + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateMigratingVmRequest.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateMigratingVmRequest.java index 14cd6951c075..5643c446bfc4 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateMigratingVmRequest.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateMigratingVmRequest.java @@ -250,8 +250,8 @@ public com.google.cloud.vmmigration.v1.MigratingVmOrBuilder getMigratingVmOrBuil * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -286,8 +286,8 @@ public java.lang.String getRequestId() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1205,8 +1205,8 @@ public com.google.cloud.vmmigration.v1.MigratingVmOrBuilder getMigratingVmOrBuil * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1240,8 +1240,8 @@ public java.lang.String getRequestId() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1275,8 +1275,8 @@ public com.google.protobuf.ByteString getRequestIdBytes() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1309,8 +1309,8 @@ public Builder setRequestId(java.lang.String value) { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1339,8 +1339,8 @@ public Builder clearRequestId() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateMigratingVmRequestOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateMigratingVmRequestOrBuilder.java index bcf026ee743d..1cc5aad29513 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateMigratingVmRequestOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateMigratingVmRequestOrBuilder.java @@ -132,8 +132,8 @@ public interface CreateMigratingVmRequestOrBuilder * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -157,8 +157,8 @@ public interface CreateMigratingVmRequestOrBuilder * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateSourceRequest.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateSourceRequest.java index 239bfdcf7f1c..586ddbec9647 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateSourceRequest.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateSourceRequest.java @@ -243,8 +243,8 @@ public com.google.cloud.vmmigration.v1.SourceOrBuilder getSourceOrBuilder() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -279,8 +279,8 @@ public java.lang.String getRequestId() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1195,8 +1195,8 @@ public com.google.cloud.vmmigration.v1.SourceOrBuilder getSourceOrBuilder() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1230,8 +1230,8 @@ public java.lang.String getRequestId() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1265,8 +1265,8 @@ public com.google.protobuf.ByteString getRequestIdBytes() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1299,8 +1299,8 @@ public Builder setRequestId(java.lang.String value) { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1329,8 +1329,8 @@ public Builder clearRequestId() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateSourceRequestOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateSourceRequestOrBuilder.java index a24fcf9b2bfe..4edc691c816b 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateSourceRequestOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateSourceRequestOrBuilder.java @@ -129,8 +129,8 @@ public interface CreateSourceRequestOrBuilder * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -154,8 +154,8 @@ public interface CreateSourceRequestOrBuilder * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateTargetProjectRequest.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateTargetProjectRequest.java index bfafeea51ae0..11917204e1ae 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateTargetProjectRequest.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateTargetProjectRequest.java @@ -250,8 +250,8 @@ public com.google.cloud.vmmigration.v1.TargetProjectOrBuilder getTargetProjectOr * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -286,8 +286,8 @@ public java.lang.String getRequestId() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1206,8 +1206,8 @@ public com.google.cloud.vmmigration.v1.TargetProjectOrBuilder getTargetProjectOr * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1241,8 +1241,8 @@ public java.lang.String getRequestId() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1276,8 +1276,8 @@ public com.google.protobuf.ByteString getRequestIdBytes() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1310,8 +1310,8 @@ public Builder setRequestId(java.lang.String value) { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1340,8 +1340,8 @@ public Builder clearRequestId() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateTargetProjectRequestOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateTargetProjectRequestOrBuilder.java index 378d9e01843e..eb23a760516f 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateTargetProjectRequestOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateTargetProjectRequestOrBuilder.java @@ -132,8 +132,8 @@ public interface CreateTargetProjectRequestOrBuilder * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -157,8 +157,8 @@ public interface CreateTargetProjectRequestOrBuilder * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateUtilizationReportRequest.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateUtilizationReportRequest.java index 4fc88c73e07a..e237c105af33 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateUtilizationReportRequest.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateUtilizationReportRequest.java @@ -262,8 +262,8 @@ public com.google.protobuf.ByteString getUtilizationReportIdBytes() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -298,8 +298,8 @@ public java.lang.String getRequestId() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1250,8 +1250,8 @@ public Builder setUtilizationReportIdBytes(com.google.protobuf.ByteString value) * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1285,8 +1285,8 @@ public java.lang.String getRequestId() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1320,8 +1320,8 @@ public com.google.protobuf.ByteString getRequestIdBytes() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1354,8 +1354,8 @@ public Builder setRequestId(java.lang.String value) { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1384,8 +1384,8 @@ public Builder clearRequestId() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateUtilizationReportRequestOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateUtilizationReportRequestOrBuilder.java index e7b22445060f..fa0195e0d444 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateUtilizationReportRequestOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreateUtilizationReportRequestOrBuilder.java @@ -142,8 +142,8 @@ public interface CreateUtilizationReportRequestOrBuilder * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -167,8 +167,8 @@ public interface CreateUtilizationReportRequestOrBuilder * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreatingImageStep.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreatingImageStep.java new file mode 100644 index 000000000000..482488475f2c --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreatingImageStep.java @@ -0,0 +1,434 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * CreatingImageStep contains specific step details.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.CreatingImageStep} + */ +public final class CreatingImageStep extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.CreatingImageStep) + CreatingImageStepOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CreatingImageStep.newBuilder() to construct. + private CreatingImageStep(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreatingImageStep() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreatingImageStep(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_CreatingImageStep_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_CreatingImageStep_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.CreatingImageStep.class, + com.google.cloud.vmmigration.v1.CreatingImageStep.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.vmmigration.v1.CreatingImageStep)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.CreatingImageStep other = + (com.google.cloud.vmmigration.v1.CreatingImageStep) 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.vmmigration.v1.CreatingImageStep parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.CreatingImageStep 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.vmmigration.v1.CreatingImageStep parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.CreatingImageStep parseFrom( + 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.vmmigration.v1.CreatingImageStep parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.CreatingImageStep parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.CreatingImageStep parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.CreatingImageStep 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.vmmigration.v1.CreatingImageStep parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.CreatingImageStep 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.vmmigration.v1.CreatingImageStep parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.CreatingImageStep 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.vmmigration.v1.CreatingImageStep prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
        +   * CreatingImageStep contains specific step details.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.CreatingImageStep} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.CreatingImageStep) + com.google.cloud.vmmigration.v1.CreatingImageStepOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_CreatingImageStep_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_CreatingImageStep_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.CreatingImageStep.class, + com.google.cloud.vmmigration.v1.CreatingImageStep.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.CreatingImageStep.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.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_CreatingImageStep_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.CreatingImageStep getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.CreatingImageStep.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.CreatingImageStep build() { + com.google.cloud.vmmigration.v1.CreatingImageStep result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.CreatingImageStep buildPartial() { + com.google.cloud.vmmigration.v1.CreatingImageStep result = + new com.google.cloud.vmmigration.v1.CreatingImageStep(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.vmmigration.v1.CreatingImageStep) { + return mergeFrom((com.google.cloud.vmmigration.v1.CreatingImageStep) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.CreatingImageStep other) { + if (other == com.google.cloud.vmmigration.v1.CreatingImageStep.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.vmmigration.v1.CreatingImageStep) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.CreatingImageStep) + private static final com.google.cloud.vmmigration.v1.CreatingImageStep DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.CreatingImageStep(); + } + + public static com.google.cloud.vmmigration.v1.CreatingImageStep getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreatingImageStep parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.CreatingImageStep getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreatingImageStepOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreatingImageStepOrBuilder.java new file mode 100644 index 000000000000..8757f3bb2c25 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreatingImageStepOrBuilder.java @@ -0,0 +1,25 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface CreatingImageStepOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.CreatingImageStep) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreatingSourceDiskSnapshotStep.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreatingSourceDiskSnapshotStep.java new file mode 100644 index 000000000000..45f6ef0e4fc7 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreatingSourceDiskSnapshotStep.java @@ -0,0 +1,441 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * CreatingSourceDiskSnapshotStep contains specific step details.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep} + */ +public final class CreatingSourceDiskSnapshotStep extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep) + CreatingSourceDiskSnapshotStepOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CreatingSourceDiskSnapshotStep.newBuilder() to construct. + private CreatingSourceDiskSnapshotStep( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreatingSourceDiskSnapshotStep() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreatingSourceDiskSnapshotStep(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_CreatingSourceDiskSnapshotStep_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_CreatingSourceDiskSnapshotStep_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep.class, + com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep.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.vmmigration.v1.CreatingSourceDiskSnapshotStep)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep other = + (com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep) 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.vmmigration.v1.CreatingSourceDiskSnapshotStep parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep 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.vmmigration.v1.CreatingSourceDiskSnapshotStep parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep parseFrom( + 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.vmmigration.v1.CreatingSourceDiskSnapshotStep parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep 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.vmmigration.v1.CreatingSourceDiskSnapshotStep parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep 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.vmmigration.v1.CreatingSourceDiskSnapshotStep parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep 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.vmmigration.v1.CreatingSourceDiskSnapshotStep prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
        +   * CreatingSourceDiskSnapshotStep contains specific step details.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep) + com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStepOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_CreatingSourceDiskSnapshotStep_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_CreatingSourceDiskSnapshotStep_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep.class, + com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep.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.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_CreatingSourceDiskSnapshotStep_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep + getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep build() { + com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep buildPartial() { + com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep result = + new com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep(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.vmmigration.v1.CreatingSourceDiskSnapshotStep) { + return mergeFrom((com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep other) { + if (other + == com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep.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.vmmigration.v1.CreatingSourceDiskSnapshotStep) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep) + private static final com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep(); + } + + public static com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreatingSourceDiskSnapshotStep parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.CreatingSourceDiskSnapshotStep + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreatingSourceDiskSnapshotStepOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreatingSourceDiskSnapshotStepOrBuilder.java new file mode 100644 index 000000000000..d7194016e1cb --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CreatingSourceDiskSnapshotStepOrBuilder.java @@ -0,0 +1,25 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface CreatingSourceDiskSnapshotStepOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CutoverForecast.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CutoverForecast.java new file mode 100644 index 000000000000..52b457c4a9a8 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CutoverForecast.java @@ -0,0 +1,767 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * CutoverForecast holds information about future CutoverJobs of a MigratingVm.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.CutoverForecast} + */ +public final class CutoverForecast extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.CutoverForecast) + CutoverForecastOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CutoverForecast.newBuilder() to construct. + private CutoverForecast(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CutoverForecast() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CutoverForecast(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_CutoverForecast_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_CutoverForecast_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.CutoverForecast.class, + com.google.cloud.vmmigration.v1.CutoverForecast.Builder.class); + } + + private int bitField0_; + public static final int ESTIMATED_CUTOVER_JOB_DURATION_FIELD_NUMBER = 1; + private com.google.protobuf.Duration estimatedCutoverJobDuration_; + + /** + * + * + *
        +   * Output only. Estimation of the CutoverJob duration.
        +   * 
        + * + * + * .google.protobuf.Duration estimated_cutover_job_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the estimatedCutoverJobDuration field is set. + */ + @java.lang.Override + public boolean hasEstimatedCutoverJobDuration() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
        +   * Output only. Estimation of the CutoverJob duration.
        +   * 
        + * + * + * .google.protobuf.Duration estimated_cutover_job_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The estimatedCutoverJobDuration. + */ + @java.lang.Override + public com.google.protobuf.Duration getEstimatedCutoverJobDuration() { + return estimatedCutoverJobDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : estimatedCutoverJobDuration_; + } + + /** + * + * + *
        +   * Output only. Estimation of the CutoverJob duration.
        +   * 
        + * + * + * .google.protobuf.Duration estimated_cutover_job_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getEstimatedCutoverJobDurationOrBuilder() { + return estimatedCutoverJobDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : estimatedCutoverJobDuration_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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, getEstimatedCutoverJobDuration()); + } + 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, getEstimatedCutoverJobDuration()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.vmmigration.v1.CutoverForecast)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.CutoverForecast other = + (com.google.cloud.vmmigration.v1.CutoverForecast) obj; + + if (hasEstimatedCutoverJobDuration() != other.hasEstimatedCutoverJobDuration()) return false; + if (hasEstimatedCutoverJobDuration()) { + if (!getEstimatedCutoverJobDuration().equals(other.getEstimatedCutoverJobDuration())) + 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 (hasEstimatedCutoverJobDuration()) { + hash = (37 * hash) + ESTIMATED_CUTOVER_JOB_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getEstimatedCutoverJobDuration().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.CutoverForecast parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.CutoverForecast 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.vmmigration.v1.CutoverForecast parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.CutoverForecast parseFrom( + 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.vmmigration.v1.CutoverForecast parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.CutoverForecast parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.CutoverForecast parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.CutoverForecast 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.vmmigration.v1.CutoverForecast parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.CutoverForecast 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.vmmigration.v1.CutoverForecast parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.CutoverForecast 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.vmmigration.v1.CutoverForecast prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
        +   * CutoverForecast holds information about future CutoverJobs of a MigratingVm.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.CutoverForecast} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.CutoverForecast) + com.google.cloud.vmmigration.v1.CutoverForecastOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_CutoverForecast_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_CutoverForecast_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.CutoverForecast.class, + com.google.cloud.vmmigration.v1.CutoverForecast.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.CutoverForecast.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getEstimatedCutoverJobDurationFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + estimatedCutoverJobDuration_ = null; + if (estimatedCutoverJobDurationBuilder_ != null) { + estimatedCutoverJobDurationBuilder_.dispose(); + estimatedCutoverJobDurationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_CutoverForecast_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.CutoverForecast getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.CutoverForecast.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.CutoverForecast build() { + com.google.cloud.vmmigration.v1.CutoverForecast result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.CutoverForecast buildPartial() { + com.google.cloud.vmmigration.v1.CutoverForecast result = + new com.google.cloud.vmmigration.v1.CutoverForecast(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vmmigration.v1.CutoverForecast result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.estimatedCutoverJobDuration_ = + estimatedCutoverJobDurationBuilder_ == null + ? estimatedCutoverJobDuration_ + : estimatedCutoverJobDurationBuilder_.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.vmmigration.v1.CutoverForecast) { + return mergeFrom((com.google.cloud.vmmigration.v1.CutoverForecast) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.CutoverForecast other) { + if (other == com.google.cloud.vmmigration.v1.CutoverForecast.getDefaultInstance()) + return this; + if (other.hasEstimatedCutoverJobDuration()) { + mergeEstimatedCutoverJobDuration(other.getEstimatedCutoverJobDuration()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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( + getEstimatedCutoverJobDurationFieldBuilder().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.protobuf.Duration estimatedCutoverJobDuration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + estimatedCutoverJobDurationBuilder_; + + /** + * + * + *
        +     * Output only. Estimation of the CutoverJob duration.
        +     * 
        + * + * + * .google.protobuf.Duration estimated_cutover_job_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the estimatedCutoverJobDuration field is set. + */ + public boolean hasEstimatedCutoverJobDuration() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
        +     * Output only. Estimation of the CutoverJob duration.
        +     * 
        + * + * + * .google.protobuf.Duration estimated_cutover_job_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The estimatedCutoverJobDuration. + */ + public com.google.protobuf.Duration getEstimatedCutoverJobDuration() { + if (estimatedCutoverJobDurationBuilder_ == null) { + return estimatedCutoverJobDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : estimatedCutoverJobDuration_; + } else { + return estimatedCutoverJobDurationBuilder_.getMessage(); + } + } + + /** + * + * + *
        +     * Output only. Estimation of the CutoverJob duration.
        +     * 
        + * + * + * .google.protobuf.Duration estimated_cutover_job_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEstimatedCutoverJobDuration(com.google.protobuf.Duration value) { + if (estimatedCutoverJobDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + estimatedCutoverJobDuration_ = value; + } else { + estimatedCutoverJobDurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. Estimation of the CutoverJob duration.
        +     * 
        + * + * + * .google.protobuf.Duration estimated_cutover_job_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEstimatedCutoverJobDuration( + com.google.protobuf.Duration.Builder builderForValue) { + if (estimatedCutoverJobDurationBuilder_ == null) { + estimatedCutoverJobDuration_ = builderForValue.build(); + } else { + estimatedCutoverJobDurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. Estimation of the CutoverJob duration.
        +     * 
        + * + * + * .google.protobuf.Duration estimated_cutover_job_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEstimatedCutoverJobDuration(com.google.protobuf.Duration value) { + if (estimatedCutoverJobDurationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && estimatedCutoverJobDuration_ != null + && estimatedCutoverJobDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + getEstimatedCutoverJobDurationBuilder().mergeFrom(value); + } else { + estimatedCutoverJobDuration_ = value; + } + } else { + estimatedCutoverJobDurationBuilder_.mergeFrom(value); + } + if (estimatedCutoverJobDuration_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Output only. Estimation of the CutoverJob duration.
        +     * 
        + * + * + * .google.protobuf.Duration estimated_cutover_job_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEstimatedCutoverJobDuration() { + bitField0_ = (bitField0_ & ~0x00000001); + estimatedCutoverJobDuration_ = null; + if (estimatedCutoverJobDurationBuilder_ != null) { + estimatedCutoverJobDurationBuilder_.dispose(); + estimatedCutoverJobDurationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. Estimation of the CutoverJob duration.
        +     * 
        + * + * + * .google.protobuf.Duration estimated_cutover_job_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Duration.Builder getEstimatedCutoverJobDurationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getEstimatedCutoverJobDurationFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Output only. Estimation of the CutoverJob duration.
        +     * 
        + * + * + * .google.protobuf.Duration estimated_cutover_job_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.DurationOrBuilder getEstimatedCutoverJobDurationOrBuilder() { + if (estimatedCutoverJobDurationBuilder_ != null) { + return estimatedCutoverJobDurationBuilder_.getMessageOrBuilder(); + } else { + return estimatedCutoverJobDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : estimatedCutoverJobDuration_; + } + } + + /** + * + * + *
        +     * Output only. Estimation of the CutoverJob duration.
        +     * 
        + * + * + * .google.protobuf.Duration estimated_cutover_job_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getEstimatedCutoverJobDurationFieldBuilder() { + if (estimatedCutoverJobDurationBuilder_ == null) { + estimatedCutoverJobDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getEstimatedCutoverJobDuration(), getParentForChildren(), isClean()); + estimatedCutoverJobDuration_ = null; + } + return estimatedCutoverJobDurationBuilder_; + } + + @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.vmmigration.v1.CutoverForecast) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.CutoverForecast) + private static final com.google.cloud.vmmigration.v1.CutoverForecast DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.CutoverForecast(); + } + + public static com.google.cloud.vmmigration.v1.CutoverForecast getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CutoverForecast parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.CutoverForecast getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CutoverForecastOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CutoverForecastOrBuilder.java new file mode 100644 index 000000000000..ad26bd4f961f --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CutoverForecastOrBuilder.java @@ -0,0 +1,69 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface CutoverForecastOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.CutoverForecast) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Output only. Estimation of the CutoverJob duration.
        +   * 
        + * + * + * .google.protobuf.Duration estimated_cutover_job_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the estimatedCutoverJobDuration field is set. + */ + boolean hasEstimatedCutoverJobDuration(); + + /** + * + * + *
        +   * Output only. Estimation of the CutoverJob duration.
        +   * 
        + * + * + * .google.protobuf.Duration estimated_cutover_job_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The estimatedCutoverJobDuration. + */ + com.google.protobuf.Duration getEstimatedCutoverJobDuration(); + + /** + * + * + *
        +   * Output only. Estimation of the CutoverJob duration.
        +   * 
        + * + * + * .google.protobuf.Duration estimated_cutover_job_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.DurationOrBuilder getEstimatedCutoverJobDurationOrBuilder(); +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CutoverJob.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CutoverJob.java index 65c5862c430c..261cd250c81e 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CutoverJob.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CutoverJob.java @@ -25,7 +25,7 @@ *
          * CutoverJob message describes a cutover of a migrating VM. The CutoverJob is
          * the operation of shutting down the VM, creating a snapshot and
        - * clonning the VM using the replicated snapshot.
        + * cloning the VM using the replicated snapshot.
          * 
        * * Protobuf type {@code google.cloud.vmmigration.v1.CutoverJob} @@ -356,6 +356,7 @@ public enum TargetVmDetailsCase com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { COMPUTE_ENGINE_TARGET_DETAILS(14), + COMPUTE_ENGINE_DISKS_TARGET_DETAILS(20), TARGETVMDETAILS_NOT_SET(0); private final int value; @@ -377,6 +378,8 @@ public static TargetVmDetailsCase forNumber(int value) { switch (value) { case 14: return COMPUTE_ENGINE_TARGET_DETAILS; + case 20: + return COMPUTE_ENGINE_DISKS_TARGET_DETAILS; case 0: return TARGETVMDETAILS_NOT_SET; default: @@ -455,6 +458,68 @@ public boolean hasComputeEngineTargetDetails() { return com.google.cloud.vmmigration.v1.ComputeEngineTargetDetails.getDefaultInstance(); } + public static final int COMPUTE_ENGINE_DISKS_TARGET_DETAILS_FIELD_NUMBER = 20; + + /** + * + * + *
        +   * Output only. Details of the target Persistent Disks in Compute Engine.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails compute_engine_disks_target_details = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the computeEngineDisksTargetDetails field is set. + */ + @java.lang.Override + public boolean hasComputeEngineDisksTargetDetails() { + return targetVmDetailsCase_ == 20; + } + + /** + * + * + *
        +   * Output only. Details of the target Persistent Disks in Compute Engine.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails compute_engine_disks_target_details = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The computeEngineDisksTargetDetails. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails + getComputeEngineDisksTargetDetails() { + if (targetVmDetailsCase_ == 20) { + return (com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails) targetVmDetails_; + } + return com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails.getDefaultInstance(); + } + + /** + * + * + *
        +   * Output only. Details of the target Persistent Disks in Compute Engine.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails compute_engine_disks_target_details = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetailsOrBuilder + getComputeEngineDisksTargetDetailsOrBuilder() { + if (targetVmDetailsCase_ == 20) { + return (com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails) targetVmDetails_; + } + return com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails.getDefaultInstance(); + } + public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; @@ -965,6 +1030,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < steps_.size(); i++) { output.writeMessage(17, steps_.get(i)); } + if (targetVmDetailsCase_ == 20) { + output.writeMessage( + 20, (com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails) targetVmDetails_); + } getUnknownFields().writeTo(output); } @@ -1006,6 +1075,12 @@ public int getSerializedSize() { for (int i = 0; i < steps_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, steps_.get(i)); } + if (targetVmDetailsCase_ == 20) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 20, + (com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails) targetVmDetails_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1049,6 +1124,10 @@ public boolean equals(final java.lang.Object obj) { if (!getComputeEngineTargetDetails().equals(other.getComputeEngineTargetDetails())) return false; break; + case 20: + if (!getComputeEngineDisksTargetDetails() + .equals(other.getComputeEngineDisksTargetDetails())) return false; + break; case 0: default: } @@ -1096,6 +1175,10 @@ public int hashCode() { hash = (37 * hash) + COMPUTE_ENGINE_TARGET_DETAILS_FIELD_NUMBER; hash = (53 * hash) + getComputeEngineTargetDetails().hashCode(); break; + case 20: + hash = (37 * hash) + COMPUTE_ENGINE_DISKS_TARGET_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getComputeEngineDisksTargetDetails().hashCode(); + break; case 0: default: } @@ -1206,7 +1289,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build *
            * CutoverJob message describes a cutover of a migrating VM. The CutoverJob is
            * the operation of shutting down the VM, creating a snapshot and
        -   * clonning the VM using the replicated snapshot.
        +   * cloning the VM using the replicated snapshot.
            * 
        * * Protobuf type {@code google.cloud.vmmigration.v1.CutoverJob} @@ -1257,6 +1340,9 @@ public Builder clear() { if (computeEngineTargetDetailsBuilder_ != null) { computeEngineTargetDetailsBuilder_.clear(); } + if (computeEngineDisksTargetDetailsBuilder_ != null) { + computeEngineDisksTargetDetailsBuilder_.clear(); + } createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -1287,7 +1373,7 @@ public Builder clear() { steps_ = null; stepsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); targetVmDetailsCase_ = 0; targetVmDetails_ = null; return this; @@ -1328,9 +1414,9 @@ public com.google.cloud.vmmigration.v1.CutoverJob buildPartial() { private void buildPartialRepeatedFields(com.google.cloud.vmmigration.v1.CutoverJob result) { if (stepsBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0)) { + if (((bitField0_ & 0x00000400) != 0)) { steps_ = java.util.Collections.unmodifiableList(steps_); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); } result.steps_ = steps_; } else { @@ -1341,32 +1427,32 @@ private void buildPartialRepeatedFields(com.google.cloud.vmmigration.v1.CutoverJ private void buildPartial0(com.google.cloud.vmmigration.v1.CutoverJob 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.name_ = name_; } - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.state_ = state_; } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.stateTime_ = stateTimeBuilder_ == null ? stateTime_ : stateTimeBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.progressPercent_ = progressPercent_; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.stateMessage_ = stateMessage_; } result.bitField0_ |= to_bitField0_; @@ -1378,6 +1464,9 @@ private void buildPartialOneofs(com.google.cloud.vmmigration.v1.CutoverJob resul if (targetVmDetailsCase_ == 14 && computeEngineTargetDetailsBuilder_ != null) { result.targetVmDetails_ = computeEngineTargetDetailsBuilder_.build(); } + if (targetVmDetailsCase_ == 20 && computeEngineDisksTargetDetailsBuilder_ != null) { + result.targetVmDetails_ = computeEngineDisksTargetDetailsBuilder_.build(); + } } @java.lang.Override @@ -1433,7 +1522,7 @@ public Builder mergeFrom(com.google.cloud.vmmigration.v1.CutoverJob other) { } if (!other.getName().isEmpty()) { name_ = other.name_; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); } if (other.state_ != 0) { @@ -1450,14 +1539,14 @@ public Builder mergeFrom(com.google.cloud.vmmigration.v1.CutoverJob other) { } if (!other.getStateMessage().isEmpty()) { stateMessage_ = other.stateMessage_; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); } if (stepsBuilder_ == null) { if (!other.steps_.isEmpty()) { if (steps_.isEmpty()) { steps_ = other.steps_; - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); } else { ensureStepsIsMutable(); steps_.addAll(other.steps_); @@ -1470,7 +1559,7 @@ public Builder mergeFrom(com.google.cloud.vmmigration.v1.CutoverJob other) { stepsBuilder_.dispose(); stepsBuilder_ = null; steps_ = other.steps_; - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); stepsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getStepsFieldBuilder() @@ -1486,6 +1575,11 @@ public Builder mergeFrom(com.google.cloud.vmmigration.v1.CutoverJob other) { mergeComputeEngineTargetDetails(other.getComputeEngineTargetDetails()); break; } + case COMPUTE_ENGINE_DISKS_TARGET_DETAILS: + { + mergeComputeEngineDisksTargetDetails(other.getComputeEngineDisksTargetDetails()); + break; + } case TARGETVMDETAILS_NOT_SET: { break; @@ -1520,43 +1614,43 @@ public Builder mergeFrom( case 10: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; break; } // case 10 case 26: { name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 26 case 40: { state_ = input.readEnum(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 40 case 50: { input.readMessage(getStateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 50 case 74: { input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 74 case 82: { stateMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 82 case 104: { progressPercent_ = input.readInt32(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 104 case 114: @@ -1569,7 +1663,7 @@ public Builder mergeFrom( case 130: { input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 130 case 138: @@ -1585,6 +1679,14 @@ public Builder mergeFrom( } break; } // case 138 + case 162: + { + input.readMessage( + getComputeEngineDisksTargetDetailsFieldBuilder().getBuilder(), + extensionRegistry); + targetVmDetailsCase_ = 20; + break; + } // case 162 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1862,6 +1964,251 @@ public Builder clearComputeEngineTargetDetails() { return computeEngineTargetDetailsBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails, + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails.Builder, + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetailsOrBuilder> + computeEngineDisksTargetDetailsBuilder_; + + /** + * + * + *
        +     * Output only. Details of the target Persistent Disks in Compute Engine.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails compute_engine_disks_target_details = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the computeEngineDisksTargetDetails field is set. + */ + @java.lang.Override + public boolean hasComputeEngineDisksTargetDetails() { + return targetVmDetailsCase_ == 20; + } + + /** + * + * + *
        +     * Output only. Details of the target Persistent Disks in Compute Engine.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails compute_engine_disks_target_details = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The computeEngineDisksTargetDetails. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails + getComputeEngineDisksTargetDetails() { + if (computeEngineDisksTargetDetailsBuilder_ == null) { + if (targetVmDetailsCase_ == 20) { + return (com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails) targetVmDetails_; + } + return com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails.getDefaultInstance(); + } else { + if (targetVmDetailsCase_ == 20) { + return computeEngineDisksTargetDetailsBuilder_.getMessage(); + } + return com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Output only. Details of the target Persistent Disks in Compute Engine.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails compute_engine_disks_target_details = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setComputeEngineDisksTargetDetails( + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails value) { + if (computeEngineDisksTargetDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + targetVmDetails_ = value; + onChanged(); + } else { + computeEngineDisksTargetDetailsBuilder_.setMessage(value); + } + targetVmDetailsCase_ = 20; + return this; + } + + /** + * + * + *
        +     * Output only. Details of the target Persistent Disks in Compute Engine.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails compute_engine_disks_target_details = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setComputeEngineDisksTargetDetails( + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails.Builder builderForValue) { + if (computeEngineDisksTargetDetailsBuilder_ == null) { + targetVmDetails_ = builderForValue.build(); + onChanged(); + } else { + computeEngineDisksTargetDetailsBuilder_.setMessage(builderForValue.build()); + } + targetVmDetailsCase_ = 20; + return this; + } + + /** + * + * + *
        +     * Output only. Details of the target Persistent Disks in Compute Engine.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails compute_engine_disks_target_details = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeComputeEngineDisksTargetDetails( + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails value) { + if (computeEngineDisksTargetDetailsBuilder_ == null) { + if (targetVmDetailsCase_ == 20 + && targetVmDetails_ + != com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails + .getDefaultInstance()) { + targetVmDetails_ = + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails.newBuilder( + (com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails) + targetVmDetails_) + .mergeFrom(value) + .buildPartial(); + } else { + targetVmDetails_ = value; + } + onChanged(); + } else { + if (targetVmDetailsCase_ == 20) { + computeEngineDisksTargetDetailsBuilder_.mergeFrom(value); + } else { + computeEngineDisksTargetDetailsBuilder_.setMessage(value); + } + } + targetVmDetailsCase_ = 20; + return this; + } + + /** + * + * + *
        +     * Output only. Details of the target Persistent Disks in Compute Engine.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails compute_engine_disks_target_details = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearComputeEngineDisksTargetDetails() { + if (computeEngineDisksTargetDetailsBuilder_ == null) { + if (targetVmDetailsCase_ == 20) { + targetVmDetailsCase_ = 0; + targetVmDetails_ = null; + onChanged(); + } + } else { + if (targetVmDetailsCase_ == 20) { + targetVmDetailsCase_ = 0; + targetVmDetails_ = null; + } + computeEngineDisksTargetDetailsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Output only. Details of the target Persistent Disks in Compute Engine.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails compute_engine_disks_target_details = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails.Builder + getComputeEngineDisksTargetDetailsBuilder() { + return getComputeEngineDisksTargetDetailsFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Output only. Details of the target Persistent Disks in Compute Engine.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails compute_engine_disks_target_details = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetailsOrBuilder + getComputeEngineDisksTargetDetailsOrBuilder() { + if ((targetVmDetailsCase_ == 20) && (computeEngineDisksTargetDetailsBuilder_ != null)) { + return computeEngineDisksTargetDetailsBuilder_.getMessageOrBuilder(); + } else { + if (targetVmDetailsCase_ == 20) { + return (com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails) targetVmDetails_; + } + return com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Output only. Details of the target Persistent Disks in Compute Engine.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails compute_engine_disks_target_details = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails, + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails.Builder, + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetailsOrBuilder> + getComputeEngineDisksTargetDetailsFieldBuilder() { + if (computeEngineDisksTargetDetailsBuilder_ == null) { + if (!(targetVmDetailsCase_ == 20)) { + targetVmDetails_ = + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails.getDefaultInstance(); + } + computeEngineDisksTargetDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails, + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails.Builder, + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetailsOrBuilder>( + (com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails) targetVmDetails_, + getParentForChildren(), + isClean()); + targetVmDetails_ = null; + } + targetVmDetailsCase_ = 20; + onChanged(); + return computeEngineDisksTargetDetailsBuilder_; + } + private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, @@ -1884,7 +2231,7 @@ public Builder clearComputeEngineTargetDetails() { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** @@ -1932,7 +2279,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1955,7 +2302,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { createTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1974,7 +2321,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); @@ -1985,7 +2332,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); } return this; @@ -2004,7 +2351,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(); @@ -2027,7 +2374,7 @@ public Builder clearCreateTime() { *
        */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -2103,7 +2450,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); } /** @@ -2145,7 +2492,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { } else { endTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2166,7 +2513,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) } else { endTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2183,7 +2530,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); @@ -2194,7 +2541,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { endTimeBuilder_.mergeFrom(value); } if (endTime_ != null) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } return this; @@ -2211,7 +2558,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(); @@ -2232,7 +2579,7 @@ public Builder clearEndTime() { * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return getEndTimeFieldBuilder().getBuilder(); } @@ -2347,7 +2694,7 @@ public Builder setName(java.lang.String value) { throw new NullPointerException(); } name_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2365,7 +2712,7 @@ public Builder setName(java.lang.String value) { */ public Builder clearName() { name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -2388,7 +2735,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); name_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2429,7 +2776,7 @@ public int getStateValue() { */ public Builder setStateValue(int value) { state_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2474,7 +2821,7 @@ public Builder setState(com.google.cloud.vmmigration.v1.CutoverJob.State value) if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; state_ = value.getNumber(); onChanged(); return this; @@ -2494,7 +2841,7 @@ public Builder setState(com.google.cloud.vmmigration.v1.CutoverJob.State value) * @return This builder for chaining. */ public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); state_ = 0; onChanged(); return this; @@ -2520,7 +2867,7 @@ public Builder clearState() { * @return Whether the stateTime field is set. */ public boolean hasStateTime() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** @@ -2562,7 +2909,7 @@ public Builder setStateTime(com.google.protobuf.Timestamp value) { } else { stateTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2583,7 +2930,7 @@ public Builder setStateTime(com.google.protobuf.Timestamp.Builder builderForValu } else { stateTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2600,7 +2947,7 @@ public Builder setStateTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStateTime(com.google.protobuf.Timestamp value) { if (stateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) + if (((bitField0_ & 0x00000040) != 0) && stateTime_ != null && stateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStateTimeBuilder().mergeFrom(value); @@ -2611,7 +2958,7 @@ public Builder mergeStateTime(com.google.protobuf.Timestamp value) { stateTimeBuilder_.mergeFrom(value); } if (stateTime_ != null) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } return this; @@ -2628,7 +2975,7 @@ public Builder mergeStateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearStateTime() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); stateTime_ = null; if (stateTimeBuilder_ != null) { stateTimeBuilder_.dispose(); @@ -2649,7 +2996,7 @@ public Builder clearStateTime() { * */ public com.google.protobuf.Timestamp.Builder getStateTimeBuilder() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return getStateTimeFieldBuilder().getBuilder(); } @@ -2732,7 +3079,7 @@ public int getProgressPercent() { public Builder setProgressPercent(int value) { progressPercent_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2749,7 +3096,7 @@ public Builder setProgressPercent(int value) { * @return This builder for chaining. */ public Builder clearProgressPercent() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); progressPercent_ = 0; onChanged(); return this; @@ -2773,7 +3120,7 @@ public Builder clearProgressPercent() { * @return Whether the error field is set. */ public boolean hasError() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -2815,7 +3162,7 @@ public Builder setError(com.google.rpc.Status value) { } else { errorBuilder_.setMessage(value); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2836,7 +3183,7 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { } else { errorBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2853,7 +3200,7 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { */ public Builder mergeError(com.google.rpc.Status value) { if (errorBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) + if (((bitField0_ & 0x00000100) != 0) && error_ != null && error_ != com.google.rpc.Status.getDefaultInstance()) { getErrorBuilder().mergeFrom(value); @@ -2864,7 +3211,7 @@ public Builder mergeError(com.google.rpc.Status value) { errorBuilder_.mergeFrom(value); } if (error_ != null) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } return this; @@ -2881,7 +3228,7 @@ public Builder mergeError(com.google.rpc.Status value) { * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearError() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); error_ = null; if (errorBuilder_ != null) { errorBuilder_.dispose(); @@ -2902,7 +3249,7 @@ public Builder clearError() { * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.Status.Builder getErrorBuilder() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return getErrorFieldBuilder().getBuilder(); } @@ -3017,7 +3364,7 @@ public Builder setStateMessage(java.lang.String value) { throw new NullPointerException(); } stateMessage_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3036,7 +3383,7 @@ public Builder setStateMessage(java.lang.String value) { */ public Builder clearStateMessage() { stateMessage_ = getDefaultInstance().getStateMessage(); - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -3060,7 +3407,7 @@ public Builder setStateMessageBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); stateMessage_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3069,9 +3416,9 @@ public Builder setStateMessageBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureStepsIsMutable() { - if (!((bitField0_ & 0x00000200) != 0)) { + if (!((bitField0_ & 0x00000400) != 0)) { steps_ = new java.util.ArrayList(steps_); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; } } @@ -3318,7 +3665,7 @@ public Builder addAllSteps( public Builder clearSteps() { if (stepsBuilder_ == null) { steps_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); } else { stepsBuilder_.clear(); @@ -3461,7 +3808,7 @@ public com.google.cloud.vmmigration.v1.CutoverStep.Builder addStepsBuilder(int i com.google.cloud.vmmigration.v1.CutoverStep, com.google.cloud.vmmigration.v1.CutoverStep.Builder, com.google.cloud.vmmigration.v1.CutoverStepOrBuilder>( - steps_, ((bitField0_ & 0x00000200) != 0), getParentForChildren(), isClean()); + steps_, ((bitField0_ & 0x00000400) != 0), getParentForChildren(), isClean()); steps_ = null; } return stepsBuilder_; diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CutoverJobOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CutoverJobOrBuilder.java index f7d7bf3853a5..f9fe7a7858aa 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CutoverJobOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CutoverJobOrBuilder.java @@ -68,6 +68,51 @@ public interface CutoverJobOrBuilder com.google.cloud.vmmigration.v1.ComputeEngineTargetDetailsOrBuilder getComputeEngineTargetDetailsOrBuilder(); + /** + * + * + *
        +   * Output only. Details of the target Persistent Disks in Compute Engine.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails compute_engine_disks_target_details = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the computeEngineDisksTargetDetails field is set. + */ + boolean hasComputeEngineDisksTargetDetails(); + + /** + * + * + *
        +   * Output only. Details of the target Persistent Disks in Compute Engine.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails compute_engine_disks_target_details = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The computeEngineDisksTargetDetails. + */ + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails + getComputeEngineDisksTargetDetails(); + + /** + * + * + *
        +   * Output only. Details of the target Persistent Disks in Compute Engine.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetails compute_engine_disks_target_details = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDetailsOrBuilder + getComputeEngineDisksTargetDetailsOrBuilder(); + /** * * diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DataDiskImageImport.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DataDiskImageImport.java new file mode 100644 index 000000000000..f6a9d6a6161b --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DataDiskImageImport.java @@ -0,0 +1,434 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * Mentions that the image import is not using OS adaptation process.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.DataDiskImageImport} + */ +public final class DataDiskImageImport extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.DataDiskImageImport) + DataDiskImageImportOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DataDiskImageImport.newBuilder() to construct. + private DataDiskImageImport(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DataDiskImageImport() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DataDiskImageImport(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DataDiskImageImport_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DataDiskImageImport_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.DataDiskImageImport.class, + com.google.cloud.vmmigration.v1.DataDiskImageImport.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.vmmigration.v1.DataDiskImageImport)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.DataDiskImageImport other = + (com.google.cloud.vmmigration.v1.DataDiskImageImport) 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.vmmigration.v1.DataDiskImageImport parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.DataDiskImageImport 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.vmmigration.v1.DataDiskImageImport parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.DataDiskImageImport parseFrom( + 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.vmmigration.v1.DataDiskImageImport parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.DataDiskImageImport parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.DataDiskImageImport parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.DataDiskImageImport 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.vmmigration.v1.DataDiskImageImport parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.DataDiskImageImport 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.vmmigration.v1.DataDiskImageImport parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.DataDiskImageImport 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.vmmigration.v1.DataDiskImageImport prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
        +   * Mentions that the image import is not using OS adaptation process.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.DataDiskImageImport} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.DataDiskImageImport) + com.google.cloud.vmmigration.v1.DataDiskImageImportOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DataDiskImageImport_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DataDiskImageImport_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.DataDiskImageImport.class, + com.google.cloud.vmmigration.v1.DataDiskImageImport.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.DataDiskImageImport.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.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DataDiskImageImport_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.DataDiskImageImport getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.DataDiskImageImport.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.DataDiskImageImport build() { + com.google.cloud.vmmigration.v1.DataDiskImageImport result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.DataDiskImageImport buildPartial() { + com.google.cloud.vmmigration.v1.DataDiskImageImport result = + new com.google.cloud.vmmigration.v1.DataDiskImageImport(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.vmmigration.v1.DataDiskImageImport) { + return mergeFrom((com.google.cloud.vmmigration.v1.DataDiskImageImport) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.DataDiskImageImport other) { + if (other == com.google.cloud.vmmigration.v1.DataDiskImageImport.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.vmmigration.v1.DataDiskImageImport) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.DataDiskImageImport) + private static final com.google.cloud.vmmigration.v1.DataDiskImageImport DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.DataDiskImageImport(); + } + + public static com.google.cloud.vmmigration.v1.DataDiskImageImport getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataDiskImageImport parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.DataDiskImageImport getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DataDiskImageImportOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DataDiskImageImportOrBuilder.java new file mode 100644 index 000000000000..e946a21174c7 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DataDiskImageImportOrBuilder.java @@ -0,0 +1,25 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface DataDiskImageImportOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.DataDiskImageImport) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DeleteDatacenterConnectorRequest.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DeleteDatacenterConnectorRequest.java index 59c114463dc6..0a4e3e28a273 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DeleteDatacenterConnectorRequest.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DeleteDatacenterConnectorRequest.java @@ -137,8 +137,8 @@ public com.google.protobuf.ByteString getNameBytes() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes after the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -173,8 +173,8 @@ public java.lang.String getRequestId() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes after the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -704,8 +704,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes after the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -739,8 +739,8 @@ public java.lang.String getRequestId() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes after the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -774,8 +774,8 @@ public com.google.protobuf.ByteString getRequestIdBytes() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes after the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -808,8 +808,8 @@ public Builder setRequestId(java.lang.String value) { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes after the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -838,8 +838,8 @@ public Builder clearRequestId() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes after the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DeleteDatacenterConnectorRequestOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DeleteDatacenterConnectorRequestOrBuilder.java index df6ce7dadc57..b8fe790738bd 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DeleteDatacenterConnectorRequestOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DeleteDatacenterConnectorRequestOrBuilder.java @@ -63,8 +63,8 @@ public interface DeleteDatacenterConnectorRequestOrBuilder * the request if it has already been completed. The server will guarantee * that for at least 60 minutes after the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -88,8 +88,8 @@ public interface DeleteDatacenterConnectorRequestOrBuilder * the request if it has already been completed. The server will guarantee * that for at least 60 minutes after the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DeleteDiskMigrationJobRequest.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DeleteDiskMigrationJobRequest.java new file mode 100644 index 000000000000..ad52dc9454db --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DeleteDiskMigrationJobRequest.java @@ -0,0 +1,653 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * Request message for 'DeleteDiskMigrationJob' request.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest} + */ +public final class DeleteDiskMigrationJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest) + DeleteDiskMigrationJobRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DeleteDiskMigrationJobRequest.newBuilder() to construct. + private DeleteDiskMigrationJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteDiskMigrationJobRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteDiskMigrationJobRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DeleteDiskMigrationJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DeleteDiskMigrationJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest.class, + com.google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
        +   * Required. The name of the DiskMigrationJob.
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
        +   * Required. The name of the DiskMigrationJob.
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest other = + (com.google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest 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.vmmigration.v1.DeleteDiskMigrationJobRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest parseFrom( + 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.vmmigration.v1.DeleteDiskMigrationJobRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest 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.vmmigration.v1.DeleteDiskMigrationJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest 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.vmmigration.v1.DeleteDiskMigrationJobRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest 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.vmmigration.v1.DeleteDiskMigrationJobRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * Request message for 'DeleteDiskMigrationJob' request.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest) + com.google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DeleteDiskMigrationJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DeleteDiskMigrationJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest.class, + com.google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DeleteDiskMigrationJobRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest + getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest build() { + com.google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest buildPartial() { + com.google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest result = + new com.google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest) { + return mergeFrom((com.google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest other) { + if (other + == com.google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
        +     * Required. The name of the DiskMigrationJob.
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Required. The name of the DiskMigrationJob.
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Required. The name of the DiskMigrationJob.
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The name of the DiskMigrationJob.
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The name of the DiskMigrationJob.
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest) + private static final com.google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest(); + } + + public static com.google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteDiskMigrationJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.DeleteDiskMigrationJobRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DeleteDiskMigrationJobRequestOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DeleteDiskMigrationJobRequestOrBuilder.java new file mode 100644 index 000000000000..018e945e5140 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DeleteDiskMigrationJobRequestOrBuilder.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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface DeleteDiskMigrationJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Required. The name of the DiskMigrationJob.
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
        +   * Required. The name of the DiskMigrationJob.
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DeleteGroupRequest.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DeleteGroupRequest.java index 1b19418fc6ba..b102157bc416 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DeleteGroupRequest.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DeleteGroupRequest.java @@ -136,8 +136,8 @@ public com.google.protobuf.ByteString getNameBytes() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes after the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -172,8 +172,8 @@ public java.lang.String getRequestId() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes after the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -698,8 +698,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes after the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -733,8 +733,8 @@ public java.lang.String getRequestId() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes after the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -768,8 +768,8 @@ public com.google.protobuf.ByteString getRequestIdBytes() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes after the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -802,8 +802,8 @@ public Builder setRequestId(java.lang.String value) { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes after the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -832,8 +832,8 @@ public Builder clearRequestId() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes after the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DeleteGroupRequestOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DeleteGroupRequestOrBuilder.java index 46d900e49106..705007e85d1c 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DeleteGroupRequestOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DeleteGroupRequestOrBuilder.java @@ -63,8 +63,8 @@ public interface DeleteGroupRequestOrBuilder * the request if it has already been completed. The server will guarantee * that for at least 60 minutes after the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -88,8 +88,8 @@ public interface DeleteGroupRequestOrBuilder * the request if it has already been completed. The server will guarantee * that for at least 60 minutes after the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DeleteImageImportRequest.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DeleteImageImportRequest.java new file mode 100644 index 000000000000..6e3dfbbda610 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DeleteImageImportRequest.java @@ -0,0 +1,922 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * Request message for 'DeleteImageImport' request.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.DeleteImageImportRequest} + */ +public final class DeleteImageImportRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.DeleteImageImportRequest) + DeleteImageImportRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DeleteImageImportRequest.newBuilder() to construct. + private DeleteImageImportRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteImageImportRequest() { + name_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteImageImportRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DeleteImageImportRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DeleteImageImportRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.DeleteImageImportRequest.class, + com.google.cloud.vmmigration.v1.DeleteImageImportRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
        +   * Required. The ImageImport name.
        +   * 
        + * + * + * 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 ImageImport name.
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
        +   * Optional. A request ID to identify requests. Specify a unique request ID
        +   * so that if you must retry your request, the server will know to ignore
        +   * the request if it has already been completed. The server will guarantee
        +   * that for at least 60 minutes after the first request.
        +   *
        +   * For example, consider a situation where you make an initial request and t
        +   * he request times out. If you make the request again with the same request
        +   * ID, the server can check if original operation with the same request ID
        +   * was received, and if so, will ignore the second request. This prevents
        +   * clients from accidentally creating duplicate commitments.
        +   *
        +   * The request ID must be a valid UUID with the exception that zero UUID is
        +   * not supported (00000000-0000-0000-0000-000000000000).
        +   * 
        + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
        +   * Optional. A request ID to identify requests. Specify a unique request ID
        +   * so that if you must retry your request, the server will know to ignore
        +   * the request if it has already been completed. The server will guarantee
        +   * that for at least 60 minutes after the first request.
        +   *
        +   * For example, consider a situation where you make an initial request and t
        +   * he request times out. If you make the request again with the same request
        +   * ID, the server can check if original operation with the same request ID
        +   * was received, and if so, will ignore the second request. This prevents
        +   * clients from accidentally creating duplicate commitments.
        +   *
        +   * The request ID must be a valid UUID with the exception that zero UUID is
        +   * not supported (00000000-0000-0000-0000-000000000000).
        +   * 
        + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmmigration.v1.DeleteImageImportRequest)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.DeleteImageImportRequest other = + (com.google.cloud.vmmigration.v1.DeleteImageImportRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.DeleteImageImportRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.DeleteImageImportRequest 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.vmmigration.v1.DeleteImageImportRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.DeleteImageImportRequest parseFrom( + 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.vmmigration.v1.DeleteImageImportRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.DeleteImageImportRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.DeleteImageImportRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.DeleteImageImportRequest 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.vmmigration.v1.DeleteImageImportRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.DeleteImageImportRequest 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.vmmigration.v1.DeleteImageImportRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.DeleteImageImportRequest 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.vmmigration.v1.DeleteImageImportRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * Request message for 'DeleteImageImport' request.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.DeleteImageImportRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.DeleteImageImportRequest) + com.google.cloud.vmmigration.v1.DeleteImageImportRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DeleteImageImportRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DeleteImageImportRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.DeleteImageImportRequest.class, + com.google.cloud.vmmigration.v1.DeleteImageImportRequest.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.DeleteImageImportRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DeleteImageImportRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.DeleteImageImportRequest getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.DeleteImageImportRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.DeleteImageImportRequest build() { + com.google.cloud.vmmigration.v1.DeleteImageImportRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.DeleteImageImportRequest buildPartial() { + com.google.cloud.vmmigration.v1.DeleteImageImportRequest result = + new com.google.cloud.vmmigration.v1.DeleteImageImportRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vmmigration.v1.DeleteImageImportRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + } + + @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.vmmigration.v1.DeleteImageImportRequest) { + return mergeFrom((com.google.cloud.vmmigration.v1.DeleteImageImportRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.DeleteImageImportRequest other) { + if (other == com.google.cloud.vmmigration.v1.DeleteImageImportRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
        +     * Required. The ImageImport name.
        +     * 
        + * + * + * 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 ImageImport name.
        +     * 
        + * + * + * 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 ImageImport name.
        +     * 
        + * + * + * 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 ImageImport name.
        +     * 
        + * + * + * 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 ImageImport name.
        +     * 
        + * + * + * 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 java.lang.Object requestId_ = ""; + + /** + * + * + *
        +     * Optional. A request ID to identify requests. Specify a unique request ID
        +     * so that if you must retry your request, the server will know to ignore
        +     * the request if it has already been completed. The server will guarantee
        +     * that for at least 60 minutes after the first request.
        +     *
        +     * For example, consider a situation where you make an initial request and t
        +     * he request times out. If you make the request again with the same request
        +     * ID, the server can check if original operation with the same request ID
        +     * was received, and if so, will ignore the second request. This prevents
        +     * clients from accidentally creating duplicate commitments.
        +     *
        +     * The request ID must be a valid UUID with the exception that zero UUID is
        +     * not supported (00000000-0000-0000-0000-000000000000).
        +     * 
        + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Optional. A request ID to identify requests. Specify a unique request ID
        +     * so that if you must retry your request, the server will know to ignore
        +     * the request if it has already been completed. The server will guarantee
        +     * that for at least 60 minutes after the first request.
        +     *
        +     * For example, consider a situation where you make an initial request and t
        +     * he request times out. If you make the request again with the same request
        +     * ID, the server can check if original operation with the same request ID
        +     * was received, and if so, will ignore the second request. This prevents
        +     * clients from accidentally creating duplicate commitments.
        +     *
        +     * The request ID must be a valid UUID with the exception that zero UUID is
        +     * not supported (00000000-0000-0000-0000-000000000000).
        +     * 
        + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Optional. A request ID to identify requests. Specify a unique request ID
        +     * so that if you must retry your request, the server will know to ignore
        +     * the request if it has already been completed. The server will guarantee
        +     * that for at least 60 minutes after the first request.
        +     *
        +     * For example, consider a situation where you make an initial request and t
        +     * he request times out. If you make the request again with the same request
        +     * ID, the server can check if original operation with the same request ID
        +     * was received, and if so, will ignore the second request. This prevents
        +     * clients from accidentally creating duplicate commitments.
        +     *
        +     * The request ID must be a valid UUID with the exception that zero UUID is
        +     * not supported (00000000-0000-0000-0000-000000000000).
        +     * 
        + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. A request ID to identify requests. Specify a unique request ID
        +     * so that if you must retry your request, the server will know to ignore
        +     * the request if it has already been completed. The server will guarantee
        +     * that for at least 60 minutes after the first request.
        +     *
        +     * For example, consider a situation where you make an initial request and t
        +     * he request times out. If you make the request again with the same request
        +     * ID, the server can check if original operation with the same request ID
        +     * was received, and if so, will ignore the second request. This prevents
        +     * clients from accidentally creating duplicate commitments.
        +     *
        +     * The request ID must be a valid UUID with the exception that zero UUID is
        +     * not supported (00000000-0000-0000-0000-000000000000).
        +     * 
        + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. A request ID to identify requests. Specify a unique request ID
        +     * so that if you must retry your request, the server will know to ignore
        +     * the request if it has already been completed. The server will guarantee
        +     * that for at least 60 minutes after the first request.
        +     *
        +     * For example, consider a situation where you make an initial request and t
        +     * he request times out. If you make the request again with the same request
        +     * ID, the server can check if original operation with the same request ID
        +     * was received, and if so, will ignore the second request. This prevents
        +     * clients from accidentally creating duplicate commitments.
        +     *
        +     * The request ID must be a valid UUID with the exception that zero UUID is
        +     * not supported (00000000-0000-0000-0000-000000000000).
        +     * 
        + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmmigration.v1.DeleteImageImportRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.DeleteImageImportRequest) + private static final com.google.cloud.vmmigration.v1.DeleteImageImportRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.DeleteImageImportRequest(); + } + + public static com.google.cloud.vmmigration.v1.DeleteImageImportRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteImageImportRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.DeleteImageImportRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DeleteImageImportRequestOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DeleteImageImportRequestOrBuilder.java new file mode 100644 index 000000000000..f236e9b152ec --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DeleteImageImportRequestOrBuilder.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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface DeleteImageImportRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.DeleteImageImportRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Required. The ImageImport name.
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
        +   * Required. The ImageImport name.
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
        +   * Optional. A request ID to identify requests. Specify a unique request ID
        +   * so that if you must retry your request, the server will know to ignore
        +   * the request if it has already been completed. The server will guarantee
        +   * that for at least 60 minutes after the first request.
        +   *
        +   * For example, consider a situation where you make an initial request and t
        +   * he request times out. If you make the request again with the same request
        +   * ID, the server can check if original operation with the same request ID
        +   * was received, and if so, will ignore the second request. This prevents
        +   * clients from accidentally creating duplicate commitments.
        +   *
        +   * The request ID must be a valid UUID with the exception that zero UUID is
        +   * not supported (00000000-0000-0000-0000-000000000000).
        +   * 
        + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
        +   * Optional. A request ID to identify requests. Specify a unique request ID
        +   * so that if you must retry your request, the server will know to ignore
        +   * the request if it has already been completed. The server will guarantee
        +   * that for at least 60 minutes after the first request.
        +   *
        +   * For example, consider a situation where you make an initial request and t
        +   * he request times out. If you make the request again with the same request
        +   * ID, the server can check if original operation with the same request ID
        +   * was received, and if so, will ignore the second request. This prevents
        +   * clients from accidentally creating duplicate commitments.
        +   *
        +   * The request ID must be a valid UUID with the exception that zero UUID is
        +   * not supported (00000000-0000-0000-0000-000000000000).
        +   * 
        + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DeleteSourceRequest.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DeleteSourceRequest.java index 85094db62cbe..603b04febc91 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DeleteSourceRequest.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DeleteSourceRequest.java @@ -136,8 +136,8 @@ public com.google.protobuf.ByteString getNameBytes() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes after the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -172,8 +172,8 @@ public java.lang.String getRequestId() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes after the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -698,8 +698,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes after the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -733,8 +733,8 @@ public java.lang.String getRequestId() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes after the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -768,8 +768,8 @@ public com.google.protobuf.ByteString getRequestIdBytes() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes after the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -802,8 +802,8 @@ public Builder setRequestId(java.lang.String value) { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes after the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -832,8 +832,8 @@ public Builder clearRequestId() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes after the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DeleteSourceRequestOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DeleteSourceRequestOrBuilder.java index b3e2c51bea36..a6580c9f6cf3 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DeleteSourceRequestOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DeleteSourceRequestOrBuilder.java @@ -63,8 +63,8 @@ public interface DeleteSourceRequestOrBuilder * the request if it has already been completed. The server will guarantee * that for at least 60 minutes after the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -88,8 +88,8 @@ public interface DeleteSourceRequestOrBuilder * the request if it has already been completed. The server will guarantee * that for at least 60 minutes after the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DeleteTargetProjectRequest.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DeleteTargetProjectRequest.java index 60b5595ad270..394a0f8569c7 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DeleteTargetProjectRequest.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DeleteTargetProjectRequest.java @@ -136,8 +136,8 @@ public com.google.protobuf.ByteString getNameBytes() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes after the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -172,8 +172,8 @@ public java.lang.String getRequestId() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes after the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -699,8 +699,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes after the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -734,8 +734,8 @@ public java.lang.String getRequestId() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes after the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -769,8 +769,8 @@ public com.google.protobuf.ByteString getRequestIdBytes() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes after the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -803,8 +803,8 @@ public Builder setRequestId(java.lang.String value) { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes after the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -833,8 +833,8 @@ public Builder clearRequestId() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes after the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DeleteTargetProjectRequestOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DeleteTargetProjectRequestOrBuilder.java index 3716d7186e51..2c67c2539043 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DeleteTargetProjectRequestOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DeleteTargetProjectRequestOrBuilder.java @@ -63,8 +63,8 @@ public interface DeleteTargetProjectRequestOrBuilder * the request if it has already been completed. The server will guarantee * that for at least 60 minutes after the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -88,8 +88,8 @@ public interface DeleteTargetProjectRequestOrBuilder * the request if it has already been completed. The server will guarantee * that for at least 60 minutes after the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DeleteUtilizationReportRequest.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DeleteUtilizationReportRequest.java index 3d383dcd925b..36753d74ee01 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DeleteUtilizationReportRequest.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DeleteUtilizationReportRequest.java @@ -137,8 +137,8 @@ public com.google.protobuf.ByteString getNameBytes() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes after the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -173,8 +173,8 @@ public java.lang.String getRequestId() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes after the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -703,8 +703,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes after the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -738,8 +738,8 @@ public java.lang.String getRequestId() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes after the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -773,8 +773,8 @@ public com.google.protobuf.ByteString getRequestIdBytes() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes after the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -807,8 +807,8 @@ public Builder setRequestId(java.lang.String value) { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes after the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -837,8 +837,8 @@ public Builder clearRequestId() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes after the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DeleteUtilizationReportRequestOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DeleteUtilizationReportRequestOrBuilder.java index c380ffcf988b..2a6930cbaa4f 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DeleteUtilizationReportRequestOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DeleteUtilizationReportRequestOrBuilder.java @@ -63,8 +63,8 @@ public interface DeleteUtilizationReportRequestOrBuilder * the request if it has already been completed. The server will guarantee * that for at least 60 minutes after the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -88,8 +88,8 @@ public interface DeleteUtilizationReportRequestOrBuilder * the request if it has already been completed. The server will guarantee * that for at least 60 minutes after the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DiskImageTargetDetails.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DiskImageTargetDetails.java new file mode 100644 index 000000000000..2d01fb3cb944 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DiskImageTargetDetails.java @@ -0,0 +1,3131 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * The target details of the image resource that will be created by the import
        + * job.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.DiskImageTargetDetails} + */ +public final class DiskImageTargetDetails extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.DiskImageTargetDetails) + DiskImageTargetDetailsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DiskImageTargetDetails.newBuilder() to construct. + private DiskImageTargetDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DiskImageTargetDetails() { + imageName_ = ""; + targetProject_ = ""; + description_ = ""; + familyName_ = ""; + additionalLicenses_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DiskImageTargetDetails(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DiskImageTargetDetails_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 7: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DiskImageTargetDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.DiskImageTargetDetails.class, + com.google.cloud.vmmigration.v1.DiskImageTargetDetails.Builder.class); + } + + private int bitField0_; + private int osAdaptationConfigCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object osAdaptationConfig_; + + public enum OsAdaptationConfigCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + OS_ADAPTATION_PARAMETERS(11), + DATA_DISK_IMAGE_IMPORT(12), + OSADAPTATIONCONFIG_NOT_SET(0); + private final int value; + + private OsAdaptationConfigCase(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 OsAdaptationConfigCase valueOf(int value) { + return forNumber(value); + } + + public static OsAdaptationConfigCase forNumber(int value) { + switch (value) { + case 11: + return OS_ADAPTATION_PARAMETERS; + case 12: + return DATA_DISK_IMAGE_IMPORT; + case 0: + return OSADAPTATIONCONFIG_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public OsAdaptationConfigCase getOsAdaptationConfigCase() { + return OsAdaptationConfigCase.forNumber(osAdaptationConfigCase_); + } + + public static final int OS_ADAPTATION_PARAMETERS_FIELD_NUMBER = 11; + + /** + * + * + *
        +   * Optional. Use to set the parameters relevant for the OS adaptation
        +   * process.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters os_adaptation_parameters = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the osAdaptationParameters field is set. + */ + @java.lang.Override + public boolean hasOsAdaptationParameters() { + return osAdaptationConfigCase_ == 11; + } + + /** + * + * + *
        +   * Optional. Use to set the parameters relevant for the OS adaptation
        +   * process.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters os_adaptation_parameters = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The osAdaptationParameters. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters + getOsAdaptationParameters() { + if (osAdaptationConfigCase_ == 11) { + return (com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters) + osAdaptationConfig_; + } + return com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters.getDefaultInstance(); + } + + /** + * + * + *
        +   * Optional. Use to set the parameters relevant for the OS adaptation
        +   * process.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters os_adaptation_parameters = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParametersOrBuilder + getOsAdaptationParametersOrBuilder() { + if (osAdaptationConfigCase_ == 11) { + return (com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters) + osAdaptationConfig_; + } + return com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters.getDefaultInstance(); + } + + public static final int DATA_DISK_IMAGE_IMPORT_FIELD_NUMBER = 12; + + /** + * + * + *
        +   * Optional. Use to skip OS adaptation process.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.DataDiskImageImport data_disk_image_import = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dataDiskImageImport field is set. + */ + @java.lang.Override + public boolean hasDataDiskImageImport() { + return osAdaptationConfigCase_ == 12; + } + + /** + * + * + *
        +   * Optional. Use to skip OS adaptation process.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.DataDiskImageImport data_disk_image_import = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataDiskImageImport. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.DataDiskImageImport getDataDiskImageImport() { + if (osAdaptationConfigCase_ == 12) { + return (com.google.cloud.vmmigration.v1.DataDiskImageImport) osAdaptationConfig_; + } + return com.google.cloud.vmmigration.v1.DataDiskImageImport.getDefaultInstance(); + } + + /** + * + * + *
        +   * Optional. Use to skip OS adaptation process.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.DataDiskImageImport data_disk_image_import = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.DataDiskImageImportOrBuilder + getDataDiskImageImportOrBuilder() { + if (osAdaptationConfigCase_ == 12) { + return (com.google.cloud.vmmigration.v1.DataDiskImageImport) osAdaptationConfig_; + } + return com.google.cloud.vmmigration.v1.DataDiskImageImport.getDefaultInstance(); + } + + public static final int IMAGE_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object imageName_ = ""; + + /** + * + * + *
        +   * Required. The name of the image to be created.
        +   * 
        + * + * string image_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The imageName. + */ + @java.lang.Override + public java.lang.String getImageName() { + java.lang.Object ref = imageName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + imageName_ = s; + return s; + } + } + + /** + * + * + *
        +   * Required. The name of the image to be created.
        +   * 
        + * + * string image_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for imageName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getImageNameBytes() { + java.lang.Object ref = imageName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + imageName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGET_PROJECT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object targetProject_ = ""; + + /** + * + * + *
        +   * Required. Reference to the TargetProject resource that represents the
        +   * target project in which the imported image will be created.
        +   * 
        + * + * + * string target_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The targetProject. + */ + @java.lang.Override + public java.lang.String getTargetProject() { + java.lang.Object ref = targetProject_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetProject_ = s; + return s; + } + } + + /** + * + * + *
        +   * Required. Reference to the TargetProject resource that represents the
        +   * target project in which the imported image will be created.
        +   * 
        + * + * + * string target_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for targetProject. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetProjectBytes() { + java.lang.Object ref = targetProject_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetProject_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
        +   * Optional. An optional description of the image.
        +   * 
        + * + * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
        +   * Optional. An optional description of the image.
        +   * 
        + * + * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FAMILY_NAME_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object familyName_ = ""; + + /** + * + * + *
        +   * Optional. The name of the image family to which the new image belongs.
        +   * 
        + * + * string family_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The familyName. + */ + @java.lang.Override + public java.lang.String getFamilyName() { + java.lang.Object ref = familyName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + familyName_ = s; + return s; + } + } + + /** + * + * + *
        +   * Optional. The name of the image family to which the new image belongs.
        +   * 
        + * + * string family_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for familyName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFamilyNameBytes() { + java.lang.Object ref = familyName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + familyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LABELS_FIELD_NUMBER = 7; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DiskImageTargetDetails_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
        +   * Optional. A map of labels to associate with the image.
        +   * 
        + * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
        +   * Optional. A map of labels to associate with the image.
        +   * 
        + * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
        +   * Optional. A map of labels to associate with the image.
        +   * 
        + * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
        +   * Optional. A map of labels to associate with the image.
        +   * 
        + * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int ADDITIONAL_LICENSES_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList additionalLicenses_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
        +   * Optional. Additional licenses to assign to the image.
        +   * Format:
        +   * https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +   * Or
        +   * https://www.googleapis.com/compute/beta/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +   * 
        + * + * repeated string additional_licenses = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the additionalLicenses. + */ + public com.google.protobuf.ProtocolStringList getAdditionalLicensesList() { + return additionalLicenses_; + } + + /** + * + * + *
        +   * Optional. Additional licenses to assign to the image.
        +   * Format:
        +   * https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +   * Or
        +   * https://www.googleapis.com/compute/beta/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +   * 
        + * + * repeated string additional_licenses = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of additionalLicenses. + */ + public int getAdditionalLicensesCount() { + return additionalLicenses_.size(); + } + + /** + * + * + *
        +   * Optional. Additional licenses to assign to the image.
        +   * Format:
        +   * https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +   * Or
        +   * https://www.googleapis.com/compute/beta/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +   * 
        + * + * repeated string additional_licenses = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The additionalLicenses at the given index. + */ + public java.lang.String getAdditionalLicenses(int index) { + return additionalLicenses_.get(index); + } + + /** + * + * + *
        +   * Optional. Additional licenses to assign to the image.
        +   * Format:
        +   * https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +   * Or
        +   * https://www.googleapis.com/compute/beta/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +   * 
        + * + * repeated string additional_licenses = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the additionalLicenses at the given index. + */ + public com.google.protobuf.ByteString getAdditionalLicensesBytes(int index) { + return additionalLicenses_.getByteString(index); + } + + public static final int SINGLE_REGION_STORAGE_FIELD_NUMBER = 9; + private boolean singleRegionStorage_ = false; + + /** + * + * + *
        +   * Optional. Set to true to set the image storageLocations to the single
        +   * region of the import job. When false, the closest multi-region is selected.
        +   * 
        + * + * bool single_region_storage = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The singleRegionStorage. + */ + @java.lang.Override + public boolean getSingleRegionStorage() { + return singleRegionStorage_; + } + + public static final int ENCRYPTION_FIELD_NUMBER = 10; + private com.google.cloud.vmmigration.v1.Encryption encryption_; + + /** + * + * + *
        +   * Immutable. The encryption to apply to the image.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the encryption field is set. + */ + @java.lang.Override + public boolean hasEncryption() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
        +   * Immutable. The encryption to apply to the image.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The encryption. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.Encryption getEncryption() { + return encryption_ == null + ? com.google.cloud.vmmigration.v1.Encryption.getDefaultInstance() + : encryption_; + } + + /** + * + * + *
        +   * Immutable. The encryption to apply to the image.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.EncryptionOrBuilder getEncryptionOrBuilder() { + return encryption_ == null + ? com.google.cloud.vmmigration.v1.Encryption.getDefaultInstance() + : encryption_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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(imageName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, imageName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetProject_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, targetProject_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(familyName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, familyName_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 7); + for (int i = 0; i < additionalLicenses_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, additionalLicenses_.getRaw(i)); + } + if (singleRegionStorage_ != false) { + output.writeBool(9, singleRegionStorage_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(10, getEncryption()); + } + if (osAdaptationConfigCase_ == 11) { + output.writeMessage( + 11, + (com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters) osAdaptationConfig_); + } + if (osAdaptationConfigCase_ == 12) { + output.writeMessage( + 12, (com.google.cloud.vmmigration.v1.DataDiskImageImport) osAdaptationConfig_); + } + 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(imageName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, imageName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetProject_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, targetProject_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(familyName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, familyName_); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, labels__); + } + { + int dataSize = 0; + for (int i = 0; i < additionalLicenses_.size(); i++) { + dataSize += computeStringSizeNoTag(additionalLicenses_.getRaw(i)); + } + size += dataSize; + size += 1 * getAdditionalLicensesList().size(); + } + if (singleRegionStorage_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, singleRegionStorage_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getEncryption()); + } + if (osAdaptationConfigCase_ == 11) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, + (com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters) + osAdaptationConfig_); + } + if (osAdaptationConfigCase_ == 12) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, (com.google.cloud.vmmigration.v1.DataDiskImageImport) osAdaptationConfig_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.vmmigration.v1.DiskImageTargetDetails)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.DiskImageTargetDetails other = + (com.google.cloud.vmmigration.v1.DiskImageTargetDetails) obj; + + if (!getImageName().equals(other.getImageName())) return false; + if (!getTargetProject().equals(other.getTargetProject())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getFamilyName().equals(other.getFamilyName())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getAdditionalLicensesList().equals(other.getAdditionalLicensesList())) return false; + if (getSingleRegionStorage() != other.getSingleRegionStorage()) return false; + if (hasEncryption() != other.hasEncryption()) return false; + if (hasEncryption()) { + if (!getEncryption().equals(other.getEncryption())) return false; + } + if (!getOsAdaptationConfigCase().equals(other.getOsAdaptationConfigCase())) return false; + switch (osAdaptationConfigCase_) { + case 11: + if (!getOsAdaptationParameters().equals(other.getOsAdaptationParameters())) return false; + break; + case 12: + if (!getDataDiskImageImport().equals(other.getDataDiskImageImport())) 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) + IMAGE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getImageName().hashCode(); + hash = (37 * hash) + TARGET_PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getTargetProject().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + FAMILY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getFamilyName().hashCode(); + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + if (getAdditionalLicensesCount() > 0) { + hash = (37 * hash) + ADDITIONAL_LICENSES_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalLicensesList().hashCode(); + } + hash = (37 * hash) + SINGLE_REGION_STORAGE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSingleRegionStorage()); + if (hasEncryption()) { + hash = (37 * hash) + ENCRYPTION_FIELD_NUMBER; + hash = (53 * hash) + getEncryption().hashCode(); + } + switch (osAdaptationConfigCase_) { + case 11: + hash = (37 * hash) + OS_ADAPTATION_PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getOsAdaptationParameters().hashCode(); + break; + case 12: + hash = (37 * hash) + DATA_DISK_IMAGE_IMPORT_FIELD_NUMBER; + hash = (53 * hash) + getDataDiskImageImport().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.DiskImageTargetDetails parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.DiskImageTargetDetails 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.vmmigration.v1.DiskImageTargetDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.DiskImageTargetDetails parseFrom( + 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.vmmigration.v1.DiskImageTargetDetails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.DiskImageTargetDetails parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.DiskImageTargetDetails parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.DiskImageTargetDetails 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.vmmigration.v1.DiskImageTargetDetails parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.DiskImageTargetDetails 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.vmmigration.v1.DiskImageTargetDetails parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.DiskImageTargetDetails 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.vmmigration.v1.DiskImageTargetDetails prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 target details of the image resource that will be created by the import
        +   * job.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.DiskImageTargetDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.DiskImageTargetDetails) + com.google.cloud.vmmigration.v1.DiskImageTargetDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DiskImageTargetDetails_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 7: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 7: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DiskImageTargetDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.DiskImageTargetDetails.class, + com.google.cloud.vmmigration.v1.DiskImageTargetDetails.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.DiskImageTargetDetails.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getEncryptionFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (osAdaptationParametersBuilder_ != null) { + osAdaptationParametersBuilder_.clear(); + } + if (dataDiskImageImportBuilder_ != null) { + dataDiskImageImportBuilder_.clear(); + } + imageName_ = ""; + targetProject_ = ""; + description_ = ""; + familyName_ = ""; + internalGetMutableLabels().clear(); + additionalLicenses_ = com.google.protobuf.LazyStringArrayList.emptyList(); + singleRegionStorage_ = false; + encryption_ = null; + if (encryptionBuilder_ != null) { + encryptionBuilder_.dispose(); + encryptionBuilder_ = null; + } + osAdaptationConfigCase_ = 0; + osAdaptationConfig_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DiskImageTargetDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.DiskImageTargetDetails getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.DiskImageTargetDetails.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.DiskImageTargetDetails build() { + com.google.cloud.vmmigration.v1.DiskImageTargetDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.DiskImageTargetDetails buildPartial() { + com.google.cloud.vmmigration.v1.DiskImageTargetDetails result = + new com.google.cloud.vmmigration.v1.DiskImageTargetDetails(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vmmigration.v1.DiskImageTargetDetails result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.imageName_ = imageName_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.targetProject_ = targetProject_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.familyName_ = familyName_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + additionalLicenses_.makeImmutable(); + result.additionalLicenses_ = additionalLicenses_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.singleRegionStorage_ = singleRegionStorage_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000200) != 0)) { + result.encryption_ = encryptionBuilder_ == null ? encryption_ : encryptionBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.vmmigration.v1.DiskImageTargetDetails result) { + result.osAdaptationConfigCase_ = osAdaptationConfigCase_; + result.osAdaptationConfig_ = this.osAdaptationConfig_; + if (osAdaptationConfigCase_ == 11 && osAdaptationParametersBuilder_ != null) { + result.osAdaptationConfig_ = osAdaptationParametersBuilder_.build(); + } + if (osAdaptationConfigCase_ == 12 && dataDiskImageImportBuilder_ != null) { + result.osAdaptationConfig_ = dataDiskImageImportBuilder_.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.vmmigration.v1.DiskImageTargetDetails) { + return mergeFrom((com.google.cloud.vmmigration.v1.DiskImageTargetDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.DiskImageTargetDetails other) { + if (other == com.google.cloud.vmmigration.v1.DiskImageTargetDetails.getDefaultInstance()) + return this; + if (!other.getImageName().isEmpty()) { + imageName_ = other.imageName_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getTargetProject().isEmpty()) { + targetProject_ = other.targetProject_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getFamilyName().isEmpty()) { + familyName_ = other.familyName_; + bitField0_ |= 0x00000020; + onChanged(); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000040; + if (!other.additionalLicenses_.isEmpty()) { + if (additionalLicenses_.isEmpty()) { + additionalLicenses_ = other.additionalLicenses_; + bitField0_ |= 0x00000080; + } else { + ensureAdditionalLicensesIsMutable(); + additionalLicenses_.addAll(other.additionalLicenses_); + } + onChanged(); + } + if (other.getSingleRegionStorage() != false) { + setSingleRegionStorage(other.getSingleRegionStorage()); + } + if (other.hasEncryption()) { + mergeEncryption(other.getEncryption()); + } + switch (other.getOsAdaptationConfigCase()) { + case OS_ADAPTATION_PARAMETERS: + { + mergeOsAdaptationParameters(other.getOsAdaptationParameters()); + break; + } + case DATA_DISK_IMAGE_IMPORT: + { + mergeDataDiskImageImport(other.getDataDiskImageImport()); + break; + } + case OSADAPTATIONCONFIG_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: + { + imageName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 18: + { + targetProject_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 18 + case 42: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + familyName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAdditionalLicensesIsMutable(); + additionalLicenses_.add(s); + break; + } // case 66 + case 72: + { + singleRegionStorage_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 82: + { + input.readMessage(getEncryptionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: + { + input.readMessage( + getOsAdaptationParametersFieldBuilder().getBuilder(), extensionRegistry); + osAdaptationConfigCase_ = 11; + break; + } // case 90 + case 98: + { + input.readMessage( + getDataDiskImageImportFieldBuilder().getBuilder(), extensionRegistry); + osAdaptationConfigCase_ = 12; + break; + } // case 98 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was 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 osAdaptationConfigCase_ = 0; + private java.lang.Object osAdaptationConfig_; + + public OsAdaptationConfigCase getOsAdaptationConfigCase() { + return OsAdaptationConfigCase.forNumber(osAdaptationConfigCase_); + } + + public Builder clearOsAdaptationConfig() { + osAdaptationConfigCase_ = 0; + osAdaptationConfig_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters, + com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters.Builder, + com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParametersOrBuilder> + osAdaptationParametersBuilder_; + + /** + * + * + *
        +     * Optional. Use to set the parameters relevant for the OS adaptation
        +     * process.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters os_adaptation_parameters = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the osAdaptationParameters field is set. + */ + @java.lang.Override + public boolean hasOsAdaptationParameters() { + return osAdaptationConfigCase_ == 11; + } + + /** + * + * + *
        +     * Optional. Use to set the parameters relevant for the OS adaptation
        +     * process.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters os_adaptation_parameters = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The osAdaptationParameters. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters + getOsAdaptationParameters() { + if (osAdaptationParametersBuilder_ == null) { + if (osAdaptationConfigCase_ == 11) { + return (com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters) + osAdaptationConfig_; + } + return com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters + .getDefaultInstance(); + } else { + if (osAdaptationConfigCase_ == 11) { + return osAdaptationParametersBuilder_.getMessage(); + } + return com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters + .getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Optional. Use to set the parameters relevant for the OS adaptation
        +     * process.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters os_adaptation_parameters = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOsAdaptationParameters( + com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters value) { + if (osAdaptationParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + osAdaptationConfig_ = value; + onChanged(); + } else { + osAdaptationParametersBuilder_.setMessage(value); + } + osAdaptationConfigCase_ = 11; + return this; + } + + /** + * + * + *
        +     * Optional. Use to set the parameters relevant for the OS adaptation
        +     * process.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters os_adaptation_parameters = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOsAdaptationParameters( + com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters.Builder builderForValue) { + if (osAdaptationParametersBuilder_ == null) { + osAdaptationConfig_ = builderForValue.build(); + onChanged(); + } else { + osAdaptationParametersBuilder_.setMessage(builderForValue.build()); + } + osAdaptationConfigCase_ = 11; + return this; + } + + /** + * + * + *
        +     * Optional. Use to set the parameters relevant for the OS adaptation
        +     * process.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters os_adaptation_parameters = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeOsAdaptationParameters( + com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters value) { + if (osAdaptationParametersBuilder_ == null) { + if (osAdaptationConfigCase_ == 11 + && osAdaptationConfig_ + != com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters + .getDefaultInstance()) { + osAdaptationConfig_ = + com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters.newBuilder( + (com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters) + osAdaptationConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + osAdaptationConfig_ = value; + } + onChanged(); + } else { + if (osAdaptationConfigCase_ == 11) { + osAdaptationParametersBuilder_.mergeFrom(value); + } else { + osAdaptationParametersBuilder_.setMessage(value); + } + } + osAdaptationConfigCase_ = 11; + return this; + } + + /** + * + * + *
        +     * Optional. Use to set the parameters relevant for the OS adaptation
        +     * process.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters os_adaptation_parameters = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearOsAdaptationParameters() { + if (osAdaptationParametersBuilder_ == null) { + if (osAdaptationConfigCase_ == 11) { + osAdaptationConfigCase_ = 0; + osAdaptationConfig_ = null; + onChanged(); + } + } else { + if (osAdaptationConfigCase_ == 11) { + osAdaptationConfigCase_ = 0; + osAdaptationConfig_ = null; + } + osAdaptationParametersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Optional. Use to set the parameters relevant for the OS adaptation
        +     * process.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters os_adaptation_parameters = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters.Builder + getOsAdaptationParametersBuilder() { + return getOsAdaptationParametersFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Optional. Use to set the parameters relevant for the OS adaptation
        +     * process.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters os_adaptation_parameters = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParametersOrBuilder + getOsAdaptationParametersOrBuilder() { + if ((osAdaptationConfigCase_ == 11) && (osAdaptationParametersBuilder_ != null)) { + return osAdaptationParametersBuilder_.getMessageOrBuilder(); + } else { + if (osAdaptationConfigCase_ == 11) { + return (com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters) + osAdaptationConfig_; + } + return com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters + .getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Optional. Use to set the parameters relevant for the OS adaptation
        +     * process.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters os_adaptation_parameters = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters, + com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters.Builder, + com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParametersOrBuilder> + getOsAdaptationParametersFieldBuilder() { + if (osAdaptationParametersBuilder_ == null) { + if (!(osAdaptationConfigCase_ == 11)) { + osAdaptationConfig_ = + com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters + .getDefaultInstance(); + } + osAdaptationParametersBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters, + com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters.Builder, + com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParametersOrBuilder>( + (com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters) + osAdaptationConfig_, + getParentForChildren(), + isClean()); + osAdaptationConfig_ = null; + } + osAdaptationConfigCase_ = 11; + onChanged(); + return osAdaptationParametersBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.DataDiskImageImport, + com.google.cloud.vmmigration.v1.DataDiskImageImport.Builder, + com.google.cloud.vmmigration.v1.DataDiskImageImportOrBuilder> + dataDiskImageImportBuilder_; + + /** + * + * + *
        +     * Optional. Use to skip OS adaptation process.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DataDiskImageImport data_disk_image_import = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dataDiskImageImport field is set. + */ + @java.lang.Override + public boolean hasDataDiskImageImport() { + return osAdaptationConfigCase_ == 12; + } + + /** + * + * + *
        +     * Optional. Use to skip OS adaptation process.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DataDiskImageImport data_disk_image_import = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataDiskImageImport. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.DataDiskImageImport getDataDiskImageImport() { + if (dataDiskImageImportBuilder_ == null) { + if (osAdaptationConfigCase_ == 12) { + return (com.google.cloud.vmmigration.v1.DataDiskImageImport) osAdaptationConfig_; + } + return com.google.cloud.vmmigration.v1.DataDiskImageImport.getDefaultInstance(); + } else { + if (osAdaptationConfigCase_ == 12) { + return dataDiskImageImportBuilder_.getMessage(); + } + return com.google.cloud.vmmigration.v1.DataDiskImageImport.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Optional. Use to skip OS adaptation process.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DataDiskImageImport data_disk_image_import = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDataDiskImageImport( + com.google.cloud.vmmigration.v1.DataDiskImageImport value) { + if (dataDiskImageImportBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + osAdaptationConfig_ = value; + onChanged(); + } else { + dataDiskImageImportBuilder_.setMessage(value); + } + osAdaptationConfigCase_ = 12; + return this; + } + + /** + * + * + *
        +     * Optional. Use to skip OS adaptation process.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DataDiskImageImport data_disk_image_import = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDataDiskImageImport( + com.google.cloud.vmmigration.v1.DataDiskImageImport.Builder builderForValue) { + if (dataDiskImageImportBuilder_ == null) { + osAdaptationConfig_ = builderForValue.build(); + onChanged(); + } else { + dataDiskImageImportBuilder_.setMessage(builderForValue.build()); + } + osAdaptationConfigCase_ = 12; + return this; + } + + /** + * + * + *
        +     * Optional. Use to skip OS adaptation process.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DataDiskImageImport data_disk_image_import = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDataDiskImageImport( + com.google.cloud.vmmigration.v1.DataDiskImageImport value) { + if (dataDiskImageImportBuilder_ == null) { + if (osAdaptationConfigCase_ == 12 + && osAdaptationConfig_ + != com.google.cloud.vmmigration.v1.DataDiskImageImport.getDefaultInstance()) { + osAdaptationConfig_ = + com.google.cloud.vmmigration.v1.DataDiskImageImport.newBuilder( + (com.google.cloud.vmmigration.v1.DataDiskImageImport) osAdaptationConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + osAdaptationConfig_ = value; + } + onChanged(); + } else { + if (osAdaptationConfigCase_ == 12) { + dataDiskImageImportBuilder_.mergeFrom(value); + } else { + dataDiskImageImportBuilder_.setMessage(value); + } + } + osAdaptationConfigCase_ = 12; + return this; + } + + /** + * + * + *
        +     * Optional. Use to skip OS adaptation process.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DataDiskImageImport data_disk_image_import = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDataDiskImageImport() { + if (dataDiskImageImportBuilder_ == null) { + if (osAdaptationConfigCase_ == 12) { + osAdaptationConfigCase_ = 0; + osAdaptationConfig_ = null; + onChanged(); + } + } else { + if (osAdaptationConfigCase_ == 12) { + osAdaptationConfigCase_ = 0; + osAdaptationConfig_ = null; + } + dataDiskImageImportBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Optional. Use to skip OS adaptation process.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DataDiskImageImport data_disk_image_import = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vmmigration.v1.DataDiskImageImport.Builder + getDataDiskImageImportBuilder() { + return getDataDiskImageImportFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Optional. Use to skip OS adaptation process.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DataDiskImageImport data_disk_image_import = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.DataDiskImageImportOrBuilder + getDataDiskImageImportOrBuilder() { + if ((osAdaptationConfigCase_ == 12) && (dataDiskImageImportBuilder_ != null)) { + return dataDiskImageImportBuilder_.getMessageOrBuilder(); + } else { + if (osAdaptationConfigCase_ == 12) { + return (com.google.cloud.vmmigration.v1.DataDiskImageImport) osAdaptationConfig_; + } + return com.google.cloud.vmmigration.v1.DataDiskImageImport.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Optional. Use to skip OS adaptation process.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DataDiskImageImport data_disk_image_import = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.DataDiskImageImport, + com.google.cloud.vmmigration.v1.DataDiskImageImport.Builder, + com.google.cloud.vmmigration.v1.DataDiskImageImportOrBuilder> + getDataDiskImageImportFieldBuilder() { + if (dataDiskImageImportBuilder_ == null) { + if (!(osAdaptationConfigCase_ == 12)) { + osAdaptationConfig_ = + com.google.cloud.vmmigration.v1.DataDiskImageImport.getDefaultInstance(); + } + dataDiskImageImportBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.DataDiskImageImport, + com.google.cloud.vmmigration.v1.DataDiskImageImport.Builder, + com.google.cloud.vmmigration.v1.DataDiskImageImportOrBuilder>( + (com.google.cloud.vmmigration.v1.DataDiskImageImport) osAdaptationConfig_, + getParentForChildren(), + isClean()); + osAdaptationConfig_ = null; + } + osAdaptationConfigCase_ = 12; + onChanged(); + return dataDiskImageImportBuilder_; + } + + private java.lang.Object imageName_ = ""; + + /** + * + * + *
        +     * Required. The name of the image to be created.
        +     * 
        + * + * string image_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The imageName. + */ + public java.lang.String getImageName() { + java.lang.Object ref = imageName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + imageName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Required. The name of the image to be created.
        +     * 
        + * + * string image_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for imageName. + */ + public com.google.protobuf.ByteString getImageNameBytes() { + java.lang.Object ref = imageName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + imageName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Required. The name of the image to be created.
        +     * 
        + * + * string image_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The imageName to set. + * @return This builder for chaining. + */ + public Builder setImageName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + imageName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The name of the image to be created.
        +     * 
        + * + * string image_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearImageName() { + imageName_ = getDefaultInstance().getImageName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The name of the image to be created.
        +     * 
        + * + * string image_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for imageName to set. + * @return This builder for chaining. + */ + public Builder setImageNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + imageName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object targetProject_ = ""; + + /** + * + * + *
        +     * Required. Reference to the TargetProject resource that represents the
        +     * target project in which the imported image will be created.
        +     * 
        + * + * + * string target_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The targetProject. + */ + public java.lang.String getTargetProject() { + java.lang.Object ref = targetProject_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetProject_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Required. Reference to the TargetProject resource that represents the
        +     * target project in which the imported image will be created.
        +     * 
        + * + * + * string target_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for targetProject. + */ + public com.google.protobuf.ByteString getTargetProjectBytes() { + java.lang.Object ref = targetProject_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetProject_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Required. Reference to the TargetProject resource that represents the
        +     * target project in which the imported image will be created.
        +     * 
        + * + * + * string target_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The targetProject to set. + * @return This builder for chaining. + */ + public Builder setTargetProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + targetProject_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. Reference to the TargetProject resource that represents the
        +     * target project in which the imported image will be created.
        +     * 
        + * + * + * string target_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTargetProject() { + targetProject_ = getDefaultInstance().getTargetProject(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. Reference to the TargetProject resource that represents the
        +     * target project in which the imported image will be created.
        +     * 
        + * + * + * string target_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for targetProject to set. + * @return This builder for chaining. + */ + public Builder setTargetProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetProject_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
        +     * Optional. An optional description of the image.
        +     * 
        + * + * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Optional. An optional description of the image.
        +     * 
        + * + * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Optional. An optional description of the image.
        +     * 
        + * + * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. An optional description of the image.
        +     * 
        + * + * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. An optional description of the image.
        +     * 
        + * + * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object familyName_ = ""; + + /** + * + * + *
        +     * Optional. The name of the image family to which the new image belongs.
        +     * 
        + * + * string family_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The familyName. + */ + public java.lang.String getFamilyName() { + java.lang.Object ref = familyName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + familyName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Optional. The name of the image family to which the new image belongs.
        +     * 
        + * + * string family_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for familyName. + */ + public com.google.protobuf.ByteString getFamilyNameBytes() { + java.lang.Object ref = familyName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + familyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Optional. The name of the image family to which the new image belongs.
        +     * 
        + * + * string family_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The familyName to set. + * @return This builder for chaining. + */ + public Builder setFamilyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + familyName_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The name of the image family to which the new image belongs.
        +     * 
        + * + * string family_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFamilyName() { + familyName_ = getDefaultInstance().getFamilyName(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The name of the image family to which the new image belongs.
        +     * 
        + * + * string family_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for familyName to set. + * @return This builder for chaining. + */ + public Builder setFamilyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + familyName_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000040; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
        +     * Optional. A map of labels to associate with the image.
        +     * 
        + * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
        +     * Optional. A map of labels to associate with the image.
        +     * 
        + * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
        +     * Optional. A map of labels to associate with the image.
        +     * 
        + * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
        +     * Optional. A map of labels to associate with the image.
        +     * 
        + * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000040); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
        +     * Optional. A map of labels to associate with the image.
        +     * 
        + * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000040; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
        +     * Optional. A map of labels to associate with the image.
        +     * 
        + * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000040; + return this; + } + + /** + * + * + *
        +     * Optional. A map of labels to associate with the image.
        +     * 
        + * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000040; + return this; + } + + private com.google.protobuf.LazyStringArrayList additionalLicenses_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAdditionalLicensesIsMutable() { + if (!additionalLicenses_.isModifiable()) { + additionalLicenses_ = new com.google.protobuf.LazyStringArrayList(additionalLicenses_); + } + bitField0_ |= 0x00000080; + } + + /** + * + * + *
        +     * Optional. Additional licenses to assign to the image.
        +     * Format:
        +     * https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +     * Or
        +     * https://www.googleapis.com/compute/beta/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +     * 
        + * + * repeated string additional_licenses = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the additionalLicenses. + */ + public com.google.protobuf.ProtocolStringList getAdditionalLicensesList() { + additionalLicenses_.makeImmutable(); + return additionalLicenses_; + } + + /** + * + * + *
        +     * Optional. Additional licenses to assign to the image.
        +     * Format:
        +     * https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +     * Or
        +     * https://www.googleapis.com/compute/beta/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +     * 
        + * + * repeated string additional_licenses = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of additionalLicenses. + */ + public int getAdditionalLicensesCount() { + return additionalLicenses_.size(); + } + + /** + * + * + *
        +     * Optional. Additional licenses to assign to the image.
        +     * Format:
        +     * https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +     * Or
        +     * https://www.googleapis.com/compute/beta/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +     * 
        + * + * repeated string additional_licenses = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The additionalLicenses at the given index. + */ + public java.lang.String getAdditionalLicenses(int index) { + return additionalLicenses_.get(index); + } + + /** + * + * + *
        +     * Optional. Additional licenses to assign to the image.
        +     * Format:
        +     * https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +     * Or
        +     * https://www.googleapis.com/compute/beta/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +     * 
        + * + * repeated string additional_licenses = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the additionalLicenses at the given index. + */ + public com.google.protobuf.ByteString getAdditionalLicensesBytes(int index) { + return additionalLicenses_.getByteString(index); + } + + /** + * + * + *
        +     * Optional. Additional licenses to assign to the image.
        +     * Format:
        +     * https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +     * Or
        +     * https://www.googleapis.com/compute/beta/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +     * 
        + * + * repeated string additional_licenses = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The additionalLicenses to set. + * @return This builder for chaining. + */ + public Builder setAdditionalLicenses(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdditionalLicensesIsMutable(); + additionalLicenses_.set(index, value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Additional licenses to assign to the image.
        +     * Format:
        +     * https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +     * Or
        +     * https://www.googleapis.com/compute/beta/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +     * 
        + * + * repeated string additional_licenses = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The additionalLicenses to add. + * @return This builder for chaining. + */ + public Builder addAdditionalLicenses(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdditionalLicensesIsMutable(); + additionalLicenses_.add(value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Additional licenses to assign to the image.
        +     * Format:
        +     * https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +     * Or
        +     * https://www.googleapis.com/compute/beta/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +     * 
        + * + * repeated string additional_licenses = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The additionalLicenses to add. + * @return This builder for chaining. + */ + public Builder addAllAdditionalLicenses(java.lang.Iterable values) { + ensureAdditionalLicensesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, additionalLicenses_); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Additional licenses to assign to the image.
        +     * Format:
        +     * https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +     * Or
        +     * https://www.googleapis.com/compute/beta/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +     * 
        + * + * repeated string additional_licenses = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAdditionalLicenses() { + additionalLicenses_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + ; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Additional licenses to assign to the image.
        +     * Format:
        +     * https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +     * Or
        +     * https://www.googleapis.com/compute/beta/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +     * 
        + * + * repeated string additional_licenses = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the additionalLicenses to add. + * @return This builder for chaining. + */ + public Builder addAdditionalLicensesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAdditionalLicensesIsMutable(); + additionalLicenses_.add(value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private boolean singleRegionStorage_; + + /** + * + * + *
        +     * Optional. Set to true to set the image storageLocations to the single
        +     * region of the import job. When false, the closest multi-region is selected.
        +     * 
        + * + * bool single_region_storage = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The singleRegionStorage. + */ + @java.lang.Override + public boolean getSingleRegionStorage() { + return singleRegionStorage_; + } + + /** + * + * + *
        +     * Optional. Set to true to set the image storageLocations to the single
        +     * region of the import job. When false, the closest multi-region is selected.
        +     * 
        + * + * bool single_region_storage = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The singleRegionStorage to set. + * @return This builder for chaining. + */ + public Builder setSingleRegionStorage(boolean value) { + + singleRegionStorage_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Set to true to set the image storageLocations to the single
        +     * region of the import job. When false, the closest multi-region is selected.
        +     * 
        + * + * bool single_region_storage = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSingleRegionStorage() { + bitField0_ = (bitField0_ & ~0x00000100); + singleRegionStorage_ = false; + onChanged(); + return this; + } + + private com.google.cloud.vmmigration.v1.Encryption encryption_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.Encryption, + com.google.cloud.vmmigration.v1.Encryption.Builder, + com.google.cloud.vmmigration.v1.EncryptionOrBuilder> + encryptionBuilder_; + + /** + * + * + *
        +     * Immutable. The encryption to apply to the image.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the encryption field is set. + */ + public boolean hasEncryption() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
        +     * Immutable. The encryption to apply to the image.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The encryption. + */ + public com.google.cloud.vmmigration.v1.Encryption getEncryption() { + if (encryptionBuilder_ == null) { + return encryption_ == null + ? com.google.cloud.vmmigration.v1.Encryption.getDefaultInstance() + : encryption_; + } else { + return encryptionBuilder_.getMessage(); + } + } + + /** + * + * + *
        +     * Immutable. The encryption to apply to the image.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setEncryption(com.google.cloud.vmmigration.v1.Encryption value) { + if (encryptionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + encryption_ = value; + } else { + encryptionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Immutable. The encryption to apply to the image.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setEncryption( + com.google.cloud.vmmigration.v1.Encryption.Builder builderForValue) { + if (encryptionBuilder_ == null) { + encryption_ = builderForValue.build(); + } else { + encryptionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Immutable. The encryption to apply to the image.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder mergeEncryption(com.google.cloud.vmmigration.v1.Encryption value) { + if (encryptionBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && encryption_ != null + && encryption_ != com.google.cloud.vmmigration.v1.Encryption.getDefaultInstance()) { + getEncryptionBuilder().mergeFrom(value); + } else { + encryption_ = value; + } + } else { + encryptionBuilder_.mergeFrom(value); + } + if (encryption_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Immutable. The encryption to apply to the image.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder clearEncryption() { + bitField0_ = (bitField0_ & ~0x00000200); + encryption_ = null; + if (encryptionBuilder_ != null) { + encryptionBuilder_.dispose(); + encryptionBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Immutable. The encryption to apply to the image.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.vmmigration.v1.Encryption.Builder getEncryptionBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return getEncryptionFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Immutable. The encryption to apply to the image.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.vmmigration.v1.EncryptionOrBuilder getEncryptionOrBuilder() { + if (encryptionBuilder_ != null) { + return encryptionBuilder_.getMessageOrBuilder(); + } else { + return encryption_ == null + ? com.google.cloud.vmmigration.v1.Encryption.getDefaultInstance() + : encryption_; + } + } + + /** + * + * + *
        +     * Immutable. The encryption to apply to the image.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.Encryption, + com.google.cloud.vmmigration.v1.Encryption.Builder, + com.google.cloud.vmmigration.v1.EncryptionOrBuilder> + getEncryptionFieldBuilder() { + if (encryptionBuilder_ == null) { + encryptionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.Encryption, + com.google.cloud.vmmigration.v1.Encryption.Builder, + com.google.cloud.vmmigration.v1.EncryptionOrBuilder>( + getEncryption(), getParentForChildren(), isClean()); + encryption_ = null; + } + return encryptionBuilder_; + } + + @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.vmmigration.v1.DiskImageTargetDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.DiskImageTargetDetails) + private static final com.google.cloud.vmmigration.v1.DiskImageTargetDetails DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.DiskImageTargetDetails(); + } + + public static com.google.cloud.vmmigration.v1.DiskImageTargetDetails getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DiskImageTargetDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.DiskImageTargetDetails getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DiskImageTargetDetailsOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DiskImageTargetDetailsOrBuilder.java new file mode 100644 index 000000000000..47560452b11c --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DiskImageTargetDetailsOrBuilder.java @@ -0,0 +1,419 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface DiskImageTargetDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.DiskImageTargetDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Optional. Use to set the parameters relevant for the OS adaptation
        +   * process.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters os_adaptation_parameters = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the osAdaptationParameters field is set. + */ + boolean hasOsAdaptationParameters(); + + /** + * + * + *
        +   * Optional. Use to set the parameters relevant for the OS adaptation
        +   * process.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters os_adaptation_parameters = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The osAdaptationParameters. + */ + com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters getOsAdaptationParameters(); + + /** + * + * + *
        +   * Optional. Use to set the parameters relevant for the OS adaptation
        +   * process.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters os_adaptation_parameters = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParametersOrBuilder + getOsAdaptationParametersOrBuilder(); + + /** + * + * + *
        +   * Optional. Use to skip OS adaptation process.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.DataDiskImageImport data_disk_image_import = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dataDiskImageImport field is set. + */ + boolean hasDataDiskImageImport(); + + /** + * + * + *
        +   * Optional. Use to skip OS adaptation process.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.DataDiskImageImport data_disk_image_import = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataDiskImageImport. + */ + com.google.cloud.vmmigration.v1.DataDiskImageImport getDataDiskImageImport(); + + /** + * + * + *
        +   * Optional. Use to skip OS adaptation process.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.DataDiskImageImport data_disk_image_import = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.vmmigration.v1.DataDiskImageImportOrBuilder getDataDiskImageImportOrBuilder(); + + /** + * + * + *
        +   * Required. The name of the image to be created.
        +   * 
        + * + * string image_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The imageName. + */ + java.lang.String getImageName(); + + /** + * + * + *
        +   * Required. The name of the image to be created.
        +   * 
        + * + * string image_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for imageName. + */ + com.google.protobuf.ByteString getImageNameBytes(); + + /** + * + * + *
        +   * Required. Reference to the TargetProject resource that represents the
        +   * target project in which the imported image will be created.
        +   * 
        + * + * + * string target_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The targetProject. + */ + java.lang.String getTargetProject(); + + /** + * + * + *
        +   * Required. Reference to the TargetProject resource that represents the
        +   * target project in which the imported image will be created.
        +   * 
        + * + * + * string target_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for targetProject. + */ + com.google.protobuf.ByteString getTargetProjectBytes(); + + /** + * + * + *
        +   * Optional. An optional description of the image.
        +   * 
        + * + * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
        +   * Optional. An optional description of the image.
        +   * 
        + * + * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
        +   * Optional. The name of the image family to which the new image belongs.
        +   * 
        + * + * string family_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The familyName. + */ + java.lang.String getFamilyName(); + + /** + * + * + *
        +   * Optional. The name of the image family to which the new image belongs.
        +   * 
        + * + * string family_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for familyName. + */ + com.google.protobuf.ByteString getFamilyNameBytes(); + + /** + * + * + *
        +   * Optional. A map of labels to associate with the image.
        +   * 
        + * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + + /** + * + * + *
        +   * Optional. A map of labels to associate with the image.
        +   * 
        + * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + + /** + * + * + *
        +   * Optional. A map of labels to associate with the image.
        +   * 
        + * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
        +   * Optional. A map of labels to associate with the image.
        +   * 
        + * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
        +   * Optional. A map of labels to associate with the image.
        +   * 
        + * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
        +   * Optional. Additional licenses to assign to the image.
        +   * Format:
        +   * https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +   * Or
        +   * https://www.googleapis.com/compute/beta/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +   * 
        + * + * repeated string additional_licenses = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the additionalLicenses. + */ + java.util.List getAdditionalLicensesList(); + + /** + * + * + *
        +   * Optional. Additional licenses to assign to the image.
        +   * Format:
        +   * https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +   * Or
        +   * https://www.googleapis.com/compute/beta/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +   * 
        + * + * repeated string additional_licenses = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of additionalLicenses. + */ + int getAdditionalLicensesCount(); + + /** + * + * + *
        +   * Optional. Additional licenses to assign to the image.
        +   * Format:
        +   * https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +   * Or
        +   * https://www.googleapis.com/compute/beta/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +   * 
        + * + * repeated string additional_licenses = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The additionalLicenses at the given index. + */ + java.lang.String getAdditionalLicenses(int index); + + /** + * + * + *
        +   * Optional. Additional licenses to assign to the image.
        +   * Format:
        +   * https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +   * Or
        +   * https://www.googleapis.com/compute/beta/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +   * 
        + * + * repeated string additional_licenses = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the additionalLicenses at the given index. + */ + com.google.protobuf.ByteString getAdditionalLicensesBytes(int index); + + /** + * + * + *
        +   * Optional. Set to true to set the image storageLocations to the single
        +   * region of the import job. When false, the closest multi-region is selected.
        +   * 
        + * + * bool single_region_storage = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The singleRegionStorage. + */ + boolean getSingleRegionStorage(); + + /** + * + * + *
        +   * Immutable. The encryption to apply to the image.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the encryption field is set. + */ + boolean hasEncryption(); + + /** + * + * + *
        +   * Immutable. The encryption to apply to the image.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The encryption. + */ + com.google.cloud.vmmigration.v1.Encryption getEncryption(); + + /** + * + * + *
        +   * Immutable. The encryption to apply to the image.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + com.google.cloud.vmmigration.v1.EncryptionOrBuilder getEncryptionOrBuilder(); + + com.google.cloud.vmmigration.v1.DiskImageTargetDetails.OsAdaptationConfigCase + getOsAdaptationConfigCase(); +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DiskMigrationJob.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DiskMigrationJob.java new file mode 100644 index 000000000000..679d4db17b8c --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DiskMigrationJob.java @@ -0,0 +1,3501 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * Describes the disk which will be migrated from the source environment.
        + * The source disk has to be unattached.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.DiskMigrationJob} + */ +public final class DiskMigrationJob extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.DiskMigrationJob) + DiskMigrationJobOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DiskMigrationJob.newBuilder() to construct. + private DiskMigrationJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DiskMigrationJob() { + name_ = ""; + state_ = 0; + errors_ = java.util.Collections.emptyList(); + steps_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DiskMigrationJob(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DiskMigrationJob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DiskMigrationJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.DiskMigrationJob.class, + com.google.cloud.vmmigration.v1.DiskMigrationJob.Builder.class); + } + + /** + * + * + *
        +   * The possible values of the state/health of DiskMigrationJob.
        +   * 
        + * + * Protobuf enum {@code google.cloud.vmmigration.v1.DiskMigrationJob.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
        +     * The state is unspecified. This is not in use.
        +     * 
        + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
        +     * The initial state of the disk migration.
        +     * In this state the customers can update the target details.
        +     * 
        + * + * READY = 1; + */ + READY(1), + /** + * + * + *
        +     * The migration is active, and it's running or scheduled to run.
        +     * 
        + * + * RUNNING = 3; + */ + RUNNING(3), + /** + * + * + *
        +     * The migration completed successfully.
        +     * 
        + * + * SUCCEEDED = 4; + */ + SUCCEEDED(4), + /** + * + * + *
        +     * Migration cancellation was initiated.
        +     * 
        + * + * CANCELLING = 5; + */ + CANCELLING(5), + /** + * + * + *
        +     * The migration was cancelled.
        +     * 
        + * + * CANCELLED = 6; + */ + CANCELLED(6), + /** + * + * + *
        +     * The migration process encountered an unrecoverable error and was aborted.
        +     * 
        + * + * FAILED = 7; + */ + FAILED(7), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
        +     * The state is unspecified. This is not in use.
        +     * 
        + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
        +     * The initial state of the disk migration.
        +     * In this state the customers can update the target details.
        +     * 
        + * + * READY = 1; + */ + public static final int READY_VALUE = 1; + + /** + * + * + *
        +     * The migration is active, and it's running or scheduled to run.
        +     * 
        + * + * RUNNING = 3; + */ + public static final int RUNNING_VALUE = 3; + + /** + * + * + *
        +     * The migration completed successfully.
        +     * 
        + * + * SUCCEEDED = 4; + */ + public static final int SUCCEEDED_VALUE = 4; + + /** + * + * + *
        +     * Migration cancellation was initiated.
        +     * 
        + * + * CANCELLING = 5; + */ + public static final int CANCELLING_VALUE = 5; + + /** + * + * + *
        +     * The migration was cancelled.
        +     * 
        + * + * CANCELLED = 6; + */ + public static final int CANCELLED_VALUE = 6; + + /** + * + * + *
        +     * The migration process encountered an unrecoverable error and was aborted.
        +     * 
        + * + * FAILED = 7; + */ + public static final int FAILED_VALUE = 7; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return READY; + case 3: + return RUNNING; + case 4: + return SUCCEEDED; + case 5: + return CANCELLING; + case 6: + return CANCELLED; + case 7: + return FAILED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.DiskMigrationJob.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.vmmigration.v1.DiskMigrationJob.State) + } + + private int bitField0_; + private int sourceDiskDetailsCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object sourceDiskDetails_; + + public enum SourceDiskDetailsCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + AWS_SOURCE_DISK_DETAILS(2), + SOURCEDISKDETAILS_NOT_SET(0); + private final int value; + + private SourceDiskDetailsCase(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 SourceDiskDetailsCase valueOf(int value) { + return forNumber(value); + } + + public static SourceDiskDetailsCase forNumber(int value) { + switch (value) { + case 2: + return AWS_SOURCE_DISK_DETAILS; + case 0: + return SOURCEDISKDETAILS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SourceDiskDetailsCase getSourceDiskDetailsCase() { + return SourceDiskDetailsCase.forNumber(sourceDiskDetailsCase_); + } + + public static final int AWS_SOURCE_DISK_DETAILS_FIELD_NUMBER = 2; + + /** + * + * + *
        +   * Details of the unattached AWS source disk.
        +   * 
        + * + * .google.cloud.vmmigration.v1.AwsSourceDiskDetails aws_source_disk_details = 2; + * + * @return Whether the awsSourceDiskDetails field is set. + */ + @java.lang.Override + public boolean hasAwsSourceDiskDetails() { + return sourceDiskDetailsCase_ == 2; + } + + /** + * + * + *
        +   * Details of the unattached AWS source disk.
        +   * 
        + * + * .google.cloud.vmmigration.v1.AwsSourceDiskDetails aws_source_disk_details = 2; + * + * @return The awsSourceDiskDetails. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.AwsSourceDiskDetails getAwsSourceDiskDetails() { + if (sourceDiskDetailsCase_ == 2) { + return (com.google.cloud.vmmigration.v1.AwsSourceDiskDetails) sourceDiskDetails_; + } + return com.google.cloud.vmmigration.v1.AwsSourceDiskDetails.getDefaultInstance(); + } + + /** + * + * + *
        +   * Details of the unattached AWS source disk.
        +   * 
        + * + * .google.cloud.vmmigration.v1.AwsSourceDiskDetails aws_source_disk_details = 2; + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.AwsSourceDiskDetailsOrBuilder + getAwsSourceDiskDetailsOrBuilder() { + if (sourceDiskDetailsCase_ == 2) { + return (com.google.cloud.vmmigration.v1.AwsSourceDiskDetails) sourceDiskDetails_; + } + return com.google.cloud.vmmigration.v1.AwsSourceDiskDetails.getDefaultInstance(); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
        +   * Output only. Identifier. The identifier of the DiskMigrationJob.
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
        +   * Output only. Identifier. The identifier of the DiskMigrationJob.
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGET_DETAILS_FIELD_NUMBER = 3; + private com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails targetDetails_; + + /** + * + * + *
        +   * Required. Details of the target Disk in Compute Engine.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails target_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the targetDetails field is set. + */ + @java.lang.Override + public boolean hasTargetDetails() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
        +   * Required. Details of the target Disk in Compute Engine.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails target_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The targetDetails. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails getTargetDetails() { + return targetDetails_ == null + ? com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails.getDefaultInstance() + : targetDetails_; + } + + /** + * + * + *
        +   * Required. Details of the target Disk in Compute Engine.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails target_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetailsOrBuilder + getTargetDetailsOrBuilder() { + return targetDetails_ == null + ? com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails.getDefaultInstance() + : targetDetails_; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
        +   * Output only. The time the DiskMigrationJob resource was created.
        +   * 
        + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
        +   * Output only. The time the DiskMigrationJob resource was created.
        +   * 
        + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
        +   * Output only. The time the DiskMigrationJob resource was created.
        +   * 
        + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
        +   * Output only. The last time the DiskMigrationJob resource was updated.
        +   * 
        + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
        +   * Output only. The last time the DiskMigrationJob resource was updated.
        +   * 
        + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
        +   * Output only. The last time the DiskMigrationJob resource was updated.
        +   * 
        + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int STATE_FIELD_NUMBER = 6; + private int state_ = 0; + + /** + * + * + *
        +   * Output only. State of the DiskMigrationJob.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.DiskMigrationJob.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
        +   * Output only. State of the DiskMigrationJob.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.DiskMigrationJob.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.DiskMigrationJob.State getState() { + com.google.cloud.vmmigration.v1.DiskMigrationJob.State result = + com.google.cloud.vmmigration.v1.DiskMigrationJob.State.forNumber(state_); + return result == null + ? com.google.cloud.vmmigration.v1.DiskMigrationJob.State.UNRECOGNIZED + : result; + } + + public static final int ERRORS_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private java.util.List errors_; + + /** + * + * + *
        +   * Output only. Provides details on the errors that led to the disk migration
        +   * job's state in case of an error.
        +   * 
        + * + * repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getErrorsList() { + return errors_; + } + + /** + * + * + *
        +   * Output only. Provides details on the errors that led to the disk migration
        +   * job's state in case of an error.
        +   * 
        + * + * repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getErrorsOrBuilderList() { + return errors_; + } + + /** + * + * + *
        +   * Output only. Provides details on the errors that led to the disk migration
        +   * job's state in case of an error.
        +   * 
        + * + * repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getErrorsCount() { + return errors_.size(); + } + + /** + * + * + *
        +   * Output only. Provides details on the errors that led to the disk migration
        +   * job's state in case of an error.
        +   * 
        + * + * repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.rpc.Status getErrors(int index) { + return errors_.get(index); + } + + /** + * + * + *
        +   * Output only. Provides details on the errors that led to the disk migration
        +   * job's state in case of an error.
        +   * 
        + * + * repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getErrorsOrBuilder(int index) { + return errors_.get(index); + } + + public static final int STEPS_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private java.util.List steps_; + + /** + * + * + *
        +   * Output only. The disk migration steps list representing its progress.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.DiskMigrationStep steps = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getStepsList() { + return steps_; + } + + /** + * + * + *
        +   * Output only. The disk migration steps list representing its progress.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.DiskMigrationStep steps = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getStepsOrBuilderList() { + return steps_; + } + + /** + * + * + *
        +   * Output only. The disk migration steps list representing its progress.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.DiskMigrationStep steps = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getStepsCount() { + return steps_.size(); + } + + /** + * + * + *
        +   * Output only. The disk migration steps list representing its progress.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.DiskMigrationStep steps = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.DiskMigrationStep getSteps(int index) { + return steps_.get(index); + } + + /** + * + * + *
        +   * Output only. The disk migration steps list representing its progress.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.DiskMigrationStep steps = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.DiskMigrationStepOrBuilder getStepsOrBuilder(int index) { + return steps_.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 (sourceDiskDetailsCase_ == 2) { + output.writeMessage( + 2, (com.google.cloud.vmmigration.v1.AwsSourceDiskDetails) sourceDiskDetails_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getTargetDetails()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getCreateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(5, getUpdateTime()); + } + if (state_ + != com.google.cloud.vmmigration.v1.DiskMigrationJob.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(6, state_); + } + for (int i = 0; i < errors_.size(); i++) { + output.writeMessage(7, errors_.get(i)); + } + for (int i = 0; i < steps_.size(); i++) { + output.writeMessage(8, steps_.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 (sourceDiskDetailsCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.vmmigration.v1.AwsSourceDiskDetails) sourceDiskDetails_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTargetDetails()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); + } + if (state_ + != com.google.cloud.vmmigration.v1.DiskMigrationJob.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_); + } + for (int i = 0; i < errors_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, errors_.get(i)); + } + for (int i = 0; i < steps_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, steps_.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.vmmigration.v1.DiskMigrationJob)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.DiskMigrationJob other = + (com.google.cloud.vmmigration.v1.DiskMigrationJob) obj; + + if (!getName().equals(other.getName())) return false; + if (hasTargetDetails() != other.hasTargetDetails()) return false; + if (hasTargetDetails()) { + if (!getTargetDetails().equals(other.getTargetDetails())) return false; + } + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (state_ != other.state_) return false; + if (!getErrorsList().equals(other.getErrorsList())) return false; + if (!getStepsList().equals(other.getStepsList())) return false; + if (!getSourceDiskDetailsCase().equals(other.getSourceDiskDetailsCase())) return false; + switch (sourceDiskDetailsCase_) { + case 2: + if (!getAwsSourceDiskDetails().equals(other.getAwsSourceDiskDetails())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasTargetDetails()) { + hash = (37 * hash) + TARGET_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getTargetDetails().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (getErrorsCount() > 0) { + hash = (37 * hash) + ERRORS_FIELD_NUMBER; + hash = (53 * hash) + getErrorsList().hashCode(); + } + if (getStepsCount() > 0) { + hash = (37 * hash) + STEPS_FIELD_NUMBER; + hash = (53 * hash) + getStepsList().hashCode(); + } + switch (sourceDiskDetailsCase_) { + case 2: + hash = (37 * hash) + AWS_SOURCE_DISK_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getAwsSourceDiskDetails().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.DiskMigrationJob parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.DiskMigrationJob 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.vmmigration.v1.DiskMigrationJob parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.DiskMigrationJob parseFrom( + 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.vmmigration.v1.DiskMigrationJob parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.DiskMigrationJob parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.DiskMigrationJob parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.DiskMigrationJob 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.vmmigration.v1.DiskMigrationJob parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.DiskMigrationJob 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.vmmigration.v1.DiskMigrationJob parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.DiskMigrationJob 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.vmmigration.v1.DiskMigrationJob prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * Describes the disk which will be migrated from the source environment.
        +   * The source disk has to be unattached.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.DiskMigrationJob} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.DiskMigrationJob) + com.google.cloud.vmmigration.v1.DiskMigrationJobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DiskMigrationJob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DiskMigrationJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.DiskMigrationJob.class, + com.google.cloud.vmmigration.v1.DiskMigrationJob.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.DiskMigrationJob.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTargetDetailsFieldBuilder(); + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + getErrorsFieldBuilder(); + getStepsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (awsSourceDiskDetailsBuilder_ != null) { + awsSourceDiskDetailsBuilder_.clear(); + } + name_ = ""; + targetDetails_ = null; + if (targetDetailsBuilder_ != null) { + targetDetailsBuilder_.dispose(); + targetDetailsBuilder_ = null; + } + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + state_ = 0; + if (errorsBuilder_ == null) { + errors_ = java.util.Collections.emptyList(); + } else { + errors_ = null; + errorsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + if (stepsBuilder_ == null) { + steps_ = java.util.Collections.emptyList(); + } else { + steps_ = null; + stepsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); + sourceDiskDetailsCase_ = 0; + sourceDiskDetails_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DiskMigrationJob_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.DiskMigrationJob getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.DiskMigrationJob.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.DiskMigrationJob build() { + com.google.cloud.vmmigration.v1.DiskMigrationJob result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.DiskMigrationJob buildPartial() { + com.google.cloud.vmmigration.v1.DiskMigrationJob result = + new com.google.cloud.vmmigration.v1.DiskMigrationJob(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.vmmigration.v1.DiskMigrationJob result) { + if (errorsBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + errors_ = java.util.Collections.unmodifiableList(errors_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.errors_ = errors_; + } else { + result.errors_ = errorsBuilder_.build(); + } + if (stepsBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0)) { + steps_ = java.util.Collections.unmodifiableList(steps_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.steps_ = steps_; + } else { + result.steps_ = stepsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.vmmigration.v1.DiskMigrationJob result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.targetDetails_ = + targetDetailsBuilder_ == null ? targetDetails_ : targetDetailsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.state_ = state_; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.vmmigration.v1.DiskMigrationJob result) { + result.sourceDiskDetailsCase_ = sourceDiskDetailsCase_; + result.sourceDiskDetails_ = this.sourceDiskDetails_; + if (sourceDiskDetailsCase_ == 2 && awsSourceDiskDetailsBuilder_ != null) { + result.sourceDiskDetails_ = awsSourceDiskDetailsBuilder_.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.vmmigration.v1.DiskMigrationJob) { + return mergeFrom((com.google.cloud.vmmigration.v1.DiskMigrationJob) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.DiskMigrationJob other) { + if (other == com.google.cloud.vmmigration.v1.DiskMigrationJob.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasTargetDetails()) { + mergeTargetDetails(other.getTargetDetails()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (errorsBuilder_ == null) { + if (!other.errors_.isEmpty()) { + if (errors_.isEmpty()) { + errors_ = other.errors_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureErrorsIsMutable(); + errors_.addAll(other.errors_); + } + onChanged(); + } + } else { + if (!other.errors_.isEmpty()) { + if (errorsBuilder_.isEmpty()) { + errorsBuilder_.dispose(); + errorsBuilder_ = null; + errors_ = other.errors_; + bitField0_ = (bitField0_ & ~0x00000040); + errorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getErrorsFieldBuilder() + : null; + } else { + errorsBuilder_.addAllMessages(other.errors_); + } + } + } + if (stepsBuilder_ == null) { + if (!other.steps_.isEmpty()) { + if (steps_.isEmpty()) { + steps_ = other.steps_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureStepsIsMutable(); + steps_.addAll(other.steps_); + } + onChanged(); + } + } else { + if (!other.steps_.isEmpty()) { + if (stepsBuilder_.isEmpty()) { + stepsBuilder_.dispose(); + stepsBuilder_ = null; + steps_ = other.steps_; + bitField0_ = (bitField0_ & ~0x00000080); + stepsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getStepsFieldBuilder() + : null; + } else { + stepsBuilder_.addAllMessages(other.steps_); + } + } + } + switch (other.getSourceDiskDetailsCase()) { + case AWS_SOURCE_DISK_DETAILS: + { + mergeAwsSourceDiskDetails(other.getAwsSourceDiskDetails()); + break; + } + case SOURCEDISKDETAILS_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: + { + input.readMessage( + getAwsSourceDiskDetailsFieldBuilder().getBuilder(), extensionRegistry); + sourceDiskDetailsCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getTargetDetailsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + com.google.rpc.Status m = + input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(m); + } else { + errorsBuilder_.addMessage(m); + } + break; + } // case 58 + case 66: + { + com.google.cloud.vmmigration.v1.DiskMigrationStep m = + input.readMessage( + com.google.cloud.vmmigration.v1.DiskMigrationStep.parser(), + extensionRegistry); + if (stepsBuilder_ == null) { + ensureStepsIsMutable(); + steps_.add(m); + } else { + stepsBuilder_.addMessage(m); + } + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int sourceDiskDetailsCase_ = 0; + private java.lang.Object sourceDiskDetails_; + + public SourceDiskDetailsCase getSourceDiskDetailsCase() { + return SourceDiskDetailsCase.forNumber(sourceDiskDetailsCase_); + } + + public Builder clearSourceDiskDetails() { + sourceDiskDetailsCase_ = 0; + sourceDiskDetails_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.AwsSourceDiskDetails, + com.google.cloud.vmmigration.v1.AwsSourceDiskDetails.Builder, + com.google.cloud.vmmigration.v1.AwsSourceDiskDetailsOrBuilder> + awsSourceDiskDetailsBuilder_; + + /** + * + * + *
        +     * Details of the unattached AWS source disk.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AwsSourceDiskDetails aws_source_disk_details = 2; + * + * @return Whether the awsSourceDiskDetails field is set. + */ + @java.lang.Override + public boolean hasAwsSourceDiskDetails() { + return sourceDiskDetailsCase_ == 2; + } + + /** + * + * + *
        +     * Details of the unattached AWS source disk.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AwsSourceDiskDetails aws_source_disk_details = 2; + * + * @return The awsSourceDiskDetails. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.AwsSourceDiskDetails getAwsSourceDiskDetails() { + if (awsSourceDiskDetailsBuilder_ == null) { + if (sourceDiskDetailsCase_ == 2) { + return (com.google.cloud.vmmigration.v1.AwsSourceDiskDetails) sourceDiskDetails_; + } + return com.google.cloud.vmmigration.v1.AwsSourceDiskDetails.getDefaultInstance(); + } else { + if (sourceDiskDetailsCase_ == 2) { + return awsSourceDiskDetailsBuilder_.getMessage(); + } + return com.google.cloud.vmmigration.v1.AwsSourceDiskDetails.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Details of the unattached AWS source disk.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AwsSourceDiskDetails aws_source_disk_details = 2; + */ + public Builder setAwsSourceDiskDetails( + com.google.cloud.vmmigration.v1.AwsSourceDiskDetails value) { + if (awsSourceDiskDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sourceDiskDetails_ = value; + onChanged(); + } else { + awsSourceDiskDetailsBuilder_.setMessage(value); + } + sourceDiskDetailsCase_ = 2; + return this; + } + + /** + * + * + *
        +     * Details of the unattached AWS source disk.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AwsSourceDiskDetails aws_source_disk_details = 2; + */ + public Builder setAwsSourceDiskDetails( + com.google.cloud.vmmigration.v1.AwsSourceDiskDetails.Builder builderForValue) { + if (awsSourceDiskDetailsBuilder_ == null) { + sourceDiskDetails_ = builderForValue.build(); + onChanged(); + } else { + awsSourceDiskDetailsBuilder_.setMessage(builderForValue.build()); + } + sourceDiskDetailsCase_ = 2; + return this; + } + + /** + * + * + *
        +     * Details of the unattached AWS source disk.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AwsSourceDiskDetails aws_source_disk_details = 2; + */ + public Builder mergeAwsSourceDiskDetails( + com.google.cloud.vmmigration.v1.AwsSourceDiskDetails value) { + if (awsSourceDiskDetailsBuilder_ == null) { + if (sourceDiskDetailsCase_ == 2 + && sourceDiskDetails_ + != com.google.cloud.vmmigration.v1.AwsSourceDiskDetails.getDefaultInstance()) { + sourceDiskDetails_ = + com.google.cloud.vmmigration.v1.AwsSourceDiskDetails.newBuilder( + (com.google.cloud.vmmigration.v1.AwsSourceDiskDetails) sourceDiskDetails_) + .mergeFrom(value) + .buildPartial(); + } else { + sourceDiskDetails_ = value; + } + onChanged(); + } else { + if (sourceDiskDetailsCase_ == 2) { + awsSourceDiskDetailsBuilder_.mergeFrom(value); + } else { + awsSourceDiskDetailsBuilder_.setMessage(value); + } + } + sourceDiskDetailsCase_ = 2; + return this; + } + + /** + * + * + *
        +     * Details of the unattached AWS source disk.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AwsSourceDiskDetails aws_source_disk_details = 2; + */ + public Builder clearAwsSourceDiskDetails() { + if (awsSourceDiskDetailsBuilder_ == null) { + if (sourceDiskDetailsCase_ == 2) { + sourceDiskDetailsCase_ = 0; + sourceDiskDetails_ = null; + onChanged(); + } + } else { + if (sourceDiskDetailsCase_ == 2) { + sourceDiskDetailsCase_ = 0; + sourceDiskDetails_ = null; + } + awsSourceDiskDetailsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Details of the unattached AWS source disk.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AwsSourceDiskDetails aws_source_disk_details = 2; + */ + public com.google.cloud.vmmigration.v1.AwsSourceDiskDetails.Builder + getAwsSourceDiskDetailsBuilder() { + return getAwsSourceDiskDetailsFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Details of the unattached AWS source disk.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AwsSourceDiskDetails aws_source_disk_details = 2; + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.AwsSourceDiskDetailsOrBuilder + getAwsSourceDiskDetailsOrBuilder() { + if ((sourceDiskDetailsCase_ == 2) && (awsSourceDiskDetailsBuilder_ != null)) { + return awsSourceDiskDetailsBuilder_.getMessageOrBuilder(); + } else { + if (sourceDiskDetailsCase_ == 2) { + return (com.google.cloud.vmmigration.v1.AwsSourceDiskDetails) sourceDiskDetails_; + } + return com.google.cloud.vmmigration.v1.AwsSourceDiskDetails.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Details of the unattached AWS source disk.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AwsSourceDiskDetails aws_source_disk_details = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.AwsSourceDiskDetails, + com.google.cloud.vmmigration.v1.AwsSourceDiskDetails.Builder, + com.google.cloud.vmmigration.v1.AwsSourceDiskDetailsOrBuilder> + getAwsSourceDiskDetailsFieldBuilder() { + if (awsSourceDiskDetailsBuilder_ == null) { + if (!(sourceDiskDetailsCase_ == 2)) { + sourceDiskDetails_ = + com.google.cloud.vmmigration.v1.AwsSourceDiskDetails.getDefaultInstance(); + } + awsSourceDiskDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.AwsSourceDiskDetails, + com.google.cloud.vmmigration.v1.AwsSourceDiskDetails.Builder, + com.google.cloud.vmmigration.v1.AwsSourceDiskDetailsOrBuilder>( + (com.google.cloud.vmmigration.v1.AwsSourceDiskDetails) sourceDiskDetails_, + getParentForChildren(), + isClean()); + sourceDiskDetails_ = null; + } + sourceDiskDetailsCase_ = 2; + onChanged(); + return awsSourceDiskDetailsBuilder_; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
        +     * Output only. Identifier. The identifier of the DiskMigrationJob.
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Output only. Identifier. The identifier of the DiskMigrationJob.
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Output only. Identifier. The identifier of the DiskMigrationJob.
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. Identifier. The identifier of the DiskMigrationJob.
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. Identifier. The identifier of the DiskMigrationJob.
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails targetDetails_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails, + com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails.Builder, + com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetailsOrBuilder> + targetDetailsBuilder_; + + /** + * + * + *
        +     * Required. Details of the target Disk in Compute Engine.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails target_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the targetDetails field is set. + */ + public boolean hasTargetDetails() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
        +     * Required. Details of the target Disk in Compute Engine.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails target_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The targetDetails. + */ + public com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails getTargetDetails() { + if (targetDetailsBuilder_ == null) { + return targetDetails_ == null + ? com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails.getDefaultInstance() + : targetDetails_; + } else { + return targetDetailsBuilder_.getMessage(); + } + } + + /** + * + * + *
        +     * Required. Details of the target Disk in Compute Engine.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails target_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTargetDetails( + com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails value) { + if (targetDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + targetDetails_ = value; + } else { + targetDetailsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. Details of the target Disk in Compute Engine.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails target_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTargetDetails( + com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails.Builder builderForValue) { + if (targetDetailsBuilder_ == null) { + targetDetails_ = builderForValue.build(); + } else { + targetDetailsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. Details of the target Disk in Compute Engine.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails target_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeTargetDetails( + com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails value) { + if (targetDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && targetDetails_ != null + && targetDetails_ + != com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails + .getDefaultInstance()) { + getTargetDetailsBuilder().mergeFrom(value); + } else { + targetDetails_ = value; + } + } else { + targetDetailsBuilder_.mergeFrom(value); + } + if (targetDetails_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Required. Details of the target Disk in Compute Engine.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails target_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearTargetDetails() { + bitField0_ = (bitField0_ & ~0x00000004); + targetDetails_ = null; + if (targetDetailsBuilder_ != null) { + targetDetailsBuilder_.dispose(); + targetDetailsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. Details of the target Disk in Compute Engine.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails target_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails.Builder + getTargetDetailsBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getTargetDetailsFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Required. Details of the target Disk in Compute Engine.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails target_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetailsOrBuilder + getTargetDetailsOrBuilder() { + if (targetDetailsBuilder_ != null) { + return targetDetailsBuilder_.getMessageOrBuilder(); + } else { + return targetDetails_ == null + ? com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails.getDefaultInstance() + : targetDetails_; + } + } + + /** + * + * + *
        +     * Required. Details of the target Disk in Compute Engine.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails target_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails, + com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails.Builder, + com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetailsOrBuilder> + getTargetDetailsFieldBuilder() { + if (targetDetailsBuilder_ == null) { + targetDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails, + com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails.Builder, + com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetailsOrBuilder>( + getTargetDetails(), getParentForChildren(), isClean()); + targetDetails_ = null; + } + return targetDetailsBuilder_; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
        +     * Output only. The time the DiskMigrationJob resource was created.
        +     * 
        + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
        +     * Output only. The time the DiskMigrationJob resource was created.
        +     * 
        + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
        +     * Output only. The time the DiskMigrationJob resource was created.
        +     * 
        + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The time the DiskMigrationJob resource was created.
        +     * 
        + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The time the DiskMigrationJob resource was created.
        +     * 
        + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Output only. The time the DiskMigrationJob resource was created.
        +     * 
        + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The time the DiskMigrationJob resource was created.
        +     * 
        + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Output only. The time the DiskMigrationJob resource was created.
        +     * 
        + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
        +     * Output only. The time the DiskMigrationJob resource was created.
        +     * 
        + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
        +     * Output only. The last time the DiskMigrationJob resource was updated.
        +     * 
        + * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
        +     * Output only. The last time the DiskMigrationJob resource was updated.
        +     * 
        + * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
        +     * Output only. The last time the DiskMigrationJob resource was updated.
        +     * 
        + * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The last time the DiskMigrationJob resource was updated.
        +     * 
        + * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The last time the DiskMigrationJob resource was updated.
        +     * 
        + * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Output only. The last time the DiskMigrationJob resource was updated.
        +     * 
        + * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000010); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The last time the DiskMigrationJob resource was updated.
        +     * 
        + * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Output only. The last time the DiskMigrationJob resource was updated.
        +     * 
        + * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
        +     * Output only. The last time the DiskMigrationJob resource was updated.
        +     * 
        + * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private int state_ = 0; + + /** + * + * + *
        +     * Output only. State of the DiskMigrationJob.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DiskMigrationJob.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
        +     * Output only. State of the DiskMigrationJob.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DiskMigrationJob.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. State of the DiskMigrationJob.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DiskMigrationJob.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.DiskMigrationJob.State getState() { + com.google.cloud.vmmigration.v1.DiskMigrationJob.State result = + com.google.cloud.vmmigration.v1.DiskMigrationJob.State.forNumber(state_); + return result == null + ? com.google.cloud.vmmigration.v1.DiskMigrationJob.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
        +     * Output only. State of the DiskMigrationJob.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DiskMigrationJob.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.vmmigration.v1.DiskMigrationJob.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. State of the DiskMigrationJob.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DiskMigrationJob.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000020); + state_ = 0; + onChanged(); + return this; + } + + private java.util.List errors_ = java.util.Collections.emptyList(); + + private void ensureErrorsIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + errors_ = new java.util.ArrayList(errors_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorsBuilder_; + + /** + * + * + *
        +     * Output only. Provides details on the errors that led to the disk migration
        +     * job's state in case of an error.
        +     * 
        + * + * repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getErrorsList() { + if (errorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(errors_); + } else { + return errorsBuilder_.getMessageList(); + } + } + + /** + * + * + *
        +     * Output only. Provides details on the errors that led to the disk migration
        +     * job's state in case of an error.
        +     * 
        + * + * repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getErrorsCount() { + if (errorsBuilder_ == null) { + return errors_.size(); + } else { + return errorsBuilder_.getCount(); + } + } + + /** + * + * + *
        +     * Output only. Provides details on the errors that led to the disk migration
        +     * job's state in case of an error.
        +     * 
        + * + * repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.rpc.Status getErrors(int index) { + if (errorsBuilder_ == null) { + return errors_.get(index); + } else { + return errorsBuilder_.getMessage(index); + } + } + + /** + * + * + *
        +     * Output only. Provides details on the errors that led to the disk migration
        +     * job's state in case of an error.
        +     * 
        + * + * repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setErrors(int index, com.google.rpc.Status value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.set(index, value); + onChanged(); + } else { + errorsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * Output only. Provides details on the errors that led to the disk migration
        +     * job's state in case of an error.
        +     * 
        + * + * repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setErrors(int index, com.google.rpc.Status.Builder builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.set(index, builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Output only. Provides details on the errors that led to the disk migration
        +     * job's state in case of an error.
        +     * 
        + * + * repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addErrors(com.google.rpc.Status value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.add(value); + onChanged(); + } else { + errorsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
        +     * Output only. Provides details on the errors that led to the disk migration
        +     * job's state in case of an error.
        +     * 
        + * + * repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addErrors(int index, com.google.rpc.Status value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.add(index, value); + onChanged(); + } else { + errorsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * Output only. Provides details on the errors that led to the disk migration
        +     * job's state in case of an error.
        +     * 
        + * + * repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addErrors(com.google.rpc.Status.Builder builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Output only. Provides details on the errors that led to the disk migration
        +     * job's state in case of an error.
        +     * 
        + * + * repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addErrors(int index, com.google.rpc.Status.Builder builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(index, builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Output only. Provides details on the errors that led to the disk migration
        +     * job's state in case of an error.
        +     * 
        + * + * repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllErrors(java.lang.Iterable values) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errors_); + onChanged(); + } else { + errorsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
        +     * Output only. Provides details on the errors that led to the disk migration
        +     * job's state in case of an error.
        +     * 
        + * + * repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearErrors() { + if (errorsBuilder_ == null) { + errors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + errorsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Output only. Provides details on the errors that led to the disk migration
        +     * job's state in case of an error.
        +     * 
        + * + * repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeErrors(int index) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.remove(index); + onChanged(); + } else { + errorsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
        +     * Output only. Provides details on the errors that led to the disk migration
        +     * job's state in case of an error.
        +     * 
        + * + * repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.rpc.Status.Builder getErrorsBuilder(int index) { + return getErrorsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
        +     * Output only. Provides details on the errors that led to the disk migration
        +     * job's state in case of an error.
        +     * 
        + * + * repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.rpc.StatusOrBuilder getErrorsOrBuilder(int index) { + if (errorsBuilder_ == null) { + return errors_.get(index); + } else { + return errorsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
        +     * Output only. Provides details on the errors that led to the disk migration
        +     * job's state in case of an error.
        +     * 
        + * + * repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getErrorsOrBuilderList() { + if (errorsBuilder_ != null) { + return errorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(errors_); + } + } + + /** + * + * + *
        +     * Output only. Provides details on the errors that led to the disk migration
        +     * job's state in case of an error.
        +     * 
        + * + * repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.rpc.Status.Builder addErrorsBuilder() { + return getErrorsFieldBuilder().addBuilder(com.google.rpc.Status.getDefaultInstance()); + } + + /** + * + * + *
        +     * Output only. Provides details on the errors that led to the disk migration
        +     * job's state in case of an error.
        +     * 
        + * + * repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.rpc.Status.Builder addErrorsBuilder(int index) { + return getErrorsFieldBuilder().addBuilder(index, com.google.rpc.Status.getDefaultInstance()); + } + + /** + * + * + *
        +     * Output only. Provides details on the errors that led to the disk migration
        +     * job's state in case of an error.
        +     * 
        + * + * repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getErrorsBuilderList() { + return getErrorsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getErrorsFieldBuilder() { + if (errorsBuilder_ == null) { + errorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>( + errors_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); + errors_ = null; + } + return errorsBuilder_; + } + + private java.util.List steps_ = + java.util.Collections.emptyList(); + + private void ensureStepsIsMutable() { + if (!((bitField0_ & 0x00000080) != 0)) { + steps_ = new java.util.ArrayList(steps_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.DiskMigrationStep, + com.google.cloud.vmmigration.v1.DiskMigrationStep.Builder, + com.google.cloud.vmmigration.v1.DiskMigrationStepOrBuilder> + stepsBuilder_; + + /** + * + * + *
        +     * Output only. The disk migration steps list representing its progress.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.DiskMigrationStep steps = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getStepsList() { + if (stepsBuilder_ == null) { + return java.util.Collections.unmodifiableList(steps_); + } else { + return stepsBuilder_.getMessageList(); + } + } + + /** + * + * + *
        +     * Output only. The disk migration steps list representing its progress.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.DiskMigrationStep steps = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getStepsCount() { + if (stepsBuilder_ == null) { + return steps_.size(); + } else { + return stepsBuilder_.getCount(); + } + } + + /** + * + * + *
        +     * Output only. The disk migration steps list representing its progress.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.DiskMigrationStep steps = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.DiskMigrationStep getSteps(int index) { + if (stepsBuilder_ == null) { + return steps_.get(index); + } else { + return stepsBuilder_.getMessage(index); + } + } + + /** + * + * + *
        +     * Output only. The disk migration steps list representing its progress.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.DiskMigrationStep steps = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSteps(int index, com.google.cloud.vmmigration.v1.DiskMigrationStep value) { + if (stepsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStepsIsMutable(); + steps_.set(index, value); + onChanged(); + } else { + stepsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * Output only. The disk migration steps list representing its progress.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.DiskMigrationStep steps = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSteps( + int index, com.google.cloud.vmmigration.v1.DiskMigrationStep.Builder builderForValue) { + if (stepsBuilder_ == null) { + ensureStepsIsMutable(); + steps_.set(index, builderForValue.build()); + onChanged(); + } else { + stepsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Output only. The disk migration steps list representing its progress.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.DiskMigrationStep steps = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addSteps(com.google.cloud.vmmigration.v1.DiskMigrationStep value) { + if (stepsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStepsIsMutable(); + steps_.add(value); + onChanged(); + } else { + stepsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
        +     * Output only. The disk migration steps list representing its progress.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.DiskMigrationStep steps = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addSteps(int index, com.google.cloud.vmmigration.v1.DiskMigrationStep value) { + if (stepsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStepsIsMutable(); + steps_.add(index, value); + onChanged(); + } else { + stepsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * Output only. The disk migration steps list representing its progress.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.DiskMigrationStep steps = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addSteps( + com.google.cloud.vmmigration.v1.DiskMigrationStep.Builder builderForValue) { + if (stepsBuilder_ == null) { + ensureStepsIsMutable(); + steps_.add(builderForValue.build()); + onChanged(); + } else { + stepsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Output only. The disk migration steps list representing its progress.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.DiskMigrationStep steps = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addSteps( + int index, com.google.cloud.vmmigration.v1.DiskMigrationStep.Builder builderForValue) { + if (stepsBuilder_ == null) { + ensureStepsIsMutable(); + steps_.add(index, builderForValue.build()); + onChanged(); + } else { + stepsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Output only. The disk migration steps list representing its progress.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.DiskMigrationStep steps = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllSteps( + java.lang.Iterable values) { + if (stepsBuilder_ == null) { + ensureStepsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, steps_); + onChanged(); + } else { + stepsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
        +     * Output only. The disk migration steps list representing its progress.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.DiskMigrationStep steps = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearSteps() { + if (stepsBuilder_ == null) { + steps_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + stepsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Output only. The disk migration steps list representing its progress.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.DiskMigrationStep steps = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeSteps(int index) { + if (stepsBuilder_ == null) { + ensureStepsIsMutable(); + steps_.remove(index); + onChanged(); + } else { + stepsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
        +     * Output only. The disk migration steps list representing its progress.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.DiskMigrationStep steps = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.DiskMigrationStep.Builder getStepsBuilder(int index) { + return getStepsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
        +     * Output only. The disk migration steps list representing its progress.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.DiskMigrationStep steps = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.DiskMigrationStepOrBuilder getStepsOrBuilder(int index) { + if (stepsBuilder_ == null) { + return steps_.get(index); + } else { + return stepsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
        +     * Output only. The disk migration steps list representing its progress.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.DiskMigrationStep steps = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getStepsOrBuilderList() { + if (stepsBuilder_ != null) { + return stepsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(steps_); + } + } + + /** + * + * + *
        +     * Output only. The disk migration steps list representing its progress.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.DiskMigrationStep steps = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.DiskMigrationStep.Builder addStepsBuilder() { + return getStepsFieldBuilder() + .addBuilder(com.google.cloud.vmmigration.v1.DiskMigrationStep.getDefaultInstance()); + } + + /** + * + * + *
        +     * Output only. The disk migration steps list representing its progress.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.DiskMigrationStep steps = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.DiskMigrationStep.Builder addStepsBuilder(int index) { + return getStepsFieldBuilder() + .addBuilder( + index, com.google.cloud.vmmigration.v1.DiskMigrationStep.getDefaultInstance()); + } + + /** + * + * + *
        +     * Output only. The disk migration steps list representing its progress.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.DiskMigrationStep steps = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getStepsBuilderList() { + return getStepsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.DiskMigrationStep, + com.google.cloud.vmmigration.v1.DiskMigrationStep.Builder, + com.google.cloud.vmmigration.v1.DiskMigrationStepOrBuilder> + getStepsFieldBuilder() { + if (stepsBuilder_ == null) { + stepsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.DiskMigrationStep, + com.google.cloud.vmmigration.v1.DiskMigrationStep.Builder, + com.google.cloud.vmmigration.v1.DiskMigrationStepOrBuilder>( + steps_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); + steps_ = null; + } + return stepsBuilder_; + } + + @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.vmmigration.v1.DiskMigrationJob) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.DiskMigrationJob) + private static final com.google.cloud.vmmigration.v1.DiskMigrationJob DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.DiskMigrationJob(); + } + + public static com.google.cloud.vmmigration.v1.DiskMigrationJob getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DiskMigrationJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.DiskMigrationJob getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DiskMigrationJobName.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DiskMigrationJobName.java new file mode 100644 index 000000000000..9e2d44eea755 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DiskMigrationJobName.java @@ -0,0 +1,269 @@ +/* + * 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.vmmigration.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class DiskMigrationJobName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_SOURCE_DISK_MIGRATION_JOB = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/sources/{source}/diskMigrationJobs/{disk_migration_job}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String source; + private final String diskMigrationJob; + + @Deprecated + protected DiskMigrationJobName() { + project = null; + location = null; + source = null; + diskMigrationJob = null; + } + + private DiskMigrationJobName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + source = Preconditions.checkNotNull(builder.getSource()); + diskMigrationJob = Preconditions.checkNotNull(builder.getDiskMigrationJob()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getSource() { + return source; + } + + public String getDiskMigrationJob() { + return diskMigrationJob; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static DiskMigrationJobName of( + String project, String location, String source, String diskMigrationJob) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setSource(source) + .setDiskMigrationJob(diskMigrationJob) + .build(); + } + + public static String format( + String project, String location, String source, String diskMigrationJob) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setSource(source) + .setDiskMigrationJob(diskMigrationJob) + .build() + .toString(); + } + + public static DiskMigrationJobName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_SOURCE_DISK_MIGRATION_JOB.validatedMatch( + formattedString, "DiskMigrationJobName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("source"), + matchMap.get("disk_migration_job")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (DiskMigrationJobName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_SOURCE_DISK_MIGRATION_JOB.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (source != null) { + fieldMapBuilder.put("source", source); + } + if (diskMigrationJob != null) { + fieldMapBuilder.put("disk_migration_job", diskMigrationJob); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_SOURCE_DISK_MIGRATION_JOB.instantiate( + "project", + project, + "location", + location, + "source", + source, + "disk_migration_job", + diskMigrationJob); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + DiskMigrationJobName that = ((DiskMigrationJobName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.source, that.source) + && Objects.equals(this.diskMigrationJob, that.diskMigrationJob); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(source); + h *= 1000003; + h ^= Objects.hashCode(diskMigrationJob); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/sources/{source}/diskMigrationJobs/{disk_migration_job}. + */ + public static class Builder { + private String project; + private String location; + private String source; + private String diskMigrationJob; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getSource() { + return source; + } + + public String getDiskMigrationJob() { + return diskMigrationJob; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setSource(String source) { + this.source = source; + return this; + } + + public Builder setDiskMigrationJob(String diskMigrationJob) { + this.diskMigrationJob = diskMigrationJob; + return this; + } + + private Builder(DiskMigrationJobName diskMigrationJobName) { + this.project = diskMigrationJobName.project; + this.location = diskMigrationJobName.location; + this.source = diskMigrationJobName.source; + this.diskMigrationJob = diskMigrationJobName.diskMigrationJob; + } + + public DiskMigrationJobName build() { + return new DiskMigrationJobName(this); + } + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DiskMigrationJobOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DiskMigrationJobOrBuilder.java new file mode 100644 index 000000000000..1d1851ea4e06 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DiskMigrationJobOrBuilder.java @@ -0,0 +1,380 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface DiskMigrationJobOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.DiskMigrationJob) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Details of the unattached AWS source disk.
        +   * 
        + * + * .google.cloud.vmmigration.v1.AwsSourceDiskDetails aws_source_disk_details = 2; + * + * @return Whether the awsSourceDiskDetails field is set. + */ + boolean hasAwsSourceDiskDetails(); + + /** + * + * + *
        +   * Details of the unattached AWS source disk.
        +   * 
        + * + * .google.cloud.vmmigration.v1.AwsSourceDiskDetails aws_source_disk_details = 2; + * + * @return The awsSourceDiskDetails. + */ + com.google.cloud.vmmigration.v1.AwsSourceDiskDetails getAwsSourceDiskDetails(); + + /** + * + * + *
        +   * Details of the unattached AWS source disk.
        +   * 
        + * + * .google.cloud.vmmigration.v1.AwsSourceDiskDetails aws_source_disk_details = 2; + */ + com.google.cloud.vmmigration.v1.AwsSourceDiskDetailsOrBuilder getAwsSourceDiskDetailsOrBuilder(); + + /** + * + * + *
        +   * Output only. Identifier. The identifier of the DiskMigrationJob.
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
        +   * Output only. Identifier. The identifier of the DiskMigrationJob.
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
        +   * Required. Details of the target Disk in Compute Engine.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails target_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the targetDetails field is set. + */ + boolean hasTargetDetails(); + + /** + * + * + *
        +   * Required. Details of the target Disk in Compute Engine.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails target_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The targetDetails. + */ + com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails getTargetDetails(); + + /** + * + * + *
        +   * Required. Details of the target Disk in Compute Engine.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails target_details = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetailsOrBuilder + getTargetDetailsOrBuilder(); + + /** + * + * + *
        +   * Output only. The time the DiskMigrationJob resource was created.
        +   * 
        + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
        +   * Output only. The time the DiskMigrationJob resource was created.
        +   * 
        + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
        +   * Output only. The time the DiskMigrationJob resource was created.
        +   * 
        + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
        +   * Output only. The last time the DiskMigrationJob resource was updated.
        +   * 
        + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
        +   * Output only. The last time the DiskMigrationJob resource was updated.
        +   * 
        + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
        +   * Output only. The last time the DiskMigrationJob resource was updated.
        +   * 
        + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
        +   * Output only. State of the DiskMigrationJob.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.DiskMigrationJob.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
        +   * Output only. State of the DiskMigrationJob.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.DiskMigrationJob.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.vmmigration.v1.DiskMigrationJob.State getState(); + + /** + * + * + *
        +   * Output only. Provides details on the errors that led to the disk migration
        +   * job's state in case of an error.
        +   * 
        + * + * repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getErrorsList(); + + /** + * + * + *
        +   * Output only. Provides details on the errors that led to the disk migration
        +   * job's state in case of an error.
        +   * 
        + * + * repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.rpc.Status getErrors(int index); + + /** + * + * + *
        +   * Output only. Provides details on the errors that led to the disk migration
        +   * job's state in case of an error.
        +   * 
        + * + * repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getErrorsCount(); + + /** + * + * + *
        +   * Output only. Provides details on the errors that led to the disk migration
        +   * job's state in case of an error.
        +   * 
        + * + * repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getErrorsOrBuilderList(); + + /** + * + * + *
        +   * Output only. Provides details on the errors that led to the disk migration
        +   * job's state in case of an error.
        +   * 
        + * + * repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.rpc.StatusOrBuilder getErrorsOrBuilder(int index); + + /** + * + * + *
        +   * Output only. The disk migration steps list representing its progress.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.DiskMigrationStep steps = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getStepsList(); + + /** + * + * + *
        +   * Output only. The disk migration steps list representing its progress.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.DiskMigrationStep steps = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.vmmigration.v1.DiskMigrationStep getSteps(int index); + + /** + * + * + *
        +   * Output only. The disk migration steps list representing its progress.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.DiskMigrationStep steps = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getStepsCount(); + + /** + * + * + *
        +   * Output only. The disk migration steps list representing its progress.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.DiskMigrationStep steps = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getStepsOrBuilderList(); + + /** + * + * + *
        +   * Output only. The disk migration steps list representing its progress.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.DiskMigrationStep steps = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.vmmigration.v1.DiskMigrationStepOrBuilder getStepsOrBuilder(int index); + + com.google.cloud.vmmigration.v1.DiskMigrationJob.SourceDiskDetailsCase getSourceDiskDetailsCase(); +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DiskMigrationJobTargetDetails.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DiskMigrationJobTargetDetails.java new file mode 100644 index 000000000000..5685a0f7947a --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DiskMigrationJobTargetDetails.java @@ -0,0 +1,1770 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * Details of the target disk in Compute Engine.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails} + */ +public final class DiskMigrationJobTargetDetails extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails) + DiskMigrationJobTargetDetailsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DiskMigrationJobTargetDetails.newBuilder() to construct. + private DiskMigrationJobTargetDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DiskMigrationJobTargetDetails() { + targetProject_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DiskMigrationJobTargetDetails(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DiskMigrationJobTargetDetails_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 6: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DiskMigrationJobTargetDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails.class, + com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails.Builder.class); + } + + private int bitField0_; + private int targetStorageCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object targetStorage_; + + public enum TargetStorageCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TARGET_DISK(8), + TARGETSTORAGE_NOT_SET(0); + private final int value; + + private TargetStorageCase(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 TargetStorageCase valueOf(int value) { + return forNumber(value); + } + + public static TargetStorageCase forNumber(int value) { + switch (value) { + case 8: + return TARGET_DISK; + case 0: + return TARGETSTORAGE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public TargetStorageCase getTargetStorageCase() { + return TargetStorageCase.forNumber(targetStorageCase_); + } + + public static final int TARGET_DISK_FIELD_NUMBER = 8; + + /** + * + * + *
        +   * Required. The target disk.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisk target_disk = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the targetDisk field is set. + */ + @java.lang.Override + public boolean hasTargetDisk() { + return targetStorageCase_ == 8; + } + + /** + * + * + *
        +   * Required. The target disk.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisk target_disk = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The targetDisk. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ComputeEngineDisk getTargetDisk() { + if (targetStorageCase_ == 8) { + return (com.google.cloud.vmmigration.v1.ComputeEngineDisk) targetStorage_; + } + return com.google.cloud.vmmigration.v1.ComputeEngineDisk.getDefaultInstance(); + } + + /** + * + * + *
        +   * Required. The target disk.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisk target_disk = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ComputeEngineDiskOrBuilder getTargetDiskOrBuilder() { + if (targetStorageCase_ == 8) { + return (com.google.cloud.vmmigration.v1.ComputeEngineDisk) targetStorage_; + } + return com.google.cloud.vmmigration.v1.ComputeEngineDisk.getDefaultInstance(); + } + + public static final int TARGET_PROJECT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object targetProject_ = ""; + + /** + * + * + *
        +   * Required. The name of the resource of type TargetProject which represents
        +   * the Compute Engine project in which to create the disk. Should be of the
        +   * form: projects/{project}/locations/global/targetProjects/{target-project}
        +   * 
        + * + * + * string target_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The targetProject. + */ + @java.lang.Override + public java.lang.String getTargetProject() { + java.lang.Object ref = targetProject_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetProject_ = s; + return s; + } + } + + /** + * + * + *
        +   * Required. The name of the resource of type TargetProject which represents
        +   * the Compute Engine project in which to create the disk. Should be of the
        +   * form: projects/{project}/locations/global/targetProjects/{target-project}
        +   * 
        + * + * + * string target_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for targetProject. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetProjectBytes() { + java.lang.Object ref = targetProject_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetProject_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LABELS_FIELD_NUMBER = 6; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DiskMigrationJobTargetDetails_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
        +   * Optional. A map of labels to associate with the disk.
        +   * 
        + * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
        +   * Optional. A map of labels to associate with the disk.
        +   * 
        + * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
        +   * Optional. A map of labels to associate with the disk.
        +   * 
        + * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
        +   * Optional. A map of labels to associate with the disk.
        +   * 
        + * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int ENCRYPTION_FIELD_NUMBER = 7; + private com.google.cloud.vmmigration.v1.Encryption encryption_; + + /** + * + * + *
        +   * Optional. The encryption to apply to the disk.
        +   * If the DiskMigrationJob parent Source resource has an encryption, this
        +   * field must be set to the same encryption key.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the encryption field is set. + */ + @java.lang.Override + public boolean hasEncryption() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
        +   * Optional. The encryption to apply to the disk.
        +   * If the DiskMigrationJob parent Source resource has an encryption, this
        +   * field must be set to the same encryption key.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The encryption. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.Encryption getEncryption() { + return encryption_ == null + ? com.google.cloud.vmmigration.v1.Encryption.getDefaultInstance() + : encryption_; + } + + /** + * + * + *
        +   * Optional. The encryption to apply to the disk.
        +   * If the DiskMigrationJob parent Source resource has an encryption, this
        +   * field must be set to the same encryption key.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.EncryptionOrBuilder getEncryptionOrBuilder() { + return encryption_ == null + ? com.google.cloud.vmmigration.v1.Encryption.getDefaultInstance() + : encryption_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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(targetProject_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, targetProject_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(7, getEncryption()); + } + if (targetStorageCase_ == 8) { + output.writeMessage(8, (com.google.cloud.vmmigration.v1.ComputeEngineDisk) targetStorage_); + } + 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(targetProject_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, targetProject_); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, labels__); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getEncryption()); + } + if (targetStorageCase_ == 8) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, (com.google.cloud.vmmigration.v1.ComputeEngineDisk) targetStorage_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.vmmigration.v1.DiskMigrationJobTargetDetails)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails other = + (com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails) obj; + + if (!getTargetProject().equals(other.getTargetProject())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (hasEncryption() != other.hasEncryption()) return false; + if (hasEncryption()) { + if (!getEncryption().equals(other.getEncryption())) return false; + } + if (!getTargetStorageCase().equals(other.getTargetStorageCase())) return false; + switch (targetStorageCase_) { + case 8: + if (!getTargetDisk().equals(other.getTargetDisk())) 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) + TARGET_PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getTargetProject().hashCode(); + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + if (hasEncryption()) { + hash = (37 * hash) + ENCRYPTION_FIELD_NUMBER; + hash = (53 * hash) + getEncryption().hashCode(); + } + switch (targetStorageCase_) { + case 8: + hash = (37 * hash) + TARGET_DISK_FIELD_NUMBER; + hash = (53 * hash) + getTargetDisk().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails 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.vmmigration.v1.DiskMigrationJobTargetDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails parseFrom( + 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.vmmigration.v1.DiskMigrationJobTargetDetails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails 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.vmmigration.v1.DiskMigrationJobTargetDetails parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails 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.vmmigration.v1.DiskMigrationJobTargetDetails parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails 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.vmmigration.v1.DiskMigrationJobTargetDetails prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * Details of the target disk in Compute Engine.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails) + com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DiskMigrationJobTargetDetails_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 6: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 6: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DiskMigrationJobTargetDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails.class, + com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getEncryptionFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (targetDiskBuilder_ != null) { + targetDiskBuilder_.clear(); + } + targetProject_ = ""; + internalGetMutableLabels().clear(); + encryption_ = null; + if (encryptionBuilder_ != null) { + encryptionBuilder_.dispose(); + encryptionBuilder_ = null; + } + targetStorageCase_ = 0; + targetStorage_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DiskMigrationJobTargetDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails + getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails build() { + com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails buildPartial() { + com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails result = + new com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.targetProject_ = targetProject_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.encryption_ = encryptionBuilder_ == null ? encryption_ : encryptionBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails result) { + result.targetStorageCase_ = targetStorageCase_; + result.targetStorage_ = this.targetStorage_; + if (targetStorageCase_ == 8 && targetDiskBuilder_ != null) { + result.targetStorage_ = targetDiskBuilder_.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.vmmigration.v1.DiskMigrationJobTargetDetails) { + return mergeFrom((com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails other) { + if (other + == com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails.getDefaultInstance()) + return this; + if (!other.getTargetProject().isEmpty()) { + targetProject_ = other.targetProject_; + bitField0_ |= 0x00000002; + onChanged(); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000004; + if (other.hasEncryption()) { + mergeEncryption(other.getEncryption()); + } + switch (other.getTargetStorageCase()) { + case TARGET_DISK: + { + mergeTargetDisk(other.getTargetDisk()); + break; + } + case TARGETSTORAGE_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: + { + targetProject_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 50: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000004; + break; + } // case 50 + case 58: + { + input.readMessage(getEncryptionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 58 + case 66: + { + input.readMessage(getTargetDiskFieldBuilder().getBuilder(), extensionRegistry); + targetStorageCase_ = 8; + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int targetStorageCase_ = 0; + private java.lang.Object targetStorage_; + + public TargetStorageCase getTargetStorageCase() { + return TargetStorageCase.forNumber(targetStorageCase_); + } + + public Builder clearTargetStorage() { + targetStorageCase_ = 0; + targetStorage_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.ComputeEngineDisk, + com.google.cloud.vmmigration.v1.ComputeEngineDisk.Builder, + com.google.cloud.vmmigration.v1.ComputeEngineDiskOrBuilder> + targetDiskBuilder_; + + /** + * + * + *
        +     * Required. The target disk.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisk target_disk = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the targetDisk field is set. + */ + @java.lang.Override + public boolean hasTargetDisk() { + return targetStorageCase_ == 8; + } + + /** + * + * + *
        +     * Required. The target disk.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisk target_disk = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The targetDisk. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ComputeEngineDisk getTargetDisk() { + if (targetDiskBuilder_ == null) { + if (targetStorageCase_ == 8) { + return (com.google.cloud.vmmigration.v1.ComputeEngineDisk) targetStorage_; + } + return com.google.cloud.vmmigration.v1.ComputeEngineDisk.getDefaultInstance(); + } else { + if (targetStorageCase_ == 8) { + return targetDiskBuilder_.getMessage(); + } + return com.google.cloud.vmmigration.v1.ComputeEngineDisk.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Required. The target disk.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisk target_disk = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTargetDisk(com.google.cloud.vmmigration.v1.ComputeEngineDisk value) { + if (targetDiskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + targetStorage_ = value; + onChanged(); + } else { + targetDiskBuilder_.setMessage(value); + } + targetStorageCase_ = 8; + return this; + } + + /** + * + * + *
        +     * Required. The target disk.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisk target_disk = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTargetDisk( + com.google.cloud.vmmigration.v1.ComputeEngineDisk.Builder builderForValue) { + if (targetDiskBuilder_ == null) { + targetStorage_ = builderForValue.build(); + onChanged(); + } else { + targetDiskBuilder_.setMessage(builderForValue.build()); + } + targetStorageCase_ = 8; + return this; + } + + /** + * + * + *
        +     * Required. The target disk.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisk target_disk = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeTargetDisk(com.google.cloud.vmmigration.v1.ComputeEngineDisk value) { + if (targetDiskBuilder_ == null) { + if (targetStorageCase_ == 8 + && targetStorage_ + != com.google.cloud.vmmigration.v1.ComputeEngineDisk.getDefaultInstance()) { + targetStorage_ = + com.google.cloud.vmmigration.v1.ComputeEngineDisk.newBuilder( + (com.google.cloud.vmmigration.v1.ComputeEngineDisk) targetStorage_) + .mergeFrom(value) + .buildPartial(); + } else { + targetStorage_ = value; + } + onChanged(); + } else { + if (targetStorageCase_ == 8) { + targetDiskBuilder_.mergeFrom(value); + } else { + targetDiskBuilder_.setMessage(value); + } + } + targetStorageCase_ = 8; + return this; + } + + /** + * + * + *
        +     * Required. The target disk.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisk target_disk = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearTargetDisk() { + if (targetDiskBuilder_ == null) { + if (targetStorageCase_ == 8) { + targetStorageCase_ = 0; + targetStorage_ = null; + onChanged(); + } + } else { + if (targetStorageCase_ == 8) { + targetStorageCase_ = 0; + targetStorage_ = null; + } + targetDiskBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Required. The target disk.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisk target_disk = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmmigration.v1.ComputeEngineDisk.Builder getTargetDiskBuilder() { + return getTargetDiskFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Required. The target disk.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisk target_disk = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ComputeEngineDiskOrBuilder getTargetDiskOrBuilder() { + if ((targetStorageCase_ == 8) && (targetDiskBuilder_ != null)) { + return targetDiskBuilder_.getMessageOrBuilder(); + } else { + if (targetStorageCase_ == 8) { + return (com.google.cloud.vmmigration.v1.ComputeEngineDisk) targetStorage_; + } + return com.google.cloud.vmmigration.v1.ComputeEngineDisk.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Required. The target disk.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisk target_disk = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.ComputeEngineDisk, + com.google.cloud.vmmigration.v1.ComputeEngineDisk.Builder, + com.google.cloud.vmmigration.v1.ComputeEngineDiskOrBuilder> + getTargetDiskFieldBuilder() { + if (targetDiskBuilder_ == null) { + if (!(targetStorageCase_ == 8)) { + targetStorage_ = com.google.cloud.vmmigration.v1.ComputeEngineDisk.getDefaultInstance(); + } + targetDiskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.ComputeEngineDisk, + com.google.cloud.vmmigration.v1.ComputeEngineDisk.Builder, + com.google.cloud.vmmigration.v1.ComputeEngineDiskOrBuilder>( + (com.google.cloud.vmmigration.v1.ComputeEngineDisk) targetStorage_, + getParentForChildren(), + isClean()); + targetStorage_ = null; + } + targetStorageCase_ = 8; + onChanged(); + return targetDiskBuilder_; + } + + private java.lang.Object targetProject_ = ""; + + /** + * + * + *
        +     * Required. The name of the resource of type TargetProject which represents
        +     * the Compute Engine project in which to create the disk. Should be of the
        +     * form: projects/{project}/locations/global/targetProjects/{target-project}
        +     * 
        + * + * + * string target_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The targetProject. + */ + public java.lang.String getTargetProject() { + java.lang.Object ref = targetProject_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetProject_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Required. The name of the resource of type TargetProject which represents
        +     * the Compute Engine project in which to create the disk. Should be of the
        +     * form: projects/{project}/locations/global/targetProjects/{target-project}
        +     * 
        + * + * + * string target_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for targetProject. + */ + public com.google.protobuf.ByteString getTargetProjectBytes() { + java.lang.Object ref = targetProject_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetProject_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Required. The name of the resource of type TargetProject which represents
        +     * the Compute Engine project in which to create the disk. Should be of the
        +     * form: projects/{project}/locations/global/targetProjects/{target-project}
        +     * 
        + * + * + * string target_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The targetProject to set. + * @return This builder for chaining. + */ + public Builder setTargetProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + targetProject_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The name of the resource of type TargetProject which represents
        +     * the Compute Engine project in which to create the disk. Should be of the
        +     * form: projects/{project}/locations/global/targetProjects/{target-project}
        +     * 
        + * + * + * string target_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTargetProject() { + targetProject_ = getDefaultInstance().getTargetProject(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The name of the resource of type TargetProject which represents
        +     * the Compute Engine project in which to create the disk. Should be of the
        +     * form: projects/{project}/locations/global/targetProjects/{target-project}
        +     * 
        + * + * + * string target_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for targetProject to set. + * @return This builder for chaining. + */ + public Builder setTargetProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetProject_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000004; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
        +     * Optional. A map of labels to associate with the disk.
        +     * 
        + * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
        +     * Optional. A map of labels to associate with the disk.
        +     * 
        + * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
        +     * Optional. A map of labels to associate with the disk.
        +     * 
        + * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
        +     * Optional. A map of labels to associate with the disk.
        +     * 
        + * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000004); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
        +     * Optional. A map of labels to associate with the disk.
        +     * 
        + * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000004; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
        +     * Optional. A map of labels to associate with the disk.
        +     * 
        + * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000004; + return this; + } + + /** + * + * + *
        +     * Optional. A map of labels to associate with the disk.
        +     * 
        + * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000004; + return this; + } + + private com.google.cloud.vmmigration.v1.Encryption encryption_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.Encryption, + com.google.cloud.vmmigration.v1.Encryption.Builder, + com.google.cloud.vmmigration.v1.EncryptionOrBuilder> + encryptionBuilder_; + + /** + * + * + *
        +     * Optional. The encryption to apply to the disk.
        +     * If the DiskMigrationJob parent Source resource has an encryption, this
        +     * field must be set to the same encryption key.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the encryption field is set. + */ + public boolean hasEncryption() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
        +     * Optional. The encryption to apply to the disk.
        +     * If the DiskMigrationJob parent Source resource has an encryption, this
        +     * field must be set to the same encryption key.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The encryption. + */ + public com.google.cloud.vmmigration.v1.Encryption getEncryption() { + if (encryptionBuilder_ == null) { + return encryption_ == null + ? com.google.cloud.vmmigration.v1.Encryption.getDefaultInstance() + : encryption_; + } else { + return encryptionBuilder_.getMessage(); + } + } + + /** + * + * + *
        +     * Optional. The encryption to apply to the disk.
        +     * If the DiskMigrationJob parent Source resource has an encryption, this
        +     * field must be set to the same encryption key.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEncryption(com.google.cloud.vmmigration.v1.Encryption value) { + if (encryptionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + encryption_ = value; + } else { + encryptionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The encryption to apply to the disk.
        +     * If the DiskMigrationJob parent Source resource has an encryption, this
        +     * field must be set to the same encryption key.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEncryption( + com.google.cloud.vmmigration.v1.Encryption.Builder builderForValue) { + if (encryptionBuilder_ == null) { + encryption_ = builderForValue.build(); + } else { + encryptionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The encryption to apply to the disk.
        +     * If the DiskMigrationJob parent Source resource has an encryption, this
        +     * field must be set to the same encryption key.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeEncryption(com.google.cloud.vmmigration.v1.Encryption value) { + if (encryptionBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && encryption_ != null + && encryption_ != com.google.cloud.vmmigration.v1.Encryption.getDefaultInstance()) { + getEncryptionBuilder().mergeFrom(value); + } else { + encryption_ = value; + } + } else { + encryptionBuilder_.mergeFrom(value); + } + if (encryption_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Optional. The encryption to apply to the disk.
        +     * If the DiskMigrationJob parent Source resource has an encryption, this
        +     * field must be set to the same encryption key.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEncryption() { + bitField0_ = (bitField0_ & ~0x00000008); + encryption_ = null; + if (encryptionBuilder_ != null) { + encryptionBuilder_.dispose(); + encryptionBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The encryption to apply to the disk.
        +     * If the DiskMigrationJob parent Source resource has an encryption, this
        +     * field must be set to the same encryption key.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vmmigration.v1.Encryption.Builder getEncryptionBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getEncryptionFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Optional. The encryption to apply to the disk.
        +     * If the DiskMigrationJob parent Source resource has an encryption, this
        +     * field must be set to the same encryption key.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vmmigration.v1.EncryptionOrBuilder getEncryptionOrBuilder() { + if (encryptionBuilder_ != null) { + return encryptionBuilder_.getMessageOrBuilder(); + } else { + return encryption_ == null + ? com.google.cloud.vmmigration.v1.Encryption.getDefaultInstance() + : encryption_; + } + } + + /** + * + * + *
        +     * Optional. The encryption to apply to the disk.
        +     * If the DiskMigrationJob parent Source resource has an encryption, this
        +     * field must be set to the same encryption key.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.Encryption, + com.google.cloud.vmmigration.v1.Encryption.Builder, + com.google.cloud.vmmigration.v1.EncryptionOrBuilder> + getEncryptionFieldBuilder() { + if (encryptionBuilder_ == null) { + encryptionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.Encryption, + com.google.cloud.vmmigration.v1.Encryption.Builder, + com.google.cloud.vmmigration.v1.EncryptionOrBuilder>( + getEncryption(), getParentForChildren(), isClean()); + encryption_ = null; + } + return encryptionBuilder_; + } + + @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.vmmigration.v1.DiskMigrationJobTargetDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails) + private static final com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails(); + } + + public static com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DiskMigrationJobTargetDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.DiskMigrationJobTargetDetails getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DiskMigrationJobTargetDetailsOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DiskMigrationJobTargetDetailsOrBuilder.java new file mode 100644 index 000000000000..5fa39f0a467e --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DiskMigrationJobTargetDetailsOrBuilder.java @@ -0,0 +1,218 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface DiskMigrationJobTargetDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Required. The target disk.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisk target_disk = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the targetDisk field is set. + */ + boolean hasTargetDisk(); + + /** + * + * + *
        +   * Required. The target disk.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisk target_disk = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The targetDisk. + */ + com.google.cloud.vmmigration.v1.ComputeEngineDisk getTargetDisk(); + + /** + * + * + *
        +   * Required. The target disk.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisk target_disk = 8 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.vmmigration.v1.ComputeEngineDiskOrBuilder getTargetDiskOrBuilder(); + + /** + * + * + *
        +   * Required. The name of the resource of type TargetProject which represents
        +   * the Compute Engine project in which to create the disk. Should be of the
        +   * form: projects/{project}/locations/global/targetProjects/{target-project}
        +   * 
        + * + * + * string target_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The targetProject. + */ + java.lang.String getTargetProject(); + + /** + * + * + *
        +   * Required. The name of the resource of type TargetProject which represents
        +   * the Compute Engine project in which to create the disk. Should be of the
        +   * form: projects/{project}/locations/global/targetProjects/{target-project}
        +   * 
        + * + * + * string target_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for targetProject. + */ + com.google.protobuf.ByteString getTargetProjectBytes(); + + /** + * + * + *
        +   * Optional. A map of labels to associate with the disk.
        +   * 
        + * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + + /** + * + * + *
        +   * Optional. A map of labels to associate with the disk.
        +   * 
        + * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + + /** + * + * + *
        +   * Optional. A map of labels to associate with the disk.
        +   * 
        + * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
        +   * Optional. A map of labels to associate with the disk.
        +   * 
        + * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
        +   * Optional. A map of labels to associate with the disk.
        +   * 
        + * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
        +   * Optional. The encryption to apply to the disk.
        +   * If the DiskMigrationJob parent Source resource has an encryption, this
        +   * field must be set to the same encryption key.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the encryption field is set. + */ + boolean hasEncryption(); + + /** + * + * + *
        +   * Optional. The encryption to apply to the disk.
        +   * If the DiskMigrationJob parent Source resource has an encryption, this
        +   * field must be set to the same encryption key.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The encryption. + */ + com.google.cloud.vmmigration.v1.Encryption getEncryption(); + + /** + * + * + *
        +   * Optional. The encryption to apply to the disk.
        +   * If the DiskMigrationJob parent Source resource has an encryption, this
        +   * field must be set to the same encryption key.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.vmmigration.v1.EncryptionOrBuilder getEncryptionOrBuilder(); + + com.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails.TargetStorageCase + getTargetStorageCase(); +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DiskMigrationStep.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DiskMigrationStep.java new file mode 100644 index 000000000000..6b2336df9c15 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DiskMigrationStep.java @@ -0,0 +1,2118 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * DiskMigrationStep holds information about the disk migration step progress.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.DiskMigrationStep} + */ +public final class DiskMigrationStep extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.DiskMigrationStep) + DiskMigrationStepOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DiskMigrationStep.newBuilder() to construct. + private DiskMigrationStep(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DiskMigrationStep() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DiskMigrationStep(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DiskMigrationStep_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DiskMigrationStep_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.DiskMigrationStep.class, + com.google.cloud.vmmigration.v1.DiskMigrationStep.Builder.class); + } + + private int bitField0_; + private int stepCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object step_; + + public enum StepCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CREATING_SOURCE_DISK_SNAPSHOT(3), + COPYING_SOURCE_DISK_SNAPSHOT(4), + PROVISIONING_TARGET_DISK(5), + STEP_NOT_SET(0); + private final int value; + + private StepCase(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 StepCase valueOf(int value) { + return forNumber(value); + } + + public static StepCase forNumber(int value) { + switch (value) { + case 3: + return CREATING_SOURCE_DISK_SNAPSHOT; + case 4: + return COPYING_SOURCE_DISK_SNAPSHOT; + case 5: + return PROVISIONING_TARGET_DISK; + case 0: + return STEP_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public StepCase getStepCase() { + return StepCase.forNumber(stepCase_); + } + + public static final int CREATING_SOURCE_DISK_SNAPSHOT_FIELD_NUMBER = 3; + + /** + * + * + *
        +   * Creating source disk snapshot step.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep creating_source_disk_snapshot = 3; + * + * + * @return Whether the creatingSourceDiskSnapshot field is set. + */ + @java.lang.Override + public boolean hasCreatingSourceDiskSnapshot() { + return stepCase_ == 3; + } + + /** + * + * + *
        +   * Creating source disk snapshot step.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep creating_source_disk_snapshot = 3; + * + * + * @return The creatingSourceDiskSnapshot. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep + getCreatingSourceDiskSnapshot() { + if (stepCase_ == 3) { + return (com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep) step_; + } + return com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep.getDefaultInstance(); + } + + /** + * + * + *
        +   * Creating source disk snapshot step.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep creating_source_disk_snapshot = 3; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStepOrBuilder + getCreatingSourceDiskSnapshotOrBuilder() { + if (stepCase_ == 3) { + return (com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep) step_; + } + return com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep.getDefaultInstance(); + } + + public static final int COPYING_SOURCE_DISK_SNAPSHOT_FIELD_NUMBER = 4; + + /** + * + * + *
        +   * Copying source disk snapshot step.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep copying_source_disk_snapshot = 4; + * + * + * @return Whether the copyingSourceDiskSnapshot field is set. + */ + @java.lang.Override + public boolean hasCopyingSourceDiskSnapshot() { + return stepCase_ == 4; + } + + /** + * + * + *
        +   * Copying source disk snapshot step.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep copying_source_disk_snapshot = 4; + * + * + * @return The copyingSourceDiskSnapshot. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep + getCopyingSourceDiskSnapshot() { + if (stepCase_ == 4) { + return (com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep) step_; + } + return com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep.getDefaultInstance(); + } + + /** + * + * + *
        +   * Copying source disk snapshot step.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep copying_source_disk_snapshot = 4; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStepOrBuilder + getCopyingSourceDiskSnapshotOrBuilder() { + if (stepCase_ == 4) { + return (com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep) step_; + } + return com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep.getDefaultInstance(); + } + + public static final int PROVISIONING_TARGET_DISK_FIELD_NUMBER = 5; + + /** + * + * + *
        +   * Creating target disk step.
        +   * 
        + * + * .google.cloud.vmmigration.v1.ProvisioningTargetDiskStep provisioning_target_disk = 5; + * + * + * @return Whether the provisioningTargetDisk field is set. + */ + @java.lang.Override + public boolean hasProvisioningTargetDisk() { + return stepCase_ == 5; + } + + /** + * + * + *
        +   * Creating target disk step.
        +   * 
        + * + * .google.cloud.vmmigration.v1.ProvisioningTargetDiskStep provisioning_target_disk = 5; + * + * + * @return The provisioningTargetDisk. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep getProvisioningTargetDisk() { + if (stepCase_ == 5) { + return (com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep) step_; + } + return com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep.getDefaultInstance(); + } + + /** + * + * + *
        +   * Creating target disk step.
        +   * 
        + * + * .google.cloud.vmmigration.v1.ProvisioningTargetDiskStep provisioning_target_disk = 5; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStepOrBuilder + getProvisioningTargetDiskOrBuilder() { + if (stepCase_ == 5) { + return (com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep) step_; + } + return com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep.getDefaultInstance(); + } + + public static final int START_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp startTime_; + + /** + * + * + *
        +   * Output only. The time the step has started.
        +   * 
        + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
        +   * Output only. The time the step has started.
        +   * 
        + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + /** + * + * + *
        +   * Output only. The time the step has started.
        +   * 
        + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + public static final int END_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp endTime_; + + /** + * + * + *
        +   * Output only. The time the step has ended.
        +   * 
        + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
        +   * Output only. The time the step has ended.
        +   * 
        + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + /** + * + * + *
        +   * Output only. The time the step has ended.
        +   * 
        + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getEndTime()); + } + if (stepCase_ == 3) { + output.writeMessage( + 3, (com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep) step_); + } + if (stepCase_ == 4) { + output.writeMessage(4, (com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep) step_); + } + if (stepCase_ == 5) { + output.writeMessage(5, (com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep) step_); + } + 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, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + } + if (stepCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep) step_); + } + if (stepCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep) step_); + } + if (stepCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep) step_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.vmmigration.v1.DiskMigrationStep)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.DiskMigrationStep other = + (com.google.cloud.vmmigration.v1.DiskMigrationStep) obj; + + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getStepCase().equals(other.getStepCase())) return false; + switch (stepCase_) { + case 3: + if (!getCreatingSourceDiskSnapshot().equals(other.getCreatingSourceDiskSnapshot())) + return false; + break; + case 4: + if (!getCopyingSourceDiskSnapshot().equals(other.getCopyingSourceDiskSnapshot())) + return false; + break; + case 5: + if (!getProvisioningTargetDisk().equals(other.getProvisioningTargetDisk())) 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(); + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + switch (stepCase_) { + case 3: + hash = (37 * hash) + CREATING_SOURCE_DISK_SNAPSHOT_FIELD_NUMBER; + hash = (53 * hash) + getCreatingSourceDiskSnapshot().hashCode(); + break; + case 4: + hash = (37 * hash) + COPYING_SOURCE_DISK_SNAPSHOT_FIELD_NUMBER; + hash = (53 * hash) + getCopyingSourceDiskSnapshot().hashCode(); + break; + case 5: + hash = (37 * hash) + PROVISIONING_TARGET_DISK_FIELD_NUMBER; + hash = (53 * hash) + getProvisioningTargetDisk().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.DiskMigrationStep parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.DiskMigrationStep 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.vmmigration.v1.DiskMigrationStep parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.DiskMigrationStep parseFrom( + 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.vmmigration.v1.DiskMigrationStep parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.DiskMigrationStep parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.DiskMigrationStep parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.DiskMigrationStep 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.vmmigration.v1.DiskMigrationStep parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.DiskMigrationStep 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.vmmigration.v1.DiskMigrationStep parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.DiskMigrationStep 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.vmmigration.v1.DiskMigrationStep prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
        +   * DiskMigrationStep holds information about the disk migration step progress.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.DiskMigrationStep} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.DiskMigrationStep) + com.google.cloud.vmmigration.v1.DiskMigrationStepOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DiskMigrationStep_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DiskMigrationStep_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.DiskMigrationStep.class, + com.google.cloud.vmmigration.v1.DiskMigrationStep.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.DiskMigrationStep.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getStartTimeFieldBuilder(); + getEndTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (creatingSourceDiskSnapshotBuilder_ != null) { + creatingSourceDiskSnapshotBuilder_.clear(); + } + if (copyingSourceDiskSnapshotBuilder_ != null) { + copyingSourceDiskSnapshotBuilder_.clear(); + } + if (provisioningTargetDiskBuilder_ != null) { + provisioningTargetDiskBuilder_.clear(); + } + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + stepCase_ = 0; + step_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DiskMigrationStep_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.DiskMigrationStep getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.DiskMigrationStep.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.DiskMigrationStep build() { + com.google.cloud.vmmigration.v1.DiskMigrationStep result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.DiskMigrationStep buildPartial() { + com.google.cloud.vmmigration.v1.DiskMigrationStep result = + new com.google.cloud.vmmigration.v1.DiskMigrationStep(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vmmigration.v1.DiskMigrationStep result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.vmmigration.v1.DiskMigrationStep result) { + result.stepCase_ = stepCase_; + result.step_ = this.step_; + if (stepCase_ == 3 && creatingSourceDiskSnapshotBuilder_ != null) { + result.step_ = creatingSourceDiskSnapshotBuilder_.build(); + } + if (stepCase_ == 4 && copyingSourceDiskSnapshotBuilder_ != null) { + result.step_ = copyingSourceDiskSnapshotBuilder_.build(); + } + if (stepCase_ == 5 && provisioningTargetDiskBuilder_ != null) { + result.step_ = provisioningTargetDiskBuilder_.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.vmmigration.v1.DiskMigrationStep) { + return mergeFrom((com.google.cloud.vmmigration.v1.DiskMigrationStep) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.DiskMigrationStep other) { + if (other == com.google.cloud.vmmigration.v1.DiskMigrationStep.getDefaultInstance()) + return this; + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + switch (other.getStepCase()) { + case CREATING_SOURCE_DISK_SNAPSHOT: + { + mergeCreatingSourceDiskSnapshot(other.getCreatingSourceDiskSnapshot()); + break; + } + case COPYING_SOURCE_DISK_SNAPSHOT: + { + mergeCopyingSourceDiskSnapshot(other.getCopyingSourceDiskSnapshot()); + break; + } + case PROVISIONING_TARGET_DISK: + { + mergeProvisioningTargetDisk(other.getProvisioningTargetDisk()); + break; + } + case STEP_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 10 + case 18: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 18 + case 26: + { + input.readMessage( + getCreatingSourceDiskSnapshotFieldBuilder().getBuilder(), extensionRegistry); + stepCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage( + getCopyingSourceDiskSnapshotFieldBuilder().getBuilder(), extensionRegistry); + stepCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage( + getProvisioningTargetDiskFieldBuilder().getBuilder(), extensionRegistry); + stepCase_ = 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 stepCase_ = 0; + private java.lang.Object step_; + + public StepCase getStepCase() { + return StepCase.forNumber(stepCase_); + } + + public Builder clearStep() { + stepCase_ = 0; + step_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep, + com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep.Builder, + com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStepOrBuilder> + creatingSourceDiskSnapshotBuilder_; + + /** + * + * + *
        +     * Creating source disk snapshot step.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep creating_source_disk_snapshot = 3; + * + * + * @return Whether the creatingSourceDiskSnapshot field is set. + */ + @java.lang.Override + public boolean hasCreatingSourceDiskSnapshot() { + return stepCase_ == 3; + } + + /** + * + * + *
        +     * Creating source disk snapshot step.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep creating_source_disk_snapshot = 3; + * + * + * @return The creatingSourceDiskSnapshot. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep + getCreatingSourceDiskSnapshot() { + if (creatingSourceDiskSnapshotBuilder_ == null) { + if (stepCase_ == 3) { + return (com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep) step_; + } + return com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep.getDefaultInstance(); + } else { + if (stepCase_ == 3) { + return creatingSourceDiskSnapshotBuilder_.getMessage(); + } + return com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Creating source disk snapshot step.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep creating_source_disk_snapshot = 3; + * + */ + public Builder setCreatingSourceDiskSnapshot( + com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep value) { + if (creatingSourceDiskSnapshotBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + step_ = value; + onChanged(); + } else { + creatingSourceDiskSnapshotBuilder_.setMessage(value); + } + stepCase_ = 3; + return this; + } + + /** + * + * + *
        +     * Creating source disk snapshot step.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep creating_source_disk_snapshot = 3; + * + */ + public Builder setCreatingSourceDiskSnapshot( + com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep.Builder builderForValue) { + if (creatingSourceDiskSnapshotBuilder_ == null) { + step_ = builderForValue.build(); + onChanged(); + } else { + creatingSourceDiskSnapshotBuilder_.setMessage(builderForValue.build()); + } + stepCase_ = 3; + return this; + } + + /** + * + * + *
        +     * Creating source disk snapshot step.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep creating_source_disk_snapshot = 3; + * + */ + public Builder mergeCreatingSourceDiskSnapshot( + com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep value) { + if (creatingSourceDiskSnapshotBuilder_ == null) { + if (stepCase_ == 3 + && step_ + != com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep + .getDefaultInstance()) { + step_ = + com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep.newBuilder( + (com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep) step_) + .mergeFrom(value) + .buildPartial(); + } else { + step_ = value; + } + onChanged(); + } else { + if (stepCase_ == 3) { + creatingSourceDiskSnapshotBuilder_.mergeFrom(value); + } else { + creatingSourceDiskSnapshotBuilder_.setMessage(value); + } + } + stepCase_ = 3; + return this; + } + + /** + * + * + *
        +     * Creating source disk snapshot step.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep creating_source_disk_snapshot = 3; + * + */ + public Builder clearCreatingSourceDiskSnapshot() { + if (creatingSourceDiskSnapshotBuilder_ == null) { + if (stepCase_ == 3) { + stepCase_ = 0; + step_ = null; + onChanged(); + } + } else { + if (stepCase_ == 3) { + stepCase_ = 0; + step_ = null; + } + creatingSourceDiskSnapshotBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Creating source disk snapshot step.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep creating_source_disk_snapshot = 3; + * + */ + public com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep.Builder + getCreatingSourceDiskSnapshotBuilder() { + return getCreatingSourceDiskSnapshotFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Creating source disk snapshot step.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep creating_source_disk_snapshot = 3; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStepOrBuilder + getCreatingSourceDiskSnapshotOrBuilder() { + if ((stepCase_ == 3) && (creatingSourceDiskSnapshotBuilder_ != null)) { + return creatingSourceDiskSnapshotBuilder_.getMessageOrBuilder(); + } else { + if (stepCase_ == 3) { + return (com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep) step_; + } + return com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Creating source disk snapshot step.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep creating_source_disk_snapshot = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep, + com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep.Builder, + com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStepOrBuilder> + getCreatingSourceDiskSnapshotFieldBuilder() { + if (creatingSourceDiskSnapshotBuilder_ == null) { + if (!(stepCase_ == 3)) { + step_ = + com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep.getDefaultInstance(); + } + creatingSourceDiskSnapshotBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep, + com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep.Builder, + com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStepOrBuilder>( + (com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep) step_, + getParentForChildren(), + isClean()); + step_ = null; + } + stepCase_ = 3; + onChanged(); + return creatingSourceDiskSnapshotBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep, + com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep.Builder, + com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStepOrBuilder> + copyingSourceDiskSnapshotBuilder_; + + /** + * + * + *
        +     * Copying source disk snapshot step.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep copying_source_disk_snapshot = 4; + * + * + * @return Whether the copyingSourceDiskSnapshot field is set. + */ + @java.lang.Override + public boolean hasCopyingSourceDiskSnapshot() { + return stepCase_ == 4; + } + + /** + * + * + *
        +     * Copying source disk snapshot step.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep copying_source_disk_snapshot = 4; + * + * + * @return The copyingSourceDiskSnapshot. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep + getCopyingSourceDiskSnapshot() { + if (copyingSourceDiskSnapshotBuilder_ == null) { + if (stepCase_ == 4) { + return (com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep) step_; + } + return com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep.getDefaultInstance(); + } else { + if (stepCase_ == 4) { + return copyingSourceDiskSnapshotBuilder_.getMessage(); + } + return com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Copying source disk snapshot step.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep copying_source_disk_snapshot = 4; + * + */ + public Builder setCopyingSourceDiskSnapshot( + com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep value) { + if (copyingSourceDiskSnapshotBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + step_ = value; + onChanged(); + } else { + copyingSourceDiskSnapshotBuilder_.setMessage(value); + } + stepCase_ = 4; + return this; + } + + /** + * + * + *
        +     * Copying source disk snapshot step.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep copying_source_disk_snapshot = 4; + * + */ + public Builder setCopyingSourceDiskSnapshot( + com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep.Builder builderForValue) { + if (copyingSourceDiskSnapshotBuilder_ == null) { + step_ = builderForValue.build(); + onChanged(); + } else { + copyingSourceDiskSnapshotBuilder_.setMessage(builderForValue.build()); + } + stepCase_ = 4; + return this; + } + + /** + * + * + *
        +     * Copying source disk snapshot step.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep copying_source_disk_snapshot = 4; + * + */ + public Builder mergeCopyingSourceDiskSnapshot( + com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep value) { + if (copyingSourceDiskSnapshotBuilder_ == null) { + if (stepCase_ == 4 + && step_ + != com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep + .getDefaultInstance()) { + step_ = + com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep.newBuilder( + (com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep) step_) + .mergeFrom(value) + .buildPartial(); + } else { + step_ = value; + } + onChanged(); + } else { + if (stepCase_ == 4) { + copyingSourceDiskSnapshotBuilder_.mergeFrom(value); + } else { + copyingSourceDiskSnapshotBuilder_.setMessage(value); + } + } + stepCase_ = 4; + return this; + } + + /** + * + * + *
        +     * Copying source disk snapshot step.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep copying_source_disk_snapshot = 4; + * + */ + public Builder clearCopyingSourceDiskSnapshot() { + if (copyingSourceDiskSnapshotBuilder_ == null) { + if (stepCase_ == 4) { + stepCase_ = 0; + step_ = null; + onChanged(); + } + } else { + if (stepCase_ == 4) { + stepCase_ = 0; + step_ = null; + } + copyingSourceDiskSnapshotBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Copying source disk snapshot step.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep copying_source_disk_snapshot = 4; + * + */ + public com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep.Builder + getCopyingSourceDiskSnapshotBuilder() { + return getCopyingSourceDiskSnapshotFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Copying source disk snapshot step.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep copying_source_disk_snapshot = 4; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStepOrBuilder + getCopyingSourceDiskSnapshotOrBuilder() { + if ((stepCase_ == 4) && (copyingSourceDiskSnapshotBuilder_ != null)) { + return copyingSourceDiskSnapshotBuilder_.getMessageOrBuilder(); + } else { + if (stepCase_ == 4) { + return (com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep) step_; + } + return com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Copying source disk snapshot step.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep copying_source_disk_snapshot = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep, + com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep.Builder, + com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStepOrBuilder> + getCopyingSourceDiskSnapshotFieldBuilder() { + if (copyingSourceDiskSnapshotBuilder_ == null) { + if (!(stepCase_ == 4)) { + step_ = + com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep.getDefaultInstance(); + } + copyingSourceDiskSnapshotBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep, + com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep.Builder, + com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStepOrBuilder>( + (com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep) step_, + getParentForChildren(), + isClean()); + step_ = null; + } + stepCase_ = 4; + onChanged(); + return copyingSourceDiskSnapshotBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep, + com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep.Builder, + com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStepOrBuilder> + provisioningTargetDiskBuilder_; + + /** + * + * + *
        +     * Creating target disk step.
        +     * 
        + * + * .google.cloud.vmmigration.v1.ProvisioningTargetDiskStep provisioning_target_disk = 5; + * + * + * @return Whether the provisioningTargetDisk field is set. + */ + @java.lang.Override + public boolean hasProvisioningTargetDisk() { + return stepCase_ == 5; + } + + /** + * + * + *
        +     * Creating target disk step.
        +     * 
        + * + * .google.cloud.vmmigration.v1.ProvisioningTargetDiskStep provisioning_target_disk = 5; + * + * + * @return The provisioningTargetDisk. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep getProvisioningTargetDisk() { + if (provisioningTargetDiskBuilder_ == null) { + if (stepCase_ == 5) { + return (com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep) step_; + } + return com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep.getDefaultInstance(); + } else { + if (stepCase_ == 5) { + return provisioningTargetDiskBuilder_.getMessage(); + } + return com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Creating target disk step.
        +     * 
        + * + * .google.cloud.vmmigration.v1.ProvisioningTargetDiskStep provisioning_target_disk = 5; + * + */ + public Builder setProvisioningTargetDisk( + com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep value) { + if (provisioningTargetDiskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + step_ = value; + onChanged(); + } else { + provisioningTargetDiskBuilder_.setMessage(value); + } + stepCase_ = 5; + return this; + } + + /** + * + * + *
        +     * Creating target disk step.
        +     * 
        + * + * .google.cloud.vmmigration.v1.ProvisioningTargetDiskStep provisioning_target_disk = 5; + * + */ + public Builder setProvisioningTargetDisk( + com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep.Builder builderForValue) { + if (provisioningTargetDiskBuilder_ == null) { + step_ = builderForValue.build(); + onChanged(); + } else { + provisioningTargetDiskBuilder_.setMessage(builderForValue.build()); + } + stepCase_ = 5; + return this; + } + + /** + * + * + *
        +     * Creating target disk step.
        +     * 
        + * + * .google.cloud.vmmigration.v1.ProvisioningTargetDiskStep provisioning_target_disk = 5; + * + */ + public Builder mergeProvisioningTargetDisk( + com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep value) { + if (provisioningTargetDiskBuilder_ == null) { + if (stepCase_ == 5 + && step_ + != com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep + .getDefaultInstance()) { + step_ = + com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep.newBuilder( + (com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep) step_) + .mergeFrom(value) + .buildPartial(); + } else { + step_ = value; + } + onChanged(); + } else { + if (stepCase_ == 5) { + provisioningTargetDiskBuilder_.mergeFrom(value); + } else { + provisioningTargetDiskBuilder_.setMessage(value); + } + } + stepCase_ = 5; + return this; + } + + /** + * + * + *
        +     * Creating target disk step.
        +     * 
        + * + * .google.cloud.vmmigration.v1.ProvisioningTargetDiskStep provisioning_target_disk = 5; + * + */ + public Builder clearProvisioningTargetDisk() { + if (provisioningTargetDiskBuilder_ == null) { + if (stepCase_ == 5) { + stepCase_ = 0; + step_ = null; + onChanged(); + } + } else { + if (stepCase_ == 5) { + stepCase_ = 0; + step_ = null; + } + provisioningTargetDiskBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Creating target disk step.
        +     * 
        + * + * .google.cloud.vmmigration.v1.ProvisioningTargetDiskStep provisioning_target_disk = 5; + * + */ + public com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep.Builder + getProvisioningTargetDiskBuilder() { + return getProvisioningTargetDiskFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Creating target disk step.
        +     * 
        + * + * .google.cloud.vmmigration.v1.ProvisioningTargetDiskStep provisioning_target_disk = 5; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStepOrBuilder + getProvisioningTargetDiskOrBuilder() { + if ((stepCase_ == 5) && (provisioningTargetDiskBuilder_ != null)) { + return provisioningTargetDiskBuilder_.getMessageOrBuilder(); + } else { + if (stepCase_ == 5) { + return (com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep) step_; + } + return com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Creating target disk step.
        +     * 
        + * + * .google.cloud.vmmigration.v1.ProvisioningTargetDiskStep provisioning_target_disk = 5; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep, + com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep.Builder, + com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStepOrBuilder> + getProvisioningTargetDiskFieldBuilder() { + if (provisioningTargetDiskBuilder_ == null) { + if (!(stepCase_ == 5)) { + step_ = com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep.getDefaultInstance(); + } + provisioningTargetDiskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep, + com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep.Builder, + com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStepOrBuilder>( + (com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep) step_, + getParentForChildren(), + isClean()); + step_ = null; + } + stepCase_ = 5; + onChanged(); + return provisioningTargetDiskBuilder_; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + + /** + * + * + *
        +     * Output only. The time the step has started.
        +     * 
        + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
        +     * Output only. The time the step has started.
        +     * 
        + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
        +     * Output only. The time the step has started.
        +     * 
        + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The time the step has started.
        +     * 
        + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The time the step has started.
        +     * 
        + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Output only. The time the step has started.
        +     * 
        + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000008); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The time the step has started.
        +     * 
        + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Output only. The time the step has started.
        +     * 
        + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + + /** + * + * + *
        +     * Output only. The time the step has started.
        +     * 
        + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + + /** + * + * + *
        +     * Output only. The time the step has ended.
        +     * 
        + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
        +     * Output only. The time the step has ended.
        +     * 
        + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
        +     * Output only. The time the step has ended.
        +     * 
        + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The time the step has ended.
        +     * 
        + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The time the step has ended.
        +     * 
        + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Output only. The time the step has ended.
        +     * 
        + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000010); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The time the step has ended.
        +     * 
        + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Output only. The time the step has ended.
        +     * 
        + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + + /** + * + * + *
        +     * Output only. The time the step has ended.
        +     * 
        + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + @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.vmmigration.v1.DiskMigrationStep) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.DiskMigrationStep) + private static final com.google.cloud.vmmigration.v1.DiskMigrationStep DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.DiskMigrationStep(); + } + + public static com.google.cloud.vmmigration.v1.DiskMigrationStep getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DiskMigrationStep parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.DiskMigrationStep getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DiskMigrationStepOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DiskMigrationStepOrBuilder.java new file mode 100644 index 000000000000..333def9bdb8f --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DiskMigrationStepOrBuilder.java @@ -0,0 +1,237 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface DiskMigrationStepOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.DiskMigrationStep) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Creating source disk snapshot step.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep creating_source_disk_snapshot = 3; + * + * + * @return Whether the creatingSourceDiskSnapshot field is set. + */ + boolean hasCreatingSourceDiskSnapshot(); + + /** + * + * + *
        +   * Creating source disk snapshot step.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep creating_source_disk_snapshot = 3; + * + * + * @return The creatingSourceDiskSnapshot. + */ + com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep getCreatingSourceDiskSnapshot(); + + /** + * + * + *
        +   * Creating source disk snapshot step.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStep creating_source_disk_snapshot = 3; + * + */ + com.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStepOrBuilder + getCreatingSourceDiskSnapshotOrBuilder(); + + /** + * + * + *
        +   * Copying source disk snapshot step.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep copying_source_disk_snapshot = 4; + * + * + * @return Whether the copyingSourceDiskSnapshot field is set. + */ + boolean hasCopyingSourceDiskSnapshot(); + + /** + * + * + *
        +   * Copying source disk snapshot step.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep copying_source_disk_snapshot = 4; + * + * + * @return The copyingSourceDiskSnapshot. + */ + com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep getCopyingSourceDiskSnapshot(); + + /** + * + * + *
        +   * Copying source disk snapshot step.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStep copying_source_disk_snapshot = 4; + * + */ + com.google.cloud.vmmigration.v1.CopyingSourceDiskSnapshotStepOrBuilder + getCopyingSourceDiskSnapshotOrBuilder(); + + /** + * + * + *
        +   * Creating target disk step.
        +   * 
        + * + * .google.cloud.vmmigration.v1.ProvisioningTargetDiskStep provisioning_target_disk = 5; + * + * + * @return Whether the provisioningTargetDisk field is set. + */ + boolean hasProvisioningTargetDisk(); + + /** + * + * + *
        +   * Creating target disk step.
        +   * 
        + * + * .google.cloud.vmmigration.v1.ProvisioningTargetDiskStep provisioning_target_disk = 5; + * + * + * @return The provisioningTargetDisk. + */ + com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep getProvisioningTargetDisk(); + + /** + * + * + *
        +   * Creating target disk step.
        +   * 
        + * + * .google.cloud.vmmigration.v1.ProvisioningTargetDiskStep provisioning_target_disk = 5; + * + */ + com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStepOrBuilder + getProvisioningTargetDiskOrBuilder(); + + /** + * + * + *
        +   * Output only. The time the step has started.
        +   * 
        + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + + /** + * + * + *
        +   * Output only. The time the step has started.
        +   * 
        + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + + /** + * + * + *
        +   * Output only. The time the step has started.
        +   * 
        + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
        +   * Output only. The time the step has ended.
        +   * 
        + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + + /** + * + * + *
        +   * Output only. The time the step has ended.
        +   * 
        + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + + /** + * + * + *
        +   * Output only. The time the step has ended.
        +   * 
        + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + com.google.cloud.vmmigration.v1.DiskMigrationStep.StepCase getStepCase(); +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DisksMigrationDisksTargetDefaults.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DisksMigrationDisksTargetDefaults.java new file mode 100644 index 000000000000..6d0a4b281c3a --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DisksMigrationDisksTargetDefaults.java @@ -0,0 +1,444 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * Details for a disk only migration.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults} + */ +public final class DisksMigrationDisksTargetDefaults extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults) + DisksMigrationDisksTargetDefaultsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DisksMigrationDisksTargetDefaults.newBuilder() to construct. + private DisksMigrationDisksTargetDefaults( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DisksMigrationDisksTargetDefaults() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DisksMigrationDisksTargetDefaults(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DisksMigrationDisksTargetDefaults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DisksMigrationDisksTargetDefaults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults.class, + com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults.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.vmmigration.v1.DisksMigrationDisksTargetDefaults)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults other = + (com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults) 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.vmmigration.v1.DisksMigrationDisksTargetDefaults parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults 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.vmmigration.v1.DisksMigrationDisksTargetDefaults parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults parseFrom( + 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.vmmigration.v1.DisksMigrationDisksTargetDefaults parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults 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.vmmigration.v1.DisksMigrationDisksTargetDefaults + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults + 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.vmmigration.v1.DisksMigrationDisksTargetDefaults parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults 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.vmmigration.v1.DisksMigrationDisksTargetDefaults prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 for a disk only migration.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults) + com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaultsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DisksMigrationDisksTargetDefaults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DisksMigrationDisksTargetDefaults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults.class, + com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults.Builder.class); + } + + // Construct using + // com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults.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.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DisksMigrationDisksTargetDefaults_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults + getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults build() { + com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults buildPartial() { + com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults result = + new com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults(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.vmmigration.v1.DisksMigrationDisksTargetDefaults) { + return mergeFrom((com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults other) { + if (other + == com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults.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.vmmigration.v1.DisksMigrationDisksTargetDefaults) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults) + private static final com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults(); + } + + public static com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DisksMigrationDisksTargetDefaults parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.DisksMigrationDisksTargetDefaults + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DisksMigrationDisksTargetDefaultsOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DisksMigrationDisksTargetDefaultsOrBuilder.java new file mode 100644 index 000000000000..4cc96cef3e76 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DisksMigrationDisksTargetDefaultsOrBuilder.java @@ -0,0 +1,25 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface DisksMigrationDisksTargetDefaultsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.DisksMigrationDisksTargetDefaults) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DisksMigrationDisksTargetDetails.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DisksMigrationDisksTargetDetails.java new file mode 100644 index 000000000000..c761bec6863f --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DisksMigrationDisksTargetDetails.java @@ -0,0 +1,442 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * Details for a disks-only migration.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails} + */ +public final class DisksMigrationDisksTargetDetails extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails) + DisksMigrationDisksTargetDetailsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DisksMigrationDisksTargetDetails.newBuilder() to construct. + private DisksMigrationDisksTargetDetails( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DisksMigrationDisksTargetDetails() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DisksMigrationDisksTargetDetails(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DisksMigrationDisksTargetDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DisksMigrationDisksTargetDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails.class, + com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails.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.vmmigration.v1.DisksMigrationDisksTargetDetails)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails other = + (com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails) 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.vmmigration.v1.DisksMigrationDisksTargetDetails parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails 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.vmmigration.v1.DisksMigrationDisksTargetDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails parseFrom( + 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.vmmigration.v1.DisksMigrationDisksTargetDetails parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails 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.vmmigration.v1.DisksMigrationDisksTargetDetails parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails 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.vmmigration.v1.DisksMigrationDisksTargetDetails parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails 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.vmmigration.v1.DisksMigrationDisksTargetDetails prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 for a disks-only migration.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails) + com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DisksMigrationDisksTargetDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DisksMigrationDisksTargetDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails.class, + com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails.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.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DisksMigrationDisksTargetDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails + getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails build() { + com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails buildPartial() { + com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails result = + new com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails(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.vmmigration.v1.DisksMigrationDisksTargetDetails) { + return mergeFrom((com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails other) { + if (other + == com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails.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.vmmigration.v1.DisksMigrationDisksTargetDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails) + private static final com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails(); + } + + public static com.google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DisksMigrationDisksTargetDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.DisksMigrationDisksTargetDetails + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DisksMigrationDisksTargetDetailsOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DisksMigrationDisksTargetDetailsOrBuilder.java new file mode 100644 index 000000000000..2975b6c801fc --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DisksMigrationDisksTargetDetailsOrBuilder.java @@ -0,0 +1,25 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface DisksMigrationDisksTargetDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.DisksMigrationDisksTargetDetails) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DisksMigrationVmTargetDefaults.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DisksMigrationVmTargetDefaults.java new file mode 100644 index 000000000000..719e1e56c72c --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DisksMigrationVmTargetDefaults.java @@ -0,0 +1,4498 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * Details for creation of a VM that migrated data disks will be attached to.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults} + */ +public final class DisksMigrationVmTargetDefaults extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults) + DisksMigrationVmTargetDefaultsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DisksMigrationVmTargetDefaults.newBuilder() to construct. + private DisksMigrationVmTargetDefaults( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DisksMigrationVmTargetDefaults() { + vmName_ = ""; + machineTypeSeries_ = ""; + machineType_ = ""; + networkTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); + networkInterfaces_ = java.util.Collections.emptyList(); + serviceAccount_ = ""; + additionalLicenses_ = com.google.protobuf.LazyStringArrayList.emptyList(); + hostname_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DisksMigrationVmTargetDefaults(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DisksMigrationVmTargetDefaults_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 10: + return internalGetMetadata(); + case 13: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DisksMigrationVmTargetDefaults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults.class, + com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults.Builder.class); + } + + private int bitField0_; + public static final int VM_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object vmName_ = ""; + + /** + * + * + *
        +   * Required. The name of the VM to create.
        +   * 
        + * + * string vm_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The vmName. + */ + @java.lang.Override + public java.lang.String getVmName() { + java.lang.Object ref = vmName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vmName_ = s; + return s; + } + } + + /** + * + * + *
        +   * Required. The name of the VM to create.
        +   * 
        + * + * string vm_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for vmName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVmNameBytes() { + java.lang.Object ref = vmName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vmName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MACHINE_TYPE_SERIES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object machineTypeSeries_ = ""; + + /** + * + * + *
        +   * Optional. The machine type series to create the VM with.
        +   * For presentation only.
        +   * 
        + * + * string machine_type_series = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The machineTypeSeries. + */ + @java.lang.Override + public java.lang.String getMachineTypeSeries() { + java.lang.Object ref = machineTypeSeries_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + machineTypeSeries_ = s; + return s; + } + } + + /** + * + * + *
        +   * Optional. The machine type series to create the VM with.
        +   * For presentation only.
        +   * 
        + * + * string machine_type_series = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for machineTypeSeries. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMachineTypeSeriesBytes() { + java.lang.Object ref = machineTypeSeries_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + machineTypeSeries_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MACHINE_TYPE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object machineType_ = ""; + + /** + * + * + *
        +   * Required. The machine type to create the VM with.
        +   * 
        + * + * string machine_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
        +   * Required. The machine type to create the VM with.
        +   * 
        + * + * string machine_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + public static final int NETWORK_TAGS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList networkTags_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
        +   * Optional. A list of network tags to associate with the VM.
        +   * 
        + * + * repeated string network_tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the networkTags. + */ + public com.google.protobuf.ProtocolStringList getNetworkTagsList() { + return networkTags_; + } + + /** + * + * + *
        +   * Optional. A list of network tags to associate with the VM.
        +   * 
        + * + * repeated string network_tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of networkTags. + */ + public int getNetworkTagsCount() { + return networkTags_.size(); + } + + /** + * + * + *
        +   * Optional. A list of network tags to associate with the VM.
        +   * 
        + * + * repeated string network_tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The networkTags at the given index. + */ + public java.lang.String getNetworkTags(int index) { + return networkTags_.get(index); + } + + /** + * + * + *
        +   * Optional. A list of network tags to associate with the VM.
        +   * 
        + * + * repeated string network_tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the networkTags at the given index. + */ + public com.google.protobuf.ByteString getNetworkTagsBytes(int index) { + return networkTags_.getByteString(index); + } + + public static final int NETWORK_INTERFACES_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private java.util.List networkInterfaces_; + + /** + * + * + *
        +   * Optional. NICs to attach to the VM.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getNetworkInterfacesList() { + return networkInterfaces_; + } + + /** + * + * + *
        +   * Optional. NICs to attach to the VM.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getNetworkInterfacesOrBuilderList() { + return networkInterfaces_; + } + + /** + * + * + *
        +   * Optional. NICs to attach to the VM.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getNetworkInterfacesCount() { + return networkInterfaces_.size(); + } + + /** + * + * + *
        +   * Optional. NICs to attach to the VM.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.NetworkInterface getNetworkInterfaces(int index) { + return networkInterfaces_.get(index); + } + + /** + * + * + *
        +   * Optional. NICs to attach to the VM.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.NetworkInterfaceOrBuilder getNetworkInterfacesOrBuilder( + int index) { + return networkInterfaces_.get(index); + } + + public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAccount_ = ""; + + /** + * + * + *
        +   * Optional. The service account to associate the VM with.
        +   * 
        + * + * string service_account = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The serviceAccount. + */ + @java.lang.Override + public java.lang.String getServiceAccount() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccount_ = s; + return s; + } + } + + /** + * + * + *
        +   * Optional. The service account to associate the VM with.
        +   * 
        + * + * string service_account = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for serviceAccount. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceAccountBytes() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMPUTE_SCHEDULING_FIELD_NUMBER = 7; + private com.google.cloud.vmmigration.v1.ComputeScheduling computeScheduling_; + + /** + * + * + *
        +   * Optional. Compute instance scheduling information (if empty default is
        +   * used).
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeScheduling compute_scheduling = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the computeScheduling field is set. + */ + @java.lang.Override + public boolean hasComputeScheduling() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
        +   * Optional. Compute instance scheduling information (if empty default is
        +   * used).
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeScheduling compute_scheduling = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The computeScheduling. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ComputeScheduling getComputeScheduling() { + return computeScheduling_ == null + ? com.google.cloud.vmmigration.v1.ComputeScheduling.getDefaultInstance() + : computeScheduling_; + } + + /** + * + * + *
        +   * Optional. Compute instance scheduling information (if empty default is
        +   * used).
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeScheduling compute_scheduling = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ComputeSchedulingOrBuilder + getComputeSchedulingOrBuilder() { + return computeScheduling_ == null + ? com.google.cloud.vmmigration.v1.ComputeScheduling.getDefaultInstance() + : computeScheduling_; + } + + public static final int SECURE_BOOT_FIELD_NUMBER = 8; + private boolean secureBoot_ = false; + + /** + * + * + *
        +   * Optional. Defines whether the instance has Secure Boot enabled.
        +   * This can be set to true only if the VM boot option is EFI.
        +   * 
        + * + * bool secure_boot = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The secureBoot. + */ + @java.lang.Override + public boolean getSecureBoot() { + return secureBoot_; + } + + public static final int ENABLE_VTPM_FIELD_NUMBER = 16; + private boolean enableVtpm_ = false; + + /** + * + * + *
        +   * Optional. Defines whether the instance has vTPM enabled.
        +   * 
        + * + * bool enable_vtpm = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableVtpm. + */ + @java.lang.Override + public boolean getEnableVtpm() { + return enableVtpm_; + } + + public static final int ENABLE_INTEGRITY_MONITORING_FIELD_NUMBER = 17; + private boolean enableIntegrityMonitoring_ = false; + + /** + * + * + *
        +   * Optional. Defines whether the instance has integrity monitoring enabled.
        +   * 
        + * + * bool enable_integrity_monitoring = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableIntegrityMonitoring. + */ + @java.lang.Override + public boolean getEnableIntegrityMonitoring() { + return enableIntegrityMonitoring_; + } + + public static final int METADATA_FIELD_NUMBER = 10; + + private static final class MetadataDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DisksMigrationVmTargetDefaults_MetadataEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField metadata_; + + private com.google.protobuf.MapField internalGetMetadata() { + if (metadata_ == null) { + return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); + } + return metadata_; + } + + public int getMetadataCount() { + return internalGetMetadata().getMap().size(); + } + + /** + * + * + *
        +   * Optional. The metadata key/value pairs to assign to the VM.
        +   * 
        + * + * map<string, string> metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsMetadata(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetMetadata().getMap().containsKey(key); + } + + /** Use {@link #getMetadataMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getMetadata() { + return getMetadataMap(); + } + + /** + * + * + *
        +   * Optional. The metadata key/value pairs to assign to the VM.
        +   * 
        + * + * map<string, string> metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getMetadataMap() { + return internalGetMetadata().getMap(); + } + + /** + * + * + *
        +   * Optional. The metadata key/value pairs to assign to the VM.
        +   * 
        + * + * map<string, string> metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getMetadataOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetMetadata().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
        +   * Optional. The metadata key/value pairs to assign to the VM.
        +   * 
        + * + * map<string, string> metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getMetadataOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetMetadata().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int ADDITIONAL_LICENSES_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList additionalLicenses_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
        +   * Optional. Additional licenses to assign to the VM.
        +   * 
        + * + * repeated string additional_licenses = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the additionalLicenses. + */ + public com.google.protobuf.ProtocolStringList getAdditionalLicensesList() { + return additionalLicenses_; + } + + /** + * + * + *
        +   * Optional. Additional licenses to assign to the VM.
        +   * 
        + * + * repeated string additional_licenses = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of additionalLicenses. + */ + public int getAdditionalLicensesCount() { + return additionalLicenses_.size(); + } + + /** + * + * + *
        +   * Optional. Additional licenses to assign to the VM.
        +   * 
        + * + * repeated string additional_licenses = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The additionalLicenses at the given index. + */ + public java.lang.String getAdditionalLicenses(int index) { + return additionalLicenses_.get(index); + } + + /** + * + * + *
        +   * Optional. Additional licenses to assign to the VM.
        +   * 
        + * + * repeated string additional_licenses = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the additionalLicenses at the given index. + */ + public com.google.protobuf.ByteString getAdditionalLicensesBytes(int index) { + return additionalLicenses_.getByteString(index); + } + + public static final int HOSTNAME_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private volatile java.lang.Object hostname_ = ""; + + /** + * + * + *
        +   * Optional. The hostname to assign to the VM.
        +   * 
        + * + * string hostname = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The hostname. + */ + @java.lang.Override + public java.lang.String getHostname() { + java.lang.Object ref = hostname_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hostname_ = s; + return s; + } + } + + /** + * + * + *
        +   * Optional. The hostname to assign to the VM.
        +   * 
        + * + * string hostname = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for hostname. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHostnameBytes() { + java.lang.Object ref = hostname_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + hostname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LABELS_FIELD_NUMBER = 13; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DisksMigrationVmTargetDefaults_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
        +   * Optional. A map of labels to associate with the VM.
        +   * 
        + * + * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
        +   * Optional. A map of labels to associate with the VM.
        +   * 
        + * + * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
        +   * Optional. A map of labels to associate with the VM.
        +   * 
        + * + * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
        +   * Optional. A map of labels to associate with the VM.
        +   * 
        + * + * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int BOOT_DISK_DEFAULTS_FIELD_NUMBER = 14; + private com.google.cloud.vmmigration.v1.BootDiskDefaults bootDiskDefaults_; + + /** + * + * + *
        +   * Optional. Details of the boot disk of the VM.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.BootDiskDefaults boot_disk_defaults = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the bootDiskDefaults field is set. + */ + @java.lang.Override + public boolean hasBootDiskDefaults() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
        +   * Optional. Details of the boot disk of the VM.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.BootDiskDefaults boot_disk_defaults = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bootDiskDefaults. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.BootDiskDefaults getBootDiskDefaults() { + return bootDiskDefaults_ == null + ? com.google.cloud.vmmigration.v1.BootDiskDefaults.getDefaultInstance() + : bootDiskDefaults_; + } + + /** + * + * + *
        +   * Optional. Details of the boot disk of the VM.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.BootDiskDefaults boot_disk_defaults = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.BootDiskDefaultsOrBuilder getBootDiskDefaultsOrBuilder() { + return bootDiskDefaults_ == null + ? com.google.cloud.vmmigration.v1.BootDiskDefaults.getDefaultInstance() + : bootDiskDefaults_; + } + + public static final int ENCRYPTION_FIELD_NUMBER = 15; + private com.google.cloud.vmmigration.v1.Encryption encryption_; + + /** + * + * + *
        +   * Optional. The encryption to apply to the VM.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the encryption field is set. + */ + @java.lang.Override + public boolean hasEncryption() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
        +   * Optional. The encryption to apply to the VM.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The encryption. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.Encryption getEncryption() { + return encryption_ == null + ? com.google.cloud.vmmigration.v1.Encryption.getDefaultInstance() + : encryption_; + } + + /** + * + * + *
        +   * Optional. The encryption to apply to the VM.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.EncryptionOrBuilder getEncryptionOrBuilder() { + return encryption_ == null + ? com.google.cloud.vmmigration.v1.Encryption.getDefaultInstance() + : encryption_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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(vmName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, vmName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineTypeSeries_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, machineTypeSeries_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, machineType_); + } + for (int i = 0; i < networkTags_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, networkTags_.getRaw(i)); + } + for (int i = 0; i < networkInterfaces_.size(); i++) { + output.writeMessage(5, networkInterfaces_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, serviceAccount_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(7, getComputeScheduling()); + } + if (secureBoot_ != false) { + output.writeBool(8, secureBoot_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 10); + for (int i = 0; i < additionalLicenses_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, additionalLicenses_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, hostname_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 13); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(14, getBootDiskDefaults()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(15, getEncryption()); + } + if (enableVtpm_ != false) { + output.writeBool(16, enableVtpm_); + } + if (enableIntegrityMonitoring_ != false) { + output.writeBool(17, enableIntegrityMonitoring_); + } + 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(vmName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, vmName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineTypeSeries_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, machineTypeSeries_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, machineType_); + } + { + int dataSize = 0; + for (int i = 0; i < networkTags_.size(); i++) { + dataSize += computeStringSizeNoTag(networkTags_.getRaw(i)); + } + size += dataSize; + size += 1 * getNetworkTagsList().size(); + } + for (int i = 0; i < networkInterfaces_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(5, networkInterfaces_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, serviceAccount_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getComputeScheduling()); + } + if (secureBoot_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, secureBoot_); + } + for (java.util.Map.Entry entry : + internalGetMetadata().getMap().entrySet()) { + com.google.protobuf.MapEntry metadata__ = + MetadataDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, metadata__); + } + { + int dataSize = 0; + for (int i = 0; i < additionalLicenses_.size(); i++) { + dataSize += computeStringSizeNoTag(additionalLicenses_.getRaw(i)); + } + size += dataSize; + size += 1 * getAdditionalLicensesList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, hostname_); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, labels__); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getBootDiskDefaults()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getEncryption()); + } + if (enableVtpm_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(16, enableVtpm_); + } + if (enableIntegrityMonitoring_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(17, enableIntegrityMonitoring_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.vmmigration.v1.DisksMigrationVmTargetDefaults)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults other = + (com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults) obj; + + if (!getVmName().equals(other.getVmName())) return false; + if (!getMachineTypeSeries().equals(other.getMachineTypeSeries())) return false; + if (!getMachineType().equals(other.getMachineType())) return false; + if (!getNetworkTagsList().equals(other.getNetworkTagsList())) return false; + if (!getNetworkInterfacesList().equals(other.getNetworkInterfacesList())) return false; + if (!getServiceAccount().equals(other.getServiceAccount())) return false; + if (hasComputeScheduling() != other.hasComputeScheduling()) return false; + if (hasComputeScheduling()) { + if (!getComputeScheduling().equals(other.getComputeScheduling())) return false; + } + if (getSecureBoot() != other.getSecureBoot()) return false; + if (getEnableVtpm() != other.getEnableVtpm()) return false; + if (getEnableIntegrityMonitoring() != other.getEnableIntegrityMonitoring()) return false; + if (!internalGetMetadata().equals(other.internalGetMetadata())) return false; + if (!getAdditionalLicensesList().equals(other.getAdditionalLicensesList())) return false; + if (!getHostname().equals(other.getHostname())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (hasBootDiskDefaults() != other.hasBootDiskDefaults()) return false; + if (hasBootDiskDefaults()) { + if (!getBootDiskDefaults().equals(other.getBootDiskDefaults())) return false; + } + if (hasEncryption() != other.hasEncryption()) return false; + if (hasEncryption()) { + if (!getEncryption().equals(other.getEncryption())) 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) + VM_NAME_FIELD_NUMBER; + hash = (53 * hash) + getVmName().hashCode(); + hash = (37 * hash) + MACHINE_TYPE_SERIES_FIELD_NUMBER; + hash = (53 * hash) + getMachineTypeSeries().hashCode(); + hash = (37 * hash) + MACHINE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getMachineType().hashCode(); + if (getNetworkTagsCount() > 0) { + hash = (37 * hash) + NETWORK_TAGS_FIELD_NUMBER; + hash = (53 * hash) + getNetworkTagsList().hashCode(); + } + if (getNetworkInterfacesCount() > 0) { + hash = (37 * hash) + NETWORK_INTERFACES_FIELD_NUMBER; + hash = (53 * hash) + getNetworkInterfacesList().hashCode(); + } + hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccount().hashCode(); + if (hasComputeScheduling()) { + hash = (37 * hash) + COMPUTE_SCHEDULING_FIELD_NUMBER; + hash = (53 * hash) + getComputeScheduling().hashCode(); + } + hash = (37 * hash) + SECURE_BOOT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSecureBoot()); + hash = (37 * hash) + ENABLE_VTPM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableVtpm()); + hash = (37 * hash) + ENABLE_INTEGRITY_MONITORING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableIntegrityMonitoring()); + if (!internalGetMetadata().getMap().isEmpty()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + internalGetMetadata().hashCode(); + } + if (getAdditionalLicensesCount() > 0) { + hash = (37 * hash) + ADDITIONAL_LICENSES_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalLicensesList().hashCode(); + } + hash = (37 * hash) + HOSTNAME_FIELD_NUMBER; + hash = (53 * hash) + getHostname().hashCode(); + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + if (hasBootDiskDefaults()) { + hash = (37 * hash) + BOOT_DISK_DEFAULTS_FIELD_NUMBER; + hash = (53 * hash) + getBootDiskDefaults().hashCode(); + } + if (hasEncryption()) { + hash = (37 * hash) + ENCRYPTION_FIELD_NUMBER; + hash = (53 * hash) + getEncryption().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults 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.vmmigration.v1.DisksMigrationVmTargetDefaults parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults parseFrom( + 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.vmmigration.v1.DisksMigrationVmTargetDefaults parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults 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.vmmigration.v1.DisksMigrationVmTargetDefaults parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults 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.vmmigration.v1.DisksMigrationVmTargetDefaults parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults 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.vmmigration.v1.DisksMigrationVmTargetDefaults prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 for creation of a VM that migrated data disks will be attached to.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults) + com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaultsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DisksMigrationVmTargetDefaults_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 10: + return internalGetMetadata(); + case 13: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 10: + return internalGetMutableMetadata(); + case 13: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DisksMigrationVmTargetDefaults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults.class, + com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getNetworkInterfacesFieldBuilder(); + getComputeSchedulingFieldBuilder(); + getBootDiskDefaultsFieldBuilder(); + getEncryptionFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + vmName_ = ""; + machineTypeSeries_ = ""; + machineType_ = ""; + networkTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); + if (networkInterfacesBuilder_ == null) { + networkInterfaces_ = java.util.Collections.emptyList(); + } else { + networkInterfaces_ = null; + networkInterfacesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + serviceAccount_ = ""; + computeScheduling_ = null; + if (computeSchedulingBuilder_ != null) { + computeSchedulingBuilder_.dispose(); + computeSchedulingBuilder_ = null; + } + secureBoot_ = false; + enableVtpm_ = false; + enableIntegrityMonitoring_ = false; + internalGetMutableMetadata().clear(); + additionalLicenses_ = com.google.protobuf.LazyStringArrayList.emptyList(); + hostname_ = ""; + internalGetMutableLabels().clear(); + bootDiskDefaults_ = null; + if (bootDiskDefaultsBuilder_ != null) { + bootDiskDefaultsBuilder_.dispose(); + bootDiskDefaultsBuilder_ = null; + } + encryption_ = null; + if (encryptionBuilder_ != null) { + encryptionBuilder_.dispose(); + encryptionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DisksMigrationVmTargetDefaults_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults + getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults build() { + com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults buildPartial() { + com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults result = + new com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults result) { + if (networkInterfacesBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + networkInterfaces_ = java.util.Collections.unmodifiableList(networkInterfaces_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.networkInterfaces_ = networkInterfaces_; + } else { + result.networkInterfaces_ = networkInterfacesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.vmName_ = vmName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.machineTypeSeries_ = machineTypeSeries_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.machineType_ = machineType_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + networkTags_.makeImmutable(); + result.networkTags_ = networkTags_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.serviceAccount_ = serviceAccount_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000040) != 0)) { + result.computeScheduling_ = + computeSchedulingBuilder_ == null + ? computeScheduling_ + : computeSchedulingBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.secureBoot_ = secureBoot_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.enableVtpm_ = enableVtpm_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.enableIntegrityMonitoring_ = enableIntegrityMonitoring_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.metadata_ = internalGetMetadata(); + result.metadata_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000800) != 0)) { + additionalLicenses_.makeImmutable(); + result.additionalLicenses_ = additionalLicenses_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.hostname_ = hostname_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.bootDiskDefaults_ = + bootDiskDefaultsBuilder_ == null ? bootDiskDefaults_ : bootDiskDefaultsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.encryption_ = encryptionBuilder_ == null ? encryption_ : encryptionBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults) { + return mergeFrom((com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults other) { + if (other + == com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults.getDefaultInstance()) + return this; + if (!other.getVmName().isEmpty()) { + vmName_ = other.vmName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getMachineTypeSeries().isEmpty()) { + machineTypeSeries_ = other.machineTypeSeries_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getMachineType().isEmpty()) { + machineType_ = other.machineType_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.networkTags_.isEmpty()) { + if (networkTags_.isEmpty()) { + networkTags_ = other.networkTags_; + bitField0_ |= 0x00000008; + } else { + ensureNetworkTagsIsMutable(); + networkTags_.addAll(other.networkTags_); + } + onChanged(); + } + if (networkInterfacesBuilder_ == null) { + if (!other.networkInterfaces_.isEmpty()) { + if (networkInterfaces_.isEmpty()) { + networkInterfaces_ = other.networkInterfaces_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureNetworkInterfacesIsMutable(); + networkInterfaces_.addAll(other.networkInterfaces_); + } + onChanged(); + } + } else { + if (!other.networkInterfaces_.isEmpty()) { + if (networkInterfacesBuilder_.isEmpty()) { + networkInterfacesBuilder_.dispose(); + networkInterfacesBuilder_ = null; + networkInterfaces_ = other.networkInterfaces_; + bitField0_ = (bitField0_ & ~0x00000010); + networkInterfacesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNetworkInterfacesFieldBuilder() + : null; + } else { + networkInterfacesBuilder_.addAllMessages(other.networkInterfaces_); + } + } + } + if (!other.getServiceAccount().isEmpty()) { + serviceAccount_ = other.serviceAccount_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.hasComputeScheduling()) { + mergeComputeScheduling(other.getComputeScheduling()); + } + if (other.getSecureBoot() != false) { + setSecureBoot(other.getSecureBoot()); + } + if (other.getEnableVtpm() != false) { + setEnableVtpm(other.getEnableVtpm()); + } + if (other.getEnableIntegrityMonitoring() != false) { + setEnableIntegrityMonitoring(other.getEnableIntegrityMonitoring()); + } + internalGetMutableMetadata().mergeFrom(other.internalGetMetadata()); + bitField0_ |= 0x00000400; + if (!other.additionalLicenses_.isEmpty()) { + if (additionalLicenses_.isEmpty()) { + additionalLicenses_ = other.additionalLicenses_; + bitField0_ |= 0x00000800; + } else { + ensureAdditionalLicensesIsMutable(); + additionalLicenses_.addAll(other.additionalLicenses_); + } + onChanged(); + } + if (!other.getHostname().isEmpty()) { + hostname_ = other.hostname_; + bitField0_ |= 0x00001000; + onChanged(); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00002000; + if (other.hasBootDiskDefaults()) { + mergeBootDiskDefaults(other.getBootDiskDefaults()); + } + if (other.hasEncryption()) { + mergeEncryption(other.getEncryption()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + vmName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + machineTypeSeries_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + machineType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureNetworkTagsIsMutable(); + networkTags_.add(s); + break; + } // case 34 + case 42: + { + com.google.cloud.vmmigration.v1.NetworkInterface m = + input.readMessage( + com.google.cloud.vmmigration.v1.NetworkInterface.parser(), + extensionRegistry); + if (networkInterfacesBuilder_ == null) { + ensureNetworkInterfacesIsMutable(); + networkInterfaces_.add(m); + } else { + networkInterfacesBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: + { + serviceAccount_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage( + getComputeSchedulingFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 64: + { + secureBoot_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 82: + { + com.google.protobuf.MapEntry metadata__ = + input.readMessage( + MetadataDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableMetadata() + .getMutableMap() + .put(metadata__.getKey(), metadata__.getValue()); + bitField0_ |= 0x00000400; + break; + } // case 82 + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAdditionalLicensesIsMutable(); + additionalLicenses_.add(s); + break; + } // case 90 + case 98: + { + hostname_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case 98 + case 106: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00002000; + break; + } // case 106 + case 114: + { + input.readMessage( + getBootDiskDefaultsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00004000; + break; + } // case 114 + case 122: + { + input.readMessage(getEncryptionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00008000; + break; + } // case 122 + case 128: + { + enableVtpm_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 128 + case 136: + { + enableIntegrityMonitoring_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 136 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was 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 vmName_ = ""; + + /** + * + * + *
        +     * Required. The name of the VM to create.
        +     * 
        + * + * string vm_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The vmName. + */ + public java.lang.String getVmName() { + java.lang.Object ref = vmName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vmName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Required. The name of the VM to create.
        +     * 
        + * + * string vm_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for vmName. + */ + public com.google.protobuf.ByteString getVmNameBytes() { + java.lang.Object ref = vmName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vmName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Required. The name of the VM to create.
        +     * 
        + * + * string vm_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The vmName to set. + * @return This builder for chaining. + */ + public Builder setVmName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + vmName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The name of the VM to create.
        +     * 
        + * + * string vm_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearVmName() { + vmName_ = getDefaultInstance().getVmName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The name of the VM to create.
        +     * 
        + * + * string vm_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for vmName to set. + * @return This builder for chaining. + */ + public Builder setVmNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vmName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object machineTypeSeries_ = ""; + + /** + * + * + *
        +     * Optional. The machine type series to create the VM with.
        +     * For presentation only.
        +     * 
        + * + * string machine_type_series = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The machineTypeSeries. + */ + public java.lang.String getMachineTypeSeries() { + java.lang.Object ref = machineTypeSeries_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + machineTypeSeries_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Optional. The machine type series to create the VM with.
        +     * For presentation only.
        +     * 
        + * + * string machine_type_series = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for machineTypeSeries. + */ + public com.google.protobuf.ByteString getMachineTypeSeriesBytes() { + java.lang.Object ref = machineTypeSeries_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + machineTypeSeries_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Optional. The machine type series to create the VM with.
        +     * For presentation only.
        +     * 
        + * + * string machine_type_series = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The machineTypeSeries to set. + * @return This builder for chaining. + */ + public Builder setMachineTypeSeries(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + machineTypeSeries_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The machine type series to create the VM with.
        +     * For presentation only.
        +     * 
        + * + * string machine_type_series = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMachineTypeSeries() { + machineTypeSeries_ = getDefaultInstance().getMachineTypeSeries(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The machine type series to create the VM with.
        +     * For presentation only.
        +     * 
        + * + * string machine_type_series = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for machineTypeSeries to set. + * @return This builder for chaining. + */ + public Builder setMachineTypeSeriesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + machineTypeSeries_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object machineType_ = ""; + + /** + * + * + *
        +     * Required. The machine type to create the VM with.
        +     * 
        + * + * string machine_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
        +     * Required. The machine type to create the VM with.
        +     * 
        + * + * string machine_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
        +     * Required. The machine type to create the VM with.
        +     * 
        + * + * string machine_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The machine type to create the VM with.
        +     * 
        + * + * string machine_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearMachineType() { + machineType_ = getDefaultInstance().getMachineType(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The machine type to create the VM with.
        +     * 
        + * + * string machine_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList networkTags_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureNetworkTagsIsMutable() { + if (!networkTags_.isModifiable()) { + networkTags_ = new com.google.protobuf.LazyStringArrayList(networkTags_); + } + bitField0_ |= 0x00000008; + } + + /** + * + * + *
        +     * Optional. A list of network tags to associate with the VM.
        +     * 
        + * + * repeated string network_tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the networkTags. + */ + public com.google.protobuf.ProtocolStringList getNetworkTagsList() { + networkTags_.makeImmutable(); + return networkTags_; + } + + /** + * + * + *
        +     * Optional. A list of network tags to associate with the VM.
        +     * 
        + * + * repeated string network_tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of networkTags. + */ + public int getNetworkTagsCount() { + return networkTags_.size(); + } + + /** + * + * + *
        +     * Optional. A list of network tags to associate with the VM.
        +     * 
        + * + * repeated string network_tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The networkTags at the given index. + */ + public java.lang.String getNetworkTags(int index) { + return networkTags_.get(index); + } + + /** + * + * + *
        +     * Optional. A list of network tags to associate with the VM.
        +     * 
        + * + * repeated string network_tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the networkTags at the given index. + */ + public com.google.protobuf.ByteString getNetworkTagsBytes(int index) { + return networkTags_.getByteString(index); + } + + /** + * + * + *
        +     * Optional. A list of network tags to associate with the VM.
        +     * 
        + * + * repeated string network_tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The networkTags to set. + * @return This builder for chaining. + */ + public Builder setNetworkTags(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNetworkTagsIsMutable(); + networkTags_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. A list of network tags to associate with the VM.
        +     * 
        + * + * repeated string network_tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The networkTags to add. + * @return This builder for chaining. + */ + public Builder addNetworkTags(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNetworkTagsIsMutable(); + networkTags_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. A list of network tags to associate with the VM.
        +     * 
        + * + * repeated string network_tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The networkTags to add. + * @return This builder for chaining. + */ + public Builder addAllNetworkTags(java.lang.Iterable values) { + ensureNetworkTagsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, networkTags_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. A list of network tags to associate with the VM.
        +     * 
        + * + * repeated string network_tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearNetworkTags() { + networkTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. A list of network tags to associate with the VM.
        +     * 
        + * + * repeated string network_tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the networkTags to add. + * @return This builder for chaining. + */ + public Builder addNetworkTagsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureNetworkTagsIsMutable(); + networkTags_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.util.List networkInterfaces_ = + java.util.Collections.emptyList(); + + private void ensureNetworkInterfacesIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + networkInterfaces_ = + new java.util.ArrayList( + networkInterfaces_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.NetworkInterface, + com.google.cloud.vmmigration.v1.NetworkInterface.Builder, + com.google.cloud.vmmigration.v1.NetworkInterfaceOrBuilder> + networkInterfacesBuilder_; + + /** + * + * + *
        +     * Optional. NICs to attach to the VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getNetworkInterfacesList() { + if (networkInterfacesBuilder_ == null) { + return java.util.Collections.unmodifiableList(networkInterfaces_); + } else { + return networkInterfacesBuilder_.getMessageList(); + } + } + + /** + * + * + *
        +     * Optional. NICs to attach to the VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getNetworkInterfacesCount() { + if (networkInterfacesBuilder_ == null) { + return networkInterfaces_.size(); + } else { + return networkInterfacesBuilder_.getCount(); + } + } + + /** + * + * + *
        +     * Optional. NICs to attach to the VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vmmigration.v1.NetworkInterface getNetworkInterfaces(int index) { + if (networkInterfacesBuilder_ == null) { + return networkInterfaces_.get(index); + } else { + return networkInterfacesBuilder_.getMessage(index); + } + } + + /** + * + * + *
        +     * Optional. NICs to attach to the VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setNetworkInterfaces( + int index, com.google.cloud.vmmigration.v1.NetworkInterface value) { + if (networkInterfacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNetworkInterfacesIsMutable(); + networkInterfaces_.set(index, value); + onChanged(); + } else { + networkInterfacesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * Optional. NICs to attach to the VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setNetworkInterfaces( + int index, com.google.cloud.vmmigration.v1.NetworkInterface.Builder builderForValue) { + if (networkInterfacesBuilder_ == null) { + ensureNetworkInterfacesIsMutable(); + networkInterfaces_.set(index, builderForValue.build()); + onChanged(); + } else { + networkInterfacesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Optional. NICs to attach to the VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addNetworkInterfaces(com.google.cloud.vmmigration.v1.NetworkInterface value) { + if (networkInterfacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNetworkInterfacesIsMutable(); + networkInterfaces_.add(value); + onChanged(); + } else { + networkInterfacesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
        +     * Optional. NICs to attach to the VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addNetworkInterfaces( + int index, com.google.cloud.vmmigration.v1.NetworkInterface value) { + if (networkInterfacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNetworkInterfacesIsMutable(); + networkInterfaces_.add(index, value); + onChanged(); + } else { + networkInterfacesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * Optional. NICs to attach to the VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addNetworkInterfaces( + com.google.cloud.vmmigration.v1.NetworkInterface.Builder builderForValue) { + if (networkInterfacesBuilder_ == null) { + ensureNetworkInterfacesIsMutable(); + networkInterfaces_.add(builderForValue.build()); + onChanged(); + } else { + networkInterfacesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Optional. NICs to attach to the VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addNetworkInterfaces( + int index, com.google.cloud.vmmigration.v1.NetworkInterface.Builder builderForValue) { + if (networkInterfacesBuilder_ == null) { + ensureNetworkInterfacesIsMutable(); + networkInterfaces_.add(index, builderForValue.build()); + onChanged(); + } else { + networkInterfacesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Optional. NICs to attach to the VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllNetworkInterfaces( + java.lang.Iterable values) { + if (networkInterfacesBuilder_ == null) { + ensureNetworkInterfacesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, networkInterfaces_); + onChanged(); + } else { + networkInterfacesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
        +     * Optional. NICs to attach to the VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearNetworkInterfaces() { + if (networkInterfacesBuilder_ == null) { + networkInterfaces_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + networkInterfacesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Optional. NICs to attach to the VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeNetworkInterfaces(int index) { + if (networkInterfacesBuilder_ == null) { + ensureNetworkInterfacesIsMutable(); + networkInterfaces_.remove(index); + onChanged(); + } else { + networkInterfacesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
        +     * Optional. NICs to attach to the VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vmmigration.v1.NetworkInterface.Builder getNetworkInterfacesBuilder( + int index) { + return getNetworkInterfacesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
        +     * Optional. NICs to attach to the VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vmmigration.v1.NetworkInterfaceOrBuilder getNetworkInterfacesOrBuilder( + int index) { + if (networkInterfacesBuilder_ == null) { + return networkInterfaces_.get(index); + } else { + return networkInterfacesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
        +     * Optional. NICs to attach to the VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getNetworkInterfacesOrBuilderList() { + if (networkInterfacesBuilder_ != null) { + return networkInterfacesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(networkInterfaces_); + } + } + + /** + * + * + *
        +     * Optional. NICs to attach to the VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vmmigration.v1.NetworkInterface.Builder addNetworkInterfacesBuilder() { + return getNetworkInterfacesFieldBuilder() + .addBuilder(com.google.cloud.vmmigration.v1.NetworkInterface.getDefaultInstance()); + } + + /** + * + * + *
        +     * Optional. NICs to attach to the VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vmmigration.v1.NetworkInterface.Builder addNetworkInterfacesBuilder( + int index) { + return getNetworkInterfacesFieldBuilder() + .addBuilder(index, com.google.cloud.vmmigration.v1.NetworkInterface.getDefaultInstance()); + } + + /** + * + * + *
        +     * Optional. NICs to attach to the VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getNetworkInterfacesBuilderList() { + return getNetworkInterfacesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.NetworkInterface, + com.google.cloud.vmmigration.v1.NetworkInterface.Builder, + com.google.cloud.vmmigration.v1.NetworkInterfaceOrBuilder> + getNetworkInterfacesFieldBuilder() { + if (networkInterfacesBuilder_ == null) { + networkInterfacesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.NetworkInterface, + com.google.cloud.vmmigration.v1.NetworkInterface.Builder, + com.google.cloud.vmmigration.v1.NetworkInterfaceOrBuilder>( + networkInterfaces_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + networkInterfaces_ = null; + } + return networkInterfacesBuilder_; + } + + private java.lang.Object serviceAccount_ = ""; + + /** + * + * + *
        +     * Optional. The service account to associate the VM with.
        +     * 
        + * + * string service_account = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The serviceAccount. + */ + public java.lang.String getServiceAccount() { + java.lang.Object ref = serviceAccount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Optional. The service account to associate the VM with.
        +     * 
        + * + * string service_account = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for serviceAccount. + */ + public com.google.protobuf.ByteString getServiceAccountBytes() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Optional. The service account to associate the VM with.
        +     * 
        + * + * string service_account = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The serviceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serviceAccount_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The service account to associate the VM with.
        +     * 
        + * + * string service_account = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearServiceAccount() { + serviceAccount_ = getDefaultInstance().getServiceAccount(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The service account to associate the VM with.
        +     * 
        + * + * string service_account = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for serviceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccount_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private com.google.cloud.vmmigration.v1.ComputeScheduling computeScheduling_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.ComputeScheduling, + com.google.cloud.vmmigration.v1.ComputeScheduling.Builder, + com.google.cloud.vmmigration.v1.ComputeSchedulingOrBuilder> + computeSchedulingBuilder_; + + /** + * + * + *
        +     * Optional. Compute instance scheduling information (if empty default is
        +     * used).
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeScheduling compute_scheduling = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the computeScheduling field is set. + */ + public boolean hasComputeScheduling() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
        +     * Optional. Compute instance scheduling information (if empty default is
        +     * used).
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeScheduling compute_scheduling = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The computeScheduling. + */ + public com.google.cloud.vmmigration.v1.ComputeScheduling getComputeScheduling() { + if (computeSchedulingBuilder_ == null) { + return computeScheduling_ == null + ? com.google.cloud.vmmigration.v1.ComputeScheduling.getDefaultInstance() + : computeScheduling_; + } else { + return computeSchedulingBuilder_.getMessage(); + } + } + + /** + * + * + *
        +     * Optional. Compute instance scheduling information (if empty default is
        +     * used).
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeScheduling compute_scheduling = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setComputeScheduling(com.google.cloud.vmmigration.v1.ComputeScheduling value) { + if (computeSchedulingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + computeScheduling_ = value; + } else { + computeSchedulingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Compute instance scheduling information (if empty default is
        +     * used).
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeScheduling compute_scheduling = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setComputeScheduling( + com.google.cloud.vmmigration.v1.ComputeScheduling.Builder builderForValue) { + if (computeSchedulingBuilder_ == null) { + computeScheduling_ = builderForValue.build(); + } else { + computeSchedulingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Compute instance scheduling information (if empty default is
        +     * used).
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeScheduling compute_scheduling = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeComputeScheduling(com.google.cloud.vmmigration.v1.ComputeScheduling value) { + if (computeSchedulingBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && computeScheduling_ != null + && computeScheduling_ + != com.google.cloud.vmmigration.v1.ComputeScheduling.getDefaultInstance()) { + getComputeSchedulingBuilder().mergeFrom(value); + } else { + computeScheduling_ = value; + } + } else { + computeSchedulingBuilder_.mergeFrom(value); + } + if (computeScheduling_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Optional. Compute instance scheduling information (if empty default is
        +     * used).
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeScheduling compute_scheduling = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearComputeScheduling() { + bitField0_ = (bitField0_ & ~0x00000040); + computeScheduling_ = null; + if (computeSchedulingBuilder_ != null) { + computeSchedulingBuilder_.dispose(); + computeSchedulingBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Compute instance scheduling information (if empty default is
        +     * used).
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeScheduling compute_scheduling = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vmmigration.v1.ComputeScheduling.Builder getComputeSchedulingBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getComputeSchedulingFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Optional. Compute instance scheduling information (if empty default is
        +     * used).
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeScheduling compute_scheduling = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vmmigration.v1.ComputeSchedulingOrBuilder + getComputeSchedulingOrBuilder() { + if (computeSchedulingBuilder_ != null) { + return computeSchedulingBuilder_.getMessageOrBuilder(); + } else { + return computeScheduling_ == null + ? com.google.cloud.vmmigration.v1.ComputeScheduling.getDefaultInstance() + : computeScheduling_; + } + } + + /** + * + * + *
        +     * Optional. Compute instance scheduling information (if empty default is
        +     * used).
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeScheduling compute_scheduling = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.ComputeScheduling, + com.google.cloud.vmmigration.v1.ComputeScheduling.Builder, + com.google.cloud.vmmigration.v1.ComputeSchedulingOrBuilder> + getComputeSchedulingFieldBuilder() { + if (computeSchedulingBuilder_ == null) { + computeSchedulingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.ComputeScheduling, + com.google.cloud.vmmigration.v1.ComputeScheduling.Builder, + com.google.cloud.vmmigration.v1.ComputeSchedulingOrBuilder>( + getComputeScheduling(), getParentForChildren(), isClean()); + computeScheduling_ = null; + } + return computeSchedulingBuilder_; + } + + private boolean secureBoot_; + + /** + * + * + *
        +     * Optional. Defines whether the instance has Secure Boot enabled.
        +     * This can be set to true only if the VM boot option is EFI.
        +     * 
        + * + * bool secure_boot = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The secureBoot. + */ + @java.lang.Override + public boolean getSecureBoot() { + return secureBoot_; + } + + /** + * + * + *
        +     * Optional. Defines whether the instance has Secure Boot enabled.
        +     * This can be set to true only if the VM boot option is EFI.
        +     * 
        + * + * bool secure_boot = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The secureBoot to set. + * @return This builder for chaining. + */ + public Builder setSecureBoot(boolean value) { + + secureBoot_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Defines whether the instance has Secure Boot enabled.
        +     * This can be set to true only if the VM boot option is EFI.
        +     * 
        + * + * bool secure_boot = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSecureBoot() { + bitField0_ = (bitField0_ & ~0x00000080); + secureBoot_ = false; + onChanged(); + return this; + } + + private boolean enableVtpm_; + + /** + * + * + *
        +     * Optional. Defines whether the instance has vTPM enabled.
        +     * 
        + * + * bool enable_vtpm = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableVtpm. + */ + @java.lang.Override + public boolean getEnableVtpm() { + return enableVtpm_; + } + + /** + * + * + *
        +     * Optional. Defines whether the instance has vTPM enabled.
        +     * 
        + * + * bool enable_vtpm = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enableVtpm to set. + * @return This builder for chaining. + */ + public Builder setEnableVtpm(boolean value) { + + enableVtpm_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Defines whether the instance has vTPM enabled.
        +     * 
        + * + * bool enable_vtpm = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnableVtpm() { + bitField0_ = (bitField0_ & ~0x00000100); + enableVtpm_ = false; + onChanged(); + return this; + } + + private boolean enableIntegrityMonitoring_; + + /** + * + * + *
        +     * Optional. Defines whether the instance has integrity monitoring enabled.
        +     * 
        + * + * bool enable_integrity_monitoring = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableIntegrityMonitoring. + */ + @java.lang.Override + public boolean getEnableIntegrityMonitoring() { + return enableIntegrityMonitoring_; + } + + /** + * + * + *
        +     * Optional. Defines whether the instance has integrity monitoring enabled.
        +     * 
        + * + * bool enable_integrity_monitoring = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enableIntegrityMonitoring to set. + * @return This builder for chaining. + */ + public Builder setEnableIntegrityMonitoring(boolean value) { + + enableIntegrityMonitoring_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Defines whether the instance has integrity monitoring enabled.
        +     * 
        + * + * bool enable_integrity_monitoring = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnableIntegrityMonitoring() { + bitField0_ = (bitField0_ & ~0x00000200); + enableIntegrityMonitoring_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.MapField metadata_; + + private com.google.protobuf.MapField internalGetMetadata() { + if (metadata_ == null) { + return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); + } + return metadata_; + } + + private com.google.protobuf.MapField + internalGetMutableMetadata() { + if (metadata_ == null) { + metadata_ = + com.google.protobuf.MapField.newMapField(MetadataDefaultEntryHolder.defaultEntry); + } + if (!metadata_.isMutable()) { + metadata_ = metadata_.copy(); + } + bitField0_ |= 0x00000400; + onChanged(); + return metadata_; + } + + public int getMetadataCount() { + return internalGetMetadata().getMap().size(); + } + + /** + * + * + *
        +     * Optional. The metadata key/value pairs to assign to the VM.
        +     * 
        + * + * map<string, string> metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsMetadata(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetMetadata().getMap().containsKey(key); + } + + /** Use {@link #getMetadataMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getMetadata() { + return getMetadataMap(); + } + + /** + * + * + *
        +     * Optional. The metadata key/value pairs to assign to the VM.
        +     * 
        + * + * map<string, string> metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getMetadataMap() { + return internalGetMetadata().getMap(); + } + + /** + * + * + *
        +     * Optional. The metadata key/value pairs to assign to the VM.
        +     * 
        + * + * map<string, string> metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getMetadataOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetMetadata().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
        +     * Optional. The metadata key/value pairs to assign to the VM.
        +     * 
        + * + * map<string, string> metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getMetadataOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetMetadata().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearMetadata() { + bitField0_ = (bitField0_ & ~0x00000400); + internalGetMutableMetadata().getMutableMap().clear(); + return this; + } + + /** + * + * + *
        +     * Optional. The metadata key/value pairs to assign to the VM.
        +     * 
        + * + * map<string, string> metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeMetadata(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableMetadata().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableMetadata() { + bitField0_ |= 0x00000400; + return internalGetMutableMetadata().getMutableMap(); + } + + /** + * + * + *
        +     * Optional. The metadata key/value pairs to assign to the VM.
        +     * 
        + * + * map<string, string> metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putMetadata(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableMetadata().getMutableMap().put(key, value); + bitField0_ |= 0x00000400; + return this; + } + + /** + * + * + *
        +     * Optional. The metadata key/value pairs to assign to the VM.
        +     * 
        + * + * map<string, string> metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllMetadata(java.util.Map values) { + internalGetMutableMetadata().getMutableMap().putAll(values); + bitField0_ |= 0x00000400; + return this; + } + + private com.google.protobuf.LazyStringArrayList additionalLicenses_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAdditionalLicensesIsMutable() { + if (!additionalLicenses_.isModifiable()) { + additionalLicenses_ = new com.google.protobuf.LazyStringArrayList(additionalLicenses_); + } + bitField0_ |= 0x00000800; + } + + /** + * + * + *
        +     * Optional. Additional licenses to assign to the VM.
        +     * 
        + * + * repeated string additional_licenses = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the additionalLicenses. + */ + public com.google.protobuf.ProtocolStringList getAdditionalLicensesList() { + additionalLicenses_.makeImmutable(); + return additionalLicenses_; + } + + /** + * + * + *
        +     * Optional. Additional licenses to assign to the VM.
        +     * 
        + * + * repeated string additional_licenses = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of additionalLicenses. + */ + public int getAdditionalLicensesCount() { + return additionalLicenses_.size(); + } + + /** + * + * + *
        +     * Optional. Additional licenses to assign to the VM.
        +     * 
        + * + * repeated string additional_licenses = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The additionalLicenses at the given index. + */ + public java.lang.String getAdditionalLicenses(int index) { + return additionalLicenses_.get(index); + } + + /** + * + * + *
        +     * Optional. Additional licenses to assign to the VM.
        +     * 
        + * + * repeated string additional_licenses = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the additionalLicenses at the given index. + */ + public com.google.protobuf.ByteString getAdditionalLicensesBytes(int index) { + return additionalLicenses_.getByteString(index); + } + + /** + * + * + *
        +     * Optional. Additional licenses to assign to the VM.
        +     * 
        + * + * repeated string additional_licenses = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The additionalLicenses to set. + * @return This builder for chaining. + */ + public Builder setAdditionalLicenses(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdditionalLicensesIsMutable(); + additionalLicenses_.set(index, value); + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Additional licenses to assign to the VM.
        +     * 
        + * + * repeated string additional_licenses = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The additionalLicenses to add. + * @return This builder for chaining. + */ + public Builder addAdditionalLicenses(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdditionalLicensesIsMutable(); + additionalLicenses_.add(value); + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Additional licenses to assign to the VM.
        +     * 
        + * + * repeated string additional_licenses = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The additionalLicenses to add. + * @return This builder for chaining. + */ + public Builder addAllAdditionalLicenses(java.lang.Iterable values) { + ensureAdditionalLicensesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, additionalLicenses_); + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Additional licenses to assign to the VM.
        +     * 
        + * + * repeated string additional_licenses = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAdditionalLicenses() { + additionalLicenses_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000800); + ; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Additional licenses to assign to the VM.
        +     * 
        + * + * repeated string additional_licenses = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the additionalLicenses to add. + * @return This builder for chaining. + */ + public Builder addAdditionalLicensesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAdditionalLicensesIsMutable(); + additionalLicenses_.add(value); + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + private java.lang.Object hostname_ = ""; + + /** + * + * + *
        +     * Optional. The hostname to assign to the VM.
        +     * 
        + * + * string hostname = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The hostname. + */ + public java.lang.String getHostname() { + java.lang.Object ref = hostname_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hostname_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Optional. The hostname to assign to the VM.
        +     * 
        + * + * string hostname = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for hostname. + */ + public com.google.protobuf.ByteString getHostnameBytes() { + java.lang.Object ref = hostname_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + hostname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Optional. The hostname to assign to the VM.
        +     * 
        + * + * string hostname = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The hostname to set. + * @return This builder for chaining. + */ + public Builder setHostname(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + hostname_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The hostname to assign to the VM.
        +     * 
        + * + * string hostname = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearHostname() { + hostname_ = getDefaultInstance().getHostname(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The hostname to assign to the VM.
        +     * 
        + * + * string hostname = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for hostname to set. + * @return This builder for chaining. + */ + public Builder setHostnameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + hostname_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00002000; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
        +     * Optional. A map of labels to associate with the VM.
        +     * 
        + * + * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
        +     * Optional. A map of labels to associate with the VM.
        +     * 
        + * + * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
        +     * Optional. A map of labels to associate with the VM.
        +     * 
        + * + * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
        +     * Optional. A map of labels to associate with the VM.
        +     * 
        + * + * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00002000); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
        +     * Optional. A map of labels to associate with the VM.
        +     * 
        + * + * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00002000; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
        +     * Optional. A map of labels to associate with the VM.
        +     * 
        + * + * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00002000; + return this; + } + + /** + * + * + *
        +     * Optional. A map of labels to associate with the VM.
        +     * 
        + * + * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00002000; + return this; + } + + private com.google.cloud.vmmigration.v1.BootDiskDefaults bootDiskDefaults_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.BootDiskDefaults, + com.google.cloud.vmmigration.v1.BootDiskDefaults.Builder, + com.google.cloud.vmmigration.v1.BootDiskDefaultsOrBuilder> + bootDiskDefaultsBuilder_; + + /** + * + * + *
        +     * Optional. Details of the boot disk of the VM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.BootDiskDefaults boot_disk_defaults = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the bootDiskDefaults field is set. + */ + public boolean hasBootDiskDefaults() { + return ((bitField0_ & 0x00004000) != 0); + } + + /** + * + * + *
        +     * Optional. Details of the boot disk of the VM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.BootDiskDefaults boot_disk_defaults = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bootDiskDefaults. + */ + public com.google.cloud.vmmigration.v1.BootDiskDefaults getBootDiskDefaults() { + if (bootDiskDefaultsBuilder_ == null) { + return bootDiskDefaults_ == null + ? com.google.cloud.vmmigration.v1.BootDiskDefaults.getDefaultInstance() + : bootDiskDefaults_; + } else { + return bootDiskDefaultsBuilder_.getMessage(); + } + } + + /** + * + * + *
        +     * Optional. Details of the boot disk of the VM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.BootDiskDefaults boot_disk_defaults = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBootDiskDefaults(com.google.cloud.vmmigration.v1.BootDiskDefaults value) { + if (bootDiskDefaultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + bootDiskDefaults_ = value; + } else { + bootDiskDefaultsBuilder_.setMessage(value); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Details of the boot disk of the VM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.BootDiskDefaults boot_disk_defaults = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBootDiskDefaults( + com.google.cloud.vmmigration.v1.BootDiskDefaults.Builder builderForValue) { + if (bootDiskDefaultsBuilder_ == null) { + bootDiskDefaults_ = builderForValue.build(); + } else { + bootDiskDefaultsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Details of the boot disk of the VM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.BootDiskDefaults boot_disk_defaults = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeBootDiskDefaults(com.google.cloud.vmmigration.v1.BootDiskDefaults value) { + if (bootDiskDefaultsBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0) + && bootDiskDefaults_ != null + && bootDiskDefaults_ + != com.google.cloud.vmmigration.v1.BootDiskDefaults.getDefaultInstance()) { + getBootDiskDefaultsBuilder().mergeFrom(value); + } else { + bootDiskDefaults_ = value; + } + } else { + bootDiskDefaultsBuilder_.mergeFrom(value); + } + if (bootDiskDefaults_ != null) { + bitField0_ |= 0x00004000; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Optional. Details of the boot disk of the VM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.BootDiskDefaults boot_disk_defaults = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearBootDiskDefaults() { + bitField0_ = (bitField0_ & ~0x00004000); + bootDiskDefaults_ = null; + if (bootDiskDefaultsBuilder_ != null) { + bootDiskDefaultsBuilder_.dispose(); + bootDiskDefaultsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Details of the boot disk of the VM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.BootDiskDefaults boot_disk_defaults = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vmmigration.v1.BootDiskDefaults.Builder getBootDiskDefaultsBuilder() { + bitField0_ |= 0x00004000; + onChanged(); + return getBootDiskDefaultsFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Optional. Details of the boot disk of the VM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.BootDiskDefaults boot_disk_defaults = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vmmigration.v1.BootDiskDefaultsOrBuilder + getBootDiskDefaultsOrBuilder() { + if (bootDiskDefaultsBuilder_ != null) { + return bootDiskDefaultsBuilder_.getMessageOrBuilder(); + } else { + return bootDiskDefaults_ == null + ? com.google.cloud.vmmigration.v1.BootDiskDefaults.getDefaultInstance() + : bootDiskDefaults_; + } + } + + /** + * + * + *
        +     * Optional. Details of the boot disk of the VM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.BootDiskDefaults boot_disk_defaults = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.BootDiskDefaults, + com.google.cloud.vmmigration.v1.BootDiskDefaults.Builder, + com.google.cloud.vmmigration.v1.BootDiskDefaultsOrBuilder> + getBootDiskDefaultsFieldBuilder() { + if (bootDiskDefaultsBuilder_ == null) { + bootDiskDefaultsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.BootDiskDefaults, + com.google.cloud.vmmigration.v1.BootDiskDefaults.Builder, + com.google.cloud.vmmigration.v1.BootDiskDefaultsOrBuilder>( + getBootDiskDefaults(), getParentForChildren(), isClean()); + bootDiskDefaults_ = null; + } + return bootDiskDefaultsBuilder_; + } + + private com.google.cloud.vmmigration.v1.Encryption encryption_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.Encryption, + com.google.cloud.vmmigration.v1.Encryption.Builder, + com.google.cloud.vmmigration.v1.EncryptionOrBuilder> + encryptionBuilder_; + + /** + * + * + *
        +     * Optional. The encryption to apply to the VM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the encryption field is set. + */ + public boolean hasEncryption() { + return ((bitField0_ & 0x00008000) != 0); + } + + /** + * + * + *
        +     * Optional. The encryption to apply to the VM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The encryption. + */ + public com.google.cloud.vmmigration.v1.Encryption getEncryption() { + if (encryptionBuilder_ == null) { + return encryption_ == null + ? com.google.cloud.vmmigration.v1.Encryption.getDefaultInstance() + : encryption_; + } else { + return encryptionBuilder_.getMessage(); + } + } + + /** + * + * + *
        +     * Optional. The encryption to apply to the VM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEncryption(com.google.cloud.vmmigration.v1.Encryption value) { + if (encryptionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + encryption_ = value; + } else { + encryptionBuilder_.setMessage(value); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The encryption to apply to the VM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEncryption( + com.google.cloud.vmmigration.v1.Encryption.Builder builderForValue) { + if (encryptionBuilder_ == null) { + encryption_ = builderForValue.build(); + } else { + encryptionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The encryption to apply to the VM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeEncryption(com.google.cloud.vmmigration.v1.Encryption value) { + if (encryptionBuilder_ == null) { + if (((bitField0_ & 0x00008000) != 0) + && encryption_ != null + && encryption_ != com.google.cloud.vmmigration.v1.Encryption.getDefaultInstance()) { + getEncryptionBuilder().mergeFrom(value); + } else { + encryption_ = value; + } + } else { + encryptionBuilder_.mergeFrom(value); + } + if (encryption_ != null) { + bitField0_ |= 0x00008000; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Optional. The encryption to apply to the VM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEncryption() { + bitField0_ = (bitField0_ & ~0x00008000); + encryption_ = null; + if (encryptionBuilder_ != null) { + encryptionBuilder_.dispose(); + encryptionBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The encryption to apply to the VM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vmmigration.v1.Encryption.Builder getEncryptionBuilder() { + bitField0_ |= 0x00008000; + onChanged(); + return getEncryptionFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Optional. The encryption to apply to the VM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vmmigration.v1.EncryptionOrBuilder getEncryptionOrBuilder() { + if (encryptionBuilder_ != null) { + return encryptionBuilder_.getMessageOrBuilder(); + } else { + return encryption_ == null + ? com.google.cloud.vmmigration.v1.Encryption.getDefaultInstance() + : encryption_; + } + } + + /** + * + * + *
        +     * Optional. The encryption to apply to the VM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.Encryption, + com.google.cloud.vmmigration.v1.Encryption.Builder, + com.google.cloud.vmmigration.v1.EncryptionOrBuilder> + getEncryptionFieldBuilder() { + if (encryptionBuilder_ == null) { + encryptionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.Encryption, + com.google.cloud.vmmigration.v1.Encryption.Builder, + com.google.cloud.vmmigration.v1.EncryptionOrBuilder>( + getEncryption(), getParentForChildren(), isClean()); + encryption_ = null; + } + return encryptionBuilder_; + } + + @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.vmmigration.v1.DisksMigrationVmTargetDefaults) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults) + private static final com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults(); + } + + public static com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DisksMigrationVmTargetDefaults parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.DisksMigrationVmTargetDefaults + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DisksMigrationVmTargetDefaultsOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DisksMigrationVmTargetDefaultsOrBuilder.java new file mode 100644 index 000000000000..02aeb2b2e13e --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DisksMigrationVmTargetDefaultsOrBuilder.java @@ -0,0 +1,635 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface DisksMigrationVmTargetDefaultsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.DisksMigrationVmTargetDefaults) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Required. The name of the VM to create.
        +   * 
        + * + * string vm_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The vmName. + */ + java.lang.String getVmName(); + + /** + * + * + *
        +   * Required. The name of the VM to create.
        +   * 
        + * + * string vm_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for vmName. + */ + com.google.protobuf.ByteString getVmNameBytes(); + + /** + * + * + *
        +   * Optional. The machine type series to create the VM with.
        +   * For presentation only.
        +   * 
        + * + * string machine_type_series = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The machineTypeSeries. + */ + java.lang.String getMachineTypeSeries(); + + /** + * + * + *
        +   * Optional. The machine type series to create the VM with.
        +   * For presentation only.
        +   * 
        + * + * string machine_type_series = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for machineTypeSeries. + */ + com.google.protobuf.ByteString getMachineTypeSeriesBytes(); + + /** + * + * + *
        +   * Required. The machine type to create the VM with.
        +   * 
        + * + * string machine_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The machineType. + */ + java.lang.String getMachineType(); + + /** + * + * + *
        +   * Required. The machine type to create the VM with.
        +   * 
        + * + * string machine_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for machineType. + */ + com.google.protobuf.ByteString getMachineTypeBytes(); + + /** + * + * + *
        +   * Optional. A list of network tags to associate with the VM.
        +   * 
        + * + * repeated string network_tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the networkTags. + */ + java.util.List getNetworkTagsList(); + + /** + * + * + *
        +   * Optional. A list of network tags to associate with the VM.
        +   * 
        + * + * repeated string network_tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of networkTags. + */ + int getNetworkTagsCount(); + + /** + * + * + *
        +   * Optional. A list of network tags to associate with the VM.
        +   * 
        + * + * repeated string network_tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The networkTags at the given index. + */ + java.lang.String getNetworkTags(int index); + + /** + * + * + *
        +   * Optional. A list of network tags to associate with the VM.
        +   * 
        + * + * repeated string network_tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the networkTags at the given index. + */ + com.google.protobuf.ByteString getNetworkTagsBytes(int index); + + /** + * + * + *
        +   * Optional. NICs to attach to the VM.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getNetworkInterfacesList(); + + /** + * + * + *
        +   * Optional. NICs to attach to the VM.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.vmmigration.v1.NetworkInterface getNetworkInterfaces(int index); + + /** + * + * + *
        +   * Optional. NICs to attach to the VM.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getNetworkInterfacesCount(); + + /** + * + * + *
        +   * Optional. NICs to attach to the VM.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getNetworkInterfacesOrBuilderList(); + + /** + * + * + *
        +   * Optional. NICs to attach to the VM.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.vmmigration.v1.NetworkInterfaceOrBuilder getNetworkInterfacesOrBuilder( + int index); + + /** + * + * + *
        +   * Optional. The service account to associate the VM with.
        +   * 
        + * + * string service_account = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The serviceAccount. + */ + java.lang.String getServiceAccount(); + + /** + * + * + *
        +   * Optional. The service account to associate the VM with.
        +   * 
        + * + * string service_account = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for serviceAccount. + */ + com.google.protobuf.ByteString getServiceAccountBytes(); + + /** + * + * + *
        +   * Optional. Compute instance scheduling information (if empty default is
        +   * used).
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeScheduling compute_scheduling = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the computeScheduling field is set. + */ + boolean hasComputeScheduling(); + + /** + * + * + *
        +   * Optional. Compute instance scheduling information (if empty default is
        +   * used).
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeScheduling compute_scheduling = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The computeScheduling. + */ + com.google.cloud.vmmigration.v1.ComputeScheduling getComputeScheduling(); + + /** + * + * + *
        +   * Optional. Compute instance scheduling information (if empty default is
        +   * used).
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeScheduling compute_scheduling = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.vmmigration.v1.ComputeSchedulingOrBuilder getComputeSchedulingOrBuilder(); + + /** + * + * + *
        +   * Optional. Defines whether the instance has Secure Boot enabled.
        +   * This can be set to true only if the VM boot option is EFI.
        +   * 
        + * + * bool secure_boot = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The secureBoot. + */ + boolean getSecureBoot(); + + /** + * + * + *
        +   * Optional. Defines whether the instance has vTPM enabled.
        +   * 
        + * + * bool enable_vtpm = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableVtpm. + */ + boolean getEnableVtpm(); + + /** + * + * + *
        +   * Optional. Defines whether the instance has integrity monitoring enabled.
        +   * 
        + * + * bool enable_integrity_monitoring = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableIntegrityMonitoring. + */ + boolean getEnableIntegrityMonitoring(); + + /** + * + * + *
        +   * Optional. The metadata key/value pairs to assign to the VM.
        +   * 
        + * + * map<string, string> metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getMetadataCount(); + + /** + * + * + *
        +   * Optional. The metadata key/value pairs to assign to the VM.
        +   * 
        + * + * map<string, string> metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsMetadata(java.lang.String key); + + /** Use {@link #getMetadataMap()} instead. */ + @java.lang.Deprecated + java.util.Map getMetadata(); + + /** + * + * + *
        +   * Optional. The metadata key/value pairs to assign to the VM.
        +   * 
        + * + * map<string, string> metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getMetadataMap(); + + /** + * + * + *
        +   * Optional. The metadata key/value pairs to assign to the VM.
        +   * 
        + * + * map<string, string> metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getMetadataOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
        +   * Optional. The metadata key/value pairs to assign to the VM.
        +   * 
        + * + * map<string, string> metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getMetadataOrThrow(java.lang.String key); + + /** + * + * + *
        +   * Optional. Additional licenses to assign to the VM.
        +   * 
        + * + * repeated string additional_licenses = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the additionalLicenses. + */ + java.util.List getAdditionalLicensesList(); + + /** + * + * + *
        +   * Optional. Additional licenses to assign to the VM.
        +   * 
        + * + * repeated string additional_licenses = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of additionalLicenses. + */ + int getAdditionalLicensesCount(); + + /** + * + * + *
        +   * Optional. Additional licenses to assign to the VM.
        +   * 
        + * + * repeated string additional_licenses = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The additionalLicenses at the given index. + */ + java.lang.String getAdditionalLicenses(int index); + + /** + * + * + *
        +   * Optional. Additional licenses to assign to the VM.
        +   * 
        + * + * repeated string additional_licenses = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the additionalLicenses at the given index. + */ + com.google.protobuf.ByteString getAdditionalLicensesBytes(int index); + + /** + * + * + *
        +   * Optional. The hostname to assign to the VM.
        +   * 
        + * + * string hostname = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The hostname. + */ + java.lang.String getHostname(); + + /** + * + * + *
        +   * Optional. The hostname to assign to the VM.
        +   * 
        + * + * string hostname = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for hostname. + */ + com.google.protobuf.ByteString getHostnameBytes(); + + /** + * + * + *
        +   * Optional. A map of labels to associate with the VM.
        +   * 
        + * + * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + + /** + * + * + *
        +   * Optional. A map of labels to associate with the VM.
        +   * 
        + * + * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + + /** + * + * + *
        +   * Optional. A map of labels to associate with the VM.
        +   * 
        + * + * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
        +   * Optional. A map of labels to associate with the VM.
        +   * 
        + * + * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
        +   * Optional. A map of labels to associate with the VM.
        +   * 
        + * + * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
        +   * Optional. Details of the boot disk of the VM.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.BootDiskDefaults boot_disk_defaults = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the bootDiskDefaults field is set. + */ + boolean hasBootDiskDefaults(); + + /** + * + * + *
        +   * Optional. Details of the boot disk of the VM.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.BootDiskDefaults boot_disk_defaults = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bootDiskDefaults. + */ + com.google.cloud.vmmigration.v1.BootDiskDefaults getBootDiskDefaults(); + + /** + * + * + *
        +   * Optional. Details of the boot disk of the VM.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.BootDiskDefaults boot_disk_defaults = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.vmmigration.v1.BootDiskDefaultsOrBuilder getBootDiskDefaultsOrBuilder(); + + /** + * + * + *
        +   * Optional. The encryption to apply to the VM.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the encryption field is set. + */ + boolean hasEncryption(); + + /** + * + * + *
        +   * Optional. The encryption to apply to the VM.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The encryption. + */ + com.google.cloud.vmmigration.v1.Encryption getEncryption(); + + /** + * + * + *
        +   * Optional. The encryption to apply to the VM.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.vmmigration.v1.EncryptionOrBuilder getEncryptionOrBuilder(); +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DisksMigrationVmTargetDetails.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DisksMigrationVmTargetDetails.java new file mode 100644 index 000000000000..aa22f5dac784 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DisksMigrationVmTargetDetails.java @@ -0,0 +1,639 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * Details for the VM created VM as part of disks migration.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails} + */ +public final class DisksMigrationVmTargetDetails extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails) + DisksMigrationVmTargetDetailsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DisksMigrationVmTargetDetails.newBuilder() to construct. + private DisksMigrationVmTargetDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DisksMigrationVmTargetDetails() { + vmUri_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DisksMigrationVmTargetDetails(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DisksMigrationVmTargetDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DisksMigrationVmTargetDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails.class, + com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails.Builder.class); + } + + public static final int VM_URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object vmUri_ = ""; + + /** + * + * + *
        +   * Output only. The URI of the Compute Engine VM.
        +   * 
        + * + * string vm_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The vmUri. + */ + @java.lang.Override + public java.lang.String getVmUri() { + java.lang.Object ref = vmUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vmUri_ = s; + return s; + } + } + + /** + * + * + *
        +   * Output only. The URI of the Compute Engine VM.
        +   * 
        + * + * string vm_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for vmUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVmUriBytes() { + java.lang.Object ref = vmUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vmUri_ = 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(vmUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, vmUri_); + } + 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(vmUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, vmUri_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.vmmigration.v1.DisksMigrationVmTargetDetails)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails other = + (com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails) obj; + + if (!getVmUri().equals(other.getVmUri())) 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) + VM_URI_FIELD_NUMBER; + hash = (53 * hash) + getVmUri().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails 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.vmmigration.v1.DisksMigrationVmTargetDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails parseFrom( + 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.vmmigration.v1.DisksMigrationVmTargetDetails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails 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.vmmigration.v1.DisksMigrationVmTargetDetails parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails 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.vmmigration.v1.DisksMigrationVmTargetDetails parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails 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.vmmigration.v1.DisksMigrationVmTargetDetails prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 for the VM created VM as part of disks migration.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails) + com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DisksMigrationVmTargetDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DisksMigrationVmTargetDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails.class, + com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + vmUri_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_DisksMigrationVmTargetDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails + getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails build() { + com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails buildPartial() { + com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails result = + new com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.vmUri_ = vmUri_; + } + } + + @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.vmmigration.v1.DisksMigrationVmTargetDetails) { + return mergeFrom((com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails other) { + if (other + == com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails.getDefaultInstance()) + return this; + if (!other.getVmUri().isEmpty()) { + vmUri_ = other.vmUri_; + 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: + { + vmUri_ = 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 vmUri_ = ""; + + /** + * + * + *
        +     * Output only. The URI of the Compute Engine VM.
        +     * 
        + * + * string vm_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The vmUri. + */ + public java.lang.String getVmUri() { + java.lang.Object ref = vmUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vmUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Output only. The URI of the Compute Engine VM.
        +     * 
        + * + * string vm_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for vmUri. + */ + public com.google.protobuf.ByteString getVmUriBytes() { + java.lang.Object ref = vmUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vmUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Output only. The URI of the Compute Engine VM.
        +     * 
        + * + * string vm_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The vmUri to set. + * @return This builder for chaining. + */ + public Builder setVmUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + vmUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The URI of the Compute Engine VM.
        +     * 
        + * + * string vm_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearVmUri() { + vmUri_ = getDefaultInstance().getVmUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The URI of the Compute Engine VM.
        +     * 
        + * + * string vm_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for vmUri to set. + * @return This builder for chaining. + */ + public Builder setVmUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vmUri_ = 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.vmmigration.v1.DisksMigrationVmTargetDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails) + private static final com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails(); + } + + public static com.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DisksMigrationVmTargetDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.DisksMigrationVmTargetDetails getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DisksMigrationVmTargetDetailsOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DisksMigrationVmTargetDetailsOrBuilder.java new file mode 100644 index 000000000000..96f954f92c2d --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DisksMigrationVmTargetDetailsOrBuilder.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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface DisksMigrationVmTargetDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.DisksMigrationVmTargetDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Output only. The URI of the Compute Engine VM.
        +   * 
        + * + * string vm_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The vmUri. + */ + java.lang.String getVmUri(); + + /** + * + * + *
        +   * Output only. The URI of the Compute Engine VM.
        +   * 
        + * + * string vm_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for vmUri. + */ + com.google.protobuf.ByteString getVmUriBytes(); +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/Encryption.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/Encryption.java new file mode 100644 index 000000000000..37de22a82edb --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/Encryption.java @@ -0,0 +1,654 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * Encryption message describes the details of the applied encryption.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.Encryption} + */ +public final class Encryption extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.Encryption) + EncryptionOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Encryption.newBuilder() to construct. + private Encryption(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Encryption() { + kmsKey_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Encryption(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_Encryption_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_Encryption_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.Encryption.class, + com.google.cloud.vmmigration.v1.Encryption.Builder.class); + } + + public static final int KMS_KEY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object kmsKey_ = ""; + + /** + * + * + *
        +   * Required. The name of the encryption key that is stored in Google Cloud
        +   * KMS.
        +   * 
        + * + * + * string kms_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The kmsKey. + */ + @java.lang.Override + public java.lang.String getKmsKey() { + java.lang.Object ref = kmsKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKey_ = s; + return s; + } + } + + /** + * + * + *
        +   * Required. The name of the encryption key that is stored in Google Cloud
        +   * KMS.
        +   * 
        + * + * + * string kms_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for kmsKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKmsKeyBytes() { + java.lang.Object ref = kmsKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKey_ = 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(kmsKey_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kmsKey_); + } + 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(kmsKey_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, kmsKey_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.vmmigration.v1.Encryption)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.Encryption other = + (com.google.cloud.vmmigration.v1.Encryption) obj; + + if (!getKmsKey().equals(other.getKmsKey())) 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) + KMS_KEY_FIELD_NUMBER; + hash = (53 * hash) + getKmsKey().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.Encryption parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.Encryption 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.vmmigration.v1.Encryption parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.Encryption parseFrom( + 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.vmmigration.v1.Encryption parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.Encryption parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.Encryption parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.Encryption 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.vmmigration.v1.Encryption parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.Encryption 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.vmmigration.v1.Encryption parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.Encryption 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.vmmigration.v1.Encryption prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
        +   * Encryption message describes the details of the applied encryption.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.Encryption} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.Encryption) + com.google.cloud.vmmigration.v1.EncryptionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_Encryption_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_Encryption_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.Encryption.class, + com.google.cloud.vmmigration.v1.Encryption.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.Encryption.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + kmsKey_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_Encryption_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.Encryption getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.Encryption.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.Encryption build() { + com.google.cloud.vmmigration.v1.Encryption result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.Encryption buildPartial() { + com.google.cloud.vmmigration.v1.Encryption result = + new com.google.cloud.vmmigration.v1.Encryption(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vmmigration.v1.Encryption result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.kmsKey_ = kmsKey_; + } + } + + @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.vmmigration.v1.Encryption) { + return mergeFrom((com.google.cloud.vmmigration.v1.Encryption) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.Encryption other) { + if (other == com.google.cloud.vmmigration.v1.Encryption.getDefaultInstance()) return this; + if (!other.getKmsKey().isEmpty()) { + kmsKey_ = other.kmsKey_; + 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: + { + kmsKey_ = 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 kmsKey_ = ""; + + /** + * + * + *
        +     * Required. The name of the encryption key that is stored in Google Cloud
        +     * KMS.
        +     * 
        + * + * + * string kms_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The kmsKey. + */ + public java.lang.String getKmsKey() { + java.lang.Object ref = kmsKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Required. The name of the encryption key that is stored in Google Cloud
        +     * KMS.
        +     * 
        + * + * + * string kms_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for kmsKey. + */ + public com.google.protobuf.ByteString getKmsKeyBytes() { + java.lang.Object ref = kmsKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Required. The name of the encryption key that is stored in Google Cloud
        +     * KMS.
        +     * 
        + * + * + * string kms_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The kmsKey to set. + * @return This builder for chaining. + */ + public Builder setKmsKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + kmsKey_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The name of the encryption key that is stored in Google Cloud
        +     * KMS.
        +     * 
        + * + * + * string kms_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearKmsKey() { + kmsKey_ = getDefaultInstance().getKmsKey(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The name of the encryption key that is stored in Google Cloud
        +     * KMS.
        +     * 
        + * + * + * string kms_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for kmsKey to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kmsKey_ = 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.vmmigration.v1.Encryption) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.Encryption) + private static final com.google.cloud.vmmigration.v1.Encryption DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.Encryption(); + } + + public static com.google.cloud.vmmigration.v1.Encryption getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Encryption parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.Encryption getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/EncryptionOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/EncryptionOrBuilder.java new file mode 100644 index 000000000000..6c4d56cfeffd --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/EncryptionOrBuilder.java @@ -0,0 +1,58 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface EncryptionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.Encryption) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Required. The name of the encryption key that is stored in Google Cloud
        +   * KMS.
        +   * 
        + * + * + * string kms_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The kmsKey. + */ + java.lang.String getKmsKey(); + + /** + * + * + *
        +   * Required. The name of the encryption key that is stored in Google Cloud
        +   * KMS.
        +   * 
        + * + * + * string kms_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for kmsKey. + */ + com.google.protobuf.ByteString getKmsKeyBytes(); +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ExtendMigrationRequest.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ExtendMigrationRequest.java new file mode 100644 index 000000000000..44e62b9b42d1 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ExtendMigrationRequest.java @@ -0,0 +1,649 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * Request message for 'ExtendMigrationRequest' request.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.ExtendMigrationRequest} + */ +public final class ExtendMigrationRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.ExtendMigrationRequest) + ExtendMigrationRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ExtendMigrationRequest.newBuilder() to construct. + private ExtendMigrationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExtendMigrationRequest() { + migratingVm_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExtendMigrationRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ExtendMigrationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ExtendMigrationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.ExtendMigrationRequest.class, + com.google.cloud.vmmigration.v1.ExtendMigrationRequest.Builder.class); + } + + public static final int MIGRATING_VM_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object migratingVm_ = ""; + + /** + * + * + *
        +   * Required. The name of the MigratingVm.
        +   * 
        + * + * + * string migrating_vm = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The migratingVm. + */ + @java.lang.Override + public java.lang.String getMigratingVm() { + java.lang.Object ref = migratingVm_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + migratingVm_ = s; + return s; + } + } + + /** + * + * + *
        +   * Required. The name of the MigratingVm.
        +   * 
        + * + * + * string migrating_vm = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for migratingVm. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMigratingVmBytes() { + java.lang.Object ref = migratingVm_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + migratingVm_ = 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(migratingVm_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, migratingVm_); + } + 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(migratingVm_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, migratingVm_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.vmmigration.v1.ExtendMigrationRequest)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.ExtendMigrationRequest other = + (com.google.cloud.vmmigration.v1.ExtendMigrationRequest) obj; + + if (!getMigratingVm().equals(other.getMigratingVm())) 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) + MIGRATING_VM_FIELD_NUMBER; + hash = (53 * hash) + getMigratingVm().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.ExtendMigrationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.ExtendMigrationRequest 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.vmmigration.v1.ExtendMigrationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.ExtendMigrationRequest parseFrom( + 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.vmmigration.v1.ExtendMigrationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.ExtendMigrationRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.ExtendMigrationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.ExtendMigrationRequest 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.vmmigration.v1.ExtendMigrationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.ExtendMigrationRequest 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.vmmigration.v1.ExtendMigrationRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.ExtendMigrationRequest 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.vmmigration.v1.ExtendMigrationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * Request message for 'ExtendMigrationRequest' request.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.ExtendMigrationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.ExtendMigrationRequest) + com.google.cloud.vmmigration.v1.ExtendMigrationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ExtendMigrationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ExtendMigrationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.ExtendMigrationRequest.class, + com.google.cloud.vmmigration.v1.ExtendMigrationRequest.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.ExtendMigrationRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + migratingVm_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ExtendMigrationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.ExtendMigrationRequest getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.ExtendMigrationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.ExtendMigrationRequest build() { + com.google.cloud.vmmigration.v1.ExtendMigrationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.ExtendMigrationRequest buildPartial() { + com.google.cloud.vmmigration.v1.ExtendMigrationRequest result = + new com.google.cloud.vmmigration.v1.ExtendMigrationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vmmigration.v1.ExtendMigrationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.migratingVm_ = migratingVm_; + } + } + + @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.vmmigration.v1.ExtendMigrationRequest) { + return mergeFrom((com.google.cloud.vmmigration.v1.ExtendMigrationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.ExtendMigrationRequest other) { + if (other == com.google.cloud.vmmigration.v1.ExtendMigrationRequest.getDefaultInstance()) + return this; + if (!other.getMigratingVm().isEmpty()) { + migratingVm_ = other.migratingVm_; + 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: + { + migratingVm_ = 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 migratingVm_ = ""; + + /** + * + * + *
        +     * Required. The name of the MigratingVm.
        +     * 
        + * + * + * string migrating_vm = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The migratingVm. + */ + public java.lang.String getMigratingVm() { + java.lang.Object ref = migratingVm_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + migratingVm_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Required. The name of the MigratingVm.
        +     * 
        + * + * + * string migrating_vm = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for migratingVm. + */ + public com.google.protobuf.ByteString getMigratingVmBytes() { + java.lang.Object ref = migratingVm_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + migratingVm_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Required. The name of the MigratingVm.
        +     * 
        + * + * + * string migrating_vm = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The migratingVm to set. + * @return This builder for chaining. + */ + public Builder setMigratingVm(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + migratingVm_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The name of the MigratingVm.
        +     * 
        + * + * + * string migrating_vm = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearMigratingVm() { + migratingVm_ = getDefaultInstance().getMigratingVm(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The name of the MigratingVm.
        +     * 
        + * + * + * string migrating_vm = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for migratingVm to set. + * @return This builder for chaining. + */ + public Builder setMigratingVmBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + migratingVm_ = 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.vmmigration.v1.ExtendMigrationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.ExtendMigrationRequest) + private static final com.google.cloud.vmmigration.v1.ExtendMigrationRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.ExtendMigrationRequest(); + } + + public static com.google.cloud.vmmigration.v1.ExtendMigrationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExtendMigrationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.ExtendMigrationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ExtendMigrationRequestOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ExtendMigrationRequestOrBuilder.java new file mode 100644 index 000000000000..f265070558f1 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ExtendMigrationRequestOrBuilder.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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface ExtendMigrationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.ExtendMigrationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Required. The name of the MigratingVm.
        +   * 
        + * + * + * string migrating_vm = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The migratingVm. + */ + java.lang.String getMigratingVm(); + + /** + * + * + *
        +   * Required. The name of the MigratingVm.
        +   * 
        + * + * + * string migrating_vm = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for migratingVm. + */ + com.google.protobuf.ByteString getMigratingVmBytes(); +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ExtendMigrationResponse.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ExtendMigrationResponse.java new file mode 100644 index 000000000000..badda7160a76 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ExtendMigrationResponse.java @@ -0,0 +1,435 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * Response message for 'ExtendMigration' request.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.ExtendMigrationResponse} + */ +public final class ExtendMigrationResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.ExtendMigrationResponse) + ExtendMigrationResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ExtendMigrationResponse.newBuilder() to construct. + private ExtendMigrationResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExtendMigrationResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExtendMigrationResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ExtendMigrationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ExtendMigrationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.ExtendMigrationResponse.class, + com.google.cloud.vmmigration.v1.ExtendMigrationResponse.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.vmmigration.v1.ExtendMigrationResponse)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.ExtendMigrationResponse other = + (com.google.cloud.vmmigration.v1.ExtendMigrationResponse) 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.vmmigration.v1.ExtendMigrationResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.ExtendMigrationResponse 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.vmmigration.v1.ExtendMigrationResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.ExtendMigrationResponse parseFrom( + 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.vmmigration.v1.ExtendMigrationResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.ExtendMigrationResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.ExtendMigrationResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.ExtendMigrationResponse 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.vmmigration.v1.ExtendMigrationResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.ExtendMigrationResponse 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.vmmigration.v1.ExtendMigrationResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.ExtendMigrationResponse 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.vmmigration.v1.ExtendMigrationResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * Response message for 'ExtendMigration' request.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.ExtendMigrationResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.ExtendMigrationResponse) + com.google.cloud.vmmigration.v1.ExtendMigrationResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ExtendMigrationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ExtendMigrationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.ExtendMigrationResponse.class, + com.google.cloud.vmmigration.v1.ExtendMigrationResponse.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.ExtendMigrationResponse.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.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ExtendMigrationResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.ExtendMigrationResponse getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.ExtendMigrationResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.ExtendMigrationResponse build() { + com.google.cloud.vmmigration.v1.ExtendMigrationResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.ExtendMigrationResponse buildPartial() { + com.google.cloud.vmmigration.v1.ExtendMigrationResponse result = + new com.google.cloud.vmmigration.v1.ExtendMigrationResponse(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.vmmigration.v1.ExtendMigrationResponse) { + return mergeFrom((com.google.cloud.vmmigration.v1.ExtendMigrationResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.ExtendMigrationResponse other) { + if (other == com.google.cloud.vmmigration.v1.ExtendMigrationResponse.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.vmmigration.v1.ExtendMigrationResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.ExtendMigrationResponse) + private static final com.google.cloud.vmmigration.v1.ExtendMigrationResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.ExtendMigrationResponse(); + } + + public static com.google.cloud.vmmigration.v1.ExtendMigrationResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExtendMigrationResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.ExtendMigrationResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ExtendMigrationResponseOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ExtendMigrationResponseOrBuilder.java new file mode 100644 index 000000000000..9f40ad371fcc --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ExtendMigrationResponseOrBuilder.java @@ -0,0 +1,25 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface ExtendMigrationResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.ExtendMigrationResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/FetchInventoryResponse.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/FetchInventoryResponse.java index c1075d6e3a62..3e254fc4c07f 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/FetchInventoryResponse.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/FetchInventoryResponse.java @@ -75,6 +75,7 @@ public enum SourceVmsCase com.google.protobuf.AbstractMessage.InternalOneOfEnum { VMWARE_VMS(1), AWS_VMS(3), + AZURE_VMS(5), SOURCEVMS_NOT_SET(0); private final int value; @@ -98,6 +99,8 @@ public static SourceVmsCase forNumber(int value) { return VMWARE_VMS; case 3: return AWS_VMS; + case 5: + return AZURE_VMS; case 0: return SOURCEVMS_NOT_SET; default: @@ -222,6 +225,60 @@ public com.google.cloud.vmmigration.v1.AwsVmsDetailsOrBuilder getAwsVmsOrBuilder return com.google.cloud.vmmigration.v1.AwsVmsDetails.getDefaultInstance(); } + public static final int AZURE_VMS_FIELD_NUMBER = 5; + + /** + * + * + *
        +   * The description of the VMs in a Source of type Azure.
        +   * 
        + * + * .google.cloud.vmmigration.v1.AzureVmsDetails azure_vms = 5; + * + * @return Whether the azureVms field is set. + */ + @java.lang.Override + public boolean hasAzureVms() { + return sourceVmsCase_ == 5; + } + + /** + * + * + *
        +   * The description of the VMs in a Source of type Azure.
        +   * 
        + * + * .google.cloud.vmmigration.v1.AzureVmsDetails azure_vms = 5; + * + * @return The azureVms. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureVmsDetails getAzureVms() { + if (sourceVmsCase_ == 5) { + return (com.google.cloud.vmmigration.v1.AzureVmsDetails) sourceVms_; + } + return com.google.cloud.vmmigration.v1.AzureVmsDetails.getDefaultInstance(); + } + + /** + * + * + *
        +   * The description of the VMs in a Source of type Azure.
        +   * 
        + * + * .google.cloud.vmmigration.v1.AzureVmsDetails azure_vms = 5; + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureVmsDetailsOrBuilder getAzureVmsOrBuilder() { + if (sourceVmsCase_ == 5) { + return (com.google.cloud.vmmigration.v1.AzureVmsDetails) sourceVms_; + } + return com.google.cloud.vmmigration.v1.AzureVmsDetails.getDefaultInstance(); + } + public static final int UPDATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp updateTime_; @@ -300,6 +357,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (sourceVmsCase_ == 3) { output.writeMessage(3, (com.google.cloud.vmmigration.v1.AwsVmsDetails) sourceVms_); } + if (sourceVmsCase_ == 5) { + output.writeMessage(5, (com.google.cloud.vmmigration.v1.AzureVmsDetails) sourceVms_); + } getUnknownFields().writeTo(output); } @@ -322,6 +382,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 3, (com.google.cloud.vmmigration.v1.AwsVmsDetails) sourceVms_); } + if (sourceVmsCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.vmmigration.v1.AzureVmsDetails) sourceVms_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -350,6 +415,9 @@ public boolean equals(final java.lang.Object obj) { case 3: if (!getAwsVms().equals(other.getAwsVms())) return false; break; + case 5: + if (!getAzureVms().equals(other.getAzureVms())) return false; + break; case 0: default: } @@ -377,6 +445,10 @@ public int hashCode() { hash = (37 * hash) + AWS_VMS_FIELD_NUMBER; hash = (53 * hash) + getAwsVms().hashCode(); break; + case 5: + hash = (37 * hash) + AZURE_VMS_FIELD_NUMBER; + hash = (53 * hash) + getAzureVms().hashCode(); + break; case 0: default: } @@ -537,6 +609,9 @@ public Builder clear() { if (awsVmsBuilder_ != null) { awsVmsBuilder_.clear(); } + if (azureVmsBuilder_ != null) { + azureVmsBuilder_.clear(); + } updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); @@ -582,7 +657,7 @@ public com.google.cloud.vmmigration.v1.FetchInventoryResponse buildPartial() { private void buildPartial0(com.google.cloud.vmmigration.v1.FetchInventoryResponse result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000008) != 0)) { result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } @@ -598,6 +673,9 @@ private void buildPartialOneofs(com.google.cloud.vmmigration.v1.FetchInventoryRe if (sourceVmsCase_ == 3 && awsVmsBuilder_ != null) { result.sourceVms_ = awsVmsBuilder_.build(); } + if (sourceVmsCase_ == 5 && azureVmsBuilder_ != null) { + result.sourceVms_ = azureVmsBuilder_.build(); + } } @java.lang.Override @@ -660,6 +738,11 @@ public Builder mergeFrom(com.google.cloud.vmmigration.v1.FetchInventoryResponse mergeAwsVms(other.getAwsVms()); break; } + case AZURE_VMS: + { + mergeAzureVms(other.getAzureVms()); + break; + } case SOURCEVMS_NOT_SET: { break; @@ -700,7 +783,7 @@ public Builder mergeFrom( case 18: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 18 case 26: @@ -709,6 +792,12 @@ public Builder mergeFrom( sourceVmsCase_ = 3; break; } // case 26 + case 42: + { + input.readMessage(getAzureVmsFieldBuilder().getBuilder(), extensionRegistry); + sourceVmsCase_ = 5; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1179,6 +1268,224 @@ public com.google.cloud.vmmigration.v1.AwsVmsDetailsOrBuilder getAwsVmsOrBuilder return awsVmsBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.AzureVmsDetails, + com.google.cloud.vmmigration.v1.AzureVmsDetails.Builder, + com.google.cloud.vmmigration.v1.AzureVmsDetailsOrBuilder> + azureVmsBuilder_; + + /** + * + * + *
        +     * The description of the VMs in a Source of type Azure.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AzureVmsDetails azure_vms = 5; + * + * @return Whether the azureVms field is set. + */ + @java.lang.Override + public boolean hasAzureVms() { + return sourceVmsCase_ == 5; + } + + /** + * + * + *
        +     * The description of the VMs in a Source of type Azure.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AzureVmsDetails azure_vms = 5; + * + * @return The azureVms. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureVmsDetails getAzureVms() { + if (azureVmsBuilder_ == null) { + if (sourceVmsCase_ == 5) { + return (com.google.cloud.vmmigration.v1.AzureVmsDetails) sourceVms_; + } + return com.google.cloud.vmmigration.v1.AzureVmsDetails.getDefaultInstance(); + } else { + if (sourceVmsCase_ == 5) { + return azureVmsBuilder_.getMessage(); + } + return com.google.cloud.vmmigration.v1.AzureVmsDetails.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * The description of the VMs in a Source of type Azure.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AzureVmsDetails azure_vms = 5; + */ + public Builder setAzureVms(com.google.cloud.vmmigration.v1.AzureVmsDetails value) { + if (azureVmsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sourceVms_ = value; + onChanged(); + } else { + azureVmsBuilder_.setMessage(value); + } + sourceVmsCase_ = 5; + return this; + } + + /** + * + * + *
        +     * The description of the VMs in a Source of type Azure.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AzureVmsDetails azure_vms = 5; + */ + public Builder setAzureVms( + com.google.cloud.vmmigration.v1.AzureVmsDetails.Builder builderForValue) { + if (azureVmsBuilder_ == null) { + sourceVms_ = builderForValue.build(); + onChanged(); + } else { + azureVmsBuilder_.setMessage(builderForValue.build()); + } + sourceVmsCase_ = 5; + return this; + } + + /** + * + * + *
        +     * The description of the VMs in a Source of type Azure.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AzureVmsDetails azure_vms = 5; + */ + public Builder mergeAzureVms(com.google.cloud.vmmigration.v1.AzureVmsDetails value) { + if (azureVmsBuilder_ == null) { + if (sourceVmsCase_ == 5 + && sourceVms_ != com.google.cloud.vmmigration.v1.AzureVmsDetails.getDefaultInstance()) { + sourceVms_ = + com.google.cloud.vmmigration.v1.AzureVmsDetails.newBuilder( + (com.google.cloud.vmmigration.v1.AzureVmsDetails) sourceVms_) + .mergeFrom(value) + .buildPartial(); + } else { + sourceVms_ = value; + } + onChanged(); + } else { + if (sourceVmsCase_ == 5) { + azureVmsBuilder_.mergeFrom(value); + } else { + azureVmsBuilder_.setMessage(value); + } + } + sourceVmsCase_ = 5; + return this; + } + + /** + * + * + *
        +     * The description of the VMs in a Source of type Azure.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AzureVmsDetails azure_vms = 5; + */ + public Builder clearAzureVms() { + if (azureVmsBuilder_ == null) { + if (sourceVmsCase_ == 5) { + sourceVmsCase_ = 0; + sourceVms_ = null; + onChanged(); + } + } else { + if (sourceVmsCase_ == 5) { + sourceVmsCase_ = 0; + sourceVms_ = null; + } + azureVmsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * The description of the VMs in a Source of type Azure.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AzureVmsDetails azure_vms = 5; + */ + public com.google.cloud.vmmigration.v1.AzureVmsDetails.Builder getAzureVmsBuilder() { + return getAzureVmsFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * The description of the VMs in a Source of type Azure.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AzureVmsDetails azure_vms = 5; + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureVmsDetailsOrBuilder getAzureVmsOrBuilder() { + if ((sourceVmsCase_ == 5) && (azureVmsBuilder_ != null)) { + return azureVmsBuilder_.getMessageOrBuilder(); + } else { + if (sourceVmsCase_ == 5) { + return (com.google.cloud.vmmigration.v1.AzureVmsDetails) sourceVms_; + } + return com.google.cloud.vmmigration.v1.AzureVmsDetails.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * The description of the VMs in a Source of type Azure.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AzureVmsDetails azure_vms = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.AzureVmsDetails, + com.google.cloud.vmmigration.v1.AzureVmsDetails.Builder, + com.google.cloud.vmmigration.v1.AzureVmsDetailsOrBuilder> + getAzureVmsFieldBuilder() { + if (azureVmsBuilder_ == null) { + if (!(sourceVmsCase_ == 5)) { + sourceVms_ = com.google.cloud.vmmigration.v1.AzureVmsDetails.getDefaultInstance(); + } + azureVmsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.AzureVmsDetails, + com.google.cloud.vmmigration.v1.AzureVmsDetails.Builder, + com.google.cloud.vmmigration.v1.AzureVmsDetailsOrBuilder>( + (com.google.cloud.vmmigration.v1.AzureVmsDetails) sourceVms_, + getParentForChildren(), + isClean()); + sourceVms_ = null; + } + sourceVmsCase_ = 5; + onChanged(); + return azureVmsBuilder_; + } + private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, @@ -1201,7 +1508,7 @@ public com.google.cloud.vmmigration.v1.AwsVmsDetailsOrBuilder getAwsVmsOrBuilder * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** @@ -1249,7 +1556,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { } else { updateTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1272,7 +1579,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1291,7 +1598,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) + if (((bitField0_ & 0x00000008) != 0) && updateTime_ != null && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); @@ -1302,7 +1609,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { updateTimeBuilder_.mergeFrom(value); } if (updateTime_ != null) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } return this; @@ -1321,7 +1628,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); @@ -1344,7 +1651,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/FetchInventoryResponseOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/FetchInventoryResponseOrBuilder.java index 3544711aa945..0683c31c6404 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/FetchInventoryResponseOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/FetchInventoryResponseOrBuilder.java @@ -98,6 +98,43 @@ public interface FetchInventoryResponseOrBuilder */ com.google.cloud.vmmigration.v1.AwsVmsDetailsOrBuilder getAwsVmsOrBuilder(); + /** + * + * + *
        +   * The description of the VMs in a Source of type Azure.
        +   * 
        + * + * .google.cloud.vmmigration.v1.AzureVmsDetails azure_vms = 5; + * + * @return Whether the azureVms field is set. + */ + boolean hasAzureVms(); + + /** + * + * + *
        +   * The description of the VMs in a Source of type Azure.
        +   * 
        + * + * .google.cloud.vmmigration.v1.AzureVmsDetails azure_vms = 5; + * + * @return The azureVms. + */ + com.google.cloud.vmmigration.v1.AzureVmsDetails getAzureVms(); + + /** + * + * + *
        +   * The description of the VMs in a Source of type Azure.
        +   * 
        + * + * .google.cloud.vmmigration.v1.AzureVmsDetails azure_vms = 5; + */ + com.google.cloud.vmmigration.v1.AzureVmsDetailsOrBuilder getAzureVmsOrBuilder(); + /** * * diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/FetchStorageInventoryRequest.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/FetchStorageInventoryRequest.java new file mode 100644 index 000000000000..519509b53e98 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/FetchStorageInventoryRequest.java @@ -0,0 +1,1408 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * Request message for
        + * [fetchStorageInventory][google.cloud.vmmigration.v1.VmMigration.FetchStorageInventory].
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.FetchStorageInventoryRequest} + */ +public final class FetchStorageInventoryRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.FetchStorageInventoryRequest) + FetchStorageInventoryRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use FetchStorageInventoryRequest.newBuilder() to construct. + private FetchStorageInventoryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FetchStorageInventoryRequest() { + source_ = ""; + type_ = 0; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FetchStorageInventoryRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_FetchStorageInventoryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_FetchStorageInventoryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest.class, + com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest.Builder.class); + } + + /** + * + * + *
        +   * The type of the storage inventory to fetch.
        +   * 
        + * + * Protobuf enum {@code google.cloud.vmmigration.v1.FetchStorageInventoryRequest.StorageType} + */ + public enum StorageType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
        +     * The type is unspecified.
        +     * 
        + * + * STORAGE_TYPE_UNSPECIFIED = 0; + */ + STORAGE_TYPE_UNSPECIFIED(0), + /** + * + * + *
        +     * The type is disks.
        +     * 
        + * + * DISKS = 1; + */ + DISKS(1), + /** + * + * + *
        +     * The type is snapshots.
        +     * 
        + * + * SNAPSHOTS = 2; + */ + SNAPSHOTS(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
        +     * The type is unspecified.
        +     * 
        + * + * STORAGE_TYPE_UNSPECIFIED = 0; + */ + public static final int STORAGE_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
        +     * The type is disks.
        +     * 
        + * + * DISKS = 1; + */ + public static final int DISKS_VALUE = 1; + + /** + * + * + *
        +     * The type is snapshots.
        +     * 
        + * + * SNAPSHOTS = 2; + */ + public static final int SNAPSHOTS_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 StorageType 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 StorageType forNumber(int value) { + switch (value) { + case 0: + return STORAGE_TYPE_UNSPECIFIED; + case 1: + return DISKS; + case 2: + return SNAPSHOTS; + 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 StorageType findValueByNumber(int number) { + return StorageType.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.vmmigration.v1.FetchStorageInventoryRequest.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final StorageType[] VALUES = values(); + + public static StorageType 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 StorageType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.vmmigration.v1.FetchStorageInventoryRequest.StorageType) + } + + public static final int SOURCE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object source_ = ""; + + /** + * + * + *
        +   * Required. The name of the Source.
        +   * 
        + * + * + * string source = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The source. + */ + @java.lang.Override + public java.lang.String getSource() { + java.lang.Object ref = source_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + source_ = s; + return s; + } + } + + /** + * + * + *
        +   * Required. The name of the Source.
        +   * 
        + * + * + * string source = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for source. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + source_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 2; + private int type_ = 0; + + /** + * + * + *
        +   * Required. The type of the storage inventory to fetch.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.FetchStorageInventoryRequest.StorageType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
        +   * Required. The type of the storage inventory to fetch.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.FetchStorageInventoryRequest.StorageType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest.StorageType getType() { + com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest.StorageType result = + com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest.StorageType.forNumber(type_); + return result == null + ? com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest.StorageType.UNRECOGNIZED + : result; + } + + public static final int FORCE_REFRESH_FIELD_NUMBER = 3; + private boolean forceRefresh_ = false; + + /** + * + * + *
        +   * Optional. If this flag is set to true, the source will be queried instead
        +   * of using cached results. Using this flag will make the call slower.
        +   * 
        + * + * bool force_refresh = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The forceRefresh. + */ + @java.lang.Override + public boolean getForceRefresh() { + return forceRefresh_; + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 4; + private int pageSize_ = 0; + + /** + * + * + *
        +   * Optional. The maximum number of VMs to return. The service may return
        +   * fewer than this value.
        +   * 
        + * + * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
        +   * Optional. A page token, received from a previous `FetchStorageInventory`
        +   * call. Provide this to retrieve the subsequent page. When paginating, all
        +   * other parameters provided to `FetchStorageInventory` must match the call
        +   * that provided the page token.
        +   * 
        + * + * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
        +   * Optional. A page token, received from a previous `FetchStorageInventory`
        +   * call. Provide this to retrieve the subsequent page. When paginating, all
        +   * other parameters provided to `FetchStorageInventory` must match the call
        +   * that provided the page token.
        +   * 
        + * + * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(source_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, source_); + } + if (type_ + != com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest.StorageType + .STORAGE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, type_); + } + if (forceRefresh_ != false) { + output.writeBool(3, forceRefresh_); + } + if (pageSize_ != 0) { + output.writeInt32(4, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(source_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, source_); + } + if (type_ + != com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest.StorageType + .STORAGE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); + } + if (forceRefresh_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, forceRefresh_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest other = + (com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest) obj; + + if (!getSource().equals(other.getSource())) return false; + if (type_ != other.type_) return false; + if (getForceRefresh() != other.getForceRefresh()) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSource().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + FORCE_REFRESH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForceRefresh()); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest 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.vmmigration.v1.FetchStorageInventoryRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest parseFrom( + 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.vmmigration.v1.FetchStorageInventoryRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest 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.vmmigration.v1.FetchStorageInventoryRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest 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.vmmigration.v1.FetchStorageInventoryRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest 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.vmmigration.v1.FetchStorageInventoryRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * Request message for
        +   * [fetchStorageInventory][google.cloud.vmmigration.v1.VmMigration.FetchStorageInventory].
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.FetchStorageInventoryRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.FetchStorageInventoryRequest) + com.google.cloud.vmmigration.v1.FetchStorageInventoryRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_FetchStorageInventoryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_FetchStorageInventoryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest.class, + com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + source_ = ""; + type_ = 0; + forceRefresh_ = false; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_FetchStorageInventoryRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest + getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest build() { + com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest buildPartial() { + com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest result = + new com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.source_ = source_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.forceRefresh_ = forceRefresh_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest) { + return mergeFrom((com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest other) { + if (other + == com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest.getDefaultInstance()) + return this; + if (!other.getSource().isEmpty()) { + source_ = other.source_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.getForceRefresh() != false) { + setForceRefresh(other.getForceRefresh()); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + 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: + { + source_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + forceRefresh_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + pageToken_ = 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 source_ = ""; + + /** + * + * + *
        +     * Required. The name of the Source.
        +     * 
        + * + * + * string source = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The source. + */ + public java.lang.String getSource() { + java.lang.Object ref = source_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + source_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Required. The name of the Source.
        +     * 
        + * + * + * string source = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for source. + */ + public com.google.protobuf.ByteString getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + source_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Required. The name of the Source.
        +     * 
        + * + * + * string source = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The source to set. + * @return This builder for chaining. + */ + public Builder setSource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The name of the Source.
        +     * 
        + * + * + * string source = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearSource() { + source_ = getDefaultInstance().getSource(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The name of the Source.
        +     * 
        + * + * + * string source = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for source to set. + * @return This builder for chaining. + */ + public Builder setSourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + source_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int type_ = 0; + + /** + * + * + *
        +     * Required. The type of the storage inventory to fetch.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.FetchStorageInventoryRequest.StorageType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
        +     * Required. The type of the storage inventory to fetch.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.FetchStorageInventoryRequest.StorageType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + type_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The type of the storage inventory to fetch.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.FetchStorageInventoryRequest.StorageType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest.StorageType getType() { + com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest.StorageType result = + com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest.StorageType.forNumber(type_); + return result == null + ? com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest.StorageType.UNRECOGNIZED + : result; + } + + /** + * + * + *
        +     * Required. The type of the storage inventory to fetch.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.FetchStorageInventoryRequest.StorageType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType( + com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest.StorageType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + type_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The type of the storage inventory to fetch.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.FetchStorageInventoryRequest.StorageType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000002); + type_ = 0; + onChanged(); + return this; + } + + private boolean forceRefresh_; + + /** + * + * + *
        +     * Optional. If this flag is set to true, the source will be queried instead
        +     * of using cached results. Using this flag will make the call slower.
        +     * 
        + * + * bool force_refresh = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The forceRefresh. + */ + @java.lang.Override + public boolean getForceRefresh() { + return forceRefresh_; + } + + /** + * + * + *
        +     * Optional. If this flag is set to true, the source will be queried instead
        +     * of using cached results. Using this flag will make the call slower.
        +     * 
        + * + * bool force_refresh = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The forceRefresh to set. + * @return This builder for chaining. + */ + public Builder setForceRefresh(boolean value) { + + forceRefresh_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. If this flag is set to true, the source will be queried instead
        +     * of using cached results. Using this flag will make the call slower.
        +     * 
        + * + * bool force_refresh = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearForceRefresh() { + bitField0_ = (bitField0_ & ~0x00000004); + forceRefresh_ = false; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
        +     * Optional. The maximum number of VMs to return. The service may return
        +     * fewer than this value.
        +     * 
        + * + * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
        +     * Optional. The maximum number of VMs to return. The service may return
        +     * fewer than this value.
        +     * 
        + * + * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The maximum number of VMs to return. The service may return
        +     * fewer than this value.
        +     * 
        + * + * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000008); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
        +     * Optional. A page token, received from a previous `FetchStorageInventory`
        +     * call. Provide this to retrieve the subsequent page. When paginating, all
        +     * other parameters provided to `FetchStorageInventory` must match the call
        +     * that provided the page token.
        +     * 
        + * + * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Optional. A page token, received from a previous `FetchStorageInventory`
        +     * call. Provide this to retrieve the subsequent page. When paginating, all
        +     * other parameters provided to `FetchStorageInventory` must match the call
        +     * that provided the page token.
        +     * 
        + * + * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Optional. A page token, received from a previous `FetchStorageInventory`
        +     * call. Provide this to retrieve the subsequent page. When paginating, all
        +     * other parameters provided to `FetchStorageInventory` must match the call
        +     * that provided the page token.
        +     * 
        + * + * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. A page token, received from a previous `FetchStorageInventory`
        +     * call. Provide this to retrieve the subsequent page. When paginating, all
        +     * other parameters provided to `FetchStorageInventory` must match the call
        +     * that provided the page token.
        +     * 
        + * + * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. A page token, received from a previous `FetchStorageInventory`
        +     * call. Provide this to retrieve the subsequent page. When paginating, all
        +     * other parameters provided to `FetchStorageInventory` must match the call
        +     * that provided the page token.
        +     * 
        + * + * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 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.vmmigration.v1.FetchStorageInventoryRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.FetchStorageInventoryRequest) + private static final com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest(); + } + + public static com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchStorageInventoryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.FetchStorageInventoryRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/FetchStorageInventoryRequestOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/FetchStorageInventoryRequestOrBuilder.java new file mode 100644 index 000000000000..e5566f94c5f1 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/FetchStorageInventoryRequestOrBuilder.java @@ -0,0 +1,146 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface FetchStorageInventoryRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.FetchStorageInventoryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Required. The name of the Source.
        +   * 
        + * + * + * string source = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The source. + */ + java.lang.String getSource(); + + /** + * + * + *
        +   * Required. The name of the Source.
        +   * 
        + * + * + * string source = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for source. + */ + com.google.protobuf.ByteString getSourceBytes(); + + /** + * + * + *
        +   * Required. The type of the storage inventory to fetch.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.FetchStorageInventoryRequest.StorageType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + + /** + * + * + *
        +   * Required. The type of the storage inventory to fetch.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.FetchStorageInventoryRequest.StorageType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The type. + */ + com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest.StorageType getType(); + + /** + * + * + *
        +   * Optional. If this flag is set to true, the source will be queried instead
        +   * of using cached results. Using this flag will make the call slower.
        +   * 
        + * + * bool force_refresh = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The forceRefresh. + */ + boolean getForceRefresh(); + + /** + * + * + *
        +   * Optional. The maximum number of VMs to return. The service may return
        +   * fewer than this value.
        +   * 
        + * + * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
        +   * Optional. A page token, received from a previous `FetchStorageInventory`
        +   * call. Provide this to retrieve the subsequent page. When paginating, all
        +   * other parameters provided to `FetchStorageInventory` must match the call
        +   * that provided the page token.
        +   * 
        + * + * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
        +   * Optional. A page token, received from a previous `FetchStorageInventory`
        +   * call. Provide this to retrieve the subsequent page. When paginating, all
        +   * other parameters provided to `FetchStorageInventory` must match the call
        +   * that provided the page token.
        +   * 
        + * + * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/FetchStorageInventoryResponse.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/FetchStorageInventoryResponse.java new file mode 100644 index 000000000000..f554634308de --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/FetchStorageInventoryResponse.java @@ -0,0 +1,1497 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * Response message for
        + * [fetchStorageInventory][google.cloud.vmmigration.v1.VmMigration.FetchStorageInventory].
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.FetchStorageInventoryResponse} + */ +public final class FetchStorageInventoryResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.FetchStorageInventoryResponse) + FetchStorageInventoryResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use FetchStorageInventoryResponse.newBuilder() to construct. + private FetchStorageInventoryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FetchStorageInventoryResponse() { + resources_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FetchStorageInventoryResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_FetchStorageInventoryResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_FetchStorageInventoryResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.FetchStorageInventoryResponse.class, + com.google.cloud.vmmigration.v1.FetchStorageInventoryResponse.Builder.class); + } + + private int bitField0_; + public static final int RESOURCES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List resources_; + + /** + * + * + *
        +   * The list of storage resources in the source.
        +   * 
        + * + * repeated .google.cloud.vmmigration.v1.SourceStorageResource resources = 1; + */ + @java.lang.Override + public java.util.List getResourcesList() { + return resources_; + } + + /** + * + * + *
        +   * The list of storage resources in the source.
        +   * 
        + * + * repeated .google.cloud.vmmigration.v1.SourceStorageResource resources = 1; + */ + @java.lang.Override + public java.util.List + getResourcesOrBuilderList() { + return resources_; + } + + /** + * + * + *
        +   * The list of storage resources in the source.
        +   * 
        + * + * repeated .google.cloud.vmmigration.v1.SourceStorageResource resources = 1; + */ + @java.lang.Override + public int getResourcesCount() { + return resources_.size(); + } + + /** + * + * + *
        +   * The list of storage resources in the source.
        +   * 
        + * + * repeated .google.cloud.vmmigration.v1.SourceStorageResource resources = 1; + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.SourceStorageResource getResources(int index) { + return resources_.get(index); + } + + /** + * + * + *
        +   * The list of storage resources in the source.
        +   * 
        + * + * repeated .google.cloud.vmmigration.v1.SourceStorageResource resources = 1; + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.SourceStorageResourceOrBuilder getResourcesOrBuilder( + int index) { + return resources_.get(index); + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
        +   * Output only. The timestamp when the source was last queried (if the result
        +   * is from the cache).
        +   * 
        + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
        +   * Output only. The timestamp when the source was last queried (if the result
        +   * is from the cache).
        +   * 
        + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
        +   * Output only. The timestamp when the source was last queried (if the result
        +   * is from the cache).
        +   * 
        + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
        +   * Output only. A token, which can be sent as `page_token` to retrieve the
        +   * next page. If this field is omitted, there are no subsequent pages.
        +   * 
        + * + * string next_page_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
        +   * Output only. A token, which can be sent as `page_token` to retrieve the
        +   * next page. If this field is omitted, there are no subsequent pages.
        +   * 
        + * + * string next_page_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < resources_.size(); i++) { + output.writeMessage(1, resources_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < resources_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, resources_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmmigration.v1.FetchStorageInventoryResponse)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.FetchStorageInventoryResponse other = + (com.google.cloud.vmmigration.v1.FetchStorageInventoryResponse) obj; + + if (!getResourcesList().equals(other.getResourcesList())) return false; + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getResourcesCount() > 0) { + hash = (37 * hash) + RESOURCES_FIELD_NUMBER; + hash = (53 * hash) + getResourcesList().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.FetchStorageInventoryResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.FetchStorageInventoryResponse 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.vmmigration.v1.FetchStorageInventoryResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.FetchStorageInventoryResponse parseFrom( + 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.vmmigration.v1.FetchStorageInventoryResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.FetchStorageInventoryResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.FetchStorageInventoryResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.FetchStorageInventoryResponse 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.vmmigration.v1.FetchStorageInventoryResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.FetchStorageInventoryResponse 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.vmmigration.v1.FetchStorageInventoryResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.FetchStorageInventoryResponse 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.vmmigration.v1.FetchStorageInventoryResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * Response message for
        +   * [fetchStorageInventory][google.cloud.vmmigration.v1.VmMigration.FetchStorageInventory].
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.FetchStorageInventoryResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.FetchStorageInventoryResponse) + com.google.cloud.vmmigration.v1.FetchStorageInventoryResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_FetchStorageInventoryResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_FetchStorageInventoryResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.FetchStorageInventoryResponse.class, + com.google.cloud.vmmigration.v1.FetchStorageInventoryResponse.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.FetchStorageInventoryResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getResourcesFieldBuilder(); + getUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (resourcesBuilder_ == null) { + resources_ = java.util.Collections.emptyList(); + } else { + resources_ = null; + resourcesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_FetchStorageInventoryResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.FetchStorageInventoryResponse + getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.FetchStorageInventoryResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.FetchStorageInventoryResponse build() { + com.google.cloud.vmmigration.v1.FetchStorageInventoryResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.FetchStorageInventoryResponse buildPartial() { + com.google.cloud.vmmigration.v1.FetchStorageInventoryResponse result = + new com.google.cloud.vmmigration.v1.FetchStorageInventoryResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.vmmigration.v1.FetchStorageInventoryResponse result) { + if (resourcesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + resources_ = java.util.Collections.unmodifiableList(resources_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.resources_ = resources_; + } else { + result.resources_ = resourcesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.vmmigration.v1.FetchStorageInventoryResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + 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.vmmigration.v1.FetchStorageInventoryResponse) { + return mergeFrom((com.google.cloud.vmmigration.v1.FetchStorageInventoryResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.FetchStorageInventoryResponse other) { + if (other + == com.google.cloud.vmmigration.v1.FetchStorageInventoryResponse.getDefaultInstance()) + return this; + if (resourcesBuilder_ == null) { + if (!other.resources_.isEmpty()) { + if (resources_.isEmpty()) { + resources_ = other.resources_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureResourcesIsMutable(); + resources_.addAll(other.resources_); + } + onChanged(); + } + } else { + if (!other.resources_.isEmpty()) { + if (resourcesBuilder_.isEmpty()) { + resourcesBuilder_.dispose(); + resourcesBuilder_ = null; + resources_ = other.resources_; + bitField0_ = (bitField0_ & ~0x00000001); + resourcesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getResourcesFieldBuilder() + : null; + } else { + resourcesBuilder_.addAllMessages(other.resources_); + } + } + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.vmmigration.v1.SourceStorageResource m = + input.readMessage( + com.google.cloud.vmmigration.v1.SourceStorageResource.parser(), + extensionRegistry); + if (resourcesBuilder_ == null) { + ensureResourcesIsMutable(); + resources_.add(m); + } else { + resourcesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List resources_ = + java.util.Collections.emptyList(); + + private void ensureResourcesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + resources_ = + new java.util.ArrayList( + resources_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.SourceStorageResource, + com.google.cloud.vmmigration.v1.SourceStorageResource.Builder, + com.google.cloud.vmmigration.v1.SourceStorageResourceOrBuilder> + resourcesBuilder_; + + /** + * + * + *
        +     * The list of storage resources in the source.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.SourceStorageResource resources = 1; + */ + public java.util.List + getResourcesList() { + if (resourcesBuilder_ == null) { + return java.util.Collections.unmodifiableList(resources_); + } else { + return resourcesBuilder_.getMessageList(); + } + } + + /** + * + * + *
        +     * The list of storage resources in the source.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.SourceStorageResource resources = 1; + */ + public int getResourcesCount() { + if (resourcesBuilder_ == null) { + return resources_.size(); + } else { + return resourcesBuilder_.getCount(); + } + } + + /** + * + * + *
        +     * The list of storage resources in the source.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.SourceStorageResource resources = 1; + */ + public com.google.cloud.vmmigration.v1.SourceStorageResource getResources(int index) { + if (resourcesBuilder_ == null) { + return resources_.get(index); + } else { + return resourcesBuilder_.getMessage(index); + } + } + + /** + * + * + *
        +     * The list of storage resources in the source.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.SourceStorageResource resources = 1; + */ + public Builder setResources( + int index, com.google.cloud.vmmigration.v1.SourceStorageResource value) { + if (resourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourcesIsMutable(); + resources_.set(index, value); + onChanged(); + } else { + resourcesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * The list of storage resources in the source.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.SourceStorageResource resources = 1; + */ + public Builder setResources( + int index, com.google.cloud.vmmigration.v1.SourceStorageResource.Builder builderForValue) { + if (resourcesBuilder_ == null) { + ensureResourcesIsMutable(); + resources_.set(index, builderForValue.build()); + onChanged(); + } else { + resourcesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * The list of storage resources in the source.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.SourceStorageResource resources = 1; + */ + public Builder addResources(com.google.cloud.vmmigration.v1.SourceStorageResource value) { + if (resourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourcesIsMutable(); + resources_.add(value); + onChanged(); + } else { + resourcesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
        +     * The list of storage resources in the source.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.SourceStorageResource resources = 1; + */ + public Builder addResources( + int index, com.google.cloud.vmmigration.v1.SourceStorageResource value) { + if (resourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourcesIsMutable(); + resources_.add(index, value); + onChanged(); + } else { + resourcesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * The list of storage resources in the source.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.SourceStorageResource resources = 1; + */ + public Builder addResources( + com.google.cloud.vmmigration.v1.SourceStorageResource.Builder builderForValue) { + if (resourcesBuilder_ == null) { + ensureResourcesIsMutable(); + resources_.add(builderForValue.build()); + onChanged(); + } else { + resourcesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * The list of storage resources in the source.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.SourceStorageResource resources = 1; + */ + public Builder addResources( + int index, com.google.cloud.vmmigration.v1.SourceStorageResource.Builder builderForValue) { + if (resourcesBuilder_ == null) { + ensureResourcesIsMutable(); + resources_.add(index, builderForValue.build()); + onChanged(); + } else { + resourcesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * The list of storage resources in the source.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.SourceStorageResource resources = 1; + */ + public Builder addAllResources( + java.lang.Iterable + values) { + if (resourcesBuilder_ == null) { + ensureResourcesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resources_); + onChanged(); + } else { + resourcesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
        +     * The list of storage resources in the source.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.SourceStorageResource resources = 1; + */ + public Builder clearResources() { + if (resourcesBuilder_ == null) { + resources_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + resourcesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * The list of storage resources in the source.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.SourceStorageResource resources = 1; + */ + public Builder removeResources(int index) { + if (resourcesBuilder_ == null) { + ensureResourcesIsMutable(); + resources_.remove(index); + onChanged(); + } else { + resourcesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
        +     * The list of storage resources in the source.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.SourceStorageResource resources = 1; + */ + public com.google.cloud.vmmigration.v1.SourceStorageResource.Builder getResourcesBuilder( + int index) { + return getResourcesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
        +     * The list of storage resources in the source.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.SourceStorageResource resources = 1; + */ + public com.google.cloud.vmmigration.v1.SourceStorageResourceOrBuilder getResourcesOrBuilder( + int index) { + if (resourcesBuilder_ == null) { + return resources_.get(index); + } else { + return resourcesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
        +     * The list of storage resources in the source.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.SourceStorageResource resources = 1; + */ + public java.util.List + getResourcesOrBuilderList() { + if (resourcesBuilder_ != null) { + return resourcesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(resources_); + } + } + + /** + * + * + *
        +     * The list of storage resources in the source.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.SourceStorageResource resources = 1; + */ + public com.google.cloud.vmmigration.v1.SourceStorageResource.Builder addResourcesBuilder() { + return getResourcesFieldBuilder() + .addBuilder(com.google.cloud.vmmigration.v1.SourceStorageResource.getDefaultInstance()); + } + + /** + * + * + *
        +     * The list of storage resources in the source.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.SourceStorageResource resources = 1; + */ + public com.google.cloud.vmmigration.v1.SourceStorageResource.Builder addResourcesBuilder( + int index) { + return getResourcesFieldBuilder() + .addBuilder( + index, com.google.cloud.vmmigration.v1.SourceStorageResource.getDefaultInstance()); + } + + /** + * + * + *
        +     * The list of storage resources in the source.
        +     * 
        + * + * repeated .google.cloud.vmmigration.v1.SourceStorageResource resources = 1; + */ + public java.util.List + getResourcesBuilderList() { + return getResourcesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.SourceStorageResource, + com.google.cloud.vmmigration.v1.SourceStorageResource.Builder, + com.google.cloud.vmmigration.v1.SourceStorageResourceOrBuilder> + getResourcesFieldBuilder() { + if (resourcesBuilder_ == null) { + resourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.SourceStorageResource, + com.google.cloud.vmmigration.v1.SourceStorageResource.Builder, + com.google.cloud.vmmigration.v1.SourceStorageResourceOrBuilder>( + resources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + resources_ = null; + } + return resourcesBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
        +     * Output only. The timestamp when the source was last queried (if the result
        +     * is from the cache).
        +     * 
        + * + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
        +     * Output only. The timestamp when the source was last queried (if the result
        +     * is from the cache).
        +     * 
        + * + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
        +     * Output only. The timestamp when the source was last queried (if the result
        +     * is from the cache).
        +     * 
        + * + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The timestamp when the source was last queried (if the result
        +     * is from the cache).
        +     * 
        + * + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The timestamp when the source was last queried (if the result
        +     * is from the cache).
        +     * 
        + * + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Output only. The timestamp when the source was last queried (if the result
        +     * is from the cache).
        +     * 
        + * + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The timestamp when the source was last queried (if the result
        +     * is from the cache).
        +     * 
        + * + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Output only. The timestamp when the source was last queried (if the result
        +     * is from the cache).
        +     * 
        + * + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
        +     * Output only. The timestamp when the source was last queried (if the result
        +     * is from the cache).
        +     * 
        + * + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
        +     * Output only. A token, which can be sent as `page_token` to retrieve the
        +     * next page. If this field is omitted, there are no subsequent pages.
        +     * 
        + * + * string next_page_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Output only. A token, which can be sent as `page_token` to retrieve the
        +     * next page. If this field is omitted, there are no subsequent pages.
        +     * 
        + * + * string next_page_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Output only. A token, which can be sent as `page_token` to retrieve the
        +     * next page. If this field is omitted, there are no subsequent pages.
        +     * 
        + * + * string next_page_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. A token, which can be sent as `page_token` to retrieve the
        +     * next page. If this field is omitted, there are no subsequent pages.
        +     * 
        + * + * string next_page_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. A token, which can be sent as `page_token` to retrieve the
        +     * next page. If this field is omitted, there are no subsequent pages.
        +     * 
        + * + * string next_page_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 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.vmmigration.v1.FetchStorageInventoryResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.FetchStorageInventoryResponse) + private static final com.google.cloud.vmmigration.v1.FetchStorageInventoryResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.FetchStorageInventoryResponse(); + } + + public static com.google.cloud.vmmigration.v1.FetchStorageInventoryResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchStorageInventoryResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.FetchStorageInventoryResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/FetchStorageInventoryResponseOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/FetchStorageInventoryResponseOrBuilder.java new file mode 100644 index 000000000000..c62878b5fa14 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/FetchStorageInventoryResponseOrBuilder.java @@ -0,0 +1,153 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface FetchStorageInventoryResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.FetchStorageInventoryResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * The list of storage resources in the source.
        +   * 
        + * + * repeated .google.cloud.vmmigration.v1.SourceStorageResource resources = 1; + */ + java.util.List getResourcesList(); + + /** + * + * + *
        +   * The list of storage resources in the source.
        +   * 
        + * + * repeated .google.cloud.vmmigration.v1.SourceStorageResource resources = 1; + */ + com.google.cloud.vmmigration.v1.SourceStorageResource getResources(int index); + + /** + * + * + *
        +   * The list of storage resources in the source.
        +   * 
        + * + * repeated .google.cloud.vmmigration.v1.SourceStorageResource resources = 1; + */ + int getResourcesCount(); + + /** + * + * + *
        +   * The list of storage resources in the source.
        +   * 
        + * + * repeated .google.cloud.vmmigration.v1.SourceStorageResource resources = 1; + */ + java.util.List + getResourcesOrBuilderList(); + + /** + * + * + *
        +   * The list of storage resources in the source.
        +   * 
        + * + * repeated .google.cloud.vmmigration.v1.SourceStorageResource resources = 1; + */ + com.google.cloud.vmmigration.v1.SourceStorageResourceOrBuilder getResourcesOrBuilder(int index); + + /** + * + * + *
        +   * Output only. The timestamp when the source was last queried (if the result
        +   * is from the cache).
        +   * 
        + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
        +   * Output only. The timestamp when the source was last queried (if the result
        +   * is from the cache).
        +   * 
        + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
        +   * Output only. The timestamp when the source was last queried (if the result
        +   * is from the cache).
        +   * 
        + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
        +   * Output only. A token, which can be sent as `page_token` to retrieve the
        +   * next page. If this field is omitted, there are no subsequent pages.
        +   * 
        + * + * string next_page_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
        +   * Output only. A token, which can be sent as `page_token` to retrieve the
        +   * next page. If this field is omitted, there are no subsequent pages.
        +   * 
        + * + * string next_page_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/GetDiskMigrationJobRequest.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/GetDiskMigrationJobRequest.java new file mode 100644 index 000000000000..c76daa7a10c5 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/GetDiskMigrationJobRequest.java @@ -0,0 +1,649 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * Request message for 'GetDiskMigrationJob' request.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.GetDiskMigrationJobRequest} + */ +public final class GetDiskMigrationJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.GetDiskMigrationJobRequest) + GetDiskMigrationJobRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetDiskMigrationJobRequest.newBuilder() to construct. + private GetDiskMigrationJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetDiskMigrationJobRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetDiskMigrationJobRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_GetDiskMigrationJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_GetDiskMigrationJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.GetDiskMigrationJobRequest.class, + com.google.cloud.vmmigration.v1.GetDiskMigrationJobRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
        +   * Required. The name of the DiskMigrationJob.
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
        +   * Required. The name of the DiskMigrationJob.
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmmigration.v1.GetDiskMigrationJobRequest)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.GetDiskMigrationJobRequest other = + (com.google.cloud.vmmigration.v1.GetDiskMigrationJobRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.GetDiskMigrationJobRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.GetDiskMigrationJobRequest 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.vmmigration.v1.GetDiskMigrationJobRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.GetDiskMigrationJobRequest parseFrom( + 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.vmmigration.v1.GetDiskMigrationJobRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.GetDiskMigrationJobRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.GetDiskMigrationJobRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.GetDiskMigrationJobRequest 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.vmmigration.v1.GetDiskMigrationJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.GetDiskMigrationJobRequest 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.vmmigration.v1.GetDiskMigrationJobRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.GetDiskMigrationJobRequest 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.vmmigration.v1.GetDiskMigrationJobRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * Request message for 'GetDiskMigrationJob' request.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.GetDiskMigrationJobRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.GetDiskMigrationJobRequest) + com.google.cloud.vmmigration.v1.GetDiskMigrationJobRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_GetDiskMigrationJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_GetDiskMigrationJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.GetDiskMigrationJobRequest.class, + com.google.cloud.vmmigration.v1.GetDiskMigrationJobRequest.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.GetDiskMigrationJobRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_GetDiskMigrationJobRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.GetDiskMigrationJobRequest getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.GetDiskMigrationJobRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.GetDiskMigrationJobRequest build() { + com.google.cloud.vmmigration.v1.GetDiskMigrationJobRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.GetDiskMigrationJobRequest buildPartial() { + com.google.cloud.vmmigration.v1.GetDiskMigrationJobRequest result = + new com.google.cloud.vmmigration.v1.GetDiskMigrationJobRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vmmigration.v1.GetDiskMigrationJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmmigration.v1.GetDiskMigrationJobRequest) { + return mergeFrom((com.google.cloud.vmmigration.v1.GetDiskMigrationJobRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.GetDiskMigrationJobRequest other) { + if (other == com.google.cloud.vmmigration.v1.GetDiskMigrationJobRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
        +     * Required. The name of the DiskMigrationJob.
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Required. The name of the DiskMigrationJob.
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Required. The name of the DiskMigrationJob.
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The name of the DiskMigrationJob.
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The name of the DiskMigrationJob.
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmmigration.v1.GetDiskMigrationJobRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.GetDiskMigrationJobRequest) + private static final com.google.cloud.vmmigration.v1.GetDiskMigrationJobRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.GetDiskMigrationJobRequest(); + } + + public static com.google.cloud.vmmigration.v1.GetDiskMigrationJobRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDiskMigrationJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.GetDiskMigrationJobRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/GetDiskMigrationJobRequestOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/GetDiskMigrationJobRequestOrBuilder.java new file mode 100644 index 000000000000..b9e4c2b028ff --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/GetDiskMigrationJobRequestOrBuilder.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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface GetDiskMigrationJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.GetDiskMigrationJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Required. The name of the DiskMigrationJob.
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
        +   * Required. The name of the DiskMigrationJob.
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/GetImageImportJobRequest.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/GetImageImportJobRequest.java new file mode 100644 index 000000000000..95984a2258ec --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/GetImageImportJobRequest.java @@ -0,0 +1,649 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * Request message for 'GetImageImportJob' call.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.GetImageImportJobRequest} + */ +public final class GetImageImportJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.GetImageImportJobRequest) + GetImageImportJobRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetImageImportJobRequest.newBuilder() to construct. + private GetImageImportJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetImageImportJobRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetImageImportJobRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_GetImageImportJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_GetImageImportJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.GetImageImportJobRequest.class, + com.google.cloud.vmmigration.v1.GetImageImportJobRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
        +   * Required. The ImageImportJob name.
        +   * 
        + * + * + * 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 ImageImportJob name.
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmmigration.v1.GetImageImportJobRequest)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.GetImageImportJobRequest other = + (com.google.cloud.vmmigration.v1.GetImageImportJobRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.GetImageImportJobRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.GetImageImportJobRequest 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.vmmigration.v1.GetImageImportJobRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.GetImageImportJobRequest parseFrom( + 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.vmmigration.v1.GetImageImportJobRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.GetImageImportJobRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.GetImageImportJobRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.GetImageImportJobRequest 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.vmmigration.v1.GetImageImportJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.GetImageImportJobRequest 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.vmmigration.v1.GetImageImportJobRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.GetImageImportJobRequest 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.vmmigration.v1.GetImageImportJobRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * Request message for 'GetImageImportJob' call.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.GetImageImportJobRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.GetImageImportJobRequest) + com.google.cloud.vmmigration.v1.GetImageImportJobRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_GetImageImportJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_GetImageImportJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.GetImageImportJobRequest.class, + com.google.cloud.vmmigration.v1.GetImageImportJobRequest.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.GetImageImportJobRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_GetImageImportJobRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.GetImageImportJobRequest getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.GetImageImportJobRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.GetImageImportJobRequest build() { + com.google.cloud.vmmigration.v1.GetImageImportJobRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.GetImageImportJobRequest buildPartial() { + com.google.cloud.vmmigration.v1.GetImageImportJobRequest result = + new com.google.cloud.vmmigration.v1.GetImageImportJobRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vmmigration.v1.GetImageImportJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmmigration.v1.GetImageImportJobRequest) { + return mergeFrom((com.google.cloud.vmmigration.v1.GetImageImportJobRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.GetImageImportJobRequest other) { + if (other == com.google.cloud.vmmigration.v1.GetImageImportJobRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
        +     * Required. The ImageImportJob name.
        +     * 
        + * + * + * 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 ImageImportJob name.
        +     * 
        + * + * + * 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 ImageImportJob name.
        +     * 
        + * + * + * 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 ImageImportJob name.
        +     * 
        + * + * + * 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 ImageImportJob name.
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmmigration.v1.GetImageImportJobRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.GetImageImportJobRequest) + private static final com.google.cloud.vmmigration.v1.GetImageImportJobRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.GetImageImportJobRequest(); + } + + public static com.google.cloud.vmmigration.v1.GetImageImportJobRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetImageImportJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.GetImageImportJobRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/GetImageImportJobRequestOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/GetImageImportJobRequestOrBuilder.java new file mode 100644 index 000000000000..20923d316d77 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/GetImageImportJobRequestOrBuilder.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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface GetImageImportJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.GetImageImportJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Required. The ImageImportJob name.
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
        +   * Required. The ImageImportJob name.
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/GetImageImportRequest.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/GetImageImportRequest.java new file mode 100644 index 000000000000..3e362730393f --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/GetImageImportRequest.java @@ -0,0 +1,649 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * Request message for 'GetImageImport' call.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.GetImageImportRequest} + */ +public final class GetImageImportRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.GetImageImportRequest) + GetImageImportRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetImageImportRequest.newBuilder() to construct. + private GetImageImportRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetImageImportRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetImageImportRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_GetImageImportRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_GetImageImportRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.GetImageImportRequest.class, + com.google.cloud.vmmigration.v1.GetImageImportRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
        +   * Required. The ImageImport name.
        +   * 
        + * + * + * 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 ImageImport name.
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmmigration.v1.GetImageImportRequest)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.GetImageImportRequest other = + (com.google.cloud.vmmigration.v1.GetImageImportRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.GetImageImportRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.GetImageImportRequest 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.vmmigration.v1.GetImageImportRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.GetImageImportRequest parseFrom( + 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.vmmigration.v1.GetImageImportRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.GetImageImportRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.GetImageImportRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.GetImageImportRequest 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.vmmigration.v1.GetImageImportRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.GetImageImportRequest 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.vmmigration.v1.GetImageImportRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.GetImageImportRequest 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.vmmigration.v1.GetImageImportRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * Request message for 'GetImageImport' call.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.GetImageImportRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.GetImageImportRequest) + com.google.cloud.vmmigration.v1.GetImageImportRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_GetImageImportRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_GetImageImportRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.GetImageImportRequest.class, + com.google.cloud.vmmigration.v1.GetImageImportRequest.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.GetImageImportRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_GetImageImportRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.GetImageImportRequest getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.GetImageImportRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.GetImageImportRequest build() { + com.google.cloud.vmmigration.v1.GetImageImportRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.GetImageImportRequest buildPartial() { + com.google.cloud.vmmigration.v1.GetImageImportRequest result = + new com.google.cloud.vmmigration.v1.GetImageImportRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vmmigration.v1.GetImageImportRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmmigration.v1.GetImageImportRequest) { + return mergeFrom((com.google.cloud.vmmigration.v1.GetImageImportRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.GetImageImportRequest other) { + if (other == com.google.cloud.vmmigration.v1.GetImageImportRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
        +     * Required. The ImageImport name.
        +     * 
        + * + * + * 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 ImageImport name.
        +     * 
        + * + * + * 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 ImageImport name.
        +     * 
        + * + * + * 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 ImageImport name.
        +     * 
        + * + * + * 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 ImageImport name.
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmmigration.v1.GetImageImportRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.GetImageImportRequest) + private static final com.google.cloud.vmmigration.v1.GetImageImportRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.GetImageImportRequest(); + } + + public static com.google.cloud.vmmigration.v1.GetImageImportRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetImageImportRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.GetImageImportRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/GetImageImportRequestOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/GetImageImportRequestOrBuilder.java new file mode 100644 index 000000000000..0bffbcdbe9e2 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/GetImageImportRequestOrBuilder.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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface GetImageImportRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.GetImageImportRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Required. The ImageImport name.
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
        +   * Required. The ImageImport name.
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/Group.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/Group.java index 890ff5e5637d..3f75c2a453b1 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/Group.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/Group.java @@ -44,6 +44,7 @@ private Group() { name_ = ""; description_ = ""; displayName_ = ""; + migrationTargetType_ = 0; } @java.lang.Override @@ -67,6 +68,168 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.vmmigration.v1.Group.Builder.class); } + /** + * + * + *
        +   * The possible types of the group.
        +   * 
        + * + * Protobuf enum {@code google.cloud.vmmigration.v1.Group.MigrationTargetType} + */ + public enum MigrationTargetType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
        +     * Group type is not specified. This defaults to Compute Engine targets.
        +     * 
        + * + * MIGRATION_TARGET_TYPE_UNSPECIFIED = 0; + */ + MIGRATION_TARGET_TYPE_UNSPECIFIED(0), + /** + * + * + *
        +     * All MigratingVMs in the group must have Compute Engine targets.
        +     * 
        + * + * MIGRATION_TARGET_TYPE_GCE = 1; + */ + MIGRATION_TARGET_TYPE_GCE(1), + /** + * + * + *
        +     * All MigratingVMs in the group must have Compute Engine Disks targets.
        +     * 
        + * + * MIGRATION_TARGET_TYPE_DISKS = 2; + */ + MIGRATION_TARGET_TYPE_DISKS(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
        +     * Group type is not specified. This defaults to Compute Engine targets.
        +     * 
        + * + * MIGRATION_TARGET_TYPE_UNSPECIFIED = 0; + */ + public static final int MIGRATION_TARGET_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
        +     * All MigratingVMs in the group must have Compute Engine targets.
        +     * 
        + * + * MIGRATION_TARGET_TYPE_GCE = 1; + */ + public static final int MIGRATION_TARGET_TYPE_GCE_VALUE = 1; + + /** + * + * + *
        +     * All MigratingVMs in the group must have Compute Engine Disks targets.
        +     * 
        + * + * MIGRATION_TARGET_TYPE_DISKS = 2; + */ + public static final int MIGRATION_TARGET_TYPE_DISKS_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 MigrationTargetType 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 MigrationTargetType forNumber(int value) { + switch (value) { + case 0: + return MIGRATION_TARGET_TYPE_UNSPECIFIED; + case 1: + return MIGRATION_TARGET_TYPE_GCE; + case 2: + return MIGRATION_TARGET_TYPE_DISKS; + 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 MigrationTargetType findValueByNumber(int number) { + return MigrationTargetType.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.vmmigration.v1.Group.getDescriptor().getEnumTypes().get(0); + } + + private static final MigrationTargetType[] VALUES = values(); + + public static MigrationTargetType 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 MigrationTargetType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.vmmigration.v1.Group.MigrationTargetType) + } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @@ -331,6 +494,49 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } + public static final int MIGRATION_TARGET_TYPE_FIELD_NUMBER = 6; + private int migrationTargetType_ = 0; + + /** + * + * + *
        +   * Immutable. The target type of this group.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Group.MigrationTargetType migration_target_type = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for migrationTargetType. + */ + @java.lang.Override + public int getMigrationTargetTypeValue() { + return migrationTargetType_; + } + + /** + * + * + *
        +   * Immutable. The target type of this group.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Group.MigrationTargetType migration_target_type = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The migrationTargetType. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.Group.MigrationTargetType getMigrationTargetType() { + com.google.cloud.vmmigration.v1.Group.MigrationTargetType result = + com.google.cloud.vmmigration.v1.Group.MigrationTargetType.forNumber(migrationTargetType_); + return result == null + ? com.google.cloud.vmmigration.v1.Group.MigrationTargetType.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -360,6 +566,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_); } + if (migrationTargetType_ + != com.google.cloud.vmmigration.v1.Group.MigrationTargetType + .MIGRATION_TARGET_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, migrationTargetType_); + } getUnknownFields().writeTo(output); } @@ -384,6 +596,12 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); } + if (migrationTargetType_ + != com.google.cloud.vmmigration.v1.Group.MigrationTargetType + .MIGRATION_TARGET_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, migrationTargetType_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -410,6 +628,7 @@ public boolean equals(final java.lang.Object obj) { } if (!getDescription().equals(other.getDescription())) return false; if (!getDisplayName().equals(other.getDisplayName())) return false; + if (migrationTargetType_ != other.migrationTargetType_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -435,6 +654,8 @@ public int hashCode() { hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + MIGRATION_TARGET_TYPE_FIELD_NUMBER; + hash = (53 * hash) + migrationTargetType_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -598,6 +819,7 @@ public Builder clear() { } description_ = ""; displayName_ = ""; + migrationTargetType_ = 0; return this; } @@ -652,6 +874,9 @@ private void buildPartial0(com.google.cloud.vmmigration.v1.Group result) { if (((from_bitField0_ & 0x00000010) != 0)) { result.displayName_ = displayName_; } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.migrationTargetType_ = migrationTargetType_; + } result.bitField0_ |= to_bitField0_; } @@ -721,6 +946,9 @@ public Builder mergeFrom(com.google.cloud.vmmigration.v1.Group other) { bitField0_ |= 0x00000010; onChanged(); } + if (other.migrationTargetType_ != 0) { + setMigrationTargetTypeValue(other.getMigrationTargetTypeValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -777,6 +1005,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 42 + case 48: + { + migrationTargetType_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1553,6 +1787,114 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { return this; } + private int migrationTargetType_ = 0; + + /** + * + * + *
        +     * Immutable. The target type of this group.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Group.MigrationTargetType migration_target_type = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for migrationTargetType. + */ + @java.lang.Override + public int getMigrationTargetTypeValue() { + return migrationTargetType_; + } + + /** + * + * + *
        +     * Immutable. The target type of this group.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Group.MigrationTargetType migration_target_type = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The enum numeric value on the wire for migrationTargetType to set. + * @return This builder for chaining. + */ + public Builder setMigrationTargetTypeValue(int value) { + migrationTargetType_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Immutable. The target type of this group.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Group.MigrationTargetType migration_target_type = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The migrationTargetType. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.Group.MigrationTargetType getMigrationTargetType() { + com.google.cloud.vmmigration.v1.Group.MigrationTargetType result = + com.google.cloud.vmmigration.v1.Group.MigrationTargetType.forNumber(migrationTargetType_); + return result == null + ? com.google.cloud.vmmigration.v1.Group.MigrationTargetType.UNRECOGNIZED + : result; + } + + /** + * + * + *
        +     * Immutable. The target type of this group.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Group.MigrationTargetType migration_target_type = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The migrationTargetType to set. + * @return This builder for chaining. + */ + public Builder setMigrationTargetType( + com.google.cloud.vmmigration.v1.Group.MigrationTargetType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + migrationTargetType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Immutable. The target type of this group.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Group.MigrationTargetType migration_target_type = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearMigrationTargetType() { + bitField0_ = (bitField0_ & ~0x00000020); + migrationTargetType_ = 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-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/GroupOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/GroupOrBuilder.java index 7524ad7c2a10..b7a63c37ea65 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/GroupOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/GroupOrBuilder.java @@ -181,4 +181,34 @@ public interface GroupOrBuilder * @return The bytes for displayName. */ com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
        +   * Immutable. The target type of this group.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Group.MigrationTargetType migration_target_type = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for migrationTargetType. + */ + int getMigrationTargetTypeValue(); + + /** + * + * + *
        +   * Immutable. The target type of this group.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Group.MigrationTargetType migration_target_type = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The migrationTargetType. + */ + com.google.cloud.vmmigration.v1.Group.MigrationTargetType getMigrationTargetType(); } diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ImageImport.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ImageImport.java new file mode 100644 index 000000000000..8f9379aba4f9 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ImageImport.java @@ -0,0 +1,2974 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * ImageImport describes the configuration of the image import to run.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.ImageImport} + */ +public final class ImageImport extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.ImageImport) + ImageImportOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ImageImport.newBuilder() to construct. + private ImageImport(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ImageImport() { + name_ = ""; + recentImageImportJobs_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ImageImport(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ImageImport_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ImageImport_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.ImageImport.class, + com.google.cloud.vmmigration.v1.ImageImport.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 { + CLOUD_STORAGE_URI(2), + 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 2: + return CLOUD_STORAGE_URI; + case 0: + return SOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + private int targetDefaultsCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object targetDefaults_; + + public enum TargetDefaultsCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + DISK_IMAGE_TARGET_DEFAULTS(4), + MACHINE_IMAGE_TARGET_DEFAULTS(7), + TARGETDEFAULTS_NOT_SET(0); + private final int value; + + private TargetDefaultsCase(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 TargetDefaultsCase valueOf(int value) { + return forNumber(value); + } + + public static TargetDefaultsCase forNumber(int value) { + switch (value) { + case 4: + return DISK_IMAGE_TARGET_DEFAULTS; + case 7: + return MACHINE_IMAGE_TARGET_DEFAULTS; + case 0: + return TARGETDEFAULTS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public TargetDefaultsCase getTargetDefaultsCase() { + return TargetDefaultsCase.forNumber(targetDefaultsCase_); + } + + public static final int CLOUD_STORAGE_URI_FIELD_NUMBER = 2; + + /** + * + * + *
        +   * Immutable. The path to the Cloud Storage file from which the image should
        +   * be imported.
        +   * 
        + * + * string cloud_storage_uri = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return Whether the cloudStorageUri field is set. + */ + public boolean hasCloudStorageUri() { + return sourceCase_ == 2; + } + + /** + * + * + *
        +   * Immutable. The path to the Cloud Storage file from which the image should
        +   * be imported.
        +   * 
        + * + * string cloud_storage_uri = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The cloudStorageUri. + */ + public java.lang.String getCloudStorageUri() { + java.lang.Object ref = ""; + if (sourceCase_ == 2) { + ref = source_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 2) { + source_ = s; + } + return s; + } + } + + /** + * + * + *
        +   * Immutable. The path to the Cloud Storage file from which the image should
        +   * be imported.
        +   * 
        + * + * string cloud_storage_uri = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for cloudStorageUri. + */ + public com.google.protobuf.ByteString getCloudStorageUriBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 2) { + ref = source_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 2) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISK_IMAGE_TARGET_DEFAULTS_FIELD_NUMBER = 4; + + /** + * + * + *
        +   * Immutable. Target details for importing a disk image, will be used by
        +   * ImageImportJob.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.DiskImageTargetDetails disk_image_target_defaults = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the diskImageTargetDefaults field is set. + */ + @java.lang.Override + public boolean hasDiskImageTargetDefaults() { + return targetDefaultsCase_ == 4; + } + + /** + * + * + *
        +   * Immutable. Target details for importing a disk image, will be used by
        +   * ImageImportJob.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.DiskImageTargetDetails disk_image_target_defaults = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The diskImageTargetDefaults. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.DiskImageTargetDetails getDiskImageTargetDefaults() { + if (targetDefaultsCase_ == 4) { + return (com.google.cloud.vmmigration.v1.DiskImageTargetDetails) targetDefaults_; + } + return com.google.cloud.vmmigration.v1.DiskImageTargetDetails.getDefaultInstance(); + } + + /** + * + * + *
        +   * Immutable. Target details for importing a disk image, will be used by
        +   * ImageImportJob.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.DiskImageTargetDetails disk_image_target_defaults = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.DiskImageTargetDetailsOrBuilder + getDiskImageTargetDefaultsOrBuilder() { + if (targetDefaultsCase_ == 4) { + return (com.google.cloud.vmmigration.v1.DiskImageTargetDetails) targetDefaults_; + } + return com.google.cloud.vmmigration.v1.DiskImageTargetDetails.getDefaultInstance(); + } + + public static final int MACHINE_IMAGE_TARGET_DEFAULTS_FIELD_NUMBER = 7; + + /** + * + * + *
        +   * Immutable. Target details for importing a machine image, will be used by
        +   * ImageImportJob.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.MachineImageTargetDetails machine_image_target_defaults = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the machineImageTargetDefaults field is set. + */ + @java.lang.Override + public boolean hasMachineImageTargetDefaults() { + return targetDefaultsCase_ == 7; + } + + /** + * + * + *
        +   * Immutable. Target details for importing a machine image, will be used by
        +   * ImageImportJob.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.MachineImageTargetDetails machine_image_target_defaults = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The machineImageTargetDefaults. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.MachineImageTargetDetails getMachineImageTargetDefaults() { + if (targetDefaultsCase_ == 7) { + return (com.google.cloud.vmmigration.v1.MachineImageTargetDetails) targetDefaults_; + } + return com.google.cloud.vmmigration.v1.MachineImageTargetDetails.getDefaultInstance(); + } + + /** + * + * + *
        +   * Immutable. Target details for importing a machine image, will be used by
        +   * ImageImportJob.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.MachineImageTargetDetails machine_image_target_defaults = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.MachineImageTargetDetailsOrBuilder + getMachineImageTargetDefaultsOrBuilder() { + if (targetDefaultsCase_ == 7) { + return (com.google.cloud.vmmigration.v1.MachineImageTargetDetails) targetDefaults_; + } + return com.google.cloud.vmmigration.v1.MachineImageTargetDetails.getDefaultInstance(); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
        +   * Output only. The resource path of the ImageImport.
        +   * 
        + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
        +   * Output only. The resource path of the ImageImport.
        +   * 
        + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
        +   * Output only. The time the image import was created.
        +   * 
        + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
        +   * Output only. The time the image import was created.
        +   * 
        + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
        +   * Output only. The time the image import was created.
        +   * 
        + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int RECENT_IMAGE_IMPORT_JOBS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private java.util.List recentImageImportJobs_; + + /** + * + * + *
        +   * Output only. The result of the most recent runs for this ImageImport. All
        +   * jobs for this ImageImport can be listed via ListImageImportJobs.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportJob recent_image_import_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getRecentImageImportJobsList() { + return recentImageImportJobs_; + } + + /** + * + * + *
        +   * Output only. The result of the most recent runs for this ImageImport. All
        +   * jobs for this ImageImport can be listed via ListImageImportJobs.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportJob recent_image_import_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getRecentImageImportJobsOrBuilderList() { + return recentImageImportJobs_; + } + + /** + * + * + *
        +   * Output only. The result of the most recent runs for this ImageImport. All
        +   * jobs for this ImageImport can be listed via ListImageImportJobs.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportJob recent_image_import_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getRecentImageImportJobsCount() { + return recentImageImportJobs_.size(); + } + + /** + * + * + *
        +   * Output only. The result of the most recent runs for this ImageImport. All
        +   * jobs for this ImageImport can be listed via ListImageImportJobs.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportJob recent_image_import_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ImageImportJob getRecentImageImportJobs(int index) { + return recentImageImportJobs_.get(index); + } + + /** + * + * + *
        +   * Output only. The result of the most recent runs for this ImageImport. All
        +   * jobs for this ImageImport can be listed via ListImageImportJobs.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportJob recent_image_import_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ImageImportJobOrBuilder getRecentImageImportJobsOrBuilder( + int index) { + return recentImageImportJobs_.get(index); + } + + public static final int ENCRYPTION_FIELD_NUMBER = 6; + private com.google.cloud.vmmigration.v1.Encryption encryption_; + + /** + * + * + *
        +   * Immutable. The encryption details used by the image import process during
        +   * the image adaptation for Compute Engine.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the encryption field is set. + */ + @java.lang.Override + public boolean hasEncryption() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
        +   * Immutable. The encryption details used by the image import process during
        +   * the image adaptation for Compute Engine.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The encryption. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.Encryption getEncryption() { + return encryption_ == null + ? com.google.cloud.vmmigration.v1.Encryption.getDefaultInstance() + : encryption_; + } + + /** + * + * + *
        +   * Immutable. The encryption details used by the image import process during
        +   * the image adaptation for Compute Engine.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.EncryptionOrBuilder getEncryptionOrBuilder() { + return encryption_ == null + ? com.google.cloud.vmmigration.v1.Encryption.getDefaultInstance() + : encryption_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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 (sourceCase_ == 2) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, source_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCreateTime()); + } + if (targetDefaultsCase_ == 4) { + output.writeMessage( + 4, (com.google.cloud.vmmigration.v1.DiskImageTargetDetails) targetDefaults_); + } + for (int i = 0; i < recentImageImportJobs_.size(); i++) { + output.writeMessage(5, recentImageImportJobs_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getEncryption()); + } + if (targetDefaultsCase_ == 7) { + output.writeMessage( + 7, (com.google.cloud.vmmigration.v1.MachineImageTargetDetails) targetDefaults_); + } + 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 (sourceCase_ == 2) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, source_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (targetDefaultsCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.vmmigration.v1.DiskImageTargetDetails) targetDefaults_); + } + for (int i = 0; i < recentImageImportJobs_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, recentImageImportJobs_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getEncryption()); + } + if (targetDefaultsCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.cloud.vmmigration.v1.MachineImageTargetDetails) targetDefaults_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.vmmigration.v1.ImageImport)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.ImageImport other = + (com.google.cloud.vmmigration.v1.ImageImport) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (!getRecentImageImportJobsList().equals(other.getRecentImageImportJobsList())) return false; + if (hasEncryption() != other.hasEncryption()) return false; + if (hasEncryption()) { + if (!getEncryption().equals(other.getEncryption())) return false; + } + if (!getSourceCase().equals(other.getSourceCase())) return false; + switch (sourceCase_) { + case 2: + if (!getCloudStorageUri().equals(other.getCloudStorageUri())) return false; + break; + case 0: + default: + } + if (!getTargetDefaultsCase().equals(other.getTargetDefaultsCase())) return false; + switch (targetDefaultsCase_) { + case 4: + if (!getDiskImageTargetDefaults().equals(other.getDiskImageTargetDefaults())) return false; + break; + case 7: + if (!getMachineImageTargetDefaults().equals(other.getMachineImageTargetDefaults())) + return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (getRecentImageImportJobsCount() > 0) { + hash = (37 * hash) + RECENT_IMAGE_IMPORT_JOBS_FIELD_NUMBER; + hash = (53 * hash) + getRecentImageImportJobsList().hashCode(); + } + if (hasEncryption()) { + hash = (37 * hash) + ENCRYPTION_FIELD_NUMBER; + hash = (53 * hash) + getEncryption().hashCode(); + } + switch (sourceCase_) { + case 2: + hash = (37 * hash) + CLOUD_STORAGE_URI_FIELD_NUMBER; + hash = (53 * hash) + getCloudStorageUri().hashCode(); + break; + case 0: + default: + } + switch (targetDefaultsCase_) { + case 4: + hash = (37 * hash) + DISK_IMAGE_TARGET_DEFAULTS_FIELD_NUMBER; + hash = (53 * hash) + getDiskImageTargetDefaults().hashCode(); + break; + case 7: + hash = (37 * hash) + MACHINE_IMAGE_TARGET_DEFAULTS_FIELD_NUMBER; + hash = (53 * hash) + getMachineImageTargetDefaults().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.ImageImport parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.ImageImport 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.vmmigration.v1.ImageImport parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.ImageImport parseFrom( + 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.vmmigration.v1.ImageImport parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.ImageImport parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.ImageImport parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.ImageImport 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.vmmigration.v1.ImageImport parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.ImageImport 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.vmmigration.v1.ImageImport parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.ImageImport 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.vmmigration.v1.ImageImport prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
        +   * ImageImport describes the configuration of the image import to run.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.ImageImport} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.ImageImport) + com.google.cloud.vmmigration.v1.ImageImportOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ImageImport_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ImageImport_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.ImageImport.class, + com.google.cloud.vmmigration.v1.ImageImport.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.ImageImport.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + getRecentImageImportJobsFieldBuilder(); + getEncryptionFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (diskImageTargetDefaultsBuilder_ != null) { + diskImageTargetDefaultsBuilder_.clear(); + } + if (machineImageTargetDefaultsBuilder_ != null) { + machineImageTargetDefaultsBuilder_.clear(); + } + name_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + if (recentImageImportJobsBuilder_ == null) { + recentImageImportJobs_ = java.util.Collections.emptyList(); + } else { + recentImageImportJobs_ = null; + recentImageImportJobsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + encryption_ = null; + if (encryptionBuilder_ != null) { + encryptionBuilder_.dispose(); + encryptionBuilder_ = null; + } + sourceCase_ = 0; + source_ = null; + targetDefaultsCase_ = 0; + targetDefaults_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ImageImport_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.ImageImport getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.ImageImport.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.ImageImport build() { + com.google.cloud.vmmigration.v1.ImageImport result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.ImageImport buildPartial() { + com.google.cloud.vmmigration.v1.ImageImport result = + new com.google.cloud.vmmigration.v1.ImageImport(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.vmmigration.v1.ImageImport result) { + if (recentImageImportJobsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + recentImageImportJobs_ = java.util.Collections.unmodifiableList(recentImageImportJobs_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.recentImageImportJobs_ = recentImageImportJobs_; + } else { + result.recentImageImportJobs_ = recentImageImportJobsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.vmmigration.v1.ImageImport result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.encryption_ = encryptionBuilder_ == null ? encryption_ : encryptionBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.vmmigration.v1.ImageImport result) { + result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + result.targetDefaultsCase_ = targetDefaultsCase_; + result.targetDefaults_ = this.targetDefaults_; + if (targetDefaultsCase_ == 4 && diskImageTargetDefaultsBuilder_ != null) { + result.targetDefaults_ = diskImageTargetDefaultsBuilder_.build(); + } + if (targetDefaultsCase_ == 7 && machineImageTargetDefaultsBuilder_ != null) { + result.targetDefaults_ = machineImageTargetDefaultsBuilder_.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.vmmigration.v1.ImageImport) { + return mergeFrom((com.google.cloud.vmmigration.v1.ImageImport) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.ImageImport other) { + if (other == com.google.cloud.vmmigration.v1.ImageImport.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (recentImageImportJobsBuilder_ == null) { + if (!other.recentImageImportJobs_.isEmpty()) { + if (recentImageImportJobs_.isEmpty()) { + recentImageImportJobs_ = other.recentImageImportJobs_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureRecentImageImportJobsIsMutable(); + recentImageImportJobs_.addAll(other.recentImageImportJobs_); + } + onChanged(); + } + } else { + if (!other.recentImageImportJobs_.isEmpty()) { + if (recentImageImportJobsBuilder_.isEmpty()) { + recentImageImportJobsBuilder_.dispose(); + recentImageImportJobsBuilder_ = null; + recentImageImportJobs_ = other.recentImageImportJobs_; + bitField0_ = (bitField0_ & ~0x00000020); + recentImageImportJobsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRecentImageImportJobsFieldBuilder() + : null; + } else { + recentImageImportJobsBuilder_.addAllMessages(other.recentImageImportJobs_); + } + } + } + if (other.hasEncryption()) { + mergeEncryption(other.getEncryption()); + } + switch (other.getSourceCase()) { + case CLOUD_STORAGE_URI: + { + sourceCase_ = 2; + source_ = other.source_; + onChanged(); + break; + } + case SOURCE_NOT_SET: + { + break; + } + } + switch (other.getTargetDefaultsCase()) { + case DISK_IMAGE_TARGET_DEFAULTS: + { + mergeDiskImageTargetDefaults(other.getDiskImageTargetDefaults()); + break; + } + case MACHINE_IMAGE_TARGET_DEFAULTS: + { + mergeMachineImageTargetDefaults(other.getMachineImageTargetDefaults()); + break; + } + case TARGETDEFAULTS_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: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 2; + source_ = s; + break; + } // case 18 + case 26: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 26 + case 34: + { + input.readMessage( + getDiskImageTargetDefaultsFieldBuilder().getBuilder(), extensionRegistry); + targetDefaultsCase_ = 4; + break; + } // case 34 + case 42: + { + com.google.cloud.vmmigration.v1.ImageImportJob m = + input.readMessage( + com.google.cloud.vmmigration.v1.ImageImportJob.parser(), extensionRegistry); + if (recentImageImportJobsBuilder_ == null) { + ensureRecentImageImportJobsIsMutable(); + recentImageImportJobs_.add(m); + } else { + recentImageImportJobsBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: + { + input.readMessage(getEncryptionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 58: + { + input.readMessage( + getMachineImageTargetDefaultsFieldBuilder().getBuilder(), extensionRegistry); + targetDefaultsCase_ = 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 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 targetDefaultsCase_ = 0; + private java.lang.Object targetDefaults_; + + public TargetDefaultsCase getTargetDefaultsCase() { + return TargetDefaultsCase.forNumber(targetDefaultsCase_); + } + + public Builder clearTargetDefaults() { + targetDefaultsCase_ = 0; + targetDefaults_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
        +     * Immutable. The path to the Cloud Storage file from which the image should
        +     * be imported.
        +     * 
        + * + * string cloud_storage_uri = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return Whether the cloudStorageUri field is set. + */ + @java.lang.Override + public boolean hasCloudStorageUri() { + return sourceCase_ == 2; + } + + /** + * + * + *
        +     * Immutable. The path to the Cloud Storage file from which the image should
        +     * be imported.
        +     * 
        + * + * string cloud_storage_uri = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The cloudStorageUri. + */ + @java.lang.Override + public java.lang.String getCloudStorageUri() { + java.lang.Object ref = ""; + if (sourceCase_ == 2) { + ref = source_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 2) { + source_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Immutable. The path to the Cloud Storage file from which the image should
        +     * be imported.
        +     * 
        + * + * string cloud_storage_uri = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for cloudStorageUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCloudStorageUriBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 2) { + ref = source_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 2) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Immutable. The path to the Cloud Storage file from which the image should
        +     * be imported.
        +     * 
        + * + * string cloud_storage_uri = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The cloudStorageUri to set. + * @return This builder for chaining. + */ + public Builder setCloudStorageUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceCase_ = 2; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Immutable. The path to the Cloud Storage file from which the image should
        +     * be imported.
        +     * 
        + * + * string cloud_storage_uri = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearCloudStorageUri() { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Immutable. The path to the Cloud Storage file from which the image should
        +     * be imported.
        +     * 
        + * + * string cloud_storage_uri = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The bytes for cloudStorageUri to set. + * @return This builder for chaining. + */ + public Builder setCloudStorageUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceCase_ = 2; + source_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.DiskImageTargetDetails, + com.google.cloud.vmmigration.v1.DiskImageTargetDetails.Builder, + com.google.cloud.vmmigration.v1.DiskImageTargetDetailsOrBuilder> + diskImageTargetDefaultsBuilder_; + + /** + * + * + *
        +     * Immutable. Target details for importing a disk image, will be used by
        +     * ImageImportJob.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DiskImageTargetDetails disk_image_target_defaults = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the diskImageTargetDefaults field is set. + */ + @java.lang.Override + public boolean hasDiskImageTargetDefaults() { + return targetDefaultsCase_ == 4; + } + + /** + * + * + *
        +     * Immutable. Target details for importing a disk image, will be used by
        +     * ImageImportJob.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DiskImageTargetDetails disk_image_target_defaults = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The diskImageTargetDefaults. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.DiskImageTargetDetails getDiskImageTargetDefaults() { + if (diskImageTargetDefaultsBuilder_ == null) { + if (targetDefaultsCase_ == 4) { + return (com.google.cloud.vmmigration.v1.DiskImageTargetDetails) targetDefaults_; + } + return com.google.cloud.vmmigration.v1.DiskImageTargetDetails.getDefaultInstance(); + } else { + if (targetDefaultsCase_ == 4) { + return diskImageTargetDefaultsBuilder_.getMessage(); + } + return com.google.cloud.vmmigration.v1.DiskImageTargetDetails.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Immutable. Target details for importing a disk image, will be used by
        +     * ImageImportJob.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DiskImageTargetDetails disk_image_target_defaults = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setDiskImageTargetDefaults( + com.google.cloud.vmmigration.v1.DiskImageTargetDetails value) { + if (diskImageTargetDefaultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + targetDefaults_ = value; + onChanged(); + } else { + diskImageTargetDefaultsBuilder_.setMessage(value); + } + targetDefaultsCase_ = 4; + return this; + } + + /** + * + * + *
        +     * Immutable. Target details for importing a disk image, will be used by
        +     * ImageImportJob.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DiskImageTargetDetails disk_image_target_defaults = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setDiskImageTargetDefaults( + com.google.cloud.vmmigration.v1.DiskImageTargetDetails.Builder builderForValue) { + if (diskImageTargetDefaultsBuilder_ == null) { + targetDefaults_ = builderForValue.build(); + onChanged(); + } else { + diskImageTargetDefaultsBuilder_.setMessage(builderForValue.build()); + } + targetDefaultsCase_ = 4; + return this; + } + + /** + * + * + *
        +     * Immutable. Target details for importing a disk image, will be used by
        +     * ImageImportJob.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DiskImageTargetDetails disk_image_target_defaults = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder mergeDiskImageTargetDefaults( + com.google.cloud.vmmigration.v1.DiskImageTargetDetails value) { + if (diskImageTargetDefaultsBuilder_ == null) { + if (targetDefaultsCase_ == 4 + && targetDefaults_ + != com.google.cloud.vmmigration.v1.DiskImageTargetDetails.getDefaultInstance()) { + targetDefaults_ = + com.google.cloud.vmmigration.v1.DiskImageTargetDetails.newBuilder( + (com.google.cloud.vmmigration.v1.DiskImageTargetDetails) targetDefaults_) + .mergeFrom(value) + .buildPartial(); + } else { + targetDefaults_ = value; + } + onChanged(); + } else { + if (targetDefaultsCase_ == 4) { + diskImageTargetDefaultsBuilder_.mergeFrom(value); + } else { + diskImageTargetDefaultsBuilder_.setMessage(value); + } + } + targetDefaultsCase_ = 4; + return this; + } + + /** + * + * + *
        +     * Immutable. Target details for importing a disk image, will be used by
        +     * ImageImportJob.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DiskImageTargetDetails disk_image_target_defaults = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder clearDiskImageTargetDefaults() { + if (diskImageTargetDefaultsBuilder_ == null) { + if (targetDefaultsCase_ == 4) { + targetDefaultsCase_ = 0; + targetDefaults_ = null; + onChanged(); + } + } else { + if (targetDefaultsCase_ == 4) { + targetDefaultsCase_ = 0; + targetDefaults_ = null; + } + diskImageTargetDefaultsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Immutable. Target details for importing a disk image, will be used by
        +     * ImageImportJob.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DiskImageTargetDetails disk_image_target_defaults = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.vmmigration.v1.DiskImageTargetDetails.Builder + getDiskImageTargetDefaultsBuilder() { + return getDiskImageTargetDefaultsFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Immutable. Target details for importing a disk image, will be used by
        +     * ImageImportJob.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DiskImageTargetDetails disk_image_target_defaults = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.DiskImageTargetDetailsOrBuilder + getDiskImageTargetDefaultsOrBuilder() { + if ((targetDefaultsCase_ == 4) && (diskImageTargetDefaultsBuilder_ != null)) { + return diskImageTargetDefaultsBuilder_.getMessageOrBuilder(); + } else { + if (targetDefaultsCase_ == 4) { + return (com.google.cloud.vmmigration.v1.DiskImageTargetDetails) targetDefaults_; + } + return com.google.cloud.vmmigration.v1.DiskImageTargetDetails.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Immutable. Target details for importing a disk image, will be used by
        +     * ImageImportJob.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DiskImageTargetDetails disk_image_target_defaults = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.DiskImageTargetDetails, + com.google.cloud.vmmigration.v1.DiskImageTargetDetails.Builder, + com.google.cloud.vmmigration.v1.DiskImageTargetDetailsOrBuilder> + getDiskImageTargetDefaultsFieldBuilder() { + if (diskImageTargetDefaultsBuilder_ == null) { + if (!(targetDefaultsCase_ == 4)) { + targetDefaults_ = + com.google.cloud.vmmigration.v1.DiskImageTargetDetails.getDefaultInstance(); + } + diskImageTargetDefaultsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.DiskImageTargetDetails, + com.google.cloud.vmmigration.v1.DiskImageTargetDetails.Builder, + com.google.cloud.vmmigration.v1.DiskImageTargetDetailsOrBuilder>( + (com.google.cloud.vmmigration.v1.DiskImageTargetDetails) targetDefaults_, + getParentForChildren(), + isClean()); + targetDefaults_ = null; + } + targetDefaultsCase_ = 4; + onChanged(); + return diskImageTargetDefaultsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.MachineImageTargetDetails, + com.google.cloud.vmmigration.v1.MachineImageTargetDetails.Builder, + com.google.cloud.vmmigration.v1.MachineImageTargetDetailsOrBuilder> + machineImageTargetDefaultsBuilder_; + + /** + * + * + *
        +     * Immutable. Target details for importing a machine image, will be used by
        +     * ImageImportJob.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.MachineImageTargetDetails machine_image_target_defaults = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the machineImageTargetDefaults field is set. + */ + @java.lang.Override + public boolean hasMachineImageTargetDefaults() { + return targetDefaultsCase_ == 7; + } + + /** + * + * + *
        +     * Immutable. Target details for importing a machine image, will be used by
        +     * ImageImportJob.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.MachineImageTargetDetails machine_image_target_defaults = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The machineImageTargetDefaults. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.MachineImageTargetDetails + getMachineImageTargetDefaults() { + if (machineImageTargetDefaultsBuilder_ == null) { + if (targetDefaultsCase_ == 7) { + return (com.google.cloud.vmmigration.v1.MachineImageTargetDetails) targetDefaults_; + } + return com.google.cloud.vmmigration.v1.MachineImageTargetDetails.getDefaultInstance(); + } else { + if (targetDefaultsCase_ == 7) { + return machineImageTargetDefaultsBuilder_.getMessage(); + } + return com.google.cloud.vmmigration.v1.MachineImageTargetDetails.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Immutable. Target details for importing a machine image, will be used by
        +     * ImageImportJob.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.MachineImageTargetDetails machine_image_target_defaults = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setMachineImageTargetDefaults( + com.google.cloud.vmmigration.v1.MachineImageTargetDetails value) { + if (machineImageTargetDefaultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + targetDefaults_ = value; + onChanged(); + } else { + machineImageTargetDefaultsBuilder_.setMessage(value); + } + targetDefaultsCase_ = 7; + return this; + } + + /** + * + * + *
        +     * Immutable. Target details for importing a machine image, will be used by
        +     * ImageImportJob.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.MachineImageTargetDetails machine_image_target_defaults = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setMachineImageTargetDefaults( + com.google.cloud.vmmigration.v1.MachineImageTargetDetails.Builder builderForValue) { + if (machineImageTargetDefaultsBuilder_ == null) { + targetDefaults_ = builderForValue.build(); + onChanged(); + } else { + machineImageTargetDefaultsBuilder_.setMessage(builderForValue.build()); + } + targetDefaultsCase_ = 7; + return this; + } + + /** + * + * + *
        +     * Immutable. Target details for importing a machine image, will be used by
        +     * ImageImportJob.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.MachineImageTargetDetails machine_image_target_defaults = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder mergeMachineImageTargetDefaults( + com.google.cloud.vmmigration.v1.MachineImageTargetDetails value) { + if (machineImageTargetDefaultsBuilder_ == null) { + if (targetDefaultsCase_ == 7 + && targetDefaults_ + != com.google.cloud.vmmigration.v1.MachineImageTargetDetails.getDefaultInstance()) { + targetDefaults_ = + com.google.cloud.vmmigration.v1.MachineImageTargetDetails.newBuilder( + (com.google.cloud.vmmigration.v1.MachineImageTargetDetails) targetDefaults_) + .mergeFrom(value) + .buildPartial(); + } else { + targetDefaults_ = value; + } + onChanged(); + } else { + if (targetDefaultsCase_ == 7) { + machineImageTargetDefaultsBuilder_.mergeFrom(value); + } else { + machineImageTargetDefaultsBuilder_.setMessage(value); + } + } + targetDefaultsCase_ = 7; + return this; + } + + /** + * + * + *
        +     * Immutable. Target details for importing a machine image, will be used by
        +     * ImageImportJob.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.MachineImageTargetDetails machine_image_target_defaults = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder clearMachineImageTargetDefaults() { + if (machineImageTargetDefaultsBuilder_ == null) { + if (targetDefaultsCase_ == 7) { + targetDefaultsCase_ = 0; + targetDefaults_ = null; + onChanged(); + } + } else { + if (targetDefaultsCase_ == 7) { + targetDefaultsCase_ = 0; + targetDefaults_ = null; + } + machineImageTargetDefaultsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Immutable. Target details for importing a machine image, will be used by
        +     * ImageImportJob.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.MachineImageTargetDetails machine_image_target_defaults = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.vmmigration.v1.MachineImageTargetDetails.Builder + getMachineImageTargetDefaultsBuilder() { + return getMachineImageTargetDefaultsFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Immutable. Target details for importing a machine image, will be used by
        +     * ImageImportJob.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.MachineImageTargetDetails machine_image_target_defaults = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.MachineImageTargetDetailsOrBuilder + getMachineImageTargetDefaultsOrBuilder() { + if ((targetDefaultsCase_ == 7) && (machineImageTargetDefaultsBuilder_ != null)) { + return machineImageTargetDefaultsBuilder_.getMessageOrBuilder(); + } else { + if (targetDefaultsCase_ == 7) { + return (com.google.cloud.vmmigration.v1.MachineImageTargetDetails) targetDefaults_; + } + return com.google.cloud.vmmigration.v1.MachineImageTargetDetails.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Immutable. Target details for importing a machine image, will be used by
        +     * ImageImportJob.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.MachineImageTargetDetails machine_image_target_defaults = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.MachineImageTargetDetails, + com.google.cloud.vmmigration.v1.MachineImageTargetDetails.Builder, + com.google.cloud.vmmigration.v1.MachineImageTargetDetailsOrBuilder> + getMachineImageTargetDefaultsFieldBuilder() { + if (machineImageTargetDefaultsBuilder_ == null) { + if (!(targetDefaultsCase_ == 7)) { + targetDefaults_ = + com.google.cloud.vmmigration.v1.MachineImageTargetDetails.getDefaultInstance(); + } + machineImageTargetDefaultsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.MachineImageTargetDetails, + com.google.cloud.vmmigration.v1.MachineImageTargetDetails.Builder, + com.google.cloud.vmmigration.v1.MachineImageTargetDetailsOrBuilder>( + (com.google.cloud.vmmigration.v1.MachineImageTargetDetails) targetDefaults_, + getParentForChildren(), + isClean()); + targetDefaults_ = null; + } + targetDefaultsCase_ = 7; + onChanged(); + return machineImageTargetDefaultsBuilder_; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
        +     * Output only. The resource path of the ImageImport.
        +     * 
        + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Output only. The resource path of the ImageImport.
        +     * 
        + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Output only. The resource path of the ImageImport.
        +     * 
        + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The resource path of the ImageImport.
        +     * 
        + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The resource path of the ImageImport.
        +     * 
        + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
        +     * Output only. The time the image import was created.
        +     * 
        + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
        +     * Output only. The time the image import was created.
        +     * 
        + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
        +     * Output only. The time the image import was created.
        +     * 
        + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The time the image import was created.
        +     * 
        + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The time the image import was created.
        +     * 
        + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Output only. The time the image import was created.
        +     * 
        + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000010); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The time the image import was created.
        +     * 
        + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Output only. The time the image import was created.
        +     * 
        + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
        +     * Output only. The time the image import was created.
        +     * 
        + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private java.util.List recentImageImportJobs_ = + java.util.Collections.emptyList(); + + private void ensureRecentImageImportJobsIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + recentImageImportJobs_ = + new java.util.ArrayList( + recentImageImportJobs_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.ImageImportJob, + com.google.cloud.vmmigration.v1.ImageImportJob.Builder, + com.google.cloud.vmmigration.v1.ImageImportJobOrBuilder> + recentImageImportJobsBuilder_; + + /** + * + * + *
        +     * Output only. The result of the most recent runs for this ImageImport. All
        +     * jobs for this ImageImport can be listed via ListImageImportJobs.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportJob recent_image_import_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getRecentImageImportJobsList() { + if (recentImageImportJobsBuilder_ == null) { + return java.util.Collections.unmodifiableList(recentImageImportJobs_); + } else { + return recentImageImportJobsBuilder_.getMessageList(); + } + } + + /** + * + * + *
        +     * Output only. The result of the most recent runs for this ImageImport. All
        +     * jobs for this ImageImport can be listed via ListImageImportJobs.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportJob recent_image_import_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getRecentImageImportJobsCount() { + if (recentImageImportJobsBuilder_ == null) { + return recentImageImportJobs_.size(); + } else { + return recentImageImportJobsBuilder_.getCount(); + } + } + + /** + * + * + *
        +     * Output only. The result of the most recent runs for this ImageImport. All
        +     * jobs for this ImageImport can be listed via ListImageImportJobs.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportJob recent_image_import_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.ImageImportJob getRecentImageImportJobs(int index) { + if (recentImageImportJobsBuilder_ == null) { + return recentImageImportJobs_.get(index); + } else { + return recentImageImportJobsBuilder_.getMessage(index); + } + } + + /** + * + * + *
        +     * Output only. The result of the most recent runs for this ImageImport. All
        +     * jobs for this ImageImport can be listed via ListImageImportJobs.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportJob recent_image_import_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setRecentImageImportJobs( + int index, com.google.cloud.vmmigration.v1.ImageImportJob value) { + if (recentImageImportJobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecentImageImportJobsIsMutable(); + recentImageImportJobs_.set(index, value); + onChanged(); + } else { + recentImageImportJobsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * Output only. The result of the most recent runs for this ImageImport. All
        +     * jobs for this ImageImport can be listed via ListImageImportJobs.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportJob recent_image_import_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setRecentImageImportJobs( + int index, com.google.cloud.vmmigration.v1.ImageImportJob.Builder builderForValue) { + if (recentImageImportJobsBuilder_ == null) { + ensureRecentImageImportJobsIsMutable(); + recentImageImportJobs_.set(index, builderForValue.build()); + onChanged(); + } else { + recentImageImportJobsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Output only. The result of the most recent runs for this ImageImport. All
        +     * jobs for this ImageImport can be listed via ListImageImportJobs.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportJob recent_image_import_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addRecentImageImportJobs(com.google.cloud.vmmigration.v1.ImageImportJob value) { + if (recentImageImportJobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecentImageImportJobsIsMutable(); + recentImageImportJobs_.add(value); + onChanged(); + } else { + recentImageImportJobsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
        +     * Output only. The result of the most recent runs for this ImageImport. All
        +     * jobs for this ImageImport can be listed via ListImageImportJobs.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportJob recent_image_import_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addRecentImageImportJobs( + int index, com.google.cloud.vmmigration.v1.ImageImportJob value) { + if (recentImageImportJobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecentImageImportJobsIsMutable(); + recentImageImportJobs_.add(index, value); + onChanged(); + } else { + recentImageImportJobsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * Output only. The result of the most recent runs for this ImageImport. All
        +     * jobs for this ImageImport can be listed via ListImageImportJobs.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportJob recent_image_import_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addRecentImageImportJobs( + com.google.cloud.vmmigration.v1.ImageImportJob.Builder builderForValue) { + if (recentImageImportJobsBuilder_ == null) { + ensureRecentImageImportJobsIsMutable(); + recentImageImportJobs_.add(builderForValue.build()); + onChanged(); + } else { + recentImageImportJobsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Output only. The result of the most recent runs for this ImageImport. All
        +     * jobs for this ImageImport can be listed via ListImageImportJobs.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportJob recent_image_import_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addRecentImageImportJobs( + int index, com.google.cloud.vmmigration.v1.ImageImportJob.Builder builderForValue) { + if (recentImageImportJobsBuilder_ == null) { + ensureRecentImageImportJobsIsMutable(); + recentImageImportJobs_.add(index, builderForValue.build()); + onChanged(); + } else { + recentImageImportJobsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Output only. The result of the most recent runs for this ImageImport. All
        +     * jobs for this ImageImport can be listed via ListImageImportJobs.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportJob recent_image_import_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllRecentImageImportJobs( + java.lang.Iterable values) { + if (recentImageImportJobsBuilder_ == null) { + ensureRecentImageImportJobsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, recentImageImportJobs_); + onChanged(); + } else { + recentImageImportJobsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
        +     * Output only. The result of the most recent runs for this ImageImport. All
        +     * jobs for this ImageImport can be listed via ListImageImportJobs.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportJob recent_image_import_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearRecentImageImportJobs() { + if (recentImageImportJobsBuilder_ == null) { + recentImageImportJobs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + recentImageImportJobsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Output only. The result of the most recent runs for this ImageImport. All
        +     * jobs for this ImageImport can be listed via ListImageImportJobs.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportJob recent_image_import_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeRecentImageImportJobs(int index) { + if (recentImageImportJobsBuilder_ == null) { + ensureRecentImageImportJobsIsMutable(); + recentImageImportJobs_.remove(index); + onChanged(); + } else { + recentImageImportJobsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
        +     * Output only. The result of the most recent runs for this ImageImport. All
        +     * jobs for this ImageImport can be listed via ListImageImportJobs.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportJob recent_image_import_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.ImageImportJob.Builder getRecentImageImportJobsBuilder( + int index) { + return getRecentImageImportJobsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
        +     * Output only. The result of the most recent runs for this ImageImport. All
        +     * jobs for this ImageImport can be listed via ListImageImportJobs.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportJob recent_image_import_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.ImageImportJobOrBuilder + getRecentImageImportJobsOrBuilder(int index) { + if (recentImageImportJobsBuilder_ == null) { + return recentImageImportJobs_.get(index); + } else { + return recentImageImportJobsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
        +     * Output only. The result of the most recent runs for this ImageImport. All
        +     * jobs for this ImageImport can be listed via ListImageImportJobs.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportJob recent_image_import_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getRecentImageImportJobsOrBuilderList() { + if (recentImageImportJobsBuilder_ != null) { + return recentImageImportJobsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(recentImageImportJobs_); + } + } + + /** + * + * + *
        +     * Output only. The result of the most recent runs for this ImageImport. All
        +     * jobs for this ImageImport can be listed via ListImageImportJobs.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportJob recent_image_import_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.ImageImportJob.Builder + addRecentImageImportJobsBuilder() { + return getRecentImageImportJobsFieldBuilder() + .addBuilder(com.google.cloud.vmmigration.v1.ImageImportJob.getDefaultInstance()); + } + + /** + * + * + *
        +     * Output only. The result of the most recent runs for this ImageImport. All
        +     * jobs for this ImageImport can be listed via ListImageImportJobs.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportJob recent_image_import_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.ImageImportJob.Builder addRecentImageImportJobsBuilder( + int index) { + return getRecentImageImportJobsFieldBuilder() + .addBuilder(index, com.google.cloud.vmmigration.v1.ImageImportJob.getDefaultInstance()); + } + + /** + * + * + *
        +     * Output only. The result of the most recent runs for this ImageImport. All
        +     * jobs for this ImageImport can be listed via ListImageImportJobs.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportJob recent_image_import_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getRecentImageImportJobsBuilderList() { + return getRecentImageImportJobsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.ImageImportJob, + com.google.cloud.vmmigration.v1.ImageImportJob.Builder, + com.google.cloud.vmmigration.v1.ImageImportJobOrBuilder> + getRecentImageImportJobsFieldBuilder() { + if (recentImageImportJobsBuilder_ == null) { + recentImageImportJobsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.ImageImportJob, + com.google.cloud.vmmigration.v1.ImageImportJob.Builder, + com.google.cloud.vmmigration.v1.ImageImportJobOrBuilder>( + recentImageImportJobs_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); + recentImageImportJobs_ = null; + } + return recentImageImportJobsBuilder_; + } + + private com.google.cloud.vmmigration.v1.Encryption encryption_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.Encryption, + com.google.cloud.vmmigration.v1.Encryption.Builder, + com.google.cloud.vmmigration.v1.EncryptionOrBuilder> + encryptionBuilder_; + + /** + * + * + *
        +     * Immutable. The encryption details used by the image import process during
        +     * the image adaptation for Compute Engine.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the encryption field is set. + */ + public boolean hasEncryption() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
        +     * Immutable. The encryption details used by the image import process during
        +     * the image adaptation for Compute Engine.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The encryption. + */ + public com.google.cloud.vmmigration.v1.Encryption getEncryption() { + if (encryptionBuilder_ == null) { + return encryption_ == null + ? com.google.cloud.vmmigration.v1.Encryption.getDefaultInstance() + : encryption_; + } else { + return encryptionBuilder_.getMessage(); + } + } + + /** + * + * + *
        +     * Immutable. The encryption details used by the image import process during
        +     * the image adaptation for Compute Engine.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setEncryption(com.google.cloud.vmmigration.v1.Encryption value) { + if (encryptionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + encryption_ = value; + } else { + encryptionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Immutable. The encryption details used by the image import process during
        +     * the image adaptation for Compute Engine.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setEncryption( + com.google.cloud.vmmigration.v1.Encryption.Builder builderForValue) { + if (encryptionBuilder_ == null) { + encryption_ = builderForValue.build(); + } else { + encryptionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Immutable. The encryption details used by the image import process during
        +     * the image adaptation for Compute Engine.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder mergeEncryption(com.google.cloud.vmmigration.v1.Encryption value) { + if (encryptionBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && encryption_ != null + && encryption_ != com.google.cloud.vmmigration.v1.Encryption.getDefaultInstance()) { + getEncryptionBuilder().mergeFrom(value); + } else { + encryption_ = value; + } + } else { + encryptionBuilder_.mergeFrom(value); + } + if (encryption_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Immutable. The encryption details used by the image import process during
        +     * the image adaptation for Compute Engine.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder clearEncryption() { + bitField0_ = (bitField0_ & ~0x00000040); + encryption_ = null; + if (encryptionBuilder_ != null) { + encryptionBuilder_.dispose(); + encryptionBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Immutable. The encryption details used by the image import process during
        +     * the image adaptation for Compute Engine.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.vmmigration.v1.Encryption.Builder getEncryptionBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getEncryptionFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Immutable. The encryption details used by the image import process during
        +     * the image adaptation for Compute Engine.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.vmmigration.v1.EncryptionOrBuilder getEncryptionOrBuilder() { + if (encryptionBuilder_ != null) { + return encryptionBuilder_.getMessageOrBuilder(); + } else { + return encryption_ == null + ? com.google.cloud.vmmigration.v1.Encryption.getDefaultInstance() + : encryption_; + } + } + + /** + * + * + *
        +     * Immutable. The encryption details used by the image import process during
        +     * the image adaptation for Compute Engine.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.Encryption, + com.google.cloud.vmmigration.v1.Encryption.Builder, + com.google.cloud.vmmigration.v1.EncryptionOrBuilder> + getEncryptionFieldBuilder() { + if (encryptionBuilder_ == null) { + encryptionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.Encryption, + com.google.cloud.vmmigration.v1.Encryption.Builder, + com.google.cloud.vmmigration.v1.EncryptionOrBuilder>( + getEncryption(), getParentForChildren(), isClean()); + encryption_ = null; + } + return encryptionBuilder_; + } + + @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.vmmigration.v1.ImageImport) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.ImageImport) + private static final com.google.cloud.vmmigration.v1.ImageImport DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.ImageImport(); + } + + public static com.google.cloud.vmmigration.v1.ImageImport getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageImport parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.ImageImport getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ImageImportJob.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ImageImportJob.java new file mode 100644 index 000000000000..3b1af385d43c --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ImageImportJob.java @@ -0,0 +1,4737 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * ImageImportJob describes the progress and result of an image import.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.ImageImportJob} + */ +public final class ImageImportJob extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.ImageImportJob) + ImageImportJobOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ImageImportJob.newBuilder() to construct. + private ImageImportJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ImageImportJob() { + name_ = ""; + createdResources_ = com.google.protobuf.LazyStringArrayList.emptyList(); + state_ = 0; + errors_ = java.util.Collections.emptyList(); + warnings_ = java.util.Collections.emptyList(); + steps_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ImageImportJob(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ImageImportJob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ImageImportJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.ImageImportJob.class, + com.google.cloud.vmmigration.v1.ImageImportJob.Builder.class); + } + + /** + * + * + *
        +   * Possible states of the image import.
        +   * 
        + * + * Protobuf enum {@code google.cloud.vmmigration.v1.ImageImportJob.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
        +     * The state is unknown.
        +     * 
        + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
        +     * The image import has not yet started.
        +     * 
        + * + * PENDING = 1; + */ + PENDING(1), + /** + * + * + *
        +     * The image import is active and running.
        +     * 
        + * + * RUNNING = 2; + */ + RUNNING(2), + /** + * + * + *
        +     * The image import has finished successfully.
        +     * 
        + * + * SUCCEEDED = 3; + */ + SUCCEEDED(3), + /** + * + * + *
        +     * The image import has finished with errors.
        +     * 
        + * + * FAILED = 4; + */ + FAILED(4), + /** + * + * + *
        +     * The image import is being cancelled.
        +     * 
        + * + * CANCELLING = 5; + */ + CANCELLING(5), + /** + * + * + *
        +     * The image import was cancelled.
        +     * 
        + * + * CANCELLED = 6; + */ + CANCELLED(6), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
        +     * The state is unknown.
        +     * 
        + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
        +     * The image import has not yet started.
        +     * 
        + * + * PENDING = 1; + */ + public static final int PENDING_VALUE = 1; + + /** + * + * + *
        +     * The image import is active and running.
        +     * 
        + * + * RUNNING = 2; + */ + public static final int RUNNING_VALUE = 2; + + /** + * + * + *
        +     * The image import has finished successfully.
        +     * 
        + * + * SUCCEEDED = 3; + */ + public static final int SUCCEEDED_VALUE = 3; + + /** + * + * + *
        +     * The image import has finished with errors.
        +     * 
        + * + * FAILED = 4; + */ + public static final int FAILED_VALUE = 4; + + /** + * + * + *
        +     * The image import is being cancelled.
        +     * 
        + * + * CANCELLING = 5; + */ + public static final int CANCELLING_VALUE = 5; + + /** + * + * + *
        +     * The image import was cancelled.
        +     * 
        + * + * CANCELLED = 6; + */ + public static final int CANCELLED_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 State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return PENDING; + case 2: + return RUNNING; + case 3: + return SUCCEEDED; + case 4: + return FAILED; + case 5: + return CANCELLING; + case 6: + 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 State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.ImageImportJob.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.vmmigration.v1.ImageImportJob.State) + } + + 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 { + CLOUD_STORAGE_URI(10), + 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 10: + return CLOUD_STORAGE_URI; + case 0: + return SOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + private int targetDetailsCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object targetDetails_; + + public enum TargetDetailsCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + DISK_IMAGE_TARGET_DETAILS(3), + MACHINE_IMAGE_TARGET_DETAILS(11), + TARGETDETAILS_NOT_SET(0); + private final int value; + + private TargetDetailsCase(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 TargetDetailsCase valueOf(int value) { + return forNumber(value); + } + + public static TargetDetailsCase forNumber(int value) { + switch (value) { + case 3: + return DISK_IMAGE_TARGET_DETAILS; + case 11: + return MACHINE_IMAGE_TARGET_DETAILS; + case 0: + return TARGETDETAILS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public TargetDetailsCase getTargetDetailsCase() { + return TargetDetailsCase.forNumber(targetDetailsCase_); + } + + public static final int CLOUD_STORAGE_URI_FIELD_NUMBER = 10; + + /** + * + * + *
        +   * Output only. The path to the Cloud Storage file from which the image
        +   * should be imported.
        +   * 
        + * + * string cloud_storage_uri = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the cloudStorageUri field is set. + */ + public boolean hasCloudStorageUri() { + return sourceCase_ == 10; + } + + /** + * + * + *
        +   * Output only. The path to the Cloud Storage file from which the image
        +   * should be imported.
        +   * 
        + * + * string cloud_storage_uri = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The cloudStorageUri. + */ + public java.lang.String getCloudStorageUri() { + java.lang.Object ref = ""; + if (sourceCase_ == 10) { + ref = source_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 10) { + source_ = s; + } + return s; + } + } + + /** + * + * + *
        +   * Output only. The path to the Cloud Storage file from which the image
        +   * should be imported.
        +   * 
        + * + * string cloud_storage_uri = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for cloudStorageUri. + */ + public com.google.protobuf.ByteString getCloudStorageUriBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 10) { + ref = source_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 10) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISK_IMAGE_TARGET_DETAILS_FIELD_NUMBER = 3; + + /** + * + * + *
        +   * Output only. Target details used to import a disk image.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.DiskImageTargetDetails disk_image_target_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the diskImageTargetDetails field is set. + */ + @java.lang.Override + public boolean hasDiskImageTargetDetails() { + return targetDetailsCase_ == 3; + } + + /** + * + * + *
        +   * Output only. Target details used to import a disk image.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.DiskImageTargetDetails disk_image_target_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The diskImageTargetDetails. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.DiskImageTargetDetails getDiskImageTargetDetails() { + if (targetDetailsCase_ == 3) { + return (com.google.cloud.vmmigration.v1.DiskImageTargetDetails) targetDetails_; + } + return com.google.cloud.vmmigration.v1.DiskImageTargetDetails.getDefaultInstance(); + } + + /** + * + * + *
        +   * Output only. Target details used to import a disk image.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.DiskImageTargetDetails disk_image_target_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.DiskImageTargetDetailsOrBuilder + getDiskImageTargetDetailsOrBuilder() { + if (targetDetailsCase_ == 3) { + return (com.google.cloud.vmmigration.v1.DiskImageTargetDetails) targetDetails_; + } + return com.google.cloud.vmmigration.v1.DiskImageTargetDetails.getDefaultInstance(); + } + + public static final int MACHINE_IMAGE_TARGET_DETAILS_FIELD_NUMBER = 11; + + /** + * + * + *
        +   * Output only. Target details used to import a machine image.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.MachineImageTargetDetails machine_image_target_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the machineImageTargetDetails field is set. + */ + @java.lang.Override + public boolean hasMachineImageTargetDetails() { + return targetDetailsCase_ == 11; + } + + /** + * + * + *
        +   * Output only. Target details used to import a machine image.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.MachineImageTargetDetails machine_image_target_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The machineImageTargetDetails. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.MachineImageTargetDetails getMachineImageTargetDetails() { + if (targetDetailsCase_ == 11) { + return (com.google.cloud.vmmigration.v1.MachineImageTargetDetails) targetDetails_; + } + return com.google.cloud.vmmigration.v1.MachineImageTargetDetails.getDefaultInstance(); + } + + /** + * + * + *
        +   * Output only. Target details used to import a machine image.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.MachineImageTargetDetails machine_image_target_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.MachineImageTargetDetailsOrBuilder + getMachineImageTargetDetailsOrBuilder() { + if (targetDetailsCase_ == 11) { + return (com.google.cloud.vmmigration.v1.MachineImageTargetDetails) targetDetails_; + } + return com.google.cloud.vmmigration.v1.MachineImageTargetDetails.getDefaultInstance(); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
        +   * Output only. The resource path of the ImageImportJob.
        +   * 
        + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
        +   * Output only. The resource path of the ImageImportJob.
        +   * 
        + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATED_RESOURCES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList createdResources_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
        +   * Output only. The resource paths of the resources created by the image
        +   * import job.
        +   * 
        + * + * repeated string created_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the createdResources. + */ + public com.google.protobuf.ProtocolStringList getCreatedResourcesList() { + return createdResources_; + } + + /** + * + * + *
        +   * Output only. The resource paths of the resources created by the image
        +   * import job.
        +   * 
        + * + * repeated string created_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of createdResources. + */ + public int getCreatedResourcesCount() { + return createdResources_.size(); + } + + /** + * + * + *
        +   * Output only. The resource paths of the resources created by the image
        +   * import job.
        +   * 
        + * + * repeated string created_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The createdResources at the given index. + */ + public java.lang.String getCreatedResources(int index) { + return createdResources_.get(index); + } + + /** + * + * + *
        +   * Output only. The resource paths of the resources created by the image
        +   * import job.
        +   * 
        + * + * repeated string created_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the createdResources at the given index. + */ + public com.google.protobuf.ByteString getCreatedResourcesBytes(int index) { + return createdResources_.getByteString(index); + } + + public static final int STATE_FIELD_NUMBER = 4; + private int state_ = 0; + + /** + * + * + *
        +   * Output only. The state of the image import.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ImageImportJob.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
        +   * Output only. The state of the image import.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ImageImportJob.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ImageImportJob.State getState() { + com.google.cloud.vmmigration.v1.ImageImportJob.State result = + com.google.cloud.vmmigration.v1.ImageImportJob.State.forNumber(state_); + return result == null + ? com.google.cloud.vmmigration.v1.ImageImportJob.State.UNRECOGNIZED + : result; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
        +   * Output only. The time the image import was created (as an API call, not
        +   * when it was actually created in the target).
        +   * 
        + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
        +   * Output only. The time the image import was created (as an API call, not
        +   * when it was actually created in the target).
        +   * 
        + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
        +   * Output only. The time the image import was created (as an API call, not
        +   * when it was actually created in the target).
        +   * 
        + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int END_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp endTime_; + + /** + * + * + *
        +   * Output only. The time the image import was ended.
        +   * 
        + * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
        +   * Output only. The time the image import was ended.
        +   * 
        + * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + /** + * + * + *
        +   * Output only. The time the image import was ended.
        +   * 
        + * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + public static final int ERRORS_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private java.util.List errors_; + + /** + * + * + *
        +   * Output only. Provides details on the error that led to the image import
        +   * state in case of an error.
        +   * 
        + * + * repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getErrorsList() { + return errors_; + } + + /** + * + * + *
        +   * Output only. Provides details on the error that led to the image import
        +   * state in case of an error.
        +   * 
        + * + * repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getErrorsOrBuilderList() { + return errors_; + } + + /** + * + * + *
        +   * Output only. Provides details on the error that led to the image import
        +   * state in case of an error.
        +   * 
        + * + * repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getErrorsCount() { + return errors_.size(); + } + + /** + * + * + *
        +   * Output only. Provides details on the error that led to the image import
        +   * state in case of an error.
        +   * 
        + * + * repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.rpc.Status getErrors(int index) { + return errors_.get(index); + } + + /** + * + * + *
        +   * Output only. Provides details on the error that led to the image import
        +   * state in case of an error.
        +   * 
        + * + * repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getErrorsOrBuilder(int index) { + return errors_.get(index); + } + + public static final int WARNINGS_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private java.util.List warnings_; + + /** + * + * + *
        +   * Output only. Warnings that occurred during the image import.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.MigrationWarning warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getWarningsList() { + return warnings_; + } + + /** + * + * + *
        +   * Output only. Warnings that occurred during the image import.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.MigrationWarning warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getWarningsOrBuilderList() { + return warnings_; + } + + /** + * + * + *
        +   * Output only. Warnings that occurred during the image import.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.MigrationWarning warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getWarningsCount() { + return warnings_.size(); + } + + /** + * + * + *
        +   * Output only. Warnings that occurred during the image import.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.MigrationWarning warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.MigrationWarning getWarnings(int index) { + return warnings_.get(index); + } + + /** + * + * + *
        +   * Output only. Warnings that occurred during the image import.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.MigrationWarning warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.MigrationWarningOrBuilder getWarningsOrBuilder(int index) { + return warnings_.get(index); + } + + public static final int STEPS_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private java.util.List steps_; + + /** + * + * + *
        +   * Output only. The image import steps list representing its progress.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportStep steps = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getStepsList() { + return steps_; + } + + /** + * + * + *
        +   * Output only. The image import steps list representing its progress.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportStep steps = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getStepsOrBuilderList() { + return steps_; + } + + /** + * + * + *
        +   * Output only. The image import steps list representing its progress.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportStep steps = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getStepsCount() { + return steps_.size(); + } + + /** + * + * + *
        +   * Output only. The image import steps list representing its progress.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportStep steps = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ImageImportStep getSteps(int index) { + return steps_.get(index); + } + + /** + * + * + *
        +   * Output only. The image import steps list representing its progress.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportStep steps = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ImageImportStepOrBuilder getStepsOrBuilder(int index) { + return steps_.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_); + } + for (int i = 0; i < createdResources_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, createdResources_.getRaw(i)); + } + if (targetDetailsCase_ == 3) { + output.writeMessage( + 3, (com.google.cloud.vmmigration.v1.DiskImageTargetDetails) targetDetails_); + } + if (state_ + != com.google.cloud.vmmigration.v1.ImageImportJob.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(4, state_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getEndTime()); + } + for (int i = 0; i < errors_.size(); i++) { + output.writeMessage(7, errors_.get(i)); + } + for (int i = 0; i < warnings_.size(); i++) { + output.writeMessage(8, warnings_.get(i)); + } + for (int i = 0; i < steps_.size(); i++) { + output.writeMessage(9, steps_.get(i)); + } + if (sourceCase_ == 10) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, source_); + } + if (targetDetailsCase_ == 11) { + output.writeMessage( + 11, (com.google.cloud.vmmigration.v1.MachineImageTargetDetails) targetDetails_); + } + 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_); + } + { + int dataSize = 0; + for (int i = 0; i < createdResources_.size(); i++) { + dataSize += computeStringSizeNoTag(createdResources_.getRaw(i)); + } + size += dataSize; + size += 1 * getCreatedResourcesList().size(); + } + if (targetDetailsCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.vmmigration.v1.DiskImageTargetDetails) targetDetails_); + } + if (state_ + != com.google.cloud.vmmigration.v1.ImageImportJob.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getEndTime()); + } + for (int i = 0; i < errors_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, errors_.get(i)); + } + for (int i = 0; i < warnings_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, warnings_.get(i)); + } + for (int i = 0; i < steps_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, steps_.get(i)); + } + if (sourceCase_ == 10) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, source_); + } + if (targetDetailsCase_ == 11) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, (com.google.cloud.vmmigration.v1.MachineImageTargetDetails) targetDetails_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.vmmigration.v1.ImageImportJob)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.ImageImportJob other = + (com.google.cloud.vmmigration.v1.ImageImportJob) obj; + + if (!getName().equals(other.getName())) return false; + if (!getCreatedResourcesList().equals(other.getCreatedResourcesList())) return false; + if (state_ != other.state_) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getErrorsList().equals(other.getErrorsList())) return false; + if (!getWarningsList().equals(other.getWarningsList())) return false; + if (!getStepsList().equals(other.getStepsList())) return false; + if (!getSourceCase().equals(other.getSourceCase())) return false; + switch (sourceCase_) { + case 10: + if (!getCloudStorageUri().equals(other.getCloudStorageUri())) return false; + break; + case 0: + default: + } + if (!getTargetDetailsCase().equals(other.getTargetDetailsCase())) return false; + switch (targetDetailsCase_) { + case 3: + if (!getDiskImageTargetDetails().equals(other.getDiskImageTargetDetails())) return false; + break; + case 11: + if (!getMachineImageTargetDetails().equals(other.getMachineImageTargetDetails())) + return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (getCreatedResourcesCount() > 0) { + hash = (37 * hash) + CREATED_RESOURCES_FIELD_NUMBER; + hash = (53 * hash) + getCreatedResourcesList().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + if (getErrorsCount() > 0) { + hash = (37 * hash) + ERRORS_FIELD_NUMBER; + hash = (53 * hash) + getErrorsList().hashCode(); + } + if (getWarningsCount() > 0) { + hash = (37 * hash) + WARNINGS_FIELD_NUMBER; + hash = (53 * hash) + getWarningsList().hashCode(); + } + if (getStepsCount() > 0) { + hash = (37 * hash) + STEPS_FIELD_NUMBER; + hash = (53 * hash) + getStepsList().hashCode(); + } + switch (sourceCase_) { + case 10: + hash = (37 * hash) + CLOUD_STORAGE_URI_FIELD_NUMBER; + hash = (53 * hash) + getCloudStorageUri().hashCode(); + break; + case 0: + default: + } + switch (targetDetailsCase_) { + case 3: + hash = (37 * hash) + DISK_IMAGE_TARGET_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getDiskImageTargetDetails().hashCode(); + break; + case 11: + hash = (37 * hash) + MACHINE_IMAGE_TARGET_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getMachineImageTargetDetails().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.ImageImportJob parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.ImageImportJob 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.vmmigration.v1.ImageImportJob parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.ImageImportJob parseFrom( + 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.vmmigration.v1.ImageImportJob parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.ImageImportJob parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.ImageImportJob parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.ImageImportJob 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.vmmigration.v1.ImageImportJob parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.ImageImportJob 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.vmmigration.v1.ImageImportJob parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.ImageImportJob 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.vmmigration.v1.ImageImportJob prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
        +   * ImageImportJob describes the progress and result of an image import.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.ImageImportJob} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.ImageImportJob) + com.google.cloud.vmmigration.v1.ImageImportJobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ImageImportJob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ImageImportJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.ImageImportJob.class, + com.google.cloud.vmmigration.v1.ImageImportJob.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.ImageImportJob.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + getEndTimeFieldBuilder(); + getErrorsFieldBuilder(); + getWarningsFieldBuilder(); + getStepsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (diskImageTargetDetailsBuilder_ != null) { + diskImageTargetDetailsBuilder_.clear(); + } + if (machineImageTargetDetailsBuilder_ != null) { + machineImageTargetDetailsBuilder_.clear(); + } + name_ = ""; + createdResources_ = com.google.protobuf.LazyStringArrayList.emptyList(); + state_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + if (errorsBuilder_ == null) { + errors_ = java.util.Collections.emptyList(); + } else { + errors_ = null; + errorsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000100); + if (warningsBuilder_ == null) { + warnings_ = java.util.Collections.emptyList(); + } else { + warnings_ = null; + warningsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000200); + if (stepsBuilder_ == null) { + steps_ = java.util.Collections.emptyList(); + } else { + steps_ = null; + stepsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000400); + sourceCase_ = 0; + source_ = null; + targetDetailsCase_ = 0; + targetDetails_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ImageImportJob_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.ImageImportJob getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.ImageImportJob.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.ImageImportJob build() { + com.google.cloud.vmmigration.v1.ImageImportJob result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.ImageImportJob buildPartial() { + com.google.cloud.vmmigration.v1.ImageImportJob result = + new com.google.cloud.vmmigration.v1.ImageImportJob(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.vmmigration.v1.ImageImportJob result) { + if (errorsBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0)) { + errors_ = java.util.Collections.unmodifiableList(errors_); + bitField0_ = (bitField0_ & ~0x00000100); + } + result.errors_ = errors_; + } else { + result.errors_ = errorsBuilder_.build(); + } + if (warningsBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0)) { + warnings_ = java.util.Collections.unmodifiableList(warnings_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.warnings_ = warnings_; + } else { + result.warnings_ = warningsBuilder_.build(); + } + if (stepsBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0)) { + steps_ = java.util.Collections.unmodifiableList(steps_); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.steps_ = steps_; + } else { + result.steps_ = stepsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.vmmigration.v1.ImageImportJob result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + createdResources_.makeImmutable(); + result.createdResources_ = createdResources_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.state_ = state_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000040) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.vmmigration.v1.ImageImportJob result) { + result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + result.targetDetailsCase_ = targetDetailsCase_; + result.targetDetails_ = this.targetDetails_; + if (targetDetailsCase_ == 3 && diskImageTargetDetailsBuilder_ != null) { + result.targetDetails_ = diskImageTargetDetailsBuilder_.build(); + } + if (targetDetailsCase_ == 11 && machineImageTargetDetailsBuilder_ != null) { + result.targetDetails_ = machineImageTargetDetailsBuilder_.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.vmmigration.v1.ImageImportJob) { + return mergeFrom((com.google.cloud.vmmigration.v1.ImageImportJob) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.ImageImportJob other) { + if (other == com.google.cloud.vmmigration.v1.ImageImportJob.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.createdResources_.isEmpty()) { + if (createdResources_.isEmpty()) { + createdResources_ = other.createdResources_; + bitField0_ |= 0x00000010; + } else { + ensureCreatedResourcesIsMutable(); + createdResources_.addAll(other.createdResources_); + } + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (errorsBuilder_ == null) { + if (!other.errors_.isEmpty()) { + if (errors_.isEmpty()) { + errors_ = other.errors_; + bitField0_ = (bitField0_ & ~0x00000100); + } else { + ensureErrorsIsMutable(); + errors_.addAll(other.errors_); + } + onChanged(); + } + } else { + if (!other.errors_.isEmpty()) { + if (errorsBuilder_.isEmpty()) { + errorsBuilder_.dispose(); + errorsBuilder_ = null; + errors_ = other.errors_; + bitField0_ = (bitField0_ & ~0x00000100); + errorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getErrorsFieldBuilder() + : null; + } else { + errorsBuilder_.addAllMessages(other.errors_); + } + } + } + if (warningsBuilder_ == null) { + if (!other.warnings_.isEmpty()) { + if (warnings_.isEmpty()) { + warnings_ = other.warnings_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureWarningsIsMutable(); + warnings_.addAll(other.warnings_); + } + onChanged(); + } + } else { + if (!other.warnings_.isEmpty()) { + if (warningsBuilder_.isEmpty()) { + warningsBuilder_.dispose(); + warningsBuilder_ = null; + warnings_ = other.warnings_; + bitField0_ = (bitField0_ & ~0x00000200); + warningsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWarningsFieldBuilder() + : null; + } else { + warningsBuilder_.addAllMessages(other.warnings_); + } + } + } + if (stepsBuilder_ == null) { + if (!other.steps_.isEmpty()) { + if (steps_.isEmpty()) { + steps_ = other.steps_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensureStepsIsMutable(); + steps_.addAll(other.steps_); + } + onChanged(); + } + } else { + if (!other.steps_.isEmpty()) { + if (stepsBuilder_.isEmpty()) { + stepsBuilder_.dispose(); + stepsBuilder_ = null; + steps_ = other.steps_; + bitField0_ = (bitField0_ & ~0x00000400); + stepsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getStepsFieldBuilder() + : null; + } else { + stepsBuilder_.addAllMessages(other.steps_); + } + } + } + switch (other.getSourceCase()) { + case CLOUD_STORAGE_URI: + { + sourceCase_ = 10; + source_ = other.source_; + onChanged(); + break; + } + case SOURCE_NOT_SET: + { + break; + } + } + switch (other.getTargetDetailsCase()) { + case DISK_IMAGE_TARGET_DETAILS: + { + mergeDiskImageTargetDetails(other.getDiskImageTargetDetails()); + break; + } + case MACHINE_IMAGE_TARGET_DETAILS: + { + mergeMachineImageTargetDetails(other.getMachineImageTargetDetails()); + break; + } + case TARGETDETAILS_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: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureCreatedResourcesIsMutable(); + createdResources_.add(s); + break; + } // case 18 + case 26: + { + input.readMessage( + getDiskImageTargetDetailsFieldBuilder().getBuilder(), extensionRegistry); + targetDetailsCase_ = 3; + break; + } // case 26 + case 32: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 32 + case 42: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 42 + case 50: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 50 + case 58: + { + com.google.rpc.Status m = + input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(m); + } else { + errorsBuilder_.addMessage(m); + } + break; + } // case 58 + case 66: + { + com.google.cloud.vmmigration.v1.MigrationWarning m = + input.readMessage( + com.google.cloud.vmmigration.v1.MigrationWarning.parser(), + extensionRegistry); + if (warningsBuilder_ == null) { + ensureWarningsIsMutable(); + warnings_.add(m); + } else { + warningsBuilder_.addMessage(m); + } + break; + } // case 66 + case 74: + { + com.google.cloud.vmmigration.v1.ImageImportStep m = + input.readMessage( + com.google.cloud.vmmigration.v1.ImageImportStep.parser(), + extensionRegistry); + if (stepsBuilder_ == null) { + ensureStepsIsMutable(); + steps_.add(m); + } else { + stepsBuilder_.addMessage(m); + } + break; + } // case 74 + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 10; + source_ = s; + break; + } // case 82 + case 90: + { + input.readMessage( + getMachineImageTargetDetailsFieldBuilder().getBuilder(), extensionRegistry); + targetDetailsCase_ = 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 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 targetDetailsCase_ = 0; + private java.lang.Object targetDetails_; + + public TargetDetailsCase getTargetDetailsCase() { + return TargetDetailsCase.forNumber(targetDetailsCase_); + } + + public Builder clearTargetDetails() { + targetDetailsCase_ = 0; + targetDetails_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
        +     * Output only. The path to the Cloud Storage file from which the image
        +     * should be imported.
        +     * 
        + * + * string cloud_storage_uri = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the cloudStorageUri field is set. + */ + @java.lang.Override + public boolean hasCloudStorageUri() { + return sourceCase_ == 10; + } + + /** + * + * + *
        +     * Output only. The path to the Cloud Storage file from which the image
        +     * should be imported.
        +     * 
        + * + * string cloud_storage_uri = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The cloudStorageUri. + */ + @java.lang.Override + public java.lang.String getCloudStorageUri() { + java.lang.Object ref = ""; + if (sourceCase_ == 10) { + ref = source_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 10) { + source_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Output only. The path to the Cloud Storage file from which the image
        +     * should be imported.
        +     * 
        + * + * string cloud_storage_uri = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for cloudStorageUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCloudStorageUriBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 10) { + ref = source_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 10) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Output only. The path to the Cloud Storage file from which the image
        +     * should be imported.
        +     * 
        + * + * string cloud_storage_uri = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The cloudStorageUri to set. + * @return This builder for chaining. + */ + public Builder setCloudStorageUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceCase_ = 10; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The path to the Cloud Storage file from which the image
        +     * should be imported.
        +     * 
        + * + * string cloud_storage_uri = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearCloudStorageUri() { + if (sourceCase_ == 10) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Output only. The path to the Cloud Storage file from which the image
        +     * should be imported.
        +     * 
        + * + * string cloud_storage_uri = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for cloudStorageUri to set. + * @return This builder for chaining. + */ + public Builder setCloudStorageUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceCase_ = 10; + source_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.DiskImageTargetDetails, + com.google.cloud.vmmigration.v1.DiskImageTargetDetails.Builder, + com.google.cloud.vmmigration.v1.DiskImageTargetDetailsOrBuilder> + diskImageTargetDetailsBuilder_; + + /** + * + * + *
        +     * Output only. Target details used to import a disk image.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DiskImageTargetDetails disk_image_target_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the diskImageTargetDetails field is set. + */ + @java.lang.Override + public boolean hasDiskImageTargetDetails() { + return targetDetailsCase_ == 3; + } + + /** + * + * + *
        +     * Output only. Target details used to import a disk image.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DiskImageTargetDetails disk_image_target_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The diskImageTargetDetails. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.DiskImageTargetDetails getDiskImageTargetDetails() { + if (diskImageTargetDetailsBuilder_ == null) { + if (targetDetailsCase_ == 3) { + return (com.google.cloud.vmmigration.v1.DiskImageTargetDetails) targetDetails_; + } + return com.google.cloud.vmmigration.v1.DiskImageTargetDetails.getDefaultInstance(); + } else { + if (targetDetailsCase_ == 3) { + return diskImageTargetDetailsBuilder_.getMessage(); + } + return com.google.cloud.vmmigration.v1.DiskImageTargetDetails.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Output only. Target details used to import a disk image.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DiskImageTargetDetails disk_image_target_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDiskImageTargetDetails( + com.google.cloud.vmmigration.v1.DiskImageTargetDetails value) { + if (diskImageTargetDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + targetDetails_ = value; + onChanged(); + } else { + diskImageTargetDetailsBuilder_.setMessage(value); + } + targetDetailsCase_ = 3; + return this; + } + + /** + * + * + *
        +     * Output only. Target details used to import a disk image.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DiskImageTargetDetails disk_image_target_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDiskImageTargetDetails( + com.google.cloud.vmmigration.v1.DiskImageTargetDetails.Builder builderForValue) { + if (diskImageTargetDetailsBuilder_ == null) { + targetDetails_ = builderForValue.build(); + onChanged(); + } else { + diskImageTargetDetailsBuilder_.setMessage(builderForValue.build()); + } + targetDetailsCase_ = 3; + return this; + } + + /** + * + * + *
        +     * Output only. Target details used to import a disk image.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DiskImageTargetDetails disk_image_target_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDiskImageTargetDetails( + com.google.cloud.vmmigration.v1.DiskImageTargetDetails value) { + if (diskImageTargetDetailsBuilder_ == null) { + if (targetDetailsCase_ == 3 + && targetDetails_ + != com.google.cloud.vmmigration.v1.DiskImageTargetDetails.getDefaultInstance()) { + targetDetails_ = + com.google.cloud.vmmigration.v1.DiskImageTargetDetails.newBuilder( + (com.google.cloud.vmmigration.v1.DiskImageTargetDetails) targetDetails_) + .mergeFrom(value) + .buildPartial(); + } else { + targetDetails_ = value; + } + onChanged(); + } else { + if (targetDetailsCase_ == 3) { + diskImageTargetDetailsBuilder_.mergeFrom(value); + } else { + diskImageTargetDetailsBuilder_.setMessage(value); + } + } + targetDetailsCase_ = 3; + return this; + } + + /** + * + * + *
        +     * Output only. Target details used to import a disk image.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DiskImageTargetDetails disk_image_target_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDiskImageTargetDetails() { + if (diskImageTargetDetailsBuilder_ == null) { + if (targetDetailsCase_ == 3) { + targetDetailsCase_ = 0; + targetDetails_ = null; + onChanged(); + } + } else { + if (targetDetailsCase_ == 3) { + targetDetailsCase_ = 0; + targetDetails_ = null; + } + diskImageTargetDetailsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Output only. Target details used to import a disk image.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DiskImageTargetDetails disk_image_target_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.DiskImageTargetDetails.Builder + getDiskImageTargetDetailsBuilder() { + return getDiskImageTargetDetailsFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Output only. Target details used to import a disk image.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DiskImageTargetDetails disk_image_target_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.DiskImageTargetDetailsOrBuilder + getDiskImageTargetDetailsOrBuilder() { + if ((targetDetailsCase_ == 3) && (diskImageTargetDetailsBuilder_ != null)) { + return diskImageTargetDetailsBuilder_.getMessageOrBuilder(); + } else { + if (targetDetailsCase_ == 3) { + return (com.google.cloud.vmmigration.v1.DiskImageTargetDetails) targetDetails_; + } + return com.google.cloud.vmmigration.v1.DiskImageTargetDetails.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Output only. Target details used to import a disk image.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DiskImageTargetDetails disk_image_target_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.DiskImageTargetDetails, + com.google.cloud.vmmigration.v1.DiskImageTargetDetails.Builder, + com.google.cloud.vmmigration.v1.DiskImageTargetDetailsOrBuilder> + getDiskImageTargetDetailsFieldBuilder() { + if (diskImageTargetDetailsBuilder_ == null) { + if (!(targetDetailsCase_ == 3)) { + targetDetails_ = + com.google.cloud.vmmigration.v1.DiskImageTargetDetails.getDefaultInstance(); + } + diskImageTargetDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.DiskImageTargetDetails, + com.google.cloud.vmmigration.v1.DiskImageTargetDetails.Builder, + com.google.cloud.vmmigration.v1.DiskImageTargetDetailsOrBuilder>( + (com.google.cloud.vmmigration.v1.DiskImageTargetDetails) targetDetails_, + getParentForChildren(), + isClean()); + targetDetails_ = null; + } + targetDetailsCase_ = 3; + onChanged(); + return diskImageTargetDetailsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.MachineImageTargetDetails, + com.google.cloud.vmmigration.v1.MachineImageTargetDetails.Builder, + com.google.cloud.vmmigration.v1.MachineImageTargetDetailsOrBuilder> + machineImageTargetDetailsBuilder_; + + /** + * + * + *
        +     * Output only. Target details used to import a machine image.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.MachineImageTargetDetails machine_image_target_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the machineImageTargetDetails field is set. + */ + @java.lang.Override + public boolean hasMachineImageTargetDetails() { + return targetDetailsCase_ == 11; + } + + /** + * + * + *
        +     * Output only. Target details used to import a machine image.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.MachineImageTargetDetails machine_image_target_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The machineImageTargetDetails. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.MachineImageTargetDetails + getMachineImageTargetDetails() { + if (machineImageTargetDetailsBuilder_ == null) { + if (targetDetailsCase_ == 11) { + return (com.google.cloud.vmmigration.v1.MachineImageTargetDetails) targetDetails_; + } + return com.google.cloud.vmmigration.v1.MachineImageTargetDetails.getDefaultInstance(); + } else { + if (targetDetailsCase_ == 11) { + return machineImageTargetDetailsBuilder_.getMessage(); + } + return com.google.cloud.vmmigration.v1.MachineImageTargetDetails.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Output only. Target details used to import a machine image.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.MachineImageTargetDetails machine_image_target_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setMachineImageTargetDetails( + com.google.cloud.vmmigration.v1.MachineImageTargetDetails value) { + if (machineImageTargetDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + targetDetails_ = value; + onChanged(); + } else { + machineImageTargetDetailsBuilder_.setMessage(value); + } + targetDetailsCase_ = 11; + return this; + } + + /** + * + * + *
        +     * Output only. Target details used to import a machine image.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.MachineImageTargetDetails machine_image_target_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setMachineImageTargetDetails( + com.google.cloud.vmmigration.v1.MachineImageTargetDetails.Builder builderForValue) { + if (machineImageTargetDetailsBuilder_ == null) { + targetDetails_ = builderForValue.build(); + onChanged(); + } else { + machineImageTargetDetailsBuilder_.setMessage(builderForValue.build()); + } + targetDetailsCase_ = 11; + return this; + } + + /** + * + * + *
        +     * Output only. Target details used to import a machine image.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.MachineImageTargetDetails machine_image_target_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeMachineImageTargetDetails( + com.google.cloud.vmmigration.v1.MachineImageTargetDetails value) { + if (machineImageTargetDetailsBuilder_ == null) { + if (targetDetailsCase_ == 11 + && targetDetails_ + != com.google.cloud.vmmigration.v1.MachineImageTargetDetails.getDefaultInstance()) { + targetDetails_ = + com.google.cloud.vmmigration.v1.MachineImageTargetDetails.newBuilder( + (com.google.cloud.vmmigration.v1.MachineImageTargetDetails) targetDetails_) + .mergeFrom(value) + .buildPartial(); + } else { + targetDetails_ = value; + } + onChanged(); + } else { + if (targetDetailsCase_ == 11) { + machineImageTargetDetailsBuilder_.mergeFrom(value); + } else { + machineImageTargetDetailsBuilder_.setMessage(value); + } + } + targetDetailsCase_ = 11; + return this; + } + + /** + * + * + *
        +     * Output only. Target details used to import a machine image.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.MachineImageTargetDetails machine_image_target_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearMachineImageTargetDetails() { + if (machineImageTargetDetailsBuilder_ == null) { + if (targetDetailsCase_ == 11) { + targetDetailsCase_ = 0; + targetDetails_ = null; + onChanged(); + } + } else { + if (targetDetailsCase_ == 11) { + targetDetailsCase_ = 0; + targetDetails_ = null; + } + machineImageTargetDetailsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Output only. Target details used to import a machine image.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.MachineImageTargetDetails machine_image_target_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.MachineImageTargetDetails.Builder + getMachineImageTargetDetailsBuilder() { + return getMachineImageTargetDetailsFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Output only. Target details used to import a machine image.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.MachineImageTargetDetails machine_image_target_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.MachineImageTargetDetailsOrBuilder + getMachineImageTargetDetailsOrBuilder() { + if ((targetDetailsCase_ == 11) && (machineImageTargetDetailsBuilder_ != null)) { + return machineImageTargetDetailsBuilder_.getMessageOrBuilder(); + } else { + if (targetDetailsCase_ == 11) { + return (com.google.cloud.vmmigration.v1.MachineImageTargetDetails) targetDetails_; + } + return com.google.cloud.vmmigration.v1.MachineImageTargetDetails.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Output only. Target details used to import a machine image.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.MachineImageTargetDetails machine_image_target_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.MachineImageTargetDetails, + com.google.cloud.vmmigration.v1.MachineImageTargetDetails.Builder, + com.google.cloud.vmmigration.v1.MachineImageTargetDetailsOrBuilder> + getMachineImageTargetDetailsFieldBuilder() { + if (machineImageTargetDetailsBuilder_ == null) { + if (!(targetDetailsCase_ == 11)) { + targetDetails_ = + com.google.cloud.vmmigration.v1.MachineImageTargetDetails.getDefaultInstance(); + } + machineImageTargetDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.MachineImageTargetDetails, + com.google.cloud.vmmigration.v1.MachineImageTargetDetails.Builder, + com.google.cloud.vmmigration.v1.MachineImageTargetDetailsOrBuilder>( + (com.google.cloud.vmmigration.v1.MachineImageTargetDetails) targetDetails_, + getParentForChildren(), + isClean()); + targetDetails_ = null; + } + targetDetailsCase_ = 11; + onChanged(); + return machineImageTargetDetailsBuilder_; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
        +     * Output only. The resource path of the ImageImportJob.
        +     * 
        + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Output only. The resource path of the ImageImportJob.
        +     * 
        + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Output only. The resource path of the ImageImportJob.
        +     * 
        + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The resource path of the ImageImportJob.
        +     * 
        + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The resource path of the ImageImportJob.
        +     * 
        + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList createdResources_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureCreatedResourcesIsMutable() { + if (!createdResources_.isModifiable()) { + createdResources_ = new com.google.protobuf.LazyStringArrayList(createdResources_); + } + bitField0_ |= 0x00000010; + } + + /** + * + * + *
        +     * Output only. The resource paths of the resources created by the image
        +     * import job.
        +     * 
        + * + * repeated string created_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the createdResources. + */ + public com.google.protobuf.ProtocolStringList getCreatedResourcesList() { + createdResources_.makeImmutable(); + return createdResources_; + } + + /** + * + * + *
        +     * Output only. The resource paths of the resources created by the image
        +     * import job.
        +     * 
        + * + * repeated string created_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of createdResources. + */ + public int getCreatedResourcesCount() { + return createdResources_.size(); + } + + /** + * + * + *
        +     * Output only. The resource paths of the resources created by the image
        +     * import job.
        +     * 
        + * + * repeated string created_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The createdResources at the given index. + */ + public java.lang.String getCreatedResources(int index) { + return createdResources_.get(index); + } + + /** + * + * + *
        +     * Output only. The resource paths of the resources created by the image
        +     * import job.
        +     * 
        + * + * repeated string created_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the createdResources at the given index. + */ + public com.google.protobuf.ByteString getCreatedResourcesBytes(int index) { + return createdResources_.getByteString(index); + } + + /** + * + * + *
        +     * Output only. The resource paths of the resources created by the image
        +     * import job.
        +     * 
        + * + * repeated string created_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The createdResources to set. + * @return This builder for chaining. + */ + public Builder setCreatedResources(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCreatedResourcesIsMutable(); + createdResources_.set(index, value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The resource paths of the resources created by the image
        +     * import job.
        +     * 
        + * + * repeated string created_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The createdResources to add. + * @return This builder for chaining. + */ + public Builder addCreatedResources(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCreatedResourcesIsMutable(); + createdResources_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The resource paths of the resources created by the image
        +     * import job.
        +     * 
        + * + * repeated string created_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The createdResources to add. + * @return This builder for chaining. + */ + public Builder addAllCreatedResources(java.lang.Iterable values) { + ensureCreatedResourcesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, createdResources_); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The resource paths of the resources created by the image
        +     * import job.
        +     * 
        + * + * repeated string created_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearCreatedResources() { + createdResources_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + ; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The resource paths of the resources created by the image
        +     * import job.
        +     * 
        + * + * repeated string created_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes of the createdResources to add. + * @return This builder for chaining. + */ + public Builder addCreatedResourcesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureCreatedResourcesIsMutable(); + createdResources_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
        +     * Output only. The state of the image import.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ImageImportJob.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
        +     * Output only. The state of the image import.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ImageImportJob.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The state of the image import.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ImageImportJob.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ImageImportJob.State getState() { + com.google.cloud.vmmigration.v1.ImageImportJob.State result = + com.google.cloud.vmmigration.v1.ImageImportJob.State.forNumber(state_); + return result == null + ? com.google.cloud.vmmigration.v1.ImageImportJob.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
        +     * Output only. The state of the image import.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ImageImportJob.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.vmmigration.v1.ImageImportJob.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The state of the image import.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ImageImportJob.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000020); + state_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
        +     * Output only. The time the image import was created (as an API call, not
        +     * when it was actually created in the target).
        +     * 
        + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
        +     * Output only. The time the image import was created (as an API call, not
        +     * when it was actually created in the target).
        +     * 
        + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
        +     * Output only. The time the image import was created (as an API call, not
        +     * when it was actually created in the target).
        +     * 
        + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The time the image import was created (as an API call, not
        +     * when it was actually created in the target).
        +     * 
        + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The time the image import was created (as an API call, not
        +     * when it was actually created in the target).
        +     * 
        + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Output only. The time the image import was created (as an API call, not
        +     * when it was actually created in the target).
        +     * 
        + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000040); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The time the image import was created (as an API call, not
        +     * when it was actually created in the target).
        +     * 
        + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Output only. The time the image import was created (as an API call, not
        +     * when it was actually created in the target).
        +     * 
        + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
        +     * Output only. The time the image import was created (as an API call, not
        +     * when it was actually created in the target).
        +     * 
        + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + + /** + * + * + *
        +     * Output only. The time the image import was ended.
        +     * 
        + * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
        +     * Output only. The time the image import was ended.
        +     * 
        + * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
        +     * Output only. The time the image import was ended.
        +     * 
        + * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The time the image import was ended.
        +     * 
        + * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The time the image import was ended.
        +     * 
        + * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Output only. The time the image import was ended.
        +     * 
        + * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000080); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The time the image import was ended.
        +     * 
        + * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Output only. The time the image import was ended.
        +     * 
        + * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + + /** + * + * + *
        +     * Output only. The time the image import was ended.
        +     * 
        + * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + private java.util.List errors_ = java.util.Collections.emptyList(); + + private void ensureErrorsIsMutable() { + if (!((bitField0_ & 0x00000100) != 0)) { + errors_ = new java.util.ArrayList(errors_); + bitField0_ |= 0x00000100; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorsBuilder_; + + /** + * + * + *
        +     * Output only. Provides details on the error that led to the image import
        +     * state in case of an error.
        +     * 
        + * + * repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getErrorsList() { + if (errorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(errors_); + } else { + return errorsBuilder_.getMessageList(); + } + } + + /** + * + * + *
        +     * Output only. Provides details on the error that led to the image import
        +     * state in case of an error.
        +     * 
        + * + * repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getErrorsCount() { + if (errorsBuilder_ == null) { + return errors_.size(); + } else { + return errorsBuilder_.getCount(); + } + } + + /** + * + * + *
        +     * Output only. Provides details on the error that led to the image import
        +     * state in case of an error.
        +     * 
        + * + * repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.rpc.Status getErrors(int index) { + if (errorsBuilder_ == null) { + return errors_.get(index); + } else { + return errorsBuilder_.getMessage(index); + } + } + + /** + * + * + *
        +     * Output only. Provides details on the error that led to the image import
        +     * state in case of an error.
        +     * 
        + * + * repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setErrors(int index, com.google.rpc.Status value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.set(index, value); + onChanged(); + } else { + errorsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * Output only. Provides details on the error that led to the image import
        +     * state in case of an error.
        +     * 
        + * + * repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setErrors(int index, com.google.rpc.Status.Builder builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.set(index, builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Output only. Provides details on the error that led to the image import
        +     * state in case of an error.
        +     * 
        + * + * repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addErrors(com.google.rpc.Status value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.add(value); + onChanged(); + } else { + errorsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
        +     * Output only. Provides details on the error that led to the image import
        +     * state in case of an error.
        +     * 
        + * + * repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addErrors(int index, com.google.rpc.Status value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.add(index, value); + onChanged(); + } else { + errorsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * Output only. Provides details on the error that led to the image import
        +     * state in case of an error.
        +     * 
        + * + * repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addErrors(com.google.rpc.Status.Builder builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Output only. Provides details on the error that led to the image import
        +     * state in case of an error.
        +     * 
        + * + * repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addErrors(int index, com.google.rpc.Status.Builder builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(index, builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Output only. Provides details on the error that led to the image import
        +     * state in case of an error.
        +     * 
        + * + * repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllErrors(java.lang.Iterable values) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errors_); + onChanged(); + } else { + errorsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
        +     * Output only. Provides details on the error that led to the image import
        +     * state in case of an error.
        +     * 
        + * + * repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearErrors() { + if (errorsBuilder_ == null) { + errors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + } else { + errorsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Output only. Provides details on the error that led to the image import
        +     * state in case of an error.
        +     * 
        + * + * repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeErrors(int index) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.remove(index); + onChanged(); + } else { + errorsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
        +     * Output only. Provides details on the error that led to the image import
        +     * state in case of an error.
        +     * 
        + * + * repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.rpc.Status.Builder getErrorsBuilder(int index) { + return getErrorsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
        +     * Output only. Provides details on the error that led to the image import
        +     * state in case of an error.
        +     * 
        + * + * repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.rpc.StatusOrBuilder getErrorsOrBuilder(int index) { + if (errorsBuilder_ == null) { + return errors_.get(index); + } else { + return errorsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
        +     * Output only. Provides details on the error that led to the image import
        +     * state in case of an error.
        +     * 
        + * + * repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getErrorsOrBuilderList() { + if (errorsBuilder_ != null) { + return errorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(errors_); + } + } + + /** + * + * + *
        +     * Output only. Provides details on the error that led to the image import
        +     * state in case of an error.
        +     * 
        + * + * repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.rpc.Status.Builder addErrorsBuilder() { + return getErrorsFieldBuilder().addBuilder(com.google.rpc.Status.getDefaultInstance()); + } + + /** + * + * + *
        +     * Output only. Provides details on the error that led to the image import
        +     * state in case of an error.
        +     * 
        + * + * repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.rpc.Status.Builder addErrorsBuilder(int index) { + return getErrorsFieldBuilder().addBuilder(index, com.google.rpc.Status.getDefaultInstance()); + } + + /** + * + * + *
        +     * Output only. Provides details on the error that led to the image import
        +     * state in case of an error.
        +     * 
        + * + * repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getErrorsBuilderList() { + return getErrorsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getErrorsFieldBuilder() { + if (errorsBuilder_ == null) { + errorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>( + errors_, ((bitField0_ & 0x00000100) != 0), getParentForChildren(), isClean()); + errors_ = null; + } + return errorsBuilder_; + } + + private java.util.List warnings_ = + java.util.Collections.emptyList(); + + private void ensureWarningsIsMutable() { + if (!((bitField0_ & 0x00000200) != 0)) { + warnings_ = + new java.util.ArrayList(warnings_); + bitField0_ |= 0x00000200; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.MigrationWarning, + com.google.cloud.vmmigration.v1.MigrationWarning.Builder, + com.google.cloud.vmmigration.v1.MigrationWarningOrBuilder> + warningsBuilder_; + + /** + * + * + *
        +     * Output only. Warnings that occurred during the image import.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.MigrationWarning warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getWarningsList() { + if (warningsBuilder_ == null) { + return java.util.Collections.unmodifiableList(warnings_); + } else { + return warningsBuilder_.getMessageList(); + } + } + + /** + * + * + *
        +     * Output only. Warnings that occurred during the image import.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.MigrationWarning warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getWarningsCount() { + if (warningsBuilder_ == null) { + return warnings_.size(); + } else { + return warningsBuilder_.getCount(); + } + } + + /** + * + * + *
        +     * Output only. Warnings that occurred during the image import.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.MigrationWarning warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.MigrationWarning getWarnings(int index) { + if (warningsBuilder_ == null) { + return warnings_.get(index); + } else { + return warningsBuilder_.getMessage(index); + } + } + + /** + * + * + *
        +     * Output only. Warnings that occurred during the image import.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.MigrationWarning warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setWarnings(int index, com.google.cloud.vmmigration.v1.MigrationWarning value) { + if (warningsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWarningsIsMutable(); + warnings_.set(index, value); + onChanged(); + } else { + warningsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * Output only. Warnings that occurred during the image import.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.MigrationWarning warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setWarnings( + int index, com.google.cloud.vmmigration.v1.MigrationWarning.Builder builderForValue) { + if (warningsBuilder_ == null) { + ensureWarningsIsMutable(); + warnings_.set(index, builderForValue.build()); + onChanged(); + } else { + warningsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Output only. Warnings that occurred during the image import.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.MigrationWarning warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addWarnings(com.google.cloud.vmmigration.v1.MigrationWarning value) { + if (warningsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWarningsIsMutable(); + warnings_.add(value); + onChanged(); + } else { + warningsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
        +     * Output only. Warnings that occurred during the image import.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.MigrationWarning warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addWarnings(int index, com.google.cloud.vmmigration.v1.MigrationWarning value) { + if (warningsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWarningsIsMutable(); + warnings_.add(index, value); + onChanged(); + } else { + warningsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * Output only. Warnings that occurred during the image import.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.MigrationWarning warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addWarnings( + com.google.cloud.vmmigration.v1.MigrationWarning.Builder builderForValue) { + if (warningsBuilder_ == null) { + ensureWarningsIsMutable(); + warnings_.add(builderForValue.build()); + onChanged(); + } else { + warningsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Output only. Warnings that occurred during the image import.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.MigrationWarning warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addWarnings( + int index, com.google.cloud.vmmigration.v1.MigrationWarning.Builder builderForValue) { + if (warningsBuilder_ == null) { + ensureWarningsIsMutable(); + warnings_.add(index, builderForValue.build()); + onChanged(); + } else { + warningsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Output only. Warnings that occurred during the image import.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.MigrationWarning warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllWarnings( + java.lang.Iterable values) { + if (warningsBuilder_ == null) { + ensureWarningsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, warnings_); + onChanged(); + } else { + warningsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
        +     * Output only. Warnings that occurred during the image import.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.MigrationWarning warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearWarnings() { + if (warningsBuilder_ == null) { + warnings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + } else { + warningsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Output only. Warnings that occurred during the image import.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.MigrationWarning warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeWarnings(int index) { + if (warningsBuilder_ == null) { + ensureWarningsIsMutable(); + warnings_.remove(index); + onChanged(); + } else { + warningsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
        +     * Output only. Warnings that occurred during the image import.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.MigrationWarning warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.MigrationWarning.Builder getWarningsBuilder(int index) { + return getWarningsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
        +     * Output only. Warnings that occurred during the image import.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.MigrationWarning warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.MigrationWarningOrBuilder getWarningsOrBuilder( + int index) { + if (warningsBuilder_ == null) { + return warnings_.get(index); + } else { + return warningsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
        +     * Output only. Warnings that occurred during the image import.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.MigrationWarning warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getWarningsOrBuilderList() { + if (warningsBuilder_ != null) { + return warningsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(warnings_); + } + } + + /** + * + * + *
        +     * Output only. Warnings that occurred during the image import.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.MigrationWarning warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.MigrationWarning.Builder addWarningsBuilder() { + return getWarningsFieldBuilder() + .addBuilder(com.google.cloud.vmmigration.v1.MigrationWarning.getDefaultInstance()); + } + + /** + * + * + *
        +     * Output only. Warnings that occurred during the image import.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.MigrationWarning warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.MigrationWarning.Builder addWarningsBuilder(int index) { + return getWarningsFieldBuilder() + .addBuilder(index, com.google.cloud.vmmigration.v1.MigrationWarning.getDefaultInstance()); + } + + /** + * + * + *
        +     * Output only. Warnings that occurred during the image import.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.MigrationWarning warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getWarningsBuilderList() { + return getWarningsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.MigrationWarning, + com.google.cloud.vmmigration.v1.MigrationWarning.Builder, + com.google.cloud.vmmigration.v1.MigrationWarningOrBuilder> + getWarningsFieldBuilder() { + if (warningsBuilder_ == null) { + warningsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.MigrationWarning, + com.google.cloud.vmmigration.v1.MigrationWarning.Builder, + com.google.cloud.vmmigration.v1.MigrationWarningOrBuilder>( + warnings_, ((bitField0_ & 0x00000200) != 0), getParentForChildren(), isClean()); + warnings_ = null; + } + return warningsBuilder_; + } + + private java.util.List steps_ = + java.util.Collections.emptyList(); + + private void ensureStepsIsMutable() { + if (!((bitField0_ & 0x00000400) != 0)) { + steps_ = new java.util.ArrayList(steps_); + bitField0_ |= 0x00000400; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.ImageImportStep, + com.google.cloud.vmmigration.v1.ImageImportStep.Builder, + com.google.cloud.vmmigration.v1.ImageImportStepOrBuilder> + stepsBuilder_; + + /** + * + * + *
        +     * Output only. The image import steps list representing its progress.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportStep steps = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getStepsList() { + if (stepsBuilder_ == null) { + return java.util.Collections.unmodifiableList(steps_); + } else { + return stepsBuilder_.getMessageList(); + } + } + + /** + * + * + *
        +     * Output only. The image import steps list representing its progress.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportStep steps = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getStepsCount() { + if (stepsBuilder_ == null) { + return steps_.size(); + } else { + return stepsBuilder_.getCount(); + } + } + + /** + * + * + *
        +     * Output only. The image import steps list representing its progress.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportStep steps = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.ImageImportStep getSteps(int index) { + if (stepsBuilder_ == null) { + return steps_.get(index); + } else { + return stepsBuilder_.getMessage(index); + } + } + + /** + * + * + *
        +     * Output only. The image import steps list representing its progress.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportStep steps = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSteps(int index, com.google.cloud.vmmigration.v1.ImageImportStep value) { + if (stepsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStepsIsMutable(); + steps_.set(index, value); + onChanged(); + } else { + stepsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * Output only. The image import steps list representing its progress.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportStep steps = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSteps( + int index, com.google.cloud.vmmigration.v1.ImageImportStep.Builder builderForValue) { + if (stepsBuilder_ == null) { + ensureStepsIsMutable(); + steps_.set(index, builderForValue.build()); + onChanged(); + } else { + stepsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Output only. The image import steps list representing its progress.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportStep steps = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addSteps(com.google.cloud.vmmigration.v1.ImageImportStep value) { + if (stepsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStepsIsMutable(); + steps_.add(value); + onChanged(); + } else { + stepsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
        +     * Output only. The image import steps list representing its progress.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportStep steps = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addSteps(int index, com.google.cloud.vmmigration.v1.ImageImportStep value) { + if (stepsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStepsIsMutable(); + steps_.add(index, value); + onChanged(); + } else { + stepsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * Output only. The image import steps list representing its progress.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportStep steps = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addSteps( + com.google.cloud.vmmigration.v1.ImageImportStep.Builder builderForValue) { + if (stepsBuilder_ == null) { + ensureStepsIsMutable(); + steps_.add(builderForValue.build()); + onChanged(); + } else { + stepsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Output only. The image import steps list representing its progress.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportStep steps = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addSteps( + int index, com.google.cloud.vmmigration.v1.ImageImportStep.Builder builderForValue) { + if (stepsBuilder_ == null) { + ensureStepsIsMutable(); + steps_.add(index, builderForValue.build()); + onChanged(); + } else { + stepsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Output only. The image import steps list representing its progress.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportStep steps = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllSteps( + java.lang.Iterable values) { + if (stepsBuilder_ == null) { + ensureStepsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, steps_); + onChanged(); + } else { + stepsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
        +     * Output only. The image import steps list representing its progress.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportStep steps = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearSteps() { + if (stepsBuilder_ == null) { + steps_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + } else { + stepsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Output only. The image import steps list representing its progress.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportStep steps = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeSteps(int index) { + if (stepsBuilder_ == null) { + ensureStepsIsMutable(); + steps_.remove(index); + onChanged(); + } else { + stepsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
        +     * Output only. The image import steps list representing its progress.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportStep steps = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.ImageImportStep.Builder getStepsBuilder(int index) { + return getStepsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
        +     * Output only. The image import steps list representing its progress.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportStep steps = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.ImageImportStepOrBuilder getStepsOrBuilder(int index) { + if (stepsBuilder_ == null) { + return steps_.get(index); + } else { + return stepsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
        +     * Output only. The image import steps list representing its progress.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportStep steps = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getStepsOrBuilderList() { + if (stepsBuilder_ != null) { + return stepsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(steps_); + } + } + + /** + * + * + *
        +     * Output only. The image import steps list representing its progress.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportStep steps = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.ImageImportStep.Builder addStepsBuilder() { + return getStepsFieldBuilder() + .addBuilder(com.google.cloud.vmmigration.v1.ImageImportStep.getDefaultInstance()); + } + + /** + * + * + *
        +     * Output only. The image import steps list representing its progress.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportStep steps = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.ImageImportStep.Builder addStepsBuilder(int index) { + return getStepsFieldBuilder() + .addBuilder(index, com.google.cloud.vmmigration.v1.ImageImportStep.getDefaultInstance()); + } + + /** + * + * + *
        +     * Output only. The image import steps list representing its progress.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportStep steps = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getStepsBuilderList() { + return getStepsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.ImageImportStep, + com.google.cloud.vmmigration.v1.ImageImportStep.Builder, + com.google.cloud.vmmigration.v1.ImageImportStepOrBuilder> + getStepsFieldBuilder() { + if (stepsBuilder_ == null) { + stepsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.ImageImportStep, + com.google.cloud.vmmigration.v1.ImageImportStep.Builder, + com.google.cloud.vmmigration.v1.ImageImportStepOrBuilder>( + steps_, ((bitField0_ & 0x00000400) != 0), getParentForChildren(), isClean()); + steps_ = null; + } + return stepsBuilder_; + } + + @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.vmmigration.v1.ImageImportJob) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.ImageImportJob) + private static final com.google.cloud.vmmigration.v1.ImageImportJob DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.ImageImportJob(); + } + + public static com.google.cloud.vmmigration.v1.ImageImportJob getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageImportJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.ImageImportJob getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ImageImportJobName.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ImageImportJobName.java new file mode 100644 index 000000000000..17fcac7132a8 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ImageImportJobName.java @@ -0,0 +1,260 @@ +/* + * 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.vmmigration.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class ImageImportJobName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_JOB_RESULT = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/imageImports/{job}/imageImportJobs/{result}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String job; + private final String result; + + @Deprecated + protected ImageImportJobName() { + project = null; + location = null; + job = null; + result = null; + } + + private ImageImportJobName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + job = Preconditions.checkNotNull(builder.getJob()); + result = Preconditions.checkNotNull(builder.getResult()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getJob() { + return job; + } + + public String getResult() { + return result; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ImageImportJobName of(String project, String location, String job, String result) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setJob(job) + .setResult(result) + .build(); + } + + public static String format(String project, String location, String job, String result) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setJob(job) + .setResult(result) + .build() + .toString(); + } + + public static ImageImportJobName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_JOB_RESULT.validatedMatch( + formattedString, "ImageImportJobName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("job"), + matchMap.get("result")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (ImageImportJobName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_JOB_RESULT.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (job != null) { + fieldMapBuilder.put("job", job); + } + if (result != null) { + fieldMapBuilder.put("result", result); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_JOB_RESULT.instantiate( + "project", project, "location", location, "job", job, "result", result); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ImageImportJobName that = ((ImageImportJobName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.job, that.job) + && Objects.equals(this.result, that.result); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(job); + h *= 1000003; + h ^= Objects.hashCode(result); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/imageImports/{job}/imageImportJobs/{result}. + */ + public static class Builder { + private String project; + private String location; + private String job; + private String result; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getJob() { + return job; + } + + public String getResult() { + return result; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setJob(String job) { + this.job = job; + return this; + } + + public Builder setResult(String result) { + this.result = result; + return this; + } + + private Builder(ImageImportJobName imageImportJobName) { + this.project = imageImportJobName.project; + this.location = imageImportJobName.location; + this.job = imageImportJobName.job; + this.result = imageImportJobName.result; + } + + public ImageImportJobName build() { + return new ImageImportJobName(this); + } + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ImageImportJobOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ImageImportJobOrBuilder.java new file mode 100644 index 000000000000..99ae3110b542 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ImageImportJobOrBuilder.java @@ -0,0 +1,558 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface ImageImportJobOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.ImageImportJob) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Output only. The path to the Cloud Storage file from which the image
        +   * should be imported.
        +   * 
        + * + * string cloud_storage_uri = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the cloudStorageUri field is set. + */ + boolean hasCloudStorageUri(); + + /** + * + * + *
        +   * Output only. The path to the Cloud Storage file from which the image
        +   * should be imported.
        +   * 
        + * + * string cloud_storage_uri = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The cloudStorageUri. + */ + java.lang.String getCloudStorageUri(); + + /** + * + * + *
        +   * Output only. The path to the Cloud Storage file from which the image
        +   * should be imported.
        +   * 
        + * + * string cloud_storage_uri = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for cloudStorageUri. + */ + com.google.protobuf.ByteString getCloudStorageUriBytes(); + + /** + * + * + *
        +   * Output only. Target details used to import a disk image.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.DiskImageTargetDetails disk_image_target_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the diskImageTargetDetails field is set. + */ + boolean hasDiskImageTargetDetails(); + + /** + * + * + *
        +   * Output only. Target details used to import a disk image.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.DiskImageTargetDetails disk_image_target_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The diskImageTargetDetails. + */ + com.google.cloud.vmmigration.v1.DiskImageTargetDetails getDiskImageTargetDetails(); + + /** + * + * + *
        +   * Output only. Target details used to import a disk image.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.DiskImageTargetDetails disk_image_target_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.vmmigration.v1.DiskImageTargetDetailsOrBuilder + getDiskImageTargetDetailsOrBuilder(); + + /** + * + * + *
        +   * Output only. Target details used to import a machine image.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.MachineImageTargetDetails machine_image_target_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the machineImageTargetDetails field is set. + */ + boolean hasMachineImageTargetDetails(); + + /** + * + * + *
        +   * Output only. Target details used to import a machine image.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.MachineImageTargetDetails machine_image_target_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The machineImageTargetDetails. + */ + com.google.cloud.vmmigration.v1.MachineImageTargetDetails getMachineImageTargetDetails(); + + /** + * + * + *
        +   * Output only. Target details used to import a machine image.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.MachineImageTargetDetails machine_image_target_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.vmmigration.v1.MachineImageTargetDetailsOrBuilder + getMachineImageTargetDetailsOrBuilder(); + + /** + * + * + *
        +   * Output only. The resource path of the ImageImportJob.
        +   * 
        + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
        +   * Output only. The resource path of the ImageImportJob.
        +   * 
        + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
        +   * Output only. The resource paths of the resources created by the image
        +   * import job.
        +   * 
        + * + * repeated string created_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the createdResources. + */ + java.util.List getCreatedResourcesList(); + + /** + * + * + *
        +   * Output only. The resource paths of the resources created by the image
        +   * import job.
        +   * 
        + * + * repeated string created_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of createdResources. + */ + int getCreatedResourcesCount(); + + /** + * + * + *
        +   * Output only. The resource paths of the resources created by the image
        +   * import job.
        +   * 
        + * + * repeated string created_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The createdResources at the given index. + */ + java.lang.String getCreatedResources(int index); + + /** + * + * + *
        +   * Output only. The resource paths of the resources created by the image
        +   * import job.
        +   * 
        + * + * repeated string created_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the createdResources at the given index. + */ + com.google.protobuf.ByteString getCreatedResourcesBytes(int index); + + /** + * + * + *
        +   * Output only. The state of the image import.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ImageImportJob.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
        +   * Output only. The state of the image import.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ImageImportJob.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.vmmigration.v1.ImageImportJob.State getState(); + + /** + * + * + *
        +   * Output only. The time the image import was created (as an API call, not
        +   * when it was actually created in the target).
        +   * 
        + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
        +   * Output only. The time the image import was created (as an API call, not
        +   * when it was actually created in the target).
        +   * 
        + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
        +   * Output only. The time the image import was created (as an API call, not
        +   * when it was actually created in the target).
        +   * 
        + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
        +   * Output only. The time the image import was ended.
        +   * 
        + * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + + /** + * + * + *
        +   * Output only. The time the image import was ended.
        +   * 
        + * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + + /** + * + * + *
        +   * Output only. The time the image import was ended.
        +   * 
        + * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + /** + * + * + *
        +   * Output only. Provides details on the error that led to the image import
        +   * state in case of an error.
        +   * 
        + * + * repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getErrorsList(); + + /** + * + * + *
        +   * Output only. Provides details on the error that led to the image import
        +   * state in case of an error.
        +   * 
        + * + * repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.rpc.Status getErrors(int index); + + /** + * + * + *
        +   * Output only. Provides details on the error that led to the image import
        +   * state in case of an error.
        +   * 
        + * + * repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getErrorsCount(); + + /** + * + * + *
        +   * Output only. Provides details on the error that led to the image import
        +   * state in case of an error.
        +   * 
        + * + * repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getErrorsOrBuilderList(); + + /** + * + * + *
        +   * Output only. Provides details on the error that led to the image import
        +   * state in case of an error.
        +   * 
        + * + * repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.rpc.StatusOrBuilder getErrorsOrBuilder(int index); + + /** + * + * + *
        +   * Output only. Warnings that occurred during the image import.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.MigrationWarning warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getWarningsList(); + + /** + * + * + *
        +   * Output only. Warnings that occurred during the image import.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.MigrationWarning warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.vmmigration.v1.MigrationWarning getWarnings(int index); + + /** + * + * + *
        +   * Output only. Warnings that occurred during the image import.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.MigrationWarning warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getWarningsCount(); + + /** + * + * + *
        +   * Output only. Warnings that occurred during the image import.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.MigrationWarning warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getWarningsOrBuilderList(); + + /** + * + * + *
        +   * Output only. Warnings that occurred during the image import.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.MigrationWarning warnings = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.vmmigration.v1.MigrationWarningOrBuilder getWarningsOrBuilder(int index); + + /** + * + * + *
        +   * Output only. The image import steps list representing its progress.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportStep steps = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getStepsList(); + + /** + * + * + *
        +   * Output only. The image import steps list representing its progress.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportStep steps = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.vmmigration.v1.ImageImportStep getSteps(int index); + + /** + * + * + *
        +   * Output only. The image import steps list representing its progress.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportStep steps = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getStepsCount(); + + /** + * + * + *
        +   * Output only. The image import steps list representing its progress.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportStep steps = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getStepsOrBuilderList(); + + /** + * + * + *
        +   * Output only. The image import steps list representing its progress.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportStep steps = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.vmmigration.v1.ImageImportStepOrBuilder getStepsOrBuilder(int index); + + com.google.cloud.vmmigration.v1.ImageImportJob.SourceCase getSourceCase(); + + com.google.cloud.vmmigration.v1.ImageImportJob.TargetDetailsCase getTargetDetailsCase(); +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ImageImportName.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ImageImportName.java new file mode 100644 index 000000000000..d5db16c48afe --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ImageImportName.java @@ -0,0 +1,217 @@ +/* + * 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.vmmigration.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class ImageImportName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_JOB = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/imageImports/{job}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String job; + + @Deprecated + protected ImageImportName() { + project = null; + location = null; + job = null; + } + + private ImageImportName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + job = Preconditions.checkNotNull(builder.getJob()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getJob() { + return job; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ImageImportName of(String project, String location, String job) { + return newBuilder().setProject(project).setLocation(location).setJob(job).build(); + } + + public static String format(String project, String location, String job) { + return newBuilder().setProject(project).setLocation(location).setJob(job).build().toString(); + } + + public static ImageImportName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_JOB.validatedMatch( + formattedString, "ImageImportName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("job")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (ImageImportName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_JOB.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (job != null) { + fieldMapBuilder.put("job", job); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_JOB.instantiate("project", project, "location", location, "job", job); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ImageImportName that = ((ImageImportName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.job, that.job); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(job); + return h; + } + + /** Builder for projects/{project}/locations/{location}/imageImports/{job}. */ + public static class Builder { + private String project; + private String location; + private String job; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getJob() { + return job; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setJob(String job) { + this.job = job; + return this; + } + + private Builder(ImageImportName imageImportName) { + this.project = imageImportName.project; + this.location = imageImportName.location; + this.job = imageImportName.job; + } + + public ImageImportName build() { + return new ImageImportName(this); + } + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ImageImportOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ImageImportOrBuilder.java new file mode 100644 index 000000000000..ea1a32762b5a --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ImageImportOrBuilder.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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface ImageImportOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.ImageImport) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Immutable. The path to the Cloud Storage file from which the image should
        +   * be imported.
        +   * 
        + * + * string cloud_storage_uri = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return Whether the cloudStorageUri field is set. + */ + boolean hasCloudStorageUri(); + + /** + * + * + *
        +   * Immutable. The path to the Cloud Storage file from which the image should
        +   * be imported.
        +   * 
        + * + * string cloud_storage_uri = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The cloudStorageUri. + */ + java.lang.String getCloudStorageUri(); + + /** + * + * + *
        +   * Immutable. The path to the Cloud Storage file from which the image should
        +   * be imported.
        +   * 
        + * + * string cloud_storage_uri = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for cloudStorageUri. + */ + com.google.protobuf.ByteString getCloudStorageUriBytes(); + + /** + * + * + *
        +   * Immutable. Target details for importing a disk image, will be used by
        +   * ImageImportJob.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.DiskImageTargetDetails disk_image_target_defaults = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the diskImageTargetDefaults field is set. + */ + boolean hasDiskImageTargetDefaults(); + + /** + * + * + *
        +   * Immutable. Target details for importing a disk image, will be used by
        +   * ImageImportJob.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.DiskImageTargetDetails disk_image_target_defaults = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The diskImageTargetDefaults. + */ + com.google.cloud.vmmigration.v1.DiskImageTargetDetails getDiskImageTargetDefaults(); + + /** + * + * + *
        +   * Immutable. Target details for importing a disk image, will be used by
        +   * ImageImportJob.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.DiskImageTargetDetails disk_image_target_defaults = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + com.google.cloud.vmmigration.v1.DiskImageTargetDetailsOrBuilder + getDiskImageTargetDefaultsOrBuilder(); + + /** + * + * + *
        +   * Immutable. Target details for importing a machine image, will be used by
        +   * ImageImportJob.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.MachineImageTargetDetails machine_image_target_defaults = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the machineImageTargetDefaults field is set. + */ + boolean hasMachineImageTargetDefaults(); + + /** + * + * + *
        +   * Immutable. Target details for importing a machine image, will be used by
        +   * ImageImportJob.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.MachineImageTargetDetails machine_image_target_defaults = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The machineImageTargetDefaults. + */ + com.google.cloud.vmmigration.v1.MachineImageTargetDetails getMachineImageTargetDefaults(); + + /** + * + * + *
        +   * Immutable. Target details for importing a machine image, will be used by
        +   * ImageImportJob.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.MachineImageTargetDetails machine_image_target_defaults = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + com.google.cloud.vmmigration.v1.MachineImageTargetDetailsOrBuilder + getMachineImageTargetDefaultsOrBuilder(); + + /** + * + * + *
        +   * Output only. The resource path of the ImageImport.
        +   * 
        + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
        +   * Output only. The resource path of the ImageImport.
        +   * 
        + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
        +   * Output only. The time the image import was created.
        +   * 
        + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
        +   * Output only. The time the image import was created.
        +   * 
        + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
        +   * Output only. The time the image import was created.
        +   * 
        + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
        +   * Output only. The result of the most recent runs for this ImageImport. All
        +   * jobs for this ImageImport can be listed via ListImageImportJobs.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportJob recent_image_import_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getRecentImageImportJobsList(); + + /** + * + * + *
        +   * Output only. The result of the most recent runs for this ImageImport. All
        +   * jobs for this ImageImport can be listed via ListImageImportJobs.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportJob recent_image_import_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.vmmigration.v1.ImageImportJob getRecentImageImportJobs(int index); + + /** + * + * + *
        +   * Output only. The result of the most recent runs for this ImageImport. All
        +   * jobs for this ImageImport can be listed via ListImageImportJobs.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportJob recent_image_import_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getRecentImageImportJobsCount(); + + /** + * + * + *
        +   * Output only. The result of the most recent runs for this ImageImport. All
        +   * jobs for this ImageImport can be listed via ListImageImportJobs.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportJob recent_image_import_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getRecentImageImportJobsOrBuilderList(); + + /** + * + * + *
        +   * Output only. The result of the most recent runs for this ImageImport. All
        +   * jobs for this ImageImport can be listed via ListImageImportJobs.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportJob recent_image_import_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.vmmigration.v1.ImageImportJobOrBuilder getRecentImageImportJobsOrBuilder( + int index); + + /** + * + * + *
        +   * Immutable. The encryption details used by the image import process during
        +   * the image adaptation for Compute Engine.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the encryption field is set. + */ + boolean hasEncryption(); + + /** + * + * + *
        +   * Immutable. The encryption details used by the image import process during
        +   * the image adaptation for Compute Engine.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The encryption. + */ + com.google.cloud.vmmigration.v1.Encryption getEncryption(); + + /** + * + * + *
        +   * Immutable. The encryption details used by the image import process during
        +   * the image adaptation for Compute Engine.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + com.google.cloud.vmmigration.v1.EncryptionOrBuilder getEncryptionOrBuilder(); + + com.google.cloud.vmmigration.v1.ImageImport.SourceCase getSourceCase(); + + com.google.cloud.vmmigration.v1.ImageImport.TargetDefaultsCase getTargetDefaultsCase(); +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ImageImportOsAdaptationParameters.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ImageImportOsAdaptationParameters.java new file mode 100644 index 000000000000..3e07994b298c --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ImageImportOsAdaptationParameters.java @@ -0,0 +1,940 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * Parameters affecting the OS adaptation process.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters} + */ +public final class ImageImportOsAdaptationParameters extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters) + ImageImportOsAdaptationParametersOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ImageImportOsAdaptationParameters.newBuilder() to construct. + private ImageImportOsAdaptationParameters( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ImageImportOsAdaptationParameters() { + licenseType_ = 0; + bootConversion_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ImageImportOsAdaptationParameters(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ImageImportOsAdaptationParameters_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ImageImportOsAdaptationParameters_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters.class, + com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters.Builder.class); + } + + public static final int GENERALIZE_FIELD_NUMBER = 1; + private boolean generalize_ = false; + + /** + * + * + *
        +   * Optional. Set to true in order to generalize the imported image.
        +   * The generalization process enables co-existence of multiple VMs created
        +   * from the same image.
        +   * For Windows, generalizing the image removes computer-specific information
        +   * such as installed drivers and the computer security identifier (SID).
        +   * 
        + * + * bool generalize = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The generalize. + */ + @java.lang.Override + public boolean getGeneralize() { + return generalize_; + } + + public static final int LICENSE_TYPE_FIELD_NUMBER = 2; + private int licenseType_ = 0; + + /** + * + * + *
        +   * Optional. Choose which type of license to apply to the imported image.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineLicenseType license_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for licenseType. + */ + @java.lang.Override + public int getLicenseTypeValue() { + return licenseType_; + } + + /** + * + * + *
        +   * Optional. Choose which type of license to apply to the imported image.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineLicenseType license_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The licenseType. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ComputeEngineLicenseType getLicenseType() { + com.google.cloud.vmmigration.v1.ComputeEngineLicenseType result = + com.google.cloud.vmmigration.v1.ComputeEngineLicenseType.forNumber(licenseType_); + return result == null + ? com.google.cloud.vmmigration.v1.ComputeEngineLicenseType.UNRECOGNIZED + : result; + } + + public static final int BOOT_CONVERSION_FIELD_NUMBER = 3; + private int bootConversion_ = 0; + + /** + * + * + *
        +   * Optional. By default the image will keep its existing boot option. Setting
        +   * this property will trigger an internal process which will convert the
        +   * image from using the existing boot option to another.
        +   * The size of the boot disk might be increased to allow the conversion
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.BootConversion boot_conversion = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for bootConversion. + */ + @java.lang.Override + public int getBootConversionValue() { + return bootConversion_; + } + + /** + * + * + *
        +   * Optional. By default the image will keep its existing boot option. Setting
        +   * this property will trigger an internal process which will convert the
        +   * image from using the existing boot option to another.
        +   * The size of the boot disk might be increased to allow the conversion
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.BootConversion boot_conversion = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bootConversion. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.BootConversion getBootConversion() { + com.google.cloud.vmmigration.v1.BootConversion result = + com.google.cloud.vmmigration.v1.BootConversion.forNumber(bootConversion_); + return result == null ? com.google.cloud.vmmigration.v1.BootConversion.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 (generalize_ != false) { + output.writeBool(1, generalize_); + } + if (licenseType_ + != com.google.cloud.vmmigration.v1.ComputeEngineLicenseType + .COMPUTE_ENGINE_LICENSE_TYPE_DEFAULT + .getNumber()) { + output.writeEnum(2, licenseType_); + } + if (bootConversion_ + != com.google.cloud.vmmigration.v1.BootConversion.BOOT_CONVERSION_UNSPECIFIED.getNumber()) { + output.writeEnum(3, bootConversion_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (generalize_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, generalize_); + } + if (licenseType_ + != com.google.cloud.vmmigration.v1.ComputeEngineLicenseType + .COMPUTE_ENGINE_LICENSE_TYPE_DEFAULT + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, licenseType_); + } + if (bootConversion_ + != com.google.cloud.vmmigration.v1.BootConversion.BOOT_CONVERSION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, bootConversion_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.vmmigration.v1.ImageImportOsAdaptationParameters)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters other = + (com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters) obj; + + if (getGeneralize() != other.getGeneralize()) return false; + if (licenseType_ != other.licenseType_) return false; + if (bootConversion_ != other.bootConversion_) 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) + GENERALIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getGeneralize()); + hash = (37 * hash) + LICENSE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + licenseType_; + hash = (37 * hash) + BOOT_CONVERSION_FIELD_NUMBER; + hash = (53 * hash) + bootConversion_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters 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.vmmigration.v1.ImageImportOsAdaptationParameters parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters parseFrom( + 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.vmmigration.v1.ImageImportOsAdaptationParameters parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters 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.vmmigration.v1.ImageImportOsAdaptationParameters + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters + 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.vmmigration.v1.ImageImportOsAdaptationParameters parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters 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.vmmigration.v1.ImageImportOsAdaptationParameters prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
        +   * Parameters affecting the OS adaptation process.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters) + com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParametersOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ImageImportOsAdaptationParameters_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ImageImportOsAdaptationParameters_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters.class, + com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters.Builder.class); + } + + // Construct using + // com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + generalize_ = false; + licenseType_ = 0; + bootConversion_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ImageImportOsAdaptationParameters_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters + getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters build() { + com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters buildPartial() { + com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters result = + new com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.generalize_ = generalize_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.licenseType_ = licenseType_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.bootConversion_ = bootConversion_; + } + } + + @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.vmmigration.v1.ImageImportOsAdaptationParameters) { + return mergeFrom((com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters other) { + if (other + == com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters.getDefaultInstance()) + return this; + if (other.getGeneralize() != false) { + setGeneralize(other.getGeneralize()); + } + if (other.licenseType_ != 0) { + setLicenseTypeValue(other.getLicenseTypeValue()); + } + if (other.bootConversion_ != 0) { + setBootConversionValue(other.getBootConversionValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + generalize_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + licenseType_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + bootConversion_ = 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 boolean generalize_; + + /** + * + * + *
        +     * Optional. Set to true in order to generalize the imported image.
        +     * The generalization process enables co-existence of multiple VMs created
        +     * from the same image.
        +     * For Windows, generalizing the image removes computer-specific information
        +     * such as installed drivers and the computer security identifier (SID).
        +     * 
        + * + * bool generalize = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The generalize. + */ + @java.lang.Override + public boolean getGeneralize() { + return generalize_; + } + + /** + * + * + *
        +     * Optional. Set to true in order to generalize the imported image.
        +     * The generalization process enables co-existence of multiple VMs created
        +     * from the same image.
        +     * For Windows, generalizing the image removes computer-specific information
        +     * such as installed drivers and the computer security identifier (SID).
        +     * 
        + * + * bool generalize = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The generalize to set. + * @return This builder for chaining. + */ + public Builder setGeneralize(boolean value) { + + generalize_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Set to true in order to generalize the imported image.
        +     * The generalization process enables co-existence of multiple VMs created
        +     * from the same image.
        +     * For Windows, generalizing the image removes computer-specific information
        +     * such as installed drivers and the computer security identifier (SID).
        +     * 
        + * + * bool generalize = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearGeneralize() { + bitField0_ = (bitField0_ & ~0x00000001); + generalize_ = false; + onChanged(); + return this; + } + + private int licenseType_ = 0; + + /** + * + * + *
        +     * Optional. Choose which type of license to apply to the imported image.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineLicenseType license_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for licenseType. + */ + @java.lang.Override + public int getLicenseTypeValue() { + return licenseType_; + } + + /** + * + * + *
        +     * Optional. Choose which type of license to apply to the imported image.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineLicenseType license_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for licenseType to set. + * @return This builder for chaining. + */ + public Builder setLicenseTypeValue(int value) { + licenseType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Choose which type of license to apply to the imported image.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineLicenseType license_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The licenseType. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ComputeEngineLicenseType getLicenseType() { + com.google.cloud.vmmigration.v1.ComputeEngineLicenseType result = + com.google.cloud.vmmigration.v1.ComputeEngineLicenseType.forNumber(licenseType_); + return result == null + ? com.google.cloud.vmmigration.v1.ComputeEngineLicenseType.UNRECOGNIZED + : result; + } + + /** + * + * + *
        +     * Optional. Choose which type of license to apply to the imported image.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineLicenseType license_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The licenseType to set. + * @return This builder for chaining. + */ + public Builder setLicenseType(com.google.cloud.vmmigration.v1.ComputeEngineLicenseType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + licenseType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Choose which type of license to apply to the imported image.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineLicenseType license_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearLicenseType() { + bitField0_ = (bitField0_ & ~0x00000002); + licenseType_ = 0; + onChanged(); + return this; + } + + private int bootConversion_ = 0; + + /** + * + * + *
        +     * Optional. By default the image will keep its existing boot option. Setting
        +     * this property will trigger an internal process which will convert the
        +     * image from using the existing boot option to another.
        +     * The size of the boot disk might be increased to allow the conversion
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.BootConversion boot_conversion = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for bootConversion. + */ + @java.lang.Override + public int getBootConversionValue() { + return bootConversion_; + } + + /** + * + * + *
        +     * Optional. By default the image will keep its existing boot option. Setting
        +     * this property will trigger an internal process which will convert the
        +     * image from using the existing boot option to another.
        +     * The size of the boot disk might be increased to allow the conversion
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.BootConversion boot_conversion = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for bootConversion to set. + * @return This builder for chaining. + */ + public Builder setBootConversionValue(int value) { + bootConversion_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. By default the image will keep its existing boot option. Setting
        +     * this property will trigger an internal process which will convert the
        +     * image from using the existing boot option to another.
        +     * The size of the boot disk might be increased to allow the conversion
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.BootConversion boot_conversion = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bootConversion. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.BootConversion getBootConversion() { + com.google.cloud.vmmigration.v1.BootConversion result = + com.google.cloud.vmmigration.v1.BootConversion.forNumber(bootConversion_); + return result == null ? com.google.cloud.vmmigration.v1.BootConversion.UNRECOGNIZED : result; + } + + /** + * + * + *
        +     * Optional. By default the image will keep its existing boot option. Setting
        +     * this property will trigger an internal process which will convert the
        +     * image from using the existing boot option to another.
        +     * The size of the boot disk might be increased to allow the conversion
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.BootConversion boot_conversion = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bootConversion to set. + * @return This builder for chaining. + */ + public Builder setBootConversion(com.google.cloud.vmmigration.v1.BootConversion value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + bootConversion_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. By default the image will keep its existing boot option. Setting
        +     * this property will trigger an internal process which will convert the
        +     * image from using the existing boot option to another.
        +     * The size of the boot disk might be increased to allow the conversion
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.BootConversion boot_conversion = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearBootConversion() { + bitField0_ = (bitField0_ & ~0x00000004); + bootConversion_ = 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.vmmigration.v1.ImageImportOsAdaptationParameters) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters) + private static final com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters(); + } + + public static com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageImportOsAdaptationParameters parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.ImageImportOsAdaptationParameters + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ImageImportOsAdaptationParametersOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ImageImportOsAdaptationParametersOrBuilder.java new file mode 100644 index 000000000000..48dbd33ac14f --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ImageImportOsAdaptationParametersOrBuilder.java @@ -0,0 +1,109 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface ImageImportOsAdaptationParametersOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Optional. Set to true in order to generalize the imported image.
        +   * The generalization process enables co-existence of multiple VMs created
        +   * from the same image.
        +   * For Windows, generalizing the image removes computer-specific information
        +   * such as installed drivers and the computer security identifier (SID).
        +   * 
        + * + * bool generalize = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The generalize. + */ + boolean getGeneralize(); + + /** + * + * + *
        +   * Optional. Choose which type of license to apply to the imported image.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineLicenseType license_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for licenseType. + */ + int getLicenseTypeValue(); + + /** + * + * + *
        +   * Optional. Choose which type of license to apply to the imported image.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineLicenseType license_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The licenseType. + */ + com.google.cloud.vmmigration.v1.ComputeEngineLicenseType getLicenseType(); + + /** + * + * + *
        +   * Optional. By default the image will keep its existing boot option. Setting
        +   * this property will trigger an internal process which will convert the
        +   * image from using the existing boot option to another.
        +   * The size of the boot disk might be increased to allow the conversion
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.BootConversion boot_conversion = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for bootConversion. + */ + int getBootConversionValue(); + + /** + * + * + *
        +   * Optional. By default the image will keep its existing boot option. Setting
        +   * this property will trigger an internal process which will convert the
        +   * image from using the existing boot option to another.
        +   * The size of the boot disk might be increased to allow the conversion
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.BootConversion boot_conversion = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bootConversion. + */ + com.google.cloud.vmmigration.v1.BootConversion getBootConversion(); +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ImageImportStep.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ImageImportStep.java new file mode 100644 index 000000000000..ea8bf51ec11b --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ImageImportStep.java @@ -0,0 +1,2356 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * ImageImportStep holds information about the image import step progress.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.ImageImportStep} + */ +public final class ImageImportStep extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.ImageImportStep) + ImageImportStepOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ImageImportStep.newBuilder() to construct. + private ImageImportStep(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ImageImportStep() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ImageImportStep(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ImageImportStep_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ImageImportStep_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.ImageImportStep.class, + com.google.cloud.vmmigration.v1.ImageImportStep.Builder.class); + } + + private int bitField0_; + private int stepCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object step_; + + public enum StepCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + INITIALIZING(3), + LOADING_SOURCE_FILES(4), + ADAPTING_OS(5), + CREATING_IMAGE(6), + STEP_NOT_SET(0); + private final int value; + + private StepCase(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 StepCase valueOf(int value) { + return forNumber(value); + } + + public static StepCase forNumber(int value) { + switch (value) { + case 3: + return INITIALIZING; + case 4: + return LOADING_SOURCE_FILES; + case 5: + return ADAPTING_OS; + case 6: + return CREATING_IMAGE; + case 0: + return STEP_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public StepCase getStepCase() { + return StepCase.forNumber(stepCase_); + } + + public static final int INITIALIZING_FIELD_NUMBER = 3; + + /** + * + * + *
        +   * Initializing step.
        +   * 
        + * + * .google.cloud.vmmigration.v1.InitializingImageImportStep initializing = 3; + * + * @return Whether the initializing field is set. + */ + @java.lang.Override + public boolean hasInitializing() { + return stepCase_ == 3; + } + + /** + * + * + *
        +   * Initializing step.
        +   * 
        + * + * .google.cloud.vmmigration.v1.InitializingImageImportStep initializing = 3; + * + * @return The initializing. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.InitializingImageImportStep getInitializing() { + if (stepCase_ == 3) { + return (com.google.cloud.vmmigration.v1.InitializingImageImportStep) step_; + } + return com.google.cloud.vmmigration.v1.InitializingImageImportStep.getDefaultInstance(); + } + + /** + * + * + *
        +   * Initializing step.
        +   * 
        + * + * .google.cloud.vmmigration.v1.InitializingImageImportStep initializing = 3; + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.InitializingImageImportStepOrBuilder + getInitializingOrBuilder() { + if (stepCase_ == 3) { + return (com.google.cloud.vmmigration.v1.InitializingImageImportStep) step_; + } + return com.google.cloud.vmmigration.v1.InitializingImageImportStep.getDefaultInstance(); + } + + public static final int LOADING_SOURCE_FILES_FIELD_NUMBER = 4; + + /** + * + * + *
        +   * Loading source files step.
        +   * 
        + * + * .google.cloud.vmmigration.v1.LoadingImageSourceFilesStep loading_source_files = 4; + * + * @return Whether the loadingSourceFiles field is set. + */ + @java.lang.Override + public boolean hasLoadingSourceFiles() { + return stepCase_ == 4; + } + + /** + * + * + *
        +   * Loading source files step.
        +   * 
        + * + * .google.cloud.vmmigration.v1.LoadingImageSourceFilesStep loading_source_files = 4; + * + * @return The loadingSourceFiles. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep getLoadingSourceFiles() { + if (stepCase_ == 4) { + return (com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep) step_; + } + return com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep.getDefaultInstance(); + } + + /** + * + * + *
        +   * Loading source files step.
        +   * 
        + * + * .google.cloud.vmmigration.v1.LoadingImageSourceFilesStep loading_source_files = 4; + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStepOrBuilder + getLoadingSourceFilesOrBuilder() { + if (stepCase_ == 4) { + return (com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep) step_; + } + return com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep.getDefaultInstance(); + } + + public static final int ADAPTING_OS_FIELD_NUMBER = 5; + + /** + * + * + *
        +   * Adapting OS step.
        +   * 
        + * + * .google.cloud.vmmigration.v1.AdaptingOSStep adapting_os = 5; + * + * @return Whether the adaptingOs field is set. + */ + @java.lang.Override + public boolean hasAdaptingOs() { + return stepCase_ == 5; + } + + /** + * + * + *
        +   * Adapting OS step.
        +   * 
        + * + * .google.cloud.vmmigration.v1.AdaptingOSStep adapting_os = 5; + * + * @return The adaptingOs. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.AdaptingOSStep getAdaptingOs() { + if (stepCase_ == 5) { + return (com.google.cloud.vmmigration.v1.AdaptingOSStep) step_; + } + return com.google.cloud.vmmigration.v1.AdaptingOSStep.getDefaultInstance(); + } + + /** + * + * + *
        +   * Adapting OS step.
        +   * 
        + * + * .google.cloud.vmmigration.v1.AdaptingOSStep adapting_os = 5; + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.AdaptingOSStepOrBuilder getAdaptingOsOrBuilder() { + if (stepCase_ == 5) { + return (com.google.cloud.vmmigration.v1.AdaptingOSStep) step_; + } + return com.google.cloud.vmmigration.v1.AdaptingOSStep.getDefaultInstance(); + } + + public static final int CREATING_IMAGE_FIELD_NUMBER = 6; + + /** + * + * + *
        +   * Creating image step.
        +   * 
        + * + * .google.cloud.vmmigration.v1.CreatingImageStep creating_image = 6; + * + * @return Whether the creatingImage field is set. + */ + @java.lang.Override + public boolean hasCreatingImage() { + return stepCase_ == 6; + } + + /** + * + * + *
        +   * Creating image step.
        +   * 
        + * + * .google.cloud.vmmigration.v1.CreatingImageStep creating_image = 6; + * + * @return The creatingImage. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.CreatingImageStep getCreatingImage() { + if (stepCase_ == 6) { + return (com.google.cloud.vmmigration.v1.CreatingImageStep) step_; + } + return com.google.cloud.vmmigration.v1.CreatingImageStep.getDefaultInstance(); + } + + /** + * + * + *
        +   * Creating image step.
        +   * 
        + * + * .google.cloud.vmmigration.v1.CreatingImageStep creating_image = 6; + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.CreatingImageStepOrBuilder getCreatingImageOrBuilder() { + if (stepCase_ == 6) { + return (com.google.cloud.vmmigration.v1.CreatingImageStep) step_; + } + return com.google.cloud.vmmigration.v1.CreatingImageStep.getDefaultInstance(); + } + + public static final int START_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp startTime_; + + /** + * + * + *
        +   * Output only. The time the step has started.
        +   * 
        + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
        +   * Output only. The time the step has started.
        +   * 
        + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + /** + * + * + *
        +   * Output only. The time the step has started.
        +   * 
        + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + public static final int END_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp endTime_; + + /** + * + * + *
        +   * Output only. The time the step has ended.
        +   * 
        + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
        +   * Output only. The time the step has ended.
        +   * 
        + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + /** + * + * + *
        +   * Output only. The time the step has ended.
        +   * 
        + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getEndTime()); + } + if (stepCase_ == 3) { + output.writeMessage(3, (com.google.cloud.vmmigration.v1.InitializingImageImportStep) step_); + } + if (stepCase_ == 4) { + output.writeMessage(4, (com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep) step_); + } + if (stepCase_ == 5) { + output.writeMessage(5, (com.google.cloud.vmmigration.v1.AdaptingOSStep) step_); + } + if (stepCase_ == 6) { + output.writeMessage(6, (com.google.cloud.vmmigration.v1.CreatingImageStep) step_); + } + 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, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + } + if (stepCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.vmmigration.v1.InitializingImageImportStep) step_); + } + if (stepCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep) step_); + } + if (stepCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.vmmigration.v1.AdaptingOSStep) step_); + } + if (stepCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.cloud.vmmigration.v1.CreatingImageStep) step_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.vmmigration.v1.ImageImportStep)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.ImageImportStep other = + (com.google.cloud.vmmigration.v1.ImageImportStep) obj; + + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getStepCase().equals(other.getStepCase())) return false; + switch (stepCase_) { + case 3: + if (!getInitializing().equals(other.getInitializing())) return false; + break; + case 4: + if (!getLoadingSourceFiles().equals(other.getLoadingSourceFiles())) return false; + break; + case 5: + if (!getAdaptingOs().equals(other.getAdaptingOs())) return false; + break; + case 6: + if (!getCreatingImage().equals(other.getCreatingImage())) 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(); + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + switch (stepCase_) { + case 3: + hash = (37 * hash) + INITIALIZING_FIELD_NUMBER; + hash = (53 * hash) + getInitializing().hashCode(); + break; + case 4: + hash = (37 * hash) + LOADING_SOURCE_FILES_FIELD_NUMBER; + hash = (53 * hash) + getLoadingSourceFiles().hashCode(); + break; + case 5: + hash = (37 * hash) + ADAPTING_OS_FIELD_NUMBER; + hash = (53 * hash) + getAdaptingOs().hashCode(); + break; + case 6: + hash = (37 * hash) + CREATING_IMAGE_FIELD_NUMBER; + hash = (53 * hash) + getCreatingImage().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.ImageImportStep parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.ImageImportStep 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.vmmigration.v1.ImageImportStep parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.ImageImportStep parseFrom( + 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.vmmigration.v1.ImageImportStep parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.ImageImportStep parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.ImageImportStep parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.ImageImportStep 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.vmmigration.v1.ImageImportStep parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.ImageImportStep 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.vmmigration.v1.ImageImportStep parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.ImageImportStep 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.vmmigration.v1.ImageImportStep prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
        +   * ImageImportStep holds information about the image import step progress.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.ImageImportStep} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.ImageImportStep) + com.google.cloud.vmmigration.v1.ImageImportStepOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ImageImportStep_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ImageImportStep_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.ImageImportStep.class, + com.google.cloud.vmmigration.v1.ImageImportStep.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.ImageImportStep.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getStartTimeFieldBuilder(); + getEndTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (initializingBuilder_ != null) { + initializingBuilder_.clear(); + } + if (loadingSourceFilesBuilder_ != null) { + loadingSourceFilesBuilder_.clear(); + } + if (adaptingOsBuilder_ != null) { + adaptingOsBuilder_.clear(); + } + if (creatingImageBuilder_ != null) { + creatingImageBuilder_.clear(); + } + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + stepCase_ = 0; + step_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ImageImportStep_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.ImageImportStep getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.ImageImportStep.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.ImageImportStep build() { + com.google.cloud.vmmigration.v1.ImageImportStep result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.ImageImportStep buildPartial() { + com.google.cloud.vmmigration.v1.ImageImportStep result = + new com.google.cloud.vmmigration.v1.ImageImportStep(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vmmigration.v1.ImageImportStep result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.vmmigration.v1.ImageImportStep result) { + result.stepCase_ = stepCase_; + result.step_ = this.step_; + if (stepCase_ == 3 && initializingBuilder_ != null) { + result.step_ = initializingBuilder_.build(); + } + if (stepCase_ == 4 && loadingSourceFilesBuilder_ != null) { + result.step_ = loadingSourceFilesBuilder_.build(); + } + if (stepCase_ == 5 && adaptingOsBuilder_ != null) { + result.step_ = adaptingOsBuilder_.build(); + } + if (stepCase_ == 6 && creatingImageBuilder_ != null) { + result.step_ = creatingImageBuilder_.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.vmmigration.v1.ImageImportStep) { + return mergeFrom((com.google.cloud.vmmigration.v1.ImageImportStep) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.ImageImportStep other) { + if (other == com.google.cloud.vmmigration.v1.ImageImportStep.getDefaultInstance()) + return this; + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + switch (other.getStepCase()) { + case INITIALIZING: + { + mergeInitializing(other.getInitializing()); + break; + } + case LOADING_SOURCE_FILES: + { + mergeLoadingSourceFiles(other.getLoadingSourceFiles()); + break; + } + case ADAPTING_OS: + { + mergeAdaptingOs(other.getAdaptingOs()); + break; + } + case CREATING_IMAGE: + { + mergeCreatingImage(other.getCreatingImage()); + break; + } + case STEP_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 10 + case 18: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 18 + case 26: + { + input.readMessage(getInitializingFieldBuilder().getBuilder(), extensionRegistry); + stepCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage( + getLoadingSourceFilesFieldBuilder().getBuilder(), extensionRegistry); + stepCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage(getAdaptingOsFieldBuilder().getBuilder(), extensionRegistry); + stepCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage(getCreatingImageFieldBuilder().getBuilder(), extensionRegistry); + stepCase_ = 6; + 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 stepCase_ = 0; + private java.lang.Object step_; + + public StepCase getStepCase() { + return StepCase.forNumber(stepCase_); + } + + public Builder clearStep() { + stepCase_ = 0; + step_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.InitializingImageImportStep, + com.google.cloud.vmmigration.v1.InitializingImageImportStep.Builder, + com.google.cloud.vmmigration.v1.InitializingImageImportStepOrBuilder> + initializingBuilder_; + + /** + * + * + *
        +     * Initializing step.
        +     * 
        + * + * .google.cloud.vmmigration.v1.InitializingImageImportStep initializing = 3; + * + * @return Whether the initializing field is set. + */ + @java.lang.Override + public boolean hasInitializing() { + return stepCase_ == 3; + } + + /** + * + * + *
        +     * Initializing step.
        +     * 
        + * + * .google.cloud.vmmigration.v1.InitializingImageImportStep initializing = 3; + * + * @return The initializing. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.InitializingImageImportStep getInitializing() { + if (initializingBuilder_ == null) { + if (stepCase_ == 3) { + return (com.google.cloud.vmmigration.v1.InitializingImageImportStep) step_; + } + return com.google.cloud.vmmigration.v1.InitializingImageImportStep.getDefaultInstance(); + } else { + if (stepCase_ == 3) { + return initializingBuilder_.getMessage(); + } + return com.google.cloud.vmmigration.v1.InitializingImageImportStep.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Initializing step.
        +     * 
        + * + * .google.cloud.vmmigration.v1.InitializingImageImportStep initializing = 3; + */ + public Builder setInitializing( + com.google.cloud.vmmigration.v1.InitializingImageImportStep value) { + if (initializingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + step_ = value; + onChanged(); + } else { + initializingBuilder_.setMessage(value); + } + stepCase_ = 3; + return this; + } + + /** + * + * + *
        +     * Initializing step.
        +     * 
        + * + * .google.cloud.vmmigration.v1.InitializingImageImportStep initializing = 3; + */ + public Builder setInitializing( + com.google.cloud.vmmigration.v1.InitializingImageImportStep.Builder builderForValue) { + if (initializingBuilder_ == null) { + step_ = builderForValue.build(); + onChanged(); + } else { + initializingBuilder_.setMessage(builderForValue.build()); + } + stepCase_ = 3; + return this; + } + + /** + * + * + *
        +     * Initializing step.
        +     * 
        + * + * .google.cloud.vmmigration.v1.InitializingImageImportStep initializing = 3; + */ + public Builder mergeInitializing( + com.google.cloud.vmmigration.v1.InitializingImageImportStep value) { + if (initializingBuilder_ == null) { + if (stepCase_ == 3 + && step_ + != com.google.cloud.vmmigration.v1.InitializingImageImportStep + .getDefaultInstance()) { + step_ = + com.google.cloud.vmmigration.v1.InitializingImageImportStep.newBuilder( + (com.google.cloud.vmmigration.v1.InitializingImageImportStep) step_) + .mergeFrom(value) + .buildPartial(); + } else { + step_ = value; + } + onChanged(); + } else { + if (stepCase_ == 3) { + initializingBuilder_.mergeFrom(value); + } else { + initializingBuilder_.setMessage(value); + } + } + stepCase_ = 3; + return this; + } + + /** + * + * + *
        +     * Initializing step.
        +     * 
        + * + * .google.cloud.vmmigration.v1.InitializingImageImportStep initializing = 3; + */ + public Builder clearInitializing() { + if (initializingBuilder_ == null) { + if (stepCase_ == 3) { + stepCase_ = 0; + step_ = null; + onChanged(); + } + } else { + if (stepCase_ == 3) { + stepCase_ = 0; + step_ = null; + } + initializingBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Initializing step.
        +     * 
        + * + * .google.cloud.vmmigration.v1.InitializingImageImportStep initializing = 3; + */ + public com.google.cloud.vmmigration.v1.InitializingImageImportStep.Builder + getInitializingBuilder() { + return getInitializingFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Initializing step.
        +     * 
        + * + * .google.cloud.vmmigration.v1.InitializingImageImportStep initializing = 3; + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.InitializingImageImportStepOrBuilder + getInitializingOrBuilder() { + if ((stepCase_ == 3) && (initializingBuilder_ != null)) { + return initializingBuilder_.getMessageOrBuilder(); + } else { + if (stepCase_ == 3) { + return (com.google.cloud.vmmigration.v1.InitializingImageImportStep) step_; + } + return com.google.cloud.vmmigration.v1.InitializingImageImportStep.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Initializing step.
        +     * 
        + * + * .google.cloud.vmmigration.v1.InitializingImageImportStep initializing = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.InitializingImageImportStep, + com.google.cloud.vmmigration.v1.InitializingImageImportStep.Builder, + com.google.cloud.vmmigration.v1.InitializingImageImportStepOrBuilder> + getInitializingFieldBuilder() { + if (initializingBuilder_ == null) { + if (!(stepCase_ == 3)) { + step_ = com.google.cloud.vmmigration.v1.InitializingImageImportStep.getDefaultInstance(); + } + initializingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.InitializingImageImportStep, + com.google.cloud.vmmigration.v1.InitializingImageImportStep.Builder, + com.google.cloud.vmmigration.v1.InitializingImageImportStepOrBuilder>( + (com.google.cloud.vmmigration.v1.InitializingImageImportStep) step_, + getParentForChildren(), + isClean()); + step_ = null; + } + stepCase_ = 3; + onChanged(); + return initializingBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep, + com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep.Builder, + com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStepOrBuilder> + loadingSourceFilesBuilder_; + + /** + * + * + *
        +     * Loading source files step.
        +     * 
        + * + * .google.cloud.vmmigration.v1.LoadingImageSourceFilesStep loading_source_files = 4; + * + * + * @return Whether the loadingSourceFiles field is set. + */ + @java.lang.Override + public boolean hasLoadingSourceFiles() { + return stepCase_ == 4; + } + + /** + * + * + *
        +     * Loading source files step.
        +     * 
        + * + * .google.cloud.vmmigration.v1.LoadingImageSourceFilesStep loading_source_files = 4; + * + * + * @return The loadingSourceFiles. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep getLoadingSourceFiles() { + if (loadingSourceFilesBuilder_ == null) { + if (stepCase_ == 4) { + return (com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep) step_; + } + return com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep.getDefaultInstance(); + } else { + if (stepCase_ == 4) { + return loadingSourceFilesBuilder_.getMessage(); + } + return com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Loading source files step.
        +     * 
        + * + * .google.cloud.vmmigration.v1.LoadingImageSourceFilesStep loading_source_files = 4; + * + */ + public Builder setLoadingSourceFiles( + com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep value) { + if (loadingSourceFilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + step_ = value; + onChanged(); + } else { + loadingSourceFilesBuilder_.setMessage(value); + } + stepCase_ = 4; + return this; + } + + /** + * + * + *
        +     * Loading source files step.
        +     * 
        + * + * .google.cloud.vmmigration.v1.LoadingImageSourceFilesStep loading_source_files = 4; + * + */ + public Builder setLoadingSourceFiles( + com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep.Builder builderForValue) { + if (loadingSourceFilesBuilder_ == null) { + step_ = builderForValue.build(); + onChanged(); + } else { + loadingSourceFilesBuilder_.setMessage(builderForValue.build()); + } + stepCase_ = 4; + return this; + } + + /** + * + * + *
        +     * Loading source files step.
        +     * 
        + * + * .google.cloud.vmmigration.v1.LoadingImageSourceFilesStep loading_source_files = 4; + * + */ + public Builder mergeLoadingSourceFiles( + com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep value) { + if (loadingSourceFilesBuilder_ == null) { + if (stepCase_ == 4 + && step_ + != com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep + .getDefaultInstance()) { + step_ = + com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep.newBuilder( + (com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep) step_) + .mergeFrom(value) + .buildPartial(); + } else { + step_ = value; + } + onChanged(); + } else { + if (stepCase_ == 4) { + loadingSourceFilesBuilder_.mergeFrom(value); + } else { + loadingSourceFilesBuilder_.setMessage(value); + } + } + stepCase_ = 4; + return this; + } + + /** + * + * + *
        +     * Loading source files step.
        +     * 
        + * + * .google.cloud.vmmigration.v1.LoadingImageSourceFilesStep loading_source_files = 4; + * + */ + public Builder clearLoadingSourceFiles() { + if (loadingSourceFilesBuilder_ == null) { + if (stepCase_ == 4) { + stepCase_ = 0; + step_ = null; + onChanged(); + } + } else { + if (stepCase_ == 4) { + stepCase_ = 0; + step_ = null; + } + loadingSourceFilesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Loading source files step.
        +     * 
        + * + * .google.cloud.vmmigration.v1.LoadingImageSourceFilesStep loading_source_files = 4; + * + */ + public com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep.Builder + getLoadingSourceFilesBuilder() { + return getLoadingSourceFilesFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Loading source files step.
        +     * 
        + * + * .google.cloud.vmmigration.v1.LoadingImageSourceFilesStep loading_source_files = 4; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStepOrBuilder + getLoadingSourceFilesOrBuilder() { + if ((stepCase_ == 4) && (loadingSourceFilesBuilder_ != null)) { + return loadingSourceFilesBuilder_.getMessageOrBuilder(); + } else { + if (stepCase_ == 4) { + return (com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep) step_; + } + return com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Loading source files step.
        +     * 
        + * + * .google.cloud.vmmigration.v1.LoadingImageSourceFilesStep loading_source_files = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep, + com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep.Builder, + com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStepOrBuilder> + getLoadingSourceFilesFieldBuilder() { + if (loadingSourceFilesBuilder_ == null) { + if (!(stepCase_ == 4)) { + step_ = com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep.getDefaultInstance(); + } + loadingSourceFilesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep, + com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep.Builder, + com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStepOrBuilder>( + (com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep) step_, + getParentForChildren(), + isClean()); + step_ = null; + } + stepCase_ = 4; + onChanged(); + return loadingSourceFilesBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.AdaptingOSStep, + com.google.cloud.vmmigration.v1.AdaptingOSStep.Builder, + com.google.cloud.vmmigration.v1.AdaptingOSStepOrBuilder> + adaptingOsBuilder_; + + /** + * + * + *
        +     * Adapting OS step.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AdaptingOSStep adapting_os = 5; + * + * @return Whether the adaptingOs field is set. + */ + @java.lang.Override + public boolean hasAdaptingOs() { + return stepCase_ == 5; + } + + /** + * + * + *
        +     * Adapting OS step.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AdaptingOSStep adapting_os = 5; + * + * @return The adaptingOs. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.AdaptingOSStep getAdaptingOs() { + if (adaptingOsBuilder_ == null) { + if (stepCase_ == 5) { + return (com.google.cloud.vmmigration.v1.AdaptingOSStep) step_; + } + return com.google.cloud.vmmigration.v1.AdaptingOSStep.getDefaultInstance(); + } else { + if (stepCase_ == 5) { + return adaptingOsBuilder_.getMessage(); + } + return com.google.cloud.vmmigration.v1.AdaptingOSStep.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Adapting OS step.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AdaptingOSStep adapting_os = 5; + */ + public Builder setAdaptingOs(com.google.cloud.vmmigration.v1.AdaptingOSStep value) { + if (adaptingOsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + step_ = value; + onChanged(); + } else { + adaptingOsBuilder_.setMessage(value); + } + stepCase_ = 5; + return this; + } + + /** + * + * + *
        +     * Adapting OS step.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AdaptingOSStep adapting_os = 5; + */ + public Builder setAdaptingOs( + com.google.cloud.vmmigration.v1.AdaptingOSStep.Builder builderForValue) { + if (adaptingOsBuilder_ == null) { + step_ = builderForValue.build(); + onChanged(); + } else { + adaptingOsBuilder_.setMessage(builderForValue.build()); + } + stepCase_ = 5; + return this; + } + + /** + * + * + *
        +     * Adapting OS step.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AdaptingOSStep adapting_os = 5; + */ + public Builder mergeAdaptingOs(com.google.cloud.vmmigration.v1.AdaptingOSStep value) { + if (adaptingOsBuilder_ == null) { + if (stepCase_ == 5 + && step_ != com.google.cloud.vmmigration.v1.AdaptingOSStep.getDefaultInstance()) { + step_ = + com.google.cloud.vmmigration.v1.AdaptingOSStep.newBuilder( + (com.google.cloud.vmmigration.v1.AdaptingOSStep) step_) + .mergeFrom(value) + .buildPartial(); + } else { + step_ = value; + } + onChanged(); + } else { + if (stepCase_ == 5) { + adaptingOsBuilder_.mergeFrom(value); + } else { + adaptingOsBuilder_.setMessage(value); + } + } + stepCase_ = 5; + return this; + } + + /** + * + * + *
        +     * Adapting OS step.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AdaptingOSStep adapting_os = 5; + */ + public Builder clearAdaptingOs() { + if (adaptingOsBuilder_ == null) { + if (stepCase_ == 5) { + stepCase_ = 0; + step_ = null; + onChanged(); + } + } else { + if (stepCase_ == 5) { + stepCase_ = 0; + step_ = null; + } + adaptingOsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Adapting OS step.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AdaptingOSStep adapting_os = 5; + */ + public com.google.cloud.vmmigration.v1.AdaptingOSStep.Builder getAdaptingOsBuilder() { + return getAdaptingOsFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Adapting OS step.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AdaptingOSStep adapting_os = 5; + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.AdaptingOSStepOrBuilder getAdaptingOsOrBuilder() { + if ((stepCase_ == 5) && (adaptingOsBuilder_ != null)) { + return adaptingOsBuilder_.getMessageOrBuilder(); + } else { + if (stepCase_ == 5) { + return (com.google.cloud.vmmigration.v1.AdaptingOSStep) step_; + } + return com.google.cloud.vmmigration.v1.AdaptingOSStep.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Adapting OS step.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AdaptingOSStep adapting_os = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.AdaptingOSStep, + com.google.cloud.vmmigration.v1.AdaptingOSStep.Builder, + com.google.cloud.vmmigration.v1.AdaptingOSStepOrBuilder> + getAdaptingOsFieldBuilder() { + if (adaptingOsBuilder_ == null) { + if (!(stepCase_ == 5)) { + step_ = com.google.cloud.vmmigration.v1.AdaptingOSStep.getDefaultInstance(); + } + adaptingOsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.AdaptingOSStep, + com.google.cloud.vmmigration.v1.AdaptingOSStep.Builder, + com.google.cloud.vmmigration.v1.AdaptingOSStepOrBuilder>( + (com.google.cloud.vmmigration.v1.AdaptingOSStep) step_, + getParentForChildren(), + isClean()); + step_ = null; + } + stepCase_ = 5; + onChanged(); + return adaptingOsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.CreatingImageStep, + com.google.cloud.vmmigration.v1.CreatingImageStep.Builder, + com.google.cloud.vmmigration.v1.CreatingImageStepOrBuilder> + creatingImageBuilder_; + + /** + * + * + *
        +     * Creating image step.
        +     * 
        + * + * .google.cloud.vmmigration.v1.CreatingImageStep creating_image = 6; + * + * @return Whether the creatingImage field is set. + */ + @java.lang.Override + public boolean hasCreatingImage() { + return stepCase_ == 6; + } + + /** + * + * + *
        +     * Creating image step.
        +     * 
        + * + * .google.cloud.vmmigration.v1.CreatingImageStep creating_image = 6; + * + * @return The creatingImage. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.CreatingImageStep getCreatingImage() { + if (creatingImageBuilder_ == null) { + if (stepCase_ == 6) { + return (com.google.cloud.vmmigration.v1.CreatingImageStep) step_; + } + return com.google.cloud.vmmigration.v1.CreatingImageStep.getDefaultInstance(); + } else { + if (stepCase_ == 6) { + return creatingImageBuilder_.getMessage(); + } + return com.google.cloud.vmmigration.v1.CreatingImageStep.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Creating image step.
        +     * 
        + * + * .google.cloud.vmmigration.v1.CreatingImageStep creating_image = 6; + */ + public Builder setCreatingImage(com.google.cloud.vmmigration.v1.CreatingImageStep value) { + if (creatingImageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + step_ = value; + onChanged(); + } else { + creatingImageBuilder_.setMessage(value); + } + stepCase_ = 6; + return this; + } + + /** + * + * + *
        +     * Creating image step.
        +     * 
        + * + * .google.cloud.vmmigration.v1.CreatingImageStep creating_image = 6; + */ + public Builder setCreatingImage( + com.google.cloud.vmmigration.v1.CreatingImageStep.Builder builderForValue) { + if (creatingImageBuilder_ == null) { + step_ = builderForValue.build(); + onChanged(); + } else { + creatingImageBuilder_.setMessage(builderForValue.build()); + } + stepCase_ = 6; + return this; + } + + /** + * + * + *
        +     * Creating image step.
        +     * 
        + * + * .google.cloud.vmmigration.v1.CreatingImageStep creating_image = 6; + */ + public Builder mergeCreatingImage(com.google.cloud.vmmigration.v1.CreatingImageStep value) { + if (creatingImageBuilder_ == null) { + if (stepCase_ == 6 + && step_ != com.google.cloud.vmmigration.v1.CreatingImageStep.getDefaultInstance()) { + step_ = + com.google.cloud.vmmigration.v1.CreatingImageStep.newBuilder( + (com.google.cloud.vmmigration.v1.CreatingImageStep) step_) + .mergeFrom(value) + .buildPartial(); + } else { + step_ = value; + } + onChanged(); + } else { + if (stepCase_ == 6) { + creatingImageBuilder_.mergeFrom(value); + } else { + creatingImageBuilder_.setMessage(value); + } + } + stepCase_ = 6; + return this; + } + + /** + * + * + *
        +     * Creating image step.
        +     * 
        + * + * .google.cloud.vmmigration.v1.CreatingImageStep creating_image = 6; + */ + public Builder clearCreatingImage() { + if (creatingImageBuilder_ == null) { + if (stepCase_ == 6) { + stepCase_ = 0; + step_ = null; + onChanged(); + } + } else { + if (stepCase_ == 6) { + stepCase_ = 0; + step_ = null; + } + creatingImageBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Creating image step.
        +     * 
        + * + * .google.cloud.vmmigration.v1.CreatingImageStep creating_image = 6; + */ + public com.google.cloud.vmmigration.v1.CreatingImageStep.Builder getCreatingImageBuilder() { + return getCreatingImageFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Creating image step.
        +     * 
        + * + * .google.cloud.vmmigration.v1.CreatingImageStep creating_image = 6; + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.CreatingImageStepOrBuilder getCreatingImageOrBuilder() { + if ((stepCase_ == 6) && (creatingImageBuilder_ != null)) { + return creatingImageBuilder_.getMessageOrBuilder(); + } else { + if (stepCase_ == 6) { + return (com.google.cloud.vmmigration.v1.CreatingImageStep) step_; + } + return com.google.cloud.vmmigration.v1.CreatingImageStep.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Creating image step.
        +     * 
        + * + * .google.cloud.vmmigration.v1.CreatingImageStep creating_image = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.CreatingImageStep, + com.google.cloud.vmmigration.v1.CreatingImageStep.Builder, + com.google.cloud.vmmigration.v1.CreatingImageStepOrBuilder> + getCreatingImageFieldBuilder() { + if (creatingImageBuilder_ == null) { + if (!(stepCase_ == 6)) { + step_ = com.google.cloud.vmmigration.v1.CreatingImageStep.getDefaultInstance(); + } + creatingImageBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.CreatingImageStep, + com.google.cloud.vmmigration.v1.CreatingImageStep.Builder, + com.google.cloud.vmmigration.v1.CreatingImageStepOrBuilder>( + (com.google.cloud.vmmigration.v1.CreatingImageStep) step_, + getParentForChildren(), + isClean()); + step_ = null; + } + stepCase_ = 6; + onChanged(); + return creatingImageBuilder_; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + + /** + * + * + *
        +     * Output only. The time the step has started.
        +     * 
        + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
        +     * Output only. The time the step has started.
        +     * 
        + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
        +     * Output only. The time the step has started.
        +     * 
        + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The time the step has started.
        +     * 
        + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The time the step has started.
        +     * 
        + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Output only. The time the step has started.
        +     * 
        + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000010); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The time the step has started.
        +     * 
        + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Output only. The time the step has started.
        +     * 
        + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + + /** + * + * + *
        +     * Output only. The time the step has started.
        +     * 
        + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + + /** + * + * + *
        +     * Output only. The time the step has ended.
        +     * 
        + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
        +     * Output only. The time the step has ended.
        +     * 
        + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
        +     * Output only. The time the step has ended.
        +     * 
        + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The time the step has ended.
        +     * 
        + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The time the step has ended.
        +     * 
        + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Output only. The time the step has ended.
        +     * 
        + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000020); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The time the step has ended.
        +     * 
        + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Output only. The time the step has ended.
        +     * 
        + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + + /** + * + * + *
        +     * Output only. The time the step has ended.
        +     * 
        + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + @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.vmmigration.v1.ImageImportStep) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.ImageImportStep) + private static final com.google.cloud.vmmigration.v1.ImageImportStep DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.ImageImportStep(); + } + + public static com.google.cloud.vmmigration.v1.ImageImportStep getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageImportStep parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.ImageImportStep getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ImageImportStepOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ImageImportStepOrBuilder.java new file mode 100644 index 000000000000..d679de171c1f --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ImageImportStepOrBuilder.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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface ImageImportStepOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.ImageImportStep) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Initializing step.
        +   * 
        + * + * .google.cloud.vmmigration.v1.InitializingImageImportStep initializing = 3; + * + * @return Whether the initializing field is set. + */ + boolean hasInitializing(); + + /** + * + * + *
        +   * Initializing step.
        +   * 
        + * + * .google.cloud.vmmigration.v1.InitializingImageImportStep initializing = 3; + * + * @return The initializing. + */ + com.google.cloud.vmmigration.v1.InitializingImageImportStep getInitializing(); + + /** + * + * + *
        +   * Initializing step.
        +   * 
        + * + * .google.cloud.vmmigration.v1.InitializingImageImportStep initializing = 3; + */ + com.google.cloud.vmmigration.v1.InitializingImageImportStepOrBuilder getInitializingOrBuilder(); + + /** + * + * + *
        +   * Loading source files step.
        +   * 
        + * + * .google.cloud.vmmigration.v1.LoadingImageSourceFilesStep loading_source_files = 4; + * + * @return Whether the loadingSourceFiles field is set. + */ + boolean hasLoadingSourceFiles(); + + /** + * + * + *
        +   * Loading source files step.
        +   * 
        + * + * .google.cloud.vmmigration.v1.LoadingImageSourceFilesStep loading_source_files = 4; + * + * @return The loadingSourceFiles. + */ + com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep getLoadingSourceFiles(); + + /** + * + * + *
        +   * Loading source files step.
        +   * 
        + * + * .google.cloud.vmmigration.v1.LoadingImageSourceFilesStep loading_source_files = 4; + */ + com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStepOrBuilder + getLoadingSourceFilesOrBuilder(); + + /** + * + * + *
        +   * Adapting OS step.
        +   * 
        + * + * .google.cloud.vmmigration.v1.AdaptingOSStep adapting_os = 5; + * + * @return Whether the adaptingOs field is set. + */ + boolean hasAdaptingOs(); + + /** + * + * + *
        +   * Adapting OS step.
        +   * 
        + * + * .google.cloud.vmmigration.v1.AdaptingOSStep adapting_os = 5; + * + * @return The adaptingOs. + */ + com.google.cloud.vmmigration.v1.AdaptingOSStep getAdaptingOs(); + + /** + * + * + *
        +   * Adapting OS step.
        +   * 
        + * + * .google.cloud.vmmigration.v1.AdaptingOSStep adapting_os = 5; + */ + com.google.cloud.vmmigration.v1.AdaptingOSStepOrBuilder getAdaptingOsOrBuilder(); + + /** + * + * + *
        +   * Creating image step.
        +   * 
        + * + * .google.cloud.vmmigration.v1.CreatingImageStep creating_image = 6; + * + * @return Whether the creatingImage field is set. + */ + boolean hasCreatingImage(); + + /** + * + * + *
        +   * Creating image step.
        +   * 
        + * + * .google.cloud.vmmigration.v1.CreatingImageStep creating_image = 6; + * + * @return The creatingImage. + */ + com.google.cloud.vmmigration.v1.CreatingImageStep getCreatingImage(); + + /** + * + * + *
        +   * Creating image step.
        +   * 
        + * + * .google.cloud.vmmigration.v1.CreatingImageStep creating_image = 6; + */ + com.google.cloud.vmmigration.v1.CreatingImageStepOrBuilder getCreatingImageOrBuilder(); + + /** + * + * + *
        +   * Output only. The time the step has started.
        +   * 
        + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + + /** + * + * + *
        +   * Output only. The time the step has started.
        +   * 
        + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + + /** + * + * + *
        +   * Output only. The time the step has started.
        +   * 
        + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
        +   * Output only. The time the step has ended.
        +   * 
        + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + + /** + * + * + *
        +   * Output only. The time the step has ended.
        +   * 
        + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + + /** + * + * + *
        +   * Output only. The time the step has ended.
        +   * 
        + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + com.google.cloud.vmmigration.v1.ImageImportStep.StepCase getStepCase(); +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/InitializingImageImportStep.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/InitializingImageImportStep.java new file mode 100644 index 000000000000..e6aca62b137a --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/InitializingImageImportStep.java @@ -0,0 +1,435 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * InitializingImageImportStep contains specific step details.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.InitializingImageImportStep} + */ +public final class InitializingImageImportStep extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.InitializingImageImportStep) + InitializingImageImportStepOrBuilder { + private static final long serialVersionUID = 0L; + + // Use InitializingImageImportStep.newBuilder() to construct. + private InitializingImageImportStep(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private InitializingImageImportStep() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new InitializingImageImportStep(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_InitializingImageImportStep_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_InitializingImageImportStep_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.InitializingImageImportStep.class, + com.google.cloud.vmmigration.v1.InitializingImageImportStep.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.vmmigration.v1.InitializingImageImportStep)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.InitializingImageImportStep other = + (com.google.cloud.vmmigration.v1.InitializingImageImportStep) 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.vmmigration.v1.InitializingImageImportStep parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.InitializingImageImportStep 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.vmmigration.v1.InitializingImageImportStep parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.InitializingImageImportStep parseFrom( + 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.vmmigration.v1.InitializingImageImportStep parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.InitializingImageImportStep parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.InitializingImageImportStep parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.InitializingImageImportStep 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.vmmigration.v1.InitializingImageImportStep parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.InitializingImageImportStep 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.vmmigration.v1.InitializingImageImportStep parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.InitializingImageImportStep 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.vmmigration.v1.InitializingImageImportStep prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
        +   * InitializingImageImportStep contains specific step details.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.InitializingImageImportStep} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.InitializingImageImportStep) + com.google.cloud.vmmigration.v1.InitializingImageImportStepOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_InitializingImageImportStep_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_InitializingImageImportStep_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.InitializingImageImportStep.class, + com.google.cloud.vmmigration.v1.InitializingImageImportStep.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.InitializingImageImportStep.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.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_InitializingImageImportStep_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.InitializingImageImportStep getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.InitializingImageImportStep.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.InitializingImageImportStep build() { + com.google.cloud.vmmigration.v1.InitializingImageImportStep result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.InitializingImageImportStep buildPartial() { + com.google.cloud.vmmigration.v1.InitializingImageImportStep result = + new com.google.cloud.vmmigration.v1.InitializingImageImportStep(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.vmmigration.v1.InitializingImageImportStep) { + return mergeFrom((com.google.cloud.vmmigration.v1.InitializingImageImportStep) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.InitializingImageImportStep other) { + if (other == com.google.cloud.vmmigration.v1.InitializingImageImportStep.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.vmmigration.v1.InitializingImageImportStep) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.InitializingImageImportStep) + private static final com.google.cloud.vmmigration.v1.InitializingImageImportStep DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.InitializingImageImportStep(); + } + + public static com.google.cloud.vmmigration.v1.InitializingImageImportStep getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InitializingImageImportStep parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.InitializingImageImportStep getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/InitializingImageImportStepOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/InitializingImageImportStepOrBuilder.java new file mode 100644 index 000000000000..4f64f80d18dc --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/InitializingImageImportStepOrBuilder.java @@ -0,0 +1,25 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface InitializingImageImportStepOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.InitializingImageImportStep) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListDiskMigrationJobsRequest.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListDiskMigrationJobsRequest.java new file mode 100644 index 000000000000..5c09c7641462 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListDiskMigrationJobsRequest.java @@ -0,0 +1,1364 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * Request message for 'ListDiskMigrationJobsRequest' request.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest} + */ +public final class ListDiskMigrationJobsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest) + ListDiskMigrationJobsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListDiskMigrationJobsRequest.newBuilder() to construct. + private ListDiskMigrationJobsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDiskMigrationJobsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDiskMigrationJobsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ListDiskMigrationJobsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ListDiskMigrationJobsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest.class, + com.google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
        +   * Required. The parent, which owns this collection of DiskMigrationJobs.
        +   * 
        + * + * + * 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 parent, which owns this collection of DiskMigrationJobs.
        +   * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
        +   * Optional. The maximum number of disk migration jobs to return. The service
        +   * may return fewer than this value. If unspecified, at most 500
        +   * disk migration jobs will be returned.
        +   * The maximum value is 1000; values above 1000 will be coerced to 1000.
        +   * 
        + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
        +   * Optional. A page token, received from a previous `ListDiskMigrationJobs`
        +   * call. Provide this to retrieve the subsequent page.
        +   *
        +   * When paginating, all parameters provided to `ListDiskMigrationJobs`
        +   * except `page_size` must match the call that provided the page token.
        +   * 
        + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
        +   * Optional. A page token, received from a previous `ListDiskMigrationJobs`
        +   * call. Provide this to retrieve the subsequent page.
        +   *
        +   * When paginating, all parameters provided to `ListDiskMigrationJobs`
        +   * except `page_size` must match the call that provided the page token.
        +   * 
        + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
        +   * Optional. The filter request (according to <a
        +   * href="https://google.aip.dev/160" target="_blank">AIP-160</a>).
        +   * 
        + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + + /** + * + * + *
        +   * Optional. The filter request (according to <a
        +   * href="https://google.aip.dev/160" target="_blank">AIP-160</a>).
        +   * 
        + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
        +   * Optional. Ordering of the result list.
        +   * 
        + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
        +   * Optional. Ordering of the result list.
        +   * 
        + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest other = + (com.google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest 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.vmmigration.v1.ListDiskMigrationJobsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest parseFrom( + 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.vmmigration.v1.ListDiskMigrationJobsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest 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.vmmigration.v1.ListDiskMigrationJobsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest 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.vmmigration.v1.ListDiskMigrationJobsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest 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.vmmigration.v1.ListDiskMigrationJobsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * Request message for 'ListDiskMigrationJobsRequest' request.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest) + com.google.cloud.vmmigration.v1.ListDiskMigrationJobsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ListDiskMigrationJobsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ListDiskMigrationJobsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest.class, + com.google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ListDiskMigrationJobsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest + getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest build() { + com.google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest buildPartial() { + com.google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest result = + new com.google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest) { + return mergeFrom((com.google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest other) { + if (other + == com.google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
        +     * Required. The parent, which owns this collection of DiskMigrationJobs.
        +     * 
        + * + * + * 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 parent, which owns this collection of DiskMigrationJobs.
        +     * 
        + * + * + * 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 parent, which owns this collection of DiskMigrationJobs.
        +     * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The parent, which owns this collection of DiskMigrationJobs.
        +     * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The parent, which owns this collection of DiskMigrationJobs.
        +     * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
        +     * Optional. The maximum number of disk migration jobs to return. The service
        +     * may return fewer than this value. If unspecified, at most 500
        +     * disk migration jobs will be returned.
        +     * The maximum value is 1000; values above 1000 will be coerced to 1000.
        +     * 
        + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
        +     * Optional. The maximum number of disk migration jobs to return. The service
        +     * may return fewer than this value. If unspecified, at most 500
        +     * disk migration jobs will be returned.
        +     * The maximum value is 1000; values above 1000 will be coerced to 1000.
        +     * 
        + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The maximum number of disk migration jobs to return. The service
        +     * may return fewer than this value. If unspecified, at most 500
        +     * disk migration jobs will be returned.
        +     * The maximum value is 1000; values above 1000 will be coerced to 1000.
        +     * 
        + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
        +     * Optional. A page token, received from a previous `ListDiskMigrationJobs`
        +     * call. Provide this to retrieve the subsequent page.
        +     *
        +     * When paginating, all parameters provided to `ListDiskMigrationJobs`
        +     * except `page_size` must match the call that provided the page token.
        +     * 
        + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Optional. A page token, received from a previous `ListDiskMigrationJobs`
        +     * call. Provide this to retrieve the subsequent page.
        +     *
        +     * When paginating, all parameters provided to `ListDiskMigrationJobs`
        +     * except `page_size` must match the call that provided the page token.
        +     * 
        + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Optional. A page token, received from a previous `ListDiskMigrationJobs`
        +     * call. Provide this to retrieve the subsequent page.
        +     *
        +     * When paginating, all parameters provided to `ListDiskMigrationJobs`
        +     * except `page_size` must match the call that provided the page token.
        +     * 
        + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. A page token, received from a previous `ListDiskMigrationJobs`
        +     * call. Provide this to retrieve the subsequent page.
        +     *
        +     * When paginating, all parameters provided to `ListDiskMigrationJobs`
        +     * except `page_size` must match the call that provided the page token.
        +     * 
        + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. A page token, received from a previous `ListDiskMigrationJobs`
        +     * call. Provide this to retrieve the subsequent page.
        +     *
        +     * When paginating, all parameters provided to `ListDiskMigrationJobs`
        +     * except `page_size` must match the call that provided the page token.
        +     * 
        + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
        +     * Optional. The filter request (according to <a
        +     * href="https://google.aip.dev/160" target="_blank">AIP-160</a>).
        +     * 
        + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Optional. The filter request (according to <a
        +     * href="https://google.aip.dev/160" target="_blank">AIP-160</a>).
        +     * 
        + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Optional. The filter request (according to <a
        +     * href="https://google.aip.dev/160" target="_blank">AIP-160</a>).
        +     * 
        + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The filter request (according to <a
        +     * href="https://google.aip.dev/160" target="_blank">AIP-160</a>).
        +     * 
        + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The filter request (according to <a
        +     * href="https://google.aip.dev/160" target="_blank">AIP-160</a>).
        +     * 
        + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
        +     * Optional. Ordering of the result list.
        +     * 
        + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Optional. Ordering of the result list.
        +     * 
        + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Optional. Ordering of the result list.
        +     * 
        + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Ordering of the result list.
        +     * 
        + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Ordering of the result list.
        +     * 
        + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest) + private static final com.google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest(); + } + + public static com.google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDiskMigrationJobsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.ListDiskMigrationJobsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListDiskMigrationJobsRequestOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListDiskMigrationJobsRequestOrBuilder.java new file mode 100644 index 000000000000..da3156e35b24 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListDiskMigrationJobsRequestOrBuilder.java @@ -0,0 +1,160 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface ListDiskMigrationJobsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Required. The parent, which owns this collection of DiskMigrationJobs.
        +   * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
        +   * Required. The parent, which owns this collection of DiskMigrationJobs.
        +   * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
        +   * Optional. The maximum number of disk migration jobs to return. The service
        +   * may return fewer than this value. If unspecified, at most 500
        +   * disk migration jobs will be returned.
        +   * The maximum value is 1000; values above 1000 will be coerced to 1000.
        +   * 
        + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
        +   * Optional. A page token, received from a previous `ListDiskMigrationJobs`
        +   * call. Provide this to retrieve the subsequent page.
        +   *
        +   * When paginating, all parameters provided to `ListDiskMigrationJobs`
        +   * except `page_size` must match the call that provided the page token.
        +   * 
        + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
        +   * Optional. A page token, received from a previous `ListDiskMigrationJobs`
        +   * call. Provide this to retrieve the subsequent page.
        +   *
        +   * When paginating, all parameters provided to `ListDiskMigrationJobs`
        +   * except `page_size` must match the call that provided the page token.
        +   * 
        + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
        +   * Optional. The filter request (according to <a
        +   * href="https://google.aip.dev/160" target="_blank">AIP-160</a>).
        +   * 
        + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
        +   * Optional. The filter request (according to <a
        +   * href="https://google.aip.dev/160" target="_blank">AIP-160</a>).
        +   * 
        + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
        +   * Optional. Ordering of the result list.
        +   * 
        + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
        +   * Optional. Ordering of the result list.
        +   * 
        + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListDiskMigrationJobsResponse.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListDiskMigrationJobsResponse.java new file mode 100644 index 000000000000..414fcb9e9532 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListDiskMigrationJobsResponse.java @@ -0,0 +1,1560 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * Response message for 'ListDiskMigrationJobs' request.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse} + */ +public final class ListDiskMigrationJobsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse) + ListDiskMigrationJobsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListDiskMigrationJobsResponse.newBuilder() to construct. + private ListDiskMigrationJobsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDiskMigrationJobsResponse() { + diskMigrationJobs_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDiskMigrationJobsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ListDiskMigrationJobsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ListDiskMigrationJobsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse.class, + com.google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse.Builder.class); + } + + public static final int DISK_MIGRATION_JOBS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List diskMigrationJobs_; + + /** + * + * + *
        +   * Output only. The list of the disk migration jobs.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getDiskMigrationJobsList() { + return diskMigrationJobs_; + } + + /** + * + * + *
        +   * Output only. The list of the disk migration jobs.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getDiskMigrationJobsOrBuilderList() { + return diskMigrationJobs_; + } + + /** + * + * + *
        +   * Output only. The list of the disk migration jobs.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getDiskMigrationJobsCount() { + return diskMigrationJobs_.size(); + } + + /** + * + * + *
        +   * Output only. The list of the disk migration jobs.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.DiskMigrationJob getDiskMigrationJobs(int index) { + return diskMigrationJobs_.get(index); + } + + /** + * + * + *
        +   * Output only. The list of the disk migration jobs.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.DiskMigrationJobOrBuilder getDiskMigrationJobsOrBuilder( + int index) { + return diskMigrationJobs_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
        +   * Optional. Output only. A token, which can be sent as `page_token` to
        +   * retrieve the next page. If this field is omitted, there are no subsequent
        +   * pages.
        +   * 
        + * + * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
        +   * Optional. Output only. A token, which can be sent as `page_token` to
        +   * retrieve the next page. If this field is omitted, there are no subsequent
        +   * pages.
        +   * 
        + * + * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
        +   * Output only. Locations that could not be reached.
        +   * 
        + * + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
        +   * Output only. Locations that could not be reached.
        +   * 
        + * + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
        +   * Output only. Locations that could not be reached.
        +   * 
        + * + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
        +   * Output only. Locations that could not be reached.
        +   * 
        + * + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < diskMigrationJobs_.size(); i++) { + output.writeMessage(1, diskMigrationJobs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < diskMigrationJobs_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, diskMigrationJobs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse other = + (com.google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse) obj; + + if (!getDiskMigrationJobsList().equals(other.getDiskMigrationJobsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDiskMigrationJobsCount() > 0) { + hash = (37 * hash) + DISK_MIGRATION_JOBS_FIELD_NUMBER; + hash = (53 * hash) + getDiskMigrationJobsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse 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.vmmigration.v1.ListDiskMigrationJobsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse parseFrom( + 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.vmmigration.v1.ListDiskMigrationJobsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse 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.vmmigration.v1.ListDiskMigrationJobsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse 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.vmmigration.v1.ListDiskMigrationJobsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse 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.vmmigration.v1.ListDiskMigrationJobsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * Response message for 'ListDiskMigrationJobs' request.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse) + com.google.cloud.vmmigration.v1.ListDiskMigrationJobsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ListDiskMigrationJobsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ListDiskMigrationJobsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse.class, + com.google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (diskMigrationJobsBuilder_ == null) { + diskMigrationJobs_ = java.util.Collections.emptyList(); + } else { + diskMigrationJobs_ = null; + diskMigrationJobsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ListDiskMigrationJobsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse + getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse build() { + com.google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse buildPartial() { + com.google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse result = + new com.google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse result) { + if (diskMigrationJobsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + diskMigrationJobs_ = java.util.Collections.unmodifiableList(diskMigrationJobs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.diskMigrationJobs_ = diskMigrationJobs_; + } else { + result.diskMigrationJobs_ = diskMigrationJobsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse) { + return mergeFrom((com.google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse other) { + if (other + == com.google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse.getDefaultInstance()) + return this; + if (diskMigrationJobsBuilder_ == null) { + if (!other.diskMigrationJobs_.isEmpty()) { + if (diskMigrationJobs_.isEmpty()) { + diskMigrationJobs_ = other.diskMigrationJobs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDiskMigrationJobsIsMutable(); + diskMigrationJobs_.addAll(other.diskMigrationJobs_); + } + onChanged(); + } + } else { + if (!other.diskMigrationJobs_.isEmpty()) { + if (diskMigrationJobsBuilder_.isEmpty()) { + diskMigrationJobsBuilder_.dispose(); + diskMigrationJobsBuilder_ = null; + diskMigrationJobs_ = other.diskMigrationJobs_; + bitField0_ = (bitField0_ & ~0x00000001); + diskMigrationJobsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDiskMigrationJobsFieldBuilder() + : null; + } else { + diskMigrationJobsBuilder_.addAllMessages(other.diskMigrationJobs_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.vmmigration.v1.DiskMigrationJob m = + input.readMessage( + com.google.cloud.vmmigration.v1.DiskMigrationJob.parser(), + extensionRegistry); + if (diskMigrationJobsBuilder_ == null) { + ensureDiskMigrationJobsIsMutable(); + diskMigrationJobs_.add(m); + } else { + diskMigrationJobsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List diskMigrationJobs_ = + java.util.Collections.emptyList(); + + private void ensureDiskMigrationJobsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + diskMigrationJobs_ = + new java.util.ArrayList( + diskMigrationJobs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.DiskMigrationJob, + com.google.cloud.vmmigration.v1.DiskMigrationJob.Builder, + com.google.cloud.vmmigration.v1.DiskMigrationJobOrBuilder> + diskMigrationJobsBuilder_; + + /** + * + * + *
        +     * Output only. The list of the disk migration jobs.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getDiskMigrationJobsList() { + if (diskMigrationJobsBuilder_ == null) { + return java.util.Collections.unmodifiableList(diskMigrationJobs_); + } else { + return diskMigrationJobsBuilder_.getMessageList(); + } + } + + /** + * + * + *
        +     * Output only. The list of the disk migration jobs.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getDiskMigrationJobsCount() { + if (diskMigrationJobsBuilder_ == null) { + return diskMigrationJobs_.size(); + } else { + return diskMigrationJobsBuilder_.getCount(); + } + } + + /** + * + * + *
        +     * Output only. The list of the disk migration jobs.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.DiskMigrationJob getDiskMigrationJobs(int index) { + if (diskMigrationJobsBuilder_ == null) { + return diskMigrationJobs_.get(index); + } else { + return diskMigrationJobsBuilder_.getMessage(index); + } + } + + /** + * + * + *
        +     * Output only. The list of the disk migration jobs.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDiskMigrationJobs( + int index, com.google.cloud.vmmigration.v1.DiskMigrationJob value) { + if (diskMigrationJobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDiskMigrationJobsIsMutable(); + diskMigrationJobs_.set(index, value); + onChanged(); + } else { + diskMigrationJobsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * Output only. The list of the disk migration jobs.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDiskMigrationJobs( + int index, com.google.cloud.vmmigration.v1.DiskMigrationJob.Builder builderForValue) { + if (diskMigrationJobsBuilder_ == null) { + ensureDiskMigrationJobsIsMutable(); + diskMigrationJobs_.set(index, builderForValue.build()); + onChanged(); + } else { + diskMigrationJobsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Output only. The list of the disk migration jobs.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDiskMigrationJobs(com.google.cloud.vmmigration.v1.DiskMigrationJob value) { + if (diskMigrationJobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDiskMigrationJobsIsMutable(); + diskMigrationJobs_.add(value); + onChanged(); + } else { + diskMigrationJobsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
        +     * Output only. The list of the disk migration jobs.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDiskMigrationJobs( + int index, com.google.cloud.vmmigration.v1.DiskMigrationJob value) { + if (diskMigrationJobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDiskMigrationJobsIsMutable(); + diskMigrationJobs_.add(index, value); + onChanged(); + } else { + diskMigrationJobsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * Output only. The list of the disk migration jobs.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDiskMigrationJobs( + com.google.cloud.vmmigration.v1.DiskMigrationJob.Builder builderForValue) { + if (diskMigrationJobsBuilder_ == null) { + ensureDiskMigrationJobsIsMutable(); + diskMigrationJobs_.add(builderForValue.build()); + onChanged(); + } else { + diskMigrationJobsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Output only. The list of the disk migration jobs.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDiskMigrationJobs( + int index, com.google.cloud.vmmigration.v1.DiskMigrationJob.Builder builderForValue) { + if (diskMigrationJobsBuilder_ == null) { + ensureDiskMigrationJobsIsMutable(); + diskMigrationJobs_.add(index, builderForValue.build()); + onChanged(); + } else { + diskMigrationJobsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Output only. The list of the disk migration jobs.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllDiskMigrationJobs( + java.lang.Iterable values) { + if (diskMigrationJobsBuilder_ == null) { + ensureDiskMigrationJobsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, diskMigrationJobs_); + onChanged(); + } else { + diskMigrationJobsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
        +     * Output only. The list of the disk migration jobs.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDiskMigrationJobs() { + if (diskMigrationJobsBuilder_ == null) { + diskMigrationJobs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + diskMigrationJobsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Output only. The list of the disk migration jobs.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeDiskMigrationJobs(int index) { + if (diskMigrationJobsBuilder_ == null) { + ensureDiskMigrationJobsIsMutable(); + diskMigrationJobs_.remove(index); + onChanged(); + } else { + diskMigrationJobsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
        +     * Output only. The list of the disk migration jobs.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.DiskMigrationJob.Builder getDiskMigrationJobsBuilder( + int index) { + return getDiskMigrationJobsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
        +     * Output only. The list of the disk migration jobs.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.DiskMigrationJobOrBuilder getDiskMigrationJobsOrBuilder( + int index) { + if (diskMigrationJobsBuilder_ == null) { + return diskMigrationJobs_.get(index); + } else { + return diskMigrationJobsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
        +     * Output only. The list of the disk migration jobs.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getDiskMigrationJobsOrBuilderList() { + if (diskMigrationJobsBuilder_ != null) { + return diskMigrationJobsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(diskMigrationJobs_); + } + } + + /** + * + * + *
        +     * Output only. The list of the disk migration jobs.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.DiskMigrationJob.Builder addDiskMigrationJobsBuilder() { + return getDiskMigrationJobsFieldBuilder() + .addBuilder(com.google.cloud.vmmigration.v1.DiskMigrationJob.getDefaultInstance()); + } + + /** + * + * + *
        +     * Output only. The list of the disk migration jobs.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.DiskMigrationJob.Builder addDiskMigrationJobsBuilder( + int index) { + return getDiskMigrationJobsFieldBuilder() + .addBuilder(index, com.google.cloud.vmmigration.v1.DiskMigrationJob.getDefaultInstance()); + } + + /** + * + * + *
        +     * Output only. The list of the disk migration jobs.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getDiskMigrationJobsBuilderList() { + return getDiskMigrationJobsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.DiskMigrationJob, + com.google.cloud.vmmigration.v1.DiskMigrationJob.Builder, + com.google.cloud.vmmigration.v1.DiskMigrationJobOrBuilder> + getDiskMigrationJobsFieldBuilder() { + if (diskMigrationJobsBuilder_ == null) { + diskMigrationJobsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.DiskMigrationJob, + com.google.cloud.vmmigration.v1.DiskMigrationJob.Builder, + com.google.cloud.vmmigration.v1.DiskMigrationJobOrBuilder>( + diskMigrationJobs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + diskMigrationJobs_ = null; + } + return diskMigrationJobsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
        +     * Optional. Output only. A token, which can be sent as `page_token` to
        +     * retrieve the next page. If this field is omitted, there are no subsequent
        +     * pages.
        +     * 
        + * + * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Optional. Output only. A token, which can be sent as `page_token` to
        +     * retrieve the next page. If this field is omitted, there are no subsequent
        +     * pages.
        +     * 
        + * + * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Optional. Output only. A token, which can be sent as `page_token` to
        +     * retrieve the next page. If this field is omitted, there are no subsequent
        +     * pages.
        +     * 
        + * + * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Output only. A token, which can be sent as `page_token` to
        +     * retrieve the next page. If this field is omitted, there are no subsequent
        +     * pages.
        +     * 
        + * + * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Output only. A token, which can be sent as `page_token` to
        +     * retrieve the next page. If this field is omitted, there are no subsequent
        +     * pages.
        +     * 
        + * + * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
        +     * Output only. Locations that could not be reached.
        +     * 
        + * + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
        +     * Output only. Locations that could not be reached.
        +     * 
        + * + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
        +     * Output only. Locations that could not be reached.
        +     * 
        + * + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
        +     * Output only. Locations that could not be reached.
        +     * 
        + * + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + /** + * + * + *
        +     * Output only. Locations that could not be reached.
        +     * 
        + * + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. Locations that could not be reached.
        +     * 
        + * + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. Locations that could not be reached.
        +     * 
        + * + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. Locations that could not be reached.
        +     * 
        + * + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. Locations that could not be reached.
        +     * 
        + * + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse) + private static final com.google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse(); + } + + public static com.google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDiskMigrationJobsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.ListDiskMigrationJobsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListDiskMigrationJobsResponseOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListDiskMigrationJobsResponseOrBuilder.java new file mode 100644 index 000000000000..43c2266b6ade --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListDiskMigrationJobsResponseOrBuilder.java @@ -0,0 +1,189 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface ListDiskMigrationJobsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Output only. The list of the disk migration jobs.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getDiskMigrationJobsList(); + + /** + * + * + *
        +   * Output only. The list of the disk migration jobs.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.vmmigration.v1.DiskMigrationJob getDiskMigrationJobs(int index); + + /** + * + * + *
        +   * Output only. The list of the disk migration jobs.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getDiskMigrationJobsCount(); + + /** + * + * + *
        +   * Output only. The list of the disk migration jobs.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getDiskMigrationJobsOrBuilderList(); + + /** + * + * + *
        +   * Output only. The list of the disk migration jobs.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.vmmigration.v1.DiskMigrationJobOrBuilder getDiskMigrationJobsOrBuilder( + int index); + + /** + * + * + *
        +   * Optional. Output only. A token, which can be sent as `page_token` to
        +   * retrieve the next page. If this field is omitted, there are no subsequent
        +   * pages.
        +   * 
        + * + * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
        +   * Optional. Output only. A token, which can be sent as `page_token` to
        +   * retrieve the next page. If this field is omitted, there are no subsequent
        +   * pages.
        +   * 
        + * + * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
        +   * Output only. Locations that could not be reached.
        +   * 
        + * + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
        +   * Output only. Locations that could not be reached.
        +   * 
        + * + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
        +   * Output only. Locations that could not be reached.
        +   * 
        + * + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
        +   * Output only. Locations that could not be reached.
        +   * 
        + * + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListImageImportJobsRequest.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListImageImportJobsRequest.java new file mode 100644 index 000000000000..5851ffaee689 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListImageImportJobsRequest.java @@ -0,0 +1,1374 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * Request message for 'ListImageImportJobs' call.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.ListImageImportJobsRequest} + */ +public final class ListImageImportJobsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.ListImageImportJobsRequest) + ListImageImportJobsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListImageImportJobsRequest.newBuilder() to construct. + private ListImageImportJobsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListImageImportJobsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListImageImportJobsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ListImageImportJobsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ListImageImportJobsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.ListImageImportJobsRequest.class, + com.google.cloud.vmmigration.v1.ListImageImportJobsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
        +   * Required. The parent, which owns this collection of targets.
        +   * 
        + * + * + * 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 parent, which owns this collection of targets.
        +   * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
        +   * Optional. The maximum number of targets to return. The service may return
        +   * fewer than this value. If unspecified, at most 500 targets will be
        +   * returned. The maximum value is 1000; values above 1000 will be coerced to
        +   * 1000.
        +   * 
        + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
        +   * Optional. A page token, received from a previous `ListImageImportJobs`
        +   * call. Provide this to retrieve the subsequent page.
        +   *
        +   * When paginating, all other parameters provided to `ListImageImportJobs`
        +   * must match the call that provided the page token.
        +   * 
        + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
        +   * Optional. A page token, received from a previous `ListImageImportJobs`
        +   * call. Provide this to retrieve the subsequent page.
        +   *
        +   * When paginating, all other parameters provided to `ListImageImportJobs`
        +   * must match the call that provided the page token.
        +   * 
        + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
        +   * Optional. The filter request (according to <a
        +   * href="https://google.aip.dev/160" target="_blank">AIP-160</a>).
        +   * 
        + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + + /** + * + * + *
        +   * Optional. The filter request (according to <a
        +   * href="https://google.aip.dev/160" target="_blank">AIP-160</a>).
        +   * 
        + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
        +   * Optional. The order by fields for the result (according to <a
        +   * href="https://google.aip.dev/132#ordering" target="_blank">AIP-132</a>).
        +   * Currently ordering is only possible by "name" field.
        +   * 
        + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
        +   * Optional. The order by fields for the result (according to <a
        +   * href="https://google.aip.dev/132#ordering" target="_blank">AIP-132</a>).
        +   * Currently ordering is only possible by "name" field.
        +   * 
        + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmmigration.v1.ListImageImportJobsRequest)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.ListImageImportJobsRequest other = + (com.google.cloud.vmmigration.v1.ListImageImportJobsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.ListImageImportJobsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.ListImageImportJobsRequest 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.vmmigration.v1.ListImageImportJobsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.ListImageImportJobsRequest parseFrom( + 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.vmmigration.v1.ListImageImportJobsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.ListImageImportJobsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.ListImageImportJobsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.ListImageImportJobsRequest 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.vmmigration.v1.ListImageImportJobsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.ListImageImportJobsRequest 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.vmmigration.v1.ListImageImportJobsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.ListImageImportJobsRequest 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.vmmigration.v1.ListImageImportJobsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * Request message for 'ListImageImportJobs' call.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.ListImageImportJobsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.ListImageImportJobsRequest) + com.google.cloud.vmmigration.v1.ListImageImportJobsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ListImageImportJobsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ListImageImportJobsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.ListImageImportJobsRequest.class, + com.google.cloud.vmmigration.v1.ListImageImportJobsRequest.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.ListImageImportJobsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ListImageImportJobsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.ListImageImportJobsRequest getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.ListImageImportJobsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.ListImageImportJobsRequest build() { + com.google.cloud.vmmigration.v1.ListImageImportJobsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.ListImageImportJobsRequest buildPartial() { + com.google.cloud.vmmigration.v1.ListImageImportJobsRequest result = + new com.google.cloud.vmmigration.v1.ListImageImportJobsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vmmigration.v1.ListImageImportJobsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmmigration.v1.ListImageImportJobsRequest) { + return mergeFrom((com.google.cloud.vmmigration.v1.ListImageImportJobsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.ListImageImportJobsRequest other) { + if (other == com.google.cloud.vmmigration.v1.ListImageImportJobsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
        +     * Required. The parent, which owns this collection of targets.
        +     * 
        + * + * + * 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 parent, which owns this collection of targets.
        +     * 
        + * + * + * 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 parent, which owns this collection of targets.
        +     * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The parent, which owns this collection of targets.
        +     * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The parent, which owns this collection of targets.
        +     * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
        +     * Optional. The maximum number of targets to return. The service may return
        +     * fewer than this value. If unspecified, at most 500 targets will be
        +     * returned. The maximum value is 1000; values above 1000 will be coerced to
        +     * 1000.
        +     * 
        + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
        +     * Optional. The maximum number of targets to return. The service may return
        +     * fewer than this value. If unspecified, at most 500 targets will be
        +     * returned. The maximum value is 1000; values above 1000 will be coerced to
        +     * 1000.
        +     * 
        + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The maximum number of targets to return. The service may return
        +     * fewer than this value. If unspecified, at most 500 targets will be
        +     * returned. The maximum value is 1000; values above 1000 will be coerced to
        +     * 1000.
        +     * 
        + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
        +     * Optional. A page token, received from a previous `ListImageImportJobs`
        +     * call. Provide this to retrieve the subsequent page.
        +     *
        +     * When paginating, all other parameters provided to `ListImageImportJobs`
        +     * must match the call that provided the page token.
        +     * 
        + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Optional. A page token, received from a previous `ListImageImportJobs`
        +     * call. Provide this to retrieve the subsequent page.
        +     *
        +     * When paginating, all other parameters provided to `ListImageImportJobs`
        +     * must match the call that provided the page token.
        +     * 
        + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Optional. A page token, received from a previous `ListImageImportJobs`
        +     * call. Provide this to retrieve the subsequent page.
        +     *
        +     * When paginating, all other parameters provided to `ListImageImportJobs`
        +     * must match the call that provided the page token.
        +     * 
        + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. A page token, received from a previous `ListImageImportJobs`
        +     * call. Provide this to retrieve the subsequent page.
        +     *
        +     * When paginating, all other parameters provided to `ListImageImportJobs`
        +     * must match the call that provided the page token.
        +     * 
        + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. A page token, received from a previous `ListImageImportJobs`
        +     * call. Provide this to retrieve the subsequent page.
        +     *
        +     * When paginating, all other parameters provided to `ListImageImportJobs`
        +     * must match the call that provided the page token.
        +     * 
        + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
        +     * Optional. The filter request (according to <a
        +     * href="https://google.aip.dev/160" target="_blank">AIP-160</a>).
        +     * 
        + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Optional. The filter request (according to <a
        +     * href="https://google.aip.dev/160" target="_blank">AIP-160</a>).
        +     * 
        + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Optional. The filter request (according to <a
        +     * href="https://google.aip.dev/160" target="_blank">AIP-160</a>).
        +     * 
        + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The filter request (according to <a
        +     * href="https://google.aip.dev/160" target="_blank">AIP-160</a>).
        +     * 
        + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The filter request (according to <a
        +     * href="https://google.aip.dev/160" target="_blank">AIP-160</a>).
        +     * 
        + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
        +     * Optional. The order by fields for the result (according to <a
        +     * href="https://google.aip.dev/132#ordering" target="_blank">AIP-132</a>).
        +     * Currently ordering is only possible by "name" field.
        +     * 
        + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Optional. The order by fields for the result (according to <a
        +     * href="https://google.aip.dev/132#ordering" target="_blank">AIP-132</a>).
        +     * Currently ordering is only possible by "name" field.
        +     * 
        + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Optional. The order by fields for the result (according to <a
        +     * href="https://google.aip.dev/132#ordering" target="_blank">AIP-132</a>).
        +     * Currently ordering is only possible by "name" field.
        +     * 
        + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The order by fields for the result (according to <a
        +     * href="https://google.aip.dev/132#ordering" target="_blank">AIP-132</a>).
        +     * Currently ordering is only possible by "name" field.
        +     * 
        + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The order by fields for the result (according to <a
        +     * href="https://google.aip.dev/132#ordering" target="_blank">AIP-132</a>).
        +     * Currently ordering is only possible by "name" field.
        +     * 
        + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmmigration.v1.ListImageImportJobsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.ListImageImportJobsRequest) + private static final com.google.cloud.vmmigration.v1.ListImageImportJobsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.ListImageImportJobsRequest(); + } + + public static com.google.cloud.vmmigration.v1.ListImageImportJobsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListImageImportJobsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.ListImageImportJobsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListImageImportJobsRequestOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListImageImportJobsRequestOrBuilder.java new file mode 100644 index 000000000000..6e2da145f55f --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListImageImportJobsRequestOrBuilder.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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface ListImageImportJobsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.ListImageImportJobsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Required. The parent, which owns this collection of targets.
        +   * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
        +   * Required. The parent, which owns this collection of targets.
        +   * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
        +   * Optional. The maximum number of targets to return. The service may return
        +   * fewer than this value. If unspecified, at most 500 targets will be
        +   * returned. The maximum value is 1000; values above 1000 will be coerced to
        +   * 1000.
        +   * 
        + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
        +   * Optional. A page token, received from a previous `ListImageImportJobs`
        +   * call. Provide this to retrieve the subsequent page.
        +   *
        +   * When paginating, all other parameters provided to `ListImageImportJobs`
        +   * must match the call that provided the page token.
        +   * 
        + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
        +   * Optional. A page token, received from a previous `ListImageImportJobs`
        +   * call. Provide this to retrieve the subsequent page.
        +   *
        +   * When paginating, all other parameters provided to `ListImageImportJobs`
        +   * must match the call that provided the page token.
        +   * 
        + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
        +   * Optional. The filter request (according to <a
        +   * href="https://google.aip.dev/160" target="_blank">AIP-160</a>).
        +   * 
        + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
        +   * Optional. The filter request (according to <a
        +   * href="https://google.aip.dev/160" target="_blank">AIP-160</a>).
        +   * 
        + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
        +   * Optional. The order by fields for the result (according to <a
        +   * href="https://google.aip.dev/132#ordering" target="_blank">AIP-132</a>).
        +   * Currently ordering is only possible by "name" field.
        +   * 
        + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
        +   * Optional. The order by fields for the result (according to <a
        +   * href="https://google.aip.dev/132#ordering" target="_blank">AIP-132</a>).
        +   * Currently ordering is only possible by "name" field.
        +   * 
        + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListImageImportJobsResponse.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListImageImportJobsResponse.java new file mode 100644 index 000000000000..b64db1101db5 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListImageImportJobsResponse.java @@ -0,0 +1,1505 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * Response message for 'ListImageImportJobs' call.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.ListImageImportJobsResponse} + */ +public final class ListImageImportJobsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.ListImageImportJobsResponse) + ListImageImportJobsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListImageImportJobsResponse.newBuilder() to construct. + private ListImageImportJobsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListImageImportJobsResponse() { + imageImportJobs_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListImageImportJobsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ListImageImportJobsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ListImageImportJobsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.ListImageImportJobsResponse.class, + com.google.cloud.vmmigration.v1.ListImageImportJobsResponse.Builder.class); + } + + public static final int IMAGE_IMPORT_JOBS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List imageImportJobs_; + + /** + * + * + *
        +   * Output only. The list of target response.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportJob image_import_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getImageImportJobsList() { + return imageImportJobs_; + } + + /** + * + * + *
        +   * Output only. The list of target response.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportJob image_import_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getImageImportJobsOrBuilderList() { + return imageImportJobs_; + } + + /** + * + * + *
        +   * Output only. The list of target response.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportJob image_import_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getImageImportJobsCount() { + return imageImportJobs_.size(); + } + + /** + * + * + *
        +   * Output only. The list of target response.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportJob image_import_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ImageImportJob getImageImportJobs(int index) { + return imageImportJobs_.get(index); + } + + /** + * + * + *
        +   * Output only. The list of target response.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportJob image_import_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ImageImportJobOrBuilder getImageImportJobsOrBuilder( + int index) { + return imageImportJobs_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
        +   * Output only. A token, which can be sent as `page_token` to retrieve the
        +   * next page. If this field is omitted, there are no subsequent pages.
        +   * 
        + * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
        +   * Output only. A token, which can be sent as `page_token` to retrieve the
        +   * next page. If this field is omitted, there are no subsequent pages.
        +   * 
        + * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
        +   * Output only. Locations that could not be reached.
        +   * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
        +   * Output only. Locations that could not be reached.
        +   * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
        +   * Output only. Locations that could not be reached.
        +   * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
        +   * Output only. Locations that could not be reached.
        +   * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < imageImportJobs_.size(); i++) { + output.writeMessage(1, imageImportJobs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < imageImportJobs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, imageImportJobs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmmigration.v1.ListImageImportJobsResponse)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.ListImageImportJobsResponse other = + (com.google.cloud.vmmigration.v1.ListImageImportJobsResponse) obj; + + if (!getImageImportJobsList().equals(other.getImageImportJobsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getImageImportJobsCount() > 0) { + hash = (37 * hash) + IMAGE_IMPORT_JOBS_FIELD_NUMBER; + hash = (53 * hash) + getImageImportJobsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.ListImageImportJobsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.ListImageImportJobsResponse 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.vmmigration.v1.ListImageImportJobsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.ListImageImportJobsResponse parseFrom( + 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.vmmigration.v1.ListImageImportJobsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.ListImageImportJobsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.ListImageImportJobsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.ListImageImportJobsResponse 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.vmmigration.v1.ListImageImportJobsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.ListImageImportJobsResponse 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.vmmigration.v1.ListImageImportJobsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.ListImageImportJobsResponse 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.vmmigration.v1.ListImageImportJobsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * Response message for 'ListImageImportJobs' call.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.ListImageImportJobsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.ListImageImportJobsResponse) + com.google.cloud.vmmigration.v1.ListImageImportJobsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ListImageImportJobsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ListImageImportJobsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.ListImageImportJobsResponse.class, + com.google.cloud.vmmigration.v1.ListImageImportJobsResponse.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.ListImageImportJobsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (imageImportJobsBuilder_ == null) { + imageImportJobs_ = java.util.Collections.emptyList(); + } else { + imageImportJobs_ = null; + imageImportJobsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ListImageImportJobsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.ListImageImportJobsResponse getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.ListImageImportJobsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.ListImageImportJobsResponse build() { + com.google.cloud.vmmigration.v1.ListImageImportJobsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.ListImageImportJobsResponse buildPartial() { + com.google.cloud.vmmigration.v1.ListImageImportJobsResponse result = + new com.google.cloud.vmmigration.v1.ListImageImportJobsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.vmmigration.v1.ListImageImportJobsResponse result) { + if (imageImportJobsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + imageImportJobs_ = java.util.Collections.unmodifiableList(imageImportJobs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.imageImportJobs_ = imageImportJobs_; + } else { + result.imageImportJobs_ = imageImportJobsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.vmmigration.v1.ListImageImportJobsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmmigration.v1.ListImageImportJobsResponse) { + return mergeFrom((com.google.cloud.vmmigration.v1.ListImageImportJobsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.ListImageImportJobsResponse other) { + if (other == com.google.cloud.vmmigration.v1.ListImageImportJobsResponse.getDefaultInstance()) + return this; + if (imageImportJobsBuilder_ == null) { + if (!other.imageImportJobs_.isEmpty()) { + if (imageImportJobs_.isEmpty()) { + imageImportJobs_ = other.imageImportJobs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureImageImportJobsIsMutable(); + imageImportJobs_.addAll(other.imageImportJobs_); + } + onChanged(); + } + } else { + if (!other.imageImportJobs_.isEmpty()) { + if (imageImportJobsBuilder_.isEmpty()) { + imageImportJobsBuilder_.dispose(); + imageImportJobsBuilder_ = null; + imageImportJobs_ = other.imageImportJobs_; + bitField0_ = (bitField0_ & ~0x00000001); + imageImportJobsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getImageImportJobsFieldBuilder() + : null; + } else { + imageImportJobsBuilder_.addAllMessages(other.imageImportJobs_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.vmmigration.v1.ImageImportJob m = + input.readMessage( + com.google.cloud.vmmigration.v1.ImageImportJob.parser(), extensionRegistry); + if (imageImportJobsBuilder_ == null) { + ensureImageImportJobsIsMutable(); + imageImportJobs_.add(m); + } else { + imageImportJobsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List imageImportJobs_ = + java.util.Collections.emptyList(); + + private void ensureImageImportJobsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + imageImportJobs_ = + new java.util.ArrayList( + imageImportJobs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.ImageImportJob, + com.google.cloud.vmmigration.v1.ImageImportJob.Builder, + com.google.cloud.vmmigration.v1.ImageImportJobOrBuilder> + imageImportJobsBuilder_; + + /** + * + * + *
        +     * Output only. The list of target response.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportJob image_import_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getImageImportJobsList() { + if (imageImportJobsBuilder_ == null) { + return java.util.Collections.unmodifiableList(imageImportJobs_); + } else { + return imageImportJobsBuilder_.getMessageList(); + } + } + + /** + * + * + *
        +     * Output only. The list of target response.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportJob image_import_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getImageImportJobsCount() { + if (imageImportJobsBuilder_ == null) { + return imageImportJobs_.size(); + } else { + return imageImportJobsBuilder_.getCount(); + } + } + + /** + * + * + *
        +     * Output only. The list of target response.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportJob image_import_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.ImageImportJob getImageImportJobs(int index) { + if (imageImportJobsBuilder_ == null) { + return imageImportJobs_.get(index); + } else { + return imageImportJobsBuilder_.getMessage(index); + } + } + + /** + * + * + *
        +     * Output only. The list of target response.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportJob image_import_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setImageImportJobs( + int index, com.google.cloud.vmmigration.v1.ImageImportJob value) { + if (imageImportJobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureImageImportJobsIsMutable(); + imageImportJobs_.set(index, value); + onChanged(); + } else { + imageImportJobsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * Output only. The list of target response.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportJob image_import_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setImageImportJobs( + int index, com.google.cloud.vmmigration.v1.ImageImportJob.Builder builderForValue) { + if (imageImportJobsBuilder_ == null) { + ensureImageImportJobsIsMutable(); + imageImportJobs_.set(index, builderForValue.build()); + onChanged(); + } else { + imageImportJobsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Output only. The list of target response.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportJob image_import_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addImageImportJobs(com.google.cloud.vmmigration.v1.ImageImportJob value) { + if (imageImportJobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureImageImportJobsIsMutable(); + imageImportJobs_.add(value); + onChanged(); + } else { + imageImportJobsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
        +     * Output only. The list of target response.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportJob image_import_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addImageImportJobs( + int index, com.google.cloud.vmmigration.v1.ImageImportJob value) { + if (imageImportJobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureImageImportJobsIsMutable(); + imageImportJobs_.add(index, value); + onChanged(); + } else { + imageImportJobsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * Output only. The list of target response.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportJob image_import_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addImageImportJobs( + com.google.cloud.vmmigration.v1.ImageImportJob.Builder builderForValue) { + if (imageImportJobsBuilder_ == null) { + ensureImageImportJobsIsMutable(); + imageImportJobs_.add(builderForValue.build()); + onChanged(); + } else { + imageImportJobsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Output only. The list of target response.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportJob image_import_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addImageImportJobs( + int index, com.google.cloud.vmmigration.v1.ImageImportJob.Builder builderForValue) { + if (imageImportJobsBuilder_ == null) { + ensureImageImportJobsIsMutable(); + imageImportJobs_.add(index, builderForValue.build()); + onChanged(); + } else { + imageImportJobsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Output only. The list of target response.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportJob image_import_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllImageImportJobs( + java.lang.Iterable values) { + if (imageImportJobsBuilder_ == null) { + ensureImageImportJobsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, imageImportJobs_); + onChanged(); + } else { + imageImportJobsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
        +     * Output only. The list of target response.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportJob image_import_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearImageImportJobs() { + if (imageImportJobsBuilder_ == null) { + imageImportJobs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + imageImportJobsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Output only. The list of target response.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportJob image_import_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeImageImportJobs(int index) { + if (imageImportJobsBuilder_ == null) { + ensureImageImportJobsIsMutable(); + imageImportJobs_.remove(index); + onChanged(); + } else { + imageImportJobsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
        +     * Output only. The list of target response.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportJob image_import_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.ImageImportJob.Builder getImageImportJobsBuilder( + int index) { + return getImageImportJobsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
        +     * Output only. The list of target response.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportJob image_import_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.ImageImportJobOrBuilder getImageImportJobsOrBuilder( + int index) { + if (imageImportJobsBuilder_ == null) { + return imageImportJobs_.get(index); + } else { + return imageImportJobsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
        +     * Output only. The list of target response.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportJob image_import_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getImageImportJobsOrBuilderList() { + if (imageImportJobsBuilder_ != null) { + return imageImportJobsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(imageImportJobs_); + } + } + + /** + * + * + *
        +     * Output only. The list of target response.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportJob image_import_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.ImageImportJob.Builder addImageImportJobsBuilder() { + return getImageImportJobsFieldBuilder() + .addBuilder(com.google.cloud.vmmigration.v1.ImageImportJob.getDefaultInstance()); + } + + /** + * + * + *
        +     * Output only. The list of target response.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportJob image_import_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.ImageImportJob.Builder addImageImportJobsBuilder( + int index) { + return getImageImportJobsFieldBuilder() + .addBuilder(index, com.google.cloud.vmmigration.v1.ImageImportJob.getDefaultInstance()); + } + + /** + * + * + *
        +     * Output only. The list of target response.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportJob image_import_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getImageImportJobsBuilderList() { + return getImageImportJobsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.ImageImportJob, + com.google.cloud.vmmigration.v1.ImageImportJob.Builder, + com.google.cloud.vmmigration.v1.ImageImportJobOrBuilder> + getImageImportJobsFieldBuilder() { + if (imageImportJobsBuilder_ == null) { + imageImportJobsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.ImageImportJob, + com.google.cloud.vmmigration.v1.ImageImportJob.Builder, + com.google.cloud.vmmigration.v1.ImageImportJobOrBuilder>( + imageImportJobs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + imageImportJobs_ = null; + } + return imageImportJobsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
        +     * Output only. A token, which can be sent as `page_token` to retrieve the
        +     * next page. If this field is omitted, there are no subsequent pages.
        +     * 
        + * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Output only. A token, which can be sent as `page_token` to retrieve the
        +     * next page. If this field is omitted, there are no subsequent pages.
        +     * 
        + * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Output only. A token, which can be sent as `page_token` to retrieve the
        +     * next page. If this field is omitted, there are no subsequent pages.
        +     * 
        + * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. A token, which can be sent as `page_token` to retrieve the
        +     * next page. If this field is omitted, there are no subsequent pages.
        +     * 
        + * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. A token, which can be sent as `page_token` to retrieve the
        +     * next page. If this field is omitted, there are no subsequent pages.
        +     * 
        + * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
        +     * Output only. Locations that could not be reached.
        +     * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
        +     * Output only. Locations that could not be reached.
        +     * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
        +     * Output only. Locations that could not be reached.
        +     * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
        +     * Output only. Locations that could not be reached.
        +     * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + /** + * + * + *
        +     * Output only. Locations that could not be reached.
        +     * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. Locations that could not be reached.
        +     * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. Locations that could not be reached.
        +     * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. Locations that could not be reached.
        +     * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. Locations that could not be reached.
        +     * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmmigration.v1.ListImageImportJobsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.ListImageImportJobsResponse) + private static final com.google.cloud.vmmigration.v1.ListImageImportJobsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.ListImageImportJobsResponse(); + } + + public static com.google.cloud.vmmigration.v1.ListImageImportJobsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListImageImportJobsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.ListImageImportJobsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListImageImportJobsResponseOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListImageImportJobsResponseOrBuilder.java new file mode 100644 index 000000000000..a530d3b06bcf --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListImageImportJobsResponseOrBuilder.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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface ListImageImportJobsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.ListImageImportJobsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Output only. The list of target response.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportJob image_import_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getImageImportJobsList(); + + /** + * + * + *
        +   * Output only. The list of target response.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportJob image_import_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.vmmigration.v1.ImageImportJob getImageImportJobs(int index); + + /** + * + * + *
        +   * Output only. The list of target response.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportJob image_import_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getImageImportJobsCount(); + + /** + * + * + *
        +   * Output only. The list of target response.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportJob image_import_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getImageImportJobsOrBuilderList(); + + /** + * + * + *
        +   * Output only. The list of target response.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImportJob image_import_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.vmmigration.v1.ImageImportJobOrBuilder getImageImportJobsOrBuilder(int index); + + /** + * + * + *
        +   * Output only. A token, which can be sent as `page_token` to retrieve the
        +   * next page. If this field is omitted, there are no subsequent pages.
        +   * 
        + * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
        +   * Output only. A token, which can be sent as `page_token` to retrieve the
        +   * next page. If this field is omitted, there are no subsequent pages.
        +   * 
        + * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
        +   * Output only. Locations that could not be reached.
        +   * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
        +   * Output only. Locations that could not be reached.
        +   * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
        +   * Output only. Locations that could not be reached.
        +   * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
        +   * Output only. Locations that could not be reached.
        +   * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListImageImportsRequest.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListImageImportsRequest.java new file mode 100644 index 000000000000..409b1a2f1ee4 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListImageImportsRequest.java @@ -0,0 +1,1374 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * Request message for 'ListImageImports' call.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.ListImageImportsRequest} + */ +public final class ListImageImportsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.ListImageImportsRequest) + ListImageImportsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListImageImportsRequest.newBuilder() to construct. + private ListImageImportsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListImageImportsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListImageImportsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ListImageImportsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ListImageImportsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.ListImageImportsRequest.class, + com.google.cloud.vmmigration.v1.ListImageImportsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
        +   * Required. The parent, which owns this collection of targets.
        +   * 
        + * + * + * 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 parent, which owns this collection of targets.
        +   * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
        +   * Optional. The maximum number of targets to return. The service may return
        +   * fewer than this value. If unspecified, at most 500 targets will be
        +   * returned. The maximum value is 1000; values above 1000 will be coerced to
        +   * 1000.
        +   * 
        + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
        +   * Optional. A page token, received from a previous `ListImageImports` call.
        +   * Provide this to retrieve the subsequent page.
        +   *
        +   * When paginating, all other parameters provided to `ListImageImports` must
        +   * match the call that provided the page token.
        +   * 
        + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
        +   * Optional. A page token, received from a previous `ListImageImports` call.
        +   * Provide this to retrieve the subsequent page.
        +   *
        +   * When paginating, all other parameters provided to `ListImageImports` must
        +   * match the call that provided the page token.
        +   * 
        + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
        +   * Optional. The filter request (according to <a
        +   * href="https://google.aip.dev/160" target="_blank">AIP-160</a>).
        +   * 
        + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + + /** + * + * + *
        +   * Optional. The filter request (according to <a
        +   * href="https://google.aip.dev/160" target="_blank">AIP-160</a>).
        +   * 
        + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
        +   * Optional. The order by fields for the result (according to <a
        +   * href="https://google.aip.dev/132#ordering" target="_blank">AIP-132</a>).
        +   * Currently ordering is only possible by "name" field.
        +   * 
        + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
        +   * Optional. The order by fields for the result (according to <a
        +   * href="https://google.aip.dev/132#ordering" target="_blank">AIP-132</a>).
        +   * Currently ordering is only possible by "name" field.
        +   * 
        + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmmigration.v1.ListImageImportsRequest)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.ListImageImportsRequest other = + (com.google.cloud.vmmigration.v1.ListImageImportsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.ListImageImportsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.ListImageImportsRequest 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.vmmigration.v1.ListImageImportsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.ListImageImportsRequest parseFrom( + 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.vmmigration.v1.ListImageImportsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.ListImageImportsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.ListImageImportsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.ListImageImportsRequest 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.vmmigration.v1.ListImageImportsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.ListImageImportsRequest 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.vmmigration.v1.ListImageImportsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.ListImageImportsRequest 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.vmmigration.v1.ListImageImportsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * Request message for 'ListImageImports' call.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.ListImageImportsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.ListImageImportsRequest) + com.google.cloud.vmmigration.v1.ListImageImportsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ListImageImportsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ListImageImportsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.ListImageImportsRequest.class, + com.google.cloud.vmmigration.v1.ListImageImportsRequest.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.ListImageImportsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ListImageImportsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.ListImageImportsRequest getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.ListImageImportsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.ListImageImportsRequest build() { + com.google.cloud.vmmigration.v1.ListImageImportsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.ListImageImportsRequest buildPartial() { + com.google.cloud.vmmigration.v1.ListImageImportsRequest result = + new com.google.cloud.vmmigration.v1.ListImageImportsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vmmigration.v1.ListImageImportsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmmigration.v1.ListImageImportsRequest) { + return mergeFrom((com.google.cloud.vmmigration.v1.ListImageImportsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.ListImageImportsRequest other) { + if (other == com.google.cloud.vmmigration.v1.ListImageImportsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
        +     * Required. The parent, which owns this collection of targets.
        +     * 
        + * + * + * 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 parent, which owns this collection of targets.
        +     * 
        + * + * + * 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 parent, which owns this collection of targets.
        +     * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The parent, which owns this collection of targets.
        +     * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The parent, which owns this collection of targets.
        +     * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
        +     * Optional. The maximum number of targets to return. The service may return
        +     * fewer than this value. If unspecified, at most 500 targets will be
        +     * returned. The maximum value is 1000; values above 1000 will be coerced to
        +     * 1000.
        +     * 
        + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
        +     * Optional. The maximum number of targets to return. The service may return
        +     * fewer than this value. If unspecified, at most 500 targets will be
        +     * returned. The maximum value is 1000; values above 1000 will be coerced to
        +     * 1000.
        +     * 
        + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The maximum number of targets to return. The service may return
        +     * fewer than this value. If unspecified, at most 500 targets will be
        +     * returned. The maximum value is 1000; values above 1000 will be coerced to
        +     * 1000.
        +     * 
        + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
        +     * Optional. A page token, received from a previous `ListImageImports` call.
        +     * Provide this to retrieve the subsequent page.
        +     *
        +     * When paginating, all other parameters provided to `ListImageImports` must
        +     * match the call that provided the page token.
        +     * 
        + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Optional. A page token, received from a previous `ListImageImports` call.
        +     * Provide this to retrieve the subsequent page.
        +     *
        +     * When paginating, all other parameters provided to `ListImageImports` must
        +     * match the call that provided the page token.
        +     * 
        + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Optional. A page token, received from a previous `ListImageImports` call.
        +     * Provide this to retrieve the subsequent page.
        +     *
        +     * When paginating, all other parameters provided to `ListImageImports` must
        +     * match the call that provided the page token.
        +     * 
        + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. A page token, received from a previous `ListImageImports` call.
        +     * Provide this to retrieve the subsequent page.
        +     *
        +     * When paginating, all other parameters provided to `ListImageImports` must
        +     * match the call that provided the page token.
        +     * 
        + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. A page token, received from a previous `ListImageImports` call.
        +     * Provide this to retrieve the subsequent page.
        +     *
        +     * When paginating, all other parameters provided to `ListImageImports` must
        +     * match the call that provided the page token.
        +     * 
        + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
        +     * Optional. The filter request (according to <a
        +     * href="https://google.aip.dev/160" target="_blank">AIP-160</a>).
        +     * 
        + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Optional. The filter request (according to <a
        +     * href="https://google.aip.dev/160" target="_blank">AIP-160</a>).
        +     * 
        + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Optional. The filter request (according to <a
        +     * href="https://google.aip.dev/160" target="_blank">AIP-160</a>).
        +     * 
        + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The filter request (according to <a
        +     * href="https://google.aip.dev/160" target="_blank">AIP-160</a>).
        +     * 
        + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The filter request (according to <a
        +     * href="https://google.aip.dev/160" target="_blank">AIP-160</a>).
        +     * 
        + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
        +     * Optional. The order by fields for the result (according to <a
        +     * href="https://google.aip.dev/132#ordering" target="_blank">AIP-132</a>).
        +     * Currently ordering is only possible by "name" field.
        +     * 
        + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Optional. The order by fields for the result (according to <a
        +     * href="https://google.aip.dev/132#ordering" target="_blank">AIP-132</a>).
        +     * Currently ordering is only possible by "name" field.
        +     * 
        + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Optional. The order by fields for the result (according to <a
        +     * href="https://google.aip.dev/132#ordering" target="_blank">AIP-132</a>).
        +     * Currently ordering is only possible by "name" field.
        +     * 
        + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The order by fields for the result (according to <a
        +     * href="https://google.aip.dev/132#ordering" target="_blank">AIP-132</a>).
        +     * Currently ordering is only possible by "name" field.
        +     * 
        + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The order by fields for the result (according to <a
        +     * href="https://google.aip.dev/132#ordering" target="_blank">AIP-132</a>).
        +     * Currently ordering is only possible by "name" field.
        +     * 
        + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmmigration.v1.ListImageImportsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.ListImageImportsRequest) + private static final com.google.cloud.vmmigration.v1.ListImageImportsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.ListImageImportsRequest(); + } + + public static com.google.cloud.vmmigration.v1.ListImageImportsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListImageImportsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.ListImageImportsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListImageImportsRequestOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListImageImportsRequestOrBuilder.java new file mode 100644 index 000000000000..115c8ec9f862 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListImageImportsRequestOrBuilder.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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface ListImageImportsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.ListImageImportsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Required. The parent, which owns this collection of targets.
        +   * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
        +   * Required. The parent, which owns this collection of targets.
        +   * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
        +   * Optional. The maximum number of targets to return. The service may return
        +   * fewer than this value. If unspecified, at most 500 targets will be
        +   * returned. The maximum value is 1000; values above 1000 will be coerced to
        +   * 1000.
        +   * 
        + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
        +   * Optional. A page token, received from a previous `ListImageImports` call.
        +   * Provide this to retrieve the subsequent page.
        +   *
        +   * When paginating, all other parameters provided to `ListImageImports` must
        +   * match the call that provided the page token.
        +   * 
        + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
        +   * Optional. A page token, received from a previous `ListImageImports` call.
        +   * Provide this to retrieve the subsequent page.
        +   *
        +   * When paginating, all other parameters provided to `ListImageImports` must
        +   * match the call that provided the page token.
        +   * 
        + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
        +   * Optional. The filter request (according to <a
        +   * href="https://google.aip.dev/160" target="_blank">AIP-160</a>).
        +   * 
        + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
        +   * Optional. The filter request (according to <a
        +   * href="https://google.aip.dev/160" target="_blank">AIP-160</a>).
        +   * 
        + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
        +   * Optional. The order by fields for the result (according to <a
        +   * href="https://google.aip.dev/132#ordering" target="_blank">AIP-132</a>).
        +   * Currently ordering is only possible by "name" field.
        +   * 
        + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
        +   * Optional. The order by fields for the result (according to <a
        +   * href="https://google.aip.dev/132#ordering" target="_blank">AIP-132</a>).
        +   * Currently ordering is only possible by "name" field.
        +   * 
        + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListImageImportsResponse.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListImageImportsResponse.java new file mode 100644 index 000000000000..ddacb641604f --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListImageImportsResponse.java @@ -0,0 +1,1496 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * Response message for 'ListImageImports' call.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.ListImageImportsResponse} + */ +public final class ListImageImportsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.ListImageImportsResponse) + ListImageImportsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListImageImportsResponse.newBuilder() to construct. + private ListImageImportsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListImageImportsResponse() { + imageImports_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListImageImportsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ListImageImportsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ListImageImportsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.ListImageImportsResponse.class, + com.google.cloud.vmmigration.v1.ListImageImportsResponse.Builder.class); + } + + public static final int IMAGE_IMPORTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List imageImports_; + + /** + * + * + *
        +   * Output only. The list of target response.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImport image_imports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getImageImportsList() { + return imageImports_; + } + + /** + * + * + *
        +   * Output only. The list of target response.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImport image_imports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getImageImportsOrBuilderList() { + return imageImports_; + } + + /** + * + * + *
        +   * Output only. The list of target response.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImport image_imports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getImageImportsCount() { + return imageImports_.size(); + } + + /** + * + * + *
        +   * Output only. The list of target response.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImport image_imports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ImageImport getImageImports(int index) { + return imageImports_.get(index); + } + + /** + * + * + *
        +   * Output only. The list of target response.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImport image_imports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ImageImportOrBuilder getImageImportsOrBuilder(int index) { + return imageImports_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
        +   * Output only. A token, which can be sent as `page_token` to retrieve the
        +   * next page. If this field is omitted, there are no subsequent pages.
        +   * 
        + * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
        +   * Output only. A token, which can be sent as `page_token` to retrieve the
        +   * next page. If this field is omitted, there are no subsequent pages.
        +   * 
        + * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
        +   * Output only. Locations that could not be reached.
        +   * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
        +   * Output only. Locations that could not be reached.
        +   * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
        +   * Output only. Locations that could not be reached.
        +   * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
        +   * Output only. Locations that could not be reached.
        +   * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < imageImports_.size(); i++) { + output.writeMessage(1, imageImports_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < imageImports_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, imageImports_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmmigration.v1.ListImageImportsResponse)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.ListImageImportsResponse other = + (com.google.cloud.vmmigration.v1.ListImageImportsResponse) obj; + + if (!getImageImportsList().equals(other.getImageImportsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getImageImportsCount() > 0) { + hash = (37 * hash) + IMAGE_IMPORTS_FIELD_NUMBER; + hash = (53 * hash) + getImageImportsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.ListImageImportsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.ListImageImportsResponse 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.vmmigration.v1.ListImageImportsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.ListImageImportsResponse parseFrom( + 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.vmmigration.v1.ListImageImportsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.ListImageImportsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.ListImageImportsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.ListImageImportsResponse 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.vmmigration.v1.ListImageImportsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.ListImageImportsResponse 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.vmmigration.v1.ListImageImportsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.ListImageImportsResponse 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.vmmigration.v1.ListImageImportsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * Response message for 'ListImageImports' call.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.ListImageImportsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.ListImageImportsResponse) + com.google.cloud.vmmigration.v1.ListImageImportsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ListImageImportsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ListImageImportsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.ListImageImportsResponse.class, + com.google.cloud.vmmigration.v1.ListImageImportsResponse.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.ListImageImportsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (imageImportsBuilder_ == null) { + imageImports_ = java.util.Collections.emptyList(); + } else { + imageImports_ = null; + imageImportsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ListImageImportsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.ListImageImportsResponse getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.ListImageImportsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.ListImageImportsResponse build() { + com.google.cloud.vmmigration.v1.ListImageImportsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.ListImageImportsResponse buildPartial() { + com.google.cloud.vmmigration.v1.ListImageImportsResponse result = + new com.google.cloud.vmmigration.v1.ListImageImportsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.vmmigration.v1.ListImageImportsResponse result) { + if (imageImportsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + imageImports_ = java.util.Collections.unmodifiableList(imageImports_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.imageImports_ = imageImports_; + } else { + result.imageImports_ = imageImportsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.vmmigration.v1.ListImageImportsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmmigration.v1.ListImageImportsResponse) { + return mergeFrom((com.google.cloud.vmmigration.v1.ListImageImportsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.ListImageImportsResponse other) { + if (other == com.google.cloud.vmmigration.v1.ListImageImportsResponse.getDefaultInstance()) + return this; + if (imageImportsBuilder_ == null) { + if (!other.imageImports_.isEmpty()) { + if (imageImports_.isEmpty()) { + imageImports_ = other.imageImports_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureImageImportsIsMutable(); + imageImports_.addAll(other.imageImports_); + } + onChanged(); + } + } else { + if (!other.imageImports_.isEmpty()) { + if (imageImportsBuilder_.isEmpty()) { + imageImportsBuilder_.dispose(); + imageImportsBuilder_ = null; + imageImports_ = other.imageImports_; + bitField0_ = (bitField0_ & ~0x00000001); + imageImportsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getImageImportsFieldBuilder() + : null; + } else { + imageImportsBuilder_.addAllMessages(other.imageImports_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.vmmigration.v1.ImageImport m = + input.readMessage( + com.google.cloud.vmmigration.v1.ImageImport.parser(), extensionRegistry); + if (imageImportsBuilder_ == null) { + ensureImageImportsIsMutable(); + imageImports_.add(m); + } else { + imageImportsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List imageImports_ = + java.util.Collections.emptyList(); + + private void ensureImageImportsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + imageImports_ = + new java.util.ArrayList(imageImports_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.ImageImport, + com.google.cloud.vmmigration.v1.ImageImport.Builder, + com.google.cloud.vmmigration.v1.ImageImportOrBuilder> + imageImportsBuilder_; + + /** + * + * + *
        +     * Output only. The list of target response.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImport image_imports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getImageImportsList() { + if (imageImportsBuilder_ == null) { + return java.util.Collections.unmodifiableList(imageImports_); + } else { + return imageImportsBuilder_.getMessageList(); + } + } + + /** + * + * + *
        +     * Output only. The list of target response.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImport image_imports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getImageImportsCount() { + if (imageImportsBuilder_ == null) { + return imageImports_.size(); + } else { + return imageImportsBuilder_.getCount(); + } + } + + /** + * + * + *
        +     * Output only. The list of target response.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImport image_imports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.ImageImport getImageImports(int index) { + if (imageImportsBuilder_ == null) { + return imageImports_.get(index); + } else { + return imageImportsBuilder_.getMessage(index); + } + } + + /** + * + * + *
        +     * Output only. The list of target response.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImport image_imports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setImageImports(int index, com.google.cloud.vmmigration.v1.ImageImport value) { + if (imageImportsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureImageImportsIsMutable(); + imageImports_.set(index, value); + onChanged(); + } else { + imageImportsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * Output only. The list of target response.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImport image_imports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setImageImports( + int index, com.google.cloud.vmmigration.v1.ImageImport.Builder builderForValue) { + if (imageImportsBuilder_ == null) { + ensureImageImportsIsMutable(); + imageImports_.set(index, builderForValue.build()); + onChanged(); + } else { + imageImportsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Output only. The list of target response.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImport image_imports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addImageImports(com.google.cloud.vmmigration.v1.ImageImport value) { + if (imageImportsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureImageImportsIsMutable(); + imageImports_.add(value); + onChanged(); + } else { + imageImportsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
        +     * Output only. The list of target response.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImport image_imports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addImageImports(int index, com.google.cloud.vmmigration.v1.ImageImport value) { + if (imageImportsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureImageImportsIsMutable(); + imageImports_.add(index, value); + onChanged(); + } else { + imageImportsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * Output only. The list of target response.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImport image_imports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addImageImports( + com.google.cloud.vmmigration.v1.ImageImport.Builder builderForValue) { + if (imageImportsBuilder_ == null) { + ensureImageImportsIsMutable(); + imageImports_.add(builderForValue.build()); + onChanged(); + } else { + imageImportsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Output only. The list of target response.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImport image_imports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addImageImports( + int index, com.google.cloud.vmmigration.v1.ImageImport.Builder builderForValue) { + if (imageImportsBuilder_ == null) { + ensureImageImportsIsMutable(); + imageImports_.add(index, builderForValue.build()); + onChanged(); + } else { + imageImportsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Output only. The list of target response.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImport image_imports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllImageImports( + java.lang.Iterable values) { + if (imageImportsBuilder_ == null) { + ensureImageImportsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, imageImports_); + onChanged(); + } else { + imageImportsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
        +     * Output only. The list of target response.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImport image_imports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearImageImports() { + if (imageImportsBuilder_ == null) { + imageImports_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + imageImportsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Output only. The list of target response.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImport image_imports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeImageImports(int index) { + if (imageImportsBuilder_ == null) { + ensureImageImportsIsMutable(); + imageImports_.remove(index); + onChanged(); + } else { + imageImportsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
        +     * Output only. The list of target response.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImport image_imports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.ImageImport.Builder getImageImportsBuilder(int index) { + return getImageImportsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
        +     * Output only. The list of target response.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImport image_imports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.ImageImportOrBuilder getImageImportsOrBuilder( + int index) { + if (imageImportsBuilder_ == null) { + return imageImports_.get(index); + } else { + return imageImportsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
        +     * Output only. The list of target response.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImport image_imports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getImageImportsOrBuilderList() { + if (imageImportsBuilder_ != null) { + return imageImportsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(imageImports_); + } + } + + /** + * + * + *
        +     * Output only. The list of target response.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImport image_imports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.ImageImport.Builder addImageImportsBuilder() { + return getImageImportsFieldBuilder() + .addBuilder(com.google.cloud.vmmigration.v1.ImageImport.getDefaultInstance()); + } + + /** + * + * + *
        +     * Output only. The list of target response.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImport image_imports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.ImageImport.Builder addImageImportsBuilder(int index) { + return getImageImportsFieldBuilder() + .addBuilder(index, com.google.cloud.vmmigration.v1.ImageImport.getDefaultInstance()); + } + + /** + * + * + *
        +     * Output only. The list of target response.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImport image_imports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getImageImportsBuilderList() { + return getImageImportsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.ImageImport, + com.google.cloud.vmmigration.v1.ImageImport.Builder, + com.google.cloud.vmmigration.v1.ImageImportOrBuilder> + getImageImportsFieldBuilder() { + if (imageImportsBuilder_ == null) { + imageImportsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.ImageImport, + com.google.cloud.vmmigration.v1.ImageImport.Builder, + com.google.cloud.vmmigration.v1.ImageImportOrBuilder>( + imageImports_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + imageImports_ = null; + } + return imageImportsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
        +     * Output only. A token, which can be sent as `page_token` to retrieve the
        +     * next page. If this field is omitted, there are no subsequent pages.
        +     * 
        + * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Output only. A token, which can be sent as `page_token` to retrieve the
        +     * next page. If this field is omitted, there are no subsequent pages.
        +     * 
        + * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Output only. A token, which can be sent as `page_token` to retrieve the
        +     * next page. If this field is omitted, there are no subsequent pages.
        +     * 
        + * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. A token, which can be sent as `page_token` to retrieve the
        +     * next page. If this field is omitted, there are no subsequent pages.
        +     * 
        + * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. A token, which can be sent as `page_token` to retrieve the
        +     * next page. If this field is omitted, there are no subsequent pages.
        +     * 
        + * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
        +     * Output only. Locations that could not be reached.
        +     * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
        +     * Output only. Locations that could not be reached.
        +     * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
        +     * Output only. Locations that could not be reached.
        +     * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
        +     * Output only. Locations that could not be reached.
        +     * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + /** + * + * + *
        +     * Output only. Locations that could not be reached.
        +     * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. Locations that could not be reached.
        +     * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. Locations that could not be reached.
        +     * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. Locations that could not be reached.
        +     * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. Locations that could not be reached.
        +     * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmmigration.v1.ListImageImportsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.ListImageImportsResponse) + private static final com.google.cloud.vmmigration.v1.ListImageImportsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.ListImageImportsResponse(); + } + + public static com.google.cloud.vmmigration.v1.ListImageImportsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListImageImportsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.ListImageImportsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListImageImportsResponseOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListImageImportsResponseOrBuilder.java new file mode 100644 index 000000000000..0d7e4eae1b4d --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ListImageImportsResponseOrBuilder.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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface ListImageImportsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.ListImageImportsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Output only. The list of target response.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImport image_imports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getImageImportsList(); + + /** + * + * + *
        +   * Output only. The list of target response.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImport image_imports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.vmmigration.v1.ImageImport getImageImports(int index); + + /** + * + * + *
        +   * Output only. The list of target response.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImport image_imports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getImageImportsCount(); + + /** + * + * + *
        +   * Output only. The list of target response.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImport image_imports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getImageImportsOrBuilderList(); + + /** + * + * + *
        +   * Output only. The list of target response.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.ImageImport image_imports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.vmmigration.v1.ImageImportOrBuilder getImageImportsOrBuilder(int index); + + /** + * + * + *
        +   * Output only. A token, which can be sent as `page_token` to retrieve the
        +   * next page. If this field is omitted, there are no subsequent pages.
        +   * 
        + * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
        +   * Output only. A token, which can be sent as `page_token` to retrieve the
        +   * next page. If this field is omitted, there are no subsequent pages.
        +   * 
        + * + * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
        +   * Output only. Locations that could not be reached.
        +   * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
        +   * Output only. Locations that could not be reached.
        +   * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
        +   * Output only. Locations that could not be reached.
        +   * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
        +   * Output only. Locations that could not be reached.
        +   * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/LoadingImageSourceFilesStep.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/LoadingImageSourceFilesStep.java new file mode 100644 index 000000000000..eaceeb78fecd --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/LoadingImageSourceFilesStep.java @@ -0,0 +1,435 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * LoadingImageSourceFilesStep contains specific step details.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.LoadingImageSourceFilesStep} + */ +public final class LoadingImageSourceFilesStep extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.LoadingImageSourceFilesStep) + LoadingImageSourceFilesStepOrBuilder { + private static final long serialVersionUID = 0L; + + // Use LoadingImageSourceFilesStep.newBuilder() to construct. + private LoadingImageSourceFilesStep(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LoadingImageSourceFilesStep() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LoadingImageSourceFilesStep(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_LoadingImageSourceFilesStep_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_LoadingImageSourceFilesStep_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep.class, + com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep.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.vmmigration.v1.LoadingImageSourceFilesStep)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep other = + (com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep) 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.vmmigration.v1.LoadingImageSourceFilesStep parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep 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.vmmigration.v1.LoadingImageSourceFilesStep parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep parseFrom( + 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.vmmigration.v1.LoadingImageSourceFilesStep parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep 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.vmmigration.v1.LoadingImageSourceFilesStep parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep 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.vmmigration.v1.LoadingImageSourceFilesStep parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep 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.vmmigration.v1.LoadingImageSourceFilesStep prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
        +   * LoadingImageSourceFilesStep contains specific step details.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.LoadingImageSourceFilesStep} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.LoadingImageSourceFilesStep) + com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStepOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_LoadingImageSourceFilesStep_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_LoadingImageSourceFilesStep_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep.class, + com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep.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.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_LoadingImageSourceFilesStep_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep build() { + com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep buildPartial() { + com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep result = + new com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep(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.vmmigration.v1.LoadingImageSourceFilesStep) { + return mergeFrom((com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep other) { + if (other == com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep.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.vmmigration.v1.LoadingImageSourceFilesStep) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.LoadingImageSourceFilesStep) + private static final com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep(); + } + + public static com.google.cloud.vmmigration.v1.LoadingImageSourceFilesStep getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LoadingImageSourceFilesStep parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.LoadingImageSourceFilesStep getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/LoadingImageSourceFilesStepOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/LoadingImageSourceFilesStepOrBuilder.java new file mode 100644 index 000000000000..9ce19e9d1682 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/LoadingImageSourceFilesStepOrBuilder.java @@ -0,0 +1,25 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface LoadingImageSourceFilesStepOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.LoadingImageSourceFilesStep) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/MachineImageParametersOverrides.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/MachineImageParametersOverrides.java new file mode 100644 index 000000000000..8712ff94e1a9 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/MachineImageParametersOverrides.java @@ -0,0 +1,673 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * Parameters overriding decisions based on the source machine image
        + * configurations.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.MachineImageParametersOverrides} + */ +public final class MachineImageParametersOverrides extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.MachineImageParametersOverrides) + MachineImageParametersOverridesOrBuilder { + private static final long serialVersionUID = 0L; + + // Use MachineImageParametersOverrides.newBuilder() to construct. + private MachineImageParametersOverrides( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MachineImageParametersOverrides() { + machineType_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MachineImageParametersOverrides(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_MachineImageParametersOverrides_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_MachineImageParametersOverrides_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.MachineImageParametersOverrides.class, + com.google.cloud.vmmigration.v1.MachineImageParametersOverrides.Builder.class); + } + + public static final int MACHINE_TYPE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object machineType_ = ""; + + /** + * + * + *
        +   * Optional. The machine type to create the MachineImage with.
        +   * If empty, the service will choose a relevant machine type based on the
        +   * information from the source image.
        +   * For more information about machine types, please refer to
        +   * https://cloud.google.com/compute/docs/machine-resource.
        +   * 
        + * + * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
        +   * Optional. The machine type to create the MachineImage with.
        +   * If empty, the service will choose a relevant machine type based on the
        +   * information from the source image.
        +   * For more information about machine types, please refer to
        +   * https://cloud.google.com/compute/docs/machine-resource.
        +   * 
        + * + * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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(machineType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, machineType_); + } + 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(machineType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, machineType_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.vmmigration.v1.MachineImageParametersOverrides)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.MachineImageParametersOverrides other = + (com.google.cloud.vmmigration.v1.MachineImageParametersOverrides) obj; + + if (!getMachineType().equals(other.getMachineType())) 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) + MACHINE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getMachineType().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.MachineImageParametersOverrides parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.MachineImageParametersOverrides 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.vmmigration.v1.MachineImageParametersOverrides parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.MachineImageParametersOverrides parseFrom( + 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.vmmigration.v1.MachineImageParametersOverrides parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.MachineImageParametersOverrides parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.MachineImageParametersOverrides parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.MachineImageParametersOverrides 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.vmmigration.v1.MachineImageParametersOverrides parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.MachineImageParametersOverrides 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.vmmigration.v1.MachineImageParametersOverrides parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.MachineImageParametersOverrides 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.vmmigration.v1.MachineImageParametersOverrides prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
        +   * Parameters overriding decisions based on the source machine image
        +   * configurations.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.MachineImageParametersOverrides} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.MachineImageParametersOverrides) + com.google.cloud.vmmigration.v1.MachineImageParametersOverridesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_MachineImageParametersOverrides_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_MachineImageParametersOverrides_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.MachineImageParametersOverrides.class, + com.google.cloud.vmmigration.v1.MachineImageParametersOverrides.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.MachineImageParametersOverrides.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + machineType_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_MachineImageParametersOverrides_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.MachineImageParametersOverrides + getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.MachineImageParametersOverrides.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.MachineImageParametersOverrides build() { + com.google.cloud.vmmigration.v1.MachineImageParametersOverrides result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.MachineImageParametersOverrides buildPartial() { + com.google.cloud.vmmigration.v1.MachineImageParametersOverrides result = + new com.google.cloud.vmmigration.v1.MachineImageParametersOverrides(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.vmmigration.v1.MachineImageParametersOverrides result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.machineType_ = machineType_; + } + } + + @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.vmmigration.v1.MachineImageParametersOverrides) { + return mergeFrom((com.google.cloud.vmmigration.v1.MachineImageParametersOverrides) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.vmmigration.v1.MachineImageParametersOverrides other) { + if (other + == com.google.cloud.vmmigration.v1.MachineImageParametersOverrides.getDefaultInstance()) + return this; + if (!other.getMachineType().isEmpty()) { + machineType_ = other.machineType_; + 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: + { + machineType_ = 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 machineType_ = ""; + + /** + * + * + *
        +     * Optional. The machine type to create the MachineImage with.
        +     * If empty, the service will choose a relevant machine type based on the
        +     * information from the source image.
        +     * For more information about machine types, please refer to
        +     * https://cloud.google.com/compute/docs/machine-resource.
        +     * 
        + * + * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
        +     * Optional. The machine type to create the MachineImage with.
        +     * If empty, the service will choose a relevant machine type based on the
        +     * information from the source image.
        +     * For more information about machine types, please refer to
        +     * https://cloud.google.com/compute/docs/machine-resource.
        +     * 
        + * + * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
        +     * Optional. The machine type to create the MachineImage with.
        +     * If empty, the service will choose a relevant machine type based on the
        +     * information from the source image.
        +     * For more information about machine types, please refer to
        +     * https://cloud.google.com/compute/docs/machine-resource.
        +     * 
        + * + * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The machine type to create the MachineImage with.
        +     * If empty, the service will choose a relevant machine type based on the
        +     * information from the source image.
        +     * For more information about machine types, please refer to
        +     * https://cloud.google.com/compute/docs/machine-resource.
        +     * 
        + * + * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMachineType() { + machineType_ = getDefaultInstance().getMachineType(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The machine type to create the MachineImage with.
        +     * If empty, the service will choose a relevant machine type based on the
        +     * information from the source image.
        +     * For more information about machine types, please refer to
        +     * https://cloud.google.com/compute/docs/machine-resource.
        +     * 
        + * + * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 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.vmmigration.v1.MachineImageParametersOverrides) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.MachineImageParametersOverrides) + private static final com.google.cloud.vmmigration.v1.MachineImageParametersOverrides + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.MachineImageParametersOverrides(); + } + + public static com.google.cloud.vmmigration.v1.MachineImageParametersOverrides + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MachineImageParametersOverrides parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.MachineImageParametersOverrides + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/MachineImageParametersOverridesOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/MachineImageParametersOverridesOrBuilder.java new file mode 100644 index 000000000000..3ab72de17f67 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/MachineImageParametersOverridesOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface MachineImageParametersOverridesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.MachineImageParametersOverrides) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Optional. The machine type to create the MachineImage with.
        +   * If empty, the service will choose a relevant machine type based on the
        +   * information from the source image.
        +   * For more information about machine types, please refer to
        +   * https://cloud.google.com/compute/docs/machine-resource.
        +   * 
        + * + * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The machineType. + */ + java.lang.String getMachineType(); + + /** + * + * + *
        +   * Optional. The machine type to create the MachineImage with.
        +   * If empty, the service will choose a relevant machine type based on the
        +   * information from the source image.
        +   * For more information about machine types, please refer to
        +   * https://cloud.google.com/compute/docs/machine-resource.
        +   * 
        + * + * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for machineType. + */ + com.google.protobuf.ByteString getMachineTypeBytes(); +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/MachineImageTargetDetails.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/MachineImageTargetDetails.java new file mode 100644 index 000000000000..774dc4547acf --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/MachineImageTargetDetails.java @@ -0,0 +1,4853 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * The target details of the machine image resource that will be created by the
        + * image import job.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.MachineImageTargetDetails} + */ +public final class MachineImageTargetDetails extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.MachineImageTargetDetails) + MachineImageTargetDetailsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use MachineImageTargetDetails.newBuilder() to construct. + private MachineImageTargetDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MachineImageTargetDetails() { + machineImageName_ = ""; + targetProject_ = ""; + description_ = ""; + additionalLicenses_ = com.google.protobuf.LazyStringArrayList.emptyList(); + tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); + networkInterfaces_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MachineImageTargetDetails(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_MachineImageTargetDetails_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 10: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_MachineImageTargetDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.MachineImageTargetDetails.class, + com.google.cloud.vmmigration.v1.MachineImageTargetDetails.Builder.class); + } + + private int bitField0_; + private int osAdaptationConfigCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object osAdaptationConfig_; + + public enum OsAdaptationConfigCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + OS_ADAPTATION_PARAMETERS(3), + SKIP_OS_ADAPTATION(16), + OSADAPTATIONCONFIG_NOT_SET(0); + private final int value; + + private OsAdaptationConfigCase(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 OsAdaptationConfigCase valueOf(int value) { + return forNumber(value); + } + + public static OsAdaptationConfigCase forNumber(int value) { + switch (value) { + case 3: + return OS_ADAPTATION_PARAMETERS; + case 16: + return SKIP_OS_ADAPTATION; + case 0: + return OSADAPTATIONCONFIG_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public OsAdaptationConfigCase getOsAdaptationConfigCase() { + return OsAdaptationConfigCase.forNumber(osAdaptationConfigCase_); + } + + public static final int OS_ADAPTATION_PARAMETERS_FIELD_NUMBER = 3; + + /** + * + * + *
        +   * Optional. Use to set the parameters relevant for the OS adaptation
        +   * process.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters os_adaptation_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the osAdaptationParameters field is set. + */ + @java.lang.Override + public boolean hasOsAdaptationParameters() { + return osAdaptationConfigCase_ == 3; + } + + /** + * + * + *
        +   * Optional. Use to set the parameters relevant for the OS adaptation
        +   * process.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters os_adaptation_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The osAdaptationParameters. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters + getOsAdaptationParameters() { + if (osAdaptationConfigCase_ == 3) { + return (com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters) + osAdaptationConfig_; + } + return com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters.getDefaultInstance(); + } + + /** + * + * + *
        +   * Optional. Use to set the parameters relevant for the OS adaptation
        +   * process.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters os_adaptation_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParametersOrBuilder + getOsAdaptationParametersOrBuilder() { + if (osAdaptationConfigCase_ == 3) { + return (com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters) + osAdaptationConfig_; + } + return com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters.getDefaultInstance(); + } + + public static final int SKIP_OS_ADAPTATION_FIELD_NUMBER = 16; + + /** + * + * + *
        +   * Optional. Use to skip OS adaptation process.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.SkipOsAdaptation skip_os_adaptation = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the skipOsAdaptation field is set. + */ + @java.lang.Override + public boolean hasSkipOsAdaptation() { + return osAdaptationConfigCase_ == 16; + } + + /** + * + * + *
        +   * Optional. Use to skip OS adaptation process.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.SkipOsAdaptation skip_os_adaptation = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The skipOsAdaptation. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.SkipOsAdaptation getSkipOsAdaptation() { + if (osAdaptationConfigCase_ == 16) { + return (com.google.cloud.vmmigration.v1.SkipOsAdaptation) osAdaptationConfig_; + } + return com.google.cloud.vmmigration.v1.SkipOsAdaptation.getDefaultInstance(); + } + + /** + * + * + *
        +   * Optional. Use to skip OS adaptation process.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.SkipOsAdaptation skip_os_adaptation = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.SkipOsAdaptationOrBuilder getSkipOsAdaptationOrBuilder() { + if (osAdaptationConfigCase_ == 16) { + return (com.google.cloud.vmmigration.v1.SkipOsAdaptation) osAdaptationConfig_; + } + return com.google.cloud.vmmigration.v1.SkipOsAdaptation.getDefaultInstance(); + } + + public static final int MACHINE_IMAGE_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object machineImageName_ = ""; + + /** + * + * + *
        +   * Required. The name of the machine image to be created.
        +   * 
        + * + * string machine_image_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The machineImageName. + */ + @java.lang.Override + public java.lang.String getMachineImageName() { + java.lang.Object ref = machineImageName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + machineImageName_ = s; + return s; + } + } + + /** + * + * + *
        +   * Required. The name of the machine image to be created.
        +   * 
        + * + * string machine_image_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for machineImageName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMachineImageNameBytes() { + java.lang.Object ref = machineImageName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + machineImageName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGET_PROJECT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object targetProject_ = ""; + + /** + * + * + *
        +   * Required. Reference to the TargetProject resource that represents the
        +   * target project in which the imported machine image will be created.
        +   * 
        + * + * + * string target_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The targetProject. + */ + @java.lang.Override + public java.lang.String getTargetProject() { + java.lang.Object ref = targetProject_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetProject_ = s; + return s; + } + } + + /** + * + * + *
        +   * Required. Reference to the TargetProject resource that represents the
        +   * target project in which the imported machine image will be created.
        +   * 
        + * + * + * string target_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for targetProject. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetProjectBytes() { + java.lang.Object ref = targetProject_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetProject_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
        +   * Optional. An optional description of the machine image.
        +   * 
        + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
        +   * Optional. An optional description of the machine image.
        +   * 
        + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SINGLE_REGION_STORAGE_FIELD_NUMBER = 5; + private boolean singleRegionStorage_ = false; + + /** + * + * + *
        +   * Optional. Set to true to set the machine image storageLocations to the
        +   * single region of the import job. When false, the closest multi-region is
        +   * selected.
        +   * 
        + * + * bool single_region_storage = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The singleRegionStorage. + */ + @java.lang.Override + public boolean getSingleRegionStorage() { + return singleRegionStorage_; + } + + public static final int ENCRYPTION_FIELD_NUMBER = 6; + private com.google.cloud.vmmigration.v1.Encryption encryption_; + + /** + * + * + *
        +   * Immutable. The encryption to apply to the machine image.
        +   * If the Image Import resource has an encryption, this field must be set to
        +   * the same encryption key.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the encryption field is set. + */ + @java.lang.Override + public boolean hasEncryption() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
        +   * Immutable. The encryption to apply to the machine image.
        +   * If the Image Import resource has an encryption, this field must be set to
        +   * the same encryption key.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The encryption. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.Encryption getEncryption() { + return encryption_ == null + ? com.google.cloud.vmmigration.v1.Encryption.getDefaultInstance() + : encryption_; + } + + /** + * + * + *
        +   * Immutable. The encryption to apply to the machine image.
        +   * If the Image Import resource has an encryption, this field must be set to
        +   * the same encryption key.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.EncryptionOrBuilder getEncryptionOrBuilder() { + return encryption_ == null + ? com.google.cloud.vmmigration.v1.Encryption.getDefaultInstance() + : encryption_; + } + + public static final int MACHINE_IMAGE_PARAMETERS_OVERRIDES_FIELD_NUMBER = 7; + private com.google.cloud.vmmigration.v1.MachineImageParametersOverrides + machineImageParametersOverrides_; + + /** + * + * + *
        +   * Optional. Parameters overriding decisions based on the source machine image
        +   * configurations.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.MachineImageParametersOverrides machine_image_parameters_overrides = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the machineImageParametersOverrides field is set. + */ + @java.lang.Override + public boolean hasMachineImageParametersOverrides() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
        +   * Optional. Parameters overriding decisions based on the source machine image
        +   * configurations.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.MachineImageParametersOverrides machine_image_parameters_overrides = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The machineImageParametersOverrides. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.MachineImageParametersOverrides + getMachineImageParametersOverrides() { + return machineImageParametersOverrides_ == null + ? com.google.cloud.vmmigration.v1.MachineImageParametersOverrides.getDefaultInstance() + : machineImageParametersOverrides_; + } + + /** + * + * + *
        +   * Optional. Parameters overriding decisions based on the source machine image
        +   * configurations.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.MachineImageParametersOverrides machine_image_parameters_overrides = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.MachineImageParametersOverridesOrBuilder + getMachineImageParametersOverridesOrBuilder() { + return machineImageParametersOverrides_ == null + ? com.google.cloud.vmmigration.v1.MachineImageParametersOverrides.getDefaultInstance() + : machineImageParametersOverrides_; + } + + public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 8; + private com.google.cloud.vmmigration.v1.ServiceAccount serviceAccount_; + + /** + * + * + *
        +   * Optional. The service account to assign to the instance created by the
        +   * machine image.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ServiceAccount service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the serviceAccount field is set. + */ + @java.lang.Override + public boolean hasServiceAccount() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
        +   * Optional. The service account to assign to the instance created by the
        +   * machine image.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ServiceAccount service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceAccount. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ServiceAccount getServiceAccount() { + return serviceAccount_ == null + ? com.google.cloud.vmmigration.v1.ServiceAccount.getDefaultInstance() + : serviceAccount_; + } + + /** + * + * + *
        +   * Optional. The service account to assign to the instance created by the
        +   * machine image.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ServiceAccount service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ServiceAccountOrBuilder getServiceAccountOrBuilder() { + return serviceAccount_ == null + ? com.google.cloud.vmmigration.v1.ServiceAccount.getDefaultInstance() + : serviceAccount_; + } + + public static final int ADDITIONAL_LICENSES_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList additionalLicenses_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
        +   * Optional. Additional licenses to assign to the instance created by the
        +   * machine image. Format:
        +   * https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +   * Or
        +   * https://www.googleapis.com/compute/beta/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +   * 
        + * + * repeated string additional_licenses = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the additionalLicenses. + */ + public com.google.protobuf.ProtocolStringList getAdditionalLicensesList() { + return additionalLicenses_; + } + + /** + * + * + *
        +   * Optional. Additional licenses to assign to the instance created by the
        +   * machine image. Format:
        +   * https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +   * Or
        +   * https://www.googleapis.com/compute/beta/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +   * 
        + * + * repeated string additional_licenses = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of additionalLicenses. + */ + public int getAdditionalLicensesCount() { + return additionalLicenses_.size(); + } + + /** + * + * + *
        +   * Optional. Additional licenses to assign to the instance created by the
        +   * machine image. Format:
        +   * https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +   * Or
        +   * https://www.googleapis.com/compute/beta/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +   * 
        + * + * repeated string additional_licenses = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The additionalLicenses at the given index. + */ + public java.lang.String getAdditionalLicenses(int index) { + return additionalLicenses_.get(index); + } + + /** + * + * + *
        +   * Optional. Additional licenses to assign to the instance created by the
        +   * machine image. Format:
        +   * https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +   * Or
        +   * https://www.googleapis.com/compute/beta/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +   * 
        + * + * repeated string additional_licenses = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the additionalLicenses at the given index. + */ + public com.google.protobuf.ByteString getAdditionalLicensesBytes(int index) { + return additionalLicenses_.getByteString(index); + } + + public static final int LABELS_FIELD_NUMBER = 10; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_MachineImageTargetDetails_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
        +   * Optional. The labels to apply to the instance created by the machine image.
        +   * 
        + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
        +   * Optional. The labels to apply to the instance created by the machine image.
        +   * 
        + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
        +   * Optional. The labels to apply to the instance created by the machine image.
        +   * 
        + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
        +   * Optional. The labels to apply to the instance created by the machine image.
        +   * 
        + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int TAGS_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList tags_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
        +   * Optional. The tags to apply to the instance created by the machine image.
        +   * 
        + * + * repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the tags. + */ + public com.google.protobuf.ProtocolStringList getTagsList() { + return tags_; + } + + /** + * + * + *
        +   * Optional. The tags to apply to the instance created by the machine image.
        +   * 
        + * + * repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of tags. + */ + public int getTagsCount() { + return tags_.size(); + } + + /** + * + * + *
        +   * Optional. The tags to apply to the instance created by the machine image.
        +   * 
        + * + * repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The tags at the given index. + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + + /** + * + * + *
        +   * Optional. The tags to apply to the instance created by the machine image.
        +   * 
        + * + * repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the tags at the given index. + */ + public com.google.protobuf.ByteString getTagsBytes(int index) { + return tags_.getByteString(index); + } + + public static final int SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER = 12; + private com.google.cloud.vmmigration.v1.ShieldedInstanceConfig shieldedInstanceConfig_; + + /** + * + * + *
        +   * Optional. Shielded instance configuration.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ShieldedInstanceConfig shielded_instance_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the shieldedInstanceConfig field is set. + */ + @java.lang.Override + public boolean hasShieldedInstanceConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
        +   * Optional. Shielded instance configuration.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ShieldedInstanceConfig shielded_instance_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The shieldedInstanceConfig. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ShieldedInstanceConfig getShieldedInstanceConfig() { + return shieldedInstanceConfig_ == null + ? com.google.cloud.vmmigration.v1.ShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; + } + + /** + * + * + *
        +   * Optional. Shielded instance configuration.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ShieldedInstanceConfig shielded_instance_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ShieldedInstanceConfigOrBuilder + getShieldedInstanceConfigOrBuilder() { + return shieldedInstanceConfig_ == null + ? com.google.cloud.vmmigration.v1.ShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; + } + + public static final int NETWORK_INTERFACES_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") + private java.util.List networkInterfaces_; + + /** + * + * + *
        +   * Optional. The network interfaces to create with the instance created by the
        +   * machine image. Internal and external IP addresses, and network tiers are
        +   * ignored for machine image import.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getNetworkInterfacesList() { + return networkInterfaces_; + } + + /** + * + * + *
        +   * Optional. The network interfaces to create with the instance created by the
        +   * machine image. Internal and external IP addresses, and network tiers are
        +   * ignored for machine image import.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getNetworkInterfacesOrBuilderList() { + return networkInterfaces_; + } + + /** + * + * + *
        +   * Optional. The network interfaces to create with the instance created by the
        +   * machine image. Internal and external IP addresses, and network tiers are
        +   * ignored for machine image import.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getNetworkInterfacesCount() { + return networkInterfaces_.size(); + } + + /** + * + * + *
        +   * Optional. The network interfaces to create with the instance created by the
        +   * machine image. Internal and external IP addresses, and network tiers are
        +   * ignored for machine image import.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.NetworkInterface getNetworkInterfaces(int index) { + return networkInterfaces_.get(index); + } + + /** + * + * + *
        +   * Optional. The network interfaces to create with the instance created by the
        +   * machine image. Internal and external IP addresses, and network tiers are
        +   * ignored for machine image import.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.NetworkInterfaceOrBuilder getNetworkInterfacesOrBuilder( + int index) { + return networkInterfaces_.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(machineImageName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, machineImageName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetProject_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, targetProject_); + } + if (osAdaptationConfigCase_ == 3) { + output.writeMessage( + 3, + (com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters) osAdaptationConfig_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); + } + if (singleRegionStorage_ != false) { + output.writeBool(5, singleRegionStorage_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(6, getEncryption()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(7, getMachineImageParametersOverrides()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(8, getServiceAccount()); + } + for (int i = 0; i < additionalLicenses_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, additionalLicenses_.getRaw(i)); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 10); + for (int i = 0; i < tags_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, tags_.getRaw(i)); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(12, getShieldedInstanceConfig()); + } + for (int i = 0; i < networkInterfaces_.size(); i++) { + output.writeMessage(13, networkInterfaces_.get(i)); + } + if (osAdaptationConfigCase_ == 16) { + output.writeMessage( + 16, (com.google.cloud.vmmigration.v1.SkipOsAdaptation) osAdaptationConfig_); + } + 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(machineImageName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, machineImageName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetProject_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, targetProject_); + } + if (osAdaptationConfigCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters) + osAdaptationConfig_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); + } + if (singleRegionStorage_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, singleRegionStorage_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getEncryption()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, getMachineImageParametersOverrides()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getServiceAccount()); + } + { + int dataSize = 0; + for (int i = 0; i < additionalLicenses_.size(); i++) { + dataSize += computeStringSizeNoTag(additionalLicenses_.getRaw(i)); + } + size += dataSize; + size += 1 * getAdditionalLicensesList().size(); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, labels__); + } + { + int dataSize = 0; + for (int i = 0; i < tags_.size(); i++) { + dataSize += computeStringSizeNoTag(tags_.getRaw(i)); + } + size += dataSize; + size += 1 * getTagsList().size(); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(12, getShieldedInstanceConfig()); + } + for (int i = 0; i < networkInterfaces_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(13, networkInterfaces_.get(i)); + } + if (osAdaptationConfigCase_ == 16) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 16, (com.google.cloud.vmmigration.v1.SkipOsAdaptation) osAdaptationConfig_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.vmmigration.v1.MachineImageTargetDetails)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.MachineImageTargetDetails other = + (com.google.cloud.vmmigration.v1.MachineImageTargetDetails) obj; + + if (!getMachineImageName().equals(other.getMachineImageName())) return false; + if (!getTargetProject().equals(other.getTargetProject())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (getSingleRegionStorage() != other.getSingleRegionStorage()) return false; + if (hasEncryption() != other.hasEncryption()) return false; + if (hasEncryption()) { + if (!getEncryption().equals(other.getEncryption())) return false; + } + if (hasMachineImageParametersOverrides() != other.hasMachineImageParametersOverrides()) + return false; + if (hasMachineImageParametersOverrides()) { + if (!getMachineImageParametersOverrides().equals(other.getMachineImageParametersOverrides())) + return false; + } + if (hasServiceAccount() != other.hasServiceAccount()) return false; + if (hasServiceAccount()) { + if (!getServiceAccount().equals(other.getServiceAccount())) return false; + } + if (!getAdditionalLicensesList().equals(other.getAdditionalLicensesList())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getTagsList().equals(other.getTagsList())) return false; + if (hasShieldedInstanceConfig() != other.hasShieldedInstanceConfig()) return false; + if (hasShieldedInstanceConfig()) { + if (!getShieldedInstanceConfig().equals(other.getShieldedInstanceConfig())) return false; + } + if (!getNetworkInterfacesList().equals(other.getNetworkInterfacesList())) return false; + if (!getOsAdaptationConfigCase().equals(other.getOsAdaptationConfigCase())) return false; + switch (osAdaptationConfigCase_) { + case 3: + if (!getOsAdaptationParameters().equals(other.getOsAdaptationParameters())) return false; + break; + case 16: + if (!getSkipOsAdaptation().equals(other.getSkipOsAdaptation())) 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) + MACHINE_IMAGE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getMachineImageName().hashCode(); + hash = (37 * hash) + TARGET_PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getTargetProject().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + SINGLE_REGION_STORAGE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSingleRegionStorage()); + if (hasEncryption()) { + hash = (37 * hash) + ENCRYPTION_FIELD_NUMBER; + hash = (53 * hash) + getEncryption().hashCode(); + } + if (hasMachineImageParametersOverrides()) { + hash = (37 * hash) + MACHINE_IMAGE_PARAMETERS_OVERRIDES_FIELD_NUMBER; + hash = (53 * hash) + getMachineImageParametersOverrides().hashCode(); + } + if (hasServiceAccount()) { + hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccount().hashCode(); + } + if (getAdditionalLicensesCount() > 0) { + hash = (37 * hash) + ADDITIONAL_LICENSES_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalLicensesList().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + if (getTagsCount() > 0) { + hash = (37 * hash) + TAGS_FIELD_NUMBER; + hash = (53 * hash) + getTagsList().hashCode(); + } + if (hasShieldedInstanceConfig()) { + hash = (37 * hash) + SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getShieldedInstanceConfig().hashCode(); + } + if (getNetworkInterfacesCount() > 0) { + hash = (37 * hash) + NETWORK_INTERFACES_FIELD_NUMBER; + hash = (53 * hash) + getNetworkInterfacesList().hashCode(); + } + switch (osAdaptationConfigCase_) { + case 3: + hash = (37 * hash) + OS_ADAPTATION_PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getOsAdaptationParameters().hashCode(); + break; + case 16: + hash = (37 * hash) + SKIP_OS_ADAPTATION_FIELD_NUMBER; + hash = (53 * hash) + getSkipOsAdaptation().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.MachineImageTargetDetails parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.MachineImageTargetDetails 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.vmmigration.v1.MachineImageTargetDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.MachineImageTargetDetails parseFrom( + 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.vmmigration.v1.MachineImageTargetDetails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.MachineImageTargetDetails parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.MachineImageTargetDetails parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.MachineImageTargetDetails 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.vmmigration.v1.MachineImageTargetDetails parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.MachineImageTargetDetails 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.vmmigration.v1.MachineImageTargetDetails parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.MachineImageTargetDetails 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.vmmigration.v1.MachineImageTargetDetails prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 target details of the machine image resource that will be created by the
        +   * image import job.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.MachineImageTargetDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.MachineImageTargetDetails) + com.google.cloud.vmmigration.v1.MachineImageTargetDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_MachineImageTargetDetails_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 10: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 10: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_MachineImageTargetDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.MachineImageTargetDetails.class, + com.google.cloud.vmmigration.v1.MachineImageTargetDetails.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.MachineImageTargetDetails.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getEncryptionFieldBuilder(); + getMachineImageParametersOverridesFieldBuilder(); + getServiceAccountFieldBuilder(); + getShieldedInstanceConfigFieldBuilder(); + getNetworkInterfacesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (osAdaptationParametersBuilder_ != null) { + osAdaptationParametersBuilder_.clear(); + } + if (skipOsAdaptationBuilder_ != null) { + skipOsAdaptationBuilder_.clear(); + } + machineImageName_ = ""; + targetProject_ = ""; + description_ = ""; + singleRegionStorage_ = false; + encryption_ = null; + if (encryptionBuilder_ != null) { + encryptionBuilder_.dispose(); + encryptionBuilder_ = null; + } + machineImageParametersOverrides_ = null; + if (machineImageParametersOverridesBuilder_ != null) { + machineImageParametersOverridesBuilder_.dispose(); + machineImageParametersOverridesBuilder_ = null; + } + serviceAccount_ = null; + if (serviceAccountBuilder_ != null) { + serviceAccountBuilder_.dispose(); + serviceAccountBuilder_ = null; + } + additionalLicenses_ = com.google.protobuf.LazyStringArrayList.emptyList(); + internalGetMutableLabels().clear(); + tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); + shieldedInstanceConfig_ = null; + if (shieldedInstanceConfigBuilder_ != null) { + shieldedInstanceConfigBuilder_.dispose(); + shieldedInstanceConfigBuilder_ = null; + } + if (networkInterfacesBuilder_ == null) { + networkInterfaces_ = java.util.Collections.emptyList(); + } else { + networkInterfaces_ = null; + networkInterfacesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00002000); + osAdaptationConfigCase_ = 0; + osAdaptationConfig_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_MachineImageTargetDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.MachineImageTargetDetails getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.MachineImageTargetDetails.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.MachineImageTargetDetails build() { + com.google.cloud.vmmigration.v1.MachineImageTargetDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.MachineImageTargetDetails buildPartial() { + com.google.cloud.vmmigration.v1.MachineImageTargetDetails result = + new com.google.cloud.vmmigration.v1.MachineImageTargetDetails(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.vmmigration.v1.MachineImageTargetDetails result) { + if (networkInterfacesBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0)) { + networkInterfaces_ = java.util.Collections.unmodifiableList(networkInterfaces_); + bitField0_ = (bitField0_ & ~0x00002000); + } + result.networkInterfaces_ = networkInterfaces_; + } else { + result.networkInterfaces_ = networkInterfacesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.vmmigration.v1.MachineImageTargetDetails result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.machineImageName_ = machineImageName_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.targetProject_ = targetProject_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.singleRegionStorage_ = singleRegionStorage_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000040) != 0)) { + result.encryption_ = encryptionBuilder_ == null ? encryption_ : encryptionBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.machineImageParametersOverrides_ = + machineImageParametersOverridesBuilder_ == null + ? machineImageParametersOverrides_ + : machineImageParametersOverridesBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.serviceAccount_ = + serviceAccountBuilder_ == null ? serviceAccount_ : serviceAccountBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + additionalLicenses_.makeImmutable(); + result.additionalLicenses_ = additionalLicenses_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000800) != 0)) { + tags_.makeImmutable(); + result.tags_ = tags_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.shieldedInstanceConfig_ = + shieldedInstanceConfigBuilder_ == null + ? shieldedInstanceConfig_ + : shieldedInstanceConfigBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.vmmigration.v1.MachineImageTargetDetails result) { + result.osAdaptationConfigCase_ = osAdaptationConfigCase_; + result.osAdaptationConfig_ = this.osAdaptationConfig_; + if (osAdaptationConfigCase_ == 3 && osAdaptationParametersBuilder_ != null) { + result.osAdaptationConfig_ = osAdaptationParametersBuilder_.build(); + } + if (osAdaptationConfigCase_ == 16 && skipOsAdaptationBuilder_ != null) { + result.osAdaptationConfig_ = skipOsAdaptationBuilder_.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.vmmigration.v1.MachineImageTargetDetails) { + return mergeFrom((com.google.cloud.vmmigration.v1.MachineImageTargetDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.MachineImageTargetDetails other) { + if (other == com.google.cloud.vmmigration.v1.MachineImageTargetDetails.getDefaultInstance()) + return this; + if (!other.getMachineImageName().isEmpty()) { + machineImageName_ = other.machineImageName_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getTargetProject().isEmpty()) { + targetProject_ = other.targetProject_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getSingleRegionStorage() != false) { + setSingleRegionStorage(other.getSingleRegionStorage()); + } + if (other.hasEncryption()) { + mergeEncryption(other.getEncryption()); + } + if (other.hasMachineImageParametersOverrides()) { + mergeMachineImageParametersOverrides(other.getMachineImageParametersOverrides()); + } + if (other.hasServiceAccount()) { + mergeServiceAccount(other.getServiceAccount()); + } + if (!other.additionalLicenses_.isEmpty()) { + if (additionalLicenses_.isEmpty()) { + additionalLicenses_ = other.additionalLicenses_; + bitField0_ |= 0x00000200; + } else { + ensureAdditionalLicensesIsMutable(); + additionalLicenses_.addAll(other.additionalLicenses_); + } + onChanged(); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000400; + if (!other.tags_.isEmpty()) { + if (tags_.isEmpty()) { + tags_ = other.tags_; + bitField0_ |= 0x00000800; + } else { + ensureTagsIsMutable(); + tags_.addAll(other.tags_); + } + onChanged(); + } + if (other.hasShieldedInstanceConfig()) { + mergeShieldedInstanceConfig(other.getShieldedInstanceConfig()); + } + if (networkInterfacesBuilder_ == null) { + if (!other.networkInterfaces_.isEmpty()) { + if (networkInterfaces_.isEmpty()) { + networkInterfaces_ = other.networkInterfaces_; + bitField0_ = (bitField0_ & ~0x00002000); + } else { + ensureNetworkInterfacesIsMutable(); + networkInterfaces_.addAll(other.networkInterfaces_); + } + onChanged(); + } + } else { + if (!other.networkInterfaces_.isEmpty()) { + if (networkInterfacesBuilder_.isEmpty()) { + networkInterfacesBuilder_.dispose(); + networkInterfacesBuilder_ = null; + networkInterfaces_ = other.networkInterfaces_; + bitField0_ = (bitField0_ & ~0x00002000); + networkInterfacesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNetworkInterfacesFieldBuilder() + : null; + } else { + networkInterfacesBuilder_.addAllMessages(other.networkInterfaces_); + } + } + } + switch (other.getOsAdaptationConfigCase()) { + case OS_ADAPTATION_PARAMETERS: + { + mergeOsAdaptationParameters(other.getOsAdaptationParameters()); + break; + } + case SKIP_OS_ADAPTATION: + { + mergeSkipOsAdaptation(other.getSkipOsAdaptation()); + break; + } + case OSADAPTATIONCONFIG_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: + { + machineImageName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 18: + { + targetProject_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 18 + case 26: + { + input.readMessage( + getOsAdaptationParametersFieldBuilder().getBuilder(), extensionRegistry); + osAdaptationConfigCase_ = 3; + break; + } // case 26 + case 34: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 40: + { + singleRegionStorage_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 40 + case 50: + { + input.readMessage(getEncryptionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 58: + { + input.readMessage( + getMachineImageParametersOverridesFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 58 + case 66: + { + input.readMessage(getServiceAccountFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 66 + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAdditionalLicensesIsMutable(); + additionalLicenses_.add(s); + break; + } // case 74 + case 82: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000400; + break; + } // case 82 + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTagsIsMutable(); + tags_.add(s); + break; + } // case 90 + case 98: + { + input.readMessage( + getShieldedInstanceConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 98 + case 106: + { + com.google.cloud.vmmigration.v1.NetworkInterface m = + input.readMessage( + com.google.cloud.vmmigration.v1.NetworkInterface.parser(), + extensionRegistry); + if (networkInterfacesBuilder_ == null) { + ensureNetworkInterfacesIsMutable(); + networkInterfaces_.add(m); + } else { + networkInterfacesBuilder_.addMessage(m); + } + break; + } // case 106 + case 130: + { + input.readMessage( + getSkipOsAdaptationFieldBuilder().getBuilder(), extensionRegistry); + osAdaptationConfigCase_ = 16; + break; + } // case 130 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int osAdaptationConfigCase_ = 0; + private java.lang.Object osAdaptationConfig_; + + public OsAdaptationConfigCase getOsAdaptationConfigCase() { + return OsAdaptationConfigCase.forNumber(osAdaptationConfigCase_); + } + + public Builder clearOsAdaptationConfig() { + osAdaptationConfigCase_ = 0; + osAdaptationConfig_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters, + com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters.Builder, + com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParametersOrBuilder> + osAdaptationParametersBuilder_; + + /** + * + * + *
        +     * Optional. Use to set the parameters relevant for the OS adaptation
        +     * process.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters os_adaptation_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the osAdaptationParameters field is set. + */ + @java.lang.Override + public boolean hasOsAdaptationParameters() { + return osAdaptationConfigCase_ == 3; + } + + /** + * + * + *
        +     * Optional. Use to set the parameters relevant for the OS adaptation
        +     * process.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters os_adaptation_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The osAdaptationParameters. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters + getOsAdaptationParameters() { + if (osAdaptationParametersBuilder_ == null) { + if (osAdaptationConfigCase_ == 3) { + return (com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters) + osAdaptationConfig_; + } + return com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters + .getDefaultInstance(); + } else { + if (osAdaptationConfigCase_ == 3) { + return osAdaptationParametersBuilder_.getMessage(); + } + return com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters + .getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Optional. Use to set the parameters relevant for the OS adaptation
        +     * process.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters os_adaptation_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOsAdaptationParameters( + com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters value) { + if (osAdaptationParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + osAdaptationConfig_ = value; + onChanged(); + } else { + osAdaptationParametersBuilder_.setMessage(value); + } + osAdaptationConfigCase_ = 3; + return this; + } + + /** + * + * + *
        +     * Optional. Use to set the parameters relevant for the OS adaptation
        +     * process.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters os_adaptation_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOsAdaptationParameters( + com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters.Builder builderForValue) { + if (osAdaptationParametersBuilder_ == null) { + osAdaptationConfig_ = builderForValue.build(); + onChanged(); + } else { + osAdaptationParametersBuilder_.setMessage(builderForValue.build()); + } + osAdaptationConfigCase_ = 3; + return this; + } + + /** + * + * + *
        +     * Optional. Use to set the parameters relevant for the OS adaptation
        +     * process.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters os_adaptation_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeOsAdaptationParameters( + com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters value) { + if (osAdaptationParametersBuilder_ == null) { + if (osAdaptationConfigCase_ == 3 + && osAdaptationConfig_ + != com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters + .getDefaultInstance()) { + osAdaptationConfig_ = + com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters.newBuilder( + (com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters) + osAdaptationConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + osAdaptationConfig_ = value; + } + onChanged(); + } else { + if (osAdaptationConfigCase_ == 3) { + osAdaptationParametersBuilder_.mergeFrom(value); + } else { + osAdaptationParametersBuilder_.setMessage(value); + } + } + osAdaptationConfigCase_ = 3; + return this; + } + + /** + * + * + *
        +     * Optional. Use to set the parameters relevant for the OS adaptation
        +     * process.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters os_adaptation_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearOsAdaptationParameters() { + if (osAdaptationParametersBuilder_ == null) { + if (osAdaptationConfigCase_ == 3) { + osAdaptationConfigCase_ = 0; + osAdaptationConfig_ = null; + onChanged(); + } + } else { + if (osAdaptationConfigCase_ == 3) { + osAdaptationConfigCase_ = 0; + osAdaptationConfig_ = null; + } + osAdaptationParametersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Optional. Use to set the parameters relevant for the OS adaptation
        +     * process.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters os_adaptation_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters.Builder + getOsAdaptationParametersBuilder() { + return getOsAdaptationParametersFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Optional. Use to set the parameters relevant for the OS adaptation
        +     * process.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters os_adaptation_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParametersOrBuilder + getOsAdaptationParametersOrBuilder() { + if ((osAdaptationConfigCase_ == 3) && (osAdaptationParametersBuilder_ != null)) { + return osAdaptationParametersBuilder_.getMessageOrBuilder(); + } else { + if (osAdaptationConfigCase_ == 3) { + return (com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters) + osAdaptationConfig_; + } + return com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters + .getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Optional. Use to set the parameters relevant for the OS adaptation
        +     * process.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters os_adaptation_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters, + com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters.Builder, + com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParametersOrBuilder> + getOsAdaptationParametersFieldBuilder() { + if (osAdaptationParametersBuilder_ == null) { + if (!(osAdaptationConfigCase_ == 3)) { + osAdaptationConfig_ = + com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters + .getDefaultInstance(); + } + osAdaptationParametersBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters, + com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters.Builder, + com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParametersOrBuilder>( + (com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters) + osAdaptationConfig_, + getParentForChildren(), + isClean()); + osAdaptationConfig_ = null; + } + osAdaptationConfigCase_ = 3; + onChanged(); + return osAdaptationParametersBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.SkipOsAdaptation, + com.google.cloud.vmmigration.v1.SkipOsAdaptation.Builder, + com.google.cloud.vmmigration.v1.SkipOsAdaptationOrBuilder> + skipOsAdaptationBuilder_; + + /** + * + * + *
        +     * Optional. Use to skip OS adaptation process.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.SkipOsAdaptation skip_os_adaptation = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the skipOsAdaptation field is set. + */ + @java.lang.Override + public boolean hasSkipOsAdaptation() { + return osAdaptationConfigCase_ == 16; + } + + /** + * + * + *
        +     * Optional. Use to skip OS adaptation process.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.SkipOsAdaptation skip_os_adaptation = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The skipOsAdaptation. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.SkipOsAdaptation getSkipOsAdaptation() { + if (skipOsAdaptationBuilder_ == null) { + if (osAdaptationConfigCase_ == 16) { + return (com.google.cloud.vmmigration.v1.SkipOsAdaptation) osAdaptationConfig_; + } + return com.google.cloud.vmmigration.v1.SkipOsAdaptation.getDefaultInstance(); + } else { + if (osAdaptationConfigCase_ == 16) { + return skipOsAdaptationBuilder_.getMessage(); + } + return com.google.cloud.vmmigration.v1.SkipOsAdaptation.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Optional. Use to skip OS adaptation process.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.SkipOsAdaptation skip_os_adaptation = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSkipOsAdaptation(com.google.cloud.vmmigration.v1.SkipOsAdaptation value) { + if (skipOsAdaptationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + osAdaptationConfig_ = value; + onChanged(); + } else { + skipOsAdaptationBuilder_.setMessage(value); + } + osAdaptationConfigCase_ = 16; + return this; + } + + /** + * + * + *
        +     * Optional. Use to skip OS adaptation process.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.SkipOsAdaptation skip_os_adaptation = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSkipOsAdaptation( + com.google.cloud.vmmigration.v1.SkipOsAdaptation.Builder builderForValue) { + if (skipOsAdaptationBuilder_ == null) { + osAdaptationConfig_ = builderForValue.build(); + onChanged(); + } else { + skipOsAdaptationBuilder_.setMessage(builderForValue.build()); + } + osAdaptationConfigCase_ = 16; + return this; + } + + /** + * + * + *
        +     * Optional. Use to skip OS adaptation process.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.SkipOsAdaptation skip_os_adaptation = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSkipOsAdaptation(com.google.cloud.vmmigration.v1.SkipOsAdaptation value) { + if (skipOsAdaptationBuilder_ == null) { + if (osAdaptationConfigCase_ == 16 + && osAdaptationConfig_ + != com.google.cloud.vmmigration.v1.SkipOsAdaptation.getDefaultInstance()) { + osAdaptationConfig_ = + com.google.cloud.vmmigration.v1.SkipOsAdaptation.newBuilder( + (com.google.cloud.vmmigration.v1.SkipOsAdaptation) osAdaptationConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + osAdaptationConfig_ = value; + } + onChanged(); + } else { + if (osAdaptationConfigCase_ == 16) { + skipOsAdaptationBuilder_.mergeFrom(value); + } else { + skipOsAdaptationBuilder_.setMessage(value); + } + } + osAdaptationConfigCase_ = 16; + return this; + } + + /** + * + * + *
        +     * Optional. Use to skip OS adaptation process.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.SkipOsAdaptation skip_os_adaptation = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSkipOsAdaptation() { + if (skipOsAdaptationBuilder_ == null) { + if (osAdaptationConfigCase_ == 16) { + osAdaptationConfigCase_ = 0; + osAdaptationConfig_ = null; + onChanged(); + } + } else { + if (osAdaptationConfigCase_ == 16) { + osAdaptationConfigCase_ = 0; + osAdaptationConfig_ = null; + } + skipOsAdaptationBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Optional. Use to skip OS adaptation process.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.SkipOsAdaptation skip_os_adaptation = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vmmigration.v1.SkipOsAdaptation.Builder getSkipOsAdaptationBuilder() { + return getSkipOsAdaptationFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Optional. Use to skip OS adaptation process.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.SkipOsAdaptation skip_os_adaptation = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.SkipOsAdaptationOrBuilder + getSkipOsAdaptationOrBuilder() { + if ((osAdaptationConfigCase_ == 16) && (skipOsAdaptationBuilder_ != null)) { + return skipOsAdaptationBuilder_.getMessageOrBuilder(); + } else { + if (osAdaptationConfigCase_ == 16) { + return (com.google.cloud.vmmigration.v1.SkipOsAdaptation) osAdaptationConfig_; + } + return com.google.cloud.vmmigration.v1.SkipOsAdaptation.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Optional. Use to skip OS adaptation process.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.SkipOsAdaptation skip_os_adaptation = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.SkipOsAdaptation, + com.google.cloud.vmmigration.v1.SkipOsAdaptation.Builder, + com.google.cloud.vmmigration.v1.SkipOsAdaptationOrBuilder> + getSkipOsAdaptationFieldBuilder() { + if (skipOsAdaptationBuilder_ == null) { + if (!(osAdaptationConfigCase_ == 16)) { + osAdaptationConfig_ = + com.google.cloud.vmmigration.v1.SkipOsAdaptation.getDefaultInstance(); + } + skipOsAdaptationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.SkipOsAdaptation, + com.google.cloud.vmmigration.v1.SkipOsAdaptation.Builder, + com.google.cloud.vmmigration.v1.SkipOsAdaptationOrBuilder>( + (com.google.cloud.vmmigration.v1.SkipOsAdaptation) osAdaptationConfig_, + getParentForChildren(), + isClean()); + osAdaptationConfig_ = null; + } + osAdaptationConfigCase_ = 16; + onChanged(); + return skipOsAdaptationBuilder_; + } + + private java.lang.Object machineImageName_ = ""; + + /** + * + * + *
        +     * Required. The name of the machine image to be created.
        +     * 
        + * + * string machine_image_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The machineImageName. + */ + public java.lang.String getMachineImageName() { + java.lang.Object ref = machineImageName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + machineImageName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Required. The name of the machine image to be created.
        +     * 
        + * + * string machine_image_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for machineImageName. + */ + public com.google.protobuf.ByteString getMachineImageNameBytes() { + java.lang.Object ref = machineImageName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + machineImageName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Required. The name of the machine image to be created.
        +     * 
        + * + * string machine_image_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The machineImageName to set. + * @return This builder for chaining. + */ + public Builder setMachineImageName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + machineImageName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The name of the machine image to be created.
        +     * 
        + * + * string machine_image_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearMachineImageName() { + machineImageName_ = getDefaultInstance().getMachineImageName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The name of the machine image to be created.
        +     * 
        + * + * string machine_image_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for machineImageName to set. + * @return This builder for chaining. + */ + public Builder setMachineImageNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + machineImageName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object targetProject_ = ""; + + /** + * + * + *
        +     * Required. Reference to the TargetProject resource that represents the
        +     * target project in which the imported machine image will be created.
        +     * 
        + * + * + * string target_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The targetProject. + */ + public java.lang.String getTargetProject() { + java.lang.Object ref = targetProject_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetProject_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Required. Reference to the TargetProject resource that represents the
        +     * target project in which the imported machine image will be created.
        +     * 
        + * + * + * string target_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for targetProject. + */ + public com.google.protobuf.ByteString getTargetProjectBytes() { + java.lang.Object ref = targetProject_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetProject_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Required. Reference to the TargetProject resource that represents the
        +     * target project in which the imported machine image will be created.
        +     * 
        + * + * + * string target_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The targetProject to set. + * @return This builder for chaining. + */ + public Builder setTargetProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + targetProject_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. Reference to the TargetProject resource that represents the
        +     * target project in which the imported machine image will be created.
        +     * 
        + * + * + * string target_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTargetProject() { + targetProject_ = getDefaultInstance().getTargetProject(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. Reference to the TargetProject resource that represents the
        +     * target project in which the imported machine image will be created.
        +     * 
        + * + * + * string target_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for targetProject to set. + * @return This builder for chaining. + */ + public Builder setTargetProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetProject_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
        +     * Optional. An optional description of the machine image.
        +     * 
        + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Optional. An optional description of the machine image.
        +     * 
        + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Optional. An optional description of the machine image.
        +     * 
        + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. An optional description of the machine image.
        +     * 
        + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. An optional description of the machine image.
        +     * 
        + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private boolean singleRegionStorage_; + + /** + * + * + *
        +     * Optional. Set to true to set the machine image storageLocations to the
        +     * single region of the import job. When false, the closest multi-region is
        +     * selected.
        +     * 
        + * + * bool single_region_storage = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The singleRegionStorage. + */ + @java.lang.Override + public boolean getSingleRegionStorage() { + return singleRegionStorage_; + } + + /** + * + * + *
        +     * Optional. Set to true to set the machine image storageLocations to the
        +     * single region of the import job. When false, the closest multi-region is
        +     * selected.
        +     * 
        + * + * bool single_region_storage = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The singleRegionStorage to set. + * @return This builder for chaining. + */ + public Builder setSingleRegionStorage(boolean value) { + + singleRegionStorage_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Set to true to set the machine image storageLocations to the
        +     * single region of the import job. When false, the closest multi-region is
        +     * selected.
        +     * 
        + * + * bool single_region_storage = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSingleRegionStorage() { + bitField0_ = (bitField0_ & ~0x00000020); + singleRegionStorage_ = false; + onChanged(); + return this; + } + + private com.google.cloud.vmmigration.v1.Encryption encryption_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.Encryption, + com.google.cloud.vmmigration.v1.Encryption.Builder, + com.google.cloud.vmmigration.v1.EncryptionOrBuilder> + encryptionBuilder_; + + /** + * + * + *
        +     * Immutable. The encryption to apply to the machine image.
        +     * If the Image Import resource has an encryption, this field must be set to
        +     * the same encryption key.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the encryption field is set. + */ + public boolean hasEncryption() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
        +     * Immutable. The encryption to apply to the machine image.
        +     * If the Image Import resource has an encryption, this field must be set to
        +     * the same encryption key.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The encryption. + */ + public com.google.cloud.vmmigration.v1.Encryption getEncryption() { + if (encryptionBuilder_ == null) { + return encryption_ == null + ? com.google.cloud.vmmigration.v1.Encryption.getDefaultInstance() + : encryption_; + } else { + return encryptionBuilder_.getMessage(); + } + } + + /** + * + * + *
        +     * Immutable. The encryption to apply to the machine image.
        +     * If the Image Import resource has an encryption, this field must be set to
        +     * the same encryption key.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setEncryption(com.google.cloud.vmmigration.v1.Encryption value) { + if (encryptionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + encryption_ = value; + } else { + encryptionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Immutable. The encryption to apply to the machine image.
        +     * If the Image Import resource has an encryption, this field must be set to
        +     * the same encryption key.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setEncryption( + com.google.cloud.vmmigration.v1.Encryption.Builder builderForValue) { + if (encryptionBuilder_ == null) { + encryption_ = builderForValue.build(); + } else { + encryptionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Immutable. The encryption to apply to the machine image.
        +     * If the Image Import resource has an encryption, this field must be set to
        +     * the same encryption key.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder mergeEncryption(com.google.cloud.vmmigration.v1.Encryption value) { + if (encryptionBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && encryption_ != null + && encryption_ != com.google.cloud.vmmigration.v1.Encryption.getDefaultInstance()) { + getEncryptionBuilder().mergeFrom(value); + } else { + encryption_ = value; + } + } else { + encryptionBuilder_.mergeFrom(value); + } + if (encryption_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Immutable. The encryption to apply to the machine image.
        +     * If the Image Import resource has an encryption, this field must be set to
        +     * the same encryption key.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder clearEncryption() { + bitField0_ = (bitField0_ & ~0x00000040); + encryption_ = null; + if (encryptionBuilder_ != null) { + encryptionBuilder_.dispose(); + encryptionBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Immutable. The encryption to apply to the machine image.
        +     * If the Image Import resource has an encryption, this field must be set to
        +     * the same encryption key.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.vmmigration.v1.Encryption.Builder getEncryptionBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getEncryptionFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Immutable. The encryption to apply to the machine image.
        +     * If the Image Import resource has an encryption, this field must be set to
        +     * the same encryption key.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.vmmigration.v1.EncryptionOrBuilder getEncryptionOrBuilder() { + if (encryptionBuilder_ != null) { + return encryptionBuilder_.getMessageOrBuilder(); + } else { + return encryption_ == null + ? com.google.cloud.vmmigration.v1.Encryption.getDefaultInstance() + : encryption_; + } + } + + /** + * + * + *
        +     * Immutable. The encryption to apply to the machine image.
        +     * If the Image Import resource has an encryption, this field must be set to
        +     * the same encryption key.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.Encryption, + com.google.cloud.vmmigration.v1.Encryption.Builder, + com.google.cloud.vmmigration.v1.EncryptionOrBuilder> + getEncryptionFieldBuilder() { + if (encryptionBuilder_ == null) { + encryptionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.Encryption, + com.google.cloud.vmmigration.v1.Encryption.Builder, + com.google.cloud.vmmigration.v1.EncryptionOrBuilder>( + getEncryption(), getParentForChildren(), isClean()); + encryption_ = null; + } + return encryptionBuilder_; + } + + private com.google.cloud.vmmigration.v1.MachineImageParametersOverrides + machineImageParametersOverrides_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.MachineImageParametersOverrides, + com.google.cloud.vmmigration.v1.MachineImageParametersOverrides.Builder, + com.google.cloud.vmmigration.v1.MachineImageParametersOverridesOrBuilder> + machineImageParametersOverridesBuilder_; + + /** + * + * + *
        +     * Optional. Parameters overriding decisions based on the source machine image
        +     * configurations.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.MachineImageParametersOverrides machine_image_parameters_overrides = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the machineImageParametersOverrides field is set. + */ + public boolean hasMachineImageParametersOverrides() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
        +     * Optional. Parameters overriding decisions based on the source machine image
        +     * configurations.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.MachineImageParametersOverrides machine_image_parameters_overrides = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The machineImageParametersOverrides. + */ + public com.google.cloud.vmmigration.v1.MachineImageParametersOverrides + getMachineImageParametersOverrides() { + if (machineImageParametersOverridesBuilder_ == null) { + return machineImageParametersOverrides_ == null + ? com.google.cloud.vmmigration.v1.MachineImageParametersOverrides.getDefaultInstance() + : machineImageParametersOverrides_; + } else { + return machineImageParametersOverridesBuilder_.getMessage(); + } + } + + /** + * + * + *
        +     * Optional. Parameters overriding decisions based on the source machine image
        +     * configurations.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.MachineImageParametersOverrides machine_image_parameters_overrides = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMachineImageParametersOverrides( + com.google.cloud.vmmigration.v1.MachineImageParametersOverrides value) { + if (machineImageParametersOverridesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + machineImageParametersOverrides_ = value; + } else { + machineImageParametersOverridesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Parameters overriding decisions based on the source machine image
        +     * configurations.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.MachineImageParametersOverrides machine_image_parameters_overrides = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMachineImageParametersOverrides( + com.google.cloud.vmmigration.v1.MachineImageParametersOverrides.Builder builderForValue) { + if (machineImageParametersOverridesBuilder_ == null) { + machineImageParametersOverrides_ = builderForValue.build(); + } else { + machineImageParametersOverridesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Parameters overriding decisions based on the source machine image
        +     * configurations.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.MachineImageParametersOverrides machine_image_parameters_overrides = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMachineImageParametersOverrides( + com.google.cloud.vmmigration.v1.MachineImageParametersOverrides value) { + if (machineImageParametersOverridesBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && machineImageParametersOverrides_ != null + && machineImageParametersOverrides_ + != com.google.cloud.vmmigration.v1.MachineImageParametersOverrides + .getDefaultInstance()) { + getMachineImageParametersOverridesBuilder().mergeFrom(value); + } else { + machineImageParametersOverrides_ = value; + } + } else { + machineImageParametersOverridesBuilder_.mergeFrom(value); + } + if (machineImageParametersOverrides_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Optional. Parameters overriding decisions based on the source machine image
        +     * configurations.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.MachineImageParametersOverrides machine_image_parameters_overrides = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMachineImageParametersOverrides() { + bitField0_ = (bitField0_ & ~0x00000080); + machineImageParametersOverrides_ = null; + if (machineImageParametersOverridesBuilder_ != null) { + machineImageParametersOverridesBuilder_.dispose(); + machineImageParametersOverridesBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Parameters overriding decisions based on the source machine image
        +     * configurations.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.MachineImageParametersOverrides machine_image_parameters_overrides = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vmmigration.v1.MachineImageParametersOverrides.Builder + getMachineImageParametersOverridesBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getMachineImageParametersOverridesFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Optional. Parameters overriding decisions based on the source machine image
        +     * configurations.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.MachineImageParametersOverrides machine_image_parameters_overrides = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vmmigration.v1.MachineImageParametersOverridesOrBuilder + getMachineImageParametersOverridesOrBuilder() { + if (machineImageParametersOverridesBuilder_ != null) { + return machineImageParametersOverridesBuilder_.getMessageOrBuilder(); + } else { + return machineImageParametersOverrides_ == null + ? com.google.cloud.vmmigration.v1.MachineImageParametersOverrides.getDefaultInstance() + : machineImageParametersOverrides_; + } + } + + /** + * + * + *
        +     * Optional. Parameters overriding decisions based on the source machine image
        +     * configurations.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.MachineImageParametersOverrides machine_image_parameters_overrides = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.MachineImageParametersOverrides, + com.google.cloud.vmmigration.v1.MachineImageParametersOverrides.Builder, + com.google.cloud.vmmigration.v1.MachineImageParametersOverridesOrBuilder> + getMachineImageParametersOverridesFieldBuilder() { + if (machineImageParametersOverridesBuilder_ == null) { + machineImageParametersOverridesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.MachineImageParametersOverrides, + com.google.cloud.vmmigration.v1.MachineImageParametersOverrides.Builder, + com.google.cloud.vmmigration.v1.MachineImageParametersOverridesOrBuilder>( + getMachineImageParametersOverrides(), getParentForChildren(), isClean()); + machineImageParametersOverrides_ = null; + } + return machineImageParametersOverridesBuilder_; + } + + private com.google.cloud.vmmigration.v1.ServiceAccount serviceAccount_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.ServiceAccount, + com.google.cloud.vmmigration.v1.ServiceAccount.Builder, + com.google.cloud.vmmigration.v1.ServiceAccountOrBuilder> + serviceAccountBuilder_; + + /** + * + * + *
        +     * Optional. The service account to assign to the instance created by the
        +     * machine image.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ServiceAccount service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the serviceAccount field is set. + */ + public boolean hasServiceAccount() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
        +     * Optional. The service account to assign to the instance created by the
        +     * machine image.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ServiceAccount service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceAccount. + */ + public com.google.cloud.vmmigration.v1.ServiceAccount getServiceAccount() { + if (serviceAccountBuilder_ == null) { + return serviceAccount_ == null + ? com.google.cloud.vmmigration.v1.ServiceAccount.getDefaultInstance() + : serviceAccount_; + } else { + return serviceAccountBuilder_.getMessage(); + } + } + + /** + * + * + *
        +     * Optional. The service account to assign to the instance created by the
        +     * machine image.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ServiceAccount service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setServiceAccount(com.google.cloud.vmmigration.v1.ServiceAccount value) { + if (serviceAccountBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + serviceAccount_ = value; + } else { + serviceAccountBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The service account to assign to the instance created by the
        +     * machine image.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ServiceAccount service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setServiceAccount( + com.google.cloud.vmmigration.v1.ServiceAccount.Builder builderForValue) { + if (serviceAccountBuilder_ == null) { + serviceAccount_ = builderForValue.build(); + } else { + serviceAccountBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The service account to assign to the instance created by the
        +     * machine image.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ServiceAccount service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeServiceAccount(com.google.cloud.vmmigration.v1.ServiceAccount value) { + if (serviceAccountBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && serviceAccount_ != null + && serviceAccount_ + != com.google.cloud.vmmigration.v1.ServiceAccount.getDefaultInstance()) { + getServiceAccountBuilder().mergeFrom(value); + } else { + serviceAccount_ = value; + } + } else { + serviceAccountBuilder_.mergeFrom(value); + } + if (serviceAccount_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Optional. The service account to assign to the instance created by the
        +     * machine image.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ServiceAccount service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearServiceAccount() { + bitField0_ = (bitField0_ & ~0x00000100); + serviceAccount_ = null; + if (serviceAccountBuilder_ != null) { + serviceAccountBuilder_.dispose(); + serviceAccountBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The service account to assign to the instance created by the
        +     * machine image.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ServiceAccount service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vmmigration.v1.ServiceAccount.Builder getServiceAccountBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return getServiceAccountFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Optional. The service account to assign to the instance created by the
        +     * machine image.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ServiceAccount service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vmmigration.v1.ServiceAccountOrBuilder getServiceAccountOrBuilder() { + if (serviceAccountBuilder_ != null) { + return serviceAccountBuilder_.getMessageOrBuilder(); + } else { + return serviceAccount_ == null + ? com.google.cloud.vmmigration.v1.ServiceAccount.getDefaultInstance() + : serviceAccount_; + } + } + + /** + * + * + *
        +     * Optional. The service account to assign to the instance created by the
        +     * machine image.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ServiceAccount service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.ServiceAccount, + com.google.cloud.vmmigration.v1.ServiceAccount.Builder, + com.google.cloud.vmmigration.v1.ServiceAccountOrBuilder> + getServiceAccountFieldBuilder() { + if (serviceAccountBuilder_ == null) { + serviceAccountBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.ServiceAccount, + com.google.cloud.vmmigration.v1.ServiceAccount.Builder, + com.google.cloud.vmmigration.v1.ServiceAccountOrBuilder>( + getServiceAccount(), getParentForChildren(), isClean()); + serviceAccount_ = null; + } + return serviceAccountBuilder_; + } + + private com.google.protobuf.LazyStringArrayList additionalLicenses_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAdditionalLicensesIsMutable() { + if (!additionalLicenses_.isModifiable()) { + additionalLicenses_ = new com.google.protobuf.LazyStringArrayList(additionalLicenses_); + } + bitField0_ |= 0x00000200; + } + + /** + * + * + *
        +     * Optional. Additional licenses to assign to the instance created by the
        +     * machine image. Format:
        +     * https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +     * Or
        +     * https://www.googleapis.com/compute/beta/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +     * 
        + * + * repeated string additional_licenses = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the additionalLicenses. + */ + public com.google.protobuf.ProtocolStringList getAdditionalLicensesList() { + additionalLicenses_.makeImmutable(); + return additionalLicenses_; + } + + /** + * + * + *
        +     * Optional. Additional licenses to assign to the instance created by the
        +     * machine image. Format:
        +     * https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +     * Or
        +     * https://www.googleapis.com/compute/beta/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +     * 
        + * + * repeated string additional_licenses = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of additionalLicenses. + */ + public int getAdditionalLicensesCount() { + return additionalLicenses_.size(); + } + + /** + * + * + *
        +     * Optional. Additional licenses to assign to the instance created by the
        +     * machine image. Format:
        +     * https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +     * Or
        +     * https://www.googleapis.com/compute/beta/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +     * 
        + * + * repeated string additional_licenses = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The additionalLicenses at the given index. + */ + public java.lang.String getAdditionalLicenses(int index) { + return additionalLicenses_.get(index); + } + + /** + * + * + *
        +     * Optional. Additional licenses to assign to the instance created by the
        +     * machine image. Format:
        +     * https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +     * Or
        +     * https://www.googleapis.com/compute/beta/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +     * 
        + * + * repeated string additional_licenses = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the additionalLicenses at the given index. + */ + public com.google.protobuf.ByteString getAdditionalLicensesBytes(int index) { + return additionalLicenses_.getByteString(index); + } + + /** + * + * + *
        +     * Optional. Additional licenses to assign to the instance created by the
        +     * machine image. Format:
        +     * https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +     * Or
        +     * https://www.googleapis.com/compute/beta/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +     * 
        + * + * repeated string additional_licenses = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The additionalLicenses to set. + * @return This builder for chaining. + */ + public Builder setAdditionalLicenses(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdditionalLicensesIsMutable(); + additionalLicenses_.set(index, value); + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Additional licenses to assign to the instance created by the
        +     * machine image. Format:
        +     * https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +     * Or
        +     * https://www.googleapis.com/compute/beta/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +     * 
        + * + * repeated string additional_licenses = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The additionalLicenses to add. + * @return This builder for chaining. + */ + public Builder addAdditionalLicenses(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdditionalLicensesIsMutable(); + additionalLicenses_.add(value); + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Additional licenses to assign to the instance created by the
        +     * machine image. Format:
        +     * https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +     * Or
        +     * https://www.googleapis.com/compute/beta/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +     * 
        + * + * repeated string additional_licenses = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The additionalLicenses to add. + * @return This builder for chaining. + */ + public Builder addAllAdditionalLicenses(java.lang.Iterable values) { + ensureAdditionalLicensesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, additionalLicenses_); + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Additional licenses to assign to the instance created by the
        +     * machine image. Format:
        +     * https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +     * Or
        +     * https://www.googleapis.com/compute/beta/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +     * 
        + * + * repeated string additional_licenses = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAdditionalLicenses() { + additionalLicenses_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + ; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Additional licenses to assign to the instance created by the
        +     * machine image. Format:
        +     * https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +     * Or
        +     * https://www.googleapis.com/compute/beta/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +     * 
        + * + * repeated string additional_licenses = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the additionalLicenses to add. + * @return This builder for chaining. + */ + public Builder addAdditionalLicensesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAdditionalLicensesIsMutable(); + additionalLicenses_.add(value); + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000400; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
        +     * Optional. The labels to apply to the instance created by the machine image.
        +     * 
        + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
        +     * Optional. The labels to apply to the instance created by the machine image.
        +     * 
        + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
        +     * Optional. The labels to apply to the instance created by the machine image.
        +     * 
        + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
        +     * Optional. The labels to apply to the instance created by the machine image.
        +     * 
        + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000400); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
        +     * Optional. The labels to apply to the instance created by the machine image.
        +     * 
        + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000400; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
        +     * Optional. The labels to apply to the instance created by the machine image.
        +     * 
        + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000400; + return this; + } + + /** + * + * + *
        +     * Optional. The labels to apply to the instance created by the machine image.
        +     * 
        + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000400; + return this; + } + + private com.google.protobuf.LazyStringArrayList tags_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureTagsIsMutable() { + if (!tags_.isModifiable()) { + tags_ = new com.google.protobuf.LazyStringArrayList(tags_); + } + bitField0_ |= 0x00000800; + } + + /** + * + * + *
        +     * Optional. The tags to apply to the instance created by the machine image.
        +     * 
        + * + * repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the tags. + */ + public com.google.protobuf.ProtocolStringList getTagsList() { + tags_.makeImmutable(); + return tags_; + } + + /** + * + * + *
        +     * Optional. The tags to apply to the instance created by the machine image.
        +     * 
        + * + * repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of tags. + */ + public int getTagsCount() { + return tags_.size(); + } + + /** + * + * + *
        +     * Optional. The tags to apply to the instance created by the machine image.
        +     * 
        + * + * repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The tags at the given index. + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + + /** + * + * + *
        +     * Optional. The tags to apply to the instance created by the machine image.
        +     * 
        + * + * repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the tags at the given index. + */ + public com.google.protobuf.ByteString getTagsBytes(int index) { + return tags_.getByteString(index); + } + + /** + * + * + *
        +     * Optional. The tags to apply to the instance created by the machine image.
        +     * 
        + * + * repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The tags to set. + * @return This builder for chaining. + */ + public Builder setTags(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagsIsMutable(); + tags_.set(index, value); + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The tags to apply to the instance created by the machine image.
        +     * 
        + * + * repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The tags to add. + * @return This builder for chaining. + */ + public Builder addTags(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagsIsMutable(); + tags_.add(value); + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The tags to apply to the instance created by the machine image.
        +     * 
        + * + * repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The tags to add. + * @return This builder for chaining. + */ + public Builder addAllTags(java.lang.Iterable values) { + ensureTagsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tags_); + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The tags to apply to the instance created by the machine image.
        +     * 
        + * + * repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTags() { + tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000800); + ; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The tags to apply to the instance created by the machine image.
        +     * 
        + * + * repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the tags to add. + * @return This builder for chaining. + */ + public Builder addTagsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTagsIsMutable(); + tags_.add(value); + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + private com.google.cloud.vmmigration.v1.ShieldedInstanceConfig shieldedInstanceConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.ShieldedInstanceConfig, + com.google.cloud.vmmigration.v1.ShieldedInstanceConfig.Builder, + com.google.cloud.vmmigration.v1.ShieldedInstanceConfigOrBuilder> + shieldedInstanceConfigBuilder_; + + /** + * + * + *
        +     * Optional. Shielded instance configuration.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ShieldedInstanceConfig shielded_instance_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the shieldedInstanceConfig field is set. + */ + public boolean hasShieldedInstanceConfig() { + return ((bitField0_ & 0x00001000) != 0); + } + + /** + * + * + *
        +     * Optional. Shielded instance configuration.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ShieldedInstanceConfig shielded_instance_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The shieldedInstanceConfig. + */ + public com.google.cloud.vmmigration.v1.ShieldedInstanceConfig getShieldedInstanceConfig() { + if (shieldedInstanceConfigBuilder_ == null) { + return shieldedInstanceConfig_ == null + ? com.google.cloud.vmmigration.v1.ShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; + } else { + return shieldedInstanceConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
        +     * Optional. Shielded instance configuration.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ShieldedInstanceConfig shielded_instance_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setShieldedInstanceConfig( + com.google.cloud.vmmigration.v1.ShieldedInstanceConfig value) { + if (shieldedInstanceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + shieldedInstanceConfig_ = value; + } else { + shieldedInstanceConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Shielded instance configuration.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ShieldedInstanceConfig shielded_instance_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setShieldedInstanceConfig( + com.google.cloud.vmmigration.v1.ShieldedInstanceConfig.Builder builderForValue) { + if (shieldedInstanceConfigBuilder_ == null) { + shieldedInstanceConfig_ = builderForValue.build(); + } else { + shieldedInstanceConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Shielded instance configuration.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ShieldedInstanceConfig shielded_instance_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeShieldedInstanceConfig( + com.google.cloud.vmmigration.v1.ShieldedInstanceConfig value) { + if (shieldedInstanceConfigBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0) + && shieldedInstanceConfig_ != null + && shieldedInstanceConfig_ + != com.google.cloud.vmmigration.v1.ShieldedInstanceConfig.getDefaultInstance()) { + getShieldedInstanceConfigBuilder().mergeFrom(value); + } else { + shieldedInstanceConfig_ = value; + } + } else { + shieldedInstanceConfigBuilder_.mergeFrom(value); + } + if (shieldedInstanceConfig_ != null) { + bitField0_ |= 0x00001000; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Optional. Shielded instance configuration.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ShieldedInstanceConfig shielded_instance_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearShieldedInstanceConfig() { + bitField0_ = (bitField0_ & ~0x00001000); + shieldedInstanceConfig_ = null; + if (shieldedInstanceConfigBuilder_ != null) { + shieldedInstanceConfigBuilder_.dispose(); + shieldedInstanceConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Shielded instance configuration.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ShieldedInstanceConfig shielded_instance_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vmmigration.v1.ShieldedInstanceConfig.Builder + getShieldedInstanceConfigBuilder() { + bitField0_ |= 0x00001000; + onChanged(); + return getShieldedInstanceConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Optional. Shielded instance configuration.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ShieldedInstanceConfig shielded_instance_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vmmigration.v1.ShieldedInstanceConfigOrBuilder + getShieldedInstanceConfigOrBuilder() { + if (shieldedInstanceConfigBuilder_ != null) { + return shieldedInstanceConfigBuilder_.getMessageOrBuilder(); + } else { + return shieldedInstanceConfig_ == null + ? com.google.cloud.vmmigration.v1.ShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; + } + } + + /** + * + * + *
        +     * Optional. Shielded instance configuration.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ShieldedInstanceConfig shielded_instance_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.ShieldedInstanceConfig, + com.google.cloud.vmmigration.v1.ShieldedInstanceConfig.Builder, + com.google.cloud.vmmigration.v1.ShieldedInstanceConfigOrBuilder> + getShieldedInstanceConfigFieldBuilder() { + if (shieldedInstanceConfigBuilder_ == null) { + shieldedInstanceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.ShieldedInstanceConfig, + com.google.cloud.vmmigration.v1.ShieldedInstanceConfig.Builder, + com.google.cloud.vmmigration.v1.ShieldedInstanceConfigOrBuilder>( + getShieldedInstanceConfig(), getParentForChildren(), isClean()); + shieldedInstanceConfig_ = null; + } + return shieldedInstanceConfigBuilder_; + } + + private java.util.List networkInterfaces_ = + java.util.Collections.emptyList(); + + private void ensureNetworkInterfacesIsMutable() { + if (!((bitField0_ & 0x00002000) != 0)) { + networkInterfaces_ = + new java.util.ArrayList( + networkInterfaces_); + bitField0_ |= 0x00002000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.NetworkInterface, + com.google.cloud.vmmigration.v1.NetworkInterface.Builder, + com.google.cloud.vmmigration.v1.NetworkInterfaceOrBuilder> + networkInterfacesBuilder_; + + /** + * + * + *
        +     * Optional. The network interfaces to create with the instance created by the
        +     * machine image. Internal and external IP addresses, and network tiers are
        +     * ignored for machine image import.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getNetworkInterfacesList() { + if (networkInterfacesBuilder_ == null) { + return java.util.Collections.unmodifiableList(networkInterfaces_); + } else { + return networkInterfacesBuilder_.getMessageList(); + } + } + + /** + * + * + *
        +     * Optional. The network interfaces to create with the instance created by the
        +     * machine image. Internal and external IP addresses, and network tiers are
        +     * ignored for machine image import.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getNetworkInterfacesCount() { + if (networkInterfacesBuilder_ == null) { + return networkInterfaces_.size(); + } else { + return networkInterfacesBuilder_.getCount(); + } + } + + /** + * + * + *
        +     * Optional. The network interfaces to create with the instance created by the
        +     * machine image. Internal and external IP addresses, and network tiers are
        +     * ignored for machine image import.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vmmigration.v1.NetworkInterface getNetworkInterfaces(int index) { + if (networkInterfacesBuilder_ == null) { + return networkInterfaces_.get(index); + } else { + return networkInterfacesBuilder_.getMessage(index); + } + } + + /** + * + * + *
        +     * Optional. The network interfaces to create with the instance created by the
        +     * machine image. Internal and external IP addresses, and network tiers are
        +     * ignored for machine image import.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setNetworkInterfaces( + int index, com.google.cloud.vmmigration.v1.NetworkInterface value) { + if (networkInterfacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNetworkInterfacesIsMutable(); + networkInterfaces_.set(index, value); + onChanged(); + } else { + networkInterfacesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * Optional. The network interfaces to create with the instance created by the
        +     * machine image. Internal and external IP addresses, and network tiers are
        +     * ignored for machine image import.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setNetworkInterfaces( + int index, com.google.cloud.vmmigration.v1.NetworkInterface.Builder builderForValue) { + if (networkInterfacesBuilder_ == null) { + ensureNetworkInterfacesIsMutable(); + networkInterfaces_.set(index, builderForValue.build()); + onChanged(); + } else { + networkInterfacesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Optional. The network interfaces to create with the instance created by the
        +     * machine image. Internal and external IP addresses, and network tiers are
        +     * ignored for machine image import.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addNetworkInterfaces(com.google.cloud.vmmigration.v1.NetworkInterface value) { + if (networkInterfacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNetworkInterfacesIsMutable(); + networkInterfaces_.add(value); + onChanged(); + } else { + networkInterfacesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
        +     * Optional. The network interfaces to create with the instance created by the
        +     * machine image. Internal and external IP addresses, and network tiers are
        +     * ignored for machine image import.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addNetworkInterfaces( + int index, com.google.cloud.vmmigration.v1.NetworkInterface value) { + if (networkInterfacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNetworkInterfacesIsMutable(); + networkInterfaces_.add(index, value); + onChanged(); + } else { + networkInterfacesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * Optional. The network interfaces to create with the instance created by the
        +     * machine image. Internal and external IP addresses, and network tiers are
        +     * ignored for machine image import.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addNetworkInterfaces( + com.google.cloud.vmmigration.v1.NetworkInterface.Builder builderForValue) { + if (networkInterfacesBuilder_ == null) { + ensureNetworkInterfacesIsMutable(); + networkInterfaces_.add(builderForValue.build()); + onChanged(); + } else { + networkInterfacesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Optional. The network interfaces to create with the instance created by the
        +     * machine image. Internal and external IP addresses, and network tiers are
        +     * ignored for machine image import.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addNetworkInterfaces( + int index, com.google.cloud.vmmigration.v1.NetworkInterface.Builder builderForValue) { + if (networkInterfacesBuilder_ == null) { + ensureNetworkInterfacesIsMutable(); + networkInterfaces_.add(index, builderForValue.build()); + onChanged(); + } else { + networkInterfacesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Optional. The network interfaces to create with the instance created by the
        +     * machine image. Internal and external IP addresses, and network tiers are
        +     * ignored for machine image import.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllNetworkInterfaces( + java.lang.Iterable values) { + if (networkInterfacesBuilder_ == null) { + ensureNetworkInterfacesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, networkInterfaces_); + onChanged(); + } else { + networkInterfacesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
        +     * Optional. The network interfaces to create with the instance created by the
        +     * machine image. Internal and external IP addresses, and network tiers are
        +     * ignored for machine image import.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearNetworkInterfaces() { + if (networkInterfacesBuilder_ == null) { + networkInterfaces_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + } else { + networkInterfacesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Optional. The network interfaces to create with the instance created by the
        +     * machine image. Internal and external IP addresses, and network tiers are
        +     * ignored for machine image import.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeNetworkInterfaces(int index) { + if (networkInterfacesBuilder_ == null) { + ensureNetworkInterfacesIsMutable(); + networkInterfaces_.remove(index); + onChanged(); + } else { + networkInterfacesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
        +     * Optional. The network interfaces to create with the instance created by the
        +     * machine image. Internal and external IP addresses, and network tiers are
        +     * ignored for machine image import.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vmmigration.v1.NetworkInterface.Builder getNetworkInterfacesBuilder( + int index) { + return getNetworkInterfacesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
        +     * Optional. The network interfaces to create with the instance created by the
        +     * machine image. Internal and external IP addresses, and network tiers are
        +     * ignored for machine image import.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vmmigration.v1.NetworkInterfaceOrBuilder getNetworkInterfacesOrBuilder( + int index) { + if (networkInterfacesBuilder_ == null) { + return networkInterfaces_.get(index); + } else { + return networkInterfacesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
        +     * Optional. The network interfaces to create with the instance created by the
        +     * machine image. Internal and external IP addresses, and network tiers are
        +     * ignored for machine image import.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getNetworkInterfacesOrBuilderList() { + if (networkInterfacesBuilder_ != null) { + return networkInterfacesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(networkInterfaces_); + } + } + + /** + * + * + *
        +     * Optional. The network interfaces to create with the instance created by the
        +     * machine image. Internal and external IP addresses, and network tiers are
        +     * ignored for machine image import.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vmmigration.v1.NetworkInterface.Builder addNetworkInterfacesBuilder() { + return getNetworkInterfacesFieldBuilder() + .addBuilder(com.google.cloud.vmmigration.v1.NetworkInterface.getDefaultInstance()); + } + + /** + * + * + *
        +     * Optional. The network interfaces to create with the instance created by the
        +     * machine image. Internal and external IP addresses, and network tiers are
        +     * ignored for machine image import.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vmmigration.v1.NetworkInterface.Builder addNetworkInterfacesBuilder( + int index) { + return getNetworkInterfacesFieldBuilder() + .addBuilder(index, com.google.cloud.vmmigration.v1.NetworkInterface.getDefaultInstance()); + } + + /** + * + * + *
        +     * Optional. The network interfaces to create with the instance created by the
        +     * machine image. Internal and external IP addresses, and network tiers are
        +     * ignored for machine image import.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getNetworkInterfacesBuilderList() { + return getNetworkInterfacesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.NetworkInterface, + com.google.cloud.vmmigration.v1.NetworkInterface.Builder, + com.google.cloud.vmmigration.v1.NetworkInterfaceOrBuilder> + getNetworkInterfacesFieldBuilder() { + if (networkInterfacesBuilder_ == null) { + networkInterfacesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.NetworkInterface, + com.google.cloud.vmmigration.v1.NetworkInterface.Builder, + com.google.cloud.vmmigration.v1.NetworkInterfaceOrBuilder>( + networkInterfaces_, + ((bitField0_ & 0x00002000) != 0), + getParentForChildren(), + isClean()); + networkInterfaces_ = null; + } + return networkInterfacesBuilder_; + } + + @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.vmmigration.v1.MachineImageTargetDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.MachineImageTargetDetails) + private static final com.google.cloud.vmmigration.v1.MachineImageTargetDetails DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.MachineImageTargetDetails(); + } + + public static com.google.cloud.vmmigration.v1.MachineImageTargetDetails getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MachineImageTargetDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.MachineImageTargetDetails getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/MachineImageTargetDetailsOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/MachineImageTargetDetailsOrBuilder.java new file mode 100644 index 000000000000..b87f1607264a --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/MachineImageTargetDetailsOrBuilder.java @@ -0,0 +1,669 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface MachineImageTargetDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.MachineImageTargetDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Optional. Use to set the parameters relevant for the OS adaptation
        +   * process.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters os_adaptation_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the osAdaptationParameters field is set. + */ + boolean hasOsAdaptationParameters(); + + /** + * + * + *
        +   * Optional. Use to set the parameters relevant for the OS adaptation
        +   * process.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters os_adaptation_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The osAdaptationParameters. + */ + com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters getOsAdaptationParameters(); + + /** + * + * + *
        +   * Optional. Use to set the parameters relevant for the OS adaptation
        +   * process.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters os_adaptation_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.vmmigration.v1.ImageImportOsAdaptationParametersOrBuilder + getOsAdaptationParametersOrBuilder(); + + /** + * + * + *
        +   * Optional. Use to skip OS adaptation process.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.SkipOsAdaptation skip_os_adaptation = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the skipOsAdaptation field is set. + */ + boolean hasSkipOsAdaptation(); + + /** + * + * + *
        +   * Optional. Use to skip OS adaptation process.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.SkipOsAdaptation skip_os_adaptation = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The skipOsAdaptation. + */ + com.google.cloud.vmmigration.v1.SkipOsAdaptation getSkipOsAdaptation(); + + /** + * + * + *
        +   * Optional. Use to skip OS adaptation process.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.SkipOsAdaptation skip_os_adaptation = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.vmmigration.v1.SkipOsAdaptationOrBuilder getSkipOsAdaptationOrBuilder(); + + /** + * + * + *
        +   * Required. The name of the machine image to be created.
        +   * 
        + * + * string machine_image_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The machineImageName. + */ + java.lang.String getMachineImageName(); + + /** + * + * + *
        +   * Required. The name of the machine image to be created.
        +   * 
        + * + * string machine_image_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for machineImageName. + */ + com.google.protobuf.ByteString getMachineImageNameBytes(); + + /** + * + * + *
        +   * Required. Reference to the TargetProject resource that represents the
        +   * target project in which the imported machine image will be created.
        +   * 
        + * + * + * string target_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The targetProject. + */ + java.lang.String getTargetProject(); + + /** + * + * + *
        +   * Required. Reference to the TargetProject resource that represents the
        +   * target project in which the imported machine image will be created.
        +   * 
        + * + * + * string target_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for targetProject. + */ + com.google.protobuf.ByteString getTargetProjectBytes(); + + /** + * + * + *
        +   * Optional. An optional description of the machine image.
        +   * 
        + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
        +   * Optional. An optional description of the machine image.
        +   * 
        + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
        +   * Optional. Set to true to set the machine image storageLocations to the
        +   * single region of the import job. When false, the closest multi-region is
        +   * selected.
        +   * 
        + * + * bool single_region_storage = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The singleRegionStorage. + */ + boolean getSingleRegionStorage(); + + /** + * + * + *
        +   * Immutable. The encryption to apply to the machine image.
        +   * If the Image Import resource has an encryption, this field must be set to
        +   * the same encryption key.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the encryption field is set. + */ + boolean hasEncryption(); + + /** + * + * + *
        +   * Immutable. The encryption to apply to the machine image.
        +   * If the Image Import resource has an encryption, this field must be set to
        +   * the same encryption key.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The encryption. + */ + com.google.cloud.vmmigration.v1.Encryption getEncryption(); + + /** + * + * + *
        +   * Immutable. The encryption to apply to the machine image.
        +   * If the Image Import resource has an encryption, this field must be set to
        +   * the same encryption key.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + com.google.cloud.vmmigration.v1.EncryptionOrBuilder getEncryptionOrBuilder(); + + /** + * + * + *
        +   * Optional. Parameters overriding decisions based on the source machine image
        +   * configurations.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.MachineImageParametersOverrides machine_image_parameters_overrides = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the machineImageParametersOverrides field is set. + */ + boolean hasMachineImageParametersOverrides(); + + /** + * + * + *
        +   * Optional. Parameters overriding decisions based on the source machine image
        +   * configurations.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.MachineImageParametersOverrides machine_image_parameters_overrides = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The machineImageParametersOverrides. + */ + com.google.cloud.vmmigration.v1.MachineImageParametersOverrides + getMachineImageParametersOverrides(); + + /** + * + * + *
        +   * Optional. Parameters overriding decisions based on the source machine image
        +   * configurations.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.MachineImageParametersOverrides machine_image_parameters_overrides = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.vmmigration.v1.MachineImageParametersOverridesOrBuilder + getMachineImageParametersOverridesOrBuilder(); + + /** + * + * + *
        +   * Optional. The service account to assign to the instance created by the
        +   * machine image.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ServiceAccount service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the serviceAccount field is set. + */ + boolean hasServiceAccount(); + + /** + * + * + *
        +   * Optional. The service account to assign to the instance created by the
        +   * machine image.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ServiceAccount service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceAccount. + */ + com.google.cloud.vmmigration.v1.ServiceAccount getServiceAccount(); + + /** + * + * + *
        +   * Optional. The service account to assign to the instance created by the
        +   * machine image.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ServiceAccount service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.vmmigration.v1.ServiceAccountOrBuilder getServiceAccountOrBuilder(); + + /** + * + * + *
        +   * Optional. Additional licenses to assign to the instance created by the
        +   * machine image. Format:
        +   * https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +   * Or
        +   * https://www.googleapis.com/compute/beta/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +   * 
        + * + * repeated string additional_licenses = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the additionalLicenses. + */ + java.util.List getAdditionalLicensesList(); + + /** + * + * + *
        +   * Optional. Additional licenses to assign to the instance created by the
        +   * machine image. Format:
        +   * https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +   * Or
        +   * https://www.googleapis.com/compute/beta/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +   * 
        + * + * repeated string additional_licenses = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of additionalLicenses. + */ + int getAdditionalLicensesCount(); + + /** + * + * + *
        +   * Optional. Additional licenses to assign to the instance created by the
        +   * machine image. Format:
        +   * https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +   * Or
        +   * https://www.googleapis.com/compute/beta/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +   * 
        + * + * repeated string additional_licenses = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The additionalLicenses at the given index. + */ + java.lang.String getAdditionalLicenses(int index); + + /** + * + * + *
        +   * Optional. Additional licenses to assign to the instance created by the
        +   * machine image. Format:
        +   * https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +   * Or
        +   * https://www.googleapis.com/compute/beta/projects/PROJECT_ID/global/licenses/LICENSE_NAME
        +   * 
        + * + * repeated string additional_licenses = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the additionalLicenses at the given index. + */ + com.google.protobuf.ByteString getAdditionalLicensesBytes(int index); + + /** + * + * + *
        +   * Optional. The labels to apply to the instance created by the machine image.
        +   * 
        + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + + /** + * + * + *
        +   * Optional. The labels to apply to the instance created by the machine image.
        +   * 
        + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + + /** + * + * + *
        +   * Optional. The labels to apply to the instance created by the machine image.
        +   * 
        + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
        +   * Optional. The labels to apply to the instance created by the machine image.
        +   * 
        + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
        +   * Optional. The labels to apply to the instance created by the machine image.
        +   * 
        + * + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
        +   * Optional. The tags to apply to the instance created by the machine image.
        +   * 
        + * + * repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the tags. + */ + java.util.List getTagsList(); + + /** + * + * + *
        +   * Optional. The tags to apply to the instance created by the machine image.
        +   * 
        + * + * repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of tags. + */ + int getTagsCount(); + + /** + * + * + *
        +   * Optional. The tags to apply to the instance created by the machine image.
        +   * 
        + * + * repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The tags at the given index. + */ + java.lang.String getTags(int index); + + /** + * + * + *
        +   * Optional. The tags to apply to the instance created by the machine image.
        +   * 
        + * + * repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the tags at the given index. + */ + com.google.protobuf.ByteString getTagsBytes(int index); + + /** + * + * + *
        +   * Optional. Shielded instance configuration.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ShieldedInstanceConfig shielded_instance_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the shieldedInstanceConfig field is set. + */ + boolean hasShieldedInstanceConfig(); + + /** + * + * + *
        +   * Optional. Shielded instance configuration.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ShieldedInstanceConfig shielded_instance_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The shieldedInstanceConfig. + */ + com.google.cloud.vmmigration.v1.ShieldedInstanceConfig getShieldedInstanceConfig(); + + /** + * + * + *
        +   * Optional. Shielded instance configuration.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ShieldedInstanceConfig shielded_instance_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.vmmigration.v1.ShieldedInstanceConfigOrBuilder + getShieldedInstanceConfigOrBuilder(); + + /** + * + * + *
        +   * Optional. The network interfaces to create with the instance created by the
        +   * machine image. Internal and external IP addresses, and network tiers are
        +   * ignored for machine image import.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getNetworkInterfacesList(); + + /** + * + * + *
        +   * Optional. The network interfaces to create with the instance created by the
        +   * machine image. Internal and external IP addresses, and network tiers are
        +   * ignored for machine image import.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.vmmigration.v1.NetworkInterface getNetworkInterfaces(int index); + + /** + * + * + *
        +   * Optional. The network interfaces to create with the instance created by the
        +   * machine image. Internal and external IP addresses, and network tiers are
        +   * ignored for machine image import.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getNetworkInterfacesCount(); + + /** + * + * + *
        +   * Optional. The network interfaces to create with the instance created by the
        +   * machine image. Internal and external IP addresses, and network tiers are
        +   * ignored for machine image import.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getNetworkInterfacesOrBuilderList(); + + /** + * + * + *
        +   * Optional. The network interfaces to create with the instance created by the
        +   * machine image. Internal and external IP addresses, and network tiers are
        +   * ignored for machine image import.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.vmmigration.v1.NetworkInterfaceOrBuilder getNetworkInterfacesOrBuilder( + int index); + + com.google.cloud.vmmigration.v1.MachineImageTargetDetails.OsAdaptationConfigCase + getOsAdaptationConfigCase(); +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/MigratingVm.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/MigratingVm.java index 3a8074a3b26b..57ab3b717ec5 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/MigratingVm.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/MigratingVm.java @@ -220,6 +220,29 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * ERROR = 13; */ ERROR(13), + /** + * + * + *
        +     * The migrating VM has passed its expiration date. It might be possible to
        +     * bring it back to "Active" state by updating the TTL field. For more
        +     * information, see the documentation.
        +     * 
        + * + * EXPIRED = 14; + */ + EXPIRED(14), + /** + * + * + *
        +     * The migrating VM's has been finalized and migration resources have been
        +     * removed.
        +     * 
        + * + * FINALIZED_EXPIRED = 17; + */ + FINALIZED_EXPIRED(17), UNRECOGNIZED(-1), ; @@ -361,6 +384,31 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ERROR_VALUE = 13; + /** + * + * + *
        +     * The migrating VM has passed its expiration date. It might be possible to
        +     * bring it back to "Active" state by updating the TTL field. For more
        +     * information, see the documentation.
        +     * 
        + * + * EXPIRED = 14; + */ + public static final int EXPIRED_VALUE = 14; + + /** + * + * + *
        +     * The migrating VM's has been finalized and migration resources have been
        +     * removed.
        +     * 
        + * + * FINALIZED_EXPIRED = 17; + */ + public static final int FINALIZED_EXPIRED_VALUE = 17; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -409,6 +457,10 @@ public static State forNumber(int value) { return FINALIZED; case 13: return ERROR; + case 14: + return EXPIRED; + case 17: + return FINALIZED_EXPIRED; default: return null; } @@ -462,126 +514,1147 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.vmmigration.v1.MigratingVm.State) } - private int bitField0_; - private int targetVmDefaultsCase_ = 0; + public interface ExpirationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.MigratingVm.Expiration) + com.google.protobuf.MessageOrBuilder { - @SuppressWarnings("serial") - private java.lang.Object targetVmDefaults_; + /** + * + * + *
        +     * Output only. Timestamp of when this resource is considered expired.
        +     * 
        + * + * + * .google.protobuf.Timestamp expire_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the expireTime field is set. + */ + boolean hasExpireTime(); - public enum TargetVmDefaultsCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - COMPUTE_ENGINE_TARGET_DEFAULTS(26), - TARGETVMDEFAULTS_NOT_SET(0); - private final int value; + /** + * + * + *
        +     * Output only. Timestamp of when this resource is considered expired.
        +     * 
        + * + * + * .google.protobuf.Timestamp expire_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The expireTime. + */ + com.google.protobuf.Timestamp getExpireTime(); - private TargetVmDefaultsCase(int value) { - this.value = value; - } + /** + * + * + *
        +     * Output only. Timestamp of when this resource is considered expired.
        +     * 
        + * + * + * .google.protobuf.Timestamp expire_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); /** - * @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. The number of times expiration was extended.
        +     * 
        + * + * int32 extension_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The extensionCount. */ - @java.lang.Deprecated - public static TargetVmDefaultsCase valueOf(int value) { - return forNumber(value); + int getExtensionCount(); + + /** + * + * + *
        +     * Output only. Describes whether the expiration can be extended.
        +     * 
        + * + * bool extendable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The extendable. + */ + boolean getExtendable(); + } + + /** + * + * + *
        +   * Expiration holds information about the expiration of a MigratingVm.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.MigratingVm.Expiration} + */ + public static final class Expiration extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.MigratingVm.Expiration) + ExpirationOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Expiration.newBuilder() to construct. + private Expiration(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); } - public static TargetVmDefaultsCase forNumber(int value) { - switch (value) { - case 26: - return COMPUTE_ENGINE_TARGET_DEFAULTS; - case 0: - return TARGETVMDEFAULTS_NOT_SET; - default: - return null; - } + private Expiration() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Expiration(); } - public int getNumber() { - return this.value; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_MigratingVm_Expiration_descriptor; } - }; - public TargetVmDefaultsCase getTargetVmDefaultsCase() { - return TargetVmDefaultsCase.forNumber(targetVmDefaultsCase_); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_MigratingVm_Expiration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.MigratingVm.Expiration.class, + com.google.cloud.vmmigration.v1.MigratingVm.Expiration.Builder.class); + } - private int sourceVmDetailsCase_ = 0; + private int bitField0_; + public static final int EXPIRE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp expireTime_; - @SuppressWarnings("serial") - private java.lang.Object sourceVmDetails_; + /** + * + * + *
        +     * Output only. Timestamp of when this resource is considered expired.
        +     * 
        + * + * + * .google.protobuf.Timestamp expire_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the expireTime field is set. + */ + @java.lang.Override + public boolean hasExpireTime() { + return ((bitField0_ & 0x00000001) != 0); + } - public enum SourceVmDetailsCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - AWS_SOURCE_VM_DETAILS(29), - SOURCEVMDETAILS_NOT_SET(0); - private final int value; + /** + * + * + *
        +     * Output only. Timestamp of when this resource is considered expired.
        +     * 
        + * + * + * .google.protobuf.Timestamp expire_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The expireTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getExpireTime() { + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + } - private SourceVmDetailsCase(int value) { - this.value = value; + /** + * + * + *
        +     * Output only. Timestamp of when this resource is considered expired.
        +     * 
        + * + * + * .google.protobuf.Timestamp expire_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } + public static final int EXTENSION_COUNT_FIELD_NUMBER = 2; + private int extensionCount_ = 0; + /** - * @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. The number of times expiration was extended.
        +     * 
        + * + * int32 extension_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The extensionCount. */ - @java.lang.Deprecated - public static SourceVmDetailsCase valueOf(int value) { - return forNumber(value); + @java.lang.Override + public int getExtensionCount() { + return extensionCount_; } - public static SourceVmDetailsCase forNumber(int value) { - switch (value) { - case 29: - return AWS_SOURCE_VM_DETAILS; - case 0: - return SOURCEVMDETAILS_NOT_SET; - default: - return null; - } + public static final int EXTENDABLE_FIELD_NUMBER = 3; + private boolean extendable_ = false; + + /** + * + * + *
        +     * Output only. Describes whether the expiration can be extended.
        +     * 
        + * + * bool extendable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The extendable. + */ + @java.lang.Override + public boolean getExtendable() { + return extendable_; } - public int getNumber() { - return this.value; + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } - }; - public SourceVmDetailsCase getSourceVmDetailsCase() { - return SourceVmDetailsCase.forNumber(sourceVmDetailsCase_); - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getExpireTime()); + } + if (extensionCount_ != 0) { + output.writeInt32(2, extensionCount_); + } + if (extendable_ != false) { + output.writeBool(3, extendable_); + } + getUnknownFields().writeTo(output); + } - public static final int COMPUTE_ENGINE_TARGET_DEFAULTS_FIELD_NUMBER = 26; + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - /** - * - * - *
        -   * Details of the target VM in Compute Engine.
        -   * 
        - * - * - * .google.cloud.vmmigration.v1.ComputeEngineTargetDefaults compute_engine_target_defaults = 26; - * - * - * @return Whether the computeEngineTargetDefaults field is set. - */ - @java.lang.Override - public boolean hasComputeEngineTargetDefaults() { - return targetVmDefaultsCase_ == 26; - } + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getExpireTime()); + } + if (extensionCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, extensionCount_); + } + if (extendable_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, extendable_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - /** - * - * - *
        -   * Details of the target VM in Compute Engine.
        +    @java.lang.Override
        +    public boolean equals(final java.lang.Object obj) {
        +      if (obj == this) {
        +        return true;
        +      }
        +      if (!(obj instanceof com.google.cloud.vmmigration.v1.MigratingVm.Expiration)) {
        +        return super.equals(obj);
        +      }
        +      com.google.cloud.vmmigration.v1.MigratingVm.Expiration other =
        +          (com.google.cloud.vmmigration.v1.MigratingVm.Expiration) obj;
        +
        +      if (hasExpireTime() != other.hasExpireTime()) return false;
        +      if (hasExpireTime()) {
        +        if (!getExpireTime().equals(other.getExpireTime())) return false;
        +      }
        +      if (getExtensionCount() != other.getExtensionCount()) return false;
        +      if (getExtendable() != other.getExtendable()) 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 (hasExpireTime()) {
        +        hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER;
        +        hash = (53 * hash) + getExpireTime().hashCode();
        +      }
        +      hash = (37 * hash) + EXTENSION_COUNT_FIELD_NUMBER;
        +      hash = (53 * hash) + getExtensionCount();
        +      hash = (37 * hash) + EXTENDABLE_FIELD_NUMBER;
        +      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getExtendable());
        +      hash = (29 * hash) + getUnknownFields().hashCode();
        +      memoizedHashCode = hash;
        +      return hash;
        +    }
        +
        +    public static com.google.cloud.vmmigration.v1.MigratingVm.Expiration parseFrom(
        +        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
        +      return PARSER.parseFrom(data);
        +    }
        +
        +    public static com.google.cloud.vmmigration.v1.MigratingVm.Expiration 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.vmmigration.v1.MigratingVm.Expiration parseFrom(
        +        com.google.protobuf.ByteString data)
        +        throws com.google.protobuf.InvalidProtocolBufferException {
        +      return PARSER.parseFrom(data);
        +    }
        +
        +    public static com.google.cloud.vmmigration.v1.MigratingVm.Expiration parseFrom(
        +        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.vmmigration.v1.MigratingVm.Expiration parseFrom(byte[] data)
        +        throws com.google.protobuf.InvalidProtocolBufferException {
        +      return PARSER.parseFrom(data);
        +    }
        +
        +    public static com.google.cloud.vmmigration.v1.MigratingVm.Expiration parseFrom(
        +        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        +        throws com.google.protobuf.InvalidProtocolBufferException {
        +      return PARSER.parseFrom(data, extensionRegistry);
        +    }
        +
        +    public static com.google.cloud.vmmigration.v1.MigratingVm.Expiration parseFrom(
        +        java.io.InputStream input) throws java.io.IOException {
        +      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
        +    }
        +
        +    public static com.google.cloud.vmmigration.v1.MigratingVm.Expiration 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.vmmigration.v1.MigratingVm.Expiration parseDelimitedFrom(
        +        java.io.InputStream input) throws java.io.IOException {
        +      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
        +    }
        +
        +    public static com.google.cloud.vmmigration.v1.MigratingVm.Expiration 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.vmmigration.v1.MigratingVm.Expiration parseFrom(
        +        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
        +      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
        +    }
        +
        +    public static com.google.cloud.vmmigration.v1.MigratingVm.Expiration 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.vmmigration.v1.MigratingVm.Expiration prototype) {
        +      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
        +    }
        +
        +    @java.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;
        +    }
        +
        +    /**
        +     *
        +     *
        +     * 
        +     * Expiration holds information about the expiration of a MigratingVm.
        +     * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.MigratingVm.Expiration} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.MigratingVm.Expiration) + com.google.cloud.vmmigration.v1.MigratingVm.ExpirationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_MigratingVm_Expiration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_MigratingVm_Expiration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.MigratingVm.Expiration.class, + com.google.cloud.vmmigration.v1.MigratingVm.Expiration.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.MigratingVm.Expiration.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getExpireTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + expireTime_ = null; + if (expireTimeBuilder_ != null) { + expireTimeBuilder_.dispose(); + expireTimeBuilder_ = null; + } + extensionCount_ = 0; + extendable_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_MigratingVm_Expiration_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.MigratingVm.Expiration getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.MigratingVm.Expiration.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.MigratingVm.Expiration build() { + com.google.cloud.vmmigration.v1.MigratingVm.Expiration result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.MigratingVm.Expiration buildPartial() { + com.google.cloud.vmmigration.v1.MigratingVm.Expiration result = + new com.google.cloud.vmmigration.v1.MigratingVm.Expiration(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vmmigration.v1.MigratingVm.Expiration result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.expireTime_ = + expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.extensionCount_ = extensionCount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.extendable_ = extendable_; + } + 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.vmmigration.v1.MigratingVm.Expiration) { + return mergeFrom((com.google.cloud.vmmigration.v1.MigratingVm.Expiration) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.MigratingVm.Expiration other) { + if (other == com.google.cloud.vmmigration.v1.MigratingVm.Expiration.getDefaultInstance()) + return this; + if (other.hasExpireTime()) { + mergeExpireTime(other.getExpireTime()); + } + if (other.getExtensionCount() != 0) { + setExtensionCount(other.getExtensionCount()); + } + if (other.getExtendable() != false) { + setExtendable(other.getExtendable()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + extensionCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + extendable_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.Timestamp expireTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + expireTimeBuilder_; + + /** + * + * + *
        +       * Output only. Timestamp of when this resource is considered expired.
        +       * 
        + * + * + * .google.protobuf.Timestamp expire_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the expireTime field is set. + */ + public boolean hasExpireTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
        +       * Output only. Timestamp of when this resource is considered expired.
        +       * 
        + * + * + * .google.protobuf.Timestamp expire_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The expireTime. + */ + public com.google.protobuf.Timestamp getExpireTime() { + if (expireTimeBuilder_ == null) { + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; + } else { + return expireTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
        +       * Output only. Timestamp of when this resource is considered expired.
        +       * 
        + * + * + * .google.protobuf.Timestamp expire_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setExpireTime(com.google.protobuf.Timestamp value) { + if (expireTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expireTime_ = value; + } else { + expireTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +       * Output only. Timestamp of when this resource is considered expired.
        +       * 
        + * + * + * .google.protobuf.Timestamp expire_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (expireTimeBuilder_ == null) { + expireTime_ = builderForValue.build(); + } else { + expireTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +       * Output only. Timestamp of when this resource is considered expired.
        +       * 
        + * + * + * .google.protobuf.Timestamp expire_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { + if (expireTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && expireTime_ != null + && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getExpireTimeBuilder().mergeFrom(value); + } else { + expireTime_ = value; + } + } else { + expireTimeBuilder_.mergeFrom(value); + } + if (expireTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
        +       * Output only. Timestamp of when this resource is considered expired.
        +       * 
        + * + * + * .google.protobuf.Timestamp expire_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearExpireTime() { + bitField0_ = (bitField0_ & ~0x00000001); + expireTime_ = null; + if (expireTimeBuilder_ != null) { + expireTimeBuilder_.dispose(); + expireTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +       * Output only. Timestamp of when this resource is considered expired.
        +       * 
        + * + * + * .google.protobuf.Timestamp expire_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getExpireTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +       * Output only. Timestamp of when this resource is considered expired.
        +       * 
        + * + * + * .google.protobuf.Timestamp expire_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { + if (expireTimeBuilder_ != null) { + return expireTimeBuilder_.getMessageOrBuilder(); + } else { + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; + } + } + + /** + * + * + *
        +       * Output only. Timestamp of when this resource is considered expired.
        +       * 
        + * + * + * .google.protobuf.Timestamp expire_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getExpireTimeFieldBuilder() { + if (expireTimeBuilder_ == null) { + expireTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), getParentForChildren(), isClean()); + expireTime_ = null; + } + return expireTimeBuilder_; + } + + private int extensionCount_; + + /** + * + * + *
        +       * Output only. The number of times expiration was extended.
        +       * 
        + * + * int32 extension_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The extensionCount. + */ + @java.lang.Override + public int getExtensionCount() { + return extensionCount_; + } + + /** + * + * + *
        +       * Output only. The number of times expiration was extended.
        +       * 
        + * + * int32 extension_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The extensionCount to set. + * @return This builder for chaining. + */ + public Builder setExtensionCount(int value) { + + extensionCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +       * Output only. The number of times expiration was extended.
        +       * 
        + * + * int32 extension_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearExtensionCount() { + bitField0_ = (bitField0_ & ~0x00000002); + extensionCount_ = 0; + onChanged(); + return this; + } + + private boolean extendable_; + + /** + * + * + *
        +       * Output only. Describes whether the expiration can be extended.
        +       * 
        + * + * bool extendable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The extendable. + */ + @java.lang.Override + public boolean getExtendable() { + return extendable_; + } + + /** + * + * + *
        +       * Output only. Describes whether the expiration can be extended.
        +       * 
        + * + * bool extendable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The extendable to set. + * @return This builder for chaining. + */ + public Builder setExtendable(boolean value) { + + extendable_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +       * Output only. Describes whether the expiration can be extended.
        +       * 
        + * + * bool extendable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearExtendable() { + bitField0_ = (bitField0_ & ~0x00000004); + extendable_ = 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.vmmigration.v1.MigratingVm.Expiration) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.MigratingVm.Expiration) + private static final com.google.cloud.vmmigration.v1.MigratingVm.Expiration DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.MigratingVm.Expiration(); + } + + public static com.google.cloud.vmmigration.v1.MigratingVm.Expiration getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Expiration parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.MigratingVm.Expiration getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int targetVmDefaultsCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object targetVmDefaults_; + + public enum TargetVmDefaultsCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + COMPUTE_ENGINE_TARGET_DEFAULTS(26), + COMPUTE_ENGINE_DISKS_TARGET_DEFAULTS(34), + TARGETVMDEFAULTS_NOT_SET(0); + private final int value; + + private TargetVmDefaultsCase(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 TargetVmDefaultsCase valueOf(int value) { + return forNumber(value); + } + + public static TargetVmDefaultsCase forNumber(int value) { + switch (value) { + case 26: + return COMPUTE_ENGINE_TARGET_DEFAULTS; + case 34: + return COMPUTE_ENGINE_DISKS_TARGET_DEFAULTS; + case 0: + return TARGETVMDEFAULTS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public TargetVmDefaultsCase getTargetVmDefaultsCase() { + return TargetVmDefaultsCase.forNumber(targetVmDefaultsCase_); + } + + private int sourceVmDetailsCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object sourceVmDetails_; + + public enum SourceVmDetailsCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + VMWARE_SOURCE_VM_DETAILS(28), + AWS_SOURCE_VM_DETAILS(29), + AZURE_SOURCE_VM_DETAILS(30), + SOURCEVMDETAILS_NOT_SET(0); + private final int value; + + private SourceVmDetailsCase(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 SourceVmDetailsCase valueOf(int value) { + return forNumber(value); + } + + public static SourceVmDetailsCase forNumber(int value) { + switch (value) { + case 28: + return VMWARE_SOURCE_VM_DETAILS; + case 29: + return AWS_SOURCE_VM_DETAILS; + case 30: + return AZURE_SOURCE_VM_DETAILS; + case 0: + return SOURCEVMDETAILS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SourceVmDetailsCase getSourceVmDetailsCase() { + return SourceVmDetailsCase.forNumber(sourceVmDetailsCase_); + } + + public static final int COMPUTE_ENGINE_TARGET_DEFAULTS_FIELD_NUMBER = 26; + + /** + * + * + *
        +   * Details of the target VM in Compute Engine.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineTargetDefaults compute_engine_target_defaults = 26; + * + * + * @return Whether the computeEngineTargetDefaults field is set. + */ + @java.lang.Override + public boolean hasComputeEngineTargetDefaults() { + return targetVmDefaultsCase_ == 26; + } + + /** + * + * + *
        +   * Details of the target VM in Compute Engine.
            * 
        * * @@ -611,73 +1684,257 @@ public boolean hasComputeEngineTargetDefaults() { * */ @java.lang.Override - public com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaultsOrBuilder - getComputeEngineTargetDefaultsOrBuilder() { - if (targetVmDefaultsCase_ == 26) { - return (com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults) targetVmDefaults_; + public com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaultsOrBuilder + getComputeEngineTargetDefaultsOrBuilder() { + if (targetVmDefaultsCase_ == 26) { + return (com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults) targetVmDefaults_; + } + return com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.getDefaultInstance(); + } + + public static final int COMPUTE_ENGINE_DISKS_TARGET_DEFAULTS_FIELD_NUMBER = 34; + + /** + * + * + *
        +   * Details of the target Persistent Disks in Compute Engine.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults compute_engine_disks_target_defaults = 34; + * + * + * @return Whether the computeEngineDisksTargetDefaults field is set. + */ + @java.lang.Override + public boolean hasComputeEngineDisksTargetDefaults() { + return targetVmDefaultsCase_ == 34; + } + + /** + * + * + *
        +   * Details of the target Persistent Disks in Compute Engine.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults compute_engine_disks_target_defaults = 34; + * + * + * @return The computeEngineDisksTargetDefaults. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults + getComputeEngineDisksTargetDefaults() { + if (targetVmDefaultsCase_ == 34) { + return (com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults) targetVmDefaults_; + } + return com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults.getDefaultInstance(); + } + + /** + * + * + *
        +   * Details of the target Persistent Disks in Compute Engine.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults compute_engine_disks_target_defaults = 34; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaultsOrBuilder + getComputeEngineDisksTargetDefaultsOrBuilder() { + if (targetVmDefaultsCase_ == 34) { + return (com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults) targetVmDefaults_; + } + return com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults.getDefaultInstance(); + } + + public static final int VMWARE_SOURCE_VM_DETAILS_FIELD_NUMBER = 28; + + /** + * + * + *
        +   * Output only. Details of the VM from a Vmware source.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.VmwareSourceVmDetails vmware_source_vm_details = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the vmwareSourceVmDetails field is set. + */ + @java.lang.Override + public boolean hasVmwareSourceVmDetails() { + return sourceVmDetailsCase_ == 28; + } + + /** + * + * + *
        +   * Output only. Details of the VM from a Vmware source.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.VmwareSourceVmDetails vmware_source_vm_details = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The vmwareSourceVmDetails. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.VmwareSourceVmDetails getVmwareSourceVmDetails() { + if (sourceVmDetailsCase_ == 28) { + return (com.google.cloud.vmmigration.v1.VmwareSourceVmDetails) sourceVmDetails_; + } + return com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.getDefaultInstance(); + } + + /** + * + * + *
        +   * Output only. Details of the VM from a Vmware source.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.VmwareSourceVmDetails vmware_source_vm_details = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.VmwareSourceVmDetailsOrBuilder + getVmwareSourceVmDetailsOrBuilder() { + if (sourceVmDetailsCase_ == 28) { + return (com.google.cloud.vmmigration.v1.VmwareSourceVmDetails) sourceVmDetails_; + } + return com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.getDefaultInstance(); + } + + public static final int AWS_SOURCE_VM_DETAILS_FIELD_NUMBER = 29; + + /** + * + * + *
        +   * Output only. Details of the VM from an AWS source.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.AwsSourceVmDetails aws_source_vm_details = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the awsSourceVmDetails field is set. + */ + @java.lang.Override + public boolean hasAwsSourceVmDetails() { + return sourceVmDetailsCase_ == 29; + } + + /** + * + * + *
        +   * Output only. Details of the VM from an AWS source.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.AwsSourceVmDetails aws_source_vm_details = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The awsSourceVmDetails. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.AwsSourceVmDetails getAwsSourceVmDetails() { + if (sourceVmDetailsCase_ == 29) { + return (com.google.cloud.vmmigration.v1.AwsSourceVmDetails) sourceVmDetails_; + } + return com.google.cloud.vmmigration.v1.AwsSourceVmDetails.getDefaultInstance(); + } + + /** + * + * + *
        +   * Output only. Details of the VM from an AWS source.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.AwsSourceVmDetails aws_source_vm_details = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.AwsSourceVmDetailsOrBuilder + getAwsSourceVmDetailsOrBuilder() { + if (sourceVmDetailsCase_ == 29) { + return (com.google.cloud.vmmigration.v1.AwsSourceVmDetails) sourceVmDetails_; } - return com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.getDefaultInstance(); + return com.google.cloud.vmmigration.v1.AwsSourceVmDetails.getDefaultInstance(); } - public static final int AWS_SOURCE_VM_DETAILS_FIELD_NUMBER = 29; + public static final int AZURE_SOURCE_VM_DETAILS_FIELD_NUMBER = 30; /** * * *
        -   * Output only. Details of the VM from an AWS source.
        +   * Output only. Details of the VM from an Azure source.
            * 
        * * - * .google.cloud.vmmigration.v1.AwsSourceVmDetails aws_source_vm_details = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.vmmigration.v1.AzureSourceVmDetails azure_source_vm_details = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return Whether the awsSourceVmDetails field is set. + * @return Whether the azureSourceVmDetails field is set. */ @java.lang.Override - public boolean hasAwsSourceVmDetails() { - return sourceVmDetailsCase_ == 29; + public boolean hasAzureSourceVmDetails() { + return sourceVmDetailsCase_ == 30; } /** * * *
        -   * Output only. Details of the VM from an AWS source.
        +   * Output only. Details of the VM from an Azure source.
            * 
        * * - * .google.cloud.vmmigration.v1.AwsSourceVmDetails aws_source_vm_details = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.vmmigration.v1.AzureSourceVmDetails azure_source_vm_details = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return The awsSourceVmDetails. + * @return The azureSourceVmDetails. */ @java.lang.Override - public com.google.cloud.vmmigration.v1.AwsSourceVmDetails getAwsSourceVmDetails() { - if (sourceVmDetailsCase_ == 29) { - return (com.google.cloud.vmmigration.v1.AwsSourceVmDetails) sourceVmDetails_; + public com.google.cloud.vmmigration.v1.AzureSourceVmDetails getAzureSourceVmDetails() { + if (sourceVmDetailsCase_ == 30) { + return (com.google.cloud.vmmigration.v1.AzureSourceVmDetails) sourceVmDetails_; } - return com.google.cloud.vmmigration.v1.AwsSourceVmDetails.getDefaultInstance(); + return com.google.cloud.vmmigration.v1.AzureSourceVmDetails.getDefaultInstance(); } /** * * *
        -   * Output only. Details of the VM from an AWS source.
        +   * Output only. Details of the VM from an Azure source.
            * 
        * * - * .google.cloud.vmmigration.v1.AwsSourceVmDetails aws_source_vm_details = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.vmmigration.v1.AzureSourceVmDetails azure_source_vm_details = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override - public com.google.cloud.vmmigration.v1.AwsSourceVmDetailsOrBuilder - getAwsSourceVmDetailsOrBuilder() { - if (sourceVmDetailsCase_ == 29) { - return (com.google.cloud.vmmigration.v1.AwsSourceVmDetails) sourceVmDetails_; + public com.google.cloud.vmmigration.v1.AzureSourceVmDetailsOrBuilder + getAzureSourceVmDetailsOrBuilder() { + if (sourceVmDetailsCase_ == 30) { + return (com.google.cloud.vmmigration.v1.AzureSourceVmDetails) sourceVmDetails_; } - return com.google.cloud.vmmigration.v1.AwsSourceVmDetails.getDefaultInstance(); + return com.google.cloud.vmmigration.v1.AzureSourceVmDetails.getDefaultInstance(); } public static final int NAME_FIELD_NUMBER = 1; @@ -1218,8 +2475,7 @@ public com.google.protobuf.TimestampOrBuilder getStateTimeOrBuilder() { * * *
        -   * Output only. The percentage progress of the current running replication
        -   * cycle.
        +   * Output only. Details of the current running replication cycle.
            * 
        * * @@ -1237,8 +2493,7 @@ public boolean hasCurrentSyncInfo() { * * *
        -   * Output only. The percentage progress of the current running replication
        -   * cycle.
        +   * Output only. Details of the current running replication cycle.
            * 
        * * @@ -1258,8 +2513,7 @@ public com.google.cloud.vmmigration.v1.ReplicationCycle getCurrentSyncInfo() { * * *
        -   * Output only. The percentage progress of the current running replication
        -   * cycle.
        +   * Output only. Details of the current running replication cycle.
            * 
        * * @@ -1273,6 +2527,72 @@ public com.google.cloud.vmmigration.v1.ReplicationCycleOrBuilder getCurrentSyncI : currentSyncInfo_; } + public static final int LAST_REPLICATION_CYCLE_FIELD_NUMBER = 32; + private com.google.cloud.vmmigration.v1.ReplicationCycle lastReplicationCycle_; + + /** + * + * + *
        +   * Output only. Details of the last replication cycle. This will be updated
        +   * whenever a replication cycle is finished and is not to be confused with
        +   * last_sync which is only updated on successful replication cycles.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ReplicationCycle last_replication_cycle = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the lastReplicationCycle field is set. + */ + @java.lang.Override + public boolean hasLastReplicationCycle() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
        +   * Output only. Details of the last replication cycle. This will be updated
        +   * whenever a replication cycle is finished and is not to be confused with
        +   * last_sync which is only updated on successful replication cycles.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ReplicationCycle last_replication_cycle = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lastReplicationCycle. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ReplicationCycle getLastReplicationCycle() { + return lastReplicationCycle_ == null + ? com.google.cloud.vmmigration.v1.ReplicationCycle.getDefaultInstance() + : lastReplicationCycle_; + } + + /** + * + * + *
        +   * Output only. Details of the last replication cycle. This will be updated
        +   * whenever a replication cycle is finished and is not to be confused with
        +   * last_sync which is only updated on successful replication cycles.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ReplicationCycle last_replication_cycle = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ReplicationCycleOrBuilder + getLastReplicationCycleOrBuilder() { + return lastReplicationCycle_ == null + ? com.google.cloud.vmmigration.v1.ReplicationCycle.getDefaultInstance() + : lastReplicationCycle_; + } + public static final int GROUP_FIELD_NUMBER = 15; @SuppressWarnings("serial") @@ -1564,7 +2884,7 @@ public com.google.cloud.vmmigration.v1.CloneJobOrBuilder getRecentCloneJobsOrBui */ @java.lang.Override public boolean hasError() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -1706,6 +3026,130 @@ public com.google.cloud.vmmigration.v1.CutoverJobOrBuilder getRecentCutoverJobsO return recentCutoverJobs_.get(index); } + public static final int CUTOVER_FORECAST_FIELD_NUMBER = 33; + private com.google.cloud.vmmigration.v1.CutoverForecast cutoverForecast_; + + /** + * + * + *
        +   * Output only. Provides details of future CutoverJobs of a MigratingVm.
        +   * Set to empty when cutover forecast is unavailable.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.CutoverForecast cutover_forecast = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the cutoverForecast field is set. + */ + @java.lang.Override + public boolean hasCutoverForecast() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
        +   * Output only. Provides details of future CutoverJobs of a MigratingVm.
        +   * Set to empty when cutover forecast is unavailable.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.CutoverForecast cutover_forecast = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The cutoverForecast. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.CutoverForecast getCutoverForecast() { + return cutoverForecast_ == null + ? com.google.cloud.vmmigration.v1.CutoverForecast.getDefaultInstance() + : cutoverForecast_; + } + + /** + * + * + *
        +   * Output only. Provides details of future CutoverJobs of a MigratingVm.
        +   * Set to empty when cutover forecast is unavailable.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.CutoverForecast cutover_forecast = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.CutoverForecastOrBuilder getCutoverForecastOrBuilder() { + return cutoverForecast_ == null + ? com.google.cloud.vmmigration.v1.CutoverForecast.getDefaultInstance() + : cutoverForecast_; + } + + public static final int EXPIRATION_FIELD_NUMBER = 37; + private com.google.cloud.vmmigration.v1.MigratingVm.Expiration expiration_; + + /** + * + * + *
        +   * Output only. Provides details about the expiration state of the migrating
        +   * VM.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.MigratingVm.Expiration expiration = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the expiration field is set. + */ + @java.lang.Override + public boolean hasExpiration() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
        +   * Output only. Provides details about the expiration state of the migrating
        +   * VM.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.MigratingVm.Expiration expiration = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The expiration. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.MigratingVm.Expiration getExpiration() { + return expiration_ == null + ? com.google.cloud.vmmigration.v1.MigratingVm.Expiration.getDefaultInstance() + : expiration_; + } + + /** + * + * + *
        +   * Output only. Provides details about the expiration state of the migrating
        +   * VM.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.MigratingVm.Expiration expiration = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.MigratingVm.ExpirationOrBuilder getExpirationOrBuilder() { + return expiration_ == null + ? com.google.cloud.vmmigration.v1.MigratingVm.Expiration.getDefaultInstance() + : expiration_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1755,7 +3199,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 18, displayName_); } - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { output.writeMessage(19, getError()); } for (int i = 0; i < recentCutoverJobs_.size(); i++) { @@ -1771,10 +3215,31 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 26, (com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults) targetVmDefaults_); } + if (sourceVmDetailsCase_ == 28) { + output.writeMessage( + 28, (com.google.cloud.vmmigration.v1.VmwareSourceVmDetails) sourceVmDetails_); + } if (sourceVmDetailsCase_ == 29) { output.writeMessage( 29, (com.google.cloud.vmmigration.v1.AwsSourceVmDetails) sourceVmDetails_); } + if (sourceVmDetailsCase_ == 30) { + output.writeMessage( + 30, (com.google.cloud.vmmigration.v1.AzureSourceVmDetails) sourceVmDetails_); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(32, getLastReplicationCycle()); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(33, getCutoverForecast()); + } + if (targetVmDefaultsCase_ == 34) { + output.writeMessage( + 34, (com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults) targetVmDefaults_); + } + if (((bitField0_ & 0x00000200) != 0)) { + output.writeMessage(37, getExpiration()); + } getUnknownFields().writeTo(output); } @@ -1827,7 +3292,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, displayName_); } - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getError()); } for (int i = 0; i < recentCutoverJobs_.size(); i++) { @@ -1845,11 +3310,37 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 26, (com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults) targetVmDefaults_); } + if (sourceVmDetailsCase_ == 28) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 28, (com.google.cloud.vmmigration.v1.VmwareSourceVmDetails) sourceVmDetails_); + } if (sourceVmDetailsCase_ == 29) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 29, (com.google.cloud.vmmigration.v1.AwsSourceVmDetails) sourceVmDetails_); } + if (sourceVmDetailsCase_ == 30) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 30, (com.google.cloud.vmmigration.v1.AzureSourceVmDetails) sourceVmDetails_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(32, getLastReplicationCycle()); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(33, getCutoverForecast()); + } + if (targetVmDefaultsCase_ == 34) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 34, + (com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults) targetVmDefaults_); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(37, getExpiration()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1895,6 +3386,10 @@ public boolean equals(final java.lang.Object obj) { if (hasCurrentSyncInfo()) { if (!getCurrentSyncInfo().equals(other.getCurrentSyncInfo())) return false; } + if (hasLastReplicationCycle() != other.hasLastReplicationCycle()) return false; + if (hasLastReplicationCycle()) { + if (!getLastReplicationCycle().equals(other.getLastReplicationCycle())) return false; + } if (!getGroup().equals(other.getGroup())) return false; if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (!getRecentCloneJobsList().equals(other.getRecentCloneJobsList())) return false; @@ -1903,20 +3398,38 @@ public boolean equals(final java.lang.Object obj) { if (!getError().equals(other.getError())) return false; } if (!getRecentCutoverJobsList().equals(other.getRecentCutoverJobsList())) return false; + if (hasCutoverForecast() != other.hasCutoverForecast()) return false; + if (hasCutoverForecast()) { + if (!getCutoverForecast().equals(other.getCutoverForecast())) return false; + } + if (hasExpiration() != other.hasExpiration()) return false; + if (hasExpiration()) { + if (!getExpiration().equals(other.getExpiration())) return false; + } if (!getTargetVmDefaultsCase().equals(other.getTargetVmDefaultsCase())) return false; switch (targetVmDefaultsCase_) { case 26: if (!getComputeEngineTargetDefaults().equals(other.getComputeEngineTargetDefaults())) return false; break; + case 34: + if (!getComputeEngineDisksTargetDefaults() + .equals(other.getComputeEngineDisksTargetDefaults())) return false; + break; case 0: default: } if (!getSourceVmDetailsCase().equals(other.getSourceVmDetailsCase())) return false; switch (sourceVmDetailsCase_) { + case 28: + if (!getVmwareSourceVmDetails().equals(other.getVmwareSourceVmDetails())) return false; + break; case 29: if (!getAwsSourceVmDetails().equals(other.getAwsSourceVmDetails())) return false; break; + case 30: + if (!getAzureSourceVmDetails().equals(other.getAzureSourceVmDetails())) return false; + break; case 0: default: } @@ -1965,6 +3478,10 @@ public int hashCode() { hash = (37 * hash) + CURRENT_SYNC_INFO_FIELD_NUMBER; hash = (53 * hash) + getCurrentSyncInfo().hashCode(); } + if (hasLastReplicationCycle()) { + hash = (37 * hash) + LAST_REPLICATION_CYCLE_FIELD_NUMBER; + hash = (53 * hash) + getLastReplicationCycle().hashCode(); + } hash = (37 * hash) + GROUP_FIELD_NUMBER; hash = (53 * hash) + getGroup().hashCode(); if (!internalGetLabels().getMap().isEmpty()) { @@ -1983,19 +3500,39 @@ public int hashCode() { hash = (37 * hash) + RECENT_CUTOVER_JOBS_FIELD_NUMBER; hash = (53 * hash) + getRecentCutoverJobsList().hashCode(); } + if (hasCutoverForecast()) { + hash = (37 * hash) + CUTOVER_FORECAST_FIELD_NUMBER; + hash = (53 * hash) + getCutoverForecast().hashCode(); + } + if (hasExpiration()) { + hash = (37 * hash) + EXPIRATION_FIELD_NUMBER; + hash = (53 * hash) + getExpiration().hashCode(); + } switch (targetVmDefaultsCase_) { case 26: hash = (37 * hash) + COMPUTE_ENGINE_TARGET_DEFAULTS_FIELD_NUMBER; hash = (53 * hash) + getComputeEngineTargetDefaults().hashCode(); break; + case 34: + hash = (37 * hash) + COMPUTE_ENGINE_DISKS_TARGET_DEFAULTS_FIELD_NUMBER; + hash = (53 * hash) + getComputeEngineDisksTargetDefaults().hashCode(); + break; case 0: default: } switch (sourceVmDetailsCase_) { + case 28: + hash = (37 * hash) + VMWARE_SOURCE_VM_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getVmwareSourceVmDetails().hashCode(); + break; case 29: hash = (37 * hash) + AWS_SOURCE_VM_DETAILS_FIELD_NUMBER; hash = (53 * hash) + getAwsSourceVmDetails().hashCode(); break; + case 30: + hash = (37 * hash) + AZURE_SOURCE_VM_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getAzureSourceVmDetails().hashCode(); + break; case 0: default: } @@ -2169,9 +3706,12 @@ private void maybeForceBuilderInitialization() { getLastSyncFieldBuilder(); getStateTimeFieldBuilder(); getCurrentSyncInfoFieldBuilder(); + getLastReplicationCycleFieldBuilder(); getRecentCloneJobsFieldBuilder(); getErrorFieldBuilder(); getRecentCutoverJobsFieldBuilder(); + getCutoverForecastFieldBuilder(); + getExpirationFieldBuilder(); } } @@ -2182,9 +3722,18 @@ public Builder clear() { if (computeEngineTargetDefaultsBuilder_ != null) { computeEngineTargetDefaultsBuilder_.clear(); } + if (computeEngineDisksTargetDefaultsBuilder_ != null) { + computeEngineDisksTargetDefaultsBuilder_.clear(); + } + if (vmwareSourceVmDetailsBuilder_ != null) { + vmwareSourceVmDetailsBuilder_.clear(); + } if (awsSourceVmDetailsBuilder_ != null) { awsSourceVmDetailsBuilder_.clear(); } + if (azureSourceVmDetailsBuilder_ != null) { + azureSourceVmDetailsBuilder_.clear(); + } name_ = ""; sourceVmId_ = ""; displayName_ = ""; @@ -2220,6 +3769,11 @@ public Builder clear() { currentSyncInfoBuilder_.dispose(); currentSyncInfoBuilder_ = null; } + lastReplicationCycle_ = null; + if (lastReplicationCycleBuilder_ != null) { + lastReplicationCycleBuilder_.dispose(); + lastReplicationCycleBuilder_ = null; + } group_ = ""; internalGetMutableLabels().clear(); if (recentCloneJobsBuilder_ == null) { @@ -2228,7 +3782,7 @@ public Builder clear() { recentCloneJobs_ = null; recentCloneJobsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00080000); error_ = null; if (errorBuilder_ != null) { errorBuilder_.dispose(); @@ -2240,7 +3794,17 @@ public Builder clear() { recentCutoverJobs_ = null; recentCutoverJobsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00200000); + cutoverForecast_ = null; + if (cutoverForecastBuilder_ != null) { + cutoverForecastBuilder_.dispose(); + cutoverForecastBuilder_ = null; + } + expiration_ = null; + if (expirationBuilder_ != null) { + expirationBuilder_.dispose(); + expirationBuilder_ = null; + } targetVmDefaultsCase_ = 0; targetVmDefaults_ = null; sourceVmDetailsCase_ = 0; @@ -2283,18 +3847,18 @@ public com.google.cloud.vmmigration.v1.MigratingVm buildPartial() { private void buildPartialRepeatedFields(com.google.cloud.vmmigration.v1.MigratingVm result) { if (recentCloneJobsBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0)) { + if (((bitField0_ & 0x00080000) != 0)) { recentCloneJobs_ = java.util.Collections.unmodifiableList(recentCloneJobs_); - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00080000); } result.recentCloneJobs_ = recentCloneJobs_; } else { result.recentCloneJobs_ = recentCloneJobsBuilder_.build(); } if (recentCutoverJobsBuilder_ == null) { - if (((bitField0_ & 0x00020000) != 0)) { + if (((bitField0_ & 0x00200000) != 0)) { recentCutoverJobs_ = java.util.Collections.unmodifiableList(recentCutoverJobs_); - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00200000); } result.recentCutoverJobs_ = recentCutoverJobs_; } else { @@ -2304,57 +3868,73 @@ private void buildPartialRepeatedFields(com.google.cloud.vmmigration.v1.Migratin private void buildPartial0(com.google.cloud.vmmigration.v1.MigratingVm result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.name_ = name_; } - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.sourceVmId_ = sourceVmId_; } - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.displayName_ = displayName_; } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.description_ = description_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.policy_ = policyBuilder_ == null ? policy_ : policyBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000400) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00001000) != 0)) { result.lastSync_ = lastSyncBuilder_ == null ? lastSync_ : lastSyncBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.state_ = state_; } - if (((from_bitField0_ & 0x00000800) != 0)) { + if (((from_bitField0_ & 0x00004000) != 0)) { result.stateTime_ = stateTimeBuilder_ == null ? stateTime_ : stateTimeBuilder_.build(); to_bitField0_ |= 0x00000010; } - if (((from_bitField0_ & 0x00001000) != 0)) { + if (((from_bitField0_ & 0x00008000) != 0)) { result.currentSyncInfo_ = currentSyncInfoBuilder_ == null ? currentSyncInfo_ : currentSyncInfoBuilder_.build(); to_bitField0_ |= 0x00000020; } - if (((from_bitField0_ & 0x00002000) != 0)) { + if (((from_bitField0_ & 0x00010000) != 0)) { + result.lastReplicationCycle_ = + lastReplicationCycleBuilder_ == null + ? lastReplicationCycle_ + : lastReplicationCycleBuilder_.build(); + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00020000) != 0)) { result.group_ = group_; } - if (((from_bitField0_ & 0x00004000) != 0)) { + if (((from_bitField0_ & 0x00040000) != 0)) { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } - if (((from_bitField0_ & 0x00010000) != 0)) { + if (((from_bitField0_ & 0x00100000) != 0)) { result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); - to_bitField0_ |= 0x00000040; + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00400000) != 0)) { + result.cutoverForecast_ = + cutoverForecastBuilder_ == null ? cutoverForecast_ : cutoverForecastBuilder_.build(); + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00800000) != 0)) { + result.expiration_ = expirationBuilder_ == null ? expiration_ : expirationBuilder_.build(); + to_bitField0_ |= 0x00000200; } result.bitField0_ |= to_bitField0_; } @@ -2365,11 +3945,20 @@ private void buildPartialOneofs(com.google.cloud.vmmigration.v1.MigratingVm resu if (targetVmDefaultsCase_ == 26 && computeEngineTargetDefaultsBuilder_ != null) { result.targetVmDefaults_ = computeEngineTargetDefaultsBuilder_.build(); } + if (targetVmDefaultsCase_ == 34 && computeEngineDisksTargetDefaultsBuilder_ != null) { + result.targetVmDefaults_ = computeEngineDisksTargetDefaultsBuilder_.build(); + } result.sourceVmDetailsCase_ = sourceVmDetailsCase_; result.sourceVmDetails_ = this.sourceVmDetails_; + if (sourceVmDetailsCase_ == 28 && vmwareSourceVmDetailsBuilder_ != null) { + result.sourceVmDetails_ = vmwareSourceVmDetailsBuilder_.build(); + } if (sourceVmDetailsCase_ == 29 && awsSourceVmDetailsBuilder_ != null) { result.sourceVmDetails_ = awsSourceVmDetailsBuilder_.build(); } + if (sourceVmDetailsCase_ == 30 && azureSourceVmDetailsBuilder_ != null) { + result.sourceVmDetails_ = azureSourceVmDetailsBuilder_.build(); + } } @java.lang.Override @@ -2419,22 +4008,22 @@ public Builder mergeFrom(com.google.cloud.vmmigration.v1.MigratingVm other) { if (other == com.google.cloud.vmmigration.v1.MigratingVm.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000020; onChanged(); } if (!other.getSourceVmId().isEmpty()) { sourceVmId_ = other.sourceVmId_; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000040; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000080; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; onChanged(); } if (other.hasPolicy()) { @@ -2458,18 +4047,21 @@ public Builder mergeFrom(com.google.cloud.vmmigration.v1.MigratingVm other) { if (other.hasCurrentSyncInfo()) { mergeCurrentSyncInfo(other.getCurrentSyncInfo()); } + if (other.hasLastReplicationCycle()) { + mergeLastReplicationCycle(other.getLastReplicationCycle()); + } if (!other.getGroup().isEmpty()) { group_ = other.group_; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00020000; onChanged(); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00040000; if (recentCloneJobsBuilder_ == null) { if (!other.recentCloneJobs_.isEmpty()) { if (recentCloneJobs_.isEmpty()) { recentCloneJobs_ = other.recentCloneJobs_; - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00080000); } else { ensureRecentCloneJobsIsMutable(); recentCloneJobs_.addAll(other.recentCloneJobs_); @@ -2482,7 +4074,7 @@ public Builder mergeFrom(com.google.cloud.vmmigration.v1.MigratingVm other) { recentCloneJobsBuilder_.dispose(); recentCloneJobsBuilder_ = null; recentCloneJobs_ = other.recentCloneJobs_; - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00080000); recentCloneJobsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRecentCloneJobsFieldBuilder() @@ -2499,7 +4091,7 @@ public Builder mergeFrom(com.google.cloud.vmmigration.v1.MigratingVm other) { if (!other.recentCutoverJobs_.isEmpty()) { if (recentCutoverJobs_.isEmpty()) { recentCutoverJobs_ = other.recentCutoverJobs_; - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00200000); } else { ensureRecentCutoverJobsIsMutable(); recentCutoverJobs_.addAll(other.recentCutoverJobs_); @@ -2512,7 +4104,7 @@ public Builder mergeFrom(com.google.cloud.vmmigration.v1.MigratingVm other) { recentCutoverJobsBuilder_.dispose(); recentCutoverJobsBuilder_ = null; recentCutoverJobs_ = other.recentCutoverJobs_; - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00200000); recentCutoverJobsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRecentCutoverJobsFieldBuilder() @@ -2522,23 +4114,44 @@ public Builder mergeFrom(com.google.cloud.vmmigration.v1.MigratingVm other) { } } } + if (other.hasCutoverForecast()) { + mergeCutoverForecast(other.getCutoverForecast()); + } + if (other.hasExpiration()) { + mergeExpiration(other.getExpiration()); + } switch (other.getTargetVmDefaultsCase()) { case COMPUTE_ENGINE_TARGET_DEFAULTS: { mergeComputeEngineTargetDefaults(other.getComputeEngineTargetDefaults()); break; } + case COMPUTE_ENGINE_DISKS_TARGET_DEFAULTS: + { + mergeComputeEngineDisksTargetDefaults(other.getComputeEngineDisksTargetDefaults()); + break; + } case TARGETVMDEFAULTS_NOT_SET: { break; } } switch (other.getSourceVmDetailsCase()) { + case VMWARE_SOURCE_VM_DETAILS: + { + mergeVmwareSourceVmDetails(other.getVmwareSourceVmDetails()); + break; + } case AWS_SOURCE_VM_DETAILS: { mergeAwsSourceVmDetails(other.getAwsSourceVmDetails()); break; } + case AZURE_SOURCE_VM_DETAILS: + { + mergeAzureSourceVmDetails(other.getAzureSourceVmDetails()); + break; + } case SOURCEVMDETAILS_NOT_SET: { break; @@ -2573,55 +4186,55 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000020; break; } // case 10 case 18: { sourceVmId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000040; break; } // case 18 case 26: { description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; break; } // case 26 case 66: { input.readMessage(getPolicyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000200; break; } // case 66 case 74: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000400; break; } // case 74 case 82: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000800; break; } // case 82 case 90: { input.readMessage(getLastSyncFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00001000; break; } // case 90 case 106: { input.readMessage(getCurrentSyncInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00008000; break; } // case 106 case 122: { group_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00020000; break; } // case 122 case 130: @@ -2633,7 +4246,7 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00040000; break; } // case 130 case 138: @@ -2652,13 +4265,13 @@ public Builder mergeFrom( case 146: { displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000080; break; } // case 146 case 154: { input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00100000; break; } // case 154 case 162: @@ -2677,13 +4290,13 @@ public Builder mergeFrom( case 178: { input.readMessage(getStateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00004000; break; } // case 178 case 184: { state_ = input.readEnum(); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00002000; break; } // case 184 case 210: @@ -2693,6 +4306,13 @@ public Builder mergeFrom( targetVmDefaultsCase_ = 26; break; } // case 210 + case 226: + { + input.readMessage( + getVmwareSourceVmDetailsFieldBuilder().getBuilder(), extensionRegistry); + sourceVmDetailsCase_ = 28; + break; + } // case 226 case 234: { input.readMessage( @@ -2700,6 +4320,40 @@ public Builder mergeFrom( sourceVmDetailsCase_ = 29; break; } // case 234 + case 242: + { + input.readMessage( + getAzureSourceVmDetailsFieldBuilder().getBuilder(), extensionRegistry); + sourceVmDetailsCase_ = 30; + break; + } // case 242 + case 258: + { + input.readMessage( + getLastReplicationCycleFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00010000; + break; + } // case 258 + case 266: + { + input.readMessage(getCutoverForecastFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00400000; + break; + } // case 266 + case 274: + { + input.readMessage( + getComputeEngineDisksTargetDefaultsFieldBuilder().getBuilder(), + extensionRegistry); + targetVmDefaultsCase_ = 34; + break; + } // case 274 + case 298: + { + input.readMessage(getExpirationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00800000; + break; + } // case 298 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2713,90 +4367,585 @@ public Builder mergeFrom( throw e.unwrapIOException(); } finally { onChanged(); - } // finally + } // finally + return this; + } + + private int targetVmDefaultsCase_ = 0; + private java.lang.Object targetVmDefaults_; + + public TargetVmDefaultsCase getTargetVmDefaultsCase() { + return TargetVmDefaultsCase.forNumber(targetVmDefaultsCase_); + } + + public Builder clearTargetVmDefaults() { + targetVmDefaultsCase_ = 0; + targetVmDefaults_ = null; + onChanged(); + return this; + } + + private int sourceVmDetailsCase_ = 0; + private java.lang.Object sourceVmDetails_; + + public SourceVmDetailsCase getSourceVmDetailsCase() { + return SourceVmDetailsCase.forNumber(sourceVmDetailsCase_); + } + + public Builder clearSourceVmDetails() { + sourceVmDetailsCase_ = 0; + sourceVmDetails_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults, + com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.Builder, + com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaultsOrBuilder> + computeEngineTargetDefaultsBuilder_; + + /** + * + * + *
        +     * Details of the target VM in Compute Engine.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineTargetDefaults compute_engine_target_defaults = 26; + * + * + * @return Whether the computeEngineTargetDefaults field is set. + */ + @java.lang.Override + public boolean hasComputeEngineTargetDefaults() { + return targetVmDefaultsCase_ == 26; + } + + /** + * + * + *
        +     * Details of the target VM in Compute Engine.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineTargetDefaults compute_engine_target_defaults = 26; + * + * + * @return The computeEngineTargetDefaults. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults + getComputeEngineTargetDefaults() { + if (computeEngineTargetDefaultsBuilder_ == null) { + if (targetVmDefaultsCase_ == 26) { + return (com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults) targetVmDefaults_; + } + return com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.getDefaultInstance(); + } else { + if (targetVmDefaultsCase_ == 26) { + return computeEngineTargetDefaultsBuilder_.getMessage(); + } + return com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Details of the target VM in Compute Engine.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineTargetDefaults compute_engine_target_defaults = 26; + * + */ + public Builder setComputeEngineTargetDefaults( + com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults value) { + if (computeEngineTargetDefaultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + targetVmDefaults_ = value; + onChanged(); + } else { + computeEngineTargetDefaultsBuilder_.setMessage(value); + } + targetVmDefaultsCase_ = 26; + return this; + } + + /** + * + * + *
        +     * Details of the target VM in Compute Engine.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineTargetDefaults compute_engine_target_defaults = 26; + * + */ + public Builder setComputeEngineTargetDefaults( + com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.Builder builderForValue) { + if (computeEngineTargetDefaultsBuilder_ == null) { + targetVmDefaults_ = builderForValue.build(); + onChanged(); + } else { + computeEngineTargetDefaultsBuilder_.setMessage(builderForValue.build()); + } + targetVmDefaultsCase_ = 26; + return this; + } + + /** + * + * + *
        +     * Details of the target VM in Compute Engine.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineTargetDefaults compute_engine_target_defaults = 26; + * + */ + public Builder mergeComputeEngineTargetDefaults( + com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults value) { + if (computeEngineTargetDefaultsBuilder_ == null) { + if (targetVmDefaultsCase_ == 26 + && targetVmDefaults_ + != com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults + .getDefaultInstance()) { + targetVmDefaults_ = + com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.newBuilder( + (com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults) + targetVmDefaults_) + .mergeFrom(value) + .buildPartial(); + } else { + targetVmDefaults_ = value; + } + onChanged(); + } else { + if (targetVmDefaultsCase_ == 26) { + computeEngineTargetDefaultsBuilder_.mergeFrom(value); + } else { + computeEngineTargetDefaultsBuilder_.setMessage(value); + } + } + targetVmDefaultsCase_ = 26; + return this; + } + + /** + * + * + *
        +     * Details of the target VM in Compute Engine.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineTargetDefaults compute_engine_target_defaults = 26; + * + */ + public Builder clearComputeEngineTargetDefaults() { + if (computeEngineTargetDefaultsBuilder_ == null) { + if (targetVmDefaultsCase_ == 26) { + targetVmDefaultsCase_ = 0; + targetVmDefaults_ = null; + onChanged(); + } + } else { + if (targetVmDefaultsCase_ == 26) { + targetVmDefaultsCase_ = 0; + targetVmDefaults_ = null; + } + computeEngineTargetDefaultsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Details of the target VM in Compute Engine.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineTargetDefaults compute_engine_target_defaults = 26; + * + */ + public com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.Builder + getComputeEngineTargetDefaultsBuilder() { + return getComputeEngineTargetDefaultsFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Details of the target VM in Compute Engine.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineTargetDefaults compute_engine_target_defaults = 26; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaultsOrBuilder + getComputeEngineTargetDefaultsOrBuilder() { + if ((targetVmDefaultsCase_ == 26) && (computeEngineTargetDefaultsBuilder_ != null)) { + return computeEngineTargetDefaultsBuilder_.getMessageOrBuilder(); + } else { + if (targetVmDefaultsCase_ == 26) { + return (com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults) targetVmDefaults_; + } + return com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Details of the target VM in Compute Engine.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineTargetDefaults compute_engine_target_defaults = 26; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults, + com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.Builder, + com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaultsOrBuilder> + getComputeEngineTargetDefaultsFieldBuilder() { + if (computeEngineTargetDefaultsBuilder_ == null) { + if (!(targetVmDefaultsCase_ == 26)) { + targetVmDefaults_ = + com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.getDefaultInstance(); + } + computeEngineTargetDefaultsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults, + com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.Builder, + com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaultsOrBuilder>( + (com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults) targetVmDefaults_, + getParentForChildren(), + isClean()); + targetVmDefaults_ = null; + } + targetVmDefaultsCase_ = 26; + onChanged(); + return computeEngineTargetDefaultsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults, + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults.Builder, + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaultsOrBuilder> + computeEngineDisksTargetDefaultsBuilder_; + + /** + * + * + *
        +     * Details of the target Persistent Disks in Compute Engine.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults compute_engine_disks_target_defaults = 34; + * + * + * @return Whether the computeEngineDisksTargetDefaults field is set. + */ + @java.lang.Override + public boolean hasComputeEngineDisksTargetDefaults() { + return targetVmDefaultsCase_ == 34; + } + + /** + * + * + *
        +     * Details of the target Persistent Disks in Compute Engine.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults compute_engine_disks_target_defaults = 34; + * + * + * @return The computeEngineDisksTargetDefaults. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults + getComputeEngineDisksTargetDefaults() { + if (computeEngineDisksTargetDefaultsBuilder_ == null) { + if (targetVmDefaultsCase_ == 34) { + return (com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults) + targetVmDefaults_; + } + return com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults + .getDefaultInstance(); + } else { + if (targetVmDefaultsCase_ == 34) { + return computeEngineDisksTargetDefaultsBuilder_.getMessage(); + } + return com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults + .getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Details of the target Persistent Disks in Compute Engine.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults compute_engine_disks_target_defaults = 34; + * + */ + public Builder setComputeEngineDisksTargetDefaults( + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults value) { + if (computeEngineDisksTargetDefaultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + targetVmDefaults_ = value; + onChanged(); + } else { + computeEngineDisksTargetDefaultsBuilder_.setMessage(value); + } + targetVmDefaultsCase_ = 34; return this; } - private int targetVmDefaultsCase_ = 0; - private java.lang.Object targetVmDefaults_; + /** + * + * + *
        +     * Details of the target Persistent Disks in Compute Engine.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults compute_engine_disks_target_defaults = 34; + * + */ + public Builder setComputeEngineDisksTargetDefaults( + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults.Builder builderForValue) { + if (computeEngineDisksTargetDefaultsBuilder_ == null) { + targetVmDefaults_ = builderForValue.build(); + onChanged(); + } else { + computeEngineDisksTargetDefaultsBuilder_.setMessage(builderForValue.build()); + } + targetVmDefaultsCase_ = 34; + return this; + } - public TargetVmDefaultsCase getTargetVmDefaultsCase() { - return TargetVmDefaultsCase.forNumber(targetVmDefaultsCase_); + /** + * + * + *
        +     * Details of the target Persistent Disks in Compute Engine.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults compute_engine_disks_target_defaults = 34; + * + */ + public Builder mergeComputeEngineDisksTargetDefaults( + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults value) { + if (computeEngineDisksTargetDefaultsBuilder_ == null) { + if (targetVmDefaultsCase_ == 34 + && targetVmDefaults_ + != com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults + .getDefaultInstance()) { + targetVmDefaults_ = + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults.newBuilder( + (com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults) + targetVmDefaults_) + .mergeFrom(value) + .buildPartial(); + } else { + targetVmDefaults_ = value; + } + onChanged(); + } else { + if (targetVmDefaultsCase_ == 34) { + computeEngineDisksTargetDefaultsBuilder_.mergeFrom(value); + } else { + computeEngineDisksTargetDefaultsBuilder_.setMessage(value); + } + } + targetVmDefaultsCase_ = 34; + return this; } - public Builder clearTargetVmDefaults() { - targetVmDefaultsCase_ = 0; - targetVmDefaults_ = null; - onChanged(); + /** + * + * + *
        +     * Details of the target Persistent Disks in Compute Engine.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults compute_engine_disks_target_defaults = 34; + * + */ + public Builder clearComputeEngineDisksTargetDefaults() { + if (computeEngineDisksTargetDefaultsBuilder_ == null) { + if (targetVmDefaultsCase_ == 34) { + targetVmDefaultsCase_ = 0; + targetVmDefaults_ = null; + onChanged(); + } + } else { + if (targetVmDefaultsCase_ == 34) { + targetVmDefaultsCase_ = 0; + targetVmDefaults_ = null; + } + computeEngineDisksTargetDefaultsBuilder_.clear(); + } return this; } - private int sourceVmDetailsCase_ = 0; - private java.lang.Object sourceVmDetails_; + /** + * + * + *
        +     * Details of the target Persistent Disks in Compute Engine.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults compute_engine_disks_target_defaults = 34; + * + */ + public com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults.Builder + getComputeEngineDisksTargetDefaultsBuilder() { + return getComputeEngineDisksTargetDefaultsFieldBuilder().getBuilder(); + } - public SourceVmDetailsCase getSourceVmDetailsCase() { - return SourceVmDetailsCase.forNumber(sourceVmDetailsCase_); + /** + * + * + *
        +     * Details of the target Persistent Disks in Compute Engine.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults compute_engine_disks_target_defaults = 34; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaultsOrBuilder + getComputeEngineDisksTargetDefaultsOrBuilder() { + if ((targetVmDefaultsCase_ == 34) && (computeEngineDisksTargetDefaultsBuilder_ != null)) { + return computeEngineDisksTargetDefaultsBuilder_.getMessageOrBuilder(); + } else { + if (targetVmDefaultsCase_ == 34) { + return (com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults) + targetVmDefaults_; + } + return com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults + .getDefaultInstance(); + } } - public Builder clearSourceVmDetails() { - sourceVmDetailsCase_ = 0; - sourceVmDetails_ = null; + /** + * + * + *
        +     * Details of the target Persistent Disks in Compute Engine.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults compute_engine_disks_target_defaults = 34; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults, + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults.Builder, + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaultsOrBuilder> + getComputeEngineDisksTargetDefaultsFieldBuilder() { + if (computeEngineDisksTargetDefaultsBuilder_ == null) { + if (!(targetVmDefaultsCase_ == 34)) { + targetVmDefaults_ = + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults.getDefaultInstance(); + } + computeEngineDisksTargetDefaultsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults, + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults.Builder, + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaultsOrBuilder>( + (com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults) + targetVmDefaults_, + getParentForChildren(), + isClean()); + targetVmDefaults_ = null; + } + targetVmDefaultsCase_ = 34; onChanged(); - return this; + return computeEngineDisksTargetDefaultsBuilder_; } - private int bitField0_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults, - com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.Builder, - com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaultsOrBuilder> - computeEngineTargetDefaultsBuilder_; + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails, + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.Builder, + com.google.cloud.vmmigration.v1.VmwareSourceVmDetailsOrBuilder> + vmwareSourceVmDetailsBuilder_; /** * * *
        -     * Details of the target VM in Compute Engine.
        +     * Output only. Details of the VM from a Vmware source.
              * 
        * * - * .google.cloud.vmmigration.v1.ComputeEngineTargetDefaults compute_engine_target_defaults = 26; + * .google.cloud.vmmigration.v1.VmwareSourceVmDetails vmware_source_vm_details = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return Whether the computeEngineTargetDefaults field is set. + * @return Whether the vmwareSourceVmDetails field is set. */ @java.lang.Override - public boolean hasComputeEngineTargetDefaults() { - return targetVmDefaultsCase_ == 26; + public boolean hasVmwareSourceVmDetails() { + return sourceVmDetailsCase_ == 28; } /** * * *
        -     * Details of the target VM in Compute Engine.
        +     * Output only. Details of the VM from a Vmware source.
              * 
        * * - * .google.cloud.vmmigration.v1.ComputeEngineTargetDefaults compute_engine_target_defaults = 26; + * .google.cloud.vmmigration.v1.VmwareSourceVmDetails vmware_source_vm_details = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return The computeEngineTargetDefaults. + * @return The vmwareSourceVmDetails. */ @java.lang.Override - public com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults - getComputeEngineTargetDefaults() { - if (computeEngineTargetDefaultsBuilder_ == null) { - if (targetVmDefaultsCase_ == 26) { - return (com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults) targetVmDefaults_; + public com.google.cloud.vmmigration.v1.VmwareSourceVmDetails getVmwareSourceVmDetails() { + if (vmwareSourceVmDetailsBuilder_ == null) { + if (sourceVmDetailsCase_ == 28) { + return (com.google.cloud.vmmigration.v1.VmwareSourceVmDetails) sourceVmDetails_; } - return com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.getDefaultInstance(); + return com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.getDefaultInstance(); } else { - if (targetVmDefaultsCase_ == 26) { - return computeEngineTargetDefaultsBuilder_.getMessage(); + if (sourceVmDetailsCase_ == 28) { + return vmwareSourceVmDetailsBuilder_.getMessage(); } - return com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.getDefaultInstance(); + return com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.getDefaultInstance(); } } @@ -2804,25 +4953,25 @@ public boolean hasComputeEngineTargetDefaults() { * * *
        -     * Details of the target VM in Compute Engine.
        +     * Output only. Details of the VM from a Vmware source.
              * 
        * * - * .google.cloud.vmmigration.v1.ComputeEngineTargetDefaults compute_engine_target_defaults = 26; + * .google.cloud.vmmigration.v1.VmwareSourceVmDetails vmware_source_vm_details = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setComputeEngineTargetDefaults( - com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults value) { - if (computeEngineTargetDefaultsBuilder_ == null) { + public Builder setVmwareSourceVmDetails( + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails value) { + if (vmwareSourceVmDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - targetVmDefaults_ = value; + sourceVmDetails_ = value; onChanged(); } else { - computeEngineTargetDefaultsBuilder_.setMessage(value); + vmwareSourceVmDetailsBuilder_.setMessage(value); } - targetVmDefaultsCase_ = 26; + sourceVmDetailsCase_ = 28; return this; } @@ -2830,22 +4979,22 @@ public Builder setComputeEngineTargetDefaults( * * *
        -     * Details of the target VM in Compute Engine.
        +     * Output only. Details of the VM from a Vmware source.
              * 
        * - * - * .google.cloud.vmmigration.v1.ComputeEngineTargetDefaults compute_engine_target_defaults = 26; - * - */ - public Builder setComputeEngineTargetDefaults( - com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.Builder builderForValue) { - if (computeEngineTargetDefaultsBuilder_ == null) { - targetVmDefaults_ = builderForValue.build(); + * + * .google.cloud.vmmigration.v1.VmwareSourceVmDetails vmware_source_vm_details = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setVmwareSourceVmDetails( + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.Builder builderForValue) { + if (vmwareSourceVmDetailsBuilder_ == null) { + sourceVmDetails_ = builderForValue.build(); onChanged(); } else { - computeEngineTargetDefaultsBuilder_.setMessage(builderForValue.build()); + vmwareSourceVmDetailsBuilder_.setMessage(builderForValue.build()); } - targetVmDefaultsCase_ = 26; + sourceVmDetailsCase_ = 28; return this; } @@ -2853,38 +5002,36 @@ public Builder setComputeEngineTargetDefaults( * * *
        -     * Details of the target VM in Compute Engine.
        +     * Output only. Details of the VM from a Vmware source.
              * 
        * * - * .google.cloud.vmmigration.v1.ComputeEngineTargetDefaults compute_engine_target_defaults = 26; + * .google.cloud.vmmigration.v1.VmwareSourceVmDetails vmware_source_vm_details = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder mergeComputeEngineTargetDefaults( - com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults value) { - if (computeEngineTargetDefaultsBuilder_ == null) { - if (targetVmDefaultsCase_ == 26 - && targetVmDefaults_ - != com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults - .getDefaultInstance()) { - targetVmDefaults_ = - com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.newBuilder( - (com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults) - targetVmDefaults_) + public Builder mergeVmwareSourceVmDetails( + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails value) { + if (vmwareSourceVmDetailsBuilder_ == null) { + if (sourceVmDetailsCase_ == 28 + && sourceVmDetails_ + != com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.getDefaultInstance()) { + sourceVmDetails_ = + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.newBuilder( + (com.google.cloud.vmmigration.v1.VmwareSourceVmDetails) sourceVmDetails_) .mergeFrom(value) .buildPartial(); } else { - targetVmDefaults_ = value; + sourceVmDetails_ = value; } onChanged(); } else { - if (targetVmDefaultsCase_ == 26) { - computeEngineTargetDefaultsBuilder_.mergeFrom(value); + if (sourceVmDetailsCase_ == 28) { + vmwareSourceVmDetailsBuilder_.mergeFrom(value); } else { - computeEngineTargetDefaultsBuilder_.setMessage(value); + vmwareSourceVmDetailsBuilder_.setMessage(value); } } - targetVmDefaultsCase_ = 26; + sourceVmDetailsCase_ = 28; return this; } @@ -2892,26 +5039,26 @@ public Builder mergeComputeEngineTargetDefaults( * * *
        -     * Details of the target VM in Compute Engine.
        +     * Output only. Details of the VM from a Vmware source.
              * 
        * * - * .google.cloud.vmmigration.v1.ComputeEngineTargetDefaults compute_engine_target_defaults = 26; + * .google.cloud.vmmigration.v1.VmwareSourceVmDetails vmware_source_vm_details = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder clearComputeEngineTargetDefaults() { - if (computeEngineTargetDefaultsBuilder_ == null) { - if (targetVmDefaultsCase_ == 26) { - targetVmDefaultsCase_ = 0; - targetVmDefaults_ = null; + public Builder clearVmwareSourceVmDetails() { + if (vmwareSourceVmDetailsBuilder_ == null) { + if (sourceVmDetailsCase_ == 28) { + sourceVmDetailsCase_ = 0; + sourceVmDetails_ = null; onChanged(); } } else { - if (targetVmDefaultsCase_ == 26) { - targetVmDefaultsCase_ = 0; - targetVmDefaults_ = null; + if (sourceVmDetailsCase_ == 28) { + sourceVmDetailsCase_ = 0; + sourceVmDetails_ = null; } - computeEngineTargetDefaultsBuilder_.clear(); + vmwareSourceVmDetailsBuilder_.clear(); } return this; } @@ -2920,39 +5067,39 @@ public Builder clearComputeEngineTargetDefaults() { * * *
        -     * Details of the target VM in Compute Engine.
        +     * Output only. Details of the VM from a Vmware source.
              * 
        * * - * .google.cloud.vmmigration.v1.ComputeEngineTargetDefaults compute_engine_target_defaults = 26; + * .google.cloud.vmmigration.v1.VmwareSourceVmDetails vmware_source_vm_details = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.Builder - getComputeEngineTargetDefaultsBuilder() { - return getComputeEngineTargetDefaultsFieldBuilder().getBuilder(); + public com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.Builder + getVmwareSourceVmDetailsBuilder() { + return getVmwareSourceVmDetailsFieldBuilder().getBuilder(); } /** * * *
        -     * Details of the target VM in Compute Engine.
        +     * Output only. Details of the VM from a Vmware source.
              * 
        * * - * .google.cloud.vmmigration.v1.ComputeEngineTargetDefaults compute_engine_target_defaults = 26; + * .google.cloud.vmmigration.v1.VmwareSourceVmDetails vmware_source_vm_details = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override - public com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaultsOrBuilder - getComputeEngineTargetDefaultsOrBuilder() { - if ((targetVmDefaultsCase_ == 26) && (computeEngineTargetDefaultsBuilder_ != null)) { - return computeEngineTargetDefaultsBuilder_.getMessageOrBuilder(); + public com.google.cloud.vmmigration.v1.VmwareSourceVmDetailsOrBuilder + getVmwareSourceVmDetailsOrBuilder() { + if ((sourceVmDetailsCase_ == 28) && (vmwareSourceVmDetailsBuilder_ != null)) { + return vmwareSourceVmDetailsBuilder_.getMessageOrBuilder(); } else { - if (targetVmDefaultsCase_ == 26) { - return (com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults) targetVmDefaults_; + if (sourceVmDetailsCase_ == 28) { + return (com.google.cloud.vmmigration.v1.VmwareSourceVmDetails) sourceVmDetails_; } - return com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.getDefaultInstance(); + return com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.getDefaultInstance(); } } @@ -2960,36 +5107,36 @@ public Builder clearComputeEngineTargetDefaults() { * * *
        -     * Details of the target VM in Compute Engine.
        +     * Output only. Details of the VM from a Vmware source.
              * 
        * * - * .google.cloud.vmmigration.v1.ComputeEngineTargetDefaults compute_engine_target_defaults = 26; + * .google.cloud.vmmigration.v1.VmwareSourceVmDetails vmware_source_vm_details = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults, - com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.Builder, - com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaultsOrBuilder> - getComputeEngineTargetDefaultsFieldBuilder() { - if (computeEngineTargetDefaultsBuilder_ == null) { - if (!(targetVmDefaultsCase_ == 26)) { - targetVmDefaults_ = - com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.getDefaultInstance(); + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails, + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.Builder, + com.google.cloud.vmmigration.v1.VmwareSourceVmDetailsOrBuilder> + getVmwareSourceVmDetailsFieldBuilder() { + if (vmwareSourceVmDetailsBuilder_ == null) { + if (!(sourceVmDetailsCase_ == 28)) { + sourceVmDetails_ = + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.getDefaultInstance(); } - computeEngineTargetDefaultsBuilder_ = + vmwareSourceVmDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults, - com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.Builder, - com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaultsOrBuilder>( - (com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults) targetVmDefaults_, + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails, + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.Builder, + com.google.cloud.vmmigration.v1.VmwareSourceVmDetailsOrBuilder>( + (com.google.cloud.vmmigration.v1.VmwareSourceVmDetails) sourceVmDetails_, getParentForChildren(), isClean()); - targetVmDefaults_ = null; + sourceVmDetails_ = null; } - targetVmDefaultsCase_ = 26; + sourceVmDetailsCase_ = 28; onChanged(); - return computeEngineTargetDefaultsBuilder_; + return vmwareSourceVmDetailsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< @@ -3233,6 +5380,248 @@ public Builder clearAwsSourceVmDetails() { return awsSourceVmDetailsBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.AzureSourceVmDetails, + com.google.cloud.vmmigration.v1.AzureSourceVmDetails.Builder, + com.google.cloud.vmmigration.v1.AzureSourceVmDetailsOrBuilder> + azureSourceVmDetailsBuilder_; + + /** + * + * + *
        +     * Output only. Details of the VM from an Azure source.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.AzureSourceVmDetails azure_source_vm_details = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the azureSourceVmDetails field is set. + */ + @java.lang.Override + public boolean hasAzureSourceVmDetails() { + return sourceVmDetailsCase_ == 30; + } + + /** + * + * + *
        +     * Output only. Details of the VM from an Azure source.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.AzureSourceVmDetails azure_source_vm_details = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The azureSourceVmDetails. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureSourceVmDetails getAzureSourceVmDetails() { + if (azureSourceVmDetailsBuilder_ == null) { + if (sourceVmDetailsCase_ == 30) { + return (com.google.cloud.vmmigration.v1.AzureSourceVmDetails) sourceVmDetails_; + } + return com.google.cloud.vmmigration.v1.AzureSourceVmDetails.getDefaultInstance(); + } else { + if (sourceVmDetailsCase_ == 30) { + return azureSourceVmDetailsBuilder_.getMessage(); + } + return com.google.cloud.vmmigration.v1.AzureSourceVmDetails.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Output only. Details of the VM from an Azure source.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.AzureSourceVmDetails azure_source_vm_details = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAzureSourceVmDetails( + com.google.cloud.vmmigration.v1.AzureSourceVmDetails value) { + if (azureSourceVmDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sourceVmDetails_ = value; + onChanged(); + } else { + azureSourceVmDetailsBuilder_.setMessage(value); + } + sourceVmDetailsCase_ = 30; + return this; + } + + /** + * + * + *
        +     * Output only. Details of the VM from an Azure source.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.AzureSourceVmDetails azure_source_vm_details = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAzureSourceVmDetails( + com.google.cloud.vmmigration.v1.AzureSourceVmDetails.Builder builderForValue) { + if (azureSourceVmDetailsBuilder_ == null) { + sourceVmDetails_ = builderForValue.build(); + onChanged(); + } else { + azureSourceVmDetailsBuilder_.setMessage(builderForValue.build()); + } + sourceVmDetailsCase_ = 30; + return this; + } + + /** + * + * + *
        +     * Output only. Details of the VM from an Azure source.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.AzureSourceVmDetails azure_source_vm_details = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeAzureSourceVmDetails( + com.google.cloud.vmmigration.v1.AzureSourceVmDetails value) { + if (azureSourceVmDetailsBuilder_ == null) { + if (sourceVmDetailsCase_ == 30 + && sourceVmDetails_ + != com.google.cloud.vmmigration.v1.AzureSourceVmDetails.getDefaultInstance()) { + sourceVmDetails_ = + com.google.cloud.vmmigration.v1.AzureSourceVmDetails.newBuilder( + (com.google.cloud.vmmigration.v1.AzureSourceVmDetails) sourceVmDetails_) + .mergeFrom(value) + .buildPartial(); + } else { + sourceVmDetails_ = value; + } + onChanged(); + } else { + if (sourceVmDetailsCase_ == 30) { + azureSourceVmDetailsBuilder_.mergeFrom(value); + } else { + azureSourceVmDetailsBuilder_.setMessage(value); + } + } + sourceVmDetailsCase_ = 30; + return this; + } + + /** + * + * + *
        +     * Output only. Details of the VM from an Azure source.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.AzureSourceVmDetails azure_source_vm_details = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearAzureSourceVmDetails() { + if (azureSourceVmDetailsBuilder_ == null) { + if (sourceVmDetailsCase_ == 30) { + sourceVmDetailsCase_ = 0; + sourceVmDetails_ = null; + onChanged(); + } + } else { + if (sourceVmDetailsCase_ == 30) { + sourceVmDetailsCase_ = 0; + sourceVmDetails_ = null; + } + azureSourceVmDetailsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Output only. Details of the VM from an Azure source.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.AzureSourceVmDetails azure_source_vm_details = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.AzureSourceVmDetails.Builder + getAzureSourceVmDetailsBuilder() { + return getAzureSourceVmDetailsFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Output only. Details of the VM from an Azure source.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.AzureSourceVmDetails azure_source_vm_details = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureSourceVmDetailsOrBuilder + getAzureSourceVmDetailsOrBuilder() { + if ((sourceVmDetailsCase_ == 30) && (azureSourceVmDetailsBuilder_ != null)) { + return azureSourceVmDetailsBuilder_.getMessageOrBuilder(); + } else { + if (sourceVmDetailsCase_ == 30) { + return (com.google.cloud.vmmigration.v1.AzureSourceVmDetails) sourceVmDetails_; + } + return com.google.cloud.vmmigration.v1.AzureSourceVmDetails.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Output only. Details of the VM from an Azure source.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.AzureSourceVmDetails azure_source_vm_details = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.AzureSourceVmDetails, + com.google.cloud.vmmigration.v1.AzureSourceVmDetails.Builder, + com.google.cloud.vmmigration.v1.AzureSourceVmDetailsOrBuilder> + getAzureSourceVmDetailsFieldBuilder() { + if (azureSourceVmDetailsBuilder_ == null) { + if (!(sourceVmDetailsCase_ == 30)) { + sourceVmDetails_ = + com.google.cloud.vmmigration.v1.AzureSourceVmDetails.getDefaultInstance(); + } + azureSourceVmDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.AzureSourceVmDetails, + com.google.cloud.vmmigration.v1.AzureSourceVmDetails.Builder, + com.google.cloud.vmmigration.v1.AzureSourceVmDetailsOrBuilder>( + (com.google.cloud.vmmigration.v1.AzureSourceVmDetails) sourceVmDetails_, + getParentForChildren(), + isClean()); + sourceVmDetails_ = null; + } + sourceVmDetailsCase_ = 30; + onChanged(); + return azureSourceVmDetailsBuilder_; + } + private java.lang.Object name_ = ""; /** @@ -3298,7 +5687,7 @@ public Builder setName(java.lang.String value) { throw new NullPointerException(); } name_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -3316,7 +5705,7 @@ public Builder setName(java.lang.String value) { */ public Builder clearName() { name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -3339,7 +5728,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); name_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -3415,7 +5804,7 @@ public Builder setSourceVmId(java.lang.String value) { throw new NullPointerException(); } sourceVmId_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -3435,7 +5824,7 @@ public Builder setSourceVmId(java.lang.String value) { */ public Builder clearSourceVmId() { sourceVmId_ = getDefaultInstance().getSourceVmId(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -3460,7 +5849,7 @@ public Builder setSourceVmIdBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); sourceVmId_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -3530,7 +5919,7 @@ public Builder setDisplayName(java.lang.String value) { throw new NullPointerException(); } displayName_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3548,7 +5937,7 @@ public Builder setDisplayName(java.lang.String value) { */ public Builder clearDisplayName() { displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -3571,7 +5960,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); displayName_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3641,7 +6030,7 @@ public Builder setDescription(java.lang.String value) { throw new NullPointerException(); } description_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3659,7 +6048,7 @@ public Builder setDescription(java.lang.String value) { */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -3682,7 +6071,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); description_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3706,7 +6095,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * @return Whether the policy field is set. */ public boolean hasPolicy() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** @@ -3748,7 +6137,7 @@ public Builder setPolicy(com.google.cloud.vmmigration.v1.SchedulePolicy value) { } else { policyBuilder_.setMessage(value); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3769,7 +6158,7 @@ public Builder setPolicy( } else { policyBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3785,7 +6174,7 @@ public Builder setPolicy( */ public Builder mergePolicy(com.google.cloud.vmmigration.v1.SchedulePolicy value) { if (policyBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) + if (((bitField0_ & 0x00000200) != 0) && policy_ != null && policy_ != com.google.cloud.vmmigration.v1.SchedulePolicy.getDefaultInstance()) { getPolicyBuilder().mergeFrom(value); @@ -3796,7 +6185,7 @@ public Builder mergePolicy(com.google.cloud.vmmigration.v1.SchedulePolicy value) policyBuilder_.mergeFrom(value); } if (policy_ != null) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000200; onChanged(); } return this; @@ -3812,7 +6201,7 @@ public Builder mergePolicy(com.google.cloud.vmmigration.v1.SchedulePolicy value) * .google.cloud.vmmigration.v1.SchedulePolicy policy = 8; */ public Builder clearPolicy() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000200); policy_ = null; if (policyBuilder_ != null) { policyBuilder_.dispose(); @@ -3832,7 +6221,7 @@ public Builder clearPolicy() { * .google.cloud.vmmigration.v1.SchedulePolicy policy = 8; */ public com.google.cloud.vmmigration.v1.SchedulePolicy.Builder getPolicyBuilder() { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000200; onChanged(); return getPolicyFieldBuilder().getBuilder(); } @@ -3904,7 +6293,7 @@ public com.google.cloud.vmmigration.v1.SchedulePolicyOrBuilder getPolicyOrBuilde * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** @@ -3952,7 +6341,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3975,7 +6364,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { createTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3994,7 +6383,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) + if (((bitField0_ & 0x00000400) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); @@ -4005,7 +6394,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000400; onChanged(); } return this; @@ -4024,7 +6413,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { *
        */ public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000400); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -4047,7 +6436,7 @@ public Builder clearCreateTime() { *
        */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000400; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -4124,7 +6513,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** @@ -4170,7 +6559,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { } else { updateTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -4192,7 +6581,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -4210,7 +6599,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) + if (((bitField0_ & 0x00000800) != 0) && updateTime_ != null && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); @@ -4221,7 +6610,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { updateTimeBuilder_.mergeFrom(value); } if (updateTime_ != null) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000800; onChanged(); } return this; @@ -4239,7 +6628,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { *
        */ public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000800); updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); @@ -4261,7 +6650,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000800; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -4337,7 +6726,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * @return Whether the lastSync field is set. */ public boolean hasLastSync() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00001000) != 0); } /** @@ -4385,7 +6774,7 @@ public Builder setLastSync(com.google.cloud.vmmigration.v1.ReplicationSync value } else { lastSyncBuilder_.setMessage(value); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4409,7 +6798,7 @@ public Builder setLastSync( } else { lastSyncBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4428,7 +6817,7 @@ public Builder setLastSync( */ public Builder mergeLastSync(com.google.cloud.vmmigration.v1.ReplicationSync value) { if (lastSyncBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) + if (((bitField0_ & 0x00001000) != 0) && lastSync_ != null && lastSync_ != com.google.cloud.vmmigration.v1.ReplicationSync.getDefaultInstance()) { getLastSyncBuilder().mergeFrom(value); @@ -4439,7 +6828,7 @@ public Builder mergeLastSync(com.google.cloud.vmmigration.v1.ReplicationSync val lastSyncBuilder_.mergeFrom(value); } if (lastSync_ != null) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00001000; onChanged(); } return this; @@ -4458,7 +6847,7 @@ public Builder mergeLastSync(com.google.cloud.vmmigration.v1.ReplicationSync val * */ public Builder clearLastSync() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00001000); lastSync_ = null; if (lastSyncBuilder_ != null) { lastSyncBuilder_.dispose(); @@ -4481,7 +6870,7 @@ public Builder clearLastSync() { * */ public com.google.cloud.vmmigration.v1.ReplicationSync.Builder getLastSyncBuilder() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00001000; onChanged(); return getLastSyncFieldBuilder().getBuilder(); } @@ -4573,7 +6962,7 @@ public int getStateValue() { */ public Builder setStateValue(int value) { state_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -4618,7 +7007,7 @@ public Builder setState(com.google.cloud.vmmigration.v1.MigratingVm.State value) if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00002000; state_ = value.getNumber(); onChanged(); return this; @@ -4638,7 +7027,7 @@ public Builder setState(com.google.cloud.vmmigration.v1.MigratingVm.State value) * @return This builder for chaining. */ public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00002000); state_ = 0; onChanged(); return this; @@ -4665,7 +7054,7 @@ public Builder clearState() { * @return Whether the stateTime field is set. */ public boolean hasStateTime() { - return ((bitField0_ & 0x00000800) != 0); + return ((bitField0_ & 0x00004000) != 0); } /** @@ -4709,7 +7098,7 @@ public Builder setStateTime(com.google.protobuf.Timestamp value) { } else { stateTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -4731,7 +7120,7 @@ public Builder setStateTime(com.google.protobuf.Timestamp.Builder builderForValu } else { stateTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -4749,7 +7138,7 @@ public Builder setStateTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStateTime(com.google.protobuf.Timestamp value) { if (stateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) + if (((bitField0_ & 0x00004000) != 0) && stateTime_ != null && stateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStateTimeBuilder().mergeFrom(value); @@ -4760,7 +7149,7 @@ public Builder mergeStateTime(com.google.protobuf.Timestamp value) { stateTimeBuilder_.mergeFrom(value); } if (stateTime_ != null) { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00004000; onChanged(); } return this; @@ -4778,7 +7167,7 @@ public Builder mergeStateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearStateTime() { - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00004000); stateTime_ = null; if (stateTimeBuilder_ != null) { stateTimeBuilder_.dispose(); @@ -4800,7 +7189,7 @@ public Builder clearStateTime() { * */ public com.google.protobuf.Timestamp.Builder getStateTimeBuilder() { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00004000; onChanged(); return getStateTimeFieldBuilder().getBuilder(); } @@ -4857,47 +7246,263 @@ public com.google.protobuf.TimestampOrBuilder getStateTimeOrBuilder() { com.google.cloud.vmmigration.v1.ReplicationCycle, com.google.cloud.vmmigration.v1.ReplicationCycle.Builder, com.google.cloud.vmmigration.v1.ReplicationCycleOrBuilder> - currentSyncInfoBuilder_; + currentSyncInfoBuilder_; + + /** + * + * + *
        +     * Output only. Details of the current running replication cycle.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ReplicationCycle current_sync_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the currentSyncInfo field is set. + */ + public boolean hasCurrentSyncInfo() { + return ((bitField0_ & 0x00008000) != 0); + } + + /** + * + * + *
        +     * Output only. Details of the current running replication cycle.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ReplicationCycle current_sync_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The currentSyncInfo. + */ + public com.google.cloud.vmmigration.v1.ReplicationCycle getCurrentSyncInfo() { + if (currentSyncInfoBuilder_ == null) { + return currentSyncInfo_ == null + ? com.google.cloud.vmmigration.v1.ReplicationCycle.getDefaultInstance() + : currentSyncInfo_; + } else { + return currentSyncInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
        +     * Output only. Details of the current running replication cycle.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ReplicationCycle current_sync_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCurrentSyncInfo(com.google.cloud.vmmigration.v1.ReplicationCycle value) { + if (currentSyncInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + currentSyncInfo_ = value; + } else { + currentSyncInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. Details of the current running replication cycle.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ReplicationCycle current_sync_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCurrentSyncInfo( + com.google.cloud.vmmigration.v1.ReplicationCycle.Builder builderForValue) { + if (currentSyncInfoBuilder_ == null) { + currentSyncInfo_ = builderForValue.build(); + } else { + currentSyncInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. Details of the current running replication cycle.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ReplicationCycle current_sync_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCurrentSyncInfo(com.google.cloud.vmmigration.v1.ReplicationCycle value) { + if (currentSyncInfoBuilder_ == null) { + if (((bitField0_ & 0x00008000) != 0) + && currentSyncInfo_ != null + && currentSyncInfo_ + != com.google.cloud.vmmigration.v1.ReplicationCycle.getDefaultInstance()) { + getCurrentSyncInfoBuilder().mergeFrom(value); + } else { + currentSyncInfo_ = value; + } + } else { + currentSyncInfoBuilder_.mergeFrom(value); + } + if (currentSyncInfo_ != null) { + bitField0_ |= 0x00008000; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Output only. Details of the current running replication cycle.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ReplicationCycle current_sync_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCurrentSyncInfo() { + bitField0_ = (bitField0_ & ~0x00008000); + currentSyncInfo_ = null; + if (currentSyncInfoBuilder_ != null) { + currentSyncInfoBuilder_.dispose(); + currentSyncInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. Details of the current running replication cycle.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ReplicationCycle current_sync_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.ReplicationCycle.Builder getCurrentSyncInfoBuilder() { + bitField0_ |= 0x00008000; + onChanged(); + return getCurrentSyncInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Output only. Details of the current running replication cycle.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ReplicationCycle current_sync_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.ReplicationCycleOrBuilder getCurrentSyncInfoOrBuilder() { + if (currentSyncInfoBuilder_ != null) { + return currentSyncInfoBuilder_.getMessageOrBuilder(); + } else { + return currentSyncInfo_ == null + ? com.google.cloud.vmmigration.v1.ReplicationCycle.getDefaultInstance() + : currentSyncInfo_; + } + } + + /** + * + * + *
        +     * Output only. Details of the current running replication cycle.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ReplicationCycle current_sync_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.ReplicationCycle, + com.google.cloud.vmmigration.v1.ReplicationCycle.Builder, + com.google.cloud.vmmigration.v1.ReplicationCycleOrBuilder> + getCurrentSyncInfoFieldBuilder() { + if (currentSyncInfoBuilder_ == null) { + currentSyncInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.ReplicationCycle, + com.google.cloud.vmmigration.v1.ReplicationCycle.Builder, + com.google.cloud.vmmigration.v1.ReplicationCycleOrBuilder>( + getCurrentSyncInfo(), getParentForChildren(), isClean()); + currentSyncInfo_ = null; + } + return currentSyncInfoBuilder_; + } + + private com.google.cloud.vmmigration.v1.ReplicationCycle lastReplicationCycle_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.ReplicationCycle, + com.google.cloud.vmmigration.v1.ReplicationCycle.Builder, + com.google.cloud.vmmigration.v1.ReplicationCycleOrBuilder> + lastReplicationCycleBuilder_; /** * * *
        -     * Output only. The percentage progress of the current running replication
        -     * cycle.
        +     * Output only. Details of the last replication cycle. This will be updated
        +     * whenever a replication cycle is finished and is not to be confused with
        +     * last_sync which is only updated on successful replication cycles.
              * 
        * * - * .google.cloud.vmmigration.v1.ReplicationCycle current_sync_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.vmmigration.v1.ReplicationCycle last_replication_cycle = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return Whether the currentSyncInfo field is set. + * @return Whether the lastReplicationCycle field is set. */ - public boolean hasCurrentSyncInfo() { - return ((bitField0_ & 0x00001000) != 0); + public boolean hasLastReplicationCycle() { + return ((bitField0_ & 0x00010000) != 0); } /** * * *
        -     * Output only. The percentage progress of the current running replication
        -     * cycle.
        +     * Output only. Details of the last replication cycle. This will be updated
        +     * whenever a replication cycle is finished and is not to be confused with
        +     * last_sync which is only updated on successful replication cycles.
              * 
        * * - * .google.cloud.vmmigration.v1.ReplicationCycle current_sync_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.vmmigration.v1.ReplicationCycle last_replication_cycle = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return The currentSyncInfo. + * @return The lastReplicationCycle. */ - public com.google.cloud.vmmigration.v1.ReplicationCycle getCurrentSyncInfo() { - if (currentSyncInfoBuilder_ == null) { - return currentSyncInfo_ == null + public com.google.cloud.vmmigration.v1.ReplicationCycle getLastReplicationCycle() { + if (lastReplicationCycleBuilder_ == null) { + return lastReplicationCycle_ == null ? com.google.cloud.vmmigration.v1.ReplicationCycle.getDefaultInstance() - : currentSyncInfo_; + : lastReplicationCycle_; } else { - return currentSyncInfoBuilder_.getMessage(); + return lastReplicationCycleBuilder_.getMessage(); } } @@ -4905,24 +7510,25 @@ public com.google.cloud.vmmigration.v1.ReplicationCycle getCurrentSyncInfo() { * * *
        -     * Output only. The percentage progress of the current running replication
        -     * cycle.
        +     * Output only. Details of the last replication cycle. This will be updated
        +     * whenever a replication cycle is finished and is not to be confused with
        +     * last_sync which is only updated on successful replication cycles.
              * 
        * * - * .google.cloud.vmmigration.v1.ReplicationCycle current_sync_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.vmmigration.v1.ReplicationCycle last_replication_cycle = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setCurrentSyncInfo(com.google.cloud.vmmigration.v1.ReplicationCycle value) { - if (currentSyncInfoBuilder_ == null) { + public Builder setLastReplicationCycle(com.google.cloud.vmmigration.v1.ReplicationCycle value) { + if (lastReplicationCycleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - currentSyncInfo_ = value; + lastReplicationCycle_ = value; } else { - currentSyncInfoBuilder_.setMessage(value); + lastReplicationCycleBuilder_.setMessage(value); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -4931,22 +7537,23 @@ public Builder setCurrentSyncInfo(com.google.cloud.vmmigration.v1.ReplicationCyc * * *
        -     * Output only. The percentage progress of the current running replication
        -     * cycle.
        +     * Output only. Details of the last replication cycle. This will be updated
        +     * whenever a replication cycle is finished and is not to be confused with
        +     * last_sync which is only updated on successful replication cycles.
              * 
        * * - * .google.cloud.vmmigration.v1.ReplicationCycle current_sync_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.vmmigration.v1.ReplicationCycle last_replication_cycle = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setCurrentSyncInfo( + public Builder setLastReplicationCycle( com.google.cloud.vmmigration.v1.ReplicationCycle.Builder builderForValue) { - if (currentSyncInfoBuilder_ == null) { - currentSyncInfo_ = builderForValue.build(); + if (lastReplicationCycleBuilder_ == null) { + lastReplicationCycle_ = builderForValue.build(); } else { - currentSyncInfoBuilder_.setMessage(builderForValue.build()); + lastReplicationCycleBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -4955,29 +7562,31 @@ public Builder setCurrentSyncInfo( * * *
        -     * Output only. The percentage progress of the current running replication
        -     * cycle.
        +     * Output only. Details of the last replication cycle. This will be updated
        +     * whenever a replication cycle is finished and is not to be confused with
        +     * last_sync which is only updated on successful replication cycles.
              * 
        * * - * .google.cloud.vmmigration.v1.ReplicationCycle current_sync_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.vmmigration.v1.ReplicationCycle last_replication_cycle = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder mergeCurrentSyncInfo(com.google.cloud.vmmigration.v1.ReplicationCycle value) { - if (currentSyncInfoBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) - && currentSyncInfo_ != null - && currentSyncInfo_ + public Builder mergeLastReplicationCycle( + com.google.cloud.vmmigration.v1.ReplicationCycle value) { + if (lastReplicationCycleBuilder_ == null) { + if (((bitField0_ & 0x00010000) != 0) + && lastReplicationCycle_ != null + && lastReplicationCycle_ != com.google.cloud.vmmigration.v1.ReplicationCycle.getDefaultInstance()) { - getCurrentSyncInfoBuilder().mergeFrom(value); + getLastReplicationCycleBuilder().mergeFrom(value); } else { - currentSyncInfo_ = value; + lastReplicationCycle_ = value; } } else { - currentSyncInfoBuilder_.mergeFrom(value); + lastReplicationCycleBuilder_.mergeFrom(value); } - if (currentSyncInfo_ != null) { - bitField0_ |= 0x00001000; + if (lastReplicationCycle_ != null) { + bitField0_ |= 0x00010000; onChanged(); } return this; @@ -4987,20 +7596,21 @@ public Builder mergeCurrentSyncInfo(com.google.cloud.vmmigration.v1.ReplicationC * * *
        -     * Output only. The percentage progress of the current running replication
        -     * cycle.
        +     * Output only. Details of the last replication cycle. This will be updated
        +     * whenever a replication cycle is finished and is not to be confused with
        +     * last_sync which is only updated on successful replication cycles.
              * 
        * * - * .google.cloud.vmmigration.v1.ReplicationCycle current_sync_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.vmmigration.v1.ReplicationCycle last_replication_cycle = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder clearCurrentSyncInfo() { - bitField0_ = (bitField0_ & ~0x00001000); - currentSyncInfo_ = null; - if (currentSyncInfoBuilder_ != null) { - currentSyncInfoBuilder_.dispose(); - currentSyncInfoBuilder_ = null; + public Builder clearLastReplicationCycle() { + bitField0_ = (bitField0_ & ~0x00010000); + lastReplicationCycle_ = null; + if (lastReplicationCycleBuilder_ != null) { + lastReplicationCycleBuilder_.dispose(); + lastReplicationCycleBuilder_ = null; } onChanged(); return this; @@ -5010,39 +7620,43 @@ public Builder clearCurrentSyncInfo() { * * *
        -     * Output only. The percentage progress of the current running replication
        -     * cycle.
        +     * Output only. Details of the last replication cycle. This will be updated
        +     * whenever a replication cycle is finished and is not to be confused with
        +     * last_sync which is only updated on successful replication cycles.
              * 
        * * - * .google.cloud.vmmigration.v1.ReplicationCycle current_sync_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.vmmigration.v1.ReplicationCycle last_replication_cycle = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.vmmigration.v1.ReplicationCycle.Builder getCurrentSyncInfoBuilder() { - bitField0_ |= 0x00001000; + public com.google.cloud.vmmigration.v1.ReplicationCycle.Builder + getLastReplicationCycleBuilder() { + bitField0_ |= 0x00010000; onChanged(); - return getCurrentSyncInfoFieldBuilder().getBuilder(); + return getLastReplicationCycleFieldBuilder().getBuilder(); } /** * * *
        -     * Output only. The percentage progress of the current running replication
        -     * cycle.
        +     * Output only. Details of the last replication cycle. This will be updated
        +     * whenever a replication cycle is finished and is not to be confused with
        +     * last_sync which is only updated on successful replication cycles.
              * 
        * * - * .google.cloud.vmmigration.v1.ReplicationCycle current_sync_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.vmmigration.v1.ReplicationCycle last_replication_cycle = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.vmmigration.v1.ReplicationCycleOrBuilder getCurrentSyncInfoOrBuilder() { - if (currentSyncInfoBuilder_ != null) { - return currentSyncInfoBuilder_.getMessageOrBuilder(); + public com.google.cloud.vmmigration.v1.ReplicationCycleOrBuilder + getLastReplicationCycleOrBuilder() { + if (lastReplicationCycleBuilder_ != null) { + return lastReplicationCycleBuilder_.getMessageOrBuilder(); } else { - return currentSyncInfo_ == null + return lastReplicationCycle_ == null ? com.google.cloud.vmmigration.v1.ReplicationCycle.getDefaultInstance() - : currentSyncInfo_; + : lastReplicationCycle_; } } @@ -5050,29 +7664,30 @@ public com.google.cloud.vmmigration.v1.ReplicationCycleOrBuilder getCurrentSyncI * * *
        -     * Output only. The percentage progress of the current running replication
        -     * cycle.
        +     * Output only. Details of the last replication cycle. This will be updated
        +     * whenever a replication cycle is finished and is not to be confused with
        +     * last_sync which is only updated on successful replication cycles.
              * 
        * * - * .google.cloud.vmmigration.v1.ReplicationCycle current_sync_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.vmmigration.v1.ReplicationCycle last_replication_cycle = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.vmmigration.v1.ReplicationCycle, com.google.cloud.vmmigration.v1.ReplicationCycle.Builder, com.google.cloud.vmmigration.v1.ReplicationCycleOrBuilder> - getCurrentSyncInfoFieldBuilder() { - if (currentSyncInfoBuilder_ == null) { - currentSyncInfoBuilder_ = + getLastReplicationCycleFieldBuilder() { + if (lastReplicationCycleBuilder_ == null) { + lastReplicationCycleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.vmmigration.v1.ReplicationCycle, com.google.cloud.vmmigration.v1.ReplicationCycle.Builder, com.google.cloud.vmmigration.v1.ReplicationCycleOrBuilder>( - getCurrentSyncInfo(), getParentForChildren(), isClean()); - currentSyncInfo_ = null; + getLastReplicationCycle(), getParentForChildren(), isClean()); + lastReplicationCycle_ = null; } - return currentSyncInfoBuilder_; + return lastReplicationCycleBuilder_; } private java.lang.Object group_ = ""; @@ -5152,7 +7767,7 @@ public Builder setGroup(java.lang.String value) { throw new NullPointerException(); } group_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -5174,7 +7789,7 @@ public Builder setGroup(java.lang.String value) { */ public Builder clearGroup() { group_ = getDefaultInstance().getGroup(); - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00020000); onChanged(); return this; } @@ -5201,7 +7816,7 @@ public Builder setGroupBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); group_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -5223,98 +7838,300 @@ private com.google.protobuf.MapField interna if (!labels_.isMutable()) { labels_ = labels_.copy(); } - bitField0_ |= 0x00004000; - onChanged(); - return labels_; - } - - public int getLabelsCount() { - return internalGetLabels().getMap().size(); + bitField0_ |= 0x00040000; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
        +     * The labels of the migrating VM.
        +     * 
        + * + * map<string, string> labels = 16; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
        +     * The labels of the migrating VM.
        +     * 
        + * + * map<string, string> labels = 16; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
        +     * The labels of the migrating VM.
        +     * 
        + * + * map<string, string> labels = 16; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
        +     * The labels of the migrating VM.
        +     * 
        + * + * map<string, string> labels = 16; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00040000); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
        +     * The labels of the migrating VM.
        +     * 
        + * + * map<string, string> labels = 16; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00040000; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
        +     * The labels of the migrating VM.
        +     * 
        + * + * map<string, string> labels = 16; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00040000; + return this; + } + + /** + * + * + *
        +     * The labels of the migrating VM.
        +     * 
        + * + * map<string, string> labels = 16; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00040000; + return this; + } + + private java.util.List recentCloneJobs_ = + java.util.Collections.emptyList(); + + private void ensureRecentCloneJobsIsMutable() { + if (!((bitField0_ & 0x00080000) != 0)) { + recentCloneJobs_ = + new java.util.ArrayList(recentCloneJobs_); + bitField0_ |= 0x00080000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.CloneJob, + com.google.cloud.vmmigration.v1.CloneJob.Builder, + com.google.cloud.vmmigration.v1.CloneJobOrBuilder> + recentCloneJobsBuilder_; + + /** + * + * + *
        +     * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
        +     * performed on the migrating VM. This field holds the vm's last completed
        +     * clone job and the vm's running clone job, if one exists.
        +     * Note: To have this field populated you need to explicitly request it via
        +     * the "view" parameter of the Get/List request.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getRecentCloneJobsList() { + if (recentCloneJobsBuilder_ == null) { + return java.util.Collections.unmodifiableList(recentCloneJobs_); + } else { + return recentCloneJobsBuilder_.getMessageList(); + } } /** * * *
        -     * The labels of the migrating VM.
        +     * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
        +     * performed on the migrating VM. This field holds the vm's last completed
        +     * clone job and the vm's running clone job, if one exists.
        +     * Note: To have this field populated you need to explicitly request it via
        +     * the "view" parameter of the Get/List request.
              * 
        * - * map<string, string> labels = 16; + * + * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public int getRecentCloneJobsCount() { + if (recentCloneJobsBuilder_ == null) { + return recentCloneJobs_.size(); + } else { + return recentCloneJobsBuilder_.getCount(); } - return internalGetLabels().getMap().containsKey(key); - } - - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); } /** * * *
        -     * The labels of the migrating VM.
        +     * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
        +     * performed on the migrating VM. This field holds the vm's last completed
        +     * clone job and the vm's running clone job, if one exists.
        +     * Note: To have this field populated you need to explicitly request it via
        +     * the "view" parameter of the Get/List request.
              * 
        * - * map<string, string> labels = 16; + * + * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); + public com.google.cloud.vmmigration.v1.CloneJob getRecentCloneJobs(int index) { + if (recentCloneJobsBuilder_ == null) { + return recentCloneJobs_.get(index); + } else { + return recentCloneJobsBuilder_.getMessage(index); + } } /** * * *
        -     * The labels of the migrating VM.
        +     * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
        +     * performed on the migrating VM. This field holds the vm's last completed
        +     * clone job and the vm's running clone job, if one exists.
        +     * Note: To have this field populated you need to explicitly request it via
        +     * the "view" parameter of the Get/List request.
              * 
        * - * map<string, string> labels = 16; + * + * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); + public Builder setRecentCloneJobs(int index, com.google.cloud.vmmigration.v1.CloneJob value) { + if (recentCloneJobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecentCloneJobsIsMutable(); + recentCloneJobs_.set(index, value); + onChanged(); + } else { + recentCloneJobsBuilder_.setMessage(index, value); } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; + return this; } /** * * *
        -     * The labels of the migrating VM.
        +     * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
        +     * performed on the migrating VM. This field holds the vm's last completed
        +     * clone job and the vm's running clone job, if one exists.
        +     * Note: To have this field populated you need to explicitly request it via
        +     * the "view" parameter of the Get/List request.
              * 
        * - * map<string, string> labels = 16; + * + * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); + public Builder setRecentCloneJobs( + int index, com.google.cloud.vmmigration.v1.CloneJob.Builder builderForValue) { + if (recentCloneJobsBuilder_ == null) { + ensureRecentCloneJobsIsMutable(); + recentCloneJobs_.set(index, builderForValue.build()); + onChanged(); + } else { + recentCloneJobsBuilder_.setMessage(index, builderForValue.build()); } - return map.get(key); - } - - public Builder clearLabels() { - bitField0_ = (bitField0_ & ~0x00004000); - internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -5322,44 +8139,84 @@ public Builder clearLabels() { * * *
        -     * The labels of the migrating VM.
        +     * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
        +     * performed on the migrating VM. This field holds the vm's last completed
        +     * clone job and the vm's running clone job, if one exists.
        +     * Note: To have this field populated you need to explicitly request it via
        +     * the "view" parameter of the Get/List request.
              * 
        * - * map<string, string> labels = 16; + * + * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public Builder addRecentCloneJobs(com.google.cloud.vmmigration.v1.CloneJob value) { + if (recentCloneJobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecentCloneJobsIsMutable(); + recentCloneJobs_.add(value); + onChanged(); + } else { + recentCloneJobsBuilder_.addMessage(value); } - internalGetMutableLabels().getMutableMap().remove(key); return this; } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableLabels() { - bitField0_ |= 0x00004000; - return internalGetMutableLabels().getMutableMap(); + /** + * + * + *
        +     * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
        +     * performed on the migrating VM. This field holds the vm's last completed
        +     * clone job and the vm's running clone job, if one exists.
        +     * Note: To have this field populated you need to explicitly request it via
        +     * the "view" parameter of the Get/List request.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addRecentCloneJobs(int index, com.google.cloud.vmmigration.v1.CloneJob value) { + if (recentCloneJobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecentCloneJobsIsMutable(); + recentCloneJobs_.add(index, value); + onChanged(); + } else { + recentCloneJobsBuilder_.addMessage(index, value); + } + return this; } /** * * *
        -     * The labels of the migrating VM.
        +     * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
        +     * performed on the migrating VM. This field holds the vm's last completed
        +     * clone job and the vm's running clone job, if one exists.
        +     * Note: To have this field populated you need to explicitly request it via
        +     * the "view" parameter of the Get/List request.
              * 
        * - * map<string, string> labels = 16; + * + * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); + public Builder addRecentCloneJobs( + com.google.cloud.vmmigration.v1.CloneJob.Builder builderForValue) { + if (recentCloneJobsBuilder_ == null) { + ensureRecentCloneJobsIsMutable(); + recentCloneJobs_.add(builderForValue.build()); + onChanged(); + } else { + recentCloneJobsBuilder_.addMessage(builderForValue.build()); } - internalGetMutableLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00004000; return this; } @@ -5367,34 +8224,56 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { * * *
        -     * The labels of the migrating VM.
        +     * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
        +     * performed on the migrating VM. This field holds the vm's last completed
        +     * clone job and the vm's running clone job, if one exists.
        +     * Note: To have this field populated you need to explicitly request it via
        +     * the "view" parameter of the Get/List request.
              * 
        * - * map<string, string> labels = 16; + * + * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00004000; + public Builder addRecentCloneJobs( + int index, com.google.cloud.vmmigration.v1.CloneJob.Builder builderForValue) { + if (recentCloneJobsBuilder_ == null) { + ensureRecentCloneJobsIsMutable(); + recentCloneJobs_.add(index, builderForValue.build()); + onChanged(); + } else { + recentCloneJobsBuilder_.addMessage(index, builderForValue.build()); + } return this; } - private java.util.List recentCloneJobs_ = - java.util.Collections.emptyList(); - - private void ensureRecentCloneJobsIsMutable() { - if (!((bitField0_ & 0x00008000) != 0)) { - recentCloneJobs_ = - new java.util.ArrayList(recentCloneJobs_); - bitField0_ |= 0x00008000; + /** + * + * + *
        +     * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
        +     * performed on the migrating VM. This field holds the vm's last completed
        +     * clone job and the vm's running clone job, if one exists.
        +     * Note: To have this field populated you need to explicitly request it via
        +     * the "view" parameter of the Get/List request.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllRecentCloneJobs( + java.lang.Iterable values) { + if (recentCloneJobsBuilder_ == null) { + ensureRecentCloneJobsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, recentCloneJobs_); + onChanged(); + } else { + recentCloneJobsBuilder_.addAllMessages(values); } + return this; } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vmmigration.v1.CloneJob, - com.google.cloud.vmmigration.v1.CloneJob.Builder, - com.google.cloud.vmmigration.v1.CloneJobOrBuilder> - recentCloneJobsBuilder_; - /** * * @@ -5410,12 +8289,15 @@ private void ensureRecentCloneJobsIsMutable() { * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public java.util.List getRecentCloneJobsList() { + public Builder clearRecentCloneJobs() { if (recentCloneJobsBuilder_ == null) { - return java.util.Collections.unmodifiableList(recentCloneJobs_); + recentCloneJobs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00080000); + onChanged(); } else { - return recentCloneJobsBuilder_.getMessageList(); + recentCloneJobsBuilder_.clear(); } + return this; } /** @@ -5433,12 +8315,15 @@ public java.util.List getRecentCloneJo * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public int getRecentCloneJobsCount() { + public Builder removeRecentCloneJobs(int index) { if (recentCloneJobsBuilder_ == null) { - return recentCloneJobs_.size(); + ensureRecentCloneJobsIsMutable(); + recentCloneJobs_.remove(index); + onChanged(); } else { - return recentCloneJobsBuilder_.getCount(); + recentCloneJobsBuilder_.remove(index); } + return this; } /** @@ -5456,12 +8341,8 @@ public int getRecentCloneJobsCount() { * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.vmmigration.v1.CloneJob getRecentCloneJobs(int index) { - if (recentCloneJobsBuilder_ == null) { - return recentCloneJobs_.get(index); - } else { - return recentCloneJobsBuilder_.getMessage(index); - } + public com.google.cloud.vmmigration.v1.CloneJob.Builder getRecentCloneJobsBuilder(int index) { + return getRecentCloneJobsFieldBuilder().getBuilder(index); } /** @@ -5479,18 +8360,13 @@ public com.google.cloud.vmmigration.v1.CloneJob getRecentCloneJobs(int index) { * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setRecentCloneJobs(int index, com.google.cloud.vmmigration.v1.CloneJob value) { + public com.google.cloud.vmmigration.v1.CloneJobOrBuilder getRecentCloneJobsOrBuilder( + int index) { if (recentCloneJobsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRecentCloneJobsIsMutable(); - recentCloneJobs_.set(index, value); - onChanged(); + return recentCloneJobs_.get(index); } else { - recentCloneJobsBuilder_.setMessage(index, value); + return recentCloneJobsBuilder_.getMessageOrBuilder(index); } - return this; } /** @@ -5508,16 +8384,13 @@ public Builder setRecentCloneJobs(int index, com.google.cloud.vmmigration.v1.Clo * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setRecentCloneJobs( - int index, com.google.cloud.vmmigration.v1.CloneJob.Builder builderForValue) { - if (recentCloneJobsBuilder_ == null) { - ensureRecentCloneJobsIsMutable(); - recentCloneJobs_.set(index, builderForValue.build()); - onChanged(); + public java.util.List + getRecentCloneJobsOrBuilderList() { + if (recentCloneJobsBuilder_ != null) { + return recentCloneJobsBuilder_.getMessageOrBuilderList(); } else { - recentCloneJobsBuilder_.setMessage(index, builderForValue.build()); + return java.util.Collections.unmodifiableList(recentCloneJobs_); } - return this; } /** @@ -5535,18 +8408,9 @@ public Builder setRecentCloneJobs( * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder addRecentCloneJobs(com.google.cloud.vmmigration.v1.CloneJob value) { - if (recentCloneJobsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRecentCloneJobsIsMutable(); - recentCloneJobs_.add(value); - onChanged(); - } else { - recentCloneJobsBuilder_.addMessage(value); - } - return this; + public com.google.cloud.vmmigration.v1.CloneJob.Builder addRecentCloneJobsBuilder() { + return getRecentCloneJobsFieldBuilder() + .addBuilder(com.google.cloud.vmmigration.v1.CloneJob.getDefaultInstance()); } /** @@ -5564,18 +8428,9 @@ public Builder addRecentCloneJobs(com.google.cloud.vmmigration.v1.CloneJob value * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder addRecentCloneJobs(int index, com.google.cloud.vmmigration.v1.CloneJob value) { - if (recentCloneJobsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRecentCloneJobsIsMutable(); - recentCloneJobs_.add(index, value); - onChanged(); - } else { - recentCloneJobsBuilder_.addMessage(index, value); - } - return this; + public com.google.cloud.vmmigration.v1.CloneJob.Builder addRecentCloneJobsBuilder(int index) { + return getRecentCloneJobsFieldBuilder() + .addBuilder(index, com.google.cloud.vmmigration.v1.CloneJob.getDefaultInstance()); } /** @@ -5593,15 +8448,93 @@ public Builder addRecentCloneJobs(int index, com.google.cloud.vmmigration.v1.Clo * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder addRecentCloneJobs( - com.google.cloud.vmmigration.v1.CloneJob.Builder builderForValue) { + public java.util.List + getRecentCloneJobsBuilderList() { + return getRecentCloneJobsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.CloneJob, + com.google.cloud.vmmigration.v1.CloneJob.Builder, + com.google.cloud.vmmigration.v1.CloneJobOrBuilder> + getRecentCloneJobsFieldBuilder() { if (recentCloneJobsBuilder_ == null) { - ensureRecentCloneJobsIsMutable(); - recentCloneJobs_.add(builderForValue.build()); - onChanged(); + recentCloneJobsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.CloneJob, + com.google.cloud.vmmigration.v1.CloneJob.Builder, + com.google.cloud.vmmigration.v1.CloneJobOrBuilder>( + recentCloneJobs_, + ((bitField0_ & 0x00080000) != 0), + getParentForChildren(), + isClean()); + recentCloneJobs_ = null; + } + return recentCloneJobsBuilder_; + } + + private com.google.rpc.Status error_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorBuilder_; + + /** + * + * + *
        +     * Output only. Provides details on the state of the Migrating VM in case of
        +     * an error in replication.
        +     * 
        + * + * .google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the error field is set. + */ + public boolean hasError() { + return ((bitField0_ & 0x00100000) != 0); + } + + /** + * + * + *
        +     * Output only. Provides details on the state of the Migrating VM in case of
        +     * an error in replication.
        +     * 
        + * + * .google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The error. + */ + public com.google.rpc.Status getError() { + if (errorBuilder_ == null) { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } else { - recentCloneJobsBuilder_.addMessage(builderForValue.build()); + return errorBuilder_.getMessage(); + } + } + + /** + * + * + *
        +     * Output only. Provides details on the state of the Migrating VM in case of
        +     * an error in replication.
        +     * 
        + * + * .google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + error_ = value; + } else { + errorBuilder_.setMessage(value); } + bitField0_ |= 0x00100000; + onChanged(); return this; } @@ -5609,26 +8542,20 @@ public Builder addRecentCloneJobs( * * *
        -     * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
        -     * performed on the migrating VM. This field holds the vm's last completed
        -     * clone job and the vm's running clone job, if one exists.
        -     * Note: To have this field populated you need to explicitly request it via
        -     * the "view" parameter of the Get/List request.
        +     * Output only. Provides details on the state of the Migrating VM in case of
        +     * an error in replication.
              * 
        * - * - * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addRecentCloneJobs( - int index, com.google.cloud.vmmigration.v1.CloneJob.Builder builderForValue) { - if (recentCloneJobsBuilder_ == null) { - ensureRecentCloneJobsIsMutable(); - recentCloneJobs_.add(index, builderForValue.build()); - onChanged(); + public Builder setError(com.google.rpc.Status.Builder builderForValue) { + if (errorBuilder_ == null) { + error_ = builderForValue.build(); } else { - recentCloneJobsBuilder_.addMessage(index, builderForValue.build()); + errorBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00100000; + onChanged(); return this; } @@ -5636,26 +8563,49 @@ public Builder addRecentCloneJobs( * * *
        -     * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
        -     * performed on the migrating VM. This field holds the vm's last completed
        -     * clone job and the vm's running clone job, if one exists.
        -     * Note: To have this field populated you need to explicitly request it via
        -     * the "view" parameter of the Get/List request.
        +     * Output only. Provides details on the state of the Migrating VM in case of
        +     * an error in replication.
              * 
        * - * - * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addAllRecentCloneJobs( - java.lang.Iterable values) { - if (recentCloneJobsBuilder_ == null) { - ensureRecentCloneJobsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, recentCloneJobs_); - onChanged(); + public Builder mergeError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (((bitField0_ & 0x00100000) != 0) + && error_ != null + && error_ != com.google.rpc.Status.getDefaultInstance()) { + getErrorBuilder().mergeFrom(value); + } else { + error_ = value; + } } else { - recentCloneJobsBuilder_.addAllMessages(values); + errorBuilder_.mergeFrom(value); + } + if (error_ != null) { + bitField0_ |= 0x00100000; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Output only. Provides details on the state of the Migrating VM in case of
        +     * an error in replication.
        +     * 
        + * + * .google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearError() { + bitField0_ = (bitField0_ & ~0x00100000); + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); + errorBuilder_ = null; } + onChanged(); return this; } @@ -5663,94 +8613,120 @@ public Builder addAllRecentCloneJobs( * * *
        -     * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
        -     * performed on the migrating VM. This field holds the vm's last completed
        -     * clone job and the vm's running clone job, if one exists.
        -     * Note: To have this field populated you need to explicitly request it via
        -     * the "view" parameter of the Get/List request.
        +     * Output only. Provides details on the state of the Migrating VM in case of
        +     * an error in replication.
        +     * 
        + * + * .google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.rpc.Status.Builder getErrorBuilder() { + bitField0_ |= 0x00100000; + onChanged(); + return getErrorFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Output only. Provides details on the state of the Migrating VM in case of
        +     * an error in replication.
              * 
        * - * - * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder clearRecentCloneJobs() { - if (recentCloneJobsBuilder_ == null) { - recentCloneJobs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00008000); - onChanged(); + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + if (errorBuilder_ != null) { + return errorBuilder_.getMessageOrBuilder(); } else { - recentCloneJobsBuilder_.clear(); + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } - return this; } /** * * *
        -     * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
        -     * performed on the migrating VM. This field holds the vm's last completed
        -     * clone job and the vm's running clone job, if one exists.
        -     * Note: To have this field populated you need to explicitly request it via
        -     * the "view" parameter of the Get/List request.
        +     * Output only. Provides details on the state of the Migrating VM in case of
        +     * an error in replication.
              * 
        * - * - * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder removeRecentCloneJobs(int index) { - if (recentCloneJobsBuilder_ == null) { - ensureRecentCloneJobsIsMutable(); - recentCloneJobs_.remove(index); - onChanged(); - } else { - recentCloneJobsBuilder_.remove(index); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + errorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean()); + error_ = null; + } + return errorBuilder_; + } + + private java.util.List recentCutoverJobs_ = + java.util.Collections.emptyList(); + + private void ensureRecentCutoverJobsIsMutable() { + if (!((bitField0_ & 0x00200000) != 0)) { + recentCutoverJobs_ = + new java.util.ArrayList(recentCutoverJobs_); + bitField0_ |= 0x00200000; } - return this; } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.CutoverJob, + com.google.cloud.vmmigration.v1.CutoverJob.Builder, + com.google.cloud.vmmigration.v1.CutoverJobOrBuilder> + recentCutoverJobsBuilder_; + /** * * *
        -     * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
        -     * performed on the migrating VM. This field holds the vm's last completed
        -     * clone job and the vm's running clone job, if one exists.
        +     * Output only. The recent cutover jobs performed on the migrating VM.
        +     * This field holds the vm's last completed cutover job and the vm's
        +     * running cutover job, if one exists.
              * Note: To have this field populated you need to explicitly request it via
              * the "view" parameter of the Get/List request.
              * 
        * * - * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.vmmigration.v1.CloneJob.Builder getRecentCloneJobsBuilder(int index) { - return getRecentCloneJobsFieldBuilder().getBuilder(index); + public java.util.List getRecentCutoverJobsList() { + if (recentCutoverJobsBuilder_ == null) { + return java.util.Collections.unmodifiableList(recentCutoverJobs_); + } else { + return recentCutoverJobsBuilder_.getMessageList(); + } } /** * * *
        -     * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
        -     * performed on the migrating VM. This field holds the vm's last completed
        -     * clone job and the vm's running clone job, if one exists.
        +     * Output only. The recent cutover jobs performed on the migrating VM.
        +     * This field holds the vm's last completed cutover job and the vm's
        +     * running cutover job, if one exists.
              * Note: To have this field populated you need to explicitly request it via
              * the "view" parameter of the Get/List request.
              * 
        * * - * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.vmmigration.v1.CloneJobOrBuilder getRecentCloneJobsOrBuilder( - int index) { - if (recentCloneJobsBuilder_ == null) { - return recentCloneJobs_.get(index); + public int getRecentCutoverJobsCount() { + if (recentCutoverJobsBuilder_ == null) { + return recentCutoverJobs_.size(); } else { - return recentCloneJobsBuilder_.getMessageOrBuilder(index); + return recentCutoverJobsBuilder_.getCount(); } } @@ -5758,23 +8734,22 @@ public com.google.cloud.vmmigration.v1.CloneJobOrBuilder getRecentCloneJobsOrBui * * *
        -     * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
        -     * performed on the migrating VM. This field holds the vm's last completed
        -     * clone job and the vm's running clone job, if one exists.
        +     * Output only. The recent cutover jobs performed on the migrating VM.
        +     * This field holds the vm's last completed cutover job and the vm's
        +     * running cutover job, if one exists.
              * Note: To have this field populated you need to explicitly request it via
              * the "view" parameter of the Get/List request.
              * 
        * * - * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public java.util.List - getRecentCloneJobsOrBuilderList() { - if (recentCloneJobsBuilder_ != null) { - return recentCloneJobsBuilder_.getMessageOrBuilderList(); + public com.google.cloud.vmmigration.v1.CutoverJob getRecentCutoverJobs(int index) { + if (recentCutoverJobsBuilder_ == null) { + return recentCutoverJobs_.get(index); } else { - return java.util.Collections.unmodifiableList(recentCloneJobs_); + return recentCutoverJobsBuilder_.getMessage(index); } } @@ -5782,144 +8757,169 @@ public com.google.cloud.vmmigration.v1.CloneJobOrBuilder getRecentCloneJobsOrBui * * *
        -     * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
        -     * performed on the migrating VM. This field holds the vm's last completed
        -     * clone job and the vm's running clone job, if one exists.
        +     * Output only. The recent cutover jobs performed on the migrating VM.
        +     * This field holds the vm's last completed cutover job and the vm's
        +     * running cutover job, if one exists.
              * Note: To have this field populated you need to explicitly request it via
              * the "view" parameter of the Get/List request.
              * 
        * * - * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.vmmigration.v1.CloneJob.Builder addRecentCloneJobsBuilder() { - return getRecentCloneJobsFieldBuilder() - .addBuilder(com.google.cloud.vmmigration.v1.CloneJob.getDefaultInstance()); + public Builder setRecentCutoverJobs( + int index, com.google.cloud.vmmigration.v1.CutoverJob value) { + if (recentCutoverJobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecentCutoverJobsIsMutable(); + recentCutoverJobs_.set(index, value); + onChanged(); + } else { + recentCutoverJobsBuilder_.setMessage(index, value); + } + return this; } /** * * *
        -     * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
        -     * performed on the migrating VM. This field holds the vm's last completed
        -     * clone job and the vm's running clone job, if one exists.
        +     * Output only. The recent cutover jobs performed on the migrating VM.
        +     * This field holds the vm's last completed cutover job and the vm's
        +     * running cutover job, if one exists.
              * Note: To have this field populated you need to explicitly request it via
              * the "view" parameter of the Get/List request.
              * 
        * * - * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.vmmigration.v1.CloneJob.Builder addRecentCloneJobsBuilder(int index) { - return getRecentCloneJobsFieldBuilder() - .addBuilder(index, com.google.cloud.vmmigration.v1.CloneJob.getDefaultInstance()); + public Builder setRecentCutoverJobs( + int index, com.google.cloud.vmmigration.v1.CutoverJob.Builder builderForValue) { + if (recentCutoverJobsBuilder_ == null) { + ensureRecentCutoverJobsIsMutable(); + recentCutoverJobs_.set(index, builderForValue.build()); + onChanged(); + } else { + recentCutoverJobsBuilder_.setMessage(index, builderForValue.build()); + } + return this; } /** * * *
        -     * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
        -     * performed on the migrating VM. This field holds the vm's last completed
        -     * clone job and the vm's running clone job, if one exists.
        +     * Output only. The recent cutover jobs performed on the migrating VM.
        +     * This field holds the vm's last completed cutover job and the vm's
        +     * running cutover job, if one exists.
              * Note: To have this field populated you need to explicitly request it via
              * the "view" parameter of the Get/List request.
              * 
        * * - * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public java.util.List - getRecentCloneJobsBuilderList() { - return getRecentCloneJobsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vmmigration.v1.CloneJob, - com.google.cloud.vmmigration.v1.CloneJob.Builder, - com.google.cloud.vmmigration.v1.CloneJobOrBuilder> - getRecentCloneJobsFieldBuilder() { - if (recentCloneJobsBuilder_ == null) { - recentCloneJobsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vmmigration.v1.CloneJob, - com.google.cloud.vmmigration.v1.CloneJob.Builder, - com.google.cloud.vmmigration.v1.CloneJobOrBuilder>( - recentCloneJobs_, - ((bitField0_ & 0x00008000) != 0), - getParentForChildren(), - isClean()); - recentCloneJobs_ = null; + public Builder addRecentCutoverJobs(com.google.cloud.vmmigration.v1.CutoverJob value) { + if (recentCutoverJobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecentCutoverJobsIsMutable(); + recentCutoverJobs_.add(value); + onChanged(); + } else { + recentCutoverJobsBuilder_.addMessage(value); } - return recentCloneJobsBuilder_; + return this; } - private com.google.rpc.Status error_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - errorBuilder_; - /** * * *
        -     * Output only. Provides details on the state of the Migrating VM in case of
        -     * an error in replication.
        +     * Output only. The recent cutover jobs performed on the migrating VM.
        +     * This field holds the vm's last completed cutover job and the vm's
        +     * running cutover job, if one exists.
        +     * Note: To have this field populated you need to explicitly request it via
        +     * the "view" parameter of the Get/List request.
              * 
        * - * .google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return Whether the error field is set. + * + * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public boolean hasError() { - return ((bitField0_ & 0x00010000) != 0); + public Builder addRecentCutoverJobs( + int index, com.google.cloud.vmmigration.v1.CutoverJob value) { + if (recentCutoverJobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecentCutoverJobsIsMutable(); + recentCutoverJobs_.add(index, value); + onChanged(); + } else { + recentCutoverJobsBuilder_.addMessage(index, value); + } + return this; } /** * * *
        -     * Output only. Provides details on the state of the Migrating VM in case of
        -     * an error in replication.
        +     * Output only. The recent cutover jobs performed on the migrating VM.
        +     * This field holds the vm's last completed cutover job and the vm's
        +     * running cutover job, if one exists.
        +     * Note: To have this field populated you need to explicitly request it via
        +     * the "view" parameter of the Get/List request.
              * 
        * - * .google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The error. + * + * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.rpc.Status getError() { - if (errorBuilder_ == null) { - return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + public Builder addRecentCutoverJobs( + com.google.cloud.vmmigration.v1.CutoverJob.Builder builderForValue) { + if (recentCutoverJobsBuilder_ == null) { + ensureRecentCutoverJobsIsMutable(); + recentCutoverJobs_.add(builderForValue.build()); + onChanged(); } else { - return errorBuilder_.getMessage(); + recentCutoverJobsBuilder_.addMessage(builderForValue.build()); } + return this; } /** * * *
        -     * Output only. Provides details on the state of the Migrating VM in case of
        -     * an error in replication.
        +     * Output only. The recent cutover jobs performed on the migrating VM.
        +     * This field holds the vm's last completed cutover job and the vm's
        +     * running cutover job, if one exists.
        +     * Note: To have this field populated you need to explicitly request it via
        +     * the "view" parameter of the Get/List request.
              * 
        * - * .google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setError(com.google.rpc.Status value) { - if (errorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - error_ = value; + public Builder addRecentCutoverJobs( + int index, com.google.cloud.vmmigration.v1.CutoverJob.Builder builderForValue) { + if (recentCutoverJobsBuilder_ == null) { + ensureRecentCutoverJobsIsMutable(); + recentCutoverJobs_.add(index, builderForValue.build()); + onChanged(); } else { - errorBuilder_.setMessage(value); + recentCutoverJobsBuilder_.addMessage(index, builderForValue.build()); } - bitField0_ |= 0x00010000; - onChanged(); return this; } @@ -5927,20 +8927,26 @@ public Builder setError(com.google.rpc.Status value) { * * *
        -     * Output only. Provides details on the state of the Migrating VM in case of
        -     * an error in replication.
        +     * Output only. The recent cutover jobs performed on the migrating VM.
        +     * This field holds the vm's last completed cutover job and the vm's
        +     * running cutover job, if one exists.
        +     * Note: To have this field populated you need to explicitly request it via
        +     * the "view" parameter of the Get/List request.
              * 
        * - * .google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setError(com.google.rpc.Status.Builder builderForValue) { - if (errorBuilder_ == null) { - error_ = builderForValue.build(); + public Builder addAllRecentCutoverJobs( + java.lang.Iterable values) { + if (recentCutoverJobsBuilder_ == null) { + ensureRecentCutoverJobsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, recentCutoverJobs_); + onChanged(); } else { - errorBuilder_.setMessage(builderForValue.build()); + recentCutoverJobsBuilder_.addAllMessages(values); } - bitField0_ |= 0x00010000; - onChanged(); return this; } @@ -5948,27 +8954,24 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { * * *
        -     * Output only. Provides details on the state of the Migrating VM in case of
        -     * an error in replication.
        +     * Output only. The recent cutover jobs performed on the migrating VM.
        +     * This field holds the vm's last completed cutover job and the vm's
        +     * running cutover job, if one exists.
        +     * Note: To have this field populated you need to explicitly request it via
        +     * the "view" parameter of the Get/List request.
              * 
        * - * .google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder mergeError(com.google.rpc.Status value) { - if (errorBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0) - && error_ != null - && error_ != com.google.rpc.Status.getDefaultInstance()) { - getErrorBuilder().mergeFrom(value); - } else { - error_ = value; - } - } else { - errorBuilder_.mergeFrom(value); - } - if (error_ != null) { - bitField0_ |= 0x00010000; + public Builder clearRecentCutoverJobs() { + if (recentCutoverJobsBuilder_ == null) { + recentCutoverJobs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00200000); onChanged(); + } else { + recentCutoverJobsBuilder_.clear(); } return this; } @@ -5977,20 +8980,25 @@ public Builder mergeError(com.google.rpc.Status value) { * * *
        -     * Output only. Provides details on the state of the Migrating VM in case of
        -     * an error in replication.
        +     * Output only. The recent cutover jobs performed on the migrating VM.
        +     * This field holds the vm's last completed cutover job and the vm's
        +     * running cutover job, if one exists.
        +     * Note: To have this field populated you need to explicitly request it via
        +     * the "view" parameter of the Get/List request.
              * 
        * - * .google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder clearError() { - bitField0_ = (bitField0_ & ~0x00010000); - error_ = null; - if (errorBuilder_ != null) { - errorBuilder_.dispose(); - errorBuilder_ = null; + public Builder removeRecentCutoverJobs(int index) { + if (recentCutoverJobsBuilder_ == null) { + ensureRecentCutoverJobsIsMutable(); + recentCutoverJobs_.remove(index); + onChanged(); + } else { + recentCutoverJobsBuilder_.remove(index); } - onChanged(); return this; } @@ -5998,33 +9006,43 @@ public Builder clearError() { * * *
        -     * Output only. Provides details on the state of the Migrating VM in case of
        -     * an error in replication.
        +     * Output only. The recent cutover jobs performed on the migrating VM.
        +     * This field holds the vm's last completed cutover job and the vm's
        +     * running cutover job, if one exists.
        +     * Note: To have this field populated you need to explicitly request it via
        +     * the "view" parameter of the Get/List request.
              * 
        * - * .google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.rpc.Status.Builder getErrorBuilder() { - bitField0_ |= 0x00010000; - onChanged(); - return getErrorFieldBuilder().getBuilder(); + public com.google.cloud.vmmigration.v1.CutoverJob.Builder getRecentCutoverJobsBuilder( + int index) { + return getRecentCutoverJobsFieldBuilder().getBuilder(index); } /** * * *
        -     * Output only. Provides details on the state of the Migrating VM in case of
        -     * an error in replication.
        +     * Output only. The recent cutover jobs performed on the migrating VM.
        +     * This field holds the vm's last completed cutover job and the vm's
        +     * running cutover job, if one exists.
        +     * Note: To have this field populated you need to explicitly request it via
        +     * the "view" parameter of the Get/List request.
              * 
        * - * .google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { - if (errorBuilder_ != null) { - return errorBuilder_.getMessageOrBuilder(); + public com.google.cloud.vmmigration.v1.CutoverJobOrBuilder getRecentCutoverJobsOrBuilder( + int index) { + if (recentCutoverJobsBuilder_ == null) { + return recentCutoverJobs_.get(index); } else { - return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + return recentCutoverJobsBuilder_.getMessageOrBuilder(index); } } @@ -6032,43 +9050,26 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { * * *
        -     * Output only. Provides details on the state of the Migrating VM in case of
        -     * an error in replication.
        +     * Output only. The recent cutover jobs performed on the migrating VM.
        +     * This field holds the vm's last completed cutover job and the vm's
        +     * running cutover job, if one exists.
        +     * Note: To have this field populated you need to explicitly request it via
        +     * the "view" parameter of the Get/List request.
              * 
        * - * .google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - getErrorFieldBuilder() { - if (errorBuilder_ == null) { - errorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, - com.google.rpc.Status.Builder, - com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean()); - error_ = null; - } - return errorBuilder_; - } - - private java.util.List recentCutoverJobs_ = - java.util.Collections.emptyList(); - - private void ensureRecentCutoverJobsIsMutable() { - if (!((bitField0_ & 0x00020000) != 0)) { - recentCutoverJobs_ = - new java.util.ArrayList(recentCutoverJobs_); - bitField0_ |= 0x00020000; + public java.util.List + getRecentCutoverJobsOrBuilderList() { + if (recentCutoverJobsBuilder_ != null) { + return recentCutoverJobsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(recentCutoverJobs_); } } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vmmigration.v1.CutoverJob, - com.google.cloud.vmmigration.v1.CutoverJob.Builder, - com.google.cloud.vmmigration.v1.CutoverJobOrBuilder> - recentCutoverJobsBuilder_; - /** * * @@ -6084,12 +9085,9 @@ private void ensureRecentCutoverJobsIsMutable() { * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public java.util.List getRecentCutoverJobsList() { - if (recentCutoverJobsBuilder_ == null) { - return java.util.Collections.unmodifiableList(recentCutoverJobs_); - } else { - return recentCutoverJobsBuilder_.getMessageList(); - } + public com.google.cloud.vmmigration.v1.CutoverJob.Builder addRecentCutoverJobsBuilder() { + return getRecentCutoverJobsFieldBuilder() + .addBuilder(com.google.cloud.vmmigration.v1.CutoverJob.getDefaultInstance()); } /** @@ -6107,12 +9105,10 @@ public java.util.List getRecentCutov * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public int getRecentCutoverJobsCount() { - if (recentCutoverJobsBuilder_ == null) { - return recentCutoverJobs_.size(); - } else { - return recentCutoverJobsBuilder_.getCount(); - } + public com.google.cloud.vmmigration.v1.CutoverJob.Builder addRecentCutoverJobsBuilder( + int index) { + return getRecentCutoverJobsFieldBuilder() + .addBuilder(index, com.google.cloud.vmmigration.v1.CutoverJob.getDefaultInstance()); } /** @@ -6127,14 +9123,80 @@ public int getRecentCutoverJobsCount() { *
        * * - * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getRecentCutoverJobsBuilderList() { + return getRecentCutoverJobsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.CutoverJob, + com.google.cloud.vmmigration.v1.CutoverJob.Builder, + com.google.cloud.vmmigration.v1.CutoverJobOrBuilder> + getRecentCutoverJobsFieldBuilder() { + if (recentCutoverJobsBuilder_ == null) { + recentCutoverJobsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.CutoverJob, + com.google.cloud.vmmigration.v1.CutoverJob.Builder, + com.google.cloud.vmmigration.v1.CutoverJobOrBuilder>( + recentCutoverJobs_, + ((bitField0_ & 0x00200000) != 0), + getParentForChildren(), + isClean()); + recentCutoverJobs_ = null; + } + return recentCutoverJobsBuilder_; + } + + private com.google.cloud.vmmigration.v1.CutoverForecast cutoverForecast_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.CutoverForecast, + com.google.cloud.vmmigration.v1.CutoverForecast.Builder, + com.google.cloud.vmmigration.v1.CutoverForecastOrBuilder> + cutoverForecastBuilder_; + + /** + * + * + *
        +     * Output only. Provides details of future CutoverJobs of a MigratingVm.
        +     * Set to empty when cutover forecast is unavailable.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.CutoverForecast cutover_forecast = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the cutoverForecast field is set. + */ + public boolean hasCutoverForecast() { + return ((bitField0_ & 0x00400000) != 0); + } + + /** + * + * + *
        +     * Output only. Provides details of future CutoverJobs of a MigratingVm.
        +     * Set to empty when cutover forecast is unavailable.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.CutoverForecast cutover_forecast = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return The cutoverForecast. */ - public com.google.cloud.vmmigration.v1.CutoverJob getRecentCutoverJobs(int index) { - if (recentCutoverJobsBuilder_ == null) { - return recentCutoverJobs_.get(index); + public com.google.cloud.vmmigration.v1.CutoverForecast getCutoverForecast() { + if (cutoverForecastBuilder_ == null) { + return cutoverForecast_ == null + ? com.google.cloud.vmmigration.v1.CutoverForecast.getDefaultInstance() + : cutoverForecast_; } else { - return recentCutoverJobsBuilder_.getMessage(index); + return cutoverForecastBuilder_.getMessage(); } } @@ -6142,29 +9204,25 @@ public com.google.cloud.vmmigration.v1.CutoverJob getRecentCutoverJobs(int index * * *
        -     * Output only. The recent cutover jobs performed on the migrating VM.
        -     * This field holds the vm's last completed cutover job and the vm's
        -     * running cutover job, if one exists.
        -     * Note: To have this field populated you need to explicitly request it via
        -     * the "view" parameter of the Get/List request.
        +     * Output only. Provides details of future CutoverJobs of a MigratingVm.
        +     * Set to empty when cutover forecast is unavailable.
              * 
        * * - * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.vmmigration.v1.CutoverForecast cutover_forecast = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setRecentCutoverJobs( - int index, com.google.cloud.vmmigration.v1.CutoverJob value) { - if (recentCutoverJobsBuilder_ == null) { + public Builder setCutoverForecast(com.google.cloud.vmmigration.v1.CutoverForecast value) { + if (cutoverForecastBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureRecentCutoverJobsIsMutable(); - recentCutoverJobs_.set(index, value); - onChanged(); + cutoverForecast_ = value; } else { - recentCutoverJobsBuilder_.setMessage(index, value); + cutoverForecastBuilder_.setMessage(value); } + bitField0_ |= 0x00400000; + onChanged(); return this; } @@ -6172,26 +9230,23 @@ public Builder setRecentCutoverJobs( * * *
        -     * Output only. The recent cutover jobs performed on the migrating VM.
        -     * This field holds the vm's last completed cutover job and the vm's
        -     * running cutover job, if one exists.
        -     * Note: To have this field populated you need to explicitly request it via
        -     * the "view" parameter of the Get/List request.
        +     * Output only. Provides details of future CutoverJobs of a MigratingVm.
        +     * Set to empty when cutover forecast is unavailable.
              * 
        * * - * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.vmmigration.v1.CutoverForecast cutover_forecast = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setRecentCutoverJobs( - int index, com.google.cloud.vmmigration.v1.CutoverJob.Builder builderForValue) { - if (recentCutoverJobsBuilder_ == null) { - ensureRecentCutoverJobsIsMutable(); - recentCutoverJobs_.set(index, builderForValue.build()); - onChanged(); + public Builder setCutoverForecast( + com.google.cloud.vmmigration.v1.CutoverForecast.Builder builderForValue) { + if (cutoverForecastBuilder_ == null) { + cutoverForecast_ = builderForValue.build(); } else { - recentCutoverJobsBuilder_.setMessage(index, builderForValue.build()); + cutoverForecastBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00400000; + onChanged(); return this; } @@ -6199,27 +9254,30 @@ public Builder setRecentCutoverJobs( * * *
        -     * Output only. The recent cutover jobs performed on the migrating VM.
        -     * This field holds the vm's last completed cutover job and the vm's
        -     * running cutover job, if one exists.
        -     * Note: To have this field populated you need to explicitly request it via
        -     * the "view" parameter of the Get/List request.
        +     * Output only. Provides details of future CutoverJobs of a MigratingVm.
        +     * Set to empty when cutover forecast is unavailable.
              * 
        * * - * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.vmmigration.v1.CutoverForecast cutover_forecast = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder addRecentCutoverJobs(com.google.cloud.vmmigration.v1.CutoverJob value) { - if (recentCutoverJobsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); + public Builder mergeCutoverForecast(com.google.cloud.vmmigration.v1.CutoverForecast value) { + if (cutoverForecastBuilder_ == null) { + if (((bitField0_ & 0x00400000) != 0) + && cutoverForecast_ != null + && cutoverForecast_ + != com.google.cloud.vmmigration.v1.CutoverForecast.getDefaultInstance()) { + getCutoverForecastBuilder().mergeFrom(value); + } else { + cutoverForecast_ = value; } - ensureRecentCutoverJobsIsMutable(); - recentCutoverJobs_.add(value); - onChanged(); } else { - recentCutoverJobsBuilder_.addMessage(value); + cutoverForecastBuilder_.mergeFrom(value); + } + if (cutoverForecast_ != null) { + bitField0_ |= 0x00400000; + onChanged(); } return this; } @@ -6228,29 +9286,22 @@ public Builder addRecentCutoverJobs(com.google.cloud.vmmigration.v1.CutoverJob v * * *
        -     * Output only. The recent cutover jobs performed on the migrating VM.
        -     * This field holds the vm's last completed cutover job and the vm's
        -     * running cutover job, if one exists.
        -     * Note: To have this field populated you need to explicitly request it via
        -     * the "view" parameter of the Get/List request.
        +     * Output only. Provides details of future CutoverJobs of a MigratingVm.
        +     * Set to empty when cutover forecast is unavailable.
              * 
        * * - * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.vmmigration.v1.CutoverForecast cutover_forecast = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder addRecentCutoverJobs( - int index, com.google.cloud.vmmigration.v1.CutoverJob value) { - if (recentCutoverJobsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRecentCutoverJobsIsMutable(); - recentCutoverJobs_.add(index, value); - onChanged(); - } else { - recentCutoverJobsBuilder_.addMessage(index, value); + public Builder clearCutoverForecast() { + bitField0_ = (bitField0_ & ~0x00400000); + cutoverForecast_ = null; + if (cutoverForecastBuilder_ != null) { + cutoverForecastBuilder_.dispose(); + cutoverForecastBuilder_ = null; } + onChanged(); return this; } @@ -6258,132 +9309,143 @@ public Builder addRecentCutoverJobs( * * *
        -     * Output only. The recent cutover jobs performed on the migrating VM.
        -     * This field holds the vm's last completed cutover job and the vm's
        -     * running cutover job, if one exists.
        -     * Note: To have this field populated you need to explicitly request it via
        -     * the "view" parameter of the Get/List request.
        +     * Output only. Provides details of future CutoverJobs of a MigratingVm.
        +     * Set to empty when cutover forecast is unavailable.
              * 
        * * - * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.vmmigration.v1.CutoverForecast cutover_forecast = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder addRecentCutoverJobs( - com.google.cloud.vmmigration.v1.CutoverJob.Builder builderForValue) { - if (recentCutoverJobsBuilder_ == null) { - ensureRecentCutoverJobsIsMutable(); - recentCutoverJobs_.add(builderForValue.build()); - onChanged(); - } else { - recentCutoverJobsBuilder_.addMessage(builderForValue.build()); - } - return this; + public com.google.cloud.vmmigration.v1.CutoverForecast.Builder getCutoverForecastBuilder() { + bitField0_ |= 0x00400000; + onChanged(); + return getCutoverForecastFieldBuilder().getBuilder(); } /** * * *
        -     * Output only. The recent cutover jobs performed on the migrating VM.
        -     * This field holds the vm's last completed cutover job and the vm's
        -     * running cutover job, if one exists.
        -     * Note: To have this field populated you need to explicitly request it via
        -     * the "view" parameter of the Get/List request.
        +     * Output only. Provides details of future CutoverJobs of a MigratingVm.
        +     * Set to empty when cutover forecast is unavailable.
              * 
        * * - * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.vmmigration.v1.CutoverForecast cutover_forecast = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder addRecentCutoverJobs( - int index, com.google.cloud.vmmigration.v1.CutoverJob.Builder builderForValue) { - if (recentCutoverJobsBuilder_ == null) { - ensureRecentCutoverJobsIsMutable(); - recentCutoverJobs_.add(index, builderForValue.build()); - onChanged(); + public com.google.cloud.vmmigration.v1.CutoverForecastOrBuilder getCutoverForecastOrBuilder() { + if (cutoverForecastBuilder_ != null) { + return cutoverForecastBuilder_.getMessageOrBuilder(); } else { - recentCutoverJobsBuilder_.addMessage(index, builderForValue.build()); + return cutoverForecast_ == null + ? com.google.cloud.vmmigration.v1.CutoverForecast.getDefaultInstance() + : cutoverForecast_; } - return this; } /** * * *
        -     * Output only. The recent cutover jobs performed on the migrating VM.
        -     * This field holds the vm's last completed cutover job and the vm's
        -     * running cutover job, if one exists.
        -     * Note: To have this field populated you need to explicitly request it via
        -     * the "view" parameter of the Get/List request.
        +     * Output only. Provides details of future CutoverJobs of a MigratingVm.
        +     * Set to empty when cutover forecast is unavailable.
              * 
        * * - * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.vmmigration.v1.CutoverForecast cutover_forecast = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder addAllRecentCutoverJobs( - java.lang.Iterable values) { - if (recentCutoverJobsBuilder_ == null) { - ensureRecentCutoverJobsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, recentCutoverJobs_); - onChanged(); - } else { - recentCutoverJobsBuilder_.addAllMessages(values); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.CutoverForecast, + com.google.cloud.vmmigration.v1.CutoverForecast.Builder, + com.google.cloud.vmmigration.v1.CutoverForecastOrBuilder> + getCutoverForecastFieldBuilder() { + if (cutoverForecastBuilder_ == null) { + cutoverForecastBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.CutoverForecast, + com.google.cloud.vmmigration.v1.CutoverForecast.Builder, + com.google.cloud.vmmigration.v1.CutoverForecastOrBuilder>( + getCutoverForecast(), getParentForChildren(), isClean()); + cutoverForecast_ = null; } - return this; + return cutoverForecastBuilder_; } + private com.google.cloud.vmmigration.v1.MigratingVm.Expiration expiration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.MigratingVm.Expiration, + com.google.cloud.vmmigration.v1.MigratingVm.Expiration.Builder, + com.google.cloud.vmmigration.v1.MigratingVm.ExpirationOrBuilder> + expirationBuilder_; + /** * * *
        -     * Output only. The recent cutover jobs performed on the migrating VM.
        -     * This field holds the vm's last completed cutover job and the vm's
        -     * running cutover job, if one exists.
        -     * Note: To have this field populated you need to explicitly request it via
        -     * the "view" parameter of the Get/List request.
        +     * Output only. Provides details about the expiration state of the migrating
        +     * VM.
              * 
        * * - * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.vmmigration.v1.MigratingVm.Expiration expiration = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the expiration field is set. + */ + public boolean hasExpiration() { + return ((bitField0_ & 0x00800000) != 0); + } + + /** + * + * + *
        +     * Output only. Provides details about the expiration state of the migrating
        +     * VM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.MigratingVm.Expiration expiration = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return The expiration. */ - public Builder clearRecentCutoverJobs() { - if (recentCutoverJobsBuilder_ == null) { - recentCutoverJobs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00020000); - onChanged(); + public com.google.cloud.vmmigration.v1.MigratingVm.Expiration getExpiration() { + if (expirationBuilder_ == null) { + return expiration_ == null + ? com.google.cloud.vmmigration.v1.MigratingVm.Expiration.getDefaultInstance() + : expiration_; } else { - recentCutoverJobsBuilder_.clear(); + return expirationBuilder_.getMessage(); } - return this; } /** * * *
        -     * Output only. The recent cutover jobs performed on the migrating VM.
        -     * This field holds the vm's last completed cutover job and the vm's
        -     * running cutover job, if one exists.
        -     * Note: To have this field populated you need to explicitly request it via
        -     * the "view" parameter of the Get/List request.
        +     * Output only. Provides details about the expiration state of the migrating
        +     * VM.
              * 
        * * - * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.vmmigration.v1.MigratingVm.Expiration expiration = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder removeRecentCutoverJobs(int index) { - if (recentCutoverJobsBuilder_ == null) { - ensureRecentCutoverJobsIsMutable(); - recentCutoverJobs_.remove(index); - onChanged(); + public Builder setExpiration(com.google.cloud.vmmigration.v1.MigratingVm.Expiration value) { + if (expirationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expiration_ = value; } else { - recentCutoverJobsBuilder_.remove(index); + expirationBuilder_.setMessage(value); } + bitField0_ |= 0x00800000; + onChanged(); return this; } @@ -6391,149 +9453,149 @@ public Builder removeRecentCutoverJobs(int index) { * * *
        -     * Output only. The recent cutover jobs performed on the migrating VM.
        -     * This field holds the vm's last completed cutover job and the vm's
        -     * running cutover job, if one exists.
        -     * Note: To have this field populated you need to explicitly request it via
        -     * the "view" parameter of the Get/List request.
        +     * Output only. Provides details about the expiration state of the migrating
        +     * VM.
              * 
        * * - * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.vmmigration.v1.MigratingVm.Expiration expiration = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.vmmigration.v1.CutoverJob.Builder getRecentCutoverJobsBuilder( - int index) { - return getRecentCutoverJobsFieldBuilder().getBuilder(index); + public Builder setExpiration( + com.google.cloud.vmmigration.v1.MigratingVm.Expiration.Builder builderForValue) { + if (expirationBuilder_ == null) { + expiration_ = builderForValue.build(); + } else { + expirationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00800000; + onChanged(); + return this; } /** * * *
        -     * Output only. The recent cutover jobs performed on the migrating VM.
        -     * This field holds the vm's last completed cutover job and the vm's
        -     * running cutover job, if one exists.
        -     * Note: To have this field populated you need to explicitly request it via
        -     * the "view" parameter of the Get/List request.
        +     * Output only. Provides details about the expiration state of the migrating
        +     * VM.
              * 
        * * - * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.vmmigration.v1.MigratingVm.Expiration expiration = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.vmmigration.v1.CutoverJobOrBuilder getRecentCutoverJobsOrBuilder( - int index) { - if (recentCutoverJobsBuilder_ == null) { - return recentCutoverJobs_.get(index); + public Builder mergeExpiration(com.google.cloud.vmmigration.v1.MigratingVm.Expiration value) { + if (expirationBuilder_ == null) { + if (((bitField0_ & 0x00800000) != 0) + && expiration_ != null + && expiration_ + != com.google.cloud.vmmigration.v1.MigratingVm.Expiration.getDefaultInstance()) { + getExpirationBuilder().mergeFrom(value); + } else { + expiration_ = value; + } } else { - return recentCutoverJobsBuilder_.getMessageOrBuilder(index); + expirationBuilder_.mergeFrom(value); } + if (expiration_ != null) { + bitField0_ |= 0x00800000; + onChanged(); + } + return this; } /** * * *
        -     * Output only. The recent cutover jobs performed on the migrating VM.
        -     * This field holds the vm's last completed cutover job and the vm's
        -     * running cutover job, if one exists.
        -     * Note: To have this field populated you need to explicitly request it via
        -     * the "view" parameter of the Get/List request.
        +     * Output only. Provides details about the expiration state of the migrating
        +     * VM.
              * 
        * * - * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.vmmigration.v1.MigratingVm.Expiration expiration = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public java.util.List - getRecentCutoverJobsOrBuilderList() { - if (recentCutoverJobsBuilder_ != null) { - return recentCutoverJobsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(recentCutoverJobs_); + public Builder clearExpiration() { + bitField0_ = (bitField0_ & ~0x00800000); + expiration_ = null; + if (expirationBuilder_ != null) { + expirationBuilder_.dispose(); + expirationBuilder_ = null; } + onChanged(); + return this; } /** * * *
        -     * Output only. The recent cutover jobs performed on the migrating VM.
        -     * This field holds the vm's last completed cutover job and the vm's
        -     * running cutover job, if one exists.
        -     * Note: To have this field populated you need to explicitly request it via
        -     * the "view" parameter of the Get/List request.
        +     * Output only. Provides details about the expiration state of the migrating
        +     * VM.
              * 
        * * - * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.vmmigration.v1.MigratingVm.Expiration expiration = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.vmmigration.v1.CutoverJob.Builder addRecentCutoverJobsBuilder() { - return getRecentCutoverJobsFieldBuilder() - .addBuilder(com.google.cloud.vmmigration.v1.CutoverJob.getDefaultInstance()); + public com.google.cloud.vmmigration.v1.MigratingVm.Expiration.Builder getExpirationBuilder() { + bitField0_ |= 0x00800000; + onChanged(); + return getExpirationFieldBuilder().getBuilder(); } /** * * *
        -     * Output only. The recent cutover jobs performed on the migrating VM.
        -     * This field holds the vm's last completed cutover job and the vm's
        -     * running cutover job, if one exists.
        -     * Note: To have this field populated you need to explicitly request it via
        -     * the "view" parameter of the Get/List request.
        +     * Output only. Provides details about the expiration state of the migrating
        +     * VM.
              * 
        * * - * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.vmmigration.v1.MigratingVm.Expiration expiration = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.vmmigration.v1.CutoverJob.Builder addRecentCutoverJobsBuilder( - int index) { - return getRecentCutoverJobsFieldBuilder() - .addBuilder(index, com.google.cloud.vmmigration.v1.CutoverJob.getDefaultInstance()); + public com.google.cloud.vmmigration.v1.MigratingVm.ExpirationOrBuilder + getExpirationOrBuilder() { + if (expirationBuilder_ != null) { + return expirationBuilder_.getMessageOrBuilder(); + } else { + return expiration_ == null + ? com.google.cloud.vmmigration.v1.MigratingVm.Expiration.getDefaultInstance() + : expiration_; + } } /** * * *
        -     * Output only. The recent cutover jobs performed on the migrating VM.
        -     * This field holds the vm's last completed cutover job and the vm's
        -     * running cutover job, if one exists.
        -     * Note: To have this field populated you need to explicitly request it via
        -     * the "view" parameter of the Get/List request.
        +     * Output only. Provides details about the expiration state of the migrating
        +     * VM.
              * 
        * * - * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.vmmigration.v1.MigratingVm.Expiration expiration = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public java.util.List - getRecentCutoverJobsBuilderList() { - return getRecentCutoverJobsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vmmigration.v1.CutoverJob, - com.google.cloud.vmmigration.v1.CutoverJob.Builder, - com.google.cloud.vmmigration.v1.CutoverJobOrBuilder> - getRecentCutoverJobsFieldBuilder() { - if (recentCutoverJobsBuilder_ == null) { - recentCutoverJobsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vmmigration.v1.CutoverJob, - com.google.cloud.vmmigration.v1.CutoverJob.Builder, - com.google.cloud.vmmigration.v1.CutoverJobOrBuilder>( - recentCutoverJobs_, - ((bitField0_ & 0x00020000) != 0), - getParentForChildren(), - isClean()); - recentCutoverJobs_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.MigratingVm.Expiration, + com.google.cloud.vmmigration.v1.MigratingVm.Expiration.Builder, + com.google.cloud.vmmigration.v1.MigratingVm.ExpirationOrBuilder> + getExpirationFieldBuilder() { + if (expirationBuilder_ == null) { + expirationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.MigratingVm.Expiration, + com.google.cloud.vmmigration.v1.MigratingVm.Expiration.Builder, + com.google.cloud.vmmigration.v1.MigratingVm.ExpirationOrBuilder>( + getExpiration(), getParentForChildren(), isClean()); + expiration_ = null; } - return recentCutoverJobsBuilder_; + return expirationBuilder_; } @java.lang.Override diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/MigratingVmOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/MigratingVmOrBuilder.java index 6529f5fb5712..d23b2078eac6 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/MigratingVmOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/MigratingVmOrBuilder.java @@ -68,6 +68,95 @@ public interface MigratingVmOrBuilder com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaultsOrBuilder getComputeEngineTargetDefaultsOrBuilder(); + /** + * + * + *
        +   * Details of the target Persistent Disks in Compute Engine.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults compute_engine_disks_target_defaults = 34; + * + * + * @return Whether the computeEngineDisksTargetDefaults field is set. + */ + boolean hasComputeEngineDisksTargetDefaults(); + + /** + * + * + *
        +   * Details of the target Persistent Disks in Compute Engine.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults compute_engine_disks_target_defaults = 34; + * + * + * @return The computeEngineDisksTargetDefaults. + */ + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults + getComputeEngineDisksTargetDefaults(); + + /** + * + * + *
        +   * Details of the target Persistent Disks in Compute Engine.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaults compute_engine_disks_target_defaults = 34; + * + */ + com.google.cloud.vmmigration.v1.ComputeEngineDisksTargetDefaultsOrBuilder + getComputeEngineDisksTargetDefaultsOrBuilder(); + + /** + * + * + *
        +   * Output only. Details of the VM from a Vmware source.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.VmwareSourceVmDetails vmware_source_vm_details = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the vmwareSourceVmDetails field is set. + */ + boolean hasVmwareSourceVmDetails(); + + /** + * + * + *
        +   * Output only. Details of the VM from a Vmware source.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.VmwareSourceVmDetails vmware_source_vm_details = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The vmwareSourceVmDetails. + */ + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails getVmwareSourceVmDetails(); + + /** + * + * + *
        +   * Output only. Details of the VM from a Vmware source.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.VmwareSourceVmDetails vmware_source_vm_details = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.vmmigration.v1.VmwareSourceVmDetailsOrBuilder + getVmwareSourceVmDetailsOrBuilder(); + /** * * @@ -111,6 +200,49 @@ public interface MigratingVmOrBuilder */ com.google.cloud.vmmigration.v1.AwsSourceVmDetailsOrBuilder getAwsSourceVmDetailsOrBuilder(); + /** + * + * + *
        +   * Output only. Details of the VM from an Azure source.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.AzureSourceVmDetails azure_source_vm_details = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the azureSourceVmDetails field is set. + */ + boolean hasAzureSourceVmDetails(); + + /** + * + * + *
        +   * Output only. Details of the VM from an Azure source.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.AzureSourceVmDetails azure_source_vm_details = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The azureSourceVmDetails. + */ + com.google.cloud.vmmigration.v1.AzureSourceVmDetails getAzureSourceVmDetails(); + + /** + * + * + *
        +   * Output only. Details of the VM from an Azure source.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.AzureSourceVmDetails azure_source_vm_details = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.vmmigration.v1.AzureSourceVmDetailsOrBuilder getAzureSourceVmDetailsOrBuilder(); + /** * * @@ -459,8 +591,7 @@ public interface MigratingVmOrBuilder * * *
        -   * Output only. The percentage progress of the current running replication
        -   * cycle.
        +   * Output only. Details of the current running replication cycle.
            * 
        * * @@ -475,8 +606,7 @@ public interface MigratingVmOrBuilder * * *
        -   * Output only. The percentage progress of the current running replication
        -   * cycle.
        +   * Output only. Details of the current running replication cycle.
            * 
        * * @@ -491,8 +621,7 @@ public interface MigratingVmOrBuilder * * *
        -   * Output only. The percentage progress of the current running replication
        -   * cycle.
        +   * Output only. Details of the current running replication cycle.
            * 
        * * @@ -501,6 +630,55 @@ public interface MigratingVmOrBuilder */ com.google.cloud.vmmigration.v1.ReplicationCycleOrBuilder getCurrentSyncInfoOrBuilder(); + /** + * + * + *
        +   * Output only. Details of the last replication cycle. This will be updated
        +   * whenever a replication cycle is finished and is not to be confused with
        +   * last_sync which is only updated on successful replication cycles.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ReplicationCycle last_replication_cycle = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the lastReplicationCycle field is set. + */ + boolean hasLastReplicationCycle(); + + /** + * + * + *
        +   * Output only. Details of the last replication cycle. This will be updated
        +   * whenever a replication cycle is finished and is not to be confused with
        +   * last_sync which is only updated on successful replication cycles.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ReplicationCycle last_replication_cycle = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lastReplicationCycle. + */ + com.google.cloud.vmmigration.v1.ReplicationCycle getLastReplicationCycle(); + + /** + * + * + *
        +   * Output only. Details of the last replication cycle. This will be updated
        +   * whenever a replication cycle is finished and is not to be confused with
        +   * last_sync which is only updated on successful replication cycles.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ReplicationCycle last_replication_cycle = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.vmmigration.v1.ReplicationCycleOrBuilder getLastReplicationCycleOrBuilder(); + /** * * @@ -810,6 +988,98 @@ java.lang.String getLabelsOrDefault( */ com.google.cloud.vmmigration.v1.CutoverJobOrBuilder getRecentCutoverJobsOrBuilder(int index); + /** + * + * + *
        +   * Output only. Provides details of future CutoverJobs of a MigratingVm.
        +   * Set to empty when cutover forecast is unavailable.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.CutoverForecast cutover_forecast = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the cutoverForecast field is set. + */ + boolean hasCutoverForecast(); + + /** + * + * + *
        +   * Output only. Provides details of future CutoverJobs of a MigratingVm.
        +   * Set to empty when cutover forecast is unavailable.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.CutoverForecast cutover_forecast = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The cutoverForecast. + */ + com.google.cloud.vmmigration.v1.CutoverForecast getCutoverForecast(); + + /** + * + * + *
        +   * Output only. Provides details of future CutoverJobs of a MigratingVm.
        +   * Set to empty when cutover forecast is unavailable.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.CutoverForecast cutover_forecast = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.vmmigration.v1.CutoverForecastOrBuilder getCutoverForecastOrBuilder(); + + /** + * + * + *
        +   * Output only. Provides details about the expiration state of the migrating
        +   * VM.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.MigratingVm.Expiration expiration = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the expiration field is set. + */ + boolean hasExpiration(); + + /** + * + * + *
        +   * Output only. Provides details about the expiration state of the migrating
        +   * VM.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.MigratingVm.Expiration expiration = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The expiration. + */ + com.google.cloud.vmmigration.v1.MigratingVm.Expiration getExpiration(); + + /** + * + * + *
        +   * Output only. Provides details about the expiration state of the migrating
        +   * VM.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.MigratingVm.Expiration expiration = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.vmmigration.v1.MigratingVm.ExpirationOrBuilder getExpirationOrBuilder(); + com.google.cloud.vmmigration.v1.MigratingVm.TargetVmDefaultsCase getTargetVmDefaultsCase(); com.google.cloud.vmmigration.v1.MigratingVm.SourceVmDetailsCase getSourceVmDetailsCase(); diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/MigratingVmView.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/MigratingVmView.java index 4d3c805a8cb0..5ec9c3b88898 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/MigratingVmView.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/MigratingVmView.java @@ -158,7 +158,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.vmmigration.v1.VmMigrationProto.getDescriptor().getEnumTypes().get(1); + return com.google.cloud.vmmigration.v1.VmMigrationProto.getDescriptor().getEnumTypes().get(6); } private static final MigratingVmView[] VALUES = values(); diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/MigrationError.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/MigrationError.java index a4f5f8fcf150..468fc34fb10f 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/MigrationError.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/MigrationError.java @@ -91,7 +91,7 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { * * *
        -     * Migrate for Compute encountered an unknown error.
        +     * Migrate to Virtual Machines encountered an unknown error.
              * 
        * * UNKNOWN_ERROR = 1; @@ -101,8 +101,8 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { * * *
        -     * Migrate for Compute encountered an error while validating replication
        -     * source health.
        +     * Migrate to Virtual Machines encountered an error while validating
        +     * replication source health.
              * 
        * * SOURCE_VALIDATION_ERROR = 2; @@ -112,7 +112,8 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { * * *
        -     * Migrate for Compute encountered an error during source data operation.
        +     * Migrate to Virtual Machines encountered an error during source data
        +     * operation.
              * 
        * * SOURCE_REPLICATION_ERROR = 3; @@ -122,7 +123,8 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { * * *
        -     * Migrate for Compute encountered an error during target data operation.
        +     * Migrate to Virtual Machines encountered an error during target data
        +     * operation.
              * 
        * * TARGET_REPLICATION_ERROR = 4; @@ -132,7 +134,7 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { * * *
        -     * Migrate for Compute encountered an error during OS adaptation.
        +     * Migrate to Virtual Machines encountered an error during OS adaptation.
              * 
        * * OS_ADAPTATION_ERROR = 5; @@ -142,7 +144,7 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { * * *
        -     * Migrate for Compute encountered an error in clone operation.
        +     * Migrate to Virtual Machines encountered an error in clone operation.
              * 
        * * CLONE_ERROR = 6; @@ -152,7 +154,7 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { * * *
        -     * Migrate for Compute encountered an error in cutover operation.
        +     * Migrate to Virtual Machines encountered an error in cutover operation.
              * 
        * * CUTOVER_ERROR = 7; @@ -162,8 +164,8 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { * * *
        -     * Migrate for Compute encountered an error during utilization report
        -     * creation.
        +     * Migrate to Virtual Machines encountered an error during utilization
        +     * report creation.
              * 
        * * UTILIZATION_REPORT_ERROR = 8; @@ -173,12 +175,35 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { * * *
        -     * Migrate for Compute encountered an error during appliance upgrade.
        +     * Migrate to Virtual Machines encountered an error during appliance
        +     * upgrade.
              * 
        * * APPLIANCE_UPGRADE_ERROR = 9; */ APPLIANCE_UPGRADE_ERROR(9), + /** + * + * + *
        +     * Migrate to Virtual Machines encountered an error in image import
        +     * operation.
        +     * 
        + * + * IMAGE_IMPORT_ERROR = 10; + */ + IMAGE_IMPORT_ERROR(10), + /** + * + * + *
        +     * Migrate to Virtual Machines encountered an error in disk migration
        +     * operation.
        +     * 
        + * + * DISK_MIGRATION_ERROR = 11; + */ + DISK_MIGRATION_ERROR(11), UNRECOGNIZED(-1), ; @@ -197,7 +222,7 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { * * *
        -     * Migrate for Compute encountered an unknown error.
        +     * Migrate to Virtual Machines encountered an unknown error.
              * 
        * * UNKNOWN_ERROR = 1; @@ -208,8 +233,8 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { * * *
        -     * Migrate for Compute encountered an error while validating replication
        -     * source health.
        +     * Migrate to Virtual Machines encountered an error while validating
        +     * replication source health.
              * 
        * * SOURCE_VALIDATION_ERROR = 2; @@ -220,7 +245,8 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { * * *
        -     * Migrate for Compute encountered an error during source data operation.
        +     * Migrate to Virtual Machines encountered an error during source data
        +     * operation.
              * 
        * * SOURCE_REPLICATION_ERROR = 3; @@ -231,7 +257,8 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { * * *
        -     * Migrate for Compute encountered an error during target data operation.
        +     * Migrate to Virtual Machines encountered an error during target data
        +     * operation.
              * 
        * * TARGET_REPLICATION_ERROR = 4; @@ -242,7 +269,7 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { * * *
        -     * Migrate for Compute encountered an error during OS adaptation.
        +     * Migrate to Virtual Machines encountered an error during OS adaptation.
              * 
        * * OS_ADAPTATION_ERROR = 5; @@ -253,7 +280,7 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { * * *
        -     * Migrate for Compute encountered an error in clone operation.
        +     * Migrate to Virtual Machines encountered an error in clone operation.
              * 
        * * CLONE_ERROR = 6; @@ -264,7 +291,7 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { * * *
        -     * Migrate for Compute encountered an error in cutover operation.
        +     * Migrate to Virtual Machines encountered an error in cutover operation.
              * 
        * * CUTOVER_ERROR = 7; @@ -275,8 +302,8 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { * * *
        -     * Migrate for Compute encountered an error during utilization report
        -     * creation.
        +     * Migrate to Virtual Machines encountered an error during utilization
        +     * report creation.
              * 
        * * UTILIZATION_REPORT_ERROR = 8; @@ -287,13 +314,38 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { * * *
        -     * Migrate for Compute encountered an error during appliance upgrade.
        +     * Migrate to Virtual Machines encountered an error during appliance
        +     * upgrade.
              * 
        * * APPLIANCE_UPGRADE_ERROR = 9; */ public static final int APPLIANCE_UPGRADE_ERROR_VALUE = 9; + /** + * + * + *
        +     * Migrate to Virtual Machines encountered an error in image import
        +     * operation.
        +     * 
        + * + * IMAGE_IMPORT_ERROR = 10; + */ + public static final int IMAGE_IMPORT_ERROR_VALUE = 10; + + /** + * + * + *
        +     * Migrate to Virtual Machines encountered an error in disk migration
        +     * operation.
        +     * 
        + * + * DISK_MIGRATION_ERROR = 11; + */ + public static final int DISK_MIGRATION_ERROR_VALUE = 11; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -338,6 +390,10 @@ public static ErrorCode forNumber(int value) { return UTILIZATION_REPORT_ERROR; case 9: return APPLIANCE_UPGRADE_ERROR; + case 10: + return IMAGE_IMPORT_ERROR; + case 11: + return DISK_MIGRATION_ERROR; default: return null; } diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/MigrationWarning.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/MigrationWarning.java new file mode 100644 index 000000000000..04f533bf61bb --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/MigrationWarning.java @@ -0,0 +1,2217 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * Represents migration resource warning information that can be used with
        + * google.rpc.Status message. MigrationWarning is used to present the user with
        + * warning information in migration operations.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.MigrationWarning} + */ +public final class MigrationWarning extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.MigrationWarning) + MigrationWarningOrBuilder { + private static final long serialVersionUID = 0L; + + // Use MigrationWarning.newBuilder() to construct. + private MigrationWarning(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MigrationWarning() { + code_ = 0; + helpLinks_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MigrationWarning(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_MigrationWarning_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_MigrationWarning_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.MigrationWarning.class, + com.google.cloud.vmmigration.v1.MigrationWarning.Builder.class); + } + + /** + * + * + *
        +   * Represents possible warning codes.
        +   * 
        + * + * Protobuf enum {@code google.cloud.vmmigration.v1.MigrationWarning.WarningCode} + */ + public enum WarningCode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
        +     * Default value. This value is not used.
        +     * 
        + * + * WARNING_CODE_UNSPECIFIED = 0; + */ + WARNING_CODE_UNSPECIFIED(0), + /** + * + * + *
        +     * A warning originated from OS Adaptation.
        +     * 
        + * + * ADAPTATION_WARNING = 1; + */ + ADAPTATION_WARNING(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
        +     * Default value. This value is not used.
        +     * 
        + * + * WARNING_CODE_UNSPECIFIED = 0; + */ + public static final int WARNING_CODE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
        +     * A warning originated from OS Adaptation.
        +     * 
        + * + * ADAPTATION_WARNING = 1; + */ + public static final int ADAPTATION_WARNING_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 WarningCode 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 WarningCode forNumber(int value) { + switch (value) { + case 0: + return WARNING_CODE_UNSPECIFIED; + case 1: + return ADAPTATION_WARNING; + 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 WarningCode findValueByNumber(int number) { + return WarningCode.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.vmmigration.v1.MigrationWarning.getDescriptor().getEnumTypes().get(0); + } + + private static final WarningCode[] VALUES = values(); + + public static WarningCode 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 WarningCode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.vmmigration.v1.MigrationWarning.WarningCode) + } + + private int bitField0_; + public static final int CODE_FIELD_NUMBER = 1; + private int code_ = 0; + + /** + * + * + *
        +   * The warning code.
        +   * 
        + * + * .google.cloud.vmmigration.v1.MigrationWarning.WarningCode code = 1; + * + * @return The enum numeric value on the wire for code. + */ + @java.lang.Override + public int getCodeValue() { + return code_; + } + + /** + * + * + *
        +   * The warning code.
        +   * 
        + * + * .google.cloud.vmmigration.v1.MigrationWarning.WarningCode code = 1; + * + * @return The code. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.MigrationWarning.WarningCode getCode() { + com.google.cloud.vmmigration.v1.MigrationWarning.WarningCode result = + com.google.cloud.vmmigration.v1.MigrationWarning.WarningCode.forNumber(code_); + return result == null + ? com.google.cloud.vmmigration.v1.MigrationWarning.WarningCode.UNRECOGNIZED + : result; + } + + public static final int WARNING_MESSAGE_FIELD_NUMBER = 2; + private com.google.rpc.LocalizedMessage warningMessage_; + + /** + * + * + *
        +   * Output only. The localized warning message.
        +   * 
        + * + * + * .google.rpc.LocalizedMessage warning_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the warningMessage field is set. + */ + @java.lang.Override + public boolean hasWarningMessage() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
        +   * Output only. The localized warning message.
        +   * 
        + * + * + * .google.rpc.LocalizedMessage warning_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The warningMessage. + */ + @java.lang.Override + public com.google.rpc.LocalizedMessage getWarningMessage() { + return warningMessage_ == null + ? com.google.rpc.LocalizedMessage.getDefaultInstance() + : warningMessage_; + } + + /** + * + * + *
        +   * Output only. The localized warning message.
        +   * 
        + * + * + * .google.rpc.LocalizedMessage warning_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.rpc.LocalizedMessageOrBuilder getWarningMessageOrBuilder() { + return warningMessage_ == null + ? com.google.rpc.LocalizedMessage.getDefaultInstance() + : warningMessage_; + } + + public static final int ACTION_ITEM_FIELD_NUMBER = 3; + private com.google.rpc.LocalizedMessage actionItem_; + + /** + * + * + *
        +   * Output only. Suggested action for solving the warning.
        +   * 
        + * + * + * .google.rpc.LocalizedMessage action_item = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the actionItem field is set. + */ + @java.lang.Override + public boolean hasActionItem() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
        +   * Output only. Suggested action for solving the warning.
        +   * 
        + * + * + * .google.rpc.LocalizedMessage action_item = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The actionItem. + */ + @java.lang.Override + public com.google.rpc.LocalizedMessage getActionItem() { + return actionItem_ == null ? com.google.rpc.LocalizedMessage.getDefaultInstance() : actionItem_; + } + + /** + * + * + *
        +   * Output only. Suggested action for solving the warning.
        +   * 
        + * + * + * .google.rpc.LocalizedMessage action_item = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.rpc.LocalizedMessageOrBuilder getActionItemOrBuilder() { + return actionItem_ == null ? com.google.rpc.LocalizedMessage.getDefaultInstance() : actionItem_; + } + + public static final int HELP_LINKS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List helpLinks_; + + /** + * + * + *
        +   * Output only. URL(s) pointing to additional information on handling the
        +   * current warning.
        +   * 
        + * + * + * repeated .google.rpc.Help.Link help_links = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getHelpLinksList() { + return helpLinks_; + } + + /** + * + * + *
        +   * Output only. URL(s) pointing to additional information on handling the
        +   * current warning.
        +   * 
        + * + * + * repeated .google.rpc.Help.Link help_links = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getHelpLinksOrBuilderList() { + return helpLinks_; + } + + /** + * + * + *
        +   * Output only. URL(s) pointing to additional information on handling the
        +   * current warning.
        +   * 
        + * + * + * repeated .google.rpc.Help.Link help_links = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getHelpLinksCount() { + return helpLinks_.size(); + } + + /** + * + * + *
        +   * Output only. URL(s) pointing to additional information on handling the
        +   * current warning.
        +   * 
        + * + * + * repeated .google.rpc.Help.Link help_links = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.rpc.Help.Link getHelpLinks(int index) { + return helpLinks_.get(index); + } + + /** + * + * + *
        +   * Output only. URL(s) pointing to additional information on handling the
        +   * current warning.
        +   * 
        + * + * + * repeated .google.rpc.Help.Link help_links = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.rpc.Help.LinkOrBuilder getHelpLinksOrBuilder(int index) { + return helpLinks_.get(index); + } + + public static final int WARNING_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp warningTime_; + + /** + * + * + *
        +   * The time the warning occurred.
        +   * 
        + * + * .google.protobuf.Timestamp warning_time = 5; + * + * @return Whether the warningTime field is set. + */ + @java.lang.Override + public boolean hasWarningTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
        +   * The time the warning occurred.
        +   * 
        + * + * .google.protobuf.Timestamp warning_time = 5; + * + * @return The warningTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getWarningTime() { + return warningTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : warningTime_; + } + + /** + * + * + *
        +   * The time the warning occurred.
        +   * 
        + * + * .google.protobuf.Timestamp warning_time = 5; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getWarningTimeOrBuilder() { + return warningTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : warningTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (code_ + != com.google.cloud.vmmigration.v1.MigrationWarning.WarningCode.WARNING_CODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, code_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getWarningMessage()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getActionItem()); + } + for (int i = 0; i < helpLinks_.size(); i++) { + output.writeMessage(4, helpLinks_.get(i)); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(5, getWarningTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (code_ + != com.google.cloud.vmmigration.v1.MigrationWarning.WarningCode.WARNING_CODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getWarningMessage()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getActionItem()); + } + for (int i = 0; i < helpLinks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, helpLinks_.get(i)); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getWarningTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.vmmigration.v1.MigrationWarning)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.MigrationWarning other = + (com.google.cloud.vmmigration.v1.MigrationWarning) obj; + + if (code_ != other.code_) return false; + if (hasWarningMessage() != other.hasWarningMessage()) return false; + if (hasWarningMessage()) { + if (!getWarningMessage().equals(other.getWarningMessage())) return false; + } + if (hasActionItem() != other.hasActionItem()) return false; + if (hasActionItem()) { + if (!getActionItem().equals(other.getActionItem())) return false; + } + if (!getHelpLinksList().equals(other.getHelpLinksList())) return false; + if (hasWarningTime() != other.hasWarningTime()) return false; + if (hasWarningTime()) { + if (!getWarningTime().equals(other.getWarningTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CODE_FIELD_NUMBER; + hash = (53 * hash) + code_; + if (hasWarningMessage()) { + hash = (37 * hash) + WARNING_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getWarningMessage().hashCode(); + } + if (hasActionItem()) { + hash = (37 * hash) + ACTION_ITEM_FIELD_NUMBER; + hash = (53 * hash) + getActionItem().hashCode(); + } + if (getHelpLinksCount() > 0) { + hash = (37 * hash) + HELP_LINKS_FIELD_NUMBER; + hash = (53 * hash) + getHelpLinksList().hashCode(); + } + if (hasWarningTime()) { + hash = (37 * hash) + WARNING_TIME_FIELD_NUMBER; + hash = (53 * hash) + getWarningTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.MigrationWarning parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.MigrationWarning 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.vmmigration.v1.MigrationWarning parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.MigrationWarning parseFrom( + 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.vmmigration.v1.MigrationWarning parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.MigrationWarning parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.MigrationWarning parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.MigrationWarning 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.vmmigration.v1.MigrationWarning parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.MigrationWarning 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.vmmigration.v1.MigrationWarning parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.MigrationWarning 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.vmmigration.v1.MigrationWarning prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * Represents migration resource warning information that can be used with
        +   * google.rpc.Status message. MigrationWarning is used to present the user with
        +   * warning information in migration operations.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.MigrationWarning} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.MigrationWarning) + com.google.cloud.vmmigration.v1.MigrationWarningOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_MigrationWarning_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_MigrationWarning_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.MigrationWarning.class, + com.google.cloud.vmmigration.v1.MigrationWarning.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.MigrationWarning.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getWarningMessageFieldBuilder(); + getActionItemFieldBuilder(); + getHelpLinksFieldBuilder(); + getWarningTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + code_ = 0; + warningMessage_ = null; + if (warningMessageBuilder_ != null) { + warningMessageBuilder_.dispose(); + warningMessageBuilder_ = null; + } + actionItem_ = null; + if (actionItemBuilder_ != null) { + actionItemBuilder_.dispose(); + actionItemBuilder_ = null; + } + if (helpLinksBuilder_ == null) { + helpLinks_ = java.util.Collections.emptyList(); + } else { + helpLinks_ = null; + helpLinksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + warningTime_ = null; + if (warningTimeBuilder_ != null) { + warningTimeBuilder_.dispose(); + warningTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_MigrationWarning_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.MigrationWarning getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.MigrationWarning.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.MigrationWarning build() { + com.google.cloud.vmmigration.v1.MigrationWarning result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.MigrationWarning buildPartial() { + com.google.cloud.vmmigration.v1.MigrationWarning result = + new com.google.cloud.vmmigration.v1.MigrationWarning(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.vmmigration.v1.MigrationWarning result) { + if (helpLinksBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + helpLinks_ = java.util.Collections.unmodifiableList(helpLinks_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.helpLinks_ = helpLinks_; + } else { + result.helpLinks_ = helpLinksBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.vmmigration.v1.MigrationWarning result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.code_ = code_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.warningMessage_ = + warningMessageBuilder_ == null ? warningMessage_ : warningMessageBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.actionItem_ = actionItemBuilder_ == null ? actionItem_ : actionItemBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.warningTime_ = + warningTimeBuilder_ == null ? warningTime_ : warningTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmmigration.v1.MigrationWarning) { + return mergeFrom((com.google.cloud.vmmigration.v1.MigrationWarning) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.MigrationWarning other) { + if (other == com.google.cloud.vmmigration.v1.MigrationWarning.getDefaultInstance()) + return this; + if (other.code_ != 0) { + setCodeValue(other.getCodeValue()); + } + if (other.hasWarningMessage()) { + mergeWarningMessage(other.getWarningMessage()); + } + if (other.hasActionItem()) { + mergeActionItem(other.getActionItem()); + } + if (helpLinksBuilder_ == null) { + if (!other.helpLinks_.isEmpty()) { + if (helpLinks_.isEmpty()) { + helpLinks_ = other.helpLinks_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureHelpLinksIsMutable(); + helpLinks_.addAll(other.helpLinks_); + } + onChanged(); + } + } else { + if (!other.helpLinks_.isEmpty()) { + if (helpLinksBuilder_.isEmpty()) { + helpLinksBuilder_.dispose(); + helpLinksBuilder_ = null; + helpLinks_ = other.helpLinks_; + bitField0_ = (bitField0_ & ~0x00000008); + helpLinksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getHelpLinksFieldBuilder() + : null; + } else { + helpLinksBuilder_.addAllMessages(other.helpLinks_); + } + } + } + if (other.hasWarningTime()) { + mergeWarningTime(other.getWarningTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + code_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage(getWarningMessageFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getActionItemFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.rpc.Help.Link m = + input.readMessage(com.google.rpc.Help.Link.parser(), extensionRegistry); + if (helpLinksBuilder_ == null) { + ensureHelpLinksIsMutable(); + helpLinks_.add(m); + } else { + helpLinksBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: + { + input.readMessage(getWarningTimeFieldBuilder().getBuilder(), extensionRegistry); + 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 int code_ = 0; + + /** + * + * + *
        +     * The warning code.
        +     * 
        + * + * .google.cloud.vmmigration.v1.MigrationWarning.WarningCode code = 1; + * + * @return The enum numeric value on the wire for code. + */ + @java.lang.Override + public int getCodeValue() { + return code_; + } + + /** + * + * + *
        +     * The warning code.
        +     * 
        + * + * .google.cloud.vmmigration.v1.MigrationWarning.WarningCode code = 1; + * + * @param value The enum numeric value on the wire for code to set. + * @return This builder for chaining. + */ + public Builder setCodeValue(int value) { + code_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +     * The warning code.
        +     * 
        + * + * .google.cloud.vmmigration.v1.MigrationWarning.WarningCode code = 1; + * + * @return The code. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.MigrationWarning.WarningCode getCode() { + com.google.cloud.vmmigration.v1.MigrationWarning.WarningCode result = + com.google.cloud.vmmigration.v1.MigrationWarning.WarningCode.forNumber(code_); + return result == null + ? com.google.cloud.vmmigration.v1.MigrationWarning.WarningCode.UNRECOGNIZED + : result; + } + + /** + * + * + *
        +     * The warning code.
        +     * 
        + * + * .google.cloud.vmmigration.v1.MigrationWarning.WarningCode code = 1; + * + * @param value The code to set. + * @return This builder for chaining. + */ + public Builder setCode(com.google.cloud.vmmigration.v1.MigrationWarning.WarningCode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + code_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
        +     * The warning code.
        +     * 
        + * + * .google.cloud.vmmigration.v1.MigrationWarning.WarningCode code = 1; + * + * @return This builder for chaining. + */ + public Builder clearCode() { + bitField0_ = (bitField0_ & ~0x00000001); + code_ = 0; + onChanged(); + return this; + } + + private com.google.rpc.LocalizedMessage warningMessage_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.LocalizedMessage, + com.google.rpc.LocalizedMessage.Builder, + com.google.rpc.LocalizedMessageOrBuilder> + warningMessageBuilder_; + + /** + * + * + *
        +     * Output only. The localized warning message.
        +     * 
        + * + * + * .google.rpc.LocalizedMessage warning_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the warningMessage field is set. + */ + public boolean hasWarningMessage() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
        +     * Output only. The localized warning message.
        +     * 
        + * + * + * .google.rpc.LocalizedMessage warning_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The warningMessage. + */ + public com.google.rpc.LocalizedMessage getWarningMessage() { + if (warningMessageBuilder_ == null) { + return warningMessage_ == null + ? com.google.rpc.LocalizedMessage.getDefaultInstance() + : warningMessage_; + } else { + return warningMessageBuilder_.getMessage(); + } + } + + /** + * + * + *
        +     * Output only. The localized warning message.
        +     * 
        + * + * + * .google.rpc.LocalizedMessage warning_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setWarningMessage(com.google.rpc.LocalizedMessage value) { + if (warningMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + warningMessage_ = value; + } else { + warningMessageBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The localized warning message.
        +     * 
        + * + * + * .google.rpc.LocalizedMessage warning_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setWarningMessage(com.google.rpc.LocalizedMessage.Builder builderForValue) { + if (warningMessageBuilder_ == null) { + warningMessage_ = builderForValue.build(); + } else { + warningMessageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The localized warning message.
        +     * 
        + * + * + * .google.rpc.LocalizedMessage warning_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeWarningMessage(com.google.rpc.LocalizedMessage value) { + if (warningMessageBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && warningMessage_ != null + && warningMessage_ != com.google.rpc.LocalizedMessage.getDefaultInstance()) { + getWarningMessageBuilder().mergeFrom(value); + } else { + warningMessage_ = value; + } + } else { + warningMessageBuilder_.mergeFrom(value); + } + if (warningMessage_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Output only. The localized warning message.
        +     * 
        + * + * + * .google.rpc.LocalizedMessage warning_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearWarningMessage() { + bitField0_ = (bitField0_ & ~0x00000002); + warningMessage_ = null; + if (warningMessageBuilder_ != null) { + warningMessageBuilder_.dispose(); + warningMessageBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The localized warning message.
        +     * 
        + * + * + * .google.rpc.LocalizedMessage warning_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.rpc.LocalizedMessage.Builder getWarningMessageBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getWarningMessageFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Output only. The localized warning message.
        +     * 
        + * + * + * .google.rpc.LocalizedMessage warning_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.rpc.LocalizedMessageOrBuilder getWarningMessageOrBuilder() { + if (warningMessageBuilder_ != null) { + return warningMessageBuilder_.getMessageOrBuilder(); + } else { + return warningMessage_ == null + ? com.google.rpc.LocalizedMessage.getDefaultInstance() + : warningMessage_; + } + } + + /** + * + * + *
        +     * Output only. The localized warning message.
        +     * 
        + * + * + * .google.rpc.LocalizedMessage warning_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.LocalizedMessage, + com.google.rpc.LocalizedMessage.Builder, + com.google.rpc.LocalizedMessageOrBuilder> + getWarningMessageFieldBuilder() { + if (warningMessageBuilder_ == null) { + warningMessageBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.LocalizedMessage, + com.google.rpc.LocalizedMessage.Builder, + com.google.rpc.LocalizedMessageOrBuilder>( + getWarningMessage(), getParentForChildren(), isClean()); + warningMessage_ = null; + } + return warningMessageBuilder_; + } + + private com.google.rpc.LocalizedMessage actionItem_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.LocalizedMessage, + com.google.rpc.LocalizedMessage.Builder, + com.google.rpc.LocalizedMessageOrBuilder> + actionItemBuilder_; + + /** + * + * + *
        +     * Output only. Suggested action for solving the warning.
        +     * 
        + * + * + * .google.rpc.LocalizedMessage action_item = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the actionItem field is set. + */ + public boolean hasActionItem() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
        +     * Output only. Suggested action for solving the warning.
        +     * 
        + * + * + * .google.rpc.LocalizedMessage action_item = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The actionItem. + */ + public com.google.rpc.LocalizedMessage getActionItem() { + if (actionItemBuilder_ == null) { + return actionItem_ == null + ? com.google.rpc.LocalizedMessage.getDefaultInstance() + : actionItem_; + } else { + return actionItemBuilder_.getMessage(); + } + } + + /** + * + * + *
        +     * Output only. Suggested action for solving the warning.
        +     * 
        + * + * + * .google.rpc.LocalizedMessage action_item = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setActionItem(com.google.rpc.LocalizedMessage value) { + if (actionItemBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + actionItem_ = value; + } else { + actionItemBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. Suggested action for solving the warning.
        +     * 
        + * + * + * .google.rpc.LocalizedMessage action_item = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setActionItem(com.google.rpc.LocalizedMessage.Builder builderForValue) { + if (actionItemBuilder_ == null) { + actionItem_ = builderForValue.build(); + } else { + actionItemBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. Suggested action for solving the warning.
        +     * 
        + * + * + * .google.rpc.LocalizedMessage action_item = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeActionItem(com.google.rpc.LocalizedMessage value) { + if (actionItemBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && actionItem_ != null + && actionItem_ != com.google.rpc.LocalizedMessage.getDefaultInstance()) { + getActionItemBuilder().mergeFrom(value); + } else { + actionItem_ = value; + } + } else { + actionItemBuilder_.mergeFrom(value); + } + if (actionItem_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Output only. Suggested action for solving the warning.
        +     * 
        + * + * + * .google.rpc.LocalizedMessage action_item = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearActionItem() { + bitField0_ = (bitField0_ & ~0x00000004); + actionItem_ = null; + if (actionItemBuilder_ != null) { + actionItemBuilder_.dispose(); + actionItemBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. Suggested action for solving the warning.
        +     * 
        + * + * + * .google.rpc.LocalizedMessage action_item = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.rpc.LocalizedMessage.Builder getActionItemBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getActionItemFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Output only. Suggested action for solving the warning.
        +     * 
        + * + * + * .google.rpc.LocalizedMessage action_item = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.rpc.LocalizedMessageOrBuilder getActionItemOrBuilder() { + if (actionItemBuilder_ != null) { + return actionItemBuilder_.getMessageOrBuilder(); + } else { + return actionItem_ == null + ? com.google.rpc.LocalizedMessage.getDefaultInstance() + : actionItem_; + } + } + + /** + * + * + *
        +     * Output only. Suggested action for solving the warning.
        +     * 
        + * + * + * .google.rpc.LocalizedMessage action_item = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.LocalizedMessage, + com.google.rpc.LocalizedMessage.Builder, + com.google.rpc.LocalizedMessageOrBuilder> + getActionItemFieldBuilder() { + if (actionItemBuilder_ == null) { + actionItemBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.LocalizedMessage, + com.google.rpc.LocalizedMessage.Builder, + com.google.rpc.LocalizedMessageOrBuilder>( + getActionItem(), getParentForChildren(), isClean()); + actionItem_ = null; + } + return actionItemBuilder_; + } + + private java.util.List helpLinks_ = java.util.Collections.emptyList(); + + private void ensureHelpLinksIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + helpLinks_ = new java.util.ArrayList(helpLinks_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Help.Link, + com.google.rpc.Help.Link.Builder, + com.google.rpc.Help.LinkOrBuilder> + helpLinksBuilder_; + + /** + * + * + *
        +     * Output only. URL(s) pointing to additional information on handling the
        +     * current warning.
        +     * 
        + * + * + * repeated .google.rpc.Help.Link help_links = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getHelpLinksList() { + if (helpLinksBuilder_ == null) { + return java.util.Collections.unmodifiableList(helpLinks_); + } else { + return helpLinksBuilder_.getMessageList(); + } + } + + /** + * + * + *
        +     * Output only. URL(s) pointing to additional information on handling the
        +     * current warning.
        +     * 
        + * + * + * repeated .google.rpc.Help.Link help_links = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getHelpLinksCount() { + if (helpLinksBuilder_ == null) { + return helpLinks_.size(); + } else { + return helpLinksBuilder_.getCount(); + } + } + + /** + * + * + *
        +     * Output only. URL(s) pointing to additional information on handling the
        +     * current warning.
        +     * 
        + * + * + * repeated .google.rpc.Help.Link help_links = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.rpc.Help.Link getHelpLinks(int index) { + if (helpLinksBuilder_ == null) { + return helpLinks_.get(index); + } else { + return helpLinksBuilder_.getMessage(index); + } + } + + /** + * + * + *
        +     * Output only. URL(s) pointing to additional information on handling the
        +     * current warning.
        +     * 
        + * + * + * repeated .google.rpc.Help.Link help_links = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setHelpLinks(int index, com.google.rpc.Help.Link value) { + if (helpLinksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHelpLinksIsMutable(); + helpLinks_.set(index, value); + onChanged(); + } else { + helpLinksBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * Output only. URL(s) pointing to additional information on handling the
        +     * current warning.
        +     * 
        + * + * + * repeated .google.rpc.Help.Link help_links = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setHelpLinks(int index, com.google.rpc.Help.Link.Builder builderForValue) { + if (helpLinksBuilder_ == null) { + ensureHelpLinksIsMutable(); + helpLinks_.set(index, builderForValue.build()); + onChanged(); + } else { + helpLinksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Output only. URL(s) pointing to additional information on handling the
        +     * current warning.
        +     * 
        + * + * + * repeated .google.rpc.Help.Link help_links = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addHelpLinks(com.google.rpc.Help.Link value) { + if (helpLinksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHelpLinksIsMutable(); + helpLinks_.add(value); + onChanged(); + } else { + helpLinksBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
        +     * Output only. URL(s) pointing to additional information on handling the
        +     * current warning.
        +     * 
        + * + * + * repeated .google.rpc.Help.Link help_links = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addHelpLinks(int index, com.google.rpc.Help.Link value) { + if (helpLinksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHelpLinksIsMutable(); + helpLinks_.add(index, value); + onChanged(); + } else { + helpLinksBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * Output only. URL(s) pointing to additional information on handling the
        +     * current warning.
        +     * 
        + * + * + * repeated .google.rpc.Help.Link help_links = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addHelpLinks(com.google.rpc.Help.Link.Builder builderForValue) { + if (helpLinksBuilder_ == null) { + ensureHelpLinksIsMutable(); + helpLinks_.add(builderForValue.build()); + onChanged(); + } else { + helpLinksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Output only. URL(s) pointing to additional information on handling the
        +     * current warning.
        +     * 
        + * + * + * repeated .google.rpc.Help.Link help_links = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addHelpLinks(int index, com.google.rpc.Help.Link.Builder builderForValue) { + if (helpLinksBuilder_ == null) { + ensureHelpLinksIsMutable(); + helpLinks_.add(index, builderForValue.build()); + onChanged(); + } else { + helpLinksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Output only. URL(s) pointing to additional information on handling the
        +     * current warning.
        +     * 
        + * + * + * repeated .google.rpc.Help.Link help_links = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllHelpLinks(java.lang.Iterable values) { + if (helpLinksBuilder_ == null) { + ensureHelpLinksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, helpLinks_); + onChanged(); + } else { + helpLinksBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
        +     * Output only. URL(s) pointing to additional information on handling the
        +     * current warning.
        +     * 
        + * + * + * repeated .google.rpc.Help.Link help_links = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearHelpLinks() { + if (helpLinksBuilder_ == null) { + helpLinks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + helpLinksBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Output only. URL(s) pointing to additional information on handling the
        +     * current warning.
        +     * 
        + * + * + * repeated .google.rpc.Help.Link help_links = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeHelpLinks(int index) { + if (helpLinksBuilder_ == null) { + ensureHelpLinksIsMutable(); + helpLinks_.remove(index); + onChanged(); + } else { + helpLinksBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
        +     * Output only. URL(s) pointing to additional information on handling the
        +     * current warning.
        +     * 
        + * + * + * repeated .google.rpc.Help.Link help_links = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.rpc.Help.Link.Builder getHelpLinksBuilder(int index) { + return getHelpLinksFieldBuilder().getBuilder(index); + } + + /** + * + * + *
        +     * Output only. URL(s) pointing to additional information on handling the
        +     * current warning.
        +     * 
        + * + * + * repeated .google.rpc.Help.Link help_links = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.rpc.Help.LinkOrBuilder getHelpLinksOrBuilder(int index) { + if (helpLinksBuilder_ == null) { + return helpLinks_.get(index); + } else { + return helpLinksBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
        +     * Output only. URL(s) pointing to additional information on handling the
        +     * current warning.
        +     * 
        + * + * + * repeated .google.rpc.Help.Link help_links = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getHelpLinksOrBuilderList() { + if (helpLinksBuilder_ != null) { + return helpLinksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(helpLinks_); + } + } + + /** + * + * + *
        +     * Output only. URL(s) pointing to additional information on handling the
        +     * current warning.
        +     * 
        + * + * + * repeated .google.rpc.Help.Link help_links = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.rpc.Help.Link.Builder addHelpLinksBuilder() { + return getHelpLinksFieldBuilder().addBuilder(com.google.rpc.Help.Link.getDefaultInstance()); + } + + /** + * + * + *
        +     * Output only. URL(s) pointing to additional information on handling the
        +     * current warning.
        +     * 
        + * + * + * repeated .google.rpc.Help.Link help_links = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.rpc.Help.Link.Builder addHelpLinksBuilder(int index) { + return getHelpLinksFieldBuilder() + .addBuilder(index, com.google.rpc.Help.Link.getDefaultInstance()); + } + + /** + * + * + *
        +     * Output only. URL(s) pointing to additional information on handling the
        +     * current warning.
        +     * 
        + * + * + * repeated .google.rpc.Help.Link help_links = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getHelpLinksBuilderList() { + return getHelpLinksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Help.Link, + com.google.rpc.Help.Link.Builder, + com.google.rpc.Help.LinkOrBuilder> + getHelpLinksFieldBuilder() { + if (helpLinksBuilder_ == null) { + helpLinksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Help.Link, + com.google.rpc.Help.Link.Builder, + com.google.rpc.Help.LinkOrBuilder>( + helpLinks_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + helpLinks_ = null; + } + return helpLinksBuilder_; + } + + private com.google.protobuf.Timestamp warningTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + warningTimeBuilder_; + + /** + * + * + *
        +     * The time the warning occurred.
        +     * 
        + * + * .google.protobuf.Timestamp warning_time = 5; + * + * @return Whether the warningTime field is set. + */ + public boolean hasWarningTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
        +     * The time the warning occurred.
        +     * 
        + * + * .google.protobuf.Timestamp warning_time = 5; + * + * @return The warningTime. + */ + public com.google.protobuf.Timestamp getWarningTime() { + if (warningTimeBuilder_ == null) { + return warningTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : warningTime_; + } else { + return warningTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
        +     * The time the warning occurred.
        +     * 
        + * + * .google.protobuf.Timestamp warning_time = 5; + */ + public Builder setWarningTime(com.google.protobuf.Timestamp value) { + if (warningTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + warningTime_ = value; + } else { + warningTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
        +     * The time the warning occurred.
        +     * 
        + * + * .google.protobuf.Timestamp warning_time = 5; + */ + public Builder setWarningTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (warningTimeBuilder_ == null) { + warningTime_ = builderForValue.build(); + } else { + warningTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
        +     * The time the warning occurred.
        +     * 
        + * + * .google.protobuf.Timestamp warning_time = 5; + */ + public Builder mergeWarningTime(com.google.protobuf.Timestamp value) { + if (warningTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && warningTime_ != null + && warningTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getWarningTimeBuilder().mergeFrom(value); + } else { + warningTime_ = value; + } + } else { + warningTimeBuilder_.mergeFrom(value); + } + if (warningTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * The time the warning occurred.
        +     * 
        + * + * .google.protobuf.Timestamp warning_time = 5; + */ + public Builder clearWarningTime() { + bitField0_ = (bitField0_ & ~0x00000010); + warningTime_ = null; + if (warningTimeBuilder_ != null) { + warningTimeBuilder_.dispose(); + warningTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * The time the warning occurred.
        +     * 
        + * + * .google.protobuf.Timestamp warning_time = 5; + */ + public com.google.protobuf.Timestamp.Builder getWarningTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getWarningTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * The time the warning occurred.
        +     * 
        + * + * .google.protobuf.Timestamp warning_time = 5; + */ + public com.google.protobuf.TimestampOrBuilder getWarningTimeOrBuilder() { + if (warningTimeBuilder_ != null) { + return warningTimeBuilder_.getMessageOrBuilder(); + } else { + return warningTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : warningTime_; + } + } + + /** + * + * + *
        +     * The time the warning occurred.
        +     * 
        + * + * .google.protobuf.Timestamp warning_time = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getWarningTimeFieldBuilder() { + if (warningTimeBuilder_ == null) { + warningTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getWarningTime(), getParentForChildren(), isClean()); + warningTime_ = null; + } + return warningTimeBuilder_; + } + + @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.vmmigration.v1.MigrationWarning) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.MigrationWarning) + private static final com.google.cloud.vmmigration.v1.MigrationWarning DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.MigrationWarning(); + } + + public static com.google.cloud.vmmigration.v1.MigrationWarning getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MigrationWarning parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.MigrationWarning getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/MigrationWarningOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/MigrationWarningOrBuilder.java new file mode 100644 index 000000000000..3a3361711c41 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/MigrationWarningOrBuilder.java @@ -0,0 +1,245 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface MigrationWarningOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.MigrationWarning) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * The warning code.
        +   * 
        + * + * .google.cloud.vmmigration.v1.MigrationWarning.WarningCode code = 1; + * + * @return The enum numeric value on the wire for code. + */ + int getCodeValue(); + + /** + * + * + *
        +   * The warning code.
        +   * 
        + * + * .google.cloud.vmmigration.v1.MigrationWarning.WarningCode code = 1; + * + * @return The code. + */ + com.google.cloud.vmmigration.v1.MigrationWarning.WarningCode getCode(); + + /** + * + * + *
        +   * Output only. The localized warning message.
        +   * 
        + * + * + * .google.rpc.LocalizedMessage warning_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the warningMessage field is set. + */ + boolean hasWarningMessage(); + + /** + * + * + *
        +   * Output only. The localized warning message.
        +   * 
        + * + * + * .google.rpc.LocalizedMessage warning_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The warningMessage. + */ + com.google.rpc.LocalizedMessage getWarningMessage(); + + /** + * + * + *
        +   * Output only. The localized warning message.
        +   * 
        + * + * + * .google.rpc.LocalizedMessage warning_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.rpc.LocalizedMessageOrBuilder getWarningMessageOrBuilder(); + + /** + * + * + *
        +   * Output only. Suggested action for solving the warning.
        +   * 
        + * + * + * .google.rpc.LocalizedMessage action_item = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the actionItem field is set. + */ + boolean hasActionItem(); + + /** + * + * + *
        +   * Output only. Suggested action for solving the warning.
        +   * 
        + * + * + * .google.rpc.LocalizedMessage action_item = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The actionItem. + */ + com.google.rpc.LocalizedMessage getActionItem(); + + /** + * + * + *
        +   * Output only. Suggested action for solving the warning.
        +   * 
        + * + * + * .google.rpc.LocalizedMessage action_item = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.rpc.LocalizedMessageOrBuilder getActionItemOrBuilder(); + + /** + * + * + *
        +   * Output only. URL(s) pointing to additional information on handling the
        +   * current warning.
        +   * 
        + * + * + * repeated .google.rpc.Help.Link help_links = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getHelpLinksList(); + + /** + * + * + *
        +   * Output only. URL(s) pointing to additional information on handling the
        +   * current warning.
        +   * 
        + * + * + * repeated .google.rpc.Help.Link help_links = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.rpc.Help.Link getHelpLinks(int index); + + /** + * + * + *
        +   * Output only. URL(s) pointing to additional information on handling the
        +   * current warning.
        +   * 
        + * + * + * repeated .google.rpc.Help.Link help_links = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getHelpLinksCount(); + + /** + * + * + *
        +   * Output only. URL(s) pointing to additional information on handling the
        +   * current warning.
        +   * 
        + * + * + * repeated .google.rpc.Help.Link help_links = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getHelpLinksOrBuilderList(); + + /** + * + * + *
        +   * Output only. URL(s) pointing to additional information on handling the
        +   * current warning.
        +   * 
        + * + * + * repeated .google.rpc.Help.Link help_links = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.rpc.Help.LinkOrBuilder getHelpLinksOrBuilder(int index); + + /** + * + * + *
        +   * The time the warning occurred.
        +   * 
        + * + * .google.protobuf.Timestamp warning_time = 5; + * + * @return Whether the warningTime field is set. + */ + boolean hasWarningTime(); + + /** + * + * + *
        +   * The time the warning occurred.
        +   * 
        + * + * .google.protobuf.Timestamp warning_time = 5; + * + * @return The warningTime. + */ + com.google.protobuf.Timestamp getWarningTime(); + + /** + * + * + *
        +   * The time the warning occurred.
        +   * 
        + * + * .google.protobuf.Timestamp warning_time = 5; + */ + com.google.protobuf.TimestampOrBuilder getWarningTimeOrBuilder(); +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/NetworkInterface.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/NetworkInterface.java index 7dbb2860159c..358b73d905d7 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/NetworkInterface.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/NetworkInterface.java @@ -44,6 +44,7 @@ private NetworkInterface() { subnetwork_ = ""; internalIp_ = ""; externalIp_ = ""; + networkTier_ = 0; } @java.lang.Override @@ -76,10 +77,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
        -   * The network to connect the NIC to.
        +   * Optional. The network to connect the NIC to.
            * 
        * - * string network = 1; + * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The network. */ @@ -100,10 +101,10 @@ public java.lang.String getNetwork() { * * *
        -   * The network to connect the NIC to.
        +   * Optional. The network to connect the NIC to.
            * 
        * - * string network = 1; + * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for network. */ @@ -129,10 +130,10 @@ public com.google.protobuf.ByteString getNetworkBytes() { * * *
        -   * The subnetwork to connect the NIC to.
        +   * Optional. The subnetwork to connect the NIC to.
            * 
        * - * string subnetwork = 2; + * string subnetwork = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The subnetwork. */ @@ -153,10 +154,10 @@ public java.lang.String getSubnetwork() { * * *
        -   * The subnetwork to connect the NIC to.
        +   * Optional. The subnetwork to connect the NIC to.
            * 
        * - * string subnetwork = 2; + * string subnetwork = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for subnetwork. */ @@ -182,12 +183,12 @@ public com.google.protobuf.ByteString getSubnetworkBytes() { * * *
        -   * The internal IP to define in the NIC.
        +   * Optional. The internal IP to define in the NIC.
            * The formats accepted are: `ephemeral` \ ipv4 address \ a named address
            * resource full path.
            * 
        * - * string internal_ip = 3; + * string internal_ip = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The internalIp. */ @@ -208,12 +209,12 @@ public java.lang.String getInternalIp() { * * *
        -   * The internal IP to define in the NIC.
        +   * Optional. The internal IP to define in the NIC.
            * The formats accepted are: `ephemeral` \ ipv4 address \ a named address
            * resource full path.
            * 
        * - * string internal_ip = 3; + * string internal_ip = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for internalIp. */ @@ -239,10 +240,10 @@ public com.google.protobuf.ByteString getInternalIpBytes() { * * *
        -   * The external IP to define in the NIC.
        +   * Optional. The external IP to define in the NIC.
            * 
        * - * string external_ip = 4; + * string external_ip = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The externalIp. */ @@ -263,10 +264,10 @@ public java.lang.String getExternalIp() { * * *
        -   * The external IP to define in the NIC.
        +   * Optional. The external IP to define in the NIC.
            * 
        * - * string external_ip = 4; + * string external_ip = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for externalIp. */ @@ -283,6 +284,53 @@ public com.google.protobuf.ByteString getExternalIpBytes() { } } + public static final int NETWORK_TIER_FIELD_NUMBER = 5; + private int networkTier_ = 0; + + /** + * + * + *
        +   * Optional. The networking tier used for optimizing connectivity between
        +   * instances and systems on the internet. Applies only for external ephemeral
        +   * IP addresses. If left empty, will default to PREMIUM.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineNetworkTier network_tier = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for networkTier. + */ + @java.lang.Override + public int getNetworkTierValue() { + return networkTier_; + } + + /** + * + * + *
        +   * Optional. The networking tier used for optimizing connectivity between
        +   * instances and systems on the internet. Applies only for external ephemeral
        +   * IP addresses. If left empty, will default to PREMIUM.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineNetworkTier network_tier = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The networkTier. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ComputeEngineNetworkTier getNetworkTier() { + com.google.cloud.vmmigration.v1.ComputeEngineNetworkTier result = + com.google.cloud.vmmigration.v1.ComputeEngineNetworkTier.forNumber(networkTier_); + return result == null + ? com.google.cloud.vmmigration.v1.ComputeEngineNetworkTier.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -309,6 +357,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalIp_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, externalIp_); } + if (networkTier_ + != com.google.cloud.vmmigration.v1.ComputeEngineNetworkTier + .COMPUTE_ENGINE_NETWORK_TIER_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, networkTier_); + } getUnknownFields().writeTo(output); } @@ -330,6 +384,12 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalIp_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, externalIp_); } + if (networkTier_ + != com.google.cloud.vmmigration.v1.ComputeEngineNetworkTier + .COMPUTE_ENGINE_NETWORK_TIER_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, networkTier_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -350,6 +410,7 @@ public boolean equals(final java.lang.Object obj) { if (!getSubnetwork().equals(other.getSubnetwork())) return false; if (!getInternalIp().equals(other.getInternalIp())) return false; if (!getExternalIp().equals(other.getExternalIp())) return false; + if (networkTier_ != other.networkTier_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -369,6 +430,8 @@ public int hashCode() { hash = (53 * hash) + getInternalIp().hashCode(); hash = (37 * hash) + EXTERNAL_IP_FIELD_NUMBER; hash = (53 * hash) + getExternalIp().hashCode(); + hash = (37 * hash) + NETWORK_TIER_FIELD_NUMBER; + hash = (53 * hash) + networkTier_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -513,6 +576,7 @@ public Builder clear() { subnetwork_ = ""; internalIp_ = ""; externalIp_ = ""; + networkTier_ = 0; return this; } @@ -561,6 +625,9 @@ private void buildPartial0(com.google.cloud.vmmigration.v1.NetworkInterface resu if (((from_bitField0_ & 0x00000008) != 0)) { result.externalIp_ = externalIp_; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.networkTier_ = networkTier_; + } } @java.lang.Override @@ -629,6 +696,9 @@ public Builder mergeFrom(com.google.cloud.vmmigration.v1.NetworkInterface other) bitField0_ |= 0x00000008; onChanged(); } + if (other.networkTier_ != 0) { + setNetworkTierValue(other.getNetworkTierValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -679,6 +749,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 34 + case 40: + { + networkTier_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -704,10 +780,10 @@ public Builder mergeFrom( * * *
        -     * The network to connect the NIC to.
        +     * Optional. The network to connect the NIC to.
              * 
        * - * string network = 1; + * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The network. */ @@ -727,10 +803,10 @@ public java.lang.String getNetwork() { * * *
        -     * The network to connect the NIC to.
        +     * Optional. The network to connect the NIC to.
              * 
        * - * string network = 1; + * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for network. */ @@ -750,10 +826,10 @@ public com.google.protobuf.ByteString getNetworkBytes() { * * *
        -     * The network to connect the NIC to.
        +     * Optional. The network to connect the NIC to.
              * 
        * - * string network = 1; + * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The network to set. * @return This builder for chaining. @@ -772,10 +848,10 @@ public Builder setNetwork(java.lang.String value) { * * *
        -     * The network to connect the NIC to.
        +     * Optional. The network to connect the NIC to.
              * 
        * - * string network = 1; + * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -790,10 +866,10 @@ public Builder clearNetwork() { * * *
        -     * The network to connect the NIC to.
        +     * Optional. The network to connect the NIC to.
              * 
        * - * string network = 1; + * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for network to set. * @return This builder for chaining. @@ -815,10 +891,10 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { * * *
        -     * The subnetwork to connect the NIC to.
        +     * Optional. The subnetwork to connect the NIC to.
              * 
        * - * string subnetwork = 2; + * string subnetwork = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The subnetwork. */ @@ -838,10 +914,10 @@ public java.lang.String getSubnetwork() { * * *
        -     * The subnetwork to connect the NIC to.
        +     * Optional. The subnetwork to connect the NIC to.
              * 
        * - * string subnetwork = 2; + * string subnetwork = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for subnetwork. */ @@ -861,10 +937,10 @@ public com.google.protobuf.ByteString getSubnetworkBytes() { * * *
        -     * The subnetwork to connect the NIC to.
        +     * Optional. The subnetwork to connect the NIC to.
              * 
        * - * string subnetwork = 2; + * string subnetwork = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The subnetwork to set. * @return This builder for chaining. @@ -883,10 +959,10 @@ public Builder setSubnetwork(java.lang.String value) { * * *
        -     * The subnetwork to connect the NIC to.
        +     * Optional. The subnetwork to connect the NIC to.
              * 
        * - * string subnetwork = 2; + * string subnetwork = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -901,10 +977,10 @@ public Builder clearSubnetwork() { * * *
        -     * The subnetwork to connect the NIC to.
        +     * Optional. The subnetwork to connect the NIC to.
              * 
        * - * string subnetwork = 2; + * string subnetwork = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for subnetwork to set. * @return This builder for chaining. @@ -926,12 +1002,12 @@ public Builder setSubnetworkBytes(com.google.protobuf.ByteString value) { * * *
        -     * The internal IP to define in the NIC.
        +     * Optional. The internal IP to define in the NIC.
              * The formats accepted are: `ephemeral` \ ipv4 address \ a named address
              * resource full path.
              * 
        * - * string internal_ip = 3; + * string internal_ip = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The internalIp. */ @@ -951,12 +1027,12 @@ public java.lang.String getInternalIp() { * * *
        -     * The internal IP to define in the NIC.
        +     * Optional. The internal IP to define in the NIC.
              * The formats accepted are: `ephemeral` \ ipv4 address \ a named address
              * resource full path.
              * 
        * - * string internal_ip = 3; + * string internal_ip = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for internalIp. */ @@ -976,12 +1052,12 @@ public com.google.protobuf.ByteString getInternalIpBytes() { * * *
        -     * The internal IP to define in the NIC.
        +     * Optional. The internal IP to define in the NIC.
              * The formats accepted are: `ephemeral` \ ipv4 address \ a named address
              * resource full path.
              * 
        * - * string internal_ip = 3; + * string internal_ip = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The internalIp to set. * @return This builder for chaining. @@ -1000,12 +1076,12 @@ public Builder setInternalIp(java.lang.String value) { * * *
        -     * The internal IP to define in the NIC.
        +     * Optional. The internal IP to define in the NIC.
              * The formats accepted are: `ephemeral` \ ipv4 address \ a named address
              * resource full path.
              * 
        * - * string internal_ip = 3; + * string internal_ip = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1020,12 +1096,12 @@ public Builder clearInternalIp() { * * *
        -     * The internal IP to define in the NIC.
        +     * Optional. The internal IP to define in the NIC.
              * The formats accepted are: `ephemeral` \ ipv4 address \ a named address
              * resource full path.
              * 
        * - * string internal_ip = 3; + * string internal_ip = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for internalIp to set. * @return This builder for chaining. @@ -1047,10 +1123,10 @@ public Builder setInternalIpBytes(com.google.protobuf.ByteString value) { * * *
        -     * The external IP to define in the NIC.
        +     * Optional. The external IP to define in the NIC.
              * 
        * - * string external_ip = 4; + * string external_ip = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The externalIp. */ @@ -1070,10 +1146,10 @@ public java.lang.String getExternalIp() { * * *
        -     * The external IP to define in the NIC.
        +     * Optional. The external IP to define in the NIC.
              * 
        * - * string external_ip = 4; + * string external_ip = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for externalIp. */ @@ -1093,10 +1169,10 @@ public com.google.protobuf.ByteString getExternalIpBytes() { * * *
        -     * The external IP to define in the NIC.
        +     * Optional. The external IP to define in the NIC.
              * 
        * - * string external_ip = 4; + * string external_ip = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The externalIp to set. * @return This builder for chaining. @@ -1115,10 +1191,10 @@ public Builder setExternalIp(java.lang.String value) { * * *
        -     * The external IP to define in the NIC.
        +     * Optional. The external IP to define in the NIC.
              * 
        * - * string external_ip = 4; + * string external_ip = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1133,10 +1209,10 @@ public Builder clearExternalIp() { * * *
        -     * The external IP to define in the NIC.
        +     * Optional. The external IP to define in the NIC.
              * 
        * - * string external_ip = 4; + * string external_ip = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for externalIp to set. * @return This builder for chaining. @@ -1152,6 +1228,123 @@ public Builder setExternalIpBytes(com.google.protobuf.ByteString value) { return this; } + private int networkTier_ = 0; + + /** + * + * + *
        +     * Optional. The networking tier used for optimizing connectivity between
        +     * instances and systems on the internet. Applies only for external ephemeral
        +     * IP addresses. If left empty, will default to PREMIUM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineNetworkTier network_tier = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for networkTier. + */ + @java.lang.Override + public int getNetworkTierValue() { + return networkTier_; + } + + /** + * + * + *
        +     * Optional. The networking tier used for optimizing connectivity between
        +     * instances and systems on the internet. Applies only for external ephemeral
        +     * IP addresses. If left empty, will default to PREMIUM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineNetworkTier network_tier = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for networkTier to set. + * @return This builder for chaining. + */ + public Builder setNetworkTierValue(int value) { + networkTier_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The networking tier used for optimizing connectivity between
        +     * instances and systems on the internet. Applies only for external ephemeral
        +     * IP addresses. If left empty, will default to PREMIUM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineNetworkTier network_tier = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The networkTier. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ComputeEngineNetworkTier getNetworkTier() { + com.google.cloud.vmmigration.v1.ComputeEngineNetworkTier result = + com.google.cloud.vmmigration.v1.ComputeEngineNetworkTier.forNumber(networkTier_); + return result == null + ? com.google.cloud.vmmigration.v1.ComputeEngineNetworkTier.UNRECOGNIZED + : result; + } + + /** + * + * + *
        +     * Optional. The networking tier used for optimizing connectivity between
        +     * instances and systems on the internet. Applies only for external ephemeral
        +     * IP addresses. If left empty, will default to PREMIUM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineNetworkTier network_tier = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The networkTier to set. + * @return This builder for chaining. + */ + public Builder setNetworkTier(com.google.cloud.vmmigration.v1.ComputeEngineNetworkTier value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + networkTier_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The networking tier used for optimizing connectivity between
        +     * instances and systems on the internet. Applies only for external ephemeral
        +     * IP addresses. If left empty, will default to PREMIUM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineNetworkTier network_tier = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearNetworkTier() { + bitField0_ = (bitField0_ & ~0x00000010); + networkTier_ = 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-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/NetworkInterfaceOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/NetworkInterfaceOrBuilder.java index 053c5f47b0fc..4df53b751974 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/NetworkInterfaceOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/NetworkInterfaceOrBuilder.java @@ -28,10 +28,10 @@ public interface NetworkInterfaceOrBuilder * * *
        -   * The network to connect the NIC to.
        +   * Optional. The network to connect the NIC to.
            * 
        * - * string network = 1; + * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The network. */ @@ -41,10 +41,10 @@ public interface NetworkInterfaceOrBuilder * * *
        -   * The network to connect the NIC to.
        +   * Optional. The network to connect the NIC to.
            * 
        * - * string network = 1; + * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for network. */ @@ -54,10 +54,10 @@ public interface NetworkInterfaceOrBuilder * * *
        -   * The subnetwork to connect the NIC to.
        +   * Optional. The subnetwork to connect the NIC to.
            * 
        * - * string subnetwork = 2; + * string subnetwork = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The subnetwork. */ @@ -67,10 +67,10 @@ public interface NetworkInterfaceOrBuilder * * *
        -   * The subnetwork to connect the NIC to.
        +   * Optional. The subnetwork to connect the NIC to.
            * 
        * - * string subnetwork = 2; + * string subnetwork = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for subnetwork. */ @@ -80,12 +80,12 @@ public interface NetworkInterfaceOrBuilder * * *
        -   * The internal IP to define in the NIC.
        +   * Optional. The internal IP to define in the NIC.
            * The formats accepted are: `ephemeral` \ ipv4 address \ a named address
            * resource full path.
            * 
        * - * string internal_ip = 3; + * string internal_ip = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The internalIp. */ @@ -95,12 +95,12 @@ public interface NetworkInterfaceOrBuilder * * *
        -   * The internal IP to define in the NIC.
        +   * Optional. The internal IP to define in the NIC.
            * The formats accepted are: `ephemeral` \ ipv4 address \ a named address
            * resource full path.
            * 
        * - * string internal_ip = 3; + * string internal_ip = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for internalIp. */ @@ -110,10 +110,10 @@ public interface NetworkInterfaceOrBuilder * * *
        -   * The external IP to define in the NIC.
        +   * Optional. The external IP to define in the NIC.
            * 
        * - * string external_ip = 4; + * string external_ip = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The externalIp. */ @@ -123,12 +123,46 @@ public interface NetworkInterfaceOrBuilder * * *
        -   * The external IP to define in the NIC.
        +   * Optional. The external IP to define in the NIC.
            * 
        * - * string external_ip = 4; + * string external_ip = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for externalIp. */ com.google.protobuf.ByteString getExternalIpBytes(); + + /** + * + * + *
        +   * Optional. The networking tier used for optimizing connectivity between
        +   * instances and systems on the internet. Applies only for external ephemeral
        +   * IP addresses. If left empty, will default to PREMIUM.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineNetworkTier network_tier = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for networkTier. + */ + int getNetworkTierValue(); + + /** + * + * + *
        +   * Optional. The networking tier used for optimizing connectivity between
        +   * instances and systems on the internet. Applies only for external ephemeral
        +   * IP addresses. If left empty, will default to PREMIUM.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ComputeEngineNetworkTier network_tier = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The networkTier. + */ + com.google.cloud.vmmigration.v1.ComputeEngineNetworkTier getNetworkTier(); } diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/OsCapability.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/OsCapability.java new file mode 100644 index 000000000000..f56ca1445aeb --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/OsCapability.java @@ -0,0 +1,203 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * VM operating system (OS) capabilities needed for determining compatibility
        + * with Compute Engine features supported by the migration.
        + * 
        + * + * Protobuf enum {@code google.cloud.vmmigration.v1.OsCapability} + */ +public enum OsCapability implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
        +   * This is for API compatibility only and is not in use.
        +   * 
        + * + * OS_CAPABILITY_UNSPECIFIED = 0; + */ + OS_CAPABILITY_UNSPECIFIED(0), + /** + * + * + *
        +   * NVMe driver installed and the VM can use NVMe PD or local SSD.
        +   * 
        + * + * OS_CAPABILITY_NVME_STORAGE_ACCESS = 1; + */ + OS_CAPABILITY_NVME_STORAGE_ACCESS(1), + /** + * + * + *
        +   * gVNIC virtual NIC driver supported.
        +   * 
        + * + * OS_CAPABILITY_GVNIC_NETWORK_INTERFACE = 2; + */ + OS_CAPABILITY_GVNIC_NETWORK_INTERFACE(2), + /** + * + * + *
        +   * IDPF virtual NIC driver supported.
        +   * 
        + * + * OS_CAPABILITY_IDPF_NETWORK_INTERFACE = 3; + */ + OS_CAPABILITY_IDPF_NETWORK_INTERFACE(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
        +   * This is for API compatibility only and is not in use.
        +   * 
        + * + * OS_CAPABILITY_UNSPECIFIED = 0; + */ + public static final int OS_CAPABILITY_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
        +   * NVMe driver installed and the VM can use NVMe PD or local SSD.
        +   * 
        + * + * OS_CAPABILITY_NVME_STORAGE_ACCESS = 1; + */ + public static final int OS_CAPABILITY_NVME_STORAGE_ACCESS_VALUE = 1; + + /** + * + * + *
        +   * gVNIC virtual NIC driver supported.
        +   * 
        + * + * OS_CAPABILITY_GVNIC_NETWORK_INTERFACE = 2; + */ + public static final int OS_CAPABILITY_GVNIC_NETWORK_INTERFACE_VALUE = 2; + + /** + * + * + *
        +   * IDPF virtual NIC driver supported.
        +   * 
        + * + * OS_CAPABILITY_IDPF_NETWORK_INTERFACE = 3; + */ + public static final int OS_CAPABILITY_IDPF_NETWORK_INTERFACE_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 OsCapability 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 OsCapability forNumber(int value) { + switch (value) { + case 0: + return OS_CAPABILITY_UNSPECIFIED; + case 1: + return OS_CAPABILITY_NVME_STORAGE_ACCESS; + case 2: + return OS_CAPABILITY_GVNIC_NETWORK_INTERFACE; + case 3: + return OS_CAPABILITY_IDPF_NETWORK_INTERFACE; + 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 OsCapability findValueByNumber(int number) { + return OsCapability.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.vmmigration.v1.VmMigrationProto.getDescriptor().getEnumTypes().get(3); + } + + private static final OsCapability[] VALUES = values(); + + public static OsCapability 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 OsCapability(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.vmmigration.v1.OsCapability) +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/PersistentDisk.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/PersistentDisk.java new file mode 100644 index 000000000000..de400c2357b0 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/PersistentDisk.java @@ -0,0 +1,730 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * Details of a created Persistent Disk.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.PersistentDisk} + */ +public final class PersistentDisk extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.PersistentDisk) + PersistentDiskOrBuilder { + private static final long serialVersionUID = 0L; + + // Use PersistentDisk.newBuilder() to construct. + private PersistentDisk(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PersistentDisk() { + diskUri_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PersistentDisk(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_PersistentDisk_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_PersistentDisk_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.PersistentDisk.class, + com.google.cloud.vmmigration.v1.PersistentDisk.Builder.class); + } + + public static final int SOURCE_DISK_NUMBER_FIELD_NUMBER = 1; + private int sourceDiskNumber_ = 0; + + /** + * + * + *
        +   * The ordinal number of the source VM disk.
        +   * 
        + * + * int32 source_disk_number = 1; + * + * @return The sourceDiskNumber. + */ + @java.lang.Override + public int getSourceDiskNumber() { + return sourceDiskNumber_; + } + + public static final int DISK_URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object diskUri_ = ""; + + /** + * + * + *
        +   * The URI of the Persistent Disk.
        +   * 
        + * + * string disk_uri = 2; + * + * @return The diskUri. + */ + @java.lang.Override + public java.lang.String getDiskUri() { + java.lang.Object ref = diskUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + diskUri_ = s; + return s; + } + } + + /** + * + * + *
        +   * The URI of the Persistent Disk.
        +   * 
        + * + * string disk_uri = 2; + * + * @return The bytes for diskUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDiskUriBytes() { + java.lang.Object ref = diskUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + diskUri_ = 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 (sourceDiskNumber_ != 0) { + output.writeInt32(1, sourceDiskNumber_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, diskUri_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (sourceDiskNumber_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, sourceDiskNumber_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, diskUri_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.vmmigration.v1.PersistentDisk)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.PersistentDisk other = + (com.google.cloud.vmmigration.v1.PersistentDisk) obj; + + if (getSourceDiskNumber() != other.getSourceDiskNumber()) return false; + if (!getDiskUri().equals(other.getDiskUri())) 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) + SOURCE_DISK_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getSourceDiskNumber(); + hash = (37 * hash) + DISK_URI_FIELD_NUMBER; + hash = (53 * hash) + getDiskUri().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.PersistentDisk parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.PersistentDisk 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.vmmigration.v1.PersistentDisk parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.PersistentDisk parseFrom( + 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.vmmigration.v1.PersistentDisk parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.PersistentDisk parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.PersistentDisk parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.PersistentDisk 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.vmmigration.v1.PersistentDisk parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.PersistentDisk 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.vmmigration.v1.PersistentDisk parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.PersistentDisk 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.vmmigration.v1.PersistentDisk prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * Details of a created Persistent Disk.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.PersistentDisk} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.PersistentDisk) + com.google.cloud.vmmigration.v1.PersistentDiskOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_PersistentDisk_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_PersistentDisk_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.PersistentDisk.class, + com.google.cloud.vmmigration.v1.PersistentDisk.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.PersistentDisk.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sourceDiskNumber_ = 0; + diskUri_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_PersistentDisk_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.PersistentDisk getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.PersistentDisk.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.PersistentDisk build() { + com.google.cloud.vmmigration.v1.PersistentDisk result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.PersistentDisk buildPartial() { + com.google.cloud.vmmigration.v1.PersistentDisk result = + new com.google.cloud.vmmigration.v1.PersistentDisk(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vmmigration.v1.PersistentDisk result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sourceDiskNumber_ = sourceDiskNumber_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.diskUri_ = diskUri_; + } + } + + @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.vmmigration.v1.PersistentDisk) { + return mergeFrom((com.google.cloud.vmmigration.v1.PersistentDisk) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.PersistentDisk other) { + if (other == com.google.cloud.vmmigration.v1.PersistentDisk.getDefaultInstance()) return this; + if (other.getSourceDiskNumber() != 0) { + setSourceDiskNumber(other.getSourceDiskNumber()); + } + if (!other.getDiskUri().isEmpty()) { + diskUri_ = other.diskUri_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + sourceDiskNumber_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + diskUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int sourceDiskNumber_; + + /** + * + * + *
        +     * The ordinal number of the source VM disk.
        +     * 
        + * + * int32 source_disk_number = 1; + * + * @return The sourceDiskNumber. + */ + @java.lang.Override + public int getSourceDiskNumber() { + return sourceDiskNumber_; + } + + /** + * + * + *
        +     * The ordinal number of the source VM disk.
        +     * 
        + * + * int32 source_disk_number = 1; + * + * @param value The sourceDiskNumber to set. + * @return This builder for chaining. + */ + public Builder setSourceDiskNumber(int value) { + + sourceDiskNumber_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +     * The ordinal number of the source VM disk.
        +     * 
        + * + * int32 source_disk_number = 1; + * + * @return This builder for chaining. + */ + public Builder clearSourceDiskNumber() { + bitField0_ = (bitField0_ & ~0x00000001); + sourceDiskNumber_ = 0; + onChanged(); + return this; + } + + private java.lang.Object diskUri_ = ""; + + /** + * + * + *
        +     * The URI of the Persistent Disk.
        +     * 
        + * + * string disk_uri = 2; + * + * @return The diskUri. + */ + public java.lang.String getDiskUri() { + java.lang.Object ref = diskUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + diskUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * The URI of the Persistent Disk.
        +     * 
        + * + * string disk_uri = 2; + * + * @return The bytes for diskUri. + */ + public com.google.protobuf.ByteString getDiskUriBytes() { + java.lang.Object ref = diskUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + diskUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * The URI of the Persistent Disk.
        +     * 
        + * + * string disk_uri = 2; + * + * @param value The diskUri to set. + * @return This builder for chaining. + */ + public Builder setDiskUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + diskUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +     * The URI of the Persistent Disk.
        +     * 
        + * + * string disk_uri = 2; + * + * @return This builder for chaining. + */ + public Builder clearDiskUri() { + diskUri_ = getDefaultInstance().getDiskUri(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
        +     * The URI of the Persistent Disk.
        +     * 
        + * + * string disk_uri = 2; + * + * @param value The bytes for diskUri to set. + * @return This builder for chaining. + */ + public Builder setDiskUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + diskUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmmigration.v1.PersistentDisk) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.PersistentDisk) + private static final com.google.cloud.vmmigration.v1.PersistentDisk DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.PersistentDisk(); + } + + public static com.google.cloud.vmmigration.v1.PersistentDisk getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PersistentDisk parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.PersistentDisk getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/PersistentDiskDefaults.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/PersistentDiskDefaults.java new file mode 100644 index 000000000000..7ab819203e12 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/PersistentDiskDefaults.java @@ -0,0 +1,1899 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * Details for creation of a Persistent Disk.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.PersistentDiskDefaults} + */ +public final class PersistentDiskDefaults extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.PersistentDiskDefaults) + PersistentDiskDefaultsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use PersistentDiskDefaults.newBuilder() to construct. + private PersistentDiskDefaults(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PersistentDiskDefaults() { + diskName_ = ""; + diskType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PersistentDiskDefaults(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_PersistentDiskDefaults_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetAdditionalLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_PersistentDiskDefaults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.PersistentDiskDefaults.class, + com.google.cloud.vmmigration.v1.PersistentDiskDefaults.Builder.class); + } + + private int bitField0_; + public static final int SOURCE_DISK_NUMBER_FIELD_NUMBER = 1; + private int sourceDiskNumber_ = 0; + + /** + * + * + *
        +   * Required. The ordinal number of the source VM disk.
        +   * 
        + * + * int32 source_disk_number = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The sourceDiskNumber. + */ + @java.lang.Override + public int getSourceDiskNumber() { + return sourceDiskNumber_; + } + + public static final int DISK_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object diskName_ = ""; + + /** + * + * + *
        +   * Optional. The name of the Persistent Disk to create.
        +   * 
        + * + * string disk_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The diskName. + */ + @java.lang.Override + public java.lang.String getDiskName() { + java.lang.Object ref = diskName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + diskName_ = s; + return s; + } + } + + /** + * + * + *
        +   * Optional. The name of the Persistent Disk to create.
        +   * 
        + * + * string disk_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for diskName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDiskNameBytes() { + java.lang.Object ref = diskName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + diskName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISK_TYPE_FIELD_NUMBER = 3; + private int diskType_ = 0; + + /** + * + * + *
        +   * The disk type to use.
        +   * 
        + * + * .google.cloud.vmmigration.v1.ComputeEngineDiskType disk_type = 3; + * + * @return The enum numeric value on the wire for diskType. + */ + @java.lang.Override + public int getDiskTypeValue() { + return diskType_; + } + + /** + * + * + *
        +   * The disk type to use.
        +   * 
        + * + * .google.cloud.vmmigration.v1.ComputeEngineDiskType disk_type = 3; + * + * @return The diskType. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ComputeEngineDiskType getDiskType() { + com.google.cloud.vmmigration.v1.ComputeEngineDiskType result = + com.google.cloud.vmmigration.v1.ComputeEngineDiskType.forNumber(diskType_); + return result == null + ? com.google.cloud.vmmigration.v1.ComputeEngineDiskType.UNRECOGNIZED + : result; + } + + public static final int ADDITIONAL_LABELS_FIELD_NUMBER = 4; + + private static final class AdditionalLabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_PersistentDiskDefaults_AdditionalLabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField additionalLabels_; + + private com.google.protobuf.MapField + internalGetAdditionalLabels() { + if (additionalLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AdditionalLabelsDefaultEntryHolder.defaultEntry); + } + return additionalLabels_; + } + + public int getAdditionalLabelsCount() { + return internalGetAdditionalLabels().getMap().size(); + } + + /** + * + * + *
        +   * A map of labels to associate with the Persistent Disk.
        +   * 
        + * + * map<string, string> additional_labels = 4; + */ + @java.lang.Override + public boolean containsAdditionalLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAdditionalLabels().getMap().containsKey(key); + } + + /** Use {@link #getAdditionalLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAdditionalLabels() { + return getAdditionalLabelsMap(); + } + + /** + * + * + *
        +   * A map of labels to associate with the Persistent Disk.
        +   * 
        + * + * map<string, string> additional_labels = 4; + */ + @java.lang.Override + public java.util.Map getAdditionalLabelsMap() { + return internalGetAdditionalLabels().getMap(); + } + + /** + * + * + *
        +   * A map of labels to associate with the Persistent Disk.
        +   * 
        + * + * map<string, string> additional_labels = 4; + */ + @java.lang.Override + public /* nullable */ java.lang.String getAdditionalLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAdditionalLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
        +   * A map of labels to associate with the Persistent Disk.
        +   * 
        + * + * map<string, string> additional_labels = 4; + */ + @java.lang.Override + public java.lang.String getAdditionalLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAdditionalLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int ENCRYPTION_FIELD_NUMBER = 5; + private com.google.cloud.vmmigration.v1.Encryption encryption_; + + /** + * + * + *
        +   * Optional. The encryption to apply to the disk.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the encryption field is set. + */ + @java.lang.Override + public boolean hasEncryption() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
        +   * Optional. The encryption to apply to the disk.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The encryption. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.Encryption getEncryption() { + return encryption_ == null + ? com.google.cloud.vmmigration.v1.Encryption.getDefaultInstance() + : encryption_; + } + + /** + * + * + *
        +   * Optional. The encryption to apply to the disk.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.EncryptionOrBuilder getEncryptionOrBuilder() { + return encryption_ == null + ? com.google.cloud.vmmigration.v1.Encryption.getDefaultInstance() + : encryption_; + } + + public static final int VM_ATTACHMENT_DETAILS_FIELD_NUMBER = 6; + private com.google.cloud.vmmigration.v1.VmAttachmentDetails vmAttachmentDetails_; + + /** + * + * + *
        +   * Optional. Details for attachment of the disk to a VM.
        +   * Used when the disk is set to be attached to a target VM.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.VmAttachmentDetails vm_attachment_details = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the vmAttachmentDetails field is set. + */ + @java.lang.Override + public boolean hasVmAttachmentDetails() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
        +   * Optional. Details for attachment of the disk to a VM.
        +   * Used when the disk is set to be attached to a target VM.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.VmAttachmentDetails vm_attachment_details = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The vmAttachmentDetails. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.VmAttachmentDetails getVmAttachmentDetails() { + return vmAttachmentDetails_ == null + ? com.google.cloud.vmmigration.v1.VmAttachmentDetails.getDefaultInstance() + : vmAttachmentDetails_; + } + + /** + * + * + *
        +   * Optional. Details for attachment of the disk to a VM.
        +   * Used when the disk is set to be attached to a target VM.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.VmAttachmentDetails vm_attachment_details = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.VmAttachmentDetailsOrBuilder + getVmAttachmentDetailsOrBuilder() { + return vmAttachmentDetails_ == null + ? com.google.cloud.vmmigration.v1.VmAttachmentDetails.getDefaultInstance() + : vmAttachmentDetails_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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 (sourceDiskNumber_ != 0) { + output.writeInt32(1, sourceDiskNumber_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, diskName_); + } + if (diskType_ + != com.google.cloud.vmmigration.v1.ComputeEngineDiskType + .COMPUTE_ENGINE_DISK_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, diskType_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetAdditionalLabels(), AdditionalLabelsDefaultEntryHolder.defaultEntry, 4); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getEncryption()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getVmAttachmentDetails()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (sourceDiskNumber_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, sourceDiskNumber_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, diskName_); + } + if (diskType_ + != com.google.cloud.vmmigration.v1.ComputeEngineDiskType + .COMPUTE_ENGINE_DISK_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, diskType_); + } + for (java.util.Map.Entry entry : + internalGetAdditionalLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry additionalLabels__ = + AdditionalLabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, additionalLabels__); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEncryption()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getVmAttachmentDetails()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.vmmigration.v1.PersistentDiskDefaults)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.PersistentDiskDefaults other = + (com.google.cloud.vmmigration.v1.PersistentDiskDefaults) obj; + + if (getSourceDiskNumber() != other.getSourceDiskNumber()) return false; + if (!getDiskName().equals(other.getDiskName())) return false; + if (diskType_ != other.diskType_) return false; + if (!internalGetAdditionalLabels().equals(other.internalGetAdditionalLabels())) return false; + if (hasEncryption() != other.hasEncryption()) return false; + if (hasEncryption()) { + if (!getEncryption().equals(other.getEncryption())) return false; + } + if (hasVmAttachmentDetails() != other.hasVmAttachmentDetails()) return false; + if (hasVmAttachmentDetails()) { + if (!getVmAttachmentDetails().equals(other.getVmAttachmentDetails())) 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) + SOURCE_DISK_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getSourceDiskNumber(); + hash = (37 * hash) + DISK_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDiskName().hashCode(); + hash = (37 * hash) + DISK_TYPE_FIELD_NUMBER; + hash = (53 * hash) + diskType_; + if (!internalGetAdditionalLabels().getMap().isEmpty()) { + hash = (37 * hash) + ADDITIONAL_LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetAdditionalLabels().hashCode(); + } + if (hasEncryption()) { + hash = (37 * hash) + ENCRYPTION_FIELD_NUMBER; + hash = (53 * hash) + getEncryption().hashCode(); + } + if (hasVmAttachmentDetails()) { + hash = (37 * hash) + VM_ATTACHMENT_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getVmAttachmentDetails().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.PersistentDiskDefaults parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.PersistentDiskDefaults 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.vmmigration.v1.PersistentDiskDefaults parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.PersistentDiskDefaults parseFrom( + 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.vmmigration.v1.PersistentDiskDefaults parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.PersistentDiskDefaults parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.PersistentDiskDefaults parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.PersistentDiskDefaults 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.vmmigration.v1.PersistentDiskDefaults parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.PersistentDiskDefaults 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.vmmigration.v1.PersistentDiskDefaults parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.PersistentDiskDefaults 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.vmmigration.v1.PersistentDiskDefaults prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 for creation of a Persistent Disk.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.PersistentDiskDefaults} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.PersistentDiskDefaults) + com.google.cloud.vmmigration.v1.PersistentDiskDefaultsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_PersistentDiskDefaults_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetAdditionalLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetMutableAdditionalLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_PersistentDiskDefaults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.PersistentDiskDefaults.class, + com.google.cloud.vmmigration.v1.PersistentDiskDefaults.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.PersistentDiskDefaults.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getEncryptionFieldBuilder(); + getVmAttachmentDetailsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sourceDiskNumber_ = 0; + diskName_ = ""; + diskType_ = 0; + internalGetMutableAdditionalLabels().clear(); + encryption_ = null; + if (encryptionBuilder_ != null) { + encryptionBuilder_.dispose(); + encryptionBuilder_ = null; + } + vmAttachmentDetails_ = null; + if (vmAttachmentDetailsBuilder_ != null) { + vmAttachmentDetailsBuilder_.dispose(); + vmAttachmentDetailsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_PersistentDiskDefaults_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.PersistentDiskDefaults getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.PersistentDiskDefaults.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.PersistentDiskDefaults build() { + com.google.cloud.vmmigration.v1.PersistentDiskDefaults result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.PersistentDiskDefaults buildPartial() { + com.google.cloud.vmmigration.v1.PersistentDiskDefaults result = + new com.google.cloud.vmmigration.v1.PersistentDiskDefaults(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vmmigration.v1.PersistentDiskDefaults result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sourceDiskNumber_ = sourceDiskNumber_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.diskName_ = diskName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.diskType_ = diskType_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.additionalLabels_ = internalGetAdditionalLabels(); + result.additionalLabels_.makeImmutable(); + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.encryption_ = encryptionBuilder_ == null ? encryption_ : encryptionBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.vmAttachmentDetails_ = + vmAttachmentDetailsBuilder_ == null + ? vmAttachmentDetails_ + : vmAttachmentDetailsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmmigration.v1.PersistentDiskDefaults) { + return mergeFrom((com.google.cloud.vmmigration.v1.PersistentDiskDefaults) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.PersistentDiskDefaults other) { + if (other == com.google.cloud.vmmigration.v1.PersistentDiskDefaults.getDefaultInstance()) + return this; + if (other.getSourceDiskNumber() != 0) { + setSourceDiskNumber(other.getSourceDiskNumber()); + } + if (!other.getDiskName().isEmpty()) { + diskName_ = other.diskName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.diskType_ != 0) { + setDiskTypeValue(other.getDiskTypeValue()); + } + internalGetMutableAdditionalLabels().mergeFrom(other.internalGetAdditionalLabels()); + bitField0_ |= 0x00000008; + if (other.hasEncryption()) { + mergeEncryption(other.getEncryption()); + } + if (other.hasVmAttachmentDetails()) { + mergeVmAttachmentDetails(other.getVmAttachmentDetails()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + sourceDiskNumber_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + diskName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + diskType_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + com.google.protobuf.MapEntry + additionalLabels__ = + input.readMessage( + AdditionalLabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableAdditionalLabels() + .getMutableMap() + .put(additionalLabels__.getKey(), additionalLabels__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage(getEncryptionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage( + getVmAttachmentDetailsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int sourceDiskNumber_; + + /** + * + * + *
        +     * Required. The ordinal number of the source VM disk.
        +     * 
        + * + * int32 source_disk_number = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The sourceDiskNumber. + */ + @java.lang.Override + public int getSourceDiskNumber() { + return sourceDiskNumber_; + } + + /** + * + * + *
        +     * Required. The ordinal number of the source VM disk.
        +     * 
        + * + * int32 source_disk_number = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The sourceDiskNumber to set. + * @return This builder for chaining. + */ + public Builder setSourceDiskNumber(int value) { + + sourceDiskNumber_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The ordinal number of the source VM disk.
        +     * 
        + * + * int32 source_disk_number = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearSourceDiskNumber() { + bitField0_ = (bitField0_ & ~0x00000001); + sourceDiskNumber_ = 0; + onChanged(); + return this; + } + + private java.lang.Object diskName_ = ""; + + /** + * + * + *
        +     * Optional. The name of the Persistent Disk to create.
        +     * 
        + * + * string disk_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The diskName. + */ + public java.lang.String getDiskName() { + java.lang.Object ref = diskName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + diskName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Optional. The name of the Persistent Disk to create.
        +     * 
        + * + * string disk_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for diskName. + */ + public com.google.protobuf.ByteString getDiskNameBytes() { + java.lang.Object ref = diskName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + diskName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Optional. The name of the Persistent Disk to create.
        +     * 
        + * + * string disk_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The diskName to set. + * @return This builder for chaining. + */ + public Builder setDiskName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + diskName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The name of the Persistent Disk to create.
        +     * 
        + * + * string disk_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDiskName() { + diskName_ = getDefaultInstance().getDiskName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The name of the Persistent Disk to create.
        +     * 
        + * + * string disk_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for diskName to set. + * @return This builder for chaining. + */ + public Builder setDiskNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + diskName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int diskType_ = 0; + + /** + * + * + *
        +     * The disk type to use.
        +     * 
        + * + * .google.cloud.vmmigration.v1.ComputeEngineDiskType disk_type = 3; + * + * @return The enum numeric value on the wire for diskType. + */ + @java.lang.Override + public int getDiskTypeValue() { + return diskType_; + } + + /** + * + * + *
        +     * The disk type to use.
        +     * 
        + * + * .google.cloud.vmmigration.v1.ComputeEngineDiskType disk_type = 3; + * + * @param value The enum numeric value on the wire for diskType to set. + * @return This builder for chaining. + */ + public Builder setDiskTypeValue(int value) { + diskType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * The disk type to use.
        +     * 
        + * + * .google.cloud.vmmigration.v1.ComputeEngineDiskType disk_type = 3; + * + * @return The diskType. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ComputeEngineDiskType getDiskType() { + com.google.cloud.vmmigration.v1.ComputeEngineDiskType result = + com.google.cloud.vmmigration.v1.ComputeEngineDiskType.forNumber(diskType_); + return result == null + ? com.google.cloud.vmmigration.v1.ComputeEngineDiskType.UNRECOGNIZED + : result; + } + + /** + * + * + *
        +     * The disk type to use.
        +     * 
        + * + * .google.cloud.vmmigration.v1.ComputeEngineDiskType disk_type = 3; + * + * @param value The diskType to set. + * @return This builder for chaining. + */ + public Builder setDiskType(com.google.cloud.vmmigration.v1.ComputeEngineDiskType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + diskType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
        +     * The disk type to use.
        +     * 
        + * + * .google.cloud.vmmigration.v1.ComputeEngineDiskType disk_type = 3; + * + * @return This builder for chaining. + */ + public Builder clearDiskType() { + bitField0_ = (bitField0_ & ~0x00000004); + diskType_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.MapField additionalLabels_; + + private com.google.protobuf.MapField + internalGetAdditionalLabels() { + if (additionalLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AdditionalLabelsDefaultEntryHolder.defaultEntry); + } + return additionalLabels_; + } + + private com.google.protobuf.MapField + internalGetMutableAdditionalLabels() { + if (additionalLabels_ == null) { + additionalLabels_ = + com.google.protobuf.MapField.newMapField( + AdditionalLabelsDefaultEntryHolder.defaultEntry); + } + if (!additionalLabels_.isMutable()) { + additionalLabels_ = additionalLabels_.copy(); + } + bitField0_ |= 0x00000008; + onChanged(); + return additionalLabels_; + } + + public int getAdditionalLabelsCount() { + return internalGetAdditionalLabels().getMap().size(); + } + + /** + * + * + *
        +     * A map of labels to associate with the Persistent Disk.
        +     * 
        + * + * map<string, string> additional_labels = 4; + */ + @java.lang.Override + public boolean containsAdditionalLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAdditionalLabels().getMap().containsKey(key); + } + + /** Use {@link #getAdditionalLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAdditionalLabels() { + return getAdditionalLabelsMap(); + } + + /** + * + * + *
        +     * A map of labels to associate with the Persistent Disk.
        +     * 
        + * + * map<string, string> additional_labels = 4; + */ + @java.lang.Override + public java.util.Map getAdditionalLabelsMap() { + return internalGetAdditionalLabels().getMap(); + } + + /** + * + * + *
        +     * A map of labels to associate with the Persistent Disk.
        +     * 
        + * + * map<string, string> additional_labels = 4; + */ + @java.lang.Override + public /* nullable */ java.lang.String getAdditionalLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetAdditionalLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
        +     * A map of labels to associate with the Persistent Disk.
        +     * 
        + * + * map<string, string> additional_labels = 4; + */ + @java.lang.Override + public java.lang.String getAdditionalLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetAdditionalLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAdditionalLabels() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableAdditionalLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
        +     * A map of labels to associate with the Persistent Disk.
        +     * 
        + * + * map<string, string> additional_labels = 4; + */ + public Builder removeAdditionalLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAdditionalLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableAdditionalLabels() { + bitField0_ |= 0x00000008; + return internalGetMutableAdditionalLabels().getMutableMap(); + } + + /** + * + * + *
        +     * A map of labels to associate with the Persistent Disk.
        +     * 
        + * + * map<string, string> additional_labels = 4; + */ + public Builder putAdditionalLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableAdditionalLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000008; + return this; + } + + /** + * + * + *
        +     * A map of labels to associate with the Persistent Disk.
        +     * 
        + * + * map<string, string> additional_labels = 4; + */ + public Builder putAllAdditionalLabels( + java.util.Map values) { + internalGetMutableAdditionalLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000008; + return this; + } + + private com.google.cloud.vmmigration.v1.Encryption encryption_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.Encryption, + com.google.cloud.vmmigration.v1.Encryption.Builder, + com.google.cloud.vmmigration.v1.EncryptionOrBuilder> + encryptionBuilder_; + + /** + * + * + *
        +     * Optional. The encryption to apply to the disk.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the encryption field is set. + */ + public boolean hasEncryption() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
        +     * Optional. The encryption to apply to the disk.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The encryption. + */ + public com.google.cloud.vmmigration.v1.Encryption getEncryption() { + if (encryptionBuilder_ == null) { + return encryption_ == null + ? com.google.cloud.vmmigration.v1.Encryption.getDefaultInstance() + : encryption_; + } else { + return encryptionBuilder_.getMessage(); + } + } + + /** + * + * + *
        +     * Optional. The encryption to apply to the disk.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEncryption(com.google.cloud.vmmigration.v1.Encryption value) { + if (encryptionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + encryption_ = value; + } else { + encryptionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The encryption to apply to the disk.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEncryption( + com.google.cloud.vmmigration.v1.Encryption.Builder builderForValue) { + if (encryptionBuilder_ == null) { + encryption_ = builderForValue.build(); + } else { + encryptionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The encryption to apply to the disk.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeEncryption(com.google.cloud.vmmigration.v1.Encryption value) { + if (encryptionBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && encryption_ != null + && encryption_ != com.google.cloud.vmmigration.v1.Encryption.getDefaultInstance()) { + getEncryptionBuilder().mergeFrom(value); + } else { + encryption_ = value; + } + } else { + encryptionBuilder_.mergeFrom(value); + } + if (encryption_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Optional. The encryption to apply to the disk.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEncryption() { + bitField0_ = (bitField0_ & ~0x00000010); + encryption_ = null; + if (encryptionBuilder_ != null) { + encryptionBuilder_.dispose(); + encryptionBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The encryption to apply to the disk.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vmmigration.v1.Encryption.Builder getEncryptionBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getEncryptionFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Optional. The encryption to apply to the disk.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vmmigration.v1.EncryptionOrBuilder getEncryptionOrBuilder() { + if (encryptionBuilder_ != null) { + return encryptionBuilder_.getMessageOrBuilder(); + } else { + return encryption_ == null + ? com.google.cloud.vmmigration.v1.Encryption.getDefaultInstance() + : encryption_; + } + } + + /** + * + * + *
        +     * Optional. The encryption to apply to the disk.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.Encryption, + com.google.cloud.vmmigration.v1.Encryption.Builder, + com.google.cloud.vmmigration.v1.EncryptionOrBuilder> + getEncryptionFieldBuilder() { + if (encryptionBuilder_ == null) { + encryptionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.Encryption, + com.google.cloud.vmmigration.v1.Encryption.Builder, + com.google.cloud.vmmigration.v1.EncryptionOrBuilder>( + getEncryption(), getParentForChildren(), isClean()); + encryption_ = null; + } + return encryptionBuilder_; + } + + private com.google.cloud.vmmigration.v1.VmAttachmentDetails vmAttachmentDetails_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.VmAttachmentDetails, + com.google.cloud.vmmigration.v1.VmAttachmentDetails.Builder, + com.google.cloud.vmmigration.v1.VmAttachmentDetailsOrBuilder> + vmAttachmentDetailsBuilder_; + + /** + * + * + *
        +     * Optional. Details for attachment of the disk to a VM.
        +     * Used when the disk is set to be attached to a target VM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.VmAttachmentDetails vm_attachment_details = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the vmAttachmentDetails field is set. + */ + public boolean hasVmAttachmentDetails() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
        +     * Optional. Details for attachment of the disk to a VM.
        +     * Used when the disk is set to be attached to a target VM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.VmAttachmentDetails vm_attachment_details = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The vmAttachmentDetails. + */ + public com.google.cloud.vmmigration.v1.VmAttachmentDetails getVmAttachmentDetails() { + if (vmAttachmentDetailsBuilder_ == null) { + return vmAttachmentDetails_ == null + ? com.google.cloud.vmmigration.v1.VmAttachmentDetails.getDefaultInstance() + : vmAttachmentDetails_; + } else { + return vmAttachmentDetailsBuilder_.getMessage(); + } + } + + /** + * + * + *
        +     * Optional. Details for attachment of the disk to a VM.
        +     * Used when the disk is set to be attached to a target VM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.VmAttachmentDetails vm_attachment_details = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setVmAttachmentDetails( + com.google.cloud.vmmigration.v1.VmAttachmentDetails value) { + if (vmAttachmentDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + vmAttachmentDetails_ = value; + } else { + vmAttachmentDetailsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Details for attachment of the disk to a VM.
        +     * Used when the disk is set to be attached to a target VM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.VmAttachmentDetails vm_attachment_details = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setVmAttachmentDetails( + com.google.cloud.vmmigration.v1.VmAttachmentDetails.Builder builderForValue) { + if (vmAttachmentDetailsBuilder_ == null) { + vmAttachmentDetails_ = builderForValue.build(); + } else { + vmAttachmentDetailsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Details for attachment of the disk to a VM.
        +     * Used when the disk is set to be attached to a target VM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.VmAttachmentDetails vm_attachment_details = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeVmAttachmentDetails( + com.google.cloud.vmmigration.v1.VmAttachmentDetails value) { + if (vmAttachmentDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && vmAttachmentDetails_ != null + && vmAttachmentDetails_ + != com.google.cloud.vmmigration.v1.VmAttachmentDetails.getDefaultInstance()) { + getVmAttachmentDetailsBuilder().mergeFrom(value); + } else { + vmAttachmentDetails_ = value; + } + } else { + vmAttachmentDetailsBuilder_.mergeFrom(value); + } + if (vmAttachmentDetails_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Optional. Details for attachment of the disk to a VM.
        +     * Used when the disk is set to be attached to a target VM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.VmAttachmentDetails vm_attachment_details = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearVmAttachmentDetails() { + bitField0_ = (bitField0_ & ~0x00000020); + vmAttachmentDetails_ = null; + if (vmAttachmentDetailsBuilder_ != null) { + vmAttachmentDetailsBuilder_.dispose(); + vmAttachmentDetailsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Details for attachment of the disk to a VM.
        +     * Used when the disk is set to be attached to a target VM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.VmAttachmentDetails vm_attachment_details = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vmmigration.v1.VmAttachmentDetails.Builder + getVmAttachmentDetailsBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getVmAttachmentDetailsFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Optional. Details for attachment of the disk to a VM.
        +     * Used when the disk is set to be attached to a target VM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.VmAttachmentDetails vm_attachment_details = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vmmigration.v1.VmAttachmentDetailsOrBuilder + getVmAttachmentDetailsOrBuilder() { + if (vmAttachmentDetailsBuilder_ != null) { + return vmAttachmentDetailsBuilder_.getMessageOrBuilder(); + } else { + return vmAttachmentDetails_ == null + ? com.google.cloud.vmmigration.v1.VmAttachmentDetails.getDefaultInstance() + : vmAttachmentDetails_; + } + } + + /** + * + * + *
        +     * Optional. Details for attachment of the disk to a VM.
        +     * Used when the disk is set to be attached to a target VM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.VmAttachmentDetails vm_attachment_details = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.VmAttachmentDetails, + com.google.cloud.vmmigration.v1.VmAttachmentDetails.Builder, + com.google.cloud.vmmigration.v1.VmAttachmentDetailsOrBuilder> + getVmAttachmentDetailsFieldBuilder() { + if (vmAttachmentDetailsBuilder_ == null) { + vmAttachmentDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.VmAttachmentDetails, + com.google.cloud.vmmigration.v1.VmAttachmentDetails.Builder, + com.google.cloud.vmmigration.v1.VmAttachmentDetailsOrBuilder>( + getVmAttachmentDetails(), getParentForChildren(), isClean()); + vmAttachmentDetails_ = null; + } + return vmAttachmentDetailsBuilder_; + } + + @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.vmmigration.v1.PersistentDiskDefaults) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.PersistentDiskDefaults) + private static final com.google.cloud.vmmigration.v1.PersistentDiskDefaults DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.PersistentDiskDefaults(); + } + + public static com.google.cloud.vmmigration.v1.PersistentDiskDefaults getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PersistentDiskDefaults parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.PersistentDiskDefaults getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/PersistentDiskDefaultsOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/PersistentDiskDefaultsOrBuilder.java new file mode 100644 index 000000000000..4aba969f8cd4 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/PersistentDiskDefaultsOrBuilder.java @@ -0,0 +1,243 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface PersistentDiskDefaultsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.PersistentDiskDefaults) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Required. The ordinal number of the source VM disk.
        +   * 
        + * + * int32 source_disk_number = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The sourceDiskNumber. + */ + int getSourceDiskNumber(); + + /** + * + * + *
        +   * Optional. The name of the Persistent Disk to create.
        +   * 
        + * + * string disk_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The diskName. + */ + java.lang.String getDiskName(); + + /** + * + * + *
        +   * Optional. The name of the Persistent Disk to create.
        +   * 
        + * + * string disk_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for diskName. + */ + com.google.protobuf.ByteString getDiskNameBytes(); + + /** + * + * + *
        +   * The disk type to use.
        +   * 
        + * + * .google.cloud.vmmigration.v1.ComputeEngineDiskType disk_type = 3; + * + * @return The enum numeric value on the wire for diskType. + */ + int getDiskTypeValue(); + + /** + * + * + *
        +   * The disk type to use.
        +   * 
        + * + * .google.cloud.vmmigration.v1.ComputeEngineDiskType disk_type = 3; + * + * @return The diskType. + */ + com.google.cloud.vmmigration.v1.ComputeEngineDiskType getDiskType(); + + /** + * + * + *
        +   * A map of labels to associate with the Persistent Disk.
        +   * 
        + * + * map<string, string> additional_labels = 4; + */ + int getAdditionalLabelsCount(); + + /** + * + * + *
        +   * A map of labels to associate with the Persistent Disk.
        +   * 
        + * + * map<string, string> additional_labels = 4; + */ + boolean containsAdditionalLabels(java.lang.String key); + + /** Use {@link #getAdditionalLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getAdditionalLabels(); + + /** + * + * + *
        +   * A map of labels to associate with the Persistent Disk.
        +   * 
        + * + * map<string, string> additional_labels = 4; + */ + java.util.Map getAdditionalLabelsMap(); + + /** + * + * + *
        +   * A map of labels to associate with the Persistent Disk.
        +   * 
        + * + * map<string, string> additional_labels = 4; + */ + /* nullable */ + java.lang.String getAdditionalLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
        +   * A map of labels to associate with the Persistent Disk.
        +   * 
        + * + * map<string, string> additional_labels = 4; + */ + java.lang.String getAdditionalLabelsOrThrow(java.lang.String key); + + /** + * + * + *
        +   * Optional. The encryption to apply to the disk.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the encryption field is set. + */ + boolean hasEncryption(); + + /** + * + * + *
        +   * Optional. The encryption to apply to the disk.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The encryption. + */ + com.google.cloud.vmmigration.v1.Encryption getEncryption(); + + /** + * + * + *
        +   * Optional. The encryption to apply to the disk.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.vmmigration.v1.EncryptionOrBuilder getEncryptionOrBuilder(); + + /** + * + * + *
        +   * Optional. Details for attachment of the disk to a VM.
        +   * Used when the disk is set to be attached to a target VM.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.VmAttachmentDetails vm_attachment_details = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the vmAttachmentDetails field is set. + */ + boolean hasVmAttachmentDetails(); + + /** + * + * + *
        +   * Optional. Details for attachment of the disk to a VM.
        +   * Used when the disk is set to be attached to a target VM.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.VmAttachmentDetails vm_attachment_details = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The vmAttachmentDetails. + */ + com.google.cloud.vmmigration.v1.VmAttachmentDetails getVmAttachmentDetails(); + + /** + * + * + *
        +   * Optional. Details for attachment of the disk to a VM.
        +   * Used when the disk is set to be attached to a target VM.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.VmAttachmentDetails vm_attachment_details = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.vmmigration.v1.VmAttachmentDetailsOrBuilder getVmAttachmentDetailsOrBuilder(); +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/PersistentDiskOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/PersistentDiskOrBuilder.java new file mode 100644 index 000000000000..55329ef9d70a --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/PersistentDiskOrBuilder.java @@ -0,0 +1,65 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface PersistentDiskOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.PersistentDisk) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * The ordinal number of the source VM disk.
        +   * 
        + * + * int32 source_disk_number = 1; + * + * @return The sourceDiskNumber. + */ + int getSourceDiskNumber(); + + /** + * + * + *
        +   * The URI of the Persistent Disk.
        +   * 
        + * + * string disk_uri = 2; + * + * @return The diskUri. + */ + java.lang.String getDiskUri(); + + /** + * + * + *
        +   * The URI of the Persistent Disk.
        +   * 
        + * + * string disk_uri = 2; + * + * @return The bytes for diskUri. + */ + com.google.protobuf.ByteString getDiskUriBytes(); +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ProvisioningTargetDiskStep.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ProvisioningTargetDiskStep.java new file mode 100644 index 000000000000..e433931c4c4c --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ProvisioningTargetDiskStep.java @@ -0,0 +1,435 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * ProvisioningTargetDiskStep contains specific step details.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.ProvisioningTargetDiskStep} + */ +public final class ProvisioningTargetDiskStep extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.ProvisioningTargetDiskStep) + ProvisioningTargetDiskStepOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ProvisioningTargetDiskStep.newBuilder() to construct. + private ProvisioningTargetDiskStep(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ProvisioningTargetDiskStep() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ProvisioningTargetDiskStep(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ProvisioningTargetDiskStep_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ProvisioningTargetDiskStep_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep.class, + com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep.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.vmmigration.v1.ProvisioningTargetDiskStep)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep other = + (com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep) 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.vmmigration.v1.ProvisioningTargetDiskStep parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep 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.vmmigration.v1.ProvisioningTargetDiskStep parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep parseFrom( + 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.vmmigration.v1.ProvisioningTargetDiskStep parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep 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.vmmigration.v1.ProvisioningTargetDiskStep parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep 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.vmmigration.v1.ProvisioningTargetDiskStep parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep 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.vmmigration.v1.ProvisioningTargetDiskStep prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
        +   * ProvisioningTargetDiskStep contains specific step details.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.ProvisioningTargetDiskStep} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.ProvisioningTargetDiskStep) + com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStepOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ProvisioningTargetDiskStep_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ProvisioningTargetDiskStep_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep.class, + com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep.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.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ProvisioningTargetDiskStep_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep build() { + com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep buildPartial() { + com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep result = + new com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep(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.vmmigration.v1.ProvisioningTargetDiskStep) { + return mergeFrom((com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep other) { + if (other == com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep.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.vmmigration.v1.ProvisioningTargetDiskStep) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.ProvisioningTargetDiskStep) + private static final com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep(); + } + + public static com.google.cloud.vmmigration.v1.ProvisioningTargetDiskStep getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProvisioningTargetDiskStep parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.ProvisioningTargetDiskStep getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ProvisioningTargetDiskStepOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ProvisioningTargetDiskStepOrBuilder.java new file mode 100644 index 000000000000..64bef10ae789 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ProvisioningTargetDiskStepOrBuilder.java @@ -0,0 +1,25 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface ProvisioningTargetDiskStepOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.ProvisioningTargetDiskStep) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ReplicationCycle.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ReplicationCycle.java index 09b9c7ed3a40..48cff5faaaeb 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ReplicationCycle.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ReplicationCycle.java @@ -44,6 +44,7 @@ private ReplicationCycle() { name_ = ""; steps_ = java.util.Collections.emptyList(); state_ = 0; + warnings_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -513,7 +514,7 @@ public com.google.protobuf.DurationOrBuilder getTotalPauseDurationOrBuilder() { * int32 progress_percent = 5 [deprecated = true]; * * @deprecated google.cloud.vmmigration.v1.ReplicationCycle.progress_percent is deprecated. See - * google/cloud/vmmigration/v1/vmmigration.proto;l=715 + * google/cloud/vmmigration/v1/vmmigration.proto;l=977 * @return The progressPercent. */ @java.lang.Override @@ -644,10 +645,11 @@ public com.google.cloud.vmmigration.v1.ReplicationCycle.State getState() { * * *
        -   * Provides details on the state of the cycle in case of an error.
        +   * Output only. Provides details on the state of the cycle in case of an
        +   * error.
            * 
        * - * .google.rpc.Status error = 12; + * .google.rpc.Status error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the error field is set. */ @@ -660,10 +662,11 @@ public boolean hasError() { * * *
        -   * Provides details on the state of the cycle in case of an error.
        +   * Output only. Provides details on the state of the cycle in case of an
        +   * error.
            * 
        * - * .google.rpc.Status error = 12; + * .google.rpc.Status error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The error. */ @@ -676,16 +679,103 @@ public com.google.rpc.Status getError() { * * *
        -   * Provides details on the state of the cycle in case of an error.
        +   * Output only. Provides details on the state of the cycle in case of an
        +   * error.
            * 
        * - * .google.rpc.Status error = 12; + * .google.rpc.Status error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } + public static final int WARNINGS_FIELD_NUMBER = 14; + + @SuppressWarnings("serial") + private java.util.List warnings_; + + /** + * + * + *
        +   * Output only. Warnings that occurred during the cycle.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.MigrationWarning warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getWarningsList() { + return warnings_; + } + + /** + * + * + *
        +   * Output only. Warnings that occurred during the cycle.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.MigrationWarning warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getWarningsOrBuilderList() { + return warnings_; + } + + /** + * + * + *
        +   * Output only. Warnings that occurred during the cycle.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.MigrationWarning warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getWarningsCount() { + return warnings_.size(); + } + + /** + * + * + *
        +   * Output only. Warnings that occurred during the cycle.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.MigrationWarning warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.MigrationWarning getWarnings(int index) { + return warnings_.get(index); + } + + /** + * + * + *
        +   * Output only. Warnings that occurred during the cycle.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.MigrationWarning warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.MigrationWarningOrBuilder getWarningsOrBuilder(int index) { + return warnings_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -728,6 +818,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, 13, name_); } + for (int i = 0; i < warnings_.size(); i++) { + output.writeMessage(14, warnings_.get(i)); + } getUnknownFields().writeTo(output); } @@ -765,6 +858,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, name_); } + for (int i = 0; i < warnings_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, warnings_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -802,6 +898,7 @@ public boolean equals(final java.lang.Object obj) { if (hasError()) { if (!getError().equals(other.getError())) return false; } + if (!getWarningsList().equals(other.getWarningsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -841,6 +938,10 @@ public int hashCode() { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); } + if (getWarningsCount() > 0) { + hash = (37 * hash) + WARNINGS_FIELD_NUMBER; + hash = (53 * hash) + getWarningsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -988,6 +1089,7 @@ private void maybeForceBuilderInitialization() { getTotalPauseDurationFieldBuilder(); getStepsFieldBuilder(); getErrorFieldBuilder(); + getWarningsFieldBuilder(); } } @@ -1026,6 +1128,13 @@ public Builder clear() { errorBuilder_.dispose(); errorBuilder_ = null; } + if (warningsBuilder_ == null) { + warnings_ = java.util.Collections.emptyList(); + } else { + warnings_ = null; + warningsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000200); return this; } @@ -1072,6 +1181,15 @@ private void buildPartialRepeatedFields( } else { result.steps_ = stepsBuilder_.build(); } + if (warningsBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0)) { + warnings_ = java.util.Collections.unmodifiableList(warnings_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.warnings_ = warnings_; + } else { + result.warnings_ = warningsBuilder_.build(); + } } private void buildPartial0(com.google.cloud.vmmigration.v1.ReplicationCycle result) { @@ -1210,6 +1328,33 @@ public Builder mergeFrom(com.google.cloud.vmmigration.v1.ReplicationCycle other) if (other.hasError()) { mergeError(other.getError()); } + if (warningsBuilder_ == null) { + if (!other.warnings_.isEmpty()) { + if (warnings_.isEmpty()) { + warnings_ = other.warnings_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureWarningsIsMutable(); + warnings_.addAll(other.warnings_); + } + onChanged(); + } + } else { + if (!other.warnings_.isEmpty()) { + if (warningsBuilder_.isEmpty()) { + warningsBuilder_.dispose(); + warningsBuilder_ = null; + warnings_ = other.warnings_; + bitField0_ = (bitField0_ & ~0x00000200); + warningsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWarningsFieldBuilder() + : null; + } else { + warningsBuilder_.addAllMessages(other.warnings_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1298,6 +1443,20 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 106 + case 114: + { + com.google.cloud.vmmigration.v1.MigrationWarning m = + input.readMessage( + com.google.cloud.vmmigration.v1.MigrationWarning.parser(), + extensionRegistry); + if (warningsBuilder_ == null) { + ensureWarningsIsMutable(); + warnings_.add(m); + } else { + warningsBuilder_.addMessage(m); + } + break; + } // case 114 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2072,7 +2231,7 @@ public com.google.protobuf.DurationOrBuilder getTotalPauseDurationOrBuilder() { * int32 progress_percent = 5 [deprecated = true]; * * @deprecated google.cloud.vmmigration.v1.ReplicationCycle.progress_percent is deprecated. See - * google/cloud/vmmigration/v1/vmmigration.proto;l=715 + * google/cloud/vmmigration/v1/vmmigration.proto;l=977 * @return The progressPercent. */ @java.lang.Override @@ -2093,7 +2252,7 @@ public int getProgressPercent() { * int32 progress_percent = 5 [deprecated = true]; * * @deprecated google.cloud.vmmigration.v1.ReplicationCycle.progress_percent is deprecated. See - * google/cloud/vmmigration/v1/vmmigration.proto;l=715 + * google/cloud/vmmigration/v1/vmmigration.proto;l=977 * @param value The progressPercent to set. * @return This builder for chaining. */ @@ -2118,7 +2277,7 @@ public Builder setProgressPercent(int value) { * int32 progress_percent = 5 [deprecated = true]; * * @deprecated google.cloud.vmmigration.v1.ReplicationCycle.progress_percent is deprecated. See - * google/cloud/vmmigration/v1/vmmigration.proto;l=715 + * google/cloud/vmmigration/v1/vmmigration.proto;l=977 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2600,10 +2759,11 @@ public Builder clearState() { * * *
        -     * Provides details on the state of the cycle in case of an error.
        +     * Output only. Provides details on the state of the cycle in case of an
        +     * error.
              * 
        * - * .google.rpc.Status error = 12; + * .google.rpc.Status error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the error field is set. */ @@ -2615,10 +2775,11 @@ public boolean hasError() { * * *
        -     * Provides details on the state of the cycle in case of an error.
        +     * Output only. Provides details on the state of the cycle in case of an
        +     * error.
              * 
        * - * .google.rpc.Status error = 12; + * .google.rpc.Status error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The error. */ @@ -2634,10 +2795,11 @@ public com.google.rpc.Status getError() { * * *
        -     * Provides details on the state of the cycle in case of an error.
        +     * Output only. Provides details on the state of the cycle in case of an
        +     * error.
              * 
        * - * .google.rpc.Status error = 12; + * .google.rpc.Status error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setError(com.google.rpc.Status value) { if (errorBuilder_ == null) { @@ -2657,10 +2819,11 @@ public Builder setError(com.google.rpc.Status value) { * * *
        -     * Provides details on the state of the cycle in case of an error.
        +     * Output only. Provides details on the state of the cycle in case of an
        +     * error.
              * 
        * - * .google.rpc.Status error = 12; + * .google.rpc.Status error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setError(com.google.rpc.Status.Builder builderForValue) { if (errorBuilder_ == null) { @@ -2677,10 +2840,11 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { * * *
        -     * Provides details on the state of the cycle in case of an error.
        +     * Output only. Provides details on the state of the cycle in case of an
        +     * error.
              * 
        * - * .google.rpc.Status error = 12; + * .google.rpc.Status error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeError(com.google.rpc.Status value) { if (errorBuilder_ == null) { @@ -2705,10 +2869,11 @@ public Builder mergeError(com.google.rpc.Status value) { * * *
        -     * Provides details on the state of the cycle in case of an error.
        +     * Output only. Provides details on the state of the cycle in case of an
        +     * error.
              * 
        * - * .google.rpc.Status error = 12; + * .google.rpc.Status error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearError() { bitField0_ = (bitField0_ & ~0x00000100); @@ -2725,10 +2890,11 @@ public Builder clearError() { * * *
        -     * Provides details on the state of the cycle in case of an error.
        +     * Output only. Provides details on the state of the cycle in case of an
        +     * error.
              * 
        * - * .google.rpc.Status error = 12; + * .google.rpc.Status error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.Status.Builder getErrorBuilder() { bitField0_ |= 0x00000100; @@ -2740,10 +2906,11 @@ public com.google.rpc.Status.Builder getErrorBuilder() { * * *
        -     * Provides details on the state of the cycle in case of an error.
        +     * Output only. Provides details on the state of the cycle in case of an
        +     * error.
              * 
        * - * .google.rpc.Status error = 12; + * .google.rpc.Status error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { @@ -2757,10 +2924,11 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { * * *
        -     * Provides details on the state of the cycle in case of an error.
        +     * Output only. Provides details on the state of the cycle in case of an
        +     * error.
              * 
        * - * .google.rpc.Status error = 12; + * .google.rpc.Status error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> @@ -2776,6 +2944,411 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { return errorBuilder_; } + private java.util.List warnings_ = + java.util.Collections.emptyList(); + + private void ensureWarningsIsMutable() { + if (!((bitField0_ & 0x00000200) != 0)) { + warnings_ = + new java.util.ArrayList(warnings_); + bitField0_ |= 0x00000200; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.MigrationWarning, + com.google.cloud.vmmigration.v1.MigrationWarning.Builder, + com.google.cloud.vmmigration.v1.MigrationWarningOrBuilder> + warningsBuilder_; + + /** + * + * + *
        +     * Output only. Warnings that occurred during the cycle.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.MigrationWarning warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getWarningsList() { + if (warningsBuilder_ == null) { + return java.util.Collections.unmodifiableList(warnings_); + } else { + return warningsBuilder_.getMessageList(); + } + } + + /** + * + * + *
        +     * Output only. Warnings that occurred during the cycle.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.MigrationWarning warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getWarningsCount() { + if (warningsBuilder_ == null) { + return warnings_.size(); + } else { + return warningsBuilder_.getCount(); + } + } + + /** + * + * + *
        +     * Output only. Warnings that occurred during the cycle.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.MigrationWarning warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.MigrationWarning getWarnings(int index) { + if (warningsBuilder_ == null) { + return warnings_.get(index); + } else { + return warningsBuilder_.getMessage(index); + } + } + + /** + * + * + *
        +     * Output only. Warnings that occurred during the cycle.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.MigrationWarning warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setWarnings(int index, com.google.cloud.vmmigration.v1.MigrationWarning value) { + if (warningsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWarningsIsMutable(); + warnings_.set(index, value); + onChanged(); + } else { + warningsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * Output only. Warnings that occurred during the cycle.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.MigrationWarning warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setWarnings( + int index, com.google.cloud.vmmigration.v1.MigrationWarning.Builder builderForValue) { + if (warningsBuilder_ == null) { + ensureWarningsIsMutable(); + warnings_.set(index, builderForValue.build()); + onChanged(); + } else { + warningsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Output only. Warnings that occurred during the cycle.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.MigrationWarning warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addWarnings(com.google.cloud.vmmigration.v1.MigrationWarning value) { + if (warningsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWarningsIsMutable(); + warnings_.add(value); + onChanged(); + } else { + warningsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
        +     * Output only. Warnings that occurred during the cycle.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.MigrationWarning warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addWarnings(int index, com.google.cloud.vmmigration.v1.MigrationWarning value) { + if (warningsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWarningsIsMutable(); + warnings_.add(index, value); + onChanged(); + } else { + warningsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * Output only. Warnings that occurred during the cycle.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.MigrationWarning warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addWarnings( + com.google.cloud.vmmigration.v1.MigrationWarning.Builder builderForValue) { + if (warningsBuilder_ == null) { + ensureWarningsIsMutable(); + warnings_.add(builderForValue.build()); + onChanged(); + } else { + warningsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Output only. Warnings that occurred during the cycle.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.MigrationWarning warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addWarnings( + int index, com.google.cloud.vmmigration.v1.MigrationWarning.Builder builderForValue) { + if (warningsBuilder_ == null) { + ensureWarningsIsMutable(); + warnings_.add(index, builderForValue.build()); + onChanged(); + } else { + warningsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Output only. Warnings that occurred during the cycle.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.MigrationWarning warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllWarnings( + java.lang.Iterable values) { + if (warningsBuilder_ == null) { + ensureWarningsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, warnings_); + onChanged(); + } else { + warningsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
        +     * Output only. Warnings that occurred during the cycle.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.MigrationWarning warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearWarnings() { + if (warningsBuilder_ == null) { + warnings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + } else { + warningsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Output only. Warnings that occurred during the cycle.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.MigrationWarning warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeWarnings(int index) { + if (warningsBuilder_ == null) { + ensureWarningsIsMutable(); + warnings_.remove(index); + onChanged(); + } else { + warningsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
        +     * Output only. Warnings that occurred during the cycle.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.MigrationWarning warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.MigrationWarning.Builder getWarningsBuilder(int index) { + return getWarningsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
        +     * Output only. Warnings that occurred during the cycle.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.MigrationWarning warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.MigrationWarningOrBuilder getWarningsOrBuilder( + int index) { + if (warningsBuilder_ == null) { + return warnings_.get(index); + } else { + return warningsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
        +     * Output only. Warnings that occurred during the cycle.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.MigrationWarning warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getWarningsOrBuilderList() { + if (warningsBuilder_ != null) { + return warningsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(warnings_); + } + } + + /** + * + * + *
        +     * Output only. Warnings that occurred during the cycle.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.MigrationWarning warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.MigrationWarning.Builder addWarningsBuilder() { + return getWarningsFieldBuilder() + .addBuilder(com.google.cloud.vmmigration.v1.MigrationWarning.getDefaultInstance()); + } + + /** + * + * + *
        +     * Output only. Warnings that occurred during the cycle.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.MigrationWarning warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.MigrationWarning.Builder addWarningsBuilder(int index) { + return getWarningsFieldBuilder() + .addBuilder(index, com.google.cloud.vmmigration.v1.MigrationWarning.getDefaultInstance()); + } + + /** + * + * + *
        +     * Output only. Warnings that occurred during the cycle.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.MigrationWarning warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getWarningsBuilderList() { + return getWarningsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.MigrationWarning, + com.google.cloud.vmmigration.v1.MigrationWarning.Builder, + com.google.cloud.vmmigration.v1.MigrationWarningOrBuilder> + getWarningsFieldBuilder() { + if (warningsBuilder_ == null) { + warningsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.MigrationWarning, + com.google.cloud.vmmigration.v1.MigrationWarning.Builder, + com.google.cloud.vmmigration.v1.MigrationWarningOrBuilder>( + warnings_, ((bitField0_ & 0x00000200) != 0), getParentForChildren(), isClean()); + warnings_ = null; + } + return warningsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ReplicationCycleOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ReplicationCycleOrBuilder.java index ff861996bf56..0ed185d9e206 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ReplicationCycleOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ReplicationCycleOrBuilder.java @@ -186,7 +186,7 @@ public interface ReplicationCycleOrBuilder * int32 progress_percent = 5 [deprecated = true]; * * @deprecated google.cloud.vmmigration.v1.ReplicationCycle.progress_percent is deprecated. See - * google/cloud/vmmigration/v1/vmmigration.proto;l=715 + * google/cloud/vmmigration/v1/vmmigration.proto;l=977 * @return The progressPercent. */ @java.lang.Deprecated @@ -278,10 +278,11 @@ public interface ReplicationCycleOrBuilder * * *
        -   * Provides details on the state of the cycle in case of an error.
        +   * Output only. Provides details on the state of the cycle in case of an
        +   * error.
            * 
        * - * .google.rpc.Status error = 12; + * .google.rpc.Status error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the error field is set. */ @@ -291,10 +292,11 @@ public interface ReplicationCycleOrBuilder * * *
        -   * Provides details on the state of the cycle in case of an error.
        +   * Output only. Provides details on the state of the cycle in case of an
        +   * error.
            * 
        * - * .google.rpc.Status error = 12; + * .google.rpc.Status error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The error. */ @@ -304,10 +306,77 @@ public interface ReplicationCycleOrBuilder * * *
        -   * Provides details on the state of the cycle in case of an error.
        +   * Output only. Provides details on the state of the cycle in case of an
        +   * error.
            * 
        * - * .google.rpc.Status error = 12; + * .google.rpc.Status error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.rpc.StatusOrBuilder getErrorOrBuilder(); + + /** + * + * + *
        +   * Output only. Warnings that occurred during the cycle.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.MigrationWarning warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getWarningsList(); + + /** + * + * + *
        +   * Output only. Warnings that occurred during the cycle.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.MigrationWarning warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.vmmigration.v1.MigrationWarning getWarnings(int index); + + /** + * + * + *
        +   * Output only. Warnings that occurred during the cycle.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.MigrationWarning warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getWarningsCount(); + + /** + * + * + *
        +   * Output only. Warnings that occurred during the cycle.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.MigrationWarning warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getWarningsOrBuilderList(); + + /** + * + * + *
        +   * Output only. Warnings that occurred during the cycle.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.MigrationWarning warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.vmmigration.v1.MigrationWarningOrBuilder getWarningsOrBuilder(int index); } diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/RunDiskMigrationJobRequest.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/RunDiskMigrationJobRequest.java new file mode 100644 index 000000000000..41c584471bbc --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/RunDiskMigrationJobRequest.java @@ -0,0 +1,649 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * Request message for 'RunDiskMigrationJobRequest' request.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.RunDiskMigrationJobRequest} + */ +public final class RunDiskMigrationJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.RunDiskMigrationJobRequest) + RunDiskMigrationJobRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use RunDiskMigrationJobRequest.newBuilder() to construct. + private RunDiskMigrationJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RunDiskMigrationJobRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RunDiskMigrationJobRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_RunDiskMigrationJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_RunDiskMigrationJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.RunDiskMigrationJobRequest.class, + com.google.cloud.vmmigration.v1.RunDiskMigrationJobRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
        +   * Required. The name of the DiskMigrationJob.
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
        +   * Required. The name of the DiskMigrationJob.
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmmigration.v1.RunDiskMigrationJobRequest)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.RunDiskMigrationJobRequest other = + (com.google.cloud.vmmigration.v1.RunDiskMigrationJobRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.RunDiskMigrationJobRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.RunDiskMigrationJobRequest 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.vmmigration.v1.RunDiskMigrationJobRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.RunDiskMigrationJobRequest parseFrom( + 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.vmmigration.v1.RunDiskMigrationJobRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.RunDiskMigrationJobRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.RunDiskMigrationJobRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.RunDiskMigrationJobRequest 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.vmmigration.v1.RunDiskMigrationJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.RunDiskMigrationJobRequest 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.vmmigration.v1.RunDiskMigrationJobRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.RunDiskMigrationJobRequest 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.vmmigration.v1.RunDiskMigrationJobRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * Request message for 'RunDiskMigrationJobRequest' request.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.RunDiskMigrationJobRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.RunDiskMigrationJobRequest) + com.google.cloud.vmmigration.v1.RunDiskMigrationJobRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_RunDiskMigrationJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_RunDiskMigrationJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.RunDiskMigrationJobRequest.class, + com.google.cloud.vmmigration.v1.RunDiskMigrationJobRequest.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.RunDiskMigrationJobRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_RunDiskMigrationJobRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.RunDiskMigrationJobRequest getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.RunDiskMigrationJobRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.RunDiskMigrationJobRequest build() { + com.google.cloud.vmmigration.v1.RunDiskMigrationJobRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.RunDiskMigrationJobRequest buildPartial() { + com.google.cloud.vmmigration.v1.RunDiskMigrationJobRequest result = + new com.google.cloud.vmmigration.v1.RunDiskMigrationJobRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vmmigration.v1.RunDiskMigrationJobRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmmigration.v1.RunDiskMigrationJobRequest) { + return mergeFrom((com.google.cloud.vmmigration.v1.RunDiskMigrationJobRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.RunDiskMigrationJobRequest other) { + if (other == com.google.cloud.vmmigration.v1.RunDiskMigrationJobRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
        +     * Required. The name of the DiskMigrationJob.
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Required. The name of the DiskMigrationJob.
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Required. The name of the DiskMigrationJob.
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The name of the DiskMigrationJob.
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The name of the DiskMigrationJob.
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmmigration.v1.RunDiskMigrationJobRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.RunDiskMigrationJobRequest) + private static final com.google.cloud.vmmigration.v1.RunDiskMigrationJobRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.RunDiskMigrationJobRequest(); + } + + public static com.google.cloud.vmmigration.v1.RunDiskMigrationJobRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RunDiskMigrationJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.RunDiskMigrationJobRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/RunDiskMigrationJobRequestOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/RunDiskMigrationJobRequestOrBuilder.java new file mode 100644 index 000000000000..2b6aa0708435 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/RunDiskMigrationJobRequestOrBuilder.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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface RunDiskMigrationJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.RunDiskMigrationJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Required. The name of the DiskMigrationJob.
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
        +   * Required. The name of the DiskMigrationJob.
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/RunDiskMigrationJobResponse.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/RunDiskMigrationJobResponse.java new file mode 100644 index 000000000000..36400fa34240 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/RunDiskMigrationJobResponse.java @@ -0,0 +1,435 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * Response message for 'RunDiskMigrationJob' request.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.RunDiskMigrationJobResponse} + */ +public final class RunDiskMigrationJobResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.RunDiskMigrationJobResponse) + RunDiskMigrationJobResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use RunDiskMigrationJobResponse.newBuilder() to construct. + private RunDiskMigrationJobResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RunDiskMigrationJobResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RunDiskMigrationJobResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_RunDiskMigrationJobResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_RunDiskMigrationJobResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.RunDiskMigrationJobResponse.class, + com.google.cloud.vmmigration.v1.RunDiskMigrationJobResponse.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.vmmigration.v1.RunDiskMigrationJobResponse)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.RunDiskMigrationJobResponse other = + (com.google.cloud.vmmigration.v1.RunDiskMigrationJobResponse) 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.vmmigration.v1.RunDiskMigrationJobResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.RunDiskMigrationJobResponse 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.vmmigration.v1.RunDiskMigrationJobResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.RunDiskMigrationJobResponse parseFrom( + 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.vmmigration.v1.RunDiskMigrationJobResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.RunDiskMigrationJobResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.RunDiskMigrationJobResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.RunDiskMigrationJobResponse 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.vmmigration.v1.RunDiskMigrationJobResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.RunDiskMigrationJobResponse 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.vmmigration.v1.RunDiskMigrationJobResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.RunDiskMigrationJobResponse 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.vmmigration.v1.RunDiskMigrationJobResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * Response message for 'RunDiskMigrationJob' request.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.RunDiskMigrationJobResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.RunDiskMigrationJobResponse) + com.google.cloud.vmmigration.v1.RunDiskMigrationJobResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_RunDiskMigrationJobResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_RunDiskMigrationJobResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.RunDiskMigrationJobResponse.class, + com.google.cloud.vmmigration.v1.RunDiskMigrationJobResponse.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.RunDiskMigrationJobResponse.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.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_RunDiskMigrationJobResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.RunDiskMigrationJobResponse getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.RunDiskMigrationJobResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.RunDiskMigrationJobResponse build() { + com.google.cloud.vmmigration.v1.RunDiskMigrationJobResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.RunDiskMigrationJobResponse buildPartial() { + com.google.cloud.vmmigration.v1.RunDiskMigrationJobResponse result = + new com.google.cloud.vmmigration.v1.RunDiskMigrationJobResponse(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.vmmigration.v1.RunDiskMigrationJobResponse) { + return mergeFrom((com.google.cloud.vmmigration.v1.RunDiskMigrationJobResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.RunDiskMigrationJobResponse other) { + if (other == com.google.cloud.vmmigration.v1.RunDiskMigrationJobResponse.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.vmmigration.v1.RunDiskMigrationJobResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.RunDiskMigrationJobResponse) + private static final com.google.cloud.vmmigration.v1.RunDiskMigrationJobResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.RunDiskMigrationJobResponse(); + } + + public static com.google.cloud.vmmigration.v1.RunDiskMigrationJobResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RunDiskMigrationJobResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.RunDiskMigrationJobResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/RunDiskMigrationJobResponseOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/RunDiskMigrationJobResponseOrBuilder.java new file mode 100644 index 000000000000..e7673491143c --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/RunDiskMigrationJobResponseOrBuilder.java @@ -0,0 +1,25 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface RunDiskMigrationJobResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.RunDiskMigrationJobResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ServiceAccount.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ServiceAccount.java new file mode 100644 index 000000000000..c0e12086b876 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ServiceAccount.java @@ -0,0 +1,937 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * Service account to assign to the instance created by the machine image.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.ServiceAccount} + */ +public final class ServiceAccount extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.ServiceAccount) + ServiceAccountOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ServiceAccount.newBuilder() to construct. + private ServiceAccount(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ServiceAccount() { + email_ = ""; + scopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ServiceAccount(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ServiceAccount_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ServiceAccount_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.ServiceAccount.class, + com.google.cloud.vmmigration.v1.ServiceAccount.Builder.class); + } + + public static final int EMAIL_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object email_ = ""; + + /** + * + * + *
        +   * Required. The email address of the service account.
        +   * 
        + * + * + * string email = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The email. + */ + @java.lang.Override + public java.lang.String getEmail() { + java.lang.Object ref = email_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + email_ = s; + return s; + } + } + + /** + * + * + *
        +   * Required. The email address of the service account.
        +   * 
        + * + * + * string email = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for email. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEmailBytes() { + java.lang.Object ref = email_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + email_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCOPES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
        +   * Optional. The list of scopes to be made available for this service account.
        +   * 
        + * + * repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the scopes. + */ + public com.google.protobuf.ProtocolStringList getScopesList() { + return scopes_; + } + + /** + * + * + *
        +   * Optional. The list of scopes to be made available for this service account.
        +   * 
        + * + * repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of scopes. + */ + public int getScopesCount() { + return scopes_.size(); + } + + /** + * + * + *
        +   * Optional. The list of scopes to be made available for this service account.
        +   * 
        + * + * repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The scopes at the given index. + */ + public java.lang.String getScopes(int index) { + return scopes_.get(index); + } + + /** + * + * + *
        +   * Optional. The list of scopes to be made available for this service account.
        +   * 
        + * + * repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the scopes at the given index. + */ + public com.google.protobuf.ByteString getScopesBytes(int index) { + return scopes_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, email_); + } + for (int i = 0; i < scopes_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, scopes_.getRaw(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(email_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, email_); + } + { + int dataSize = 0; + for (int i = 0; i < scopes_.size(); i++) { + dataSize += computeStringSizeNoTag(scopes_.getRaw(i)); + } + size += dataSize; + size += 1 * getScopesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmmigration.v1.ServiceAccount)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.ServiceAccount other = + (com.google.cloud.vmmigration.v1.ServiceAccount) obj; + + if (!getEmail().equals(other.getEmail())) return false; + if (!getScopesList().equals(other.getScopesList())) 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) + EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getEmail().hashCode(); + if (getScopesCount() > 0) { + hash = (37 * hash) + SCOPES_FIELD_NUMBER; + hash = (53 * hash) + getScopesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.ServiceAccount parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.ServiceAccount 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.vmmigration.v1.ServiceAccount parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.ServiceAccount parseFrom( + 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.vmmigration.v1.ServiceAccount parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.ServiceAccount parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.ServiceAccount parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.ServiceAccount 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.vmmigration.v1.ServiceAccount parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.ServiceAccount 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.vmmigration.v1.ServiceAccount parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.ServiceAccount 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.vmmigration.v1.ServiceAccount prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * Service account to assign to the instance created by the machine image.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.ServiceAccount} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.ServiceAccount) + com.google.cloud.vmmigration.v1.ServiceAccountOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ServiceAccount_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ServiceAccount_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.ServiceAccount.class, + com.google.cloud.vmmigration.v1.ServiceAccount.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.ServiceAccount.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + email_ = ""; + scopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ServiceAccount_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.ServiceAccount getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.ServiceAccount.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.ServiceAccount build() { + com.google.cloud.vmmigration.v1.ServiceAccount result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.ServiceAccount buildPartial() { + com.google.cloud.vmmigration.v1.ServiceAccount result = + new com.google.cloud.vmmigration.v1.ServiceAccount(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vmmigration.v1.ServiceAccount result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.email_ = email_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + scopes_.makeImmutable(); + result.scopes_ = scopes_; + } + } + + @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.vmmigration.v1.ServiceAccount) { + return mergeFrom((com.google.cloud.vmmigration.v1.ServiceAccount) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.ServiceAccount other) { + if (other == com.google.cloud.vmmigration.v1.ServiceAccount.getDefaultInstance()) return this; + if (!other.getEmail().isEmpty()) { + email_ = other.email_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.scopes_.isEmpty()) { + if (scopes_.isEmpty()) { + scopes_ = other.scopes_; + bitField0_ |= 0x00000002; + } else { + ensureScopesIsMutable(); + scopes_.addAll(other.scopes_); + } + 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: + { + email_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureScopesIsMutable(); + scopes_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object email_ = ""; + + /** + * + * + *
        +     * Required. The email address of the service account.
        +     * 
        + * + * + * string email = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The email. + */ + public java.lang.String getEmail() { + java.lang.Object ref = email_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + email_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Required. The email address of the service account.
        +     * 
        + * + * + * string email = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for email. + */ + public com.google.protobuf.ByteString getEmailBytes() { + java.lang.Object ref = email_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + email_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Required. The email address of the service account.
        +     * 
        + * + * + * string email = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The email to set. + * @return This builder for chaining. + */ + public Builder setEmail(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + email_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The email address of the service account.
        +     * 
        + * + * + * string email = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearEmail() { + email_ = getDefaultInstance().getEmail(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The email address of the service account.
        +     * 
        + * + * + * string email = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for email to set. + * @return This builder for chaining. + */ + public Builder setEmailBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + email_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureScopesIsMutable() { + if (!scopes_.isModifiable()) { + scopes_ = new com.google.protobuf.LazyStringArrayList(scopes_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
        +     * Optional. The list of scopes to be made available for this service account.
        +     * 
        + * + * repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the scopes. + */ + public com.google.protobuf.ProtocolStringList getScopesList() { + scopes_.makeImmutable(); + return scopes_; + } + + /** + * + * + *
        +     * Optional. The list of scopes to be made available for this service account.
        +     * 
        + * + * repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of scopes. + */ + public int getScopesCount() { + return scopes_.size(); + } + + /** + * + * + *
        +     * Optional. The list of scopes to be made available for this service account.
        +     * 
        + * + * repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The scopes at the given index. + */ + public java.lang.String getScopes(int index) { + return scopes_.get(index); + } + + /** + * + * + *
        +     * Optional. The list of scopes to be made available for this service account.
        +     * 
        + * + * repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the scopes at the given index. + */ + public com.google.protobuf.ByteString getScopesBytes(int index) { + return scopes_.getByteString(index); + } + + /** + * + * + *
        +     * Optional. The list of scopes to be made available for this service account.
        +     * 
        + * + * repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The scopes to set. + * @return This builder for chaining. + */ + public Builder setScopes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureScopesIsMutable(); + scopes_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The list of scopes to be made available for this service account.
        +     * 
        + * + * repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The scopes to add. + * @return This builder for chaining. + */ + public Builder addScopes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureScopesIsMutable(); + scopes_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The list of scopes to be made available for this service account.
        +     * 
        + * + * repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The scopes to add. + * @return This builder for chaining. + */ + public Builder addAllScopes(java.lang.Iterable values) { + ensureScopesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, scopes_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The list of scopes to be made available for this service account.
        +     * 
        + * + * repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearScopes() { + scopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The list of scopes to be made available for this service account.
        +     * 
        + * + * repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the scopes to add. + * @return This builder for chaining. + */ + public Builder addScopesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureScopesIsMutable(); + scopes_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vmmigration.v1.ServiceAccount) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.ServiceAccount) + private static final com.google.cloud.vmmigration.v1.ServiceAccount DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.ServiceAccount(); + } + + public static com.google.cloud.vmmigration.v1.ServiceAccount getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServiceAccount parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.ServiceAccount getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ServiceAccountOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ServiceAccountOrBuilder.java new file mode 100644 index 000000000000..dbe8f5962869 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ServiceAccountOrBuilder.java @@ -0,0 +1,110 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface ServiceAccountOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.ServiceAccount) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Required. The email address of the service account.
        +   * 
        + * + * + * string email = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The email. + */ + java.lang.String getEmail(); + + /** + * + * + *
        +   * Required. The email address of the service account.
        +   * 
        + * + * + * string email = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for email. + */ + com.google.protobuf.ByteString getEmailBytes(); + + /** + * + * + *
        +   * Optional. The list of scopes to be made available for this service account.
        +   * 
        + * + * repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the scopes. + */ + java.util.List getScopesList(); + + /** + * + * + *
        +   * Optional. The list of scopes to be made available for this service account.
        +   * 
        + * + * repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of scopes. + */ + int getScopesCount(); + + /** + * + * + *
        +   * Optional. The list of scopes to be made available for this service account.
        +   * 
        + * + * repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The scopes at the given index. + */ + java.lang.String getScopes(int index); + + /** + * + * + *
        +   * Optional. The list of scopes to be made available for this service account.
        +   * 
        + * + * repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the scopes at the given index. + */ + com.google.protobuf.ByteString getScopesBytes(int index); +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ShieldedInstanceConfig.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ShieldedInstanceConfig.java new file mode 100644 index 000000000000..e76cbfc71e9f --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ShieldedInstanceConfig.java @@ -0,0 +1,1009 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * Shielded instance configuration.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.ShieldedInstanceConfig} + */ +public final class ShieldedInstanceConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.ShieldedInstanceConfig) + ShieldedInstanceConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ShieldedInstanceConfig.newBuilder() to construct. + private ShieldedInstanceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ShieldedInstanceConfig() { + secureBoot_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ShieldedInstanceConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ShieldedInstanceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ShieldedInstanceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.ShieldedInstanceConfig.class, + com.google.cloud.vmmigration.v1.ShieldedInstanceConfig.Builder.class); + } + + /** + * + * + *
        +   * Possible values for secure boot.
        +   * 
        + * + * Protobuf enum {@code google.cloud.vmmigration.v1.ShieldedInstanceConfig.SecureBoot} + */ + public enum SecureBoot implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
        +     * No explicit value is selected. Will use the configuration of the source
        +     * (if exists, otherwise the default will be false).
        +     * 
        + * + * SECURE_BOOT_UNSPECIFIED = 0; + */ + SECURE_BOOT_UNSPECIFIED(0), + /** + * + * + *
        +     * Use secure boot. This can be set to true only if the image boot option is
        +     * EFI.
        +     * 
        + * + * TRUE = 1; + */ + TRUE(1), + /** + * + * + *
        +     * Do not use secure boot.
        +     * 
        + * + * FALSE = 2; + */ + FALSE(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
        +     * No explicit value is selected. Will use the configuration of the source
        +     * (if exists, otherwise the default will be false).
        +     * 
        + * + * SECURE_BOOT_UNSPECIFIED = 0; + */ + public static final int SECURE_BOOT_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
        +     * Use secure boot. This can be set to true only if the image boot option is
        +     * EFI.
        +     * 
        + * + * TRUE = 1; + */ + public static final int TRUE_VALUE = 1; + + /** + * + * + *
        +     * Do not use secure boot.
        +     * 
        + * + * FALSE = 2; + */ + public static final int FALSE_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 SecureBoot 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 SecureBoot forNumber(int value) { + switch (value) { + case 0: + return SECURE_BOOT_UNSPECIFIED; + case 1: + return TRUE; + case 2: + return FALSE; + 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 SecureBoot findValueByNumber(int number) { + return SecureBoot.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.vmmigration.v1.ShieldedInstanceConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final SecureBoot[] VALUES = values(); + + public static SecureBoot 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 SecureBoot(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.vmmigration.v1.ShieldedInstanceConfig.SecureBoot) + } + + public static final int SECURE_BOOT_FIELD_NUMBER = 1; + private int secureBoot_ = 0; + + /** + * + * + *
        +   * Optional. Defines whether the instance created by the machine image has
        +   * Secure Boot enabled. This can be set to true only if the image boot option
        +   * is EFI.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ShieldedInstanceConfig.SecureBoot secure_boot = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for secureBoot. + */ + @java.lang.Override + public int getSecureBootValue() { + return secureBoot_; + } + + /** + * + * + *
        +   * Optional. Defines whether the instance created by the machine image has
        +   * Secure Boot enabled. This can be set to true only if the image boot option
        +   * is EFI.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ShieldedInstanceConfig.SecureBoot secure_boot = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The secureBoot. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ShieldedInstanceConfig.SecureBoot getSecureBoot() { + com.google.cloud.vmmigration.v1.ShieldedInstanceConfig.SecureBoot result = + com.google.cloud.vmmigration.v1.ShieldedInstanceConfig.SecureBoot.forNumber(secureBoot_); + return result == null + ? com.google.cloud.vmmigration.v1.ShieldedInstanceConfig.SecureBoot.UNRECOGNIZED + : result; + } + + public static final int ENABLE_VTPM_FIELD_NUMBER = 2; + private boolean enableVtpm_ = false; + + /** + * + * + *
        +   * Optional. Defines whether the instance created by the machine image has
        +   * vTPM enabled. This can be set to true only if the image boot option is EFI.
        +   * 
        + * + * bool enable_vtpm = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableVtpm. + */ + @java.lang.Override + public boolean getEnableVtpm() { + return enableVtpm_; + } + + public static final int ENABLE_INTEGRITY_MONITORING_FIELD_NUMBER = 3; + private boolean enableIntegrityMonitoring_ = false; + + /** + * + * + *
        +   * Optional. Defines whether the instance created by the machine image has
        +   * integrity monitoring enabled. This can be set to true only if the image
        +   * boot option is EFI, and vTPM is enabled.
        +   * 
        + * + * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableIntegrityMonitoring. + */ + @java.lang.Override + public boolean getEnableIntegrityMonitoring() { + return enableIntegrityMonitoring_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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 (secureBoot_ + != com.google.cloud.vmmigration.v1.ShieldedInstanceConfig.SecureBoot.SECURE_BOOT_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, secureBoot_); + } + if (enableVtpm_ != false) { + output.writeBool(2, enableVtpm_); + } + if (enableIntegrityMonitoring_ != false) { + output.writeBool(3, enableIntegrityMonitoring_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (secureBoot_ + != com.google.cloud.vmmigration.v1.ShieldedInstanceConfig.SecureBoot.SECURE_BOOT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, secureBoot_); + } + if (enableVtpm_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableVtpm_); + } + if (enableIntegrityMonitoring_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, enableIntegrityMonitoring_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.vmmigration.v1.ShieldedInstanceConfig)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.ShieldedInstanceConfig other = + (com.google.cloud.vmmigration.v1.ShieldedInstanceConfig) obj; + + if (secureBoot_ != other.secureBoot_) return false; + if (getEnableVtpm() != other.getEnableVtpm()) return false; + if (getEnableIntegrityMonitoring() != other.getEnableIntegrityMonitoring()) 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) + SECURE_BOOT_FIELD_NUMBER; + hash = (53 * hash) + secureBoot_; + hash = (37 * hash) + ENABLE_VTPM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableVtpm()); + hash = (37 * hash) + ENABLE_INTEGRITY_MONITORING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableIntegrityMonitoring()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.ShieldedInstanceConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.ShieldedInstanceConfig 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.vmmigration.v1.ShieldedInstanceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.ShieldedInstanceConfig parseFrom( + 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.vmmigration.v1.ShieldedInstanceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.ShieldedInstanceConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.ShieldedInstanceConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.ShieldedInstanceConfig 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.vmmigration.v1.ShieldedInstanceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.ShieldedInstanceConfig 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.vmmigration.v1.ShieldedInstanceConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.ShieldedInstanceConfig 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.vmmigration.v1.ShieldedInstanceConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
        +   * Shielded instance configuration.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.ShieldedInstanceConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.ShieldedInstanceConfig) + com.google.cloud.vmmigration.v1.ShieldedInstanceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ShieldedInstanceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ShieldedInstanceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.ShieldedInstanceConfig.class, + com.google.cloud.vmmigration.v1.ShieldedInstanceConfig.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.ShieldedInstanceConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + secureBoot_ = 0; + enableVtpm_ = false; + enableIntegrityMonitoring_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_ShieldedInstanceConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.ShieldedInstanceConfig getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.ShieldedInstanceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.ShieldedInstanceConfig build() { + com.google.cloud.vmmigration.v1.ShieldedInstanceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.ShieldedInstanceConfig buildPartial() { + com.google.cloud.vmmigration.v1.ShieldedInstanceConfig result = + new com.google.cloud.vmmigration.v1.ShieldedInstanceConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vmmigration.v1.ShieldedInstanceConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.secureBoot_ = secureBoot_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.enableVtpm_ = enableVtpm_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.enableIntegrityMonitoring_ = enableIntegrityMonitoring_; + } + } + + @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.vmmigration.v1.ShieldedInstanceConfig) { + return mergeFrom((com.google.cloud.vmmigration.v1.ShieldedInstanceConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.ShieldedInstanceConfig other) { + if (other == com.google.cloud.vmmigration.v1.ShieldedInstanceConfig.getDefaultInstance()) + return this; + if (other.secureBoot_ != 0) { + setSecureBootValue(other.getSecureBootValue()); + } + if (other.getEnableVtpm() != false) { + setEnableVtpm(other.getEnableVtpm()); + } + if (other.getEnableIntegrityMonitoring() != false) { + setEnableIntegrityMonitoring(other.getEnableIntegrityMonitoring()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + secureBoot_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + enableVtpm_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + enableIntegrityMonitoring_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int secureBoot_ = 0; + + /** + * + * + *
        +     * Optional. Defines whether the instance created by the machine image has
        +     * Secure Boot enabled. This can be set to true only if the image boot option
        +     * is EFI.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ShieldedInstanceConfig.SecureBoot secure_boot = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for secureBoot. + */ + @java.lang.Override + public int getSecureBootValue() { + return secureBoot_; + } + + /** + * + * + *
        +     * Optional. Defines whether the instance created by the machine image has
        +     * Secure Boot enabled. This can be set to true only if the image boot option
        +     * is EFI.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ShieldedInstanceConfig.SecureBoot secure_boot = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for secureBoot to set. + * @return This builder for chaining. + */ + public Builder setSecureBootValue(int value) { + secureBoot_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Defines whether the instance created by the machine image has
        +     * Secure Boot enabled. This can be set to true only if the image boot option
        +     * is EFI.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ShieldedInstanceConfig.SecureBoot secure_boot = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The secureBoot. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.ShieldedInstanceConfig.SecureBoot getSecureBoot() { + com.google.cloud.vmmigration.v1.ShieldedInstanceConfig.SecureBoot result = + com.google.cloud.vmmigration.v1.ShieldedInstanceConfig.SecureBoot.forNumber(secureBoot_); + return result == null + ? com.google.cloud.vmmigration.v1.ShieldedInstanceConfig.SecureBoot.UNRECOGNIZED + : result; + } + + /** + * + * + *
        +     * Optional. Defines whether the instance created by the machine image has
        +     * Secure Boot enabled. This can be set to true only if the image boot option
        +     * is EFI.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ShieldedInstanceConfig.SecureBoot secure_boot = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The secureBoot to set. + * @return This builder for chaining. + */ + public Builder setSecureBoot( + com.google.cloud.vmmigration.v1.ShieldedInstanceConfig.SecureBoot value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + secureBoot_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Defines whether the instance created by the machine image has
        +     * Secure Boot enabled. This can be set to true only if the image boot option
        +     * is EFI.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.ShieldedInstanceConfig.SecureBoot secure_boot = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearSecureBoot() { + bitField0_ = (bitField0_ & ~0x00000001); + secureBoot_ = 0; + onChanged(); + return this; + } + + private boolean enableVtpm_; + + /** + * + * + *
        +     * Optional. Defines whether the instance created by the machine image has
        +     * vTPM enabled. This can be set to true only if the image boot option is EFI.
        +     * 
        + * + * bool enable_vtpm = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableVtpm. + */ + @java.lang.Override + public boolean getEnableVtpm() { + return enableVtpm_; + } + + /** + * + * + *
        +     * Optional. Defines whether the instance created by the machine image has
        +     * vTPM enabled. This can be set to true only if the image boot option is EFI.
        +     * 
        + * + * bool enable_vtpm = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enableVtpm to set. + * @return This builder for chaining. + */ + public Builder setEnableVtpm(boolean value) { + + enableVtpm_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Defines whether the instance created by the machine image has
        +     * vTPM enabled. This can be set to true only if the image boot option is EFI.
        +     * 
        + * + * bool enable_vtpm = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnableVtpm() { + bitField0_ = (bitField0_ & ~0x00000002); + enableVtpm_ = false; + onChanged(); + return this; + } + + private boolean enableIntegrityMonitoring_; + + /** + * + * + *
        +     * Optional. Defines whether the instance created by the machine image has
        +     * integrity monitoring enabled. This can be set to true only if the image
        +     * boot option is EFI, and vTPM is enabled.
        +     * 
        + * + * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableIntegrityMonitoring. + */ + @java.lang.Override + public boolean getEnableIntegrityMonitoring() { + return enableIntegrityMonitoring_; + } + + /** + * + * + *
        +     * Optional. Defines whether the instance created by the machine image has
        +     * integrity monitoring enabled. This can be set to true only if the image
        +     * boot option is EFI, and vTPM is enabled.
        +     * 
        + * + * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enableIntegrityMonitoring to set. + * @return This builder for chaining. + */ + public Builder setEnableIntegrityMonitoring(boolean value) { + + enableIntegrityMonitoring_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Defines whether the instance created by the machine image has
        +     * integrity monitoring enabled. This can be set to true only if the image
        +     * boot option is EFI, and vTPM is enabled.
        +     * 
        + * + * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnableIntegrityMonitoring() { + bitField0_ = (bitField0_ & ~0x00000004); + enableIntegrityMonitoring_ = 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.vmmigration.v1.ShieldedInstanceConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.ShieldedInstanceConfig) + private static final com.google.cloud.vmmigration.v1.ShieldedInstanceConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.ShieldedInstanceConfig(); + } + + public static com.google.cloud.vmmigration.v1.ShieldedInstanceConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ShieldedInstanceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.ShieldedInstanceConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ShieldedInstanceConfigOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ShieldedInstanceConfigOrBuilder.java new file mode 100644 index 000000000000..a14e5f0512eb --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ShieldedInstanceConfigOrBuilder.java @@ -0,0 +1,89 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface ShieldedInstanceConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.ShieldedInstanceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Optional. Defines whether the instance created by the machine image has
        +   * Secure Boot enabled. This can be set to true only if the image boot option
        +   * is EFI.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ShieldedInstanceConfig.SecureBoot secure_boot = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for secureBoot. + */ + int getSecureBootValue(); + + /** + * + * + *
        +   * Optional. Defines whether the instance created by the machine image has
        +   * Secure Boot enabled. This can be set to true only if the image boot option
        +   * is EFI.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.ShieldedInstanceConfig.SecureBoot secure_boot = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The secureBoot. + */ + com.google.cloud.vmmigration.v1.ShieldedInstanceConfig.SecureBoot getSecureBoot(); + + /** + * + * + *
        +   * Optional. Defines whether the instance created by the machine image has
        +   * vTPM enabled. This can be set to true only if the image boot option is EFI.
        +   * 
        + * + * bool enable_vtpm = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableVtpm. + */ + boolean getEnableVtpm(); + + /** + * + * + *
        +   * Optional. Defines whether the instance created by the machine image has
        +   * integrity monitoring enabled. This can be set to true only if the image
        +   * boot option is EFI, and vTPM is enabled.
        +   * 
        + * + * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableIntegrityMonitoring. + */ + boolean getEnableIntegrityMonitoring(); +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/SkipOsAdaptation.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/SkipOsAdaptation.java new file mode 100644 index 000000000000..895aeac33cf0 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/SkipOsAdaptation.java @@ -0,0 +1,434 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * Mentions that the machine image import is not using OS adaptation process.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.SkipOsAdaptation} + */ +public final class SkipOsAdaptation extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.SkipOsAdaptation) + SkipOsAdaptationOrBuilder { + private static final long serialVersionUID = 0L; + + // Use SkipOsAdaptation.newBuilder() to construct. + private SkipOsAdaptation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SkipOsAdaptation() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SkipOsAdaptation(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_SkipOsAdaptation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_SkipOsAdaptation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.SkipOsAdaptation.class, + com.google.cloud.vmmigration.v1.SkipOsAdaptation.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.vmmigration.v1.SkipOsAdaptation)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.SkipOsAdaptation other = + (com.google.cloud.vmmigration.v1.SkipOsAdaptation) 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.vmmigration.v1.SkipOsAdaptation parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.SkipOsAdaptation 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.vmmigration.v1.SkipOsAdaptation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.SkipOsAdaptation parseFrom( + 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.vmmigration.v1.SkipOsAdaptation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.SkipOsAdaptation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.SkipOsAdaptation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.SkipOsAdaptation 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.vmmigration.v1.SkipOsAdaptation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.SkipOsAdaptation 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.vmmigration.v1.SkipOsAdaptation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.SkipOsAdaptation 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.vmmigration.v1.SkipOsAdaptation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
        +   * Mentions that the machine image import is not using OS adaptation process.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.SkipOsAdaptation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.SkipOsAdaptation) + com.google.cloud.vmmigration.v1.SkipOsAdaptationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_SkipOsAdaptation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_SkipOsAdaptation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.SkipOsAdaptation.class, + com.google.cloud.vmmigration.v1.SkipOsAdaptation.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.SkipOsAdaptation.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.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_SkipOsAdaptation_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.SkipOsAdaptation getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.SkipOsAdaptation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.SkipOsAdaptation build() { + com.google.cloud.vmmigration.v1.SkipOsAdaptation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.SkipOsAdaptation buildPartial() { + com.google.cloud.vmmigration.v1.SkipOsAdaptation result = + new com.google.cloud.vmmigration.v1.SkipOsAdaptation(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.vmmigration.v1.SkipOsAdaptation) { + return mergeFrom((com.google.cloud.vmmigration.v1.SkipOsAdaptation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.SkipOsAdaptation other) { + if (other == com.google.cloud.vmmigration.v1.SkipOsAdaptation.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.vmmigration.v1.SkipOsAdaptation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.SkipOsAdaptation) + private static final com.google.cloud.vmmigration.v1.SkipOsAdaptation DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.SkipOsAdaptation(); + } + + public static com.google.cloud.vmmigration.v1.SkipOsAdaptation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SkipOsAdaptation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.SkipOsAdaptation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/SkipOsAdaptationOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/SkipOsAdaptationOrBuilder.java new file mode 100644 index 000000000000..c3039a483558 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/SkipOsAdaptationOrBuilder.java @@ -0,0 +1,25 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface SkipOsAdaptationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.SkipOsAdaptation) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/Source.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/Source.java index 8e532a43024b..b1e4a66da64b 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/Source.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/Source.java @@ -90,6 +90,7 @@ public enum SourceDetailsCase com.google.protobuf.AbstractMessage.InternalOneOfEnum { VMWARE(10), AWS(12), + AZURE(13), SOURCEDETAILS_NOT_SET(0); private final int value; @@ -113,6 +114,8 @@ public static SourceDetailsCase forNumber(int value) { return VMWARE; case 12: return AWS; + case 13: + return AZURE; case 0: return SOURCEDETAILS_NOT_SET; default: @@ -237,6 +240,60 @@ public com.google.cloud.vmmigration.v1.AwsSourceDetailsOrBuilder getAwsOrBuilder return com.google.cloud.vmmigration.v1.AwsSourceDetails.getDefaultInstance(); } + public static final int AZURE_FIELD_NUMBER = 13; + + /** + * + * + *
        +   * Azure type source details.
        +   * 
        + * + * .google.cloud.vmmigration.v1.AzureSourceDetails azure = 13; + * + * @return Whether the azure field is set. + */ + @java.lang.Override + public boolean hasAzure() { + return sourceDetailsCase_ == 13; + } + + /** + * + * + *
        +   * Azure type source details.
        +   * 
        + * + * .google.cloud.vmmigration.v1.AzureSourceDetails azure = 13; + * + * @return The azure. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureSourceDetails getAzure() { + if (sourceDetailsCase_ == 13) { + return (com.google.cloud.vmmigration.v1.AzureSourceDetails) sourceDetails_; + } + return com.google.cloud.vmmigration.v1.AzureSourceDetails.getDefaultInstance(); + } + + /** + * + * + *
        +   * Azure type source details.
        +   * 
        + * + * .google.cloud.vmmigration.v1.AzureSourceDetails azure = 13; + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureSourceDetailsOrBuilder getAzureOrBuilder() { + if (sourceDetailsCase_ == 13) { + return (com.google.cloud.vmmigration.v1.AzureSourceDetails) sourceDetails_; + } + return com.google.cloud.vmmigration.v1.AzureSourceDetails.getDefaultInstance(); + } + public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -554,6 +611,68 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } + public static final int ENCRYPTION_FIELD_NUMBER = 14; + private com.google.cloud.vmmigration.v1.Encryption encryption_; + + /** + * + * + *
        +   * Optional. Immutable. The encryption details of the source data stored by
        +   * the service.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the encryption field is set. + */ + @java.lang.Override + public boolean hasEncryption() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
        +   * Optional. Immutable. The encryption details of the source data stored by
        +   * the service.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The encryption. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.Encryption getEncryption() { + return encryption_ == null + ? com.google.cloud.vmmigration.v1.Encryption.getDefaultInstance() + : encryption_; + } + + /** + * + * + *
        +   * Optional. Immutable. The encryption details of the source data stored by
        +   * the service.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.EncryptionOrBuilder getEncryptionOrBuilder() { + return encryption_ == null + ? com.google.cloud.vmmigration.v1.Encryption.getDefaultInstance() + : encryption_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -588,6 +707,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (sourceDetailsCase_ == 12) { output.writeMessage(12, (com.google.cloud.vmmigration.v1.AwsSourceDetails) sourceDetails_); } + if (sourceDetailsCase_ == 13) { + output.writeMessage(13, (com.google.cloud.vmmigration.v1.AzureSourceDetails) sourceDetails_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(14, getEncryption()); + } getUnknownFields().writeTo(output); } @@ -629,6 +754,14 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 12, (com.google.cloud.vmmigration.v1.AwsSourceDetails) sourceDetails_); } + if (sourceDetailsCase_ == 13) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 13, (com.google.cloud.vmmigration.v1.AzureSourceDetails) sourceDetails_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getEncryption()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -655,6 +788,10 @@ public boolean equals(final java.lang.Object obj) { } if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (!getDescription().equals(other.getDescription())) return false; + if (hasEncryption() != other.hasEncryption()) return false; + if (hasEncryption()) { + if (!getEncryption().equals(other.getEncryption())) return false; + } if (!getSourceDetailsCase().equals(other.getSourceDetailsCase())) return false; switch (sourceDetailsCase_) { case 10: @@ -663,6 +800,9 @@ public boolean equals(final java.lang.Object obj) { case 12: if (!getAws().equals(other.getAws())) return false; break; + case 13: + if (!getAzure().equals(other.getAzure())) return false; + break; case 0: default: } @@ -693,6 +833,10 @@ public int hashCode() { } hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); + if (hasEncryption()) { + hash = (37 * hash) + ENCRYPTION_FIELD_NUMBER; + hash = (53 * hash) + getEncryption().hashCode(); + } switch (sourceDetailsCase_) { case 10: hash = (37 * hash) + VMWARE_FIELD_NUMBER; @@ -702,6 +846,10 @@ public int hashCode() { hash = (37 * hash) + AWS_FIELD_NUMBER; hash = (53 * hash) + getAws().hashCode(); break; + case 13: + hash = (37 * hash) + AZURE_FIELD_NUMBER; + hash = (53 * hash) + getAzure().hashCode(); + break; case 0: default: } @@ -871,6 +1019,7 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getCreateTimeFieldBuilder(); getUpdateTimeFieldBuilder(); + getEncryptionFieldBuilder(); } } @@ -884,6 +1033,9 @@ public Builder clear() { if (awsBuilder_ != null) { awsBuilder_.clear(); } + if (azureBuilder_ != null) { + azureBuilder_.clear(); + } name_ = ""; createTime_ = null; if (createTimeBuilder_ != null) { @@ -897,6 +1049,11 @@ public Builder clear() { } internalGetMutableLabels().clear(); description_ = ""; + encryption_ = null; + if (encryptionBuilder_ != null) { + encryptionBuilder_.dispose(); + encryptionBuilder_ = null; + } sourceDetailsCase_ = 0; sourceDetails_ = null; return this; @@ -936,25 +1093,29 @@ public com.google.cloud.vmmigration.v1.Source buildPartial() { private void buildPartial0(com.google.cloud.vmmigration.v1.Source result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000008) != 0)) { result.name_ = name_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.description_ = description_; } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.encryption_ = encryptionBuilder_ == null ? encryption_ : encryptionBuilder_.build(); + to_bitField0_ |= 0x00000004; + } result.bitField0_ |= to_bitField0_; } @@ -967,6 +1128,9 @@ private void buildPartialOneofs(com.google.cloud.vmmigration.v1.Source result) { if (sourceDetailsCase_ == 12 && awsBuilder_ != null) { result.sourceDetails_ = awsBuilder_.build(); } + if (sourceDetailsCase_ == 13 && azureBuilder_ != null) { + result.sourceDetails_ = azureBuilder_.build(); + } } @java.lang.Override @@ -1016,7 +1180,7 @@ public Builder mergeFrom(com.google.cloud.vmmigration.v1.Source other) { if (other == com.google.cloud.vmmigration.v1.Source.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasCreateTime()) { @@ -1026,12 +1190,15 @@ public Builder mergeFrom(com.google.cloud.vmmigration.v1.Source other) { mergeUpdateTime(other.getUpdateTime()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; if (!other.getDescription().isEmpty()) { description_ = other.description_; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); } + if (other.hasEncryption()) { + mergeEncryption(other.getEncryption()); + } switch (other.getSourceDetailsCase()) { case VMWARE: { @@ -1043,6 +1210,11 @@ public Builder mergeFrom(com.google.cloud.vmmigration.v1.Source other) { mergeAws(other.getAws()); break; } + case AZURE: + { + mergeAzure(other.getAzure()); + break; + } case SOURCEDETAILS_NOT_SET: { break; @@ -1077,19 +1249,19 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 10 case 18: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 18 case 26: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 26 case 34: @@ -1101,13 +1273,13 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 34 case 50: { description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 50 case 82: @@ -1122,6 +1294,18 @@ public Builder mergeFrom( sourceDetailsCase_ = 12; break; } // case 98 + case 106: + { + input.readMessage(getAzureFieldBuilder().getBuilder(), extensionRegistry); + sourceDetailsCase_ = 13; + break; + } // case 106 + case 114: + { + input.readMessage(getEncryptionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 114 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1593,6 +1777,225 @@ public com.google.cloud.vmmigration.v1.AwsSourceDetailsOrBuilder getAwsOrBuilder return awsBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.AzureSourceDetails, + com.google.cloud.vmmigration.v1.AzureSourceDetails.Builder, + com.google.cloud.vmmigration.v1.AzureSourceDetailsOrBuilder> + azureBuilder_; + + /** + * + * + *
        +     * Azure type source details.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AzureSourceDetails azure = 13; + * + * @return Whether the azure field is set. + */ + @java.lang.Override + public boolean hasAzure() { + return sourceDetailsCase_ == 13; + } + + /** + * + * + *
        +     * Azure type source details.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AzureSourceDetails azure = 13; + * + * @return The azure. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureSourceDetails getAzure() { + if (azureBuilder_ == null) { + if (sourceDetailsCase_ == 13) { + return (com.google.cloud.vmmigration.v1.AzureSourceDetails) sourceDetails_; + } + return com.google.cloud.vmmigration.v1.AzureSourceDetails.getDefaultInstance(); + } else { + if (sourceDetailsCase_ == 13) { + return azureBuilder_.getMessage(); + } + return com.google.cloud.vmmigration.v1.AzureSourceDetails.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Azure type source details.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AzureSourceDetails azure = 13; + */ + public Builder setAzure(com.google.cloud.vmmigration.v1.AzureSourceDetails value) { + if (azureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sourceDetails_ = value; + onChanged(); + } else { + azureBuilder_.setMessage(value); + } + sourceDetailsCase_ = 13; + return this; + } + + /** + * + * + *
        +     * Azure type source details.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AzureSourceDetails azure = 13; + */ + public Builder setAzure( + com.google.cloud.vmmigration.v1.AzureSourceDetails.Builder builderForValue) { + if (azureBuilder_ == null) { + sourceDetails_ = builderForValue.build(); + onChanged(); + } else { + azureBuilder_.setMessage(builderForValue.build()); + } + sourceDetailsCase_ = 13; + return this; + } + + /** + * + * + *
        +     * Azure type source details.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AzureSourceDetails azure = 13; + */ + public Builder mergeAzure(com.google.cloud.vmmigration.v1.AzureSourceDetails value) { + if (azureBuilder_ == null) { + if (sourceDetailsCase_ == 13 + && sourceDetails_ + != com.google.cloud.vmmigration.v1.AzureSourceDetails.getDefaultInstance()) { + sourceDetails_ = + com.google.cloud.vmmigration.v1.AzureSourceDetails.newBuilder( + (com.google.cloud.vmmigration.v1.AzureSourceDetails) sourceDetails_) + .mergeFrom(value) + .buildPartial(); + } else { + sourceDetails_ = value; + } + onChanged(); + } else { + if (sourceDetailsCase_ == 13) { + azureBuilder_.mergeFrom(value); + } else { + azureBuilder_.setMessage(value); + } + } + sourceDetailsCase_ = 13; + return this; + } + + /** + * + * + *
        +     * Azure type source details.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AzureSourceDetails azure = 13; + */ + public Builder clearAzure() { + if (azureBuilder_ == null) { + if (sourceDetailsCase_ == 13) { + sourceDetailsCase_ = 0; + sourceDetails_ = null; + onChanged(); + } + } else { + if (sourceDetailsCase_ == 13) { + sourceDetailsCase_ = 0; + sourceDetails_ = null; + } + azureBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Azure type source details.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AzureSourceDetails azure = 13; + */ + public com.google.cloud.vmmigration.v1.AzureSourceDetails.Builder getAzureBuilder() { + return getAzureFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Azure type source details.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AzureSourceDetails azure = 13; + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.AzureSourceDetailsOrBuilder getAzureOrBuilder() { + if ((sourceDetailsCase_ == 13) && (azureBuilder_ != null)) { + return azureBuilder_.getMessageOrBuilder(); + } else { + if (sourceDetailsCase_ == 13) { + return (com.google.cloud.vmmigration.v1.AzureSourceDetails) sourceDetails_; + } + return com.google.cloud.vmmigration.v1.AzureSourceDetails.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Azure type source details.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AzureSourceDetails azure = 13; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.AzureSourceDetails, + com.google.cloud.vmmigration.v1.AzureSourceDetails.Builder, + com.google.cloud.vmmigration.v1.AzureSourceDetailsOrBuilder> + getAzureFieldBuilder() { + if (azureBuilder_ == null) { + if (!(sourceDetailsCase_ == 13)) { + sourceDetails_ = com.google.cloud.vmmigration.v1.AzureSourceDetails.getDefaultInstance(); + } + azureBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.AzureSourceDetails, + com.google.cloud.vmmigration.v1.AzureSourceDetails.Builder, + com.google.cloud.vmmigration.v1.AzureSourceDetailsOrBuilder>( + (com.google.cloud.vmmigration.v1.AzureSourceDetails) sourceDetails_, + getParentForChildren(), + isClean()); + sourceDetails_ = null; + } + sourceDetailsCase_ = 13; + onChanged(); + return azureBuilder_; + } + private java.lang.Object name_ = ""; /** @@ -1658,7 +2061,7 @@ public Builder setName(java.lang.String value) { throw new NullPointerException(); } name_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1676,7 +2079,7 @@ public Builder setName(java.lang.String value) { */ public Builder clearName() { name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1699,7 +2102,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); name_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1725,7 +2128,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** @@ -1771,7 +2174,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1793,7 +2196,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { createTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1811,7 +2214,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) + if (((bitField0_ & 0x00000010) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); @@ -1822,7 +2225,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); } return this; @@ -1840,7 +2243,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { *
        */ public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -1862,7 +2265,7 @@ public Builder clearCreateTime() { *
        */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -1937,7 +2340,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** @@ -1983,7 +2386,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { } else { updateTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2005,7 +2408,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2023,7 +2426,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) + if (((bitField0_ & 0x00000020) != 0) && updateTime_ != null && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); @@ -2034,7 +2437,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { updateTimeBuilder_.mergeFrom(value); } if (updateTime_ != null) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); } return this; @@ -2052,7 +2455,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { *
        */ public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); @@ -2074,7 +2477,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -2145,7 +2548,7 @@ private com.google.protobuf.MapField interna if (!labels_.isMutable()) { labels_ = labels_.copy(); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return labels_; } @@ -2235,7 +2638,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -2260,7 +2663,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; return internalGetMutableLabels().getMutableMap(); } @@ -2281,7 +2684,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; return this; } @@ -2296,7 +2699,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; return this; } @@ -2365,7 +2768,7 @@ public Builder setDescription(java.lang.String value) { throw new NullPointerException(); } description_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2383,7 +2786,7 @@ public Builder setDescription(java.lang.String value) { */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -2406,11 +2809,233 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); description_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } + private com.google.cloud.vmmigration.v1.Encryption encryption_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.Encryption, + com.google.cloud.vmmigration.v1.Encryption.Builder, + com.google.cloud.vmmigration.v1.EncryptionOrBuilder> + encryptionBuilder_; + + /** + * + * + *
        +     * Optional. Immutable. The encryption details of the source data stored by
        +     * the service.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the encryption field is set. + */ + public boolean hasEncryption() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
        +     * Optional. Immutable. The encryption details of the source data stored by
        +     * the service.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The encryption. + */ + public com.google.cloud.vmmigration.v1.Encryption getEncryption() { + if (encryptionBuilder_ == null) { + return encryption_ == null + ? com.google.cloud.vmmigration.v1.Encryption.getDefaultInstance() + : encryption_; + } else { + return encryptionBuilder_.getMessage(); + } + } + + /** + * + * + *
        +     * Optional. Immutable. The encryption details of the source data stored by
        +     * the service.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setEncryption(com.google.cloud.vmmigration.v1.Encryption value) { + if (encryptionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + encryption_ = value; + } else { + encryptionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Immutable. The encryption details of the source data stored by
        +     * the service.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setEncryption( + com.google.cloud.vmmigration.v1.Encryption.Builder builderForValue) { + if (encryptionBuilder_ == null) { + encryption_ = builderForValue.build(); + } else { + encryptionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Immutable. The encryption details of the source data stored by
        +     * the service.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder mergeEncryption(com.google.cloud.vmmigration.v1.Encryption value) { + if (encryptionBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && encryption_ != null + && encryption_ != com.google.cloud.vmmigration.v1.Encryption.getDefaultInstance()) { + getEncryptionBuilder().mergeFrom(value); + } else { + encryption_ = value; + } + } else { + encryptionBuilder_.mergeFrom(value); + } + if (encryption_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Optional. Immutable. The encryption details of the source data stored by
        +     * the service.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder clearEncryption() { + bitField0_ = (bitField0_ & ~0x00000100); + encryption_ = null; + if (encryptionBuilder_ != null) { + encryptionBuilder_.dispose(); + encryptionBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Immutable. The encryption details of the source data stored by
        +     * the service.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.vmmigration.v1.Encryption.Builder getEncryptionBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return getEncryptionFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Optional. Immutable. The encryption details of the source data stored by
        +     * the service.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.vmmigration.v1.EncryptionOrBuilder getEncryptionOrBuilder() { + if (encryptionBuilder_ != null) { + return encryptionBuilder_.getMessageOrBuilder(); + } else { + return encryption_ == null + ? com.google.cloud.vmmigration.v1.Encryption.getDefaultInstance() + : encryption_; + } + } + + /** + * + * + *
        +     * Optional. Immutable. The encryption details of the source data stored by
        +     * the service.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.Encryption, + com.google.cloud.vmmigration.v1.Encryption.Builder, + com.google.cloud.vmmigration.v1.EncryptionOrBuilder> + getEncryptionFieldBuilder() { + if (encryptionBuilder_ == null) { + encryptionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.Encryption, + com.google.cloud.vmmigration.v1.Encryption.Builder, + com.google.cloud.vmmigration.v1.EncryptionOrBuilder>( + getEncryption(), getParentForChildren(), isClean()); + encryption_ = null; + } + return encryptionBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/SourceOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/SourceOrBuilder.java index 1d41a0e55156..64ab8d1bc6c0 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/SourceOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/SourceOrBuilder.java @@ -98,6 +98,43 @@ public interface SourceOrBuilder */ com.google.cloud.vmmigration.v1.AwsSourceDetailsOrBuilder getAwsOrBuilder(); + /** + * + * + *
        +   * Azure type source details.
        +   * 
        + * + * .google.cloud.vmmigration.v1.AzureSourceDetails azure = 13; + * + * @return Whether the azure field is set. + */ + boolean hasAzure(); + + /** + * + * + *
        +   * Azure type source details.
        +   * 
        + * + * .google.cloud.vmmigration.v1.AzureSourceDetails azure = 13; + * + * @return The azure. + */ + com.google.cloud.vmmigration.v1.AzureSourceDetails getAzure(); + + /** + * + * + *
        +   * Azure type source details.
        +   * 
        + * + * .google.cloud.vmmigration.v1.AzureSourceDetails azure = 13; + */ + com.google.cloud.vmmigration.v1.AzureSourceDetailsOrBuilder getAzureOrBuilder(); + /** * * @@ -293,5 +330,51 @@ java.lang.String getLabelsOrDefault( */ com.google.protobuf.ByteString getDescriptionBytes(); + /** + * + * + *
        +   * Optional. Immutable. The encryption details of the source data stored by
        +   * the service.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the encryption field is set. + */ + boolean hasEncryption(); + + /** + * + * + *
        +   * Optional. Immutable. The encryption details of the source data stored by
        +   * the service.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The encryption. + */ + com.google.cloud.vmmigration.v1.Encryption getEncryption(); + + /** + * + * + *
        +   * Optional. Immutable. The encryption details of the source data stored by
        +   * the service.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.Encryption encryption = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + com.google.cloud.vmmigration.v1.EncryptionOrBuilder getEncryptionOrBuilder(); + com.google.cloud.vmmigration.v1.Source.SourceDetailsCase getSourceDetailsCase(); } diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/SourceStorageResource.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/SourceStorageResource.java new file mode 100644 index 000000000000..50485e6782fd --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/SourceStorageResource.java @@ -0,0 +1,838 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * SourceStorageResource describes a storage resource in the source.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.SourceStorageResource} + */ +public final class SourceStorageResource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.SourceStorageResource) + SourceStorageResourceOrBuilder { + private static final long serialVersionUID = 0L; + + // Use SourceStorageResource.newBuilder() to construct. + private SourceStorageResource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SourceStorageResource() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SourceStorageResource(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_SourceStorageResource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_SourceStorageResource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.SourceStorageResource.class, + com.google.cloud.vmmigration.v1.SourceStorageResource.Builder.class); + } + + private int storageResourceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object storageResource_; + + public enum StorageResourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + AWS_DISK_DETAILS(1), + STORAGERESOURCE_NOT_SET(0); + private final int value; + + private StorageResourceCase(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 StorageResourceCase valueOf(int value) { + return forNumber(value); + } + + public static StorageResourceCase forNumber(int value) { + switch (value) { + case 1: + return AWS_DISK_DETAILS; + case 0: + return STORAGERESOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public StorageResourceCase getStorageResourceCase() { + return StorageResourceCase.forNumber(storageResourceCase_); + } + + public static final int AWS_DISK_DETAILS_FIELD_NUMBER = 1; + + /** + * + * + *
        +   * Source AWS volume details.
        +   * 
        + * + * .google.cloud.vmmigration.v1.AwsSourceDiskDetails aws_disk_details = 1; + * + * @return Whether the awsDiskDetails field is set. + */ + @java.lang.Override + public boolean hasAwsDiskDetails() { + return storageResourceCase_ == 1; + } + + /** + * + * + *
        +   * Source AWS volume details.
        +   * 
        + * + * .google.cloud.vmmigration.v1.AwsSourceDiskDetails aws_disk_details = 1; + * + * @return The awsDiskDetails. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.AwsSourceDiskDetails getAwsDiskDetails() { + if (storageResourceCase_ == 1) { + return (com.google.cloud.vmmigration.v1.AwsSourceDiskDetails) storageResource_; + } + return com.google.cloud.vmmigration.v1.AwsSourceDiskDetails.getDefaultInstance(); + } + + /** + * + * + *
        +   * Source AWS volume details.
        +   * 
        + * + * .google.cloud.vmmigration.v1.AwsSourceDiskDetails aws_disk_details = 1; + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.AwsSourceDiskDetailsOrBuilder + getAwsDiskDetailsOrBuilder() { + if (storageResourceCase_ == 1) { + return (com.google.cloud.vmmigration.v1.AwsSourceDiskDetails) storageResource_; + } + return com.google.cloud.vmmigration.v1.AwsSourceDiskDetails.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 (storageResourceCase_ == 1) { + output.writeMessage( + 1, (com.google.cloud.vmmigration.v1.AwsSourceDiskDetails) storageResource_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (storageResourceCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.vmmigration.v1.AwsSourceDiskDetails) storageResource_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.vmmigration.v1.SourceStorageResource)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.SourceStorageResource other = + (com.google.cloud.vmmigration.v1.SourceStorageResource) obj; + + if (!getStorageResourceCase().equals(other.getStorageResourceCase())) return false; + switch (storageResourceCase_) { + case 1: + if (!getAwsDiskDetails().equals(other.getAwsDiskDetails())) 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 (storageResourceCase_) { + case 1: + hash = (37 * hash) + AWS_DISK_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getAwsDiskDetails().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.SourceStorageResource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.SourceStorageResource 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.vmmigration.v1.SourceStorageResource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.SourceStorageResource parseFrom( + 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.vmmigration.v1.SourceStorageResource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.SourceStorageResource parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.SourceStorageResource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.SourceStorageResource 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.vmmigration.v1.SourceStorageResource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.SourceStorageResource 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.vmmigration.v1.SourceStorageResource parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.SourceStorageResource 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.vmmigration.v1.SourceStorageResource prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
        +   * SourceStorageResource describes a storage resource in the source.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.SourceStorageResource} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.SourceStorageResource) + com.google.cloud.vmmigration.v1.SourceStorageResourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_SourceStorageResource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_SourceStorageResource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.SourceStorageResource.class, + com.google.cloud.vmmigration.v1.SourceStorageResource.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.SourceStorageResource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (awsDiskDetailsBuilder_ != null) { + awsDiskDetailsBuilder_.clear(); + } + storageResourceCase_ = 0; + storageResource_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_SourceStorageResource_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.SourceStorageResource getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.SourceStorageResource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.SourceStorageResource build() { + com.google.cloud.vmmigration.v1.SourceStorageResource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.SourceStorageResource buildPartial() { + com.google.cloud.vmmigration.v1.SourceStorageResource result = + new com.google.cloud.vmmigration.v1.SourceStorageResource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vmmigration.v1.SourceStorageResource result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.vmmigration.v1.SourceStorageResource result) { + result.storageResourceCase_ = storageResourceCase_; + result.storageResource_ = this.storageResource_; + if (storageResourceCase_ == 1 && awsDiskDetailsBuilder_ != null) { + result.storageResource_ = awsDiskDetailsBuilder_.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.vmmigration.v1.SourceStorageResource) { + return mergeFrom((com.google.cloud.vmmigration.v1.SourceStorageResource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.SourceStorageResource other) { + if (other == com.google.cloud.vmmigration.v1.SourceStorageResource.getDefaultInstance()) + return this; + switch (other.getStorageResourceCase()) { + case AWS_DISK_DETAILS: + { + mergeAwsDiskDetails(other.getAwsDiskDetails()); + break; + } + case STORAGERESOURCE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getAwsDiskDetailsFieldBuilder().getBuilder(), extensionRegistry); + storageResourceCase_ = 1; + 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 storageResourceCase_ = 0; + private java.lang.Object storageResource_; + + public StorageResourceCase getStorageResourceCase() { + return StorageResourceCase.forNumber(storageResourceCase_); + } + + public Builder clearStorageResource() { + storageResourceCase_ = 0; + storageResource_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.AwsSourceDiskDetails, + com.google.cloud.vmmigration.v1.AwsSourceDiskDetails.Builder, + com.google.cloud.vmmigration.v1.AwsSourceDiskDetailsOrBuilder> + awsDiskDetailsBuilder_; + + /** + * + * + *
        +     * Source AWS volume details.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AwsSourceDiskDetails aws_disk_details = 1; + * + * @return Whether the awsDiskDetails field is set. + */ + @java.lang.Override + public boolean hasAwsDiskDetails() { + return storageResourceCase_ == 1; + } + + /** + * + * + *
        +     * Source AWS volume details.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AwsSourceDiskDetails aws_disk_details = 1; + * + * @return The awsDiskDetails. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.AwsSourceDiskDetails getAwsDiskDetails() { + if (awsDiskDetailsBuilder_ == null) { + if (storageResourceCase_ == 1) { + return (com.google.cloud.vmmigration.v1.AwsSourceDiskDetails) storageResource_; + } + return com.google.cloud.vmmigration.v1.AwsSourceDiskDetails.getDefaultInstance(); + } else { + if (storageResourceCase_ == 1) { + return awsDiskDetailsBuilder_.getMessage(); + } + return com.google.cloud.vmmigration.v1.AwsSourceDiskDetails.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Source AWS volume details.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AwsSourceDiskDetails aws_disk_details = 1; + */ + public Builder setAwsDiskDetails(com.google.cloud.vmmigration.v1.AwsSourceDiskDetails value) { + if (awsDiskDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + storageResource_ = value; + onChanged(); + } else { + awsDiskDetailsBuilder_.setMessage(value); + } + storageResourceCase_ = 1; + return this; + } + + /** + * + * + *
        +     * Source AWS volume details.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AwsSourceDiskDetails aws_disk_details = 1; + */ + public Builder setAwsDiskDetails( + com.google.cloud.vmmigration.v1.AwsSourceDiskDetails.Builder builderForValue) { + if (awsDiskDetailsBuilder_ == null) { + storageResource_ = builderForValue.build(); + onChanged(); + } else { + awsDiskDetailsBuilder_.setMessage(builderForValue.build()); + } + storageResourceCase_ = 1; + return this; + } + + /** + * + * + *
        +     * Source AWS volume details.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AwsSourceDiskDetails aws_disk_details = 1; + */ + public Builder mergeAwsDiskDetails(com.google.cloud.vmmigration.v1.AwsSourceDiskDetails value) { + if (awsDiskDetailsBuilder_ == null) { + if (storageResourceCase_ == 1 + && storageResource_ + != com.google.cloud.vmmigration.v1.AwsSourceDiskDetails.getDefaultInstance()) { + storageResource_ = + com.google.cloud.vmmigration.v1.AwsSourceDiskDetails.newBuilder( + (com.google.cloud.vmmigration.v1.AwsSourceDiskDetails) storageResource_) + .mergeFrom(value) + .buildPartial(); + } else { + storageResource_ = value; + } + onChanged(); + } else { + if (storageResourceCase_ == 1) { + awsDiskDetailsBuilder_.mergeFrom(value); + } else { + awsDiskDetailsBuilder_.setMessage(value); + } + } + storageResourceCase_ = 1; + return this; + } + + /** + * + * + *
        +     * Source AWS volume details.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AwsSourceDiskDetails aws_disk_details = 1; + */ + public Builder clearAwsDiskDetails() { + if (awsDiskDetailsBuilder_ == null) { + if (storageResourceCase_ == 1) { + storageResourceCase_ = 0; + storageResource_ = null; + onChanged(); + } + } else { + if (storageResourceCase_ == 1) { + storageResourceCase_ = 0; + storageResource_ = null; + } + awsDiskDetailsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Source AWS volume details.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AwsSourceDiskDetails aws_disk_details = 1; + */ + public com.google.cloud.vmmigration.v1.AwsSourceDiskDetails.Builder getAwsDiskDetailsBuilder() { + return getAwsDiskDetailsFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Source AWS volume details.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AwsSourceDiskDetails aws_disk_details = 1; + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.AwsSourceDiskDetailsOrBuilder + getAwsDiskDetailsOrBuilder() { + if ((storageResourceCase_ == 1) && (awsDiskDetailsBuilder_ != null)) { + return awsDiskDetailsBuilder_.getMessageOrBuilder(); + } else { + if (storageResourceCase_ == 1) { + return (com.google.cloud.vmmigration.v1.AwsSourceDiskDetails) storageResource_; + } + return com.google.cloud.vmmigration.v1.AwsSourceDiskDetails.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Source AWS volume details.
        +     * 
        + * + * .google.cloud.vmmigration.v1.AwsSourceDiskDetails aws_disk_details = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.AwsSourceDiskDetails, + com.google.cloud.vmmigration.v1.AwsSourceDiskDetails.Builder, + com.google.cloud.vmmigration.v1.AwsSourceDiskDetailsOrBuilder> + getAwsDiskDetailsFieldBuilder() { + if (awsDiskDetailsBuilder_ == null) { + if (!(storageResourceCase_ == 1)) { + storageResource_ = + com.google.cloud.vmmigration.v1.AwsSourceDiskDetails.getDefaultInstance(); + } + awsDiskDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.AwsSourceDiskDetails, + com.google.cloud.vmmigration.v1.AwsSourceDiskDetails.Builder, + com.google.cloud.vmmigration.v1.AwsSourceDiskDetailsOrBuilder>( + (com.google.cloud.vmmigration.v1.AwsSourceDiskDetails) storageResource_, + getParentForChildren(), + isClean()); + storageResource_ = null; + } + storageResourceCase_ = 1; + onChanged(); + return awsDiskDetailsBuilder_; + } + + @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.vmmigration.v1.SourceStorageResource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.SourceStorageResource) + private static final com.google.cloud.vmmigration.v1.SourceStorageResource DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.SourceStorageResource(); + } + + public static com.google.cloud.vmmigration.v1.SourceStorageResource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SourceStorageResource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.SourceStorageResource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/SourceStorageResourceOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/SourceStorageResourceOrBuilder.java new file mode 100644 index 000000000000..82ee521d8ba7 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/SourceStorageResourceOrBuilder.java @@ -0,0 +1,66 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface SourceStorageResourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.SourceStorageResource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Source AWS volume details.
        +   * 
        + * + * .google.cloud.vmmigration.v1.AwsSourceDiskDetails aws_disk_details = 1; + * + * @return Whether the awsDiskDetails field is set. + */ + boolean hasAwsDiskDetails(); + + /** + * + * + *
        +   * Source AWS volume details.
        +   * 
        + * + * .google.cloud.vmmigration.v1.AwsSourceDiskDetails aws_disk_details = 1; + * + * @return The awsDiskDetails. + */ + com.google.cloud.vmmigration.v1.AwsSourceDiskDetails getAwsDiskDetails(); + + /** + * + * + *
        +   * Source AWS volume details.
        +   * 
        + * + * .google.cloud.vmmigration.v1.AwsSourceDiskDetails aws_disk_details = 1; + */ + com.google.cloud.vmmigration.v1.AwsSourceDiskDetailsOrBuilder getAwsDiskDetailsOrBuilder(); + + com.google.cloud.vmmigration.v1.SourceStorageResource.StorageResourceCase + getStorageResourceCase(); +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/TargetProject.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/TargetProject.java index 6e76d558b1df..efa1fe6bebd9 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/TargetProject.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/TargetProject.java @@ -130,10 +130,10 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
        -   * The target project ID (number) or project name.
        +   * Required. The target project ID (number) or project name.
            * 
        * - * string project = 2; + * string project = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The project. */ @@ -154,10 +154,10 @@ public java.lang.String getProject() { * * *
        -   * The target project ID (number) or project name.
        +   * Required. The target project ID (number) or project name.
            * 
        * - * string project = 2; + * string project = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for project. */ @@ -918,10 +918,10 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
        -     * The target project ID (number) or project name.
        +     * Required. The target project ID (number) or project name.
              * 
        * - * string project = 2; + * string project = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The project. */ @@ -941,10 +941,10 @@ public java.lang.String getProject() { * * *
        -     * The target project ID (number) or project name.
        +     * Required. The target project ID (number) or project name.
              * 
        * - * string project = 2; + * string project = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for project. */ @@ -964,10 +964,10 @@ public com.google.protobuf.ByteString getProjectBytes() { * * *
        -     * The target project ID (number) or project name.
        +     * Required. The target project ID (number) or project name.
              * 
        * - * string project = 2; + * string project = 2 [(.google.api.field_behavior) = REQUIRED]; * * @param value The project to set. * @return This builder for chaining. @@ -986,10 +986,10 @@ public Builder setProject(java.lang.String value) { * * *
        -     * The target project ID (number) or project name.
        +     * Required. The target project ID (number) or project name.
              * 
        * - * string project = 2; + * string project = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ @@ -1004,10 +1004,10 @@ public Builder clearProject() { * * *
        -     * The target project ID (number) or project name.
        +     * Required. The target project ID (number) or project name.
              * 
        * - * string project = 2; + * string project = 2 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for project to set. * @return This builder for chaining. diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/TargetProjectOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/TargetProjectOrBuilder.java index 59852d1a666c..f08e3051e09d 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/TargetProjectOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/TargetProjectOrBuilder.java @@ -54,10 +54,10 @@ public interface TargetProjectOrBuilder * * *
        -   * The target project ID (number) or project name.
        +   * Required. The target project ID (number) or project name.
            * 
        * - * string project = 2; + * string project = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The project. */ @@ -67,10 +67,10 @@ public interface TargetProjectOrBuilder * * *
        -   * The target project ID (number) or project name.
        +   * Required. The target project ID (number) or project name.
            * 
        * - * string project = 2; + * string project = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for project. */ diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpdateDiskMigrationJobRequest.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpdateDiskMigrationJobRequest.java new file mode 100644 index 000000000000..a94ab27b7e6e --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpdateDiskMigrationJobRequest.java @@ -0,0 +1,1405 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * Request message for 'UpdateDiskMigrationJob' request.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest} + */ +public final class UpdateDiskMigrationJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest) + UpdateDiskMigrationJobRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UpdateDiskMigrationJobRequest.newBuilder() to construct. + private UpdateDiskMigrationJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateDiskMigrationJobRequest() { + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateDiskMigrationJobRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_UpdateDiskMigrationJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_UpdateDiskMigrationJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest.class, + com.google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest.Builder.class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
        +   * Optional. Field mask is used to specify the fields to be overwritten in the
        +   * DiskMigrationJob resource by the update.
        +   * The fields specified in the update_mask are relative to the resource, not
        +   * the full request. A field will be overwritten if it is in the mask. If the
        +   * user does not provide a mask, then a mask equivalent to all fields that are
        +   * populated (have a non-empty value), will be implied.
        +   * 
        + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
        +   * Optional. Field mask is used to specify the fields to be overwritten in the
        +   * DiskMigrationJob resource by the update.
        +   * The fields specified in the update_mask are relative to the resource, not
        +   * the full request. A field will be overwritten if it is in the mask. If the
        +   * user does not provide a mask, then a mask equivalent to all fields that are
        +   * populated (have a non-empty value), will be implied.
        +   * 
        + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
        +   * Optional. Field mask is used to specify the fields to be overwritten in the
        +   * DiskMigrationJob resource by the update.
        +   * The fields specified in the update_mask are relative to the resource, not
        +   * the full request. A field will be overwritten if it is in the mask. If the
        +   * user does not provide a mask, then a mask equivalent to all fields that are
        +   * populated (have a non-empty value), will be implied.
        +   * 
        + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int DISK_MIGRATION_JOB_FIELD_NUMBER = 2; + private com.google.cloud.vmmigration.v1.DiskMigrationJob diskMigrationJob_; + + /** + * + * + *
        +   * Required. The update request body.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the diskMigrationJob field is set. + */ + @java.lang.Override + public boolean hasDiskMigrationJob() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
        +   * Required. The update request body.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The diskMigrationJob. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.DiskMigrationJob getDiskMigrationJob() { + return diskMigrationJob_ == null + ? com.google.cloud.vmmigration.v1.DiskMigrationJob.getDefaultInstance() + : diskMigrationJob_; + } + + /** + * + * + *
        +   * Required. The update request body.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.DiskMigrationJobOrBuilder getDiskMigrationJobOrBuilder() { + return diskMigrationJob_ == null + ? com.google.cloud.vmmigration.v1.DiskMigrationJob.getDefaultInstance() + : diskMigrationJob_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
        +   * Optional. A request ID to identify requests. Specify a unique request ID
        +   * so that if you must retry your request, the server will know to ignore
        +   * the request if it has already been completed. The server will guarantee
        +   * that for at least 60 minutes since the first request.
        +   *
        +   * For example, consider a situation where you make an initial request and
        +   * the request timed out. If you make the request again with the same request
        +   * ID, the server can check if original operation with the same request ID
        +   * was received, and if so, will ignore the second request. This prevents
        +   * clients from accidentally creating 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. A request ID to identify requests. Specify a unique request ID
        +   * so that if you must retry your request, the server will know to ignore
        +   * the request if it has already been completed. The server will guarantee
        +   * that for at least 60 minutes since the first request.
        +   *
        +   * For example, consider a situation where you make an initial request and
        +   * the request timed out. If you make the request again with the same request
        +   * ID, the server can check if original operation with the same request ID
        +   * was received, and if so, will ignore the second request. This prevents
        +   * clients from accidentally creating 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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getDiskMigrationJob()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDiskMigrationJob()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest other = + (com.google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasDiskMigrationJob() != other.hasDiskMigrationJob()) return false; + if (hasDiskMigrationJob()) { + if (!getDiskMigrationJob().equals(other.getDiskMigrationJob())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasDiskMigrationJob()) { + hash = (37 * hash) + DISK_MIGRATION_JOB_FIELD_NUMBER; + hash = (53 * hash) + getDiskMigrationJob().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest 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.vmmigration.v1.UpdateDiskMigrationJobRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest parseFrom( + 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.vmmigration.v1.UpdateDiskMigrationJobRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest 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.vmmigration.v1.UpdateDiskMigrationJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest 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.vmmigration.v1.UpdateDiskMigrationJobRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest 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.vmmigration.v1.UpdateDiskMigrationJobRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * Request message for 'UpdateDiskMigrationJob' request.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest) + com.google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_UpdateDiskMigrationJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_UpdateDiskMigrationJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest.class, + com.google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getUpdateMaskFieldBuilder(); + getDiskMigrationJobFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + diskMigrationJob_ = null; + if (diskMigrationJobBuilder_ != null) { + diskMigrationJobBuilder_.dispose(); + diskMigrationJobBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_UpdateDiskMigrationJobRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest + getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest build() { + com.google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest buildPartial() { + com.google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest result = + new com.google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.diskMigrationJob_ = + diskMigrationJobBuilder_ == null ? diskMigrationJob_ : diskMigrationJobBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest) { + return mergeFrom((com.google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest other) { + if (other + == com.google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest.getDefaultInstance()) + return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasDiskMigrationJob()) { + mergeDiskMigrationJob(other.getDiskMigrationJob()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getDiskMigrationJobFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = 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 com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
        +     * Optional. Field mask is used to specify the fields to be overwritten in the
        +     * DiskMigrationJob resource by the update.
        +     * The fields specified in the update_mask are relative to the resource, not
        +     * the full request. A field will be overwritten if it is in the mask. If the
        +     * user does not provide a mask, then a mask equivalent to all fields that are
        +     * populated (have a non-empty value), will be implied.
        +     * 
        + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
        +     * Optional. Field mask is used to specify the fields to be overwritten in the
        +     * DiskMigrationJob resource by the update.
        +     * The fields specified in the update_mask are relative to the resource, not
        +     * the full request. A field will be overwritten if it is in the mask. If the
        +     * user does not provide a mask, then a mask equivalent to all fields that are
        +     * populated (have a non-empty value), will be implied.
        +     * 
        + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
        +     * Optional. Field mask is used to specify the fields to be overwritten in the
        +     * DiskMigrationJob resource by the update.
        +     * The fields specified in the update_mask are relative to the resource, not
        +     * the full request. A field will be overwritten if it is in the mask. If the
        +     * user does not provide a mask, then a mask equivalent to all fields that are
        +     * populated (have a non-empty value), will be implied.
        +     * 
        + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Field mask is used to specify the fields to be overwritten in the
        +     * DiskMigrationJob resource by the update.
        +     * The fields specified in the update_mask are relative to the resource, not
        +     * the full request. A field will be overwritten if it is in the mask. If the
        +     * user does not provide a mask, then a mask equivalent to all fields that are
        +     * populated (have a non-empty value), will be implied.
        +     * 
        + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Field mask is used to specify the fields to be overwritten in the
        +     * DiskMigrationJob resource by the update.
        +     * The fields specified in the update_mask are relative to the resource, not
        +     * the full request. A field will be overwritten if it is in the mask. If the
        +     * user does not provide a mask, then a mask equivalent to all fields that are
        +     * populated (have a non-empty value), will be implied.
        +     * 
        + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Optional. Field mask is used to specify the fields to be overwritten in the
        +     * DiskMigrationJob resource by the update.
        +     * The fields specified in the update_mask are relative to the resource, not
        +     * the full request. A field will be overwritten if it is in the mask. If the
        +     * user does not provide a mask, then a mask equivalent to all fields that are
        +     * populated (have a non-empty value), will be implied.
        +     * 
        + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Field mask is used to specify the fields to be overwritten in the
        +     * DiskMigrationJob resource by the update.
        +     * The fields specified in the update_mask are relative to the resource, not
        +     * the full request. A field will be overwritten if it is in the mask. If the
        +     * user does not provide a mask, then a mask equivalent to all fields that are
        +     * populated (have a non-empty value), will be implied.
        +     * 
        + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Optional. Field mask is used to specify the fields to be overwritten in the
        +     * DiskMigrationJob resource by the update.
        +     * The fields specified in the update_mask are relative to the resource, not
        +     * the full request. A field will be overwritten if it is in the mask. If the
        +     * user does not provide a mask, then a mask equivalent to all fields that are
        +     * populated (have a non-empty value), will be implied.
        +     * 
        + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
        +     * Optional. Field mask is used to specify the fields to be overwritten in the
        +     * DiskMigrationJob resource by the update.
        +     * The fields specified in the update_mask are relative to the resource, not
        +     * the full request. A field will be overwritten if it is in the mask. If the
        +     * user does not provide a mask, then a mask equivalent to all fields that are
        +     * populated (have a non-empty value), will be implied.
        +     * 
        + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.vmmigration.v1.DiskMigrationJob diskMigrationJob_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.DiskMigrationJob, + com.google.cloud.vmmigration.v1.DiskMigrationJob.Builder, + com.google.cloud.vmmigration.v1.DiskMigrationJobOrBuilder> + diskMigrationJobBuilder_; + + /** + * + * + *
        +     * Required. The update request body.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the diskMigrationJob field is set. + */ + public boolean hasDiskMigrationJob() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
        +     * Required. The update request body.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The diskMigrationJob. + */ + public com.google.cloud.vmmigration.v1.DiskMigrationJob getDiskMigrationJob() { + if (diskMigrationJobBuilder_ == null) { + return diskMigrationJob_ == null + ? com.google.cloud.vmmigration.v1.DiskMigrationJob.getDefaultInstance() + : diskMigrationJob_; + } else { + return diskMigrationJobBuilder_.getMessage(); + } + } + + /** + * + * + *
        +     * Required. The update request body.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDiskMigrationJob(com.google.cloud.vmmigration.v1.DiskMigrationJob value) { + if (diskMigrationJobBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + diskMigrationJob_ = value; + } else { + diskMigrationJobBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The update request body.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDiskMigrationJob( + com.google.cloud.vmmigration.v1.DiskMigrationJob.Builder builderForValue) { + if (diskMigrationJobBuilder_ == null) { + diskMigrationJob_ = builderForValue.build(); + } else { + diskMigrationJobBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The update request body.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDiskMigrationJob(com.google.cloud.vmmigration.v1.DiskMigrationJob value) { + if (diskMigrationJobBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && diskMigrationJob_ != null + && diskMigrationJob_ + != com.google.cloud.vmmigration.v1.DiskMigrationJob.getDefaultInstance()) { + getDiskMigrationJobBuilder().mergeFrom(value); + } else { + diskMigrationJob_ = value; + } + } else { + diskMigrationJobBuilder_.mergeFrom(value); + } + if (diskMigrationJob_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Required. The update request body.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDiskMigrationJob() { + bitField0_ = (bitField0_ & ~0x00000002); + diskMigrationJob_ = null; + if (diskMigrationJobBuilder_ != null) { + diskMigrationJobBuilder_.dispose(); + diskMigrationJobBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The update request body.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmmigration.v1.DiskMigrationJob.Builder getDiskMigrationJobBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getDiskMigrationJobFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Required. The update request body.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.vmmigration.v1.DiskMigrationJobOrBuilder + getDiskMigrationJobOrBuilder() { + if (diskMigrationJobBuilder_ != null) { + return diskMigrationJobBuilder_.getMessageOrBuilder(); + } else { + return diskMigrationJob_ == null + ? com.google.cloud.vmmigration.v1.DiskMigrationJob.getDefaultInstance() + : diskMigrationJob_; + } + } + + /** + * + * + *
        +     * Required. The update request body.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.DiskMigrationJob, + com.google.cloud.vmmigration.v1.DiskMigrationJob.Builder, + com.google.cloud.vmmigration.v1.DiskMigrationJobOrBuilder> + getDiskMigrationJobFieldBuilder() { + if (diskMigrationJobBuilder_ == null) { + diskMigrationJobBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.DiskMigrationJob, + com.google.cloud.vmmigration.v1.DiskMigrationJob.Builder, + com.google.cloud.vmmigration.v1.DiskMigrationJobOrBuilder>( + getDiskMigrationJob(), getParentForChildren(), isClean()); + diskMigrationJob_ = null; + } + return diskMigrationJobBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
        +     * Optional. A request ID to identify requests. Specify a unique request ID
        +     * so that if you must retry your request, the server will know to ignore
        +     * the request if it has already been completed. The server will guarantee
        +     * that for at least 60 minutes since the first request.
        +     *
        +     * For example, consider a situation where you make an initial request and
        +     * the request timed out. If you make the request again with the same request
        +     * ID, the server can check if original operation with the same request ID
        +     * was received, and if so, will ignore the second request. This prevents
        +     * clients from accidentally creating 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. A request ID to identify requests. Specify a unique request ID
        +     * so that if you must retry your request, the server will know to ignore
        +     * the request if it has already been completed. The server will guarantee
        +     * that for at least 60 minutes since the first request.
        +     *
        +     * For example, consider a situation where you make an initial request and
        +     * the request timed out. If you make the request again with the same request
        +     * ID, the server can check if original operation with the same request ID
        +     * was received, and if so, will ignore the second request. This prevents
        +     * clients from accidentally creating 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. A request ID to identify requests. Specify a unique request ID
        +     * so that if you must retry your request, the server will know to ignore
        +     * the request if it has already been completed. The server will guarantee
        +     * that for at least 60 minutes since the first request.
        +     *
        +     * For example, consider a situation where you make an initial request and
        +     * the request timed out. If you make the request again with the same request
        +     * ID, the server can check if original operation with the same request ID
        +     * was received, and if so, will ignore the second request. This prevents
        +     * clients from accidentally creating 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. A request ID to identify requests. Specify a unique request ID
        +     * so that if you must retry your request, the server will know to ignore
        +     * the request if it has already been completed. The server will guarantee
        +     * that for at least 60 minutes since the first request.
        +     *
        +     * For example, consider a situation where you make an initial request and
        +     * the request timed out. If you make the request again with the same request
        +     * ID, the server can check if original operation with the same request ID
        +     * was received, and if so, will ignore the second request. This prevents
        +     * clients from accidentally creating 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. A request ID to identify requests. Specify a unique request ID
        +     * so that if you must retry your request, the server will know to ignore
        +     * the request if it has already been completed. The server will guarantee
        +     * that for at least 60 minutes since the first request.
        +     *
        +     * For example, consider a situation where you make an initial request and
        +     * the request timed out. If you make the request again with the same request
        +     * ID, the server can check if original operation with the same request ID
        +     * was received, and if so, will ignore the second request. This prevents
        +     * clients from accidentally creating 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; + } + + @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.vmmigration.v1.UpdateDiskMigrationJobRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest) + private static final com.google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest(); + } + + public static com.google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateDiskMigrationJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.UpdateDiskMigrationJobRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpdateDiskMigrationJobRequestOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpdateDiskMigrationJobRequestOrBuilder.java new file mode 100644 index 000000000000..97d8b70c90a9 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpdateDiskMigrationJobRequestOrBuilder.java @@ -0,0 +1,178 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface UpdateDiskMigrationJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Optional. Field mask is used to specify the fields to be overwritten in the
        +   * DiskMigrationJob resource by the update.
        +   * The fields specified in the update_mask are relative to the resource, not
        +   * the full request. A field will be overwritten if it is in the mask. If the
        +   * user does not provide a mask, then a mask equivalent to all fields that are
        +   * populated (have a non-empty value), will be implied.
        +   * 
        + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
        +   * Optional. Field mask is used to specify the fields to be overwritten in the
        +   * DiskMigrationJob resource by the update.
        +   * The fields specified in the update_mask are relative to the resource, not
        +   * the full request. A field will be overwritten if it is in the mask. If the
        +   * user does not provide a mask, then a mask equivalent to all fields that are
        +   * populated (have a non-empty value), will be implied.
        +   * 
        + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
        +   * Optional. Field mask is used to specify the fields to be overwritten in the
        +   * DiskMigrationJob resource by the update.
        +   * The fields specified in the update_mask are relative to the resource, not
        +   * the full request. A field will be overwritten if it is in the mask. If the
        +   * user does not provide a mask, then a mask equivalent to all fields that are
        +   * populated (have a non-empty value), will be implied.
        +   * 
        + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
        +   * Required. The update request body.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the diskMigrationJob field is set. + */ + boolean hasDiskMigrationJob(); + + /** + * + * + *
        +   * Required. The update request body.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The diskMigrationJob. + */ + com.google.cloud.vmmigration.v1.DiskMigrationJob getDiskMigrationJob(); + + /** + * + * + *
        +   * Required. The update request body.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.DiskMigrationJob disk_migration_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.vmmigration.v1.DiskMigrationJobOrBuilder getDiskMigrationJobOrBuilder(); + + /** + * + * + *
        +   * Optional. A request ID to identify requests. Specify a unique request ID
        +   * so that if you must retry your request, the server will know to ignore
        +   * the request if it has already been completed. The server will guarantee
        +   * that for at least 60 minutes since the first request.
        +   *
        +   * For example, consider a situation where you make an initial request and
        +   * the request timed out. If you make the request again with the same request
        +   * ID, the server can check if original operation with the same request ID
        +   * was received, and if so, will ignore the second request. This prevents
        +   * clients from accidentally creating 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. A request ID to identify requests. Specify a unique request ID
        +   * so that if you must retry your request, the server will know to ignore
        +   * the request if it has already been completed. The server will guarantee
        +   * that for at least 60 minutes since the first request.
        +   *
        +   * For example, consider a situation where you make an initial request and
        +   * the request timed out. If you make the request again with the same request
        +   * ID, the server can check if original operation with the same request ID
        +   * was received, and if so, will ignore the second request. This prevents
        +   * clients from accidentally creating 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(); +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpdateGroupRequest.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpdateGroupRequest.java index a9506afa6626..e84844853fae 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpdateGroupRequest.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpdateGroupRequest.java @@ -192,8 +192,8 @@ public com.google.cloud.vmmigration.v1.GroupOrBuilder getGroupOrBuilder() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -228,8 +228,8 @@ public java.lang.String getRequestId() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1114,8 +1114,8 @@ public com.google.cloud.vmmigration.v1.GroupOrBuilder getGroupOrBuilder() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1149,8 +1149,8 @@ public java.lang.String getRequestId() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1184,8 +1184,8 @@ public com.google.protobuf.ByteString getRequestIdBytes() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1218,8 +1218,8 @@ public Builder setRequestId(java.lang.String value) { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1248,8 +1248,8 @@ public Builder clearRequestId() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpdateGroupRequestOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpdateGroupRequestOrBuilder.java index 4327ec4cffe0..0ac29a190eb2 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpdateGroupRequestOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpdateGroupRequestOrBuilder.java @@ -122,8 +122,8 @@ public interface UpdateGroupRequestOrBuilder * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -147,8 +147,8 @@ public interface UpdateGroupRequestOrBuilder * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpdateMigratingVmRequest.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpdateMigratingVmRequest.java index 0721c08c5dbd..f9a78fd9ac15 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpdateMigratingVmRequest.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpdateMigratingVmRequest.java @@ -199,8 +199,8 @@ public com.google.cloud.vmmigration.v1.MigratingVmOrBuilder getMigratingVmOrBuil * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -235,8 +235,8 @@ public java.lang.String getRequestId() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1137,8 +1137,8 @@ public com.google.cloud.vmmigration.v1.MigratingVmOrBuilder getMigratingVmOrBuil * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1172,8 +1172,8 @@ public java.lang.String getRequestId() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1207,8 +1207,8 @@ public com.google.protobuf.ByteString getRequestIdBytes() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1241,8 +1241,8 @@ public Builder setRequestId(java.lang.String value) { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1271,8 +1271,8 @@ public Builder clearRequestId() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpdateMigratingVmRequestOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpdateMigratingVmRequestOrBuilder.java index 706b320b43c0..ebab77227b43 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpdateMigratingVmRequestOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpdateMigratingVmRequestOrBuilder.java @@ -125,8 +125,8 @@ public interface UpdateMigratingVmRequestOrBuilder * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -150,8 +150,8 @@ public interface UpdateMigratingVmRequestOrBuilder * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpdateSourceRequest.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpdateSourceRequest.java index fa46b39430b5..fe0c2923f145 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpdateSourceRequest.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpdateSourceRequest.java @@ -192,8 +192,8 @@ public com.google.cloud.vmmigration.v1.SourceOrBuilder getSourceOrBuilder() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -228,8 +228,8 @@ public java.lang.String getRequestId() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1127,8 +1127,8 @@ public com.google.cloud.vmmigration.v1.SourceOrBuilder getSourceOrBuilder() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1162,8 +1162,8 @@ public java.lang.String getRequestId() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1197,8 +1197,8 @@ public com.google.protobuf.ByteString getRequestIdBytes() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1231,8 +1231,8 @@ public Builder setRequestId(java.lang.String value) { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1261,8 +1261,8 @@ public Builder clearRequestId() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpdateSourceRequestOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpdateSourceRequestOrBuilder.java index f6a3020873e2..225b35518f5f 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpdateSourceRequestOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpdateSourceRequestOrBuilder.java @@ -122,8 +122,8 @@ public interface UpdateSourceRequestOrBuilder * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -147,8 +147,8 @@ public interface UpdateSourceRequestOrBuilder * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpdateTargetProjectRequest.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpdateTargetProjectRequest.java index 381d2f2f5842..a652e053fd19 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpdateTargetProjectRequest.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpdateTargetProjectRequest.java @@ -199,8 +199,8 @@ public com.google.cloud.vmmigration.v1.TargetProjectOrBuilder getTargetProjectOr * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -235,8 +235,8 @@ public java.lang.String getRequestId() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1138,8 +1138,8 @@ public com.google.cloud.vmmigration.v1.TargetProjectOrBuilder getTargetProjectOr * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1173,8 +1173,8 @@ public java.lang.String getRequestId() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1208,8 +1208,8 @@ public com.google.protobuf.ByteString getRequestIdBytes() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1242,8 +1242,8 @@ public Builder setRequestId(java.lang.String value) { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -1272,8 +1272,8 @@ public Builder clearRequestId() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpdateTargetProjectRequestOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpdateTargetProjectRequestOrBuilder.java index 519d3dca91f2..8040b2bf9fe7 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpdateTargetProjectRequestOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpdateTargetProjectRequestOrBuilder.java @@ -125,8 +125,8 @@ public interface UpdateTargetProjectRequestOrBuilder * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -150,8 +150,8 @@ public interface UpdateTargetProjectRequestOrBuilder * the request if it has already been completed. The server will guarantee * that for at least 60 minutes since the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpgradeApplianceRequest.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpgradeApplianceRequest.java index b7ba3af5e65c..47cd11a15600 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpgradeApplianceRequest.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpgradeApplianceRequest.java @@ -136,8 +136,8 @@ public com.google.protobuf.ByteString getDatacenterConnectorBytes() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes after the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -172,8 +172,8 @@ public java.lang.String getRequestId() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes after the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -699,8 +699,8 @@ public Builder setDatacenterConnectorBytes(com.google.protobuf.ByteString value) * the request if it has already been completed. The server will guarantee * that for at least 60 minutes after the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -734,8 +734,8 @@ public java.lang.String getRequestId() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes after the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -769,8 +769,8 @@ public com.google.protobuf.ByteString getRequestIdBytes() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes after the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -803,8 +803,8 @@ public Builder setRequestId(java.lang.String value) { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes after the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -833,8 +833,8 @@ public Builder clearRequestId() { * the request if it has already been completed. The server will guarantee * that for at least 60 minutes after the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpgradeApplianceRequestOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpgradeApplianceRequestOrBuilder.java index c15f84ebc3d7..25eec73e6325 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpgradeApplianceRequestOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpgradeApplianceRequestOrBuilder.java @@ -63,8 +63,8 @@ public interface UpgradeApplianceRequestOrBuilder * the request if it has already been completed. The server will guarantee * that for at least 60 minutes after the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. @@ -88,8 +88,8 @@ public interface UpgradeApplianceRequestOrBuilder * the request if it has already been completed. The server will guarantee * that for at least 60 minutes after the first request. * - * For example, consider a situation where you make an initial request and t - * he request times out. If you make the request again with the same request + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same request * ID, the server can check if original operation with the same request ID * was received, and if so, will ignore the second request. This prevents * clients from accidentally creating duplicate commitments. diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpgradeStatus.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpgradeStatus.java index 5b9914699c8e..29df3ea97549 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpgradeStatus.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpgradeStatus.java @@ -348,10 +348,11 @@ public com.google.cloud.vmmigration.v1.UpgradeStatus.State getState() { * * *
        -   * Provides details on the state of the upgrade operation in case of an error.
        +   * Output only. Provides details on the state of the upgrade operation in case
        +   * of an error.
            * 
        * - * .google.rpc.Status error = 3; + * .google.rpc.Status error = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the error field is set. */ @@ -364,10 +365,11 @@ public boolean hasError() { * * *
        -   * Provides details on the state of the upgrade operation in case of an error.
        +   * Output only. Provides details on the state of the upgrade operation in case
        +   * of an error.
            * 
        * - * .google.rpc.Status error = 3; + * .google.rpc.Status error = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The error. */ @@ -380,10 +382,11 @@ public com.google.rpc.Status getError() { * * *
        -   * Provides details on the state of the upgrade operation in case of an error.
        +   * Output only. Provides details on the state of the upgrade operation in case
        +   * of an error.
            * 
        * - * .google.rpc.Status error = 3; + * .google.rpc.Status error = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { @@ -1175,10 +1178,11 @@ public Builder clearState() { * * *
        -     * Provides details on the state of the upgrade operation in case of an error.
        +     * Output only. Provides details on the state of the upgrade operation in case
        +     * of an error.
              * 
        * - * .google.rpc.Status error = 3; + * .google.rpc.Status error = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the error field is set. */ @@ -1190,10 +1194,11 @@ public boolean hasError() { * * *
        -     * Provides details on the state of the upgrade operation in case of an error.
        +     * Output only. Provides details on the state of the upgrade operation in case
        +     * of an error.
              * 
        * - * .google.rpc.Status error = 3; + * .google.rpc.Status error = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The error. */ @@ -1209,10 +1214,11 @@ public com.google.rpc.Status getError() { * * *
        -     * Provides details on the state of the upgrade operation in case of an error.
        +     * Output only. Provides details on the state of the upgrade operation in case
        +     * of an error.
              * 
        * - * .google.rpc.Status error = 3; + * .google.rpc.Status error = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setError(com.google.rpc.Status value) { if (errorBuilder_ == null) { @@ -1232,10 +1238,11 @@ public Builder setError(com.google.rpc.Status value) { * * *
        -     * Provides details on the state of the upgrade operation in case of an error.
        +     * Output only. Provides details on the state of the upgrade operation in case
        +     * of an error.
              * 
        * - * .google.rpc.Status error = 3; + * .google.rpc.Status error = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setError(com.google.rpc.Status.Builder builderForValue) { if (errorBuilder_ == null) { @@ -1252,10 +1259,11 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { * * *
        -     * Provides details on the state of the upgrade operation in case of an error.
        +     * Output only. Provides details on the state of the upgrade operation in case
        +     * of an error.
              * 
        * - * .google.rpc.Status error = 3; + * .google.rpc.Status error = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeError(com.google.rpc.Status value) { if (errorBuilder_ == null) { @@ -1280,10 +1288,11 @@ public Builder mergeError(com.google.rpc.Status value) { * * *
        -     * Provides details on the state of the upgrade operation in case of an error.
        +     * Output only. Provides details on the state of the upgrade operation in case
        +     * of an error.
              * 
        * - * .google.rpc.Status error = 3; + * .google.rpc.Status error = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearError() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1300,10 +1309,11 @@ public Builder clearError() { * * *
        -     * Provides details on the state of the upgrade operation in case of an error.
        +     * Output only. Provides details on the state of the upgrade operation in case
        +     * of an error.
              * 
        * - * .google.rpc.Status error = 3; + * .google.rpc.Status error = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.Status.Builder getErrorBuilder() { bitField0_ |= 0x00000004; @@ -1315,10 +1325,11 @@ public com.google.rpc.Status.Builder getErrorBuilder() { * * *
        -     * Provides details on the state of the upgrade operation in case of an error.
        +     * Output only. Provides details on the state of the upgrade operation in case
        +     * of an error.
              * 
        * - * .google.rpc.Status error = 3; + * .google.rpc.Status error = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { @@ -1332,10 +1343,11 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { * * *
        -     * Provides details on the state of the upgrade operation in case of an error.
        +     * Output only. Provides details on the state of the upgrade operation in case
        +     * of an error.
              * 
        * - * .google.rpc.Status error = 3; + * .google.rpc.Status error = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpgradeStatusOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpgradeStatusOrBuilder.java index d5199d0c1fa8..7b4d5c89d4e8 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpgradeStatusOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UpgradeStatusOrBuilder.java @@ -80,10 +80,11 @@ public interface UpgradeStatusOrBuilder * * *
        -   * Provides details on the state of the upgrade operation in case of an error.
        +   * Output only. Provides details on the state of the upgrade operation in case
        +   * of an error.
            * 
        * - * .google.rpc.Status error = 3; + * .google.rpc.Status error = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the error field is set. */ @@ -93,10 +94,11 @@ public interface UpgradeStatusOrBuilder * * *
        -   * Provides details on the state of the upgrade operation in case of an error.
        +   * Output only. Provides details on the state of the upgrade operation in case
        +   * of an error.
            * 
        * - * .google.rpc.Status error = 3; + * .google.rpc.Status error = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The error. */ @@ -106,10 +108,11 @@ public interface UpgradeStatusOrBuilder * * *
        -   * Provides details on the state of the upgrade operation in case of an error.
        +   * Output only. Provides details on the state of the upgrade operation in case
        +   * of an error.
            * 
        * - * .google.rpc.Status error = 3; + * .google.rpc.Status error = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.rpc.StatusOrBuilder getErrorOrBuilder(); diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UtilizationReportView.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UtilizationReportView.java index a0040cb3c9fd..b3b82008836b 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UtilizationReportView.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UtilizationReportView.java @@ -162,7 +162,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.vmmigration.v1.VmMigrationProto.getDescriptor().getEnumTypes().get(0); + return com.google.cloud.vmmigration.v1.VmMigrationProto.getDescriptor().getEnumTypes().get(5); } private static final UtilizationReportView[] VALUES = values(); diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmArchitecture.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmArchitecture.java new file mode 100644 index 000000000000..794e26d09ab0 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmArchitecture.java @@ -0,0 +1,179 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * Possible values for the VM architecture.
        + * 
        + * + * Protobuf enum {@code google.cloud.vmmigration.v1.VmArchitecture} + */ +public enum VmArchitecture implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
        +   * The architecture is unknown.
        +   * 
        + * + * VM_ARCHITECTURE_UNSPECIFIED = 0; + */ + VM_ARCHITECTURE_UNSPECIFIED(0), + /** + * + * + *
        +   * The architecture is one of the x86 architectures.
        +   * 
        + * + * VM_ARCHITECTURE_X86_FAMILY = 1; + */ + VM_ARCHITECTURE_X86_FAMILY(1), + /** + * + * + *
        +   * The architecture is ARM64.
        +   * 
        + * + * VM_ARCHITECTURE_ARM64 = 2; + */ + VM_ARCHITECTURE_ARM64(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
        +   * The architecture is unknown.
        +   * 
        + * + * VM_ARCHITECTURE_UNSPECIFIED = 0; + */ + public static final int VM_ARCHITECTURE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
        +   * The architecture is one of the x86 architectures.
        +   * 
        + * + * VM_ARCHITECTURE_X86_FAMILY = 1; + */ + public static final int VM_ARCHITECTURE_X86_FAMILY_VALUE = 1; + + /** + * + * + *
        +   * The architecture is ARM64.
        +   * 
        + * + * VM_ARCHITECTURE_ARM64 = 2; + */ + public static final int VM_ARCHITECTURE_ARM64_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 VmArchitecture 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 VmArchitecture forNumber(int value) { + switch (value) { + case 0: + return VM_ARCHITECTURE_UNSPECIFIED; + case 1: + return VM_ARCHITECTURE_X86_FAMILY; + case 2: + return VM_ARCHITECTURE_ARM64; + 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 VmArchitecture findValueByNumber(int number) { + return VmArchitecture.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.vmmigration.v1.VmMigrationProto.getDescriptor().getEnumTypes().get(7); + } + + private static final VmArchitecture[] VALUES = values(); + + public static VmArchitecture 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 VmArchitecture(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.vmmigration.v1.VmArchitecture) +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmAttachmentDetails.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmAttachmentDetails.java new file mode 100644 index 000000000000..e2440f776535 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmAttachmentDetails.java @@ -0,0 +1,669 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * Details for attachment of the disk to a VM.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.VmAttachmentDetails} + */ +public final class VmAttachmentDetails extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.VmAttachmentDetails) + VmAttachmentDetailsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use VmAttachmentDetails.newBuilder() to construct. + private VmAttachmentDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private VmAttachmentDetails() { + deviceName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VmAttachmentDetails(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_VmAttachmentDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_VmAttachmentDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.VmAttachmentDetails.class, + com.google.cloud.vmmigration.v1.VmAttachmentDetails.Builder.class); + } + + public static final int DEVICE_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object deviceName_ = ""; + + /** + * + * + *
        +   * Optional. Specifies a unique device name of your choice that is reflected
        +   * into the /dev/disk/by-id/google-* tree of a Linux operating system running
        +   * within the instance. If not specified, the server chooses a default device
        +   * name to apply to this disk, in the form persistent-disk-x, where x is a
        +   * number assigned by Google Compute Engine. This field is only applicable for
        +   * persistent disks.
        +   * 
        + * + * string device_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The deviceName. + */ + @java.lang.Override + public java.lang.String getDeviceName() { + java.lang.Object ref = deviceName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deviceName_ = s; + return s; + } + } + + /** + * + * + *
        +   * Optional. Specifies a unique device name of your choice that is reflected
        +   * into the /dev/disk/by-id/google-* tree of a Linux operating system running
        +   * within the instance. If not specified, the server chooses a default device
        +   * name to apply to this disk, in the form persistent-disk-x, where x is a
        +   * number assigned by Google Compute Engine. This field is only applicable for
        +   * persistent disks.
        +   * 
        + * + * string device_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for deviceName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDeviceNameBytes() { + java.lang.Object ref = deviceName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deviceName_ = 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(deviceName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, deviceName_); + } + 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(deviceName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, deviceName_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.vmmigration.v1.VmAttachmentDetails)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.VmAttachmentDetails other = + (com.google.cloud.vmmigration.v1.VmAttachmentDetails) obj; + + if (!getDeviceName().equals(other.getDeviceName())) 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) + DEVICE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDeviceName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.VmAttachmentDetails parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.VmAttachmentDetails 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.vmmigration.v1.VmAttachmentDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.VmAttachmentDetails parseFrom( + 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.vmmigration.v1.VmAttachmentDetails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.VmAttachmentDetails parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.VmAttachmentDetails parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.VmAttachmentDetails 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.vmmigration.v1.VmAttachmentDetails parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.VmAttachmentDetails 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.vmmigration.v1.VmAttachmentDetails parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.VmAttachmentDetails 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.vmmigration.v1.VmAttachmentDetails prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 for attachment of the disk to a VM.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.VmAttachmentDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.VmAttachmentDetails) + com.google.cloud.vmmigration.v1.VmAttachmentDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_VmAttachmentDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_VmAttachmentDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.VmAttachmentDetails.class, + com.google.cloud.vmmigration.v1.VmAttachmentDetails.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.VmAttachmentDetails.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + deviceName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_VmAttachmentDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.VmAttachmentDetails getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.VmAttachmentDetails.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.VmAttachmentDetails build() { + com.google.cloud.vmmigration.v1.VmAttachmentDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.VmAttachmentDetails buildPartial() { + com.google.cloud.vmmigration.v1.VmAttachmentDetails result = + new com.google.cloud.vmmigration.v1.VmAttachmentDetails(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vmmigration.v1.VmAttachmentDetails result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.deviceName_ = deviceName_; + } + } + + @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.vmmigration.v1.VmAttachmentDetails) { + return mergeFrom((com.google.cloud.vmmigration.v1.VmAttachmentDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.VmAttachmentDetails other) { + if (other == com.google.cloud.vmmigration.v1.VmAttachmentDetails.getDefaultInstance()) + return this; + if (!other.getDeviceName().isEmpty()) { + deviceName_ = other.deviceName_; + 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: + { + deviceName_ = 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 deviceName_ = ""; + + /** + * + * + *
        +     * Optional. Specifies a unique device name of your choice that is reflected
        +     * into the /dev/disk/by-id/google-* tree of a Linux operating system running
        +     * within the instance. If not specified, the server chooses a default device
        +     * name to apply to this disk, in the form persistent-disk-x, where x is a
        +     * number assigned by Google Compute Engine. This field is only applicable for
        +     * persistent disks.
        +     * 
        + * + * string device_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The deviceName. + */ + public java.lang.String getDeviceName() { + java.lang.Object ref = deviceName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deviceName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Optional. Specifies a unique device name of your choice that is reflected
        +     * into the /dev/disk/by-id/google-* tree of a Linux operating system running
        +     * within the instance. If not specified, the server chooses a default device
        +     * name to apply to this disk, in the form persistent-disk-x, where x is a
        +     * number assigned by Google Compute Engine. This field is only applicable for
        +     * persistent disks.
        +     * 
        + * + * string device_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for deviceName. + */ + public com.google.protobuf.ByteString getDeviceNameBytes() { + java.lang.Object ref = deviceName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deviceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Optional. Specifies a unique device name of your choice that is reflected
        +     * into the /dev/disk/by-id/google-* tree of a Linux operating system running
        +     * within the instance. If not specified, the server chooses a default device
        +     * name to apply to this disk, in the form persistent-disk-x, where x is a
        +     * number assigned by Google Compute Engine. This field is only applicable for
        +     * persistent disks.
        +     * 
        + * + * string device_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The deviceName to set. + * @return This builder for chaining. + */ + public Builder setDeviceName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + deviceName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Specifies a unique device name of your choice that is reflected
        +     * into the /dev/disk/by-id/google-* tree of a Linux operating system running
        +     * within the instance. If not specified, the server chooses a default device
        +     * name to apply to this disk, in the form persistent-disk-x, where x is a
        +     * number assigned by Google Compute Engine. This field is only applicable for
        +     * persistent disks.
        +     * 
        + * + * string device_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDeviceName() { + deviceName_ = getDefaultInstance().getDeviceName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Specifies a unique device name of your choice that is reflected
        +     * into the /dev/disk/by-id/google-* tree of a Linux operating system running
        +     * within the instance. If not specified, the server chooses a default device
        +     * name to apply to this disk, in the form persistent-disk-x, where x is a
        +     * number assigned by Google Compute Engine. This field is only applicable for
        +     * persistent disks.
        +     * 
        + * + * string device_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for deviceName to set. + * @return This builder for chaining. + */ + public Builder setDeviceNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + deviceName_ = 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.vmmigration.v1.VmAttachmentDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.VmAttachmentDetails) + private static final com.google.cloud.vmmigration.v1.VmAttachmentDetails DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.VmAttachmentDetails(); + } + + public static com.google.cloud.vmmigration.v1.VmAttachmentDetails getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VmAttachmentDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.VmAttachmentDetails getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmAttachmentDetailsOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmAttachmentDetailsOrBuilder.java new file mode 100644 index 000000000000..1122e1a9edb3 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmAttachmentDetailsOrBuilder.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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface VmAttachmentDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.VmAttachmentDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Optional. Specifies a unique device name of your choice that is reflected
        +   * into the /dev/disk/by-id/google-* tree of a Linux operating system running
        +   * within the instance. If not specified, the server chooses a default device
        +   * name to apply to this disk, in the form persistent-disk-x, where x is a
        +   * number assigned by Google Compute Engine. This field is only applicable for
        +   * persistent disks.
        +   * 
        + * + * string device_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The deviceName. + */ + java.lang.String getDeviceName(); + + /** + * + * + *
        +   * Optional. Specifies a unique device name of your choice that is reflected
        +   * into the /dev/disk/by-id/google-* tree of a Linux operating system running
        +   * within the instance. If not specified, the server chooses a default device
        +   * name to apply to this disk, in the form persistent-disk-x, where x is a
        +   * number assigned by Google Compute Engine. This field is only applicable for
        +   * persistent disks.
        +   * 
        + * + * string device_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for deviceName. + */ + com.google.protobuf.ByteString getDeviceNameBytes(); +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmCapabilities.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmCapabilities.java new file mode 100644 index 000000000000..fee57b132a61 --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmCapabilities.java @@ -0,0 +1,1227 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * Migrating VM source information about the VM capabilities needed for some
        + * Compute Engine features.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.VmCapabilities} + */ +public final class VmCapabilities extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.VmCapabilities) + VmCapabilitiesOrBuilder { + private static final long serialVersionUID = 0L; + + // Use VmCapabilities.newBuilder() to construct. + private VmCapabilities(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private VmCapabilities() { + osCapabilities_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VmCapabilities(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_VmCapabilities_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_VmCapabilities_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.VmCapabilities.class, + com.google.cloud.vmmigration.v1.VmCapabilities.Builder.class); + } + + private int bitField0_; + public static final int OS_CAPABILITIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List osCapabilities_; + + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.vmmigration.v1.OsCapability> + osCapabilities_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.vmmigration.v1.OsCapability>() { + public com.google.cloud.vmmigration.v1.OsCapability convert(java.lang.Integer from) { + com.google.cloud.vmmigration.v1.OsCapability result = + com.google.cloud.vmmigration.v1.OsCapability.forNumber(from); + return result == null + ? com.google.cloud.vmmigration.v1.OsCapability.UNRECOGNIZED + : result; + } + }; + + /** + * + * + *
        +   * Output only. Unordered list. List of certain VM OS capabilities needed for
        +   * some Compute Engine features.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.OsCapability os_capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = UNORDERED_LIST]; + * + * + * @return A list containing the osCapabilities. + */ + @java.lang.Override + public java.util.List getOsCapabilitiesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.vmmigration.v1.OsCapability>( + osCapabilities_, osCapabilities_converter_); + } + + /** + * + * + *
        +   * Output only. Unordered list. List of certain VM OS capabilities needed for
        +   * some Compute Engine features.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.OsCapability os_capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = UNORDERED_LIST]; + * + * + * @return The count of osCapabilities. + */ + @java.lang.Override + public int getOsCapabilitiesCount() { + return osCapabilities_.size(); + } + + /** + * + * + *
        +   * Output only. Unordered list. List of certain VM OS capabilities needed for
        +   * some Compute Engine features.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.OsCapability os_capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = UNORDERED_LIST]; + * + * + * @param index The index of the element to return. + * @return The osCapabilities at the given index. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.OsCapability getOsCapabilities(int index) { + return osCapabilities_converter_.convert(osCapabilities_.get(index)); + } + + /** + * + * + *
        +   * Output only. Unordered list. List of certain VM OS capabilities needed for
        +   * some Compute Engine features.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.OsCapability os_capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = UNORDERED_LIST]; + * + * + * @return A list containing the enum numeric values on the wire for osCapabilities. + */ + @java.lang.Override + public java.util.List getOsCapabilitiesValueList() { + return osCapabilities_; + } + + /** + * + * + *
        +   * Output only. Unordered list. List of certain VM OS capabilities needed for
        +   * some Compute Engine features.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.OsCapability os_capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = UNORDERED_LIST]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of osCapabilities at the given index. + */ + @java.lang.Override + public int getOsCapabilitiesValue(int index) { + return osCapabilities_.get(index); + } + + private int osCapabilitiesMemoizedSerializedSize; + + public static final int LAST_OS_CAPABILITIES_UPDATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp lastOsCapabilitiesUpdateTime_; + + /** + * + * + *
        +   * Output only. The last time OS capabilities list was updated.
        +   * 
        + * + * + * .google.protobuf.Timestamp last_os_capabilities_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the lastOsCapabilitiesUpdateTime field is set. + */ + @java.lang.Override + public boolean hasLastOsCapabilitiesUpdateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
        +   * Output only. The last time OS capabilities list was updated.
        +   * 
        + * + * + * .google.protobuf.Timestamp last_os_capabilities_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lastOsCapabilitiesUpdateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getLastOsCapabilitiesUpdateTime() { + return lastOsCapabilitiesUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastOsCapabilitiesUpdateTime_; + } + + /** + * + * + *
        +   * Output only. The last time OS capabilities list was updated.
        +   * 
        + * + * + * .google.protobuf.Timestamp last_os_capabilities_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getLastOsCapabilitiesUpdateTimeOrBuilder() { + return lastOsCapabilitiesUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastOsCapabilitiesUpdateTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (getOsCapabilitiesList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(osCapabilitiesMemoizedSerializedSize); + } + for (int i = 0; i < osCapabilities_.size(); i++) { + output.writeEnumNoTag(osCapabilities_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getLastOsCapabilitiesUpdateTime()); + } + 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 < osCapabilities_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(osCapabilities_.get(i)); + } + size += dataSize; + if (!getOsCapabilitiesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + osCapabilitiesMemoizedSerializedSize = dataSize; + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getLastOsCapabilitiesUpdateTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.vmmigration.v1.VmCapabilities)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.VmCapabilities other = + (com.google.cloud.vmmigration.v1.VmCapabilities) obj; + + if (!osCapabilities_.equals(other.osCapabilities_)) return false; + if (hasLastOsCapabilitiesUpdateTime() != other.hasLastOsCapabilitiesUpdateTime()) return false; + if (hasLastOsCapabilitiesUpdateTime()) { + if (!getLastOsCapabilitiesUpdateTime().equals(other.getLastOsCapabilitiesUpdateTime())) + 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 (getOsCapabilitiesCount() > 0) { + hash = (37 * hash) + OS_CAPABILITIES_FIELD_NUMBER; + hash = (53 * hash) + osCapabilities_.hashCode(); + } + if (hasLastOsCapabilitiesUpdateTime()) { + hash = (37 * hash) + LAST_OS_CAPABILITIES_UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getLastOsCapabilitiesUpdateTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.VmCapabilities parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.VmCapabilities 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.vmmigration.v1.VmCapabilities parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.VmCapabilities parseFrom( + 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.vmmigration.v1.VmCapabilities parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.VmCapabilities parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.VmCapabilities parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.VmCapabilities 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.vmmigration.v1.VmCapabilities parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.VmCapabilities 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.vmmigration.v1.VmCapabilities parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.VmCapabilities 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.vmmigration.v1.VmCapabilities prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
        +   * Migrating VM source information about the VM capabilities needed for some
        +   * Compute Engine features.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.VmCapabilities} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.VmCapabilities) + com.google.cloud.vmmigration.v1.VmCapabilitiesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_VmCapabilities_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_VmCapabilities_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.VmCapabilities.class, + com.google.cloud.vmmigration.v1.VmCapabilities.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.VmCapabilities.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getLastOsCapabilitiesUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + osCapabilities_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + lastOsCapabilitiesUpdateTime_ = null; + if (lastOsCapabilitiesUpdateTimeBuilder_ != null) { + lastOsCapabilitiesUpdateTimeBuilder_.dispose(); + lastOsCapabilitiesUpdateTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_VmCapabilities_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.VmCapabilities getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.VmCapabilities.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.VmCapabilities build() { + com.google.cloud.vmmigration.v1.VmCapabilities result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.VmCapabilities buildPartial() { + com.google.cloud.vmmigration.v1.VmCapabilities result = + new com.google.cloud.vmmigration.v1.VmCapabilities(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.vmmigration.v1.VmCapabilities result) { + if (((bitField0_ & 0x00000001) != 0)) { + osCapabilities_ = java.util.Collections.unmodifiableList(osCapabilities_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.osCapabilities_ = osCapabilities_; + } + + private void buildPartial0(com.google.cloud.vmmigration.v1.VmCapabilities result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.lastOsCapabilitiesUpdateTime_ = + lastOsCapabilitiesUpdateTimeBuilder_ == null + ? lastOsCapabilitiesUpdateTime_ + : lastOsCapabilitiesUpdateTimeBuilder_.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.vmmigration.v1.VmCapabilities) { + return mergeFrom((com.google.cloud.vmmigration.v1.VmCapabilities) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.VmCapabilities other) { + if (other == com.google.cloud.vmmigration.v1.VmCapabilities.getDefaultInstance()) return this; + if (!other.osCapabilities_.isEmpty()) { + if (osCapabilities_.isEmpty()) { + osCapabilities_ = other.osCapabilities_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureOsCapabilitiesIsMutable(); + osCapabilities_.addAll(other.osCapabilities_); + } + onChanged(); + } + if (other.hasLastOsCapabilitiesUpdateTime()) { + mergeLastOsCapabilitiesUpdateTime(other.getLastOsCapabilitiesUpdateTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + int tmpRaw = input.readEnum(); + ensureOsCapabilitiesIsMutable(); + osCapabilities_.add(tmpRaw); + break; + } // case 8 + case 10: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureOsCapabilitiesIsMutable(); + osCapabilities_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 10 + case 18: + { + input.readMessage( + getLastOsCapabilitiesUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List osCapabilities_ = java.util.Collections.emptyList(); + + private void ensureOsCapabilitiesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + osCapabilities_ = new java.util.ArrayList(osCapabilities_); + bitField0_ |= 0x00000001; + } + } + + /** + * + * + *
        +     * Output only. Unordered list. List of certain VM OS capabilities needed for
        +     * some Compute Engine features.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.OsCapability os_capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = UNORDERED_LIST]; + * + * + * @return A list containing the osCapabilities. + */ + public java.util.List getOsCapabilitiesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.vmmigration.v1.OsCapability>( + osCapabilities_, osCapabilities_converter_); + } + + /** + * + * + *
        +     * Output only. Unordered list. List of certain VM OS capabilities needed for
        +     * some Compute Engine features.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.OsCapability os_capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = UNORDERED_LIST]; + * + * + * @return The count of osCapabilities. + */ + public int getOsCapabilitiesCount() { + return osCapabilities_.size(); + } + + /** + * + * + *
        +     * Output only. Unordered list. List of certain VM OS capabilities needed for
        +     * some Compute Engine features.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.OsCapability os_capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = UNORDERED_LIST]; + * + * + * @param index The index of the element to return. + * @return The osCapabilities at the given index. + */ + public com.google.cloud.vmmigration.v1.OsCapability getOsCapabilities(int index) { + return osCapabilities_converter_.convert(osCapabilities_.get(index)); + } + + /** + * + * + *
        +     * Output only. Unordered list. List of certain VM OS capabilities needed for
        +     * some Compute Engine features.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.OsCapability os_capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = UNORDERED_LIST]; + * + * + * @param index The index to set the value at. + * @param value The osCapabilities to set. + * @return This builder for chaining. + */ + public Builder setOsCapabilities( + int index, com.google.cloud.vmmigration.v1.OsCapability value) { + if (value == null) { + throw new NullPointerException(); + } + ensureOsCapabilitiesIsMutable(); + osCapabilities_.set(index, value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. Unordered list. List of certain VM OS capabilities needed for
        +     * some Compute Engine features.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.OsCapability os_capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = UNORDERED_LIST]; + * + * + * @param value The osCapabilities to add. + * @return This builder for chaining. + */ + public Builder addOsCapabilities(com.google.cloud.vmmigration.v1.OsCapability value) { + if (value == null) { + throw new NullPointerException(); + } + ensureOsCapabilitiesIsMutable(); + osCapabilities_.add(value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. Unordered list. List of certain VM OS capabilities needed for
        +     * some Compute Engine features.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.OsCapability os_capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = UNORDERED_LIST]; + * + * + * @param values The osCapabilities to add. + * @return This builder for chaining. + */ + public Builder addAllOsCapabilities( + java.lang.Iterable values) { + ensureOsCapabilitiesIsMutable(); + for (com.google.cloud.vmmigration.v1.OsCapability value : values) { + osCapabilities_.add(value.getNumber()); + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. Unordered list. List of certain VM OS capabilities needed for
        +     * some Compute Engine features.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.OsCapability os_capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = UNORDERED_LIST]; + * + * + * @return This builder for chaining. + */ + public Builder clearOsCapabilities() { + osCapabilities_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. Unordered list. List of certain VM OS capabilities needed for
        +     * some Compute Engine features.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.OsCapability os_capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = UNORDERED_LIST]; + * + * + * @return A list containing the enum numeric values on the wire for osCapabilities. + */ + public java.util.List getOsCapabilitiesValueList() { + return java.util.Collections.unmodifiableList(osCapabilities_); + } + + /** + * + * + *
        +     * Output only. Unordered list. List of certain VM OS capabilities needed for
        +     * some Compute Engine features.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.OsCapability os_capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = UNORDERED_LIST]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of osCapabilities at the given index. + */ + public int getOsCapabilitiesValue(int index) { + return osCapabilities_.get(index); + } + + /** + * + * + *
        +     * Output only. Unordered list. List of certain VM OS capabilities needed for
        +     * some Compute Engine features.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.OsCapability os_capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = UNORDERED_LIST]; + * + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for osCapabilities to set. + * @return This builder for chaining. + */ + public Builder setOsCapabilitiesValue(int index, int value) { + ensureOsCapabilitiesIsMutable(); + osCapabilities_.set(index, value); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. Unordered list. List of certain VM OS capabilities needed for
        +     * some Compute Engine features.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.OsCapability os_capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = UNORDERED_LIST]; + * + * + * @param value The enum numeric value on the wire for osCapabilities to add. + * @return This builder for chaining. + */ + public Builder addOsCapabilitiesValue(int value) { + ensureOsCapabilitiesIsMutable(); + osCapabilities_.add(value); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. Unordered list. List of certain VM OS capabilities needed for
        +     * some Compute Engine features.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.OsCapability os_capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = UNORDERED_LIST]; + * + * + * @param values The enum numeric values on the wire for osCapabilities to add. + * @return This builder for chaining. + */ + public Builder addAllOsCapabilitiesValue(java.lang.Iterable values) { + ensureOsCapabilitiesIsMutable(); + for (int value : values) { + osCapabilities_.add(value); + } + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp lastOsCapabilitiesUpdateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + lastOsCapabilitiesUpdateTimeBuilder_; + + /** + * + * + *
        +     * Output only. The last time OS capabilities list was updated.
        +     * 
        + * + * + * .google.protobuf.Timestamp last_os_capabilities_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the lastOsCapabilitiesUpdateTime field is set. + */ + public boolean hasLastOsCapabilitiesUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
        +     * Output only. The last time OS capabilities list was updated.
        +     * 
        + * + * + * .google.protobuf.Timestamp last_os_capabilities_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lastOsCapabilitiesUpdateTime. + */ + public com.google.protobuf.Timestamp getLastOsCapabilitiesUpdateTime() { + if (lastOsCapabilitiesUpdateTimeBuilder_ == null) { + return lastOsCapabilitiesUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastOsCapabilitiesUpdateTime_; + } else { + return lastOsCapabilitiesUpdateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
        +     * Output only. The last time OS capabilities list was updated.
        +     * 
        + * + * + * .google.protobuf.Timestamp last_os_capabilities_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLastOsCapabilitiesUpdateTime(com.google.protobuf.Timestamp value) { + if (lastOsCapabilitiesUpdateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + lastOsCapabilitiesUpdateTime_ = value; + } else { + lastOsCapabilitiesUpdateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The last time OS capabilities list was updated.
        +     * 
        + * + * + * .google.protobuf.Timestamp last_os_capabilities_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLastOsCapabilitiesUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (lastOsCapabilitiesUpdateTimeBuilder_ == null) { + lastOsCapabilitiesUpdateTime_ = builderForValue.build(); + } else { + lastOsCapabilitiesUpdateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The last time OS capabilities list was updated.
        +     * 
        + * + * + * .google.protobuf.Timestamp last_os_capabilities_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeLastOsCapabilitiesUpdateTime(com.google.protobuf.Timestamp value) { + if (lastOsCapabilitiesUpdateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && lastOsCapabilitiesUpdateTime_ != null + && lastOsCapabilitiesUpdateTime_ + != com.google.protobuf.Timestamp.getDefaultInstance()) { + getLastOsCapabilitiesUpdateTimeBuilder().mergeFrom(value); + } else { + lastOsCapabilitiesUpdateTime_ = value; + } + } else { + lastOsCapabilitiesUpdateTimeBuilder_.mergeFrom(value); + } + if (lastOsCapabilitiesUpdateTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Output only. The last time OS capabilities list was updated.
        +     * 
        + * + * + * .google.protobuf.Timestamp last_os_capabilities_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearLastOsCapabilitiesUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + lastOsCapabilitiesUpdateTime_ = null; + if (lastOsCapabilitiesUpdateTimeBuilder_ != null) { + lastOsCapabilitiesUpdateTimeBuilder_.dispose(); + lastOsCapabilitiesUpdateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The last time OS capabilities list was updated.
        +     * 
        + * + * + * .google.protobuf.Timestamp last_os_capabilities_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getLastOsCapabilitiesUpdateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getLastOsCapabilitiesUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Output only. The last time OS capabilities list was updated.
        +     * 
        + * + * + * .google.protobuf.Timestamp last_os_capabilities_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getLastOsCapabilitiesUpdateTimeOrBuilder() { + if (lastOsCapabilitiesUpdateTimeBuilder_ != null) { + return lastOsCapabilitiesUpdateTimeBuilder_.getMessageOrBuilder(); + } else { + return lastOsCapabilitiesUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastOsCapabilitiesUpdateTime_; + } + } + + /** + * + * + *
        +     * Output only. The last time OS capabilities list was updated.
        +     * 
        + * + * + * .google.protobuf.Timestamp last_os_capabilities_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getLastOsCapabilitiesUpdateTimeFieldBuilder() { + if (lastOsCapabilitiesUpdateTimeBuilder_ == null) { + lastOsCapabilitiesUpdateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getLastOsCapabilitiesUpdateTime(), getParentForChildren(), isClean()); + lastOsCapabilitiesUpdateTime_ = null; + } + return lastOsCapabilitiesUpdateTimeBuilder_; + } + + @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.vmmigration.v1.VmCapabilities) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.VmCapabilities) + private static final com.google.cloud.vmmigration.v1.VmCapabilities DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.VmCapabilities(); + } + + public static com.google.cloud.vmmigration.v1.VmCapabilities getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VmCapabilities parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.VmCapabilities getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmCapabilitiesOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmCapabilitiesOrBuilder.java new file mode 100644 index 000000000000..87123ae03e6c --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmCapabilitiesOrBuilder.java @@ -0,0 +1,151 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface VmCapabilitiesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.VmCapabilities) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Output only. Unordered list. List of certain VM OS capabilities needed for
        +   * some Compute Engine features.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.OsCapability os_capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = UNORDERED_LIST]; + * + * + * @return A list containing the osCapabilities. + */ + java.util.List getOsCapabilitiesList(); + + /** + * + * + *
        +   * Output only. Unordered list. List of certain VM OS capabilities needed for
        +   * some Compute Engine features.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.OsCapability os_capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = UNORDERED_LIST]; + * + * + * @return The count of osCapabilities. + */ + int getOsCapabilitiesCount(); + + /** + * + * + *
        +   * Output only. Unordered list. List of certain VM OS capabilities needed for
        +   * some Compute Engine features.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.OsCapability os_capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = UNORDERED_LIST]; + * + * + * @param index The index of the element to return. + * @return The osCapabilities at the given index. + */ + com.google.cloud.vmmigration.v1.OsCapability getOsCapabilities(int index); + + /** + * + * + *
        +   * Output only. Unordered list. List of certain VM OS capabilities needed for
        +   * some Compute Engine features.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.OsCapability os_capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = UNORDERED_LIST]; + * + * + * @return A list containing the enum numeric values on the wire for osCapabilities. + */ + java.util.List getOsCapabilitiesValueList(); + + /** + * + * + *
        +   * Output only. Unordered list. List of certain VM OS capabilities needed for
        +   * some Compute Engine features.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.OsCapability os_capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = UNORDERED_LIST]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of osCapabilities at the given index. + */ + int getOsCapabilitiesValue(int index); + + /** + * + * + *
        +   * Output only. The last time OS capabilities list was updated.
        +   * 
        + * + * + * .google.protobuf.Timestamp last_os_capabilities_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the lastOsCapabilitiesUpdateTime field is set. + */ + boolean hasLastOsCapabilitiesUpdateTime(); + + /** + * + * + *
        +   * Output only. The last time OS capabilities list was updated.
        +   * 
        + * + * + * .google.protobuf.Timestamp last_os_capabilities_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lastOsCapabilitiesUpdateTime. + */ + com.google.protobuf.Timestamp getLastOsCapabilitiesUpdateTime(); + + /** + * + * + *
        +   * Output only. The last time OS capabilities list was updated.
        +   * 
        + * + * + * .google.protobuf.Timestamp last_os_capabilities_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getLastOsCapabilitiesUpdateTimeOrBuilder(); +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmMigrationProto.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmMigrationProto.java index 73164feac816..21fd6b070ede 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmMigrationProto.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmMigrationProto.java @@ -56,10 +56,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_vmmigration_v1_MigratingVm_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_vmmigration_v1_MigratingVm_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_MigratingVm_Expiration_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_MigratingVm_Expiration_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_vmmigration_v1_MigratingVm_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_vmmigration_v1_MigratingVm_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_CutoverForecast_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_CutoverForecast_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_vmmigration_v1_CloneJob_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -124,6 +132,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_vmmigration_v1_Source_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_vmmigration_v1_Source_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_Encryption_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_Encryption_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_vmmigration_v1_VmwareSourceDetails_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -144,6 +156,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_vmmigration_v1_AwsSourceDetails_MigrationResourcesUserTagsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_vmmigration_v1_AwsSourceDetails_MigrationResourcesUserTagsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_AzureSourceDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_AzureSourceDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_AzureSourceDetails_ClientSecretCredentials_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_AzureSourceDetails_ClientSecretCredentials_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_AzureSourceDetails_MigrationResourcesUserTagsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_AzureSourceDetails_MigrationResourcesUserTagsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_vmmigration_v1_DatacenterConnector_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -204,6 +228,26 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_vmmigration_v1_AwsSecurityGroup_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_vmmigration_v1_AwsSecurityGroup_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_AzureVmDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_AzureVmDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_AzureVmDetails_OSDisk_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_AzureVmDetails_OSDisk_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_AzureVmDetails_Disk_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_AzureVmDetails_Disk_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_AzureVmDetails_OSDescription_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_AzureVmDetails_OSDescription_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_AzureVmDetails_TagsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_AzureVmDetails_TagsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_vmmigration_v1_VmwareVmsDetails_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -212,10 +256,26 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_vmmigration_v1_AwsVmsDetails_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_vmmigration_v1_AwsVmsDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_AzureVmsDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_AzureVmsDetails_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_vmmigration_v1_FetchInventoryResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_vmmigration_v1_FetchInventoryResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_FetchStorageInventoryRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_FetchStorageInventoryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_FetchStorageInventoryResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_FetchStorageInventoryResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_SourceStorageResource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_SourceStorageResource_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_vmmigration_v1_UtilizationReport_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -316,6 +376,62 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_vmmigration_v1_ComputeScheduling_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_vmmigration_v1_ComputeScheduling_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_ComputeEngineDisksTargetDefaults_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_ComputeEngineDisksTargetDefaults_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_PersistentDiskDefaults_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_PersistentDiskDefaults_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_PersistentDiskDefaults_AdditionalLabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_PersistentDiskDefaults_AdditionalLabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_VmAttachmentDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_VmAttachmentDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_DisksMigrationDisksTargetDefaults_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_DisksMigrationDisksTargetDefaults_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_DisksMigrationVmTargetDefaults_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_DisksMigrationVmTargetDefaults_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_DisksMigrationVmTargetDefaults_MetadataEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_DisksMigrationVmTargetDefaults_MetadataEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_DisksMigrationVmTargetDefaults_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_DisksMigrationVmTargetDefaults_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_BootDiskDefaults_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_BootDiskDefaults_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_BootDiskDefaults_DiskImageDefaults_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_BootDiskDefaults_DiskImageDefaults_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_ComputeEngineDisksTargetDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_ComputeEngineDisksTargetDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_PersistentDisk_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_PersistentDisk_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_DisksMigrationDisksTargetDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_DisksMigrationDisksTargetDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_DisksMigrationVmTargetDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_DisksMigrationVmTargetDetails_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_vmmigration_v1_SchedulePolicy_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -372,6 +488,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_vmmigration_v1_FinalizeMigrationRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_vmmigration_v1_FinalizeMigrationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_ExtendMigrationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_ExtendMigrationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_ExtendMigrationResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_ExtendMigrationResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_vmmigration_v1_FinalizeMigrationResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -480,10 +604,34 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_vmmigration_v1_MigrationError_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_vmmigration_v1_MigrationError_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_MigrationWarning_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_MigrationWarning_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_VmwareSourceVmDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_VmwareSourceVmDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_VmwareSourceVmDetails_VmwareDiskDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_VmwareSourceVmDetails_VmwareDiskDetails_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_vmmigration_v1_AwsSourceVmDetails_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_vmmigration_v1_AwsSourceVmDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_AwsSourceVmDetails_AwsDiskDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_AwsSourceVmDetails_AwsDiskDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_AzureSourceVmDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_AzureSourceVmDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_AzureSourceVmDetails_AzureDiskDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_AzureSourceVmDetails_AzureDiskDetails_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_vmmigration_v1_ListReplicationCyclesRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -496,6 +644,194 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_vmmigration_v1_GetReplicationCycleRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_vmmigration_v1_GetReplicationCycleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_VmCapabilities_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_VmCapabilities_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_ImageImport_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_ImageImport_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_ImageImportJob_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_ImageImportJob_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_ImageImportStep_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_ImageImportStep_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_InitializingImageImportStep_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_InitializingImageImportStep_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_LoadingImageSourceFilesStep_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_LoadingImageSourceFilesStep_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_CreatingImageStep_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_CreatingImageStep_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_DiskImageTargetDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_DiskImageTargetDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_DiskImageTargetDetails_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_DiskImageTargetDetails_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_MachineImageTargetDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_MachineImageTargetDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_MachineImageTargetDetails_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_MachineImageTargetDetails_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_ServiceAccount_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_ServiceAccount_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_ShieldedInstanceConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_ShieldedInstanceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_MachineImageParametersOverrides_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_MachineImageParametersOverrides_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_ImageImportOsAdaptationParameters_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_ImageImportOsAdaptationParameters_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_DataDiskImageImport_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_DataDiskImageImport_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_SkipOsAdaptation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_SkipOsAdaptation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_GetImageImportRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_GetImageImportRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_ListImageImportsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_ListImageImportsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_ListImageImportsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_ListImageImportsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_CreateImageImportRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_CreateImageImportRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_DeleteImageImportRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_DeleteImageImportRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_GetImageImportJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_GetImageImportJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_ListImageImportJobsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_ListImageImportJobsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_ListImageImportJobsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_ListImageImportJobsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_CancelImageImportJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_CancelImageImportJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_CancelImageImportJobResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_CancelImageImportJobResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_DiskMigrationJob_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_DiskMigrationJob_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_DiskMigrationJobTargetDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_DiskMigrationJobTargetDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_DiskMigrationJobTargetDetails_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_DiskMigrationJobTargetDetails_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_DiskMigrationStep_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_DiskMigrationStep_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_CreatingSourceDiskSnapshotStep_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_CreatingSourceDiskSnapshotStep_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_CopyingSourceDiskSnapshotStep_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_CopyingSourceDiskSnapshotStep_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_ProvisioningTargetDiskStep_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_ProvisioningTargetDiskStep_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_ComputeEngineDisk_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_ComputeEngineDisk_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_AwsSourceDiskDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_AwsSourceDiskDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_AwsSourceDiskDetails_TagsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_AwsSourceDiskDetails_TagsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_CreateDiskMigrationJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_CreateDiskMigrationJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_ListDiskMigrationJobsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_ListDiskMigrationJobsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_ListDiskMigrationJobsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_ListDiskMigrationJobsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_GetDiskMigrationJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_GetDiskMigrationJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_UpdateDiskMigrationJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_UpdateDiskMigrationJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_DeleteDiskMigrationJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_DeleteDiskMigrationJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_RunDiskMigrationJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_RunDiskMigrationJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_RunDiskMigrationJobResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_RunDiskMigrationJobResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_CancelDiskMigrationJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_CancelDiskMigrationJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vmmigration_v1_CancelDiskMigrationJobResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vmmigration_v1_CancelDiskMigrationJobResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -510,10 +846,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "n.proto\022\033google.cloud.vmmigration.v1\032\034go" + "ogle/api/annotations.proto\032\027google/api/c" + "lient.proto\032\037google/api/field_behavior.p" - + "roto\032\031google/api/resource.proto\032#google/" - + "longrunning/operations.proto\032\036google/protobuf/duration.proto\032" - + " google/protobuf/field_mask.proto\032\037google/protobuf/timestam" - + "p.proto\032\036google/rpc/error_details.proto\032\027google/rpc/status.proto\"\215\005\n" + + "roto\032\033google/api/field_info.proto\032\031googl" + + "e/api/resource.proto\032#google/longrunning" + + "/operations.proto\032\036google/protobuf/duration.proto\032\033google/protobuf/empty.proto\032" + + " google/protobuf/field_mask.proto\032\037google" + + "/protobuf/timestamp.proto\032\036google/rpc/er" + + "ror_details.proto\032\027google/rpc/status.proto\"\330\005\n" + "\020ReplicationCycle\022\014\n" + "\004name\030\r" + " \001(\t\022\024\n" @@ -524,25 +862,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024total_pause_duration\030\007 \001(\0132\031.google.protobuf.Duration\022\034\n" + "\020progress_percent\030\005 \001(\005B\002\030\001\0225\n" + "\005steps\030\t \003(\0132&.google.cloud.vmmigration.v1.CycleStep\022B\n" - + "\005state\030\013" - + " \001(\01623.google.cloud.vmmigration.v1.ReplicationCycle.State\022!\n" - + "\005error\030\014 \001(\0132\022.google.rpc.Status\"R\n" + + "\005state\030\013 \001(\01623.google." + + "cloud.vmmigration.v1.ReplicationCycle.State\022&\n" + + "\005error\030\014 \001(\0132\022.google.rpc.StatusB\003\340A\003\022D\n" + + "\010warnings\030\016" + + " \003(\0132-.google.cloud.vmmigration.v1.MigrationWarningB\003\340A\003\"R\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\013\n" - + "\007RUNNING\020\001\022\n\n" + + "\007RUNNING\020\001\022\n" + + "\n" + "\006PAUSED\020\002\022\n\n" + "\006FAILED\020\003\022\r\n" + "\tSUCCEEDED\020\004:\255\001\352A\251\001\n" - + "+vmmigration.googleapis.com/ReplicationCycle\022zpr" - + "ojects/{project}/locations/{location}/sources/{source}/migratingVms/{migrating_v" - + "m}/replicationCycles/{replication_cycle}\"\340\002\n" + + "+vmmigration.googleapis.com/ReplicationCycle\022zprojects/{project}/locations/" + + "{location}/sources/{source}/migratingVms" + + "/{migrating_vm}/replicationCycles/{replication_cycle}\"\340\002\n" + "\tCycleStep\022\\\n" - + "\030initializing_replication\030\003" - + " \001(\01328.google.cloud.vmmigration.v1.InitializingReplicationStepH\000\022C\n" + + "\030initializing_replication\030\003 \001(\01328.google.cloud.vmm" + + "igration.v1.InitializingReplicationStepH\000\022C\n" + "\013replicating\030\004" + " \001(\0132,.google.cloud.vmmigration.v1.ReplicatingStepH\000\022J\n" - + "\017post_processing\030\005 \001" - + "(\0132/.google.cloud.vmmigration.v1.PostProcessingStepH\000\022.\n\n" + + "\017post_processing\030\005" + + " \001(\0132/.google.cloud.vmmigration.v1.PostProcessingStepH\000\022.\n\n" + "start_time\030\001 \001(\0132\032.google.protobuf.Timestamp\022,\n" + "\010end_time\030\002 \001(\0132\032.google.protobuf.TimestampB\006\n" + "\004step\"\035\n" @@ -554,12 +895,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ",last_thirty_minutes_average_bytes_per_second\030\004 \001(\003\"\024\n" + "\022PostProcessingStep\"E\n" + "\017ReplicationSync\0222\n" - + "\016last_sync_time\030\001 \001(\0132\032.google.protobuf.Timestamp\"\244\013\n" + + "\016last_sync_time\030\001 \001(\0132\032.google.protobuf.Timestamp\"\331\020\n" + "\013MigratingVm\022b\n" - + "\036compute_engine_target_defaults\030\032 \001(\01328.google.clo" - + "ud.vmmigration.v1.ComputeEngineTargetDefaultsH\000\022U\n" - + "\025aws_source_vm_details\030\035 \001(\0132/" - + ".google.cloud.vmmigration.v1.AwsSourceVmDetailsB\003\340A\003H\001\022\021\n" + + "\036compute_engine_target_defaults\030\032 \001(\013" + + "28.google.cloud.vmmigration.v1.ComputeEngineTargetDefaultsH\000\022m\n" + + "$compute_engine_disks_target_defaults\030\" \001(\0132=.google.clou" + + "d.vmmigration.v1.ComputeEngineDisksTargetDefaultsH\000\022[\n" + + "\030vmware_source_vm_details\030\034" + + " \001(\01322.google.cloud.vmmigration.v1.VmwareSourceVmDetailsB\003\340A\003H\001\022U\n" + + "\025aws_source_vm_details\030\035" + + " \001(\0132/.google.cloud.vmmigration.v1.AwsSourceVmDetailsB\003\340A\003H\001\022Y\n" + + "\027azure_source_vm_details\030\036 \001(\01321.google.cloud." + + "vmmigration.v1.AzureSourceVmDetailsB\003\340A\003H\001\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\024\n" + "\014source_vm_id\030\002 \001(\t\022\024\n" + "\014display_name\030\022 \001(\t\022\023\n" @@ -568,26 +915,37 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013create_time\030\t \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\n" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022D\n" - + "\tlast_sync\030\013" - + " \001(\0132,.google.cloud.vmmigration.v1.ReplicationSyncB\003\340A\003\022B\n" - + "\005state\030\027 \001(\0162..googl" - + "e.cloud.vmmigration.v1.MigratingVm.StateB\003\340A\003\0223\n\n" + + "\tlast_sync\030\013 \001(\0132,.goo" + + "gle.cloud.vmmigration.v1.ReplicationSyncB\003\340A\003\022B\n" + + "\005state\030\027" + + " \001(\0162..google.cloud.vmmigration.v1.MigratingVm.StateB\003\340A\003\0223\n\n" + "state_time\030\026 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022M\n" + "\021current_sync_info\030\r" - + " \001(\0132-.google.cloud.vmmigration.v1.ReplicationCycleB\003\340A\003\0227\n" + + " \001(\0132-.google.cloud.vmmigration.v1.ReplicationCycleB\003\340A\003\022R\n" + + "\026last_replication_cycle\030 \001(\0132-." + + "google.cloud.vmmigration.v1.ReplicationCycleB\003\340A\003\0227\n" + "\005group\030\017 \001(\tB(\340A\003\372A\"\022" + " vmmigration.googleapis.com/Group\022D\n" - + "\006labels\030\020" - + " \003(\01324.google.cloud.vmmigration.v1.MigratingVm.LabelsEntry\022E\n" - + "\021recent_clone_jobs\030\021" - + " \003(\0132%.google.cloud.vmmigration.v1.CloneJobB\003\340A\003\022&\n" + + "\006labels\030\020 \003" + + "(\01324.google.cloud.vmmigration.v1.MigratingVm.LabelsEntry\022E\n" + + "\021recent_clone_jobs\030\021 " + + "\003(\0132%.google.cloud.vmmigration.v1.CloneJobB\003\340A\003\022&\n" + "\005error\030\023 \001(\0132\022.google.rpc.StatusB\003\340A\003\022I\n" - + "\023recent_cutover_jobs\030\024" - + " \003(\0132\'.google.cloud.vmmigration.v1.CutoverJobB\003\340A\003\032-\n" - + "\013LabelsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r" + + "\023recent_cutover_jobs\030\024 \003(\0132\'.g" + + "oogle.cloud.vmmigration.v1.CutoverJobB\003\340A\003\022K\n" + + "\020cutover_forecast\030! \001(\0132,.google.cl" + + "oud.vmmigration.v1.CutoverForecastB\003\340A\003\022L\n\n" + + "expiration\030%" + + " \001(\01323.google.cloud.vmmigration.v1.MigratingVm.ExpirationB\003\340A\003\032y\n" + "\n" - + "\005value\030\002 \001(\t:\0028\001\"\267\001\n" + + "Expiration\0224\n" + + "\013expire_time\030\001" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\034\n" + + "\017extension_count\030\002 \001(\005B\003\340A\003\022\027\n\n" + + "extendable\030\003 \001(\010B\003\340A\003\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"\333\001\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\013\n" + "\007PENDING\020\001\022\t\n" @@ -602,19 +960,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "FINALIZING\020\013\022\r\n" + "\tFINALIZED\020\014\022\t\n" + "\005ERROR\020\r" - + ":\201\001\352A~\n" - + "&vmmigration.googleapis.com/MigratingVm\022Tprojects/{project}/locations/" - + "{location}/sources/{source}/migratingVms/{migrating_vm}B\024\n" + + "\022\013\n" + + "\007EXPIRED\020\016\022\025\n" + + "\021FINALIZED_EXPIRED\020\021:\201\001\352A~\n" + + "&vmmigration.googleapis.com/MigratingVm\022Tpro" + + "jects/{project}/locations/{location}/sou" + + "rces/{source}/migratingVms/{migrating_vm}B\024\n" + "\022target_vm_defaultsB\023\n" - + "\021source_vm_details\"\371\005\n" + + "\021source_vm_details\"Y\n" + + "\017CutoverForecast\022F\n" + + "\036estimated_cutover_job_duration\030\001" + + " \001(\0132\031.google.protobuf.DurationB\003\340A\003\"\353\006\n" + "\010CloneJob\022e\n" - + "\035compute_engine_target_details\030\024 \001(\01327.google." - + "cloud.vmmigration.v1.ComputeEngineTargetDetailsB\003\340A\003H\000\0224\n" + + "\035compute_engine_target_details\030\024 \001(\01327.google.clo" + + "ud.vmmigration.v1.ComputeEngineTargetDetailsB\003\340A\003H\000\022p\n" + + "#compute_engine_disks_target_details\030\031 \001(\0132<.google.cloud.vmmigrat" + + "ion.v1.ComputeEngineDisksTargetDetailsB\003\340A\003H\000\0224\n" + "\013create_time\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0221\n" + "\010end_time\030\026 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\021\n" + "\004name\030\003 \001(\tB\003\340A\003\022?\n" - + "\005state\030\014 \001(\0162+.goog" - + "le.cloud.vmmigration.v1.CloneJob.StateB\003\340A\003\0223\n\n" + + "\005state\030\014" + + " \001(\0162+.google.cloud.vmmigration.v1.CloneJob.StateB\003\340A\003\0223\n\n" + "state_time\030\016 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022&\n" + "\005error\030\021 \001(\0132\022.google.rpc.StatusB\003\340A\003\022:\n" + "\005steps\030\027" @@ -628,39 +994,40 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tCANCELLED\020\005\022\016\n\n" + "CANCELLING\020\006\022\017\n" + "\013ADAPTING_OS\020\007:\225\001\352A\221\001\n" - + "#vmmigration.googleapis.com/CloneJob\022jprojects/{project}/locati" - + "ons/{location}/sources/{source}/migratin" - + "gVms/{migrating_vm}/cloneJobs/{clone_job}B\023\n" + + "#vmmigration.googleapis.com/CloneJob\022jprojects/{project}/locations/{loca" + + "tion}/sources/{source}/migratingVms/{migrating_vm}/cloneJobs/{clone_job}B\023\n" + "\021target_vm_details\"\345\002\n" + "\tCloneStep\022B\n" + "\013adapting_os\030\003" + " \001(\0132+.google.cloud.vmmigration.v1.AdaptingOSStepH\000\022O\n" - + "\022preparing_vm_disks\030\004" - + " \001(\01321.google.cloud.vmmigration.v1.PreparingVMDisksStepH\000\022]\n" - + "\031instantiating_migrated_vm\030\005 \001(\01328.google.cloud.vmmi" - + "gration.v1.InstantiatingMigratedVMStepH\000\022.\n\n" + + "\022preparing_vm_disks\030\004 " + + "\001(\01321.google.cloud.vmmigration.v1.PreparingVMDisksStepH\000\022]\n" + + "\031instantiating_migrated_vm\030\005" + + " \001(\01328.google.cloud.vmmigration.v1.InstantiatingMigratedVMStepH\000\022.\n\n" + "start_time\030\001 \001(\0132\032.google.protobuf.Timestamp\022,\n" + "\010end_time\030\002 \001(\0132\032.google.protobuf.TimestampB\006\n" + "\004step\"\020\n" + "\016AdaptingOSStep\"\026\n" + "\024PreparingVMDisksStep\"\035\n" - + "\033InstantiatingMigratedVMStep\"\300\006\n\n" + + "\033InstantiatingMigratedVMStep\"\262\007\n\n" + "CutoverJob\022e\n" - + "\035compute_engine_target_details\030\016 \001(\01327.google.c" - + "loud.vmmigration.v1.ComputeEngineTargetDetailsB\003\340A\003H\000\0224\n" + + "\035compute_engine_target_details\030\016 \001(\01327.google.cloud.vmmi" + + "gration.v1.ComputeEngineTargetDetailsB\003\340A\003H\000\022p\n" + + "#compute_engine_disks_target_details\030\024 \001(\0132<.google.cloud.vmmigration.v1." + + "ComputeEngineDisksTargetDetailsB\003\340A\003H\000\0224\n" + "\013create_time\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0221\n" + "\010end_time\030\020 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\021\n" + "\004name\030\003 \001(\tB\003\340A\003\022A\n" - + "\005state\030\005 \001(\0162-.googl" - + "e.cloud.vmmigration.v1.CutoverJob.StateB\003\340A\003\0223\n\n" + + "\005state\030\005" + + " \001(\0162-.google.cloud.vmmigration.v1.CutoverJob.StateB\003\340A\003\0223\n\n" + "state_time\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\035\n" + "\020progress_percent\030\r" + " \001(\005B\003\340A\003\022&\n" + "\005error\030\t \001(\0132\022.google.rpc.StatusB\003\340A\003\022\032\n\r" + "state_message\030\n" + " \001(\tB\003\340A\003\022<\n" - + "\005steps\030\021" - + " \003(\0132(.google.cloud.vmmigration.v1.CutoverStepB\003\340A\003\"\202\001\n" + + "\005steps\030\021 \003(\0132(.g" + + "oogle.cloud.vmmigration.v1.CutoverStepB\003\340A\003\"\202\001\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\013\n" + "\007PENDING\020\001\022\n\n" @@ -670,20 +1037,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "CANCELLING\020\005\022\n\n" + "\006ACTIVE\020\006\022\017\n" + "\013ADAPTING_OS\020\007:\233\001\352A\227\001\n" - + "%vmmigration.googleapis.com/CutoverJob\022nprojects/{project}/locations/{location}/s" - + "ources/{source}/migratingVms/{migrating_vm}/cutoverJobs/{cutover_job}B\023\n" + + "%vmmigration.googleapis.com/CutoverJob\022nprojects/{projec" + + "t}/locations/{location}/sources/{source}" + + "/migratingVms/{migrating_vm}/cutoverJobs/{cutover_job}B\023\n" + "\021target_vm_details\"\227\004\n" + "\013CutoverStep\022S\n" + "\032previous_replication_cycle\030\003" + " \001(\0132-.google.cloud.vmmigration.v1.ReplicationCycleH\000\022X\n" - + "\027shutting_down_source_vm\030\004 \001(\01325.google.cloud." - + "vmmigration.v1.ShuttingDownSourceVMStepH\000\022C\n\n" + + "\027shutting_down_source_vm\030\004" + + " \001(\01325.google.cloud.vmmigration.v1.ShuttingDownSourceVMStepH\000\022C\n\n" + "final_sync\030\005" + " \001(\0132-.google.cloud.vmmigration.v1.ReplicationCycleH\000\022O\n" - + "\022preparing_vm_disks\030\006" - + " \001(\01321.google.cloud.vmmigration.v1.PreparingVMDisksStepH\000\022]\n" - + "\031instantiating_migrated_vm\030\007 \001(\01328.google.clou" - + "d.vmmigration.v1.InstantiatingMigratedVMStepH\000\022.\n\n" + + "\022preparing_vm_disks\030\006 " + + "\001(\01321.google.cloud.vmmigration.v1.PreparingVMDisksStepH\000\022]\n" + + "\031instantiating_migrated_vm\030\007" + + " \001(\01328.google.cloud.vmmigration.v1.InstantiatingMigratedVMStepH\000\022.\n\n" + "start_time\030\001 \001(\0132\032.google.protobuf.Timestamp\022,\n" + "\010end_time\030\002 \001(\0132\032.google.protobuf.TimestampB\006\n" + "\004step\"\032\n" @@ -713,49 +1081,81 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013unreachable\030\003 \003(\tB\003\340A\003\"O\n" + "\022GetCloneJobRequest\0229\n" + "\004name\030\001 \001(\tB+\340A\002\372A%\n" - + "#vmmigration.googleapis.com/CloneJob\"\202\004\n" + + "#vmmigration.googleapis.com/CloneJob\"\211\005\n" + "\006Source\022B\n" + "\006vmware\030\n" + " \001(\01320.google.cloud.vmmigration.v1.VmwareSourceDetailsH\000\022<\n" - + "\003aws\030\014" - + " \001(\0132-.google.cloud.vmmigration.v1.AwsSourceDetailsH\000\022\021\n" + + "\003aws\030\014 \001(\0132-.google.cloud.vmmigration.v1.AwsSourceDetailsH\000\022@\n" + + "\005azure\030\r" + + " \001(\0132/.google.cloud.vmmigration.v1.AzureSourceDetailsH\000\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\0224\n" + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022?\n" + "\006labels\030\004" + " \003(\0132/.google.cloud.vmmigration.v1.Source.LabelsEntry\022\023\n" - + "\013description\030\006 \001(\t\032-\n" + + "\013description\030\006 \001(\t\022C\n\n" + + "encryption\030\016 \001(\0132\'.goo" + + "gle.cloud.vmmigration.v1.EncryptionB\006\340A\001\340A\005\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:`\352A]\n" + "!vmmigration.googleapis." + "com/Source\0228projects/{project}/locations/{location}/sources/{source}B\020\n" - + "\016source_details\"f\n" + + "\016source_details\"H\n\n" + + "Encryption\022:\n" + + "\007kms_key\030\001 \001(\tB)\340A\002\372A#\n" + + "!cloudkms.googleapis.com/CryptoKey\"\205\001\n" + "\023VmwareSourceDetails\022\020\n" + "\010username\030\001 \001(\t\022\025\n" + "\010password\030\002 \001(\tB\003\340A\004\022\022\n\n" + "vcenter_ip\030\003 \001(\t\022\022\n\n" - + "thumbprint\030\004 \001(\t\"\217\006\n" + + "thumbprint\030\004 \001(\t\022\035\n" + + "\025resolved_vcenter_host\030\005 \001(\t\"\265\006\n" + "\020AwsSourceDetails\022^\n" - + "\020access_key_creds\030\013 \001(\0132B." - + "google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentialsH\000\022\027\n\n" + + "\020access_key_creds\030\013 \001(\0132B.google.cloud.v" + + "mmigration.v1.AwsSourceDetails.AccessKeyCredentialsH\000\022\027\n\n" + "aws_region\030\003 \001(\tB\003\340A\005\022G\n" - + "\005state\030\004 \001(\01623.google.clo" - + "ud.vmmigration.v1.AwsSourceDetails.StateB\003\340A\003\022&\n" + + "\005state\030\004" + + " \001(\01623.google.cloud.vmmigration.v1.AwsSourceDetails.StateB\003\340A\003\022&\n" + "\005error\030\005 \001(\0132\022.google.rpc.StatusB\003\340A\003\022M\n" + "\022inventory_tag_list\030\n" + " \003(\01321.google.cloud.vmmigration.v1.AwsSourceDetails.Tag\022&\n" + "\036inventory_security_group_names\030\007 \003(\t\022t\n" - + "\035migration_resources_user_tags\030\010 " - + "\003(\0132M.google.cloud.vmmigration.v1.AwsSou" - + "rceDetails.MigrationResourcesUserTagsEntry\022\026\n" - + "\tpublic_ip\030\t \001(\tB\003\340A\003\032M\n" + + "\035migration_resources_user_tags\030\010 \003(\0132M.google.c" + + "loud.vmmigration.v1.AwsSourceDetails.MigrationResourcesUserTagsEntry\022\026\n" + + "\tpublic_ip\030\t \001(\tB\003\340A\003\032i\n" + "\024AccessKeyCredentials\022\025\n\r" + "access_key_id\030\001 \001(\t\022\036\n" - + "\021secret_access_key\030\002 \001(\tB\003\340A\004\032!\n" - + "\003Tag\022\013\n" + + "\021secret_access_key\030\002 \001(\tB\003\340A\004\022\032\n\r" + + "session_token\030\003 \001(\tB\003\340A\004\032+\n" + + "\003Tag\022\020\n" + + "\003key\030\001 \001(\tB\003\340A\002\022\022\n" + + "\005value\030\002 \001(\tB\003\340A\002\032A\n" + + "\037MigrationResourcesUserTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t\032A\n" + + "\005value\030\002 \001(\t:\0028\001\"C\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\013\n" + + "\007PENDING\020\001\022\n\n" + + "\006FAILED\020\002\022\n\n" + + "\006ACTIVE\020\003B\022\n" + + "\020credentials_type\"\273\005\n" + + "\022AzureSourceDetails\022f\n" + + "\023client_secret_creds\030\t \001(\0132G.google.cloud.vmmigration." + + "v1.AzureSourceDetails.ClientSecretCredentialsH\000\022\034\n" + + "\017subscription_id\030\001 \001(\tB\003\340A\005\022\033\n" + + "\016azure_location\030\005 \001(\tB\003\340A\005\022I\n" + + "\005state\030\006 \001(" + + "\01625.google.cloud.vmmigration.v1.AzureSourceDetails.StateB\003\340A\003\022&\n" + + "\005error\030\007 \001(\0132\022.google.rpc.StatusB\003\340A\003\022v\n" + + "\035migration_resources_user_tags\030\010 \003(\0132O.google.cloud.vmmi" + + "gration.v1.AzureSourceDetails.MigrationResourcesUserTagsEntry\022\036\n" + + "\021resource_group_id\030\n" + + " \001(\tB\003\340A\003\032[\n" + + "\027ClientSecretCredentials\022\021\n" + + "\ttenant_id\030\001 \001(\t\022\021\n" + + "\tclient_id\030\002 \001(\t\022\032\n\r" + + "client_secret\030\003 \001(\tB\003\340A\004\032A\n" + "\037MigrationResourcesUserTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"C\n" @@ -775,15 +1175,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007version\030\006 \001(\t\022\023\n" + "\006bucket\030\n" + " \001(\tB\003\340A\003\022J\n" - + "\005state\030\007 \001(\01626.go" - + "ogle.cloud.vmmigration.v1.DatacenterConnector.StateB\003\340A\003\0223\n\n" + + "\005state\030\007 \001(" + + "\01626.google.cloud.vmmigration.v1.DatacenterConnector.StateB\003\340A\003\0223\n\n" + "state_time\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022&\n" + "\005error\030\013 \001(\0132\022.google.rpc.StatusB\003\340A\003\022-\n" + " appliance_infrastructure_version\030\r" + " \001(\tB\003\340A\003\022\'\n" + "\032appliance_software_version\030\016 \001(\tB\003\340A\003\022N\n" - + "\022available_versions\030\017" - + " \001(\0132-.google.cloud.vmmigration.v1.AvailableUpdatesB\003\340A\003\022G\n" + + "\022available_versions\030\017 \001(\0132-.google" + + ".cloud.vmmigration.v1.AvailableUpdatesB\003\340A\003\022G\n" + "\016upgrade_status\030\020" + " \001(\0132*.google.cloud.vmmigration.v1.UpgradeStatusB\003\340A\003\"P\n" + "\005State\022\025\n" @@ -792,12 +1192,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007OFFLINE\020\002\022\n\n" + "\006FAILED\020\003\022\n\n" + "\006ACTIVE\020\004:\232\001\352A\226\001\n" - + ".vmmigration.googleapis.com/DatacenterConnector\022dprojects/{project}/locations/{l" - + "ocation}/sources/{source}/datacenterConnectors/{datacenter_connector}\"\226\002\n\r" + + ".vmmigration.googleapis.com/DatacenterConnector\022dprojects/{project}/locati" + + "ons/{location}/sources/{source}/datacenterConnectors/{datacenter_connector}\"\233\002\n\r" + "UpgradeStatus\022\017\n" + "\007version\030\001 \001(\t\022?\n" - + "\005state\030\002 \001(\01620.google.cloud.vmmigration.v1.UpgradeStatus.State\022!\n" - + "\005error\030\003 \001(\0132\022.google.rpc.Status\022.\n\n" + + "\005state\030\002 \001(\01620.google.cloud.vmmigration.v1.UpgradeStatus.State\022&\n" + + "\005error\030\003 \001(\0132\022.google.rpc.StatusB\003\340A\003\022.\n\n" + "start_time\030\004 \001(\0132\032.google.protobuf.Timestamp\022\030\n" + "\020previous_version\030\005 \001(\t\"F\n" + "\005State\022\025\n" @@ -808,8 +1208,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020AvailableUpdates\022O\n" + "\030new_deployable_appliance\030\001" + " \001(\0132-.google.cloud.vmmigration.v1.ApplianceVersion\022F\n" - + "\017in_place_update\030\002 \001(\0132-." - + "google.cloud.vmmigration.v1.ApplianceVersion\"]\n" + + "\017in_place_update\030\002" + + " \001(\0132-.google.cloud.vmmigration.v1.ApplianceVersion\"]\n" + "\020ApplianceVersion\022\017\n" + "\007version\030\001 \001(\t\022\013\n" + "\003uri\030\002 \001(\t\022\020\n" @@ -844,28 +1244,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\003 \001(\t\"g\n" + "\023DeleteSourceRequest\0227\n" + "\004name\030\001 \001(\tB)\340A\002\372A#\n" - + "!vmmigration.googleapis.com/Source\022\027\n\n" + + "!vmmigration.googleapis.com/Source\022\027\n" + + "\n" + "request_id\030\002 \001(\tB\003\340A\001\"i\n" + "\025FetchInventoryRequest\0229\n" + "\006source\030\001 \001(\tB)\340A\002\372A#\n" + "!vmmigration.googleapis.com/Source\022\025\n\r" - + "force_refresh\030\002 \001(\010\"\230\004\n" + + "force_refresh\030\002 \001(\010\"\336\005\n" + "\017VmwareVmDetails\022\r\n" + "\005vm_id\030\001 \001(\t\022\025\n\r" + "datacenter_id\030\002 \001(\t\022\036\n" + "\026datacenter_description\030\003 \001(\t\022\014\n" + "\004uuid\030\004 \001(\t\022\024\n" + "\014display_name\030\005 \001(\t\022L\n" - + "\013power_state\030\006 \001(\01627.google.cloud" - + ".vmmigration.v1.VmwareVmDetails.PowerState\022\021\n" + + "\013power_state\030\006 \001(\01627.g" + + "oogle.cloud.vmmigration.v1.VmwareVmDetails.PowerState\022\021\n" + "\tcpu_count\030\007 \001(\005\022\021\n" + "\tmemory_mb\030\010 \001(\005\022\022\n\n" + "disk_count\030\t \001(\005\022\034\n" + "\024committed_storage_mb\030\014 \001(\003\022\031\n" + "\021guest_description\030\013 \001(\t\022Q\n" + "\013boot_option\030\r" - + " \001(\01627.google.cloud.vmmigr" - + "ation.v1.VmwareVmDetails.BootOptionB\003\340A\003\"I\n\n" + + " \001(\01627.google.c" + + "loud.vmmigration.v1.VmwareVmDetails.BootOptionB\003\340A\003\022V\n" + + "\014architecture\030\016 \001(\0162;.goog" + + "le.cloud.vmmigration.v1.VmwareVmDetails.VmArchitectureB\003\340A\003\"I\n\n" + "PowerState\022\033\n" + "\027POWER_STATE_UNSPECIFIED\020\000\022\006\n" + "\002ON\020\001\022\007\n" @@ -874,14 +1277,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "BootOption\022\033\n" + "\027BOOT_OPTION_UNSPECIFIED\020\000\022\007\n" + "\003EFI\020\001\022\010\n" - + "\004BIOS\020\002\"\333\010\n" + + "\004BIOS\020\002\"l\n" + + "\016VmArchitecture\022\037\n" + + "\033VM_ARCHITECTURE_UNSPECIFIED\020\000\022\036\n" + + "\032VM_ARCHITECTURE_X86_FAMILY\020\001\022\031\n" + + "\025VM_ARCHITECTURE_ARM64\020\002\"\357\010\n" + "\014AwsVmDetails\022\r\n" + "\005vm_id\030\001 \001(\t\022\024\n" + "\014display_name\030\002 \001(\t\022\021\n" + "\tsource_id\030\003 \001(\t\022\032\n" + "\022source_description\030\004 \001(\t\022N\n" - + "\013power_state\030\005 \001(\01624.google.cloud.vmmig" - + "ration.v1.AwsVmDetails.PowerStateB\003\340A\003\022\021\n" + + "\013power_state\030\005 \001(\01624.google.cl" + + "oud.vmmigration.v1.AwsVmDetails.PowerStateB\003\340A\003\022\021\n" + "\tcpu_count\030\006 \001(\005\022\021\n" + "\tmemory_mb\030\007 \001(\005\022\022\n\n" + "disk_count\030\010 \001(\005\022\034\n" @@ -895,13 +1302,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\t\022F\n" + "\017security_groups\030\016" + " \003(\0132-.google.cloud.vmmigration.v1.AwsSecurityGroup\022A\n" - + "\004tags\030\017 \003(\01323.google." - + "cloud.vmmigration.v1.AwsVmDetails.TagsEntry\022\014\n" + + "\004tags\030\017 \003(\0132" + + "3.google.cloud.vmmigration.v1.AwsVmDetails.TagsEntry\022\014\n" + "\004zone\030\020 \001(\t\022[\n" - + "\023virtualization_type\030\021" - + " \001(\0162>.google.cloud.vmmigration.v1.AwsVmDetails.VmVirtualizationType\022N\n" - + "\014architecture\030\022" - + " \001(\01628.google.cloud.vmmigration.v1.AwsVmDetails.VmArchitecture\032+\n" + + "\023virtualization_type\030\021 \001(\0162>.google.cloud.vmmigrati" + + "on.v1.AwsVmDetails.VmVirtualizationType\022N\n" + + "\014architecture\030\022 \001(\01628.google.cloud.vmm" + + "igration.v1.AwsVmDetails.VmArchitecture\022\022\n\n" + + "vcpu_count\030\023 \001(\005\032+\n" + "\tTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"V\n\n" @@ -927,17 +1335,99 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "X86_64_MAC\020\004\",\n" + "\020AwsSecurityGroup\022\n\n" + "\002id\030\001 \001(\t\022\014\n" - + "\004name\030\002 \001(\t\"Q\n" + + "\004name\030\002 \001(\t\"\316\t\n" + + "\016AzureVmDetails\022\r\n" + + "\005vm_id\030\001 \001(\t\022K\n" + + "\013power_state\030\002 \001(\01626.google.cloud" + + ".vmmigration.v1.AzureVmDetails.PowerState\022\017\n" + + "\007vm_size\030\003 \001(\t\022\021\n" + + "\tcpu_count\030\004 \001(\005\022\021\n" + + "\tmemory_mb\030\005 \001(\005\022\022\n\n" + + "disk_count\030\006 \001(\005\022\034\n" + + "\024committed_storage_mb\030\007 \001(\003\022C\n" + + "\007os_disk\030\010 " + + "\001(\01322.google.cloud.vmmigration.v1.AzureVmDetails.OSDisk\022?\n" + + "\005disks\030\t \003(\01320.google.cloud.vmmigration.v1.AzureVmDetails.Disk\022Q\n" + + "\016os_description\030\n" + + " \001(\01329.google.cloud.vmmigration.v1.AzureVmDetails.OSDescription\022K\n" + + "\013boot_option\030\013 \001(\01626.google.cloud." + + "vmmigration.v1.AzureVmDetails.BootOption\022C\n" + + "\004tags\030\014" + + " \003(\01325.google.cloud.vmmigration.v1.AzureVmDetails.TagsEntry\022\025\n\r" + + "computer_name\030\r" + + " \001(\t\022P\n" + + "\014architecture\030\016 \001(\0162:.goo" + + "gle.cloud.vmmigration.v1.AzureVmDetails.VmArchitecture\0325\n" + + "\006OSDisk\022\014\n" + + "\004type\030\001 \001(\t\022\014\n" + + "\004name\030\002 \001(\t\022\017\n" + + "\007size_gb\030\003 \001(\005\0322\n" + + "\004Disk\022\014\n" + + "\004name\030\001 \001(\t\022\017\n" + + "\007size_gb\030\002 \001(\005\022\013\n" + + "\003lun\030\003 \001(\005\032M\n\r" + + "OSDescription\022\014\n" + + "\004type\030\001 \001(\t\022\021\n" + + "\tpublisher\030\002 \001(\t\022\r\n" + + "\005offer\030\003 \001(\t\022\014\n" + + "\004plan\030\004 \001(\t\032+\n" + + "\tTagsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"\217\001\n\n" + + "PowerState\022\033\n" + + "\027POWER_STATE_UNSPECIFIED\020\000\022\014\n" + + "\010STARTING\020\001\022\013\n" + + "\007RUNNING\020\002\022\014\n" + + "\010STOPPING\020\003\022\013\n" + + "\007STOPPED\020\004\022\020\n" + + "\014DEALLOCATING\020\005\022\017\n" + + "\013DEALLOCATED\020\006\022\013\n" + + "\007UNKNOWN\020\007\"<\n\n" + + "BootOption\022\033\n" + + "\027BOOT_OPTION_UNSPECIFIED\020\000\022\007\n" + + "\003EFI\020\001\022\010\n" + + "\004BIOS\020\002\"l\n" + + "\016VmArchitecture\022\037\n" + + "\033VM_ARCHITECTURE_UNSPECIFIED\020\000\022\036\n" + + "\032VM_ARCHITECTURE_X86_FAMILY\020\001\022\031\n" + + "\025VM_ARCHITECTURE_ARM64\020\002\"Q\n" + "\020VmwareVmsDetails\022=\n" + "\007details\030\001 \003(\0132,.google.cloud.vmmigration.v1.VmwareVmDetails\"K\n\r" + "AwsVmsDetails\022:\n" - + "\007details\030\001 \003(\0132).google.cloud.vmmigration.v1.AwsVmDetails\"\337\001\n" + + "\007details\030\001 \003(\0132).google.cloud.vmmigration.v1.AwsVmDetails\"O\n" + + "\017AzureVmsDetails\022<\n" + + "\007details\030\001 \003(\0132+.google.cloud.vmmigration.v1.AzureVmDetails\"\242\002\n" + "\026FetchInventoryResponse\022C\n\n" + "vmware_vms\030\001" + " \001(\0132-.google.cloud.vmmigration.v1.VmwareVmsDetailsH\000\022=\n" - + "\007aws_vms\030\003 \001(\0132*.google.cloud.vmmigration.v1.AwsVmsDetailsH\000\0224\n" - + "\013update_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003B\013\n" - + "\tSourceVms\"\234\006\n" + + "\007aws_vms\030\003 \001(\0132*.google.cloud.vmmigration.v1.AwsVmsDetailsH\000\022A\n" + + "\tazure_vms\030\005" + + " \001(\0132,.google.cloud.vmmigration.v1.AzureVmsDetailsH\000\0224\n" + + "\013update", + "_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003B\013\n" + + "\tSourceVms\"\307\002\n" + + "\034FetchStorageInventoryRequest\0229\n" + + "\006source\030\001 \001(\tB)\340A\002\372A#\n" + + "!vmmigration.googleapis.com/Source\022X\n" + + "\004type\030\002 \001(\0162E.google.cloud.vmmigration.v1.FetchS" + + "torageInventoryRequest.StorageTypeB\003\340A\002\022\032\n\r" + + "force_refresh\030\003 \001(\010B\003\340A\001\022\026\n" + + "\tpage_size\030\004 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\005 \001(\tB\003\340A\001\"E\n" + + "\013StorageType\022\034\n" + + "\030STORAGE_TYPE_UNSPECIFIED\020\000\022\t\n" + + "\005DISKS\020\001\022\r\n" + + "\tSNAPSHOTS\020\002\"\272\001\n" + + "\035FetchStorageInventoryResponse\022E\n" + + "\tresources\030\001 \003(\013" + + "22.google.cloud.vmmigration.v1.SourceStorageResource\0224\n" + + "\013update_time\030\002" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\034\n" + + "\017next_page_token\030\003 \001(\tB\003\340A\003\"y\n" + + "\025SourceStorageResource\022M\n" + + "\020aws_disk_details\030\001 \001(\01321.google.clo" + + "ud.vmmigration.v1.AwsSourceDiskDetailsH\000B\021\n" + + "\017StorageResource\"\234\006\n" + "\021UtilizationReport\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\024\n" + "\014display_name\030\002 \001(\t\022H\n" @@ -947,8 +1437,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005error\030\005 \001(\0132\022.google.rpc.StatusB\003\340A\003\0224\n" + "\013create_time\030\006" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022L\n\n" - + "time_frame\030\007 \001(\01628.google" - + ".cloud.vmmigration.v1.UtilizationReport.TimeFrame\0227\n" + + "time_frame\030\007 " + + "\001(\01628.google.cloud.vmmigration.v1.UtilizationReport.TimeFrame\0227\n" + "\016frame_end_time\030\010" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\025\n" + "\010vm_count\030\t \001(\005B\003\340A\003\022;\n" @@ -964,15 +1454,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004WEEK\020\001\022\t\n" + "\005MONTH\020\002\022\010\n" + "\004YEAR\020\003:\224\001\352A\220\001\n" - + ",vmmigration.googleapis.com/UtilizationReport\022`projects/{" - + "project}/locations/{location}/sources/{s" - + "ource}/utilizationReports/{utilization_report}\"\302\001\n" + + ",vmmigration.googleapis.com/UtilizationReport" + + "\022`projects/{project}/locations/{location" + + "}/sources/{source}/utilizationReports/{utilization_report}\"\302\001\n" + "\021VmUtilizationInfo\022I\n" + "\021vmware_vm_details\030\001" + " \001(\0132,.google.cloud.vmmigration.v1.VmwareVmDetailsH\000\022\r\n" + "\005vm_id\030\003 \001(\t\022F\n" - + "\013utilization\030\002" - + " \001(\01321.google.cloud.vmmigration.v1.VmUtilizationMetricsB\013\n" + + "\013utilization\030\002 \001(\01321.google" + + ".cloud.vmmigration.v1.VmUtilizationMetricsB\013\n" + "\tVmDetails\"\230\002\n" + "\024VmUtilizationMetrics\022\027\n" + "\017cpu_max_percent\030\t \001(\005\022\033\n" @@ -986,8 +1476,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033network_throughput_max_kbps\030\017 \001(\003\022\'\n" + "\037network_throughput_average_kbps\030\020 \001(\003\"\211\002\n" + "\035ListUtilizationReportsRequest\022D\n" - + "\006parent\030\001 \001(" - + "\tB4\340A\002\372A.\022,vmmigration.googleapis.com/UtilizationReport\022E\n" + + "\006parent\030\001 \001(\tB4\340A\002\372A.\022,vm" + + "migration.googleapis.com/UtilizationReport\022E\n" + "\004view\030\002" + " \001(\01622.google.cloud.vmmigration.v1.UtilizationReportViewB\003\340A\001\022\026\n" + "\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\n" @@ -995,20 +1485,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006filter\030\005 \001(\tB\003\340A\001\022\025\n" + "\010order_by\030\006 \001(\tB\003\340A\001\"\252\001\n" + "\036ListUtilizationReportsResponse\022P\n" - + "\023utilization_reports\030\001" - + " \003(\0132..google.cloud.vmmigration.v1.UtilizationReportB\003\340A\003\022\034\n" + + "\023utilization_reports\030\001 \003(\0132..google." + + "cloud.vmmigration.v1.UtilizationReportB\003\340A\003\022\034\n" + "\017next_page_token\030\002 \001(\tB\003\340A\003\022\030\n" + "\013unreachable\030\003 \003(\tB\003\340A\003\"\250\001\n" + "\033GetUtilizationReportRequest\022B\n" + "\004name\030\001 \001(\tB4\340A\002\372A.\n" + ",vmmigration.googleapis.com/UtilizationReport\022E\n" - + "\004view\030\002 \001(" - + "\01622.google.cloud.vmmigration.v1.UtilizationReportViewB\003\340A\001\"\357\001\n" + + "\004view\030\002" + + " \001(\01622.google.cloud.vmmigration.v1.UtilizationReportViewB\003\340A\001\"\357\001\n" + "\036CreateUtilizationReportRequest\022D\n" - + "\006parent\030\001 \001(\tB4\340A\002\372A.\022,v" - + "mmigration.googleapis.com/UtilizationReport\022O\n" - + "\022utilization_report\030\002 \001(\0132..google" - + ".cloud.vmmigration.v1.UtilizationReportB\003\340A\002\022\"\n" + + "\006parent\030\001 \001(" + + "\tB4\340A\002\372A.\022,vmmigration.googleapis.com/UtilizationReport\022O\n" + + "\022utilization_report\030\002 " + + "\001(\0132..google.cloud.vmmigration.v1.UtilizationReportB\003\340A\002\022\"\n" + "\025utilization_report_id\030\003 \001(\tB\003\340A\002\022\022\n\n" + "request_id\030\004 \001(\t\"}\n" + "\036DeleteUtilizationReportRequest\022B\n" @@ -1016,8 +1506,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ",vmmigration.googleapis.com/UtilizationReport\022\027\n\n" + "request_id\030\002 \001(\tB\003\340A\001\"\260\001\n" + " ListDatacenterConnectorsResponse\022T\n" - + "\025datacenter_connectors\030\001" - + " \003(\01320.google.cloud.vmmigration.v1.DatacenterConnectorB\003\340A\003\022\034\n" + + "\025datacenter_connectors\030\001 \003(\01320.google.clo" + + "ud.vmmigration.v1.DatacenterConnectorB\003\340A\003\022\034\n" + "\017next_page_token\030\002 \001(\tB\003\340A\003\022\030\n" + "\013unreachable\030\003 \003(\tB\003\340A\003\"e\n" + "\035GetDatacenterConnectorRequest\022D\n" @@ -1040,12 +1530,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\002 \001(\t\"\032\n" + "\030UpgradeApplianceResponse\"\306\001\n" + "\037ListDatacenterConnectorsRequest\022F\n" - + "\006parent\030\001 \001(" - + "\tB6\340A\002\372A0\022.vmmigration.googleapis.com/DatacenterConnector\022\026\n" + + "\006parent\030\001 \001(\tB6\340A\002\372A" + + "0\022.vmmigration.googleapis.com/DatacenterConnector\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\002\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" - + "\010order_by\030\005 \001(\tB\003\340A\001\"\377\007\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\"\371\t\n" + "\033ComputeEngineTargetDefaults\022\017\n" + "\007vm_name\030\001 \001(\t\022E\n" + "\016target_project\030\002 \001(\tB-\372A*\n" @@ -1055,30 +1545,38 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014machine_type\030\005 \001(\t\022\024\n" + "\014network_tags\030\006 \003(\t\022I\n" + "\022network_interfaces\030\007" - + " \003(\0132-.google.cloud.vmmigration.v1.NetworkInterface\022\027\n" - + "\017service_account\030\010 \001(\t\022E\n" + + " \003(\0132-.google.cloud.vmmigration.v1.NetworkInterface\022\034\n" + + "\017service_account\030\010 \001(\tB\003\340A\001\022E\n" + "\tdisk_type\030\t \001(\01622.google.cloud.vmmigration.v1.ComputeEngineDiskType\022T\n" - + "\006labels\030\n", - " \003(\0132D.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.LabelsEntry\022K\n" - + "\014license_type\030\013" - + " \001(\01625.google.cloud.vmmigration.v1.ComputeEngineLicenseType\022I\n" - + "\017applied_license\030\014" - + " \001(\0132+.google.cloud.vmmigration.v1.AppliedLicenseB\003\340A\003\022J\n" + + "\006labels\030\n" + + " \003(\0132D.google.cloud.vmm" + + "igration.v1.ComputeEngineTargetDefaults.LabelsEntry\022K\n" + + "\014license_type\030\013 \001(\01625.goog" + + "le.cloud.vmmigration.v1.ComputeEngineLicenseType\022I\n" + + "\017applied_license\030\014 \001(\0132+.goog" + + "le.cloud.vmmigration.v1.AppliedLicenseB\003\340A\003\022J\n" + "\022compute_scheduling\030\r" + " \001(\0132..google.cloud.vmmigration.v1.ComputeScheduling\022\023\n" - + "\013secure_boot\030\016 \001(\010\022N\n" - + "\013boot_option\030\017 \001(\01624.google.cloud." - + "vmmigration.v1.ComputeEngineBootOptionB\003\340A\003\022X\n" - + "\010metadata\030\020 \003(\0132F.google.cloud.vmm" - + "igration.v1.ComputeEngineTargetDefaults.MetadataEntry\022\033\n" + + "\013secure_boot\030\016 \001(\010\022\030\n" + + "\013enable_vtpm\030\025 \001(\010B\003\340A\001\022(\n" + + "\033enable_integrity_monitoring\030\026 \001(\010B\003\340A\001\022N\n" + + "\013boot_option\030\017 \001(\01624.google.c" + + "loud.vmmigration.v1.ComputeEngineBootOptionB\003\340A\003\022X\n" + + "\010metadata\030\020 \003(\0132F.google.clou" + + "d.vmmigration.v1.ComputeEngineTargetDefaults.MetadataEntry\022\033\n" + "\023additional_licenses\030\021 \003(\t\022\020\n" - + "\010hostname\030\022 \001(\t\032-\n" + + "\010hostname\030\022 \001(\t\022C\n\n" + + "encryption\030\023" + + " \001(\0132\'.google.cloud.vmmigration.v1.EncryptionB\006\340A\001\340A\005\022I\n" + + "\017boot_conversion\030\024 \001(\0162" + + "+.google.cloud.vmmigration.v1.BootConversionB\003\340A\001\022\037\n" + + "\022disk_replica_zones\030\030 \003(\tB\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\032/\n\r" + "MetadataEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\"\274\007\n" + + "\005value\030\002 \001(\t:\0028\001\"\256\t\n" + "\032ComputeEngineTargetDetails\022\017\n" + "\007vm_name\030\001 \001(\t\022\017\n" + "\007project\030\002 \001(\t\022\014\n" @@ -1086,36 +1584,45 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023machine_type_series\030\004 \001(\t\022\024\n" + "\014machine_type\030\005 \001(\t\022\024\n" + "\014network_tags\030\006 \003(\t\022I\n" - + "\022network_interfaces\030\007" - + " \003(\0132-.google.cloud.vmmigration.v1.NetworkInterface\022\027\n" + + "\022network_interfaces\030\007 \003(\0132-" + + ".google.cloud.vmmigration.v1.NetworkInterface\022\027\n" + "\017service_account\030\010 \001(\t\022E\n" + "\tdisk_type\030\t \001(\01622.google.cloud.vmmigration.v1.ComputeEngineDiskType\022S\n" + "\006labels\030\n" + " \003(\0132C.google.cloud.vmmigration.v1.ComputeEngineTargetDetails.LabelsEntry\022K\n" - + "\014license_type\030\013 \001(\01625.google.clou" - + "d.vmmigration.v1.ComputeEngineLicenseType\022D\n" + + "\014license_type\030\013" + + " \001(\01625.google.cloud.vmmigration.v1.ComputeEngineLicenseType\022D\n" + "\017applied_license\030\014" + " \001(\0132+.google.cloud.vmmigration.v1.AppliedLicense\022J\n" + "\022compute_scheduling\030\r" + " \001(\0132..google.cloud.vmmigration.v1.ComputeScheduling\022\023\n" - + "\013secure_boot\030\016 \001(\010\022I\n" - + "\013boot_option\030\017 \001(\01624.google.c" - + "loud.vmmigration.v1.ComputeEngineBootOption\022W\n" - + "\010metadata\030\020 \003(\0132E.google.cloud.vmm" - + "igration.v1.ComputeEngineTargetDetails.MetadataEntry\022\033\n" + + "\013secure_boot\030\016 \001(\010\022\030\n" + + "\013enable_vtpm\030\025 \001(\010B\003\340A\001\022(\n" + + "\033enable_integrity_monitoring\030\026 \001(\010B\003\340A\001\022I\n" + + "\013boot_option\030\017 \001(\0162" + + "4.google.cloud.vmmigration.v1.ComputeEngineBootOption\022W\n" + + "\010metadata\030\020 \003(\0132E.google" + + ".cloud.vmmigration.v1.ComputeEngineTargetDetails.MetadataEntry\022\033\n" + "\023additional_licenses\030\021 \003(\t\022\020\n" - + "\010hostname\030\022 \001(\t\032-\n" + + "\010hostname\030\022 \001(\t\022@\n\n" + + "encryption\030\023" + + " \001(\0132\'.google.cloud.vmmigration.v1.EncryptionB\003\340A\001\022I\n" + + "\017boot_conversion\030\024 \001(\016" + + "2+.google.cloud.vmmigration.v1.BootConversionB\003\340A\001\022\037\n" + + "\022disk_replica_zones\030\030 \003(\tB\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\032/\n\r" + "MetadataEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\"a\n" - + "\020NetworkInterface\022\017\n" - + "\007network\030\001 \001(\t\022\022\n\n" - + "subnetwork\030\002 \001(\t\022\023\n" - + "\013internal_ip\030\003 \001(\t\022\023\n" - + "\013external_ip\030\004 \001(\t\"\240\001\n" + + "\005value\030\002 \001(\t:\0028\001\"\307\001\n" + + "\020NetworkInterface\022\024\n" + + "\007network\030\001 \001(\tB\003\340A\001\022\027\n\n" + + "subnetwork\030\002 \001(\tB\003\340A\001\022\030\n" + + "\013internal_ip\030\003 \001(\tB\003\340A\001\022\030\n" + + "\013external_ip\030\004 \001(\tB\003\340A\001\022P\n" + + "\014network_tier\030\005 \001(" + + "\01625.google.cloud.vmmigration.v1.ComputeEngineNetworkTierB\003\340A\001\"\240\001\n" + "\016AppliedLicense\022>\n" + "\004type\030\001" + " \001(\01620.google.cloud.vmmigration.v1.AppliedLicense.Type\022\022\n\n" @@ -1127,20 +1634,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004BYOL\020\003\"\277\001\n" + "\026SchedulingNodeAffinity\022\013\n" + "\003key\030\001 \001(\t\022N\n" - + "\010operator\030\002 \001(\0162<.go" - + "ogle.cloud.vmmigration.v1.SchedulingNodeAffinity.Operator\022\016\n" + + "\010operator\030\002 \001" + + "(\0162<.google.cloud.vmmigration.v1.SchedulingNodeAffinity.Operator\022\016\n" + "\006values\030\003 \003(\t\"8\n" + "\010Operator\022\030\n" + "\024OPERATOR_UNSPECIFIED\020\000\022\006\n" + "\002IN\020\001\022\n\n" + "\006NOT_IN\020\002\"\335\003\n" + "\021ComputeScheduling\022]\n" - + "\023on_host_maintenance\030\001 \001(\0162@.google.cloud.vm" - + "migration.v1.ComputeScheduling.OnHostMaintenance\022P\n" - + "\014restart_type\030\005 \001(\0162:.google." - + "cloud.vmmigration.v1.ComputeScheduling.RestartType\022L\n" - + "\017node_affinities\030\003 \003(\01323.go" - + "ogle.cloud.vmmigration.v1.SchedulingNodeAffinity\022\025\n\r" + + "\023on_host_maintenance\030\001 \001(\0162@.google.c" + + "loud.vmmigration.v1.ComputeScheduling.OnHostMaintenance\022P\n" + + "\014restart_type\030\005 \001(\0162:." + + "google.cloud.vmmigration.v1.ComputeScheduling.RestartType\022L\n" + + "\017node_affinities\030\003 \003" + + "(\01323.google.cloud.vmmigration.v1.SchedulingNodeAffinity\022\025\n\r" + "min_node_cpus\030\004 \001(\005\"T\n" + "\021OnHostMaintenance\022#\n" + "\037ON_HOST_MAINTENANCE_UNSPECIFIED\020\000\022\r\n" @@ -1149,13 +1656,99 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013RestartType\022\034\n" + "\030RESTART_TYPE_UNSPECIFIED\020\000\022\025\n" + "\021AUTOMATIC_RESTART\020\001\022\030\n" - + "\024NO_AUTOMATIC_RESTART\020\002\"^\n" + + "\024NO_AUTOMATIC_RESTART\020\002\"\222\003\n" + + " ComputeEngineDisksTargetDefaults\022\016\n" + + "\004zone\030\002 \001(\tH\000\022_\n" + + "\025disks_target_defaults\030\005 \001(\0132>.google.cloud.vm" + + "migration.v1.DisksMigrationDisksTargetDefaultsH\001\022Y\n" + + "\022vm_target_defaults\030\006 \001(\0132;.g" + + "oogle.cloud.vmmigration.v1.DisksMigrationVmTargetDefaultsH\001\022E\n" + + "\016target_project\030\001 \001(\tB-\372A*\n" + + "(vmmigration.googleapis.com/TargetProject\022B\n" + + "\005disks\030\004 \003(\01323.google.cloud.vmmigration.v1.PersistentDiskDefaultsB\n" + + "\n" + + "\010locationB\013\n" + + "\tvm_target\"\317\003\n" + + "\026PersistentDiskDefaults\022\037\n" + + "\022source_disk_number\030\001 \001(\005B\003\340A\002\022\026\n" + + "\tdisk_name\030\002 \001(\tB\003\340A\001\022E\n" + + "\tdisk_type\030\003" + + " \001(\01622.google.cloud.vmmigration.v1.ComputeEngineDiskType\022d\n" + + "\021additional_labels\030\004 \003(\0132I.google.cloud.vmmigration.v1.Pers" + + "istentDiskDefaults.AdditionalLabelsEntry\022@\n\n" + + "encryption\030\005" + + " \001(\0132\'.google.cloud.vmmigration.v1.EncryptionB\003\340A\001\022T\n" + + "\025vm_attachment_details\030\006" + + " \001(\01320.google.cloud.vmmigration.v1.VmAttachmentDetailsB\003\340A\001\0327\n" + + "\025AdditionalLabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"/\n" + + "\023VmAttachmentDetails\022\030\n" + + "\013device_name\030\001 \001(\tB\003\340A\001\"#\n" + + "!DisksMigrationDisksTargetDefaults\"\226\007\n" + + "\036DisksMigrationVmTargetDefaults\022\024\n" + + "\007vm_name\030\001 \001(\tB\003\340A\002\022 \n" + + "\023machine_type_series\030\002 \001(\tB\003\340A\001\022\031\n" + + "\014machine_type\030\003 \001(\tB\003\340A\002\022\031\n" + + "\014network_tags\030\004 \003(\tB\003\340A\001\022N\n" + + "\022network_interfaces\030\005 \003(\0132-.google.cl" + + "oud.vmmigration.v1.NetworkInterfaceB\003\340A\001\022\034\n" + + "\017service_account\030\006 \001(\tB\003\340A\001\022O\n" + + "\022compute_scheduling\030\007" + + " \001(\0132..google.cloud.vmmigration.v1.ComputeSchedulingB\003\340A\001\022\030\n" + + "\013secure_boot\030\010 \001(\010B\003\340A\001\022\030\n" + + "\013enable_vtpm\030\020 \001(\010B\003\340A\001\022(\n" + + "\033enable_integrity_monitoring\030\021 \001(\010B\003\340A\001\022`\n" + + "\010metadata\030\n" + + " \003(\0132I.google.cloud.v" + + "mmigration.v1.DisksMigrationVmTargetDefaults.MetadataEntryB\003\340A\001\022 \n" + + "\023additional_licenses\030\013 \003(\tB\003\340A\001\022\025\n" + + "\010hostname\030\014 \001(\tB\003\340A\001\022\\\n" + + "\006labels\030\r" + + " \003(\0132G.google.cloud.vmmigrat" + + "ion.v1.DisksMigrationVmTargetDefaults.LabelsEntryB\003\340A\001\022N\n" + + "\022boot_disk_defaults\030\016 \001" + + "(\0132-.google.cloud.vmmigration.v1.BootDiskDefaultsB\003\340A\001\022@\n\n" + + "encryption\030\017 \001(\0132\'.goo" + + "gle.cloud.vmmigration.v1.EncryptionB\003\340A\001\032/\n\r" + + "MetadataEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"\377\002\n" + + "\020BootDiskDefaults\022P\n" + + "\005image\030\003 \001(\0132?.google.cloud.vmmigration." + + "v1.BootDiskDefaults.DiskImageDefaultsH\000\022\026\n" + + "\tdisk_name\030\001 \001(\tB\003\340A\001\022J\n" + + "\tdisk_type\030\002 \001" + + "(\01622.google.cloud.vmmigration.v1.ComputeEngineDiskTypeB\003\340A\001\022\030\n" + + "\013device_name\030\004 \001(\tB\003\340A\001\022@\n\n" + + "encryption\030\005" + + " \001(\0132\'.google.cloud.vmmigration.v1.EncryptionB\003\340A\001\032O\n" + + "\021DiskImageDefaults\022:\n" + + "\014source_image\030\001 \001(\tB$\340A\002\372A\036\n" + + "\034compute.googleapis.com/ImageB\010\n" + + "\006source\"\242\002\n" + + "\037ComputeEngineDisksTargetDetails\022]\n" + + "\024disks_target_details\030\005 \001(\0132=.google.cl" + + "oud.vmmigration.v1.DisksMigrationDisksTargetDetailsH\000\022W\n" + + "\021vm_target_details\030\006 \001(\013" + + "2:.google.cloud.vmmigration.v1.DisksMigrationVmTargetDetailsH\000\022:\n" + + "\005disks\030\001 \003(\0132+.google.cloud.vmmigration.v1.PersistentDiskB\013\n" + + "\tvm_target\">\n" + + "\016PersistentDisk\022\032\n" + + "\022source_disk_number\030\001 \001(\005\022\020\n" + + "\010disk_uri\030\002 \001(\t\"\"\n" + + " DisksMigrationDisksTargetDetails\"4\n" + + "\035DisksMigrationVmTargetDetails\022\023\n" + + "\006vm_uri\030\001 \001(\tB\003\340A\003\"^\n" + "\016SchedulePolicy\0220\n\r" + "idle_duration\030\001 \001(\0132\031.google.protobuf.Duration\022\032\n" + "\022skip_os_adaptation\030\002 \001(\010\"\321\001\n" + "\030CreateMigratingVmRequest\022>\n" - + "\006parent\030\001 \001(\tB.\340A\002\372A(" - + "\022&vmmigration.googleapis.com/MigratingVm\022\034\n" + + "\006parent\030\001 \001(\tB.\340A\002\372A(\022&" + + "vmmigration.googleapis.com/MigratingVm\022\034\n" + "\017migrating_vm_id\030\002 \001(\tB\003\340A\002\022C\n" + "\014migrating_vm\030\003" + " \001(\0132(.google.cloud.vmmigration.v1.MigratingVmB\003\340A\002\022\022\n\n" @@ -1167,8 +1760,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "page_token\030\003 \001(\tB\003\340A\002\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + "\010order_by\030\005 \001(\tB\003\340A\001\022?\n" - + "\004view\030\006 \001(\0162," - + ".google.cloud.vmmigration.v1.MigratingVmViewB\003\340A\001\"\230\001\n" + + "\004view\030\006 \001(\0162,.g" + + "oogle.cloud.vmmigration.v1.MigratingVmViewB\003\340A\001\"\230\001\n" + "\030ListMigratingVmsResponse\022D\n\r" + "migrating_vms\030\001" + " \003(\0132(.google.cloud.vmmigration.v1.MigratingVmB\003\340A\003\022\034\n" @@ -1177,8 +1770,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025GetMigratingVmRequest\022<\n" + "\004name\030\001 \001(\tB.\340A\002\372A(\n" + "&vmmigration.googleapis.com/MigratingVm\022?\n" - + "\004view\030\002 \001(\0162,.google.clou" - + "d.vmmigration.v1.MigratingVmViewB\003\340A\001\"\244\001\n" + + "\004view\030\002" + + " \001(\0162,.google.cloud.vmmigration.v1.MigratingVmViewB\003\340A\001\"\244\001\n" + "\030UpdateMigratingVmRequest\022/\n" + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMask\022C\n" + "\014migrating_vm\030\002" @@ -1201,38 +1794,42 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027ResumeMigrationResponse\"`\n" + "\030FinalizeMigrationRequest\022D\n" + "\014migrating_vm\030\001 \001(\tB.\340A\002\372A(\n" - + "&vmmigration.googleapis.com/MigratingVm\"\033\n" - + "\031FinalizeMigrationResponse\"\254\002\n\r" + + "&vmmigration.googleapis.com/MigratingVm\"^\n" + + "\026ExtendMigrationRequest\022D\n" + + "\014migrating_vm\030\001 \001(\tB.\340A\002\372A(\n" + + "&vmmigration.googleapis.com/MigratingVm\"\031\n" + + "\027ExtendMigrationResponse\"\033\n" + + "\031FinalizeMigrationResponse\"\261\002\n\r" + "TargetProject\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022\017\n" - + "\007project\030\002 \001(\t\022\023\n" + + "\004name\030\001 \001(\tB\003\340A\003\022\024\n" + + "\007project\030\002 \001(\tB\003\340A\002\022\023\n" + "\013description\030\003 \001(\t\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:v\352As\n" - + "(vmmigration.googleapis.com/TargetProject\022Gprojects/{project}/loc" - + "ations/{location}/targetProjects/{target_project}\"Y\n" + + "(vmmigration.googleapis.com/TargetProject\022Gprojects/{projec" + + "t}/locations/{location}/targetProjects/{target_project}\"Y\n" + "\027GetTargetProjectRequest\022>\n" + "\004name\030\001 \001(\tB0\340A\002\372A*\n" + "(vmmigration.googleapis.com/TargetProject\"\272\001\n" + "\031ListTargetProjectsRequest\022@\n" - + "\006parent\030\001 \001(" - + "\tB0\340A\002\372A*\022(vmmigration.googleapis.com/TargetProject\022\026\n" + + "\006parent\030\001 \001(\tB0\340A\002\372A*" + + "\022(vmmigration.googleapis.com/TargetProject\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\002\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + "\010order_by\030\005 \001(\tB\003\340A\001\"\236\001\n" + "\032ListTargetProjectsResponse\022H\n" - + "\017target_projects\030\001" - + " \003(\0132*.google.cloud.vmmigration.v1.TargetProjectB\003\340A\003\022\034\n" + + "\017target_projects\030\001 \003(\0132*.google" + + ".cloud.vmmigration.v1.TargetProjectB\003\340A\003\022\034\n" + "\017next_page_token\030\002 \001(\tB\003\340A\003\022\030\n" + "\013unreachable\030\003 \003(\tB\003\340A\003\"\333\001\n" + "\032CreateTargetProjectRequest\022@\n" + "\006parent\030\001 \001(" + "\tB0\340A\002\372A*\022(vmmigration.googleapis.com/TargetProject\022\036\n" + "\021target_project_id\030\002 \001(\tB\003\340A\002\022G\n" - + "\016target_project\030\003 " - + "\001(\0132*.google.cloud.vmmigration.v1.TargetProjectB\003\340A\002\022\022\n\n" + + "\016target_project\030\003" + + " \001(\0132*.google.cloud.vmmigration.v1.TargetProjectB\003\340A\002\022\022\n\n" + "request_id\030\004 \001(\t\"\252\001\n" + "\032UpdateTargetProjectRequest\022/\n" + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMask\022G\n" @@ -1242,16 +1839,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032DeleteTargetProjectRequest\022>\n" + "\004name\030\001 \001(\tB0\340A\002\372A*\n" + "(vmmigration.googleapis.com/TargetProject\022\027\n\n" - + "request_id\030\002 \001(\tB\003\340A\001\"\220\002\n" + + "request_id\030\002 \001(\tB\003\340A\001\"\352\003\n" + "\005Group\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\0224\n" + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\003" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\023\n" + "\013description\030\004 \001(\t\022\024\n" - + "\014display_name\030\005 \001(\t:]\352AZ\n" - + " vmmigration.googleapis.com/Group\0226projects/{proje" - + "ct}/locations/{location}/groups/{group}\"\252\001\n" + + "\014display_name\030\005 \001(\t\022Z\n" + + "\025migration_target_type\030\006 \001(\01626.google.cloud.vmm" + + "igration.v1.Group.MigrationTargetTypeB\003\340A\005\"|\n" + + "\023MigrationTargetType\022%\n" + + "!MIGRATION_TARGET_TYPE_UNSPECIFIED\020\000\022\035\n" + + "\031MIGRATION_TARGET_TYPE_GCE\020\001\022\037\n" + + "\033MIGRATION_TARGET_TYPE_DISKS\020\002:]\352AZ\n" + + " vmmigration.googleapis.co" + + "m/Group\0226projects/{project}/locations/{location}/groups/{group}\"\252\001\n" + "\021ListGroupsRequest\0228\n" + "\006parent\030\001 \001(\tB(\340A\002\372A\"\022" + " vmmigration.googleapis.com/Group\022\026\n" @@ -1328,15 +1931,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004verb\030\004 \001(\tB\003\340A\003\022\033\n" + "\016status_message\030\005 \001(\tB\003\340A\003\022#\n" + "\026requested_cancellation\030\006 \001(\010B\003\340A\003\022\030\n" - + "\013api_version\030\007 \001(\tB\003\340A\003\"\277\004\n" + + "\013api_version\030\007 \001(\tB\003\340A\003\"\361\004\n" + "\016MigrationError\022H\n" - + "\004code\030\001 \001(\01625.google.cloud.vmmig" - + "ration.v1.MigrationError.ErrorCodeB\003\340A\003\0228\n\r" - + "error_message\030\002 \001(\0132\034.google.rpc.LocalizedMessageB\003\340A\003\0226\n" + + "\004code\030\001 " + + "\001(\01625.google.cloud.vmmigration.v1.MigrationError.ErrorCodeB\003\340A\003\0228\n\r" + + "error_message", + "\030\002 \001(\0132\034.google.rpc.LocalizedMessageB\003\340A\003\0226\n" + "\013action_item\030\003" + " \001(\0132\034.google.rpc.LocalizedMessageB\003\340A\003\022.\n\n" + "help_links\030\004 \003(\0132\025.google.rpc.Help.LinkB\003\340A\003\0223\n\n" - + "error_time\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\"\213\002\n" + + "error_time\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\"\275\002\n" + "\tErrorCode\022\032\n" + "\026ERROR_CODE_UNSPECIFIED\020\000\022\021\n\r" + "UNKNOWN_ERROR\020\001\022\033\n" @@ -1347,11 +1951,72 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013CLONE_ERROR\020\006\022\021\n\r" + "CUTOVER_ERROR\020\007\022\034\n" + "\030UTILIZATION_REPORT_ERROR\020\010\022\033\n" - + "\027APPLIANCE_UPGRADE_ERROR\020\t\"\272\001\n" - + "\022AwsSourceVmDetails\022J\n" - + "\010firmware\030\001" - + " \001(\01628.google.cloud.vmmigration.v1.AwsSourceVmDetails.Firmware\022\037\n" - + "\027committed_storage_bytes\030\002 \001(\003\"7\n" + + "\027APPLIANCE_UPGRADE_ERROR\020\t\022\026\n" + + "\022IMAGE_IMPORT_ERROR\020\n" + + "\022\030\n" + + "\024DISK_MIGRATION_ERROR\020\013\"\366\002\n" + + "\020MigrationWarning\022G\n" + + "\004code\030\001 \001(\01629.goog" + + "le.cloud.vmmigration.v1.MigrationWarning.WarningCode\022:\n" + + "\017warning_message\030\002" + + " \001(\0132\034.google.rpc.LocalizedMessageB\003\340A\003\0226\n" + + "\013action_item\030\003" + + " \001(\0132\034.google.rpc.LocalizedMessageB\003\340A\003\022.\n\n" + + "help_links\030\004 \003(\0132\025.google.rpc.Help.LinkB\003\340A\003\0220\n" + + "\014warning_time\030\005 \001(\0132\032.google.protobuf.Timestamp\"C\n" + + "\013WarningCode\022\034\n" + + "\030WARNING_CODE_UNSPECIFIED\020\000\022\026\n" + + "\022ADAPTATION_WARNING\020\001\"\225\004\n" + + "\025VmwareSourceVmDetails\022R\n" + + "\010firmware\030\001 \001(\0162;.google.cloud.vmmig" + + "ration.v1.VmwareSourceVmDetails.FirmwareB\003\340A\003\022$\n" + + "\027committed_storage_bytes\030\002 \001(\003B\003\340A\003\022X\n" + + "\005disks\030\003 \003(\0132D.google.cloud.vmmigr" + + "ation.v1.VmwareSourceVmDetails.VmwareDiskDetailsB\003\340A\003\022N\n" + + "\024vm_capabilities_info\030\005 " + + "\001(\0132+.google.cloud.vmmigration.v1.VmCapabilitiesB\003\340A\003\022F\n" + + "\014architecture\030\006 \001(\0162+.go" + + "ogle.cloud.vmmigration.v1.VmArchitectureB\003\340A\003\032W\n" + + "\021VmwareDiskDetails\022\030\n" + + "\013disk_number\030\001 \001(\005B\003\340A\003\022\024\n" + + "\007size_gb\030\002 \001(\003B\003\340A\003\022\022\n" + + "\005label\030\003 \001(\tB\003\340A\003\"7\n" + + "\010Firmware\022\030\n" + + "\024FIRMWARE_UNSPECIFIED\020\000\022\007\n" + + "\003EFI\020\001\022\010\n" + + "\004BIOS\020\002\"\212\004\n" + + "\022AwsSourceVmDetails\022O\n" + + "\010firmware\030\001 \001(\01628.googl" + + "e.cloud.vmmigration.v1.AwsSourceVmDetails.FirmwareB\003\340A\003\022$\n" + + "\027committed_storage_bytes\030\002 \001(\003B\003\340A\003\022R\n" + + "\005disks\030\003 \003(\0132>.google.cl" + + "oud.vmmigration.v1.AwsSourceVmDetails.AwsDiskDetailsB\003\340A\003\022N\n" + + "\024vm_capabilities_info\030\005" + + " \001(\0132+.google.cloud.vmmigration.v1.VmCapabilitiesB\003\340A\003\022F\n" + + "\014architecture\030\006 \001(\0162" + + "+.google.cloud.vmmigration.v1.VmArchitectureB\003\340A\003\032X\n" + + "\016AwsDiskDetails\022\030\n" + + "\013disk_number\030\001 \001(\005B\003\340A\003\022\026\n" + + "\tvolume_id\030\002 \001(\tB\003\340A\003\022\024\n" + + "\007size_gb\030\003 \001(\003B\003\340A\003\"7\n" + + "\010Firmware\022\030\n" + + "\024FIRMWARE_UNSPECIFIED\020\000\022\007\n" + + "\003EFI\020\001\022\010\n" + + "\004BIOS\020\002\"\222\004\n" + + "\024AzureSourceVmDetails\022Q\n" + + "\010firmware\030\001 \001(\0162" + + ":.google.cloud.vmmigration.v1.AzureSourceVmDetails.FirmwareB\003\340A\003\022$\n" + + "\027committed_storage_bytes\030\002 \001(\003B\003\340A\003\022V\n" + + "\005disks\030\003 \003(\0132B." + + "google.cloud.vmmigration.v1.AzureSourceVmDetails.AzureDiskDetailsB\003\340A\003\022N\n" + + "\024vm_capabilities_info\030\005" + + " \001(\0132+.google.cloud.vmmigration.v1.VmCapabilitiesB\003\340A\003\022F\n" + + "\014architecture\030\006" + + " \001(\0162+.google.cloud.vmmigration.v1.VmArchitectureB\003\340A\003\032X\n" + + "\020AzureDiskDetails\022\030\n" + + "\013disk_number\030\001 \001(\005B\003\340A\003\022\024\n" + + "\007disk_id\030\002 \001(\tB\003\340A\003\022\024\n" + + "\007size_gb\030\003 \001(\003B\003\340A\003\"7\n" + "\010Firmware\022\030\n" + "\024FIRMWARE_UNSPECIFIED\020\000\022\007\n" + "\003EFI\020\001\022\010\n" @@ -1364,286 +2029,732 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + "\010order_by\030\005 \001(\tB\003\340A\001\"\247\001\n" + "\035ListReplicationCyclesResponse\022N\n" - + "\022replication_cycles\030\001" - + " \003(\0132-.google.cloud.vmmigration.v1.ReplicationCycleB\003\340A\003\022\034\n" + + "\022replication_cycles\030\001 \003(\0132-.google.clou" + + "d.vmmigration.v1.ReplicationCycleB\003\340A\003\022\034\n" + "\017next_page_token\030\002 \001(\tB\003\340A\003\022\030\n" + "\013unreachable\030\003 \003(\tB\003\340A\003\"_\n" + "\032GetReplicationCycleRequest\022A\n" + "\004name\030\001 \001(\tB3\340A\002\372A-\n" - + "+vmmigration.googleapis.com/ReplicationCycle*U\n" - + "\025UtilizationReportView\022\'\n" - + "#UTILIZATION_REPORT_VIEW_UNSPECIFIED\020\000\022\t\n" - + "\005BASIC\020\001\022\010\n" - + "\004FULL\020\002*m\n" - + "\017MigratingVmView\022!\n" - + "\035MIGRATING_VM_VIEW_UNSPECIFIED\020\000\022\033\n" - + "\027MIGRATING_VM_VIEW_BASIC\020\001\022\032\n" - + "\026MIGRATING_VM_VIEW_FULL\020\002*\261\001\n" - + "\025ComputeEngineDiskType\022(\n" - + "$COMPUTE_ENGINE_DISK_TYPE_UNSPECIFIED\020\000\022%\n" - + "!COMPUTE_ENGINE_DISK_TYPE_STANDARD\020\001\022 \n" - + "\034COMPUTE_ENGINE_DISK_TYPE_SSD\020\002\022%\n" - + "!COMPUTE_ENGINE_DISK_TYPE_BALANCED\020\003*\217\001\n" - + "\030ComputeEngineLicenseType\022\'\n" - + "#COMPUTE_ENGINE_LICENSE_TYPE_DEFAULT\020\000\022$\n" - + " COMPUTE_ENGINE_LICENSE_TYPE_PAYG\020\001\022$\n" - + " COMPUTE_ENGINE_LICENSE_TYPE_BYOL\020\002*\216\001\n" - + "\027ComputeEngineBootOption\022*\n" - + "&COMPUTE_ENGINE_BOOT_OPTION_UNSPECIFIED\020\000\022\"\n" - + "\036COMPUTE_ENGINE_BOOT_OPTION_EFI\020\001\022#\n" - + "\037COMPUTE_ENGINE_BOOT_OPTION_BIOS\020\0022\211S\n" - + "\013VmMigration\022\256\001\n" - + "\013ListSources\022/.google.cloud.vmmigration.v1.ListSourcesRe" - + "quest\0320.google.cloud.vmmigration.v1.List" - + "SourcesResponse\"<\332A\006parent\202\323\344\223\002-\022+/v1/{p" - + "arent=projects/*/locations/*}/sources\022\233\001\n" - + "\tGetSource\022-.google.cloud.vmmigration.v1.GetSourceRequest\032#.google.cloud.vmmigr" - + "ation.v1.Source\":\332A\004name\202\323\344\223\002-\022+/v1/{name=projects/*/locations/*/sources/*}\022\324\001\n" - + "\014CreateSource\0220.google.cloud.vmmigration." - + "v1.CreateSourceRequest\032\035.google.longrunning.Operation\"s\312A\033\n" - + "\006Source\022\021OperationMet" - + "adata\332A\027parent,source,source_id\202\323\344\223\0025\"+/" - + "v1/{parent=projects/*/locations/*}/sources:\006source\022\326\001\n" - + "\014UpdateSource\0220.google.clo" - + "ud.vmmigration.v1.UpdateSourceRequest\032\035.google.longrunning.Operation\"u\312A\033\n" - + "\006Source\022\021OperationMetadata\332A\022source,update_mas" - + "k\202\323\344\223\002<22/v1/{source.name=projects/*/locations/*/sources/*}:\006source\022\310\001\n" - + "\014DeleteSource\0220.google.cloud.vmmigration.v1.Delet" - + "eSourceRequest\032\035.google.longrunning.Operation\"g\312A*\n" - + "\025google.protobuf.Empty\022\021Opera" - + "tionMetadata\332A\004name\202\323\344\223\002-*+/v1/{name=projects/*/locations/*/sources/*}\022\310\001\n" - + "\016FetchInventory\0222.google.cloud.vmmigration.v1." - + "FetchInventoryRequest\0323.google.cloud.vmm" - + "igration.v1.FetchInventoryResponse\"M\332A\006s" - + "ource\202\323\344\223\002>\022.google.c" + + "loud.vmmigration.v1.ImageImportOsAdaptationParametersB\003\340A\001H\000\022W\n" + + "\026data_disk_image_import\030\014" + + " \001(\01320.google.cloud.vmmigration.v1.DataDiskImageImportB\003\340A\001H\000\022\027\n\n" + + "image_name\030\001 \001(\tB\003\340A\002\022H\n" + + "\016target_project\030\002 \001(\tB0\340A\002\372A*\n" + + "(vmmigration.googleapis.com/TargetProject\022\030\n" + + "\013description\030\005 \001(\tB\003\340A\001\022\030\n" + + "\013family_name\030\006 \001(\tB\003\340A\001\022T\n" + + "\006labels\030\007 \003(\0132?.g" + + "oogle.cloud.vmmigration.v1.DiskImageTargetDetails.LabelsEntryB\003\340A\001\022 \n" + + "\023additional_licenses\030\010 \003(\tB\003\340A\001\022\"\n" + + "\025single_region_storage\030\t \001(\010B\003\340A\001\022@\n\n" + + "encryption\030\n" + + " \001(\0132\'.google.cloud.vmmigration.v1.EncryptionB\003\340A\005\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001B\026\n" + + "\024os_adaptation_config\"\374\007\n" + + "\031MachineImageTargetDetails\022g\n" + + "\030os_adaptation_parameters\030\003 \001(\0132>.google.cloud.vmmigra" + + "tion.v1.ImageImportOsAdaptationParametersB\003\340A\001H\000\022P\n" + + "\022skip_os_adaptation\030\020 \001(\0132-.g" + + "oogle.cloud.vmmigration.v1.SkipOsAdaptationB\003\340A\001H\000\022\037\n" + + "\022machine_image_name\030\001 \001(\tB\003\340A\002\022H\n" + + "\016target_project\030\002 \001(\tB0\340A\002\372A*\n" + + "(vmmigration.googleapis.com/TargetProject\022\030\n" + + "\013description\030\004 \001(\tB\003\340A\001\022\"\n" + + "\025single_region_storage\030\005 \001(\010B\003\340A\001\022@\n\n" + + "encryption\030\006 \001(\0132" + + "\'.google.cloud.vmmigration.v1.EncryptionB\003\340A\005\022m\n" + + "\"machine_image_parameters_overrides\030\007" + + " \001(\0132<.google.cloud.vmmigration.v1.MachineImageParametersOverridesB\003\340A\001\022I\n" + + "\017service_account\030\010" + + " \001(\0132+.google.cloud.vmmigration.v1.ServiceAccountB\003\340A\001\022 \n" + + "\023additional_licenses\030\t \003(\tB\003\340A\001\022W\n" + + "\006labels\030\n" + + " \003(" + + "\0132B.google.cloud.vmmigration.v1.MachineImageTargetDetails.LabelsEntryB\003\340A\001\022\021\n" + + "\004tags\030\013 \003(\tB\003\340A\001\022Z\n" + + "\030shielded_instance_config\030\014" + + " \001(\01323.google.cloud.vmmigration.v1.ShieldedInstanceConfigB\003\340A\001\022N\n" + + "\022network_interfaces\030\r" + + " \003(\0132-.google.cloud.vmmigration.v1.NetworkInterfaceB\003\340A\001\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001B\026\n" + + "\024os_adaptation_config\"_\n" + + "\016ServiceAccount\0228\n" + + "\005email\030\001 \001(\tB)\340A\002\372A#\n" + + "!iam.googleapis.com/ServiceAccount\022\023\n" + + "\006scopes\030\002 \003(\tB\003\340A\001\"\366\001\n" + + "\026ShieldedInstanceConfig\022X\n" + + "\013secure_boot\030\001 \001(" + + "\0162>.google.cloud.vmmigration.v1.ShieldedInstanceConfig.SecureBootB\003\340A\001\022\030\n" + + "\013enable_vtpm\030\002 \001(\010B\003\340A\001\022(\n" + + "\033enable_integrity_monitoring\030\003 \001(\010B\003\340A\001\">\n\n" + + "SecureBoot\022\033\n" + + "\027SECURE_BOOT_UNSPECIFIED\020\000\022\010\n" + + "\004TRUE\020\001\022\t\n" + + "\005FALSE\020\002\"<\n" + + "\037MachineImageParametersOverrides\022\031\n" + + "\014machine_type\030\001 \001(\tB\003\340A\001\"\331\001\n" + + "!ImageImportOsAdaptationParameters\022\027\n\n" + + "generalize\030\001 \001(\010B\003\340A\001\022P\n" + + "\014license_type\030\002 \001(\01625.google.c" + + "loud.vmmigration.v1.ComputeEngineLicenseTypeB\003\340A\001\022I\n" + + "\017boot_conversion\030\003 \001(\0162+.goo" + + "gle.cloud.vmmigration.v1.BootConversionB\003\340A\001\"\025\n" + + "\023DataDiskImageImport\"\022\n" + + "\020SkipOsAdaptation\"U\n" + + "\025GetImageImportRequest\022<\n" + + "\004name\030\001 \001(\tB.\340A\002\372A(\n" + + "&vmmigration.googleapis.com/ImageImport\"\266\001\n" + + "\027ListImageImportsRequest\022>\n" + + "\006parent\030\001 \001(" + + "\tB.\340A\002\372A(\022&vmmigration.googleapis.com/ImageImport\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\"\230\001\n" + + "\030ListImageImportsResponse\022D\n\r" + + "image_imports\030\001" + + " \003(\0132(.google.cloud.vmmigration.v1.ImageImportB\003\340A\003\022\034\n" + + "\017next_page_token\030\002 \001(\tB\003\340A\003\022\030\n" + + "\013unreachable\030\003 \003(\tB\003\340A\003\"\326\001\n" + + "\030CreateImageImportRequest\022>\n" + + "\006parent\030\001 \001(\tB" + + ".\340A\002\372A(\022&vmmigration.googleapis.com/ImageImport\022\034\n" + + "\017image_import_id\030\002 \001(\tB\003\340A\002\022C\n" + + "\014image_import\030\003" + + " \001(\0132(.google.cloud.vmmigration.v1.ImageImportB\003\340A\002\022\027\n\n" + + "request_id\030\004 \001(\tB\003\340A\001\"q\n" + + "\030DeleteImageImportRequest\022<\n" + + "\004name\030\001 \001(\tB.\340A\002\372A(\n" + + "&vmmigration.googleapis.com/ImageImport\022\027\n\n" + + "request_id\030\002 \001(\tB\003\340A\001\"[\n" + + "\030GetImageImportJobRequest\022?\n" + + "\004name\030\001 \001(\tB1\340A\002\372A+\n" + + ")vmmigration.googleapis.com/ImageImportJob\"\274\001\n" + + "\032ListImageImportJobsRequest\022A\n" + + "\006parent\030\001 \001(" + + "\tB1\340A\002\372A+\022)vmmigration.googleapis.com/ImageImportJob\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\"\242\001\n" + + "\033ListImageImportJobsResponse\022K\n" + + "\021image_import_jobs\030\001 \003(\0132+.google.c" + + "loud.vmmigration.v1.ImageImportJobB\003\340A\003\022\034\n" + + "\017next_page_token\030\002 \001(\tB\003\340A\003\022\030\n" + + "\013unreachable\030\003 \003(\tB\003\340A\003\"^\n" + + "\033CancelImageImportJobRequest\022?\n" + + "\004name\030\001 \001(\tB1\340A\002\372A+\n" + + ")vmmigration.googleapis.com/ImageImportJob\"\036\n" + + "\034CancelImageImportJobResponse\"\274\006\n" + + "\020DiskMigrationJob\022T\n" + + "\027aws_source_disk_details\030\002 \001(\01321." + + "google.cloud.vmmigration.v1.AwsSourceDiskDetailsH\000\022\024\n" + + "\004name\030\001 \001(\tB\006\340A\010\340A\003\022W\n" + + "\016target_details\030\003 \001(\0132:.google.cloud.vmmigrat" + + "ion.v1.DiskMigrationJobTargetDetailsB\003\340A\002\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\022G\n" + + "\005state\030\006" + + " \001(\01623.google.cloud.vmmigration.v1.DiskMigrationJob.StateB\003\340A\003\022\'\n" + + "\006errors\030\007 \003(\0132\022.google.rpc.StatusB\003\340A\003\022B\n" + + "\005steps\030\010 \003(\0132." + + ".google.cloud.vmmigration.v1.DiskMigrationStepB\003\340A\003\"p\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\t\n" + + "\005READY\020\001\022\013\n" + + "\007RUNNING\020\003\022\r\n" + + "\tSUCCEEDED\020\004\022\016\n\n" + + "CANCELLING\020\005\022\r\n" + + "\tCANCELLED\020\006\022\n\n" + + "\006FAILED\020\007:\267\001\352A\263\001\n" + + "+vmmigration.googleapis.com/DiskMigrationJob\022_projects/{project}/lo" + + "cations/{location}/sources/{source}/disk" + + "MigrationJobs/{disk_migration_job}*\021diskMigrationJobs2\020diskMigrationJobB\025\n" + + "\023source_disk_details\"\225\003\n" + + "\035DiskMigrationJobTargetDetails\022J\n" + + "\013target_disk\030\010 \001(\0132..google.c" + + "loud.vmmigration.v1.ComputeEngineDiskB\003\340A\002H\000\022H\n" + + "\016target_project\030\002 \001(\tB0\340A\002\372A*\n" + + "(vmmigration.googleapis.com/TargetProject\022[\n" + + "\006labels\030\006 \003(\0132F.google.cloud.vmmigratio" + + "n.v1.DiskMigrationJobTargetDetails.LabelsEntryB\003\340A\001\022@\n\n" + + "encryption\030\007" + + " \001(\0132\'.google.cloud.vmmigration.v1.EncryptionB\003\340A\001\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001B\020\n" + + "\016target_storage\"\252\003\n" + + "\021DiskMigrationStep\022d\n" + + "\035creating_source_disk_snapshot\030\003 " + + "\001(\0132;.google.cloud.vmmigration.v1.CreatingSourceDiskSnapshotStepH\000\022b\n" + + "\034copying_source_disk_snapshot\030\004 \001(\0132:.google.cloud." + + "vmmigration.v1.CopyingSourceDiskSnapshotStepH\000\022[\n" + + "\030provisioning_target_disk\030\005 \001(\013" + + "27.google.cloud.vmmigration.v1.ProvisioningTargetDiskStepH\000\0223\n\n" + + "start_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\003B\006\n" + + "\004step\" \n" + + "\036CreatingSourceDiskSnapshotStep\"\037\n" + + "\035CopyingSourceDiskSnapshotStep\"\034\n" + + "\032ProvisioningTargetDiskStep\"\360\001\n" + + "\021ComputeEngineDisk\022\024\n" + + "\007disk_id\030\001 \001(\tB\003\340A\001\0227\n" + + "\004zone\030\002 \001(\tB)\340A\002\372A#\n" + + "!locations.googleapis.com/Location\022@\n\r" + + "replica_zones\030\003 \003(\tB)\340A\001\372A#\n" + + "!locations.googleapis.com/Location\022J\n" + + "\tdisk_type\030\004" + + " \001(\01622.google.cloud.vmmigration.v1.ComputeEngineDiskTypeB\003\340A\002\"\372\002\n" + + "\024AwsSourceDiskDetails\022\026\n" + + "\tvolume_id\030\001 \001(\tB\003\340A\002\022\025\n" + + "\010size_gib\030\002 \001(\003B\003\340A\003\022Q\n" + + "\tdisk_type\030\003 \001" + + "(\01626.google.cloud.vmmigration.v1.AwsSourceDiskDetails.TypeB\006\340A\001\340A\003\022Q\n" + + "\004tags\030\004 \003(\013" + + "2;.google.cloud.vmmigration.v1.AwsSourceDiskDetails.TagsEntryB\006\340A\001\340A\003\032+\n" + + "\tTagsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"`\n" + + "\004Type\022\024\n" + + "\020TYPE_UNSPECIFIED\020\000\022\007\n" + + "\003GP2\020\001\022\007\n" + + "\003GP3\020\002\022\007\n" + + "\003IO1\020\003\022\007\n" + + "\003IO2\020\004\022\007\n" + + "\003ST1\020\005\022\007\n" + + "\003SC1\020\006\022\014\n" + + "\010STANDARD\020\007\"\371\001\n" + + "\035CreateDiskMigrationJobRequest\022C\n" + + "\006parent\030\001 \001(" + + "\tB3\340A\002\372A-\022+vmmigration.googleapis.com/DiskMigrationJob\022\"\n" + + "\025disk_migration_job_id\030\002 \001(\tB\003\340A\002\022N\n" + + "\022disk_migration_job\030\003" + + " \001(\0132-.google.cloud.vmmigration.v1.DiskMigrationJobB\003\340A\002\022\037\n\n" + + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\300\001\n" + + "\034ListDiskMigrationJobsRequest\022C\n" + + "\006parent\030\001 \001(\tB3\340A\002\372A" + + "-\022+vmmigration.googleapis.com/DiskMigrationJob\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\"\321\001\n" + + "\035ListDiskMigrationJobsResponse\022O\n" + + "\023disk_migration_jobs\030\001 \003" + + "(\0132-.google.cloud.vmmigration.v1.DiskMigrationJobB\003\340A\003\022\037\n" + + "\017next_page_token\030\002 \001(\tB\006\340A\003\340A\001\022>\n" + + "\013unreachable\030\003 \003(\tB)\340A\003\372A#\n" + + "!locations.googleapis.com/Location\"_\n" + + "\032GetDiskMigrationJobRequest\022A\n" + + "\004name\030\001 \001(\tB3\340A\002\372A-\n" + + "+vmmigration.googleapis.com/DiskMigrationJob\"\306\001\n" + + "\035UpdateDiskMigrationJobRequest\0224\n" + + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022N\n" + + "\022disk_migration_job\030\002" + + " \001(\0132-.google.cloud.vmmigration.v1.DiskMigrationJobB\003\340A\002\022\037\n\n" + + "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"b\n" + + "\035DeleteDiskMigrationJobRequest\022A\n" + + "\004name\030\001 \001(\tB3\340A\002\372A-\n" + + "+vmmigration.googleapis.com/DiskMigrationJob\"_\n" + + "\032RunDiskMigrationJobRequest\022A\n" + + "\004name\030\001 \001(\tB3\340A\002\372A-\n" + + "+vmmigration.googleapis.com/DiskMigrationJob\"\035\n" + + "\033RunDiskMigrationJobResponse\"b\n" + + "\035CancelDiskMigrationJobRequest\022A\n" + + "\004name\030\001 \001(\tB3\340A\002\372A-\n" + + "+vmmigration.googleapis.com/DiskMigrationJob\" \n" + + "\036CancelDiskMigrationJobResponse*\342\001\n" + + "\025ComputeEngineDiskType\022(\n" + + "$COMPUTE_ENGINE_DISK_TYPE_UNSPECIFIED\020\000\022%\n" + + "!COMPUTE_ENGINE_DISK_TYPE_STANDARD\020\001\022 \n" + + "\034COMPUTE_ENGINE_DISK_TYPE_SSD\020\002\022%\n" + + "!COMPUTE_ENGINE_DISK_TYPE_BALANCED\020\003\022/\n" + + "+COMPUTE_ENGINE_DISK_TYPE_HYPERDISK_BALANCED\020\004*\217\001\n" + + "\030ComputeEngineLicenseType\022\'\n" + + "#COMPUTE_ENGINE_LICENSE_TYPE_DEFAULT\020\000\022$\n" + + " COMPUTE_ENGINE_LICENSE_TYPE_PAYG\020\001\022$\n" + + " COMPUTE_ENGINE_LICENSE_TYPE_BYOL\020\002*\216\001\n" + + "\027ComputeEngineBootOption\022*\n" + + "&COMPUTE_ENGINE_BOOT_OPTION_UNSPECIFIED\020\000\022\"\n" + + "\036COMPUTE_ENGINE_BOOT_OPTION_EFI\020\001\022#\n" + + "\037COMPUTE_ENGINE_BOOT_OPTION_BIOS\020\002*\251\001\n" + + "\014OsCapability\022\035\n" + + "\031OS_CAPABILITY_UNSPECIFIED\020\000\022%\n" + + "!OS_CAPABILITY_NVME_STORAGE_ACCESS\020\001\022)\n" + + "%OS_CAPABILITY_GVNIC_NETWORK_INTERFACE\020\002\022(\n" + + "$OS_CAPABILITY_IDPF_NETWORK_INTERFACE\020\003*L\n" + + "\016BootConversion\022\037\n" + + "\033BOOT_CONVERSION_UNSPECIFIED\020\000\022\010\n" + + "\004NONE\020\001\022\017\n" + + "\013BIOS_TO_EFI\020\002*U\n" + + "\025UtilizationReportView\022\'\n" + + "#UTILIZATION_REPORT_VIEW_UNSPECIFIED\020\000\022\t\n" + + "\005BASIC\020\001\022\010\n" + + "\004FULL\020\002*m\n" + + "\017MigratingVmView\022!\n" + + "\035MIGRATING_VM_VIEW_UNSPECIFIED\020\000\022\033\n" + + "\027MIGRATING_VM_VIEW_BASIC\020\001\022\032\n" + + "\026MIGRATING_VM_VIEW_FULL\020\002*l\n" + + "\016VmArchitecture\022\037\n" + + "\033VM_ARCHITECTURE_UNSPECIFIED\020\000\022\036\n" + + "\032VM_ARCHITECTURE_X86_FAMILY\020\001\022\031\n" + + "\025VM_ARCHITECTURE_ARM64\020\002*|\n" + + "\030ComputeEngineNetworkTier\022+\n" + + "\'COMPUTE_ENGINE_NETWORK_TIER_UNSPECIFIED\020\000\022\031\n" + + "\025NETWORK_TIER_STANDARD\020\001\022\030\n" + + "\024NETWORK_TIER_PREMIUM\020\0022\353p\n" + + "\013VmMigration\022\256\001\n" + + "\013ListSources\022/.google.cloud.vmmigration.v1.Li" + + "stSourcesRequest\0320.google.cloud.vmmigrat" + + "ion.v1.ListSourcesResponse\"<\332A\006parent\202\323\344" + + "\223\002-\022+/v1/{parent=projects/*/locations/*}/sources\022\233\001\n" + + "\tGetSource\022-.google.cloud.vmmigration.v1.GetSourceRequest\032#.google.c" + + "loud.vmmigration.v1.Source\":\332A\004name\202\323\344\223\002" + + "-\022+/v1/{name=projects/*/locations/*/sources/*}\022\324\001\n" + + "\014CreateSource\0220.google.cloud.v" + + "mmigration.v1.CreateSourceRequest\032\035.google.longrunning.Operation\"s\312A\033\n" + + "\006Source\022\021OperationMetadata\332A\027parent,source,source_" + + "id\202\323\344\223\0025\"+/v1/{parent=projects/*/locations/*}/sources:\006source\022\326\001\n" + + "\014UpdateSource\0220.google.cloud.vmmigration.v1.UpdateSourc" + + "eRequest\032\035.google.longrunning.Operation\"u\312A\033\n" + + "\006Source\022\021OperationMetadata\332A\022source" + + ",update_mask\202\323\344\223\002<22/v1/{source.name=pro" + + "jects/*/locations/*/sources/*}:\006source\022\310\001\n" + + "\014DeleteSource\0220.google.cloud.vmmigrati" + + "on.v1.DeleteSourceRequest\032\035.google.longrunning.Operation\"g\312A*\n" + + "\025google.protobuf.E" + + "mpty\022\021OperationMetadata\332A\004name\202\323\344\223\002-*+/v" + + "1/{name=projects/*/locations/*/sources/*}\022\310\001\n" + + "\016FetchInventory\0222.google.cloud.vmmigration.v1.FetchInventoryRequest\0323.googl" + + "e.cloud.vmmigration.v1.FetchInventoryRes" + + "ponse\"M\332A\006source\202\323\344\223\002>\022 + * The hostname of the vcenter. + * + * + * string resolved_vcenter_host = 5; + * + * @return The resolvedVcenterHost. + */ + @java.lang.Override + public java.lang.String getResolvedVcenterHost() { + java.lang.Object ref = resolvedVcenterHost_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resolvedVcenterHost_ = s; + return s; + } + } + + /** + * + * + *
        +   * The hostname of the vcenter.
        +   * 
        + * + * string resolved_vcenter_host = 5; + * + * @return The bytes for resolvedVcenterHost. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResolvedVcenterHostBytes() { + java.lang.Object ref = resolvedVcenterHost_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resolvedVcenterHost_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -308,6 +362,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(thumbprint_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, thumbprint_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resolvedVcenterHost_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, resolvedVcenterHost_); + } getUnknownFields().writeTo(output); } @@ -329,6 +386,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(thumbprint_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, thumbprint_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resolvedVcenterHost_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, resolvedVcenterHost_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -349,6 +409,7 @@ public boolean equals(final java.lang.Object obj) { if (!getPassword().equals(other.getPassword())) return false; if (!getVcenterIp().equals(other.getVcenterIp())) return false; if (!getThumbprint().equals(other.getThumbprint())) return false; + if (!getResolvedVcenterHost().equals(other.getResolvedVcenterHost())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -368,6 +429,8 @@ public int hashCode() { hash = (53 * hash) + getVcenterIp().hashCode(); hash = (37 * hash) + THUMBPRINT_FIELD_NUMBER; hash = (53 * hash) + getThumbprint().hashCode(); + hash = (37 * hash) + RESOLVED_VCENTER_HOST_FIELD_NUMBER; + hash = (53 * hash) + getResolvedVcenterHost().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -513,6 +576,7 @@ public Builder clear() { password_ = ""; vcenterIp_ = ""; thumbprint_ = ""; + resolvedVcenterHost_ = ""; return this; } @@ -561,6 +625,9 @@ private void buildPartial0(com.google.cloud.vmmigration.v1.VmwareSourceDetails r if (((from_bitField0_ & 0x00000008) != 0)) { result.thumbprint_ = thumbprint_; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.resolvedVcenterHost_ = resolvedVcenterHost_; + } } @java.lang.Override @@ -629,6 +696,11 @@ public Builder mergeFrom(com.google.cloud.vmmigration.v1.VmwareSourceDetails oth bitField0_ |= 0x00000008; onChanged(); } + if (!other.getResolvedVcenterHost().isEmpty()) { + resolvedVcenterHost_ = other.resolvedVcenterHost_; + bitField0_ |= 0x00000010; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -679,6 +751,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 34 + case 42: + { + resolvedVcenterHost_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1147,6 +1225,117 @@ public Builder setThumbprintBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object resolvedVcenterHost_ = ""; + + /** + * + * + *
        +     * The hostname of the vcenter.
        +     * 
        + * + * string resolved_vcenter_host = 5; + * + * @return The resolvedVcenterHost. + */ + public java.lang.String getResolvedVcenterHost() { + java.lang.Object ref = resolvedVcenterHost_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resolvedVcenterHost_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * The hostname of the vcenter.
        +     * 
        + * + * string resolved_vcenter_host = 5; + * + * @return The bytes for resolvedVcenterHost. + */ + public com.google.protobuf.ByteString getResolvedVcenterHostBytes() { + java.lang.Object ref = resolvedVcenterHost_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resolvedVcenterHost_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * The hostname of the vcenter.
        +     * 
        + * + * string resolved_vcenter_host = 5; + * + * @param value The resolvedVcenterHost to set. + * @return This builder for chaining. + */ + public Builder setResolvedVcenterHost(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resolvedVcenterHost_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
        +     * The hostname of the vcenter.
        +     * 
        + * + * string resolved_vcenter_host = 5; + * + * @return This builder for chaining. + */ + public Builder clearResolvedVcenterHost() { + resolvedVcenterHost_ = getDefaultInstance().getResolvedVcenterHost(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
        +     * The hostname of the vcenter.
        +     * 
        + * + * string resolved_vcenter_host = 5; + * + * @param value The bytes for resolvedVcenterHost to set. + * @return This builder for chaining. + */ + public Builder setResolvedVcenterHostBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resolvedVcenterHost_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmwareSourceDetailsOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmwareSourceDetailsOrBuilder.java index 9ade22e281f5..ef36e85e93cd 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmwareSourceDetailsOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmwareSourceDetailsOrBuilder.java @@ -129,4 +129,30 @@ public interface VmwareSourceDetailsOrBuilder * @return The bytes for thumbprint. */ com.google.protobuf.ByteString getThumbprintBytes(); + + /** + * + * + *
        +   * The hostname of the vcenter.
        +   * 
        + * + * string resolved_vcenter_host = 5; + * + * @return The resolvedVcenterHost. + */ + java.lang.String getResolvedVcenterHost(); + + /** + * + * + *
        +   * The hostname of the vcenter.
        +   * 
        + * + * string resolved_vcenter_host = 5; + * + * @return The bytes for resolvedVcenterHost. + */ + com.google.protobuf.ByteString getResolvedVcenterHostBytes(); } diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmwareSourceVmDetails.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmwareSourceVmDetails.java new file mode 100644 index 000000000000..2ac342d8bd8b --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmwareSourceVmDetails.java @@ -0,0 +1,2875 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +/** + * + * + *
        + * Represent the source Vmware VM details.
        + * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.VmwareSourceVmDetails} + */ +public final class VmwareSourceVmDetails extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.VmwareSourceVmDetails) + VmwareSourceVmDetailsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use VmwareSourceVmDetails.newBuilder() to construct. + private VmwareSourceVmDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private VmwareSourceVmDetails() { + firmware_ = 0; + disks_ = java.util.Collections.emptyList(); + architecture_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VmwareSourceVmDetails(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_VmwareSourceVmDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_VmwareSourceVmDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.class, + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.Builder.class); + } + + /** + * + * + *
        +   * Possible values for Vmware VM firmware.
        +   * 
        + * + * Protobuf enum {@code google.cloud.vmmigration.v1.VmwareSourceVmDetails.Firmware} + */ + public enum Firmware implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
        +     * The firmware is unknown.
        +     * 
        + * + * FIRMWARE_UNSPECIFIED = 0; + */ + FIRMWARE_UNSPECIFIED(0), + /** + * + * + *
        +     * The firmware is EFI.
        +     * 
        + * + * EFI = 1; + */ + EFI(1), + /** + * + * + *
        +     * The firmware is BIOS.
        +     * 
        + * + * BIOS = 2; + */ + BIOS(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
        +     * The firmware is unknown.
        +     * 
        + * + * FIRMWARE_UNSPECIFIED = 0; + */ + public static final int FIRMWARE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
        +     * The firmware is EFI.
        +     * 
        + * + * EFI = 1; + */ + public static final int EFI_VALUE = 1; + + /** + * + * + *
        +     * The firmware is BIOS.
        +     * 
        + * + * BIOS = 2; + */ + public static final int BIOS_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 Firmware 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 Firmware forNumber(int value) { + switch (value) { + case 0: + return FIRMWARE_UNSPECIFIED; + case 1: + return EFI; + case 2: + return BIOS; + 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 Firmware findValueByNumber(int number) { + return Firmware.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.vmmigration.v1.VmwareSourceVmDetails.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Firmware[] VALUES = values(); + + public static Firmware 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 Firmware(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.vmmigration.v1.VmwareSourceVmDetails.Firmware) + } + + public interface VmwareDiskDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +     * Output only. The ordinal number of the disk.
        +     * 
        + * + * int32 disk_number = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The diskNumber. + */ + int getDiskNumber(); + + /** + * + * + *
        +     * Output only. Size in GB.
        +     * 
        + * + * int64 size_gb = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sizeGb. + */ + long getSizeGb(); + + /** + * + * + *
        +     * Output only. The disk label.
        +     * 
        + * + * string label = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The label. + */ + java.lang.String getLabel(); + + /** + * + * + *
        +     * Output only. The disk label.
        +     * 
        + * + * string label = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for label. + */ + com.google.protobuf.ByteString getLabelBytes(); + } + + /** + * + * + *
        +   * The details of a Vmware VM disk.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails} + */ + public static final class VmwareDiskDetails extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails) + VmwareDiskDetailsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use VmwareDiskDetails.newBuilder() to construct. + private VmwareDiskDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private VmwareDiskDetails() { + label_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VmwareDiskDetails(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_VmwareSourceVmDetails_VmwareDiskDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_VmwareSourceVmDetails_VmwareDiskDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails.class, + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails.Builder + .class); + } + + public static final int DISK_NUMBER_FIELD_NUMBER = 1; + private int diskNumber_ = 0; + + /** + * + * + *
        +     * Output only. The ordinal number of the disk.
        +     * 
        + * + * int32 disk_number = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The diskNumber. + */ + @java.lang.Override + public int getDiskNumber() { + return diskNumber_; + } + + public static final int SIZE_GB_FIELD_NUMBER = 2; + private long sizeGb_ = 0L; + + /** + * + * + *
        +     * Output only. Size in GB.
        +     * 
        + * + * int64 size_gb = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sizeGb. + */ + @java.lang.Override + public long getSizeGb() { + return sizeGb_; + } + + public static final int LABEL_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object label_ = ""; + + /** + * + * + *
        +     * Output only. The disk label.
        +     * 
        + * + * string label = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The label. + */ + @java.lang.Override + public java.lang.String getLabel() { + java.lang.Object ref = label_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + label_ = s; + return s; + } + } + + /** + * + * + *
        +     * Output only. The disk label.
        +     * 
        + * + * string label = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for label. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLabelBytes() { + java.lang.Object ref = label_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + label_ = 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 (diskNumber_ != 0) { + output.writeInt32(1, diskNumber_); + } + if (sizeGb_ != 0L) { + output.writeInt64(2, sizeGb_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(label_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, label_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (diskNumber_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, diskNumber_); + } + if (sizeGb_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, sizeGb_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(label_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, label_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails other = + (com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails) obj; + + if (getDiskNumber() != other.getDiskNumber()) return false; + if (getSizeGb() != other.getSizeGb()) return false; + if (!getLabel().equals(other.getLabel())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DISK_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getDiskNumber(); + hash = (37 * hash) + SIZE_GB_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSizeGb()); + hash = (37 * hash) + LABEL_FIELD_NUMBER; + hash = (53 * hash) + getLabel().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails 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.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails parseFrom( + 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.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails 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.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails + 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.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails 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.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 details of a Vmware VM disk.
        +     * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails) + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_VmwareSourceVmDetails_VmwareDiskDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_VmwareSourceVmDetails_VmwareDiskDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails.class, + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails.Builder + .class); + } + + // Construct using + // com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + diskNumber_ = 0; + sizeGb_ = 0L; + label_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_VmwareSourceVmDetails_VmwareDiskDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails + getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails build() { + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails + buildPartial() { + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails result = + new com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.diskNumber_ = diskNumber_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sizeGb_ = sizeGb_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.label_ = label_; + } + } + + @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.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails) { + return mergeFrom( + (com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails other) { + if (other + == com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails + .getDefaultInstance()) return this; + if (other.getDiskNumber() != 0) { + setDiskNumber(other.getDiskNumber()); + } + if (other.getSizeGb() != 0L) { + setSizeGb(other.getSizeGb()); + } + if (!other.getLabel().isEmpty()) { + label_ = other.label_; + 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: + { + diskNumber_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + sizeGb_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + label_ = 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 diskNumber_; + + /** + * + * + *
        +       * Output only. The ordinal number of the disk.
        +       * 
        + * + * int32 disk_number = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The diskNumber. + */ + @java.lang.Override + public int getDiskNumber() { + return diskNumber_; + } + + /** + * + * + *
        +       * Output only. The ordinal number of the disk.
        +       * 
        + * + * int32 disk_number = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The diskNumber to set. + * @return This builder for chaining. + */ + public Builder setDiskNumber(int value) { + + diskNumber_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +       * Output only. The ordinal number of the disk.
        +       * 
        + * + * int32 disk_number = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDiskNumber() { + bitField0_ = (bitField0_ & ~0x00000001); + diskNumber_ = 0; + onChanged(); + return this; + } + + private long sizeGb_; + + /** + * + * + *
        +       * Output only. Size in GB.
        +       * 
        + * + * int64 size_gb = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sizeGb. + */ + @java.lang.Override + public long getSizeGb() { + return sizeGb_; + } + + /** + * + * + *
        +       * Output only. Size in GB.
        +       * 
        + * + * int64 size_gb = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The sizeGb to set. + * @return This builder for chaining. + */ + public Builder setSizeGb(long value) { + + sizeGb_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +       * Output only. Size in GB.
        +       * 
        + * + * int64 size_gb = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSizeGb() { + bitField0_ = (bitField0_ & ~0x00000002); + sizeGb_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object label_ = ""; + + /** + * + * + *
        +       * Output only. The disk label.
        +       * 
        + * + * string label = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The label. + */ + public java.lang.String getLabel() { + java.lang.Object ref = label_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + label_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +       * Output only. The disk label.
        +       * 
        + * + * string label = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for label. + */ + public com.google.protobuf.ByteString getLabelBytes() { + java.lang.Object ref = label_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + label_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +       * Output only. The disk label.
        +       * 
        + * + * string label = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The label to set. + * @return This builder for chaining. + */ + public Builder setLabel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + label_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +       * Output only. The disk label.
        +       * 
        + * + * string label = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearLabel() { + label_ = getDefaultInstance().getLabel(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
        +       * Output only. The disk label.
        +       * 
        + * + * string label = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for label to set. + * @return This builder for chaining. + */ + public Builder setLabelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + label_ = 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.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails) + private static final com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails(); + } + + public static com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VmwareDiskDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int FIRMWARE_FIELD_NUMBER = 1; + private int firmware_ = 0; + + /** + * + * + *
        +   * Output only. The firmware type of the source VM.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.VmwareSourceVmDetails.Firmware firmware = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for firmware. + */ + @java.lang.Override + public int getFirmwareValue() { + return firmware_; + } + + /** + * + * + *
        +   * Output only. The firmware type of the source VM.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.VmwareSourceVmDetails.Firmware firmware = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The firmware. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.Firmware getFirmware() { + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.Firmware result = + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.Firmware.forNumber(firmware_); + return result == null + ? com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.Firmware.UNRECOGNIZED + : result; + } + + public static final int COMMITTED_STORAGE_BYTES_FIELD_NUMBER = 2; + private long committedStorageBytes_ = 0L; + + /** + * + * + *
        +   * Output only. The total size of the disks being migrated in bytes.
        +   * 
        + * + * int64 committed_storage_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The committedStorageBytes. + */ + @java.lang.Override + public long getCommittedStorageBytes() { + return committedStorageBytes_; + } + + public static final int DISKS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List + disks_; + + /** + * + * + *
        +   * Output only. The disks attached to the source VM.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getDisksList() { + return disks_; + } + + /** + * + * + *
        +   * Output only. The disks attached to the source VM.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetailsOrBuilder> + getDisksOrBuilderList() { + return disks_; + } + + /** + * + * + *
        +   * Output only. The disks attached to the source VM.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getDisksCount() { + return disks_.size(); + } + + /** + * + * + *
        +   * Output only. The disks attached to the source VM.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails getDisks( + int index) { + return disks_.get(index); + } + + /** + * + * + *
        +   * Output only. The disks attached to the source VM.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetailsOrBuilder + getDisksOrBuilder(int index) { + return disks_.get(index); + } + + public static final int VM_CAPABILITIES_INFO_FIELD_NUMBER = 5; + private com.google.cloud.vmmigration.v1.VmCapabilities vmCapabilitiesInfo_; + + /** + * + * + *
        +   * Output only. Information about VM capabilities needed for some Compute
        +   * Engine features.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.VmCapabilities vm_capabilities_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the vmCapabilitiesInfo field is set. + */ + @java.lang.Override + public boolean hasVmCapabilitiesInfo() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
        +   * Output only. Information about VM capabilities needed for some Compute
        +   * Engine features.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.VmCapabilities vm_capabilities_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The vmCapabilitiesInfo. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.VmCapabilities getVmCapabilitiesInfo() { + return vmCapabilitiesInfo_ == null + ? com.google.cloud.vmmigration.v1.VmCapabilities.getDefaultInstance() + : vmCapabilitiesInfo_; + } + + /** + * + * + *
        +   * Output only. Information about VM capabilities needed for some Compute
        +   * Engine features.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.VmCapabilities vm_capabilities_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.VmCapabilitiesOrBuilder getVmCapabilitiesInfoOrBuilder() { + return vmCapabilitiesInfo_ == null + ? com.google.cloud.vmmigration.v1.VmCapabilities.getDefaultInstance() + : vmCapabilitiesInfo_; + } + + public static final int ARCHITECTURE_FIELD_NUMBER = 6; + private int architecture_ = 0; + + /** + * + * + *
        +   * Output only. The VM architecture.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.VmArchitecture architecture = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for architecture. + */ + @java.lang.Override + public int getArchitectureValue() { + return architecture_; + } + + /** + * + * + *
        +   * Output only. The VM architecture.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.VmArchitecture architecture = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The architecture. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.VmArchitecture getArchitecture() { + com.google.cloud.vmmigration.v1.VmArchitecture result = + com.google.cloud.vmmigration.v1.VmArchitecture.forNumber(architecture_); + return result == null ? com.google.cloud.vmmigration.v1.VmArchitecture.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 (firmware_ + != com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.Firmware.FIRMWARE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, firmware_); + } + if (committedStorageBytes_ != 0L) { + output.writeInt64(2, committedStorageBytes_); + } + for (int i = 0; i < disks_.size(); i++) { + output.writeMessage(3, disks_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getVmCapabilitiesInfo()); + } + if (architecture_ + != com.google.cloud.vmmigration.v1.VmArchitecture.VM_ARCHITECTURE_UNSPECIFIED.getNumber()) { + output.writeEnum(6, architecture_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (firmware_ + != com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.Firmware.FIRMWARE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, firmware_); + } + if (committedStorageBytes_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, committedStorageBytes_); + } + for (int i = 0; i < disks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, disks_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getVmCapabilitiesInfo()); + } + if (architecture_ + != com.google.cloud.vmmigration.v1.VmArchitecture.VM_ARCHITECTURE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, architecture_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = 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.vmmigration.v1.VmwareSourceVmDetails)) { + return super.equals(obj); + } + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails other = + (com.google.cloud.vmmigration.v1.VmwareSourceVmDetails) obj; + + if (firmware_ != other.firmware_) return false; + if (getCommittedStorageBytes() != other.getCommittedStorageBytes()) return false; + if (!getDisksList().equals(other.getDisksList())) return false; + if (hasVmCapabilitiesInfo() != other.hasVmCapabilitiesInfo()) return false; + if (hasVmCapabilitiesInfo()) { + if (!getVmCapabilitiesInfo().equals(other.getVmCapabilitiesInfo())) return false; + } + if (architecture_ != other.architecture_) 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) + FIRMWARE_FIELD_NUMBER; + hash = (53 * hash) + firmware_; + hash = (37 * hash) + COMMITTED_STORAGE_BYTES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCommittedStorageBytes()); + if (getDisksCount() > 0) { + hash = (37 * hash) + DISKS_FIELD_NUMBER; + hash = (53 * hash) + getDisksList().hashCode(); + } + if (hasVmCapabilitiesInfo()) { + hash = (37 * hash) + VM_CAPABILITIES_INFO_FIELD_NUMBER; + hash = (53 * hash) + getVmCapabilitiesInfo().hashCode(); + } + hash = (37 * hash) + ARCHITECTURE_FIELD_NUMBER; + hash = (53 * hash) + architecture_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vmmigration.v1.VmwareSourceVmDetails parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.VmwareSourceVmDetails 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.vmmigration.v1.VmwareSourceVmDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.VmwareSourceVmDetails parseFrom( + 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.vmmigration.v1.VmwareSourceVmDetails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vmmigration.v1.VmwareSourceVmDetails parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vmmigration.v1.VmwareSourceVmDetails parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.VmwareSourceVmDetails 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.vmmigration.v1.VmwareSourceVmDetails parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.VmwareSourceVmDetails 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.vmmigration.v1.VmwareSourceVmDetails parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vmmigration.v1.VmwareSourceVmDetails 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.vmmigration.v1.VmwareSourceVmDetails prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + + /** + * + * + *
        +   * Represent the source Vmware VM details.
        +   * 
        + * + * Protobuf type {@code google.cloud.vmmigration.v1.VmwareSourceVmDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.VmwareSourceVmDetails) + com.google.cloud.vmmigration.v1.VmwareSourceVmDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_VmwareSourceVmDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_VmwareSourceVmDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.class, + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.Builder.class); + } + + // Construct using com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDisksFieldBuilder(); + getVmCapabilitiesInfoFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + firmware_ = 0; + committedStorageBytes_ = 0L; + if (disksBuilder_ == null) { + disks_ = java.util.Collections.emptyList(); + } else { + disks_ = null; + disksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + vmCapabilitiesInfo_ = null; + if (vmCapabilitiesInfoBuilder_ != null) { + vmCapabilitiesInfoBuilder_.dispose(); + vmCapabilitiesInfoBuilder_ = null; + } + architecture_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vmmigration.v1.VmMigrationProto + .internal_static_google_cloud_vmmigration_v1_VmwareSourceVmDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.VmwareSourceVmDetails getDefaultInstanceForType() { + return com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.VmwareSourceVmDetails build() { + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vmmigration.v1.VmwareSourceVmDetails buildPartial() { + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails result = + new com.google.cloud.vmmigration.v1.VmwareSourceVmDetails(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails result) { + if (disksBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + disks_ = java.util.Collections.unmodifiableList(disks_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.disks_ = disks_; + } else { + result.disks_ = disksBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.vmmigration.v1.VmwareSourceVmDetails result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.firmware_ = firmware_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.committedStorageBytes_ = committedStorageBytes_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.vmCapabilitiesInfo_ = + vmCapabilitiesInfoBuilder_ == null + ? vmCapabilitiesInfo_ + : vmCapabilitiesInfoBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.architecture_ = architecture_; + } + 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.vmmigration.v1.VmwareSourceVmDetails) { + return mergeFrom((com.google.cloud.vmmigration.v1.VmwareSourceVmDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vmmigration.v1.VmwareSourceVmDetails other) { + if (other == com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.getDefaultInstance()) + return this; + if (other.firmware_ != 0) { + setFirmwareValue(other.getFirmwareValue()); + } + if (other.getCommittedStorageBytes() != 0L) { + setCommittedStorageBytes(other.getCommittedStorageBytes()); + } + if (disksBuilder_ == null) { + if (!other.disks_.isEmpty()) { + if (disks_.isEmpty()) { + disks_ = other.disks_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureDisksIsMutable(); + disks_.addAll(other.disks_); + } + onChanged(); + } + } else { + if (!other.disks_.isEmpty()) { + if (disksBuilder_.isEmpty()) { + disksBuilder_.dispose(); + disksBuilder_ = null; + disks_ = other.disks_; + bitField0_ = (bitField0_ & ~0x00000004); + disksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDisksFieldBuilder() + : null; + } else { + disksBuilder_.addAllMessages(other.disks_); + } + } + } + if (other.hasVmCapabilitiesInfo()) { + mergeVmCapabilitiesInfo(other.getVmCapabilitiesInfo()); + } + if (other.architecture_ != 0) { + setArchitectureValue(other.getArchitectureValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + firmware_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + committedStorageBytes_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails m = + input.readMessage( + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails + .parser(), + extensionRegistry); + if (disksBuilder_ == null) { + ensureDisksIsMutable(); + disks_.add(m); + } else { + disksBuilder_.addMessage(m); + } + break; + } // case 26 + case 42: + { + input.readMessage( + getVmCapabilitiesInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 48: + { + architecture_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was 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 firmware_ = 0; + + /** + * + * + *
        +     * Output only. The firmware type of the source VM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.VmwareSourceVmDetails.Firmware firmware = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for firmware. + */ + @java.lang.Override + public int getFirmwareValue() { + return firmware_; + } + + /** + * + * + *
        +     * Output only. The firmware type of the source VM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.VmwareSourceVmDetails.Firmware firmware = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for firmware to set. + * @return This builder for chaining. + */ + public Builder setFirmwareValue(int value) { + firmware_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The firmware type of the source VM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.VmwareSourceVmDetails.Firmware firmware = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The firmware. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.Firmware getFirmware() { + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.Firmware result = + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.Firmware.forNumber(firmware_); + return result == null + ? com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.Firmware.UNRECOGNIZED + : result; + } + + /** + * + * + *
        +     * Output only. The firmware type of the source VM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.VmwareSourceVmDetails.Firmware firmware = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The firmware to set. + * @return This builder for chaining. + */ + public Builder setFirmware( + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.Firmware value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + firmware_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The firmware type of the source VM.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.VmwareSourceVmDetails.Firmware firmware = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearFirmware() { + bitField0_ = (bitField0_ & ~0x00000001); + firmware_ = 0; + onChanged(); + return this; + } + + private long committedStorageBytes_; + + /** + * + * + *
        +     * Output only. The total size of the disks being migrated in bytes.
        +     * 
        + * + * int64 committed_storage_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The committedStorageBytes. + */ + @java.lang.Override + public long getCommittedStorageBytes() { + return committedStorageBytes_; + } + + /** + * + * + *
        +     * Output only. The total size of the disks being migrated in bytes.
        +     * 
        + * + * int64 committed_storage_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The committedStorageBytes to set. + * @return This builder for chaining. + */ + public Builder setCommittedStorageBytes(long value) { + + committedStorageBytes_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The total size of the disks being migrated in bytes.
        +     * 
        + * + * int64 committed_storage_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearCommittedStorageBytes() { + bitField0_ = (bitField0_ & ~0x00000002); + committedStorageBytes_ = 0L; + onChanged(); + return this; + } + + private java.util.List + disks_ = java.util.Collections.emptyList(); + + private void ensureDisksIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + disks_ = + new java.util.ArrayList< + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails>(disks_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails, + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails.Builder, + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetailsOrBuilder> + disksBuilder_; + + /** + * + * + *
        +     * Output only. The disks attached to the source VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getDisksList() { + if (disksBuilder_ == null) { + return java.util.Collections.unmodifiableList(disks_); + } else { + return disksBuilder_.getMessageList(); + } + } + + /** + * + * + *
        +     * Output only. The disks attached to the source VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getDisksCount() { + if (disksBuilder_ == null) { + return disks_.size(); + } else { + return disksBuilder_.getCount(); + } + } + + /** + * + * + *
        +     * Output only. The disks attached to the source VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails getDisks( + int index) { + if (disksBuilder_ == null) { + return disks_.get(index); + } else { + return disksBuilder_.getMessage(index); + } + } + + /** + * + * + *
        +     * Output only. The disks attached to the source VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDisks( + int index, com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails value) { + if (disksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDisksIsMutable(); + disks_.set(index, value); + onChanged(); + } else { + disksBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * Output only. The disks attached to the source VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDisks( + int index, + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails.Builder + builderForValue) { + if (disksBuilder_ == null) { + ensureDisksIsMutable(); + disks_.set(index, builderForValue.build()); + onChanged(); + } else { + disksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Output only. The disks attached to the source VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDisks( + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails value) { + if (disksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDisksIsMutable(); + disks_.add(value); + onChanged(); + } else { + disksBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
        +     * Output only. The disks attached to the source VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDisks( + int index, com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails value) { + if (disksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDisksIsMutable(); + disks_.add(index, value); + onChanged(); + } else { + disksBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * Output only. The disks attached to the source VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDisks( + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails.Builder + builderForValue) { + if (disksBuilder_ == null) { + ensureDisksIsMutable(); + disks_.add(builderForValue.build()); + onChanged(); + } else { + disksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Output only. The disks attached to the source VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDisks( + int index, + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails.Builder + builderForValue) { + if (disksBuilder_ == null) { + ensureDisksIsMutable(); + disks_.add(index, builderForValue.build()); + onChanged(); + } else { + disksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Output only. The disks attached to the source VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllDisks( + java.lang.Iterable< + ? extends com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails> + values) { + if (disksBuilder_ == null) { + ensureDisksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, disks_); + onChanged(); + } else { + disksBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
        +     * Output only. The disks attached to the source VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDisks() { + if (disksBuilder_ == null) { + disks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + disksBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Output only. The disks attached to the source VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeDisks(int index) { + if (disksBuilder_ == null) { + ensureDisksIsMutable(); + disks_.remove(index); + onChanged(); + } else { + disksBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
        +     * Output only. The disks attached to the source VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails.Builder + getDisksBuilder(int index) { + return getDisksFieldBuilder().getBuilder(index); + } + + /** + * + * + *
        +     * Output only. The disks attached to the source VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetailsOrBuilder + getDisksOrBuilder(int index) { + if (disksBuilder_ == null) { + return disks_.get(index); + } else { + return disksBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
        +     * Output only. The disks attached to the source VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetailsOrBuilder> + getDisksOrBuilderList() { + if (disksBuilder_ != null) { + return disksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(disks_); + } + } + + /** + * + * + *
        +     * Output only. The disks attached to the source VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails.Builder + addDisksBuilder() { + return getDisksFieldBuilder() + .addBuilder( + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails + .getDefaultInstance()); + } + + /** + * + * + *
        +     * Output only. The disks attached to the source VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails.Builder + addDisksBuilder(int index) { + return getDisksFieldBuilder() + .addBuilder( + index, + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails + .getDefaultInstance()); + } + + /** + * + * + *
        +     * Output only. The disks attached to the source VM.
        +     * 
        + * + * + * repeated .google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails.Builder> + getDisksBuilderList() { + return getDisksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails, + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails.Builder, + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetailsOrBuilder> + getDisksFieldBuilder() { + if (disksBuilder_ == null) { + disksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails, + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails.Builder, + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetailsOrBuilder>( + disks_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + disks_ = null; + } + return disksBuilder_; + } + + private com.google.cloud.vmmigration.v1.VmCapabilities vmCapabilitiesInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.VmCapabilities, + com.google.cloud.vmmigration.v1.VmCapabilities.Builder, + com.google.cloud.vmmigration.v1.VmCapabilitiesOrBuilder> + vmCapabilitiesInfoBuilder_; + + /** + * + * + *
        +     * Output only. Information about VM capabilities needed for some Compute
        +     * Engine features.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.VmCapabilities vm_capabilities_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the vmCapabilitiesInfo field is set. + */ + public boolean hasVmCapabilitiesInfo() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
        +     * Output only. Information about VM capabilities needed for some Compute
        +     * Engine features.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.VmCapabilities vm_capabilities_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The vmCapabilitiesInfo. + */ + public com.google.cloud.vmmigration.v1.VmCapabilities getVmCapabilitiesInfo() { + if (vmCapabilitiesInfoBuilder_ == null) { + return vmCapabilitiesInfo_ == null + ? com.google.cloud.vmmigration.v1.VmCapabilities.getDefaultInstance() + : vmCapabilitiesInfo_; + } else { + return vmCapabilitiesInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
        +     * Output only. Information about VM capabilities needed for some Compute
        +     * Engine features.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.VmCapabilities vm_capabilities_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setVmCapabilitiesInfo(com.google.cloud.vmmigration.v1.VmCapabilities value) { + if (vmCapabilitiesInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + vmCapabilitiesInfo_ = value; + } else { + vmCapabilitiesInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. Information about VM capabilities needed for some Compute
        +     * Engine features.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.VmCapabilities vm_capabilities_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setVmCapabilitiesInfo( + com.google.cloud.vmmigration.v1.VmCapabilities.Builder builderForValue) { + if (vmCapabilitiesInfoBuilder_ == null) { + vmCapabilitiesInfo_ = builderForValue.build(); + } else { + vmCapabilitiesInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. Information about VM capabilities needed for some Compute
        +     * Engine features.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.VmCapabilities vm_capabilities_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeVmCapabilitiesInfo(com.google.cloud.vmmigration.v1.VmCapabilities value) { + if (vmCapabilitiesInfoBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && vmCapabilitiesInfo_ != null + && vmCapabilitiesInfo_ + != com.google.cloud.vmmigration.v1.VmCapabilities.getDefaultInstance()) { + getVmCapabilitiesInfoBuilder().mergeFrom(value); + } else { + vmCapabilitiesInfo_ = value; + } + } else { + vmCapabilitiesInfoBuilder_.mergeFrom(value); + } + if (vmCapabilitiesInfo_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Output only. Information about VM capabilities needed for some Compute
        +     * Engine features.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.VmCapabilities vm_capabilities_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearVmCapabilitiesInfo() { + bitField0_ = (bitField0_ & ~0x00000008); + vmCapabilitiesInfo_ = null; + if (vmCapabilitiesInfoBuilder_ != null) { + vmCapabilitiesInfoBuilder_.dispose(); + vmCapabilitiesInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. Information about VM capabilities needed for some Compute
        +     * Engine features.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.VmCapabilities vm_capabilities_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.VmCapabilities.Builder getVmCapabilitiesInfoBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getVmCapabilitiesInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Output only. Information about VM capabilities needed for some Compute
        +     * Engine features.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.VmCapabilities vm_capabilities_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vmmigration.v1.VmCapabilitiesOrBuilder + getVmCapabilitiesInfoOrBuilder() { + if (vmCapabilitiesInfoBuilder_ != null) { + return vmCapabilitiesInfoBuilder_.getMessageOrBuilder(); + } else { + return vmCapabilitiesInfo_ == null + ? com.google.cloud.vmmigration.v1.VmCapabilities.getDefaultInstance() + : vmCapabilitiesInfo_; + } + } + + /** + * + * + *
        +     * Output only. Information about VM capabilities needed for some Compute
        +     * Engine features.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.VmCapabilities vm_capabilities_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.VmCapabilities, + com.google.cloud.vmmigration.v1.VmCapabilities.Builder, + com.google.cloud.vmmigration.v1.VmCapabilitiesOrBuilder> + getVmCapabilitiesInfoFieldBuilder() { + if (vmCapabilitiesInfoBuilder_ == null) { + vmCapabilitiesInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vmmigration.v1.VmCapabilities, + com.google.cloud.vmmigration.v1.VmCapabilities.Builder, + com.google.cloud.vmmigration.v1.VmCapabilitiesOrBuilder>( + getVmCapabilitiesInfo(), getParentForChildren(), isClean()); + vmCapabilitiesInfo_ = null; + } + return vmCapabilitiesInfoBuilder_; + } + + private int architecture_ = 0; + + /** + * + * + *
        +     * Output only. The VM architecture.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.VmArchitecture architecture = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for architecture. + */ + @java.lang.Override + public int getArchitectureValue() { + return architecture_; + } + + /** + * + * + *
        +     * Output only. The VM architecture.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.VmArchitecture architecture = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for architecture to set. + * @return This builder for chaining. + */ + public Builder setArchitectureValue(int value) { + architecture_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The VM architecture.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.VmArchitecture architecture = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The architecture. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.VmArchitecture getArchitecture() { + com.google.cloud.vmmigration.v1.VmArchitecture result = + com.google.cloud.vmmigration.v1.VmArchitecture.forNumber(architecture_); + return result == null ? com.google.cloud.vmmigration.v1.VmArchitecture.UNRECOGNIZED : result; + } + + /** + * + * + *
        +     * Output only. The VM architecture.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.VmArchitecture architecture = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The architecture to set. + * @return This builder for chaining. + */ + public Builder setArchitecture(com.google.cloud.vmmigration.v1.VmArchitecture value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + architecture_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The VM architecture.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.VmArchitecture architecture = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearArchitecture() { + bitField0_ = (bitField0_ & ~0x00000010); + architecture_ = 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.vmmigration.v1.VmwareSourceVmDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.VmwareSourceVmDetails) + private static final com.google.cloud.vmmigration.v1.VmwareSourceVmDetails DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.VmwareSourceVmDetails(); + } + + public static com.google.cloud.vmmigration.v1.VmwareSourceVmDetails getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VmwareSourceVmDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static 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.vmmigration.v1.VmwareSourceVmDetails getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmwareSourceVmDetailsOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmwareSourceVmDetailsOrBuilder.java new file mode 100644 index 000000000000..7fc4f079cafb --- /dev/null +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmwareSourceVmDetailsOrBuilder.java @@ -0,0 +1,215 @@ +/* + * 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/vmmigration/v1/vmmigration.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.vmmigration.v1; + +public interface VmwareSourceVmDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.VmwareSourceVmDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Output only. The firmware type of the source VM.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.VmwareSourceVmDetails.Firmware firmware = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for firmware. + */ + int getFirmwareValue(); + + /** + * + * + *
        +   * Output only. The firmware type of the source VM.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.VmwareSourceVmDetails.Firmware firmware = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The firmware. + */ + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.Firmware getFirmware(); + + /** + * + * + *
        +   * Output only. The total size of the disks being migrated in bytes.
        +   * 
        + * + * int64 committed_storage_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The committedStorageBytes. + */ + long getCommittedStorageBytes(); + + /** + * + * + *
        +   * Output only. The disks attached to the source VM.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getDisksList(); + + /** + * + * + *
        +   * Output only. The disks attached to the source VM.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails getDisks(int index); + + /** + * + * + *
        +   * Output only. The disks attached to the source VM.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getDisksCount(); + + /** + * + * + *
        +   * Output only. The disks attached to the source VM.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetailsOrBuilder> + getDisksOrBuilderList(); + + /** + * + * + *
        +   * Output only. The disks attached to the source VM.
        +   * 
        + * + * + * repeated .google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetails disks = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.vmmigration.v1.VmwareSourceVmDetails.VmwareDiskDetailsOrBuilder + getDisksOrBuilder(int index); + + /** + * + * + *
        +   * Output only. Information about VM capabilities needed for some Compute
        +   * Engine features.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.VmCapabilities vm_capabilities_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the vmCapabilitiesInfo field is set. + */ + boolean hasVmCapabilitiesInfo(); + + /** + * + * + *
        +   * Output only. Information about VM capabilities needed for some Compute
        +   * Engine features.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.VmCapabilities vm_capabilities_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The vmCapabilitiesInfo. + */ + com.google.cloud.vmmigration.v1.VmCapabilities getVmCapabilitiesInfo(); + + /** + * + * + *
        +   * Output only. Information about VM capabilities needed for some Compute
        +   * Engine features.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.VmCapabilities vm_capabilities_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.vmmigration.v1.VmCapabilitiesOrBuilder getVmCapabilitiesInfoOrBuilder(); + + /** + * + * + *
        +   * Output only. The VM architecture.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.VmArchitecture architecture = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for architecture. + */ + int getArchitectureValue(); + + /** + * + * + *
        +   * Output only. The VM architecture.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.VmArchitecture architecture = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The architecture. + */ + com.google.cloud.vmmigration.v1.VmArchitecture getArchitecture(); +} diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmwareVmDetails.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmwareVmDetails.java index e8b95c2d534b..a42ff12b171f 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmwareVmDetails.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmwareVmDetails.java @@ -48,6 +48,7 @@ private VmwareVmDetails() { powerState_ = 0; guestDescription_ = ""; bootOption_ = 0; + architecture_ = 0; } @java.lang.Override @@ -412,6 +413,165 @@ private BootOption(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.vmmigration.v1.VmwareVmDetails.BootOption) } + /** + * + * + *
        +   * Possible values for the VM architecture.
        +   * 
        + * + * Protobuf enum {@code google.cloud.vmmigration.v1.VmwareVmDetails.VmArchitecture} + */ + public enum VmArchitecture implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
        +     * The architecture is unknown.
        +     * 
        + * + * VM_ARCHITECTURE_UNSPECIFIED = 0; + */ + VM_ARCHITECTURE_UNSPECIFIED(0), + /** + * + * + *
        +     * The architecture is one of the x86 architectures.
        +     * 
        + * + * VM_ARCHITECTURE_X86_FAMILY = 1; + */ + VM_ARCHITECTURE_X86_FAMILY(1), + /** + * + * + *
        +     * The architecture is ARM64.
        +     * 
        + * + * VM_ARCHITECTURE_ARM64 = 2; + */ + VM_ARCHITECTURE_ARM64(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
        +     * The architecture is unknown.
        +     * 
        + * + * VM_ARCHITECTURE_UNSPECIFIED = 0; + */ + public static final int VM_ARCHITECTURE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
        +     * The architecture is one of the x86 architectures.
        +     * 
        + * + * VM_ARCHITECTURE_X86_FAMILY = 1; + */ + public static final int VM_ARCHITECTURE_X86_FAMILY_VALUE = 1; + + /** + * + * + *
        +     * The architecture is ARM64.
        +     * 
        + * + * VM_ARCHITECTURE_ARM64 = 2; + */ + public static final int VM_ARCHITECTURE_ARM64_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 VmArchitecture 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 VmArchitecture forNumber(int value) { + switch (value) { + case 0: + return VM_ARCHITECTURE_UNSPECIFIED; + case 1: + return VM_ARCHITECTURE_X86_FAMILY; + case 2: + return VM_ARCHITECTURE_ARM64; + 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 VmArchitecture findValueByNumber(int number) { + return VmArchitecture.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.vmmigration.v1.VmwareVmDetails.getDescriptor().getEnumTypes().get(2); + } + + private static final VmArchitecture[] VALUES = values(); + + public static VmArchitecture 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 VmArchitecture(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.vmmigration.v1.VmwareVmDetails.VmArchitecture) + } + public static final int VM_ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -894,6 +1054,49 @@ public com.google.cloud.vmmigration.v1.VmwareVmDetails.BootOption getBootOption( : result; } + public static final int ARCHITECTURE_FIELD_NUMBER = 14; + private int architecture_ = 0; + + /** + * + * + *
        +   * Output only. The CPU architecture.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.VmwareVmDetails.VmArchitecture architecture = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for architecture. + */ + @java.lang.Override + public int getArchitectureValue() { + return architecture_; + } + + /** + * + * + *
        +   * Output only. The CPU architecture.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.VmwareVmDetails.VmArchitecture architecture = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The architecture. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.VmwareVmDetails.VmArchitecture getArchitecture() { + com.google.cloud.vmmigration.v1.VmwareVmDetails.VmArchitecture result = + com.google.cloud.vmmigration.v1.VmwareVmDetails.VmArchitecture.forNumber(architecture_); + return result == null + ? com.google.cloud.vmmigration.v1.VmwareVmDetails.VmArchitecture.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -948,6 +1151,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(13, bootOption_); } + if (architecture_ + != com.google.cloud.vmmigration.v1.VmwareVmDetails.VmArchitecture + .VM_ARCHITECTURE_UNSPECIFIED + .getNumber()) { + output.writeEnum(14, architecture_); + } getUnknownFields().writeTo(output); } @@ -997,6 +1206,12 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, bootOption_); } + if (architecture_ + != com.google.cloud.vmmigration.v1.VmwareVmDetails.VmArchitecture + .VM_ARCHITECTURE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(14, architecture_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1025,6 +1240,7 @@ public boolean equals(final java.lang.Object obj) { if (getCommittedStorageMb() != other.getCommittedStorageMb()) return false; if (!getGuestDescription().equals(other.getGuestDescription())) return false; if (bootOption_ != other.bootOption_) return false; + if (architecture_ != other.architecture_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1060,6 +1276,8 @@ public int hashCode() { hash = (53 * hash) + getGuestDescription().hashCode(); hash = (37 * hash) + BOOT_OPTION_FIELD_NUMBER; hash = (53 * hash) + bootOption_; + hash = (37 * hash) + ARCHITECTURE_FIELD_NUMBER; + hash = (53 * hash) + architecture_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1212,6 +1430,7 @@ public Builder clear() { committedStorageMb_ = 0L; guestDescription_ = ""; bootOption_ = 0; + architecture_ = 0; return this; } @@ -1284,6 +1503,9 @@ private void buildPartial0(com.google.cloud.vmmigration.v1.VmwareVmDetails resul if (((from_bitField0_ & 0x00000800) != 0)) { result.bootOption_ = bootOption_; } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.architecture_ = architecture_; + } } @java.lang.Override @@ -1380,6 +1602,9 @@ public Builder mergeFrom(com.google.cloud.vmmigration.v1.VmwareVmDetails other) if (other.bootOption_ != 0) { setBootOptionValue(other.getBootOptionValue()); } + if (other.architecture_ != 0) { + setArchitectureValue(other.getArchitectureValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1478,6 +1703,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000800; break; } // case 104 + case 112: + { + architecture_ = input.readEnum(); + bitField0_ |= 0x00001000; + break; + } // case 112 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2606,6 +2837,114 @@ public Builder clearBootOption() { return this; } + private int architecture_ = 0; + + /** + * + * + *
        +     * Output only. The CPU architecture.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.VmwareVmDetails.VmArchitecture architecture = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for architecture. + */ + @java.lang.Override + public int getArchitectureValue() { + return architecture_; + } + + /** + * + * + *
        +     * Output only. The CPU architecture.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.VmwareVmDetails.VmArchitecture architecture = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for architecture to set. + * @return This builder for chaining. + */ + public Builder setArchitectureValue(int value) { + architecture_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The CPU architecture.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.VmwareVmDetails.VmArchitecture architecture = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The architecture. + */ + @java.lang.Override + public com.google.cloud.vmmigration.v1.VmwareVmDetails.VmArchitecture getArchitecture() { + com.google.cloud.vmmigration.v1.VmwareVmDetails.VmArchitecture result = + com.google.cloud.vmmigration.v1.VmwareVmDetails.VmArchitecture.forNumber(architecture_); + return result == null + ? com.google.cloud.vmmigration.v1.VmwareVmDetails.VmArchitecture.UNRECOGNIZED + : result; + } + + /** + * + * + *
        +     * Output only. The CPU architecture.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.VmwareVmDetails.VmArchitecture architecture = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The architecture to set. + * @return This builder for chaining. + */ + public Builder setArchitecture( + com.google.cloud.vmmigration.v1.VmwareVmDetails.VmArchitecture value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00001000; + architecture_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The CPU architecture.
        +     * 
        + * + * + * .google.cloud.vmmigration.v1.VmwareVmDetails.VmArchitecture architecture = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearArchitecture() { + bitField0_ = (bitField0_ & ~0x00001000); + architecture_ = 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-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmwareVmDetailsOrBuilder.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmwareVmDetailsOrBuilder.java index d3ea0a2dca85..48050cfba8d2 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmwareVmDetailsOrBuilder.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/VmwareVmDetailsOrBuilder.java @@ -293,4 +293,34 @@ public interface VmwareVmDetailsOrBuilder * @return The bootOption. */ com.google.cloud.vmmigration.v1.VmwareVmDetails.BootOption getBootOption(); + + /** + * + * + *
        +   * Output only. The CPU architecture.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.VmwareVmDetails.VmArchitecture architecture = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for architecture. + */ + int getArchitectureValue(); + + /** + * + * + *
        +   * Output only. The CPU architecture.
        +   * 
        + * + * + * .google.cloud.vmmigration.v1.VmwareVmDetails.VmArchitecture architecture = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The architecture. + */ + com.google.cloud.vmmigration.v1.VmwareVmDetails.VmArchitecture getArchitecture(); } diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/proto/google/cloud/vmmigration/v1/vmmigration.proto b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/proto/google/cloud/vmmigration/v1/vmmigration.proto index e4f34ac98b1b..bc5278327076 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/proto/google/cloud/vmmigration/v1/vmmigration.proto +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/proto/google/cloud/vmmigration/v1/vmmigration.proto @@ -19,9 +19,11 @@ package google.cloud.vmmigration.v1; import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; +import "google/api/field_info.proto"; import "google/api/resource.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/duration.proto"; +import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; import "google/rpc/error_details.proto"; @@ -34,6 +36,18 @@ option java_outer_classname = "VmMigrationProto"; option java_package = "com.google.cloud.vmmigration.v1"; option php_namespace = "Google\\Cloud\\VMMigration\\V1"; option ruby_package = "Google::Cloud::VMMigration::V1"; +option (google.api.resource_definition) = { + type: "cloudkms.googleapis.com/CryptoKey" + pattern: "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}" +}; +option (google.api.resource_definition) = { + type: "iam.googleapis.com/ServiceAccount" + pattern: "projects/{project}/serviceAccounts/{service_account}" +}; +option (google.api.resource_definition) = { + type: "compute.googleapis.com/Image" + pattern: "projects/{project}/global/images/{image}" +}; // VM Migration Service service VmMigration { @@ -107,6 +121,20 @@ service VmMigration { option (google.api.method_signature) = "source"; } + // List remote source's inventory of storage resources. + // The remote source is another cloud vendor (e.g. AWS, Azure). + // The inventory describes the list of existing storage resources in that + // source. Note that this operation lists the resources on the remote source, + // as opposed to listing the MigratingVms resources in the vmmigration + // service. + rpc FetchStorageInventory(FetchStorageInventoryRequest) + returns (FetchStorageInventoryResponse) { + option (google.api.http) = { + get: "/v1/{source=projects/*/locations/*/sources/*}:fetchStorageInventory" + }; + option (google.api.method_signature) = "source,type"; + } + // Lists Utilization Reports of the given Source. rpc ListUtilizationReports(ListUtilizationReportsRequest) returns (ListUtilizationReportsResponse) { @@ -333,6 +361,19 @@ service VmMigration { }; } + // Extend the migrating VM time to live. + rpc ExtendMigration(ExtendMigrationRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{migrating_vm=projects/*/locations/*/sources/*/migratingVms/*}:extendMigration" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "ExtendMigrationResponse" + metadata_type: "OperationMetadata" + }; + } + // Initiates a Clone of a specific migrating VM. rpc CreateCloneJob(CreateCloneJobRequest) returns (google.longrunning.Operation) { @@ -361,7 +402,8 @@ service VmMigration { }; } - // Lists CloneJobs of a given migrating VM. + // Lists the CloneJobs of a migrating VM. Only 25 most recent CloneJobs are + // listed. rpc ListCloneJobs(ListCloneJobsRequest) returns (ListCloneJobsResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*/sources/*/migratingVms/*}/cloneJobs" @@ -407,7 +449,8 @@ service VmMigration { }; } - // Lists CutoverJobs of a given migrating VM. + // Lists the CutoverJobs of a migrating VM. Only 25 most recent CutoverJobs + // are listed. rpc ListCutoverJobs(ListCutoverJobsRequest) returns (ListCutoverJobsResponse) { option (google.api.http) = { @@ -597,35 +640,169 @@ service VmMigration { }; option (google.api.method_signature) = "name"; } -} -// Controls the level of details of a Utilization Report. -enum UtilizationReportView { - // The default / unset value. - // The API will default to FULL on single report request and BASIC for - // multiple reports request. - UTILIZATION_REPORT_VIEW_UNSPECIFIED = 0; + // Lists ImageImports in a given project. + rpc ListImageImports(ListImageImportsRequest) + returns (ListImageImportsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/imageImports" + }; + option (google.api.method_signature) = "parent"; + } - // Get the report metadata, without the list of VMs and their utilization - // info. - BASIC = 1; + // Gets details of a single ImageImport. + rpc GetImageImport(GetImageImportRequest) returns (ImageImport) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/imageImports/*}" + }; + option (google.api.method_signature) = "name"; + } - // Include everything. - FULL = 2; -} + // Creates a new ImageImport in a given project. + rpc CreateImageImport(CreateImageImportRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/imageImports" + body: "image_import" + }; + option (google.api.method_signature) = + "parent,image_import,image_import_id"; + option (google.longrunning.operation_info) = { + response_type: "ImageImport" + metadata_type: "OperationMetadata" + }; + } -// Controls the level of details of a Migrating VM. -enum MigratingVmView { - // View is unspecified. The API will fallback to the default value. - MIGRATING_VM_VIEW_UNSPECIFIED = 0; + // Deletes a single ImageImport. + rpc DeleteImageImport(DeleteImageImportRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/imageImports/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } - // Get the migrating VM basic details. - // The basic details do not include the recent clone jobs and recent cutover - // jobs lists. - MIGRATING_VM_VIEW_BASIC = 1; + // Lists ImageImportJobs in a given project. + rpc ListImageImportJobs(ListImageImportJobsRequest) + returns (ListImageImportJobsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/imageImports/*}/imageImportJobs" + }; + option (google.api.method_signature) = "parent"; + } - // Include everything. - MIGRATING_VM_VIEW_FULL = 2; + // Gets details of a single ImageImportJob. + rpc GetImageImportJob(GetImageImportJobRequest) returns (ImageImportJob) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/imageImports/*/imageImportJobs/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Initiates the cancellation of a running clone job. + rpc CancelImageImportJob(CancelImageImportJobRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/imageImports/*/imageImportJobs/*}:cancel" + body: "*" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "CancelImageImportJobResponse" + metadata_type: "OperationMetadata" + }; + } + + // Creates a new disk migration job in a given Source. + rpc CreateDiskMigrationJob(CreateDiskMigrationJobRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/sources/*}/diskMigrationJobs" + body: "disk_migration_job" + }; + option (google.api.method_signature) = + "parent,disk_migration_job,disk_migration_job_id"; + option (google.longrunning.operation_info) = { + response_type: "DiskMigrationJob" + metadata_type: "OperationMetadata" + }; + } + + // Lists DiskMigrationJobs in a given Source. + rpc ListDiskMigrationJobs(ListDiskMigrationJobsRequest) + returns (ListDiskMigrationJobsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/sources/*}/diskMigrationJobs" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single DiskMigrationJob. + rpc GetDiskMigrationJob(GetDiskMigrationJobRequest) + returns (DiskMigrationJob) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/sources/*/diskMigrationJobs/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates the parameters of a single DiskMigrationJob. + rpc UpdateDiskMigrationJob(UpdateDiskMigrationJobRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{disk_migration_job.name=projects/*/locations/*/sources/*/diskMigrationJobs/*}" + body: "disk_migration_job" + }; + option (google.api.method_signature) = "disk_migration_job,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "DiskMigrationJob" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a single DiskMigrationJob. + rpc DeleteDiskMigrationJob(DeleteDiskMigrationJobRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/sources/*/diskMigrationJobs/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Runs the disk migration job. + rpc RunDiskMigrationJob(RunDiskMigrationJobRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/sources/*/diskMigrationJobs/*}:run" + body: "*" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "RunDiskMigrationJobResponse" + metadata_type: "OperationMetadata" + }; + } + + // Cancels the disk migration job. + rpc CancelDiskMigrationJob(CancelDiskMigrationJobRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/sources/*/diskMigrationJobs/*}:cancel" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "CancelDiskMigrationJobResponse" + metadata_type: "OperationMetadata" + }; + } } // Types of disks supported for Compute Engine VM. @@ -642,6 +819,9 @@ enum ComputeEngineDiskType { // An alternative to SSD persistent disks that balance performance and // cost. COMPUTE_ENGINE_DISK_TYPE_BALANCED = 3; + + // Hyperdisk balanced disk type. + COMPUTE_ENGINE_DISK_TYPE_HYPERDISK_BALANCED = 4; } // Types of licenses used in OS adaptation. @@ -668,6 +848,88 @@ enum ComputeEngineBootOption { COMPUTE_ENGINE_BOOT_OPTION_BIOS = 2; } +// VM operating system (OS) capabilities needed for determining compatibility +// with Compute Engine features supported by the migration. +enum OsCapability { + // This is for API compatibility only and is not in use. + OS_CAPABILITY_UNSPECIFIED = 0; + + // NVMe driver installed and the VM can use NVMe PD or local SSD. + OS_CAPABILITY_NVME_STORAGE_ACCESS = 1; + + // gVNIC virtual NIC driver supported. + OS_CAPABILITY_GVNIC_NETWORK_INTERFACE = 2; + + // IDPF virtual NIC driver supported. + OS_CAPABILITY_IDPF_NETWORK_INTERFACE = 3; +} + +// Possible boot options conversions. +enum BootConversion { + // Unspecified conversion type. + BOOT_CONVERSION_UNSPECIFIED = 0; + + // No conversion. + NONE = 1; + + // Convert from BIOS to EFI. + BIOS_TO_EFI = 2; +} + +// Controls the level of details of a Utilization Report. +enum UtilizationReportView { + // The default / unset value. + // The API will default to FULL on single report request and BASIC for + // multiple reports request. + UTILIZATION_REPORT_VIEW_UNSPECIFIED = 0; + + // Get the report metadata, without the list of VMs and their utilization + // info. + BASIC = 1; + + // Include everything. + FULL = 2; +} + +// Controls the level of details of a Migrating VM. +enum MigratingVmView { + // View is unspecified. The API will fallback to the default value. + MIGRATING_VM_VIEW_UNSPECIFIED = 0; + + // Get the migrating VM basic details. + // The basic details do not include the recent clone jobs and recent cutover + // jobs lists. + MIGRATING_VM_VIEW_BASIC = 1; + + // Include everything. + MIGRATING_VM_VIEW_FULL = 2; +} + +// Possible values for the VM architecture. +enum VmArchitecture { + // The architecture is unknown. + VM_ARCHITECTURE_UNSPECIFIED = 0; + + // The architecture is one of the x86 architectures. + VM_ARCHITECTURE_X86_FAMILY = 1; + + // The architecture is ARM64. + VM_ARCHITECTURE_ARM64 = 2; +} + +// Describes the networking tier used for configuring network access +// configuration. +enum ComputeEngineNetworkTier { + // An unspecified network tier. Will be used as PREMIUM. + COMPUTE_ENGINE_NETWORK_TIER_UNSPECIFIED = 0; + + // A standard network tier. + NETWORK_TIER_STANDARD = 1; + + // A premium network tier. + NETWORK_TIER_PREMIUM = 2; +} + // ReplicationCycle contains information about the current replication cycle // status. message ReplicationCycle { @@ -721,8 +983,13 @@ message ReplicationCycle { // State of the ReplicationCycle. State state = 11; - // Provides details on the state of the cycle in case of an error. - google.rpc.Status error = 12; + // Output only. Provides details on the state of the cycle in case of an + // error. + google.rpc.Status error = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Warnings that occurred during the cycle. + repeated MigrationWarning warnings = 14 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // CycleStep holds information about a step progress. @@ -783,6 +1050,19 @@ message MigratingVm { pattern: "projects/{project}/locations/{location}/sources/{source}/migratingVms/{migrating_vm}" }; + // Expiration holds information about the expiration of a MigratingVm. + message Expiration { + // Output only. Timestamp of when this resource is considered expired. + google.protobuf.Timestamp expire_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The number of times expiration was extended. + int32 extension_count = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Describes whether the expiration can be extended. + bool extendable = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + // The possible values of the state/health of source VM. enum State { // The state was not sampled by the health checks yet. @@ -826,6 +1106,15 @@ message MigratingVm { // The replication process encountered an unrecoverable error and was // aborted. ERROR = 13; + + // The migrating VM has passed its expiration date. It might be possible to + // bring it back to "Active" state by updating the TTL field. For more + // information, see the documentation. + EXPIRED = 14; + + // The migrating VM's has been finalized and migration resources have been + // removed. + FINALIZED_EXPIRED = 17; } // The default configuration of the target VM that will be created in Google @@ -833,13 +1122,24 @@ message MigratingVm { oneof target_vm_defaults { // Details of the target VM in Compute Engine. ComputeEngineTargetDefaults compute_engine_target_defaults = 26; + + // Details of the target Persistent Disks in Compute Engine. + ComputeEngineDisksTargetDefaults compute_engine_disks_target_defaults = 34; } // Details about the source VM. oneof source_vm_details { + // Output only. Details of the VM from a Vmware source. + VmwareSourceVmDetails vmware_source_vm_details = 28 + [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Details of the VM from an AWS source. AwsSourceVmDetails aws_source_vm_details = 29 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Details of the VM from an Azure source. + AzureSourceVmDetails azure_source_vm_details = 30 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Output only. The identifier of the MigratingVm. @@ -879,11 +1179,16 @@ message MigratingVm { google.protobuf.Timestamp state_time = 22 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. The percentage progress of the current running replication - // cycle. + // Output only. Details of the current running replication cycle. ReplicationCycle current_sync_info = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Details of the last replication cycle. This will be updated + // whenever a replication cycle is finished and is not to be confused with + // last_sync which is only updated on successful replication cycles. + ReplicationCycle last_replication_cycle = 32 + [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The group this migrating vm is included in, if any. The group // is represented by the full path of the appropriate // [Group][google.cloud.vmmigration.v1.Group] resource. @@ -916,6 +1221,22 @@ message MigratingVm { // the "view" parameter of the Get/List request. repeated CutoverJob recent_cutover_jobs = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Provides details of future CutoverJobs of a MigratingVm. + // Set to empty when cutover forecast is unavailable. + CutoverForecast cutover_forecast = 33 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Provides details about the expiration state of the migrating + // VM. + Expiration expiration = 37 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// CutoverForecast holds information about future CutoverJobs of a MigratingVm. +message CutoverForecast { + // Output only. Estimation of the CutoverJob duration. + google.protobuf.Duration estimated_cutover_job_duration = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // CloneJob describes the process of creating a clone of a @@ -967,6 +1288,10 @@ message CloneJob { // Output only. Details of the target VM in Compute Engine. ComputeEngineTargetDetails compute_engine_target_details = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Details of the target Persistent Disks in Compute Engine. + ComputeEngineDisksTargetDetails compute_engine_disks_target_details = 25 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Output only. The time the clone job was created (as an API call, not when @@ -1027,7 +1352,7 @@ message InstantiatingMigratedVMStep {} // CutoverJob message describes a cutover of a migrating VM. The CutoverJob is // the operation of shutting down the VM, creating a snapshot and -// clonning the VM using the replicated snapshot. +// cloning the VM using the replicated snapshot. message CutoverJob { option (google.api.resource) = { type: "vmmigration.googleapis.com/CutoverJob" @@ -1067,6 +1392,10 @@ message CutoverJob { // Output only. Details of the target VM in Compute Engine. ComputeEngineTargetDetails compute_engine_target_details = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Details of the target Persistent Disks in Compute Engine. + ComputeEngineDisksTargetDetails compute_engine_disks_target_details = 20 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Output only. The time the cutover job was created (as an API call, not when @@ -1153,8 +1482,8 @@ message CreateCloneJobRequest { // the request if it has already been completed. The server will guarantee // that for at least 60 minutes since the first request. // - // For example, consider a situation where you make an initial request and t - // he request times out. If you make the request again with the same request + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same request // ID, the server can check if original operation with the same request ID // was received, and if so, will ignore the second request. This prevents // clients from accidentally creating duplicate commitments. @@ -1246,6 +1575,9 @@ message Source { // AWS type source details. AwsSourceDetails aws = 12; + + // Azure type source details. + AzureSourceDetails azure = 13; } // Output only. The Source name. @@ -1264,6 +1596,25 @@ message Source { // User-provided description of the source. string description = 6; + + // Optional. Immutable. The encryption details of the source data stored by + // the service. + Encryption encryption = 14 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = IMMUTABLE + ]; +} + +// Encryption message describes the details of the applied encryption. +message Encryption { + // Required. The name of the encryption key that is stored in Google Cloud + // KMS. + string kms_key = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudkms.googleapis.com/CryptoKey" + } + ]; } // VmwareSourceDetails message describes a specific source details for the @@ -1281,6 +1632,9 @@ message VmwareSourceDetails { // The thumbprint representing the certificate for the vcenter. string thumbprint = 4; + + // The hostname of the vcenter. + string resolved_vcenter_host = 5; } // AwsSourceDetails message describes a specific source details for the @@ -1293,15 +1647,20 @@ message AwsSourceDetails { // Input only. AWS secret access key. string secret_access_key = 2 [(google.api.field_behavior) = INPUT_ONLY]; + + // Input only. AWS session token. + // Used only when AWS security token service (STS) is responsible for + // creating the temporary credentials. + string session_token = 3 [(google.api.field_behavior) = INPUT_ONLY]; } // Tag is an AWS tag representation. message Tag { - // Key of tag. - string key = 1; + // Required. Key of tag. + string key = 1 [(google.api.field_behavior) = REQUIRED]; - // Value of tag. - string value = 2; + // Required. Value of tag. + string value = 2 [(google.api.field_behavior) = REQUIRED]; } // The possible values of the state. @@ -1355,15 +1714,20 @@ message AwsSourceDetails { string public_ip = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; } -// DatacenterConnector message describes a connector between the Source and -// Google Cloud, which is installed on a vmware datacenter (an OVA vm installed -// by the user) to connect the Datacenter to Google Cloud and support vm -// migration data transfer. -message DatacenterConnector { - option (google.api.resource) = { - type: "vmmigration.googleapis.com/DatacenterConnector" - pattern: "projects/{project}/locations/{location}/sources/{source}/datacenterConnectors/{datacenter_connector}" - }; +// AzureSourceDetails message describes a specific source details for the +// Azure source type. +message AzureSourceDetails { + // Message describing Azure Credentials using tenant ID, client ID and secret. + message ClientSecretCredentials { + // Azure tenant ID. + string tenant_id = 1; + + // Azure client ID. + string client_id = 2; + + // Input only. Azure client secret. + string client_secret = 3 [(google.api.field_behavior) = INPUT_ONLY]; + } // The possible values of the state. enum State { @@ -1374,24 +1738,82 @@ message DatacenterConnector { // The state was not sampled by the health checks yet. PENDING = 1; - // The source was sampled by health checks and is not available. - OFFLINE = 2; - - // The source is available but might not be usable yet due to unvalidated - // credentials or another reason. The credentials referred to are the ones - // to the Source. The error message will contain further details. - FAILED = 3; + // The source is available but might not be usable yet due to invalid + // credentials or another reason. + // The error message will contain further details. + FAILED = 2; // The source exists and its credentials were verified. - ACTIVE = 4; + ACTIVE = 3; } - // Output only. The time the connector was created (as an API call, not when - // it was actually installed). - google.protobuf.Timestamp create_time = 1 - [(google.api.field_behavior) = OUTPUT_ONLY]; + oneof credentials_type { + // Azure Credentials using tenant ID, client ID and secret. + ClientSecretCredentials client_secret_creds = 9; + } - // Output only. The last time the connector was updated with an API call. + // Immutable. Azure subscription ID. + string subscription_id = 1 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. The Azure location (region) that the source VMs will be migrated + // from. + string azure_location = 5 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. State of the source as determined by the health check. + State state = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Provides details on the state of the Source in case of an + // error. + google.rpc.Status error = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // User specified tags to add to every M2VM generated resource in Azure. + // These tags will be set in addition to the default tags that are set as part + // of the migration process. The tags must not begin with the reserved prefix + // `m4ce` or `m2vm`. + map migration_resources_user_tags = 8; + + // Output only. The ID of the Azure resource group that contains all resources + // related to the migration process of this source. + string resource_group_id = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// DatacenterConnector message describes a connector between the Source and +// Google Cloud, which is installed on a vmware datacenter (an OVA vm installed +// by the user) to connect the Datacenter to Google Cloud and support vm +// migration data transfer. +message DatacenterConnector { + option (google.api.resource) = { + type: "vmmigration.googleapis.com/DatacenterConnector" + pattern: "projects/{project}/locations/{location}/sources/{source}/datacenterConnectors/{datacenter_connector}" + }; + + // The possible values of the state. + enum State { + // The state is unknown. This is used for API compatibility only and is not + // used by the system. + STATE_UNSPECIFIED = 0; + + // The state was not sampled by the health checks yet. + PENDING = 1; + + // The source was sampled by health checks and is not available. + OFFLINE = 2; + + // The source is available but might not be usable yet due to unvalidated + // credentials or another reason. The credentials referred to are the ones + // to the Source. The error message will contain further details. + FAILED = 3; + + // The source exists and its credentials were verified. + ACTIVE = 4; + } + + // Output only. The time the connector was created (as an API call, not when + // it was actually installed). + google.protobuf.Timestamp create_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The last time the connector was updated with an API call. google.protobuf.Timestamp update_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -1470,8 +1892,9 @@ message UpgradeStatus { // The state of the upgradeAppliance operation. State state = 2; - // Provides details on the state of the upgrade operation in case of an error. - google.rpc.Status error = 3; + // Output only. Provides details on the state of the upgrade operation in case + // of an error. + google.rpc.Status error = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; // The time the operation was started. google.protobuf.Timestamp start_time = 4; @@ -1480,7 +1903,7 @@ message UpgradeStatus { string previous_version = 5; } -// Holds informatiom about the available versions for upgrade. +// Holds information about the available versions for upgrade. message AvailableUpdates { // The newest deployable version of the appliance. // The current appliance can't be updated into this version, and the owner @@ -1583,8 +2006,8 @@ message CreateSourceRequest { // the request if it has already been completed. The server will guarantee // that for at least 60 minutes since the first request. // - // For example, consider a situation where you make an initial request and t - // he request times out. If you make the request again with the same request + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same request // ID, the server can check if original operation with the same request ID // was received, and if so, will ignore the second request. This prevents // clients from accidentally creating duplicate commitments. @@ -1611,8 +2034,8 @@ message UpdateSourceRequest { // the request if it has already been completed. The server will guarantee // that for at least 60 minutes since the first request. // - // For example, consider a situation where you make an initial request and t - // he request times out. If you make the request again with the same request + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same request // ID, the server can check if original operation with the same request ID // was received, and if so, will ignore the second request. This prevents // clients from accidentally creating duplicate commitments. @@ -1637,8 +2060,8 @@ message DeleteSourceRequest { // the request if it has already been completed. The server will guarantee // that for at least 60 minutes after the first request. // - // For example, consider a situation where you make an initial request and t - // he request times out. If you make the request again with the same request + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same request // ID, the server can check if original operation with the same request ID // was received, and if so, will ignore the second request. This prevents // clients from accidentally creating duplicate commitments. @@ -1693,6 +2116,18 @@ message VmwareVmDetails { BIOS = 2; } + // Possible values for the VM architecture. + enum VmArchitecture { + // The architecture is unknown. + VM_ARCHITECTURE_UNSPECIFIED = 0; + + // The architecture is one of the x86 architectures. + VM_ARCHITECTURE_X86_FAMILY = 1; + + // The architecture is ARM64. + VM_ARCHITECTURE_ARM64 = 2; + } + // The VM's id in the source (note that this is not the MigratingVm's id). // This is the moref id of the VM. string vm_id = 1; @@ -1731,6 +2166,9 @@ message VmwareVmDetails { // Output only. The VM Boot Option. BootOption boot_option = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The CPU architecture. + VmArchitecture architecture = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; } // AwsVmDetails describes a VM in AWS. @@ -1811,7 +2249,7 @@ message AwsVmDetails { // Output only. The power state of the VM at the moment list was taken. PowerState power_state = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - // The number of cpus the VM has. + // The number of CPU cores the VM has. int32 cpu_count = 6; // The memory size of the VM in MB. @@ -1849,6 +2287,10 @@ message AwsVmDetails { // The CPU architecture. VmArchitecture architecture = 18; + + // The number of vCPUs the VM has. It is calculated as the + // number of CPU cores * threads per CPU the VM has. + int32 vcpu_count = 19; } // AwsSecurityGroup describes a security group of an AWS VM. @@ -1860,6 +2302,142 @@ message AwsSecurityGroup { string name = 2; } +// AzureVmDetails describes a VM in Azure. +message AzureVmDetails { + // A message describing the OS disk. + message OSDisk { + // The disk's type. + string type = 1; + + // The disk's full name. + string name = 2; + + // The disk's size in GB. + int32 size_gb = 3; + } + + // A message describing a data disk. + message Disk { + // The disk name. + string name = 1; + + // The disk size in GB. + int32 size_gb = 2; + + // The disk's Logical Unit Number (LUN). + int32 lun = 3; + } + + // A message describing the VM's OS. Including OS, Publisher, Offer and Plan + // if applicable. + message OSDescription { + // OS type. + string type = 1; + + // OS publisher. + string publisher = 2; + + // OS offer. + string offer = 3; + + // OS plan. + string plan = 4; + } + + // Possible values for the power state of the VM. + enum PowerState { + // Power state is not specified. + POWER_STATE_UNSPECIFIED = 0; + + // The VM is starting. + STARTING = 1; + + // The VM is running. + RUNNING = 2; + + // The VM is stopping. + STOPPING = 3; + + // The VM is stopped. + STOPPED = 4; + + // The VM is deallocating. + DEALLOCATING = 5; + + // The VM is deallocated. + DEALLOCATED = 6; + + // The VM's power state is unknown. + UNKNOWN = 7; + } + + // The possible values for the vm boot option. + enum BootOption { + // The boot option is unknown. + BOOT_OPTION_UNSPECIFIED = 0; + + // The boot option is UEFI. + EFI = 1; + + // The boot option is BIOS. + BIOS = 2; + } + + // Possible values for the VM architecture. + enum VmArchitecture { + // The architecture is unknown. + VM_ARCHITECTURE_UNSPECIFIED = 0; + + // The architecture is one of the x86 architectures. + VM_ARCHITECTURE_X86_FAMILY = 1; + + // The architecture is ARM64. + VM_ARCHITECTURE_ARM64 = 2; + } + + // The VM full path in Azure. + string vm_id = 1; + + // The power state of the VM at the moment list was taken. + PowerState power_state = 2; + + // VM size as configured in Azure. Determines the VM's hardware spec. + string vm_size = 3; + + // The number of cpus the VM has. + int32 cpu_count = 4; + + // The memory size of the VM in MB. + int32 memory_mb = 5; + + // The number of disks the VM has, including OS disk. + int32 disk_count = 6; + + // The total size of the storage allocated to the VM in MB. + int64 committed_storage_mb = 7; + + // Description of the OS disk. + OSDisk os_disk = 8; + + // Description of the data disks. + repeated Disk disks = 9; + + // Description of the OS. + OSDescription os_description = 10; + + // The VM Boot Option. + BootOption boot_option = 11; + + // The tags of the VM. + map tags = 12; + + // The VM's ComputerName. + string computer_name = 13; + + // The CPU architecture. + VmArchitecture architecture = 14; +} + // VmwareVmsDetails describes VMs in vCenter. message VmwareVmsDetails { // The details of the vmware VMs. @@ -1872,6 +2450,12 @@ message AwsVmsDetails { repeated AwsVmDetails details = 1; } +// AzureVmsDetails describes VMs in Azure. +message AzureVmsDetails { + // The details of the Azure VMs. + repeated AzureVmDetails details = 1; +} + // Response message for // [fetchInventory][google.cloud.vmmigration.v1.VmMigration.FetchInventory]. message FetchInventoryResponse { @@ -1881,12 +2465,81 @@ message FetchInventoryResponse { // The description of the VMs in a Source of type AWS. AwsVmsDetails aws_vms = 3; + + // The description of the VMs in a Source of type Azure. + AzureVmsDetails azure_vms = 5; + } + + // Output only. The timestamp when the source was last queried (if the result + // is from the cache). + google.protobuf.Timestamp update_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Request message for +// [fetchStorageInventory][google.cloud.vmmigration.v1.VmMigration.FetchStorageInventory]. +message FetchStorageInventoryRequest { + // The type of the storage inventory to fetch. + enum StorageType { + // The type is unspecified. + STORAGE_TYPE_UNSPECIFIED = 0; + + // The type is disks. + DISKS = 1; + + // The type is snapshots. + SNAPSHOTS = 2; } + // Required. The name of the Source. + string source = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmmigration.googleapis.com/Source" + } + ]; + + // Required. The type of the storage inventory to fetch. + StorageType type = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. If this flag is set to true, the source will be queried instead + // of using cached results. Using this flag will make the call slower. + bool force_refresh = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The maximum number of VMs to return. The service may return + // fewer than this value. + int32 page_size = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous `FetchStorageInventory` + // call. Provide this to retrieve the subsequent page. When paginating, all + // other parameters provided to `FetchStorageInventory` must match the call + // that provided the page token. + string page_token = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for +// [fetchStorageInventory][google.cloud.vmmigration.v1.VmMigration.FetchStorageInventory]. +message FetchStorageInventoryResponse { + // The list of storage resources in the source. + repeated SourceStorageResource resources = 1; + // Output only. The timestamp when the source was last queried (if the result // is from the cache). google.protobuf.Timestamp update_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A token, which can be sent as `page_token` to retrieve the + // next page. If this field is omitted, there are no subsequent pages. + string next_page_token = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// SourceStorageResource describes a storage resource in the source. +message SourceStorageResource { + // Source storage resource details. + oneof StorageResource { + // Source AWS volume details. + AwsSourceDiskDetails aws_disk_details = 1; + } } // Utilization report details the utilization (CPU, memory, etc.) of selected @@ -2102,8 +2755,8 @@ message CreateUtilizationReportRequest { // the request if it has already been completed. The server will guarantee // that for at least 60 minutes since the first request. // - // For example, consider a situation where you make an initial request and t - // he request times out. If you make the request again with the same request + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same request // ID, the server can check if original operation with the same request ID // was received, and if so, will ignore the second request. This prevents // clients from accidentally creating duplicate commitments. @@ -2128,8 +2781,8 @@ message DeleteUtilizationReportRequest { // the request if it has already been completed. The server will guarantee // that for at least 60 minutes after the first request. // - // For example, consider a situation where you make an initial request and t - // he request times out. If you make the request again with the same request + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same request // ID, the server can check if original operation with the same request ID // was received, and if so, will ignore the second request. This prevents // clients from accidentally creating duplicate commitments. @@ -2189,8 +2842,8 @@ message CreateDatacenterConnectorRequest { // the request if it has already been completed. The server will guarantee // that for at least 60 minutes since the first request. // - // For example, consider a situation where you make an initial request and t - // he request times out. If you make the request again with the same request + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same request // ID, the server can check if original operation with the same request ID // was received, and if so, will ignore the second request. This prevents // clients from accidentally creating duplicate commitments. @@ -2215,8 +2868,8 @@ message DeleteDatacenterConnectorRequest { // the request if it has already been completed. The server will guarantee // that for at least 60 minutes after the first request. // - // For example, consider a situation where you make an initial request and t - // he request times out. If you make the request again with the same request + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same request // ID, the server can check if original operation with the same request ID // was received, and if so, will ignore the second request. This prevents // clients from accidentally creating duplicate commitments. @@ -2241,8 +2894,8 @@ message UpgradeApplianceRequest { // the request if it has already been completed. The server will guarantee // that for at least 60 minutes after the first request. // - // For example, consider a situation where you make an initial request and t - // he request times out. If you make the request again with the same request + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same request // ID, the server can check if original operation with the same request ID // was received, and if so, will ignore the second request. This prevents // clients from accidentally creating duplicate commitments. @@ -2307,14 +2960,14 @@ message ComputeEngineTargetDefaults { // The machine type to create the VM with. string machine_type = 5; - // A map of network tags to associate with the VM. + // A list of network tags to associate with the VM. repeated string network_tags = 6; // List of NICs connected to this VM. repeated NetworkInterface network_interfaces = 7; - // The service account to associate the VM with. - string service_account = 8; + // Optional. The service account to associate the VM with. + string service_account = 8 [(google.api.field_behavior) = OPTIONAL]; // The disk type to use in the VM. ComputeEngineDiskType disk_type = 9; @@ -2333,10 +2986,20 @@ message ComputeEngineTargetDefaults { ComputeScheduling compute_scheduling = 13; // Defines whether the instance has Secure Boot enabled. - // This can be set to true only if the vm boot option is EFI. + // This can be set to true only if the VM boot option is EFI. bool secure_boot = 14; - // Output only. The VM Boot Option, as set in the source vm. + // Optional. Defines whether the instance has vTPM enabled. + // This can be set to true only if the VM boot option is EFI. + bool enable_vtpm = 21 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Defines whether the instance has integrity monitoring enabled. + // This can be set to true only if the VM boot option is EFI, and vTPM is + // enabled. + bool enable_integrity_monitoring = 22 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The VM Boot Option, as set in the source VM. ComputeEngineBootOption boot_option = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -2348,6 +3011,29 @@ message ComputeEngineTargetDefaults { // The hostname to assign to the VM. string hostname = 18; + + // Optional. Immutable. The encryption to apply to the VM disks. + Encryption encryption = 19 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Optional. By default the virtual machine will keep its existing boot + // option. Setting this property will trigger an internal process which will + // convert the virtual machine from using the existing boot option to another. + BootConversion boot_conversion = 20 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Additional replica zones of the target regional disks. + // If this list is not empty a regional disk will be created. The first + // supported zone would be the one stated in the + // [zone][google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.zone] field. + // The rest are taken from this list. Please refer to the [regional disk + // creation + // API](https://cloud.google.com/compute/docs/regions-zones/global-regional-zonal-resources) + // for further details about regional vs zonal disks. If not specified, a + // zonal disk will be created in the same zone the VM is created. + repeated string disk_replica_zones = 24 + [(google.api.field_behavior) = OPTIONAL]; } // ComputeEngineTargetDetails is a collection of details for creating a VM in a @@ -2368,7 +3054,7 @@ message ComputeEngineTargetDetails { // The machine type to create the VM with. string machine_type = 5; - // A map of network tags to associate with the VM. + // A list of network tags to associate with the VM. repeated string network_tags = 6; // List of NICs connected to this VM. @@ -2393,10 +3079,17 @@ message ComputeEngineTargetDetails { ComputeScheduling compute_scheduling = 13; // Defines whether the instance has Secure Boot enabled. - // This can be set to true only if the vm boot option is EFI. + // This can be set to true only if the VM boot option is EFI. bool secure_boot = 14; - // The VM Boot Option, as set in the source vm. + // Optional. Defines whether the instance has vTPM enabled. + bool enable_vtpm = 21 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Defines whether the instance has integrity monitoring enabled. + bool enable_integrity_monitoring = 22 + [(google.api.field_behavior) = OPTIONAL]; + + // The VM Boot Option, as set in the source VM. ComputeEngineBootOption boot_option = 15; // The metadata key/value pairs to assign to the VM. @@ -2407,23 +3100,49 @@ message ComputeEngineTargetDetails { // The hostname to assign to the VM. string hostname = 18; + + // Optional. The encryption to apply to the VM disks. + Encryption encryption = 19 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. By default the virtual machine will keep its existing boot + // option. Setting this property will trigger an internal process which will + // convert the virtual machine from using the existing boot option to another. + BootConversion boot_conversion = 20 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Additional replica zones of the target regional disks. + // If this list is not empty a regional disk will be created. The first + // supported zone would be the one stated in the + // [zone][google.cloud.vmmigration.v1.ComputeEngineTargetDetails.zone] field. + // The rest are taken from this list. Please refer to the [regional disk + // creation + // API](https://cloud.google.com/compute/docs/regions-zones/global-regional-zonal-resources) + // for further details about regional vs zonal disks. If not specified, a + // zonal disk will be created in the same zone the VM is created. + repeated string disk_replica_zones = 24 + [(google.api.field_behavior) = OPTIONAL]; } // NetworkInterface represents a NIC of a VM. message NetworkInterface { - // The network to connect the NIC to. - string network = 1; + // Optional. The network to connect the NIC to. + string network = 1 [(google.api.field_behavior) = OPTIONAL]; - // The subnetwork to connect the NIC to. - string subnetwork = 2; + // Optional. The subnetwork to connect the NIC to. + string subnetwork = 2 [(google.api.field_behavior) = OPTIONAL]; - // The internal IP to define in the NIC. + // Optional. The internal IP to define in the NIC. // The formats accepted are: `ephemeral` \ ipv4 address \ a named address // resource full path. - string internal_ip = 3; + string internal_ip = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The external IP to define in the NIC. + string external_ip = 4 [(google.api.field_behavior) = OPTIONAL]; - // The external IP to define in the NIC. - string external_ip = 4; + // Optional. The networking tier used for optimizing connectivity between + // instances and systems on the internet. Applies only for external ephemeral + // IP addresses. If left empty, will default to PREMIUM. + ComputeEngineNetworkTier network_tier = 5 + [(google.api.field_behavior) = OPTIONAL]; } // AppliedLicense holds the license data returned by adaptation module report. @@ -2480,6 +3199,8 @@ message SchedulingNodeAffinity { // Scheduling information for VM on maintenance/restart behaviour and // node allocation in sole tenant nodes. +// Options for instance behavior when the host machine undergoes +// maintenance that may temporarily impact instance performance. message ComputeScheduling { enum OnHostMaintenance { // An unknown, unexpected behavior. @@ -2529,6 +3250,197 @@ message ComputeScheduling { int32 min_node_cpus = 4; } +// ComputeEngineDisksTargetDefaults is a collection of details for creating +// Persistent Disks in a target Compute Engine project. +message ComputeEngineDisksTargetDefaults { + oneof location { + // The zone in which to create the Persistent Disks. + string zone = 2; + } + + // Details of the VM to attach the disks to as the target of this migration. + oneof vm_target { + // Details of the disk only migration target. + DisksMigrationDisksTargetDefaults disks_target_defaults = 5; + + // Details of the VM migration target. + DisksMigrationVmTargetDefaults vm_target_defaults = 6; + } + + // The full path of the resource of type TargetProject which represents the + // Compute Engine project in which to create the Persistent Disks. + string target_project = 1 [(google.api.resource_reference) = { + type: "vmmigration.googleapis.com/TargetProject" + }]; + + // The details of each Persistent Disk to create. + repeated PersistentDiskDefaults disks = 4; +} + +// Details for creation of a Persistent Disk. +message PersistentDiskDefaults { + // Required. The ordinal number of the source VM disk. + int32 source_disk_number = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The name of the Persistent Disk to create. + string disk_name = 2 [(google.api.field_behavior) = OPTIONAL]; + + // The disk type to use. + ComputeEngineDiskType disk_type = 3; + + // A map of labels to associate with the Persistent Disk. + map additional_labels = 4; + + // Optional. The encryption to apply to the disk. + Encryption encryption = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Details for attachment of the disk to a VM. + // Used when the disk is set to be attached to a target VM. + VmAttachmentDetails vm_attachment_details = 6 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Details for attachment of the disk to a VM. +message VmAttachmentDetails { + // Optional. Specifies a unique device name of your choice that is reflected + // into the /dev/disk/by-id/google-* tree of a Linux operating system running + // within the instance. If not specified, the server chooses a default device + // name to apply to this disk, in the form persistent-disk-x, where x is a + // number assigned by Google Compute Engine. This field is only applicable for + // persistent disks. + string device_name = 1 [(google.api.field_behavior) = OPTIONAL]; +} + +// Details for a disk only migration. +message DisksMigrationDisksTargetDefaults {} + +// Details for creation of a VM that migrated data disks will be attached to. +message DisksMigrationVmTargetDefaults { + // Required. The name of the VM to create. + string vm_name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The machine type series to create the VM with. + // For presentation only. + string machine_type_series = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The machine type to create the VM with. + string machine_type = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. A list of network tags to associate with the VM. + repeated string network_tags = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. NICs to attach to the VM. + repeated NetworkInterface network_interfaces = 5 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The service account to associate the VM with. + string service_account = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Compute instance scheduling information (if empty default is + // used). + ComputeScheduling compute_scheduling = 7 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Defines whether the instance has Secure Boot enabled. + // This can be set to true only if the VM boot option is EFI. + bool secure_boot = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Defines whether the instance has vTPM enabled. + bool enable_vtpm = 16 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Defines whether the instance has integrity monitoring enabled. + bool enable_integrity_monitoring = 17 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The metadata key/value pairs to assign to the VM. + map metadata = 10 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Additional licenses to assign to the VM. + repeated string additional_licenses = 11 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The hostname to assign to the VM. + string hostname = 12 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A map of labels to associate with the VM. + map labels = 13 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Details of the boot disk of the VM. + BootDiskDefaults boot_disk_defaults = 14 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The encryption to apply to the VM. + Encryption encryption = 15 [(google.api.field_behavior) = OPTIONAL]; +} + +// BootDiskDefaults hold information about the boot disk of a VM. +message BootDiskDefaults { + // Contains details about the image source used to create the disk. + message DiskImageDefaults { + // Required. The Image resource used when creating the disk. + string source_image = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "compute.googleapis.com/Image" } + ]; + } + + oneof source { + // The image to use when creating the disk. + DiskImageDefaults image = 3; + } + + // Optional. The name of the disk. + string disk_name = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The type of disk provisioning to use for the VM. + ComputeEngineDiskType disk_type = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies a unique device name of your choice that is reflected + // into the /dev/disk/by-id/google-* tree of a Linux operating system running + // within the instance. If not specified, the server chooses a default device + // name to apply to this disk, in the form persistent-disk-x, where x is a + // number assigned by Google Compute Engine. This field is only applicable for + // persistent disks. + string device_name = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The encryption to apply to the boot disk. + Encryption encryption = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// ComputeEngineDisksTargetDetails is a collection of created Persistent Disks +// details. +message ComputeEngineDisksTargetDetails { + // Details of the VM the disks are attached to. + oneof vm_target { + // Details of the disks-only migration target. + DisksMigrationDisksTargetDetails disks_target_details = 5; + + // Details for the VM the migrated data disks are attached to. + DisksMigrationVmTargetDetails vm_target_details = 6; + } + + // The details of each created Persistent Disk. + repeated PersistentDisk disks = 1; +} + +// Details of a created Persistent Disk. +message PersistentDisk { + // The ordinal number of the source VM disk. + int32 source_disk_number = 1; + + // The URI of the Persistent Disk. + string disk_uri = 2; +} + +// Details for a disks-only migration. +message DisksMigrationDisksTargetDetails {} + +// Details for the VM created VM as part of disks migration. +message DisksMigrationVmTargetDetails { + // Output only. The URI of the Compute Engine VM. + string vm_uri = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // A policy for scheduling replications. message SchedulePolicy { // The idle duration between replication stages. @@ -2561,8 +3473,8 @@ message CreateMigratingVmRequest { // the request if it has already been completed. The server will guarantee // that for at least 60 minutes since the first request. // - // For example, consider a situation where you make an initial request and t - // he request times out. If you make the request again with the same request + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same request // ID, the server can check if original operation with the same request ID // was received, and if so, will ignore the second request. This prevents // clients from accidentally creating duplicate commitments. @@ -2650,8 +3562,8 @@ message UpdateMigratingVmRequest { // the request if it has already been completed. The server will guarantee // that for at least 60 minutes since the first request. // - // For example, consider a situation where you make an initial request and t - // he request times out. If you make the request again with the same request + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same request // ID, the server can check if original operation with the same request ID // was received, and if so, will ignore the second request. This prevents // clients from accidentally creating duplicate commitments. @@ -2725,8 +3637,22 @@ message FinalizeMigrationRequest { ]; } -// Response message for 'FinalizeMigration' request. -message FinalizeMigrationResponse {} +// Request message for 'ExtendMigrationRequest' request. +message ExtendMigrationRequest { + // Required. The name of the MigratingVm. + string migrating_vm = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmmigration.googleapis.com/MigratingVm" + } + ]; +} + +// Response message for 'ExtendMigration' request. +message ExtendMigrationResponse {} + +// Response message for 'FinalizeMigration' request. +message FinalizeMigrationResponse {} // TargetProject message represents a target Compute Engine project for a // migration or a clone. @@ -2739,8 +3665,8 @@ message TargetProject { // Output only. The name of the target project. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // The target project ID (number) or project name. - string project = 2; + // Required. The target project ID (number) or project name. + string project = 2 [(google.api.field_behavior) = REQUIRED]; // The target project's description. string description = 3; @@ -2831,8 +3757,8 @@ message CreateTargetProjectRequest { // the request if it has already been completed. The server will guarantee // that for at least 60 minutes since the first request. // - // For example, consider a situation where you make an initial request and t - // he request times out. If you make the request again with the same request + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same request // ID, the server can check if original operation with the same request ID // was received, and if so, will ignore the second request. This prevents // clients from accidentally creating duplicate commitments. @@ -2859,8 +3785,8 @@ message UpdateTargetProjectRequest { // the request if it has already been completed. The server will guarantee // that for at least 60 minutes since the first request. // - // For example, consider a situation where you make an initial request and t - // he request times out. If you make the request again with the same request + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same request // ID, the server can check if original operation with the same request ID // was received, and if so, will ignore the second request. This prevents // clients from accidentally creating duplicate commitments. @@ -2885,8 +3811,8 @@ message DeleteTargetProjectRequest { // the request if it has already been completed. The server will guarantee // that for at least 60 minutes after the first request. // - // For example, consider a situation where you make an initial request and t - // he request times out. If you make the request again with the same request + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same request // ID, the server can check if original operation with the same request ID // was received, and if so, will ignore the second request. This prevents // clients from accidentally creating duplicate commitments. @@ -2904,6 +3830,18 @@ message Group { pattern: "projects/{project}/locations/{location}/groups/{group}" }; + // The possible types of the group. + enum MigrationTargetType { + // Group type is not specified. This defaults to Compute Engine targets. + MIGRATION_TARGET_TYPE_UNSPECIFIED = 0; + + // All MigratingVMs in the group must have Compute Engine targets. + MIGRATION_TARGET_TYPE_GCE = 1; + + // All MigratingVMs in the group must have Compute Engine Disks targets. + MIGRATION_TARGET_TYPE_DISKS = 2; + } + // Output only. The Group name. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -2920,6 +3858,10 @@ message Group { // Display name is a user defined name for this group which can be updated. string display_name = 5; + + // Immutable. The target type of this group. + MigrationTargetType migration_target_type = 6 + [(google.api.field_behavior) = IMMUTABLE]; } // Request message for 'ListGroups' request. @@ -2997,8 +3939,8 @@ message CreateGroupRequest { // the request if it has already been completed. The server will guarantee // that for at least 60 minutes since the first request. // - // For example, consider a situation where you make an initial request and t - // he request times out. If you make the request again with the same request + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same request // ID, the server can check if original operation with the same request ID // was received, and if so, will ignore the second request. This prevents // clients from accidentally creating duplicate commitments. @@ -3025,8 +3967,8 @@ message UpdateGroupRequest { // the request if it has already been completed. The server will guarantee // that for at least 60 minutes since the first request. // - // For example, consider a situation where you make an initial request and t - // he request times out. If you make the request again with the same request + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same request // ID, the server can check if original operation with the same request ID // was received, and if so, will ignore the second request. This prevents // clients from accidentally creating duplicate commitments. @@ -3051,8 +3993,8 @@ message DeleteGroupRequest { // the request if it has already been completed. The server will guarantee // that for at least 60 minutes after the first request. // - // For example, consider a situation where you make an initial request and t - // he request times out. If you make the request again with the same request + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same request // ID, the server can check if original operation with the same request ID // was received, and if so, will ignore the second request. This prevents // clients from accidentally creating duplicate commitments. @@ -3121,8 +4063,8 @@ message CreateCutoverJobRequest { // the request if it has already been completed. The server will guarantee // that for at least 60 minutes since the first request. // - // For example, consider a situation where you make an initial request and t - // he request times out. If you make the request again with the same request + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same request // ID, the server can check if original operation with the same request ID // was received, and if so, will ignore the second request. This prevents // clients from accidentally creating duplicate commitments. @@ -3240,34 +4182,45 @@ message MigrationError { // Default value. This value is not used. ERROR_CODE_UNSPECIFIED = 0; - // Migrate for Compute encountered an unknown error. + // Migrate to Virtual Machines encountered an unknown error. UNKNOWN_ERROR = 1; - // Migrate for Compute encountered an error while validating replication - // source health. + // Migrate to Virtual Machines encountered an error while validating + // replication source health. SOURCE_VALIDATION_ERROR = 2; - // Migrate for Compute encountered an error during source data operation. + // Migrate to Virtual Machines encountered an error during source data + // operation. SOURCE_REPLICATION_ERROR = 3; - // Migrate for Compute encountered an error during target data operation. + // Migrate to Virtual Machines encountered an error during target data + // operation. TARGET_REPLICATION_ERROR = 4; - // Migrate for Compute encountered an error during OS adaptation. + // Migrate to Virtual Machines encountered an error during OS adaptation. OS_ADAPTATION_ERROR = 5; - // Migrate for Compute encountered an error in clone operation. + // Migrate to Virtual Machines encountered an error in clone operation. CLONE_ERROR = 6; - // Migrate for Compute encountered an error in cutover operation. + // Migrate to Virtual Machines encountered an error in cutover operation. CUTOVER_ERROR = 7; - // Migrate for Compute encountered an error during utilization report - // creation. + // Migrate to Virtual Machines encountered an error during utilization + // report creation. UTILIZATION_REPORT_ERROR = 8; - // Migrate for Compute encountered an error during appliance upgrade. + // Migrate to Virtual Machines encountered an error during appliance + // upgrade. APPLIANCE_UPGRADE_ERROR = 9; + + // Migrate to Virtual Machines encountered an error in image import + // operation. + IMAGE_IMPORT_ERROR = 10; + + // Migrate to Virtual Machines encountered an error in disk migration + // operation. + DISK_MIGRATION_ERROR = 11; } // Output only. The error code. @@ -3291,8 +4244,98 @@ message MigrationError { [(google.api.field_behavior) = OUTPUT_ONLY]; } +// Represents migration resource warning information that can be used with +// google.rpc.Status message. MigrationWarning is used to present the user with +// warning information in migration operations. +message MigrationWarning { + // Represents possible warning codes. + enum WarningCode { + // Default value. This value is not used. + WARNING_CODE_UNSPECIFIED = 0; + + // A warning originated from OS Adaptation. + ADAPTATION_WARNING = 1; + } + + // The warning code. + WarningCode code = 1; + + // Output only. The localized warning message. + google.rpc.LocalizedMessage warning_message = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Suggested action for solving the warning. + google.rpc.LocalizedMessage action_item = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. URL(s) pointing to additional information on handling the + // current warning. + repeated google.rpc.Help.Link help_links = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The time the warning occurred. + google.protobuf.Timestamp warning_time = 5; +} + +// Represent the source Vmware VM details. +message VmwareSourceVmDetails { + // The details of a Vmware VM disk. + message VmwareDiskDetails { + // Output only. The ordinal number of the disk. + int32 disk_number = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Size in GB. + int64 size_gb = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The disk label. + string label = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Possible values for Vmware VM firmware. + enum Firmware { + // The firmware is unknown. + FIRMWARE_UNSPECIFIED = 0; + + // The firmware is EFI. + EFI = 1; + + // The firmware is BIOS. + BIOS = 2; + } + + // Output only. The firmware type of the source VM. + Firmware firmware = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The total size of the disks being migrated in bytes. + int64 committed_storage_bytes = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The disks attached to the source VM. + repeated VmwareDiskDetails disks = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Information about VM capabilities needed for some Compute + // Engine features. + VmCapabilities vm_capabilities_info = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The VM architecture. + VmArchitecture architecture = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // Represent the source AWS VM details. message AwsSourceVmDetails { + // The details of an AWS instance disk. + message AwsDiskDetails { + // Output only. The ordinal number of the disk. + int32 disk_number = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. AWS volume ID. + string volume_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Size in GB. + int64 size_gb = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + // Possible values for AWS VM firmware. enum Firmware { // The firmware is unknown. @@ -3305,11 +4348,67 @@ message AwsSourceVmDetails { BIOS = 2; } - // The firmware type of the source VM. - Firmware firmware = 1; + // Output only. The firmware type of the source VM. + Firmware firmware = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The total size of the disks being migrated in bytes. + int64 committed_storage_bytes = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The disks attached to the source VM. + repeated AwsDiskDetails disks = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Information about VM capabilities needed for some Compute + // Engine features. + VmCapabilities vm_capabilities_info = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The VM architecture. + VmArchitecture architecture = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Represent the source Azure VM details. +message AzureSourceVmDetails { + // The details of an Azure VM disk. + message AzureDiskDetails { + // Output only. The ordinal number of the disk. + int32 disk_number = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Azure disk ID. + string disk_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Size in GB. + int64 size_gb = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Possible values for Azure VM firmware. + enum Firmware { + // The firmware is unknown. + FIRMWARE_UNSPECIFIED = 0; + + // The firmware is EFI. + EFI = 1; + + // The firmware is BIOS. + BIOS = 2; + } + + // Output only. The firmware type of the source VM. + Firmware firmware = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The total size of the disks being migrated in bytes. + int64 committed_storage_bytes = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The disks attached to the source VM. + repeated AzureDiskDetails disks = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Information about VM capabilities needed for some Compute + // Engine features. + VmCapabilities vm_capabilities_info = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // The total size of the disks being migrated in bytes. - int64 committed_storage_bytes = 2; + // Output only. The VM architecture. + VmArchitecture architecture = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Request message for 'LisReplicationCyclesRequest' request. @@ -3366,3 +4465,967 @@ message GetReplicationCycleRequest { } ]; } + +// Migrating VM source information about the VM capabilities needed for some +// Compute Engine features. +message VmCapabilities { + // Output only. Unordered list. List of certain VM OS capabilities needed for + // some Compute Engine features. + repeated OsCapability os_capabilities = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.field_behavior) = UNORDERED_LIST + ]; + + // Output only. The last time OS capabilities list was updated. + google.protobuf.Timestamp last_os_capabilities_update_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// ImageImport describes the configuration of the image import to run. +message ImageImport { + option (google.api.resource) = { + type: "vmmigration.googleapis.com/ImageImport" + pattern: "projects/{project}/locations/{location}/imageImports/{job}" + plural: "imageImports" + singular: "imageImport" + }; + + oneof source { + // Immutable. The path to the Cloud Storage file from which the image should + // be imported. + string cloud_storage_uri = 2 [(google.api.field_behavior) = IMMUTABLE]; + } + + // The configuration of the resources that will be created in GCP as a result + // of the ImageImport. + oneof target_defaults { + // Immutable. Target details for importing a disk image, will be used by + // ImageImportJob. + DiskImageTargetDetails disk_image_target_defaults = 4 + [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Target details for importing a machine image, will be used by + // ImageImportJob. + MachineImageTargetDetails machine_image_target_defaults = 7 + [(google.api.field_behavior) = IMMUTABLE]; + } + + // Output only. The resource path of the ImageImport. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time the image import was created. + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The result of the most recent runs for this ImageImport. All + // jobs for this ImageImport can be listed via ListImageImportJobs. + repeated ImageImportJob recent_image_import_jobs = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. The encryption details used by the image import process during + // the image adaptation for Compute Engine. + Encryption encryption = 6 [(google.api.field_behavior) = IMMUTABLE]; +} + +// ImageImportJob describes the progress and result of an image import. +message ImageImportJob { + option (google.api.resource) = { + type: "vmmigration.googleapis.com/ImageImportJob" + pattern: "projects/{project}/locations/{location}/imageImports/{job}/imageImportJobs/{result}" + plural: "imageImportJobs" + singular: "imageImportJob" + }; + + // Possible states of the image import. + enum State { + // The state is unknown. + STATE_UNSPECIFIED = 0; + + // The image import has not yet started. + PENDING = 1; + + // The image import is active and running. + RUNNING = 2; + + // The image import has finished successfully. + SUCCEEDED = 3; + + // The image import has finished with errors. + FAILED = 4; + + // The image import is being cancelled. + CANCELLING = 5; + + // The image import was cancelled. + CANCELLED = 6; + } + + oneof source { + // Output only. The path to the Cloud Storage file from which the image + // should be imported. + string cloud_storage_uri = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // The configuration of the resources that were created in GCP as a result of + // the image import. + oneof target_details { + // Output only. Target details used to import a disk image. + DiskImageTargetDetails disk_image_target_details = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Target details used to import a machine image. + MachineImageTargetDetails machine_image_target_details = 11 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Output only. The resource path of the ImageImportJob. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The resource paths of the resources created by the image + // import job. + repeated string created_resources = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The state of the image import. + State state = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time the image import was created (as an API call, not + // when it was actually created in the target). + google.protobuf.Timestamp create_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time the image import was ended. + google.protobuf.Timestamp end_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Provides details on the error that led to the image import + // state in case of an error. + repeated google.rpc.Status errors = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Warnings that occurred during the image import. + repeated MigrationWarning warnings = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The image import steps list representing its progress. + repeated ImageImportStep steps = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// ImageImportStep holds information about the image import step progress. +message ImageImportStep { + oneof step { + // Initializing step. + InitializingImageImportStep initializing = 3; + + // Loading source files step. + LoadingImageSourceFilesStep loading_source_files = 4; + + // Adapting OS step. + AdaptingOSStep adapting_os = 5; + + // Creating image step. + CreatingImageStep creating_image = 6; + } + + // Output only. The time the step has started. + google.protobuf.Timestamp start_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time the step has ended. + google.protobuf.Timestamp end_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// InitializingImageImportStep contains specific step details. +message InitializingImageImportStep {} + +// LoadingImageSourceFilesStep contains specific step details. +message LoadingImageSourceFilesStep {} + +// CreatingImageStep contains specific step details. +message CreatingImageStep {} + +// The target details of the image resource that will be created by the import +// job. +message DiskImageTargetDetails { + oneof os_adaptation_config { + // Optional. Use to set the parameters relevant for the OS adaptation + // process. + ImageImportOsAdaptationParameters os_adaptation_parameters = 11 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Use to skip OS adaptation process. + DataDiskImageImport data_disk_image_import = 12 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Required. The name of the image to be created. + string image_name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Reference to the TargetProject resource that represents the + // target project in which the imported image will be created. + string target_project = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmmigration.googleapis.com/TargetProject" + } + ]; + + // Optional. An optional description of the image. + string description = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The name of the image family to which the new image belongs. + string family_name = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A map of labels to associate with the image. + map labels = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Additional licenses to assign to the image. + // Format: + // https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/licenses/LICENSE_NAME + // Or + // https://www.googleapis.com/compute/beta/projects/PROJECT_ID/global/licenses/LICENSE_NAME + repeated string additional_licenses = 8 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Set to true to set the image storageLocations to the single + // region of the import job. When false, the closest multi-region is selected. + bool single_region_storage = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Immutable. The encryption to apply to the image. + Encryption encryption = 10 [(google.api.field_behavior) = IMMUTABLE]; +} + +// The target details of the machine image resource that will be created by the +// image import job. +message MachineImageTargetDetails { + oneof os_adaptation_config { + // Optional. Use to set the parameters relevant for the OS adaptation + // process. + ImageImportOsAdaptationParameters os_adaptation_parameters = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Use to skip OS adaptation process. + SkipOsAdaptation skip_os_adaptation = 16 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Required. The name of the machine image to be created. + string machine_image_name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Reference to the TargetProject resource that represents the + // target project in which the imported machine image will be created. + string target_project = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmmigration.googleapis.com/TargetProject" + } + ]; + + // Optional. An optional description of the machine image. + string description = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Set to true to set the machine image storageLocations to the + // single region of the import job. When false, the closest multi-region is + // selected. + bool single_region_storage = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Immutable. The encryption to apply to the machine image. + // If the Image Import resource has an encryption, this field must be set to + // the same encryption key. + Encryption encryption = 6 [(google.api.field_behavior) = IMMUTABLE]; + + // Optional. Parameters overriding decisions based on the source machine image + // configurations. + MachineImageParametersOverrides machine_image_parameters_overrides = 7 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The service account to assign to the instance created by the + // machine image. + ServiceAccount service_account = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Additional licenses to assign to the instance created by the + // machine image. Format: + // https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/licenses/LICENSE_NAME + // Or + // https://www.googleapis.com/compute/beta/projects/PROJECT_ID/global/licenses/LICENSE_NAME + repeated string additional_licenses = 9 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The labels to apply to the instance created by the machine image. + map labels = 10 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The tags to apply to the instance created by the machine image. + repeated string tags = 11 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Shielded instance configuration. + ShieldedInstanceConfig shielded_instance_config = 12 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The network interfaces to create with the instance created by the + // machine image. Internal and external IP addresses, and network tiers are + // ignored for machine image import. + repeated NetworkInterface network_interfaces = 13 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Service account to assign to the instance created by the machine image. +message ServiceAccount { + // Required. The email address of the service account. + string email = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "iam.googleapis.com/ServiceAccount" + } + ]; + + // Optional. The list of scopes to be made available for this service account. + repeated string scopes = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Shielded instance configuration. +message ShieldedInstanceConfig { + // Possible values for secure boot. + enum SecureBoot { + // No explicit value is selected. Will use the configuration of the source + // (if exists, otherwise the default will be false). + SECURE_BOOT_UNSPECIFIED = 0; + + // Use secure boot. This can be set to true only if the image boot option is + // EFI. + TRUE = 1; + + // Do not use secure boot. + FALSE = 2; + } + + // Optional. Defines whether the instance created by the machine image has + // Secure Boot enabled. This can be set to true only if the image boot option + // is EFI. + SecureBoot secure_boot = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Defines whether the instance created by the machine image has + // vTPM enabled. This can be set to true only if the image boot option is EFI. + bool enable_vtpm = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Defines whether the instance created by the machine image has + // integrity monitoring enabled. This can be set to true only if the image + // boot option is EFI, and vTPM is enabled. + bool enable_integrity_monitoring = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Parameters overriding decisions based on the source machine image +// configurations. +message MachineImageParametersOverrides { + // Optional. The machine type to create the MachineImage with. + // If empty, the service will choose a relevant machine type based on the + // information from the source image. + // For more information about machine types, please refer to + // https://cloud.google.com/compute/docs/machine-resource. + string machine_type = 1 [(google.api.field_behavior) = OPTIONAL]; +} + +// Parameters affecting the OS adaptation process. +message ImageImportOsAdaptationParameters { + // Optional. Set to true in order to generalize the imported image. + // The generalization process enables co-existence of multiple VMs created + // from the same image. + // For Windows, generalizing the image removes computer-specific information + // such as installed drivers and the computer security identifier (SID). + bool generalize = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Choose which type of license to apply to the imported image. + ComputeEngineLicenseType license_type = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. By default the image will keep its existing boot option. Setting + // this property will trigger an internal process which will convert the + // image from using the existing boot option to another. + // The size of the boot disk might be increased to allow the conversion + BootConversion boot_conversion = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Mentions that the image import is not using OS adaptation process. +message DataDiskImageImport {} + +// Mentions that the machine image import is not using OS adaptation process. +message SkipOsAdaptation {} + +// Request message for 'GetImageImport' call. +message GetImageImportRequest { + // Required. The ImageImport name. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmmigration.googleapis.com/ImageImport" + } + ]; +} + +// Request message for 'ListImageImports' call. +message ListImageImportsRequest { + // Required. The parent, which owns this collection of targets. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "vmmigration.googleapis.com/ImageImport" + } + ]; + + // Optional. The maximum number of targets to return. The service may return + // fewer than this value. If unspecified, at most 500 targets will be + // returned. The maximum value is 1000; values above 1000 will be coerced to + // 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous `ListImageImports` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListImageImports` must + // match the call that provided the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The filter request (according to AIP-160). + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The order by fields for the result (according to AIP-132). + // Currently ordering is only possible by "name" field. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for 'ListImageImports' call. +message ListImageImportsResponse { + // Output only. The list of target response. + repeated ImageImport image_imports = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A token, which can be sent as `page_token` to retrieve the + // next page. If this field is omitted, there are no subsequent pages. + string next_page_token = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Locations that could not be reached. + repeated string unreachable = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Request message for 'CreateImageImport' request. +message CreateImageImportRequest { + // Required. The ImageImport's parent. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "vmmigration.googleapis.com/ImageImport" + } + ]; + + // Required. The image import identifier. + // This value maximum length is 63 characters, and valid characters are + // /[a-z][0-9]-/. It must start with an english letter and must not end with a + // hyphen. + string image_import_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The create request body. + ImageImport image_import = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. A request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for 'DeleteImageImport' request. +message DeleteImageImportRequest { + // Required. The ImageImport name. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmmigration.googleapis.com/ImageImport" + } + ]; + + // Optional. A request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes after the first request. + // + // For example, consider a situation where you make an initial request and t + // he request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for 'GetImageImportJob' call. +message GetImageImportJobRequest { + // Required. The ImageImportJob name. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmmigration.googleapis.com/ImageImportJob" + } + ]; +} + +// Request message for 'ListImageImportJobs' call. +message ListImageImportJobsRequest { + // Required. The parent, which owns this collection of targets. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "vmmigration.googleapis.com/ImageImportJob" + } + ]; + + // Optional. The maximum number of targets to return. The service may return + // fewer than this value. If unspecified, at most 500 targets will be + // returned. The maximum value is 1000; values above 1000 will be coerced to + // 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous `ListImageImportJobs` + // call. Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListImageImportJobs` + // must match the call that provided the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The filter request (according to AIP-160). + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The order by fields for the result (according to AIP-132). + // Currently ordering is only possible by "name" field. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for 'ListImageImportJobs' call. +message ListImageImportJobsResponse { + // Output only. The list of target response. + repeated ImageImportJob image_import_jobs = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A token, which can be sent as `page_token` to retrieve the + // next page. If this field is omitted, there are no subsequent pages. + string next_page_token = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Locations that could not be reached. + repeated string unreachable = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Request message for 'CancelImageImportJob' request. +message CancelImageImportJobRequest { + // Required. The image import job id. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmmigration.googleapis.com/ImageImportJob" + } + ]; +} + +// Response message for 'CancelImageImportJob' request. +message CancelImageImportJobResponse {} + +// Describes the disk which will be migrated from the source environment. +// The source disk has to be unattached. +message DiskMigrationJob { + option (google.api.resource) = { + type: "vmmigration.googleapis.com/DiskMigrationJob" + pattern: "projects/{project}/locations/{location}/sources/{source}/diskMigrationJobs/{disk_migration_job}" + plural: "diskMigrationJobs" + singular: "diskMigrationJob" + }; + + // The possible values of the state/health of DiskMigrationJob. + enum State { + // The state is unspecified. This is not in use. + STATE_UNSPECIFIED = 0; + + // The initial state of the disk migration. + // In this state the customers can update the target details. + READY = 1; + + // The migration is active, and it's running or scheduled to run. + RUNNING = 3; + + // The migration completed successfully. + SUCCEEDED = 4; + + // Migration cancellation was initiated. + CANCELLING = 5; + + // The migration was cancelled. + CANCELLED = 6; + + // The migration process encountered an unrecoverable error and was aborted. + FAILED = 7; + } + + // Unattached source disk details. + oneof source_disk_details { + // Details of the unattached AWS source disk. + AwsSourceDiskDetails aws_source_disk_details = 2; + } + + // Output only. Identifier. The identifier of the DiskMigrationJob. + string name = 1 [ + (google.api.field_behavior) = IDENTIFIER, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Required. Details of the target Disk in Compute Engine. + DiskMigrationJobTargetDetails target_details = 3 + [(google.api.field_behavior) = REQUIRED]; + + // Output only. The time the DiskMigrationJob resource was created. + google.protobuf.Timestamp create_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The last time the DiskMigrationJob resource was updated. + google.protobuf.Timestamp update_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. State of the DiskMigrationJob. + State state = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Provides details on the errors that led to the disk migration + // job's state in case of an error. + repeated google.rpc.Status errors = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The disk migration steps list representing its progress. + repeated DiskMigrationStep steps = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Details of the target disk in Compute Engine. +message DiskMigrationJobTargetDetails { + // The target storage. + oneof target_storage { + // Required. The target disk. + ComputeEngineDisk target_disk = 8 [(google.api.field_behavior) = REQUIRED]; + } + + // Required. The name of the resource of type TargetProject which represents + // the Compute Engine project in which to create the disk. Should be of the + // form: projects/{project}/locations/global/targetProjects/{target-project} + string target_project = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmmigration.googleapis.com/TargetProject" + } + ]; + + // Optional. A map of labels to associate with the disk. + map labels = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The encryption to apply to the disk. + // If the DiskMigrationJob parent Source resource has an encryption, this + // field must be set to the same encryption key. + Encryption encryption = 7 [(google.api.field_behavior) = OPTIONAL]; +} + +// DiskMigrationStep holds information about the disk migration step progress. +message DiskMigrationStep { + // The step details. + oneof step { + // Creating source disk snapshot step. + CreatingSourceDiskSnapshotStep creating_source_disk_snapshot = 3; + + // Copying source disk snapshot step. + CopyingSourceDiskSnapshotStep copying_source_disk_snapshot = 4; + + // Creating target disk step. + ProvisioningTargetDiskStep provisioning_target_disk = 5; + } + + // Output only. The time the step has started. + google.protobuf.Timestamp start_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time the step has ended. + google.protobuf.Timestamp end_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// CreatingSourceDiskSnapshotStep contains specific step details. +message CreatingSourceDiskSnapshotStep {} + +// CopyingSourceDiskSnapshotStep contains specific step details. +message CopyingSourceDiskSnapshotStep {} + +// ProvisioningTargetDiskStep contains specific step details. +message ProvisioningTargetDiskStep {} + +// Compute Engine disk target details. +message ComputeEngineDisk { + // Optional. Target Compute Engine Disk ID. + // This is the resource ID segment of the Compute Engine Disk to create. + // In the resource name compute/v1/projects/{project}/zones/{zone}/disks/disk1 + // "disk1" is the resource ID for the disk. + string disk_id = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The Compute Engine zone in which to create the disk. Should be of + // the form: projects/{target-project}/locations/{zone} + string zone = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Optional. Replication zones of the regional disk. Should be of the form: + // projects/{target-project}/locations/{replica-zone} + // Currently only one replica zone is supported. + repeated string replica_zones = 3 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. The disk type to use. + ComputeEngineDiskType disk_type = 4 [(google.api.field_behavior) = REQUIRED]; +} + +// Represents the source AWS Disk details. +message AwsSourceDiskDetails { + // Possible values for disk types. + enum Type { + // Unspecified AWS disk type. Should not be used. + TYPE_UNSPECIFIED = 0; + + // GP2 disk type. + GP2 = 1; + + // GP3 disk type. + GP3 = 2; + + // IO1 disk type. + IO1 = 3; + + // IO2 disk type. + IO2 = 4; + + // ST1 disk type. + ST1 = 5; + + // SC1 disk type. + SC1 = 6; + + // Standard disk type. + STANDARD = 7; + } + + // Required. AWS volume ID. + string volume_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Output only. Size in GiB. + int64 size_gib = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Output only. Disk type. + Type disk_type = 3 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Optional. Output only. A map of AWS volume tags. + map tags = 4 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = OUTPUT_ONLY + ]; +} + +// Request message for 'CreateDiskMigrationJob' request. +message CreateDiskMigrationJobRequest { + // Required. The DiskMigrationJob's parent. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "vmmigration.googleapis.com/DiskMigrationJob" + } + ]; + + // Required. The DiskMigrationJob identifier. + // The maximum length of this value is 63 characters. + // Valid characters are lower case Latin letters, digits and hyphen. + // It must start with a Latin letter and must not end with a hyphen. + string disk_migration_job_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The create request body. + DiskMigrationJob disk_migration_job = 3 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. A request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and + // the request timed out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 4 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Request message for 'ListDiskMigrationJobsRequest' request. +message ListDiskMigrationJobsRequest { + // Required. The parent, which owns this collection of DiskMigrationJobs. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "vmmigration.googleapis.com/DiskMigrationJob" + } + ]; + + // Optional. The maximum number of disk migration jobs to return. The service + // may return fewer than this value. If unspecified, at most 500 + // disk migration jobs will be returned. + // The maximum value is 1000; values above 1000 will be coerced to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous `ListDiskMigrationJobs` + // call. Provide this to retrieve the subsequent page. + // + // When paginating, all parameters provided to `ListDiskMigrationJobs` + // except `page_size` must match the call that provided the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The filter request (according to AIP-160). + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Ordering of the result list. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for 'ListDiskMigrationJobs' request. +message ListDiskMigrationJobsResponse { + // Output only. The list of the disk migration jobs. + repeated DiskMigrationJob disk_migration_jobs = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Output only. A token, which can be sent as `page_token` to + // retrieve the next page. If this field is omitted, there are no subsequent + // pages. + string next_page_token = 2 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.field_behavior) = OPTIONAL + ]; + + // Output only. Locations that could not be reached. + repeated string unreachable = 3 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; +} + +// Request message for 'GetDiskMigrationJob' request. +message GetDiskMigrationJobRequest { + // Required. The name of the DiskMigrationJob. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmmigration.googleapis.com/DiskMigrationJob" + } + ]; +} + +// Request message for 'UpdateDiskMigrationJob' request. +message UpdateDiskMigrationJobRequest { + // Optional. Field mask is used to specify the fields to be overwritten in the + // DiskMigrationJob resource by the update. + // The fields specified in the update_mask are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. If the + // user does not provide a mask, then a mask equivalent to all fields that are + // populated (have a non-empty value), will be implied. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. The update request body. + DiskMigrationJob disk_migration_job = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. A request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and + // the request timed out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating 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 + ]; +} + +// Request message for 'DeleteDiskMigrationJob' request. +message DeleteDiskMigrationJobRequest { + // Required. The name of the DiskMigrationJob. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmmigration.googleapis.com/DiskMigrationJob" + } + ]; +} + +// Request message for 'RunDiskMigrationJobRequest' request. +message RunDiskMigrationJobRequest { + // Required. The name of the DiskMigrationJob. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmmigration.googleapis.com/DiskMigrationJob" + } + ]; +} + +// Response message for 'RunDiskMigrationJob' request. +message RunDiskMigrationJobResponse {} + +// Request message for 'CancelDiskMigrationJob' request. +message CancelDiskMigrationJobRequest { + // Required. The name of the DiskMigrationJob. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vmmigration.googleapis.com/DiskMigrationJob" + } + ]; +} + +// Response message for 'CancelDiskMigrationJob' request. +message CancelDiskMigrationJobResponse {} diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/canceldiskmigrationjob/AsyncCancelDiskMigrationJob.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/canceldiskmigrationjob/AsyncCancelDiskMigrationJob.java new file mode 100644 index 000000000000..9f52719f57b7 --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/canceldiskmigrationjob/AsyncCancelDiskMigrationJob.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_CancelDiskMigrationJob_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest; +import com.google.cloud.vmmigration.v1.DiskMigrationJobName; +import com.google.cloud.vmmigration.v1.VmMigrationClient; +import com.google.longrunning.Operation; + +public class AsyncCancelDiskMigrationJob { + + public static void main(String[] args) throws Exception { + asyncCancelDiskMigrationJob(); + } + + public static void asyncCancelDiskMigrationJob() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + CancelDiskMigrationJobRequest request = + CancelDiskMigrationJobRequest.newBuilder() + .setName( + DiskMigrationJobName.of( + "[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]") + .toString()) + .build(); + ApiFuture future = + vmMigrationClient.cancelDiskMigrationJobCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END vmmigration_v1_generated_VmMigration_CancelDiskMigrationJob_async] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/canceldiskmigrationjob/AsyncCancelDiskMigrationJobLRO.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/canceldiskmigrationjob/AsyncCancelDiskMigrationJobLRO.java new file mode 100644 index 000000000000..c6e73a8e8204 --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/canceldiskmigrationjob/AsyncCancelDiskMigrationJobLRO.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_CancelDiskMigrationJob_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest; +import com.google.cloud.vmmigration.v1.CancelDiskMigrationJobResponse; +import com.google.cloud.vmmigration.v1.DiskMigrationJobName; +import com.google.cloud.vmmigration.v1.OperationMetadata; +import com.google.cloud.vmmigration.v1.VmMigrationClient; + +public class AsyncCancelDiskMigrationJobLRO { + + public static void main(String[] args) throws Exception { + asyncCancelDiskMigrationJobLRO(); + } + + public static void asyncCancelDiskMigrationJobLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + CancelDiskMigrationJobRequest request = + CancelDiskMigrationJobRequest.newBuilder() + .setName( + DiskMigrationJobName.of( + "[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]") + .toString()) + .build(); + OperationFuture future = + vmMigrationClient.cancelDiskMigrationJobOperationCallable().futureCall(request); + // Do something. + CancelDiskMigrationJobResponse response = future.get(); + } + } +} +// [END vmmigration_v1_generated_VmMigration_CancelDiskMigrationJob_LRO_async] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/canceldiskmigrationjob/SyncCancelDiskMigrationJob.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/canceldiskmigrationjob/SyncCancelDiskMigrationJob.java new file mode 100644 index 000000000000..5d47959aa694 --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/canceldiskmigrationjob/SyncCancelDiskMigrationJob.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_CancelDiskMigrationJob_sync] +import com.google.cloud.vmmigration.v1.CancelDiskMigrationJobRequest; +import com.google.cloud.vmmigration.v1.CancelDiskMigrationJobResponse; +import com.google.cloud.vmmigration.v1.DiskMigrationJobName; +import com.google.cloud.vmmigration.v1.VmMigrationClient; + +public class SyncCancelDiskMigrationJob { + + public static void main(String[] args) throws Exception { + syncCancelDiskMigrationJob(); + } + + public static void syncCancelDiskMigrationJob() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + CancelDiskMigrationJobRequest request = + CancelDiskMigrationJobRequest.newBuilder() + .setName( + DiskMigrationJobName.of( + "[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]") + .toString()) + .build(); + CancelDiskMigrationJobResponse response = + vmMigrationClient.cancelDiskMigrationJobAsync(request).get(); + } + } +} +// [END vmmigration_v1_generated_VmMigration_CancelDiskMigrationJob_sync] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/cancelimageimportjob/AsyncCancelImageImportJob.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/cancelimageimportjob/AsyncCancelImageImportJob.java new file mode 100644 index 000000000000..fdd881fa76c7 --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/cancelimageimportjob/AsyncCancelImageImportJob.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_CancelImageImportJob_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmmigration.v1.CancelImageImportJobRequest; +import com.google.cloud.vmmigration.v1.ImageImportJobName; +import com.google.cloud.vmmigration.v1.VmMigrationClient; +import com.google.longrunning.Operation; + +public class AsyncCancelImageImportJob { + + public static void main(String[] args) throws Exception { + asyncCancelImageImportJob(); + } + + public static void asyncCancelImageImportJob() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + CancelImageImportJobRequest request = + CancelImageImportJobRequest.newBuilder() + .setName( + ImageImportJobName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[RESULT]").toString()) + .build(); + ApiFuture future = + vmMigrationClient.cancelImageImportJobCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END vmmigration_v1_generated_VmMigration_CancelImageImportJob_async] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/cancelimageimportjob/AsyncCancelImageImportJobLRO.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/cancelimageimportjob/AsyncCancelImageImportJobLRO.java new file mode 100644 index 000000000000..94569bbd428a --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/cancelimageimportjob/AsyncCancelImageImportJobLRO.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_CancelImageImportJob_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.vmmigration.v1.CancelImageImportJobRequest; +import com.google.cloud.vmmigration.v1.CancelImageImportJobResponse; +import com.google.cloud.vmmigration.v1.ImageImportJobName; +import com.google.cloud.vmmigration.v1.OperationMetadata; +import com.google.cloud.vmmigration.v1.VmMigrationClient; + +public class AsyncCancelImageImportJobLRO { + + public static void main(String[] args) throws Exception { + asyncCancelImageImportJobLRO(); + } + + public static void asyncCancelImageImportJobLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + CancelImageImportJobRequest request = + CancelImageImportJobRequest.newBuilder() + .setName( + ImageImportJobName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[RESULT]").toString()) + .build(); + OperationFuture future = + vmMigrationClient.cancelImageImportJobOperationCallable().futureCall(request); + // Do something. + CancelImageImportJobResponse response = future.get(); + } + } +} +// [END vmmigration_v1_generated_VmMigration_CancelImageImportJob_LRO_async] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/cancelimageimportjob/SyncCancelImageImportJob.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/cancelimageimportjob/SyncCancelImageImportJob.java new file mode 100644 index 000000000000..9faaf1a82c84 --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/cancelimageimportjob/SyncCancelImageImportJob.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_CancelImageImportJob_sync] +import com.google.cloud.vmmigration.v1.CancelImageImportJobRequest; +import com.google.cloud.vmmigration.v1.CancelImageImportJobResponse; +import com.google.cloud.vmmigration.v1.ImageImportJobName; +import com.google.cloud.vmmigration.v1.VmMigrationClient; + +public class SyncCancelImageImportJob { + + public static void main(String[] args) throws Exception { + syncCancelImageImportJob(); + } + + public static void syncCancelImageImportJob() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + CancelImageImportJobRequest request = + CancelImageImportJobRequest.newBuilder() + .setName( + ImageImportJobName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[RESULT]").toString()) + .build(); + CancelImageImportJobResponse response = + vmMigrationClient.cancelImageImportJobAsync(request).get(); + } + } +} +// [END vmmigration_v1_generated_VmMigration_CancelImageImportJob_sync] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/cancelimageimportjob/SyncCancelImageImportJobImageimportjobname.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/cancelimageimportjob/SyncCancelImageImportJobImageimportjobname.java new file mode 100644 index 000000000000..f442c76af3a6 --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/cancelimageimportjob/SyncCancelImageImportJobImageimportjobname.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_CancelImageImportJob_Imageimportjobname_sync] +import com.google.cloud.vmmigration.v1.CancelImageImportJobResponse; +import com.google.cloud.vmmigration.v1.ImageImportJobName; +import com.google.cloud.vmmigration.v1.VmMigrationClient; + +public class SyncCancelImageImportJobImageimportjobname { + + public static void main(String[] args) throws Exception { + syncCancelImageImportJobImageimportjobname(); + } + + public static void syncCancelImageImportJobImageimportjobname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + ImageImportJobName name = + ImageImportJobName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[RESULT]"); + CancelImageImportJobResponse response = + vmMigrationClient.cancelImageImportJobAsync(name).get(); + } + } +} +// [END vmmigration_v1_generated_VmMigration_CancelImageImportJob_Imageimportjobname_sync] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/cancelimageimportjob/SyncCancelImageImportJobString.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/cancelimageimportjob/SyncCancelImageImportJobString.java new file mode 100644 index 000000000000..4f776bfc7bfc --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/cancelimageimportjob/SyncCancelImageImportJobString.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_CancelImageImportJob_String_sync] +import com.google.cloud.vmmigration.v1.CancelImageImportJobResponse; +import com.google.cloud.vmmigration.v1.ImageImportJobName; +import com.google.cloud.vmmigration.v1.VmMigrationClient; + +public class SyncCancelImageImportJobString { + + public static void main(String[] args) throws Exception { + syncCancelImageImportJobString(); + } + + public static void syncCancelImageImportJobString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + String name = + ImageImportJobName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[RESULT]").toString(); + CancelImageImportJobResponse response = + vmMigrationClient.cancelImageImportJobAsync(name).get(); + } + } +} +// [END vmmigration_v1_generated_VmMigration_CancelImageImportJob_String_sync] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/creatediskmigrationjob/AsyncCreateDiskMigrationJob.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/creatediskmigrationjob/AsyncCreateDiskMigrationJob.java new file mode 100644 index 000000000000..cdaca9d83db4 --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/creatediskmigrationjob/AsyncCreateDiskMigrationJob.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_CreateDiskMigrationJob_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest; +import com.google.cloud.vmmigration.v1.DiskMigrationJob; +import com.google.cloud.vmmigration.v1.SourceName; +import com.google.cloud.vmmigration.v1.VmMigrationClient; +import com.google.longrunning.Operation; + +public class AsyncCreateDiskMigrationJob { + + public static void main(String[] args) throws Exception { + asyncCreateDiskMigrationJob(); + } + + public static void asyncCreateDiskMigrationJob() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + CreateDiskMigrationJobRequest request = + CreateDiskMigrationJobRequest.newBuilder() + .setParent(SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]").toString()) + .setDiskMigrationJobId("diskMigrationJobId-173409913") + .setDiskMigrationJob(DiskMigrationJob.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + vmMigrationClient.createDiskMigrationJobCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END vmmigration_v1_generated_VmMigration_CreateDiskMigrationJob_async] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/creatediskmigrationjob/AsyncCreateDiskMigrationJobLRO.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/creatediskmigrationjob/AsyncCreateDiskMigrationJobLRO.java new file mode 100644 index 000000000000..b087f6301b69 --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/creatediskmigrationjob/AsyncCreateDiskMigrationJobLRO.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_CreateDiskMigrationJob_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest; +import com.google.cloud.vmmigration.v1.DiskMigrationJob; +import com.google.cloud.vmmigration.v1.OperationMetadata; +import com.google.cloud.vmmigration.v1.SourceName; +import com.google.cloud.vmmigration.v1.VmMigrationClient; + +public class AsyncCreateDiskMigrationJobLRO { + + public static void main(String[] args) throws Exception { + asyncCreateDiskMigrationJobLRO(); + } + + public static void asyncCreateDiskMigrationJobLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + CreateDiskMigrationJobRequest request = + CreateDiskMigrationJobRequest.newBuilder() + .setParent(SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]").toString()) + .setDiskMigrationJobId("diskMigrationJobId-173409913") + .setDiskMigrationJob(DiskMigrationJob.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + vmMigrationClient.createDiskMigrationJobOperationCallable().futureCall(request); + // Do something. + DiskMigrationJob response = future.get(); + } + } +} +// [END vmmigration_v1_generated_VmMigration_CreateDiskMigrationJob_LRO_async] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/creatediskmigrationjob/SyncCreateDiskMigrationJob.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/creatediskmigrationjob/SyncCreateDiskMigrationJob.java new file mode 100644 index 000000000000..eb3ea24d25c2 --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/creatediskmigrationjob/SyncCreateDiskMigrationJob.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_CreateDiskMigrationJob_sync] +import com.google.cloud.vmmigration.v1.CreateDiskMigrationJobRequest; +import com.google.cloud.vmmigration.v1.DiskMigrationJob; +import com.google.cloud.vmmigration.v1.SourceName; +import com.google.cloud.vmmigration.v1.VmMigrationClient; + +public class SyncCreateDiskMigrationJob { + + public static void main(String[] args) throws Exception { + syncCreateDiskMigrationJob(); + } + + public static void syncCreateDiskMigrationJob() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + CreateDiskMigrationJobRequest request = + CreateDiskMigrationJobRequest.newBuilder() + .setParent(SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]").toString()) + .setDiskMigrationJobId("diskMigrationJobId-173409913") + .setDiskMigrationJob(DiskMigrationJob.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + DiskMigrationJob response = vmMigrationClient.createDiskMigrationJobAsync(request).get(); + } + } +} +// [END vmmigration_v1_generated_VmMigration_CreateDiskMigrationJob_sync] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/creatediskmigrationjob/SyncCreateDiskMigrationJobSourcenameDiskmigrationjobString.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/creatediskmigrationjob/SyncCreateDiskMigrationJobSourcenameDiskmigrationjobString.java new file mode 100644 index 000000000000..e1980a3989cc --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/creatediskmigrationjob/SyncCreateDiskMigrationJobSourcenameDiskmigrationjobString.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_CreateDiskMigrationJob_SourcenameDiskmigrationjobString_sync] +import com.google.cloud.vmmigration.v1.DiskMigrationJob; +import com.google.cloud.vmmigration.v1.SourceName; +import com.google.cloud.vmmigration.v1.VmMigrationClient; + +public class SyncCreateDiskMigrationJobSourcenameDiskmigrationjobString { + + public static void main(String[] args) throws Exception { + syncCreateDiskMigrationJobSourcenameDiskmigrationjobString(); + } + + public static void syncCreateDiskMigrationJobSourcenameDiskmigrationjobString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + SourceName parent = SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]"); + DiskMigrationJob diskMigrationJob = DiskMigrationJob.newBuilder().build(); + String diskMigrationJobId = "diskMigrationJobId-173409913"; + DiskMigrationJob response = + vmMigrationClient + .createDiskMigrationJobAsync(parent, diskMigrationJob, diskMigrationJobId) + .get(); + } + } +} +// [END vmmigration_v1_generated_VmMigration_CreateDiskMigrationJob_SourcenameDiskmigrationjobString_sync] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/creatediskmigrationjob/SyncCreateDiskMigrationJobStringDiskmigrationjobString.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/creatediskmigrationjob/SyncCreateDiskMigrationJobStringDiskmigrationjobString.java new file mode 100644 index 000000000000..6030994f340a --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/creatediskmigrationjob/SyncCreateDiskMigrationJobStringDiskmigrationjobString.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_CreateDiskMigrationJob_StringDiskmigrationjobString_sync] +import com.google.cloud.vmmigration.v1.DiskMigrationJob; +import com.google.cloud.vmmigration.v1.SourceName; +import com.google.cloud.vmmigration.v1.VmMigrationClient; + +public class SyncCreateDiskMigrationJobStringDiskmigrationjobString { + + public static void main(String[] args) throws Exception { + syncCreateDiskMigrationJobStringDiskmigrationjobString(); + } + + public static void syncCreateDiskMigrationJobStringDiskmigrationjobString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + String parent = SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]").toString(); + DiskMigrationJob diskMigrationJob = DiskMigrationJob.newBuilder().build(); + String diskMigrationJobId = "diskMigrationJobId-173409913"; + DiskMigrationJob response = + vmMigrationClient + .createDiskMigrationJobAsync(parent, diskMigrationJob, diskMigrationJobId) + .get(); + } + } +} +// [END vmmigration_v1_generated_VmMigration_CreateDiskMigrationJob_StringDiskmigrationjobString_sync] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/createimageimport/AsyncCreateImageImport.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/createimageimport/AsyncCreateImageImport.java new file mode 100644 index 000000000000..ac4c88531bd6 --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/createimageimport/AsyncCreateImageImport.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_CreateImageImport_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmmigration.v1.CreateImageImportRequest; +import com.google.cloud.vmmigration.v1.ImageImport; +import com.google.cloud.vmmigration.v1.LocationName; +import com.google.cloud.vmmigration.v1.VmMigrationClient; +import com.google.longrunning.Operation; + +public class AsyncCreateImageImport { + + public static void main(String[] args) throws Exception { + asyncCreateImageImport(); + } + + public static void asyncCreateImageImport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + CreateImageImportRequest request = + CreateImageImportRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setImageImportId("imageImportId943893019") + .setImageImport(ImageImport.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + vmMigrationClient.createImageImportCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END vmmigration_v1_generated_VmMigration_CreateImageImport_async] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/createimageimport/AsyncCreateImageImportLRO.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/createimageimport/AsyncCreateImageImportLRO.java new file mode 100644 index 000000000000..b5cd7e2e1d29 --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/createimageimport/AsyncCreateImageImportLRO.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_CreateImageImport_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.vmmigration.v1.CreateImageImportRequest; +import com.google.cloud.vmmigration.v1.ImageImport; +import com.google.cloud.vmmigration.v1.LocationName; +import com.google.cloud.vmmigration.v1.OperationMetadata; +import com.google.cloud.vmmigration.v1.VmMigrationClient; + +public class AsyncCreateImageImportLRO { + + public static void main(String[] args) throws Exception { + asyncCreateImageImportLRO(); + } + + public static void asyncCreateImageImportLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + CreateImageImportRequest request = + CreateImageImportRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setImageImportId("imageImportId943893019") + .setImageImport(ImageImport.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + vmMigrationClient.createImageImportOperationCallable().futureCall(request); + // Do something. + ImageImport response = future.get(); + } + } +} +// [END vmmigration_v1_generated_VmMigration_CreateImageImport_LRO_async] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/createimageimport/SyncCreateImageImport.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/createimageimport/SyncCreateImageImport.java new file mode 100644 index 000000000000..677da482761e --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/createimageimport/SyncCreateImageImport.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_CreateImageImport_sync] +import com.google.cloud.vmmigration.v1.CreateImageImportRequest; +import com.google.cloud.vmmigration.v1.ImageImport; +import com.google.cloud.vmmigration.v1.LocationName; +import com.google.cloud.vmmigration.v1.VmMigrationClient; + +public class SyncCreateImageImport { + + public static void main(String[] args) throws Exception { + syncCreateImageImport(); + } + + public static void syncCreateImageImport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + CreateImageImportRequest request = + CreateImageImportRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setImageImportId("imageImportId943893019") + .setImageImport(ImageImport.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ImageImport response = vmMigrationClient.createImageImportAsync(request).get(); + } + } +} +// [END vmmigration_v1_generated_VmMigration_CreateImageImport_sync] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/createimageimport/SyncCreateImageImportLocationnameImageimportString.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/createimageimport/SyncCreateImageImportLocationnameImageimportString.java new file mode 100644 index 000000000000..90d31bbe2df4 --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/createimageimport/SyncCreateImageImportLocationnameImageimportString.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_CreateImageImport_LocationnameImageimportString_sync] +import com.google.cloud.vmmigration.v1.ImageImport; +import com.google.cloud.vmmigration.v1.LocationName; +import com.google.cloud.vmmigration.v1.VmMigrationClient; + +public class SyncCreateImageImportLocationnameImageimportString { + + public static void main(String[] args) throws Exception { + syncCreateImageImportLocationnameImageimportString(); + } + + public static void syncCreateImageImportLocationnameImageimportString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + ImageImport imageImport = ImageImport.newBuilder().build(); + String imageImportId = "imageImportId943893019"; + ImageImport response = + vmMigrationClient.createImageImportAsync(parent, imageImport, imageImportId).get(); + } + } +} +// [END vmmigration_v1_generated_VmMigration_CreateImageImport_LocationnameImageimportString_sync] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/createimageimport/SyncCreateImageImportStringImageimportString.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/createimageimport/SyncCreateImageImportStringImageimportString.java new file mode 100644 index 000000000000..025689ad19f8 --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/createimageimport/SyncCreateImageImportStringImageimportString.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_CreateImageImport_StringImageimportString_sync] +import com.google.cloud.vmmigration.v1.ImageImport; +import com.google.cloud.vmmigration.v1.LocationName; +import com.google.cloud.vmmigration.v1.VmMigrationClient; + +public class SyncCreateImageImportStringImageimportString { + + public static void main(String[] args) throws Exception { + syncCreateImageImportStringImageimportString(); + } + + public static void syncCreateImageImportStringImageimportString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + ImageImport imageImport = ImageImport.newBuilder().build(); + String imageImportId = "imageImportId943893019"; + ImageImport response = + vmMigrationClient.createImageImportAsync(parent, imageImport, imageImportId).get(); + } + } +} +// [END vmmigration_v1_generated_VmMigration_CreateImageImport_StringImageimportString_sync] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/deletediskmigrationjob/AsyncDeleteDiskMigrationJob.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/deletediskmigrationjob/AsyncDeleteDiskMigrationJob.java new file mode 100644 index 000000000000..4b584e0d7a97 --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/deletediskmigrationjob/AsyncDeleteDiskMigrationJob.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_DeleteDiskMigrationJob_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest; +import com.google.cloud.vmmigration.v1.DiskMigrationJobName; +import com.google.cloud.vmmigration.v1.VmMigrationClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteDiskMigrationJob { + + public static void main(String[] args) throws Exception { + asyncDeleteDiskMigrationJob(); + } + + public static void asyncDeleteDiskMigrationJob() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + DeleteDiskMigrationJobRequest request = + DeleteDiskMigrationJobRequest.newBuilder() + .setName( + DiskMigrationJobName.of( + "[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]") + .toString()) + .build(); + ApiFuture future = + vmMigrationClient.deleteDiskMigrationJobCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END vmmigration_v1_generated_VmMigration_DeleteDiskMigrationJob_async] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/deletediskmigrationjob/AsyncDeleteDiskMigrationJobLRO.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/deletediskmigrationjob/AsyncDeleteDiskMigrationJobLRO.java new file mode 100644 index 000000000000..db48602905cc --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/deletediskmigrationjob/AsyncDeleteDiskMigrationJobLRO.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_DeleteDiskMigrationJob_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest; +import com.google.cloud.vmmigration.v1.DiskMigrationJobName; +import com.google.cloud.vmmigration.v1.OperationMetadata; +import com.google.cloud.vmmigration.v1.VmMigrationClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteDiskMigrationJobLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteDiskMigrationJobLRO(); + } + + public static void asyncDeleteDiskMigrationJobLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + DeleteDiskMigrationJobRequest request = + DeleteDiskMigrationJobRequest.newBuilder() + .setName( + DiskMigrationJobName.of( + "[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]") + .toString()) + .build(); + OperationFuture future = + vmMigrationClient.deleteDiskMigrationJobOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END vmmigration_v1_generated_VmMigration_DeleteDiskMigrationJob_LRO_async] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/deletediskmigrationjob/SyncDeleteDiskMigrationJob.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/deletediskmigrationjob/SyncDeleteDiskMigrationJob.java new file mode 100644 index 000000000000..d603c9d496d9 --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/deletediskmigrationjob/SyncDeleteDiskMigrationJob.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_DeleteDiskMigrationJob_sync] +import com.google.cloud.vmmigration.v1.DeleteDiskMigrationJobRequest; +import com.google.cloud.vmmigration.v1.DiskMigrationJobName; +import com.google.cloud.vmmigration.v1.VmMigrationClient; +import com.google.protobuf.Empty; + +public class SyncDeleteDiskMigrationJob { + + public static void main(String[] args) throws Exception { + syncDeleteDiskMigrationJob(); + } + + public static void syncDeleteDiskMigrationJob() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + DeleteDiskMigrationJobRequest request = + DeleteDiskMigrationJobRequest.newBuilder() + .setName( + DiskMigrationJobName.of( + "[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]") + .toString()) + .build(); + vmMigrationClient.deleteDiskMigrationJobAsync(request).get(); + } + } +} +// [END vmmigration_v1_generated_VmMigration_DeleteDiskMigrationJob_sync] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/deletediskmigrationjob/SyncDeleteDiskMigrationJobDiskmigrationjobname.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/deletediskmigrationjob/SyncDeleteDiskMigrationJobDiskmigrationjobname.java new file mode 100644 index 000000000000..0fa5473806ea --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/deletediskmigrationjob/SyncDeleteDiskMigrationJobDiskmigrationjobname.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_DeleteDiskMigrationJob_Diskmigrationjobname_sync] +import com.google.cloud.vmmigration.v1.DiskMigrationJobName; +import com.google.cloud.vmmigration.v1.VmMigrationClient; +import com.google.protobuf.Empty; + +public class SyncDeleteDiskMigrationJobDiskmigrationjobname { + + public static void main(String[] args) throws Exception { + syncDeleteDiskMigrationJobDiskmigrationjobname(); + } + + public static void syncDeleteDiskMigrationJobDiskmigrationjobname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + DiskMigrationJobName name = + DiskMigrationJobName.of("[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]"); + vmMigrationClient.deleteDiskMigrationJobAsync(name).get(); + } + } +} +// [END vmmigration_v1_generated_VmMigration_DeleteDiskMigrationJob_Diskmigrationjobname_sync] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/deletediskmigrationjob/SyncDeleteDiskMigrationJobString.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/deletediskmigrationjob/SyncDeleteDiskMigrationJobString.java new file mode 100644 index 000000000000..0148f010c52f --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/deletediskmigrationjob/SyncDeleteDiskMigrationJobString.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_DeleteDiskMigrationJob_String_sync] +import com.google.cloud.vmmigration.v1.DiskMigrationJobName; +import com.google.cloud.vmmigration.v1.VmMigrationClient; +import com.google.protobuf.Empty; + +public class SyncDeleteDiskMigrationJobString { + + public static void main(String[] args) throws Exception { + syncDeleteDiskMigrationJobString(); + } + + public static void syncDeleteDiskMigrationJobString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + String name = + DiskMigrationJobName.of("[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]") + .toString(); + vmMigrationClient.deleteDiskMigrationJobAsync(name).get(); + } + } +} +// [END vmmigration_v1_generated_VmMigration_DeleteDiskMigrationJob_String_sync] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/deleteimageimport/AsyncDeleteImageImport.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/deleteimageimport/AsyncDeleteImageImport.java new file mode 100644 index 000000000000..675069d52cca --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/deleteimageimport/AsyncDeleteImageImport.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_DeleteImageImport_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmmigration.v1.DeleteImageImportRequest; +import com.google.cloud.vmmigration.v1.ImageImportName; +import com.google.cloud.vmmigration.v1.VmMigrationClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteImageImport { + + public static void main(String[] args) throws Exception { + asyncDeleteImageImport(); + } + + public static void asyncDeleteImageImport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + DeleteImageImportRequest request = + DeleteImageImportRequest.newBuilder() + .setName(ImageImportName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + vmMigrationClient.deleteImageImportCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END vmmigration_v1_generated_VmMigration_DeleteImageImport_async] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/deleteimageimport/AsyncDeleteImageImportLRO.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/deleteimageimport/AsyncDeleteImageImportLRO.java new file mode 100644 index 000000000000..ecec3cea8797 --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/deleteimageimport/AsyncDeleteImageImportLRO.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_DeleteImageImport_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.vmmigration.v1.DeleteImageImportRequest; +import com.google.cloud.vmmigration.v1.ImageImportName; +import com.google.cloud.vmmigration.v1.OperationMetadata; +import com.google.cloud.vmmigration.v1.VmMigrationClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteImageImportLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteImageImportLRO(); + } + + public static void asyncDeleteImageImportLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + DeleteImageImportRequest request = + DeleteImageImportRequest.newBuilder() + .setName(ImageImportName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + vmMigrationClient.deleteImageImportOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END vmmigration_v1_generated_VmMigration_DeleteImageImport_LRO_async] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/deleteimageimport/SyncDeleteImageImport.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/deleteimageimport/SyncDeleteImageImport.java new file mode 100644 index 000000000000..58be375a9e34 --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/deleteimageimport/SyncDeleteImageImport.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_DeleteImageImport_sync] +import com.google.cloud.vmmigration.v1.DeleteImageImportRequest; +import com.google.cloud.vmmigration.v1.ImageImportName; +import com.google.cloud.vmmigration.v1.VmMigrationClient; +import com.google.protobuf.Empty; + +public class SyncDeleteImageImport { + + public static void main(String[] args) throws Exception { + syncDeleteImageImport(); + } + + public static void syncDeleteImageImport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + DeleteImageImportRequest request = + DeleteImageImportRequest.newBuilder() + .setName(ImageImportName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setRequestId("requestId693933066") + .build(); + vmMigrationClient.deleteImageImportAsync(request).get(); + } + } +} +// [END vmmigration_v1_generated_VmMigration_DeleteImageImport_sync] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/deleteimageimport/SyncDeleteImageImportImageimportname.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/deleteimageimport/SyncDeleteImageImportImageimportname.java new file mode 100644 index 000000000000..6a289c5ffab4 --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/deleteimageimport/SyncDeleteImageImportImageimportname.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_DeleteImageImport_Imageimportname_sync] +import com.google.cloud.vmmigration.v1.ImageImportName; +import com.google.cloud.vmmigration.v1.VmMigrationClient; +import com.google.protobuf.Empty; + +public class SyncDeleteImageImportImageimportname { + + public static void main(String[] args) throws Exception { + syncDeleteImageImportImageimportname(); + } + + public static void syncDeleteImageImportImageimportname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + ImageImportName name = ImageImportName.of("[PROJECT]", "[LOCATION]", "[JOB]"); + vmMigrationClient.deleteImageImportAsync(name).get(); + } + } +} +// [END vmmigration_v1_generated_VmMigration_DeleteImageImport_Imageimportname_sync] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/deleteimageimport/SyncDeleteImageImportString.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/deleteimageimport/SyncDeleteImageImportString.java new file mode 100644 index 000000000000..d63195f27140 --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/deleteimageimport/SyncDeleteImageImportString.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_DeleteImageImport_String_sync] +import com.google.cloud.vmmigration.v1.ImageImportName; +import com.google.cloud.vmmigration.v1.VmMigrationClient; +import com.google.protobuf.Empty; + +public class SyncDeleteImageImportString { + + public static void main(String[] args) throws Exception { + syncDeleteImageImportString(); + } + + public static void syncDeleteImageImportString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + String name = ImageImportName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString(); + vmMigrationClient.deleteImageImportAsync(name).get(); + } + } +} +// [END vmmigration_v1_generated_VmMigration_DeleteImageImport_String_sync] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/extendmigration/AsyncExtendMigration.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/extendmigration/AsyncExtendMigration.java new file mode 100644 index 000000000000..90cc869b3b3b --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/extendmigration/AsyncExtendMigration.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_ExtendMigration_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmmigration.v1.ExtendMigrationRequest; +import com.google.cloud.vmmigration.v1.MigratingVmName; +import com.google.cloud.vmmigration.v1.VmMigrationClient; +import com.google.longrunning.Operation; + +public class AsyncExtendMigration { + + public static void main(String[] args) throws Exception { + asyncExtendMigration(); + } + + public static void asyncExtendMigration() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + ExtendMigrationRequest request = + ExtendMigrationRequest.newBuilder() + .setMigratingVm( + MigratingVmName.of("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]") + .toString()) + .build(); + ApiFuture future = vmMigrationClient.extendMigrationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END vmmigration_v1_generated_VmMigration_ExtendMigration_async] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/extendmigration/AsyncExtendMigrationLRO.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/extendmigration/AsyncExtendMigrationLRO.java new file mode 100644 index 000000000000..c514e3916573 --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/extendmigration/AsyncExtendMigrationLRO.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_ExtendMigration_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.vmmigration.v1.ExtendMigrationRequest; +import com.google.cloud.vmmigration.v1.ExtendMigrationResponse; +import com.google.cloud.vmmigration.v1.MigratingVmName; +import com.google.cloud.vmmigration.v1.OperationMetadata; +import com.google.cloud.vmmigration.v1.VmMigrationClient; + +public class AsyncExtendMigrationLRO { + + public static void main(String[] args) throws Exception { + asyncExtendMigrationLRO(); + } + + public static void asyncExtendMigrationLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + ExtendMigrationRequest request = + ExtendMigrationRequest.newBuilder() + .setMigratingVm( + MigratingVmName.of("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]") + .toString()) + .build(); + OperationFuture future = + vmMigrationClient.extendMigrationOperationCallable().futureCall(request); + // Do something. + ExtendMigrationResponse response = future.get(); + } + } +} +// [END vmmigration_v1_generated_VmMigration_ExtendMigration_LRO_async] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/extendmigration/SyncExtendMigration.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/extendmigration/SyncExtendMigration.java new file mode 100644 index 000000000000..a3d86bba37af --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/extendmigration/SyncExtendMigration.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_ExtendMigration_sync] +import com.google.cloud.vmmigration.v1.ExtendMigrationRequest; +import com.google.cloud.vmmigration.v1.ExtendMigrationResponse; +import com.google.cloud.vmmigration.v1.MigratingVmName; +import com.google.cloud.vmmigration.v1.VmMigrationClient; + +public class SyncExtendMigration { + + public static void main(String[] args) throws Exception { + syncExtendMigration(); + } + + public static void syncExtendMigration() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + ExtendMigrationRequest request = + ExtendMigrationRequest.newBuilder() + .setMigratingVm( + MigratingVmName.of("[PROJECT]", "[LOCATION]", "[SOURCE]", "[MIGRATING_VM]") + .toString()) + .build(); + ExtendMigrationResponse response = vmMigrationClient.extendMigrationAsync(request).get(); + } + } +} +// [END vmmigration_v1_generated_VmMigration_ExtendMigration_sync] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/fetchstorageinventory/AsyncFetchStorageInventory.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/fetchstorageinventory/AsyncFetchStorageInventory.java new file mode 100644 index 000000000000..8f77fee9ce91 --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/fetchstorageinventory/AsyncFetchStorageInventory.java @@ -0,0 +1,55 @@ +/* + * 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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_FetchStorageInventory_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest; +import com.google.cloud.vmmigration.v1.SourceName; +import com.google.cloud.vmmigration.v1.SourceStorageResource; +import com.google.cloud.vmmigration.v1.VmMigrationClient; + +public class AsyncFetchStorageInventory { + + public static void main(String[] args) throws Exception { + asyncFetchStorageInventory(); + } + + public static void asyncFetchStorageInventory() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + FetchStorageInventoryRequest request = + FetchStorageInventoryRequest.newBuilder() + .setSource(SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]").toString()) + .setForceRefresh(true) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + vmMigrationClient.fetchStorageInventoryPagedCallable().futureCall(request); + // Do something. + for (SourceStorageResource element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vmmigration_v1_generated_VmMigration_FetchStorageInventory_async] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/fetchstorageinventory/AsyncFetchStorageInventoryPaged.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/fetchstorageinventory/AsyncFetchStorageInventoryPaged.java new file mode 100644 index 000000000000..2496763eea37 --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/fetchstorageinventory/AsyncFetchStorageInventoryPaged.java @@ -0,0 +1,63 @@ +/* + * 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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_FetchStorageInventory_Paged_async] +import com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest; +import com.google.cloud.vmmigration.v1.FetchStorageInventoryResponse; +import com.google.cloud.vmmigration.v1.SourceName; +import com.google.cloud.vmmigration.v1.SourceStorageResource; +import com.google.cloud.vmmigration.v1.VmMigrationClient; +import com.google.common.base.Strings; + +public class AsyncFetchStorageInventoryPaged { + + public static void main(String[] args) throws Exception { + asyncFetchStorageInventoryPaged(); + } + + public static void asyncFetchStorageInventoryPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + FetchStorageInventoryRequest request = + FetchStorageInventoryRequest.newBuilder() + .setSource(SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]").toString()) + .setForceRefresh(true) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + FetchStorageInventoryResponse response = + vmMigrationClient.fetchStorageInventoryCallable().call(request); + for (SourceStorageResource element : response.getResourcesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END vmmigration_v1_generated_VmMigration_FetchStorageInventory_Paged_async] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/fetchstorageinventory/SyncFetchStorageInventory.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/fetchstorageinventory/SyncFetchStorageInventory.java new file mode 100644 index 000000000000..d2b1b98d6331 --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/fetchstorageinventory/SyncFetchStorageInventory.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_FetchStorageInventory_sync] +import com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest; +import com.google.cloud.vmmigration.v1.SourceName; +import com.google.cloud.vmmigration.v1.SourceStorageResource; +import com.google.cloud.vmmigration.v1.VmMigrationClient; + +public class SyncFetchStorageInventory { + + public static void main(String[] args) throws Exception { + syncFetchStorageInventory(); + } + + public static void syncFetchStorageInventory() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + FetchStorageInventoryRequest request = + FetchStorageInventoryRequest.newBuilder() + .setSource(SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]").toString()) + .setForceRefresh(true) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (SourceStorageResource element : + vmMigrationClient.fetchStorageInventory(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vmmigration_v1_generated_VmMigration_FetchStorageInventory_sync] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/fetchstorageinventory/SyncFetchStorageInventorySourcenameFetchstorageinventoryrequeststoragetype.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/fetchstorageinventory/SyncFetchStorageInventorySourcenameFetchstorageinventoryrequeststoragetype.java new file mode 100644 index 000000000000..e4d6c9e5bb2a --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/fetchstorageinventory/SyncFetchStorageInventorySourcenameFetchstorageinventoryrequeststoragetype.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_FetchStorageInventory_SourcenameFetchstorageinventoryrequeststoragetype_sync] +import com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest; +import com.google.cloud.vmmigration.v1.SourceName; +import com.google.cloud.vmmigration.v1.SourceStorageResource; +import com.google.cloud.vmmigration.v1.VmMigrationClient; + +public class SyncFetchStorageInventorySourcenameFetchstorageinventoryrequeststoragetype { + + public static void main(String[] args) throws Exception { + syncFetchStorageInventorySourcenameFetchstorageinventoryrequeststoragetype(); + } + + public static void syncFetchStorageInventorySourcenameFetchstorageinventoryrequeststoragetype() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + SourceName source = SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]"); + FetchStorageInventoryRequest.StorageType type = + FetchStorageInventoryRequest.StorageType.forNumber(0); + for (SourceStorageResource element : + vmMigrationClient.fetchStorageInventory(source, type).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vmmigration_v1_generated_VmMigration_FetchStorageInventory_SourcenameFetchstorageinventoryrequeststoragetype_sync] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/fetchstorageinventory/SyncFetchStorageInventoryStringFetchstorageinventoryrequeststoragetype.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/fetchstorageinventory/SyncFetchStorageInventoryStringFetchstorageinventoryrequeststoragetype.java new file mode 100644 index 000000000000..c2677c567948 --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/fetchstorageinventory/SyncFetchStorageInventoryStringFetchstorageinventoryrequeststoragetype.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_FetchStorageInventory_StringFetchstorageinventoryrequeststoragetype_sync] +import com.google.cloud.vmmigration.v1.FetchStorageInventoryRequest; +import com.google.cloud.vmmigration.v1.SourceName; +import com.google.cloud.vmmigration.v1.SourceStorageResource; +import com.google.cloud.vmmigration.v1.VmMigrationClient; + +public class SyncFetchStorageInventoryStringFetchstorageinventoryrequeststoragetype { + + public static void main(String[] args) throws Exception { + syncFetchStorageInventoryStringFetchstorageinventoryrequeststoragetype(); + } + + public static void syncFetchStorageInventoryStringFetchstorageinventoryrequeststoragetype() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + String source = SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]").toString(); + FetchStorageInventoryRequest.StorageType type = + FetchStorageInventoryRequest.StorageType.forNumber(0); + for (SourceStorageResource element : + vmMigrationClient.fetchStorageInventory(source, type).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vmmigration_v1_generated_VmMigration_FetchStorageInventory_StringFetchstorageinventoryrequeststoragetype_sync] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/getdiskmigrationjob/AsyncGetDiskMigrationJob.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/getdiskmigrationjob/AsyncGetDiskMigrationJob.java new file mode 100644 index 000000000000..fa324defe775 --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/getdiskmigrationjob/AsyncGetDiskMigrationJob.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_GetDiskMigrationJob_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmmigration.v1.DiskMigrationJob; +import com.google.cloud.vmmigration.v1.DiskMigrationJobName; +import com.google.cloud.vmmigration.v1.GetDiskMigrationJobRequest; +import com.google.cloud.vmmigration.v1.VmMigrationClient; + +public class AsyncGetDiskMigrationJob { + + public static void main(String[] args) throws Exception { + asyncGetDiskMigrationJob(); + } + + public static void asyncGetDiskMigrationJob() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + GetDiskMigrationJobRequest request = + GetDiskMigrationJobRequest.newBuilder() + .setName( + DiskMigrationJobName.of( + "[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]") + .toString()) + .build(); + ApiFuture future = + vmMigrationClient.getDiskMigrationJobCallable().futureCall(request); + // Do something. + DiskMigrationJob response = future.get(); + } + } +} +// [END vmmigration_v1_generated_VmMigration_GetDiskMigrationJob_async] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/getdiskmigrationjob/SyncGetDiskMigrationJob.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/getdiskmigrationjob/SyncGetDiskMigrationJob.java new file mode 100644 index 000000000000..a7f09e22314c --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/getdiskmigrationjob/SyncGetDiskMigrationJob.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_GetDiskMigrationJob_sync] +import com.google.cloud.vmmigration.v1.DiskMigrationJob; +import com.google.cloud.vmmigration.v1.DiskMigrationJobName; +import com.google.cloud.vmmigration.v1.GetDiskMigrationJobRequest; +import com.google.cloud.vmmigration.v1.VmMigrationClient; + +public class SyncGetDiskMigrationJob { + + public static void main(String[] args) throws Exception { + syncGetDiskMigrationJob(); + } + + public static void syncGetDiskMigrationJob() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + GetDiskMigrationJobRequest request = + GetDiskMigrationJobRequest.newBuilder() + .setName( + DiskMigrationJobName.of( + "[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]") + .toString()) + .build(); + DiskMigrationJob response = vmMigrationClient.getDiskMigrationJob(request); + } + } +} +// [END vmmigration_v1_generated_VmMigration_GetDiskMigrationJob_sync] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/getdiskmigrationjob/SyncGetDiskMigrationJobDiskmigrationjobname.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/getdiskmigrationjob/SyncGetDiskMigrationJobDiskmigrationjobname.java new file mode 100644 index 000000000000..89bf0b6c94f3 --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/getdiskmigrationjob/SyncGetDiskMigrationJobDiskmigrationjobname.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_GetDiskMigrationJob_Diskmigrationjobname_sync] +import com.google.cloud.vmmigration.v1.DiskMigrationJob; +import com.google.cloud.vmmigration.v1.DiskMigrationJobName; +import com.google.cloud.vmmigration.v1.VmMigrationClient; + +public class SyncGetDiskMigrationJobDiskmigrationjobname { + + public static void main(String[] args) throws Exception { + syncGetDiskMigrationJobDiskmigrationjobname(); + } + + public static void syncGetDiskMigrationJobDiskmigrationjobname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + DiskMigrationJobName name = + DiskMigrationJobName.of("[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]"); + DiskMigrationJob response = vmMigrationClient.getDiskMigrationJob(name); + } + } +} +// [END vmmigration_v1_generated_VmMigration_GetDiskMigrationJob_Diskmigrationjobname_sync] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/getdiskmigrationjob/SyncGetDiskMigrationJobString.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/getdiskmigrationjob/SyncGetDiskMigrationJobString.java new file mode 100644 index 000000000000..6d30a7dacd7a --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/getdiskmigrationjob/SyncGetDiskMigrationJobString.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_GetDiskMigrationJob_String_sync] +import com.google.cloud.vmmigration.v1.DiskMigrationJob; +import com.google.cloud.vmmigration.v1.DiskMigrationJobName; +import com.google.cloud.vmmigration.v1.VmMigrationClient; + +public class SyncGetDiskMigrationJobString { + + public static void main(String[] args) throws Exception { + syncGetDiskMigrationJobString(); + } + + public static void syncGetDiskMigrationJobString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + String name = + DiskMigrationJobName.of("[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]") + .toString(); + DiskMigrationJob response = vmMigrationClient.getDiskMigrationJob(name); + } + } +} +// [END vmmigration_v1_generated_VmMigration_GetDiskMigrationJob_String_sync] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/getimageimport/AsyncGetImageImport.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/getimageimport/AsyncGetImageImport.java new file mode 100644 index 000000000000..98763e7f0d6a --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/getimageimport/AsyncGetImageImport.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_GetImageImport_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmmigration.v1.GetImageImportRequest; +import com.google.cloud.vmmigration.v1.ImageImport; +import com.google.cloud.vmmigration.v1.ImageImportName; +import com.google.cloud.vmmigration.v1.VmMigrationClient; + +public class AsyncGetImageImport { + + public static void main(String[] args) throws Exception { + asyncGetImageImport(); + } + + public static void asyncGetImageImport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + GetImageImportRequest request = + GetImageImportRequest.newBuilder() + .setName(ImageImportName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .build(); + ApiFuture future = + vmMigrationClient.getImageImportCallable().futureCall(request); + // Do something. + ImageImport response = future.get(); + } + } +} +// [END vmmigration_v1_generated_VmMigration_GetImageImport_async] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/getimageimport/SyncGetImageImport.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/getimageimport/SyncGetImageImport.java new file mode 100644 index 000000000000..f7f0da142983 --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/getimageimport/SyncGetImageImport.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_GetImageImport_sync] +import com.google.cloud.vmmigration.v1.GetImageImportRequest; +import com.google.cloud.vmmigration.v1.ImageImport; +import com.google.cloud.vmmigration.v1.ImageImportName; +import com.google.cloud.vmmigration.v1.VmMigrationClient; + +public class SyncGetImageImport { + + public static void main(String[] args) throws Exception { + syncGetImageImport(); + } + + public static void syncGetImageImport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + GetImageImportRequest request = + GetImageImportRequest.newBuilder() + .setName(ImageImportName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .build(); + ImageImport response = vmMigrationClient.getImageImport(request); + } + } +} +// [END vmmigration_v1_generated_VmMigration_GetImageImport_sync] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/getimageimport/SyncGetImageImportImageimportname.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/getimageimport/SyncGetImageImportImageimportname.java new file mode 100644 index 000000000000..0e35b0d67f23 --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/getimageimport/SyncGetImageImportImageimportname.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_GetImageImport_Imageimportname_sync] +import com.google.cloud.vmmigration.v1.ImageImport; +import com.google.cloud.vmmigration.v1.ImageImportName; +import com.google.cloud.vmmigration.v1.VmMigrationClient; + +public class SyncGetImageImportImageimportname { + + public static void main(String[] args) throws Exception { + syncGetImageImportImageimportname(); + } + + public static void syncGetImageImportImageimportname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + ImageImportName name = ImageImportName.of("[PROJECT]", "[LOCATION]", "[JOB]"); + ImageImport response = vmMigrationClient.getImageImport(name); + } + } +} +// [END vmmigration_v1_generated_VmMigration_GetImageImport_Imageimportname_sync] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/getimageimport/SyncGetImageImportString.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/getimageimport/SyncGetImageImportString.java new file mode 100644 index 000000000000..b3f70910b844 --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/getimageimport/SyncGetImageImportString.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_GetImageImport_String_sync] +import com.google.cloud.vmmigration.v1.ImageImport; +import com.google.cloud.vmmigration.v1.ImageImportName; +import com.google.cloud.vmmigration.v1.VmMigrationClient; + +public class SyncGetImageImportString { + + public static void main(String[] args) throws Exception { + syncGetImageImportString(); + } + + public static void syncGetImageImportString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + String name = ImageImportName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString(); + ImageImport response = vmMigrationClient.getImageImport(name); + } + } +} +// [END vmmigration_v1_generated_VmMigration_GetImageImport_String_sync] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/getimageimportjob/AsyncGetImageImportJob.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/getimageimportjob/AsyncGetImageImportJob.java new file mode 100644 index 000000000000..57fcb271c206 --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/getimageimportjob/AsyncGetImageImportJob.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_GetImageImportJob_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmmigration.v1.GetImageImportJobRequest; +import com.google.cloud.vmmigration.v1.ImageImportJob; +import com.google.cloud.vmmigration.v1.ImageImportJobName; +import com.google.cloud.vmmigration.v1.VmMigrationClient; + +public class AsyncGetImageImportJob { + + public static void main(String[] args) throws Exception { + asyncGetImageImportJob(); + } + + public static void asyncGetImageImportJob() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + GetImageImportJobRequest request = + GetImageImportJobRequest.newBuilder() + .setName( + ImageImportJobName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[RESULT]").toString()) + .build(); + ApiFuture future = + vmMigrationClient.getImageImportJobCallable().futureCall(request); + // Do something. + ImageImportJob response = future.get(); + } + } +} +// [END vmmigration_v1_generated_VmMigration_GetImageImportJob_async] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/getimageimportjob/SyncGetImageImportJob.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/getimageimportjob/SyncGetImageImportJob.java new file mode 100644 index 000000000000..fda3a0bbb9b6 --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/getimageimportjob/SyncGetImageImportJob.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_GetImageImportJob_sync] +import com.google.cloud.vmmigration.v1.GetImageImportJobRequest; +import com.google.cloud.vmmigration.v1.ImageImportJob; +import com.google.cloud.vmmigration.v1.ImageImportJobName; +import com.google.cloud.vmmigration.v1.VmMigrationClient; + +public class SyncGetImageImportJob { + + public static void main(String[] args) throws Exception { + syncGetImageImportJob(); + } + + public static void syncGetImageImportJob() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + GetImageImportJobRequest request = + GetImageImportJobRequest.newBuilder() + .setName( + ImageImportJobName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[RESULT]").toString()) + .build(); + ImageImportJob response = vmMigrationClient.getImageImportJob(request); + } + } +} +// [END vmmigration_v1_generated_VmMigration_GetImageImportJob_sync] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/getimageimportjob/SyncGetImageImportJobImageimportjobname.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/getimageimportjob/SyncGetImageImportJobImageimportjobname.java new file mode 100644 index 000000000000..34733127cb73 --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/getimageimportjob/SyncGetImageImportJobImageimportjobname.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_GetImageImportJob_Imageimportjobname_sync] +import com.google.cloud.vmmigration.v1.ImageImportJob; +import com.google.cloud.vmmigration.v1.ImageImportJobName; +import com.google.cloud.vmmigration.v1.VmMigrationClient; + +public class SyncGetImageImportJobImageimportjobname { + + public static void main(String[] args) throws Exception { + syncGetImageImportJobImageimportjobname(); + } + + public static void syncGetImageImportJobImageimportjobname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + ImageImportJobName name = + ImageImportJobName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[RESULT]"); + ImageImportJob response = vmMigrationClient.getImageImportJob(name); + } + } +} +// [END vmmigration_v1_generated_VmMigration_GetImageImportJob_Imageimportjobname_sync] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/getimageimportjob/SyncGetImageImportJobString.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/getimageimportjob/SyncGetImageImportJobString.java new file mode 100644 index 000000000000..6efd6100eea3 --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/getimageimportjob/SyncGetImageImportJobString.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_GetImageImportJob_String_sync] +import com.google.cloud.vmmigration.v1.ImageImportJob; +import com.google.cloud.vmmigration.v1.ImageImportJobName; +import com.google.cloud.vmmigration.v1.VmMigrationClient; + +public class SyncGetImageImportJobString { + + public static void main(String[] args) throws Exception { + syncGetImageImportJobString(); + } + + public static void syncGetImageImportJobString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + String name = + ImageImportJobName.of("[PROJECT]", "[LOCATION]", "[JOB]", "[RESULT]").toString(); + ImageImportJob response = vmMigrationClient.getImageImportJob(name); + } + } +} +// [END vmmigration_v1_generated_VmMigration_GetImageImportJob_String_sync] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/listdiskmigrationjobs/AsyncListDiskMigrationJobs.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/listdiskmigrationjobs/AsyncListDiskMigrationJobs.java new file mode 100644 index 000000000000..45c3606fe67f --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/listdiskmigrationjobs/AsyncListDiskMigrationJobs.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_ListDiskMigrationJobs_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmmigration.v1.DiskMigrationJob; +import com.google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest; +import com.google.cloud.vmmigration.v1.SourceName; +import com.google.cloud.vmmigration.v1.VmMigrationClient; + +public class AsyncListDiskMigrationJobs { + + public static void main(String[] args) throws Exception { + asyncListDiskMigrationJobs(); + } + + public static void asyncListDiskMigrationJobs() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + ListDiskMigrationJobsRequest request = + ListDiskMigrationJobsRequest.newBuilder() + .setParent(SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + vmMigrationClient.listDiskMigrationJobsPagedCallable().futureCall(request); + // Do something. + for (DiskMigrationJob element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vmmigration_v1_generated_VmMigration_ListDiskMigrationJobs_async] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/listdiskmigrationjobs/AsyncListDiskMigrationJobsPaged.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/listdiskmigrationjobs/AsyncListDiskMigrationJobsPaged.java new file mode 100644 index 000000000000..d65ec48afd30 --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/listdiskmigrationjobs/AsyncListDiskMigrationJobsPaged.java @@ -0,0 +1,64 @@ +/* + * 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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_ListDiskMigrationJobs_Paged_async] +import com.google.cloud.vmmigration.v1.DiskMigrationJob; +import com.google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest; +import com.google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse; +import com.google.cloud.vmmigration.v1.SourceName; +import com.google.cloud.vmmigration.v1.VmMigrationClient; +import com.google.common.base.Strings; + +public class AsyncListDiskMigrationJobsPaged { + + public static void main(String[] args) throws Exception { + asyncListDiskMigrationJobsPaged(); + } + + public static void asyncListDiskMigrationJobsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + ListDiskMigrationJobsRequest request = + ListDiskMigrationJobsRequest.newBuilder() + .setParent(SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListDiskMigrationJobsResponse response = + vmMigrationClient.listDiskMigrationJobsCallable().call(request); + for (DiskMigrationJob element : response.getDiskMigrationJobsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END vmmigration_v1_generated_VmMigration_ListDiskMigrationJobs_Paged_async] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/listdiskmigrationjobs/SyncListDiskMigrationJobs.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/listdiskmigrationjobs/SyncListDiskMigrationJobs.java new file mode 100644 index 000000000000..3edeb47f7e19 --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/listdiskmigrationjobs/SyncListDiskMigrationJobs.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_ListDiskMigrationJobs_sync] +import com.google.cloud.vmmigration.v1.DiskMigrationJob; +import com.google.cloud.vmmigration.v1.ListDiskMigrationJobsRequest; +import com.google.cloud.vmmigration.v1.SourceName; +import com.google.cloud.vmmigration.v1.VmMigrationClient; + +public class SyncListDiskMigrationJobs { + + public static void main(String[] args) throws Exception { + syncListDiskMigrationJobs(); + } + + public static void syncListDiskMigrationJobs() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + ListDiskMigrationJobsRequest request = + ListDiskMigrationJobsRequest.newBuilder() + .setParent(SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (DiskMigrationJob element : + vmMigrationClient.listDiskMigrationJobs(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vmmigration_v1_generated_VmMigration_ListDiskMigrationJobs_sync] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/listdiskmigrationjobs/SyncListDiskMigrationJobsSourcename.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/listdiskmigrationjobs/SyncListDiskMigrationJobsSourcename.java new file mode 100644 index 000000000000..187f232a91c1 --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/listdiskmigrationjobs/SyncListDiskMigrationJobsSourcename.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_ListDiskMigrationJobs_Sourcename_sync] +import com.google.cloud.vmmigration.v1.DiskMigrationJob; +import com.google.cloud.vmmigration.v1.SourceName; +import com.google.cloud.vmmigration.v1.VmMigrationClient; + +public class SyncListDiskMigrationJobsSourcename { + + public static void main(String[] args) throws Exception { + syncListDiskMigrationJobsSourcename(); + } + + public static void syncListDiskMigrationJobsSourcename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + SourceName parent = SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]"); + for (DiskMigrationJob element : + vmMigrationClient.listDiskMigrationJobs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vmmigration_v1_generated_VmMigration_ListDiskMigrationJobs_Sourcename_sync] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/listdiskmigrationjobs/SyncListDiskMigrationJobsString.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/listdiskmigrationjobs/SyncListDiskMigrationJobsString.java new file mode 100644 index 000000000000..f007133bb29e --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/listdiskmigrationjobs/SyncListDiskMigrationJobsString.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_ListDiskMigrationJobs_String_sync] +import com.google.cloud.vmmigration.v1.DiskMigrationJob; +import com.google.cloud.vmmigration.v1.SourceName; +import com.google.cloud.vmmigration.v1.VmMigrationClient; + +public class SyncListDiskMigrationJobsString { + + public static void main(String[] args) throws Exception { + syncListDiskMigrationJobsString(); + } + + public static void syncListDiskMigrationJobsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + String parent = SourceName.of("[PROJECT]", "[LOCATION]", "[SOURCE]").toString(); + for (DiskMigrationJob element : + vmMigrationClient.listDiskMigrationJobs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vmmigration_v1_generated_VmMigration_ListDiskMigrationJobs_String_sync] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/listimageimportjobs/AsyncListImageImportJobs.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/listimageimportjobs/AsyncListImageImportJobs.java new file mode 100644 index 000000000000..113b555d332b --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/listimageimportjobs/AsyncListImageImportJobs.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_ListImageImportJobs_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmmigration.v1.ImageImportJob; +import com.google.cloud.vmmigration.v1.ImageImportName; +import com.google.cloud.vmmigration.v1.ListImageImportJobsRequest; +import com.google.cloud.vmmigration.v1.VmMigrationClient; + +public class AsyncListImageImportJobs { + + public static void main(String[] args) throws Exception { + asyncListImageImportJobs(); + } + + public static void asyncListImageImportJobs() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + ListImageImportJobsRequest request = + ListImageImportJobsRequest.newBuilder() + .setParent(ImageImportName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + vmMigrationClient.listImageImportJobsPagedCallable().futureCall(request); + // Do something. + for (ImageImportJob element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vmmigration_v1_generated_VmMigration_ListImageImportJobs_async] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/listimageimportjobs/AsyncListImageImportJobsPaged.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/listimageimportjobs/AsyncListImageImportJobsPaged.java new file mode 100644 index 000000000000..bfd5cf91d599 --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/listimageimportjobs/AsyncListImageImportJobsPaged.java @@ -0,0 +1,64 @@ +/* + * 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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_ListImageImportJobs_Paged_async] +import com.google.cloud.vmmigration.v1.ImageImportJob; +import com.google.cloud.vmmigration.v1.ImageImportName; +import com.google.cloud.vmmigration.v1.ListImageImportJobsRequest; +import com.google.cloud.vmmigration.v1.ListImageImportJobsResponse; +import com.google.cloud.vmmigration.v1.VmMigrationClient; +import com.google.common.base.Strings; + +public class AsyncListImageImportJobsPaged { + + public static void main(String[] args) throws Exception { + asyncListImageImportJobsPaged(); + } + + public static void asyncListImageImportJobsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + ListImageImportJobsRequest request = + ListImageImportJobsRequest.newBuilder() + .setParent(ImageImportName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListImageImportJobsResponse response = + vmMigrationClient.listImageImportJobsCallable().call(request); + for (ImageImportJob element : response.getImageImportJobsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END vmmigration_v1_generated_VmMigration_ListImageImportJobs_Paged_async] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/listimageimportjobs/SyncListImageImportJobs.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/listimageimportjobs/SyncListImageImportJobs.java new file mode 100644 index 000000000000..c39c13e7bc77 --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/listimageimportjobs/SyncListImageImportJobs.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_ListImageImportJobs_sync] +import com.google.cloud.vmmigration.v1.ImageImportJob; +import com.google.cloud.vmmigration.v1.ImageImportName; +import com.google.cloud.vmmigration.v1.ListImageImportJobsRequest; +import com.google.cloud.vmmigration.v1.VmMigrationClient; + +public class SyncListImageImportJobs { + + public static void main(String[] args) throws Exception { + syncListImageImportJobs(); + } + + public static void syncListImageImportJobs() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + ListImageImportJobsRequest request = + ListImageImportJobsRequest.newBuilder() + .setParent(ImageImportName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (ImageImportJob element : vmMigrationClient.listImageImportJobs(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vmmigration_v1_generated_VmMigration_ListImageImportJobs_sync] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/listimageimportjobs/SyncListImageImportJobsImageimportname.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/listimageimportjobs/SyncListImageImportJobsImageimportname.java new file mode 100644 index 000000000000..546aeae4d36f --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/listimageimportjobs/SyncListImageImportJobsImageimportname.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_ListImageImportJobs_Imageimportname_sync] +import com.google.cloud.vmmigration.v1.ImageImportJob; +import com.google.cloud.vmmigration.v1.ImageImportName; +import com.google.cloud.vmmigration.v1.VmMigrationClient; + +public class SyncListImageImportJobsImageimportname { + + public static void main(String[] args) throws Exception { + syncListImageImportJobsImageimportname(); + } + + public static void syncListImageImportJobsImageimportname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + ImageImportName parent = ImageImportName.of("[PROJECT]", "[LOCATION]", "[JOB]"); + for (ImageImportJob element : vmMigrationClient.listImageImportJobs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vmmigration_v1_generated_VmMigration_ListImageImportJobs_Imageimportname_sync] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/listimageimportjobs/SyncListImageImportJobsString.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/listimageimportjobs/SyncListImageImportJobsString.java new file mode 100644 index 000000000000..e6550278875b --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/listimageimportjobs/SyncListImageImportJobsString.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_ListImageImportJobs_String_sync] +import com.google.cloud.vmmigration.v1.ImageImportJob; +import com.google.cloud.vmmigration.v1.ImageImportName; +import com.google.cloud.vmmigration.v1.VmMigrationClient; + +public class SyncListImageImportJobsString { + + public static void main(String[] args) throws Exception { + syncListImageImportJobsString(); + } + + public static void syncListImageImportJobsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + String parent = ImageImportName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString(); + for (ImageImportJob element : vmMigrationClient.listImageImportJobs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vmmigration_v1_generated_VmMigration_ListImageImportJobs_String_sync] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/listimageimports/AsyncListImageImports.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/listimageimports/AsyncListImageImports.java new file mode 100644 index 000000000000..a676b6817669 --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/listimageimports/AsyncListImageImports.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_ListImageImports_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmmigration.v1.ImageImport; +import com.google.cloud.vmmigration.v1.ListImageImportsRequest; +import com.google.cloud.vmmigration.v1.LocationName; +import com.google.cloud.vmmigration.v1.VmMigrationClient; + +public class AsyncListImageImports { + + public static void main(String[] args) throws Exception { + asyncListImageImports(); + } + + public static void asyncListImageImports() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + ListImageImportsRequest request = + ListImageImportsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + vmMigrationClient.listImageImportsPagedCallable().futureCall(request); + // Do something. + for (ImageImport element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vmmigration_v1_generated_VmMigration_ListImageImports_async] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/listimageimports/AsyncListImageImportsPaged.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/listimageimports/AsyncListImageImportsPaged.java new file mode 100644 index 000000000000..75c2ef6608c9 --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/listimageimports/AsyncListImageImportsPaged.java @@ -0,0 +1,64 @@ +/* + * 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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_ListImageImports_Paged_async] +import com.google.cloud.vmmigration.v1.ImageImport; +import com.google.cloud.vmmigration.v1.ListImageImportsRequest; +import com.google.cloud.vmmigration.v1.ListImageImportsResponse; +import com.google.cloud.vmmigration.v1.LocationName; +import com.google.cloud.vmmigration.v1.VmMigrationClient; +import com.google.common.base.Strings; + +public class AsyncListImageImportsPaged { + + public static void main(String[] args) throws Exception { + asyncListImageImportsPaged(); + } + + public static void asyncListImageImportsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + ListImageImportsRequest request = + ListImageImportsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListImageImportsResponse response = + vmMigrationClient.listImageImportsCallable().call(request); + for (ImageImport element : response.getImageImportsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END vmmigration_v1_generated_VmMigration_ListImageImports_Paged_async] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/listimageimports/SyncListImageImports.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/listimageimports/SyncListImageImports.java new file mode 100644 index 000000000000..da718af7d5d5 --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/listimageimports/SyncListImageImports.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_ListImageImports_sync] +import com.google.cloud.vmmigration.v1.ImageImport; +import com.google.cloud.vmmigration.v1.ListImageImportsRequest; +import com.google.cloud.vmmigration.v1.LocationName; +import com.google.cloud.vmmigration.v1.VmMigrationClient; + +public class SyncListImageImports { + + public static void main(String[] args) throws Exception { + syncListImageImports(); + } + + public static void syncListImageImports() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + ListImageImportsRequest request = + ListImageImportsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (ImageImport element : vmMigrationClient.listImageImports(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vmmigration_v1_generated_VmMigration_ListImageImports_sync] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/listimageimports/SyncListImageImportsLocationname.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/listimageimports/SyncListImageImportsLocationname.java new file mode 100644 index 000000000000..9caca37e7fbf --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/listimageimports/SyncListImageImportsLocationname.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_ListImageImports_Locationname_sync] +import com.google.cloud.vmmigration.v1.ImageImport; +import com.google.cloud.vmmigration.v1.LocationName; +import com.google.cloud.vmmigration.v1.VmMigrationClient; + +public class SyncListImageImportsLocationname { + + public static void main(String[] args) throws Exception { + syncListImageImportsLocationname(); + } + + public static void syncListImageImportsLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (ImageImport element : vmMigrationClient.listImageImports(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vmmigration_v1_generated_VmMigration_ListImageImports_Locationname_sync] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/listimageimports/SyncListImageImportsString.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/listimageimports/SyncListImageImportsString.java new file mode 100644 index 000000000000..bff96ab9cafc --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/listimageimports/SyncListImageImportsString.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_ListImageImports_String_sync] +import com.google.cloud.vmmigration.v1.ImageImport; +import com.google.cloud.vmmigration.v1.LocationName; +import com.google.cloud.vmmigration.v1.VmMigrationClient; + +public class SyncListImageImportsString { + + public static void main(String[] args) throws Exception { + syncListImageImportsString(); + } + + public static void syncListImageImportsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (ImageImport element : vmMigrationClient.listImageImports(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vmmigration_v1_generated_VmMigration_ListImageImports_String_sync] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/rundiskmigrationjob/AsyncRunDiskMigrationJob.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/rundiskmigrationjob/AsyncRunDiskMigrationJob.java new file mode 100644 index 000000000000..a8775b32d9f7 --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/rundiskmigrationjob/AsyncRunDiskMigrationJob.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_RunDiskMigrationJob_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmmigration.v1.DiskMigrationJobName; +import com.google.cloud.vmmigration.v1.RunDiskMigrationJobRequest; +import com.google.cloud.vmmigration.v1.VmMigrationClient; +import com.google.longrunning.Operation; + +public class AsyncRunDiskMigrationJob { + + public static void main(String[] args) throws Exception { + asyncRunDiskMigrationJob(); + } + + public static void asyncRunDiskMigrationJob() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + RunDiskMigrationJobRequest request = + RunDiskMigrationJobRequest.newBuilder() + .setName( + DiskMigrationJobName.of( + "[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]") + .toString()) + .build(); + ApiFuture future = + vmMigrationClient.runDiskMigrationJobCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END vmmigration_v1_generated_VmMigration_RunDiskMigrationJob_async] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/rundiskmigrationjob/AsyncRunDiskMigrationJobLRO.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/rundiskmigrationjob/AsyncRunDiskMigrationJobLRO.java new file mode 100644 index 000000000000..fe37a3894f96 --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/rundiskmigrationjob/AsyncRunDiskMigrationJobLRO.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_RunDiskMigrationJob_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.vmmigration.v1.DiskMigrationJobName; +import com.google.cloud.vmmigration.v1.OperationMetadata; +import com.google.cloud.vmmigration.v1.RunDiskMigrationJobRequest; +import com.google.cloud.vmmigration.v1.RunDiskMigrationJobResponse; +import com.google.cloud.vmmigration.v1.VmMigrationClient; + +public class AsyncRunDiskMigrationJobLRO { + + public static void main(String[] args) throws Exception { + asyncRunDiskMigrationJobLRO(); + } + + public static void asyncRunDiskMigrationJobLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + RunDiskMigrationJobRequest request = + RunDiskMigrationJobRequest.newBuilder() + .setName( + DiskMigrationJobName.of( + "[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]") + .toString()) + .build(); + OperationFuture future = + vmMigrationClient.runDiskMigrationJobOperationCallable().futureCall(request); + // Do something. + RunDiskMigrationJobResponse response = future.get(); + } + } +} +// [END vmmigration_v1_generated_VmMigration_RunDiskMigrationJob_LRO_async] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/rundiskmigrationjob/SyncRunDiskMigrationJob.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/rundiskmigrationjob/SyncRunDiskMigrationJob.java new file mode 100644 index 000000000000..a42ea30b3cb2 --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/rundiskmigrationjob/SyncRunDiskMigrationJob.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_RunDiskMigrationJob_sync] +import com.google.cloud.vmmigration.v1.DiskMigrationJobName; +import com.google.cloud.vmmigration.v1.RunDiskMigrationJobRequest; +import com.google.cloud.vmmigration.v1.RunDiskMigrationJobResponse; +import com.google.cloud.vmmigration.v1.VmMigrationClient; + +public class SyncRunDiskMigrationJob { + + public static void main(String[] args) throws Exception { + syncRunDiskMigrationJob(); + } + + public static void syncRunDiskMigrationJob() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + RunDiskMigrationJobRequest request = + RunDiskMigrationJobRequest.newBuilder() + .setName( + DiskMigrationJobName.of( + "[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]") + .toString()) + .build(); + RunDiskMigrationJobResponse response = + vmMigrationClient.runDiskMigrationJobAsync(request).get(); + } + } +} +// [END vmmigration_v1_generated_VmMigration_RunDiskMigrationJob_sync] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/rundiskmigrationjob/SyncRunDiskMigrationJobDiskmigrationjobname.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/rundiskmigrationjob/SyncRunDiskMigrationJobDiskmigrationjobname.java new file mode 100644 index 000000000000..211a03a16fd8 --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/rundiskmigrationjob/SyncRunDiskMigrationJobDiskmigrationjobname.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_RunDiskMigrationJob_Diskmigrationjobname_sync] +import com.google.cloud.vmmigration.v1.DiskMigrationJobName; +import com.google.cloud.vmmigration.v1.RunDiskMigrationJobResponse; +import com.google.cloud.vmmigration.v1.VmMigrationClient; + +public class SyncRunDiskMigrationJobDiskmigrationjobname { + + public static void main(String[] args) throws Exception { + syncRunDiskMigrationJobDiskmigrationjobname(); + } + + public static void syncRunDiskMigrationJobDiskmigrationjobname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + DiskMigrationJobName name = + DiskMigrationJobName.of("[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]"); + RunDiskMigrationJobResponse response = vmMigrationClient.runDiskMigrationJobAsync(name).get(); + } + } +} +// [END vmmigration_v1_generated_VmMigration_RunDiskMigrationJob_Diskmigrationjobname_sync] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/rundiskmigrationjob/SyncRunDiskMigrationJobString.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/rundiskmigrationjob/SyncRunDiskMigrationJobString.java new file mode 100644 index 000000000000..f6173098fb57 --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/rundiskmigrationjob/SyncRunDiskMigrationJobString.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_RunDiskMigrationJob_String_sync] +import com.google.cloud.vmmigration.v1.DiskMigrationJobName; +import com.google.cloud.vmmigration.v1.RunDiskMigrationJobResponse; +import com.google.cloud.vmmigration.v1.VmMigrationClient; + +public class SyncRunDiskMigrationJobString { + + public static void main(String[] args) throws Exception { + syncRunDiskMigrationJobString(); + } + + public static void syncRunDiskMigrationJobString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + String name = + DiskMigrationJobName.of("[PROJECT]", "[LOCATION]", "[SOURCE]", "[DISK_MIGRATION_JOB]") + .toString(); + RunDiskMigrationJobResponse response = vmMigrationClient.runDiskMigrationJobAsync(name).get(); + } + } +} +// [END vmmigration_v1_generated_VmMigration_RunDiskMigrationJob_String_sync] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/updatediskmigrationjob/AsyncUpdateDiskMigrationJob.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/updatediskmigrationjob/AsyncUpdateDiskMigrationJob.java new file mode 100644 index 000000000000..8075ff74235a --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/updatediskmigrationjob/AsyncUpdateDiskMigrationJob.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_UpdateDiskMigrationJob_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vmmigration.v1.DiskMigrationJob; +import com.google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest; +import com.google.cloud.vmmigration.v1.VmMigrationClient; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateDiskMigrationJob { + + public static void main(String[] args) throws Exception { + asyncUpdateDiskMigrationJob(); + } + + public static void asyncUpdateDiskMigrationJob() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + UpdateDiskMigrationJobRequest request = + UpdateDiskMigrationJobRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setDiskMigrationJob(DiskMigrationJob.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + vmMigrationClient.updateDiskMigrationJobCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END vmmigration_v1_generated_VmMigration_UpdateDiskMigrationJob_async] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/updatediskmigrationjob/AsyncUpdateDiskMigrationJobLRO.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/updatediskmigrationjob/AsyncUpdateDiskMigrationJobLRO.java new file mode 100644 index 000000000000..7bc47500658a --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/updatediskmigrationjob/AsyncUpdateDiskMigrationJobLRO.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_UpdateDiskMigrationJob_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.vmmigration.v1.DiskMigrationJob; +import com.google.cloud.vmmigration.v1.OperationMetadata; +import com.google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest; +import com.google.cloud.vmmigration.v1.VmMigrationClient; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateDiskMigrationJobLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateDiskMigrationJobLRO(); + } + + public static void asyncUpdateDiskMigrationJobLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + UpdateDiskMigrationJobRequest request = + UpdateDiskMigrationJobRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setDiskMigrationJob(DiskMigrationJob.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + vmMigrationClient.updateDiskMigrationJobOperationCallable().futureCall(request); + // Do something. + DiskMigrationJob response = future.get(); + } + } +} +// [END vmmigration_v1_generated_VmMigration_UpdateDiskMigrationJob_LRO_async] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/updatediskmigrationjob/SyncUpdateDiskMigrationJob.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/updatediskmigrationjob/SyncUpdateDiskMigrationJob.java new file mode 100644 index 000000000000..5d90991731b3 --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/updatediskmigrationjob/SyncUpdateDiskMigrationJob.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_UpdateDiskMigrationJob_sync] +import com.google.cloud.vmmigration.v1.DiskMigrationJob; +import com.google.cloud.vmmigration.v1.UpdateDiskMigrationJobRequest; +import com.google.cloud.vmmigration.v1.VmMigrationClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateDiskMigrationJob { + + public static void main(String[] args) throws Exception { + syncUpdateDiskMigrationJob(); + } + + public static void syncUpdateDiskMigrationJob() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + UpdateDiskMigrationJobRequest request = + UpdateDiskMigrationJobRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setDiskMigrationJob(DiskMigrationJob.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + DiskMigrationJob response = vmMigrationClient.updateDiskMigrationJobAsync(request).get(); + } + } +} +// [END vmmigration_v1_generated_VmMigration_UpdateDiskMigrationJob_sync] diff --git a/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/updatediskmigrationjob/SyncUpdateDiskMigrationJobDiskmigrationjobFieldmask.java b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/updatediskmigrationjob/SyncUpdateDiskMigrationJobDiskmigrationjobFieldmask.java new file mode 100644 index 000000000000..6e925e8020c6 --- /dev/null +++ b/java-vmmigration/samples/snippets/generated/com/google/cloud/vmmigration/v1/vmmigration/updatediskmigrationjob/SyncUpdateDiskMigrationJobDiskmigrationjobFieldmask.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.vmmigration.v1.samples; + +// [START vmmigration_v1_generated_VmMigration_UpdateDiskMigrationJob_DiskmigrationjobFieldmask_sync] +import com.google.cloud.vmmigration.v1.DiskMigrationJob; +import com.google.cloud.vmmigration.v1.VmMigrationClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateDiskMigrationJobDiskmigrationjobFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateDiskMigrationJobDiskmigrationjobFieldmask(); + } + + public static void syncUpdateDiskMigrationJobDiskmigrationjobFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VmMigrationClient vmMigrationClient = VmMigrationClient.create()) { + DiskMigrationJob diskMigrationJob = DiskMigrationJob.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + DiskMigrationJob response = + vmMigrationClient.updateDiskMigrationJobAsync(diskMigrationJob, updateMask).get(); + } + } +} +// [END vmmigration_v1_generated_VmMigration_UpdateDiskMigrationJob_DiskmigrationjobFieldmask_sync] diff --git a/java-vmwareengine/README.md b/java-vmwareengine/README.md index fec66ba4d01e..f9f9ec9b325f 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.66.0 + 26.67.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.66.0 + 0.67.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vmwareengine:0.66.0' +implementation 'com.google.cloud:google-cloud-vmwareengine:0.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vmwareengine" % "0.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vmwareengine" % "0.67.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.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vmwareengine/0.67.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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 b222bb76af93..09da6778289e 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.66.0 + 26.67.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.73.0 + 2.74.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vpcaccess:2.73.0' +implementation 'com.google.cloud:google-cloud-vpcaccess:2.74.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vpcaccess" % "2.73.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vpcaccess" % "2.74.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.73.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vpcaccess/2.74.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://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 cc7a8557fde3..372bc13b97c6 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.66.0 + 26.67.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.71.0 + 2.72.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-webrisk:2.71.0' +implementation 'com.google.cloud:google-cloud-webrisk:2.72.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-webrisk" % "2.71.0" +libraryDependencies += "com.google.cloud" % "google-cloud-webrisk" % "2.72.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-webrisk.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-webrisk/2.71.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-webrisk/2.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-websecurityscanner/README.md b/java-websecurityscanner/README.md index 153a77a8c9bf..948068e116d5 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.66.0 + 26.67.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.72.0 + 2.73.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-websecurityscanner:2.72.0' +implementation 'com.google.cloud:google-cloud-websecurityscanner:2.73.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-websecurityscanner" % "2.72.0" +libraryDependencies += "com.google.cloud" % "google-cloud-websecurityscanner" % "2.73.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.72.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-websecurityscanner/2.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-workflow-executions/README.md b/java-workflow-executions/README.md index b534e5d097f8..ecfd8045130c 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.66.0 + 26.67.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.72.0 + 2.73.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workflow-executions:2.72.0' +implementation 'com.google.cloud:google-cloud-workflow-executions:2.73.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workflow-executions" % "2.72.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workflow-executions" % "2.73.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.72.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workflow-executions/2.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-workflows/README.md b/java-workflows/README.md index 7b5aec23ac7f..182b64057572 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.66.0 + 26.67.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.72.0 + 2.73.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workflows:2.72.0' +implementation 'com.google.cloud:google-cloud-workflows:2.73.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workflows" % "2.72.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workflows" % "2.73.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.72.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workflows/2.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-workspaceevents/README.md b/java-workspaceevents/README.md index ca5c03ab0a5e..59acd65d76fb 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.66.0 + 26.67.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.36.0 + 0.37.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workspaceevents:0.36.0' +implementation 'com.google.cloud:google-cloud-workspaceevents:0.37.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workspaceevents" % "0.36.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workspaceevents" % "0.37.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-workspaceevents.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workspaceevents/0.36.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workspaceevents/0.37.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-workstations/README.md b/java-workstations/README.md index bfaf7d54b276..e2cd9fd6e5b7 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.66.0 + 26.67.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.60.0 + 0.61.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workstations:0.60.0' +implementation 'com.google.cloud:google-cloud-workstations:0.61.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workstations" % "0.60.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workstations" % "0.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-workstations.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workstations/0.60.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workstations/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